@commercetools-frontend/experimental-components 6.4.0 → 6.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commercetools-frontend-experimental-components.cjs.d.ts +2 -0
- package/dist/commercetools-frontend-experimental-components.cjs.dev.js +85 -34
- package/dist/commercetools-frontend-experimental-components.cjs.prod.js +83 -30
- package/dist/commercetools-frontend-experimental-components.esm.js +85 -35
- package/dist/declarations/src/actions/reference-search/category/category.d.ts +2 -0
- package/dist/declarations/src/components/attribute-definitions/reference-search/cart-discount-reference-search/cart-discount-reference-search.d.ts +14 -0
- package/dist/declarations/src/components/attribute-definitions/reference-search/category-reference-search/category-reference-search.d.ts +17 -0
- package/dist/declarations/src/components/attribute-definitions/reference-search/category-reference-search/use-cached-category-options.d.ts +1 -0
- package/dist/declarations/src/components/buttons/button/button.d.ts +16 -0
- package/dist/declarations/src/components/buttons/file-input/file-input.d.ts +17 -0
- package/dist/declarations/src/components/centered-loading-spinner/centered-loading-spinner.d.ts +9 -0
- package/dist/declarations/src/components/centered-loading-spinner/index.d.ts +1 -0
- package/dist/declarations/src/components/channel-picker-input/channel-picker-input.d.ts +32 -0
- package/dist/declarations/src/components/channel-picker-input/index.d.ts +1 -0
- package/dist/declarations/src/components/country-picker/country-picker.d.ts +25 -0
- package/dist/declarations/src/components/country-picker/index.d.ts +1 -0
- package/dist/declarations/src/components/customer-group-picker-input/customer-group-picker-input.d.ts +28 -0
- package/dist/declarations/src/components/customer-group-picker-input/index.d.ts +1 -0
- package/dist/declarations/src/components/divider/divider.d.ts +12 -0
- package/dist/declarations/src/components/divider/index.d.ts +1 -0
- package/dist/declarations/src/components/formatted-date-time/formatted-date-time.d.ts +17 -0
- package/dist/declarations/src/components/formatted-localized-string/formatted-localized-string.d.ts +6 -0
- package/dist/declarations/src/components/formatted-localized-string/index.d.ts +1 -0
- package/dist/declarations/src/components/keep-display-name/index.d.ts +1 -0
- package/dist/declarations/src/components/keep-display-name/keep-display-name.d.ts +2 -0
- package/dist/declarations/src/components/messages.d.ts +16 -0
- package/dist/declarations/src/components/product-attributes/conversions.d.ts +18 -0
- package/dist/declarations/src/components/product-attributes/index.d.ts +3 -0
- package/dist/declarations/src/components/product-attributes/product-attribute-input.d.ts +13 -0
- package/dist/declarations/src/components/product-attributes/product-attributes.d.ts +18 -0
- package/dist/declarations/src/components/product-picker-input/index.d.ts +1 -0
- package/dist/declarations/src/components/product-picker-input/product-picker-input.d.ts +30 -0
- package/dist/declarations/src/components/product-selection-picker/index.d.ts +1 -0
- package/dist/declarations/src/components/product-selection-picker/product-selection-picker.d.ts +42 -0
- package/dist/declarations/src/components/required-indicator/required-indicator.d.ts +10 -0
- package/dist/declarations/src/components/scroll-to-field-error/scroll-to-field-error.d.ts +2 -0
- package/dist/declarations/src/components/selectable-field-search-input/selectable-field-search-input.d.ts +14 -0
- package/dist/declarations/src/components/store-select-field/store-select-field.d.ts +46 -0
- package/dist/declarations/src/components/store-select-input/components/stores-search-select-input/mocks/handlers.d.ts +6 -0
- package/dist/declarations/src/components/store-select-input/components/stores-search-select-input/mocks/index.d.ts +2 -0
- package/dist/declarations/src/components/store-select-input/hooks/use-stores-by-field-fetcher/mocks/handlers.d.ts +6 -0
- package/dist/declarations/src/components/store-select-input/hooks/use-stores-by-field-fetcher/mocks/index.d.ts +2 -0
- package/dist/declarations/src/components/store-select-input/hooks/use-total-number-of-stores-fetcher/mocks/handlers.d.ts +6 -0
- package/dist/declarations/src/components/store-select-input/hooks/use-total-number-of-stores-fetcher/mocks/index.d.ts +2 -0
- package/dist/declarations/src/components/store-select-input/hooks/use-total-number-of-stores-fetcher/use-total-number-of-stores-fetcher.d.ts +5 -0
- package/dist/declarations/src/components/store-select-input/store-select-input.d.ts +47 -0
- package/dist/declarations/src/components/store-select-input/utils.d.ts +18 -0
- package/dist/declarations/src/components/validated-input/validated-input.d.ts +148 -0
- package/dist/declarations/src/constants/index.d.ts +72 -0
- package/dist/declarations/src/custom-fields/custom-field-definitions-connector/custom-field-definitions-connector.d.ts +25 -0
- package/dist/declarations/src/custom-fields/custom-field-definitions-connector/index.d.ts +1 -0
- package/dist/declarations/src/custom-fields/custom-field-definitions-connector/mocks/handlers.d.ts +6 -0
- package/dist/declarations/src/custom-fields/custom-field-definitions-connector/mocks/index.d.ts +2 -0
- package/dist/declarations/src/custom-fields/custom-field-type-definitions-connector/custom-field-type-definitions-connector.d.ts +56 -0
- package/dist/declarations/src/custom-fields/custom-field-type-definitions-connector/index.d.ts +1 -0
- package/dist/declarations/src/custom-fields/custom-fields/custom-field-tooltip.d.ts +11 -0
- package/dist/declarations/src/custom-fields/custom-fields/custom-fields.d.ts +13 -0
- package/dist/declarations/src/custom-fields/custom-fields/dnd-provider.d.ts +30 -0
- package/dist/declarations/src/custom-fields/custom-fields/index.d.ts +5 -0
- package/dist/declarations/src/custom-fields/custom-fields/validations/index.d.ts +1 -0
- package/dist/declarations/src/custom-fields/custom-fields/validations/validations.d.ts +1 -0
- package/dist/declarations/src/custom-fields/custom-fields-error-text-notification/custom-fields-error-text-notification.d.ts +8 -0
- package/dist/declarations/src/custom-fields/custom-fields-form-field/custom-fields-form-field.d.ts +23 -0
- package/dist/declarations/src/custom-fields/custom-fields-form-field/index.d.ts +1 -0
- package/dist/declarations/src/custom-fields/custom-fields-form-field/utils.d.ts +46 -0
- package/dist/declarations/src/features/picker/index.d.ts +5 -0
- package/dist/declarations/src/features/picker/shared/components/index.d.ts +1 -0
- package/dist/declarations/src/features/picker/shared/components/option.d.ts +14 -0
- package/dist/declarations/src/features/picker/shared/hooks/use-current-option.d.ts +12 -0
- package/dist/declarations/src/features/picker/shared/hooks/use-handlers.d.ts +2 -0
- package/dist/declarations/src/features/picker/shared/hooks/use-load-options.d.ts +6 -0
- package/dist/declarations/src/features/picker/shared/hooks/use-product-type-options.d.ts +18 -0
- package/dist/declarations/src/features/pim-indexer/components/pim-indexer-context/pim-indexer-context.d.ts +13 -0
- package/dist/declarations/src/features/pim-indexer/components/pim-indexer-provider/index.d.ts +1 -0
- package/dist/declarations/src/features/pim-indexer/components/pim-indexer-provider/pim-indexer-provider.d.ts +44 -0
- package/dist/declarations/src/features/pim-indexer/components/with-pim-indexer/index.d.ts +1 -0
- package/dist/declarations/src/features/pim-indexer/components/with-pim-indexer/with-pim-indexer.d.ts +11 -0
- package/dist/declarations/src/features/pim-indexer/hocs/inject-pim-indexer/index.d.ts +1 -0
- package/dist/declarations/src/features/pim-indexer/hocs/inject-pim-indexer/inject-pim-indexer.d.ts +5 -0
- package/dist/declarations/src/features/pim-indexer/hooks/use-pim-indexer/index.d.ts +1 -0
- package/dist/declarations/src/features/pim-indexer/hooks/use-pim-indexer/use-pim-indexer.d.ts +1 -0
- package/dist/declarations/src/features/pim-indexer/index.d.ts +5 -0
- package/dist/declarations/src/features/platform-limits/customer-groups/hocs/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/customer-groups/hocs/inject-customer-groups-platform-limits/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/customer-groups/hocs/inject-customer-groups-platform-limits/inject-customer-groups-platform-limits.d.ts +5 -0
- package/dist/declarations/src/features/platform-limits/customer-groups/hooks/index.d.ts +4 -0
- package/dist/declarations/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits/use-customer-groups-platform-limits.d.ts +41 -0
- package/dist/declarations/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-fetcher/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-fetcher/use-customer-groups-platform-limits-fetcher.d.ts +7 -0
- package/dist/declarations/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-modal-state/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-modal-state/use-customer-groups-platform-limits-modal-state.d.ts +4 -0
- package/dist/declarations/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-status/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-status/use-customer-groups-platform-limits-status.d.ts +5 -0
- package/dist/declarations/src/features/platform-limits/customer-groups/index.d.ts +2 -0
- package/dist/declarations/src/features/platform-limits/customers/hocs/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/customers/hocs/inject-customers-platform-limits/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/customers/hocs/inject-customers-platform-limits/inject-customers-platform-limits.d.ts +5 -0
- package/dist/declarations/src/features/platform-limits/customers/hooks/index.d.ts +4 -0
- package/dist/declarations/src/features/platform-limits/customers/hooks/use-customers-platform-limits/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/customers/hooks/use-customers-platform-limits/use-customers-platform-limits.d.ts +41 -0
- package/dist/declarations/src/features/platform-limits/customers/hooks/use-customers-platform-limits-fetcher/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/customers/hooks/use-customers-platform-limits-fetcher/use-customers-platform-limits-fetcher.d.ts +7 -0
- package/dist/declarations/src/features/platform-limits/customers/hooks/use-customers-platform-limits-modal-state/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/customers/hooks/use-customers-platform-limits-modal-state/use-customers-platform-limits-modal-state.d.ts +4 -0
- package/dist/declarations/src/features/platform-limits/customers/hooks/use-customers-platform-limits-status/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/customers/hooks/use-customers-platform-limits-status/use-customers-platform-limits-status.d.ts +5 -0
- package/dist/declarations/src/features/platform-limits/customers/index.d.ts +2 -0
- package/dist/declarations/src/features/platform-limits/index.d.ts +5 -0
- package/dist/declarations/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/mocks/handlers.d.ts +6 -0
- package/dist/declarations/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/mocks/index.d.ts +2 -0
- package/dist/declarations/src/features/platform-limits/shipping-methods/hocs/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/shipping-methods/hocs/inject-shipping-methods-platform-limits/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/shipping-methods/hocs/inject-shipping-methods-platform-limits/inject-shipping-methods-platform-limits.d.ts +5 -0
- package/dist/declarations/src/features/platform-limits/shipping-methods/hooks/index.d.ts +3 -0
- package/dist/declarations/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits/use-shipping-methods-platform-limits.d.ts +27 -0
- package/dist/declarations/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits-fetcher/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits-fetcher/use-shipping-methods-platform-limits-fetcher.d.ts +7 -0
- package/dist/declarations/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits-status/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits-status/use-shipping-methods-platform-limits-status.d.ts +5 -0
- package/dist/declarations/src/features/platform-limits/shipping-methods/index.d.ts +2 -0
- package/dist/declarations/src/features/platform-limits/tax-categories/hocs/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/tax-categories/hocs/inject-tax-categories-platform-limits/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/tax-categories/hocs/inject-tax-categories-platform-limits/inject-tax-categories-platform-limits.d.ts +5 -0
- package/dist/declarations/src/features/platform-limits/tax-categories/hooks/index.d.ts +3 -0
- package/dist/declarations/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits/use-tax-categories-platform-limits.d.ts +27 -0
- package/dist/declarations/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits-fetcher/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits-fetcher/use-tax-categories-platform-limits-fetcher.d.ts +7 -0
- package/dist/declarations/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits-status/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits-status/use-tax-categories-platform-limits-status.d.ts +5 -0
- package/dist/declarations/src/features/platform-limits/tax-categories/index.d.ts +2 -0
- package/dist/declarations/src/features/platform-limits/zones/hocs/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/zones/hocs/inject-zones-platform-limits/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/zones/hocs/inject-zones-platform-limits/inject-zones-platform-limits.d.ts +5 -0
- package/dist/declarations/src/features/platform-limits/zones/hooks/index.d.ts +3 -0
- package/dist/declarations/src/features/platform-limits/zones/hooks/use-zones-platform-limits/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/zones/hooks/use-zones-platform-limits/use-zones-platform-limits.d.ts +27 -0
- package/dist/declarations/src/features/platform-limits/zones/hooks/use-zones-platform-limits-fetcher/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/zones/hooks/use-zones-platform-limits-fetcher/use-zones-platform-limits-fetcher.d.ts +7 -0
- package/dist/declarations/src/features/platform-limits/zones/hooks/use-zones-platform-limits-status/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/zones/hooks/use-zones-platform-limits-status/use-zones-platform-limits-status.d.ts +5 -0
- package/dist/declarations/src/features/platform-limits/zones/index.d.ts +2 -0
- package/dist/declarations/src/fields/boolean-field/boolean-field.d.ts +26 -0
- package/dist/declarations/src/fields/boolean-field/index.d.ts +3 -0
- package/dist/declarations/src/fields/boolean-field/messages.d.ts +16 -0
- package/dist/declarations/src/fields/label-range/label-range.d.ts +10 -0
- package/dist/declarations/src/fields/missing-value-field/index.d.ts +2 -0
- package/dist/declarations/src/fields/missing-value-field/messages.d.ts +8 -0
- package/dist/declarations/src/fields/missing-value-field/missing-value-field.d.ts +11 -0
- package/dist/declarations/src/fields/multi-value-search-input/multi-value-search-input.d.ts +12 -0
- package/dist/declarations/src/fields/numeric-format-input/numeric-format-input.d.ts +58 -0
- package/dist/declarations/src/fields/search-input/messages.d.ts +16 -0
- package/dist/declarations/src/fields/search-input/search-input.d.ts +55 -0
- package/dist/declarations/src/fields/throttled-field/throttled-field.d.ts +53 -0
- package/dist/declarations/src/hocs/index.d.ts +9 -0
- package/dist/declarations/src/hocs/inject-data-table-pagination-state/index.d.ts +1 -0
- package/dist/declarations/src/hocs/inject-data-table-pagination-state/inject-data-table-pagination-state.d.ts +10 -0
- package/dist/declarations/src/hocs/inject-modal-state/index.d.ts +1 -0
- package/dist/declarations/src/hocs/inject-modal-state/inject-modal-state.d.ts +5 -0
- package/dist/declarations/src/hocs/inject-notifications/index.d.ts +1 -0
- package/dist/declarations/src/hocs/inject-notifications/inject-notifications.d.ts +5 -0
- package/dist/declarations/src/hocs/inject-storage/index.d.ts +1 -0
- package/dist/declarations/src/hocs/inject-storage/inject-storage.d.ts +5 -0
- package/dist/declarations/src/hocs/inject-toggle-state/index.d.ts +1 -0
- package/dist/declarations/src/hocs/inject-toggle-state/inject-toggle-state.d.ts +5 -0
- package/dist/declarations/src/hocs/utils/get-display-name/get-display-name.d.ts +2 -0
- package/dist/declarations/src/hocs/utils/get-display-name/index.d.ts +1 -0
- package/dist/declarations/src/hocs/utils/index.d.ts +2 -0
- package/dist/declarations/src/hocs/utils/set-display-name/index.d.ts +1 -0
- package/dist/declarations/src/hocs/utils/set-display-name/set-display-name.d.ts +2 -0
- package/dist/declarations/src/hocs/with-props/index.d.ts +1 -0
- package/dist/declarations/src/hocs/with-props/with-props.d.ts +5 -0
- package/dist/declarations/src/hocs/with-redirect-to/index.d.ts +1 -0
- package/dist/declarations/src/hocs/with-redirect-to/with-redirect-to.d.ts +5 -0
- package/dist/declarations/src/hocs/wrap-display-name/index.d.ts +1 -0
- package/dist/declarations/src/hocs/wrap-display-name/wrap-display-name.d.ts +2 -0
- package/dist/declarations/src/hooks/index.d.ts +18 -0
- package/dist/declarations/src/hooks/use-debounced-promise-callback.d.ts +2 -0
- package/dist/declarations/src/hooks/use-did-form-validation-fail/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-did-form-validation-fail/use-did-form-validation-fail.d.ts +1 -0
- package/dist/declarations/src/hooks/use-event-callback/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-event-callback/use-event-callback.d.ts +2 -0
- package/dist/declarations/src/hooks/use-format-localized-field-to-string/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-format-localized-field-to-string/use-format-localized-field-to-string.d.ts +11 -0
- package/dist/declarations/src/hooks/use-format-localized-string/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-format-localized-string/use-format-localized-string.d.ts +5 -0
- package/dist/declarations/src/hooks/use-is-field-duplicated/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-is-field-duplicated/mocks/handlers.d.ts +6 -0
- package/dist/declarations/src/hooks/use-is-field-duplicated/mocks/index.d.ts +2 -0
- package/dist/declarations/src/hooks/use-is-field-duplicated/use-is-field-duplicated.d.ts +43 -0
- package/dist/declarations/src/hooks/use-localized-key-fallback/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-localized-key-fallback/use-localized-key-fallback.d.ts +2 -0
- package/dist/declarations/src/hooks/use-pending-requests/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-pending-requests/use-pending-requests.d.ts +6 -0
- package/dist/declarations/src/hooks/use-persisted-reminder/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-persisted-reminder/use-persisted-reminder.d.ts +2 -0
- package/dist/declarations/src/hooks/use-persisted-table-configuration/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-persisted-table-configuration/use-persisted-table-configuration.d.ts +8 -0
- package/dist/declarations/src/hooks/use-previous/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-previous/use-previous.d.ts +2 -0
- package/dist/declarations/src/hooks/use-product-selections-fetcher/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-product-selections-fetcher/mocks/handlers.d.ts +6 -0
- package/dist/declarations/src/hooks/use-product-selections-fetcher/mocks/index.d.ts +2 -0
- package/dist/declarations/src/hooks/use-product-selections-fetcher/use-product-selections-fetcher.d.ts +10 -0
- package/dist/declarations/src/hooks/use-product-selections-total-fetcher/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-product-selections-total-fetcher/mocks/handlers.d.ts +6 -0
- package/dist/declarations/src/hooks/use-product-selections-total-fetcher/mocks/index.d.ts +2 -0
- package/dist/declarations/src/hooks/use-product-selections-total-fetcher/use-product-selections-total-fetcher.d.ts +5 -0
- package/dist/declarations/src/hooks/use-role-based-channels-fetcher/test-utils.d.ts +2 -0
- package/dist/declarations/src/hooks/use-role-notification/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-role-notification/use-role-notification.d.ts +4 -0
- package/dist/declarations/src/hooks/use-role-notification-effect/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-role-notification-effect/use-role-notification-effect.d.ts +2 -0
- package/dist/declarations/src/hooks/use-storage/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-storage/use-storage.d.ts +7 -0
- package/dist/declarations/src/hooks/use-store-keys-in-data-fence/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-store-keys-in-data-fence/use-store-keys-in-data-fence.d.ts +6 -0
- package/dist/declarations/src/hooks/use-stores-list-fetcher/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-stores-list-fetcher/mocks/handlers.d.ts +7 -0
- package/dist/declarations/src/hooks/use-stores-list-fetcher/mocks/index.d.ts +2 -0
- package/dist/declarations/src/hooks/use-stores-list-fetcher/use-stores-list-fetcher.d.ts +40 -0
- package/dist/declarations/src/index.d.ts +116 -0
- package/dist/declarations/src/test-utils.d.ts +10 -0
- package/dist/declarations/src/utils/array-helpers/array-helpers.d.ts +1 -0
- package/dist/declarations/src/utils/attributes/attributes.d.ts +14 -0
- package/dist/declarations/src/utils/build-search-query/build-search-query.d.ts +2 -0
- package/dist/declarations/src/utils/bulk-notifications/get-bulk-notification.d.ts +13 -0
- package/dist/declarations/src/utils/business-roles/business-role-constants.d.ts +11 -0
- package/dist/declarations/src/utils/business-roles/business-roles.d.ts +2 -0
- package/dist/declarations/src/utils/business-roles/index.d.ts +4 -0
- package/dist/declarations/src/utils/business-roles/messages.d.ts +64 -0
- package/dist/declarations/src/utils/capitalize-first/capitalize-first.d.ts +1 -0
- package/dist/declarations/src/utils/categories/categories.d.ts +20 -0
- package/dist/declarations/src/utils/clone/clone.d.ts +1 -0
- package/dist/declarations/src/utils/coerce-to-integer/coerce-to-integer.d.ts +1 -0
- package/dist/declarations/src/utils/connector/connector.d.ts +19 -0
- package/dist/declarations/src/utils/constants.d.ts +39 -0
- package/dist/declarations/src/utils/conversions/sort-array.d.ts +1 -0
- package/dist/declarations/src/utils/create-next-sort-definition/create-next-sort-definition.d.ts +11 -0
- package/dist/declarations/src/utils/create-reducer/create-reducer.d.ts +6 -0
- package/dist/declarations/src/utils/create-resource-reducer/create-resource-reducer.d.ts +1 -0
- package/dist/declarations/src/utils/customer/format-customer-address/format-customer-address.d.ts +4 -0
- package/dist/declarations/src/utils/customer/format-customer-name/format-customer-name.d.ts +4 -0
- package/dist/declarations/src/utils/dataset/dataset.d.ts +3 -0
- package/dist/declarations/src/utils/encodings/encodings.d.ts +2 -0
- package/dist/declarations/src/utils/encodings/index.d.ts +1 -0
- package/dist/declarations/src/utils/filters/custom-fields/custom-fields.d.ts +1 -0
- package/dist/declarations/src/utils/filters/custom-fields/index.d.ts +1 -0
- package/dist/declarations/src/utils/filters/date/date.d.ts +6 -0
- package/dist/declarations/src/utils/filters/date/index.d.ts +1 -0
- package/dist/declarations/src/utils/filters/graphql/category-level/category-level.d.ts +1 -0
- package/dist/declarations/src/utils/filters/graphql/category-level/index.d.ts +1 -0
- package/dist/declarations/src/utils/filters/graphql/date/date.d.ts +5 -0
- package/dist/declarations/src/utils/filters/graphql/date/index.d.ts +1 -0
- package/dist/declarations/src/utils/filters/graphql/graphql.d.ts +29 -0
- package/dist/declarations/src/utils/filters/graphql/index.d.ts +1 -0
- package/dist/declarations/src/utils/filters/graphql/missing/index.d.ts +1 -0
- package/dist/declarations/src/utils/filters/graphql/missing/missing.d.ts +1 -0
- package/dist/declarations/src/utils/filters/graphql/missing-locale/index.d.ts +1 -0
- package/dist/declarations/src/utils/filters/graphql/missing-locale/missing-locale.d.ts +1 -0
- package/dist/declarations/src/utils/filters/graphql/number/index.d.ts +1 -0
- package/dist/declarations/src/utils/filters/graphql/number/number.d.ts +5 -0
- package/dist/declarations/src/utils/filters/graphql/reference/index.d.ts +1 -0
- package/dist/declarations/src/utils/filters/graphql/reference/reference.d.ts +5 -0
- package/dist/declarations/src/utils/filters/graphql/text/index.d.ts +1 -0
- package/dist/declarations/src/utils/filters/graphql/text/text.d.ts +1 -0
- package/dist/declarations/src/utils/filters/is-date/is-date.d.ts +12 -0
- package/dist/declarations/src/utils/filters/is-empty/index.d.ts +1 -0
- package/dist/declarations/src/utils/filters/is-empty/is-empty.d.ts +4 -0
- package/dist/declarations/src/utils/filters/validation/custom-field/custom-field.d.ts +15 -0
- package/dist/declarations/src/utils/filters/validation/custom-field/index.d.ts +2 -0
- package/dist/declarations/src/utils/filters/validation/custom-field/messages.d.ts +16 -0
- package/dist/declarations/src/utils/filters/validation/date/date.d.ts +4 -0
- package/dist/declarations/src/utils/filters/validation/date/index.d.ts +1 -0
- package/dist/declarations/src/utils/filters/validation/enum/enum.d.ts +2 -0
- package/dist/declarations/src/utils/filters/validation/number/index.d.ts +1 -0
- package/dist/declarations/src/utils/filters/validation/number/number.d.ts +5 -0
- package/dist/declarations/src/utils/filters/validation/text/text.d.ts +1 -0
- package/dist/declarations/src/utils/formats/custom-field/custom-field.d.ts +17 -0
- package/dist/declarations/src/utils/formats/custom-field/index.d.ts +1 -0
- package/dist/declarations/src/utils/formats/date/date.d.ts +9 -0
- package/dist/declarations/src/utils/formats/date/index.d.ts +1 -0
- package/dist/declarations/src/utils/formats/discount/discount.d.ts +1 -0
- package/dist/declarations/src/utils/formats/index.d.ts +4 -0
- package/dist/declarations/src/utils/formats/money/index.d.ts +1 -0
- package/dist/declarations/src/utils/formats/money/money.d.ts +4 -0
- package/dist/declarations/src/utils/formats/percentage/percentage.d.ts +2 -0
- package/dist/declarations/src/utils/formats/product-attribute/index.d.ts +1 -0
- package/dist/declarations/src/utils/formats/product-attribute/product-attribute.d.ts +9 -0
- package/dist/declarations/src/utils/get-prefix-search-bounds/get-prefix-search-bounds.d.ts +2 -0
- package/dist/declarations/src/utils/graphql/graphql.d.ts +26 -0
- package/dist/declarations/src/utils/has-error-code/has-invalid-input-error.d.ts +2 -0
- package/dist/declarations/src/utils/has-error-code/has-semantic-error.d.ts +2 -0
- package/dist/declarations/src/utils/is-uuid/is-uuid.d.ts +2 -0
- package/dist/declarations/src/utils/minusify/minusify.d.ts +1 -0
- package/dist/declarations/src/utils/omit-deep/omit-deep.d.ts +2 -0
- package/dist/declarations/src/utils/pim-query-clauses.d.ts +30 -0
- package/dist/declarations/src/utils/prices/prices.d.ts +8 -0
- package/dist/declarations/src/utils/product-selections/convert-product-selection-from-graphql.d.ts +14 -0
- package/dist/declarations/src/utils/products/products.d.ts +57 -0
- package/dist/declarations/src/utils/query-string/query-string.d.ts +3 -0
- package/dist/declarations/src/utils/request-cache/request-cache.d.ts +17 -0
- package/dist/declarations/src/utils/shallow-equal/shallow-equal.d.ts +1 -0
- package/dist/declarations/src/utils/should-update-attribute-input/should-update-attribute-input.d.ts +6 -0
- package/dist/declarations/src/utils/slugify/slugify.d.ts +1 -0
- package/dist/declarations/src/utils/swap-array-items/swap-array-items.d.ts +2 -0
- package/dist/declarations/src/utils/text-fallback/text-fallback.d.ts +1 -0
- package/dist/declarations/src/utils/time-zones/time-zone-utils.d.ts +6 -0
- package/dist/declarations/src/utils/transform-to-proper-noun-case/transform-to-proper-noun-case.d.ts +2 -0
- package/dist/declarations/src/utils/truncate/index.d.ts +1 -0
- package/dist/declarations/src/utils/truncate/truncate.d.ts +1 -0
- package/dist/declarations/src/utils/type-definitions/type-definitions.d.ts +18 -0
- package/dist/declarations/src/utils/validation/get-indexes-of-invalid-values.d.ts +1 -0
- package/dist/declarations/src/utils/validation/index.d.ts +4 -0
- package/dist/declarations/src/utils/validation/messages.d.ts +64 -0
- package/dist/declarations/src/utils/validation/validation.d.ts +23 -0
- package/dist/declarations/src/utils/validation/without-empty-errors-by-field.d.ts +2 -0
- package/dist/declarations/src/utils/with-pending-requests/with-pending-requests.d.ts +5 -0
- package/dist/styles.css +21 -21
- package/package.json +26 -25
- package/test-utils/dist/commercetools-frontend-experimental-components-test-utils.cjs.d.ts +2 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export namespace MC_RESOURCES_WITH_KEYS {
|
|
2
|
+
let ASSOCIATE_ROLE: string;
|
|
3
|
+
let ATTRIBUTE_GROUP: string;
|
|
4
|
+
let BUSINESS_UNIT: string;
|
|
5
|
+
let CART: string;
|
|
6
|
+
let CART_DISCOUNT: string;
|
|
7
|
+
let CATEGORY: string;
|
|
8
|
+
let CHANNEL: string;
|
|
9
|
+
let CUSTOMER: string;
|
|
10
|
+
let CUSTOMER_GROUP: string;
|
|
11
|
+
let DISCOUNT_CODE: string;
|
|
12
|
+
let INVENTORY_ENTRY: string;
|
|
13
|
+
let ORDER: string;
|
|
14
|
+
let PAYMENT: string;
|
|
15
|
+
let PRODUCT: string;
|
|
16
|
+
let PRODUCT_DISCOUNT: string;
|
|
17
|
+
let PRODUCT_SELECTION: string;
|
|
18
|
+
let PRODUCT_TYPE: string;
|
|
19
|
+
let SHIPPING_METHOD: string;
|
|
20
|
+
let STORE: string;
|
|
21
|
+
let TAX_CATEGORY: string;
|
|
22
|
+
let ZONE: string;
|
|
23
|
+
}
|
|
24
|
+
export function getSkipVariables(resourceType: any): {};
|
|
25
|
+
export function getWhereClause({ field, fieldValue, id }?: {
|
|
26
|
+
field: any;
|
|
27
|
+
fieldValue: any;
|
|
28
|
+
id: any;
|
|
29
|
+
}): string | null;
|
|
30
|
+
export default useIsFieldDuplicated;
|
|
31
|
+
declare function useIsFieldDuplicated(): {
|
|
32
|
+
getQueryVariables: ({ resourceType, field, fieldValue, id }: {
|
|
33
|
+
resourceType: any;
|
|
34
|
+
field?: string | undefined;
|
|
35
|
+
fieldValue: any;
|
|
36
|
+
id: any;
|
|
37
|
+
}) => {
|
|
38
|
+
where: string | null;
|
|
39
|
+
};
|
|
40
|
+
isLoading: boolean;
|
|
41
|
+
isFieldDuplicated: boolean | null;
|
|
42
|
+
queryIsFieldDuplicated: import("@apollo/client").LazyQueryExecFunction<any, import("@apollo/client").OperationVariables>;
|
|
43
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./use-localized-key-fallback.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./use-pending-requests.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./use-persisted-reminder.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./use-persisted-table-configuration.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default usePersistedTableConfiguration;
|
|
2
|
+
declare function usePersistedTableConfiguration(props: any): {
|
|
3
|
+
visibleColumns: any;
|
|
4
|
+
visibleColumnKeys: any;
|
|
5
|
+
cachedVisibleColumnsConfiguration: any;
|
|
6
|
+
cachedDisplaySettings: any;
|
|
7
|
+
handleCachedTableConfigurationUpdate: (update: any) => any;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./use-previous.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./use-product-selections-fetcher.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default useProductSelectionsFetcher;
|
|
2
|
+
declare function useProductSelectionsFetcher(props: any): {
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
productSelections: any;
|
|
5
|
+
refetch: (variables?: Partial<{
|
|
6
|
+
limit: any;
|
|
7
|
+
offset: any;
|
|
8
|
+
sort: any;
|
|
9
|
+
}> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./use-product-selections-total-fetcher.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./use-role-notification.jsx";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./use-role-notification-effect.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, type UseStorageOptions } from "./use-storage.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type StorageType = 'local' | 'session';
|
|
2
|
+
export type UseStorageOptions = {
|
|
3
|
+
storageType: StorageType;
|
|
4
|
+
segregateByUser: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const useStorage: <TStorageState>(storageKey: string, initialStorageValue: TStorageState, options?: Partial<UseStorageOptions>) => [TStorageState | null, (nextStorageValue: TStorageState) => void, () => TStorageState | null];
|
|
7
|
+
export default useStorage;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./use-store-keys-in-data-fence.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./use-stores-list-fetcher.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export default handlers;
|
|
2
|
+
declare namespace handlers {
|
|
3
|
+
namespace StoresList {
|
|
4
|
+
function all(stores: any): import("msw").GraphQLHandler<import("msw").GraphQLRequest<import("msw").GraphQLVariables>>;
|
|
5
|
+
function withProductSelections(stores: any): import("msw").GraphQLHandler<import("msw").GraphQLRequest<import("msw").GraphQLVariables>>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export function createQueryVariables(ownProps: any): {
|
|
2
|
+
excludeExtendedStoresList: any;
|
|
3
|
+
excludeProductSelections: any;
|
|
4
|
+
where?: string | undefined;
|
|
5
|
+
limit: any;
|
|
6
|
+
offset: any;
|
|
7
|
+
sort: any;
|
|
8
|
+
};
|
|
9
|
+
export default useStoresListFetcher;
|
|
10
|
+
declare function useStoresListFetcher(props: any): {
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
refetch: (variables?: Partial<{
|
|
13
|
+
excludeExtendedStoresList: any;
|
|
14
|
+
excludeProductSelections: any;
|
|
15
|
+
where?: string | undefined;
|
|
16
|
+
limit: any;
|
|
17
|
+
offset: any;
|
|
18
|
+
sort: any;
|
|
19
|
+
}> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
20
|
+
stores: {
|
|
21
|
+
total: any;
|
|
22
|
+
count: any;
|
|
23
|
+
offset: any;
|
|
24
|
+
results: any;
|
|
25
|
+
} | null;
|
|
26
|
+
refetchQuery: {
|
|
27
|
+
query: any;
|
|
28
|
+
variables: {
|
|
29
|
+
excludeExtendedStoresList: any;
|
|
30
|
+
excludeProductSelections: any;
|
|
31
|
+
where?: string | undefined;
|
|
32
|
+
limit: any;
|
|
33
|
+
offset: any;
|
|
34
|
+
sort: any;
|
|
35
|
+
};
|
|
36
|
+
context: {
|
|
37
|
+
target: "ctp";
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { searchCategories } from "./actions/reference-search/category/category.js";
|
|
2
|
+
import { CategorySearchPickerOptionFragment } from './actions/reference-search/category/category.ctp.graphql';
|
|
3
|
+
import CartDiscountReferenceSearch from "./components/attribute-definitions/reference-search/cart-discount-reference-search/cart-discount-reference-search.jsx";
|
|
4
|
+
import CategoryReferenceSearch from "./components/attribute-definitions/reference-search/category-reference-search/category-reference-search.jsx";
|
|
5
|
+
import useCachedCategoryOptions from "./components/attribute-definitions/reference-search/category-reference-search/use-cached-category-options.js";
|
|
6
|
+
import Button from "./components/buttons/button/button.jsx";
|
|
7
|
+
import FileInput from "./components/buttons/file-input/file-input.jsx";
|
|
8
|
+
import CenteredLoadingSpinner from "./components/centered-loading-spinner/index.js";
|
|
9
|
+
import ChannelPickerInput from "./components/channel-picker-input/index.js";
|
|
10
|
+
import CountriesPicker from "./components/country-picker/index.js";
|
|
11
|
+
import CustomerGroupPickerInput from "./components/customer-group-picker-input/index.js";
|
|
12
|
+
import Divider from "./components/divider/index.js";
|
|
13
|
+
import FormattedDateTime from "./components/formatted-date-time/formatted-date-time.jsx";
|
|
14
|
+
import { FormattedLocalizedString } from "./components/formatted-localized-string/index.js";
|
|
15
|
+
import keepDisplayName from "./components/keep-display-name/index.js";
|
|
16
|
+
import pickerMessages from "./components/messages.js";
|
|
17
|
+
import ProductAttributes, { nameValuePairsToMap, attributesMapToNameValuePairs } from "./components/product-attributes/index.js";
|
|
18
|
+
import ProductAttributeInput from "./components/product-attributes/product-attribute-input.jsx";
|
|
19
|
+
import ProductPickerInput from "./components/product-picker-input/index.js";
|
|
20
|
+
import ProductSelectionPicker from "./components/product-selection-picker/index.js";
|
|
21
|
+
import RequiredIndicator from "./components/required-indicator/required-indicator.jsx";
|
|
22
|
+
import ScrollToFieldError from "./components/scroll-to-field-error/scroll-to-field-error.js";
|
|
23
|
+
import SelectableFieldSearchInput from "./components/selectable-field-search-input/selectable-field-search-input.jsx";
|
|
24
|
+
import StoreSelectField from "./components/store-select-field/store-select-field.jsx";
|
|
25
|
+
import useTotalNumberOfStoresFetcher from "./components/store-select-input/hooks/use-total-number-of-stores-fetcher/use-total-number-of-stores-fetcher.js";
|
|
26
|
+
import StoreSelectInput from "./components/store-select-input/store-select-input.jsx";
|
|
27
|
+
import { mapStoresToOptions } from "./components/store-select-input/utils.js";
|
|
28
|
+
import validatedInput, { EMAIL_REGEX, VALIDATOR_REQUIRED, VALIDATOR_NUMERIC, VALIDATOR_INTEGER } from "./components/validated-input/validated-input.jsx";
|
|
29
|
+
import CustomFieldDefinitionsConnector from "./custom-fields/custom-field-definitions-connector/index.js";
|
|
30
|
+
import CustomFieldTypeDefinitionsConnector from "./custom-fields/custom-field-type-definitions-connector/index.js";
|
|
31
|
+
import CustomFields, { validateCustomFields, useDnDContext } from "./custom-fields/custom-fields/index.js";
|
|
32
|
+
import CustomFieldTooltip from "./custom-fields/custom-fields/custom-field-tooltip.jsx";
|
|
33
|
+
import CustomFieldsErrorTextNotification from "./custom-fields/custom-fields-error-text-notification/custom-fields-error-text-notification.jsx";
|
|
34
|
+
import CustomFieldsFormField from "./custom-fields/custom-fields-form-field/index.js";
|
|
35
|
+
import { Option, getBottomOption, useLoadOptions, useCurrentOption } from "./features/picker/index.js";
|
|
36
|
+
import { PimIndexerProvider, WithPimIndexer, injectPimIndexer, usePimIndexer } from "./features/pim-indexer/index.js";
|
|
37
|
+
import { injectShippingMethodsPlatformLimits, useShippingMethodsPlatformLimits, injectTaxCategoriesPlatformLimits, useTaxCategoriesPlatformLimits, injectZonesPlatformLimits, useCustomersPlatformLimits, injectCustomersPlatformLimits, useCustomerGroupsPlatformLimits, injectCustomerGroupsPlatformLimits } from "./features/platform-limits/index.js";
|
|
38
|
+
import BooleanField, { messages as booleanMessages } from "./fields/boolean-field/index.js";
|
|
39
|
+
import LabelRange from "./fields/label-range/label-range.jsx";
|
|
40
|
+
import MissingValueField, { messages as missingValueMessages } from "./fields/missing-value-field/index.js";
|
|
41
|
+
import MultiValueSearchInput from "./fields/multi-value-search-input/multi-value-search-input.jsx";
|
|
42
|
+
import NumericFormatInput from "./fields/numeric-format-input/numeric-format-input.jsx";
|
|
43
|
+
import searchInputMessages from "./fields/search-input/messages.js";
|
|
44
|
+
import SearchInput from "./fields/search-input/search-input.jsx";
|
|
45
|
+
import ThrottledField from "./fields/throttled-field/throttled-field.jsx";
|
|
46
|
+
import { injectDataTablePaginationState, injectNotifications, wrapDisplayName, withProps, withRedirectTo, injectModalState, injectToggleState, injectStorage, getDisplayName, setDisplayName } from "./hocs/index.js";
|
|
47
|
+
import { useDebouncedPromiseCallback, useFormatLocalizedFieldToString, useIsFieldDuplicated, useLocalizedKeyFallback, usePendingRequests, usePersistedTableConfiguration, usePrevious, useProductSelectionsFetcher, useProductSelectionsTotalFetcher, useRoleNotificationEffect, useStorage, type UseStorageOptions, useStoreKeysInDataFences, useStoresListFetcher, useFormatLocalizedString } from "./hooks/index.js";
|
|
48
|
+
import { MC_RESOURCES_WITH_KEYS } from "./hooks/use-is-field-duplicated/index.js";
|
|
49
|
+
import { setToArray } from "./utils/array-helpers/array-helpers.js";
|
|
50
|
+
import { isEmptyValue, filterEmptyValues } from "./utils/attributes/attributes.js";
|
|
51
|
+
import buildSearchQuery from "./utils/build-search-query/build-search-query.js";
|
|
52
|
+
import { getBulkNotification, getCountsFromBulkSummary } from "./utils/bulk-notifications/get-bulk-notification.js";
|
|
53
|
+
import { businessRoles, businessRoleConstants, messages as businessRoleMessages } from "./utils/business-roles/index.js";
|
|
54
|
+
import capitalizeFirst from "./utils/capitalize-first/capitalize-first.js";
|
|
55
|
+
import { getPathName, getCategoryLevel, getAncestors } from "./utils/categories/categories.js";
|
|
56
|
+
import clone from "./utils/clone/clone.js";
|
|
57
|
+
import { coerceToInteger } from "./utils/coerce-to-integer/coerce-to-integer.js";
|
|
58
|
+
import { convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData } from "./utils/connector/connector.js";
|
|
59
|
+
import { PRECISION_TYPES, DefaultPageSizes } from "./utils/constants.js";
|
|
60
|
+
import { sortDataByIdsArray } from "./utils/conversions/sort-array.js";
|
|
61
|
+
import createNextSortDefinition from "./utils/create-next-sort-definition/create-next-sort-definition.js";
|
|
62
|
+
import createReducer from "./utils/create-reducer/create-reducer.js";
|
|
63
|
+
import createResourceReducer from "./utils/create-resource-reducer/create-resource-reducer.js";
|
|
64
|
+
import formatCustomerAddress from "./utils/customer/format-customer-address/format-customer-address.js";
|
|
65
|
+
import formatCustomerName from "./utils/customer/format-customer-name/format-customer-name.js";
|
|
66
|
+
import { filterDataAttributes } from "./utils/dataset/dataset.js";
|
|
67
|
+
import { stringToBase64, base64ToString } from "./utils/encodings/index.js";
|
|
68
|
+
import customFieldsTransformer from "./utils/filters/custom-fields/index.js";
|
|
69
|
+
import dateTransformer from "./utils/filters/date/index.js";
|
|
70
|
+
import graphqlQueryBuilder from "./utils/filters/graphql/index.js";
|
|
71
|
+
import graphqlCategoryLevelTransformer from "./utils/filters/graphql/category-level/index.js";
|
|
72
|
+
import graphqlDateTransformer from "./utils/filters/graphql/date/index.js";
|
|
73
|
+
import graphqlMissingTransformer from "./utils/filters/graphql/missing/index.js";
|
|
74
|
+
import graphqlMissingLocaleTransformer from "./utils/filters/graphql/missing-locale/index.js";
|
|
75
|
+
import graphqlNumberTransformer from "./utils/filters/graphql/number/index.js";
|
|
76
|
+
import graphqlReferenceTransformer from "./utils/filters/graphql/reference/index.js";
|
|
77
|
+
import graphqlTextTransformer from "./utils/filters/graphql/text/index.js";
|
|
78
|
+
import { isValidISODate, isValidISODateTime, isValidISOTime } from "./utils/filters/is-date/is-date.js";
|
|
79
|
+
import isEmpty from "./utils/filters/is-empty/index.js";
|
|
80
|
+
import validateCustomField from "./utils/filters/validation/custom-field/index.js";
|
|
81
|
+
import validateDate from "./utils/filters/validation/date/index.js";
|
|
82
|
+
import { validateSingleOptionEnum, validateMultiOptionEnum } from "./utils/filters/validation/enum/enum.js";
|
|
83
|
+
import validateNumber from "./utils/filters/validation/number/index.js";
|
|
84
|
+
import { validateText } from "./utils/filters/validation/text/text.js";
|
|
85
|
+
import { formatDateTime, formatDateRangeValue, formatMoney, formatMoneyValue, formatMoneyRangeValue, formatProductAttribute, formatCustomField } from "./utils/formats/index.js";
|
|
86
|
+
import formatDiscount from "./utils/formats/discount/discount.js";
|
|
87
|
+
import { getFractionedAmount } from "./utils/formats/money/money.js";
|
|
88
|
+
import { formatPercentage, convertRatioToPercentage } from "./utils/formats/percentage/percentage.js";
|
|
89
|
+
import getPrefixSearchBounds from "./utils/get-prefix-search-bounds/get-prefix-search-bounds.js";
|
|
90
|
+
import { extractErrorFromGraphQlResponse, createGraphQlUpdateActions, transformLocalizedFieldsForCategory, transformCustomFieldsRawToCustomFields } from "./utils/graphql/graphql.js";
|
|
91
|
+
import hasInvalidInputError from "./utils/has-error-code/has-invalid-input-error.js";
|
|
92
|
+
import hasSemanticError from "./utils/has-error-code/has-semantic-error.js";
|
|
93
|
+
import isUUID from "./utils/is-uuid/is-uuid.js";
|
|
94
|
+
import minusify from "./utils/minusify/minusify.js";
|
|
95
|
+
import omitDeep from "./utils/omit-deep/omit-deep.js";
|
|
96
|
+
import { or, exact, and, not, range, exists } from "./utils/pim-query-clauses.js";
|
|
97
|
+
import { getSelectedPrice, getDiscountValue, getNetUnitPrice, getPriceChannelName, getMinimumPricesByCurrencyCode } from "./utils/prices/prices.js";
|
|
98
|
+
import { convertProductSelectionFromGraphQl } from "./utils/product-selections/convert-product-selection-from-graphql.js";
|
|
99
|
+
import { sortRequiresLanguage, computedProperties, allowedProperties, resolveStatusType, normalizeProductSettings, getAttributeValueByType, splitVariantAttributesByConstraint } from "./utils/products/products.jsx";
|
|
100
|
+
import { sanitize } from "./utils/query-string/query-string.js";
|
|
101
|
+
import RequestCache from "./utils/request-cache/request-cache.js";
|
|
102
|
+
import shallowEqual from "./utils/shallow-equal/shallow-equal.js";
|
|
103
|
+
import shouldUpdateAttributeInput from "./utils/should-update-attribute-input/should-update-attribute-input.js";
|
|
104
|
+
import slugify from "./utils/slugify/slugify.js";
|
|
105
|
+
import swapArrayItems, { reorderArrayItems } from "./utils/swap-array-items/swap-array-items.js";
|
|
106
|
+
import { safelyAddFallback } from "./utils/text-fallback/text-fallback.js";
|
|
107
|
+
import { getTimeZoneLabel, mapTimeZonesToOptions, getTimeZoneId } from "./utils/time-zones/time-zone-utils.js";
|
|
108
|
+
import { transformAllToProperNounCase } from "./utils/transform-to-proper-noun-case/transform-to-proper-noun-case.js";
|
|
109
|
+
import truncate from "./utils/truncate/index.js";
|
|
110
|
+
import { filterCustomTypeUpdateActionValues, omitSetsOfSets, getTypeNameOfType, getReferenceTypeId, getAttributeValueType } from "./utils/type-definitions/type-definitions.js";
|
|
111
|
+
import { messages as validationMessages, unique, uniqueObjects } from "./utils/validation/index.js";
|
|
112
|
+
import getIndexesOfInvalidValues from "./utils/validation/get-indexes-of-invalid-values.js";
|
|
113
|
+
import withoutEmptyErrorsByField from "./utils/validation/without-empty-errors-by-field.js";
|
|
114
|
+
import withPendingRequests from "./utils/with-pending-requests/with-pending-requests.jsx";
|
|
115
|
+
export { QUERY_LIMIT } from "./constants/index.js";
|
|
116
|
+
export { allowedProperties, and, attributesMapToNameValuePairs, base64ToString, BooleanField, booleanMessages, buildSearchQuery, Button, businessRoles, businessRoleConstants, businessRoleMessages, capitalizeFirst, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, CenteredLoadingSpinner, ChannelPickerInput, CustomerGroupPickerInput, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, CountriesPicker, createGraphQlUpdateActions, createNextSortDefinition, createReducer, createResourceReducer, CustomFieldDefinitionsConnector, CustomFieldTypeDefinitionsConnector, CustomFields, useDnDContext as useCustomFieldsDnDContext, CustomFieldsErrorTextNotification, CustomFieldsFormField, customFieldsTransformer, CustomFieldTooltip, dateTransformer, DefaultPageSizes, Divider, EMAIL_REGEX, exact, exists, extractErrorFromGraphQlResponse, FileInput, filterCustomTypeUpdateActionValues, filterDataAttributes, filterEmptyValues, formatCustomerAddress, formatCustomerName, formatCustomField, formatDateTime, formatDateRangeValue, formatDiscount, formatMoneyRangeValue, formatMoney, formatMoneyValue, formatPercentage, formatProductAttribute, FormattedDateTime, FormattedLocalizedString, getAncestors, getAttributeValueByType, getAttributeValueType, getBottomOption, getBulkNotification, getCategoryLevel, getCountsFromBulkSummary, getDiscountValue, getDisplayName, getFractionedAmount, getIndexesOfInvalidValues, getMinimumPricesByCurrencyCode, getNetUnitPrice, getPathName, getPrefixSearchBounds, getPriceChannelName, getReferenceTypeId, getSelectedPrice, getTimeZoneId, getTimeZoneLabel, getTypeNameOfType, graphqlCategoryLevelTransformer, graphqlDateTransformer, graphqlMissingLocaleTransformer, graphqlMissingTransformer, graphqlNumberTransformer, graphqlQueryBuilder, graphqlReferenceTransformer, graphqlTextTransformer, hasInvalidInputError, hasSemanticError, injectCustomerGroupsPlatformLimits, injectCustomersPlatformLimits, injectDataTablePaginationState, injectModalState, injectNotifications, injectPimIndexer, injectShippingMethodsPlatformLimits, injectStorage, injectTaxCategoriesPlatformLimits, injectToggleState, injectZonesPlatformLimits, isEmpty, isEmptyValue, isUUID, isValidISODate, isValidISODateTime, isValidISOTime, keepDisplayName, LabelRange, mapTimeZonesToOptions, mapStoresToOptions, MC_RESOURCES_WITH_KEYS, minusify, MissingValueField, missingValueMessages, MultiValueSearchInput, nameValuePairsToMap, normalizeProductSettings, not, NumericFormatInput, omitDeep, omitSetsOfSets, or, Option, pickerMessages, PimIndexerProvider, PRECISION_TYPES, ProductAttributeInput, ProductAttributes, ProductPickerInput, ProductSelectionPicker, range, reorderArrayItems, RequestCache, RequiredIndicator, resolveStatusType, safelyAddFallback, sanitize, ScrollToFieldError, searchCategories, SearchInput, searchInputMessages, SelectableFieldSearchInput, setToArray, setDisplayName, shallowEqual, shouldUpdateAttributeInput, slugify, sortDataByIdsArray, sortRequiresLanguage, splitVariantAttributesByConstraint, StoreSelectField, StoreSelectInput, stringToBase64, swapArrayItems, ThrottledField, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, useCachedCategoryOptions, useCurrentOption, useCustomersPlatformLimits, useCustomerGroupsPlatformLimits, useDebouncedPromiseCallback, useFormatLocalizedFieldToString, useFormatLocalizedString, useIsFieldDuplicated, useLocalizedKeyFallback, useLoadOptions, usePendingRequests, usePersistedTableConfiguration, usePimIndexer, usePrevious, useProductSelectionsFetcher, useProductSelectionsTotalFetcher, useRoleNotificationEffect, useStorage, type UseStorageOptions, useStoreKeysInDataFences, useStoresListFetcher, useTaxCategoriesPlatformLimits, useTotalNumberOfStoresFetcher, useShippingMethodsPlatformLimits, validatedInput, validateCustomField, validateCustomFields, validateDate, validateMultiOptionEnum, validateSingleOptionEnum, validateText, validateNumber, validationMessages, VALIDATOR_INTEGER, VALIDATOR_NUMERIC, VALIDATOR_REQUIRED, withProps, withoutEmptyErrorsByField, withPendingRequests, WithPimIndexer, withRedirectTo, wrapDisplayName, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { handlers as useTotalNumberOfStoresFetcherHandlers } from "./components/store-select-input/hooks/use-total-number-of-stores-fetcher/mocks/index.js";
|
|
2
|
+
export { handlers as customFieldDefinitionsMockHanders } from "./custom-fields/custom-field-definitions-connector/mocks/index.js";
|
|
3
|
+
export { handlers as isFieldDuplicatedMockHandlers } from "./hooks/use-is-field-duplicated/mocks/index.js";
|
|
4
|
+
export { handlers as productSelectionsFetcherMockHandler } from "./hooks/use-product-selections-fetcher/mocks/index.js";
|
|
5
|
+
export { handlers as productSelectionsTotalFetcherMockHandler } from "./hooks/use-product-selections-total-fetcher/mocks/index.js";
|
|
6
|
+
export { handlers as storesListConnectorMockHandlers } from "./hooks/use-stores-list-fetcher/mocks/index.js";
|
|
7
|
+
export { handlers as useStoreByFieldFetcherHandlers } from "./components/store-select-input/hooks/use-stores-by-field-fetcher/mocks/index.js";
|
|
8
|
+
export { handlers as useStoresByWherePredicateFetcherHandlers } from "./components/store-select-input/components/stores-search-select-input/mocks/index.js";
|
|
9
|
+
export { handlers as platformLimitsMockHandlers } from "./features/platform-limits/shared/hooks/use-platform-limits-fetcher/mocks/index.js";
|
|
10
|
+
export { createFetchStoreDistributionChannelsQueryMock } from "./hooks/use-role-based-channels-fetcher/test-utils.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function setToArray(values?: any[]): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param mixed value
|
|
3
|
+
* @param String definitionName
|
|
4
|
+
* @return Boolean
|
|
5
|
+
*/
|
|
6
|
+
export function isEmptyValue(value: any, definitionName?: string): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Filter out the empty values of the attribute-set by its definition
|
|
9
|
+
*
|
|
10
|
+
* @param [] values
|
|
11
|
+
* @param String definitionName
|
|
12
|
+
* @return []
|
|
13
|
+
*/
|
|
14
|
+
export function filterEmptyValues(values: any[] | undefined, definitionName: any): any[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export function getBulkNotification({ counts, texts }: {
|
|
2
|
+
counts: any;
|
|
3
|
+
texts: any;
|
|
4
|
+
}): {
|
|
5
|
+
kind: string;
|
|
6
|
+
domain: "side";
|
|
7
|
+
text: any;
|
|
8
|
+
};
|
|
9
|
+
export function getCountsFromBulkSummary(bulkSummary: any): {
|
|
10
|
+
successful: any;
|
|
11
|
+
total: any;
|
|
12
|
+
failed: number;
|
|
13
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default businessRoleConstants;
|
|
2
|
+
declare namespace businessRoleConstants {
|
|
3
|
+
let ExecutiveManagement: string;
|
|
4
|
+
let Architect: string;
|
|
5
|
+
let Engineer: string;
|
|
6
|
+
let ProductProjectManagerOrOwner: string;
|
|
7
|
+
let Marketing: string;
|
|
8
|
+
let CustomerService: string;
|
|
9
|
+
let SalesAndECommerceManager: string;
|
|
10
|
+
let Other: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace ExecutiveManagement {
|
|
3
|
+
let id: string;
|
|
4
|
+
let description: string;
|
|
5
|
+
let defaultMessage: string;
|
|
6
|
+
}
|
|
7
|
+
namespace Architect {
|
|
8
|
+
let id_1: string;
|
|
9
|
+
export { id_1 as id };
|
|
10
|
+
let description_1: string;
|
|
11
|
+
export { description_1 as description };
|
|
12
|
+
let defaultMessage_1: string;
|
|
13
|
+
export { defaultMessage_1 as defaultMessage };
|
|
14
|
+
}
|
|
15
|
+
namespace Engineer {
|
|
16
|
+
let id_2: string;
|
|
17
|
+
export { id_2 as id };
|
|
18
|
+
let description_2: string;
|
|
19
|
+
export { description_2 as description };
|
|
20
|
+
let defaultMessage_2: string;
|
|
21
|
+
export { defaultMessage_2 as defaultMessage };
|
|
22
|
+
}
|
|
23
|
+
namespace ProductProjectManagerOrOwner {
|
|
24
|
+
let id_3: string;
|
|
25
|
+
export { id_3 as id };
|
|
26
|
+
let description_3: string;
|
|
27
|
+
export { description_3 as description };
|
|
28
|
+
let defaultMessage_3: string;
|
|
29
|
+
export { defaultMessage_3 as defaultMessage };
|
|
30
|
+
}
|
|
31
|
+
namespace Marketing {
|
|
32
|
+
let id_4: string;
|
|
33
|
+
export { id_4 as id };
|
|
34
|
+
let description_4: string;
|
|
35
|
+
export { description_4 as description };
|
|
36
|
+
let defaultMessage_4: string;
|
|
37
|
+
export { defaultMessage_4 as defaultMessage };
|
|
38
|
+
}
|
|
39
|
+
namespace CustomerService {
|
|
40
|
+
let id_5: string;
|
|
41
|
+
export { id_5 as id };
|
|
42
|
+
let description_5: string;
|
|
43
|
+
export { description_5 as description };
|
|
44
|
+
let defaultMessage_5: string;
|
|
45
|
+
export { defaultMessage_5 as defaultMessage };
|
|
46
|
+
}
|
|
47
|
+
namespace SalesAndECommerceManager {
|
|
48
|
+
let id_6: string;
|
|
49
|
+
export { id_6 as id };
|
|
50
|
+
let description_6: string;
|
|
51
|
+
export { description_6 as description };
|
|
52
|
+
let defaultMessage_6: string;
|
|
53
|
+
export { defaultMessage_6 as defaultMessage };
|
|
54
|
+
}
|
|
55
|
+
namespace Other {
|
|
56
|
+
let id_7: string;
|
|
57
|
+
export { id_7 as id };
|
|
58
|
+
let description_7: string;
|
|
59
|
+
export { description_7 as description };
|
|
60
|
+
let defaultMessage_7: string;
|
|
61
|
+
export { defaultMessage_7 as defaultMessage };
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function capitalizeFirst(text: any): any;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the ancestors of the category,
|
|
3
|
+
* Apply an `limit` if you need to limit how far up the ancestors' tree
|
|
4
|
+
* of the category you need to go. ATM we do this when we get the parent.
|
|
5
|
+
*
|
|
6
|
+
* @param {Object} category
|
|
7
|
+
* @param {Number} limit
|
|
8
|
+
* @return {Array}
|
|
9
|
+
*/
|
|
10
|
+
export function getAncestors(cat: any, limit?: number): any[];
|
|
11
|
+
export function getCategoryLevel(cat: any): number;
|
|
12
|
+
/**
|
|
13
|
+
* @param {Object} category
|
|
14
|
+
* @param {String} lang
|
|
15
|
+
* @param {Array} languages
|
|
16
|
+
* @param {Number} limit
|
|
17
|
+
*
|
|
18
|
+
* @return {String} - A string representation of the path
|
|
19
|
+
*/
|
|
20
|
+
export function getPathName(cat: any, lang: string, languages: any[], limit?: number): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function clone(obj: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function coerceToInteger(maybeInt: any): number | undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export function convertApolloNetworkStatusToLoadingState(networkStatus: any): {
|
|
2
|
+
initialLoading: boolean;
|
|
3
|
+
activelyRefetching: boolean;
|
|
4
|
+
passivelyRefetching: boolean;
|
|
5
|
+
fetchingMore: boolean;
|
|
6
|
+
};
|
|
7
|
+
export function convertApolloQueryDataToConnectorData(queryData: any, dataKey: any, { mapData }?: {
|
|
8
|
+
mapData: any;
|
|
9
|
+
}): {
|
|
10
|
+
[x: number]: any;
|
|
11
|
+
isLoading: any;
|
|
12
|
+
loadingState: {
|
|
13
|
+
initialLoading: boolean;
|
|
14
|
+
activelyRefetching: boolean;
|
|
15
|
+
passivelyRefetching: boolean;
|
|
16
|
+
fetchingMore: boolean;
|
|
17
|
+
};
|
|
18
|
+
error: any;
|
|
19
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export namespace PRODUCT_STATUSES {
|
|
2
|
+
let PUBLISHED: string;
|
|
3
|
+
let UNPUBLISHED: string;
|
|
4
|
+
let MODIFIED: string;
|
|
5
|
+
}
|
|
6
|
+
export namespace FILTER_TYPES {
|
|
7
|
+
export let lessThan: string;
|
|
8
|
+
export let moreThan: string;
|
|
9
|
+
export let equalTo: string;
|
|
10
|
+
export let range: string;
|
|
11
|
+
export let missing: string;
|
|
12
|
+
export let missingIn: string;
|
|
13
|
+
let _in: string;
|
|
14
|
+
export { _in as in };
|
|
15
|
+
}
|
|
16
|
+
export namespace FIELD_TYPES {
|
|
17
|
+
let Money: string;
|
|
18
|
+
let LocalizedString: string;
|
|
19
|
+
let Time: string;
|
|
20
|
+
let DateTime: string;
|
|
21
|
+
let Boolean: string;
|
|
22
|
+
let String: string;
|
|
23
|
+
let Enum: string;
|
|
24
|
+
let LocalizedEnum: string;
|
|
25
|
+
let Number: string;
|
|
26
|
+
let Date: string;
|
|
27
|
+
let Reference: string;
|
|
28
|
+
let Set: string;
|
|
29
|
+
}
|
|
30
|
+
export namespace PRECISION_TYPES {
|
|
31
|
+
let highPrecision: string;
|
|
32
|
+
let centPrecision: string;
|
|
33
|
+
}
|
|
34
|
+
export namespace ERROR_CODES {
|
|
35
|
+
let semanticError: string;
|
|
36
|
+
let invalidInput: string;
|
|
37
|
+
}
|
|
38
|
+
export const DefaultPageSizes: number[];
|
|
39
|
+
export const DefaultPageSize: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function sortDataByIdsArray(idsArray: any, dataWithId: any): any;
|
package/dist/declarations/src/utils/create-next-sort-definition/create-next-sort-definition.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default createNextSortDefinition;
|
|
2
|
+
declare function createNextSortDefinition({ requestedSortBy, requestedSortDirection, sortBy, sortDirection, }: {
|
|
3
|
+
requestedSortBy: any;
|
|
4
|
+
requestedSortDirection: any;
|
|
5
|
+
sortBy: any;
|
|
6
|
+
sortDirection: any;
|
|
7
|
+
}): {
|
|
8
|
+
sortBy: any;
|
|
9
|
+
sortDirection: any;
|
|
10
|
+
page: number;
|
|
11
|
+
};
|