@ones-editor/editor 2.3.0-beta.2 → 2.3.0-beta.3
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/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +14 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -80237,8 +80237,18 @@ ${docStr}
|
|
|
80237
80237
|
if (parent) {
|
|
80238
80238
|
const blockData = editor.getBlockData(block);
|
|
80239
80239
|
const embedData = blockData.embedData;
|
|
80240
|
-
const
|
|
80241
|
-
|
|
80240
|
+
const hiddenHeadingsCustomIds = new Set(embedData.hiddenHeadings || []);
|
|
80241
|
+
const hiddenHeadings = /* @__PURE__ */ new Set();
|
|
80242
|
+
toc.nodes.forEach((node) => {
|
|
80243
|
+
var _a;
|
|
80244
|
+
const text2 = node.block.text || [];
|
|
80245
|
+
const first = text2[0];
|
|
80246
|
+
const customId = (_a = first == null ? void 0 : first.attributes) == null ? void 0 : _a["custom-heading-id"];
|
|
80247
|
+
if (customId && hiddenHeadingsCustomIds.has(customId)) {
|
|
80248
|
+
hiddenHeadings.add(customId);
|
|
80249
|
+
}
|
|
80250
|
+
});
|
|
80251
|
+
renderToc(editor, parent, toc, hiddenHeadings);
|
|
80242
80252
|
}
|
|
80243
80253
|
});
|
|
80244
80254
|
});
|
|
@@ -89659,7 +89669,7 @@ ${data2.flowchartText}
|
|
|
89659
89669
|
}
|
|
89660
89670
|
}
|
|
89661
89671
|
});
|
|
89662
|
-
editor.version = "2.3.0-beta.
|
|
89672
|
+
editor.version = "2.3.0-beta.3";
|
|
89663
89673
|
return editor;
|
|
89664
89674
|
}
|
|
89665
89675
|
function isDoc(doc2) {
|
|
@@ -89773,7 +89783,7 @@ ${data2.flowchartText}
|
|
|
89773
89783
|
}
|
|
89774
89784
|
}
|
|
89775
89785
|
OnesEditorToolbar.register(editor);
|
|
89776
|
-
editor.version = "2.3.0-beta.
|
|
89786
|
+
editor.version = "2.3.0-beta.3";
|
|
89777
89787
|
return editor;
|
|
89778
89788
|
}
|
|
89779
89789
|
async function showDocVersions(editor, options, serverUrl) {
|