@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
@@ -20664,7 +20664,7 @@ const _SuperConverter = class _SuperConverter2 {
20664
20664
  return;
20665
20665
  }
20666
20666
  }
20667
- static updateDocumentVersion(docx = this.convertedXml, version = "0.8.8") {
20667
+ static updateDocumentVersion(docx = this.convertedXml, version = "0.8.10") {
20668
20668
  const customLocation = "docProps/custom.xml";
20669
20669
  if (!docx[customLocation]) {
20670
20670
  docx[customLocation] = generateCustomXml();
@@ -20937,7 +20937,7 @@ function storeSuperdocVersion(docx) {
20937
20937
  function generateCustomXml() {
20938
20938
  return DEFAULT_CUSTOM_XML;
20939
20939
  }
20940
- function generateSuperdocVersion(pid = 2, version = "0.8.8") {
20940
+ function generateSuperdocVersion(pid = 2, version = "0.8.10") {
20941
20941
  return {
20942
20942
  type: "element",
20943
20943
  name: "property",
@@ -34428,12 +34428,23 @@ const updatePosition = ({
34428
34428
  currentBounds,
34429
34429
  node: node2
34430
34430
  }) => {
34431
+ let bounds = {};
34432
+ if (currentBounds instanceof DOMRect) {
34433
+ bounds = {
34434
+ top: currentBounds.top,
34435
+ bottom: currentBounds.bottom,
34436
+ left: currentBounds.left,
34437
+ right: currentBounds.right
34438
+ };
34439
+ } else {
34440
+ bounds = { ...currentBounds };
34441
+ }
34431
34442
  if (!allCommentPositions[threadId]) {
34432
34443
  allCommentPositions[threadId] = {
34433
34444
  threadId,
34434
34445
  start: pos,
34435
34446
  end: pos + node2.nodeSize,
34436
- bounds: { ...currentBounds }
34447
+ bounds
34437
34448
  };
34438
34449
  } else {
34439
34450
  const existing = allCommentPositions[threadId];
@@ -35230,7 +35241,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
35230
35241
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
35231
35242
  */
35232
35243
  processCollaborationMigrations() {
35233
- console.debug("[checkVersionMigrations] Current editor version", "0.8.8");
35244
+ console.debug("[checkVersionMigrations] Current editor version", "0.8.10");
35234
35245
  if (!this.options.ydoc) return;
35235
35246
  const metaMap = this.options.ydoc.getMap("meta");
35236
35247
  let docVersion = metaMap.get("version");
@@ -46005,6 +46016,7 @@ const onImageLoad = (editor) => {
46005
46016
  const getRichTextExtensions = () => {
46006
46017
  return [
46007
46018
  Bold,
46019
+ BulletList,
46008
46020
  Color,
46009
46021
  Document,
46010
46022
  FontFamily,
@@ -46012,8 +46024,10 @@ const getRichTextExtensions = () => {
46012
46024
  History,
46013
46025
  Heading,
46014
46026
  Italic,
46027
+ ListItem,
46015
46028
  LineHeight,
46016
46029
  Link,
46030
+ OrderedList,
46017
46031
  Paragraph,
46018
46032
  LineBreak,
46019
46033
  HardBreak,
@@ -58773,4 +58787,4 @@ export {
58773
58787
  helpers as m,
58774
58788
  index as n
58775
58789
  };
58776
- //# sourceMappingURL=super-editor.es-Ba_4ysU0.js.map
58790
+ //# sourceMappingURL=super-editor.es-CnpejCPC.js.map