document-schema 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.
Files changed (103) hide show
  1. package/dist/bijection-constructs-3By08A5K.cjs +14695 -0
  2. package/dist/bijection-constructs-DlP29TpB.js +14624 -0
  3. package/dist/bijection-constructs.cjs +4 -0
  4. package/dist/bijection-constructs.d.cts +6 -0
  5. package/dist/bijection-constructs.d.ts +6 -0
  6. package/dist/bijection-constructs.js +2 -0
  7. package/dist/bijection-corpus.cjs +12 -0
  8. package/dist/bijection-corpus.d.cts +46 -0
  9. package/dist/bijection-corpus.d.ts +46 -0
  10. package/dist/bijection-corpus.js +2 -0
  11. package/dist/codec.d.cts +1 -1
  12. package/dist/codec.d.ts +1 -1
  13. package/dist/{content-CSf8z9NW.d.cts → content-Bm02PmEB.d.cts} +7908 -9498
  14. package/dist/{content-1yGdeaVT.d.ts → content-C6lWHtDr.d.ts} +7908 -9498
  15. package/dist/content-drawing-DkgiEpfT.d.ts +1606 -0
  16. package/dist/content-drawing-akFpwGlo.d.cts +1606 -0
  17. package/dist/content-drawing.cjs +186 -0
  18. package/dist/content-drawing.d.cts +2 -0
  19. package/dist/content-drawing.d.ts +2 -0
  20. package/dist/content-drawing.js +171 -0
  21. package/dist/content-json-schema-defs.cjs +27 -3033
  22. package/dist/content-json-schema-defs.d.cts +2 -6
  23. package/dist/content-json-schema-defs.d.ts +2 -6
  24. package/dist/content-json-schema-defs.js +28 -3031
  25. package/dist/content-sheet.cjs +408 -0
  26. package/dist/content-sheet.d.cts +2 -0
  27. package/dist/content-sheet.d.ts +2 -0
  28. package/dist/content-sheet.js +385 -0
  29. package/dist/content-vocabulary.cjs +190 -0
  30. package/dist/content-vocabulary.d.cts +2 -0
  31. package/dist/content-vocabulary.d.ts +2 -0
  32. package/dist/content-vocabulary.js +168 -0
  33. package/dist/content.cjs +29 -781
  34. package/dist/content.d.cts +2 -2
  35. package/dist/content.d.ts +2 -2
  36. package/dist/content.js +6 -701
  37. package/dist/decompose.d.cts +3 -2
  38. package/dist/decompose.d.ts +3 -2
  39. package/dist/definitions.cjs +2 -1
  40. package/dist/definitions.d.cts +4 -4
  41. package/dist/definitions.d.ts +4 -4
  42. package/dist/definitions.js +2 -1
  43. package/dist/factor-styles.d.cts +1 -1
  44. package/dist/factor-styles.d.ts +1 -1
  45. package/dist/flatten.d.cts +1 -1
  46. package/dist/flatten.d.ts +1 -1
  47. package/dist/index.cjs +69 -63
  48. package/dist/index.d.cts +10 -8
  49. package/dist/index.d.ts +10 -8
  50. package/dist/index.js +10 -6
  51. package/dist/json-schema-defs-blocks.cjs +1036 -0
  52. package/dist/json-schema-defs-blocks.d.cts +5 -0
  53. package/dist/json-schema-defs-blocks.d.ts +5 -0
  54. package/dist/json-schema-defs-blocks.js +1035 -0
  55. package/dist/json-schema-defs-math.cjs +291 -0
  56. package/dist/json-schema-defs-math.d.cts +5 -0
  57. package/dist/json-schema-defs-math.d.ts +5 -0
  58. package/dist/json-schema-defs-math.js +290 -0
  59. package/dist/json-schema-defs-shared.cjs +42 -0
  60. package/dist/json-schema-defs-shared.d.cts +9 -0
  61. package/dist/json-schema-defs-shared.d.ts +9 -0
  62. package/dist/json-schema-defs-shared.js +38 -0
  63. package/dist/json-schema-defs-sheet.cjs +944 -0
  64. package/dist/json-schema-defs-sheet.d.cts +5 -0
  65. package/dist/json-schema-defs-sheet.d.ts +5 -0
  66. package/dist/json-schema-defs-sheet.js +943 -0
  67. package/dist/json-schema-defs-tree.cjs +237 -0
  68. package/dist/json-schema-defs-tree.d.cts +5 -0
  69. package/dist/json-schema-defs-tree.d.ts +5 -0
  70. package/dist/json-schema-defs-tree.js +237 -0
  71. package/dist/json-schema-defs-vector.cjs +513 -0
  72. package/dist/json-schema-defs-vector.d.cts +5 -0
  73. package/dist/json-schema-defs-vector.d.ts +5 -0
  74. package/dist/json-schema-defs-vector.js +512 -0
  75. package/dist/magic-string.es-CB2hOw9v.js +1012 -0
  76. package/dist/magic-string.es-MEBc20Ce.cjs +1012 -0
  77. package/dist/{math-BScHxedi.d.cts → math-DdIQCljT.d.cts} +9 -9
  78. package/dist/{math-BScHxedi.d.ts → math-DdIQCljT.d.ts} +9 -9
  79. package/dist/math.d.cts +1 -1
  80. package/dist/math.d.ts +1 -1
  81. package/dist/{package-node-CpE1BAqK.d.ts → package-node-B8YDhUTf.d.ts} +39 -38
  82. package/dist/{package-node-ng7Yimj9.d.cts → package-node-BMWuIKAC.d.cts} +39 -38
  83. package/dist/package-node.cjs +12 -9
  84. package/dist/package-node.d.cts +1 -1
  85. package/dist/package-node.d.ts +1 -1
  86. package/dist/package-node.js +4 -1
  87. package/dist/package.d.cts +12 -12
  88. package/dist/package.d.ts +12 -12
  89. package/dist/schema-io.cjs +2 -2
  90. package/dist/schema-io.d.cts +1 -1
  91. package/dist/schema-io.d.ts +1 -1
  92. package/dist/schema-io.js +2 -2
  93. package/dist/{style-BGMcYrD2.d.cts → style-D06NwxAJ.d.cts} +1 -1
  94. package/dist/{style-BGMcYrD2.d.ts → style-D06NwxAJ.d.ts} +1 -1
  95. package/dist/style.d.cts +1 -1
  96. package/dist/style.d.ts +1 -1
  97. package/dist/table-grid.d.cts +2 -2
  98. package/dist/table-grid.d.ts +2 -2
  99. package/dist/text-layout.d.cts +1 -1
  100. package/dist/text-layout.d.ts +1 -1
  101. package/package.json +1 -1
  102. package/schemas/content-document.schema.json +16 -16
  103. 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,2 @@
1
+ import { n as runExtentCorpus, t as constructCorpus } from "./bijection-constructs-DlP29TpB.js";
2
+ 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-Bm02PmEB.cjs";
4
+ import { y as ContentShape } from "./content-drawing-akFpwGlo.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-C6lWHtDr.js";
4
+ import { y as ContentShape } from "./content-drawing-DkgiEpfT.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 { C as ContentDocument } from "./content-CSf8z9NW.cjs";
1
+ import { u as ContentDocument } from "./content-Bm02PmEB.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 { C as ContentDocument } from "./content-1yGdeaVT.js";
1
+ import { u as ContentDocument } from "./content-C6lWHtDr.js";
2
2
  //#region src/codec.d.ts
3
3
  interface ContentCodec<TOptions = unknown> {
4
4
  readonly read: (bytes: Uint8Array, options?: TOptions) => ContentDocument;