@commercetools-frontend-extensions/import-resources-modal 1.7.3 → 1.7.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-1db5fb36.cjs.dev.js → active-drag-drop-area-a4fd91f7.cjs.dev.js} +3 -2
- package/dist/{active-drag-drop-area-8aa8f598.cjs.prod.js → active-drag-drop-area-abe96e04.cjs.prod.js} +3 -2
- package/dist/{active-drag-drop-area-08a418e6.esm.js → active-drag-drop-area-bfd1ac28.esm.js} +3 -2
- package/dist/commercetools-frontend-extensions-import-resources-modal.cjs.dev.js +3 -2
- package/dist/commercetools-frontend-extensions-import-resources-modal.cjs.prod.js +3 -2
- package/dist/commercetools-frontend-extensions-import-resources-modal.esm.js +3 -2
- package/dist/{enabled-drop-area-520d4fab.esm.js → disabled-drop-area-093742fc.esm.js} +41 -58
- package/dist/{enabled-drop-area-3c747e55.cjs.dev.js → disabled-drop-area-25e976d6.cjs.prod.js} +39 -56
- package/dist/{enabled-drop-area-0167211e.cjs.prod.js → disabled-drop-area-c092ebd0.cjs.dev.js} +41 -58
- package/dist/enabled-drop-area-2e91435a.cjs.dev.js +79 -0
- package/dist/enabled-drop-area-86aff122.cjs.prod.js +79 -0
- package/dist/enabled-drop-area-db88a5da.esm.js +77 -0
- package/dist/{file-dropped-area-b537acc8.cjs.dev.js → file-dropped-area-6279df47.cjs.prod.js} +3 -2
- package/dist/{file-dropped-area-2c9ef534.esm.js → file-dropped-area-70be944b.esm.js} +3 -2
- package/dist/{file-dropped-area-6ab48c3b.cjs.prod.js → file-dropped-area-88c05907.cjs.dev.js} +3 -2
- package/dist/{index-7805d683.cjs.prod.js → index-6186162d.cjs.prod.js} +46 -44
- package/dist/{index-7242aa8f.cjs.dev.js → index-98c1d115.cjs.dev.js} +46 -44
- package/dist/{index-d3cbca84.esm.js → index-c388b02a.esm.js} +46 -45
- package/package.json +19 -20
- package/dist/disabled-drop-area-2c088477.esm.js +0 -37
- package/dist/disabled-drop-area-99c1fa0b.cjs.prod.js +0 -50
- package/dist/disabled-drop-area-aa78075b.cjs.dev.js +0 -50
|
@@ -35,6 +35,8 @@ var Papa = require('papaparse');
|
|
|
35
35
|
var _reduceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
36
36
|
var _sliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
37
37
|
var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
38
|
+
var _someInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
39
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/bind');
|
|
38
40
|
require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
39
41
|
require('@babel/runtime-corejs3/core-js-stable/url-search-params');
|
|
40
42
|
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
@@ -42,7 +44,6 @@ var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
|
42
44
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
43
45
|
var fullstory = require('@commercetools-frontend/fullstory');
|
|
44
46
|
var uiKit = require('@commercetools-frontend/ui-kit');
|
|
45
|
-
var _someInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
46
47
|
var reactDropzone = require('react-dropzone');
|
|
47
48
|
var actionsGlobal = require('@commercetools-frontend/actions-global');
|
|
48
49
|
var _styled = require('@emotion/styled/base');
|
|
@@ -752,13 +753,13 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
752
753
|
return /*#__PURE__*/react.css(process.env.NODE_ENV === "production" ? "" : ";label:getDefaultDropWrapperStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRyb3AtYXJlYS13cmFwcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE0QlkiLCJmaWxlIjoiZHJvcC1hcmVhLXdyYXBwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgdHlwZSBEcm9wem9uZVJvb3RQcm9wcyB9IGZyb20gJ3JlYWN0LWRyb3B6b25lJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IHN0eWxlcyB9IGZyb20gJy4vc3R5bGVzJ1xuaW1wb3J0IHsgdHlwZSBEcm9wQXJlYVN0YXRlIH0gZnJvbSAnLi4vLi4vLi4vQHR5cGVzJ1xuXG5pbnRlcmZhY2UgRHJvcFdyYXBwZXJQcm9wcyBleHRlbmRzIERyb3B6b25lUm9vdFByb3BzIHtcbiAgZHJvcEFyZWFTdGF0ZTogRHJvcEFyZWFTdGF0ZVxufVxuZXhwb3J0IGNvbnN0IERyb3BXcmFwcGVyID0gc3R5bGVkLmRpdjxEcm9wV3JhcHBlclByb3BzPmBcbiAgJHtzdHlsZXMuYmFzZX1cbiAgJHsocHJvcHMpID0+IHtcbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2Rpc2FibGVkJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5kaXNhYmxlZFxuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ3JlYWR5LWZvci1kcm9wJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5yZWFkeUZvckRyb3BcbiAgICB9XG4gICAgaWYgKHByb3BzLmRyb3BBcmVhU3RhdGUgPT09ICdhY3RpdmUtZHJhZycpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuYWN0aXZlRHJhZ1xuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2ZpbGUtZHJvcHBlZCcpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuZmlsZURyb3BwZWRcbiAgICB9XG4gICAgcmV0dXJuIGdldERlZmF1bHREcm9wV3JhcHBlclN0eWxlcyhwcm9wcy5kcm9wQXJlYVN0YXRlKVxuICB9fVxuYFxuZnVuY3Rpb24gZ2V0RGVmYXVsdERyb3BXcmFwcGVyU3R5bGVzKF9kcm9wQXJlYVN0YXRlOiBuZXZlcikge1xuICByZXR1cm4gY3NzYGBcbn1cbiJdfQ== */");
|
|
753
754
|
}
|
|
754
755
|
|
|
755
|
-
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-
|
|
756
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-a4fd91f7.cjs.dev.js' /* webpackChunkName: "active-drag-drop-area" */); }));
|
|
756
757
|
|
|
757
|
-
var DisabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./disabled-drop-area-
|
|
758
|
+
var DisabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./disabled-drop-area-c092ebd0.cjs.dev.js' /* webpackChunkName: "disabled-drop-area" */); }));
|
|
758
759
|
|
|
759
|
-
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-
|
|
760
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-2e91435a.cjs.dev.js' /* webpackChunkName: "enabled-drop-area" */); }));
|
|
760
761
|
|
|
761
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
762
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-88c05907.cjs.dev.js' /* webpackChunkName: "filed-dropped-area" */); }));
|
|
762
763
|
|
|
763
764
|
function getDropArea(_ref) {
|
|
764
765
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -1980,39 +1981,6 @@ const UploadResult = () => {
|
|
|
1980
1981
|
return jsxRuntime.jsx(UploadPreviewModal, {});
|
|
1981
1982
|
};
|
|
1982
1983
|
|
|
1983
|
-
function ownKeys$3(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; }
|
|
1984
|
-
function _objectSpread$3(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$3(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$3(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1985
|
-
var FileIcon = function FileIcon(props) {
|
|
1986
|
-
return jsxRuntime.jsxs("svg", _objectSpread$3(_objectSpread$3({}, props), {}, {
|
|
1987
|
-
children: [jsxRuntime.jsx("mask", {
|
|
1988
|
-
id: "a",
|
|
1989
|
-
style: {
|
|
1990
|
-
maskType: "alpha"
|
|
1991
|
-
},
|
|
1992
|
-
maskUnits: "userSpaceOnUse",
|
|
1993
|
-
x: "0",
|
|
1994
|
-
y: "0",
|
|
1995
|
-
width: "32",
|
|
1996
|
-
height: "32",
|
|
1997
|
-
children: jsxRuntime.jsx("path", {
|
|
1998
|
-
fill: "#D9D9D9",
|
|
1999
|
-
d: "M0 0h32v32H0z"
|
|
2000
|
-
})
|
|
2001
|
-
}), jsxRuntime.jsx("g", {
|
|
2002
|
-
mask: "url(#a)",
|
|
2003
|
-
children: jsxRuntime.jsx("path", {
|
|
2004
|
-
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",
|
|
2005
|
-
fill: "#B1ACFF"
|
|
2006
|
-
})
|
|
2007
|
-
})]
|
|
2008
|
-
}));
|
|
2009
|
-
};
|
|
2010
|
-
FileIcon.defaultProps = {
|
|
2011
|
-
width: "32",
|
|
2012
|
-
height: "32",
|
|
2013
|
-
fill: "none",
|
|
2014
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2015
|
-
};
|
|
2016
1984
|
const Uploading = () => {
|
|
2017
1985
|
const intl = reactIntl.useIntl();
|
|
2018
1986
|
const _useImportResourcesCo = useImportResourcesContext(),
|
|
@@ -2138,8 +2106,8 @@ var messages$1 = reactIntl.defineMessages({
|
|
|
2138
2106
|
}
|
|
2139
2107
|
});
|
|
2140
2108
|
|
|
2141
|
-
function ownKeys$
|
|
2142
|
-
function _objectSpread$
|
|
2109
|
+
function ownKeys$3(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; }
|
|
2110
|
+
function _objectSpread$3(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$3(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$3(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
2143
2111
|
const Instructions = () => {
|
|
2144
2112
|
const intl = reactIntl.useIntl();
|
|
2145
2113
|
const _useImportResourcesCo = useImportResourcesContext(),
|
|
@@ -2147,7 +2115,7 @@ const Instructions = () => {
|
|
|
2147
2115
|
const templateLink = RESOURCE_TYPE_TEMPLATE_DOWNLOAD_LINKS[state.resourceType];
|
|
2148
2116
|
const documentationLink = RESOURCE_TYPE_DOCUMENTATION_LINKS[state.resourceType];
|
|
2149
2117
|
return jsxRuntime.jsx(uiKit.Text.Body, {
|
|
2150
|
-
intlMessage: _objectSpread$
|
|
2118
|
+
intlMessage: _objectSpread$3(_objectSpread$3({}, messages$1.fileUploadInstructions), {}, {
|
|
2151
2119
|
values: {
|
|
2152
2120
|
fileSize: intl.formatNumber(FILE_SIZE_LIMITS_MB[state.resourceType]),
|
|
2153
2121
|
rowLimit: intl.formatNumber(ROW_LIMITS[state.resourceType]),
|
|
@@ -2181,8 +2149,8 @@ var messages = reactIntl.defineMessages({
|
|
|
2181
2149
|
}
|
|
2182
2150
|
});
|
|
2183
2151
|
|
|
2184
|
-
function ownKeys$
|
|
2185
|
-
function _objectSpread$
|
|
2152
|
+
function ownKeys$2(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; }
|
|
2153
|
+
function _objectSpread$2(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$2(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$2(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
2186
2154
|
const InfoBox = () => {
|
|
2187
2155
|
const _useImportResourcesCo = useImportResourcesContext(),
|
|
2188
2156
|
state = _useImportResourcesCo.state;
|
|
@@ -2197,7 +2165,7 @@ const InfoBox = () => {
|
|
|
2197
2165
|
as: "h4",
|
|
2198
2166
|
intlMessage: messages.prerequisitesOfImportingData
|
|
2199
2167
|
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
2200
|
-
intlMessage: _objectSpread$
|
|
2168
|
+
intlMessage: _objectSpread$2(_objectSpread$2({}, messages.keysForEveryResource), {}, {
|
|
2201
2169
|
values: {
|
|
2202
2170
|
link: msg => jsxRuntime.jsx(uiKit.Link, {
|
|
2203
2171
|
tone: "secondary",
|
|
@@ -2213,6 +2181,39 @@ const InfoBox = () => {
|
|
|
2213
2181
|
});
|
|
2214
2182
|
};
|
|
2215
2183
|
|
|
2184
|
+
function ownKeys$1(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; }
|
|
2185
|
+
function _objectSpread$1(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$1(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$1(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
2186
|
+
const FileIcon = props => jsxRuntime.jsxs("svg", _objectSpread$1(_objectSpread$1({
|
|
2187
|
+
width: "32",
|
|
2188
|
+
height: "32",
|
|
2189
|
+
viewBox: "0 0 32 32",
|
|
2190
|
+
fill: "none",
|
|
2191
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2192
|
+
}, props), {}, {
|
|
2193
|
+
children: [jsxRuntime.jsx("mask", {
|
|
2194
|
+
id: "mask0_17_6643",
|
|
2195
|
+
style: {
|
|
2196
|
+
maskType: 'alpha'
|
|
2197
|
+
},
|
|
2198
|
+
maskUnits: "userSpaceOnUse",
|
|
2199
|
+
x: "0",
|
|
2200
|
+
y: "0",
|
|
2201
|
+
width: "32",
|
|
2202
|
+
height: "32",
|
|
2203
|
+
children: jsxRuntime.jsx("rect", {
|
|
2204
|
+
width: "32",
|
|
2205
|
+
height: "32",
|
|
2206
|
+
fill: "#D9D9D9"
|
|
2207
|
+
})
|
|
2208
|
+
}), jsxRuntime.jsx("g", {
|
|
2209
|
+
mask: "url(#mask0_17_6643)",
|
|
2210
|
+
children: jsxRuntime.jsx("path", {
|
|
2211
|
+
d: "M14.6667 25.3333H17.3333V19.7667L19.4667 21.9L21.3333 20L16 14.6667L10.6667 20L12.5667 21.8667L14.6667 19.7667V25.3333ZM8 29.3333C7.26667 29.3333 6.63889 29.0722 6.11667 28.55C5.59444 28.0278 5.33333 27.4 5.33333 26.6667V5.33332C5.33333 4.59999 5.59444 3.97221 6.11667 3.44999C6.63889 2.92777 7.26667 2.66666 8 2.66666H18.6667L26.6667 10.6667V26.6667C26.6667 27.4 26.4056 28.0278 25.8833 28.55C25.3611 29.0722 24.7333 29.3333 24 29.3333H8ZM17.3333 12H24L17.3333 5.33332V12Z",
|
|
2212
|
+
fill: "#B1ACFF"
|
|
2213
|
+
})
|
|
2214
|
+
})]
|
|
2215
|
+
}));
|
|
2216
|
+
|
|
2216
2217
|
const getChunkImport = locale => {
|
|
2217
2218
|
const intlLocale = i18n.mapLocaleToIntlLocale(locale);
|
|
2218
2219
|
switch (intlLocale) {
|
|
@@ -2309,6 +2310,7 @@ ImportResourcesModal.displayName = 'ImportResourcesModal';
|
|
|
2309
2310
|
|
|
2310
2311
|
exports.EnabledDropArea = EnabledDropArea;
|
|
2311
2312
|
exports.FileDropped = FileDropped;
|
|
2313
|
+
exports.FileIcon = FileIcon;
|
|
2312
2314
|
exports.ImportResourcesModal = ImportResourcesModal;
|
|
2313
2315
|
exports.messages = messages$7;
|
|
2314
2316
|
exports.useImportPermission = useImportPermission;
|
|
@@ -33,6 +33,8 @@ import Papa from 'papaparse';
|
|
|
33
33
|
import _reduceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/reduce';
|
|
34
34
|
import _sliceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
35
35
|
import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
36
|
+
import _someInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/some';
|
|
37
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/bind';
|
|
36
38
|
import '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
|
|
37
39
|
import '@babel/runtime-corejs3/core-js-stable/url-search-params';
|
|
38
40
|
import '@babel/runtime-corejs3/core-js-stable/object/entries';
|
|
@@ -40,7 +42,6 @@ import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
|
40
42
|
import { FormDialog, InfoDialog, PageContentNarrow, ConfirmationDialog } from '@commercetools-frontend/application-components';
|
|
41
43
|
import { Masking } from '@commercetools-frontend/fullstory';
|
|
42
44
|
import { customProperties, Constraints, CheckboxInput, Spacings, Grid, designTokens, Text, usePaginationState, DataTable, PageNavigator, Stamp, SecondaryButton, PrimaryButton, ImportIcon, Link, TagList, Card, CheckBoldIcon, EyeCrossedIcon, ProgressBar, RadioInput, ContentNotification } from '@commercetools-frontend/ui-kit';
|
|
43
|
-
import _someInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/some';
|
|
44
45
|
import { useDropzone } from 'react-dropzone';
|
|
45
46
|
import { useShowNotification } from '@commercetools-frontend/actions-global';
|
|
46
47
|
import _styled from '@emotion/styled/base';
|
|
@@ -724,13 +725,13 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
724
725
|
return /*#__PURE__*/css(process.env.NODE_ENV === "production" ? "" : ";label:getDefaultDropWrapperStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRyb3AtYXJlYS13cmFwcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE0QlkiLCJmaWxlIjoiZHJvcC1hcmVhLXdyYXBwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgdHlwZSBEcm9wem9uZVJvb3RQcm9wcyB9IGZyb20gJ3JlYWN0LWRyb3B6b25lJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IHN0eWxlcyB9IGZyb20gJy4vc3R5bGVzJ1xuaW1wb3J0IHsgdHlwZSBEcm9wQXJlYVN0YXRlIH0gZnJvbSAnLi4vLi4vLi4vQHR5cGVzJ1xuXG5pbnRlcmZhY2UgRHJvcFdyYXBwZXJQcm9wcyBleHRlbmRzIERyb3B6b25lUm9vdFByb3BzIHtcbiAgZHJvcEFyZWFTdGF0ZTogRHJvcEFyZWFTdGF0ZVxufVxuZXhwb3J0IGNvbnN0IERyb3BXcmFwcGVyID0gc3R5bGVkLmRpdjxEcm9wV3JhcHBlclByb3BzPmBcbiAgJHtzdHlsZXMuYmFzZX1cbiAgJHsocHJvcHMpID0+IHtcbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2Rpc2FibGVkJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5kaXNhYmxlZFxuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ3JlYWR5LWZvci1kcm9wJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5yZWFkeUZvckRyb3BcbiAgICB9XG4gICAgaWYgKHByb3BzLmRyb3BBcmVhU3RhdGUgPT09ICdhY3RpdmUtZHJhZycpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuYWN0aXZlRHJhZ1xuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2ZpbGUtZHJvcHBlZCcpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuZmlsZURyb3BwZWRcbiAgICB9XG4gICAgcmV0dXJuIGdldERlZmF1bHREcm9wV3JhcHBlclN0eWxlcyhwcm9wcy5kcm9wQXJlYVN0YXRlKVxuICB9fVxuYFxuZnVuY3Rpb24gZ2V0RGVmYXVsdERyb3BXcmFwcGVyU3R5bGVzKF9kcm9wQXJlYVN0YXRlOiBuZXZlcikge1xuICByZXR1cm4gY3NzYGBcbn1cbiJdfQ== */");
|
|
725
726
|
}
|
|
726
727
|
|
|
727
|
-
var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-
|
|
728
|
+
var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-bfd1ac28.esm.js' /* webpackChunkName: "active-drag-drop-area" */));
|
|
728
729
|
|
|
729
|
-
var DisabledDropArea = /*#__PURE__*/lazy(() => import('./disabled-drop-area-
|
|
730
|
+
var DisabledDropArea = /*#__PURE__*/lazy(() => import('./disabled-drop-area-093742fc.esm.js' /* webpackChunkName: "disabled-drop-area" */));
|
|
730
731
|
|
|
731
|
-
var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-
|
|
732
|
+
var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-db88a5da.esm.js' /* webpackChunkName: "enabled-drop-area" */));
|
|
732
733
|
|
|
733
|
-
var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-
|
|
734
|
+
var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-70be944b.esm.js' /* webpackChunkName: "filed-dropped-area" */));
|
|
734
735
|
|
|
735
736
|
function getDropArea(_ref) {
|
|
736
737
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -1952,39 +1953,6 @@ const UploadResult = () => {
|
|
|
1952
1953
|
return jsx(UploadPreviewModal, {});
|
|
1953
1954
|
};
|
|
1954
1955
|
|
|
1955
|
-
function ownKeys$3(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; }
|
|
1956
|
-
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$3(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$3(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1957
|
-
var FileIcon = function FileIcon(props) {
|
|
1958
|
-
return jsxs("svg", _objectSpread$3(_objectSpread$3({}, props), {}, {
|
|
1959
|
-
children: [jsx("mask", {
|
|
1960
|
-
id: "a",
|
|
1961
|
-
style: {
|
|
1962
|
-
maskType: "alpha"
|
|
1963
|
-
},
|
|
1964
|
-
maskUnits: "userSpaceOnUse",
|
|
1965
|
-
x: "0",
|
|
1966
|
-
y: "0",
|
|
1967
|
-
width: "32",
|
|
1968
|
-
height: "32",
|
|
1969
|
-
children: jsx("path", {
|
|
1970
|
-
fill: "#D9D9D9",
|
|
1971
|
-
d: "M0 0h32v32H0z"
|
|
1972
|
-
})
|
|
1973
|
-
}), jsx("g", {
|
|
1974
|
-
mask: "url(#a)",
|
|
1975
|
-
children: jsx("path", {
|
|
1976
|
-
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",
|
|
1977
|
-
fill: "#B1ACFF"
|
|
1978
|
-
})
|
|
1979
|
-
})]
|
|
1980
|
-
}));
|
|
1981
|
-
};
|
|
1982
|
-
FileIcon.defaultProps = {
|
|
1983
|
-
width: "32",
|
|
1984
|
-
height: "32",
|
|
1985
|
-
fill: "none",
|
|
1986
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1987
|
-
};
|
|
1988
1956
|
const Uploading = () => {
|
|
1989
1957
|
const intl = useIntl();
|
|
1990
1958
|
const _useImportResourcesCo = useImportResourcesContext(),
|
|
@@ -2110,8 +2078,8 @@ var messages$1 = defineMessages({
|
|
|
2110
2078
|
}
|
|
2111
2079
|
});
|
|
2112
2080
|
|
|
2113
|
-
function ownKeys$
|
|
2114
|
-
function _objectSpread$
|
|
2081
|
+
function ownKeys$3(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; }
|
|
2082
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$3(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$3(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2115
2083
|
const Instructions = () => {
|
|
2116
2084
|
const intl = useIntl();
|
|
2117
2085
|
const _useImportResourcesCo = useImportResourcesContext(),
|
|
@@ -2119,7 +2087,7 @@ const Instructions = () => {
|
|
|
2119
2087
|
const templateLink = RESOURCE_TYPE_TEMPLATE_DOWNLOAD_LINKS[state.resourceType];
|
|
2120
2088
|
const documentationLink = RESOURCE_TYPE_DOCUMENTATION_LINKS[state.resourceType];
|
|
2121
2089
|
return jsx(Text.Body, {
|
|
2122
|
-
intlMessage: _objectSpread$
|
|
2090
|
+
intlMessage: _objectSpread$3(_objectSpread$3({}, messages$1.fileUploadInstructions), {}, {
|
|
2123
2091
|
values: {
|
|
2124
2092
|
fileSize: intl.formatNumber(FILE_SIZE_LIMITS_MB[state.resourceType]),
|
|
2125
2093
|
rowLimit: intl.formatNumber(ROW_LIMITS[state.resourceType]),
|
|
@@ -2153,8 +2121,8 @@ var messages = defineMessages({
|
|
|
2153
2121
|
}
|
|
2154
2122
|
});
|
|
2155
2123
|
|
|
2156
|
-
function ownKeys$
|
|
2157
|
-
function _objectSpread$
|
|
2124
|
+
function ownKeys$2(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; }
|
|
2125
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$2(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$2(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2158
2126
|
const InfoBox = () => {
|
|
2159
2127
|
const _useImportResourcesCo = useImportResourcesContext(),
|
|
2160
2128
|
state = _useImportResourcesCo.state;
|
|
@@ -2169,7 +2137,7 @@ const InfoBox = () => {
|
|
|
2169
2137
|
as: "h4",
|
|
2170
2138
|
intlMessage: messages.prerequisitesOfImportingData
|
|
2171
2139
|
}), jsx(Text.Body, {
|
|
2172
|
-
intlMessage: _objectSpread$
|
|
2140
|
+
intlMessage: _objectSpread$2(_objectSpread$2({}, messages.keysForEveryResource), {}, {
|
|
2173
2141
|
values: {
|
|
2174
2142
|
link: msg => jsx(Link, {
|
|
2175
2143
|
tone: "secondary",
|
|
@@ -2185,6 +2153,39 @@ const InfoBox = () => {
|
|
|
2185
2153
|
});
|
|
2186
2154
|
};
|
|
2187
2155
|
|
|
2156
|
+
function ownKeys$1(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; }
|
|
2157
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2158
|
+
const FileIcon = props => jsxs("svg", _objectSpread$1(_objectSpread$1({
|
|
2159
|
+
width: "32",
|
|
2160
|
+
height: "32",
|
|
2161
|
+
viewBox: "0 0 32 32",
|
|
2162
|
+
fill: "none",
|
|
2163
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2164
|
+
}, props), {}, {
|
|
2165
|
+
children: [jsx("mask", {
|
|
2166
|
+
id: "mask0_17_6643",
|
|
2167
|
+
style: {
|
|
2168
|
+
maskType: 'alpha'
|
|
2169
|
+
},
|
|
2170
|
+
maskUnits: "userSpaceOnUse",
|
|
2171
|
+
x: "0",
|
|
2172
|
+
y: "0",
|
|
2173
|
+
width: "32",
|
|
2174
|
+
height: "32",
|
|
2175
|
+
children: jsx("rect", {
|
|
2176
|
+
width: "32",
|
|
2177
|
+
height: "32",
|
|
2178
|
+
fill: "#D9D9D9"
|
|
2179
|
+
})
|
|
2180
|
+
}), jsx("g", {
|
|
2181
|
+
mask: "url(#mask0_17_6643)",
|
|
2182
|
+
children: jsx("path", {
|
|
2183
|
+
d: "M14.6667 25.3333H17.3333V19.7667L19.4667 21.9L21.3333 20L16 14.6667L10.6667 20L12.5667 21.8667L14.6667 19.7667V25.3333ZM8 29.3333C7.26667 29.3333 6.63889 29.0722 6.11667 28.55C5.59444 28.0278 5.33333 27.4 5.33333 26.6667V5.33332C5.33333 4.59999 5.59444 3.97221 6.11667 3.44999C6.63889 2.92777 7.26667 2.66666 8 2.66666H18.6667L26.6667 10.6667V26.6667C26.6667 27.4 26.4056 28.0278 25.8833 28.55C25.3611 29.0722 24.7333 29.3333 24 29.3333H8ZM17.3333 12H24L17.3333 5.33332V12Z",
|
|
2184
|
+
fill: "#B1ACFF"
|
|
2185
|
+
})
|
|
2186
|
+
})]
|
|
2187
|
+
}));
|
|
2188
|
+
|
|
2188
2189
|
const getChunkImport = locale => {
|
|
2189
2190
|
const intlLocale = mapLocaleToIntlLocale(locale);
|
|
2190
2191
|
switch (intlLocale) {
|
|
@@ -2279,4 +2280,4 @@ const ImportResourcesModal = props => {
|
|
|
2279
2280
|
};
|
|
2280
2281
|
ImportResourcesModal.displayName = 'ImportResourcesModal';
|
|
2281
2282
|
|
|
2282
|
-
export { EnabledDropArea as E, FileDropped as F, ImportResourcesModal as I,
|
|
2283
|
+
export { EnabledDropArea as E, FileDropped as F, ImportResourcesModal as I, FileIcon as a, useImportPermission as b, messages$7 as m, useImportResourcesContext as u };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend-extensions/import-resources-modal",
|
|
3
3
|
"description": "Shared import modal for importing resources",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.5",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -15,13 +15,12 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@babel/runtime": "7.
|
|
19
|
-
"@babel/runtime-corejs3": "7.
|
|
18
|
+
"@babel/runtime": "7.27.1",
|
|
19
|
+
"@babel/runtime-corejs3": "7.27.1",
|
|
20
20
|
"@commercetools/importapi-sdk": "5.20.0",
|
|
21
21
|
"@emotion/react": "11.14.0",
|
|
22
22
|
"@emotion/styled": "11.14.0",
|
|
23
|
-
"@formatjs/cli": "6.
|
|
24
|
-
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
23
|
+
"@formatjs/cli": "6.7.1",
|
|
25
24
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
26
25
|
"jest": "29.7.0",
|
|
27
26
|
"lodash": "4.17.21",
|
|
@@ -51,7 +50,7 @@
|
|
|
51
50
|
"@commercetools-uikit/design-system": "fec-155-react-19",
|
|
52
51
|
"@commercetools-uikit/icons": "fec-155-react-19",
|
|
53
52
|
"@commercetools-uikit/select-field": "fec-155-react-19",
|
|
54
|
-
"@preconstruct/cli": "2.8.
|
|
53
|
+
"@preconstruct/cli": "2.8.12",
|
|
55
54
|
"@types/jest": "29.5.14",
|
|
56
55
|
"@types/lodash.truncate": "^4.4.7",
|
|
57
56
|
"@types/testing-library__jest-dom": "^5.14.5",
|
|
@@ -63,20 +62,20 @@
|
|
|
63
62
|
"rimraf": "6.0.1"
|
|
64
63
|
},
|
|
65
64
|
"peerDependencies": {
|
|
66
|
-
"@commercetools-frontend/actions-global": "23.x || fec-156-react19",
|
|
67
|
-
"@commercetools-frontend/application-components": "23.x || fec-156-react19",
|
|
68
|
-
"@commercetools-frontend/application-shell": "23.x || fec-156-react19",
|
|
69
|
-
"@commercetools-frontend/application-shell-connectors": "23.x || fec-156-react19",
|
|
70
|
-
"@commercetools-frontend/constants": "23.x || fec-156-react19",
|
|
71
|
-
"@commercetools-frontend/fullstory": "2.x || 3.x || react-19-migration",
|
|
72
|
-
"@commercetools-frontend/i18n": "23.x || fec-156-react19",
|
|
73
|
-
"@commercetools-frontend/jest-preset-mc-app": "23.x || fec-156-react19",
|
|
74
|
-
"@commercetools-frontend/permissions": "23.x || fec-156-react19",
|
|
75
|
-
"@commercetools-frontend/sdk": "23.x || fec-156-react19",
|
|
76
|
-
"@commercetools-frontend/sentry": "23.x || fec-156-react19",
|
|
77
|
-
"@commercetools-frontend/ui-kit": "19.x || fec-155-react-19",
|
|
78
|
-
"@commercetools-uikit/design-system": "19.x || fec-155-react-19",
|
|
79
|
-
"@commercetools-uikit/icons": "19.x || fec-155-react-19",
|
|
65
|
+
"@commercetools-frontend/actions-global": "23.x || 24.x || fec-156-react19",
|
|
66
|
+
"@commercetools-frontend/application-components": "23.x || 24.x || fec-156-react19",
|
|
67
|
+
"@commercetools-frontend/application-shell": "23.x || 24.x || fec-156-react19",
|
|
68
|
+
"@commercetools-frontend/application-shell-connectors": "23.x || 24.x || fec-156-react19",
|
|
69
|
+
"@commercetools-frontend/constants": "23.x || 24.x || fec-156-react19",
|
|
70
|
+
"@commercetools-frontend/fullstory": "2.x || 3.x || 4.x || react-19-migration",
|
|
71
|
+
"@commercetools-frontend/i18n": "23.x || 24.x || fec-156-react19",
|
|
72
|
+
"@commercetools-frontend/jest-preset-mc-app": "23.x || 24.x || fec-156-react19",
|
|
73
|
+
"@commercetools-frontend/permissions": "23.x || 24.x || fec-156-react19",
|
|
74
|
+
"@commercetools-frontend/sdk": "23.x || 24.x || fec-156-react19",
|
|
75
|
+
"@commercetools-frontend/sentry": "23.x || 24.x || fec-156-react19",
|
|
76
|
+
"@commercetools-frontend/ui-kit": "19.x || 20.x || fec-155-react-19",
|
|
77
|
+
"@commercetools-uikit/design-system": "19.x || 20.x || fec-155-react-19",
|
|
78
|
+
"@commercetools-uikit/icons": "19.x || 20.x || fec-155-react-19",
|
|
80
79
|
"react": "17.x || 19.x",
|
|
81
80
|
"react-intl": "6.x || 7.x",
|
|
82
81
|
"react-redux": "7.x",
|
|
@@ -1,37 +0,0 @@
|
|
|
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 } from '@commercetools-frontend/ui-kit';
|
|
12
|
-
import { jsx } from '@emotion/react/jsx-runtime';
|
|
13
|
-
|
|
14
|
-
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; }
|
|
15
|
-
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; }
|
|
16
|
-
var LockedDropIcon = function LockedDropIcon(props) {
|
|
17
|
-
return jsx("svg", _objectSpread(_objectSpread({}, props), {}, {
|
|
18
|
-
children: jsx("path", {
|
|
19
|
-
d: "M84.167 49.925h-6.824V34.04C77.343 15.268 62.043 0 43.22 0 24.404 0 9.099 15.268 9.099 34.04v15.885H2.275A2.273 2.273 0 0 0 0 52.195v51.99c0 .79.414 1.524 1.087 1.937C13.84 113.892 28.407 118 43.221 118c14.813 0 29.381-4.107 42.138-11.878a2.284 2.284 0 0 0 1.083-1.938v-51.99a2.276 2.276 0 0 0-2.275-2.269ZM48.59 83.914v15.868c0 1.572-1.208 2.858-2.684 2.858h-5.37c-1.482 0-2.685-1.286-2.685-2.858V83.914c-3.2-1.983-5.37-5.617-5.37-9.846 0-6.308 4.812-11.428 10.74-11.428s10.74 5.12 10.74 11.428c0 4.217-2.17 7.863-5.37 9.846Zm14.526-34.519H21.953V33.788c0-11.064 9.235-20.067 20.582-20.067 11.343 0 20.581 9.003 20.581 20.067v15.607Z",
|
|
20
|
-
fill: "#999",
|
|
21
|
-
fillRule: "nonzero"
|
|
22
|
-
})
|
|
23
|
-
}));
|
|
24
|
-
};
|
|
25
|
-
LockedDropIcon.defaultProps = {
|
|
26
|
-
width: "87",
|
|
27
|
-
height: "118",
|
|
28
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
29
|
-
};
|
|
30
|
-
function DisabledDropArea() {
|
|
31
|
-
return jsx(Spacings.Stack, {
|
|
32
|
-
alignItems: "center",
|
|
33
|
-
children: jsx(LockedDropIcon, {})
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { DisabledDropArea as default };
|
|
@@ -1,50 +0,0 @@
|
|
|
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 jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
15
|
-
|
|
16
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
17
|
-
|
|
18
|
-
var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
|
|
19
|
-
var _Object$getOwnPropertySymbols__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertySymbols);
|
|
20
|
-
var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty);
|
|
21
|
-
var _Object$getOwnPropertyDescriptor__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptor);
|
|
22
|
-
var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachInstanceProperty);
|
|
23
|
-
var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
|
|
24
|
-
var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
|
|
25
|
-
var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
|
|
26
|
-
|
|
27
|
-
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; }
|
|
28
|
-
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; }
|
|
29
|
-
var LockedDropIcon = function LockedDropIcon(props) {
|
|
30
|
-
return jsxRuntime.jsx("svg", _objectSpread(_objectSpread({}, props), {}, {
|
|
31
|
-
children: jsxRuntime.jsx("path", {
|
|
32
|
-
d: "M84.167 49.925h-6.824V34.04C77.343 15.268 62.043 0 43.22 0 24.404 0 9.099 15.268 9.099 34.04v15.885H2.275A2.273 2.273 0 0 0 0 52.195v51.99c0 .79.414 1.524 1.087 1.937C13.84 113.892 28.407 118 43.221 118c14.813 0 29.381-4.107 42.138-11.878a2.284 2.284 0 0 0 1.083-1.938v-51.99a2.276 2.276 0 0 0-2.275-2.269ZM48.59 83.914v15.868c0 1.572-1.208 2.858-2.684 2.858h-5.37c-1.482 0-2.685-1.286-2.685-2.858V83.914c-3.2-1.983-5.37-5.617-5.37-9.846 0-6.308 4.812-11.428 10.74-11.428s10.74 5.12 10.74 11.428c0 4.217-2.17 7.863-5.37 9.846Zm14.526-34.519H21.953V33.788c0-11.064 9.235-20.067 20.582-20.067 11.343 0 20.581 9.003 20.581 20.067v15.607Z",
|
|
33
|
-
fill: "#999",
|
|
34
|
-
fillRule: "nonzero"
|
|
35
|
-
})
|
|
36
|
-
}));
|
|
37
|
-
};
|
|
38
|
-
LockedDropIcon.defaultProps = {
|
|
39
|
-
width: "87",
|
|
40
|
-
height: "118",
|
|
41
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
42
|
-
};
|
|
43
|
-
function DisabledDropArea() {
|
|
44
|
-
return jsxRuntime.jsx(uiKit.Spacings.Stack, {
|
|
45
|
-
alignItems: "center",
|
|
46
|
-
children: jsxRuntime.jsx(LockedDropIcon, {})
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
exports["default"] = DisabledDropArea;
|
|
@@ -1,50 +0,0 @@
|
|
|
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 jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
15
|
-
|
|
16
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
17
|
-
|
|
18
|
-
var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
|
|
19
|
-
var _Object$getOwnPropertySymbols__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertySymbols);
|
|
20
|
-
var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty);
|
|
21
|
-
var _Object$getOwnPropertyDescriptor__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptor);
|
|
22
|
-
var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachInstanceProperty);
|
|
23
|
-
var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
|
|
24
|
-
var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
|
|
25
|
-
var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
|
|
26
|
-
|
|
27
|
-
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; }
|
|
28
|
-
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; }
|
|
29
|
-
var LockedDropIcon = function LockedDropIcon(props) {
|
|
30
|
-
return jsxRuntime.jsx("svg", _objectSpread(_objectSpread({}, props), {}, {
|
|
31
|
-
children: jsxRuntime.jsx("path", {
|
|
32
|
-
d: "M84.167 49.925h-6.824V34.04C77.343 15.268 62.043 0 43.22 0 24.404 0 9.099 15.268 9.099 34.04v15.885H2.275A2.273 2.273 0 0 0 0 52.195v51.99c0 .79.414 1.524 1.087 1.937C13.84 113.892 28.407 118 43.221 118c14.813 0 29.381-4.107 42.138-11.878a2.284 2.284 0 0 0 1.083-1.938v-51.99a2.276 2.276 0 0 0-2.275-2.269ZM48.59 83.914v15.868c0 1.572-1.208 2.858-2.684 2.858h-5.37c-1.482 0-2.685-1.286-2.685-2.858V83.914c-3.2-1.983-5.37-5.617-5.37-9.846 0-6.308 4.812-11.428 10.74-11.428s10.74 5.12 10.74 11.428c0 4.217-2.17 7.863-5.37 9.846Zm14.526-34.519H21.953V33.788c0-11.064 9.235-20.067 20.582-20.067 11.343 0 20.581 9.003 20.581 20.067v15.607Z",
|
|
33
|
-
fill: "#999",
|
|
34
|
-
fillRule: "nonzero"
|
|
35
|
-
})
|
|
36
|
-
}));
|
|
37
|
-
};
|
|
38
|
-
LockedDropIcon.defaultProps = {
|
|
39
|
-
width: "87",
|
|
40
|
-
height: "118",
|
|
41
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
42
|
-
};
|
|
43
|
-
function DisabledDropArea() {
|
|
44
|
-
return jsxRuntime.jsx(uiKit.Spacings.Stack, {
|
|
45
|
-
alignItems: "center",
|
|
46
|
-
children: jsxRuntime.jsx(LockedDropIcon, {})
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
exports["default"] = DisabledDropArea;
|