@wix/app-extensions 1.0.53 → 1.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +27 -1
- package/build/cjs/index.js +12 -0
- package/build/cjs/index.js.map +1 -1
- package/build/es/index.d.mts +27 -1
- package/build/es/index.mjs +11 -0
- package/build/es/index.mjs.map +1 -1
- package/build/trusted/cjs/index.d.ts +56 -10
- package/build/trusted/cjs/index.js +12 -0
- package/build/trusted/cjs/index.js.map +1 -1
- package/build/trusted/es/index.d.mts +56 -10
- package/build/trusted/es/index.mjs +11 -0
- package/build/trusted/es/index.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -122,6 +122,11 @@ interface ComponentData extends ComponentDataDataOneOf {
|
|
|
122
122
|
storesProductRestrictions?: ProductRestrictionsConfig;
|
|
123
123
|
/** Bookings Staff Sorting Provider SPI */
|
|
124
124
|
staffSortingProvider?: StaffSortingProviderConfig;
|
|
125
|
+
/**
|
|
126
|
+
* Realtime Permissions Provider SPI - integrate with Wix to control who can receive messages on your Wix Realtime channels, by providing a custom permissions check that authorizes whether a subscriber is allowed to subscribe to your app's channels.
|
|
127
|
+
* Learn More: https://dev.wix.com/docs/sdk/core-modules/realtime/extensions/realtime-permissions-provider/check-subscriber-permissions
|
|
128
|
+
*/
|
|
129
|
+
realtimePermissionsProvider?: RealtimePermissionsProviderConfig;
|
|
125
130
|
}
|
|
126
131
|
/** An iframe to be displayed on the user’s site */
|
|
127
132
|
interface WidgetComponentData {
|
|
@@ -973,6 +978,15 @@ interface StaffSortingProviderConfig {
|
|
|
973
978
|
*/
|
|
974
979
|
dashboardPluginId?: string | null;
|
|
975
980
|
}
|
|
981
|
+
interface RealtimePermissionsProviderConfig {
|
|
982
|
+
/** The URI where the SPI Implementer is deployed */
|
|
983
|
+
deploymentUri?: SpiBaseUri;
|
|
984
|
+
/**
|
|
985
|
+
* A user-friendly name of the permissions provider
|
|
986
|
+
* @maxLength 100
|
|
987
|
+
*/
|
|
988
|
+
providerName?: string;
|
|
989
|
+
}
|
|
976
990
|
interface ExtensionData {
|
|
977
991
|
compId: string;
|
|
978
992
|
compType: ComponentType;
|
|
@@ -1322,5 +1336,17 @@ declare function staffSortingProvider({ id, data, name, }: {
|
|
|
1322
1336
|
data: StaffSortingProviderConfig;
|
|
1323
1337
|
name?: string;
|
|
1324
1338
|
}): ExtensionData;
|
|
1339
|
+
/**
|
|
1340
|
+
* Realtime Permissions Provider SPI - integrate with Wix to control who can receive messages on your Wix Realtime channels, by providing a custom permissions check that authorizes whether a subscriber is allowed to subscribe to your app's channels.
|
|
1341
|
+
* Learn More: https://dev.wix.com/docs/sdk/core-modules/realtime/extensions/realtime-permissions-provider/check-subscriber-permissions
|
|
1342
|
+
* @param id - A unique identifier for the extension
|
|
1343
|
+
* @param name - Optional - A human readable name for the extension
|
|
1344
|
+
* @returns A general form of extensions
|
|
1345
|
+
*/
|
|
1346
|
+
declare function realtimePermissionsProvider({ id, data, name, }: {
|
|
1347
|
+
id: string;
|
|
1348
|
+
data: RealtimePermissionsProviderConfig;
|
|
1349
|
+
name?: string;
|
|
1350
|
+
}): ExtensionData;
|
|
1325
1351
|
|
|
1326
|
-
export { type AdditionalFeesSPIConfig, type BackOfficeModal, type BackOfficePage, type BookingsPricingProviderConfig, type CatalogSPIConfig, type ComponentData, ComponentType, type ComponentTypeWithLiterals, type CustomChargesConfig, type CustomElementWidget, type DashboardComponentData, type DataComponent, type DataExtensionsComponentData, type EditorAddon, type EmbeddedScriptComponentData, type ExtensionData, type ExternalDatabaseSpiConfig, type GiftCardProviderConfig, type InventorySpiConfig, type MultilingualTranslationSchema, type PageComponentData, type PaymentSettingsSPIConfig, type ProductRestrictionsConfig, type SchemaGroup, type SeoKeywordsSuggestionsSPIConfig, type ShippingRatesConfig, type StaffSortingProviderConfig, type UnifiedPage, type ValidationsSPIConfig, type WidgetComponentData, type WidgetPluginComponentData, type WorkerComponentData, backOfficeModal, backOfficePage, bookingsPricingProvider, customElementWidget, dashboard, dataComponent, dataExtensions, ecomAdditionalFees, ecomCatalog, ecomInventory, ecomPaymentSettings, ecomShippingRates, ecomValidations, editorAddon, embeddedScript, externalDatabaseProvider, giftCardsProvider, multilingualTranslationSchema, multilingualTranslationSchemaGroup, page, premiumCustomCharges, seoKeywordsSuggestions, staffSortingProvider, storesProductRestrictions, unifiedPage, widget, widgetPlugin, worker };
|
|
1352
|
+
export { type AdditionalFeesSPIConfig, type BackOfficeModal, type BackOfficePage, type BookingsPricingProviderConfig, type CatalogSPIConfig, type ComponentData, ComponentType, type ComponentTypeWithLiterals, type CustomChargesConfig, type CustomElementWidget, type DashboardComponentData, type DataComponent, type DataExtensionsComponentData, type EditorAddon, type EmbeddedScriptComponentData, type ExtensionData, type ExternalDatabaseSpiConfig, type GiftCardProviderConfig, type InventorySpiConfig, type MultilingualTranslationSchema, type PageComponentData, type PaymentSettingsSPIConfig, type ProductRestrictionsConfig, type RealtimePermissionsProviderConfig, type SchemaGroup, type SeoKeywordsSuggestionsSPIConfig, type ShippingRatesConfig, type StaffSortingProviderConfig, type UnifiedPage, type ValidationsSPIConfig, type WidgetComponentData, type WidgetPluginComponentData, type WorkerComponentData, backOfficeModal, backOfficePage, bookingsPricingProvider, customElementWidget, dashboard, dataComponent, dataExtensions, ecomAdditionalFees, ecomCatalog, ecomInventory, ecomPaymentSettings, ecomShippingRates, ecomValidations, editorAddon, embeddedScript, externalDatabaseProvider, giftCardsProvider, multilingualTranslationSchema, multilingualTranslationSchemaGroup, page, premiumCustomCharges, realtimePermissionsProvider, seoKeywordsSuggestions, staffSortingProvider, storesProductRestrictions, unifiedPage, widget, widgetPlugin, worker };
|
package/build/cjs/index.js
CHANGED
|
@@ -281,6 +281,7 @@ __export(index_exports, {
|
|
|
281
281
|
V1Scope: () => V1Scope,
|
|
282
282
|
ValidationTargetMethod: () => ValidationTargetMethod,
|
|
283
283
|
ValueConstraintType: () => ValueConstraintType,
|
|
284
|
+
Variant: () => Variant,
|
|
284
285
|
VectorArtCategoryTypes: () => VectorArtCategoryTypes,
|
|
285
286
|
Vertical: () => Vertical,
|
|
286
287
|
VerticalAlignment: () => VerticalAlignment,
|
|
@@ -1275,6 +1276,7 @@ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
|
|
|
1275
1276
|
DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
|
|
1276
1277
|
DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
|
|
1277
1278
|
DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
|
|
1279
|
+
DecorationType2["SKETCH"] = "SKETCH";
|
|
1278
1280
|
return DecorationType2;
|
|
1279
1281
|
})(DecorationType || {});
|
|
1280
1282
|
var FontType = /* @__PURE__ */ ((FontType2) => {
|
|
@@ -1282,6 +1284,15 @@ var FontType = /* @__PURE__ */ ((FontType2) => {
|
|
|
1282
1284
|
FontType2["EM"] = "EM";
|
|
1283
1285
|
return FontType2;
|
|
1284
1286
|
})(FontType || {});
|
|
1287
|
+
var Variant = /* @__PURE__ */ ((Variant2) => {
|
|
1288
|
+
Variant2["UNDERLINE"] = "UNDERLINE";
|
|
1289
|
+
Variant2["BOX"] = "BOX";
|
|
1290
|
+
Variant2["CIRCLE"] = "CIRCLE";
|
|
1291
|
+
Variant2["HIGHLIGHT"] = "HIGHLIGHT";
|
|
1292
|
+
Variant2["STRIKETHROUGH"] = "STRIKETHROUGH";
|
|
1293
|
+
Variant2["CROSSED_OFF"] = "CROSSED_OFF";
|
|
1294
|
+
return Variant2;
|
|
1295
|
+
})(Variant || {});
|
|
1285
1296
|
var ImageStylesPosition = /* @__PURE__ */ ((ImageStylesPosition2) => {
|
|
1286
1297
|
ImageStylesPosition2["START"] = "START";
|
|
1287
1298
|
ImageStylesPosition2["END"] = "END";
|
|
@@ -6442,6 +6453,7 @@ function bookingsPlatformPremiumValidation({
|
|
|
6442
6453
|
V1Scope,
|
|
6443
6454
|
ValidationTargetMethod,
|
|
6444
6455
|
ValueConstraintType,
|
|
6456
|
+
Variant,
|
|
6445
6457
|
VectorArtCategoryTypes,
|
|
6446
6458
|
Vertical,
|
|
6447
6459
|
VerticalAlignment,
|