@harbour-enterprises/superdoc 1.0.0-next.10 → 1.0.0-next.3
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-CZG4udaT.es.js → PdfViewer-PUn0q_lG.es.js} +1 -1
- package/dist/chunks/{PdfViewer-B9LcTIm2.cjs → PdfViewer-cVGt7Ne7.cjs} +1 -1
- package/dist/chunks/{index-DdTDm9oI-Duiy8M_G.cjs → index-DLO-SgUP-BNtYQDPq.cjs} +1 -1
- package/dist/chunks/{index-DdTDm9oI-BXzE00pk.es.js → index-DLO-SgUP-c73otQJ5.es.js} +1 -1
- package/dist/chunks/{index-4FiyZ-0E.cjs → index-Djmhr-R6.cjs} +97 -99
- package/dist/chunks/{index-1n6qegaQ.es.js → index-mHanL4xN.es.js} +97 -99
- package/dist/chunks/{super-editor.es-BQQuazyp.cjs → super-editor.es-Cve8WKfM.cjs} +25570 -28023
- package/dist/chunks/{super-editor.es-DKr759cY.es.js → super-editor.es-S9Kp_7dy.es.js} +25570 -28023
- package/dist/images/altText_add.svg +3 -0
- package/dist/images/altText_disclaimer.svg +3 -0
- package/dist/images/altText_done.svg +3 -0
- package/dist/images/altText_spinner.svg +30 -0
- package/dist/images/altText_warning.svg +3 -0
- package/dist/images/annotation-check.svg +11 -0
- package/dist/images/annotation-comment.svg +16 -0
- package/dist/images/annotation-help.svg +26 -0
- package/dist/images/annotation-insert.svg +10 -0
- package/dist/images/annotation-key.svg +11 -0
- package/dist/images/annotation-newparagraph.svg +11 -0
- package/dist/images/annotation-noicon.svg +7 -0
- package/dist/images/annotation-note.svg +42 -0
- package/dist/images/annotation-paperclip.svg +6 -0
- package/dist/images/annotation-paragraph.svg +16 -0
- package/dist/images/annotation-pushpin.svg +7 -0
- package/dist/images/cursor-editorFreeHighlight.svg +6 -0
- package/dist/images/cursor-editorFreeText.svg +3 -0
- package/dist/images/cursor-editorInk.svg +4 -0
- package/dist/images/cursor-editorTextHighlight.svg +8 -0
- package/dist/images/editor-toolbar-delete.svg +5 -0
- package/dist/images/loading-icon.gif +0 -0
- package/dist/images/messageBar_closingButton.svg +3 -0
- package/dist/images/messageBar_warning.svg +3 -0
- package/dist/images/toolbarButton-editorHighlight.svg +6 -0
- package/dist/images/toolbarButton-menuArrow.svg +3 -0
- package/dist/packages/superdoc/src/core/collaboration/collaboration-comments.d.ts +3 -3
- package/dist/packages/superdoc/src/core/collaboration/collaboration-comments.d.ts.map +1 -1
- package/dist/packages/superdoc/src/core/collaboration/helpers.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-BavE2jnW.js → converter-ByybZRFp.js} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-CY4M19qa.js → docx-zipper-CFQANTLI.js} +1 -1
- package/dist/super-editor/chunks/{editor-Cslr04KI.js → editor-Cu4hD14N.js} +25808 -27898
- package/dist/super-editor/chunks/{index-DdTDm9oI.js → index-DLO-SgUP.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-Zdgn--Js.js → toolbar-5MMla0sj.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 +19 -40
- 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 +25652 -28107
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, readonly, watch, computed, getCurrentInstance, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, withDirectives, h, Teleport, toRef, nextTick, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, markRaw, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, withKeys, unref, withModifiers, createBlock, toDisplayString, vModelText, createVNode, renderList, withCtx } from "vue";
|
|
2
|
-
import { p as process$1 } from "./converter-
|
|
3
|
-
import { g as global$1, _ as _export_sfc, u as useHighContrastMode } from "./editor-
|
|
2
|
+
import { p as process$1 } from "./converter-ByybZRFp.js";
|
|
3
|
+
import { g as global$1, _ as _export_sfc, u as useHighContrastMode } from "./editor-Cu4hD14N.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-Cu4hD14N.js";
|
|
2
|
+
import "./chunks/converter-ByybZRFp.js";
|
|
3
|
+
import "./chunks/docx-zipper-CFQANTLI.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 _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, 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 shouldBypassContextMenu, S as SlashMenuPluginKey, m as generateRulerDefinition, n as clampHandlePosition, o as calculateMarginFromHandle, p as measureCache, q as isHeadless, E as Editor, t as getStarterExtensions, P as PresentationEditor, v as Placeholder, w as getRichTextExtensions, D as DecorationSet, x as Decoration, M as Mark, z as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
15
|
-
import { F, I, G, T, B, H, C } 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, a8 as pixelsToTwips, aP as getFileObject, P as PluginKey, a as Plugin } from "./chunks/converter-ByybZRFp.js";
|
|
13
|
+
import { ac, i, a9, aQ } from "./chunks/converter-ByybZRFp.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 generateRulerDefinition, n as clampHandlePosition, o as calculateMarginFromHandle, p as measureCache, q as isHeadless, E as Editor, t as getStarterExtensions, P as PresentationEditor, v as Placeholder, w as getRichTextExtensions, D as DecorationSet, x as Decoration, M as Mark, z as Extension, A as Attribute, N as Node } from "./chunks/editor-Cu4hD14N.js";
|
|
15
|
+
import { F, I, G, T, B, H, C } from "./chunks/editor-Cu4hD14N.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-5MMla0sj.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-CFQANTLI.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
var hasRequiredEventemitter3;
|
|
@@ -4071,9 +4071,9 @@ function getItems(context, customItems = [], includeDefaultItems = true) {
|
|
|
4071
4071
|
action: (editor2) => {
|
|
4072
4072
|
editor2.commands.createDocumentSection();
|
|
4073
4073
|
},
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
return
|
|
4074
|
+
showWhen: (context2) => {
|
|
4075
|
+
const { trigger } = context2;
|
|
4076
|
+
return trigger === TRIGGERS.click;
|
|
4077
4077
|
}
|
|
4078
4078
|
},
|
|
4079
4079
|
{
|
|
@@ -4411,31 +4411,19 @@ const _sfc_main$8 = {
|
|
|
4411
4411
|
return;
|
|
4412
4412
|
}
|
|
4413
4413
|
event.preventDefault();
|
|
4414
|
-
|
|
4415
|
-
const hasRangeSelection = editorState?.selection?.from !== editorState?.selection?.to;
|
|
4416
|
-
let isClickInsideSelection = false;
|
|
4417
|
-
if (hasRangeSelection && Number.isFinite(event.clientX) && Number.isFinite(event.clientY)) {
|
|
4418
|
-
const hit = props.editor?.posAtCoords?.({ left: event.clientX, top: event.clientY });
|
|
4419
|
-
if (typeof hit?.pos === "number") {
|
|
4420
|
-
const { from, to } = editorState.selection;
|
|
4421
|
-
isClickInsideSelection = hit.pos >= from && hit.pos <= to;
|
|
4422
|
-
}
|
|
4423
|
-
}
|
|
4424
|
-
if (!isClickInsideSelection) {
|
|
4425
|
-
moveCursorToMouseEvent(event, props.editor);
|
|
4426
|
-
}
|
|
4414
|
+
moveCursorToMouseEvent(event, props.editor);
|
|
4427
4415
|
try {
|
|
4428
4416
|
const context = await getEditorContext(props.editor, event);
|
|
4429
4417
|
currentContext.value = context;
|
|
4430
4418
|
sections.value = getItems({ ...context, trigger: "click" });
|
|
4431
4419
|
selectedId.value = flattenedItems.value[0]?.id || null;
|
|
4432
4420
|
searchQuery.value = "";
|
|
4433
|
-
const
|
|
4434
|
-
if (!
|
|
4421
|
+
const state = props.editor.state;
|
|
4422
|
+
if (!state) return;
|
|
4435
4423
|
props.editor.dispatch(
|
|
4436
|
-
|
|
4424
|
+
state.tr.setMeta(SlashMenuPluginKey, {
|
|
4437
4425
|
type: "open",
|
|
4438
|
-
pos: context?.pos ??
|
|
4426
|
+
pos: context?.pos ?? state.selection.from,
|
|
4439
4427
|
clientX: event.clientX,
|
|
4440
4428
|
clientY: event.clientY
|
|
4441
4429
|
})
|
|
@@ -4448,21 +4436,12 @@ const _sfc_main$8 = {
|
|
|
4448
4436
|
if (props.editor) {
|
|
4449
4437
|
item.action ? await item.action(props.editor, currentContext.value) : null;
|
|
4450
4438
|
if (item.component) {
|
|
4451
|
-
|
|
4439
|
+
menuRef.value;
|
|
4452
4440
|
const componentProps = getPropsByItemId(item.id, props);
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
if (container) {
|
|
4458
|
-
const containerRect = container.getBoundingClientRect();
|
|
4459
|
-
popoverPosition = {
|
|
4460
|
-
left: `${menuRect.left - containerRect.left}px`,
|
|
4461
|
-
top: `${menuRect.top - containerRect.top}px`
|
|
4462
|
-
};
|
|
4463
|
-
}
|
|
4464
|
-
}
|
|
4465
|
-
props.openPopover(markRaw(item.component), componentProps, popoverPosition);
|
|
4441
|
+
props.openPopover(markRaw(item.component), componentProps, {
|
|
4442
|
+
left: menuPosition.value.left,
|
|
4443
|
+
top: menuPosition.value.top
|
|
4444
|
+
});
|
|
4466
4445
|
closeMenu({ restoreCursor: false });
|
|
4467
4446
|
} else {
|
|
4468
4447
|
const shouldRestoreCursor = item.id !== "paste";
|
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-Cve8WKfM.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-S9Kp_7dy.es.js";
|
|
2
2
|
import "./chunks/vue-BuPTonTJ.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-Cve8WKfM.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-Djmhr-R6.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-S9Kp_7dy.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-mHanL4xN.es.js";
|
|
3
3
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
4
4
|
export {
|
|
5
5
|
a as AnnotatorHelpers,
|