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,237 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/json-schema-defs-tree.ts
3
+ const DEFS_TREE = {
4
+ ContentControlDescriptor: {
5
+ type: "object",
6
+ properties: {
7
+ kind: {
8
+ type: "string",
9
+ const: "contentControl"
10
+ },
11
+ controlType: {
12
+ type: "string",
13
+ enum: [
14
+ "richText",
15
+ "plainText",
16
+ "checkbox",
17
+ "dropDown",
18
+ "comboBox",
19
+ "date",
20
+ "picture",
21
+ "repeatingSection",
22
+ "button",
23
+ "index",
24
+ "group"
25
+ ]
26
+ },
27
+ tag: { type: "string" },
28
+ alias: { type: "string" },
29
+ lock: {
30
+ type: "string",
31
+ enum: [
32
+ "content",
33
+ "container",
34
+ "both"
35
+ ]
36
+ },
37
+ value: { type: "string" },
38
+ checked: { type: "boolean" },
39
+ options: {
40
+ type: "array",
41
+ items: { type: "string" }
42
+ },
43
+ source: { $ref: "#/$defs/SourceResidue" }
44
+ },
45
+ required: ["kind", "controlType"],
46
+ additionalProperties: false
47
+ },
48
+ FieldDescriptor: {
49
+ type: "object",
50
+ properties: {
51
+ kind: {
52
+ type: "string",
53
+ const: "field"
54
+ },
55
+ instruction: { type: "string" },
56
+ cachedResult: { type: "string" },
57
+ source: { $ref: "#/$defs/SourceResidue" }
58
+ },
59
+ required: ["kind", "instruction"],
60
+ additionalProperties: false
61
+ },
62
+ AnchorDescriptor: {
63
+ type: "object",
64
+ properties: {
65
+ kind: {
66
+ type: "string",
67
+ const: "anchor"
68
+ },
69
+ anchorType: {
70
+ type: "string",
71
+ enum: [
72
+ "bookmark",
73
+ "footnote",
74
+ "endnote",
75
+ "comment"
76
+ ]
77
+ },
78
+ name: { type: "string" },
79
+ definition: { type: "string" },
80
+ source: { $ref: "#/$defs/SourceResidue" }
81
+ },
82
+ required: [
83
+ "kind",
84
+ "anchorType",
85
+ "name"
86
+ ],
87
+ additionalProperties: false
88
+ },
89
+ LinkTarget: { oneOf: [{
90
+ type: "object",
91
+ properties: {
92
+ kind: {
93
+ type: "string",
94
+ const: "external"
95
+ },
96
+ uri: { type: "string" }
97
+ },
98
+ required: ["kind", "uri"],
99
+ additionalProperties: false
100
+ }, {
101
+ type: "object",
102
+ properties: {
103
+ kind: {
104
+ type: "string",
105
+ const: "internal"
106
+ },
107
+ anchor: { type: "string" }
108
+ },
109
+ required: ["kind", "anchor"],
110
+ additionalProperties: false
111
+ }] },
112
+ LinkDescriptor: {
113
+ type: "object",
114
+ properties: {
115
+ kind: {
116
+ type: "string",
117
+ const: "link"
118
+ },
119
+ target: { $ref: "#/$defs/LinkTarget" },
120
+ title: { type: "string" },
121
+ source: { $ref: "#/$defs/SourceResidue" }
122
+ },
123
+ required: ["kind", "target"],
124
+ additionalProperties: false
125
+ },
126
+ ProvenanceDescriptor: {
127
+ type: "object",
128
+ properties: {
129
+ kind: {
130
+ type: "string",
131
+ const: "provenance"
132
+ },
133
+ change: {
134
+ type: "string",
135
+ enum: [
136
+ "insertion",
137
+ "deletion",
138
+ "moveFrom",
139
+ "moveTo",
140
+ "formatChange"
141
+ ]
142
+ },
143
+ author: { type: "string" },
144
+ dateIso: { type: "string" },
145
+ source: { $ref: "#/$defs/SourceResidue" }
146
+ },
147
+ required: ["kind", "change"],
148
+ additionalProperties: false
149
+ },
150
+ DivisionSource: {
151
+ type: "object",
152
+ properties: {
153
+ href: { type: "string" },
154
+ sectionName: { type: "string" }
155
+ },
156
+ required: ["href"],
157
+ additionalProperties: false
158
+ },
159
+ DivisionDescriptor: {
160
+ type: "object",
161
+ properties: {
162
+ kind: {
163
+ type: "string",
164
+ const: "division"
165
+ },
166
+ name: { type: "string" },
167
+ columnCount: {
168
+ type: "integer",
169
+ exclusiveMinimum: 0,
170
+ maximum: require("./json-schema-defs-shared.cjs").MAX_SAFE_INTEGER
171
+ },
172
+ protected: { type: "boolean" },
173
+ linked: { $ref: "#/$defs/DivisionSource" },
174
+ source: { $ref: "#/$defs/SourceResidue" }
175
+ },
176
+ required: ["kind"],
177
+ additionalProperties: false
178
+ },
179
+ ConstructDescriptor: { oneOf: [
180
+ { $ref: "#/$defs/ContentControlDescriptor" },
181
+ { $ref: "#/$defs/FieldDescriptor" },
182
+ { $ref: "#/$defs/AnchorDescriptor" },
183
+ { $ref: "#/$defs/LinkDescriptor" },
184
+ { $ref: "#/$defs/ProvenanceDescriptor" },
185
+ { $ref: "#/$defs/DivisionDescriptor" }
186
+ ] },
187
+ StyleParagraphProperties: {
188
+ type: "object",
189
+ properties: {
190
+ alignment: { $ref: "#/$defs/Alignment" },
191
+ list: { $ref: "#/$defs/ContentListMembership" },
192
+ spacingBeforePt: { type: "number" },
193
+ spacingAfterPt: { type: "number" },
194
+ lineSpacing: {
195
+ type: "number",
196
+ exclusiveMinimum: 0
197
+ },
198
+ indentLeftPt: { type: "number" },
199
+ indentFirstLinePt: { type: "number" },
200
+ pageBreakBefore: { type: "boolean" },
201
+ pageBreakAfter: { type: "boolean" }
202
+ },
203
+ additionalProperties: false
204
+ },
205
+ StyleRunProperties: {
206
+ type: "object",
207
+ properties: {
208
+ bold: { type: "boolean" },
209
+ italic: { type: "boolean" },
210
+ underline: { type: "boolean" },
211
+ strike: { type: "boolean" },
212
+ fontFamily: { type: "string" },
213
+ sizePt: {
214
+ type: "number",
215
+ exclusiveMinimum: 0
216
+ },
217
+ color: { $ref: "#/$defs/Color" }
218
+ },
219
+ additionalProperties: false
220
+ },
221
+ StyleEntry: {
222
+ type: "object",
223
+ properties: {
224
+ paragraph: { $ref: "#/$defs/StyleParagraphProperties" },
225
+ run: { $ref: "#/$defs/StyleRunProperties" }
226
+ },
227
+ additionalProperties: false
228
+ },
229
+ DefinitionEntry: {
230
+ type: "object",
231
+ properties: { kind: { type: "string" } },
232
+ required: ["kind"],
233
+ additionalProperties: {}
234
+ }
235
+ };
236
+ //#endregion
237
+ exports.DEFS_TREE = DEFS_TREE;
@@ -0,0 +1,5 @@
1
+ import { JsonSchema } from "./json-schema-defs-shared.cjs";
2
+ //#region src/json-schema-defs-tree.d.ts
3
+ declare const DEFS_TREE: Record<string, JsonSchema>;
4
+ //#endregion
5
+ export { DEFS_TREE };
@@ -0,0 +1,5 @@
1
+ import { JsonSchema } from "./json-schema-defs-shared.js";
2
+ //#region src/json-schema-defs-tree.d.ts
3
+ declare const DEFS_TREE: Record<string, JsonSchema>;
4
+ //#endregion
5
+ export { DEFS_TREE };
@@ -0,0 +1,237 @@
1
+ import { MAX_SAFE_INTEGER } from "./json-schema-defs-shared.js";
2
+ //#region src/json-schema-defs-tree.ts
3
+ const DEFS_TREE = {
4
+ ContentControlDescriptor: {
5
+ type: "object",
6
+ properties: {
7
+ kind: {
8
+ type: "string",
9
+ const: "contentControl"
10
+ },
11
+ controlType: {
12
+ type: "string",
13
+ enum: [
14
+ "richText",
15
+ "plainText",
16
+ "checkbox",
17
+ "dropDown",
18
+ "comboBox",
19
+ "date",
20
+ "picture",
21
+ "repeatingSection",
22
+ "button",
23
+ "index",
24
+ "group"
25
+ ]
26
+ },
27
+ tag: { type: "string" },
28
+ alias: { type: "string" },
29
+ lock: {
30
+ type: "string",
31
+ enum: [
32
+ "content",
33
+ "container",
34
+ "both"
35
+ ]
36
+ },
37
+ value: { type: "string" },
38
+ checked: { type: "boolean" },
39
+ options: {
40
+ type: "array",
41
+ items: { type: "string" }
42
+ },
43
+ source: { $ref: "#/$defs/SourceResidue" }
44
+ },
45
+ required: ["kind", "controlType"],
46
+ additionalProperties: false
47
+ },
48
+ FieldDescriptor: {
49
+ type: "object",
50
+ properties: {
51
+ kind: {
52
+ type: "string",
53
+ const: "field"
54
+ },
55
+ instruction: { type: "string" },
56
+ cachedResult: { type: "string" },
57
+ source: { $ref: "#/$defs/SourceResidue" }
58
+ },
59
+ required: ["kind", "instruction"],
60
+ additionalProperties: false
61
+ },
62
+ AnchorDescriptor: {
63
+ type: "object",
64
+ properties: {
65
+ kind: {
66
+ type: "string",
67
+ const: "anchor"
68
+ },
69
+ anchorType: {
70
+ type: "string",
71
+ enum: [
72
+ "bookmark",
73
+ "footnote",
74
+ "endnote",
75
+ "comment"
76
+ ]
77
+ },
78
+ name: { type: "string" },
79
+ definition: { type: "string" },
80
+ source: { $ref: "#/$defs/SourceResidue" }
81
+ },
82
+ required: [
83
+ "kind",
84
+ "anchorType",
85
+ "name"
86
+ ],
87
+ additionalProperties: false
88
+ },
89
+ LinkTarget: { oneOf: [{
90
+ type: "object",
91
+ properties: {
92
+ kind: {
93
+ type: "string",
94
+ const: "external"
95
+ },
96
+ uri: { type: "string" }
97
+ },
98
+ required: ["kind", "uri"],
99
+ additionalProperties: false
100
+ }, {
101
+ type: "object",
102
+ properties: {
103
+ kind: {
104
+ type: "string",
105
+ const: "internal"
106
+ },
107
+ anchor: { type: "string" }
108
+ },
109
+ required: ["kind", "anchor"],
110
+ additionalProperties: false
111
+ }] },
112
+ LinkDescriptor: {
113
+ type: "object",
114
+ properties: {
115
+ kind: {
116
+ type: "string",
117
+ const: "link"
118
+ },
119
+ target: { $ref: "#/$defs/LinkTarget" },
120
+ title: { type: "string" },
121
+ source: { $ref: "#/$defs/SourceResidue" }
122
+ },
123
+ required: ["kind", "target"],
124
+ additionalProperties: false
125
+ },
126
+ ProvenanceDescriptor: {
127
+ type: "object",
128
+ properties: {
129
+ kind: {
130
+ type: "string",
131
+ const: "provenance"
132
+ },
133
+ change: {
134
+ type: "string",
135
+ enum: [
136
+ "insertion",
137
+ "deletion",
138
+ "moveFrom",
139
+ "moveTo",
140
+ "formatChange"
141
+ ]
142
+ },
143
+ author: { type: "string" },
144
+ dateIso: { type: "string" },
145
+ source: { $ref: "#/$defs/SourceResidue" }
146
+ },
147
+ required: ["kind", "change"],
148
+ additionalProperties: false
149
+ },
150
+ DivisionSource: {
151
+ type: "object",
152
+ properties: {
153
+ href: { type: "string" },
154
+ sectionName: { type: "string" }
155
+ },
156
+ required: ["href"],
157
+ additionalProperties: false
158
+ },
159
+ DivisionDescriptor: {
160
+ type: "object",
161
+ properties: {
162
+ kind: {
163
+ type: "string",
164
+ const: "division"
165
+ },
166
+ name: { type: "string" },
167
+ columnCount: {
168
+ type: "integer",
169
+ exclusiveMinimum: 0,
170
+ maximum: MAX_SAFE_INTEGER
171
+ },
172
+ protected: { type: "boolean" },
173
+ linked: { $ref: "#/$defs/DivisionSource" },
174
+ source: { $ref: "#/$defs/SourceResidue" }
175
+ },
176
+ required: ["kind"],
177
+ additionalProperties: false
178
+ },
179
+ ConstructDescriptor: { oneOf: [
180
+ { $ref: "#/$defs/ContentControlDescriptor" },
181
+ { $ref: "#/$defs/FieldDescriptor" },
182
+ { $ref: "#/$defs/AnchorDescriptor" },
183
+ { $ref: "#/$defs/LinkDescriptor" },
184
+ { $ref: "#/$defs/ProvenanceDescriptor" },
185
+ { $ref: "#/$defs/DivisionDescriptor" }
186
+ ] },
187
+ StyleParagraphProperties: {
188
+ type: "object",
189
+ properties: {
190
+ alignment: { $ref: "#/$defs/Alignment" },
191
+ list: { $ref: "#/$defs/ContentListMembership" },
192
+ spacingBeforePt: { type: "number" },
193
+ spacingAfterPt: { type: "number" },
194
+ lineSpacing: {
195
+ type: "number",
196
+ exclusiveMinimum: 0
197
+ },
198
+ indentLeftPt: { type: "number" },
199
+ indentFirstLinePt: { type: "number" },
200
+ pageBreakBefore: { type: "boolean" },
201
+ pageBreakAfter: { type: "boolean" }
202
+ },
203
+ additionalProperties: false
204
+ },
205
+ StyleRunProperties: {
206
+ type: "object",
207
+ properties: {
208
+ bold: { type: "boolean" },
209
+ italic: { type: "boolean" },
210
+ underline: { type: "boolean" },
211
+ strike: { type: "boolean" },
212
+ fontFamily: { type: "string" },
213
+ sizePt: {
214
+ type: "number",
215
+ exclusiveMinimum: 0
216
+ },
217
+ color: { $ref: "#/$defs/Color" }
218
+ },
219
+ additionalProperties: false
220
+ },
221
+ StyleEntry: {
222
+ type: "object",
223
+ properties: {
224
+ paragraph: { $ref: "#/$defs/StyleParagraphProperties" },
225
+ run: { $ref: "#/$defs/StyleRunProperties" }
226
+ },
227
+ additionalProperties: false
228
+ },
229
+ DefinitionEntry: {
230
+ type: "object",
231
+ properties: { kind: { type: "string" } },
232
+ required: ["kind"],
233
+ additionalProperties: {}
234
+ }
235
+ };
236
+ //#endregion
237
+ export { DEFS_TREE };