@usecsv/react 0.0.2 → 0.1.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.
Files changed (67) hide show
  1. package/.babelrc.jest.js +14 -0
  2. package/.editorconfig +15 -0
  3. package/.env +0 -0
  4. package/.env.example +1 -0
  5. package/.eslintignore +1 -0
  6. package/.eslintrc.airbnbts.js +73 -0
  7. package/.eslintrc.json +91 -0
  8. package/.github/PULL_REQUEST_TEMPLATE.md +7 -0
  9. package/.github/dependabot.yml +7 -0
  10. package/.github/workflows/main.yml +44 -0
  11. package/.github/workflows/publish.yml +19 -0
  12. package/.github/workflows/sementic_release.yml +27 -0
  13. package/.gitignore +8 -0
  14. package/.nvmrc +1 -0
  15. package/.nyc_output/0196dd80-12a9-4176-bd5b-4a8bc6e984f9.json +1 -0
  16. package/.nyc_output/0d5259bc-f1f3-4ca2-9d4f-1f77daccebf4.json +1 -0
  17. package/.nyc_output/92c6bc34-84c6-46f7-9e14-0d1bd2068352.json +1 -0
  18. package/.nyc_output/a0942cca-db9b-40d2-833e-8fcf7011171f.json +1 -0
  19. package/.nyc_output/b3fc15a1-349d-4d4c-a8dd-2142cc988ac3.json +1 -0
  20. package/.nyc_output/processinfo/0196dd80-12a9-4176-bd5b-4a8bc6e984f9.json +1 -0
  21. package/.nyc_output/processinfo/0d5259bc-f1f3-4ca2-9d4f-1f77daccebf4.json +1 -0
  22. package/.nyc_output/processinfo/92c6bc34-84c6-46f7-9e14-0d1bd2068352.json +1 -0
  23. package/.nyc_output/processinfo/a0942cca-db9b-40d2-833e-8fcf7011171f.json +1 -0
  24. package/.nyc_output/processinfo/b3fc15a1-349d-4d4c-a8dd-2142cc988ac3.json +1 -0
  25. package/.nyc_output/processinfo/index.json +1 -0
  26. package/.nycrc +8 -0
  27. package/.prettierignore +2 -0
  28. package/.prettierrc.js +6 -0
  29. package/.releaserc.json +39 -0
  30. package/.vscode/extensions.json +8 -0
  31. package/.vscode/launch.json +29 -0
  32. package/.vscode/settings.json +21 -0
  33. package/CHANGELOG.md +7 -0
  34. package/build/index.cjs +4 -4
  35. package/build/index.cjs.map +1 -1
  36. package/build/index.esm.js +4 -4
  37. package/build/index.esm.js.map +1 -1
  38. package/build/index.js +4 -4
  39. package/build/index.js.map +1 -1
  40. package/build/index.mjs +4 -4
  41. package/build/index.mjs.map +1 -1
  42. package/build/index.umd.js +4 -4
  43. package/build/index.umd.js.map +1 -1
  44. package/build/index.umd.min.js +3 -3
  45. package/build/index.umd.min.js.map +1 -1
  46. package/build/types/lib/useCsvReactPlugin.d.ts +1 -1
  47. package/build/types/lib/useCsvReactPlugin.d.ts.map +1 -1
  48. package/commitlint.config.js +1 -0
  49. package/config/rollup.config.js +78 -0
  50. package/config/webpack.dev.js +59 -0
  51. package/package.json +9 -9
  52. package/reports/coverage/base.css +224 -0
  53. package/reports/coverage/block-navigation.js +79 -0
  54. package/reports/coverage/favicon.png +0 -0
  55. package/reports/coverage/index.html +96 -0
  56. package/reports/coverage/prettify.css +1 -0
  57. package/reports/coverage/prettify.js +2 -0
  58. package/reports/coverage/sort-arrow-sprite.png +0 -0
  59. package/reports/coverage/sorter.js +170 -0
  60. package/src/dev/index.html +14 -0
  61. package/src/dev/index.tsx +22 -0
  62. package/src/index.tsx +3 -0
  63. package/src/lib/useCsvReactPlugin.tsx +42 -0
  64. package/src/test/jest-setup.ts +7 -0
  65. package/tsconfig.json +35 -0
  66. package/tsconfig.module.json +23 -0
  67. package/yarn.lock +11867 -0
@@ -0,0 +1,14 @@
1
+ // Necessary to make Jest work with TypeScript
2
+ module.exports = {
3
+ presets: [
4
+ [
5
+ "@babel/preset-env",
6
+ {
7
+ targets: {
8
+ node: "current",
9
+ },
10
+ },
11
+ ],
12
+ "@babel/preset-typescript",
13
+ ],
14
+ };
package/.editorconfig ADDED
@@ -0,0 +1,15 @@
1
+ # http://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ end_of_line = lf
7
+ indent_size = 2
8
+ indent_style = space
9
+ insert_final_newline = true
10
+ max_line_length = 80
11
+ trim_trailing_whitespace = true
12
+
13
+ [*.md]
14
+ max_line_length = 0
15
+ trim_trailing_whitespace = false
package/.env ADDED
File without changes
package/.env.example ADDED
@@ -0,0 +1 @@
1
+
package/.eslintignore ADDED
@@ -0,0 +1 @@
1
+ config/**
@@ -0,0 +1,73 @@
1
+ module.exports = {
2
+ extends: ["airbnb-base"],
3
+ plugins: ["@typescript-eslint"],
4
+ parser: "@typescript-eslint/parser",
5
+ rules: {
6
+ // airbnb overwrites
7
+ "arrow-parens": "off",
8
+ "arrow-body-style": "off",
9
+ "import/no-cycle": "off", // for preformance
10
+ "no-unused-expressions": "off",
11
+ // convert airbnb js rules to ts
12
+
13
+ // turn off Airbnb 'camelcase'
14
+ camelcase: "off",
15
+
16
+ // Replace Airbnb 'no-array-constructor' rule with '@typescript-eslint' version
17
+ // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-array-constructor.md
18
+ "no-array-constructor": "off",
19
+ "@typescript-eslint/no-array-constructor": "error",
20
+
21
+ // Replace Airbnb 'no-unused-vars' rule with '@typescript-eslint' version
22
+ // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md
23
+ "no-unused-vars": "off",
24
+ "@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
25
+
26
+ // Append `ts` and `tsx` extensions to Airbnb 'import/no-extraneous-dependencies' rule
27
+ // Forbid the use of extraneous packages
28
+ // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md
29
+ // Paths are treated both as absolute paths, and relative to process.cwd()
30
+ "import/no-extraneous-dependencies": [
31
+ "error",
32
+ {
33
+ devDependencies: [
34
+ "test/**", // tape, common npm pattern
35
+ "tests/**", // also common npm pattern
36
+ "spec/**", // mocha, rspec-like pattern
37
+ "**/__tests__/**", // jest pattern
38
+ "**/__mocks__/**", // jest pattern
39
+ "test.{js,jsx,ts,tsx}", // repos with a single test file
40
+ "test-*.{js,jsx,ts,tsx}", // repos with multiple top-level test files
41
+ "**/*{.,_}{test,spec}.{js,jsx,ts,tsx}", // tests where the extension or filename suffix denotes that it is a test
42
+ "**/jest.config.js", // jest config
43
+ "**/vue.config.js", // vue-cli config
44
+ "**/webpack.config.js", // webpack config
45
+ "**/webpack.config.*.js", // webpack config
46
+ "**/rollup.config.js", // rollup config
47
+ "**/rollup.config.*.js", // rollup config
48
+ "**/gulpfile.js", // gulp config
49
+ "**/gulpfile.*.js", // gulp config
50
+ "**/Gruntfile{,.js}", // grunt config
51
+ "**/protractor.conf.js", // protractor config
52
+ "**/protractor.conf.*.js", // protractor config
53
+ ],
54
+ optionalDependencies: false,
55
+ },
56
+ ],
57
+
58
+ // Append `ts` and `tsx` to Airbnb 'import/extensions' rule
59
+ // Ensure consistent use of file extension within the import path
60
+ // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md
61
+ "import/extensions": [
62
+ "error",
63
+ "ignorePackages",
64
+ {
65
+ js: "never",
66
+ mjs: "never",
67
+ jsx: "never",
68
+ ts: "never",
69
+ tsx: "never",
70
+ },
71
+ ],
72
+ },
73
+ };
package/.eslintrc.json ADDED
@@ -0,0 +1,91 @@
1
+ {
2
+ "root": true,
3
+ "parser": "@typescript-eslint/parser",
4
+ "parserOptions": {
5
+ "project": "./tsconfig.json"
6
+ },
7
+ "env": {
8
+ "es6": true,
9
+ "browser": true
10
+ },
11
+ "ignorePatterns": [
12
+ "node_modules",
13
+ "build",
14
+ "coverage"
15
+ ],
16
+ "plugins": [
17
+ "import",
18
+ "eslint-comments",
19
+ "functional",
20
+ "@typescript-eslint",
21
+ "prettier"
22
+ ],
23
+ "extends": [
24
+ "eslint:recommended",
25
+ "plugin:@typescript-eslint/recommended",
26
+ "./.eslintrc.airbnbts.js",
27
+ "plugin:import/typescript",
28
+ "plugin:functional/lite",
29
+ "prettier",
30
+ "prettier/@typescript-eslint",
31
+ "plugin:jest/recommended",
32
+ "plugin:jest/style"
33
+ ],
34
+ "globals": {
35
+ "BigInt": true,
36
+ "console": true,
37
+ "WebAssembly": true
38
+ },
39
+ "rules": {
40
+ "prettier/prettier": "error",
41
+ "quotes": "off",
42
+ "@typescript-eslint/naming-convention": [
43
+ "error",
44
+ {
45
+ "selector": "default",
46
+ "format": [
47
+ "camelCase",
48
+ "PascalCase"
49
+ ],
50
+ "filter": {
51
+ // you can expand this regex to add more allowed names
52
+ "regex": "^(_|__)$",
53
+ "match": false
54
+ }
55
+ },
56
+ {
57
+ "selector": "variable",
58
+ "format": [
59
+ "camelCase",
60
+ "PascalCase",
61
+ "UPPER_CASE"
62
+ ],
63
+ "leadingUnderscore": "allow"
64
+ }
65
+ ],
66
+ "@typescript-eslint/explicit-module-boundary-types": "off",
67
+ "eslint-comments/disable-enable-pair": [
68
+ "error",
69
+ {
70
+ "allowWholeFile": true
71
+ }
72
+ ],
73
+ "eslint-comments/no-unused-disable": "error",
74
+ "import/order": [
75
+ "error",
76
+ {
77
+ "newlines-between": "always",
78
+ "alphabetize": {
79
+ "order": "asc"
80
+ }
81
+ }
82
+ ],
83
+ "sort-imports": [
84
+ "error",
85
+ {
86
+ "ignoreDeclarationSort": true,
87
+ "ignoreCase": true
88
+ }
89
+ ]
90
+ }
91
+ }
@@ -0,0 +1,7 @@
1
+ - **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
2
+
3
+ - **What is the current behavior?** (You can also link to an open issue here)
4
+
5
+ - **What is the new behavior (if this is a feature change)?**
6
+
7
+ - **Other information**:
@@ -0,0 +1,7 @@
1
+ # Once you push this code to a repo on GitHub, Dependabot will automatically start sending PRs to keep your dependencies up-to-date!
2
+ version: 2
3
+ updates:
4
+ - package-ecosystem: "npm"
5
+ directory: "/"
6
+ schedule:
7
+ interval: "weekly"
@@ -0,0 +1,44 @@
1
+ name: CI
2
+ on: push
3
+ jobs:
4
+ test:
5
+ name: Lint, typecheck & test
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - name: Checkout
9
+ uses: actions/checkout@v2
10
+
11
+ - name: Setup Node
12
+ uses: actions/setup-node@v2
13
+ with:
14
+ node-version: "14"
15
+
16
+ # Cache node_modules for faster CI runs if the yarn.lock doesn't change change
17
+ - name: Get yarn cache directory path
18
+ id: yarn-cache-dir
19
+ run: echo "::set-output name=dir::$(yarn cache dir)"
20
+
21
+ - name: Restore yarn cache
22
+ uses: actions/cache@v2
23
+ id: yarn-cache
24
+ with:
25
+ path: ${{ steps.yarn-cache-dir.outputs.dir }}
26
+ key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
27
+ restore-keys: |
28
+ ${{ runner.os }}-yarn-
29
+
30
+ # Throw an error if the yarn.lock file doesn't match the installed dependencies (rather than updating it in-place, which it does by default locally)
31
+ - name: Install
32
+ run: yarn install --frozen-lockfile --silent
33
+
34
+ - name: Copy example env
35
+ run: cp .env.example .env
36
+
37
+ - name: Lint
38
+ run: yarn lint
39
+
40
+ - name: Typecheck
41
+ run: yarn typecheck
42
+
43
+ - name: Tests (Jest)
44
+ run: yarn test
@@ -0,0 +1,19 @@
1
+ name: Node.js Package
2
+ on:
3
+ release:
4
+ types:
5
+ - created
6
+ jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v2
11
+ # Setup .npmrc file to publish to npm
12
+ - uses: actions/setup-node@v2
13
+ with:
14
+ node-version: '14.x'
15
+ registry-url: 'https://registry.npmjs.org'
16
+ - run: yarn
17
+ - run: npm publish
18
+ env:
19
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -0,0 +1,27 @@
1
+ # This is a basic workflow to help you get started with Actions
2
+
3
+
4
+ name: generate new version automatically
5
+
6
+ # Controls when the action will run. Triggers the workflow on push or pull request
7
+ # events but only for the main branch
8
+ on:
9
+ push:
10
+ branches: [main]
11
+ pull_request:
12
+
13
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
14
+ jobs:
15
+ # This workflow contains a single job called "build"
16
+ start:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: actions/checkout@v2
20
+ with:
21
+ fetch-depth: 0
22
+ - name: install semantic-release
23
+ run: yarn add semantic-release @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/git @semantic-release/github @semantic-release/release-notes-generator
24
+ - name: update CHANGELOG.md file
25
+ run: npx semantic-release
26
+ env: # get secret environment variable
27
+ GH_TOKEN: ${{ secrets.GH_TOKEN }}
package/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ .idea/*
2
+ .nyc_output
3
+ build
4
+ node_modules
5
+ src/**.js
6
+ coverage
7
+ *.log
8
+ .env
package/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ v14.17.3
@@ -0,0 +1 @@
1
+ {"parent":"92c6bc34-84c6-46f7-9e14-0d1bd2068352","pid":27663,"argv":["/Users/linah/.nvm/versions/node/v14.17.3/bin/node","/Users/linah/repos/@usecsv-react/node_modules/jest-worker/build/workers/processChild.js"],"execArgv":[],"cwd":"/Users/linah/repos/@usecsv-react","time":1640877354893,"ppid":27631,"coverageFilename":"/Users/linah/repos/@usecsv-react/.nyc_output/0196dd80-12a9-4176-bd5b-4a8bc6e984f9.json","externalId":"","uuid":"0196dd80-12a9-4176-bd5b-4a8bc6e984f9","files":[]}
@@ -0,0 +1 @@
1
+ {"parent":"92c6bc34-84c6-46f7-9e14-0d1bd2068352","pid":27637,"argv":["/Users/linah/.nvm/versions/node/v14.17.3/bin/node"],"execArgv":["--eval","import(\"node:fs\").then(() => console.log(true), () => console.log(false));"],"cwd":"/Users/linah/repos/@usecsv-react","time":1640877352269,"ppid":27631,"coverageFilename":"/Users/linah/repos/@usecsv-react/.nyc_output/0d5259bc-f1f3-4ca2-9d4f-1f77daccebf4.json","externalId":"","uuid":"0d5259bc-f1f3-4ca2-9d4f-1f77daccebf4","files":[]}
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":27631,"argv":["/Users/linah/.nvm/versions/node/v14.17.3/bin/node","/Users/linah/repos/@usecsv-react/node_modules/.bin/jest","--passWithNoTests"],"execArgv":[],"cwd":"/Users/linah/repos/@usecsv-react","time":1640877351683,"ppid":27625,"coverageFilename":"/Users/linah/repos/@usecsv-react/.nyc_output/92c6bc34-84c6-46f7-9e14-0d1bd2068352.json","externalId":"","uuid":"92c6bc34-84c6-46f7-9e14-0d1bd2068352","files":[]}
@@ -0,0 +1 @@
1
+ {"parent":"92c6bc34-84c6-46f7-9e14-0d1bd2068352","pid":27665,"argv":["/Users/linah/.nvm/versions/node/v14.17.3/bin/node","/Users/linah/repos/@usecsv-react/node_modules/jest-worker/build/workers/processChild.js"],"execArgv":[],"cwd":"/Users/linah/repos/@usecsv-react","time":1640877354961,"ppid":27631,"coverageFilename":"/Users/linah/repos/@usecsv-react/.nyc_output/a0942cca-db9b-40d2-833e-8fcf7011171f.json","externalId":"","uuid":"a0942cca-db9b-40d2-833e-8fcf7011171f","files":[]}
@@ -0,0 +1 @@
1
+ {"parent":"92c6bc34-84c6-46f7-9e14-0d1bd2068352","pid":27664,"argv":["/Users/linah/.nvm/versions/node/v14.17.3/bin/node","/Users/linah/repos/@usecsv-react/node_modules/jest-worker/build/workers/processChild.js"],"execArgv":[],"cwd":"/Users/linah/repos/@usecsv-react","time":1640877354859,"ppid":27631,"coverageFilename":"/Users/linah/repos/@usecsv-react/.nyc_output/b3fc15a1-349d-4d4c-a8dd-2142cc988ac3.json","externalId":"","uuid":"b3fc15a1-349d-4d4c-a8dd-2142cc988ac3","files":[]}
@@ -0,0 +1 @@
1
+ {"processes":{"0196dd80-12a9-4176-bd5b-4a8bc6e984f9":{"parent":"92c6bc34-84c6-46f7-9e14-0d1bd2068352","children":[]},"0d5259bc-f1f3-4ca2-9d4f-1f77daccebf4":{"parent":"92c6bc34-84c6-46f7-9e14-0d1bd2068352","children":[]},"92c6bc34-84c6-46f7-9e14-0d1bd2068352":{"parent":null,"children":["0196dd80-12a9-4176-bd5b-4a8bc6e984f9","0d5259bc-f1f3-4ca2-9d4f-1f77daccebf4","a0942cca-db9b-40d2-833e-8fcf7011171f","b3fc15a1-349d-4d4c-a8dd-2142cc988ac3"]},"a0942cca-db9b-40d2-833e-8fcf7011171f":{"parent":"92c6bc34-84c6-46f7-9e14-0d1bd2068352","children":[]},"b3fc15a1-349d-4d4c-a8dd-2142cc988ac3":{"parent":"92c6bc34-84c6-46f7-9e14-0d1bd2068352","children":[]}},"files":{},"externalIds":{}}
package/.nycrc ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "@istanbuljs/nyc-config-typescript",
3
+ "include": ["src/**"],
4
+ "reporter": [
5
+ "html"
6
+ ],
7
+ "report-dir": "./reports/coverage"
8
+ }
@@ -0,0 +1,2 @@
1
+ # package.json is formatted by package managers, so we ignore it here
2
+ package.json
package/.prettierrc.js ADDED
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ trailingComma: "all",
3
+ tabWidth: 2,
4
+ singleQuote: false,
5
+ printWidth: 120,
6
+ };
@@ -0,0 +1,39 @@
1
+ {
2
+ "branches": "main",
3
+ "tagFormat": "v${version}",
4
+ "plugins": [
5
+ "@semantic-release/commit-analyzer",
6
+ "@semantic-release/release-notes-generator",
7
+ [
8
+ "@semantic-release/changelog",
9
+ {
10
+ "changelogFile": "CHANGELOG.md"
11
+ }
12
+ ],
13
+ [
14
+ "@semantic-release/npm",
15
+ {
16
+ "npmPublish": false
17
+ }
18
+ ],
19
+ [
20
+ "@semantic-release/github",
21
+ {
22
+ "assets": [
23
+ "CHANGELOG.md"
24
+ ]
25
+ }
26
+ ],
27
+ [
28
+ "@semantic-release/git",
29
+ {
30
+ "assets": [
31
+ "CHANGELOG.md",
32
+ "package.json",
33
+ "yarn.lock"
34
+ ],
35
+ "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
36
+ }
37
+ ]
38
+ ]
39
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "recommendations": [
3
+ "dbaeumer.vscode-eslint",
4
+ "esbenp.prettier-vscode",
5
+ "eamodio.gitlens",
6
+ "streetsidesoftware.code-spell-checker",
7
+ ]
8
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": [
4
+ // To debug, make sure a *.spec.ts file is active in the editor, then run a configuration
5
+ {
6
+ "type": "node",
7
+ "request": "launch",
8
+ "name": "Debug Active Spec",
9
+ "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ava",
10
+ "runtimeArgs": ["debug", "--break", "--serial", "${file}"],
11
+ "port": 9229,
12
+ "outputCapture": "std",
13
+ "skipFiles": ["<node_internals>/**/*.js"],
14
+ "preLaunchTask": "npm: build"
15
+ // "smartStep": true
16
+ },
17
+ {
18
+ // Use this one if you're already running `yarn watch`
19
+ "type": "node",
20
+ "request": "launch",
21
+ "name": "Debug Active Spec (no build)",
22
+ "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ava",
23
+ "runtimeArgs": ["debug", "--break", "--serial", "${file}"],
24
+ "port": 9229,
25
+ "outputCapture": "std",
26
+ "skipFiles": ["<node_internals>/**/*.js"]
27
+ // "smartStep": true
28
+ }]
29
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "editor.formatOnSave": true,
3
+ "typescript.enablePromptUseWorkspaceTsdk": true,
4
+ "eslint.options": {
5
+ "extensions": [
6
+ ".js",
7
+ ".jsx",
8
+ ".ts",
9
+ ".tsx",
10
+ ".json"
11
+ ]
12
+ },
13
+ "eslint.lintTask.enable": true,
14
+ "eslint.lintTask.options": " . --ext .ts,.tsx,.json,.js",
15
+ "eslint.nodePath": "./node_modules",
16
+ "editor.codeActionsOnSave": {
17
+ "source.fixAll.eslint": true
18
+ },
19
+ "editor.tabSize": 2,
20
+ "typescript.tsdk": "node_modules/typescript/lib"
21
+ }
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [0.1.0](https://github.com/layercodedev/usecsv-react-plugin/compare/v0.0.2...v0.1.0) (2021-12-30)
2
+
3
+
4
+ ### Features
5
+
6
+ * allow null user object ([#12](https://github.com/layercodedev/usecsv-react-plugin/issues/12)) ([979fe1e](https://github.com/layercodedev/usecsv-react-plugin/commit/979fe1e08c45b9f7083632c0c8f52a5110e2ec11))
7
+
1
8
  # 0.0.2 (2021-12-08)
2
9
 
3
10
 
package/build/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @usecsv/react v0.0.2
2
+ * @usecsv/react v0.1.0
3
3
  * (c) layercode
4
4
  * Released under the MIT License.
5
5
  */
@@ -7,7 +7,7 @@
7
7
  'use strict';
8
8
 
9
9
  /*!
10
- * @usecsv/js v0.0.12
10
+ * @usecsv/js v0.1.0
11
11
  * (c) layercode
12
12
  * Released under the MIT License.
13
13
  */
@@ -566,7 +566,7 @@ var MOUNT_URL = {"MOUNT_URL":"https://app.usecsv.com/importer"}["MOUNT_URL"] ;
566
566
  var insertIframe = function (id) {
567
567
  var _a;
568
568
  insertCss_2("\n .usecsv_container {\n position: fixed;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n z-index: 100000;\n }\n .usecsv_container iframe {\n width: 100%;\n height: 100%;\n position: absolute;\n border-width: 0;\n }\n .usecsv_container {\n overflow: hidden;\n overscroll-behavior-x: none;\n }\n");
569
- document.body.insertAdjacentHTML("beforeend", "<div id=" + id + " class=\"usecsv_container loading\">\n</div>");
569
+ document.body.insertAdjacentHTML("beforeend", "<div id=".concat(id, " class=\"usecsv_container loading\">\n</div>"));
570
570
  var iframe = document.createElement("iframe");
571
571
  iframe.setAttribute("src", MOUNT_URL);
572
572
  (_a = document.getElementById(id)) === null || _a === void 0 ? void 0 : _a.appendChild(iframe);
@@ -574,7 +574,7 @@ var insertIframe = function (id) {
574
574
  };
575
575
  var useCsvPlugin = function (_a) {
576
576
  var importerKey = _a.importerKey, user = _a.user, metadata = _a.metadata;
577
- var id = "usecsv-" + Math.round(Math.random() * 100000000);
577
+ var id = "usecsv-".concat(Math.round(Math.random() * 100000000));
578
578
  return whenDomReady().then(function () {
579
579
  var iframe = insertIframe(id);
580
580
  var iframeConnection = connectToChild({