@harbour-enterprises/superdoc 0.6.8 → 0.6.9
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-C2Mpe7zw.js → super-editor.es-VsuCS394.js} +7 -8
- package/dist/chunks/{super-editor.es-C2Mpe7zw.js.map → super-editor.es-VsuCS394.js.map} +1 -1
- package/dist/super-editor/chunks/{converter-D38BagOs.js → converter-BR-knbS4.js} +3 -3
- package/dist/super-editor/chunks/{converter-D38BagOs.js.map → converter-BR-knbS4.js.map} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-OU0T3wnQ.js → docx-zipper-DJsv25nh.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-OU0T3wnQ.js.map → docx-zipper-DJsv25nh.js.map} +1 -1
- package/dist/super-editor/chunks/{editor-DFibABN8.js → editor-QlvYpBj1.js} +4 -4
- package/dist/super-editor/chunks/{editor-DFibABN8.js.map → editor-QlvYpBj1.js.map} +1 -1
- package/dist/super-editor/chunks/{toolbar-D5mDT387.js → toolbar-CJM6hhnN.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-D5mDT387.js.map → toolbar-CJM6hhnN.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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"AAcA;
|
|
1
|
+
{"version":3,"file":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"AAcA;IAiKE,yBAiCC;IAjMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOE;IA6JA,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;IA+CD;;;OAGG;IACH,2BAmCC;IAED,4BAEE;IAaA,eAAmD;IACnD,eAAmD;IAGrD;;OAEG;IACH;;;aAGC;IAED;;;;;OAKG;IACH,0CAoBC;;CAYF;yBAhYwB,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-QlvYpBj1.js";
|
|
2
|
+
import "./chunks/converter-BR-knbS4.js";
|
|
3
|
+
import "./chunks/docx-zipper-DJsv25nh.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, 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-QlvYpBj1.js";
|
|
13
|
+
import { j, l, i, k } from "./chunks/editor-QlvYpBj1.js";
|
|
14
|
+
import { J as getDefaultExportFromCjs, v as v4, T as TextSelection, L as vClickOutside } from "./chunks/converter-BR-knbS4.js";
|
|
15
|
+
import { B } from "./chunks/converter-BR-knbS4.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-CJM6hhnN.js";
|
|
18
|
+
import { D } from "./chunks/docx-zipper-DJsv25nh.js";
|
|
19
19
|
import { createZip } from "./file-zipper.es.js";
|
|
20
20
|
var eventemitter3 = { exports: {} };
|
|
21
21
|
(function(module) {
|
|
@@ -1615,10 +1615,10 @@ class SuperToolbar extends EventEmitter {
|
|
|
1615
1615
|
const isMobileDevice = typeof screen.orientation !== "undefined";
|
|
1616
1616
|
const isSmallScreen = window.matchMedia("(max-width: 834px)").matches;
|
|
1617
1617
|
if (isMobileDevice && isSmallScreen) {
|
|
1618
|
-
layers.style.transformOrigin = "
|
|
1618
|
+
layers.style.transformOrigin = "0 0";
|
|
1619
1619
|
layers.style.transform = `scale(${parseInt(argument) / 100})`;
|
|
1620
1620
|
} else {
|
|
1621
|
-
layers.style.zoom = argument;
|
|
1621
|
+
layers.style.zoom = parseInt(argument) / 100;
|
|
1622
1622
|
}
|
|
1623
1623
|
},
|
|
1624
1624
|
setDocumentMode: ({ item, argument }) => {
|
|
@@ -1753,10 +1753,9 @@ class SuperToolbar extends EventEmitter {
|
|
|
1753
1753
|
console.debug("[🎨 super-toolbar]", ...args);
|
|
1754
1754
|
}
|
|
1755
1755
|
setZoom(percent_int) {
|
|
1756
|
-
const percent = percent_int / 100;
|
|
1757
1756
|
const allItems = [...this.toolbarItems, ...this.overflowItems];
|
|
1758
1757
|
const item = allItems.find((item2) => item2.name.value === "zoom");
|
|
1759
|
-
__privateGet(this, _interceptedCommands).setZoom({ item, argument:
|
|
1758
|
+
__privateGet(this, _interceptedCommands).setZoom({ item, argument: percent_int });
|
|
1760
1759
|
}
|
|
1761
1760
|
/**
|
|
1762
1761
|
* The toolbar expects an active Super Editor instance.
|