@harbour-enterprises/superdoc 0.21.0-RC2 → 0.21.0-next.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 (32) hide show
  1. package/README.md +4 -4
  2. package/dist/chunks/{PdfViewer-DGbJ8_qc.cjs → PdfViewer-1mNuyy3m.cjs} +1 -1
  3. package/dist/chunks/{PdfViewer-CbGuPQY8.es.js → PdfViewer-BkXBRXPs.es.js} +1 -1
  4. package/dist/chunks/{index-ecl0ZFNw.cjs → index-BB3Qn69u.cjs} +57 -15
  5. package/dist/chunks/{index-qjntJEk0.es.js → index-C-44kxYe.es.js} +57 -15
  6. package/dist/chunks/{super-editor.es-BF_Xaucb.es.js → super-editor.es-CKw7iZcz.es.js} +217 -128
  7. package/dist/chunks/{super-editor.es-CS5l-cVZ.cjs → super-editor.es-Dd0joLAR.cjs} +217 -128
  8. package/dist/core/SuperDoc.d.ts.map +1 -1
  9. package/dist/stores/comments-store.d.ts.map +1 -1
  10. package/dist/style.css +1 -1
  11. package/dist/super-editor/ai-writer.es.js +2 -2
  12. package/dist/super-editor/chunks/{converter-DUqGq6qj.js → converter-FESR2WO7.js} +41 -25
  13. package/dist/super-editor/chunks/{docx-zipper-CQsQR8Zs.js → docx-zipper-BWZ2o1H5.js} +1 -1
  14. package/dist/super-editor/chunks/{editor-gMF6aWiz.js → editor-XsrBXzy-.js} +156 -93
  15. package/dist/super-editor/chunks/{toolbar-BxsT1ZgG.js → toolbar-tBWlOBPh.js} +21 -11
  16. package/dist/super-editor/converter.es.js +1 -1
  17. package/dist/super-editor/docx-zipper.es.js +2 -2
  18. package/dist/super-editor/editor.es.js +3 -3
  19. package/dist/super-editor/file-zipper.es.js +1 -1
  20. package/dist/super-editor/src/extensions/comment/comment-import-helpers.d.ts +15 -0
  21. package/dist/super-editor/src/extensions/search/prosemirror-search-patched.d.ts +110 -0
  22. package/dist/super-editor/style.css +1 -1
  23. package/dist/super-editor/super-editor.es.js +6 -6
  24. package/dist/super-editor/toolbar.es.js +2 -2
  25. package/dist/super-editor.cjs +1 -1
  26. package/dist/super-editor.es.js +1 -1
  27. package/dist/superdoc.cjs +2 -2
  28. package/dist/superdoc.es.js +2 -2
  29. package/dist/superdoc.umd.js +272 -141
  30. package/dist/superdoc.umd.js.map +1 -1
  31. package/npm-deprecation-notice.cjs +10 -0
  32. package/package.json +11 -6
@@ -0,0 +1,110 @@
1
+ export function __searchTextContent(node: any): any;
2
+ export class SearchQuery {
3
+ /**
4
+ Create a query object.
5
+ */
6
+ constructor(config: any);
7
+ search: any;
8
+ caseSensitive: boolean;
9
+ literal: boolean;
10
+ regexp: boolean;
11
+ replace: any;
12
+ valid: boolean;
13
+ wholeWord: boolean;
14
+ filter: any;
15
+ impl: {
16
+ findNext(): any;
17
+ findPrev(): any;
18
+ } | RegExpQuery | StringQuery;
19
+ /**
20
+ Compare this query to another query.
21
+ */
22
+ eq(other: any): boolean;
23
+ /**
24
+ Find the next occurrence of this query in the given range.
25
+ */
26
+ findNext(state: any, from?: number, to?: any): any;
27
+ /**
28
+ Find the previous occurrence of this query in the given range.
29
+ Note that, if `to` is given, it should be _less_ than `from`.
30
+ */
31
+ findPrev(state: any, from?: any, to?: number): any;
32
+ /**
33
+ @internal
34
+ */
35
+ checkResult(state: any, result: any): any;
36
+ /**
37
+ @internal
38
+ */
39
+ unquote(string: any): any;
40
+ /**
41
+ Get the ranges that should be replaced for this result. This can
42
+ return multiple ranges when `this.replace` contains
43
+ `$1`/`$&`-style placeholders, in which case the preserved
44
+ content is skipped by the replacements.
45
+
46
+ Ranges are sorted by position, and `from`/`to` positions all
47
+ refer to positions in `state.doc`. When applying these, you'll
48
+ want to either apply them from back to front, or map these
49
+ positions through your transaction's current mapping.
50
+ */
51
+ getReplacements(state: any, result: any): {
52
+ from: any;
53
+ to: any;
54
+ insert: Slice;
55
+ }[];
56
+ }
57
+ export function findNext(state: any, dispatch: any): boolean;
58
+ export function findNextNoWrap(state: any, dispatch: any): boolean;
59
+ export function findPrev(state: any, dispatch: any): boolean;
60
+ export function findPrevNoWrap(state: any, dispatch: any): boolean;
61
+ /**
62
+ Access the decoration set holding the currently highlighted search
63
+ matches in the document.
64
+ */
65
+ export function getMatchHighlights(state: any): any;
66
+ /**
67
+ Get the current active search query and searched range. Will
68
+ return `undefined` is the search plugin isn't active.
69
+ */
70
+ export function getSearchState(state: any): any;
71
+ /**
72
+ Replace all instances of the search query.
73
+ */
74
+ export function replaceAll(state: any, dispatch: any): boolean;
75
+ export function replaceCurrent(state: any, dispatch: any): boolean;
76
+ export function replaceNext(state: any, dispatch: any): boolean;
77
+ export function replaceNextNoWrap(state: any, dispatch: any): boolean;
78
+ /**
79
+ Returns a plugin that stores a current search query and searched
80
+ range, and highlights matches of the query.
81
+ */
82
+ export function search(options?: {}): Plugin<SearchState>;
83
+ /**
84
+ Add metadata to a transaction that updates the active search query
85
+ and searched range, when dispatched.
86
+ */
87
+ export function setSearchState(tr: any, query: any, range?: any): any;
88
+ declare class RegExpQuery {
89
+ constructor(query: any);
90
+ query: any;
91
+ regexp: RegExp;
92
+ findNext(state: any, from: any, to: any): any;
93
+ findPrev(state: any, from: any, to: any): any;
94
+ }
95
+ declare class StringQuery {
96
+ constructor(query: any);
97
+ query: any;
98
+ string: any;
99
+ findNext(state: any, from: any, to: any): any;
100
+ findPrev(state: any, from: any, to: any): any;
101
+ }
102
+ import { Slice } from 'prosemirror-model';
103
+ declare class SearchState {
104
+ constructor(query: any, range: any, deco: any);
105
+ query: any;
106
+ range: any;
107
+ deco: any;
108
+ }
109
+ import { Plugin } from 'prosemirror-state';
110
+ export {};
@@ -1140,7 +1140,7 @@ on the right if it is inside shape textbox.
1140
1140
  border: 1px solid #629be7;
1141
1141
  border-bottom: none;
1142
1142
  border-radius: 6px 6px 0 0;
1143
- background-color: #629be733;
1143
+ background-color: #629be7dd;
1144
1144
  z-index: 10;
1145
1145
  cursor: grab;
1146
1146
  display: none;
@@ -9,14 +9,14 @@ 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 _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, runCommandWithArgumentOnly_fn;
12
- import { av as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, ay as vClickOutside, H as findParentNode, az as getActiveFormatting, ap as isInTable, aA as readFromClipboard, aB as handleClipboardPaste, aC as getFileObject, aD as runPropertyTranslators, aE as translator, aF as translator$1, aG as translator$2, aH as translator$3, aI as translator$4, aJ as translator$5, aK as translator$6, aL as translator$7, aM as translator$8, aN as translator$9, aO as translator$a, aP as translator$b, aQ as translator$c, aR as translator$d, aS as translator$e, aT as translator$f, aU as translator$g, aV as translator$h, aW as translator$i, aX as translator$j, aY as translator$k, aZ as translator$l, a_ as translator$m, a$ as translator$n, b0 as translator$o, b1 as translator$p, a as Plugin } from "./chunks/converter-DUqGq6qj.js";
13
- import { b2, a5, i, a2 } from "./chunks/converter-DUqGq6qj.js";
14
- import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, y as yUndoPluginKey, f as undoDepth, h as redoDepth, S as SlashMenuPluginKey, E as Editor, i as getStarterExtensions, P as Placeholder, j as getRichTextExtensions, M as Mark, k as Extension, A as Attribute, N as Node } from "./chunks/editor-gMF6aWiz.js";
15
- import { n, C, o, T, l, p, m } from "./chunks/editor-gMF6aWiz.js";
12
+ import { av as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, ay as vClickOutside, H as findParentNode, az as getActiveFormatting, ap as isInTable, aA as readFromClipboard, aB as handleClipboardPaste, aC as getFileObject, aD as runPropertyTranslators, aE as translator, aF as translator$1, aG as translator$2, aH as translator$3, aI as translator$4, aJ as translator$5, aK as translator$6, aL as translator$7, aM as translator$8, aN as translator$9, aO as translator$a, aP as translator$b, aQ as translator$c, aR as translator$d, aS as translator$e, aT as translator$f, aU as translator$g, aV as translator$h, aW as translator$i, aX as translator$j, aY as translator$k, aZ as translator$l, a_ as translator$m, a$ as translator$n, b0 as translator$o, b1 as translator$p, a as Plugin } from "./chunks/converter-FESR2WO7.js";
13
+ import { b2, a5, i, a2 } from "./chunks/converter-FESR2WO7.js";
14
+ import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, y as yUndoPluginKey, f as undoDepth, h as redoDepth, S as SlashMenuPluginKey, E as Editor, i as getStarterExtensions, P as Placeholder, j as getRichTextExtensions, M as Mark, k as Extension, A as Attribute, N as Node } from "./chunks/editor-XsrBXzy-.js";
15
+ import { n, C, o, T, l, p, m } from "./chunks/editor-XsrBXzy-.js";
16
16
  import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
17
- import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-BxsT1ZgG.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-tBWlOBPh.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-CQsQR8Zs.js";
19
+ import { D } from "./chunks/docx-zipper-BWZ2o1H5.js";
20
20
  import { createZip } from "./file-zipper.es.js";
21
21
  var eventemitter3 = { exports: {} };
22
22
  var hasRequiredEventemitter3;
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-BxsT1ZgG.js";
3
- import "./chunks/editor-gMF6aWiz.js";
2
+ import { T } from "./chunks/toolbar-tBWlOBPh.js";
3
+ import "./chunks/editor-XsrBXzy-.js";
4
4
  export {
5
5
  T as default
6
6
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-CS5l-cVZ.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-Dd0joLAR.cjs");
4
4
  require("./chunks/vue-DWle4Cai.cjs");
5
5
  exports.AIWriter = superEditor_es.AIWriter;
6
6
  exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
@@ -1,4 +1,4 @@
1
- import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-BF_Xaucb.es.js";
1
+ import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-CKw7iZcz.es.js";
2
2
  import "./chunks/vue-CXxsqYcP.es.js";
3
3
  export {
4
4
  A as AIWriter,
package/dist/superdoc.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-CS5l-cVZ.cjs");
4
- const superdoc = require("./chunks/index-ecl0ZFNw.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-Dd0joLAR.cjs");
4
+ const superdoc = require("./chunks/index-BB3Qn69u.cjs");
5
5
  require("./chunks/vue-DWle4Cai.cjs");
6
6
  require("./chunks/jszip-b7l8QkfH.cjs");
7
7
  const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
@@ -1,5 +1,5 @@
1
- import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-BF_Xaucb.es.js";
2
- import { D, H, P, S as S2, m, l } from "./chunks/index-qjntJEk0.es.js";
1
+ import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-CKw7iZcz.es.js";
2
+ import { D, H, P, S as S2, m, l } from "./chunks/index-C-44kxYe.es.js";
3
3
  import "./chunks/vue-CXxsqYcP.es.js";
4
4
  import "./chunks/jszip-B8KIZSNe.es.js";
5
5
  import { B } from "./chunks/blank-docx-iwdyG9RH.es.js";