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
package/dist/decompose.cjs
CHANGED
|
@@ -15,6 +15,9 @@ var ConstructMarkerImbalanceError = class extends Error {
|
|
|
15
15
|
this.imbalance = imbalance;
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
+
function assertNeverContentDocumentKind(value) {
|
|
19
|
+
throw new Error(`decompose: unhandled ContentDocument kind ${JSON.stringify(value)}`);
|
|
20
|
+
}
|
|
18
21
|
function decompose(content) {
|
|
19
22
|
switch (content.kind) {
|
|
20
23
|
case "wordprocessing": return content.sections.map(decomposeSection);
|
|
@@ -23,6 +26,7 @@ function decompose(content) {
|
|
|
23
26
|
case "drawing": return content.pages.map(decomposeDrawPage);
|
|
24
27
|
case "formula": return [content.formula];
|
|
25
28
|
}
|
|
29
|
+
return assertNeverContentDocumentKind(content);
|
|
26
30
|
}
|
|
27
31
|
function decomposeSection(section) {
|
|
28
32
|
const { blocks, ...rest } = section;
|
|
@@ -172,6 +176,7 @@ function openListGroup(sink, paragraph) {
|
|
|
172
176
|
}
|
|
173
177
|
//#endregion
|
|
174
178
|
exports.ConstructMarkerImbalanceError = ConstructMarkerImbalanceError;
|
|
179
|
+
exports.assertNeverContentDocumentKind = assertNeverContentDocumentKind;
|
|
175
180
|
exports.decompose = decompose;
|
|
176
181
|
exports.decomposeDrawPage = decomposeDrawPage;
|
|
177
182
|
exports.decomposeSection = decomposeSection;
|
package/dist/decompose.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import {
|
|
1
|
+
import { C as ContentParagraph, D as ContentSection, h as ContentFormula, t as ConstructMarkerImbalance, tt as ContentSheet, u as ContentDocument } from "./content-DQui8vwD.cjs";
|
|
2
|
+
import { r as ContentDrawPage, x as ContentSlide, y as ContentShape } from "./content-drawing-DAC7_N1K.cjs";
|
|
3
|
+
import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-DXhNJt15.cjs";
|
|
3
4
|
//#region src/decompose.d.ts
|
|
4
5
|
declare function isHeadingParagraph(paragraph: ContentParagraph): paragraph is HeadingParagraph;
|
|
5
6
|
declare function isListParagraph(paragraph: ContentParagraph): paragraph is ListParagraph;
|
|
@@ -7,6 +8,7 @@ declare class ConstructMarkerImbalanceError extends Error {
|
|
|
7
8
|
readonly imbalance: ConstructMarkerImbalance;
|
|
8
9
|
constructor(imbalance: ConstructMarkerImbalance);
|
|
9
10
|
}
|
|
11
|
+
declare function assertNeverContentDocumentKind(value: never): never;
|
|
10
12
|
type TreeChildren = SectionGroupNode[] | SlideGroupNode[] | SheetGroupNode[] | DrawPageGroupNode[] | ContentFormula[];
|
|
11
13
|
declare function decompose(content: ContentDocument): TreeChildren;
|
|
12
14
|
declare function decomposeSection(section: ContentSection): SectionGroupNode;
|
|
@@ -15,4 +17,4 @@ declare function decomposeSheet(sheet: ContentSheet): SheetGroupNode;
|
|
|
15
17
|
declare function decomposeDrawPage(page: ContentDrawPage): DrawPageGroupNode;
|
|
16
18
|
declare function decomposeShape(shape: ContentShape): ShapeGroupNode;
|
|
17
19
|
//#endregion
|
|
18
|
-
export { ConstructMarkerImbalanceError, TreeChildren, decompose, decomposeDrawPage, decomposeSection, decomposeShape, decomposeSheet, decomposeSlide, isHeadingParagraph, isListParagraph };
|
|
20
|
+
export { ConstructMarkerImbalanceError, TreeChildren, assertNeverContentDocumentKind, decompose, decomposeDrawPage, decomposeSection, decomposeShape, decomposeSheet, decomposeSlide, isHeadingParagraph, isListParagraph };
|
package/dist/decompose.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import {
|
|
1
|
+
import { C as ContentParagraph, D as ContentSection, h as ContentFormula, t as ConstructMarkerImbalance, tt as ContentSheet, u as ContentDocument } from "./content-DaST7v0K.js";
|
|
2
|
+
import { r as ContentDrawPage, x as ContentSlide, y as ContentShape } from "./content-drawing-DNxYhY-G.js";
|
|
3
|
+
import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-BMbep0jw.js";
|
|
3
4
|
//#region src/decompose.d.ts
|
|
4
5
|
declare function isHeadingParagraph(paragraph: ContentParagraph): paragraph is HeadingParagraph;
|
|
5
6
|
declare function isListParagraph(paragraph: ContentParagraph): paragraph is ListParagraph;
|
|
@@ -7,6 +8,7 @@ declare class ConstructMarkerImbalanceError extends Error {
|
|
|
7
8
|
readonly imbalance: ConstructMarkerImbalance;
|
|
8
9
|
constructor(imbalance: ConstructMarkerImbalance);
|
|
9
10
|
}
|
|
11
|
+
declare function assertNeverContentDocumentKind(value: never): never;
|
|
10
12
|
type TreeChildren = SectionGroupNode[] | SlideGroupNode[] | SheetGroupNode[] | DrawPageGroupNode[] | ContentFormula[];
|
|
11
13
|
declare function decompose(content: ContentDocument): TreeChildren;
|
|
12
14
|
declare function decomposeSection(section: ContentSection): SectionGroupNode;
|
|
@@ -15,4 +17,4 @@ declare function decomposeSheet(sheet: ContentSheet): SheetGroupNode;
|
|
|
15
17
|
declare function decomposeDrawPage(page: ContentDrawPage): DrawPageGroupNode;
|
|
16
18
|
declare function decomposeShape(shape: ContentShape): ShapeGroupNode;
|
|
17
19
|
//#endregion
|
|
18
|
-
export { ConstructMarkerImbalanceError, TreeChildren, decompose, decomposeDrawPage, decomposeSection, decomposeShape, decomposeSheet, decomposeSlide, isHeadingParagraph, isListParagraph };
|
|
20
|
+
export { ConstructMarkerImbalanceError, TreeChildren, assertNeverContentDocumentKind, decompose, decomposeDrawPage, decomposeSection, decomposeShape, decomposeSheet, decomposeSlide, isHeadingParagraph, isListParagraph };
|
package/dist/decompose.js
CHANGED
|
@@ -14,6 +14,9 @@ var ConstructMarkerImbalanceError = class extends Error {
|
|
|
14
14
|
this.imbalance = imbalance;
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
+
function assertNeverContentDocumentKind(value) {
|
|
18
|
+
throw new Error(`decompose: unhandled ContentDocument kind ${JSON.stringify(value)}`);
|
|
19
|
+
}
|
|
17
20
|
function decompose(content) {
|
|
18
21
|
switch (content.kind) {
|
|
19
22
|
case "wordprocessing": return content.sections.map(decomposeSection);
|
|
@@ -22,6 +25,7 @@ function decompose(content) {
|
|
|
22
25
|
case "drawing": return content.pages.map(decomposeDrawPage);
|
|
23
26
|
case "formula": return [content.formula];
|
|
24
27
|
}
|
|
28
|
+
return assertNeverContentDocumentKind(content);
|
|
25
29
|
}
|
|
26
30
|
function decomposeSection(section) {
|
|
27
31
|
const { blocks, ...rest } = section;
|
|
@@ -170,4 +174,4 @@ function openListGroup(sink, paragraph) {
|
|
|
170
174
|
sink.listStack.push(group);
|
|
171
175
|
}
|
|
172
176
|
//#endregion
|
|
173
|
-
export { ConstructMarkerImbalanceError, decompose, decomposeDrawPage, decomposeSection, decomposeShape, decomposeSheet, decomposeSlide, isHeadingParagraph, isListParagraph };
|
|
177
|
+
export { ConstructMarkerImbalanceError, assertNeverContentDocumentKind, decompose, decomposeDrawPage, decomposeSection, decomposeShape, decomposeSheet, decomposeSlide, isHeadingParagraph, isListParagraph };
|
package/dist/definitions.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_style = require("./style.cjs");
|
|
3
|
+
const require_content_vocabulary = require("./content-vocabulary.cjs");
|
|
3
4
|
const require_content = require("./content.cjs");
|
|
4
5
|
let zod = require("zod");
|
|
5
6
|
//#region src/definitions.ts
|
|
@@ -14,7 +15,7 @@ const StyleParagraphPropertiesSchema = zod.z.strictObject({
|
|
|
14
15
|
pageBreakBefore: zod.z.boolean().optional(),
|
|
15
16
|
pageBreakAfter: zod.z.boolean().optional()
|
|
16
17
|
});
|
|
17
|
-
const StyleRunPropertiesSchema = zod.z.strictObject(
|
|
18
|
+
const StyleRunPropertiesSchema = zod.z.strictObject(require_content_vocabulary.RUN_FONT_PROPERTY_SHAPE);
|
|
18
19
|
const StyleEntrySchema = zod.z.strictObject({
|
|
19
20
|
paragraph: StyleParagraphPropertiesSchema.optional(),
|
|
20
21
|
run: StyleRunPropertiesSchema.optional()
|
package/dist/definitions.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as ContentParagraph, on as ContentRun } from "./content-DQui8vwD.cjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/definitions.d.ts
|
|
4
4
|
declare const StyleParagraphPropertiesSchema: z.ZodObject<{
|
|
5
5
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
6
6
|
left: "left";
|
|
7
|
-
right: "right";
|
|
8
7
|
center: "center";
|
|
8
|
+
right: "right";
|
|
9
9
|
justify: "justify";
|
|
10
10
|
}>>;
|
|
11
11
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -49,8 +49,8 @@ declare const StyleEntrySchema: z.ZodObject<{
|
|
|
49
49
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
50
50
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
51
51
|
left: "left";
|
|
52
|
-
right: "right";
|
|
53
52
|
center: "center";
|
|
53
|
+
right: "right";
|
|
54
54
|
justify: "justify";
|
|
55
55
|
}>>;
|
|
56
56
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -94,8 +94,8 @@ declare const StylesTableSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
94
94
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
95
95
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
96
96
|
left: "left";
|
|
97
|
-
right: "right";
|
|
98
97
|
center: "center";
|
|
98
|
+
right: "right";
|
|
99
99
|
justify: "justify";
|
|
100
100
|
}>>;
|
|
101
101
|
list: z.ZodOptional<z.ZodObject<{
|
package/dist/definitions.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as ContentParagraph, on as ContentRun } from "./content-DaST7v0K.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/definitions.d.ts
|
|
4
4
|
declare const StyleParagraphPropertiesSchema: z.ZodObject<{
|
|
5
5
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
6
6
|
left: "left";
|
|
7
|
-
right: "right";
|
|
8
7
|
center: "center";
|
|
8
|
+
right: "right";
|
|
9
9
|
justify: "justify";
|
|
10
10
|
}>>;
|
|
11
11
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -49,8 +49,8 @@ declare const StyleEntrySchema: z.ZodObject<{
|
|
|
49
49
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
50
50
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
51
51
|
left: "left";
|
|
52
|
-
right: "right";
|
|
53
52
|
center: "center";
|
|
53
|
+
right: "right";
|
|
54
54
|
justify: "justify";
|
|
55
55
|
}>>;
|
|
56
56
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -94,8 +94,8 @@ declare const StylesTableSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
94
94
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
95
95
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
96
96
|
left: "left";
|
|
97
|
-
right: "right";
|
|
98
97
|
center: "center";
|
|
98
|
+
right: "right";
|
|
99
99
|
justify: "justify";
|
|
100
100
|
}>>;
|
|
101
101
|
list: z.ZodOptional<z.ZodObject<{
|
package/dist/definitions.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AlignmentSchema } from "./style.js";
|
|
2
|
-
import {
|
|
2
|
+
import { RUN_FONT_PROPERTY_SHAPE } from "./content-vocabulary.js";
|
|
3
|
+
import { ContentListMembershipSchema } from "./content.js";
|
|
3
4
|
import { z } from "zod";
|
|
4
5
|
//#region src/definitions.ts
|
|
5
6
|
const StyleParagraphPropertiesSchema = z.strictObject({
|
package/dist/factor-styles.cjs
CHANGED
|
@@ -59,6 +59,7 @@ function assembleTree(content, pages) {
|
|
|
59
59
|
children: [content.formula]
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
+
return require_decompose.assertNeverContentDocumentKind(content);
|
|
62
63
|
}
|
|
63
64
|
function factorStyles(pkg) {
|
|
64
65
|
const reassembled = assembleTree(require_flatten.flattenTree(pkg), pkg.pages);
|
|
@@ -245,6 +246,7 @@ function mint(pkg) {
|
|
|
245
246
|
styles
|
|
246
247
|
};
|
|
247
248
|
}
|
|
249
|
+
return require_flatten.assertNeverDocumentTreeKind(pkg);
|
|
248
250
|
}
|
|
249
251
|
function innerChain(group, chain, state) {
|
|
250
252
|
const own = state.wrapperStrips.get(group);
|
package/dist/factor-styles.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as PageSize } from "./geometry-CvcjSwnA.cjs";
|
|
2
|
-
import {
|
|
2
|
+
import { u as ContentDocument } from "./content-DQui8vwD.cjs";
|
|
3
3
|
import { DocumentTree } from "./package.cjs";
|
|
4
4
|
//#region src/factor-styles.d.ts
|
|
5
5
|
declare function assembleTree(content: ContentDocument, pages?: readonly PageSize[]): DocumentTree;
|
package/dist/factor-styles.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as PageSize } from "./geometry-CvcjSwnA.js";
|
|
2
|
-
import {
|
|
2
|
+
import { u as ContentDocument } from "./content-DaST7v0K.js";
|
|
3
3
|
import { DocumentTree } from "./package.js";
|
|
4
4
|
//#region src/factor-styles.d.ts
|
|
5
5
|
declare function assembleTree(content: ContentDocument, pages?: readonly PageSize[]): DocumentTree;
|
package/dist/factor-styles.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { canonicalKey } from "./canonicalise.js";
|
|
2
|
-
import { decomposeDrawPage, decomposeSection, decomposeSheet, decomposeSlide } from "./decompose.js";
|
|
3
|
-
import { flattenTree } from "./flatten.js";
|
|
2
|
+
import { assertNeverContentDocumentKind, decomposeDrawPage, decomposeSection, decomposeSheet, decomposeSlide } from "./decompose.js";
|
|
3
|
+
import { assertNeverDocumentTreeKind, flattenTree } from "./flatten.js";
|
|
4
4
|
//#region src/factor-styles.ts
|
|
5
5
|
const PARAGRAPH_STYLE_KEYS = [
|
|
6
6
|
"alignment",
|
|
@@ -58,6 +58,7 @@ function assembleTree(content, pages) {
|
|
|
58
58
|
children: [content.formula]
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
+
return assertNeverContentDocumentKind(content);
|
|
61
62
|
}
|
|
62
63
|
function factorStyles(pkg) {
|
|
63
64
|
const reassembled = assembleTree(flattenTree(pkg), pkg.pages);
|
|
@@ -244,6 +245,7 @@ function mint(pkg) {
|
|
|
244
245
|
styles
|
|
245
246
|
};
|
|
246
247
|
}
|
|
248
|
+
return assertNeverDocumentTreeKind(pkg);
|
|
247
249
|
}
|
|
248
250
|
function innerChain(group, chain, state) {
|
|
249
251
|
const own = state.wrapperStrips.get(group);
|
package/dist/flatten.cjs
CHANGED
|
@@ -19,6 +19,9 @@ function applyEntry(entry, paragraph) {
|
|
|
19
19
|
runs: withParagraph.runs.map((run) => require_definitions.applyRunStyleProperties(runProperties, run))
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
+
function assertNeverDocumentTreeKind(value) {
|
|
23
|
+
throw new Error(`flattenTree: unhandled DocumentTree kind ${JSON.stringify(value)}`);
|
|
24
|
+
}
|
|
22
25
|
function flattenTree(pkg) {
|
|
23
26
|
const styles = pkg.styles;
|
|
24
27
|
const envelope = {
|
|
@@ -88,6 +91,7 @@ function flattenTree(pkg) {
|
|
|
88
91
|
};
|
|
89
92
|
}
|
|
90
93
|
}
|
|
94
|
+
return assertNeverDocumentTreeKind(pkg);
|
|
91
95
|
}
|
|
92
96
|
function untag(descriptor) {
|
|
93
97
|
const copy = { ...descriptor };
|
|
@@ -152,4 +156,5 @@ function resolveAnchor(styles, chain, anchor) {
|
|
|
152
156
|
return applyEntry(entry, anchor);
|
|
153
157
|
}
|
|
154
158
|
//#endregion
|
|
159
|
+
exports.assertNeverDocumentTreeKind = assertNeverDocumentTreeKind;
|
|
155
160
|
exports.flattenTree = flattenTree;
|
package/dist/flatten.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as ContentDocument } from "./content-DQui8vwD.cjs";
|
|
2
2
|
import { DocumentTree } from "./package.cjs";
|
|
3
3
|
//#region src/flatten.d.ts
|
|
4
|
+
declare function assertNeverDocumentTreeKind(value: never): never;
|
|
4
5
|
declare function flattenTree(pkg: DocumentTree): ContentDocument;
|
|
5
6
|
//#endregion
|
|
6
|
-
export { flattenTree };
|
|
7
|
+
export { assertNeverDocumentTreeKind, flattenTree };
|
package/dist/flatten.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as ContentDocument } from "./content-DaST7v0K.js";
|
|
2
2
|
import { DocumentTree } from "./package.js";
|
|
3
3
|
//#region src/flatten.d.ts
|
|
4
|
+
declare function assertNeverDocumentTreeKind(value: never): never;
|
|
4
5
|
declare function flattenTree(pkg: DocumentTree): ContentDocument;
|
|
5
6
|
//#endregion
|
|
6
|
-
export { flattenTree };
|
|
7
|
+
export { assertNeverDocumentTreeKind, flattenTree };
|
package/dist/flatten.js
CHANGED
|
@@ -18,6 +18,9 @@ function applyEntry(entry, paragraph) {
|
|
|
18
18
|
runs: withParagraph.runs.map((run) => applyRunStyleProperties(runProperties, run))
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
+
function assertNeverDocumentTreeKind(value) {
|
|
22
|
+
throw new Error(`flattenTree: unhandled DocumentTree kind ${JSON.stringify(value)}`);
|
|
23
|
+
}
|
|
21
24
|
function flattenTree(pkg) {
|
|
22
25
|
const styles = pkg.styles;
|
|
23
26
|
const envelope = {
|
|
@@ -87,6 +90,7 @@ function flattenTree(pkg) {
|
|
|
87
90
|
};
|
|
88
91
|
}
|
|
89
92
|
}
|
|
93
|
+
return assertNeverDocumentTreeKind(pkg);
|
|
90
94
|
}
|
|
91
95
|
function untag(descriptor) {
|
|
92
96
|
const copy = { ...descriptor };
|
|
@@ -151,4 +155,4 @@ function resolveAnchor(styles, chain, anchor) {
|
|
|
151
155
|
return applyEntry(entry, anchor);
|
|
152
156
|
}
|
|
153
157
|
//#endregion
|
|
154
|
-
export { flattenTree };
|
|
158
|
+
export { assertNeverDocumentTreeKind, flattenTree };
|
package/dist/index.cjs
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_a1 = require("./a1.cjs");
|
|
3
|
-
const require_border_weight = require("./border-weight.cjs");
|
|
4
|
-
require("./codec.cjs");
|
|
5
|
-
const require_color = require("./color.cjs");
|
|
6
3
|
const require_source = require("./source.cjs");
|
|
7
4
|
const require_construct = require("./construct.cjs");
|
|
5
|
+
const require_geometry = require("./geometry.cjs");
|
|
8
6
|
const require_math = require("./math.cjs");
|
|
9
7
|
const require_mathml = require("./mathml.cjs");
|
|
10
|
-
const require_geometry = require("./geometry.cjs");
|
|
11
8
|
const require_style = require("./style.cjs");
|
|
12
9
|
const require_metadata = require("./metadata.cjs");
|
|
10
|
+
const require_color = require("./color.cjs");
|
|
11
|
+
const require_content_vocabulary = require("./content-vocabulary.cjs");
|
|
12
|
+
const require_content_sheet = require("./content-sheet.cjs");
|
|
13
|
+
const require_content_drawing = require("./content-drawing.cjs");
|
|
13
14
|
const require_content = require("./content.cjs");
|
|
15
|
+
const require_border_weight = require("./border-weight.cjs");
|
|
14
16
|
const require_definitions = require("./definitions.cjs");
|
|
15
17
|
const require_package_node = require("./package-node.cjs");
|
|
16
18
|
const require_package = require("./package.cjs");
|
|
17
19
|
const require_schema_io = require("./schema-io.cjs");
|
|
20
|
+
const require_json_schema_defs_shared = require("./json-schema-defs-shared.cjs");
|
|
18
21
|
const require_content_json_schema_defs = require("./content-json-schema-defs.cjs");
|
|
19
22
|
const require_decompose = require("./decompose.cjs");
|
|
20
23
|
const require_flatten = require("./flatten.cjs");
|
|
21
24
|
const require_factor_styles = require("./factor-styles.cjs");
|
|
22
|
-
require("./font-port.cjs");
|
|
23
25
|
const require_table_grid = require("./table-grid.cjs");
|
|
24
|
-
require("./text-layout.cjs");
|
|
25
|
-
require("./math-layout.cjs");
|
|
26
26
|
exports.AlignmentSchema = require_style.AlignmentSchema;
|
|
27
27
|
exports.AnchorDescriptorSchema = require_construct.AnchorDescriptorSchema;
|
|
28
28
|
exports.AnchorTypeSchema = require_construct.AnchorTypeSchema;
|
|
29
29
|
exports.BORDER_WIDTH_PT = require_border_weight.BORDER_WIDTH_PT;
|
|
30
30
|
exports.BoxSchema = require_geometry.BoxSchema;
|
|
31
31
|
exports.COLOR_BLACK = require_color.COLOR_BLACK;
|
|
32
|
-
exports.CONTENT_ANNOTATION_FIELDS =
|
|
32
|
+
exports.CONTENT_ANNOTATION_FIELDS = require_content_vocabulary.CONTENT_ANNOTATION_FIELDS;
|
|
33
33
|
exports.CONTENT_DEFS = require_content_json_schema_defs.CONTENT_DEFS;
|
|
34
|
-
exports.CONTENT_DOCUMENT_URI =
|
|
34
|
+
exports.CONTENT_DOCUMENT_URI = require_json_schema_defs_shared.CONTENT_DOCUMENT_URI;
|
|
35
35
|
exports.ColorSchema = require_color.ColorSchema;
|
|
36
36
|
exports.ConstructDescriptorSchema = require_construct.ConstructDescriptorSchema;
|
|
37
37
|
exports.ConstructMarkerImbalanceError = require_decompose.ConstructMarkerImbalanceError;
|
|
38
|
-
exports.ContentBitmapFillSchema =
|
|
38
|
+
exports.ContentBitmapFillSchema = require_content_drawing.ContentBitmapFillSchema;
|
|
39
39
|
exports.ContentBlockSchema = require_content.ContentBlockSchema;
|
|
40
|
-
exports.ContentBorderSchema =
|
|
41
|
-
exports.ContentCellBordersSchema =
|
|
42
|
-
exports.ContentCellFillSchema =
|
|
43
|
-
exports.ContentCellPatternTypeSchema =
|
|
44
|
-
exports.ContentCellValueSchema =
|
|
40
|
+
exports.ContentBorderSchema = require_content_vocabulary.ContentBorderSchema;
|
|
41
|
+
exports.ContentCellBordersSchema = require_content_sheet.ContentCellBordersSchema;
|
|
42
|
+
exports.ContentCellFillSchema = require_content_sheet.ContentCellFillSchema;
|
|
43
|
+
exports.ContentCellPatternTypeSchema = require_content_sheet.ContentCellPatternTypeSchema;
|
|
44
|
+
exports.ContentCellValueSchema = require_content_sheet.ContentCellValueSchema;
|
|
45
45
|
exports.ContentConstructEndSchema = require_content.ContentConstructEndSchema;
|
|
46
46
|
exports.ContentConstructStartSchema = require_content.ContentConstructStartSchema;
|
|
47
47
|
exports.ContentControlDescriptorSchema = require_construct.ContentControlDescriptorSchema;
|
|
@@ -49,62 +49,62 @@ exports.ContentControlLockSchema = require_construct.ContentControlLockSchema;
|
|
|
49
49
|
exports.ContentControlTypeSchema = require_construct.ContentControlTypeSchema;
|
|
50
50
|
exports.ContentDefinedNameSchema = require_content.ContentDefinedNameSchema;
|
|
51
51
|
exports.ContentDocumentSchema = require_content.ContentDocumentSchema;
|
|
52
|
-
exports.ContentDrawPageSchema =
|
|
53
|
-
exports.ContentEmbeddedObjectBlockSchema =
|
|
54
|
-
exports.ContentEmbeddedObjectSchema =
|
|
55
|
-
exports.ContentFillPatternSchema =
|
|
56
|
-
exports.ContentFloatAlignSchema =
|
|
57
|
-
exports.ContentFloatAxisSchema =
|
|
58
|
-
exports.ContentFloatOriginSchema =
|
|
59
|
-
exports.ContentFloatPositionSchema =
|
|
60
|
-
exports.ContentFontSchema =
|
|
52
|
+
exports.ContentDrawPageSchema = require_content_drawing.ContentDrawPageSchema;
|
|
53
|
+
exports.ContentEmbeddedObjectBlockSchema = require_content_vocabulary.ContentEmbeddedObjectBlockSchema;
|
|
54
|
+
exports.ContentEmbeddedObjectSchema = require_content_vocabulary.ContentEmbeddedObjectSchema;
|
|
55
|
+
exports.ContentFillPatternSchema = require_content_drawing.ContentFillPatternSchema;
|
|
56
|
+
exports.ContentFloatAlignSchema = require_content_vocabulary.ContentFloatAlignSchema;
|
|
57
|
+
exports.ContentFloatAxisSchema = require_content_vocabulary.ContentFloatAxisSchema;
|
|
58
|
+
exports.ContentFloatOriginSchema = require_content_vocabulary.ContentFloatOriginSchema;
|
|
59
|
+
exports.ContentFloatPositionSchema = require_content_vocabulary.ContentFloatPositionSchema;
|
|
60
|
+
exports.ContentFontSchema = require_content_vocabulary.ContentFontSchema;
|
|
61
61
|
exports.ContentFormulaSchema = require_content.ContentFormulaSchema;
|
|
62
|
-
exports.ContentGradientFillSchema =
|
|
63
|
-
exports.ContentGradientStyleSchema =
|
|
64
|
-
exports.ContentHatchFillSchema =
|
|
65
|
-
exports.ContentHatchStyleSchema =
|
|
66
|
-
exports.ContentImageBlockSchema =
|
|
67
|
-
exports.ContentImageOriginalSchema =
|
|
68
|
-
exports.ContentInterpretationSchema =
|
|
62
|
+
exports.ContentGradientFillSchema = require_content_drawing.ContentGradientFillSchema;
|
|
63
|
+
exports.ContentGradientStyleSchema = require_content_drawing.ContentGradientStyleSchema;
|
|
64
|
+
exports.ContentHatchFillSchema = require_content_drawing.ContentHatchFillSchema;
|
|
65
|
+
exports.ContentHatchStyleSchema = require_content_drawing.ContentHatchStyleSchema;
|
|
66
|
+
exports.ContentImageBlockSchema = require_content_vocabulary.ContentImageBlockSchema;
|
|
67
|
+
exports.ContentImageOriginalSchema = require_content_vocabulary.ContentImageOriginalSchema;
|
|
68
|
+
exports.ContentInterpretationSchema = require_content_vocabulary.ContentInterpretationSchema;
|
|
69
69
|
exports.ContentListMembershipSchema = require_content.ContentListMembershipSchema;
|
|
70
|
-
exports.ContentOriginSchema =
|
|
70
|
+
exports.ContentOriginSchema = require_content_vocabulary.ContentOriginSchema;
|
|
71
71
|
exports.ContentPageBreakSchema = require_content.ContentPageBreakSchema;
|
|
72
72
|
exports.ContentPageFurnitureSchema = require_content.ContentPageFurnitureSchema;
|
|
73
73
|
exports.ContentParagraphBordersSchema = require_content.ContentParagraphBordersSchema;
|
|
74
74
|
exports.ContentParagraphSchema = require_content.ContentParagraphSchema;
|
|
75
|
-
exports.ContentPathPointSchema =
|
|
76
|
-
exports.ContentPathSegmentSchema =
|
|
77
|
-
exports.ContentRunSchema =
|
|
75
|
+
exports.ContentPathPointSchema = require_content_drawing.ContentPathPointSchema;
|
|
76
|
+
exports.ContentPathSegmentSchema = require_content_drawing.ContentPathSegmentSchema;
|
|
77
|
+
exports.ContentRunSchema = require_content_vocabulary.ContentRunSchema;
|
|
78
78
|
exports.ContentSectionSchema = require_content.ContentSectionSchema;
|
|
79
|
-
exports.ContentShapeSchema =
|
|
80
|
-
exports.ContentSheetCellCommentSchema =
|
|
81
|
-
exports.ContentSheetCellSchema =
|
|
82
|
-
exports.ContentSheetColumnSchema =
|
|
83
|
-
exports.ContentSheetConditionalFormatSchema =
|
|
84
|
-
exports.ContentSheetConditionalFormatStyleSchema =
|
|
85
|
-
exports.ContentSheetConditionalFormatValueSchema =
|
|
86
|
-
exports.ContentSheetDataValidationSchema =
|
|
87
|
-
exports.ContentSheetDataValidationTypeSchema =
|
|
88
|
-
exports.ContentSheetImageSchema =
|
|
89
|
-
exports.ContentSheetPrintRangeSchema =
|
|
90
|
-
exports.ContentSheetPrintSettingsSchema =
|
|
91
|
-
exports.ContentSheetRangeSchema =
|
|
92
|
-
exports.ContentSheetRepeatRangeSchema =
|
|
93
|
-
exports.ContentSheetRowSchema =
|
|
94
|
-
exports.ContentSheetSchema =
|
|
95
|
-
exports.ContentSlideSchema =
|
|
96
|
-
exports.ContentStrokeDashSchema =
|
|
97
|
-
exports.ContentStrokeSchema =
|
|
98
|
-
exports.ContentStrokeStyleSchema =
|
|
99
|
-
exports.ContentSubpathSchema =
|
|
79
|
+
exports.ContentShapeSchema = require_content_drawing.ContentShapeSchema;
|
|
80
|
+
exports.ContentSheetCellCommentSchema = require_content_sheet.ContentSheetCellCommentSchema;
|
|
81
|
+
exports.ContentSheetCellSchema = require_content_sheet.ContentSheetCellSchema;
|
|
82
|
+
exports.ContentSheetColumnSchema = require_content_sheet.ContentSheetColumnSchema;
|
|
83
|
+
exports.ContentSheetConditionalFormatSchema = require_content_sheet.ContentSheetConditionalFormatSchema;
|
|
84
|
+
exports.ContentSheetConditionalFormatStyleSchema = require_content_sheet.ContentSheetConditionalFormatStyleSchema;
|
|
85
|
+
exports.ContentSheetConditionalFormatValueSchema = require_content_sheet.ContentSheetConditionalFormatValueSchema;
|
|
86
|
+
exports.ContentSheetDataValidationSchema = require_content_sheet.ContentSheetDataValidationSchema;
|
|
87
|
+
exports.ContentSheetDataValidationTypeSchema = require_content_sheet.ContentSheetDataValidationTypeSchema;
|
|
88
|
+
exports.ContentSheetImageSchema = require_content_sheet.ContentSheetImageSchema;
|
|
89
|
+
exports.ContentSheetPrintRangeSchema = require_content_sheet.ContentSheetPrintRangeSchema;
|
|
90
|
+
exports.ContentSheetPrintSettingsSchema = require_content_sheet.ContentSheetPrintSettingsSchema;
|
|
91
|
+
exports.ContentSheetRangeSchema = require_content_sheet.ContentSheetRangeSchema;
|
|
92
|
+
exports.ContentSheetRepeatRangeSchema = require_content_sheet.ContentSheetRepeatRangeSchema;
|
|
93
|
+
exports.ContentSheetRowSchema = require_content_sheet.ContentSheetRowSchema;
|
|
94
|
+
exports.ContentSheetSchema = require_content_sheet.ContentSheetSchema;
|
|
95
|
+
exports.ContentSlideSchema = require_content_drawing.ContentSlideSchema;
|
|
96
|
+
exports.ContentStrokeDashSchema = require_content_drawing.ContentStrokeDashSchema;
|
|
97
|
+
exports.ContentStrokeSchema = require_content_drawing.ContentStrokeSchema;
|
|
98
|
+
exports.ContentStrokeStyleSchema = require_content_vocabulary.ContentStrokeStyleSchema;
|
|
99
|
+
exports.ContentSubpathSchema = require_content_drawing.ContentSubpathSchema;
|
|
100
100
|
exports.ContentTableCellSchema = require_content.ContentTableCellSchema;
|
|
101
101
|
exports.ContentTableColumnSchema = require_content.ContentTableColumnSchema;
|
|
102
102
|
exports.ContentTableRowSchema = require_content.ContentTableRowSchema;
|
|
103
103
|
exports.ContentTableSchema = require_content.ContentTableSchema;
|
|
104
|
-
exports.ContentTranscriptSchema =
|
|
105
|
-
exports.ContentVectorSchema =
|
|
104
|
+
exports.ContentTranscriptSchema = require_content_vocabulary.ContentTranscriptSchema;
|
|
105
|
+
exports.ContentVectorSchema = require_content_drawing.ContentVectorSchema;
|
|
106
106
|
exports.DEFAULT_LAYOUT_FONT = require_style.DEFAULT_LAYOUT_FONT;
|
|
107
|
-
exports.DecimalStringSchema =
|
|
107
|
+
exports.DecimalStringSchema = require_content_sheet.DecimalStringSchema;
|
|
108
108
|
exports.DefinitionEntrySchema = require_definitions.DefinitionEntrySchema;
|
|
109
109
|
exports.DefinitionsTableSchema = require_definitions.DefinitionsTableSchema;
|
|
110
110
|
exports.DimensionVectorSchema = require_math.DimensionVectorSchema;
|
|
@@ -114,14 +114,14 @@ exports.DocumentPackageRenamedError = require_schema_io.DocumentPackageRenamedEr
|
|
|
114
114
|
exports.DocumentTreeSchema = require_package.DocumentTreeSchema;
|
|
115
115
|
exports.DrawPageDescriptorSchema = require_package_node.DrawPageDescriptorSchema;
|
|
116
116
|
exports.DrawPageGroupSchema = require_package_node.DrawPageGroupSchema;
|
|
117
|
-
exports.EMBEDDED_OBJECT_KINDS =
|
|
117
|
+
exports.EMBEDDED_OBJECT_KINDS = require_json_schema_defs_shared.EMBEDDED_OBJECT_KINDS;
|
|
118
118
|
exports.EvaluationValueSchema = require_math.EvaluationValueSchema;
|
|
119
119
|
exports.ExactRationalSchema = require_math.ExactRationalSchema;
|
|
120
120
|
exports.FieldDescriptorSchema = require_construct.FieldDescriptorSchema;
|
|
121
121
|
exports.FormulaBindingsSchema = require_math.FormulaBindingsSchema;
|
|
122
122
|
exports.HeadingGroupSchema = require_package_node.HeadingGroupSchema;
|
|
123
123
|
exports.HeadingParagraphSchema = require_package_node.HeadingParagraphSchema;
|
|
124
|
-
exports.IMAGE_FORMATS =
|
|
124
|
+
exports.IMAGE_FORMATS = require_content_vocabulary.IMAGE_FORMATS;
|
|
125
125
|
exports.IntervalSchema = require_math.IntervalSchema;
|
|
126
126
|
exports.LayoutFontSchema = require_style.LayoutFontSchema;
|
|
127
127
|
exports.LayoutFrameSchema = require_geometry.LayoutFrameSchema;
|
|
@@ -131,7 +131,6 @@ exports.LinkDescriptorSchema = require_construct.LinkDescriptorSchema;
|
|
|
131
131
|
exports.LinkTargetSchema = require_construct.LinkTargetSchema;
|
|
132
132
|
exports.ListGroupSchema = require_package_node.ListGroupSchema;
|
|
133
133
|
exports.ListParagraphSchema = require_package_node.ListParagraphSchema;
|
|
134
|
-
exports.MAX_SAFE_INTEGER = require_content_json_schema_defs.MAX_SAFE_INTEGER;
|
|
135
134
|
exports.MarginsSchema = require_geometry.MarginsSchema;
|
|
136
135
|
exports.MathAppSchema = require_math.MathAppSchema;
|
|
137
136
|
exports.MathExpressionSchema = require_math.MathExpressionSchema;
|
|
@@ -162,8 +161,8 @@ exports.PageSizeSchema = require_geometry.PageSizeSchema;
|
|
|
162
161
|
exports.ProvenanceChangeSchema = require_construct.ProvenanceChangeSchema;
|
|
163
162
|
exports.ProvenanceDescriptorSchema = require_construct.ProvenanceDescriptorSchema;
|
|
164
163
|
exports.QuantitySchema = require_math.QuantitySchema;
|
|
165
|
-
exports.RUN_FONT_PROPERTY_SHAPE =
|
|
166
|
-
exports.RunConstructExtentSchema =
|
|
164
|
+
exports.RUN_FONT_PROPERTY_SHAPE = require_content_vocabulary.RUN_FONT_PROPERTY_SHAPE;
|
|
165
|
+
exports.RunConstructExtentSchema = require_content_vocabulary.RunConstructExtentSchema;
|
|
167
166
|
exports.SCHEMA_FILE_NAMES = require_schema_io.SCHEMA_FILE_NAMES;
|
|
168
167
|
exports.SI_BASE_DIMENSIONS = require_math.SI_BASE_DIMENSIONS;
|
|
169
168
|
exports.SLIDE_SIZE_STANDARD = require_geometry.SLIDE_SIZE_STANDARD;
|
|
@@ -177,7 +176,7 @@ exports.ShapeDescriptorSchema = require_package_node.ShapeDescriptorSchema;
|
|
|
177
176
|
exports.ShapeGroupSchema = require_package_node.ShapeGroupSchema;
|
|
178
177
|
exports.SheetDescriptorSchema = require_package_node.SheetDescriptorSchema;
|
|
179
178
|
exports.SheetGroupSchema = require_package_node.SheetGroupSchema;
|
|
180
|
-
exports.SheetRuleOperatorSchema =
|
|
179
|
+
exports.SheetRuleOperatorSchema = require_content_sheet.SheetRuleOperatorSchema;
|
|
181
180
|
exports.SlideDescriptorSchema = require_package_node.SlideDescriptorSchema;
|
|
182
181
|
exports.SlideGroupSchema = require_package_node.SlideGroupSchema;
|
|
183
182
|
exports.SourceFormatSchema = require_source.SourceFormatSchema;
|
|
@@ -197,12 +196,16 @@ exports.UnrecognizedDocumentSchemaError = require_schema_io.UnrecognizedDocument
|
|
|
197
196
|
exports.applyParagraphStyleProperties = require_definitions.applyParagraphStyleProperties;
|
|
198
197
|
exports.applyRunStyleProperties = require_definitions.applyRunStyleProperties;
|
|
199
198
|
exports.assembleTree = require_factor_styles.assembleTree;
|
|
199
|
+
exports.assertNeverDocumentSchemaKind = require_schema_io.assertNeverDocumentSchemaKind;
|
|
200
|
+
exports.assertNeverTableGridFaultKind = require_table_grid.assertNeverTableGridFaultKind;
|
|
200
201
|
exports.borderWeightForWidthPt = require_border_weight.borderWeightForWidthPt;
|
|
201
202
|
exports.cellReference = require_a1.cellReference;
|
|
202
203
|
exports.clampHeadingLevel = require_content.clampHeadingLevel;
|
|
203
204
|
exports.colorToRgbHex = require_color.colorToRgbHex;
|
|
204
205
|
exports.columnIndexToLetters = require_a1.columnIndexToLetters;
|
|
205
206
|
exports.columnLettersToIndex = require_a1.columnLettersToIndex;
|
|
207
|
+
exports.contentBlockSchemaBox = require_content_vocabulary.contentBlockSchemaBox;
|
|
208
|
+
exports.contentDocumentSchemaBox = require_content_vocabulary.contentDocumentSchemaBox;
|
|
206
209
|
exports.contentDocumentSharedFields = require_content.contentDocumentSharedFields;
|
|
207
210
|
exports.contentDocumentWithSchema = require_schema_io.contentDocumentWithSchema;
|
|
208
211
|
exports.dashedBorderWeightForWidthPt = require_border_weight.dashedBorderWeightForWidthPt;
|
|
@@ -222,6 +225,7 @@ exports.isContentConstructEnd = require_content.isContentConstructEnd;
|
|
|
222
225
|
exports.isContentConstructStart = require_content.isContentConstructStart;
|
|
223
226
|
exports.isDrawPageGroupNode = require_package_node.isDrawPageGroupNode;
|
|
224
227
|
exports.isHeadingGroupNode = require_package_node.isHeadingGroupNode;
|
|
228
|
+
exports.isImageFormat = require_content_vocabulary.isImageFormat;
|
|
225
229
|
exports.isListGroupNode = require_package_node.isListGroupNode;
|
|
226
230
|
exports.isMathExpression = require_math.isMathExpression;
|
|
227
231
|
exports.isMathMlNode = require_mathml.isMathMlNode;
|
|
@@ -241,12 +245,12 @@ exports.parseCellReference = require_a1.parseCellReference;
|
|
|
241
245
|
exports.parseRangeReference = require_a1.parseRangeReference;
|
|
242
246
|
exports.placeAnchorTableRows = require_table_grid.placeAnchorTableRows;
|
|
243
247
|
exports.rangeReference = require_a1.rangeReference;
|
|
244
|
-
exports.resolveCellFillColor =
|
|
248
|
+
exports.resolveCellFillColor = require_content_sheet.resolveCellFillColor;
|
|
245
249
|
exports.resolveStyleChain = require_definitions.resolveStyleChain;
|
|
246
250
|
exports.rgbHexToColor = require_color.rgbHexToColor;
|
|
247
251
|
exports.schemaUriFor = require_schema_io.schemaUriFor;
|
|
248
252
|
exports.tableCellColumnSpan = require_table_grid.tableCellColumnSpan;
|
|
249
253
|
exports.tableCellRowSpan = require_table_grid.tableCellRowSpan;
|
|
250
254
|
exports.tableGridColumnCount = require_table_grid.tableGridColumnCount;
|
|
251
|
-
exports.unrecognizedFillKind =
|
|
255
|
+
exports.unrecognizedFillKind = require_content_sheet.unrecognizedFillKind;
|
|
252
256
|
exports.walkTableGrid = require_table_grid.walkTableGrid;
|