@json-to-office/core-pptx 0.16.0 → 0.18.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/highcharts.d.ts.map +1 -1
- package/dist/components/image.d.ts +1 -0
- package/dist/components/image.d.ts.map +1 -1
- package/dist/core/generator.d.ts.map +1 -1
- package/dist/index.js +33 -6
- package/dist/index.js.map +1 -1
- package/dist/plugin/validation.d.ts +5 -1
- package/dist/plugin/validation.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/imageSource.d.ts +6 -0
- package/dist/utils/imageSource.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -14,7 +14,11 @@ export declare function validateComponentProps<TPropsSchema extends TSchema>(sch
|
|
|
14
14
|
}, props: unknown, componentName?: string): ComponentValidationResult<TPropsSchema>;
|
|
15
15
|
/**
|
|
16
16
|
* Validate presentation and all custom components (version-aware).
|
|
17
|
-
*
|
|
17
|
+
*
|
|
18
|
+
* Custom component props are checked version-aware. In addition, a structural
|
|
19
|
+
* pass rejects image components that set more than one mutually-exclusive source
|
|
20
|
+
* (`path`/`base64`/`svg`) — matching core-docx behavior so a multi-source payload
|
|
21
|
+
* is a hard error rather than being silently resolved by runtime precedence.
|
|
18
22
|
*/
|
|
19
23
|
export declare function validatePresentation(document: PresentationComponentDefinition, customComponents: CustomComponent<any, any, any>[]): {
|
|
20
24
|
valid: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/plugin/validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,EAIL,KAAK,yBAAyB,EAC/B,MAAM,+B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