@commercetools-frontend-extensions/unpublish-products-modal 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +29 -0
- package/README.md +72 -0
- package/dist/active-drag-drop-area-c4d16e89.cjs.prod.js +54 -0
- package/dist/active-drag-drop-area-cec2c6b5.esm.js +52 -0
- package/dist/active-drag-drop-area-f09afa25.cjs.dev.js +54 -0
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.cjs.d.ts +3 -0
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.cjs.dev.js +52 -0
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.cjs.js +7 -0
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.cjs.prod.js +52 -0
- package/dist/commercetools-frontend-extensions-unpublish-products-modal.esm.js +44 -0
- package/dist/de-a34c5dd4.cjs.dev.js +6 -0
- package/dist/de-cd6c45d3.esm.js +4 -0
- package/dist/de-d954fe3d.cjs.prod.js +6 -0
- package/dist/declarations/src/@types/file-upload.d.ts +42 -0
- package/dist/declarations/src/@types/import-container.d.ts +11 -0
- package/dist/declarations/src/@types/index.d.ts +3 -0
- package/dist/declarations/src/@types/unpublish-products-modal-props.d.ts +4 -0
- package/dist/declarations/src/index.d.ts +2 -0
- package/dist/declarations/src/unpublish-products-modal.d.ts +6 -0
- package/dist/en-3a9aa2d4.esm.js +4 -0
- package/dist/en-6b3694f6.cjs.dev.js +6 -0
- package/dist/en-c7757448.cjs.prod.js +6 -0
- package/dist/enabled-drop-area-0fcec033.cjs.dev.js +115 -0
- package/dist/enabled-drop-area-82ec844a.esm.js +102 -0
- package/dist/enabled-drop-area-9e04a444.cjs.prod.js +115 -0
- package/dist/es-042343bd.cjs.prod.js +6 -0
- package/dist/es-8b3ecab1.cjs.dev.js +6 -0
- package/dist/es-e544023d.esm.js +4 -0
- package/dist/file-dropped-area-411688d1.cjs.prod.js +74 -0
- package/dist/file-dropped-area-7cd5f0cb.cjs.dev.js +74 -0
- package/dist/file-dropped-area-e301d075.esm.js +72 -0
- package/dist/fr-FR-9d9081ee.esm.js +4 -0
- package/dist/fr-FR-e7126fcc.cjs.dev.js +6 -0
- package/dist/fr-FR-fce1ca96.cjs.prod.js +6 -0
- package/dist/index-601d8304.cjs.prod.js +1533 -0
- package/dist/index-73a8bbcd.cjs.dev.js +1547 -0
- package/dist/index-95840e98.esm.js +1517 -0
- package/dist/ja-37632763.cjs.prod.js +6 -0
- package/dist/ja-73c088a7.esm.js +4 -0
- package/dist/ja-9bd5f452.cjs.dev.js +6 -0
- package/dist/pt-BR-b37d730b.esm.js +4 -0
- package/dist/pt-BR-ea6b3251.cjs.dev.js +6 -0
- package/dist/pt-BR-ec2a1a11.cjs.prod.js +6 -0
- package/dist/zh-CN-4780d88e.esm.js +4 -0
- package/dist/zh-CN-52baa549.cjs.prod.js +6 -0
- package/dist/zh-CN-d4bc6d26.cjs.dev.js +6 -0
- package/package.json +92 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
4
|
+
var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
5
|
+
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
6
|
+
var _Object$getOwnPropertyDescriptor = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
7
|
+
var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
8
|
+
var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
9
|
+
var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
10
|
+
var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
11
|
+
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
12
|
+
require('react');
|
|
13
|
+
var uiKit = require('@commercetools-frontend/ui-kit');
|
|
14
|
+
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-73a8bbcd.cjs.dev.js');
|
|
15
|
+
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
16
|
+
require('react-intl');
|
|
17
|
+
require('@commercetools-frontend/application-shell-connectors');
|
|
18
|
+
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
19
|
+
require('@commercetools-frontend/sdk');
|
|
20
|
+
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
21
|
+
require('@commercetools-frontend/constants');
|
|
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
|
+
require('papaparse');
|
|
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-uikit/data-table');
|
|
46
|
+
require('@commercetools-frontend/i18n');
|
|
47
|
+
|
|
48
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
49
|
+
|
|
50
|
+
var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
|
|
51
|
+
var _Object$getOwnPropertySymbols__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertySymbols);
|
|
52
|
+
var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty);
|
|
53
|
+
var _Object$getOwnPropertyDescriptor__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptor);
|
|
54
|
+
var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachInstanceProperty);
|
|
55
|
+
var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
|
|
56
|
+
var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
|
|
57
|
+
var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
|
|
58
|
+
|
|
59
|
+
function ownKeys(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; }
|
|
60
|
+
function _objectSpread(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(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(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
61
|
+
var FileIcon = function FileIcon(props) {
|
|
62
|
+
return jsxRuntime.jsxs("svg", _objectSpread(_objectSpread({}, props), {}, {
|
|
63
|
+
children: [jsxRuntime.jsx("mask", {
|
|
64
|
+
id: "a",
|
|
65
|
+
style: {
|
|
66
|
+
maskType: "alpha"
|
|
67
|
+
},
|
|
68
|
+
maskUnits: "userSpaceOnUse",
|
|
69
|
+
x: "0",
|
|
70
|
+
y: "0",
|
|
71
|
+
width: "32",
|
|
72
|
+
height: "32",
|
|
73
|
+
children: jsxRuntime.jsx("path", {
|
|
74
|
+
fill: "#D9D9D9",
|
|
75
|
+
d: "M0 0h32v32H0z"
|
|
76
|
+
})
|
|
77
|
+
}), jsxRuntime.jsx("g", {
|
|
78
|
+
mask: "url(#a)",
|
|
79
|
+
children: jsxRuntime.jsx("path", {
|
|
80
|
+
d: "M14.667 25.333h2.666v-5.566l2.134 2.133 1.866-1.9L16 14.667 10.667 20l1.9 1.867 2.1-2.1v5.566Zm-6.667 4a2.568 2.568 0 0 1-1.883-.783 2.568 2.568 0 0 1-.784-1.883V5.333c0-.733.261-1.36.784-1.883A2.568 2.568 0 0 1 8 2.667h10.667l8 8v16c0 .733-.261 1.36-.784 1.883a2.568 2.568 0 0 1-1.883.783H8ZM17.333 12H24l-6.667-6.667V12Z",
|
|
81
|
+
fill: "#B1ACFF"
|
|
82
|
+
})
|
|
83
|
+
})]
|
|
84
|
+
}));
|
|
85
|
+
};
|
|
86
|
+
FileIcon.defaultProps = {
|
|
87
|
+
width: "32",
|
|
88
|
+
height: "32",
|
|
89
|
+
fill: "none",
|
|
90
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
91
|
+
};
|
|
92
|
+
function EnabledDropArea() {
|
|
93
|
+
return jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
94
|
+
alignItems: "center",
|
|
95
|
+
justifyContent: "center",
|
|
96
|
+
scale: "s",
|
|
97
|
+
children: [jsxRuntime.jsx(FileIcon, {}), jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
98
|
+
alignItems: "center",
|
|
99
|
+
scale: "s",
|
|
100
|
+
children: [jsxRuntime.jsx(uiKit.Text.Subheadline, {
|
|
101
|
+
as: "h4",
|
|
102
|
+
intlMessage: dist_commercetoolsFrontendExtensionsUnpublishProductsModal.messages.dragAndDropCSV
|
|
103
|
+
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
104
|
+
intlMessage: dist_commercetoolsFrontendExtensionsUnpublishProductsModal.messages.or
|
|
105
|
+
}), jsxRuntime.jsx(uiKit.Link, {
|
|
106
|
+
intlMessage: dist_commercetoolsFrontendExtensionsUnpublishProductsModal.messages.browseButton,
|
|
107
|
+
tone: "secondary",
|
|
108
|
+
to: "",
|
|
109
|
+
onClick: ev => ev.preventDefault()
|
|
110
|
+
})]
|
|
111
|
+
})]
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
exports["default"] = EnabledDropArea;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
2
|
+
import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
3
|
+
import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
4
|
+
import _Object$getOwnPropertyDescriptor from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
|
|
5
|
+
import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/for-each';
|
|
6
|
+
import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
|
|
7
|
+
import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/object/define-properties';
|
|
8
|
+
import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
9
|
+
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
10
|
+
import 'react';
|
|
11
|
+
import { Spacings, Text, Link } from '@commercetools-frontend/ui-kit';
|
|
12
|
+
import { m as messages } from './index-95840e98.esm.js';
|
|
13
|
+
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
14
|
+
import 'react-intl';
|
|
15
|
+
import '@commercetools-frontend/application-shell-connectors';
|
|
16
|
+
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
17
|
+
import '@commercetools-frontend/sdk';
|
|
18
|
+
import '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
19
|
+
import '@commercetools-frontend/constants';
|
|
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
|
+
import 'papaparse';
|
|
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-uikit/data-table';
|
|
44
|
+
import '@commercetools-frontend/i18n';
|
|
45
|
+
|
|
46
|
+
function ownKeys(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; }
|
|
47
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
48
|
+
var FileIcon = function FileIcon(props) {
|
|
49
|
+
return jsxs("svg", _objectSpread(_objectSpread({}, props), {}, {
|
|
50
|
+
children: [jsx("mask", {
|
|
51
|
+
id: "a",
|
|
52
|
+
style: {
|
|
53
|
+
maskType: "alpha"
|
|
54
|
+
},
|
|
55
|
+
maskUnits: "userSpaceOnUse",
|
|
56
|
+
x: "0",
|
|
57
|
+
y: "0",
|
|
58
|
+
width: "32",
|
|
59
|
+
height: "32",
|
|
60
|
+
children: jsx("path", {
|
|
61
|
+
fill: "#D9D9D9",
|
|
62
|
+
d: "M0 0h32v32H0z"
|
|
63
|
+
})
|
|
64
|
+
}), jsx("g", {
|
|
65
|
+
mask: "url(#a)",
|
|
66
|
+
children: jsx("path", {
|
|
67
|
+
d: "M14.667 25.333h2.666v-5.566l2.134 2.133 1.866-1.9L16 14.667 10.667 20l1.9 1.867 2.1-2.1v5.566Zm-6.667 4a2.568 2.568 0 0 1-1.883-.783 2.568 2.568 0 0 1-.784-1.883V5.333c0-.733.261-1.36.784-1.883A2.568 2.568 0 0 1 8 2.667h10.667l8 8v16c0 .733-.261 1.36-.784 1.883a2.568 2.568 0 0 1-1.883.783H8ZM17.333 12H24l-6.667-6.667V12Z",
|
|
68
|
+
fill: "#B1ACFF"
|
|
69
|
+
})
|
|
70
|
+
})]
|
|
71
|
+
}));
|
|
72
|
+
};
|
|
73
|
+
FileIcon.defaultProps = {
|
|
74
|
+
width: "32",
|
|
75
|
+
height: "32",
|
|
76
|
+
fill: "none",
|
|
77
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
78
|
+
};
|
|
79
|
+
function EnabledDropArea() {
|
|
80
|
+
return jsxs(Spacings.Inline, {
|
|
81
|
+
alignItems: "center",
|
|
82
|
+
justifyContent: "center",
|
|
83
|
+
scale: "s",
|
|
84
|
+
children: [jsx(FileIcon, {}), jsxs(Spacings.Inline, {
|
|
85
|
+
alignItems: "center",
|
|
86
|
+
scale: "s",
|
|
87
|
+
children: [jsx(Text.Subheadline, {
|
|
88
|
+
as: "h4",
|
|
89
|
+
intlMessage: messages.dragAndDropCSV
|
|
90
|
+
}), jsx(Text.Body, {
|
|
91
|
+
intlMessage: messages.or
|
|
92
|
+
}), jsx(Link, {
|
|
93
|
+
intlMessage: messages.browseButton,
|
|
94
|
+
tone: "secondary",
|
|
95
|
+
to: "",
|
|
96
|
+
onClick: ev => ev.preventDefault()
|
|
97
|
+
})]
|
|
98
|
+
})]
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export { EnabledDropArea as default };
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
4
|
+
var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
5
|
+
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
6
|
+
var _Object$getOwnPropertyDescriptor = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
7
|
+
var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
8
|
+
var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
9
|
+
var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
10
|
+
var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
11
|
+
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
12
|
+
require('react');
|
|
13
|
+
var uiKit = require('@commercetools-frontend/ui-kit');
|
|
14
|
+
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-601d8304.cjs.prod.js');
|
|
15
|
+
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
16
|
+
require('react-intl');
|
|
17
|
+
require('@commercetools-frontend/application-shell-connectors');
|
|
18
|
+
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
19
|
+
require('@commercetools-frontend/sdk');
|
|
20
|
+
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
21
|
+
require('@commercetools-frontend/constants');
|
|
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
|
+
require('papaparse');
|
|
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-uikit/data-table');
|
|
46
|
+
require('@commercetools-frontend/i18n');
|
|
47
|
+
|
|
48
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
49
|
+
|
|
50
|
+
var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
|
|
51
|
+
var _Object$getOwnPropertySymbols__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertySymbols);
|
|
52
|
+
var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty);
|
|
53
|
+
var _Object$getOwnPropertyDescriptor__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptor);
|
|
54
|
+
var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachInstanceProperty);
|
|
55
|
+
var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
|
|
56
|
+
var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
|
|
57
|
+
var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
|
|
58
|
+
|
|
59
|
+
function ownKeys(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; }
|
|
60
|
+
function _objectSpread(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(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(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
61
|
+
var FileIcon = function FileIcon(props) {
|
|
62
|
+
return jsxRuntime.jsxs("svg", _objectSpread(_objectSpread({}, props), {}, {
|
|
63
|
+
children: [jsxRuntime.jsx("mask", {
|
|
64
|
+
id: "a",
|
|
65
|
+
style: {
|
|
66
|
+
maskType: "alpha"
|
|
67
|
+
},
|
|
68
|
+
maskUnits: "userSpaceOnUse",
|
|
69
|
+
x: "0",
|
|
70
|
+
y: "0",
|
|
71
|
+
width: "32",
|
|
72
|
+
height: "32",
|
|
73
|
+
children: jsxRuntime.jsx("path", {
|
|
74
|
+
fill: "#D9D9D9",
|
|
75
|
+
d: "M0 0h32v32H0z"
|
|
76
|
+
})
|
|
77
|
+
}), jsxRuntime.jsx("g", {
|
|
78
|
+
mask: "url(#a)",
|
|
79
|
+
children: jsxRuntime.jsx("path", {
|
|
80
|
+
d: "M14.667 25.333h2.666v-5.566l2.134 2.133 1.866-1.9L16 14.667 10.667 20l1.9 1.867 2.1-2.1v5.566Zm-6.667 4a2.568 2.568 0 0 1-1.883-.783 2.568 2.568 0 0 1-.784-1.883V5.333c0-.733.261-1.36.784-1.883A2.568 2.568 0 0 1 8 2.667h10.667l8 8v16c0 .733-.261 1.36-.784 1.883a2.568 2.568 0 0 1-1.883.783H8ZM17.333 12H24l-6.667-6.667V12Z",
|
|
81
|
+
fill: "#B1ACFF"
|
|
82
|
+
})
|
|
83
|
+
})]
|
|
84
|
+
}));
|
|
85
|
+
};
|
|
86
|
+
FileIcon.defaultProps = {
|
|
87
|
+
width: "32",
|
|
88
|
+
height: "32",
|
|
89
|
+
fill: "none",
|
|
90
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
91
|
+
};
|
|
92
|
+
function EnabledDropArea() {
|
|
93
|
+
return jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
94
|
+
alignItems: "center",
|
|
95
|
+
justifyContent: "center",
|
|
96
|
+
scale: "s",
|
|
97
|
+
children: [jsxRuntime.jsx(FileIcon, {}), jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
98
|
+
alignItems: "center",
|
|
99
|
+
scale: "s",
|
|
100
|
+
children: [jsxRuntime.jsx(uiKit.Text.Subheadline, {
|
|
101
|
+
as: "h4",
|
|
102
|
+
intlMessage: dist_commercetoolsFrontendExtensionsUnpublishProductsModal.messages.dragAndDropCSV
|
|
103
|
+
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
104
|
+
intlMessage: dist_commercetoolsFrontendExtensionsUnpublishProductsModal.messages.or
|
|
105
|
+
}), jsxRuntime.jsx(uiKit.Link, {
|
|
106
|
+
intlMessage: dist_commercetoolsFrontendExtensionsUnpublishProductsModal.messages.browseButton,
|
|
107
|
+
tone: "secondary",
|
|
108
|
+
to: "",
|
|
109
|
+
onClick: ev => ev.preventDefault()
|
|
110
|
+
})]
|
|
111
|
+
})]
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
exports["default"] = EnabledDropArea;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var reactIntl = require('react-intl');
|
|
4
|
+
var uiKit = require('@commercetools-frontend/ui-kit');
|
|
5
|
+
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-601d8304.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-uikit/data-table');
|
|
46
|
+
require('@commercetools-frontend/i18n');
|
|
47
|
+
|
|
48
|
+
function FileDroppedArea() {
|
|
49
|
+
const intl = reactIntl.useIntl();
|
|
50
|
+
const _useUnpublishProducts = dist_commercetoolsFrontendExtensionsUnpublishProductsModal.useUnpublishProductsContext(),
|
|
51
|
+
state = _useUnpublishProducts.state;
|
|
52
|
+
return jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
53
|
+
alignItems: "center",
|
|
54
|
+
scale: "s",
|
|
55
|
+
children: [jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
56
|
+
alignItems: "flex-start",
|
|
57
|
+
scale: "xs",
|
|
58
|
+
children: [jsxRuntime.jsx(uiKit.PaperclipIcon, {
|
|
59
|
+
color: "neutral60"
|
|
60
|
+
}), jsxRuntime.jsx(uiKit.Constraints.Horizontal, {
|
|
61
|
+
max: 13,
|
|
62
|
+
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
63
|
+
children: state.droppedFile?.name
|
|
64
|
+
})
|
|
65
|
+
})]
|
|
66
|
+
}), jsxRuntime.jsx(uiKit.SecondaryButton, {
|
|
67
|
+
tone: "secondary",
|
|
68
|
+
size: "medium",
|
|
69
|
+
label: intl.formatMessage(dist_commercetoolsFrontendExtensionsUnpublishProductsModal.messages.chooseFile)
|
|
70
|
+
})]
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
exports["default"] = FileDroppedArea;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var reactIntl = require('react-intl');
|
|
4
|
+
var uiKit = require('@commercetools-frontend/ui-kit');
|
|
5
|
+
var dist_commercetoolsFrontendExtensionsUnpublishProductsModal = require('./index-73a8bbcd.cjs.dev.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-uikit/data-table');
|
|
46
|
+
require('@commercetools-frontend/i18n');
|
|
47
|
+
|
|
48
|
+
function FileDroppedArea() {
|
|
49
|
+
const intl = reactIntl.useIntl();
|
|
50
|
+
const _useUnpublishProducts = dist_commercetoolsFrontendExtensionsUnpublishProductsModal.useUnpublishProductsContext(),
|
|
51
|
+
state = _useUnpublishProducts.state;
|
|
52
|
+
return jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
53
|
+
alignItems: "center",
|
|
54
|
+
scale: "s",
|
|
55
|
+
children: [jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
56
|
+
alignItems: "flex-start",
|
|
57
|
+
scale: "xs",
|
|
58
|
+
children: [jsxRuntime.jsx(uiKit.PaperclipIcon, {
|
|
59
|
+
color: "neutral60"
|
|
60
|
+
}), jsxRuntime.jsx(uiKit.Constraints.Horizontal, {
|
|
61
|
+
max: 13,
|
|
62
|
+
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
63
|
+
children: state.droppedFile?.name
|
|
64
|
+
})
|
|
65
|
+
})]
|
|
66
|
+
}), jsxRuntime.jsx(uiKit.SecondaryButton, {
|
|
67
|
+
tone: "secondary",
|
|
68
|
+
size: "medium",
|
|
69
|
+
label: intl.formatMessage(dist_commercetoolsFrontendExtensionsUnpublishProductsModal.messages.chooseFile)
|
|
70
|
+
})]
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
exports["default"] = FileDroppedArea;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { useIntl } from 'react-intl';
|
|
2
|
+
import { Spacings, PaperclipIcon, Constraints, Text, SecondaryButton } from '@commercetools-frontend/ui-kit';
|
|
3
|
+
import { u as useUnpublishProductsContext, m as messages } from './index-95840e98.esm.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import '@commercetools-frontend/actions-global';
|
|
6
|
+
import '@commercetools-frontend/application-shell-connectors';
|
|
7
|
+
import '@commercetools-frontend/constants';
|
|
8
|
+
import '@commercetools-frontend/sdk';
|
|
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
|
+
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
18
|
+
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
19
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
20
|
+
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
|
|
21
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/for-each';
|
|
22
|
+
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
|
|
23
|
+
import '@babel/runtime-corejs3/core-js-stable/object/define-properties';
|
|
24
|
+
import '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
25
|
+
import 'papaparse';
|
|
26
|
+
import '@babel/runtime-corejs3/core-js-stable/reflect/construct';
|
|
27
|
+
import '@babel/runtime-corejs3/helpers/createClass';
|
|
28
|
+
import '@babel/runtime-corejs3/helpers/classCallCheck';
|
|
29
|
+
import '@babel/runtime-corejs3/helpers/possibleConstructorReturn';
|
|
30
|
+
import '@babel/runtime-corejs3/helpers/getPrototypeOf';
|
|
31
|
+
import '@babel/runtime-corejs3/helpers/inherits';
|
|
32
|
+
import '@babel/runtime-corejs3/helpers/wrapNativeSuper';
|
|
33
|
+
import '@commercetools-frontend/application-shell';
|
|
34
|
+
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
35
|
+
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
36
|
+
import '@commercetools-frontend/application-components';
|
|
37
|
+
import '@commercetools-frontend/fullstory';
|
|
38
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/some';
|
|
39
|
+
import 'react-dropzone';
|
|
40
|
+
import '@emotion/styled/base';
|
|
41
|
+
import '@emotion/react';
|
|
42
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
43
|
+
import '@commercetools-uikit/data-table';
|
|
44
|
+
import '@commercetools-frontend/i18n';
|
|
45
|
+
|
|
46
|
+
function FileDroppedArea() {
|
|
47
|
+
const intl = useIntl();
|
|
48
|
+
const _useUnpublishProducts = useUnpublishProductsContext(),
|
|
49
|
+
state = _useUnpublishProducts.state;
|
|
50
|
+
return jsxs(Spacings.Stack, {
|
|
51
|
+
alignItems: "center",
|
|
52
|
+
scale: "s",
|
|
53
|
+
children: [jsxs(Spacings.Inline, {
|
|
54
|
+
alignItems: "flex-start",
|
|
55
|
+
scale: "xs",
|
|
56
|
+
children: [jsx(PaperclipIcon, {
|
|
57
|
+
color: "neutral60"
|
|
58
|
+
}), jsx(Constraints.Horizontal, {
|
|
59
|
+
max: 13,
|
|
60
|
+
children: jsx(Text.Body, {
|
|
61
|
+
children: state.droppedFile?.name
|
|
62
|
+
})
|
|
63
|
+
})]
|
|
64
|
+
}), jsx(SecondaryButton, {
|
|
65
|
+
tone: "secondary",
|
|
66
|
+
size: "medium",
|
|
67
|
+
label: intl.formatMessage(messages.chooseFile)
|
|
68
|
+
})]
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export { FileDroppedArea as default };
|