@wix/astro 2.33.0 → 2.35.0

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.
@@ -1,4 +1,4 @@
1
- import { _ as webhookBundler, a as customElement, c as webhook, d as ecomPaymentSettings, f as ecomGiftCards, h as bookingsStaffSortingProvider, i as sitePlugin, l as ecomValidations, m as ecomAdditionalFees, n as siteComponentPanel, p as ecomDiscountTriggers, r as embeddedScript, s as genericExtension, t as siteComponent, u as ecomShippingRates, y as servicePluginBundler } from "./builders-DVfxT6EC.mjs";
1
+ import { _ as webhookBundler, a as customElement, c as webhook, d as ecomPaymentSettings, f as ecomGiftCards, h as bookingsStaffSortingProvider, i as sitePlugin, l as ecomValidations, m as ecomAdditionalFees, n as siteComponentPanel, p as ecomDiscountTriggers, r as embeddedScript, s as genericExtension, t as siteComponent, u as ecomShippingRates, y as servicePluginBundler } from "./builders-n1cW-CFG.mjs";
2
2
 
3
3
  //#region ../astro-backoffice-extensions/src/builders/backofficeExtensionMenuPlugin.ts
4
4
  function backofficeExtensionMenuPlugin(options) {
@@ -37,7 +37,7 @@ function bookingsStaffSortingProvider(options) {
37
37
  compType: "STAFF_SORTING_PROVIDER",
38
38
  compData: { staffSortingProvider: {
39
39
  dashboardPluginId: options.dashboardPluginId,
40
- deploymentUri: servicePluginBundler(options),
40
+ deploymentUri: { baseUri: servicePluginBundler(options) },
41
41
  methodDescription: options.methodDescription,
42
42
  methodName: options.methodName
43
43
  } }
@@ -9,6 +9,20 @@ interface DevCenterBackofficeScriptAsset {
9
9
  url: string;
10
10
  }
11
11
  //#endregion
12
+ //#region ../astro-trusted-backoffice-extensions/src/builders/trustedBackofficeExtensionWidget.d.ts
13
+ interface Options$3 {
14
+ id: string;
15
+ component: string;
16
+ description?: string;
17
+ extends: string;
18
+ height?: number;
19
+ requiredPermission?: string;
20
+ slotIds?: string[];
21
+ title: string;
22
+ width?: number;
23
+ }
24
+ declare function trustedBackofficeExtensionWidget(options: Options$3): GenericExtension;
25
+ //#endregion
12
26
  //#region ../astro-trusted-backoffice-extensions/src/builders/trustedBackofficePage.d.ts
13
27
  interface MetaDataKeyword {
14
28
  id: string;
@@ -59,6 +73,7 @@ declare const extensions: {
59
73
  bookingsStaffSortingProvider: typeof bookingsStaffSortingProvider;
60
74
  customElement: typeof customElement;
61
75
  dashboardExportedComponent: typeof trustedBackofficeWidget;
76
+ dashboardExtensionComponent: typeof trustedBackofficeExtensionWidget;
62
77
  dashboardPage: typeof trustedBackofficePage;
63
78
  ecomAdditionalFees: typeof ecomAdditionalFees;
64
79
  ecomDiscountTriggers: typeof ecomDiscountTriggers;
@@ -1,6 +1,24 @@
1
- import { _ as webhookBundler, a as customElement, c as webhook, d as ecomPaymentSettings, f as ecomGiftCards, h as bookingsStaffSortingProvider, i as sitePlugin, l as ecomValidations, m as ecomAdditionalFees, n as siteComponentPanel, o as app, p as ecomDiscountTriggers, r as embeddedScript, s as genericExtension, t as siteComponent, u as ecomShippingRates, y as servicePluginBundler } from "./builders-DVfxT6EC.mjs";
1
+ import { _ as webhookBundler, a as customElement, c as webhook, d as ecomPaymentSettings, f as ecomGiftCards, h as bookingsStaffSortingProvider, i as sitePlugin, l as ecomValidations, m as ecomAdditionalFees, n as siteComponentPanel, o as app, p as ecomDiscountTriggers, r as embeddedScript, s as genericExtension, t as siteComponent, u as ecomShippingRates, y as servicePluginBundler } from "./builders-n1cW-CFG.mjs";
2
2
  import { n as trustedBackofficeComponentBundler } from "./trusted-backoffice-component-CCg08AU1.mjs";
3
3
 
4
+ //#region ../astro-trusted-backoffice-extensions/src/builders/trustedBackofficeExtensionWidget.ts
5
+ function trustedBackofficeExtensionWidget(options) {
6
+ const { id, component, ...widgetOptions } = options;
7
+ return {
8
+ type: "GenericExtension",
9
+ options: {
10
+ compId: id,
11
+ compType: "BACK_OFFICE_EXTENSION_WIDGET",
12
+ compData: { backOfficeExtensionWidget: {
13
+ hostingPlatform: "BUSINESS_MANAGER",
14
+ scriptAsset: trustedBackofficeComponentBundler({ component }),
15
+ ...widgetOptions
16
+ } }
17
+ }
18
+ };
19
+ }
20
+
21
+ //#endregion
4
22
  //#region ../astro-trusted-backoffice-extensions/src/builders/trustedBackofficePage.ts
5
23
  function trustedBackofficePage(options) {
6
24
  const { id, component, ...pageOptions } = options;
@@ -42,6 +60,7 @@ const extensions = {
42
60
  bookingsStaffSortingProvider,
43
61
  customElement,
44
62
  dashboardExportedComponent: trustedBackofficeWidget,
63
+ dashboardExtensionComponent: trustedBackofficeExtensionWidget,
45
64
  dashboardPage: trustedBackofficePage,
46
65
  ecomAdditionalFees,
47
66
  ecomDiscountTriggers,
@@ -1,4 +1,4 @@
1
- import { o as app } from "./builders-DVfxT6EC.mjs";
2
- import { n as extensions, t as bundlers } from "./builders-B9yQdgSz.mjs";
1
+ import { o as app } from "./builders-n1cW-CFG.mjs";
2
+ import { n as extensions, t as bundlers } from "./builders-CjRoHEzM.mjs";
3
3
 
4
4
  export { app, bundlers, extensions };
@@ -1,5 +1,5 @@
1
- import { g as WebhookBundlerType, v as ServicePluginBundlerType } from "./builders-DVfxT6EC.mjs";
2
- import { n as extensions } from "./builders-B9yQdgSz.mjs";
1
+ import { g as WebhookBundlerType, v as ServicePluginBundlerType } from "./builders-n1cW-CFG.mjs";
2
+ import { n as extensions } from "./builders-CjRoHEzM.mjs";
3
3
  import { r as ContextProviderClientBundlerType, t as ContextProviderEditorBundlerType } from "./context-provider-editor-BaSPz-u-.mjs";
4
4
  import { t as TrustedBackofficeComponentBundlerType } from "./trusted-backoffice-component-CCg08AU1.mjs";
5
5
  import { createRequire } from "node:module";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/astro",
3
- "version": "2.33.0",
3
+ "version": "2.35.0",
4
4
  "dependencies": {
5
5
  "@wix/auth-management": "^1.0.71",
6
6
  "@wix/dashboard": "^1.3.43",
@@ -76,5 +76,5 @@
76
76
  ]
77
77
  }
78
78
  },
79
- "falconPackageHash": "2df3b78570e9d95338a4ca82336672c5cc086c91999d1dc89d436ad9"
79
+ "falconPackageHash": "f78665c94451812a8fa144b97b74a8a63988124b48c43a576d3c7f0e"
80
80
  }