@paprize/react 0.0.2 → 0.0.3

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