@harbour-enterprises/superdoc 0.7.1 → 0.7.2

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.
Files changed (24) hide show
  1. package/dist/chunks/{super-editor.es-C3EfxPkJ.js → super-editor.es-CaEMYSNH.js} +11 -6
  2. package/dist/chunks/{super-editor.es-C3EfxPkJ.js.map → super-editor.es-CaEMYSNH.js.map} +1 -1
  3. package/dist/style.css +4 -4
  4. package/dist/super-editor/chunks/{converter-ei3PNE_E.js → converter-I-9J-iGd.js} +3 -3
  5. package/dist/super-editor/chunks/{converter-ei3PNE_E.js.map → converter-I-9J-iGd.js.map} +1 -1
  6. package/dist/super-editor/chunks/{docx-zipper-B7uIfmYn.js → docx-zipper-D_7tmb71.js} +2 -2
  7. package/dist/super-editor/chunks/{docx-zipper-B7uIfmYn.js.map → docx-zipper-D_7tmb71.js.map} +1 -1
  8. package/dist/super-editor/chunks/{editor-Bggv0Jux.js → editor-9uvP8PI9.js} +4 -4
  9. package/dist/super-editor/chunks/{editor-Bggv0Jux.js.map → editor-9uvP8PI9.js.map} +1 -1
  10. package/dist/super-editor/chunks/{toolbar-DLqRjwsa.js → toolbar-D0vUE7AB.js} +10 -5
  11. package/dist/super-editor/chunks/toolbar-D0vUE7AB.js.map +1 -0
  12. package/dist/super-editor/converter.es.js +1 -1
  13. package/dist/super-editor/docx-zipper.es.js +2 -2
  14. package/dist/super-editor/editor.es.js +3 -3
  15. package/dist/super-editor/file-zipper.es.js +1 -1
  16. package/dist/super-editor/style.css +4 -4
  17. package/dist/super-editor/super-editor.es.js +6 -6
  18. package/dist/super-editor/toolbar.es.js +2 -2
  19. package/dist/super-editor.es.js +1 -1
  20. package/dist/superdoc.es.js +3 -3
  21. package/dist/superdoc.umd.js +11 -6
  22. package/dist/superdoc.umd.js.map +1 -1
  23. package/package.json +1 -1
  24. package/dist/super-editor/chunks/toolbar-DLqRjwsa.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { C } from "./chunks/converter-ei3PNE_E.js";
1
+ import { C } from "./chunks/converter-I-9J-iGd.js";
2
2
  export {
3
3
  C as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-ei3PNE_E.js";
2
- import { D } from "./chunks/docx-zipper-B7uIfmYn.js";
1
+ import "./chunks/converter-I-9J-iGd.js";
2
+ import { D } from "./chunks/docx-zipper-D_7tmb71.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-Bggv0Jux.js";
2
- import "./chunks/converter-ei3PNE_E.js";
3
- import "./chunks/docx-zipper-B7uIfmYn.js";
1
+ import { E } from "./chunks/editor-9uvP8PI9.js";
2
+ import "./chunks/converter-I-9J-iGd.js";
3
+ import "./chunks/docx-zipper-D_7tmb71.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-B7uIfmYn.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-D_7tmb71.js";
2
2
  async function createZip(blobs, fileNames) {
3
3
  const zip = new JSZip();
4
4
  blobs.forEach((blob, index) => {
@@ -200,10 +200,10 @@
200
200
  background-color: #c8d0d8;
201
201
  }
202
202
 
203
- .overflow-menu[data-v-10f649f8] {
203
+ .overflow-menu[data-v-ca29bf1d] {
204
204
  position: relative;
205
205
  }
206
- .overflow-menu_items[data-v-10f649f8] {
206
+ .overflow-menu_items[data-v-ca29bf1d] {
207
207
  position: absolute;
208
208
  width: 200px;
209
209
  top: calc(100% + 3px);
@@ -215,13 +215,13 @@
215
215
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
216
216
  box-sizing: border-box;
217
217
  }
218
- .superdoc-toolbar-overflow[data-v-10f649f8] {
218
+ .superdoc-toolbar-overflow[data-v-ca29bf1d] {
219
219
  min-width: auto !important;
220
220
  max-width: 200px;
221
221
  flex-wrap: wrap;
222
222
  }
223
223
  @media (max-width: 300px) {
224
- .overflow-menu_items[data-v-10f649f8] {
224
+ .overflow-menu_items[data-v-ca29bf1d] {
225
225
  right: auto;
226
226
  left: 0;
227
227
  transform: translateX(-50%);
@@ -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-Bggv0Jux.js";
13
- import { k, m, j, l } from "./chunks/editor-Bggv0Jux.js";
14
- import { O as getDefaultExportFromCjs, v as v4, T as TextSelection, U as vClickOutside } from "./chunks/converter-ei3PNE_E.js";
15
- import { C } from "./chunks/converter-ei3PNE_E.js";
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-9uvP8PI9.js";
13
+ import { k, m, j, l } from "./chunks/editor-9uvP8PI9.js";
14
+ import { O as getDefaultExportFromCjs, v as v4, T as TextSelection, U as vClickOutside } from "./chunks/converter-I-9J-iGd.js";
15
+ import { C } from "./chunks/converter-I-9J-iGd.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-DLqRjwsa.js";
18
- import { D } from "./chunks/docx-zipper-B7uIfmYn.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-D0vUE7AB.js";
18
+ import { D } from "./chunks/docx-zipper-D_7tmb71.js";
19
19
  import { createZip } from "./file-zipper.es.js";
20
20
  var eventemitter3 = { exports: {} };
21
21
  (function(module) {
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-DLqRjwsa.js";
3
- import "./chunks/editor-Bggv0Jux.js";
2
+ import { T } from "./chunks/toolbar-D0vUE7AB.js";
3
+ import "./chunks/editor-9uvP8PI9.js";
4
4
  export {
5
5
  T as default
6
6
  };
@@ -1,4 +1,4 @@
1
- import { _, D, E, S, a, b, c, T, d, i, g, e, f, h, j, k, l } from "./chunks/super-editor.es-C3EfxPkJ.js";
1
+ import { _, D, E, S, a, b, c, T, d, i, g, e, f, h, j, k, l } from "./chunks/super-editor.es-CaEMYSNH.js";
2
2
  import "./chunks/vue-BjMDYCe1.js";
3
3
  export {
4
4
  _ as BasicUpload,
@@ -1,5 +1,5 @@
1
- import { E as Editor, h as getRichTextExtensions, b as SuperInput, a as SuperEditor, c as SuperToolbar, d as createZip } from "./chunks/super-editor.es-C3EfxPkJ.js";
2
- import { S, i, k, l } from "./chunks/super-editor.es-C3EfxPkJ.js";
1
+ import { E as Editor, h as getRichTextExtensions, b as SuperInput, a as SuperEditor, c as SuperToolbar, d as createZip } from "./chunks/super-editor.es-CaEMYSNH.js";
2
+ import { S, i, k, l } from "./chunks/super-editor.es-CaEMYSNH.js";
3
3
  import { Y as effectScope, r as ref, Z as markRaw, p as process$1, _ as toRaw, a as computed, $ as isRef, a0 as isReactive, C as toRef, i as inject, q as getCurrentInstance, l as watch, x as unref, a1 as hasInjectionContext, L as reactive, R as nextTick, a2 as getCurrentScope, a3 as onScopeDispose, a4 as toRefs, g as global$1, N as shallowRef, M as readonly, j as onMounted, k as onBeforeUnmount, h as onBeforeMount, U as onActivated, s as onDeactivated, z as createTextVNode, F as Fragment, Q as Comment, m as defineComponent, D as provide, G as withDirectives, B as h, V as Teleport, S as renderSlot, W as isVNode, K as watchEffect, O as Transition, E as mergeProps, P as vShow, J as cloneVNode, T as Text, b as createElementBlock, o as openBlock, t as toDisplayString, v as createVNode, y as withCtx, f as createBaseVNode, A as normalizeStyle, e as createCommentVNode, u as createBlock, w as withModifiers, n as normalizeClass, a5 as resolveDirective, d as renderList, c as createApp, a6 as resolveDynamicComponent } from "./chunks/vue-BjMDYCe1.js";
4
4
  import { B as Buffer$2 } from "./chunks/jszip-Df6uKve1.js";
5
5
  import { b } from "./chunks/blank-docx-BagxM198.js";
@@ -45823,7 +45823,7 @@ class SuperDoc extends EventEmitter {
45823
45823
  this.config.colors = shuffleArray(this.config.colors);
45824
45824
  this.userColorMap = /* @__PURE__ */ new Map();
45825
45825
  this.colorIndex = 0;
45826
- this.version = "0.7.1";
45826
+ this.version = "0.7.2";
45827
45827
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
45828
45828
  this.superdocId = config.superdocId || v4();
45829
45829
  this.colors = this.config.colors;
@@ -27978,7 +27978,7 @@
27978
27978
  return;
27979
27979
  }
27980
27980
  }
27981
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.7.1") {
27981
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.7.2") {
27982
27982
  const customLocation = "docProps/custom.xml";
27983
27983
  if (!docx[customLocation]) {
27984
27984
  docx[customLocation] = generateCustomXml();
@@ -28251,7 +28251,7 @@
28251
28251
  function generateCustomXml() {
28252
28252
  return DEFAULT_CUSTOM_XML;
28253
28253
  }
28254
- function generateSuperdocVersion(pid = 2, version2 = "0.7.1") {
28254
+ function generateSuperdocVersion(pid = 2, version2 = "0.7.2") {
28255
28255
  return {
28256
28256
  type: "element",
28257
28257
  name: "property",
@@ -42479,7 +42479,7 @@
42479
42479
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
42480
42480
  */
42481
42481
  processCollaborationMigrations() {
42482
- console.debug("[checkVersionMigrations] Current editor version", "0.7.1");
42482
+ console.debug("[checkVersionMigrations] Current editor version", "0.7.2");
42483
42483
  if (!this.options.ydoc) return;
42484
42484
  const metaMap = this.options.ydoc.getMap("meta");
42485
42485
  let docVersion = metaMap.get("version");
@@ -53680,7 +53680,12 @@
53680
53680
  },
53681
53681
  setup(__props) {
53682
53682
  const { proxy } = getCurrentInstance();
53683
+ const props = __props;
53683
53684
  const isDropdownOpened = ref$1(false);
53685
+ const overflowToolbarItem = computed(() => ({
53686
+ ...props.toolbarItem,
53687
+ active: isDropdownOpened
53688
+ }));
53684
53689
  const toggleOverflowMenu = () => {
53685
53690
  isDropdownOpened.value = !isDropdownOpened.value;
53686
53691
  };
@@ -53691,7 +53696,7 @@
53691
53696
  return openBlock(), createElementBlock("div", _hoisted_1$1$2, [
53692
53697
  createBaseVNode("div", _hoisted_2$1$2, [
53693
53698
  createVNode(ToolbarButton, {
53694
- "toolbar-item": __props.toolbarItem,
53699
+ "toolbar-item": overflowToolbarItem.value,
53695
53700
  onButtonClick: toggleOverflowMenu
53696
53701
  }, null, 8, ["toolbar-item"])
53697
53702
  ]),
@@ -53706,7 +53711,7 @@
53706
53711
  };
53707
53712
  }
53708
53713
  };
53709
- const OverflowMenu = /* @__PURE__ */ _export_sfc$1(_sfc_main$2$2, [["__scopeId", "data-v-10f649f8"]]);
53714
+ const OverflowMenu = /* @__PURE__ */ _export_sfc$1(_sfc_main$2$2, [["__scopeId", "data-v-ca29bf1d"]]);
53710
53715
  function plugin$1$1(options2) {
53711
53716
  let _bPrefix = ".";
53712
53717
  let _ePrefix = "__";
@@ -110781,7 +110786,7 @@ ${style2}
110781
110786
  this.config.colors = shuffleArray(this.config.colors);
110782
110787
  this.userColorMap = /* @__PURE__ */ new Map();
110783
110788
  this.colorIndex = 0;
110784
- this.version = "0.7.1";
110789
+ this.version = "0.7.2";
110785
110790
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
110786
110791
  this.superdocId = config.superdocId || v4();
110787
110792
  this.colors = this.config.colors;