@harbour-enterprises/superdoc 0.18.1-next.1 → 0.18.1-next.2
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.
- package/dist/chunks/{PdfViewer-D-101zOe.es.js → PdfViewer-BM7Ea3yr.es.js} +1 -1
- package/dist/chunks/{PdfViewer-C6YOU13j.cjs → PdfViewer-DPqO7muc.cjs} +1 -1
- package/dist/chunks/{index-CQRSKXRT.cjs → index-CPLP-MPz.cjs} +27 -13
- package/dist/chunks/{index-DrbaF9yQ.es.js → index-CyUWXfUG.es.js} +27 -13
- package/dist/chunks/{super-editor.es-DglJs8Qv.cjs → super-editor.es-BSOX4l_Z.cjs} +8986 -9002
- package/dist/chunks/{super-editor.es-C_XaJkxe.es.js → super-editor.es-CzgdqA6a.es.js} +8986 -9002
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-DEwUdN2M.js → converter-X9LxTGJB.js} +33 -33
- package/dist/super-editor/chunks/{docx-zipper-C7EwE5md.js → docx-zipper-CAu7OzVm.js} +1 -1
- package/dist/super-editor/chunks/{editor-TUGjgpIf.js → editor-BZitQIK-.js} +8965 -8991
- package/dist/super-editor/chunks/{toolbar-2VnmJqnu.js → toolbar-D1SFDkxX.js} +23 -13
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/src/components/toolbar/defaultItems.d.ts +0 -3
- package/dist/super-editor/style.css +1 -1
- package/dist/super-editor/super-editor.es.js +44 -44
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +9072 -9074
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +4 -4
|
@@ -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 {
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
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";
|
|
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();
|
|
2486
|
+
return selector() || null;
|
|
2487
2487
|
}
|
|
2488
2488
|
const LazyTeleport = defineComponent({
|
|
2489
2489
|
name: "LazyTeleport",
|
|
@@ -2571,8 +2571,11 @@ const oppositeAlignCssPositionProps = {
|
|
|
2571
2571
|
};
|
|
2572
2572
|
const keepOffsetDirection = {
|
|
2573
2573
|
top: true,
|
|
2574
|
+
// top++
|
|
2574
2575
|
bottom: false,
|
|
2576
|
+
// top--
|
|
2575
2577
|
left: true,
|
|
2578
|
+
// left++
|
|
2576
2579
|
right: false
|
|
2577
2580
|
// left--
|
|
2578
2581
|
};
|
|
@@ -3689,7 +3692,6 @@ function isFocusable(element) {
|
|
|
3689
3692
|
return !!element.href && element.rel !== "ignore";
|
|
3690
3693
|
case "INPUT":
|
|
3691
3694
|
return element.type !== "hidden" && element.type !== "file";
|
|
3692
|
-
case "BUTTON":
|
|
3693
3695
|
case "SELECT":
|
|
3694
3696
|
case "TEXTAREA":
|
|
3695
3697
|
return true;
|
|
@@ -3708,8 +3710,8 @@ const FocusTrap = defineComponent({
|
|
|
3708
3710
|
default: true
|
|
3709
3711
|
},
|
|
3710
3712
|
onEsc: Function,
|
|
3711
|
-
initialFocusTo: String,
|
|
3712
|
-
finalFocusTo: String,
|
|
3713
|
+
initialFocusTo: [String, Function],
|
|
3714
|
+
finalFocusTo: [String, Function],
|
|
3713
3715
|
returnFocusOnDeactivated: {
|
|
3714
3716
|
type: Boolean,
|
|
3715
3717
|
default: true
|
|
@@ -5807,6 +5809,7 @@ function self$6(vars) {
|
|
|
5807
5809
|
});
|
|
5808
5810
|
}
|
|
5809
5811
|
const scrollbarLight = {
|
|
5812
|
+
name: "Scrollbar",
|
|
5810
5813
|
common: derived,
|
|
5811
5814
|
self: self$6
|
|
5812
5815
|
};
|
|
@@ -7322,11 +7325,14 @@ function self$5(vars) {
|
|
|
7322
7325
|
boxShadow: boxShadow2
|
|
7323
7326
|
});
|
|
7324
7327
|
}
|
|
7325
|
-
const popoverLight = {
|
|
7328
|
+
const popoverLight = createTheme({
|
|
7326
7329
|
name: "Popover",
|
|
7327
7330
|
common: derived,
|
|
7331
|
+
peers: {
|
|
7332
|
+
Scrollbar: scrollbarLight
|
|
7333
|
+
},
|
|
7328
7334
|
self: self$5
|
|
7329
|
-
};
|
|
7335
|
+
});
|
|
7330
7336
|
const oppositePlacement = {
|
|
7331
7337
|
top: "bottom",
|
|
7332
7338
|
bottom: "top",
|
|
@@ -7546,9 +7552,11 @@ const NPopoverBody = defineComponent({
|
|
|
7546
7552
|
const {
|
|
7547
7553
|
namespaceRef,
|
|
7548
7554
|
mergedClsPrefixRef,
|
|
7549
|
-
inlineThemeDisabled
|
|
7555
|
+
inlineThemeDisabled,
|
|
7556
|
+
mergedRtlRef
|
|
7550
7557
|
} = useConfig(props);
|
|
7551
7558
|
const themeRef = useTheme("Popover", "-popover", style$3, popoverLight, props, mergedClsPrefixRef);
|
|
7559
|
+
const rtlEnabledRef = useRtl("Popover", mergedRtlRef, mergedClsPrefixRef);
|
|
7552
7560
|
const followerRef = ref(null);
|
|
7553
7561
|
const NPopover2 = inject("NPopover");
|
|
7554
7562
|
const bodyRef = ref(null);
|
|
@@ -7746,6 +7754,8 @@ const NPopoverBody = defineComponent({
|
|
|
7746
7754
|
style: props.contentStyle
|
|
7747
7755
|
}, slots);
|
|
7748
7756
|
const maybeScrollableBody = props.scrollable ? h(XScrollbar, {
|
|
7757
|
+
themeOverrides: themeRef.value.peerOverrides.Scrollbar,
|
|
7758
|
+
theme: themeRef.value.peers.Scrollbar,
|
|
7749
7759
|
contentClass: hasHeaderOrFooter ? void 0 : `${mergedClsPrefix}-popover__content ${(_b = props.contentClass) !== null && _b !== void 0 ? _b : ""}`,
|
|
7750
7760
|
contentStyle: hasHeaderOrFooter ? void 0 : props.contentStyle
|
|
7751
7761
|
}, {
|
|
@@ -7761,7 +7771,7 @@ const NPopoverBody = defineComponent({
|
|
|
7761
7771
|
return [maybeScrollableBody, arrow];
|
|
7762
7772
|
};
|
|
7763
7773
|
contentNode = h("div", mergeProps({
|
|
7764
|
-
class: [`${mergedClsPrefix}-popover`, `${mergedClsPrefix}-popover-shared`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, extraClass.map((v) => `${mergedClsPrefix}-${v}`), {
|
|
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}`), {
|
|
7765
7775
|
[`${mergedClsPrefix}-popover--scrollable`]: props.scrollable,
|
|
7766
7776
|
[`${mergedClsPrefix}-popover--show-header-or-footer`]: hasHeaderOrFooter,
|
|
7767
7777
|
[`${mergedClsPrefix}-popover--raw`]: props.raw,
|
|
@@ -7785,7 +7795,7 @@ const NPopoverBody = defineComponent({
|
|
|
7785
7795
|
// The popover class and overlap class must exists, they will be used
|
|
7786
7796
|
// to place the body & transition animation.
|
|
7787
7797
|
// Shadow class exists for reuse box-shadow.
|
|
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`],
|
|
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`],
|
|
7789
7799
|
bodyRef,
|
|
7790
7800
|
styleRef.value,
|
|
7791
7801
|
handleMouseEnter,
|
|
@@ -9811,7 +9821,7 @@ const _sfc_main$1 = {
|
|
|
9811
9821
|
default: false
|
|
9812
9822
|
}
|
|
9813
9823
|
},
|
|
9814
|
-
emits: ["command"],
|
|
9824
|
+
emits: ["command", "item-clicked"],
|
|
9815
9825
|
setup(__props, { emit: __emit }) {
|
|
9816
9826
|
const emit = __emit;
|
|
9817
9827
|
const toolbarItemRefs = ref([]);
|
|
@@ -10064,7 +10074,7 @@ const _sfc_main$1 = {
|
|
|
10064
10074
|
};
|
|
10065
10075
|
}
|
|
10066
10076
|
};
|
|
10067
|
-
const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
10077
|
+
const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-f42ec7e6"]]);
|
|
10068
10078
|
const _sfc_main = {
|
|
10069
10079
|
__name: "Toolbar",
|
|
10070
10080
|
emits: ["command", "toggle", "select"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
1
|
+
import { E } from "./chunks/editor-BZitQIK-.js";
|
|
2
|
+
import "./chunks/converter-X9LxTGJB.js";
|
|
3
|
+
import "./chunks/docx-zipper-CAu7OzVm.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -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,
|
|
13
|
-
import { aI, a5,
|
|
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-
|
|
15
|
-
import { k, C, l, T, i, m, j } from "./chunks/editor-
|
|
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";
|
|
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-
|
|
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";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-CAu7OzVm.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
|
|
73
|
-
ee[
|
|
72
|
+
for (var i3 = 0, l2 = handlers.length, ee = new Array(l2); i3 < l2; i3++) {
|
|
73
|
+
ee[i3] = handlers[i3].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,
|
|
86
|
+
var listeners = this._events[evt], len = arguments.length, args, i3;
|
|
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 (
|
|
104
|
-
args[
|
|
103
|
+
for (i3 = 1, args = new Array(len - 1); i3 < len; i3++) {
|
|
104
|
+
args[i3 - 1] = arguments[i3];
|
|
105
105
|
}
|
|
106
106
|
listeners.fn.apply(listeners.context, args);
|
|
107
107
|
} else {
|
|
108
108
|
var length = listeners.length, j2;
|
|
109
|
-
for (
|
|
110
|
-
if (listeners[
|
|
109
|
+
for (i3 = 0; i3 < length; i3++) {
|
|
110
|
+
if (listeners[i3].once) this.removeListener(event, listeners[i3].fn, void 0, true);
|
|
111
111
|
switch (len) {
|
|
112
112
|
case 1:
|
|
113
|
-
listeners[
|
|
113
|
+
listeners[i3].fn.call(listeners[i3].context);
|
|
114
114
|
break;
|
|
115
115
|
case 2:
|
|
116
|
-
listeners[
|
|
116
|
+
listeners[i3].fn.call(listeners[i3].context, a1);
|
|
117
117
|
break;
|
|
118
118
|
case 3:
|
|
119
|
-
listeners[
|
|
119
|
+
listeners[i3].fn.call(listeners[i3].context, a1, a22);
|
|
120
120
|
break;
|
|
121
121
|
case 4:
|
|
122
|
-
listeners[
|
|
122
|
+
listeners[i3].fn.call(listeners[i3].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[
|
|
128
|
+
listeners[i3].fn.apply(listeners[i3].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
|
|
154
|
-
if (listeners[
|
|
155
|
-
events.push(listeners[
|
|
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]);
|
|
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
|
|
1149
|
-
let item = allItems[
|
|
1148
|
+
for (let i3 = 0; i3 < allItems.length; i3++) {
|
|
1149
|
+
let item = allItems[i3];
|
|
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, (
|
|
1227
|
-
return openBlock(), createElementBlock(Fragment, { key:
|
|
1226
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(5, (i3) => {
|
|
1227
|
+
return openBlock(), createElementBlock(Fragment, { key: i3 }, [
|
|
1228
1228
|
(openBlock(), createElementBlock(Fragment, null, renderList(5, (n) => {
|
|
1229
1229
|
return createElementVNode("div", {
|
|
1230
1230
|
class: "toolbar-table-grid__item",
|
|
1231
|
-
key: `${
|
|
1231
|
+
key: `${i3}_${n}`,
|
|
1232
1232
|
"data-cols": n,
|
|
1233
|
-
"data-rows":
|
|
1233
|
+
"data-rows": i3,
|
|
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,
|
|
1239
|
-
onClick: withModifiers(($event) => handleClick({ cols: n, rows:
|
|
1238
|
+
onKeydown: withModifiers((event) => handleKeyDown(event, n, i3), ["prevent"]),
|
|
1239
|
+
onClick: withModifiers(($event) => handleClick({ cols: n, rows: i3 }), ["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((
|
|
1460
|
+
const foundFont = fontOptions.find((i3) => i3.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((
|
|
1547
|
-
return
|
|
1546
|
+
const foundSize = fontSizeOptions.find((i3) => {
|
|
1547
|
+
return i3.label === sanitizedValueStr || i3.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
|
|
3431
|
-
if ($from.node(
|
|
3430
|
+
for (let d = $from.depth; d > 0; d--) {
|
|
3431
|
+
if ($from.node(d).type.name === name) {
|
|
3432
3432
|
return true;
|
|
3433
3433
|
}
|
|
3434
3434
|
}
|
|
3435
|
-
for (let
|
|
3436
|
-
if ($to.node(
|
|
3435
|
+
for (let d = $to.depth; d > 0; d--) {
|
|
3436
|
+
if ($to.node(d).type.name === name) {
|
|
3437
3437
|
return true;
|
|
3438
3438
|
}
|
|
3439
3439
|
}
|
|
3440
3440
|
} else {
|
|
3441
|
-
for (let
|
|
3442
|
-
if ($from.node(
|
|
3441
|
+
for (let d = $from.depth; d > 0; d--) {
|
|
3442
|
+
if ($from.node(d).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
|
|
3978
|
+
for (let i3 = 0; i3 < docSize.width; i3++) {
|
|
3979
3979
|
const marginNum = 0.0625 * 96 - 0.5;
|
|
3980
3980
|
const margin = `${marginNum}px`;
|
|
3981
|
-
const diff = docSize.width -
|
|
3982
|
-
rulerItems.push(...generateSection(1, "main", "20%", margin,
|
|
3981
|
+
const diff = docSize.width - i3;
|
|
3982
|
+
rulerItems.push(...generateSection(1, "main", "20%", margin, i3));
|
|
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 }, (_,
|
|
3991
|
+
return Array.from({ length: qty }, (_, i3) => {
|
|
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
|
-
|
|
4629
|
+
i2 as fieldAnnotationHelpers,
|
|
4630
4630
|
getActiveFormatting,
|
|
4631
4631
|
m as getAllowedImageDimensions,
|
|
4632
|
-
|
|
4632
|
+
i as getMarksFromSelection,
|
|
4633
4633
|
getRichTextExtensions,
|
|
4634
4634
|
getStarterExtensions,
|
|
4635
4635
|
a2 as helpers,
|
package/dist/super-editor.cjs
CHANGED
|
@@ -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-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-BSOX4l_Z.cjs");
|
|
4
4
|
require("./chunks/vue-DWle4Cai.cjs");
|
|
5
5
|
exports.AIWriter = superEditor_es.AIWriter;
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -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-
|
|
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";
|
|
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-
|
|
4
|
-
const superdoc = require("./chunks/index-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-BSOX4l_Z.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-CPLP-MPz.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");
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-
|
|
2
|
-
import { D, H, P, S as S2, m, l } from "./chunks/index-
|
|
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";
|
|
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";
|