@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
|
@@ -22,11 +22,11 @@ import pick from 'lodash/pick';
|
|
|
22
22
|
import { formatLocalizedString, transformLocalizedFieldToLocalizedString, applyTransformedLocalizedFields, transformLocalizedStringToLocalizedField } from '@commercetools-frontend/l10n';
|
|
23
23
|
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
24
24
|
import * as React from 'react';
|
|
25
|
-
import React__default, { useMemo, useState, useCallback, useEffect,
|
|
25
|
+
import React__default, { useMemo, useState, useCallback, useEffect, useRef, createContext, memo, useContext, PureComponent, forwardRef, Component } from 'react';
|
|
26
26
|
import { useApolloClient, useQuery as useQuery$1 } from '@apollo/client';
|
|
27
27
|
import { useQuery, useApolloClient as useApolloClient$1 } from '@apollo/client/react';
|
|
28
|
-
import { defineMessages, useIntl,
|
|
29
|
-
import { useApplicationContext,
|
|
28
|
+
import { defineMessages, useIntl, FormattedMessage, injectIntl } from 'react-intl';
|
|
29
|
+
import { useApplicationContext, withApplicationContext } from '@commercetools-frontend/application-shell-connectors';
|
|
30
30
|
import { Constraints, Spacings, AsyncSelectInput, Text, SearchIcon, Tooltip, usePaginationState, useDataTableSortingState, useToggleState, Link, MoneyInput, designTokens, AccessibleHidden, SearchSelectInput, LoadingSpinner, AsyncSelectField, SelectField, SelectInput, FlatButton, AngleUpIcon, AngleDownIcon, IconButton, BinLinearIcon, PlusBoldIcon, DateInput, DateTimeInput, LocalizedTextInput, LocalizedMultilineTextInput, SecondaryButton, RevertIcon, Grid, customProperties, SubdirectoryArrowIcon, Tag, EditIcon, FieldLabel, WarningIcon, NumberInput, TextInput, MultilineTextInput, TimeInput, SwitcherIcon, ErrorIcon, DragIcon, Card, SearchSelectField, ContentNotification, FieldErrors, CollapsiblePanel, ListIcon, CheckboxInput, SearchTextInput } from '@commercetools-frontend/ui-kit';
|
|
31
31
|
import _Map from '@babel/runtime-corejs3/core-js-stable/map';
|
|
32
32
|
import _everyInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/every';
|
|
@@ -38,27 +38,18 @@ import { deepEqual } from 'fast-equals';
|
|
|
38
38
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
39
39
|
import _trimInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/trim';
|
|
40
40
|
import { designTokens as designTokens$1 } from '@commercetools-uikit/design-system';
|
|
41
|
-
import _Reflect$construct from '@babel/runtime-corejs3/core-js-stable/reflect/construct';
|
|
42
|
-
import _classCallCheck from '@babel/runtime-corejs3/helpers/esm/classCallCheck';
|
|
43
|
-
import _createClass from '@babel/runtime-corejs3/helpers/esm/createClass';
|
|
44
|
-
import _possibleConstructorReturn from '@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn';
|
|
45
|
-
import _getPrototypeOf from '@babel/runtime-corejs3/helpers/esm/getPrototypeOf';
|
|
46
|
-
import _inherits from '@babel/runtime-corejs3/helpers/esm/inherits';
|
|
47
|
-
import _sliceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
48
|
-
import _someInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/some';
|
|
49
|
-
import oneLine from 'common-tags/lib/oneLine';
|
|
50
|
-
import moment$1 from 'moment-timezone';
|
|
51
41
|
import { useFormikContext, Field, Formik, getIn, FastField } from 'formik';
|
|
52
42
|
import isNil$1 from 'lodash/isNil';
|
|
53
43
|
import omitBy from 'lodash/omitBy';
|
|
54
44
|
import _Array$isArray from '@babel/runtime-corejs3/core-js-stable/array/is-array';
|
|
45
|
+
import _sliceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
55
46
|
import _lastIndexOfInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/last-index-of';
|
|
56
47
|
import _parseInt from '@babel/runtime-corejs3/core-js-stable/parse-int';
|
|
57
48
|
import merge from 'lodash/merge';
|
|
58
49
|
import set from 'lodash/set';
|
|
59
50
|
import times from 'lodash/times';
|
|
60
51
|
import { v4 } from 'uuid';
|
|
61
|
-
import { CenteredLoadingSpinner, Divider } from '@commercetools/merchant-center-shared-ui';
|
|
52
|
+
import { CenteredLoadingSpinner, Divider, FormattedDateTime } from '@commercetools/merchant-center-shared-ui';
|
|
62
53
|
import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
63
54
|
import { lruMemoize } from 'reselect';
|
|
64
55
|
import _endsWithInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/ends-with';
|
|
@@ -77,8 +68,15 @@ import ReactDOM from 'react-dom';
|
|
|
77
68
|
import { CustomSelectInputOption } from '@commercetools-uikit/select-utils';
|
|
78
69
|
import { filterDataAttributes as filterDataAttributes$1, filterAriaAttributes } from '@commercetools-uikit/utils';
|
|
79
70
|
import 'react-required-if';
|
|
71
|
+
import _someInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/some';
|
|
80
72
|
import _Object$values from '@babel/runtime-corejs3/core-js-stable/object/values';
|
|
81
73
|
import _sortInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/sort';
|
|
74
|
+
import _Reflect$construct from '@babel/runtime-corejs3/core-js-stable/reflect/construct';
|
|
75
|
+
import _classCallCheck from '@babel/runtime-corejs3/helpers/esm/classCallCheck';
|
|
76
|
+
import _createClass from '@babel/runtime-corejs3/helpers/esm/createClass';
|
|
77
|
+
import _possibleConstructorReturn from '@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn';
|
|
78
|
+
import _getPrototypeOf from '@babel/runtime-corejs3/helpers/esm/getPrototypeOf';
|
|
79
|
+
import _inherits from '@babel/runtime-corejs3/helpers/esm/inherits';
|
|
82
80
|
import classnames from 'classnames';
|
|
83
81
|
import { oneLineTrim } from 'common-tags';
|
|
84
82
|
import has from 'lodash/has';
|
|
@@ -87,6 +85,7 @@ import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/insta
|
|
|
87
85
|
import _Math$trunc from '@babel/runtime-corejs3/core-js-stable/math/trunc';
|
|
88
86
|
import _Number$isNaN from '@babel/runtime-corejs3/core-js-stable/number/is-nan';
|
|
89
87
|
import Cleave from 'cleave.js/react';
|
|
88
|
+
import oneLine from 'common-tags/lib/oneLine';
|
|
90
89
|
import isFinite from 'lodash/isFinite';
|
|
91
90
|
import isUndefined from 'lodash/isUndefined';
|
|
92
91
|
import camelCase from 'lodash/camelCase';
|
|
@@ -99,6 +98,7 @@ import originalOmitDeep from 'omit-deep';
|
|
|
99
98
|
import compact from 'lodash/compact';
|
|
100
99
|
import _Set from '@babel/runtime-corejs3/core-js-stable/set';
|
|
101
100
|
import flatMap from 'lodash/flatMap';
|
|
101
|
+
import moment$1 from 'moment-timezone';
|
|
102
102
|
import '@babel/runtime-corejs3/helpers/get';
|
|
103
103
|
import _Date$now from '@babel/runtime-corejs3/core-js-stable/date/now';
|
|
104
104
|
import _spliceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/splice';
|
|
@@ -345,32 +345,6 @@ const ChannelPickerInput = _ref => {
|
|
|
345
345
|
};
|
|
346
346
|
var ChannelPickerInput$1 = ChannelPickerInput;
|
|
347
347
|
|
|
348
|
-
function _callSuper$7(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$7() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
349
|
-
function _isNativeReflectConstruct$7() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$7 = function () { return !!t; })(); }
|
|
350
|
-
let FormattedDateTime = /*#__PURE__*/function (_PureComponent) {
|
|
351
|
-
function FormattedDateTime() {
|
|
352
|
-
_classCallCheck(this, FormattedDateTime);
|
|
353
|
-
return _callSuper$7(this, FormattedDateTime, arguments);
|
|
354
|
-
}
|
|
355
|
-
_inherits(FormattedDateTime, _PureComponent);
|
|
356
|
-
return _createClass(FormattedDateTime, [{
|
|
357
|
-
key: "render",
|
|
358
|
-
value: function render() {
|
|
359
|
-
return jsx(ApplicationContext, {
|
|
360
|
-
render: _ref => {
|
|
361
|
-
let user = _ref.user;
|
|
362
|
-
return formatDateTime$1(this.props.type, this.props.value, {
|
|
363
|
-
timeZone: this?.props?.timeZone || user?.timeZone,
|
|
364
|
-
locale: this.props.intl.locale
|
|
365
|
-
});
|
|
366
|
-
}
|
|
367
|
-
});
|
|
368
|
-
}
|
|
369
|
-
}]);
|
|
370
|
-
}(PureComponent);
|
|
371
|
-
FormattedDateTime.displayName = 'FormattedDateTime';
|
|
372
|
-
var FormattedDateTime$1 = injectIntl(FormattedDateTime);
|
|
373
|
-
|
|
374
348
|
var messages$P = defineMessages({
|
|
375
349
|
noProductTypesFound: {
|
|
376
350
|
id: 'Products.ProductTypePickerInput.noProductTypesFound',
|
|
@@ -1470,7 +1444,7 @@ var usePrevious$1 = usePrevious;
|
|
|
1470
1444
|
|
|
1471
1445
|
function ownKeys$1f(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1472
1446
|
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(_context7 = ownKeys$1f(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context8 = ownKeys$1f(Object(t))).call(_context8, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1473
|
-
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 } } } };
|
|
1447
|
+
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 } } } };
|
|
1474
1448
|
const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
|
|
1475
1449
|
var _context, _context2;
|
|
1476
1450
|
if (!storesQueryResult) return null;
|
|
@@ -2024,9 +1998,7 @@ const useLocalizedKeyFallback = () => {
|
|
|
2024
1998
|
};
|
|
2025
1999
|
var useLocalizedKeyFallback$1 = useLocalizedKeyFallback;
|
|
2026
2000
|
|
|
2027
|
-
const useDebouncedPromiseCallback = (promiseCallback, wait) =>
|
|
2028
|
-
// eslint-disable-next-line testing-library/await-async-utils
|
|
2029
|
-
useCallback(debounce(promiseCallback, wait), [promiseCallback]);
|
|
2001
|
+
const useDebouncedPromiseCallback = (promiseCallback, wait) => useCallback(debounce(promiseCallback, wait), [promiseCallback]);
|
|
2030
2002
|
var useDebouncedPromiseCallback$1 = useDebouncedPromiseCallback;
|
|
2031
2003
|
|
|
2032
2004
|
function ownKeys$1b(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -2747,6 +2719,16 @@ const currencyData = {
|
|
|
2747
2719
|
currencyName: 'Czech Koruna',
|
|
2748
2720
|
countries: ['Czechia']
|
|
2749
2721
|
},
|
|
2722
|
+
CZK0: {
|
|
2723
|
+
isoCode: '203',
|
|
2724
|
+
fractionDigit: 0,
|
|
2725
|
+
symbol: 'Kč',
|
|
2726
|
+
unicode: 'Kč',
|
|
2727
|
+
htmlCode: 'Kč',
|
|
2728
|
+
hexCode: 'Kč',
|
|
2729
|
+
currencyName: 'Czech Koruna',
|
|
2730
|
+
countries: ['Czechia']
|
|
2731
|
+
},
|
|
2750
2732
|
DJF: {
|
|
2751
2733
|
isoCode: '262',
|
|
2752
2734
|
fractionDigit: 0,
|
|
@@ -2905,6 +2887,12 @@ const currencyData = {
|
|
|
2905
2887
|
currencyName: 'Forint',
|
|
2906
2888
|
countries: ['Hungary']
|
|
2907
2889
|
},
|
|
2890
|
+
HUF0: {
|
|
2891
|
+
isoCode: '348',
|
|
2892
|
+
fractionDigit: 0,
|
|
2893
|
+
currencyName: 'Forint',
|
|
2894
|
+
countries: ['Hungary']
|
|
2895
|
+
},
|
|
2908
2896
|
IDR: {
|
|
2909
2897
|
isoCode: '360',
|
|
2910
2898
|
fractionDigit: 2,
|
|
@@ -2917,6 +2905,12 @@ const currencyData = {
|
|
|
2917
2905
|
currencyName: 'New Israeli Sheqel',
|
|
2918
2906
|
countries: ['Israel']
|
|
2919
2907
|
},
|
|
2908
|
+
ILS0: {
|
|
2909
|
+
isoCode: '376',
|
|
2910
|
+
fractionDigit: 0,
|
|
2911
|
+
currencyName: 'New Israeli Sheqel',
|
|
2912
|
+
countries: ['Israel']
|
|
2913
|
+
},
|
|
2920
2914
|
INR: {
|
|
2921
2915
|
isoCode: '356',
|
|
2922
2916
|
fractionDigit: 2,
|
|
@@ -3021,6 +3015,12 @@ const currencyData = {
|
|
|
3021
3015
|
currencyName: 'Tenge',
|
|
3022
3016
|
countries: ['Kazakhstan']
|
|
3023
3017
|
},
|
|
3018
|
+
KZT0: {
|
|
3019
|
+
isoCode: '398',
|
|
3020
|
+
fractionDigit: 0,
|
|
3021
|
+
currencyName: 'Tenge',
|
|
3022
|
+
countries: ['Kazakhstan']
|
|
3023
|
+
},
|
|
3024
3024
|
LAK: {
|
|
3025
3025
|
isoCode: '418',
|
|
3026
3026
|
fractionDigit: 2,
|
|
@@ -3387,6 +3387,12 @@ const currencyData = {
|
|
|
3387
3387
|
currencyName: 'Turkish Lira',
|
|
3388
3388
|
countries: ['Turkey']
|
|
3389
3389
|
},
|
|
3390
|
+
TRY0: {
|
|
3391
|
+
isoCode: '949',
|
|
3392
|
+
fractionDigit: 0,
|
|
3393
|
+
currencyName: 'Turkish Lira',
|
|
3394
|
+
countries: ['Turkey']
|
|
3395
|
+
},
|
|
3390
3396
|
TTD: {
|
|
3391
3397
|
isoCode: '780',
|
|
3392
3398
|
fractionDigit: 2,
|
|
@@ -3399,6 +3405,12 @@ const currencyData = {
|
|
|
3399
3405
|
currencyName: 'New Taiwan Dollar',
|
|
3400
3406
|
countries: ['Taiwan (Province of China)']
|
|
3401
3407
|
},
|
|
3408
|
+
TWD0: {
|
|
3409
|
+
isoCode: '901',
|
|
3410
|
+
fractionDigit: 0,
|
|
3411
|
+
currencyName: 'New Taiwan Dollar',
|
|
3412
|
+
countries: ['Taiwan (Province of China)']
|
|
3413
|
+
},
|
|
3402
3414
|
TZS: {
|
|
3403
3415
|
isoCode: '834',
|
|
3404
3416
|
fractionDigit: 2,
|
|
@@ -3641,6 +3653,16 @@ const getData = (code, field) => {
|
|
|
3641
3653
|
};
|
|
3642
3654
|
const getFractionDigit = code => getData(code, 'fractionDigit');
|
|
3643
3655
|
|
|
3656
|
+
/**
|
|
3657
|
+
* Normalize currency codes to ISO 4217 alphabetic format (3 letters).
|
|
3658
|
+
* This is necessary because Intl money formatting expects ISO currency codes.
|
|
3659
|
+
* Example: HUF0 -> HUF.
|
|
3660
|
+
*/
|
|
3661
|
+
const normalizeCurrencyCode = code => {
|
|
3662
|
+
var _context;
|
|
3663
|
+
return typeof code === 'string' ? _sliceInstanceProperty(_context = code.toUpperCase()).call(_context, 0, 3) : code;
|
|
3664
|
+
};
|
|
3665
|
+
|
|
3644
3666
|
function ownKeys$19(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3645
3667
|
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(_context = ownKeys$19(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$19(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3646
3668
|
function formatMoneyRangeValue(value, intl) {
|
|
@@ -3660,17 +3682,17 @@ function formatMoneyValue(amount, currency, intl) {
|
|
|
3660
3682
|
} : {}), intl);
|
|
3661
3683
|
}
|
|
3662
3684
|
function getFractionedAmount(moneyValue) {
|
|
3663
|
-
const
|
|
3664
|
-
fractionDigits = _moneyValue$fractionD === void 0 ? 2 : _moneyValue$fractionD;
|
|
3685
|
+
const fractionDigits = moneyValue.fractionDigits ?? getFractionDigit(moneyValue.currencyCode) ?? 2;
|
|
3665
3686
|
|
|
3666
3687
|
// the amount should be available on preciseAmount for highPrecision
|
|
3667
3688
|
const amount = moneyValue.type === PRECISION_TYPES.highPrecision ? moneyValue.preciseAmount : moneyValue.centAmount;
|
|
3668
3689
|
return amount / 10 ** fractionDigits;
|
|
3669
3690
|
}
|
|
3670
|
-
function formatMoney$2(moneyValue, intl
|
|
3691
|
+
function formatMoney$2(moneyValue, intl) {
|
|
3692
|
+
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
3671
3693
|
return intl.formatNumber(moneyValue.fractionedAmount ?? getFractionedAmount(moneyValue), _objectSpread$19({
|
|
3672
3694
|
style: 'currency',
|
|
3673
|
-
currency: moneyValue.currencyCode,
|
|
3695
|
+
currency: normalizeCurrencyCode(moneyValue.currencyCode),
|
|
3674
3696
|
minimumFractionDigits: moneyValue.fractionDigits
|
|
3675
3697
|
}, options));
|
|
3676
3698
|
}
|
|
@@ -9589,7 +9611,7 @@ function _isNativeReflectConstruct$5() { try { var t = !Boolean.prototype.valueO
|
|
|
9589
9611
|
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 } } } };
|
|
9590
9612
|
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',
|
|
9591
9613
|
// transactions on payment entity
|
|
9592
|
-
'shopping-list', 'shopping-list-text-line-item', 'standalone-price', 'review', 'recurring-order'];
|
|
9614
|
+
'shopping-list', 'shopping-list-text-line-item', 'standalone-price', 'review', 'recurring-order', 'store'];
|
|
9593
9615
|
let CustomFieldDefinitionsConnector = /*#__PURE__*/function (_Component) {
|
|
9594
9616
|
function CustomFieldDefinitionsConnector() {
|
|
9595
9617
|
_classCallCheck(this, CustomFieldDefinitionsConnector);
|
|
@@ -13923,14 +13945,11 @@ const getAttributeValueByType = _ref10 => {
|
|
|
13923
13945
|
fallbackOrder: projectLanguages
|
|
13924
13946
|
}));
|
|
13925
13947
|
case 'money':
|
|
13926
|
-
return safelyAddFallback(
|
|
13927
|
-
style: 'currency',
|
|
13928
|
-
currency: value.currencyCode
|
|
13929
|
-
}));
|
|
13948
|
+
return safelyAddFallback(formatMoneyValue(value.centAmount, value.currencyCode, intl));
|
|
13930
13949
|
case 'time':
|
|
13931
13950
|
case 'datetime':
|
|
13932
13951
|
case 'date':
|
|
13933
|
-
return jsx(FormattedDateTime
|
|
13952
|
+
return jsx(FormattedDateTime, {
|
|
13934
13953
|
type: type,
|
|
13935
13954
|
value: value
|
|
13936
13955
|
});
|
|
@@ -14129,4 +14148,4 @@ function withPendingRequests() {
|
|
|
14129
14148
|
|
|
14130
14149
|
var CategorySearchPickerOptionFragment = { kind: "Document", definitions: [{ kind: "FragmentDefinition", name: { kind: "Name", value: "CategorySearchPickerOptionFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CategorySearch" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "externalId" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "slugAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "parent" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "ancestors" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 685, source: { body: "query SearchCategoryReference($locale: Locale!, $text: String!) {\n categories: categoryAutocomplete(locale: $locale, text: $text) {\n results {\n ...CategorySearchPickerOptionFragment\n }\n }\n}\n\nquery FetchCategoriesByIds($where: String!) {\n categories(where: $where) {\n results {\n id\n nameAllLocales {\n locale\n value\n }\n }\n }\n}\n\nfragment CategorySearchPickerOptionFragment on CategorySearch {\n id\n externalId\n nameAllLocales {\n locale\n value\n }\n slugAllLocales {\n locale\n value\n }\n parent {\n nameAllLocales {\n locale\n value\n }\n }\n ancestors {\n nameAllLocales {\n locale\n value\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
14131
14150
|
|
|
14132
|
-
export { booleanField as BooleanField, CUSTOM_FIELD_TYPES, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, ChannelPickerInput$1 as ChannelPickerInput, CountriesPicker, customFieldDefinitionsConnector as CustomFieldDefinitionsConnector, CustomFieldInput$1 as CustomFieldInput, CustomFieldTooltip$1 as CustomFieldTooltip, CustomFieldTypeDefinitionsConnector$1 as CustomFieldTypeDefinitionsConnector, CustomFields$1 as CustomFields, CustomFieldsErrorTextNotification$1 as CustomFieldsErrorTextNotification, CustomFieldsFormField$1 as CustomFieldsFormField, CustomerGroupPickerInput$1 as CustomerGroupPickerInput, DefaultPageSizes, EMAIL_REGEX, FILTER_TYPES, FileInput$1 as FileInput,
|
|
14151
|
+
export { booleanField as BooleanField, CUSTOM_FIELD_TYPES, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, ChannelPickerInput$1 as ChannelPickerInput, CountriesPicker, customFieldDefinitionsConnector as CustomFieldDefinitionsConnector, CustomFieldInput$1 as CustomFieldInput, CustomFieldTooltip$1 as CustomFieldTooltip, CustomFieldTypeDefinitionsConnector$1 as CustomFieldTypeDefinitionsConnector, CustomFields$1 as CustomFields, CustomFieldsErrorTextNotification$1 as CustomFieldsErrorTextNotification, CustomFieldsFormField$1 as CustomFieldsFormField, CustomerGroupPickerInput$1 as CustomerGroupPickerInput, DefaultPageSizes, EMAIL_REGEX, FILTER_TYPES, FileInput$1 as FileInput, FormattedLocalizedString, LOWER_STORES_LIMIT, LabelRange$1 as LabelRange, MC_RESOURCES_WITH_KEYS, MissingValueField$1 as MissingValueField, MultiValueSearchInput$1 as MultiValueSearchInput, numericFormatInput as NumericFormatInput, Option$2 as Option, PRECISION_TYPES, pimIndexerProvider as PimIndexerProvider, PlatformLimitsFetcherQuery, ProductAttributeInput, ProductAttributes, ProductPickerInput$1 as ProductPickerInput, ProductSelectionsPicker as ProductSelectionPicker, QUERY_LIMIT, QUERY_MAX_LIMIT, RESOURCES_WITH_PLATFORM_LIMITS, RecurrentIntervalPicker$1 as RecurrentIntervalPicker, RequestCache$1 as RequestCache, StoreSelectField$1 as StoreSelectField, StoreSelectInput$1 as StoreSelectInput, ThrottledField$1 as ThrottledField, UPPER_STORES_LIMIT, VALIDATOR_INTEGER, VALIDATOR_NUMERIC, VALIDATOR_REQUIRED, WithPimIndexer$1 as WithPimIndexer, allowedProperties, and, attributeToCustomField, attributesMapToNameValuePairs, base64ToString, messages$c as booleanMessages, buildSearchQuery$1 as buildSearchQuery, businessRoleConstants$1 as businessRoleConstants, messages$7 as businessRoleMessages, businessRoleKeys$1 as businessRoles, capitalizeFirst, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, createGraphQlUpdateActions, createNextSortDefinition$1 as createNextSortDefinition, createPlatformLimitsQueryVariables, createReducer, createResourceReducer, customFields as customFieldsTransformer, dateTransformer$1 as dateTransformer, exact, exists, extractErrorFromGraphQlResponse, filterCustomTypeUpdateActionValues, filterDataAttributes, filterEmptyValues, formatCustomField, formatCustomerAddress, formatCustomerName, formatDateRangeValue, formatDateTime$1 as formatDateTime, formatDiscount, formatMoney$2 as formatMoney, formatMoneyRangeValue, formatMoneyValue, formatPercentage, formatAttribute as formatProductAttribute, getAncestors, getAttributeValueByType, getAttributeValueType, getBottomOption, getBulkNotification, getCategoryLevel, getCountsFromBulkSummary, getDiscountValue, getDisplayName$1 as getDisplayName, getFractionDigit, getFractionedAmount, getIndexesOfInvalidValues, getMinimumPricesByCurrencyCode, getNetUnitPrice, getPathName, getPrefixSearchBounds$1 as getPrefixSearchBounds, getPriceChannelName, getProductAttributes, getProductLevelAttributes, getReferenceTypeId, getSelectedPrice, getStampToneByPublishState, getTimeZoneId, getTimeZoneLabel, getTypeNameOfType, graphqlCategoryLevelTransformer, dateTransformer as graphqlDateTransformer, missingLocaleTransformer as graphqlMissingLocaleTransformer, missingTransformer as graphqlMissingTransformer, numberTransformer as graphqlNumberTransformer, graphqlQueryBuilder, referenceTransformer as graphqlReferenceTransformer, textTransformer as graphqlTextTransformer, hasInvalidInputError$1 as hasInvalidInputError, hasSemanticError$1 as hasSemanticError, injectCustomerGroupsPlatformLimits$1 as injectCustomerGroupsPlatformLimits, injectCustomersPlatformLimits$1 as injectCustomersPlatformLimits, injectDataTablePaginationState$1 as injectDataTablePaginationState, injectModalState$3 as injectModalState, injectNotifications$1 as injectNotifications, injectPimIndexer, injectShippingMethodsPlatformLimits$1 as injectShippingMethodsPlatformLimits, injectStorage$1 as injectStorage, injectTaxCategoriesPlatformLimits$1 as injectTaxCategoriesPlatformLimits, injectModalState$1 as injectToggleState, injectZonesPlatformLimits$1 as injectZonesPlatformLimits, isEmptyFilter as isEmpty, isEmptyValue, isUUID$1 as isUUID, isValidISODate, isValidISODateTime, isValidISOTime, isVariantLevelAttribute, keepDisplayName$1 as keepDisplayName, mapShippingRateTierToGraphQL, mapStoresToOptions, mapTimeZonesToOptions, minusify, messages$9 as missingValueMessages, nameValuePairsToMap, normalizeCurrencyCode, normalizeProductSettings, not, omitDeep, omitSetsOfSets, or, commonPickerMessages as pickerMessages, range, reorderArrayItems, resolveStatusType, safelyAddFallback, sanitize, searchCategories, serializeAttributeValueForPimSearch, setDisplayName$1 as setDisplayName, setToArray, shallowEqual, shouldUpdateAttributeInput, slugify, sortDataByIdsArray, sortRequiresLanguage, splitProductAndVariantAttributes, splitVariantAttributesByConstraint, stringToBase64, swapArrayItems, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, useBusinessUnitsLimits$1 as useBusinessUnitsPlatformLimits, useCachedCategoryOptions, useCurrentOption, useDnDContext as useCustomFieldsDnDContext, useCustomerGroupsPlatformLimits$1 as useCustomerGroupsPlatformLimits, useCustomersPlatformLimits$1 as useCustomersPlatformLimits, useDebouncedPromiseCallback$1 as useDebouncedPromiseCallback, useFormatCustomField, useFormatLocalizedFieldToString, useFormatLocalizedString, useIsFieldDuplicated$1 as useIsFieldDuplicated, useLoadOptions$1 as useLoadOptions, useLocalizedKeyFallback$1 as useLocalizedKeyFallback, usePendingRequests, usePersistedReminder$1 as usePersistedReminder, usePersistedTableConfiguration$1 as usePersistedTableConfiguration, usePimIndexer, usePrevious$1 as usePrevious, useProductSelectionsFetcher$1 as useProductSelectionsFetcher, useProductSelectionsTotalFetcher$1 as useProductSelectionsTotalFetcher, useRecurrenceIntervals, useRoleNotificationEffect$1 as useRoleNotificationEffect, useShippingMethodsPlatformLimits, useShowBulkNotification, useStorage$1 as useStorage, useStoreKeysInDataFences$1 as useStoreKeysInDataFences, useStoreSearchIndexStatusFetcher$1 as useStoreSearchIndexStatusFetcher, useStoresListFetcher$1 as useStoresListFetcher, useStoresLimits$1 as useStoresPlatformLimits, useStoresSearchFetcher$1 as useStoresSearchFetcher, useTaxCategoriesPlatformLimits, useTotalNumberOfStoresFetcher$1 as useTotalNumberOfStoresFetcher, validateFilter$2 as validateCustomField, validations as validateCustomFields, validateFilter$1 as validateDate, validateMultiOptionEnum, validateFilter as validateNumber, validateSingleOptionEnum, validateText, validatedInput, validationMessages, valueMapping, withPendingRequests, withProps$1 as withProps, withRedirectTo$1 as withRedirectTo, withoutEmptyErrorsByField$1 as withoutEmptyErrorsByField, wrapDisplayName$1 as wrapDisplayName };
|
|
@@ -7,7 +7,6 @@ import FileInput from "./components/buttons/file-input/file-input.jsx";
|
|
|
7
7
|
import ChannelPickerInput from "./components/channel-picker-input/index.js";
|
|
8
8
|
import CountriesPicker from "./components/country-picker/index.js";
|
|
9
9
|
import CustomerGroupPickerInput from "./components/customer-group-picker-input/index.js";
|
|
10
|
-
import FormattedDateTime from "./components/formatted-date-time/formatted-date-time.jsx";
|
|
11
10
|
import { FormattedLocalizedString } from "./components/formatted-localized-string/index.js";
|
|
12
11
|
import keepDisplayName from "./components/keep-display-name/index.js";
|
|
13
12
|
import pickerMessages from "./components/messages.js";
|
|
@@ -108,4 +107,5 @@ import getIndexesOfInvalidValues from "./utils/validation/get-indexes-of-invalid
|
|
|
108
107
|
import withoutEmptyErrorsByField from "./utils/validation/without-empty-errors-by-field.js";
|
|
109
108
|
import withPendingRequests from "./utils/with-pending-requests/with-pending-requests.jsx";
|
|
110
109
|
export { QUERY_LIMIT, QUERY_MAX_LIMIT, LOWER_STORES_LIMIT, UPPER_STORES_LIMIT, } from "./constants/index.js";
|
|
111
|
-
export {
|
|
110
|
+
export { normalizeCurrencyCode } from "./utils/currency/index.js";
|
|
111
|
+
export { allowedProperties, and, attributesMapToNameValuePairs, attributeToCustomField, base64ToString, BooleanField, booleanMessages, buildSearchQuery, businessRoles, businessRoleConstants, businessRoleMessages, capitalizeFirst, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, ChannelPickerInput, CustomerGroupPickerInput, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, CountriesPicker, createGraphQlUpdateActions, createNextSortDefinition, createPlatformLimitsQueryVariables, createReducer, createResourceReducer, CustomFieldDefinitionsConnector, CustomFieldTypeDefinitionsConnector, CustomFields, useDnDContext as useCustomFieldsDnDContext, CustomFieldsErrorTextNotification, CustomFieldsFormField, CustomFieldInput, customFieldsTransformer, CustomFieldTooltip, dateTransformer, DefaultPageSizes, EMAIL_REGEX, exact, exists, extractErrorFromGraphQlResponse, FileInput, filterCustomTypeUpdateActionValues, filterDataAttributes, filterEmptyValues, FILTER_TYPES, formatCustomerAddress, formatCustomerName, formatCustomField, formatDateTime, formatDateRangeValue, formatDiscount, formatMoneyRangeValue, formatMoney, formatMoneyValue, formatPercentage, formatProductAttribute, FormattedLocalizedString, getAncestors, getAttributeValueByType, getAttributeValueType, getBottomOption, getBulkNotification, getCategoryLevel, getCountsFromBulkSummary, serializeAttributeValueForPimSearch, getDiscountValue, getDisplayName, getFractionedAmount, getFractionDigit, getIndexesOfInvalidValues, getMinimumPricesByCurrencyCode, getNetUnitPrice, getPathName, getPrefixSearchBounds, getProductAttributes, getProductLevelAttributes, isVariantLevelAttribute, getPriceChannelName, getReferenceTypeId, getSelectedPrice, getStampToneByPublishState, getTimeZoneId, getTimeZoneLabel, getTypeNameOfType, graphqlCategoryLevelTransformer, graphqlDateTransformer, graphqlMissingLocaleTransformer, graphqlMissingTransformer, graphqlNumberTransformer, graphqlQueryBuilder, graphqlReferenceTransformer, graphqlTextTransformer, hasInvalidInputError, hasSemanticError, injectCustomerGroupsPlatformLimits, useBusinessUnitsPlatformLimits, injectCustomersPlatformLimits, injectDataTablePaginationState, injectModalState, injectNotifications, injectPimIndexer, injectShippingMethodsPlatformLimits, injectStorage, injectTaxCategoriesPlatformLimits, injectToggleState, injectZonesPlatformLimits, isEmpty, isEmptyValue, isUUID, isValidISODate, isValidISODateTime, isValidISOTime, keepDisplayName, LabelRange, mapShippingRateTierToGraphQL, mapTimeZonesToOptions, mapStoresToOptions, MC_RESOURCES_WITH_KEYS, minusify, MissingValueField, missingValueMessages, MultiValueSearchInput, nameValuePairsToMap, normalizeProductSettings, not, NumericFormatInput, omitDeep, omitSetsOfSets, or, Option, pickerMessages, PimIndexerProvider, PlatformLimitsFetcherQuery, PRECISION_TYPES, ProductAttributeInput, ProductAttributes, ProductPickerInput, ProductSelectionPicker, range, RecurrentIntervalPicker, reorderArrayItems, RequestCache, resolveStatusType, RESOURCES_WITH_PLATFORM_LIMITS, safelyAddFallback, sanitize, searchCategories, setToArray, setDisplayName, shallowEqual, shouldUpdateAttributeInput, slugify, sortDataByIdsArray, sortRequiresLanguage, splitVariantAttributesByConstraint, splitProductAndVariantAttributes, StoreSelectField, StoreSelectInput, stringToBase64, swapArrayItems, ThrottledField, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, useCachedCategoryOptions, useCurrentOption, useCustomersPlatformLimits, useCustomerGroupsPlatformLimits, useDebouncedPromiseCallback, useFormatCustomField, useFormatLocalizedFieldToString, useFormatLocalizedString, usePersistedReminder, useIsFieldDuplicated, useLocalizedKeyFallback, useLoadOptions, usePendingRequests, usePersistedTableConfiguration, usePimIndexer, usePrevious, useProductSelectionsFetcher, useProductSelectionsTotalFetcher, useRecurrenceIntervals, useRoleNotificationEffect, useShowBulkNotification, useStorage, type UseStorageOptions, useStoreKeysInDataFences, useStoresListFetcher, useStoresSearchFetcher, useStoreSearchIndexStatusFetcher, useStoresPlatformLimits, useTaxCategoriesPlatformLimits, useTotalNumberOfStoresFetcher, useShippingMethodsPlatformLimits, validatedInput, validateCustomField, validateCustomFields, CUSTOM_FIELD_TYPES, validateDate, validateMultiOptionEnum, validateSingleOptionEnum, validateText, validateNumber, validationMessages, VALIDATOR_INTEGER, VALIDATOR_NUMERIC, VALIDATOR_REQUIRED, valueMapping, withProps, withoutEmptyErrorsByField, withPendingRequests, WithPimIndexer, withRedirectTo, wrapDisplayName, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { normalizeCurrencyCode } from "../formats/money/utils/normalize-currency-code.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export function formatMoneyRangeValue(value: any, intl: any): any;
|
|
2
2
|
export function formatMoneyValue(amount: any, currency: any, intl: any): any;
|
|
3
3
|
export function getFractionedAmount(moneyValue: any): number;
|
|
4
|
-
export function formatMoney(moneyValue: any, intl: any, options
|
|
4
|
+
export function formatMoney(moneyValue: any, intl: any, options?: {}): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/experimental-components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/core": "^7.22.11",
|
|
27
27
|
"@babel/runtime-corejs3": "^7.21.0",
|
|
28
|
-
"@commercetools-frontend/actions-global": "
|
|
29
|
-
"@commercetools-frontend/application-components": "
|
|
30
|
-
"@commercetools-frontend/application-shell": "
|
|
31
|
-
"@commercetools-frontend/application-shell-connectors": "
|
|
32
|
-
"@commercetools-frontend/constants": "
|
|
33
|
-
"@commercetools-frontend/l10n": "
|
|
34
|
-
"@commercetools-frontend/sdk": "
|
|
35
|
-
"@commercetools-frontend/sentry": "
|
|
36
|
-
"@commercetools-frontend/ui-kit": "20.
|
|
37
|
-
"@commercetools-uikit/design-system": "20.
|
|
38
|
-
"@commercetools-uikit/select-utils": "20.
|
|
39
|
-
"@commercetools-uikit/utils": "20.
|
|
28
|
+
"@commercetools-frontend/actions-global": "27.1.0",
|
|
29
|
+
"@commercetools-frontend/application-components": "27.1.0",
|
|
30
|
+
"@commercetools-frontend/application-shell": "27.1.0",
|
|
31
|
+
"@commercetools-frontend/application-shell-connectors": "27.1.0",
|
|
32
|
+
"@commercetools-frontend/constants": "27.1.0",
|
|
33
|
+
"@commercetools-frontend/l10n": "27.1.0",
|
|
34
|
+
"@commercetools-frontend/sdk": "27.1.0",
|
|
35
|
+
"@commercetools-frontend/sentry": "27.1.0",
|
|
36
|
+
"@commercetools-frontend/ui-kit": "20.5.0",
|
|
37
|
+
"@commercetools-uikit/design-system": "20.5.0",
|
|
38
|
+
"@commercetools-uikit/select-utils": "20.5.0",
|
|
39
|
+
"@commercetools-uikit/utils": "20.5.0",
|
|
40
40
|
"@emotion/react": "11.14.0",
|
|
41
41
|
"@hello-pangea/dnd": "^18.0.1",
|
|
42
42
|
"classnames": "2.5.1",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"tiny-invariant": "1.3.3",
|
|
58
58
|
"tiny-warning": "1.0.3",
|
|
59
59
|
"uuid": "11.1.0",
|
|
60
|
-
"@commercetools/merchant-center-shared-ui": "0.0.
|
|
60
|
+
"@commercetools/merchant-center-shared-ui": "0.0.4"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@apollo/client": "3.12.4",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"@testing-library/react": "16.3.2",
|
|
67
67
|
"@types/debounce-promise": "3.1.9",
|
|
68
68
|
"@types/jest": "^30.0.0",
|
|
69
|
-
"@types/node": "24.
|
|
70
|
-
"@types/react": "19.2.
|
|
69
|
+
"@types/node": "24.11.0",
|
|
70
|
+
"@types/react": "19.2.14",
|
|
71
71
|
"formik": "2.4.9",
|
|
72
72
|
"graphql": "16.12.0",
|
|
73
73
|
"graphql-tag": "2.12.6",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export class FormattedDateTime extends PureComponent<any, any, any> {
|
|
2
|
-
static displayName: string;
|
|
3
|
-
static propTypes: {
|
|
4
|
-
type: any;
|
|
5
|
-
value: any;
|
|
6
|
-
timeZone: any;
|
|
7
|
-
intl: any;
|
|
8
|
-
};
|
|
9
|
-
constructor(props: any);
|
|
10
|
-
constructor(props: any, context: any);
|
|
11
|
-
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
-
}
|
|
13
|
-
declare const _default: import("react").FC<import("react-intl").WithIntlProps<any>> & {
|
|
14
|
-
WrappedComponent: import("react").ComponentType<any>;
|
|
15
|
-
};
|
|
16
|
-
export default _default;
|
|
17
|
-
import { PureComponent } from 'react';
|