Skip to content

Commit 5aa4f82

Browse files
committed
Reorganise stories
1 parent c719eca commit 5aa4f82

File tree

4 files changed

+227
-73
lines changed

4 files changed

+227
-73
lines changed

package.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
{
22
"name": "react-dsv-import",
33
"description": "Flexible, typed and easy to use React Component ⚛ to provide CSV, TSV and other delimiter-separated values formats (DSV) import functionality.",
4-
"keywords": ["react-component", "typescript", "react"],
4+
"keywords": [
5+
"react-component",
6+
"typescript",
7+
"react"
8+
],
59
"homepage": "https://openscript.github.io/react-dsv-import/",
6-
"version": "0.0.7",
10+
"version": "0.1.0",
711
"main": "dist/index.js",
812
"module": "dist/es/index.js",
913
"types": "dist/index.d.ts",
1014
"dependencies": {},
1115
"devDependencies": {
1216
"@babel/core": "^7.9.0",
13-
"@rollup/plugin-typescript": "^4.0.0",
17+
"@rollup/plugin-typescript": "^4.1.1",
1418
"@storybook/addon-actions": "^5.3.18",
1519
"@storybook/addon-docs": "^5.3.18",
1620
"@storybook/addon-info": "^5.3.18",
@@ -22,17 +26,17 @@
2226
"@types/node": "^13.11.1",
2327
"@types/react": "^16.9.34",
2428
"@types/react-dom": "^16.9.6",
25-
"@typescript-eslint/eslint-plugin": "^2.27.0",
26-
"@typescript-eslint/parser": "^2.27.0",
29+
"@typescript-eslint/eslint-plugin": "^2.28.0",
30+
"@typescript-eslint/parser": "^2.28.0",
2731
"babel-loader": "^8.1.0",
2832
"babel-preset-react-app": "^9.1.2",
2933
"eslint": "^6.8.0",
3034
"eslint-config-prettier": "^6.10.1",
31-
"eslint-plugin-prettier": "^3.1.2",
35+
"eslint-plugin-prettier": "^3.1.3",
3236
"eslint-plugin-react": "^7.19.0",
3337
"prettier": "^2.0.4",
3438
"react-is": "^16.13.1",
35-
"rollup": "^2.6.0",
39+
"rollup": "^2.6.1",
3640
"ts-node": "^8.8.2",
3741
"tslib": "^1.11.1",
3842
"typescript": "^3.8.3"

src/DSVImport.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { DSVImport, ColumnsType, TablePreview, TextareaInput } from './';
33

4-
export default { title: 'Usage/DSVImport' };
4+
export default { title: 'Usage' };
55

66
type BasicType = { forename: string; surname: string; email: string };
77

@@ -19,3 +19,4 @@ export const BasicUsage = () => {
1919
</DSVImport>
2020
);
2121
};
22+
BasicUsage.story = { name: 'Basic usage' };

src/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ export * from './DSVImport';
55
export * from './components/inputs/TextareaInput';
66
export * from './components/previews/TablePreview';
77

8+
// features
9+
export { useDSVImport } from './features/context';
10+
811
// models
912
export * from './models/column';

0 commit comments

Comments
 (0)