@json-to-office/core-docx 0.7.0 → 0.8.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/components/columns.d.ts.map +1 -1
- package/dist/components/heading.d.ts.map +1 -1
- package/dist/components/image.d.ts.map +1 -1
- package/dist/components/list.d.ts.map +1 -1
- package/dist/components/paragraph.d.ts.map +1 -1
- package/dist/components/statistic.d.ts +1 -1
- package/dist/components/statistic.d.ts.map +1 -1
- package/dist/core/structure.d.ts.map +1 -1
- package/dist/index.js +211 -145
- package/dist/index.js.map +1 -1
- package/dist/plugin/example/index.js +211 -145
- package/dist/plugin/example/index.js.map +1 -1
- package/dist/styles/utils/componentDefaults.d.ts +1 -6
- package/dist/styles/utils/componentDefaults.d.ts.map +1 -1
- package/dist/styles/utils/resolveComponentTree.d.ts +19 -0
- package/dist/styles/utils/resolveComponentTree.d.ts.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -44,12 +44,7 @@ export declare function getColumnsDefaults(theme: ThemeConfig): ColumnsComponent
|
|
|
44
44
|
* Get default configuration for list components
|
|
45
45
|
*/
|
|
46
46
|
export declare function getListDefaults(theme: ThemeConfig): ListComponentDefaults;
|
|
47
|
-
|
|
48
|
-
* Merge theme defaults with user-provided configuration
|
|
49
|
-
* User config takes precedence over theme defaults
|
|
50
|
-
* Uses deep merge to preserve nested objects like floating configuration
|
|
51
|
-
*/
|
|
52
|
-
export declare function mergeWithDefaults<T>(userConfig: T, themeDefaults: Partial<T>): T;
|
|
47
|
+
export { mergeWithDefaults } from '@json-to-office/shared';
|
|
53
48
|
/**
|
|
54
49
|
* Resolve heading component props with theme defaults
|
|
55
50
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentDefaults.d.ts","sourceRoot":"","sources":["../../../src/styles/utils/componentDefaults.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,0BAA0B,EAC1B,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,YAAY,EACZ,cAAc,EACd,UAAU,EACV,cAAc,EACd,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,SAAS,EACV,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"componentDefaults.d.ts","sourceRoot":"","sources":["../../../src/styles/utils/componentDefaults.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,0BAA0B,EAC1B,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,YAAY,EACZ,cAAc,EACd,UAAU,EACV,cAAc,EACd,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,SAAS,EACV,MAAM,aAAa,CAAC;AAGrB;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,WAAW,GAAG,iBAAiB,CAE1E;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,WAAW,GACjB,wBAAwB,CAG1B;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,WAAW,EAClB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,wBAAwB,CAAC,CAoBnC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,WAAW,GACjB,0BAA0B,CAG5B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,sBAAsB,CAG3E;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,WAAW,GACjB,0BAA0B,CAG5B;AAED;;GAEG;AACH,wBA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Ae,EAC5D,MAAM,EAAE,WAAW,GAClB,OAAO,6BAA6B,EAAE,eAAe,CAGvD;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,WAAW,EAClB,aAAa,EAAE,MAAM,GACpB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAIzB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3E,KAAK,EAAE,CAAC,EACR,KAAK,EAAE,WAAW,EAClB,aAAa,EAAE,MAAM,GACpB,CAAC,CAGH"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Centralized Component Defaults Resolution
|
|
3
|
+
* Walks the component tree and resolves theme componentDefaults
|
|
4
|
+
* on every component before any rendering or structure processing.
|
|
5
|
+
*/
|
|
6
|
+
import { ComponentDefinition } from '../../types';
|
|
7
|
+
import { ThemeConfig } from '../index';
|
|
8
|
+
/**
|
|
9
|
+
* Resolve componentDefaults for a single component.
|
|
10
|
+
* Known components use their typed resolver; unknown names
|
|
11
|
+
* fall back to resolveCustomComponentProps.
|
|
12
|
+
*/
|
|
13
|
+
export declare function resolveComponentDefaults(component: ComponentDefinition, theme: ThemeConfig): ComponentDefinition;
|
|
14
|
+
/**
|
|
15
|
+
* Recursively walk the component tree and resolve componentDefaults
|
|
16
|
+
* on every component. Returns a new tree (no mutation).
|
|
17
|
+
*/
|
|
18
|
+
export declare function resolveComponentTree(components: ComponentDefinition[], theme: ThemeConfig): ComponentDefinition[];
|
|
19
|
+
//# sourceMappingURL=resolveComponentTree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveComponentTree.d.ts","sourceRoot":"","sources":["../../../src/styles/utils/resolveComponentTree.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,mBAAmB,EAAgB,MAAM,aAAa,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAgDvC;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,mBAAmB,EAC9B,KAAK,EAAE,WAAW,GACjB,mBAAmB,CAarB;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,mBAAmB,EAAE,EACjC,KAAK,EAAE,WAAW,GACjB,mBAAmB,EAAE,CAgBvB"}
|