@commercetools-frontend/experimental-components 0.0.2 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/commercetools-frontend-experimental-components.cjs.dev.js +28 -17
- package/dist/commercetools-frontend-experimental-components.cjs.prod.js +28 -17
- package/dist/commercetools-frontend-experimental-components.esm.js +28 -17
- package/dist/styles.css +1336 -0
- package/package.json +31 -20
- package/CHANGELOG.md +0 -7
- package/src/actions/reference-search/cart-discount/cart-discount.ctp.graphql +0 -29
- package/src/actions/reference-search/cart-discount/cart-discount.js +0 -69
- package/src/actions/reference-search/cart-discount/cart-discount.spec.js +0 -115
- package/src/actions/reference-search/cart-discount/index.js +0 -1
- package/src/actions/reference-search/category/category.ctp.graphql +0 -44
- package/src/actions/reference-search/category/category.js +0 -50
- package/src/actions/reference-search/category/category.spec.js +0 -82
- package/src/actions/reference-search/category/index.js +0 -1
- package/src/components/attribute-definitions/reference-search/cart-discount-reference-search/cart-discount-reference-search.jsx +0 -132
- package/src/components/attribute-definitions/reference-search/cart-discount-reference-search/cart-discount-reference-search.spec.js +0 -225
- package/src/components/attribute-definitions/reference-search/cart-discount-reference-search/index.js +0 -1
- package/src/components/attribute-definitions/reference-search/cart-discount-reference-search/messages.js +0 -33
- package/src/components/attribute-definitions/reference-search/cart-discount-reference-search/option.jsx +0 -45
- package/src/components/attribute-definitions/reference-search/category-reference-search/category-reference-search.jsx +0 -96
- package/src/components/attribute-definitions/reference-search/category-reference-search/category-reference-search.spec.js +0 -281
- package/src/components/attribute-definitions/reference-search/category-reference-search/index.js +0 -2
- package/src/components/attribute-definitions/reference-search/category-reference-search/messages.js +0 -37
- package/src/components/attribute-definitions/reference-search/category-reference-search/option.jsx +0 -71
- package/src/components/attribute-definitions/reference-search/category-reference-search/use-cached-category-options.js +0 -21
- package/src/components/attribute-definitions/reference-search/index.js +0 -10
- package/src/components/attribute-definitions/reference-search/reference-search.jsx +0 -179
- package/src/components/attribute-definitions/reference-search/reference-search.module.css +0 -13
- package/src/components/business-unit-select-field/business-unit-select-field.jsx +0 -141
- package/src/components/business-unit-select-field/index.js +0 -1
- package/src/components/business-unit-select-input/business-unit-select-input.jsx +0 -160
- package/src/components/business-unit-select-input/business-unit-select-input.spec.js +0 -118
- package/src/components/business-unit-select-input/components/business-unit-async-select-input/business-unit-async-select-input.jsx +0 -181
- package/src/components/business-unit-select-input/components/business-unit-async-select-input/index.js +0 -1
- package/src/components/business-unit-select-input/components/business-unit-basic-select-input/business-unit-basic-select-input.jsx +0 -150
- package/src/components/business-unit-select-input/components/business-unit-basic-select-input/index.js +0 -1
- package/src/components/business-unit-select-input/components/business-unit-search-select-input/business-unit-search-select-input.jsx +0 -187
- package/src/components/business-unit-select-input/components/business-unit-search-select-input/fetch-business-units-by-where-predicate.ctp.graphql +0 -9
- package/src/components/business-unit-select-input/components/business-unit-search-select-input/index.js +0 -1
- package/src/components/business-unit-select-input/components/business-unit-search-select-input/mocks/handlers.js +0 -16
- package/src/components/business-unit-select-input/components/business-unit-search-select-input/mocks/index.js +0 -3
- package/src/components/business-unit-select-input/constants.js +0 -2
- package/src/components/business-unit-select-input/hooks/index.js +0 -5
- package/src/components/business-unit-select-input/hooks/use-business-units-by-field-fetcher/fetch-business-units-by-field.ctp.graphql +0 -9
- package/src/components/business-unit-select-input/hooks/use-business-units-by-field-fetcher/index.js +0 -2
- package/src/components/business-unit-select-input/hooks/use-business-units-by-field-fetcher/mocks/handlers.js +0 -17
- package/src/components/business-unit-select-input/hooks/use-business-units-by-field-fetcher/mocks/index.js +0 -3
- package/src/components/business-unit-select-input/hooks/use-business-units-by-field-fetcher/use-business-units-by-field-fetcher.js +0 -35
- package/src/components/business-unit-select-input/hooks/use-business-units-list-fetcher/fetch-business-units-list.ctp.graphql +0 -21
- package/src/components/business-unit-select-input/hooks/use-business-units-list-fetcher/index.js +0 -2
- package/src/components/business-unit-select-input/hooks/use-business-units-list-fetcher/mocks/handlers.js +0 -17
- package/src/components/business-unit-select-input/hooks/use-business-units-list-fetcher/mocks/index.js +0 -3
- package/src/components/business-unit-select-input/hooks/use-business-units-list-fetcher/use-business-units-list-fetcher.js +0 -50
- package/src/components/business-unit-select-input/hooks/use-total-number-of-business-units-fetcher/index.js +0 -2
- package/src/components/business-unit-select-input/hooks/use-total-number-of-business-units-fetcher/mocks/handlers.js +0 -17
- package/src/components/business-unit-select-input/hooks/use-total-number-of-business-units-fetcher/mocks/index.js +0 -3
- package/src/components/business-unit-select-input/hooks/use-total-number-of-business-units-fetcher/total-number-of-business-units.ctp.graphql +0 -5
- 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
- package/src/components/business-unit-select-input/index.js +0 -5
- package/src/components/business-unit-select-input/messages.js +0 -30
- package/src/components/business-unit-select-input/utils.js +0 -27
- package/src/components/buttons/button/button.jsx +0 -42
- package/src/components/buttons/button/button.module.css +0 -214
- package/src/components/buttons/button/button.spec.js +0 -84
- package/src/components/buttons/button/index.js +0 -1
- package/src/components/buttons/button-close/__snapshots__/button-close.spec.js.snap +0 -19
- package/src/components/buttons/button-close/button-close.jsx +0 -37
- package/src/components/buttons/button-close/button-close.module.css +0 -3
- package/src/components/buttons/button-close/button-close.spec.js +0 -68
- package/src/components/buttons/button-close/index.js +0 -1
- package/src/components/buttons/button-group/button-group.jsx +0 -62
- package/src/components/buttons/button-group/button-group.module.css +0 -53
- package/src/components/buttons/button-group/button-group.spec.js +0 -142
- package/src/components/buttons/button-group/index.js +0 -1
- package/src/components/buttons/button-typed/button-typed.jsx +0 -120
- package/src/components/buttons/button-typed/button-typed.spec.js +0 -95
- package/src/components/buttons/button-typed/index.js +0 -1
- package/src/components/buttons/file-input/README.md +0 -45
- package/src/components/buttons/file-input/file-input.jsx +0 -35
- package/src/components/buttons/file-input/file-input.module.css +0 -31
- package/src/components/buttons/file-input/file-input.spec.js +0 -115
- package/src/components/buttons/file-input/index.js +0 -1
- package/src/components/buttons/file-input/messages.js +0 -9
- package/src/components/buttons/index.jsx +0 -42
- package/src/components/centered-loading-spinner/centered-loading-spinner.jsx +0 -18
- package/src/components/centered-loading-spinner/centered-loading-spinner.module.css +0 -7
- package/src/components/centered-loading-spinner/centered-loading-spinner.spec.js +0 -13
- package/src/components/centered-loading-spinner/index.js +0 -2
- package/src/components/channel-picker-input/channel-picker-input.ctp.graphql +0 -24
- package/src/components/channel-picker-input/channel-picker-input.jsx +0 -210
- package/src/components/channel-picker-input/channel-picker-input.spec.js +0 -405
- package/src/components/channel-picker-input/index.js +0 -1
- package/src/components/channel-picker-input/messages.js +0 -14
- package/src/components/channel-picker-input/tracking-events.js +0 -24
- package/src/components/country-picker/components/countries-async-select-dropdown/countries-async-select-dropdown.jsx +0 -89
- package/src/components/country-picker/components/countries-async-select-dropdown/index.js +0 -1
- package/src/components/country-picker/components/countries-basic-select-dropdown/countries-basic-select-dropdown.jsx +0 -50
- package/src/components/country-picker/components/countries-basic-select-dropdown/index.js +0 -1
- package/src/components/country-picker/constants.js +0 -1
- package/src/components/country-picker/country-picker.jsx +0 -49
- package/src/components/country-picker/index.js +0 -1
- package/src/components/country-picker/messages.js +0 -20
- package/src/components/divider/divider.jsx +0 -21
- package/src/components/divider/divider.module.css +0 -25
- package/src/components/divider/index.js +0 -1
- package/src/components/formatted-date-time/README.md +0 -44
- package/src/components/formatted-date-time/__snapshots__/formatted-date-time.spec.js.snap +0 -19
- package/src/components/formatted-date-time/formatted-date-time.jsx +0 -35
- package/src/components/formatted-date-time/formatted-date-time.spec.js +0 -68
- package/src/components/formatted-date-time/index.js +0 -1
- package/src/components/keep-display-name/index.js +0 -1
- package/src/components/keep-display-name/keep-display-name.js +0 -6
- package/src/components/messages.js +0 -17
- package/src/components/modal-container/__snapshots__/modal-container.spec.js.snap +0 -21
- package/src/components/modal-container/index.js +0 -1
- package/src/components/modal-container/modal-container.jsx +0 -36
- package/src/components/modal-container/modal-container.spec.js +0 -10
- package/src/components/modal-content-layout/index.js +0 -1
- package/src/components/modal-content-layout/modal-content-layout.jsx +0 -38
- package/src/components/modal-content-layout/modal-content-layout.module.css +0 -69
- package/src/components/modal-content-layout/modal-content-layout.spec.js +0 -109
- package/src/components/product-attributes/README.md +0 -72
- package/src/components/product-attributes/conversions.js +0 -75
- package/src/components/product-attributes/conversions.spec.js +0 -97
- package/src/components/product-attributes/index.js +0 -3
- package/src/components/product-attributes/product-attribute-input.jsx +0 -68
- package/src/components/product-attributes/product-attributes.jsx +0 -79
- package/src/components/product-picker-input/index.js +0 -1
- package/src/components/product-picker-input/messages.js +0 -14
- package/src/components/product-picker-input/product-picker-input.ctp.graphql +0 -31
- package/src/components/product-picker-input/product-picker-input.jsx +0 -203
- package/src/components/product-picker-input/product-picker-input.spec.js +0 -357
- package/src/components/product-picker-input/tracking-events.js +0 -19
- package/src/components/product-selection-picker/components/product-selection-async-select-dropdown/index.js +0 -1
- package/src/components/product-selection-picker/components/product-selection-async-select-dropdown/product-selection-async-select-dropdown.jsx +0 -113
- package/src/components/product-selection-picker/components/product-selection-basic-select-dropdown/index.js +0 -1
- package/src/components/product-selection-picker/components/product-selection-basic-select-dropdown/product-selection-basic-select-dropdown.jsx +0 -98
- package/src/components/product-selection-picker/components/product-selections-search-select-dropdown/index.js +0 -1
- package/src/components/product-selection-picker/components/product-selections-search-select-dropdown/product-selections-fetcher.ctp.graphql +0 -13
- package/src/components/product-selection-picker/components/product-selections-search-select-dropdown/product-selections-search-select-dropdown.jsx +0 -121
- package/src/components/product-selection-picker/constants.js +0 -2
- package/src/components/product-selection-picker/index.js +0 -1
- package/src/components/product-selection-picker/messages.js +0 -20
- package/src/components/product-selection-picker/product-selection-picker.jsx +0 -84
- package/src/components/product-type-picker-input/index.js +0 -1
- package/src/components/product-type-picker-input/messages.js +0 -14
- package/src/components/product-type-picker-input/product-type-picker-input.ctp.graphql +0 -15
- package/src/components/product-type-picker-input/product-type-picker-input.jsx +0 -172
- package/src/components/product-type-picker-input/product-type-picker-input.spec.js +0 -266
- package/src/components/product-type-picker-input/tracking-events.js +0 -14
- package/src/components/required-indicator/__snapshots__/required-indicator.spec.js.snap +0 -17
- package/src/components/required-indicator/index.js +0 -1
- package/src/components/required-indicator/required-indicator.jsx +0 -16
- package/src/components/required-indicator/required-indicator.module.css +0 -3
- package/src/components/required-indicator/required-indicator.spec.js +0 -14
- package/src/components/scroll-to-field-error/index.js +0 -1
- package/src/components/scroll-to-field-error/scroll-to-field-error.js +0 -32
- package/src/components/selectable-field-search-input/index.js +0 -1
- package/src/components/selectable-field-search-input/messages.js +0 -14
- package/src/components/selectable-field-search-input/selectable-field-search-input.jsx +0 -147
- package/src/components/selectable-field-search-input/selectable-field-search-input.module.css +0 -14
- package/src/components/selectable-field-search-input/selectable-field-search-input.spec.js +0 -82
- package/src/components/state-picker-input/index.js +0 -1
- package/src/components/state-picker-input/messages.js +0 -14
- package/src/components/state-picker-input/state-picker-input.ctp.graphql +0 -24
- package/src/components/state-picker-input/state-picker-input.jsx +0 -204
- package/src/components/state-picker-input/state-picker-input.spec.js +0 -447
- package/src/components/state-picker-input/tracking-events.js +0 -24
- package/src/components/store-select-field/index.js +0 -1
- package/src/components/store-select-field/store-select-field.jsx +0 -145
- package/src/components/store-select-input/components/stores-async-select-input/index.js +0 -1
- package/src/components/store-select-input/components/stores-async-select-input/stores-async-select-input.jsx +0 -214
- package/src/components/store-select-input/components/stores-basic-select-input/index.js +0 -1
- package/src/components/store-select-input/components/stores-basic-select-input/stores-basic-select-input.jsx +0 -172
- package/src/components/store-select-input/components/stores-search-select-input/fetch-stores-by-where-predicate.ctp.graphql +0 -26
- package/src/components/store-select-input/components/stores-search-select-input/index.js +0 -2
- package/src/components/store-select-input/components/stores-search-select-input/mocks/handlers.js +0 -16
- package/src/components/store-select-input/components/stores-search-select-input/mocks/index.js +0 -3
- package/src/components/store-select-input/components/stores-search-select-input/stores-search-select-input.jsx +0 -261
- package/src/components/store-select-input/constants.js +0 -2
- package/src/components/store-select-input/hooks/index.js +0 -4
- package/src/components/store-select-input/hooks/use-stores-by-field-fetcher/fetch-stores-by-field.ctp.graphql +0 -22
- package/src/components/store-select-input/hooks/use-stores-by-field-fetcher/index.js +0 -2
- package/src/components/store-select-input/hooks/use-stores-by-field-fetcher/mocks/handlers.js +0 -16
- package/src/components/store-select-input/hooks/use-stores-by-field-fetcher/mocks/index.js +0 -3
- package/src/components/store-select-input/hooks/use-stores-by-field-fetcher/use-stores-by-field-fetcher.js +0 -47
- package/src/components/store-select-input/hooks/use-total-number-of-stores-fetcher/index.js +0 -2
- package/src/components/store-select-input/hooks/use-total-number-of-stores-fetcher/mocks/handlers.js +0 -16
- package/src/components/store-select-input/hooks/use-total-number-of-stores-fetcher/mocks/index.js +0 -3
- package/src/components/store-select-input/hooks/use-total-number-of-stores-fetcher/total-number-of-stores.ctp.graphql +0 -5
- package/src/components/store-select-input/hooks/use-total-number-of-stores-fetcher/use-total-number-of-stores-fetcher.js +0 -20
- package/src/components/store-select-input/index.js +0 -4
- package/src/components/store-select-input/messages.js +0 -36
- package/src/components/store-select-input/store-select-input.jsx +0 -163
- package/src/components/store-select-input/store-select-input.spec.js +0 -124
- package/src/components/store-select-input/utils.js +0 -40
- package/src/components/tooltip/index.js +0 -1
- package/src/components/tooltip/tooltip.jsx +0 -192
- package/src/components/tooltip/tooltip.module.css +0 -281
- package/src/components/tooltip/tooltip.spec.js +0 -138
- package/src/components/validated-input/__snapshots__/validated-input.spec.js.snap +0 -13
- package/src/components/validated-input/index.js +0 -2
- package/src/components/validated-input/validated-input.jsx +0 -318
- package/src/components/validated-input/validated-input.module.css +0 -9
- package/src/components/validated-input/validated-input.spec.js +0 -91
- package/src/components/validation-error/README.md +0 -87
- package/src/components/validation-error/__snapshots__/validation-error-match.spec.js.snap +0 -9
- package/src/components/validation-error/__snapshots__/validation-error-switch.spec.js.snap +0 -12
- package/src/components/validation-error/index.js +0 -4
- package/src/components/validation-error/validation-error-match.js +0 -31
- package/src/components/validation-error/validation-error-match.spec.js +0 -102
- package/src/components/validation-error/validation-error-switch.js +0 -45
- package/src/components/validation-error/validation-error-switch.spec.js +0 -78
- package/src/components/with-mouse-over-state/README.md +0 -33
- package/src/components/with-mouse-over-state/index.js +0 -1
- package/src/components/with-mouse-over-state/with-mouse-over-state.jsx +0 -32
- package/src/components/with-mouse-over-state/with-mouse-over-state.spec.js +0 -35
- package/src/constants/index.js +0 -114
- package/src/custom-fields/custom-field-definitions-connector/README.md +0 -90
- package/src/custom-fields/custom-field-definitions-connector/__snapshots__/custom-field-definitions-connector.spec.js.snap +0 -7
- package/src/custom-fields/custom-field-definitions-connector/custom-field-definitions-connector.ctp.graphql +0 -54
- package/src/custom-fields/custom-field-definitions-connector/custom-field-definitions-connector.js +0 -150
- package/src/custom-fields/custom-field-definitions-connector/custom-field-definitions-connector.spec.js +0 -288
- package/src/custom-fields/custom-field-definitions-connector/index.js +0 -3
- package/src/custom-fields/custom-field-definitions-connector/mocks/handlers.js +0 -16
- package/src/custom-fields/custom-field-definitions-connector/mocks/index.js +0 -4
- package/src/custom-fields/custom-field-type-definitions-connector/README.md +0 -193
- package/src/custom-fields/custom-field-type-definitions-connector/__snapshots__/custom-field-type-definitions-connector.spec.js.snap +0 -7
- package/src/custom-fields/custom-field-type-definitions-connector/custom-field-type-definitions-connector.ctp.graphql +0 -72
- package/src/custom-fields/custom-field-type-definitions-connector/custom-field-type-definitions-connector.js +0 -131
- package/src/custom-fields/custom-field-type-definitions-connector/custom-field-type-definitions-connector.spec.js +0 -82
- package/src/custom-fields/custom-field-type-definitions-connector/index.js +0 -1
- package/src/custom-fields/custom-field-type-definitions-connector/utils.js +0 -89
- package/src/custom-fields/custom-field-type-definitions-connector/utils.spec.js +0 -235
- package/src/custom-fields/custom-fields/README.md +0 -75
- package/src/custom-fields/custom-fields/constants.js +0 -38
- package/src/custom-fields/custom-fields/custom-field-errors.jsx +0 -60
- package/src/custom-fields/custom-fields/custom-field-input.jsx +0 -100
- package/src/custom-fields/custom-fields/custom-field-tooltip.jsx +0 -34
- package/src/custom-fields/custom-fields/custom-fields-internal.jsx +0 -148
- package/src/custom-fields/custom-fields/custom-fields-label/cart-discounts-count.ctp.graphql +0 -5
- package/src/custom-fields/custom-fields/custom-fields-label/custom-fields-label.jsx +0 -156
- package/src/custom-fields/custom-fields/custom-fields-label/custom-fields-label.spec.js +0 -92
- package/src/custom-fields/custom-fields/custom-fields-label/index.js +0 -1
- package/src/custom-fields/custom-fields/custom-fields-label/messages.js +0 -37
- package/src/custom-fields/custom-fields/custom-fields.jsx +0 -61
- package/src/custom-fields/custom-fields/custom-nested-field-input/custom-nested-field-input.jsx +0 -66
- package/src/custom-fields/custom-fields/custom-nested-field-input/fetch-product-type.ctp.graphql +0 -82
- package/src/custom-fields/custom-fields/custom-nested-field-input/index.js +0 -1
- package/src/custom-fields/custom-fields/custom-nested-field-input/messages.js +0 -9
- package/src/custom-fields/custom-fields/custom-nested-field-input/product-type-reference.jsx +0 -20
- package/src/custom-fields/custom-fields/custom-nested-field-input/use-nested-product-type.js +0 -72
- package/src/custom-fields/custom-fields/index.js +0 -5
- package/src/custom-fields/custom-fields/nesting-level-context.js +0 -5
- package/src/custom-fields/custom-fields/set/custom-boolean-input-set.jsx +0 -69
- package/src/custom-fields/custom-fields/set/custom-boolean-input-set.spec.js +0 -89
- package/src/custom-fields/custom-fields/set/custom-input-set.jsx +0 -233
- package/src/custom-fields/custom-fields/set/custom-input-set.spec.js +0 -193
- package/src/custom-fields/custom-fields/set/expand-button.jsx +0 -37
- package/src/custom-fields/custom-fields/set/expand-button.spec.js +0 -43
- package/src/custom-fields/custom-fields/set/set-buttons.jsx +0 -47
- package/src/custom-fields/custom-fields/set/set-buttons.module.css +0 -7
- package/src/custom-fields/custom-fields/set/set-buttons.spec.js +0 -39
- package/src/custom-fields/custom-fields/test-utils.jsx +0 -167
- package/src/custom-fields/custom-fields/types/custom-boolean-input.jsx +0 -49
- package/src/custom-fields/custom-fields/types/custom-boolean-input.spec.js +0 -51
- package/src/custom-fields/custom-fields/types/custom-date-time-input.jsx +0 -53
- package/src/custom-fields/custom-fields/types/custom-date-time-input.spec.js +0 -116
- package/src/custom-fields/custom-fields/types/custom-enum-input.jsx +0 -61
- package/src/custom-fields/custom-fields/types/custom-enum-input.spec.js +0 -113
- package/src/custom-fields/custom-fields/types/custom-localized-enum-input.jsx +0 -70
- package/src/custom-fields/custom-fields/types/custom-localized-enum-input.spec.js +0 -133
- package/src/custom-fields/custom-fields/types/custom-localized-text-input.jsx +0 -86
- package/src/custom-fields/custom-fields/types/custom-localized-text-input.spec.js +0 -99
- package/src/custom-fields/custom-fields/types/custom-money-input.jsx +0 -117
- package/src/custom-fields/custom-fields/types/custom-money-input.module.css +0 -3
- package/src/custom-fields/custom-fields/types/custom-money-input.spec.js +0 -124
- package/src/custom-fields/custom-fields/types/custom-nested-input/custom-nested-input.jsx +0 -331
- package/src/custom-fields/custom-fields/types/custom-nested-input/custom-nested-input.spec.js +0 -470
- package/src/custom-fields/custom-fields/types/custom-nested-input/index.js +0 -1
- package/src/custom-fields/custom-fields/types/custom-nested-input/messages.js +0 -82
- package/src/custom-fields/custom-fields/types/custom-number-input.jsx +0 -34
- package/src/custom-fields/custom-fields/types/custom-number-input.spec.js +0 -42
- package/src/custom-fields/custom-fields/types/custom-reference-input/custom-cart-discount-reference-input.jsx +0 -44
- package/src/custom-fields/custom-fields/types/custom-reference-input/custom-cart-discount-reference-input.spec.js +0 -132
- package/src/custom-fields/custom-fields/types/custom-reference-input/custom-category-reference-input.jsx +0 -46
- package/src/custom-fields/custom-fields/types/custom-reference-input/custom-category-reference-input.spec.js +0 -134
- package/src/custom-fields/custom-fields/types/custom-reference-input/custom-channel-reference-input.jsx +0 -36
- package/src/custom-fields/custom-fields/types/custom-reference-input/custom-channel-reference-input.spec.js +0 -130
- package/src/custom-fields/custom-fields/types/custom-reference-input/custom-product-reference-input.jsx +0 -37
- package/src/custom-fields/custom-fields/types/custom-reference-input/custom-product-reference-input.spec.js +0 -123
- package/src/custom-fields/custom-fields/types/custom-reference-input/custom-product-type-reference-input.jsx +0 -36
- package/src/custom-fields/custom-fields/types/custom-reference-input/custom-product-type-reference-input.spec.js +0 -146
- package/src/custom-fields/custom-fields/types/custom-reference-input/custom-raw-id-reference-input.jsx +0 -32
- package/src/custom-fields/custom-fields/types/custom-reference-input/custom-raw-id-reference-input.spec.js +0 -83
- package/src/custom-fields/custom-fields/types/custom-reference-input/custom-reference-input.jsx +0 -78
- package/src/custom-fields/custom-fields/types/custom-reference-input/custom-state-reference-input.jsx +0 -36
- package/src/custom-fields/custom-fields/types/custom-reference-input/custom-state-reference-input.spec.js +0 -130
- package/src/custom-fields/custom-fields/types/custom-reference-input/index.js +0 -1
- package/src/custom-fields/custom-fields/types/custom-text-input.jsx +0 -46
- package/src/custom-fields/custom-fields/types/custom-text-input.spec.js +0 -66
- package/src/custom-fields/custom-fields/types/custom-time-input.jsx +0 -74
- package/src/custom-fields/custom-fields/types/custom-time-input.spec.js +0 -91
- package/src/custom-fields/custom-fields/utils/index.js +0 -1
- package/src/custom-fields/custom-fields/utils/utils.js +0 -22
- package/src/custom-fields/custom-fields/validations/index.js +0 -1
- package/src/custom-fields/custom-fields/validations/validations.js +0 -117
- package/src/custom-fields/custom-fields/validations/validations.spec.js +0 -134
- package/src/custom-fields/custom-fields-error-text-notification/custom-fields-error-text-notification.jsx +0 -29
- package/src/custom-fields/custom-fields-error-text-notification/custom-fields-error-text-notification.spec.js +0 -31
- package/src/custom-fields/custom-fields-error-text-notification/index.js +0 -1
- package/src/custom-fields/custom-fields-error-text-notification/messages.js +0 -10
- package/src/custom-fields/messages/custom-fields.js +0 -17
- package/src/features/picker/index.js +0 -11
- package/src/features/picker/shared/components/index.js +0 -1
- package/src/features/picker/shared/components/messages.js +0 -9
- package/src/features/picker/shared/components/option.jsx +0 -51
- package/src/features/picker/shared/hooks/use-current-option.js +0 -24
- package/src/features/picker/shared/hooks/use-current-option.spec.js +0 -125
- package/src/features/picker/shared/hooks/use-handlers.js +0 -42
- package/src/features/picker/shared/hooks/use-load-options.js +0 -63
- package/src/features/picker/shared/hooks/use-load-options.spec.js +0 -63
- package/src/features/picker/shared/hooks/use-product-type-options.js +0 -190
- package/src/features/picker/shared/hooks/use-product-type-options.spec.js +0 -151
- package/src/features/pim-indexer/components/index.js +0 -5
- package/src/features/pim-indexer/components/pim-indexer-context/index.js +0 -1
- package/src/features/pim-indexer/components/pim-indexer-context/pim-indexer-context.js +0 -28
- package/src/features/pim-indexer/components/pim-indexer-provider/fetch-indices-exist.pim-indexer.graphql +0 -12
- package/src/features/pim-indexer/components/pim-indexer-provider/fetch-pim-index-status.js +0 -42
- package/src/features/pim-indexer/components/pim-indexer-provider/fetch-pim-index-status.spec.js +0 -128
- package/src/features/pim-indexer/components/pim-indexer-provider/index.js +0 -1
- package/src/features/pim-indexer/components/pim-indexer-provider/messages.js +0 -17
- package/src/features/pim-indexer/components/pim-indexer-provider/pim-indexer-provider.jsx +0 -287
- package/src/features/pim-indexer/components/pim-indexer-provider/pim-indexer-provider.spec.js +0 -80
- package/src/features/pim-indexer/components/pim-indexer-provider/pim-indexer.pim-indexer.graphql +0 -55
- package/src/features/pim-indexer/components/with-pim-indexer/index.js +0 -1
- package/src/features/pim-indexer/components/with-pim-indexer/with-pim-indexer.jsx +0 -19
- package/src/features/pim-indexer/hocs/index.js +0 -2
- package/src/features/pim-indexer/hocs/inject-pim-indexer/index.js +0 -1
- package/src/features/pim-indexer/hocs/inject-pim-indexer/inject-pim-indexer.jsx +0 -23
- package/src/features/pim-indexer/hocs/inject-pim-indexer/inject-pim-indexer.spec.js +0 -37
- package/src/features/pim-indexer/hooks/index.js +0 -2
- package/src/features/pim-indexer/hooks/use-pim-indexer/index.js +0 -1
- package/src/features/pim-indexer/hooks/use-pim-indexer/use-pim-indexer.js +0 -6
- package/src/features/pim-indexer/index.js +0 -6
- package/src/features/platform-limits/assets/graphic-limits-reached.react.svg +0 -50
- package/src/features/platform-limits/customer-groups/components/index.js +0 -5
- package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-combined/index.js +0 -1
- package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-combined/platform-limits-customer-groups-combined.jsx +0 -32
- package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-combined/platform-limits-customer-groups-combined.module.css +0 -3
- package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-error-modal/index.js +0 -1
- package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-error-modal/messages.js +0 -15
- package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-error-modal/platform-limits-customer-groups-error-modal.jsx +0 -43
- package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-notification/index.js +0 -1
- package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-notification/platform-limits-customer-groups-notification.jsx +0 -42
- package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-notification/platform-limits-customer-groups-notification.spec.js +0 -51
- package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-status/index.js +0 -1
- package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-status/messages.js +0 -9
- package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-status/platform-limits-customer-groups-status.jsx +0 -37
- package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-status/platform-limits-customer-groups-status.module.css +0 -3
- package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-tooltip/index.js +0 -1
- package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-tooltip/messages.js +0 -9
- package/src/features/platform-limits/customer-groups/components/platform-limits-customer-groups-tooltip/platform-limits-customer-groups-tooltip.jsx +0 -18
- package/src/features/platform-limits/customer-groups/hocs/index.js +0 -2
- package/src/features/platform-limits/customer-groups/hocs/inject-customer-groups-platform-limits/index.js +0 -1
- package/src/features/platform-limits/customer-groups/hocs/inject-customer-groups-platform-limits/inject-customer-groups-platform-limits.jsx +0 -23
- package/src/features/platform-limits/customer-groups/hooks/index.js +0 -4
- package/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits/index.js +0 -1
- package/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits/use-customer-groups-platform-limits.js +0 -40
- package/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-fetcher/index.js +0 -1
- package/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-fetcher/use-customer-groups-platform-limits-fetcher.js +0 -18
- package/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-fetcher/use-customer-groups-platform-limits-fetcher.spec.js +0 -45
- package/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-modal-state/index.js +0 -1
- 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
- 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
- package/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-status/index.js +0 -1
- package/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-status/use-customer-groups-platform-limits-status.js +0 -35
- package/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-status/use-customer-groups-platform-limits-status.spec.js +0 -66
- package/src/features/platform-limits/customer-groups/index.js +0 -3
- package/src/features/platform-limits/customers/components/index.js +0 -5
- package/src/features/platform-limits/customers/components/platform-limits-customers-combined/index.js +0 -1
- package/src/features/platform-limits/customers/components/platform-limits-customers-combined/platform-limits-customers-combined.jsx +0 -28
- package/src/features/platform-limits/customers/components/platform-limits-customers-combined/platform-limits-customers-combined.module.css +0 -3
- package/src/features/platform-limits/customers/components/platform-limits-customers-error-modal/index.js +0 -1
- package/src/features/platform-limits/customers/components/platform-limits-customers-error-modal/messages.js +0 -14
- package/src/features/platform-limits/customers/components/platform-limits-customers-error-modal/platform-limits-customers-error-modal.jsx +0 -43
- package/src/features/platform-limits/customers/components/platform-limits-customers-notification/index.js +0 -1
- package/src/features/platform-limits/customers/components/platform-limits-customers-notification/platform-limits-customers-notification.jsx +0 -40
- package/src/features/platform-limits/customers/components/platform-limits-customers-notification/platform-limits-customers-notification.spec.js +0 -51
- package/src/features/platform-limits/customers/components/platform-limits-customers-status/index.js +0 -1
- package/src/features/platform-limits/customers/components/platform-limits-customers-status/messages.js +0 -9
- package/src/features/platform-limits/customers/components/platform-limits-customers-status/platform-limits-customers-status.jsx +0 -36
- package/src/features/platform-limits/customers/components/platform-limits-customers-status/platform-limits-customers-status.module.css +0 -3
- package/src/features/platform-limits/customers/components/platform-limits-customers-tooltip/index.js +0 -1
- package/src/features/platform-limits/customers/components/platform-limits-customers-tooltip/messages.js +0 -9
- package/src/features/platform-limits/customers/components/platform-limits-customers-tooltip/platform-limits-customers-tooltip.jsx +0 -17
- package/src/features/platform-limits/customers/hocs/index.js +0 -2
- package/src/features/platform-limits/customers/hocs/inject-customers-platform-limits/index.js +0 -1
- package/src/features/platform-limits/customers/hocs/inject-customers-platform-limits/inject-customers-platform-limits.jsx +0 -23
- package/src/features/platform-limits/customers/hooks/index.js +0 -4
- package/src/features/platform-limits/customers/hooks/use-customers-platform-limits/index.js +0 -1
- package/src/features/platform-limits/customers/hooks/use-customers-platform-limits/use-customers-platform-limits.js +0 -38
- package/src/features/platform-limits/customers/hooks/use-customers-platform-limits-fetcher/index.js +0 -1
- package/src/features/platform-limits/customers/hooks/use-customers-platform-limits-fetcher/use-customers-platform-limits-fetcher.js +0 -18
- package/src/features/platform-limits/customers/hooks/use-customers-platform-limits-fetcher/use-customers-platform-limits-fetcher.spec.js +0 -43
- package/src/features/platform-limits/customers/hooks/use-customers-platform-limits-modal-state/index.js +0 -1
- package/src/features/platform-limits/customers/hooks/use-customers-platform-limits-modal-state/use-customers-platform-limits-modal-state.js +0 -20
- package/src/features/platform-limits/customers/hooks/use-customers-platform-limits-modal-state/use-customers-platform-limits-modal-state.spec.js +0 -39
- package/src/features/platform-limits/customers/hooks/use-customers-platform-limits-status/index.js +0 -1
- package/src/features/platform-limits/customers/hooks/use-customers-platform-limits-status/use-customers-platform-limits-status.js +0 -35
- package/src/features/platform-limits/customers/hooks/use-customers-platform-limits-status/use-customers-platform-limits-status.spec.js +0 -61
- package/src/features/platform-limits/customers/index.js +0 -3
- package/src/features/platform-limits/index.js +0 -21
- package/src/features/platform-limits/shared/components/index.js +0 -2
- package/src/features/platform-limits/shared/components/notifications/error/error.jsx +0 -33
- package/src/features/platform-limits/shared/components/notifications/error/index.js +0 -1
- package/src/features/platform-limits/shared/components/notifications/error/messages.js +0 -34
- package/src/features/platform-limits/shared/components/notifications/index.js +0 -1
- package/src/features/platform-limits/shared/components/notifications/notifications.js +0 -9
- package/src/features/platform-limits/shared/components/notifications/warning/index.js +0 -1
- package/src/features/platform-limits/shared/components/notifications/warning/messages.js +0 -34
- package/src/features/platform-limits/shared/components/notifications/warning/warning.jsx +0 -41
- package/src/features/platform-limits/shared/components/status-text/index.js +0 -1
- package/src/features/platform-limits/shared/components/status-text/status-text.jsx +0 -19
- package/src/features/platform-limits/shared/constants.js +0 -16
- package/src/features/platform-limits/shared/hooks/index.js +0 -5
- package/src/features/platform-limits/shared/hooks/use-intercept-navigation/index.js +0 -1
- package/src/features/platform-limits/shared/hooks/use-intercept-navigation/use-intercept-navigation.js +0 -31
- package/src/features/platform-limits/shared/hooks/use-intercept-navigation/use-intercept-navigation.spec.js +0 -76
- package/src/features/platform-limits/shared/hooks/use-limits-modal-state/index.js +0 -1
- package/src/features/platform-limits/shared/hooks/use-limits-modal-state/use-limits-modal-state.js +0 -17
- package/src/features/platform-limits/shared/hooks/use-limits-modal-state/use-limits-modal-state.spec.js +0 -33
- package/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/__mocks__/index.js +0 -405
- package/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/index.js +0 -1
- package/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/mocks/handlers.js +0 -16
- package/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/mocks/index.js +0 -4
- package/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/platform-limits-query-variables.js +0 -18
- package/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/use-platform-limits-fetcher.ctp.graphql +0 -87
- package/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/use-platform-limits-fetcher.js +0 -30
- package/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/use-platform-limits-fetcher.spec.js +0 -202
- package/src/features/platform-limits/shared/index.js +0 -15
- package/src/features/platform-limits/shared/utils/index.js +0 -5
- package/src/features/platform-limits/shared/utils/utils.js +0 -17
- package/src/features/platform-limits/shared/utils/utils.spec.js +0 -126
- package/src/features/platform-limits/shipping-methods/components/index.js +0 -3
- package/src/features/platform-limits/shipping-methods/components/platform-limits-shipping-methods-notification/index.js +0 -1
- package/src/features/platform-limits/shipping-methods/components/platform-limits-shipping-methods-notification/platform-limits-shipping-methods-notification.jsx +0 -42
- package/src/features/platform-limits/shipping-methods/components/platform-limits-shipping-methods-notification/platform-limits-shipping-methods-notification.spec.js +0 -51
- package/src/features/platform-limits/shipping-methods/components/platform-limits-shipping-methods-status/index.js +0 -1
- package/src/features/platform-limits/shipping-methods/components/platform-limits-shipping-methods-status/messages.js +0 -9
- package/src/features/platform-limits/shipping-methods/components/platform-limits-shipping-methods-status/platform-limits-shipping-methods-status.jsx +0 -29
- package/src/features/platform-limits/shipping-methods/components/platform-limits-shipping-methods-status/platform-limits-shipping-methods-status.spec.js +0 -37
- package/src/features/platform-limits/shipping-methods/components/platform-limits-shipping-methods-tooltip/index.js +0 -1
- package/src/features/platform-limits/shipping-methods/components/platform-limits-shipping-methods-tooltip/messages.js +0 -10
- package/src/features/platform-limits/shipping-methods/components/platform-limits-shipping-methods-tooltip/platform-limits-shipping-methods-tooltip.jsx +0 -18
- package/src/features/platform-limits/shipping-methods/hocs/index.js +0 -2
- package/src/features/platform-limits/shipping-methods/hocs/inject-shipping-methods-platform-limits/index.js +0 -1
- package/src/features/platform-limits/shipping-methods/hocs/inject-shipping-methods-platform-limits/inject-shipping-methods-platform-limits.jsx +0 -23
- package/src/features/platform-limits/shipping-methods/hooks/index.js +0 -3
- package/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits/index.js +0 -1
- package/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits/use-shipping-methods-platform-limits.js +0 -30
- package/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits-fetcher/index.js +0 -1
- package/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits-fetcher/use-shipping-methods-platform-limits-fetcher.js +0 -18
- package/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits-fetcher/use-shipping-methods-platform-limits-fetcher.spec.js +0 -46
- package/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits-status/index.js +0 -1
- package/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits-status/use-shipping-methods-platform-limits-status.js +0 -35
- package/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits-status/use-shipping-methods-platform-limits-status.spec.js +0 -67
- package/src/features/platform-limits/shipping-methods/index.js +0 -3
- package/src/features/platform-limits/stores/hooks/index.js +0 -3
- package/src/features/platform-limits/stores/hooks/use-store-platform-limits/index.js +0 -1
- package/src/features/platform-limits/stores/hooks/use-store-platform-limits/use-store-platform-limits.js +0 -19
- package/src/features/platform-limits/stores/hooks/use-store-platform-limits-fetcher/index.js +0 -1
- package/src/features/platform-limits/stores/hooks/use-store-platform-limits-fetcher/use-store-platform-limits-fetcher.js +0 -28
- package/src/features/platform-limits/stores/hooks/use-store-platform-limits-fetcher/use-store-platform-limits-fetcher.spec.js +0 -51
- package/src/features/platform-limits/stores/hooks/use-store-platform-limits-status/index.js +0 -1
- package/src/features/platform-limits/stores/hooks/use-store-platform-limits-status/use-store-platform-limits-status.js +0 -35
- package/src/features/platform-limits/stores/hooks/use-store-platform-limits-status/use-store-platform-limits-status.spec.js +0 -61
- package/src/features/platform-limits/stores/index.js +0 -1
- package/src/features/platform-limits/tax-categories/components/index.js +0 -3
- package/src/features/platform-limits/tax-categories/components/platform-limits-tax-categories-notification/index.js +0 -1
- package/src/features/platform-limits/tax-categories/components/platform-limits-tax-categories-notification/platform-limits-tax-categories-notification.jsx +0 -42
- package/src/features/platform-limits/tax-categories/components/platform-limits-tax-categories-notification/platform-limits-tax-categories-notification.spec.js +0 -51
- package/src/features/platform-limits/tax-categories/components/platform-limits-tax-categories-status/index.js +0 -1
- package/src/features/platform-limits/tax-categories/components/platform-limits-tax-categories-status/messages.js +0 -9
- package/src/features/platform-limits/tax-categories/components/platform-limits-tax-categories-status/platform-limits-tax-categories-status.jsx +0 -29
- package/src/features/platform-limits/tax-categories/components/platform-limits-tax-categories-status/platform-limits-tax-categories-status.spec.js +0 -37
- package/src/features/platform-limits/tax-categories/components/platform-limits-tax-categories-tooltip/index.js +0 -1
- package/src/features/platform-limits/tax-categories/components/platform-limits-tax-categories-tooltip/messages.js +0 -9
- package/src/features/platform-limits/tax-categories/components/platform-limits-tax-categories-tooltip/platform-limits-tax-categories-tooltip.jsx +0 -18
- package/src/features/platform-limits/tax-categories/hocs/index.js +0 -2
- package/src/features/platform-limits/tax-categories/hocs/inject-tax-categories-platform-limits/index.js +0 -1
- package/src/features/platform-limits/tax-categories/hocs/inject-tax-categories-platform-limits/inject-tax-categories-platform-limits.jsx +0 -23
- package/src/features/platform-limits/tax-categories/hooks/index.js +0 -3
- package/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits/index.js +0 -1
- package/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits/use-tax-categories-platform-limits.js +0 -30
- package/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits-fetcher/index.js +0 -1
- package/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits-fetcher/use-tax-categories-platform-limits-fetcher.js +0 -18
- package/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits-fetcher/use-tax-categories-platform-limits-fetcher.spec.js +0 -48
- package/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits-status/index.js +0 -1
- package/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits-status/use-tax-categories-platform-limits-status.js +0 -35
- package/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits-status/use-tax-categories-platform-limits-status.spec.js +0 -66
- package/src/features/platform-limits/tax-categories/index.js +0 -3
- package/src/features/platform-limits/test-utils/index.js +0 -1
- package/src/features/platform-limits/zones/components/index.js +0 -3
- package/src/features/platform-limits/zones/components/platform-limits-zones-notification/index.js +0 -1
- package/src/features/platform-limits/zones/components/platform-limits-zones-notification/platform-limits-zones-notification.jsx +0 -40
- package/src/features/platform-limits/zones/components/platform-limits-zones-notification/platform-limits-zones-notification.spec.js +0 -51
- package/src/features/platform-limits/zones/components/platform-limits-zones-status/index.js +0 -1
- package/src/features/platform-limits/zones/components/platform-limits-zones-status/messages.js +0 -9
- package/src/features/platform-limits/zones/components/platform-limits-zones-status/platform-limits-zones-status.jsx +0 -32
- package/src/features/platform-limits/zones/components/platform-limits-zones-status/platform-limits-zones-status.spec.js +0 -37
- package/src/features/platform-limits/zones/components/platform-limits-zones-tooltip/index.js +0 -1
- package/src/features/platform-limits/zones/components/platform-limits-zones-tooltip/messages.js +0 -9
- package/src/features/platform-limits/zones/components/platform-limits-zones-tooltip/platform-limits-zones-tooltip.jsx +0 -17
- package/src/features/platform-limits/zones/hocs/index.js +0 -2
- package/src/features/platform-limits/zones/hocs/inject-zones-platform-limits/index.js +0 -1
- package/src/features/platform-limits/zones/hocs/inject-zones-platform-limits/inject-zones-platform-limits.jsx +0 -23
- package/src/features/platform-limits/zones/hooks/index.js +0 -3
- package/src/features/platform-limits/zones/hooks/use-zones-platform-limits/index.js +0 -1
- package/src/features/platform-limits/zones/hooks/use-zones-platform-limits/use-zones-platform-limits.js +0 -24
- package/src/features/platform-limits/zones/hooks/use-zones-platform-limits-fetcher/index.js +0 -1
- package/src/features/platform-limits/zones/hooks/use-zones-platform-limits-fetcher/use-zones-platform-limits-fetcher.js +0 -18
- package/src/features/platform-limits/zones/hooks/use-zones-platform-limits-fetcher/use-zones-platform-limits-fetcher.spec.js +0 -42
- package/src/features/platform-limits/zones/hooks/use-zones-platform-limits-status/index.js +0 -1
- package/src/features/platform-limits/zones/hooks/use-zones-platform-limits-status/use-zones-platform-limits-status.js +0 -35
- package/src/features/platform-limits/zones/hooks/use-zones-platform-limits-status/use-zones-platform-limits-status.spec.js +0 -61
- package/src/features/platform-limits/zones/index.js +0 -2
- package/src/fields/attribute-reference-label/attribute-reference-label.jsx +0 -38
- package/src/fields/attribute-reference-label/attribute-reference-label.module.css +0 -7
- package/src/fields/attribute-reference-label/index.js +0 -1
- package/src/fields/autocomplete/README.md +0 -66
- package/src/fields/autocomplete/autocomplete.jsx +0 -129
- package/src/fields/autocomplete/autocomplete.module.css +0 -3
- package/src/fields/autocomplete/autocomplete.spec.js +0 -144
- package/src/fields/autocomplete/dropdown-indicator.jsx +0 -14
- package/src/fields/autocomplete/dropdown-indicator.module.css +0 -5
- package/src/fields/autocomplete/index.js +0 -1
- package/src/fields/boolean-field/boolean-field.jsx +0 -82
- package/src/fields/boolean-field/boolean-field.spec.js +0 -80
- package/src/fields/boolean-field/index.js +0 -3
- package/src/fields/boolean-field/messages.js +0 -14
- package/src/fields/checkbox-field/checkbox-field.jsx +0 -50
- package/src/fields/checkbox-field/checkbox-field.module.css +0 -40
- package/src/fields/checkbox-field/checkbox-field.spec.js +0 -67
- package/src/fields/checkbox-field/index.js +0 -1
- package/src/fields/checkbox-field/radio-check-icons.png +0 -0
- package/src/fields/expandable-field/expandable-field.jsx +0 -93
- package/src/fields/expandable-field/expandable-field.module.css +0 -3
- package/src/fields/expandable-field/expandable-field.spec.js +0 -68
- package/src/fields/expandable-field/index.js +0 -1
- package/src/fields/expandable-field/messages.js +0 -14
- package/src/fields/label-range/index.js +0 -1
- package/src/fields/label-range/label-range.jsx +0 -28
- package/src/fields/label-range/label-range.module.css +0 -4
- package/src/fields/label-range/label-range.spec.js +0 -28
- package/src/fields/label-required/index.js +0 -2
- package/src/fields/label-required/label-required.jsx +0 -25
- package/src/fields/localized-field/index.js +0 -1
- package/src/fields/localized-field/localized-field.jsx +0 -320
- package/src/fields/localized-field/localized-field.module.css +0 -291
- package/src/fields/localized-field/localized-field.spec.js +0 -53
- package/src/fields/localized-input/index.js +0 -1
- package/src/fields/localized-input/localized-input.jsx +0 -20
- package/src/fields/localized-textarea/index.js +0 -1
- package/src/fields/localized-textarea/localized-textarea.jsx +0 -50
- package/src/fields/missing-value-field/__snapshots__/missing-value-field.spec.js.snap +0 -22
- package/src/fields/missing-value-field/index.js +0 -2
- package/src/fields/missing-value-field/messages.js +0 -9
- package/src/fields/missing-value-field/missing-value-field.jsx +0 -28
- package/src/fields/missing-value-field/missing-value-field.spec.js +0 -35
- package/src/fields/multi-value-search-input/index.js +0 -1
- package/src/fields/multi-value-search-input/messages.js +0 -14
- package/src/fields/multi-value-search-input/multi-value-search-input.jsx +0 -175
- package/src/fields/multi-value-search-input/multi-value-search-input.module.css +0 -45
- package/src/fields/numeric-format-input/index.js +0 -1
- package/src/fields/numeric-format-input/numeric-format-input.jsx +0 -184
- package/src/fields/numeric-format-input/numeric-format-input.module.css +0 -10
- package/src/fields/numeric-format-input/numeric-format-input.spec.js +0 -323
- package/src/fields/search-input/index.js +0 -1
- package/src/fields/search-input/messages.js +0 -14
- package/src/fields/search-input/search-input.jsx +0 -202
- package/src/fields/search-input/search-input.module.css +0 -75
- package/src/fields/search-input/search-input.spec.js +0 -116
- package/src/fields/throttled-field/index.js +0 -1
- package/src/fields/throttled-field/throttled-field.jsx +0 -189
- package/src/fields/throttled-field/throttled-field.module.css +0 -75
- package/src/fields/throttled-field/throttled-field.spec.js +0 -172
- package/src/hocs/index.js +0 -9
- package/src/hocs/inject-data-table-pagination-state/index.js +0 -1
- package/src/hocs/inject-data-table-pagination-state/inject-data-table-pagination-state.jsx +0 -41
- package/src/hocs/inject-modal-state/index.js +0 -1
- package/src/hocs/inject-modal-state/inject-modal-state.jsx +0 -31
- package/src/hocs/inject-modal-state/inject-modal-state.spec.js +0 -60
- package/src/hocs/inject-notifications/README.md +0 -43
- package/src/hocs/inject-notifications/index.js +0 -1
- package/src/hocs/inject-notifications/inject-notifications.jsx +0 -35
- package/src/hocs/inject-notifications/inject-notifications.spec.js +0 -55
- package/src/hocs/inject-storage/index.js +0 -1
- package/src/hocs/inject-storage/inject-storage.jsx +0 -45
- package/src/hocs/inject-storage/inject-storage.spec.js +0 -32
- package/src/hocs/inject-toggle-state/index.js +0 -1
- package/src/hocs/inject-toggle-state/inject-toggle-state.jsx +0 -31
- package/src/hocs/inject-toggle-state/inject-toggle-state.spec.js +0 -58
- package/src/hocs/utils/get-display-name/get-display-name.js +0 -13
- package/src/hocs/utils/get-display-name/get-display-name.spec.js +0 -52
- package/src/hocs/utils/get-display-name/index.js +0 -1
- package/src/hocs/utils/index.js +0 -2
- package/src/hocs/utils/set-display-name/index.js +0 -1
- package/src/hocs/utils/set-display-name/set-display-name.js +0 -8
- package/src/hocs/utils/set-display-name/set-display-name.spec.js +0 -9
- package/src/hocs/with-props/index.js +0 -1
- package/src/hocs/with-props/with-props.jsx +0 -21
- package/src/hocs/with-props/with-props.spec.js +0 -57
- package/src/hocs/with-redirect-to/index.js +0 -1
- package/src/hocs/with-redirect-to/with-redirect-to.jsx +0 -42
- package/src/hocs/with-redirect-to/with-redirect-to.spec.js +0 -77
- package/src/hocs/wrap-display-name/index.js +0 -1
- package/src/hocs/wrap-display-name/wrap-display-name.js +0 -6
- package/src/hocs/wrap-display-name/wrap-display-name.spec.js +0 -26
- package/src/hooks/index.js +0 -37
- package/src/hooks/use-debounced-promise-callback.js +0 -8
- package/src/hooks/use-did-form-validation-fail/index.js +0 -1
- package/src/hooks/use-did-form-validation-fail/use-did-form-validation-fail.js +0 -30
- package/src/hooks/use-did-form-validation-fail/use-did-form-validation-fail.spec.js +0 -48
- package/src/hooks/use-event-callback/index.js +0 -1
- package/src/hooks/use-event-callback/use-event-callback.js +0 -18
- package/src/hooks/use-format-localized-field-to-string/index.js +0 -1
- package/src/hooks/use-format-localized-field-to-string/use-format-localized-field-to-string.js +0 -43
- package/src/hooks/use-format-localized-field-to-string/use-format-localized-field-to-string.spec.js +0 -36
- package/src/hooks/use-is-sso-user/index.js +0 -1
- package/src/hooks/use-is-sso-user/use-is-sso-user.js +0 -13
- package/src/hooks/use-is-sso-user/use-is-sso-user.spec.js +0 -46
- package/src/hooks/use-localized-key-fallback/index.js +0 -1
- package/src/hooks/use-localized-key-fallback/messages.js +0 -9
- package/src/hooks/use-localized-key-fallback/use-localized-key-fallback.js +0 -31
- package/src/hooks/use-localized-key-fallback/use-localized-key-fallback.spec.js +0 -44
- package/src/hooks/use-pending-requests/index.js +0 -1
- package/src/hooks/use-pending-requests/use-pending-requests.js +0 -39
- package/src/hooks/use-pending-requests/use-pending-requests.spec.js +0 -10
- package/src/hooks/use-persisted-reminder/index.js +0 -1
- package/src/hooks/use-persisted-reminder/use-persisted-reminder.js +0 -88
- package/src/hooks/use-persisted-reminder/use-persisted-reminder.spec.js +0 -114
- package/src/hooks/use-persisted-table-configuration/index.js +0 -1
- package/src/hooks/use-persisted-table-configuration/use-persisted-table-configuration.js +0 -136
- package/src/hooks/use-persisted-table-configuration/use-persisted-table-configuration.spec.js +0 -170
- package/src/hooks/use-previous/index.js +0 -1
- package/src/hooks/use-previous/use-previous.js +0 -12
- package/src/hooks/use-previous/use-previous.spec.js +0 -25
- package/src/hooks/use-product-selections-fetcher/conversions.js +0 -15
- package/src/hooks/use-product-selections-fetcher/fetch-product-selections.ctp.graphql +0 -18
- package/src/hooks/use-product-selections-fetcher/index.js +0 -2
- package/src/hooks/use-product-selections-fetcher/mocks/handlers.js +0 -16
- package/src/hooks/use-product-selections-fetcher/mocks/index.js +0 -3
- package/src/hooks/use-product-selections-fetcher/use-product-selections-fetcher.js +0 -39
- package/src/hooks/use-product-selections-fetcher/use-product-selections-fetcher.spec.js +0 -71
- package/src/hooks/use-product-selections-total-fetcher/fetch-product-selections-total.ctp.graphql +0 -5
- package/src/hooks/use-product-selections-total-fetcher/index.js +0 -2
- package/src/hooks/use-product-selections-total-fetcher/mocks/handlers.js +0 -19
- package/src/hooks/use-product-selections-total-fetcher/mocks/index.js +0 -3
- package/src/hooks/use-product-selections-total-fetcher/use-product-selections-total-fetcher.js +0 -19
- package/src/hooks/use-role-based-channels-fetcher/index.js +0 -2
- package/src/hooks/use-role-based-channels-fetcher/role-based-channels-fetcher.ctp.graphql +0 -12
- package/src/hooks/use-role-based-channels-fetcher/test-utils.js +0 -37
- package/src/hooks/use-role-based-channels-fetcher/use-role-based-channels-fetcher.js +0 -44
- package/src/hooks/use-role-notification/index.js +0 -1
- package/src/hooks/use-role-notification/notification-text/index.js +0 -1
- package/src/hooks/use-role-notification/notification-text/messages.js +0 -21
- package/src/hooks/use-role-notification/notification-text/notification-text.jsx +0 -46
- package/src/hooks/use-role-notification/use-role-notification.jsx +0 -36
- package/src/hooks/use-role-notification/use-role-notification.spec.js +0 -46
- package/src/hooks/use-role-notification-effect/index.js +0 -1
- package/src/hooks/use-role-notification-effect/use-role-notification-effect.js +0 -56
- package/src/hooks/use-role-notification-effect/use-role-notification-effect.spec.js +0 -72
- package/src/hooks/use-storage/__mocks__/index.js +0 -26
- package/src/hooks/use-storage/index.js +0 -1
- package/src/hooks/use-storage/use-storage.js +0 -85
- package/src/hooks/use-storage/use-storage.spec.js +0 -237
- package/src/hooks/use-store-keys-in-data-fence/index.js +0 -1
- package/src/hooks/use-store-keys-in-data-fence/use-store-keys-in-data-fence.js +0 -38
- package/src/hooks/use-store-keys-in-data-fence/use-store-keys-in-data-fence.spec.js +0 -141
- package/src/hooks/use-stores-list-fetcher/index.js +0 -2
- package/src/hooks/use-stores-list-fetcher/mocks/handlers.js +0 -76
- package/src/hooks/use-stores-list-fetcher/mocks/index.js +0 -3
- package/src/hooks/use-stores-list-fetcher/stores-list-query.ctp.graphql +0 -52
- package/src/hooks/use-stores-list-fetcher/use-stores-list-fetcher.js +0 -71
- package/src/hooks/use-stores-list-fetcher/use-stores-list-fetcher.spec.js +0 -234
- package/src/hooks/use-tracking/index.js +0 -1
- package/src/hooks/use-tracking/use-tracking.js +0 -4
- package/src/hooks/use-tracking/use-tracking.spec.js +0 -29
- package/src/hooks/use-tracking-shared/__mocks__/index.js +0 -16
- package/src/hooks/use-tracking-shared/index.js +0 -1
- package/src/hooks/use-tracking-shared/use-tracking-shared.js +0 -58
- package/src/index.js +0 -489
- package/src/internal-index.js +0 -143
- package/src/utils/active-modals/active-modals.js +0 -7
- package/src/utils/active-modals/active-modals.spec.js +0 -27
- package/src/utils/active-modals/index.js +0 -1
- package/src/utils/ariaset/ariaset.js +0 -11
- package/src/utils/ariaset/ariaset.spec.js +0 -20
- package/src/utils/ariaset/index.js +0 -1
- package/src/utils/array-helpers/array-helpers.js +0 -2
- package/src/utils/array-helpers/index.js +0 -1
- package/src/utils/attributes/attributes.js +0 -38
- package/src/utils/attributes/attributes.spec.js +0 -180
- package/src/utils/attributes/index.js +0 -1
- package/src/utils/build-search-query/build-search-query.js +0 -27
- package/src/utils/build-search-query/build-search-query.spec.js +0 -129
- package/src/utils/build-search-query/index.js +0 -1
- package/src/utils/bulk-notifications/get-bulk-notification.js +0 -34
- package/src/utils/bulk-notifications/get-bulk-notification.spec.js +0 -142
- package/src/utils/bulk-notifications/index.js +0 -4
- package/src/utils/business-roles/business-roles.js +0 -24
- package/src/utils/business-roles/index.js +0 -4
- package/src/utils/business-roles/messages.js +0 -95
- package/src/utils/capitalize-first/capitalize-first.js +0 -3
- package/src/utils/capitalize-first/capitalize-first.spec.js +0 -7
- package/src/utils/capitalize-first/index.js +0 -1
- package/src/utils/categories/categories.js +0 -56
- package/src/utils/categories/categories.spec.js +0 -122
- package/src/utils/categories/index.js +0 -1
- package/src/utils/clone/clone.js +0 -3
- package/src/utils/clone/clone.spec.js +0 -23
- package/src/utils/clone/index.js +0 -1
- package/src/utils/coerce-to-integer/coerce-to-integer.js +0 -3
- package/src/utils/coerce-to-integer/coerce-to-integer.spec.js +0 -49
- package/src/utils/coerce-to-integer/index.js +0 -1
- package/src/utils/connector/connector.js +0 -30
- package/src/utils/connector/connector.spec.js +0 -174
- package/src/utils/connector/index.js +0 -1
- package/src/utils/constants.js +0 -43
- package/src/utils/conversions/sort-array.js +0 -6
- package/src/utils/create-next-sort-definition/create-next-sort-definition.js +0 -46
- package/src/utils/create-next-sort-definition/create-next-sort-definition.spec.js +0 -121
- package/src/utils/create-next-sort-definition/index.js +0 -1
- package/src/utils/create-reducer/create-reducer.js +0 -21
- package/src/utils/create-reducer/create-reducer.spec.js +0 -45
- package/src/utils/create-reducer/index.js +0 -1
- package/src/utils/create-resource-reducer/create-resource-reducer.js +0 -53
- package/src/utils/create-resource-reducer/create-resource-reducer.spec.js +0 -151
- package/src/utils/create-resource-reducer/index.js +0 -1
- package/src/utils/customer/format-customer-address/format-customer-address.js +0 -12
- package/src/utils/customer/format-customer-address/format-customer-address.spec.js +0 -43
- package/src/utils/customer/format-customer-address/index.js +0 -1
- package/src/utils/customer/format-customer-name/format-customer-name.js +0 -9
- package/src/utils/customer/format-customer-name/format-customer-name.spec.js +0 -44
- package/src/utils/customer/format-customer-name/index.js +0 -1
- package/src/utils/customer/format-customer-title/format-customer-title.js +0 -5
- package/src/utils/customer/format-customer-title/format-customer-title.spec.js +0 -23
- package/src/utils/customer/format-customer-title/index.js +0 -1
- package/src/utils/dataset/dataset.js +0 -34
- package/src/utils/dataset/dataset.spec.js +0 -70
- package/src/utils/dataset/index.js +0 -1
- package/src/utils/encodings/encodings.js +0 -24
- package/src/utils/encodings/encodings.spec.js +0 -21
- package/src/utils/encodings/index.js +0 -1
- package/src/utils/filters/README.md +0 -56
- package/src/utils/filters/custom-fields/custom-fields.js +0 -56
- package/src/utils/filters/custom-fields/custom-fields.spec.js +0 -328
- package/src/utils/filters/custom-fields/index.js +0 -1
- package/src/utils/filters/date/date.js +0 -114
- package/src/utils/filters/date/date.spec.js +0 -138
- package/src/utils/filters/date/index.js +0 -1
- package/src/utils/filters/graphql/category-level/category-level.js +0 -17
- package/src/utils/filters/graphql/category-level/index.js +0 -1
- package/src/utils/filters/graphql/date/date.js +0 -58
- package/src/utils/filters/graphql/date/date.spec.js +0 -122
- package/src/utils/filters/graphql/date/index.js +0 -1
- package/src/utils/filters/graphql/graphql.js +0 -42
- package/src/utils/filters/graphql/graphql.spec.js +0 -130
- package/src/utils/filters/graphql/index.js +0 -1
- package/src/utils/filters/graphql/missing/index.js +0 -1
- package/src/utils/filters/graphql/missing/missing.js +0 -7
- package/src/utils/filters/graphql/missing/missing.spec.js +0 -17
- package/src/utils/filters/graphql/missing-locale/index.js +0 -1
- package/src/utils/filters/graphql/missing-locale/missing-locale.js +0 -8
- package/src/utils/filters/graphql/missing-locale/missing-locale.spec.js +0 -17
- package/src/utils/filters/graphql/number/index.js +0 -1
- package/src/utils/filters/graphql/number/number.js +0 -37
- package/src/utils/filters/graphql/number/number.spec.js +0 -65
- package/src/utils/filters/graphql/reference/index.js +0 -1
- package/src/utils/filters/graphql/reference/reference.js +0 -26
- package/src/utils/filters/graphql/reference/reference.spec.js +0 -20
- package/src/utils/filters/graphql/text/index.js +0 -1
- package/src/utils/filters/graphql/text/text.js +0 -8
- package/src/utils/filters/graphql/text/text.spec.js +0 -35
- package/src/utils/filters/is-date/index.js +0 -1
- package/src/utils/filters/is-date/is-date.js +0 -17
- package/src/utils/filters/is-date/is-date.spec.js +0 -73
- package/src/utils/filters/is-empty/index.js +0 -1
- package/src/utils/filters/is-empty/is-empty.js +0 -9
- package/src/utils/filters/is-empty/is-empty.spec.js +0 -20
- package/src/utils/filters/is-empty/range/index.js +0 -1
- package/src/utils/filters/is-empty/range/range.js +0 -8
- package/src/utils/filters/is-empty/range/range.spec.js +0 -22
- package/src/utils/filters/is-empty/single/index.js +0 -1
- package/src/utils/filters/is-empty/single/single.js +0 -5
- package/src/utils/filters/is-empty/single/single.spec.js +0 -17
- package/src/utils/filters/localized-string/index.js +0 -1
- package/src/utils/filters/localized-string/localized-string.js +0 -4
- package/src/utils/filters/localized-string/localized-string.spec.js +0 -26
- package/src/utils/filters/money/index.js +0 -1
- package/src/utils/filters/money/money.js +0 -36
- package/src/utils/filters/money/money.spec.js +0 -55
- package/src/utils/filters/time/index.js +0 -1
- package/src/utils/filters/time/time.js +0 -65
- package/src/utils/filters/time/time.spec.js +0 -96
- package/src/utils/filters/validation/custom-field/custom-field.js +0 -70
- package/src/utils/filters/validation/custom-field/custom-field.spec.js +0 -237
- package/src/utils/filters/validation/custom-field/index.js +0 -1
- package/src/utils/filters/validation/date/date.js +0 -42
- package/src/utils/filters/validation/date/date.spec.js +0 -60
- package/src/utils/filters/validation/date/index.js +0 -1
- package/src/utils/filters/validation/enum/enum.js +0 -16
- package/src/utils/filters/validation/enum/enum.spec.js +0 -44
- package/src/utils/filters/validation/enum/index.js +0 -1
- package/src/utils/filters/validation/number/index.js +0 -1
- package/src/utils/filters/validation/number/number.js +0 -52
- package/src/utils/filters/validation/number/number.spec.js +0 -39
- package/src/utils/filters/validation/text/index.js +0 -1
- package/src/utils/filters/validation/text/text.js +0 -9
- package/src/utils/filters/validation/text/text.spec.js +0 -20
- package/src/utils/formats/custom-field/custom-field.js +0 -66
- package/src/utils/formats/custom-field/custom-field.spec.js +0 -91
- package/src/utils/formats/custom-field/index.js +0 -1
- package/src/utils/formats/date/__mocks__/index.js +0 -2
- package/src/utils/formats/date/date.js +0 -58
- package/src/utils/formats/date/date.spec.js +0 -241
- package/src/utils/formats/date/index.js +0 -1
- package/src/utils/formats/discount/discount.js +0 -12
- package/src/utils/formats/discount/discount.spec.js +0 -75
- package/src/utils/formats/discount/index.js +0 -1
- package/src/utils/formats/index.js +0 -4
- package/src/utils/formats/money/index.js +0 -6
- package/src/utils/formats/money/money.js +0 -50
- package/src/utils/formats/money/money.spec.js +0 -117
- package/src/utils/formats/percentage/index.js +0 -1
- package/src/utils/formats/percentage/percentage.js +0 -7
- package/src/utils/formats/percentage/percentage.spec.js +0 -18
- package/src/utils/formats/product-attribute/index.js +0 -1
- package/src/utils/formats/product-attribute/messages.js +0 -14
- package/src/utils/formats/product-attribute/product-attribute.js +0 -127
- package/src/utils/formats/product-attribute/product-attribute.spec.js +0 -128
- package/src/utils/get-currency-code-data/currency-code-data.js +0 -1247
- package/src/utils/get-currency-code-data/get-currency-code-data.js +0 -53
- package/src/utils/get-currency-code-data/index.js +0 -12
- package/src/utils/get-prefix-search-bounds/get-prefix-search-bounds.js +0 -26
- package/src/utils/get-prefix-search-bounds/get-prefix-search-bounds.spec.js +0 -14
- package/src/utils/get-prefix-search-bounds/index.js +0 -1
- package/src/utils/graphql/__snapshots__/graphql.spec.js.snap +0 -45
- package/src/utils/graphql/fragments/address.ctp.graphql +0 -39
- package/src/utils/graphql/fragments/custom-fields.ctp.graphql +0 -67
- package/src/utils/graphql/fragments/store-basic-info.ctp.graphql +0 -11
- package/src/utils/graphql/graphql.js +0 -579
- package/src/utils/graphql/graphql.spec.js +0 -1129
- package/src/utils/graphql/index.js +0 -1
- package/src/utils/has-error-code/has-error-code.js +0 -15
- package/src/utils/has-error-code/has-error-code.spec.js +0 -56
- package/src/utils/has-error-code/has-invalid-input-error.js +0 -7
- package/src/utils/has-error-code/has-semantic-error.js +0 -7
- package/src/utils/has-error-code/has-semantic-error.spec.js +0 -56
- package/src/utils/has-error-code/index.js +0 -3
- package/src/utils/is-uuid/index.js +0 -1
- package/src/utils/is-uuid/is-uuid.js +0 -6
- package/src/utils/is-uuid/is-uuid.spec.js +0 -25
- package/src/utils/minusify/index.js +0 -1
- package/src/utils/minusify/minusify.js +0 -4
- package/src/utils/minusify/minusify.spec.js +0 -9
- package/src/utils/numbers/index.js +0 -1
- package/src/utils/numbers/numbers.js +0 -32
- package/src/utils/numbers/numbers.spec.js +0 -57
- package/src/utils/omit-deep/index.js +0 -1
- package/src/utils/omit-deep/omit-deep.js +0 -20
- package/src/utils/pim-query-clauses.js +0 -43
- package/src/utils/prices/index.js +0 -1
- package/src/utils/prices/prices.js +0 -79
- package/src/utils/prices/prices.spec.js +0 -265
- package/src/utils/product-selections/convert-product-selection-from-graphql.js +0 -80
- package/src/utils/product-selections/index.js +0 -1
- package/src/utils/product-types/index.js +0 -1
- package/src/utils/product-types/product-types.js +0 -122
- package/src/utils/product-types/product-types.spec.js +0 -328
- package/src/utils/products/index.js +0 -1
- package/src/utils/products/messages.js +0 -16
- package/src/utils/products/products.jsx +0 -258
- package/src/utils/products/products.spec.js +0 -331
- package/src/utils/query-string/index.js +0 -1
- package/src/utils/query-string/query-string.js +0 -37
- package/src/utils/query-string/query-string.spec.js +0 -56
- package/src/utils/request-cache/index.js +0 -2
- package/src/utils/request-cache/request-cache.js +0 -52
- package/src/utils/request-cache/request-cache.spec.js +0 -118
- package/src/utils/shallow-equal/index.js +0 -1
- package/src/utils/shallow-equal/shallow-equal.js +0 -19
- package/src/utils/shallow-equal/shallow-equal.spec.js +0 -45
- package/src/utils/should-update-attribute-input/index.js +0 -1
- package/src/utils/should-update-attribute-input/should-update-attribute-input.js +0 -43
- package/src/utils/should-update-attribute-input/should-update-attribute-input.spec.js +0 -96
- package/src/utils/slugify/index.js +0 -1
- package/src/utils/slugify/slugify.js +0 -10
- package/src/utils/slugify/slugify.spec.js +0 -11
- package/src/utils/swap-array-items/index.js +0 -2
- package/src/utils/swap-array-items/swap-array-items.js +0 -13
- package/src/utils/swap-array-items/swap-array-items.spec.js +0 -52
- package/src/utils/text-fallback/text-fallback.js +0 -6
- package/src/utils/time-zones/index.js +0 -5
- package/src/utils/time-zones/time-zone-utils.js +0 -34
- package/src/utils/time-zones/time-zone-utils.spec.js +0 -47
- package/src/utils/track-menu-click/index.js +0 -1
- package/src/utils/track-menu-click/track-menu-click.js +0 -28
- package/src/utils/track-menu-click/track-menu-click.spec.js +0 -66
- package/src/utils/transform-to-proper-noun-case/index.js +0 -1
- package/src/utils/transform-to-proper-noun-case/transform-to-proper-noun-case.js +0 -10
- package/src/utils/transform-to-proper-noun-case/transform-to-proper-noun-case.spec.js +0 -23
- package/src/utils/truncate/index.js +0 -1
- package/src/utils/truncate/truncate.js +0 -9
- package/src/utils/truncate/truncate.spec.js +0 -23
- package/src/utils/type-definitions/index.js +0 -1
- package/src/utils/type-definitions/type-definitions.js +0 -118
- package/src/utils/type-definitions/type-definitions.spec.js +0 -547
- package/src/utils/update-status-in-list/index.js +0 -1
- package/src/utils/update-status-in-list/update-status-in-list.js +0 -16
- package/src/utils/validation/get-indexes-of-invalid-values.js +0 -16
- package/src/utils/validation/get-indexes-of-invalid-values.spec.js +0 -31
- package/src/utils/validation/index.js +0 -3
- package/src/utils/validation/validation.js +0 -169
- package/src/utils/validation/validation.spec.js +0 -99
- package/src/utils/validation/without-empty-errors-by-field.js +0 -5
- package/src/utils/validation/without-empty-errors-by-field.spec.js +0 -74
- package/src/utils/with-pending-requests/index.js +0 -1
- package/src/utils/with-pending-requests/with-pending-requests.jsx +0 -21
- package/src/utils/with-pending-requests/with-pending-requests.spec.js +0 -62
|
@@ -1,405 +0,0 @@
|
|
|
1
|
-
import * as Channel from '@commercetools-test-data/channel';
|
|
2
|
-
import { graphql } from 'msw';
|
|
3
|
-
import { setupServer } from 'msw/node';
|
|
4
|
-
import { GtmContext } from '@commercetools-frontend/application-shell';
|
|
5
|
-
import times from 'lodash.times';
|
|
6
|
-
import {
|
|
7
|
-
renderAppWithRedux,
|
|
8
|
-
fireEvent,
|
|
9
|
-
screen,
|
|
10
|
-
waitFor,
|
|
11
|
-
} from '@commercetools-frontend/application-shell/test-utils';
|
|
12
|
-
import { buildGraphqlList } from '@commercetools-test-data/core';
|
|
13
|
-
import { LocalizedString } from '@commercetools-test-data/commons';
|
|
14
|
-
import { selectInputUtils } from '@commercetools-local/test-utils';
|
|
15
|
-
import PropTypes from 'prop-types';
|
|
16
|
-
import ChannelPickerInput from './channel-picker-input';
|
|
17
|
-
|
|
18
|
-
const track = jest.fn();
|
|
19
|
-
|
|
20
|
-
const createTestProps = (custom) => ({
|
|
21
|
-
name: 'channel-picker-input',
|
|
22
|
-
isClearable: true,
|
|
23
|
-
onChange: jest.fn(),
|
|
24
|
-
onError: jest.fn(),
|
|
25
|
-
...custom,
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
const render = (ui, renderOptions) => {
|
|
29
|
-
const Wrapper = ({ children }) => (
|
|
30
|
-
<GtmContext.Provider value={{ track }}>
|
|
31
|
-
<>
|
|
32
|
-
<label htmlFor="channel-picker-input">Channel picker</label>
|
|
33
|
-
{children}
|
|
34
|
-
</>
|
|
35
|
-
</GtmContext.Provider>
|
|
36
|
-
);
|
|
37
|
-
Wrapper.propTypes = {
|
|
38
|
-
children: PropTypes.element.isRequired,
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
renderAppWithRedux(ui, {
|
|
42
|
-
wrapper: Wrapper,
|
|
43
|
-
...renderOptions,
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
const noNameChannel = Channel.random()
|
|
48
|
-
.name(LocalizedString.presets.empty())
|
|
49
|
-
.key('');
|
|
50
|
-
const foodStoreChannel = Channel.presets.foodStore();
|
|
51
|
-
const clothesStoreChannel = Channel.presets.clothesStore();
|
|
52
|
-
const builtFoodStoreChannel = foodStoreChannel.buildGraphql();
|
|
53
|
-
const builtClothesStoreChannel = clothesStoreChannel.buildGraphql();
|
|
54
|
-
const builtNoNameChannel = noNameChannel.buildGraphql();
|
|
55
|
-
|
|
56
|
-
let queriesSent;
|
|
57
|
-
|
|
58
|
-
const mockServer = setupServer(
|
|
59
|
-
graphql.query('GetChannelQuery', (req, res, ctx) => {
|
|
60
|
-
const channelId = req.body.variables.id;
|
|
61
|
-
const channel = do {
|
|
62
|
-
if (channelId === builtFoodStoreChannel.id) builtFoodStoreChannel;
|
|
63
|
-
else if (channelId === builtClothesStoreChannel.id)
|
|
64
|
-
builtClothesStoreChannel;
|
|
65
|
-
else null;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
return res(
|
|
69
|
-
ctx.data({
|
|
70
|
-
channel,
|
|
71
|
-
})
|
|
72
|
-
);
|
|
73
|
-
}),
|
|
74
|
-
|
|
75
|
-
graphql.query('GetChannelsQuery', (req, res, ctx) => {
|
|
76
|
-
queriesSent.GetChannelsQuery += 1;
|
|
77
|
-
|
|
78
|
-
const whereQuery = req.body.variables.where || '';
|
|
79
|
-
|
|
80
|
-
const foundChannels = do {
|
|
81
|
-
if (whereQuery.includes('name(en >= "Missing')) [];
|
|
82
|
-
else if (whereQuery.includes('name(en >= "Food"')) [foodStoreChannel];
|
|
83
|
-
else if (whereQuery.includes('key >= "food-store-key'))
|
|
84
|
-
[foodStoreChannel];
|
|
85
|
-
else if (whereQuery.includes(`id = "${builtFoodStoreChannel.id}`))
|
|
86
|
-
[foodStoreChannel];
|
|
87
|
-
else if (whereQuery.includes('name(de >= "Lebens')) [foodStoreChannel];
|
|
88
|
-
else if (whereQuery.includes('name(en >= "Clothes'))
|
|
89
|
-
[clothesStoreChannel];
|
|
90
|
-
else if (whereQuery.includes(`id = "${builtNoNameChannel.id}`))
|
|
91
|
-
[noNameChannel];
|
|
92
|
-
else [foodStoreChannel, clothesStoreChannel];
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
return res(
|
|
96
|
-
ctx.data({
|
|
97
|
-
channels: buildGraphqlList(foundChannels, {
|
|
98
|
-
name: 'Channel',
|
|
99
|
-
total: foundChannels.length,
|
|
100
|
-
}),
|
|
101
|
-
})
|
|
102
|
-
);
|
|
103
|
-
})
|
|
104
|
-
);
|
|
105
|
-
|
|
106
|
-
beforeEach(() => {
|
|
107
|
-
queriesSent = {
|
|
108
|
-
GetChannelsQuery: 0,
|
|
109
|
-
};
|
|
110
|
-
console.config.addSilencedWarning(
|
|
111
|
-
/Can't perform a React state update on an unmounted component/
|
|
112
|
-
);
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
afterEach(() => {
|
|
116
|
-
mockServer.resetHandlers();
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
beforeAll(() => {
|
|
120
|
-
// This test somehow causes this: https://github.com/andyearnshaw/Intl.js/issues/256
|
|
121
|
-
// That's a work-around:
|
|
122
|
-
|
|
123
|
-
mockServer.listen({
|
|
124
|
-
onUnhandledRequest: 'error',
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
|
|
128
|
-
afterAll(() => mockServer.close());
|
|
129
|
-
|
|
130
|
-
describe('searching options', () => {
|
|
131
|
-
it('should load initial options without typing anything', async () => {
|
|
132
|
-
const props = createTestProps();
|
|
133
|
-
render(<ChannelPickerInput {...props} />);
|
|
134
|
-
|
|
135
|
-
const input = await screen.findByLabelText('Channel picker');
|
|
136
|
-
fireEvent.focus(input);
|
|
137
|
-
fireEvent.keyDown(input, { key: 'ArrowDown' });
|
|
138
|
-
|
|
139
|
-
await screen.findByText('Food Store');
|
|
140
|
-
await screen.findByText('Clothes Store');
|
|
141
|
-
});
|
|
142
|
-
|
|
143
|
-
it('should debounce the search', async () => {
|
|
144
|
-
const props = createTestProps();
|
|
145
|
-
render(<ChannelPickerInput {...props} />);
|
|
146
|
-
|
|
147
|
-
const input = await screen.findByLabelText('Channel picker');
|
|
148
|
-
fireEvent.focus(input);
|
|
149
|
-
fireEvent.keyDown(input, { key: 'ArrowDown' });
|
|
150
|
-
|
|
151
|
-
fireEvent.change(input, { target: { value: 'F' } });
|
|
152
|
-
fireEvent.change(input, { target: { value: 'o' } });
|
|
153
|
-
fireEvent.change(input, { target: { value: 'o' } });
|
|
154
|
-
fireEvent.change(input, { target: { value: 'd' } });
|
|
155
|
-
|
|
156
|
-
await waitFor(() => expect(queriesSent.GetChannelsQuery).toBe(1));
|
|
157
|
-
});
|
|
158
|
-
|
|
159
|
-
it('should show both name and key of loaded channels', async () => {
|
|
160
|
-
const props = createTestProps();
|
|
161
|
-
render(<ChannelPickerInput {...props} />);
|
|
162
|
-
|
|
163
|
-
const input = await screen.findByLabelText('Channel picker');
|
|
164
|
-
fireEvent.focus(input);
|
|
165
|
-
fireEvent.keyDown(input, { key: 'ArrowDown' });
|
|
166
|
-
|
|
167
|
-
await screen.findByText('Food Store');
|
|
168
|
-
await screen.findByText(/Key: food-store-key/);
|
|
169
|
-
});
|
|
170
|
-
|
|
171
|
-
it('should show channel name in selected data locale', async () => {
|
|
172
|
-
const props = createTestProps();
|
|
173
|
-
render(<ChannelPickerInput {...props} />, {
|
|
174
|
-
dataLocale: 'de',
|
|
175
|
-
});
|
|
176
|
-
|
|
177
|
-
const input = await screen.findByLabelText('Channel picker');
|
|
178
|
-
fireEvent.focus(input);
|
|
179
|
-
fireEvent.keyDown(input, { key: 'ArrowDown' });
|
|
180
|
-
fireEvent.change(input, { target: { value: 'Lebens' } });
|
|
181
|
-
|
|
182
|
-
await screen.findByText('Lebensmittelgeschäft');
|
|
183
|
-
});
|
|
184
|
-
|
|
185
|
-
it('should show a message when no channels are found', async () => {
|
|
186
|
-
const props = createTestProps();
|
|
187
|
-
render(<ChannelPickerInput {...props} />);
|
|
188
|
-
|
|
189
|
-
const input = await screen.findByLabelText('Channel picker');
|
|
190
|
-
fireEvent.focus(input);
|
|
191
|
-
fireEvent.keyDown(input, { key: 'ArrowDown' });
|
|
192
|
-
fireEvent.change(input, { target: { value: 'Missing' } });
|
|
193
|
-
|
|
194
|
-
await screen.findByText(/there are no channels that match your search/i);
|
|
195
|
-
});
|
|
196
|
-
|
|
197
|
-
it('should render a loading spinner when initial option is being loaded', () => {
|
|
198
|
-
const props = createTestProps({
|
|
199
|
-
value: builtFoodStoreChannel.id,
|
|
200
|
-
});
|
|
201
|
-
render(<ChannelPickerInput {...props} />);
|
|
202
|
-
expect(screen.getByTestId('centered-loading-spinner')).toBeInTheDocument();
|
|
203
|
-
});
|
|
204
|
-
|
|
205
|
-
it('should render the error message on loading error', async () => {
|
|
206
|
-
mockServer.use(
|
|
207
|
-
graphql.query('GetChannelQuery', (req, res, ctx) => res(ctx.status(500)))
|
|
208
|
-
);
|
|
209
|
-
|
|
210
|
-
const props = createTestProps({
|
|
211
|
-
value: builtFoodStoreChannel.id,
|
|
212
|
-
showLoadingErrorMessage: true,
|
|
213
|
-
});
|
|
214
|
-
render(<ChannelPickerInput {...props} />);
|
|
215
|
-
|
|
216
|
-
await screen.findByText(
|
|
217
|
-
'Unable to load resource. Check the connection and try again.'
|
|
218
|
-
);
|
|
219
|
-
});
|
|
220
|
-
|
|
221
|
-
it('should fallback to "- -" when channel has no name or no key', async () => {
|
|
222
|
-
const props = createTestProps();
|
|
223
|
-
render(<ChannelPickerInput {...props} />, {
|
|
224
|
-
dataLocale: 'de',
|
|
225
|
-
});
|
|
226
|
-
|
|
227
|
-
const input = await screen.findByLabelText('Channel picker');
|
|
228
|
-
fireEvent.focus(input);
|
|
229
|
-
fireEvent.keyDown(input, { key: 'ArrowDown' });
|
|
230
|
-
fireEvent.change(input, { target: { value: builtNoNameChannel.id } });
|
|
231
|
-
|
|
232
|
-
await screen.findByText(/key: - -/i);
|
|
233
|
-
await screen.findByText('- -');
|
|
234
|
-
});
|
|
235
|
-
|
|
236
|
-
it('should call onError when network error', async () => {
|
|
237
|
-
mockServer.use(
|
|
238
|
-
graphql.query('GetChannelsQuery', (req, res, ctx) =>
|
|
239
|
-
res.once(ctx.status(500))
|
|
240
|
-
)
|
|
241
|
-
);
|
|
242
|
-
|
|
243
|
-
const props = createTestProps();
|
|
244
|
-
render(<ChannelPickerInput {...props} />);
|
|
245
|
-
|
|
246
|
-
const input = await screen.findByLabelText('Channel picker');
|
|
247
|
-
fireEvent.focus(input);
|
|
248
|
-
fireEvent.keyDown(input, { key: 'ArrowDown' });
|
|
249
|
-
|
|
250
|
-
await waitFor(() => expect(props.onError).toHaveBeenCalled());
|
|
251
|
-
});
|
|
252
|
-
|
|
253
|
-
it('should not show the message when there are no more than 60 channels', async () => {
|
|
254
|
-
const props = createTestProps();
|
|
255
|
-
render(<ChannelPickerInput {...props} />);
|
|
256
|
-
|
|
257
|
-
const input = await screen.findByLabelText('Channel picker');
|
|
258
|
-
fireEvent.focus(input);
|
|
259
|
-
fireEvent.keyDown(input, { key: 'ArrowDown' });
|
|
260
|
-
|
|
261
|
-
await screen.findByText('Food Store');
|
|
262
|
-
|
|
263
|
-
expect(
|
|
264
|
-
screen.queryByText(/start typing above to load more/i)
|
|
265
|
-
).not.toBeInTheDocument();
|
|
266
|
-
});
|
|
267
|
-
|
|
268
|
-
it('should show the message when there are more than 60 channels', async () => {
|
|
269
|
-
mockServer.use(
|
|
270
|
-
graphql.query('GetChannelsQuery', (req, res, ctx) =>
|
|
271
|
-
res.once(
|
|
272
|
-
ctx.data({
|
|
273
|
-
channels: buildGraphqlList(times(60, Channel.random), {
|
|
274
|
-
name: 'Channel',
|
|
275
|
-
total: 100,
|
|
276
|
-
}),
|
|
277
|
-
})
|
|
278
|
-
)
|
|
279
|
-
)
|
|
280
|
-
);
|
|
281
|
-
const props = createTestProps();
|
|
282
|
-
render(<ChannelPickerInput {...props} />);
|
|
283
|
-
|
|
284
|
-
const input = await screen.findByLabelText('Channel picker');
|
|
285
|
-
fireEvent.focus(input);
|
|
286
|
-
fireEvent.keyDown(input, { key: 'ArrowDown' });
|
|
287
|
-
|
|
288
|
-
await waitFor(() => screen.findByText(/start typing above to load more/i));
|
|
289
|
-
});
|
|
290
|
-
|
|
291
|
-
it('should not show the message if there is an input value regardless of the number of channels', async () => {
|
|
292
|
-
mockServer.use(
|
|
293
|
-
graphql.query('GetChannelsQuery', (req, res, ctx) =>
|
|
294
|
-
res.once(
|
|
295
|
-
ctx.data({
|
|
296
|
-
channels: buildGraphqlList([foodStoreChannel], {
|
|
297
|
-
name: 'Channel',
|
|
298
|
-
total: 100,
|
|
299
|
-
}),
|
|
300
|
-
})
|
|
301
|
-
)
|
|
302
|
-
)
|
|
303
|
-
);
|
|
304
|
-
|
|
305
|
-
const props = createTestProps();
|
|
306
|
-
render(<ChannelPickerInput {...props} />);
|
|
307
|
-
|
|
308
|
-
const input = await screen.findByLabelText('Channel picker');
|
|
309
|
-
fireEvent.focus(input);
|
|
310
|
-
fireEvent.keyDown(input, { key: 'ArrowDown' });
|
|
311
|
-
fireEvent.change(input, { target: { value: 'Food' } });
|
|
312
|
-
|
|
313
|
-
await screen.findByText('Food Store');
|
|
314
|
-
|
|
315
|
-
expect(
|
|
316
|
-
screen.queryByText(/start typing above to load more/i)
|
|
317
|
-
).not.toBeInTheDocument();
|
|
318
|
-
});
|
|
319
|
-
});
|
|
320
|
-
|
|
321
|
-
describe('selecting options', () => {
|
|
322
|
-
it('should select option', async () => {
|
|
323
|
-
const props = createTestProps();
|
|
324
|
-
render(<ChannelPickerInput {...props} />);
|
|
325
|
-
|
|
326
|
-
const input = await screen.findByLabelText('Channel picker');
|
|
327
|
-
fireEvent.focus(input);
|
|
328
|
-
fireEvent.keyDown(input, { key: 'ArrowDown' });
|
|
329
|
-
fireEvent.change(input, { target: { value: 'Food' } });
|
|
330
|
-
|
|
331
|
-
await screen.findByText('Food Store');
|
|
332
|
-
|
|
333
|
-
selectInputUtils.selectFirstOption(input);
|
|
334
|
-
|
|
335
|
-
expect(props.onChange).toHaveBeenCalledWith({
|
|
336
|
-
persist: expect.any(Function),
|
|
337
|
-
target: {
|
|
338
|
-
id: 'channel-picker-input',
|
|
339
|
-
name: 'channel-picker-input',
|
|
340
|
-
value: builtFoodStoreChannel.id,
|
|
341
|
-
},
|
|
342
|
-
});
|
|
343
|
-
});
|
|
344
|
-
|
|
345
|
-
it('should track options selections', async () => {
|
|
346
|
-
const props = createTestProps();
|
|
347
|
-
render(<ChannelPickerInput {...props} />);
|
|
348
|
-
|
|
349
|
-
const input = await screen.findByLabelText('Channel picker');
|
|
350
|
-
fireEvent.focus(input);
|
|
351
|
-
fireEvent.keyDown(input, { key: 'ArrowDown' });
|
|
352
|
-
|
|
353
|
-
await screen.findByText('Food Store');
|
|
354
|
-
selectInputUtils.selectFirstOption(input);
|
|
355
|
-
|
|
356
|
-
expect(track).toHaveBeenCalledWith('select', 'ReferenceChannel', 'noEntry');
|
|
357
|
-
|
|
358
|
-
// should track name selection
|
|
359
|
-
fireEvent.change(input, { target: { value: 'Food' } });
|
|
360
|
-
|
|
361
|
-
await screen.findByText('Food Store');
|
|
362
|
-
selectInputUtils.selectFirstOption(input);
|
|
363
|
-
|
|
364
|
-
expect(track).toHaveBeenCalledWith('select', 'ReferenceChannel', 'name');
|
|
365
|
-
|
|
366
|
-
// should track key selection
|
|
367
|
-
fireEvent.change(input, { target: { value: 'food-store-key' } });
|
|
368
|
-
|
|
369
|
-
await screen.findByText('Food Store');
|
|
370
|
-
selectInputUtils.selectFirstOption(input);
|
|
371
|
-
|
|
372
|
-
expect(track).toHaveBeenLastCalledWith('select', 'ReferenceChannel', 'key');
|
|
373
|
-
|
|
374
|
-
// should track id selection
|
|
375
|
-
fireEvent.change(input, { target: { value: builtFoodStoreChannel.id } });
|
|
376
|
-
|
|
377
|
-
await screen.findByText('Food Store');
|
|
378
|
-
selectInputUtils.selectFirstOption(input);
|
|
379
|
-
|
|
380
|
-
expect(track).toHaveBeenLastCalledWith('select', 'ReferenceChannel', 'id');
|
|
381
|
-
});
|
|
382
|
-
|
|
383
|
-
it('should clear selected value', async () => {
|
|
384
|
-
const props = createTestProps({
|
|
385
|
-
value: builtFoodStoreChannel.id,
|
|
386
|
-
});
|
|
387
|
-
render(<ChannelPickerInput {...props} />);
|
|
388
|
-
|
|
389
|
-
await screen.findByText('Food Store');
|
|
390
|
-
|
|
391
|
-
const clearButton = await screen.findByLabelText('Clear');
|
|
392
|
-
fireEvent.click(clearButton);
|
|
393
|
-
|
|
394
|
-
await waitFor(() => {
|
|
395
|
-
expect(props.onChange).toHaveBeenCalledWith({
|
|
396
|
-
persist: expect.any(Function),
|
|
397
|
-
target: {
|
|
398
|
-
id: 'channel-picker-input',
|
|
399
|
-
name: 'channel-picker-input',
|
|
400
|
-
value: undefined,
|
|
401
|
-
},
|
|
402
|
-
});
|
|
403
|
-
});
|
|
404
|
-
});
|
|
405
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './channel-picker-input';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { defineMessages } from 'react-intl';
|
|
2
|
-
|
|
3
|
-
export default defineMessages({
|
|
4
|
-
noChannelsFound: {
|
|
5
|
-
id: 'Products.ChannelPickerInput.noChannelsFound',
|
|
6
|
-
description: 'The message to display when no channels were found',
|
|
7
|
-
defaultMessage: 'There are no channels that match your search',
|
|
8
|
-
},
|
|
9
|
-
placeholder: {
|
|
10
|
-
id: 'Products.ChannelPickerInput.placeholder',
|
|
11
|
-
description: 'The placeholder of the input',
|
|
12
|
-
defaultMessage: 'Search by name, key or type an ID',
|
|
13
|
-
},
|
|
14
|
-
});
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const trackingEvents = {
|
|
2
|
-
selectChannelName: {
|
|
3
|
-
action: 'select',
|
|
4
|
-
category: 'ReferenceChannel',
|
|
5
|
-
label: 'name',
|
|
6
|
-
},
|
|
7
|
-
selectChannelKey: {
|
|
8
|
-
action: 'select',
|
|
9
|
-
category: 'ReferenceChannel',
|
|
10
|
-
label: 'key',
|
|
11
|
-
},
|
|
12
|
-
selectChannelId: {
|
|
13
|
-
action: 'select',
|
|
14
|
-
category: 'ReferenceChannel',
|
|
15
|
-
label: 'id',
|
|
16
|
-
},
|
|
17
|
-
selectWithoutTyping: {
|
|
18
|
-
action: 'select',
|
|
19
|
-
category: 'ReferenceChannel',
|
|
20
|
-
label: 'noEntry',
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export default trackingEvents;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
import { useIntl } from 'react-intl';
|
|
3
|
-
import { AsyncSelectField } from '@commercetools-frontend/ui-kit';
|
|
4
|
-
import messages from '../../messages';
|
|
5
|
-
|
|
6
|
-
const emptyCountryOption = (intl) => [
|
|
7
|
-
{
|
|
8
|
-
label: intl.formatMessage(
|
|
9
|
-
messages.countriesAsyncSelectDropdownTypeAheadPrompt
|
|
10
|
-
),
|
|
11
|
-
value: undefined,
|
|
12
|
-
isDisabled: true,
|
|
13
|
-
},
|
|
14
|
-
];
|
|
15
|
-
|
|
16
|
-
export default function CountriesAsyncSelectDropdown(props) {
|
|
17
|
-
const intl = useIntl();
|
|
18
|
-
const handleLoadOptions = async (searchTerm) => {
|
|
19
|
-
const filteredOptions = props.options?.filter((country) =>
|
|
20
|
-
country.label.toLowerCase().includes(searchTerm.toLowerCase())
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
if (searchTerm) {
|
|
24
|
-
return filteredOptions.slice(0, props.countriesAsyncLoadingLimit);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
return [
|
|
28
|
-
{ options: props.options?.slice(0, props.countriesAsyncLoadingLimit) },
|
|
29
|
-
{ options: emptyCountryOption(intl) },
|
|
30
|
-
];
|
|
31
|
-
};
|
|
32
|
-
const onOptionChange = (event) => {
|
|
33
|
-
const countries = event.target.value;
|
|
34
|
-
|
|
35
|
-
props.onChange({
|
|
36
|
-
target: {
|
|
37
|
-
...event.target,
|
|
38
|
-
value: countries.map((country) => country?.value ?? country),
|
|
39
|
-
},
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
return (
|
|
44
|
-
<AsyncSelectField
|
|
45
|
-
id={props.id}
|
|
46
|
-
name={props.name}
|
|
47
|
-
title={props.title}
|
|
48
|
-
description={props.description}
|
|
49
|
-
isRequired={props.isRequired}
|
|
50
|
-
isMulti={props.isMulti}
|
|
51
|
-
showOptionGroupDivider
|
|
52
|
-
isSearchable
|
|
53
|
-
value={props.value.map((countryCode) =>
|
|
54
|
-
props.options.find((country) => country.value === countryCode)
|
|
55
|
-
)}
|
|
56
|
-
placeholder={intl.formatMessage(messages.countriesAsyncSelectPlaceholder)}
|
|
57
|
-
loadOptions={handleLoadOptions}
|
|
58
|
-
onChange={onOptionChange}
|
|
59
|
-
isDisabled={props.isDisabled}
|
|
60
|
-
isReadOnly={props.isReadOnly}
|
|
61
|
-
defaultOptions
|
|
62
|
-
hasWarning={props.hasWarning}
|
|
63
|
-
/>
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
CountriesAsyncSelectDropdown.propTypes = {
|
|
68
|
-
id: PropTypes.string.isRequired,
|
|
69
|
-
name: PropTypes.string.isRequired,
|
|
70
|
-
title: PropTypes.shape({}).isRequired,
|
|
71
|
-
isRequired: PropTypes.bool.isRequired,
|
|
72
|
-
isMulti: PropTypes.bool.isRequired,
|
|
73
|
-
value: PropTypes.oneOfType([
|
|
74
|
-
PropTypes.arrayOf(PropTypes.string.isRequired),
|
|
75
|
-
PropTypes.string,
|
|
76
|
-
]),
|
|
77
|
-
options: PropTypes.arrayOf(
|
|
78
|
-
PropTypes.shape({
|
|
79
|
-
value: PropTypes.string.isRequired,
|
|
80
|
-
label: PropTypes.string.isRequired,
|
|
81
|
-
})
|
|
82
|
-
),
|
|
83
|
-
description: PropTypes.string,
|
|
84
|
-
onChange: PropTypes.func.isRequired,
|
|
85
|
-
isDisabled: PropTypes.bool.isRequired,
|
|
86
|
-
isReadOnly: PropTypes.bool.isRequired,
|
|
87
|
-
hasWarning: PropTypes.bool.isRequired,
|
|
88
|
-
countriesAsyncLoadingLimit: PropTypes.number.isRequired,
|
|
89
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './countries-async-select-dropdown';
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
import { useIntl } from 'react-intl';
|
|
3
|
-
import { SelectField } from '@commercetools-frontend/ui-kit';
|
|
4
|
-
import messages from '../../messages';
|
|
5
|
-
|
|
6
|
-
export default function CountriesBasicSelectDropdown(props) {
|
|
7
|
-
const intl = useIntl();
|
|
8
|
-
|
|
9
|
-
return (
|
|
10
|
-
<SelectField
|
|
11
|
-
id={props.id}
|
|
12
|
-
name={props.name}
|
|
13
|
-
title={props.title}
|
|
14
|
-
isMulti={props.isMulti}
|
|
15
|
-
value={props.value}
|
|
16
|
-
isRequired={props.isRequired}
|
|
17
|
-
description={props.description}
|
|
18
|
-
placeholder={intl.formatMessage(messages.countriesBasicSelectPlaceholder)}
|
|
19
|
-
options={props.options}
|
|
20
|
-
onChange={props.onChange}
|
|
21
|
-
isDisabled={props.isDisabled}
|
|
22
|
-
isReadOnly={props.isReadOnly}
|
|
23
|
-
hasWarning={props.hasWarning}
|
|
24
|
-
isSearchable
|
|
25
|
-
/>
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
CountriesBasicSelectDropdown.propTypes = {
|
|
30
|
-
id: PropTypes.string.isRequired,
|
|
31
|
-
name: PropTypes.string.isRequired,
|
|
32
|
-
title: PropTypes.shape({}).isRequired,
|
|
33
|
-
isRequired: PropTypes.bool.isRequired,
|
|
34
|
-
isMulti: PropTypes.bool.isRequired,
|
|
35
|
-
value: PropTypes.oneOfType([
|
|
36
|
-
PropTypes.arrayOf(PropTypes.string.isRequired),
|
|
37
|
-
PropTypes.string,
|
|
38
|
-
]),
|
|
39
|
-
options: PropTypes.arrayOf(
|
|
40
|
-
PropTypes.shape({
|
|
41
|
-
value: PropTypes.string.isRequired,
|
|
42
|
-
label: PropTypes.string.isRequired,
|
|
43
|
-
})
|
|
44
|
-
),
|
|
45
|
-
description: PropTypes.string,
|
|
46
|
-
onChange: PropTypes.func.isRequired,
|
|
47
|
-
isDisabled: PropTypes.bool.isRequired,
|
|
48
|
-
isReadOnly: PropTypes.bool.isRequired,
|
|
49
|
-
hasWarning: PropTypes.bool.isRequired,
|
|
50
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './countries-basic-select-dropdown';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const COUNTRIES_ASYNC_LOADING_LIMIT = 60;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
import { Spacings } from '@commercetools-frontend/ui-kit';
|
|
3
|
-
import { COUNTRIES_ASYNC_LOADING_LIMIT } from './constants';
|
|
4
|
-
import CountriesBasicSelectDropdown from './components/countries-basic-select-dropdown';
|
|
5
|
-
import CountriesAsyncSelectDropdown from './components/countries-async-select-dropdown';
|
|
6
|
-
|
|
7
|
-
export default function CountriesPicker(props) {
|
|
8
|
-
const CustomCountriesPicker =
|
|
9
|
-
props.options?.length <= props.countriesAsyncLoadingLimit
|
|
10
|
-
? CountriesBasicSelectDropdown
|
|
11
|
-
: CountriesAsyncSelectDropdown;
|
|
12
|
-
|
|
13
|
-
return (
|
|
14
|
-
<Spacings.Stack>
|
|
15
|
-
<CustomCountriesPicker {...props} />
|
|
16
|
-
</Spacings.Stack>
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
CountriesPicker.defaultProps = {
|
|
21
|
-
countriesAsyncLoadingLimit: COUNTRIES_ASYNC_LOADING_LIMIT,
|
|
22
|
-
isMulti: false,
|
|
23
|
-
isRequired: false,
|
|
24
|
-
hasWarning: false,
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
CountriesPicker.propTypes = {
|
|
28
|
-
id: PropTypes.string.isRequired,
|
|
29
|
-
name: PropTypes.string.isRequired,
|
|
30
|
-
title: PropTypes.shape({}).isRequired,
|
|
31
|
-
isRequired: PropTypes.bool.isRequired,
|
|
32
|
-
isMulti: PropTypes.bool,
|
|
33
|
-
value: PropTypes.oneOfType([
|
|
34
|
-
PropTypes.arrayOf(PropTypes.string.isRequired),
|
|
35
|
-
PropTypes.string,
|
|
36
|
-
]),
|
|
37
|
-
options: PropTypes.arrayOf(
|
|
38
|
-
PropTypes.shape({
|
|
39
|
-
value: PropTypes.string.isRequired,
|
|
40
|
-
label: PropTypes.string.isRequired,
|
|
41
|
-
})
|
|
42
|
-
),
|
|
43
|
-
description: PropTypes.string,
|
|
44
|
-
onChange: PropTypes.func.isRequired,
|
|
45
|
-
isDisabled: PropTypes.bool.isRequired,
|
|
46
|
-
isReadOnly: PropTypes.bool.isRequired,
|
|
47
|
-
countriesAsyncLoadingLimit: PropTypes.number,
|
|
48
|
-
hasWarning: PropTypes.bool,
|
|
49
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './country-picker';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineMessages } from 'react-intl';
|
|
2
|
-
|
|
3
|
-
export default defineMessages({
|
|
4
|
-
countriesBasicSelectPlaceholder: {
|
|
5
|
-
id: 'CountriesPicker.countriesBasicSelectPlaceholder',
|
|
6
|
-
description: 'Placeholder of the basic field for countries',
|
|
7
|
-
defaultMessage: 'Not restricted to any country yet',
|
|
8
|
-
},
|
|
9
|
-
countriesAsyncSelectPlaceholder: {
|
|
10
|
-
id: 'CountriesPicker.countriesAsyncSelectPlaceholder',
|
|
11
|
-
description: 'Placeholder of the async select field for countries',
|
|
12
|
-
defaultMessage: 'Search for countries by name',
|
|
13
|
-
},
|
|
14
|
-
countriesAsyncSelectDropdownTypeAheadPrompt: {
|
|
15
|
-
id: 'CountriesPicker.countriesAsyncSelectDropdownTypeAheadPrompt',
|
|
16
|
-
description:
|
|
17
|
-
'Message to be shown to the user to start typing to load more more countries',
|
|
18
|
-
defaultMessage: 'Start typing above to load more',
|
|
19
|
-
},
|
|
20
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
import classnames from 'classnames';
|
|
3
|
-
import styles from './divider.module.css';
|
|
4
|
-
|
|
5
|
-
export default function Divider({ size = 's', isDashed }) {
|
|
6
|
-
return (
|
|
7
|
-
<hr
|
|
8
|
-
className={classnames({
|
|
9
|
-
[styles['divider-solid']]: !isDashed,
|
|
10
|
-
[styles['divider-dashed']]: isDashed,
|
|
11
|
-
[styles.size_s]: size === 's',
|
|
12
|
-
[styles.size_m]: size === 'm',
|
|
13
|
-
})}
|
|
14
|
-
/>
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
Divider.displayName = 'Divider';
|
|
18
|
-
Divider.propTypes = {
|
|
19
|
-
size: PropTypes.oneOf(['s', 'm']),
|
|
20
|
-
isDashed: PropTypes.bool,
|
|
21
|
-
};
|