@commercetools-frontend/experimental-components 2.0.0 → 3.0.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.
@@ -16,7 +16,7 @@ import _getPrototypeOf from '@babel/runtime-corejs3/helpers/esm/getPrototypeOf';
16
16
  import _someInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/some';
17
17
  import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
18
18
  import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
19
- import React, { useEffect, useCallback, useState, useContext, useRef, useMemo, PureComponent, Component, createElement, Children, cloneElement, memo, createContext, isValidElement } from 'react';
19
+ import React, { useEffect, useCallback, useState, useContext, useRef, useMemo, PureComponent, Component, memo, createContext, isValidElement } from 'react';
20
20
  import flowRight from 'lodash.flowright';
21
21
  import { graphql as graphql$1, withApollo } from '@apollo/client/react/hoc';
22
22
  import flatten from 'lodash.flatten';
@@ -37,7 +37,7 @@ import _taggedTemplateLiteral from '@babel/runtime-corejs3/helpers/esm/taggedTem
37
37
  import oneLine from 'common-tags/lib/oneLine';
38
38
  import moment from 'moment-timezone';
39
39
  import isNil$1 from 'lodash.isnil';
40
- import { NO_VALUE_FALLBACK, GRAPHQL_TARGETS, DOMAINS, MC_API_PROXY_TARGETS } from '@commercetools-frontend/constants';
40
+ import { NO_VALUE_FALLBACK, GRAPHQL_TARGETS, DOMAINS, MC_API_PROXY_TARGETS, SUPPORT_PORTAL_URL } from '@commercetools-frontend/constants';
41
41
  import { reportErrorToSentry } from '@commercetools-frontend/sentry';
42
42
  import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
43
43
  import _valuesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/values';
@@ -45,7 +45,7 @@ import { usePaginationState, useDataTableSortingState, useToggleState, Spacings,
45
45
  import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
46
46
  import { useShowNotification, useShowApiErrorNotification, useOnActionError, useHideAllPageNotifications } from '@commercetools-frontend/actions-global';
47
47
  import PropTypes from 'prop-types';
48
- import { useModalState, CustomFormModalPage, ConfirmationDialog, InfoDialog } from '@commercetools-frontend/application-components';
48
+ import { useModalState, CustomFormModalPage, PageContentNarrow, ConfirmationDialog, InfoDialog } from '@commercetools-frontend/application-components';
49
49
  import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
50
50
  import { useApplicationContext, ApplicationContext, withApplicationContext } from '@commercetools-frontend/application-shell-connectors';
51
51
  import { GtmContext, useFeatureToggle, useAdapterStatus } from '@commercetools-frontend/application-shell';
@@ -3125,7 +3125,8 @@ var ChannelPickerInput = function ChannelPickerInput(_ref) {
3125
3125
  onBlur = _ref.onBlur,
3126
3126
  value = _ref.value,
3127
3127
  hasError = _ref.hasError,
3128
- onError = _ref.onError;
3128
+ onError = _ref.onError,
3129
+ placeholder = _ref.placeholder;
3129
3130
  var formatLocalizedFieldToString = useFormatLocalizedFieldToString();
3130
3131
  var _useIntl = useIntl(),
3131
3132
  formatMessage = _useIntl.formatMessage;
@@ -3207,7 +3208,7 @@ var ChannelPickerInput = function ChannelPickerInput(_ref) {
3207
3208
  children: jsx(AsyncSelectInput, {
3208
3209
  id: name,
3209
3210
  name: name,
3210
- placeholder: formatMessage(messages$F.placeholder),
3211
+ placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : formatMessage(messages$F.placeholder),
3211
3212
  loadOptions: loadOptionsDebounced,
3212
3213
  defaultOptions: true,
3213
3214
  showOptionGroupDivider: true,
@@ -3233,11 +3234,11 @@ var ChannelPickerInput = function ChannelPickerInput(_ref) {
3233
3234
  };
3234
3235
  ChannelPickerInput.displayName = 'ChannelPickerInput';
3235
3236
 
3236
- function _createSuper$b(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$b(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3237
- function _isNativeReflectConstruct$b() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
3237
+ function _createSuper$9(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$9(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3238
+ function _isNativeReflectConstruct$9() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
3238
3239
  var FormattedDateTime = /*#__PURE__*/function (_PureComponent) {
3239
3240
  _inherits(FormattedDateTime, _PureComponent);
3240
- var _super = _createSuper$b(FormattedDateTime);
3241
+ var _super = _createSuper$9(FormattedDateTime);
3241
3242
  function FormattedDateTime() {
3242
3243
  _classCallCheck(this, FormattedDateTime);
3243
3244
  return _super.apply(this, arguments);
@@ -3269,12 +3270,12 @@ var keepDisplayName = function keepDisplayName(component) {
3269
3270
 
3270
3271
  function ownKeys$1a(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3271
3272
  function _objectSpread$1a(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1a(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$1a(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
3272
- function _createSuper$a(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$a(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3273
- function _isNativeReflectConstruct$a() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
3273
+ function _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3274
+ function _isNativeReflectConstruct$8() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
3274
3275
  var withMouseOverState = function withMouseOverState(BaseComponent) {
3275
3276
  var WithMouseOverState = /*#__PURE__*/function (_Component) {
3276
3277
  _inherits(WithMouseOverState, _Component);
3277
- var _super = _createSuper$a(WithMouseOverState);
3278
+ var _super = _createSuper$8(WithMouseOverState);
3278
3279
  function WithMouseOverState() {
3279
3280
  var _context;
3280
3281
  var _this;
@@ -3318,8 +3319,8 @@ var withMouseOverState = function withMouseOverState(BaseComponent) {
3318
3319
 
3319
3320
  function ownKeys$19(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3320
3321
  function _objectSpread$19(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$19(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$19(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
3321
- function _createSuper$9(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$9(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3322
- function _isNativeReflectConstruct$9() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
3322
+ function _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3323
+ function _isNativeReflectConstruct$7() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
3323
3324
  var styles$i = {
3324
3325
  "size": "throttled-field-module__size___324jx",
3325
3326
  "input-text": "throttled-field-module__input-text___3zFFp",
@@ -3334,7 +3335,7 @@ var styles$i = {
3334
3335
  };
3335
3336
  var ThrottledField = /*#__PURE__*/function (_PureComponent) {
3336
3337
  _inherits(ThrottledField, _PureComponent);
3337
- var _super = _createSuper$9(ThrottledField);
3338
+ var _super = _createSuper$7(ThrottledField);
3338
3339
  function ThrottledField() {
3339
3340
  var _context;
3340
3341
  var _this;
@@ -3493,8 +3494,8 @@ var messages$E = defineMessages({
3493
3494
  }
3494
3495
  });
3495
3496
 
3496
- function _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3497
- function _isNativeReflectConstruct$8() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
3497
+ function _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3498
+ function _isNativeReflectConstruct$6() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
3498
3499
  var styles$h = {
3499
3500
  "block": "search-input-module__block___1uM-y",
3500
3501
  "container": "search-input-module__container___9u6if",
@@ -3512,7 +3513,7 @@ var styles$h = {
3512
3513
  };
3513
3514
  var SearchInput = /*#__PURE__*/function (_Component) {
3514
3515
  _inherits(SearchInput, _Component);
3515
- var _super = _createSuper$8(SearchInput);
3516
+ var _super = _createSuper$6(SearchInput);
3516
3517
  function SearchInput() {
3517
3518
  var _context;
3518
3519
  var _this;
@@ -5124,13 +5125,13 @@ var GetProductTypesQuery = { kind: "Document", definitions: [{ kind: "OperationD
5124
5125
 
5125
5126
  function ownKeys$10(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5126
5127
  function _objectSpread$10(target) { for (var i = 1; i < arguments.length; i++) { var _context4, _context5; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context4 = ownKeys$10(Object(source), !0)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context5 = ownKeys$10(Object(source))).call(_context5, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
5127
- function _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
5128
- function _isNativeReflectConstruct$7() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
5128
+ function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
5129
+ function _isNativeReflectConstruct$5() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
5129
5130
  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 } } } };
5130
5131
  var customizableResources$1 = ['asset', 'category', 'channel', 'customer', 'order', 'discount-code', 'cart-discount', 'inventory-entry', 'line-item', 'custom-line-item', 'product-price', 'payment', 'payment-interface-interaction', 'shopping-list', 'shopping-list-text-line-item', 'standalone-price', 'review'];
5131
5132
  var CustomFieldDefinitionsConnector = /*#__PURE__*/function (_Component) {
5132
5133
  _inherits(CustomFieldDefinitionsConnector, _Component);
5133
- var _super = _createSuper$7(CustomFieldDefinitionsConnector);
5134
+ var _super = _createSuper$5(CustomFieldDefinitionsConnector);
5134
5135
  function CustomFieldDefinitionsConnector() {
5135
5136
  _classCallCheck(this, CustomFieldDefinitionsConnector);
5136
5137
  return _super.apply(this, arguments);
@@ -5305,8 +5306,8 @@ var createEmptyCustomFields = function createEmptyCustomFields(typeDefinition) {
5305
5306
  };
5306
5307
  };
5307
5308
 
5308
- function _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
5309
- function _isNativeReflectConstruct$6() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
5309
+ function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
5310
+ function _isNativeReflectConstruct$4() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
5310
5311
  var FetchTypeDefinitionsWithNamesQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchTypeDefinitionsWithNamesQuery" }, 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: "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: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "fieldDefinitions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "required" }, 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: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ReferenceType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "referenceTypeId" }, 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: "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: "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: "Field", name: { kind: "Name", value: "name" }, 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: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, 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: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, 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: "Field", name: { kind: "Name", value: "name" }, 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: [] }] } }, { kind: "Field", name: { kind: "Name", value: "inputHint" }, arguments: [], directives: [] }] } }] } }] } }] } }], loc: { start: 0, end: 1445, source: { body: "query FetchTypeDefinitionsWithNamesQuery(\n $where: String\n $limit: Int\n $offset: Int\n) {\n typeDefinitions(where: $where, limit: $limit, offset: $offset) {\n results {\n id\n key\n nameAllLocales {\n value\n locale\n }\n fieldDefinitions {\n required\n type {\n name\n ... on ReferenceType {\n referenceTypeId\n }\n ... on SetType {\n elementType {\n name\n ... on ReferenceType {\n referenceTypeId\n name\n }\n ... on EnumType {\n values {\n key\n label\n }\n name\n }\n ... on LocalizedEnumType {\n values {\n key\n labelAllLocales {\n locale\n value\n }\n }\n }\n }\n }\n ... on LocalizedEnumType {\n values {\n key\n labelAllLocales {\n locale\n value\n }\n }\n }\n ... on EnumType {\n values {\n key\n label\n }\n name\n }\n }\n name\n labelAllLocales {\n value\n locale\n }\n inputHint\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
5311
5312
  var customizableResources = ['asset', 'address', 'business-unit', 'category', 'channel', 'customer', 'order', 'store', 'discount-code', 'inventory-entry', 'line-item', 'custom-line-item', 'product-price', 'payment', 'payment-interface-interaction', 'shopping-list', 'shopping-list-text-line-item', 'standalone-price', 'review', 'cart-discount', 'product-selection'];
5312
5313
  var emptyTypeDefinitions = {
@@ -5316,7 +5317,7 @@ var emptyTypeDefinitions = {
5316
5317
  };
5317
5318
  var CustomFieldTypeDefinitionsConnector = /*#__PURE__*/function (_Component) {
5318
5319
  _inherits(CustomFieldTypeDefinitionsConnector, _Component);
5319
- var _super = _createSuper$6(CustomFieldTypeDefinitionsConnector);
5320
+ var _super = _createSuper$4(CustomFieldTypeDefinitionsConnector);
5320
5321
  function CustomFieldTypeDefinitionsConnector() {
5321
5322
  _classCallCheck(this, CustomFieldTypeDefinitionsConnector);
5322
5323
  return _super.apply(this, arguments);
@@ -7274,84 +7275,6 @@ function CustomNestedFieldInput(props) {
7274
7275
  }
7275
7276
  CustomNestedFieldInput.displayName = 'CustomNestedFieldInput';
7276
7277
 
7277
- function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7278
- function _isNativeReflectConstruct$5() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
7279
- var isEmptyChildren = function isEmptyChildren(children) {
7280
- return Children.count(children) === 0;
7281
- };
7282
- var Match = /*#__PURE__*/function (_PureComponent) {
7283
- _inherits(Match, _PureComponent);
7284
- var _super = _createSuper$5(Match);
7285
- function Match() {
7286
- _classCallCheck(this, Match);
7287
- return _super.apply(this, arguments);
7288
- }
7289
- _createClass(Match, [{
7290
- key: "render",
7291
- value: function render() {
7292
- if (this.props.isTouched && this.props.hasError) {
7293
- if (this.props.component) return /*#__PURE__*/createElement(this.props.component);
7294
- if (this.props.children && !isEmptyChildren(this.props.children)) return Children.only(this.props.children);
7295
- }
7296
- return null;
7297
- }
7298
- }]);
7299
- return Match;
7300
- }(PureComponent);
7301
- Match.displayName = 'ValidationErrorMatch';
7302
-
7303
- function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7304
- function _isNativeReflectConstruct$4() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
7305
- var hasUnknownChildren = function hasUnknownChildren(children) {
7306
- var _context;
7307
- return _someInstanceProperty(_context = Children.toArray(children)).call(_context, function (child) {
7308
- return child.type.displayName !== Match.displayName;
7309
- });
7310
- };
7311
- var hasError = function hasError(errors, rule) {
7312
- return Boolean(errors[rule]);
7313
- };
7314
- var Switch = /*#__PURE__*/function (_PureComponent) {
7315
- _inherits(Switch, _PureComponent);
7316
- var _super = _createSuper$4(Switch);
7317
- function Switch() {
7318
- _classCallCheck(this, Switch);
7319
- return _super.apply(this, arguments);
7320
- }
7321
- _createClass(Switch, [{
7322
- key: "componentDidMount",
7323
- value: function componentDidMount() {
7324
- /**
7325
- * NOTE:
7326
- * The `<ValidationError.Switch>` only works with `<ValidationError.Match>` as its children.
7327
- */
7328
- !!hasUnknownChildren(this.props.children) ? process.env.NODE_ENV !== "production" ? invariant(false, '@commercetools-local/core/src/validation-error/validation-error-switch: children can only be of type <ValidationError.Match>') : invariant(false) : void 0;
7329
- }
7330
- }, {
7331
- key: "render",
7332
- value: function render() {
7333
- var _this = this;
7334
- return _mapInstanceProperty(Children).call(Children, this.props.children, function (child) {
7335
- return /*#__PURE__*/cloneElement(child, {
7336
- isTouched: _this.props.isTouched,
7337
- hasError: hasError(_this.props.errors, child.props.rule)
7338
- });
7339
- });
7340
- }
7341
- }]);
7342
- return Switch;
7343
- }(PureComponent);
7344
- Switch.displayName = 'ValidationErrorSwitch';
7345
- Switch.defaultProps = {
7346
- errors: {},
7347
- isTouched: false
7348
- };
7349
-
7350
- var ValidationError = {
7351
- Switch: Switch,
7352
- Match: Match
7353
- };
7354
-
7355
7278
  function ownKeys$Q(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7356
7279
  function _objectSpread$Q(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$Q(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$Q(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
7357
7280
  var mergeSetItemsErrors = function mergeSetItemsErrors(errors) {
@@ -7367,19 +7290,11 @@ var CustomFieldErrors = function CustomFieldErrors(props) {
7367
7290
  // but also after manually triggered form validation.
7368
7291
  var didFormValidationFail = useDidFormValidationFail();
7369
7292
  var errors = _Array$isArray(props.errors) ? mergeSetItemsErrors(props.errors) : props.errors;
7370
- return jsxs(ValidationError.Switch, {
7371
- errors: errors,
7372
- isTouched: props.isTouched || didFormValidationFail,
7373
- children: [jsx(ValidationError.Match, {
7374
- rule: "missing",
7375
- children: jsx(ErrorMessage, {
7376
- intlMessage: messages$J.required
7377
- })
7378
- }), jsx(ValidationError.Match, {
7379
- rule: "duplicated",
7380
- children: jsx(ErrorMessage, {
7381
- intlMessage: messages$J.unique
7382
- })
7293
+ return jsxs(Fragment, {
7294
+ children: [props.isTouched || didFormValidationFail && (errors === null || errors === void 0 ? void 0 : errors.missing) && jsx(ErrorMessage, {
7295
+ intlMessage: messages$J.required
7296
+ }), props.isTouched || didFormValidationFail && (errors === null || errors === void 0 ? void 0 : errors.duplicated) && jsx(ErrorMessage, {
7297
+ intlMessage: messages$J.unique
7383
7298
  })]
7384
7299
  });
7385
7300
  };
@@ -7896,6 +7811,8 @@ var NestedAttributeModalPage = function NestedAttributeModalPage(props) {
7896
7811
  var _useIntl3 = useIntl(),
7897
7812
  formatMessage = _useIntl3.formatMessage;
7898
7813
  var formik = useFormikContext();
7814
+ var _useTheme = useTheme(),
7815
+ isNewTheme = _useTheme.isNewTheme;
7899
7816
  var confirmationModal = useModalState();
7900
7817
  var nestingLevel = useContext(NestingLevelContext);
7901
7818
  var handleClose = function handleClose() {
@@ -7906,7 +7823,7 @@ var NestedAttributeModalPage = function NestedAttributeModalPage(props) {
7906
7823
  confirmationModal.closeModal();
7907
7824
  props.onClose();
7908
7825
  };
7909
- var columnsTemplate = nestingLevel === 1 ? "repeat(2, ".concat(customProperties.constraint11, ")") : nestingLevel === 5 ? "".concat(customProperties.constraint10) : "repeat(2, ".concat(customProperties.constraint10, ")");
7826
+ var columnsTemplate = isNewTheme ? "".concat(customProperties.constraint15) : nestingLevel === 1 ? "repeat(2, ".concat(customProperties.constraint11, ")") : nestingLevel === 5 ? "".concat(customProperties.constraint10) : "repeat(2, ".concat(customProperties.constraint10, ")");
7910
7827
  return jsxs(Fragment, {
7911
7828
  children: [jsx(CustomFormModalPage, {
7912
7829
  isOpen: props.isOpen,
@@ -7925,13 +7842,15 @@ var NestedAttributeModalPage = function NestedAttributeModalPage(props) {
7925
7842
  onClose: handleClose,
7926
7843
  shouldDelayOnClose: false,
7927
7844
  title: props.title,
7928
- children: props.isOpen && jsx(Grid, {
7929
- gridTemplateColumns: columnsTemplate,
7930
- gridGap: customProperties.spacingM,
7931
- children: jsx(ProductAttributes, {
7932
- isDisabled: props.isDisabled,
7933
- isReadOnly: props.isReadOnly,
7934
- attributeDefinitions: props.productType.attributeDefinitions
7845
+ children: jsx(PageContentNarrow, {
7846
+ children: props.isOpen && jsx(Grid, {
7847
+ gridTemplateColumns: columnsTemplate,
7848
+ gridGap: customProperties.spacingM,
7849
+ children: jsx(ProductAttributes, {
7850
+ isDisabled: props.isDisabled,
7851
+ isReadOnly: props.isReadOnly,
7852
+ attributeDefinitions: props.productType.attributeDefinitions
7853
+ })
7935
7854
  })
7936
7855
  })
7937
7856
  }), jsx(DropChangesConfirmation, {
@@ -8732,7 +8651,8 @@ var CustomerGroupPickerInput = function CustomerGroupPickerInput(_ref) {
8732
8651
  onBlur = _ref.onBlur,
8733
8652
  value = _ref.value,
8734
8653
  hasError = _ref.hasError,
8735
- onError = _ref.onError;
8654
+ onError = _ref.onError,
8655
+ placeholder = _ref.placeholder;
8736
8656
  var _useIntl = useIntl(),
8737
8657
  formatMessage = _useIntl.formatMessage;
8738
8658
  var variables = useMemo(function () {
@@ -8812,7 +8732,7 @@ var CustomerGroupPickerInput = function CustomerGroupPickerInput(_ref) {
8812
8732
  children: jsx(AsyncSelectInput, {
8813
8733
  id: name,
8814
8734
  name: name,
8815
- placeholder: formatMessage(messages$t.placeholder),
8735
+ placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : formatMessage(messages$t.placeholder),
8816
8736
  loadOptions: loadOptionsDebounced,
8817
8737
  defaultOptions: true,
8818
8738
  showOptionGroupDivider: true,
@@ -10482,7 +10402,6 @@ var RESOURCES_WITH_PLATFORM_LIMITS = {
10482
10402
  shippingMethods: 'shippingMethods',
10483
10403
  carts: 'carts'
10484
10404
  };
10485
- var CUSTOMER_SUPPORT_LINK = 'https://jira.commercetools.com/servicedesk/customer/portal/1';
10486
10405
 
10487
10406
  function ownKeys$A(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10488
10407
  function _objectSpread$A(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$A(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$A(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -10596,26 +10515,26 @@ function _objectSpread$z(target) { for (var i = 1; i < arguments.length; i++) {
10596
10515
  var getCustomerSupportLink$1 = function getCustomerSupportLink(msg) {
10597
10516
  return jsx(Link, {
10598
10517
  isExternal: true,
10599
- to: CUSTOMER_SUPPORT_LINK,
10518
+ to: SUPPORT_PORTAL_URL,
10600
10519
  children: msg
10601
10520
  });
10602
10521
  };
10603
10522
  var PlatformLimitWarningNotification = function PlatformLimitWarningNotification(_ref) {
10604
10523
  var resource = _ref.resource,
10605
10524
  limit = _ref.limit;
10606
- return jsxs(Spacings.Inline, {
10607
- scale: "xs",
10608
- children: [jsx(WarningIcon, {
10609
- color: "warning",
10610
- size: "medium"
10611
- }), jsx(Text.Body, {
10612
- intlMessage: _objectSpread$z(_objectSpread$z({}, messages$m[resource]), {}, {
10613
- values: {
10614
- limit: limit,
10615
- customersupport: getCustomerSupportLink$1
10616
- }
10617
- })
10618
- })]
10525
+ return jsx(ContentNotification, {
10526
+ type: "warning",
10527
+ children: jsx(FormattedMessage, _objectSpread$z(_objectSpread$z({}, messages$m[resource]), {}, {
10528
+ values: {
10529
+ limit: limit,
10530
+ customersupport: getCustomerSupportLink$1
10531
+ },
10532
+ children: function children(message) {
10533
+ return jsx("div", {
10534
+ children: message
10535
+ });
10536
+ }
10537
+ }))
10619
10538
  });
10620
10539
  };
10621
10540
  PlatformLimitWarningNotification.displayName = 'PlatformLimitWarningNotification';
@@ -10653,7 +10572,7 @@ function _objectSpread$y(target) { for (var i = 1; i < arguments.length; i++) {
10653
10572
  var getCustomerSupportLink = function getCustomerSupportLink(msg) {
10654
10573
  return jsx(Link, {
10655
10574
  isExternal: true,
10656
- to: CUSTOMER_SUPPORT_LINK,
10575
+ to: SUPPORT_PORTAL_URL,
10657
10576
  children: msg
10658
10577
  }, msg);
10659
10578
  };
@@ -13018,6 +12937,10 @@ function validatedInput(InnerComponent, validators) {
13018
12937
  if (onChange && triggerUpdate) onChange(event);
13019
12938
  _this.conditionalSetValidStatus(nextValidStatus);
13020
12939
  };
12940
+ /**
12941
+ * Only triggers when there is a value, but its not valid
12942
+ * so it must be an invalid numeric value
12943
+ */
13021
12944
  _this.handleInvalid = function () {
13022
12945
  var nextValidStatus = _objectSpread$8({}, _this.state.validStatus);
13023
12946
  if (has(nextValidStatus, 'numeric')) {
@@ -14396,4 +14319,4 @@ function withPendingRequests() {
14396
14319
 
14397
14320
  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 } } } };
14398
14321
 
14399
- export { booleanField as BooleanField, BusinessUnitSelectField, BusinessUnitSelectInput, Button, ButtonCancel, ButtonConfirm, ButtonSave, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, CenteredLoadingSpinner, ChannelPickerInput, CountriesPicker, customFieldDefinitionsConnector as CustomFieldDefinitionsConnector, customFieldTypeDefinitionsConnector as CustomFieldTypeDefinitionsConnector, CustomFields, CustomFieldsErrorTextNotification, CustomerGroupPickerInput, DefaultPageSizes, Divider, EMAIL_REGEX, FileInput, FormattedDateTime$1 as FormattedDateTime, LabelRange, MissingValueField, MultiValueSearchInput, numericFormatInput as NumericFormatInput, PRECISION_TYPES, pimIndexerProvider as PimIndexerProvider, ProductAttributeInput, ProductAttributes, ProductPickerInput, ProductSelectionsPicker as ProductSelectionPicker, RequestCache, RequiredIndicator, ScrollToFieldError, SearchInput$1 as SearchInput, SelectableFieldSearchInput, StoreSelectField, StoreSelectInput, ThrottledField, VALIDATOR_INTEGER, VALIDATOR_NUMERIC, VALIDATOR_REQUIRED, ValidationError, WithPimIndexer, allowedProperties, and, attributesMapToNameValuePairs, base64ToString, messages$7 as booleanMessages, buildSearchQuery, messages$q as businessRoleMessages, businessRoleKeys as businessRoles, capitalizeFirst, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, createGraphQlUpdateActions, createNextSortDefinition, createReducer, createResourceReducer, handlers$4 as customFieldDefinitionsMockHanders, customFields as customFieldsTransformer, dateTransformer$1 as dateTransformer, exact, exists, extractErrorFromGraphQlResponse, filterCustomTypeUpdateActionValues, filterDataAttributes, filterEmptyValues, formatCustomField, formatCustomerAddress, formatCustomerName, formatDateRangeValue, formatDateTime$1 as formatDateTime, formatDiscount, formatMoney$1 as formatMoney, formatMoneyRangeValue, formatMoneyValue, formatPercentage, formatAttribute as formatProductAttribute, getAncestors, getAttributeValueByType, getAttributeValueType, getBulkNotification, getCategoryLevel, getCountsFromBulkSummary, getDiscountValue, getDisplayName, getFractionedAmount, getIndexesOfInvalidValues, getMinimumPricesByCurrencyCode, getNetUnitPrice, getPathName, getPrefixSearchBounds, getPriceChannelName, getReferenceTypeId, getSelectedPrice, getTimeZoneId, getTimeZoneLabel, getTypeNameOfType, graphqlCategoryLevelTransformer, dateTransformer as graphqlDateTransformer, missingLocaleTransformer as graphqlMissingLocaleTransformer, missingTransformer as graphqlMissingTransformer, numberTransformer as graphqlNumberTransformer, graphqlQueryBuilder, referenceTransformer as graphqlReferenceTransformer, textTransformer as graphqlTextTransformer, hasInvalidInputError, hasSemanticError, injectCustomerGroupsPlatformLimits, injectCustomersPlatformLimits, injectDataTablePaginationState, injectModalState$1 as injectModalState, injectNotifications, injectPimIndexer, injectShippingMethodsPlatformLimits, injectStorage, injectTaxCategoriesPlatformLimits, injectModalState as injectToggleState, injectZonesPlatformLimits, isEmptyFilter as isEmpty, isEmptyValue, isUUID, isValidISODate, isValidISODateTime, isValidISOTime, keepDisplayName, mapTimeZonesToOptions, minusify, messages$6 as missingValueMessages, nameValuePairsToMap, normalizeProductSettings, not, omitDeep, omitSetsOfSets, or, commonPickerMessages as pickerMessages, handlers as platformLimitsMockHandlers, handlers$5 as productSelectionsFetcherMockHandler, handlers$6 as productSelectionsTotalFetcherMockHandler, range, reorderArrayItems, resolveStatusType, safelyAddFallback, sanitize, searchCategories, messages$E as searchInputMessages, setDisplayName, setToArray, shallowEqual, shouldUpdateAttributeInput, slugify, sortDataByIdsArray, sortRequiresLanguage, splitVariantAttributesByConstraint, handlers$7 as storesListConnectorMockHandlers, stringToBase64, swapArrayItems, trackMenuClick, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, handlers$2 as useBusinessUnitsListFetcherMockHandler, useCachedCategoryOptions, useCustomerGroupsPlatformLimits, useCustomersPlatformLimits, useDebouncedPromiseCallback, useFormatLocalizedFieldToString, useLocalizedKeyFallback, usePendingRequests, usePersistedTableConfiguration, usePimIndexer, usePrevious, useProductSelectionsFetcher, useProductSelectionsTotalFetcher, useRoleNotificationEffect, useStorage, useStoreKeysInDataFences, useStoresListFetcher, handlers$1 as useTotalNumberOfBusinessUnitsFetcherHandlers, useTotalNumberOfStoresFetcher, handlers$3 as useTotalNumberOfStoresFetcherHandlers, useTracking, useTracking as useTrackingContext, useTrackingShared, validateFilter$2 as validateCustomField, validations as validateCustomFields, validateFilter$1 as validateDate, validateMultiOptionEnum, validateFilter as validateNumber, validateSingleOptionEnum, validateText, validatedInput, messages$J as validationMessages, withPendingRequests, withProps, withRedirectTo, withoutEmptyErrorsByField, wrapDisplayName };
14322
+ export { booleanField as BooleanField, BusinessUnitSelectField, BusinessUnitSelectInput, Button, ButtonCancel, ButtonConfirm, ButtonSave, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, CenteredLoadingSpinner, ChannelPickerInput, CountriesPicker, customFieldDefinitionsConnector as CustomFieldDefinitionsConnector, customFieldTypeDefinitionsConnector as CustomFieldTypeDefinitionsConnector, CustomFields, CustomFieldsErrorTextNotification, CustomerGroupPickerInput, DefaultPageSizes, Divider, EMAIL_REGEX, FileInput, FormattedDateTime$1 as FormattedDateTime, LabelRange, MissingValueField, MultiValueSearchInput, numericFormatInput as NumericFormatInput, PRECISION_TYPES, pimIndexerProvider as PimIndexerProvider, ProductAttributeInput, ProductAttributes, ProductPickerInput, ProductSelectionsPicker as ProductSelectionPicker, RequestCache, RequiredIndicator, ScrollToFieldError, SearchInput$1 as SearchInput, SelectableFieldSearchInput, StoreSelectField, StoreSelectInput, ThrottledField, VALIDATOR_INTEGER, VALIDATOR_NUMERIC, VALIDATOR_REQUIRED, WithPimIndexer, allowedProperties, and, attributesMapToNameValuePairs, base64ToString, messages$7 as booleanMessages, buildSearchQuery, messages$q as businessRoleMessages, businessRoleKeys as businessRoles, capitalizeFirst, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, createGraphQlUpdateActions, createNextSortDefinition, createReducer, createResourceReducer, handlers$4 as customFieldDefinitionsMockHanders, customFields as customFieldsTransformer, dateTransformer$1 as dateTransformer, exact, exists, extractErrorFromGraphQlResponse, filterCustomTypeUpdateActionValues, filterDataAttributes, filterEmptyValues, formatCustomField, formatCustomerAddress, formatCustomerName, formatDateRangeValue, formatDateTime$1 as formatDateTime, formatDiscount, formatMoney$1 as formatMoney, formatMoneyRangeValue, formatMoneyValue, formatPercentage, formatAttribute as formatProductAttribute, getAncestors, getAttributeValueByType, getAttributeValueType, getBulkNotification, getCategoryLevel, getCountsFromBulkSummary, getDiscountValue, getDisplayName, getFractionedAmount, getIndexesOfInvalidValues, getMinimumPricesByCurrencyCode, getNetUnitPrice, getPathName, getPrefixSearchBounds, getPriceChannelName, getReferenceTypeId, getSelectedPrice, getTimeZoneId, getTimeZoneLabel, getTypeNameOfType, graphqlCategoryLevelTransformer, dateTransformer as graphqlDateTransformer, missingLocaleTransformer as graphqlMissingLocaleTransformer, missingTransformer as graphqlMissingTransformer, numberTransformer as graphqlNumberTransformer, graphqlQueryBuilder, referenceTransformer as graphqlReferenceTransformer, textTransformer as graphqlTextTransformer, hasInvalidInputError, hasSemanticError, injectCustomerGroupsPlatformLimits, injectCustomersPlatformLimits, injectDataTablePaginationState, injectModalState$1 as injectModalState, injectNotifications, injectPimIndexer, injectShippingMethodsPlatformLimits, injectStorage, injectTaxCategoriesPlatformLimits, injectModalState as injectToggleState, injectZonesPlatformLimits, isEmptyFilter as isEmpty, isEmptyValue, isUUID, isValidISODate, isValidISODateTime, isValidISOTime, keepDisplayName, mapTimeZonesToOptions, minusify, messages$6 as missingValueMessages, nameValuePairsToMap, normalizeProductSettings, not, omitDeep, omitSetsOfSets, or, commonPickerMessages as pickerMessages, handlers as platformLimitsMockHandlers, handlers$5 as productSelectionsFetcherMockHandler, handlers$6 as productSelectionsTotalFetcherMockHandler, range, reorderArrayItems, resolveStatusType, safelyAddFallback, sanitize, searchCategories, messages$E as searchInputMessages, setDisplayName, setToArray, shallowEqual, shouldUpdateAttributeInput, slugify, sortDataByIdsArray, sortRequiresLanguage, splitVariantAttributesByConstraint, handlers$7 as storesListConnectorMockHandlers, stringToBase64, swapArrayItems, trackMenuClick, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, handlers$2 as useBusinessUnitsListFetcherMockHandler, useCachedCategoryOptions, useCustomerGroupsPlatformLimits, useCustomersPlatformLimits, useDebouncedPromiseCallback, useFormatLocalizedFieldToString, useLocalizedKeyFallback, usePendingRequests, usePersistedTableConfiguration, usePimIndexer, usePrevious, useProductSelectionsFetcher, useProductSelectionsTotalFetcher, useRoleNotificationEffect, useShippingMethodsLimits as useShippingMethodsPlatformLimits, useStorage, useStoreKeysInDataFences, useStoresListFetcher, useTaxCategoriesLimits as useTaxCategoriesPlatformLimits, handlers$1 as useTotalNumberOfBusinessUnitsFetcherHandlers, useTotalNumberOfStoresFetcher, handlers$3 as useTotalNumberOfStoresFetcherHandlers, useTracking, useTracking as useTrackingContext, useTrackingShared, validateFilter$2 as validateCustomField, validations as validateCustomFields, validateFilter$1 as validateDate, validateMultiOptionEnum, validateFilter as validateNumber, validateSingleOptionEnum, validateText, validatedInput, messages$J as validationMessages, withPendingRequests, withProps, withRedirectTo, withoutEmptyErrorsByField, wrapDisplayName };
package/dist/styles.css CHANGED
@@ -1,5 +1,7 @@
1
1
  /* imported from search-input.module.css */
2
2
 
3
+ /* @redesign cleanup */
4
+
3
5
  .search-input-module__block___1uM-y {
4
6
  display: inline-flex;
5
7
  flex-direction: row;
@@ -73,7 +75,7 @@
73
75
  right: 9px;
74
76
  }
75
77
 
76
- .search-input-module__clear-icon-container___3RQvu {
78
+ :where(html[data-theme='default']) .search-input-module__clear-icon-container___3RQvu {
77
79
  background-color: transparent;
78
80
  border-color: transparent;
79
81
  position: absolute;
@@ -82,6 +84,15 @@
82
84
  z-index: 2;
83
85
  }
84
86
 
87
+ :where(html[data-theme='test']) .search-input-module__clear-icon-container___3RQvu {
88
+ background-color: transparent;
89
+ border-color: transparent;
90
+ position: absolute;
91
+ right: 36px;
92
+ top: 11px;
93
+ z-index: 2;
94
+ }
95
+
85
96
  .search-input-module__clear-icon-container-granular___1mbin {
86
97
  right: 41px;
87
98
  }
@@ -114,7 +125,9 @@
114
125
  }
115
126
  /* imported from selectable-field-search-input.module.css */
116
127
 
117
- .selectable-field-search-input-module__container___z2ltR {
128
+ /* @redesign cleanup */
129
+
130
+ :where(html[data-theme='default']) .selectable-field-search-input-module__container___z2ltR {
118
131
  width: 100%;
119
132
  position: relative;
120
133
  display: flex;
@@ -122,6 +135,13 @@
122
135
  max-width: 800px;
123
136
  }
124
137
 
138
+ :where(html[data-theme='test']) .selectable-field-search-input-module__container___z2ltR {
139
+ width: 100%;
140
+ position: relative;
141
+ display: flex;
142
+ z-index: 3;
143
+ }
144
+
125
145
  .selectable-field-search-input-module__search-mode-menu___Od6Le {
126
146
  border-radius: var(--border-radius-6);
127
147
  border: 1px solid var(--color-primary);
@@ -599,16 +619,16 @@ html[data-theme='default'] {
599
619
  :where(html[data-theme='test']) .set-buttons-module__gap___38Qr0 {
600
620
  padding: 20px;
601
621
  }
602
- /* imported from platform-limits-customers-combined.module.css */
603
-
604
- .platform-limits-customers-combined-module__combined___OszDd {
605
- margin-bottom: var(--spacing-s);
606
- }
607
622
  /* imported from platform-limits-customers-status.module.css */
608
623
 
609
624
  .platform-limits-customers-status-module__status___3rXYM {
610
625
  min-width: max-content;
611
626
  }
627
+ /* imported from platform-limits-customers-combined.module.css */
628
+
629
+ .platform-limits-customers-combined-module__combined___OszDd {
630
+ margin-bottom: var(--spacing-s);
631
+ }
612
632
  /* imported from platform-limits-customer-groups-status.module.css */
613
633
 
614
634
  .platform-limits-customer-groups-status-module__status___6099G {