@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,7 +1,85 @@
1
+ /**
2
+ * Configuration options for Image
3
+ * @typedef {Object} ImageOptions
4
+ * @category Options
5
+ * @property {boolean} [allowBase64=true] - Allow base64 encoded images
6
+ * @property {Object} [htmlAttributes] - Default HTML attributes for image elements
7
+ */
8
+ /**
9
+ * Attributes for image nodes
10
+ * @typedef {Object} ImageAttributes
11
+ * @category Attributes
12
+ * @property {string} [src] - Image source URL or path
13
+ * @property {string} [alt='Uploaded picture'] - Alternative text for accessibility
14
+ * @property {string} [title] - Image title/tooltip text
15
+ * @property {Object} [size] - Image dimensions
16
+ * @property {number} [size.width] - Width in pixels
17
+ * @property {number} [size.height] - Height in pixels
18
+ * @property {Object} [padding] - Image padding/margins
19
+ * @property {number} [padding.left] - Left padding in pixels
20
+ * @property {number} [padding.top] - Top padding in pixels
21
+ * @property {number} [padding.bottom] - Bottom padding in pixels
22
+ * @property {number} [padding.right] - Right padding in pixels
23
+ * @property {Object} [marginOffset] - Margin offset for anchored images
24
+ * @property {number} [marginOffset.left] - Left margin offset
25
+ * @property {number} [marginOffset.top] - Top margin offset
26
+ * @property {string} [style] - Custom inline CSS styles
27
+ * @property {string} [id] @internal Image element ID
28
+ * @property {string} [rId] @internal Relationship ID for Word export
29
+ * @property {Object} [originalPadding] @internal Original padding values from Word import
30
+ * @property {Object} [originalAttributes] @internal Original attributes from Word import
31
+ * @property {boolean} [wrapTopAndBottom] @internal Wrap text above and below image
32
+ * @property {Object} [anchorData] @internal Anchor positioning data for Word
33
+ * @property {boolean} [isAnchor] @internal Whether image is anchored
34
+ * @property {boolean} [simplePos] @internal Simple positioning flag
35
+ * @property {string} [wrapText] @internal Text wrapping style
36
+ */
37
+ /**
38
+ * Options for inserting an image
39
+ * @typedef {Object} ImageInsertOptions
40
+ * @property {string} src - Image source URL or data URI
41
+ * @property {string} [alt] - Alternative text
42
+ * @property {string} [title] - Image title
43
+ * @property {Object} [size] - Image dimensions
44
+ * @property {number} [size.width] - Width in pixels
45
+ * @property {number} [size.height] - Height in pixels
46
+ */
1
47
  /**
2
48
  * @module Image
3
49
  * @sidebarTitle Image
4
50
  * @snippetPath /snippets/extensions/image.mdx
5
51
  */
6
52
  export const Image: Node;
53
+ /**
54
+ * Configuration options for Image
55
+ */
56
+ export type ImageOptions = any;
57
+ /**
58
+ * Attributes for image nodes
59
+ */
60
+ export type ImageAttributes = any;
61
+ /**
62
+ * Options for inserting an image
63
+ */
64
+ export type ImageInsertOptions = {
65
+ /**
66
+ * - Image source URL or data URI
67
+ */
68
+ src: string;
69
+ /**
70
+ * - Alternative text
71
+ */
72
+ alt?: string;
73
+ /**
74
+ * - Image title
75
+ */
76
+ title?: string;
77
+ /**
78
+ * - Image dimensions
79
+ */
80
+ size?: {
81
+ width?: number;
82
+ height?: number;
83
+ };
84
+ };
7
85
  import { Node } from '@core/index.js';
@@ -5,3 +5,4 @@ export * from "./imageRegistrationPlugin.js";
5
5
  export * from "./processUploadedImage.js";
6
6
  export * from "./imagePositionPlugin.js";
7
7
  export * from "./fileNameUtils.js";
8
+ export * from "./rotation.js";
@@ -0,0 +1,4 @@
1
+ export function getRotationMargins(w: any, h: any, angleDegrees: any): {
2
+ horizontal: number;
3
+ vertical: number;
4
+ };
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Configuration options for Italic
3
+ * @typedef {Object} ItalicOptions
4
+ * @category Options
5
+ * @property {Object} [htmlAttributes={}] - HTML attributes for italic elements
6
+ */
1
7
  /**
2
8
  * @module Italic
3
9
  * @sidebarTitle Italic
@@ -6,4 +12,8 @@
6
12
  * @shortcut Mod-I | toggleItalic | Toggle italic formatting (uppercase)
7
13
  */
8
14
  export const Italic: Mark;
15
+ /**
16
+ * Configuration options for Italic
17
+ */
18
+ export type ItalicOptions = any;
9
19
  import { Mark } from '@core/index.js';
@@ -1,13 +1,56 @@
1
+ /**
2
+ * Configuration options for LineBreak
3
+ * @typedef {Object} LineBreakOptions
4
+ * @category Options
5
+ */
6
+ /**
7
+ * Attributes for line break nodes
8
+ * @typedef {Object} LineBreakAttributes
9
+ * @category Attributes
10
+ * @property {string} [lineBreakType] @internal Type of line break - passthrough in this node
11
+ * @property {string} [clear] @internal Clear attribute - passthrough in this node
12
+ */
1
13
  /**
2
14
  * @module LineBreak
3
15
  * @sidebarTitle Line Break
4
16
  * @snippetPath /snippets/extensions/line-break.mdx
5
17
  */
6
18
  export const LineBreak: Node;
19
+ /**
20
+ * Configuration options for HardBreak
21
+ * @typedef {Object} HardBreakOptions
22
+ * @category Options
23
+ * @property {Object} [htmlAttributes] - HTML attributes for the break element
24
+ */
25
+ /**
26
+ * Attributes for hard break nodes
27
+ * @typedef {Object} HardBreakAttributes
28
+ * @category Attributes
29
+ * @property {string} [pageBreakSource] @internal Source of the page break
30
+ * @property {string} [pageBreakType] @internal Type of page break
31
+ * @property {string} [lineBreakType] @internal Type of line break - passthrough in this node
32
+ * @property {string} [clear] @internal Clear attribute - passthrough in this node
33
+ */
7
34
  /**
8
35
  * @module HardBreak
9
36
  * @sidebarTitle Hard Break
10
37
  * @snippetPath /snippets/extensions/hard-break.mdx
11
38
  */
12
39
  export const HardBreak: Node;
40
+ /**
41
+ * Configuration options for LineBreak
42
+ */
43
+ export type LineBreakOptions = any;
44
+ /**
45
+ * Attributes for line break nodes
46
+ */
47
+ export type LineBreakAttributes = any;
48
+ /**
49
+ * Configuration options for HardBreak
50
+ */
51
+ export type HardBreakOptions = any;
52
+ /**
53
+ * Attributes for hard break nodes
54
+ */
55
+ export type HardBreakAttributes = any;
13
56
  import { Node } from '@core/index.js';
@@ -3,6 +3,20 @@
3
3
  * @typedef {string|number} LineHeightValue
4
4
  * @description Line height as number (1.5) or string with unit ('1.5em', '24px')
5
5
  */
6
+ /**
7
+ * Configuration options for LineHeight
8
+ * @typedef {Object} LineHeightOptions
9
+ * @category Options
10
+ * @property {string[]} [types=['heading', 'paragraph']] - Block types to add line height support to
11
+ * @property {Object} [defaults] - Default configuration
12
+ * @property {string} [defaults.unit=''] - Default unit for line height values
13
+ */
14
+ /**
15
+ * Attributes for line height
16
+ * @typedef {Object} LineHeightAttributes
17
+ * @category Attributes
18
+ * @property {LineHeightValue} [lineHeight] - Line height value
19
+ */
6
20
  /**
7
21
  * @module LineHeight
8
22
  * @sidebarTitle Line Height
@@ -13,4 +27,12 @@ export const LineHeight: Extension;
13
27
  * Line height value
14
28
  */
15
29
  export type LineHeightValue = string | number;
30
+ /**
31
+ * Configuration options for LineHeight
32
+ */
33
+ export type LineHeightOptions = any;
34
+ /**
35
+ * Attributes for line height
36
+ */
37
+ export type LineHeightAttributes = any;
16
38
  import { Extension } from '@core/index.js';
@@ -1,3 +1,39 @@
1
+ /**
2
+ * Target frame options
3
+ * @typedef {'_top' | '_self' | '_parent' | '_blank' | string} TargetFrameOptions
4
+ */
5
+ /**
6
+ * Configuration options for Link
7
+ * @typedef {Object} LinkOptions
8
+ * @category Options
9
+ * @property {string[]} [protocols=['http', 'https']] - Allowed URL protocols
10
+ * @property {Object} [htmlAttributes] - HTML attributes for link elements
11
+ * @property {string} [htmlAttributes.target=null] - Default link target
12
+ * @property {string} [htmlAttributes.rel='noopener noreferrer nofollow'] - Default rel attribute
13
+ * @property {string} [htmlAttributes.class=null] - CSS class
14
+ * @property {string} [htmlAttributes.title=null] - Title attribute
15
+ */
16
+ /**
17
+ * Attributes for link marks
18
+ * @typedef {Object} LinkAttributes
19
+ * @category Attributes
20
+ * @property {string} [href] - URL or anchor reference
21
+ * @property {TargetFrameOptions} [target='_blank'] - Link target window
22
+ * @property {string} [rel='noopener noreferrer nofollow'] - Relationship attributes
23
+ * @property {string} [text] - Display text for the link
24
+ * @property {string} [name] - Anchor name for internal references
25
+ * @property {boolean} [history=true] - Whether to add to viewed hyperlinks list
26
+ * @property {string} [anchor] - Bookmark target name (ignored if rId and href specified)
27
+ * @property {string} [docLocation] - Location in target hyperlink
28
+ * @property {string} [tooltip] - Tooltip for the link
29
+ * @property {string} [rId] @internal Word relationship ID for internal links
30
+ */
31
+ /**
32
+ * Link options for setLink command
33
+ * @typedef {Object} SetLinkOptions
34
+ * @property {string} [href] - URL for the link
35
+ * @property {string} [text] - Display text (uses selection if omitted)
36
+ */
1
37
  /**
2
38
  * @module Link
3
39
  * @sidebarTitle Link
@@ -6,36 +42,28 @@
6
42
  */
7
43
  export const Link: Mark;
8
44
  /**
9
- * Link attributes
45
+ * Target frame options
10
46
  */
11
- export type LinkAttributes = {
12
- /**
13
- * - URL or anchor reference
14
- */
15
- href: string;
16
- /**
17
- * - Link target
18
- */
19
- target?: string;
20
- /**
21
- * - Relationship attributes
22
- */
23
- rel?: string;
47
+ export type TargetFrameOptions = "_top" | "_self" | "_parent" | "_blank" | string;
48
+ /**
49
+ * Configuration options for Link
50
+ */
51
+ export type LinkOptions = any;
52
+ /**
53
+ * Attributes for link marks
54
+ */
55
+ export type LinkAttributes = any;
56
+ /**
57
+ * Link options for setLink command
58
+ */
59
+ export type SetLinkOptions = {
24
60
  /**
25
- * - Word relationship ID for internal links
61
+ * - URL for the link
26
62
  */
27
- rId?: string;
63
+ href?: string;
28
64
  /**
29
- * - Display text for the link
65
+ * - Display text (uses selection if omitted)
30
66
  */
31
67
  text?: string;
32
- /**
33
- * - Anchor name for internal references
34
- */
35
- name?: string;
36
68
  };
37
- /**
38
- * Target frame options
39
- */
40
- export type TargetFrameOptions = "_top" | "_self" | "_parent" | "_blank" | string;
41
69
  import { Mark } from '@core/index.js';
@@ -5,6 +5,11 @@
5
5
  * @property {string} type - Style type ('paragraph' or 'character')
6
6
  * @property {Object} definition - Style definition from Word
7
7
  */
8
+ /**
9
+ * Configuration options for LinkedStyles
10
+ * @typedef {Object} LinkedStylesOptions
11
+ * @category Options
12
+ */
8
13
  /**
9
14
  * @module LinkedStyles
10
15
  * @sidebarTitle Linked Styles
@@ -28,4 +33,8 @@ export type LinkedStyle = {
28
33
  */
29
34
  definition: any;
30
35
  };
36
+ /**
37
+ * Configuration options for LinkedStyles
38
+ */
39
+ export type LinkedStylesOptions = any;
31
40
  import { Extension } from '@core/Extension.js';
@@ -1,2 +1,50 @@
1
+ /**
2
+ * Configuration options for ListItem
3
+ * @typedef {Object} ListItemOptions
4
+ * @category Options
5
+ * @property {Object} [htmlAttributes] - HTML attributes for list item elements
6
+ * @property {string} [bulletListTypeName='bulletList'] - Name of bullet list node type
7
+ * @property {string} [orderedListTypeName='orderedList'] - Name of ordered list node type
8
+ */
9
+ /**
10
+ * Attributes for list item nodes
11
+ * @typedef {Object} ListItemAttributes
12
+ * @category Attributes
13
+ * @property {string} [markerType] - Virtual attribute for marker display
14
+ * @property {string} [lvlText] - Level text template for numbering
15
+ * @property {string} [listNumberingType] - Numbering format type
16
+ * @property {Array} [listLevel] - List level hierarchy
17
+ * @property {string} [lvlJc] - Level justification (left, right, center)
18
+ * @property {Object} [listParagraphProperties] - Indentation and spacing info
19
+ * @property {Object} [listRunProperties] - Run properties for list item
20
+ * @property {string} [numId] - Numbering definition ID
21
+ * @property {string} [numPrType='inline'] - Numbering properties type
22
+ * @property {string} [level] - Current nesting level
23
+ * @property {Object} [attributes] - Additional attributes
24
+ * @property {Object} [spacing] - Spacing configuration
25
+ * @property {Object} [indent] - Indentation settings
26
+ * @property {Object} [markerStyle] - Marker styling
27
+ * @property {string} [styleId] - Linked style ID
28
+ * @property {string} [customFormat] - Custom numbering format
29
+ * @property {string} [importedFontFamily] - Font family from import
30
+ * @property {string} [importedFontSize] - Font size from import
31
+ */
32
+ /**
33
+ * @module ListItem
34
+ * @sidebarTitle List Item
35
+ * @snippetPath /snippets/extensions/list-item.mdx
36
+ * @shortcut Enter | splitListItem | Split list item at cursor
37
+ * @shortcut Shift-Enter | createParagraphNear | Create paragraph in list
38
+ * @shortcut Tab | increaseListIndent | Increase list indentation
39
+ * @shortcut Shift-Tab | decreaseListIndent | Decrease list indentation
40
+ */
1
41
  export const ListItem: Node;
42
+ /**
43
+ * Configuration options for ListItem
44
+ */
45
+ export type ListItemOptions = any;
46
+ /**
47
+ * Attributes for list item nodes
48
+ */
49
+ export type ListItemAttributes = any;
2
50
  import { Node } from '@core/index.js';
@@ -1,2 +1,28 @@
1
+ /**
2
+ * Configuration options for Mention
3
+ * @typedef {Object} MentionOptions
4
+ * @category Options
5
+ * @property {Object} [htmlAttributes] - HTML attributes for mention elements
6
+ */
7
+ /**
8
+ * Attributes for mention nodes
9
+ * @typedef {Object} MentionAttributes
10
+ * @category Attributes
11
+ * @property {string} [name=null] - Display name of the mentioned person
12
+ * @property {string} [email=null] - Email address of the mentioned person
13
+ */
14
+ /**
15
+ * @module Mention
16
+ * @sidebarTitle Mention
17
+ * @snippetPath /snippets/extensions/mention.mdx
18
+ */
1
19
  export const Mention: Node;
20
+ /**
21
+ * Configuration options for Mention
22
+ */
23
+ export type MentionOptions = any;
24
+ /**
25
+ * Attributes for mention nodes
26
+ */
27
+ export type MentionAttributes = any;
2
28
  import { Node } from '@core/index.js';
@@ -1,4 +1,18 @@
1
+ /**
2
+ * Configuration options for NodeResizer
3
+ * @typedef {Object} NodeResizerOptions
4
+ * @category Options
5
+ */
1
6
  export const NodeResizerKey: PluginKey<any>;
7
+ /**
8
+ * @module NodeResizer
9
+ * @sidebarTitle Node Resizer
10
+ * @snippetPath /snippets/extensions/node-resizer.mdx
11
+ */
2
12
  export const NodeResizer: Extension;
13
+ /**
14
+ * Configuration options for NodeResizer
15
+ */
16
+ export type NodeResizerOptions = any;
3
17
  import { PluginKey } from 'prosemirror-state';
4
18
  import { Extension } from '@core/Extension.js';
@@ -1,2 +1,37 @@
1
+ /**
2
+ * Configuration options for OrderedList
3
+ * @typedef {Object} OrderedListOptions
4
+ * @category Options
5
+ * @property {string} [itemTypeName='listItem'] - Name of list item node type
6
+ * @property {Object} [htmlAttributes] - HTML attributes for ordered list elements
7
+ * @property {boolean} [keepMarks=true] - Whether to preserve marks when creating lists
8
+ * @property {boolean} [keepAttributes=false] - Whether to preserve attributes
9
+ * @property {Array<string>} [listStyleTypes=['decimal', 'lowerAlpha', 'lowerRoman']] - Available list style types
10
+ */
11
+ /**
12
+ * Attributes for ordered list nodes
13
+ * @typedef {Object} OrderedListAttributes
14
+ * @category Attributes
15
+ * @property {number} [order=1] - Starting number for the list
16
+ * @property {string} [sdBlockId] - Block identifier for tracking
17
+ * @property {string} [syncId] - Synchronization identifier
18
+ * @property {string} [listId] - List identifier
19
+ * @property {string} [list-style-type='decimal'] - List style type (decimal, lowerAlpha, lowerRoman)
20
+ * @property {Object} [attributes] - Additional attributes
21
+ */
22
+ /**
23
+ * @module OrderedList
24
+ * @sidebarTitle Ordered List
25
+ * @snippetPath /snippets/extensions/ordered-list.mdx
26
+ * @shortcut Mod-Shift-7 | toggleOrderedList | Toggle ordered list
27
+ */
1
28
  export const OrderedList: Node;
29
+ /**
30
+ * Configuration options for OrderedList
31
+ */
32
+ export type OrderedListOptions = any;
33
+ /**
34
+ * Attributes for ordered list nodes
35
+ */
36
+ export type OrderedListAttributes = any;
2
37
  import { Node } from '@core/index.js';
@@ -1,4 +1,40 @@
1
+ /**
2
+ * Configuration options for PageNumber
3
+ * @typedef {Object} PageNumberOptions
4
+ * @category Options
5
+ * @property {Object} [htmlAttributes] - HTML attributes for page number elements
6
+ */
7
+ /**
8
+ * Attributes for page number nodes
9
+ * @typedef {Object} PageNumberAttributes
10
+ * @category Attributes
11
+ * @property {Array} [marksAsAttrs=null] @internal - Internal marks storage
12
+ */
13
+ /**
14
+ * @module PageNumber
15
+ * @sidebarTitle Page Number
16
+ * @snippetPath /snippets/extensions/page-number.mdx
17
+ * @shortcut Mod-Shift-alt-p | addAutoPageNumber | Insert page number
18
+ */
1
19
  export const PageNumber: Node;
20
+ /**
21
+ * Configuration options for TotalPageCount
22
+ * @typedef {Object} TotalPageCountOptions
23
+ * @category Options
24
+ * @property {Object} [htmlAttributes] - HTML attributes for total page count elements
25
+ */
26
+ /**
27
+ * Attributes for total page count nodes
28
+ * @typedef {Object} TotalPageCountAttributes
29
+ * @category Attributes
30
+ * @property {Array} [marksAsAttrs=null] @internal - Internal marks storage
31
+ */
32
+ /**
33
+ * @module TotalPageCount
34
+ * @sidebarTitle Total Page Count
35
+ * @snippetPath /snippets/extensions/total-page-count.mdx
36
+ * @shortcut Mod-Shift-alt-c | addTotalPageCount | Insert total page count
37
+ */
2
38
  export const TotalPageCount: Node;
3
39
  export class AutoPageNumberNodeView {
4
40
  constructor(node: any, getPos: any, decorations: any, editor: any, htmlAttributes?: {});
@@ -10,4 +46,20 @@ export class AutoPageNumberNodeView {
10
46
  update(node: any): boolean;
11
47
  #private;
12
48
  }
49
+ /**
50
+ * Configuration options for PageNumber
51
+ */
52
+ export type PageNumberOptions = any;
53
+ /**
54
+ * Attributes for page number nodes
55
+ */
56
+ export type PageNumberAttributes = any;
57
+ /**
58
+ * Configuration options for TotalPageCount
59
+ */
60
+ export type TotalPageCountOptions = any;
61
+ /**
62
+ * Attributes for total page count nodes
63
+ */
64
+ export type TotalPageCountAttributes = any;
13
65
  import { Node } from '@core/index.js';
@@ -1,2 +1,51 @@
1
+ /**
2
+ * Configuration options for Paragraph
3
+ * @typedef {Object} ParagraphOptions
4
+ * @category Options
5
+ * @property {number[]} [headingLevels=[1,2,3,4,5,6]] - Supported heading levels
6
+ * @property {Object} [htmlAttributes={}] - HTML attributes for paragraph elements
7
+ */
8
+ /**
9
+ * Attributes for paragraph nodes
10
+ * @typedef {Object} ParagraphAttributes
11
+ * @category Attributes
12
+ * @property {Object} [spacing] - Paragraph spacing configuration
13
+ * @property {Object} [extraAttrs={}] - Additional HTML attributes
14
+ * @property {Array} [marksAttrs] - Text formatting marks
15
+ * @property {Object} [indent] - Indentation settings
16
+ * @property {Object} [borders] - Paragraph borders
17
+ * @property {string} [class] - CSS class name
18
+ * @property {string} [styleId] - Linked style identifier
19
+ * @property {Object} [justify] - Text justification
20
+ * @property {Array} [tabStops] - Tab stop positions
21
+ * @property {string} [sdBlockId] @internal - Internal block tracking ID
22
+ * @property {string} [paraId] @internal - Paragraph identifier
23
+ * @property {string} [textId] @internal - Text identifier
24
+ * @property {string} [rsidR] @internal - Revision save ID
25
+ * @property {string} [rsidRDefault] @internal - Default revision save ID
26
+ * @property {string} [rsidP] @internal - Paragraph revision save ID
27
+ * @property {string} [rsidRPr] @internal - Run properties revision save ID
28
+ * @property {string} [rsidDel] @internal - Deletion revision save ID
29
+ * @property {Object} [attributes] @internal - Internal attributes storage
30
+ * @property {string} [filename] @internal - Associated filename
31
+ * @property {boolean} [keepLines] @internal - Keep lines together
32
+ * @property {boolean} [keepNext] @internal - Keep with next paragraph
33
+ * @property {Object} [paragraphProperties] @internal - Internal paragraph properties
34
+ * @property {Object} [dropcap] @internal - Drop cap configuration
35
+ * @property {string} [pageBreakSource] @internal - Page break source
36
+ */
37
+ /**
38
+ * @module Paragraph
39
+ * @sidebarTitle Paragraph
40
+ * @snippetPath /snippets/extensions/paragraph.mdx
41
+ */
1
42
  export const Paragraph: OxmlNode;
43
+ /**
44
+ * Configuration options for Paragraph
45
+ */
46
+ export type ParagraphOptions = any;
47
+ /**
48
+ * Attributes for paragraph nodes
49
+ */
50
+ export type ParagraphAttributes = any;
2
51
  import { OxmlNode } from '@core/index.js';
@@ -1,2 +1,17 @@
1
+ /**
2
+ * Configuration options for Placeholder
3
+ * @typedef {Object} PlaceholderOptions
4
+ * @category Options
5
+ * @property {string} [placeholder='Type something...'] - Placeholder text to display when editor is empty
6
+ */
7
+ /**
8
+ * @module Placeholder
9
+ * @sidebarTitle Placeholder
10
+ * @snippetPath /snippets/extensions/placeholder.mdx
11
+ */
1
12
  export const Placeholder: Extension;
13
+ /**
14
+ * Configuration options for Placeholder
15
+ */
16
+ export type PlaceholderOptions = any;
2
17
  import { Extension } from '@core/Extension.js';
@@ -1,2 +1,11 @@
1
+ /**
2
+ * @module PopoverPlugin
3
+ * @sidebarTitle Popover Plugin
4
+ * @snippetPath /snippets/extensions/popover-plugin.mdx
5
+ */
1
6
  export const PopoverPlugin: Extension;
7
+ /**
8
+ * Configuration options for PopoverPlugin
9
+ */
10
+ export type PopoverPluginOptions = any;
2
11
  import { Extension } from '@core/Extension.js';
@@ -1,2 +1,26 @@
1
+ /**
2
+ * Configuration options for RunItem
3
+ * @typedef {Object} RunItemOptions
4
+ * @category Options
5
+ */
6
+ /**
7
+ * Attributes for run nodes
8
+ * @typedef {Object} RunItemAttributes
9
+ * @category Attributes
10
+ * @property {Object} [attributes] @internal - Internal attributes storage
11
+ */
12
+ /**
13
+ * @module RunItem
14
+ * @sidebarTitle Run Item
15
+ * @snippetPath /snippets/extensions/run-item.mdx
16
+ */
1
17
  export const RunItem: Node;
18
+ /**
19
+ * Configuration options for RunItem
20
+ */
21
+ export type RunItemOptions = any;
22
+ /**
23
+ * Attributes for run nodes
24
+ */
25
+ export type RunItemAttributes = any;
2
26
  import { Node } from '@core/index.js';
@@ -1,11 +1,16 @@
1
1
  /**
2
- * Search match Object
2
+ * Search match object
3
3
  * @typedef {Object} SearchMatch
4
4
  * @property {string} text - Found text
5
5
  * @property {number} from - From position
6
6
  * @property {number} to - To position
7
7
  * @property {string} id - ID of the search match
8
8
  */
9
+ /**
10
+ * Configuration options for Search
11
+ * @typedef {Object} SearchOptions
12
+ * @category Options
13
+ */
9
14
  /**
10
15
  * @module Search
11
16
  * @sidebarTitle Search
@@ -13,7 +18,7 @@
13
18
  */
14
19
  export const Search: Extension;
15
20
  /**
16
- * Search match Object
21
+ * Search match object
17
22
  */
18
23
  export type SearchMatch = {
19
24
  /**
@@ -33,4 +38,8 @@ export type SearchMatch = {
33
38
  */
34
39
  id: string;
35
40
  };
41
+ /**
42
+ * Configuration options for Search
43
+ */
44
+ export type SearchOptions = any;
36
45
  import { Extension } from '@core/Extension.js';