File tree Expand file tree Collapse file tree 8 files changed +10
-2
lines changed
components/TableFlowImporter Expand file tree Collapse file tree 8 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @tableflow/js" ,
3
- "version" : " 1.23 .0" ,
3
+ "version" : " 1.24 .0" ,
4
4
"description" : " The JavaScript SDK for TableFlow. Embed an importer to collect and transform CSV files in your application." ,
5
5
"scripts" : {
6
6
"build" : " rollup -c --bundleConfigAsCjs false" ,
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ const meta = {
28
28
showDownloadTemplateButton : { control : "boolean" } ,
29
29
schemaless : { control : "boolean" } ,
30
30
schemalessReadOnly : { control : "boolean" } ,
31
+ schemalessDataTypes : { control : "boolean" } ,
31
32
waitOnComplete : { control : "boolean" } ,
32
33
} ,
33
34
} satisfies Meta < TableFlowImporterProps > ;
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export default function createTableFlowImporter({
24
24
cssOverrides,
25
25
schemaless,
26
26
schemalessReadOnly,
27
+ schemalessDataTypes,
27
28
} : TableFlowImporterProps ) {
28
29
// CSS classes
29
30
const baseClass = "TableFlowImporter" ;
@@ -65,6 +66,7 @@ export default function createTableFlowImporter({
65
66
skipHeaderRowSelection : parseOptionalBoolean ( skipHeaderRowSelection ) ,
66
67
schemaless : parseOptionalBoolean ( schemaless ) ,
67
68
schemalessReadOnly : parseOptionalBoolean ( schemalessReadOnly ) ,
69
+ schemalessDataTypes : parseOptionalBoolean ( schemalessDataTypes ) ,
68
70
} ;
69
71
70
72
const uploaderUrl = getUploaderUrl ( urlParams , hostUrl ) ;
Original file line number Diff line number Diff line change @@ -21,4 +21,5 @@ export type TableFlowImporterProps = HTMLDialogElement & {
21
21
skipHeaderRowSelection ?: boolean ;
22
22
schemaless ?: boolean ;
23
23
schemalessReadOnly ?: boolean ;
24
+ schemalessDataTypes ?: boolean ;
24
25
} & ModalParams ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @tableflow/react" ,
3
- "version" : " 1.32 .0" ,
3
+ "version" : " 1.33 .0" ,
4
4
"description" : " The React SDK for TableFlow. Embed an importer to collect and transform CSV files in your application." ,
5
5
"main" : " build/index.js" ,
6
6
"module" : " build/index.esm.js" ,
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export default function TableFlowImporter({
24
24
cssOverrides,
25
25
schemaless,
26
26
schemalessReadOnly,
27
+ schemalessDataTypes,
27
28
...props
28
29
} : TableFlowImporterProps ) {
29
30
const ref = useRef ( null ) ;
@@ -59,6 +60,7 @@ export default function TableFlowImporter({
59
60
skipHeaderRowSelection : parseOptionalBoolean ( skipHeaderRowSelection ) ,
60
61
schemaless : parseOptionalBoolean ( schemaless ) ,
61
62
schemalessReadOnly : parseOptionalBoolean ( schemalessReadOnly ) ,
63
+ schemalessDataTypes : parseOptionalBoolean ( schemalessDataTypes ) ,
62
64
} ;
63
65
const searchParams = new URLSearchParams ( urlParams ) ;
64
66
const defaultImporterUrl = "https://importer.tableflow.com" ;
Original file line number Diff line number Diff line change @@ -23,4 +23,5 @@ export type TableFlowImporterProps = (HTMLAttributes<HTMLDialogElement> & HTMLAt
23
23
skipHeaderRowSelection ?: boolean ;
24
24
schemaless ?: boolean ;
25
25
schemalessReadOnly ?: boolean ;
26
+ schemalessDataTypes ?: boolean ;
26
27
} & ModalParams ;
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ const defaults: TableFlowImporterProps = {
16
16
// },
17
17
// schemaless: false,
18
18
// schemalessReadOnly: true,
19
+ // schemalessDataTypes: true,
19
20
darkMode : true ,
20
21
onComplete : ( data ) => console . log ( "onComplete" , data ) ,
21
22
// customStyles: {
You can’t perform that action at this time.
0 commit comments