@harbour-enterprises/superdoc 0.20.0-next.1 → 0.20.0-next.10
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.
- package/dist/chunks/{PdfViewer-BLwxuMWh.cjs → PdfViewer-DOggjrQG.cjs} +1 -1
- package/dist/chunks/{PdfViewer-t_JS3Mbo.es.js → PdfViewer-Dqmc7nRW.es.js} +1 -1
- package/dist/chunks/{index-Vp2WxlNm.es.js → index-BWLk-GjX.es.js} +2 -2
- package/dist/chunks/{index-CBTSdULo.cjs → index-BbzkKu8K.cjs} +2 -2
- package/dist/chunks/{super-editor.es-Cten5oWF.cjs → super-editor.es--aCMUiMA.cjs} +3533 -2531
- package/dist/chunks/{super-editor.es-DGV2_J23.es.js → super-editor.es-Czm6AhQx.es.js} +3533 -2531
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/style.css +38 -0
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-Dq0PLazx.js → converter-CJg7BSkp.js} +1781 -1155
- package/dist/super-editor/chunks/{docx-zipper-jT0gaoep.js → docx-zipper-D56KgEUM.js} +2 -2
- package/dist/super-editor/chunks/{editor-BEtv1kuN.js → editor-CZE0QdnY.js} +1409 -1044
- package/dist/super-editor/chunks/{toolbar-CJfSHfLU.js → toolbar-YvqMpKof.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/src/core/helpers/index.d.ts +1 -0
- package/dist/super-editor/src/core/helpers/updateDOMAttributes.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/export-helpers/pre-process-vertical-merge-cells.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/exporter.d.ts +7 -1
- package/dist/super-editor/src/core/super-converter/helpers/mediaHelpers.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/helpers.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/bookmarkEndImporter.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/bookmarkNodeImporter.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/bookmarkStartImporter.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/imageImporter.d.ts +1 -1
- package/dist/super-editor/src/core/super-converter/v2/importer/tableImporter.d.ts +0 -22
- package/dist/super-editor/src/core/super-converter/v3/handlers/index.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/utils.d.ts +10 -3
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/bidiVisual-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-displaced-by-custom-xml.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-id.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/bookmark-end-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-first.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-last.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-displaced-by-custom-xml.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-id.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-name.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/bookmark-start-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/bottom-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/marginBottom-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/drawing/drawing-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/drawing/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/end-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/marginEnd-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridCol/gridCol-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridCol/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideH/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideH/insideH-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideV/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideV/insideV-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/left-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/marginLeft-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts +1 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/marginRight-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/right-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/shd/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/shd/shd-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/marginStart-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/start-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tbl/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tbl/tbl-translator.d.ts +28 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblBorders/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblBorders/tblBorders-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCaption/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCaption/tblCaption-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellMar/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellMar/tblCellMar-translator.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblDescription/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblDescription/tblDescription-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-helpers.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblInd/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblInd/tblInd-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLayout/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLayout/tblLayout-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLook/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLook/tblLook-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblOverlap/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblOverlap/tblOverlap-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblPr/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblPr/tblPr-translator.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyle/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyle/tblStyle-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleColBandSize/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleColBandSize/tblStyleColBandSize-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleRowBandSize/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleRowBandSize/tblStyleRowBandSize-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblW/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblW/tblW-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblpPr/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblpPr/tblpPr-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tc/helpers/legacy-handle-table-cell-node.d.ts +1 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/marginTop-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/top-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/anchor-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/helpers/handle-anchor-node.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/helpers/translate-anchor-node.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.d.ts +18 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/helpers/encode-image-node-helpers.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/helpers/handle-inline-node.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/helpers/translate-inline-node.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/inline-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/node-translator/node-translator.d.ts +11 -1
- package/dist/super-editor/src/extensions/block-node/block-node.d.ts +30 -5
- package/dist/super-editor/src/extensions/bold/bold.d.ts +20 -0
- package/dist/super-editor/src/extensions/bookmarks/bookmark-end.d.ts +6 -0
- package/dist/super-editor/src/extensions/bookmarks/index.d.ts +2 -1
- package/dist/super-editor/src/extensions/bullet-list/bullet-list.d.ts +12 -0
- package/dist/super-editor/src/extensions/color/color.d.ts +26 -0
- package/dist/super-editor/src/extensions/content-block/content-block.d.ts +30 -0
- package/dist/super-editor/src/extensions/custom-selection/custom-selection.d.ts +16 -0
- package/dist/super-editor/src/extensions/document/document.d.ts +26 -0
- package/dist/super-editor/src/extensions/dropcursor/dropcursor.d.ts +26 -0
- package/dist/super-editor/src/extensions/font-family/font-family.d.ts +29 -0
- package/dist/super-editor/src/extensions/font-size/font-size.d.ts +21 -0
- package/dist/super-editor/src/extensions/format-commands/format-commands.d.ts +9 -0
- package/dist/super-editor/src/extensions/gapcursor/gapcursor.d.ts +9 -0
- package/dist/super-editor/src/extensions/heading/heading.d.ts +12 -6
- package/dist/super-editor/src/extensions/highlight/highlight.d.ts +20 -0
- package/dist/super-editor/src/extensions/history/history.d.ts +7 -15
- package/dist/super-editor/src/extensions/image/image.d.ts +78 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/fileNameUtils.d.ts +3 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +1 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/handleUrl.d.ts +2 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/imageRegistrationPlugin.d.ts +11 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/index.d.ts +3 -1
- package/dist/super-editor/src/extensions/image/imageHelpers/processUploadedImage.d.ts +2 -2
- package/dist/super-editor/src/extensions/image/imageHelpers/rotation.d.ts +4 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/startImageUpload.d.ts +18 -23
- package/dist/super-editor/src/extensions/index.d.ts +2 -1
- package/dist/super-editor/src/extensions/italic/italic.d.ts +10 -0
- package/dist/super-editor/src/extensions/line-break/line-break.d.ts +43 -0
- package/dist/super-editor/src/extensions/line-height/line-height.d.ts +22 -0
- package/dist/super-editor/src/extensions/link/link.d.ts +53 -25
- package/dist/super-editor/src/extensions/linked-styles/linked-styles.d.ts +9 -0
- package/dist/super-editor/src/extensions/list-item/list-item.d.ts +48 -0
- package/dist/super-editor/src/extensions/mention/mention.d.ts +26 -0
- package/dist/super-editor/src/extensions/noderesizer/noderesizer.d.ts +14 -0
- package/dist/super-editor/src/extensions/ordered-list/ordered-list.d.ts +35 -0
- package/dist/super-editor/src/extensions/page-number/page-number.d.ts +52 -0
- package/dist/super-editor/src/extensions/paragraph/paragraph.d.ts +49 -0
- package/dist/super-editor/src/extensions/placeholder/placeholder.d.ts +15 -0
- package/dist/super-editor/src/extensions/popover-plugin/popover-plugin.d.ts +9 -0
- package/dist/super-editor/src/extensions/run-item/run-item.d.ts +24 -0
- package/dist/super-editor/src/extensions/search/search.d.ts +11 -2
- package/dist/super-editor/src/extensions/shape-container/shape-container.d.ts +29 -0
- package/dist/super-editor/src/extensions/shape-textbox/shape-textbox.d.ts +26 -0
- package/dist/super-editor/src/extensions/slash-menu/slash-menu.d.ts +9 -0
- package/dist/super-editor/src/extensions/strike/strike.d.ts +10 -0
- package/dist/super-editor/src/extensions/structured-content/StructuredContentBlockView.d.ts +9 -0
- package/dist/super-editor/src/extensions/structured-content/StructuredContentInlineView.d.ts +9 -0
- package/dist/super-editor/src/extensions/structured-content/StructuredContentViewBase.d.ts +24 -0
- package/dist/super-editor/src/extensions/structured-content/document-section.d.ts +46 -27
- package/dist/super-editor/src/extensions/structured-content/structured-content-block.d.ts +29 -1
- package/dist/super-editor/src/extensions/structured-content/structured-content.d.ts +29 -1
- package/dist/super-editor/src/extensions/tab/tab.d.ts +25 -0
- package/dist/super-editor/src/extensions/table/table.d.ts +376 -55
- package/dist/super-editor/src/extensions/table-cell/table-cell.d.ts +41 -0
- package/dist/super-editor/src/extensions/table-header/table-header.d.ts +22 -0
- package/dist/super-editor/src/extensions/table-row/table-row.d.ts +28 -0
- package/dist/super-editor/src/extensions/text/text.d.ts +14 -0
- package/dist/super-editor/src/extensions/text-align/text-align.d.ts +22 -0
- package/dist/super-editor/src/extensions/text-indent/text-indent.d.ts +19 -10
- package/dist/super-editor/src/extensions/text-style/text-style.d.ts +20 -0
- package/dist/super-editor/src/extensions/text-transform/text-transform.d.ts +20 -0
- package/dist/super-editor/src/extensions/underline/underline.d.ts +25 -0
- package/dist/super-editor/src/tests/helpers/editor-test-utils.d.ts +14 -0
- package/dist/super-editor/style.css +38 -0
- package/dist/super-editor/super-editor.es.js +65 -55
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +4161 -3159
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/super-editor/src/extensions/image/imageHelpers/imagePlaceholderPlugin.d.ts +0 -5
- /package/dist/super-editor/src/extensions/bookmarks/{bookmarks.d.ts → bookmark-start.d.ts} +0 -0
|
@@ -1,3 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Table configuration options
|
|
3
|
+
* @typedef {Object} TableConfig
|
|
4
|
+
* @property {number} [rows=3] - Number of rows to create
|
|
5
|
+
* @property {number} [cols=3] - Number of columns to create
|
|
6
|
+
* @property {boolean} [withHeaderRow=false] - Create first row as header row
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Table indentation configuration
|
|
10
|
+
* @typedef {Object} TableIndent
|
|
11
|
+
* @property {number} width - Indent width in pixels
|
|
12
|
+
* @property {string} [type='dxa'] - Indent type
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Cell selection position
|
|
16
|
+
* @typedef {Object} CellSelectionPosition
|
|
17
|
+
* @property {number} anchorCell - Starting cell position
|
|
18
|
+
* @property {number} headCell - Ending cell position
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Configuration options for Table
|
|
22
|
+
* @typedef {Object} TableOptions
|
|
23
|
+
* @category Options
|
|
24
|
+
* @property {Object} [htmlAttributes={'aria-label': 'Table node'}] - Default HTML attributes for all tables
|
|
25
|
+
* @property {boolean} [resizable=true] - Enable column resizing functionality
|
|
26
|
+
* @property {number} [handleWidth=5] - Width of resize handles in pixels
|
|
27
|
+
* @property {number} [cellMinWidth=10] - Minimum cell width constraint in pixels
|
|
28
|
+
* @property {boolean} [lastColumnResizable=true] - Allow resizing of the last column
|
|
29
|
+
* @property {boolean} [allowTableNodeSelection=false] - Enable selecting the entire table node
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* Attributes for table nodes
|
|
33
|
+
* @typedef {Object} TableAttributes
|
|
34
|
+
* @category Attributes
|
|
35
|
+
* @property {TableIndent} [tableIndent] - Table indentation configuration
|
|
36
|
+
* @property {import("./tableHelpers/createTableBorders.js").TableBorders} [borders] - Border styling for this table
|
|
37
|
+
* @property {string} [borderCollapse='collapse'] - CSS border-collapse property
|
|
38
|
+
* @property {string} [justification] - Table alignment ('left', 'center', 'right')
|
|
39
|
+
* @property {number} [tableCellSpacing] - Cell spacing in pixels for this table
|
|
40
|
+
* @property {string} [sdBlockId] @internal - Internal block tracking ID
|
|
41
|
+
* @property {string} [tableStyleId] @internal - Internal reference to table style
|
|
42
|
+
* @property {string} [tableLayout] @internal - CSS table-layout property (advanced usage)
|
|
43
|
+
*/
|
|
44
|
+
/**
|
|
45
|
+
* Current cell information
|
|
46
|
+
* @typedef {Object} CurrentCellInfo
|
|
47
|
+
* @property {Object} rect - Selected rectangle information
|
|
48
|
+
* @property {import('prosemirror-model').Node} cell - The cell node
|
|
49
|
+
* @property {Object} attrs - Cell attributes
|
|
50
|
+
*/
|
|
1
51
|
/**
|
|
2
52
|
* @module Table
|
|
3
53
|
* @sidebarTitle Table
|
|
@@ -9,129 +59,400 @@
|
|
|
9
59
|
*/
|
|
10
60
|
export const Table: Node;
|
|
11
61
|
/**
|
|
12
|
-
*
|
|
62
|
+
* Theme color options
|
|
13
63
|
*/
|
|
14
|
-
export type
|
|
64
|
+
export type ThemeColor = "dark1" | "light1" | "dark2" | "light2" | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "hyperlink" | "followedHyperlink" | "none" | "background1" | "text1" | "background2" | "text2";
|
|
65
|
+
/**
|
|
66
|
+
* Shading pattern options
|
|
67
|
+
*/
|
|
68
|
+
export type ShadingPattern = "nil" | "clear" | "solid" | "horzStripe" | "vertStripe" | "reverseDiagStripe" | "diagStripe" | "horzCross" | "diagCross" | "thinHorzStripe" | "thinVertStripe" | "thinReverseDiagStripe" | "thinDiagStripe" | "thinHorzCross" | "thinDiagCross";
|
|
69
|
+
/**
|
|
70
|
+
* Shading properties
|
|
71
|
+
*/
|
|
72
|
+
export type ShadingProperties = {
|
|
15
73
|
/**
|
|
16
|
-
* -
|
|
74
|
+
* - Shading color (hex without # or "auto" for automatic)
|
|
17
75
|
*/
|
|
18
|
-
|
|
76
|
+
color?: string | "auto";
|
|
19
77
|
/**
|
|
20
|
-
* -
|
|
78
|
+
* - Shading fill color (hex without # or "auto" for automatic)
|
|
21
79
|
*/
|
|
22
|
-
|
|
80
|
+
fill?: string | "auto";
|
|
23
81
|
/**
|
|
24
|
-
* -
|
|
82
|
+
* - Theme color name
|
|
25
83
|
*/
|
|
26
|
-
|
|
84
|
+
themeColor?: ThemeColor;
|
|
85
|
+
/**
|
|
86
|
+
* - Theme fill name
|
|
87
|
+
*/
|
|
88
|
+
themeFill?: ThemeColor;
|
|
89
|
+
/**
|
|
90
|
+
* - Theme fill shade (0-255 in hex format without #)
|
|
91
|
+
*/
|
|
92
|
+
themeFillShade?: string;
|
|
93
|
+
/**
|
|
94
|
+
* - Theme fill tint (0-255 in hex format without #)
|
|
95
|
+
*/
|
|
96
|
+
themeFillTint?: string;
|
|
97
|
+
/**
|
|
98
|
+
* - Theme shade (0-255 in hex format without #)
|
|
99
|
+
*/
|
|
100
|
+
themeShade?: string;
|
|
101
|
+
/**
|
|
102
|
+
* - Theme tint (0-255 in hex format without #)
|
|
103
|
+
*/
|
|
104
|
+
themeTint?: string;
|
|
105
|
+
/**
|
|
106
|
+
* - Shading pattern
|
|
107
|
+
*/
|
|
108
|
+
val?: ShadingPattern;
|
|
27
109
|
};
|
|
28
110
|
/**
|
|
29
|
-
* Table
|
|
111
|
+
* Table width options
|
|
30
112
|
*/
|
|
31
|
-
export type
|
|
113
|
+
export type TableMeasurement = {
|
|
32
114
|
/**
|
|
33
|
-
* -
|
|
115
|
+
* - Width value in twips
|
|
34
116
|
*/
|
|
35
|
-
|
|
117
|
+
value: number;
|
|
36
118
|
/**
|
|
37
|
-
* -
|
|
119
|
+
* - Table width type (dxa=twips, pct=percentage, auto=automatic)
|
|
38
120
|
*/
|
|
39
|
-
type?:
|
|
121
|
+
type?: "dxa" | "pct" | "auto";
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Table look options
|
|
125
|
+
*/
|
|
126
|
+
export type TableLook = {
|
|
127
|
+
/**
|
|
128
|
+
* - Specifies that the first column conditional formatting should be applied
|
|
129
|
+
*/
|
|
130
|
+
firstColumn?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* - Specifies that the first row conditional formatting should be applied
|
|
133
|
+
*/
|
|
134
|
+
firstRow?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* - Specifies that the last column conditional formatting should be applied
|
|
137
|
+
*/
|
|
138
|
+
lastColumn?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* - Specifies that the last row conditional formatting should be applied
|
|
141
|
+
*/
|
|
142
|
+
lastRow?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* - Specifies that no horizontal banding conditional formatting should be applied
|
|
145
|
+
*/
|
|
146
|
+
noHBand?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* - Specifies that no vertical banding conditional formatting should be applied
|
|
149
|
+
*/
|
|
150
|
+
noVBand?: boolean;
|
|
40
151
|
};
|
|
41
152
|
/**
|
|
42
|
-
*
|
|
153
|
+
* Floating table properties
|
|
43
154
|
*/
|
|
44
|
-
export type
|
|
155
|
+
export type FloatingTableProperties = {
|
|
156
|
+
/**
|
|
157
|
+
* - Specifies the minimum distance in twips which shall be maintained between the current floating table and the edge of text in the paragraph which is to the left of this floating table.
|
|
158
|
+
*/
|
|
159
|
+
leftFromText?: number;
|
|
160
|
+
/**
|
|
161
|
+
* - Specifies the minimum distance in twips which shall be maintained between the current floating table and the edge of text in the paragraph which is to the right of this floating table.
|
|
162
|
+
*/
|
|
163
|
+
rightFromText?: number;
|
|
164
|
+
/**
|
|
165
|
+
* - Specifies the minimum distance in twips which shall be maintained between the current floating table and the bottom edge of text in the paragraph which is above this floating table.
|
|
166
|
+
*/
|
|
167
|
+
topFromText?: number;
|
|
168
|
+
/**
|
|
169
|
+
* - Specifies the minimum distance in twips which shall be maintained between the current floating table and the top edge of text in the paragraph which is below this floating table.
|
|
170
|
+
*/
|
|
171
|
+
bottomFromText?: number;
|
|
172
|
+
/**
|
|
173
|
+
* - Specifies and absolute horizontal position for the floating table. The position is measured from the horizontal anchor point (horzAnchor) in twips.
|
|
174
|
+
*/
|
|
175
|
+
tblpX?: number;
|
|
176
|
+
/**
|
|
177
|
+
* - Specifies and absolute vertical position for the floating table. The position is measured from the vertical anchor point (vertAnchor) in twips.
|
|
178
|
+
*/
|
|
179
|
+
tblpY?: number;
|
|
180
|
+
/**
|
|
181
|
+
* - Horizontal anchor point for tblpX
|
|
182
|
+
*/
|
|
183
|
+
horzAnchor?: "margin" | "page" | "text";
|
|
184
|
+
/**
|
|
185
|
+
* - Vertical anchor point for tblpY
|
|
186
|
+
*/
|
|
187
|
+
vertAnchor?: "margin" | "page" | "text";
|
|
188
|
+
/**
|
|
189
|
+
* - Specifies a relative horizontal position for the floating table. Supercedes tblpX if both are specified.
|
|
190
|
+
*/
|
|
191
|
+
tblpXSpec?: "left" | "center" | "right" | "inside" | "outside";
|
|
192
|
+
/**
|
|
193
|
+
* - Specifies a relative vertical position for the floating table. Supercedes tblpY if both are specified.
|
|
194
|
+
*/
|
|
195
|
+
tblpYSpec?: "inline" | "top" | "center" | "bottom" | "inside" | "outside";
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* Table border specification
|
|
199
|
+
*/
|
|
200
|
+
export type TableBorderSpec = {
|
|
201
|
+
/**
|
|
202
|
+
* - Border style (e.g., 'single', 'double', 'dashed', etc.)
|
|
203
|
+
*/
|
|
204
|
+
val?: string;
|
|
205
|
+
/**
|
|
206
|
+
* - Border color (hex without #, e.g., 'FF0000' for red)
|
|
207
|
+
*/
|
|
208
|
+
color?: string;
|
|
209
|
+
/**
|
|
210
|
+
* - Theme color name
|
|
211
|
+
*/
|
|
212
|
+
themeColor?: ThemeColor;
|
|
213
|
+
/**
|
|
214
|
+
* - Theme tint (0-255 in hex format without #)
|
|
215
|
+
*/
|
|
216
|
+
themeTint?: string;
|
|
217
|
+
/**
|
|
218
|
+
* - Theme shade (0-255 in hex format without #)
|
|
219
|
+
*/
|
|
220
|
+
themeShade?: string;
|
|
221
|
+
/**
|
|
222
|
+
* - Border size in eighths of a point (e.g., 8 = 1pt, 16 = 2pt)
|
|
223
|
+
*/
|
|
224
|
+
size?: number;
|
|
225
|
+
/**
|
|
226
|
+
* - Space in points between border and text
|
|
227
|
+
*/
|
|
228
|
+
space?: number;
|
|
229
|
+
/**
|
|
230
|
+
* - Whether the border has a shadow
|
|
231
|
+
*/
|
|
232
|
+
shadow?: boolean;
|
|
233
|
+
/**
|
|
234
|
+
* - Whether the border is a frame
|
|
235
|
+
*/
|
|
236
|
+
frame?: boolean;
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* Table borders properties
|
|
240
|
+
*/
|
|
241
|
+
export type TableBorders = {
|
|
242
|
+
/**
|
|
243
|
+
* - Bottom border specification
|
|
244
|
+
*/
|
|
245
|
+
bottom?: TableBorderSpec;
|
|
246
|
+
/**
|
|
247
|
+
* - End (right in LTR, left in RTL) border specification
|
|
248
|
+
*/
|
|
249
|
+
end?: TableBorderSpec;
|
|
250
|
+
/**
|
|
251
|
+
* - Inside horizontal border specification
|
|
252
|
+
*/
|
|
253
|
+
insideH?: TableBorderSpec;
|
|
254
|
+
/**
|
|
255
|
+
* - Inside vertical border specification
|
|
256
|
+
*/
|
|
257
|
+
insideV?: TableBorderSpec;
|
|
258
|
+
/**
|
|
259
|
+
* - Left border specification
|
|
260
|
+
*/
|
|
261
|
+
left?: TableBorderSpec;
|
|
262
|
+
/**
|
|
263
|
+
* - Right border specification
|
|
264
|
+
*/
|
|
265
|
+
right?: TableBorderSpec;
|
|
266
|
+
/**
|
|
267
|
+
* - Start (left in LTR, right in RTL) border specification
|
|
268
|
+
*/
|
|
269
|
+
start?: TableBorderSpec;
|
|
270
|
+
/**
|
|
271
|
+
* - Top border specification
|
|
272
|
+
*/
|
|
273
|
+
top?: TableBorderSpec;
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* Table cell margin properties
|
|
277
|
+
*/
|
|
278
|
+
export type TableCellMargins = {
|
|
279
|
+
/**
|
|
280
|
+
* - Top cell margin
|
|
281
|
+
*/
|
|
282
|
+
top?: TableMeasurement;
|
|
283
|
+
/**
|
|
284
|
+
* - Left cell margin
|
|
285
|
+
*/
|
|
286
|
+
left?: TableMeasurement;
|
|
287
|
+
/**
|
|
288
|
+
* - Bottom cell margin
|
|
289
|
+
*/
|
|
290
|
+
bottom?: TableMeasurement;
|
|
291
|
+
/**
|
|
292
|
+
* - Start cell margin (left in LTR, right in RTL)
|
|
293
|
+
*/
|
|
294
|
+
start?: TableMeasurement;
|
|
295
|
+
/**
|
|
296
|
+
* - End cell margin (right in LTR, left in RTL)
|
|
297
|
+
*/
|
|
298
|
+
end?: TableMeasurement;
|
|
299
|
+
/**
|
|
300
|
+
* - Right cell margin
|
|
301
|
+
*/
|
|
302
|
+
right?: TableMeasurement;
|
|
303
|
+
};
|
|
304
|
+
/**
|
|
305
|
+
* Table properties
|
|
306
|
+
*/
|
|
307
|
+
export type TableProperties = {
|
|
308
|
+
/**
|
|
309
|
+
* - Specifies that the cells with this table shall be visually represented in a right to left direction
|
|
310
|
+
*/
|
|
311
|
+
rightToLeft?: boolean;
|
|
312
|
+
/**
|
|
313
|
+
* - The alignment of the set of rows which are part of the current table.
|
|
314
|
+
*/
|
|
315
|
+
justification?: "center" | "end" | "left" | "right" | "start";
|
|
316
|
+
/**
|
|
317
|
+
* - Shading properties for the table
|
|
318
|
+
*/
|
|
319
|
+
shading?: ShadingProperties;
|
|
320
|
+
/**
|
|
321
|
+
* - Caption text for the table
|
|
322
|
+
*/
|
|
323
|
+
caption?: string;
|
|
324
|
+
/**
|
|
325
|
+
* - Description text for the table
|
|
326
|
+
*/
|
|
327
|
+
description?: string;
|
|
328
|
+
/**
|
|
329
|
+
* - Cell spacing
|
|
330
|
+
*/
|
|
331
|
+
tableCellSpacing?: TableMeasurement;
|
|
45
332
|
/**
|
|
46
333
|
* - Table indentation
|
|
47
334
|
*/
|
|
48
|
-
tableIndent?:
|
|
335
|
+
tableIndent?: TableMeasurement;
|
|
49
336
|
/**
|
|
50
|
-
* - Table
|
|
337
|
+
* - Table layout algorithm
|
|
51
338
|
*/
|
|
52
|
-
|
|
339
|
+
tableLayout?: "fixed" | "autofit";
|
|
53
340
|
/**
|
|
54
|
-
* -
|
|
341
|
+
* - Various boolean flags that affect the rendering of the table
|
|
55
342
|
*/
|
|
56
|
-
|
|
343
|
+
tableLook?: TableLook;
|
|
344
|
+
/**
|
|
345
|
+
* - Specifies whether the current table should allow other floating tables to overlap its extents when the tables are displayed in a document
|
|
346
|
+
*/
|
|
347
|
+
overlap?: "never" | "overlap";
|
|
57
348
|
/**
|
|
58
349
|
* - Reference to table style ID
|
|
59
350
|
*/
|
|
60
351
|
tableStyleId?: string;
|
|
61
352
|
/**
|
|
62
|
-
* -
|
|
353
|
+
* - Number of columns for which the table style is applied
|
|
354
|
+
*/
|
|
355
|
+
tableStyleColBandSize?: number;
|
|
356
|
+
/**
|
|
357
|
+
* - Number of rows for which the table style is applied
|
|
358
|
+
*/
|
|
359
|
+
tableStyleRowBandSize?: number;
|
|
360
|
+
/**
|
|
361
|
+
* - Table width
|
|
63
362
|
*/
|
|
64
|
-
|
|
363
|
+
tableWidth?: TableMeasurement;
|
|
65
364
|
/**
|
|
66
|
-
* -
|
|
365
|
+
* - Floating table properties
|
|
67
366
|
*/
|
|
68
|
-
|
|
367
|
+
floatingTableProperties?: FloatingTableProperties;
|
|
368
|
+
/**
|
|
369
|
+
* - Table border configuration
|
|
370
|
+
*/
|
|
371
|
+
borders?: TableBorders;
|
|
69
372
|
};
|
|
70
373
|
/**
|
|
71
|
-
*
|
|
374
|
+
* Column width definition
|
|
72
375
|
*/
|
|
73
|
-
export type
|
|
376
|
+
export type ColWidth = {
|
|
74
377
|
/**
|
|
75
|
-
* -
|
|
378
|
+
* - Column width in twips
|
|
76
379
|
*/
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* - Ending cell position
|
|
80
|
-
*/
|
|
81
|
-
headCell: number;
|
|
380
|
+
col: number;
|
|
82
381
|
};
|
|
83
382
|
/**
|
|
84
|
-
*
|
|
383
|
+
* Table grid definition
|
|
85
384
|
*/
|
|
86
|
-
export type
|
|
385
|
+
export type TableGrid = {
|
|
87
386
|
/**
|
|
88
|
-
* -
|
|
387
|
+
* - Array of column widths in twips
|
|
89
388
|
*/
|
|
90
|
-
|
|
389
|
+
colWidths?: ColWidth[];
|
|
390
|
+
};
|
|
391
|
+
/**
|
|
392
|
+
* Table configuration options
|
|
393
|
+
*/
|
|
394
|
+
export type TableConfig = {
|
|
91
395
|
/**
|
|
92
|
-
* -
|
|
396
|
+
* - Number of rows to create
|
|
93
397
|
*/
|
|
94
|
-
|
|
398
|
+
rows?: number;
|
|
95
399
|
/**
|
|
96
|
-
* -
|
|
400
|
+
* - Number of columns to create
|
|
97
401
|
*/
|
|
98
|
-
|
|
402
|
+
cols?: number;
|
|
99
403
|
/**
|
|
100
|
-
* -
|
|
404
|
+
* - Create first row as header row
|
|
101
405
|
*/
|
|
102
|
-
|
|
406
|
+
withHeaderRow?: boolean;
|
|
103
407
|
};
|
|
104
408
|
/**
|
|
105
|
-
*
|
|
409
|
+
* Table indentation configuration
|
|
106
410
|
*/
|
|
107
|
-
export type
|
|
411
|
+
export type TableIndent = {
|
|
108
412
|
/**
|
|
109
|
-
* -
|
|
413
|
+
* - Indent width in pixels
|
|
110
414
|
*/
|
|
111
|
-
|
|
415
|
+
width: number;
|
|
112
416
|
/**
|
|
113
|
-
* -
|
|
417
|
+
* - Indent type
|
|
114
418
|
*/
|
|
115
|
-
|
|
419
|
+
type?: string;
|
|
420
|
+
};
|
|
421
|
+
/**
|
|
422
|
+
* Cell selection position
|
|
423
|
+
*/
|
|
424
|
+
export type CellSelectionPosition = {
|
|
425
|
+
/**
|
|
426
|
+
* - Starting cell position
|
|
427
|
+
*/
|
|
428
|
+
anchorCell: number;
|
|
116
429
|
/**
|
|
117
|
-
* -
|
|
430
|
+
* - Ending cell position
|
|
118
431
|
*/
|
|
119
|
-
|
|
432
|
+
headCell: number;
|
|
120
433
|
};
|
|
434
|
+
/**
|
|
435
|
+
* Configuration options for Table
|
|
436
|
+
*/
|
|
437
|
+
export type TableOptions = any;
|
|
438
|
+
/**
|
|
439
|
+
* Attributes for table nodes
|
|
440
|
+
*/
|
|
441
|
+
export type TableAttributes = any;
|
|
121
442
|
/**
|
|
122
443
|
* Current cell information
|
|
123
444
|
*/
|
|
124
445
|
export type CurrentCellInfo = {
|
|
125
446
|
/**
|
|
126
|
-
* - Selected rectangle
|
|
447
|
+
* - Selected rectangle information
|
|
127
448
|
*/
|
|
128
449
|
rect: any;
|
|
129
450
|
/**
|
|
130
|
-
* -
|
|
451
|
+
* - The cell node
|
|
131
452
|
*/
|
|
132
|
-
cell:
|
|
453
|
+
cell: import("prosemirror-model").Node;
|
|
133
454
|
/**
|
|
134
|
-
* - Cell attributes
|
|
455
|
+
* - Cell attributes
|
|
135
456
|
*/
|
|
136
457
|
attrs: any;
|
|
137
458
|
};
|
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cell margins configuration
|
|
3
|
+
* @typedef {Object} CellMargins
|
|
4
|
+
* @property {number} [top] - Top margin in pixels
|
|
5
|
+
* @property {number} [right] - Right margin in pixels
|
|
6
|
+
* @property {number} [bottom] - Bottom margin in pixels
|
|
7
|
+
* @property {number} [left] - Left margin in pixels
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Cell background configuration
|
|
11
|
+
* @typedef {Object} CellBackground
|
|
12
|
+
* @property {string} color - Background color (hex without #)
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Configuration options for TableCell
|
|
16
|
+
* @typedef {Object} TableCellOptions
|
|
17
|
+
* @category Options
|
|
18
|
+
* @property {Object} [htmlAttributes={'aria-label': 'Table cell node'}] - HTML attributes for table cells
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Attributes for table cell nodes
|
|
22
|
+
* @typedef {Object} TableCellAttributes
|
|
23
|
+
* @category Attributes
|
|
24
|
+
* @property {number} [colspan=1] - Number of columns this cell spans
|
|
25
|
+
* @property {number} [rowspan=1] - Number of rows this cell spans
|
|
26
|
+
* @property {number[]} [colwidth=[100]] - Column widths array in pixels
|
|
27
|
+
* @property {CellBackground} [background] - Cell background color configuration
|
|
28
|
+
* @property {string} [verticalAlign] - Vertical content alignment (top, middle, bottom)
|
|
29
|
+
* @property {CellMargins} [cellMargins] - Internal cell padding
|
|
30
|
+
* @property {import('./helpers/createCellBorders.js').CellBorders} [borders] - Cell border configuration
|
|
31
|
+
* @property {string} [widthType='auto'] @internal - Internal width type
|
|
32
|
+
* @property {string} [widthUnit='px'] @internal - Internal width unit
|
|
33
|
+
*/
|
|
1
34
|
/**
|
|
2
35
|
* @module TableCell
|
|
3
36
|
* @sidebarTitle Table Cell
|
|
@@ -34,4 +67,12 @@ export type CellBackground = {
|
|
|
34
67
|
*/
|
|
35
68
|
color: string;
|
|
36
69
|
};
|
|
70
|
+
/**
|
|
71
|
+
* Configuration options for TableCell
|
|
72
|
+
*/
|
|
73
|
+
export type TableCellOptions = any;
|
|
74
|
+
/**
|
|
75
|
+
* Attributes for table cell nodes
|
|
76
|
+
*/
|
|
77
|
+
export type TableCellAttributes = any;
|
|
37
78
|
import { Node } from '@core/index.js';
|
|
@@ -1,7 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for TableHeader
|
|
3
|
+
* @typedef {Object} TableHeaderOptions
|
|
4
|
+
* @category Options
|
|
5
|
+
* @property {Object} [htmlAttributes={'aria-label': 'Table head node'}] - HTML attributes for table headers
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Attributes for table header nodes
|
|
9
|
+
* @typedef {Object} TableHeaderAttributes
|
|
10
|
+
* @category Attributes
|
|
11
|
+
* @property {number} [colspan=1] - Number of columns this header spans
|
|
12
|
+
* @property {number} [rowspan=1] - Number of rows this header spans
|
|
13
|
+
* @property {number[]} [colwidth] - Column widths array in pixels
|
|
14
|
+
*/
|
|
1
15
|
/**
|
|
2
16
|
* @module TableHeader
|
|
3
17
|
* @sidebarTitle Table Header
|
|
4
18
|
* @snippetPath /snippets/extensions/table-header.mdx
|
|
5
19
|
*/
|
|
6
20
|
export const TableHeader: Node;
|
|
21
|
+
/**
|
|
22
|
+
* Configuration options for TableHeader
|
|
23
|
+
*/
|
|
24
|
+
export type TableHeaderOptions = any;
|
|
25
|
+
/**
|
|
26
|
+
* Attributes for table header nodes
|
|
27
|
+
*/
|
|
28
|
+
export type TableHeaderAttributes = any;
|
|
7
29
|
import { Node } from '@core/index.js';
|
|
@@ -36,6 +36,26 @@
|
|
|
36
36
|
* @property {number} [wBefore.value] - The width in twenieths of a point (1/1440 of an inch).
|
|
37
37
|
* @property {"auto" | "dxa" | "nil" | "pct"} [wBefore.type] - The type of width.
|
|
38
38
|
*/
|
|
39
|
+
/**
|
|
40
|
+
* Configuration options for TableRow
|
|
41
|
+
* @typedef {Object} TableRowOptions
|
|
42
|
+
* @category Options
|
|
43
|
+
* @property {Object} [htmlAttributes={'aria-label': 'Table row node'}] - HTML attributes for table rows
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* Attributes for table row nodes
|
|
47
|
+
* @typedef {Object} TableRowAttributes
|
|
48
|
+
* @category Attributes
|
|
49
|
+
* @property {number} [rowHeight] - Fixed row height in pixels
|
|
50
|
+
* @property {boolean} [cantSplit=false] - Indicates row should not split across pages
|
|
51
|
+
* @property {TableRowProperties} [tableRowProperties] @internal - Internal row properties
|
|
52
|
+
* @property {string} [rsidDel] @internal - Editing session ID for deletion
|
|
53
|
+
* @property {string} [rsidR] @internal - Editing session ID for addition
|
|
54
|
+
* @property {string} [rsidRPr] @internal - Editing session ID for row mark modification
|
|
55
|
+
* @property {string} [rsidTr] @internal - Editing session ID for properties modification
|
|
56
|
+
* @property {string} [paraId] @internal - Unique identifier for the row
|
|
57
|
+
* @property {string} [textId] @internal - Unique identifier for row text
|
|
58
|
+
*/
|
|
39
59
|
/**
|
|
40
60
|
* @module TableRow
|
|
41
61
|
* @sidebarTitle Table Row
|
|
@@ -153,4 +173,12 @@ export type TableRowProperties = {
|
|
|
153
173
|
type?: "auto" | "dxa" | "nil" | "pct";
|
|
154
174
|
};
|
|
155
175
|
};
|
|
176
|
+
/**
|
|
177
|
+
* Configuration options for TableRow
|
|
178
|
+
*/
|
|
179
|
+
export type TableRowOptions = any;
|
|
180
|
+
/**
|
|
181
|
+
* Attributes for table row nodes
|
|
182
|
+
*/
|
|
183
|
+
export type TableRowAttributes = any;
|
|
156
184
|
import { Node } from '@core/index.js';
|
|
@@ -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';
|