document-schema.js 3.2.0 → 3.3.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/content-json-schema-defs.cjs +1 -1
- package/dist/content-json-schema-defs.js +1 -1
- package/dist/content.cjs +1 -1
- package/dist/content.d.cts +8 -8
- package/dist/content.d.ts +8 -8
- package/dist/content.js +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/layout.d.cts +8 -8
- package/dist/layout.d.ts +8 -8
- 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.d.cts +6 -6
- package/dist/package.d.ts +6 -6
- package/dist/schema-io.cjs +1 -1
- package/dist/schema-io.js +1 -1
- 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 +3 -4
- package/schemas/document-package.schema.json +2 -2
- package/schemas/layout-document.schema.json +1 -1
package/dist/content.cjs
CHANGED
|
@@ -21,7 +21,7 @@ const ContentRunSchema = zod.z.object({
|
|
|
21
21
|
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional()
|
|
22
22
|
});
|
|
23
23
|
const ContentListMembershipSchema = zod.z.object({
|
|
24
|
-
numId: zod.z.string(),
|
|
24
|
+
numId: zod.z.string().optional(),
|
|
25
25
|
level: zod.z.number().int().nonnegative()
|
|
26
26
|
});
|
|
27
27
|
const ContentParagraphSchema = zod.z.object({
|
package/dist/content.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as MathMlNode } from "./mathml-B1oTCtzc.cjs";
|
|
2
|
-
import { s as MathExpression } from "./math-
|
|
2
|
+
import { s as MathExpression } from "./math-BlG8Tjk-.cjs";
|
|
3
3
|
import { n as Color } from "./color-AELCDH_b.cjs";
|
|
4
4
|
import { r as LayoutFrame, t as Box } from "./geometry-CvcjSwnA.cjs";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -32,7 +32,7 @@ declare const ContentRunSchema: z.ZodObject<{
|
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
type ContentRun = z.infer<typeof ContentRunSchema>;
|
|
34
34
|
declare const ContentListMembershipSchema: z.ZodObject<{
|
|
35
|
-
numId: z.ZodString
|
|
35
|
+
numId: z.ZodOptional<z.ZodString>;
|
|
36
36
|
level: z.ZodNumber;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
type ContentListMembership = z.infer<typeof ContentListMembershipSchema>;
|
|
@@ -70,7 +70,7 @@ declare const ContentParagraphSchema: z.ZodObject<{
|
|
|
70
70
|
justify: "justify";
|
|
71
71
|
}>>;
|
|
72
72
|
list: z.ZodOptional<z.ZodObject<{
|
|
73
|
-
numId: z.ZodString
|
|
73
|
+
numId: z.ZodOptional<z.ZodString>;
|
|
74
74
|
level: z.ZodNumber;
|
|
75
75
|
}, z.core.$strip>>;
|
|
76
76
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1594,9 +1594,9 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1594
1594
|
symbol: z.ZodString;
|
|
1595
1595
|
name: z.ZodOptional<z.ZodString>;
|
|
1596
1596
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
1597
|
-
time: "time";
|
|
1598
1597
|
length: "length";
|
|
1599
1598
|
mass: "mass";
|
|
1599
|
+
time: "time";
|
|
1600
1600
|
electricCurrent: "electricCurrent";
|
|
1601
1601
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
1602
1602
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -1683,9 +1683,9 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1683
1683
|
symbol: z.ZodString;
|
|
1684
1684
|
name: z.ZodOptional<z.ZodString>;
|
|
1685
1685
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
1686
|
-
time: "time";
|
|
1687
1686
|
length: "length";
|
|
1688
1687
|
mass: "mass";
|
|
1688
|
+
time: "time";
|
|
1689
1689
|
electricCurrent: "electricCurrent";
|
|
1690
1690
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
1691
1691
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -1973,9 +1973,9 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1973
1973
|
symbol: z.ZodString;
|
|
1974
1974
|
name: z.ZodOptional<z.ZodString>;
|
|
1975
1975
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
1976
|
-
time: "time";
|
|
1977
1976
|
length: "length";
|
|
1978
1977
|
mass: "mass";
|
|
1978
|
+
time: "time";
|
|
1979
1979
|
electricCurrent: "electricCurrent";
|
|
1980
1980
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
1981
1981
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -2238,9 +2238,9 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2238
2238
|
symbol: z.ZodString;
|
|
2239
2239
|
name: z.ZodOptional<z.ZodString>;
|
|
2240
2240
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
2241
|
-
time: "time";
|
|
2242
2241
|
length: "length";
|
|
2243
2242
|
mass: "mass";
|
|
2243
|
+
time: "time";
|
|
2244
2244
|
electricCurrent: "electricCurrent";
|
|
2245
2245
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
2246
2246
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -2307,9 +2307,9 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2307
2307
|
symbol: z.ZodString;
|
|
2308
2308
|
name: z.ZodOptional<z.ZodString>;
|
|
2309
2309
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
2310
|
-
time: "time";
|
|
2311
2310
|
length: "length";
|
|
2312
2311
|
mass: "mass";
|
|
2312
|
+
time: "time";
|
|
2313
2313
|
electricCurrent: "electricCurrent";
|
|
2314
2314
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
2315
2315
|
amountOfSubstance: "amountOfSubstance";
|
package/dist/content.d.ts
CHANGED
|
@@ -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";
|
|
@@ -32,7 +32,7 @@ declare const ContentRunSchema: z.ZodObject<{
|
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
type ContentRun = z.infer<typeof ContentRunSchema>;
|
|
34
34
|
declare const ContentListMembershipSchema: z.ZodObject<{
|
|
35
|
-
numId: z.ZodString
|
|
35
|
+
numId: z.ZodOptional<z.ZodString>;
|
|
36
36
|
level: z.ZodNumber;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
type ContentListMembership = z.infer<typeof ContentListMembershipSchema>;
|
|
@@ -70,7 +70,7 @@ declare const ContentParagraphSchema: z.ZodObject<{
|
|
|
70
70
|
justify: "justify";
|
|
71
71
|
}>>;
|
|
72
72
|
list: z.ZodOptional<z.ZodObject<{
|
|
73
|
-
numId: z.ZodString
|
|
73
|
+
numId: z.ZodOptional<z.ZodString>;
|
|
74
74
|
level: z.ZodNumber;
|
|
75
75
|
}, z.core.$strip>>;
|
|
76
76
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1594,9 +1594,9 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1594
1594
|
symbol: z.ZodString;
|
|
1595
1595
|
name: z.ZodOptional<z.ZodString>;
|
|
1596
1596
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
1597
|
-
time: "time";
|
|
1598
1597
|
length: "length";
|
|
1599
1598
|
mass: "mass";
|
|
1599
|
+
time: "time";
|
|
1600
1600
|
electricCurrent: "electricCurrent";
|
|
1601
1601
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
1602
1602
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -1683,9 +1683,9 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1683
1683
|
symbol: z.ZodString;
|
|
1684
1684
|
name: z.ZodOptional<z.ZodString>;
|
|
1685
1685
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
1686
|
-
time: "time";
|
|
1687
1686
|
length: "length";
|
|
1688
1687
|
mass: "mass";
|
|
1688
|
+
time: "time";
|
|
1689
1689
|
electricCurrent: "electricCurrent";
|
|
1690
1690
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
1691
1691
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -1973,9 +1973,9 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1973
1973
|
symbol: z.ZodString;
|
|
1974
1974
|
name: z.ZodOptional<z.ZodString>;
|
|
1975
1975
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
1976
|
-
time: "time";
|
|
1977
1976
|
length: "length";
|
|
1978
1977
|
mass: "mass";
|
|
1978
|
+
time: "time";
|
|
1979
1979
|
electricCurrent: "electricCurrent";
|
|
1980
1980
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
1981
1981
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -2238,9 +2238,9 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2238
2238
|
symbol: z.ZodString;
|
|
2239
2239
|
name: z.ZodOptional<z.ZodString>;
|
|
2240
2240
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
2241
|
-
time: "time";
|
|
2242
2241
|
length: "length";
|
|
2243
2242
|
mass: "mass";
|
|
2243
|
+
time: "time";
|
|
2244
2244
|
electricCurrent: "electricCurrent";
|
|
2245
2245
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
2246
2246
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -2307,9 +2307,9 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2307
2307
|
symbol: z.ZodString;
|
|
2308
2308
|
name: z.ZodOptional<z.ZodString>;
|
|
2309
2309
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
2310
|
-
time: "time";
|
|
2311
2310
|
length: "length";
|
|
2312
2311
|
mass: "mass";
|
|
2312
|
+
time: "time";
|
|
2313
2313
|
electricCurrent: "electricCurrent";
|
|
2314
2314
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
2315
2315
|
amountOfSubstance: "amountOfSubstance";
|
package/dist/content.js
CHANGED
|
@@ -20,7 +20,7 @@ const ContentRunSchema = z.object({
|
|
|
20
20
|
frames: z.array(LayoutFrameSchema).optional()
|
|
21
21
|
});
|
|
22
22
|
const ContentListMembershipSchema = z.object({
|
|
23
|
-
numId: z.string(),
|
|
23
|
+
numId: z.string().optional(),
|
|
24
24
|
level: z.number().int().nonnegative()
|
|
25
25
|
});
|
|
26
26
|
const ContentParagraphSchema = z.object({
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CellPosition, CellRange, cellReference, columnIndexToLetters, columnLettersToIndex, parseCellReference, parseRangeReference, rangeReference } from "./a1.cjs";
|
|
2
2
|
import { _ as isMathMlNode, a as MathMlComment, c as MathMlDeclarationSchema, d as MathMlNode, f as MathMlNodeSchema, g as MathMlTextSchema, h as MathMlText, i as MathMlCdataSchema, l as MathMlElement, m as MathMlPiSchema, n as MathMlAttributeSchema, o as MathMlCommentSchema, p as MathMlPi, r as MathMlCdata, s as MathMlDeclaration, t as MathMlAttribute, u as MathMlElementSchema } from "./mathml-B1oTCtzc.cjs";
|
|
3
|
-
import { A as MathUncertaintySchema, C as MathSum, D as MathSymbolEntry, E as MathSymSchema, F as SI_BASE_DIMENSIONS, I as SiBaseDimension, L as SymbolTable, M as MathUnitSchema, N as MathUnparsed, O as MathSymbolEntrySchema, P as MathUnparsedSchema, R as SymbolTableSchema, S as MathQtySchema, T as MathSym, _ as MathProd, a as MathApp, b as MathProvenanceSchema, c as MathExpressionSchema, d as MathNormalisationContext, f as MathNormalisationContextSchema, g as MathPresentationSchema, h as MathPresentation, i as ExactRationalSchema, j as MathUnit, k as MathUncertainty, l as MathMatrix, m as MathNumSchema, n as DimensionVectorSchema, o as MathAppSchema, p as MathNum, r as ExactRational, s as MathExpression, t as DimensionVector, u as MathMatrixSchema, v as MathProdSchema, w as MathSumSchema, x as MathQty, y as MathProvenance, z as isMathExpression } from "./math-
|
|
3
|
+
import { A as MathUncertaintySchema, C as MathSum, D as MathSymbolEntry, E as MathSymSchema, F as SI_BASE_DIMENSIONS, I as SiBaseDimension, L as SymbolTable, M as MathUnitSchema, N as MathUnparsed, O as MathSymbolEntrySchema, P as MathUnparsedSchema, R as SymbolTableSchema, S as MathQtySchema, T as MathSym, _ as MathProd, a as MathApp, b as MathProvenanceSchema, c as MathExpressionSchema, d as MathNormalisationContext, f as MathNormalisationContextSchema, g as MathPresentationSchema, h as MathPresentation, i as ExactRationalSchema, j as MathUnit, k as MathUncertainty, l as MathMatrix, m as MathNumSchema, n as DimensionVectorSchema, o as MathAppSchema, p as MathNum, r as ExactRational, s as MathExpression, t as DimensionVector, u as MathMatrixSchema, v as MathProdSchema, w as MathSumSchema, x as MathQty, y as MathProvenance, z as isMathExpression } from "./math-BlG8Tjk-.cjs";
|
|
4
4
|
import { a as rgbHexToColor, i as colorToRgbHex, n as Color, r as ColorSchema, t as COLOR_BLACK } from "./color-AELCDH_b.cjs";
|
|
5
5
|
import { a as Margins, c as PAGE_SIZE_LETTER, d as Point, f as SLIDE_SIZE_STANDARD, i as LayoutFrameSchema, l as PageSize, n as BoxSchema, o as MarginsSchema, p as SLIDE_SIZE_WIDESCREEN, r as LayoutFrame, s as PAGE_SIZE_A4, t as Box, u as PageSizeSchema } from "./geometry-CvcjSwnA.cjs";
|
|
6
6
|
import { CONTENT_FORMAT_VERSION, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFormula, ContentFormulaSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, clampHeadingLevel, isContentBlock } from "./content.cjs";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CellPosition, CellRange, cellReference, columnIndexToLetters, columnLettersToIndex, parseCellReference, parseRangeReference, rangeReference } from "./a1.js";
|
|
2
2
|
import { _ as isMathMlNode, a as MathMlComment, c as MathMlDeclarationSchema, d as MathMlNode, f as MathMlNodeSchema, g as MathMlTextSchema, h as MathMlText, i as MathMlCdataSchema, l as MathMlElement, m as MathMlPiSchema, n as MathMlAttributeSchema, o as MathMlCommentSchema, p as MathMlPi, r as MathMlCdata, s as MathMlDeclaration, t as MathMlAttribute, u as MathMlElementSchema } from "./mathml-B1oTCtzc.js";
|
|
3
|
-
import { A as MathUncertaintySchema, C as MathSum, D as MathSymbolEntry, E as MathSymSchema, F as SI_BASE_DIMENSIONS, I as SiBaseDimension, L as SymbolTable, M as MathUnitSchema, N as MathUnparsed, O as MathSymbolEntrySchema, P as MathUnparsedSchema, R as SymbolTableSchema, S as MathQtySchema, T as MathSym, _ as MathProd, a as MathApp, b as MathProvenanceSchema, c as MathExpressionSchema, d as MathNormalisationContext, f as MathNormalisationContextSchema, g as MathPresentationSchema, h as MathPresentation, i as ExactRationalSchema, j as MathUnit, k as MathUncertainty, l as MathMatrix, m as MathNumSchema, n as DimensionVectorSchema, o as MathAppSchema, p as MathNum, r as ExactRational, s as MathExpression, t as DimensionVector, u as MathMatrixSchema, v as MathProdSchema, w as MathSumSchema, x as MathQty, y as MathProvenance, z as isMathExpression } from "./math-
|
|
3
|
+
import { A as MathUncertaintySchema, C as MathSum, D as MathSymbolEntry, E as MathSymSchema, F as SI_BASE_DIMENSIONS, I as SiBaseDimension, L as SymbolTable, M as MathUnitSchema, N as MathUnparsed, O as MathSymbolEntrySchema, P as MathUnparsedSchema, R as SymbolTableSchema, S as MathQtySchema, T as MathSym, _ as MathProd, a as MathApp, b as MathProvenanceSchema, c as MathExpressionSchema, d as MathNormalisationContext, f as MathNormalisationContextSchema, g as MathPresentationSchema, h as MathPresentation, i as ExactRationalSchema, j as MathUnit, k as MathUncertainty, l as MathMatrix, m as MathNumSchema, n as DimensionVectorSchema, o as MathAppSchema, p as MathNum, r as ExactRational, s as MathExpression, t as DimensionVector, u as MathMatrixSchema, v as MathProdSchema, w as MathSumSchema, x as MathQty, y as MathProvenance, z as isMathExpression } from "./math-BlG8Tjk-.js";
|
|
4
4
|
import { a as rgbHexToColor, i as colorToRgbHex, n as Color, r as ColorSchema, t as COLOR_BLACK } from "./color-AELCDH_b.js";
|
|
5
5
|
import { a as Margins, c as PAGE_SIZE_LETTER, d as Point, f as SLIDE_SIZE_STANDARD, i as LayoutFrameSchema, l as PageSize, n as BoxSchema, o as MarginsSchema, p as SLIDE_SIZE_WIDESCREEN, r as LayoutFrame, s as PAGE_SIZE_A4, t as Box, u as PageSizeSchema } from "./geometry-CvcjSwnA.js";
|
|
6
6
|
import { CONTENT_FORMAT_VERSION, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFormula, ContentFormulaSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, clampHeadingLevel, isContentBlock } from "./content.js";
|
package/dist/layout.d.cts
CHANGED
|
@@ -9,12 +9,12 @@ declare const LayoutTextSchema: z.ZodObject<{
|
|
|
9
9
|
font: z.ZodObject<{
|
|
10
10
|
family: z.ZodString;
|
|
11
11
|
weight: z.ZodEnum<{
|
|
12
|
-
bold: "bold";
|
|
13
12
|
normal: "normal";
|
|
13
|
+
bold: "bold";
|
|
14
14
|
}>;
|
|
15
15
|
style: z.ZodEnum<{
|
|
16
|
-
italic: "italic";
|
|
17
16
|
normal: "normal";
|
|
17
|
+
italic: "italic";
|
|
18
18
|
}>;
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
sizePt: z.ZodNumber;
|
|
@@ -202,12 +202,12 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
202
202
|
font: z.ZodObject<{
|
|
203
203
|
family: z.ZodString;
|
|
204
204
|
weight: z.ZodEnum<{
|
|
205
|
-
bold: "bold";
|
|
206
205
|
normal: "normal";
|
|
206
|
+
bold: "bold";
|
|
207
207
|
}>;
|
|
208
208
|
style: z.ZodEnum<{
|
|
209
|
-
italic: "italic";
|
|
210
209
|
normal: "normal";
|
|
210
|
+
italic: "italic";
|
|
211
211
|
}>;
|
|
212
212
|
}, z.core.$strip>;
|
|
213
213
|
sizePt: z.ZodNumber;
|
|
@@ -353,12 +353,12 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
353
353
|
font: z.ZodObject<{
|
|
354
354
|
family: z.ZodString;
|
|
355
355
|
weight: z.ZodEnum<{
|
|
356
|
-
bold: "bold";
|
|
357
356
|
normal: "normal";
|
|
357
|
+
bold: "bold";
|
|
358
358
|
}>;
|
|
359
359
|
style: z.ZodEnum<{
|
|
360
|
-
italic: "italic";
|
|
361
360
|
normal: "normal";
|
|
361
|
+
italic: "italic";
|
|
362
362
|
}>;
|
|
363
363
|
}, z.core.$strip>;
|
|
364
364
|
sizePt: z.ZodNumber;
|
|
@@ -528,12 +528,12 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
528
528
|
font: z.ZodObject<{
|
|
529
529
|
family: z.ZodString;
|
|
530
530
|
weight: z.ZodEnum<{
|
|
531
|
-
bold: "bold";
|
|
532
531
|
normal: "normal";
|
|
532
|
+
bold: "bold";
|
|
533
533
|
}>;
|
|
534
534
|
style: z.ZodEnum<{
|
|
535
|
-
italic: "italic";
|
|
536
535
|
normal: "normal";
|
|
536
|
+
italic: "italic";
|
|
537
537
|
}>;
|
|
538
538
|
}, z.core.$strip>;
|
|
539
539
|
sizePt: z.ZodNumber;
|
package/dist/layout.d.ts
CHANGED
|
@@ -9,12 +9,12 @@ declare const LayoutTextSchema: z.ZodObject<{
|
|
|
9
9
|
font: z.ZodObject<{
|
|
10
10
|
family: z.ZodString;
|
|
11
11
|
weight: z.ZodEnum<{
|
|
12
|
-
bold: "bold";
|
|
13
12
|
normal: "normal";
|
|
13
|
+
bold: "bold";
|
|
14
14
|
}>;
|
|
15
15
|
style: z.ZodEnum<{
|
|
16
|
-
italic: "italic";
|
|
17
16
|
normal: "normal";
|
|
17
|
+
italic: "italic";
|
|
18
18
|
}>;
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
sizePt: z.ZodNumber;
|
|
@@ -202,12 +202,12 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
202
202
|
font: z.ZodObject<{
|
|
203
203
|
family: z.ZodString;
|
|
204
204
|
weight: z.ZodEnum<{
|
|
205
|
-
bold: "bold";
|
|
206
205
|
normal: "normal";
|
|
206
|
+
bold: "bold";
|
|
207
207
|
}>;
|
|
208
208
|
style: z.ZodEnum<{
|
|
209
|
-
italic: "italic";
|
|
210
209
|
normal: "normal";
|
|
210
|
+
italic: "italic";
|
|
211
211
|
}>;
|
|
212
212
|
}, z.core.$strip>;
|
|
213
213
|
sizePt: z.ZodNumber;
|
|
@@ -353,12 +353,12 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
353
353
|
font: z.ZodObject<{
|
|
354
354
|
family: z.ZodString;
|
|
355
355
|
weight: z.ZodEnum<{
|
|
356
|
-
bold: "bold";
|
|
357
356
|
normal: "normal";
|
|
357
|
+
bold: "bold";
|
|
358
358
|
}>;
|
|
359
359
|
style: z.ZodEnum<{
|
|
360
|
-
italic: "italic";
|
|
361
360
|
normal: "normal";
|
|
361
|
+
italic: "italic";
|
|
362
362
|
}>;
|
|
363
363
|
}, z.core.$strip>;
|
|
364
364
|
sizePt: z.ZodNumber;
|
|
@@ -528,12 +528,12 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
528
528
|
font: z.ZodObject<{
|
|
529
529
|
family: z.ZodString;
|
|
530
530
|
weight: z.ZodEnum<{
|
|
531
|
-
bold: "bold";
|
|
532
531
|
normal: "normal";
|
|
532
|
+
bold: "bold";
|
|
533
533
|
}>;
|
|
534
534
|
style: z.ZodEnum<{
|
|
535
|
-
italic: "italic";
|
|
536
535
|
normal: "normal";
|
|
536
|
+
italic: "italic";
|
|
537
537
|
}>;
|
|
538
538
|
}, z.core.$strip>;
|
|
539
539
|
sizePt: z.ZodNumber;
|
|
@@ -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";
|
|
12
11
|
length: "length";
|
|
13
12
|
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";
|
|
26
25
|
length: "length";
|
|
27
26
|
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";
|
|
79
78
|
length: "length";
|
|
80
79
|
mass: "mass";
|
|
80
|
+
time: "time";
|
|
81
81
|
electricCurrent: "electricCurrent";
|
|
82
82
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
83
83
|
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";
|
|
12
11
|
length: "length";
|
|
13
12
|
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";
|
|
26
25
|
length: "length";
|
|
27
26
|
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";
|
|
79
78
|
length: "length";
|
|
80
79
|
mass: "mass";
|
|
80
|
+
time: "time";
|
|
81
81
|
electricCurrent: "electricCurrent";
|
|
82
82
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
83
83
|
amountOfSubstance: "amountOfSubstance";
|
package/dist/math.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as MathUncertaintySchema, C as MathSum, D as MathSymbolEntry, E as MathSymSchema, F as SI_BASE_DIMENSIONS, I as SiBaseDimension, L as SymbolTable, M as MathUnitSchema, N as MathUnparsed, O as MathSymbolEntrySchema, P as MathUnparsedSchema, R as SymbolTableSchema, S as MathQtySchema, T as MathSym, _ as MathProd, a as MathApp, b as MathProvenanceSchema, c as MathExpressionSchema, d as MathNormalisationContext, f as MathNormalisationContextSchema, g as MathPresentationSchema, h as MathPresentation, i as ExactRationalSchema, j as MathUnit, k as MathUncertainty, l as MathMatrix, m as MathNumSchema, n as DimensionVectorSchema, o as MathAppSchema, p as MathNum, r as ExactRational, s as MathExpression, t as DimensionVector, u as MathMatrixSchema, v as MathProdSchema, w as MathSumSchema, x as MathQty, y as MathProvenance, z as isMathExpression } from "./math-
|
|
1
|
+
import { A as MathUncertaintySchema, C as MathSum, D as MathSymbolEntry, E as MathSymSchema, F as SI_BASE_DIMENSIONS, I as SiBaseDimension, L as SymbolTable, M as MathUnitSchema, N as MathUnparsed, O as MathSymbolEntrySchema, P as MathUnparsedSchema, R as SymbolTableSchema, S as MathQtySchema, T as MathSym, _ as MathProd, a as MathApp, b as MathProvenanceSchema, c as MathExpressionSchema, d as MathNormalisationContext, f as MathNormalisationContextSchema, g as MathPresentationSchema, h as MathPresentation, i as ExactRationalSchema, j as MathUnit, k as MathUncertainty, l as MathMatrix, m as MathNumSchema, n as DimensionVectorSchema, o as MathAppSchema, p as MathNum, r as ExactRational, s as MathExpression, t as DimensionVector, u as MathMatrixSchema, v as MathProdSchema, w as MathSumSchema, x as MathQty, y as MathProvenance, z as isMathExpression } from "./math-BlG8Tjk-.cjs";
|
|
2
2
|
export { DimensionVector, DimensionVectorSchema, ExactRational, ExactRationalSchema, 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, SI_BASE_DIMENSIONS, SiBaseDimension, SymbolTable, SymbolTableSchema, isMathExpression };
|
package/dist/math.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as MathUncertaintySchema, C as MathSum, D as MathSymbolEntry, E as MathSymSchema, F as SI_BASE_DIMENSIONS, I as SiBaseDimension, L as SymbolTable, M as MathUnitSchema, N as MathUnparsed, O as MathSymbolEntrySchema, P as MathUnparsedSchema, R as SymbolTableSchema, S as MathQtySchema, T as MathSym, _ as MathProd, a as MathApp, b as MathProvenanceSchema, c as MathExpressionSchema, d as MathNormalisationContext, f as MathNormalisationContextSchema, g as MathPresentationSchema, h as MathPresentation, i as ExactRationalSchema, j as MathUnit, k as MathUncertainty, l as MathMatrix, m as MathNumSchema, n as DimensionVectorSchema, o as MathAppSchema, p as MathNum, r as ExactRational, s as MathExpression, t as DimensionVector, u as MathMatrixSchema, v as MathProdSchema, w as MathSumSchema, x as MathQty, y as MathProvenance, z as isMathExpression } from "./math-
|
|
1
|
+
import { A as MathUncertaintySchema, C as MathSum, D as MathSymbolEntry, E as MathSymSchema, F as SI_BASE_DIMENSIONS, I as SiBaseDimension, L as SymbolTable, M as MathUnitSchema, N as MathUnparsed, O as MathSymbolEntrySchema, P as MathUnparsedSchema, R as SymbolTableSchema, S as MathQtySchema, T as MathSym, _ as MathProd, a as MathApp, b as MathProvenanceSchema, c as MathExpressionSchema, d as MathNormalisationContext, f as MathNormalisationContextSchema, g as MathPresentationSchema, h as MathPresentation, i as ExactRationalSchema, j as MathUnit, k as MathUncertainty, l as MathMatrix, m as MathNumSchema, n as DimensionVectorSchema, o as MathAppSchema, p as MathNum, r as ExactRational, s as MathExpression, t as DimensionVector, u as MathMatrixSchema, v as MathProdSchema, w as MathSumSchema, x as MathQty, y as MathProvenance, z as isMathExpression } from "./math-BlG8Tjk-.js";
|
|
2
2
|
export { DimensionVector, DimensionVectorSchema, ExactRational, ExactRationalSchema, 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, SI_BASE_DIMENSIONS, SiBaseDimension, SymbolTable, SymbolTableSchema, isMathExpression };
|
package/dist/package.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as MathMlNode } from "./mathml-B1oTCtzc.cjs";
|
|
2
|
-
import { s as MathExpression } from "./math-
|
|
2
|
+
import { s as MathExpression } from "./math-BlG8Tjk-.cjs";
|
|
3
3
|
import { ContentBlock, ContentEmbeddedObject } from "./content.cjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/package.d.ts
|
|
@@ -34,9 +34,9 @@ declare const DocumentPackageSchema: z.ZodObject<{
|
|
|
34
34
|
symbol: z.ZodString;
|
|
35
35
|
name: z.ZodOptional<z.ZodString>;
|
|
36
36
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
37
|
-
time: "time";
|
|
38
37
|
length: "length";
|
|
39
38
|
mass: "mass";
|
|
39
|
+
time: "time";
|
|
40
40
|
electricCurrent: "electricCurrent";
|
|
41
41
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
42
42
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -123,9 +123,9 @@ declare const DocumentPackageSchema: z.ZodObject<{
|
|
|
123
123
|
symbol: z.ZodString;
|
|
124
124
|
name: z.ZodOptional<z.ZodString>;
|
|
125
125
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
126
|
-
time: "time";
|
|
127
126
|
length: "length";
|
|
128
127
|
mass: "mass";
|
|
128
|
+
time: "time";
|
|
129
129
|
electricCurrent: "electricCurrent";
|
|
130
130
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
131
131
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -413,9 +413,9 @@ declare const DocumentPackageSchema: z.ZodObject<{
|
|
|
413
413
|
symbol: z.ZodString;
|
|
414
414
|
name: z.ZodOptional<z.ZodString>;
|
|
415
415
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
416
|
-
time: "time";
|
|
417
416
|
length: "length";
|
|
418
417
|
mass: "mass";
|
|
418
|
+
time: "time";
|
|
419
419
|
electricCurrent: "electricCurrent";
|
|
420
420
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
421
421
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -678,9 +678,9 @@ declare const DocumentPackageSchema: z.ZodObject<{
|
|
|
678
678
|
symbol: z.ZodString;
|
|
679
679
|
name: z.ZodOptional<z.ZodString>;
|
|
680
680
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
681
|
-
time: "time";
|
|
682
681
|
length: "length";
|
|
683
682
|
mass: "mass";
|
|
683
|
+
time: "time";
|
|
684
684
|
electricCurrent: "electricCurrent";
|
|
685
685
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
686
686
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -747,9 +747,9 @@ declare const DocumentPackageSchema: z.ZodObject<{
|
|
|
747
747
|
symbol: z.ZodString;
|
|
748
748
|
name: z.ZodOptional<z.ZodString>;
|
|
749
749
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
750
|
-
time: "time";
|
|
751
750
|
length: "length";
|
|
752
751
|
mass: "mass";
|
|
752
|
+
time: "time";
|
|
753
753
|
electricCurrent: "electricCurrent";
|
|
754
754
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
755
755
|
amountOfSubstance: "amountOfSubstance";
|
package/dist/package.d.ts
CHANGED
|
@@ -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 { ContentBlock, ContentEmbeddedObject } from "./content.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/package.d.ts
|
|
@@ -34,9 +34,9 @@ declare const DocumentPackageSchema: z.ZodObject<{
|
|
|
34
34
|
symbol: z.ZodString;
|
|
35
35
|
name: z.ZodOptional<z.ZodString>;
|
|
36
36
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
37
|
-
time: "time";
|
|
38
37
|
length: "length";
|
|
39
38
|
mass: "mass";
|
|
39
|
+
time: "time";
|
|
40
40
|
electricCurrent: "electricCurrent";
|
|
41
41
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
42
42
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -123,9 +123,9 @@ declare const DocumentPackageSchema: z.ZodObject<{
|
|
|
123
123
|
symbol: z.ZodString;
|
|
124
124
|
name: z.ZodOptional<z.ZodString>;
|
|
125
125
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
126
|
-
time: "time";
|
|
127
126
|
length: "length";
|
|
128
127
|
mass: "mass";
|
|
128
|
+
time: "time";
|
|
129
129
|
electricCurrent: "electricCurrent";
|
|
130
130
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
131
131
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -413,9 +413,9 @@ declare const DocumentPackageSchema: z.ZodObject<{
|
|
|
413
413
|
symbol: z.ZodString;
|
|
414
414
|
name: z.ZodOptional<z.ZodString>;
|
|
415
415
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
416
|
-
time: "time";
|
|
417
416
|
length: "length";
|
|
418
417
|
mass: "mass";
|
|
418
|
+
time: "time";
|
|
419
419
|
electricCurrent: "electricCurrent";
|
|
420
420
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
421
421
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -678,9 +678,9 @@ declare const DocumentPackageSchema: z.ZodObject<{
|
|
|
678
678
|
symbol: z.ZodString;
|
|
679
679
|
name: z.ZodOptional<z.ZodString>;
|
|
680
680
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
681
|
-
time: "time";
|
|
682
681
|
length: "length";
|
|
683
682
|
mass: "mass";
|
|
683
|
+
time: "time";
|
|
684
684
|
electricCurrent: "electricCurrent";
|
|
685
685
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
686
686
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -747,9 +747,9 @@ declare const DocumentPackageSchema: z.ZodObject<{
|
|
|
747
747
|
symbol: z.ZodString;
|
|
748
748
|
name: z.ZodOptional<z.ZodString>;
|
|
749
749
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
750
|
-
time: "time";
|
|
751
750
|
length: "length";
|
|
752
751
|
mass: "mass";
|
|
752
|
+
time: "time";
|
|
753
753
|
electricCurrent: "electricCurrent";
|
|
754
754
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
755
755
|
amountOfSubstance: "amountOfSubstance";
|
package/dist/schema-io.cjs
CHANGED
|
@@ -9,7 +9,7 @@ const SCHEMA_FILE_NAMES = {
|
|
|
9
9
|
LayoutDocument: "layout-document.schema.json"
|
|
10
10
|
};
|
|
11
11
|
function schemaUriFor(kind) {
|
|
12
|
-
return `https://cdn.jsdelivr.net/npm/document-schema.js@3.
|
|
12
|
+
return `https://cdn.jsdelivr.net/npm/document-schema.js@3.3.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
|
|
13
13
|
}
|
|
14
14
|
const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@[^/]+\/schemas\/(document-package|content-document|layout-document)\.schema\.json$/;
|
|
15
15
|
function kindForFileStem(stem) {
|
package/dist/schema-io.js
CHANGED
|
@@ -8,7 +8,7 @@ const SCHEMA_FILE_NAMES = {
|
|
|
8
8
|
LayoutDocument: "layout-document.schema.json"
|
|
9
9
|
};
|
|
10
10
|
function schemaUriFor(kind) {
|
|
11
|
-
return `https://cdn.jsdelivr.net/npm/document-schema.js@3.
|
|
11
|
+
return `https://cdn.jsdelivr.net/npm/document-schema.js@3.3.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
|
|
12
12
|
}
|
|
13
13
|
const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@[^/]+\/schemas\/(document-package|content-document|layout-document)\.schema\.json$/;
|
|
14
14
|
function kindForFileStem(stem) {
|
package/dist/style.d.cts
CHANGED
|
@@ -10,12 +10,12 @@ type Alignment = z.infer<typeof AlignmentSchema>;
|
|
|
10
10
|
declare const LayoutFontSchema: z.ZodObject<{
|
|
11
11
|
family: z.ZodString;
|
|
12
12
|
weight: z.ZodEnum<{
|
|
13
|
-
bold: "bold";
|
|
14
13
|
normal: "normal";
|
|
14
|
+
bold: "bold";
|
|
15
15
|
}>;
|
|
16
16
|
style: z.ZodEnum<{
|
|
17
|
-
italic: "italic";
|
|
18
17
|
normal: "normal";
|
|
18
|
+
italic: "italic";
|
|
19
19
|
}>;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
type LayoutFont = z.infer<typeof LayoutFontSchema>;
|
package/dist/style.d.ts
CHANGED
|
@@ -10,12 +10,12 @@ type Alignment = z.infer<typeof AlignmentSchema>;
|
|
|
10
10
|
declare const LayoutFontSchema: z.ZodObject<{
|
|
11
11
|
family: z.ZodString;
|
|
12
12
|
weight: z.ZodEnum<{
|
|
13
|
-
bold: "bold";
|
|
14
13
|
normal: "normal";
|
|
14
|
+
bold: "bold";
|
|
15
15
|
}>;
|
|
16
16
|
style: z.ZodEnum<{
|
|
17
|
-
italic: "italic";
|
|
18
17
|
normal: "normal";
|
|
18
|
+
italic: "italic";
|
|
19
19
|
}>;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
type LayoutFont = z.infer<typeof LayoutFontSchema>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-schema.js",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "The canonical, format-agnostic content and layout schemas shared by ooxml.js, odf.js, and documents.js -- pure Zod schemas, no behaviour.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://cdn.jsdelivr.net/npm/document-schema.js@3.
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/document-schema.js@3.3.0/schemas/content-document.schema.json",
|
|
4
4
|
"oneOf": [
|
|
5
5
|
{
|
|
6
6
|
"type": "object",
|
|
@@ -1393,7 +1393,7 @@
|
|
|
1393
1393
|
]
|
|
1394
1394
|
},
|
|
1395
1395
|
"document": {
|
|
1396
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@3.
|
|
1396
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@3.3.0/schemas/content-document.schema.json"
|
|
1397
1397
|
},
|
|
1398
1398
|
"frame": {
|
|
1399
1399
|
"$ref": "#/$defs/Box"
|
|
@@ -2630,7 +2630,6 @@
|
|
|
2630
2630
|
}
|
|
2631
2631
|
},
|
|
2632
2632
|
"required": [
|
|
2633
|
-
"numId",
|
|
2634
2633
|
"level"
|
|
2635
2634
|
],
|
|
2636
2635
|
"additionalProperties": false
|
|
@@ -2923,7 +2922,7 @@
|
|
|
2923
2922
|
]
|
|
2924
2923
|
},
|
|
2925
2924
|
"document": {
|
|
2926
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@3.
|
|
2925
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@3.3.0/schemas/content-document.schema.json"
|
|
2927
2926
|
},
|
|
2928
2927
|
"frame": {
|
|
2929
2928
|
"$ref": "#/$defs/Box"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://cdn.jsdelivr.net/npm/document-schema.js@3.
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/document-schema.js@3.3.0/schemas/document-package.schema.json",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
6
6
|
"formatVersion": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"const": 2
|
|
9
9
|
},
|
|
10
10
|
"content": {
|
|
11
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@3.
|
|
11
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@3.3.0/schemas/content-document.schema.json"
|
|
12
12
|
},
|
|
13
13
|
"pages": {
|
|
14
14
|
"type": "array",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://cdn.jsdelivr.net/npm/document-schema.js@3.
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/document-schema.js@3.3.0/schemas/layout-document.schema.json",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
6
6
|
"formatVersion": {
|