@wix/app-extensions 1.0.53 → 1.0.55
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 +21 -0
- package/build/cjs/index.js.map +1 -1
- package/build/es/index.d.mts +27 -1
- package/build/es/index.mjs +19 -0
- package/build/es/index.mjs.map +1 -1
- package/build/trusted/cjs/index.d.ts +120 -19
- package/build/trusted/cjs/index.js +21 -0
- package/build/trusted/cjs/index.js.map +1 -1
- package/build/trusted/es/index.d.mts +120 -19
- package/build/trusted/es/index.mjs +19 -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
|
@@ -155,6 +155,7 @@ __export(index_exports, {
|
|
|
155
155
|
IntegrationType: () => IntegrationType,
|
|
156
156
|
Intent: () => Intent,
|
|
157
157
|
InterfaceConfigurationType: () => InterfaceConfigurationType,
|
|
158
|
+
ItemField: () => ItemField,
|
|
158
159
|
ItemType: () => ItemType,
|
|
159
160
|
Layout: () => Layout,
|
|
160
161
|
LayoutDataBackgroundType: () => LayoutDataBackgroundType,
|
|
@@ -281,6 +282,7 @@ __export(index_exports, {
|
|
|
281
282
|
V1Scope: () => V1Scope,
|
|
282
283
|
ValidationTargetMethod: () => ValidationTargetMethod,
|
|
283
284
|
ValueConstraintType: () => ValueConstraintType,
|
|
285
|
+
Variant: () => Variant,
|
|
284
286
|
VectorArtCategoryTypes: () => VectorArtCategoryTypes,
|
|
285
287
|
Vertical: () => Vertical,
|
|
286
288
|
VerticalAlignment: () => VerticalAlignment,
|
|
@@ -1275,6 +1277,7 @@ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
|
|
|
1275
1277
|
DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
|
|
1276
1278
|
DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
|
|
1277
1279
|
DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
|
|
1280
|
+
DecorationType2["SKETCH"] = "SKETCH";
|
|
1278
1281
|
return DecorationType2;
|
|
1279
1282
|
})(DecorationType || {});
|
|
1280
1283
|
var FontType = /* @__PURE__ */ ((FontType2) => {
|
|
@@ -1282,6 +1285,15 @@ var FontType = /* @__PURE__ */ ((FontType2) => {
|
|
|
1282
1285
|
FontType2["EM"] = "EM";
|
|
1283
1286
|
return FontType2;
|
|
1284
1287
|
})(FontType || {});
|
|
1288
|
+
var Variant = /* @__PURE__ */ ((Variant2) => {
|
|
1289
|
+
Variant2["UNDERLINE"] = "UNDERLINE";
|
|
1290
|
+
Variant2["BOX"] = "BOX";
|
|
1291
|
+
Variant2["CIRCLE"] = "CIRCLE";
|
|
1292
|
+
Variant2["HIGHLIGHT"] = "HIGHLIGHT";
|
|
1293
|
+
Variant2["STRIKETHROUGH"] = "STRIKETHROUGH";
|
|
1294
|
+
Variant2["CROSSED_OFF"] = "CROSSED_OFF";
|
|
1295
|
+
return Variant2;
|
|
1296
|
+
})(Variant || {});
|
|
1285
1297
|
var ImageStylesPosition = /* @__PURE__ */ ((ImageStylesPosition2) => {
|
|
1286
1298
|
ImageStylesPosition2["START"] = "START";
|
|
1287
1299
|
ImageStylesPosition2["END"] = "END";
|
|
@@ -2441,6 +2453,13 @@ var DataType = /* @__PURE__ */ ((DataType2) => {
|
|
|
2441
2453
|
DataType2["sort"] = "sort";
|
|
2442
2454
|
return DataType2;
|
|
2443
2455
|
})(DataType || {});
|
|
2456
|
+
var ItemField = /* @__PURE__ */ ((ItemField2) => {
|
|
2457
|
+
ItemField2["ID"] = "ID";
|
|
2458
|
+
ItemField2["NAME"] = "NAME";
|
|
2459
|
+
ItemField2["DESCRIPTION"] = "DESCRIPTION";
|
|
2460
|
+
ItemField2["NOTE"] = "NOTE";
|
|
2461
|
+
return ItemField2;
|
|
2462
|
+
})(ItemField || {});
|
|
2444
2463
|
var A11yAttributes = /* @__PURE__ */ ((A11yAttributes2) => {
|
|
2445
2464
|
A11yAttributes2["Unknown_AriaAttributes"] = "Unknown_AriaAttributes";
|
|
2446
2465
|
A11yAttributes2["tabIndex"] = "tabIndex";
|
|
@@ -6316,6 +6335,7 @@ function bookingsPlatformPremiumValidation({
|
|
|
6316
6335
|
IntegrationType,
|
|
6317
6336
|
Intent,
|
|
6318
6337
|
InterfaceConfigurationType,
|
|
6338
|
+
ItemField,
|
|
6319
6339
|
ItemType,
|
|
6320
6340
|
Layout,
|
|
6321
6341
|
LayoutDataBackgroundType,
|
|
@@ -6442,6 +6462,7 @@ function bookingsPlatformPremiumValidation({
|
|
|
6442
6462
|
V1Scope,
|
|
6443
6463
|
ValidationTargetMethod,
|
|
6444
6464
|
ValueConstraintType,
|
|
6465
|
+
Variant,
|
|
6445
6466
|
VectorArtCategoryTypes,
|
|
6446
6467
|
Vertical,
|
|
6447
6468
|
VerticalAlignment,
|