@commercetools-frontend/experimental-components 8.0.2 → 8.0.3
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 +214 -209
- package/dist/commercetools-frontend-experimental-components.cjs.prod.js +214 -209
- package/dist/commercetools-frontend-experimental-components.esm.js +214 -210
- package/dist/declarations/src/index.d.ts +2 -2
- package/dist/declarations/src/utils/constants.d.ts +38 -39
- package/package.json +18 -19
|
@@ -59,7 +59,7 @@ import { getPathName, getCategoryLevel, getAncestors } from "./utils/categories/
|
|
|
59
59
|
import clone from "./utils/clone/clone.js";
|
|
60
60
|
import { coerceToInteger } from "./utils/coerce-to-integer/coerce-to-integer.js";
|
|
61
61
|
import { convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData } from "./utils/connector/connector.js";
|
|
62
|
-
import { PRECISION_TYPES, DefaultPageSizes } from "./utils/constants.js";
|
|
62
|
+
import { PRECISION_TYPES, DefaultPageSizes, FILTER_TYPES } from "./utils/constants.js";
|
|
63
63
|
import { sortDataByIdsArray } from "./utils/conversions/sort-array.js";
|
|
64
64
|
import createNextSortDefinition from "./utils/create-next-sort-definition/create-next-sort-definition.js";
|
|
65
65
|
import createReducer from "./utils/create-reducer/create-reducer.js";
|
|
@@ -117,4 +117,4 @@ import getIndexesOfInvalidValues from "./utils/validation/get-indexes-of-invalid
|
|
|
117
117
|
import withoutEmptyErrorsByField from "./utils/validation/without-empty-errors-by-field.js";
|
|
118
118
|
import withPendingRequests from "./utils/with-pending-requests/with-pending-requests.jsx";
|
|
119
119
|
export { QUERY_LIMIT, QUERY_MAX_LIMIT, LOWER_STORES_LIMIT, UPPER_STORES_LIMIT, } from "./constants/index.js";
|
|
120
|
-
export { allowedProperties, and, attributesMapToNameValuePairs, attributeToCustomField, base64ToString, BooleanField, booleanMessages, buildSearchQuery, Button, businessRoles, businessRoleConstants, businessRoleMessages, capitalizeFirst, Carousel, type CarouselItem, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, CenteredLoadingSpinner, ChannelPickerInput, CustomerGroupPickerInput, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, CountriesPicker, createGraphQlUpdateActions, createNextSortDefinition, createPlatformLimitsQueryVariables, createReducer, createResourceReducer, CustomFieldDefinitionsConnector, CustomFieldTypeDefinitionsConnector, CustomFields, useDnDContext as useCustomFieldsDnDContext, CustomFieldsErrorTextNotification, CustomFieldsFormField, CustomFieldInput, customFieldsTransformer, CustomFieldTooltip, dateTransformer, DefaultPageSizes, Divider, EMAIL_REGEX, exact, exists, extractErrorFromGraphQlResponse, FileInput, filterCustomTypeUpdateActionValues, filterDataAttributes, filterEmptyValues, formatCustomerAddress, formatCustomerName, formatCustomField, formatDateTime, formatDateRangeValue, formatDiscount, formatMoneyRangeValue, formatMoney, formatMoneyValue, formatPercentage, formatProductAttribute, FormattedDateTime, FormattedLocalizedString, getAncestors, getAttributeValueByType, getAttributeValueType, getBottomOption, getBulkNotification, getCategoryLevel, getCountsFromBulkSummary, getDiscountValue, getDisplayName, getFractionedAmount, getFractionDigit, getIndexesOfInvalidValues, getMinimumPricesByCurrencyCode, getNetUnitPrice, getPathName, getPrefixSearchBounds, getProductAttributes, getProductLevelAttributes, getPriceChannelName, getReferenceTypeId, getSelectedPrice, getStampToneByPublishState, getTimeZoneId, getTimeZoneLabel, getTypeNameOfType, graphqlCategoryLevelTransformer, graphqlDateTransformer, graphqlMissingLocaleTransformer, graphqlMissingTransformer, graphqlNumberTransformer, graphqlQueryBuilder, graphqlReferenceTransformer, graphqlTextTransformer, hasInvalidInputError, hasSemanticError, injectCustomerGroupsPlatformLimits, useBusinessUnitsPlatformLimits, injectCustomersPlatformLimits, injectDataTablePaginationState, injectModalState, injectNotifications, injectPimIndexer, injectShippingMethodsPlatformLimits, injectStorage, injectTaxCategoriesPlatformLimits, injectToggleState, injectZonesPlatformLimits, isEmpty, isEmptyValue, isUUID, isValidISODate, isValidISODateTime, isValidISOTime, keepDisplayName, LabelRange, mapShippingRateTierToGraphQL, mapTimeZonesToOptions, mapStoresToOptions, MC_RESOURCES_WITH_KEYS, minusify, MissingValueField, missingValueMessages, MultiValueSearchInput, nameValuePairsToMap, normalizeProductSettings, not, NumericFormatInput, omitDeep, omitSetsOfSets, or, Option, pickerMessages, PimIndexerProvider, PlatformLimitsFetcherQuery, PRECISION_TYPES, ProductAttributeInput, ProductAttributes, ProductPickerInput, ProductSelectionPicker, range, RecurrentIntervalPicker, reorderArrayItems, RequestCache, RequiredIndicator, resolveStatusType, RESOURCES_WITH_PLATFORM_LIMITS, safelyAddFallback, sanitize, ScrollToFieldError, searchCategories, SearchInput, searchInputMessages, SelectableFieldSearchInput, setToArray, setDisplayName, shallowEqual, shouldUpdateAttributeInput, slugify, sortDataByIdsArray, sortRequiresLanguage, splitVariantAttributesByConstraint, splitProductAndVariantAttributes, StoreSelectField, StoreSelectInput, stringToBase64, swapArrayItems, ThrottledField, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, useCachedCategoryOptions, useCurrentOption, useCustomersPlatformLimits, useCustomerGroupsPlatformLimits, useDebouncedPromiseCallback, useFormatCustomField, useFormatLocalizedFieldToString, useFormatLocalizedString, usePersistedReminder, useIsFieldDuplicated, useLocalizedKeyFallback, useLoadOptions, usePendingRequests, usePersistedTableConfiguration, usePimIndexer, usePrevious, useProductSelectionsFetcher, useProductSelectionsTotalFetcher, useRecurrenceIntervals, useRoleNotificationEffect, useIdentityBannerNotification, useShowBulkNotification, useStorage, type UseStorageOptions, useStoreKeysInDataFences, useStoresListFetcher, useStoresSearchFetcher, useStoreSearchIndexStatusFetcher, useStoresPlatformLimits, useTaxCategoriesPlatformLimits, useTotalNumberOfStoresFetcher, useShippingMethodsPlatformLimits, validatedInput, validateCustomField, validateCustomFields, CUSTOM_FIELD_TYPES, validateDate, validateMultiOptionEnum, validateSingleOptionEnum, validateText, validateNumber, validationMessages, VALIDATOR_INTEGER, VALIDATOR_NUMERIC, VALIDATOR_REQUIRED, valueMapping, withProps, withoutEmptyErrorsByField, withPendingRequests, WithPimIndexer, withRedirectTo, wrapDisplayName, };
|
|
120
|
+
export { allowedProperties, and, attributesMapToNameValuePairs, attributeToCustomField, base64ToString, BooleanField, booleanMessages, buildSearchQuery, Button, businessRoles, businessRoleConstants, businessRoleMessages, capitalizeFirst, Carousel, type CarouselItem, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, CenteredLoadingSpinner, ChannelPickerInput, CustomerGroupPickerInput, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, CountriesPicker, createGraphQlUpdateActions, createNextSortDefinition, createPlatformLimitsQueryVariables, createReducer, createResourceReducer, CustomFieldDefinitionsConnector, CustomFieldTypeDefinitionsConnector, CustomFields, useDnDContext as useCustomFieldsDnDContext, CustomFieldsErrorTextNotification, CustomFieldsFormField, CustomFieldInput, customFieldsTransformer, CustomFieldTooltip, dateTransformer, DefaultPageSizes, Divider, EMAIL_REGEX, exact, exists, extractErrorFromGraphQlResponse, FileInput, filterCustomTypeUpdateActionValues, filterDataAttributes, filterEmptyValues, FILTER_TYPES, formatCustomerAddress, formatCustomerName, formatCustomField, formatDateTime, formatDateRangeValue, formatDiscount, formatMoneyRangeValue, formatMoney, formatMoneyValue, formatPercentage, formatProductAttribute, FormattedDateTime, FormattedLocalizedString, getAncestors, getAttributeValueByType, getAttributeValueType, getBottomOption, getBulkNotification, getCategoryLevel, getCountsFromBulkSummary, getDiscountValue, getDisplayName, getFractionedAmount, getFractionDigit, getIndexesOfInvalidValues, getMinimumPricesByCurrencyCode, getNetUnitPrice, getPathName, getPrefixSearchBounds, getProductAttributes, getProductLevelAttributes, getPriceChannelName, getReferenceTypeId, getSelectedPrice, getStampToneByPublishState, getTimeZoneId, getTimeZoneLabel, getTypeNameOfType, graphqlCategoryLevelTransformer, graphqlDateTransformer, graphqlMissingLocaleTransformer, graphqlMissingTransformer, graphqlNumberTransformer, graphqlQueryBuilder, graphqlReferenceTransformer, graphqlTextTransformer, hasInvalidInputError, hasSemanticError, injectCustomerGroupsPlatformLimits, useBusinessUnitsPlatformLimits, injectCustomersPlatformLimits, injectDataTablePaginationState, injectModalState, injectNotifications, injectPimIndexer, injectShippingMethodsPlatformLimits, injectStorage, injectTaxCategoriesPlatformLimits, injectToggleState, injectZonesPlatformLimits, isEmpty, isEmptyValue, isUUID, isValidISODate, isValidISODateTime, isValidISOTime, keepDisplayName, LabelRange, mapShippingRateTierToGraphQL, mapTimeZonesToOptions, mapStoresToOptions, MC_RESOURCES_WITH_KEYS, minusify, MissingValueField, missingValueMessages, MultiValueSearchInput, nameValuePairsToMap, normalizeProductSettings, not, NumericFormatInput, omitDeep, omitSetsOfSets, or, Option, pickerMessages, PimIndexerProvider, PlatformLimitsFetcherQuery, PRECISION_TYPES, ProductAttributeInput, ProductAttributes, ProductPickerInput, ProductSelectionPicker, range, RecurrentIntervalPicker, reorderArrayItems, RequestCache, RequiredIndicator, resolveStatusType, RESOURCES_WITH_PLATFORM_LIMITS, safelyAddFallback, sanitize, ScrollToFieldError, searchCategories, SearchInput, searchInputMessages, SelectableFieldSearchInput, setToArray, setDisplayName, shallowEqual, shouldUpdateAttributeInput, slugify, sortDataByIdsArray, sortRequiresLanguage, splitVariantAttributesByConstraint, splitProductAndVariantAttributes, StoreSelectField, StoreSelectInput, stringToBase64, swapArrayItems, ThrottledField, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, useCachedCategoryOptions, useCurrentOption, useCustomersPlatformLimits, useCustomerGroupsPlatformLimits, useDebouncedPromiseCallback, useFormatCustomField, useFormatLocalizedFieldToString, useFormatLocalizedString, usePersistedReminder, useIsFieldDuplicated, useLocalizedKeyFallback, useLoadOptions, usePendingRequests, usePersistedTableConfiguration, usePimIndexer, usePrevious, useProductSelectionsFetcher, useProductSelectionsTotalFetcher, useRecurrenceIntervals, useRoleNotificationEffect, useIdentityBannerNotification, useShowBulkNotification, useStorage, type UseStorageOptions, useStoreKeysInDataFences, useStoresListFetcher, useStoresSearchFetcher, useStoreSearchIndexStatusFetcher, useStoresPlatformLimits, useTaxCategoriesPlatformLimits, useTotalNumberOfStoresFetcher, useShippingMethodsPlatformLimits, validatedInput, validateCustomField, validateCustomFields, CUSTOM_FIELD_TYPES, validateDate, validateMultiOptionEnum, validateSingleOptionEnum, validateText, validateNumber, validationMessages, VALIDATOR_INTEGER, VALIDATOR_NUMERIC, VALIDATOR_REQUIRED, valueMapping, withProps, withoutEmptyErrorsByField, withPendingRequests, WithPimIndexer, withRedirectTo, wrapDisplayName, };
|
|
@@ -1,39 +1,38 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
export const
|
|
39
|
-
export const DefaultPageSize: number;
|
|
1
|
+
export declare const PRODUCT_STATUSES: {
|
|
2
|
+
PUBLISHED: string;
|
|
3
|
+
UNPUBLISHED: string;
|
|
4
|
+
MODIFIED: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const FILTER_TYPES: {
|
|
7
|
+
readonly lessThan: "lessThan";
|
|
8
|
+
readonly moreThan: "moreThan";
|
|
9
|
+
readonly equalTo: "equalTo";
|
|
10
|
+
readonly range: "range";
|
|
11
|
+
readonly missing: "missing";
|
|
12
|
+
readonly missingIn: "missingIn";
|
|
13
|
+
readonly in: "in";
|
|
14
|
+
};
|
|
15
|
+
export declare const FIELD_TYPES: {
|
|
16
|
+
Money: string;
|
|
17
|
+
LocalizedString: string;
|
|
18
|
+
Time: string;
|
|
19
|
+
DateTime: string;
|
|
20
|
+
Boolean: string;
|
|
21
|
+
String: string;
|
|
22
|
+
Enum: string;
|
|
23
|
+
LocalizedEnum: string;
|
|
24
|
+
Number: string;
|
|
25
|
+
Date: string;
|
|
26
|
+
Reference: string;
|
|
27
|
+
Set: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const PRECISION_TYPES: {
|
|
30
|
+
highPrecision: string;
|
|
31
|
+
centPrecision: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const ERROR_CODES: {
|
|
34
|
+
semanticError: string;
|
|
35
|
+
invalidInput: string;
|
|
36
|
+
};
|
|
37
|
+
export declare const DefaultPageSizes: number[];
|
|
38
|
+
export declare const DefaultPageSize: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/experimental-components",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/core": "^7.22.11",
|
|
27
27
|
"@babel/runtime-corejs3": "^7.21.0",
|
|
28
|
-
"@commercetools-frontend/actions-global": "24.
|
|
29
|
-
"@commercetools-frontend/application-components": "24.
|
|
30
|
-
"@commercetools-frontend/application-shell": "24.
|
|
31
|
-
"@commercetools-frontend/application-shell-connectors": "24.
|
|
32
|
-
"@commercetools-frontend/constants": "24.
|
|
33
|
-
"@commercetools-frontend/l10n": "24.
|
|
34
|
-
"@commercetools-frontend/sdk": "24.
|
|
35
|
-
"@commercetools-frontend/sentry": "24.
|
|
36
|
-
"@commercetools-frontend/ui-kit": "20.
|
|
37
|
-
"@commercetools-uikit/design-system": "20.
|
|
38
|
-
"@commercetools-uikit/select-utils": "20.
|
|
39
|
-
"@commercetools-uikit/utils": "20.
|
|
28
|
+
"@commercetools-frontend/actions-global": "24.9.0",
|
|
29
|
+
"@commercetools-frontend/application-components": "24.9.0",
|
|
30
|
+
"@commercetools-frontend/application-shell": "24.9.0",
|
|
31
|
+
"@commercetools-frontend/application-shell-connectors": "24.9.0",
|
|
32
|
+
"@commercetools-frontend/constants": "24.9.0",
|
|
33
|
+
"@commercetools-frontend/l10n": "24.9.0",
|
|
34
|
+
"@commercetools-frontend/sdk": "24.9.0",
|
|
35
|
+
"@commercetools-frontend/sentry": "24.9.0",
|
|
36
|
+
"@commercetools-frontend/ui-kit": "20.3.0",
|
|
37
|
+
"@commercetools-uikit/design-system": "20.3.0",
|
|
38
|
+
"@commercetools-uikit/select-utils": "20.3.0",
|
|
39
|
+
"@commercetools-uikit/utils": "20.3.0",
|
|
40
40
|
"@emotion/react": "11.14.0",
|
|
41
41
|
"@hello-pangea/dnd": "^18.0.1",
|
|
42
42
|
"classnames": "2.5.1",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@apollo/client": "3.12.4",
|
|
64
|
-
"@commercetools/composable-commerce-test-data": "13.
|
|
65
|
-
"@testing-library/react": "16.
|
|
64
|
+
"@commercetools/composable-commerce-test-data": "13.11.0",
|
|
65
|
+
"@testing-library/react": "16.3.0",
|
|
66
66
|
"@types/debounce-promise": "3.1.9",
|
|
67
67
|
"@types/jest": "^29.5.2",
|
|
68
|
-
"@types/react": "19.2.
|
|
68
|
+
"@types/react": "19.2.2",
|
|
69
69
|
"@types/testing-library__jest-dom": "^5.14.6",
|
|
70
70
|
"formik": "2.4.6",
|
|
71
71
|
"graphql": "16.11.0",
|
|
@@ -73,15 +73,14 @@
|
|
|
73
73
|
"msw": "1.3.5",
|
|
74
74
|
"react": "19.2.0",
|
|
75
75
|
"react-dom": "19.2.0",
|
|
76
|
-
"react-intl": "7.1.
|
|
76
|
+
"react-intl": "7.1.14",
|
|
77
77
|
"react-redux": "7.2.9",
|
|
78
78
|
"react-required-if": "1.0.3",
|
|
79
79
|
"react-router-dom": "5.3.4",
|
|
80
80
|
"react-test-renderer": "17.0.2",
|
|
81
81
|
"redux": "4.2.1",
|
|
82
82
|
"typescript": "5.2.2",
|
|
83
|
-
"@commercetools-local/test-
|
|
84
|
-
"@commercetools-local/test-utils": "1.2.23"
|
|
83
|
+
"@commercetools-local/test-utils": "1.2.24"
|
|
85
84
|
},
|
|
86
85
|
"peerDependencies": {
|
|
87
86
|
"@apollo/client": "3.x",
|