@harbour-enterprises/superdoc 0.22.0-next.10 → 0.22.0-next.11

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 (61) hide show
  1. package/dist/chunks/{PdfViewer-CJdQmuIm.es.js → PdfViewer-CS3pY_UR.es.js} +1 -1
  2. package/dist/chunks/{PdfViewer-DE1NR4Ve.cjs → PdfViewer-Cz3fT1qt.cjs} +1 -1
  3. package/dist/chunks/{index-B9sHxXr_.es.js → index-Bbqhu9ev.es.js} +2 -2
  4. package/dist/chunks/{index-nfoifSpX.cjs → index-p73XAt11.cjs} +2 -2
  5. package/dist/chunks/{super-editor.es-DAP-fnHo.cjs → super-editor.es-CFD0lcOY.cjs} +1620 -1044
  6. package/dist/chunks/{super-editor.es-_iVPQ8J8.es.js → super-editor.es-DK3l03fz.es.js} +1620 -1044
  7. package/dist/core/types/index.d.ts.map +1 -1
  8. package/dist/style.css +3 -0
  9. package/dist/super-editor/ai-writer.es.js +2 -2
  10. package/dist/super-editor/chunks/{converter-DK1NMJZB.js → converter-DFDRdFEB.js} +1482 -1041
  11. package/dist/super-editor/chunks/{docx-zipper-CmK8TyNb.js → docx-zipper-CplUdgI9.js} +1 -1
  12. package/dist/super-editor/chunks/{editor-YR4uV-dp.js → editor-BnpIdTLI.js} +155 -19
  13. package/dist/super-editor/chunks/{toolbar-DzJyRvb0.js → toolbar-5h-ljJ_h.js} +2 -2
  14. package/dist/super-editor/converter.es.js +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/file-zipper.es.js +1 -1
  18. package/dist/super-editor/src/core/helpers/generateDocxRandomId.d.ts +5 -0
  19. package/dist/super-editor/src/core/super-converter/exporter.d.ts +4 -4
  20. package/dist/super-editor/src/core/super-converter/field-references/fld-preprocessors/hyperlink-preprocessor.d.ts +9 -0
  21. package/dist/super-editor/src/core/super-converter/field-references/fld-preprocessors/index.d.ts +2 -0
  22. package/dist/super-editor/src/core/super-converter/field-references/fld-preprocessors/num-pages-preprocessor.d.ts +9 -0
  23. package/dist/super-editor/src/core/super-converter/field-references/fld-preprocessors/page-preprocessor.d.ts +9 -0
  24. package/dist/super-editor/src/core/super-converter/field-references/fld-preprocessors/page-ref-preprocessor.d.ts +9 -0
  25. package/dist/super-editor/src/core/super-converter/field-references/fld-preprocessors/toc-preprocessor.d.ts +8 -0
  26. package/dist/super-editor/src/core/super-converter/field-references/index.d.ts +1 -0
  27. package/dist/super-editor/src/core/super-converter/field-references/preProcessNodesForFldChar.d.ts +21 -0
  28. package/dist/super-editor/src/core/super-converter/v2/exporter/helpers/translateChildNodes.d.ts +3 -3
  29. package/dist/super-editor/src/core/super-converter/v2/importer/pageReferenceImporter.d.ts +4 -0
  30. package/dist/super-editor/src/core/super-converter/v2/importer/tableOfContentsImporter.d.ts +4 -0
  31. package/dist/super-editor/src/core/super-converter/v2/types/index.d.ts +7 -1
  32. package/dist/super-editor/src/core/super-converter/v3/handlers/sd/pageReference/index.d.ts +1 -0
  33. package/dist/super-editor/src/core/super-converter/v3/handlers/sd/pageReference/pageReference-translator.d.ts +7 -0
  34. package/dist/super-editor/src/core/super-converter/v3/handlers/sd/tableOfContents/index.d.ts +1 -0
  35. package/dist/super-editor/src/core/super-converter/v3/handlers/sd/tableOfContents/tableOfContents-translator.d.ts +10 -0
  36. package/dist/super-editor/src/core/super-converter/v3/handlers/w/caps/caps-translator.d.ts +7 -0
  37. package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts +0 -2
  38. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/handle-doc-part-obj.d.ts +9 -1
  39. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-document-part-obj.d.ts +6 -0
  40. package/dist/super-editor/src/core/super-converter/v3/node-translator/node-translator.d.ts +2 -2
  41. package/dist/super-editor/src/extensions/page-reference/index.d.ts +1 -0
  42. package/dist/super-editor/src/extensions/page-reference/page-reference.d.ts +2 -0
  43. package/dist/super-editor/src/extensions/structured-content/document-part-object.d.ts +2 -0
  44. package/dist/super-editor/src/extensions/structured-content/index.d.ts +1 -0
  45. package/dist/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentBlockTags.d.ts +2 -3
  46. package/dist/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentInlineTags.d.ts +2 -3
  47. package/dist/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTags.d.ts +2 -3
  48. package/dist/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTagsById.d.ts +2 -3
  49. package/dist/super-editor/src/extensions/tab/helpers/tabDecorations.d.ts +2 -2
  50. package/dist/super-editor/src/extensions/table-of-contents/index.d.ts +1 -0
  51. package/dist/super-editor/src/extensions/table-of-contents/table-of-contents.d.ts +2 -0
  52. package/dist/super-editor/style.css +3 -0
  53. package/dist/super-editor/super-editor.es.js +10 -8
  54. package/dist/super-editor/toolbar.es.js +2 -2
  55. package/dist/super-editor.cjs +1 -1
  56. package/dist/super-editor.es.js +1 -1
  57. package/dist/superdoc.cjs +2 -2
  58. package/dist/superdoc.es.js +2 -2
  59. package/dist/superdoc.umd.js +1620 -1044
  60. package/dist/superdoc.umd.js.map +1 -1
  61. package/package.json +1 -1
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * Gets all structured content block tags in the state.
3
- * @param {EditorState} state Editor state.
3
+ * @param {import('prosemirror-state').EditorState} state Editor state.
4
4
  * @returns {Array}
5
5
  */
6
- export function getStructuredContentBlockTags(state: EditorState): any[];
7
- import { EditorState } from 'prosemirror-state';
6
+ export function getStructuredContentBlockTags(state: import("prosemirror-state").EditorState): any[];
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * Gets all structured content inline tags in the state.
3
- * @param {EditorState} state Editor state.
3
+ * @param {import('prosemirror-state').EditorState} state Editor state.
4
4
  * @returns {Array}
5
5
  */
6
- export function getStructuredContentInlineTags(state: EditorState): any[];
7
- import { EditorState } from 'prosemirror-state';
6
+ export function getStructuredContentInlineTags(state: import("prosemirror-state").EditorState): any[];
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * Gets all structured content tags in the state.
3
- * @param {EditorState} state Editor state.
3
+ * @param {import('prosemirror-state').EditorState} state Editor state.
4
4
  * @returns {Array}
5
5
  */
6
- export function getStructuredContentTags(state: EditorState): any[];
7
- import { EditorState } from 'prosemirror-state';
6
+ export function getStructuredContentTags(state: import("prosemirror-state").EditorState): any[];
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * Gets structured content tags by ID in the state.
3
3
  * @param {string | string[]} idOrIds
4
- * @param {EditorState} state Editor state.
4
+ * @param {import('prosemirror-state').EditorState} state Editor state.
5
5
  * @returns {Array}
6
6
  */
7
- export function getStructuredContentTagsById(idOrIds: string | string[], state: EditorState): any[];
8
- import { EditorState } from 'prosemirror-state';
7
+ export function getStructuredContentTagsById(idOrIds: string | string[], state: import("prosemirror-state").EditorState): any[];
@@ -1,4 +1,4 @@
1
- export function getParagraphContext($pos: any, cache: any): any;
1
+ export function getParagraphContext($pos: any, cache: any, helpers: any): any;
2
2
  export function flattenParagraph(paragraph: any, paragraphStartPos: any): any[];
3
3
  export function findNextTabIndex(flattened: any, fromIndex: any): any;
4
4
  export function findDecimalBreakPos(flattened: any, startIndex: any, breakChar: any): any;
@@ -9,4 +9,4 @@ export function getLeftCoord(view: any, pos: any): any;
9
9
  export function calcTabHeight(pos: any): string;
10
10
  export const defaultTabDistance: 48;
11
11
  export const defaultLineLength: 816;
12
- export function getTabDecorations(doc: any, view: any, from?: number, to?: any): any[];
12
+ export function getTabDecorations(doc: any, view: any, helpers: any, from?: number, to?: any): any[];
@@ -0,0 +1 @@
1
+ export * from "./table-of-contents.js";
@@ -0,0 +1,2 @@
1
+ export const TableOfContents: Node;
2
+ import { Node } from '@core/index.js';
@@ -422,6 +422,9 @@ to {
422
422
  a {
423
423
  text-decoration: auto;
424
424
  }
425
+ .super-editor a {
426
+ color: initial;
427
+ }
425
428
  /**
426
429
  * Basic ProseMirror styles.
427
430
  * https://github.com/ProseMirror/prosemirror-view/blob/master/style/prosemirror.css
@@ -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 { aw as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, az as vClickOutside, H as findParentNode, aA as getActiveFormatting, as as isInTable, aB as readFromClipboard, aC as handleClipboardPaste, aD as getFileObject, aE as runPropertyTranslators, aF as translator, aG as translator$1, aH as translator$2, aI as translator$3, aJ as translator$4, aK as translator$5, aL as translator$6, aM as translator$7, aN as translator$8, aO as translator$9, aP as translator$a, aQ as translator$b, aR as translator$c, aS as translator$d, aT as translator$e, aU as translator$f, aV as translator$g, aW as translator$h, aX as translator$i, aY as translator$j, aZ as translator$k, a_ as translator$l, a$ as translator$m, b0 as translator$n, b1 as translator$o, b2 as translator$p, b3 as translator$q, b4 as translator$r, b5 as translator$s, b6 as translator$t, b7 as translator$u, b8 as translator$v, b9 as translator$w, ba as translator$x, bb as translator$y, bc as translator$z, bd as translator$A, be as translator$B, bf as translator$C, bg as translator$D, bh as translator$E, bi as translator$F, bj as translator$G, bk as translator$H, bl as translator$I, bm as translator$J, bn as translator$K, bo as translator$L, bp as translator$M, bq as translator$N, br as translator$O, bs as translator$P, bt as translator$Q, bu as translator$R, bv as translator$S, bw as translator$T, bx as translator$U, by as translator$V, bz as translator$W, bA as translator$X, bB as translator$Y, bC as translator$Z, bD as translator$_, bE as translator$$, bF as translator$10, a as Plugin } from "./chunks/converter-DK1NMJZB.js";
13
- import { bG, a5, i, a2 } from "./chunks/converter-DK1NMJZB.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 shouldBypassContextMenu, 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-YR4uV-dp.js";
15
- import { n, C, o, T, l, p, m } from "./chunks/editor-YR4uV-dp.js";
12
+ import { ax as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aA as vClickOutside, H as findParentNode, aB as getActiveFormatting, at as isInTable, aC as readFromClipboard, aD as handleClipboardPaste, aE as getFileObject, aF as runPropertyTranslators, aG as translator, aH as translator$1, aI as translator$2, aJ as translator$3, aK as translator$4, aL as translator$5, aM as translator$6, aN as translator$7, aO as translator$8, aP as translator$9, aQ as translator$a, aR as translator$b, aS as translator$c, aT as translator$d, aU as translator$e, aV as translator$f, aW as translator$g, aX as translator$h, aY as translator$i, aZ as translator$j, a_ as translator$k, a$ as translator$l, b0 as translator$m, b1 as translator$n, b2 as translator$o, b3 as translator$p, b4 as translator$q, b5 as translator$r, b6 as translator$s, b7 as translator$t, b8 as translator$u, b9 as translator$v, ba as translator$w, bb as translator$x, bc as translator$y, bd as translator$z, be as translator$A, bf as translator$B, bg as translator$C, bh as translator$D, bi as translator$E, bj as translator$F, bk as translator$G, bl as translator$H, bm as translator$I, bn as translator$J, bo as translator$K, bp as translator$L, bq as translator$M, br as translator$N, bs as translator$O, bt as translator$P, bu as translator$Q, bv as translator$R, bw as translator$S, bx as translator$T, by as translator$U, bz as translator$V, bA as translator$W, bB as translator$X, bC as translator$Y, bD as translator$Z, bE as translator$_, bF as translator$$, bG as translator$10, bH as translator$11, bI as translator$12, a as Plugin } from "./chunks/converter-DFDRdFEB.js";
13
+ import { bJ, a5, i, a2 } from "./chunks/converter-DFDRdFEB.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 shouldBypassContextMenu, 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-BnpIdTLI.js";
15
+ import { n, C, o, T, l, p, m } from "./chunks/editor-BnpIdTLI.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-DzJyRvb0.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-5h-ljJ_h.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-CmK8TyNb.js";
19
+ import { D } from "./chunks/docx-zipper-CplUdgI9.js";
20
20
  import { createZip } from "./file-zipper.es.js";
21
21
  var eventemitter3 = { exports: {} };
22
22
  var hasRequiredEventemitter3;
@@ -4915,7 +4915,9 @@ const _sfc_main = {
4915
4915
  };
4916
4916
  const SuperInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4d5cff52"]]);
4917
4917
  const additionalHandlers = Object.freeze({
4918
- "mc:AlternateContent": translator$10,
4918
+ "mc:AlternateContent": translator$12,
4919
+ "sd:pageReference": translator$11,
4920
+ "sd:tableOfContents": translator$10,
4919
4921
  "w:b": translator$$,
4920
4922
  "w:bidiVisual": translator$_,
4921
4923
  "w:bookmarkEnd": translator$Z,
@@ -4996,7 +4998,7 @@ const Extensions = {
4996
4998
  export {
4997
4999
  AIWriter,
4998
5000
  n as AnnotatorHelpers,
4999
- bG as BasicUpload,
5001
+ bJ as BasicUpload,
5000
5002
  C as CommentsPluginKey,
5001
5003
  D as DocxZipper,
5002
5004
  Editor,
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-DzJyRvb0.js";
3
- import "./chunks/editor-YR4uV-dp.js";
2
+ import { T } from "./chunks/toolbar-5h-ljJ_h.js";
3
+ import "./chunks/editor-BnpIdTLI.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-DAP-fnHo.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-CFD0lcOY.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-_iVPQ8J8.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-DK3l03fz.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-DAP-fnHo.cjs");
4
- const superdoc = require("./chunks/index-nfoifSpX.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-CFD0lcOY.cjs");
4
+ const superdoc = require("./chunks/index-p73XAt11.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-_iVPQ8J8.es.js";
2
- import { D, H, P, S as S2, m, l } from "./chunks/index-B9sHxXr_.es.js";
1
+ import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-DK3l03fz.es.js";
2
+ import { D, H, P, S as S2, m, l } from "./chunks/index-Bbqhu9ev.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";