@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.
@@ -1,12 +1,10 @@
1
- import { ConfigAttribute } from '@paprize/core/src';
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 '@paprize/core/src';
5
- import { PaginationPlugin } from '@paprize/core/src';
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 name of the section.
158
+ * The id of the section.
157
159
  */
158
- sectionName: string;
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, name, }: SectionProps): JSX.Element;
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?: PaginationConfig;
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
- sectionName: string;
238
+ sectionId: string;
238
239
  totalPages: number;
239
240
  };
240
241
 
241
- export declare function useSectionSuspension(sectionName: string, suspend?: boolean): {
242
+ export declare function useSectionSuspension(sectionId: string, suspend?: boolean): {
242
243
  release: () => void;
243
244
  };
244
245