@superdoc-dev/cli 0.13.0-next.4 → 0.13.0-next.6

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.
Files changed (2) hide show
  1. package/dist/index.js +200 -31
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -67593,7 +67593,7 @@ var init_remark_gfm_BhnWr3yf_es = __esm(() => {
67593
67593
  emptyOptions2 = {};
67594
67594
  });
67595
67595
 
67596
- // ../../packages/superdoc/dist/chunks/SuperConverter-zMJ6NmqZ.es.js
67596
+ // ../../packages/superdoc/dist/chunks/SuperConverter-k7GHkV-c.es.js
67597
67597
  function getExtensionConfigField(extension$1, field, context = { name: "" }) {
67598
67598
  const fieldValue = extension$1.config[field];
67599
67599
  if (typeof fieldValue === "function")
@@ -76728,6 +76728,10 @@ function resolveRunProperties(params3, inlineRpr, resolvedPpr, tableInfo = null,
76728
76728
  inlineRpr = {};
76729
76729
  if (inlineRpr?.underline)
76730
76730
  delete inlineRpr.underline;
76731
+ if (inlineRpr?.vanish)
76732
+ delete inlineRpr.vanish;
76733
+ if (inlineRpr?.specVanish)
76734
+ delete inlineRpr.specVanish;
76731
76735
  styleChain = [
76732
76736
  ...defaultsChain,
76733
76737
  tableStyleProps,
@@ -96258,6 +96262,33 @@ function _getReferencedTableStyles(tableStyleReference, params3) {
96258
96262
  ...styleProps
96259
96263
  };
96260
96264
  }
96265
+ function buildFieldResultRuns(params3, outputMarks) {
96266
+ const { node: node3 } = params3;
96267
+ const contentNodes = (node3.content ?? []).flatMap((child) => exportSchemaToJson({
96268
+ ...params3,
96269
+ node: child
96270
+ }));
96271
+ if (contentNodes.length > 0)
96272
+ return contentNodes;
96273
+ const resolvedText = node3.attrs?.resolvedText;
96274
+ if (typeof resolvedText !== "string" || resolvedText.length === 0)
96275
+ return [];
96276
+ const textAttributes = /^\s|\s$/.test(resolvedText) ? { "xml:space": "preserve" } : undefined;
96277
+ return [{
96278
+ name: "w:r",
96279
+ elements: [{
96280
+ name: "w:rPr",
96281
+ elements: outputMarks
96282
+ }, {
96283
+ name: "w:t",
96284
+ attributes: textAttributes,
96285
+ elements: [{
96286
+ text: resolvedText,
96287
+ type: "text"
96288
+ }]
96289
+ }]
96290
+ }];
96291
+ }
96261
96292
  function parseTarget(instruction) {
96262
96293
  if (!instruction)
96263
96294
  return "";
@@ -96311,7 +96342,19 @@ function parseCitationSourceIds(instruction) {
96311
96342
  function extractResolvedText$1(content$2) {
96312
96343
  if (!Array.isArray(content$2))
96313
96344
  return "";
96314
- return content$2.filter((n) => n.type === "text").map((n) => n.text || "").join("");
96345
+ let out = "";
96346
+ const walk = (nodes) => {
96347
+ for (const node3 of nodes) {
96348
+ if (!node3)
96349
+ continue;
96350
+ if (node3.type === "text")
96351
+ out += node3.text || "";
96352
+ else if (Array.isArray(node3.content))
96353
+ walk(node3.content);
96354
+ }
96355
+ };
96356
+ walk(content$2);
96357
+ return out;
96315
96358
  }
96316
96359
  function parseTaInstruction(instruction) {
96317
96360
  let longCitation = "";
@@ -118464,10 +118507,7 @@ var isRegExp = (value) => {
118464
118507
  }, decode$20 = (params3) => {
118465
118508
  const { node: node3 } = params3;
118466
118509
  const outputMarks = processOutputMarks(node3.attrs?.marksAsAttrs || []);
118467
- const contentNodes = (node3.content ?? []).flatMap((n) => exportSchemaToJson({
118468
- ...params3,
118469
- node: n
118470
- }));
118510
+ const contentNodes = buildFieldResultRuns(params3, outputMarks);
118471
118511
  const instructionElements = buildInstructionElements(node3.attrs?.instruction, node3.attrs?.instructionTokens);
118472
118512
  return [
118473
118513
  {
@@ -118532,10 +118572,7 @@ var isRegExp = (value) => {
118532
118572
  }, decode$19 = (params3) => {
118533
118573
  const { node: node3 } = params3;
118534
118574
  const outputMarks = processOutputMarks(node3.attrs?.marksAsAttrs || []);
118535
- const contentNodes = (node3.content ?? []).flatMap((n) => exportSchemaToJson({
118536
- ...params3,
118537
- node: n
118538
- }));
118575
+ const contentNodes = buildFieldResultRuns(params3, outputMarks);
118539
118576
  const instructionElements = buildInstructionElements(node3.attrs?.instruction, node3.attrs?.instructionTokens);
118540
118577
  return [
118541
118578
  {
@@ -121675,7 +121712,7 @@ var isRegExp = (value) => {
121675
121712
  state.kern = kernNode.attributes["w:val"];
121676
121713
  }
121677
121714
  }, SuperConverter;
121678
- var init_SuperConverter_zMJ6NmqZ_es = __esm(() => {
121715
+ var init_SuperConverter_k7GHkV_c_es = __esm(() => {
121679
121716
  init_rolldown_runtime_Bg48TavK_es();
121680
121717
  init_jszip_C49i9kUs_es();
121681
121718
  init_xml_js_CqGKpaft_es();
@@ -159855,7 +159892,7 @@ var init_SuperConverter_zMJ6NmqZ_es = __esm(() => {
159855
159892
  };
159856
159893
  });
159857
159894
 
159858
- // ../../packages/superdoc/dist/chunks/create-headless-toolbar-CoZdlJbj.es.js
159895
+ // ../../packages/superdoc/dist/chunks/create-headless-toolbar-dycevpY9.es.js
159859
159896
  function parseSizeUnit(val = "0") {
159860
159897
  const length3 = val.toString() || "0";
159861
159898
  const value = Number.parseFloat(length3);
@@ -169880,8 +169917,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
169880
169917
  }
169881
169918
  };
169882
169919
  };
169883
- var init_create_headless_toolbar_CoZdlJbj_es = __esm(() => {
169884
- init_SuperConverter_zMJ6NmqZ_es();
169920
+ var init_create_headless_toolbar_dycevpY9_es = __esm(() => {
169921
+ init_SuperConverter_k7GHkV_c_es();
169885
169922
  init_uuid_qzgm05fK_es();
169886
169923
  init_constants_DrU4EASo_es();
169887
169924
  init_dist_B8HfvhaK_es();
@@ -219086,7 +219123,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
219086
219123
  init_remark_gfm_BhnWr3yf_es();
219087
219124
  });
219088
219125
 
219089
- // ../../packages/superdoc/dist/chunks/src-QKGB098Q.es.js
219126
+ // ../../packages/superdoc/dist/chunks/src-AnmYYbEU.es.js
219090
219127
  function deleteProps(obj, propOrProps) {
219091
219128
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
219092
219129
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -220973,6 +221010,86 @@ function backfillCapability(metaMap, ydoc) {
220973
221010
  function createReplacer(data) {
220974
221011
  return ({ part }) => replacePartData(part, data);
220975
221012
  }
221013
+ function normalizeYjsFragmentForSchema(fragment2) {
221014
+ if (!isTraversableYjsXml(fragment2))
221015
+ return false;
221016
+ let changed = false;
221017
+ const normalize4 = () => {
221018
+ changed = stripSchemaAtomChildren(fragment2) || changed;
221019
+ };
221020
+ if (fragment2.doc)
221021
+ fragment2.doc.transact(normalize4, NORMALIZE_YJS_FRAGMENT_ORIGIN);
221022
+ else
221023
+ normalize4();
221024
+ return changed;
221025
+ }
221026
+ function normalizeYjsFragmentEventsForSchema(events, fallbackFragment) {
221027
+ if (!Array.isArray(events) || events.length === 0)
221028
+ return normalizeYjsFragmentForSchema(fallbackFragment);
221029
+ if (events.some((event) => event?.transaction?.origin === NORMALIZE_YJS_FRAGMENT_ORIGIN))
221030
+ return false;
221031
+ let changed = false;
221032
+ const normalize4 = () => {
221033
+ const visited = /* @__PURE__ */ new Set;
221034
+ for (const event of events) {
221035
+ const target = findNormalizableEventTarget(event?.target);
221036
+ if (!isTraversableYjsXml(target) || visited.has(target))
221037
+ continue;
221038
+ visited.add(target);
221039
+ changed = stripSchemaAtomChildren(target) || changed;
221040
+ }
221041
+ };
221042
+ const doc$12 = fallbackFragment?.doc || findEventDoc(events);
221043
+ if (doc$12)
221044
+ doc$12.transact(normalize4, NORMALIZE_YJS_FRAGMENT_ORIGIN);
221045
+ else
221046
+ normalize4();
221047
+ return changed;
221048
+ }
221049
+ function stripSchemaAtomChildren(parent) {
221050
+ if (!isTraversableYjsXml(parent))
221051
+ return false;
221052
+ if (parent instanceof YXmlElement && SCHEMA_ATOM_NODE_NAMES.has(parent.nodeName)) {
221053
+ if (parent.length === 0)
221054
+ return false;
221055
+ parent.delete(0, parent.length);
221056
+ return true;
221057
+ }
221058
+ let changed = false;
221059
+ for (const child of parent.toArray()) {
221060
+ if (!(child instanceof YXmlElement))
221061
+ continue;
221062
+ if (SCHEMA_ATOM_NODE_NAMES.has(child.nodeName)) {
221063
+ if (child.length > 0) {
221064
+ child.delete(0, child.length);
221065
+ changed = true;
221066
+ }
221067
+ continue;
221068
+ }
221069
+ changed = stripSchemaAtomChildren(child) || changed;
221070
+ }
221071
+ return changed;
221072
+ }
221073
+ function findNormalizableEventTarget(target) {
221074
+ let current = target;
221075
+ while (current) {
221076
+ if (current instanceof YXmlElement && SCHEMA_ATOM_NODE_NAMES.has(current.nodeName))
221077
+ return current;
221078
+ current = current.parent;
221079
+ }
221080
+ return target;
221081
+ }
221082
+ function findEventDoc(events) {
221083
+ for (const event of events) {
221084
+ const doc$12 = event?.target?.doc;
221085
+ if (doc$12)
221086
+ return doc$12;
221087
+ }
221088
+ return null;
221089
+ }
221090
+ function isTraversableYjsXml(value) {
221091
+ return Boolean(value && typeof value.toArray === "function");
221092
+ }
220976
221093
  function getEditorSurfaceElement(editor) {
220977
221094
  if (!editor)
220978
221095
  return null;
@@ -270807,7 +270924,7 @@ function toFlowBlocks(pmDoc, options) {
270807
270924
  blockCounts,
270808
270925
  bookmarks: bookmarks.size
270809
270926
  });
270810
- const mergedBlocks = mergeDropCapParagraphs(hydrateImageBlocks(blocks2, options?.mediaFiles));
270927
+ const mergedBlocks = mergeFusedParagraphs(mergeDropCapParagraphs(hydrateImageBlocks(blocks2, options?.mediaFiles)));
270811
270928
  flowBlockCache?.commit();
270812
270929
  return {
270813
270930
  blocks: mergedBlocks,
@@ -270844,6 +270961,32 @@ function mergeDropCapParagraphs(blocks2) {
270844
270961
  }
270845
270962
  return result;
270846
270963
  }
270964
+ function mergeFusedParagraphs(blocks2) {
270965
+ const result = [];
270966
+ for (const block of blocks2) {
270967
+ const prev = result.length > 0 ? result[result.length - 1] : undefined;
270968
+ if (block.kind === "paragraph" && prev?.kind === "paragraph" && prev.attrs?.suppressParagraphBreak) {
270969
+ const head = prev;
270970
+ const tail = block;
270971
+ const mergedAttrs = { ...head.attrs };
270972
+ if (tail.attrs?.suppressParagraphBreak)
270973
+ mergedAttrs.suppressParagraphBreak = true;
270974
+ else
270975
+ delete mergedAttrs.suppressParagraphBreak;
270976
+ const merged = {
270977
+ kind: "paragraph",
270978
+ id: head.id,
270979
+ runs: [...head.runs, ...tail.runs],
270980
+ attrs: mergedAttrs,
270981
+ ...head.sourceAnchor ? { sourceAnchor: head.sourceAnchor } : {}
270982
+ };
270983
+ result[result.length - 1] = merged;
270984
+ continue;
270985
+ }
270986
+ result.push(block);
270987
+ }
270988
+ return result;
270989
+ }
270847
270990
  function normalizeConverterContext(context, defaultFont, defaultSize) {
270848
270991
  if (!context)
270849
270992
  context = {
@@ -278965,7 +279108,7 @@ var Node$13 = class Node$14 {
278965
279108
  let $pos = doc$12.resolve(this.pos);
278966
279109
  return GapCursor.valid($pos) ? new GapCursor($pos) : Selection.near($pos);
278967
279110
  }
278968
- }, handleKeyDown2, Gapcursor, PARTS_MAP_KEY = "parts", META_MAP_KEY = "meta", META_PARTS_SCHEMA_VERSION_KEY = "partsSchemaVersion", META_PARTS_MIGRATION_KEY = "partsMigration", META_PARTS_LAST_HYDRATED_AT_KEY = "partsLastHydratedAt", META_PARTS_FALLBACK_MODE_KEY = "partsFallbackMode", META_PARTS_CAPABILITY_KEY = "partsCapability", SOURCE_COLLAB_REMOTE_PARTS = "collab:remote:parts", SOURCE_COLLAB_REMOTE_PREFIX = "collab:remote:", EXCLUDED_PART_IDS, CRITICAL_PART_IDS, isApplyingRemoteParts = false, headlessBindingStateByEditor, headlessCleanupRegisteredEditors, META_BODY_SECT_PR_KEY = "bodySectPr", BODY_SECT_PR_SYNC_META_KEY = "bodySectPrSync", collaborationCleanupByEditor, registerHeadlessBindingCleanup = (editor, cleanup) => {
279111
+ }, handleKeyDown2, Gapcursor, PARTS_MAP_KEY = "parts", META_MAP_KEY = "meta", META_PARTS_SCHEMA_VERSION_KEY = "partsSchemaVersion", META_PARTS_MIGRATION_KEY = "partsMigration", META_PARTS_LAST_HYDRATED_AT_KEY = "partsLastHydratedAt", META_PARTS_FALLBACK_MODE_KEY = "partsFallbackMode", META_PARTS_CAPABILITY_KEY = "partsCapability", SOURCE_COLLAB_REMOTE_PARTS = "collab:remote:parts", SOURCE_COLLAB_REMOTE_PREFIX = "collab:remote:", EXCLUDED_PART_IDS, CRITICAL_PART_IDS, isApplyingRemoteParts = false, SCHEMA_ATOM_NODE_NAMES, NORMALIZE_YJS_FRAGMENT_ORIGIN, headlessBindingStateByEditor, headlessCleanupRegisteredEditors, META_BODY_SECT_PR_KEY = "bodySectPr", BODY_SECT_PR_SYNC_META_KEY = "bodySectPrSync", collaborationCleanupByEditor, registerHeadlessBindingCleanup = (editor, cleanup) => {
278969
279112
  if (!cleanup || headlessCleanupRegisteredEditors.has(editor))
278970
279113
  return;
278971
279114
  headlessCleanupRegisteredEditors.add(editor);
@@ -279049,6 +279192,7 @@ var Node$13 = class Node$14 {
279049
279192
  if (!cleanup)
279050
279193
  return;
279051
279194
  cleanup.syncListenerCleanup?.();
279195
+ cleanup.fragmentNormalizeCleanup?.();
279052
279196
  cleanup.mediaMap?.unobserve?.(cleanup.mediaMapObserver);
279053
279197
  cleanup.metaMap?.unobserve?.(cleanup.metaMapObserver);
279054
279198
  cleanup.partSyncHandle?.destroy();
@@ -279059,12 +279203,23 @@ var Node$13 = class Node$14 {
279059
279203
  collaborationCleanupByEditor.delete(editor);
279060
279204
  }, createSyncPlugin = (ydoc, editor) => {
279061
279205
  const fragment2 = ydoc.getXmlFragment("supereditor");
279206
+ normalizeYjsFragmentForSchema(fragment2);
279062
279207
  const onFirstRender = () => {
279063
279208
  if (!editor.options.isNewFile)
279064
279209
  return;
279065
279210
  initializeMetaMap(ydoc, editor);
279066
279211
  };
279067
279212
  return [ySyncPlugin(fragment2, { onFirstRender }), fragment2];
279213
+ }, registerYjsFragmentNormalizer = (fragment2) => {
279214
+ if (!fragment2 || typeof fragment2.observeDeep !== "function" || typeof fragment2.unobserveDeep !== "function")
279215
+ return () => {};
279216
+ const normalize4 = (events) => {
279217
+ normalizeYjsFragmentEventsForSchema(events, fragment2);
279218
+ };
279219
+ fragment2.observeDeep(normalize4);
279220
+ return () => {
279221
+ fragment2.unobserveDeep(normalize4);
279222
+ };
279068
279223
  }, initializeMetaMap = (ydoc, editor) => {
279069
279224
  seedPartsFromEditor(editor, ydoc);
279070
279225
  const mediaMap = ydoc.getMap("media");
@@ -300872,6 +301027,8 @@ menclose::after {
300872
301027
  pageBreakBefore: resolvedParagraphProperties.pageBreakBefore,
300873
301028
  directionContext
300874
301029
  };
301030
+ if (resolvedParagraphProperties.runProperties?.vanish === true || paragraphProperties.runProperties?.vanish === true)
301031
+ paragraphAttrs.suppressParagraphBreak = true;
300875
301032
  if (normalizedNumberingProperties && normalizedListRendering) {
300876
301033
  const markerRunAttrs = computeRunAttrs(resolveRunProperties(converterContext, resolvedParagraphProperties.runProperties, resolvedParagraphProperties, converterContext.tableInfo, true, Boolean(paragraphProperties.numberingProperties)), converterContext);
300877
301034
  let markerFontFallback;
@@ -307614,13 +307771,13 @@ menclose::after {
307614
307771
  return;
307615
307772
  console.log(...args$1);
307616
307773
  }, HEADER_FOOTER_INIT_BUDGET_MS = 200, MAX_ZOOM_WARNING_THRESHOLD = 10, MAX_SELECTION_RECTS_PER_USER = 100, SEMANTIC_RESIZE_DEBOUNCE_MS = 120, MIN_SEMANTIC_CONTENT_WIDTH_PX = 1, GLOBAL_PERFORMANCE, PresentationEditor, ICONS, TEXTS, tableActionsOptions;
307617
- var init_src_QKGB098Q_es = __esm(() => {
307774
+ var init_src_AnmYYbEU_es = __esm(() => {
307618
307775
  init_rolldown_runtime_Bg48TavK_es();
307619
- init_SuperConverter_zMJ6NmqZ_es();
307776
+ init_SuperConverter_k7GHkV_c_es();
307620
307777
  init_jszip_C49i9kUs_es();
307621
307778
  init_xml_js_CqGKpaft_es();
307622
307779
  init_uuid_qzgm05fK_es();
307623
- init_create_headless_toolbar_CoZdlJbj_es();
307780
+ init_create_headless_toolbar_dycevpY9_es();
307624
307781
  init_constants_DrU4EASo_es();
307625
307782
  init_dist_B8HfvhaK_es();
307626
307783
  init_unified_Dsuw2be5_es();
@@ -308842,6 +308999,8 @@ ${err.toString()}`);
308842
308999
  "word/_rels/document.xml.rels",
308843
309000
  "[Content_Types].xml"
308844
309001
  ]);
309002
+ SCHEMA_ATOM_NODE_NAMES = new Set(["crossReference", "citation"]);
309003
+ NORMALIZE_YJS_FRAGMENT_ORIGIN = Symbol.for("superdoc/yjs-fragment-normalize");
308845
309004
  new PluginKey("collaboration");
308846
309005
  headlessBindingStateByEditor = /* @__PURE__ */ new WeakMap;
308847
309006
  headlessCleanupRegisteredEditors = /* @__PURE__ */ new WeakSet;
@@ -308869,6 +309028,7 @@ ${err.toString()}`);
308869
309028
  const syncListenerCleanup = initSyncListener(this.options.ydoc, this.editor, this);
308870
309029
  const [syncPlugin, fragment2] = createSyncPlugin(this.options.ydoc, this.editor);
308871
309030
  this.options.fragment = fragment2;
309031
+ const fragmentNormalizeCleanup = registerYjsFragmentNormalizer(fragment2);
308872
309032
  const mediaMap = this.options.ydoc.getMap("media");
308873
309033
  const mediaMapObserver = (event) => {
308874
309034
  event.changes.keys.forEach((_$1, key2) => {
@@ -308883,6 +309043,7 @@ ${err.toString()}`);
308883
309043
  syncListenerCleanup,
308884
309044
  mediaMap,
308885
309045
  mediaMapObserver,
309046
+ fragmentNormalizeCleanup,
308886
309047
  metaMap: null,
308887
309048
  metaMapObserver: null,
308888
309049
  partSyncHandle: null,
@@ -331659,6 +331820,7 @@ function print() { __p += __j.call(arguments, '') }
331659
331820
  }
331660
331821
  #telemetry = null;
331661
331822
  #documentOpenTracked = false;
331823
+ #constructorFragment = null;
331662
331824
  constructor(options) {
331663
331825
  super();
331664
331826
  this.extensionStorage = {};
@@ -331764,6 +331926,7 @@ function print() { __p += __j.call(arguments, '') }
331764
331926
  resolvedOptions.element = null;
331765
331927
  resolvedOptions.selector = null;
331766
331928
  }
331929
+ this.#constructorFragment = resolvedOptions.fragment ?? null;
331767
331930
  this.#checkHeadless(resolvedOptions);
331768
331931
  this.setOptions(resolvedOptions);
331769
331932
  this.#renderer = resolvedOptions.renderer ?? (domAvailable ? new ProseMirrorRenderer : null);
@@ -331885,6 +332048,7 @@ function print() { __p += __j.call(arguments, '') }
331885
332048
  try {
331886
332049
  const resolvedMode = options?.mode ?? this.options.mode ?? "docx";
331887
332050
  const explicitIsNewFile = options?.isNewFile;
332051
+ const hasOpenFragment = Object.prototype.hasOwnProperty.call(options ?? {}, "fragment");
331888
332052
  const resolvedOptions = {
331889
332053
  ...this.options,
331890
332054
  mode: resolvedMode,
@@ -331893,7 +332057,8 @@ function print() { __p += __j.call(arguments, '') }
331893
332057
  documentMode: options?.documentMode ?? this.options.documentMode ?? "editing",
331894
332058
  html: options?.html,
331895
332059
  markdown: options?.markdown,
331896
- jsonOverride: options?.json ?? null
332060
+ jsonOverride: options?.json ?? null,
332061
+ fragment: hasOpenFragment ? options?.fragment ?? null : this.options.fragment ?? this.#constructorFragment
331897
332062
  };
331898
332063
  const loadOptions = options?.password ? { password: options.password } : undefined;
331899
332064
  if (typeof source === "string")
@@ -332027,6 +332192,7 @@ function print() { __p += __j.call(arguments, '') }
332027
332192
  this.options.initialState = null;
332028
332193
  this.options.content = "";
332029
332194
  this.options.fileSource = null;
332195
+ this.options.fragment = null;
332030
332196
  this._state = undefined;
332031
332197
  }
332032
332198
  #initProtectionState() {
@@ -332731,8 +332897,10 @@ function print() { __p += __j.call(arguments, '') }
332731
332897
  });
332732
332898
  else if (this.options.jsonOverride)
332733
332899
  doc$12 = this.schema.nodeFromJSON(this.options.jsonOverride);
332734
- if (fragment2)
332900
+ if (fragment2) {
332901
+ normalizeYjsFragmentForSchema(fragment2);
332735
332902
  doc$12 = yXmlFragmentToProseMirrorRootNode(fragment2, this.schema);
332903
+ }
332736
332904
  }
332737
332905
  else if (mode === "text" || mode === "html")
332738
332906
  if (loadFromSchema && hasJsonContent(content3))
@@ -333298,12 +333466,13 @@ function print() { __p += __j.call(arguments, '') }
333298
333466
  isHeadless: !(config2?.element != null || config2?.selector != null),
333299
333467
  ...config2
333300
333468
  };
333301
- const { html: html3, markdown, json, isCommentsEnabled, suppressDefaultDocxStyles, documentMode, content: content3, mediaFiles, fonts, isNewFile, password, ...editorConfig } = resolvedConfig;
333469
+ const { html: html3, markdown, json, fragment: fragment2, isCommentsEnabled, suppressDefaultDocxStyles, documentMode, content: content3, mediaFiles, fonts, isNewFile, password, ...editorConfig } = resolvedConfig;
333302
333470
  const openOptions = {
333303
333471
  mode: resolvedConfig.mode,
333304
333472
  html: html3,
333305
333473
  markdown,
333306
333474
  json,
333475
+ fragment: fragment2,
333307
333476
  isCommentsEnabled,
333308
333477
  suppressDefaultDocxStyles,
333309
333478
  documentMode,
@@ -345417,11 +345586,11 @@ function print() { __p += __j.call(arguments, '') }
345417
345586
  ];
345418
345587
  });
345419
345588
 
345420
- // ../../packages/superdoc/dist/chunks/create-super-doc-ui-DM_6uPhc.es.js
345589
+ // ../../packages/superdoc/dist/chunks/create-super-doc-ui-BLDU9pTd.es.js
345421
345590
  var MOD_ALIASES, ALT_ALIASES, CTRL_ALIASES, SHIFT_ALIASES, BUILTIN_CONTEXT_MENU_GROUPS, BUILTIN_GROUP_ORDER, RESERVED_PROXY_PROPERTY_NAMES, ALL_TOOLBAR_COMMAND_IDS, EMPTY_ACTIVE_IDS;
345422
- var init_create_super_doc_ui_DM_6uPhc_es = __esm(() => {
345423
- init_SuperConverter_zMJ6NmqZ_es();
345424
- init_create_headless_toolbar_CoZdlJbj_es();
345591
+ var init_create_super_doc_ui_BLDU9pTd_es = __esm(() => {
345592
+ init_SuperConverter_k7GHkV_c_es();
345593
+ init_create_headless_toolbar_dycevpY9_es();
345425
345594
  MOD_ALIASES = new Set([
345426
345595
  "Mod",
345427
345596
  "Meta",
@@ -345463,16 +345632,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
345463
345632
 
345464
345633
  // ../../packages/superdoc/dist/super-editor.es.js
345465
345634
  var init_super_editor_es = __esm(() => {
345466
- init_src_QKGB098Q_es();
345467
- init_SuperConverter_zMJ6NmqZ_es();
345635
+ init_src_AnmYYbEU_es();
345636
+ init_SuperConverter_k7GHkV_c_es();
345468
345637
  init_jszip_C49i9kUs_es();
345469
345638
  init_xml_js_CqGKpaft_es();
345470
- init_create_headless_toolbar_CoZdlJbj_es();
345639
+ init_create_headless_toolbar_dycevpY9_es();
345471
345640
  init_constants_DrU4EASo_es();
345472
345641
  init_dist_B8HfvhaK_es();
345473
345642
  init_unified_Dsuw2be5_es();
345474
345643
  init_DocxZipper_CZMPWpOp_es();
345475
- init_create_super_doc_ui_DM_6uPhc_es();
345644
+ init_create_super_doc_ui_BLDU9pTd_es();
345476
345645
  init_ui_C5PAS9hY_es();
345477
345646
  init_eventemitter3_BnGqBE_Q_es();
345478
345647
  init_errors_CNaD6vcg_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.13.0-next.4",
3
+ "version": "0.13.0-next.6",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -34,11 +34,11 @@
34
34
  "access": "public"
35
35
  },
36
36
  "optionalDependencies": {
37
- "@superdoc-dev/cli-darwin-arm64": "0.13.0-next.4",
38
- "@superdoc-dev/cli-darwin-x64": "0.13.0-next.4",
39
- "@superdoc-dev/cli-linux-arm64": "0.13.0-next.4",
40
- "@superdoc-dev/cli-windows-x64": "0.13.0-next.4",
41
- "@superdoc-dev/cli-linux-x64": "0.13.0-next.4"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.13.0-next.6",
38
+ "@superdoc-dev/cli-darwin-x64": "0.13.0-next.6",
39
+ "@superdoc-dev/cli-linux-x64": "0.13.0-next.6",
40
+ "@superdoc-dev/cli-linux-arm64": "0.13.0-next.6",
41
+ "@superdoc-dev/cli-windows-x64": "0.13.0-next.6"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",