@wix/cli-app 1.1.166 → 1.1.168
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/build/{AddPermissionCommand-AGZ6TBT7.js → AddPermissionCommand-U7WLSX4K.js} +2 -2
- package/build/{DevCommand-7FMNSUHV.js → DevCommand-HKLAZWVO.js} +12 -13
- package/build/DevCommand-HKLAZWVO.js.map +1 -0
- package/build/{GenerateCommand-PNSM4OY4.js → GenerateCommand-RIXAJ4TM.js} +10 -10
- package/build/{LogsCommand-DMLGI5DE.js → LogsCommand-42DAHY6G.js} +3 -3
- package/build/PreviewCommand-B6R72CVG.js +19 -0
- package/build/ReleaseCommand-M2JVYLVJ.js +23 -0
- package/build/{ServeCommand-7NUORVP2.js → ServeCommand-NFWPHZMW.js} +3 -3
- package/build/{build-MJDWPRFY.js → build-P73WLYJB.js} +6 -6
- package/build/{chunk-5T4ALNIO.js → chunk-2OTJK34O.js} +589 -49
- package/build/chunk-2OTJK34O.js.map +1 -0
- package/build/{chunk-2MY7QQCL.js → chunk-56EQ4QFU.js} +6 -6
- package/build/{chunk-Y527U3BQ.js → chunk-B52566JC.js} +2 -2
- package/build/{chunk-HDCH2WCL.js → chunk-OQLZ6DHX.js} +2 -475
- package/build/chunk-OQLZ6DHX.js.map +1 -0
- package/build/{chunk-ESVDFA6B.js → chunk-QCUWX5L4.js} +58 -40
- package/build/{chunk-ESVDFA6B.js.map → chunk-QCUWX5L4.js.map} +1 -1
- package/build/{chunk-S4PWCDXT.js → chunk-S23IP5IC.js} +2 -2
- package/build/{chunk-H3SI2KY5.js → chunk-SKJCY3HN.js} +2 -2
- package/build/{chunk-LQ6IMZDZ.js → chunk-TTFRWH6B.js} +18 -8
- package/build/chunk-TTFRWH6B.js.map +1 -0
- package/build/{chunk-GDTQBVDL.js → chunk-UDZLFU7R.js} +2 -2
- package/build/{chunk-653TJU7I.js → chunk-UFMGDIV6.js} +3 -3
- package/build/{chunk-2PKUEXXE.js → chunk-UR7ZIHOO.js} +6 -6
- package/build/chunk-UR7ZIHOO.js.map +1 -0
- package/build/{chunk-46IYET3Y.js → chunk-WGFKFWHW.js} +2 -2
- package/build/{chunk-JWIQGUSY.js → chunk-X23LLJJE.js} +1447 -3752
- package/build/{chunk-JWIQGUSY.js.map → chunk-X23LLJJE.js.map} +1 -1
- package/build/{chunk-JDIWNPSE.js → chunk-XNHGCIZS.js} +2 -2
- package/build/{chunk-A4D4RSPQ.js → chunk-Y2YU4FLR.js} +2 -2
- package/build/{chunk-ZWCD4IUF.js → chunk-ZGHWYTOU.js} +2 -2
- package/build/{chunk-T7S3EJPZ.js → chunk-ZPTYHTPU.js} +6 -6
- package/build/index.js +23 -23
- package/build/platform-sdk/dashboard.js.map +1 -1
- package/build/{preview-V3RY4EZ5.js → preview-Y4AI2ZBW.js} +12 -12
- package/build/{release-3PRSCSLJ.js → release-MKAGU2B2.js} +14 -14
- package/build/{render-command-NQNLWE3A.js → render-command-AMVWXP2I.js} +5 -5
- package/package.json +5 -5
- package/build/DevCommand-7FMNSUHV.js.map +0 -1
- package/build/PreviewCommand-JNYEKW25.js +0 -19
- package/build/ReleaseCommand-C3SVTJQB.js +0 -23
- package/build/chunk-2PKUEXXE.js.map +0 -1
- package/build/chunk-5T4ALNIO.js.map +0 -1
- package/build/chunk-HDCH2WCL.js.map +0 -1
- package/build/chunk-LQ6IMZDZ.js.map +0 -1
- /package/build/{AddPermissionCommand-AGZ6TBT7.js.map → AddPermissionCommand-U7WLSX4K.js.map} +0 -0
- /package/build/{GenerateCommand-PNSM4OY4.js.map → GenerateCommand-RIXAJ4TM.js.map} +0 -0
- /package/build/{LogsCommand-DMLGI5DE.js.map → LogsCommand-42DAHY6G.js.map} +0 -0
- /package/build/{PreviewCommand-JNYEKW25.js.map → PreviewCommand-B6R72CVG.js.map} +0 -0
- /package/build/{ReleaseCommand-C3SVTJQB.js.map → ReleaseCommand-M2JVYLVJ.js.map} +0 -0
- /package/build/{ServeCommand-7NUORVP2.js.map → ServeCommand-NFWPHZMW.js.map} +0 -0
- /package/build/{build-MJDWPRFY.js.map → build-P73WLYJB.js.map} +0 -0
- /package/build/{chunk-2MY7QQCL.js.map → chunk-56EQ4QFU.js.map} +0 -0
- /package/build/{chunk-Y527U3BQ.js.map → chunk-B52566JC.js.map} +0 -0
- /package/build/{chunk-S4PWCDXT.js.map → chunk-S23IP5IC.js.map} +0 -0
- /package/build/{chunk-H3SI2KY5.js.map → chunk-SKJCY3HN.js.map} +0 -0
- /package/build/{chunk-GDTQBVDL.js.map → chunk-UDZLFU7R.js.map} +0 -0
- /package/build/{chunk-653TJU7I.js.map → chunk-UFMGDIV6.js.map} +0 -0
- /package/build/{chunk-46IYET3Y.js.map → chunk-WGFKFWHW.js.map} +0 -0
- /package/build/{chunk-JDIWNPSE.js.map → chunk-XNHGCIZS.js.map} +0 -0
- /package/build/{chunk-A4D4RSPQ.js.map → chunk-Y2YU4FLR.js.map} +0 -0
- /package/build/{chunk-ZWCD4IUF.js.map → chunk-ZGHWYTOU.js.map} +0 -0
- /package/build/{chunk-T7S3EJPZ.js.map → chunk-ZPTYHTPU.js.map} +0 -0
- /package/build/{preview-V3RY4EZ5.js.map → preview-Y4AI2ZBW.js.map} +0 -0
- /package/build/{release-3PRSCSLJ.js.map → release-MKAGU2B2.js.map} +0 -0
- /package/build/{render-command-NQNLWE3A.js.map → render-command-AMVWXP2I.js.map} +0 -0
|
@@ -3,7 +3,7 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
getBackendEventSlug,
|
|
5
5
|
require_baseUniq
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Y2YU4FLR.js";
|
|
7
7
|
import {
|
|
8
8
|
API_BASEURL_PLACEHOLDER,
|
|
9
9
|
AlgorithmType,
|
|
@@ -69,7 +69,6 @@ import {
|
|
|
69
69
|
require_lib,
|
|
70
70
|
require_picomatch,
|
|
71
71
|
require_src,
|
|
72
|
-
require_types_impl,
|
|
73
72
|
virtualBlocksWidgetPanelScriptAssets,
|
|
74
73
|
virtualBlocksWidgetScriptAssets,
|
|
75
74
|
virtualCustomElementPanelHTMLAssets,
|
|
@@ -94,7 +93,7 @@ import {
|
|
|
94
93
|
virtualSiteComponentPreviewScriptAssets,
|
|
95
94
|
virtualSiteComponentScriptAssets,
|
|
96
95
|
virtualSiteComponentSdkScriptAssets
|
|
97
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-X23LLJJE.js";
|
|
98
97
|
import {
|
|
99
98
|
__commonJS,
|
|
100
99
|
__esm,
|
|
@@ -3532,31 +3531,31 @@ var require_lib3 = __commonJS({
|
|
|
3532
3531
|
init_esm_shims();
|
|
3533
3532
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3534
3533
|
exports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = exports.ElementType = void 0;
|
|
3535
|
-
var
|
|
3536
|
-
(function(
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
})(
|
|
3534
|
+
var ElementType2;
|
|
3535
|
+
(function(ElementType3) {
|
|
3536
|
+
ElementType3["Root"] = "root";
|
|
3537
|
+
ElementType3["Text"] = "text";
|
|
3538
|
+
ElementType3["Directive"] = "directive";
|
|
3539
|
+
ElementType3["Comment"] = "comment";
|
|
3540
|
+
ElementType3["Script"] = "script";
|
|
3541
|
+
ElementType3["Style"] = "style";
|
|
3542
|
+
ElementType3["Tag"] = "tag";
|
|
3543
|
+
ElementType3["CDATA"] = "cdata";
|
|
3544
|
+
ElementType3["Doctype"] = "doctype";
|
|
3545
|
+
})(ElementType2 = exports.ElementType || (exports.ElementType = {}));
|
|
3547
3546
|
function isTag(elem) {
|
|
3548
|
-
return elem.type ===
|
|
3547
|
+
return elem.type === ElementType2.Tag || elem.type === ElementType2.Script || elem.type === ElementType2.Style;
|
|
3549
3548
|
}
|
|
3550
3549
|
exports.isTag = isTag;
|
|
3551
|
-
exports.Root =
|
|
3552
|
-
exports.Text =
|
|
3553
|
-
exports.Directive =
|
|
3554
|
-
exports.Comment =
|
|
3555
|
-
exports.Script =
|
|
3556
|
-
exports.Style =
|
|
3557
|
-
exports.Tag =
|
|
3558
|
-
exports.CDATA =
|
|
3559
|
-
exports.Doctype =
|
|
3550
|
+
exports.Root = ElementType2.Root;
|
|
3551
|
+
exports.Text = ElementType2.Text;
|
|
3552
|
+
exports.Directive = ElementType2.Directive;
|
|
3553
|
+
exports.Comment = ElementType2.Comment;
|
|
3554
|
+
exports.Script = ElementType2.Script;
|
|
3555
|
+
exports.Style = ElementType2.Style;
|
|
3556
|
+
exports.Tag = ElementType2.Tag;
|
|
3557
|
+
exports.CDATA = ElementType2.CDATA;
|
|
3558
|
+
exports.Doctype = ElementType2.Doctype;
|
|
3560
3559
|
}
|
|
3561
3560
|
});
|
|
3562
3561
|
|
|
@@ -5046,7 +5045,7 @@ var require_lib6 = __commonJS({
|
|
|
5046
5045
|
};
|
|
5047
5046
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5048
5047
|
exports.render = void 0;
|
|
5049
|
-
var
|
|
5048
|
+
var ElementType2 = __importStar(require_lib3());
|
|
5050
5049
|
var entities_1 = require_lib5();
|
|
5051
5050
|
var foreignNames_js_1 = require_foreignNames();
|
|
5052
5051
|
var unencodedElements = /* @__PURE__ */ new Set([
|
|
@@ -5115,21 +5114,21 @@ var require_lib6 = __commonJS({
|
|
|
5115
5114
|
exports.default = render;
|
|
5116
5115
|
function renderNode(node, options) {
|
|
5117
5116
|
switch (node.type) {
|
|
5118
|
-
case
|
|
5117
|
+
case ElementType2.Root:
|
|
5119
5118
|
return render(node.children, options);
|
|
5120
5119
|
// @ts-expect-error We don't use `Doctype` yet
|
|
5121
|
-
case
|
|
5122
|
-
case
|
|
5120
|
+
case ElementType2.Doctype:
|
|
5121
|
+
case ElementType2.Directive:
|
|
5123
5122
|
return renderDirective(node);
|
|
5124
|
-
case
|
|
5123
|
+
case ElementType2.Comment:
|
|
5125
5124
|
return renderComment(node);
|
|
5126
|
-
case
|
|
5125
|
+
case ElementType2.CDATA:
|
|
5127
5126
|
return renderCdata(node);
|
|
5128
|
-
case
|
|
5129
|
-
case
|
|
5130
|
-
case
|
|
5127
|
+
case ElementType2.Script:
|
|
5128
|
+
case ElementType2.Style:
|
|
5129
|
+
case ElementType2.Tag:
|
|
5131
5130
|
return renderTag(node, options);
|
|
5132
|
-
case
|
|
5131
|
+
case ElementType2.Text:
|
|
5133
5132
|
return renderText(node, options);
|
|
5134
5133
|
}
|
|
5135
5134
|
}
|
|
@@ -39621,7 +39620,7 @@ var siteComponentSchema = external_exports.object({
|
|
|
39621
39620
|
})
|
|
39622
39621
|
})
|
|
39623
39622
|
});
|
|
39624
|
-
var
|
|
39623
|
+
var knownComponentSchema = external_exports.discriminatedUnion("compType", [
|
|
39625
39624
|
backendWorkerSchema,
|
|
39626
39625
|
backofficePageSchema,
|
|
39627
39626
|
backofficeExtensionSchema,
|
|
@@ -39655,6 +39654,26 @@ var componentSchema = external_exports.discriminatedUnion("compType", [
|
|
|
39655
39654
|
monitoringSchema,
|
|
39656
39655
|
siteComponentSchema
|
|
39657
39656
|
]);
|
|
39657
|
+
var knownCompTypes = new Set(knownComponentSchema.optionsMap.keys());
|
|
39658
|
+
var unknownComponentPassthroughSchema = external_exports.object({ compType: external_exports.string() }).passthrough();
|
|
39659
|
+
var componentSchema = external_exports.any().transform((val, ctx) => {
|
|
39660
|
+
if (typeof val !== "object" || val == null || typeof val.compType !== "string") {
|
|
39661
|
+
ctx.addIssue({
|
|
39662
|
+
code: external_exports.ZodIssueCode.custom,
|
|
39663
|
+
message: "Component must be an object with `compType` property"
|
|
39664
|
+
});
|
|
39665
|
+
return external_exports.NEVER;
|
|
39666
|
+
}
|
|
39667
|
+
const schema = knownCompTypes.has(val.compType) ? knownComponentSchema : unknownComponentPassthroughSchema;
|
|
39668
|
+
const result = schema.safeParse(val);
|
|
39669
|
+
if (!result.success) {
|
|
39670
|
+
for (const issue of result.error.issues) {
|
|
39671
|
+
ctx.addIssue(issue);
|
|
39672
|
+
}
|
|
39673
|
+
return external_exports.NEVER;
|
|
39674
|
+
}
|
|
39675
|
+
return result.data;
|
|
39676
|
+
});
|
|
39658
39677
|
var appManifestSchema = external_exports.object({
|
|
39659
39678
|
appId: external_exports.string(),
|
|
39660
39679
|
components: external_exports.array(componentSchema)
|
|
@@ -40260,7 +40279,6 @@ ${script.innerHTML}`;
|
|
|
40260
40279
|
// src/vite/plugins/config-extensions-file-emitter.ts
|
|
40261
40280
|
init_esm_shims();
|
|
40262
40281
|
import { join as join5, basename as basename2 } from "node:path";
|
|
40263
|
-
var import_types_impl = __toESM(require_types_impl(), 1);
|
|
40264
40282
|
async function processPresetsThumbnailUrls(presets, basePath, emitAssetFile) {
|
|
40265
40283
|
for (const preset of Object.values(presets)) {
|
|
40266
40284
|
if (preset.thumbnailUrl && RELATIVE_ASSET_PATH_REGEX.test(preset.thumbnailUrl)) {
|
|
@@ -40271,7 +40289,7 @@ async function processPresetsThumbnailUrls(presets, basePath, emitAssetFile) {
|
|
|
40271
40289
|
async function processElementsThumbnailUrls(elements, basePath, emitAssetFile) {
|
|
40272
40290
|
for (const [elementKey, elementItem] of Object.entries(elements)) {
|
|
40273
40291
|
const elementPath = join5(basePath, ELEMENTS_DIR, elementKey);
|
|
40274
|
-
if (elementItem.elementType ===
|
|
40292
|
+
if (elementItem.elementType === ElementType.inlineElement) {
|
|
40275
40293
|
if (elementItem.inlineElement.presets) {
|
|
40276
40294
|
await processPresetsThumbnailUrls(
|
|
40277
40295
|
elementItem.inlineElement.presets,
|
|
@@ -40287,7 +40305,7 @@ async function processElementsThumbnailUrls(elements, basePath, emitAssetFile) {
|
|
|
40287
40305
|
);
|
|
40288
40306
|
}
|
|
40289
40307
|
}
|
|
40290
|
-
if (elementItem.elementType ===
|
|
40308
|
+
if (elementItem.elementType === ElementType.refElement) {
|
|
40291
40309
|
if (elementItem.refElement.resolvedElement?.presets) {
|
|
40292
40310
|
await processPresetsThumbnailUrls(
|
|
40293
40311
|
elementItem.refElement.resolvedElement.presets,
|
|
@@ -42675,4 +42693,4 @@ export {
|
|
|
42675
42693
|
he/he.js:
|
|
42676
42694
|
(*! https://mths.be/he v1.2.0 by @mathias | MIT license *)
|
|
42677
42695
|
*/
|
|
42678
|
-
//# sourceMappingURL=chunk-
|
|
42696
|
+
//# sourceMappingURL=chunk-QCUWX5L4.js.map
|