document-content-model 7.6.0 → 7.7.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 +1 -1
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/{construct-GVdTKrE7.d.cts → construct-C9cYkjnd.d.cts} +3 -3
- package/dist/{construct-GVdTKrE7.d.ts → construct-C9cYkjnd.d.ts} +3 -3
- package/dist/construct.d.cts +1 -1
- package/dist/construct.d.ts +1 -1
- package/dist/{content-BCOxY0Eb.d.ts → content-BIM8bWWt.d.ts} +205 -59
- package/dist/{content-BzkhrS6P.d.cts → content-DpsxyPMw.d.cts} +205 -59
- package/dist/content-json-schema-defs.cjs +32 -0
- package/dist/content-json-schema-defs.js +32 -0
- package/dist/content.cjs +37 -11
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +33 -12
- package/dist/decompose.d.cts +2 -2
- package/dist/decompose.d.ts +2 -2
- package/dist/definitions.cjs +1 -10
- package/dist/definitions.d.cts +4 -4
- package/dist/definitions.d.ts +4 -4
- package/dist/definitions.js +2 -11
- package/dist/factor-styles.cjs +1 -0
- package/dist/factor-styles.d.cts +1 -1
- package/dist/factor-styles.d.ts +1 -1
- package/dist/factor-styles.js +1 -0
- package/dist/flatten.cjs +1 -0
- package/dist/flatten.d.cts +1 -1
- package/dist/flatten.d.ts +1 -1
- package/dist/flatten.js +1 -0
- package/dist/index.cjs +5 -0
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/{package-node-C4mh1hLY.d.ts → package-node-B8LBrCCD.d.ts} +48 -35
- package/dist/{package-node-RQMDBzwd.d.cts → package-node-CENJl5PH.d.cts} +48 -35
- package/dist/package-node.d.cts +1 -1
- package/dist/package-node.d.ts +1 -1
- package/dist/package.cjs +1 -0
- package/dist/package.d.cts +11 -6
- package/dist/package.d.ts +11 -6
- package/dist/package.js +2 -1
- package/dist/schema-io.cjs +2 -2
- package/dist/schema-io.d.cts +1 -1
- package/dist/schema-io.d.ts +1 -1
- package/dist/schema-io.js +2 -2
- package/dist/{style-D06NwxAJ.d.cts → style-BGMcYrD2.d.cts} +1 -1
- package/dist/{style-D06NwxAJ.d.ts → style-BGMcYrD2.d.ts} +1 -1
- package/dist/style.d.cts +1 -1
- package/dist/style.d.ts +1 -1
- package/dist/text-layout.d.cts +1 -1
- package/dist/text-layout.d.ts +1 -1
- package/package.json +1 -1
- package/schemas/content-document.schema.json +171 -13
- package/schemas/document-tree.schema.json +87 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as ConstructDescriptor } from "./construct-
|
|
1
|
+
import { Bt as ContentSheetImage, E as ContentEmbeddedObject, U as ContentFormula, g as ContentConstructEnd, hn as ContentVector, i as ContentBlock, v as ContentConstructStart } from "./content-DpsxyPMw.cjs";
|
|
2
|
+
import { a as ConstructDescriptor } from "./construct-C9cYkjnd.cjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/package-node.d.ts
|
|
5
5
|
declare const SectionDescriptorSchema: z.ZodObject<{
|
|
@@ -184,8 +184,7 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
184
184
|
formula: z.ZodOptional<z.ZodString>;
|
|
185
185
|
displayText: z.ZodString;
|
|
186
186
|
numberFormatCode: z.ZodOptional<z.ZodString>;
|
|
187
|
-
|
|
188
|
-
text: z.ZodString;
|
|
187
|
+
font: z.ZodOptional<z.ZodObject<{
|
|
189
188
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
190
189
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
191
190
|
underline: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -197,6 +196,8 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
197
196
|
g: z.ZodNumber;
|
|
198
197
|
b: z.ZodNumber;
|
|
199
198
|
}, z.core.$strip>>;
|
|
199
|
+
}, z.core.$strip>>;
|
|
200
|
+
runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
200
201
|
hyperlink: z.ZodOptional<z.ZodString>;
|
|
201
202
|
verticalAlign: z.ZodOptional<z.ZodEnum<{
|
|
202
203
|
superscript: "superscript";
|
|
@@ -234,6 +235,18 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
234
235
|
widthPt: z.ZodNumber;
|
|
235
236
|
heightPt: z.ZodNumber;
|
|
236
237
|
}, z.core.$strip>>>;
|
|
238
|
+
bold: z.ZodOptional<z.ZodBoolean>;
|
|
239
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
240
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
241
|
+
strike: z.ZodOptional<z.ZodBoolean>;
|
|
242
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
243
|
+
sizePt: z.ZodOptional<z.ZodNumber>;
|
|
244
|
+
color: z.ZodOptional<z.ZodObject<{
|
|
245
|
+
r: z.ZodNumber;
|
|
246
|
+
g: z.ZodNumber;
|
|
247
|
+
b: z.ZodNumber;
|
|
248
|
+
}, z.core.$strip>>;
|
|
249
|
+
text: z.ZodString;
|
|
237
250
|
}, z.core.$strip>>>;
|
|
238
251
|
colSpan: z.ZodOptional<z.ZodNumber>;
|
|
239
252
|
rowSpan: z.ZodOptional<z.ZodNumber>;
|
|
@@ -399,8 +412,8 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
399
412
|
}, z.core.$strip>>;
|
|
400
413
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
401
414
|
left: "left";
|
|
402
|
-
center: "center";
|
|
403
415
|
right: "right";
|
|
416
|
+
center: "center";
|
|
404
417
|
justify: "justify";
|
|
405
418
|
}>>;
|
|
406
419
|
verticalAlignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -464,10 +477,10 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
464
477
|
endColumn: z.ZodNumber;
|
|
465
478
|
}, z.core.$strip>>;
|
|
466
479
|
type: z.ZodEnum<{
|
|
467
|
-
decimal: "decimal";
|
|
468
|
-
list: "list";
|
|
469
480
|
date: "date";
|
|
470
481
|
custom: "custom";
|
|
482
|
+
decimal: "decimal";
|
|
483
|
+
list: "list";
|
|
471
484
|
time: "time";
|
|
472
485
|
whole: "whole";
|
|
473
486
|
textLength: "textLength";
|
|
@@ -1166,18 +1179,6 @@ type ShapeDescriptor = z.infer<typeof ShapeDescriptorSchema>;
|
|
|
1166
1179
|
declare const HeadingParagraphSchema: z.ZodObject<{
|
|
1167
1180
|
kind: z.ZodLiteral<"paragraph">;
|
|
1168
1181
|
runs: z.ZodArray<z.ZodObject<{
|
|
1169
|
-
text: z.ZodString;
|
|
1170
|
-
bold: z.ZodOptional<z.ZodBoolean>;
|
|
1171
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
1172
|
-
underline: z.ZodOptional<z.ZodBoolean>;
|
|
1173
|
-
strike: z.ZodOptional<z.ZodBoolean>;
|
|
1174
|
-
fontFamily: z.ZodOptional<z.ZodString>;
|
|
1175
|
-
sizePt: z.ZodOptional<z.ZodNumber>;
|
|
1176
|
-
color: z.ZodOptional<z.ZodObject<{
|
|
1177
|
-
r: z.ZodNumber;
|
|
1178
|
-
g: z.ZodNumber;
|
|
1179
|
-
b: z.ZodNumber;
|
|
1180
|
-
}, z.core.$strip>>;
|
|
1181
1182
|
hyperlink: z.ZodOptional<z.ZodString>;
|
|
1182
1183
|
verticalAlign: z.ZodOptional<z.ZodEnum<{
|
|
1183
1184
|
superscript: "superscript";
|
|
@@ -1215,17 +1216,29 @@ declare const HeadingParagraphSchema: z.ZodObject<{
|
|
|
1215
1216
|
widthPt: z.ZodNumber;
|
|
1216
1217
|
heightPt: z.ZodNumber;
|
|
1217
1218
|
}, z.core.$strip>>>;
|
|
1219
|
+
bold: z.ZodOptional<z.ZodBoolean>;
|
|
1220
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
1221
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
1222
|
+
strike: z.ZodOptional<z.ZodBoolean>;
|
|
1223
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
1224
|
+
sizePt: z.ZodOptional<z.ZodNumber>;
|
|
1225
|
+
color: z.ZodOptional<z.ZodObject<{
|
|
1226
|
+
r: z.ZodNumber;
|
|
1227
|
+
g: z.ZodNumber;
|
|
1228
|
+
b: z.ZodNumber;
|
|
1229
|
+
}, z.core.$strip>>;
|
|
1230
|
+
text: z.ZodString;
|
|
1218
1231
|
}, z.core.$strip>>;
|
|
1219
1232
|
constructs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1220
1233
|
descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1221
1234
|
kind: z.ZodLiteral<"contentControl">;
|
|
1222
1235
|
controlType: z.ZodEnum<{
|
|
1223
|
-
date: "date";
|
|
1224
1236
|
richText: "richText";
|
|
1225
1237
|
plainText: "plainText";
|
|
1226
1238
|
checkbox: "checkbox";
|
|
1227
1239
|
dropDown: "dropDown";
|
|
1228
1240
|
comboBox: "comboBox";
|
|
1241
|
+
date: "date";
|
|
1229
1242
|
picture: "picture";
|
|
1230
1243
|
repeatingSection: "repeatingSection";
|
|
1231
1244
|
button: "button";
|
|
@@ -1415,8 +1428,8 @@ declare const HeadingParagraphSchema: z.ZodObject<{
|
|
|
1415
1428
|
preformatted: z.ZodOptional<z.ZodBoolean>;
|
|
1416
1429
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
1417
1430
|
left: "left";
|
|
1418
|
-
center: "center";
|
|
1419
1431
|
right: "right";
|
|
1432
|
+
center: "center";
|
|
1420
1433
|
justify: "justify";
|
|
1421
1434
|
}>>;
|
|
1422
1435
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -1537,18 +1550,6 @@ type HeadingParagraph = z.infer<typeof HeadingParagraphSchema>;
|
|
|
1537
1550
|
declare const ListParagraphSchema: z.ZodObject<{
|
|
1538
1551
|
kind: z.ZodLiteral<"paragraph">;
|
|
1539
1552
|
runs: z.ZodArray<z.ZodObject<{
|
|
1540
|
-
text: z.ZodString;
|
|
1541
|
-
bold: z.ZodOptional<z.ZodBoolean>;
|
|
1542
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
1543
|
-
underline: z.ZodOptional<z.ZodBoolean>;
|
|
1544
|
-
strike: z.ZodOptional<z.ZodBoolean>;
|
|
1545
|
-
fontFamily: z.ZodOptional<z.ZodString>;
|
|
1546
|
-
sizePt: z.ZodOptional<z.ZodNumber>;
|
|
1547
|
-
color: z.ZodOptional<z.ZodObject<{
|
|
1548
|
-
r: z.ZodNumber;
|
|
1549
|
-
g: z.ZodNumber;
|
|
1550
|
-
b: z.ZodNumber;
|
|
1551
|
-
}, z.core.$strip>>;
|
|
1552
1553
|
hyperlink: z.ZodOptional<z.ZodString>;
|
|
1553
1554
|
verticalAlign: z.ZodOptional<z.ZodEnum<{
|
|
1554
1555
|
superscript: "superscript";
|
|
@@ -1586,17 +1587,29 @@ declare const ListParagraphSchema: z.ZodObject<{
|
|
|
1586
1587
|
widthPt: z.ZodNumber;
|
|
1587
1588
|
heightPt: z.ZodNumber;
|
|
1588
1589
|
}, z.core.$strip>>>;
|
|
1590
|
+
bold: z.ZodOptional<z.ZodBoolean>;
|
|
1591
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
1592
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
1593
|
+
strike: z.ZodOptional<z.ZodBoolean>;
|
|
1594
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
1595
|
+
sizePt: z.ZodOptional<z.ZodNumber>;
|
|
1596
|
+
color: z.ZodOptional<z.ZodObject<{
|
|
1597
|
+
r: z.ZodNumber;
|
|
1598
|
+
g: z.ZodNumber;
|
|
1599
|
+
b: z.ZodNumber;
|
|
1600
|
+
}, z.core.$strip>>;
|
|
1601
|
+
text: z.ZodString;
|
|
1589
1602
|
}, z.core.$strip>>;
|
|
1590
1603
|
constructs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1591
1604
|
descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1592
1605
|
kind: z.ZodLiteral<"contentControl">;
|
|
1593
1606
|
controlType: z.ZodEnum<{
|
|
1594
|
-
date: "date";
|
|
1595
1607
|
richText: "richText";
|
|
1596
1608
|
plainText: "plainText";
|
|
1597
1609
|
checkbox: "checkbox";
|
|
1598
1610
|
dropDown: "dropDown";
|
|
1599
1611
|
comboBox: "comboBox";
|
|
1612
|
+
date: "date";
|
|
1600
1613
|
picture: "picture";
|
|
1601
1614
|
repeatingSection: "repeatingSection";
|
|
1602
1615
|
button: "button";
|
|
@@ -1787,8 +1800,8 @@ declare const ListParagraphSchema: z.ZodObject<{
|
|
|
1787
1800
|
headingLevel: z.ZodOptional<z.ZodNumber>;
|
|
1788
1801
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
1789
1802
|
left: "left";
|
|
1790
|
-
center: "center";
|
|
1791
1803
|
right: "right";
|
|
1804
|
+
center: "center";
|
|
1792
1805
|
justify: "justify";
|
|
1793
1806
|
}>>;
|
|
1794
1807
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
package/dist/package-node.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-
|
|
1
|
+
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-CENJl5PH.cjs";
|
|
2
2
|
export { DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, TreeBlockLeaf, TreeBlockLeafSchema, TreeGroup, TreeGroupSchema, TreeLeaf, TreeLeafSchema, TreeNode, TreeNodeSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode };
|
package/dist/package-node.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-
|
|
1
|
+
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-B8LBrCCD.js";
|
|
2
2
|
export { DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, TreeBlockLeaf, TreeBlockLeafSchema, TreeGroup, TreeGroupSchema, TreeLeaf, TreeLeafSchema, TreeNode, TreeNodeSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode };
|
package/dist/package.cjs
CHANGED
|
@@ -32,6 +32,7 @@ const DocumentTreeSchema = zod.z.discriminatedUnion("kind", [
|
|
|
32
32
|
zod.z.object({
|
|
33
33
|
kind: zod.z.literal("spreadsheet"),
|
|
34
34
|
...packageEnvelopeFields,
|
|
35
|
+
names: zod.z.array(require_content.ContentDefinedNameSchema).optional(),
|
|
35
36
|
children: zod.z.array(require_package_node.SheetGroupSchema)
|
|
36
37
|
}),
|
|
37
38
|
zod.z.object({
|
package/dist/package.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as MathMlNode } from "./mathml-Czqc1mdZ.cjs";
|
|
2
2
|
import { p as MathExpression } from "./math-BScHxedi.cjs";
|
|
3
|
-
import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-
|
|
3
|
+
import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-CENJl5PH.cjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/package.d.ts
|
|
6
6
|
declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -13,8 +13,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
13
13
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
14
14
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
15
15
|
left: "left";
|
|
16
|
-
center: "center";
|
|
17
16
|
right: "right";
|
|
17
|
+
center: "center";
|
|
18
18
|
justify: "justify";
|
|
19
19
|
}>>;
|
|
20
20
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -162,8 +162,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
162
162
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
163
163
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
164
164
|
left: "left";
|
|
165
|
-
center: "center";
|
|
166
165
|
right: "right";
|
|
166
|
+
center: "center";
|
|
167
167
|
justify: "justify";
|
|
168
168
|
}>>;
|
|
169
169
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -302,6 +302,11 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
302
302
|
}, z.core.$strip>;
|
|
303
303
|
kind: z.ZodLiteral<"presentation">;
|
|
304
304
|
}, z.core.$strip>, z.ZodObject<{
|
|
305
|
+
names: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
306
|
+
name: z.ZodString;
|
|
307
|
+
refersTo: z.ZodString;
|
|
308
|
+
scopeSheetIndex: z.ZodOptional<z.ZodNumber>;
|
|
309
|
+
}, z.core.$strip>>>;
|
|
305
310
|
children: z.ZodArray<z.ZodCustom<SheetGroupNode, SheetGroupNode>>;
|
|
306
311
|
pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
307
312
|
widthPt: z.ZodNumber;
|
|
@@ -311,8 +316,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
311
316
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
312
317
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
313
318
|
left: "left";
|
|
314
|
-
center: "center";
|
|
315
319
|
right: "right";
|
|
320
|
+
center: "center";
|
|
316
321
|
justify: "justify";
|
|
317
322
|
}>>;
|
|
318
323
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -460,8 +465,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
460
465
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
461
466
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
462
467
|
left: "left";
|
|
463
|
-
center: "center";
|
|
464
468
|
right: "right";
|
|
469
|
+
center: "center";
|
|
465
470
|
justify: "justify";
|
|
466
471
|
}>>;
|
|
467
472
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -641,8 +646,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
641
646
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
642
647
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
643
648
|
left: "left";
|
|
644
|
-
center: "center";
|
|
645
649
|
right: "right";
|
|
650
|
+
center: "center";
|
|
646
651
|
justify: "justify";
|
|
647
652
|
}>>;
|
|
648
653
|
list: z.ZodOptional<z.ZodObject<{
|
package/dist/package.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as MathMlNode } from "./mathml-Czqc1mdZ.js";
|
|
2
2
|
import { p as MathExpression } from "./math-BScHxedi.js";
|
|
3
|
-
import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-
|
|
3
|
+
import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-B8LBrCCD.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/package.d.ts
|
|
6
6
|
declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -13,8 +13,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
13
13
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
14
14
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
15
15
|
left: "left";
|
|
16
|
-
center: "center";
|
|
17
16
|
right: "right";
|
|
17
|
+
center: "center";
|
|
18
18
|
justify: "justify";
|
|
19
19
|
}>>;
|
|
20
20
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -162,8 +162,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
162
162
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
163
163
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
164
164
|
left: "left";
|
|
165
|
-
center: "center";
|
|
166
165
|
right: "right";
|
|
166
|
+
center: "center";
|
|
167
167
|
justify: "justify";
|
|
168
168
|
}>>;
|
|
169
169
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -302,6 +302,11 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
302
302
|
}, z.core.$strip>;
|
|
303
303
|
kind: z.ZodLiteral<"presentation">;
|
|
304
304
|
}, z.core.$strip>, z.ZodObject<{
|
|
305
|
+
names: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
306
|
+
name: z.ZodString;
|
|
307
|
+
refersTo: z.ZodString;
|
|
308
|
+
scopeSheetIndex: z.ZodOptional<z.ZodNumber>;
|
|
309
|
+
}, z.core.$strip>>>;
|
|
305
310
|
children: z.ZodArray<z.ZodCustom<SheetGroupNode, SheetGroupNode>>;
|
|
306
311
|
pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
307
312
|
widthPt: z.ZodNumber;
|
|
@@ -311,8 +316,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
311
316
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
312
317
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
313
318
|
left: "left";
|
|
314
|
-
center: "center";
|
|
315
319
|
right: "right";
|
|
320
|
+
center: "center";
|
|
316
321
|
justify: "justify";
|
|
317
322
|
}>>;
|
|
318
323
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -460,8 +465,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
460
465
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
461
466
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
462
467
|
left: "left";
|
|
463
|
-
center: "center";
|
|
464
468
|
right: "right";
|
|
469
|
+
center: "center";
|
|
465
470
|
justify: "justify";
|
|
466
471
|
}>>;
|
|
467
472
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -641,8 +646,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
641
646
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
642
647
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
643
648
|
left: "left";
|
|
644
|
-
center: "center";
|
|
645
649
|
right: "right";
|
|
650
|
+
center: "center";
|
|
646
651
|
justify: "justify";
|
|
647
652
|
}>>;
|
|
648
653
|
list: z.ZodOptional<z.ZodObject<{
|
package/dist/package.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SourceResidueSchema } from "./source.js";
|
|
2
2
|
import { PageSizeSchema } from "./geometry.js";
|
|
3
3
|
import { LayoutMetadataSchema } from "./metadata.js";
|
|
4
|
-
import { ContentFormulaSchema, contentDocumentSharedFields } from "./content.js";
|
|
4
|
+
import { ContentDefinedNameSchema, ContentFormulaSchema, contentDocumentSharedFields } from "./content.js";
|
|
5
5
|
import { DefinitionsTableSchema, StylesTableSchema } from "./definitions.js";
|
|
6
6
|
import { DrawPageGroupSchema, SectionGroupSchema, SheetGroupSchema, SlideGroupSchema } from "./package-node.js";
|
|
7
7
|
import { z } from "zod";
|
|
@@ -31,6 +31,7 @@ const DocumentTreeSchema = z.discriminatedUnion("kind", [
|
|
|
31
31
|
z.object({
|
|
32
32
|
kind: z.literal("spreadsheet"),
|
|
33
33
|
...packageEnvelopeFields,
|
|
34
|
+
names: z.array(ContentDefinedNameSchema).optional(),
|
|
34
35
|
children: z.array(SheetGroupSchema)
|
|
35
36
|
}),
|
|
36
37
|
z.object({
|
package/dist/schema-io.cjs
CHANGED
|
@@ -7,7 +7,7 @@ const SCHEMA_FILE_NAMES = {
|
|
|
7
7
|
ContentDocument: "content-document.schema.json"
|
|
8
8
|
};
|
|
9
9
|
function schemaUriFor(kind) {
|
|
10
|
-
return `https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
10
|
+
return `https://cdn.jsdelivr.net/npm/document-schema.js@7.7.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
|
|
11
11
|
}
|
|
12
12
|
const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-tree|document-package|content-document|layout-document)\.schema\.json$/;
|
|
13
13
|
function parseSchemaUri(uri) {
|
|
@@ -102,7 +102,7 @@ function documentFromJson(value) {
|
|
|
102
102
|
if (parts.stem === "document-package") throw new DocumentPackageRenamedError(value.$schema);
|
|
103
103
|
const kind = kindForFileStem(parts.stem);
|
|
104
104
|
if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
|
|
105
|
-
if (majorVersionOf(parts.version) !== majorVersionOf("7.
|
|
105
|
+
if (majorVersionOf(parts.version) !== majorVersionOf("7.7.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.7.0");
|
|
106
106
|
switch (kind) {
|
|
107
107
|
case "DocumentTree": return {
|
|
108
108
|
kind,
|
package/dist/schema-io.d.cts
CHANGED
package/dist/schema-io.d.ts
CHANGED
package/dist/schema-io.js
CHANGED
|
@@ -6,7 +6,7 @@ const SCHEMA_FILE_NAMES = {
|
|
|
6
6
|
ContentDocument: "content-document.schema.json"
|
|
7
7
|
};
|
|
8
8
|
function schemaUriFor(kind) {
|
|
9
|
-
return `https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
9
|
+
return `https://cdn.jsdelivr.net/npm/document-schema.js@7.7.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
|
|
10
10
|
}
|
|
11
11
|
const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-tree|document-package|content-document|layout-document)\.schema\.json$/;
|
|
12
12
|
function parseSchemaUri(uri) {
|
|
@@ -101,7 +101,7 @@ function documentFromJson(value) {
|
|
|
101
101
|
if (parts.stem === "document-package") throw new DocumentPackageRenamedError(value.$schema);
|
|
102
102
|
const kind = kindForFileStem(parts.stem);
|
|
103
103
|
if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
|
|
104
|
-
if (majorVersionOf(parts.version) !== majorVersionOf("7.
|
|
104
|
+
if (majorVersionOf(parts.version) !== majorVersionOf("7.7.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.7.0");
|
|
105
105
|
switch (kind) {
|
|
106
106
|
case "DocumentTree": return {
|
|
107
107
|
kind,
|
package/dist/style.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-
|
|
1
|
+
import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-BGMcYrD2.cjs";
|
|
2
2
|
export { Alignment, AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFont, LayoutFontSchema, TextDirection, TextDirectionSchema };
|
package/dist/style.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-
|
|
1
|
+
import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-BGMcYrD2.js";
|
|
2
2
|
export { Alignment, AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFont, LayoutFontSchema, TextDirection, TextDirectionSchema };
|
package/dist/text-layout.d.cts
CHANGED
package/dist/text-layout.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-content-model",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.7.0",
|
|
4
4
|
"description": "The canonical, format-agnostic content and document-tree schemas shared by ooxml.js, odf.js, documents.js, pdf-codec, and markdown-codec, plus the structural transform between them -- no format-specific or I/O behaviour.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|