@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
@@ -12,9 +12,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
12
12
  var _events, _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _commandService, _css, _Editor_instances, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, insertNewFileData_fn, registerPluginByNameIfNotExists_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, createSchema_fn, generatePmData_fn, createView_fn, onCollaborationReady_fn, initComments_fn, initPagination_fn, dispatchTransaction_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, _FieldAnnotationView_instances, createAnnotation_fn;
13
13
  import * as Y from "yjs";
14
14
  import { UndoManager, Item as Item$1, ContentType, Text as Text$1, XmlElement } from "yjs";
15
- import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, f as Schema$1, g as canSplit, l as liftTarget, h as canJoin, j as joinPoint, r as replaceStep$1, R as ReplaceAroundStep, o as objectIncludes, i as ReplaceStep, k as NodeRange, m as findWrapping, n as TrackDeleteMarkName, q as TrackInsertMarkName, v as v4, s as generateDocxRandomId, t as generateRandom32BitHex, u as TrackFormatMarkName, w as comments_module_events, x as AddMarkStep, y as RemoveMarkStep, z as twipsToLines, B as pixelsToTwips, C as SuperConverter, E as EditorState, G as toKebabCase, H as kebabCase, I as SelectionRange, J as Transform } from "./converter-ZgWJ7l96.js";
15
+ import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, f as Schema$1, g as canSplit, l as liftTarget, h as canJoin, j as joinPoint, r as replaceStep$1, R as ReplaceAroundStep, o as objectIncludes, i as ReplaceStep, k as NodeRange, m as findWrapping, n as TrackDeleteMarkName, q as TrackInsertMarkName, v as v4, s as generateDocxRandomId, t as generateRandom32BitHex, u as TrackFormatMarkName, w as comments_module_events, x as AddMarkStep, y as RemoveMarkStep, z as twipsToLines, B as pixelsToTwips, C as SuperConverter, E as EditorState, G as toKebabCase, H as kebabCase, I as SelectionRange, J as Transform } from "./converter-B5SRaBp5.js";
16
16
  import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, createApp } from "vue";
17
- import { D as DocxZipper } from "./docx-zipper-DUr0Uq0b.js";
17
+ import { D as DocxZipper } from "./docx-zipper-fdMcchlI.js";
18
18
  function getMarksFromSelection(state) {
19
19
  const { from: from2, to, empty: empty2 } = state.selection;
20
20
  const marks = [];
@@ -11000,12 +11000,23 @@ const updatePosition = ({
11000
11000
  currentBounds,
11001
11001
  node
11002
11002
  }) => {
11003
+ let bounds = {};
11004
+ if (currentBounds instanceof DOMRect) {
11005
+ bounds = {
11006
+ top: currentBounds.top,
11007
+ bottom: currentBounds.bottom,
11008
+ left: currentBounds.left,
11009
+ right: currentBounds.right
11010
+ };
11011
+ } else {
11012
+ bounds = { ...currentBounds };
11013
+ }
11003
11014
  if (!allCommentPositions[threadId]) {
11004
11015
  allCommentPositions[threadId] = {
11005
11016
  threadId,
11006
11017
  start: pos,
11007
11018
  end: pos + node.nodeSize,
11008
- bounds: { ...currentBounds }
11019
+ bounds
11009
11020
  };
11010
11021
  } else {
11011
11022
  const existing = allCommentPositions[threadId];
@@ -11802,7 +11813,7 @@ const _Editor = class _Editor extends EventEmitter {
11802
11813
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
11803
11814
  */
11804
11815
  processCollaborationMigrations() {
11805
- console.debug("[checkVersionMigrations] Current editor version", "0.8.8");
11816
+ console.debug("[checkVersionMigrations] Current editor version", "0.8.10");
11806
11817
  if (!this.options.ydoc) return;
11807
11818
  const metaMap = this.options.ydoc.getMap("meta");
11808
11819
  let docVersion = metaMap.get("version");
@@ -22625,6 +22636,7 @@ const onImageLoad = (editor) => {
22625
22636
  const getRichTextExtensions = () => {
22626
22637
  return [
22627
22638
  Bold,
22639
+ BulletList,
22628
22640
  Color,
22629
22641
  Document,
22630
22642
  FontFamily,
@@ -22632,8 +22644,10 @@ const getRichTextExtensions = () => {
22632
22644
  History,
22633
22645
  Heading,
22634
22646
  Italic,
22647
+ ListItem,
22635
22648
  LineHeight,
22636
22649
  Link,
22650
+ OrderedList,
22637
22651
  Paragraph,
22638
22652
  LineBreak,
22639
22653
  HardBreak,
@@ -22738,4 +22752,4 @@ export {
22738
22752
  redoDepth as r,
22739
22753
  undoDepth as u
22740
22754
  };
22741
- //# sourceMappingURL=editor-DjQsrRB0.js.map
22755
+ //# sourceMappingURL=editor-nlt5JeOJ.js.map