@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
@@ -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
  */
@@ -11,7 +11,7 @@
11
11
  })(this, (function () { 'use strict';
12
12
 
13
13
  /*!
14
- * @usecsv/js v0.0.12
14
+ * @usecsv/js v0.1.0
15
15
  * (c) layercode
16
16
  * Released under the MIT License.
17
17
  */
@@ -570,7 +570,7 @@
570
570
  var insertIframe = function (id) {
571
571
  var _a;
572
572
  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");
573
- document.body.insertAdjacentHTML("beforeend", "<div id=" + id + " class=\"usecsv_container loading\">\n</div>");
573
+ document.body.insertAdjacentHTML("beforeend", "<div id=".concat(id, " class=\"usecsv_container loading\">\n</div>"));
574
574
  var iframe = document.createElement("iframe");
575
575
  iframe.setAttribute("src", MOUNT_URL);
576
576
  (_a = document.getElementById(id)) === null || _a === void 0 ? void 0 : _a.appendChild(iframe);
@@ -578,7 +578,7 @@
578
578
  };
579
579
  var useCsvPlugin = function (_a) {
580
580
  var importerKey = _a.importerKey, user = _a.user, metadata = _a.metadata;
581
- var id = "usecsv-" + Math.round(Math.random() * 100000000);
581
+ var id = "usecsv-".concat(Math.round(Math.random() * 100000000));
582
582
  return whenDomReady().then(function () {
583
583
  var iframe = insertIframe(id);
584
584
  var iframeConnection = connectToChild({