@harbour-enterprises/superdoc 1.4.0-next.2 → 1.4.0-next.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.
@@ -1,5 +1,5 @@
1
- import { B as BIT8, M as MAX_SAFE_INTEGER, c as create, a as BITS7, u as utf8TextDecoder, b as create$1, s as setIfUndefined, d as create$2, f as from, e as floor$1, g as equalityDeep, w as writeVarUint, h as writeVarString, t as toUint8Array, i as createEncoder, j as createInjectionKey, k as toString, l as throwError, m as useSsrAdapter, n as configProviderInjectionKey, o as cssrAnchorMetaName, p as globalStyle, q as cB, r as c, v as isMounted, x as commonVariables$2, y as cM, z as cNotM, A as cE, C as derived, D as changeColor, E as insideModal, F as insidePopover, G as resolveWrappedSlot, H as on, I as warnOnce, J as useConfig, K as useMergedState, L as useMemo, N as useTheme, O as useRtl, P as createKey, Q as useThemeClass, R as createId, S as call, T as render, U as messageProviderInjectionKey, V as messageApiInjectionKey, W as fromBase64, X as onChange, Y as varStorage, Z as toBase64, _ as createUint8ArrayFromArrayBuffer, $ as offChange, a0 as writeVarUint8Array, a1 as map, a2 as length, a3 as isNode, a4 as min, a5 as pow, a6 as comments_module_events, a7 as getFileObject, a8 as getTrackChanges, a9 as CommentsPluginKey, aa as TrackChangesBasePluginKey, ab as Editor, ac as getRichTextExtensions, ad as ellipsisVerticalSvg, ae as xmarkIconSvg, af as checkIconSvg, ag as caretDownIconSvg, ah as commentIconSvg, ai as _export_sfc, aj as NDropdown, ak as SuperInput, al as vClickOutside, am as PresentationEditor, an as SuperEditor, ao as AIWriter, ap as NConfigProvider, aq as SuperToolbar } from "./index-dnQEKI-e.es.js";
2
- import "./SuperConverter-DxlpZQZQ.es.js";
1
+ import { B as BIT8, M as MAX_SAFE_INTEGER, c as create, a as BITS7, u as utf8TextDecoder, b as create$1, s as setIfUndefined, d as create$2, f as from, e as floor$1, g as equalityDeep, w as writeVarUint, h as writeVarString, t as toUint8Array, i as createEncoder, j as createInjectionKey, k as toString, l as throwError, m as useSsrAdapter, n as configProviderInjectionKey, o as cssrAnchorMetaName, p as globalStyle, q as cB, r as c, v as isMounted, x as commonVariables$2, y as cM, z as cNotM, A as cE, C as derived, D as changeColor, E as insideModal, F as insidePopover, G as resolveWrappedSlot, H as on, I as warnOnce, J as useConfig, K as useMergedState, L as useMemo, N as useTheme, O as useRtl, P as createKey, Q as useThemeClass, R as createId, S as call, T as render, U as messageProviderInjectionKey, V as messageApiInjectionKey, W as fromBase64, X as onChange, Y as varStorage, Z as toBase64, _ as createUint8ArrayFromArrayBuffer, $ as offChange, a0 as writeVarUint8Array, a1 as map, a2 as length, a3 as isNode, a4 as min, a5 as pow, a6 as comments_module_events, a7 as getFileObject, a8 as getTrackChanges, a9 as CommentsPluginKey, aa as TrackChangesBasePluginKey, ab as Editor, ac as getRichTextExtensions, ad as ellipsisVerticalSvg, ae as xmarkIconSvg, af as checkIconSvg, ag as caretDownIconSvg, ah as commentIconSvg, ai as _export_sfc, aj as NDropdown, ak as SuperInput, al as vClickOutside, am as PresentationEditor, an as SuperEditor, ao as AIWriter, ap as NConfigProvider, aq as SuperToolbar } from "./index-B-20lDKU.es.js";
2
+ import "./SuperConverter-MYkKoPrv.es.js";
3
3
  import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
4
4
  import { E as EventEmitter } from "./eventemitter3-CwrdEv8r.es.js";
5
5
  import { HocuspocusProvider, HocuspocusProviderWebsocket } from "@hocuspocus/provider";
@@ -7479,7 +7479,7 @@ const _sfc_main = {
7479
7479
  __name: "SuperDoc",
7480
7480
  emits: ["selection-update"],
7481
7481
  setup(__props, { emit: __emit }) {
7482
- const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-Dnv-LGqI.es.js"));
7482
+ const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-D859yVUF.es.js"));
7483
7483
  const superdocStore = useSuperdocStore();
7484
7484
  const commentsStore = useCommentsStore();
7485
7485
  const {
@@ -8433,7 +8433,7 @@ class SuperDoc extends EventEmitter {
8433
8433
  this.config.colors = shuffleArray(this.config.colors);
8434
8434
  this.userColorMap = /* @__PURE__ */ new Map();
8435
8435
  this.colorIndex = 0;
8436
- this.version = "1.4.0-next.2";
8436
+ this.version = "1.4.0-next.3";
8437
8437
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
8438
8438
  this.superdocId = config.superdocId || v4();
8439
8439
  this.colors = this.config.colors;
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  require("../chunks/jszip-C8_CqJxM.cjs");
4
4
  require("../chunks/helpers-nOdwpmwb.cjs");
5
- const superEditor_converter = require("../chunks/SuperConverter-Dy4wkQEB.cjs");
5
+ const superEditor_converter = require("../chunks/SuperConverter-pEsdZ6oR.cjs");
6
6
  require("../chunks/uuid-R7L08bOx.cjs");
7
7
  exports.SuperConverter = superEditor_converter.SuperConverter;
@@ -1,6 +1,6 @@
1
1
  import "../chunks/jszip-B1fkPkPJ.es.js";
2
2
  import "../chunks/helpers-C8e9wR5l.es.js";
3
- import { S } from "../chunks/SuperConverter-DxlpZQZQ.es.js";
3
+ import { S } from "../chunks/SuperConverter-MYkKoPrv.es.js";
4
4
  import "../chunks/uuid-CjlX8hrF.es.js";
5
5
  export {
6
6
  S as SuperConverter
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./chunks/index-DJuBZura.cjs");
3
+ const index = require("./chunks/index-C0kuhYCD.cjs");
4
4
  const superEditor_docxZipper = require("./super-editor/docx-zipper.cjs");
5
5
  const superEditor_fileZipper = require("./super-editor/file-zipper.cjs");
6
6
  const vue = require("./chunks/vue-De9wkgLl.cjs");
7
- const superEditor_converter = require("./chunks/SuperConverter-Dy4wkQEB.cjs");
7
+ const superEditor_converter = require("./chunks/SuperConverter-pEsdZ6oR.cjs");
8
8
  function isNodeType(node, name) {
9
9
  return node.type.name === name;
10
10
  }
@@ -1,9 +1,9 @@
1
- import { ax as Node, ay as Mark } from "./chunks/index-dnQEKI-e.es.js";
2
- import { ao, au, a9, ab, aw, am, av, aA, an, ak, aq, az, aa, as, aC, aE, aB, ac, aD, ar, at } from "./chunks/index-dnQEKI-e.es.js";
1
+ import { ax as Node, ay as Mark } from "./chunks/index-B-20lDKU.es.js";
2
+ import { ao, au, a9, ab, aw, am, av, aA, an, ak, aq, az, aa, as, aC, aE, aB, ac, aD, ar, at } from "./chunks/index-B-20lDKU.es.js";
3
3
  import { default as default2 } from "./super-editor/docx-zipper.es.js";
4
4
  import { createZip } from "./super-editor/file-zipper.es.js";
5
5
  import { d as defineComponent, E as createElementBlock, G as openBlock, K as createBaseVNode } from "./chunks/vue-BnBKJwCW.es.js";
6
- import { S, r } from "./chunks/SuperConverter-DxlpZQZQ.es.js";
6
+ import { S, r } from "./chunks/SuperConverter-MYkKoPrv.es.js";
7
7
  function isNodeType(node, name) {
8
8
  return node.type.name === name;
9
9
  }
package/dist/superdoc.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./chunks/index-DJuBZura.cjs");
4
- const superdoc = require("./chunks/index-DpgrTjYC.cjs");
5
- const superEditor_converter = require("./chunks/SuperConverter-Dy4wkQEB.cjs");
3
+ const index = require("./chunks/index-C0kuhYCD.cjs");
4
+ const superdoc = require("./chunks/index-D3X3kMWD.cjs");
5
+ const superEditor_converter = require("./chunks/SuperConverter-pEsdZ6oR.cjs");
6
6
  const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
7
7
  require("./chunks/jszip-C8_CqJxM.cjs");
8
8
  require("./chunks/helpers-nOdwpmwb.cjs");
@@ -1,6 +1,6 @@
1
- import { au, ab, aw, av, as, a7, ac, ar, at } from "./chunks/index-dnQEKI-e.es.js";
2
- import { D, H, P, S, c } from "./chunks/index-D246eEeJ.es.js";
3
- import { S as S2, r } from "./chunks/SuperConverter-DxlpZQZQ.es.js";
1
+ import { au, ab, aw, av, as, a7, ac, ar, at } from "./chunks/index-B-20lDKU.es.js";
2
+ import { D, H, P, S, c } from "./chunks/index-DF3OVaQj.es.js";
3
+ import { S as S2, r } from "./chunks/SuperConverter-MYkKoPrv.es.js";
4
4
  import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
5
5
  import "./chunks/jszip-B1fkPkPJ.es.js";
6
6
  import "./chunks/helpers-C8e9wR5l.es.js";
@@ -36696,7 +36696,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
36696
36696
  static getStoredSuperdocVersion(docx) {
36697
36697
  return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
36698
36698
  }
36699
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.4.0-next.2") {
36699
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.4.0-next.3") {
36700
36700
  return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
36701
36701
  }
36702
36702
  /**
@@ -62512,7 +62512,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
62512
62512
  return false;
62513
62513
  }
62514
62514
  };
62515
- const summaryVersion = "1.4.0-next.2";
62515
+ const summaryVersion = "1.4.0-next.3";
62516
62516
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
62517
62517
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
62518
62518
  function mapAttributes(attrs) {
@@ -65145,7 +65145,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
65145
65145
  * Process collaboration migrations
65146
65146
  */
65147
65147
  processCollaborationMigrations() {
65148
- console.debug("[checkVersionMigrations] Current editor version", "1.4.0-next.2");
65148
+ console.debug("[checkVersionMigrations] Current editor version", "1.4.0-next.3");
65149
65149
  if (!this.options.ydoc) return;
65150
65150
  const metaMap = this.options.ydoc.getMap("meta");
65151
65151
  let docVersion = metaMap.get("version");
@@ -90660,18 +90660,38 @@ ${l}
90660
90660
  return unwrapped.length > 0 ? unwrapped : void 0;
90661
90661
  };
90662
90662
  const styleNodeAttrs = { ...attrs };
90663
- const attrTabStops = unwrapTabStops(styleNodeAttrs.tabStops ?? styleNodeAttrs.tabs) ?? styleNodeAttrs.tabStops;
90664
- const hydratedTabStops = unwrapTabStops(hydrated?.tabStops) ?? hydrated?.tabStops;
90665
- const paragraphTabStops = unwrapTabStops(paragraphProps.tabStops) ?? paragraphProps.tabStops;
90666
- let tabSource = attrTabStops;
90667
- if (!tabSource && hydratedTabStops) {
90668
- tabSource = hydratedTabStops;
90669
- }
90670
- if (!tabSource && paragraphTabStops) {
90671
- tabSource = paragraphTabStops;
90672
- }
90673
- if (tabSource) {
90674
- styleNodeAttrs.tabStops = tabSource;
90663
+ const asTabStopArray = (value) => {
90664
+ return Array.isArray(value) ? value : void 0;
90665
+ };
90666
+ const attrTabStops = unwrapTabStops(styleNodeAttrs.tabStops ?? styleNodeAttrs.tabs) ?? asTabStopArray(styleNodeAttrs.tabStops);
90667
+ const hydratedTabStops = unwrapTabStops(hydrated?.tabStops) ?? asTabStopArray(hydrated?.tabStops);
90668
+ const paragraphTabStops = unwrapTabStops(paragraphProps.tabStops) ?? asTabStopArray(paragraphProps.tabStops);
90669
+ const TAB_STOP_PX_TO_TWIPS = 15;
90670
+ const TAB_STOP_TWIPS_THRESHOLD = 1e3;
90671
+ const getTabStopPosition = (entry) => {
90672
+ const originalPos = pickNumber(entry.originalPos);
90673
+ if (originalPos != null) return originalPos;
90674
+ const posValue = pickNumber(entry.pos ?? entry.position ?? entry.offset);
90675
+ if (posValue == null) return void 0;
90676
+ return posValue > TAB_STOP_TWIPS_THRESHOLD ? posValue : Math.round(posValue * TAB_STOP_PX_TO_TWIPS);
90677
+ };
90678
+ const mergeTabStopSources = (...sources) => {
90679
+ const merged = /* @__PURE__ */ new Map();
90680
+ for (const source of sources) {
90681
+ if (!Array.isArray(source)) continue;
90682
+ for (const stop of source) {
90683
+ if (!stop || typeof stop !== "object") continue;
90684
+ const position2 = getTabStopPosition(stop);
90685
+ if (position2 == null) continue;
90686
+ merged.set(position2, { ...stop });
90687
+ }
90688
+ }
90689
+ if (merged.size === 0) return void 0;
90690
+ return Array.from(merged.entries()).sort(([a2], [b2]) => a2 - b2).map(([, stop]) => stop);
90691
+ };
90692
+ const mergedTabStops = mergeTabStopSources(hydratedTabStops, paragraphTabStops, attrTabStops);
90693
+ if (mergedTabStops) {
90694
+ styleNodeAttrs.tabStops = mergedTabStops;
90675
90695
  if ("tabs" in styleNodeAttrs) {
90676
90696
  delete styleNodeAttrs.tabs;
90677
90697
  }
@@ -90764,6 +90784,11 @@ ${l}
90764
90784
  }
90765
90785
  if (computed2.paragraph.tabs && computed2.paragraph.tabs.length > 0) {
90766
90786
  paragraphAttrs.tabs = computed2.paragraph.tabs.map((tab) => ({ ...tab }));
90787
+ } else if (mergedTabStops) {
90788
+ const normalizedTabs = normalizeOoxmlTabs(mergedTabStops);
90789
+ if (normalizedTabs) {
90790
+ paragraphAttrs.tabs = normalizedTabs;
90791
+ }
90767
90792
  } else if (hydratedTabStops) {
90768
90793
  const normalizedTabs = normalizeOoxmlTabs(hydratedTabStops);
90769
90794
  if (normalizedTabs) {
@@ -92167,9 +92192,19 @@ ${l}
92167
92192
  run2.letterSpacing = twipsToPx$1(runProperties.letterSpacing);
92168
92193
  }
92169
92194
  };
92195
+ const getVanishValue = (runProperties) => {
92196
+ if (!runProperties || typeof runProperties !== "object" || Array.isArray(runProperties)) {
92197
+ return void 0;
92198
+ }
92199
+ if (!Object.prototype.hasOwnProperty.call(runProperties, "vanish")) {
92200
+ return void 0;
92201
+ }
92202
+ return runProperties.vanish === true;
92203
+ };
92170
92204
  function paragraphToFlowBlocks$1(para, nextBlockId, positions, defaultFont, defaultSize, styleContext, listCounterContext, trackedChanges, bookmarks, hyperlinkConfig = DEFAULT_HYPERLINK_CONFIG$1, themeColors, converters, converterContext, enableComments = true) {
92171
92205
  const baseBlockId = nextBlockId("paragraph");
92172
92206
  const paragraphProps = typeof para.attrs?.paragraphProperties === "object" && para.attrs.paragraphProperties !== null ? para.attrs.paragraphProperties : {};
92207
+ const paragraphHiddenByVanish = getVanishValue(paragraphProps.runProperties) === true;
92173
92208
  const paragraphStyleId = typeof para.attrs?.styleId === "string" && para.attrs.styleId.trim() ? para.attrs.styleId : typeof paragraphProps.styleId === "string" && paragraphProps.styleId.trim() ? paragraphProps.styleId : null;
92174
92209
  const paragraphHydration = converterContext ? hydrateParagraphStyleAttrs(para, converterContext) : null;
92175
92210
  let baseRunDefaults = {};
@@ -92268,6 +92303,9 @@ ${l}
92268
92303
  });
92269
92304
  }
92270
92305
  if (!para.content || para.content.length === 0) {
92306
+ if (paragraphHiddenByVanish) {
92307
+ return blocks2;
92308
+ }
92271
92309
  const paraPos = positions.get(para);
92272
92310
  const emptyRun = {
92273
92311
  text: "",
@@ -92289,6 +92327,7 @@ ${l}
92289
92327
  let currentRuns = [];
92290
92328
  let partIndex = 0;
92291
92329
  let tabOrdinal = 0;
92330
+ let suppressedByVanish = false;
92292
92331
  const nextId = () => partIndex === 0 ? baseBlockId : `${baseBlockId}-${partIndex}`;
92293
92332
  const attachAnchorParagraphId = (block, anchorParagraphId) => {
92294
92333
  const applicableKinds = /* @__PURE__ */ new Set(["drawing", "image", "table"]);
@@ -92333,7 +92372,11 @@ ${l}
92333
92372
  runStyleId
92334
92373
  });
92335
92374
  };
92336
- const visitNode = (node2, inheritedMarks = [], activeSdt, activeRunStyleId = null, activeRunProperties) => {
92375
+ const visitNode = (node2, inheritedMarks = [], activeSdt, activeRunStyleId = null, activeRunProperties, activeHidden = false) => {
92376
+ if (activeHidden && node2.type !== "run") {
92377
+ suppressedByVanish = true;
92378
+ return;
92379
+ }
92337
92380
  if (node2.type === "text" && node2.text) {
92338
92381
  const run2 = textNodeToRun(
92339
92382
  node2,
@@ -92364,18 +92407,32 @@ ${l}
92364
92407
  if (node2.type === "run" && Array.isArray(node2.content)) {
92365
92408
  const mergedMarks = [...node2.marks ?? [], ...inheritedMarks ?? []];
92366
92409
  const runProperties = typeof node2.attrs?.runProperties === "object" && node2.attrs.runProperties !== null ? node2.attrs.runProperties : null;
92410
+ const runVanish = getVanishValue(runProperties);
92411
+ const nextHidden = runVanish === void 0 ? activeHidden : runVanish;
92412
+ if (nextHidden) {
92413
+ suppressedByVanish = true;
92414
+ return;
92415
+ }
92367
92416
  const nextRunStyleId = extractRunStyleId(runProperties) ?? activeRunStyleId;
92368
92417
  const nextRunProperties = runProperties ?? activeRunProperties;
92369
- node2.content.forEach((child) => visitNode(child, mergedMarks, activeSdt, nextRunStyleId, nextRunProperties));
92418
+ node2.content.forEach(
92419
+ (child) => visitNode(child, mergedMarks, activeSdt, nextRunStyleId, nextRunProperties, nextHidden)
92420
+ );
92370
92421
  return;
92371
92422
  }
92372
92423
  if (node2.type === "structuredContent" && Array.isArray(node2.content)) {
92373
92424
  const inlineMetadata = resolveNodeSdtMetadata(node2, "structuredContent");
92374
92425
  const nextSdt = inlineMetadata ?? activeSdt;
92375
- node2.content.forEach((child) => visitNode(child, inheritedMarks, nextSdt, activeRunStyleId, activeRunProperties));
92426
+ node2.content.forEach(
92427
+ (child) => visitNode(child, inheritedMarks, nextSdt, activeRunStyleId, activeRunProperties, activeHidden)
92428
+ );
92376
92429
  return;
92377
92430
  }
92378
92431
  if (node2.type === "fieldAnnotation") {
92432
+ if (activeHidden) {
92433
+ suppressedByVanish = true;
92434
+ return;
92435
+ }
92379
92436
  const fieldMetadata = resolveNodeSdtMetadata(node2, "fieldAnnotation");
92380
92437
  let contentText;
92381
92438
  if (Array.isArray(node2.content) && node2.content.length > 0) {
@@ -92394,6 +92451,10 @@ ${l}
92394
92451
  return;
92395
92452
  }
92396
92453
  if (node2.type === "pageReference") {
92454
+ if (activeHidden) {
92455
+ suppressedByVanish = true;
92456
+ return;
92457
+ }
92397
92458
  const instruction = getNodeInstruction(node2) || "";
92398
92459
  const nodeAttrs = typeof node2.attrs === "object" && node2.attrs !== null ? node2.attrs : {};
92399
92460
  const refMarks = Array.isArray(nodeAttrs.marksAsAttrs) ? nodeAttrs.marksAsAttrs : [];
@@ -92527,6 +92588,10 @@ ${l}
92527
92588
  return;
92528
92589
  }
92529
92590
  if (node2.type === "image") {
92591
+ if (activeHidden) {
92592
+ suppressedByVanish = true;
92593
+ return;
92594
+ }
92530
92595
  const isInline2 = isInlineImage(node2);
92531
92596
  if (isInline2) {
92532
92597
  const imageRun = imageNodeToRun(node2, positions, activeSdt);
@@ -92552,6 +92617,10 @@ ${l}
92552
92617
  return;
92553
92618
  }
92554
92619
  if (node2.type === "contentBlock") {
92620
+ if (activeHidden) {
92621
+ suppressedByVanish = true;
92622
+ return;
92623
+ }
92555
92624
  const attrs = node2.attrs ?? {};
92556
92625
  if (attrs.horizontalRule === true) {
92557
92626
  const anchorParagraphId = nextId();
@@ -92570,6 +92639,10 @@ ${l}
92570
92639
  return;
92571
92640
  }
92572
92641
  if (node2.type === "vectorShape") {
92642
+ if (activeHidden) {
92643
+ suppressedByVanish = true;
92644
+ return;
92645
+ }
92573
92646
  const anchorParagraphId = nextId();
92574
92647
  flushParagraph();
92575
92648
  if (converters?.vectorShapeNodeToDrawingBlock) {
@@ -92581,6 +92654,10 @@ ${l}
92581
92654
  return;
92582
92655
  }
92583
92656
  if (node2.type === "shapeGroup") {
92657
+ if (activeHidden) {
92658
+ suppressedByVanish = true;
92659
+ return;
92660
+ }
92584
92661
  const anchorParagraphId = nextId();
92585
92662
  flushParagraph();
92586
92663
  if (converters?.shapeGroupNodeToDrawingBlock) {
@@ -92592,6 +92669,10 @@ ${l}
92592
92669
  return;
92593
92670
  }
92594
92671
  if (node2.type === "shapeContainer") {
92672
+ if (activeHidden) {
92673
+ suppressedByVanish = true;
92674
+ return;
92675
+ }
92595
92676
  const anchorParagraphId = nextId();
92596
92677
  flushParagraph();
92597
92678
  if (converters?.shapeContainerNodeToDrawingBlock) {
@@ -92603,6 +92684,10 @@ ${l}
92603
92684
  return;
92604
92685
  }
92605
92686
  if (node2.type === "shapeTextbox") {
92687
+ if (activeHidden) {
92688
+ suppressedByVanish = true;
92689
+ return;
92690
+ }
92606
92691
  const anchorParagraphId = nextId();
92607
92692
  flushParagraph();
92608
92693
  if (converters?.shapeTextboxNodeToDrawingBlock) {
@@ -92614,6 +92699,10 @@ ${l}
92614
92699
  return;
92615
92700
  }
92616
92701
  if (node2.type === "table") {
92702
+ if (activeHidden) {
92703
+ suppressedByVanish = true;
92704
+ return;
92705
+ }
92617
92706
  const anchorParagraphId = nextId();
92618
92707
  flushParagraph();
92619
92708
  if (converters?.tableNodeToBlock) {
@@ -92637,6 +92726,10 @@ ${l}
92637
92726
  return;
92638
92727
  }
92639
92728
  if (node2.type === "hardBreak" || node2.type === "lineBreak") {
92729
+ if (activeHidden) {
92730
+ suppressedByVanish = true;
92731
+ return;
92732
+ }
92640
92733
  const attrs = node2.attrs ?? {};
92641
92734
  const breakType = attrs.pageBreakType ?? attrs.lineBreakType ?? "line";
92642
92735
  if (breakType === "page") {
@@ -92679,11 +92772,11 @@ ${l}
92679
92772
  }
92680
92773
  };
92681
92774
  para.content.forEach((child) => {
92682
- visitNode(child, [], void 0, null);
92775
+ visitNode(child, [], void 0, null, void 0);
92683
92776
  });
92684
92777
  flushParagraph();
92685
92778
  const hasParagraphBlock = blocks2.some((block) => block.kind === "paragraph");
92686
- if (!hasParagraphBlock) {
92779
+ if (!hasParagraphBlock && !suppressedByVanish && !paragraphHiddenByVanish) {
92687
92780
  blocks2.push({
92688
92781
  kind: "paragraph",
92689
92782
  id: baseBlockId,
@@ -145070,7 +145163,7 @@ ${reason}`);
145070
145163
  this.config.colors = shuffleArray(this.config.colors);
145071
145164
  this.userColorMap = /* @__PURE__ */ new Map();
145072
145165
  this.colorIndex = 0;
145073
- this.version = "1.4.0-next.2";
145166
+ this.version = "1.4.0-next.3";
145074
145167
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
145075
145168
  this.superdocId = config2.superdocId || v4();
145076
145169
  this.colors = this.config.colors;