@commercetools-frontend/experimental-components 8.1.1 → 8.1.2
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-experimental-components.cjs.dev.js +17 -46
- package/dist/commercetools-frontend-experimental-components.cjs.prod.js +17 -46
- package/dist/commercetools-frontend-experimental-components.esm.js +17 -45
- package/dist/declarations/src/index.d.ts +1 -2
- package/package.json +16 -16
- package/dist/declarations/src/components/formatted-date-time/formatted-date-time.d.ts +0 -17
|
@@ -41,20 +41,11 @@ var fastEquals = require('fast-equals');
|
|
|
41
41
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
42
42
|
var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/trim');
|
|
43
43
|
var designSystem = require('@commercetools-uikit/design-system');
|
|
44
|
-
var _Reflect$construct = require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
45
|
-
var _classCallCheck = require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
46
|
-
var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
|
|
47
|
-
var _possibleConstructorReturn = require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
48
|
-
var _getPrototypeOf = require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
49
|
-
var _inherits = require('@babel/runtime-corejs3/helpers/inherits');
|
|
50
|
-
var _sliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
51
|
-
var _someInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
52
|
-
var oneLine = require('common-tags/lib/oneLine');
|
|
53
|
-
var moment$1 = require('moment-timezone');
|
|
54
44
|
var formik = require('formik');
|
|
55
45
|
var isNil$1 = require('lodash/isNil');
|
|
56
46
|
var omitBy = require('lodash/omitBy');
|
|
57
47
|
var _Array$isArray = require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
48
|
+
var _sliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
58
49
|
var _lastIndexOfInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/last-index-of');
|
|
59
50
|
var _parseInt = require('@babel/runtime-corejs3/core-js-stable/parse-int');
|
|
60
51
|
var merge = require('lodash/merge');
|
|
@@ -80,8 +71,15 @@ var ReactDOM = require('react-dom');
|
|
|
80
71
|
var selectUtils = require('@commercetools-uikit/select-utils');
|
|
81
72
|
var utils = require('@commercetools-uikit/utils');
|
|
82
73
|
require('react-required-if');
|
|
74
|
+
var _someInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
83
75
|
var _Object$values = require('@babel/runtime-corejs3/core-js-stable/object/values');
|
|
84
76
|
var _sortInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/sort');
|
|
77
|
+
var _Reflect$construct = require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
78
|
+
var _classCallCheck = require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
79
|
+
var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
|
|
80
|
+
var _possibleConstructorReturn = require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
81
|
+
var _getPrototypeOf = require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
82
|
+
var _inherits = require('@babel/runtime-corejs3/helpers/inherits');
|
|
85
83
|
var classnames = require('classnames');
|
|
86
84
|
var commonTags = require('common-tags');
|
|
87
85
|
var has = require('lodash/has');
|
|
@@ -90,6 +88,7 @@ var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
|
|
|
90
88
|
var _Math$trunc = require('@babel/runtime-corejs3/core-js-stable/math/trunc');
|
|
91
89
|
var _Number$isNaN = require('@babel/runtime-corejs3/core-js-stable/number/is-nan');
|
|
92
90
|
var Cleave = require('cleave.js/react');
|
|
91
|
+
var oneLine = require('common-tags/lib/oneLine');
|
|
93
92
|
var isFinite = require('lodash/isFinite');
|
|
94
93
|
var isUndefined = require('lodash/isUndefined');
|
|
95
94
|
var camelCase = require('lodash/camelCase');
|
|
@@ -102,6 +101,7 @@ var originalOmitDeep = require('omit-deep');
|
|
|
102
101
|
var compact = require('lodash/compact');
|
|
103
102
|
var _Set = require('@babel/runtime-corejs3/core-js-stable/set');
|
|
104
103
|
var flatMap = require('lodash/flatMap');
|
|
104
|
+
var moment$1 = require('moment-timezone');
|
|
105
105
|
require('@babel/runtime-corejs3/helpers/get');
|
|
106
106
|
var _Date$now = require('@babel/runtime-corejs3/core-js-stable/date/now');
|
|
107
107
|
var _spliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/splice');
|
|
@@ -164,14 +164,10 @@ var _Promise__default = /*#__PURE__*/_interopDefault(_Promise);
|
|
|
164
164
|
var _setTimeout__default = /*#__PURE__*/_interopDefault(_setTimeout);
|
|
165
165
|
var _bindInstanceProperty__default = /*#__PURE__*/_interopDefault(_bindInstanceProperty);
|
|
166
166
|
var _trimInstanceProperty__default = /*#__PURE__*/_interopDefault(_trimInstanceProperty);
|
|
167
|
-
var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construct);
|
|
168
|
-
var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanceProperty);
|
|
169
|
-
var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceProperty);
|
|
170
|
-
var oneLine__default = /*#__PURE__*/_interopDefault(oneLine);
|
|
171
|
-
var moment__default$1 = /*#__PURE__*/_interopDefault(moment$1);
|
|
172
167
|
var isNil__default = /*#__PURE__*/_interopDefault(isNil$1);
|
|
173
168
|
var omitBy__default = /*#__PURE__*/_interopDefault(omitBy);
|
|
174
169
|
var _Array$isArray__default = /*#__PURE__*/_interopDefault(_Array$isArray);
|
|
170
|
+
var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanceProperty);
|
|
175
171
|
var _lastIndexOfInstanceProperty__default = /*#__PURE__*/_interopDefault(_lastIndexOfInstanceProperty);
|
|
176
172
|
var _parseInt__default = /*#__PURE__*/_interopDefault(_parseInt);
|
|
177
173
|
var merge__default = /*#__PURE__*/_interopDefault(merge);
|
|
@@ -184,8 +180,10 @@ var debounce__default = /*#__PURE__*/_interopDefault(debounce);
|
|
|
184
180
|
var keyBy__default = /*#__PURE__*/_interopDefault(keyBy);
|
|
185
181
|
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
186
182
|
var ReactDOM__default = /*#__PURE__*/_interopDefault(ReactDOM);
|
|
183
|
+
var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceProperty);
|
|
187
184
|
var _Object$values__default = /*#__PURE__*/_interopDefault(_Object$values);
|
|
188
185
|
var _sortInstanceProperty__default = /*#__PURE__*/_interopDefault(_sortInstanceProperty);
|
|
186
|
+
var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construct);
|
|
189
187
|
var classnames__default = /*#__PURE__*/_interopDefault(classnames);
|
|
190
188
|
var has__default = /*#__PURE__*/_interopDefault(has);
|
|
191
189
|
var warning__default = /*#__PURE__*/_interopDefault(warning);
|
|
@@ -193,6 +191,7 @@ var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInsta
|
|
|
193
191
|
var _Math$trunc__default = /*#__PURE__*/_interopDefault(_Math$trunc);
|
|
194
192
|
var _Number$isNaN__default = /*#__PURE__*/_interopDefault(_Number$isNaN);
|
|
195
193
|
var Cleave__default = /*#__PURE__*/_interopDefault(Cleave);
|
|
194
|
+
var oneLine__default = /*#__PURE__*/_interopDefault(oneLine);
|
|
196
195
|
var isFinite__default = /*#__PURE__*/_interopDefault(isFinite);
|
|
197
196
|
var isUndefined__default = /*#__PURE__*/_interopDefault(isUndefined);
|
|
198
197
|
var camelCase__default = /*#__PURE__*/_interopDefault(camelCase);
|
|
@@ -205,6 +204,7 @@ var originalOmitDeep__default = /*#__PURE__*/_interopDefault(originalOmitDeep);
|
|
|
205
204
|
var compact__default = /*#__PURE__*/_interopDefault(compact);
|
|
206
205
|
var _Set__default = /*#__PURE__*/_interopDefault(_Set);
|
|
207
206
|
var flatMap__default = /*#__PURE__*/_interopDefault(flatMap);
|
|
207
|
+
var moment__default$1 = /*#__PURE__*/_interopDefault(moment$1);
|
|
208
208
|
var _Date$now__default = /*#__PURE__*/_interopDefault(_Date$now);
|
|
209
209
|
var _spliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_spliceInstanceProperty);
|
|
210
210
|
var memoize__default = /*#__PURE__*/_interopDefault(memoize);
|
|
@@ -446,32 +446,6 @@ const ChannelPickerInput = _ref => {
|
|
|
446
446
|
};
|
|
447
447
|
var ChannelPickerInput$1 = ChannelPickerInput;
|
|
448
448
|
|
|
449
|
-
function _callSuper$7(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$7() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
450
|
-
function _isNativeReflectConstruct$7() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$7 = function () { return !!t; })(); }
|
|
451
|
-
let FormattedDateTime = /*#__PURE__*/function (_PureComponent) {
|
|
452
|
-
function FormattedDateTime() {
|
|
453
|
-
_classCallCheck(this, FormattedDateTime);
|
|
454
|
-
return _callSuper$7(this, FormattedDateTime, arguments);
|
|
455
|
-
}
|
|
456
|
-
_inherits(FormattedDateTime, _PureComponent);
|
|
457
|
-
return _createClass(FormattedDateTime, [{
|
|
458
|
-
key: "render",
|
|
459
|
-
value: function render() {
|
|
460
|
-
return jsxRuntime.jsx(applicationShellConnectors.ApplicationContext, {
|
|
461
|
-
render: _ref => {
|
|
462
|
-
let user = _ref.user;
|
|
463
|
-
return formatDateTime$1(this.props.type, this.props.value, {
|
|
464
|
-
timeZone: this?.props?.timeZone || user?.timeZone,
|
|
465
|
-
locale: this.props.intl.locale
|
|
466
|
-
});
|
|
467
|
-
}
|
|
468
|
-
});
|
|
469
|
-
}
|
|
470
|
-
}]);
|
|
471
|
-
}(React.PureComponent);
|
|
472
|
-
FormattedDateTime.displayName = 'FormattedDateTime';
|
|
473
|
-
var FormattedDateTime$1 = reactIntl.injectIntl(FormattedDateTime);
|
|
474
|
-
|
|
475
449
|
var messages$P = reactIntl.defineMessages({
|
|
476
450
|
noProductTypesFound: {
|
|
477
451
|
id: 'Products.ProductTypePickerInput.noProductTypesFound',
|
|
@@ -2125,9 +2099,7 @@ const useLocalizedKeyFallback = () => {
|
|
|
2125
2099
|
};
|
|
2126
2100
|
var useLocalizedKeyFallback$1 = useLocalizedKeyFallback;
|
|
2127
2101
|
|
|
2128
|
-
const useDebouncedPromiseCallback = (promiseCallback, wait) =>
|
|
2129
|
-
// eslint-disable-next-line testing-library/await-async-utils
|
|
2130
|
-
React.useCallback(debounce__default["default"](promiseCallback, wait), [promiseCallback]);
|
|
2102
|
+
const useDebouncedPromiseCallback = (promiseCallback, wait) => React.useCallback(debounce__default["default"](promiseCallback, wait), [promiseCallback]);
|
|
2131
2103
|
var useDebouncedPromiseCallback$1 = useDebouncedPromiseCallback;
|
|
2132
2104
|
|
|
2133
2105
|
function ownKeys$1b(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; }
|
|
@@ -14031,7 +14003,7 @@ const getAttributeValueByType = _ref10 => {
|
|
|
14031
14003
|
case 'time':
|
|
14032
14004
|
case 'datetime':
|
|
14033
14005
|
case 'date':
|
|
14034
|
-
return jsxRuntime.jsx(FormattedDateTime
|
|
14006
|
+
return jsxRuntime.jsx(merchantCenterSharedUi.FormattedDateTime, {
|
|
14035
14007
|
type: type,
|
|
14036
14008
|
value: value
|
|
14037
14009
|
});
|
|
@@ -14249,7 +14221,6 @@ exports.DefaultPageSizes = DefaultPageSizes;
|
|
|
14249
14221
|
exports.EMAIL_REGEX = EMAIL_REGEX;
|
|
14250
14222
|
exports.FILTER_TYPES = FILTER_TYPES;
|
|
14251
14223
|
exports.FileInput = FileInput$1;
|
|
14252
|
-
exports.FormattedDateTime = FormattedDateTime$1;
|
|
14253
14224
|
exports.FormattedLocalizedString = FormattedLocalizedString;
|
|
14254
14225
|
exports.LOWER_STORES_LIMIT = LOWER_STORES_LIMIT;
|
|
14255
14226
|
exports.LabelRange = LabelRange$1;
|
|
@@ -41,20 +41,11 @@ var fastEquals = require('fast-equals');
|
|
|
41
41
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
42
42
|
var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/trim');
|
|
43
43
|
var designSystem = require('@commercetools-uikit/design-system');
|
|
44
|
-
var _Reflect$construct = require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
45
|
-
var _classCallCheck = require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
46
|
-
var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
|
|
47
|
-
var _possibleConstructorReturn = require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
48
|
-
var _getPrototypeOf = require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
49
|
-
var _inherits = require('@babel/runtime-corejs3/helpers/inherits');
|
|
50
|
-
var _sliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
51
|
-
var _someInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
52
|
-
var oneLine = require('common-tags/lib/oneLine');
|
|
53
|
-
var moment$1 = require('moment-timezone');
|
|
54
44
|
var formik = require('formik');
|
|
55
45
|
var isNil$1 = require('lodash/isNil');
|
|
56
46
|
var omitBy = require('lodash/omitBy');
|
|
57
47
|
var _Array$isArray = require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
48
|
+
var _sliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
58
49
|
var _lastIndexOfInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/last-index-of');
|
|
59
50
|
var _parseInt = require('@babel/runtime-corejs3/core-js-stable/parse-int');
|
|
60
51
|
var merge = require('lodash/merge');
|
|
@@ -80,8 +71,15 @@ var ReactDOM = require('react-dom');
|
|
|
80
71
|
var selectUtils = require('@commercetools-uikit/select-utils');
|
|
81
72
|
var utils = require('@commercetools-uikit/utils');
|
|
82
73
|
require('react-required-if');
|
|
74
|
+
var _someInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
83
75
|
var _Object$values = require('@babel/runtime-corejs3/core-js-stable/object/values');
|
|
84
76
|
var _sortInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/sort');
|
|
77
|
+
var _Reflect$construct = require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
78
|
+
var _classCallCheck = require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
79
|
+
var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
|
|
80
|
+
var _possibleConstructorReturn = require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
81
|
+
var _getPrototypeOf = require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
82
|
+
var _inherits = require('@babel/runtime-corejs3/helpers/inherits');
|
|
85
83
|
var classnames = require('classnames');
|
|
86
84
|
var commonTags = require('common-tags');
|
|
87
85
|
var has = require('lodash/has');
|
|
@@ -90,6 +88,7 @@ var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
|
|
|
90
88
|
var _Math$trunc = require('@babel/runtime-corejs3/core-js-stable/math/trunc');
|
|
91
89
|
var _Number$isNaN = require('@babel/runtime-corejs3/core-js-stable/number/is-nan');
|
|
92
90
|
var Cleave = require('cleave.js/react');
|
|
91
|
+
var oneLine = require('common-tags/lib/oneLine');
|
|
93
92
|
var isFinite = require('lodash/isFinite');
|
|
94
93
|
var isUndefined = require('lodash/isUndefined');
|
|
95
94
|
var camelCase = require('lodash/camelCase');
|
|
@@ -102,6 +101,7 @@ var originalOmitDeep = require('omit-deep');
|
|
|
102
101
|
var compact = require('lodash/compact');
|
|
103
102
|
var _Set = require('@babel/runtime-corejs3/core-js-stable/set');
|
|
104
103
|
var flatMap = require('lodash/flatMap');
|
|
104
|
+
var moment$1 = require('moment-timezone');
|
|
105
105
|
require('@babel/runtime-corejs3/helpers/get');
|
|
106
106
|
var _Date$now = require('@babel/runtime-corejs3/core-js-stable/date/now');
|
|
107
107
|
var _spliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/splice');
|
|
@@ -164,14 +164,10 @@ var _Promise__default = /*#__PURE__*/_interopDefault(_Promise);
|
|
|
164
164
|
var _setTimeout__default = /*#__PURE__*/_interopDefault(_setTimeout);
|
|
165
165
|
var _bindInstanceProperty__default = /*#__PURE__*/_interopDefault(_bindInstanceProperty);
|
|
166
166
|
var _trimInstanceProperty__default = /*#__PURE__*/_interopDefault(_trimInstanceProperty);
|
|
167
|
-
var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construct);
|
|
168
|
-
var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanceProperty);
|
|
169
|
-
var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceProperty);
|
|
170
|
-
var oneLine__default = /*#__PURE__*/_interopDefault(oneLine);
|
|
171
|
-
var moment__default$1 = /*#__PURE__*/_interopDefault(moment$1);
|
|
172
167
|
var isNil__default = /*#__PURE__*/_interopDefault(isNil$1);
|
|
173
168
|
var omitBy__default = /*#__PURE__*/_interopDefault(omitBy);
|
|
174
169
|
var _Array$isArray__default = /*#__PURE__*/_interopDefault(_Array$isArray);
|
|
170
|
+
var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanceProperty);
|
|
175
171
|
var _lastIndexOfInstanceProperty__default = /*#__PURE__*/_interopDefault(_lastIndexOfInstanceProperty);
|
|
176
172
|
var _parseInt__default = /*#__PURE__*/_interopDefault(_parseInt);
|
|
177
173
|
var merge__default = /*#__PURE__*/_interopDefault(merge);
|
|
@@ -184,14 +180,17 @@ var debounce__default = /*#__PURE__*/_interopDefault(debounce);
|
|
|
184
180
|
var keyBy__default = /*#__PURE__*/_interopDefault(keyBy);
|
|
185
181
|
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
186
182
|
var ReactDOM__default = /*#__PURE__*/_interopDefault(ReactDOM);
|
|
183
|
+
var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceProperty);
|
|
187
184
|
var _Object$values__default = /*#__PURE__*/_interopDefault(_Object$values);
|
|
188
185
|
var _sortInstanceProperty__default = /*#__PURE__*/_interopDefault(_sortInstanceProperty);
|
|
186
|
+
var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construct);
|
|
189
187
|
var classnames__default = /*#__PURE__*/_interopDefault(classnames);
|
|
190
188
|
var has__default = /*#__PURE__*/_interopDefault(has);
|
|
191
189
|
var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
|
|
192
190
|
var _Math$trunc__default = /*#__PURE__*/_interopDefault(_Math$trunc);
|
|
193
191
|
var _Number$isNaN__default = /*#__PURE__*/_interopDefault(_Number$isNaN);
|
|
194
192
|
var Cleave__default = /*#__PURE__*/_interopDefault(Cleave);
|
|
193
|
+
var oneLine__default = /*#__PURE__*/_interopDefault(oneLine);
|
|
195
194
|
var isFinite__default = /*#__PURE__*/_interopDefault(isFinite);
|
|
196
195
|
var isUndefined__default = /*#__PURE__*/_interopDefault(isUndefined);
|
|
197
196
|
var camelCase__default = /*#__PURE__*/_interopDefault(camelCase);
|
|
@@ -204,6 +203,7 @@ var originalOmitDeep__default = /*#__PURE__*/_interopDefault(originalOmitDeep);
|
|
|
204
203
|
var compact__default = /*#__PURE__*/_interopDefault(compact);
|
|
205
204
|
var _Set__default = /*#__PURE__*/_interopDefault(_Set);
|
|
206
205
|
var flatMap__default = /*#__PURE__*/_interopDefault(flatMap);
|
|
206
|
+
var moment__default$1 = /*#__PURE__*/_interopDefault(moment$1);
|
|
207
207
|
var _Date$now__default = /*#__PURE__*/_interopDefault(_Date$now);
|
|
208
208
|
var _spliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_spliceInstanceProperty);
|
|
209
209
|
var memoize__default = /*#__PURE__*/_interopDefault(memoize);
|
|
@@ -445,32 +445,6 @@ const ChannelPickerInput = _ref => {
|
|
|
445
445
|
};
|
|
446
446
|
var ChannelPickerInput$1 = ChannelPickerInput;
|
|
447
447
|
|
|
448
|
-
function _callSuper$7(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$7() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
449
|
-
function _isNativeReflectConstruct$7() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$7 = function () { return !!t; })(); }
|
|
450
|
-
let FormattedDateTime = /*#__PURE__*/function (_PureComponent) {
|
|
451
|
-
function FormattedDateTime() {
|
|
452
|
-
_classCallCheck(this, FormattedDateTime);
|
|
453
|
-
return _callSuper$7(this, FormattedDateTime, arguments);
|
|
454
|
-
}
|
|
455
|
-
_inherits(FormattedDateTime, _PureComponent);
|
|
456
|
-
return _createClass(FormattedDateTime, [{
|
|
457
|
-
key: "render",
|
|
458
|
-
value: function render() {
|
|
459
|
-
return jsxRuntime.jsx(applicationShellConnectors.ApplicationContext, {
|
|
460
|
-
render: _ref => {
|
|
461
|
-
let user = _ref.user;
|
|
462
|
-
return formatDateTime$1(this.props.type, this.props.value, {
|
|
463
|
-
timeZone: this?.props?.timeZone || user?.timeZone,
|
|
464
|
-
locale: this.props.intl.locale
|
|
465
|
-
});
|
|
466
|
-
}
|
|
467
|
-
});
|
|
468
|
-
}
|
|
469
|
-
}]);
|
|
470
|
-
}(React.PureComponent);
|
|
471
|
-
FormattedDateTime.displayName = 'FormattedDateTime';
|
|
472
|
-
var FormattedDateTime$1 = reactIntl.injectIntl(FormattedDateTime);
|
|
473
|
-
|
|
474
448
|
var messages$P = reactIntl.defineMessages({
|
|
475
449
|
noProductTypesFound: {
|
|
476
450
|
id: 'Products.ProductTypePickerInput.noProductTypesFound',
|
|
@@ -2124,9 +2098,7 @@ const useLocalizedKeyFallback = () => {
|
|
|
2124
2098
|
};
|
|
2125
2099
|
var useLocalizedKeyFallback$1 = useLocalizedKeyFallback;
|
|
2126
2100
|
|
|
2127
|
-
const useDebouncedPromiseCallback = (promiseCallback, wait) =>
|
|
2128
|
-
// eslint-disable-next-line testing-library/await-async-utils
|
|
2129
|
-
React.useCallback(debounce__default["default"](promiseCallback, wait), [promiseCallback]);
|
|
2101
|
+
const useDebouncedPromiseCallback = (promiseCallback, wait) => React.useCallback(debounce__default["default"](promiseCallback, wait), [promiseCallback]);
|
|
2130
2102
|
var useDebouncedPromiseCallback$1 = useDebouncedPromiseCallback;
|
|
2131
2103
|
|
|
2132
2104
|
function ownKeys$1b(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; }
|
|
@@ -13952,7 +13924,7 @@ const getAttributeValueByType = _ref10 => {
|
|
|
13952
13924
|
case 'time':
|
|
13953
13925
|
case 'datetime':
|
|
13954
13926
|
case 'date':
|
|
13955
|
-
return jsxRuntime.jsx(FormattedDateTime
|
|
13927
|
+
return jsxRuntime.jsx(merchantCenterSharedUi.FormattedDateTime, {
|
|
13956
13928
|
type: type,
|
|
13957
13929
|
value: value
|
|
13958
13930
|
});
|
|
@@ -14170,7 +14142,6 @@ exports.DefaultPageSizes = DefaultPageSizes;
|
|
|
14170
14142
|
exports.EMAIL_REGEX = EMAIL_REGEX;
|
|
14171
14143
|
exports.FILTER_TYPES = FILTER_TYPES;
|
|
14172
14144
|
exports.FileInput = FileInput$1;
|
|
14173
|
-
exports.FormattedDateTime = FormattedDateTime$1;
|
|
14174
14145
|
exports.FormattedLocalizedString = FormattedLocalizedString;
|
|
14175
14146
|
exports.LOWER_STORES_LIMIT = LOWER_STORES_LIMIT;
|
|
14176
14147
|
exports.LabelRange = LabelRange$1;
|
|
@@ -22,11 +22,11 @@ import pick from 'lodash/pick';
|
|
|
22
22
|
import { formatLocalizedString, transformLocalizedFieldToLocalizedString, applyTransformedLocalizedFields, transformLocalizedStringToLocalizedField } from '@commercetools-frontend/l10n';
|
|
23
23
|
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
24
24
|
import * as React from 'react';
|
|
25
|
-
import React__default, { useMemo, useState, useCallback, useEffect,
|
|
25
|
+
import React__default, { useMemo, useState, useCallback, useEffect, useRef, createContext, memo, useContext, PureComponent, forwardRef, Component } from 'react';
|
|
26
26
|
import { useApolloClient, useQuery as useQuery$1 } from '@apollo/client';
|
|
27
27
|
import { useQuery, useApolloClient as useApolloClient$1 } from '@apollo/client/react';
|
|
28
|
-
import { defineMessages, useIntl,
|
|
29
|
-
import { useApplicationContext,
|
|
28
|
+
import { defineMessages, useIntl, FormattedMessage, injectIntl } from 'react-intl';
|
|
29
|
+
import { useApplicationContext, withApplicationContext } from '@commercetools-frontend/application-shell-connectors';
|
|
30
30
|
import { Constraints, Spacings, AsyncSelectInput, Text, SearchIcon, Tooltip, usePaginationState, useDataTableSortingState, useToggleState, Link, MoneyInput, designTokens, AccessibleHidden, SearchSelectInput, LoadingSpinner, AsyncSelectField, SelectField, SelectInput, FlatButton, AngleUpIcon, AngleDownIcon, IconButton, BinLinearIcon, PlusBoldIcon, DateInput, DateTimeInput, LocalizedTextInput, LocalizedMultilineTextInput, SecondaryButton, RevertIcon, Grid, customProperties, SubdirectoryArrowIcon, Tag, EditIcon, FieldLabel, WarningIcon, NumberInput, TextInput, MultilineTextInput, TimeInput, SwitcherIcon, ErrorIcon, DragIcon, Card, SearchSelectField, ContentNotification, FieldErrors, CollapsiblePanel, ListIcon, CheckboxInput, SearchTextInput } from '@commercetools-frontend/ui-kit';
|
|
31
31
|
import _Map from '@babel/runtime-corejs3/core-js-stable/map';
|
|
32
32
|
import _everyInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/every';
|
|
@@ -38,27 +38,18 @@ import { deepEqual } from 'fast-equals';
|
|
|
38
38
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
39
39
|
import _trimInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/trim';
|
|
40
40
|
import { designTokens as designTokens$1 } from '@commercetools-uikit/design-system';
|
|
41
|
-
import _Reflect$construct from '@babel/runtime-corejs3/core-js-stable/reflect/construct';
|
|
42
|
-
import _classCallCheck from '@babel/runtime-corejs3/helpers/esm/classCallCheck';
|
|
43
|
-
import _createClass from '@babel/runtime-corejs3/helpers/esm/createClass';
|
|
44
|
-
import _possibleConstructorReturn from '@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn';
|
|
45
|
-
import _getPrototypeOf from '@babel/runtime-corejs3/helpers/esm/getPrototypeOf';
|
|
46
|
-
import _inherits from '@babel/runtime-corejs3/helpers/esm/inherits';
|
|
47
|
-
import _sliceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
48
|
-
import _someInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/some';
|
|
49
|
-
import oneLine from 'common-tags/lib/oneLine';
|
|
50
|
-
import moment$1 from 'moment-timezone';
|
|
51
41
|
import { useFormikContext, Field, Formik, getIn, FastField } from 'formik';
|
|
52
42
|
import isNil$1 from 'lodash/isNil';
|
|
53
43
|
import omitBy from 'lodash/omitBy';
|
|
54
44
|
import _Array$isArray from '@babel/runtime-corejs3/core-js-stable/array/is-array';
|
|
45
|
+
import _sliceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
55
46
|
import _lastIndexOfInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/last-index-of';
|
|
56
47
|
import _parseInt from '@babel/runtime-corejs3/core-js-stable/parse-int';
|
|
57
48
|
import merge from 'lodash/merge';
|
|
58
49
|
import set from 'lodash/set';
|
|
59
50
|
import times from 'lodash/times';
|
|
60
51
|
import { v4 } from 'uuid';
|
|
61
|
-
import { CenteredLoadingSpinner, Divider } from '@commercetools/merchant-center-shared-ui';
|
|
52
|
+
import { CenteredLoadingSpinner, Divider, FormattedDateTime } from '@commercetools/merchant-center-shared-ui';
|
|
62
53
|
import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
63
54
|
import { lruMemoize } from 'reselect';
|
|
64
55
|
import _endsWithInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/ends-with';
|
|
@@ -77,8 +68,15 @@ import ReactDOM from 'react-dom';
|
|
|
77
68
|
import { CustomSelectInputOption } from '@commercetools-uikit/select-utils';
|
|
78
69
|
import { filterDataAttributes as filterDataAttributes$1, filterAriaAttributes } from '@commercetools-uikit/utils';
|
|
79
70
|
import 'react-required-if';
|
|
71
|
+
import _someInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/some';
|
|
80
72
|
import _Object$values from '@babel/runtime-corejs3/core-js-stable/object/values';
|
|
81
73
|
import _sortInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/sort';
|
|
74
|
+
import _Reflect$construct from '@babel/runtime-corejs3/core-js-stable/reflect/construct';
|
|
75
|
+
import _classCallCheck from '@babel/runtime-corejs3/helpers/esm/classCallCheck';
|
|
76
|
+
import _createClass from '@babel/runtime-corejs3/helpers/esm/createClass';
|
|
77
|
+
import _possibleConstructorReturn from '@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn';
|
|
78
|
+
import _getPrototypeOf from '@babel/runtime-corejs3/helpers/esm/getPrototypeOf';
|
|
79
|
+
import _inherits from '@babel/runtime-corejs3/helpers/esm/inherits';
|
|
82
80
|
import classnames from 'classnames';
|
|
83
81
|
import { oneLineTrim } from 'common-tags';
|
|
84
82
|
import has from 'lodash/has';
|
|
@@ -87,6 +85,7 @@ import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/insta
|
|
|
87
85
|
import _Math$trunc from '@babel/runtime-corejs3/core-js-stable/math/trunc';
|
|
88
86
|
import _Number$isNaN from '@babel/runtime-corejs3/core-js-stable/number/is-nan';
|
|
89
87
|
import Cleave from 'cleave.js/react';
|
|
88
|
+
import oneLine from 'common-tags/lib/oneLine';
|
|
90
89
|
import isFinite from 'lodash/isFinite';
|
|
91
90
|
import isUndefined from 'lodash/isUndefined';
|
|
92
91
|
import camelCase from 'lodash/camelCase';
|
|
@@ -99,6 +98,7 @@ import originalOmitDeep from 'omit-deep';
|
|
|
99
98
|
import compact from 'lodash/compact';
|
|
100
99
|
import _Set from '@babel/runtime-corejs3/core-js-stable/set';
|
|
101
100
|
import flatMap from 'lodash/flatMap';
|
|
101
|
+
import moment$1 from 'moment-timezone';
|
|
102
102
|
import '@babel/runtime-corejs3/helpers/get';
|
|
103
103
|
import _Date$now from '@babel/runtime-corejs3/core-js-stable/date/now';
|
|
104
104
|
import _spliceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/splice';
|
|
@@ -345,32 +345,6 @@ const ChannelPickerInput = _ref => {
|
|
|
345
345
|
};
|
|
346
346
|
var ChannelPickerInput$1 = ChannelPickerInput;
|
|
347
347
|
|
|
348
|
-
function _callSuper$7(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$7() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
349
|
-
function _isNativeReflectConstruct$7() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$7 = function () { return !!t; })(); }
|
|
350
|
-
let FormattedDateTime = /*#__PURE__*/function (_PureComponent) {
|
|
351
|
-
function FormattedDateTime() {
|
|
352
|
-
_classCallCheck(this, FormattedDateTime);
|
|
353
|
-
return _callSuper$7(this, FormattedDateTime, arguments);
|
|
354
|
-
}
|
|
355
|
-
_inherits(FormattedDateTime, _PureComponent);
|
|
356
|
-
return _createClass(FormattedDateTime, [{
|
|
357
|
-
key: "render",
|
|
358
|
-
value: function render() {
|
|
359
|
-
return jsx(ApplicationContext, {
|
|
360
|
-
render: _ref => {
|
|
361
|
-
let user = _ref.user;
|
|
362
|
-
return formatDateTime$1(this.props.type, this.props.value, {
|
|
363
|
-
timeZone: this?.props?.timeZone || user?.timeZone,
|
|
364
|
-
locale: this.props.intl.locale
|
|
365
|
-
});
|
|
366
|
-
}
|
|
367
|
-
});
|
|
368
|
-
}
|
|
369
|
-
}]);
|
|
370
|
-
}(PureComponent);
|
|
371
|
-
FormattedDateTime.displayName = 'FormattedDateTime';
|
|
372
|
-
var FormattedDateTime$1 = injectIntl(FormattedDateTime);
|
|
373
|
-
|
|
374
348
|
var messages$P = defineMessages({
|
|
375
349
|
noProductTypesFound: {
|
|
376
350
|
id: 'Products.ProductTypePickerInput.noProductTypesFound',
|
|
@@ -2024,9 +1998,7 @@ const useLocalizedKeyFallback = () => {
|
|
|
2024
1998
|
};
|
|
2025
1999
|
var useLocalizedKeyFallback$1 = useLocalizedKeyFallback;
|
|
2026
2000
|
|
|
2027
|
-
const useDebouncedPromiseCallback = (promiseCallback, wait) =>
|
|
2028
|
-
// eslint-disable-next-line testing-library/await-async-utils
|
|
2029
|
-
useCallback(debounce(promiseCallback, wait), [promiseCallback]);
|
|
2001
|
+
const useDebouncedPromiseCallback = (promiseCallback, wait) => useCallback(debounce(promiseCallback, wait), [promiseCallback]);
|
|
2030
2002
|
var useDebouncedPromiseCallback$1 = useDebouncedPromiseCallback;
|
|
2031
2003
|
|
|
2032
2004
|
function ownKeys$1b(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; }
|
|
@@ -13930,7 +13902,7 @@ const getAttributeValueByType = _ref10 => {
|
|
|
13930
13902
|
case 'time':
|
|
13931
13903
|
case 'datetime':
|
|
13932
13904
|
case 'date':
|
|
13933
|
-
return jsx(FormattedDateTime
|
|
13905
|
+
return jsx(FormattedDateTime, {
|
|
13934
13906
|
type: type,
|
|
13935
13907
|
value: value
|
|
13936
13908
|
});
|
|
@@ -14129,4 +14101,4 @@ function withPendingRequests() {
|
|
|
14129
14101
|
|
|
14130
14102
|
var CategorySearchPickerOptionFragment = { kind: "Document", definitions: [{ kind: "FragmentDefinition", name: { kind: "Name", value: "CategorySearchPickerOptionFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CategorySearch" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "externalId" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "slugAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "parent" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "ancestors" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 685, source: { body: "query SearchCategoryReference($locale: Locale!, $text: String!) {\n categories: categoryAutocomplete(locale: $locale, text: $text) {\n results {\n ...CategorySearchPickerOptionFragment\n }\n }\n}\n\nquery FetchCategoriesByIds($where: String!) {\n categories(where: $where) {\n results {\n id\n nameAllLocales {\n locale\n value\n }\n }\n }\n}\n\nfragment CategorySearchPickerOptionFragment on CategorySearch {\n id\n externalId\n nameAllLocales {\n locale\n value\n }\n slugAllLocales {\n locale\n value\n }\n parent {\n nameAllLocales {\n locale\n value\n }\n }\n ancestors {\n nameAllLocales {\n locale\n value\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
14131
14103
|
|
|
14132
|
-
export { booleanField as BooleanField, CUSTOM_FIELD_TYPES, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, ChannelPickerInput$1 as ChannelPickerInput, CountriesPicker, customFieldDefinitionsConnector as CustomFieldDefinitionsConnector, CustomFieldInput$1 as CustomFieldInput, CustomFieldTooltip$1 as CustomFieldTooltip, CustomFieldTypeDefinitionsConnector$1 as CustomFieldTypeDefinitionsConnector, CustomFields$1 as CustomFields, CustomFieldsErrorTextNotification$1 as CustomFieldsErrorTextNotification, CustomFieldsFormField$1 as CustomFieldsFormField, CustomerGroupPickerInput$1 as CustomerGroupPickerInput, DefaultPageSizes, EMAIL_REGEX, FILTER_TYPES, FileInput$1 as FileInput,
|
|
14104
|
+
export { booleanField as BooleanField, CUSTOM_FIELD_TYPES, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, ChannelPickerInput$1 as ChannelPickerInput, CountriesPicker, customFieldDefinitionsConnector as CustomFieldDefinitionsConnector, CustomFieldInput$1 as CustomFieldInput, CustomFieldTooltip$1 as CustomFieldTooltip, CustomFieldTypeDefinitionsConnector$1 as CustomFieldTypeDefinitionsConnector, CustomFields$1 as CustomFields, CustomFieldsErrorTextNotification$1 as CustomFieldsErrorTextNotification, CustomFieldsFormField$1 as CustomFieldsFormField, CustomerGroupPickerInput$1 as CustomerGroupPickerInput, DefaultPageSizes, EMAIL_REGEX, FILTER_TYPES, FileInput$1 as FileInput, FormattedLocalizedString, LOWER_STORES_LIMIT, LabelRange$1 as LabelRange, MC_RESOURCES_WITH_KEYS, MissingValueField$1 as MissingValueField, MultiValueSearchInput$1 as MultiValueSearchInput, numericFormatInput as NumericFormatInput, Option$2 as Option, PRECISION_TYPES, pimIndexerProvider as PimIndexerProvider, PlatformLimitsFetcherQuery, ProductAttributeInput, ProductAttributes, ProductPickerInput$1 as ProductPickerInput, ProductSelectionsPicker as ProductSelectionPicker, QUERY_LIMIT, QUERY_MAX_LIMIT, RESOURCES_WITH_PLATFORM_LIMITS, RecurrentIntervalPicker$1 as RecurrentIntervalPicker, RequestCache$1 as RequestCache, StoreSelectField$1 as StoreSelectField, StoreSelectInput$1 as StoreSelectInput, ThrottledField$1 as ThrottledField, UPPER_STORES_LIMIT, VALIDATOR_INTEGER, VALIDATOR_NUMERIC, VALIDATOR_REQUIRED, WithPimIndexer$1 as WithPimIndexer, allowedProperties, and, attributeToCustomField, attributesMapToNameValuePairs, base64ToString, messages$c as booleanMessages, buildSearchQuery$1 as buildSearchQuery, businessRoleConstants$1 as businessRoleConstants, messages$7 as businessRoleMessages, businessRoleKeys$1 as businessRoles, capitalizeFirst, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, createGraphQlUpdateActions, createNextSortDefinition$1 as createNextSortDefinition, createPlatformLimitsQueryVariables, createReducer, createResourceReducer, customFields as customFieldsTransformer, dateTransformer$1 as dateTransformer, exact, exists, extractErrorFromGraphQlResponse, filterCustomTypeUpdateActionValues, filterDataAttributes, filterEmptyValues, formatCustomField, formatCustomerAddress, formatCustomerName, formatDateRangeValue, formatDateTime$1 as formatDateTime, formatDiscount, formatMoney$2 as formatMoney, formatMoneyRangeValue, formatMoneyValue, formatPercentage, formatAttribute as formatProductAttribute, getAncestors, getAttributeValueByType, getAttributeValueType, getBottomOption, getBulkNotification, getCategoryLevel, getCountsFromBulkSummary, getDiscountValue, getDisplayName$1 as getDisplayName, getFractionDigit, getFractionedAmount, getIndexesOfInvalidValues, getMinimumPricesByCurrencyCode, getNetUnitPrice, getPathName, getPrefixSearchBounds$1 as getPrefixSearchBounds, getPriceChannelName, getProductAttributes, getProductLevelAttributes, getReferenceTypeId, getSelectedPrice, getStampToneByPublishState, getTimeZoneId, getTimeZoneLabel, getTypeNameOfType, graphqlCategoryLevelTransformer, dateTransformer as graphqlDateTransformer, missingLocaleTransformer as graphqlMissingLocaleTransformer, missingTransformer as graphqlMissingTransformer, numberTransformer as graphqlNumberTransformer, graphqlQueryBuilder, referenceTransformer as graphqlReferenceTransformer, textTransformer as graphqlTextTransformer, hasInvalidInputError$1 as hasInvalidInputError, hasSemanticError$1 as hasSemanticError, injectCustomerGroupsPlatformLimits$1 as injectCustomerGroupsPlatformLimits, injectCustomersPlatformLimits$1 as injectCustomersPlatformLimits, injectDataTablePaginationState$1 as injectDataTablePaginationState, injectModalState$3 as injectModalState, injectNotifications$1 as injectNotifications, injectPimIndexer, injectShippingMethodsPlatformLimits$1 as injectShippingMethodsPlatformLimits, injectStorage$1 as injectStorage, injectTaxCategoriesPlatformLimits$1 as injectTaxCategoriesPlatformLimits, injectModalState$1 as injectToggleState, injectZonesPlatformLimits$1 as injectZonesPlatformLimits, isEmptyFilter as isEmpty, isEmptyValue, isUUID$1 as isUUID, isValidISODate, isValidISODateTime, isValidISOTime, isVariantLevelAttribute, keepDisplayName$1 as keepDisplayName, mapShippingRateTierToGraphQL, mapStoresToOptions, mapTimeZonesToOptions, minusify, messages$9 as missingValueMessages, nameValuePairsToMap, normalizeProductSettings, not, omitDeep, omitSetsOfSets, or, commonPickerMessages as pickerMessages, range, reorderArrayItems, resolveStatusType, safelyAddFallback, sanitize, searchCategories, serializeAttributeValueForPimSearch, setDisplayName$1 as setDisplayName, setToArray, shallowEqual, shouldUpdateAttributeInput, slugify, sortDataByIdsArray, sortRequiresLanguage, splitProductAndVariantAttributes, splitVariantAttributesByConstraint, stringToBase64, swapArrayItems, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, useBusinessUnitsLimits$1 as useBusinessUnitsPlatformLimits, useCachedCategoryOptions, useCurrentOption, useDnDContext as useCustomFieldsDnDContext, useCustomerGroupsPlatformLimits$1 as useCustomerGroupsPlatformLimits, useCustomersPlatformLimits$1 as useCustomersPlatformLimits, useDebouncedPromiseCallback$1 as useDebouncedPromiseCallback, useFormatCustomField, useFormatLocalizedFieldToString, useFormatLocalizedString, useIsFieldDuplicated$1 as useIsFieldDuplicated, useLoadOptions$1 as useLoadOptions, useLocalizedKeyFallback$1 as useLocalizedKeyFallback, usePendingRequests, usePersistedReminder$1 as usePersistedReminder, usePersistedTableConfiguration$1 as usePersistedTableConfiguration, usePimIndexer, usePrevious$1 as usePrevious, useProductSelectionsFetcher$1 as useProductSelectionsFetcher, useProductSelectionsTotalFetcher$1 as useProductSelectionsTotalFetcher, useRecurrenceIntervals, useRoleNotificationEffect$1 as useRoleNotificationEffect, useShippingMethodsPlatformLimits, useShowBulkNotification, useStorage$1 as useStorage, useStoreKeysInDataFences$1 as useStoreKeysInDataFences, useStoreSearchIndexStatusFetcher$1 as useStoreSearchIndexStatusFetcher, useStoresListFetcher$1 as useStoresListFetcher, useStoresLimits$1 as useStoresPlatformLimits, useStoresSearchFetcher$1 as useStoresSearchFetcher, useTaxCategoriesPlatformLimits, useTotalNumberOfStoresFetcher$1 as useTotalNumberOfStoresFetcher, validateFilter$2 as validateCustomField, validations as validateCustomFields, validateFilter$1 as validateDate, validateMultiOptionEnum, validateFilter as validateNumber, validateSingleOptionEnum, validateText, validatedInput, validationMessages, valueMapping, withPendingRequests, withProps$1 as withProps, withRedirectTo$1 as withRedirectTo, withoutEmptyErrorsByField$1 as withoutEmptyErrorsByField, wrapDisplayName$1 as wrapDisplayName };
|
|
@@ -7,7 +7,6 @@ import FileInput from "./components/buttons/file-input/file-input.jsx";
|
|
|
7
7
|
import ChannelPickerInput from "./components/channel-picker-input/index.js";
|
|
8
8
|
import CountriesPicker from "./components/country-picker/index.js";
|
|
9
9
|
import CustomerGroupPickerInput from "./components/customer-group-picker-input/index.js";
|
|
10
|
-
import FormattedDateTime from "./components/formatted-date-time/formatted-date-time.jsx";
|
|
11
10
|
import { FormattedLocalizedString } from "./components/formatted-localized-string/index.js";
|
|
12
11
|
import keepDisplayName from "./components/keep-display-name/index.js";
|
|
13
12
|
import pickerMessages from "./components/messages.js";
|
|
@@ -108,4 +107,4 @@ import getIndexesOfInvalidValues from "./utils/validation/get-indexes-of-invalid
|
|
|
108
107
|
import withoutEmptyErrorsByField from "./utils/validation/without-empty-errors-by-field.js";
|
|
109
108
|
import withPendingRequests from "./utils/with-pending-requests/with-pending-requests.jsx";
|
|
110
109
|
export { QUERY_LIMIT, QUERY_MAX_LIMIT, LOWER_STORES_LIMIT, UPPER_STORES_LIMIT, } from "./constants/index.js";
|
|
111
|
-
export { allowedProperties, and, attributesMapToNameValuePairs, attributeToCustomField, base64ToString, BooleanField, booleanMessages, buildSearchQuery, businessRoles, businessRoleConstants, businessRoleMessages, capitalizeFirst, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, ChannelPickerInput, CustomerGroupPickerInput, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, CountriesPicker, createGraphQlUpdateActions, createNextSortDefinition, createPlatformLimitsQueryVariables, createReducer, createResourceReducer, CustomFieldDefinitionsConnector, CustomFieldTypeDefinitionsConnector, CustomFields, useDnDContext as useCustomFieldsDnDContext, CustomFieldsErrorTextNotification, CustomFieldsFormField, CustomFieldInput, customFieldsTransformer, CustomFieldTooltip, dateTransformer, DefaultPageSizes, EMAIL_REGEX, exact, exists, extractErrorFromGraphQlResponse, FileInput, filterCustomTypeUpdateActionValues, filterDataAttributes, filterEmptyValues, FILTER_TYPES, formatCustomerAddress, formatCustomerName, formatCustomField, formatDateTime, formatDateRangeValue, formatDiscount, formatMoneyRangeValue, formatMoney, formatMoneyValue, formatPercentage, formatProductAttribute,
|
|
110
|
+
export { allowedProperties, and, attributesMapToNameValuePairs, attributeToCustomField, base64ToString, BooleanField, booleanMessages, buildSearchQuery, businessRoles, businessRoleConstants, businessRoleMessages, capitalizeFirst, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, ChannelPickerInput, CustomerGroupPickerInput, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, CountriesPicker, createGraphQlUpdateActions, createNextSortDefinition, createPlatformLimitsQueryVariables, createReducer, createResourceReducer, CustomFieldDefinitionsConnector, CustomFieldTypeDefinitionsConnector, CustomFields, useDnDContext as useCustomFieldsDnDContext, CustomFieldsErrorTextNotification, CustomFieldsFormField, CustomFieldInput, customFieldsTransformer, CustomFieldTooltip, dateTransformer, DefaultPageSizes, EMAIL_REGEX, exact, exists, extractErrorFromGraphQlResponse, FileInput, filterCustomTypeUpdateActionValues, filterDataAttributes, filterEmptyValues, FILTER_TYPES, formatCustomerAddress, formatCustomerName, formatCustomField, formatDateTime, formatDateRangeValue, formatDiscount, formatMoneyRangeValue, formatMoney, formatMoneyValue, formatPercentage, formatProductAttribute, FormattedLocalizedString, getAncestors, getAttributeValueByType, getAttributeValueType, getBottomOption, getBulkNotification, getCategoryLevel, getCountsFromBulkSummary, serializeAttributeValueForPimSearch, getDiscountValue, getDisplayName, getFractionedAmount, getFractionDigit, getIndexesOfInvalidValues, getMinimumPricesByCurrencyCode, getNetUnitPrice, getPathName, getPrefixSearchBounds, getProductAttributes, getProductLevelAttributes, isVariantLevelAttribute, getPriceChannelName, getReferenceTypeId, getSelectedPrice, getStampToneByPublishState, getTimeZoneId, getTimeZoneLabel, getTypeNameOfType, graphqlCategoryLevelTransformer, graphqlDateTransformer, graphqlMissingLocaleTransformer, graphqlMissingTransformer, graphqlNumberTransformer, graphqlQueryBuilder, graphqlReferenceTransformer, graphqlTextTransformer, hasInvalidInputError, hasSemanticError, injectCustomerGroupsPlatformLimits, useBusinessUnitsPlatformLimits, injectCustomersPlatformLimits, injectDataTablePaginationState, injectModalState, injectNotifications, injectPimIndexer, injectShippingMethodsPlatformLimits, injectStorage, injectTaxCategoriesPlatformLimits, injectToggleState, injectZonesPlatformLimits, isEmpty, isEmptyValue, isUUID, isValidISODate, isValidISODateTime, isValidISOTime, keepDisplayName, LabelRange, mapShippingRateTierToGraphQL, mapTimeZonesToOptions, mapStoresToOptions, MC_RESOURCES_WITH_KEYS, minusify, MissingValueField, missingValueMessages, MultiValueSearchInput, nameValuePairsToMap, normalizeProductSettings, not, NumericFormatInput, omitDeep, omitSetsOfSets, or, Option, pickerMessages, PimIndexerProvider, PlatformLimitsFetcherQuery, PRECISION_TYPES, ProductAttributeInput, ProductAttributes, ProductPickerInput, ProductSelectionPicker, range, RecurrentIntervalPicker, reorderArrayItems, RequestCache, resolveStatusType, RESOURCES_WITH_PLATFORM_LIMITS, safelyAddFallback, sanitize, searchCategories, setToArray, setDisplayName, shallowEqual, shouldUpdateAttributeInput, slugify, sortDataByIdsArray, sortRequiresLanguage, splitVariantAttributesByConstraint, splitProductAndVariantAttributes, StoreSelectField, StoreSelectInput, stringToBase64, swapArrayItems, ThrottledField, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, useCachedCategoryOptions, useCurrentOption, useCustomersPlatformLimits, useCustomerGroupsPlatformLimits, useDebouncedPromiseCallback, useFormatCustomField, useFormatLocalizedFieldToString, useFormatLocalizedString, usePersistedReminder, useIsFieldDuplicated, useLocalizedKeyFallback, useLoadOptions, usePendingRequests, usePersistedTableConfiguration, usePimIndexer, usePrevious, useProductSelectionsFetcher, useProductSelectionsTotalFetcher, useRecurrenceIntervals, useRoleNotificationEffect, useShowBulkNotification, useStorage, type UseStorageOptions, useStoreKeysInDataFences, useStoresListFetcher, useStoresSearchFetcher, useStoreSearchIndexStatusFetcher, useStoresPlatformLimits, useTaxCategoriesPlatformLimits, useTotalNumberOfStoresFetcher, useShippingMethodsPlatformLimits, validatedInput, validateCustomField, validateCustomFields, CUSTOM_FIELD_TYPES, validateDate, validateMultiOptionEnum, validateSingleOptionEnum, validateText, validateNumber, validationMessages, VALIDATOR_INTEGER, VALIDATOR_NUMERIC, VALIDATOR_REQUIRED, valueMapping, withProps, withoutEmptyErrorsByField, withPendingRequests, WithPimIndexer, withRedirectTo, wrapDisplayName, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/experimental-components",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/core": "^7.22.11",
|
|
27
27
|
"@babel/runtime-corejs3": "^7.21.0",
|
|
28
|
-
"@commercetools-frontend/actions-global": "26.0
|
|
29
|
-
"@commercetools-frontend/application-components": "26.0
|
|
30
|
-
"@commercetools-frontend/application-shell": "26.0
|
|
31
|
-
"@commercetools-frontend/application-shell-connectors": "26.0
|
|
32
|
-
"@commercetools-frontend/constants": "26.0
|
|
33
|
-
"@commercetools-frontend/l10n": "26.0
|
|
34
|
-
"@commercetools-frontend/sdk": "26.0
|
|
35
|
-
"@commercetools-frontend/sentry": "26.0
|
|
36
|
-
"@commercetools-frontend/ui-kit": "20.
|
|
37
|
-
"@commercetools-uikit/design-system": "20.
|
|
38
|
-
"@commercetools-uikit/select-utils": "20.
|
|
39
|
-
"@commercetools-uikit/utils": "20.
|
|
28
|
+
"@commercetools-frontend/actions-global": "26.1.0",
|
|
29
|
+
"@commercetools-frontend/application-components": "26.1.0",
|
|
30
|
+
"@commercetools-frontend/application-shell": "26.1.0",
|
|
31
|
+
"@commercetools-frontend/application-shell-connectors": "26.1.0",
|
|
32
|
+
"@commercetools-frontend/constants": "26.1.0",
|
|
33
|
+
"@commercetools-frontend/l10n": "26.1.0",
|
|
34
|
+
"@commercetools-frontend/sdk": "26.1.0",
|
|
35
|
+
"@commercetools-frontend/sentry": "26.1.0",
|
|
36
|
+
"@commercetools-frontend/ui-kit": "20.4.0",
|
|
37
|
+
"@commercetools-uikit/design-system": "20.4.0",
|
|
38
|
+
"@commercetools-uikit/select-utils": "20.4.0",
|
|
39
|
+
"@commercetools-uikit/utils": "20.4.0",
|
|
40
40
|
"@emotion/react": "11.14.0",
|
|
41
41
|
"@hello-pangea/dnd": "^18.0.1",
|
|
42
42
|
"classnames": "2.5.1",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"tiny-invariant": "1.3.3",
|
|
58
58
|
"tiny-warning": "1.0.3",
|
|
59
59
|
"uuid": "11.1.0",
|
|
60
|
-
"@commercetools/merchant-center-shared-ui": "0.0.
|
|
60
|
+
"@commercetools/merchant-center-shared-ui": "0.0.3"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@apollo/client": "3.12.4",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"@testing-library/react": "16.3.2",
|
|
67
67
|
"@types/debounce-promise": "3.1.9",
|
|
68
68
|
"@types/jest": "^30.0.0",
|
|
69
|
-
"@types/node": "24.
|
|
70
|
-
"@types/react": "19.2.
|
|
69
|
+
"@types/node": "24.11.0",
|
|
70
|
+
"@types/react": "19.2.14",
|
|
71
71
|
"formik": "2.4.9",
|
|
72
72
|
"graphql": "16.12.0",
|
|
73
73
|
"graphql-tag": "2.12.6",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export class FormattedDateTime extends PureComponent<any, any, any> {
|
|
2
|
-
static displayName: string;
|
|
3
|
-
static propTypes: {
|
|
4
|
-
type: any;
|
|
5
|
-
value: any;
|
|
6
|
-
timeZone: any;
|
|
7
|
-
intl: any;
|
|
8
|
-
};
|
|
9
|
-
constructor(props: any);
|
|
10
|
-
constructor(props: any, context: any);
|
|
11
|
-
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
-
}
|
|
13
|
-
declare const _default: import("react").FC<import("react-intl").WithIntlProps<any>> & {
|
|
14
|
-
WrappedComponent: import("react").ComponentType<any>;
|
|
15
|
-
};
|
|
16
|
-
export default _default;
|
|
17
|
-
import { PureComponent } from 'react';
|