@superdoc-dev/cli 0.13.0-next.5 → 0.13.0-next.7

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 +178 -43
  2. package/package.json +8 -8
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-yBMSqEiB.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")
@@ -96262,6 +96262,33 @@ function _getReferencedTableStyles(tableStyleReference, params3) {
96262
96262
  ...styleProps
96263
96263
  };
96264
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
+ }
96265
96292
  function parseTarget(instruction) {
96266
96293
  if (!instruction)
96267
96294
  return "";
@@ -96315,7 +96342,19 @@ function parseCitationSourceIds(instruction) {
96315
96342
  function extractResolvedText$1(content$2) {
96316
96343
  if (!Array.isArray(content$2))
96317
96344
  return "";
96318
- 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;
96319
96358
  }
96320
96359
  function parseTaInstruction(instruction) {
96321
96360
  let longCitation = "";
@@ -118468,10 +118507,7 @@ var isRegExp = (value) => {
118468
118507
  }, decode$20 = (params3) => {
118469
118508
  const { node: node3 } = params3;
118470
118509
  const outputMarks = processOutputMarks(node3.attrs?.marksAsAttrs || []);
118471
- const contentNodes = (node3.content ?? []).flatMap((n) => exportSchemaToJson({
118472
- ...params3,
118473
- node: n
118474
- }));
118510
+ const contentNodes = buildFieldResultRuns(params3, outputMarks);
118475
118511
  const instructionElements = buildInstructionElements(node3.attrs?.instruction, node3.attrs?.instructionTokens);
118476
118512
  return [
118477
118513
  {
@@ -118536,10 +118572,7 @@ var isRegExp = (value) => {
118536
118572
  }, decode$19 = (params3) => {
118537
118573
  const { node: node3 } = params3;
118538
118574
  const outputMarks = processOutputMarks(node3.attrs?.marksAsAttrs || []);
118539
- const contentNodes = (node3.content ?? []).flatMap((n) => exportSchemaToJson({
118540
- ...params3,
118541
- node: n
118542
- }));
118575
+ const contentNodes = buildFieldResultRuns(params3, outputMarks);
118543
118576
  const instructionElements = buildInstructionElements(node3.attrs?.instruction, node3.attrs?.instructionTokens);
118544
118577
  return [
118545
118578
  {
@@ -121679,7 +121712,7 @@ var isRegExp = (value) => {
121679
121712
  state.kern = kernNode.attributes["w:val"];
121680
121713
  }
121681
121714
  }, SuperConverter;
121682
- var init_SuperConverter_yBMSqEiB_es = __esm(() => {
121715
+ var init_SuperConverter_k7GHkV_c_es = __esm(() => {
121683
121716
  init_rolldown_runtime_Bg48TavK_es();
121684
121717
  init_jszip_C49i9kUs_es();
121685
121718
  init_xml_js_CqGKpaft_es();
@@ -159859,7 +159892,7 @@ var init_SuperConverter_yBMSqEiB_es = __esm(() => {
159859
159892
  };
159860
159893
  });
159861
159894
 
159862
- // ../../packages/superdoc/dist/chunks/create-headless-toolbar-DOHBUV3P.es.js
159895
+ // ../../packages/superdoc/dist/chunks/create-headless-toolbar-dycevpY9.es.js
159863
159896
  function parseSizeUnit(val = "0") {
159864
159897
  const length3 = val.toString() || "0";
159865
159898
  const value = Number.parseFloat(length3);
@@ -169884,8 +169917,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
169884
169917
  }
169885
169918
  };
169886
169919
  };
169887
- var init_create_headless_toolbar_DOHBUV3P_es = __esm(() => {
169888
- init_SuperConverter_yBMSqEiB_es();
169920
+ var init_create_headless_toolbar_dycevpY9_es = __esm(() => {
169921
+ init_SuperConverter_k7GHkV_c_es();
169889
169922
  init_uuid_qzgm05fK_es();
169890
169923
  init_constants_DrU4EASo_es();
169891
169924
  init_dist_B8HfvhaK_es();
@@ -219090,7 +219123,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
219090
219123
  init_remark_gfm_BhnWr3yf_es();
219091
219124
  });
219092
219125
 
219093
- // ../../packages/superdoc/dist/chunks/src-Cccxf1lk.es.js
219126
+ // ../../packages/superdoc/dist/chunks/src-D6w3M9Bh.es.js
219094
219127
  function deleteProps(obj, propOrProps) {
219095
219128
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
219096
219129
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -220977,6 +221010,86 @@ function backfillCapability(metaMap, ydoc) {
220977
221010
  function createReplacer(data) {
220978
221011
  return ({ part }) => replacePartData(part, data);
220979
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
+ }
220980
221093
  function getEditorSurfaceElement(editor) {
220981
221094
  if (!editor)
220982
221095
  return null;
@@ -221479,13 +221592,8 @@ function splitBlockPatch(state, dispatch, editor) {
221479
221592
  atStart = $from.start(d) == $from.pos - ($from.depth - d);
221480
221593
  deflt = defaultBlockAt($from.node(d - 1).contentMatchAt($from.indexAfter(d - 1)));
221481
221594
  const sourceParagraphStyleId = node3.attrs?.paragraphProperties?.styleId;
221482
- paragraphAttrs = {
221483
- ...node3.attrs,
221484
- sdBlockId: null,
221485
- sdBlockRev: null,
221486
- paraId: null,
221487
- textId: null
221488
- };
221595
+ const extensionAttrs = editor?.extensionService?.attributes ?? [];
221596
+ paragraphAttrs = Attribute2.getSplittedAttributes(extensionAttrs, node3.type.name, node3.attrs);
221489
221597
  paragraphAttrs = clearInheritedLinkedStyleId(paragraphAttrs, editor, { emptyParagraph: atEnd });
221490
221598
  if (atEnd && $from.parent.type.name === "run") {
221491
221599
  if (!isLinkedParagraphStyleId(editor, sourceParagraphStyleId))
@@ -242586,10 +242694,7 @@ function tablesSplitAdapter(editor, input2, options) {
242586
242694
  const rEnd = tr.mapping.slice(mapFrom).map(rowPositions[i4] + tableNode.child(i4).nodeSize);
242587
242695
  tr.delete(rp, rEnd);
242588
242696
  }
242589
- const newTableAttrs = { ...tableNode.attrs };
242590
- delete newTableAttrs.sdBlockId;
242591
- delete newTableAttrs.paraId;
242592
- delete newTableAttrs.textId;
242697
+ const newTableAttrs = Attribute2.getSplittedAttributes(editor.extensionService?.attributes ?? [], tableNode.type.name, tableNode.attrs);
242593
242698
  const newTable = schema.nodes.table.create(newTableAttrs, secondTableRows);
242594
242699
  const separatorParagraph = createSeparatorParagraph(schema);
242595
242700
  if (!separatorParagraph)
@@ -278995,7 +279100,7 @@ var Node$13 = class Node$14 {
278995
279100
  let $pos = doc$12.resolve(this.pos);
278996
279101
  return GapCursor.valid($pos) ? new GapCursor($pos) : Selection.near($pos);
278997
279102
  }
278998
- }, 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) => {
279103
+ }, 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) => {
278999
279104
  if (!cleanup || headlessCleanupRegisteredEditors.has(editor))
279000
279105
  return;
279001
279106
  headlessCleanupRegisteredEditors.add(editor);
@@ -279079,6 +279184,7 @@ var Node$13 = class Node$14 {
279079
279184
  if (!cleanup)
279080
279185
  return;
279081
279186
  cleanup.syncListenerCleanup?.();
279187
+ cleanup.fragmentNormalizeCleanup?.();
279082
279188
  cleanup.mediaMap?.unobserve?.(cleanup.mediaMapObserver);
279083
279189
  cleanup.metaMap?.unobserve?.(cleanup.metaMapObserver);
279084
279190
  cleanup.partSyncHandle?.destroy();
@@ -279089,12 +279195,23 @@ var Node$13 = class Node$14 {
279089
279195
  collaborationCleanupByEditor.delete(editor);
279090
279196
  }, createSyncPlugin = (ydoc, editor) => {
279091
279197
  const fragment2 = ydoc.getXmlFragment("supereditor");
279198
+ normalizeYjsFragmentForSchema(fragment2);
279092
279199
  const onFirstRender = () => {
279093
279200
  if (!editor.options.isNewFile)
279094
279201
  return;
279095
279202
  initializeMetaMap(ydoc, editor);
279096
279203
  };
279097
279204
  return [ySyncPlugin(fragment2, { onFirstRender }), fragment2];
279205
+ }, registerYjsFragmentNormalizer = (fragment2) => {
279206
+ if (!fragment2 || typeof fragment2.observeDeep !== "function" || typeof fragment2.unobserveDeep !== "function")
279207
+ return () => {};
279208
+ const normalize4 = (events) => {
279209
+ normalizeYjsFragmentEventsForSchema(events, fragment2);
279210
+ };
279211
+ fragment2.observeDeep(normalize4);
279212
+ return () => {
279213
+ fragment2.unobserveDeep(normalize4);
279214
+ };
279098
279215
  }, initializeMetaMap = (ydoc, editor) => {
279099
279216
  seedPartsFromEditor(editor, ydoc);
279100
279217
  const mediaMap = ydoc.getMap("media");
@@ -307646,13 +307763,13 @@ menclose::after {
307646
307763
  return;
307647
307764
  console.log(...args$1);
307648
307765
  }, 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;
307649
- var init_src_Cccxf1lk_es = __esm(() => {
307766
+ var init_src_D6w3M9Bh_es = __esm(() => {
307650
307767
  init_rolldown_runtime_Bg48TavK_es();
307651
- init_SuperConverter_yBMSqEiB_es();
307768
+ init_SuperConverter_k7GHkV_c_es();
307652
307769
  init_jszip_C49i9kUs_es();
307653
307770
  init_xml_js_CqGKpaft_es();
307654
307771
  init_uuid_qzgm05fK_es();
307655
- init_create_headless_toolbar_DOHBUV3P_es();
307772
+ init_create_headless_toolbar_dycevpY9_es();
307656
307773
  init_constants_DrU4EASo_es();
307657
307774
  init_dist_B8HfvhaK_es();
307658
307775
  init_unified_Dsuw2be5_es();
@@ -308874,6 +308991,8 @@ ${err.toString()}`);
308874
308991
  "word/_rels/document.xml.rels",
308875
308992
  "[Content_Types].xml"
308876
308993
  ]);
308994
+ SCHEMA_ATOM_NODE_NAMES = new Set(["crossReference", "citation"]);
308995
+ NORMALIZE_YJS_FRAGMENT_ORIGIN = Symbol.for("superdoc/yjs-fragment-normalize");
308877
308996
  new PluginKey("collaboration");
308878
308997
  headlessBindingStateByEditor = /* @__PURE__ */ new WeakMap;
308879
308998
  headlessCleanupRegisteredEditors = /* @__PURE__ */ new WeakSet;
@@ -308901,6 +309020,7 @@ ${err.toString()}`);
308901
309020
  const syncListenerCleanup = initSyncListener(this.options.ydoc, this.editor, this);
308902
309021
  const [syncPlugin, fragment2] = createSyncPlugin(this.options.ydoc, this.editor);
308903
309022
  this.options.fragment = fragment2;
309023
+ const fragmentNormalizeCleanup = registerYjsFragmentNormalizer(fragment2);
308904
309024
  const mediaMap = this.options.ydoc.getMap("media");
308905
309025
  const mediaMapObserver = (event) => {
308906
309026
  event.changes.keys.forEach((_$1, key2) => {
@@ -308915,6 +309035,7 @@ ${err.toString()}`);
308915
309035
  syncListenerCleanup,
308916
309036
  mediaMap,
308917
309037
  mediaMapObserver,
309038
+ fragmentNormalizeCleanup,
308918
309039
  metaMap: null,
308919
309040
  metaMapObserver: null,
308920
309041
  partSyncHandle: null,
@@ -310533,8 +310654,14 @@ ${err.toString()}`);
310533
310654
  },
310534
310655
  addAttributes() {
310535
310656
  return {
310536
- paraId: { rendered: false },
310537
- textId: { rendered: false },
310657
+ paraId: {
310658
+ rendered: false,
310659
+ keepOnSplit: false
310660
+ },
310661
+ textId: {
310662
+ rendered: false,
310663
+ keepOnSplit: false
310664
+ },
310538
310665
  rsidR: { rendered: false },
310539
310666
  rsidRDefault: { rendered: false },
310540
310667
  rsidP: { rendered: false },
@@ -331691,6 +331818,7 @@ function print() { __p += __j.call(arguments, '') }
331691
331818
  }
331692
331819
  #telemetry = null;
331693
331820
  #documentOpenTracked = false;
331821
+ #constructorFragment = null;
331694
331822
  constructor(options) {
331695
331823
  super();
331696
331824
  this.extensionStorage = {};
@@ -331796,6 +331924,7 @@ function print() { __p += __j.call(arguments, '') }
331796
331924
  resolvedOptions.element = null;
331797
331925
  resolvedOptions.selector = null;
331798
331926
  }
331927
+ this.#constructorFragment = resolvedOptions.fragment ?? null;
331799
331928
  this.#checkHeadless(resolvedOptions);
331800
331929
  this.setOptions(resolvedOptions);
331801
331930
  this.#renderer = resolvedOptions.renderer ?? (domAvailable ? new ProseMirrorRenderer : null);
@@ -331917,6 +332046,7 @@ function print() { __p += __j.call(arguments, '') }
331917
332046
  try {
331918
332047
  const resolvedMode = options?.mode ?? this.options.mode ?? "docx";
331919
332048
  const explicitIsNewFile = options?.isNewFile;
332049
+ const hasOpenFragment = Object.prototype.hasOwnProperty.call(options ?? {}, "fragment");
331920
332050
  const resolvedOptions = {
331921
332051
  ...this.options,
331922
332052
  mode: resolvedMode,
@@ -331925,7 +332055,8 @@ function print() { __p += __j.call(arguments, '') }
331925
332055
  documentMode: options?.documentMode ?? this.options.documentMode ?? "editing",
331926
332056
  html: options?.html,
331927
332057
  markdown: options?.markdown,
331928
- jsonOverride: options?.json ?? null
332058
+ jsonOverride: options?.json ?? null,
332059
+ fragment: hasOpenFragment ? options?.fragment ?? null : this.options.fragment ?? this.#constructorFragment
331929
332060
  };
331930
332061
  const loadOptions = options?.password ? { password: options.password } : undefined;
331931
332062
  if (typeof source === "string")
@@ -332059,6 +332190,7 @@ function print() { __p += __j.call(arguments, '') }
332059
332190
  this.options.initialState = null;
332060
332191
  this.options.content = "";
332061
332192
  this.options.fileSource = null;
332193
+ this.options.fragment = null;
332062
332194
  this._state = undefined;
332063
332195
  }
332064
332196
  #initProtectionState() {
@@ -332763,8 +332895,10 @@ function print() { __p += __j.call(arguments, '') }
332763
332895
  });
332764
332896
  else if (this.options.jsonOverride)
332765
332897
  doc$12 = this.schema.nodeFromJSON(this.options.jsonOverride);
332766
- if (fragment2)
332898
+ if (fragment2) {
332899
+ normalizeYjsFragmentForSchema(fragment2);
332767
332900
  doc$12 = yXmlFragmentToProseMirrorRootNode(fragment2, this.schema);
332901
+ }
332768
332902
  }
332769
332903
  else if (mode === "text" || mode === "html")
332770
332904
  if (loadFromSchema && hasJsonContent(content3))
@@ -333330,12 +333464,13 @@ function print() { __p += __j.call(arguments, '') }
333330
333464
  isHeadless: !(config2?.element != null || config2?.selector != null),
333331
333465
  ...config2
333332
333466
  };
333333
- const { html: html3, markdown, json, isCommentsEnabled, suppressDefaultDocxStyles, documentMode, content: content3, mediaFiles, fonts, isNewFile, password, ...editorConfig } = resolvedConfig;
333467
+ const { html: html3, markdown, json, fragment: fragment2, isCommentsEnabled, suppressDefaultDocxStyles, documentMode, content: content3, mediaFiles, fonts, isNewFile, password, ...editorConfig } = resolvedConfig;
333334
333468
  const openOptions = {
333335
333469
  mode: resolvedConfig.mode,
333336
333470
  html: html3,
333337
333471
  markdown,
333338
333472
  json,
333473
+ fragment: fragment2,
333339
333474
  isCommentsEnabled,
333340
333475
  suppressDefaultDocxStyles,
333341
333476
  documentMode,
@@ -345449,11 +345584,11 @@ function print() { __p += __j.call(arguments, '') }
345449
345584
  ];
345450
345585
  });
345451
345586
 
345452
- // ../../packages/superdoc/dist/chunks/create-super-doc-ui-Dv5eUJtx.es.js
345587
+ // ../../packages/superdoc/dist/chunks/create-super-doc-ui-BLDU9pTd.es.js
345453
345588
  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;
345454
- var init_create_super_doc_ui_Dv5eUJtx_es = __esm(() => {
345455
- init_SuperConverter_yBMSqEiB_es();
345456
- init_create_headless_toolbar_DOHBUV3P_es();
345589
+ var init_create_super_doc_ui_BLDU9pTd_es = __esm(() => {
345590
+ init_SuperConverter_k7GHkV_c_es();
345591
+ init_create_headless_toolbar_dycevpY9_es();
345457
345592
  MOD_ALIASES = new Set([
345458
345593
  "Mod",
345459
345594
  "Meta",
@@ -345495,16 +345630,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
345495
345630
 
345496
345631
  // ../../packages/superdoc/dist/super-editor.es.js
345497
345632
  var init_super_editor_es = __esm(() => {
345498
- init_src_Cccxf1lk_es();
345499
- init_SuperConverter_yBMSqEiB_es();
345633
+ init_src_D6w3M9Bh_es();
345634
+ init_SuperConverter_k7GHkV_c_es();
345500
345635
  init_jszip_C49i9kUs_es();
345501
345636
  init_xml_js_CqGKpaft_es();
345502
- init_create_headless_toolbar_DOHBUV3P_es();
345637
+ init_create_headless_toolbar_dycevpY9_es();
345503
345638
  init_constants_DrU4EASo_es();
345504
345639
  init_dist_B8HfvhaK_es();
345505
345640
  init_unified_Dsuw2be5_es();
345506
345641
  init_DocxZipper_CZMPWpOp_es();
345507
- init_create_super_doc_ui_Dv5eUJtx_es();
345642
+ init_create_super_doc_ui_BLDU9pTd_es();
345508
345643
  init_ui_C5PAS9hY_es();
345509
345644
  init_eventemitter3_BnGqBE_Q_es();
345510
345645
  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.5",
3
+ "version": "0.13.0-next.7",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -25,20 +25,20 @@
25
25
  "@types/ws": "^8.5.13",
26
26
  "typescript": "^5.9.2",
27
27
  "@superdoc/document-api": "0.0.1",
28
- "@superdoc/pm-adapter": "0.0.0",
29
28
  "@superdoc/super-editor": "0.0.1",
30
- "superdoc": "1.35.0"
29
+ "superdoc": "1.35.0",
30
+ "@superdoc/pm-adapter": "0.0.0"
31
31
  },
32
32
  "module": "src/index.ts",
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
36
  "optionalDependencies": {
37
- "@superdoc-dev/cli-darwin-arm64": "0.13.0-next.5",
38
- "@superdoc-dev/cli-darwin-x64": "0.13.0-next.5",
39
- "@superdoc-dev/cli-linux-x64": "0.13.0-next.5",
40
- "@superdoc-dev/cli-linux-arm64": "0.13.0-next.5",
41
- "@superdoc-dev/cli-windows-x64": "0.13.0-next.5"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.13.0-next.7",
38
+ "@superdoc-dev/cli-darwin-x64": "0.13.0-next.7",
39
+ "@superdoc-dev/cli-linux-x64": "0.13.0-next.7",
40
+ "@superdoc-dev/cli-linux-arm64": "0.13.0-next.7",
41
+ "@superdoc-dev/cli-windows-x64": "0.13.0-next.7"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",