@commercetools-frontend-extensions/delete-resources-modal 0.0.0-canary-20250904080402 → 0.0.0-canary-20251209161906
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/dist/commercetools-frontend-extensions-delete-resources-modal.cjs.dev.js +1517 -44
- package/dist/commercetools-frontend-extensions-delete-resources-modal.cjs.prod.js +1508 -44
- package/dist/commercetools-frontend-extensions-delete-resources-modal.esm.js +1506 -43
- package/dist/declarations/src/@types/index.d.ts +0 -2
- package/dist/{es-851a6220.cjs.prod.js → es-2e0af6bc.cjs.dev.js} +2 -2
- package/dist/{es-062c28be.esm.js → es-332b4647.esm.js} +2 -2
- package/dist/{es-87e55458.cjs.dev.js → es-64fd0c08.cjs.prod.js} +2 -2
- package/dist/{fr-FR-583a5353.cjs.prod.js → fr-FR-90c7194f.cjs.prod.js} +2 -2
- package/dist/{fr-FR-db35778a.cjs.dev.js → fr-FR-c9dc1e0d.cjs.dev.js} +2 -2
- package/dist/{fr-FR-3683a6e7.esm.js → fr-FR-f2953298.esm.js} +2 -2
- package/package.json +25 -25
- package/dist/active-drag-drop-area-3b6d466e.cjs.dev.js +0 -54
- package/dist/active-drag-drop-area-7ce4ad2e.cjs.prod.js +0 -54
- package/dist/active-drag-drop-area-93f30ab1.esm.js +0 -52
- package/dist/declarations/src/@types/file-upload.d.ts +0 -45
- package/dist/declarations/src/@types/import-container.d.ts +0 -4
- package/dist/enabled-drop-area-0f095b72.esm.js +0 -69
- package/dist/enabled-drop-area-2385b046.cjs.dev.js +0 -71
- package/dist/enabled-drop-area-eda91d8b.cjs.prod.js +0 -71
- package/dist/file-dropped-area-9eaa8d48.cjs.dev.js +0 -74
- package/dist/file-dropped-area-b9ef2b25.cjs.prod.js +0 -74
- package/dist/file-dropped-area-e1c05dd9.esm.js +0 -72
- package/dist/index-38fb081c.cjs.dev.js +0 -1822
- package/dist/index-787342c4.cjs.prod.js +0 -1810
- package/dist/index-a5c6573b.esm.js +0 -1792
|
@@ -30,7 +30,7 @@ var es = {
|
|
|
30
30
|
},
|
|
31
31
|
"DeleteResourcesModal.confirmationText": {
|
|
32
32
|
developer_comment: "Confirmation text",
|
|
33
|
-
string: "{count, plural, one {
|
|
33
|
+
string: "{count, plural, one {Estás a punto de eliminar <b>{count}</b> {resourceTypePlural} en el proyecto: <b>{projectName}</b>. } many {vv} other {Estás a punto de eliminar <b>{count}</b> {resourceTypePlural} en el proyecto: <b>{projectName}</b>. }}"
|
|
34
34
|
},
|
|
35
35
|
"DeleteResourcesModal.continue": {
|
|
36
36
|
developer_comment: "Continue button",
|
|
@@ -198,7 +198,7 @@ var es = {
|
|
|
198
198
|
},
|
|
199
199
|
"DeleteResourcesModal.resourcesToBeDeleted": {
|
|
200
200
|
developer_comment: "Resources to be deleted",
|
|
201
|
-
string: "{count, plural, one {<b>
|
|
201
|
+
string: "{count, plural, one {<b>} many {vv} other {<b>{count}</b>{resourceTypePlural} se eliminarán}}"
|
|
202
202
|
},
|
|
203
203
|
"DeleteResourcesModal.rowLimitExceededDescription": {
|
|
204
204
|
developer_comment: "Error description when the file contains more rows than the allowable maximum",
|
|
@@ -28,7 +28,7 @@ var es = {
|
|
|
28
28
|
},
|
|
29
29
|
"DeleteResourcesModal.confirmationText": {
|
|
30
30
|
developer_comment: "Confirmation text",
|
|
31
|
-
string: "{count, plural, one {
|
|
31
|
+
string: "{count, plural, one {Estás a punto de eliminar <b>{count}</b> {resourceTypePlural} en el proyecto: <b>{projectName}</b>. } many {vv} other {Estás a punto de eliminar <b>{count}</b> {resourceTypePlural} en el proyecto: <b>{projectName}</b>. }}"
|
|
32
32
|
},
|
|
33
33
|
"DeleteResourcesModal.continue": {
|
|
34
34
|
developer_comment: "Continue button",
|
|
@@ -196,7 +196,7 @@ var es = {
|
|
|
196
196
|
},
|
|
197
197
|
"DeleteResourcesModal.resourcesToBeDeleted": {
|
|
198
198
|
developer_comment: "Resources to be deleted",
|
|
199
|
-
string: "{count, plural, one {<b>
|
|
199
|
+
string: "{count, plural, one {<b>} many {vv} other {<b>{count}</b>{resourceTypePlural} se eliminarán}}"
|
|
200
200
|
},
|
|
201
201
|
"DeleteResourcesModal.rowLimitExceededDescription": {
|
|
202
202
|
developer_comment: "Error description when the file contains more rows than the allowable maximum",
|
|
@@ -30,7 +30,7 @@ var es = {
|
|
|
30
30
|
},
|
|
31
31
|
"DeleteResourcesModal.confirmationText": {
|
|
32
32
|
developer_comment: "Confirmation text",
|
|
33
|
-
string: "{count, plural, one {
|
|
33
|
+
string: "{count, plural, one {Estás a punto de eliminar <b>{count}</b> {resourceTypePlural} en el proyecto: <b>{projectName}</b>. } many {vv} other {Estás a punto de eliminar <b>{count}</b> {resourceTypePlural} en el proyecto: <b>{projectName}</b>. }}"
|
|
34
34
|
},
|
|
35
35
|
"DeleteResourcesModal.continue": {
|
|
36
36
|
developer_comment: "Continue button",
|
|
@@ -198,7 +198,7 @@ var es = {
|
|
|
198
198
|
},
|
|
199
199
|
"DeleteResourcesModal.resourcesToBeDeleted": {
|
|
200
200
|
developer_comment: "Resources to be deleted",
|
|
201
|
-
string: "{count, plural, one {<b>
|
|
201
|
+
string: "{count, plural, one {<b>} many {vv} other {<b>{count}</b>{resourceTypePlural} se eliminarán}}"
|
|
202
202
|
},
|
|
203
203
|
"DeleteResourcesModal.rowLimitExceededDescription": {
|
|
204
204
|
developer_comment: "Error description when the file contains more rows than the allowable maximum",
|
|
@@ -30,7 +30,7 @@ var frFR = {
|
|
|
30
30
|
},
|
|
31
31
|
"DeleteResourcesModal.confirmationText": {
|
|
32
32
|
developer_comment: "Confirmation text",
|
|
33
|
-
string: "{count, plural, one {
|
|
33
|
+
string: "{count, plural, one {Vous êtes sur le point de supprimer le <b>{count}</b> {resourceTypePlural} dans le projet : <b>{projectName}</b>.} many {hhh} other {Vous êtes sur le point de supprimer le <b>{count}</b> {resourceTypePlural} dans le projet : <b>{projectName}</b>.}}"
|
|
34
34
|
},
|
|
35
35
|
"DeleteResourcesModal.continue": {
|
|
36
36
|
developer_comment: "Continue button",
|
|
@@ -198,7 +198,7 @@ var frFR = {
|
|
|
198
198
|
},
|
|
199
199
|
"DeleteResourcesModal.resourcesToBeDeleted": {
|
|
200
200
|
developer_comment: "Resources to be deleted",
|
|
201
|
-
string: "{count, plural, one {<b>{count}</b> {resourceType}
|
|
201
|
+
string: "{count, plural, one {<b>{count}</b> {resourceType} à supprimer} many {kk} other {<b>{count}</b> {resourceTypePlural} à supprimer}}"
|
|
202
202
|
},
|
|
203
203
|
"DeleteResourcesModal.rowLimitExceededDescription": {
|
|
204
204
|
developer_comment: "Error description when the file contains more rows than the allowable maximum",
|
|
@@ -30,7 +30,7 @@ var frFR = {
|
|
|
30
30
|
},
|
|
31
31
|
"DeleteResourcesModal.confirmationText": {
|
|
32
32
|
developer_comment: "Confirmation text",
|
|
33
|
-
string: "{count, plural, one {
|
|
33
|
+
string: "{count, plural, one {Vous êtes sur le point de supprimer le <b>{count}</b> {resourceTypePlural} dans le projet : <b>{projectName}</b>.} many {hhh} other {Vous êtes sur le point de supprimer le <b>{count}</b> {resourceTypePlural} dans le projet : <b>{projectName}</b>.}}"
|
|
34
34
|
},
|
|
35
35
|
"DeleteResourcesModal.continue": {
|
|
36
36
|
developer_comment: "Continue button",
|
|
@@ -198,7 +198,7 @@ var frFR = {
|
|
|
198
198
|
},
|
|
199
199
|
"DeleteResourcesModal.resourcesToBeDeleted": {
|
|
200
200
|
developer_comment: "Resources to be deleted",
|
|
201
|
-
string: "{count, plural, one {<b>{count}</b> {resourceType}
|
|
201
|
+
string: "{count, plural, one {<b>{count}</b> {resourceType} à supprimer} many {kk} other {<b>{count}</b> {resourceTypePlural} à supprimer}}"
|
|
202
202
|
},
|
|
203
203
|
"DeleteResourcesModal.rowLimitExceededDescription": {
|
|
204
204
|
developer_comment: "Error description when the file contains more rows than the allowable maximum",
|
|
@@ -28,7 +28,7 @@ var frFR = {
|
|
|
28
28
|
},
|
|
29
29
|
"DeleteResourcesModal.confirmationText": {
|
|
30
30
|
developer_comment: "Confirmation text",
|
|
31
|
-
string: "{count, plural, one {
|
|
31
|
+
string: "{count, plural, one {Vous êtes sur le point de supprimer le <b>{count}</b> {resourceTypePlural} dans le projet : <b>{projectName}</b>.} many {hhh} other {Vous êtes sur le point de supprimer le <b>{count}</b> {resourceTypePlural} dans le projet : <b>{projectName}</b>.}}"
|
|
32
32
|
},
|
|
33
33
|
"DeleteResourcesModal.continue": {
|
|
34
34
|
developer_comment: "Continue button",
|
|
@@ -196,7 +196,7 @@ var frFR = {
|
|
|
196
196
|
},
|
|
197
197
|
"DeleteResourcesModal.resourcesToBeDeleted": {
|
|
198
198
|
developer_comment: "Resources to be deleted",
|
|
199
|
-
string: "{count, plural, one {<b>{count}</b> {resourceType}
|
|
199
|
+
string: "{count, plural, one {<b>{count}</b> {resourceType} à supprimer} many {kk} other {<b>{count}</b> {resourceTypePlural} à supprimer}}"
|
|
200
200
|
},
|
|
201
201
|
"DeleteResourcesModal.rowLimitExceededDescription": {
|
|
202
202
|
developer_comment: "Error description when the file contains more rows than the allowable maximum",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend-extensions/delete-resources-modal",
|
|
3
3
|
"description": "Shared import modal for deleting resources",
|
|
4
|
-
"version": "0.0.0-canary-
|
|
4
|
+
"version": "0.0.0-canary-20251209161906",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@babel/runtime": "7.28.
|
|
19
|
-
"@babel/runtime-corejs3": "7.28.
|
|
18
|
+
"@babel/runtime": "7.28.4",
|
|
19
|
+
"@babel/runtime-corejs3": "7.28.4",
|
|
20
20
|
"@commercetools/importapi-sdk": "5.20.0",
|
|
21
21
|
"@emotion/react": "11.14.0",
|
|
22
22
|
"@emotion/styled": "11.14.1",
|
|
23
|
-
"@formatjs/cli": "6.7.
|
|
23
|
+
"@formatjs/cli": "6.7.4",
|
|
24
24
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
25
25
|
"jest": "29.7.0",
|
|
26
26
|
"lodash": "4.17.21",
|
|
@@ -30,38 +30,38 @@
|
|
|
30
30
|
"papaparse": "5.5.3",
|
|
31
31
|
"pluralize": "8.0.0",
|
|
32
32
|
"prop-types": "15.8.1",
|
|
33
|
-
"ramda": "^0.
|
|
34
|
-
"
|
|
33
|
+
"ramda": "^0.32.0",
|
|
34
|
+
"@commercetools-frontend-extensions/operations": "0.0.0-canary-20251209161906"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@commercetools-frontend/actions-global": "24.
|
|
38
|
-
"@commercetools-frontend/application-components": "24.
|
|
39
|
-
"@commercetools-frontend/application-shell": "24.
|
|
40
|
-
"@commercetools-frontend/application-shell-connectors": "24.
|
|
41
|
-
"@commercetools-frontend/constants": "24.
|
|
42
|
-
"@commercetools-frontend/fullstory": "4.0.
|
|
43
|
-
"@commercetools-frontend/i18n": "24.
|
|
44
|
-
"@commercetools-frontend/jest-preset-mc-app": "24.
|
|
45
|
-
"@commercetools-frontend/permissions": "24.
|
|
46
|
-
"@commercetools-frontend/sdk": "24.
|
|
47
|
-
"@commercetools-frontend/sentry": "24.
|
|
48
|
-
"@commercetools-frontend/ui-kit": "20.
|
|
49
|
-
"@commercetools-uikit/data-table": "20.
|
|
50
|
-
"@commercetools-uikit/design-system": "20.
|
|
51
|
-
"@commercetools-uikit/icons": "20.
|
|
52
|
-
"@commercetools-uikit/select-field": "20.
|
|
37
|
+
"@commercetools-frontend/actions-global": "24.11.0",
|
|
38
|
+
"@commercetools-frontend/application-components": "24.11.0",
|
|
39
|
+
"@commercetools-frontend/application-shell": "24.11.0",
|
|
40
|
+
"@commercetools-frontend/application-shell-connectors": "24.11.0",
|
|
41
|
+
"@commercetools-frontend/constants": "24.11.0",
|
|
42
|
+
"@commercetools-frontend/fullstory": "4.0.3",
|
|
43
|
+
"@commercetools-frontend/i18n": "24.11.0",
|
|
44
|
+
"@commercetools-frontend/jest-preset-mc-app": "24.11.0",
|
|
45
|
+
"@commercetools-frontend/permissions": "24.11.0",
|
|
46
|
+
"@commercetools-frontend/sdk": "24.11.0",
|
|
47
|
+
"@commercetools-frontend/sentry": "24.11.0",
|
|
48
|
+
"@commercetools-frontend/ui-kit": "20.3.0",
|
|
49
|
+
"@commercetools-uikit/data-table": "20.3.0",
|
|
50
|
+
"@commercetools-uikit/design-system": "20.3.0",
|
|
51
|
+
"@commercetools-uikit/icons": "20.3.0",
|
|
52
|
+
"@commercetools-uikit/select-field": "20.3.0",
|
|
53
53
|
"@preconstruct/cli": "2.8.12",
|
|
54
54
|
"@types/jest": "29.5.14",
|
|
55
55
|
"@types/lodash.truncate": "^4.4.7",
|
|
56
|
-
"@types/papaparse": "5.
|
|
56
|
+
"@types/papaparse": "5.5.1",
|
|
57
57
|
"@types/pluralize": "0.0.33",
|
|
58
58
|
"@types/testing-library__jest-dom": "^5.14.5",
|
|
59
59
|
"msw": "1.3.5",
|
|
60
|
-
"react": "19.
|
|
60
|
+
"react": "19.2.0",
|
|
61
61
|
"react-intl": "7.1.4",
|
|
62
62
|
"react-redux": "7.2.9",
|
|
63
63
|
"redux": "4.2.1",
|
|
64
|
-
"rimraf": "6.
|
|
64
|
+
"rimraf": "6.1.2"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@commercetools-frontend/actions-global": "23.x || 24.x",
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var dist_commercetoolsFrontendExtensionsDeleteResourcesModal = require('./index-38fb081c.cjs.dev.js');
|
|
4
|
-
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
5
|
-
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
6
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
7
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
8
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
9
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
10
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
11
|
-
require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
12
|
-
require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
13
|
-
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
14
|
-
require('react-intl');
|
|
15
|
-
require('@commercetools-frontend/application-shell-connectors');
|
|
16
|
-
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
17
|
-
require('react');
|
|
18
|
-
require('@commercetools-frontend/sdk');
|
|
19
|
-
require('@commercetools-frontend/constants');
|
|
20
|
-
require('pluralize');
|
|
21
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
22
|
-
require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
23
|
-
require('@babel/runtime-corejs3/helpers/createClass');
|
|
24
|
-
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
25
|
-
require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
26
|
-
require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
27
|
-
require('@babel/runtime-corejs3/helpers/inherits');
|
|
28
|
-
require('@babel/runtime-corejs3/helpers/wrapNativeSuper');
|
|
29
|
-
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
30
|
-
require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
31
|
-
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
32
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
33
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
34
|
-
require('papaparse');
|
|
35
|
-
require('@commercetools-frontend/application-components');
|
|
36
|
-
require('@commercetools-frontend/fullstory');
|
|
37
|
-
require('@commercetools-frontend/ui-kit');
|
|
38
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
39
|
-
require('react-dropzone');
|
|
40
|
-
require('@commercetools-frontend/actions-global');
|
|
41
|
-
require('@emotion/styled/base');
|
|
42
|
-
require('@emotion/react');
|
|
43
|
-
require('@commercetools-frontend/sentry');
|
|
44
|
-
require('@commercetools-frontend/application-shell');
|
|
45
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
46
|
-
require('@commercetools-frontend/i18n');
|
|
47
|
-
|
|
48
|
-
function ActiveDragDropArea(_ref) {
|
|
49
|
-
let isFileDropped = _ref.isFileDropped;
|
|
50
|
-
if (isFileDropped) return jsxRuntime.jsx(dist_commercetoolsFrontendExtensionsDeleteResourcesModal.FileDropped, {});
|
|
51
|
-
return jsxRuntime.jsx(dist_commercetoolsFrontendExtensionsDeleteResourcesModal.EnabledDropArea, {});
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
exports["default"] = ActiveDragDropArea;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var dist_commercetoolsFrontendExtensionsDeleteResourcesModal = require('./index-787342c4.cjs.prod.js');
|
|
4
|
-
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
5
|
-
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
6
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
7
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
8
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
9
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
10
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
11
|
-
require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
12
|
-
require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
13
|
-
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
14
|
-
require('react-intl');
|
|
15
|
-
require('@commercetools-frontend/application-shell-connectors');
|
|
16
|
-
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
17
|
-
require('react');
|
|
18
|
-
require('@commercetools-frontend/sdk');
|
|
19
|
-
require('@commercetools-frontend/constants');
|
|
20
|
-
require('pluralize');
|
|
21
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
22
|
-
require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
23
|
-
require('@babel/runtime-corejs3/helpers/createClass');
|
|
24
|
-
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
25
|
-
require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
26
|
-
require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
27
|
-
require('@babel/runtime-corejs3/helpers/inherits');
|
|
28
|
-
require('@babel/runtime-corejs3/helpers/wrapNativeSuper');
|
|
29
|
-
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
30
|
-
require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
31
|
-
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
32
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
33
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
34
|
-
require('papaparse');
|
|
35
|
-
require('@commercetools-frontend/application-components');
|
|
36
|
-
require('@commercetools-frontend/fullstory');
|
|
37
|
-
require('@commercetools-frontend/ui-kit');
|
|
38
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
39
|
-
require('react-dropzone');
|
|
40
|
-
require('@commercetools-frontend/actions-global');
|
|
41
|
-
require('@emotion/styled/base');
|
|
42
|
-
require('@emotion/react');
|
|
43
|
-
require('@commercetools-frontend/sentry');
|
|
44
|
-
require('@commercetools-frontend/application-shell');
|
|
45
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
46
|
-
require('@commercetools-frontend/i18n');
|
|
47
|
-
|
|
48
|
-
function ActiveDragDropArea(_ref) {
|
|
49
|
-
let isFileDropped = _ref.isFileDropped;
|
|
50
|
-
if (isFileDropped) return jsxRuntime.jsx(dist_commercetoolsFrontendExtensionsDeleteResourcesModal.FileDropped, {});
|
|
51
|
-
return jsxRuntime.jsx(dist_commercetoolsFrontendExtensionsDeleteResourcesModal.EnabledDropArea, {});
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
exports["default"] = ActiveDragDropArea;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { F as FileDropped, E as EnabledDropArea } from './index-a5c6573b.esm.js';
|
|
2
|
-
import { jsx } from '@emotion/react/jsx-runtime';
|
|
3
|
-
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
4
|
-
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
5
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
6
|
-
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
|
|
7
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/for-each';
|
|
8
|
-
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
|
|
9
|
-
import '@babel/runtime-corejs3/core-js-stable/object/define-properties';
|
|
10
|
-
import '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
11
|
-
import '@babel/runtime-corejs3/helpers/defineProperty';
|
|
12
|
-
import 'react-intl';
|
|
13
|
-
import '@commercetools-frontend/application-shell-connectors';
|
|
14
|
-
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
15
|
-
import 'react';
|
|
16
|
-
import '@commercetools-frontend/sdk';
|
|
17
|
-
import '@commercetools-frontend/constants';
|
|
18
|
-
import 'pluralize';
|
|
19
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/every';
|
|
20
|
-
import '@babel/runtime-corejs3/core-js-stable/reflect/construct';
|
|
21
|
-
import '@babel/runtime-corejs3/helpers/createClass';
|
|
22
|
-
import '@babel/runtime-corejs3/helpers/classCallCheck';
|
|
23
|
-
import '@babel/runtime-corejs3/helpers/possibleConstructorReturn';
|
|
24
|
-
import '@babel/runtime-corejs3/helpers/getPrototypeOf';
|
|
25
|
-
import '@babel/runtime-corejs3/helpers/inherits';
|
|
26
|
-
import '@babel/runtime-corejs3/helpers/wrapNativeSuper';
|
|
27
|
-
import '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
28
|
-
import '@babel/runtime-corejs3/core-js-stable/promise';
|
|
29
|
-
import '@babel/runtime-corejs3/core-js-stable/array/is-array';
|
|
30
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
31
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
32
|
-
import 'papaparse';
|
|
33
|
-
import '@commercetools-frontend/application-components';
|
|
34
|
-
import '@commercetools-frontend/fullstory';
|
|
35
|
-
import '@commercetools-frontend/ui-kit';
|
|
36
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/some';
|
|
37
|
-
import 'react-dropzone';
|
|
38
|
-
import '@commercetools-frontend/actions-global';
|
|
39
|
-
import '@emotion/styled/base';
|
|
40
|
-
import '@emotion/react';
|
|
41
|
-
import '@commercetools-frontend/sentry';
|
|
42
|
-
import '@commercetools-frontend/application-shell';
|
|
43
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
44
|
-
import '@commercetools-frontend/i18n';
|
|
45
|
-
|
|
46
|
-
function ActiveDragDropArea(_ref) {
|
|
47
|
-
let isFileDropped = _ref.isFileDropped;
|
|
48
|
-
if (isFileDropped) return jsx(FileDropped, {});
|
|
49
|
-
return jsx(EnabledDropArea, {});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export { ActiveDragDropArea as default };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { ResourceTypeId } from '@commercetools/importapi-sdk';
|
|
2
|
-
import type { TSdkAction } from '@commercetools-frontend/sdk';
|
|
3
|
-
export type DropAreaState = 'active-drag' | 'ready-for-drop' | 'file-dropped';
|
|
4
|
-
export type FileUploadError = {
|
|
5
|
-
title: string;
|
|
6
|
-
description: string;
|
|
7
|
-
};
|
|
8
|
-
export type RowError = {
|
|
9
|
-
code: string;
|
|
10
|
-
message: string;
|
|
11
|
-
field: string;
|
|
12
|
-
};
|
|
13
|
-
export type RowErrorsResponse = {
|
|
14
|
-
row?: number;
|
|
15
|
-
errors: Array<RowError>;
|
|
16
|
-
};
|
|
17
|
-
export interface FileUploadResponse {
|
|
18
|
-
results: Array<RowErrorsResponse>;
|
|
19
|
-
invalid: number;
|
|
20
|
-
valid: number;
|
|
21
|
-
fileName: string;
|
|
22
|
-
rowsCount: number;
|
|
23
|
-
columnsCount: number;
|
|
24
|
-
columns: Array<string>;
|
|
25
|
-
ignoredColumns: Array<string>;
|
|
26
|
-
}
|
|
27
|
-
export interface FileUploadRequestParameters {
|
|
28
|
-
resourceType: ResourceTypeId;
|
|
29
|
-
projectKey: string;
|
|
30
|
-
containerKey: string;
|
|
31
|
-
file: File;
|
|
32
|
-
abortSignal?: AbortSignal;
|
|
33
|
-
onSuccess: (data: FileUploadResponse) => void;
|
|
34
|
-
onProgress: (progress: number) => void;
|
|
35
|
-
onError: (error: Error) => void;
|
|
36
|
-
}
|
|
37
|
-
export interface ProcessUploadedFileRequestParameters {
|
|
38
|
-
projectKey: string;
|
|
39
|
-
containerKey: string;
|
|
40
|
-
resourceType: ResourceTypeId;
|
|
41
|
-
asyncDispatch: (action: TSdkAction) => Promise<unknown>;
|
|
42
|
-
}
|
|
43
|
-
export type ProcessFileResponse = {
|
|
44
|
-
message: string;
|
|
45
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { Spacings, Text, Link } from '@commercetools-frontend/ui-kit';
|
|
2
|
-
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
3
|
-
import 'react';
|
|
4
|
-
import '@commercetools-frontend/application-shell-connectors';
|
|
5
|
-
import '@commercetools-frontend/sdk';
|
|
6
|
-
import { a as FileIcon, m as messages } from './index-a5c6573b.esm.js';
|
|
7
|
-
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
8
|
-
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
9
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
10
|
-
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
|
|
11
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/for-each';
|
|
12
|
-
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
|
|
13
|
-
import '@babel/runtime-corejs3/core-js-stable/object/define-properties';
|
|
14
|
-
import '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
15
|
-
import '@babel/runtime-corejs3/helpers/defineProperty';
|
|
16
|
-
import '@commercetools-frontend/constants';
|
|
17
|
-
import 'pluralize';
|
|
18
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/every';
|
|
19
|
-
import '@babel/runtime-corejs3/core-js-stable/reflect/construct';
|
|
20
|
-
import '@babel/runtime-corejs3/helpers/createClass';
|
|
21
|
-
import '@babel/runtime-corejs3/helpers/classCallCheck';
|
|
22
|
-
import '@babel/runtime-corejs3/helpers/possibleConstructorReturn';
|
|
23
|
-
import '@babel/runtime-corejs3/helpers/getPrototypeOf';
|
|
24
|
-
import '@babel/runtime-corejs3/helpers/inherits';
|
|
25
|
-
import '@babel/runtime-corejs3/helpers/wrapNativeSuper';
|
|
26
|
-
import '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
27
|
-
import '@babel/runtime-corejs3/core-js-stable/promise';
|
|
28
|
-
import '@babel/runtime-corejs3/core-js-stable/array/is-array';
|
|
29
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
30
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
31
|
-
import 'papaparse';
|
|
32
|
-
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
33
|
-
import 'react-intl';
|
|
34
|
-
import '@commercetools-frontend/application-components';
|
|
35
|
-
import '@commercetools-frontend/fullstory';
|
|
36
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/some';
|
|
37
|
-
import 'react-dropzone';
|
|
38
|
-
import '@commercetools-frontend/actions-global';
|
|
39
|
-
import '@emotion/styled/base';
|
|
40
|
-
import '@emotion/react';
|
|
41
|
-
import '@commercetools-frontend/sentry';
|
|
42
|
-
import '@commercetools-frontend/application-shell';
|
|
43
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
44
|
-
import '@commercetools-frontend/i18n';
|
|
45
|
-
|
|
46
|
-
function EnabledDropArea() {
|
|
47
|
-
return jsxs(Spacings.Inline, {
|
|
48
|
-
alignItems: "center",
|
|
49
|
-
justifyContent: "center",
|
|
50
|
-
scale: "s",
|
|
51
|
-
children: [jsx(FileIcon, {}), jsxs(Spacings.Inline, {
|
|
52
|
-
alignItems: "center",
|
|
53
|
-
scale: "s",
|
|
54
|
-
children: [jsx(Text.Subheadline, {
|
|
55
|
-
as: "h4",
|
|
56
|
-
intlMessage: messages.dragAndDropCSV
|
|
57
|
-
}), jsx(Text.Body, {
|
|
58
|
-
intlMessage: messages.or
|
|
59
|
-
}), jsx(Link, {
|
|
60
|
-
intlMessage: messages.browseButton,
|
|
61
|
-
tone: "secondary",
|
|
62
|
-
to: "",
|
|
63
|
-
onClick: ev => ev.preventDefault()
|
|
64
|
-
})]
|
|
65
|
-
})]
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export { EnabledDropArea as default };
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var uiKit = require('@commercetools-frontend/ui-kit');
|
|
4
|
-
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
5
|
-
require('react');
|
|
6
|
-
require('@commercetools-frontend/application-shell-connectors');
|
|
7
|
-
require('@commercetools-frontend/sdk');
|
|
8
|
-
var dist_commercetoolsFrontendExtensionsDeleteResourcesModal = require('./index-38fb081c.cjs.dev.js');
|
|
9
|
-
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
10
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
11
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
12
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
13
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
14
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
15
|
-
require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
16
|
-
require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
17
|
-
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
18
|
-
require('@commercetools-frontend/constants');
|
|
19
|
-
require('pluralize');
|
|
20
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
21
|
-
require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
22
|
-
require('@babel/runtime-corejs3/helpers/createClass');
|
|
23
|
-
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
24
|
-
require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
25
|
-
require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
26
|
-
require('@babel/runtime-corejs3/helpers/inherits');
|
|
27
|
-
require('@babel/runtime-corejs3/helpers/wrapNativeSuper');
|
|
28
|
-
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
29
|
-
require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
30
|
-
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
31
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
32
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
33
|
-
require('papaparse');
|
|
34
|
-
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
35
|
-
require('react-intl');
|
|
36
|
-
require('@commercetools-frontend/application-components');
|
|
37
|
-
require('@commercetools-frontend/fullstory');
|
|
38
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
39
|
-
require('react-dropzone');
|
|
40
|
-
require('@commercetools-frontend/actions-global');
|
|
41
|
-
require('@emotion/styled/base');
|
|
42
|
-
require('@emotion/react');
|
|
43
|
-
require('@commercetools-frontend/sentry');
|
|
44
|
-
require('@commercetools-frontend/application-shell');
|
|
45
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
46
|
-
require('@commercetools-frontend/i18n');
|
|
47
|
-
|
|
48
|
-
function EnabledDropArea() {
|
|
49
|
-
return jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
50
|
-
alignItems: "center",
|
|
51
|
-
justifyContent: "center",
|
|
52
|
-
scale: "s",
|
|
53
|
-
children: [jsxRuntime.jsx(dist_commercetoolsFrontendExtensionsDeleteResourcesModal.FileIcon, {}), jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
54
|
-
alignItems: "center",
|
|
55
|
-
scale: "s",
|
|
56
|
-
children: [jsxRuntime.jsx(uiKit.Text.Subheadline, {
|
|
57
|
-
as: "h4",
|
|
58
|
-
intlMessage: dist_commercetoolsFrontendExtensionsDeleteResourcesModal.messages.dragAndDropCSV
|
|
59
|
-
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
60
|
-
intlMessage: dist_commercetoolsFrontendExtensionsDeleteResourcesModal.messages.or
|
|
61
|
-
}), jsxRuntime.jsx(uiKit.Link, {
|
|
62
|
-
intlMessage: dist_commercetoolsFrontendExtensionsDeleteResourcesModal.messages.browseButton,
|
|
63
|
-
tone: "secondary",
|
|
64
|
-
to: "",
|
|
65
|
-
onClick: ev => ev.preventDefault()
|
|
66
|
-
})]
|
|
67
|
-
})]
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
exports["default"] = EnabledDropArea;
|