@harbour-enterprises/superdoc 0.6.70 → 0.6.71
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/{super-editor.es-DVRz39XI.js → super-editor.es-BUMY9Cd4.js} +10 -7
- package/dist/chunks/{super-editor.es-DVRz39XI.js.map → super-editor.es-BUMY9Cd4.js.map} +1 -1
- package/dist/super-editor/chunks/{converter-I8JdE7HU.js → converter-1QXEw9Qk.js} +3 -3
- package/dist/super-editor/chunks/{converter-I8JdE7HU.js.map → converter-1QXEw9Qk.js.map} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-DC37EYJa.js → docx-zipper-C6o6HqN9.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-DC37EYJa.js.map → docx-zipper-C6o6HqN9.js.map} +1 -1
- package/dist/super-editor/chunks/{editor-BCumoYP9.js → editor-Cm36OuLj.js} +4 -4
- package/dist/super-editor/chunks/{editor-BCumoYP9.js.map → editor-Cm36OuLj.js.map} +1 -1
- package/dist/super-editor/chunks/{toolbar-BwhXPgCT.js → toolbar-CWA2GsMH.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-BwhXPgCT.js.map → toolbar-CWA2GsMH.js.map} +1 -1
- package/dist/super-editor/components/toolbar/defaultItems.d.ts.map +1 -1
- 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 +12 -9
- package/dist/super-editor/super-editor.es.js.map +1 -1
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +10 -7
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultItems.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/defaultItems.js"],"names":[],"mappings":"AAkBO;;;
|
|
1
|
+
{"version":3,"file":"defaultItems.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/defaultItems.js"],"names":[],"mappings":"AAkBO;;;EAm5BN;AAEM,sEAEJ;;;CAAuB,UASvB"}
|
|
@@ -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-Cm36OuLj.js";
|
|
2
|
+
import "./chunks/converter-1QXEw9Qk.js";
|
|
3
|
+
import "./chunks/docx-zipper-C6o6HqN9.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -9,13 +9,13 @@ 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 _interceptedCommands, _SuperToolbar_instances, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions } from "./chunks/editor-
|
|
13
|
-
import { k, m, j, l } from "./chunks/editor-
|
|
14
|
-
import { L as getDefaultExportFromCjs, v as v4, T as TextSelection, Q as vClickOutside } from "./chunks/converter-
|
|
15
|
-
import { B } from "./chunks/converter-
|
|
12
|
+
import { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions } from "./chunks/editor-Cm36OuLj.js";
|
|
13
|
+
import { k, m, j, l } from "./chunks/editor-Cm36OuLj.js";
|
|
14
|
+
import { L as getDefaultExportFromCjs, v as v4, T as TextSelection, Q as vClickOutside } from "./chunks/converter-1QXEw9Qk.js";
|
|
15
|
+
import { B } from "./chunks/converter-1QXEw9Qk.js";
|
|
16
16
|
import { ref, createElementBlock, openBlock, createElementVNode, unref, getCurrentInstance, computed, watch, onMounted, createCommentVNode, withDirectives, withKeys, normalizeClass, withModifiers, vModelText, createTextVNode, toDisplayString, Fragment, renderList, normalizeStyle, createVNode, h, createApp, reactive, onUnmounted, shallowRef, onBeforeUnmount, createBlock } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-
|
|
18
|
-
import { D } from "./chunks/docx-zipper-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-CWA2GsMH.js";
|
|
18
|
+
import { D } from "./chunks/docx-zipper-C6o6HqN9.js";
|
|
19
19
|
import { createZip } from "./file-zipper.es.js";
|
|
20
20
|
var eventemitter3 = { exports: {} };
|
|
21
21
|
(function(module) {
|
|
@@ -1458,11 +1458,13 @@ const makeDefaultItems = (superToolbar, isDev = false, windowWidth, role, toolba
|
|
|
1458
1458
|
});
|
|
1459
1459
|
const getDocumentOptionsAfterRole = (role2, documentOptions2) => {
|
|
1460
1460
|
if (role2 === "editor") return documentOptions2;
|
|
1461
|
-
else if (role2 === "
|
|
1461
|
+
else if (role2 === "suggester") return documentOptions2.filter((option) => option.value === "suggesting");
|
|
1462
|
+
else return documentOptions2.filter((option) => option.value === "viewing");
|
|
1462
1463
|
};
|
|
1463
1464
|
const getDefaultLabel = (role2) => {
|
|
1464
1465
|
if (role2 === "editor") return "Editing";
|
|
1465
|
-
if (role2 === "
|
|
1466
|
+
else if (role2 === "suggester") return "Suggesting";
|
|
1467
|
+
else return "Viewing";
|
|
1466
1468
|
};
|
|
1467
1469
|
const documentMode = useToolbarItem({
|
|
1468
1470
|
type: "dropdown",
|
|
@@ -1472,12 +1474,13 @@ const makeDefaultItems = (superToolbar, isDev = false, windowWidth, role, toolba
|
|
|
1472
1474
|
icon: toolbarIcons2.documentMode,
|
|
1473
1475
|
defaultLabel: getDefaultLabel(role),
|
|
1474
1476
|
label: getDefaultLabel(role),
|
|
1475
|
-
hasCaret:
|
|
1477
|
+
hasCaret: role === "editor",
|
|
1476
1478
|
isWide: true,
|
|
1477
1479
|
style: { display: "flex", justifyContent: "flex-end" },
|
|
1478
1480
|
inlineTextInputVisible: false,
|
|
1479
1481
|
hasInlineTextInput: false,
|
|
1480
1482
|
group: "right",
|
|
1483
|
+
disabled: role !== "editor",
|
|
1481
1484
|
attributes: {
|
|
1482
1485
|
dropdownPosition: "right",
|
|
1483
1486
|
className: "toolbar-item--doc-mode"
|