@paprize/react 0.0.2 → 0.0.4
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-react.d.ts +14 -13
- package/dist/paprize-react.js +682 -1435
- package/dist/paprize-react.js.map +1 -0
- package/dist/paprize-react.umd.cjs +12 -5
- package/dist/paprize-react.umd.cjs.map +1 -0
- package/package.json +1 -2
package/dist/paprize-react.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { ConfigAttribute } from '
|
|
2
|
-
import { defaultPlugins } from '@paprize/core/src';
|
|
1
|
+
import { ConfigAttribute } from '../../@paprize/core';
|
|
3
2
|
import { JSX } from 'react/jsx-runtime';
|
|
4
|
-
import { PaginationConfig } from '
|
|
5
|
-
import {
|
|
3
|
+
import { PaginationConfig } from '../@paprize/core';
|
|
4
|
+
import { PaginationConfig as PaginationConfig_2 } from '../../@paprize/core';
|
|
5
|
+
import { PaginationPlugin } from '../@paprize/core';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
7
7
|
|
|
8
|
-
export { defaultPlugins }
|
|
9
|
-
|
|
10
8
|
export declare const jsonData: () => Promise<unknown>;
|
|
11
9
|
|
|
12
10
|
export declare function Layout({ children, ...attributes }: LayoutProps): JSX.Element;
|
|
@@ -72,6 +70,10 @@ declare const _pageMargin: {
|
|
|
72
70
|
|
|
73
71
|
export declare type PageOrientation = 'portrait' | 'landscape';
|
|
74
72
|
|
|
73
|
+
export declare function PageOverlay({ children }: {
|
|
74
|
+
children: ReactNode;
|
|
75
|
+
}): JSX.Element;
|
|
76
|
+
|
|
75
77
|
export declare const pageSize: Record<keyof typeof _pageSize, PageDimension>;
|
|
76
78
|
|
|
77
79
|
declare const _pageSize: {
|
|
@@ -153,9 +155,9 @@ export declare interface ReportInfo {
|
|
|
153
155
|
*/
|
|
154
156
|
sections: {
|
|
155
157
|
/**
|
|
156
|
-
* The
|
|
158
|
+
* The id of the section.
|
|
157
159
|
*/
|
|
158
|
-
|
|
160
|
+
sectionId: string;
|
|
159
161
|
/**
|
|
160
162
|
* The total number of pages in the section.
|
|
161
163
|
*/
|
|
@@ -181,7 +183,7 @@ export declare interface ReportRootProps {
|
|
|
181
183
|
children: ReactNode;
|
|
182
184
|
}
|
|
183
185
|
|
|
184
|
-
export declare function Section({ children, dimension, orientation, margin, config,
|
|
186
|
+
export declare function Section({ children, dimension, orientation, margin, config, }: SectionProps): JSX.Element;
|
|
185
187
|
|
|
186
188
|
export declare function SectionFooter({ children }: {
|
|
187
189
|
children: React.ReactNode;
|
|
@@ -215,8 +217,7 @@ export declare interface SectionProps {
|
|
|
215
217
|
dimension: PageDimension;
|
|
216
218
|
orientation?: PageOrientation;
|
|
217
219
|
margin?: PageMargin;
|
|
218
|
-
config?:
|
|
219
|
-
name?: string;
|
|
220
|
+
config?: Partial<PaginationConfig_2>;
|
|
220
221
|
}
|
|
221
222
|
|
|
222
223
|
export declare interface State<T> {
|
|
@@ -234,11 +235,11 @@ export declare const usePageInfo: () => {
|
|
|
234
235
|
export declare function useReportInfo(): ReportInfo;
|
|
235
236
|
|
|
236
237
|
export declare const useSectionInfo: () => {
|
|
237
|
-
|
|
238
|
+
sectionId: string;
|
|
238
239
|
totalPages: number;
|
|
239
240
|
};
|
|
240
241
|
|
|
241
|
-
export declare function useSectionSuspension(
|
|
242
|
+
export declare function useSectionSuspension(sectionId: string, suspend?: boolean): {
|
|
242
243
|
release: () => void;
|
|
243
244
|
};
|
|
244
245
|
|