@commercetools-frontend-extensions/unpublish-products-modal 1.2.3 → 1.2.5
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/{active-drag-drop-area-83aa8e4f.esm.js → active-drag-drop-area-272fc575.esm.js} +1 -1
- package/dist/{active-drag-drop-area-e06cf383.cjs.dev.js → active-drag-drop-area-d4747efc.cjs.dev.js} +1 -1
- package/dist/{active-drag-drop-area-d185a08a.cjs.prod.js → active-drag-drop-area-fc551a0e.cjs.prod.js} +1 -1
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.esm.js +1 -1
- package/dist/{enabled-drop-area-94dddc1b.cjs.prod.js → enabled-drop-area-a750ea18.cjs.prod.js} +9 -9
- package/dist/{enabled-drop-area-c6c2639e.esm.js → enabled-drop-area-c3902695.esm.js} +9 -9
- package/dist/{enabled-drop-area-e67ca3fe.cjs.dev.js → enabled-drop-area-c750b6ba.cjs.dev.js} +9 -9
- package/dist/{file-dropped-area-80912577.cjs.dev.js → file-dropped-area-0d73f0f6.cjs.dev.js} +8 -8
- package/dist/{file-dropped-area-0d6e8aa7.cjs.prod.js → file-dropped-area-23cc482a.cjs.prod.js} +8 -8
- package/dist/{file-dropped-area-47ffbe43.esm.js → file-dropped-area-dad90f26.esm.js} +8 -8
- package/dist/{index-057e13aa.cjs.dev.js → index-21e8e348.cjs.dev.js} +31 -22
- package/dist/{index-2c12be32.esm.js → index-7a25a6ee.esm.js} +31 -22
- package/dist/{index-405961f5.cjs.prod.js → index-a2aa0229.cjs.prod.js} +31 -22
- package/package.json +39 -38
package/dist/{active-drag-drop-area-83aa8e4f.esm.js → active-drag-drop-area-272fc575.esm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FileDropped, E as EnabledDropArea } from './index-
|
|
1
|
+
import { F as FileDropped, E as EnabledDropArea } from './index-7a25a6ee.esm.js';
|
|
2
2
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
3
3
|
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
4
4
|
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
package/dist/{active-drag-drop-area-e06cf383.cjs.dev.js → active-drag-drop-area-d4747efc.cjs.dev.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-
|
|
3
|
+
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-21e8e348.cjs.dev.js');
|
|
4
4
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
5
5
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
6
6
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-
|
|
3
|
+
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-a2aa0229.cjs.prod.js');
|
|
4
4
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
5
5
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
6
6
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-
|
|
5
|
+
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-21e8e348.cjs.dev.js');
|
|
6
6
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
7
7
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
8
8
|
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-
|
|
5
|
+
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-a2aa0229.cjs.prod.js');
|
|
6
6
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
7
7
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
8
8
|
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { U as default } from './index-
|
|
1
|
+
export { U as default } from './index-7a25a6ee.esm.js';
|
|
2
2
|
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
3
3
|
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
4
4
|
import '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
package/dist/{enabled-drop-area-94dddc1b.cjs.prod.js → enabled-drop-area-a750ea18.cjs.prod.js}
RENAMED
|
@@ -5,15 +5,7 @@ require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
|
5
5
|
require('react');
|
|
6
6
|
require('@commercetools-frontend/application-shell-connectors');
|
|
7
7
|
require('@commercetools-frontend/sdk');
|
|
8
|
-
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-
|
|
9
|
-
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
10
|
-
require('@commercetools-frontend/constants');
|
|
11
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
12
|
-
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
13
|
-
require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
14
|
-
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
15
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
16
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
8
|
+
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-a2aa0229.cjs.prod.js');
|
|
17
9
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
18
10
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
19
11
|
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
@@ -22,6 +14,14 @@ require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
|
22
14
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
23
15
|
require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
24
16
|
require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
17
|
+
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
18
|
+
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
19
|
+
require('@commercetools-frontend/constants');
|
|
20
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
21
|
+
require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
22
|
+
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
23
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
24
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
25
25
|
require('papaparse');
|
|
26
26
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
27
27
|
require('react-intl');
|
|
@@ -3,15 +3,7 @@ import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@commercetools-frontend/application-shell-connectors';
|
|
5
5
|
import '@commercetools-frontend/sdk';
|
|
6
|
-
import { a as FileIcon, m as messages } from './index-
|
|
7
|
-
import '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
8
|
-
import '@commercetools-frontend/constants';
|
|
9
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/every';
|
|
10
|
-
import '@babel/runtime-corejs3/helpers/defineProperty';
|
|
11
|
-
import '@babel/runtime-corejs3/core-js-stable/promise';
|
|
12
|
-
import '@babel/runtime-corejs3/core-js-stable/array/is-array';
|
|
13
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
14
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
6
|
+
import { a as FileIcon, m as messages } from './index-7a25a6ee.esm.js';
|
|
15
7
|
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
16
8
|
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
17
9
|
import '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
@@ -20,6 +12,14 @@ import '@babel/runtime-corejs3/core-js-stable/instance/for-each';
|
|
|
20
12
|
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
|
|
21
13
|
import '@babel/runtime-corejs3/core-js-stable/object/define-properties';
|
|
22
14
|
import '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
15
|
+
import '@babel/runtime-corejs3/helpers/defineProperty';
|
|
16
|
+
import '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
17
|
+
import '@commercetools-frontend/constants';
|
|
18
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/every';
|
|
19
|
+
import '@babel/runtime-corejs3/core-js-stable/promise';
|
|
20
|
+
import '@babel/runtime-corejs3/core-js-stable/array/is-array';
|
|
21
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
22
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
23
23
|
import 'papaparse';
|
|
24
24
|
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
25
25
|
import 'react-intl';
|
package/dist/{enabled-drop-area-e67ca3fe.cjs.dev.js → enabled-drop-area-c750b6ba.cjs.dev.js}
RENAMED
|
@@ -5,15 +5,7 @@ require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
|
5
5
|
require('react');
|
|
6
6
|
require('@commercetools-frontend/application-shell-connectors');
|
|
7
7
|
require('@commercetools-frontend/sdk');
|
|
8
|
-
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-
|
|
9
|
-
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
10
|
-
require('@commercetools-frontend/constants');
|
|
11
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
12
|
-
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
13
|
-
require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
14
|
-
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
15
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
16
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
8
|
+
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-21e8e348.cjs.dev.js');
|
|
17
9
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
18
10
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
19
11
|
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
@@ -22,6 +14,14 @@ require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
|
22
14
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
23
15
|
require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
24
16
|
require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
17
|
+
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
18
|
+
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
19
|
+
require('@commercetools-frontend/constants');
|
|
20
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
21
|
+
require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
22
|
+
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
23
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
24
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
25
25
|
require('papaparse');
|
|
26
26
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
27
27
|
require('react-intl');
|
package/dist/{file-dropped-area-80912577.cjs.dev.js → file-dropped-area-0d73f0f6.cjs.dev.js}
RENAMED
|
@@ -2,20 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
var reactIntl = require('react-intl');
|
|
4
4
|
var uiKit = require('@commercetools-frontend/ui-kit');
|
|
5
|
-
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-
|
|
5
|
+
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-21e8e348.cjs.dev.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('@commercetools-frontend/actions-global');
|
|
8
8
|
require('@commercetools-frontend/application-shell-connectors');
|
|
9
9
|
require('@commercetools-frontend/constants');
|
|
10
10
|
require('@commercetools-frontend/sdk');
|
|
11
11
|
require('@commercetools-frontend/sentry');
|
|
12
|
-
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
13
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
14
|
-
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
15
|
-
require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
16
|
-
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
17
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
18
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
19
12
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
20
13
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
21
14
|
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
@@ -24,6 +17,13 @@ require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
|
24
17
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
25
18
|
require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
26
19
|
require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
20
|
+
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
21
|
+
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
22
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
23
|
+
require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
24
|
+
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
25
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
26
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
27
27
|
require('papaparse');
|
|
28
28
|
require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
29
29
|
require('@babel/runtime-corejs3/helpers/createClass');
|
package/dist/{file-dropped-area-0d6e8aa7.cjs.prod.js → file-dropped-area-23cc482a.cjs.prod.js}
RENAMED
|
@@ -2,20 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
var reactIntl = require('react-intl');
|
|
4
4
|
var uiKit = require('@commercetools-frontend/ui-kit');
|
|
5
|
-
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-
|
|
5
|
+
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-a2aa0229.cjs.prod.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('@commercetools-frontend/actions-global');
|
|
8
8
|
require('@commercetools-frontend/application-shell-connectors');
|
|
9
9
|
require('@commercetools-frontend/constants');
|
|
10
10
|
require('@commercetools-frontend/sdk');
|
|
11
11
|
require('@commercetools-frontend/sentry');
|
|
12
|
-
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
13
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
14
|
-
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
15
|
-
require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
16
|
-
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
17
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
18
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
19
12
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
20
13
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
21
14
|
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
@@ -24,6 +17,13 @@ require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
|
24
17
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
25
18
|
require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
26
19
|
require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
20
|
+
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
21
|
+
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
22
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
23
|
+
require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
24
|
+
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
25
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
26
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
27
27
|
require('papaparse');
|
|
28
28
|
require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
29
29
|
require('@babel/runtime-corejs3/helpers/createClass');
|
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
import { useIntl } from 'react-intl';
|
|
2
2
|
import { Spacings, PaperclipIcon, Constraints, Text, SecondaryButton } from '@commercetools-frontend/ui-kit';
|
|
3
|
-
import { u as useUnpublishProductsContext, m as messages } from './index-
|
|
3
|
+
import { u as useUnpublishProductsContext, m as messages } from './index-7a25a6ee.esm.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@commercetools-frontend/actions-global';
|
|
6
6
|
import '@commercetools-frontend/application-shell-connectors';
|
|
7
7
|
import '@commercetools-frontend/constants';
|
|
8
8
|
import '@commercetools-frontend/sdk';
|
|
9
9
|
import '@commercetools-frontend/sentry';
|
|
10
|
-
import '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
11
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/every';
|
|
12
|
-
import '@babel/runtime-corejs3/helpers/defineProperty';
|
|
13
|
-
import '@babel/runtime-corejs3/core-js-stable/promise';
|
|
14
|
-
import '@babel/runtime-corejs3/core-js-stable/array/is-array';
|
|
15
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
16
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
17
10
|
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
18
11
|
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
19
12
|
import '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
@@ -22,6 +15,13 @@ import '@babel/runtime-corejs3/core-js-stable/instance/for-each';
|
|
|
22
15
|
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
|
|
23
16
|
import '@babel/runtime-corejs3/core-js-stable/object/define-properties';
|
|
24
17
|
import '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
18
|
+
import '@babel/runtime-corejs3/helpers/defineProperty';
|
|
19
|
+
import '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
20
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/every';
|
|
21
|
+
import '@babel/runtime-corejs3/core-js-stable/promise';
|
|
22
|
+
import '@babel/runtime-corejs3/core-js-stable/array/is-array';
|
|
23
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
24
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
25
25
|
import 'papaparse';
|
|
26
26
|
import '@babel/runtime-corejs3/core-js-stable/reflect/construct';
|
|
27
27
|
import '@babel/runtime-corejs3/helpers/createClass';
|
|
@@ -66,24 +66,24 @@ var _styled__default = /*#__PURE__*/_interopDefault(_styled);
|
|
|
66
66
|
var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construct);
|
|
67
67
|
var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanceProperty);
|
|
68
68
|
|
|
69
|
-
function ownKeys$
|
|
70
|
-
function _objectSpread$
|
|
69
|
+
function ownKeys$b(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
70
|
+
function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$b(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$b(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
71
71
|
function reducer(state, action) {
|
|
72
|
-
if (action.type === 'setCurrentStep') return _objectSpread$
|
|
72
|
+
if (action.type === 'setCurrentStep') return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
73
73
|
currentStep: action.currentStep,
|
|
74
74
|
progress: 0
|
|
75
75
|
});
|
|
76
|
-
if (action.type === 'setContainerKey') return _objectSpread$
|
|
76
|
+
if (action.type === 'setContainerKey') return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
77
77
|
containerKey: action.containerKey
|
|
78
78
|
});
|
|
79
|
-
if (action.type === 'cancelImport') return _objectSpread$
|
|
79
|
+
if (action.type === 'cancelImport') return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
80
80
|
currentStep: 'upload',
|
|
81
81
|
containerKey: undefined,
|
|
82
82
|
droppedFile: undefined,
|
|
83
83
|
dropAreaState: 'ready-for-drop',
|
|
84
84
|
progress: 0
|
|
85
85
|
});
|
|
86
|
-
if (action.type === 'uploadNewFile') return _objectSpread$
|
|
86
|
+
if (action.type === 'uploadNewFile') return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
87
87
|
currentStep: 'upload',
|
|
88
88
|
containerKey: undefined,
|
|
89
89
|
droppedFile: undefined,
|
|
@@ -91,27 +91,27 @@ function reducer(state, action) {
|
|
|
91
91
|
progress: 0
|
|
92
92
|
});
|
|
93
93
|
if (action.type === 'setDroppedFile') {
|
|
94
|
-
return _objectSpread$
|
|
94
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
95
95
|
droppedFile: action.droppedFile
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
if (action.type === 'setAbortController') {
|
|
99
|
-
return _objectSpread$
|
|
99
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
100
100
|
abortController: action.abortController
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
if (action.type === 'setProgress') {
|
|
104
|
-
return _objectSpread$
|
|
104
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
105
105
|
progress: action.progress
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
if (action.type === 'setUploadFileResponse') {
|
|
109
|
-
return _objectSpread$
|
|
109
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
110
110
|
uploadFileResponse: action.uploadFileResponse
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
if (action.type === 'setFileUploadErrors') {
|
|
114
|
-
return _objectSpread$
|
|
114
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
115
115
|
fileUploadErrors: action.fileUploadErrors
|
|
116
116
|
});
|
|
117
117
|
}
|
|
@@ -172,6 +172,8 @@ function getProccessFileURL(projectKey, containerKey) {
|
|
|
172
172
|
return `/${projectKey}/products/import-containers/${containerKey}/process-file`;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
function ownKeys$a(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
176
|
+
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$a(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$a(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
175
177
|
function createImportContainerForFileUpload(importContainerDraft, projectKey, asyncDispatch) {
|
|
176
178
|
return asyncDispatch(sdk.actions.post({
|
|
177
179
|
mcApiProxyTarget: constants.MC_API_PROXY_TARGETS.IMPORT,
|
|
@@ -180,7 +182,14 @@ function createImportContainerForFileUpload(importContainerDraft, projectKey, as
|
|
|
180
182
|
accept: 'application/json',
|
|
181
183
|
'Content-Type': 'application/json'
|
|
182
184
|
},
|
|
183
|
-
payload: _JSON$stringify__default["default"](
|
|
185
|
+
payload: _JSON$stringify__default["default"](_objectSpread$a({
|
|
186
|
+
retentionPolicy: {
|
|
187
|
+
strategy: 'ttl',
|
|
188
|
+
config: {
|
|
189
|
+
timeToLive: '54h' // 2 days and 6 hours
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}, importContainerDraft))
|
|
184
193
|
}));
|
|
185
194
|
}
|
|
186
195
|
function deleteImportContainer(projectKey, containerKey, asyncDispatch) {
|
|
@@ -251,7 +260,7 @@ const hasSingleKeyColumn = file => {
|
|
|
251
260
|
preview: 1,
|
|
252
261
|
complete: results => {
|
|
253
262
|
const fields = results?.meta?.fields;
|
|
254
|
-
resolve(fields
|
|
263
|
+
resolve(fields?.length === 1 && fields[0] === 'key');
|
|
255
264
|
}
|
|
256
265
|
});
|
|
257
266
|
});
|
|
@@ -417,11 +426,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
417
426
|
return /*#__PURE__*/react.css(process.env.NODE_ENV === "production" ? "" : ";label:getDefaultDropWrapperStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRyb3AtYXJlYS13cmFwcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF5QlkiLCJmaWxlIjoiZHJvcC1hcmVhLXdyYXBwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgdHlwZSBEcm9wem9uZVJvb3RQcm9wcyB9IGZyb20gJ3JlYWN0LWRyb3B6b25lJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IHN0eWxlcyB9IGZyb20gJy4vc3R5bGVzJ1xuaW1wb3J0IHsgdHlwZSBEcm9wQXJlYVN0YXRlIH0gZnJvbSAnLi4vLi4vLi4vQHR5cGVzJ1xuXG5pbnRlcmZhY2UgRHJvcFdyYXBwZXJQcm9wcyBleHRlbmRzIERyb3B6b25lUm9vdFByb3BzIHtcbiAgZHJvcEFyZWFTdGF0ZTogRHJvcEFyZWFTdGF0ZVxufVxuZXhwb3J0IGNvbnN0IERyb3BXcmFwcGVyID0gc3R5bGVkLmRpdjxEcm9wV3JhcHBlclByb3BzPmBcbiAgJHtzdHlsZXMuYmFzZX1cbiAgJHsocHJvcHMpID0+IHtcbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ3JlYWR5LWZvci1kcm9wJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5yZWFkeUZvckRyb3BcbiAgICB9XG4gICAgaWYgKHByb3BzLmRyb3BBcmVhU3RhdGUgPT09ICdhY3RpdmUtZHJhZycpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuYWN0aXZlRHJhZ1xuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2ZpbGUtZHJvcHBlZCcpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuZmlsZURyb3BwZWRcbiAgICB9XG4gICAgcmV0dXJuIGdldERlZmF1bHREcm9wV3JhcHBlclN0eWxlcyhwcm9wcy5kcm9wQXJlYVN0YXRlKVxuICB9fVxuYFxuZnVuY3Rpb24gZ2V0RGVmYXVsdERyb3BXcmFwcGVyU3R5bGVzKF9kcm9wQXJlYVN0YXRlOiBuZXZlcikge1xuICByZXR1cm4gY3NzYGBcbn1cbiJdfQ== */");
|
|
418
427
|
}
|
|
419
428
|
|
|
420
|
-
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-
|
|
429
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-d4747efc.cjs.dev.js'); }));
|
|
421
430
|
|
|
422
|
-
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-
|
|
431
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-c750b6ba.cjs.dev.js'); }));
|
|
423
432
|
|
|
424
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
433
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-0d73f0f6.cjs.dev.js'); }));
|
|
425
434
|
|
|
426
435
|
function getDropArea(_ref) {
|
|
427
436
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -1449,17 +1458,17 @@ const getChunkImport = locale => {
|
|
|
1449
1458
|
const intlLocale = i18n.mapLocaleToIntlLocale(locale);
|
|
1450
1459
|
switch (intlLocale) {
|
|
1451
1460
|
case 'de':
|
|
1452
|
-
return Promise.resolve().then(function () { return require(
|
|
1461
|
+
return Promise.resolve().then(function () { return require('./de-d3d76e3c.cjs.dev.js'); });
|
|
1453
1462
|
case 'es':
|
|
1454
|
-
return Promise.resolve().then(function () { return require(
|
|
1463
|
+
return Promise.resolve().then(function () { return require('./es-4955e68e.cjs.dev.js'); });
|
|
1455
1464
|
case 'fr-FR':
|
|
1456
|
-
return Promise.resolve().then(function () { return require(
|
|
1465
|
+
return Promise.resolve().then(function () { return require('./fr-FR-01187000.cjs.dev.js'); });
|
|
1457
1466
|
case 'ja':
|
|
1458
|
-
return Promise.resolve().then(function () { return require(
|
|
1467
|
+
return Promise.resolve().then(function () { return require('./ja-9bd5f452.cjs.dev.js'); });
|
|
1459
1468
|
case 'pt-BR':
|
|
1460
|
-
return Promise.resolve().then(function () { return require(
|
|
1469
|
+
return Promise.resolve().then(function () { return require('./pt-BR-872a8cea.cjs.dev.js'); });
|
|
1461
1470
|
default:
|
|
1462
|
-
return Promise.resolve().then(function () { return require(
|
|
1471
|
+
return Promise.resolve().then(function () { return require('./en-b170969b.cjs.dev.js'); });
|
|
1463
1472
|
}
|
|
1464
1473
|
};
|
|
1465
1474
|
const loadMessages = async locale => {
|
|
@@ -41,24 +41,24 @@ import { createHttpClientOptions, buildApiUrl } from '@commercetools-frontend/ap
|
|
|
41
41
|
import _sliceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
42
42
|
import { parseChunkImport, mapLocaleToIntlLocale } from '@commercetools-frontend/i18n';
|
|
43
43
|
|
|
44
|
-
function ownKeys$
|
|
45
|
-
function _objectSpread$
|
|
44
|
+
function ownKeys$b(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
45
|
+
function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$b(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$b(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
46
46
|
function reducer(state, action) {
|
|
47
|
-
if (action.type === 'setCurrentStep') return _objectSpread$
|
|
47
|
+
if (action.type === 'setCurrentStep') return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
48
48
|
currentStep: action.currentStep,
|
|
49
49
|
progress: 0
|
|
50
50
|
});
|
|
51
|
-
if (action.type === 'setContainerKey') return _objectSpread$
|
|
51
|
+
if (action.type === 'setContainerKey') return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
52
52
|
containerKey: action.containerKey
|
|
53
53
|
});
|
|
54
|
-
if (action.type === 'cancelImport') return _objectSpread$
|
|
54
|
+
if (action.type === 'cancelImport') return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
55
55
|
currentStep: 'upload',
|
|
56
56
|
containerKey: undefined,
|
|
57
57
|
droppedFile: undefined,
|
|
58
58
|
dropAreaState: 'ready-for-drop',
|
|
59
59
|
progress: 0
|
|
60
60
|
});
|
|
61
|
-
if (action.type === 'uploadNewFile') return _objectSpread$
|
|
61
|
+
if (action.type === 'uploadNewFile') return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
62
62
|
currentStep: 'upload',
|
|
63
63
|
containerKey: undefined,
|
|
64
64
|
droppedFile: undefined,
|
|
@@ -66,27 +66,27 @@ function reducer(state, action) {
|
|
|
66
66
|
progress: 0
|
|
67
67
|
});
|
|
68
68
|
if (action.type === 'setDroppedFile') {
|
|
69
|
-
return _objectSpread$
|
|
69
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
70
70
|
droppedFile: action.droppedFile
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
if (action.type === 'setAbortController') {
|
|
74
|
-
return _objectSpread$
|
|
74
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
75
75
|
abortController: action.abortController
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
if (action.type === 'setProgress') {
|
|
79
|
-
return _objectSpread$
|
|
79
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
80
80
|
progress: action.progress
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
if (action.type === 'setUploadFileResponse') {
|
|
84
|
-
return _objectSpread$
|
|
84
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
85
85
|
uploadFileResponse: action.uploadFileResponse
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
if (action.type === 'setFileUploadErrors') {
|
|
89
|
-
return _objectSpread$
|
|
89
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
90
90
|
fileUploadErrors: action.fileUploadErrors
|
|
91
91
|
});
|
|
92
92
|
}
|
|
@@ -147,6 +147,8 @@ function getProccessFileURL(projectKey, containerKey) {
|
|
|
147
147
|
return `/${projectKey}/products/import-containers/${containerKey}/process-file`;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
+
function ownKeys$a(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
151
|
+
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$a(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$a(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
150
152
|
function createImportContainerForFileUpload(importContainerDraft, projectKey, asyncDispatch) {
|
|
151
153
|
return asyncDispatch(actions.post({
|
|
152
154
|
mcApiProxyTarget: MC_API_PROXY_TARGETS.IMPORT,
|
|
@@ -155,7 +157,14 @@ function createImportContainerForFileUpload(importContainerDraft, projectKey, as
|
|
|
155
157
|
accept: 'application/json',
|
|
156
158
|
'Content-Type': 'application/json'
|
|
157
159
|
},
|
|
158
|
-
payload: _JSON$stringify(
|
|
160
|
+
payload: _JSON$stringify(_objectSpread$a({
|
|
161
|
+
retentionPolicy: {
|
|
162
|
+
strategy: 'ttl',
|
|
163
|
+
config: {
|
|
164
|
+
timeToLive: '54h' // 2 days and 6 hours
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}, importContainerDraft))
|
|
159
168
|
}));
|
|
160
169
|
}
|
|
161
170
|
function deleteImportContainer(projectKey, containerKey, asyncDispatch) {
|
|
@@ -226,7 +235,7 @@ const hasSingleKeyColumn = file => {
|
|
|
226
235
|
preview: 1,
|
|
227
236
|
complete: results => {
|
|
228
237
|
const fields = results?.meta?.fields;
|
|
229
|
-
resolve(fields
|
|
238
|
+
resolve(fields?.length === 1 && fields[0] === 'key');
|
|
230
239
|
}
|
|
231
240
|
});
|
|
232
241
|
});
|
|
@@ -392,11 +401,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
392
401
|
return /*#__PURE__*/css(process.env.NODE_ENV === "production" ? "" : ";label:getDefaultDropWrapperStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRyb3AtYXJlYS13cmFwcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF5QlkiLCJmaWxlIjoiZHJvcC1hcmVhLXdyYXBwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgdHlwZSBEcm9wem9uZVJvb3RQcm9wcyB9IGZyb20gJ3JlYWN0LWRyb3B6b25lJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IHN0eWxlcyB9IGZyb20gJy4vc3R5bGVzJ1xuaW1wb3J0IHsgdHlwZSBEcm9wQXJlYVN0YXRlIH0gZnJvbSAnLi4vLi4vLi4vQHR5cGVzJ1xuXG5pbnRlcmZhY2UgRHJvcFdyYXBwZXJQcm9wcyBleHRlbmRzIERyb3B6b25lUm9vdFByb3BzIHtcbiAgZHJvcEFyZWFTdGF0ZTogRHJvcEFyZWFTdGF0ZVxufVxuZXhwb3J0IGNvbnN0IERyb3BXcmFwcGVyID0gc3R5bGVkLmRpdjxEcm9wV3JhcHBlclByb3BzPmBcbiAgJHtzdHlsZXMuYmFzZX1cbiAgJHsocHJvcHMpID0+IHtcbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ3JlYWR5LWZvci1kcm9wJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5yZWFkeUZvckRyb3BcbiAgICB9XG4gICAgaWYgKHByb3BzLmRyb3BBcmVhU3RhdGUgPT09ICdhY3RpdmUtZHJhZycpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuYWN0aXZlRHJhZ1xuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2ZpbGUtZHJvcHBlZCcpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuZmlsZURyb3BwZWRcbiAgICB9XG4gICAgcmV0dXJuIGdldERlZmF1bHREcm9wV3JhcHBlclN0eWxlcyhwcm9wcy5kcm9wQXJlYVN0YXRlKVxuICB9fVxuYFxuZnVuY3Rpb24gZ2V0RGVmYXVsdERyb3BXcmFwcGVyU3R5bGVzKF9kcm9wQXJlYVN0YXRlOiBuZXZlcikge1xuICByZXR1cm4gY3NzYGBcbn1cbiJdfQ== */");
|
|
393
402
|
}
|
|
394
403
|
|
|
395
|
-
var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-
|
|
404
|
+
var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-272fc575.esm.js'));
|
|
396
405
|
|
|
397
|
-
var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-
|
|
406
|
+
var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-c3902695.esm.js'));
|
|
398
407
|
|
|
399
|
-
var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-
|
|
408
|
+
var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-dad90f26.esm.js'));
|
|
400
409
|
|
|
401
410
|
function getDropArea(_ref) {
|
|
402
411
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -1424,17 +1433,17 @@ const getChunkImport = locale => {
|
|
|
1424
1433
|
const intlLocale = mapLocaleToIntlLocale(locale);
|
|
1425
1434
|
switch (intlLocale) {
|
|
1426
1435
|
case 'de':
|
|
1427
|
-
return import(
|
|
1436
|
+
return import('./de-985804ff.esm.js');
|
|
1428
1437
|
case 'es':
|
|
1429
|
-
return import(
|
|
1438
|
+
return import('./es-ddb13dad.esm.js');
|
|
1430
1439
|
case 'fr-FR':
|
|
1431
|
-
return import(
|
|
1440
|
+
return import('./fr-FR-ef84bd8b.esm.js');
|
|
1432
1441
|
case 'ja':
|
|
1433
|
-
return import(
|
|
1442
|
+
return import('./ja-73c088a7.esm.js');
|
|
1434
1443
|
case 'pt-BR':
|
|
1435
|
-
return import(
|
|
1444
|
+
return import('./pt-BR-f693f646.esm.js');
|
|
1436
1445
|
default:
|
|
1437
|
-
return import(
|
|
1446
|
+
return import('./en-5727e1f9.esm.js');
|
|
1438
1447
|
}
|
|
1439
1448
|
};
|
|
1440
1449
|
const loadMessages = async locale => {
|
|
@@ -66,24 +66,24 @@ var _styled__default = /*#__PURE__*/_interopDefault(_styled);
|
|
|
66
66
|
var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construct);
|
|
67
67
|
var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanceProperty);
|
|
68
68
|
|
|
69
|
-
function ownKeys$
|
|
70
|
-
function _objectSpread$
|
|
69
|
+
function ownKeys$b(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
70
|
+
function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$b(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$b(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
71
71
|
function reducer(state, action) {
|
|
72
|
-
if (action.type === 'setCurrentStep') return _objectSpread$
|
|
72
|
+
if (action.type === 'setCurrentStep') return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
73
73
|
currentStep: action.currentStep,
|
|
74
74
|
progress: 0
|
|
75
75
|
});
|
|
76
|
-
if (action.type === 'setContainerKey') return _objectSpread$
|
|
76
|
+
if (action.type === 'setContainerKey') return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
77
77
|
containerKey: action.containerKey
|
|
78
78
|
});
|
|
79
|
-
if (action.type === 'cancelImport') return _objectSpread$
|
|
79
|
+
if (action.type === 'cancelImport') return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
80
80
|
currentStep: 'upload',
|
|
81
81
|
containerKey: undefined,
|
|
82
82
|
droppedFile: undefined,
|
|
83
83
|
dropAreaState: 'ready-for-drop',
|
|
84
84
|
progress: 0
|
|
85
85
|
});
|
|
86
|
-
if (action.type === 'uploadNewFile') return _objectSpread$
|
|
86
|
+
if (action.type === 'uploadNewFile') return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
87
87
|
currentStep: 'upload',
|
|
88
88
|
containerKey: undefined,
|
|
89
89
|
droppedFile: undefined,
|
|
@@ -91,27 +91,27 @@ function reducer(state, action) {
|
|
|
91
91
|
progress: 0
|
|
92
92
|
});
|
|
93
93
|
if (action.type === 'setDroppedFile') {
|
|
94
|
-
return _objectSpread$
|
|
94
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
95
95
|
droppedFile: action.droppedFile
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
if (action.type === 'setAbortController') {
|
|
99
|
-
return _objectSpread$
|
|
99
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
100
100
|
abortController: action.abortController
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
if (action.type === 'setProgress') {
|
|
104
|
-
return _objectSpread$
|
|
104
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
105
105
|
progress: action.progress
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
if (action.type === 'setUploadFileResponse') {
|
|
109
|
-
return _objectSpread$
|
|
109
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
110
110
|
uploadFileResponse: action.uploadFileResponse
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
if (action.type === 'setFileUploadErrors') {
|
|
114
|
-
return _objectSpread$
|
|
114
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
115
115
|
fileUploadErrors: action.fileUploadErrors
|
|
116
116
|
});
|
|
117
117
|
}
|
|
@@ -172,6 +172,8 @@ function getProccessFileURL(projectKey, containerKey) {
|
|
|
172
172
|
return `/${projectKey}/products/import-containers/${containerKey}/process-file`;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
function ownKeys$a(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
176
|
+
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$a(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$a(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
175
177
|
function createImportContainerForFileUpload(importContainerDraft, projectKey, asyncDispatch) {
|
|
176
178
|
return asyncDispatch(sdk.actions.post({
|
|
177
179
|
mcApiProxyTarget: constants.MC_API_PROXY_TARGETS.IMPORT,
|
|
@@ -180,7 +182,14 @@ function createImportContainerForFileUpload(importContainerDraft, projectKey, as
|
|
|
180
182
|
accept: 'application/json',
|
|
181
183
|
'Content-Type': 'application/json'
|
|
182
184
|
},
|
|
183
|
-
payload: _JSON$stringify__default["default"](
|
|
185
|
+
payload: _JSON$stringify__default["default"](_objectSpread$a({
|
|
186
|
+
retentionPolicy: {
|
|
187
|
+
strategy: 'ttl',
|
|
188
|
+
config: {
|
|
189
|
+
timeToLive: '54h' // 2 days and 6 hours
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}, importContainerDraft))
|
|
184
193
|
}));
|
|
185
194
|
}
|
|
186
195
|
function deleteImportContainer(projectKey, containerKey, asyncDispatch) {
|
|
@@ -251,7 +260,7 @@ const hasSingleKeyColumn = file => {
|
|
|
251
260
|
preview: 1,
|
|
252
261
|
complete: results => {
|
|
253
262
|
const fields = results?.meta?.fields;
|
|
254
|
-
resolve(fields
|
|
263
|
+
resolve(fields?.length === 1 && fields[0] === 'key');
|
|
255
264
|
}
|
|
256
265
|
});
|
|
257
266
|
});
|
|
@@ -414,11 +423,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
414
423
|
return /*#__PURE__*/react.css("" , "" );
|
|
415
424
|
}
|
|
416
425
|
|
|
417
|
-
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-
|
|
426
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-fc551a0e.cjs.prod.js'); }));
|
|
418
427
|
|
|
419
|
-
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-
|
|
428
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-a750ea18.cjs.prod.js'); }));
|
|
420
429
|
|
|
421
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
430
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-23cc482a.cjs.prod.js'); }));
|
|
422
431
|
|
|
423
432
|
function getDropArea(_ref) {
|
|
424
433
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -1437,17 +1446,17 @@ const getChunkImport = locale => {
|
|
|
1437
1446
|
const intlLocale = i18n.mapLocaleToIntlLocale(locale);
|
|
1438
1447
|
switch (intlLocale) {
|
|
1439
1448
|
case 'de':
|
|
1440
|
-
return Promise.resolve().then(function () { return require(
|
|
1449
|
+
return Promise.resolve().then(function () { return require('./de-003f2859.cjs.prod.js'); });
|
|
1441
1450
|
case 'es':
|
|
1442
|
-
return Promise.resolve().then(function () { return require(
|
|
1451
|
+
return Promise.resolve().then(function () { return require('./es-040a89ab.cjs.prod.js'); });
|
|
1443
1452
|
case 'fr-FR':
|
|
1444
|
-
return Promise.resolve().then(function () { return require(
|
|
1453
|
+
return Promise.resolve().then(function () { return require('./fr-FR-9ed02ab8.cjs.prod.js'); });
|
|
1445
1454
|
case 'ja':
|
|
1446
|
-
return Promise.resolve().then(function () { return require(
|
|
1455
|
+
return Promise.resolve().then(function () { return require('./ja-37632763.cjs.prod.js'); });
|
|
1447
1456
|
case 'pt-BR':
|
|
1448
|
-
return Promise.resolve().then(function () { return require(
|
|
1457
|
+
return Promise.resolve().then(function () { return require('./pt-BR-46c4eaae.cjs.prod.js'); });
|
|
1449
1458
|
default:
|
|
1450
|
-
return Promise.resolve().then(function () { return require(
|
|
1459
|
+
return Promise.resolve().then(function () { return require('./en-da1bb187.cjs.prod.js'); });
|
|
1451
1460
|
}
|
|
1452
1461
|
};
|
|
1453
1462
|
const loadMessages = async locale => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend-extensions/unpublish-products-modal",
|
|
3
3
|
"description": "Shared import modal for unpublishing products",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.5",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -15,67 +15,68 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@babel/runtime": "7.
|
|
19
|
-
"@babel/runtime-corejs3": "7.
|
|
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
|
-
"@emotion/styled": "11.14.
|
|
23
|
-
"@formatjs/cli": "6.7.
|
|
22
|
+
"@emotion/styled": "11.14.1",
|
|
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",
|
|
27
27
|
"lodash.truncate": "4.4.2",
|
|
28
28
|
"moment": "2.30.1",
|
|
29
29
|
"omit-empty-es": "^1.1.3",
|
|
30
|
-
"papaparse": "5.5.
|
|
30
|
+
"papaparse": "5.5.3",
|
|
31
31
|
"pluralize": "8.0.0",
|
|
32
32
|
"prop-types": "15.8.1",
|
|
33
|
-
"ramda": "^0.
|
|
33
|
+
"ramda": "^0.32.0",
|
|
34
34
|
"react-dropzone": "14.3.8"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@commercetools-frontend/actions-global": "
|
|
38
|
-
"@commercetools-frontend/application-components": "
|
|
39
|
-
"@commercetools-frontend/application-shell": "
|
|
40
|
-
"@commercetools-frontend/application-shell-connectors": "
|
|
41
|
-
"@commercetools-frontend/constants": "
|
|
42
|
-
"@commercetools-frontend/fullstory": "
|
|
43
|
-
"@commercetools-frontend/i18n": "
|
|
44
|
-
"@commercetools-frontend/jest-preset-mc-app": "
|
|
45
|
-
"@commercetools-frontend/permissions": "
|
|
46
|
-
"@commercetools-frontend/sdk": "
|
|
47
|
-
"@commercetools-frontend/sentry": "
|
|
48
|
-
"@commercetools-frontend/ui-kit": "
|
|
49
|
-
"@commercetools-uikit/data-table": "
|
|
50
|
-
"@commercetools-uikit/design-system": "
|
|
51
|
-
"@commercetools-uikit/icons": "
|
|
52
|
-
"@commercetools-uikit/select-field": "
|
|
37
|
+
"@commercetools-frontend/actions-global": "24.9.0",
|
|
38
|
+
"@commercetools-frontend/application-components": "24.9.0",
|
|
39
|
+
"@commercetools-frontend/application-shell": "24.9.0",
|
|
40
|
+
"@commercetools-frontend/application-shell-connectors": "24.9.0",
|
|
41
|
+
"@commercetools-frontend/constants": "24.9.0",
|
|
42
|
+
"@commercetools-frontend/fullstory": "4.0.1",
|
|
43
|
+
"@commercetools-frontend/i18n": "24.9.0",
|
|
44
|
+
"@commercetools-frontend/jest-preset-mc-app": "24.9.0",
|
|
45
|
+
"@commercetools-frontend/permissions": "24.9.0",
|
|
46
|
+
"@commercetools-frontend/sdk": "24.9.0",
|
|
47
|
+
"@commercetools-frontend/sentry": "24.9.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.3.16",
|
|
56
57
|
"@types/testing-library__jest-dom": "^5.14.5",
|
|
57
58
|
"msw": "1.3.5",
|
|
58
|
-
"react": "19.
|
|
59
|
+
"react": "19.2.0",
|
|
59
60
|
"react-intl": "7.1.4",
|
|
60
61
|
"react-redux": "7.2.9",
|
|
61
62
|
"redux": "4.2.1",
|
|
62
63
|
"rimraf": "6.0.1"
|
|
63
64
|
},
|
|
64
65
|
"peerDependencies": {
|
|
65
|
-
"@commercetools-frontend/actions-global": "23.x || 24.x
|
|
66
|
-
"@commercetools-frontend/application-components": "23.x || 24.x
|
|
67
|
-
"@commercetools-frontend/application-shell": "23.x || 24.x
|
|
68
|
-
"@commercetools-frontend/application-shell-connectors": "23.x || 24.x
|
|
69
|
-
"@commercetools-frontend/constants": "23.x || 24.x
|
|
70
|
-
"@commercetools-frontend/fullstory": "2.x || 3.x || 4.x
|
|
71
|
-
"@commercetools-frontend/i18n": "23.x || 24.x
|
|
72
|
-
"@commercetools-frontend/jest-preset-mc-app": "23.x || 24.x
|
|
73
|
-
"@commercetools-frontend/permissions": "23.x || 24.x
|
|
74
|
-
"@commercetools-frontend/sdk": "23.x || 24.x
|
|
75
|
-
"@commercetools-frontend/sentry": "23.x || 24.x
|
|
76
|
-
"@commercetools-frontend/ui-kit": "19.x || 20.x
|
|
77
|
-
"@commercetools-uikit/design-system": "19.x || 20.x
|
|
78
|
-
"@commercetools-uikit/icons": "19.x || 20.x
|
|
66
|
+
"@commercetools-frontend/actions-global": "23.x || 24.x",
|
|
67
|
+
"@commercetools-frontend/application-components": "23.x || 24.x",
|
|
68
|
+
"@commercetools-frontend/application-shell": "23.x || 24.x",
|
|
69
|
+
"@commercetools-frontend/application-shell-connectors": "23.x || 24.x",
|
|
70
|
+
"@commercetools-frontend/constants": "23.x || 24.x",
|
|
71
|
+
"@commercetools-frontend/fullstory": "2.x || 3.x || 4.x",
|
|
72
|
+
"@commercetools-frontend/i18n": "23.x || 24.x",
|
|
73
|
+
"@commercetools-frontend/jest-preset-mc-app": "23.x || 24.x",
|
|
74
|
+
"@commercetools-frontend/permissions": "23.x || 24.x",
|
|
75
|
+
"@commercetools-frontend/sdk": "23.x || 24.x",
|
|
76
|
+
"@commercetools-frontend/sentry": "23.x || 24.x",
|
|
77
|
+
"@commercetools-frontend/ui-kit": "19.x || 20.x",
|
|
78
|
+
"@commercetools-uikit/design-system": "19.x || 20.x",
|
|
79
|
+
"@commercetools-uikit/icons": "19.x || 20.x",
|
|
79
80
|
"react": "17.x || 19.x",
|
|
80
81
|
"react-intl": "6.x || 7.x",
|
|
81
82
|
"react-redux": "7.x",
|