@json-to-office/shared-docx 0.32.0 → 0.34.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/{chunk-PVZMPANS.js → chunk-436TK3T4.js} +622 -452
- package/dist/chunk-436TK3T4.js.map +1 -0
- package/dist/{chunk-LQGORQQI.js → chunk-CQHH44HX.js} +29 -23
- package/dist/chunk-CQHH44HX.js.map +1 -0
- package/dist/{chunk-3L66ZGEV.js → chunk-FG6SI4JG.js} +14 -3
- package/dist/chunk-FG6SI4JG.js.map +1 -0
- package/dist/{chunk-UJ35RKLG.js → chunk-K7PV4XUA.js} +2 -2
- package/dist/chunk-K7PV4XUA.js.map +1 -0
- package/dist/{chunk-2LF3CBBU.js → chunk-NJN6UT3A.js} +56 -3
- package/dist/chunk-NJN6UT3A.js.map +1 -0
- package/dist/{chunk-TQYAIC66.js → chunk-PSVJL2G3.js} +2 -2
- package/dist/{chunk-TJFO2OVU.js → chunk-SZCMTHGI.js} +2 -2
- package/dist/{chunk-LRYBZQL2.js → chunk-VRGM2FUX.js} +6 -6
- package/dist/chunk-VRGM2FUX.js.map +1 -0
- package/dist/{chunk-AT7DFVN7.js → chunk-Y2ME2XH6.js} +4 -2
- package/dist/chunk-Y2ME2XH6.js.map +1 -0
- package/dist/{chunk-E4OJPWK4.js → chunk-Z5WQPM4B.js} +7 -4
- package/dist/chunk-Z5WQPM4B.js.map +1 -0
- package/dist/index.d.ts +173 -16
- package/dist/index.js +295 -16
- package/dist/index.js.map +1 -1
- package/dist/schemas/api.d.ts +6 -0
- package/dist/schemas/api.js +5 -5
- package/dist/schemas/component-defaults.d.ts +76 -29
- package/dist/schemas/component-defaults.js +3 -1
- package/dist/schemas/component-registry.js +3 -3
- package/dist/schemas/components.d.ts +354 -29
- package/dist/schemas/components.js +18 -4
- package/dist/schemas/document.js +6 -6
- package/dist/schemas/export.js +4 -4
- package/dist/schemas/generator.js +4 -4
- package/dist/schemas/theme.d.ts +298 -14
- package/dist/schemas/theme.js +2 -2
- package/dist/validation/unified/index.d.ts +192 -23
- package/dist/validation/unified/index.js +8 -6
- package/package.json +5 -4
- package/dist/chunk-2LF3CBBU.js.map +0 -1
- package/dist/chunk-3L66ZGEV.js.map +0 -1
- package/dist/chunk-AT7DFVN7.js.map +0 -1
- package/dist/chunk-E4OJPWK4.js.map +0 -1
- package/dist/chunk-LQGORQQI.js.map +0 -1
- package/dist/chunk-LRYBZQL2.js.map +0 -1
- package/dist/chunk-PVZMPANS.js.map +0 -1
- package/dist/chunk-UJ35RKLG.js.map +0 -1
- /package/dist/{chunk-TQYAIC66.js.map → chunk-PSVJL2G3.js.map} +0 -0
- /package/dist/{chunk-TJFO2OVU.js.map → chunk-SZCMTHGI.js.map} +0 -0
package/dist/schemas/api.d.ts
CHANGED
|
@@ -6,6 +6,12 @@ declare const GenerateDocumentRequestSchema: _sinclair_typebox.TObject<{
|
|
|
6
6
|
format: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"docx">, _sinclair_typebox.TLiteral<"pdf">, _sinclair_typebox.TLiteral<"html">]>>;
|
|
7
7
|
options: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
8
8
|
includeMetadata: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated No effect. Comments are authored on the components
|
|
11
|
+
* that carry them (see the `comment` prop), so there is nothing for
|
|
12
|
+
* a request-level toggle to switch. Kept so the exported
|
|
13
|
+
* `GenerateDocumentRequest` type still accepts callers that send it.
|
|
14
|
+
*/
|
|
9
15
|
includeComments: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
10
16
|
trackChanges: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
11
17
|
}>>;
|
package/dist/schemas/api.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
GenerateDocumentResponseSchema,
|
|
4
4
|
ValidateDocumentRequestSchema,
|
|
5
5
|
ValidateDocumentResponseSchema
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-FG6SI4JG.js";
|
|
7
|
+
import "../chunk-K7PV4XUA.js";
|
|
8
|
+
import "../chunk-Z5WQPM4B.js";
|
|
9
|
+
import "../chunk-CQHH44HX.js";
|
|
10
|
+
import "../chunk-436TK3T4.js";
|
|
11
11
|
import "../chunk-7TTAAYQ5.js";
|
|
12
12
|
export {
|
|
13
13
|
GenerateDocumentRequestSchema,
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
import * as _sinclair_typebox from '@sinclair/typebox';
|
|
2
2
|
import { Static } from '@sinclair/typebox';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Props that describe one specific occurrence of a component and can never be
|
|
6
|
+
* a shared default.
|
|
7
|
+
*
|
|
8
|
+
* `revision` would silently replace every component's text with the same
|
|
9
|
+
* tracked change; `comment` would attach the same review comment to every
|
|
10
|
+
* component and make the registry allocate a fresh id for each copy;
|
|
11
|
+
* `footnotes` and `endnotes` are bodies bound to markers in one paragraph's
|
|
12
|
+
* own text.
|
|
13
|
+
* `ComponentDefaultsSchema` is embedded in every theme, so either leak is
|
|
14
|
+
* theme-wide.
|
|
15
|
+
*
|
|
16
|
+
* Anything added here must also be added to the table in
|
|
17
|
+
* `__tests__/component-defaults-per-instance.test.ts`, which is driven by this
|
|
18
|
+
* list.
|
|
19
|
+
*/
|
|
20
|
+
declare const PER_INSTANCE_PROPS: readonly ["revision", "comment", "footnotes", "endnotes"];
|
|
21
|
+
type PerInstanceProp = (typeof PER_INSTANCE_PROPS)[number];
|
|
4
22
|
declare const HeadingComponentDefaultsSchema: _sinclair_typebox.TObject<{
|
|
5
23
|
text: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
6
24
|
lineSpacing: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
@@ -92,6 +110,7 @@ declare const ParagraphComponentDefaultsSchema: _sinclair_typebox.TObject<{
|
|
|
92
110
|
columnBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
93
111
|
keepNext: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
94
112
|
keepLines: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
113
|
+
id: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
95
114
|
themeStyle: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
96
115
|
boldColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
97
116
|
tabStops: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
@@ -117,7 +136,6 @@ declare const ParagraphComponentDefaultsSchema: _sinclair_typebox.TObject<{
|
|
|
117
136
|
width: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
118
137
|
height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
119
138
|
}>>;
|
|
120
|
-
id: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
121
139
|
}>;
|
|
122
140
|
declare const ImageComponentDefaultsSchema: _sinclair_typebox.TObject<{
|
|
123
141
|
path: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
@@ -180,6 +198,19 @@ declare const StatisticComponentDefaultsSchema: _sinclair_typebox.TObject<{
|
|
|
180
198
|
}>>;
|
|
181
199
|
size: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"small">, _sinclair_typebox.TLiteral<"medium">, _sinclair_typebox.TLiteral<"large">]>>;
|
|
182
200
|
}>;
|
|
201
|
+
/**
|
|
202
|
+
* `rows` is table *content*, not a default: it carries per-row revisions, and
|
|
203
|
+
* `Type.Partial` is shallow, so leaving it in would let a theme mark the same
|
|
204
|
+
* row of every table inserted or deleted.
|
|
205
|
+
*
|
|
206
|
+
* The leak is real only for `rows`, and only because `rows` is optional on the
|
|
207
|
+
* instance. `deepMerge` replaces arrays wholesale rather than merging them
|
|
208
|
+
* element-wise, and `columns` is the one required table prop — so a valid
|
|
209
|
+
* table always supplies its own `columns`, which replaces any the theme
|
|
210
|
+
* declared, cell comments and revisions included. `columns` therefore stays
|
|
211
|
+
* here: it is inert in defaults, and rejecting an inert field would break
|
|
212
|
+
* existing themes for no gain.
|
|
213
|
+
*/
|
|
183
214
|
declare const TableComponentDefaultsSchema: _sinclair_typebox.TObject<{}>;
|
|
184
215
|
declare const SectionComponentDefaultsSchema: _sinclair_typebox.TObject<{
|
|
185
216
|
meta: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
@@ -216,6 +247,7 @@ declare const ColumnsComponentDefaultsSchema: _sinclair_typebox.TObject<{
|
|
|
216
247
|
gap: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
|
|
217
248
|
}>;
|
|
218
249
|
declare const ListComponentDefaultsSchema: _sinclair_typebox.TObject<{
|
|
250
|
+
format: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"decimal">, _sinclair_typebox.TLiteral<"upperRoman">, _sinclair_typebox.TLiteral<"lowerRoman">, _sinclair_typebox.TLiteral<"upperLetter">, _sinclair_typebox.TLiteral<"lowerLetter">, _sinclair_typebox.TLiteral<"bullet">, _sinclair_typebox.TLiteral<"ordinal">, _sinclair_typebox.TLiteral<"cardinalText">, _sinclair_typebox.TLiteral<"ordinalText">, _sinclair_typebox.TLiteral<"hex">, _sinclair_typebox.TLiteral<"chicago">, _sinclair_typebox.TLiteral<"ideographDigital">, _sinclair_typebox.TLiteral<"japaneseCounting">, _sinclair_typebox.TLiteral<"aiueo">, _sinclair_typebox.TLiteral<"iroha">, _sinclair_typebox.TLiteral<"decimalFullWidth">, _sinclair_typebox.TLiteral<"decimalHalfWidth">, _sinclair_typebox.TLiteral<"japaneseLegal">, _sinclair_typebox.TLiteral<"japaneseDigitalTenThousand">, _sinclair_typebox.TLiteral<"decimalEnclosedCircle">, _sinclair_typebox.TLiteral<"decimalFullWidth2">, _sinclair_typebox.TLiteral<"aiueoFullWidth">, _sinclair_typebox.TLiteral<"irohaFullWidth">, _sinclair_typebox.TLiteral<"decimalZero">, _sinclair_typebox.TLiteral<"ganada">, _sinclair_typebox.TLiteral<"chosung">, _sinclair_typebox.TLiteral<"decimalEnclosedFullstop">, _sinclair_typebox.TLiteral<"decimalEnclosedParen">, _sinclair_typebox.TLiteral<"decimalEnclosedCircleChinese">, _sinclair_typebox.TLiteral<"ideographEnclosedCircle">, _sinclair_typebox.TLiteral<"ideographTraditional">, _sinclair_typebox.TLiteral<"ideographZodiac">, _sinclair_typebox.TLiteral<"ideographZodiacTraditional">, _sinclair_typebox.TLiteral<"taiwaneseCounting">, _sinclair_typebox.TLiteral<"ideographLegalTraditional">, _sinclair_typebox.TLiteral<"taiwaneseCountingThousand">, _sinclair_typebox.TLiteral<"taiwaneseDigital">, _sinclair_typebox.TLiteral<"chineseCounting">, _sinclair_typebox.TLiteral<"chineseLegalSimplified">, _sinclair_typebox.TLiteral<"chineseCountingThousand">, _sinclair_typebox.TLiteral<"koreanDigital">, _sinclair_typebox.TLiteral<"koreanCounting">, _sinclair_typebox.TLiteral<"koreanLegal">, _sinclair_typebox.TLiteral<"koreanDigital2">, _sinclair_typebox.TLiteral<"vietnameseCounting">, _sinclair_typebox.TLiteral<"russianLower">, _sinclair_typebox.TLiteral<"russianUpper">, _sinclair_typebox.TLiteral<"none">, _sinclair_typebox.TLiteral<"numberInDash">, _sinclair_typebox.TLiteral<"hebrew1">, _sinclair_typebox.TLiteral<"hebrew2">, _sinclair_typebox.TLiteral<"arabicAlpha">, _sinclair_typebox.TLiteral<"arabicAbjad">, _sinclair_typebox.TLiteral<"hindiVowels">, _sinclair_typebox.TLiteral<"hindiConsonants">, _sinclair_typebox.TLiteral<"hindiNumbers">, _sinclair_typebox.TLiteral<"hindiCounting">, _sinclair_typebox.TLiteral<"thaiLetters">, _sinclair_typebox.TLiteral<"thaiNumbers">, _sinclair_typebox.TLiteral<"thaiCounting">]>, _sinclair_typebox.TLiteral<"numbered">, _sinclair_typebox.TLiteral<"none">]>>;
|
|
219
251
|
items: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
|
|
220
252
|
text: _sinclair_typebox.TString;
|
|
221
253
|
level: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
@@ -228,6 +260,18 @@ declare const ListComponentDefaultsSchema: _sinclair_typebox.TObject<{
|
|
|
228
260
|
}>>;
|
|
229
261
|
}>>;
|
|
230
262
|
}>]>>>;
|
|
263
|
+
spacing: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
264
|
+
before: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
265
|
+
after: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
266
|
+
item: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
267
|
+
}>>;
|
|
268
|
+
start: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
269
|
+
alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
|
|
270
|
+
indent: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
271
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
272
|
+
hanging: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
273
|
+
}>]>>;
|
|
274
|
+
bullet: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
231
275
|
reference: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
232
276
|
levels: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
233
277
|
level: _sinclair_typebox.TNumber;
|
|
@@ -239,20 +283,15 @@ declare const ListComponentDefaultsSchema: _sinclair_typebox.TObject<{
|
|
|
239
283
|
hanging: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
240
284
|
}>>;
|
|
241
285
|
start: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
286
|
+
font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
287
|
+
family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
288
|
+
size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
289
|
+
color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
290
|
+
bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
291
|
+
italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
292
|
+
underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
293
|
+
}>>;
|
|
242
294
|
}>>>;
|
|
243
|
-
format: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"decimal">, _sinclair_typebox.TLiteral<"upperRoman">, _sinclair_typebox.TLiteral<"lowerRoman">, _sinclair_typebox.TLiteral<"upperLetter">, _sinclair_typebox.TLiteral<"lowerLetter">, _sinclair_typebox.TLiteral<"bullet">, _sinclair_typebox.TLiteral<"ordinal">, _sinclair_typebox.TLiteral<"cardinalText">, _sinclair_typebox.TLiteral<"ordinalText">, _sinclair_typebox.TLiteral<"hex">, _sinclair_typebox.TLiteral<"chicago">, _sinclair_typebox.TLiteral<"ideographDigital">, _sinclair_typebox.TLiteral<"japaneseCounting">, _sinclair_typebox.TLiteral<"aiueo">, _sinclair_typebox.TLiteral<"iroha">, _sinclair_typebox.TLiteral<"decimalFullWidth">, _sinclair_typebox.TLiteral<"decimalHalfWidth">, _sinclair_typebox.TLiteral<"japaneseLegal">, _sinclair_typebox.TLiteral<"japaneseDigitalTenThousand">, _sinclair_typebox.TLiteral<"decimalEnclosedCircle">, _sinclair_typebox.TLiteral<"decimalFullWidth2">, _sinclair_typebox.TLiteral<"aiueoFullWidth">, _sinclair_typebox.TLiteral<"irohaFullWidth">, _sinclair_typebox.TLiteral<"decimalZero">, _sinclair_typebox.TLiteral<"ganada">, _sinclair_typebox.TLiteral<"chosung">, _sinclair_typebox.TLiteral<"decimalEnclosedFullstop">, _sinclair_typebox.TLiteral<"decimalEnclosedParen">, _sinclair_typebox.TLiteral<"decimalEnclosedCircleChinese">, _sinclair_typebox.TLiteral<"ideographEnclosedCircle">, _sinclair_typebox.TLiteral<"ideographTraditional">, _sinclair_typebox.TLiteral<"ideographZodiac">, _sinclair_typebox.TLiteral<"ideographZodiacTraditional">, _sinclair_typebox.TLiteral<"taiwaneseCounting">, _sinclair_typebox.TLiteral<"ideographLegalTraditional">, _sinclair_typebox.TLiteral<"taiwaneseCountingThousand">, _sinclair_typebox.TLiteral<"taiwaneseDigital">, _sinclair_typebox.TLiteral<"chineseCounting">, _sinclair_typebox.TLiteral<"chineseLegalSimplified">, _sinclair_typebox.TLiteral<"chineseCountingThousand">, _sinclair_typebox.TLiteral<"koreanDigital">, _sinclair_typebox.TLiteral<"koreanCounting">, _sinclair_typebox.TLiteral<"koreanLegal">, _sinclair_typebox.TLiteral<"koreanDigital2">, _sinclair_typebox.TLiteral<"vietnameseCounting">, _sinclair_typebox.TLiteral<"russianLower">, _sinclair_typebox.TLiteral<"russianUpper">, _sinclair_typebox.TLiteral<"none">, _sinclair_typebox.TLiteral<"numberInDash">, _sinclair_typebox.TLiteral<"hebrew1">, _sinclair_typebox.TLiteral<"hebrew2">, _sinclair_typebox.TLiteral<"arabicAlpha">, _sinclair_typebox.TLiteral<"arabicAbjad">, _sinclair_typebox.TLiteral<"hindiVowels">, _sinclair_typebox.TLiteral<"hindiConsonants">, _sinclair_typebox.TLiteral<"hindiNumbers">, _sinclair_typebox.TLiteral<"hindiCounting">, _sinclair_typebox.TLiteral<"thaiLetters">, _sinclair_typebox.TLiteral<"thaiNumbers">, _sinclair_typebox.TLiteral<"thaiCounting">]>, _sinclair_typebox.TLiteral<"numbered">, _sinclair_typebox.TLiteral<"none">]>>;
|
|
244
|
-
bullet: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
245
|
-
start: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
246
|
-
spacing: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
247
|
-
before: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
248
|
-
after: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
249
|
-
item: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
250
|
-
}>>;
|
|
251
|
-
alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
|
|
252
|
-
indent: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
253
|
-
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
254
|
-
hanging: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
255
|
-
}>]>>;
|
|
256
295
|
}>;
|
|
257
296
|
declare const ComponentDefaultsSchema: _sinclair_typebox.TObject<{
|
|
258
297
|
heading: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
@@ -346,6 +385,7 @@ declare const ComponentDefaultsSchema: _sinclair_typebox.TObject<{
|
|
|
346
385
|
columnBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
347
386
|
keepNext: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
348
387
|
keepLines: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
388
|
+
id: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
349
389
|
themeStyle: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
350
390
|
boldColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
351
391
|
tabStops: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
@@ -371,7 +411,6 @@ declare const ComponentDefaultsSchema: _sinclair_typebox.TObject<{
|
|
|
371
411
|
width: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
372
412
|
height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
373
413
|
}>>;
|
|
374
|
-
id: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
375
414
|
}>>;
|
|
376
415
|
image: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
377
416
|
path: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
@@ -470,6 +509,7 @@ declare const ComponentDefaultsSchema: _sinclair_typebox.TObject<{
|
|
|
470
509
|
gap: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
|
|
471
510
|
}>>;
|
|
472
511
|
list: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
512
|
+
format: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"decimal">, _sinclair_typebox.TLiteral<"upperRoman">, _sinclair_typebox.TLiteral<"lowerRoman">, _sinclair_typebox.TLiteral<"upperLetter">, _sinclair_typebox.TLiteral<"lowerLetter">, _sinclair_typebox.TLiteral<"bullet">, _sinclair_typebox.TLiteral<"ordinal">, _sinclair_typebox.TLiteral<"cardinalText">, _sinclair_typebox.TLiteral<"ordinalText">, _sinclair_typebox.TLiteral<"hex">, _sinclair_typebox.TLiteral<"chicago">, _sinclair_typebox.TLiteral<"ideographDigital">, _sinclair_typebox.TLiteral<"japaneseCounting">, _sinclair_typebox.TLiteral<"aiueo">, _sinclair_typebox.TLiteral<"iroha">, _sinclair_typebox.TLiteral<"decimalFullWidth">, _sinclair_typebox.TLiteral<"decimalHalfWidth">, _sinclair_typebox.TLiteral<"japaneseLegal">, _sinclair_typebox.TLiteral<"japaneseDigitalTenThousand">, _sinclair_typebox.TLiteral<"decimalEnclosedCircle">, _sinclair_typebox.TLiteral<"decimalFullWidth2">, _sinclair_typebox.TLiteral<"aiueoFullWidth">, _sinclair_typebox.TLiteral<"irohaFullWidth">, _sinclair_typebox.TLiteral<"decimalZero">, _sinclair_typebox.TLiteral<"ganada">, _sinclair_typebox.TLiteral<"chosung">, _sinclair_typebox.TLiteral<"decimalEnclosedFullstop">, _sinclair_typebox.TLiteral<"decimalEnclosedParen">, _sinclair_typebox.TLiteral<"decimalEnclosedCircleChinese">, _sinclair_typebox.TLiteral<"ideographEnclosedCircle">, _sinclair_typebox.TLiteral<"ideographTraditional">, _sinclair_typebox.TLiteral<"ideographZodiac">, _sinclair_typebox.TLiteral<"ideographZodiacTraditional">, _sinclair_typebox.TLiteral<"taiwaneseCounting">, _sinclair_typebox.TLiteral<"ideographLegalTraditional">, _sinclair_typebox.TLiteral<"taiwaneseCountingThousand">, _sinclair_typebox.TLiteral<"taiwaneseDigital">, _sinclair_typebox.TLiteral<"chineseCounting">, _sinclair_typebox.TLiteral<"chineseLegalSimplified">, _sinclair_typebox.TLiteral<"chineseCountingThousand">, _sinclair_typebox.TLiteral<"koreanDigital">, _sinclair_typebox.TLiteral<"koreanCounting">, _sinclair_typebox.TLiteral<"koreanLegal">, _sinclair_typebox.TLiteral<"koreanDigital2">, _sinclair_typebox.TLiteral<"vietnameseCounting">, _sinclair_typebox.TLiteral<"russianLower">, _sinclair_typebox.TLiteral<"russianUpper">, _sinclair_typebox.TLiteral<"none">, _sinclair_typebox.TLiteral<"numberInDash">, _sinclair_typebox.TLiteral<"hebrew1">, _sinclair_typebox.TLiteral<"hebrew2">, _sinclair_typebox.TLiteral<"arabicAlpha">, _sinclair_typebox.TLiteral<"arabicAbjad">, _sinclair_typebox.TLiteral<"hindiVowels">, _sinclair_typebox.TLiteral<"hindiConsonants">, _sinclair_typebox.TLiteral<"hindiNumbers">, _sinclair_typebox.TLiteral<"hindiCounting">, _sinclair_typebox.TLiteral<"thaiLetters">, _sinclair_typebox.TLiteral<"thaiNumbers">, _sinclair_typebox.TLiteral<"thaiCounting">]>, _sinclair_typebox.TLiteral<"numbered">, _sinclair_typebox.TLiteral<"none">]>>;
|
|
473
513
|
items: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
|
|
474
514
|
text: _sinclair_typebox.TString;
|
|
475
515
|
level: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
@@ -482,6 +522,18 @@ declare const ComponentDefaultsSchema: _sinclair_typebox.TObject<{
|
|
|
482
522
|
}>>;
|
|
483
523
|
}>>;
|
|
484
524
|
}>]>>>;
|
|
525
|
+
spacing: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
526
|
+
before: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
527
|
+
after: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
528
|
+
item: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
529
|
+
}>>;
|
|
530
|
+
start: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
531
|
+
alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
|
|
532
|
+
indent: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
533
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
534
|
+
hanging: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
535
|
+
}>]>>;
|
|
536
|
+
bullet: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
485
537
|
reference: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
486
538
|
levels: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
487
539
|
level: _sinclair_typebox.TNumber;
|
|
@@ -493,20 +545,15 @@ declare const ComponentDefaultsSchema: _sinclair_typebox.TObject<{
|
|
|
493
545
|
hanging: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
494
546
|
}>>;
|
|
495
547
|
start: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
548
|
+
font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
549
|
+
family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
550
|
+
size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
551
|
+
color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
552
|
+
bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
553
|
+
italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
554
|
+
underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
555
|
+
}>>;
|
|
496
556
|
}>>>;
|
|
497
|
-
format: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"decimal">, _sinclair_typebox.TLiteral<"upperRoman">, _sinclair_typebox.TLiteral<"lowerRoman">, _sinclair_typebox.TLiteral<"upperLetter">, _sinclair_typebox.TLiteral<"lowerLetter">, _sinclair_typebox.TLiteral<"bullet">, _sinclair_typebox.TLiteral<"ordinal">, _sinclair_typebox.TLiteral<"cardinalText">, _sinclair_typebox.TLiteral<"ordinalText">, _sinclair_typebox.TLiteral<"hex">, _sinclair_typebox.TLiteral<"chicago">, _sinclair_typebox.TLiteral<"ideographDigital">, _sinclair_typebox.TLiteral<"japaneseCounting">, _sinclair_typebox.TLiteral<"aiueo">, _sinclair_typebox.TLiteral<"iroha">, _sinclair_typebox.TLiteral<"decimalFullWidth">, _sinclair_typebox.TLiteral<"decimalHalfWidth">, _sinclair_typebox.TLiteral<"japaneseLegal">, _sinclair_typebox.TLiteral<"japaneseDigitalTenThousand">, _sinclair_typebox.TLiteral<"decimalEnclosedCircle">, _sinclair_typebox.TLiteral<"decimalFullWidth2">, _sinclair_typebox.TLiteral<"aiueoFullWidth">, _sinclair_typebox.TLiteral<"irohaFullWidth">, _sinclair_typebox.TLiteral<"decimalZero">, _sinclair_typebox.TLiteral<"ganada">, _sinclair_typebox.TLiteral<"chosung">, _sinclair_typebox.TLiteral<"decimalEnclosedFullstop">, _sinclair_typebox.TLiteral<"decimalEnclosedParen">, _sinclair_typebox.TLiteral<"decimalEnclosedCircleChinese">, _sinclair_typebox.TLiteral<"ideographEnclosedCircle">, _sinclair_typebox.TLiteral<"ideographTraditional">, _sinclair_typebox.TLiteral<"ideographZodiac">, _sinclair_typebox.TLiteral<"ideographZodiacTraditional">, _sinclair_typebox.TLiteral<"taiwaneseCounting">, _sinclair_typebox.TLiteral<"ideographLegalTraditional">, _sinclair_typebox.TLiteral<"taiwaneseCountingThousand">, _sinclair_typebox.TLiteral<"taiwaneseDigital">, _sinclair_typebox.TLiteral<"chineseCounting">, _sinclair_typebox.TLiteral<"chineseLegalSimplified">, _sinclair_typebox.TLiteral<"chineseCountingThousand">, _sinclair_typebox.TLiteral<"koreanDigital">, _sinclair_typebox.TLiteral<"koreanCounting">, _sinclair_typebox.TLiteral<"koreanLegal">, _sinclair_typebox.TLiteral<"koreanDigital2">, _sinclair_typebox.TLiteral<"vietnameseCounting">, _sinclair_typebox.TLiteral<"russianLower">, _sinclair_typebox.TLiteral<"russianUpper">, _sinclair_typebox.TLiteral<"none">, _sinclair_typebox.TLiteral<"numberInDash">, _sinclair_typebox.TLiteral<"hebrew1">, _sinclair_typebox.TLiteral<"hebrew2">, _sinclair_typebox.TLiteral<"arabicAlpha">, _sinclair_typebox.TLiteral<"arabicAbjad">, _sinclair_typebox.TLiteral<"hindiVowels">, _sinclair_typebox.TLiteral<"hindiConsonants">, _sinclair_typebox.TLiteral<"hindiNumbers">, _sinclair_typebox.TLiteral<"hindiCounting">, _sinclair_typebox.TLiteral<"thaiLetters">, _sinclair_typebox.TLiteral<"thaiNumbers">, _sinclair_typebox.TLiteral<"thaiCounting">]>, _sinclair_typebox.TLiteral<"numbered">, _sinclair_typebox.TLiteral<"none">]>>;
|
|
498
|
-
bullet: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
499
|
-
start: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
500
|
-
spacing: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
501
|
-
before: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
502
|
-
after: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
503
|
-
item: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
504
|
-
}>>;
|
|
505
|
-
alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
|
|
506
|
-
indent: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
507
|
-
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
508
|
-
hanging: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
509
|
-
}>]>>;
|
|
510
557
|
}>>;
|
|
511
558
|
}>;
|
|
512
559
|
type HeadingComponentDefaults = Static<typeof HeadingComponentDefaultsSchema>;
|
|
@@ -519,4 +566,4 @@ type ColumnsComponentDefaults = Static<typeof ColumnsComponentDefaultsSchema>;
|
|
|
519
566
|
type ListComponentDefaults = Static<typeof ListComponentDefaultsSchema>;
|
|
520
567
|
type ComponentDefaults = Static<typeof ComponentDefaultsSchema>;
|
|
521
568
|
|
|
522
|
-
export { type ColumnsComponentDefaults, ColumnsComponentDefaultsSchema, type ComponentDefaults, ComponentDefaultsSchema, type HeadingComponentDefaults, HeadingComponentDefaultsSchema, type ImageComponentDefaults, ImageComponentDefaultsSchema, type ListComponentDefaults, ListComponentDefaultsSchema, type ParagraphComponentDefaults, ParagraphComponentDefaultsSchema, type SectionComponentDefaults, SectionComponentDefaultsSchema, type StatisticComponentDefaults, StatisticComponentDefaultsSchema, type TableComponentDefaults, TableComponentDefaultsSchema };
|
|
569
|
+
export { type ColumnsComponentDefaults, ColumnsComponentDefaultsSchema, type ComponentDefaults, ComponentDefaultsSchema, type HeadingComponentDefaults, HeadingComponentDefaultsSchema, type ImageComponentDefaults, ImageComponentDefaultsSchema, type ListComponentDefaults, ListComponentDefaultsSchema, PER_INSTANCE_PROPS, type ParagraphComponentDefaults, ParagraphComponentDefaultsSchema, type PerInstanceProp, type SectionComponentDefaults, SectionComponentDefaultsSchema, type StatisticComponentDefaults, StatisticComponentDefaultsSchema, type TableComponentDefaults, TableComponentDefaultsSchema };
|
|
@@ -4,11 +4,12 @@ import {
|
|
|
4
4
|
HeadingComponentDefaultsSchema,
|
|
5
5
|
ImageComponentDefaultsSchema,
|
|
6
6
|
ListComponentDefaultsSchema,
|
|
7
|
+
PER_INSTANCE_PROPS,
|
|
7
8
|
ParagraphComponentDefaultsSchema,
|
|
8
9
|
SectionComponentDefaultsSchema,
|
|
9
10
|
StatisticComponentDefaultsSchema,
|
|
10
11
|
TableComponentDefaultsSchema
|
|
11
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-436TK3T4.js";
|
|
12
13
|
import "../chunk-7TTAAYQ5.js";
|
|
13
14
|
export {
|
|
14
15
|
ColumnsComponentDefaultsSchema,
|
|
@@ -16,6 +17,7 @@ export {
|
|
|
16
17
|
HeadingComponentDefaultsSchema,
|
|
17
18
|
ImageComponentDefaultsSchema,
|
|
18
19
|
ListComponentDefaultsSchema,
|
|
20
|
+
PER_INSTANCE_PROPS,
|
|
19
21
|
ParagraphComponentDefaultsSchema,
|
|
20
22
|
SectionComponentDefaultsSchema,
|
|
21
23
|
StatisticComponentDefaultsSchema,
|
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
getContentComponents,
|
|
10
10
|
getStandardComponent,
|
|
11
11
|
isStandardComponent
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-Z5WQPM4B.js";
|
|
13
|
+
import "../chunk-CQHH44HX.js";
|
|
14
|
+
import "../chunk-436TK3T4.js";
|
|
15
15
|
import "../chunk-7TTAAYQ5.js";
|
|
16
16
|
export {
|
|
17
17
|
STANDARD_COMPONENTS_REGISTRY,
|