@commercetools-frontend/experimental-components 6.4.1 → 6.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (323) hide show
  1. package/dist/commercetools-frontend-experimental-components.cjs.d.ts +2 -0
  2. package/dist/commercetools-frontend-experimental-components.cjs.dev.js +84 -31
  3. package/dist/commercetools-frontend-experimental-components.cjs.prod.js +83 -30
  4. package/dist/commercetools-frontend-experimental-components.esm.js +84 -32
  5. package/dist/declarations/src/actions/reference-search/category/category.d.ts +2 -0
  6. package/dist/declarations/src/components/attribute-definitions/reference-search/cart-discount-reference-search/cart-discount-reference-search.d.ts +14 -0
  7. package/dist/declarations/src/components/attribute-definitions/reference-search/category-reference-search/category-reference-search.d.ts +17 -0
  8. package/dist/declarations/src/components/attribute-definitions/reference-search/category-reference-search/use-cached-category-options.d.ts +1 -0
  9. package/dist/declarations/src/components/buttons/button/button.d.ts +16 -0
  10. package/dist/declarations/src/components/buttons/file-input/file-input.d.ts +17 -0
  11. package/dist/declarations/src/components/centered-loading-spinner/centered-loading-spinner.d.ts +9 -0
  12. package/dist/declarations/src/components/centered-loading-spinner/index.d.ts +1 -0
  13. package/dist/declarations/src/components/channel-picker-input/channel-picker-input.d.ts +32 -0
  14. package/dist/declarations/src/components/channel-picker-input/index.d.ts +1 -0
  15. package/dist/declarations/src/components/country-picker/country-picker.d.ts +25 -0
  16. package/dist/declarations/src/components/country-picker/index.d.ts +1 -0
  17. package/dist/declarations/src/components/customer-group-picker-input/customer-group-picker-input.d.ts +28 -0
  18. package/dist/declarations/src/components/customer-group-picker-input/index.d.ts +1 -0
  19. package/dist/declarations/src/components/divider/divider.d.ts +12 -0
  20. package/dist/declarations/src/components/divider/index.d.ts +1 -0
  21. package/dist/declarations/src/components/formatted-date-time/formatted-date-time.d.ts +17 -0
  22. package/dist/declarations/src/components/formatted-localized-string/formatted-localized-string.d.ts +6 -0
  23. package/dist/declarations/src/components/formatted-localized-string/index.d.ts +1 -0
  24. package/dist/declarations/src/components/keep-display-name/index.d.ts +1 -0
  25. package/dist/declarations/src/components/keep-display-name/keep-display-name.d.ts +2 -0
  26. package/dist/declarations/src/components/messages.d.ts +16 -0
  27. package/dist/declarations/src/components/product-attributes/conversions.d.ts +18 -0
  28. package/dist/declarations/src/components/product-attributes/index.d.ts +3 -0
  29. package/dist/declarations/src/components/product-attributes/product-attribute-input.d.ts +13 -0
  30. package/dist/declarations/src/components/product-attributes/product-attributes.d.ts +18 -0
  31. package/dist/declarations/src/components/product-picker-input/index.d.ts +1 -0
  32. package/dist/declarations/src/components/product-picker-input/product-picker-input.d.ts +30 -0
  33. package/dist/declarations/src/components/product-selection-picker/index.d.ts +1 -0
  34. package/dist/declarations/src/components/product-selection-picker/product-selection-picker.d.ts +42 -0
  35. package/dist/declarations/src/components/required-indicator/required-indicator.d.ts +10 -0
  36. package/dist/declarations/src/components/scroll-to-field-error/scroll-to-field-error.d.ts +2 -0
  37. package/dist/declarations/src/components/selectable-field-search-input/selectable-field-search-input.d.ts +14 -0
  38. package/dist/declarations/src/components/store-select-field/store-select-field.d.ts +46 -0
  39. package/dist/declarations/src/components/store-select-input/components/stores-search-select-input/mocks/handlers.d.ts +6 -0
  40. package/dist/declarations/src/components/store-select-input/components/stores-search-select-input/mocks/index.d.ts +2 -0
  41. package/dist/declarations/src/components/store-select-input/hooks/use-stores-by-field-fetcher/mocks/handlers.d.ts +6 -0
  42. package/dist/declarations/src/components/store-select-input/hooks/use-stores-by-field-fetcher/mocks/index.d.ts +2 -0
  43. package/dist/declarations/src/components/store-select-input/hooks/use-total-number-of-stores-fetcher/mocks/handlers.d.ts +6 -0
  44. package/dist/declarations/src/components/store-select-input/hooks/use-total-number-of-stores-fetcher/mocks/index.d.ts +2 -0
  45. package/dist/declarations/src/components/store-select-input/hooks/use-total-number-of-stores-fetcher/use-total-number-of-stores-fetcher.d.ts +5 -0
  46. package/dist/declarations/src/components/store-select-input/store-select-input.d.ts +47 -0
  47. package/dist/declarations/src/components/store-select-input/utils.d.ts +18 -0
  48. package/dist/declarations/src/components/validated-input/validated-input.d.ts +148 -0
  49. package/dist/declarations/src/constants/index.d.ts +72 -0
  50. package/dist/declarations/src/custom-fields/custom-field-definitions-connector/custom-field-definitions-connector.d.ts +25 -0
  51. package/dist/declarations/src/custom-fields/custom-field-definitions-connector/index.d.ts +1 -0
  52. package/dist/declarations/src/custom-fields/custom-field-definitions-connector/mocks/handlers.d.ts +6 -0
  53. package/dist/declarations/src/custom-fields/custom-field-definitions-connector/mocks/index.d.ts +2 -0
  54. package/dist/declarations/src/custom-fields/custom-field-type-definitions-connector/custom-field-type-definitions-connector.d.ts +56 -0
  55. package/dist/declarations/src/custom-fields/custom-field-type-definitions-connector/index.d.ts +1 -0
  56. package/dist/declarations/src/custom-fields/custom-fields/custom-field-tooltip.d.ts +11 -0
  57. package/dist/declarations/src/custom-fields/custom-fields/custom-fields.d.ts +13 -0
  58. package/dist/declarations/src/custom-fields/custom-fields/dnd-provider.d.ts +30 -0
  59. package/dist/declarations/src/custom-fields/custom-fields/index.d.ts +5 -0
  60. package/dist/declarations/src/custom-fields/custom-fields/validations/index.d.ts +1 -0
  61. package/dist/declarations/src/custom-fields/custom-fields/validations/validations.d.ts +1 -0
  62. package/dist/declarations/src/custom-fields/custom-fields-error-text-notification/custom-fields-error-text-notification.d.ts +8 -0
  63. package/dist/declarations/src/custom-fields/custom-fields-form-field/custom-fields-form-field.d.ts +23 -0
  64. package/dist/declarations/src/custom-fields/custom-fields-form-field/index.d.ts +1 -0
  65. package/dist/declarations/src/custom-fields/custom-fields-form-field/utils.d.ts +46 -0
  66. package/dist/declarations/src/features/picker/index.d.ts +5 -0
  67. package/dist/declarations/src/features/picker/shared/components/index.d.ts +1 -0
  68. package/dist/declarations/src/features/picker/shared/components/option.d.ts +14 -0
  69. package/dist/declarations/src/features/picker/shared/hooks/use-current-option.d.ts +12 -0
  70. package/dist/declarations/src/features/picker/shared/hooks/use-handlers.d.ts +2 -0
  71. package/dist/declarations/src/features/picker/shared/hooks/use-load-options.d.ts +6 -0
  72. package/dist/declarations/src/features/picker/shared/hooks/use-product-type-options.d.ts +18 -0
  73. package/dist/declarations/src/features/pim-indexer/components/pim-indexer-context/pim-indexer-context.d.ts +13 -0
  74. package/dist/declarations/src/features/pim-indexer/components/pim-indexer-provider/index.d.ts +1 -0
  75. package/dist/declarations/src/features/pim-indexer/components/pim-indexer-provider/pim-indexer-provider.d.ts +44 -0
  76. package/dist/declarations/src/features/pim-indexer/components/with-pim-indexer/index.d.ts +1 -0
  77. package/dist/declarations/src/features/pim-indexer/components/with-pim-indexer/with-pim-indexer.d.ts +11 -0
  78. package/dist/declarations/src/features/pim-indexer/hocs/inject-pim-indexer/index.d.ts +1 -0
  79. package/dist/declarations/src/features/pim-indexer/hocs/inject-pim-indexer/inject-pim-indexer.d.ts +5 -0
  80. package/dist/declarations/src/features/pim-indexer/hooks/use-pim-indexer/index.d.ts +1 -0
  81. package/dist/declarations/src/features/pim-indexer/hooks/use-pim-indexer/use-pim-indexer.d.ts +1 -0
  82. package/dist/declarations/src/features/pim-indexer/index.d.ts +5 -0
  83. package/dist/declarations/src/features/platform-limits/customer-groups/hocs/index.d.ts +1 -0
  84. package/dist/declarations/src/features/platform-limits/customer-groups/hocs/inject-customer-groups-platform-limits/index.d.ts +1 -0
  85. package/dist/declarations/src/features/platform-limits/customer-groups/hocs/inject-customer-groups-platform-limits/inject-customer-groups-platform-limits.d.ts +5 -0
  86. package/dist/declarations/src/features/platform-limits/customer-groups/hooks/index.d.ts +4 -0
  87. package/dist/declarations/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits/index.d.ts +1 -0
  88. package/dist/declarations/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits/use-customer-groups-platform-limits.d.ts +41 -0
  89. package/dist/declarations/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-fetcher/index.d.ts +1 -0
  90. package/dist/declarations/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-fetcher/use-customer-groups-platform-limits-fetcher.d.ts +7 -0
  91. package/dist/declarations/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-modal-state/index.d.ts +1 -0
  92. package/dist/declarations/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-modal-state/use-customer-groups-platform-limits-modal-state.d.ts +4 -0
  93. package/dist/declarations/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-status/index.d.ts +1 -0
  94. package/dist/declarations/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-status/use-customer-groups-platform-limits-status.d.ts +5 -0
  95. package/dist/declarations/src/features/platform-limits/customer-groups/index.d.ts +2 -0
  96. package/dist/declarations/src/features/platform-limits/customers/hocs/index.d.ts +1 -0
  97. package/dist/declarations/src/features/platform-limits/customers/hocs/inject-customers-platform-limits/index.d.ts +1 -0
  98. package/dist/declarations/src/features/platform-limits/customers/hocs/inject-customers-platform-limits/inject-customers-platform-limits.d.ts +5 -0
  99. package/dist/declarations/src/features/platform-limits/customers/hooks/index.d.ts +4 -0
  100. package/dist/declarations/src/features/platform-limits/customers/hooks/use-customers-platform-limits/index.d.ts +1 -0
  101. package/dist/declarations/src/features/platform-limits/customers/hooks/use-customers-platform-limits/use-customers-platform-limits.d.ts +41 -0
  102. package/dist/declarations/src/features/platform-limits/customers/hooks/use-customers-platform-limits-fetcher/index.d.ts +1 -0
  103. package/dist/declarations/src/features/platform-limits/customers/hooks/use-customers-platform-limits-fetcher/use-customers-platform-limits-fetcher.d.ts +7 -0
  104. package/dist/declarations/src/features/platform-limits/customers/hooks/use-customers-platform-limits-modal-state/index.d.ts +1 -0
  105. package/dist/declarations/src/features/platform-limits/customers/hooks/use-customers-platform-limits-modal-state/use-customers-platform-limits-modal-state.d.ts +4 -0
  106. package/dist/declarations/src/features/platform-limits/customers/hooks/use-customers-platform-limits-status/index.d.ts +1 -0
  107. package/dist/declarations/src/features/platform-limits/customers/hooks/use-customers-platform-limits-status/use-customers-platform-limits-status.d.ts +5 -0
  108. package/dist/declarations/src/features/platform-limits/customers/index.d.ts +2 -0
  109. package/dist/declarations/src/features/platform-limits/index.d.ts +5 -0
  110. package/dist/declarations/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/mocks/handlers.d.ts +6 -0
  111. package/dist/declarations/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/mocks/index.d.ts +2 -0
  112. package/dist/declarations/src/features/platform-limits/shipping-methods/hocs/index.d.ts +1 -0
  113. package/dist/declarations/src/features/platform-limits/shipping-methods/hocs/inject-shipping-methods-platform-limits/index.d.ts +1 -0
  114. package/dist/declarations/src/features/platform-limits/shipping-methods/hocs/inject-shipping-methods-platform-limits/inject-shipping-methods-platform-limits.d.ts +5 -0
  115. package/dist/declarations/src/features/platform-limits/shipping-methods/hooks/index.d.ts +3 -0
  116. package/dist/declarations/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits/index.d.ts +1 -0
  117. package/dist/declarations/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits/use-shipping-methods-platform-limits.d.ts +27 -0
  118. package/dist/declarations/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits-fetcher/index.d.ts +1 -0
  119. package/dist/declarations/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits-fetcher/use-shipping-methods-platform-limits-fetcher.d.ts +7 -0
  120. package/dist/declarations/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits-status/index.d.ts +1 -0
  121. package/dist/declarations/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits-status/use-shipping-methods-platform-limits-status.d.ts +5 -0
  122. package/dist/declarations/src/features/platform-limits/shipping-methods/index.d.ts +2 -0
  123. package/dist/declarations/src/features/platform-limits/tax-categories/hocs/index.d.ts +1 -0
  124. package/dist/declarations/src/features/platform-limits/tax-categories/hocs/inject-tax-categories-platform-limits/index.d.ts +1 -0
  125. package/dist/declarations/src/features/platform-limits/tax-categories/hocs/inject-tax-categories-platform-limits/inject-tax-categories-platform-limits.d.ts +5 -0
  126. package/dist/declarations/src/features/platform-limits/tax-categories/hooks/index.d.ts +3 -0
  127. package/dist/declarations/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits/index.d.ts +1 -0
  128. package/dist/declarations/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits/use-tax-categories-platform-limits.d.ts +27 -0
  129. package/dist/declarations/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits-fetcher/index.d.ts +1 -0
  130. package/dist/declarations/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits-fetcher/use-tax-categories-platform-limits-fetcher.d.ts +7 -0
  131. package/dist/declarations/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits-status/index.d.ts +1 -0
  132. package/dist/declarations/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits-status/use-tax-categories-platform-limits-status.d.ts +5 -0
  133. package/dist/declarations/src/features/platform-limits/tax-categories/index.d.ts +2 -0
  134. package/dist/declarations/src/features/platform-limits/zones/hocs/index.d.ts +1 -0
  135. package/dist/declarations/src/features/platform-limits/zones/hocs/inject-zones-platform-limits/index.d.ts +1 -0
  136. package/dist/declarations/src/features/platform-limits/zones/hocs/inject-zones-platform-limits/inject-zones-platform-limits.d.ts +5 -0
  137. package/dist/declarations/src/features/platform-limits/zones/hooks/index.d.ts +3 -0
  138. package/dist/declarations/src/features/platform-limits/zones/hooks/use-zones-platform-limits/index.d.ts +1 -0
  139. package/dist/declarations/src/features/platform-limits/zones/hooks/use-zones-platform-limits/use-zones-platform-limits.d.ts +27 -0
  140. package/dist/declarations/src/features/platform-limits/zones/hooks/use-zones-platform-limits-fetcher/index.d.ts +1 -0
  141. package/dist/declarations/src/features/platform-limits/zones/hooks/use-zones-platform-limits-fetcher/use-zones-platform-limits-fetcher.d.ts +7 -0
  142. package/dist/declarations/src/features/platform-limits/zones/hooks/use-zones-platform-limits-status/index.d.ts +1 -0
  143. package/dist/declarations/src/features/platform-limits/zones/hooks/use-zones-platform-limits-status/use-zones-platform-limits-status.d.ts +5 -0
  144. package/dist/declarations/src/features/platform-limits/zones/index.d.ts +2 -0
  145. package/dist/declarations/src/fields/boolean-field/boolean-field.d.ts +26 -0
  146. package/dist/declarations/src/fields/boolean-field/index.d.ts +3 -0
  147. package/dist/declarations/src/fields/boolean-field/messages.d.ts +16 -0
  148. package/dist/declarations/src/fields/label-range/label-range.d.ts +10 -0
  149. package/dist/declarations/src/fields/missing-value-field/index.d.ts +2 -0
  150. package/dist/declarations/src/fields/missing-value-field/messages.d.ts +8 -0
  151. package/dist/declarations/src/fields/missing-value-field/missing-value-field.d.ts +11 -0
  152. package/dist/declarations/src/fields/multi-value-search-input/multi-value-search-input.d.ts +12 -0
  153. package/dist/declarations/src/fields/numeric-format-input/numeric-format-input.d.ts +58 -0
  154. package/dist/declarations/src/fields/search-input/messages.d.ts +16 -0
  155. package/dist/declarations/src/fields/search-input/search-input.d.ts +55 -0
  156. package/dist/declarations/src/fields/throttled-field/throttled-field.d.ts +53 -0
  157. package/dist/declarations/src/hocs/index.d.ts +9 -0
  158. package/dist/declarations/src/hocs/inject-data-table-pagination-state/index.d.ts +1 -0
  159. package/dist/declarations/src/hocs/inject-data-table-pagination-state/inject-data-table-pagination-state.d.ts +10 -0
  160. package/dist/declarations/src/hocs/inject-modal-state/index.d.ts +1 -0
  161. package/dist/declarations/src/hocs/inject-modal-state/inject-modal-state.d.ts +5 -0
  162. package/dist/declarations/src/hocs/inject-notifications/index.d.ts +1 -0
  163. package/dist/declarations/src/hocs/inject-notifications/inject-notifications.d.ts +5 -0
  164. package/dist/declarations/src/hocs/inject-storage/index.d.ts +1 -0
  165. package/dist/declarations/src/hocs/inject-storage/inject-storage.d.ts +5 -0
  166. package/dist/declarations/src/hocs/inject-toggle-state/index.d.ts +1 -0
  167. package/dist/declarations/src/hocs/inject-toggle-state/inject-toggle-state.d.ts +5 -0
  168. package/dist/declarations/src/hocs/utils/get-display-name/get-display-name.d.ts +2 -0
  169. package/dist/declarations/src/hocs/utils/get-display-name/index.d.ts +1 -0
  170. package/dist/declarations/src/hocs/utils/index.d.ts +2 -0
  171. package/dist/declarations/src/hocs/utils/set-display-name/index.d.ts +1 -0
  172. package/dist/declarations/src/hocs/utils/set-display-name/set-display-name.d.ts +2 -0
  173. package/dist/declarations/src/hocs/with-props/index.d.ts +1 -0
  174. package/dist/declarations/src/hocs/with-props/with-props.d.ts +5 -0
  175. package/dist/declarations/src/hocs/with-redirect-to/index.d.ts +1 -0
  176. package/dist/declarations/src/hocs/with-redirect-to/with-redirect-to.d.ts +5 -0
  177. package/dist/declarations/src/hocs/wrap-display-name/index.d.ts +1 -0
  178. package/dist/declarations/src/hocs/wrap-display-name/wrap-display-name.d.ts +2 -0
  179. package/dist/declarations/src/hooks/index.d.ts +18 -0
  180. package/dist/declarations/src/hooks/use-debounced-promise-callback.d.ts +2 -0
  181. package/dist/declarations/src/hooks/use-did-form-validation-fail/index.d.ts +1 -0
  182. package/dist/declarations/src/hooks/use-did-form-validation-fail/use-did-form-validation-fail.d.ts +1 -0
  183. package/dist/declarations/src/hooks/use-event-callback/index.d.ts +1 -0
  184. package/dist/declarations/src/hooks/use-event-callback/use-event-callback.d.ts +2 -0
  185. package/dist/declarations/src/hooks/use-format-localized-field-to-string/index.d.ts +1 -0
  186. package/dist/declarations/src/hooks/use-format-localized-field-to-string/use-format-localized-field-to-string.d.ts +11 -0
  187. package/dist/declarations/src/hooks/use-format-localized-string/index.d.ts +1 -0
  188. package/dist/declarations/src/hooks/use-format-localized-string/use-format-localized-string.d.ts +5 -0
  189. package/dist/declarations/src/hooks/use-is-field-duplicated/index.d.ts +1 -0
  190. package/dist/declarations/src/hooks/use-is-field-duplicated/mocks/handlers.d.ts +6 -0
  191. package/dist/declarations/src/hooks/use-is-field-duplicated/mocks/index.d.ts +2 -0
  192. package/dist/declarations/src/hooks/use-is-field-duplicated/use-is-field-duplicated.d.ts +43 -0
  193. package/dist/declarations/src/hooks/use-localized-key-fallback/index.d.ts +1 -0
  194. package/dist/declarations/src/hooks/use-localized-key-fallback/use-localized-key-fallback.d.ts +2 -0
  195. package/dist/declarations/src/hooks/use-pending-requests/index.d.ts +1 -0
  196. package/dist/declarations/src/hooks/use-pending-requests/use-pending-requests.d.ts +6 -0
  197. package/dist/declarations/src/hooks/use-persisted-reminder/index.d.ts +1 -0
  198. package/dist/declarations/src/hooks/use-persisted-reminder/use-persisted-reminder.d.ts +2 -0
  199. package/dist/declarations/src/hooks/use-persisted-table-configuration/index.d.ts +1 -0
  200. package/dist/declarations/src/hooks/use-persisted-table-configuration/use-persisted-table-configuration.d.ts +8 -0
  201. package/dist/declarations/src/hooks/use-previous/index.d.ts +1 -0
  202. package/dist/declarations/src/hooks/use-previous/use-previous.d.ts +2 -0
  203. package/dist/declarations/src/hooks/use-product-selections-fetcher/index.d.ts +1 -0
  204. package/dist/declarations/src/hooks/use-product-selections-fetcher/mocks/handlers.d.ts +6 -0
  205. package/dist/declarations/src/hooks/use-product-selections-fetcher/mocks/index.d.ts +2 -0
  206. package/dist/declarations/src/hooks/use-product-selections-fetcher/use-product-selections-fetcher.d.ts +10 -0
  207. package/dist/declarations/src/hooks/use-product-selections-total-fetcher/index.d.ts +1 -0
  208. package/dist/declarations/src/hooks/use-product-selections-total-fetcher/mocks/handlers.d.ts +6 -0
  209. package/dist/declarations/src/hooks/use-product-selections-total-fetcher/mocks/index.d.ts +2 -0
  210. package/dist/declarations/src/hooks/use-product-selections-total-fetcher/use-product-selections-total-fetcher.d.ts +5 -0
  211. package/dist/declarations/src/hooks/use-role-based-channels-fetcher/test-utils.d.ts +2 -0
  212. package/dist/declarations/src/hooks/use-role-notification/index.d.ts +1 -0
  213. package/dist/declarations/src/hooks/use-role-notification/use-role-notification.d.ts +4 -0
  214. package/dist/declarations/src/hooks/use-role-notification-effect/index.d.ts +1 -0
  215. package/dist/declarations/src/hooks/use-role-notification-effect/use-role-notification-effect.d.ts +2 -0
  216. package/dist/declarations/src/hooks/use-storage/index.d.ts +1 -0
  217. package/dist/declarations/src/hooks/use-storage/use-storage.d.ts +7 -0
  218. package/dist/declarations/src/hooks/use-store-keys-in-data-fence/index.d.ts +1 -0
  219. package/dist/declarations/src/hooks/use-store-keys-in-data-fence/use-store-keys-in-data-fence.d.ts +6 -0
  220. package/dist/declarations/src/hooks/use-stores-list-fetcher/index.d.ts +1 -0
  221. package/dist/declarations/src/hooks/use-stores-list-fetcher/mocks/handlers.d.ts +7 -0
  222. package/dist/declarations/src/hooks/use-stores-list-fetcher/mocks/index.d.ts +2 -0
  223. package/dist/declarations/src/hooks/use-stores-list-fetcher/use-stores-list-fetcher.d.ts +40 -0
  224. package/dist/declarations/src/index.d.ts +116 -0
  225. package/dist/declarations/src/test-utils.d.ts +10 -0
  226. package/dist/declarations/src/utils/array-helpers/array-helpers.d.ts +1 -0
  227. package/dist/declarations/src/utils/attributes/attributes.d.ts +14 -0
  228. package/dist/declarations/src/utils/build-search-query/build-search-query.d.ts +2 -0
  229. package/dist/declarations/src/utils/bulk-notifications/get-bulk-notification.d.ts +13 -0
  230. package/dist/declarations/src/utils/business-roles/business-role-constants.d.ts +11 -0
  231. package/dist/declarations/src/utils/business-roles/business-roles.d.ts +2 -0
  232. package/dist/declarations/src/utils/business-roles/index.d.ts +4 -0
  233. package/dist/declarations/src/utils/business-roles/messages.d.ts +64 -0
  234. package/dist/declarations/src/utils/capitalize-first/capitalize-first.d.ts +1 -0
  235. package/dist/declarations/src/utils/categories/categories.d.ts +20 -0
  236. package/dist/declarations/src/utils/clone/clone.d.ts +1 -0
  237. package/dist/declarations/src/utils/coerce-to-integer/coerce-to-integer.d.ts +1 -0
  238. package/dist/declarations/src/utils/connector/connector.d.ts +19 -0
  239. package/dist/declarations/src/utils/constants.d.ts +39 -0
  240. package/dist/declarations/src/utils/conversions/sort-array.d.ts +1 -0
  241. package/dist/declarations/src/utils/create-next-sort-definition/create-next-sort-definition.d.ts +11 -0
  242. package/dist/declarations/src/utils/create-reducer/create-reducer.d.ts +6 -0
  243. package/dist/declarations/src/utils/create-resource-reducer/create-resource-reducer.d.ts +1 -0
  244. package/dist/declarations/src/utils/customer/format-customer-address/format-customer-address.d.ts +4 -0
  245. package/dist/declarations/src/utils/customer/format-customer-name/format-customer-name.d.ts +4 -0
  246. package/dist/declarations/src/utils/dataset/dataset.d.ts +3 -0
  247. package/dist/declarations/src/utils/encodings/encodings.d.ts +2 -0
  248. package/dist/declarations/src/utils/encodings/index.d.ts +1 -0
  249. package/dist/declarations/src/utils/filters/custom-fields/custom-fields.d.ts +1 -0
  250. package/dist/declarations/src/utils/filters/custom-fields/index.d.ts +1 -0
  251. package/dist/declarations/src/utils/filters/date/date.d.ts +6 -0
  252. package/dist/declarations/src/utils/filters/date/index.d.ts +1 -0
  253. package/dist/declarations/src/utils/filters/graphql/category-level/category-level.d.ts +1 -0
  254. package/dist/declarations/src/utils/filters/graphql/category-level/index.d.ts +1 -0
  255. package/dist/declarations/src/utils/filters/graphql/date/date.d.ts +5 -0
  256. package/dist/declarations/src/utils/filters/graphql/date/index.d.ts +1 -0
  257. package/dist/declarations/src/utils/filters/graphql/graphql.d.ts +29 -0
  258. package/dist/declarations/src/utils/filters/graphql/index.d.ts +1 -0
  259. package/dist/declarations/src/utils/filters/graphql/missing/index.d.ts +1 -0
  260. package/dist/declarations/src/utils/filters/graphql/missing/missing.d.ts +1 -0
  261. package/dist/declarations/src/utils/filters/graphql/missing-locale/index.d.ts +1 -0
  262. package/dist/declarations/src/utils/filters/graphql/missing-locale/missing-locale.d.ts +1 -0
  263. package/dist/declarations/src/utils/filters/graphql/number/index.d.ts +1 -0
  264. package/dist/declarations/src/utils/filters/graphql/number/number.d.ts +5 -0
  265. package/dist/declarations/src/utils/filters/graphql/reference/index.d.ts +1 -0
  266. package/dist/declarations/src/utils/filters/graphql/reference/reference.d.ts +5 -0
  267. package/dist/declarations/src/utils/filters/graphql/text/index.d.ts +1 -0
  268. package/dist/declarations/src/utils/filters/graphql/text/text.d.ts +1 -0
  269. package/dist/declarations/src/utils/filters/is-date/is-date.d.ts +12 -0
  270. package/dist/declarations/src/utils/filters/is-empty/index.d.ts +1 -0
  271. package/dist/declarations/src/utils/filters/is-empty/is-empty.d.ts +4 -0
  272. package/dist/declarations/src/utils/filters/validation/custom-field/custom-field.d.ts +15 -0
  273. package/dist/declarations/src/utils/filters/validation/custom-field/index.d.ts +2 -0
  274. package/dist/declarations/src/utils/filters/validation/custom-field/messages.d.ts +16 -0
  275. package/dist/declarations/src/utils/filters/validation/date/date.d.ts +4 -0
  276. package/dist/declarations/src/utils/filters/validation/date/index.d.ts +1 -0
  277. package/dist/declarations/src/utils/filters/validation/enum/enum.d.ts +2 -0
  278. package/dist/declarations/src/utils/filters/validation/number/index.d.ts +1 -0
  279. package/dist/declarations/src/utils/filters/validation/number/number.d.ts +5 -0
  280. package/dist/declarations/src/utils/filters/validation/text/text.d.ts +1 -0
  281. package/dist/declarations/src/utils/formats/custom-field/custom-field.d.ts +17 -0
  282. package/dist/declarations/src/utils/formats/custom-field/index.d.ts +1 -0
  283. package/dist/declarations/src/utils/formats/date/date.d.ts +9 -0
  284. package/dist/declarations/src/utils/formats/date/index.d.ts +1 -0
  285. package/dist/declarations/src/utils/formats/discount/discount.d.ts +1 -0
  286. package/dist/declarations/src/utils/formats/index.d.ts +4 -0
  287. package/dist/declarations/src/utils/formats/money/index.d.ts +1 -0
  288. package/dist/declarations/src/utils/formats/money/money.d.ts +4 -0
  289. package/dist/declarations/src/utils/formats/percentage/percentage.d.ts +2 -0
  290. package/dist/declarations/src/utils/formats/product-attribute/index.d.ts +1 -0
  291. package/dist/declarations/src/utils/formats/product-attribute/product-attribute.d.ts +9 -0
  292. package/dist/declarations/src/utils/get-prefix-search-bounds/get-prefix-search-bounds.d.ts +2 -0
  293. package/dist/declarations/src/utils/graphql/graphql.d.ts +26 -0
  294. package/dist/declarations/src/utils/has-error-code/has-invalid-input-error.d.ts +2 -0
  295. package/dist/declarations/src/utils/has-error-code/has-semantic-error.d.ts +2 -0
  296. package/dist/declarations/src/utils/is-uuid/is-uuid.d.ts +2 -0
  297. package/dist/declarations/src/utils/minusify/minusify.d.ts +1 -0
  298. package/dist/declarations/src/utils/omit-deep/omit-deep.d.ts +2 -0
  299. package/dist/declarations/src/utils/pim-query-clauses.d.ts +30 -0
  300. package/dist/declarations/src/utils/prices/prices.d.ts +8 -0
  301. package/dist/declarations/src/utils/product-selections/convert-product-selection-from-graphql.d.ts +14 -0
  302. package/dist/declarations/src/utils/products/products.d.ts +57 -0
  303. package/dist/declarations/src/utils/query-string/query-string.d.ts +3 -0
  304. package/dist/declarations/src/utils/request-cache/request-cache.d.ts +17 -0
  305. package/dist/declarations/src/utils/shallow-equal/shallow-equal.d.ts +1 -0
  306. package/dist/declarations/src/utils/should-update-attribute-input/should-update-attribute-input.d.ts +6 -0
  307. package/dist/declarations/src/utils/slugify/slugify.d.ts +1 -0
  308. package/dist/declarations/src/utils/swap-array-items/swap-array-items.d.ts +2 -0
  309. package/dist/declarations/src/utils/text-fallback/text-fallback.d.ts +1 -0
  310. package/dist/declarations/src/utils/time-zones/time-zone-utils.d.ts +6 -0
  311. package/dist/declarations/src/utils/transform-to-proper-noun-case/transform-to-proper-noun-case.d.ts +2 -0
  312. package/dist/declarations/src/utils/truncate/index.d.ts +1 -0
  313. package/dist/declarations/src/utils/truncate/truncate.d.ts +1 -0
  314. package/dist/declarations/src/utils/type-definitions/type-definitions.d.ts +18 -0
  315. package/dist/declarations/src/utils/validation/get-indexes-of-invalid-values.d.ts +1 -0
  316. package/dist/declarations/src/utils/validation/index.d.ts +4 -0
  317. package/dist/declarations/src/utils/validation/messages.d.ts +64 -0
  318. package/dist/declarations/src/utils/validation/validation.d.ts +23 -0
  319. package/dist/declarations/src/utils/validation/without-empty-errors-by-field.d.ts +2 -0
  320. package/dist/declarations/src/utils/with-pending-requests/with-pending-requests.d.ts +5 -0
  321. package/dist/styles.css +87 -87
  322. package/package.json +26 -25
  323. package/test-utils/dist/commercetools-frontend-experimental-components-test-utils.cjs.d.ts +2 -0
@@ -0,0 +1,2 @@
1
+ export * from "./declarations/src/index.js";
2
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWVyY2V0b29scy1mcm9udGVuZC1leHBlcmltZW50YWwtY29tcG9uZW50cy5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4vZGVjbGFyYXRpb25zL3NyYy9pbmRleC5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=
@@ -930,17 +930,18 @@ const constructPrefixSearchPredicate = (prefixSearchFields, lowerBound, upperBou
930
930
  return _mapInstanceProperty__default["default"](prefixSearchFields).call(prefixSearchFields, constructPrefixSearchExpression).join(' or ');
931
931
  };
932
932
  const constructWherePredicate = (inputValue, prefixSearchFields) => {
933
- const wherePredicate = function () {
934
- if (inputValue.length) {
935
- if (isUUID$1(inputValue)) return `id = "${inputValue}"`;else {
936
- const _getPrefixSearchBound = getPrefixSearchBounds$1(inputValue),
937
- _getPrefixSearchBound2 = _slicedToArray(_getPrefixSearchBound, 2),
938
- lowerBound = _getPrefixSearchBound2[0],
939
- upperBound = _getPrefixSearchBound2[1];
940
- return constructPrefixSearchPredicate(prefixSearchFields, lowerBound, upperBound);
941
- }
933
+ let wherePredicate;
934
+ if (inputValue.length) {
935
+ if (isUUID$1(inputValue)) {
936
+ wherePredicate = `id = "${inputValue}"`;
937
+ } else {
938
+ const _getPrefixSearchBound = getPrefixSearchBounds$1(inputValue),
939
+ _getPrefixSearchBound2 = _slicedToArray(_getPrefixSearchBound, 2),
940
+ lowerBound = _getPrefixSearchBound2[0],
941
+ upperBound = _getPrefixSearchBound2[1];
942
+ wherePredicate = constructPrefixSearchPredicate(prefixSearchFields, lowerBound, upperBound);
942
943
  }
943
- }();
944
+ }
944
945
  return wherePredicate;
945
946
  };
946
947
  const useFetchProductTypessFromCTP = _ref2 => {
@@ -4017,7 +4018,9 @@ const doNotFormat = _ref13 => {
4017
4018
  let value = _ref13.value;
4018
4019
  return value;
4019
4020
  };
4020
- const getFormatter = type => isNil__default["default"](type) ? formatNilType : type.name === 'nested' ? formatNested : type.name === 'set' ? formatSet : type.name === 'enum' ? formatEnum : type.name === 'lenum' ? formatLenum : type.name === 'ltext' ? formatLtext : type.name === 'money' ? formatMoney$1 : type.name === 'reference' ? formatReference : type.name === 'date' ? formatDate : type.name === 'time' ? doNotFormat : type.name === 'datetime' ? formatDateTime : type.name === 'boolean' ? formatBoolean : type.name === 'text' ? doNotFormat : type.name === 'number' ? doNotFormat : formatUnknown;
4021
+ const getFormatter = type => {
4022
+ if (isNil__default["default"](type)) return formatNilType;else if (type.name === 'nested') return formatNested;else if (type.name === 'set') return formatSet;else if (type.name === 'enum') return formatEnum;else if (type.name === 'lenum') return formatLenum;else if (type.name === 'ltext') return formatLtext;else if (type.name === 'money') return formatMoney$1;else if (type.name === 'reference') return formatReference;else if (type.name === 'date') return formatDate;else if (type.name === 'time') return doNotFormat;else if (type.name === 'datetime') return formatDateTime;else if (type.name === 'boolean') return formatBoolean;else if (type.name === 'text') return doNotFormat;else if (type.name === 'number') return doNotFormat;else return formatUnknown;
4023
+ };
4021
4024
  function formatAttribute(_ref14) {
4022
4025
  let type = _ref14.type,
4023
4026
  value = _ref14.value,
@@ -7341,7 +7344,8 @@ function CustomReferenceInput(props) {
7341
7344
  props.setFieldValue(props.name, nullifiedIfNeeded);
7342
7345
  props.renderWarnings && props.handleWarningChange(props.name, props.fieldDefinition, rawValue);
7343
7346
  });
7344
- const ReferenceInputComponent = referenceTypeId === SEARCHABLE_REFERENCES.category ? CustomCategoryReferenceInput : referenceTypeId === SEARCHABLE_REFERENCES.cartDiscount ? CustomCartDiscountReferenceInput : referenceTypeId === SEARCHABLE_REFERENCES.product ? CustomProductReferenceInput : referenceTypeId === SEARCHABLE_REFERENCES.productType ? CustomProductTypeReferenceInput : referenceTypeId === SEARCHABLE_REFERENCES.channel ? CustomChannelReferenceInput : referenceTypeId === SEARCHABLE_REFERENCES.state ? CustomStateReferenceInput : CustomRawIdReferenceInput;
7347
+ let ReferenceInputComponent;
7348
+ if (referenceTypeId === SEARCHABLE_REFERENCES.category) ReferenceInputComponent = CustomCategoryReferenceInput;else if (referenceTypeId === SEARCHABLE_REFERENCES.cartDiscount) ReferenceInputComponent = CustomCartDiscountReferenceInput;else if (referenceTypeId === SEARCHABLE_REFERENCES.product) ReferenceInputComponent = CustomProductReferenceInput;else if (referenceTypeId === SEARCHABLE_REFERENCES.productType) ReferenceInputComponent = CustomProductTypeReferenceInput;else if (referenceTypeId === SEARCHABLE_REFERENCES.channel) ReferenceInputComponent = CustomChannelReferenceInput;else if (referenceTypeId === SEARCHABLE_REFERENCES.state) ReferenceInputComponent = CustomStateReferenceInput;else ReferenceInputComponent = CustomRawIdReferenceInput;
7345
7349
  return jsxRuntime.jsx(ReferenceInputComponent, {
7346
7350
  id: props.name,
7347
7351
  name: props.name,
@@ -7583,7 +7587,17 @@ function CustomFieldsLabelSubtitle(_ref3) {
7583
7587
  const referenceTypeId = type.referenceTypeId;
7584
7588
  const referenceTypeName = capitalizeFirst(referenceTypeId);
7585
7589
  if (_includesInstanceProperty__default["default"](_context = [SEARCHABLE_REFERENCES.category, SEARCHABLE_REFERENCES.cartDiscount]).call(_context, referenceTypeId)) return referenceTypeName;
7586
- return referenceTypeId === SEARCHABLE_REFERENCES.product ? formatMessage(messages$x.productReferenceLabel) : referenceTypeId === SEARCHABLE_REFERENCES.productType ? jsxRuntime.jsx(CustomFieldsProductTypeReferenceSubtitle, {}) : referenceTypeId === SEARCHABLE_REFERENCES.channel ? formatMessage(messages$x.channelReferenceLabel) : referenceTypeId === SEARCHABLE_REFERENCES.state ? formatMessage(messages$x.stateReferenceLabel) : `${referenceTypeName} ID`;
7590
+ if (referenceTypeId === SEARCHABLE_REFERENCES.product) {
7591
+ return formatMessage(messages$x.productReferenceLabel);
7592
+ } else if (referenceTypeId === SEARCHABLE_REFERENCES.productType) {
7593
+ return jsxRuntime.jsx(CustomFieldsProductTypeReferenceSubtitle, {});
7594
+ } else if (referenceTypeId === SEARCHABLE_REFERENCES.channel) {
7595
+ return formatMessage(messages$x.channelReferenceLabel);
7596
+ } else if (referenceTypeId === SEARCHABLE_REFERENCES.state) {
7597
+ return formatMessage(messages$x.stateReferenceLabel);
7598
+ } else {
7599
+ return `${referenceTypeName} ID`;
7600
+ }
7587
7601
  }
7588
7602
  const Portal = props => /*#__PURE__*/ReactDOM__default["default"].createPortal(props.children, document.body);
7589
7603
  var _ref$1 = process.env.NODE_ENV === "production" ? {
@@ -7591,7 +7605,7 @@ var _ref$1 = process.env.NODE_ENV === "production" ? {
7591
7605
  styles: "cursor:pointer;line-height:normal"
7592
7606
  } : {
7593
7607
  name: "471ze2-CustomFieldsCountIndicator",
7594
- styles: "cursor:pointer;line-height:normal;label:CustomFieldsCountIndicator;/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImN1c3RvbS1maWVsZHMtbGFiZWwuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9KZ0IiLCJmaWxlIjoiY3VzdG9tLWZpZWxkcy1sYWJlbC5qc3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBtZW1vIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcbmltcG9ydCB7IHVzZVF1ZXJ5IH0gZnJvbSAnQGFwb2xsby9jbGllbnQvcmVhY3QnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IFJlYWN0RE9NIGZyb20gJ3JlYWN0LWRvbSc7XG5pbXBvcnQgeyBGb3JtYXR0ZWRNZXNzYWdlLCB1c2VJbnRsIH0gZnJvbSAncmV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gICAgICAgICBhc3NpZ25lZEF0dHJpYnV0ZUdyb3Vwcz17ZmllbGREZWZpbml0aW9uLmFzc2lnbmVkQXR0cmlidXRlR3JvdXBzfVxuICAgICAgICAgICAgLz5cbiAgICAgICAgICA8L1NwYWNpbmdzLklubGluZT5cbiAgICAgICAgPC9Db25zdHJhaW50cy5Ib3Jpem9udGFsPlxuICAgICAgfVxuICAgICAgZGVzY3JpcHRpb249e1xuICAgICAgICA8Q3VzdG9tRmllbGRzTGFiZWxTdWJ0aXRsZSBmaWVsZERlZmluaXRpb249e2ZpZWxkRGVmaW5pdGlvbn0gLz5cbiAgICAgIH1cbiAgICAgIGhpbnQ9ezxDdXN0b21GaWVsZHNMYWJlbEhpbnQgZmllbGREZWZpbml0aW9uPXtmaWVsZERlZmluaXRpb259IC8+fVxuICAgICAgaGFzUmVxdWlyZWRJbmRpY2F0b3I9e2ZpZWxkRGVmaW5pdGlvbi5yZXF1aXJlZH1cbiAgICAvPlxuICApO1xufSk7XG5DdXN0b21GaWVsZHNMYWJlbC5kaXNwbGF5TmFtZSA9ICdDdXN0b21GaWVsZHNUaXRsZSc7XG5DdXN0b21GaWVsZHNMYWJlbC5wcm9wVHlwZXMgPSB7XG4gIG5hbWU6IFByb3BUeXBlcy5zdHJpbmcuaXNSZXF1aXJlZCxcbiAgZmllbGREZWZpbml0aW9uOiBQcm9wVHlwZXMuc2hhcGUoe1xuICAgIGFzc2lnbmVkQXR0cmlidXRlR3JvdXBzOiBQcm9wVHlwZXMuYXJyYXksXG4gICAgbmFtZTogUHJvcFR5cGVzLnN0cmluZyxcbiAgICBpbnB1dFRpcDogUHJvcFR5cGVzLm9iamVjdCxcbiAgICByZXF1aXJlZDogUHJvcFR5cGVzLmJvb2wsXG4gIH0pLFxufTtcbmV4cG9ydCBkZWZhdWx0IEN1c3RvbUZpZWxkc0xhYmVsO1xuIl19 */",
7608
+ styles: "cursor:pointer;line-height:normal;label:CustomFieldsCountIndicator;/*# sourceMappingURL=data:application/json;charset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AgICAgPENvbnN0cmFpbnRzLkhvcml6b250YWwgbWF4PVwic2NhbGVcIj5cbiAgICAgICAgICA8U3BhY2luZ3MuSW5saW5lIHNjYWxlPVwic1wiIGFsaWduSXRlbXM9XCJmbGV4LWVuZFwiPlxuICAgICAgICAgICAgPGRpdj5cbiAgICAgICAgICAgICAge2Zvcm1hdExvY2FsaXplZFN0cmluZyhmaWVsZERlZmluaXRpb24sIHtcbiAgICAgICAgICAgICAgICBrZXk6ICdsYWJlbCcsXG4gICAgICAgICAgICAgICAgbG9jYWxlOiBsYW5ndWFnZSxcbiAgICAgICAgICAgICAgICBmYWxsYmFja09yZGVyOiBsYW5ndWFnZXMsXG4gICAgICAgICAgICAgICAgZmFsbGJhY2s6IGZpZWxkRGVmaW5pdGlvbi5uYW1lLFxuICAgICAgICAgICAgICB9KX1cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgPEN1c3RvbUZpZWxkc0NvdW50SW5kaWNhdG9yXG4gICAgICAgICAgICAgIGFzc2lnbmVkQXR0cmlidXRlR3JvdXBzPXtmaWVsZERlZmluaXRpb24uYXNzaWduZWRBdHRyaWJ1dGVHcm91cHN9XG4gICAgICAgICAgICAvPlxuICAgICAgICAgIDwvU3BhY2luZ3MuSW5saW5lPlxuICAgICAgICA8L0NvbnN0cmFpbnRzLkhvcml6b250YWw+XG4gICAgICB9XG4gICAgICBkZXNjcmlwdGlvbj17XG4gICAgICAgIDxDdXN0b21GaWVsZHNMYWJlbFN1YnRpdGxlIGZpZWxkRGVmaW5pdGlvbj17ZmllbGREZWZpbml0aW9ufSAvPlxuICAgICAgfVxuICAgICAgaGludD17PEN1c3RvbUZpZWxkc0xhYmVsSGludCBmaWVsZERlZmluaXRpb249e2ZpZWxkRGVmaW5pdGlvbn0gLz59XG4gICAgICBoYXNSZXF1aXJlZEluZGljYXRvcj17ZmllbGREZWZpbml0aW9uLnJlcXVpcmVkfVxuICAgIC8+XG4gICk7XG59KTtcbkN1c3RvbUZpZWxkc0xhYmVsLmRpc3BsYXlOYW1lID0gJ0N1c3RvbUZpZWxkc1RpdGxlJztcbkN1c3RvbUZpZWxkc0xhYmVsLnByb3BUeXBlcyA9IHtcbiAgbmFtZTogUHJvcFR5cGVzLnN0cmluZy5pc1JlcXVpcmVkLFxuICBmaWVsZERlZmluaXRpb246IFByb3BUeXBlcy5zaGFwZSh7XG4gICAgYXNzaWduZWRBdHRyaWJ1dGVHcm91cHM6IFByb3BUeXBlcy5hcnJheSxcbiAgICBuYW1lOiBQcm9wVHlwZXMuc3RyaW5nLFxuICAgIGlucHV0VGlwOiBQcm9wVHlwZXMub2JqZWN0LFxuICAgIHJlcXVpcmVkOiBQcm9wVHlwZXMuYm9vbCxcbiAgfSksXG59O1xuZXhwb3J0IGRlZmF1bHQgQ3VzdG9tRmllbGRzTGFiZWw7XG4iXX0= */",
7595
7609
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1
7596
7610
  };
7597
7611
  function CustomFieldsCountIndicator(_ref4) {
@@ -7864,10 +7878,11 @@ const useDnDContext = () => {
7864
7878
 
7865
7879
  const _excluded$9 = ["renderCustomWarnings", "WrapperComponent"];
7866
7880
  function ownKeys$J(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
7867
- function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$J(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$J(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
7881
+ function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$J(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$J(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
7868
7882
  const existingAttributeTypes = ['text', 'ltext'];
7869
7883
  const newAttributeTypes = ['text', 'ltext', 'number', 'enum', 'lenum', 'money', 'boolean', 'date', 'datetime', 'reference', 'time']; // Add more types here
7870
7884
  const setAttributeTypes = ['text', 'ltext', 'number', 'enum', 'lenum', 'money', 'boolean', 'date', 'time', 'datetime', 'reference'];
7885
+ const ENABLED_FALLBACK_ATTRIBUTE_TYPES = [CUSTOM_FIELD_TYPES.enum, CUSTOM_FIELD_TYPES.lenum, CUSTOM_FIELD_TYPES.number, CUSTOM_FIELD_TYPES.text, CUSTOM_FIELD_TYPES.boolean, CUSTOM_FIELD_TYPES.money, CUSTOM_FIELD_TYPES.datetime, CUSTOM_FIELD_TYPES.date, CUSTOM_FIELD_TYPES.reference, CUSTOM_FIELD_TYPES.time];
7871
7886
  const getFieldName = (parentName, fieldName) => {
7872
7887
  if (!parentName) return fieldName;
7873
7888
  return `${parentName}.${fieldName}`;
@@ -7898,6 +7913,14 @@ const CustomFieldsInternal = _ref => {
7898
7913
  values = _valuesInstanceProperty__default["default"](_useFormikContext),
7899
7914
  handleBlur = _useFormikContext.handleBlur,
7900
7915
  status = _useFormikContext.status;
7916
+ const _useIntl = reactIntl.useIntl(),
7917
+ locale = _useIntl.locale;
7918
+ const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
7919
+ timeZone: applicationContext.user.timeZone,
7920
+ userLocale: applicationContext.dataLocale
7921
+ })),
7922
+ timeZone = _useApplicationContex.timeZone,
7923
+ userLocale = _useApplicationContex.userLocale;
7901
7924
  const isTailoringAttributesEnabled = applicationShell.useFeatureToggle(PRODUCT_TAILORING_FOR_ATTRIBUTES);
7902
7925
  const isTailoringAttributeForOtherTypes = applicationShell.useFeatureToggle(PRODUCT_TAILORING_FOR_ATTRIBUTES_TYPES_OTHER_THAN_TEXT);
7903
7926
  const isTailoringFallbackEnabled = applicationShell.useFeatureToggle(PRODUCT_TAILORING_FOR_ATTRIBUTES_FALLBACK_VALUES);
@@ -7912,10 +7935,13 @@ const CustomFieldsInternal = _ref => {
7912
7935
  return jsxRuntime.jsx(DroppableWrapper, {
7913
7936
  onDragEnd: onDragEnd,
7914
7937
  children: _mapInstanceProperty__default["default"](fieldDefinitions).call(fieldDefinitions, (fieldDefinition, index) => {
7938
+ var _context;
7915
7939
  const fieldName = getFieldName(props.name, fieldDefinition.name);
7916
7940
  const isTouched = Boolean(formik.getIn(touched, fieldName));
7917
7941
  const isFieldDisabled = props.isDisabled && !(isAttributeType(fieldDefinition.type, isTailoringAttributeForOtherTypes) && isTailoringAttributesEnabled);
7918
7942
  const isSet = fieldDefinition.type.name === 'set';
7943
+ const shouldUseAdditionalInfoProp = _includesInstanceProperty__default["default"](_context = [CUSTOM_FIELD_TYPES.ltext, CUSTOM_FIELD_TYPES.localizedstring, CUSTOM_FIELD_TYPES.localizedenum]).call(_context, fieldDefinition.type.name);
7944
+ const shouldDisplayFallbackRow = isTailoringFallbackEnabled && !shouldUseAdditionalInfoProp && _includesInstanceProperty__default["default"](ENABLED_FALLBACK_ATTRIBUTE_TYPES).call(ENABLED_FALLBACK_ATTRIBUTE_TYPES, fieldDefinition.type.name);
7919
7945
  const fieldErrors = formik.getIn(errors, fieldName);
7920
7946
  const value = props.inputValuesConverter(fieldName, formik.getIn(values, fieldName));
7921
7947
 
@@ -7941,9 +7967,10 @@ const CustomFieldsInternal = _ref => {
7941
7967
  hasWarning: props.renderWarnings && status?.warnings[fieldName],
7942
7968
  handleWarningChange: props.handleWarningChange,
7943
7969
  renderWarnings: props.renderWarnings,
7944
- additionalInfo: isTailoringFallbackEnabled && props.additionalInfoHandler && !isSet ? props.additionalInfoHandler(fieldDefinition) : undefined
7970
+ additionalInfo: !isSet && isTailoringFallbackEnabled && shouldUseAdditionalInfoProp && props.additionalInfoHandler ? props.additionalInfoHandler(fieldDefinition, locale, timeZone, userLocale) : undefined
7945
7971
  };
7946
7972
  const Field = jsxRuntime.jsx(FieldComponent, _objectSpread$J({}, fieldProps));
7973
+ // the several values inside the key are needed to make sure the field is re-rendered when those values change
7947
7974
  return jsxRuntime.jsx(formik.FastField, {
7948
7975
  name: fieldName,
7949
7976
  validate: validate,
@@ -7965,7 +7992,10 @@ const CustomFieldsInternal = _ref => {
7965
7992
  alignItems: "stretch",
7966
7993
  children: [WrapperComponent ? jsxRuntime.jsx(WrapperComponent, {
7967
7994
  children: Field
7968
- }) : Field, props.renderWarnings && status?.warnings[fieldName] && renderCustomWarnings(fieldDefinition), jsxRuntime.jsx(CustomFieldErrors$1, {
7995
+ }) : Field, shouldDisplayFallbackRow && jsxRuntime.jsx(uiKit.Text.Detail, {
7996
+ tone: "tertiary",
7997
+ children: props.additionalInfoHandler(fieldDefinition, locale, timeZone, userLocale)
7998
+ }), props.renderWarnings && status?.warnings[fieldName] && renderCustomWarnings(fieldDefinition), jsxRuntime.jsx(CustomFieldErrors$1, {
7969
7999
  isTouched: isTouched,
7970
8000
  errors: fieldErrors
7971
8001
  })]
@@ -7973,7 +8003,7 @@ const CustomFieldsInternal = _ref => {
7973
8003
  })
7974
8004
  })
7975
8005
  })
7976
- }, `${fieldName}-${index}-${fieldKey}`);
8006
+ }, `${fieldName}-${index}-${fieldKey}-${locale}-${userLocale}`);
7977
8007
  })
7978
8008
  });
7979
8009
  };
@@ -8580,7 +8610,8 @@ function ProductSelectionsPicker(_ref) {
8580
8610
  };
8581
8611
  }, [optionType]);
8582
8612
  if (productSelectionsTotalFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner$1, {});
8583
- const CustomProductSelectionsPicker = productSelectionsTotalFetcher.total <= lowerProductSelectionsLimit ? ProductSelectionBasicSelectDropdown : productSelectionsTotalFetcher.total <= upperProductSelectionsLimit ? ProductSelectionsAsyncSelectDropdown : ProductSelectionsSearchSelectDropdown;
8613
+ let CustomProductSelectionsPicker;
8614
+ if (productSelectionsTotalFetcher.total <= lowerProductSelectionsLimit) CustomProductSelectionsPicker = ProductSelectionBasicSelectDropdown;else if (productSelectionsTotalFetcher.total <= upperProductSelectionsLimit) CustomProductSelectionsPicker = ProductSelectionsAsyncSelectDropdown;else CustomProductSelectionsPicker = ProductSelectionsSearchSelectDropdown;
8584
8615
  return jsxRuntime.jsx(uiKit.Spacings.Stack, {
8585
8616
  children: jsxRuntime.jsx(CustomProductSelectionsPicker, _objectSpread$F(_objectSpread$F({
8586
8617
  lowerProductSelectionsLimit: lowerProductSelectionsLimit,
@@ -9287,7 +9318,23 @@ const StoreSelectInput = _ref => {
9287
9318
  };
9288
9319
  }, [optionType, totalNumberOfStoresFetcher.total, upperStoresLimit]);
9289
9320
  if (totalNumberOfStoresFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner$1, {});
9290
- const CustomStoreSelectInput = totalNumberOfStoresFetcher.total <= lowerStoresLimit ? StoresBasicSelectInput$1 : totalNumberOfStoresFetcher.total <= upperStoresLimit ? StoresAsyncSelectInput$1 : StoresSearchSelectInput$1;
9321
+ let CustomStoreSelectInput;
9322
+ // GIVEN total number of available stores <= lowerStoresLimit
9323
+ // THEN render basic SelectField with all available stores as options
9324
+ if (totalNumberOfStoresFetcher.total <= lowerStoresLimit) {
9325
+ CustomStoreSelectInput = StoresBasicSelectInput$1;
9326
+ }
9327
+ // GIVEN lowerStoresLimit > total number of available stores <= upperStoresLimit
9328
+ // THEN render AsyncSelectField with option list containing only first lowerStoresLimit stores options
9329
+ // AND hinting the user to start typing to load more
9330
+ else if (totalNumberOfStoresFetcher.total <= upperStoresLimit) {
9331
+ CustomStoreSelectInput = StoresAsyncSelectInput$1;
9332
+ }
9333
+ // GIVEN total number of available stores > 500
9334
+ // THEN render search input to search based on key.
9335
+ else {
9336
+ CustomStoreSelectInput = StoresSearchSelectInput$1;
9337
+ }
9291
9338
  return jsxRuntime.jsx(CustomStoreSelectInput, _objectSpread$B(_objectSpread$B({
9292
9339
  menuIsOpen: props.menuIsOpen,
9293
9340
  placeholder: props.placeholder,
@@ -9843,8 +9890,7 @@ let CustomFieldTypeDefinitionsConnector = /*#__PURE__*/function (_Component) {
9843
9890
  }(React.Component);
9844
9891
  CustomFieldTypeDefinitionsConnector.displayName = 'CustomFieldTypeDefinitionsConnector';
9845
9892
  CustomFieldTypeDefinitionsConnector.defaultProps = {
9846
- resources: [],
9847
- limit: QUERY_LIMIT.DEFAULT_MAX
9893
+ resources: []
9848
9894
  };
9849
9895
  CustomFieldTypeDefinitionsConnector.restDocToForm = restDocToForm;
9850
9896
  CustomFieldTypeDefinitionsConnector.graphQlDocToForm = graphQlDocToForm;
@@ -9857,7 +9903,7 @@ const createGraphQlOptions = ownProps => {
9857
9903
  return {
9858
9904
  variables: {
9859
9905
  where,
9860
- limit: ownProps.limit
9906
+ limit: QUERY_LIMIT.DEFAULT_MAX
9861
9907
  },
9862
9908
  context: {
9863
9909
  target: constants.GRAPHQL_TARGETS.COMMERCETOOLS_PLATFORM,
@@ -11041,14 +11087,20 @@ const PlatformLimitsShippingMethodsStatus = _ref => {
11041
11087
  platformLimits = _useShippingMethodsPl.platformLimits;
11042
11088
  const current = platformLimits?.shippingMethods?.total?.current;
11043
11089
  const limit = platformLimits?.shippingMethods?.total?.limit;
11044
- return jsxRuntime.jsx(StatusText, {
11045
- intlMessage: messages$n.shippingMethodsStatus,
11046
- children: getPlatformLimitsStatus({
11047
- limit,
11048
- current,
11049
- total,
11050
- intl
11051
- })
11090
+ return jsxRuntime.jsxs(uiKit.Spacings.Inline, {
11091
+ scale: "s",
11092
+ alignItems: "baseline",
11093
+ children: [jsxRuntime.jsx(StatusText, {
11094
+ intlMessage: messages$n.shippingMethodsStatus
11095
+ }), jsxRuntime.jsxs(uiKit.Text.Detail, {
11096
+ tone: "secondary",
11097
+ children: [getPlatformLimitsStatus({
11098
+ limit,
11099
+ current,
11100
+ total,
11101
+ intl
11102
+ }), ' ']
11103
+ })]
11052
11104
  });
11053
11105
  };
11054
11106
  PlatformLimitsShippingMethodsStatus.displayName = 'PlatformLimitsShippingMethodsStatus';
@@ -13878,6 +13930,7 @@ exports.ProductAttributeInput = ProductAttributeInput;
13878
13930
  exports.ProductAttributes = ProductAttributes;
13879
13931
  exports.ProductPickerInput = ProductPickerInput$1;
13880
13932
  exports.ProductSelectionPicker = ProductSelectionsPicker;
13933
+ exports.QUERY_LIMIT = QUERY_LIMIT;
13881
13934
  exports.RequestCache = RequestCache$1;
13882
13935
  exports.RequiredIndicator = RequiredIndicator$1;
13883
13936
  exports.ScrollToFieldError = ScrollToFieldError$1;
@@ -929,17 +929,18 @@ const constructPrefixSearchPredicate = (prefixSearchFields, lowerBound, upperBou
929
929
  return _mapInstanceProperty__default["default"](prefixSearchFields).call(prefixSearchFields, constructPrefixSearchExpression).join(' or ');
930
930
  };
931
931
  const constructWherePredicate = (inputValue, prefixSearchFields) => {
932
- const wherePredicate = function () {
933
- if (inputValue.length) {
934
- if (isUUID$1(inputValue)) return `id = "${inputValue}"`;else {
935
- const _getPrefixSearchBound = getPrefixSearchBounds$1(inputValue),
936
- _getPrefixSearchBound2 = _slicedToArray(_getPrefixSearchBound, 2),
937
- lowerBound = _getPrefixSearchBound2[0],
938
- upperBound = _getPrefixSearchBound2[1];
939
- return constructPrefixSearchPredicate(prefixSearchFields, lowerBound, upperBound);
940
- }
932
+ let wherePredicate;
933
+ if (inputValue.length) {
934
+ if (isUUID$1(inputValue)) {
935
+ wherePredicate = `id = "${inputValue}"`;
936
+ } else {
937
+ const _getPrefixSearchBound = getPrefixSearchBounds$1(inputValue),
938
+ _getPrefixSearchBound2 = _slicedToArray(_getPrefixSearchBound, 2),
939
+ lowerBound = _getPrefixSearchBound2[0],
940
+ upperBound = _getPrefixSearchBound2[1];
941
+ wherePredicate = constructPrefixSearchPredicate(prefixSearchFields, lowerBound, upperBound);
941
942
  }
942
- }();
943
+ }
943
944
  return wherePredicate;
944
945
  };
945
946
  const useFetchProductTypessFromCTP = _ref2 => {
@@ -4016,7 +4017,9 @@ const doNotFormat = _ref13 => {
4016
4017
  let value = _ref13.value;
4017
4018
  return value;
4018
4019
  };
4019
- const getFormatter = type => isNil__default["default"](type) ? formatNilType : type.name === 'nested' ? formatNested : type.name === 'set' ? formatSet : type.name === 'enum' ? formatEnum : type.name === 'lenum' ? formatLenum : type.name === 'ltext' ? formatLtext : type.name === 'money' ? formatMoney$1 : type.name === 'reference' ? formatReference : type.name === 'date' ? formatDate : type.name === 'time' ? doNotFormat : type.name === 'datetime' ? formatDateTime : type.name === 'boolean' ? formatBoolean : type.name === 'text' ? doNotFormat : type.name === 'number' ? doNotFormat : formatUnknown;
4020
+ const getFormatter = type => {
4021
+ if (isNil__default["default"](type)) return formatNilType;else if (type.name === 'nested') return formatNested;else if (type.name === 'set') return formatSet;else if (type.name === 'enum') return formatEnum;else if (type.name === 'lenum') return formatLenum;else if (type.name === 'ltext') return formatLtext;else if (type.name === 'money') return formatMoney$1;else if (type.name === 'reference') return formatReference;else if (type.name === 'date') return formatDate;else if (type.name === 'time') return doNotFormat;else if (type.name === 'datetime') return formatDateTime;else if (type.name === 'boolean') return formatBoolean;else if (type.name === 'text') return doNotFormat;else if (type.name === 'number') return doNotFormat;else return formatUnknown;
4022
+ };
4020
4023
  function formatAttribute(_ref14) {
4021
4024
  let type = _ref14.type,
4022
4025
  value = _ref14.value,
@@ -7340,7 +7343,8 @@ function CustomReferenceInput(props) {
7340
7343
  props.setFieldValue(props.name, nullifiedIfNeeded);
7341
7344
  props.renderWarnings && props.handleWarningChange(props.name, props.fieldDefinition, rawValue);
7342
7345
  });
7343
- const ReferenceInputComponent = referenceTypeId === SEARCHABLE_REFERENCES.category ? CustomCategoryReferenceInput : referenceTypeId === SEARCHABLE_REFERENCES.cartDiscount ? CustomCartDiscountReferenceInput : referenceTypeId === SEARCHABLE_REFERENCES.product ? CustomProductReferenceInput : referenceTypeId === SEARCHABLE_REFERENCES.productType ? CustomProductTypeReferenceInput : referenceTypeId === SEARCHABLE_REFERENCES.channel ? CustomChannelReferenceInput : referenceTypeId === SEARCHABLE_REFERENCES.state ? CustomStateReferenceInput : CustomRawIdReferenceInput;
7346
+ let ReferenceInputComponent;
7347
+ if (referenceTypeId === SEARCHABLE_REFERENCES.category) ReferenceInputComponent = CustomCategoryReferenceInput;else if (referenceTypeId === SEARCHABLE_REFERENCES.cartDiscount) ReferenceInputComponent = CustomCartDiscountReferenceInput;else if (referenceTypeId === SEARCHABLE_REFERENCES.product) ReferenceInputComponent = CustomProductReferenceInput;else if (referenceTypeId === SEARCHABLE_REFERENCES.productType) ReferenceInputComponent = CustomProductTypeReferenceInput;else if (referenceTypeId === SEARCHABLE_REFERENCES.channel) ReferenceInputComponent = CustomChannelReferenceInput;else if (referenceTypeId === SEARCHABLE_REFERENCES.state) ReferenceInputComponent = CustomStateReferenceInput;else ReferenceInputComponent = CustomRawIdReferenceInput;
7344
7348
  return jsxRuntime.jsx(ReferenceInputComponent, {
7345
7349
  id: props.name,
7346
7350
  name: props.name,
@@ -7581,7 +7585,17 @@ function CustomFieldsLabelSubtitle(_ref3) {
7581
7585
  const referenceTypeId = type.referenceTypeId;
7582
7586
  const referenceTypeName = capitalizeFirst(referenceTypeId);
7583
7587
  if (_includesInstanceProperty__default["default"](_context = [SEARCHABLE_REFERENCES.category, SEARCHABLE_REFERENCES.cartDiscount]).call(_context, referenceTypeId)) return referenceTypeName;
7584
- return referenceTypeId === SEARCHABLE_REFERENCES.product ? formatMessage(messages$x.productReferenceLabel) : referenceTypeId === SEARCHABLE_REFERENCES.productType ? jsxRuntime.jsx(CustomFieldsProductTypeReferenceSubtitle, {}) : referenceTypeId === SEARCHABLE_REFERENCES.channel ? formatMessage(messages$x.channelReferenceLabel) : referenceTypeId === SEARCHABLE_REFERENCES.state ? formatMessage(messages$x.stateReferenceLabel) : `${referenceTypeName} ID`;
7588
+ if (referenceTypeId === SEARCHABLE_REFERENCES.product) {
7589
+ return formatMessage(messages$x.productReferenceLabel);
7590
+ } else if (referenceTypeId === SEARCHABLE_REFERENCES.productType) {
7591
+ return jsxRuntime.jsx(CustomFieldsProductTypeReferenceSubtitle, {});
7592
+ } else if (referenceTypeId === SEARCHABLE_REFERENCES.channel) {
7593
+ return formatMessage(messages$x.channelReferenceLabel);
7594
+ } else if (referenceTypeId === SEARCHABLE_REFERENCES.state) {
7595
+ return formatMessage(messages$x.stateReferenceLabel);
7596
+ } else {
7597
+ return `${referenceTypeName} ID`;
7598
+ }
7585
7599
  }
7586
7600
  const Portal = props => /*#__PURE__*/ReactDOM__default["default"].createPortal(props.children, document.body);
7587
7601
  var _ref$1 = {
@@ -7853,10 +7867,11 @@ const useDnDContext = () => {
7853
7867
 
7854
7868
  const _excluded$9 = ["renderCustomWarnings", "WrapperComponent"];
7855
7869
  function ownKeys$J(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
7856
- function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$J(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$J(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
7870
+ function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$J(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$J(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
7857
7871
  const existingAttributeTypes = ['text', 'ltext'];
7858
7872
  const newAttributeTypes = ['text', 'ltext', 'number', 'enum', 'lenum', 'money', 'boolean', 'date', 'datetime', 'reference', 'time']; // Add more types here
7859
7873
  const setAttributeTypes = ['text', 'ltext', 'number', 'enum', 'lenum', 'money', 'boolean', 'date', 'time', 'datetime', 'reference'];
7874
+ const ENABLED_FALLBACK_ATTRIBUTE_TYPES = [CUSTOM_FIELD_TYPES.enum, CUSTOM_FIELD_TYPES.lenum, CUSTOM_FIELD_TYPES.number, CUSTOM_FIELD_TYPES.text, CUSTOM_FIELD_TYPES.boolean, CUSTOM_FIELD_TYPES.money, CUSTOM_FIELD_TYPES.datetime, CUSTOM_FIELD_TYPES.date, CUSTOM_FIELD_TYPES.reference, CUSTOM_FIELD_TYPES.time];
7860
7875
  const getFieldName = (parentName, fieldName) => {
7861
7876
  if (!parentName) return fieldName;
7862
7877
  return `${parentName}.${fieldName}`;
@@ -7887,6 +7902,14 @@ const CustomFieldsInternal = _ref => {
7887
7902
  values = _valuesInstanceProperty__default["default"](_useFormikContext),
7888
7903
  handleBlur = _useFormikContext.handleBlur,
7889
7904
  status = _useFormikContext.status;
7905
+ const _useIntl = reactIntl.useIntl(),
7906
+ locale = _useIntl.locale;
7907
+ const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
7908
+ timeZone: applicationContext.user.timeZone,
7909
+ userLocale: applicationContext.dataLocale
7910
+ })),
7911
+ timeZone = _useApplicationContex.timeZone,
7912
+ userLocale = _useApplicationContex.userLocale;
7890
7913
  const isTailoringAttributesEnabled = applicationShell.useFeatureToggle(PRODUCT_TAILORING_FOR_ATTRIBUTES);
7891
7914
  const isTailoringAttributeForOtherTypes = applicationShell.useFeatureToggle(PRODUCT_TAILORING_FOR_ATTRIBUTES_TYPES_OTHER_THAN_TEXT);
7892
7915
  const isTailoringFallbackEnabled = applicationShell.useFeatureToggle(PRODUCT_TAILORING_FOR_ATTRIBUTES_FALLBACK_VALUES);
@@ -7901,10 +7924,13 @@ const CustomFieldsInternal = _ref => {
7901
7924
  return jsxRuntime.jsx(DroppableWrapper, {
7902
7925
  onDragEnd: onDragEnd,
7903
7926
  children: _mapInstanceProperty__default["default"](fieldDefinitions).call(fieldDefinitions, (fieldDefinition, index) => {
7927
+ var _context;
7904
7928
  const fieldName = getFieldName(props.name, fieldDefinition.name);
7905
7929
  const isTouched = Boolean(formik.getIn(touched, fieldName));
7906
7930
  const isFieldDisabled = props.isDisabled && !(isAttributeType(fieldDefinition.type, isTailoringAttributeForOtherTypes) && isTailoringAttributesEnabled);
7907
7931
  const isSet = fieldDefinition.type.name === 'set';
7932
+ const shouldUseAdditionalInfoProp = _includesInstanceProperty__default["default"](_context = [CUSTOM_FIELD_TYPES.ltext, CUSTOM_FIELD_TYPES.localizedstring, CUSTOM_FIELD_TYPES.localizedenum]).call(_context, fieldDefinition.type.name);
7933
+ const shouldDisplayFallbackRow = isTailoringFallbackEnabled && !shouldUseAdditionalInfoProp && _includesInstanceProperty__default["default"](ENABLED_FALLBACK_ATTRIBUTE_TYPES).call(ENABLED_FALLBACK_ATTRIBUTE_TYPES, fieldDefinition.type.name);
7908
7934
  const fieldErrors = formik.getIn(errors, fieldName);
7909
7935
  const value = props.inputValuesConverter(fieldName, formik.getIn(values, fieldName));
7910
7936
 
@@ -7930,9 +7956,10 @@ const CustomFieldsInternal = _ref => {
7930
7956
  hasWarning: props.renderWarnings && status?.warnings[fieldName],
7931
7957
  handleWarningChange: props.handleWarningChange,
7932
7958
  renderWarnings: props.renderWarnings,
7933
- additionalInfo: isTailoringFallbackEnabled && props.additionalInfoHandler && !isSet ? props.additionalInfoHandler(fieldDefinition) : undefined
7959
+ additionalInfo: !isSet && isTailoringFallbackEnabled && shouldUseAdditionalInfoProp && props.additionalInfoHandler ? props.additionalInfoHandler(fieldDefinition, locale, timeZone, userLocale) : undefined
7934
7960
  };
7935
7961
  const Field = jsxRuntime.jsx(FieldComponent, _objectSpread$J({}, fieldProps));
7962
+ // the several values inside the key are needed to make sure the field is re-rendered when those values change
7936
7963
  return jsxRuntime.jsx(formik.FastField, {
7937
7964
  name: fieldName,
7938
7965
  validate: validate,
@@ -7954,7 +7981,10 @@ const CustomFieldsInternal = _ref => {
7954
7981
  alignItems: "stretch",
7955
7982
  children: [WrapperComponent ? jsxRuntime.jsx(WrapperComponent, {
7956
7983
  children: Field
7957
- }) : Field, props.renderWarnings && status?.warnings[fieldName] && renderCustomWarnings(fieldDefinition), jsxRuntime.jsx(CustomFieldErrors$1, {
7984
+ }) : Field, shouldDisplayFallbackRow && jsxRuntime.jsx(uiKit.Text.Detail, {
7985
+ tone: "tertiary",
7986
+ children: props.additionalInfoHandler(fieldDefinition, locale, timeZone, userLocale)
7987
+ }), props.renderWarnings && status?.warnings[fieldName] && renderCustomWarnings(fieldDefinition), jsxRuntime.jsx(CustomFieldErrors$1, {
7958
7988
  isTouched: isTouched,
7959
7989
  errors: fieldErrors
7960
7990
  })]
@@ -7962,7 +7992,7 @@ const CustomFieldsInternal = _ref => {
7962
7992
  })
7963
7993
  })
7964
7994
  })
7965
- }, `${fieldName}-${index}-${fieldKey}`);
7995
+ }, `${fieldName}-${index}-${fieldKey}-${locale}-${userLocale}`);
7966
7996
  })
7967
7997
  });
7968
7998
  };
@@ -8569,7 +8599,8 @@ function ProductSelectionsPicker(_ref) {
8569
8599
  };
8570
8600
  }, [optionType]);
8571
8601
  if (productSelectionsTotalFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner$1, {});
8572
- const CustomProductSelectionsPicker = productSelectionsTotalFetcher.total <= lowerProductSelectionsLimit ? ProductSelectionBasicSelectDropdown : productSelectionsTotalFetcher.total <= upperProductSelectionsLimit ? ProductSelectionsAsyncSelectDropdown : ProductSelectionsSearchSelectDropdown;
8602
+ let CustomProductSelectionsPicker;
8603
+ if (productSelectionsTotalFetcher.total <= lowerProductSelectionsLimit) CustomProductSelectionsPicker = ProductSelectionBasicSelectDropdown;else if (productSelectionsTotalFetcher.total <= upperProductSelectionsLimit) CustomProductSelectionsPicker = ProductSelectionsAsyncSelectDropdown;else CustomProductSelectionsPicker = ProductSelectionsSearchSelectDropdown;
8573
8604
  return jsxRuntime.jsx(uiKit.Spacings.Stack, {
8574
8605
  children: jsxRuntime.jsx(CustomProductSelectionsPicker, _objectSpread$F(_objectSpread$F({
8575
8606
  lowerProductSelectionsLimit: lowerProductSelectionsLimit,
@@ -9276,7 +9307,23 @@ const StoreSelectInput = _ref => {
9276
9307
  };
9277
9308
  }, [optionType, totalNumberOfStoresFetcher.total, upperStoresLimit]);
9278
9309
  if (totalNumberOfStoresFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner$1, {});
9279
- const CustomStoreSelectInput = totalNumberOfStoresFetcher.total <= lowerStoresLimit ? StoresBasicSelectInput$1 : totalNumberOfStoresFetcher.total <= upperStoresLimit ? StoresAsyncSelectInput$1 : StoresSearchSelectInput$1;
9310
+ let CustomStoreSelectInput;
9311
+ // GIVEN total number of available stores <= lowerStoresLimit
9312
+ // THEN render basic SelectField with all available stores as options
9313
+ if (totalNumberOfStoresFetcher.total <= lowerStoresLimit) {
9314
+ CustomStoreSelectInput = StoresBasicSelectInput$1;
9315
+ }
9316
+ // GIVEN lowerStoresLimit > total number of available stores <= upperStoresLimit
9317
+ // THEN render AsyncSelectField with option list containing only first lowerStoresLimit stores options
9318
+ // AND hinting the user to start typing to load more
9319
+ else if (totalNumberOfStoresFetcher.total <= upperStoresLimit) {
9320
+ CustomStoreSelectInput = StoresAsyncSelectInput$1;
9321
+ }
9322
+ // GIVEN total number of available stores > 500
9323
+ // THEN render search input to search based on key.
9324
+ else {
9325
+ CustomStoreSelectInput = StoresSearchSelectInput$1;
9326
+ }
9280
9327
  return jsxRuntime.jsx(CustomStoreSelectInput, _objectSpread$B(_objectSpread$B({
9281
9328
  menuIsOpen: props.menuIsOpen,
9282
9329
  placeholder: props.placeholder,
@@ -9824,8 +9871,7 @@ let CustomFieldTypeDefinitionsConnector = /*#__PURE__*/function (_Component) {
9824
9871
  }(React.Component);
9825
9872
  CustomFieldTypeDefinitionsConnector.displayName = 'CustomFieldTypeDefinitionsConnector';
9826
9873
  CustomFieldTypeDefinitionsConnector.defaultProps = {
9827
- resources: [],
9828
- limit: QUERY_LIMIT.DEFAULT_MAX
9874
+ resources: []
9829
9875
  };
9830
9876
  CustomFieldTypeDefinitionsConnector.restDocToForm = restDocToForm;
9831
9877
  CustomFieldTypeDefinitionsConnector.graphQlDocToForm = graphQlDocToForm;
@@ -9838,7 +9884,7 @@ const createGraphQlOptions = ownProps => {
9838
9884
  return {
9839
9885
  variables: {
9840
9886
  where,
9841
- limit: ownProps.limit
9887
+ limit: QUERY_LIMIT.DEFAULT_MAX
9842
9888
  },
9843
9889
  context: {
9844
9890
  target: constants.GRAPHQL_TARGETS.COMMERCETOOLS_PLATFORM,
@@ -11022,14 +11068,20 @@ const PlatformLimitsShippingMethodsStatus = _ref => {
11022
11068
  platformLimits = _useShippingMethodsPl.platformLimits;
11023
11069
  const current = platformLimits?.shippingMethods?.total?.current;
11024
11070
  const limit = platformLimits?.shippingMethods?.total?.limit;
11025
- return jsxRuntime.jsx(StatusText, {
11026
- intlMessage: messages$n.shippingMethodsStatus,
11027
- children: getPlatformLimitsStatus({
11028
- limit,
11029
- current,
11030
- total,
11031
- intl
11032
- })
11071
+ return jsxRuntime.jsxs(uiKit.Spacings.Inline, {
11072
+ scale: "s",
11073
+ alignItems: "baseline",
11074
+ children: [jsxRuntime.jsx(StatusText, {
11075
+ intlMessage: messages$n.shippingMethodsStatus
11076
+ }), jsxRuntime.jsxs(uiKit.Text.Detail, {
11077
+ tone: "secondary",
11078
+ children: [getPlatformLimitsStatus({
11079
+ limit,
11080
+ current,
11081
+ total,
11082
+ intl
11083
+ }), ' ']
11084
+ })]
11033
11085
  });
11034
11086
  };
11035
11087
  PlatformLimitsShippingMethodsStatus.displayName = 'PlatformLimitsShippingMethodsStatus';
@@ -13859,6 +13911,7 @@ exports.ProductAttributeInput = ProductAttributeInput;
13859
13911
  exports.ProductAttributes = ProductAttributes;
13860
13912
  exports.ProductPickerInput = ProductPickerInput$1;
13861
13913
  exports.ProductSelectionPicker = ProductSelectionsPicker;
13914
+ exports.QUERY_LIMIT = QUERY_LIMIT;
13862
13915
  exports.RequestCache = RequestCache$1;
13863
13916
  exports.RequiredIndicator = RequiredIndicator$1;
13864
13917
  exports.ScrollToFieldError = ScrollToFieldError$1;