document-schema 4.0.0 → 4.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 +95 -6
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/construct-D5pdDPqM.d.cts +204 -0
- package/dist/construct-D5pdDPqM.d.ts +204 -0
- package/dist/construct.cjs +106 -0
- package/dist/construct.d.cts +2 -0
- package/dist/construct.d.ts +2 -0
- package/dist/construct.js +93 -0
- package/dist/{content-CiZf6Fqn.d.ts → content-D3C14yyb.d.ts} +97 -9
- package/dist/content-json-schema-defs.cjs +256 -4
- package/dist/content-json-schema-defs.js +256 -4
- package/dist/{content-BN0PWqpt.d.cts → content-oSmH1_zP.d.cts} +97 -9
- package/dist/content.cjs +32 -0
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +28 -1
- package/dist/definitions.d.cts +1 -1
- package/dist/definitions.d.ts +1 -1
- package/dist/index.cjs +25 -0
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +4 -3
- package/dist/{math-B7gZJeND.d.cts → math-BlG8Tjk-.d.cts} +3 -3
- package/dist/{math-B7gZJeND.d.ts → math-BlG8Tjk-.d.ts} +3 -3
- package/dist/math.d.cts +1 -1
- package/dist/math.d.ts +1 -1
- package/dist/{package-node-DDPSNOvy.d.cts → package-node-B9qLyhk5.d.ts} +73 -55
- package/dist/{package-node-QVFHQcm8.d.ts → package-node-DUKZHgAg.d.cts} +73 -55
- package/dist/package-node.cjs +32 -12
- package/dist/package-node.d.cts +2 -2
- package/dist/package-node.d.ts +2 -2
- package/dist/package-node.js +28 -14
- package/dist/package.cjs +4 -1
- package/dist/package.d.cts +52 -7
- package/dist/package.d.ts +52 -7
- package/dist/package.js +4 -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.d.cts +2 -2
- package/dist/style.d.ts +2 -2
- package/package.json +1 -1
- package/schemas/content-document.schema.json +399 -7
- package/schemas/document-package.schema.json +534 -7
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/construct.ts
|
|
4
|
+
const ContentControlTypeSchema = zod.z.enum([
|
|
5
|
+
"richText",
|
|
6
|
+
"plainText",
|
|
7
|
+
"checkbox",
|
|
8
|
+
"dropDown",
|
|
9
|
+
"comboBox",
|
|
10
|
+
"date",
|
|
11
|
+
"picture",
|
|
12
|
+
"repeatingSection",
|
|
13
|
+
"button",
|
|
14
|
+
"index",
|
|
15
|
+
"group"
|
|
16
|
+
]);
|
|
17
|
+
const ContentControlLockSchema = zod.z.enum([
|
|
18
|
+
"content",
|
|
19
|
+
"container",
|
|
20
|
+
"both"
|
|
21
|
+
]);
|
|
22
|
+
const ContentControlDescriptorSchema = zod.z.strictObject({
|
|
23
|
+
kind: zod.z.literal("contentControl"),
|
|
24
|
+
controlType: ContentControlTypeSchema,
|
|
25
|
+
tag: zod.z.string().optional(),
|
|
26
|
+
alias: zod.z.string().optional(),
|
|
27
|
+
lock: ContentControlLockSchema.optional(),
|
|
28
|
+
value: zod.z.string().optional(),
|
|
29
|
+
checked: zod.z.boolean().optional(),
|
|
30
|
+
options: zod.z.array(zod.z.string()).optional()
|
|
31
|
+
});
|
|
32
|
+
const FieldDescriptorSchema = zod.z.strictObject({
|
|
33
|
+
kind: zod.z.literal("field"),
|
|
34
|
+
instruction: zod.z.string(),
|
|
35
|
+
cachedResult: zod.z.string().optional()
|
|
36
|
+
});
|
|
37
|
+
const AnchorTypeSchema = zod.z.enum([
|
|
38
|
+
"bookmark",
|
|
39
|
+
"footnote",
|
|
40
|
+
"endnote",
|
|
41
|
+
"comment"
|
|
42
|
+
]);
|
|
43
|
+
const AnchorDescriptorSchema = zod.z.strictObject({
|
|
44
|
+
kind: zod.z.literal("anchor"),
|
|
45
|
+
anchorType: AnchorTypeSchema,
|
|
46
|
+
name: zod.z.string(),
|
|
47
|
+
definition: zod.z.string().optional()
|
|
48
|
+
});
|
|
49
|
+
const LinkTargetSchema = zod.z.discriminatedUnion("kind", [zod.z.strictObject({
|
|
50
|
+
kind: zod.z.literal("external"),
|
|
51
|
+
uri: zod.z.string()
|
|
52
|
+
}), zod.z.strictObject({
|
|
53
|
+
kind: zod.z.literal("internal"),
|
|
54
|
+
anchor: zod.z.string()
|
|
55
|
+
})]);
|
|
56
|
+
const LinkDescriptorSchema = zod.z.strictObject({
|
|
57
|
+
kind: zod.z.literal("link"),
|
|
58
|
+
target: LinkTargetSchema,
|
|
59
|
+
title: zod.z.string().optional()
|
|
60
|
+
});
|
|
61
|
+
const ProvenanceChangeSchema = zod.z.enum([
|
|
62
|
+
"insertion",
|
|
63
|
+
"deletion",
|
|
64
|
+
"moveFrom",
|
|
65
|
+
"moveTo",
|
|
66
|
+
"formatChange"
|
|
67
|
+
]);
|
|
68
|
+
const ProvenanceDescriptorSchema = zod.z.strictObject({
|
|
69
|
+
kind: zod.z.literal("provenance"),
|
|
70
|
+
change: ProvenanceChangeSchema,
|
|
71
|
+
author: zod.z.string().optional(),
|
|
72
|
+
dateIso: zod.z.string().optional()
|
|
73
|
+
});
|
|
74
|
+
const DivisionSourceSchema = zod.z.strictObject({
|
|
75
|
+
href: zod.z.string(),
|
|
76
|
+
sectionName: zod.z.string().optional()
|
|
77
|
+
});
|
|
78
|
+
const DivisionDescriptorSchema = zod.z.strictObject({
|
|
79
|
+
kind: zod.z.literal("division"),
|
|
80
|
+
name: zod.z.string().optional(),
|
|
81
|
+
columnCount: zod.z.number().int().positive().optional(),
|
|
82
|
+
protected: zod.z.boolean().optional(),
|
|
83
|
+
source: DivisionSourceSchema.optional()
|
|
84
|
+
});
|
|
85
|
+
const ConstructDescriptorSchema = zod.z.discriminatedUnion("kind", [
|
|
86
|
+
ContentControlDescriptorSchema,
|
|
87
|
+
FieldDescriptorSchema,
|
|
88
|
+
AnchorDescriptorSchema,
|
|
89
|
+
LinkDescriptorSchema,
|
|
90
|
+
ProvenanceDescriptorSchema,
|
|
91
|
+
DivisionDescriptorSchema
|
|
92
|
+
]);
|
|
93
|
+
//#endregion
|
|
94
|
+
exports.AnchorDescriptorSchema = AnchorDescriptorSchema;
|
|
95
|
+
exports.AnchorTypeSchema = AnchorTypeSchema;
|
|
96
|
+
exports.ConstructDescriptorSchema = ConstructDescriptorSchema;
|
|
97
|
+
exports.ContentControlDescriptorSchema = ContentControlDescriptorSchema;
|
|
98
|
+
exports.ContentControlLockSchema = ContentControlLockSchema;
|
|
99
|
+
exports.ContentControlTypeSchema = ContentControlTypeSchema;
|
|
100
|
+
exports.DivisionDescriptorSchema = DivisionDescriptorSchema;
|
|
101
|
+
exports.DivisionSourceSchema = DivisionSourceSchema;
|
|
102
|
+
exports.FieldDescriptorSchema = FieldDescriptorSchema;
|
|
103
|
+
exports.LinkDescriptorSchema = LinkDescriptorSchema;
|
|
104
|
+
exports.LinkTargetSchema = LinkTargetSchema;
|
|
105
|
+
exports.ProvenanceChangeSchema = ProvenanceChangeSchema;
|
|
106
|
+
exports.ProvenanceDescriptorSchema = ProvenanceDescriptorSchema;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-D5pdDPqM.cjs";
|
|
2
|
+
export { AnchorDescriptor, AnchorDescriptorSchema, AnchorType, AnchorTypeSchema, ConstructDescriptor, ConstructDescriptorSchema, ContentControlDescriptor, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, DivisionDescriptor, DivisionDescriptorSchema, DivisionSource, DivisionSourceSchema, FieldDescriptor, FieldDescriptorSchema, LinkDescriptor, LinkDescriptorSchema, LinkTarget, LinkTargetSchema, ProvenanceChange, ProvenanceChangeSchema, ProvenanceDescriptor, ProvenanceDescriptorSchema };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-D5pdDPqM.js";
|
|
2
|
+
export { AnchorDescriptor, AnchorDescriptorSchema, AnchorType, AnchorTypeSchema, ConstructDescriptor, ConstructDescriptorSchema, ContentControlDescriptor, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, DivisionDescriptor, DivisionDescriptorSchema, DivisionSource, DivisionSourceSchema, FieldDescriptor, FieldDescriptorSchema, LinkDescriptor, LinkDescriptorSchema, LinkTarget, LinkTargetSchema, ProvenanceChange, ProvenanceChangeSchema, ProvenanceDescriptor, ProvenanceDescriptorSchema };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/construct.ts
|
|
3
|
+
const ContentControlTypeSchema = z.enum([
|
|
4
|
+
"richText",
|
|
5
|
+
"plainText",
|
|
6
|
+
"checkbox",
|
|
7
|
+
"dropDown",
|
|
8
|
+
"comboBox",
|
|
9
|
+
"date",
|
|
10
|
+
"picture",
|
|
11
|
+
"repeatingSection",
|
|
12
|
+
"button",
|
|
13
|
+
"index",
|
|
14
|
+
"group"
|
|
15
|
+
]);
|
|
16
|
+
const ContentControlLockSchema = z.enum([
|
|
17
|
+
"content",
|
|
18
|
+
"container",
|
|
19
|
+
"both"
|
|
20
|
+
]);
|
|
21
|
+
const ContentControlDescriptorSchema = z.strictObject({
|
|
22
|
+
kind: z.literal("contentControl"),
|
|
23
|
+
controlType: ContentControlTypeSchema,
|
|
24
|
+
tag: z.string().optional(),
|
|
25
|
+
alias: z.string().optional(),
|
|
26
|
+
lock: ContentControlLockSchema.optional(),
|
|
27
|
+
value: z.string().optional(),
|
|
28
|
+
checked: z.boolean().optional(),
|
|
29
|
+
options: z.array(z.string()).optional()
|
|
30
|
+
});
|
|
31
|
+
const FieldDescriptorSchema = z.strictObject({
|
|
32
|
+
kind: z.literal("field"),
|
|
33
|
+
instruction: z.string(),
|
|
34
|
+
cachedResult: z.string().optional()
|
|
35
|
+
});
|
|
36
|
+
const AnchorTypeSchema = z.enum([
|
|
37
|
+
"bookmark",
|
|
38
|
+
"footnote",
|
|
39
|
+
"endnote",
|
|
40
|
+
"comment"
|
|
41
|
+
]);
|
|
42
|
+
const AnchorDescriptorSchema = z.strictObject({
|
|
43
|
+
kind: z.literal("anchor"),
|
|
44
|
+
anchorType: AnchorTypeSchema,
|
|
45
|
+
name: z.string(),
|
|
46
|
+
definition: z.string().optional()
|
|
47
|
+
});
|
|
48
|
+
const LinkTargetSchema = z.discriminatedUnion("kind", [z.strictObject({
|
|
49
|
+
kind: z.literal("external"),
|
|
50
|
+
uri: z.string()
|
|
51
|
+
}), z.strictObject({
|
|
52
|
+
kind: z.literal("internal"),
|
|
53
|
+
anchor: z.string()
|
|
54
|
+
})]);
|
|
55
|
+
const LinkDescriptorSchema = z.strictObject({
|
|
56
|
+
kind: z.literal("link"),
|
|
57
|
+
target: LinkTargetSchema,
|
|
58
|
+
title: z.string().optional()
|
|
59
|
+
});
|
|
60
|
+
const ProvenanceChangeSchema = z.enum([
|
|
61
|
+
"insertion",
|
|
62
|
+
"deletion",
|
|
63
|
+
"moveFrom",
|
|
64
|
+
"moveTo",
|
|
65
|
+
"formatChange"
|
|
66
|
+
]);
|
|
67
|
+
const ProvenanceDescriptorSchema = z.strictObject({
|
|
68
|
+
kind: z.literal("provenance"),
|
|
69
|
+
change: ProvenanceChangeSchema,
|
|
70
|
+
author: z.string().optional(),
|
|
71
|
+
dateIso: z.string().optional()
|
|
72
|
+
});
|
|
73
|
+
const DivisionSourceSchema = z.strictObject({
|
|
74
|
+
href: z.string(),
|
|
75
|
+
sectionName: z.string().optional()
|
|
76
|
+
});
|
|
77
|
+
const DivisionDescriptorSchema = z.strictObject({
|
|
78
|
+
kind: z.literal("division"),
|
|
79
|
+
name: z.string().optional(),
|
|
80
|
+
columnCount: z.number().int().positive().optional(),
|
|
81
|
+
protected: z.boolean().optional(),
|
|
82
|
+
source: DivisionSourceSchema.optional()
|
|
83
|
+
});
|
|
84
|
+
const ConstructDescriptorSchema = z.discriminatedUnion("kind", [
|
|
85
|
+
ContentControlDescriptorSchema,
|
|
86
|
+
FieldDescriptorSchema,
|
|
87
|
+
AnchorDescriptorSchema,
|
|
88
|
+
LinkDescriptorSchema,
|
|
89
|
+
ProvenanceDescriptorSchema,
|
|
90
|
+
DivisionDescriptorSchema
|
|
91
|
+
]);
|
|
92
|
+
//#endregion
|
|
93
|
+
export { AnchorDescriptorSchema, AnchorTypeSchema, ConstructDescriptorSchema, ContentControlDescriptorSchema, ContentControlLockSchema, ContentControlTypeSchema, DivisionDescriptorSchema, DivisionSourceSchema, FieldDescriptorSchema, LinkDescriptorSchema, LinkTargetSchema, ProvenanceChangeSchema, ProvenanceDescriptorSchema };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as MathMlNode } from "./mathml-B1oTCtzc.js";
|
|
2
|
-
import { s as MathExpression } from "./math-
|
|
2
|
+
import { s as MathExpression } from "./math-BlG8Tjk-.js";
|
|
3
3
|
import { n as Color } from "./color-AELCDH_b.js";
|
|
4
4
|
import { r as LayoutFrame, t as Box } from "./geometry-CvcjSwnA.js";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -121,6 +121,84 @@ declare const ContentPageBreakSchema: z.ZodObject<{
|
|
|
121
121
|
}, z.core.$strip>>>;
|
|
122
122
|
}, z.core.$strip>;
|
|
123
123
|
type ContentPageBreak = z.infer<typeof ContentPageBreakSchema>;
|
|
124
|
+
declare const ContentConstructStartSchema: z.ZodObject<{
|
|
125
|
+
kind: z.ZodLiteral<"constructStart">;
|
|
126
|
+
descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
127
|
+
kind: z.ZodLiteral<"contentControl">;
|
|
128
|
+
controlType: z.ZodEnum<{
|
|
129
|
+
date: "date";
|
|
130
|
+
richText: "richText";
|
|
131
|
+
plainText: "plainText";
|
|
132
|
+
checkbox: "checkbox";
|
|
133
|
+
dropDown: "dropDown";
|
|
134
|
+
comboBox: "comboBox";
|
|
135
|
+
picture: "picture";
|
|
136
|
+
repeatingSection: "repeatingSection";
|
|
137
|
+
button: "button";
|
|
138
|
+
index: "index";
|
|
139
|
+
group: "group";
|
|
140
|
+
}>;
|
|
141
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
142
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
143
|
+
lock: z.ZodOptional<z.ZodEnum<{
|
|
144
|
+
content: "content";
|
|
145
|
+
container: "container";
|
|
146
|
+
both: "both";
|
|
147
|
+
}>>;
|
|
148
|
+
value: z.ZodOptional<z.ZodString>;
|
|
149
|
+
checked: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
151
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
152
|
+
kind: z.ZodLiteral<"field">;
|
|
153
|
+
instruction: z.ZodString;
|
|
154
|
+
cachedResult: z.ZodOptional<z.ZodString>;
|
|
155
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
156
|
+
kind: z.ZodLiteral<"anchor">;
|
|
157
|
+
anchorType: z.ZodEnum<{
|
|
158
|
+
comment: "comment";
|
|
159
|
+
bookmark: "bookmark";
|
|
160
|
+
footnote: "footnote";
|
|
161
|
+
endnote: "endnote";
|
|
162
|
+
}>;
|
|
163
|
+
name: z.ZodString;
|
|
164
|
+
definition: z.ZodOptional<z.ZodString>;
|
|
165
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
166
|
+
kind: z.ZodLiteral<"link">;
|
|
167
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
168
|
+
kind: z.ZodLiteral<"external">;
|
|
169
|
+
uri: z.ZodString;
|
|
170
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
171
|
+
kind: z.ZodLiteral<"internal">;
|
|
172
|
+
anchor: z.ZodString;
|
|
173
|
+
}, z.core.$strict>], "kind">;
|
|
174
|
+
title: z.ZodOptional<z.ZodString>;
|
|
175
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
176
|
+
kind: z.ZodLiteral<"provenance">;
|
|
177
|
+
change: z.ZodEnum<{
|
|
178
|
+
insertion: "insertion";
|
|
179
|
+
deletion: "deletion";
|
|
180
|
+
moveFrom: "moveFrom";
|
|
181
|
+
moveTo: "moveTo";
|
|
182
|
+
formatChange: "formatChange";
|
|
183
|
+
}>;
|
|
184
|
+
author: z.ZodOptional<z.ZodString>;
|
|
185
|
+
dateIso: z.ZodOptional<z.ZodString>;
|
|
186
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
187
|
+
kind: z.ZodLiteral<"division">;
|
|
188
|
+
name: z.ZodOptional<z.ZodString>;
|
|
189
|
+
columnCount: z.ZodOptional<z.ZodNumber>;
|
|
190
|
+
protected: z.ZodOptional<z.ZodBoolean>;
|
|
191
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
192
|
+
href: z.ZodString;
|
|
193
|
+
sectionName: z.ZodOptional<z.ZodString>;
|
|
194
|
+
}, z.core.$strict>>;
|
|
195
|
+
}, z.core.$strict>], "kind">;
|
|
196
|
+
}, z.core.$strip>;
|
|
197
|
+
type ContentConstructStart = z.infer<typeof ContentConstructStartSchema>;
|
|
198
|
+
declare const ContentConstructEndSchema: z.ZodObject<{
|
|
199
|
+
kind: z.ZodLiteral<"constructEnd">;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
type ContentConstructEnd = z.infer<typeof ContentConstructEndSchema>;
|
|
124
202
|
interface ContentTableCell {
|
|
125
203
|
blocks: ContentBlock[];
|
|
126
204
|
colSpan?: number;
|
|
@@ -156,11 +234,21 @@ interface ContentEmbeddedObjectBlock extends ContentEmbeddedObject {
|
|
|
156
234
|
sourcePath?: string;
|
|
157
235
|
frames?: LayoutFrame[];
|
|
158
236
|
}
|
|
159
|
-
type ContentBlock = ContentParagraph | ContentTable | ContentImageBlock | ContentPageBreak | ContentEmbeddedObjectBlock;
|
|
237
|
+
type ContentBlock = ContentParagraph | ContentTable | ContentImageBlock | ContentPageBreak | ContentEmbeddedObjectBlock | ContentConstructStart | ContentConstructEnd;
|
|
238
|
+
declare function isContentConstructStart(value: unknown): value is ContentConstructStart;
|
|
239
|
+
declare function isContentConstructEnd(value: unknown): value is ContentConstructEnd;
|
|
160
240
|
declare function isContentBlock(value: unknown): value is ContentBlock;
|
|
161
241
|
declare const ContentBlockSchema: z.ZodCustom<ContentBlock, ContentBlock>;
|
|
162
242
|
declare const ContentEmbeddedObjectSchema: z.ZodCustom<ContentEmbeddedObject, ContentEmbeddedObject>;
|
|
163
243
|
declare const ContentEmbeddedObjectBlockSchema: z.ZodCustom<ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlock>;
|
|
244
|
+
type ConstructMarkerImbalance = {
|
|
245
|
+
kind: 'unmatchedEnd';
|
|
246
|
+
index: number;
|
|
247
|
+
} | {
|
|
248
|
+
kind: 'unclosedStart';
|
|
249
|
+
index: number;
|
|
250
|
+
};
|
|
251
|
+
declare function findConstructMarkerImbalance(blocks: readonly ContentBlock[]): ConstructMarkerImbalance | undefined;
|
|
164
252
|
declare const ContentStrokeStyleSchema: z.ZodEnum<{
|
|
165
253
|
solid: "solid";
|
|
166
254
|
dashed: "dashed";
|
|
@@ -1580,9 +1668,9 @@ declare const contentDocumentSharedFields: {
|
|
|
1580
1668
|
symbol: z.ZodString;
|
|
1581
1669
|
name: z.ZodOptional<z.ZodString>;
|
|
1582
1670
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
1583
|
-
time: "time";
|
|
1584
1671
|
length: "length";
|
|
1585
1672
|
mass: "mass";
|
|
1673
|
+
time: "time";
|
|
1586
1674
|
electricCurrent: "electricCurrent";
|
|
1587
1675
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
1588
1676
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -1638,9 +1726,9 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1638
1726
|
symbol: z.ZodString;
|
|
1639
1727
|
name: z.ZodOptional<z.ZodString>;
|
|
1640
1728
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
1641
|
-
time: "time";
|
|
1642
1729
|
length: "length";
|
|
1643
1730
|
mass: "mass";
|
|
1731
|
+
time: "time";
|
|
1644
1732
|
electricCurrent: "electricCurrent";
|
|
1645
1733
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
1646
1734
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -1726,9 +1814,9 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1726
1814
|
symbol: z.ZodString;
|
|
1727
1815
|
name: z.ZodOptional<z.ZodString>;
|
|
1728
1816
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
1729
|
-
time: "time";
|
|
1730
1817
|
length: "length";
|
|
1731
1818
|
mass: "mass";
|
|
1819
|
+
time: "time";
|
|
1732
1820
|
electricCurrent: "electricCurrent";
|
|
1733
1821
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
1734
1822
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -2015,9 +2103,9 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2015
2103
|
symbol: z.ZodString;
|
|
2016
2104
|
name: z.ZodOptional<z.ZodString>;
|
|
2017
2105
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
2018
|
-
time: "time";
|
|
2019
2106
|
length: "length";
|
|
2020
2107
|
mass: "mass";
|
|
2108
|
+
time: "time";
|
|
2021
2109
|
electricCurrent: "electricCurrent";
|
|
2022
2110
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
2023
2111
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -2279,9 +2367,9 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2279
2367
|
symbol: z.ZodString;
|
|
2280
2368
|
name: z.ZodOptional<z.ZodString>;
|
|
2281
2369
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
2282
|
-
time: "time";
|
|
2283
2370
|
length: "length";
|
|
2284
2371
|
mass: "mass";
|
|
2372
|
+
time: "time";
|
|
2285
2373
|
electricCurrent: "electricCurrent";
|
|
2286
2374
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
2287
2375
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -2347,9 +2435,9 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2347
2435
|
symbol: z.ZodString;
|
|
2348
2436
|
name: z.ZodOptional<z.ZodString>;
|
|
2349
2437
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
2350
|
-
time: "time";
|
|
2351
2438
|
length: "length";
|
|
2352
2439
|
mass: "mass";
|
|
2440
|
+
time: "time";
|
|
2353
2441
|
electricCurrent: "electricCurrent";
|
|
2354
2442
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
2355
2443
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -2390,4 +2478,4 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2390
2478
|
}, z.core.$strip>], "kind">;
|
|
2391
2479
|
type ContentDocument = z.infer<typeof ContentDocumentSchema>;
|
|
2392
2480
|
//#endregion
|
|
2393
|
-
export {
|
|
2481
|
+
export { ContentSheetPrintRangeSchema as $, ContentPageBreakSchema as A, isContentConstructEnd as At, ContentSectionSchema as B, ContentFormula as C, DecimalString as Ct, ContentListMembership as D, contentDocumentSharedFields as Dt, ContentImageBlockSchema as E, clampHeadingLevel as Et, ContentPathSegment as F, ContentSheetCellComment as G, ContentShapeSchema as H, ContentPathSegmentSchema as I, ContentSheetColumn as J, ContentSheetCellCommentSchema as K, ContentRun as L, ContentParagraphSchema as M, ContentPathPoint as N, ContentListMembershipSchema as O, findConstructMarkerImbalance as Ot, ContentPathPointSchema as P, ContentSheetPrintRange as Q, ContentRunSchema as R, ContentEmbeddedObjectSchema as S, ContentVectorSchema as St, ContentImageBlock as T, FusedNode as Tt, ContentSheet as U, ContentShape as V, ContentSheetCell as W, ContentSheetImage as X, ContentSheetColumnSchema as Y, ContentSheetImageSchema as Z, ContentDrawPageSchema as _, ContentTableCellSchema as _t, ContentBorderSchema as a, ContentSheetRowSchema as at, ContentEmbeddedObjectBlockSchema as b, ContentTableSchema as bt, ContentCellValue as c, ContentSlideSchema as ct, ContentConstructEndSchema as d, ContentStrokeStyle as dt, ContentSheetPrintSettings as et, ContentConstructStart as f, ContentStrokeStyleSchema as ft, ContentDrawPage as g, ContentTableCell as gt, ContentDocumentSchema as h, ContentTable as ht, ContentBorder as i, ContentSheetRow as it, ContentParagraph as j, isContentConstructStart as jt, ContentPageBreak as k, isContentBlock as kt, ContentCellValueSchema as l, ContentStroke as lt, ContentDocument as m, ContentSubpathSchema as mt, ContentBlock as n, ContentSheetRepeatRange as nt, ContentCellBorders as o, ContentSheetSchema as ot, ContentConstructStartSchema as p, ContentSubpath as pt, ContentSheetCellSchema as q, ContentBlockSchema as r, ContentSheetRepeatRangeSchema as rt, ContentCellBordersSchema as s, ContentSlide as st, ConstructMarkerImbalance as t, ContentSheetPrintSettingsSchema as tt, ContentConstructEnd as u, ContentStrokeSchema as ut, ContentEmbeddedObject as v, ContentTableRow as vt, ContentFormulaSchema as w, DecimalStringSchema as wt, ContentEmbeddedObjectKind as x, ContentVector as xt, ContentEmbeddedObjectBlock as y, ContentTableRowSchema as yt, ContentSection as z };
|