@wix/himalaya-cli 0.1080.0 → 0.1082.0
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/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +18 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +21 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +497 -38
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-rich-content.mjs +2 -1
- package/dist/cli.mjs +2050 -1283
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-reference.json +10 -1
- package/guides/component-reference.md +20 -2
- package/guides/index.json +1 -1
- package/package.json +2 -2
|
@@ -211,6 +211,7 @@ function encodeRichContent(doc, opts = {}) {
|
|
|
211
211
|
}
|
|
212
212
|
var TOO_DEEP = { reason: "too_deep" };
|
|
213
213
|
var PATH_SHAPED = /^[0-9.]+$/;
|
|
214
|
+
var unusableId = (id) => PATH_SHAPED.test(id) || id.includes("/") || id.includes("$");
|
|
214
215
|
var isWrapper = (t) => t === "COLLAPSIBLE_LIST" || t === "COLLAPSIBLE_ITEM" || t === "COLLAPSIBLE_ITEM_TITLE" || t === "COLLAPSIBLE_ITEM_BODY";
|
|
215
216
|
var holdsBlocks = (t) => t === void 0 || t === "BULLETED_LIST" || t === "ORDERED_LIST" || t === "LIST_ITEM" || t === "BLOCKQUOTE" || isWrapper(t);
|
|
216
217
|
var LINK_FIELDS = {
|
|
@@ -301,7 +302,7 @@ function cleanNode(node, path, depth, ctx, parentType) {
|
|
|
301
302
|
const inBlocks = holdsBlocks(parentType);
|
|
302
303
|
if (node.type !== "TEXT" || inBlocks) {
|
|
303
304
|
const own = typeof node.id === "string" ? node.id : "";
|
|
304
|
-
const usable = own !== "" && !
|
|
305
|
+
const usable = own !== "" && !unusableId(own);
|
|
305
306
|
if (inBlocks && !isWrapper(node.type)) {
|
|
306
307
|
if (usable && !ctx.ids.has(own)) ctx.ids.add(own);
|
|
307
308
|
else node.id = path;
|