@harbour-enterprises/superdoc 0.8.8 → 0.8.10

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 (23) hide show
  1. package/dist/chunks/{super-editor.es-Ba_4ysU0.js → super-editor.es-CnpejCPC.js} +19 -5
  2. package/dist/chunks/{super-editor.es-Ba_4ysU0.js.map → super-editor.es-CnpejCPC.js.map} +1 -1
  3. package/dist/super-editor/chunks/{converter-ZgWJ7l96.js → converter-B5SRaBp5.js} +3 -3
  4. package/dist/super-editor/chunks/{converter-ZgWJ7l96.js.map → converter-B5SRaBp5.js.map} +1 -1
  5. package/dist/super-editor/chunks/{docx-zipper-DUr0Uq0b.js → docx-zipper-fdMcchlI.js} +2 -2
  6. package/dist/super-editor/chunks/{docx-zipper-DUr0Uq0b.js.map → docx-zipper-fdMcchlI.js.map} +1 -1
  7. package/dist/super-editor/chunks/{editor-DjQsrRB0.js → editor-nlt5JeOJ.js} +19 -5
  8. package/dist/super-editor/chunks/editor-nlt5JeOJ.js.map +1 -0
  9. package/dist/super-editor/chunks/{toolbar-BTL8rdbG.js → toolbar-COfngBDY.js} +3 -3
  10. package/dist/super-editor/chunks/{toolbar-BTL8rdbG.js.map → toolbar-COfngBDY.js.map} +1 -1
  11. package/dist/super-editor/converter.es.js +1 -1
  12. package/dist/super-editor/docx-zipper.es.js +2 -2
  13. package/dist/super-editor/editor.es.js +3 -3
  14. package/dist/super-editor/extensions/index.d.ts.map +1 -1
  15. package/dist/super-editor/file-zipper.es.js +1 -1
  16. package/dist/super-editor/super-editor.es.js +6 -6
  17. package/dist/super-editor/toolbar.es.js +2 -2
  18. package/dist/super-editor.es.js +1 -1
  19. package/dist/superdoc.es.js +3 -3
  20. package/dist/superdoc.umd.js +19 -5
  21. package/dist/superdoc.umd.js.map +1 -1
  22. package/package.json +1 -1
  23. package/dist/super-editor/chunks/editor-DjQsrRB0.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { C } from "./chunks/converter-ZgWJ7l96.js";
1
+ import { C } from "./chunks/converter-B5SRaBp5.js";
2
2
  export {
3
3
  C as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-ZgWJ7l96.js";
2
- import { D } from "./chunks/docx-zipper-DUr0Uq0b.js";
1
+ import "./chunks/converter-B5SRaBp5.js";
2
+ import { D } from "./chunks/docx-zipper-fdMcchlI.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-DjQsrRB0.js";
2
- import "./chunks/converter-ZgWJ7l96.js";
3
- import "./chunks/docx-zipper-DUr0Uq0b.js";
1
+ import { E } from "./chunks/editor-nlt5JeOJ.js";
2
+ import "./chunks/converter-B5SRaBp5.js";
3
+ import "./chunks/docx-zipper-fdMcchlI.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/extensions/index.js"],"names":[],"mappings":"wBAsBwB,oBAAoB;yBAPnB,qBAAqB;qBACzB,iBAAiB;wBACd,qBAAqB;2BAClB,wBAAwB;4BACvB,yBAAyB;yBAC5B,sBAAsB;0BACrB,sBAAsB;kCAEqB,oBAAoB;gCAApB,oBAAoB;iCAApB,oBAAoB;wBACjE,gBAAgB;0BACH,uBAAuB;0BAAvB,uBAAuB;qBAYvC,iBAAiB;uBACf,mBAAmB;0BAChB,sBAAsB;0BACtB,sBAAsB;uBACzB,mBAAmB;sBAvCpB,kBAAkB;2BACb,wBAAwB;yBAC1B,sBAAsB;0BACrB,uBAAuB;2BACtB,wBAAwB;0BA8BzB,4BAA4B;2BA7B3B,wBAAwB;+BACpB,4BAA4B;+BAuC5B,oBAAoB;0BArCzB,sBAAsB;sBAgB1B,kBAAkB;yBAEf,sBAAsB;0BACrB,uBAAuB;4BAFrB,yBAAyB;4BAqBzB,wBAAwB;2BAvCzB,uBAAuB;gCAqBM,6BAA6B;uCAA7B,6BAA6B;sBAC/D,kBAAkB;8BACV,sBAAsB;8BAiBtB,2BAA2B;wBAhBjC,oBAAoB;8BAtBd,0BAA0B;oCACpB,iCAAiC;6BAsCxC,0BAA0B;4BAPD,0BAA0B;4BAA1B,0BAA0B;4BAA1B,0BAA0B;6BACnD,oBAAoB;oCAWb,0BAA0B;AAwC9D,8CAoDC;AA1FD,+CAoCC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/extensions/index.js"],"names":[],"mappings":"wBAsBwB,oBAAoB;yBAPnB,qBAAqB;qBACzB,iBAAiB;wBACd,qBAAqB;2BAClB,wBAAwB;4BACvB,yBAAyB;yBAC5B,sBAAsB;0BACrB,sBAAsB;kCAEqB,oBAAoB;gCAApB,oBAAoB;iCAApB,oBAAoB;wBACjE,gBAAgB;0BACH,uBAAuB;0BAAvB,uBAAuB;qBAYvC,iBAAiB;uBACf,mBAAmB;0BAChB,sBAAsB;0BACtB,sBAAsB;uBACzB,mBAAmB;sBAvCpB,kBAAkB;2BACb,wBAAwB;yBAC1B,sBAAsB;0BACrB,uBAAuB;2BACtB,wBAAwB;0BA8BzB,4BAA4B;2BA7B3B,wBAAwB;+BACpB,4BAA4B;+BAuC5B,oBAAoB;0BArCzB,sBAAsB;sBAgB1B,kBAAkB;yBAEf,sBAAsB;0BACrB,uBAAuB;4BAFrB,yBAAyB;4BAqBzB,wBAAwB;2BAvCzB,uBAAuB;gCAqBM,6BAA6B;uCAA7B,6BAA6B;sBAC/D,kBAAkB;8BACV,sBAAsB;8BAiBtB,2BAA2B;wBAhBjC,oBAAoB;8BAtBd,0BAA0B;oCACpB,iCAAiC;6BAsCxC,0BAA0B;4BAPD,0BAA0B;4BAA1B,0BAA0B;4BAA1B,0BAA0B;6BACnD,oBAAoB;oCAWb,0BAA0B;AA2C9D,8CAoDC;AA7FD,+CAuCC"}
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-DUr0Uq0b.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-fdMcchlI.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, i as isInTable, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions, j as Extension, A as Attribute, N as Node } from "./chunks/editor-DjQsrRB0.js";
13
- import { C, T, l, n, k, m } from "./chunks/editor-DjQsrRB0.js";
14
- import { O as getDefaultExportFromCjs, v as v4, T as TextSelection, U as vClickOutside, a as Plugin } from "./chunks/converter-ZgWJ7l96.js";
15
- import { C as C2 } from "./chunks/converter-ZgWJ7l96.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, j as Extension, A as Attribute, N as Node } from "./chunks/editor-nlt5JeOJ.js";
13
+ import { C, T, l, n, k, m } from "./chunks/editor-nlt5JeOJ.js";
14
+ import { O as getDefaultExportFromCjs, v as v4, T as TextSelection, U as vClickOutside, a as Plugin } from "./chunks/converter-B5SRaBp5.js";
15
+ import { C as C2 } from "./chunks/converter-B5SRaBp5.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-BTL8rdbG.js";
18
- import { D } from "./chunks/docx-zipper-DUr0Uq0b.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-COfngBDY.js";
18
+ import { D } from "./chunks/docx-zipper-fdMcchlI.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-BTL8rdbG.js";
3
- import "./chunks/editor-DjQsrRB0.js";
2
+ import { T } from "./chunks/toolbar-COfngBDY.js";
3
+ import "./chunks/editor-nlt5JeOJ.js";
4
4
  export {
5
5
  T as default
6
6
  };
@@ -1,4 +1,4 @@
1
- import { _, C, D, E, a, S, b, c, d, T, e, f, i, g, h, j, k, l, m, n } from "./chunks/super-editor.es-Ba_4ysU0.js";
1
+ import { _, C, D, E, a, S, b, c, d, T, e, f, i, g, h, j, k, l, m, n } from "./chunks/super-editor.es-CnpejCPC.js";
2
2
  import "./chunks/vue-BjMDYCe1.js";
3
3
  export {
4
4
  _ as BasicUpload,
@@ -1,5 +1,5 @@
1
- import { n as index$1, C as CommentsPluginKey, e as TrackChangesBasePluginKey, E as Editor, k as getRichTextExtensions, c as SuperInput, b as SuperEditor, d as SuperToolbar, f as createZip } from "./chunks/super-editor.es-Ba_4ysU0.js";
2
- import { S, i, m } from "./chunks/super-editor.es-Ba_4ysU0.js";
1
+ import { n as index$1, C as CommentsPluginKey, e as TrackChangesBasePluginKey, E as Editor, k as getRichTextExtensions, c as SuperInput, b as SuperEditor, d as SuperToolbar, f as createZip } from "./chunks/super-editor.es-CnpejCPC.js";
2
+ import { S, i, m } from "./chunks/super-editor.es-CnpejCPC.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 as BlankDOCX } from "./chunks/blank-docx-iwdyG9RH.js";
@@ -45872,7 +45872,7 @@ class SuperDoc extends EventEmitter {
45872
45872
  this.config.colors = shuffleArray(this.config.colors);
45873
45873
  this.userColorMap = /* @__PURE__ */ new Map();
45874
45874
  this.colorIndex = 0;
45875
- this.version = "0.8.8";
45875
+ this.version = "0.8.10";
45876
45876
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
45877
45877
  this.superdocId = config.superdocId || v4();
45878
45878
  this.colors = this.config.colors;
@@ -28001,7 +28001,7 @@
28001
28001
  return;
28002
28002
  }
28003
28003
  }
28004
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.8.8") {
28004
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.8.10") {
28005
28005
  const customLocation = "docProps/custom.xml";
28006
28006
  if (!docx[customLocation]) {
28007
28007
  docx[customLocation] = generateCustomXml();
@@ -28274,7 +28274,7 @@
28274
28274
  function generateCustomXml() {
28275
28275
  return DEFAULT_CUSTOM_XML;
28276
28276
  }
28277
- function generateSuperdocVersion(pid = 2, version2 = "0.8.8") {
28277
+ function generateSuperdocVersion(pid = 2, version2 = "0.8.10") {
28278
28278
  return {
28279
28279
  type: "element",
28280
28280
  name: "property",
@@ -41765,12 +41765,23 @@
41765
41765
  currentBounds,
41766
41766
  node: node2
41767
41767
  }) => {
41768
+ let bounds = {};
41769
+ if (currentBounds instanceof DOMRect) {
41770
+ bounds = {
41771
+ top: currentBounds.top,
41772
+ bottom: currentBounds.bottom,
41773
+ left: currentBounds.left,
41774
+ right: currentBounds.right
41775
+ };
41776
+ } else {
41777
+ bounds = { ...currentBounds };
41778
+ }
41768
41779
  if (!allCommentPositions[threadId]) {
41769
41780
  allCommentPositions[threadId] = {
41770
41781
  threadId,
41771
41782
  start: pos,
41772
41783
  end: pos + node2.nodeSize,
41773
- bounds: { ...currentBounds }
41784
+ bounds
41774
41785
  };
41775
41786
  } else {
41776
41787
  const existing = allCommentPositions[threadId];
@@ -42567,7 +42578,7 @@
42567
42578
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
42568
42579
  */
42569
42580
  processCollaborationMigrations() {
42570
- console.debug("[checkVersionMigrations] Current editor version", "0.8.8");
42581
+ console.debug("[checkVersionMigrations] Current editor version", "0.8.10");
42571
42582
  if (!this.options.ydoc) return;
42572
42583
  const metaMap = this.options.ydoc.getMap("meta");
42573
42584
  let docVersion = metaMap.get("version");
@@ -53342,6 +53353,7 @@
53342
53353
  const getRichTextExtensions = () => {
53343
53354
  return [
53344
53355
  Bold,
53356
+ BulletList,
53345
53357
  Color,
53346
53358
  Document,
53347
53359
  FontFamily,
@@ -53349,8 +53361,10 @@
53349
53361
  History,
53350
53362
  Heading,
53351
53363
  Italic,
53364
+ ListItem,
53352
53365
  LineHeight,
53353
53366
  Link,
53367
+ OrderedList,
53354
53368
  Paragraph,
53355
53369
  LineBreak,
53356
53370
  HardBreak,
@@ -110948,7 +110962,7 @@ ${style2}
110948
110962
  this.config.colors = shuffleArray(this.config.colors);
110949
110963
  this.userColorMap = /* @__PURE__ */ new Map();
110950
110964
  this.colorIndex = 0;
110951
- this.version = "0.8.8";
110965
+ this.version = "0.8.10";
110952
110966
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
110953
110967
  this.superdocId = config.superdocId || v4();
110954
110968
  this.colors = this.config.colors;