@sutech_jp/datatraveler-react-client 0.0.20 → 0.0.21

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,5 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
- import { Binder, DataTravelerResult, Mapper, ImportType } from './types';
2
+ import { Binder, DataTravelerResult, Mapper, ImportType, UseReportType } from './types';
3
3
  declare type Props<D> = {
4
4
  application: string;
5
5
  schema: string;
@@ -13,10 +13,7 @@ declare type Props<D> = {
13
13
  binder?: Binder;
14
14
  width?: number;
15
15
  height?: number;
16
- report?: {
17
- application: string;
18
- schema: string;
19
- };
16
+ report?: UseReportType;
20
17
  };
21
18
  export declare const DataTravelerImport: <D>({ application, schema, url, googleToken, importType, currentData, mapper, binder, width, height, report, onImport, onCancel, }: Props<D>) => ReactElement;
22
19
  export {};
package/dist/types.d.ts CHANGED
@@ -6,3 +6,9 @@ export declare type DataTravelerResult<D> = {
6
6
  dataImportLogId: string;
7
7
  };
8
8
  export declare type ImportType = 'gss' | 'csv';
9
+ export declare type UseReportType = {
10
+ application: string;
11
+ schema: string;
12
+ layoutId?: number;
13
+ reportStep?: 'report' | 'preview';
14
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sutech_jp/datatraveler-react-client",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "react client for data traveler produced by SuTech",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",