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

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 (175) hide show
  1. package/dist/chunks/{PdfViewer-BqGjx7hC.cjs → PdfViewer--8KwZWwP.cjs} +1 -1
  2. package/dist/chunks/{PdfViewer-BZlsmhsJ.es.js → PdfViewer-SpPk10jl.es.js} +1 -1
  3. package/dist/chunks/{index-4GToG3C3.es.js → index-BjLjS5O9.es.js} +3 -3
  4. package/dist/chunks/{index-DPzgGSfg.cjs → index-yRUOdLmp.cjs} +3 -3
  5. package/dist/chunks/{super-editor.es-BkxUKZfn.cjs → super-editor.es-CuNhawtn.cjs} +2505 -3347
  6. package/dist/chunks/{super-editor.es-DqX3Ipsk.es.js → super-editor.es-D24_Ox1u.es.js} +2505 -3347
  7. package/dist/core/SuperDoc.d.ts.map +1 -1
  8. package/dist/style.css +0 -38
  9. package/dist/super-editor/ai-writer.es.js +2 -2
  10. package/dist/super-editor/chunks/{converter-C6YOTAXG.js → converter-Cg4SgA5y.js} +1119 -1659
  11. package/dist/super-editor/chunks/{docx-zipper-CSiwWpmr.js → docx-zipper-CDX2fnxb.js} +2 -2
  12. package/dist/super-editor/chunks/{editor-chVid4VD.js → editor-MKuu81v8.js} +1048 -1339
  13. package/dist/super-editor/chunks/{toolbar-ancqgN0p.js → toolbar-CpQ7L2K-.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/index.d.ts +0 -1
  19. package/dist/super-editor/src/core/super-converter/exporter.d.ts +1 -7
  20. package/dist/super-editor/src/core/super-converter/helpers.d.ts +0 -2
  21. package/dist/super-editor/src/core/super-converter/v2/importer/imageImporter.d.ts +1 -1
  22. package/dist/super-editor/src/core/super-converter/v2/importer/tableImporter.d.ts +22 -0
  23. package/dist/super-editor/src/core/super-converter/v3/handlers/index.d.ts +0 -2
  24. package/dist/super-editor/src/core/super-converter/v3/handlers/utils.d.ts +3 -10
  25. package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts +1 -1
  26. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tc/helpers/legacy-handle-table-cell-node.d.ts +1 -1
  27. package/dist/super-editor/src/core/super-converter/v3/node-translator/node-translator.d.ts +1 -11
  28. package/dist/super-editor/src/extensions/block-node/block-node.d.ts +5 -30
  29. package/dist/super-editor/src/extensions/bold/bold.d.ts +0 -20
  30. package/dist/super-editor/src/extensions/bullet-list/bullet-list.d.ts +0 -12
  31. package/dist/super-editor/src/extensions/color/color.d.ts +0 -26
  32. package/dist/super-editor/src/extensions/content-block/content-block.d.ts +0 -30
  33. package/dist/super-editor/src/extensions/custom-selection/custom-selection.d.ts +0 -16
  34. package/dist/super-editor/src/extensions/document/document.d.ts +0 -26
  35. package/dist/super-editor/src/extensions/dropcursor/dropcursor.d.ts +0 -26
  36. package/dist/super-editor/src/extensions/font-family/font-family.d.ts +0 -29
  37. package/dist/super-editor/src/extensions/font-size/font-size.d.ts +0 -21
  38. package/dist/super-editor/src/extensions/format-commands/format-commands.d.ts +0 -9
  39. package/dist/super-editor/src/extensions/gapcursor/gapcursor.d.ts +0 -9
  40. package/dist/super-editor/src/extensions/heading/heading.d.ts +6 -12
  41. package/dist/super-editor/src/extensions/highlight/highlight.d.ts +0 -20
  42. package/dist/super-editor/src/extensions/history/history.d.ts +15 -7
  43. package/dist/super-editor/src/extensions/image/image.d.ts +0 -78
  44. package/dist/super-editor/src/extensions/image/imageHelpers/imagePlaceholderPlugin.d.ts +5 -0
  45. package/dist/super-editor/src/extensions/image/imageHelpers/index.d.ts +1 -3
  46. package/dist/super-editor/src/extensions/image/imageHelpers/processUploadedImage.d.ts +2 -2
  47. package/dist/super-editor/src/extensions/image/imageHelpers/startImageUpload.d.ts +23 -18
  48. package/dist/super-editor/src/extensions/italic/italic.d.ts +0 -10
  49. package/dist/super-editor/src/extensions/line-break/line-break.d.ts +0 -43
  50. package/dist/super-editor/src/extensions/line-height/line-height.d.ts +0 -22
  51. package/dist/super-editor/src/extensions/link/link.d.ts +25 -53
  52. package/dist/super-editor/src/extensions/linked-styles/linked-styles.d.ts +0 -9
  53. package/dist/super-editor/src/extensions/list-item/list-item.d.ts +0 -48
  54. package/dist/super-editor/src/extensions/mention/mention.d.ts +0 -26
  55. package/dist/super-editor/src/extensions/noderesizer/noderesizer.d.ts +0 -14
  56. package/dist/super-editor/src/extensions/ordered-list/ordered-list.d.ts +0 -35
  57. package/dist/super-editor/src/extensions/page-number/page-number.d.ts +0 -52
  58. package/dist/super-editor/src/extensions/paragraph/paragraph.d.ts +0 -49
  59. package/dist/super-editor/src/extensions/placeholder/placeholder.d.ts +0 -15
  60. package/dist/super-editor/src/extensions/popover-plugin/popover-plugin.d.ts +0 -9
  61. package/dist/super-editor/src/extensions/run-item/run-item.d.ts +0 -24
  62. package/dist/super-editor/src/extensions/search/search.d.ts +2 -11
  63. package/dist/super-editor/src/extensions/shape-container/shape-container.d.ts +0 -29
  64. package/dist/super-editor/src/extensions/shape-textbox/shape-textbox.d.ts +0 -26
  65. package/dist/super-editor/src/extensions/slash-menu/slash-menu.d.ts +0 -9
  66. package/dist/super-editor/src/extensions/strike/strike.d.ts +0 -10
  67. package/dist/super-editor/src/extensions/structured-content/document-section.d.ts +27 -46
  68. package/dist/super-editor/src/extensions/structured-content/structured-content-block.d.ts +1 -29
  69. package/dist/super-editor/src/extensions/structured-content/structured-content.d.ts +1 -29
  70. package/dist/super-editor/src/extensions/tab/tab.d.ts +0 -25
  71. package/dist/super-editor/src/extensions/table/table.d.ts +55 -376
  72. package/dist/super-editor/src/extensions/table-cell/table-cell.d.ts +0 -41
  73. package/dist/super-editor/src/extensions/table-header/table-header.d.ts +0 -22
  74. package/dist/super-editor/src/extensions/table-row/table-row.d.ts +0 -28
  75. package/dist/super-editor/src/extensions/text/text.d.ts +0 -14
  76. package/dist/super-editor/src/extensions/text-align/text-align.d.ts +0 -22
  77. package/dist/super-editor/src/extensions/text-indent/text-indent.d.ts +10 -19
  78. package/dist/super-editor/src/extensions/text-style/text-style.d.ts +0 -20
  79. package/dist/super-editor/src/extensions/text-transform/text-transform.d.ts +0 -20
  80. package/dist/super-editor/src/extensions/underline/underline.d.ts +0 -25
  81. package/dist/super-editor/style.css +0 -38
  82. package/dist/super-editor/super-editor.es.js +55 -65
  83. package/dist/super-editor/toolbar.es.js +2 -2
  84. package/dist/super-editor.cjs +1 -1
  85. package/dist/super-editor.es.js +1 -1
  86. package/dist/superdoc.cjs +2 -2
  87. package/dist/superdoc.es.js +2 -2
  88. package/dist/superdoc.umd.js +3134 -3976
  89. package/dist/superdoc.umd.js.map +1 -1
  90. package/package.json +1 -1
  91. package/dist/super-editor/src/core/helpers/updateDOMAttributes.d.ts +0 -1
  92. package/dist/super-editor/src/core/super-converter/export-helpers/pre-process-vertical-merge-cells.d.ts +0 -6
  93. package/dist/super-editor/src/core/super-converter/helpers/mediaHelpers.d.ts +0 -2
  94. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/bidiVisual-translator.d.ts +0 -6
  95. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/index.d.ts +0 -1
  96. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/bottom-translator.d.ts +0 -6
  97. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/index.d.ts +0 -2
  98. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/marginBottom-translator.d.ts +0 -6
  99. package/dist/super-editor/src/core/super-converter/v3/handlers/w/drawing/drawing-translator.d.ts +0 -6
  100. package/dist/super-editor/src/core/super-converter/v3/handlers/w/drawing/index.d.ts +0 -1
  101. package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/end-translator.d.ts +0 -6
  102. package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/index.d.ts +0 -2
  103. package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/marginEnd-translator.d.ts +0 -6
  104. package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridCol/gridCol-translator.d.ts +0 -6
  105. package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridCol/index.d.ts +0 -1
  106. package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideH/index.d.ts +0 -1
  107. package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideH/insideH-translator.d.ts +0 -6
  108. package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideV/index.d.ts +0 -1
  109. package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideV/insideV-translator.d.ts +0 -6
  110. package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/index.d.ts +0 -2
  111. package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/left-translator.d.ts +0 -6
  112. package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/marginLeft-translator.d.ts +0 -6
  113. package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/index.d.ts +0 -2
  114. package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/marginRight-translator.d.ts +0 -6
  115. package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/right-translator.d.ts +0 -6
  116. package/dist/super-editor/src/core/super-converter/v3/handlers/w/shd/index.d.ts +0 -1
  117. package/dist/super-editor/src/core/super-converter/v3/handlers/w/shd/shd-translator.d.ts +0 -6
  118. package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/index.d.ts +0 -2
  119. package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/marginStart-translator.d.ts +0 -6
  120. package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/start-translator.d.ts +0 -6
  121. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tbl/index.d.ts +0 -1
  122. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tbl/tbl-translator.d.ts +0 -28
  123. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblBorders/index.d.ts +0 -1
  124. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblBorders/tblBorders-translator.d.ts +0 -6
  125. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCaption/index.d.ts +0 -1
  126. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCaption/tblCaption-translator.d.ts +0 -6
  127. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellMar/index.d.ts +0 -1
  128. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellMar/tblCellMar-translator.d.ts +0 -2
  129. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblDescription/index.d.ts +0 -1
  130. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblDescription/tblDescription-translator.d.ts +0 -6
  131. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/index.d.ts +0 -1
  132. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-helpers.d.ts +0 -5
  133. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.d.ts +0 -5
  134. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblInd/index.d.ts +0 -1
  135. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblInd/tblInd-translator.d.ts +0 -6
  136. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLayout/index.d.ts +0 -1
  137. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLayout/tblLayout-translator.d.ts +0 -6
  138. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLook/index.d.ts +0 -1
  139. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLook/tblLook-translator.d.ts +0 -6
  140. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblOverlap/index.d.ts +0 -1
  141. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblOverlap/tblOverlap-translator.d.ts +0 -6
  142. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblPr/index.d.ts +0 -1
  143. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblPr/tblPr-translator.d.ts +0 -5
  144. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyle/index.d.ts +0 -1
  145. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyle/tblStyle-translator.d.ts +0 -6
  146. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleColBandSize/index.d.ts +0 -1
  147. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleColBandSize/tblStyleColBandSize-translator.d.ts +0 -6
  148. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleRowBandSize/index.d.ts +0 -1
  149. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleRowBandSize/tblStyleRowBandSize-translator.d.ts +0 -6
  150. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblW/index.d.ts +0 -1
  151. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblW/tblW-translator.d.ts +0 -6
  152. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblpPr/index.d.ts +0 -1
  153. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblpPr/tblpPr-translator.d.ts +0 -6
  154. package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/index.d.ts +0 -2
  155. package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/marginTop-translator.d.ts +0 -6
  156. package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/top-translator.d.ts +0 -6
  157. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/anchor-translator.d.ts +0 -6
  158. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/helpers/handle-anchor-node.d.ts +0 -6
  159. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/helpers/translate-anchor-node.d.ts +0 -6
  160. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/index.d.ts +0 -1
  161. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.d.ts +0 -18
  162. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/helpers/encode-image-node-helpers.d.ts +0 -6
  163. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/helpers/handle-inline-node.d.ts +0 -6
  164. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/helpers/translate-inline-node.d.ts +0 -6
  165. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/index.d.ts +0 -1
  166. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/inline-translator.d.ts +0 -6
  167. package/dist/super-editor/src/extensions/image/imageHelpers/fileNameUtils.d.ts +0 -3
  168. package/dist/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +0 -1
  169. package/dist/super-editor/src/extensions/image/imageHelpers/handleUrl.d.ts +0 -2
  170. package/dist/super-editor/src/extensions/image/imageHelpers/imageRegistrationPlugin.d.ts +0 -11
  171. package/dist/super-editor/src/extensions/image/imageHelpers/rotation.d.ts +0 -4
  172. package/dist/super-editor/src/extensions/structured-content/StructuredContentBlockView.d.ts +0 -9
  173. package/dist/super-editor/src/extensions/structured-content/StructuredContentInlineView.d.ts +0 -9
  174. package/dist/super-editor/src/extensions/structured-content/StructuredContentViewBase.d.ts +0 -24
  175. package/dist/super-editor/src/tests/helpers/editor-test-utils.d.ts +0 -14
@@ -1,51 +1,2 @@
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
- */
42
1
  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;
51
2
  import { OxmlNode } from '@core/index.js';
@@ -1,17 +1,2 @@
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
- */
12
1
  export const Placeholder: Extension;
13
- /**
14
- * Configuration options for Placeholder
15
- */
16
- export type PlaceholderOptions = any;
17
2
  import { Extension } from '@core/Extension.js';
@@ -1,11 +1,2 @@
1
- /**
2
- * @module PopoverPlugin
3
- * @sidebarTitle Popover Plugin
4
- * @snippetPath /snippets/extensions/popover-plugin.mdx
5
- */
6
1
  export const PopoverPlugin: Extension;
7
- /**
8
- * Configuration options for PopoverPlugin
9
- */
10
- export type PopoverPluginOptions = any;
11
2
  import { Extension } from '@core/Extension.js';
@@ -1,26 +1,2 @@
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
- */
17
1
  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;
26
2
  import { Node } from '@core/index.js';
@@ -1,16 +1,11 @@
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
- */
14
9
  /**
15
10
  * @module Search
16
11
  * @sidebarTitle Search
@@ -18,7 +13,7 @@
18
13
  */
19
14
  export const Search: Extension;
20
15
  /**
21
- * Search match object
16
+ * Search match Object
22
17
  */
23
18
  export type SearchMatch = {
24
19
  /**
@@ -38,8 +33,4 @@ export type SearchMatch = {
38
33
  */
39
34
  id: string;
40
35
  };
41
- /**
42
- * Configuration options for Search
43
- */
44
- export type SearchOptions = any;
45
36
  import { Extension } from '@core/Extension.js';
@@ -1,31 +1,2 @@
1
- /**
2
- * Configuration options for ShapeContainer
3
- * @typedef {Object} ShapeContainerOptions
4
- * @category Options
5
- * @property {Object} [htmlAttributes] - HTML attributes for shape container elements
6
- */
7
- /**
8
- * Attributes for shape container nodes
9
- * @typedef {Object} ShapeContainerAttributes
10
- * @category Attributes
11
- * @property {string} [fillcolor] - Background color for the shape
12
- * @property {string} [style] - CSS style string
13
- * @property {string} [sdBlockId] @internal - Internal block tracking ID
14
- * @property {Object} [wrapAttributes] @internal - Internal wrapper attributes
15
- * @property {Object} [attributes] @internal - Internal attributes storage
16
- */
17
- /**
18
- * @module ShapeContainer
19
- * @sidebarTitle Shape Container
20
- * @snippetPath /snippets/extensions/shape-container.mdx
21
- */
22
1
  export const ShapeContainer: Node;
23
- /**
24
- * Configuration options for ShapeContainer
25
- */
26
- export type ShapeContainerOptions = any;
27
- /**
28
- * Attributes for shape container nodes
29
- */
30
- export type ShapeContainerAttributes = any;
31
2
  import { Node } from '@core/index.js';
@@ -1,28 +1,2 @@
1
- /**
2
- * Configuration options for ShapeTextbox
3
- * @typedef {Object} ShapeTextboxOptions
4
- * @category Options
5
- * @property {Object} [htmlAttributes] - HTML attributes for shape textbox elements
6
- */
7
- /**
8
- * Attributes for shape textbox nodes
9
- * @typedef {Object} ShapeTextboxAttributes
10
- * @category Attributes
11
- * @property {string} [sdBlockId] @internal - Internal block tracking ID
12
- * @property {Object} [attributes] @internal - Internal attributes storage
13
- */
14
- /**
15
- * @module ShapeTextbox
16
- * @sidebarTitle Shape Textbox
17
- * @snippetPath /snippets/extensions/shape-textbox.mdx
18
- */
19
1
  export const ShapeTextbox: Node;
20
- /**
21
- * Configuration options for ShapeTextbox
22
- */
23
- export type ShapeTextboxOptions = any;
24
- /**
25
- * Attributes for shape textbox nodes
26
- */
27
- export type ShapeTextboxAttributes = any;
28
2
  import { Node } from '@core/index.js';
@@ -1,13 +1,4 @@
1
1
  export const SlashMenuPluginKey: PluginKey<any>;
2
- /**
3
- * @module SlashMenu
4
- * @sidebarTitle Slash Menu
5
- * @snippetPath /snippets/extensions/slash-menu.mdx
6
- */
7
2
  export const SlashMenu: Extension;
8
- /**
9
- * Configuration options for SlashMenu
10
- */
11
- export type SlashMenuOptions = any;
12
3
  import { PluginKey } from 'prosemirror-state';
13
4
  import { Extension } from '@core/Extension.js';
@@ -1,9 +1,3 @@
1
- /**
2
- * Configuration options for Strike
3
- * @typedef {Object} StrikeOptions
4
- * @category Options
5
- * @property {Object} [htmlAttributes={}] - HTML attributes for strikethrough elements
6
- */
7
1
  /**
8
2
  * @module Strike
9
3
  * @sidebarTitle Strike
@@ -11,8 +5,4 @@
11
5
  * @shortcut Mod-Shift-s | toggleStrike | Toggle strikethrough formatting
12
6
  */
13
7
  export const Strike: Mark;
14
- /**
15
- * Configuration options for Strike
16
- */
17
- export type StrikeOptions = any;
18
8
  import { Mark } from '@core/index.js';
@@ -1,39 +1,3 @@
1
- /**
2
- * Document section creation options
3
- * @typedef {Object} SectionCreate
4
- * @property {number} [id] - Unique ID. Auto-increments from existing sections if omitted
5
- * @property {string} [title="Document section"] - Label shown in section header
6
- * @property {string} [description] - Metadata for tracking (stored in Word's w:tag)
7
- * @property {string} [sectionType] - Business classification
8
- * @property {boolean} [isLocked=false] - Prevent editing when true
9
- * @property {string} [html] - HTML content to insert
10
- * @property {Object} [json] - ProseMirror JSON (overrides html if both provided)
11
- */
12
- /**
13
- * Update an existing section
14
- * @typedef {Object} SectionUpdate
15
- * @property {number} id - Target section ID (required)
16
- * @property {string} [html] - Replace content with HTML
17
- * @property {Object} [json] - Replace content with ProseMirror JSON (overrides html)
18
- * @property {Partial<DocumentSectionAttributes>} [attrs] - Update attributes only (preserves content)
19
- */
20
- /**
21
- * Configuration options for DocumentSection
22
- * @typedef {Object} DocumentSectionOptions
23
- * @category Options
24
- * @property {Object} [htmlAttributes] - HTML attributes for document sections
25
- */
26
- /**
27
- * Attributes for document section nodes
28
- * @typedef {Object} DocumentSectionAttributes
29
- * @category Attributes
30
- * @property {number} [id] - Unique section identifier
31
- * @property {string} [title] - Section display label (becomes w:alias in Word)
32
- * @property {string} [description] - Additional metadata stored in w:tag
33
- * @property {string} [sectionType] - Business type for filtering/logic (e.g., 'legal', 'pricing')
34
- * @property {boolean} [isLocked=false] - Lock state (maps to w:lock="sdtContentLocked")
35
- * @property {string} [sdBlockId] @internal - Internal block tracking
36
- */
37
1
  /**
38
2
  * @module DocumentSection
39
3
  * @sidebarTitle Document Section
@@ -41,7 +5,32 @@
41
5
  */
42
6
  export const DocumentSection: Node;
43
7
  /**
44
- * Document section creation options
8
+ * Document section attributes
9
+ */
10
+ export type SectionAttributes = {
11
+ /**
12
+ * - Unique section identifier
13
+ */
14
+ id?: number;
15
+ /**
16
+ * - Display label (becomes w:alias in Word)
17
+ */
18
+ title?: string;
19
+ /**
20
+ * - Additional metadata stored in w:tag
21
+ */
22
+ description?: string;
23
+ /**
24
+ * - Business type for filtering/logic (e.g., 'legal', 'pricing')
25
+ */
26
+ sectionType?: string;
27
+ /**
28
+ * - Lock state (maps to w:lock="sdtContentLocked")
29
+ */
30
+ isLocked?: boolean;
31
+ };
32
+ /**
33
+ * Create a new document section
45
34
  */
46
35
  export type SectionCreate = {
47
36
  /**
@@ -92,14 +81,6 @@ export type SectionUpdate = {
92
81
  /**
93
82
  * - Update attributes only (preserves content)
94
83
  */
95
- attrs?: Partial<DocumentSectionAttributes>;
84
+ attrs?: Partial<SectionAttributes>;
96
85
  };
97
- /**
98
- * Configuration options for DocumentSection
99
- */
100
- export type DocumentSectionOptions = any;
101
- /**
102
- * Attributes for document section nodes
103
- */
104
- export type DocumentSectionAttributes = any;
105
86
  import { Node } from '@core/index.js';
@@ -1,30 +1,2 @@
1
- export const structuredContentClass: "sd-structured-content-block";
2
- export const structuredContentInnerClass: "sd-structured-content-block__content";
3
- /**
4
- * Configuration options for StructuredContentBlock
5
- * @typedef {Object} StructuredContentBlockOptions
6
- * @category Options
7
- * @property {string} [structuredContentClass='sd-structured-content-block-tag'] - CSS class for the block
8
- * @property {Object} [htmlAttributes] - HTML attributes for structured content blocks
9
- */
10
- /**
11
- * Attributes for structured content block nodes
12
- * @typedef {Object} StructuredContentBlockAttributes
13
- * @category Attributes
14
- * @property {Object} [sdtPr] @internal - Internal structured document tag properties
15
- */
16
- /**
17
- * @module StructuredContentBlock
18
- * @sidebarTitle Structured Content Block
19
- * @snippetPath /snippets/extensions/structured-content-block.mdx
20
- */
21
1
  export const StructuredContentBlock: Node;
22
- /**
23
- * Configuration options for StructuredContentBlock
24
- */
25
- export type StructuredContentBlockOptions = any;
26
- /**
27
- * Attributes for structured content block nodes
28
- */
29
- export type StructuredContentBlockAttributes = any;
30
- import { Node } from '@core/index';
2
+ import { Node } from '@core/index.js';
@@ -1,30 +1,2 @@
1
- export const structuredContentClass: "sd-structured-content";
2
- export const structuredContentInnerClass: "sd-structured-content__content";
3
- /**
4
- * Configuration options for StructuredContent
5
- * @typedef {Object} StructuredContentOptions
6
- * @category Options
7
- * @property {string} [structuredContentClass='sd-structured-content-tag'] - CSS class for the inline element
8
- * @property {Object} [htmlAttributes] - HTML attributes for structured content elements
9
- */
10
- /**
11
- * Attributes for structured content nodes
12
- * @typedef {Object} StructuredContentAttributes
13
- * @category Attributes
14
- * @property {Object} [sdtPr] @internal - Internal structured document tag properties
15
- */
16
- /**
17
- * @module StructuredContent
18
- * @sidebarTitle Structured Content
19
- * @snippetPath /snippets/extensions/structured-content.mdx
20
- */
21
1
  export const StructuredContent: Node;
22
- /**
23
- * Configuration options for StructuredContent
24
- */
25
- export type StructuredContentOptions = any;
26
- /**
27
- * Attributes for structured content nodes
28
- */
29
- export type StructuredContentAttributes = any;
30
- import { Node } from '@core/index';
2
+ import { Node } from '@core/index.js';
@@ -1,27 +1,2 @@
1
- /**
2
- * Configuration options for TabNode
3
- * @typedef {Object} TabNodeOptions
4
- * @category Options
5
- * @property {Object} [htmlAttributes] - HTML attributes for tab elements
6
- */
7
- /**
8
- * Attributes for tab nodes
9
- * @typedef {Object} TabNodeAttributes
10
- * @category Attributes
11
- * @property {number} [tabSize] - Width of the tab in pixels
12
- */
13
- /**
14
- * @module TabNode
15
- * @sidebarTitle Tab
16
- * @snippetPath /snippets/extensions/tab.mdx
17
- */
18
1
  export const TabNode: Node;
19
- /**
20
- * Configuration options for TabNode
21
- */
22
- export type TabNodeOptions = any;
23
- /**
24
- * Attributes for tab nodes
25
- */
26
- export type TabNodeAttributes = any;
27
2
  import { Node } from '@core/index.js';