@docen/extensions 0.0.10 → 0.0.12
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/README.md +315 -315
- package/dist/_chunks/tiptap-x0R9GhXd.d.mts +31 -0
- package/dist/index.d.mts +23 -14
- package/dist/index.mjs +47831 -8
- package/dist/tiptap.d.mts +2 -3
- package/dist/tiptap.mjs +31 -1
- package/dist/types.d.mts +133 -333
- package/dist/types.mjs +1 -1
- package/package.json +43 -46
- package/dist/index.cjs +0 -8
- package/dist/index.d.cts +0 -72
- package/dist/index.d.ts +0 -72
- package/dist/shared/extensions.BOBBi1Z_.d.cts +0 -6606
- package/dist/shared/extensions.BOBBi1Z_.d.mts +0 -6606
- package/dist/shared/extensions.BOBBi1Z_.d.ts +0 -6606
- package/dist/shared/extensions.CAUtiZQg.cjs +0 -72
- package/dist/shared/extensions.DmJvAao6.d.cts +0 -1863
- package/dist/shared/extensions.IF9nv9tR.d.mts +0 -1863
- package/dist/shared/extensions.ITVKw7bK.d.ts +0 -1863
- package/dist/shared/extensions.ymUB12ul.mjs +0 -72
- package/dist/tiptap.cjs +0 -1
- package/dist/tiptap.d.cts +0 -3
- package/dist/tiptap.d.ts +0 -3
- package/dist/types.cjs +0 -1
- package/dist/types.d.cts +0 -385
- package/dist/types.d.ts +0 -385
package/dist/index.d.cts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { N as Node, A as AnyExtension } from './shared/extensions.BOBBi1Z_.cjs';
|
|
2
|
-
import { H as HeadingOptions, I as ImageOptions, P as ParagraphOptions, T as TableRowOptions } from './shared/extensions.DmJvAao6.cjs';
|
|
3
|
-
export { B as BackgroundColor, a as Blockquote, b as Bold, c as BulletList, C as Code, d as CodeBlockLowlight, e as Color, D as Details, f as DetailsContent, g as DetailsSummary, h as Document, E as Emoji, F as FontFamily, i as FontSize, j as HardBreak, k as Highlight, l as HorizontalRule, m as Italic, L as LineHeight, n as Link, o as ListItem, M as Mention, O as OrderedList, S as Strike, p as Subscript, q as Superscript, r as Table, s as TableCell, t as TableHeader, u as TaskItem, v as TaskList, w as Text, x as TextAlign, y as TextStyle, U as Underline } from './shared/extensions.DmJvAao6.cjs';
|
|
4
|
-
export { Mathematics } from '@tiptap/extension-mathematics';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Custom Heading extension with DOCX-compatible style attributes
|
|
8
|
-
*
|
|
9
|
-
* Adds the same paragraph-level formatting as Paragraph extension:
|
|
10
|
-
* - Indentation: left, right, first line
|
|
11
|
-
* - Spacing: before, after
|
|
12
|
-
*
|
|
13
|
-
* This ensures consistency across all block-level elements for DOCX round-trip.
|
|
14
|
-
*
|
|
15
|
-
* Note: Attributes store CSS values as-is (no unit conversion).
|
|
16
|
-
* Conversion happens in export-docx/import-docx packages.
|
|
17
|
-
*/
|
|
18
|
-
declare const Heading: Node<HeadingOptions, any>;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Custom Image extension based on @tiptap/extension-image
|
|
22
|
-
*
|
|
23
|
-
* Adds DOCX-specific attributes for round-trip conversion:
|
|
24
|
-
* - rotation: Image rotation in degrees (rendered as CSS transform)
|
|
25
|
-
* - floating: Image positioning options (stored as data-floating attribute)
|
|
26
|
-
* - outline: Image border/outline options (stored as data-outline attribute)
|
|
27
|
-
*
|
|
28
|
-
* HTML serialization strategy:
|
|
29
|
-
* - rotation: Mapped to CSS transform: rotate()
|
|
30
|
-
* - floating: Preserved as data-floating JSON attribute (no CSS equivalent)
|
|
31
|
-
* - outline: Preserved as data-outline JSON attribute (no CSS equivalent)
|
|
32
|
-
*
|
|
33
|
-
* Note: floating and outline are DOCX-specific features without direct CSS
|
|
34
|
-
* equivalents. They're preserved in HTML for round-trip conversion but only
|
|
35
|
-
* affect DOCX export/import.
|
|
36
|
-
*/
|
|
37
|
-
declare const Image: Node<ImageOptions, any>;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Custom Paragraph extension with DOCX-compatible style attributes
|
|
41
|
-
*
|
|
42
|
-
* Adds support for paragraph-level formatting used in DOCX round-trip conversion:
|
|
43
|
-
* - Indentation: left, right, first line
|
|
44
|
-
* - Spacing: before, after
|
|
45
|
-
*
|
|
46
|
-
* These attributes map to CSS margin properties for HTML rendering
|
|
47
|
-
* and to DOCX paragraph properties for DOCX export/import.
|
|
48
|
-
*
|
|
49
|
-
* Note: Attributes store CSS values as-is (no unit conversion).
|
|
50
|
-
* Conversion happens in export-docx/import-docx packages.
|
|
51
|
-
*/
|
|
52
|
-
declare const Paragraph: Node<ParagraphOptions, any>;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Custom TableRow extension with row height support for DOCX round-trip
|
|
56
|
-
*
|
|
57
|
-
* Adds support for row height used in DOCX conversion:
|
|
58
|
-
* - rowHeight: height of the table row (in pixels or CSS units)
|
|
59
|
-
*
|
|
60
|
-
* This attribute maps to CSS height property for HTML rendering
|
|
61
|
-
* and to DOCX w:trPr/w:trHeight for DOCX export/import.
|
|
62
|
-
*
|
|
63
|
-
* Note: Attribute stores CSS value as-is (no unit conversion).
|
|
64
|
-
* Conversion happens in export-docx/import-docx packages.
|
|
65
|
-
*/
|
|
66
|
-
declare const TableRow: Node<TableRowOptions, any>;
|
|
67
|
-
|
|
68
|
-
declare const tiptapNodeExtensions: AnyExtension[];
|
|
69
|
-
declare const tiptapMarkExtensions: AnyExtension[];
|
|
70
|
-
declare const tiptapExtensions: AnyExtension[];
|
|
71
|
-
|
|
72
|
-
export { Heading, Image, Paragraph, TableRow, tiptapExtensions, tiptapMarkExtensions, tiptapNodeExtensions };
|
package/dist/index.d.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { N as Node, A as AnyExtension } from './shared/extensions.BOBBi1Z_.js';
|
|
2
|
-
import { H as HeadingOptions, I as ImageOptions, P as ParagraphOptions, T as TableRowOptions } from './shared/extensions.ITVKw7bK.js';
|
|
3
|
-
export { B as BackgroundColor, a as Blockquote, b as Bold, c as BulletList, C as Code, d as CodeBlockLowlight, e as Color, D as Details, f as DetailsContent, g as DetailsSummary, h as Document, E as Emoji, F as FontFamily, i as FontSize, j as HardBreak, k as Highlight, l as HorizontalRule, m as Italic, L as LineHeight, n as Link, o as ListItem, M as Mention, O as OrderedList, S as Strike, p as Subscript, q as Superscript, r as Table, s as TableCell, t as TableHeader, u as TaskItem, v as TaskList, w as Text, x as TextAlign, y as TextStyle, U as Underline } from './shared/extensions.ITVKw7bK.js';
|
|
4
|
-
export { Mathematics } from '@tiptap/extension-mathematics';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Custom Heading extension with DOCX-compatible style attributes
|
|
8
|
-
*
|
|
9
|
-
* Adds the same paragraph-level formatting as Paragraph extension:
|
|
10
|
-
* - Indentation: left, right, first line
|
|
11
|
-
* - Spacing: before, after
|
|
12
|
-
*
|
|
13
|
-
* This ensures consistency across all block-level elements for DOCX round-trip.
|
|
14
|
-
*
|
|
15
|
-
* Note: Attributes store CSS values as-is (no unit conversion).
|
|
16
|
-
* Conversion happens in export-docx/import-docx packages.
|
|
17
|
-
*/
|
|
18
|
-
declare const Heading: Node<HeadingOptions, any>;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Custom Image extension based on @tiptap/extension-image
|
|
22
|
-
*
|
|
23
|
-
* Adds DOCX-specific attributes for round-trip conversion:
|
|
24
|
-
* - rotation: Image rotation in degrees (rendered as CSS transform)
|
|
25
|
-
* - floating: Image positioning options (stored as data-floating attribute)
|
|
26
|
-
* - outline: Image border/outline options (stored as data-outline attribute)
|
|
27
|
-
*
|
|
28
|
-
* HTML serialization strategy:
|
|
29
|
-
* - rotation: Mapped to CSS transform: rotate()
|
|
30
|
-
* - floating: Preserved as data-floating JSON attribute (no CSS equivalent)
|
|
31
|
-
* - outline: Preserved as data-outline JSON attribute (no CSS equivalent)
|
|
32
|
-
*
|
|
33
|
-
* Note: floating and outline are DOCX-specific features without direct CSS
|
|
34
|
-
* equivalents. They're preserved in HTML for round-trip conversion but only
|
|
35
|
-
* affect DOCX export/import.
|
|
36
|
-
*/
|
|
37
|
-
declare const Image: Node<ImageOptions, any>;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Custom Paragraph extension with DOCX-compatible style attributes
|
|
41
|
-
*
|
|
42
|
-
* Adds support for paragraph-level formatting used in DOCX round-trip conversion:
|
|
43
|
-
* - Indentation: left, right, first line
|
|
44
|
-
* - Spacing: before, after
|
|
45
|
-
*
|
|
46
|
-
* These attributes map to CSS margin properties for HTML rendering
|
|
47
|
-
* and to DOCX paragraph properties for DOCX export/import.
|
|
48
|
-
*
|
|
49
|
-
* Note: Attributes store CSS values as-is (no unit conversion).
|
|
50
|
-
* Conversion happens in export-docx/import-docx packages.
|
|
51
|
-
*/
|
|
52
|
-
declare const Paragraph: Node<ParagraphOptions, any>;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Custom TableRow extension with row height support for DOCX round-trip
|
|
56
|
-
*
|
|
57
|
-
* Adds support for row height used in DOCX conversion:
|
|
58
|
-
* - rowHeight: height of the table row (in pixels or CSS units)
|
|
59
|
-
*
|
|
60
|
-
* This attribute maps to CSS height property for HTML rendering
|
|
61
|
-
* and to DOCX w:trPr/w:trHeight for DOCX export/import.
|
|
62
|
-
*
|
|
63
|
-
* Note: Attribute stores CSS value as-is (no unit conversion).
|
|
64
|
-
* Conversion happens in export-docx/import-docx packages.
|
|
65
|
-
*/
|
|
66
|
-
declare const TableRow: Node<TableRowOptions, any>;
|
|
67
|
-
|
|
68
|
-
declare const tiptapNodeExtensions: AnyExtension[];
|
|
69
|
-
declare const tiptapMarkExtensions: AnyExtension[];
|
|
70
|
-
declare const tiptapExtensions: AnyExtension[];
|
|
71
|
-
|
|
72
|
-
export { Heading, Image, Paragraph, TableRow, tiptapExtensions, tiptapMarkExtensions, tiptapNodeExtensions };
|