@stripe/ui-extension-sdk
Advanced tools
Comparing version 8.8.0-alpha.6 to 8.8.0-alpha.8
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "8.8.0-alpha.6", | ||
"version": "8.8.0-alpha.8", | ||
"description": "The suite of functionality available to UI extensions in Stripe apps", | ||
@@ -9,0 +9,0 @@ "author": "Stripe, Inc.", |
@@ -38,3 +38,2 @@ "use strict"; | ||
imageSrc: ['https://test.com/image'], | ||
purpose: 'test_purpose', | ||
}, | ||
@@ -52,3 +51,3 @@ }, | ||
? (_h = partialMockContext === null || partialMockContext === void 0 ? void 0 : partialMockContext.appContext) === null || _h === void 0 ? void 0 : _h.authorizedPermissions | ||
: (_j = exports.defaultMockContextProps.appContext) === null || _j === void 0 ? void 0 : _j.authorizedPermissions, authorizedContentSecurityPolicy: Object.assign(Object.assign(Object.assign({}, (_k = exports.defaultMockContextProps.appContext) === null || _k === void 0 ? void 0 : _k.authorizedContentSecurityPolicy), (_l = partialMockContext === null || partialMockContext === void 0 ? void 0 : partialMockContext.appContext) === null || _l === void 0 ? void 0 : _l.authorizedContentSecurityPolicy), { connectSrc: [], imageSrc: [], purpose: '' }) }), | ||
: (_j = exports.defaultMockContextProps.appContext) === null || _j === void 0 ? void 0 : _j.authorizedPermissions, authorizedContentSecurityPolicy: Object.assign(Object.assign(Object.assign({}, (_k = exports.defaultMockContextProps.appContext) === null || _k === void 0 ? void 0 : _k.authorizedContentSecurityPolicy), (_l = partialMockContext === null || partialMockContext === void 0 ? void 0 : partialMockContext.appContext) === null || _l === void 0 ? void 0 : _l.authorizedContentSecurityPolicy), { connectSrc: [], imageSrc: [] }) }), | ||
}); | ||
@@ -55,0 +54,0 @@ }; |
import type { NestableJSONValue } from '../types/util'; | ||
export declare type AuthorizedPermissions = string[]; | ||
export declare type AuthorizedContentSecurityPolicy = { | ||
connectSrc?: string[]; | ||
imageSrc?: string[]; | ||
purpose?: string | null; | ||
connectSrc: string[] | null; | ||
imageSrc: string[] | null; | ||
}; | ||
@@ -43,3 +42,3 @@ export declare type RoleDefinition = { | ||
}; | ||
appContext?: { | ||
appContext: { | ||
authorizedPermissions?: AuthorizedPermissions; | ||
@@ -46,0 +45,0 @@ authorizedContentSecurityPolicy?: AuthorizedContentSecurityPolicy; |
@@ -5,2 +5,5 @@ import type { StripeApiFetch } from './apiFetch'; | ||
import type { ShowToast } from './toast'; | ||
import type { GetUserAuthorizedPermissions } from './getUserAuthorizedPermissions'; | ||
import type { IsPermissionAuthorized } from './isPermissionAuthorized'; | ||
import { IsSourceInAuthorizedCSP } from './isSourceInAuthorizedCSP'; | ||
export interface PlatformRPCs { | ||
@@ -17,2 +20,5 @@ clipboardWriteText: (text: string) => Promise<void>; | ||
showToast: ShowToast; | ||
getUserAuthorizedPermissions: GetUserAuthorizedPermissions; | ||
isPermissionAuthorized: IsPermissionAuthorized; | ||
isSourceInAuthorizedCSP: IsSourceInAuthorizedCSP; | ||
} |
@@ -1,2 +0,2 @@ | ||
export declare const SDK_VERSION = "8.8.0-alpha.6"; | ||
export declare const SDK_VERSION = "8.8.0-alpha.8"; | ||
export declare const UI_VERSION = "^32.7.0"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UI_VERSION = exports.SDK_VERSION = void 0; | ||
exports.SDK_VERSION = '8.8.0-alpha.6'; | ||
exports.SDK_VERSION = '8.8.0-alpha.8'; | ||
exports.UI_VERSION = '^32.7.0'; | ||
//# sourceMappingURL=version.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1758189
244
42993