@wix/ditto-codegen-public 1.0.97 → 1.0.98

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.
@@ -13,7 +13,7 @@
13
13
  "env": "wix env"
14
14
  },
15
15
  "dependencies": {
16
- "@wix/astro": "^2.11.0",
16
+ "@wix/astro": "^2.12.0",
17
17
  "@wix/crm": "^1.0.1071",
18
18
  "@wix/dashboard": "^1.3.36",
19
19
  "@wix/data": "^1.0.290",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@wix/app-management": "^1.0.122",
17
- "@wix/astro": "^2.11.0",
17
+ "@wix/astro": "^2.12.0",
18
18
  "@wix/crm": "^1.0.1071",
19
19
  "@wix/dashboard": "^1.3.36",
20
20
  "@wix/data": "^1.0.290",
@@ -1,5 +1,5 @@
1
- import * as extensions from '@wix/astro/builders';
2
- export const dashboardpagecartPopupManager = extensions.backofficePage({
1
+ import { extensions } from '@wix/astro/builders';
2
+ export const dashboardpagecartPopupManager = extensions.dashboardPage({
3
3
  "id": "3304e8b7-4d5c-4719-86bb-68f6235a4bc5",
4
4
  "title": "Cart Popup Manager",
5
5
  "routePath": "cart-popup-manager",
@@ -1,4 +1,4 @@
1
- import * as extensions from '@wix/astro/builders';
1
+ import { extensions } from '@wix/astro/builders';
2
2
  export const embeddedscriptcartCouponPopup = extensions.embeddedScript({
3
3
  "id": "dbdbfc9a-23d0-45f8-9cb7-4b9c357d366f",
4
4
  "name": "Cart & Coupon Popup",
@@ -18,7 +18,7 @@
18
18
  "@types/react": "^18.3.1",
19
19
  "@types/react-dom": "^18.3.1",
20
20
  "@wix/app-management": "^1.0.122",
21
- "@wix/astro": "^2.11.0",
21
+ "@wix/astro": "^2.12.0",
22
22
  "@wix/auto-patterns": "^1.40.0",
23
23
  "@wix/cli": "^1.1.92",
24
24
  "@wix/crm": "^1.0.1071",
@@ -1,4 +1,4 @@
1
- import * as extensions from '@wix/astro/builders';
1
+ import { extensions } from '@wix/astro/builders';
2
2
  export const dashboardpagecountdownTimerSettings = extensions.dashboardPage({
3
3
  "id": "55494b14-6385-41a3-af6b-c165b0961f5f",
4
4
  "title": "Countdown Timer Settings",
@@ -1,4 +1,4 @@
1
- import * as extensions from '@wix/astro/builders';
1
+ import { extensions } from '@wix/astro/builders';
2
2
  export const embeddedscriptcountdowntimer = extensions.embeddedScript({
3
3
  "id": "f065e8bd-5906-49a5-91c6-fbd0d5d8b600",
4
4
  "scriptType": "FUNCTIONAL",
@@ -13,7 +13,7 @@
13
13
  "env": "wix env"
14
14
  },
15
15
  "dependencies": {
16
- "@wix/astro": "^2.11.0",
16
+ "@wix/astro": "^2.12.0",
17
17
  "@wix/crm": "^1.0.1071",
18
18
  "@wix/dashboard": "^1.3.36",
19
19
  "@wix/data": "^1.0.290",
@@ -18,7 +18,7 @@
18
18
  "@types/react": "^18.3.1",
19
19
  "@types/react-dom": "^18.3.1",
20
20
  "@wix/app-management": "^1.0.122",
21
- "@wix/astro": "^2.11.0",
21
+ "@wix/astro": "^2.12.0",
22
22
  "@wix/auto-patterns": "^1.40.0",
23
23
  "@wix/cli": "^1.1.92",
24
24
  "@wix/crm": "^1.0.1071",
@@ -1,5 +1,4 @@
1
- import { app } from '@wix/astro/builders';
2
- import * as extensions from '@wix/astro/builders';
1
+ import { app, extensions } from '@wix/astro/builders';
3
2
 
4
3
  export default app()
5
4
  .use(
@@ -13,7 +13,7 @@
13
13
  "env": "wix env"
14
14
  },
15
15
  "dependencies": {
16
- "@wix/astro": "^2.11.0",
16
+ "@wix/astro": "^2.12.0",
17
17
  "@wix/ecom": "^1.0.1392",
18
18
  "@wix/data": "^1.0.291",
19
19
  "@wix/design-system": "^1.219.0",
@@ -1,5 +1,4 @@
1
- import { app } from '@wix/astro/builders';
2
- import * as extensions from '@wix/astro/builders';
1
+ import { app, extensions } from '@wix/astro/builders';
3
2
 
4
3
  export default app().use(
5
4
  extensions.dashboardPage({
package/dist/out.js CHANGED
@@ -131625,7 +131625,7 @@ var require_extensionGenerators = __commonJS({
131625
131625
  return writeExtensionFile({
131626
131626
  outputPath,
131627
131627
  name,
131628
- builderMethodName: "webhook",
131628
+ builderMethodName: "event",
131629
131629
  extensionConfig,
131630
131630
  extensionType: extension.type,
131631
131631
  scaffoldDir
@@ -131690,15 +131690,15 @@ var require_extensionGenerators = __commonJS({
131690
131690
  name
131691
131691
  };
131692
131692
  case "ecom-additional-fees":
131693
- return { id, source };
131693
+ return { id, name, source };
131694
131694
  case "ecom-validations":
131695
- return { id, source };
131695
+ return { id, name, source };
131696
131696
  case "ecom-discount-triggers":
131697
- return { id, source };
131697
+ return { id, name, source };
131698
131698
  case "ecom-gift-cards":
131699
- return { id, source };
131699
+ return { id, name, source };
131700
131700
  case "ecom-payment-settings":
131701
- return { id, source };
131701
+ return { id, name, source };
131702
131702
  default:
131703
131703
  throw new ditto_codegen_types_12.UnsupportedExtensionTypeError(`Unsupported service plugin type ${servicePluginType}`, {
131704
131704
  extensionType: types_1.ExtensionType.SERVICE_PLUGIN,
@@ -131722,13 +131722,11 @@ var require_extensionGenerators = __commonJS({
131722
131722
  return {
131723
131723
  id,
131724
131724
  name,
131725
- tagName: "custom-element",
131725
+ tagName: kebabCaseComponentName,
131726
131726
  element: componentPath,
131727
- installation: { base: { autoAdd: true } },
131728
- base: { name: kebabCaseComponentName },
131729
- behaviors: {},
131730
- dependencies: [],
131731
- size: { height: { defaultHeight: 500 }, width: { defaultWidth: 500 } }
131727
+ installation: { autoAdd: true },
131728
+ width: { defaultWidth: 500, allowStretch: true },
131729
+ height: { defaultHeight: 500 }
131732
131730
  };
131733
131731
  }
131734
131732
  static createSiteComponentData(name, scaffoldDir, id) {
@@ -131801,7 +131799,7 @@ var require_extensionGenerators = __commonJS({
131801
131799
  function generateExtensionTsContent(builderMethodName, extensionConfig, extensionType, name) {
131802
131800
  const extensionName = generateUniqueExtensionName(extensionType, name);
131803
131801
  const configString = JSON.stringify(extensionConfig, null, 2);
131804
- return `import * as extensions from '@wix/astro/builders';
131802
+ return `import { extensions } from '@wix/astro/builders';
131805
131803
  export const ${extensionName} = extensions.${builderMethodName}(${configString})
131806
131804
  `;
131807
131805
  }
@@ -132326,9 +132324,9 @@ var require_cms = __commonJS({
132326
132324
  };
132327
132325
  });
132328
132326
  const generatedCode = `
132329
- import { genericExtension } from '@wix/astro/builders';
132327
+ import { extensions } from '@wix/astro/builders';
132330
132328
 
132331
- export const dataExtension = genericExtension(${JSON.stringify({
132329
+ export const dataExtension = extensions.genericExtension(${JSON.stringify({
132332
132330
  compId: (0, crypto_1.randomUUID)(),
132333
132331
  compName: "data-extension",
132334
132332
  compType: "DATA_COMPONENT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.97",
3
+ "version": "1.0.98",
4
4
  "description": "AI-powered Wix CLI app generator - standalone executable",
5
5
  "scripts": {
6
6
  "build": "node build.mjs",
@@ -24,5 +24,5 @@
24
24
  "@wix/ditto-codegen": "1.0.0",
25
25
  "esbuild": "^0.25.9"
26
26
  },
27
- "falconPackageHash": "afe9bce3d6b5fb8727213a511e20fe9a184bb2c9f6ea785311511f96"
27
+ "falconPackageHash": "134708d426becb9b076659aaa0c469c208cff9b11a296d25304518ca"
28
28
  }