@docen/extensions 0.1.2 → 0.2.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.
- package/dist/_chunks/types-or4xeozj.d.mts +890 -0
- package/dist/index.d.mts +9 -26
- package/dist/index.mjs +3627 -3629
- package/dist/types.d.mts +2 -682
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { A as Superscript, B as Underline, C as ListItem, E as OrderedList, F as TaskItem, I as TaskList, L as Text, M as TableCell, N as TableHeader, O as Strike, S as Link, T as Mention, _ as Highlight, a as Code, b as Italic, c as Details, d as Document, f as Emoji, h as HardBreak, i as BulletList, j as Table, k as Subscript, l as DetailsContent, m as FontSize, n as Blockquote, o as CodeBlockLowlight, p as FontFamily, r as Bold, s as Color, t as BackgroundColor, u as DetailsSummary, v as HorizontalRule, w as Mathematics, x as LineHeight, z as TextStyle } from "./_chunks/tiptap-x0R9GhXd.mjs";
|
|
2
|
-
import * as _tiptap_extension_paragraph0 from "@tiptap/extension-paragraph";
|
|
3
|
-
import * as _tiptap_extension_heading0 from "@tiptap/extension-heading";
|
|
4
|
-
import * as _tiptap_extension_table0 from "@tiptap/extension-table";
|
|
5
|
-
import * as _tiptap_extension_image0 from "@tiptap/extension-image";
|
|
2
|
+
import * as _$_tiptap_extension_paragraph0 from "@tiptap/extension-paragraph";
|
|
3
|
+
import * as _$_tiptap_extension_heading0 from "@tiptap/extension-heading";
|
|
4
|
+
import * as _$_tiptap_extension_table0 from "@tiptap/extension-table";
|
|
5
|
+
import * as _$_tiptap_extension_image0 from "@tiptap/extension-image";
|
|
6
6
|
import { TextAlign } from "@tiptap/extension-text-align";
|
|
7
|
-
import * as _tiptap_core0 from "@tiptap/core";
|
|
7
|
+
import * as _$_tiptap_core0 from "@tiptap/core";
|
|
8
8
|
import { AnyExtension } from "@tiptap/core";
|
|
9
9
|
|
|
10
10
|
//#region src/extends/heading.d.ts
|
|
@@ -20,27 +20,10 @@ import { AnyExtension } from "@tiptap/core";
|
|
|
20
20
|
* Note: Attributes store CSS values as-is (no unit conversion).
|
|
21
21
|
* Conversion happens in export-docx/import-docx packages.
|
|
22
22
|
*/
|
|
23
|
-
declare const Heading: _tiptap_core0.Node<_tiptap_extension_heading0.HeadingOptions, any>;
|
|
23
|
+
declare const Heading: _$_tiptap_core0.Node<_$_tiptap_extension_heading0.HeadingOptions, any>;
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region src/extends/image.d.ts
|
|
26
|
-
|
|
27
|
-
* Custom Image extension based on @tiptap/extension-image
|
|
28
|
-
*
|
|
29
|
-
* Adds DOCX-specific attributes for round-trip conversion:
|
|
30
|
-
* - rotation: Image rotation in degrees (rendered as CSS transform)
|
|
31
|
-
* - floating: Image positioning options (stored as data-floating attribute)
|
|
32
|
-
* - outline: Image border/outline options (stored as data-outline attribute)
|
|
33
|
-
*
|
|
34
|
-
* HTML serialization strategy:
|
|
35
|
-
* - rotation: Mapped to CSS transform: rotate()
|
|
36
|
-
* - floating: Preserved as data-floating JSON attribute (no CSS equivalent)
|
|
37
|
-
* - outline: Preserved as data-outline JSON attribute (no CSS equivalent)
|
|
38
|
-
*
|
|
39
|
-
* Note: floating and outline are DOCX-specific features without direct CSS
|
|
40
|
-
* equivalents. They're preserved in HTML for round-trip conversion but only
|
|
41
|
-
* affect DOCX export/import.
|
|
42
|
-
*/
|
|
43
|
-
declare const Image: _tiptap_core0.Node<_tiptap_extension_image0.ImageOptions, any>;
|
|
26
|
+
declare const Image: _$_tiptap_core0.Node<_$_tiptap_extension_image0.ImageOptions, any>;
|
|
44
27
|
//#endregion
|
|
45
28
|
//#region src/extends/paragraph.d.ts
|
|
46
29
|
/**
|
|
@@ -56,7 +39,7 @@ declare const Image: _tiptap_core0.Node<_tiptap_extension_image0.ImageOptions, a
|
|
|
56
39
|
* Note: Attributes store CSS values as-is (no unit conversion).
|
|
57
40
|
* Conversion happens in export-docx/import-docx packages.
|
|
58
41
|
*/
|
|
59
|
-
declare const Paragraph: _tiptap_core0.Node<_tiptap_extension_paragraph0.ParagraphOptions, any>;
|
|
42
|
+
declare const Paragraph: _$_tiptap_core0.Node<_$_tiptap_extension_paragraph0.ParagraphOptions, any>;
|
|
60
43
|
//#endregion
|
|
61
44
|
//#region src/extends/table-row.d.ts
|
|
62
45
|
/**
|
|
@@ -71,7 +54,7 @@ declare const Paragraph: _tiptap_core0.Node<_tiptap_extension_paragraph0.Paragra
|
|
|
71
54
|
* Note: Attribute stores CSS value as-is (no unit conversion).
|
|
72
55
|
* Conversion happens in export-docx/import-docx packages.
|
|
73
56
|
*/
|
|
74
|
-
declare const TableRow: _tiptap_core0.Node<_tiptap_extension_table0.TableRowOptions, any>;
|
|
57
|
+
declare const TableRow: _$_tiptap_core0.Node<_$_tiptap_extension_table0.TableRowOptions, any>;
|
|
75
58
|
//#endregion
|
|
76
59
|
//#region src/extensions.d.ts
|
|
77
60
|
declare const tiptapNodeExtensions: AnyExtension[];
|