@hirokisakabe/pom 6.2.0 → 6.4.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/README.md +21 -21
- package/dist/parseXml/coercionRules.d.ts.map +1 -1
- package/dist/parseXml/coercionRules.js +2 -0
- package/dist/parseXml/parseXml.d.ts.map +1 -1
- package/dist/parseXml/parseXml.js +31 -7
- package/dist/renderPptx/nodes/list.d.ts.map +1 -1
- package/dist/renderPptx/nodes/list.js +4 -0
- package/dist/renderPptx/nodes/table.d.ts.map +1 -1
- package/dist/renderPptx/nodes/table.js +11 -4
- package/dist/renderPptx/nodes/text.js +4 -4
- package/dist/types.d.ts +34 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -69,26 +69,26 @@ await pptx.writeFile({ fileName: "presentation.pptx" });
|
|
|
69
69
|
|
|
70
70
|
## Available Nodes
|
|
71
71
|
|
|
72
|
-
| Node | Description
|
|
73
|
-
| ------------ |
|
|
74
|
-
| Text | Text with font styling, decoration, inline bold/italic, and hyperlinks |
|
|
75
|
-
| Ul | Unordered (bullet) list with Li items
|
|
76
|
-
| Ol | Ordered (numbered) list with Li items
|
|
77
|
-
| Image | Images from file path, URL, or base64
|
|
78
|
-
| Table | Tables with customizable columns and rows
|
|
79
|
-
| Shape | PowerPoint shapes (roundRect, ellipse, etc.)
|
|
80
|
-
| Chart | Charts (bar, line, pie, area, doughnut, radar)
|
|
81
|
-
| Timeline | Timeline / roadmap visualizations
|
|
82
|
-
| Matrix | 2x2 positioning maps
|
|
83
|
-
| Tree | Organization charts and decision trees
|
|
84
|
-
| Flow | Flowcharts with nodes and edges
|
|
85
|
-
| ProcessArrow | Chevron-style process diagrams
|
|
86
|
-
| Pyramid | Pyramid diagrams for hierarchies
|
|
87
|
-
| Line | Horizontal / vertical lines
|
|
88
|
-
| Layer | Absolute-positioned overlay container
|
|
89
|
-
| VStack | Vertical stack layout
|
|
90
|
-
| HStack | Horizontal stack layout
|
|
91
|
-
| Icon | Lucide icons / inline SVG
|
|
72
|
+
| Node | Description |
|
|
73
|
+
| ------------ | ------------------------------------------------------------------------------------------------------- |
|
|
74
|
+
| Text | Text with font styling, decoration, inline bold/italic/underline/strike/highlight/color, and hyperlinks |
|
|
75
|
+
| Ul | Unordered (bullet) list with Li items |
|
|
76
|
+
| Ol | Ordered (numbered) list with Li items |
|
|
77
|
+
| Image | Images from file path, URL, or base64 |
|
|
78
|
+
| Table | Tables with customizable columns and rows |
|
|
79
|
+
| Shape | PowerPoint shapes (roundRect, ellipse, etc.) |
|
|
80
|
+
| Chart | Charts (bar, line, pie, area, doughnut, radar) |
|
|
81
|
+
| Timeline | Timeline / roadmap visualizations |
|
|
82
|
+
| Matrix | 2x2 positioning maps |
|
|
83
|
+
| Tree | Organization charts and decision trees |
|
|
84
|
+
| Flow | Flowcharts with nodes and edges |
|
|
85
|
+
| ProcessArrow | Chevron-style process diagrams |
|
|
86
|
+
| Pyramid | Pyramid diagrams for hierarchies |
|
|
87
|
+
| Line | Horizontal / vertical lines |
|
|
88
|
+
| Layer | Absolute-positioned overlay container |
|
|
89
|
+
| VStack | Vertical stack layout |
|
|
90
|
+
| HStack | Horizontal stack layout |
|
|
91
|
+
| Icon | Lucide icons / inline SVG |
|
|
92
92
|
|
|
93
93
|
For detailed node documentation, see [Nodes](./docs/nodes.md).
|
|
94
94
|
|
|
@@ -141,7 +141,7 @@ For detailed node documentation, see [Nodes](./docs/nodes.md).
|
|
|
141
141
|
### Table
|
|
142
142
|
|
|
143
143
|
```xml
|
|
144
|
-
<Table defaultRowHeight="36">
|
|
144
|
+
<Table defaultRowHeight="36" cellBorder='{"color":"CBD5E1","width":1}'>
|
|
145
145
|
<TableColumn width="80" />
|
|
146
146
|
<TableColumn width="200" />
|
|
147
147
|
<TableRow>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coercionRules.d.ts","sourceRoot":"","sources":["../../src/parseXml/coercionRules.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,MAAM,MAAM,YAAY,GACpB,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,MAAM,GACN;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;CAAE,GACrD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,YAAY,EAAE,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;CAAE,CAAC;AAI5D,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,YAAY,GACjB;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAyD1C;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,YAAY,EAAE,GACtB,OAAO,CAuCT;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAarD;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,YAAY,GACjB,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,SAAS,CAY1C;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAQpE;AA8HD,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"coercionRules.d.ts","sourceRoot":"","sources":["../../src/parseXml/coercionRules.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,MAAM,MAAM,YAAY,GACpB,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,MAAM,GACN;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;CAAE,GACrD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,YAAY,EAAE,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;CAAE,CAAC;AAI5D,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,YAAY,GACjB;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAyD1C;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,YAAY,EAAE,GACtB,OAAO,CAuCT;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAarD;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,YAAY,GACjB,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,SAAS,CAY1C;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAQpE;AA8HD,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CA2I1E,CAAC;AAGF,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAC7C,MAAM,EACN,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAgF7B,CAAC"}
|
|
@@ -289,6 +289,7 @@ export const NODE_COERCION_MAP = {
|
|
|
289
289
|
columns: "json",
|
|
290
290
|
rows: "json",
|
|
291
291
|
defaultRowHeight: "number",
|
|
292
|
+
cellBorder: BORDER_STYLE_RULE,
|
|
292
293
|
},
|
|
293
294
|
shape: {
|
|
294
295
|
...BASE_RULES,
|
|
@@ -471,4 +472,5 @@ export const CHILD_ELEMENT_COERCION_MAP = {
|
|
|
471
472
|
},
|
|
472
473
|
B: {},
|
|
473
474
|
I: {},
|
|
475
|
+
Span: { color: "string" },
|
|
474
476
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseXml.d.ts","sourceRoot":"","sources":["../../src/parseXml/parseXml.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,OAAO,EAgBb,MAAM,aAAa,CAAC;AAYrB,qBAAa,aAAc,SAAQ,KAAK;IACtC,SAAgB,MAAM,EAAE,MAAM,EAAE,CAAC;gBACrB,MAAM,EAAE,MAAM,EAAE;CAM7B;AAGD,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAmB9C,CAAC;
|
|
1
|
+
{"version":3,"file":"parseXml.d.ts","sourceRoot":"","sources":["../../src/parseXml/parseXml.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,OAAO,EAgBb,MAAM,aAAa,CAAC;AAYrB,qBAAa,aAAc,SAAQ,KAAK;IACtC,SAAgB,MAAM,EAAE,MAAM,EAAE,CAAC;gBACrB,MAAM,EAAE,MAAM,EAAE;CAM7B;AAGD,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAmB9C,CAAC;AA2oCF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,EAAE,CAiCrD"}
|
|
@@ -288,12 +288,12 @@ function getRawChildren(node) {
|
|
|
288
288
|
const tagName = getTagName(node);
|
|
289
289
|
return node[tagName] ?? [];
|
|
290
290
|
}
|
|
291
|
-
const INLINE_FORMAT_TAGS = new Set(["B", "I", "A"]);
|
|
291
|
+
const INLINE_FORMAT_TAGS = new Set(["B", "I", "A", "U", "S", "Mark", "Span"]);
|
|
292
292
|
function hasInlineFormatChildren(childElements) {
|
|
293
293
|
return (childElements.length > 0 &&
|
|
294
294
|
childElements.every((el) => INLINE_FORMAT_TAGS.has(getTagName(el))));
|
|
295
295
|
}
|
|
296
|
-
function extractTextRuns(children, inheritBold, inheritItalic, inheritHref) {
|
|
296
|
+
function extractTextRuns(children, inheritBold, inheritItalic, inheritHref, inheritUnderline, inheritStrike, inheritHighlight, inheritColor) {
|
|
297
297
|
const runs = [];
|
|
298
298
|
for (const child of children) {
|
|
299
299
|
if (isTextNode(child)) {
|
|
@@ -302,6 +302,14 @@ function extractTextRuns(children, inheritBold, inheritItalic, inheritHref) {
|
|
|
302
302
|
run.bold = true;
|
|
303
303
|
if (inheritItalic)
|
|
304
304
|
run.italic = true;
|
|
305
|
+
if (inheritUnderline)
|
|
306
|
+
run.underline = true;
|
|
307
|
+
if (inheritStrike)
|
|
308
|
+
run.strike = true;
|
|
309
|
+
if (inheritHighlight)
|
|
310
|
+
run.highlight = inheritHighlight;
|
|
311
|
+
if (inheritColor)
|
|
312
|
+
run.color = inheritColor;
|
|
305
313
|
if (inheritHref)
|
|
306
314
|
run.href = inheritHref;
|
|
307
315
|
runs.push(run);
|
|
@@ -310,14 +318,30 @@ function extractTextRuns(children, inheritBold, inheritItalic, inheritHref) {
|
|
|
310
318
|
const tag = getTagName(child);
|
|
311
319
|
const innerChildren = getRawChildren(child);
|
|
312
320
|
if (tag === "B") {
|
|
313
|
-
runs.push(...extractTextRuns(innerChildren, true, inheritItalic, inheritHref));
|
|
321
|
+
runs.push(...extractTextRuns(innerChildren, true, inheritItalic, inheritHref, inheritUnderline, inheritStrike, inheritHighlight, inheritColor));
|
|
314
322
|
}
|
|
315
323
|
else if (tag === "I") {
|
|
316
|
-
runs.push(...extractTextRuns(innerChildren, inheritBold, true, inheritHref));
|
|
324
|
+
runs.push(...extractTextRuns(innerChildren, inheritBold, true, inheritHref, inheritUnderline, inheritStrike, inheritHighlight, inheritColor));
|
|
317
325
|
}
|
|
318
326
|
else if (tag === "A") {
|
|
319
327
|
const href = getAttributes(child).href ?? "";
|
|
320
|
-
runs.push(...extractTextRuns(innerChildren, inheritBold, inheritItalic, href));
|
|
328
|
+
runs.push(...extractTextRuns(innerChildren, inheritBold, inheritItalic, href, inheritUnderline, inheritStrike, inheritHighlight, inheritColor));
|
|
329
|
+
}
|
|
330
|
+
else if (tag === "U") {
|
|
331
|
+
runs.push(...extractTextRuns(innerChildren, inheritBold, inheritItalic, inheritHref, true, inheritStrike, inheritHighlight, inheritColor));
|
|
332
|
+
}
|
|
333
|
+
else if (tag === "S") {
|
|
334
|
+
runs.push(...extractTextRuns(innerChildren, inheritBold, inheritItalic, inheritHref, inheritUnderline, true, inheritHighlight, inheritColor));
|
|
335
|
+
}
|
|
336
|
+
else if (tag === "Mark") {
|
|
337
|
+
const rawColor = getAttributes(child).color;
|
|
338
|
+
const color = rawColor && rawColor.trim() ? rawColor : "FFFF00";
|
|
339
|
+
runs.push(...extractTextRuns(innerChildren, inheritBold, inheritItalic, inheritHref, inheritUnderline, inheritStrike, color, inheritColor));
|
|
340
|
+
}
|
|
341
|
+
else if (tag === "Span") {
|
|
342
|
+
const rawSpanColor = getAttributes(child).color;
|
|
343
|
+
const spanColor = rawSpanColor && rawSpanColor.trim() ? rawSpanColor : inheritColor;
|
|
344
|
+
runs.push(...extractTextRuns(innerChildren, inheritBold, inheritItalic, inheritHref, inheritUnderline, inheritStrike, inheritHighlight, spanColor));
|
|
321
345
|
}
|
|
322
346
|
}
|
|
323
347
|
}
|
|
@@ -669,11 +693,11 @@ function convertIconChildren(childElements, result, errors) {
|
|
|
669
693
|
result.svgContent = serializeSvgElement(child);
|
|
670
694
|
}
|
|
671
695
|
function convertTextInlineChildren(childElements, result, errors, node) {
|
|
672
|
-
//
|
|
696
|
+
// インラインフォーマットタグ以外の子要素がある場合はエラー
|
|
673
697
|
for (const el of childElements) {
|
|
674
698
|
const tag = getTagName(el);
|
|
675
699
|
if (!INLINE_FORMAT_TAGS.has(tag)) {
|
|
676
|
-
errors.push(`<Text>: Unexpected child element <${tag}>. Only <B>, <I>, and <
|
|
700
|
+
errors.push(`<Text>: Unexpected child element <${tag}>. Only <B>, <I>, <A>, <U>, <S>, <Mark>, and <Span> are allowed inside <Text>`);
|
|
677
701
|
return;
|
|
678
702
|
}
|
|
679
703
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/renderPptx/nodes/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAU,MAAM,gBAAgB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAKjD,KAAK,gBAAgB,GAAG,OAAO,CAAC,cAAc,EAAE;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC;AAChE,KAAK,gBAAgB,GAAG,OAAO,CAAC,cAAc,EAAE;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/renderPptx/nodes/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAU,MAAM,gBAAgB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAKjD,KAAK,gBAAgB,GAAG,OAAO,CAAC,cAAc,EAAE;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC;AAChE,KAAK,gBAAgB,GAAG,OAAO,CAAC,cAAc,EAAE;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC;AAqFhE,wBAAgB,YAAY,CAAC,IAAI,EAAE,gBAAgB,EAAE,GAAG,EAAE,aAAa,GAAG,IAAI,CA4C7E;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,gBAAgB,EAAE,GAAG,EAAE,aAAa,GAAG,IAAI,CAkD7E"}
|
|
@@ -38,8 +38,12 @@ function buildListTextItems(items, parent, bullet) {
|
|
|
38
38
|
text,
|
|
39
39
|
options: {
|
|
40
40
|
...baseOptions,
|
|
41
|
+
color: run.color ?? style.color,
|
|
41
42
|
bold: run.bold ?? style.bold,
|
|
42
43
|
italic: run.italic ?? style.italic,
|
|
44
|
+
underline: convertUnderline(run.underline ?? style.underline),
|
|
45
|
+
strike: convertStrike(run.strike ?? style.strike),
|
|
46
|
+
highlight: run.highlight ?? style.highlight,
|
|
43
47
|
bullet: j === 0 ? bullet : false,
|
|
44
48
|
...(run.href ? { hyperlink: { url: run.href } } : {}),
|
|
45
49
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/renderPptx/nodes/table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AASjD,KAAK,mBAAmB,GAAG,OAAO,CAAC,cAAc,EAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAEtE,wBAAgB,eAAe,CAC7B,IAAI,EAAE,mBAAmB,EACzB,GAAG,EAAE,aAAa,GACjB,IAAI,
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/renderPptx/nodes/table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AASjD,KAAK,mBAAmB,GAAG,OAAO,CAAC,cAAc,EAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAEtE,wBAAgB,eAAe,CAC7B,IAAI,EAAE,mBAAmB,EACzB,GAAG,EAAE,aAAa,GACjB,IAAI,CA0EN"}
|
|
@@ -24,12 +24,12 @@ export function renderTableNode(node, ctx) {
|
|
|
24
24
|
text: run.text,
|
|
25
25
|
options: {
|
|
26
26
|
fontSize: pxToPt(cell.fontSize ?? 18),
|
|
27
|
-
color: cell.color,
|
|
27
|
+
color: run.color ?? cell.color,
|
|
28
28
|
bold: run.bold ?? cell.bold,
|
|
29
29
|
italic: run.italic ?? cell.italic,
|
|
30
|
-
underline: convertUnderline(cell.underline),
|
|
31
|
-
strike: convertStrike(cell.strike),
|
|
32
|
-
highlight: cell.highlight,
|
|
30
|
+
underline: convertUnderline(run.underline ?? cell.underline),
|
|
31
|
+
strike: convertStrike(run.strike ?? cell.strike),
|
|
32
|
+
highlight: run.highlight ?? cell.highlight,
|
|
33
33
|
...(run.href ? { hyperlink: { url: run.href } } : {}),
|
|
34
34
|
},
|
|
35
35
|
}));
|
|
@@ -60,5 +60,12 @@ export function renderTableNode(node, ctx) {
|
|
|
60
60
|
rowH: resolveRowHeights(node).map((height) => pxToIn(height)),
|
|
61
61
|
margin: 0,
|
|
62
62
|
};
|
|
63
|
+
if (node.cellBorder) {
|
|
64
|
+
tableOptions.border = {
|
|
65
|
+
color: node.cellBorder.color ?? "000000",
|
|
66
|
+
pt: node.cellBorder.width !== undefined ? pxToPt(node.cellBorder.width) : 1,
|
|
67
|
+
type: node.cellBorder.dashType ?? "solid",
|
|
68
|
+
};
|
|
69
|
+
}
|
|
63
70
|
ctx.slide.addTable(tableRows, tableOptions);
|
|
64
71
|
}
|
|
@@ -10,12 +10,12 @@ export function renderTextNode(node, ctx) {
|
|
|
10
10
|
options: {
|
|
11
11
|
fontSize: pxToPt(fontSizePx),
|
|
12
12
|
fontFace: fontFamily,
|
|
13
|
-
color: node.color,
|
|
13
|
+
color: run.color ?? node.color,
|
|
14
14
|
bold: run.bold ?? node.bold,
|
|
15
15
|
italic: run.italic ?? node.italic,
|
|
16
|
-
underline: convertUnderline(node.underline),
|
|
17
|
-
strike: convertStrike(node.strike),
|
|
18
|
-
highlight: node.highlight,
|
|
16
|
+
underline: convertUnderline(run.underline ?? node.underline),
|
|
17
|
+
strike: convertStrike(run.strike ?? node.strike),
|
|
18
|
+
highlight: run.highlight ?? node.highlight,
|
|
19
19
|
...(run.href ? { hyperlink: { url: run.href } } : {}),
|
|
20
20
|
},
|
|
21
21
|
}));
|
package/dist/types.d.ts
CHANGED
|
@@ -220,6 +220,10 @@ export declare const textNodeSchema: z.ZodObject<{
|
|
|
220
220
|
text: z.ZodString;
|
|
221
221
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
222
222
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
223
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
224
|
+
strike: z.ZodOptional<z.ZodBoolean>;
|
|
225
|
+
highlight: z.ZodOptional<z.ZodString>;
|
|
226
|
+
color: z.ZodOptional<z.ZodString>;
|
|
223
227
|
href: z.ZodOptional<z.ZodString>;
|
|
224
228
|
}, z.core.$strip>>>;
|
|
225
229
|
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -262,6 +266,10 @@ export declare const liNodeSchema: z.ZodObject<{
|
|
|
262
266
|
text: z.ZodString;
|
|
263
267
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
264
268
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
269
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
270
|
+
strike: z.ZodOptional<z.ZodBoolean>;
|
|
271
|
+
highlight: z.ZodOptional<z.ZodString>;
|
|
272
|
+
color: z.ZodOptional<z.ZodString>;
|
|
265
273
|
href: z.ZodOptional<z.ZodString>;
|
|
266
274
|
}, z.core.$strip>>>;
|
|
267
275
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -369,6 +377,10 @@ export declare const ulNodeSchema: z.ZodObject<{
|
|
|
369
377
|
text: z.ZodString;
|
|
370
378
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
371
379
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
380
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
381
|
+
strike: z.ZodOptional<z.ZodBoolean>;
|
|
382
|
+
highlight: z.ZodOptional<z.ZodString>;
|
|
383
|
+
color: z.ZodOptional<z.ZodString>;
|
|
372
384
|
href: z.ZodOptional<z.ZodString>;
|
|
373
385
|
}, z.core.$strip>>>;
|
|
374
386
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -510,6 +522,10 @@ export declare const olNodeSchema: z.ZodObject<{
|
|
|
510
522
|
text: z.ZodString;
|
|
511
523
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
512
524
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
525
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
526
|
+
strike: z.ZodOptional<z.ZodBoolean>;
|
|
527
|
+
highlight: z.ZodOptional<z.ZodString>;
|
|
528
|
+
color: z.ZodOptional<z.ZodString>;
|
|
513
529
|
href: z.ZodOptional<z.ZodString>;
|
|
514
530
|
}, z.core.$strip>>>;
|
|
515
531
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -844,6 +860,10 @@ export declare const tableNodeSchema: z.ZodObject<{
|
|
|
844
860
|
text: z.ZodString;
|
|
845
861
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
846
862
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
863
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
864
|
+
strike: z.ZodOptional<z.ZodBoolean>;
|
|
865
|
+
highlight: z.ZodOptional<z.ZodString>;
|
|
866
|
+
color: z.ZodOptional<z.ZodString>;
|
|
847
867
|
href: z.ZodOptional<z.ZodString>;
|
|
848
868
|
}, z.core.$strip>>>;
|
|
849
869
|
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -884,6 +904,20 @@ export declare const tableNodeSchema: z.ZodObject<{
|
|
|
884
904
|
height: z.ZodOptional<z.ZodNumber>;
|
|
885
905
|
}, z.core.$strip>>;
|
|
886
906
|
defaultRowHeight: z.ZodOptional<z.ZodNumber>;
|
|
907
|
+
cellBorder: z.ZodOptional<z.ZodObject<{
|
|
908
|
+
color: z.ZodOptional<z.ZodString>;
|
|
909
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
910
|
+
dashType: z.ZodOptional<z.ZodEnum<{
|
|
911
|
+
solid: "solid";
|
|
912
|
+
dash: "dash";
|
|
913
|
+
dashDot: "dashDot";
|
|
914
|
+
lgDash: "lgDash";
|
|
915
|
+
lgDashDot: "lgDashDot";
|
|
916
|
+
lgDashDotDot: "lgDashDotDot";
|
|
917
|
+
sysDash: "sysDash";
|
|
918
|
+
sysDot: "sysDot";
|
|
919
|
+
}>>;
|
|
920
|
+
}, z.core.$strip>>;
|
|
887
921
|
}, z.core.$strip>;
|
|
888
922
|
export declare const shapeNodeSchema: z.ZodObject<{
|
|
889
923
|
w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA0CxB,eAAO,MAAM,iBAAiB;;;;;;;;;;iBAO5B,CAAC;AAqBH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;EAgB/B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;mBAM1B,CAAC;AAEH,QAAA,MAAM,gBAAgB;;;;;EAAgD,CAAC;AAMvE,QAAA,MAAM,cAAc;;;;EAA4C,CAAC;AAEjE,QAAA,MAAM,oBAAoB;;;;;;;EAOxB,CAAC;AAwLH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,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AAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
package/dist/types.js
CHANGED
|
@@ -311,6 +311,10 @@ const textRunSchema = z.object({
|
|
|
311
311
|
text: z.string(),
|
|
312
312
|
bold: z.boolean().optional(),
|
|
313
313
|
italic: z.boolean().optional(),
|
|
314
|
+
underline: z.boolean().optional(),
|
|
315
|
+
strike: z.boolean().optional(),
|
|
316
|
+
highlight: z.string().optional(),
|
|
317
|
+
color: z.string().optional(),
|
|
314
318
|
href: z.string().optional(),
|
|
315
319
|
});
|
|
316
320
|
// ===== Non-recursive Node Types =====
|
|
@@ -432,6 +436,7 @@ export const tableNodeSchema = basePOMNodeSchema.extend({
|
|
|
432
436
|
columns: z.array(tableColumnSchema),
|
|
433
437
|
rows: z.array(tableRowSchema),
|
|
434
438
|
defaultRowHeight: z.number().optional(),
|
|
439
|
+
cellBorder: borderStyleSchema.optional(),
|
|
435
440
|
});
|
|
436
441
|
export const shapeNodeSchema = basePOMNodeSchema.extend({
|
|
437
442
|
type: z.literal("shape"),
|