@harbour-enterprises/superdoc 0.13.0-RC3 → 0.13.0-next.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.
Files changed (96) hide show
  1. package/dist/chunks/{eventemitter3-Dq2TEegt.es.js → eventemitter3-BrspJk8q.es.js} +1 -1
  2. package/dist/chunks/{eventemitter3-DuScojUH.cjs → eventemitter3-DfVviFzP.cjs} +1 -1
  3. package/dist/chunks/{index-DiSsZq2e.cjs → index-B4J7wgs6.cjs} +2 -2
  4. package/dist/chunks/{index-DRXYX6Gk.cjs → index-Cdsq63Xq.cjs} +4 -4
  5. package/dist/chunks/{index-CIbdIyV7.es.js → index-Diu6UKHt.es.js} +4 -4
  6. package/dist/chunks/{index-xoeJtm87.es.js → index-Hr3Um-Bg.es.js} +2 -2
  7. package/dist/chunks/{jszip-Bwu_om3F.cjs → jszip-BTAcmbVg.cjs} +1 -1
  8. package/dist/chunks/{jszip-BmWWPxfF.es.js → jszip-DckFs3A7.es.js} +1 -1
  9. package/dist/chunks/{super-editor.es-CzkFh6x_.cjs → super-editor.es-B4lFJKTF.cjs} +3771 -1630
  10. package/dist/chunks/{super-editor.es-BNfBtek_.es.js → super-editor.es-C-QroPG4.es.js} +3771 -1630
  11. package/dist/chunks/{url-DCj-FtDL.cjs → url-BIzg4y2i.cjs} +2 -2
  12. package/dist/chunks/{url-BYg6oUon.es.js → url-CHayXMZH.es.js} +2 -2
  13. package/dist/chunks/{vue-IIIZMHTg.es.js → vue-Bi1uWinj.es.js} +17 -11
  14. package/dist/chunks/{vue-DPZkajuO.cjs → vue-HIY1g7dm.cjs} +17 -11
  15. package/dist/chunks/{xml-js-DJKwJc1u.cjs → xml-js-BjqmFOSP.cjs} +102 -81
  16. package/dist/chunks/{xml-js-Dua_oPCO.es.js → xml-js-CfClL-1b.es.js} +102 -81
  17. package/dist/core/SuperDoc.d.ts +0 -6
  18. package/dist/core/SuperDoc.d.ts.map +1 -1
  19. package/dist/core/collaboration/collaboration.d.ts +0 -9
  20. package/dist/core/collaboration/collaboration.d.ts.map +1 -1
  21. package/dist/core/collaboration/helpers.d.ts.map +1 -1
  22. package/dist/style.css +246 -147
  23. package/dist/super-editor/ai-writer.es.js +2 -2
  24. package/dist/super-editor/chunks/{converter-BbSSdo_p.js → converter-Bwa99qcs.js} +577 -337
  25. package/dist/super-editor/chunks/{docx-zipper-8FbwdMJc.js → docx-zipper-CVKlI3mU.js} +1 -1
  26. package/dist/super-editor/chunks/{editor-CnYTUN7K.js → editor-BdaZqkkS.js} +3590 -1911
  27. package/dist/super-editor/chunks/{toolbar-DtAngH6V.js → toolbar-BNg5l9RP.js} +130 -37
  28. package/dist/super-editor/components/pagination-helpers.d.ts.map +1 -1
  29. package/dist/super-editor/converter.es.js +1 -1
  30. package/dist/super-editor/core/Editor.d.ts +1 -8
  31. package/dist/super-editor/core/Editor.d.ts.map +1 -1
  32. package/dist/super-editor/core/InputRule.d.ts +7 -0
  33. package/dist/super-editor/core/InputRule.d.ts.map +1 -1
  34. package/dist/super-editor/core/commands/splitListItem.d.ts +1 -1
  35. package/dist/super-editor/core/commands/splitListItem.d.ts.map +1 -1
  36. package/dist/super-editor/core/helpers/annotator.d.ts +2 -0
  37. package/dist/super-editor/core/helpers/annotator.d.ts.map +1 -1
  38. package/dist/super-editor/core/helpers/findWordBounds.d.ts +5 -0
  39. package/dist/super-editor/core/helpers/findWordBounds.d.ts.map +1 -0
  40. package/dist/super-editor/core/helpers/setWordSelection.d.ts +2 -0
  41. package/dist/super-editor/core/helpers/setWordSelection.d.ts.map +1 -0
  42. package/dist/super-editor/core/inputRules/docx-paste/docx-paste.d.ts.map +1 -1
  43. package/dist/super-editor/core/super-converter/SuperConverter.d.ts +4 -1
  44. package/dist/super-editor/core/super-converter/SuperConverter.d.ts.map +1 -1
  45. package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
  46. package/dist/super-editor/core/super-converter/helpers.d.ts.map +1 -1
  47. package/dist/super-editor/core/super-converter/v2/importer/autoPageNumberImporter.d.ts.map +1 -1
  48. package/dist/super-editor/core/super-converter/v2/importer/listImporter.d.ts +5 -32
  49. package/dist/super-editor/core/super-converter/v2/importer/listImporter.d.ts.map +1 -1
  50. package/dist/super-editor/core/super-converter/v2/importer/paragraphNodeImporter.d.ts +3 -3
  51. package/dist/super-editor/core/super-converter/v2/importer/paragraphNodeImporter.d.ts.map +1 -1
  52. package/dist/super-editor/docx-zipper.es.js +2 -2
  53. package/dist/super-editor/editor.es.js +3 -3
  54. package/dist/super-editor/extensions/field-annotation/FieldAnnotationView.d.ts.map +1 -1
  55. package/dist/super-editor/extensions/field-annotation/field-annotation.d.ts.map +1 -1
  56. package/dist/super-editor/extensions/image/imageHelpers/imagePositionPlugin.d.ts.map +1 -1
  57. package/dist/super-editor/extensions/image/imageHelpers/index.d.ts +1 -0
  58. package/dist/super-editor/extensions/image/imageHelpers/processUploadedImage.d.ts.map +1 -1
  59. package/dist/super-editor/extensions/image/index.d.ts +1 -0
  60. package/dist/super-editor/extensions/index.d.ts +2 -1
  61. package/dist/super-editor/extensions/index.d.ts.map +1 -1
  62. package/dist/super-editor/extensions/line-height/line-height.d.ts.map +1 -1
  63. package/dist/super-editor/extensions/linked-styles/linked-styles.d.ts.map +1 -1
  64. package/dist/super-editor/extensions/list-item/list-item.d.ts.map +1 -1
  65. package/dist/super-editor/extensions/noderesizer/index.d.ts +2 -0
  66. package/dist/super-editor/extensions/noderesizer/index.d.ts.map +1 -0
  67. package/dist/super-editor/extensions/noderesizer/noderesizer.d.ts +7 -0
  68. package/dist/super-editor/extensions/noderesizer/noderesizer.d.ts.map +1 -0
  69. package/dist/super-editor/extensions/ordered-list/ordered-list.d.ts.map +1 -1
  70. package/dist/super-editor/extensions/page-number/page-number.d.ts +10 -0
  71. package/dist/super-editor/extensions/page-number/page-number.d.ts.map +1 -1
  72. package/dist/super-editor/extensions/pagination/pagination-helpers.d.ts +2 -1
  73. package/dist/super-editor/extensions/pagination/pagination-helpers.d.ts.map +1 -1
  74. package/dist/super-editor/extensions/pagination/pagination.d.ts.map +1 -1
  75. package/dist/super-editor/extensions/paragraph/paragraph.d.ts.map +1 -1
  76. package/dist/super-editor/file-zipper.es.js +1 -1
  77. package/dist/super-editor/style.css +219 -120
  78. package/dist/super-editor/super-editor.es.js +325 -200
  79. package/dist/super-editor/tests/e2e/test-app/vite.config.d.ts +1 -1
  80. package/dist/super-editor/tests/export/export-helpers/export-helpers.d.ts.map +1 -1
  81. package/dist/super-editor/toolbar.es.js +2 -2
  82. package/dist/super-editor.cjs +2 -2
  83. package/dist/super-editor.es.js +2 -2
  84. package/dist/superdoc.cjs +1590 -367
  85. package/dist/superdoc.es.js +1575 -368
  86. package/dist/superdoc.umd.js +5254 -1905
  87. package/dist/superdoc.umd.js.map +1 -1
  88. package/package.json +3 -2
  89. package/dist/super-editor/core/helpers/list-numbering-helpers.d.ts +0 -235
  90. package/dist/super-editor/core/helpers/list-numbering-helpers.d.ts.map +0 -1
  91. package/dist/super-editor/extensions/list-item/ListItemNodeView.d.ts +0 -56
  92. package/dist/super-editor/extensions/list-item/ListItemNodeView.d.ts.map +0 -1
  93. package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts +0 -3
  94. package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts.map +0 -1
  95. package/dist/super-editor/tests/editor/listItemHelpers.test.d.ts +0 -2
  96. package/dist/super-editor/tests/editor/listItemHelpers.test.d.ts.map +0 -1
@@ -1,6 +1,6 @@
1
- import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, unref, createBlock, toDisplayString, withDirectives, withKeys, withModifiers, vModelText, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, nextTick, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
2
- import { x as process$1 } from "./converter-BbSSdo_p.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-CnYTUN7K.js";
1
+ import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, nextTick, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
2
+ import { x as process$1 } from "./converter-Bwa99qcs.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-BdaZqkkS.js";
4
4
  const sanitizeNumber = (value, defaultNumber) => {
5
5
  let sanitized = value.replace(/[^0-9.]/g, "");
6
6
  sanitized = parseFloat(sanitized);
@@ -191,16 +191,20 @@ const _sfc_main$5 = {
191
191
  }
192
192
  };
193
193
  const ToolbarButtonIcon = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-6d7523ab"]]);
194
- const _hoisted_1$3 = ["role"];
195
- const _hoisted_2$2 = ["data-item", "aria-label"];
194
+ const _hoisted_1$3 = ["role", "aria-label", "onKeydown"];
195
+ const _hoisted_2$2 = ["data-item"];
196
196
  const _hoisted_3$2 = {
197
197
  key: 1,
198
198
  class: "button-label"
199
199
  };
200
- const _hoisted_4 = { key: 2 };
200
+ const _hoisted_4$1 = { key: 2 };
201
201
  const _hoisted_5 = ["placeholder", "onKeydown", "id"];
202
202
  const _hoisted_6 = ["placeholder", "onKeydown", "id"];
203
203
  const _hoisted_7 = ["innerHTML"];
204
+ const _hoisted_8 = {
205
+ "aria-live": "polite",
206
+ class: "visually-hidden"
207
+ };
204
208
  const _sfc_main$4 = {
205
209
  __name: "ToolbarButton",
206
210
  props: {
@@ -283,14 +287,15 @@ const _sfc_main$4 = {
283
287
  return openBlock(), createElementBlock("div", {
284
288
  class: normalizeClass(["toolbar-item", unref(attributes).className]),
285
289
  style: normalizeStyle(getStyle.value),
286
- role: __props.isOverflowItem ? "menuitem" : ""
290
+ role: __props.isOverflowItem ? "menuitem" : "button",
291
+ "aria-label": unref(attributes).ariaLabel,
292
+ onClick: handleClick,
293
+ onKeydown: withKeys(withModifiers(handleClick, ["stop"]), ["enter"]),
294
+ tabindex: "0"
287
295
  }, [
288
296
  createElementVNode("div", {
289
- onClick: handleClick,
290
297
  class: normalizeClass(["toolbar-button", { active: unref(active), disabled: unref(disabled), narrow: __props.isNarrow, wide: __props.isWide, "has-inline-text-input": unref(hasInlineTextInput), "high-contrast": unref(isHighContrastMode) }]),
291
- "data-item": `btn-${unref(name) || ""}`,
292
- "aria-label": unref(attributes).ariaLabel,
293
- role: "button"
298
+ "data-item": `btn-${unref(name) || ""}`
294
299
  }, [
295
300
  unref(icon) ? (openBlock(), createBlock(ToolbarButtonIcon, {
296
301
  key: 0,
@@ -300,7 +305,7 @@ const _sfc_main$4 = {
300
305
  name: unref(name)
301
306
  }, null, 8, ["color", "icon", "name"])) : createCommentVNode("", true),
302
307
  unref(label) && !unref(hideLabel) && !unref(inlineTextInputVisible) ? (openBlock(), createElementBlock("div", _hoisted_3$2, toDisplayString(unref(label)), 1)) : createCommentVNode("", true),
303
- unref(inlineTextInputVisible) ? (openBlock(), createElementBlock("span", _hoisted_4, [
308
+ unref(inlineTextInputVisible) ? (openBlock(), createElementBlock("span", _hoisted_4$1, [
304
309
  unref(name) === "fontSize" ? withDirectives((openBlock(), createElementBlock("input", {
305
310
  key: 0,
306
311
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inlineTextInput.value = $event),
@@ -310,7 +315,7 @@ const _sfc_main$4 = {
310
315
  type: "text",
311
316
  class: normalizeClass(["button-text-input", { "high-contrast": unref(isHighContrastMode) }]),
312
317
  id: "inlineTextInput-" + unref(name),
313
- autoccomplete: "off",
318
+ autocomplete: "off",
314
319
  ref_key: "inlineInput",
315
320
  ref: inlineInput
316
321
  }, null, 42, _hoisted_5)), [
@@ -323,7 +328,7 @@ const _sfc_main$4 = {
323
328
  type: "text",
324
329
  class: "button-text-input",
325
330
  id: "inlineTextInput-" + unref(name),
326
- autoccomplete: "off",
331
+ autocomplete: "off",
327
332
  ref_key: "inlineInput",
328
333
  ref: inlineInput
329
334
  }, null, 40, _hoisted_6)), [
@@ -335,13 +340,14 @@ const _sfc_main$4 = {
335
340
  class: "dropdown-caret",
336
341
  innerHTML: caretIcon.value,
337
342
  style: normalizeStyle({ opacity: unref(disabled) ? 0.6 : 1 })
338
- }, null, 12, _hoisted_7)) : createCommentVNode("", true)
343
+ }, null, 12, _hoisted_7)) : createCommentVNode("", true),
344
+ createElementVNode("div", _hoisted_8, toDisplayString(`${unref(attributes).ariaLabel} ${unref(active) ? "selected" : "unset"}`), 1)
339
345
  ], 10, _hoisted_2$2)
340
- ], 14, _hoisted_1$3);
346
+ ], 46, _hoisted_1$3);
341
347
  };
342
348
  }
343
349
  };
344
- const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-6eb57404"]]);
350
+ const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-2518a3d1"]]);
345
351
  const _hoisted_1$2 = {
346
352
  class: "toolbar-separator",
347
353
  role: "separator",
@@ -394,16 +400,18 @@ const _sfc_main$2 = {
394
400
  required: true
395
401
  }
396
402
  },
397
- setup(__props) {
403
+ emits: ["buttonClick"],
404
+ setup(__props, { emit: __emit }) {
398
405
  const { proxy } = getCurrentInstance();
406
+ const emit = __emit;
399
407
  const props = __props;
400
- const isDropdownOpened = ref(false);
408
+ const isDropdownOpened = computed(() => props.toolbarItem.expand.value);
401
409
  const overflowToolbarItem = computed(() => ({
402
410
  ...props.toolbarItem,
403
- active: isDropdownOpened
411
+ active: isDropdownOpened.value
404
412
  }));
405
413
  const toggleOverflowMenu = () => {
406
- isDropdownOpened.value = !isDropdownOpened.value;
414
+ emit("buttonClick", props.toolbarItem);
407
415
  };
408
416
  const handleCommand = ({ item, argument }) => {
409
417
  proxy.$toolbar.emitCommand({ item, argument });
@@ -428,7 +436,7 @@ const _sfc_main$2 = {
428
436
  };
429
437
  }
430
438
  };
431
- const OverflowMenu = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-c637209b"]]);
439
+ const OverflowMenu = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-53852ffa"]]);
432
440
  function plugin$1(options) {
433
441
  let _bPrefix = ".";
434
442
  let _ePrefix = "__";
@@ -9759,9 +9767,10 @@ const NSkeleton = defineComponent({
9759
9767
  return child;
9760
9768
  }
9761
9769
  });
9762
- const _hoisted_1 = { key: 0 };
9770
+ const _hoisted_1 = ["onKeydown", "tabindex"];
9763
9771
  const _hoisted_2 = { key: 0 };
9764
9772
  const _hoisted_3 = { key: 0 };
9773
+ const _hoisted_4 = { key: 0 };
9765
9774
  const _sfc_main$1 = {
9766
9775
  __name: "ButtonGroup",
9767
9776
  props: {
@@ -9785,6 +9794,7 @@ const _sfc_main$1 = {
9785
9794
  emits: ["command"],
9786
9795
  setup(__props, { emit: __emit }) {
9787
9796
  const emit = __emit;
9797
+ const toolbarItemRefs = ref([]);
9788
9798
  const props = __props;
9789
9799
  const currentItem = ref(null);
9790
9800
  const { isHighContrastMode } = useHighContrastMode();
@@ -9813,7 +9823,7 @@ const _sfc_main$1 = {
9813
9823
  const isOverflow = (item) => item.type === "overflow";
9814
9824
  const handleToolbarButtonClick = (item, argument = null) => {
9815
9825
  currentItem.value = item;
9816
- currentItem.value.expand = true;
9826
+ currentItem.value.expand = !currentItem.value.expand;
9817
9827
  if (item.disabled.value) return;
9818
9828
  emit("command", { item, argument });
9819
9829
  };
@@ -9855,19 +9865,97 @@ const _sfc_main$1 = {
9855
9865
  const handleClickOutside = (e) => {
9856
9866
  closeDropdowns();
9857
9867
  };
9868
+ const moveToNextButton = (e) => {
9869
+ const currentButton = e.target;
9870
+ const nextButton = e.target.closest(".toolbar-item-ctn").nextElementSibling;
9871
+ if (nextButton) {
9872
+ currentButton.setAttribute("tabindex", "-1");
9873
+ nextButton.setAttribute("tabindex", "0");
9874
+ nextButton.focus();
9875
+ }
9876
+ };
9877
+ const moveToPreviousButton = (e) => {
9878
+ const currentButton = e.target;
9879
+ const previousButton = e.target.closest(".toolbar-item-ctn").previousElementSibling;
9880
+ if (previousButton) {
9881
+ currentButton.setAttribute("tabindex", "-1");
9882
+ previousButton.setAttribute("tabindex", "0");
9883
+ previousButton.focus();
9884
+ }
9885
+ };
9886
+ const moveToNextButtonGroup = (e) => {
9887
+ const nextButtonGroup = e.target.closest(".button-group").nextElementSibling;
9888
+ if (nextButtonGroup) {
9889
+ nextButtonGroup.setAttribute("tabindex", "0");
9890
+ nextButtonGroup.focus();
9891
+ } else {
9892
+ const editor = document.querySelector(".ProseMirror");
9893
+ if (editor) {
9894
+ editor.focus();
9895
+ }
9896
+ }
9897
+ };
9898
+ const moveToPreviousButtonGroup = (e) => {
9899
+ const previousButtonGroup = e.target.closest(".button-group").previousElementSibling;
9900
+ if (previousButtonGroup) {
9901
+ previousButtonGroup.setAttribute("tabindex", "0");
9902
+ previousButtonGroup.focus();
9903
+ }
9904
+ };
9905
+ const handleKeyDown = (e, item) => {
9906
+ e.preventDefault();
9907
+ switch (e.key) {
9908
+ case "Enter":
9909
+ console.log("Enter");
9910
+ handleToolbarButtonClick(item, null);
9911
+ break;
9912
+ case "Escape":
9913
+ closeDropdowns();
9914
+ break;
9915
+ case "ArrowRight":
9916
+ closeDropdowns();
9917
+ moveToNextButton(e);
9918
+ break;
9919
+ case "ArrowLeft":
9920
+ closeDropdowns();
9921
+ moveToPreviousButton(e);
9922
+ break;
9923
+ case "Tab":
9924
+ if (e.shiftKey) {
9925
+ moveToPreviousButtonGroup(e);
9926
+ } else {
9927
+ moveToNextButtonGroup(e);
9928
+ }
9929
+ break;
9930
+ }
9931
+ };
9932
+ const handleFocus = (e) => {
9933
+ const firstButton = toolbarItemRefs.value.find((item) => !item.classList.contains("disabled"));
9934
+ if (firstButton) {
9935
+ firstButton.setAttribute("tabindex", "0");
9936
+ firstButton.focus();
9937
+ }
9938
+ };
9858
9939
  return (_ctx, _cache) => {
9859
9940
  return openBlock(), createElementBlock("div", {
9860
9941
  style: normalizeStyle(getPositionStyle.value),
9861
9942
  class: "button-group",
9862
- role: "group"
9943
+ role: "group",
9944
+ onFocus: handleFocus
9863
9945
  }, [
9864
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.toolbarItems, (item) => {
9946
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.toolbarItems, (item, index) => {
9865
9947
  return openBlock(), createElementBlock("div", {
9866
9948
  key: item.id.value,
9867
9949
  class: normalizeClass([{
9868
9950
  narrow: item.isNarrow.value,
9869
- wide: item.isWide.value
9870
- }, "toolbar-item-ctn"])
9951
+ wide: item.isWide.value,
9952
+ disabled: item.disabled.value
9953
+ }, "toolbar-item-ctn"]),
9954
+ onKeydown: (e) => handleKeyDown(e, item),
9955
+ ref_for: true,
9956
+ ref_key: "toolbarItemRefs",
9957
+ ref: toolbarItemRefs,
9958
+ tabindex: index === 0 ? 0 : -1
9871
9959
  }, [
9872
9960
  isSeparator(item) ? (openBlock(), createBlock(ToolbarSeparator, {
9873
9961
  key: 0,
@@ -9897,14 +9985,15 @@ const _sfc_main$1 = {
9897
9985
  trigger: withCtx(() => [
9898
9986
  createVNode(ToolbarButton, {
9899
9987
  "toolbar-item": item,
9988
+ disabled: item.disabled.value,
9900
9989
  onTextSubmit: ($event) => handleToolbarButtonTextSubmit(item, $event),
9901
9990
  onButtonClick: ($event) => handleToolbarButtonClick(item)
9902
- }, null, 8, ["toolbar-item", "onTextSubmit", "onButtonClick"])
9991
+ }, null, 8, ["toolbar-item", "disabled", "onTextSubmit", "onButtonClick"])
9903
9992
  ]),
9904
9993
  default: withCtx(() => [
9905
9994
  createElementVNode("div", null, [
9906
9995
  createTextVNode(toDisplayString(item.tooltip) + " ", 1),
9907
- item.disabled.value ? (openBlock(), createElementBlock("span", _hoisted_1, "(disabled)")) : createCommentVNode("", true)
9996
+ item.disabled.value ? (openBlock(), createElementBlock("span", _hoisted_2, "(disabled)")) : createCommentVNode("", true)
9908
9997
  ])
9909
9998
  ]),
9910
9999
  _: 2
@@ -9925,9 +10014,9 @@ const _sfc_main$1 = {
9925
10014
  }, null, 8, ["toolbar-item", "is-overflow-item", "onTextSubmit", "onButtonClick"])
9926
10015
  ]),
9927
10016
  default: withCtx(() => [
9928
- item.tooltip ? (openBlock(), createElementBlock("div", _hoisted_2, [
10017
+ item.tooltip ? (openBlock(), createElementBlock("div", _hoisted_3, [
9929
10018
  createTextVNode(toDisplayString(item.tooltip) + " ", 1),
9930
- item.disabled.value ? (openBlock(), createElementBlock("span", _hoisted_3, "(disabled)")) : createCommentVNode("", true)
10019
+ item.disabled.value ? (openBlock(), createElementBlock("span", _hoisted_4, "(disabled)")) : createCommentVNode("", true)
9931
10020
  ])) : createCommentVNode("", true)
9932
10021
  ]),
9933
10022
  _: 2
@@ -9935,15 +10024,16 @@ const _sfc_main$1 = {
9935
10024
  isOverflow(item) && __props.overflowItems.length ? (openBlock(), createBlock(OverflowMenu, {
9936
10025
  key: 3,
9937
10026
  "toolbar-item": item,
10027
+ onButtonClick: ($event) => handleToolbarButtonClick(item),
9938
10028
  "overflow-items": __props.overflowItems
9939
- }, null, 8, ["toolbar-item", "overflow-items"])) : createCommentVNode("", true)
9940
- ], 2);
10029
+ }, null, 8, ["toolbar-item", "onButtonClick", "overflow-items"])) : createCommentVNode("", true)
10030
+ ], 42, _hoisted_1);
9941
10031
  }), 128))
9942
- ], 4);
10032
+ ], 36);
9943
10033
  };
9944
10034
  }
9945
10035
  };
9946
- const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-b09e5a20"]]);
10036
+ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-d4f36abf"]]);
9947
10037
  const _sfc_main = {
9948
10038
  __name: "Toolbar",
9949
10039
  emits: ["command", "toggle", "select"],
@@ -9994,12 +10084,14 @@ const _sfc_main = {
9994
10084
  }, [
9995
10085
  unref(showLeftSide) ? (openBlock(), createBlock(ButtonGroup, {
9996
10086
  key: 0,
10087
+ tabindex: "0",
9997
10088
  "toolbar-items": getFilteredItems("left"),
9998
10089
  position: "left",
9999
10090
  onCommand: handleCommand,
10000
10091
  class: "superdoc-toolbar-group-side"
10001
10092
  }, null, 8, ["toolbar-items"])) : createCommentVNode("", true),
10002
10093
  createVNode(ButtonGroup, {
10094
+ tabindex: "0",
10003
10095
  "toolbar-items": getFilteredItems("center"),
10004
10096
  "overflow-items": unref(proxy).$toolbar.overflowItems,
10005
10097
  position: "center",
@@ -10007,6 +10099,7 @@ const _sfc_main = {
10007
10099
  }, null, 8, ["toolbar-items", "overflow-items"]),
10008
10100
  unref(showRightSide) ? (openBlock(), createBlock(ButtonGroup, {
10009
10101
  key: 1,
10102
+ tabindex: "0",
10010
10103
  "toolbar-items": getFilteredItems("right"),
10011
10104
  position: "right",
10012
10105
  onCommand: handleCommand,
@@ -10016,7 +10109,7 @@ const _sfc_main = {
10016
10109
  };
10017
10110
  }
10018
10111
  };
10019
- const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2a400574"]]);
10112
+ const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9d38c912"]]);
10020
10113
  export {
10021
10114
  NSkeleton as N,
10022
10115
  Toolbar as T,
@@ -1 +1 @@
1
- {"version":3,"file":"pagination-helpers.d.ts","sourceRoot":"","sources":["../../src/components/pagination-helpers.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,mDAJW,WAAW,gBAET,IAAI,CAuBhB"}
1
+ {"version":3,"file":"pagination-helpers.d.ts","sourceRoot":"","sources":["../../src/components/pagination-helpers.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,mDAJW,WAAW,gBAET,IAAI,CAyBhB"}
@@ -1,4 +1,4 @@
1
- import { O } from "./chunks/converter-BbSSdo_p.js";
1
+ import { O } from "./chunks/converter-Bwa99qcs.js";
2
2
  export {
3
3
  O as SuperConverter
4
4
  };
@@ -15,9 +15,6 @@
15
15
  * @property {string} email The user's email
16
16
  * @property {string | null} image The user's photo
17
17
  */
18
- /**
19
- * @typedef {Object} DocxNode A JSON representation of a docx node
20
- */
21
18
  /**
22
19
  * @typedef {Object} EditorOptions
23
20
  * @property {HTMLElement} [element] - The container element for the editor
@@ -412,7 +409,7 @@ export class Editor extends EventEmitter {
412
409
  * @param {boolean} [options.getUpdatedDocs=false] - When set to true return only updated docx files
413
410
  * @returns {Promise<Blob|ArrayBuffer|Object>} The exported DOCX file or updated docx files
414
411
  */
415
- exportDocx({ isFinalDoc, commentsType, exportJsonOnly, exportXmlOnly, comments, getUpdatedDocs }?: {
412
+ exportDocx({ isFinalDoc, commentsType, comments, getUpdatedDocs }?: {
416
413
  isFinalDoc?: boolean;
417
414
  commentsType?: string;
418
415
  comments?: any[];
@@ -511,10 +508,6 @@ export type User = {
511
508
  */
512
509
  image: string | null;
513
510
  };
514
- /**
515
- * A JSON representation of a docx node
516
- */
517
- export type DocxNode = any;
518
511
  export type EditorOptions = {
519
512
  /**
520
513
  * - The container element for the editor
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AA0BA;;;;GAIG;AAEH;;;;;GAKG;AACH;;;;;EAKE;AAEF;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AAEH;;;;GAIG;AACH;IAuqBE;;;;;;;;;;;;OAYG;IACH,+BARW,IAAI,GAAC,IAAI,GAAC,MAAM,WAChB,OAAO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BACP,OAAO;;;;YACP,MAAM;;;;kBACN,OAAO;;;;iBACP,OAAO;;;;;;;;;;;;uBAGP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAsBP,OAAO;;;;mBACP,OAAO;;;;WACP,MAAM;;6BAnGS,mBAAmB"}
@@ -1,3 +1,10 @@
1
+ /**
2
+ * Cleans and sanitizes HTML content by removing unnecessary tags, entities, and extra whitespace.
3
+ *
4
+ * @param {String} html The HTML string to be processed.
5
+ * @returns {String} The processed HTML string with em units converted to pt units.
6
+ */
7
+ export function cleanHtmlUnnecessaryTags(html: string): string;
1
8
  export class InputRule {
2
9
  constructor(config: any);
3
10
  match: any;
@@ -1 +1 @@
1
- {"version":3,"file":"InputRule.d.ts","sourceRoot":"","sources":["../../src/core/InputRule.js"],"names":[],"mappings":"AAUA;IAIE,yBAGC;IAND,WAAM;IACN,aAAQ;CAMT;AAgHM;;;gBAyHN;AAkCM,oDASN;uBAtSiC,mBAAmB"}
1
+ {"version":3,"file":"InputRule.d.ts","sourceRoot":"","sources":["../../src/core/InputRule.js"],"names":[],"mappings":"AAwSA;;;;;GAKG;AACH,+DAOC;AA3SD;IAIE,yBAGC;IAND,WAAM;IACN,aAAQ;CAMT;AAgHM;;;gBAyHN;AAkCM,oDASN;uBAtSiC,mBAAmB"}
@@ -1,2 +1,2 @@
1
- export function splitListItem(typeOrName: any, currentNode: any): (props: any) => boolean;
1
+ export function splitListItem(typeOrName: any): (props: any) => boolean;
2
2
  //# sourceMappingURL=splitListItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitListItem.d.ts","sourceRoot":"","sources":["../../../src/core/commands/splitListItem.js"],"names":[],"mappings":"AAeO,mEAAoD,UAAK,aAuF/D"}
1
+ {"version":3,"file":"splitListItem.d.ts","sourceRoot":"","sources":["../../../src/core/commands/splitListItem.js"],"names":[],"mappings":"AAcO,iDAAuC,UAAK,aAwGlD"}
@@ -12,6 +12,7 @@ export function annotateDocument({ annotationValues, hiddenFieldIds, removeEmpty
12
12
  tr: any;
13
13
  editor: any;
14
14
  }): any;
15
+ export function cleanUpListsWithAnnotations(fieldsToDelete: any[], editor: any): void;
15
16
  export namespace AnnotatorHelpers {
16
17
  export { getFieldAttrs };
17
18
  export { processTables };
@@ -20,6 +21,7 @@ export namespace AnnotatorHelpers {
20
21
  export { getAllHeaderFooterEditors };
21
22
  export { updateHeaderFooterFieldAnnotations };
22
23
  export { deleteHeaderFooterFieldAnnotations };
24
+ export { cleanUpListsWithAnnotations };
23
25
  }
24
26
  /**
25
27
  * Annotate headers and footers in the document
@@ -1 +1 @@
1
- {"version":3,"file":"annotator.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/annotator.js"],"names":[],"mappings":"AAWO,uEAiBN;AAiCM,+DAHJ;IAAuB,MAAM;IACP,gBAAgB;CACxC,OAkBA;AA8FM,kDAHI,MAAM,GACJ,KAAQ,CAsCpB;AAwBM;;;;;;;QAyFN;;;;;;;;;;AA/GD;;;;;;;;GAQG;AACH,4GALG;IAAuB,MAAM;IACP,gBAAgB;IAChB,cAAc;CACpC,GAAU,IAAI,CAahB;AAuHD;;;;SAeC;AAED;;;SAeC"}
1
+ {"version":3,"file":"annotator.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/annotator.js"],"names":[],"mappings":"AAYO,uEAiBN;AAiCM,+DAHJ;IAAuB,MAAM;IACP,gBAAgB;CACxC,OAkBA;AA8FM,kDAHI,MAAM,GACJ,KAAQ,CAsCpB;AAwBM;;;;;;;QAyFN;AA+DM,sFAkFN;;;;;;;;;;;AAhQD;;;;;;;;GAQG;AACH,4GALG;IAAuB,MAAM;IACP,gBAAgB;IAChB,cAAc;CACpC,GAAU,IAAI,CAahB;AAuHD;;;;SAeC;AAED;;;SAgBC"}
@@ -0,0 +1,5 @@
1
+ export function findWordBounds(doc: any, pos: any): {
2
+ from: any;
3
+ to: any;
4
+ };
5
+ //# sourceMappingURL=findWordBounds.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"findWordBounds.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/findWordBounds.js"],"names":[],"mappings":"AAMO;;;EAmBN"}
@@ -0,0 +1,2 @@
1
+ export function setWordSelection(view: any, pos: any): void;
2
+ //# sourceMappingURL=setWordSelection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setWordSelection.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/setWordSelection.js"],"names":[],"mappings":"AAGO,4DAKN"}
@@ -1 +1 @@
1
- {"version":3,"file":"docx-paste.d.ts","sourceRoot":"","sources":["../../../../src/core/inputRules/docx-paste/docx-paste.js"],"names":[],"mappings":"AAYO,sCANI,MAAM,UACN,MAAM,+BAkDhB"}
1
+ {"version":3,"file":"docx-paste.d.ts","sourceRoot":"","sources":["../../../../src/core/inputRules/docx-paste/docx-paste.js"],"names":[],"mappings":"AAaO,sCANI,MAAM,UACN,MAAM,+BAoDhB"}
@@ -101,12 +101,15 @@ export class SuperConverter {
101
101
  };
102
102
  };
103
103
  getThemeInfo(themeName: any): {
104
+ typeface?: undefined;
105
+ panose?: undefined;
106
+ } | {
104
107
  typeface: any;
105
108
  panose: any;
106
109
  };
107
110
  getSchema(editor: any): import("./v2/importer/docxImporter.js").PmNodeJson;
108
111
  schemaToXml(data: any, debug?: boolean): string;
109
- exportToDocx(jsonData: any, editorSchema: any, documentMedia: any, isFinalDoc: boolean, commentsExportType: any, comments: any[], editor: any, exportJsonOnly?: boolean): Promise<any>;
112
+ exportToDocx(jsonData: any, editorSchema: any, documentMedia: any, isFinalDoc: boolean, commentsExportType: any, comments: any[], editor: any): Promise<string>;
110
113
  exportToXmlJson({ data, editorSchema, comments, commentDefinitions, commentsExportType, isFinalDoc, editor, isHeaderFooter, }: {
111
114
  data: any;
112
115
  editorSchema: any;
@@ -1 +1 @@
1
- {"version":3,"file":"SuperConverter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/SuperConverter.js"],"names":[],"mappings":"AAeA;IACE;;;;;;;;;;;;;;;;;;OAuBG;IAEH;;;;;;;;;;SAiBE;IAEF;;;;;;OAMG;IAEH,6BAAsF;IAwFtF,gDAoBC;IAED,6DAqBC;IAjID,0BA8DC;IA5DC,WAAmC;IAGnC,iBAAuB;IACvB,wBAA8B;IAG9B,iBAAsB;IACtB,UAA8B;IAC9B,WAAgC;IAEhC,WAAgC;IAEhC,eAAoB;IACpB,gBAAkB;IAGlB,4BAAoC;IAGpC,SAAsB;IAItB,cAAmB;IAInB,gBAAsB;IAGtB,iBAAuB;IAGvB,YAAiB;IACjB;;;;;MAAsE;IACtE,qBAAuB;IACvB,YAAiB;IACjB;;;;;MAAsE;IACtE,qBAAuB;IAGvB,oBAAsB;IAGtB,UAAwB;IAExB,0BAAiC;IACjC,0BAA4B;IAG5B,eAA0C;IAC1C,wBAA8B;IAG9B,gBAA4C;IAC5C,gBAA4C;IAM9C,qBAgBC;IAED,8BAEC;IA+CD;;;;;;;;;;MAwCC;IAED,2BAmDC;IAED,8BAwBC;IAED;;;;;;MAWC;IAED;;;MAgBC;IAED,2EAeC;IAED,gDAGC;IAED,uLA+DC;IAED;;;;;;;;;;;;MA8BC;;CAkNF"}
1
+ {"version":3,"file":"SuperConverter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/SuperConverter.js"],"names":[],"mappings":"AAeA;IACE;;;;;;;;;;;;;;;;;;OAuBG;IAEH;;;;;;;;;;SAiBE;IAEF;;;;;;OAMG;IAEH,6BAAsF;IAwFtF,gDAoBC;IAED,6DAqBC;IAjID,0BA8DC;IA5DC,WAAmC;IAGnC,iBAAuB;IACvB,wBAA8B;IAG9B,iBAAsB;IACtB,UAA8B;IAC9B,WAAgC;IAEhC,WAAgC;IAEhC,eAAoB;IACpB,gBAAkB;IAGlB,4BAAoC;IAGpC,SAAsB;IAItB,cAAmB;IAInB,gBAAsB;IAGtB,iBAAuB;IAGvB,YAAiB;IACjB;;;;;MAAsE;IACtE,qBAAuB;IACvB,YAAiB;IACjB;;;;;MAAsE;IACtE,qBAAuB;IAGvB,oBAAsB;IAGtB,UAAwB;IAExB,0BAAiC;IACjC,0BAA4B;IAG5B,eAA0C;IAC1C,wBAA8B;IAG9B,gBAA4C;IAC5C,gBAA4C;IAM9C,qBAgBC;IAED,8BAEC;IA+CD;;;;;;;;;;MAwCC;IAED,2BAmDC;IAED,8BAwBC;IAED;;;;;;MAWC;IAED;;;;;;MAiBC;IAED,2EAeC;IAED,gDAGC;IAED,gKA4DC;IAED;;;;;;;;;;;;MA8BC;;CAkNF"}
@@ -1 +1 @@
1
- {"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAwBA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAsCxB;AA+DD;;;;;GAKG;AACH,qDAFa,YAAY,CAyBxB;AAk+DD;;;;;;;;;EAcC;AA+FD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAsEF;;;;;;;;;;;;;mBAp0Ea,KAAQ;;;;;;UAKR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
1
+ {"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAwBA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAwCxB;AA+DD;;;;;GAKG;AACH,qDAFa,YAAY,CAyBxB;AAs5DD;;;;;;;;;EAcC;AA+FD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAwEF;;;;;;;;;;;;;mBA5vEa,KAAQ;;;;;;UAKR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/helpers.js"],"names":[],"mappings":"AAEA,mDAIC;AAED,kDAIC;AAED,kDAIC;AAED,mDAIC;AAED,iDAGC;AAED,iDAGC;AAED,2DAGC;AAOD,8CAKC;AAED,6CAIC;AAED,wDAGC;AArBD,2DAGC;AAoBD,8DAKC;AAED,yDAGC;AAYD,yFA6BC;AAED,uEAKC;AAED,kEAoBC;AAED,qDASC;AAOD,2CAKC;AAtFD,2CAGC;AARD,8CAGC;AA0FD;;;;EAUC;AAED,qEAwBC;AAED,0EAGC"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/helpers.js"],"names":[],"mappings":"AAEA,mDAIC;AAED,kDAIC;AAED,kDAIC;AAED,mDAIC;AAED,iDAGC;AAED,iDAGC;AAED,2DAGC;AAOD,8CAKC;AAED,6CAIC;AAED,wDAGC;AArBD,2DAGC;AAoBD,8DAKC;AAED,yDAGC;AAYD,yFA6BC;AAED,uEAKC;AAED,kEAoBC;AAED,qDASC;AAOD,2CAKC;AAtFD,2CAGC;AARD,8CAGC;AA0FD;;;;EAMC;AAED,qEAwBC;AAED,0EAGC"}
@@ -1 +1 @@
1
- {"version":3,"file":"autoPageNumberImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/autoPageNumberImporter.js"],"names":[],"mappings":"AAeA;;GAEG;AACH,wCAGE;AAiBF;;GAEG;AACH,2CAGE"}
1
+ {"version":3,"file":"autoPageNumberImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/autoPageNumberImporter.js"],"names":[],"mappings":"AAsBA;;GAEG;AACH,wCAGE;AAsBF;;GAEG;AACH,2CAGE"}
@@ -5,27 +5,6 @@
5
5
  * @returns {boolean} Whether the node is a list or not.
6
6
  */
7
7
  export function testForList(node: XmlNode, docx: any): boolean;
8
- /**
9
- * Get the style tag from the style ID
10
- *
11
- * @param {string} styleId The style ID to search for
12
- * @param {Object} docx The docx data
13
- * @returns {Object} The style tag
14
- */
15
- export function getStyleTagFromStyleId(styleId: string, docx: any): any;
16
- /**
17
- * Get the num ID from the style definition
18
- * This is a recursive function that will check the style definition for the numId
19
- * If it doesn't exist, it will check the basedOn style definition for the numId
20
- * This will continue until we find a numId or we run out of basedOn styles
21
- *
22
- * @param {Object} node The node to check
23
- * @param {string} styleId The style ID to check
24
- * @param {Object} docx The docx data
25
- * @param {Set} seenStyleIds The set of style IDs we've already seen to avoid circular references
26
- * @returns {string|null} The numId or null if not found
27
- */
28
- export function getNumPrRecursive({ node, styleId, docx, seenStyleIds }: any): string | null;
29
8
  /**
30
9
  * Main function to get list item information from numbering.xml
31
10
  *
@@ -37,6 +16,8 @@ export function getNumPrRecursive({ node, styleId, docx, seenStyleIds }: any): s
37
16
  export function getNodeNumberingDefinition(item: any, level: int, docx: ParsedDocx): {
38
17
  listType?: undefined;
39
18
  listOrderingType?: undefined;
19
+ ilvl?: undefined;
20
+ numId?: undefined;
40
21
  listrPrs?: undefined;
41
22
  listpPrs?: undefined;
42
23
  start?: undefined;
@@ -45,21 +26,14 @@ export function getNodeNumberingDefinition(item: any, level: int, docx: ParsedDo
45
26
  } | {
46
27
  listType: string;
47
28
  listOrderingType: any;
29
+ ilvl: any;
30
+ numId: any;
48
31
  listrPrs: {};
49
- listpPrs: {
50
- indent: {};
51
- justify: {
52
- val: any;
53
- };
54
- tabStops: any[];
55
- };
32
+ listpPrs: {};
56
33
  start: any;
57
34
  lvlText: any;
58
35
  lvlJc: any;
59
36
  };
60
- export function getDefinitionForLevel(data: any, level: any): any;
61
- export function parseIndentElement(indElem: any): {};
62
- export function combineIndents(ind1: any, ind2: any): {};
63
37
  /**
64
38
  * @type {import("docxImporter").NodeHandler}
65
39
  */
@@ -68,5 +42,4 @@ export const handleListNode: any;
68
42
  * @type {import("docxImporter").NodeHandlerEntry}
69
43
  */
70
44
  export const listHandlerEntity: any;
71
- export function getAbstractDefinition(numId: any, docx: any): any;
72
45
  //# sourceMappingURL=listImporter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"listImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/listImporter.js"],"names":[],"mappings":"AAmMA;;;;;GAKG;AACH,kCAHW,OAAO,cACL,OAAO,CAqCnB;AAMD;;;;;;GAMG;AACH,gDAJW,MAAM,kBAahB;AAED;;;;;;;;;;;GAWG;AACH,+EAFa,MAAM,GAAC,IAAI,CAwBvB;AAgJD;;;;;;;GAOG;AACH,6DAJW,GAAG,QACH,UAAU;;;;;;;;;;;;;;;;;;;;;;EAgDpB;AAED,kEAEC;AAED,qDAUC;AAED,yDAmBC;AAzgBD;;GAEG;AACH,iCAqBE;AAEF;;GAEG;AACH,oCAGE;AAiVK,kEAiBN"}
1
+ {"version":3,"file":"listImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/listImporter.js"],"names":[],"mappings":"AAqUA;;;;;GAKG;AACH,kCAHW,OAAO,cACL,OAAO,CAkBnB;AAkND;;;;;;;GAOG;AACH,6DAJW,GAAG,QACH,UAAU;;;;;;;;;;;;;;;;;;;;EA8CpB;AAzlBD;;GAEG;AACH,iCA0CE;AAEF;;GAEG;AACH,oCAGE"}
@@ -54,10 +54,10 @@ export function getParagraphIndent(node: any, docx: any, styleId?: string): {
54
54
  textIndent: number;
55
55
  };
56
56
  export function getParagraphSpacing(node: any, docx: any, styleId?: string, marks?: any[]): {
57
- line: string | number;
58
- lineRule: any;
59
- lineSpaceBefore: number;
60
57
  lineSpaceAfter: number;
58
+ lineSpaceBefore: number;
59
+ line: number;
60
+ lineRule: any;
61
61
  };
62
62
  /**
63
63
  * @type {import("docxImporter").NodeHandlerEntry}
@@ -1 +1 @@
1
- {"version":3,"file":"paragraphNodeImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/paragraphNodeImporter.js"],"names":[],"mappings":"AAySA;;;GAGG;AACH,0DAHW,MAAM,QACN,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;EAuGpB;AAED;;;;;;GAMG;AACH,kDAHW,OAAO,EAAE,SA4CnB;AA7bD;;;;;;;GAOG;AACH,sCAyIE;AAEK;;;;;;EAwCN;AAEM;;;;;EA6CN;AAgDD;;GAEG;AACH,6CAGE"}
1
+ {"version":3,"file":"paragraphNodeImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/paragraphNodeImporter.js"],"names":[],"mappings":"AA0SA;;;GAGG;AACH,0DAHW,MAAM,QACN,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;EAuGpB;AAED;;;;;;GAMG;AACH,kDAHW,OAAO,EAAE,SA4CnB;AA9bD;;;;;;;GAOG;AACH,sCAqIE;AAEK;;;;;;EAwCN;AAEM;;;;;EAkDN;AAgDD;;GAEG;AACH,6CAGE"}
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-BbSSdo_p.js";
2
- import { D } from "./chunks/docx-zipper-8FbwdMJc.js";
1
+ import "./chunks/converter-Bwa99qcs.js";
2
+ import { D } from "./chunks/docx-zipper-CVKlI3mU.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-CnYTUN7K.js";
2
- import "./chunks/converter-BbSSdo_p.js";
3
- import "./chunks/docx-zipper-8FbwdMJc.js";
1
+ import { E } from "./chunks/editor-BdaZqkkS.js";
2
+ import "./chunks/converter-Bwa99qcs.js";
3
+ import "./chunks/docx-zipper-CVKlI3mU.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"FieldAnnotationView.d.ts","sourceRoot":"","sources":["../../../src/extensions/field-annotation/FieldAnnotationView.js"],"names":[],"mappings":"AAGA;IAmBE,0BAiBC;IAnCD,YAAO;IAEP,UAAK;IAEL,iBAAY;IAEZ,YAAO;IAEP,oBAAe;IAEf,SAAI;IAEJ,qBAAgB;IAEhB,4BAAuB;IAEvB,iBAAY;IA+NZ,wCAYC;IAED,8CAYC;IA/CD;;;aAmBC;IAxMD,kBAgBC;IAED,sBAQC;IAED,uBAwBC;IAED,2BA2BC;IAED,0BAQC;IAED,sBAeC;IAED,sBAqBC;IAsCD,6BAIC;IAED,6BAIC;IAmDD,+BAOC;IAID,kCAEC;IAED,uCAKC;IAED,gBAEC;IAED,wCAQC;;CACF"}
1
+ {"version":3,"file":"FieldAnnotationView.d.ts","sourceRoot":"","sources":["../../../src/extensions/field-annotation/FieldAnnotationView.js"],"names":[],"mappings":"AAGA;IAmBE,0BAiBC;IAnCD,YAAO;IAEP,UAAK;IAEL,iBAAY;IAEZ,YAAO;IAEP,oBAAe;IAEf,SAAI;IAEJ,qBAAgB;IAEhB,4BAAuB;IAEvB,iBAAY;IAqOZ,wCAYC;IAED,8CAYC;IA/CD;;;aAmBC;IA9MD,kBAgBC;IAED,sBAQC;IAED,uBAwBC;IAED,2BA2BC;IAED,0BAQC;IAED,sBAeC;IAED,sBAqBC;IA4CD,6BAIC;IAED,6BAIC;IAmDD,+BAOC;IAID,kCAEC;IAED,uCAKC;IAED,gBAEC;IAED,wCAQC;;CACF"}