document-content-model 7.15.2 → 7.16.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/dist/bijection-constructs-3By08A5K.cjs +14695 -0
- package/dist/bijection-constructs-DlP29TpB.js +14624 -0
- package/dist/bijection-constructs.cjs +4 -0
- package/dist/bijection-constructs.d.cts +6 -0
- package/dist/bijection-constructs.d.ts +6 -0
- package/dist/bijection-constructs.js +2 -0
- package/dist/bijection-corpus.cjs +12 -0
- package/dist/bijection-corpus.d.cts +46 -0
- package/dist/bijection-corpus.d.ts +46 -0
- package/dist/bijection-corpus.js +2 -0
- package/dist/codec.d.cts +3 -3
- package/dist/codec.d.ts +3 -3
- package/dist/{construct-GVdTKrE7.d.cts → construct-C4XiF8OW.d.cts} +3 -3
- package/dist/{construct-GVdTKrE7.d.ts → construct-C4XiF8OW.d.ts} +3 -3
- package/dist/construct.d.cts +1 -1
- package/dist/construct.d.ts +1 -1
- package/dist/{content-CYB2gqF8.d.ts → content-CBE4kBMo.d.ts} +7924 -6158
- package/dist/{content-CG0dBdiE.d.cts → content-DKx5QaRd.d.cts} +7924 -6158
- package/dist/content-drawing-Dlo8cXJj.d.cts +1606 -0
- package/dist/content-drawing-DuvQQwuc.d.ts +1606 -0
- package/dist/content-drawing.cjs +186 -0
- package/dist/content-drawing.d.cts +2 -0
- package/dist/content-drawing.d.ts +2 -0
- package/dist/content-drawing.js +171 -0
- package/dist/content-json-schema-defs.cjs +29 -3035
- package/dist/content-json-schema-defs.d.cts +2 -6
- package/dist/content-json-schema-defs.d.ts +2 -6
- package/dist/content-json-schema-defs.js +30 -3033
- package/dist/content-sheet.cjs +408 -0
- package/dist/content-sheet.d.cts +2 -0
- package/dist/content-sheet.d.ts +2 -0
- package/dist/content-sheet.js +385 -0
- package/dist/content-vocabulary.cjs +190 -0
- package/dist/content-vocabulary.d.cts +2 -0
- package/dist/content-vocabulary.d.ts +2 -0
- package/dist/content-vocabulary.js +168 -0
- package/dist/content.cjs +29 -777
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +10 -701
- package/dist/decompose.cjs +5 -0
- package/dist/decompose.d.cts +5 -3
- package/dist/decompose.d.ts +5 -3
- package/dist/decompose.js +5 -1
- package/dist/definitions.cjs +2 -1
- package/dist/definitions.d.cts +4 -4
- package/dist/definitions.d.ts +4 -4
- package/dist/definitions.js +2 -1
- package/dist/factor-styles.cjs +2 -0
- package/dist/factor-styles.d.cts +1 -1
- package/dist/factor-styles.d.ts +1 -1
- package/dist/factor-styles.js +4 -2
- package/dist/flatten.cjs +5 -0
- package/dist/flatten.d.cts +3 -2
- package/dist/flatten.d.ts +3 -2
- package/dist/flatten.js +5 -1
- package/dist/index.cjs +71 -67
- package/dist/index.d.cts +12 -10
- package/dist/index.d.ts +12 -10
- package/dist/index.js +12 -12
- package/dist/json-schema-defs-blocks.cjs +1036 -0
- package/dist/json-schema-defs-blocks.d.cts +5 -0
- package/dist/json-schema-defs-blocks.d.ts +5 -0
- package/dist/json-schema-defs-blocks.js +1035 -0
- package/dist/json-schema-defs-math.cjs +291 -0
- package/dist/json-schema-defs-math.d.cts +5 -0
- package/dist/json-schema-defs-math.d.ts +5 -0
- package/dist/json-schema-defs-math.js +290 -0
- package/dist/json-schema-defs-shared.cjs +42 -0
- package/dist/json-schema-defs-shared.d.cts +9 -0
- package/dist/json-schema-defs-shared.d.ts +9 -0
- package/dist/json-schema-defs-shared.js +38 -0
- package/dist/json-schema-defs-sheet.cjs +944 -0
- package/dist/json-schema-defs-sheet.d.cts +5 -0
- package/dist/json-schema-defs-sheet.d.ts +5 -0
- package/dist/json-schema-defs-sheet.js +943 -0
- package/dist/json-schema-defs-tree.cjs +237 -0
- package/dist/json-schema-defs-tree.d.cts +5 -0
- package/dist/json-schema-defs-tree.d.ts +5 -0
- package/dist/json-schema-defs-tree.js +237 -0
- package/dist/json-schema-defs-vector.cjs +513 -0
- package/dist/json-schema-defs-vector.d.cts +5 -0
- package/dist/json-schema-defs-vector.d.ts +5 -0
- package/dist/json-schema-defs-vector.js +512 -0
- package/dist/magic-string.es-CB2hOw9v.js +1012 -0
- package/dist/magic-string.es-MEBc20Ce.cjs +1012 -0
- package/dist/math-layout.d.cts +2 -2
- package/dist/math-layout.d.ts +2 -2
- package/dist/math.cjs +7 -5
- package/dist/math.js +7 -5
- package/dist/mathml.cjs +3 -1
- package/dist/mathml.js +3 -1
- package/dist/{package-node-B8eeIyze.d.cts → package-node-BYL2owXg.d.cts} +40 -39
- package/dist/{package-node-BOvXA2-v.d.ts → package-node-vI3Q0nFf.d.ts} +40 -39
- package/dist/package-node.cjs +12 -9
- package/dist/package-node.d.cts +1 -1
- package/dist/package-node.d.ts +1 -1
- package/dist/package-node.js +4 -1
- package/dist/package.d.cts +6 -6
- package/dist/package.d.ts +6 -6
- package/dist/schema-io.cjs +7 -2
- package/dist/schema-io.d.cts +3 -2
- package/dist/schema-io.d.ts +3 -2
- package/dist/schema-io.js +7 -3
- package/dist/{style-BGMcYrD2.d.cts → style-D06NwxAJ.d.cts} +1 -1
- package/dist/{style-BGMcYrD2.d.ts → style-D06NwxAJ.d.ts} +1 -1
- package/dist/style.d.cts +1 -1
- package/dist/style.d.ts +1 -1
- package/dist/table-grid.cjs +5 -0
- package/dist/table-grid.d.cts +4 -3
- package/dist/table-grid.d.ts +4 -3
- package/dist/table-grid.js +5 -1
- package/dist/text-layout.d.cts +7 -7
- package/dist/text-layout.d.ts +7 -7
- package/package.json +1 -1
- package/schemas/content-document.schema.json +16 -16
- package/schemas/document-tree.schema.json +3 -3
package/dist/math-layout.d.cts
CHANGED
|
@@ -100,8 +100,8 @@ interface MathFontMetrics {
|
|
|
100
100
|
readonly scriptPercentScaleDown: number;
|
|
101
101
|
readonly scriptScriptPercentScaleDown: number;
|
|
102
102
|
readonly defaultRuleThicknessPt: number;
|
|
103
|
-
glyph(codePoint: number, sizePt: number)
|
|
104
|
-
stretch(codePoint: number, axis: MathStretchAxis, targetSizePt: number, sizePt: number)
|
|
103
|
+
readonly glyph: (codePoint: number, sizePt: number) => MathGlyphMetrics | undefined;
|
|
104
|
+
readonly stretch: (codePoint: number, axis: MathStretchAxis, targetSizePt: number, sizePt: number) => MathStretchResult | undefined;
|
|
105
105
|
}
|
|
106
106
|
interface PositionedFormula {
|
|
107
107
|
readonly pageIndex: number;
|
package/dist/math-layout.d.ts
CHANGED
|
@@ -100,8 +100,8 @@ interface MathFontMetrics {
|
|
|
100
100
|
readonly scriptPercentScaleDown: number;
|
|
101
101
|
readonly scriptScriptPercentScaleDown: number;
|
|
102
102
|
readonly defaultRuleThicknessPt: number;
|
|
103
|
-
glyph(codePoint: number, sizePt: number)
|
|
104
|
-
stretch(codePoint: number, axis: MathStretchAxis, targetSizePt: number, sizePt: number)
|
|
103
|
+
readonly glyph: (codePoint: number, sizePt: number) => MathGlyphMetrics | undefined;
|
|
104
|
+
readonly stretch: (codePoint: number, axis: MathStretchAxis, targetSizePt: number, sizePt: number) => MathStretchResult | undefined;
|
|
105
105
|
}
|
|
106
106
|
interface PositionedFormula {
|
|
107
107
|
readonly pageIndex: number;
|
package/dist/math.cjs
CHANGED
|
@@ -105,16 +105,17 @@ function isMathExpression(value) {
|
|
|
105
105
|
if (kind === "unparsed") return typeof value.latex === "string";
|
|
106
106
|
return false;
|
|
107
107
|
}
|
|
108
|
+
const mathExpressionSchemaBox = {};
|
|
108
109
|
const MathAppSchema = zod.z.object({
|
|
109
110
|
kind: zod.z.literal("app"),
|
|
110
111
|
operator: zod.z.string(),
|
|
111
|
-
args: zod.z.lazy(() => zod.z.array(
|
|
112
|
+
args: zod.z.lazy(() => zod.z.array(mathExpressionSchemaBox.value))
|
|
112
113
|
});
|
|
113
114
|
const BINDER_SCHEMA_FIELDS = {
|
|
114
115
|
binder: zod.z.string(),
|
|
115
|
-
lower: zod.z.lazy(() =>
|
|
116
|
-
upper: zod.z.lazy(() =>
|
|
117
|
-
body: zod.z.lazy(() =>
|
|
116
|
+
lower: zod.z.lazy(() => mathExpressionSchemaBox.value),
|
|
117
|
+
upper: zod.z.lazy(() => mathExpressionSchemaBox.value),
|
|
118
|
+
body: zod.z.lazy(() => mathExpressionSchemaBox.value)
|
|
118
119
|
};
|
|
119
120
|
const MathSumSchema = zod.z.object({
|
|
120
121
|
kind: zod.z.literal("sum"),
|
|
@@ -126,7 +127,7 @@ const MathProdSchema = zod.z.object({
|
|
|
126
127
|
});
|
|
127
128
|
const MathMatrixSchema = zod.z.object({
|
|
128
129
|
kind: zod.z.literal("matrix"),
|
|
129
|
-
rows: zod.z.lazy(() => zod.z.array(zod.z.array(
|
|
130
|
+
rows: zod.z.lazy(() => zod.z.array(zod.z.array(mathExpressionSchemaBox.value)))
|
|
130
131
|
}).refine((matrix) => new Set(matrix.rows.map((row) => row.length)).size <= 1, { message: "matrix rows must all have the same number of columns" });
|
|
131
132
|
const MathExpressionSchema = zod.z.discriminatedUnion("kind", [
|
|
132
133
|
MathNumSchema,
|
|
@@ -138,6 +139,7 @@ const MathExpressionSchema = zod.z.discriminatedUnion("kind", [
|
|
|
138
139
|
MathMatrixSchema,
|
|
139
140
|
MathUnparsedSchema
|
|
140
141
|
]);
|
|
142
|
+
mathExpressionSchemaBox.value = MathExpressionSchema;
|
|
141
143
|
const QuantitySchema = zod.z.object({
|
|
142
144
|
kind: zod.z.literal("quantity"),
|
|
143
145
|
magnitude: zod.z.number(),
|
package/dist/math.js
CHANGED
|
@@ -104,16 +104,17 @@ function isMathExpression(value) {
|
|
|
104
104
|
if (kind === "unparsed") return typeof value.latex === "string";
|
|
105
105
|
return false;
|
|
106
106
|
}
|
|
107
|
+
const mathExpressionSchemaBox = {};
|
|
107
108
|
const MathAppSchema = z.object({
|
|
108
109
|
kind: z.literal("app"),
|
|
109
110
|
operator: z.string(),
|
|
110
|
-
args: z.lazy(() => z.array(
|
|
111
|
+
args: z.lazy(() => z.array(mathExpressionSchemaBox.value))
|
|
111
112
|
});
|
|
112
113
|
const BINDER_SCHEMA_FIELDS = {
|
|
113
114
|
binder: z.string(),
|
|
114
|
-
lower: z.lazy(() =>
|
|
115
|
-
upper: z.lazy(() =>
|
|
116
|
-
body: z.lazy(() =>
|
|
115
|
+
lower: z.lazy(() => mathExpressionSchemaBox.value),
|
|
116
|
+
upper: z.lazy(() => mathExpressionSchemaBox.value),
|
|
117
|
+
body: z.lazy(() => mathExpressionSchemaBox.value)
|
|
117
118
|
};
|
|
118
119
|
const MathSumSchema = z.object({
|
|
119
120
|
kind: z.literal("sum"),
|
|
@@ -125,7 +126,7 @@ const MathProdSchema = z.object({
|
|
|
125
126
|
});
|
|
126
127
|
const MathMatrixSchema = z.object({
|
|
127
128
|
kind: z.literal("matrix"),
|
|
128
|
-
rows: z.lazy(() => z.array(z.array(
|
|
129
|
+
rows: z.lazy(() => z.array(z.array(mathExpressionSchemaBox.value)))
|
|
129
130
|
}).refine((matrix) => new Set(matrix.rows.map((row) => row.length)).size <= 1, { message: "matrix rows must all have the same number of columns" });
|
|
130
131
|
const MathExpressionSchema = z.discriminatedUnion("kind", [
|
|
131
132
|
MathNumSchema,
|
|
@@ -137,6 +138,7 @@ const MathExpressionSchema = z.discriminatedUnion("kind", [
|
|
|
137
138
|
MathMatrixSchema,
|
|
138
139
|
MathUnparsedSchema
|
|
139
140
|
]);
|
|
141
|
+
mathExpressionSchemaBox.value = MathExpressionSchema;
|
|
140
142
|
const QuantitySchema = z.object({
|
|
141
143
|
kind: z.literal("quantity"),
|
|
142
144
|
magnitude: z.number(),
|
package/dist/mathml.cjs
CHANGED
|
@@ -41,11 +41,12 @@ function isMathMlNode(value) {
|
|
|
41
41
|
if (type === "element") return typeof value.tag === "string" && Array.isArray(value.attributes) && value.attributes.every(isMathMlAttribute) && Array.isArray(value.children) && value.children.every(isMathMlNode);
|
|
42
42
|
return false;
|
|
43
43
|
}
|
|
44
|
+
const mathMlNodeSchemaBox = {};
|
|
44
45
|
const MathMlElementSchema = zod.z.object({
|
|
45
46
|
type: zod.z.literal("element"),
|
|
46
47
|
tag: zod.z.string(),
|
|
47
48
|
attributes: zod.z.array(MathMlAttributeSchema),
|
|
48
|
-
children: zod.z.lazy(() => zod.z.array(
|
|
49
|
+
children: zod.z.lazy(() => zod.z.array(mathMlNodeSchemaBox.value))
|
|
49
50
|
});
|
|
50
51
|
const MathMlNodeSchema = zod.z.discriminatedUnion("type", [
|
|
51
52
|
MathMlTextSchema,
|
|
@@ -55,6 +56,7 @@ const MathMlNodeSchema = zod.z.discriminatedUnion("type", [
|
|
|
55
56
|
MathMlPiSchema,
|
|
56
57
|
MathMlElementSchema
|
|
57
58
|
]);
|
|
59
|
+
mathMlNodeSchemaBox.value = MathMlNodeSchema;
|
|
58
60
|
//#endregion
|
|
59
61
|
exports.MathMlAttributeSchema = MathMlAttributeSchema;
|
|
60
62
|
exports.MathMlCdataSchema = MathMlCdataSchema;
|
package/dist/mathml.js
CHANGED
|
@@ -40,11 +40,12 @@ function isMathMlNode(value) {
|
|
|
40
40
|
if (type === "element") return typeof value.tag === "string" && Array.isArray(value.attributes) && value.attributes.every(isMathMlAttribute) && Array.isArray(value.children) && value.children.every(isMathMlNode);
|
|
41
41
|
return false;
|
|
42
42
|
}
|
|
43
|
+
const mathMlNodeSchemaBox = {};
|
|
43
44
|
const MathMlElementSchema = z.object({
|
|
44
45
|
type: z.literal("element"),
|
|
45
46
|
tag: z.string(),
|
|
46
47
|
attributes: z.array(MathMlAttributeSchema),
|
|
47
|
-
children: z.lazy(() => z.array(
|
|
48
|
+
children: z.lazy(() => z.array(mathMlNodeSchemaBox.value))
|
|
48
49
|
});
|
|
49
50
|
const MathMlNodeSchema = z.discriminatedUnion("type", [
|
|
50
51
|
MathMlTextSchema,
|
|
@@ -54,5 +55,6 @@ const MathMlNodeSchema = z.discriminatedUnion("type", [
|
|
|
54
55
|
MathMlPiSchema,
|
|
55
56
|
MathMlElementSchema
|
|
56
57
|
]);
|
|
58
|
+
mathMlNodeSchemaBox.value = MathMlNodeSchema;
|
|
57
59
|
//#endregion
|
|
58
60
|
export { MathMlAttributeSchema, MathMlCdataSchema, MathMlCommentSchema, MathMlDeclarationSchema, MathMlElementSchema, MathMlNodeSchema, MathMlPiSchema, MathMlTextSchema, isMathMlNode };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { f as ContentEmbeddedObject, h as ContentFormula, i as ContentConstructEnd, n as ContentBlock, o as ContentConstructStart, vt as ContentSheetImage } from "./content-DKx5QaRd.cjs";
|
|
2
|
+
import { k as ContentVector } from "./content-drawing-Dlo8cXJj.cjs";
|
|
3
|
+
import { a as ConstructDescriptor } from "./construct-C4XiF8OW.cjs";
|
|
3
4
|
import { z } from "zod";
|
|
4
5
|
//#region src/package-node.d.ts
|
|
5
6
|
declare const SectionDescriptorSchema: z.ZodObject<{
|
|
@@ -85,7 +86,6 @@ declare const SectionDescriptorSchema: z.ZodObject<{
|
|
|
85
86
|
}, z.core.$strict>;
|
|
86
87
|
type SectionDescriptor = z.infer<typeof SectionDescriptorSchema>;
|
|
87
88
|
declare const SlideDescriptorSchema: z.ZodObject<{
|
|
88
|
-
notes: z.ZodString;
|
|
89
89
|
source: z.ZodOptional<z.ZodObject<{
|
|
90
90
|
format: z.ZodEnum<{
|
|
91
91
|
docx: "docx";
|
|
@@ -106,6 +106,7 @@ declare const SlideDescriptorSchema: z.ZodObject<{
|
|
|
106
106
|
}>;
|
|
107
107
|
xml: z.ZodString;
|
|
108
108
|
}, z.core.$strict>>;
|
|
109
|
+
notes: z.ZodString;
|
|
109
110
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
110
111
|
chart: "chart";
|
|
111
112
|
diagram: "diagram";
|
|
@@ -141,6 +142,7 @@ declare const SlideDescriptorSchema: z.ZodObject<{
|
|
|
141
142
|
}, z.core.$strict>;
|
|
142
143
|
type SlideDescriptor = z.infer<typeof SlideDescriptorSchema>;
|
|
143
144
|
declare const SheetDescriptorSchema: z.ZodObject<{
|
|
145
|
+
name: z.ZodString;
|
|
144
146
|
source: z.ZodOptional<z.ZodObject<{
|
|
145
147
|
format: z.ZodEnum<{
|
|
146
148
|
docx: "docx";
|
|
@@ -188,7 +190,11 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
188
190
|
at: z.ZodString;
|
|
189
191
|
}, z.core.$strip>>;
|
|
190
192
|
}, z.core.$strip>>;
|
|
191
|
-
|
|
193
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
194
|
+
index: z.ZodNumber;
|
|
195
|
+
heightPt: z.ZodOptional<z.ZodNumber>;
|
|
196
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
197
|
+
}, z.core.$strip>>;
|
|
192
198
|
printSettings: z.ZodObject<{
|
|
193
199
|
pageSize: z.ZodObject<{
|
|
194
200
|
widthPt: z.ZodNumber;
|
|
@@ -552,8 +558,8 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
552
558
|
}, z.core.$strip>>;
|
|
553
559
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
554
560
|
left: "left";
|
|
555
|
-
right: "right";
|
|
556
561
|
center: "center";
|
|
562
|
+
right: "right";
|
|
557
563
|
justify: "justify";
|
|
558
564
|
}>>;
|
|
559
565
|
verticalAlignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -604,11 +610,6 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
604
610
|
widthPt: z.ZodOptional<z.ZodNumber>;
|
|
605
611
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
606
612
|
}, z.core.$strip>>;
|
|
607
|
-
rows: z.ZodArray<z.ZodObject<{
|
|
608
|
-
index: z.ZodNumber;
|
|
609
|
-
heightPt: z.ZodOptional<z.ZodNumber>;
|
|
610
|
-
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
611
|
-
}, z.core.$strip>>;
|
|
612
613
|
dataValidations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
613
614
|
ranges: z.ZodArray<z.ZodObject<{
|
|
614
615
|
startRow: z.ZodNumber;
|
|
@@ -1093,10 +1094,10 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
1093
1094
|
value: z.ZodObject<{
|
|
1094
1095
|
type: z.ZodEnum<{
|
|
1095
1096
|
formula: "formula";
|
|
1096
|
-
percent: "percent";
|
|
1097
1097
|
num: "num";
|
|
1098
|
-
max: "max";
|
|
1099
1098
|
min: "min";
|
|
1099
|
+
max: "max";
|
|
1100
|
+
percent: "percent";
|
|
1100
1101
|
percentile: "percentile";
|
|
1101
1102
|
}>;
|
|
1102
1103
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -1140,10 +1141,10 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
1140
1141
|
min: z.ZodObject<{
|
|
1141
1142
|
type: z.ZodEnum<{
|
|
1142
1143
|
formula: "formula";
|
|
1143
|
-
percent: "percent";
|
|
1144
1144
|
num: "num";
|
|
1145
|
-
max: "max";
|
|
1146
1145
|
min: "min";
|
|
1146
|
+
max: "max";
|
|
1147
|
+
percent: "percent";
|
|
1147
1148
|
percentile: "percentile";
|
|
1148
1149
|
}>;
|
|
1149
1150
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -1151,10 +1152,10 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
1151
1152
|
max: z.ZodObject<{
|
|
1152
1153
|
type: z.ZodEnum<{
|
|
1153
1154
|
formula: "formula";
|
|
1154
|
-
percent: "percent";
|
|
1155
1155
|
num: "num";
|
|
1156
|
-
max: "max";
|
|
1157
1156
|
min: "min";
|
|
1157
|
+
max: "max";
|
|
1158
|
+
percent: "percent";
|
|
1158
1159
|
percentile: "percentile";
|
|
1159
1160
|
}>;
|
|
1160
1161
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -1199,10 +1200,10 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
1199
1200
|
thresholds: z.ZodArray<z.ZodObject<{
|
|
1200
1201
|
type: z.ZodEnum<{
|
|
1201
1202
|
formula: "formula";
|
|
1202
|
-
percent: "percent";
|
|
1203
1203
|
num: "num";
|
|
1204
|
-
max: "max";
|
|
1205
1204
|
min: "min";
|
|
1205
|
+
max: "max";
|
|
1206
|
+
percent: "percent";
|
|
1206
1207
|
percentile: "percentile";
|
|
1207
1208
|
}>;
|
|
1208
1209
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -1298,7 +1299,7 @@ declare const DrawPageDescriptorSchema: z.ZodObject<{
|
|
|
1298
1299
|
}, z.core.$strict>;
|
|
1299
1300
|
type DrawPageDescriptor = z.infer<typeof DrawPageDescriptorSchema>;
|
|
1300
1301
|
declare const ShapeDescriptorSchema: z.ZodObject<{
|
|
1301
|
-
|
|
1302
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1302
1303
|
source: z.ZodOptional<z.ZodObject<{
|
|
1303
1304
|
format: z.ZodEnum<{
|
|
1304
1305
|
docx: "docx";
|
|
@@ -1319,6 +1320,22 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
|
|
|
1319
1320
|
}>;
|
|
1320
1321
|
xml: z.ZodString;
|
|
1321
1322
|
}, z.core.$strict>>;
|
|
1323
|
+
frame: z.ZodObject<{
|
|
1324
|
+
xPt: z.ZodNumber;
|
|
1325
|
+
yPt: z.ZodNumber;
|
|
1326
|
+
widthPt: z.ZodNumber;
|
|
1327
|
+
heightPt: z.ZodNumber;
|
|
1328
|
+
}, z.core.$strip>;
|
|
1329
|
+
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
1330
|
+
insetLeftPt: z.ZodNumber;
|
|
1331
|
+
insetTopPt: z.ZodNumber;
|
|
1332
|
+
insetRightPt: z.ZodNumber;
|
|
1333
|
+
insetBottomPt: z.ZodNumber;
|
|
1334
|
+
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
1335
|
+
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
1336
|
+
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
1337
|
+
readingOrder: z.ZodOptional<z.ZodNumber>;
|
|
1338
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1322
1339
|
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1323
1340
|
pageIndex: z.ZodNumber;
|
|
1324
1341
|
xPt: z.ZodNumber;
|
|
@@ -1353,22 +1370,6 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
|
|
|
1353
1370
|
at: z.ZodString;
|
|
1354
1371
|
}, z.core.$strip>>;
|
|
1355
1372
|
}, z.core.$strip>>;
|
|
1356
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1357
|
-
frame: z.ZodObject<{
|
|
1358
|
-
xPt: z.ZodNumber;
|
|
1359
|
-
yPt: z.ZodNumber;
|
|
1360
|
-
widthPt: z.ZodNumber;
|
|
1361
|
-
heightPt: z.ZodNumber;
|
|
1362
|
-
}, z.core.$strip>;
|
|
1363
|
-
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
1364
|
-
insetLeftPt: z.ZodNumber;
|
|
1365
|
-
insetTopPt: z.ZodNumber;
|
|
1366
|
-
insetRightPt: z.ZodNumber;
|
|
1367
|
-
insetBottomPt: z.ZodNumber;
|
|
1368
|
-
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
1369
|
-
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
1370
|
-
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
1371
|
-
readingOrder: z.ZodOptional<z.ZodNumber>;
|
|
1372
1373
|
}, z.core.$strict>;
|
|
1373
1374
|
type ShapeDescriptor = z.infer<typeof ShapeDescriptorSchema>;
|
|
1374
1375
|
declare const HeadingParagraphSchema: z.ZodObject<{
|
|
@@ -1551,10 +1552,10 @@ declare const HeadingParagraphSchema: z.ZodObject<{
|
|
|
1551
1552
|
}, z.core.$strict>, z.ZodObject<{
|
|
1552
1553
|
kind: z.ZodLiteral<"anchor">;
|
|
1553
1554
|
anchorType: z.ZodEnum<{
|
|
1555
|
+
comment: "comment";
|
|
1554
1556
|
bookmark: "bookmark";
|
|
1555
1557
|
footnote: "footnote";
|
|
1556
1558
|
endnote: "endnote";
|
|
1557
|
-
comment: "comment";
|
|
1558
1559
|
}>;
|
|
1559
1560
|
name: z.ZodString;
|
|
1560
1561
|
definition: z.ZodOptional<z.ZodString>;
|
|
@@ -1677,8 +1678,8 @@ declare const HeadingParagraphSchema: z.ZodObject<{
|
|
|
1677
1678
|
preformatted: z.ZodOptional<z.ZodBoolean>;
|
|
1678
1679
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
1679
1680
|
left: "left";
|
|
1680
|
-
right: "right";
|
|
1681
1681
|
center: "center";
|
|
1682
|
+
right: "right";
|
|
1682
1683
|
justify: "justify";
|
|
1683
1684
|
}>>;
|
|
1684
1685
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -1976,10 +1977,10 @@ declare const ListParagraphSchema: z.ZodObject<{
|
|
|
1976
1977
|
}, z.core.$strict>, z.ZodObject<{
|
|
1977
1978
|
kind: z.ZodLiteral<"anchor">;
|
|
1978
1979
|
anchorType: z.ZodEnum<{
|
|
1980
|
+
comment: "comment";
|
|
1979
1981
|
bookmark: "bookmark";
|
|
1980
1982
|
footnote: "footnote";
|
|
1981
1983
|
endnote: "endnote";
|
|
1982
|
-
comment: "comment";
|
|
1983
1984
|
}>;
|
|
1984
1985
|
name: z.ZodString;
|
|
1985
1986
|
definition: z.ZodOptional<z.ZodString>;
|
|
@@ -2103,8 +2104,8 @@ declare const ListParagraphSchema: z.ZodObject<{
|
|
|
2103
2104
|
headingLevel: z.ZodOptional<z.ZodNumber>;
|
|
2104
2105
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
2105
2106
|
left: "left";
|
|
2106
|
-
right: "right";
|
|
2107
2107
|
center: "center";
|
|
2108
|
+
right: "right";
|
|
2108
2109
|
justify: "justify";
|
|
2109
2110
|
}>>;
|
|
2110
2111
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { f as ContentEmbeddedObject, h as ContentFormula, i as ContentConstructEnd, n as ContentBlock, o as ContentConstructStart, vt as ContentSheetImage } from "./content-CBE4kBMo.js";
|
|
2
|
+
import { k as ContentVector } from "./content-drawing-DuvQQwuc.js";
|
|
3
|
+
import { a as ConstructDescriptor } from "./construct-C4XiF8OW.js";
|
|
3
4
|
import { z } from "zod";
|
|
4
5
|
//#region src/package-node.d.ts
|
|
5
6
|
declare const SectionDescriptorSchema: z.ZodObject<{
|
|
@@ -85,7 +86,6 @@ declare const SectionDescriptorSchema: z.ZodObject<{
|
|
|
85
86
|
}, z.core.$strict>;
|
|
86
87
|
type SectionDescriptor = z.infer<typeof SectionDescriptorSchema>;
|
|
87
88
|
declare const SlideDescriptorSchema: z.ZodObject<{
|
|
88
|
-
notes: z.ZodString;
|
|
89
89
|
source: z.ZodOptional<z.ZodObject<{
|
|
90
90
|
format: z.ZodEnum<{
|
|
91
91
|
docx: "docx";
|
|
@@ -106,6 +106,7 @@ declare const SlideDescriptorSchema: z.ZodObject<{
|
|
|
106
106
|
}>;
|
|
107
107
|
xml: z.ZodString;
|
|
108
108
|
}, z.core.$strict>>;
|
|
109
|
+
notes: z.ZodString;
|
|
109
110
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
110
111
|
chart: "chart";
|
|
111
112
|
diagram: "diagram";
|
|
@@ -141,6 +142,7 @@ declare const SlideDescriptorSchema: z.ZodObject<{
|
|
|
141
142
|
}, z.core.$strict>;
|
|
142
143
|
type SlideDescriptor = z.infer<typeof SlideDescriptorSchema>;
|
|
143
144
|
declare const SheetDescriptorSchema: z.ZodObject<{
|
|
145
|
+
name: z.ZodString;
|
|
144
146
|
source: z.ZodOptional<z.ZodObject<{
|
|
145
147
|
format: z.ZodEnum<{
|
|
146
148
|
docx: "docx";
|
|
@@ -188,7 +190,11 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
188
190
|
at: z.ZodString;
|
|
189
191
|
}, z.core.$strip>>;
|
|
190
192
|
}, z.core.$strip>>;
|
|
191
|
-
|
|
193
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
194
|
+
index: z.ZodNumber;
|
|
195
|
+
heightPt: z.ZodOptional<z.ZodNumber>;
|
|
196
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
197
|
+
}, z.core.$strip>>;
|
|
192
198
|
printSettings: z.ZodObject<{
|
|
193
199
|
pageSize: z.ZodObject<{
|
|
194
200
|
widthPt: z.ZodNumber;
|
|
@@ -552,8 +558,8 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
552
558
|
}, z.core.$strip>>;
|
|
553
559
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
554
560
|
left: "left";
|
|
555
|
-
right: "right";
|
|
556
561
|
center: "center";
|
|
562
|
+
right: "right";
|
|
557
563
|
justify: "justify";
|
|
558
564
|
}>>;
|
|
559
565
|
verticalAlignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -604,11 +610,6 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
604
610
|
widthPt: z.ZodOptional<z.ZodNumber>;
|
|
605
611
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
606
612
|
}, z.core.$strip>>;
|
|
607
|
-
rows: z.ZodArray<z.ZodObject<{
|
|
608
|
-
index: z.ZodNumber;
|
|
609
|
-
heightPt: z.ZodOptional<z.ZodNumber>;
|
|
610
|
-
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
611
|
-
}, z.core.$strip>>;
|
|
612
613
|
dataValidations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
613
614
|
ranges: z.ZodArray<z.ZodObject<{
|
|
614
615
|
startRow: z.ZodNumber;
|
|
@@ -1093,10 +1094,10 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
1093
1094
|
value: z.ZodObject<{
|
|
1094
1095
|
type: z.ZodEnum<{
|
|
1095
1096
|
formula: "formula";
|
|
1096
|
-
percent: "percent";
|
|
1097
1097
|
num: "num";
|
|
1098
|
-
max: "max";
|
|
1099
1098
|
min: "min";
|
|
1099
|
+
max: "max";
|
|
1100
|
+
percent: "percent";
|
|
1100
1101
|
percentile: "percentile";
|
|
1101
1102
|
}>;
|
|
1102
1103
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -1140,10 +1141,10 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
1140
1141
|
min: z.ZodObject<{
|
|
1141
1142
|
type: z.ZodEnum<{
|
|
1142
1143
|
formula: "formula";
|
|
1143
|
-
percent: "percent";
|
|
1144
1144
|
num: "num";
|
|
1145
|
-
max: "max";
|
|
1146
1145
|
min: "min";
|
|
1146
|
+
max: "max";
|
|
1147
|
+
percent: "percent";
|
|
1147
1148
|
percentile: "percentile";
|
|
1148
1149
|
}>;
|
|
1149
1150
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -1151,10 +1152,10 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
1151
1152
|
max: z.ZodObject<{
|
|
1152
1153
|
type: z.ZodEnum<{
|
|
1153
1154
|
formula: "formula";
|
|
1154
|
-
percent: "percent";
|
|
1155
1155
|
num: "num";
|
|
1156
|
-
max: "max";
|
|
1157
1156
|
min: "min";
|
|
1157
|
+
max: "max";
|
|
1158
|
+
percent: "percent";
|
|
1158
1159
|
percentile: "percentile";
|
|
1159
1160
|
}>;
|
|
1160
1161
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -1199,10 +1200,10 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
1199
1200
|
thresholds: z.ZodArray<z.ZodObject<{
|
|
1200
1201
|
type: z.ZodEnum<{
|
|
1201
1202
|
formula: "formula";
|
|
1202
|
-
percent: "percent";
|
|
1203
1203
|
num: "num";
|
|
1204
|
-
max: "max";
|
|
1205
1204
|
min: "min";
|
|
1205
|
+
max: "max";
|
|
1206
|
+
percent: "percent";
|
|
1206
1207
|
percentile: "percentile";
|
|
1207
1208
|
}>;
|
|
1208
1209
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -1298,7 +1299,7 @@ declare const DrawPageDescriptorSchema: z.ZodObject<{
|
|
|
1298
1299
|
}, z.core.$strict>;
|
|
1299
1300
|
type DrawPageDescriptor = z.infer<typeof DrawPageDescriptorSchema>;
|
|
1300
1301
|
declare const ShapeDescriptorSchema: z.ZodObject<{
|
|
1301
|
-
|
|
1302
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1302
1303
|
source: z.ZodOptional<z.ZodObject<{
|
|
1303
1304
|
format: z.ZodEnum<{
|
|
1304
1305
|
docx: "docx";
|
|
@@ -1319,6 +1320,22 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
|
|
|
1319
1320
|
}>;
|
|
1320
1321
|
xml: z.ZodString;
|
|
1321
1322
|
}, z.core.$strict>>;
|
|
1323
|
+
frame: z.ZodObject<{
|
|
1324
|
+
xPt: z.ZodNumber;
|
|
1325
|
+
yPt: z.ZodNumber;
|
|
1326
|
+
widthPt: z.ZodNumber;
|
|
1327
|
+
heightPt: z.ZodNumber;
|
|
1328
|
+
}, z.core.$strip>;
|
|
1329
|
+
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
1330
|
+
insetLeftPt: z.ZodNumber;
|
|
1331
|
+
insetTopPt: z.ZodNumber;
|
|
1332
|
+
insetRightPt: z.ZodNumber;
|
|
1333
|
+
insetBottomPt: z.ZodNumber;
|
|
1334
|
+
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
1335
|
+
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
1336
|
+
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
1337
|
+
readingOrder: z.ZodOptional<z.ZodNumber>;
|
|
1338
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1322
1339
|
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1323
1340
|
pageIndex: z.ZodNumber;
|
|
1324
1341
|
xPt: z.ZodNumber;
|
|
@@ -1353,22 +1370,6 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
|
|
|
1353
1370
|
at: z.ZodString;
|
|
1354
1371
|
}, z.core.$strip>>;
|
|
1355
1372
|
}, z.core.$strip>>;
|
|
1356
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1357
|
-
frame: z.ZodObject<{
|
|
1358
|
-
xPt: z.ZodNumber;
|
|
1359
|
-
yPt: z.ZodNumber;
|
|
1360
|
-
widthPt: z.ZodNumber;
|
|
1361
|
-
heightPt: z.ZodNumber;
|
|
1362
|
-
}, z.core.$strip>;
|
|
1363
|
-
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
1364
|
-
insetLeftPt: z.ZodNumber;
|
|
1365
|
-
insetTopPt: z.ZodNumber;
|
|
1366
|
-
insetRightPt: z.ZodNumber;
|
|
1367
|
-
insetBottomPt: z.ZodNumber;
|
|
1368
|
-
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
1369
|
-
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
1370
|
-
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
1371
|
-
readingOrder: z.ZodOptional<z.ZodNumber>;
|
|
1372
1373
|
}, z.core.$strict>;
|
|
1373
1374
|
type ShapeDescriptor = z.infer<typeof ShapeDescriptorSchema>;
|
|
1374
1375
|
declare const HeadingParagraphSchema: z.ZodObject<{
|
|
@@ -1551,10 +1552,10 @@ declare const HeadingParagraphSchema: z.ZodObject<{
|
|
|
1551
1552
|
}, z.core.$strict>, z.ZodObject<{
|
|
1552
1553
|
kind: z.ZodLiteral<"anchor">;
|
|
1553
1554
|
anchorType: z.ZodEnum<{
|
|
1555
|
+
comment: "comment";
|
|
1554
1556
|
bookmark: "bookmark";
|
|
1555
1557
|
footnote: "footnote";
|
|
1556
1558
|
endnote: "endnote";
|
|
1557
|
-
comment: "comment";
|
|
1558
1559
|
}>;
|
|
1559
1560
|
name: z.ZodString;
|
|
1560
1561
|
definition: z.ZodOptional<z.ZodString>;
|
|
@@ -1677,8 +1678,8 @@ declare const HeadingParagraphSchema: z.ZodObject<{
|
|
|
1677
1678
|
preformatted: z.ZodOptional<z.ZodBoolean>;
|
|
1678
1679
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
1679
1680
|
left: "left";
|
|
1680
|
-
right: "right";
|
|
1681
1681
|
center: "center";
|
|
1682
|
+
right: "right";
|
|
1682
1683
|
justify: "justify";
|
|
1683
1684
|
}>>;
|
|
1684
1685
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -1976,10 +1977,10 @@ declare const ListParagraphSchema: z.ZodObject<{
|
|
|
1976
1977
|
}, z.core.$strict>, z.ZodObject<{
|
|
1977
1978
|
kind: z.ZodLiteral<"anchor">;
|
|
1978
1979
|
anchorType: z.ZodEnum<{
|
|
1980
|
+
comment: "comment";
|
|
1979
1981
|
bookmark: "bookmark";
|
|
1980
1982
|
footnote: "footnote";
|
|
1981
1983
|
endnote: "endnote";
|
|
1982
|
-
comment: "comment";
|
|
1983
1984
|
}>;
|
|
1984
1985
|
name: z.ZodString;
|
|
1985
1986
|
definition: z.ZodOptional<z.ZodString>;
|
|
@@ -2103,8 +2104,8 @@ declare const ListParagraphSchema: z.ZodObject<{
|
|
|
2103
2104
|
headingLevel: z.ZodOptional<z.ZodNumber>;
|
|
2104
2105
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
2105
2106
|
left: "left";
|
|
2106
|
-
right: "right";
|
|
2107
2107
|
center: "center";
|
|
2108
|
+
right: "right";
|
|
2108
2109
|
justify: "justify";
|
|
2109
2110
|
}>>;
|
|
2110
2111
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
package/dist/package-node.cjs
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_construct = require("./construct.cjs");
|
|
3
|
+
const require_content_vocabulary = require("./content-vocabulary.cjs");
|
|
4
|
+
const require_content_sheet = require("./content-sheet.cjs");
|
|
5
|
+
const require_content_drawing = require("./content-drawing.cjs");
|
|
3
6
|
const require_content = require("./content.cjs");
|
|
4
7
|
let zod = require("zod");
|
|
5
8
|
//#region src/package-node.ts
|
|
6
9
|
const SectionDescriptorSchema = require_content.ContentSectionSchema.omit({ blocks: true }).extend({ kind: zod.z.literal("section") }).strict();
|
|
7
|
-
const SlideDescriptorSchema =
|
|
8
|
-
const SheetDescriptorSchema =
|
|
10
|
+
const SlideDescriptorSchema = require_content_drawing.ContentSlideSchema.omit({ shapes: true }).extend({ kind: zod.z.literal("slide") }).strict();
|
|
11
|
+
const SheetDescriptorSchema = require_content_sheet.ContentSheetSchema.omit({
|
|
9
12
|
images: true,
|
|
10
13
|
embeddedObjects: true
|
|
11
14
|
}).extend({ kind: zod.z.literal("sheet") }).strict();
|
|
12
|
-
const DrawPageDescriptorSchema =
|
|
15
|
+
const DrawPageDescriptorSchema = require_content_drawing.ContentDrawPageSchema.omit({
|
|
13
16
|
shapes: true,
|
|
14
17
|
vectors: true
|
|
15
18
|
}).extend({ kind: zod.z.literal("drawPage") }).strict();
|
|
16
|
-
const ShapeDescriptorSchema =
|
|
19
|
+
const ShapeDescriptorSchema = require_content_drawing.ContentShapeSchema.omit({ blocks: true }).strict();
|
|
17
20
|
const HeadingParagraphSchema = require_content.ContentParagraphSchema.extend({ headingLevel: zod.z.number().int().positive() });
|
|
18
21
|
const ListParagraphSchema = require_content.ContentParagraphSchema.extend({ list: require_content.ContentListMembershipSchema });
|
|
19
22
|
function isRecord(value) {
|
|
@@ -43,10 +46,10 @@ function isListChild(value) {
|
|
|
43
46
|
return isListGroupNode(value) || isShapeConstructGroupNode(value) || isLeafChild(TreeBlockLeafSchema, value);
|
|
44
47
|
}
|
|
45
48
|
function isSheetChild(value) {
|
|
46
|
-
return isLeafChild(
|
|
49
|
+
return isLeafChild(require_content_sheet.ContentSheetImageSchema, value) || isLeafChild(require_content_vocabulary.ContentEmbeddedObjectSchema, value);
|
|
47
50
|
}
|
|
48
51
|
function isDrawPageChild(value) {
|
|
49
|
-
return isShapeGroupNode(value) || isLeafChild(
|
|
52
|
+
return isShapeGroupNode(value) || isLeafChild(require_content_drawing.ContentVectorSchema, value);
|
|
50
53
|
}
|
|
51
54
|
function isSectionGroupNode(value) {
|
|
52
55
|
return isRecord(value) && SectionDescriptorSchema.safeParse(value.node).success && isGroupWrapper(value, isSectionChild);
|
|
@@ -77,9 +80,9 @@ function isShapeConstructGroupNode(value) {
|
|
|
77
80
|
}
|
|
78
81
|
const packageLeafUnion = zod.z.union([
|
|
79
82
|
TreeBlockLeafSchema,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
require_content_sheet.ContentSheetImageSchema,
|
|
84
|
+
require_content_vocabulary.ContentEmbeddedObjectSchema,
|
|
85
|
+
require_content_drawing.ContentVectorSchema,
|
|
83
86
|
require_content.ContentFormulaSchema
|
|
84
87
|
]);
|
|
85
88
|
function isTreeLeaf(value) {
|
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-BYL2owXg.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-vI3Q0nFf.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-node.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { ConstructDescriptorSchema } from "./construct.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ContentEmbeddedObjectSchema } from "./content-vocabulary.js";
|
|
3
|
+
import { ContentSheetImageSchema, ContentSheetSchema } from "./content-sheet.js";
|
|
4
|
+
import { ContentDrawPageSchema, ContentShapeSchema, ContentSlideSchema, ContentVectorSchema } from "./content-drawing.js";
|
|
5
|
+
import { ContentFormulaSchema, ContentListMembershipSchema, ContentParagraphSchema, ContentSectionSchema, isContentBlock, isContentConstructEnd, isContentConstructStart } from "./content.js";
|
|
3
6
|
import { z } from "zod";
|
|
4
7
|
//#region src/package-node.ts
|
|
5
8
|
const SectionDescriptorSchema = ContentSectionSchema.omit({ blocks: true }).extend({ kind: z.literal("section") }).strict();
|