@harbour-enterprises/superdoc 2.0.0-next.10 → 2.0.0-next.12
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-BPeCb-xB.cjs → PdfViewer-C4Rskp84.cjs} +1 -1
- package/dist/chunks/{PdfViewer-CEK62Xt7.es.js → PdfViewer-gCeF-QYt.es.js} +1 -1
- package/dist/chunks/{index-D0T8-Wdm.es.js → index-1r0Y4WhB.es.js} +3 -3
- package/dist/chunks/{index-qzVJpQrS.cjs → index-B0ABZ3LJ.cjs} +3 -3
- package/dist/chunks/{index-BjfjH1jR-CqVyr7iV.cjs → index-CKZ12UnJ-C1HGA_YK.cjs} +1 -1
- package/dist/chunks/{index-BjfjH1jR-DA6bQUce.es.js → index-CKZ12UnJ-D8DEO2SJ.es.js} +1 -1
- package/dist/chunks/{super-editor.es-DYbXag4d.es.js → super-editor.es-CF0cFL_U.es.js} +7 -7
- package/dist/chunks/{super-editor.es-B6s3KBGi.cjs → super-editor.es-D5OWIKtj.cjs} +7 -7
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts +3 -3
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
- package/dist/packages/superdoc/src/core/types/index.d.ts +173 -0
- package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-WYQ7aFni.js → converter-D_lixHsO.js} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-ClbA5S-4.js → docx-zipper-BbdZj7ad.js} +1 -1
- package/dist/super-editor/chunks/{editor-CxwcruHz.js → editor-C7rOlORO.js} +8 -8
- package/dist/super-editor/chunks/{index-BjfjH1jR.js → index-CKZ12UnJ.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-D-4TWvLd.js → toolbar-BPHdeFqh.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/super-editor.es.js +6 -6
- 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 +9 -9
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -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 { aK as getDefaultExportFromCjs, a0 as v4, T as TextSelection$1, v as getMarkRange, aN as vClickOutside, aO as getActiveFormatting, aD as isInTable, O as findParentNode, at as calculateResolvedParagraphProperties, a7 as twipsToLines, Q as isList, an as parseSizeUnit, W as isMacOS, a8 as pixelsToTwips, aP as getFileObject, P as PluginKey, a as Plugin } from "./chunks/converter-
|
|
13
|
-
import { ac, i, a9, aQ } 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 SLASH_MENU_HANDLED_FLAG, m as SlashMenuPluginKey, s as shouldBypassContextMenu, n as generateRulerDefinition, o as clampHandlePosition, p as calculateMarginFromHandle, q as measureCache, t as isHeadless, E as Editor, v as getStarterExtensions, P as PresentationEditor, w as Placeholder, x as getRichTextExtensions, D as DecorationSet, z as Decoration, M as Mark, A as Extension, B as Attribute, N as Node } from "./chunks/editor-
|
|
15
|
-
import { G, J, H, T, C, I, F } from "./chunks/editor-
|
|
12
|
+
import { aK as getDefaultExportFromCjs, a0 as v4, T as TextSelection$1, v as getMarkRange, aN as vClickOutside, aO as getActiveFormatting, aD as isInTable, O as findParentNode, at as calculateResolvedParagraphProperties, a7 as twipsToLines, Q as isList, an as parseSizeUnit, W as isMacOS, a8 as pixelsToTwips, aP as getFileObject, P as PluginKey, a as Plugin } from "./chunks/converter-D_lixHsO.js";
|
|
13
|
+
import { ac, i, a9, aQ } from "./chunks/converter-D_lixHsO.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 SLASH_MENU_HANDLED_FLAG, m as SlashMenuPluginKey, s as shouldBypassContextMenu, n as generateRulerDefinition, o as clampHandlePosition, p as calculateMarginFromHandle, q as measureCache, t as isHeadless, E as Editor, v as getStarterExtensions, P as PresentationEditor, w as Placeholder, x as getRichTextExtensions, D as DecorationSet, z as Decoration, M as Mark, A as Extension, B as Attribute, N as Node } from "./chunks/editor-C7rOlORO.js";
|
|
15
|
+
import { G, J, H, T, C, I, F } from "./chunks/editor-C7rOlORO.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, Teleport, 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-BPHdeFqh.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-BbdZj7ad.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
var hasRequiredEventemitter3;
|
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-D5OWIKtj.cjs");
|
|
4
4
|
require("./chunks/vue-gvuFr0vx.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-CF0cFL_U.es.js";
|
|
2
2
|
import "./chunks/vue-CLFbn_1r.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-D5OWIKtj.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-B0ABZ3LJ.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-CF0cFL_U.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-1r0Y4WhB.es.js";
|
|
3
3
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
4
4
|
export {
|
|
5
5
|
a as AnnotatorHelpers,
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -42470,7 +42470,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
42470
42470
|
static getStoredSuperdocVersion(docx) {
|
|
42471
42471
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
42472
42472
|
}
|
|
42473
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "2.0.0-next.
|
|
42473
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "2.0.0-next.12") {
|
|
42474
42474
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
42475
42475
|
}
|
|
42476
42476
|
/**
|
|
@@ -68426,7 +68426,7 @@ ${err.toString()}`);
|
|
|
68426
68426
|
const shouldSkipNodeView = (editor) => {
|
|
68427
68427
|
return isHeadless(editor);
|
|
68428
68428
|
};
|
|
68429
|
-
const summaryVersion = "2.0.0-next.
|
|
68429
|
+
const summaryVersion = "2.0.0-next.12";
|
|
68430
68430
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
68431
68431
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
68432
68432
|
function mapAttributes(attrs) {
|
|
@@ -69215,7 +69215,7 @@ ${err.toString()}`);
|
|
|
69215
69215
|
{ default: remarkStringify2 },
|
|
69216
69216
|
{ default: remarkGfm2 }
|
|
69217
69217
|
] = await Promise.all([
|
|
69218
|
-
Promise.resolve().then(() =>
|
|
69218
|
+
Promise.resolve().then(() => indexCKZ12UnJ),
|
|
69219
69219
|
Promise.resolve().then(() => indexDRCvimau),
|
|
69220
69220
|
Promise.resolve().then(() => indexC_x_N6Uh),
|
|
69221
69221
|
Promise.resolve().then(() => indexD_sWOSiG),
|
|
@@ -69420,7 +69420,7 @@ ${err.toString()}`);
|
|
|
69420
69420
|
* Process collaboration migrations
|
|
69421
69421
|
*/
|
|
69422
69422
|
processCollaborationMigrations() {
|
|
69423
|
-
console.debug("[checkVersionMigrations] Current editor version", "2.0.0-next.
|
|
69423
|
+
console.debug("[checkVersionMigrations] Current editor version", "2.0.0-next.12");
|
|
69424
69424
|
if (!this.options.ydoc) return;
|
|
69425
69425
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
69426
69426
|
let docVersion = metaMap.get("version");
|
|
@@ -99569,7 +99569,7 @@ ${l}
|
|
|
99569
99569
|
return Math.max(advanceWidth, paintedWidth);
|
|
99570
99570
|
}
|
|
99571
99571
|
const MIN_SINGLE_LINE_PX = 12 * 96 / 72;
|
|
99572
|
-
const
|
|
99572
|
+
const WORD_SINGLE_LINE_SPACING_MULTIPLIER = 1.15;
|
|
99573
99573
|
function calculateTypographyMetrics(fontSize2, spacing, fontInfo) {
|
|
99574
99574
|
let ascent;
|
|
99575
99575
|
let descent;
|
|
@@ -99582,7 +99582,7 @@ ${l}
|
|
|
99582
99582
|
ascent = roundValue(fontSize2 * 0.8);
|
|
99583
99583
|
descent = roundValue(fontSize2 * 0.2);
|
|
99584
99584
|
}
|
|
99585
|
-
const baseLineHeight = Math.max(ascent + descent
|
|
99585
|
+
const baseLineHeight = Math.max(fontSize2 * WORD_SINGLE_LINE_SPACING_MULTIPLIER, ascent + descent, MIN_SINGLE_LINE_PX);
|
|
99586
99586
|
const lineHeight2 = roundValue(resolveLineHeight(spacing, baseLineHeight));
|
|
99587
99587
|
return {
|
|
99588
99588
|
ascent,
|
|
@@ -101081,7 +101081,7 @@ ${l}
|
|
|
101081
101081
|
const paintedWidth = (metrics.actualBoundingBoxLeft || 0) + (metrics.actualBoundingBoxRight || 0);
|
|
101082
101082
|
const textWidth = Math.max(advanceWidth, paintedWidth);
|
|
101083
101083
|
const width = roundValue(textWidth + DROP_CAP_PADDING_PX);
|
|
101084
|
-
const baseLineHeight = resolveLineHeight(spacing, run2.fontSize *
|
|
101084
|
+
const baseLineHeight = resolveLineHeight(spacing, run2.fontSize * WORD_SINGLE_LINE_SPACING_MULTIPLIER);
|
|
101085
101085
|
const height = roundValue(baseLineHeight * lines);
|
|
101086
101086
|
return {
|
|
101087
101087
|
width,
|
|
@@ -157862,7 +157862,7 @@ ${style2}
|
|
|
157862
157862
|
this.config.colors = shuffleArray(this.config.colors);
|
|
157863
157863
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
157864
157864
|
this.colorIndex = 0;
|
|
157865
|
-
this.version = "2.0.0-next.
|
|
157865
|
+
this.version = "2.0.0-next.12";
|
|
157866
157866
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
157867
157867
|
this.superdocId = config2.superdocId || v4();
|
|
157868
157868
|
this.colors = this.config.colors;
|
|
@@ -160335,7 +160335,7 @@ ${style2}
|
|
|
160335
160335
|
value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
|
|
160336
160336
|
);
|
|
160337
160337
|
}
|
|
160338
|
-
const
|
|
160338
|
+
const indexCKZ12UnJ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
160339
160339
|
__proto__: null,
|
|
160340
160340
|
unified
|
|
160341
160341
|
}, Symbol.toStringTag, { value: "Module" }));
|