@commercetools-frontend/experimental-components 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/commercetools-frontend-experimental-components.cjs.dev.js +6 -6
- package/dist/commercetools-frontend-experimental-components.cjs.prod.js +6 -6
- package/dist/commercetools-frontend-experimental-components.esm.js +6 -6
- package/dist/styles.css +1322 -0
- package/package.json +15 -11
- 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,37 +0,0 @@
|
|
|
1
|
-
/* eslint-disable testing-library/no-render-in-setup */
|
|
2
|
-
import { shallow } from 'enzyme';
|
|
3
|
-
import injectPimIndexer from './inject-pim-indexer';
|
|
4
|
-
import WithPimIndexer from '../../components/with-pim-indexer';
|
|
5
|
-
|
|
6
|
-
const ChildComponent = () => <div />;
|
|
7
|
-
|
|
8
|
-
describe('injectPimIndexer', () => {
|
|
9
|
-
let propNameConfig;
|
|
10
|
-
let EnhancedComponent;
|
|
11
|
-
let wrapper;
|
|
12
|
-
|
|
13
|
-
describe('without `propName` config', () => {
|
|
14
|
-
beforeEach(() => {
|
|
15
|
-
propNameConfig = undefined;
|
|
16
|
-
EnhancedComponent = injectPimIndexer(propNameConfig)(ChildComponent);
|
|
17
|
-
wrapper = shallow(<EnhancedComponent />)
|
|
18
|
-
.find(WithPimIndexer)
|
|
19
|
-
.renderProp('children')('any-random-value');
|
|
20
|
-
});
|
|
21
|
-
it('should inject pimIndexer value as `pimIndexer`', () => {
|
|
22
|
-
expect(wrapper).toHaveProp('pimIndexer', 'any-random-value');
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
describe('with `propName` config', () => {
|
|
26
|
-
beforeEach(() => {
|
|
27
|
-
propNameConfig = 'any-random-prop';
|
|
28
|
-
EnhancedComponent = injectPimIndexer(propNameConfig)(ChildComponent);
|
|
29
|
-
wrapper = shallow(<EnhancedComponent />)
|
|
30
|
-
.find(WithPimIndexer)
|
|
31
|
-
.renderProp('children')('any-random-value');
|
|
32
|
-
});
|
|
33
|
-
it('should inject pimIndexer value as `pimIndexer`', () => {
|
|
34
|
-
expect(wrapper).toHaveProp(propNameConfig, 'any-random-value');
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './use-pim-indexer';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import PimIndexerProvider from './components/pim-indexer-provider';
|
|
2
|
-
import WithPimIndexer from './components/with-pim-indexer';
|
|
3
|
-
import injectPimIndexer from './hocs/inject-pim-indexer';
|
|
4
|
-
import usePimIndexer from './hooks/use-pim-indexer';
|
|
5
|
-
|
|
6
|
-
export { PimIndexerProvider, WithPimIndexer, injectPimIndexer, usePimIndexer };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="160px" height="148px" viewBox="0 0 250 230" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<title>graphic-limits</title>
|
|
4
|
-
<defs>
|
|
5
|
-
<rect id="path-1" x="0" y="0" width="250" height="226.69384"></rect>
|
|
6
|
-
</defs>
|
|
7
|
-
<g id="Limits-Customers---Add-customer---DRAFT-2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
8
|
-
<g id="Loading-error-page" transform="translate(-584.000000, -271.000000)">
|
|
9
|
-
<g id="graphic-limits" transform="translate(584.000000, 271.000000)">
|
|
10
|
-
<g id="Oval-Copy">
|
|
11
|
-
<mask id="mask-2" fill="white">
|
|
12
|
-
<use xlink:href="#path-1"></use>
|
|
13
|
-
</mask>
|
|
14
|
-
<g id="Mask"></g>
|
|
15
|
-
<ellipse id="Oval" fill="#F2F2F2" mask="url(#mask-2)" cx="124.387255" cy="126.213327" rx="123.161765" ry="122.537211"></ellipse>
|
|
16
|
-
</g>
|
|
17
|
-
<rect id="Rectangle-Copy" stroke="#979797" fill="#FFFFFF" x="48" y="92" width="159.36" height="117.12" rx="7"></rect>
|
|
18
|
-
<line x1="48.32" y1="114.08" x2="207.68" y2="114.08" id="Line-Copy" stroke="#979797" stroke-linecap="square"></line>
|
|
19
|
-
<circle id="Oval-Copy-4" stroke="#979797" fill="#999999" cx="69.12" cy="102.88" r="3.84"></circle>
|
|
20
|
-
<circle id="Oval-Copy-6" stroke="#979797" fill="#999999" cx="58.84" cy="102.88" r="3.84"></circle>
|
|
21
|
-
<circle id="Oval-Copy-5" stroke="#979797" fill="#999999" cx="79.4" cy="102.88" r="3.84"></circle>
|
|
22
|
-
<path d="M247.553314,227.19384 C247.739262,227.19384 247.908919,227.26361 248.036806,227.379329 C248.265299,228.06387 248.190203,228.27301 248.056572,228.421661 C247.92934,228.563193 247.750534,228.644584 247.553314,228.644584 L247.553314,228.644584 L1.22119547,228.644584 C1.02183176,228.644584 0.84121588,228.564324 0.710685558,228.433348 C0.58004944,228.302265 0.5,228.120701 0.5,227.919212 C0.5,227.718806 0.581044491,227.537342 0.71197708,227.405962 C0.842411756,227.275081 1.02246456,227.19384 1.22119547,227.19384 L1.22119547,227.19384 Z" id="Rectangle-4-Copy" stroke="#000000" fill="#000000"></path>
|
|
23
|
-
<g id="warning-sign" transform="translate(154.000000, 56.000000)" fill-rule="nonzero">
|
|
24
|
-
<polygon id="Rectangle-Copy-2" fill="#000000" transform="translate(23.905092, 79.585776) rotate(19.110000) translate(-23.905092, -79.585776) " points="21.869951 37.8820964 26.00424 37.8789301 25.7135197 119.938739 21.8059447 121.292622"></polygon>
|
|
25
|
-
<path d="M49.2156816,2.71114701 C50.0588802,2.00929124 51.2122987,1.81021789 52.2419748,2.18882634 C53.2716509,2.56743479 54.0213752,3.46628741 54.2090715,4.54719977 L59.4175612,34.7537247 L64.6145277,64.9564086 C64.8017625,66.0386622 64.3971381,67.1385626 63.5531922,67.841463 C62.7092462,68.5443633 61.5543142,68.7433765 60.5237891,68.3634772 L31.7733867,57.7696832 L3.01146109,47.1912537 C1.98066437,46.8118237 1.23078314,45.9110299 1.04455368,44.8285088 C0.858324222,43.7459878 1.26407068,42.646383 2.10880984,41.9442912 L25.6622457,22.3315602 L49.2156816,2.71114701 Z" id="Path-Copy" fill="#FFFFFF"></path>
|
|
26
|
-
<path d="M62.8238256,70.8820767 C62.2052202,70.8808032 61.5917192,70.7701047 61.0116915,70.5550999 L3.39275292,49.3400762 C1.65710059,48.6983938 0.393989966,47.1818854 0.07692171,45.3590428 C-0.240146546,43.5362001 0.436720111,41.6823599 1.85378554,40.4924689 L49.0500676,1.20524549 C50.4753022,0.0160005439 52.4272804,-0.321624003 54.1692618,0.319802403 C55.9112432,0.96122881 57.1779569,2.48402903 57.4913037,4.31344842 L67.9255025,64.8118487 C68.1831611,66.3185886 67.7653185,67.8624001 66.7828571,69.0336038 C65.8003957,70.2048075 64.3526569,70.8849772 62.8238256,70.893617 L62.8238256,70.8820767 Z M51.7586502,4.44423913 L4.57391038,43.7276157 C4.30916823,43.9470582 4.18174153,44.2911225 4.23969199,44.6300372 C4.29764245,44.968952 4.5321526,45.2511496 4.85477192,45.3701932 L62.4737106,66.6006041 C62.7962291,66.7197372 63.1578219,66.6576849 63.4221506,66.437844 C63.6864793,66.2180032 63.8133404,65.8738108 63.7549009,65.5350444 L53.3207021,5.021257 C53.2624555,4.68291147 53.0282259,4.40127267 52.7061286,4.28229076 C52.3840313,4.16330886 52.0229232,4.2250315 51.7586502,4.44423913 L51.7586502,4.44423913 Z" id="Shape-Copy" fill="#00B49F"></path>
|
|
27
|
-
<path d="M49.3155177,16.917732 C51.1407767,17.6032693 50.8039263,18.7100865 49.9343824,20.6671231 L43.5851448,34.6038283 C42.9310284,36.0208607 42.1202374,37.0932095 40.3772327,36.4421406 C38.6342279,35.7910717 38.7713182,34.462125 39.2570094,32.995305 L44.0786697,18.4994465 C44.7327861,16.4619837 45.3242327,15.4355927 47.1494916,16.1326194 L49.3155177,16.917732 Z M38.371798,43.1404911 C39.9855462,43.7456022 40.4399025,44.8217809 39.8210379,46.3958358 L39.3980165,47.4720144 C38.7791519,49.0460693 37.705931,49.5477754 36.0921828,48.9426643 L34.987627,48.529044 C33.3777956,47.9239329 32.9234393,46.851584 33.5423039,45.2775291 L33.9653253,44.1975206 C34.5841899,42.6234657 35.6574108,42.1217597 37.271159,42.7268708 L38.371798,43.1404911 Z" id="Shape-Copy-2" fill="#000000"></path>
|
|
28
|
-
</g>
|
|
29
|
-
<g id="Group-3" transform="translate(156.000000, 153.000000)" fill-rule="nonzero">
|
|
30
|
-
<path d="M16.9570235,12.8268146 C16.7464384,12.8268146 15.0606611,13.0358726 15.0606611,13.0358726 L16.5358533,11.5713778 L13.5865657,11.9905826 L15.0606611,6.76413275 L11.6902033,10.7373235 L11.0584481,3 L9.79493772,10.3192075 L8.53033055,8.22753871 L7.89857536,10.3192075 L3.47519224,6.55507475 L6.84894043,10.5260878 L2,10.5260878 L7.2,12.8268146 C7.41803618,12.7857915 7.73763933,12.7070187 8.15880945,12.5904962 C8.57997958,12.4739738 9.12535567,12.4739738 9.79493772,12.5904962 L14.4343899,13.2460194 C14.8527547,13.5970511 15.0615117,13.8046573 15.0606611,13.868838 C15.0598104,13.9330187 15.5515412,13.9330187 16.5358533,13.868838 C16.5358533,13.868838 17.1676085,12.8268146 16.9570235,12.8268146 Z" id="Path" fill="#A6DBD5"></path>
|
|
31
|
-
<path d="M20.362223,13.6613592 C20.0814429,13.6613592 17.4142148,13.3811634 17.4142148,13.3811634 L19.3811378,11.4285037 L15.4487542,11.9874435 L17.4142148,5.01884366 L12.9202711,10.3164313 L12.0779308,-1.50990331e-14 L10.5,9.52239098 L8.7071074,6.97005161 L7.87207912,9.52239098 L1.96692298,4.74009967 L6.08691529,10.0347837 L0,10.0347837 L8.42632731,13.3811634 L10,13.3811634 L8.7071074,13 L2,10.3164313 L6.84894043,10.5260878 L5.35359382,8.13316541 L7.87207912,10.3135277 L8.7071074,8.13316541 L10.6813424,10.3135277 L11.811261,4.47803199 L12.6468029,11.4299555 L16.0423594,7.5 L14.894506,12.2676393 L15.7368463,12.5463833 L17.9830869,12.2676393 L16.5791865,13.6613592 L17.9830869,13.6613592 L19.3884498,13.9401032 C18.0734273,14.2223162 17.415349,14.4062098 17.4142148,14.491784 C17.4130806,14.5773583 17.8709273,14.5773583 18.787755,14.491784 C18.787755,14.491784 20.6430031,13.6613592 20.362223,13.6613592 Z" id="Path" fill="#008071"></path>
|
|
32
|
-
</g>
|
|
33
|
-
<g id="Group-2" transform="translate(81.525025, 166.000000)">
|
|
34
|
-
<path d="M9,20.5171689 L57.8360183,20.5171689 L86.7353981,20.5171689 C91.7059609,20.5171689 95.7353981,16.4877316 95.7353981,11.5171689 L95.7353981,9 C95.7353981,4.02943725 91.7059609,-9.65368627e-16 86.7353981,-8.8817842e-15 L9,-8.8817842e-15 C4.02943725,-7.96870663e-15 1.62816111e-13,4.02943725 1.63424829e-13,9 L1.63424829e-13,11.5171689 C1.64033548e-13,16.4877316 4.02943725,20.5171689 9,20.5171689 Z" id="Fill-7-Copy-3" stroke="#979797" fill="#FFFFFF"></path>
|
|
35
|
-
<path d="M9.95497504,18.2674016 L57.5921483,18.2674016 L86.2627301,18.2674016 C90.1287233,18.2674016 93.2627301,15.1333949 93.2627301,11.2674016 L93.2627301,9.88199475 C93.2627301,6.0160015 90.1287233,2.88199475 86.2627301,2.88199475 L9.95497504,2.88199475 C6.08898179,2.88199475 2.95497504,6.0160015 2.95497504,9.88199475 L2.95497504,11.2674016 C2.95497504,15.1333949 6.08898179,18.2674016 9.95497504,18.2674016 Z" id="Fill-7-Copy-4" fill="#00B49F"></path>
|
|
36
|
-
<polygon id="Path-2-Copy-11" fill="#A8DBD5" points="19.2812927 2.88199475 8.71497504 18.2674016 11.2154165 18.2674016 22.1579081 2.88199475"></polygon>
|
|
37
|
-
<polygon id="Path-2-Copy-12" fill="#A8DBD5" points="12.2412927 2.88199475 3.50507859 15.5985955 4.74310719 17.2349969 15.1179081 2.88199475"></polygon>
|
|
38
|
-
<polygon id="Path-2-Copy-13" fill="#A8DBD5" points="27.6012927 2.88199475 17.034975 18.2674016 19.5354165 18.2674016 30.4779081 2.88199475"></polygon>
|
|
39
|
-
<polygon id="Path-2-Copy-14" fill="#A8DBD5" points="35.9212927 2.88199475 25.354975 18.2674016 27.8554165 18.2674016 38.7979081 2.88199475"></polygon>
|
|
40
|
-
<polygon id="Path-2-Copy-15" fill="#A8DBD5" points="44.8812927 2.88199475 34.314975 18.2674016 36.8154165 18.2674016 47.7579081 2.88199475"></polygon>
|
|
41
|
-
<polygon id="Path-2-Copy-16" fill="#A8DBD5" points="53.8412927 2.88199475 43.274975 18.2674016 45.7754165 18.2674016 56.7179081 2.88199475"></polygon>
|
|
42
|
-
<polygon id="Path-2-Copy-17" fill="#A8DBD5" points="73.0412927 2.88199475 62.474975 18.2674016 64.9754165 18.2674016 75.9179081 2.88199475"></polygon>
|
|
43
|
-
<polygon id="Path-2-Copy-18" fill="#A8DBD5" points="63.4412927 2.88199475 52.874975 18.2674016 55.3754165 18.2674016 66.3179081 2.88199475"></polygon>
|
|
44
|
-
<polygon id="Path-2-Copy-19" fill="#A8DBD5" points="82.6412927 2.88199475 72.074975 18.2674016 74.5754165 18.2674016 85.5179081 2.88199475"></polygon>
|
|
45
|
-
<polygon id="Path-2-Copy-20" fill="#A8DBD5" points="90.4363744 4.4431784 81.674975 18.2674016 84.1754165 18.2674016 91.8533115 5.84140012"></polygon>
|
|
46
|
-
</g>
|
|
47
|
-
</g>
|
|
48
|
-
</g>
|
|
49
|
-
</g>
|
|
50
|
-
</svg>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { default as CustomerGroupsNotification } from './platform-limits-customer-groups-notification';
|
|
2
|
-
export { default as CustomerGroupsTooltip } from './platform-limits-customer-groups-tooltip';
|
|
3
|
-
export { default as CustomerGroupsStatus } from './platform-limits-customer-groups-status';
|
|
4
|
-
export { default as CustomerGroupsErrorModal } from './platform-limits-customer-groups-error-modal';
|
|
5
|
-
export { default as CustomerGroupsCombined } from './platform-limits-customer-groups-combined';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './platform-limits-customer-groups-combined';
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Spacings } from '@commercetools-frontend/ui-kit';
|
|
2
|
-
import PlatformLimitsCustomerGroupsNotifications from '../platform-limits-customer-groups-notification';
|
|
3
|
-
import PlatformLimitsCustomerGroupsStatus from '../platform-limits-customer-groups-status';
|
|
4
|
-
import styles from './platform-limits-customer-groups-combined.module.css';
|
|
5
|
-
import { useCustomerGroupsPlatformLimitsStatus } from '../../hooks';
|
|
6
|
-
|
|
7
|
-
const PlatformLimitsCustomerGroupsCombined = () => {
|
|
8
|
-
// on the customer create only show the warning message
|
|
9
|
-
const {
|
|
10
|
-
hasReachedCustomerGroupsErrorLimit,
|
|
11
|
-
hasReachedCustomerGroupsWarningLimit,
|
|
12
|
-
} = useCustomerGroupsPlatformLimitsStatus();
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<div className={styles.combined}>
|
|
16
|
-
<Spacings.Inline scale="xl" justifyContent="space-between">
|
|
17
|
-
{hasReachedCustomerGroupsWarningLimit &&
|
|
18
|
-
!hasReachedCustomerGroupsErrorLimit ? (
|
|
19
|
-
<PlatformLimitsCustomerGroupsNotifications />
|
|
20
|
-
) : (
|
|
21
|
-
<div />
|
|
22
|
-
)}
|
|
23
|
-
<PlatformLimitsCustomerGroupsStatus />
|
|
24
|
-
</Spacings.Inline>
|
|
25
|
-
</div>
|
|
26
|
-
);
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
PlatformLimitsCustomerGroupsCombined.displayName =
|
|
30
|
-
'PlatformLimitsCustomerGroupsCombined';
|
|
31
|
-
|
|
32
|
-
export default PlatformLimitsCustomerGroupsCombined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './platform-limits-customer-groups-error-modal';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { defineMessages } from 'react-intl';
|
|
2
|
-
|
|
3
|
-
export default defineMessages({
|
|
4
|
-
title: {
|
|
5
|
-
id: 'PlatformLimits.CustomerGroups.modalTitle',
|
|
6
|
-
description:
|
|
7
|
-
'The modal title for the customer groups platform limits error',
|
|
8
|
-
defaultMessage: 'Add Customer group',
|
|
9
|
-
},
|
|
10
|
-
backToList: {
|
|
11
|
-
id: 'PlatformLimits.CustomerGroups.backToList',
|
|
12
|
-
description: 'The button label for going back to the list view',
|
|
13
|
-
defaultMessage: 'To customer groups list',
|
|
14
|
-
},
|
|
15
|
-
});
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
import { useIntl } from 'react-intl';
|
|
3
|
-
import { InfoDialog } from '@commercetools-frontend/application-components';
|
|
4
|
-
import { Spacings, FlatButton, ListIcon } from '@commercetools-frontend/ui-kit';
|
|
5
|
-
import messages from './messages';
|
|
6
|
-
import PlatformLimitsCustomerGroupsNotifications from '../platform-limits-customer-groups-notification';
|
|
7
|
-
import LimitsReachedErrorGraphic from '../../../assets/graphic-limits-reached.react.svg';
|
|
8
|
-
import { useCustomerGroupsPlatormLimitsModalState } from '../../hooks';
|
|
9
|
-
|
|
10
|
-
const PlatformLimitsCustomerGroupsErrorModal = ({ onClose }) => {
|
|
11
|
-
const intl = useIntl();
|
|
12
|
-
const customerGroupsPlatformLimitsModalState =
|
|
13
|
-
useCustomerGroupsPlatormLimitsModalState();
|
|
14
|
-
|
|
15
|
-
return (
|
|
16
|
-
<InfoDialog
|
|
17
|
-
isOpen={customerGroupsPlatformLimitsModalState.isModalOpen}
|
|
18
|
-
onClose={onClose}
|
|
19
|
-
title={intl.formatMessage(messages.title)}
|
|
20
|
-
>
|
|
21
|
-
<Spacings.Stack scale="m" alignItems="center">
|
|
22
|
-
<LimitsReachedErrorGraphic />
|
|
23
|
-
<Spacings.Stack scale="l" alignItems="center">
|
|
24
|
-
<PlatformLimitsCustomerGroupsNotifications />
|
|
25
|
-
<FlatButton
|
|
26
|
-
onClick={onClose}
|
|
27
|
-
label={intl.formatMessage(messages.backToList)}
|
|
28
|
-
icon={<ListIcon size="medium" color="primary" />}
|
|
29
|
-
/>
|
|
30
|
-
</Spacings.Stack>
|
|
31
|
-
</Spacings.Stack>
|
|
32
|
-
</InfoDialog>
|
|
33
|
-
);
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
PlatformLimitsCustomerGroupsErrorModal.propTypes = {
|
|
37
|
-
onClose: PropTypes.func.isRequired,
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
PlatformLimitsCustomerGroupsErrorModal.displayName =
|
|
41
|
-
'PlatformLimitsCustomerGroupsErrorModal';
|
|
42
|
-
|
|
43
|
-
export default PlatformLimitsCustomerGroupsErrorModal;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './platform-limits-customer-groups-notification';
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useCustomerGroupsPlatformLimitsStatus,
|
|
3
|
-
useCustomerGroupsPlatformLimitsFetcher,
|
|
4
|
-
} from '../../hooks';
|
|
5
|
-
import { Notifications, RESOURCES_WITH_PLATFORM_LIMITS } from '../../../shared';
|
|
6
|
-
|
|
7
|
-
const PlatformLimitsCustomerGroupsNotifications = () => {
|
|
8
|
-
const { platformLimits } = useCustomerGroupsPlatformLimitsFetcher();
|
|
9
|
-
const {
|
|
10
|
-
hasReachedCustomerGroupsWarningLimit,
|
|
11
|
-
hasReachedCustomerGroupsErrorLimit,
|
|
12
|
-
} = useCustomerGroupsPlatformLimitsStatus();
|
|
13
|
-
|
|
14
|
-
if (!platformLimits?.customerGroups?.total) {
|
|
15
|
-
return <div />;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
if (hasReachedCustomerGroupsErrorLimit) {
|
|
19
|
-
return (
|
|
20
|
-
<Notifications.Error
|
|
21
|
-
resource={RESOURCES_WITH_PLATFORM_LIMITS.customerGroups}
|
|
22
|
-
limit={platformLimits.customerGroups.total.limit}
|
|
23
|
-
/>
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
if (hasReachedCustomerGroupsWarningLimit) {
|
|
28
|
-
return (
|
|
29
|
-
<Notifications.Warning
|
|
30
|
-
resource={RESOURCES_WITH_PLATFORM_LIMITS.customerGroups}
|
|
31
|
-
limit={platformLimits.customerGroups.total.limit}
|
|
32
|
-
/>
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return <div />;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
PlatformLimitsCustomerGroupsNotifications.displayName =
|
|
40
|
-
'PlatformLimitsCustomerGroupsNotifications';
|
|
41
|
-
|
|
42
|
-
export default PlatformLimitsCustomerGroupsNotifications;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
screen,
|
|
3
|
-
renderApp,
|
|
4
|
-
} from '@commercetools-frontend/application-shell/test-utils';
|
|
5
|
-
import usePlatformLimitsFetcher from '../../../shared/hooks/use-platform-limits-fetcher';
|
|
6
|
-
import PlatformLimitsCustomerGroupsNotification from './platform-limits-customer-groups-notification';
|
|
7
|
-
|
|
8
|
-
jest.mock('../../../shared/hooks/use-platform-limits-fetcher');
|
|
9
|
-
|
|
10
|
-
describe('customerGroupsNotification', () => {
|
|
11
|
-
describe('when warning limit has not been exceeded', () => {
|
|
12
|
-
it('should not render warning or error notifcation', () => {
|
|
13
|
-
usePlatformLimitsFetcher.withCustomerGroupsWithNonExceeded();
|
|
14
|
-
renderApp(<PlatformLimitsCustomerGroupsNotification />);
|
|
15
|
-
|
|
16
|
-
expect(
|
|
17
|
-
screen.queryByText(
|
|
18
|
-
/This project will soon reach the limit of 10 customer groups. Once it has been reached, no additional customer groups can be added. To add more customer groups delete existing ones, reach out to your administrator or contact/
|
|
19
|
-
)
|
|
20
|
-
).not.toBeInTheDocument();
|
|
21
|
-
|
|
22
|
-
expect(
|
|
23
|
-
screen.queryByText(
|
|
24
|
-
/This project reached the limit of 10 customer groups. To add more customer groups delete existing ones, reach out to your administrator or contact/
|
|
25
|
-
)
|
|
26
|
-
).not.toBeInTheDocument();
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
describe('when warning limit has been exceeded', () => {
|
|
31
|
-
it('should render warning notifcation', () => {
|
|
32
|
-
usePlatformLimitsFetcher.withCustomerGroupsWithWarningExceeded();
|
|
33
|
-
renderApp(<PlatformLimitsCustomerGroupsNotification />);
|
|
34
|
-
|
|
35
|
-
screen.getByText(
|
|
36
|
-
/This project will soon reach the limit of 10 customer groups. Once it has been reached, no additional customer groups can be added. To add more customer groups delete existing ones, reach out to your administrator or contact/
|
|
37
|
-
);
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
describe('when error limit has been exceeded', () => {
|
|
42
|
-
it('should render error notifcation', () => {
|
|
43
|
-
usePlatformLimitsFetcher.withCustomerGroupsWithExceeded();
|
|
44
|
-
renderApp(<PlatformLimitsCustomerGroupsNotification />);
|
|
45
|
-
|
|
46
|
-
screen.getByText(
|
|
47
|
-
/This project reached the limit of 10 customer groups. To add more customer groups delete existing ones, reach out to your administrator or contact/
|
|
48
|
-
);
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './platform-limits-customer-groups-status';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { defineMessages } from 'react-intl';
|
|
2
|
-
|
|
3
|
-
export default defineMessages({
|
|
4
|
-
customerGroupsStatus: {
|
|
5
|
-
id: 'PlatformLimits.Status.customerGroups',
|
|
6
|
-
description: 'The message for customer groups platform limit values',
|
|
7
|
-
defaultMessage: 'Customer groups: {current}/{limit}',
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Text } from '@commercetools-frontend/ui-kit';
|
|
2
|
-
import { useIntl } from 'react-intl';
|
|
3
|
-
import { useCustomerGroupsPlatformLimitsFetcher } from '../../hooks';
|
|
4
|
-
import messages from './messages';
|
|
5
|
-
import styles from './platform-limits-customer-groups-status.module.css';
|
|
6
|
-
|
|
7
|
-
const PlatformLimitsCustomerGroupsStatus = () => {
|
|
8
|
-
const intl = useIntl();
|
|
9
|
-
const { platformLimits } = useCustomerGroupsPlatformLimitsFetcher();
|
|
10
|
-
|
|
11
|
-
if (!platformLimits?.customerGroups?.total) {
|
|
12
|
-
return null;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const { current, limit } = platformLimits.customerGroups.total;
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<div className={styles.status}>
|
|
19
|
-
<Text.Detail
|
|
20
|
-
tone="secondary"
|
|
21
|
-
isInline
|
|
22
|
-
intlMessage={{
|
|
23
|
-
...messages.customerGroupsStatus,
|
|
24
|
-
values: {
|
|
25
|
-
current: intl.formatNumber(current),
|
|
26
|
-
limit: intl.formatNumber(limit),
|
|
27
|
-
},
|
|
28
|
-
}}
|
|
29
|
-
/>
|
|
30
|
-
</div>
|
|
31
|
-
);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
PlatformLimitsCustomerGroupsStatus.displayName =
|
|
35
|
-
'PlatformLimitsCustomerGroupsStatus';
|
|
36
|
-
|
|
37
|
-
export default PlatformLimitsCustomerGroupsStatus;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './platform-limits-customer-groups-tooltip';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { defineMessages } from 'react-intl';
|
|
2
|
-
|
|
3
|
-
export default defineMessages({
|
|
4
|
-
customerGroupsPlatformLimitReached: {
|
|
5
|
-
id: 'PlatformLimits.Tooltip.customerGroupsLimitReached',
|
|
6
|
-
description: 'The message for custome groups platform limit being reached',
|
|
7
|
-
defaultMessage: 'customer groups limit has been reached',
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { useIntl } from 'react-intl';
|
|
2
|
-
import { Tooltip } from '@commercetools-frontend/ui-kit';
|
|
3
|
-
import messages from './messages';
|
|
4
|
-
|
|
5
|
-
const PlatformLimitsCustomerGroupsTooltip = (props) => {
|
|
6
|
-
const intl = useIntl();
|
|
7
|
-
return (
|
|
8
|
-
<Tooltip
|
|
9
|
-
{...props}
|
|
10
|
-
title={intl.formatMessage(messages.customerGroupsPlatformLimitReached)}
|
|
11
|
-
/>
|
|
12
|
-
);
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
PlatformLimitsCustomerGroupsTooltip.displayName =
|
|
16
|
-
'PlatformLimitsCustomerGroupsTooltip';
|
|
17
|
-
|
|
18
|
-
export default PlatformLimitsCustomerGroupsTooltip;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './inject-customer-groups-platform-limits';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { wrapDisplayName } from '../../../../../internal-index';
|
|
2
|
-
import { useCustomerGroupsPlatformLimits } from '../../hooks';
|
|
3
|
-
|
|
4
|
-
const injectCustomerGroupsPlatformLimits = () => (WrappedComponent) => {
|
|
5
|
-
const WithCustomerGroupsPlatformLimits = (props) => {
|
|
6
|
-
const CustomerGroupsPlatformLimits = useCustomerGroupsPlatformLimits();
|
|
7
|
-
|
|
8
|
-
const customersProps = {
|
|
9
|
-
platformLimits: CustomerGroupsPlatformLimits,
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
return <WrappedComponent {...props} {...customersProps} />;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
WithCustomerGroupsPlatformLimits.displayName = wrapDisplayName(
|
|
16
|
-
WrappedComponent,
|
|
17
|
-
'WithCustomerGroupsPlatformLimits'
|
|
18
|
-
);
|
|
19
|
-
|
|
20
|
-
return WithCustomerGroupsPlatformLimits;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export default injectCustomerGroupsPlatformLimits;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { default as useCustomerGroupsPlatformLimitsFetcher } from './use-customer-groups-platform-limits-fetcher';
|
|
2
|
-
export { default as useCustomerGroupsPlatformLimitsStatus } from './use-customer-groups-platform-limits-status';
|
|
3
|
-
export { default as useCustomerGroupsPlatormLimitsModalState } from './use-customer-groups-platform-limits-modal-state';
|
|
4
|
-
export { default as useCustomerGroupsPlatformLimits } from './use-customer-groups-platform-limits';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './use-customer-groups-platform-limits';
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import useCustomerGroupsPlatformLimitsFetcher from '../use-customer-groups-platform-limits-fetcher';
|
|
2
|
-
import useCustomerGroupsPlatformLimitsStatus from '../use-customer-groups-platform-limits-status';
|
|
3
|
-
import {
|
|
4
|
-
CustomerGroupsNotification,
|
|
5
|
-
CustomerGroupsTooltip,
|
|
6
|
-
CustomerGroupsStatus,
|
|
7
|
-
CustomerGroupsCombined,
|
|
8
|
-
CustomerGroupsErrorModal,
|
|
9
|
-
} from '../../components';
|
|
10
|
-
import { useInterceptNavigation } from '../../../shared';
|
|
11
|
-
|
|
12
|
-
const useCustomerGroupsPlatformLimits = () => {
|
|
13
|
-
const { refetch } = useCustomerGroupsPlatformLimitsFetcher();
|
|
14
|
-
const {
|
|
15
|
-
hasReachedCustomerGroupsWarningLimit,
|
|
16
|
-
hasReachedCustomerGroupsErrorLimit,
|
|
17
|
-
} = useCustomerGroupsPlatformLimitsStatus();
|
|
18
|
-
|
|
19
|
-
const interceptNavigation = useInterceptNavigation(
|
|
20
|
-
hasReachedCustomerGroupsErrorLimit
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
return {
|
|
24
|
-
CustomerGroupsLimits: {
|
|
25
|
-
Notifications: CustomerGroupsNotification,
|
|
26
|
-
Status: CustomerGroupsStatus,
|
|
27
|
-
Combined: CustomerGroupsCombined,
|
|
28
|
-
Tooltip: CustomerGroupsTooltip,
|
|
29
|
-
ErrorModal: CustomerGroupsErrorModal,
|
|
30
|
-
},
|
|
31
|
-
refetchCustomerGroupsPlatformLimits: refetch,
|
|
32
|
-
interceptNavigation,
|
|
33
|
-
status: {
|
|
34
|
-
hasReachedCustomerGroupsWarningLimit,
|
|
35
|
-
hasReachedCustomerGroupsErrorLimit,
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export default useCustomerGroupsPlatformLimits;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './use-customer-groups-platform-limits-fetcher';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
usePlatformLimitsFetcher,
|
|
3
|
-
RESOURCES_WITH_PLATFORM_LIMITS,
|
|
4
|
-
} from '../../../shared';
|
|
5
|
-
|
|
6
|
-
const useCustomerGroupsPlatformLimitsFetcher = () => {
|
|
7
|
-
const { isLoading, error, platformLimits, refetch } =
|
|
8
|
-
usePlatformLimitsFetcher(RESOURCES_WITH_PLATFORM_LIMITS.customerGroups);
|
|
9
|
-
|
|
10
|
-
return {
|
|
11
|
-
isLoading,
|
|
12
|
-
error,
|
|
13
|
-
platformLimits,
|
|
14
|
-
refetch,
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export default useCustomerGroupsPlatformLimitsFetcher;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
screen,
|
|
3
|
-
renderApp,
|
|
4
|
-
} from '@commercetools-frontend/application-shell/test-utils';
|
|
5
|
-
import usePlatformLimitsFetcher from '../../../shared/hooks/use-platform-limits-fetcher';
|
|
6
|
-
import useCustomerGroupsPlatformLimitsFetcher from './use-customer-groups-platform-limits-fetcher';
|
|
7
|
-
|
|
8
|
-
jest.mock('../../../shared/hooks/use-platform-limits-fetcher');
|
|
9
|
-
|
|
10
|
-
const TestComponent = () => {
|
|
11
|
-
const customerGroupsPlatformLimits = useCustomerGroupsPlatformLimitsFetcher();
|
|
12
|
-
|
|
13
|
-
const { limit, current } =
|
|
14
|
-
customerGroupsPlatformLimits.platformLimits.customerGroups.total;
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<ul>
|
|
18
|
-
<li>
|
|
19
|
-
Has customer groups platform limit:{' '}
|
|
20
|
-
{customerGroupsPlatformLimits.platformLimits.customerGroups
|
|
21
|
-
? 'Yes'
|
|
22
|
-
: 'No'}
|
|
23
|
-
</li>
|
|
24
|
-
<li>Customer groups platform limit is: {limit}</li>
|
|
25
|
-
<li>Customer groups platform current is: {current}</li>
|
|
26
|
-
</ul>
|
|
27
|
-
);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
describe('useCustomerGroupsPlatformLimitsFetcher', () => {
|
|
31
|
-
it('should return {limit} and {current} for customers platform limit', async () => {
|
|
32
|
-
usePlatformLimitsFetcher.withCustomerGroupsWithNonExceeded();
|
|
33
|
-
renderApp(<TestComponent />);
|
|
34
|
-
|
|
35
|
-
expect(
|
|
36
|
-
screen.getByText(/Has customer groups platform limit: Yes/i)
|
|
37
|
-
).toBeInTheDocument();
|
|
38
|
-
expect(
|
|
39
|
-
screen.getByText(/Customer groups platform limit is: 10/i)
|
|
40
|
-
).toBeInTheDocument();
|
|
41
|
-
expect(
|
|
42
|
-
screen.getByText(/Customer groups platform current is: 2/i)
|
|
43
|
-
).toBeInTheDocument();
|
|
44
|
-
});
|
|
45
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './use-customer-groups-platform-limits-modal-state';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { useEffect } from 'react';
|
|
2
|
-
import { useLimitsModalState } from '../../../shared/hooks';
|
|
3
|
-
import useCustomerGroupsPlatformLimitsStatus from '../use-customer-groups-platform-limits-status';
|
|
4
|
-
|
|
5
|
-
const useCustomerGroupsPlatormLimitsModalState = () => {
|
|
6
|
-
const customerGroupsPlatformLimitsStatus =
|
|
7
|
-
useCustomerGroupsPlatformLimitsStatus();
|
|
8
|
-
const limitsModalState = useLimitsModalState(false);
|
|
9
|
-
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
if (customerGroupsPlatformLimitsStatus.hasReachedCustomerGroupsErrorLimit) {
|
|
12
|
-
limitsModalState.openModal();
|
|
13
|
-
}
|
|
14
|
-
}, [customerGroupsPlatformLimitsStatus, limitsModalState]);
|
|
15
|
-
|
|
16
|
-
return {
|
|
17
|
-
isModalOpen: limitsModalState.isModalOpen,
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export default useCustomerGroupsPlatormLimitsModalState;
|