@commercetools-frontend-extensions/unpublish-products-modal 0.0.0-canary-20250528102549 → 0.0.0-canary-20251211142708
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-unpublish-products-modal.cjs.dev.js +1271 -43
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.cjs.prod.js +1262 -43
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.esm.js +1260 -42
- package/dist/declarations/src/@types/index.d.ts +0 -2
- package/package.json +42 -40
- package/dist/active-drag-drop-area-83aa8e4f.esm.js +0 -51
- package/dist/active-drag-drop-area-d185a08a.cjs.prod.js +0 -53
- package/dist/active-drag-drop-area-e06cf383.cjs.dev.js +0 -53
- package/dist/declarations/src/@types/file-upload.d.ts +0 -42
- package/dist/declarations/src/@types/import-container.d.ts +0 -11
- package/dist/enabled-drop-area-94dddc1b.cjs.prod.js +0 -70
- package/dist/enabled-drop-area-c6c2639e.esm.js +0 -68
- package/dist/enabled-drop-area-e67ca3fe.cjs.dev.js +0 -70
- package/dist/file-dropped-area-0d6e8aa7.cjs.prod.js +0 -73
- package/dist/file-dropped-area-47ffbe43.esm.js +0 -71
- package/dist/file-dropped-area-80912577.cjs.dev.js +0 -73
- package/dist/index-057e13aa.cjs.dev.js +0 -1538
- package/dist/index-2c12be32.esm.js +0 -1508
- package/dist/index-405961f5.cjs.prod.js +0 -1526
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": "0.0.0-canary-
|
|
4
|
+
"version": "0.0.0-canary-20251211142708",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -15,67 +15,69 @@
|
|
|
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.
|
|
34
|
-
"
|
|
33
|
+
"ramda": "^0.32.0",
|
|
34
|
+
"@commercetools-frontend-extensions/operations": "0.0.0-canary-20251211142708"
|
|
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.12.0",
|
|
38
|
+
"@commercetools-frontend/application-components": "24.12.0",
|
|
39
|
+
"@commercetools-frontend/application-shell": "24.12.0",
|
|
40
|
+
"@commercetools-frontend/application-shell-connectors": "24.12.0",
|
|
41
|
+
"@commercetools-frontend/constants": "24.12.0",
|
|
42
|
+
"@commercetools-frontend/fullstory": "4.0.3",
|
|
43
|
+
"@commercetools-frontend/i18n": "24.12.0",
|
|
44
|
+
"@commercetools-frontend/jest-preset-mc-app": "24.12.0",
|
|
45
|
+
"@commercetools-frontend/permissions": "24.12.0",
|
|
46
|
+
"@commercetools-frontend/sdk": "24.12.0",
|
|
47
|
+
"@commercetools-frontend/sentry": "24.12.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.5.1",
|
|
57
|
+
"@types/pluralize": "0.0.33",
|
|
56
58
|
"@types/testing-library__jest-dom": "^5.14.5",
|
|
57
59
|
"msw": "1.3.5",
|
|
58
|
-
"react": "19.
|
|
60
|
+
"react": "19.2.0",
|
|
59
61
|
"react-intl": "7.1.4",
|
|
60
62
|
"react-redux": "7.2.9",
|
|
61
63
|
"redux": "4.2.1",
|
|
62
|
-
"rimraf": "6.
|
|
64
|
+
"rimraf": "6.1.2"
|
|
63
65
|
},
|
|
64
66
|
"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
|
|
67
|
+
"@commercetools-frontend/actions-global": "23.x || 24.x",
|
|
68
|
+
"@commercetools-frontend/application-components": "23.x || 24.x",
|
|
69
|
+
"@commercetools-frontend/application-shell": "23.x || 24.x",
|
|
70
|
+
"@commercetools-frontend/application-shell-connectors": "23.x || 24.x",
|
|
71
|
+
"@commercetools-frontend/constants": "23.x || 24.x",
|
|
72
|
+
"@commercetools-frontend/fullstory": "2.x || 3.x || 4.x",
|
|
73
|
+
"@commercetools-frontend/i18n": "23.x || 24.x",
|
|
74
|
+
"@commercetools-frontend/jest-preset-mc-app": "23.x || 24.x",
|
|
75
|
+
"@commercetools-frontend/permissions": "23.x || 24.x",
|
|
76
|
+
"@commercetools-frontend/sdk": "23.x || 24.x",
|
|
77
|
+
"@commercetools-frontend/sentry": "23.x || 24.x",
|
|
78
|
+
"@commercetools-frontend/ui-kit": "19.x || 20.x",
|
|
79
|
+
"@commercetools-uikit/design-system": "19.x || 20.x",
|
|
80
|
+
"@commercetools-uikit/icons": "19.x || 20.x",
|
|
79
81
|
"react": "17.x || 19.x",
|
|
80
82
|
"react-intl": "6.x || 7.x",
|
|
81
83
|
"react-redux": "7.x",
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { F as FileDropped, E as EnabledDropArea } from './index-2c12be32.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 '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
18
|
-
import '@commercetools-frontend/constants';
|
|
19
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/every';
|
|
20
|
-
import '@babel/runtime-corejs3/core-js-stable/promise';
|
|
21
|
-
import '@babel/runtime-corejs3/core-js-stable/array/is-array';
|
|
22
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
23
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
24
|
-
import 'papaparse';
|
|
25
|
-
import '@commercetools-frontend/application-components';
|
|
26
|
-
import '@commercetools-frontend/fullstory';
|
|
27
|
-
import '@commercetools-frontend/ui-kit';
|
|
28
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/some';
|
|
29
|
-
import 'react-dropzone';
|
|
30
|
-
import '@commercetools-frontend/actions-global';
|
|
31
|
-
import '@emotion/styled/base';
|
|
32
|
-
import '@emotion/react';
|
|
33
|
-
import '@babel/runtime-corejs3/core-js-stable/reflect/construct';
|
|
34
|
-
import '@babel/runtime-corejs3/helpers/createClass';
|
|
35
|
-
import '@babel/runtime-corejs3/helpers/classCallCheck';
|
|
36
|
-
import '@babel/runtime-corejs3/helpers/possibleConstructorReturn';
|
|
37
|
-
import '@babel/runtime-corejs3/helpers/getPrototypeOf';
|
|
38
|
-
import '@babel/runtime-corejs3/helpers/inherits';
|
|
39
|
-
import '@babel/runtime-corejs3/helpers/wrapNativeSuper';
|
|
40
|
-
import '@commercetools-frontend/sentry';
|
|
41
|
-
import '@commercetools-frontend/application-shell';
|
|
42
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
43
|
-
import '@commercetools-frontend/i18n';
|
|
44
|
-
|
|
45
|
-
function ActiveDragDropArea(_ref) {
|
|
46
|
-
let isFileDropped = _ref.isFileDropped;
|
|
47
|
-
if (isFileDropped) return jsx(FileDropped, {});
|
|
48
|
-
return jsx(EnabledDropArea, {});
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export { ActiveDragDropArea as default };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-405961f5.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('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
20
|
-
require('@commercetools-frontend/constants');
|
|
21
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
22
|
-
require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
23
|
-
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
24
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
25
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
26
|
-
require('papaparse');
|
|
27
|
-
require('@commercetools-frontend/application-components');
|
|
28
|
-
require('@commercetools-frontend/fullstory');
|
|
29
|
-
require('@commercetools-frontend/ui-kit');
|
|
30
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
31
|
-
require('react-dropzone');
|
|
32
|
-
require('@commercetools-frontend/actions-global');
|
|
33
|
-
require('@emotion/styled/base');
|
|
34
|
-
require('@emotion/react');
|
|
35
|
-
require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
36
|
-
require('@babel/runtime-corejs3/helpers/createClass');
|
|
37
|
-
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
38
|
-
require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
39
|
-
require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
40
|
-
require('@babel/runtime-corejs3/helpers/inherits');
|
|
41
|
-
require('@babel/runtime-corejs3/helpers/wrapNativeSuper');
|
|
42
|
-
require('@commercetools-frontend/sentry');
|
|
43
|
-
require('@commercetools-frontend/application-shell');
|
|
44
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
45
|
-
require('@commercetools-frontend/i18n');
|
|
46
|
-
|
|
47
|
-
function ActiveDragDropArea(_ref) {
|
|
48
|
-
let isFileDropped = _ref.isFileDropped;
|
|
49
|
-
if (isFileDropped) return jsxRuntime.jsx(dist_commercetoolsFrontendExtensionsUnpublishProductsModal.FileDropped, {});
|
|
50
|
-
return jsxRuntime.jsx(dist_commercetoolsFrontendExtensionsUnpublishProductsModal.EnabledDropArea, {});
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
exports["default"] = ActiveDragDropArea;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-057e13aa.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('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
20
|
-
require('@commercetools-frontend/constants');
|
|
21
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
22
|
-
require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
23
|
-
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
24
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
25
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
26
|
-
require('papaparse');
|
|
27
|
-
require('@commercetools-frontend/application-components');
|
|
28
|
-
require('@commercetools-frontend/fullstory');
|
|
29
|
-
require('@commercetools-frontend/ui-kit');
|
|
30
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
31
|
-
require('react-dropzone');
|
|
32
|
-
require('@commercetools-frontend/actions-global');
|
|
33
|
-
require('@emotion/styled/base');
|
|
34
|
-
require('@emotion/react');
|
|
35
|
-
require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
36
|
-
require('@babel/runtime-corejs3/helpers/createClass');
|
|
37
|
-
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
38
|
-
require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
39
|
-
require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
40
|
-
require('@babel/runtime-corejs3/helpers/inherits');
|
|
41
|
-
require('@babel/runtime-corejs3/helpers/wrapNativeSuper');
|
|
42
|
-
require('@commercetools-frontend/sentry');
|
|
43
|
-
require('@commercetools-frontend/application-shell');
|
|
44
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
45
|
-
require('@commercetools-frontend/i18n');
|
|
46
|
-
|
|
47
|
-
function ActiveDragDropArea(_ref) {
|
|
48
|
-
let isFileDropped = _ref.isFileDropped;
|
|
49
|
-
if (isFileDropped) return jsxRuntime.jsx(dist_commercetoolsFrontendExtensionsUnpublishProductsModal.FileDropped, {});
|
|
50
|
-
return jsxRuntime.jsx(dist_commercetoolsFrontendExtensionsUnpublishProductsModal.EnabledDropArea, {});
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
exports["default"] = ActiveDragDropArea;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { TSdkAction } from '@commercetools-frontend/sdk';
|
|
2
|
-
export type DropAreaState = 'active-drag' | 'ready-for-drop' | 'file-dropped';
|
|
3
|
-
export type FileUploadError = {
|
|
4
|
-
title: string;
|
|
5
|
-
description: string;
|
|
6
|
-
};
|
|
7
|
-
export type RowError = {
|
|
8
|
-
code: string;
|
|
9
|
-
message: string;
|
|
10
|
-
field: string;
|
|
11
|
-
};
|
|
12
|
-
export type RowErrorsResponse = {
|
|
13
|
-
row?: number;
|
|
14
|
-
errors: Array<RowError>;
|
|
15
|
-
};
|
|
16
|
-
export interface FileUploadResponse {
|
|
17
|
-
results: Array<RowErrorsResponse>;
|
|
18
|
-
invalid: number;
|
|
19
|
-
valid: number;
|
|
20
|
-
fileName: string;
|
|
21
|
-
rowsCount: number;
|
|
22
|
-
columnsCount: number;
|
|
23
|
-
columns: Array<string>;
|
|
24
|
-
ignoredColumns: Array<string>;
|
|
25
|
-
}
|
|
26
|
-
export interface FileUploadRequestParameters {
|
|
27
|
-
projectKey: string;
|
|
28
|
-
containerKey: string;
|
|
29
|
-
file: File;
|
|
30
|
-
abortSignal?: AbortSignal;
|
|
31
|
-
onSuccess: (data: FileUploadResponse) => void;
|
|
32
|
-
onProgress: (progress: number) => void;
|
|
33
|
-
onError: (error: Error) => void;
|
|
34
|
-
}
|
|
35
|
-
export interface ProcessUploadedFileRequestParameters {
|
|
36
|
-
projectKey: string;
|
|
37
|
-
containerKey: string;
|
|
38
|
-
asyncDispatch: (action: TSdkAction) => Promise<unknown>;
|
|
39
|
-
}
|
|
40
|
-
export type ProcessFileResponse = {
|
|
41
|
-
message: string;
|
|
42
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ImportContainerDraft, ResourceTypeId } from '@commercetools/importapi-sdk';
|
|
2
|
-
export interface ExtendedImportContainerDraft extends ImportContainerDraft {
|
|
3
|
-
settings?: {
|
|
4
|
-
resourceType: ResourceTypeId;
|
|
5
|
-
format: string;
|
|
6
|
-
options: {
|
|
7
|
-
unpublishAllChanges?: boolean;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
tags?: string[];
|
|
11
|
-
}
|
|
@@ -1,70 +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_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-405961f5.cjs.prod.js');
|
|
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');
|
|
17
|
-
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
18
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
19
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
20
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
21
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
22
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
23
|
-
require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
24
|
-
require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
25
|
-
require('papaparse');
|
|
26
|
-
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
27
|
-
require('react-intl');
|
|
28
|
-
require('@commercetools-frontend/application-components');
|
|
29
|
-
require('@commercetools-frontend/fullstory');
|
|
30
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
31
|
-
require('react-dropzone');
|
|
32
|
-
require('@commercetools-frontend/actions-global');
|
|
33
|
-
require('@emotion/styled/base');
|
|
34
|
-
require('@emotion/react');
|
|
35
|
-
require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
36
|
-
require('@babel/runtime-corejs3/helpers/createClass');
|
|
37
|
-
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
38
|
-
require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
39
|
-
require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
40
|
-
require('@babel/runtime-corejs3/helpers/inherits');
|
|
41
|
-
require('@babel/runtime-corejs3/helpers/wrapNativeSuper');
|
|
42
|
-
require('@commercetools-frontend/sentry');
|
|
43
|
-
require('@commercetools-frontend/application-shell');
|
|
44
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
45
|
-
require('@commercetools-frontend/i18n');
|
|
46
|
-
|
|
47
|
-
function EnabledDropArea() {
|
|
48
|
-
return jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
49
|
-
alignItems: "center",
|
|
50
|
-
justifyContent: "center",
|
|
51
|
-
scale: "s",
|
|
52
|
-
children: [jsxRuntime.jsx(dist_commercetoolsFrontendExtensionsUnpublishProductsModal.FileIcon, {}), jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
53
|
-
alignItems: "center",
|
|
54
|
-
scale: "s",
|
|
55
|
-
children: [jsxRuntime.jsx(uiKit.Text.Subheadline, {
|
|
56
|
-
as: "h4",
|
|
57
|
-
intlMessage: dist_commercetoolsFrontendExtensionsUnpublishProductsModal.messages.dragAndDropCSV
|
|
58
|
-
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
59
|
-
intlMessage: dist_commercetoolsFrontendExtensionsUnpublishProductsModal.messages.or
|
|
60
|
-
}), jsxRuntime.jsx(uiKit.Link, {
|
|
61
|
-
intlMessage: dist_commercetoolsFrontendExtensionsUnpublishProductsModal.messages.browseButton,
|
|
62
|
-
tone: "secondary",
|
|
63
|
-
to: "",
|
|
64
|
-
onClick: ev => ev.preventDefault()
|
|
65
|
-
})]
|
|
66
|
-
})]
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
exports["default"] = EnabledDropArea;
|
|
@@ -1,68 +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-2c12be32.esm.js';
|
|
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';
|
|
15
|
-
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
16
|
-
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
17
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
18
|
-
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
|
|
19
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/for-each';
|
|
20
|
-
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
|
|
21
|
-
import '@babel/runtime-corejs3/core-js-stable/object/define-properties';
|
|
22
|
-
import '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
23
|
-
import 'papaparse';
|
|
24
|
-
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
25
|
-
import 'react-intl';
|
|
26
|
-
import '@commercetools-frontend/application-components';
|
|
27
|
-
import '@commercetools-frontend/fullstory';
|
|
28
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/some';
|
|
29
|
-
import 'react-dropzone';
|
|
30
|
-
import '@commercetools-frontend/actions-global';
|
|
31
|
-
import '@emotion/styled/base';
|
|
32
|
-
import '@emotion/react';
|
|
33
|
-
import '@babel/runtime-corejs3/core-js-stable/reflect/construct';
|
|
34
|
-
import '@babel/runtime-corejs3/helpers/createClass';
|
|
35
|
-
import '@babel/runtime-corejs3/helpers/classCallCheck';
|
|
36
|
-
import '@babel/runtime-corejs3/helpers/possibleConstructorReturn';
|
|
37
|
-
import '@babel/runtime-corejs3/helpers/getPrototypeOf';
|
|
38
|
-
import '@babel/runtime-corejs3/helpers/inherits';
|
|
39
|
-
import '@babel/runtime-corejs3/helpers/wrapNativeSuper';
|
|
40
|
-
import '@commercetools-frontend/sentry';
|
|
41
|
-
import '@commercetools-frontend/application-shell';
|
|
42
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
43
|
-
import '@commercetools-frontend/i18n';
|
|
44
|
-
|
|
45
|
-
function EnabledDropArea() {
|
|
46
|
-
return jsxs(Spacings.Inline, {
|
|
47
|
-
alignItems: "center",
|
|
48
|
-
justifyContent: "center",
|
|
49
|
-
scale: "s",
|
|
50
|
-
children: [jsx(FileIcon, {}), jsxs(Spacings.Inline, {
|
|
51
|
-
alignItems: "center",
|
|
52
|
-
scale: "s",
|
|
53
|
-
children: [jsx(Text.Subheadline, {
|
|
54
|
-
as: "h4",
|
|
55
|
-
intlMessage: messages.dragAndDropCSV
|
|
56
|
-
}), jsx(Text.Body, {
|
|
57
|
-
intlMessage: messages.or
|
|
58
|
-
}), jsx(Link, {
|
|
59
|
-
intlMessage: messages.browseButton,
|
|
60
|
-
tone: "secondary",
|
|
61
|
-
to: "",
|
|
62
|
-
onClick: ev => ev.preventDefault()
|
|
63
|
-
})]
|
|
64
|
-
})]
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export { EnabledDropArea as default };
|
|
@@ -1,70 +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_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-057e13aa.cjs.dev.js');
|
|
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');
|
|
17
|
-
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
18
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
19
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
20
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
21
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
22
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
23
|
-
require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
24
|
-
require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
25
|
-
require('papaparse');
|
|
26
|
-
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
27
|
-
require('react-intl');
|
|
28
|
-
require('@commercetools-frontend/application-components');
|
|
29
|
-
require('@commercetools-frontend/fullstory');
|
|
30
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
31
|
-
require('react-dropzone');
|
|
32
|
-
require('@commercetools-frontend/actions-global');
|
|
33
|
-
require('@emotion/styled/base');
|
|
34
|
-
require('@emotion/react');
|
|
35
|
-
require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
36
|
-
require('@babel/runtime-corejs3/helpers/createClass');
|
|
37
|
-
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
38
|
-
require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
39
|
-
require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
40
|
-
require('@babel/runtime-corejs3/helpers/inherits');
|
|
41
|
-
require('@babel/runtime-corejs3/helpers/wrapNativeSuper');
|
|
42
|
-
require('@commercetools-frontend/sentry');
|
|
43
|
-
require('@commercetools-frontend/application-shell');
|
|
44
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
45
|
-
require('@commercetools-frontend/i18n');
|
|
46
|
-
|
|
47
|
-
function EnabledDropArea() {
|
|
48
|
-
return jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
49
|
-
alignItems: "center",
|
|
50
|
-
justifyContent: "center",
|
|
51
|
-
scale: "s",
|
|
52
|
-
children: [jsxRuntime.jsx(dist_commercetoolsFrontendExtensionsUnpublishProductsModal.FileIcon, {}), jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
53
|
-
alignItems: "center",
|
|
54
|
-
scale: "s",
|
|
55
|
-
children: [jsxRuntime.jsx(uiKit.Text.Subheadline, {
|
|
56
|
-
as: "h4",
|
|
57
|
-
intlMessage: dist_commercetoolsFrontendExtensionsUnpublishProductsModal.messages.dragAndDropCSV
|
|
58
|
-
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
59
|
-
intlMessage: dist_commercetoolsFrontendExtensionsUnpublishProductsModal.messages.or
|
|
60
|
-
}), jsxRuntime.jsx(uiKit.Link, {
|
|
61
|
-
intlMessage: dist_commercetoolsFrontendExtensionsUnpublishProductsModal.messages.browseButton,
|
|
62
|
-
tone: "secondary",
|
|
63
|
-
to: "",
|
|
64
|
-
onClick: ev => ev.preventDefault()
|
|
65
|
-
})]
|
|
66
|
-
})]
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
exports["default"] = EnabledDropArea;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var reactIntl = require('react-intl');
|
|
4
|
-
var uiKit = require('@commercetools-frontend/ui-kit');
|
|
5
|
-
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-405961f5.cjs.prod.js');
|
|
6
|
-
require('react');
|
|
7
|
-
require('@commercetools-frontend/actions-global');
|
|
8
|
-
require('@commercetools-frontend/application-shell-connectors');
|
|
9
|
-
require('@commercetools-frontend/constants');
|
|
10
|
-
require('@commercetools-frontend/sdk');
|
|
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
|
-
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
20
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
21
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
22
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
23
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
24
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
25
|
-
require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
26
|
-
require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
27
|
-
require('papaparse');
|
|
28
|
-
require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
29
|
-
require('@babel/runtime-corejs3/helpers/createClass');
|
|
30
|
-
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
31
|
-
require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
32
|
-
require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
33
|
-
require('@babel/runtime-corejs3/helpers/inherits');
|
|
34
|
-
require('@babel/runtime-corejs3/helpers/wrapNativeSuper');
|
|
35
|
-
require('@commercetools-frontend/application-shell');
|
|
36
|
-
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
37
|
-
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
38
|
-
require('@commercetools-frontend/application-components');
|
|
39
|
-
require('@commercetools-frontend/fullstory');
|
|
40
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
41
|
-
require('react-dropzone');
|
|
42
|
-
require('@emotion/styled/base');
|
|
43
|
-
require('@emotion/react');
|
|
44
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
45
|
-
require('@commercetools-frontend/i18n');
|
|
46
|
-
|
|
47
|
-
function FileDroppedArea() {
|
|
48
|
-
const intl = reactIntl.useIntl();
|
|
49
|
-
const _useUnpublishProducts = dist_commercetoolsFrontendExtensionsUnpublishProductsModal.useUnpublishProductsContext(),
|
|
50
|
-
state = _useUnpublishProducts.state;
|
|
51
|
-
return jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
52
|
-
alignItems: "center",
|
|
53
|
-
scale: "s",
|
|
54
|
-
children: [jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
55
|
-
alignItems: "flex-start",
|
|
56
|
-
scale: "xs",
|
|
57
|
-
children: [jsxRuntime.jsx(uiKit.PaperclipIcon, {
|
|
58
|
-
color: "neutral60"
|
|
59
|
-
}), jsxRuntime.jsx(uiKit.Constraints.Horizontal, {
|
|
60
|
-
max: 13,
|
|
61
|
-
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
62
|
-
children: state.droppedFile?.name
|
|
63
|
-
})
|
|
64
|
-
})]
|
|
65
|
-
}), jsxRuntime.jsx(uiKit.SecondaryButton, {
|
|
66
|
-
tone: "secondary",
|
|
67
|
-
size: "medium",
|
|
68
|
-
label: intl.formatMessage(dist_commercetoolsFrontendExtensionsUnpublishProductsModal.messages.chooseFile)
|
|
69
|
-
})]
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
exports["default"] = FileDroppedArea;
|