document-content-model 7.15.3 → 7.16.1
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 +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/{content-1yGdeaVT.d.ts → content-C8oVg7U_.d.ts} +7873 -9463
- package/dist/{content-CSf8z9NW.d.cts → content-UFAqR2zQ.d.cts} +7873 -9463
- package/dist/content-drawing-3yNJVteg.d.cts +1606 -0
- package/dist/content-drawing-cjm6n33_.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 +27 -3033
- 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 +28 -3031
- 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 -781
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +6 -701
- package/dist/decompose.d.cts +3 -2
- package/dist/decompose.d.ts +3 -2
- 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.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 +69 -63
- package/dist/index.d.cts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.js +10 -6
- 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/{package-node-CpE1BAqK.d.ts → package-node-CoWOKxt7.d.ts} +20 -19
- package/dist/{package-node-ng7Yimj9.d.cts → package-node-H2Calta4.d.cts} +20 -19
- package/dist/package-node.cjs +12 -9
- package/dist/package-node.d.cts +1 -1
- package/dist/package-node.d.ts +1 -1
- package/dist/package-node.js +4 -1
- package/dist/package.d.cts +6 -6
- package/dist/package.d.ts +6 -6
- package/dist/schema-io.cjs +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.d.cts +2 -2
- package/dist/table-grid.d.ts +2 -2
- package/dist/text-layout.d.cts +1 -1
- package/dist/text-layout.d.ts +1 -1
- package/package.json +1 -1
- package/schemas/content-document.schema.json +16 -16
- package/schemas/document-tree.schema.json +3 -3
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_bijection_constructs = require("./bijection-constructs-3By08A5K.cjs");
|
|
3
|
+
exports.constructCorpus = require_bijection_constructs.constructCorpus;
|
|
4
|
+
exports.runExtentCorpus = require_bijection_constructs.runExtentCorpus;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CorpusEntry } from "./bijection-corpus.cjs";
|
|
2
|
+
//#region src/bijection-constructs.d.ts
|
|
3
|
+
declare function constructCorpus(): readonly CorpusEntry[];
|
|
4
|
+
declare function runExtentCorpus(): readonly CorpusEntry[];
|
|
5
|
+
//#endregion
|
|
6
|
+
export { constructCorpus, runExtentCorpus };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CorpusEntry } from "./bijection-corpus.js";
|
|
2
|
+
//#region src/bijection-constructs.d.ts
|
|
3
|
+
declare function constructCorpus(): readonly CorpusEntry[];
|
|
4
|
+
declare function runExtentCorpus(): readonly CorpusEntry[];
|
|
5
|
+
//#endregion
|
|
6
|
+
export { constructCorpus, runExtentCorpus };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_bijection_constructs = require("./bijection-constructs-3By08A5K.cjs");
|
|
3
|
+
exports.GALLERY_RESIDUE = require_bijection_constructs.GALLERY_RESIDUE;
|
|
4
|
+
exports.SLIDE_SIZE = require_bijection_constructs.SLIDE_SIZE;
|
|
5
|
+
exports.canon = require_bijection_constructs.canon;
|
|
6
|
+
exports.containsGroupWrapper = require_bijection_constructs.containsGroupWrapper;
|
|
7
|
+
exports.corpus = require_bijection_constructs.corpus;
|
|
8
|
+
exports.expectStructurallyEqual = require_bijection_constructs.expectStructurallyEqual;
|
|
9
|
+
exports.normaliseEmbeddedObjects = require_bijection_constructs.normaliseEmbeddedObjects;
|
|
10
|
+
exports.paragraph = require_bijection_constructs.paragraph;
|
|
11
|
+
exports.shape = require_bijection_constructs.shape;
|
|
12
|
+
exports.wordprocessing = require_bijection_constructs.wordprocessing;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { l as PageSize } from "./geometry-CvcjSwnA.cjs";
|
|
2
|
+
import { r as SourceResidue } from "./source-Bas5ol6f.cjs";
|
|
3
|
+
import { in as ContentOrigin, n as ContentBlock, u as ContentDocument } from "./content-UFAqR2zQ.cjs";
|
|
4
|
+
import { y as ContentShape } from "./content-drawing-3yNJVteg.cjs";
|
|
5
|
+
//#region src/bijection-corpus.d.ts
|
|
6
|
+
declare function canon(value: unknown): unknown;
|
|
7
|
+
declare function normaliseEmbeddedObjects(value: unknown): unknown;
|
|
8
|
+
declare function expectStructurallyEqual(actual: unknown, expected: unknown): void;
|
|
9
|
+
declare function containsGroupWrapper(value: unknown): boolean;
|
|
10
|
+
interface CorpusEntry {
|
|
11
|
+
readonly name: string;
|
|
12
|
+
readonly content: ContentDocument;
|
|
13
|
+
readonly pages?: readonly PageSize[];
|
|
14
|
+
}
|
|
15
|
+
declare const SLIDE_SIZE: {
|
|
16
|
+
widthPt: number;
|
|
17
|
+
heightPt: number;
|
|
18
|
+
};
|
|
19
|
+
declare const GALLERY_RESIDUE: SourceResidue;
|
|
20
|
+
interface ParagraphOptions {
|
|
21
|
+
readonly headingLevel?: number;
|
|
22
|
+
readonly listLevel?: number;
|
|
23
|
+
readonly numId?: string;
|
|
24
|
+
readonly alignment?: "left" | "center" | "right" | "justify";
|
|
25
|
+
readonly indentLeftPt?: number;
|
|
26
|
+
readonly lineSpacing?: number;
|
|
27
|
+
readonly styleId?: string;
|
|
28
|
+
readonly sourcePath?: string;
|
|
29
|
+
readonly residue?: SourceResidue;
|
|
30
|
+
readonly frames?: readonly {
|
|
31
|
+
pageIndex: number;
|
|
32
|
+
xPt: number;
|
|
33
|
+
yPt: number;
|
|
34
|
+
widthPt: number;
|
|
35
|
+
heightPt: number;
|
|
36
|
+
}[];
|
|
37
|
+
readonly bold?: boolean;
|
|
38
|
+
readonly sizePt?: number;
|
|
39
|
+
readonly origin?: ContentOrigin;
|
|
40
|
+
}
|
|
41
|
+
declare function paragraph(text: string, options?: ParagraphOptions): ContentBlock;
|
|
42
|
+
declare function shape(blocks: readonly ContentBlock[], overrides?: Partial<ContentShape>): ContentShape;
|
|
43
|
+
declare function wordprocessing(blocksPerSection: readonly (readonly ContentBlock[])[]): ContentDocument;
|
|
44
|
+
declare function corpus(): readonly CorpusEntry[];
|
|
45
|
+
//#endregion
|
|
46
|
+
export { CorpusEntry, GALLERY_RESIDUE, SLIDE_SIZE, canon, containsGroupWrapper, corpus, expectStructurallyEqual, normaliseEmbeddedObjects, paragraph, shape, wordprocessing };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { l as PageSize } from "./geometry-CvcjSwnA.js";
|
|
2
|
+
import { r as SourceResidue } from "./source-Bas5ol6f.js";
|
|
3
|
+
import { in as ContentOrigin, n as ContentBlock, u as ContentDocument } from "./content-C8oVg7U_.js";
|
|
4
|
+
import { y as ContentShape } from "./content-drawing-cjm6n33_.js";
|
|
5
|
+
//#region src/bijection-corpus.d.ts
|
|
6
|
+
declare function canon(value: unknown): unknown;
|
|
7
|
+
declare function normaliseEmbeddedObjects(value: unknown): unknown;
|
|
8
|
+
declare function expectStructurallyEqual(actual: unknown, expected: unknown): void;
|
|
9
|
+
declare function containsGroupWrapper(value: unknown): boolean;
|
|
10
|
+
interface CorpusEntry {
|
|
11
|
+
readonly name: string;
|
|
12
|
+
readonly content: ContentDocument;
|
|
13
|
+
readonly pages?: readonly PageSize[];
|
|
14
|
+
}
|
|
15
|
+
declare const SLIDE_SIZE: {
|
|
16
|
+
widthPt: number;
|
|
17
|
+
heightPt: number;
|
|
18
|
+
};
|
|
19
|
+
declare const GALLERY_RESIDUE: SourceResidue;
|
|
20
|
+
interface ParagraphOptions {
|
|
21
|
+
readonly headingLevel?: number;
|
|
22
|
+
readonly listLevel?: number;
|
|
23
|
+
readonly numId?: string;
|
|
24
|
+
readonly alignment?: "left" | "center" | "right" | "justify";
|
|
25
|
+
readonly indentLeftPt?: number;
|
|
26
|
+
readonly lineSpacing?: number;
|
|
27
|
+
readonly styleId?: string;
|
|
28
|
+
readonly sourcePath?: string;
|
|
29
|
+
readonly residue?: SourceResidue;
|
|
30
|
+
readonly frames?: readonly {
|
|
31
|
+
pageIndex: number;
|
|
32
|
+
xPt: number;
|
|
33
|
+
yPt: number;
|
|
34
|
+
widthPt: number;
|
|
35
|
+
heightPt: number;
|
|
36
|
+
}[];
|
|
37
|
+
readonly bold?: boolean;
|
|
38
|
+
readonly sizePt?: number;
|
|
39
|
+
readonly origin?: ContentOrigin;
|
|
40
|
+
}
|
|
41
|
+
declare function paragraph(text: string, options?: ParagraphOptions): ContentBlock;
|
|
42
|
+
declare function shape(blocks: readonly ContentBlock[], overrides?: Partial<ContentShape>): ContentShape;
|
|
43
|
+
declare function wordprocessing(blocksPerSection: readonly (readonly ContentBlock[])[]): ContentDocument;
|
|
44
|
+
declare function corpus(): readonly CorpusEntry[];
|
|
45
|
+
//#endregion
|
|
46
|
+
export { CorpusEntry, GALLERY_RESIDUE, SLIDE_SIZE, canon, containsGroupWrapper, corpus, expectStructurallyEqual, normaliseEmbeddedObjects, paragraph, shape, wordprocessing };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as canon, c as expectStructurallyEqual, d as shape, f as wordprocessing, i as SLIDE_SIZE, l as normaliseEmbeddedObjects, o as containsGroupWrapper, r as GALLERY_RESIDUE, s as corpus, u as paragraph } from "./bijection-constructs-DlP29TpB.js";
|
|
2
|
+
export { GALLERY_RESIDUE, SLIDE_SIZE, canon, containsGroupWrapper, corpus, expectStructurallyEqual, normaliseEmbeddedObjects, paragraph, shape, wordprocessing };
|
package/dist/codec.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as ContentDocument } from "./content-UFAqR2zQ.cjs";
|
|
2
2
|
//#region src/codec.d.ts
|
|
3
3
|
interface ContentCodec<TOptions = unknown> {
|
|
4
4
|
readonly read: (bytes: Uint8Array, options?: TOptions) => ContentDocument;
|
package/dist/codec.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as ContentDocument } from "./content-C8oVg7U_.js";
|
|
2
2
|
//#region src/codec.d.ts
|
|
3
3
|
interface ContentCodec<TOptions = unknown> {
|
|
4
4
|
readonly read: (bytes: Uint8Array, options?: TOptions) => ContentDocument;
|