@harbour-enterprises/superdoc 0.18.1-next.2 → 0.18.1

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 (29) hide show
  1. package/dist/chunks/{PdfViewer-BM7Ea3yr.es.js → PdfViewer--LBuUP6i.es.js} +1 -1
  2. package/dist/chunks/{PdfViewer-DPqO7muc.cjs → PdfViewer-NycJE6Xr.cjs} +1 -1
  3. package/dist/chunks/{index-CyUWXfUG.es.js → index-CU1k6vCG.es.js} +14 -28
  4. package/dist/chunks/{index-CPLP-MPz.cjs → index-CsCBmpuN.cjs} +14 -28
  5. package/dist/chunks/{super-editor.es-CzgdqA6a.es.js → super-editor.es-B43ZWlo1.es.js} +9047 -9035
  6. package/dist/chunks/{super-editor.es-BSOX4l_Z.cjs → super-editor.es-DnT7Aa3y.cjs} +9047 -9035
  7. package/dist/core/SuperDoc.d.ts.map +1 -1
  8. package/dist/style.css +1 -1
  9. package/dist/super-editor/ai-writer.es.js +2 -2
  10. package/dist/super-editor/chunks/{converter-X9LxTGJB.js → converter-DgKkYthj.js} +35 -35
  11. package/dist/super-editor/chunks/{docx-zipper-CAu7OzVm.js → docx-zipper-Dj5WKyQ5.js} +1 -1
  12. package/dist/super-editor/chunks/{editor-BZitQIK-.js → editor-BFw7HBYv.js} +9042 -9020
  13. package/dist/super-editor/chunks/{toolbar-D1SFDkxX.js → toolbar-Ceb9Jlh2.js} +13 -23
  14. package/dist/super-editor/converter.es.js +1 -1
  15. package/dist/super-editor/docx-zipper.es.js +2 -2
  16. package/dist/super-editor/editor.es.js +3 -3
  17. package/dist/super-editor/file-zipper.es.js +1 -1
  18. package/dist/super-editor/src/components/toolbar/defaultItems.d.ts +3 -0
  19. package/dist/super-editor/style.css +1 -1
  20. package/dist/super-editor/super-editor.es.js +44 -44
  21. package/dist/super-editor/toolbar.es.js +2 -2
  22. package/dist/super-editor.cjs +1 -1
  23. package/dist/super-editor.es.js +1 -1
  24. package/dist/superdoc.cjs +2 -2
  25. package/dist/superdoc.es.js +2 -2
  26. package/dist/superdoc.umd.js +9055 -9057
  27. package/dist/superdoc.umd.js.map +1 -1
  28. package/package.json +4 -4
  29. package/dist/super-editor/src/tests/import/testUtils.d.ts +0 -1
@@ -1,6 +1,6 @@
1
1
  import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
2
- import { p as process$1 } from "./converter-X9LxTGJB.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-BZitQIK-.js";
2
+ import { I as process$1 } from "./converter-DgKkYthj.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-BFw7HBYv.js";
4
4
  const sanitizeNumber = (value, defaultNumber) => {
5
5
  let sanitized = value.replace(/[^0-9.]/g, "");
6
6
  sanitized = parseFloat(sanitized);
@@ -2483,7 +2483,7 @@ function resolveTo(selector) {
2483
2483
  if (typeof selector === "string") {
2484
2484
  return document.querySelector(selector);
2485
2485
  }
2486
- return selector() || null;
2486
+ return selector();
2487
2487
  }
2488
2488
  const LazyTeleport = defineComponent({
2489
2489
  name: "LazyTeleport",
@@ -2571,11 +2571,8 @@ const oppositeAlignCssPositionProps = {
2571
2571
  };
2572
2572
  const keepOffsetDirection = {
2573
2573
  top: true,
2574
- // top++
2575
2574
  bottom: false,
2576
- // top--
2577
2575
  left: true,
2578
- // left++
2579
2576
  right: false
2580
2577
  // left--
2581
2578
  };
@@ -3692,6 +3689,7 @@ function isFocusable(element) {
3692
3689
  return !!element.href && element.rel !== "ignore";
3693
3690
  case "INPUT":
3694
3691
  return element.type !== "hidden" && element.type !== "file";
3692
+ case "BUTTON":
3695
3693
  case "SELECT":
3696
3694
  case "TEXTAREA":
3697
3695
  return true;
@@ -3710,8 +3708,8 @@ const FocusTrap = defineComponent({
3710
3708
  default: true
3711
3709
  },
3712
3710
  onEsc: Function,
3713
- initialFocusTo: [String, Function],
3714
- finalFocusTo: [String, Function],
3711
+ initialFocusTo: String,
3712
+ finalFocusTo: String,
3715
3713
  returnFocusOnDeactivated: {
3716
3714
  type: Boolean,
3717
3715
  default: true
@@ -5809,7 +5807,6 @@ function self$6(vars) {
5809
5807
  });
5810
5808
  }
5811
5809
  const scrollbarLight = {
5812
- name: "Scrollbar",
5813
5810
  common: derived,
5814
5811
  self: self$6
5815
5812
  };
@@ -7325,14 +7322,11 @@ function self$5(vars) {
7325
7322
  boxShadow: boxShadow2
7326
7323
  });
7327
7324
  }
7328
- const popoverLight = createTheme({
7325
+ const popoverLight = {
7329
7326
  name: "Popover",
7330
7327
  common: derived,
7331
- peers: {
7332
- Scrollbar: scrollbarLight
7333
- },
7334
7328
  self: self$5
7335
- });
7329
+ };
7336
7330
  const oppositePlacement = {
7337
7331
  top: "bottom",
7338
7332
  bottom: "top",
@@ -7552,11 +7546,9 @@ const NPopoverBody = defineComponent({
7552
7546
  const {
7553
7547
  namespaceRef,
7554
7548
  mergedClsPrefixRef,
7555
- inlineThemeDisabled,
7556
- mergedRtlRef
7549
+ inlineThemeDisabled
7557
7550
  } = useConfig(props);
7558
7551
  const themeRef = useTheme("Popover", "-popover", style$3, popoverLight, props, mergedClsPrefixRef);
7559
- const rtlEnabledRef = useRtl("Popover", mergedRtlRef, mergedClsPrefixRef);
7560
7552
  const followerRef = ref(null);
7561
7553
  const NPopover2 = inject("NPopover");
7562
7554
  const bodyRef = ref(null);
@@ -7754,8 +7746,6 @@ const NPopoverBody = defineComponent({
7754
7746
  style: props.contentStyle
7755
7747
  }, slots);
7756
7748
  const maybeScrollableBody = props.scrollable ? h(XScrollbar, {
7757
- themeOverrides: themeRef.value.peerOverrides.Scrollbar,
7758
- theme: themeRef.value.peers.Scrollbar,
7759
7749
  contentClass: hasHeaderOrFooter ? void 0 : `${mergedClsPrefix}-popover__content ${(_b = props.contentClass) !== null && _b !== void 0 ? _b : ""}`,
7760
7750
  contentStyle: hasHeaderOrFooter ? void 0 : props.contentStyle
7761
7751
  }, {
@@ -7771,7 +7761,7 @@ const NPopoverBody = defineComponent({
7771
7761
  return [maybeScrollableBody, arrow];
7772
7762
  };
7773
7763
  contentNode = h("div", mergeProps({
7774
- class: [`${mergedClsPrefix}-popover`, `${mergedClsPrefix}-popover-shared`, (rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value) && `${mergedClsPrefix}-popover--rtl`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, extraClass.map((v) => `${mergedClsPrefix}-${v}`), {
7764
+ class: [`${mergedClsPrefix}-popover`, `${mergedClsPrefix}-popover-shared`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, extraClass.map((v) => `${mergedClsPrefix}-${v}`), {
7775
7765
  [`${mergedClsPrefix}-popover--scrollable`]: props.scrollable,
7776
7766
  [`${mergedClsPrefix}-popover--show-header-or-footer`]: hasHeaderOrFooter,
7777
7767
  [`${mergedClsPrefix}-popover--raw`]: props.raw,
@@ -7795,7 +7785,7 @@ const NPopoverBody = defineComponent({
7795
7785
  // The popover class and overlap class must exists, they will be used
7796
7786
  // to place the body & transition animation.
7797
7787
  // Shadow class exists for reuse box-shadow.
7798
- [`${mergedClsPrefix}-popover-shared`, (rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value) && `${mergedClsPrefix}-popover--rtl`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, props.overlap && `${mergedClsPrefix}-popover-shared--overlap`, props.showArrow && `${mergedClsPrefix}-popover-shared--show-arrow`, props.arrowPointToCenter && `${mergedClsPrefix}-popover-shared--center-arrow`],
7788
+ [`${mergedClsPrefix}-popover-shared`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, props.overlap && `${mergedClsPrefix}-popover-shared--overlap`, props.showArrow && `${mergedClsPrefix}-popover-shared--show-arrow`, props.arrowPointToCenter && `${mergedClsPrefix}-popover-shared--center-arrow`],
7799
7789
  bodyRef,
7800
7790
  styleRef.value,
7801
7791
  handleMouseEnter,
@@ -9821,7 +9811,7 @@ const _sfc_main$1 = {
9821
9811
  default: false
9822
9812
  }
9823
9813
  },
9824
- emits: ["command", "item-clicked"],
9814
+ emits: ["command"],
9825
9815
  setup(__props, { emit: __emit }) {
9826
9816
  const emit = __emit;
9827
9817
  const toolbarItemRefs = ref([]);
@@ -10074,7 +10064,7 @@ const _sfc_main$1 = {
10074
10064
  };
10075
10065
  }
10076
10066
  };
10077
- const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-f42ec7e6"]]);
10067
+ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-8d34c397"]]);
10078
10068
  const _sfc_main = {
10079
10069
  __name: "Toolbar",
10080
10070
  emits: ["command", "toggle", "select"],
@@ -1,4 +1,4 @@
1
- import { a5 } from "./chunks/converter-X9LxTGJB.js";
1
+ import { a5 } from "./chunks/converter-DgKkYthj.js";
2
2
  import "vue";
3
3
  export {
4
4
  a5 as SuperConverter
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-X9LxTGJB.js";
2
- import { D } from "./chunks/docx-zipper-CAu7OzVm.js";
1
+ import "./chunks/converter-DgKkYthj.js";
2
+ import { D } from "./chunks/docx-zipper-Dj5WKyQ5.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-BZitQIK-.js";
2
- import "./chunks/converter-X9LxTGJB.js";
3
- import "./chunks/docx-zipper-CAu7OzVm.js";
1
+ import { E } from "./chunks/editor-BFw7HBYv.js";
2
+ import "./chunks/converter-DgKkYthj.js";
3
+ import "./chunks/docx-zipper-Dj5WKyQ5.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-CAu7OzVm.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-Dj5WKyQ5.js";
2
2
  async function createZip(blobs, fileNames) {
3
3
  const zip = new JSZip();
4
4
  blobs.forEach((blob, index) => {
@@ -4,3 +4,6 @@ export function makeDefaultItems({ superToolbar, toolbarIcons, toolbarTexts, too
4
4
  defaultItems: any[];
5
5
  overflowItems: any[];
6
6
  };
7
+ export function setHistoryButtonStateOnUpdate(toolbarItemsRef: any): ({ editor }: {
8
+ editor: any;
9
+ }) => void;
@@ -279,7 +279,7 @@
279
279
  border-radius: 8px !important;
280
280
  }
281
281
 
282
- .button-group[data-v-f42ec7e6] {
282
+ .button-group[data-v-8d34c397] {
283
283
  display: flex;
284
284
  }
285
285
 
@@ -9,14 +9,14 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
9
9
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
10
10
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
11
11
  var _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, runCommandWithArgumentOnly_fn;
12
- import { ax as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aA as vClickOutside, H as findParentNode, aB as getActiveFormatting, ar as isInTable, aC as readFromClipboard, aD as handleClipboardPaste, aE as getFileObject, aF as translator, aG as translator$1, aH as translator$2, a as Plugin } from "./chunks/converter-X9LxTGJB.js";
13
- import { aI, a5, i, a2 } from "./chunks/converter-X9LxTGJB.js";
14
- import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, s as startImageUpload, y as yUndoPluginKey, d as undoDepth, r as redoDepth, S as SlashMenuPluginKey, E as Editor, e as getStarterExtensions, P as Placeholder, f as getRichTextExtensions, M as Mark, h as Extension, A as Attribute, N as Node } from "./chunks/editor-BZitQIK-.js";
15
- import { k, C, l, T, i as i2, m, j } from "./chunks/editor-BZitQIK-.js";
12
+ import { ax as getDefaultExportFromCjs, V as v4, T as TextSelection$1, q as getMarkRange, aA as vClickOutside, z as findParentNode, aB as getActiveFormatting, ar as isInTable, aC as readFromClipboard, aD as handleClipboardPaste, aE as getFileObject, aF as translator, aG as translator$1, aH as translator$2, a as Plugin } from "./chunks/converter-DgKkYthj.js";
13
+ import { aI, a5, d, a2 } from "./chunks/converter-DgKkYthj.js";
14
+ import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, s as startImageUpload, y as yUndoPluginKey, d as undoDepth, r as redoDepth, S as SlashMenuPluginKey, E as Editor, e as getStarterExtensions, P as Placeholder, f as getRichTextExtensions, M as Mark, h as Extension, A as Attribute, N as Node } from "./chunks/editor-BFw7HBYv.js";
15
+ import { k, C, l, T, i, m, j } from "./chunks/editor-BFw7HBYv.js";
16
16
  import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
17
- import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-D1SFDkxX.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-Ceb9Jlh2.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-CAu7OzVm.js";
19
+ import { D } from "./chunks/docx-zipper-Dj5WKyQ5.js";
20
20
  import { createZip } from "./file-zipper.es.js";
21
21
  var eventemitter3 = { exports: {} };
22
22
  var hasRequiredEventemitter3;
@@ -69,8 +69,8 @@ function requireEventemitter3() {
69
69
  var evt = prefix ? prefix + event : event, handlers = this._events[evt];
70
70
  if (!handlers) return [];
71
71
  if (handlers.fn) return [handlers.fn];
72
- for (var i3 = 0, l2 = handlers.length, ee = new Array(l2); i3 < l2; i3++) {
73
- ee[i3] = handlers[i3].fn;
72
+ for (var i2 = 0, l2 = handlers.length, ee = new Array(l2); i2 < l2; i2++) {
73
+ ee[i2] = handlers[i2].fn;
74
74
  }
75
75
  return ee;
76
76
  };
@@ -83,7 +83,7 @@ function requireEventemitter3() {
83
83
  EventEmitter2.prototype.emit = function emit(event, a1, a22, a3, a4, a52) {
84
84
  var evt = prefix ? prefix + event : event;
85
85
  if (!this._events[evt]) return false;
86
- var listeners = this._events[evt], len = arguments.length, args, i3;
86
+ var listeners = this._events[evt], len = arguments.length, args, i2;
87
87
  if (listeners.fn) {
88
88
  if (listeners.once) this.removeListener(event, listeners.fn, void 0, true);
89
89
  switch (len) {
@@ -100,32 +100,32 @@ function requireEventemitter3() {
100
100
  case 6:
101
101
  return listeners.fn.call(listeners.context, a1, a22, a3, a4, a52), true;
102
102
  }
103
- for (i3 = 1, args = new Array(len - 1); i3 < len; i3++) {
104
- args[i3 - 1] = arguments[i3];
103
+ for (i2 = 1, args = new Array(len - 1); i2 < len; i2++) {
104
+ args[i2 - 1] = arguments[i2];
105
105
  }
106
106
  listeners.fn.apply(listeners.context, args);
107
107
  } else {
108
108
  var length = listeners.length, j2;
109
- for (i3 = 0; i3 < length; i3++) {
110
- if (listeners[i3].once) this.removeListener(event, listeners[i3].fn, void 0, true);
109
+ for (i2 = 0; i2 < length; i2++) {
110
+ if (listeners[i2].once) this.removeListener(event, listeners[i2].fn, void 0, true);
111
111
  switch (len) {
112
112
  case 1:
113
- listeners[i3].fn.call(listeners[i3].context);
113
+ listeners[i2].fn.call(listeners[i2].context);
114
114
  break;
115
115
  case 2:
116
- listeners[i3].fn.call(listeners[i3].context, a1);
116
+ listeners[i2].fn.call(listeners[i2].context, a1);
117
117
  break;
118
118
  case 3:
119
- listeners[i3].fn.call(listeners[i3].context, a1, a22);
119
+ listeners[i2].fn.call(listeners[i2].context, a1, a22);
120
120
  break;
121
121
  case 4:
122
- listeners[i3].fn.call(listeners[i3].context, a1, a22, a3);
122
+ listeners[i2].fn.call(listeners[i2].context, a1, a22, a3);
123
123
  break;
124
124
  default:
125
125
  if (!args) for (j2 = 1, args = new Array(len - 1); j2 < len; j2++) {
126
126
  args[j2 - 1] = arguments[j2];
127
127
  }
128
- listeners[i3].fn.apply(listeners[i3].context, args);
128
+ listeners[i2].fn.apply(listeners[i2].context, args);
129
129
  }
130
130
  }
131
131
  }
@@ -150,9 +150,9 @@ function requireEventemitter3() {
150
150
  clearEvent(this, evt);
151
151
  }
152
152
  } else {
153
- for (var i3 = 0, events = [], length = listeners.length; i3 < length; i3++) {
154
- if (listeners[i3].fn !== fn || once && !listeners[i3].once || context && listeners[i3].context !== context) {
155
- events.push(listeners[i3]);
153
+ for (var i2 = 0, events = [], length = listeners.length; i2 < length; i2++) {
154
+ if (listeners[i2].fn !== fn || once && !listeners[i2].once || context && listeners[i2].context !== context) {
155
+ events.push(listeners[i2]);
156
156
  }
157
157
  }
158
158
  if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;
@@ -1145,8 +1145,8 @@ const _sfc_main$7 = {
1145
1145
  const selectGridItems = (allItems, cols, rows) => {
1146
1146
  selectedCols.value = cols;
1147
1147
  selectedRows.value = rows;
1148
- for (let i3 = 0; i3 < allItems.length; i3++) {
1149
- let item = allItems[i3];
1148
+ for (let i2 = 0; i2 < allItems.length; i2++) {
1149
+ let item = allItems[i2];
1150
1150
  let itemsCols = parseInt(item.dataset.cols, 10);
1151
1151
  let itemsRows = parseInt(item.dataset.rows, 10);
1152
1152
  if (itemsCols <= cols && itemsRows <= rows) {
@@ -1223,20 +1223,20 @@ const _sfc_main$7 = {
1223
1223
  onMouseover: onTableGridMouseOver,
1224
1224
  "data-grid": "true"
1225
1225
  }, [
1226
- (openBlock(), createElementBlock(Fragment, null, renderList(5, (i3) => {
1227
- return openBlock(), createElementBlock(Fragment, { key: i3 }, [
1226
+ (openBlock(), createElementBlock(Fragment, null, renderList(5, (i2) => {
1227
+ return openBlock(), createElementBlock(Fragment, { key: i2 }, [
1228
1228
  (openBlock(), createElementBlock(Fragment, null, renderList(5, (n) => {
1229
1229
  return createElementVNode("div", {
1230
1230
  class: "toolbar-table-grid__item",
1231
- key: `${i3}_${n}`,
1231
+ key: `${i2}_${n}`,
1232
1232
  "data-cols": n,
1233
- "data-rows": i3,
1233
+ "data-rows": i2,
1234
1234
  "data-item": "true",
1235
1235
  ref_for: true,
1236
1236
  ref_key: "tableGridItems",
1237
1237
  ref: tableGridItems,
1238
- onKeydown: withModifiers((event) => handleKeyDown(event, n, i3), ["prevent"]),
1239
- onClick: withModifiers(($event) => handleClick({ cols: n, rows: i3 }), ["stop", "prevent"])
1238
+ onKeydown: withModifiers((event) => handleKeyDown(event, n, i2), ["prevent"]),
1239
+ onClick: withModifiers(($event) => handleClick({ cols: n, rows: i2 }), ["stop", "prevent"])
1240
1240
  }, null, 40, _hoisted_1$6);
1241
1241
  }), 64))
1242
1242
  ], 64);
@@ -1457,7 +1457,7 @@ const makeDefaultItems = ({
1457
1457
  onActivate: ({ fontFamily }) => {
1458
1458
  if (!fontFamily) return;
1459
1459
  fontButton.label.value = fontFamily;
1460
- const foundFont = fontOptions.find((i3) => i3.label === fontFamily);
1460
+ const foundFont = fontOptions.find((i2) => i2.label === fontFamily);
1461
1461
  if (foundFont) {
1462
1462
  fontButton.selectedValue.value = foundFont.key;
1463
1463
  } else {
@@ -1543,8 +1543,8 @@ const makeDefaultItems = ({
1543
1543
  if (sanitizedValue < 8) sanitizedValue = 8;
1544
1544
  if (sanitizedValue > 96) sanitizedValue = 96;
1545
1545
  let sanitizedValueStr = String(sanitizedValue);
1546
- const foundSize = fontSizeOptions.find((i3) => {
1547
- return i3.label === sanitizedValueStr || i3.key === sanitizedValueStr;
1546
+ const foundSize = fontSizeOptions.find((i2) => {
1547
+ return i2.label === sanitizedValueStr || i2.key === sanitizedValueStr;
1548
1548
  });
1549
1549
  if (foundSize) {
1550
1550
  fontSize.selectedValue.value = foundSize.key;
@@ -3427,19 +3427,19 @@ function selectionHasNodeOrMark(state, name, options = {}) {
3427
3427
  const $from = state.selection.$from;
3428
3428
  const $to = state.selection.$to;
3429
3429
  if (requireEnds) {
3430
- for (let d = $from.depth; d > 0; d--) {
3431
- if ($from.node(d).type.name === name) {
3430
+ for (let d2 = $from.depth; d2 > 0; d2--) {
3431
+ if ($from.node(d2).type.name === name) {
3432
3432
  return true;
3433
3433
  }
3434
3434
  }
3435
- for (let d = $to.depth; d > 0; d--) {
3436
- if ($to.node(d).type.name === name) {
3435
+ for (let d2 = $to.depth; d2 > 0; d2--) {
3436
+ if ($to.node(d2).type.name === name) {
3437
3437
  return true;
3438
3438
  }
3439
3439
  }
3440
3440
  } else {
3441
- for (let d = $from.depth; d > 0; d--) {
3442
- if ($from.node(d).type.name === name) {
3441
+ for (let d2 = $from.depth; d2 > 0; d2--) {
3442
+ if ($from.node(d2).type.name === name) {
3443
3443
  return true;
3444
3444
  }
3445
3445
  }
@@ -3975,11 +3975,11 @@ const _sfc_main$3 = {
3975
3975
  pageMargins.value = docMargins;
3976
3976
  rightHandle.x = docSize.width * 96 - docMargins.right * 96;
3977
3977
  leftHandle.x = docMargins.left * 96;
3978
- for (let i3 = 0; i3 < docSize.width; i3++) {
3978
+ for (let i2 = 0; i2 < docSize.width; i2++) {
3979
3979
  const marginNum = 0.0625 * 96 - 0.5;
3980
3980
  const margin = `${marginNum}px`;
3981
- const diff = docSize.width - i3;
3982
- rulerItems.push(...generateSection(1, "main", "20%", margin, i3));
3981
+ const diff = docSize.width - i2;
3982
+ rulerItems.push(...generateSection(1, "main", "20%", margin, i2));
3983
3983
  rulerItems.push(...generateSection(3, "eighth", "10%", margin));
3984
3984
  rulerItems.push(...generateSection(1, "half", "40%", margin));
3985
3985
  if (diff <= 0.5) break;
@@ -3988,7 +3988,7 @@ const _sfc_main$3 = {
3988
3988
  return rulerItems;
3989
3989
  };
3990
3990
  const generateSection = (qty, size, height, margin, index) => {
3991
- return Array.from({ length: qty }, (_, i3) => {
3991
+ return Array.from({ length: qty }, (_, i2) => {
3992
3992
  const item = {
3993
3993
  className: `${size}-unit ruler-section`,
3994
3994
  height,
@@ -4626,10 +4626,10 @@ export {
4626
4626
  Toolbar,
4627
4627
  T as TrackChangesBasePluginKey,
4628
4628
  createZip,
4629
- i2 as fieldAnnotationHelpers,
4629
+ i as fieldAnnotationHelpers,
4630
4630
  getActiveFormatting,
4631
4631
  m as getAllowedImageDimensions,
4632
- i as getMarksFromSelection,
4632
+ d as getMarksFromSelection,
4633
4633
  getRichTextExtensions,
4634
4634
  getStarterExtensions,
4635
4635
  a2 as helpers,
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-D1SFDkxX.js";
3
- import "./chunks/editor-BZitQIK-.js";
2
+ import { T } from "./chunks/toolbar-Ceb9Jlh2.js";
3
+ import "./chunks/editor-BFw7HBYv.js";
4
4
  export {
5
5
  T as default
6
6
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-BSOX4l_Z.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-DnT7Aa3y.cjs");
4
4
  require("./chunks/vue-DWle4Cai.cjs");
5
5
  exports.AIWriter = superEditor_es.AIWriter;
6
6
  exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
@@ -1,4 +1,4 @@
1
- import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-CzgdqA6a.es.js";
1
+ import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-B43ZWlo1.es.js";
2
2
  import "./chunks/vue-CXxsqYcP.es.js";
3
3
  export {
4
4
  A as AIWriter,
package/dist/superdoc.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-BSOX4l_Z.cjs");
4
- const superdoc = require("./chunks/index-CPLP-MPz.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-DnT7Aa3y.cjs");
4
+ const superdoc = require("./chunks/index-CsCBmpuN.cjs");
5
5
  require("./chunks/vue-DWle4Cai.cjs");
6
6
  require("./chunks/jszip-b7l8QkfH.cjs");
7
7
  const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
@@ -1,5 +1,5 @@
1
- import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-CzgdqA6a.es.js";
2
- import { D, H, P, S as S2, m, l } from "./chunks/index-CyUWXfUG.es.js";
1
+ import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-B43ZWlo1.es.js";
2
+ import { D, H, P, S as S2, m, l } from "./chunks/index-CU1k6vCG.es.js";
3
3
  import "./chunks/vue-CXxsqYcP.es.js";
4
4
  import "./chunks/jszip-B8KIZSNe.es.js";
5
5
  import { B } from "./chunks/blank-docx-iwdyG9RH.es.js";