@commercetools-frontend/experimental-components 8.0.1 → 8.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/commercetools-frontend-experimental-components.cjs.dev.js +706 -421
  2. package/dist/commercetools-frontend-experimental-components.cjs.prod.js +687 -402
  3. package/dist/commercetools-frontend-experimental-components.esm.js +701 -422
  4. package/dist/declarations/src/components/carousel/carousel.d.ts +2 -0
  5. package/dist/declarations/src/components/channel-picker-input/channel-picker-input.d.ts +18 -33
  6. package/dist/declarations/src/components/channel-picker-input/index.d.ts +1 -1
  7. package/dist/declarations/src/components/formatted-date-time/formatted-date-time.d.ts +1 -0
  8. package/dist/declarations/src/components/recurrent-interval-picker/use-recurrence-intervals/use-recurrence-intervals.d.ts +0 -1
  9. package/dist/declarations/src/components/validated-input/validated-input.d.ts +26 -5
  10. package/dist/declarations/src/constants/index.d.ts +2 -0
  11. package/dist/declarations/src/custom-fields/custom-field-definitions-connector/custom-field-definitions-connector.d.ts +1 -0
  12. package/dist/declarations/src/custom-fields/custom-field-type-definitions-connector/custom-field-type-definitions-connector.d.ts +1 -0
  13. package/dist/declarations/src/features/picker/shared/hooks/use-current-multiple-options.d.ts +2 -3
  14. package/dist/declarations/src/features/pim-indexer/components/pim-indexer-provider/pim-indexer-provider.d.ts +1 -0
  15. package/dist/declarations/src/features/pim-indexer/components/with-pim-indexer/with-pim-indexer.d.ts +1 -0
  16. package/dist/declarations/src/fields/numeric-format-input/numeric-format-input.d.ts +1 -0
  17. package/dist/declarations/src/fields/search-input/search-input.d.ts +1 -0
  18. package/dist/declarations/src/fields/throttled-field/throttled-field.d.ts +1 -0
  19. package/dist/declarations/src/hooks/index.d.ts +3 -0
  20. package/dist/declarations/src/hooks/use-identity-banner-notification/index.d.ts +1 -0
  21. package/dist/declarations/src/hooks/use-identity-banner-notification/use-identity-banner-notification.d.ts +6 -0
  22. package/dist/declarations/src/hooks/use-store-search-index-status-fetcher/index.d.ts +1 -0
  23. package/dist/declarations/src/hooks/use-store-search-index-status-fetcher/use-store-search-index-status-fetcher.d.ts +8 -0
  24. package/dist/declarations/src/hooks/use-stores-search-fetcher/index.d.ts +1 -0
  25. package/dist/declarations/src/hooks/use-stores-search-fetcher/use-stores-search-fetcher.d.ts +25 -0
  26. package/dist/declarations/src/index.d.ts +4 -4
  27. package/dist/declarations/src/utils/bulk-notifications/get-bulk-notification.d.ts +32 -11
  28. package/dist/declarations/src/utils/create-reducer/create-reducer.d.ts +1 -1
  29. package/dist/declarations/src/utils/graphql/graphql.d.ts +3 -3
  30. package/package.json +23 -23
@@ -12,6 +12,8 @@ export type CarouselItem = {
12
12
  stampLabel?: MessageDescriptor;
13
13
  /** UI-Kit-compatible color for the header stamp */
14
14
  stampTone?: React.ComponentProps<typeof Stamp>['tone'];
15
+ /** Whether the header stamp should be condensed */
16
+ isStampCondensed?: boolean;
15
17
  /** Text of the carousel slide. Shouldn't exceed ~70 characters. */
16
18
  textContent: MessageDescriptor;
17
19
  /** Where the content should redirect to on user click */
@@ -1,34 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { type TAsyncSelectInputProps } from '@commercetools-frontend/ui-kit';
3
+ export type TChannelPickerInputProps = {
4
+ name: string;
5
+ onChange: NonNullable<TAsyncSelectInputProps['onChange']>;
6
+ onBlur?: TAsyncSelectInputProps['onBlur'];
7
+ value?: string | string[];
8
+ hasError?: boolean;
9
+ onError?: (error: unknown) => void;
10
+ isClearable?: boolean;
11
+ isDisabled?: boolean;
12
+ isReadOnly?: boolean;
13
+ placeholder?: string;
14
+ roles?: string[];
15
+ hasWarning?: boolean;
16
+ isMulti?: boolean;
17
+ };
18
+ declare const ChannelPickerInput: React.FC<TChannelPickerInputProps>;
1
19
  export default ChannelPickerInput;
2
- declare function ChannelPickerInput({ isClearable, isDisabled, isReadOnly, onChange, name, onBlur, value, hasError, onError, placeholder, roles, hasWarning, isMulti, }: {
3
- isClearable: any;
4
- isDisabled: any;
5
- isReadOnly?: boolean | undefined;
6
- onChange: any;
7
- name: any;
8
- onBlur: any;
9
- value: any;
10
- hasError: any;
11
- onError?: null | undefined;
12
- placeholder: any;
13
- roles: any;
14
- hasWarning?: boolean | undefined;
15
- isMulti?: boolean | undefined;
16
- }): import("@emotion/react/jsx-runtime").JSX.Element;
17
- declare namespace ChannelPickerInput {
18
- let displayName: string;
19
- namespace propTypes {
20
- let name: any;
21
- let onChange: any;
22
- let onBlur: any;
23
- let value: any;
24
- let hasError: any;
25
- let onError: any;
26
- let isClearable: any;
27
- let isDisabled: any;
28
- let isReadOnly: any;
29
- let placeholder: any;
30
- let roles: any;
31
- let hasWarning: any;
32
- let isMulti: any;
33
- }
34
- }
@@ -1 +1 @@
1
- export { default } from "./channel-picker-input.jsx";
1
+ export { default } from "./channel-picker-input.js";
@@ -7,6 +7,7 @@ export class FormattedDateTime extends PureComponent<any, any, any> {
7
7
  intl: any;
8
8
  };
9
9
  constructor(props: any);
10
+ constructor(props: any, context: any);
10
11
  render(): import("@emotion/react/jsx-runtime").JSX.Element;
11
12
  }
12
13
  declare const _default: import("react").FC<import("react-intl").WithIntlProps<any>> & {
@@ -15,6 +15,5 @@ export declare const useRecurrenceIntervals: ({ where, skip, }: TUseRecurrenceIn
15
15
  }[];
16
16
  loading: boolean;
17
17
  error: import("@apollo/client").ApolloError | undefined;
18
- isRecurringOrdersDisabled: any;
19
18
  };
20
19
  export {};
@@ -17,17 +17,38 @@ export function simpleInput(type: any): {
17
17
  readonly props: Readonly<any>;
18
18
  state: Readonly<any>;
19
19
  componentDidMount?(): void;
20
- shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>): boolean;
20
+ shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
21
21
  componentWillUnmount?(): void;
22
22
  componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
23
23
  getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
24
24
  componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
25
25
  componentWillMount?(): void;
26
26
  UNSAFE_componentWillMount?(): void;
27
- componentWillReceiveProps?(nextProps: Readonly<any>): void;
28
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>): void;
29
- componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>): void;
30
- UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>): void;
27
+ componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
28
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
29
+ componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
30
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
31
+ };
32
+ new (props: any, context: any): {
33
+ handleBlur: (event: any) => void;
34
+ render(): import("@emotion/react/jsx-runtime").JSX.Element;
35
+ context: unknown;
36
+ setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
37
+ forceUpdate(callback?: (() => void) | undefined): void;
38
+ readonly props: Readonly<any>;
39
+ state: Readonly<any>;
40
+ componentDidMount?(): void;
41
+ shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
42
+ componentWillUnmount?(): void;
43
+ componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
44
+ getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
45
+ componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
46
+ componentWillMount?(): void;
47
+ UNSAFE_componentWillMount?(): void;
48
+ componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
49
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
50
+ componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
51
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
31
52
  };
32
53
  displayName: string;
33
54
  propTypes: {
@@ -54,6 +54,7 @@ export const REMINDER_OPTION_3_DAY: "3day";
54
54
  export const REMINDER_OPTION_5_DAY: "5day";
55
55
  export const REMINDER_OPTION_7_DAY: "7day";
56
56
  export const REMINDER_OPTION_10_DAY: "10day";
57
+ export const REMINDER_OPTION_15_DAY: "15day";
57
58
  export const INTERVALS_IN_SECONDS: {
58
59
  "1hour": number;
59
60
  "4hour": number;
@@ -63,6 +64,7 @@ export const INTERVALS_IN_SECONDS: {
63
64
  "5day": number;
64
65
  "7day": number;
65
66
  "10day": number;
67
+ "15day": number;
66
68
  };
67
69
  export const EXCLUDING_PRODUCTS: "excludingProducts";
68
70
  export const UTC: "UTC";
@@ -11,6 +11,7 @@ export class CustomFieldDefinitionsConnector extends Component<any, any, any> {
11
11
  resources: never[];
12
12
  };
13
13
  constructor(props: any);
14
+ constructor(props: any, context: any);
14
15
  componentDidMount(): void;
15
16
  render(): any;
16
17
  }
@@ -47,6 +47,7 @@ export class CustomFieldTypeDefinitionsConnector extends Component<any, any, any
47
47
  type: any;
48
48
  };
49
49
  constructor(props: any);
50
+ constructor(props: any, context: any);
50
51
  componentDidMount(): void;
51
52
  render(): any;
52
53
  }
@@ -1,16 +1,15 @@
1
1
  import { DocumentNode } from '@apollo/client';
2
- type UseCurrentOptionsParams<TData, TItem, TOption> = {
2
+ export type UseCurrentOptionsParams<TData, TItem, TOption> = {
3
3
  ids: string[];
4
4
  typename: string;
5
5
  query: DocumentNode;
6
6
  fragment: DocumentNode;
7
7
  extractItems: (data: TData) => TItem[];
8
8
  itemToOption: (item: TItem) => TOption;
9
- skip: boolean;
9
+ skip?: boolean;
10
10
  };
11
11
  export default function useCurrentMultipleOptions<TData, TItem, TOption>({ ids, typename, query, fragment, extractItems, itemToOption, skip, }: UseCurrentOptionsParams<TData, TItem, TOption>): {
12
12
  loading: boolean;
13
13
  data: TOption[];
14
14
  error: Error | undefined;
15
15
  };
16
- export {};
@@ -11,6 +11,7 @@ export class PimIndexerProvider extends PureComponent<any, any, any> {
11
11
  intl: any;
12
12
  };
13
13
  constructor(props: any);
14
+ constructor(props: any, context: any);
14
15
  state: {
15
16
  isLoading: boolean;
16
17
  isPimIndexerUnreachable: boolean;
@@ -4,6 +4,7 @@ export class WithPimIndexer extends PureComponent<any, any, any> {
4
4
  children: any;
5
5
  };
6
6
  constructor(props: any);
7
+ constructor(props: any, context: any);
7
8
  render(): import("@emotion/react/jsx-runtime").JSX.Element;
8
9
  }
9
10
  export default WithPimIndexer;
@@ -25,6 +25,7 @@ export class NumericFormatInput extends PureComponent<any, any, any> {
25
25
  disabled: boolean;
26
26
  };
27
27
  constructor(props: any);
28
+ constructor(props: any, context: any);
28
29
  state: {
29
30
  parsedValue: any;
30
31
  };
@@ -35,6 +35,7 @@ export class SearchInput extends Component<any, any, any> {
35
35
  text: any;
36
36
  } | null;
37
37
  constructor(props: any);
38
+ constructor(props: any, context: any);
38
39
  state: {
39
40
  initialValue: any;
40
41
  text: any;
@@ -35,6 +35,7 @@ declare class ThrottledField extends PureComponent<any, any, any> {
35
35
  prevValue: any;
36
36
  } | null;
37
37
  constructor(props: any);
38
+ constructor(props: any, context: any);
38
39
  state: {
39
40
  draftValue: string;
40
41
  prevValue: string;
@@ -3,6 +3,8 @@ export { default as useIsFieldDuplicated } from "./use-is-field-duplicated/index
3
3
  export { default as usePrevious } from "./use-previous/index.js";
4
4
  export { default as useStorage, type UseStorageOptions } from "./use-storage/index.js";
5
5
  export { default as useStoresListFetcher } from "./use-stores-list-fetcher/index.js";
6
+ export { default as useStoresSearchFetcher } from "./use-stores-search-fetcher/index.js";
7
+ export { default as useStoreSearchIndexStatusFetcher } from "./use-store-search-index-status-fetcher/index.js";
6
8
  export { default as useStoreKeysInDataFences } from "./use-store-keys-in-data-fence/index.js";
7
9
  export { default as usePersistedReminder } from "./use-persisted-reminder/index.js";
8
10
  export { default as useRoleNotificationEffect } from "./use-role-notification-effect/index.js";
@@ -15,3 +17,4 @@ export { default as usePersistedTableConfiguration } from "./use-persisted-table
15
17
  export { default as useProductSelectionsTotalFetcher } from "./use-product-selections-total-fetcher/index.js";
16
18
  export { default as useProductSelectionsFetcher } from "./use-product-selections-fetcher/index.js";
17
19
  export { useFormatLocalizedString } from "./use-format-localized-string/index.js";
20
+ export { useIdentityBannerNotification } from "./use-identity-banner-notification/index.js";
@@ -0,0 +1 @@
1
+ export { useIdentityBannerNotification } from "./use-identity-banner-notification.js";
@@ -0,0 +1,6 @@
1
+ declare global {
2
+ interface Window {
3
+ Cypress: any;
4
+ }
5
+ }
6
+ export declare const useIdentityBannerNotification: () => void;
@@ -0,0 +1 @@
1
+ export { default } from "./use-store-search-index-status-fetcher.js";
@@ -0,0 +1,8 @@
1
+ export default useStoreSearchIndexStatusFetcher;
2
+ declare function useStoreSearchIndexStatusFetcher({ projectKey }: {
3
+ projectKey: any;
4
+ }): {
5
+ status: null;
6
+ isLoading: boolean;
7
+ refetch: () => Promise<void>;
8
+ };
@@ -0,0 +1 @@
1
+ export { default } from "./use-stores-search-fetcher.js";
@@ -0,0 +1,25 @@
1
+ type TSearchResults = {
2
+ hits: Array<{
3
+ id: string;
4
+ relevance: number;
5
+ }>;
6
+ };
7
+ declare const useStoresSearchFetcher: () => {
8
+ fetchStoreSearchResults: (args: {
9
+ projectKey: string;
10
+ limit: number;
11
+ offset: number;
12
+ searchTerm: string;
13
+ searchBy: string;
14
+ language: string;
15
+ }) => Promise<void>;
16
+ storeSearchResults: {
17
+ hits: Array<TSearchResults>;
18
+ total: number;
19
+ searchTerm?: string;
20
+ searchBy?: string;
21
+ };
22
+ isLoading: boolean;
23
+ resetStoreSearchResults: () => void;
24
+ };
25
+ export default useStoresSearchFetcher;
@@ -38,7 +38,7 @@ import CustomFieldsFormField from "./custom-fields/custom-fields-form-field/inde
38
38
  import { Option, getBottomOption, useLoadOptions, useCurrentOption } from "./features/picker/index.js";
39
39
  import { PimIndexerProvider, WithPimIndexer, injectPimIndexer, usePimIndexer } from "./features/pim-indexer/index.js";
40
40
  import { injectShippingMethodsPlatformLimits, useShippingMethodsPlatformLimits, injectTaxCategoriesPlatformLimits, useTaxCategoriesPlatformLimits, injectZonesPlatformLimits, useCustomersPlatformLimits, injectCustomersPlatformLimits, useCustomerGroupsPlatformLimits, injectCustomerGroupsPlatformLimits, useBusinessUnitsPlatformLimits, RESOURCES_WITH_PLATFORM_LIMITS, createPlatformLimitsQueryVariables, PlatformLimitsFetcherQuery, useStoresPlatformLimits } from "./features/platform-limits/index.js";
41
- import BooleanField, { messages as booleanMessages } from "./fields/boolean-field/index.js";
41
+ import BooleanField, { messages as booleanMessages, valueMapping } from "./fields/boolean-field/index.js";
42
42
  import LabelRange from "./fields/label-range/label-range.jsx";
43
43
  import MissingValueField, { messages as missingValueMessages } from "./fields/missing-value-field/index.js";
44
44
  import MultiValueSearchInput from "./fields/multi-value-search-input/multi-value-search-input.jsx";
@@ -47,12 +47,12 @@ import searchInputMessages from "./fields/search-input/messages.js";
47
47
  import SearchInput from "./fields/search-input/search-input.jsx";
48
48
  import ThrottledField from "./fields/throttled-field/throttled-field.jsx";
49
49
  import { injectDataTablePaginationState, injectNotifications, wrapDisplayName, withProps, withRedirectTo, injectModalState, injectToggleState, injectStorage, getDisplayName, setDisplayName } from "./hocs/index.js";
50
- import { useDebouncedPromiseCallback, useFormatLocalizedFieldToString, useIsFieldDuplicated, useLocalizedKeyFallback, usePendingRequests, usePersistedTableConfiguration, usePrevious, useProductSelectionsFetcher, useProductSelectionsTotalFetcher, useRoleNotificationEffect, useStorage, type UseStorageOptions, useStoreKeysInDataFences, useStoresListFetcher, useFormatLocalizedString } from "./hooks/index.js";
50
+ import { useDebouncedPromiseCallback, useFormatLocalizedFieldToString, useIsFieldDuplicated, useLocalizedKeyFallback, usePendingRequests, usePersistedTableConfiguration, usePrevious, useProductSelectionsFetcher, useProductSelectionsTotalFetcher, useRoleNotificationEffect, useIdentityBannerNotification, useStorage, type UseStorageOptions, useStoreKeysInDataFences, useStoresListFetcher, useStoresSearchFetcher, useStoreSearchIndexStatusFetcher, useFormatLocalizedString, usePersistedReminder } from "./hooks/index.js";
51
51
  import { MC_RESOURCES_WITH_KEYS } from "./hooks/use-is-field-duplicated/index.js";
52
52
  import { setToArray } from "./utils/array-helpers/array-helpers.js";
53
53
  import { isEmptyValue, filterEmptyValues } from "./utils/attributes/attributes.js";
54
54
  import buildSearchQuery from "./utils/build-search-query/build-search-query.js";
55
- import { getBulkNotification, getCountsFromBulkSummary } from "./utils/bulk-notifications/get-bulk-notification.js";
55
+ import { getBulkNotification, getCountsFromBulkSummary, useShowBulkNotification } from "./utils/bulk-notifications/get-bulk-notification.js";
56
56
  import { businessRoles, businessRoleConstants, messages as businessRoleMessages } from "./utils/business-roles/index.js";
57
57
  import capitalizeFirst from "./utils/capitalize-first/capitalize-first.js";
58
58
  import { getPathName, getCategoryLevel, getAncestors } from "./utils/categories/categories.js";
@@ -117,4 +117,4 @@ import getIndexesOfInvalidValues from "./utils/validation/get-indexes-of-invalid
117
117
  import withoutEmptyErrorsByField from "./utils/validation/without-empty-errors-by-field.js";
118
118
  import withPendingRequests from "./utils/with-pending-requests/with-pending-requests.jsx";
119
119
  export { QUERY_LIMIT, QUERY_MAX_LIMIT, LOWER_STORES_LIMIT, UPPER_STORES_LIMIT, } from "./constants/index.js";
120
- export { allowedProperties, and, attributesMapToNameValuePairs, attributeToCustomField, base64ToString, BooleanField, booleanMessages, buildSearchQuery, Button, businessRoles, businessRoleConstants, businessRoleMessages, capitalizeFirst, Carousel, type CarouselItem, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, CenteredLoadingSpinner, ChannelPickerInput, CustomerGroupPickerInput, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, CountriesPicker, createGraphQlUpdateActions, createNextSortDefinition, createPlatformLimitsQueryVariables, createReducer, createResourceReducer, CustomFieldDefinitionsConnector, CustomFieldTypeDefinitionsConnector, CustomFields, useDnDContext as useCustomFieldsDnDContext, CustomFieldsErrorTextNotification, CustomFieldsFormField, CustomFieldInput, 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, getFractionDigit, getIndexesOfInvalidValues, getMinimumPricesByCurrencyCode, getNetUnitPrice, getPathName, getPrefixSearchBounds, getProductAttributes, getProductLevelAttributes, getPriceChannelName, getReferenceTypeId, getSelectedPrice, getStampToneByPublishState, getTimeZoneId, getTimeZoneLabel, getTypeNameOfType, graphqlCategoryLevelTransformer, graphqlDateTransformer, graphqlMissingLocaleTransformer, graphqlMissingTransformer, graphqlNumberTransformer, graphqlQueryBuilder, graphqlReferenceTransformer, graphqlTextTransformer, hasInvalidInputError, hasSemanticError, injectCustomerGroupsPlatformLimits, useBusinessUnitsPlatformLimits, injectCustomersPlatformLimits, injectDataTablePaginationState, injectModalState, injectNotifications, injectPimIndexer, injectShippingMethodsPlatformLimits, injectStorage, injectTaxCategoriesPlatformLimits, injectToggleState, injectZonesPlatformLimits, isEmpty, isEmptyValue, isUUID, isValidISODate, isValidISODateTime, isValidISOTime, keepDisplayName, LabelRange, mapShippingRateTierToGraphQL, mapTimeZonesToOptions, mapStoresToOptions, MC_RESOURCES_WITH_KEYS, minusify, MissingValueField, missingValueMessages, MultiValueSearchInput, nameValuePairsToMap, normalizeProductSettings, not, NumericFormatInput, omitDeep, omitSetsOfSets, or, Option, pickerMessages, PimIndexerProvider, PlatformLimitsFetcherQuery, PRECISION_TYPES, ProductAttributeInput, ProductAttributes, ProductPickerInput, ProductSelectionPicker, range, RecurrentIntervalPicker, reorderArrayItems, RequestCache, RequiredIndicator, resolveStatusType, RESOURCES_WITH_PLATFORM_LIMITS, safelyAddFallback, sanitize, ScrollToFieldError, searchCategories, SearchInput, searchInputMessages, SelectableFieldSearchInput, setToArray, setDisplayName, shallowEqual, shouldUpdateAttributeInput, slugify, sortDataByIdsArray, sortRequiresLanguage, splitVariantAttributesByConstraint, splitProductAndVariantAttributes, StoreSelectField, StoreSelectInput, stringToBase64, swapArrayItems, ThrottledField, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, useCachedCategoryOptions, useCurrentOption, useCustomersPlatformLimits, useCustomerGroupsPlatformLimits, useDebouncedPromiseCallback, useFormatCustomField, useFormatLocalizedFieldToString, useFormatLocalizedString, useIsFieldDuplicated, useLocalizedKeyFallback, useLoadOptions, usePendingRequests, usePersistedTableConfiguration, usePimIndexer, usePrevious, useProductSelectionsFetcher, useProductSelectionsTotalFetcher, useRecurrenceIntervals, useRoleNotificationEffect, useStorage, type UseStorageOptions, useStoreKeysInDataFences, useStoresListFetcher, useStoresPlatformLimits, useTaxCategoriesPlatformLimits, useTotalNumberOfStoresFetcher, useShippingMethodsPlatformLimits, validatedInput, validateCustomField, validateCustomFields, CUSTOM_FIELD_TYPES, validateDate, validateMultiOptionEnum, validateSingleOptionEnum, validateText, validateNumber, validationMessages, VALIDATOR_INTEGER, VALIDATOR_NUMERIC, VALIDATOR_REQUIRED, withProps, withoutEmptyErrorsByField, withPendingRequests, WithPimIndexer, withRedirectTo, wrapDisplayName, };
120
+ export { allowedProperties, and, attributesMapToNameValuePairs, attributeToCustomField, base64ToString, BooleanField, booleanMessages, buildSearchQuery, Button, businessRoles, businessRoleConstants, businessRoleMessages, capitalizeFirst, Carousel, type CarouselItem, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, CenteredLoadingSpinner, ChannelPickerInput, CustomerGroupPickerInput, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, CountriesPicker, createGraphQlUpdateActions, createNextSortDefinition, createPlatformLimitsQueryVariables, createReducer, createResourceReducer, CustomFieldDefinitionsConnector, CustomFieldTypeDefinitionsConnector, CustomFields, useDnDContext as useCustomFieldsDnDContext, CustomFieldsErrorTextNotification, CustomFieldsFormField, CustomFieldInput, 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, getFractionDigit, getIndexesOfInvalidValues, getMinimumPricesByCurrencyCode, getNetUnitPrice, getPathName, getPrefixSearchBounds, getProductAttributes, getProductLevelAttributes, getPriceChannelName, getReferenceTypeId, getSelectedPrice, getStampToneByPublishState, getTimeZoneId, getTimeZoneLabel, getTypeNameOfType, graphqlCategoryLevelTransformer, graphqlDateTransformer, graphqlMissingLocaleTransformer, graphqlMissingTransformer, graphqlNumberTransformer, graphqlQueryBuilder, graphqlReferenceTransformer, graphqlTextTransformer, hasInvalidInputError, hasSemanticError, injectCustomerGroupsPlatformLimits, useBusinessUnitsPlatformLimits, injectCustomersPlatformLimits, injectDataTablePaginationState, injectModalState, injectNotifications, injectPimIndexer, injectShippingMethodsPlatformLimits, injectStorage, injectTaxCategoriesPlatformLimits, injectToggleState, injectZonesPlatformLimits, isEmpty, isEmptyValue, isUUID, isValidISODate, isValidISODateTime, isValidISOTime, keepDisplayName, LabelRange, mapShippingRateTierToGraphQL, mapTimeZonesToOptions, mapStoresToOptions, MC_RESOURCES_WITH_KEYS, minusify, MissingValueField, missingValueMessages, MultiValueSearchInput, nameValuePairsToMap, normalizeProductSettings, not, NumericFormatInput, omitDeep, omitSetsOfSets, or, Option, pickerMessages, PimIndexerProvider, PlatformLimitsFetcherQuery, PRECISION_TYPES, ProductAttributeInput, ProductAttributes, ProductPickerInput, ProductSelectionPicker, range, RecurrentIntervalPicker, reorderArrayItems, RequestCache, RequiredIndicator, resolveStatusType, RESOURCES_WITH_PLATFORM_LIMITS, safelyAddFallback, sanitize, ScrollToFieldError, searchCategories, SearchInput, searchInputMessages, SelectableFieldSearchInput, setToArray, setDisplayName, shallowEqual, shouldUpdateAttributeInput, slugify, sortDataByIdsArray, sortRequiresLanguage, splitVariantAttributesByConstraint, splitProductAndVariantAttributes, StoreSelectField, StoreSelectInput, stringToBase64, swapArrayItems, ThrottledField, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, useCachedCategoryOptions, useCurrentOption, useCustomersPlatformLimits, useCustomerGroupsPlatformLimits, useDebouncedPromiseCallback, useFormatCustomField, useFormatLocalizedFieldToString, useFormatLocalizedString, usePersistedReminder, useIsFieldDuplicated, useLocalizedKeyFallback, useLoadOptions, usePendingRequests, usePersistedTableConfiguration, usePimIndexer, usePrevious, useProductSelectionsFetcher, useProductSelectionsTotalFetcher, useRecurrenceIntervals, useRoleNotificationEffect, useIdentityBannerNotification, useShowBulkNotification, useStorage, type UseStorageOptions, useStoreKeysInDataFences, useStoresListFetcher, useStoresSearchFetcher, useStoreSearchIndexStatusFetcher, useStoresPlatformLimits, useTaxCategoriesPlatformLimits, useTotalNumberOfStoresFetcher, useShippingMethodsPlatformLimits, validatedInput, validateCustomField, validateCustomFields, CUSTOM_FIELD_TYPES, validateDate, validateMultiOptionEnum, validateSingleOptionEnum, validateText, validateNumber, validationMessages, VALIDATOR_INTEGER, VALIDATOR_NUMERIC, VALIDATOR_REQUIRED, valueMapping, withProps, withoutEmptyErrorsByField, withPendingRequests, WithPimIndexer, withRedirectTo, wrapDisplayName, };
@@ -1,13 +1,34 @@
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;
1
+ import { ReactNode } from 'react';
2
+ import { MessageDescriptor } from 'react-intl';
3
+ import { type TShowNotification } from '@commercetools-frontend/actions-global';
4
+ export type TCounts = {
5
+ successful: number;
12
6
  failed: number;
7
+ total: number;
13
8
  };
9
+ type TTexts = {
10
+ success: string;
11
+ failure: string;
12
+ warning: string;
13
+ };
14
+ type TMessages = {
15
+ success: MessageDescriptor;
16
+ failure: MessageDescriptor;
17
+ warning: MessageDescriptor;
18
+ };
19
+ type TGetBulkNotificationProps = {
20
+ counts: TCounts;
21
+ texts: TTexts;
22
+ };
23
+ type TBulkSummaryItem = {
24
+ success?: boolean;
25
+ };
26
+ type TShowBulkNotificationProps = {
27
+ bulkSummary: TBulkSummaryItem[];
28
+ messages: TMessages;
29
+ messagesValues?: Record<string, ReactNode>;
30
+ };
31
+ export declare const getBulkNotification: ({ counts, texts, }: TGetBulkNotificationProps) => TShowNotification;
32
+ export declare const getCountsFromBulkSummary: (bulkSummary: TBulkSummaryItem[]) => TCounts;
33
+ export declare const useShowBulkNotification: () => ({ bulkSummary, messages, messagesValues }: TShowBulkNotificationProps) => void;
34
+ export {};
@@ -3,4 +3,4 @@
3
3
  * @param {Object} initialState
4
4
  * @param {Object} actionHandlers
5
5
  */
6
- export default function createReducer(initialState: any, actionHandlers: any): (state: any, action: any) => any;
6
+ export default function createReducer(initialState: Object, actionHandlers: Object): (state: any, action: any) => any;
@@ -6,16 +6,16 @@
6
6
  * @return {Object} Category (as a REST API representation):
7
7
  * `{ id, obj: { id, name } }`
8
8
  */
9
- export function transformLocalizedFieldsForCategory(category: any, transformationOptions?: {
9
+ export function transformLocalizedFieldsForCategory(category: Object, transformationOptions?: {
10
10
  from: string;
11
11
  to: string;
12
- }[]): any;
12
+ }[]): Object;
13
13
  export function transformLocalizedFieldsForCartDiscount(cartDiscount: any): Record<string, unknown>;
14
14
  export function mapShippingRateTierToGraphQL(tiers: any): any;
15
15
  export function getIsLocalizedString(maybeLocalizedString: any): boolean;
16
16
  export function transformCustomFieldsRawToCustomFields(customFieldsRaw: any): any;
17
17
  export function createAttributeTypeValue(attribute: any): any;
18
- export function convertChangeValueAction(actionPayload: any): {
18
+ export function convertChangeValueAction(actionPayload: Object): {
19
19
  changeValue: {
20
20
  value: {
21
21
  [x: number]: Pick<any, any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/experimental-components",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,18 +25,18 @@
25
25
  "dependencies": {
26
26
  "@babel/core": "^7.22.11",
27
27
  "@babel/runtime-corejs3": "^7.21.0",
28
- "@commercetools-frontend/actions-global": "24.2.1",
29
- "@commercetools-frontend/application-components": "24.2.1",
30
- "@commercetools-frontend/application-shell": "24.2.1",
31
- "@commercetools-frontend/application-shell-connectors": "24.2.1",
32
- "@commercetools-frontend/constants": "24.2.1",
33
- "@commercetools-frontend/l10n": "24.2.1",
34
- "@commercetools-frontend/sdk": "24.2.1",
35
- "@commercetools-frontend/sentry": "24.2.1",
36
- "@commercetools-frontend/ui-kit": "20.2.2",
37
- "@commercetools-uikit/design-system": "20.2.2",
38
- "@commercetools-uikit/select-utils": "20.2.2",
39
- "@commercetools-uikit/utils": "20.2.2",
28
+ "@commercetools-frontend/actions-global": "24.7.2",
29
+ "@commercetools-frontend/application-components": "24.7.2",
30
+ "@commercetools-frontend/application-shell": "24.7.2",
31
+ "@commercetools-frontend/application-shell-connectors": "24.7.2",
32
+ "@commercetools-frontend/constants": "24.7.2",
33
+ "@commercetools-frontend/l10n": "24.7.2",
34
+ "@commercetools-frontend/sdk": "24.7.2",
35
+ "@commercetools-frontend/sentry": "24.7.2",
36
+ "@commercetools-frontend/ui-kit": "20.2.3",
37
+ "@commercetools-uikit/design-system": "20.2.3",
38
+ "@commercetools-uikit/select-utils": "20.2.3",
39
+ "@commercetools-uikit/utils": "20.2.3",
40
40
  "@emotion/react": "11.14.0",
41
41
  "@hello-pangea/dnd": "^18.0.1",
42
42
  "classnames": "2.5.1",
@@ -48,12 +48,12 @@
48
48
  "lodash": "4.17.21",
49
49
  "memoize-one": "6.0.0",
50
50
  "moment": "2.30.1",
51
- "moment-timezone": "0.5.47",
51
+ "moment-timezone": "0.6.0",
52
52
  "omit-deep": "0.3.0",
53
53
  "omit-empty-es": "1.2.0",
54
54
  "prop-types": "15.8.1",
55
55
  "react-snap-carousel": "^0.5.1",
56
- "react-textarea-autosize": "8.5.4",
56
+ "react-textarea-autosize": "8.5.9",
57
57
  "reselect": "4.1.8",
58
58
  "tiny-invariant": "1.3.3",
59
59
  "tiny-warning": "1.0.3",
@@ -61,27 +61,27 @@
61
61
  },
62
62
  "devDependencies": {
63
63
  "@apollo/client": "3.12.4",
64
- "@commercetools/composable-commerce-test-data": "13.2.0",
64
+ "@commercetools/composable-commerce-test-data": "13.7.1",
65
65
  "@testing-library/react": "16.1.0",
66
66
  "@types/debounce-promise": "3.1.9",
67
67
  "@types/jest": "^29.5.2",
68
- "@types/react": "17.0.83",
68
+ "@types/react": "19.2.0",
69
69
  "@types/testing-library__jest-dom": "^5.14.6",
70
70
  "formik": "2.4.6",
71
- "graphql": "16.10.0",
71
+ "graphql": "16.11.0",
72
72
  "graphql-tag": "2.12.6",
73
73
  "msw": "1.3.5",
74
- "react": "19.0.0",
75
- "react-dom": "19.0.0",
76
- "react-intl": "7.1.4",
74
+ "react": "19.2.0",
75
+ "react-dom": "19.2.0",
76
+ "react-intl": "7.1.11",
77
77
  "react-redux": "7.2.9",
78
78
  "react-required-if": "1.0.3",
79
79
  "react-router-dom": "5.3.4",
80
80
  "react-test-renderer": "17.0.2",
81
81
  "redux": "4.2.1",
82
82
  "typescript": "5.2.2",
83
- "@commercetools-local/test-data": "1.2.22",
84
- "@commercetools-local/test-utils": "1.2.22"
83
+ "@commercetools-local/test-data": "1.2.23",
84
+ "@commercetools-local/test-utils": "1.2.23"
85
85
  },
86
86
  "peerDependencies": {
87
87
  "@apollo/client": "3.x",