@envive-ai/react-toolkit 0.3.15-beta.1 → 0.3.15
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/components/Accordion/Accordion.cjs +1 -1
- package/dist/components/Accordion/Accordion.d.cts +2 -2
- package/dist/components/Accordion/Accordion.d.ts +2 -2
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/AnimatedChevron/AnimatedChevron.d.cts +2 -2
- package/dist/components/AnimatedChevron/AnimatedChevron.d.ts +2 -2
- package/dist/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.d.cts +1 -1
- package/dist/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.d.ts +3 -3
- package/dist/components/ButtonBase/ButtonBase.d.cts +2 -2
- package/dist/components/ButtonBase/ButtonBase.d.ts +2 -2
- package/dist/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.d.cts +2 -2
- package/dist/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.d.ts +2 -2
- package/dist/components/FilterScrollbar/AppliedFiltersScrollbar.d.cts +3 -3
- package/dist/components/FilterScrollbar/AppliedFiltersScrollbar.d.ts +3 -3
- package/dist/components/FilterScrollbar/DynamicFiltersScrollbar.d.cts +2 -2
- package/dist/components/FilterScrollbar/DynamicFiltersScrollbar.d.ts +2 -2
- package/dist/components/ImageWithFallback/ImageWithFallback.d.cts +2 -2
- package/dist/components/ImageWithFallback/ImageWithFallback.d.ts +2 -2
- package/dist/components/ModalSheet/ModalSheet.d.cts +2 -2
- package/dist/components/ModalSheet/ModalSheet.d.ts +2 -2
- package/dist/components/ModalSheet/desktop/index.cjs +1 -1
- package/dist/components/ModalSheet/desktop/index.js +1 -1
- package/dist/components/ModalSheet/mobile/index.cjs +1 -1
- package/dist/components/ModalSheet/mobile/index.js +1 -1
- package/dist/components/ProductCard/ProductCard.cjs +1 -1
- package/dist/components/ProductCard/ProductCard.d.cts +4 -4
- package/dist/components/ProductCard/ProductCard.d.ts +4 -4
- package/dist/components/ProductCard/ProductCard.js +1 -1
- package/dist/components/ProductGrid/ProductGrid.cjs +1 -1
- package/dist/components/ProductGrid/ProductGrid.d.cts +3 -3
- package/dist/components/ProductGrid/ProductGrid.d.ts +3 -4
- package/dist/components/ProductGrid/ProductGrid.js +1 -1
- package/dist/components/RadioButton/RadioButton.d.cts +3 -4
- package/dist/components/RadioButton/RadioButton.d.ts +3 -4
- package/dist/components/RadioButtonGroup/RadioButtonGroup.d.cts +3 -4
- package/dist/components/RadioButtonGroup/RadioButtonGroup.d.ts +3 -4
- package/dist/components/RecommendedProducts/RecommendedProducts.d.cts +2 -2
- package/dist/components/RecommendedProducts/RecommendedProducts.d.ts +2 -3
- package/dist/components/SearchAutocomplete/SearchAutocomplete.cjs +1 -1
- package/dist/components/SearchAutocomplete/SearchAutocomplete.d.cts +2 -2
- package/dist/components/SearchAutocomplete/SearchAutocomplete.d.ts +2 -2
- package/dist/components/SearchAutocomplete/SearchAutocomplete.js +1 -1
- package/dist/components/SearchFilter/SearchFilter.d.cts +2 -2
- package/dist/components/SearchFilter/SearchFilter.d.ts +2 -2
- package/dist/components/SearchFilter/SearchFilterFooter.d.cts +3 -4
- package/dist/components/SearchFilter/SearchFilterFooter.d.ts +3 -4
- package/dist/components/SearchFilter/SearchFilterHeader.d.cts +2 -2
- package/dist/components/SearchFilter/SearchFilterHeader.d.ts +2 -2
- package/dist/components/SearchFilter/SearchFilterItem.d.cts +2 -2
- package/dist/components/SearchFilter/SearchFilterItem.d.ts +2 -2
- package/dist/components/SearchFilter/types.d.cts +1 -2
- package/dist/components/SearchFilter/types.d.ts +1 -2
- package/dist/components/SearchFilter/utils.d.cts +3 -4
- package/dist/components/SearchFilter/utils.d.ts +3 -4
- package/dist/components/SearchInput/SearchInput.d.cts +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/SearchInputForm/SearchInputForm.d.cts +2 -2
- package/dist/components/SearchInputForm/SearchInputForm.d.ts +2 -2
- package/dist/components/SearchResultsContent/SearchResultsContent.d.cts +4 -4
- package/dist/components/SearchResultsContent/SearchResultsContent.d.ts +4 -4
- package/dist/components/SearchResultsFilterButton/SearchResultsFilterButton.d.cts +2 -2
- package/dist/components/SearchResultsFilterButton/SearchResultsFilterButton.d.ts +2 -2
- package/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.d.cts +3 -4
- package/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.d.ts +3 -4
- package/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.d.cts +3 -4
- package/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.d.ts +3 -4
- package/dist/components/SearchResultsStates/NoSearchResultsFound.d.cts +3 -3
- package/dist/components/SearchResultsStates/NoSearchResultsFound.d.ts +3 -4
- package/dist/components/SearchResultsStates/SearchResultsGrid.d.cts +3 -3
- package/dist/components/SearchResultsStates/SearchResultsGrid.d.ts +3 -3
- package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.cjs +1 -1
- package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.d.cts +2 -2
- package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts +2 -2
- package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.js +1 -1
- package/dist/components/SearchResultsToolbar/SearchResultsToolbar.d.cts +3 -3
- package/dist/components/SearchResultsToolbar/SearchResultsToolbar.d.ts +3 -3
- package/dist/components/SparkleAnimation/SparkleAnimation.cjs +1 -1
- package/dist/components/SparkleAnimation/SparkleAnimation.d.cts +2 -2
- package/dist/components/SparkleAnimation/SparkleAnimation.d.ts +2 -2
- package/dist/components/SparkleAnimation/SparkleAnimation.js +1 -1
- package/dist/components/Spinner/Spinner.d.cts +2 -2
- package/dist/components/Spinner/Spinner.d.ts +2 -2
- package/dist/components/SuggestionButton/SuggestionButton.d.cts +2 -2
- package/dist/components/SuggestionButton/SuggestionButton.d.ts +2 -2
- package/dist/components/ToggleButton/ToggleButton.d.cts +2 -2
- package/dist/components/ToggleButton/ToggleButton.d.ts +2 -2
- package/dist/util/colorVar.d.cts +1 -1
- package/dist/util/colorVar.d.ts +1 -2
- package/package.json +1 -1
- package/dist/hooks/dist/application/models/api/response.d.cts +0 -11
- package/dist/hooks/dist/application/models/api/response.d.ts +0 -11
- package/dist/hooks/dist/application/models/api/widgetText.d.cts +0 -8
- package/dist/hooks/dist/application/models/api/widgetText.d.ts +0 -8
- package/dist/hooks/dist/application/models/chatElementDisplayLocation.d.cts +0 -27
- package/dist/hooks/dist/application/models/chatElementDisplayLocation.d.ts +0 -27
- package/dist/hooks/dist/application/models/colorsConfig.d.cts +0 -24
- package/dist/hooks/dist/application/models/colorsConfig.d.ts +0 -24
- package/dist/hooks/dist/application/models/featureGates.d.cts +0 -33
- package/dist/hooks/dist/application/models/featureGates.d.ts +0 -33
- package/dist/hooks/dist/application/models/frontendConfig.d.cts +0 -17
- package/dist/hooks/dist/application/models/frontendConfig.d.ts +0 -17
- package/dist/hooks/dist/application/models/guards/isVariantInfo.d.ts +0 -2
- package/dist/hooks/dist/application/models/index.d.ts +0 -18
- package/dist/hooks/dist/application/models/utilityTypes/camelCase.d.cts +0 -71
- package/dist/hooks/dist/application/models/utilityTypes/camelCase.d.ts +0 -71
- package/dist/hooks/dist/application/models/utilityTypes/camelCasedPropertiesDeep.d.cts +0 -58
- package/dist/hooks/dist/application/models/utilityTypes/camelCasedPropertiesDeep.d.ts +0 -58
- package/dist/hooks/dist/application/models/utilityTypes/internal.d.cts +0 -22
- package/dist/hooks/dist/application/models/utilityTypes/internal.d.ts +0 -22
- package/dist/hooks/dist/application/models/utilityTypes/splitWords.d.cts +0 -31
- package/dist/hooks/dist/application/models/utilityTypes/splitWords.d.ts +0 -31
- package/dist/hooks/dist/application/models/utilityTypes/trim.d.cts +0 -30
- package/dist/hooks/dist/application/models/utilityTypes/trim.d.ts +0 -30
- package/dist/hooks/dist/application/models/utilityTypes/unknownArray.d.cts +0 -30
- package/dist/hooks/dist/application/models/utilityTypes/unknownArray.d.ts +0 -30
- package/dist/hooks/dist/application/models/validators/validateGraphQLFrontendConfig.d.ts +0 -2
- package/dist/hooks/dist/application/models/variantInfo/pageVisitInfo.d.cts +0 -11
- package/dist/hooks/dist/application/models/variantInfo/pageVisitInfo.d.ts +0 -11
- package/dist/hooks/dist/application/models/variantInfo/plpInfo.d.cts +0 -8
- package/dist/hooks/dist/application/models/variantInfo/plpInfo.d.ts +0 -8
- package/dist/hooks/dist/application/models/variantInfo/productInfo.d.cts +0 -10
- package/dist/hooks/dist/application/models/variantInfo/productInfo.d.ts +0 -10
- package/dist/hooks/dist/application/models/variantInfo/variantInfo.d.cts +0 -36
- package/dist/hooks/dist/application/models/variantInfo/variantInfo.d.ts +0 -36
- package/dist/hooks/dist/application/utils/overrides.d.cts +0 -22
- package/dist/hooks/dist/application/utils/overrides.d.ts +0 -22
- package/dist/hooks/dist/atoms/search/searchAPI.d.cts +0 -11
- package/dist/hooks/dist/atoms/search/searchAPI.d.ts +0 -11
- package/dist/hooks/dist/contexts/hardcopyContext/hardcopyContext.d.cts +0 -12
- package/dist/hooks/dist/contexts/hardcopyContext/hardcopyContext.d.ts +0 -13
- package/dist/hooks/dist/contexts/types.d.cts +0 -676
- package/dist/hooks/dist/contexts/types.d.ts +0 -677
- package/dist/hooks/dist/contexts/typesV3.d.cts +0 -21
- package/dist/hooks/dist/contexts/typesV3.d.ts +0 -23
- package/dist/hooks/dist/hooks/utils.d.cts +0 -9
- package/dist/hooks/dist/hooks/utils.d.ts +0 -11
- package/dist/hooks/dist/merchants/domInsertion.d.cts +0 -15
- package/dist/hooks/dist/merchants/domInsertion.d.ts +0 -15
- package/dist/hooks/dist/merchants/gridInsertion.d.cts +0 -22
- package/dist/hooks/dist/merchants/gridInsertion.d.ts +0 -22
- package/dist/hooks/dist/types/OrgInfo.d.ts +0 -2
- package/dist/hooks/dist/types/customerService.d.cts +0 -27
- package/dist/hooks/dist/types/customerService.d.ts +0 -27
- package/dist/hooks/dist/types/custservice-types.d.cts +0 -10
- package/dist/hooks/dist/types/custservice-types.d.ts +0 -10
- package/dist/hooks/dist/types/enviveConfig.d.cts +0 -33
- package/dist/hooks/dist/types/enviveConfig.d.ts +0 -33
- package/dist/hooks/dist/types/index.d.cts +0 -6
- package/dist/hooks/dist/types/index.d.ts +0 -7
- package/dist/hooks/dist/types/search-filter-types.d.cts +0 -36
- package/dist/hooks/dist/types/search-filter-types.d.ts +0 -36
- package/dist/hooks/dist/types/suggestionBarV2-types.d.cts +0 -9
- package/dist/hooks/dist/types/suggestionBarV2-types.d.ts +0 -9
- package/dist/hooks/dist/types/test-types.d.cts +0 -8
- package/dist/hooks/dist/types/test-types.d.ts +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/ToggleButton/ToggleButton.d.ts
|
|
4
4
|
type ToggleButtonProps = {
|
|
@@ -25,6 +25,6 @@ declare const ToggleButton: ({
|
|
|
25
25
|
icon,
|
|
26
26
|
iconClassName,
|
|
27
27
|
variant
|
|
28
|
-
}: ToggleButtonProps) =>
|
|
28
|
+
}: ToggleButtonProps) => react_jsx_runtime1.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { ToggleButton, ToggleButtonProps, ToggleButtonVariant };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime31 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/ToggleButton/ToggleButton.d.ts
|
|
4
4
|
type ToggleButtonProps = {
|
|
@@ -25,6 +25,6 @@ declare const ToggleButton: ({
|
|
|
25
25
|
icon,
|
|
26
26
|
iconClassName,
|
|
27
27
|
variant
|
|
28
|
-
}: ToggleButtonProps) =>
|
|
28
|
+
}: ToggleButtonProps) => react_jsx_runtime31.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { ToggleButton, ToggleButtonProps, ToggleButtonVariant };
|
package/dist/util/colorVar.d.cts
CHANGED
package/dist/util/colorVar.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ColorNames } from "
|
|
2
|
-
import "../hooks/dist/contexts/types.js";
|
|
1
|
+
import { ColorNames } from "@envive-ai/react-hooks/contexts/types";
|
|
3
2
|
|
|
4
3
|
//#region src/util/colorVar.d.ts
|
|
5
4
|
declare const colorVar: (color: ColorNames) => string;
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CamelCasedPropertiesDeep } from "../utilityTypes/camelCasedPropertiesDeep.cjs";
|
|
2
|
-
import { ResponseCategory, SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
3
|
-
|
|
4
|
-
//#region ../hooks/dist/application/models/api/response.d.ts
|
|
5
|
-
|
|
6
|
-
interface SearchResponseProductAttributes {
|
|
7
|
-
category: ResponseCategory.Product;
|
|
8
|
-
attributes: CamelCasedPropertiesDeep<SearchResponseProduct>;
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
export { SearchResponseProductAttributes };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CamelCasedPropertiesDeep } from "../utilityTypes/camelCasedPropertiesDeep.js";
|
|
2
|
-
import { ResponseCategory, SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
3
|
-
|
|
4
|
-
//#region ../hooks/dist/application/models/api/response.d.ts
|
|
5
|
-
|
|
6
|
-
interface SearchResponseProductAttributes {
|
|
7
|
-
category: ResponseCategory.Product;
|
|
8
|
-
attributes: CamelCasedPropertiesDeep<SearchResponseProduct>;
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
export { SearchResponseProductAttributes };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
//#region ../hooks/dist/application/models/chatElementDisplayLocation.d.ts
|
|
2
|
-
//#region src/application/models/chatElementDisplayLocation.d.ts
|
|
3
|
-
declare enum ChatElementDisplayLocation {
|
|
4
|
-
IN_CHAT = "in_chat",
|
|
5
|
-
CHAT_PREVIEW = "chat_preview",
|
|
6
|
-
FLOATING_BUTTON = "floating_button",
|
|
7
|
-
HELP_ME_CHOOSE = "help_me_choose",
|
|
8
|
-
PLP_IMAGE_BANNER = "plp_image_banner",
|
|
9
|
-
TOP_REVIEWS_SNIPPET = "top_reviews_snippet",
|
|
10
|
-
BOTTOM_REVIEWS_SNIPPET = "bottom_reviews_snippet",
|
|
11
|
-
BLOCK_BACK_BUTTON = "block_back_button",
|
|
12
|
-
SWITCH_TO_AGENT = "switch_to_agent",
|
|
13
|
-
CONVERSATIONAL_SEARCH = "conversational_search",
|
|
14
|
-
GLOBAL_SEARCH_ENTRYPOINT = "global_search_entrypoint",
|
|
15
|
-
SEARCH_NAV_ENTRYPOINT = "search_nav_entrypoint",
|
|
16
|
-
SEARCH_PROMPT = "search_prompt",
|
|
17
|
-
SEARCH_ZERO_STATE_SUGGESTED_PRODUCTS = "search_zero_state_suggested_products",
|
|
18
|
-
SEARCH_PROMPT_BUTTON = "search_prompt_button",
|
|
19
|
-
PRODUCT_GRID = "product_grid",
|
|
20
|
-
UNSPECIFIED = "unspecified",
|
|
21
|
-
FILTER_MODAL = "filter_modal",
|
|
22
|
-
PROMPT_CARD = "prompt_card",
|
|
23
|
-
WINDOW_API_CALL = "window_api_call",
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
//#endregion
|
|
27
|
-
export { ChatElementDisplayLocation };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
//#region ../hooks/dist/application/models/chatElementDisplayLocation.d.ts
|
|
2
|
-
//#region src/application/models/chatElementDisplayLocation.d.ts
|
|
3
|
-
declare enum ChatElementDisplayLocation {
|
|
4
|
-
IN_CHAT = "in_chat",
|
|
5
|
-
CHAT_PREVIEW = "chat_preview",
|
|
6
|
-
FLOATING_BUTTON = "floating_button",
|
|
7
|
-
HELP_ME_CHOOSE = "help_me_choose",
|
|
8
|
-
PLP_IMAGE_BANNER = "plp_image_banner",
|
|
9
|
-
TOP_REVIEWS_SNIPPET = "top_reviews_snippet",
|
|
10
|
-
BOTTOM_REVIEWS_SNIPPET = "bottom_reviews_snippet",
|
|
11
|
-
BLOCK_BACK_BUTTON = "block_back_button",
|
|
12
|
-
SWITCH_TO_AGENT = "switch_to_agent",
|
|
13
|
-
CONVERSATIONAL_SEARCH = "conversational_search",
|
|
14
|
-
GLOBAL_SEARCH_ENTRYPOINT = "global_search_entrypoint",
|
|
15
|
-
SEARCH_NAV_ENTRYPOINT = "search_nav_entrypoint",
|
|
16
|
-
SEARCH_PROMPT = "search_prompt",
|
|
17
|
-
SEARCH_ZERO_STATE_SUGGESTED_PRODUCTS = "search_zero_state_suggested_products",
|
|
18
|
-
SEARCH_PROMPT_BUTTON = "search_prompt_button",
|
|
19
|
-
PRODUCT_GRID = "product_grid",
|
|
20
|
-
UNSPECIFIED = "unspecified",
|
|
21
|
-
FILTER_MODAL = "filter_modal",
|
|
22
|
-
PROMPT_CARD = "prompt_card",
|
|
23
|
-
WINDOW_API_CALL = "window_api_call",
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
//#endregion
|
|
27
|
-
export { ChatElementDisplayLocation };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
//#region ../hooks/dist/application/models/colorsConfig.d.ts
|
|
2
|
-
//#region src/application/models/colorsConfig.d.ts
|
|
3
|
-
declare enum ColorNames {
|
|
4
|
-
TextPrimary = "text-primary",
|
|
5
|
-
TextSecondary = "text-secondary",
|
|
6
|
-
TextAccent = "text-accent",
|
|
7
|
-
TextLink = "text-link",
|
|
8
|
-
TextLight = "text-light",
|
|
9
|
-
BackgroundPrimary = "background-primary",
|
|
10
|
-
BackgroundSecondary = "background-secondary",
|
|
11
|
-
BackgroundSecondaryDark = "background-secondary-dark",
|
|
12
|
-
BackgroundTertiary = "background-tertiary",
|
|
13
|
-
BackgroundDark = "background-dark",
|
|
14
|
-
BackgroundLight = "background-light",
|
|
15
|
-
BackgroundSaturated = "background-saturated",
|
|
16
|
-
BorderLight = "border-light",
|
|
17
|
-
BorderMedium = "border-medium",
|
|
18
|
-
BorderDark = "border-dark",
|
|
19
|
-
BorderOutline = "border-outline",
|
|
20
|
-
AccentPrimary = "accent-primary",
|
|
21
|
-
AccentSecondary = "accent-secondary",
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
24
|
-
export { ColorNames };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
//#region ../hooks/dist/application/models/colorsConfig.d.ts
|
|
2
|
-
//#region src/application/models/colorsConfig.d.ts
|
|
3
|
-
declare enum ColorNames {
|
|
4
|
-
TextPrimary = "text-primary",
|
|
5
|
-
TextSecondary = "text-secondary",
|
|
6
|
-
TextAccent = "text-accent",
|
|
7
|
-
TextLink = "text-link",
|
|
8
|
-
TextLight = "text-light",
|
|
9
|
-
BackgroundPrimary = "background-primary",
|
|
10
|
-
BackgroundSecondary = "background-secondary",
|
|
11
|
-
BackgroundSecondaryDark = "background-secondary-dark",
|
|
12
|
-
BackgroundTertiary = "background-tertiary",
|
|
13
|
-
BackgroundDark = "background-dark",
|
|
14
|
-
BackgroundLight = "background-light",
|
|
15
|
-
BackgroundSaturated = "background-saturated",
|
|
16
|
-
BorderLight = "border-light",
|
|
17
|
-
BorderMedium = "border-medium",
|
|
18
|
-
BorderDark = "border-dark",
|
|
19
|
-
BorderOutline = "border-outline",
|
|
20
|
-
AccentPrimary = "accent-primary",
|
|
21
|
-
AccentSecondary = "accent-secondary",
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
24
|
-
export { ColorNames };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//#region ../hooks/dist/application/models/featureGates.d.ts
|
|
2
|
-
//#region src/application/models/featureGates.d.ts
|
|
3
|
-
declare enum FeatureGates {
|
|
4
|
-
IsClientSessionEnabled = "is_client_session_enabled",
|
|
5
|
-
IsSalesAgentEnabled = "is_sales_agent_enabled",
|
|
6
|
-
IsNewFeatureEnabled = "is_new_feature_enabled",
|
|
7
|
-
IsFineTunedModel8b = "is_fine_tuned_model_8b",
|
|
8
|
-
IsImageBannerEnabled = "is_image_banner_enabled",
|
|
9
|
-
IsOrderLookupEnabled = "is_order_lookup_enabled",
|
|
10
|
-
IsSummarizeReviewsEnabled = "is_summarize_reviews_enabled",
|
|
11
|
-
IsGlobalSearchEnabled = "is_global_search_enabled",
|
|
12
|
-
IsImagePromptEnabled = "is_image_prompt_enabled",
|
|
13
|
-
IsWatermarkEnabled = "is_watermark_enabled",
|
|
14
|
-
IsInferenceRegion0 = "is_inference_region_0",
|
|
15
|
-
IsChatVariantEnabled = "is_chat_variant_enabled",
|
|
16
|
-
IsChatVariantAEnabled = "is_chat_variant_a_enabled",
|
|
17
|
-
IsChatVariantBEnabled = "is_chat_variant_b_enabled",
|
|
18
|
-
IsUserQueryAlwaysEnabled = "is_user_query_always_enabled",
|
|
19
|
-
IsSearchAutocompleteEnabled = "is_search_autocomplete_enabled",
|
|
20
|
-
IsEmptyDivPLPEnabled = "is_empty_div_plp_enabled",
|
|
21
|
-
IsRecommendedProductsEnabled = "is_recommended_products_enabled",
|
|
22
|
-
IsChatScrollPaused = "is_chat_scroll_paused",
|
|
23
|
-
IsSessionInSearchRerankerTest = "is_session_in_search_reranker_test",
|
|
24
|
-
IsReferrerBasedPromptEnabled = "is_referrer_based_prompt_enabled",
|
|
25
|
-
IsInModelExperiment = "is_in_model_experiment",
|
|
26
|
-
IsModelExperimentTreatment = "is_model_experiment_treatment",
|
|
27
|
-
IsAiSuggestionsVariantEnabled = "is_ai_suggestions_variant_enabled",
|
|
28
|
-
IsAiSuggestionsVariantAEnabled = "is_ai_suggestions_variant_a_enabled",
|
|
29
|
-
IsAiSuggestionsVariantBEnabled = "is_ai_suggestions_variant_b_enabled",
|
|
30
|
-
}
|
|
31
|
-
//#endregion
|
|
32
|
-
//#endregion
|
|
33
|
-
export { FeatureGates };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//#region ../hooks/dist/application/models/featureGates.d.ts
|
|
2
|
-
//#region src/application/models/featureGates.d.ts
|
|
3
|
-
declare enum FeatureGates {
|
|
4
|
-
IsClientSessionEnabled = "is_client_session_enabled",
|
|
5
|
-
IsSalesAgentEnabled = "is_sales_agent_enabled",
|
|
6
|
-
IsNewFeatureEnabled = "is_new_feature_enabled",
|
|
7
|
-
IsFineTunedModel8b = "is_fine_tuned_model_8b",
|
|
8
|
-
IsImageBannerEnabled = "is_image_banner_enabled",
|
|
9
|
-
IsOrderLookupEnabled = "is_order_lookup_enabled",
|
|
10
|
-
IsSummarizeReviewsEnabled = "is_summarize_reviews_enabled",
|
|
11
|
-
IsGlobalSearchEnabled = "is_global_search_enabled",
|
|
12
|
-
IsImagePromptEnabled = "is_image_prompt_enabled",
|
|
13
|
-
IsWatermarkEnabled = "is_watermark_enabled",
|
|
14
|
-
IsInferenceRegion0 = "is_inference_region_0",
|
|
15
|
-
IsChatVariantEnabled = "is_chat_variant_enabled",
|
|
16
|
-
IsChatVariantAEnabled = "is_chat_variant_a_enabled",
|
|
17
|
-
IsChatVariantBEnabled = "is_chat_variant_b_enabled",
|
|
18
|
-
IsUserQueryAlwaysEnabled = "is_user_query_always_enabled",
|
|
19
|
-
IsSearchAutocompleteEnabled = "is_search_autocomplete_enabled",
|
|
20
|
-
IsEmptyDivPLPEnabled = "is_empty_div_plp_enabled",
|
|
21
|
-
IsRecommendedProductsEnabled = "is_recommended_products_enabled",
|
|
22
|
-
IsChatScrollPaused = "is_chat_scroll_paused",
|
|
23
|
-
IsSessionInSearchRerankerTest = "is_session_in_search_reranker_test",
|
|
24
|
-
IsReferrerBasedPromptEnabled = "is_referrer_based_prompt_enabled",
|
|
25
|
-
IsInModelExperiment = "is_in_model_experiment",
|
|
26
|
-
IsModelExperimentTreatment = "is_model_experiment_treatment",
|
|
27
|
-
IsAiSuggestionsVariantEnabled = "is_ai_suggestions_variant_enabled",
|
|
28
|
-
IsAiSuggestionsVariantAEnabled = "is_ai_suggestions_variant_a_enabled",
|
|
29
|
-
IsAiSuggestionsVariantBEnabled = "is_ai_suggestions_variant_b_enabled",
|
|
30
|
-
}
|
|
31
|
-
//#endregion
|
|
32
|
-
//#endregion
|
|
33
|
-
export { FeatureGates };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { OrgUIConfig, PageVariantConfig, WidgetConfig, WidgetMountingConfig } from "../../contexts/types.cjs";
|
|
2
|
-
import { Override } from "../utils/overrides.cjs";
|
|
3
|
-
|
|
4
|
-
//#region ../hooks/dist/application/models/frontendConfig.d.ts
|
|
5
|
-
//#region src/application/models/frontendConfig.d.ts
|
|
6
|
-
interface FrontendConfig {
|
|
7
|
-
merchant_override_css?: string;
|
|
8
|
-
pageVariants?: PageVariantConfig[];
|
|
9
|
-
mountingConfigs?: Record<string, WidgetMountingConfig>;
|
|
10
|
-
widgetConfigs?: Record<string, WidgetConfig>;
|
|
11
|
-
uiConfigs?: Omit<OrgUIConfig, 'merchantOverrideCss'>;
|
|
12
|
-
}
|
|
13
|
-
type FrontendConfigOverrides = Override<FrontendConfig>;
|
|
14
|
-
//#endregion
|
|
15
|
-
|
|
16
|
-
//#endregion
|
|
17
|
-
export { FrontendConfigOverrides };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { OrgUIConfig, PageVariantConfig, WidgetConfig, WidgetMountingConfig } from "../../contexts/types.js";
|
|
2
|
-
import { Override } from "../utils/overrides.js";
|
|
3
|
-
|
|
4
|
-
//#region ../hooks/dist/application/models/frontendConfig.d.ts
|
|
5
|
-
//#region src/application/models/frontendConfig.d.ts
|
|
6
|
-
interface FrontendConfig {
|
|
7
|
-
merchant_override_css?: string;
|
|
8
|
-
pageVariants?: PageVariantConfig[];
|
|
9
|
-
mountingConfigs?: Record<string, WidgetMountingConfig>;
|
|
10
|
-
widgetConfigs?: Record<string, WidgetConfig>;
|
|
11
|
-
uiConfigs?: Omit<OrgUIConfig, 'merchantOverrideCss'>;
|
|
12
|
-
}
|
|
13
|
-
type FrontendConfigOverrides = Override<FrontendConfig>;
|
|
14
|
-
//#endregion
|
|
15
|
-
|
|
16
|
-
//#endregion
|
|
17
|
-
export { FrontendConfig, FrontendConfigOverrides };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Trim } from "./utilityTypes/trim.js";
|
|
2
|
-
import { IsLowerCase, IsNumeric, IsUpperCase, Whitespace, WordSeparators } from "./utilityTypes/internal.js";
|
|
3
|
-
import { SplitWords } from "./utilityTypes/splitWords.js";
|
|
4
|
-
import { CamelCase, CamelCaseOptions } from "./utilityTypes/camelCase.js";
|
|
5
|
-
import { UnknownArray } from "./utilityTypes/unknownArray.js";
|
|
6
|
-
import { CamelCasedPropertiesDeep } from "./utilityTypes/camelCasedPropertiesDeep.js";
|
|
7
|
-
import { SearchResponseProductAttributes } from "./api/response.js";
|
|
8
|
-
import { ChatElementDisplayLocation } from "./chatElementDisplayLocation.js";
|
|
9
|
-
import { ColorNames } from "./colorsConfig.js";
|
|
10
|
-
import { FeatureGates } from "./featureGates.js";
|
|
11
|
-
import { FrontendConfig, FrontendConfigOverrides } from "./frontendConfig.js";
|
|
12
|
-
import { PLPInfo } from "./variantInfo/plpInfo.js";
|
|
13
|
-
import { PageVisitInfo } from "./variantInfo/pageVisitInfo.js";
|
|
14
|
-
import { ProductInfo } from "./variantInfo/productInfo.js";
|
|
15
|
-
import { PDPVariantInfo, PLPVariantInfo, PageVisitVariantInfo, VariantInfo, VariantTypeEnum } from "./variantInfo/variantInfo.js";
|
|
16
|
-
import "./guards/isVariantInfo.js";
|
|
17
|
-
import "./validators/validateGraphQLFrontendConfig.js";
|
|
18
|
-
export {};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { SplitWords } from "./splitWords.cjs";
|
|
2
|
-
|
|
3
|
-
//#region ../hooks/dist/application/models/utilityTypes/camelCase.d.ts
|
|
4
|
-
|
|
5
|
-
//#region src/application/models/utilityTypes/camelCase.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* CamelCase options.
|
|
8
|
-
*
|
|
9
|
-
* @see {@link CamelCase}
|
|
10
|
-
*/
|
|
11
|
-
type CamelCaseOptions = {
|
|
12
|
-
/**
|
|
13
|
-
* Whether to preserved consecutive uppercase letter.
|
|
14
|
-
*
|
|
15
|
-
* @default true
|
|
16
|
-
*/
|
|
17
|
-
preserveConsecutiveUppercase?: boolean;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Convert an array of words to camel-case.
|
|
21
|
-
*/
|
|
22
|
-
type CamelCaseFromArray<Words extends string[], Options extends CamelCaseOptions, OutputString extends string = ''> = Words extends [infer FirstWord extends string, ...infer RemainingWords extends string[]] ? Options['preserveConsecutiveUppercase'] extends true ? `${Capitalize<FirstWord>}${CamelCaseFromArray<RemainingWords, Options>}` : `${Capitalize<Lowercase<FirstWord>>}${CamelCaseFromArray<RemainingWords, Options>}` : OutputString;
|
|
23
|
-
/**
|
|
24
|
-
* Convert a string literal to camel-case.
|
|
25
|
-
*
|
|
26
|
-
* This can be useful when, for example, converting some kebab-cased command-line flags or a snake-cased database result.
|
|
27
|
-
*
|
|
28
|
-
* By default, consecutive uppercase letter are preserved. See {@link CamelCaseOptions.preserveConsecutiveUppercase preserveConsecutiveUppercase} option to change this behaviour.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```
|
|
32
|
-
* import type {CamelCase} from 'type-fest';
|
|
33
|
-
*
|
|
34
|
-
* // Simple
|
|
35
|
-
*
|
|
36
|
-
* const someVariable: CamelCase<'foo-bar'> = 'fooBar';
|
|
37
|
-
*
|
|
38
|
-
* // Advanced
|
|
39
|
-
*
|
|
40
|
-
* type CamelCasedProperties<T> = {
|
|
41
|
-
* [K in keyof T as CamelCase<K>]: T[K]
|
|
42
|
-
* };
|
|
43
|
-
*
|
|
44
|
-
* interface RawOptions {
|
|
45
|
-
* 'dry-run': boolean;
|
|
46
|
-
* 'full_family_name': string;
|
|
47
|
-
* foo: number;
|
|
48
|
-
* BAR: string;
|
|
49
|
-
* QUZ_QUX: number;
|
|
50
|
-
* 'OTHER-FIELD': boolean;
|
|
51
|
-
* }
|
|
52
|
-
*
|
|
53
|
-
* const dbResult: CamelCasedProperties<RawOptions> = {
|
|
54
|
-
* dryRun: true,
|
|
55
|
-
* fullFamilyName: 'bar.js',
|
|
56
|
-
* foo: 123,
|
|
57
|
-
* bar: 'foo',
|
|
58
|
-
* quzQux: 6,
|
|
59
|
-
* otherField: false
|
|
60
|
-
* };
|
|
61
|
-
* ```
|
|
62
|
-
*
|
|
63
|
-
* @category Change case
|
|
64
|
-
* @category Template literal
|
|
65
|
-
*/
|
|
66
|
-
type CamelCase<Type, Options extends CamelCaseOptions = {
|
|
67
|
-
preserveConsecutiveUppercase: true;
|
|
68
|
-
}> = Type extends string ? string extends Type ? Type : Uncapitalize<CamelCaseFromArray<SplitWords<Type extends Uppercase<Type> ? Lowercase<Type> : Type>, Options>> : Type;
|
|
69
|
-
//#endregion
|
|
70
|
-
//#endregion
|
|
71
|
-
export { CamelCase, CamelCaseOptions };
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { SplitWords } from "./splitWords.js";
|
|
2
|
-
|
|
3
|
-
//#region ../hooks/dist/application/models/utilityTypes/camelCase.d.ts
|
|
4
|
-
|
|
5
|
-
//#region src/application/models/utilityTypes/camelCase.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* CamelCase options.
|
|
8
|
-
*
|
|
9
|
-
* @see {@link CamelCase}
|
|
10
|
-
*/
|
|
11
|
-
type CamelCaseOptions = {
|
|
12
|
-
/**
|
|
13
|
-
* Whether to preserved consecutive uppercase letter.
|
|
14
|
-
*
|
|
15
|
-
* @default true
|
|
16
|
-
*/
|
|
17
|
-
preserveConsecutiveUppercase?: boolean;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Convert an array of words to camel-case.
|
|
21
|
-
*/
|
|
22
|
-
type CamelCaseFromArray<Words extends string[], Options extends CamelCaseOptions, OutputString extends string = ''> = Words extends [infer FirstWord extends string, ...infer RemainingWords extends string[]] ? Options['preserveConsecutiveUppercase'] extends true ? `${Capitalize<FirstWord>}${CamelCaseFromArray<RemainingWords, Options>}` : `${Capitalize<Lowercase<FirstWord>>}${CamelCaseFromArray<RemainingWords, Options>}` : OutputString;
|
|
23
|
-
/**
|
|
24
|
-
* Convert a string literal to camel-case.
|
|
25
|
-
*
|
|
26
|
-
* This can be useful when, for example, converting some kebab-cased command-line flags or a snake-cased database result.
|
|
27
|
-
*
|
|
28
|
-
* By default, consecutive uppercase letter are preserved. See {@link CamelCaseOptions.preserveConsecutiveUppercase preserveConsecutiveUppercase} option to change this behaviour.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```
|
|
32
|
-
* import type {CamelCase} from 'type-fest';
|
|
33
|
-
*
|
|
34
|
-
* // Simple
|
|
35
|
-
*
|
|
36
|
-
* const someVariable: CamelCase<'foo-bar'> = 'fooBar';
|
|
37
|
-
*
|
|
38
|
-
* // Advanced
|
|
39
|
-
*
|
|
40
|
-
* type CamelCasedProperties<T> = {
|
|
41
|
-
* [K in keyof T as CamelCase<K>]: T[K]
|
|
42
|
-
* };
|
|
43
|
-
*
|
|
44
|
-
* interface RawOptions {
|
|
45
|
-
* 'dry-run': boolean;
|
|
46
|
-
* 'full_family_name': string;
|
|
47
|
-
* foo: number;
|
|
48
|
-
* BAR: string;
|
|
49
|
-
* QUZ_QUX: number;
|
|
50
|
-
* 'OTHER-FIELD': boolean;
|
|
51
|
-
* }
|
|
52
|
-
*
|
|
53
|
-
* const dbResult: CamelCasedProperties<RawOptions> = {
|
|
54
|
-
* dryRun: true,
|
|
55
|
-
* fullFamilyName: 'bar.js',
|
|
56
|
-
* foo: 123,
|
|
57
|
-
* bar: 'foo',
|
|
58
|
-
* quzQux: 6,
|
|
59
|
-
* otherField: false
|
|
60
|
-
* };
|
|
61
|
-
* ```
|
|
62
|
-
*
|
|
63
|
-
* @category Change case
|
|
64
|
-
* @category Template literal
|
|
65
|
-
*/
|
|
66
|
-
type CamelCase<Type, Options extends CamelCaseOptions = {
|
|
67
|
-
preserveConsecutiveUppercase: true;
|
|
68
|
-
}> = Type extends string ? string extends Type ? Type : Uncapitalize<CamelCaseFromArray<SplitWords<Type extends Uppercase<Type> ? Lowercase<Type> : Type>, Options>> : Type;
|
|
69
|
-
//#endregion
|
|
70
|
-
//#endregion
|
|
71
|
-
export { CamelCase, CamelCaseOptions };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { CamelCase, CamelCaseOptions } from "./camelCase.cjs";
|
|
2
|
-
import { UnknownArray } from "./unknownArray.cjs";
|
|
3
|
-
|
|
4
|
-
//#region ../hooks/dist/application/models/utilityTypes/camelCasedPropertiesDeep.d.ts
|
|
5
|
-
|
|
6
|
-
//#region src/application/models/utilityTypes/camelCasedPropertiesDeep.d.ts
|
|
7
|
-
/**
|
|
8
|
-
* Convert object properties to camel case recursively.
|
|
9
|
-
*
|
|
10
|
-
* This can be useful when, for example, converting some API types from a different style.
|
|
11
|
-
*
|
|
12
|
-
* @see CamelCasedProperties
|
|
13
|
-
* @see CamelCase
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```
|
|
17
|
-
* import type {CamelCasedPropertiesDeep} from 'type-fest';
|
|
18
|
-
*
|
|
19
|
-
* interface User {
|
|
20
|
-
* UserId: number;
|
|
21
|
-
* UserName: string;
|
|
22
|
-
* }
|
|
23
|
-
*
|
|
24
|
-
* interface UserWithFriends {
|
|
25
|
-
* UserInfo: User;
|
|
26
|
-
* UserFriends: User[];
|
|
27
|
-
* }
|
|
28
|
-
*
|
|
29
|
-
* const result: CamelCasedPropertiesDeep<UserWithFriends> = {
|
|
30
|
-
* userInfo: {
|
|
31
|
-
* userId: 1,
|
|
32
|
-
* userName: 'Tom',
|
|
33
|
-
* },
|
|
34
|
-
* userFriends: [
|
|
35
|
-
* {
|
|
36
|
-
* userId: 2,
|
|
37
|
-
* userName: 'Jerry',
|
|
38
|
-
* },
|
|
39
|
-
* {
|
|
40
|
-
* userId: 3,
|
|
41
|
-
* userName: 'Spike',
|
|
42
|
-
* },
|
|
43
|
-
* ],
|
|
44
|
-
* };
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @category Change case
|
|
48
|
-
* @category Template literal
|
|
49
|
-
* @category Object
|
|
50
|
-
*/
|
|
51
|
-
type CamelCasedPropertiesDeep<Value, Options extends CamelCaseOptions = {
|
|
52
|
-
preserveConsecutiveUppercase: true;
|
|
53
|
-
}> = Value extends Function ? Value : Value extends UnknownArray ? CamelCasedPropertiesArrayDeep<Value> : Value extends Set<infer U> ? Set<CamelCasedPropertiesDeep<U, Options>> : { [K in keyof Value as CamelCase<K, Options>]: CamelCasedPropertiesDeep<Value[K], Options> };
|
|
54
|
-
type CamelCasedPropertiesArrayDeep<Value extends UnknownArray> = Value extends [] ? [] : Value extends [infer U, ...infer V] ? [CamelCasedPropertiesDeep<U>, ...CamelCasedPropertiesDeep<V>] : Value extends readonly [infer U, ...infer V] ? readonly [CamelCasedPropertiesDeep<U>, ...CamelCasedPropertiesDeep<V>] : Value extends readonly [...infer U, infer V] ? [...CamelCasedPropertiesDeep<U>, CamelCasedPropertiesDeep<V>] : Value extends readonly [...infer U, infer V] ? readonly [...CamelCasedPropertiesDeep<U>, CamelCasedPropertiesDeep<V>] : Value extends Array<infer U> ? Array<CamelCasedPropertiesDeep<U>> : Value extends ReadonlyArray<infer U> ? ReadonlyArray<CamelCasedPropertiesDeep<U>> : never;
|
|
55
|
-
//#endregion
|
|
56
|
-
|
|
57
|
-
//#endregion
|
|
58
|
-
export { CamelCasedPropertiesDeep };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { CamelCase, CamelCaseOptions } from "./camelCase.js";
|
|
2
|
-
import { UnknownArray } from "./unknownArray.js";
|
|
3
|
-
|
|
4
|
-
//#region ../hooks/dist/application/models/utilityTypes/camelCasedPropertiesDeep.d.ts
|
|
5
|
-
|
|
6
|
-
//#region src/application/models/utilityTypes/camelCasedPropertiesDeep.d.ts
|
|
7
|
-
/**
|
|
8
|
-
* Convert object properties to camel case recursively.
|
|
9
|
-
*
|
|
10
|
-
* This can be useful when, for example, converting some API types from a different style.
|
|
11
|
-
*
|
|
12
|
-
* @see CamelCasedProperties
|
|
13
|
-
* @see CamelCase
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```
|
|
17
|
-
* import type {CamelCasedPropertiesDeep} from 'type-fest';
|
|
18
|
-
*
|
|
19
|
-
* interface User {
|
|
20
|
-
* UserId: number;
|
|
21
|
-
* UserName: string;
|
|
22
|
-
* }
|
|
23
|
-
*
|
|
24
|
-
* interface UserWithFriends {
|
|
25
|
-
* UserInfo: User;
|
|
26
|
-
* UserFriends: User[];
|
|
27
|
-
* }
|
|
28
|
-
*
|
|
29
|
-
* const result: CamelCasedPropertiesDeep<UserWithFriends> = {
|
|
30
|
-
* userInfo: {
|
|
31
|
-
* userId: 1,
|
|
32
|
-
* userName: 'Tom',
|
|
33
|
-
* },
|
|
34
|
-
* userFriends: [
|
|
35
|
-
* {
|
|
36
|
-
* userId: 2,
|
|
37
|
-
* userName: 'Jerry',
|
|
38
|
-
* },
|
|
39
|
-
* {
|
|
40
|
-
* userId: 3,
|
|
41
|
-
* userName: 'Spike',
|
|
42
|
-
* },
|
|
43
|
-
* ],
|
|
44
|
-
* };
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @category Change case
|
|
48
|
-
* @category Template literal
|
|
49
|
-
* @category Object
|
|
50
|
-
*/
|
|
51
|
-
type CamelCasedPropertiesDeep<Value, Options extends CamelCaseOptions = {
|
|
52
|
-
preserveConsecutiveUppercase: true;
|
|
53
|
-
}> = Value extends Function ? Value : Value extends UnknownArray ? CamelCasedPropertiesArrayDeep<Value> : Value extends Set<infer U> ? Set<CamelCasedPropertiesDeep<U, Options>> : { [K in keyof Value as CamelCase<K, Options>]: CamelCasedPropertiesDeep<Value[K], Options> };
|
|
54
|
-
type CamelCasedPropertiesArrayDeep<Value extends UnknownArray> = Value extends [] ? [] : Value extends [infer U, ...infer V] ? [CamelCasedPropertiesDeep<U>, ...CamelCasedPropertiesDeep<V>] : Value extends readonly [infer U, ...infer V] ? readonly [CamelCasedPropertiesDeep<U>, ...CamelCasedPropertiesDeep<V>] : Value extends readonly [...infer U, infer V] ? [...CamelCasedPropertiesDeep<U>, CamelCasedPropertiesDeep<V>] : Value extends readonly [...infer U, infer V] ? readonly [...CamelCasedPropertiesDeep<U>, CamelCasedPropertiesDeep<V>] : Value extends Array<infer U> ? Array<CamelCasedPropertiesDeep<U>> : Value extends ReadonlyArray<infer U> ? ReadonlyArray<CamelCasedPropertiesDeep<U>> : never;
|
|
55
|
-
//#endregion
|
|
56
|
-
|
|
57
|
-
//#endregion
|
|
58
|
-
export { CamelCasedPropertiesDeep };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Trim } from "./trim.cjs";
|
|
2
|
-
|
|
3
|
-
//#region ../hooks/dist/application/models/utilityTypes/internal.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Returns a boolean for whether the string is numeric.
|
|
7
|
-
*
|
|
8
|
-
* This type is a workaround for [Microsoft/TypeScript#46109](https://github.com/microsoft/TypeScript/issues/46109#issuecomment-930307987).
|
|
9
|
-
*/
|
|
10
|
-
type IsNumeric<T extends string> = T extends `${number}` ? Trim<T> extends T ? true : false : false;
|
|
11
|
-
/**
|
|
12
|
-
* Returns a boolean for whether the string is lowercased.
|
|
13
|
-
*/
|
|
14
|
-
type IsLowerCase<T extends string> = T extends Lowercase<T> ? true : false;
|
|
15
|
-
/**
|
|
16
|
-
* Returns a boolean for whether the string is upper-cased.
|
|
17
|
-
*/
|
|
18
|
-
type IsUpperCase<T extends string> = T extends Uppercase<T> ? true : false;
|
|
19
|
-
type WordSeparators = '-' | '_' | Whitespace;
|
|
20
|
-
type Whitespace = '\u{9}' | '\u{A}' | '\u{B}' | '\u{C}' | '\u{D}' | '\u{20}' | '\u{85}' | '\u{A0}' | '\u{1680}' | '\u{2000}' | '\u{2001}' | '\u{2002}' | '\u{2003}' | '\u{2004}' | '\u{2005}' | '\u{2006}' | '\u{2007}' | '\u{2008}' | '\u{2009}' | '\u{200A}' | '\u{2028}' | '\u{2029}' | '\u{202F}' | '\u{205F}' | '\u{3000}' | '\u{FEFF}';
|
|
21
|
-
//#endregion
|
|
22
|
-
export { IsLowerCase, IsNumeric, IsUpperCase, Whitespace, WordSeparators };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Trim } from "./trim.js";
|
|
2
|
-
|
|
3
|
-
//#region ../hooks/dist/application/models/utilityTypes/internal.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Returns a boolean for whether the string is numeric.
|
|
7
|
-
*
|
|
8
|
-
* This type is a workaround for [Microsoft/TypeScript#46109](https://github.com/microsoft/TypeScript/issues/46109#issuecomment-930307987).
|
|
9
|
-
*/
|
|
10
|
-
type IsNumeric<T extends string> = T extends `${number}` ? Trim<T> extends T ? true : false : false;
|
|
11
|
-
/**
|
|
12
|
-
* Returns a boolean for whether the string is lowercased.
|
|
13
|
-
*/
|
|
14
|
-
type IsLowerCase<T extends string> = T extends Lowercase<T> ? true : false;
|
|
15
|
-
/**
|
|
16
|
-
* Returns a boolean for whether the string is upper-cased.
|
|
17
|
-
*/
|
|
18
|
-
type IsUpperCase<T extends string> = T extends Uppercase<T> ? true : false;
|
|
19
|
-
type WordSeparators = '-' | '_' | Whitespace;
|
|
20
|
-
type Whitespace = '\u{9}' | '\u{A}' | '\u{B}' | '\u{C}' | '\u{D}' | '\u{20}' | '\u{85}' | '\u{A0}' | '\u{1680}' | '\u{2000}' | '\u{2001}' | '\u{2002}' | '\u{2003}' | '\u{2004}' | '\u{2005}' | '\u{2006}' | '\u{2007}' | '\u{2008}' | '\u{2009}' | '\u{200A}' | '\u{2028}' | '\u{2029}' | '\u{202F}' | '\u{205F}' | '\u{3000}' | '\u{FEFF}';
|
|
21
|
-
//#endregion
|
|
22
|
-
export { IsLowerCase, IsNumeric, IsUpperCase, Whitespace, WordSeparators };
|