document-content-model 7.14.0 → 7.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- 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-Cc9oMKMd.d.ts → content-BzGOsekw.d.ts} +51 -40
- package/dist/content-json-schema-defs.cjs +15 -6
- package/dist/content-json-schema-defs.js +15 -6
- package/dist/{content-Db6wh_6v.d.cts → content-lXpPw1nC.d.cts} +51 -40
- package/dist/content.cjs +10 -2
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +10 -3
- package/dist/decompose.d.cts +2 -2
- package/dist/decompose.d.ts +2 -2
- package/dist/definitions.d.cts +4 -4
- package/dist/definitions.d.ts +4 -4
- package/dist/factor-styles.d.cts +1 -1
- package/dist/factor-styles.d.ts +1 -1
- package/dist/flatten.d.cts +1 -1
- package/dist/flatten.d.ts +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/{package-node-D42YxKm6.d.cts → package-node-CWW0Evpn.d.cts} +9 -9
- package/dist/{package-node-D-1yiCmi.d.ts → package-node-DosdPQ6x.d.ts} +9 -9
- package/dist/package-node.d.cts +1 -1
- package/dist/package-node.d.ts +1 -1
- package/dist/package.d.cts +6 -6
- package/dist/package.d.ts +6 -6
- package/dist/schema-io.cjs +2 -2
- package/dist/schema-io.d.cts +1 -1
- package/dist/schema-io.d.ts +1 -1
- package/dist/schema-io.js +2 -2
- package/dist/{style-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 +4 -4
- package/dist/table-grid.d.cts +5 -5
- package/dist/table-grid.d.ts +5 -5
- package/dist/table-grid.js +4 -4
- package/dist/text-layout.d.cts +1 -1
- package/dist/text-layout.d.ts +1 -1
- package/package.json +2 -2
- package/schemas/content-document.schema.json +35 -20
- package/schemas/document-tree.schema.json +22 -7
package/dist/package.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as MathMlNode } from "./mathml-Czqc1mdZ.js";
|
|
2
2
|
import { p as MathExpression } from "./math-BScHxedi.js";
|
|
3
|
-
import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-
|
|
3
|
+
import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-DosdPQ6x.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/package.d.ts
|
|
6
6
|
declare const TreeEmbeddedFontSchema: z.ZodObject<{
|
|
@@ -26,8 +26,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
26
26
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
27
27
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
28
28
|
left: "left";
|
|
29
|
-
right: "right";
|
|
30
29
|
center: "center";
|
|
30
|
+
right: "right";
|
|
31
31
|
justify: "justify";
|
|
32
32
|
}>>;
|
|
33
33
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -181,8 +181,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
181
181
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
182
182
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
183
183
|
left: "left";
|
|
184
|
-
right: "right";
|
|
185
184
|
center: "center";
|
|
185
|
+
right: "right";
|
|
186
186
|
justify: "justify";
|
|
187
187
|
}>>;
|
|
188
188
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -341,8 +341,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
341
341
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
342
342
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
343
343
|
left: "left";
|
|
344
|
-
right: "right";
|
|
345
344
|
center: "center";
|
|
345
|
+
right: "right";
|
|
346
346
|
justify: "justify";
|
|
347
347
|
}>>;
|
|
348
348
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -496,8 +496,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
496
496
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
497
497
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
498
498
|
left: "left";
|
|
499
|
-
right: "right";
|
|
500
499
|
center: "center";
|
|
500
|
+
right: "right";
|
|
501
501
|
justify: "justify";
|
|
502
502
|
}>>;
|
|
503
503
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -710,8 +710,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
710
710
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
711
711
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
712
712
|
left: "left";
|
|
713
|
-
right: "right";
|
|
714
713
|
center: "center";
|
|
714
|
+
right: "right";
|
|
715
715
|
justify: "justify";
|
|
716
716
|
}>>;
|
|
717
717
|
list: z.ZodOptional<z.ZodObject<{
|
package/dist/schema-io.cjs
CHANGED
|
@@ -7,7 +7,7 @@ const SCHEMA_FILE_NAMES = {
|
|
|
7
7
|
ContentDocument: "content-document.schema.json"
|
|
8
8
|
};
|
|
9
9
|
function schemaUriFor(kind) {
|
|
10
|
-
return `https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
10
|
+
return `https://cdn.jsdelivr.net/npm/document-schema.js@7.15.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
|
|
11
11
|
}
|
|
12
12
|
const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-tree|document-package|content-document|layout-document)\.schema\.json$/;
|
|
13
13
|
function parseSchemaUri(uri) {
|
|
@@ -102,7 +102,7 @@ function documentFromJson(value) {
|
|
|
102
102
|
if (parts.stem === "document-package") throw new DocumentPackageRenamedError(value.$schema);
|
|
103
103
|
const kind = kindForFileStem(parts.stem);
|
|
104
104
|
if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
|
|
105
|
-
if (majorVersionOf(parts.version) !== majorVersionOf("7.
|
|
105
|
+
if (majorVersionOf(parts.version) !== majorVersionOf("7.15.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.15.0");
|
|
106
106
|
switch (kind) {
|
|
107
107
|
case "DocumentTree": return {
|
|
108
108
|
kind,
|
package/dist/schema-io.d.cts
CHANGED
package/dist/schema-io.d.ts
CHANGED
package/dist/schema-io.js
CHANGED
|
@@ -6,7 +6,7 @@ const SCHEMA_FILE_NAMES = {
|
|
|
6
6
|
ContentDocument: "content-document.schema.json"
|
|
7
7
|
};
|
|
8
8
|
function schemaUriFor(kind) {
|
|
9
|
-
return `https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
9
|
+
return `https://cdn.jsdelivr.net/npm/document-schema.js@7.15.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
|
|
10
10
|
}
|
|
11
11
|
const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-tree|document-package|content-document|layout-document)\.schema\.json$/;
|
|
12
12
|
function parseSchemaUri(uri) {
|
|
@@ -101,7 +101,7 @@ function documentFromJson(value) {
|
|
|
101
101
|
if (parts.stem === "document-package") throw new DocumentPackageRenamedError(value.$schema);
|
|
102
102
|
const kind = kindForFileStem(parts.stem);
|
|
103
103
|
if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
|
|
104
|
-
if (majorVersionOf(parts.version) !== majorVersionOf("7.
|
|
104
|
+
if (majorVersionOf(parts.version) !== majorVersionOf("7.15.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.15.0");
|
|
105
105
|
switch (kind) {
|
|
106
106
|
case "DocumentTree": return {
|
|
107
107
|
kind,
|
package/dist/style.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-
|
|
1
|
+
import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-D06NwxAJ.cjs";
|
|
2
2
|
export { Alignment, AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFont, LayoutFontSchema, TextDirection, TextDirectionSchema };
|
package/dist/style.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-
|
|
1
|
+
import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-D06NwxAJ.js";
|
|
2
2
|
export { Alignment, AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFont, LayoutFontSchema, TextDirection, TextDirectionSchema };
|
package/dist/table-grid.cjs
CHANGED
|
@@ -9,10 +9,10 @@ function tableCellRowSpan(cell) {
|
|
|
9
9
|
return cell.rowSpan ?? 1;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* The table's grid width. For a table obeying the dense rule this is `
|
|
12
|
+
* The table's grid width. For a table obeying the dense rule this is `columns.length` and every row's `cells.length` alike; taking the largest of them is what lets a reader mid-construction, or a table whose source declared a grid narrower than a row actually uses, still be walked without the walk inventing a narrower grid than the rows occupy.
|
|
13
13
|
*/
|
|
14
14
|
function tableGridColumnCount(table) {
|
|
15
|
-
let count = table.
|
|
15
|
+
let count = table.columns.length;
|
|
16
16
|
for (const row of table.rows) count = Math.max(count, row.cells.length);
|
|
17
17
|
return count;
|
|
18
18
|
}
|
|
@@ -102,7 +102,7 @@ function anchorFault(anchor, row, rowCount) {
|
|
|
102
102
|
*
|
|
103
103
|
* Rows are compared with each other before any position is classified, since an anchor's footprint can only be measured against a grid every row shares; the positions are then checked in row-major order, so the fault returned is the earliest one in reading order.
|
|
104
104
|
*
|
|
105
|
-
* The check states the whole of the rule and nothing beyond it: a table with no rows, or whose rows are all empty, has no fault, and neither `
|
|
105
|
+
* The check states the whole of the rule and nothing beyond it: a table with no rows, or whose rows are all empty, has no fault, and neither `columns` nor a cell's own properties other than its blocks and spans are consulted.
|
|
106
106
|
*/
|
|
107
107
|
function findTableGridFault(table) {
|
|
108
108
|
const gridColumnCount = widestRowLength(table);
|
|
@@ -186,7 +186,7 @@ function positionAnchorRows(rows) {
|
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
/**
|
|
189
|
-
* Build dense rows from anchor cells alone, placing each at the first grid column no earlier cell already reaches
|
|
189
|
+
* Build dense rows from anchor cells alone, placing each at the first grid column no earlier cell already reaches — the placement HTML's own table model needs, where a `rowspan` in one row silently consumes a column in the rows below it and nothing marks the consumed position.
|
|
190
190
|
*
|
|
191
191
|
* `columnCount` is the grid width the source declared, where it declares one at all; pass 0 when it does not and the width follows from the placement.
|
|
192
192
|
*/
|
package/dist/table-grid.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { o as TextDirection } from "./style-
|
|
2
|
-
import {
|
|
1
|
+
import { o as TextDirection } from "./style-D06NwxAJ.cjs";
|
|
2
|
+
import { hn as ContentTableCell, mn as ContentTable, yn as ContentTableRow } from "./content-lXpPw1nC.cjs";
|
|
3
3
|
//#region src/table-grid.d.ts
|
|
4
4
|
/** The number of grid columns a cell occupies; an absent `colSpan` means the cell occupies its own column only. */
|
|
5
5
|
declare function tableCellColumnSpan(cell: ContentTableCell): number;
|
|
6
6
|
/** The number of grid rows a cell occupies; an absent `rowSpan` means the cell occupies its own row only. */
|
|
7
7
|
declare function tableCellRowSpan(cell: ContentTableCell): number;
|
|
8
8
|
/**
|
|
9
|
-
* The table's grid width. For a table obeying the dense rule this is `
|
|
9
|
+
* The table's grid width. For a table obeying the dense rule this is `columns.length` and every row's `cells.length` alike; taking the largest of them is what lets a reader mid-construction, or a table whose source declared a grid narrower than a row actually uses, still be walked without the walk inventing a narrower grid than the rows occupy.
|
|
10
10
|
*/
|
|
11
11
|
declare function tableGridColumnCount(table: ContentTable): number;
|
|
12
12
|
/** A grid position holding a merged region's anchor, or an unmerged cell (which is its own one-position region's anchor). */
|
|
@@ -72,7 +72,7 @@ type TableGridFault = {
|
|
|
72
72
|
*
|
|
73
73
|
* Rows are compared with each other before any position is classified, since an anchor's footprint can only be measured against a grid every row shares; the positions are then checked in row-major order, so the fault returned is the earliest one in reading order.
|
|
74
74
|
*
|
|
75
|
-
* The check states the whole of the rule and nothing beyond it: a table with no rows, or whose rows are all empty, has no fault, and neither `
|
|
75
|
+
* The check states the whole of the rule and nothing beyond it: a table with no rows, or whose rows are all empty, has no fault, and neither `columns` nor a cell's own properties other than its blocks and spans are consulted.
|
|
76
76
|
*/
|
|
77
77
|
declare function findTableGridFault(table: ContentTable): TableGridFault | undefined;
|
|
78
78
|
/**
|
|
@@ -105,7 +105,7 @@ interface AnchorTableRow {
|
|
|
105
105
|
readonly isHeader?: boolean;
|
|
106
106
|
}
|
|
107
107
|
/**
|
|
108
|
-
* Build dense rows from anchor cells alone, placing each at the first grid column no earlier cell already reaches
|
|
108
|
+
* Build dense rows from anchor cells alone, placing each at the first grid column no earlier cell already reaches — the placement HTML's own table model needs, where a `rowspan` in one row silently consumes a column in the rows below it and nothing marks the consumed position.
|
|
109
109
|
*
|
|
110
110
|
* `columnCount` is the grid width the source declared, where it declares one at all; pass 0 when it does not and the width follows from the placement.
|
|
111
111
|
*/
|
package/dist/table-grid.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { o as TextDirection } from "./style-
|
|
2
|
-
import {
|
|
1
|
+
import { o as TextDirection } from "./style-D06NwxAJ.js";
|
|
2
|
+
import { hn as ContentTableCell, mn as ContentTable, yn as ContentTableRow } from "./content-BzGOsekw.js";
|
|
3
3
|
//#region src/table-grid.d.ts
|
|
4
4
|
/** The number of grid columns a cell occupies; an absent `colSpan` means the cell occupies its own column only. */
|
|
5
5
|
declare function tableCellColumnSpan(cell: ContentTableCell): number;
|
|
6
6
|
/** The number of grid rows a cell occupies; an absent `rowSpan` means the cell occupies its own row only. */
|
|
7
7
|
declare function tableCellRowSpan(cell: ContentTableCell): number;
|
|
8
8
|
/**
|
|
9
|
-
* The table's grid width. For a table obeying the dense rule this is `
|
|
9
|
+
* The table's grid width. For a table obeying the dense rule this is `columns.length` and every row's `cells.length` alike; taking the largest of them is what lets a reader mid-construction, or a table whose source declared a grid narrower than a row actually uses, still be walked without the walk inventing a narrower grid than the rows occupy.
|
|
10
10
|
*/
|
|
11
11
|
declare function tableGridColumnCount(table: ContentTable): number;
|
|
12
12
|
/** A grid position holding a merged region's anchor, or an unmerged cell (which is its own one-position region's anchor). */
|
|
@@ -72,7 +72,7 @@ type TableGridFault = {
|
|
|
72
72
|
*
|
|
73
73
|
* Rows are compared with each other before any position is classified, since an anchor's footprint can only be measured against a grid every row shares; the positions are then checked in row-major order, so the fault returned is the earliest one in reading order.
|
|
74
74
|
*
|
|
75
|
-
* The check states the whole of the rule and nothing beyond it: a table with no rows, or whose rows are all empty, has no fault, and neither `
|
|
75
|
+
* The check states the whole of the rule and nothing beyond it: a table with no rows, or whose rows are all empty, has no fault, and neither `columns` nor a cell's own properties other than its blocks and spans are consulted.
|
|
76
76
|
*/
|
|
77
77
|
declare function findTableGridFault(table: ContentTable): TableGridFault | undefined;
|
|
78
78
|
/**
|
|
@@ -105,7 +105,7 @@ interface AnchorTableRow {
|
|
|
105
105
|
readonly isHeader?: boolean;
|
|
106
106
|
}
|
|
107
107
|
/**
|
|
108
|
-
* Build dense rows from anchor cells alone, placing each at the first grid column no earlier cell already reaches
|
|
108
|
+
* Build dense rows from anchor cells alone, placing each at the first grid column no earlier cell already reaches — the placement HTML's own table model needs, where a `rowspan` in one row silently consumes a column in the rows below it and nothing marks the consumed position.
|
|
109
109
|
*
|
|
110
110
|
* `columnCount` is the grid width the source declared, where it declares one at all; pass 0 when it does not and the width follows from the placement.
|
|
111
111
|
*/
|
package/dist/table-grid.js
CHANGED
|
@@ -8,10 +8,10 @@ function tableCellRowSpan(cell) {
|
|
|
8
8
|
return cell.rowSpan ?? 1;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* The table's grid width. For a table obeying the dense rule this is `
|
|
11
|
+
* The table's grid width. For a table obeying the dense rule this is `columns.length` and every row's `cells.length` alike; taking the largest of them is what lets a reader mid-construction, or a table whose source declared a grid narrower than a row actually uses, still be walked without the walk inventing a narrower grid than the rows occupy.
|
|
12
12
|
*/
|
|
13
13
|
function tableGridColumnCount(table) {
|
|
14
|
-
let count = table.
|
|
14
|
+
let count = table.columns.length;
|
|
15
15
|
for (const row of table.rows) count = Math.max(count, row.cells.length);
|
|
16
16
|
return count;
|
|
17
17
|
}
|
|
@@ -101,7 +101,7 @@ function anchorFault(anchor, row, rowCount) {
|
|
|
101
101
|
*
|
|
102
102
|
* Rows are compared with each other before any position is classified, since an anchor's footprint can only be measured against a grid every row shares; the positions are then checked in row-major order, so the fault returned is the earliest one in reading order.
|
|
103
103
|
*
|
|
104
|
-
* The check states the whole of the rule and nothing beyond it: a table with no rows, or whose rows are all empty, has no fault, and neither `
|
|
104
|
+
* The check states the whole of the rule and nothing beyond it: a table with no rows, or whose rows are all empty, has no fault, and neither `columns` nor a cell's own properties other than its blocks and spans are consulted.
|
|
105
105
|
*/
|
|
106
106
|
function findTableGridFault(table) {
|
|
107
107
|
const gridColumnCount = widestRowLength(table);
|
|
@@ -185,7 +185,7 @@ function positionAnchorRows(rows) {
|
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
187
|
/**
|
|
188
|
-
* Build dense rows from anchor cells alone, placing each at the first grid column no earlier cell already reaches
|
|
188
|
+
* Build dense rows from anchor cells alone, placing each at the first grid column no earlier cell already reaches — the placement HTML's own table model needs, where a `rowspan` in one row silently consumes a column in the rows below it and nothing marks the consumed position.
|
|
189
189
|
*
|
|
190
190
|
* `columnCount` is the grid width the source declared, where it declares one at all; pass 0 when it does not and the width follows from the placement.
|
|
191
191
|
*/
|
package/dist/text-layout.d.cts
CHANGED
package/dist/text-layout.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-content-model",
|
|
3
|
-
"version": "7.
|
|
4
|
-
"description": "The canonical, format-agnostic content and document-tree schemas shared by ooxml.js, odf.js, documents.js, pdf-codec, and markdown-codec, plus the structural transform between them
|
|
3
|
+
"version": "7.15.0",
|
|
4
|
+
"description": "The canonical, format-agnostic content and document-tree schemas shared by ooxml.js, odf.js, documents.js, pdf-codec, and markdown-codec, plus the structural transform between them — no format-specific or I/O behaviour.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -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@7.
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/document-schema.js@7.15.0/schemas/content-document.schema.json",
|
|
4
4
|
"oneOf": [
|
|
5
5
|
{
|
|
6
6
|
"type": "object",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"blocks": {
|
|
134
134
|
"type": "array",
|
|
135
135
|
"items": {
|
|
136
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
136
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.15.0/schemas/undefined#/$defs/schema2"
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
139
|
"breakType": {
|
|
@@ -151,19 +151,19 @@
|
|
|
151
151
|
"default": {
|
|
152
152
|
"type": "array",
|
|
153
153
|
"items": {
|
|
154
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
154
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.15.0/schemas/undefined#/$defs/schema2"
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
"even": {
|
|
158
158
|
"type": "array",
|
|
159
159
|
"items": {
|
|
160
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
160
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.15.0/schemas/undefined#/$defs/schema2"
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
163
|
"first": {
|
|
164
164
|
"type": "array",
|
|
165
165
|
"items": {
|
|
166
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
166
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.15.0/schemas/undefined#/$defs/schema2"
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
},
|
|
@@ -175,19 +175,19 @@
|
|
|
175
175
|
"default": {
|
|
176
176
|
"type": "array",
|
|
177
177
|
"items": {
|
|
178
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
178
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.15.0/schemas/undefined#/$defs/schema2"
|
|
179
179
|
}
|
|
180
180
|
},
|
|
181
181
|
"even": {
|
|
182
182
|
"type": "array",
|
|
183
183
|
"items": {
|
|
184
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
184
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.15.0/schemas/undefined#/$defs/schema2"
|
|
185
185
|
}
|
|
186
186
|
},
|
|
187
187
|
"first": {
|
|
188
188
|
"type": "array",
|
|
189
189
|
"items": {
|
|
190
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
190
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.15.0/schemas/undefined#/$defs/schema2"
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
},
|
|
@@ -199,19 +199,19 @@
|
|
|
199
199
|
"default": {
|
|
200
200
|
"type": "array",
|
|
201
201
|
"items": {
|
|
202
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
202
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.15.0/schemas/undefined#/$defs/schema2"
|
|
203
203
|
}
|
|
204
204
|
},
|
|
205
205
|
"even": {
|
|
206
206
|
"type": "array",
|
|
207
207
|
"items": {
|
|
208
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
208
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.15.0/schemas/undefined#/$defs/schema2"
|
|
209
209
|
}
|
|
210
210
|
},
|
|
211
211
|
"first": {
|
|
212
212
|
"type": "array",
|
|
213
213
|
"items": {
|
|
214
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
214
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.15.0/schemas/undefined#/$defs/schema2"
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
},
|
|
@@ -638,7 +638,7 @@
|
|
|
638
638
|
"blocks": {
|
|
639
639
|
"type": "array",
|
|
640
640
|
"items": {
|
|
641
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
641
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.15.0/schemas/undefined#/$defs/schema2"
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
644
|
},
|
|
@@ -2659,7 +2659,7 @@
|
|
|
2659
2659
|
]
|
|
2660
2660
|
},
|
|
2661
2661
|
"document": {
|
|
2662
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
2662
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.15.0/schemas/content-document.schema.json"
|
|
2663
2663
|
},
|
|
2664
2664
|
"frame": {
|
|
2665
2665
|
"type": "object",
|
|
@@ -5021,7 +5021,7 @@
|
|
|
5021
5021
|
"blocks": {
|
|
5022
5022
|
"type": "array",
|
|
5023
5023
|
"items": {
|
|
5024
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
5024
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.15.0/schemas/undefined#/$defs/schema2"
|
|
5025
5025
|
}
|
|
5026
5026
|
}
|
|
5027
5027
|
},
|
|
@@ -7965,6 +7965,22 @@
|
|
|
7965
7965
|
],
|
|
7966
7966
|
"additionalProperties": false
|
|
7967
7967
|
},
|
|
7968
|
+
"ContentTableColumn": {
|
|
7969
|
+
"type": "object",
|
|
7970
|
+
"properties": {
|
|
7971
|
+
"widthPt": {
|
|
7972
|
+
"type": "number",
|
|
7973
|
+
"minimum": 0
|
|
7974
|
+
},
|
|
7975
|
+
"isHeader": {
|
|
7976
|
+
"type": "boolean"
|
|
7977
|
+
}
|
|
7978
|
+
},
|
|
7979
|
+
"required": [
|
|
7980
|
+
"widthPt"
|
|
7981
|
+
],
|
|
7982
|
+
"additionalProperties": false
|
|
7983
|
+
},
|
|
7968
7984
|
"ContentTable": {
|
|
7969
7985
|
"type": "object",
|
|
7970
7986
|
"properties": {
|
|
@@ -7978,11 +7994,10 @@
|
|
|
7978
7994
|
"$ref": "#/$defs/ContentTableRow"
|
|
7979
7995
|
}
|
|
7980
7996
|
},
|
|
7981
|
-
"
|
|
7997
|
+
"columns": {
|
|
7982
7998
|
"type": "array",
|
|
7983
7999
|
"items": {
|
|
7984
|
-
"
|
|
7985
|
-
"minimum": 0
|
|
8000
|
+
"$ref": "#/$defs/ContentTableColumn"
|
|
7986
8001
|
}
|
|
7987
8002
|
},
|
|
7988
8003
|
"sourcePath": {
|
|
@@ -8007,7 +8022,7 @@
|
|
|
8007
8022
|
"required": [
|
|
8008
8023
|
"kind",
|
|
8009
8024
|
"rows",
|
|
8010
|
-
"
|
|
8025
|
+
"columns"
|
|
8011
8026
|
],
|
|
8012
8027
|
"additionalProperties": false
|
|
8013
8028
|
},
|
|
@@ -8030,7 +8045,7 @@
|
|
|
8030
8045
|
]
|
|
8031
8046
|
},
|
|
8032
8047
|
"document": {
|
|
8033
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
8048
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.15.0/schemas/content-document.schema.json"
|
|
8034
8049
|
},
|
|
8035
8050
|
"frame": {
|
|
8036
8051
|
"$ref": "#/$defs/Box"
|
|
@@ -10356,7 +10371,7 @@
|
|
|
10356
10371
|
]
|
|
10357
10372
|
},
|
|
10358
10373
|
"document": {
|
|
10359
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
10374
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.15.0/schemas/content-document.schema.json"
|
|
10360
10375
|
},
|
|
10361
10376
|
"frame": {
|
|
10362
10377
|
"$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@7.
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/document-schema.js@7.15.0/schemas/document-tree.schema.json",
|
|
4
4
|
"oneOf": [
|
|
5
5
|
{
|
|
6
6
|
"type": "object",
|
|
@@ -1931,6 +1931,22 @@
|
|
|
1931
1931
|
],
|
|
1932
1932
|
"additionalProperties": false
|
|
1933
1933
|
},
|
|
1934
|
+
"ContentTableColumn": {
|
|
1935
|
+
"type": "object",
|
|
1936
|
+
"properties": {
|
|
1937
|
+
"widthPt": {
|
|
1938
|
+
"type": "number",
|
|
1939
|
+
"minimum": 0
|
|
1940
|
+
},
|
|
1941
|
+
"isHeader": {
|
|
1942
|
+
"type": "boolean"
|
|
1943
|
+
}
|
|
1944
|
+
},
|
|
1945
|
+
"required": [
|
|
1946
|
+
"widthPt"
|
|
1947
|
+
],
|
|
1948
|
+
"additionalProperties": false
|
|
1949
|
+
},
|
|
1934
1950
|
"ContentTable": {
|
|
1935
1951
|
"type": "object",
|
|
1936
1952
|
"properties": {
|
|
@@ -1944,11 +1960,10 @@
|
|
|
1944
1960
|
"$ref": "#/$defs/ContentTableRow"
|
|
1945
1961
|
}
|
|
1946
1962
|
},
|
|
1947
|
-
"
|
|
1963
|
+
"columns": {
|
|
1948
1964
|
"type": "array",
|
|
1949
1965
|
"items": {
|
|
1950
|
-
"
|
|
1951
|
-
"minimum": 0
|
|
1966
|
+
"$ref": "#/$defs/ContentTableColumn"
|
|
1952
1967
|
}
|
|
1953
1968
|
},
|
|
1954
1969
|
"sourcePath": {
|
|
@@ -1973,7 +1988,7 @@
|
|
|
1973
1988
|
"required": [
|
|
1974
1989
|
"kind",
|
|
1975
1990
|
"rows",
|
|
1976
|
-
"
|
|
1991
|
+
"columns"
|
|
1977
1992
|
],
|
|
1978
1993
|
"additionalProperties": false
|
|
1979
1994
|
},
|
|
@@ -1996,7 +2011,7 @@
|
|
|
1996
2011
|
]
|
|
1997
2012
|
},
|
|
1998
2013
|
"document": {
|
|
1999
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
2014
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.15.0/schemas/content-document.schema.json"
|
|
2000
2015
|
},
|
|
2001
2016
|
"frame": {
|
|
2002
2017
|
"$ref": "#/$defs/Box"
|
|
@@ -4322,7 +4337,7 @@
|
|
|
4322
4337
|
]
|
|
4323
4338
|
},
|
|
4324
4339
|
"document": {
|
|
4325
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
4340
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.15.0/schemas/content-document.schema.json"
|
|
4326
4341
|
},
|
|
4327
4342
|
"frame": {
|
|
4328
4343
|
"$ref": "#/$defs/Box"
|