@harbour-enterprises/superdoc 0.21.0-RC1 → 0.21.0-RC2
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-DK1etjvu.es.js → PdfViewer-CbGuPQY8.es.js} +1 -1
- package/dist/chunks/{PdfViewer-BdrjIRpr.cjs → PdfViewer-DGbJ8_qc.cjs} +1 -1
- package/dist/chunks/{index-C_zTr1ZR.cjs → index-ecl0ZFNw.cjs} +3 -3
- package/dist/chunks/{index-ucP9WQ5I.es.js → index-qjntJEk0.es.js} +3 -3
- package/dist/chunks/{super-editor.es-KKA9G1l1.es.js → super-editor.es-BF_Xaucb.es.js} +8807 -7196
- package/dist/chunks/{super-editor.es-XC168Mlw.cjs → super-editor.es-CS5l-cVZ.cjs} +8807 -7196
- 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-B61ZUb-V.js → converter-DUqGq6qj.js} +6317 -5380
- package/dist/super-editor/chunks/{docx-zipper-B8nhsVFW.js → docx-zipper-CQsQR8Zs.js} +2 -2
- package/dist/super-editor/chunks/{editor-CQ0o4v54.js → editor-gMF6aWiz.js} +2064 -1439
- package/dist/super-editor/chunks/{toolbar-DWzoslZk.js → toolbar-BxsT1ZgG.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/components/toolbar/format-negation.d.ts +5 -0
- package/dist/super-editor/src/core/commands/toggleMarkCascade.d.ts +1 -0
- package/dist/super-editor/src/core/commands/types/index.d.ts +29 -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 +15 -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/constants/east-asian-regex.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/constants/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/index.d.ts +2 -24
- 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/r/helpers/helpers.d.ts +11 -11
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/track-change-helpers.d.ts +5 -0
- 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/helpers/listItemTypography.d.ts +62 -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/commands/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/run/commands/split-run.d.ts +1 -0
- package/dist/super-editor/src/extensions/run/run.d.ts +4 -4
- 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/helpers/tabDecorations.d.ts +12 -0
- package/dist/super-editor/src/extensions/tab/tab.d.ts +29 -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/src/tests/helpers/getParagraphText.d.ts +2 -0
- package/dist/super-editor/style.css +38 -0
- package/dist/super-editor/super-editor.es.js +126 -73
- 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 +9435 -7824
- 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,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';
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @typedef {Object}
|
|
4
|
-
* @
|
|
2
|
+
* Configuration options for TextIndent
|
|
3
|
+
* @typedef {Object} TextIndentOptions
|
|
4
|
+
* @category Options
|
|
5
|
+
* @property {string[]} [types=['heading', 'paragraph']] - Node types to apply indentation to
|
|
6
|
+
* @property {Object} [defaults] - Default indentation settings
|
|
7
|
+
* @property {string} [defaults.unit='in'] - Default unit for indentation (in, cm, px, etc.)
|
|
8
|
+
* @property {number} [defaults.increment=0.125] - Default increment/decrement value
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Attributes for text indentation
|
|
12
|
+
* @typedef {Object} TextIndentAttributes
|
|
13
|
+
* @category Attributes
|
|
14
|
+
* @property {string} [textIndent] - Text indentation value with unit (e.g., '0.5in')
|
|
5
15
|
*/
|
|
6
16
|
/**
|
|
7
17
|
* @module TextIndent
|
|
@@ -10,12 +20,11 @@
|
|
|
10
20
|
*/
|
|
11
21
|
export const TextIndent: Extension;
|
|
12
22
|
/**
|
|
13
|
-
*
|
|
23
|
+
* Configuration options for TextIndent
|
|
24
|
+
*/
|
|
25
|
+
export type TextIndentOptions = any;
|
|
26
|
+
/**
|
|
27
|
+
* Attributes for text indentation
|
|
14
28
|
*/
|
|
15
|
-
export type
|
|
16
|
-
/**
|
|
17
|
-
* - Indent value with unit (e.g., '0.5in', '1cm')
|
|
18
|
-
*/
|
|
19
|
-
indent: string;
|
|
20
|
-
};
|
|
29
|
+
export type TextIndentAttributes = any;
|
|
21
30
|
import { Extension } from '@core/index.js';
|
|
@@ -1,7 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for TextStyle
|
|
3
|
+
* @typedef {Object} TextStyleOptions
|
|
4
|
+
* @category Options
|
|
5
|
+
* @property {Object} [htmlAttributes={}] - Custom HTML attributes to apply to text style spans
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Attributes for text style marks
|
|
9
|
+
* @typedef {Object} TextStyleAttributes
|
|
10
|
+
* @category Attributes
|
|
11
|
+
* @property {string} [styleId] - Style identifier for referencing predefined styles
|
|
12
|
+
*/
|
|
1
13
|
/**
|
|
2
14
|
* @module TextStyle
|
|
3
15
|
* @sidebarTitle Text Style
|
|
4
16
|
* @snippetPath /snippets/extensions/text-style.mdx
|
|
5
17
|
*/
|
|
6
18
|
export const TextStyle: Mark;
|
|
19
|
+
/**
|
|
20
|
+
* Configuration options for TextStyle
|
|
21
|
+
*/
|
|
22
|
+
export type TextStyleOptions = any;
|
|
23
|
+
/**
|
|
24
|
+
* Attributes for text style marks
|
|
25
|
+
*/
|
|
26
|
+
export type TextStyleAttributes = any;
|
|
7
27
|
import { Mark } from '@core/index.js';
|
|
@@ -1,7 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for TextTransform
|
|
3
|
+
* @typedef {Object} TextTransformOptions
|
|
4
|
+
* @category Options
|
|
5
|
+
* @property {string[]} [types=['textStyle']] - Mark types to apply text transform to
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Attributes for text transform
|
|
9
|
+
* @typedef {Object} TextTransformAttributes
|
|
10
|
+
* @category Attributes
|
|
11
|
+
* @property {string} [textTransform] - Text transform value (uppercase, lowercase, capitalize, none)
|
|
12
|
+
*/
|
|
1
13
|
/**
|
|
2
14
|
* @module TextTransform
|
|
3
15
|
* @sidebarTitle Text Transform
|
|
4
16
|
* @snippetPath /snippets/extensions/text-transform.mdx
|
|
5
17
|
*/
|
|
6
18
|
export const TextTransform: Extension;
|
|
19
|
+
/**
|
|
20
|
+
* Configuration options for TextTransform
|
|
21
|
+
*/
|
|
22
|
+
export type TextTransformOptions = any;
|
|
23
|
+
/**
|
|
24
|
+
* Attributes for text transform
|
|
25
|
+
*/
|
|
26
|
+
export type TextTransformAttributes = any;
|
|
7
27
|
import { Extension } from '@core/index.js';
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Underline style configuration
|
|
3
|
+
* @typedef {Object} UnderlineConfig
|
|
4
|
+
* @property {'single'|'double'|'thick'|'dotted'|'dashed'|'wavy'} value - Style variant
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Configuration options for Underline
|
|
8
|
+
* @typedef {Object} UnderlineOptions
|
|
9
|
+
* @category Options
|
|
10
|
+
* @property {Object} [htmlAttributes={}] - HTML attributes for underline elements
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Attributes for underline marks
|
|
14
|
+
* @typedef {Object} UnderlineAttributes
|
|
15
|
+
* @category Attributes
|
|
16
|
+
* @property {UnderlineConfig} [underlineType='single'] - Style of underline
|
|
17
|
+
*/
|
|
1
18
|
/**
|
|
2
19
|
* @module Underline
|
|
3
20
|
* @sidebarTitle Underline
|
|
@@ -15,4 +32,12 @@ export type UnderlineConfig = {
|
|
|
15
32
|
*/
|
|
16
33
|
value: "single" | "double" | "thick" | "dotted" | "dashed" | "wavy";
|
|
17
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* Configuration options for Underline
|
|
37
|
+
*/
|
|
38
|
+
export type UnderlineOptions = any;
|
|
39
|
+
/**
|
|
40
|
+
* Attributes for underline marks
|
|
41
|
+
*/
|
|
42
|
+
export type UnderlineAttributes = any;
|
|
18
43
|
import { Mark } from '@core/index.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function createTestEditor(options?: {
|
|
2
|
+
extensions: any[];
|
|
3
|
+
content: any;
|
|
4
|
+
editorOptions: any;
|
|
5
|
+
}): Editor;
|
|
6
|
+
export function createMinimalTestEditor(extensions?: any[], options?: any): Editor;
|
|
7
|
+
export function createDocxTestEditor(options?: any): Editor;
|
|
8
|
+
export function getNodeFromEditor(editor: Editor, nodeType: string, pos?: number): Node | null;
|
|
9
|
+
export function insertText(editor: Editor, text: string, pos?: number): void;
|
|
10
|
+
export function createTransaction(editor: Editor): Transaction;
|
|
11
|
+
export function applyTransaction(editor: Editor, tr: Transaction): void;
|
|
12
|
+
export function getEditorJSON(editor: Editor): any;
|
|
13
|
+
export function setEditorContent(editor: Editor, content: any): void;
|
|
14
|
+
import { Editor } from '@core/Editor.js';
|
|
@@ -1117,6 +1117,44 @@ on the right if it is inside shape textbox.
|
|
|
1117
1117
|
white-space: nowrap;
|
|
1118
1118
|
text-overflow: ellipsis;
|
|
1119
1119
|
}
|
|
1120
|
+
.sd-structured-content,
|
|
1121
|
+
.sd-structured-content-block {
|
|
1122
|
+
padding: 1px;
|
|
1123
|
+
box-sizing: border-box;
|
|
1124
|
+
border-radius: 4px;
|
|
1125
|
+
border: 1px solid #629be7;
|
|
1126
|
+
position: relative;
|
|
1127
|
+
}
|
|
1128
|
+
.sd-structured-content-draggable {
|
|
1129
|
+
font-size: 10px;
|
|
1130
|
+
align-items: center;
|
|
1131
|
+
justify-content: center;
|
|
1132
|
+
position: absolute;
|
|
1133
|
+
left: 2px;
|
|
1134
|
+
bottom: 100%;
|
|
1135
|
+
width: calc(100% - 4px);
|
|
1136
|
+
max-width: 110px;
|
|
1137
|
+
min-width: 0;
|
|
1138
|
+
height: 18px;
|
|
1139
|
+
padding: 0 4px;
|
|
1140
|
+
border: 1px solid #629be7;
|
|
1141
|
+
border-bottom: none;
|
|
1142
|
+
border-radius: 6px 6px 0 0;
|
|
1143
|
+
background-color: #629be733;
|
|
1144
|
+
z-index: 10;
|
|
1145
|
+
cursor: grab;
|
|
1146
|
+
display: none;
|
|
1147
|
+
}
|
|
1148
|
+
.sd-structured-content-draggable span {
|
|
1149
|
+
max-width: 100%;
|
|
1150
|
+
overflow: hidden;
|
|
1151
|
+
white-space: nowrap;
|
|
1152
|
+
text-overflow: ellipsis;
|
|
1153
|
+
}
|
|
1154
|
+
.sd-structured-content:hover .sd-structured-content-draggable,
|
|
1155
|
+
.sd-structured-content-block:hover .sd-structured-content-draggable {
|
|
1156
|
+
display: inline-flex;
|
|
1157
|
+
}
|
|
1120
1158
|
|
|
1121
1159
|
.alignment-buttons[data-v-d84f57b6] {
|
|
1122
1160
|
display: flex;
|