@paprize/core 0.0.7 → 0.0.8
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/paprize-core.d.ts +6 -2
- package/dist/paprize-core.js +211 -191
- package/dist/paprize-core.js.map +1 -1
- package/dist/paprize-core.umd.cjs +5 -5
- package/dist/paprize-core.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/paprize-core.d.ts
CHANGED
|
@@ -405,7 +405,7 @@ export declare class ReportBuilder {
|
|
|
405
405
|
* @param onPaginationCompleted - Callback invoked when pagination for the section is completed.
|
|
406
406
|
* @returns `true` if the section was added to the report’s section list, or `false` if it already exists.
|
|
407
407
|
*/
|
|
408
|
-
tryAddSection(options: SectionOptions, components: SectionComponents, onPaginationCompleted:
|
|
408
|
+
tryAddSection(options: SectionOptions, components: SectionComponents, onPaginationCompleted: SectionState['onPaginationCompleted']): Promise<boolean>;
|
|
409
409
|
/**
|
|
410
410
|
* Schedules a pagination operation.
|
|
411
411
|
*
|
|
@@ -470,6 +470,10 @@ export declare interface ReportBuilderEvents {
|
|
|
470
470
|
paginationCycleCompleted: (event: PaginationCycleCompleted) => void;
|
|
471
471
|
}
|
|
472
472
|
|
|
473
|
+
export declare interface ReportContext {
|
|
474
|
+
jsonData: unknown | null;
|
|
475
|
+
}
|
|
476
|
+
|
|
473
477
|
export declare const reportStyles: {
|
|
474
478
|
globalStyle: string;
|
|
475
479
|
component: CSSProperties;
|
|
@@ -597,7 +601,7 @@ export declare interface SectionState {
|
|
|
597
601
|
options: SectionOptions;
|
|
598
602
|
context: SectionContext;
|
|
599
603
|
components: SectionComponents;
|
|
600
|
-
onPaginationCompleted: (pages: PageContext[]) => void;
|
|
604
|
+
onPaginationCompleted: (pages: PageContext[]) => Promise<unknown> | void;
|
|
601
605
|
}
|
|
602
606
|
|
|
603
607
|
export declare const sectionTocName = "sectionToc";
|