@commercetools-frontend/experimental-components 0.0.2 → 0.0.3

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 (932) hide show
  1. package/README.md +3 -0
  2. package/dist/commercetools-frontend-experimental-components.cjs.dev.js +6 -6
  3. package/dist/commercetools-frontend-experimental-components.cjs.prod.js +6 -6
  4. package/dist/commercetools-frontend-experimental-components.esm.js +6 -6
  5. package/dist/styles.css +1322 -0
  6. package/package.json +15 -11
  7. package/CHANGELOG.md +0 -7
  8. package/src/actions/reference-search/cart-discount/cart-discount.ctp.graphql +0 -29
  9. package/src/actions/reference-search/cart-discount/cart-discount.js +0 -69
  10. package/src/actions/reference-search/cart-discount/cart-discount.spec.js +0 -115
  11. package/src/actions/reference-search/cart-discount/index.js +0 -1
  12. package/src/actions/reference-search/category/category.ctp.graphql +0 -44
  13. package/src/actions/reference-search/category/category.js +0 -50
  14. package/src/actions/reference-search/category/category.spec.js +0 -82
  15. package/src/actions/reference-search/category/index.js +0 -1
  16. package/src/components/attribute-definitions/reference-search/cart-discount-reference-search/cart-discount-reference-search.jsx +0 -132
  17. package/src/components/attribute-definitions/reference-search/cart-discount-reference-search/cart-discount-reference-search.spec.js +0 -225
  18. package/src/components/attribute-definitions/reference-search/cart-discount-reference-search/index.js +0 -1
  19. package/src/components/attribute-definitions/reference-search/cart-discount-reference-search/messages.js +0 -33
  20. package/src/components/attribute-definitions/reference-search/cart-discount-reference-search/option.jsx +0 -45
  21. package/src/components/attribute-definitions/reference-search/category-reference-search/category-reference-search.jsx +0 -96
  22. package/src/components/attribute-definitions/reference-search/category-reference-search/category-reference-search.spec.js +0 -281
  23. package/src/components/attribute-definitions/reference-search/category-reference-search/index.js +0 -2
  24. package/src/components/attribute-definitions/reference-search/category-reference-search/messages.js +0 -37
  25. package/src/components/attribute-definitions/reference-search/category-reference-search/option.jsx +0 -71
  26. package/src/components/attribute-definitions/reference-search/category-reference-search/use-cached-category-options.js +0 -21
  27. package/src/components/attribute-definitions/reference-search/index.js +0 -10
  28. package/src/components/attribute-definitions/reference-search/reference-search.jsx +0 -179
  29. package/src/components/attribute-definitions/reference-search/reference-search.module.css +0 -13
  30. package/src/components/business-unit-select-field/business-unit-select-field.jsx +0 -141
  31. package/src/components/business-unit-select-field/index.js +0 -1
  32. package/src/components/business-unit-select-input/business-unit-select-input.jsx +0 -160
  33. package/src/components/business-unit-select-input/business-unit-select-input.spec.js +0 -118
  34. package/src/components/business-unit-select-input/components/business-unit-async-select-input/business-unit-async-select-input.jsx +0 -181
  35. package/src/components/business-unit-select-input/components/business-unit-async-select-input/index.js +0 -1
  36. package/src/components/business-unit-select-input/components/business-unit-basic-select-input/business-unit-basic-select-input.jsx +0 -150
  37. package/src/components/business-unit-select-input/components/business-unit-basic-select-input/index.js +0 -1
  38. package/src/components/business-unit-select-input/components/business-unit-search-select-input/business-unit-search-select-input.jsx +0 -187
  39. package/src/components/business-unit-select-input/components/business-unit-search-select-input/fetch-business-units-by-where-predicate.ctp.graphql +0 -9
  40. package/src/components/business-unit-select-input/components/business-unit-search-select-input/index.js +0 -1
  41. package/src/components/business-unit-select-input/components/business-unit-search-select-input/mocks/handlers.js +0 -16
  42. package/src/components/business-unit-select-input/components/business-unit-search-select-input/mocks/index.js +0 -3
  43. package/src/components/business-unit-select-input/constants.js +0 -2
  44. package/src/components/business-unit-select-input/hooks/index.js +0 -5
  45. package/src/components/business-unit-select-input/hooks/use-business-units-by-field-fetcher/fetch-business-units-by-field.ctp.graphql +0 -9
  46. package/src/components/business-unit-select-input/hooks/use-business-units-by-field-fetcher/index.js +0 -2
  47. package/src/components/business-unit-select-input/hooks/use-business-units-by-field-fetcher/mocks/handlers.js +0 -17
  48. package/src/components/business-unit-select-input/hooks/use-business-units-by-field-fetcher/mocks/index.js +0 -3
  49. package/src/components/business-unit-select-input/hooks/use-business-units-by-field-fetcher/use-business-units-by-field-fetcher.js +0 -35
  50. package/src/components/business-unit-select-input/hooks/use-business-units-list-fetcher/fetch-business-units-list.ctp.graphql +0 -21
  51. package/src/components/business-unit-select-input/hooks/use-business-units-list-fetcher/index.js +0 -2
  52. package/src/components/business-unit-select-input/hooks/use-business-units-list-fetcher/mocks/handlers.js +0 -17
  53. package/src/components/business-unit-select-input/hooks/use-business-units-list-fetcher/mocks/index.js +0 -3
  54. package/src/components/business-unit-select-input/hooks/use-business-units-list-fetcher/use-business-units-list-fetcher.js +0 -50
  55. package/src/components/business-unit-select-input/hooks/use-total-number-of-business-units-fetcher/index.js +0 -2
  56. package/src/components/business-unit-select-input/hooks/use-total-number-of-business-units-fetcher/mocks/handlers.js +0 -17
  57. package/src/components/business-unit-select-input/hooks/use-total-number-of-business-units-fetcher/mocks/index.js +0 -3
  58. package/src/components/business-unit-select-input/hooks/use-total-number-of-business-units-fetcher/total-number-of-business-units.ctp.graphql +0 -5
  59. package/src/components/business-unit-select-input/hooks/use-total-number-of-business-units-fetcher/use-total-number-of-business-units-fetcher.js +0 -20
  60. package/src/components/business-unit-select-input/index.js +0 -5
  61. package/src/components/business-unit-select-input/messages.js +0 -30
  62. package/src/components/business-unit-select-input/utils.js +0 -27
  63. package/src/components/buttons/button/button.jsx +0 -42
  64. package/src/components/buttons/button/button.module.css +0 -214
  65. package/src/components/buttons/button/button.spec.js +0 -84
  66. package/src/components/buttons/button/index.js +0 -1
  67. package/src/components/buttons/button-close/__snapshots__/button-close.spec.js.snap +0 -19
  68. package/src/components/buttons/button-close/button-close.jsx +0 -37
  69. package/src/components/buttons/button-close/button-close.module.css +0 -3
  70. package/src/components/buttons/button-close/button-close.spec.js +0 -68
  71. package/src/components/buttons/button-close/index.js +0 -1
  72. package/src/components/buttons/button-group/button-group.jsx +0 -62
  73. package/src/components/buttons/button-group/button-group.module.css +0 -53
  74. package/src/components/buttons/button-group/button-group.spec.js +0 -142
  75. package/src/components/buttons/button-group/index.js +0 -1
  76. package/src/components/buttons/button-typed/button-typed.jsx +0 -120
  77. package/src/components/buttons/button-typed/button-typed.spec.js +0 -95
  78. package/src/components/buttons/button-typed/index.js +0 -1
  79. package/src/components/buttons/file-input/README.md +0 -45
  80. package/src/components/buttons/file-input/file-input.jsx +0 -35
  81. package/src/components/buttons/file-input/file-input.module.css +0 -31
  82. package/src/components/buttons/file-input/file-input.spec.js +0 -115
  83. package/src/components/buttons/file-input/index.js +0 -1
  84. package/src/components/buttons/file-input/messages.js +0 -9
  85. package/src/components/buttons/index.jsx +0 -42
  86. package/src/components/centered-loading-spinner/centered-loading-spinner.jsx +0 -18
  87. package/src/components/centered-loading-spinner/centered-loading-spinner.module.css +0 -7
  88. package/src/components/centered-loading-spinner/centered-loading-spinner.spec.js +0 -13
  89. package/src/components/centered-loading-spinner/index.js +0 -2
  90. package/src/components/channel-picker-input/channel-picker-input.ctp.graphql +0 -24
  91. package/src/components/channel-picker-input/channel-picker-input.jsx +0 -210
  92. package/src/components/channel-picker-input/channel-picker-input.spec.js +0 -405
  93. package/src/components/channel-picker-input/index.js +0 -1
  94. package/src/components/channel-picker-input/messages.js +0 -14
  95. package/src/components/channel-picker-input/tracking-events.js +0 -24
  96. package/src/components/country-picker/components/countries-async-select-dropdown/countries-async-select-dropdown.jsx +0 -89
  97. package/src/components/country-picker/components/countries-async-select-dropdown/index.js +0 -1
  98. package/src/components/country-picker/components/countries-basic-select-dropdown/countries-basic-select-dropdown.jsx +0 -50
  99. package/src/components/country-picker/components/countries-basic-select-dropdown/index.js +0 -1
  100. package/src/components/country-picker/constants.js +0 -1
  101. package/src/components/country-picker/country-picker.jsx +0 -49
  102. package/src/components/country-picker/index.js +0 -1
  103. package/src/components/country-picker/messages.js +0 -20
  104. package/src/components/divider/divider.jsx +0 -21
  105. package/src/components/divider/divider.module.css +0 -25
  106. package/src/components/divider/index.js +0 -1
  107. package/src/components/formatted-date-time/README.md +0 -44
  108. package/src/components/formatted-date-time/__snapshots__/formatted-date-time.spec.js.snap +0 -19
  109. package/src/components/formatted-date-time/formatted-date-time.jsx +0 -35
  110. package/src/components/formatted-date-time/formatted-date-time.spec.js +0 -68
  111. package/src/components/formatted-date-time/index.js +0 -1
  112. package/src/components/keep-display-name/index.js +0 -1
  113. package/src/components/keep-display-name/keep-display-name.js +0 -6
  114. package/src/components/messages.js +0 -17
  115. package/src/components/modal-container/__snapshots__/modal-container.spec.js.snap +0 -21
  116. package/src/components/modal-container/index.js +0 -1
  117. package/src/components/modal-container/modal-container.jsx +0 -36
  118. package/src/components/modal-container/modal-container.spec.js +0 -10
  119. package/src/components/modal-content-layout/index.js +0 -1
  120. package/src/components/modal-content-layout/modal-content-layout.jsx +0 -38
  121. package/src/components/modal-content-layout/modal-content-layout.module.css +0 -69
  122. package/src/components/modal-content-layout/modal-content-layout.spec.js +0 -109
  123. package/src/components/product-attributes/README.md +0 -72
  124. package/src/components/product-attributes/conversions.js +0 -75
  125. package/src/components/product-attributes/conversions.spec.js +0 -97
  126. package/src/components/product-attributes/index.js +0 -3
  127. package/src/components/product-attributes/product-attribute-input.jsx +0 -68
  128. package/src/components/product-attributes/product-attributes.jsx +0 -79
  129. package/src/components/product-picker-input/index.js +0 -1
  130. package/src/components/product-picker-input/messages.js +0 -14
  131. package/src/components/product-picker-input/product-picker-input.ctp.graphql +0 -31
  132. package/src/components/product-picker-input/product-picker-input.jsx +0 -203
  133. package/src/components/product-picker-input/product-picker-input.spec.js +0 -357
  134. package/src/components/product-picker-input/tracking-events.js +0 -19
  135. package/src/components/product-selection-picker/components/product-selection-async-select-dropdown/index.js +0 -1
  136. package/src/components/product-selection-picker/components/product-selection-async-select-dropdown/product-selection-async-select-dropdown.jsx +0 -113
  137. package/src/components/product-selection-picker/components/product-selection-basic-select-dropdown/index.js +0 -1
  138. package/src/components/product-selection-picker/components/product-selection-basic-select-dropdown/product-selection-basic-select-dropdown.jsx +0 -98
  139. package/src/components/product-selection-picker/components/product-selections-search-select-dropdown/index.js +0 -1
  140. package/src/components/product-selection-picker/components/product-selections-search-select-dropdown/product-selections-fetcher.ctp.graphql +0 -13
  141. package/src/components/product-selection-picker/components/product-selections-search-select-dropdown/product-selections-search-select-dropdown.jsx +0 -121
  142. package/src/components/product-selection-picker/constants.js +0 -2
  143. package/src/components/product-selection-picker/index.js +0 -1
  144. package/src/components/product-selection-picker/messages.js +0 -20
  145. package/src/components/product-selection-picker/product-selection-picker.jsx +0 -84
  146. package/src/components/product-type-picker-input/index.js +0 -1
  147. package/src/components/product-type-picker-input/messages.js +0 -14
  148. package/src/components/product-type-picker-input/product-type-picker-input.ctp.graphql +0 -15
  149. package/src/components/product-type-picker-input/product-type-picker-input.jsx +0 -172
  150. package/src/components/product-type-picker-input/product-type-picker-input.spec.js +0 -266
  151. package/src/components/product-type-picker-input/tracking-events.js +0 -14
  152. package/src/components/required-indicator/__snapshots__/required-indicator.spec.js.snap +0 -17
  153. package/src/components/required-indicator/index.js +0 -1
  154. package/src/components/required-indicator/required-indicator.jsx +0 -16
  155. package/src/components/required-indicator/required-indicator.module.css +0 -3
  156. package/src/components/required-indicator/required-indicator.spec.js +0 -14
  157. package/src/components/scroll-to-field-error/index.js +0 -1
  158. package/src/components/scroll-to-field-error/scroll-to-field-error.js +0 -32
  159. package/src/components/selectable-field-search-input/index.js +0 -1
  160. package/src/components/selectable-field-search-input/messages.js +0 -14
  161. package/src/components/selectable-field-search-input/selectable-field-search-input.jsx +0 -147
  162. package/src/components/selectable-field-search-input/selectable-field-search-input.module.css +0 -14
  163. package/src/components/selectable-field-search-input/selectable-field-search-input.spec.js +0 -82
  164. package/src/components/state-picker-input/index.js +0 -1
  165. package/src/components/state-picker-input/messages.js +0 -14
  166. package/src/components/state-picker-input/state-picker-input.ctp.graphql +0 -24
  167. package/src/components/state-picker-input/state-picker-input.jsx +0 -204
  168. package/src/components/state-picker-input/state-picker-input.spec.js +0 -447
  169. package/src/components/state-picker-input/tracking-events.js +0 -24
  170. package/src/components/store-select-field/index.js +0 -1
  171. package/src/components/store-select-field/store-select-field.jsx +0 -145
  172. package/src/components/store-select-input/components/stores-async-select-input/index.js +0 -1
  173. package/src/components/store-select-input/components/stores-async-select-input/stores-async-select-input.jsx +0 -214
  174. package/src/components/store-select-input/components/stores-basic-select-input/index.js +0 -1
  175. package/src/components/store-select-input/components/stores-basic-select-input/stores-basic-select-input.jsx +0 -172
  176. package/src/components/store-select-input/components/stores-search-select-input/fetch-stores-by-where-predicate.ctp.graphql +0 -26
  177. package/src/components/store-select-input/components/stores-search-select-input/index.js +0 -2
  178. package/src/components/store-select-input/components/stores-search-select-input/mocks/handlers.js +0 -16
  179. package/src/components/store-select-input/components/stores-search-select-input/mocks/index.js +0 -3
  180. package/src/components/store-select-input/components/stores-search-select-input/stores-search-select-input.jsx +0 -261
  181. package/src/components/store-select-input/constants.js +0 -2
  182. package/src/components/store-select-input/hooks/index.js +0 -4
  183. package/src/components/store-select-input/hooks/use-stores-by-field-fetcher/fetch-stores-by-field.ctp.graphql +0 -22
  184. package/src/components/store-select-input/hooks/use-stores-by-field-fetcher/index.js +0 -2
  185. package/src/components/store-select-input/hooks/use-stores-by-field-fetcher/mocks/handlers.js +0 -16
  186. package/src/components/store-select-input/hooks/use-stores-by-field-fetcher/mocks/index.js +0 -3
  187. package/src/components/store-select-input/hooks/use-stores-by-field-fetcher/use-stores-by-field-fetcher.js +0 -47
  188. package/src/components/store-select-input/hooks/use-total-number-of-stores-fetcher/index.js +0 -2
  189. package/src/components/store-select-input/hooks/use-total-number-of-stores-fetcher/mocks/handlers.js +0 -16
  190. package/src/components/store-select-input/hooks/use-total-number-of-stores-fetcher/mocks/index.js +0 -3
  191. package/src/components/store-select-input/hooks/use-total-number-of-stores-fetcher/total-number-of-stores.ctp.graphql +0 -5
  192. package/src/components/store-select-input/hooks/use-total-number-of-stores-fetcher/use-total-number-of-stores-fetcher.js +0 -20
  193. package/src/components/store-select-input/index.js +0 -4
  194. package/src/components/store-select-input/messages.js +0 -36
  195. package/src/components/store-select-input/store-select-input.jsx +0 -163
  196. package/src/components/store-select-input/store-select-input.spec.js +0 -124
  197. package/src/components/store-select-input/utils.js +0 -40
  198. package/src/components/tooltip/index.js +0 -1
  199. package/src/components/tooltip/tooltip.jsx +0 -192
  200. package/src/components/tooltip/tooltip.module.css +0 -281
  201. package/src/components/tooltip/tooltip.spec.js +0 -138
  202. package/src/components/validated-input/__snapshots__/validated-input.spec.js.snap +0 -13
  203. package/src/components/validated-input/index.js +0 -2
  204. package/src/components/validated-input/validated-input.jsx +0 -318
  205. package/src/components/validated-input/validated-input.module.css +0 -9
  206. package/src/components/validated-input/validated-input.spec.js +0 -91
  207. package/src/components/validation-error/README.md +0 -87
  208. package/src/components/validation-error/__snapshots__/validation-error-match.spec.js.snap +0 -9
  209. package/src/components/validation-error/__snapshots__/validation-error-switch.spec.js.snap +0 -12
  210. package/src/components/validation-error/index.js +0 -4
  211. package/src/components/validation-error/validation-error-match.js +0 -31
  212. package/src/components/validation-error/validation-error-match.spec.js +0 -102
  213. package/src/components/validation-error/validation-error-switch.js +0 -45
  214. package/src/components/validation-error/validation-error-switch.spec.js +0 -78
  215. package/src/components/with-mouse-over-state/README.md +0 -33
  216. package/src/components/with-mouse-over-state/index.js +0 -1
  217. package/src/components/with-mouse-over-state/with-mouse-over-state.jsx +0 -32
  218. package/src/components/with-mouse-over-state/with-mouse-over-state.spec.js +0 -35
  219. package/src/constants/index.js +0 -114
  220. package/src/custom-fields/custom-field-definitions-connector/README.md +0 -90
  221. package/src/custom-fields/custom-field-definitions-connector/__snapshots__/custom-field-definitions-connector.spec.js.snap +0 -7
  222. package/src/custom-fields/custom-field-definitions-connector/custom-field-definitions-connector.ctp.graphql +0 -54
  223. package/src/custom-fields/custom-field-definitions-connector/custom-field-definitions-connector.js +0 -150
  224. package/src/custom-fields/custom-field-definitions-connector/custom-field-definitions-connector.spec.js +0 -288
  225. package/src/custom-fields/custom-field-definitions-connector/index.js +0 -3
  226. package/src/custom-fields/custom-field-definitions-connector/mocks/handlers.js +0 -16
  227. package/src/custom-fields/custom-field-definitions-connector/mocks/index.js +0 -4
  228. package/src/custom-fields/custom-field-type-definitions-connector/README.md +0 -193
  229. package/src/custom-fields/custom-field-type-definitions-connector/__snapshots__/custom-field-type-definitions-connector.spec.js.snap +0 -7
  230. package/src/custom-fields/custom-field-type-definitions-connector/custom-field-type-definitions-connector.ctp.graphql +0 -72
  231. package/src/custom-fields/custom-field-type-definitions-connector/custom-field-type-definitions-connector.js +0 -131
  232. package/src/custom-fields/custom-field-type-definitions-connector/custom-field-type-definitions-connector.spec.js +0 -82
  233. package/src/custom-fields/custom-field-type-definitions-connector/index.js +0 -1
  234. package/src/custom-fields/custom-field-type-definitions-connector/utils.js +0 -89
  235. package/src/custom-fields/custom-field-type-definitions-connector/utils.spec.js +0 -235
  236. package/src/custom-fields/custom-fields/README.md +0 -75
  237. package/src/custom-fields/custom-fields/constants.js +0 -38
  238. package/src/custom-fields/custom-fields/custom-field-errors.jsx +0 -60
  239. package/src/custom-fields/custom-fields/custom-field-input.jsx +0 -100
  240. package/src/custom-fields/custom-fields/custom-field-tooltip.jsx +0 -34
  241. package/src/custom-fields/custom-fields/custom-fields-internal.jsx +0 -148
  242. package/src/custom-fields/custom-fields/custom-fields-label/cart-discounts-count.ctp.graphql +0 -5
  243. package/src/custom-fields/custom-fields/custom-fields-label/custom-fields-label.jsx +0 -156
  244. package/src/custom-fields/custom-fields/custom-fields-label/custom-fields-label.spec.js +0 -92
  245. package/src/custom-fields/custom-fields/custom-fields-label/index.js +0 -1
  246. package/src/custom-fields/custom-fields/custom-fields-label/messages.js +0 -37
  247. package/src/custom-fields/custom-fields/custom-fields.jsx +0 -61
  248. package/src/custom-fields/custom-fields/custom-nested-field-input/custom-nested-field-input.jsx +0 -66
  249. package/src/custom-fields/custom-fields/custom-nested-field-input/fetch-product-type.ctp.graphql +0 -82
  250. package/src/custom-fields/custom-fields/custom-nested-field-input/index.js +0 -1
  251. package/src/custom-fields/custom-fields/custom-nested-field-input/messages.js +0 -9
  252. package/src/custom-fields/custom-fields/custom-nested-field-input/product-type-reference.jsx +0 -20
  253. package/src/custom-fields/custom-fields/custom-nested-field-input/use-nested-product-type.js +0 -72
  254. package/src/custom-fields/custom-fields/index.js +0 -5
  255. package/src/custom-fields/custom-fields/nesting-level-context.js +0 -5
  256. package/src/custom-fields/custom-fields/set/custom-boolean-input-set.jsx +0 -69
  257. package/src/custom-fields/custom-fields/set/custom-boolean-input-set.spec.js +0 -89
  258. package/src/custom-fields/custom-fields/set/custom-input-set.jsx +0 -233
  259. package/src/custom-fields/custom-fields/set/custom-input-set.spec.js +0 -193
  260. package/src/custom-fields/custom-fields/set/expand-button.jsx +0 -37
  261. package/src/custom-fields/custom-fields/set/expand-button.spec.js +0 -43
  262. package/src/custom-fields/custom-fields/set/set-buttons.jsx +0 -47
  263. package/src/custom-fields/custom-fields/set/set-buttons.module.css +0 -7
  264. package/src/custom-fields/custom-fields/set/set-buttons.spec.js +0 -39
  265. package/src/custom-fields/custom-fields/test-utils.jsx +0 -167
  266. package/src/custom-fields/custom-fields/types/custom-boolean-input.jsx +0 -49
  267. package/src/custom-fields/custom-fields/types/custom-boolean-input.spec.js +0 -51
  268. package/src/custom-fields/custom-fields/types/custom-date-time-input.jsx +0 -53
  269. package/src/custom-fields/custom-fields/types/custom-date-time-input.spec.js +0 -116
  270. package/src/custom-fields/custom-fields/types/custom-enum-input.jsx +0 -61
  271. package/src/custom-fields/custom-fields/types/custom-enum-input.spec.js +0 -113
  272. package/src/custom-fields/custom-fields/types/custom-localized-enum-input.jsx +0 -70
  273. package/src/custom-fields/custom-fields/types/custom-localized-enum-input.spec.js +0 -133
  274. package/src/custom-fields/custom-fields/types/custom-localized-text-input.jsx +0 -86
  275. package/src/custom-fields/custom-fields/types/custom-localized-text-input.spec.js +0 -99
  276. package/src/custom-fields/custom-fields/types/custom-money-input.jsx +0 -117
  277. package/src/custom-fields/custom-fields/types/custom-money-input.module.css +0 -3
  278. package/src/custom-fields/custom-fields/types/custom-money-input.spec.js +0 -124
  279. package/src/custom-fields/custom-fields/types/custom-nested-input/custom-nested-input.jsx +0 -331
  280. package/src/custom-fields/custom-fields/types/custom-nested-input/custom-nested-input.spec.js +0 -470
  281. package/src/custom-fields/custom-fields/types/custom-nested-input/index.js +0 -1
  282. package/src/custom-fields/custom-fields/types/custom-nested-input/messages.js +0 -82
  283. package/src/custom-fields/custom-fields/types/custom-number-input.jsx +0 -34
  284. package/src/custom-fields/custom-fields/types/custom-number-input.spec.js +0 -42
  285. package/src/custom-fields/custom-fields/types/custom-reference-input/custom-cart-discount-reference-input.jsx +0 -44
  286. package/src/custom-fields/custom-fields/types/custom-reference-input/custom-cart-discount-reference-input.spec.js +0 -132
  287. package/src/custom-fields/custom-fields/types/custom-reference-input/custom-category-reference-input.jsx +0 -46
  288. package/src/custom-fields/custom-fields/types/custom-reference-input/custom-category-reference-input.spec.js +0 -134
  289. package/src/custom-fields/custom-fields/types/custom-reference-input/custom-channel-reference-input.jsx +0 -36
  290. package/src/custom-fields/custom-fields/types/custom-reference-input/custom-channel-reference-input.spec.js +0 -130
  291. package/src/custom-fields/custom-fields/types/custom-reference-input/custom-product-reference-input.jsx +0 -37
  292. package/src/custom-fields/custom-fields/types/custom-reference-input/custom-product-reference-input.spec.js +0 -123
  293. package/src/custom-fields/custom-fields/types/custom-reference-input/custom-product-type-reference-input.jsx +0 -36
  294. package/src/custom-fields/custom-fields/types/custom-reference-input/custom-product-type-reference-input.spec.js +0 -146
  295. package/src/custom-fields/custom-fields/types/custom-reference-input/custom-raw-id-reference-input.jsx +0 -32
  296. package/src/custom-fields/custom-fields/types/custom-reference-input/custom-raw-id-reference-input.spec.js +0 -83
  297. package/src/custom-fields/custom-fields/types/custom-reference-input/custom-reference-input.jsx +0 -78
  298. package/src/custom-fields/custom-fields/types/custom-reference-input/custom-state-reference-input.jsx +0 -36
  299. package/src/custom-fields/custom-fields/types/custom-reference-input/custom-state-reference-input.spec.js +0 -130
  300. package/src/custom-fields/custom-fields/types/custom-reference-input/index.js +0 -1
  301. package/src/custom-fields/custom-fields/types/custom-text-input.jsx +0 -46
  302. package/src/custom-fields/custom-fields/types/custom-text-input.spec.js +0 -66
  303. package/src/custom-fields/custom-fields/types/custom-time-input.jsx +0 -74
  304. package/src/custom-fields/custom-fields/types/custom-time-input.spec.js +0 -91
  305. package/src/custom-fields/custom-fields/utils/index.js +0 -1
  306. package/src/custom-fields/custom-fields/utils/utils.js +0 -22
  307. package/src/custom-fields/custom-fields/validations/index.js +0 -1
  308. package/src/custom-fields/custom-fields/validations/validations.js +0 -117
  309. package/src/custom-fields/custom-fields/validations/validations.spec.js +0 -134
  310. package/src/custom-fields/custom-fields-error-text-notification/custom-fields-error-text-notification.jsx +0 -29
  311. package/src/custom-fields/custom-fields-error-text-notification/custom-fields-error-text-notification.spec.js +0 -31
  312. package/src/custom-fields/custom-fields-error-text-notification/index.js +0 -1
  313. package/src/custom-fields/custom-fields-error-text-notification/messages.js +0 -10
  314. package/src/custom-fields/messages/custom-fields.js +0 -17
  315. package/src/features/picker/index.js +0 -11
  316. package/src/features/picker/shared/components/index.js +0 -1
  317. package/src/features/picker/shared/components/messages.js +0 -9
  318. package/src/features/picker/shared/components/option.jsx +0 -51
  319. package/src/features/picker/shared/hooks/use-current-option.js +0 -24
  320. package/src/features/picker/shared/hooks/use-current-option.spec.js +0 -125
  321. package/src/features/picker/shared/hooks/use-handlers.js +0 -42
  322. package/src/features/picker/shared/hooks/use-load-options.js +0 -63
  323. package/src/features/picker/shared/hooks/use-load-options.spec.js +0 -63
  324. package/src/features/picker/shared/hooks/use-product-type-options.js +0 -190
  325. package/src/features/picker/shared/hooks/use-product-type-options.spec.js +0 -151
  326. package/src/features/pim-indexer/components/index.js +0 -5
  327. package/src/features/pim-indexer/components/pim-indexer-context/index.js +0 -1
  328. package/src/features/pim-indexer/components/pim-indexer-context/pim-indexer-context.js +0 -28
  329. package/src/features/pim-indexer/components/pim-indexer-provider/fetch-indices-exist.pim-indexer.graphql +0 -12
  330. package/src/features/pim-indexer/components/pim-indexer-provider/fetch-pim-index-status.js +0 -42
  331. package/src/features/pim-indexer/components/pim-indexer-provider/fetch-pim-index-status.spec.js +0 -128
  332. package/src/features/pim-indexer/components/pim-indexer-provider/index.js +0 -1
  333. package/src/features/pim-indexer/components/pim-indexer-provider/messages.js +0 -17
  334. package/src/features/pim-indexer/components/pim-indexer-provider/pim-indexer-provider.jsx +0 -287
  335. package/src/features/pim-indexer/components/pim-indexer-provider/pim-indexer-provider.spec.js +0 -80
  336. package/src/features/pim-indexer/components/pim-indexer-provider/pim-indexer.pim-indexer.graphql +0 -55
  337. package/src/features/pim-indexer/components/with-pim-indexer/index.js +0 -1
  338. package/src/features/pim-indexer/components/with-pim-indexer/with-pim-indexer.jsx +0 -19
  339. package/src/features/pim-indexer/hocs/index.js +0 -2
  340. package/src/features/pim-indexer/hocs/inject-pim-indexer/index.js +0 -1
  341. package/src/features/pim-indexer/hocs/inject-pim-indexer/inject-pim-indexer.jsx +0 -23
  342. package/src/features/pim-indexer/hocs/inject-pim-indexer/inject-pim-indexer.spec.js +0 -37
  343. package/src/features/pim-indexer/hooks/index.js +0 -2
  344. package/src/features/pim-indexer/hooks/use-pim-indexer/index.js +0 -1
  345. package/src/features/pim-indexer/hooks/use-pim-indexer/use-pim-indexer.js +0 -6
  346. package/src/features/pim-indexer/index.js +0 -6
  347. package/src/features/platform-limits/assets/graphic-limits-reached.react.svg +0 -50
  348. package/src/features/platform-limits/customer-groups/components/index.js +0 -5
  349. package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-combined/index.js +0 -1
  350. package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-combined/platform-limits-customer-groups-combined.jsx +0 -32
  351. package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-combined/platform-limits-customer-groups-combined.module.css +0 -3
  352. package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-error-modal/index.js +0 -1
  353. package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-error-modal/messages.js +0 -15
  354. package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-error-modal/platform-limits-customer-groups-error-modal.jsx +0 -43
  355. package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-notification/index.js +0 -1
  356. package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-notification/platform-limits-customer-groups-notification.jsx +0 -42
  357. package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-notification/platform-limits-customer-groups-notification.spec.js +0 -51
  358. package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-status/index.js +0 -1
  359. package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-status/messages.js +0 -9
  360. package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-status/platform-limits-customer-groups-status.jsx +0 -37
  361. package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-status/platform-limits-customer-groups-status.module.css +0 -3
  362. package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-tooltip/index.js +0 -1
  363. package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-tooltip/messages.js +0 -9
  364. package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-tooltip/platform-limits-customer-groups-tooltip.jsx +0 -18
  365. package/src/features/platform-limits/customer-groups/hocs/index.js +0 -2
  366. package/src/features/platform-limits/customer-groups/hocs/inject-customer-groups-platform-limits/index.js +0 -1
  367. package/src/features/platform-limits/customer-groups/hocs/inject-customer-groups-platform-limits/inject-customer-groups-platform-limits.jsx +0 -23
  368. package/src/features/platform-limits/customer-groups/hooks/index.js +0 -4
  369. package/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits/index.js +0 -1
  370. package/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits/use-customer-groups-platform-limits.js +0 -40
  371. package/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-fetcher/index.js +0 -1
  372. package/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-fetcher/use-customer-groups-platform-limits-fetcher.js +0 -18
  373. package/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-fetcher/use-customer-groups-platform-limits-fetcher.spec.js +0 -45
  374. package/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-modal-state/index.js +0 -1
  375. package/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-modal-state/use-customer-groups-platform-limits-modal-state.js +0 -21
  376. package/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-modal-state/use-customer-groups-platform-limits-modal-state.spec.js +0 -39
  377. package/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-status/index.js +0 -1
  378. package/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-status/use-customer-groups-platform-limits-status.js +0 -35
  379. package/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-status/use-customer-groups-platform-limits-status.spec.js +0 -66
  380. package/src/features/platform-limits/customer-groups/index.js +0 -3
  381. package/src/features/platform-limits/customers/components/index.js +0 -5
  382. package/src/features/platform-limits/customers/components/platform-limits-customers-combined/index.js +0 -1
  383. package/src/features/platform-limits/customers/components/platform-limits-customers-combined/platform-limits-customers-combined.jsx +0 -28
  384. package/src/features/platform-limits/customers/components/platform-limits-customers-combined/platform-limits-customers-combined.module.css +0 -3
  385. package/src/features/platform-limits/customers/components/platform-limits-customers-error-modal/index.js +0 -1
  386. package/src/features/platform-limits/customers/components/platform-limits-customers-error-modal/messages.js +0 -14
  387. package/src/features/platform-limits/customers/components/platform-limits-customers-error-modal/platform-limits-customers-error-modal.jsx +0 -43
  388. package/src/features/platform-limits/customers/components/platform-limits-customers-notification/index.js +0 -1
  389. package/src/features/platform-limits/customers/components/platform-limits-customers-notification/platform-limits-customers-notification.jsx +0 -40
  390. package/src/features/platform-limits/customers/components/platform-limits-customers-notification/platform-limits-customers-notification.spec.js +0 -51
  391. package/src/features/platform-limits/customers/components/platform-limits-customers-status/index.js +0 -1
  392. package/src/features/platform-limits/customers/components/platform-limits-customers-status/messages.js +0 -9
  393. package/src/features/platform-limits/customers/components/platform-limits-customers-status/platform-limits-customers-status.jsx +0 -36
  394. package/src/features/platform-limits/customers/components/platform-limits-customers-status/platform-limits-customers-status.module.css +0 -3
  395. package/src/features/platform-limits/customers/components/platform-limits-customers-tooltip/index.js +0 -1
  396. package/src/features/platform-limits/customers/components/platform-limits-customers-tooltip/messages.js +0 -9
  397. package/src/features/platform-limits/customers/components/platform-limits-customers-tooltip/platform-limits-customers-tooltip.jsx +0 -17
  398. package/src/features/platform-limits/customers/hocs/index.js +0 -2
  399. package/src/features/platform-limits/customers/hocs/inject-customers-platform-limits/index.js +0 -1
  400. package/src/features/platform-limits/customers/hocs/inject-customers-platform-limits/inject-customers-platform-limits.jsx +0 -23
  401. package/src/features/platform-limits/customers/hooks/index.js +0 -4
  402. package/src/features/platform-limits/customers/hooks/use-customers-platform-limits/index.js +0 -1
  403. package/src/features/platform-limits/customers/hooks/use-customers-platform-limits/use-customers-platform-limits.js +0 -38
  404. package/src/features/platform-limits/customers/hooks/use-customers-platform-limits-fetcher/index.js +0 -1
  405. package/src/features/platform-limits/customers/hooks/use-customers-platform-limits-fetcher/use-customers-platform-limits-fetcher.js +0 -18
  406. package/src/features/platform-limits/customers/hooks/use-customers-platform-limits-fetcher/use-customers-platform-limits-fetcher.spec.js +0 -43
  407. package/src/features/platform-limits/customers/hooks/use-customers-platform-limits-modal-state/index.js +0 -1
  408. package/src/features/platform-limits/customers/hooks/use-customers-platform-limits-modal-state/use-customers-platform-limits-modal-state.js +0 -20
  409. package/src/features/platform-limits/customers/hooks/use-customers-platform-limits-modal-state/use-customers-platform-limits-modal-state.spec.js +0 -39
  410. package/src/features/platform-limits/customers/hooks/use-customers-platform-limits-status/index.js +0 -1
  411. package/src/features/platform-limits/customers/hooks/use-customers-platform-limits-status/use-customers-platform-limits-status.js +0 -35
  412. package/src/features/platform-limits/customers/hooks/use-customers-platform-limits-status/use-customers-platform-limits-status.spec.js +0 -61
  413. package/src/features/platform-limits/customers/index.js +0 -3
  414. package/src/features/platform-limits/index.js +0 -21
  415. package/src/features/platform-limits/shared/components/index.js +0 -2
  416. package/src/features/platform-limits/shared/components/notifications/error/error.jsx +0 -33
  417. package/src/features/platform-limits/shared/components/notifications/error/index.js +0 -1
  418. package/src/features/platform-limits/shared/components/notifications/error/messages.js +0 -34
  419. package/src/features/platform-limits/shared/components/notifications/index.js +0 -1
  420. package/src/features/platform-limits/shared/components/notifications/notifications.js +0 -9
  421. package/src/features/platform-limits/shared/components/notifications/warning/index.js +0 -1
  422. package/src/features/platform-limits/shared/components/notifications/warning/messages.js +0 -34
  423. package/src/features/platform-limits/shared/components/notifications/warning/warning.jsx +0 -41
  424. package/src/features/platform-limits/shared/components/status-text/index.js +0 -1
  425. package/src/features/platform-limits/shared/components/status-text/status-text.jsx +0 -19
  426. package/src/features/platform-limits/shared/constants.js +0 -16
  427. package/src/features/platform-limits/shared/hooks/index.js +0 -5
  428. package/src/features/platform-limits/shared/hooks/use-intercept-navigation/index.js +0 -1
  429. package/src/features/platform-limits/shared/hooks/use-intercept-navigation/use-intercept-navigation.js +0 -31
  430. package/src/features/platform-limits/shared/hooks/use-intercept-navigation/use-intercept-navigation.spec.js +0 -76
  431. package/src/features/platform-limits/shared/hooks/use-limits-modal-state/index.js +0 -1
  432. package/src/features/platform-limits/shared/hooks/use-limits-modal-state/use-limits-modal-state.js +0 -17
  433. package/src/features/platform-limits/shared/hooks/use-limits-modal-state/use-limits-modal-state.spec.js +0 -33
  434. package/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/__mocks__/index.js +0 -405
  435. package/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/index.js +0 -1
  436. package/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/mocks/handlers.js +0 -16
  437. package/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/mocks/index.js +0 -4
  438. package/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/platform-limits-query-variables.js +0 -18
  439. package/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/use-platform-limits-fetcher.ctp.graphql +0 -87
  440. package/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/use-platform-limits-fetcher.js +0 -30
  441. package/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/use-platform-limits-fetcher.spec.js +0 -202
  442. package/src/features/platform-limits/shared/index.js +0 -15
  443. package/src/features/platform-limits/shared/utils/index.js +0 -5
  444. package/src/features/platform-limits/shared/utils/utils.js +0 -17
  445. package/src/features/platform-limits/shared/utils/utils.spec.js +0 -126
  446. package/src/features/platform-limits/shipping-methods/components/index.js +0 -3
  447. package/src/features/platform-limits/shipping-methods/components/platform-limits-shipping-methods-notification/index.js +0 -1
  448. package/src/features/platform-limits/shipping-methods/components/platform-limits-shipping-methods-notification/platform-limits-shipping-methods-notification.jsx +0 -42
  449. package/src/features/platform-limits/shipping-methods/components/platform-limits-shipping-methods-notification/platform-limits-shipping-methods-notification.spec.js +0 -51
  450. package/src/features/platform-limits/shipping-methods/components/platform-limits-shipping-methods-status/index.js +0 -1
  451. package/src/features/platform-limits/shipping-methods/components/platform-limits-shipping-methods-status/messages.js +0 -9
  452. package/src/features/platform-limits/shipping-methods/components/platform-limits-shipping-methods-status/platform-limits-shipping-methods-status.jsx +0 -29
  453. package/src/features/platform-limits/shipping-methods/components/platform-limits-shipping-methods-status/platform-limits-shipping-methods-status.spec.js +0 -37
  454. package/src/features/platform-limits/shipping-methods/components/platform-limits-shipping-methods-tooltip/index.js +0 -1
  455. package/src/features/platform-limits/shipping-methods/components/platform-limits-shipping-methods-tooltip/messages.js +0 -10
  456. package/src/features/platform-limits/shipping-methods/components/platform-limits-shipping-methods-tooltip/platform-limits-shipping-methods-tooltip.jsx +0 -18
  457. package/src/features/platform-limits/shipping-methods/hocs/index.js +0 -2
  458. package/src/features/platform-limits/shipping-methods/hocs/inject-shipping-methods-platform-limits/index.js +0 -1
  459. package/src/features/platform-limits/shipping-methods/hocs/inject-shipping-methods-platform-limits/inject-shipping-methods-platform-limits.jsx +0 -23
  460. package/src/features/platform-limits/shipping-methods/hooks/index.js +0 -3
  461. package/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits/index.js +0 -1
  462. package/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits/use-shipping-methods-platform-limits.js +0 -30
  463. package/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits-fetcher/index.js +0 -1
  464. package/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits-fetcher/use-shipping-methods-platform-limits-fetcher.js +0 -18
  465. package/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits-fetcher/use-shipping-methods-platform-limits-fetcher.spec.js +0 -46
  466. package/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits-status/index.js +0 -1
  467. package/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits-status/use-shipping-methods-platform-limits-status.js +0 -35
  468. package/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits-status/use-shipping-methods-platform-limits-status.spec.js +0 -67
  469. package/src/features/platform-limits/shipping-methods/index.js +0 -3
  470. package/src/features/platform-limits/stores/hooks/index.js +0 -3
  471. package/src/features/platform-limits/stores/hooks/use-store-platform-limits/index.js +0 -1
  472. package/src/features/platform-limits/stores/hooks/use-store-platform-limits/use-store-platform-limits.js +0 -19
  473. package/src/features/platform-limits/stores/hooks/use-store-platform-limits-fetcher/index.js +0 -1
  474. package/src/features/platform-limits/stores/hooks/use-store-platform-limits-fetcher/use-store-platform-limits-fetcher.js +0 -28
  475. package/src/features/platform-limits/stores/hooks/use-store-platform-limits-fetcher/use-store-platform-limits-fetcher.spec.js +0 -51
  476. package/src/features/platform-limits/stores/hooks/use-store-platform-limits-status/index.js +0 -1
  477. package/src/features/platform-limits/stores/hooks/use-store-platform-limits-status/use-store-platform-limits-status.js +0 -35
  478. package/src/features/platform-limits/stores/hooks/use-store-platform-limits-status/use-store-platform-limits-status.spec.js +0 -61
  479. package/src/features/platform-limits/stores/index.js +0 -1
  480. package/src/features/platform-limits/tax-categories/components/index.js +0 -3
  481. package/src/features/platform-limits/tax-categories/components/platform-limits-tax-categories-notification/index.js +0 -1
  482. package/src/features/platform-limits/tax-categories/components/platform-limits-tax-categories-notification/platform-limits-tax-categories-notification.jsx +0 -42
  483. package/src/features/platform-limits/tax-categories/components/platform-limits-tax-categories-notification/platform-limits-tax-categories-notification.spec.js +0 -51
  484. package/src/features/platform-limits/tax-categories/components/platform-limits-tax-categories-status/index.js +0 -1
  485. package/src/features/platform-limits/tax-categories/components/platform-limits-tax-categories-status/messages.js +0 -9
  486. package/src/features/platform-limits/tax-categories/components/platform-limits-tax-categories-status/platform-limits-tax-categories-status.jsx +0 -29
  487. package/src/features/platform-limits/tax-categories/components/platform-limits-tax-categories-status/platform-limits-tax-categories-status.spec.js +0 -37
  488. package/src/features/platform-limits/tax-categories/components/platform-limits-tax-categories-tooltip/index.js +0 -1
  489. package/src/features/platform-limits/tax-categories/components/platform-limits-tax-categories-tooltip/messages.js +0 -9
  490. package/src/features/platform-limits/tax-categories/components/platform-limits-tax-categories-tooltip/platform-limits-tax-categories-tooltip.jsx +0 -18
  491. package/src/features/platform-limits/tax-categories/hocs/index.js +0 -2
  492. package/src/features/platform-limits/tax-categories/hocs/inject-tax-categories-platform-limits/index.js +0 -1
  493. package/src/features/platform-limits/tax-categories/hocs/inject-tax-categories-platform-limits/inject-tax-categories-platform-limits.jsx +0 -23
  494. package/src/features/platform-limits/tax-categories/hooks/index.js +0 -3
  495. package/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits/index.js +0 -1
  496. package/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits/use-tax-categories-platform-limits.js +0 -30
  497. package/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits-fetcher/index.js +0 -1
  498. package/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits-fetcher/use-tax-categories-platform-limits-fetcher.js +0 -18
  499. package/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits-fetcher/use-tax-categories-platform-limits-fetcher.spec.js +0 -48
  500. package/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits-status/index.js +0 -1
  501. package/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits-status/use-tax-categories-platform-limits-status.js +0 -35
  502. package/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits-status/use-tax-categories-platform-limits-status.spec.js +0 -66
  503. package/src/features/platform-limits/tax-categories/index.js +0 -3
  504. package/src/features/platform-limits/test-utils/index.js +0 -1
  505. package/src/features/platform-limits/zones/components/index.js +0 -3
  506. package/src/features/platform-limits/zones/components/platform-limits-zones-notification/index.js +0 -1
  507. package/src/features/platform-limits/zones/components/platform-limits-zones-notification/platform-limits-zones-notification.jsx +0 -40
  508. package/src/features/platform-limits/zones/components/platform-limits-zones-notification/platform-limits-zones-notification.spec.js +0 -51
  509. package/src/features/platform-limits/zones/components/platform-limits-zones-status/index.js +0 -1
  510. package/src/features/platform-limits/zones/components/platform-limits-zones-status/messages.js +0 -9
  511. package/src/features/platform-limits/zones/components/platform-limits-zones-status/platform-limits-zones-status.jsx +0 -32
  512. package/src/features/platform-limits/zones/components/platform-limits-zones-status/platform-limits-zones-status.spec.js +0 -37
  513. package/src/features/platform-limits/zones/components/platform-limits-zones-tooltip/index.js +0 -1
  514. package/src/features/platform-limits/zones/components/platform-limits-zones-tooltip/messages.js +0 -9
  515. package/src/features/platform-limits/zones/components/platform-limits-zones-tooltip/platform-limits-zones-tooltip.jsx +0 -17
  516. package/src/features/platform-limits/zones/hocs/index.js +0 -2
  517. package/src/features/platform-limits/zones/hocs/inject-zones-platform-limits/index.js +0 -1
  518. package/src/features/platform-limits/zones/hocs/inject-zones-platform-limits/inject-zones-platform-limits.jsx +0 -23
  519. package/src/features/platform-limits/zones/hooks/index.js +0 -3
  520. package/src/features/platform-limits/zones/hooks/use-zones-platform-limits/index.js +0 -1
  521. package/src/features/platform-limits/zones/hooks/use-zones-platform-limits/use-zones-platform-limits.js +0 -24
  522. package/src/features/platform-limits/zones/hooks/use-zones-platform-limits-fetcher/index.js +0 -1
  523. package/src/features/platform-limits/zones/hooks/use-zones-platform-limits-fetcher/use-zones-platform-limits-fetcher.js +0 -18
  524. package/src/features/platform-limits/zones/hooks/use-zones-platform-limits-fetcher/use-zones-platform-limits-fetcher.spec.js +0 -42
  525. package/src/features/platform-limits/zones/hooks/use-zones-platform-limits-status/index.js +0 -1
  526. package/src/features/platform-limits/zones/hooks/use-zones-platform-limits-status/use-zones-platform-limits-status.js +0 -35
  527. package/src/features/platform-limits/zones/hooks/use-zones-platform-limits-status/use-zones-platform-limits-status.spec.js +0 -61
  528. package/src/features/platform-limits/zones/index.js +0 -2
  529. package/src/fields/attribute-reference-label/attribute-reference-label.jsx +0 -38
  530. package/src/fields/attribute-reference-label/attribute-reference-label.module.css +0 -7
  531. package/src/fields/attribute-reference-label/index.js +0 -1
  532. package/src/fields/autocomplete/README.md +0 -66
  533. package/src/fields/autocomplete/autocomplete.jsx +0 -129
  534. package/src/fields/autocomplete/autocomplete.module.css +0 -3
  535. package/src/fields/autocomplete/autocomplete.spec.js +0 -144
  536. package/src/fields/autocomplete/dropdown-indicator.jsx +0 -14
  537. package/src/fields/autocomplete/dropdown-indicator.module.css +0 -5
  538. package/src/fields/autocomplete/index.js +0 -1
  539. package/src/fields/boolean-field/boolean-field.jsx +0 -82
  540. package/src/fields/boolean-field/boolean-field.spec.js +0 -80
  541. package/src/fields/boolean-field/index.js +0 -3
  542. package/src/fields/boolean-field/messages.js +0 -14
  543. package/src/fields/checkbox-field/checkbox-field.jsx +0 -50
  544. package/src/fields/checkbox-field/checkbox-field.module.css +0 -40
  545. package/src/fields/checkbox-field/checkbox-field.spec.js +0 -67
  546. package/src/fields/checkbox-field/index.js +0 -1
  547. package/src/fields/checkbox-field/radio-check-icons.png +0 -0
  548. package/src/fields/expandable-field/expandable-field.jsx +0 -93
  549. package/src/fields/expandable-field/expandable-field.module.css +0 -3
  550. package/src/fields/expandable-field/expandable-field.spec.js +0 -68
  551. package/src/fields/expandable-field/index.js +0 -1
  552. package/src/fields/expandable-field/messages.js +0 -14
  553. package/src/fields/label-range/index.js +0 -1
  554. package/src/fields/label-range/label-range.jsx +0 -28
  555. package/src/fields/label-range/label-range.module.css +0 -4
  556. package/src/fields/label-range/label-range.spec.js +0 -28
  557. package/src/fields/label-required/index.js +0 -2
  558. package/src/fields/label-required/label-required.jsx +0 -25
  559. package/src/fields/localized-field/index.js +0 -1
  560. package/src/fields/localized-field/localized-field.jsx +0 -320
  561. package/src/fields/localized-field/localized-field.module.css +0 -291
  562. package/src/fields/localized-field/localized-field.spec.js +0 -53
  563. package/src/fields/localized-input/index.js +0 -1
  564. package/src/fields/localized-input/localized-input.jsx +0 -20
  565. package/src/fields/localized-textarea/index.js +0 -1
  566. package/src/fields/localized-textarea/localized-textarea.jsx +0 -50
  567. package/src/fields/missing-value-field/__snapshots__/missing-value-field.spec.js.snap +0 -22
  568. package/src/fields/missing-value-field/index.js +0 -2
  569. package/src/fields/missing-value-field/messages.js +0 -9
  570. package/src/fields/missing-value-field/missing-value-field.jsx +0 -28
  571. package/src/fields/missing-value-field/missing-value-field.spec.js +0 -35
  572. package/src/fields/multi-value-search-input/index.js +0 -1
  573. package/src/fields/multi-value-search-input/messages.js +0 -14
  574. package/src/fields/multi-value-search-input/multi-value-search-input.jsx +0 -175
  575. package/src/fields/multi-value-search-input/multi-value-search-input.module.css +0 -45
  576. package/src/fields/numeric-format-input/index.js +0 -1
  577. package/src/fields/numeric-format-input/numeric-format-input.jsx +0 -184
  578. package/src/fields/numeric-format-input/numeric-format-input.module.css +0 -10
  579. package/src/fields/numeric-format-input/numeric-format-input.spec.js +0 -323
  580. package/src/fields/search-input/index.js +0 -1
  581. package/src/fields/search-input/messages.js +0 -14
  582. package/src/fields/search-input/search-input.jsx +0 -202
  583. package/src/fields/search-input/search-input.module.css +0 -75
  584. package/src/fields/search-input/search-input.spec.js +0 -116
  585. package/src/fields/throttled-field/index.js +0 -1
  586. package/src/fields/throttled-field/throttled-field.jsx +0 -189
  587. package/src/fields/throttled-field/throttled-field.module.css +0 -75
  588. package/src/fields/throttled-field/throttled-field.spec.js +0 -172
  589. package/src/hocs/index.js +0 -9
  590. package/src/hocs/inject-data-table-pagination-state/index.js +0 -1
  591. package/src/hocs/inject-data-table-pagination-state/inject-data-table-pagination-state.jsx +0 -41
  592. package/src/hocs/inject-modal-state/index.js +0 -1
  593. package/src/hocs/inject-modal-state/inject-modal-state.jsx +0 -31
  594. package/src/hocs/inject-modal-state/inject-modal-state.spec.js +0 -60
  595. package/src/hocs/inject-notifications/README.md +0 -43
  596. package/src/hocs/inject-notifications/index.js +0 -1
  597. package/src/hocs/inject-notifications/inject-notifications.jsx +0 -35
  598. package/src/hocs/inject-notifications/inject-notifications.spec.js +0 -55
  599. package/src/hocs/inject-storage/index.js +0 -1
  600. package/src/hocs/inject-storage/inject-storage.jsx +0 -45
  601. package/src/hocs/inject-storage/inject-storage.spec.js +0 -32
  602. package/src/hocs/inject-toggle-state/index.js +0 -1
  603. package/src/hocs/inject-toggle-state/inject-toggle-state.jsx +0 -31
  604. package/src/hocs/inject-toggle-state/inject-toggle-state.spec.js +0 -58
  605. package/src/hocs/utils/get-display-name/get-display-name.js +0 -13
  606. package/src/hocs/utils/get-display-name/get-display-name.spec.js +0 -52
  607. package/src/hocs/utils/get-display-name/index.js +0 -1
  608. package/src/hocs/utils/index.js +0 -2
  609. package/src/hocs/utils/set-display-name/index.js +0 -1
  610. package/src/hocs/utils/set-display-name/set-display-name.js +0 -8
  611. package/src/hocs/utils/set-display-name/set-display-name.spec.js +0 -9
  612. package/src/hocs/with-props/index.js +0 -1
  613. package/src/hocs/with-props/with-props.jsx +0 -21
  614. package/src/hocs/with-props/with-props.spec.js +0 -57
  615. package/src/hocs/with-redirect-to/index.js +0 -1
  616. package/src/hocs/with-redirect-to/with-redirect-to.jsx +0 -42
  617. package/src/hocs/with-redirect-to/with-redirect-to.spec.js +0 -77
  618. package/src/hocs/wrap-display-name/index.js +0 -1
  619. package/src/hocs/wrap-display-name/wrap-display-name.js +0 -6
  620. package/src/hocs/wrap-display-name/wrap-display-name.spec.js +0 -26
  621. package/src/hooks/index.js +0 -37
  622. package/src/hooks/use-debounced-promise-callback.js +0 -8
  623. package/src/hooks/use-did-form-validation-fail/index.js +0 -1
  624. package/src/hooks/use-did-form-validation-fail/use-did-form-validation-fail.js +0 -30
  625. package/src/hooks/use-did-form-validation-fail/use-did-form-validation-fail.spec.js +0 -48
  626. package/src/hooks/use-event-callback/index.js +0 -1
  627. package/src/hooks/use-event-callback/use-event-callback.js +0 -18
  628. package/src/hooks/use-format-localized-field-to-string/index.js +0 -1
  629. package/src/hooks/use-format-localized-field-to-string/use-format-localized-field-to-string.js +0 -43
  630. package/src/hooks/use-format-localized-field-to-string/use-format-localized-field-to-string.spec.js +0 -36
  631. package/src/hooks/use-is-sso-user/index.js +0 -1
  632. package/src/hooks/use-is-sso-user/use-is-sso-user.js +0 -13
  633. package/src/hooks/use-is-sso-user/use-is-sso-user.spec.js +0 -46
  634. package/src/hooks/use-localized-key-fallback/index.js +0 -1
  635. package/src/hooks/use-localized-key-fallback/messages.js +0 -9
  636. package/src/hooks/use-localized-key-fallback/use-localized-key-fallback.js +0 -31
  637. package/src/hooks/use-localized-key-fallback/use-localized-key-fallback.spec.js +0 -44
  638. package/src/hooks/use-pending-requests/index.js +0 -1
  639. package/src/hooks/use-pending-requests/use-pending-requests.js +0 -39
  640. package/src/hooks/use-pending-requests/use-pending-requests.spec.js +0 -10
  641. package/src/hooks/use-persisted-reminder/index.js +0 -1
  642. package/src/hooks/use-persisted-reminder/use-persisted-reminder.js +0 -88
  643. package/src/hooks/use-persisted-reminder/use-persisted-reminder.spec.js +0 -114
  644. package/src/hooks/use-persisted-table-configuration/index.js +0 -1
  645. package/src/hooks/use-persisted-table-configuration/use-persisted-table-configuration.js +0 -136
  646. package/src/hooks/use-persisted-table-configuration/use-persisted-table-configuration.spec.js +0 -170
  647. package/src/hooks/use-previous/index.js +0 -1
  648. package/src/hooks/use-previous/use-previous.js +0 -12
  649. package/src/hooks/use-previous/use-previous.spec.js +0 -25
  650. package/src/hooks/use-product-selections-fetcher/conversions.js +0 -15
  651. package/src/hooks/use-product-selections-fetcher/fetch-product-selections.ctp.graphql +0 -18
  652. package/src/hooks/use-product-selections-fetcher/index.js +0 -2
  653. package/src/hooks/use-product-selections-fetcher/mocks/handlers.js +0 -16
  654. package/src/hooks/use-product-selections-fetcher/mocks/index.js +0 -3
  655. package/src/hooks/use-product-selections-fetcher/use-product-selections-fetcher.js +0 -39
  656. package/src/hooks/use-product-selections-fetcher/use-product-selections-fetcher.spec.js +0 -71
  657. package/src/hooks/use-product-selections-total-fetcher/fetch-product-selections-total.ctp.graphql +0 -5
  658. package/src/hooks/use-product-selections-total-fetcher/index.js +0 -2
  659. package/src/hooks/use-product-selections-total-fetcher/mocks/handlers.js +0 -19
  660. package/src/hooks/use-product-selections-total-fetcher/mocks/index.js +0 -3
  661. package/src/hooks/use-product-selections-total-fetcher/use-product-selections-total-fetcher.js +0 -19
  662. package/src/hooks/use-role-based-channels-fetcher/index.js +0 -2
  663. package/src/hooks/use-role-based-channels-fetcher/role-based-channels-fetcher.ctp.graphql +0 -12
  664. package/src/hooks/use-role-based-channels-fetcher/test-utils.js +0 -37
  665. package/src/hooks/use-role-based-channels-fetcher/use-role-based-channels-fetcher.js +0 -44
  666. package/src/hooks/use-role-notification/index.js +0 -1
  667. package/src/hooks/use-role-notification/notification-text/index.js +0 -1
  668. package/src/hooks/use-role-notification/notification-text/messages.js +0 -21
  669. package/src/hooks/use-role-notification/notification-text/notification-text.jsx +0 -46
  670. package/src/hooks/use-role-notification/use-role-notification.jsx +0 -36
  671. package/src/hooks/use-role-notification/use-role-notification.spec.js +0 -46
  672. package/src/hooks/use-role-notification-effect/index.js +0 -1
  673. package/src/hooks/use-role-notification-effect/use-role-notification-effect.js +0 -56
  674. package/src/hooks/use-role-notification-effect/use-role-notification-effect.spec.js +0 -72
  675. package/src/hooks/use-storage/__mocks__/index.js +0 -26
  676. package/src/hooks/use-storage/index.js +0 -1
  677. package/src/hooks/use-storage/use-storage.js +0 -85
  678. package/src/hooks/use-storage/use-storage.spec.js +0 -237
  679. package/src/hooks/use-store-keys-in-data-fence/index.js +0 -1
  680. package/src/hooks/use-store-keys-in-data-fence/use-store-keys-in-data-fence.js +0 -38
  681. package/src/hooks/use-store-keys-in-data-fence/use-store-keys-in-data-fence.spec.js +0 -141
  682. package/src/hooks/use-stores-list-fetcher/index.js +0 -2
  683. package/src/hooks/use-stores-list-fetcher/mocks/handlers.js +0 -76
  684. package/src/hooks/use-stores-list-fetcher/mocks/index.js +0 -3
  685. package/src/hooks/use-stores-list-fetcher/stores-list-query.ctp.graphql +0 -52
  686. package/src/hooks/use-stores-list-fetcher/use-stores-list-fetcher.js +0 -71
  687. package/src/hooks/use-stores-list-fetcher/use-stores-list-fetcher.spec.js +0 -234
  688. package/src/hooks/use-tracking/index.js +0 -1
  689. package/src/hooks/use-tracking/use-tracking.js +0 -4
  690. package/src/hooks/use-tracking/use-tracking.spec.js +0 -29
  691. package/src/hooks/use-tracking-shared/__mocks__/index.js +0 -16
  692. package/src/hooks/use-tracking-shared/index.js +0 -1
  693. package/src/hooks/use-tracking-shared/use-tracking-shared.js +0 -58
  694. package/src/index.js +0 -489
  695. package/src/internal-index.js +0 -143
  696. package/src/utils/active-modals/active-modals.js +0 -7
  697. package/src/utils/active-modals/active-modals.spec.js +0 -27
  698. package/src/utils/active-modals/index.js +0 -1
  699. package/src/utils/ariaset/ariaset.js +0 -11
  700. package/src/utils/ariaset/ariaset.spec.js +0 -20
  701. package/src/utils/ariaset/index.js +0 -1
  702. package/src/utils/array-helpers/array-helpers.js +0 -2
  703. package/src/utils/array-helpers/index.js +0 -1
  704. package/src/utils/attributes/attributes.js +0 -38
  705. package/src/utils/attributes/attributes.spec.js +0 -180
  706. package/src/utils/attributes/index.js +0 -1
  707. package/src/utils/build-search-query/build-search-query.js +0 -27
  708. package/src/utils/build-search-query/build-search-query.spec.js +0 -129
  709. package/src/utils/build-search-query/index.js +0 -1
  710. package/src/utils/bulk-notifications/get-bulk-notification.js +0 -34
  711. package/src/utils/bulk-notifications/get-bulk-notification.spec.js +0 -142
  712. package/src/utils/bulk-notifications/index.js +0 -4
  713. package/src/utils/business-roles/business-roles.js +0 -24
  714. package/src/utils/business-roles/index.js +0 -4
  715. package/src/utils/business-roles/messages.js +0 -95
  716. package/src/utils/capitalize-first/capitalize-first.js +0 -3
  717. package/src/utils/capitalize-first/capitalize-first.spec.js +0 -7
  718. package/src/utils/capitalize-first/index.js +0 -1
  719. package/src/utils/categories/categories.js +0 -56
  720. package/src/utils/categories/categories.spec.js +0 -122
  721. package/src/utils/categories/index.js +0 -1
  722. package/src/utils/clone/clone.js +0 -3
  723. package/src/utils/clone/clone.spec.js +0 -23
  724. package/src/utils/clone/index.js +0 -1
  725. package/src/utils/coerce-to-integer/coerce-to-integer.js +0 -3
  726. package/src/utils/coerce-to-integer/coerce-to-integer.spec.js +0 -49
  727. package/src/utils/coerce-to-integer/index.js +0 -1
  728. package/src/utils/connector/connector.js +0 -30
  729. package/src/utils/connector/connector.spec.js +0 -174
  730. package/src/utils/connector/index.js +0 -1
  731. package/src/utils/constants.js +0 -43
  732. package/src/utils/conversions/sort-array.js +0 -6
  733. package/src/utils/create-next-sort-definition/create-next-sort-definition.js +0 -46
  734. package/src/utils/create-next-sort-definition/create-next-sort-definition.spec.js +0 -121
  735. package/src/utils/create-next-sort-definition/index.js +0 -1
  736. package/src/utils/create-reducer/create-reducer.js +0 -21
  737. package/src/utils/create-reducer/create-reducer.spec.js +0 -45
  738. package/src/utils/create-reducer/index.js +0 -1
  739. package/src/utils/create-resource-reducer/create-resource-reducer.js +0 -53
  740. package/src/utils/create-resource-reducer/create-resource-reducer.spec.js +0 -151
  741. package/src/utils/create-resource-reducer/index.js +0 -1
  742. package/src/utils/customer/format-customer-address/format-customer-address.js +0 -12
  743. package/src/utils/customer/format-customer-address/format-customer-address.spec.js +0 -43
  744. package/src/utils/customer/format-customer-address/index.js +0 -1
  745. package/src/utils/customer/format-customer-name/format-customer-name.js +0 -9
  746. package/src/utils/customer/format-customer-name/format-customer-name.spec.js +0 -44
  747. package/src/utils/customer/format-customer-name/index.js +0 -1
  748. package/src/utils/customer/format-customer-title/format-customer-title.js +0 -5
  749. package/src/utils/customer/format-customer-title/format-customer-title.spec.js +0 -23
  750. package/src/utils/customer/format-customer-title/index.js +0 -1
  751. package/src/utils/dataset/dataset.js +0 -34
  752. package/src/utils/dataset/dataset.spec.js +0 -70
  753. package/src/utils/dataset/index.js +0 -1
  754. package/src/utils/encodings/encodings.js +0 -24
  755. package/src/utils/encodings/encodings.spec.js +0 -21
  756. package/src/utils/encodings/index.js +0 -1
  757. package/src/utils/filters/README.md +0 -56
  758. package/src/utils/filters/custom-fields/custom-fields.js +0 -56
  759. package/src/utils/filters/custom-fields/custom-fields.spec.js +0 -328
  760. package/src/utils/filters/custom-fields/index.js +0 -1
  761. package/src/utils/filters/date/date.js +0 -114
  762. package/src/utils/filters/date/date.spec.js +0 -138
  763. package/src/utils/filters/date/index.js +0 -1
  764. package/src/utils/filters/graphql/category-level/category-level.js +0 -17
  765. package/src/utils/filters/graphql/category-level/index.js +0 -1
  766. package/src/utils/filters/graphql/date/date.js +0 -58
  767. package/src/utils/filters/graphql/date/date.spec.js +0 -122
  768. package/src/utils/filters/graphql/date/index.js +0 -1
  769. package/src/utils/filters/graphql/graphql.js +0 -42
  770. package/src/utils/filters/graphql/graphql.spec.js +0 -130
  771. package/src/utils/filters/graphql/index.js +0 -1
  772. package/src/utils/filters/graphql/missing/index.js +0 -1
  773. package/src/utils/filters/graphql/missing/missing.js +0 -7
  774. package/src/utils/filters/graphql/missing/missing.spec.js +0 -17
  775. package/src/utils/filters/graphql/missing-locale/index.js +0 -1
  776. package/src/utils/filters/graphql/missing-locale/missing-locale.js +0 -8
  777. package/src/utils/filters/graphql/missing-locale/missing-locale.spec.js +0 -17
  778. package/src/utils/filters/graphql/number/index.js +0 -1
  779. package/src/utils/filters/graphql/number/number.js +0 -37
  780. package/src/utils/filters/graphql/number/number.spec.js +0 -65
  781. package/src/utils/filters/graphql/reference/index.js +0 -1
  782. package/src/utils/filters/graphql/reference/reference.js +0 -26
  783. package/src/utils/filters/graphql/reference/reference.spec.js +0 -20
  784. package/src/utils/filters/graphql/text/index.js +0 -1
  785. package/src/utils/filters/graphql/text/text.js +0 -8
  786. package/src/utils/filters/graphql/text/text.spec.js +0 -35
  787. package/src/utils/filters/is-date/index.js +0 -1
  788. package/src/utils/filters/is-date/is-date.js +0 -17
  789. package/src/utils/filters/is-date/is-date.spec.js +0 -73
  790. package/src/utils/filters/is-empty/index.js +0 -1
  791. package/src/utils/filters/is-empty/is-empty.js +0 -9
  792. package/src/utils/filters/is-empty/is-empty.spec.js +0 -20
  793. package/src/utils/filters/is-empty/range/index.js +0 -1
  794. package/src/utils/filters/is-empty/range/range.js +0 -8
  795. package/src/utils/filters/is-empty/range/range.spec.js +0 -22
  796. package/src/utils/filters/is-empty/single/index.js +0 -1
  797. package/src/utils/filters/is-empty/single/single.js +0 -5
  798. package/src/utils/filters/is-empty/single/single.spec.js +0 -17
  799. package/src/utils/filters/localized-string/index.js +0 -1
  800. package/src/utils/filters/localized-string/localized-string.js +0 -4
  801. package/src/utils/filters/localized-string/localized-string.spec.js +0 -26
  802. package/src/utils/filters/money/index.js +0 -1
  803. package/src/utils/filters/money/money.js +0 -36
  804. package/src/utils/filters/money/money.spec.js +0 -55
  805. package/src/utils/filters/time/index.js +0 -1
  806. package/src/utils/filters/time/time.js +0 -65
  807. package/src/utils/filters/time/time.spec.js +0 -96
  808. package/src/utils/filters/validation/custom-field/custom-field.js +0 -70
  809. package/src/utils/filters/validation/custom-field/custom-field.spec.js +0 -237
  810. package/src/utils/filters/validation/custom-field/index.js +0 -1
  811. package/src/utils/filters/validation/date/date.js +0 -42
  812. package/src/utils/filters/validation/date/date.spec.js +0 -60
  813. package/src/utils/filters/validation/date/index.js +0 -1
  814. package/src/utils/filters/validation/enum/enum.js +0 -16
  815. package/src/utils/filters/validation/enum/enum.spec.js +0 -44
  816. package/src/utils/filters/validation/enum/index.js +0 -1
  817. package/src/utils/filters/validation/number/index.js +0 -1
  818. package/src/utils/filters/validation/number/number.js +0 -52
  819. package/src/utils/filters/validation/number/number.spec.js +0 -39
  820. package/src/utils/filters/validation/text/index.js +0 -1
  821. package/src/utils/filters/validation/text/text.js +0 -9
  822. package/src/utils/filters/validation/text/text.spec.js +0 -20
  823. package/src/utils/formats/custom-field/custom-field.js +0 -66
  824. package/src/utils/formats/custom-field/custom-field.spec.js +0 -91
  825. package/src/utils/formats/custom-field/index.js +0 -1
  826. package/src/utils/formats/date/__mocks__/index.js +0 -2
  827. package/src/utils/formats/date/date.js +0 -58
  828. package/src/utils/formats/date/date.spec.js +0 -241
  829. package/src/utils/formats/date/index.js +0 -1
  830. package/src/utils/formats/discount/discount.js +0 -12
  831. package/src/utils/formats/discount/discount.spec.js +0 -75
  832. package/src/utils/formats/discount/index.js +0 -1
  833. package/src/utils/formats/index.js +0 -4
  834. package/src/utils/formats/money/index.js +0 -6
  835. package/src/utils/formats/money/money.js +0 -50
  836. package/src/utils/formats/money/money.spec.js +0 -117
  837. package/src/utils/formats/percentage/index.js +0 -1
  838. package/src/utils/formats/percentage/percentage.js +0 -7
  839. package/src/utils/formats/percentage/percentage.spec.js +0 -18
  840. package/src/utils/formats/product-attribute/index.js +0 -1
  841. package/src/utils/formats/product-attribute/messages.js +0 -14
  842. package/src/utils/formats/product-attribute/product-attribute.js +0 -127
  843. package/src/utils/formats/product-attribute/product-attribute.spec.js +0 -128
  844. package/src/utils/get-currency-code-data/currency-code-data.js +0 -1247
  845. package/src/utils/get-currency-code-data/get-currency-code-data.js +0 -53
  846. package/src/utils/get-currency-code-data/index.js +0 -12
  847. package/src/utils/get-prefix-search-bounds/get-prefix-search-bounds.js +0 -26
  848. package/src/utils/get-prefix-search-bounds/get-prefix-search-bounds.spec.js +0 -14
  849. package/src/utils/get-prefix-search-bounds/index.js +0 -1
  850. package/src/utils/graphql/__snapshots__/graphql.spec.js.snap +0 -45
  851. package/src/utils/graphql/fragments/address.ctp.graphql +0 -39
  852. package/src/utils/graphql/fragments/custom-fields.ctp.graphql +0 -67
  853. package/src/utils/graphql/fragments/store-basic-info.ctp.graphql +0 -11
  854. package/src/utils/graphql/graphql.js +0 -579
  855. package/src/utils/graphql/graphql.spec.js +0 -1129
  856. package/src/utils/graphql/index.js +0 -1
  857. package/src/utils/has-error-code/has-error-code.js +0 -15
  858. package/src/utils/has-error-code/has-error-code.spec.js +0 -56
  859. package/src/utils/has-error-code/has-invalid-input-error.js +0 -7
  860. package/src/utils/has-error-code/has-semantic-error.js +0 -7
  861. package/src/utils/has-error-code/has-semantic-error.spec.js +0 -56
  862. package/src/utils/has-error-code/index.js +0 -3
  863. package/src/utils/is-uuid/index.js +0 -1
  864. package/src/utils/is-uuid/is-uuid.js +0 -6
  865. package/src/utils/is-uuid/is-uuid.spec.js +0 -25
  866. package/src/utils/minusify/index.js +0 -1
  867. package/src/utils/minusify/minusify.js +0 -4
  868. package/src/utils/minusify/minusify.spec.js +0 -9
  869. package/src/utils/numbers/index.js +0 -1
  870. package/src/utils/numbers/numbers.js +0 -32
  871. package/src/utils/numbers/numbers.spec.js +0 -57
  872. package/src/utils/omit-deep/index.js +0 -1
  873. package/src/utils/omit-deep/omit-deep.js +0 -20
  874. package/src/utils/pim-query-clauses.js +0 -43
  875. package/src/utils/prices/index.js +0 -1
  876. package/src/utils/prices/prices.js +0 -79
  877. package/src/utils/prices/prices.spec.js +0 -265
  878. package/src/utils/product-selections/convert-product-selection-from-graphql.js +0 -80
  879. package/src/utils/product-selections/index.js +0 -1
  880. package/src/utils/product-types/index.js +0 -1
  881. package/src/utils/product-types/product-types.js +0 -122
  882. package/src/utils/product-types/product-types.spec.js +0 -328
  883. package/src/utils/products/index.js +0 -1
  884. package/src/utils/products/messages.js +0 -16
  885. package/src/utils/products/products.jsx +0 -258
  886. package/src/utils/products/products.spec.js +0 -331
  887. package/src/utils/query-string/index.js +0 -1
  888. package/src/utils/query-string/query-string.js +0 -37
  889. package/src/utils/query-string/query-string.spec.js +0 -56
  890. package/src/utils/request-cache/index.js +0 -2
  891. package/src/utils/request-cache/request-cache.js +0 -52
  892. package/src/utils/request-cache/request-cache.spec.js +0 -118
  893. package/src/utils/shallow-equal/index.js +0 -1
  894. package/src/utils/shallow-equal/shallow-equal.js +0 -19
  895. package/src/utils/shallow-equal/shallow-equal.spec.js +0 -45
  896. package/src/utils/should-update-attribute-input/index.js +0 -1
  897. package/src/utils/should-update-attribute-input/should-update-attribute-input.js +0 -43
  898. package/src/utils/should-update-attribute-input/should-update-attribute-input.spec.js +0 -96
  899. package/src/utils/slugify/index.js +0 -1
  900. package/src/utils/slugify/slugify.js +0 -10
  901. package/src/utils/slugify/slugify.spec.js +0 -11
  902. package/src/utils/swap-array-items/index.js +0 -2
  903. package/src/utils/swap-array-items/swap-array-items.js +0 -13
  904. package/src/utils/swap-array-items/swap-array-items.spec.js +0 -52
  905. package/src/utils/text-fallback/text-fallback.js +0 -6
  906. package/src/utils/time-zones/index.js +0 -5
  907. package/src/utils/time-zones/time-zone-utils.js +0 -34
  908. package/src/utils/time-zones/time-zone-utils.spec.js +0 -47
  909. package/src/utils/track-menu-click/index.js +0 -1
  910. package/src/utils/track-menu-click/track-menu-click.js +0 -28
  911. package/src/utils/track-menu-click/track-menu-click.spec.js +0 -66
  912. package/src/utils/transform-to-proper-noun-case/index.js +0 -1
  913. package/src/utils/transform-to-proper-noun-case/transform-to-proper-noun-case.js +0 -10
  914. package/src/utils/transform-to-proper-noun-case/transform-to-proper-noun-case.spec.js +0 -23
  915. package/src/utils/truncate/index.js +0 -1
  916. package/src/utils/truncate/truncate.js +0 -9
  917. package/src/utils/truncate/truncate.spec.js +0 -23
  918. package/src/utils/type-definitions/index.js +0 -1
  919. package/src/utils/type-definitions/type-definitions.js +0 -118
  920. package/src/utils/type-definitions/type-definitions.spec.js +0 -547
  921. package/src/utils/update-status-in-list/index.js +0 -1
  922. package/src/utils/update-status-in-list/update-status-in-list.js +0 -16
  923. package/src/utils/validation/get-indexes-of-invalid-values.js +0 -16
  924. package/src/utils/validation/get-indexes-of-invalid-values.spec.js +0 -31
  925. package/src/utils/validation/index.js +0 -3
  926. package/src/utils/validation/validation.js +0 -169
  927. package/src/utils/validation/validation.spec.js +0 -99
  928. package/src/utils/validation/without-empty-errors-by-field.js +0 -5
  929. package/src/utils/validation/without-empty-errors-by-field.spec.js +0 -74
  930. package/src/utils/with-pending-requests/index.js +0 -1
  931. package/src/utils/with-pending-requests/with-pending-requests.jsx +0 -21
  932. package/src/utils/with-pending-requests/with-pending-requests.spec.js +0 -62
@@ -1,328 +0,0 @@
1
- import oneLine from 'common-tags/lib/oneLine';
2
- import {
3
- mergeEnumValues,
4
- getAllValidAttributes,
5
- updateEnumValuesOnAttribute,
6
- } from './product-types';
7
-
8
- const createSetAttributeOfElementType = (name, type, additionalDefinition) => ({
9
- name,
10
- type: {
11
- name: 'set',
12
- elementType: type,
13
- },
14
- ...additionalDefinition,
15
- });
16
-
17
- describe('getAllValidAttributes', () => {
18
- describe(`${oneLine`
19
- when two productTypes have attributes of type SET
20
- with elementType ENUM
21
- with same name
22
- `}`, () => {
23
- const productTypes = [
24
- {
25
- attributes: [
26
- createSetAttributeOfElementType(
27
- 'enum-of-same-name-set',
28
- {
29
- name: 'enum',
30
- values: [
31
- {
32
- key: 'enum-of-same-name-set-1',
33
- label: 'enum-of-same-name-set-1',
34
- },
35
- {
36
- key: 'enum-of-same-name-set-2',
37
- label: 'enum-of-same-name-set-2',
38
- },
39
- // enum-of-same-name-set-3 is missing
40
- {
41
- key: 'enum-of-same-name-set-4',
42
- label: 'enum-of-same-name-set-4',
43
- },
44
- // enum-of-same-name-set-5 is missing
45
- ],
46
- },
47
- { isSearchable: true }
48
- ),
49
- ],
50
- },
51
- {
52
- attributes: [
53
- createSetAttributeOfElementType(
54
- 'enum-of-same-name-set',
55
- {
56
- name: 'enum',
57
- values: [
58
- // enum-of-same-name-set-1 is missing
59
- // enum-of-same-name-set-2 is missing
60
- {
61
- key: 'enum-of-same-name-set-3',
62
- label: 'enum-of-same-name-set-3',
63
- },
64
- // enum-of-same-name-set-4 is missing
65
- {
66
- key: 'enum-of-same-name-set-5',
67
- label: 'enum-of-same-name-set-5',
68
- },
69
- ],
70
- },
71
- { isSearchable: true }
72
- ),
73
- ],
74
- },
75
- ];
76
- const expected = [
77
- {
78
- name: 'enum-of-same-name-set',
79
- type: {
80
- name: 'set',
81
- elementType: {
82
- name: 'enum',
83
- values: [
84
- {
85
- key: 'enum-of-same-name-set-1',
86
- label: 'enum-of-same-name-set-1',
87
- },
88
- {
89
- key: 'enum-of-same-name-set-2',
90
- label: 'enum-of-same-name-set-2',
91
- },
92
- {
93
- key: 'enum-of-same-name-set-3',
94
- label: 'enum-of-same-name-set-3',
95
- },
96
- {
97
- key: 'enum-of-same-name-set-4',
98
- label: 'enum-of-same-name-set-4',
99
- },
100
- {
101
- key: 'enum-of-same-name-set-5',
102
- label: 'enum-of-same-name-set-5',
103
- },
104
- ],
105
- },
106
- },
107
- isSearchable: true,
108
- },
109
- ];
110
-
111
- const actual = getAllValidAttributes(productTypes);
112
- it('should consolidate all available values of ENUM SET', () => {
113
- expect(actual).toEqual(expected);
114
- });
115
- });
116
- describe(`${oneLine`
117
- when two productTypes have attributes of type ENUM
118
- with same name
119
- `}`, () => {
120
- const productTypes = [
121
- {
122
- attributes: [
123
- {
124
- name: 'enum-of-same-name',
125
- isSearchable: true,
126
- type: {
127
- name: 'enum',
128
- values: [
129
- { key: 'enum-1', label: 'enum-1' },
130
- { key: 'enum-2', label: 'enum-2' },
131
- // enum-3 is missing
132
- { key: 'enum-4', label: 'enum-4' },
133
- // enum-5 is missing
134
- ],
135
- },
136
- },
137
- ],
138
- },
139
- {
140
- attributes: [
141
- {
142
- name: 'enum-of-same-name',
143
- isSearchable: true,
144
- type: {
145
- name: 'enum',
146
- values: [
147
- // enum-1 is missing
148
- // enum-2 is missing
149
- { key: 'enum-3', label: 'enum-3' },
150
- // enum-4 is missing
151
- { key: 'enum-5', label: 'enum-5' },
152
- ],
153
- },
154
- },
155
- ],
156
- },
157
- ];
158
- const expected = [
159
- {
160
- name: 'enum-of-same-name',
161
- isSearchable: true,
162
- type: {
163
- name: 'enum',
164
- values: [
165
- { key: 'enum-1', label: 'enum-1' },
166
- { key: 'enum-2', label: 'enum-2' },
167
- { key: 'enum-3', label: 'enum-3' },
168
- { key: 'enum-4', label: 'enum-4' },
169
- { key: 'enum-5', label: 'enum-5' },
170
- ],
171
- },
172
- },
173
- ];
174
- const actual = getAllValidAttributes(productTypes);
175
- it('should consolidate all available values of ENUM', () => {
176
- expect(actual).toEqual(expected);
177
- });
178
- });
179
- describe(`
180
- ${oneLine`
181
- when two productTypes have attributes of type TEXT
182
- with same name
183
- `}`, () => {
184
- const productTypes = [
185
- {
186
- attributes: [
187
- {
188
- name: 'text-of-same-name',
189
- isSearchable: true,
190
- type: { name: 'text' },
191
- },
192
- ],
193
- },
194
- {
195
- attributes: [
196
- {
197
- name: 'text-of-same-name',
198
- isSearchable: true,
199
- type: { name: 'text' },
200
- },
201
- ],
202
- },
203
- ];
204
- const expected = [
205
- {
206
- name: 'text-of-same-name',
207
- isSearchable: true,
208
- type: { name: 'text' },
209
- },
210
- ];
211
- const actual = getAllValidAttributes(productTypes);
212
- it('should return a list of attributes with a single attribute of same name', () => {
213
- expect(actual).toEqual(expected);
214
- });
215
- });
216
- });
217
-
218
- describe('mergeEnumValues', () => {
219
- describe('when attribute is of type ENUM SET', () => {
220
- const attribute = {
221
- type: {
222
- name: 'set',
223
- elementType: {
224
- name: 'enum',
225
- values: [{ key: 'enum-1', label: 'enum-1' }],
226
- },
227
- },
228
- };
229
- const attributeToMergeWith = {
230
- type: {
231
- name: 'set',
232
- elementType: {
233
- name: 'enum',
234
- values: [{ key: 'enum-2', label: 'enum-2' }],
235
- },
236
- },
237
- };
238
- const expected = [
239
- { key: 'enum-1', label: 'enum-1' },
240
- { key: 'enum-2', label: 'enum-2' },
241
- ];
242
- const actual = mergeEnumValues(attribute, attributeToMergeWith);
243
- it('should merge all available values into one attribute', () => {
244
- expect(actual).toEqual(expected);
245
- });
246
- });
247
- describe('when attribute is of type ENUM', () => {
248
- const attribute = {
249
- type: {
250
- name: 'enum',
251
- values: [{ key: 'enum-1', label: 'enum-1' }],
252
- },
253
- };
254
- const attributeToMergeWith = {
255
- type: {
256
- name: 'enum',
257
- values: [{ key: 'enum-2', label: 'enum-2' }],
258
- },
259
- };
260
- const expected = [
261
- { key: 'enum-1', label: 'enum-1' },
262
- { key: 'enum-2', label: 'enum-2' },
263
- ];
264
- const actual = mergeEnumValues(attribute, attributeToMergeWith);
265
- it('should merge all available values into one attribute', () => {
266
- expect(actual).toEqual(expected);
267
- });
268
- });
269
- });
270
-
271
- describe('updateEnumValuesOnAttribute', () => {
272
- describe('when attribute is of type ENUM SET', () => {
273
- const enumValues = [
274
- { key: 'enum-1', label: 'enum-1' },
275
- { key: 'enum-2', label: 'enum-2' },
276
- ];
277
- const attribute = {
278
- type: {
279
- name: 'set',
280
- elementType: {
281
- name: 'enum',
282
- values: [],
283
- },
284
- },
285
- };
286
- const expected = {
287
- type: {
288
- name: 'set',
289
- elementType: {
290
- name: 'enum',
291
- values: [
292
- { key: 'enum-1', label: 'enum-1' },
293
- { key: 'enum-2', label: 'enum-2' },
294
- ],
295
- },
296
- },
297
- };
298
- const actual = updateEnumValuesOnAttribute(attribute, enumValues);
299
- it('should merge all available values into one attribute', () => {
300
- expect(actual).toEqual(expected);
301
- });
302
- });
303
- describe('when attribute is of type ENUM', () => {
304
- const enumValues = [
305
- { key: 'enum-1', label: 'enum-1' },
306
- { key: 'enum-2', label: 'enum-2' },
307
- ];
308
- const attribute = {
309
- type: {
310
- name: 'enum',
311
- values: [],
312
- },
313
- };
314
- const expected = {
315
- type: {
316
- name: 'enum',
317
- values: [
318
- { key: 'enum-1', label: 'enum-1' },
319
- { key: 'enum-2', label: 'enum-2' },
320
- ],
321
- },
322
- };
323
- const actual = updateEnumValuesOnAttribute(attribute, enumValues);
324
- it('should merge all available values into one attribute', () => {
325
- expect(actual).toEqual(expected);
326
- });
327
- });
328
- });
@@ -1 +0,0 @@
1
- export * from './products';
@@ -1,16 +0,0 @@
1
- import { defineMessages } from 'react-intl';
2
-
3
- export default defineMessages({
4
- booleanAttributeTrue: {
5
- id: 'Products.ProductList.column.booleanTrue',
6
- description:
7
- 'The message to show to user for displaying boolean attribute value of true',
8
- defaultMessage: 'Yes',
9
- },
10
- booleanAttributeFalse: {
11
- id: 'Products.ProductList.column.booleanFalse',
12
- description:
13
- 'The message to show to user for displaying boolean attribute value of false',
14
- defaultMessage: 'No',
15
- },
16
- });
@@ -1,258 +0,0 @@
1
- import omit from 'lodash.omit';
2
- import isNil from 'lodash.isnil';
3
- import { NO_VALUE_FALLBACK } from '@commercetools-frontend/constants';
4
- import {
5
- FormattedDateTime,
6
- formatMoney,
7
- getMinimumPricesByCurrencyCode,
8
- } from '../../internal-index';
9
- import flatMap from 'lodash.flatmap';
10
-
11
- import { formatLocalizedString } from '@commercetools-frontend/l10n';
12
- import { PRODUCT_STATUSES } from '../constants';
13
- import { formatDateTime } from '../formats';
14
- import { getPathName, getAncestors } from '../categories';
15
- import { safelyAddFallback } from '../text-fallback/text-fallback';
16
- import messages from './messages';
17
-
18
- export const COLUMN_WIDTH_FALLBACK = 200;
19
-
20
- export const allowedProperties = new Map([
21
- // key => default (null means it has a translated message)
22
- ['id', 'ID'],
23
- ['version', null],
24
- ['productType', null],
25
- ['name', null],
26
- ['image', null],
27
- ['description', null],
28
- ['slug', 'Slug'],
29
- ['sku', 'SKU'],
30
- ['status', null],
31
- ['categories', null],
32
- ['totalCategories', null],
33
- ['totalVariants', null],
34
- ['metaTitle', null],
35
- ['metaDescription', null],
36
- ['price', null],
37
- ['taxCategory', null],
38
- ['createdAt', null],
39
- ['lastModifiedAt', null],
40
- ['state', null],
41
- ]);
42
-
43
- export const ignoredColumns = [];
44
-
45
- export const sortRequiresLanguage = new Set(['name']);
46
-
47
- export function sanitizeListColumns(columns) {
48
- return columns.map((column) =>
49
- omit(column, [
50
- // This is injected in the client hence it does not need to be saved
51
- 'attributeDefinition',
52
-
53
- // Deprecated props
54
- 'display',
55
- 'customLabel',
56
- 'customType',
57
- ])
58
- );
59
- }
60
-
61
- export function normalizeProductSettings(settings) {
62
- return Object.keys(settings).reduce((acc, key) => {
63
- if (settings[key] === null || settings[key] === undefined) return acc;
64
-
65
- let field = key;
66
-
67
- if (key.includes('list_')) field = key.split('list_')[1];
68
-
69
- if (key.includes('filter_')) field = key.split('filter_')[1];
70
-
71
- // eslint-disable-next-line no-param-reassign
72
- acc[field] = settings[key];
73
- return acc;
74
- }, {});
75
- }
76
-
77
- // FIXME: the returned productAttributeDefinitions won't be accurate in case a
78
- // different constraint than ATTRIBUTE_CONSTRAINTS.SAME_FOR_ALL was passed
79
- export function splitVariantAttributesByConstraint(product, constraint) {
80
- const productAttributeDefinitions = [];
81
- const variantAttributeDefinitions = [];
82
-
83
- if (product) {
84
- if (!constraint)
85
- throw new Error('You need to specify a constraint to filter for.');
86
-
87
- for (let i = 0; i < product.productType.obj.attributes.length; i += 1) {
88
- const definition = product.productType.obj.attributes[i];
89
- if (definition.attributeConstraint === constraint)
90
- productAttributeDefinitions.push(definition);
91
- else variantAttributeDefinitions.push(definition);
92
- }
93
- }
94
-
95
- return [productAttributeDefinitions, variantAttributeDefinitions];
96
- }
97
-
98
- export function resolveStatusType(product) {
99
- const { published, hasStagedChanges } = product;
100
-
101
- if (published && hasStagedChanges) return PRODUCT_STATUSES.MODIFIED;
102
-
103
- if (published && !hasStagedChanges) return PRODUCT_STATUSES.PUBLISHED;
104
-
105
- return PRODUCT_STATUSES.UNPUBLISHED;
106
- }
107
-
108
- export const computedProperties = {
109
- // TODO: show relative time as tooltip
110
- // `intl.formatRelative(<DATETIME>)`
111
- createdAt({ product, intl, timeZone }) {
112
- return formatDateTime('datetime', product.createdAt, {
113
- locale: intl.locale,
114
- timeZone,
115
- });
116
- },
117
- lastModifiedAt({ product, intl, timeZone }) {
118
- return formatDateTime('datetime', product.lastModifiedAt, {
119
- locale: intl.locale,
120
- timeZone,
121
- });
122
- },
123
- productType({ product }) {
124
- return product.productType.obj
125
- ? product.productType.obj.name
126
- : NO_VALUE_FALLBACK;
127
- },
128
- price({ product, intl }) {
129
- const allVariants = product.variants.concat(product.masterVariant);
130
- const variantPrices = flatMap(allVariants, (variant) => variant.prices);
131
- return (
132
- getMinimumPricesByCurrencyCode(variantPrices)
133
- .map((price) => formatMoney(price, intl))
134
- .join(', ') || NO_VALUE_FALLBACK
135
- );
136
- },
137
- sku({ product }) {
138
- const allVariants = [product.masterVariant].concat(product.variants);
139
- return allVariants
140
- .map(({ sku }) => sku)
141
- .filter(Boolean)
142
- .join(', ');
143
- },
144
- totalCategories({ product }) {
145
- return product.categories.length;
146
- },
147
- totalVariants({ product }) {
148
- // including master variant :)
149
- return product.variants.length + 1;
150
- },
151
- taxCategory({ product }) {
152
- // Guards against dead references of a tax category
153
- if (product.taxCategory && product.taxCategory.obj)
154
- return product.taxCategory.obj.name;
155
-
156
- return NO_VALUE_FALLBACK;
157
- },
158
- state({ product, language, languages }) {
159
- if (product.state && product.state.obj && product.state.obj.name)
160
- return formatLocalizedString(product.state.obj, {
161
- key: 'name',
162
- locale: language,
163
- fallbackOrder: languages,
164
- });
165
- return NO_VALUE_FALLBACK;
166
- },
167
- categories({ product, language, languages }) {
168
- // If any of the expanded categories in the product
169
- // doesn't have an `obj` key, we should assume that it is a dead reference.
170
- // This scenario occurs when the search index of product-projections
171
- // doesn't update in time when a category belonging to the product
172
- // has been deleted. See MC-1925 for further information.
173
- const filteredCategories = product.categories.filter(
174
- (category) => category.obj !== undefined
175
- );
176
-
177
- return filteredCategories.map((category) => {
178
- const categoryPath = getPathName(category, language, languages);
179
- const ancestors = getAncestors(category, language);
180
-
181
- const externalIdValue = category.obj.externalId
182
- ? // hardcoding "ext. ID" since this is not part of a message to be
183
- // translated. This has been communicated with Jenn
184
- `| ext. ID: ${category.obj.externalId}`
185
- : '';
186
-
187
- return {
188
- id: category.id,
189
- name: `${formatLocalizedString(category.obj, {
190
- key: 'name',
191
- locale: language,
192
- fallbackOrder: languages,
193
- })} ${externalIdValue}`,
194
- path: categoryPath,
195
- level: ancestors.length,
196
- };
197
- });
198
- },
199
- };
200
-
201
- export const getAttributeValueByType = ({
202
- type,
203
- value,
204
- projectDataLocale,
205
- intl,
206
- projectLanguages,
207
- }) => {
208
- switch (type) {
209
- case 'text':
210
- return safelyAddFallback(value.label || value);
211
- case 'ltext':
212
- return safelyAddFallback(
213
- formatLocalizedString(
214
- { value },
215
- {
216
- key: 'value',
217
- locale: projectDataLocale,
218
- fallbackOrder: projectLanguages,
219
- }
220
- )
221
- );
222
- case 'money':
223
- return safelyAddFallback(
224
- intl.formatNumber(value.centAmount / 100, {
225
- style: 'currency',
226
- currency: value.currencyCode,
227
- })
228
- );
229
- case 'time':
230
- case 'datetime':
231
- case 'date':
232
- return <FormattedDateTime type={type} value={value} />;
233
- case 'enum':
234
- return safelyAddFallback(value.label, `${value.key} (key)`);
235
- case 'lenum':
236
- return safelyAddFallback(
237
- formatLocalizedString(value, {
238
- key: 'label',
239
- locale: projectDataLocale,
240
- fallbackOrder: projectLanguages,
241
- }),
242
- `${value.key} (key)`
243
- );
244
- case 'number':
245
- return safelyAddFallback(value);
246
- case 'boolean': {
247
- if (isNil(value)) return NO_VALUE_FALLBACK;
248
-
249
- return value
250
- ? intl.formatMessage(messages.booleanAttributeTrue)
251
- : intl.formatMessage(messages.booleanAttributeFalse);
252
- }
253
- case 'reference':
254
- return value.id || NO_VALUE_FALLBACK;
255
- default:
256
- return NO_VALUE_FALLBACK;
257
- }
258
- };