document-model.js 3.0.0 → 3.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/README.md +3 -3
- package/dist/content-json-schema-defs.cjs +288 -0
- package/dist/content-json-schema-defs.js +288 -0
- package/dist/content.cjs +22 -1
- package/dist/content.d.cts +292 -21
- package/dist/content.d.ts +292 -21
- package/dist/content.js +22 -2
- package/dist/index.cjs +22 -0
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -2
- package/dist/math-B7gZJeND.d.cts +210 -0
- package/dist/math-B7gZJeND.d.ts +210 -0
- package/dist/math.cjs +152 -0
- package/dist/math.d.cts +2 -0
- package/dist/math.d.ts +2 -0
- package/dist/math.js +132 -0
- package/dist/package.d.cts +254 -20
- package/dist/package.d.ts +254 -20
- package/dist/schema-io.cjs +1 -1
- package/dist/schema-io.js +1 -1
- package/package.json +1 -1
- package/schemas/content-document.schema.json +509 -19
- package/schemas/document-package.schema.json +2 -2
- package/schemas/layout-document.schema.json +1 -1
package/dist/content.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_color = require("./color.cjs");
|
|
3
|
+
const require_math = require("./math.cjs");
|
|
3
4
|
const require_geometry = require("./geometry.cjs");
|
|
4
5
|
const require_mathml = require("./mathml.cjs");
|
|
5
6
|
const require_metadata = require("./metadata.cjs");
|
|
@@ -196,6 +197,15 @@ const ContentCellValueSchema = zod.z.discriminatedUnion("kind", [
|
|
|
196
197
|
}),
|
|
197
198
|
zod.z.object({ kind: zod.z.literal("empty") })
|
|
198
199
|
]);
|
|
200
|
+
const ContentSheetCellCommentSchema = zod.z.object({
|
|
201
|
+
text: zod.z.string(),
|
|
202
|
+
author: zod.z.string().optional(),
|
|
203
|
+
createdAt: zod.z.string().optional(),
|
|
204
|
+
replies: zod.z.array(zod.z.object({
|
|
205
|
+
text: zod.z.string(),
|
|
206
|
+
author: zod.z.string().optional()
|
|
207
|
+
})).optional()
|
|
208
|
+
});
|
|
199
209
|
const ContentSheetCellSchema = zod.z.object({
|
|
200
210
|
row: zod.z.number().int().nonnegative(),
|
|
201
211
|
column: zod.z.number().int().nonnegative(),
|
|
@@ -213,6 +223,7 @@ const ContentSheetCellSchema = zod.z.object({
|
|
|
213
223
|
"middle",
|
|
214
224
|
"bottom"
|
|
215
225
|
]).optional(),
|
|
226
|
+
comment: ContentSheetCellCommentSchema.optional(),
|
|
216
227
|
sourcePath: zod.z.string().optional(),
|
|
217
228
|
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional()
|
|
218
229
|
});
|
|
@@ -343,38 +354,47 @@ const ContentDrawPageSchema = zod.z.object({
|
|
|
343
354
|
});
|
|
344
355
|
const ContentFormulaSchema = zod.z.object({
|
|
345
356
|
mathml: zod.z.array(require_mathml.MathMlNodeSchema),
|
|
346
|
-
starMath: zod.z.string().optional()
|
|
357
|
+
starMath: zod.z.string().optional(),
|
|
358
|
+
presentation: require_math.MathPresentationSchema.optional(),
|
|
359
|
+
content: require_math.MathExpressionSchema.optional(),
|
|
360
|
+
provenance: require_math.MathProvenanceSchema.optional()
|
|
347
361
|
});
|
|
348
362
|
const CONTENT_FORMAT_VERSION = 3;
|
|
363
|
+
const contentDocumentSharedFields = { symbolTable: require_math.SymbolTableSchema.optional() };
|
|
349
364
|
const ContentDocumentSchema = zod.z.discriminatedUnion("kind", [
|
|
350
365
|
zod.z.object({
|
|
351
366
|
kind: zod.z.literal("wordprocessing"),
|
|
352
367
|
formatVersion: zod.z.literal(3),
|
|
353
368
|
metadata: require_metadata.LayoutMetadataSchema,
|
|
369
|
+
...contentDocumentSharedFields,
|
|
354
370
|
sections: zod.z.array(ContentSectionSchema)
|
|
355
371
|
}),
|
|
356
372
|
zod.z.object({
|
|
357
373
|
kind: zod.z.literal("presentation"),
|
|
358
374
|
formatVersion: zod.z.literal(3),
|
|
359
375
|
metadata: require_metadata.LayoutMetadataSchema,
|
|
376
|
+
...contentDocumentSharedFields,
|
|
360
377
|
slides: zod.z.array(ContentSlideSchema)
|
|
361
378
|
}),
|
|
362
379
|
zod.z.object({
|
|
363
380
|
kind: zod.z.literal("spreadsheet"),
|
|
364
381
|
formatVersion: zod.z.literal(3),
|
|
365
382
|
metadata: require_metadata.LayoutMetadataSchema,
|
|
383
|
+
...contentDocumentSharedFields,
|
|
366
384
|
sheets: zod.z.array(ContentSheetSchema)
|
|
367
385
|
}),
|
|
368
386
|
zod.z.object({
|
|
369
387
|
kind: zod.z.literal("drawing"),
|
|
370
388
|
formatVersion: zod.z.literal(3),
|
|
371
389
|
metadata: require_metadata.LayoutMetadataSchema,
|
|
390
|
+
...contentDocumentSharedFields,
|
|
372
391
|
pages: zod.z.array(ContentDrawPageSchema)
|
|
373
392
|
}),
|
|
374
393
|
zod.z.object({
|
|
375
394
|
kind: zod.z.literal("formula"),
|
|
376
395
|
formatVersion: zod.z.literal(3),
|
|
377
396
|
metadata: require_metadata.LayoutMetadataSchema,
|
|
397
|
+
...contentDocumentSharedFields,
|
|
378
398
|
formula: ContentFormulaSchema
|
|
379
399
|
})
|
|
380
400
|
]);
|
|
@@ -398,6 +418,7 @@ exports.ContentPathSegmentSchema = ContentPathSegmentSchema;
|
|
|
398
418
|
exports.ContentRunSchema = ContentRunSchema;
|
|
399
419
|
exports.ContentSectionSchema = ContentSectionSchema;
|
|
400
420
|
exports.ContentShapeSchema = ContentShapeSchema;
|
|
421
|
+
exports.ContentSheetCellCommentSchema = ContentSheetCellCommentSchema;
|
|
401
422
|
exports.ContentSheetCellSchema = ContentSheetCellSchema;
|
|
402
423
|
exports.ContentSheetColumnSchema = ContentSheetColumnSchema;
|
|
403
424
|
exports.ContentSheetImageSchema = ContentSheetImageSchema;
|
package/dist/content.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { d as MathMlNode } from "./mathml-B1oTCtzc.cjs";
|
|
2
|
+
import { s as MathExpression } from "./math-B7gZJeND.cjs";
|
|
2
3
|
import { n as Color } from "./color-AELCDH_b.cjs";
|
|
3
4
|
import { r as LayoutFrame, t as Box } from "./geometry-CvcjSwnA.cjs";
|
|
4
5
|
import { z } from "zod";
|
|
@@ -599,6 +600,16 @@ declare const ContentCellValueSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
599
600
|
kind: z.ZodLiteral<"empty">;
|
|
600
601
|
}, z.core.$strip>], "kind">;
|
|
601
602
|
type ContentCellValue = z.infer<typeof ContentCellValueSchema>;
|
|
603
|
+
declare const ContentSheetCellCommentSchema: z.ZodObject<{
|
|
604
|
+
text: z.ZodString;
|
|
605
|
+
author: z.ZodOptional<z.ZodString>;
|
|
606
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
607
|
+
replies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
608
|
+
text: z.ZodString;
|
|
609
|
+
author: z.ZodOptional<z.ZodString>;
|
|
610
|
+
}, z.core.$strip>>>;
|
|
611
|
+
}, z.core.$strip>;
|
|
612
|
+
type ContentSheetCellComment = z.infer<typeof ContentSheetCellCommentSchema>;
|
|
602
613
|
declare const ContentSheetCellSchema: z.ZodObject<{
|
|
603
614
|
row: z.ZodNumber;
|
|
604
615
|
column: z.ZodNumber;
|
|
@@ -737,6 +748,15 @@ declare const ContentSheetCellSchema: z.ZodObject<{
|
|
|
737
748
|
bottom: "bottom";
|
|
738
749
|
middle: "middle";
|
|
739
750
|
}>>;
|
|
751
|
+
comment: z.ZodOptional<z.ZodObject<{
|
|
752
|
+
text: z.ZodString;
|
|
753
|
+
author: z.ZodOptional<z.ZodString>;
|
|
754
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
755
|
+
replies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
756
|
+
text: z.ZodString;
|
|
757
|
+
author: z.ZodOptional<z.ZodString>;
|
|
758
|
+
}, z.core.$strip>>>;
|
|
759
|
+
}, z.core.$strip>>;
|
|
740
760
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
741
761
|
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
742
762
|
pageIndex: z.ZodNumber;
|
|
@@ -977,6 +997,15 @@ declare const ContentSheetSchema: z.ZodObject<{
|
|
|
977
997
|
bottom: "bottom";
|
|
978
998
|
middle: "middle";
|
|
979
999
|
}>>;
|
|
1000
|
+
comment: z.ZodOptional<z.ZodObject<{
|
|
1001
|
+
text: z.ZodString;
|
|
1002
|
+
author: z.ZodOptional<z.ZodString>;
|
|
1003
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1004
|
+
replies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1005
|
+
text: z.ZodString;
|
|
1006
|
+
author: z.ZodOptional<z.ZodString>;
|
|
1007
|
+
}, z.core.$strip>>>;
|
|
1008
|
+
}, z.core.$strip>>;
|
|
980
1009
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
981
1010
|
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
982
1011
|
pageIndex: z.ZodNumber;
|
|
@@ -1525,22 +1554,19 @@ type ContentDrawPage = z.infer<typeof ContentDrawPageSchema>;
|
|
|
1525
1554
|
declare const ContentFormulaSchema: z.ZodObject<{
|
|
1526
1555
|
mathml: z.ZodArray<z.ZodCustom<MathMlNode, MathMlNode>>;
|
|
1527
1556
|
starMath: z.ZodOptional<z.ZodString>;
|
|
1557
|
+
presentation: z.ZodOptional<z.ZodObject<{
|
|
1558
|
+
latex: z.ZodString;
|
|
1559
|
+
}, z.core.$strip>>;
|
|
1560
|
+
content: z.ZodOptional<z.ZodCustom<MathExpression, MathExpression>>;
|
|
1561
|
+
provenance: z.ZodOptional<z.ZodObject<{
|
|
1562
|
+
source: z.ZodString;
|
|
1563
|
+
pageRef: z.ZodOptional<z.ZodString>;
|
|
1564
|
+
editTrail: z.ZodArray<z.ZodString>;
|
|
1565
|
+
}, z.core.$strip>>;
|
|
1528
1566
|
}, z.core.$strip>;
|
|
1529
1567
|
type ContentFormula = z.infer<typeof ContentFormulaSchema>;
|
|
1530
1568
|
declare const CONTENT_FORMAT_VERSION = 3;
|
|
1531
1569
|
declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1532
|
-
kind: z.ZodLiteral<"wordprocessing">;
|
|
1533
|
-
formatVersion: z.ZodLiteral<3>;
|
|
1534
|
-
metadata: z.ZodObject<{
|
|
1535
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1536
|
-
author: z.ZodOptional<z.ZodString>;
|
|
1537
|
-
subject: z.ZodOptional<z.ZodString>;
|
|
1538
|
-
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1539
|
-
creator: z.ZodOptional<z.ZodString>;
|
|
1540
|
-
producer: z.ZodOptional<z.ZodString>;
|
|
1541
|
-
createdIso: z.ZodOptional<z.ZodString>;
|
|
1542
|
-
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
1543
|
-
}, z.core.$strip>;
|
|
1544
1570
|
sections: z.ZodArray<z.ZodObject<{
|
|
1545
1571
|
pageSize: z.ZodObject<{
|
|
1546
1572
|
widthPt: z.ZodNumber;
|
|
@@ -1554,8 +1580,50 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1554
1580
|
}, z.core.$strip>;
|
|
1555
1581
|
blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
|
|
1556
1582
|
}, z.core.$strip>>;
|
|
1557
|
-
|
|
1558
|
-
|
|
1583
|
+
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
1584
|
+
symbols: z.ZodArray<z.ZodObject<{
|
|
1585
|
+
glyph: z.ZodString;
|
|
1586
|
+
scope: z.ZodString;
|
|
1587
|
+
id: z.ZodString;
|
|
1588
|
+
quantityKind: z.ZodOptional<z.ZodString>;
|
|
1589
|
+
preferredUnit: z.ZodOptional<z.ZodString>;
|
|
1590
|
+
definitionSource: z.ZodOptional<z.ZodString>;
|
|
1591
|
+
}, z.core.$strip>>;
|
|
1592
|
+
units: z.ZodArray<z.ZodObject<{
|
|
1593
|
+
id: z.ZodString;
|
|
1594
|
+
symbol: z.ZodString;
|
|
1595
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1596
|
+
dimension: z.ZodRecord<z.ZodEnum<{
|
|
1597
|
+
time: "time";
|
|
1598
|
+
length: "length";
|
|
1599
|
+
mass: "mass";
|
|
1600
|
+
electricCurrent: "electricCurrent";
|
|
1601
|
+
thermodynamicTemperature: "thermodynamicTemperature";
|
|
1602
|
+
amountOfSubstance: "amountOfSubstance";
|
|
1603
|
+
luminousIntensity: "luminousIntensity";
|
|
1604
|
+
}> & z.core.$partial, z.ZodNumber>;
|
|
1605
|
+
factorToSi: z.ZodObject<{
|
|
1606
|
+
numerator: z.ZodString;
|
|
1607
|
+
denominator: z.ZodString;
|
|
1608
|
+
}, z.core.$strip>;
|
|
1609
|
+
offsetToSi: z.ZodOptional<z.ZodObject<{
|
|
1610
|
+
numerator: z.ZodString;
|
|
1611
|
+
denominator: z.ZodString;
|
|
1612
|
+
}, z.core.$strip>>;
|
|
1613
|
+
context: z.ZodOptional<z.ZodString>;
|
|
1614
|
+
}, z.core.$strip>>;
|
|
1615
|
+
contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1616
|
+
id: z.ZodString;
|
|
1617
|
+
bases: z.ZodArray<z.ZodObject<{
|
|
1618
|
+
unit: z.ZodString;
|
|
1619
|
+
value: z.ZodObject<{
|
|
1620
|
+
numerator: z.ZodString;
|
|
1621
|
+
denominator: z.ZodString;
|
|
1622
|
+
}, z.core.$strip>;
|
|
1623
|
+
}, z.core.$strip>>;
|
|
1624
|
+
}, z.core.$strip>>>;
|
|
1625
|
+
}, z.core.$strip>>;
|
|
1626
|
+
kind: z.ZodLiteral<"wordprocessing">;
|
|
1559
1627
|
formatVersion: z.ZodLiteral<3>;
|
|
1560
1628
|
metadata: z.ZodObject<{
|
|
1561
1629
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1567,6 +1635,7 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1567
1635
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
1568
1636
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
1569
1637
|
}, z.core.$strip>;
|
|
1638
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1570
1639
|
slides: z.ZodArray<z.ZodObject<{
|
|
1571
1640
|
size: z.ZodObject<{
|
|
1572
1641
|
widthPt: z.ZodNumber;
|
|
@@ -1600,8 +1669,50 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1600
1669
|
}, z.core.$strip>>;
|
|
1601
1670
|
notes: z.ZodString;
|
|
1602
1671
|
}, z.core.$strip>>;
|
|
1603
|
-
|
|
1604
|
-
|
|
1672
|
+
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
1673
|
+
symbols: z.ZodArray<z.ZodObject<{
|
|
1674
|
+
glyph: z.ZodString;
|
|
1675
|
+
scope: z.ZodString;
|
|
1676
|
+
id: z.ZodString;
|
|
1677
|
+
quantityKind: z.ZodOptional<z.ZodString>;
|
|
1678
|
+
preferredUnit: z.ZodOptional<z.ZodString>;
|
|
1679
|
+
definitionSource: z.ZodOptional<z.ZodString>;
|
|
1680
|
+
}, z.core.$strip>>;
|
|
1681
|
+
units: z.ZodArray<z.ZodObject<{
|
|
1682
|
+
id: z.ZodString;
|
|
1683
|
+
symbol: z.ZodString;
|
|
1684
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1685
|
+
dimension: z.ZodRecord<z.ZodEnum<{
|
|
1686
|
+
time: "time";
|
|
1687
|
+
length: "length";
|
|
1688
|
+
mass: "mass";
|
|
1689
|
+
electricCurrent: "electricCurrent";
|
|
1690
|
+
thermodynamicTemperature: "thermodynamicTemperature";
|
|
1691
|
+
amountOfSubstance: "amountOfSubstance";
|
|
1692
|
+
luminousIntensity: "luminousIntensity";
|
|
1693
|
+
}> & z.core.$partial, z.ZodNumber>;
|
|
1694
|
+
factorToSi: z.ZodObject<{
|
|
1695
|
+
numerator: z.ZodString;
|
|
1696
|
+
denominator: z.ZodString;
|
|
1697
|
+
}, z.core.$strip>;
|
|
1698
|
+
offsetToSi: z.ZodOptional<z.ZodObject<{
|
|
1699
|
+
numerator: z.ZodString;
|
|
1700
|
+
denominator: z.ZodString;
|
|
1701
|
+
}, z.core.$strip>>;
|
|
1702
|
+
context: z.ZodOptional<z.ZodString>;
|
|
1703
|
+
}, z.core.$strip>>;
|
|
1704
|
+
contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1705
|
+
id: z.ZodString;
|
|
1706
|
+
bases: z.ZodArray<z.ZodObject<{
|
|
1707
|
+
unit: z.ZodString;
|
|
1708
|
+
value: z.ZodObject<{
|
|
1709
|
+
numerator: z.ZodString;
|
|
1710
|
+
denominator: z.ZodString;
|
|
1711
|
+
}, z.core.$strip>;
|
|
1712
|
+
}, z.core.$strip>>;
|
|
1713
|
+
}, z.core.$strip>>>;
|
|
1714
|
+
}, z.core.$strip>>;
|
|
1715
|
+
kind: z.ZodLiteral<"presentation">;
|
|
1605
1716
|
formatVersion: z.ZodLiteral<3>;
|
|
1606
1717
|
metadata: z.ZodObject<{
|
|
1607
1718
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1613,6 +1724,7 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1613
1724
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
1614
1725
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
1615
1726
|
}, z.core.$strip>;
|
|
1727
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1616
1728
|
sheets: z.ZodArray<z.ZodObject<{
|
|
1617
1729
|
name: z.ZodString;
|
|
1618
1730
|
cells: z.ZodArray<z.ZodObject<{
|
|
@@ -1753,6 +1865,15 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1753
1865
|
bottom: "bottom";
|
|
1754
1866
|
middle: "middle";
|
|
1755
1867
|
}>>;
|
|
1868
|
+
comment: z.ZodOptional<z.ZodObject<{
|
|
1869
|
+
text: z.ZodString;
|
|
1870
|
+
author: z.ZodOptional<z.ZodString>;
|
|
1871
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1872
|
+
replies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1873
|
+
text: z.ZodString;
|
|
1874
|
+
author: z.ZodOptional<z.ZodString>;
|
|
1875
|
+
}, z.core.$strip>>>;
|
|
1876
|
+
}, z.core.$strip>>;
|
|
1756
1877
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1757
1878
|
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1758
1879
|
pageIndex: z.ZodNumber;
|
|
@@ -1838,8 +1959,50 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1838
1959
|
}, z.core.$strip>;
|
|
1839
1960
|
embeddedObjects: z.ZodOptional<z.ZodArray<z.ZodCustom<ContentEmbeddedObject, ContentEmbeddedObject>>>;
|
|
1840
1961
|
}, z.core.$strip>>;
|
|
1841
|
-
|
|
1842
|
-
|
|
1962
|
+
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
1963
|
+
symbols: z.ZodArray<z.ZodObject<{
|
|
1964
|
+
glyph: z.ZodString;
|
|
1965
|
+
scope: z.ZodString;
|
|
1966
|
+
id: z.ZodString;
|
|
1967
|
+
quantityKind: z.ZodOptional<z.ZodString>;
|
|
1968
|
+
preferredUnit: z.ZodOptional<z.ZodString>;
|
|
1969
|
+
definitionSource: z.ZodOptional<z.ZodString>;
|
|
1970
|
+
}, z.core.$strip>>;
|
|
1971
|
+
units: z.ZodArray<z.ZodObject<{
|
|
1972
|
+
id: z.ZodString;
|
|
1973
|
+
symbol: z.ZodString;
|
|
1974
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1975
|
+
dimension: z.ZodRecord<z.ZodEnum<{
|
|
1976
|
+
time: "time";
|
|
1977
|
+
length: "length";
|
|
1978
|
+
mass: "mass";
|
|
1979
|
+
electricCurrent: "electricCurrent";
|
|
1980
|
+
thermodynamicTemperature: "thermodynamicTemperature";
|
|
1981
|
+
amountOfSubstance: "amountOfSubstance";
|
|
1982
|
+
luminousIntensity: "luminousIntensity";
|
|
1983
|
+
}> & z.core.$partial, z.ZodNumber>;
|
|
1984
|
+
factorToSi: z.ZodObject<{
|
|
1985
|
+
numerator: z.ZodString;
|
|
1986
|
+
denominator: z.ZodString;
|
|
1987
|
+
}, z.core.$strip>;
|
|
1988
|
+
offsetToSi: z.ZodOptional<z.ZodObject<{
|
|
1989
|
+
numerator: z.ZodString;
|
|
1990
|
+
denominator: z.ZodString;
|
|
1991
|
+
}, z.core.$strip>>;
|
|
1992
|
+
context: z.ZodOptional<z.ZodString>;
|
|
1993
|
+
}, z.core.$strip>>;
|
|
1994
|
+
contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1995
|
+
id: z.ZodString;
|
|
1996
|
+
bases: z.ZodArray<z.ZodObject<{
|
|
1997
|
+
unit: z.ZodString;
|
|
1998
|
+
value: z.ZodObject<{
|
|
1999
|
+
numerator: z.ZodString;
|
|
2000
|
+
denominator: z.ZodString;
|
|
2001
|
+
}, z.core.$strip>;
|
|
2002
|
+
}, z.core.$strip>>;
|
|
2003
|
+
}, z.core.$strip>>>;
|
|
2004
|
+
}, z.core.$strip>>;
|
|
2005
|
+
kind: z.ZodLiteral<"spreadsheet">;
|
|
1843
2006
|
formatVersion: z.ZodLiteral<3>;
|
|
1844
2007
|
metadata: z.ZodObject<{
|
|
1845
2008
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1851,6 +2014,7 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1851
2014
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
1852
2015
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
1853
2016
|
}, z.core.$strip>;
|
|
2017
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1854
2018
|
pages: z.ZodArray<z.ZodObject<{
|
|
1855
2019
|
size: z.ZodObject<{
|
|
1856
2020
|
widthPt: z.ZodNumber;
|
|
@@ -2060,8 +2224,50 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2060
2224
|
}, z.core.$strip>>>;
|
|
2061
2225
|
}, z.core.$strip>], "kind">>;
|
|
2062
2226
|
}, z.core.$strip>>;
|
|
2063
|
-
|
|
2064
|
-
|
|
2227
|
+
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
2228
|
+
symbols: z.ZodArray<z.ZodObject<{
|
|
2229
|
+
glyph: z.ZodString;
|
|
2230
|
+
scope: z.ZodString;
|
|
2231
|
+
id: z.ZodString;
|
|
2232
|
+
quantityKind: z.ZodOptional<z.ZodString>;
|
|
2233
|
+
preferredUnit: z.ZodOptional<z.ZodString>;
|
|
2234
|
+
definitionSource: z.ZodOptional<z.ZodString>;
|
|
2235
|
+
}, z.core.$strip>>;
|
|
2236
|
+
units: z.ZodArray<z.ZodObject<{
|
|
2237
|
+
id: z.ZodString;
|
|
2238
|
+
symbol: z.ZodString;
|
|
2239
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2240
|
+
dimension: z.ZodRecord<z.ZodEnum<{
|
|
2241
|
+
time: "time";
|
|
2242
|
+
length: "length";
|
|
2243
|
+
mass: "mass";
|
|
2244
|
+
electricCurrent: "electricCurrent";
|
|
2245
|
+
thermodynamicTemperature: "thermodynamicTemperature";
|
|
2246
|
+
amountOfSubstance: "amountOfSubstance";
|
|
2247
|
+
luminousIntensity: "luminousIntensity";
|
|
2248
|
+
}> & z.core.$partial, z.ZodNumber>;
|
|
2249
|
+
factorToSi: z.ZodObject<{
|
|
2250
|
+
numerator: z.ZodString;
|
|
2251
|
+
denominator: z.ZodString;
|
|
2252
|
+
}, z.core.$strip>;
|
|
2253
|
+
offsetToSi: z.ZodOptional<z.ZodObject<{
|
|
2254
|
+
numerator: z.ZodString;
|
|
2255
|
+
denominator: z.ZodString;
|
|
2256
|
+
}, z.core.$strip>>;
|
|
2257
|
+
context: z.ZodOptional<z.ZodString>;
|
|
2258
|
+
}, z.core.$strip>>;
|
|
2259
|
+
contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2260
|
+
id: z.ZodString;
|
|
2261
|
+
bases: z.ZodArray<z.ZodObject<{
|
|
2262
|
+
unit: z.ZodString;
|
|
2263
|
+
value: z.ZodObject<{
|
|
2264
|
+
numerator: z.ZodString;
|
|
2265
|
+
denominator: z.ZodString;
|
|
2266
|
+
}, z.core.$strip>;
|
|
2267
|
+
}, z.core.$strip>>;
|
|
2268
|
+
}, z.core.$strip>>>;
|
|
2269
|
+
}, z.core.$strip>>;
|
|
2270
|
+
kind: z.ZodLiteral<"drawing">;
|
|
2065
2271
|
formatVersion: z.ZodLiteral<3>;
|
|
2066
2272
|
metadata: z.ZodObject<{
|
|
2067
2273
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -2073,11 +2279,76 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2073
2279
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
2074
2280
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
2075
2281
|
}, z.core.$strip>;
|
|
2282
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2076
2283
|
formula: z.ZodObject<{
|
|
2077
2284
|
mathml: z.ZodArray<z.ZodCustom<MathMlNode, MathMlNode>>;
|
|
2078
2285
|
starMath: z.ZodOptional<z.ZodString>;
|
|
2286
|
+
presentation: z.ZodOptional<z.ZodObject<{
|
|
2287
|
+
latex: z.ZodString;
|
|
2288
|
+
}, z.core.$strip>>;
|
|
2289
|
+
content: z.ZodOptional<z.ZodCustom<MathExpression, MathExpression>>;
|
|
2290
|
+
provenance: z.ZodOptional<z.ZodObject<{
|
|
2291
|
+
source: z.ZodString;
|
|
2292
|
+
pageRef: z.ZodOptional<z.ZodString>;
|
|
2293
|
+
editTrail: z.ZodArray<z.ZodString>;
|
|
2294
|
+
}, z.core.$strip>>;
|
|
2295
|
+
}, z.core.$strip>;
|
|
2296
|
+
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
2297
|
+
symbols: z.ZodArray<z.ZodObject<{
|
|
2298
|
+
glyph: z.ZodString;
|
|
2299
|
+
scope: z.ZodString;
|
|
2300
|
+
id: z.ZodString;
|
|
2301
|
+
quantityKind: z.ZodOptional<z.ZodString>;
|
|
2302
|
+
preferredUnit: z.ZodOptional<z.ZodString>;
|
|
2303
|
+
definitionSource: z.ZodOptional<z.ZodString>;
|
|
2304
|
+
}, z.core.$strip>>;
|
|
2305
|
+
units: z.ZodArray<z.ZodObject<{
|
|
2306
|
+
id: z.ZodString;
|
|
2307
|
+
symbol: z.ZodString;
|
|
2308
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2309
|
+
dimension: z.ZodRecord<z.ZodEnum<{
|
|
2310
|
+
time: "time";
|
|
2311
|
+
length: "length";
|
|
2312
|
+
mass: "mass";
|
|
2313
|
+
electricCurrent: "electricCurrent";
|
|
2314
|
+
thermodynamicTemperature: "thermodynamicTemperature";
|
|
2315
|
+
amountOfSubstance: "amountOfSubstance";
|
|
2316
|
+
luminousIntensity: "luminousIntensity";
|
|
2317
|
+
}> & z.core.$partial, z.ZodNumber>;
|
|
2318
|
+
factorToSi: z.ZodObject<{
|
|
2319
|
+
numerator: z.ZodString;
|
|
2320
|
+
denominator: z.ZodString;
|
|
2321
|
+
}, z.core.$strip>;
|
|
2322
|
+
offsetToSi: z.ZodOptional<z.ZodObject<{
|
|
2323
|
+
numerator: z.ZodString;
|
|
2324
|
+
denominator: z.ZodString;
|
|
2325
|
+
}, z.core.$strip>>;
|
|
2326
|
+
context: z.ZodOptional<z.ZodString>;
|
|
2327
|
+
}, z.core.$strip>>;
|
|
2328
|
+
contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2329
|
+
id: z.ZodString;
|
|
2330
|
+
bases: z.ZodArray<z.ZodObject<{
|
|
2331
|
+
unit: z.ZodString;
|
|
2332
|
+
value: z.ZodObject<{
|
|
2333
|
+
numerator: z.ZodString;
|
|
2334
|
+
denominator: z.ZodString;
|
|
2335
|
+
}, z.core.$strip>;
|
|
2336
|
+
}, z.core.$strip>>;
|
|
2337
|
+
}, z.core.$strip>>>;
|
|
2338
|
+
}, z.core.$strip>>;
|
|
2339
|
+
kind: z.ZodLiteral<"formula">;
|
|
2340
|
+
formatVersion: z.ZodLiteral<3>;
|
|
2341
|
+
metadata: z.ZodObject<{
|
|
2342
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2343
|
+
author: z.ZodOptional<z.ZodString>;
|
|
2344
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
2345
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2346
|
+
creator: z.ZodOptional<z.ZodString>;
|
|
2347
|
+
producer: z.ZodOptional<z.ZodString>;
|
|
2348
|
+
createdIso: z.ZodOptional<z.ZodString>;
|
|
2349
|
+
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
2079
2350
|
}, z.core.$strip>;
|
|
2080
2351
|
}, z.core.$strip>], "kind">;
|
|
2081
2352
|
type ContentDocument = z.infer<typeof ContentDocumentSchema>;
|
|
2082
2353
|
//#endregion
|
|
2083
|
-
export { CONTENT_FORMAT_VERSION, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFormula, ContentFormulaSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, clampHeadingLevel, isContentBlock };
|
|
2354
|
+
export { CONTENT_FORMAT_VERSION, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFormula, ContentFormulaSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, clampHeadingLevel, isContentBlock };
|