@commercetools-frontend/experimental-components 7.0.0 → 7.1.1
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 +362 -138
- package/dist/commercetools-frontend-experimental-components.cjs.prod.js +351 -138
- package/dist/commercetools-frontend-experimental-components.esm.js +362 -140
- package/dist/declarations/src/components/carousel/carousel.d.ts +28 -0
- package/dist/declarations/src/components/carousel/index.d.ts +2 -0
- package/dist/declarations/src/components/recurrent-interval-picker/use-recurrence-intervals/mocks/handlers.d.ts +7 -0
- package/dist/declarations/src/components/recurrent-interval-picker/use-recurrence-intervals/mocks/index.d.ts +2 -0
- package/dist/declarations/src/index.d.ts +2 -1
- package/dist/declarations/src/test-utils.d.ts +1 -0
- package/dist/styles.css +14 -14
- package/package.json +15 -14
- package/test-utils/dist/commercetools-frontend-experimental-components-test-utils.cjs.dev.js +46 -27
- package/test-utils/dist/commercetools-frontend-experimental-components-test-utils.cjs.prod.js +46 -27
- package/test-utils/dist/commercetools-frontend-experimental-components-test-utils.esm.js +37 -19
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type MessageDescriptor } from 'react-intl';
|
|
3
|
+
import { Stamp } from '@commercetools-frontend/ui-kit';
|
|
4
|
+
export type CarouselItem = {
|
|
5
|
+
/** An identifier used to create keys */
|
|
6
|
+
id: string;
|
|
7
|
+
/** The source URL for the main image content. Should be 384px x 200px. */
|
|
8
|
+
imgSrc: string;
|
|
9
|
+
/** An alt message for image accessibility */
|
|
10
|
+
imgAlt: MessageDescriptor;
|
|
11
|
+
/** The label of the header stamp */
|
|
12
|
+
stampLabel: MessageDescriptor;
|
|
13
|
+
/** UI-Kit-compatible color for the header stamp */
|
|
14
|
+
stampTone: React.ComponentProps<typeof Stamp>['tone'];
|
|
15
|
+
/** Text of the carousel slide. Shouldn't exceed ~70 characters. */
|
|
16
|
+
textContent: MessageDescriptor;
|
|
17
|
+
/** Where the content should redirect to on user click */
|
|
18
|
+
linkTo: (projectKey?: string) => string;
|
|
19
|
+
/** Governs whether the redirection happens outside of the Merchant Center. */
|
|
20
|
+
isExternal: boolean;
|
|
21
|
+
/** Feature flag to control visibility of the item */
|
|
22
|
+
flag?: string;
|
|
23
|
+
};
|
|
24
|
+
type CarouselProps = {
|
|
25
|
+
items: CarouselItem[];
|
|
26
|
+
};
|
|
27
|
+
declare const Carousel: ({ items }: CarouselProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
28
|
+
export default Carousel;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TRecurrencePolicyQueryResult } from '../../../../../../types/src/generated/ctp';
|
|
2
|
+
declare const handlers: {
|
|
3
|
+
FetchRecurrencePolicies: {
|
|
4
|
+
all: (policies?: TRecurrencePolicyQueryResult['results']) => import("msw").GraphQLHandler<import("msw").GraphQLRequest<import("msw").GraphQLVariables>>;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export default handlers;
|
|
@@ -5,6 +5,7 @@ import CategoryReferenceSearch from "./components/attribute-definitions/referenc
|
|
|
5
5
|
import useCachedCategoryOptions from "./components/attribute-definitions/reference-search/category-reference-search/use-cached-category-options.js";
|
|
6
6
|
import Button from "./components/buttons/button/button.jsx";
|
|
7
7
|
import FileInput from "./components/buttons/file-input/file-input.jsx";
|
|
8
|
+
import Carousel, { type CarouselItem } from "./components/carousel/index.js";
|
|
8
9
|
import CenteredLoadingSpinner from "./components/centered-loading-spinner/index.js";
|
|
9
10
|
import ChannelPickerInput from "./components/channel-picker-input/index.js";
|
|
10
11
|
import CountriesPicker from "./components/country-picker/index.js";
|
|
@@ -115,4 +116,4 @@ import getIndexesOfInvalidValues from "./utils/validation/get-indexes-of-invalid
|
|
|
115
116
|
import withoutEmptyErrorsByField from "./utils/validation/without-empty-errors-by-field.js";
|
|
116
117
|
import withPendingRequests from "./utils/with-pending-requests/with-pending-requests.jsx";
|
|
117
118
|
export { QUERY_LIMIT, QUERY_MAX_LIMIT, LOWER_STORES_LIMIT, UPPER_STORES_LIMIT, } from "./constants/index.js";
|
|
118
|
-
export { allowedProperties, and, attributesMapToNameValuePairs, attributeToCustomField, base64ToString, BooleanField, booleanMessages, buildSearchQuery, Button, businessRoles, businessRoleConstants, businessRoleMessages, capitalizeFirst, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, CenteredLoadingSpinner, ChannelPickerInput, CustomerGroupPickerInput, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, CountriesPicker, createGraphQlUpdateActions, createNextSortDefinition, 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, getIndexesOfInvalidValues, getMinimumPricesByCurrencyCode, getNetUnitPrice, getPathName, getPrefixSearchBounds, 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, StoreSelectField, StoreSelectInput, stringToBase64, swapArrayItems, ThrottledField, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, useCachedCategoryOptions, useCurrentOption, useCustomersPlatformLimits, useCustomerGroupsPlatformLimits, useDebouncedPromiseCallback, useFormatLocalizedFieldToString, useFormatLocalizedString, useIsFieldDuplicated, useLocalizedKeyFallback, useLoadOptions, usePendingRequests, usePersistedTableConfiguration, usePimIndexer, usePrevious, useProductSelectionsFetcher, useProductSelectionsTotalFetcher, 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, };
|
|
119
|
+
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, getIndexesOfInvalidValues, getMinimumPricesByCurrencyCode, getNetUnitPrice, getPathName, getPrefixSearchBounds, 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, StoreSelectField, StoreSelectInput, stringToBase64, swapArrayItems, ThrottledField, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, useCachedCategoryOptions, useCurrentOption, useCustomersPlatformLimits, useCustomerGroupsPlatformLimits, useDebouncedPromiseCallback, useFormatLocalizedFieldToString, useFormatLocalizedString, useIsFieldDuplicated, useLocalizedKeyFallback, useLoadOptions, usePendingRequests, usePersistedTableConfiguration, usePimIndexer, usePrevious, useProductSelectionsFetcher, useProductSelectionsTotalFetcher, 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, };
|
|
@@ -8,3 +8,4 @@ export { handlers as useStoreByFieldFetcherHandlers } from "./components/store-s
|
|
|
8
8
|
export { handlers as useStoresByWherePredicateFetcherHandlers } from "./components/store-select-input/components/stores-search-select-input/mocks/index.js";
|
|
9
9
|
export { handlers as platformLimitsMockHandlers } from "./features/platform-limits/shared/hooks/use-platform-limits-fetcher/mocks/index.js";
|
|
10
10
|
export { createFetchStoreDistributionChannelsQueryMock } from "./hooks/use-role-based-channels-fetcher/test-utils.js";
|
|
11
|
+
export { handlers as recurrenceIntervalsMockHandlers } from "./components/recurrent-interval-picker/use-recurrence-intervals/mocks/index.js";
|
package/dist/styles.css
CHANGED
|
@@ -510,6 +510,15 @@
|
|
|
510
510
|
.custom-money-input-module__container___1fdO2 {
|
|
511
511
|
width: 100%;
|
|
512
512
|
}
|
|
513
|
+
/* imported from centered-loading-spinner.module.css */
|
|
514
|
+
|
|
515
|
+
.centered-loading-spinner-module__loading-container___3_9-h {
|
|
516
|
+
height: 100%;
|
|
517
|
+
display: flex;
|
|
518
|
+
flex-grow: 1;
|
|
519
|
+
align-items: center;
|
|
520
|
+
justify-content: center;
|
|
521
|
+
}
|
|
513
522
|
/* imported from reference-search.module.css */
|
|
514
523
|
|
|
515
524
|
.reference-search-module__container___3-iK3 {
|
|
@@ -525,15 +534,6 @@
|
|
|
525
534
|
font-size: 0.9rem;
|
|
526
535
|
margin-left: var(--spacing-xs);
|
|
527
536
|
}
|
|
528
|
-
/* imported from centered-loading-spinner.module.css */
|
|
529
|
-
|
|
530
|
-
.centered-loading-spinner-module__loading-container___3_9-h {
|
|
531
|
-
height: 100%;
|
|
532
|
-
display: flex;
|
|
533
|
-
flex-grow: 1;
|
|
534
|
-
align-items: center;
|
|
535
|
-
justify-content: center;
|
|
536
|
-
}
|
|
537
537
|
/* imported from divider.module.css */
|
|
538
538
|
|
|
539
539
|
.divider-module__divider___4-vdy {
|
|
@@ -595,6 +595,11 @@
|
|
|
595
595
|
.platform-limits-customers-status-module__status___3rXYM {
|
|
596
596
|
min-width: max-content;
|
|
597
597
|
}
|
|
598
|
+
/* imported from platform-limits-customer-groups-status.module.css */
|
|
599
|
+
|
|
600
|
+
.platform-limits-customer-groups-status-module__status___6099G {
|
|
601
|
+
min-width: max-content;
|
|
602
|
+
}
|
|
598
603
|
/* imported from platform-limits-customers-combined.module.css */
|
|
599
604
|
|
|
600
605
|
.platform-limits-customers-combined-module__combined___OszDd {
|
|
@@ -605,8 +610,3 @@
|
|
|
605
610
|
.platform-limits-customer-groups-combined-module__combined___WjRoI {
|
|
606
611
|
margin-bottom: var(--spacing-s);
|
|
607
612
|
}
|
|
608
|
-
/* imported from platform-limits-customer-groups-status.module.css */
|
|
609
|
-
|
|
610
|
-
.platform-limits-customer-groups-status-module__status___6099G {
|
|
611
|
-
min-width: max-content;
|
|
612
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/experimental-components",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.1",
|
|
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": "
|
|
29
|
-
"@commercetools-frontend/application-components": "
|
|
30
|
-
"@commercetools-frontend/application-shell": "
|
|
31
|
-
"@commercetools-frontend/application-shell-connectors": "
|
|
32
|
-
"@commercetools-frontend/constants": "
|
|
33
|
-
"@commercetools-frontend/l10n": "
|
|
34
|
-
"@commercetools-frontend/sdk": "
|
|
35
|
-
"@commercetools-frontend/sentry": "
|
|
36
|
-
"@commercetools-frontend/ui-kit": "
|
|
37
|
-
"@commercetools-uikit/design-system": "
|
|
38
|
-
"@commercetools-uikit/select-utils": "
|
|
39
|
-
"@commercetools-uikit/utils": "
|
|
28
|
+
"@commercetools-frontend/actions-global": "24.0.0",
|
|
29
|
+
"@commercetools-frontend/application-components": "24.0.0",
|
|
30
|
+
"@commercetools-frontend/application-shell": "24.0.0",
|
|
31
|
+
"@commercetools-frontend/application-shell-connectors": "24.0.0",
|
|
32
|
+
"@commercetools-frontend/constants": "24.0.0",
|
|
33
|
+
"@commercetools-frontend/l10n": "24.0.0",
|
|
34
|
+
"@commercetools-frontend/sdk": "24.0.0",
|
|
35
|
+
"@commercetools-frontend/sentry": "24.0.0",
|
|
36
|
+
"@commercetools-frontend/ui-kit": "20.0.0",
|
|
37
|
+
"@commercetools-uikit/design-system": "20.0.0",
|
|
38
|
+
"@commercetools-uikit/select-utils": "20.0.0",
|
|
39
|
+
"@commercetools-uikit/utils": "20.0.0",
|
|
40
40
|
"@emotion/react": "11.14.0",
|
|
41
41
|
"@hello-pangea/dnd": "^18.0.1",
|
|
42
42
|
"classnames": "2.5.1",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"omit-deep": "0.3.0",
|
|
53
53
|
"omit-empty-es": "1.2.0",
|
|
54
54
|
"prop-types": "15.8.1",
|
|
55
|
+
"react-snap-carousel": "^0.5.1",
|
|
55
56
|
"react-textarea-autosize": "8.5.4",
|
|
56
57
|
"reselect": "4.1.8",
|
|
57
58
|
"tiny-invariant": "1.3.3",
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
63
|
"@apollo/client": "3.12.4",
|
|
63
|
-
"@commercetools/composable-commerce-test-data": "11.1.
|
|
64
|
+
"@commercetools/composable-commerce-test-data": "11.1.1",
|
|
64
65
|
"@testing-library/react": "16.1.0",
|
|
65
66
|
"@types/debounce-promise": "3.1.9",
|
|
66
67
|
"@types/jest": "^29.5.2",
|
package/test-utils/dist/commercetools-frontend-experimental-components-test-utils.cjs.dev.js
CHANGED
|
@@ -28,7 +28,7 @@ var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defin
|
|
|
28
28
|
var _lastIndexOfInstanceProperty__default = /*#__PURE__*/_interopDefault(_lastIndexOfInstanceProperty);
|
|
29
29
|
var _includesInstanceProperty__default = /*#__PURE__*/_interopDefault(_includesInstanceProperty);
|
|
30
30
|
|
|
31
|
-
const handlers$
|
|
31
|
+
const handlers$i = {
|
|
32
32
|
TotalNumberOfStores: {
|
|
33
33
|
all: total => msw.graphql.query('TotalNumberOfStores', (req, res, ctx) => {
|
|
34
34
|
return res(ctx.data({
|
|
@@ -39,16 +39,16 @@ const handlers$g = {
|
|
|
39
39
|
})
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
var handlers$
|
|
42
|
+
var handlers$j = handlers$i;
|
|
43
43
|
|
|
44
|
-
const handlers$
|
|
44
|
+
const handlers$g = {
|
|
45
45
|
TypeDefinitions: {
|
|
46
46
|
all: typeDefinitions => msw.graphql.query('FetchTypeDefinitionsQuery', (req, res, ctx) => res(ctx.data({
|
|
47
47
|
typeDefinitions
|
|
48
48
|
})))
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
var handlers$
|
|
51
|
+
var handlers$h = handlers$g;
|
|
52
52
|
|
|
53
53
|
const graphqlQueries = {
|
|
54
54
|
ASSOCIATE_ROLE: 'associateRoles',
|
|
@@ -74,7 +74,7 @@ const graphqlQueries = {
|
|
|
74
74
|
TAX_CATEGORY: 'taxCategories',
|
|
75
75
|
ZONE: 'zones'
|
|
76
76
|
};
|
|
77
|
-
const handlers$
|
|
77
|
+
const handlers$e = {
|
|
78
78
|
DuplicatedField: {
|
|
79
79
|
total: (total, resourceType) => msw.graphql.query('FetchResourceTypeDuplicatedField', (req, res, ctx) => {
|
|
80
80
|
if (!graphqlQueries[resourceType]) return res(ctx.data({}));
|
|
@@ -86,18 +86,18 @@ const handlers$c = {
|
|
|
86
86
|
})
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
|
-
var handlers$
|
|
89
|
+
var handlers$f = handlers$e;
|
|
90
90
|
|
|
91
|
-
const handlers$
|
|
91
|
+
const handlers$c = {
|
|
92
92
|
ProductSelections: {
|
|
93
93
|
all: productSelections => msw.graphql.query('FetchProductSelections', (req, res, ctx) => res(ctx.data({
|
|
94
94
|
productSelections
|
|
95
95
|
})))
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
|
-
var handlers$
|
|
98
|
+
var handlers$d = handlers$c;
|
|
99
99
|
|
|
100
|
-
const handlers$
|
|
100
|
+
const handlers$a = {
|
|
101
101
|
ProductSelections: {
|
|
102
102
|
total: total => msw.graphql.query('FetchProductSelectionsTotal', (req, res, ctx) => res(ctx.data({
|
|
103
103
|
productSelections: {
|
|
@@ -107,13 +107,13 @@ const handlers$8 = {
|
|
|
107
107
|
})))
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
|
-
var handlers$
|
|
110
|
+
var handlers$b = handlers$a;
|
|
111
111
|
|
|
112
112
|
const extractKeysFromWherePredicateClause = function () {
|
|
113
113
|
let whereClause = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
114
114
|
return whereClause.substring(_lastIndexOfInstanceProperty__default["default"](whereClause).call(whereClause, '("') + 1, _lastIndexOfInstanceProperty__default["default"](whereClause).call(whereClause, '")')).replace(/["]/g, '').split(', ');
|
|
115
115
|
};
|
|
116
|
-
const handlers$
|
|
116
|
+
const handlers$8 = {
|
|
117
117
|
StoresList: {
|
|
118
118
|
all: stores => msw.graphql.query('FetchStoresQuery', (req, res, ctx) => {
|
|
119
119
|
// GIVEN req.variables.where is specified
|
|
@@ -161,9 +161,9 @@ const handlers$6 = {
|
|
|
161
161
|
})
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
|
-
var handlers$
|
|
164
|
+
var handlers$9 = handlers$8;
|
|
165
165
|
|
|
166
|
-
const handlers$
|
|
166
|
+
const handlers$6 = {
|
|
167
167
|
FetchStoresByField: {
|
|
168
168
|
all: stores => msw.graphql.query('FetchStoresByField', (req, res, ctx) => {
|
|
169
169
|
return res(ctx.data({
|
|
@@ -172,9 +172,9 @@ const handlers$4 = {
|
|
|
172
172
|
})
|
|
173
173
|
}
|
|
174
174
|
};
|
|
175
|
-
var handlers$
|
|
175
|
+
var handlers$7 = handlers$6;
|
|
176
176
|
|
|
177
|
-
const handlers$
|
|
177
|
+
const handlers$4 = {
|
|
178
178
|
FetchStoresByWherePredicate: {
|
|
179
179
|
all: stores => msw.graphql.query('FetchStoresByWherePredicate', (req, res, ctx) => {
|
|
180
180
|
return res(ctx.data({
|
|
@@ -186,16 +186,16 @@ const handlers$2 = {
|
|
|
186
186
|
})
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
|
-
var handlers$
|
|
189
|
+
var handlers$5 = handlers$4;
|
|
190
190
|
|
|
191
|
-
const handlers = {
|
|
191
|
+
const handlers$2 = {
|
|
192
192
|
PlatformLimits: {
|
|
193
193
|
all: platformLimiits => msw.graphql.query('PlatformLimitsFetcherQuery', (req, res, ctx) => res(ctx.data({
|
|
194
194
|
limits: platformLimiits
|
|
195
195
|
})))
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
|
-
var handlers$
|
|
198
|
+
var handlers$3 = handlers$2;
|
|
199
199
|
|
|
200
200
|
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
201
201
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
@@ -217,13 +217,32 @@ const createFetchStoreDistributionChannelsQueryMock = custom => _objectSpread({
|
|
|
217
217
|
}
|
|
218
218
|
}, custom);
|
|
219
219
|
|
|
220
|
+
const handlers = {
|
|
221
|
+
FetchRecurrencePolicies: {
|
|
222
|
+
all: function () {
|
|
223
|
+
let policies = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
224
|
+
return msw.graphql.query('FetchRecurrencePolicies', (_, res, ctx) => {
|
|
225
|
+
return res(ctx.data({
|
|
226
|
+
recurrencePolicies: {
|
|
227
|
+
__typename: 'RecurrencePolicyQueryResult',
|
|
228
|
+
results: policies,
|
|
229
|
+
total: policies.length
|
|
230
|
+
}
|
|
231
|
+
}));
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
var handlers$1 = handlers;
|
|
237
|
+
|
|
220
238
|
exports.createFetchStoreDistributionChannelsQueryMock = createFetchStoreDistributionChannelsQueryMock;
|
|
221
|
-
exports.customFieldDefinitionsMockHanders = handlers$
|
|
222
|
-
exports.isFieldDuplicatedMockHandlers = handlers$
|
|
223
|
-
exports.platformLimitsMockHandlers = handlers$
|
|
224
|
-
exports.productSelectionsFetcherMockHandler = handlers$
|
|
225
|
-
exports.productSelectionsTotalFetcherMockHandler = handlers$
|
|
226
|
-
exports.
|
|
227
|
-
exports.
|
|
228
|
-
exports.
|
|
229
|
-
exports.
|
|
239
|
+
exports.customFieldDefinitionsMockHanders = handlers$h;
|
|
240
|
+
exports.isFieldDuplicatedMockHandlers = handlers$f;
|
|
241
|
+
exports.platformLimitsMockHandlers = handlers$3;
|
|
242
|
+
exports.productSelectionsFetcherMockHandler = handlers$d;
|
|
243
|
+
exports.productSelectionsTotalFetcherMockHandler = handlers$b;
|
|
244
|
+
exports.recurrenceIntervalsMockHandlers = handlers$1;
|
|
245
|
+
exports.storesListConnectorMockHandlers = handlers$9;
|
|
246
|
+
exports.useStoreByFieldFetcherHandlers = handlers$7;
|
|
247
|
+
exports.useStoresByWherePredicateFetcherHandlers = handlers$5;
|
|
248
|
+
exports.useTotalNumberOfStoresFetcherHandlers = handlers$j;
|
package/test-utils/dist/commercetools-frontend-experimental-components-test-utils.cjs.prod.js
CHANGED
|
@@ -28,7 +28,7 @@ var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defin
|
|
|
28
28
|
var _lastIndexOfInstanceProperty__default = /*#__PURE__*/_interopDefault(_lastIndexOfInstanceProperty);
|
|
29
29
|
var _includesInstanceProperty__default = /*#__PURE__*/_interopDefault(_includesInstanceProperty);
|
|
30
30
|
|
|
31
|
-
const handlers$
|
|
31
|
+
const handlers$i = {
|
|
32
32
|
TotalNumberOfStores: {
|
|
33
33
|
all: total => msw.graphql.query('TotalNumberOfStores', (req, res, ctx) => {
|
|
34
34
|
return res(ctx.data({
|
|
@@ -39,16 +39,16 @@ const handlers$g = {
|
|
|
39
39
|
})
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
var handlers$
|
|
42
|
+
var handlers$j = handlers$i;
|
|
43
43
|
|
|
44
|
-
const handlers$
|
|
44
|
+
const handlers$g = {
|
|
45
45
|
TypeDefinitions: {
|
|
46
46
|
all: typeDefinitions => msw.graphql.query('FetchTypeDefinitionsQuery', (req, res, ctx) => res(ctx.data({
|
|
47
47
|
typeDefinitions
|
|
48
48
|
})))
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
var handlers$
|
|
51
|
+
var handlers$h = handlers$g;
|
|
52
52
|
|
|
53
53
|
const graphqlQueries = {
|
|
54
54
|
ASSOCIATE_ROLE: 'associateRoles',
|
|
@@ -74,7 +74,7 @@ const graphqlQueries = {
|
|
|
74
74
|
TAX_CATEGORY: 'taxCategories',
|
|
75
75
|
ZONE: 'zones'
|
|
76
76
|
};
|
|
77
|
-
const handlers$
|
|
77
|
+
const handlers$e = {
|
|
78
78
|
DuplicatedField: {
|
|
79
79
|
total: (total, resourceType) => msw.graphql.query('FetchResourceTypeDuplicatedField', (req, res, ctx) => {
|
|
80
80
|
if (!graphqlQueries[resourceType]) return res(ctx.data({}));
|
|
@@ -86,18 +86,18 @@ const handlers$c = {
|
|
|
86
86
|
})
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
|
-
var handlers$
|
|
89
|
+
var handlers$f = handlers$e;
|
|
90
90
|
|
|
91
|
-
const handlers$
|
|
91
|
+
const handlers$c = {
|
|
92
92
|
ProductSelections: {
|
|
93
93
|
all: productSelections => msw.graphql.query('FetchProductSelections', (req, res, ctx) => res(ctx.data({
|
|
94
94
|
productSelections
|
|
95
95
|
})))
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
|
-
var handlers$
|
|
98
|
+
var handlers$d = handlers$c;
|
|
99
99
|
|
|
100
|
-
const handlers$
|
|
100
|
+
const handlers$a = {
|
|
101
101
|
ProductSelections: {
|
|
102
102
|
total: total => msw.graphql.query('FetchProductSelectionsTotal', (req, res, ctx) => res(ctx.data({
|
|
103
103
|
productSelections: {
|
|
@@ -107,13 +107,13 @@ const handlers$8 = {
|
|
|
107
107
|
})))
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
|
-
var handlers$
|
|
110
|
+
var handlers$b = handlers$a;
|
|
111
111
|
|
|
112
112
|
const extractKeysFromWherePredicateClause = function () {
|
|
113
113
|
let whereClause = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
114
114
|
return whereClause.substring(_lastIndexOfInstanceProperty__default["default"](whereClause).call(whereClause, '("') + 1, _lastIndexOfInstanceProperty__default["default"](whereClause).call(whereClause, '")')).replace(/["]/g, '').split(', ');
|
|
115
115
|
};
|
|
116
|
-
const handlers$
|
|
116
|
+
const handlers$8 = {
|
|
117
117
|
StoresList: {
|
|
118
118
|
all: stores => msw.graphql.query('FetchStoresQuery', (req, res, ctx) => {
|
|
119
119
|
// GIVEN req.variables.where is specified
|
|
@@ -161,9 +161,9 @@ const handlers$6 = {
|
|
|
161
161
|
})
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
|
-
var handlers$
|
|
164
|
+
var handlers$9 = handlers$8;
|
|
165
165
|
|
|
166
|
-
const handlers$
|
|
166
|
+
const handlers$6 = {
|
|
167
167
|
FetchStoresByField: {
|
|
168
168
|
all: stores => msw.graphql.query('FetchStoresByField', (req, res, ctx) => {
|
|
169
169
|
return res(ctx.data({
|
|
@@ -172,9 +172,9 @@ const handlers$4 = {
|
|
|
172
172
|
})
|
|
173
173
|
}
|
|
174
174
|
};
|
|
175
|
-
var handlers$
|
|
175
|
+
var handlers$7 = handlers$6;
|
|
176
176
|
|
|
177
|
-
const handlers$
|
|
177
|
+
const handlers$4 = {
|
|
178
178
|
FetchStoresByWherePredicate: {
|
|
179
179
|
all: stores => msw.graphql.query('FetchStoresByWherePredicate', (req, res, ctx) => {
|
|
180
180
|
return res(ctx.data({
|
|
@@ -186,16 +186,16 @@ const handlers$2 = {
|
|
|
186
186
|
})
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
|
-
var handlers$
|
|
189
|
+
var handlers$5 = handlers$4;
|
|
190
190
|
|
|
191
|
-
const handlers = {
|
|
191
|
+
const handlers$2 = {
|
|
192
192
|
PlatformLimits: {
|
|
193
193
|
all: platformLimiits => msw.graphql.query('PlatformLimitsFetcherQuery', (req, res, ctx) => res(ctx.data({
|
|
194
194
|
limits: platformLimiits
|
|
195
195
|
})))
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
|
-
var handlers$
|
|
198
|
+
var handlers$3 = handlers$2;
|
|
199
199
|
|
|
200
200
|
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
201
201
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
@@ -217,13 +217,32 @@ const createFetchStoreDistributionChannelsQueryMock = custom => _objectSpread({
|
|
|
217
217
|
}
|
|
218
218
|
}, custom);
|
|
219
219
|
|
|
220
|
+
const handlers = {
|
|
221
|
+
FetchRecurrencePolicies: {
|
|
222
|
+
all: function () {
|
|
223
|
+
let policies = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
224
|
+
return msw.graphql.query('FetchRecurrencePolicies', (_, res, ctx) => {
|
|
225
|
+
return res(ctx.data({
|
|
226
|
+
recurrencePolicies: {
|
|
227
|
+
__typename: 'RecurrencePolicyQueryResult',
|
|
228
|
+
results: policies,
|
|
229
|
+
total: policies.length
|
|
230
|
+
}
|
|
231
|
+
}));
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
var handlers$1 = handlers;
|
|
237
|
+
|
|
220
238
|
exports.createFetchStoreDistributionChannelsQueryMock = createFetchStoreDistributionChannelsQueryMock;
|
|
221
|
-
exports.customFieldDefinitionsMockHanders = handlers$
|
|
222
|
-
exports.isFieldDuplicatedMockHandlers = handlers$
|
|
223
|
-
exports.platformLimitsMockHandlers = handlers$
|
|
224
|
-
exports.productSelectionsFetcherMockHandler = handlers$
|
|
225
|
-
exports.productSelectionsTotalFetcherMockHandler = handlers$
|
|
226
|
-
exports.
|
|
227
|
-
exports.
|
|
228
|
-
exports.
|
|
229
|
-
exports.
|
|
239
|
+
exports.customFieldDefinitionsMockHanders = handlers$h;
|
|
240
|
+
exports.isFieldDuplicatedMockHandlers = handlers$f;
|
|
241
|
+
exports.platformLimitsMockHandlers = handlers$3;
|
|
242
|
+
exports.productSelectionsFetcherMockHandler = handlers$d;
|
|
243
|
+
exports.productSelectionsTotalFetcherMockHandler = handlers$b;
|
|
244
|
+
exports.recurrenceIntervalsMockHandlers = handlers$1;
|
|
245
|
+
exports.storesListConnectorMockHandlers = handlers$9;
|
|
246
|
+
exports.useStoreByFieldFetcherHandlers = handlers$7;
|
|
247
|
+
exports.useStoresByWherePredicateFetcherHandlers = handlers$5;
|
|
248
|
+
exports.useTotalNumberOfStoresFetcherHandlers = handlers$j;
|
|
@@ -11,7 +11,7 @@ import { graphql } from 'msw';
|
|
|
11
11
|
import _lastIndexOfInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/last-index-of';
|
|
12
12
|
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
13
13
|
|
|
14
|
-
const handlers$
|
|
14
|
+
const handlers$i = {
|
|
15
15
|
TotalNumberOfStores: {
|
|
16
16
|
all: total => graphql.query('TotalNumberOfStores', (req, res, ctx) => {
|
|
17
17
|
return res(ctx.data({
|
|
@@ -22,16 +22,16 @@ const handlers$g = {
|
|
|
22
22
|
})
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
var handlers$
|
|
25
|
+
var handlers$j = handlers$i;
|
|
26
26
|
|
|
27
|
-
const handlers$
|
|
27
|
+
const handlers$g = {
|
|
28
28
|
TypeDefinitions: {
|
|
29
29
|
all: typeDefinitions => graphql.query('FetchTypeDefinitionsQuery', (req, res, ctx) => res(ctx.data({
|
|
30
30
|
typeDefinitions
|
|
31
31
|
})))
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
var handlers$
|
|
34
|
+
var handlers$h = handlers$g;
|
|
35
35
|
|
|
36
36
|
const graphqlQueries = {
|
|
37
37
|
ASSOCIATE_ROLE: 'associateRoles',
|
|
@@ -57,7 +57,7 @@ const graphqlQueries = {
|
|
|
57
57
|
TAX_CATEGORY: 'taxCategories',
|
|
58
58
|
ZONE: 'zones'
|
|
59
59
|
};
|
|
60
|
-
const handlers$
|
|
60
|
+
const handlers$e = {
|
|
61
61
|
DuplicatedField: {
|
|
62
62
|
total: (total, resourceType) => graphql.query('FetchResourceTypeDuplicatedField', (req, res, ctx) => {
|
|
63
63
|
if (!graphqlQueries[resourceType]) return res(ctx.data({}));
|
|
@@ -69,18 +69,18 @@ const handlers$c = {
|
|
|
69
69
|
})
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
|
-
var handlers$
|
|
72
|
+
var handlers$f = handlers$e;
|
|
73
73
|
|
|
74
|
-
const handlers$
|
|
74
|
+
const handlers$c = {
|
|
75
75
|
ProductSelections: {
|
|
76
76
|
all: productSelections => graphql.query('FetchProductSelections', (req, res, ctx) => res(ctx.data({
|
|
77
77
|
productSelections
|
|
78
78
|
})))
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
|
-
var handlers$
|
|
81
|
+
var handlers$d = handlers$c;
|
|
82
82
|
|
|
83
|
-
const handlers$
|
|
83
|
+
const handlers$a = {
|
|
84
84
|
ProductSelections: {
|
|
85
85
|
total: total => graphql.query('FetchProductSelectionsTotal', (req, res, ctx) => res(ctx.data({
|
|
86
86
|
productSelections: {
|
|
@@ -90,13 +90,13 @@ const handlers$8 = {
|
|
|
90
90
|
})))
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
|
-
var handlers$
|
|
93
|
+
var handlers$b = handlers$a;
|
|
94
94
|
|
|
95
95
|
const extractKeysFromWherePredicateClause = function () {
|
|
96
96
|
let whereClause = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
97
97
|
return whereClause.substring(_lastIndexOfInstanceProperty(whereClause).call(whereClause, '("') + 1, _lastIndexOfInstanceProperty(whereClause).call(whereClause, '")')).replace(/["]/g, '').split(', ');
|
|
98
98
|
};
|
|
99
|
-
const handlers$
|
|
99
|
+
const handlers$8 = {
|
|
100
100
|
StoresList: {
|
|
101
101
|
all: stores => graphql.query('FetchStoresQuery', (req, res, ctx) => {
|
|
102
102
|
// GIVEN req.variables.where is specified
|
|
@@ -144,9 +144,9 @@ const handlers$6 = {
|
|
|
144
144
|
})
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
|
-
var handlers$
|
|
147
|
+
var handlers$9 = handlers$8;
|
|
148
148
|
|
|
149
|
-
const handlers$
|
|
149
|
+
const handlers$6 = {
|
|
150
150
|
FetchStoresByField: {
|
|
151
151
|
all: stores => graphql.query('FetchStoresByField', (req, res, ctx) => {
|
|
152
152
|
return res(ctx.data({
|
|
@@ -155,9 +155,9 @@ const handlers$4 = {
|
|
|
155
155
|
})
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
|
-
var handlers$
|
|
158
|
+
var handlers$7 = handlers$6;
|
|
159
159
|
|
|
160
|
-
const handlers$
|
|
160
|
+
const handlers$4 = {
|
|
161
161
|
FetchStoresByWherePredicate: {
|
|
162
162
|
all: stores => graphql.query('FetchStoresByWherePredicate', (req, res, ctx) => {
|
|
163
163
|
return res(ctx.data({
|
|
@@ -169,16 +169,16 @@ const handlers$2 = {
|
|
|
169
169
|
})
|
|
170
170
|
}
|
|
171
171
|
};
|
|
172
|
-
var handlers$
|
|
172
|
+
var handlers$5 = handlers$4;
|
|
173
173
|
|
|
174
|
-
const handlers = {
|
|
174
|
+
const handlers$2 = {
|
|
175
175
|
PlatformLimits: {
|
|
176
176
|
all: platformLimiits => graphql.query('PlatformLimitsFetcherQuery', (req, res, ctx) => res(ctx.data({
|
|
177
177
|
limits: platformLimiits
|
|
178
178
|
})))
|
|
179
179
|
}
|
|
180
180
|
};
|
|
181
|
-
var handlers$
|
|
181
|
+
var handlers$3 = handlers$2;
|
|
182
182
|
|
|
183
183
|
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
184
184
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -200,4 +200,22 @@ const createFetchStoreDistributionChannelsQueryMock = custom => _objectSpread({
|
|
|
200
200
|
}
|
|
201
201
|
}, custom);
|
|
202
202
|
|
|
203
|
-
|
|
203
|
+
const handlers = {
|
|
204
|
+
FetchRecurrencePolicies: {
|
|
205
|
+
all: function () {
|
|
206
|
+
let policies = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
207
|
+
return graphql.query('FetchRecurrencePolicies', (_, res, ctx) => {
|
|
208
|
+
return res(ctx.data({
|
|
209
|
+
recurrencePolicies: {
|
|
210
|
+
__typename: 'RecurrencePolicyQueryResult',
|
|
211
|
+
results: policies,
|
|
212
|
+
total: policies.length
|
|
213
|
+
}
|
|
214
|
+
}));
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
var handlers$1 = handlers;
|
|
220
|
+
|
|
221
|
+
export { createFetchStoreDistributionChannelsQueryMock, handlers$h as customFieldDefinitionsMockHanders, handlers$f as isFieldDuplicatedMockHandlers, handlers$3 as platformLimitsMockHandlers, handlers$d as productSelectionsFetcherMockHandler, handlers$b as productSelectionsTotalFetcherMockHandler, handlers$1 as recurrenceIntervalsMockHandlers, handlers$9 as storesListConnectorMockHandlers, handlers$7 as useStoreByFieldFetcherHandlers, handlers$5 as useStoresByWherePredicateFetcherHandlers, handlers$j as useTotalNumberOfStoresFetcherHandlers };
|