@docen/extensions 0.0.10 → 0.0.11

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/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 };