@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.
- package/dist/commercetools-frontend-experimental-components.cjs.dev.js +1310 -1094
- package/dist/commercetools-frontend-experimental-components.cjs.prod.js +1309 -1093
- package/dist/commercetools-frontend-experimental-components.esm.js +1292 -1090
- package/dist/declarations/src/components/channel-picker-input/channel-picker-input.d.ts +3 -3
- package/dist/declarations/src/components/divider/divider.d.ts +2 -2
- package/dist/declarations/src/components/formatted-date-time/formatted-date-time.d.ts +0 -1
- package/dist/declarations/src/components/recurrent-interval-picker/index.d.ts +2 -0
- package/dist/declarations/src/components/recurrent-interval-picker/recurrent-interval-picker.d.ts +13 -0
- package/dist/declarations/src/components/recurrent-interval-picker/use-recurrence-intervals/index.d.ts +1 -0
- package/dist/declarations/src/{hooks → components/recurrent-interval-picker}/use-recurrence-intervals/use-recurrence-intervals.d.ts +6 -1
- package/dist/declarations/src/components/store-select-input/constants.d.ts +2 -0
- package/dist/declarations/src/components/validated-input/validated-input.d.ts +7 -38
- package/dist/declarations/src/constants/index.d.ts +1 -0
- package/dist/declarations/src/custom-fields/custom-field-definitions-connector/custom-field-definitions-connector.d.ts +0 -1
- package/dist/declarations/src/custom-fields/custom-field-type-definitions-connector/custom-field-type-definitions-connector.d.ts +0 -1
- package/dist/declarations/src/custom-fields/custom-fields/constants.d.ts +36 -0
- package/dist/declarations/src/custom-fields/custom-fields/custom-field-input.d.ts +2 -0
- package/dist/declarations/src/custom-fields/custom-fields/index.d.ts +2 -1
- package/dist/declarations/src/features/picker/shared/hooks/use-load-options.d.ts +1 -1
- package/dist/declarations/src/features/picker/shared/hooks/use-product-type-options.d.ts +2 -2
- package/dist/declarations/src/features/pim-indexer/components/pim-indexer-provider/pim-indexer-provider.d.ts +0 -1
- package/dist/declarations/src/features/pim-indexer/components/with-pim-indexer/with-pim-indexer.d.ts +0 -1
- package/dist/declarations/src/features/platform-limits/business-units/hooks/index.d.ts +2 -0
- package/dist/declarations/src/features/platform-limits/business-units/hooks/use-business-units-platform-limits/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/business-units/hooks/use-business-units-platform-limits/use-business-units-platform-limits.d.ts +10 -0
- package/dist/declarations/src/features/platform-limits/business-units/hooks/use-business-units-platform-limits-fetcher/index.d.ts +1 -0
- 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
- package/dist/declarations/src/features/platform-limits/business-units/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 +1 -1
- 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
- package/dist/declarations/src/features/platform-limits/customers/hooks/use-customers-platform-limits/use-customers-platform-limits.d.ts +2 -1
- package/dist/declarations/src/features/platform-limits/customers/hooks/use-customers-platform-limits-fetcher/use-customers-platform-limits-fetcher.d.ts +1 -1
- package/dist/declarations/src/features/platform-limits/index.d.ts +3 -0
- package/dist/declarations/src/features/platform-limits/shared/components/index.d.ts +2 -0
- package/dist/declarations/src/features/platform-limits/shared/components/notifications/error/error.d.ts +12 -0
- package/dist/declarations/src/features/platform-limits/shared/components/notifications/error/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/shared/components/notifications/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/shared/components/notifications/notifications.d.ts +7 -0
- package/dist/declarations/src/features/platform-limits/shared/components/notifications/warning/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/shared/components/notifications/warning/warning.d.ts +12 -0
- package/dist/declarations/src/features/platform-limits/shared/components/status-text/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/shared/components/status-text/status-text.d.ts +12 -0
- package/dist/declarations/src/features/platform-limits/shared/constants.d.ts +13 -0
- package/dist/declarations/src/features/platform-limits/shared/hooks/index.d.ts +3 -0
- package/dist/declarations/src/features/platform-limits/shared/hooks/use-intercept-navigation/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/shared/hooks/use-intercept-navigation/use-intercept-navigation.d.ts +7 -0
- package/dist/declarations/src/features/platform-limits/shared/hooks/use-limits-modal-state/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/shared/hooks/use-limits-modal-state/use-limits-modal-state.d.ts +6 -0
- package/dist/declarations/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/index.d.ts +3 -0
- package/dist/declarations/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/platform-limits-query-variables.d.ts +2 -0
- package/dist/declarations/src/features/platform-limits/shared/hooks/use-platform-limits-fetcher/use-platform-limits-fetcher.d.ts +7 -0
- package/dist/declarations/src/features/platform-limits/shared/index.d.ts +4 -0
- package/dist/declarations/src/features/platform-limits/shared/utils/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/shared/utils/utils.d.ts +14 -0
- package/dist/declarations/src/features/platform-limits/shipping-methods/hooks/use-shipping-methods-platform-limits/use-shipping-methods-platform-limits.d.ts +1 -1
- 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
- package/dist/declarations/src/features/platform-limits/stores/hooks/index.d.ts +3 -0
- package/dist/declarations/src/features/platform-limits/stores/hooks/use-store-platform-limits/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/stores/hooks/use-store-platform-limits/use-store-platform-limits.d.ts +15 -0
- package/dist/declarations/src/features/platform-limits/stores/hooks/use-store-platform-limits-fetcher/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/stores/hooks/use-store-platform-limits-fetcher/use-store-platform-limits-fetcher.d.ts +13 -0
- package/dist/declarations/src/features/platform-limits/stores/hooks/use-store-platform-limits-status/index.d.ts +1 -0
- package/dist/declarations/src/features/platform-limits/stores/hooks/use-store-platform-limits-status/use-store-platform-limits-status.d.ts +5 -0
- package/dist/declarations/src/features/platform-limits/stores/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 +1 -1
- 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
- package/dist/declarations/src/features/platform-limits/zones/hooks/use-zones-platform-limits/use-zones-platform-limits.d.ts +1 -1
- package/dist/declarations/src/features/platform-limits/zones/hooks/use-zones-platform-limits-fetcher/use-zones-platform-limits-fetcher.d.ts +1 -1
- package/dist/declarations/src/fields/numeric-format-input/numeric-format-input.d.ts +0 -1
- package/dist/declarations/src/fields/search-input/search-input.d.ts +0 -1
- package/dist/declarations/src/fields/throttled-field/throttled-field.d.ts +0 -1
- package/dist/declarations/src/hooks/index.d.ts +0 -2
- package/dist/declarations/src/hooks/use-persisted-reminder/use-persisted-reminder.d.ts +1 -1
- package/dist/declarations/src/hooks/use-previous/use-previous.d.ts +1 -1
- package/dist/declarations/src/hooks/use-product-selections-fetcher/use-product-selections-fetcher.d.ts +1 -6
- package/dist/declarations/src/hooks/use-stores-list-fetcher/use-stores-list-fetcher.d.ts +1 -8
- package/dist/declarations/src/index.d.ts +10 -8
- package/dist/declarations/src/utils/type-definitions/type-definitions.d.ts +1 -1
- package/dist/styles.css +118 -118
- package/package.json +25 -28
- package/dist/declarations/src/hooks/use-did-form-validation-fail/index.d.ts +0 -1
- 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
|
|
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
|
|
11
|
+
onError?: null | undefined;
|
|
12
12
|
placeholder: any;
|
|
13
13
|
roles: any;
|
|
14
|
-
hasWarning
|
|
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
|
|
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>> & {
|
package/dist/declarations/src/components/recurrent-interval-picker/recurrent-interval-picker.d.ts
ADDED
|
@@ -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
|
-
|
|
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 {};
|
|
@@ -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:
|
|
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
|
|
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
|
|
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
|
|
33
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any
|
|
34
|
-
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any
|
|
35
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any
|
|
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";
|
|
@@ -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
|
+
};
|
|
@@ -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?:
|
|
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
|
};
|
|
@@ -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<
|
|
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<
|
|
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<
|
|
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<
|
|
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,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 "./error.jsx";
|
package/dist/declarations/src/features/platform-limits/shared/components/notifications/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./notifications.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./warning.jsx";
|
|
@@ -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
|
+
}
|
package/dist/declarations/src/features/platform-limits/shared/components/status-text/index.d.ts
ADDED
|
@@ -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,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<
|
|
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<
|
|
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 @@
|
|
|
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<
|
|
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<
|
|
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<
|
|
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;
|