@wix/ditto-codegen-public 1.0.496 → 1.0.498

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 +12 -3
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -12999,7 +12999,7 @@ var require_studio_2 = __commonJS({
12999
12999
  "../codegen-common-logic/dist/tool-policies/studio-2.js"(exports2) {
13000
13000
  "use strict";
13001
13001
  Object.defineProperty(exports2, "__esModule", { value: true });
13002
- exports2.STUDIO_2_POLICIES = exports2.STUDIO_2_PREVIEW_RELEASE_POLICY = exports2.STUDIO_2_CUSTOM_ELEMENT_GENERATE_POLICY = exports2.STUDIO_2_SITE_PLUGIN_SLOTS_GENERATE_POLICY = exports2.SITE_PLUGIN_SCHEMA_COMMAND_POLICY = exports2.STUDIO_2_SKILL_ROUTING_POLICY = exports2.SITE_PLUGIN_PAGES_POLICY = exports2.SITE_PLUGIN_REDIRECT = exports2.SITE_PLUGIN_UNSUPPORTED_PAGES = exports2.CUSTOM_ELEMENT_REFERENCES_POLICY = void 0;
13002
+ exports2.STUDIO_2_POLICIES = exports2.STUDIO_2_BRANDED_COMPONENTS_POLICY = exports2.STUDIO_2_PREVIEW_RELEASE_POLICY = exports2.STUDIO_2_CUSTOM_ELEMENT_GENERATE_POLICY = exports2.STUDIO_2_SITE_PLUGIN_SLOTS_GENERATE_POLICY = exports2.SITE_PLUGIN_SCHEMA_COMMAND_POLICY = exports2.STUDIO_2_SKILL_ROUTING_POLICY = exports2.SITE_PLUGIN_PAGES_POLICY = exports2.SITE_PLUGIN_REDIRECT = exports2.SITE_PLUGIN_UNSUPPORTED_PAGES = exports2.CUSTOM_ELEMENT_REFERENCES_POLICY = void 0;
13003
13003
  exports2.CUSTOM_ELEMENT_REFERENCES_POLICY = {
13004
13004
  type: "read",
13005
13005
  mode: "block",
@@ -13059,6 +13059,14 @@ ${STUDIO_2_SITE_UI_ROUTING}`
13059
13059
  commandFragments: ["npx wix preview", "npx wix release"],
13060
13060
  message: `BLOCKED: \`wix preview\` and \`wix release\` cannot run in this environment. Skip those checklist items and run every other post-build step the skill requires. Do not retry.`
13061
13061
  };
13062
+ exports2.STUDIO_2_BRANDED_COMPONENTS_POLICY = {
13063
+ type: "read",
13064
+ mode: "prepend",
13065
+ isInstruction: true,
13066
+ pathFragments: ["wix-app/references/EDITOR_REACT_COMPONENT"],
13067
+ message: `SITE THEME: This host's rules ask for the site theme, so new Editor React Components are themed by default. When creating a component, treat wix-app's references/editor-react-component/BRANDED-COMPONENTS.md as a required reference even if the request does not mention branding, and follow it for how to apply the theme. Brik tool imports keep the stylesheet the wix-brik skill writes.`,
13068
+ driftMarkers: ["the host's rules ask for it"]
13069
+ };
13062
13070
  exports2.STUDIO_2_POLICIES = [
13063
13071
  exports2.CUSTOM_ELEMENT_REFERENCES_POLICY,
13064
13072
  exports2.SITE_PLUGIN_PAGES_POLICY,
@@ -13066,7 +13074,8 @@ ${STUDIO_2_SITE_UI_ROUTING}`
13066
13074
  exports2.STUDIO_2_SKILL_ROUTING_POLICY,
13067
13075
  exports2.STUDIO_2_PREVIEW_RELEASE_POLICY,
13068
13076
  exports2.STUDIO_2_SITE_PLUGIN_SLOTS_GENERATE_POLICY,
13069
- exports2.STUDIO_2_CUSTOM_ELEMENT_GENERATE_POLICY
13077
+ exports2.STUDIO_2_CUSTOM_ELEMENT_GENERATE_POLICY,
13078
+ exports2.STUDIO_2_BRANDED_COMPONENTS_POLICY
13070
13079
  ];
13071
13080
  }
13072
13081
  });
@@ -16228,7 +16237,7 @@ var require_validation_state = __commonJS({
16228
16237
  exports2.VALIDATION_STATE_EVENT_TYPE = "validation_state";
16229
16238
  exports2.VALIDATION_LOADED_EVENT_TYPE = "validation_loaded";
16230
16239
  exports2.VALIDATION_STATE_PLUGIN_FILENAME = "validation-state.ts";
16231
- exports2.VALIDATION_NUDGE = "Project files need validation. Follow your validation workflow (delegate to codegen-validator if your instructions require it), run validate({ runBuild: true }), and fix any errors before finishing. Your last message is shown to the user: once validation passes, end with a short plain-language summary of what changed for them, not the validation status.";
16240
+ exports2.VALIDATION_NUDGE = "Project files need validation. Follow your validation workflow (delegate to codegen-validator if your instructions require it), run validate({ runBuild: true }), and fix any errors before finishing. Your last message is shown to the user: once validation passes, end with a short plain-language summary for them: what changed, and if there is something you could not do, why and what they need to do next. Do not mention validation.";
16232
16241
  function buildValidationStateSource() {
16233
16242
  return String.raw`// Generated by @wix/ditto-codegen (validation-state). Do not edit.
16234
16243
  const EVENT_TYPE = ${JSON.stringify(exports2.VALIDATION_STATE_EVENT_TYPE)};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.496",
3
+ "version": "1.0.498",
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": "f6d543aeb448679152ce96cdffe2177794944683fc278598d905fb0d"
32
+ "falconPackageHash": "9e2b59bd45d6e23626ef67ddfdff251833887d4ab8341a67f9b6622c"
33
33
  }