@json-to-office/shared-docx 0.17.0 → 0.19.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.
Files changed (44) hide show
  1. package/dist/{chunk-NRDLQSF3.js → chunk-2NLQPZ4G.js} +25 -5
  2. package/dist/chunk-2NLQPZ4G.js.map +1 -0
  3. package/dist/{chunk-G6C2WMTW.js → chunk-5KQFVW6L.js} +2 -2
  4. package/dist/{chunk-WIWVYW2G.js → chunk-65U4X47S.js} +27 -5
  5. package/dist/chunk-65U4X47S.js.map +1 -0
  6. package/dist/{chunk-Y5KKRSXX.js → chunk-6YSWOGOA.js} +2 -2
  7. package/dist/{chunk-TTT3L236.js → chunk-7VT4KP6J.js} +2 -2
  8. package/dist/{chunk-B66TAIK6.js → chunk-E5YI66B3.js} +16 -1
  9. package/dist/chunk-E5YI66B3.js.map +1 -0
  10. package/dist/{chunk-CVIUFVXH.js → chunk-IOSZEILS.js} +2 -2
  11. package/dist/{chunk-XVCODWSU.js → chunk-QNIC7H4H.js} +12 -4
  12. package/dist/{chunk-XVCODWSU.js.map → chunk-QNIC7H4H.js.map} +1 -1
  13. package/dist/{chunk-V5DHEETI.js → chunk-TIQSCGX7.js} +47 -3
  14. package/dist/chunk-TIQSCGX7.js.map +1 -0
  15. package/dist/{chunk-3XWQYKTW.js → chunk-U574TQ3W.js} +6 -6
  16. package/dist/{chunk-WZPPVJN6.js → chunk-ZEJU25KW.js} +2 -2
  17. package/dist/index.d.ts +16 -0
  18. package/dist/index.js +11 -11
  19. package/dist/schemas/api.js +5 -5
  20. package/dist/schemas/component-defaults.d.ts +14 -0
  21. package/dist/schemas/component-defaults.js +2 -2
  22. package/dist/schemas/component-registry.js +3 -3
  23. package/dist/schemas/components.d.ts +30 -0
  24. package/dist/schemas/components.js +4 -4
  25. package/dist/schemas/document.js +6 -6
  26. package/dist/schemas/export.js +4 -4
  27. package/dist/schemas/font.d.ts +21 -1
  28. package/dist/schemas/font.js +7 -1
  29. package/dist/schemas/generator.js +4 -4
  30. package/dist/schemas/theme.d.ts +8 -0
  31. package/dist/schemas/theme.js +3 -3
  32. package/dist/validation/unified/index.d.ts +16 -0
  33. package/dist/validation/unified/index.js +7 -7
  34. package/package.json +2 -2
  35. package/dist/chunk-B66TAIK6.js.map +0 -1
  36. package/dist/chunk-NRDLQSF3.js.map +0 -1
  37. package/dist/chunk-V5DHEETI.js.map +0 -1
  38. package/dist/chunk-WIWVYW2G.js.map +0 -1
  39. /package/dist/{chunk-G6C2WMTW.js.map → chunk-5KQFVW6L.js.map} +0 -0
  40. /package/dist/{chunk-Y5KKRSXX.js.map → chunk-6YSWOGOA.js.map} +0 -0
  41. /package/dist/{chunk-TTT3L236.js.map → chunk-7VT4KP6J.js.map} +0 -0
  42. /package/dist/{chunk-CVIUFVXH.js.map → chunk-IOSZEILS.js.map} +0 -0
  43. /package/dist/{chunk-3XWQYKTW.js.map → chunk-U574TQ3W.js.map} +0 -0
  44. /package/dist/{chunk-WZPPVJN6.js.map → chunk-ZEJU25KW.js.map} +0 -0
@@ -9,9 +9,9 @@ import {
9
9
  getContentComponents,
10
10
  getStandardComponent,
11
11
  isStandardComponent
12
- } from "../chunk-WIWVYW2G.js";
13
- import "../chunk-NRDLQSF3.js";
14
- import "../chunk-B66TAIK6.js";
12
+ } from "../chunk-65U4X47S.js";
13
+ import "../chunk-2NLQPZ4G.js";
14
+ import "../chunk-E5YI66B3.js";
15
15
  export {
16
16
  STANDARD_COMPONENTS_REGISTRY,
17
17
  createAllComponentSchemas,
@@ -144,6 +144,9 @@ declare const createReportPropsSchema: (_moduleRef?: TSchema) => _sinclair_typeb
144
144
  }>>;
145
145
  family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
146
146
  }>>;
147
+ language: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
148
+ noProof: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
149
+ noProofWords: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
147
150
  alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
148
151
  pageBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
149
152
  columnBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
@@ -178,6 +181,9 @@ declare const createReportPropsSchema: (_moduleRef?: TSchema) => _sinclair_typeb
178
181
  }>>;
179
182
  family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
180
183
  }>>;
184
+ language: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
185
+ noProof: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
186
+ noProofWords: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
181
187
  alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
182
188
  pageBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
183
189
  columnBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
@@ -208,6 +214,7 @@ declare const createReportPropsSchema: (_moduleRef?: TSchema) => _sinclair_typeb
208
214
  image: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
209
215
  path: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
210
216
  base64: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
217
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
211
218
  alt: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
212
219
  width: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
213
220
  height: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
@@ -339,6 +346,8 @@ declare const createReportPropsSchema: (_moduleRef?: TSchema) => _sinclair_typeb
339
346
  }>]>>;
340
347
  }>>;
341
348
  }>>;
349
+ language: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
350
+ noProofWords: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
342
351
  trackRevisions: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
343
352
  metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
344
353
  title: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
@@ -388,6 +397,9 @@ declare const ReportPropsSchema: _sinclair_typebox.TObject<{
388
397
  }>>;
389
398
  family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
390
399
  }>>;
400
+ language: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
401
+ noProof: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
402
+ noProofWords: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
391
403
  alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
392
404
  pageBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
393
405
  columnBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
@@ -422,6 +434,9 @@ declare const ReportPropsSchema: _sinclair_typebox.TObject<{
422
434
  }>>;
423
435
  family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
424
436
  }>>;
437
+ language: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
438
+ noProof: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
439
+ noProofWords: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
425
440
  alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
426
441
  pageBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
427
442
  columnBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
@@ -452,6 +467,7 @@ declare const ReportPropsSchema: _sinclair_typebox.TObject<{
452
467
  image: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
453
468
  path: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
454
469
  base64: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
470
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
455
471
  alt: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
456
472
  width: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
457
473
  height: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
@@ -583,6 +599,8 @@ declare const ReportPropsSchema: _sinclair_typebox.TObject<{
583
599
  }>]>>;
584
600
  }>>;
585
601
  }>>;
602
+ language: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
603
+ noProofWords: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
586
604
  trackRevisions: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
587
605
  metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
588
606
  title: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
@@ -686,6 +704,9 @@ declare const HeadingPropsSchema: _sinclair_typebox.TObject<{
686
704
  }>>;
687
705
  family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
688
706
  }>>;
707
+ language: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
708
+ noProof: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
709
+ noProofWords: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
689
710
  alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
690
711
  spacing: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
691
712
  before: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
@@ -735,6 +756,9 @@ declare const ParagraphPropsSchema: _sinclair_typebox.TObject<{
735
756
  family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
736
757
  }>>;
737
758
  themeStyle: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
759
+ language: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
760
+ noProof: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
761
+ noProofWords: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
738
762
  boldColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
739
763
  spacing: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
740
764
  before: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
@@ -778,6 +802,7 @@ type ParagraphProps = Static<typeof ParagraphPropsSchema>;
778
802
  declare const ImagePropsSchema: _sinclair_typebox.TObject<{
779
803
  path: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
780
804
  base64: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
805
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
781
806
  alt: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
782
807
  width: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
783
808
  height: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
@@ -835,6 +860,11 @@ declare const HighchartsPropsSchema: _sinclair_typebox.TObject<{
835
860
  }>;
836
861
  }>]>;
837
862
  scale: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
863
+ resources: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
864
+ css: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
865
+ js: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
866
+ files: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
867
+ }>>;
838
868
  serverUrl: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
839
869
  width: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
840
870
  height: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ComponentDefinitionSchema,
3
3
  StandardComponentDefinitionSchema
4
- } from "../chunk-G6C2WMTW.js";
4
+ } from "../chunk-5KQFVW6L.js";
5
5
  import {
6
6
  HighchartsPropsSchema,
7
7
  ReportPropsSchema,
@@ -15,7 +15,7 @@ import {
15
15
  VisualCanvasSchema,
16
16
  VisualPropsSchema,
17
17
  createReportPropsSchema
18
- } from "../chunk-WIWVYW2G.js";
18
+ } from "../chunk-65U4X47S.js";
19
19
  import {
20
20
  AlignmentSchema,
21
21
  BaseComponentFields,
@@ -50,8 +50,8 @@ import {
50
50
  VerticalPositionRelativeFromSchema,
51
51
  createSectionPropsSchema,
52
52
  createTablePropsSchema
53
- } from "../chunk-NRDLQSF3.js";
54
- import "../chunk-B66TAIK6.js";
53
+ } from "../chunk-2NLQPZ4G.js";
54
+ import "../chunk-E5YI66B3.js";
55
55
  export {
56
56
  AlignmentSchema,
57
57
  BaseComponentFields,
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  JSON_SCHEMA_URLS,
3
3
  JsonComponentDefinitionSchema
4
- } from "../chunk-TTT3L236.js";
4
+ } from "../chunk-7VT4KP6J.js";
5
5
  import {
6
6
  validateDocumentWithSchema,
7
7
  validateJsonComponent
8
- } from "../chunk-V5DHEETI.js";
9
- import "../chunk-G6C2WMTW.js";
8
+ } from "../chunk-TIQSCGX7.js";
9
+ import "../chunk-5KQFVW6L.js";
10
10
  import "../chunk-7GGTZ4TA.js";
11
- import "../chunk-WIWVYW2G.js";
12
- import "../chunk-NRDLQSF3.js";
13
- import "../chunk-B66TAIK6.js";
11
+ import "../chunk-65U4X47S.js";
12
+ import "../chunk-2NLQPZ4G.js";
13
+ import "../chunk-E5YI66B3.js";
14
14
  export {
15
15
  JSON_SCHEMA_URLS,
16
16
  JsonComponentDefinitionSchema,
@@ -6,10 +6,10 @@ import {
6
6
  createComponentSchema,
7
7
  exportSchemaToFile,
8
8
  fixSchemaReferences
9
- } from "../chunk-WZPPVJN6.js";
10
- import "../chunk-WIWVYW2G.js";
11
- import "../chunk-NRDLQSF3.js";
12
- import "../chunk-B66TAIK6.js";
9
+ } from "../chunk-ZEJU25KW.js";
10
+ import "../chunk-65U4X47S.js";
11
+ import "../chunk-2NLQPZ4G.js";
12
+ import "../chunk-E5YI66B3.js";
13
13
  export {
14
14
  BASE_SCHEMA_METADATA,
15
15
  COMPONENT_METADATA,
@@ -8,6 +8,26 @@ import * as _sinclair_typebox from '@sinclair/typebox';
8
8
  declare const HexColorSchema: _sinclair_typebox.TString;
9
9
  /** Like HexColorSchema but also accepts "transparent" (used for backgroundColor) */
10
10
  declare const HexColorOrTransparentSchema: _sinclair_typebox.TString;
11
+ /**
12
+ * BCP-47 / IETF language tag used by Word for spell- and grammar-checking
13
+ * (e.g. "en-US", "fr-FR", "de-DE"). Set on the document to change the default
14
+ * proofing language, or on a component to override it for that text only.
15
+ */
16
+ declare const LanguageSchema: _sinclair_typebox.TString;
17
+ /**
18
+ * Disable spell/grammar checking ("do not proof") for the text, e.g. code
19
+ * snippets, identifiers, or product names Word would otherwise flag.
20
+ */
21
+ declare const NoProofSchema: _sinclair_typebox.TBoolean;
22
+ /**
23
+ * A "known words" allowlist: every whole-word, case-insensitive occurrence of
24
+ * these terms is wrapped in a no-proof run so Word never flags them, while the
25
+ * surrounding text is still spell-checked. Acts as a portable, document-embedded
26
+ * stand-in for a custom dictionary (Word's real dictionaries can't be shipped
27
+ * inside a .docx). Set on the document to apply everywhere; a component's list
28
+ * is merged with (added to) the document list.
29
+ */
30
+ declare const NoProofWordsSchema: _sinclair_typebox.TArray<_sinclair_typebox.TString>;
11
31
  /**
12
32
  * Shared schema for text formatting properties.
13
33
  * Used as base for both font definitions and style definitions.
@@ -58,4 +78,4 @@ declare const FontDefinitionSchema: _sinclair_typebox.TObject<{
58
78
  family: _sinclair_typebox.TString;
59
79
  }>;
60
80
 
61
- export { FontDefinitionSchema, HexColorOrTransparentSchema, HexColorSchema, TextFormattingPropertiesSchema };
81
+ export { FontDefinitionSchema, HexColorOrTransparentSchema, HexColorSchema, LanguageSchema, NoProofSchema, NoProofWordsSchema, TextFormattingPropertiesSchema };
@@ -2,12 +2,18 @@ import {
2
2
  FontDefinitionSchema,
3
3
  HexColorOrTransparentSchema,
4
4
  HexColorSchema,
5
+ LanguageSchema,
6
+ NoProofSchema,
7
+ NoProofWordsSchema,
5
8
  TextFormattingPropertiesSchema
6
- } from "../chunk-B66TAIK6.js";
9
+ } from "../chunk-E5YI66B3.js";
7
10
  export {
8
11
  FontDefinitionSchema,
9
12
  HexColorOrTransparentSchema,
10
13
  HexColorSchema,
14
+ LanguageSchema,
15
+ NoProofSchema,
16
+ NoProofWordsSchema,
11
17
  TextFormattingPropertiesSchema
12
18
  };
13
19
  //# sourceMappingURL=font.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  generateUnifiedDocumentSchema
3
- } from "../chunk-Y5KKRSXX.js";
4
- import "../chunk-WIWVYW2G.js";
5
- import "../chunk-NRDLQSF3.js";
6
- import "../chunk-B66TAIK6.js";
3
+ } from "../chunk-6YSWOGOA.js";
4
+ import "../chunk-65U4X47S.js";
5
+ import "../chunk-2NLQPZ4G.js";
6
+ import "../chunk-E5YI66B3.js";
7
7
  export {
8
8
  generateUnifiedDocumentSchema
9
9
  };
@@ -2159,6 +2159,9 @@ declare const ThemeConfigSchema: _sinclair_typebox.TObject<{
2159
2159
  }>>;
2160
2160
  family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
2161
2161
  }>>;
2162
+ language: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
2163
+ noProof: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
2164
+ noProofWords: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
2162
2165
  alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
2163
2166
  pageBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
2164
2167
  columnBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
@@ -2193,6 +2196,9 @@ declare const ThemeConfigSchema: _sinclair_typebox.TObject<{
2193
2196
  }>>;
2194
2197
  family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
2195
2198
  }>>;
2199
+ language: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
2200
+ noProof: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
2201
+ noProofWords: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
2196
2202
  alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
2197
2203
  pageBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
2198
2204
  columnBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
@@ -2223,6 +2229,7 @@ declare const ThemeConfigSchema: _sinclair_typebox.TObject<{
2223
2229
  image: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
2224
2230
  path: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
2225
2231
  base64: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
2232
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
2226
2233
  alt: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
2227
2234
  width: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
2228
2235
  height: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
@@ -2354,6 +2361,7 @@ declare const ThemeConfigSchema: _sinclair_typebox.TObject<{
2354
2361
  }>]>>;
2355
2362
  }>>;
2356
2363
  }>>;
2364
+ noProofWords: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
2357
2365
  }>;
2358
2366
  type ThemeConfigJson = Static<typeof ThemeConfigSchema>;
2359
2367
  type DocumentMargins = Static<typeof DocumentMarginsSchema>;
@@ -7,7 +7,7 @@ import {
7
7
  StyleDefinitionsSchema,
8
8
  ThemeConfigSchema,
9
9
  isValidThemeConfig
10
- } from "../chunk-XVCODWSU.js";
10
+ } from "../chunk-QNIC7H4H.js";
11
11
  import {
12
12
  ColumnsComponentDefaultsSchema,
13
13
  ComponentDefaultsSchema,
@@ -18,8 +18,8 @@ import {
18
18
  SectionComponentDefaultsSchema,
19
19
  StatisticComponentDefaultsSchema,
20
20
  TableComponentDefaultsSchema
21
- } from "../chunk-NRDLQSF3.js";
22
- import "../chunk-B66TAIK6.js";
21
+ } from "../chunk-2NLQPZ4G.js";
22
+ import "../chunk-E5YI66B3.js";
23
23
  export {
24
24
  ColumnsComponentDefaultsSchema,
25
25
  ComponentDefaultsSchema,
@@ -145,6 +145,9 @@ declare const COMPONENT_SCHEMA_MAP: {
145
145
  }>>;
146
146
  family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
147
147
  }>>;
148
+ language: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
149
+ noProof: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
150
+ noProofWords: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
148
151
  alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
149
152
  pageBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
150
153
  columnBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
@@ -179,6 +182,9 @@ declare const COMPONENT_SCHEMA_MAP: {
179
182
  }>>;
180
183
  family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
181
184
  }>>;
185
+ language: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
186
+ noProof: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
187
+ noProofWords: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
182
188
  alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
183
189
  pageBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
184
190
  columnBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
@@ -209,6 +215,7 @@ declare const COMPONENT_SCHEMA_MAP: {
209
215
  image: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
210
216
  path: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
211
217
  base64: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
218
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
212
219
  alt: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
213
220
  width: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
214
221
  height: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
@@ -344,6 +351,8 @@ declare const COMPONENT_SCHEMA_MAP: {
344
351
  }>]>>;
345
352
  }>>;
346
353
  }>>;
354
+ language: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
355
+ noProofWords: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
347
356
  trackRevisions: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
348
357
  metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
349
358
  title: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
@@ -408,6 +417,9 @@ declare const COMPONENT_SCHEMA_MAP: {
408
417
  }>>;
409
418
  family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
410
419
  }>>;
420
+ language: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
421
+ noProof: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
422
+ noProofWords: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
411
423
  alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
412
424
  spacing: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
413
425
  before: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
@@ -455,6 +467,9 @@ declare const COMPONENT_SCHEMA_MAP: {
455
467
  family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
456
468
  }>>;
457
469
  themeStyle: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
470
+ language: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
471
+ noProof: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
472
+ noProofWords: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
458
473
  boldColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
459
474
  spacing: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
460
475
  before: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
@@ -503,6 +518,7 @@ declare const COMPONENT_SCHEMA_MAP: {
503
518
  readonly image: _sinclair_typebox.TObject<{
504
519
  path: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
505
520
  base64: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
521
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
506
522
  alt: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
507
523
  width: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
508
524
  height: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
@@ -48,8 +48,8 @@ import {
48
48
  validateTheme,
49
49
  validateThemeJson,
50
50
  validateThemeWithEnhancement
51
- } from "../../chunk-3XWQYKTW.js";
52
- import "../../chunk-XVCODWSU.js";
51
+ } from "../../chunk-U574TQ3W.js";
52
+ import "../../chunk-QNIC7H4H.js";
53
53
  import {
54
54
  comprehensiveValidateDocument,
55
55
  createDocumentValidator,
@@ -71,12 +71,12 @@ import {
71
71
  validateJsonComponent,
72
72
  validateJsonDocument,
73
73
  validateWithEnhancement
74
- } from "../../chunk-V5DHEETI.js";
75
- import "../../chunk-G6C2WMTW.js";
74
+ } from "../../chunk-TIQSCGX7.js";
75
+ import "../../chunk-5KQFVW6L.js";
76
76
  import "../../chunk-7GGTZ4TA.js";
77
- import "../../chunk-WIWVYW2G.js";
78
- import "../../chunk-NRDLQSF3.js";
79
- import "../../chunk-B66TAIK6.js";
77
+ import "../../chunk-65U4X47S.js";
78
+ import "../../chunk-2NLQPZ4G.js";
79
+ import "../../chunk-E5YI66B3.js";
80
80
  export {
81
81
  DEFAULT_ERROR_CONFIG,
82
82
  DOC_LINKS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@json-to-office/shared-docx",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "description": "DOCX-specific schemas, component registry and validation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -31,7 +31,7 @@
31
31
  "@sinclair/typebox": "0.34.38",
32
32
  "docx": "9.5.1",
33
33
  "@json-to-office/shared": "^0.16.0",
34
- "@json-to-office/shared-pptx": "^0.16.0"
34
+ "@json-to-office/shared-pptx": "^0.19.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "20.11.0",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/schemas/font.ts"],"sourcesContent":["/**\n * Font-related Schemas (shared)\n * Extracted to avoid circular dependencies between theme and module schemas.\n */\n\nimport { Type } from '@sinclair/typebox';\nimport { FontFamilyNameSchema } from '@json-to-office/shared';\n\n// ----------------------------------------------------------------------------\n// Shared Color Schema\n// ----------------------------------------------------------------------------\n\n/** Hex color with # prefix (e.g. \"#000000\") or a theme color name (e.g. \"primary\") */\nexport const HexColorSchema = Type.String({\n pattern: '^(#[0-9A-Fa-f]{6}|[a-zA-Z][a-zA-Z0-9]*)$',\n description: 'Hex color with # prefix (e.g. \"#000000\") or theme color name',\n});\n\n/** Like HexColorSchema but also accepts \"transparent\" (used for backgroundColor) */\nexport const HexColorOrTransparentSchema = Type.String({\n pattern: '^(transparent|#[0-9A-Fa-f]{6}|[a-zA-Z][a-zA-Z0-9]*)$',\n description: 'Hex color with # prefix, theme color name, or \"transparent\"',\n});\n\n// ----------------------------------------------------------------------------\n// Shared Text Formatting Properties\n// ----------------------------------------------------------------------------\n\n/**\n * Shared schema for text formatting properties.\n * Used as base for both font definitions and style definitions.\n */\nexport const TextFormattingPropertiesSchema = Type.Object(\n {\n size: Type.Optional(Type.Number({ minimum: 8, maximum: 72 })),\n color: Type.Optional(HexColorSchema),\n bold: Type.Optional(Type.Boolean()),\n fontWeight: Type.Optional(\n Type.Integer({\n minimum: 100,\n maximum: 900,\n description:\n 'Per-run weight (100–900). Any integer accepted; renderer picks the closest embedded variant via CSS font-matching. `bold: true` is shorthand for `fontWeight: 700`; if both are set, `fontWeight` wins.',\n })\n ),\n italic: Type.Optional(Type.Boolean()),\n underline: Type.Optional(Type.Boolean()),\n lineSpacing: Type.Optional(\n Type.Object(\n {\n type: Type.Union([\n Type.Literal('single'),\n Type.Literal('atLeast'),\n Type.Literal('exactly'),\n Type.Literal('double'),\n Type.Literal('multiple'),\n ]),\n value: Type.Optional(Type.Number({ minimum: 0 })),\n },\n { additionalProperties: false }\n )\n ),\n spacing: Type.Optional(\n Type.Object(\n {\n before: Type.Optional(Type.Number({ minimum: 0 })),\n after: Type.Optional(Type.Number({ minimum: 0 })),\n },\n { additionalProperties: false }\n )\n ),\n characterSpacing: Type.Optional(\n Type.Object(\n {\n type: Type.Union([\n Type.Literal('condensed'),\n Type.Literal('expanded'),\n ]),\n value: Type.Number(),\n },\n { additionalProperties: false }\n )\n ),\n },\n { additionalProperties: false }\n);\n\n// ----------------------------------------------------------------------------\n// Font Definition Schema\n// ----------------------------------------------------------------------------\n\n/**\n * Font definition schema with full text formatting properties.\n * All properties except 'family' are optional.\n */\nexport const FontDefinitionSchema = Type.Object(\n {\n family: FontFamilyNameSchema,\n ...TextFormattingPropertiesSchema.properties,\n },\n {\n description:\n 'Font definition with family and optional formatting properties',\n additionalProperties: false,\n }\n);\n"],"mappings":";AAKA,SAAS,YAAY;AACrB,SAAS,4BAA4B;AAO9B,IAAM,iBAAiB,KAAK,OAAO;AAAA,EACxC,SAAS;AAAA,EACT,aAAa;AACf,CAAC;AAGM,IAAM,8BAA8B,KAAK,OAAO;AAAA,EACrD,SAAS;AAAA,EACT,aAAa;AACf,CAAC;AAUM,IAAM,iCAAiC,KAAK;AAAA,EACjD;AAAA,IACE,MAAM,KAAK,SAAS,KAAK,OAAO,EAAE,SAAS,GAAG,SAAS,GAAG,CAAC,CAAC;AAAA,IAC5D,OAAO,KAAK,SAAS,cAAc;AAAA,IACnC,MAAM,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,IAClC,YAAY,KAAK;AAAA,MACf,KAAK,QAAQ;AAAA,QACX,SAAS;AAAA,QACT,SAAS;AAAA,QACT,aACE;AAAA,MACJ,CAAC;AAAA,IACH;AAAA,IACA,QAAQ,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,IACpC,WAAW,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,IACvC,aAAa,KAAK;AAAA,MAChB,KAAK;AAAA,QACH;AAAA,UACE,MAAM,KAAK,MAAM;AAAA,YACf,KAAK,QAAQ,QAAQ;AAAA,YACrB,KAAK,QAAQ,SAAS;AAAA,YACtB,KAAK,QAAQ,SAAS;AAAA,YACtB,KAAK,QAAQ,QAAQ;AAAA,YACrB,KAAK,QAAQ,UAAU;AAAA,UACzB,CAAC;AAAA,UACD,OAAO,KAAK,SAAS,KAAK,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC;AAAA,QAClD;AAAA,QACA,EAAE,sBAAsB,MAAM;AAAA,MAChC;AAAA,IACF;AAAA,IACA,SAAS,KAAK;AAAA,MACZ,KAAK;AAAA,QACH;AAAA,UACE,QAAQ,KAAK,SAAS,KAAK,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC;AAAA,UACjD,OAAO,KAAK,SAAS,KAAK,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC;AAAA,QAClD;AAAA,QACA,EAAE,sBAAsB,MAAM;AAAA,MAChC;AAAA,IACF;AAAA,IACA,kBAAkB,KAAK;AAAA,MACrB,KAAK;AAAA,QACH;AAAA,UACE,MAAM,KAAK,MAAM;AAAA,YACf,KAAK,QAAQ,WAAW;AAAA,YACxB,KAAK,QAAQ,UAAU;AAAA,UACzB,CAAC;AAAA,UACD,OAAO,KAAK,OAAO;AAAA,QACrB;AAAA,QACA,EAAE,sBAAsB,MAAM;AAAA,MAChC;AAAA,IACF;AAAA,EACF;AAAA,EACA,EAAE,sBAAsB,MAAM;AAChC;AAUO,IAAM,uBAAuB,KAAK;AAAA,EACvC;AAAA,IACE,QAAQ;AAAA,IACR,GAAG,+BAA+B;AAAA,EACpC;AAAA,EACA;AAAA,IACE,aACE;AAAA,IACF,sBAAsB;AAAA,EACxB;AACF;","names":[]}