@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.
@@ -1 +1 @@
1
- {"version":3,"file":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"AAcA;IAgKE,yBAiCC;IAhMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOE;IA4JA,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;IA+CD;;;OAGG;IACH,2BAmCC;IAED,4BAEE;IAaA,eAAmD;IACnD,eAAmD;IAGrD;;OAEG;IACH;;;aAGC;IAED;;;;;OAKG;IACH,0CAoBC;;CAYF;yBAhYwB,eAAe"}
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,4 +1,4 @@
1
- import { B } from "./chunks/converter-D38BagOs.js";
1
+ import { B } from "./chunks/converter-BR-knbS4.js";
2
2
  export {
3
3
  B as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-D38BagOs.js";
2
- import { D } from "./chunks/docx-zipper-OU0T3wnQ.js";
1
+ import "./chunks/converter-BR-knbS4.js";
2
+ import { D } from "./chunks/docx-zipper-DJsv25nh.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-DFibABN8.js";
2
- import "./chunks/converter-D38BagOs.js";
3
- import "./chunks/docx-zipper-OU0T3wnQ.js";
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
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-OU0T3wnQ.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-DJsv25nh.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, 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-DFibABN8.js";
13
- import { j, l, i, k } from "./chunks/editor-DFibABN8.js";
14
- import { J as getDefaultExportFromCjs, v as v4, T as TextSelection, L as vClickOutside } from "./chunks/converter-D38BagOs.js";
15
- import { B } from "./chunks/converter-D38BagOs.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-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-D5mDT387.js";
18
- import { D } from "./chunks/docx-zipper-OU0T3wnQ.js";
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 = "top left";
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: percent });
1758
+ __privateGet(this, _interceptedCommands).setZoom({ item, argument: percent_int });
1760
1759
  }
1761
1760
  /**
1762
1761
  * The toolbar expects an active Super Editor instance.