@harbour-enterprises/superdoc 0.20.0-next.7 → 0.20.0-next.9

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 (85) hide show
  1. package/dist/chunks/{PdfViewer-BYyZViQt.es.js → PdfViewer-BZlsmhsJ.es.js} +1 -1
  2. package/dist/chunks/{PdfViewer-DXtnxGoU.cjs → PdfViewer-BqGjx7hC.cjs} +1 -1
  3. package/dist/chunks/{index-CqLcgYHG.es.js → index-4GToG3C3.es.js} +2 -2
  4. package/dist/chunks/{index-CMBPzhIR.cjs → index-DPzgGSfg.cjs} +2 -2
  5. package/dist/chunks/{super-editor.es-5O71lyiI.cjs → super-editor.es-BkxUKZfn.cjs} +493 -639
  6. package/dist/chunks/{super-editor.es-BTalhwn-.es.js → super-editor.es-DqX3Ipsk.es.js} +493 -639
  7. package/dist/core/SuperDoc.d.ts.map +1 -1
  8. package/dist/super-editor/ai-writer.es.js +2 -2
  9. package/dist/super-editor/chunks/{converter-kutpjDQU.js → converter-C6YOTAXG.js} +246 -71
  10. package/dist/super-editor/chunks/{docx-zipper-BjcI24VU.js → docx-zipper-CSiwWpmr.js} +1 -1
  11. package/dist/super-editor/chunks/{editor-CQMKOaY4.js → editor-chVid4VD.js} +249 -570
  12. package/dist/super-editor/chunks/{toolbar-Cp6gL4i5.js → toolbar-ancqgN0p.js} +2 -2
  13. package/dist/super-editor/converter.es.js +1 -1
  14. package/dist/super-editor/docx-zipper.es.js +2 -2
  15. package/dist/super-editor/editor.es.js +3 -3
  16. package/dist/super-editor/file-zipper.es.js +1 -1
  17. package/dist/super-editor/src/core/super-converter/helpers.d.ts +2 -0
  18. package/dist/super-editor/src/core/super-converter/v2/importer/imageImporter.d.ts +1 -0
  19. package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts +1 -1
  20. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-helpers.d.ts +5 -0
  21. package/dist/super-editor/src/core/super-converter/v3/node-translator/node-translator.d.ts +9 -1
  22. package/dist/super-editor/src/extensions/block-node/block-node.d.ts +30 -5
  23. package/dist/super-editor/src/extensions/bold/bold.d.ts +20 -0
  24. package/dist/super-editor/src/extensions/bullet-list/bullet-list.d.ts +12 -0
  25. package/dist/super-editor/src/extensions/color/color.d.ts +26 -0
  26. package/dist/super-editor/src/extensions/content-block/content-block.d.ts +30 -0
  27. package/dist/super-editor/src/extensions/custom-selection/custom-selection.d.ts +16 -0
  28. package/dist/super-editor/src/extensions/document/document.d.ts +26 -0
  29. package/dist/super-editor/src/extensions/dropcursor/dropcursor.d.ts +26 -0
  30. package/dist/super-editor/src/extensions/font-family/font-family.d.ts +29 -0
  31. package/dist/super-editor/src/extensions/font-size/font-size.d.ts +21 -0
  32. package/dist/super-editor/src/extensions/format-commands/format-commands.d.ts +9 -0
  33. package/dist/super-editor/src/extensions/gapcursor/gapcursor.d.ts +9 -0
  34. package/dist/super-editor/src/extensions/heading/heading.d.ts +12 -6
  35. package/dist/super-editor/src/extensions/highlight/highlight.d.ts +20 -0
  36. package/dist/super-editor/src/extensions/history/history.d.ts +7 -15
  37. package/dist/super-editor/src/extensions/image/image.d.ts +78 -0
  38. package/dist/super-editor/src/extensions/image/imageHelpers/index.d.ts +1 -0
  39. package/dist/super-editor/src/extensions/image/imageHelpers/rotation.d.ts +4 -0
  40. package/dist/super-editor/src/extensions/italic/italic.d.ts +10 -0
  41. package/dist/super-editor/src/extensions/line-break/line-break.d.ts +43 -0
  42. package/dist/super-editor/src/extensions/line-height/line-height.d.ts +22 -0
  43. package/dist/super-editor/src/extensions/link/link.d.ts +53 -25
  44. package/dist/super-editor/src/extensions/linked-styles/linked-styles.d.ts +9 -0
  45. package/dist/super-editor/src/extensions/list-item/list-item.d.ts +48 -0
  46. package/dist/super-editor/src/extensions/mention/mention.d.ts +26 -0
  47. package/dist/super-editor/src/extensions/noderesizer/noderesizer.d.ts +14 -0
  48. package/dist/super-editor/src/extensions/ordered-list/ordered-list.d.ts +35 -0
  49. package/dist/super-editor/src/extensions/page-number/page-number.d.ts +52 -0
  50. package/dist/super-editor/src/extensions/paragraph/paragraph.d.ts +49 -0
  51. package/dist/super-editor/src/extensions/placeholder/placeholder.d.ts +15 -0
  52. package/dist/super-editor/src/extensions/popover-plugin/popover-plugin.d.ts +9 -0
  53. package/dist/super-editor/src/extensions/run-item/run-item.d.ts +24 -0
  54. package/dist/super-editor/src/extensions/search/search.d.ts +11 -2
  55. package/dist/super-editor/src/extensions/shape-container/shape-container.d.ts +29 -0
  56. package/dist/super-editor/src/extensions/shape-textbox/shape-textbox.d.ts +26 -0
  57. package/dist/super-editor/src/extensions/slash-menu/slash-menu.d.ts +9 -0
  58. package/dist/super-editor/src/extensions/strike/strike.d.ts +10 -0
  59. package/dist/super-editor/src/extensions/structured-content/StructuredContentBlockView.d.ts +0 -1
  60. package/dist/super-editor/src/extensions/structured-content/StructuredContentInlineView.d.ts +0 -1
  61. package/dist/super-editor/src/extensions/structured-content/StructuredContentViewBase.d.ts +1 -1
  62. package/dist/super-editor/src/extensions/structured-content/document-section.d.ts +46 -27
  63. package/dist/super-editor/src/extensions/structured-content/structured-content-block.d.ts +26 -0
  64. package/dist/super-editor/src/extensions/structured-content/structured-content.d.ts +26 -0
  65. package/dist/super-editor/src/extensions/tab/tab.d.ts +25 -0
  66. package/dist/super-editor/src/extensions/table/table.d.ts +112 -121
  67. package/dist/super-editor/src/extensions/table-cell/table-cell.d.ts +41 -0
  68. package/dist/super-editor/src/extensions/table-header/table-header.d.ts +22 -0
  69. package/dist/super-editor/src/extensions/table-row/table-row.d.ts +28 -0
  70. package/dist/super-editor/src/extensions/text/text.d.ts +14 -0
  71. package/dist/super-editor/src/extensions/text-align/text-align.d.ts +22 -0
  72. package/dist/super-editor/src/extensions/text-indent/text-indent.d.ts +19 -10
  73. package/dist/super-editor/src/extensions/text-style/text-style.d.ts +20 -0
  74. package/dist/super-editor/src/extensions/text-transform/text-transform.d.ts +20 -0
  75. package/dist/super-editor/src/extensions/underline/underline.d.ts +25 -0
  76. package/dist/super-editor/src/tests/helpers/editor-test-utils.d.ts +14 -0
  77. package/dist/super-editor/super-editor.es.js +6 -6
  78. package/dist/super-editor/toolbar.es.js +2 -2
  79. package/dist/super-editor.cjs +1 -1
  80. package/dist/super-editor.es.js +1 -1
  81. package/dist/superdoc.cjs +2 -2
  82. package/dist/superdoc.es.js +2 -2
  83. package/dist/superdoc.umd.js +493 -639
  84. package/dist/superdoc.umd.js.map +1 -1
  85. package/package.json +1 -1
@@ -1,2 +1,16 @@
1
+ /**
2
+ * Configuration options for Text
3
+ * @typedef {Object} TextOptions
4
+ * @category Options
5
+ */
6
+ /**
7
+ * @module Text
8
+ * @sidebarTitle Text
9
+ * @snippetPath /snippets/extensions/text.mdx
10
+ */
1
11
  export const Text: Node;
12
+ /**
13
+ * Configuration options for Text
14
+ */
15
+ export type TextOptions = any;
2
16
  import { Node } from '@core/index.js';
@@ -1,3 +1,17 @@
1
+ /**
2
+ * Configuration options for TextAlign
3
+ * @typedef {Object} TextAlignOptions
4
+ * @category Options
5
+ * @property {string[]} [types=['heading', 'paragraph']] - Node types to apply alignment to
6
+ * @property {string[]} [alignments=['left', 'center', 'right', 'justify']] - Available alignment options
7
+ * @property {string} [defaultAlignment='left'] - Default text alignment
8
+ */
9
+ /**
10
+ * Attributes for text alignment
11
+ * @typedef {Object} TextAlignAttributes
12
+ * @category Attributes
13
+ * @property {string} [textAlign='left'] - Text alignment value (left, center, right, justify)
14
+ */
1
15
  /**
2
16
  * @module TextAlign
3
17
  * @sidebarTitle Text Align
@@ -8,4 +22,12 @@
8
22
  * @shortcut Mod-Shift-j | setTextAlign('justify') | Justify text
9
23
  */
10
24
  export const TextAlign: Extension;
25
+ /**
26
+ * Configuration options for TextAlign
27
+ */
28
+ export type TextAlignOptions = any;
29
+ /**
30
+ * Attributes for text alignment
31
+ */
32
+ export type TextAlignAttributes = any;
11
33
  import { Extension } from '@core/index.js';
@@ -1,7 +1,17 @@
1
1
  /**
2
- * Text indent configuration
3
- * @typedef {Object} IndentConfig
4
- * @property {string} indent - Indent value with unit (e.g., '0.5in', '1cm')
2
+ * Configuration options for TextIndent
3
+ * @typedef {Object} TextIndentOptions
4
+ * @category Options
5
+ * @property {string[]} [types=['heading', 'paragraph']] - Node types to apply indentation to
6
+ * @property {Object} [defaults] - Default indentation settings
7
+ * @property {string} [defaults.unit='in'] - Default unit for indentation (in, cm, px, etc.)
8
+ * @property {number} [defaults.increment=0.125] - Default increment/decrement value
9
+ */
10
+ /**
11
+ * Attributes for text indentation
12
+ * @typedef {Object} TextIndentAttributes
13
+ * @category Attributes
14
+ * @property {string} [textIndent] - Text indentation value with unit (e.g., '0.5in')
5
15
  */
6
16
  /**
7
17
  * @module TextIndent
@@ -10,12 +20,11 @@
10
20
  */
11
21
  export const TextIndent: Extension;
12
22
  /**
13
- * Text indent configuration
23
+ * Configuration options for TextIndent
24
+ */
25
+ export type TextIndentOptions = any;
26
+ /**
27
+ * Attributes for text indentation
14
28
  */
15
- export type IndentConfig = {
16
- /**
17
- * - Indent value with unit (e.g., '0.5in', '1cm')
18
- */
19
- indent: string;
20
- };
29
+ export type TextIndentAttributes = any;
21
30
  import { Extension } from '@core/index.js';
@@ -1,7 +1,27 @@
1
+ /**
2
+ * Configuration options for TextStyle
3
+ * @typedef {Object} TextStyleOptions
4
+ * @category Options
5
+ * @property {Object} [htmlAttributes={}] - Custom HTML attributes to apply to text style spans
6
+ */
7
+ /**
8
+ * Attributes for text style marks
9
+ * @typedef {Object} TextStyleAttributes
10
+ * @category Attributes
11
+ * @property {string} [styleId] - Style identifier for referencing predefined styles
12
+ */
1
13
  /**
2
14
  * @module TextStyle
3
15
  * @sidebarTitle Text Style
4
16
  * @snippetPath /snippets/extensions/text-style.mdx
5
17
  */
6
18
  export const TextStyle: Mark;
19
+ /**
20
+ * Configuration options for TextStyle
21
+ */
22
+ export type TextStyleOptions = any;
23
+ /**
24
+ * Attributes for text style marks
25
+ */
26
+ export type TextStyleAttributes = any;
7
27
  import { Mark } from '@core/index.js';
@@ -1,7 +1,27 @@
1
+ /**
2
+ * Configuration options for TextTransform
3
+ * @typedef {Object} TextTransformOptions
4
+ * @category Options
5
+ * @property {string[]} [types=['textStyle']] - Mark types to apply text transform to
6
+ */
7
+ /**
8
+ * Attributes for text transform
9
+ * @typedef {Object} TextTransformAttributes
10
+ * @category Attributes
11
+ * @property {string} [textTransform] - Text transform value (uppercase, lowercase, capitalize, none)
12
+ */
1
13
  /**
2
14
  * @module TextTransform
3
15
  * @sidebarTitle Text Transform
4
16
  * @snippetPath /snippets/extensions/text-transform.mdx
5
17
  */
6
18
  export const TextTransform: Extension;
19
+ /**
20
+ * Configuration options for TextTransform
21
+ */
22
+ export type TextTransformOptions = any;
23
+ /**
24
+ * Attributes for text transform
25
+ */
26
+ export type TextTransformAttributes = any;
7
27
  import { Extension } from '@core/index.js';
@@ -1,3 +1,20 @@
1
+ /**
2
+ * Underline style configuration
3
+ * @typedef {Object} UnderlineConfig
4
+ * @property {'single'|'double'|'thick'|'dotted'|'dashed'|'wavy'} value - Style variant
5
+ */
6
+ /**
7
+ * Configuration options for Underline
8
+ * @typedef {Object} UnderlineOptions
9
+ * @category Options
10
+ * @property {Object} [htmlAttributes={}] - HTML attributes for underline elements
11
+ */
12
+ /**
13
+ * Attributes for underline marks
14
+ * @typedef {Object} UnderlineAttributes
15
+ * @category Attributes
16
+ * @property {UnderlineConfig} [underlineType='single'] - Style of underline
17
+ */
1
18
  /**
2
19
  * @module Underline
3
20
  * @sidebarTitle Underline
@@ -15,4 +32,12 @@ export type UnderlineConfig = {
15
32
  */
16
33
  value: "single" | "double" | "thick" | "dotted" | "dashed" | "wavy";
17
34
  };
35
+ /**
36
+ * Configuration options for Underline
37
+ */
38
+ export type UnderlineOptions = any;
39
+ /**
40
+ * Attributes for underline marks
41
+ */
42
+ export type UnderlineAttributes = any;
18
43
  import { Mark } from '@core/index.js';
@@ -0,0 +1,14 @@
1
+ export function createTestEditor(options?: {
2
+ extensions: any[];
3
+ content: any;
4
+ editorOptions: any;
5
+ }): Editor;
6
+ export function createMinimalTestEditor(extensions?: any[], options?: any): Editor;
7
+ export function createDocxTestEditor(options?: any): Editor;
8
+ export function getNodeFromEditor(editor: Editor, nodeType: string, pos?: number): Node | null;
9
+ export function insertText(editor: Editor, text: string, pos?: number): void;
10
+ export function createTransaction(editor: Editor): Transaction;
11
+ export function applyTransaction(editor: Editor, tr: Transaction): void;
12
+ export function getEditorJSON(editor: Editor): any;
13
+ export function setEditorContent(editor: Editor, content: any): void;
14
+ import { Editor } from '@core/Editor.js';
@@ -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, aq as isInTable, aB as readFromClipboard, aC as handleClipboardPaste, aD as getFileObject, a as Plugin } from "./chunks/converter-kutpjDQU.js";
13
- import { aE, a5, i, a2, aF } from "./chunks/converter-kutpjDQU.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-CQMKOaY4.js";
15
- import { n, C, o, T, l, p, m } from "./chunks/editor-CQMKOaY4.js";
12
+ import { aw as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, az as vClickOutside, H as findParentNode, aA as getActiveFormatting, aq as isInTable, aB as readFromClipboard, aC as handleClipboardPaste, aD as getFileObject, a as Plugin } from "./chunks/converter-C6YOTAXG.js";
13
+ import { aE, a5, i, a2, aF } from "./chunks/converter-C6YOTAXG.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-chVid4VD.js";
15
+ import { n, C, o, T, l, p, m } from "./chunks/editor-chVid4VD.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-Cp6gL4i5.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-ancqgN0p.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-BjcI24VU.js";
19
+ import { D } from "./chunks/docx-zipper-CSiwWpmr.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-Cp6gL4i5.js";
3
- import "./chunks/editor-CQMKOaY4.js";
2
+ import { T } from "./chunks/toolbar-ancqgN0p.js";
3
+ import "./chunks/editor-chVid4VD.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-5O71lyiI.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-BkxUKZfn.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-BTalhwn-.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-DqX3Ipsk.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-5O71lyiI.cjs");
4
- const superdoc = require("./chunks/index-CMBPzhIR.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-BkxUKZfn.cjs");
4
+ const superdoc = require("./chunks/index-DPzgGSfg.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-BTalhwn-.es.js";
2
- import { D, H, P, S as S2, m, l } from "./chunks/index-CqLcgYHG.es.js";
1
+ import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-DqX3Ipsk.es.js";
2
+ import { D, H, P, S as S2, m, l } from "./chunks/index-4GToG3C3.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";