@harbour-enterprises/superdoc 0.5.20 → 0.5.22
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-5EQNVGTw.js → super-editor.es-3mbMN6xT.js} +2015 -2362
- package/dist/chunks/super-editor.es-3mbMN6xT.js.map +1 -0
- package/dist/super-editor/chunks/{converter-DYxnABsy.js → converter-Dhi_7psq.js} +1937 -2283
- package/dist/super-editor/chunks/{converter-DYxnABsy.js.map → converter-Dhi_7psq.js.map} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-B_HwL9p7.js → docx-zipper-BqbYEiVL.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-B_HwL9p7.js.map → docx-zipper-BqbYEiVL.js.map} +1 -1
- package/dist/super-editor/chunks/{editor-BMjT8hYC.js → editor-6teeJSor.js} +4 -4
- package/dist/super-editor/chunks/{editor-BMjT8hYC.js.map → editor-6teeJSor.js.map} +1 -1
- package/dist/super-editor/chunks/{toolbar-Cb_Hql6-.js → toolbar-BkdzP-0e.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-Cb_Hql6-.js.map → toolbar-BkdzP-0e.js.map} +1 -1
- package/dist/super-editor/components/toolbar/super-toolbar.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 +9 -10
- 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/package.json +1 -1
- package/dist/chunks/super-editor.es-5EQNVGTw.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"AAaA;
|
|
1
|
+
{"version":3,"file":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"AAaA;IA6JE,yBAiCC;IA7LD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOE;IAyJA,oBAAsB;IACtB,qBAAuB;IACvB,qBAA6B;IAC7B,WAAkC;IAClC,cAA+B;IAC/B,UAAmC;IAkBnC,gCAA6B;IAGrB,uQAAiC;IACzC,kBAAyC;IAI3C,0BAEC;IAED,gCAIC;IAED;;;OAGG;IACH,wBAFW,GAAC,QAKX;IAED,6CAEC;IAkBD;;;OAGG;IACH,2BAkCC;IAED,4BAEE;IAaA,eAAmD;IACnD,eAAmD;IAGrD;;OAEG;IACH;;;aAGC;IAED;;;;;OAKG;IACH,0CAoBC;;CAYF;yBA7VwB,eAAe"}
|
|
@@ -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-6teeJSor.js";
|
|
2
|
+
import "./chunks/converter-Dhi_7psq.js";
|
|
3
|
+
import "./chunks/docx-zipper-BqbYEiVL.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, 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, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions } from "./chunks/editor-
|
|
13
|
-
import { j, l, i, k } from "./chunks/editor-
|
|
14
|
-
import { J as getDefaultExportFromCjs, v as v4, T as TextSelection, L 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, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions } from "./chunks/editor-6teeJSor.js";
|
|
13
|
+
import { j, l, i, k } from "./chunks/editor-6teeJSor.js";
|
|
14
|
+
import { J as getDefaultExportFromCjs, v as v4, T as TextSelection, L as vClickOutside } from "./chunks/converter-Dhi_7psq.js";
|
|
15
|
+
import { B } from "./chunks/converter-Dhi_7psq.js";
|
|
16
16
|
import { ref, computed, onMounted, createElementBlock, openBlock, Fragment, renderList, withModifiers, createElementVNode, createCommentVNode, normalizeStyle, unref, getCurrentInstance, watch, withDirectives, withKeys, normalizeClass, vModelText, createTextVNode, toDisplayString, h, createApp, reactive, onUnmounted, shallowRef, onBeforeUnmount, createBlock, createVNode } 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-BkdzP-0e.js";
|
|
18
|
+
import { D } from "./chunks/docx-zipper-BqbYEiVL.js";
|
|
19
19
|
import { createZip } from "./file-zipper.es.js";
|
|
20
20
|
var eventemitter3 = { exports: {} };
|
|
21
21
|
(function(module) {
|
|
@@ -1545,10 +1545,10 @@ class SuperToolbar extends EventEmitter {
|
|
|
1545
1545
|
const isMobileDevice = typeof screen.orientation !== "undefined";
|
|
1546
1546
|
const isSmallScreen = window.matchMedia("(max-width: 834px)").matches;
|
|
1547
1547
|
if (isMobileDevice && isSmallScreen) {
|
|
1548
|
-
layers.style.transformOrigin = "
|
|
1548
|
+
layers.style.transformOrigin = "0 0";
|
|
1549
1549
|
layers.style.transform = `scale(${parseInt(argument) / 100})`;
|
|
1550
1550
|
} else {
|
|
1551
|
-
layers.style.zoom = argument;
|
|
1551
|
+
layers.style.zoom = parseInt(argument) / 100;
|
|
1552
1552
|
}
|
|
1553
1553
|
},
|
|
1554
1554
|
setDocumentMode: ({ item, argument }) => {
|
|
@@ -1680,10 +1680,9 @@ class SuperToolbar extends EventEmitter {
|
|
|
1680
1680
|
console.debug("[🎨 super-toolbar]", ...args);
|
|
1681
1681
|
}
|
|
1682
1682
|
setZoom(percent_int) {
|
|
1683
|
-
const percent = percent_int / 100;
|
|
1684
1683
|
const allItems = [...this.toolbarItems, ...this.overflowItems];
|
|
1685
1684
|
const item = allItems.find((item2) => item2.name.value === "zoom");
|
|
1686
|
-
__privateGet(this, _interceptedCommands).setZoom({ item, argument:
|
|
1685
|
+
__privateGet(this, _interceptedCommands).setZoom({ item, argument: percent_int });
|
|
1687
1686
|
}
|
|
1688
1687
|
/**
|
|
1689
1688
|
* The toolbar expects an active Super Editor instance.
|