@json-to-office/core-docx 1.11.0 → 2.1.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 (39) hide show
  1. package/dist/core/tableModel.d.ts +1 -1
  2. package/dist/core/tableModel.d.ts.map +1 -1
  3. package/dist/index.d.ts +1 -1
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +357 -548
  6. package/dist/index.js.map +1 -1
  7. package/dist/plugin/example/index.d.ts.map +1 -1
  8. package/dist/plugin/example/index.js +586 -863
  9. package/dist/plugin/example/index.js.map +1 -1
  10. package/dist/plugin/example/plugin-demo.json +16 -93
  11. package/dist/plugin/example/weather.component.d.ts +73 -9
  12. package/dist/plugin/example/weather.component.d.ts.map +1 -1
  13. package/dist/styles/index.d.ts +1 -1
  14. package/dist/styles/index.d.ts.map +1 -1
  15. package/dist/templates/documents/field-review.docx.json +1148 -0
  16. package/dist/templates/documents/index.d.ts +2 -2
  17. package/dist/templates/documents/index.d.ts.map +1 -1
  18. package/dist/templates/documents/practice-note.docx.json +917 -0
  19. package/dist/templates/themes/devportal.docx.theme.json +110 -44
  20. package/dist/templates/themes/index.d.ts +2 -2
  21. package/dist/templates/themes/index.d.ts.map +1 -1
  22. package/dist/templates/themes/minimal.docx.theme.json +124 -127
  23. package/dist/templates/themes/vermilion.docx.theme.json +82 -1
  24. package/dist/tsconfig.tsbuildinfo +1 -1
  25. package/dist/utils/listLevels.d.ts.map +1 -1
  26. package/package.json +3 -3
  27. package/dist/plugin/example/columns-layout.component.d.ts +0 -29
  28. package/dist/plugin/example/columns-layout.component.d.ts.map +0 -1
  29. package/dist/plugin/example/eldermoor-census.component.d.ts +0 -32
  30. package/dist/plugin/example/eldermoor-census.component.d.ts.map +0 -1
  31. package/dist/plugin/example/nested-section.component.d.ts +0 -16
  32. package/dist/plugin/example/nested-section.component.d.ts.map +0 -1
  33. package/dist/plugin/example/text-space-after.component.d.ts +0 -22
  34. package/dist/plugin/example/text-space-after.component.d.ts.map +0 -1
  35. package/dist/templates/documents/proposal.docx.json +0 -8205
  36. package/dist/templates/documents/technical-guide.docx.json +0 -10220
  37. package/dist/templates/themes/apex.docx.theme.json +0 -117
  38. package/dist/templates/themes/corporate.docx.theme.json +0 -114
  39. package/dist/templates/themes/modern.docx.theme.json +0 -109
@@ -1 +1 @@
1
- {"version":3,"file":"listLevels.d.ts","sourceRoot":"","sources":["../../src/utils/listLevels.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,wDAAwD;AACxD,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAC,MAAM,GAAG;QAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;IAC1D,MAAM,CAAC,EAAE,SAAS,eAAe,EAAE,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACvD;AAmFD;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,SAAS,CAAC,MAAM,GAAG;IAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,EAAE,GAAG,SAAS,GACnE,MAAM,CAYR;AA0DD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,eAAe,GAAG,eAAe,EAAE,CAW3E"}
1
+ {"version":3,"file":"listLevels.d.ts","sourceRoot":"","sources":["../../src/utils/listLevels.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,wDAAwD;AACxD,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAC,MAAM,GAAG;QAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;IAC1D,MAAM,CAAC,EAAE,SAAS,eAAe,EAAE,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACvD;AAwFD;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,SAAS,CAAC,MAAM,GAAG;IAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,EAAE,GAAG,SAAS,GACnE,MAAM,CAYR;AA0DD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,eAAe,GAAG,eAAe,EAAE,CAW3E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@json-to-office/core-docx",
3
- "version": "1.11.0",
3
+ "version": "2.1.0",
4
4
  "description": "Core DOCX document generation engine",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -25,8 +25,8 @@
25
25
  "date-fns": "3.6.0",
26
26
  "probe-image-size": "7.2.3",
27
27
  "@json-to-office/quality": "^1.9.0",
28
- "@json-to-office/shared": "^1.6.0",
29
- "@json-to-office/shared-docx": "^1.10.0"
28
+ "@json-to-office/shared": "^1.11.2",
29
+ "@json-to-office/shared-docx": "^2.0.0"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "docx": "9.7.1"
@@ -1,29 +0,0 @@
1
- import type { ComponentDefinition } from '@json-to-office/shared-docx';
2
- /**
3
- * Columns layout component that renders a list of components in a 2-column layout
4
- *
5
- * @example
6
- * ```json
7
- * {
8
- * "name": "columnsLayout",
9
- * "children": [
10
- * {
11
- * "name": "paragraph",
12
- * "props": {
13
- * "content": "Left column content"
14
- * }
15
- * },
16
- * {
17
- * "name": "paragraph",
18
- * "props": {
19
- * "content": "Right column content"
20
- * }
21
- * }
22
- * ]
23
- * }
24
- * ```
25
- */
26
- export declare const columnsLayoutComponent: import("../createComponent").CustomComponent<ComponentDefinition, {
27
- '1.0.0': import("../createComponent").ComponentVersion<ComponentDefinition, import("@sinclair/typebox").TObject<{}>>;
28
- }, "columnsLayout">;
29
- //# sourceMappingURL=columns-layout.component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"columns-layout.component.d.ts","sourceRoot":"","sources":["../../../src/plugin/example/columns-layout.component.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAavE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,sBAAsB;;mBAqBjC,CAAC"}
@@ -1,32 +0,0 @@
1
- import type { ComponentDefinition } from '@json-to-office/shared-docx';
2
- /**
3
- * @example
4
- * ```json
5
- * {
6
- * "name": "eldermoor-census",
7
- * "props": { "title": "Regno di Valebrook", "manaPct": "51,2%", "castles": "3.120" }
8
- * }
9
- * ```
10
- */
11
- export declare const eldermoorCensusComponent: import("../createComponent").CustomComponent<ComponentDefinition, {
12
- '1.0.0': import("../createComponent").ComponentVersion<ComponentDefinition, import("@sinclair/typebox").TObject<{
13
- title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
14
- manaPct: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
15
- faithfulSubjects: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
16
- swornGuilds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
17
- mappedTerritoriesPct: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
18
- castles: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
19
- outposts: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
20
- watchtowers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
21
- sovereignTreasury: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
22
- warChest: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
23
- marketMint: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
24
- royalServants: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
25
- servantsLeft: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
26
- servantsRight: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
27
- width: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
28
- alignment: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"left">, import("@sinclair/typebox").TLiteral<"center">, import("@sinclair/typebox").TLiteral<"right">]>>;
29
- caption: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
30
- }>>;
31
- }, "eldermoor-census">;
32
- //# sourceMappingURL=eldermoor-census.component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"eldermoor-census.component.d.ts","sourceRoot":"","sources":["../../../src/plugin/example/eldermoor-census.component.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAgNvE;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;sBAwBnC,CAAC"}
@@ -1,16 +0,0 @@
1
- import type { ComponentDefinition } from '@json-to-office/shared-docx';
2
- /**
3
- * Nested sections component that generates nested sections for embedding in documents
4
- *
5
- * @example
6
- * ```json
7
- * {
8
- * "name": "nestedSections",
9
- * "props": {}
10
- * }
11
- * ```
12
- */
13
- export declare const nestedSectionsComponent: import("../createComponent").CustomComponent<ComponentDefinition, {
14
- '1.0.0': import("../createComponent").ComponentVersion<ComponentDefinition, import("@sinclair/typebox").TObject<{}>>;
15
- }, "nestedSections">;
16
- //# sourceMappingURL=nested-section.component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nested-section.component.d.ts","sourceRoot":"","sources":["../../../src/plugin/example/nested-section.component.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAYvE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,uBAAuB;;oBAgFlC,CAAC"}
@@ -1,22 +0,0 @@
1
- import type { ComponentDefinition } from '@json-to-office/shared-docx';
2
- /**
3
- * Text space after component that adds space after text
4
- *
5
- * @example
6
- * ```json
7
- * {
8
- * "name": "text-space-after",
9
- * "props": {
10
- * "text": "Hello, world!",
11
- * "spaceAfter": 100
12
- * }
13
- * }
14
- * ```
15
- */
16
- export declare const textSpaceAfterComponent: import("../createComponent").CustomComponent<ComponentDefinition, {
17
- '1.0.0': import("../createComponent").ComponentVersion<ComponentDefinition, import("@sinclair/typebox").TObject<{
18
- text: import("@sinclair/typebox").TString;
19
- spaceAfter: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
20
- }>>;
21
- }, "text-space-after">;
22
- //# sourceMappingURL=text-space-after.component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"text-space-after.component.d.ts","sourceRoot":"","sources":["../../../src/plugin/example/text-space-after.component.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAsBvE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,uBAAuB;;;;;sBAwBlC,CAAC"}