@harbour-enterprises/superdoc 0.20.0-next.8 → 0.20.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.
- package/dist/chunks/{PdfViewer-Ch0v9vA6.cjs → PdfViewer--8KwZWwP.cjs} +1 -1
- package/dist/chunks/{PdfViewer-BoDHZ2nW.es.js → PdfViewer-SpPk10jl.es.js} +1 -1
- package/dist/chunks/{index-BWPWqVxp.es.js → index-BjLjS5O9.es.js} +3 -3
- package/dist/chunks/{index-DFOT300M.cjs → index-yRUOdLmp.cjs} +3 -3
- package/dist/chunks/{super-editor.es-BQ6kZTNg.cjs → super-editor.es-CuNhawtn.cjs} +1937 -3044
- package/dist/chunks/{super-editor.es-sBfWb5tn.es.js → super-editor.es-D24_Ox1u.es.js} +1937 -3044
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/style.css +0 -38
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-C91Sr_5w.js → converter-Cg4SgA5y.js} +1132 -1616
- package/dist/super-editor/chunks/{docx-zipper-Cl7LYpt6.js → docx-zipper-CDX2fnxb.js} +2 -2
- package/dist/super-editor/chunks/{editor-a7cQT9Dw.js → editor-MKuu81v8.js} +638 -1250
- package/dist/super-editor/chunks/{toolbar-DiNFtCKr.js → toolbar-CpQ7L2K-.js} +2 -2
- 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/core/helpers/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/exporter.d.ts +1 -7
- package/dist/super-editor/src/core/super-converter/v2/importer/imageImporter.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/tableImporter.d.ts +22 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/utils.d.ts +3 -10
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts +1 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tc/helpers/legacy-handle-table-cell-node.d.ts +1 -1
- package/dist/super-editor/src/core/super-converter/v3/node-translator/node-translator.d.ts +1 -11
- package/dist/super-editor/src/extensions/image/imageHelpers/imagePlaceholderPlugin.d.ts +5 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/index.d.ts +1 -2
- package/dist/super-editor/src/extensions/image/imageHelpers/processUploadedImage.d.ts +2 -2
- package/dist/super-editor/src/extensions/image/imageHelpers/startImageUpload.d.ts +23 -18
- package/dist/super-editor/src/extensions/structured-content/structured-content-block.d.ts +1 -3
- package/dist/super-editor/src/extensions/structured-content/structured-content.d.ts +1 -3
- package/dist/super-editor/src/extensions/table/table.d.ts +0 -330
- package/dist/super-editor/style.css +0 -38
- package/dist/super-editor/super-editor.es.js +55 -65
- 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 +2566 -3673
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/super-editor/src/core/helpers/updateDOMAttributes.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/export-helpers/pre-process-vertical-merge-cells.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/helpers/mediaHelpers.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/bidiVisual-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/bottom-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/marginBottom-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/drawing/drawing-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/drawing/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/end-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/marginEnd-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridCol/gridCol-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridCol/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideH/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideH/insideH-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideV/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideV/insideV-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/left-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/marginLeft-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/marginRight-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/right-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/shd/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/shd/shd-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/marginStart-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/start-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tbl/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tbl/tbl-translator.d.ts +0 -28
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblBorders/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblBorders/tblBorders-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCaption/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCaption/tblCaption-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellMar/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellMar/tblCellMar-translator.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblDescription/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblDescription/tblDescription-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-helpers.d.ts +0 -5
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.d.ts +0 -5
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblInd/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblInd/tblInd-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLayout/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLayout/tblLayout-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLook/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLook/tblLook-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblOverlap/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblOverlap/tblOverlap-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblPr/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblPr/tblPr-translator.d.ts +0 -5
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyle/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyle/tblStyle-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleColBandSize/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleColBandSize/tblStyleColBandSize-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleRowBandSize/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleRowBandSize/tblStyleRowBandSize-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblW/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblW/tblW-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblpPr/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblpPr/tblpPr-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/marginTop-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/top-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/anchor-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/helpers/handle-anchor-node.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/helpers/translate-anchor-node.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.d.ts +0 -18
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/helpers/encode-image-node-helpers.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/helpers/handle-inline-node.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/helpers/translate-inline-node.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/inline-translator.d.ts +0 -6
- package/dist/super-editor/src/extensions/image/imageHelpers/fileNameUtils.d.ts +0 -3
- package/dist/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +0 -1
- package/dist/super-editor/src/extensions/image/imageHelpers/handleUrl.d.ts +0 -2
- package/dist/super-editor/src/extensions/image/imageHelpers/imageRegistrationPlugin.d.ts +0 -11
- package/dist/super-editor/src/extensions/structured-content/StructuredContentBlockView.d.ts +0 -9
- package/dist/super-editor/src/extensions/structured-content/StructuredContentInlineView.d.ts +0 -9
- package/dist/super-editor/src/extensions/structured-content/StructuredContentViewBase.d.ts +0 -24
|
@@ -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 {
|
|
13
|
-
import {
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener,
|
|
15
|
-
import {
|
|
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-Cg4SgA5y.js";
|
|
13
|
+
import { aI, a5, i, a2 } from "./chunks/converter-Cg4SgA5y.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-MKuu81v8.js";
|
|
15
|
+
import { k, C, l, T, i as i2, m, j } from "./chunks/editor-MKuu81v8.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-CpQ7L2K-.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-CDX2fnxb.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
|
-
var length = listeners.length,
|
|
109
|
-
for (
|
|
110
|
-
if (listeners[
|
|
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);
|
|
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
|
-
if (!args) for (
|
|
126
|
-
args[
|
|
125
|
+
if (!args) for (j2 = 1, args = new Array(len - 1); j2 < len; j2++) {
|
|
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:
|
|
1228
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(5, (
|
|
1226
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(5, (i3) => {
|
|
1227
|
+
return openBlock(), createElementBlock(Fragment, { key: i3 }, [
|
|
1228
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(5, (n) => {
|
|
1229
1229
|
return createElementVNode("div", {
|
|
1230
1230
|
class: "toolbar-table-grid__item",
|
|
1231
|
-
key: `${
|
|
1232
|
-
"data-cols":
|
|
1233
|
-
"data-rows":
|
|
1231
|
+
key: `${i3}_${n}`,
|
|
1232
|
+
"data-cols": n,
|
|
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,
|
|
1239
|
-
onClick: withModifiers(($event) => handleClick({ cols:
|
|
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;
|
|
@@ -2643,25 +2643,10 @@ class SuperToolbar extends EventEmitter {
|
|
|
2643
2643
|
if (!result?.file) {
|
|
2644
2644
|
return;
|
|
2645
2645
|
}
|
|
2646
|
-
|
|
2647
|
-
file: result.file,
|
|
2648
|
-
getMaxContentSize: () => this.activeEditor.getMaxContentSize()
|
|
2649
|
-
});
|
|
2650
|
-
if (!file) {
|
|
2651
|
-
return;
|
|
2652
|
-
}
|
|
2653
|
-
const id = {};
|
|
2654
|
-
replaceSelectionWithImagePlaceholder({
|
|
2655
|
-
view: this.activeEditor.view,
|
|
2656
|
-
editorOptions: this.activeEditor.options,
|
|
2657
|
-
id
|
|
2658
|
-
});
|
|
2659
|
-
await uploadAndInsertImage({
|
|
2646
|
+
startImageUpload({
|
|
2660
2647
|
editor: this.activeEditor,
|
|
2661
2648
|
view: this.activeEditor.view,
|
|
2662
|
-
file
|
|
2663
|
-
size,
|
|
2664
|
-
id
|
|
2649
|
+
file: result.file
|
|
2665
2650
|
});
|
|
2666
2651
|
},
|
|
2667
2652
|
/**
|
|
@@ -3992,11 +3977,11 @@ const _sfc_main$3 = {
|
|
|
3992
3977
|
pageMargins.value = docMargins;
|
|
3993
3978
|
rightHandle.x = docSize.width * 96 - docMargins.right * 96;
|
|
3994
3979
|
leftHandle.x = docMargins.left * 96;
|
|
3995
|
-
for (let
|
|
3980
|
+
for (let i3 = 0; i3 < docSize.width; i3++) {
|
|
3996
3981
|
const marginNum = 0.0625 * 96 - 0.5;
|
|
3997
3982
|
const margin = `${marginNum}px`;
|
|
3998
|
-
const diff = docSize.width -
|
|
3999
|
-
rulerItems.push(...generateSection(1, "main", "20%", margin,
|
|
3983
|
+
const diff = docSize.width - i3;
|
|
3984
|
+
rulerItems.push(...generateSection(1, "main", "20%", margin, i3));
|
|
4000
3985
|
rulerItems.push(...generateSection(3, "eighth", "10%", margin));
|
|
4001
3986
|
rulerItems.push(...generateSection(1, "half", "40%", margin));
|
|
4002
3987
|
if (diff <= 0.5) break;
|
|
@@ -4005,7 +3990,7 @@ const _sfc_main$3 = {
|
|
|
4005
3990
|
return rulerItems;
|
|
4006
3991
|
};
|
|
4007
3992
|
const generateSection = (qty, size, height, margin, index) => {
|
|
4008
|
-
return Array.from({ length: qty }, (_,
|
|
3993
|
+
return Array.from({ length: qty }, (_, i3) => {
|
|
4009
3994
|
const item = {
|
|
4010
3995
|
className: `${size}-unit ruler-section`,
|
|
4011
3996
|
height,
|
|
@@ -4617,6 +4602,11 @@ const _sfc_main = {
|
|
|
4617
4602
|
}
|
|
4618
4603
|
};
|
|
4619
4604
|
const SuperInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4d5cff52"]]);
|
|
4605
|
+
const registeredHandlers = Object.freeze({
|
|
4606
|
+
"w:br": translator$2,
|
|
4607
|
+
"w:tab": translator$1,
|
|
4608
|
+
"w:p": translator
|
|
4609
|
+
});
|
|
4620
4610
|
const Extensions = {
|
|
4621
4611
|
Node,
|
|
4622
4612
|
Attribute,
|
|
@@ -4626,13 +4616,13 @@ const Extensions = {
|
|
|
4626
4616
|
};
|
|
4627
4617
|
export {
|
|
4628
4618
|
AIWriter,
|
|
4629
|
-
|
|
4630
|
-
|
|
4619
|
+
k as AnnotatorHelpers,
|
|
4620
|
+
aI as BasicUpload,
|
|
4631
4621
|
C as CommentsPluginKey,
|
|
4632
4622
|
D as DocxZipper,
|
|
4633
4623
|
Editor,
|
|
4634
4624
|
Extensions,
|
|
4635
|
-
|
|
4625
|
+
l as SectionHelpers,
|
|
4636
4626
|
_sfc_main$4 as SlashMenu,
|
|
4637
4627
|
a5 as SuperConverter,
|
|
4638
4628
|
SuperEditor,
|
|
@@ -4641,13 +4631,13 @@ export {
|
|
|
4641
4631
|
Toolbar,
|
|
4642
4632
|
T as TrackChangesBasePluginKey,
|
|
4643
4633
|
createZip,
|
|
4644
|
-
|
|
4634
|
+
i2 as fieldAnnotationHelpers,
|
|
4645
4635
|
getActiveFormatting,
|
|
4646
|
-
|
|
4636
|
+
m as getAllowedImageDimensions,
|
|
4647
4637
|
i as getMarksFromSelection,
|
|
4648
4638
|
getRichTextExtensions,
|
|
4649
4639
|
getStarterExtensions,
|
|
4650
4640
|
a2 as helpers,
|
|
4651
|
-
|
|
4652
|
-
|
|
4641
|
+
registeredHandlers,
|
|
4642
|
+
j as trackChangesHelpers
|
|
4653
4643
|
};
|
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-CuNhawtn.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-D24_Ox1u.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-CuNhawtn.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-yRUOdLmp.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-D24_Ox1u.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-BjLjS5O9.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";
|