@usecsv/react 0.0.1 → 0.2.0

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,11 +1,7 @@
1
+ import useCsvPlugin from "@usecsv/js";
1
2
  import { FC, ReactNode } from "react";
2
- declare type UserObject = {
3
- readonly userId: string;
4
- };
5
- declare type UseCsvButtonTypes = {
6
- readonly importerKey: string;
7
- readonly user: UserObject;
8
- readonly metadata: Record<string, string | number> | undefined;
3
+ declare type pluginParamas = Parameters<typeof useCsvPlugin>[0];
4
+ declare type UseCsvButtonTypes = pluginParamas & {
9
5
  readonly render?: ((onClick: () => Promise<any>) => ReactNode) | undefined | null;
10
6
  };
11
7
  declare const UseCsvButton: FC<UseCsvButtonTypes>;
@@ -1 +1 @@
1
- {"version":3,"file":"useCsvReactPlugin.d.ts","sourceRoot":"","sources":["../../../src/lib/useCsvReactPlugin.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7C,aAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB,CAAC;AACF,aAAK,iBAAiB,GAAG;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,CAAC;IAC/D,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC;CACnF,CAAC;AAEF,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA0BvC,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"useCsvReactPlugin.d.ts","sourceRoot":"","sources":["../../../src/lib/useCsvReactPlugin.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,YAAY,CAAC;AACtC,OAAc,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7C,aAAK,aAAa,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AACxD,aAAK,iBAAiB,GAAG,aAAa,GAAG;IACvC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC;CACnF,CAAC;AAEF,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA0BvC,CAAC;AAEF,eAAe,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usecsv/react",
3
- "version": "0.0.1",
3
+ "version": "0.2.0",
4
4
  "author": {
5
5
  "name": "layercode"
6
6
  },
@@ -15,7 +15,7 @@
15
15
  "umd:main": "build/index.umd.js",
16
16
  "repository": {
17
17
  "type": "git",
18
- "url": "git+https://github.com/layercodedev/usecsv-react.git"
18
+ "url": "git+https://github.com/layercodedev/usecsv-react-plugin.git"
19
19
  },
20
20
  "license": "MIT",
21
21
  "keywords": [
@@ -27,9 +27,9 @@
27
27
  "parser"
28
28
  ],
29
29
  "bugs": {
30
- "url": "https://github.com/layercodedev/usecsv-react/issues"
30
+ "url": "https://github.com/layercodedev/usecsv-react-plugin/issues"
31
31
  },
32
- "homepage": "https://github.com/layercodedev/usecsv-react#readme",
32
+ "homepage": "https://github.com/layercodedev/usecsv-react-plugin#readme",
33
33
  "scripts": {
34
34
  "dev": "webpack serve --config config/webpack.dev.js --progress",
35
35
  "build": "rimraf build && rollup --config ./config/rollup.config.js",
@@ -61,8 +61,8 @@
61
61
  "react-dom": "^17.0.2"
62
62
  },
63
63
  "dependencies": {
64
- "@semantic-release/github": "^7.2.3",
65
- "@usecsv/js": "0.0.11"
64
+ "@semantic-release/github": "^8.0.2",
65
+ "@usecsv/js": "0.2.0"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@babel/preset-env": "^7.14.8",
@@ -73,10 +73,10 @@
73
73
  "@istanbuljs/nyc-config-typescript": "^1.0.1",
74
74
  "@rollup/plugin-node-resolve": "^13.0.4",
75
75
  "@rollup/plugin-replace": "^3.0.0",
76
- "@semantic-release/changelog": "^5.0.1",
77
- "@semantic-release/commit-analyzer": "^8.0.1",
78
- "@semantic-release/git": "^9.0.1",
79
- "@semantic-release/release-notes-generator": "^9.0.3",
76
+ "@semantic-release/changelog": "^6.0.1",
77
+ "@semantic-release/commit-analyzer": "^9.0.2",
78
+ "@semantic-release/git": "^10.0.1",
79
+ "@semantic-release/release-notes-generator": "^10.0.3",
80
80
  "@testing-library/dom": "^8.1.0",
81
81
  "@testing-library/jest-dom": "^5.14.1",
82
82
  "@types/insert-css": "^2.0.1",
@@ -112,7 +112,7 @@
112
112
  "rollup-plugin-dts": "^4.0.1",
113
113
  "rollup-plugin-terser": "^7.0.2",
114
114
  "rollup-plugin-typescript2": "^0.30.0",
115
- "semantic-release": "^17.4.7",
115
+ "semantic-release": "^19.0.2",
116
116
  "source-map-loader": "^3.0.0",
117
117
  "ts-loader": "^9.2.4",
118
118
  "ts-node": "^9.0.0",