@commercetools-frontend/experimental-components 8.1.1 → 8.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commercetools-frontend-experimental-components.cjs.dev.js +75 -56
- package/dist/commercetools-frontend-experimental-components.cjs.prod.js +75 -56
- package/dist/commercetools-frontend-experimental-components.esm.js +74 -55
- package/dist/declarations/src/index.d.ts +2 -2
- package/dist/declarations/src/utils/currency/index.d.ts +1 -0
- package/dist/declarations/src/utils/formats/money/money.d.ts +1 -1
- package/dist/declarations/src/utils/formats/money/utils/normalize-currency-code.d.ts +6 -0
- 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',
|
|
@@ -1571,7 +1545,7 @@ var usePrevious$1 = usePrevious;
|
|
|
1571
1545
|
|
|
1572
1546
|
function ownKeys$1f(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; }
|
|
1573
1547
|
function _objectSpread$1f(e) { for (var r = 1; r < arguments.length; r++) { var _context7, _context8; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context7 = ownKeys$1f(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context8 = ownKeys$1f(Object(t))).call(_context8, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1574
|
-
var FetchStoresQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchStoresQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "limit" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "offset" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "sort" } }, type: { kind: "ListType", type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "excludeExtendedStoresList" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "excludeProductSelections" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "stores" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "Variable", name: { kind: "Name", value: "limit" } } }, { kind: "Argument", name: { kind: "Name", value: "offset" }, value: { kind: "Variable", name: { kind: "Name", value: "offset" } } }, { kind: "Argument", name: { kind: "Name", value: "sort" }, value: { kind: "Variable", name: { kind: "Name", value: "sort" } } }, { kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "count" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "offset" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "StoreBasicInfo" }, directives: [] }, { kind: "Field", name: { kind: "Name", value: "countries" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "code" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "languages" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeExtendedStoresList" } } }] }] }, { kind: "Field", name: { kind: "Name", value: "distributionChannelsRef" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "distributionChannels" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeExtendedStoresList" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, 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: "supplyChannels" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeExtendedStoresList" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, 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: "productSelections" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeProductSelections" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "active" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "productSelection" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "mode" }, 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: "FragmentDefinition", name: { kind: "Name", value: "StoreBasicInfo" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Store" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "version" }, 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: "createdAt" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "lastModifiedAt" }, arguments: [], directives: [] }] } }], loc: { start: 0, end: 1089, source: { body: "#import '../../utils/graphql/fragments/store-basic-info.ctp.graphql'\n\nquery FetchStoresQuery(\n $limit: Int\n $offset: Int\n $sort: [String!]\n $where: String\n $excludeExtendedStoresList: Boolean!\n $excludeProductSelections: Boolean!\n) {\n stores(limit: $limit, offset: $offset, sort: $sort, where: $where) {\n total\n count\n offset\n results {\n ...StoreBasicInfo\n countries {\n code\n }\n languages @skip(if: $excludeExtendedStoresList)\n distributionChannelsRef {\n id\n }\n distributionChannels @skip(if: $excludeExtendedStoresList) {\n id\n key\n nameAllLocales {\n locale\n value\n }\n }\n supplyChannels @skip(if: $excludeExtendedStoresList) {\n id\n key\n nameAllLocales {\n locale\n value\n }\n }\n productSelections @skip(if: $excludeProductSelections) {\n active\n productSelection {\n id\n mode\n nameAllLocales {\n locale\n value\n }\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
1548
|
+
var FetchStoresQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchStoresQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "limit" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "offset" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "sort" } }, type: { kind: "ListType", type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "excludeExtendedStoresList" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "excludeProductSelections" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "stores" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "Variable", name: { kind: "Name", value: "limit" } } }, { kind: "Argument", name: { kind: "Name", value: "offset" }, value: { kind: "Variable", name: { kind: "Name", value: "offset" } } }, { kind: "Argument", name: { kind: "Name", value: "sort" }, value: { kind: "Variable", name: { kind: "Name", value: "sort" } } }, { kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "count" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "offset" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "StoreBasicInfo" }, directives: [] }, { kind: "Field", name: { kind: "Name", value: "custom" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "fieldDefinitions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, 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: "type" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "Field", name: { kind: "Name", value: "customFieldsRaw" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "countries" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "code" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "languages" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeExtendedStoresList" } } }] }] }, { kind: "Field", name: { kind: "Name", value: "distributionChannelsRef" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "distributionChannels" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeExtendedStoresList" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, 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: "supplyChannels" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeExtendedStoresList" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, 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: "productSelections" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeProductSelections" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "active" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "productSelection" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "mode" }, 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: "FragmentDefinition", name: { kind: "Name", value: "StoreBasicInfo" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Store" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "version" }, 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: "createdAt" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "lastModifiedAt" }, arguments: [], directives: [] }] } }], loc: { start: 0, end: 1426, source: { body: "#import '../../utils/graphql/fragments/store-basic-info.ctp.graphql'\n\nquery FetchStoresQuery(\n $limit: Int\n $offset: Int\n $sort: [String!]\n $where: String\n $excludeExtendedStoresList: Boolean!\n $excludeProductSelections: Boolean!\n) {\n stores(limit: $limit, offset: $offset, sort: $sort, where: $where) {\n total\n count\n offset\n results {\n ...StoreBasicInfo\n custom {\n type {\n id\n key\n fieldDefinitions {\n name\n labelAllLocales {\n locale\n value\n }\n type {\n name\n }\n }\n }\n customFieldsRaw {\n name\n value\n }\n }\n countries {\n code\n }\n languages @skip(if: $excludeExtendedStoresList)\n distributionChannelsRef {\n id\n }\n distributionChannels @skip(if: $excludeExtendedStoresList) {\n id\n key\n nameAllLocales {\n locale\n value\n }\n }\n supplyChannels @skip(if: $excludeExtendedStoresList) {\n id\n key\n nameAllLocales {\n locale\n value\n }\n }\n productSelections @skip(if: $excludeProductSelections) {\n active\n productSelection {\n id\n mode\n nameAllLocales {\n locale\n value\n }\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
1575
1549
|
const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
|
|
1576
1550
|
var _context, _context2;
|
|
1577
1551
|
if (!storesQueryResult) return null;
|
|
@@ -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; }
|
|
@@ -2848,6 +2820,16 @@ const currencyData = {
|
|
|
2848
2820
|
currencyName: 'Czech Koruna',
|
|
2849
2821
|
countries: ['Czechia']
|
|
2850
2822
|
},
|
|
2823
|
+
CZK0: {
|
|
2824
|
+
isoCode: '203',
|
|
2825
|
+
fractionDigit: 0,
|
|
2826
|
+
symbol: 'Kč',
|
|
2827
|
+
unicode: 'Kč',
|
|
2828
|
+
htmlCode: 'Kč',
|
|
2829
|
+
hexCode: 'Kč',
|
|
2830
|
+
currencyName: 'Czech Koruna',
|
|
2831
|
+
countries: ['Czechia']
|
|
2832
|
+
},
|
|
2851
2833
|
DJF: {
|
|
2852
2834
|
isoCode: '262',
|
|
2853
2835
|
fractionDigit: 0,
|
|
@@ -3006,6 +2988,12 @@ const currencyData = {
|
|
|
3006
2988
|
currencyName: 'Forint',
|
|
3007
2989
|
countries: ['Hungary']
|
|
3008
2990
|
},
|
|
2991
|
+
HUF0: {
|
|
2992
|
+
isoCode: '348',
|
|
2993
|
+
fractionDigit: 0,
|
|
2994
|
+
currencyName: 'Forint',
|
|
2995
|
+
countries: ['Hungary']
|
|
2996
|
+
},
|
|
3009
2997
|
IDR: {
|
|
3010
2998
|
isoCode: '360',
|
|
3011
2999
|
fractionDigit: 2,
|
|
@@ -3018,6 +3006,12 @@ const currencyData = {
|
|
|
3018
3006
|
currencyName: 'New Israeli Sheqel',
|
|
3019
3007
|
countries: ['Israel']
|
|
3020
3008
|
},
|
|
3009
|
+
ILS0: {
|
|
3010
|
+
isoCode: '376',
|
|
3011
|
+
fractionDigit: 0,
|
|
3012
|
+
currencyName: 'New Israeli Sheqel',
|
|
3013
|
+
countries: ['Israel']
|
|
3014
|
+
},
|
|
3021
3015
|
INR: {
|
|
3022
3016
|
isoCode: '356',
|
|
3023
3017
|
fractionDigit: 2,
|
|
@@ -3122,6 +3116,12 @@ const currencyData = {
|
|
|
3122
3116
|
currencyName: 'Tenge',
|
|
3123
3117
|
countries: ['Kazakhstan']
|
|
3124
3118
|
},
|
|
3119
|
+
KZT0: {
|
|
3120
|
+
isoCode: '398',
|
|
3121
|
+
fractionDigit: 0,
|
|
3122
|
+
currencyName: 'Tenge',
|
|
3123
|
+
countries: ['Kazakhstan']
|
|
3124
|
+
},
|
|
3125
3125
|
LAK: {
|
|
3126
3126
|
isoCode: '418',
|
|
3127
3127
|
fractionDigit: 2,
|
|
@@ -3488,6 +3488,12 @@ const currencyData = {
|
|
|
3488
3488
|
currencyName: 'Turkish Lira',
|
|
3489
3489
|
countries: ['Turkey']
|
|
3490
3490
|
},
|
|
3491
|
+
TRY0: {
|
|
3492
|
+
isoCode: '949',
|
|
3493
|
+
fractionDigit: 0,
|
|
3494
|
+
currencyName: 'Turkish Lira',
|
|
3495
|
+
countries: ['Turkey']
|
|
3496
|
+
},
|
|
3491
3497
|
TTD: {
|
|
3492
3498
|
isoCode: '780',
|
|
3493
3499
|
fractionDigit: 2,
|
|
@@ -3500,6 +3506,12 @@ const currencyData = {
|
|
|
3500
3506
|
currencyName: 'New Taiwan Dollar',
|
|
3501
3507
|
countries: ['Taiwan (Province of China)']
|
|
3502
3508
|
},
|
|
3509
|
+
TWD0: {
|
|
3510
|
+
isoCode: '901',
|
|
3511
|
+
fractionDigit: 0,
|
|
3512
|
+
currencyName: 'New Taiwan Dollar',
|
|
3513
|
+
countries: ['Taiwan (Province of China)']
|
|
3514
|
+
},
|
|
3503
3515
|
TZS: {
|
|
3504
3516
|
isoCode: '834',
|
|
3505
3517
|
fractionDigit: 2,
|
|
@@ -3742,6 +3754,16 @@ const getData = (code, field) => {
|
|
|
3742
3754
|
};
|
|
3743
3755
|
const getFractionDigit = code => getData(code, 'fractionDigit');
|
|
3744
3756
|
|
|
3757
|
+
/**
|
|
3758
|
+
* Normalize currency codes to ISO 4217 alphabetic format (3 letters).
|
|
3759
|
+
* This is necessary because Intl money formatting expects ISO currency codes.
|
|
3760
|
+
* Example: HUF0 -> HUF.
|
|
3761
|
+
*/
|
|
3762
|
+
const normalizeCurrencyCode = code => {
|
|
3763
|
+
var _context;
|
|
3764
|
+
return typeof code === 'string' ? _sliceInstanceProperty__default["default"](_context = code.toUpperCase()).call(_context, 0, 3) : code;
|
|
3765
|
+
};
|
|
3766
|
+
|
|
3745
3767
|
function ownKeys$19(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; }
|
|
3746
3768
|
function _objectSpread$19(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$19(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$19(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
3747
3769
|
function formatMoneyRangeValue(value, intl) {
|
|
@@ -3761,17 +3783,17 @@ function formatMoneyValue(amount, currency, intl) {
|
|
|
3761
3783
|
} : {}), intl);
|
|
3762
3784
|
}
|
|
3763
3785
|
function getFractionedAmount(moneyValue) {
|
|
3764
|
-
const
|
|
3765
|
-
fractionDigits = _moneyValue$fractionD === void 0 ? 2 : _moneyValue$fractionD;
|
|
3786
|
+
const fractionDigits = moneyValue.fractionDigits ?? getFractionDigit(moneyValue.currencyCode) ?? 2;
|
|
3766
3787
|
|
|
3767
3788
|
// the amount should be available on preciseAmount for highPrecision
|
|
3768
3789
|
const amount = moneyValue.type === PRECISION_TYPES.highPrecision ? moneyValue.preciseAmount : moneyValue.centAmount;
|
|
3769
3790
|
return amount / 10 ** fractionDigits;
|
|
3770
3791
|
}
|
|
3771
|
-
function formatMoney$2(moneyValue, intl
|
|
3792
|
+
function formatMoney$2(moneyValue, intl) {
|
|
3793
|
+
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
3772
3794
|
return intl.formatNumber(moneyValue.fractionedAmount ?? getFractionedAmount(moneyValue), _objectSpread$19({
|
|
3773
3795
|
style: 'currency',
|
|
3774
|
-
currency: moneyValue.currencyCode,
|
|
3796
|
+
currency: normalizeCurrencyCode(moneyValue.currencyCode),
|
|
3775
3797
|
minimumFractionDigits: moneyValue.fractionDigits
|
|
3776
3798
|
}, options));
|
|
3777
3799
|
}
|
|
@@ -9690,7 +9712,7 @@ function _isNativeReflectConstruct$5() { try { var t = !Boolean.prototype.valueO
|
|
|
9690
9712
|
var FetchTypeDefinitionsQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchTypeDefinitionsQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "limit" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "offset" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "typeDefinitions" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }, { kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "Variable", name: { kind: "Name", value: "limit" } } }, { kind: "Argument", name: { kind: "Name", value: "offset" }, value: { kind: "Variable", name: { kind: "Name", value: "offset" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "fieldDefinitions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SetType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "elementType" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "label" }, arguments: [], directives: [] }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "LocalizedEnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "label" }, arguments: [], directives: [] }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "LocalizedEnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ReferenceType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "referenceTypeId" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }], loc: { start: 0, end: 1172, source: { body: "query FetchTypeDefinitionsQuery($where: String, $limit: Int, $offset: Int) {\n typeDefinitions(where: $where, limit: $limit, offset: $offset) {\n results {\n fieldDefinitions {\n type {\n name\n ... on SetType {\n elementType {\n name\n ... on EnumType {\n values {\n key\n label\n }\n }\n ... on LocalizedEnumType {\n values {\n key\n labelAllLocales {\n value\n locale\n }\n }\n }\n }\n }\n ... on EnumType {\n values {\n key\n label\n }\n }\n ... on LocalizedEnumType {\n values {\n key\n labelAllLocales {\n value\n locale\n }\n }\n }\n ... on ReferenceType {\n referenceTypeId\n }\n }\n name\n labelAllLocales {\n value\n locale\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
9691
9713
|
const customizableResources$1 = ['asset', 'category', 'channel', 'customer', 'order', 'discount-code', 'cart-discount', 'inventory-entry', 'line-item', 'custom-line-item', 'product-price', 'payment', 'payment-interface-interaction', 'transaction',
|
|
9692
9714
|
// transactions on payment entity
|
|
9693
|
-
'shopping-list', 'shopping-list-text-line-item', 'standalone-price', 'review', 'recurring-order'];
|
|
9715
|
+
'shopping-list', 'shopping-list-text-line-item', 'standalone-price', 'review', 'recurring-order', 'store'];
|
|
9694
9716
|
let CustomFieldDefinitionsConnector = /*#__PURE__*/function (_Component) {
|
|
9695
9717
|
function CustomFieldDefinitionsConnector() {
|
|
9696
9718
|
_classCallCheck(this, CustomFieldDefinitionsConnector);
|
|
@@ -14024,14 +14046,11 @@ const getAttributeValueByType = _ref10 => {
|
|
|
14024
14046
|
fallbackOrder: projectLanguages
|
|
14025
14047
|
}));
|
|
14026
14048
|
case 'money':
|
|
14027
|
-
return safelyAddFallback(
|
|
14028
|
-
style: 'currency',
|
|
14029
|
-
currency: value.currencyCode
|
|
14030
|
-
}));
|
|
14049
|
+
return safelyAddFallback(formatMoneyValue(value.centAmount, value.currencyCode, intl));
|
|
14031
14050
|
case 'time':
|
|
14032
14051
|
case 'datetime':
|
|
14033
14052
|
case 'date':
|
|
14034
|
-
return jsxRuntime.jsx(FormattedDateTime
|
|
14053
|
+
return jsxRuntime.jsx(merchantCenterSharedUi.FormattedDateTime, {
|
|
14035
14054
|
type: type,
|
|
14036
14055
|
value: value
|
|
14037
14056
|
});
|
|
@@ -14249,7 +14268,6 @@ exports.DefaultPageSizes = DefaultPageSizes;
|
|
|
14249
14268
|
exports.EMAIL_REGEX = EMAIL_REGEX;
|
|
14250
14269
|
exports.FILTER_TYPES = FILTER_TYPES;
|
|
14251
14270
|
exports.FileInput = FileInput$1;
|
|
14252
|
-
exports.FormattedDateTime = FormattedDateTime$1;
|
|
14253
14271
|
exports.FormattedLocalizedString = FormattedLocalizedString;
|
|
14254
14272
|
exports.LOWER_STORES_LIMIT = LOWER_STORES_LIMIT;
|
|
14255
14273
|
exports.LabelRange = LabelRange$1;
|
|
@@ -14380,6 +14398,7 @@ exports.mapTimeZonesToOptions = mapTimeZonesToOptions;
|
|
|
14380
14398
|
exports.minusify = minusify;
|
|
14381
14399
|
exports.missingValueMessages = messages$9;
|
|
14382
14400
|
exports.nameValuePairsToMap = nameValuePairsToMap;
|
|
14401
|
+
exports.normalizeCurrencyCode = normalizeCurrencyCode;
|
|
14383
14402
|
exports.normalizeProductSettings = normalizeProductSettings;
|
|
14384
14403
|
exports.not = not;
|
|
14385
14404
|
exports.omitDeep = omitDeep;
|