@commercetools-frontend/experimental-components 6.4.6 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/commercetools-frontend-experimental-components.cjs.dev.js +1310 -1094
  2. package/dist/commercetools-frontend-experimental-components.cjs.prod.js +1309 -1093
  3. package/dist/commercetools-frontend-experimental-components.esm.js +1292 -1090
  4. package/dist/declarations/src/components/channel-picker-input/channel-picker-input.d.ts +3 -3
  5. package/dist/declarations/src/components/divider/divider.d.ts +2 -2
  6. package/dist/declarations/src/components/formatted-date-time/formatted-date-time.d.ts +0 -1
  7. package/dist/declarations/src/components/recurrent-interval-picker/index.d.ts +2 -0
  8. package/dist/declarations/src/components/recurrent-interval-picker/recurrent-interval-picker.d.ts +13 -0
  9. package/dist/declarations/src/components/recurrent-interval-picker/use-recurrence-intervals/index.d.ts +1 -0
  10. package/dist/declarations/src/{hooks → components/recurrent-interval-picker}/use-recurrence-intervals/use-recurrence-intervals.d.ts +6 -1
  11. package/dist/declarations/src/components/store-select-input/constants.d.ts +2 -0
  12. package/dist/declarations/src/components/validated-input/validated-input.d.ts +7 -38
  13. package/dist/declarations/src/constants/index.d.ts +1 -0
  14. package/dist/declarations/src/custom-fields/custom-field-definitions-connector/custom-field-definitions-connector.d.ts +0 -1
  15. package/dist/declarations/src/custom-fields/custom-field-type-definitions-connector/custom-field-type-definitions-connector.d.ts +0 -1
  16. package/dist/declarations/src/custom-fields/custom-fields/constants.d.ts +36 -0
  17. package/dist/declarations/src/custom-fields/custom-fields/custom-field-input.d.ts +2 -0
  18. package/dist/declarations/src/custom-fields/custom-fields/index.d.ts +2 -1
  19. package/dist/declarations/src/features/picker/shared/hooks/use-load-options.d.ts +1 -1
  20. package/dist/declarations/src/features/picker/shared/hooks/use-product-type-options.d.ts +2 -2
  21. package/dist/declarations/src/features/pim-indexer/components/pim-indexer-provider/pim-indexer-provider.d.ts +0 -1
  22. package/dist/declarations/src/features/pim-indexer/components/with-pim-indexer/with-pim-indexer.d.ts +0 -1
  23. package/dist/declarations/src/features/platform-limits/business-units/hooks/index.d.ts +2 -0
  24. package/dist/declarations/src/features/platform-limits/business-units/hooks/use-business-units-platform-limits/index.d.ts +1 -0
  25. package/dist/declarations/src/features/platform-limits/business-units/hooks/use-business-units-platform-limits/use-business-units-platform-limits.d.ts +10 -0
  26. package/dist/declarations/src/features/platform-limits/business-units/hooks/use-business-units-platform-limits-fetcher/index.d.ts +1 -0
  27. package/dist/declarations/src/features/platform-limits/business-units/hooks/use-business-units-platform-limits-fetcher/use-business-units-platform-limits-fetcher.d.ts +12 -0
  28. package/dist/declarations/src/features/platform-limits/business-units/index.d.ts +1 -0
  29. package/dist/declarations/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits/use-customer-groups-platform-limits.d.ts +1 -1
  30. package/dist/declarations/src/features/platform-limits/customer-groups/hooks/use-customer-groups-platform-limits-fetcher/use-customer-groups-platform-limits-fetcher.d.ts +1 -1
  31. package/dist/declarations/src/features/platform-limits/customers/hooks/use-customers-platform-limits/use-customers-platform-limits.d.ts +2 -1
  32. package/dist/declarations/src/features/platform-limits/customers/hooks/use-customers-platform-limits-fetcher/use-customers-platform-limits-fetcher.d.ts +1 -1
  33. package/dist/declarations/src/features/platform-limits/index.d.ts +3 -0
  34. package/dist/declarations/src/features/platform-limits/shared/components/index.d.ts +2 -0
  35. package/dist/declarations/src/features/platform-limits/shared/components/notifications/error/error.d.ts +12 -0
  36. package/dist/declarations/src/features/platform-limits/shared/components/notifications/error/index.d.ts +1 -0
  37. package/dist/declarations/src/features/platform-limits/shared/components/notifications/index.d.ts +1 -0
  38. package/dist/declarations/src/features/platform-limits/shared/components/notifications/notifications.d.ts +7 -0
  39. package/dist/declarations/src/features/platform-limits/shared/components/notifications/warning/index.d.ts +1 -0
  40. package/dist/declarations/src/features/platform-limits/shared/components/notifications/warning/warning.d.ts +12 -0
  41. package/dist/declarations/src/features/platform-limits/shared/components/status-text/index.d.ts +1 -0
  42. package/dist/declarations/src/features/platform-limits/shared/components/status-text/status-text.d.ts +12 -0
  43. package/dist/declarations/src/features/platform-limits/shared/constants.d.ts +13 -0
  44. package/dist/declarations/src/features/platform-limits/shared/hooks/index.d.ts +3 -0
  45. package/dist/declarations/src/features/platform-limits/shared/hooks/use-intercept-navigation/index.d.ts +1 -0
  46. package/dist/declarations/src/features/platform-limits/shared/hooks/use-intercept-navigation/use-intercept-navigation.d.ts +7 -0
  47. package/dist/declarations/src/features/platform-limits/shared/hooks/use-limits-modal-state/index.d.ts +1 -0
  48. package/dist/declarations/src/features/platform-limits/shared/hooks/use-limits-modal-state/use-limits-modal-state.d.ts +6 -0
  49. package/dist/declarations/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/index.d.ts +3 -0
  50. package/dist/declarations/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/platform-limits-query-variables.d.ts +2 -0
  51. package/dist/declarations/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/use-platform-limits-fetcher.d.ts +7 -0
  52. package/dist/declarations/src/features/platform-limits/shared/index.d.ts +4 -0
  53. package/dist/declarations/src/features/platform-limits/shared/utils/index.d.ts +1 -0
  54. package/dist/declarations/src/features/platform-limits/shared/utils/utils.d.ts +14 -0
  55. package/dist/declarations/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits/use-shipping-methods-platform-limits.d.ts +1 -1
  56. package/dist/declarations/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits-fetcher/use-shipping-methods-platform-limits-fetcher.d.ts +1 -1
  57. package/dist/declarations/src/features/platform-limits/stores/hooks/index.d.ts +3 -0
  58. package/dist/declarations/src/features/platform-limits/stores/hooks/use-store-platform-limits/index.d.ts +1 -0
  59. package/dist/declarations/src/features/platform-limits/stores/hooks/use-store-platform-limits/use-store-platform-limits.d.ts +15 -0
  60. package/dist/declarations/src/features/platform-limits/stores/hooks/use-store-platform-limits-fetcher/index.d.ts +1 -0
  61. package/dist/declarations/src/features/platform-limits/stores/hooks/use-store-platform-limits-fetcher/use-store-platform-limits-fetcher.d.ts +13 -0
  62. package/dist/declarations/src/features/platform-limits/stores/hooks/use-store-platform-limits-status/index.d.ts +1 -0
  63. package/dist/declarations/src/features/platform-limits/stores/hooks/use-store-platform-limits-status/use-store-platform-limits-status.d.ts +5 -0
  64. package/dist/declarations/src/features/platform-limits/stores/index.d.ts +1 -0
  65. package/dist/declarations/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits/use-tax-categories-platform-limits.d.ts +1 -1
  66. package/dist/declarations/src/features/platform-limits/tax-categories/hooks/use-tax-categories-platform-limits-fetcher/use-tax-categories-platform-limits-fetcher.d.ts +1 -1
  67. package/dist/declarations/src/features/platform-limits/zones/hooks/use-zones-platform-limits/use-zones-platform-limits.d.ts +1 -1
  68. package/dist/declarations/src/features/platform-limits/zones/hooks/use-zones-platform-limits-fetcher/use-zones-platform-limits-fetcher.d.ts +1 -1
  69. package/dist/declarations/src/fields/numeric-format-input/numeric-format-input.d.ts +0 -1
  70. package/dist/declarations/src/fields/search-input/search-input.d.ts +0 -1
  71. package/dist/declarations/src/fields/throttled-field/throttled-field.d.ts +0 -1
  72. package/dist/declarations/src/hooks/index.d.ts +0 -2
  73. package/dist/declarations/src/hooks/use-persisted-reminder/use-persisted-reminder.d.ts +1 -1
  74. package/dist/declarations/src/hooks/use-previous/use-previous.d.ts +1 -1
  75. package/dist/declarations/src/hooks/use-product-selections-fetcher/use-product-selections-fetcher.d.ts +1 -6
  76. package/dist/declarations/src/hooks/use-stores-list-fetcher/use-stores-list-fetcher.d.ts +1 -8
  77. package/dist/declarations/src/index.d.ts +10 -8
  78. package/dist/declarations/src/utils/type-definitions/type-definitions.d.ts +1 -1
  79. package/dist/styles.css +118 -118
  80. package/package.json +25 -28
  81. package/dist/declarations/src/hooks/use-did-form-validation-fail/index.d.ts +0 -1
  82. package/dist/declarations/src/hooks/use-did-form-validation-fail/use-did-form-validation-fail.d.ts +0 -1
@@ -2,16 +2,16 @@ export default ChannelPickerInput;
2
2
  declare function ChannelPickerInput({ isClearable, isDisabled, isReadOnly, onChange, name, onBlur, value, hasError, onError, placeholder, roles, hasWarning, isMulti, }: {
3
3
  isClearable: any;
4
4
  isDisabled: any;
5
- isReadOnly: any;
5
+ isReadOnly?: boolean | undefined;
6
6
  onChange: any;
7
7
  name: any;
8
8
  onBlur: any;
9
9
  value: any;
10
10
  hasError: any;
11
- onError: any;
11
+ onError?: null | undefined;
12
12
  placeholder: any;
13
13
  roles: any;
14
- hasWarning: any;
14
+ hasWarning?: boolean | undefined;
15
15
  isMulti?: boolean | undefined;
16
16
  }): import("@emotion/react/jsx-runtime").JSX.Element;
17
17
  declare namespace ChannelPickerInput {
@@ -1,5 +1,5 @@
1
- declare function Divider({ isDashed, orientation }: {
2
- isDashed: any;
1
+ declare function Divider({ isDashed, orientation, }: {
2
+ isDashed?: boolean | undefined;
3
3
  orientation?: string | undefined;
4
4
  }): import("@emotion/react/jsx-runtime").JSX.Element;
5
5
  declare namespace Divider {
@@ -7,7 +7,6 @@ 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);
11
10
  render(): import("@emotion/react/jsx-runtime").JSX.Element;
12
11
  }
13
12
  declare const _default: import("react").FC<import("react-intl").WithIntlProps<any>> & {
@@ -0,0 +1,2 @@
1
+ export { default } from "./recurrent-interval-picker.js";
2
+ export { useRecurrenceIntervals } from "./use-recurrence-intervals/index.js";
@@ -0,0 +1,13 @@
1
+ import { TCustomEvent } from '@commercetools-frontend/ui-kit';
2
+ type TRecurrentIntervalPickerProps = {
3
+ name: string;
4
+ value: string;
5
+ onChange: (event: TCustomEvent) => void;
6
+ onBlur?: (event: TCustomEvent) => void;
7
+ onError?: (error: Error) => void;
8
+ isClearable?: boolean;
9
+ isDisabled?: boolean;
10
+ isReadOnly?: boolean;
11
+ };
12
+ declare const RecurrentIntervalPicker: ({ name, value, onChange, onBlur, onError, isClearable, isDisabled, isReadOnly, }: TRecurrentIntervalPickerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
13
+ export default RecurrentIntervalPicker;
@@ -0,0 +1 @@
1
+ export { useRecurrenceIntervals } from "./use-recurrence-intervals.js";
@@ -1,4 +1,8 @@
1
- export declare const useRecurrenceIntervals: () => {
1
+ type TUseRecurrenceIntervalsProps = {
2
+ where?: string;
3
+ skip?: boolean;
4
+ };
5
+ export declare const useRecurrenceIntervals: ({ where, skip, }: TUseRecurrenceIntervalsProps) => {
2
6
  recurrencePolicies: {
3
7
  __typename?: "RecurrencePolicy" | undefined;
4
8
  id: string;
@@ -13,3 +17,4 @@ export declare const useRecurrenceIntervals: () => {
13
17
  error: import("@apollo/client").ApolloError | undefined;
14
18
  isRecurringOrdersDisabled: any;
15
19
  };
20
+ export {};
@@ -0,0 +1,2 @@
1
+ export const LOWER_STORES_LIMIT: 60;
2
+ export const UPPER_STORES_LIMIT: 500;
@@ -11,54 +11,23 @@ export function simpleInput(type: any): {
11
11
  new (props: any): {
12
12
  handleBlur: (event: any) => void;
13
13
  render(): import("@emotion/react/jsx-runtime").JSX.Element;
14
- context: any;
14
+ context: unknown;
15
15
  setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
16
16
  forceUpdate(callback?: (() => void) | undefined): void;
17
- readonly props: Readonly<any> & Readonly<{
18
- children?: import("react").ReactNode;
19
- }>;
17
+ readonly props: Readonly<any>;
20
18
  state: Readonly<any>;
21
- refs: {
22
- [key: string]: import("react").ReactInstance;
23
- };
24
19
  componentDidMount?(): void;
25
- shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
20
+ shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>): boolean;
26
21
  componentWillUnmount?(): void;
27
22
  componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
28
23
  getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
29
24
  componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
30
25
  componentWillMount?(): void;
31
26
  UNSAFE_componentWillMount?(): void;
32
- componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
33
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
34
- componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
35
- UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
36
- };
37
- new (props: any, context: any): {
38
- handleBlur: (event: any) => void;
39
- render(): import("@emotion/react/jsx-runtime").JSX.Element;
40
- context: any;
41
- setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
42
- forceUpdate(callback?: (() => void) | undefined): void;
43
- readonly props: Readonly<any> & Readonly<{
44
- children?: import("react").ReactNode;
45
- }>;
46
- state: Readonly<any>;
47
- refs: {
48
- [key: string]: import("react").ReactInstance;
49
- };
50
- componentDidMount?(): void;
51
- shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
52
- componentWillUnmount?(): void;
53
- componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
54
- getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
55
- componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
56
- componentWillMount?(): void;
57
- UNSAFE_componentWillMount?(): void;
58
- componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
59
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
60
- componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
61
- UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): 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;
62
31
  };
63
32
  displayName: string;
64
33
  propTypes: {
@@ -70,3 +70,4 @@ export const PRODUCT_TAILORING_FOR_ATTRIBUTES_TYPES_OTHER_THAN_TEXT: "productTai
70
70
  export const PRODUCT_TAILORING_FOR_ATTRIBUTES_FALLBACK_VALUES: "productTailoringForAttributesFallbackValues";
71
71
  export const UTC: "UTC";
72
72
  export const Z_INDEX_DROPDOWN: 30000;
73
+ export { LOWER_STORES_LIMIT, UPPER_STORES_LIMIT } from "../components/store-select-input/constants.js";
@@ -11,7 +11,6 @@ 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);
15
14
  componentDidMount(): void;
16
15
  render(): any;
17
16
  }
@@ -47,7 +47,6 @@ 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);
51
50
  componentDidMount(): void;
52
51
  render(): any;
53
52
  }
@@ -0,0 +1,36 @@
1
+ export namespace CUSTOM_FIELD_TYPES {
2
+ export let text: string;
3
+ export let string: string;
4
+ export let localizedstring: string;
5
+ export let ltext: string;
6
+ export let number: string;
7
+ export let money: string;
8
+ export let boolean: string;
9
+ let _enum: string;
10
+ export { _enum as enum };
11
+ export let localizedenum: string;
12
+ export let lenum: string;
13
+ export let reference: string;
14
+ export let time: string;
15
+ export let datetime: string;
16
+ export let date: string;
17
+ export let nested: string;
18
+ export let set: string;
19
+ }
20
+ export const REFERENCED_TYPES: {
21
+ cart: string;
22
+ channel: string;
23
+ customer: string;
24
+ 'key-value-document': string;
25
+ order: string;
26
+ product: string;
27
+ 'product-type': string;
28
+ review: string;
29
+ state: string;
30
+ 'shipping-method': string;
31
+ zone: string;
32
+ };
33
+ export const REFERENCED_TYPES_WITH_AUTOCOMPLETE: {
34
+ category: string;
35
+ 'cart-discount': string;
36
+ };
@@ -0,0 +1,2 @@
1
+ export default CustomFieldInput;
2
+ declare const CustomFieldInput: import("react").NamedExoticComponent<object>;
@@ -1,5 +1,6 @@
1
1
  export default CustomFields;
2
2
  export { useDnDContext } from "./dnd-provider.jsx";
3
- export { validateCustomFields };
4
3
  import CustomFields from "./custom-fields.jsx";
5
4
  import validateCustomFields from "./validations/index.js";
5
+ import { CUSTOM_FIELD_TYPES } from "./constants.js";
6
+ export { validateCustomFields, CUSTOM_FIELD_TYPES };
@@ -3,4 +3,4 @@ declare function useLoadOptions({ query, variables, prefixSearchFields }: {
3
3
  query: any;
4
4
  variables: any;
5
5
  prefixSearchFields: any;
6
- }): (inputValue?: any) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
6
+ }): (inputValue?: string) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
@@ -7,12 +7,12 @@ declare function useProductTypeOptions({ prefixSearchFields }: {
7
7
  prefixSearchFields: any;
8
8
  }): {
9
9
  isProjectIndexed: boolean;
10
- loadProductTypes: (searchTerm: any) => Promise<import("@apollo/client").ApolloQueryResult<any> | {
10
+ loadProductTypes: ((searchTerm: any) => Promise<import("@apollo/client").ApolloQueryResult<any> | {
11
11
  data: {
12
12
  productType: {
13
13
  results: never[];
14
14
  };
15
15
  };
16
16
  loading: boolean;
17
- }>;
17
+ }>) | ((inputValue?: string) => Promise<import("@apollo/client").ApolloQueryResult<any>>);
18
18
  };
@@ -11,7 +11,6 @@ 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);
15
14
  state: {
16
15
  isLoading: boolean;
17
16
  isPimIndexerUnreachable: boolean;
@@ -4,7 +4,6 @@ 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);
8
7
  render(): import("@emotion/react/jsx-runtime").JSX.Element;
9
8
  }
10
9
  export default WithPimIndexer;
@@ -0,0 +1,2 @@
1
+ export { default as useBusinessUnitsPlatformLimitsFetcher } from "./use-business-units-platform-limits-fetcher/index.js";
2
+ export { default as useBusinessUnitsPlatformLimits } from "./use-business-units-platform-limits/index.js";
@@ -0,0 +1 @@
1
+ export { default } from "./use-business-units-platform-limits.js";
@@ -0,0 +1,10 @@
1
+ export default useBusinessUnitsLimits;
2
+ declare function useBusinessUnitsLimits(): {
3
+ BusinessUnitsLimits: {
4
+ businessUnitsMaxDivisionsLimit: any;
5
+ businessUnitsMaxDepthLimit: any;
6
+ businessUnitsMaxAssociatesLimit: any;
7
+ businessUnitsMaxAssociateRolesLimit: any;
8
+ };
9
+ refetchBusinessUnitsPlatformLimits: (variables?: Partial<import("@apollo/client").OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
10
+ };
@@ -0,0 +1 @@
1
+ export { default } from "./use-business-units-platform-limits-fetcher.js";
@@ -0,0 +1,12 @@
1
+ export default useBusinessUnitsPlatformLimitsFetcher;
2
+ declare function useBusinessUnitsPlatformLimitsFetcher(): {
3
+ isLoading: boolean;
4
+ error: import("@apollo/client").ApolloError | undefined;
5
+ platformLimits: {
6
+ businessUnitsMaxDivisionsLimit: any;
7
+ businessUnitsMaxDepthLimit: any;
8
+ businessUnitsMaxAssociatesLimit: any;
9
+ businessUnitsMaxAssociateRolesLimit: any;
10
+ };
11
+ refetch: (variables?: Partial<import("@apollo/client").OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
12
+ };
@@ -0,0 +1 @@
1
+ export { useBusinessUnitsPlatformLimits } from "./hooks/index.js";
@@ -27,7 +27,7 @@ declare function useCustomerGroupsPlatformLimits(): {
27
27
  displayName: string;
28
28
  };
29
29
  };
30
- refetchCustomerGroupsPlatformLimits: (variables?: Partial<{}> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
30
+ refetchCustomerGroupsPlatformLimits: (variables?: Partial<import("@apollo/client").OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
31
31
  interceptNavigation: {
32
32
  wrap: (handler: any) => (...args: any[]) => any;
33
33
  isPlatformLimitExceeded: boolean;
@@ -3,5 +3,5 @@ declare function useCustomerGroupsPlatformLimitsFetcher(): {
3
3
  isLoading: boolean;
4
4
  error: import("@apollo/client").ApolloError | undefined;
5
5
  platformLimits: Pick<any, string | number | symbol>;
6
- refetch: (variables?: Partial<{}> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
6
+ refetch: (variables?: Partial<import("@apollo/client").OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
7
7
  };
@@ -27,7 +27,8 @@ declare function useCustomersPlatformLimits(): {
27
27
  displayName: string;
28
28
  };
29
29
  };
30
- refetchCustomersPlatformLimits: (variables?: Partial<{}> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
30
+ refetchCustomersPlatformLimits: (variables?: Partial<import("@apollo/client").OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
31
+ maxGroupsPerCustomerLimit: any;
31
32
  interceptNavigation: {
32
33
  wrap: (handler: any) => (...args: any[]) => any;
33
34
  isPlatformLimitExceeded: boolean;
@@ -3,5 +3,5 @@ declare function useCustomersPlatformLimitsFetcher(): {
3
3
  isLoading: boolean;
4
4
  error: import("@apollo/client").ApolloError | undefined;
5
5
  platformLimits: Pick<any, string | number | symbol>;
6
- refetch: (variables?: Partial<{}> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
6
+ refetch: (variables?: Partial<import("@apollo/client").OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
7
7
  };
@@ -1,5 +1,8 @@
1
+ export { useBusinessUnitsPlatformLimits } from "./business-units/index.js";
2
+ export { useStoresPlatformLimits } from "./stores/index.js";
1
3
  export { useShippingMethodsPlatformLimits, injectShippingMethodsPlatformLimits } from "./shipping-methods/index.js";
2
4
  export { useTaxCategoriesPlatformLimits, injectTaxCategoriesPlatformLimits } from "./tax-categories/index.js";
3
5
  export { useZonesPlatformLimits, injectZonesPlatformLimits } from "./zones/index.js";
4
6
  export { useCustomersPlatformLimits, injectCustomersPlatformLimits } from "./customers/index.js";
5
7
  export { useCustomerGroupsPlatformLimits, injectCustomerGroupsPlatformLimits } from "./customer-groups/index.js";
8
+ export { RESOURCES_WITH_PLATFORM_LIMITS, createPlatformLimitsQueryVariables, PlatformLimitsFetcherQuery } from "./shared/index.js";
@@ -0,0 +1,2 @@
1
+ export { default as Notifications } from "./notifications/index.js";
2
+ export { default as StatusText } from "./status-text/index.js";
@@ -0,0 +1,12 @@
1
+ export default PlatformLimitErrorNotification;
2
+ declare function PlatformLimitErrorNotification({ resource, limit }: {
3
+ resource: any;
4
+ limit: any;
5
+ }): import("@emotion/react/jsx-runtime").JSX.Element;
6
+ declare namespace PlatformLimitErrorNotification {
7
+ namespace propTypes {
8
+ let resource: any;
9
+ let limit: any;
10
+ }
11
+ let displayName: string;
12
+ }
@@ -0,0 +1 @@
1
+ export { default } from "./notifications.js";
@@ -0,0 +1,7 @@
1
+ export default Notifications;
2
+ declare namespace Notifications {
3
+ export { Warning };
4
+ export { Error };
5
+ }
6
+ import Warning from "./warning/index.js";
7
+ import Error from "./error/index.js";
@@ -0,0 +1,12 @@
1
+ export default PlatformLimitWarningNotification;
2
+ declare function PlatformLimitWarningNotification({ resource, limit }: {
3
+ resource: any;
4
+ limit: any;
5
+ }): import("@emotion/react/jsx-runtime").JSX.Element;
6
+ declare namespace PlatformLimitWarningNotification {
7
+ namespace propTypes {
8
+ let resource: any;
9
+ let limit: any;
10
+ }
11
+ let displayName: string;
12
+ }
@@ -0,0 +1 @@
1
+ export { default } from "./status-text.jsx";
@@ -0,0 +1,12 @@
1
+ export default PlatformLimitsStatusText;
2
+ declare function PlatformLimitsStatusText({ intlMessage, children }: {
3
+ intlMessage: any;
4
+ children: any;
5
+ }): import("@emotion/react/jsx-runtime").JSX.Element;
6
+ declare namespace PlatformLimitsStatusText {
7
+ namespace propTypes {
8
+ let intlMessage: any;
9
+ let children: any;
10
+ }
11
+ let displayName: string;
12
+ }
@@ -0,0 +1,13 @@
1
+ export namespace RESOURCES_WITH_PLATFORM_LIMITS {
2
+ let businessUnits: string;
3
+ let shoppingLists: string;
4
+ let productDiscounts: string;
5
+ let cartDiscounts: string;
6
+ let stores: string;
7
+ let customers: string;
8
+ let customerGroups: string;
9
+ let zones: string;
10
+ let taxCategories: string;
11
+ let shippingMethods: string;
12
+ let carts: string;
13
+ }
@@ -0,0 +1,3 @@
1
+ export { default as useLimitsModalState } from "./use-limits-modal-state/index.js";
2
+ export { default as useInterceptNavigation } from "./use-intercept-navigation/index.js";
3
+ export { default as usePlatformLimitsFetcher, PlatformLimitsFetcherQuery, createPlatformLimitsQueryVariables } from "./use-platform-limits-fetcher/index.js";
@@ -0,0 +1 @@
1
+ export { default } from "./use-intercept-navigation.js";
@@ -0,0 +1,7 @@
1
+ export default useInterceptNavigation;
2
+ declare function useInterceptNavigation(hasReachedErrorLimit: any): {
3
+ wrap: (handler: any) => (...args: any[]) => any;
4
+ isPlatformLimitExceeded: boolean;
5
+ setPlatformLimitToBeExceeded: () => void;
6
+ setPlatformLimitToBeNotExceeded: () => void;
7
+ };
@@ -0,0 +1 @@
1
+ export { default } from "./use-limits-modal-state.js";
@@ -0,0 +1,6 @@
1
+ export default useLimitsModalState;
2
+ declare function useLimitsModalState(isInitiallyOpen?: boolean): {
3
+ isModalOpen: boolean;
4
+ closeModal: () => void;
5
+ openModal: () => void;
6
+ };
@@ -0,0 +1,3 @@
1
+ export { default } from "./use-platform-limits-fetcher.js";
2
+ export { PlatformLimitsFetcherQuery };
3
+ export { default as createPlatformLimitsQueryVariables } from "./platform-limits-query-variables.js";
@@ -0,0 +1,2 @@
1
+ export default createQueryVariables;
2
+ declare function createQueryVariables(platformLimit: any): {};
@@ -0,0 +1,7 @@
1
+ export default usePlatformLimitsFetcher;
2
+ declare function usePlatformLimitsFetcher(platformLimit: any): {
3
+ isLoading: boolean;
4
+ error: import("@apollo/client").ApolloError | undefined;
5
+ platformLimits: Pick<any, string | number | symbol>;
6
+ refetch: (variables?: Partial<import("@apollo/client").OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
7
+ };
@@ -0,0 +1,4 @@
1
+ export { RESOURCES_WITH_PLATFORM_LIMITS } from "./constants.js";
2
+ export { usePlatformLimitsFetcher, useLimitsModalState, useInterceptNavigation, PlatformLimitsFetcherQuery, createPlatformLimitsQueryVariables } from "./hooks/index.js";
3
+ export { Notifications, StatusText } from "./components/index.js";
4
+ export { getHasExceededWarningThreshold, getHasExceededLimit, getPlatformLimitsStatus } from "./utils/index.js";
@@ -0,0 +1 @@
1
+ export { getHasExceededWarningThreshold, getHasExceededLimit, getPlatformLimitsStatus } from "./utils.js";
@@ -0,0 +1,14 @@
1
+ export function getHasExceededWarningThreshold({ limit, current }: {
2
+ limit: any;
3
+ current: any;
4
+ }): boolean;
5
+ export function getHasExceededLimit({ limit, current }: {
6
+ limit: any;
7
+ current: any;
8
+ }): boolean;
9
+ export function getPlatformLimitsStatus({ limit, current, total, intl }: {
10
+ limit: any;
11
+ current: any;
12
+ total: any;
13
+ intl: any;
14
+ }): string;
@@ -19,7 +19,7 @@ declare function useShippingMethodsLimits(): {
19
19
  displayName: string;
20
20
  };
21
21
  };
22
- refetchShippingMethodsPlatformLimits: (variables?: Partial<{}> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
22
+ refetchShippingMethodsPlatformLimits: (variables?: Partial<import("@apollo/client").OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
23
23
  status: {
24
24
  hasReachedShippingMethodsWarningLimit: boolean;
25
25
  hasReachedShippingMethodsErrorLimit: boolean;
@@ -3,5 +3,5 @@ declare function useShippingMethodsPlatformLimitsFetcher(): {
3
3
  isLoading: boolean;
4
4
  error: import("@apollo/client").ApolloError | undefined;
5
5
  platformLimits: Pick<any, string | number | symbol>;
6
- refetch: (variables?: Partial<{}> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
6
+ refetch: (variables?: Partial<import("@apollo/client").OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
7
7
  };
@@ -0,0 +1,3 @@
1
+ export { default as useStoresPlatformLimitsFetcher } from "./use-store-platform-limits-fetcher/index.js";
2
+ export { default as useStoresPlatformLimitsStatus } from "./use-store-platform-limits-status/index.js";
3
+ export { default as useStoresPlatformLimits } from "./use-store-platform-limits/index.js";
@@ -0,0 +1 @@
1
+ export { default } from "./use-store-platform-limits.js";
@@ -0,0 +1,15 @@
1
+ export default useStoresLimits;
2
+ declare function useStoresLimits(): {
3
+ StoreLimits: {
4
+ total: any;
5
+ storeLimit: any;
6
+ storeCurrent: any;
7
+ inventorySupplyChannels: any;
8
+ productDistributionChannels: any;
9
+ };
10
+ refetchStoresPlatformLimits: (variables?: Partial<import("@apollo/client").OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
11
+ status: {
12
+ hasReachedStoresWarningLimit: boolean;
13
+ hasReachedStoresErrorLimit: boolean;
14
+ };
15
+ };
@@ -0,0 +1 @@
1
+ export { default } from "./use-store-platform-limits-fetcher.js";
@@ -0,0 +1,13 @@
1
+ export default useStoresPlatformLimitsFetcher;
2
+ declare function useStoresPlatformLimitsFetcher(): {
3
+ isLoading: boolean;
4
+ error: import("@apollo/client").ApolloError | undefined;
5
+ platformLimits: {
6
+ total: any;
7
+ storeLimit: any;
8
+ storeCurrent: any;
9
+ inventorySupplyChannels: any;
10
+ productDistributionChannels: any;
11
+ };
12
+ refetch: (variables?: Partial<import("@apollo/client").OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
13
+ };
@@ -0,0 +1 @@
1
+ export { default } from "./use-store-platform-limits-status.js";
@@ -0,0 +1,5 @@
1
+ export default useStoresPlatformLimits;
2
+ declare function useStoresPlatformLimits(): {
3
+ hasReachedStoresWarningLimit: boolean;
4
+ hasReachedStoresErrorLimit: boolean;
5
+ };
@@ -0,0 +1 @@
1
+ export { useStoresPlatformLimits } from "./hooks/index.js";
@@ -19,7 +19,7 @@ declare function useTaxCategoriesLimits(): {
19
19
  displayName: string;
20
20
  };
21
21
  };
22
- refetchTaxCategoriesPlatformLimits: (variables?: Partial<{}> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
22
+ refetchTaxCategoriesPlatformLimits: (variables?: Partial<import("@apollo/client").OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
23
23
  status: {
24
24
  hasReachedTaxCategoriesWarningLimit: boolean;
25
25
  hasReachedTaxCategoriesErrorLimit: boolean;
@@ -3,5 +3,5 @@ declare function useTaxCategoriesPlatformLimitsFetcher(): {
3
3
  isLoading: boolean;
4
4
  error: import("@apollo/client").ApolloError | undefined;
5
5
  platformLimits: Pick<any, string | number | symbol>;
6
- refetch: (variables?: Partial<{}> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
6
+ refetch: (variables?: Partial<import("@apollo/client").OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
7
7
  };
@@ -19,7 +19,7 @@ declare function useZonesLimits(): {
19
19
  displayName: string;
20
20
  };
21
21
  };
22
- refetchZonesPlatformLimits: (variables?: Partial<{}> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
22
+ refetchZonesPlatformLimits: (variables?: Partial<import("@apollo/client").OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
23
23
  status: {
24
24
  hasReachedZonesWarningLimit: boolean;
25
25
  hasReachedZonesErrorLimit: boolean;