@harbour-enterprises/superdoc 0.6.22 → 0.6.24

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 (30) hide show
  1. package/dist/chunks/{super-editor.es-oCHyvNrc.js → super-editor.es-CrHWJXXN.js} +247 -20
  2. package/dist/chunks/{super-editor.es-oCHyvNrc.js.map → super-editor.es-CrHWJXXN.js.map} +1 -1
  3. package/dist/style.css +24 -0
  4. package/dist/super-editor/chunks/{converter--bwoIbpc.js → converter-aySKZ7KO.js} +3 -3
  5. package/dist/super-editor/chunks/{converter--bwoIbpc.js.map → converter-aySKZ7KO.js.map} +1 -1
  6. package/dist/super-editor/chunks/{docx-zipper-vGmPvnin.js → docx-zipper-DppZRpnB.js} +2 -2
  7. package/dist/super-editor/chunks/{docx-zipper-vGmPvnin.js.map → docx-zipper-DppZRpnB.js.map} +1 -1
  8. package/dist/super-editor/chunks/{editor-CoVn4nwP.js → editor-BOQLUjyE.js} +233 -6
  9. package/dist/super-editor/chunks/editor-BOQLUjyE.js.map +1 -0
  10. package/dist/super-editor/chunks/{toolbar-Bp5Jkft8.js → toolbar-CmhWbPS2.js} +3 -3
  11. package/dist/super-editor/chunks/{toolbar-Bp5Jkft8.js.map → toolbar-CmhWbPS2.js.map} +1 -1
  12. package/dist/super-editor/converter.es.js +1 -1
  13. package/dist/super-editor/core/super-converter/v2/importer/annotationImporter.d.ts +1 -0
  14. package/dist/super-editor/core/super-converter/v2/importer/annotationImporter.d.ts.map +1 -1
  15. package/dist/super-editor/docx-zipper.es.js +2 -2
  16. package/dist/super-editor/editor.es.js +3 -3
  17. package/dist/super-editor/extensions/gapcursor/gapcursor.d.ts +2 -0
  18. package/dist/super-editor/extensions/gapcursor/gapcursor.d.ts.map +1 -0
  19. package/dist/super-editor/extensions/gapcursor/index.d.ts +2 -0
  20. package/dist/super-editor/extensions/gapcursor/index.d.ts.map +1 -0
  21. package/dist/super-editor/extensions/index.d.ts +2 -1
  22. package/dist/super-editor/extensions/index.d.ts.map +1 -1
  23. package/dist/super-editor/file-zipper.es.js +1 -1
  24. package/dist/super-editor/style.css +24 -0
  25. package/dist/super-editor/super-editor.es.js +6 -6
  26. package/dist/super-editor/toolbar.es.js +2 -2
  27. package/dist/super-editor.es.js +1 -1
  28. package/dist/superdoc.es.js +3 -3
  29. package/package.json +1 -1
  30. package/dist/super-editor/chunks/editor-CoVn4nwP.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { B } from "./chunks/converter--bwoIbpc.js";
1
+ import { B } from "./chunks/converter-aySKZ7KO.js";
2
2
  export {
3
3
  B as SuperConverter
4
4
  };
@@ -2,6 +2,7 @@
2
2
  * @type {import("docxImporter").NodeHandler}
3
3
  */
4
4
  export const handleAnnotationNode: any;
5
+ export function parseAnnotationMarks(content?: any): any;
5
6
  /**
6
7
  * @type {import("docxImporter").NodeHandlerEntry}
7
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"annotationImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/annotationImporter.js"],"names":[],"mappings":"AAGA;;GAEG;AACH,uCAkDE;AAwCF;;GAEG;AACH,8CAGE"}
1
+ {"version":3,"file":"annotationImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/annotationImporter.js"],"names":[],"mappings":"AAGA;;GAEG;AACH,uCAkDE;AAOK,yDA+BN;AAED;;GAEG;AACH,8CAGE"}
@@ -1,5 +1,5 @@
1
- import "./chunks/converter--bwoIbpc.js";
2
- import { D } from "./chunks/docx-zipper-vGmPvnin.js";
1
+ import "./chunks/converter-aySKZ7KO.js";
2
+ import { D } from "./chunks/docx-zipper-DppZRpnB.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-CoVn4nwP.js";
2
- import "./chunks/converter--bwoIbpc.js";
3
- import "./chunks/docx-zipper-vGmPvnin.js";
1
+ import { E } from "./chunks/editor-BOQLUjyE.js";
2
+ import "./chunks/converter-aySKZ7KO.js";
3
+ import "./chunks/docx-zipper-DppZRpnB.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -0,0 +1,2 @@
1
+ export const Gapcursor: any;
2
+ //# sourceMappingURL=gapcursor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gapcursor.d.ts","sourceRoot":"","sources":["../../../src/extensions/gapcursor/gapcursor.js"],"names":[],"mappings":"AAKA,4BAkBG"}
@@ -0,0 +1,2 @@
1
+ export * from "./gapcursor.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/extensions/gapcursor/index.js"],"names":[],"mappings":""}
@@ -26,6 +26,7 @@ import { TextStyle } from './text-style/text-style.js';
26
26
  import { LineHeight } from './line-height/index.js';
27
27
  import { FormatCommands } from './format-commands/index.js';
28
28
  import { CommentsPlugin } from './comment/index.js';
29
+ import { Gapcursor } from './gapcursor/index.js';
29
30
  import { Table } from './table/index.js';
30
31
  import { TableRow } from './table-row/index.js';
31
32
  import { TableCell } from './table-cell/index.js';
@@ -47,5 +48,5 @@ import { TrackFormat } from './track-changes/index.js';
47
48
  import { trackChangesHelpers } from './track-changes/index.js';
48
49
  export function getStarterExtensions(): any[];
49
50
  export function getRichTextExtensions(): any[];
50
- export { Heading, Document, Text, RunItem, BulletList, OrderedList, ListItem, Paragraph, CommentRangeStart, CommentRangeEnd, CommentReference, TabNode, LineBreak, HardBreak, Bold, Italic, Underline, Highlight, Strike, Color, FontFamily, FontSize, TextAlign, TextIndent, TextStyle, LineHeight, FormatCommands, CommentsPlugin, Table, TableRow, TableCell, TableHeader, Placeholder, DropCursor, FieldAnnotation, fieldAnnotationHelpers, Image, BookmarkStart, PopoverPlugin, Mention, Collaboration, CollaborationCursor, TrackChanges, TrackInsert, TrackDelete, TrackFormat, trackChangesHelpers };
51
+ export { Heading, Document, Text, RunItem, BulletList, OrderedList, ListItem, Paragraph, CommentRangeStart, CommentRangeEnd, CommentReference, TabNode, LineBreak, HardBreak, Bold, Italic, Underline, Highlight, Strike, Color, FontFamily, FontSize, TextAlign, TextIndent, TextStyle, LineHeight, FormatCommands, CommentsPlugin, Gapcursor, Table, TableRow, TableCell, TableHeader, Placeholder, DropCursor, FieldAnnotation, fieldAnnotationHelpers, Image, BookmarkStart, PopoverPlugin, Mention, Collaboration, CollaborationCursor, TrackChanges, TrackInsert, TrackDelete, TrackFormat, trackChangesHelpers };
51
52
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/extensions/index.js"],"names":[],"mappings":"wBAqBwB,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;sBAtCpB,kBAAkB;2BACb,wBAAwB;yBAC1B,sBAAsB;0BACrB,uBAAuB;2BACtB,wBAAwB;0BA6BzB,4BAA4B;2BA5B3B,wBAAwB;+BACpB,4BAA4B;+BAqC5B,oBAAoB;sBApB7B,kBAAkB;yBAEf,sBAAsB;0BACrB,uBAAuB;4BAFrB,yBAAyB;4BAoBzB,wBAAwB;2BArCzB,uBAAuB;gCAoBM,6BAA6B;uCAA7B,6BAA6B;sBAC/D,kBAAkB;8BACV,sBAAsB;8BAgBtB,2BAA2B;wBAfjC,oBAAoB;8BAtBd,0BAA0B;oCACpB,iCAAiC;6BAqCxC,0BAA0B;4BAND,0BAA0B;4BAA1B,0BAA0B;4BAA1B,0BAA0B;oCAW5C,0BAA0B;AAoB9D,8CAkDC;AApED,+CAgBC"}
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;+BAsC5B,oBAAoB;0BApCzB,sBAAsB;sBAgB1B,kBAAkB;yBAEf,sBAAsB;0BACrB,uBAAuB;4BAFrB,yBAAyB;4BAoBzB,wBAAwB;2BAtCzB,uBAAuB;gCAqBM,6BAA6B;uCAA7B,6BAA6B;sBAC/D,kBAAkB;8BACV,sBAAsB;8BAgBtB,2BAA2B;wBAfjC,oBAAoB;8BAtBd,0BAA0B;oCACpB,iCAAiC;6BAqCxC,0BAA0B;4BAND,0BAA0B;4BAA1B,0BAA0B;4BAA1B,0BAA0B;oCAW5C,0BAA0B;AAoB9D,8CAmDC;AArED,+CAgBC"}
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-vGmPvnin.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-DppZRpnB.js";
2
2
  async function createZip(blobs, fileNames) {
3
3
  const zip = new JSZip();
4
4
  blobs.forEach((blob, index) => {
@@ -492,6 +492,30 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
492
492
  line-height: 0.1;
493
493
  font-weight: bold;
494
494
  }
495
+ /* Gapcursor */
496
+ .ProseMirror-gapcursor {
497
+ display: none;
498
+ pointer-events: none;
499
+ position: absolute;
500
+ margin: 0;
501
+ }
502
+ .ProseMirror-gapcursor:after {
503
+ content: "";
504
+ display: block;
505
+ position: absolute;
506
+ top: -2px;
507
+ width: 20px;
508
+ border-top: 1px solid black;
509
+ animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
510
+ }
511
+ @keyframes ProseMirror-cursor-blink {
512
+ to {
513
+ visibility: hidden;
514
+ }
515
+ }
516
+ .ProseMirror-focused .ProseMirror-gapcursor {
517
+ display: block;
518
+ }
495
519
  .superdoc-toolbar svg {
496
520
  width: 100%;
497
521
  height: 100%;
@@ -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-CoVn4nwP.js";
13
- import { k, m, j, l } from "./chunks/editor-CoVn4nwP.js";
14
- import { L as getDefaultExportFromCjs, v as v4, T as TextSelection, Q as vClickOutside } from "./chunks/converter--bwoIbpc.js";
15
- import { B } from "./chunks/converter--bwoIbpc.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-BOQLUjyE.js";
13
+ import { k, m, j, l } from "./chunks/editor-BOQLUjyE.js";
14
+ import { L as getDefaultExportFromCjs, v as v4, T as TextSelection, Q as vClickOutside } from "./chunks/converter-aySKZ7KO.js";
15
+ import { B } from "./chunks/converter-aySKZ7KO.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-Bp5Jkft8.js";
18
- import { D } from "./chunks/docx-zipper-vGmPvnin.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-CmhWbPS2.js";
18
+ import { D } from "./chunks/docx-zipper-DppZRpnB.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-Bp5Jkft8.js";
3
- import "./chunks/editor-CoVn4nwP.js";
2
+ import { T } from "./chunks/toolbar-CmhWbPS2.js";
3
+ import "./chunks/editor-BOQLUjyE.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-oCHyvNrc.js";
1
+ import { _, D, E, S, a, b, c, T, d, i, g, e, f, h, j, k, l } from "./chunks/super-editor.es-CrHWJXXN.js";
2
2
  import "./chunks/vue-CUQGd1xF.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 } from "./chunks/super-editor.es-oCHyvNrc.js";
2
- import { S, d, i, k, l } from "./chunks/super-editor.es-oCHyvNrc.js";
1
+ import { E as Editor, h as getRichTextExtensions, b as SuperInput, a as SuperEditor, c as SuperToolbar } from "./chunks/super-editor.es-CrHWJXXN.js";
2
+ import { S, d, i, k, l } from "./chunks/super-editor.es-CrHWJXXN.js";
3
3
  import { p as process$1, Y as effectScope, r as ref, Z as markRaw, _ as toRaw, a as computed, $ as isRef, a0 as isReactive, B as toRef, i as inject, l as getCurrentInstance, j as watch, v as unref, a1 as hasInjectionContext, L as reactive, R as nextTick$2, a2 as getCurrentScope, a3 as onScopeDispose, a4 as toRefs, g as global$1, N as shallowRef, M as readonly, f as onMounted, h as onBeforeUnmount, e as onBeforeMount, U as onActivated, m as onDeactivated, y as createTextVNode, F as Fragment, Q as Comment, k as defineComponent, C as provide, G as withDirectives, A as h, V as Teleport, S as renderSlot, W as isVNode, K as watchEffect, O as Transition, D as mergeProps, P as vShow, J as cloneVNode, T as Text, b as createElementBlock, o as openBlock, t as toDisplayString, u as createVNode, x as withCtx, E as createBaseVNode, z as normalizeStyle, s as createCommentVNode, q as createBlock, w as withModifiers, n as normalizeClass, a5 as resolveDirective, d as renderList, c as createApp, a6 as resolveDynamicComponent } from "./chunks/vue-CUQGd1xF.js";
4
4
  import { B as Buffer$D, c as commonjsGlobal } from "./chunks/jszip-DlHbx6j5.js";
5
5
  import { s as safeBufferExports$1, j as streamBrowserify, i as inherits_browserExports, k as require$$0$1, l as string_decoder, m as eventsExports, u as util$3, n as browser$b } from "./chunks/xml-js-ETODspvn.js";
@@ -79034,7 +79034,7 @@ class SuperDoc extends EventEmitter {
79034
79034
  this.config.colors = shuffleArray(this.config.colors);
79035
79035
  this.userColorMap = /* @__PURE__ */ new Map();
79036
79036
  this.colorIndex = 0;
79037
- this.version = "0.6.22";
79037
+ this.version = "0.6.24";
79038
79038
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
79039
79039
  this.superdocId = config.superdocId || v4();
79040
79040
  this.colors = this.config.colors;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@harbour-enterprises/superdoc",
3
3
  "type": "module",
4
- "version": "0.6.22",
4
+ "version": "0.6.24",
5
5
  "license": "AGPL-3.0",
6
6
  "readme": "../../README.md",
7
7
  "files": [