@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.
@@ -1 +1 @@
1
- {"version":3,"file":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"AAaA;IA4JE,yBAiCC;IA5LD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOE;IAwJA,oBAAsB;IACtB,qBAAuB;IACvB,qBAA6B;IAC7B,WAAkC;IAClC,cAA+B;IAC/B,UAAmC;IAkBnC,gCAA6B;IAGrB,uQAAiC;IACzC,kBAAyC;IAI3C,0BAEC;IAED,gCAKC;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
+ {"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,4 +1,4 @@
1
- import { B } from "./chunks/converter-DYxnABsy.js";
1
+ import { B } from "./chunks/converter-Dhi_7psq.js";
2
2
  export {
3
3
  B as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-DYxnABsy.js";
2
- import { D } from "./chunks/docx-zipper-B_HwL9p7.js";
1
+ import "./chunks/converter-Dhi_7psq.js";
2
+ import { D } from "./chunks/docx-zipper-BqbYEiVL.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-BMjT8hYC.js";
2
- import "./chunks/converter-DYxnABsy.js";
3
- import "./chunks/docx-zipper-B_HwL9p7.js";
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
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-B_HwL9p7.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-BqbYEiVL.js";
2
2
  async function createZip(blobs, fileNames) {
3
3
  const zip = new JSZip();
4
4
  blobs.forEach((blob, index) => {
@@ -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-BMjT8hYC.js";
13
- import { j, l, i, k } from "./chunks/editor-BMjT8hYC.js";
14
- import { J as getDefaultExportFromCjs, v as v4, T as TextSelection, L as vClickOutside } from "./chunks/converter-DYxnABsy.js";
15
- import { B } from "./chunks/converter-DYxnABsy.js";
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-Cb_Hql6-.js";
18
- import { D } from "./chunks/docx-zipper-B_HwL9p7.js";
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 = "top left";
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: percent });
1685
+ __privateGet(this, _interceptedCommands).setZoom({ item, argument: percent_int });
1687
1686
  }
1688
1687
  /**
1689
1688
  * The toolbar expects an active Super Editor instance.