superdoc 1.0.0-beta.14 → 1.0.0-beta.15
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-DrsLL5TV.es.js → PdfViewer-CjlHzt9e.es.js} +1 -1
- package/dist/chunks/{PdfViewer-Cdc_EOZ9.cjs → PdfViewer-DltPlBWC.cjs} +1 -1
- package/dist/chunks/{index-9ZvcPlCg.cjs → index-BZnlco_f.cjs} +3 -3
- package/dist/chunks/{index-I4Ew0HDV-EPhjcu7T.cjs → index-Bds7gW4r-JPDW6c39.cjs} +1 -1
- package/dist/chunks/{index-I4Ew0HDV-Bht7-IGi.es.js → index-Bds7gW4r-Pk_xAuWe.es.js} +1 -1
- package/dist/chunks/{index-DB1DyDmZ.es.js → index-qg0AxQJC.es.js} +3 -3
- package/dist/chunks/{super-editor.es-DxAG4BVh.es.js → super-editor.es-CQTkj_nb.es.js} +2031 -472
- package/dist/chunks/{super-editor.es-DuS77THX.cjs → super-editor.es-CuAhqbzW.cjs} +2031 -472
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
- package/dist/style.css +6 -6
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-CfmIU--8.js → converter-qMoZOGGn.js} +412 -252
- package/dist/super-editor/chunks/{docx-zipper-B-CXiNSb.js → docx-zipper-QKiyORxV.js} +1 -1
- package/dist/super-editor/chunks/{editor-wC_gs8Bl.js → editor-D8ZdjC2V.js} +1633 -215
- package/dist/super-editor/chunks/{index-I4Ew0HDV.js → index-Bds7gW4r.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-BR1GYvwW.js → toolbar-Spi7vpev.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/style.css +6 -6
- package/dist/super-editor/super-editor.es.js +8 -100
- 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 +2033 -474
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -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, onMounted, onBeforeUnmount, createVNode, readonly, watch, 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-
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
2
|
+
import { p as process$1 } from "./converter-qMoZOGGn.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-D8ZdjC2V.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -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-D8ZdjC2V.js";
|
|
2
|
+
import "./chunks/converter-qMoZOGGn.js";
|
|
3
|
+
import "./chunks/docx-zipper-QKiyORxV.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -1889,18 +1889,18 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
|
|
|
1889
1889
|
min-height: 40px;
|
|
1890
1890
|
}
|
|
1891
1891
|
|
|
1892
|
-
.superdoc-table-resize-overlay[data-v-
|
|
1892
|
+
.superdoc-table-resize-overlay[data-v-3f4a506b] {
|
|
1893
1893
|
position: absolute;
|
|
1894
1894
|
pointer-events: none;
|
|
1895
1895
|
user-select: none;
|
|
1896
1896
|
}
|
|
1897
|
-
.resize-handle[data-v-
|
|
1897
|
+
.resize-handle[data-v-3f4a506b] {
|
|
1898
1898
|
position: absolute;
|
|
1899
1899
|
cursor: col-resize;
|
|
1900
1900
|
user-select: none;
|
|
1901
1901
|
z-index: 15;
|
|
1902
1902
|
}
|
|
1903
|
-
.resize-handle[data-v-
|
|
1903
|
+
.resize-handle[data-v-3f4a506b]::before {
|
|
1904
1904
|
content: '';
|
|
1905
1905
|
position: absolute;
|
|
1906
1906
|
left: 50%;
|
|
@@ -1913,17 +1913,17 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
|
|
|
1913
1913
|
background-color 0.2s ease,
|
|
1914
1914
|
width 0.2s ease;
|
|
1915
1915
|
}
|
|
1916
|
-
.resize-handle[data-v-
|
|
1916
|
+
.resize-handle[data-v-3f4a506b]:hover::before {
|
|
1917
1917
|
background-color: #4a90e2;
|
|
1918
1918
|
width: 3px;
|
|
1919
1919
|
transform: translateX(-1.5px);
|
|
1920
1920
|
}
|
|
1921
|
-
.resize-handle--active[data-v-
|
|
1921
|
+
.resize-handle--active[data-v-3f4a506b]::before {
|
|
1922
1922
|
background-color: #4a90e2;
|
|
1923
1923
|
width: 2px;
|
|
1924
1924
|
transform: translateX(-1px);
|
|
1925
1925
|
}
|
|
1926
|
-
.resize-guideline[data-v-
|
|
1926
|
+
.resize-guideline[data-v-3f4a506b] {
|
|
1927
1927
|
position: absolute;
|
|
1928
1928
|
background-color: #4a90e2;
|
|
1929
1929
|
pointer-events: none;
|
|
@@ -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 _MARK_TOGGLE_NAMES, _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, enrichTrackedChanges_fn, runCommandWithArgumentOnly_fn, syncStickyMarksFromState_fn, restoreStickyMarksIfNeeded_fn, ensureStoredMarksForMarkToggle_fn;
|
|
12
|
-
import { aJ as getDefaultExportFromCjs, a0 as v4, T as TextSelection$1, v as getMarkRange, aM as vClickOutside, aN as getActiveFormatting, aC as isInTable, U as findParentNode, aq as calculateResolvedParagraphProperties, a7 as twipsToLines, V as isList, al as parseSizeUnit, a8 as pixelsToTwips, aO as getFileObject,
|
|
13
|
-
import { ac, i, a9 } from "./chunks/converter-
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as getEditorSurfaceElement, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, m as measureCache, n as isHeadless, E as Editor, o as getStarterExtensions, P as PresentationEditor, p as Placeholder, q as getRichTextExtensions, D as DecorationSet, t as Decoration, M as Mark, v as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
15
|
-
import { z, F, B, T, w, C, x } from "./chunks/editor-
|
|
12
|
+
import { aJ as getDefaultExportFromCjs, a0 as v4, T as TextSelection$1, v as getMarkRange, aM as vClickOutside, aN as getActiveFormatting, aC as isInTable, U as findParentNode, aq as calculateResolvedParagraphProperties, a7 as twipsToLines, V as isList, al as parseSizeUnit, a8 as pixelsToTwips, aO as getFileObject, P as PluginKey, a as Plugin } from "./chunks/converter-qMoZOGGn.js";
|
|
13
|
+
import { ac, i, a9, aP } from "./chunks/converter-qMoZOGGn.js";
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as getEditorSurfaceElement, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, m as measureCache, n as isHeadless, E as Editor, o as getStarterExtensions, P as PresentationEditor, p as Placeholder, q as getRichTextExtensions, D as DecorationSet, t as Decoration, M as Mark, v as Extension, A as Attribute, N as Node } from "./chunks/editor-D8ZdjC2V.js";
|
|
15
|
+
import { z, F, B, T, w, C, x } from "./chunks/editor-D8ZdjC2V.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, defineComponent, reactive, onUnmounted, renderSlot, useCssVars, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-Spi7vpev.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-QKiyORxV.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
var hasRequiredEventemitter3;
|
|
@@ -5318,7 +5318,7 @@ const _sfc_main$3 = {
|
|
|
5318
5318
|
};
|
|
5319
5319
|
}
|
|
5320
5320
|
};
|
|
5321
|
-
const TableResizeOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
5321
|
+
const TableResizeOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-3f4a506b"]]);
|
|
5322
5322
|
const _hoisted_1$2 = ["data-handle-position", "onMousedown"];
|
|
5323
5323
|
const OVERLAY_EXPANSION_PX = 2e3;
|
|
5324
5324
|
const RESIZE_HANDLE_SIZE_PX = 12;
|
|
@@ -6266,98 +6266,6 @@ const _sfc_main = {
|
|
|
6266
6266
|
}
|
|
6267
6267
|
};
|
|
6268
6268
|
const SuperInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4d5cff52"]]);
|
|
6269
|
-
const additionalHandlers = Object.freeze({
|
|
6270
|
-
"mc:AlternateContent": translator$1j,
|
|
6271
|
-
"sd:pageReference": translator$1i,
|
|
6272
|
-
"sd:tableOfContents": translator$1h,
|
|
6273
|
-
"w:b": translator$1g,
|
|
6274
|
-
"w:bCs": translator$1f,
|
|
6275
|
-
"w:bidiVisual": translator$1e,
|
|
6276
|
-
"w:bookmarkEnd": translator$1d,
|
|
6277
|
-
"w:bookmarkStart": translator$1c,
|
|
6278
|
-
"w:bottom": translator$1b,
|
|
6279
|
-
"w:br": translator$1a,
|
|
6280
|
-
"w:cantSplit": translator$19,
|
|
6281
|
-
"w:caps": translator$18,
|
|
6282
|
-
"w:cnfStyle": translator$17,
|
|
6283
|
-
"w:color": translator$16,
|
|
6284
|
-
"w:divId": translator$15,
|
|
6285
|
-
"w:drawing": translator$14,
|
|
6286
|
-
"w:end": translator$13,
|
|
6287
|
-
"w:gridAfter": translator$12,
|
|
6288
|
-
"w:gridBefore": translator$11,
|
|
6289
|
-
"w:gridCol": translator$10,
|
|
6290
|
-
"w:hidden": translator$$,
|
|
6291
|
-
"w:highlight": translator$_,
|
|
6292
|
-
"w:hyperlink": translator$Z,
|
|
6293
|
-
"w:i": translator$Y,
|
|
6294
|
-
"w:insideH": translator$X,
|
|
6295
|
-
"w:insideV": translator$W,
|
|
6296
|
-
"w:jc": translator$V,
|
|
6297
|
-
"w:left": translator$U,
|
|
6298
|
-
"w:p": translator$T,
|
|
6299
|
-
"w:r": translator$S,
|
|
6300
|
-
"w:rFonts": translator$R,
|
|
6301
|
-
"w:rPr": translator$Q,
|
|
6302
|
-
"w:rStyle": translator$P,
|
|
6303
|
-
"w:right": translator$O,
|
|
6304
|
-
"w:sdt": translator$N,
|
|
6305
|
-
"w:shd": translator$M,
|
|
6306
|
-
"w:start": translator$L,
|
|
6307
|
-
"w:strike": translator$K,
|
|
6308
|
-
"w:sz": translator$J,
|
|
6309
|
-
"w:szCs": translator$I,
|
|
6310
|
-
"w:tab": translator$H,
|
|
6311
|
-
"w:tbl": translator$G,
|
|
6312
|
-
"w:tblBorders": translator$F,
|
|
6313
|
-
"w:tblCaption": translator$E,
|
|
6314
|
-
"w:tblCellMar": translator$D,
|
|
6315
|
-
"w:tblCellSpacing": translator$C,
|
|
6316
|
-
"w:tblDescription": translator$B,
|
|
6317
|
-
"w:tblGrid": translator$A,
|
|
6318
|
-
"w:tblHeader": translator$z,
|
|
6319
|
-
"w:tblInd": translator$y,
|
|
6320
|
-
"w:tblLayout": translator$x,
|
|
6321
|
-
"w:tblLook": translator$w,
|
|
6322
|
-
"w:tblOverlap": translator$v,
|
|
6323
|
-
"w:tblPr": translator$u,
|
|
6324
|
-
"w:tblStyle": translator$t,
|
|
6325
|
-
"w:tblStyleColBandSize": translator$s,
|
|
6326
|
-
"w:tblStyleRowBandSize": translator$r,
|
|
6327
|
-
"w:tblW": translator$q,
|
|
6328
|
-
"w:tblpPr": translator$p,
|
|
6329
|
-
"w:tc": translator$o,
|
|
6330
|
-
"w:top": translator$n,
|
|
6331
|
-
"w:tr": translator$m,
|
|
6332
|
-
"w:trHeight": translator$l,
|
|
6333
|
-
"w:trPr": translator$k,
|
|
6334
|
-
"w:u": translator$j,
|
|
6335
|
-
"w:wAfter": translator$i,
|
|
6336
|
-
"w:wBefore": translator$h,
|
|
6337
|
-
"wp:anchor": translator$g,
|
|
6338
|
-
"wp:inline": translator$f,
|
|
6339
|
-
"w:commentRangeStart": commentRangeStartTranslator,
|
|
6340
|
-
"w:commentRangeEnd": commentRangeEndTranslator,
|
|
6341
|
-
"w:vMerge": translator$e,
|
|
6342
|
-
"w:gridSpan": translator$d,
|
|
6343
|
-
"w:vAlign": translator$c,
|
|
6344
|
-
"w:noWrap": translator$b,
|
|
6345
|
-
"w:tcFitText": translator$a,
|
|
6346
|
-
"w:tcW": translator$9,
|
|
6347
|
-
"w:hideMark": translator$8,
|
|
6348
|
-
"w:textDirection": translator$7,
|
|
6349
|
-
"w:tl2br": translator$6,
|
|
6350
|
-
"w:tr2bl": translator$5,
|
|
6351
|
-
"w:header": translator$4,
|
|
6352
|
-
"w:headers": translator$3,
|
|
6353
|
-
"w:tcBorders": translator$2,
|
|
6354
|
-
"w:tcMar": translator$1,
|
|
6355
|
-
"w:tcPr": translator
|
|
6356
|
-
});
|
|
6357
|
-
const baseHandlers = {
|
|
6358
|
-
...additionalHandlers
|
|
6359
|
-
};
|
|
6360
|
-
const registeredHandlers = Object.freeze(baseHandlers);
|
|
6361
6269
|
const Extensions = {
|
|
6362
6270
|
Node,
|
|
6363
6271
|
Attribute,
|
|
@@ -6394,6 +6302,6 @@ export {
|
|
|
6394
6302
|
getRichTextExtensions,
|
|
6395
6303
|
getStarterExtensions,
|
|
6396
6304
|
a9 as helpers,
|
|
6397
|
-
registeredHandlers,
|
|
6305
|
+
aP as registeredHandlers,
|
|
6398
6306
|
x as trackChangesHelpers
|
|
6399
6307
|
};
|
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-CuAhqbzW.cjs");
|
|
4
4
|
require("./chunks/vue-jWLMl8Ts.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, P, 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, P, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-CQTkj_nb.es.js";
|
|
2
2
|
import "./chunks/vue-Dysv_7z5.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-CuAhqbzW.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-BZnlco_f.cjs");
|
|
5
5
|
const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
|
7
7
|
exports.Editor = superEditor_es.Editor;
|
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-CQTkj_nb.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-qg0AxQJC.es.js";
|
|
3
3
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
4
4
|
export {
|
|
5
5
|
a as AnnotatorHelpers,
|