@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,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',
|
|
@@ -1570,7 +1544,7 @@ var usePrevious$1 = usePrevious;
|
|
|
1570
1544
|
|
|
1571
1545
|
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; }
|
|
1572
1546
|
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; }
|
|
1573
|
-
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 } } } };
|
|
1547
|
+
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 } } } };
|
|
1574
1548
|
const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
|
|
1575
1549
|
var _context, _context2;
|
|
1576
1550
|
if (!storesQueryResult) return null;
|
|
@@ -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; }
|
|
@@ -2847,6 +2819,16 @@ const currencyData = {
|
|
|
2847
2819
|
currencyName: 'Czech Koruna',
|
|
2848
2820
|
countries: ['Czechia']
|
|
2849
2821
|
},
|
|
2822
|
+
CZK0: {
|
|
2823
|
+
isoCode: '203',
|
|
2824
|
+
fractionDigit: 0,
|
|
2825
|
+
symbol: 'Kč',
|
|
2826
|
+
unicode: 'Kč',
|
|
2827
|
+
htmlCode: 'Kč',
|
|
2828
|
+
hexCode: 'Kč',
|
|
2829
|
+
currencyName: 'Czech Koruna',
|
|
2830
|
+
countries: ['Czechia']
|
|
2831
|
+
},
|
|
2850
2832
|
DJF: {
|
|
2851
2833
|
isoCode: '262',
|
|
2852
2834
|
fractionDigit: 0,
|
|
@@ -3005,6 +2987,12 @@ const currencyData = {
|
|
|
3005
2987
|
currencyName: 'Forint',
|
|
3006
2988
|
countries: ['Hungary']
|
|
3007
2989
|
},
|
|
2990
|
+
HUF0: {
|
|
2991
|
+
isoCode: '348',
|
|
2992
|
+
fractionDigit: 0,
|
|
2993
|
+
currencyName: 'Forint',
|
|
2994
|
+
countries: ['Hungary']
|
|
2995
|
+
},
|
|
3008
2996
|
IDR: {
|
|
3009
2997
|
isoCode: '360',
|
|
3010
2998
|
fractionDigit: 2,
|
|
@@ -3017,6 +3005,12 @@ const currencyData = {
|
|
|
3017
3005
|
currencyName: 'New Israeli Sheqel',
|
|
3018
3006
|
countries: ['Israel']
|
|
3019
3007
|
},
|
|
3008
|
+
ILS0: {
|
|
3009
|
+
isoCode: '376',
|
|
3010
|
+
fractionDigit: 0,
|
|
3011
|
+
currencyName: 'New Israeli Sheqel',
|
|
3012
|
+
countries: ['Israel']
|
|
3013
|
+
},
|
|
3020
3014
|
INR: {
|
|
3021
3015
|
isoCode: '356',
|
|
3022
3016
|
fractionDigit: 2,
|
|
@@ -3121,6 +3115,12 @@ const currencyData = {
|
|
|
3121
3115
|
currencyName: 'Tenge',
|
|
3122
3116
|
countries: ['Kazakhstan']
|
|
3123
3117
|
},
|
|
3118
|
+
KZT0: {
|
|
3119
|
+
isoCode: '398',
|
|
3120
|
+
fractionDigit: 0,
|
|
3121
|
+
currencyName: 'Tenge',
|
|
3122
|
+
countries: ['Kazakhstan']
|
|
3123
|
+
},
|
|
3124
3124
|
LAK: {
|
|
3125
3125
|
isoCode: '418',
|
|
3126
3126
|
fractionDigit: 2,
|
|
@@ -3487,6 +3487,12 @@ const currencyData = {
|
|
|
3487
3487
|
currencyName: 'Turkish Lira',
|
|
3488
3488
|
countries: ['Turkey']
|
|
3489
3489
|
},
|
|
3490
|
+
TRY0: {
|
|
3491
|
+
isoCode: '949',
|
|
3492
|
+
fractionDigit: 0,
|
|
3493
|
+
currencyName: 'Turkish Lira',
|
|
3494
|
+
countries: ['Turkey']
|
|
3495
|
+
},
|
|
3490
3496
|
TTD: {
|
|
3491
3497
|
isoCode: '780',
|
|
3492
3498
|
fractionDigit: 2,
|
|
@@ -3499,6 +3505,12 @@ const currencyData = {
|
|
|
3499
3505
|
currencyName: 'New Taiwan Dollar',
|
|
3500
3506
|
countries: ['Taiwan (Province of China)']
|
|
3501
3507
|
},
|
|
3508
|
+
TWD0: {
|
|
3509
|
+
isoCode: '901',
|
|
3510
|
+
fractionDigit: 0,
|
|
3511
|
+
currencyName: 'New Taiwan Dollar',
|
|
3512
|
+
countries: ['Taiwan (Province of China)']
|
|
3513
|
+
},
|
|
3502
3514
|
TZS: {
|
|
3503
3515
|
isoCode: '834',
|
|
3504
3516
|
fractionDigit: 2,
|
|
@@ -3741,6 +3753,16 @@ const getData = (code, field) => {
|
|
|
3741
3753
|
};
|
|
3742
3754
|
const getFractionDigit = code => getData(code, 'fractionDigit');
|
|
3743
3755
|
|
|
3756
|
+
/**
|
|
3757
|
+
* Normalize currency codes to ISO 4217 alphabetic format (3 letters).
|
|
3758
|
+
* This is necessary because Intl money formatting expects ISO currency codes.
|
|
3759
|
+
* Example: HUF0 -> HUF.
|
|
3760
|
+
*/
|
|
3761
|
+
const normalizeCurrencyCode = code => {
|
|
3762
|
+
var _context;
|
|
3763
|
+
return typeof code === 'string' ? _sliceInstanceProperty__default["default"](_context = code.toUpperCase()).call(_context, 0, 3) : code;
|
|
3764
|
+
};
|
|
3765
|
+
|
|
3744
3766
|
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; }
|
|
3745
3767
|
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; }
|
|
3746
3768
|
function formatMoneyRangeValue(value, intl) {
|
|
@@ -3760,17 +3782,17 @@ function formatMoneyValue(amount, currency, intl) {
|
|
|
3760
3782
|
} : {}), intl);
|
|
3761
3783
|
}
|
|
3762
3784
|
function getFractionedAmount(moneyValue) {
|
|
3763
|
-
const
|
|
3764
|
-
fractionDigits = _moneyValue$fractionD === void 0 ? 2 : _moneyValue$fractionD;
|
|
3785
|
+
const fractionDigits = moneyValue.fractionDigits ?? getFractionDigit(moneyValue.currencyCode) ?? 2;
|
|
3765
3786
|
|
|
3766
3787
|
// the amount should be available on preciseAmount for highPrecision
|
|
3767
3788
|
const amount = moneyValue.type === PRECISION_TYPES.highPrecision ? moneyValue.preciseAmount : moneyValue.centAmount;
|
|
3768
3789
|
return amount / 10 ** fractionDigits;
|
|
3769
3790
|
}
|
|
3770
|
-
function formatMoney$2(moneyValue, intl
|
|
3791
|
+
function formatMoney$2(moneyValue, intl) {
|
|
3792
|
+
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
3771
3793
|
return intl.formatNumber(moneyValue.fractionedAmount ?? getFractionedAmount(moneyValue), _objectSpread$19({
|
|
3772
3794
|
style: 'currency',
|
|
3773
|
-
currency: moneyValue.currencyCode,
|
|
3795
|
+
currency: normalizeCurrencyCode(moneyValue.currencyCode),
|
|
3774
3796
|
minimumFractionDigits: moneyValue.fractionDigits
|
|
3775
3797
|
}, options));
|
|
3776
3798
|
}
|
|
@@ -9636,7 +9658,7 @@ function _isNativeReflectConstruct$5() { try { var t = !Boolean.prototype.valueO
|
|
|
9636
9658
|
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 } } } };
|
|
9637
9659
|
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',
|
|
9638
9660
|
// transactions on payment entity
|
|
9639
|
-
'shopping-list', 'shopping-list-text-line-item', 'standalone-price', 'review', 'recurring-order'];
|
|
9661
|
+
'shopping-list', 'shopping-list-text-line-item', 'standalone-price', 'review', 'recurring-order', 'store'];
|
|
9640
9662
|
let CustomFieldDefinitionsConnector = /*#__PURE__*/function (_Component) {
|
|
9641
9663
|
function CustomFieldDefinitionsConnector() {
|
|
9642
9664
|
_classCallCheck(this, CustomFieldDefinitionsConnector);
|
|
@@ -13945,14 +13967,11 @@ const getAttributeValueByType = _ref10 => {
|
|
|
13945
13967
|
fallbackOrder: projectLanguages
|
|
13946
13968
|
}));
|
|
13947
13969
|
case 'money':
|
|
13948
|
-
return safelyAddFallback(
|
|
13949
|
-
style: 'currency',
|
|
13950
|
-
currency: value.currencyCode
|
|
13951
|
-
}));
|
|
13970
|
+
return safelyAddFallback(formatMoneyValue(value.centAmount, value.currencyCode, intl));
|
|
13952
13971
|
case 'time':
|
|
13953
13972
|
case 'datetime':
|
|
13954
13973
|
case 'date':
|
|
13955
|
-
return jsxRuntime.jsx(FormattedDateTime
|
|
13974
|
+
return jsxRuntime.jsx(merchantCenterSharedUi.FormattedDateTime, {
|
|
13956
13975
|
type: type,
|
|
13957
13976
|
value: value
|
|
13958
13977
|
});
|
|
@@ -14170,7 +14189,6 @@ exports.DefaultPageSizes = DefaultPageSizes;
|
|
|
14170
14189
|
exports.EMAIL_REGEX = EMAIL_REGEX;
|
|
14171
14190
|
exports.FILTER_TYPES = FILTER_TYPES;
|
|
14172
14191
|
exports.FileInput = FileInput$1;
|
|
14173
|
-
exports.FormattedDateTime = FormattedDateTime$1;
|
|
14174
14192
|
exports.FormattedLocalizedString = FormattedLocalizedString;
|
|
14175
14193
|
exports.LOWER_STORES_LIMIT = LOWER_STORES_LIMIT;
|
|
14176
14194
|
exports.LabelRange = LabelRange$1;
|
|
@@ -14301,6 +14319,7 @@ exports.mapTimeZonesToOptions = mapTimeZonesToOptions;
|
|
|
14301
14319
|
exports.minusify = minusify;
|
|
14302
14320
|
exports.missingValueMessages = messages$9;
|
|
14303
14321
|
exports.nameValuePairsToMap = nameValuePairsToMap;
|
|
14322
|
+
exports.normalizeCurrencyCode = normalizeCurrencyCode;
|
|
14304
14323
|
exports.normalizeProductSettings = normalizeProductSettings;
|
|
14305
14324
|
exports.not = not;
|
|
14306
14325
|
exports.omitDeep = omitDeep;
|