document-schema 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-C9cYkjnd.d.cts → construct-GVdTKrE7.d.cts} +3 -3
- package/dist/{construct-C9cYkjnd.d.ts → construct-GVdTKrE7.d.ts} +3 -3
- package/dist/construct.d.cts +1 -1
- package/dist/construct.d.ts +1 -1
- package/dist/{content-Dg9cb8mF.d.cts → content-DQui8vwD.d.cts} +7925 -6159
- package/dist/{content-BMrK9SrW.d.ts → content-DaST7v0K.d.ts} +7925 -6159
- package/dist/content-drawing-DAC7_N1K.d.cts +1606 -0
- package/dist/content-drawing-DNxYhY-G.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 +13 -11
- package/dist/index.d.ts +13 -11
- 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-BScHxedi.d.cts → math-DdIQCljT.d.cts} +9 -9
- package/dist/{math-BScHxedi.d.ts → math-DdIQCljT.d.ts} +9 -9
- 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.d.cts +1 -1
- package/dist/math.d.ts +1 -1
- package/dist/math.js +7 -5
- package/dist/mathml.cjs +3 -1
- package/dist/mathml.js +3 -1
- package/dist/{package-node-gA3Kpgl2.d.ts → package-node-BMbep0jw.d.ts} +44 -43
- package/dist/{package-node-wxNXHAov.d.cts → package-node-DXhNJt15.d.cts} +44 -43
- 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 +12 -12
- package/dist/package.d.ts +12 -12
- 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
|
@@ -8,9 +8,9 @@ type ExactRational = z.infer<typeof ExactRationalSchema>;
|
|
|
8
8
|
declare const SI_BASE_DIMENSIONS: readonly ["length", "mass", "time", "electricCurrent", "thermodynamicTemperature", "amountOfSubstance", "luminousIntensity"];
|
|
9
9
|
type SiBaseDimension = (typeof SI_BASE_DIMENSIONS)[number];
|
|
10
10
|
declare const DimensionVectorSchema: z.ZodRecord<z.ZodEnum<{
|
|
11
|
+
time: "time";
|
|
11
12
|
length: "length";
|
|
12
13
|
mass: "mass";
|
|
13
|
-
time: "time";
|
|
14
14
|
electricCurrent: "electricCurrent";
|
|
15
15
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
16
16
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -22,9 +22,9 @@ declare const MathUnitSchema: z.ZodObject<{
|
|
|
22
22
|
symbol: z.ZodString;
|
|
23
23
|
name: z.ZodOptional<z.ZodString>;
|
|
24
24
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
25
|
+
time: "time";
|
|
25
26
|
length: "length";
|
|
26
27
|
mass: "mass";
|
|
27
|
-
time: "time";
|
|
28
28
|
electricCurrent: "electricCurrent";
|
|
29
29
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
30
30
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -75,9 +75,9 @@ declare const SymbolTableSchema: z.ZodObject<{
|
|
|
75
75
|
symbol: z.ZodString;
|
|
76
76
|
name: z.ZodOptional<z.ZodString>;
|
|
77
77
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
78
|
+
time: "time";
|
|
78
79
|
length: "length";
|
|
79
80
|
mass: "mass";
|
|
80
|
-
time: "time";
|
|
81
81
|
electricCurrent: "electricCurrent";
|
|
82
82
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
83
83
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -210,9 +210,9 @@ declare const QuantitySchema: z.ZodObject<{
|
|
|
210
210
|
kind: z.ZodLiteral<"quantity">;
|
|
211
211
|
magnitude: z.ZodNumber;
|
|
212
212
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
213
|
+
time: "time";
|
|
213
214
|
length: "length";
|
|
214
215
|
mass: "mass";
|
|
215
|
-
time: "time";
|
|
216
216
|
electricCurrent: "electricCurrent";
|
|
217
217
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
218
218
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -225,9 +225,9 @@ declare const IntervalSchema: z.ZodObject<{
|
|
|
225
225
|
min: z.ZodNumber;
|
|
226
226
|
max: z.ZodNumber;
|
|
227
227
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
228
|
+
time: "time";
|
|
228
229
|
length: "length";
|
|
229
230
|
mass: "mass";
|
|
230
|
-
time: "time";
|
|
231
231
|
electricCurrent: "electricCurrent";
|
|
232
232
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
233
233
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -239,9 +239,9 @@ declare const EvaluationValueSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
239
239
|
kind: z.ZodLiteral<"quantity">;
|
|
240
240
|
magnitude: z.ZodNumber;
|
|
241
241
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
242
|
+
time: "time";
|
|
242
243
|
length: "length";
|
|
243
244
|
mass: "mass";
|
|
244
|
-
time: "time";
|
|
245
245
|
electricCurrent: "electricCurrent";
|
|
246
246
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
247
247
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -252,9 +252,9 @@ declare const EvaluationValueSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
252
252
|
min: z.ZodNumber;
|
|
253
253
|
max: z.ZodNumber;
|
|
254
254
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
255
|
+
time: "time";
|
|
255
256
|
length: "length";
|
|
256
257
|
mass: "mass";
|
|
257
|
-
time: "time";
|
|
258
258
|
electricCurrent: "electricCurrent";
|
|
259
259
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
260
260
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -266,9 +266,9 @@ declare const FormulaBindingsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonl
|
|
|
266
266
|
kind: z.ZodLiteral<"quantity">;
|
|
267
267
|
magnitude: z.ZodNumber;
|
|
268
268
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
269
|
+
time: "time";
|
|
269
270
|
length: "length";
|
|
270
271
|
mass: "mass";
|
|
271
|
-
time: "time";
|
|
272
272
|
electricCurrent: "electricCurrent";
|
|
273
273
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
274
274
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -279,9 +279,9 @@ declare const FormulaBindingsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonl
|
|
|
279
279
|
min: z.ZodNumber;
|
|
280
280
|
max: z.ZodNumber;
|
|
281
281
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
282
|
+
time: "time";
|
|
282
283
|
length: "length";
|
|
283
284
|
mass: "mass";
|
|
284
|
-
time: "time";
|
|
285
285
|
electricCurrent: "electricCurrent";
|
|
286
286
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
287
287
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -8,9 +8,9 @@ type ExactRational = z.infer<typeof ExactRationalSchema>;
|
|
|
8
8
|
declare const SI_BASE_DIMENSIONS: readonly ["length", "mass", "time", "electricCurrent", "thermodynamicTemperature", "amountOfSubstance", "luminousIntensity"];
|
|
9
9
|
type SiBaseDimension = (typeof SI_BASE_DIMENSIONS)[number];
|
|
10
10
|
declare const DimensionVectorSchema: z.ZodRecord<z.ZodEnum<{
|
|
11
|
+
time: "time";
|
|
11
12
|
length: "length";
|
|
12
13
|
mass: "mass";
|
|
13
|
-
time: "time";
|
|
14
14
|
electricCurrent: "electricCurrent";
|
|
15
15
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
16
16
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -22,9 +22,9 @@ declare const MathUnitSchema: z.ZodObject<{
|
|
|
22
22
|
symbol: z.ZodString;
|
|
23
23
|
name: z.ZodOptional<z.ZodString>;
|
|
24
24
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
25
|
+
time: "time";
|
|
25
26
|
length: "length";
|
|
26
27
|
mass: "mass";
|
|
27
|
-
time: "time";
|
|
28
28
|
electricCurrent: "electricCurrent";
|
|
29
29
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
30
30
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -75,9 +75,9 @@ declare const SymbolTableSchema: z.ZodObject<{
|
|
|
75
75
|
symbol: z.ZodString;
|
|
76
76
|
name: z.ZodOptional<z.ZodString>;
|
|
77
77
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
78
|
+
time: "time";
|
|
78
79
|
length: "length";
|
|
79
80
|
mass: "mass";
|
|
80
|
-
time: "time";
|
|
81
81
|
electricCurrent: "electricCurrent";
|
|
82
82
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
83
83
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -210,9 +210,9 @@ declare const QuantitySchema: z.ZodObject<{
|
|
|
210
210
|
kind: z.ZodLiteral<"quantity">;
|
|
211
211
|
magnitude: z.ZodNumber;
|
|
212
212
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
213
|
+
time: "time";
|
|
213
214
|
length: "length";
|
|
214
215
|
mass: "mass";
|
|
215
|
-
time: "time";
|
|
216
216
|
electricCurrent: "electricCurrent";
|
|
217
217
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
218
218
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -225,9 +225,9 @@ declare const IntervalSchema: z.ZodObject<{
|
|
|
225
225
|
min: z.ZodNumber;
|
|
226
226
|
max: z.ZodNumber;
|
|
227
227
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
228
|
+
time: "time";
|
|
228
229
|
length: "length";
|
|
229
230
|
mass: "mass";
|
|
230
|
-
time: "time";
|
|
231
231
|
electricCurrent: "electricCurrent";
|
|
232
232
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
233
233
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -239,9 +239,9 @@ declare const EvaluationValueSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
239
239
|
kind: z.ZodLiteral<"quantity">;
|
|
240
240
|
magnitude: z.ZodNumber;
|
|
241
241
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
242
|
+
time: "time";
|
|
242
243
|
length: "length";
|
|
243
244
|
mass: "mass";
|
|
244
|
-
time: "time";
|
|
245
245
|
electricCurrent: "electricCurrent";
|
|
246
246
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
247
247
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -252,9 +252,9 @@ declare const EvaluationValueSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
252
252
|
min: z.ZodNumber;
|
|
253
253
|
max: z.ZodNumber;
|
|
254
254
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
255
|
+
time: "time";
|
|
255
256
|
length: "length";
|
|
256
257
|
mass: "mass";
|
|
257
|
-
time: "time";
|
|
258
258
|
electricCurrent: "electricCurrent";
|
|
259
259
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
260
260
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -266,9 +266,9 @@ declare const FormulaBindingsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonl
|
|
|
266
266
|
kind: z.ZodLiteral<"quantity">;
|
|
267
267
|
magnitude: z.ZodNumber;
|
|
268
268
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
269
|
+
time: "time";
|
|
269
270
|
length: "length";
|
|
270
271
|
mass: "mass";
|
|
271
|
-
time: "time";
|
|
272
272
|
electricCurrent: "electricCurrent";
|
|
273
273
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
274
274
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -279,9 +279,9 @@ declare const FormulaBindingsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonl
|
|
|
279
279
|
min: z.ZodNumber;
|
|
280
280
|
max: z.ZodNumber;
|
|
281
281
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
282
|
+
time: "time";
|
|
282
283
|
length: "length";
|
|
283
284
|
mass: "mass";
|
|
284
|
-
time: "time";
|
|
285
285
|
electricCurrent: "electricCurrent";
|
|
286
286
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
287
287
|
amountOfSubstance: "amountOfSubstance";
|
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.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as MathSumSchema, B as MathUnparsedSchema, C as MathProd, D as MathQty, E as MathProvenanceSchema, F as MathUncertainty, G as SymbolTable, H as QuantitySchema, I as MathUncertaintySchema, K as SymbolTableSchema, L as MathUnit, M as MathSymSchema, N as MathSymbolEntry, O as MathQtySchema, P as MathSymbolEntrySchema, R as MathUnitSchema, S as MathPresentationSchema, T as MathProvenance, U as SI_BASE_DIMENSIONS, V as Quantity, W as SiBaseDimension, _ as MathNormalisationContext, a as ExactRational, b as MathNumSchema, c as FormulaBindingsSchema, d as MathApp, f as MathAppSchema, g as MathMatrixSchema, h as MathMatrix, i as EvaluationValueSchema, j as MathSym, k as MathSum, l as Interval, m as MathExpressionSchema, n as DimensionVectorSchema, o as ExactRationalSchema, p as MathExpression, q as isMathExpression, r as EvaluationValue, s as FormulaBindings, t as DimensionVector, u as IntervalSchema, v as MathNormalisationContextSchema, w as MathProdSchema, x as MathPresentation, y as MathNum, z as MathUnparsed } from "./math-
|
|
1
|
+
import { A as MathSumSchema, B as MathUnparsedSchema, C as MathProd, D as MathQty, E as MathProvenanceSchema, F as MathUncertainty, G as SymbolTable, H as QuantitySchema, I as MathUncertaintySchema, K as SymbolTableSchema, L as MathUnit, M as MathSymSchema, N as MathSymbolEntry, O as MathQtySchema, P as MathSymbolEntrySchema, R as MathUnitSchema, S as MathPresentationSchema, T as MathProvenance, U as SI_BASE_DIMENSIONS, V as Quantity, W as SiBaseDimension, _ as MathNormalisationContext, a as ExactRational, b as MathNumSchema, c as FormulaBindingsSchema, d as MathApp, f as MathAppSchema, g as MathMatrixSchema, h as MathMatrix, i as EvaluationValueSchema, j as MathSym, k as MathSum, l as Interval, m as MathExpressionSchema, n as DimensionVectorSchema, o as ExactRationalSchema, p as MathExpression, q as isMathExpression, r as EvaluationValue, s as FormulaBindings, t as DimensionVector, u as IntervalSchema, v as MathNormalisationContextSchema, w as MathProdSchema, x as MathPresentation, y as MathNum, z as MathUnparsed } from "./math-DdIQCljT.cjs";
|
|
2
2
|
export { DimensionVector, DimensionVectorSchema, EvaluationValue, EvaluationValueSchema, ExactRational, ExactRationalSchema, FormulaBindings, FormulaBindingsSchema, Interval, IntervalSchema, MathApp, MathAppSchema, MathExpression, MathExpressionSchema, MathMatrix, MathMatrixSchema, MathNormalisationContext, MathNormalisationContextSchema, MathNum, MathNumSchema, MathPresentation, MathPresentationSchema, MathProd, MathProdSchema, MathProvenance, MathProvenanceSchema, MathQty, MathQtySchema, MathSum, MathSumSchema, MathSym, MathSymSchema, MathSymbolEntry, MathSymbolEntrySchema, MathUncertainty, MathUncertaintySchema, MathUnit, MathUnitSchema, MathUnparsed, MathUnparsedSchema, Quantity, QuantitySchema, SI_BASE_DIMENSIONS, SiBaseDimension, SymbolTable, SymbolTableSchema, isMathExpression };
|
package/dist/math.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as MathSumSchema, B as MathUnparsedSchema, C as MathProd, D as MathQty, E as MathProvenanceSchema, F as MathUncertainty, G as SymbolTable, H as QuantitySchema, I as MathUncertaintySchema, K as SymbolTableSchema, L as MathUnit, M as MathSymSchema, N as MathSymbolEntry, O as MathQtySchema, P as MathSymbolEntrySchema, R as MathUnitSchema, S as MathPresentationSchema, T as MathProvenance, U as SI_BASE_DIMENSIONS, V as Quantity, W as SiBaseDimension, _ as MathNormalisationContext, a as ExactRational, b as MathNumSchema, c as FormulaBindingsSchema, d as MathApp, f as MathAppSchema, g as MathMatrixSchema, h as MathMatrix, i as EvaluationValueSchema, j as MathSym, k as MathSum, l as Interval, m as MathExpressionSchema, n as DimensionVectorSchema, o as ExactRationalSchema, p as MathExpression, q as isMathExpression, r as EvaluationValue, s as FormulaBindings, t as DimensionVector, u as IntervalSchema, v as MathNormalisationContextSchema, w as MathProdSchema, x as MathPresentation, y as MathNum, z as MathUnparsed } from "./math-
|
|
1
|
+
import { A as MathSumSchema, B as MathUnparsedSchema, C as MathProd, D as MathQty, E as MathProvenanceSchema, F as MathUncertainty, G as SymbolTable, H as QuantitySchema, I as MathUncertaintySchema, K as SymbolTableSchema, L as MathUnit, M as MathSymSchema, N as MathSymbolEntry, O as MathQtySchema, P as MathSymbolEntrySchema, R as MathUnitSchema, S as MathPresentationSchema, T as MathProvenance, U as SI_BASE_DIMENSIONS, V as Quantity, W as SiBaseDimension, _ as MathNormalisationContext, a as ExactRational, b as MathNumSchema, c as FormulaBindingsSchema, d as MathApp, f as MathAppSchema, g as MathMatrixSchema, h as MathMatrix, i as EvaluationValueSchema, j as MathSym, k as MathSum, l as Interval, m as MathExpressionSchema, n as DimensionVectorSchema, o as ExactRationalSchema, p as MathExpression, q as isMathExpression, r as EvaluationValue, s as FormulaBindings, t as DimensionVector, u as IntervalSchema, v as MathNormalisationContextSchema, w as MathProdSchema, x as MathPresentation, y as MathNum, z as MathUnparsed } from "./math-DdIQCljT.js";
|
|
2
2
|
export { DimensionVector, DimensionVectorSchema, EvaluationValue, EvaluationValueSchema, ExactRational, ExactRationalSchema, FormulaBindings, FormulaBindingsSchema, Interval, IntervalSchema, MathApp, MathAppSchema, MathExpression, MathExpressionSchema, MathMatrix, MathMatrixSchema, MathNormalisationContext, MathNormalisationContextSchema, MathNum, MathNumSchema, MathPresentation, MathPresentationSchema, MathProd, MathProdSchema, MathProvenance, MathProvenanceSchema, MathQty, MathQtySchema, MathSum, MathSumSchema, MathSym, MathSymSchema, MathSymbolEntry, MathSymbolEntrySchema, MathUncertainty, MathUncertaintySchema, MathUnit, MathUnitSchema, MathUnparsed, MathUnparsedSchema, Quantity, QuantitySchema, SI_BASE_DIMENSIONS, SiBaseDimension, SymbolTable, SymbolTableSchema, isMathExpression };
|
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-DaST7v0K.js";
|
|
2
|
+
import { k as ContentVector } from "./content-drawing-DNxYhY-G.js";
|
|
3
|
+
import { a as ConstructDescriptor } from "./construct-GVdTKrE7.js";
|
|
3
4
|
import { z } from "zod";
|
|
4
5
|
//#region src/package-node.d.ts
|
|
5
6
|
declare const SectionDescriptorSchema: z.ZodObject<{
|
|
@@ -60,17 +61,17 @@ declare const SectionDescriptorSchema: z.ZodObject<{
|
|
|
60
61
|
bottomPt: z.ZodNumber;
|
|
61
62
|
leftPt: z.ZodNumber;
|
|
62
63
|
}, z.core.$strip>;
|
|
64
|
+
headers: z.ZodOptional<z.ZodObject<{
|
|
65
|
+
default: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
66
|
+
even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
67
|
+
first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
68
|
+
}, z.core.$strip>>;
|
|
63
69
|
breakType: z.ZodOptional<z.ZodEnum<{
|
|
64
70
|
nextPage: "nextPage";
|
|
65
71
|
continuous: "continuous";
|
|
66
72
|
evenPage: "evenPage";
|
|
67
73
|
oddPage: "oddPage";
|
|
68
74
|
}>>;
|
|
69
|
-
headers: z.ZodOptional<z.ZodObject<{
|
|
70
|
-
default: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
71
|
-
even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
72
|
-
first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
73
|
-
}, z.core.$strip>>;
|
|
74
75
|
footers: z.ZodOptional<z.ZodObject<{
|
|
75
76
|
default: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
76
77
|
even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
@@ -189,6 +190,16 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
189
190
|
at: z.ZodString;
|
|
190
191
|
}, z.core.$strip>>;
|
|
191
192
|
}, z.core.$strip>>;
|
|
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>>;
|
|
198
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
199
|
+
index: z.ZodNumber;
|
|
200
|
+
widthPt: z.ZodOptional<z.ZodNumber>;
|
|
201
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
202
|
+
}, z.core.$strip>>;
|
|
192
203
|
printSettings: z.ZodObject<{
|
|
193
204
|
pageSize: z.ZodObject<{
|
|
194
205
|
widthPt: z.ZodNumber;
|
|
@@ -552,8 +563,8 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
552
563
|
}, z.core.$strip>>;
|
|
553
564
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
554
565
|
left: "left";
|
|
555
|
-
right: "right";
|
|
556
566
|
center: "center";
|
|
567
|
+
right: "right";
|
|
557
568
|
justify: "justify";
|
|
558
569
|
}>>;
|
|
559
570
|
verticalAlignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -599,16 +610,6 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
599
610
|
heightPt: z.ZodNumber;
|
|
600
611
|
}, z.core.$strip>>>;
|
|
601
612
|
}, z.core.$strip>>;
|
|
602
|
-
columns: z.ZodArray<z.ZodObject<{
|
|
603
|
-
index: z.ZodNumber;
|
|
604
|
-
widthPt: z.ZodOptional<z.ZodNumber>;
|
|
605
|
-
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
606
|
-
}, 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;
|
|
@@ -617,10 +618,10 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
617
618
|
endColumn: z.ZodNumber;
|
|
618
619
|
}, z.core.$strip>>;
|
|
619
620
|
type: z.ZodEnum<{
|
|
620
|
-
date: "date";
|
|
621
|
-
custom: "custom";
|
|
622
621
|
decimal: "decimal";
|
|
623
622
|
list: "list";
|
|
623
|
+
date: "date";
|
|
624
|
+
custom: "custom";
|
|
624
625
|
time: "time";
|
|
625
626
|
whole: "whole";
|
|
626
627
|
textLength: "textLength";
|
|
@@ -1093,8 +1094,8 @@ 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
|
+
percent: "percent";
|
|
1098
1099
|
max: "max";
|
|
1099
1100
|
min: "min";
|
|
1100
1101
|
percentile: "percentile";
|
|
@@ -1140,8 +1141,8 @@ 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
|
+
percent: "percent";
|
|
1145
1146
|
max: "max";
|
|
1146
1147
|
min: "min";
|
|
1147
1148
|
percentile: "percentile";
|
|
@@ -1151,8 +1152,8 @@ 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
|
+
percent: "percent";
|
|
1156
1157
|
max: "max";
|
|
1157
1158
|
min: "min";
|
|
1158
1159
|
percentile: "percentile";
|
|
@@ -1199,8 +1200,8 @@ 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
|
+
percent: "percent";
|
|
1204
1205
|
max: "max";
|
|
1205
1206
|
min: "min";
|
|
1206
1207
|
percentile: "percentile";
|
|
@@ -1319,6 +1320,21 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
|
|
|
1319
1320
|
xml: z.ZodString;
|
|
1320
1321
|
}, z.core.$strict>>;
|
|
1321
1322
|
name: z.ZodOptional<z.ZodString>;
|
|
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>;
|
|
1322
1338
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1323
1339
|
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1324
1340
|
pageIndex: z.ZodNumber;
|
|
@@ -1354,21 +1370,6 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
|
|
|
1354
1370
|
at: z.ZodString;
|
|
1355
1371
|
}, z.core.$strip>>;
|
|
1356
1372
|
}, z.core.$strip>>;
|
|
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<{
|
|
@@ -1482,12 +1483,12 @@ declare const HeadingParagraphSchema: z.ZodObject<{
|
|
|
1482
1483
|
descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1483
1484
|
kind: z.ZodLiteral<"contentControl">;
|
|
1484
1485
|
controlType: z.ZodEnum<{
|
|
1486
|
+
date: "date";
|
|
1485
1487
|
richText: "richText";
|
|
1486
1488
|
plainText: "plainText";
|
|
1487
1489
|
checkbox: "checkbox";
|
|
1488
1490
|
dropDown: "dropDown";
|
|
1489
1491
|
comboBox: "comboBox";
|
|
1490
|
-
date: "date";
|
|
1491
1492
|
picture: "picture";
|
|
1492
1493
|
repeatingSection: "repeatingSection";
|
|
1493
1494
|
button: "button";
|
|
@@ -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<{
|
|
@@ -1907,12 +1908,12 @@ declare const ListParagraphSchema: z.ZodObject<{
|
|
|
1907
1908
|
descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1908
1909
|
kind: z.ZodLiteral<"contentControl">;
|
|
1909
1910
|
controlType: z.ZodEnum<{
|
|
1911
|
+
date: "date";
|
|
1910
1912
|
richText: "richText";
|
|
1911
1913
|
plainText: "plainText";
|
|
1912
1914
|
checkbox: "checkbox";
|
|
1913
1915
|
dropDown: "dropDown";
|
|
1914
1916
|
comboBox: "comboBox";
|
|
1915
|
-
date: "date";
|
|
1916
1917
|
picture: "picture";
|
|
1917
1918
|
repeatingSection: "repeatingSection";
|
|
1918
1919
|
button: "button";
|
|
@@ -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>;
|