@wix/ditto-codegen-public 1.0.423 → 1.0.425

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.
Files changed (2) hide show
  1. package/dist/out.js +17 -2
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -14464,8 +14464,23 @@ var require_studio_2_site_ui_rules = __commonJS({
14464
14464
 
14465
14465
  In the **Studio 2** environment, all site UI MUST be built as **Editor React Components** (\`extensionType: EDITOR_REACT_COMPONENT\`).
14466
14466
 
14467
- - **Never create a Custom Element / site widget** (\`extensionType: CUSTOM_ELEMENT\`, \`CUSTOM_ELEMENT_WIDGET\`).
14468
- - The word "widget" does **not** mean Custom Element here \u2014 implement it as an Editor React Component. When invoking the \`wix-app\` skill, explicitly pin the extension type so it isn't inferred from "widget".`;
14467
+ - **Never create a Custom Element / site widget** (\`extensionType: CUSTOM_ELEMENT\`, \`CUSTOM_ELEMENT_WIDGET\`). This rule overrides the prompt \u2014 even if the prompt explicitly says "custom element", build it as an Editor React Component instead.
14468
+ - The words "widget" and "custom element" in the prompt do **not** mean Custom Element \u2014 always implement them as Editor React Components.
14469
+
14470
+ ## Studio 2 Site Plugin Restrictions
14471
+
14472
+ The following pages **no longer support site plugins** in Studio 2. **This overrides the site plugin skills reference** \u2014 even if SLOTS.md lists these pages as supported, do NOT use a site plugin for them:
14473
+
14474
+ - **Product Page (New Version)** (Wix Stores)
14475
+ - **Product Page (Old Version)** (Wix Stores)
14476
+ - **Service Page** (Wix Bookings)
14477
+ - **Event Details Page** (Wix Events)
14478
+
14479
+ Build the appropriate Studio 2 extension instead:
14480
+ - **Need to render UI on the page** \u2192 Editor React Component (\`extensionType: EDITOR_REACT_COMPONENT\`)
14481
+ - **Need to expose shared data or state to components on the page (no UI)** \u2192 Context Provider (use the \`wix-cli-context-provider\` skill)
14482
+
14483
+ Both can be combined when the use case requires rendering UI and sharing state.`;
14469
14484
  }
14470
14485
  });
14471
14486
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.423",
3
+ "version": "1.0.425",
4
4
  "description": "AI-powered Wix CLI app generator - standalone executable",
5
5
  "scripts": {
6
6
  "build": "node build.mjs",
@@ -29,5 +29,5 @@
29
29
  "esbuild": "^0.27.2",
30
30
  "vitest": "^4.0.16"
31
31
  },
32
- "falconPackageHash": "44836453795a6e8fd60142ac742ca0a14b4d20dccdbb53c0371e3705"
32
+ "falconPackageHash": "1f6d562a70f6dbe69b890854b369976d285c889a8b16687fb4980d2d"
33
33
  }