@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.
- package/.babelrc.jest.js +14 -0
- package/.editorconfig +15 -0
- package/.env +0 -0
- package/.env.example +1 -0
- package/.eslintignore +1 -0
- package/.eslintrc.airbnbts.js +73 -0
- package/.eslintrc.json +91 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +7 -0
- package/.github/dependabot.yml +7 -0
- package/.github/workflows/main.yml +44 -0
- package/.github/workflows/publish.yml +19 -0
- package/.github/workflows/sementic_release.yml +27 -0
- package/.gitignore +8 -0
- package/.nvmrc +1 -0
- package/.nyc_output/0196dd80-12a9-4176-bd5b-4a8bc6e984f9.json +1 -0
- package/.nyc_output/0d5259bc-f1f3-4ca2-9d4f-1f77daccebf4.json +1 -0
- package/.nyc_output/92c6bc34-84c6-46f7-9e14-0d1bd2068352.json +1 -0
- package/.nyc_output/a0942cca-db9b-40d2-833e-8fcf7011171f.json +1 -0
- package/.nyc_output/b3fc15a1-349d-4d4c-a8dd-2142cc988ac3.json +1 -0
- package/.nyc_output/processinfo/0196dd80-12a9-4176-bd5b-4a8bc6e984f9.json +1 -0
- package/.nyc_output/processinfo/0d5259bc-f1f3-4ca2-9d4f-1f77daccebf4.json +1 -0
- package/.nyc_output/processinfo/92c6bc34-84c6-46f7-9e14-0d1bd2068352.json +1 -0
- package/.nyc_output/processinfo/a0942cca-db9b-40d2-833e-8fcf7011171f.json +1 -0
- package/.nyc_output/processinfo/b3fc15a1-349d-4d4c-a8dd-2142cc988ac3.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -0
- package/.nycrc +8 -0
- package/.prettierignore +2 -0
- package/.prettierrc.js +6 -0
- package/.releaserc.json +39 -0
- package/.vscode/extensions.json +8 -0
- package/.vscode/launch.json +29 -0
- package/.vscode/settings.json +21 -0
- package/CHANGELOG.md +7 -0
- package/build/index.cjs +4 -4
- package/build/index.cjs.map +1 -1
- package/build/index.esm.js +4 -4
- package/build/index.esm.js.map +1 -1
- package/build/index.js +4 -4
- package/build/index.js.map +1 -1
- package/build/index.mjs +4 -4
- package/build/index.mjs.map +1 -1
- package/build/index.umd.js +4 -4
- package/build/index.umd.js.map +1 -1
- package/build/index.umd.min.js +3 -3
- package/build/index.umd.min.js.map +1 -1
- package/build/types/lib/useCsvReactPlugin.d.ts +1 -1
- package/build/types/lib/useCsvReactPlugin.d.ts.map +1 -1
- package/commitlint.config.js +1 -0
- package/config/rollup.config.js +78 -0
- package/config/webpack.dev.js +59 -0
- package/package.json +9 -9
- package/reports/coverage/base.css +224 -0
- package/reports/coverage/block-navigation.js +79 -0
- package/reports/coverage/favicon.png +0 -0
- package/reports/coverage/index.html +96 -0
- package/reports/coverage/prettify.css +1 -0
- package/reports/coverage/prettify.js +2 -0
- package/reports/coverage/sort-arrow-sprite.png +0 -0
- package/reports/coverage/sorter.js +170 -0
- package/src/dev/index.html +14 -0
- package/src/dev/index.tsx +22 -0
- package/src/index.tsx +3 -0
- package/src/lib/useCsvReactPlugin.tsx +42 -0
- package/src/test/jest-setup.ts +7 -0
- package/tsconfig.json +35 -0
- package/tsconfig.module.json +23 -0
- package/yarn.lock +11867 -0
package/build/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @usecsv/react v0.0
|
|
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
|
|
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="
|
|
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-"
|
|
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({
|