@wix/ditto-codegen-public 1.0.340 → 1.0.341
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/dist/out.js +3 -16
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -11625,15 +11625,14 @@ var require_pre_run_decision = __commonJS({
|
|
|
11625
11625
|
const extensionName = siteUIExtension.name;
|
|
11626
11626
|
const currentType = siteUIExtension.type;
|
|
11627
11627
|
logger_12.logger.info(`[PreDecision] Found site UI extension: "${extensionName}" (current type: ${currentType})`);
|
|
11628
|
-
const { widget: widgetType, component: componentType } = getSiteUITypePair(currentType);
|
|
11629
11628
|
const options = [
|
|
11630
11629
|
{
|
|
11631
|
-
id:
|
|
11630
|
+
id: types_1.ExtensionType.CUSTOM_ELEMENT_WIDGET,
|
|
11632
11631
|
label: "Custom Element Widget",
|
|
11633
11632
|
description: "A self-contained widget built as a Custom Element, embedded on the site. Best for standalone, reusable components."
|
|
11634
11633
|
},
|
|
11635
11634
|
{
|
|
11636
|
-
id:
|
|
11635
|
+
id: types_1.ExtensionType.EDITOR_REACT_COMPONENT,
|
|
11637
11636
|
label: "Editor React Component",
|
|
11638
11637
|
description: "A React component that integrates with the site builder. Best for components that need to work with Wix editor features."
|
|
11639
11638
|
}
|
|
@@ -11654,19 +11653,7 @@ var require_pre_run_decision = __commonJS({
|
|
|
11654
11653
|
};
|
|
11655
11654
|
exports2.checkSiteUIDecision = checkSiteUIDecision;
|
|
11656
11655
|
function isSiteUIExtension(extension) {
|
|
11657
|
-
return extension.type === types_1.ExtensionType.
|
|
11658
|
-
}
|
|
11659
|
-
function isLegacySiteUIType(type) {
|
|
11660
|
-
return type === types_1.ExtensionType.SITE_WIDGET || type === types_1.ExtensionType.SITE_COMPONENT;
|
|
11661
|
-
}
|
|
11662
|
-
function getSiteUITypePair(type) {
|
|
11663
|
-
return isLegacySiteUIType(type) ? {
|
|
11664
|
-
widget: types_1.ExtensionType.SITE_WIDGET,
|
|
11665
|
-
component: types_1.ExtensionType.SITE_COMPONENT
|
|
11666
|
-
} : {
|
|
11667
|
-
widget: types_1.ExtensionType.CUSTOM_ELEMENT_WIDGET,
|
|
11668
|
-
component: types_1.ExtensionType.EDITOR_REACT_COMPONENT
|
|
11669
|
-
};
|
|
11656
|
+
return extension.type === types_1.ExtensionType.CUSTOM_ELEMENT_WIDGET || extension.type === types_1.ExtensionType.EDITOR_REACT_COMPONENT;
|
|
11670
11657
|
}
|
|
11671
11658
|
function applyTypeToBlueprint(blueprint, extensionName, type, label) {
|
|
11672
11659
|
const summaryNotice = `[USER DECISION] The user explicitly chose "${label}" for the "${extensionName}" extension. You MUST generate it as type ${type}. Do NOT use any other type.`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/ditto-codegen-public",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.341",
|
|
4
4
|
"description": "AI-powered Wix CLI app generator - standalone executable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node build.mjs",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"esbuild": "^0.27.2",
|
|
29
29
|
"vitest": "^4.0.16"
|
|
30
30
|
},
|
|
31
|
-
"falconPackageHash": "
|
|
31
|
+
"falconPackageHash": "ffdf9ad345feb09d586cb8079cb3df12183d901c5c711a37790af82d"
|
|
32
32
|
}
|