@envive-ai/react-hooks 0.3.39 → 0.3.40
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/application/commerce-api.cjs +3 -2
- package/dist/application/commerce-api.js +3 -2
- package/dist/application/models/api/orgConfigResults.d.cts +13 -2
- package/dist/application/models/api/orgConfigResults.d.ts +13 -2
- package/dist/application/models/featureGates.cjs +2 -1
- package/dist/application/models/featureGates.d.cts +2 -1
- package/dist/application/models/featureGates.d.ts +2 -1
- package/dist/application/models/featureGates.js +2 -1
- package/dist/application/models/graphql/queries/getWidgetConfigQuery.cjs +23 -0
- package/dist/application/models/graphql/queries/getWidgetConfigQuery.js +22 -0
- package/dist/application/models/index.d.cts +2 -2
- package/dist/application/models/index.d.ts +2 -2
- package/dist/application/utils/elementObserver.d.ts +2 -2
- package/dist/application/utils/index.cjs +0 -2
- package/dist/application/utils/index.d.cts +1 -2
- package/dist/application/utils/index.d.ts +1 -2
- package/dist/application/utils/index.js +1 -2
- package/dist/atoms/app/index.d.cts +1 -1
- package/dist/atoms/app/index.d.ts +7 -7
- package/dist/atoms/chat/chatState.d.cts +18 -18
- package/dist/atoms/chat/chatState.d.ts +19 -19
- package/dist/atoms/chat/form.d.cts +2 -2
- package/dist/atoms/chat/form.d.ts +2 -2
- package/dist/atoms/chat/index.cjs +1 -1
- package/dist/atoms/chat/index.d.cts +3 -3
- package/dist/atoms/chat/index.d.ts +2 -2
- package/dist/atoms/chat/index.js +1 -1
- package/dist/atoms/chat/lastMessage.d.cts +2 -2
- package/dist/atoms/chat/lastMessage.d.ts +2 -2
- package/dist/atoms/chat/messageQueue.d.cts +6 -6
- package/dist/atoms/chat/messageQueue.d.ts +6 -6
- package/dist/atoms/chat/performanceMetrics.d.cts +6 -6
- package/dist/atoms/chat/performanceMetrics.d.ts +6 -6
- package/dist/atoms/chat/renderedWidgetRefs.d.cts +2 -2
- package/dist/atoms/chat/renderedWidgetRefs.d.ts +2 -2
- package/dist/atoms/chat/replies.d.cts +3 -3
- package/dist/atoms/chat/suggestions.d.cts +2 -2
- package/dist/atoms/chat/suggestions.d.ts +2 -2
- package/dist/atoms/envive/enviveConfig.d.cts +12 -12
- package/dist/atoms/envive/enviveConfig.d.ts +13 -13
- package/dist/atoms/envive/resolvedBaseConfigVersion.cjs +9 -0
- package/dist/atoms/envive/resolvedBaseConfigVersion.js +8 -0
- package/dist/atoms/globalSearch/globalSearch.d.cts +5 -5
- package/dist/atoms/globalSearch/globalSearch.d.ts +5 -5
- package/dist/atoms/org/customerService.d.cts +6 -6
- package/dist/atoms/org/customerService.d.ts +6 -6
- package/dist/atoms/org/graphqlConfig.d.cts +4 -4
- package/dist/atoms/org/graphqlConfig.d.ts +4 -4
- package/dist/atoms/org/index.cjs +1 -1
- package/dist/atoms/org/index.js +1 -1
- package/dist/atoms/org/newOrgConfigAtom.d.cts +2 -2
- package/dist/atoms/org/newOrgConfigAtom.d.ts +2 -2
- package/dist/atoms/org/orgAnalyticsConfig.d.cts +4 -4
- package/dist/atoms/org/orgAnalyticsConfig.d.ts +4 -4
- package/dist/atoms/search/chatSearch.cjs +1 -1
- package/dist/atoms/search/chatSearch.d.cts +17 -17
- package/dist/atoms/search/chatSearch.d.ts +17 -17
- package/dist/atoms/search/chatSearch.js +1 -1
- package/dist/atoms/search/searchAPI.cjs +1 -1
- package/dist/atoms/search/searchAPI.d.cts +13 -13
- package/dist/atoms/search/searchAPI.d.ts +13 -13
- package/dist/atoms/search/searchAPI.js +1 -1
- package/dist/atoms/search/types.d.ts +1 -1
- package/dist/atoms/search/utils.d.ts +1 -1
- package/dist/atoms/widget/chatPreviewLoading.d.cts +2 -2
- package/dist/atoms/widget/chatPreviewLoading.d.ts +2 -2
- package/dist/contexts/enviveContext/enviveContext.cjs +11 -3
- package/dist/contexts/enviveContext/enviveContext.js +11 -3
- package/dist/contexts/enviveContext/types.d.cts +1 -1
- package/dist/contexts/enviveContext/types.d.ts +1 -1
- package/dist/contexts/graphqlContext/graphqlContext.cjs +1 -1
- package/dist/contexts/graphqlContext/graphqlContext.d.cts +3 -1
- package/dist/contexts/graphqlContext/graphqlContext.d.ts +3 -1
- package/dist/contexts/graphqlContext/graphqlContext.js +1 -1
- package/dist/contexts/pageContext/types.d.ts +1 -1
- package/dist/contexts/salesAgentContext/chatAPI.cjs +2 -2
- package/dist/contexts/salesAgentContext/chatAPI.js +2 -2
- package/dist/contexts/salesAgentContext/salesAgentService.cjs +10 -4
- package/dist/contexts/salesAgentContext/salesAgentService.js +10 -4
- package/dist/contexts/searchContext/searchContext.cjs +1 -1
- package/dist/contexts/searchContext/searchContext.js +1 -1
- package/dist/contexts/systemSettingsContext/systemSettingsContext.d.cts +2 -2
- package/dist/contexts/systemSettingsContext/systemSettingsContext.d.ts +2 -2
- package/dist/contexts/types.d.cts +1 -1
- package/dist/contexts/types.d.ts +1 -1
- package/dist/contexts/typesV3.d.cts +1 -1
- package/dist/contexts/typesV3.d.ts +1 -1
- package/dist/hooks/ChatToggle/useChatToggle.cjs +1 -1
- package/dist/hooks/ChatToggle/useChatToggle.js +1 -1
- package/dist/hooks/GrabAndScroll/useGrabAndScroll.d.cts +2 -2
- package/dist/hooks/GrabAndScroll/useGrabAndScroll.d.ts +2 -2
- package/dist/hooks/Search/useSearch.cjs +3 -3
- package/dist/hooks/Search/useSearch.js +3 -3
- package/dist/hooks/SystemSettingsContext/useSystemSettingsContext.d.cts +2 -2
- package/dist/hooks/SystemSettingsContext/useSystemSettingsContext.d.ts +2 -2
- package/dist/hooks/utils.d.cts +1 -1
- package/dist/services/amplitudeService/amplitudeService.cjs +17 -2
- package/dist/services/amplitudeService/amplitudeService.d.cts +3 -1
- package/dist/services/amplitudeService/amplitudeService.d.ts +3 -1
- package/dist/services/amplitudeService/amplitudeService.js +17 -2
- package/dist/services/enviveConfigService/enviveConfigService.cjs +9 -3
- package/dist/services/enviveConfigService/enviveConfigService.d.cts +3 -2
- package/dist/services/enviveConfigService/enviveConfigService.d.ts +3 -2
- package/dist/services/enviveConfigService/enviveConfigService.js +10 -4
- package/dist/services/enviveConfigService/fetchGraphQLConfig.cjs +78 -39
- package/dist/services/enviveConfigService/fetchGraphQLConfig.js +78 -40
- package/dist/services/ga4ProjectionService/ga4ProjectionService.cjs +3 -3
- package/dist/services/ga4ProjectionService/ga4ProjectionService.js +3 -3
- package/dist/services/hardcopyService/hardcopyService.cjs +4 -2
- package/dist/services/hardcopyService/hardcopyService.js +4 -2
- package/dist/types/config-versions.cjs +3 -1
- package/dist/types/config-versions.js +3 -2
- package/dist/types/customerService.cjs +2 -1
- package/dist/types/customerService.d.cts +2 -1
- package/dist/types/customerService.d.ts +2 -1
- package/dist/types/customerService.js +2 -1
- package/package.json +1 -1
- package/src/application/commerce-api.ts +5 -1
- package/src/application/models/api/orgConfigResults.ts +27 -0
- package/src/application/models/featureGates.ts +5 -0
- package/src/application/models/graphql/queries/getWidgetConfigQuery.ts +34 -0
- package/src/application/utils/__tests__/elementObserver.test.ts +200 -0
- package/src/application/utils/index.ts +0 -1
- package/src/atoms/envive/resolvedBaseConfigVersion.ts +11 -0
- package/src/contexts/enviveContext/enviveContext.tsx +20 -0
- package/src/contexts/graphqlContext/graphqlContext.tsx +5 -0
- package/src/contexts/salesAgentContext/salesAgentService.ts +4 -1
- package/src/services/amplitudeService/__tests__/amplitudeService.test.ts +95 -0
- package/src/services/amplitudeService/amplitudeService.ts +31 -1
- package/src/services/enviveConfigService/__tests__/fetchGraphQLConfig.test.ts +107 -1
- package/src/services/enviveConfigService/enviveConfigService.ts +35 -7
- package/src/services/enviveConfigService/fetchGraphQLConfig.ts +119 -57
- package/src/services/ga4ProjectionService/ga4ProjectionService.ts +2 -2
- package/src/services/hardcopyService/__tests__/hardcopyService.test.ts +35 -1
- package/src/services/hardcopyService/hardcopyService.ts +6 -1
- package/src/types/config-versions.ts +8 -0
- package/src/types/customerService.ts +1 -0
- package/dist/application/utils/merchantUtils.cjs +0 -18
- package/dist/application/utils/merchantUtils.d.cts +0 -5
- package/dist/application/utils/merchantUtils.d.ts +0 -5
- package/dist/application/utils/merchantUtils.js +0 -17
- package/src/application/utils/merchantUtils.ts +0 -16
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/application/models/graphql/queries/getWidgetConfigQuery.ts
|
|
3
|
+
const getWidgetConfigQuery = () => `
|
|
4
|
+
query($userId: String!, $version: String) {
|
|
5
|
+
me {
|
|
6
|
+
getWidgetConfig(userId: $userId, version: $version) {
|
|
7
|
+
productsConfig {
|
|
8
|
+
frontend { values }
|
|
9
|
+
colors { values }
|
|
10
|
+
v_three_config { values }
|
|
11
|
+
}
|
|
12
|
+
resolution {
|
|
13
|
+
baseVersion
|
|
14
|
+
baseVersionSource
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
exports.getWidgetConfigQuery = getWidgetConfigQuery;
|
|
23
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0V2lkZ2V0Q29uZmlnUXVlcnkuY2pzIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9hcHBsaWNhdGlvbi9tb2RlbHMvZ3JhcGhxbC9xdWVyaWVzL2dldFdpZGdldENvbmZpZ1F1ZXJ5LnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIFN0YXRzaWctZXhwZXJpbWVudC1hd2FyZSB1bmlmaWVkIGNvbmZpZyBlbmRwb2ludC4gVXNlZCB3aGVuIHRoZVxuLy8gYHVzZV91bmlmaWVkX2NvbmZpZ2AgZmVhdHVyZSBnYXRlIGlzIG9uLiBTZWxlY3RzIHByb2R1Y3RzQ29uZmlnIHBsdXNcbi8vIHRoZSByZXNvbHV0aW9uIG1ldGFkYXRhIHB5bW9ubyB1c2VkIHRvIHBpY2sgdGhlIHZlc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hbmNlIHRoZSBsZWdhY3kgZ2V0Q29sb3JzQW5kRnJvbnRlbmRRdWVyeSBvZmZlcmVkLlxuZXhwb3J0IGNvbnN0IGdldFdpZGdldENvbmZpZ1F1ZXJ5ID0gKCkgPT4gYFxuICBxdWVyeSgkdXNlcklkOiBTdHJpbmchLCAkdmVyc2lvbjogU3RyaW5nKSB7XG4gICAgbWUge1xuICAgICAgZ2V0V2lkZ2V0Q29uZmlnKHVzZXJJZDogJHVzZXJJZCwgdmVyc2lvbjogJHZlcnNpb24pIHtcbiAgICAgICAgcHJvZHVjdHNDb25maWcge1xuICAgICAgICAgIGZyb250ZW5kIHsgdmFsdWVzIH1cbiAgICAgICAgICBjb2xvcnMgeyB2YWx1ZXMgfVxuICAgICAgICAgIHZfdGhyZWVfY29uZmlnIHsgdmFsdWVzIH1cbiAgICAgICAgfVxuICAgICAgICByZXNvbHV0aW9uIHtcbiAgICAgICAgICBiYXNlVmVyc2lvblxuICAgICAgICAgIGJhc2VWZXJzaW9uU291cmNlXG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gIH1cbmA7XG4iXSwibWFwcGluZ3MiOiI7O0FBaUJBLE1BQWEsNkJBQTZCIn0=
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/application/models/graphql/queries/getWidgetConfigQuery.ts
|
|
2
|
+
const getWidgetConfigQuery = () => `
|
|
3
|
+
query($userId: String!, $version: String) {
|
|
4
|
+
me {
|
|
5
|
+
getWidgetConfig(userId: $userId, version: $version) {
|
|
6
|
+
productsConfig {
|
|
7
|
+
frontend { values }
|
|
8
|
+
colors { values }
|
|
9
|
+
v_three_config { values }
|
|
10
|
+
}
|
|
11
|
+
resolution {
|
|
12
|
+
baseVersion
|
|
13
|
+
baseVersionSource
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { getWidgetConfigQuery };
|
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iAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgfVxuYDtcbiJdLCJtYXBwaW5ncyI6IjtBQWlCQSxNQUFhLDZCQUE2QiJ9
|
|
@@ -18,7 +18,7 @@ import { SpiffyEventName } from "./events.cjs";
|
|
|
18
18
|
import { FeatureGates } from "./featureGates.cjs";
|
|
19
19
|
import { OrgAnalyticsAmplitudeConfig, OrgAnalyticsConfig, OrgAnalyticsCustomerServiceConfig, OrgAnalyticsGoogleAnalyticsConfig } from "./api/orgAnalyticsConfig.cjs";
|
|
20
20
|
import { OrganizationConfig } from "./api/organizationConfig.cjs";
|
|
21
|
-
import { OrgConfig, OrgConfigExperiment, OrgConfigFeatureGate, Organization, OrganizationSettings } from "./api/orgConfigResults.cjs";
|
|
21
|
+
import { ExperimentConfigResolutionMetadata, ExperimentNamespace, OrgConfig, OrgConfigExperiment, OrgConfigExperimentAssignment, OrgConfigFeatureGate, Organization, OrganizationSettings } from "./api/orgConfigResults.cjs";
|
|
22
22
|
import { FrontendConfig, FrontendConfigOverrides } from "./frontendConfig.cjs";
|
|
23
23
|
import { GoogleAnalyticsEvents } from "./googleAnalyticsEvents.cjs";
|
|
24
24
|
import { FormField, Message, MessageRole, MessageType, ProductMessageMetadata, ProductSearchMessageMetadata } from "./message.cjs";
|
|
@@ -83,4 +83,4 @@ import { validateOrgConfigResults } from "./validators/validateOrgConfigResults.
|
|
|
83
83
|
import { validateResponse } from "./validators/validateResponse.cjs";
|
|
84
84
|
import { validateSuggestion } from "./validators/validateSuggestion.cjs";
|
|
85
85
|
import { validateUserEvent } from "./validators/validateUserEvent.cjs";
|
|
86
|
-
export { AcceptableFormFieldType, ApiFormResponseAttributes, ApiFormResponseSchemaAttributes, ApiOrderItemInfo, ApiOrderResponseAttributes, ApiOrganizationConfig, ApiPageResponseAttributes, ApiProductSearchFilterResponseAttributes, ApiReviewResponseAttributes, ApiReviewRichInformation, ApiSearchResponseAttributes, ApiSearchResponseProductAttributes, ApiTextResponseAttributes, AppLoadedUserEvent, AppUnloadedEvent, BaseEcommerceEvent, BuiltIns, CachedValue, CamelCase, CamelCaseOptions, CamelCasedPropertiesDeep, ChatElementDisplayLocation, ChatElementDisplayLocationV3, ClientDetails, ColorMapping, ColorNames, Context, ConversationalSearchIds, DelimiterCase, DelimiterCasedPropertiesDeep, FeatureGates, FormField, FormResponseAttributes, FormSubmitted, FormSubmittedAttributes, FrontendConfig, FrontendConfigOverrides, GA4EcommerceEvent, GenerationParams, GetMerchantColorsQueryData, GetMerchantFrontendConfigQueryData, GoogleAnalyticsEvents, IsLowerCase, IsNumeric, IsUpperCase, Message, MessageRole, MessageType, MobilePLPChatPlacementParameter, MountingConfigQueryData, NextMessageRequest, NonRecursiveType, OrderItemInfo, OrderResponseAttributes, OrgAnalyticsAmplitudeConfig, OrgAnalyticsConfig, OrgAnalyticsCustomerServiceConfig, OrgAnalyticsGoogleAnalyticsConfig, OrgConfig, OrgConfigExperiment, OrgConfigFeatureGate, OrgShortName, Organization, OrganizationConfig, OrganizationSettings, PDPAttributes, PDPUserEvent, PDPVariantInfo, PLPAttributes, PLPInfo, PLPUserEvent, PLPVariantInfo, PageResponseAttributes, PageVariantCheckQueryData, PageVariantQueryData, PageVisitAttributes, PageVisitEvent, PageVisitInfo, PageVisitVariantInfo, Primitive, ProductExperiment, ProductInfo, ProductMessageMetadata, ProductResponseAttributes, ProductSearchMessageMetadata, ProductSearchResponse, ProductSearchResponseAttributes, QueryTypedAttributes, QueryTypedUserEvent, Response, ReviewResponseAttributes, ReviewRichInformation, SearchAttributes, SearchParams, SearchProductFilterAttributes, SearchProductResponseAttributes, SearchResponseAttributes, SearchResponseProductAttributes, SearchResult, SearchUserEvent, SeparatorResponseAttributes, SnakeCasedPropertiesDeep, SpanxTakeAQuizCtaParameter, SpiffyEventName, SpiffyWidgets, SplitIncludingDelimiters, SplitWords, Suggestion, SuggestionClickedAttributes, SuggestionsClickedUserEvent, SupportedEventRequest, TextResponseAttributes, Trim, UAEcommerceEvent, UIConfigQueryData, UnknownArray, UpperCaseCharacters, UserEvent, UserEventAttributes, VariantInfo, VariantType, VariantTypeEnum, Whitespace, WidgetConfigQueryData, WidgetMountingQueryData, WordSeparators, colorVar, getMerchantColorsQuery, getMerchantFrontendConfigQuery, getMerchantOrgIdQuery, hasPropertyOfType, isApiFormResponseAttributes, isApiFormSubmittedResponseAttributes, isApiOrderResponseAttributes, isApiOrgConfigResults, isApiOrganizationConfig, isApiPDPAttributes, isApiPLPEventAttributes, isApiPLPIdAttribute, isApiPageResponseAttributes, isApiProductResponseAttributes, isApiProductSearchFilterResponseAttributes, isApiProductSearchResponseAttributes, isApiQueryTypedAttributes, isApiResponse, isApiReviewResponseAttributes, isApiReviewRichInformation, isApiSearchAttributes, isApiSuggestionClickedAttributes, isApiTextResponseAttributes, isApiUserEvent, isBaseEcommerceEvent, isGA4EcommerceEvent, isGraphQLColorsConfig, isLegacyUAEcommerceEvent, isMobilePLPChatPlacementParameter, isSpanxTakeAQuizCtaParameter, isSuggestion, isVariantInfo, stringToFulfillmentDisplayStatusEnumValue, toCamelCase, transformCamelToSnake, transformSnakeToCamel, validateAndTransformMountingConfig, validateAndTransformPageVariants, validateAndTransformWidgetConfig, validateGraphQLColorsConfig, validateGraphQLFrontendConfig, validateGraphQLOrgId, validateMobilePLPChatPlacementParameter, validateOrgConfigResults, validateOrganizationConfig, validateResponse, validateSuggestion, validateUserEvent };
|
|
86
|
+
export { AcceptableFormFieldType, ApiFormResponseAttributes, ApiFormResponseSchemaAttributes, ApiOrderItemInfo, ApiOrderResponseAttributes, ApiOrganizationConfig, ApiPageResponseAttributes, ApiProductSearchFilterResponseAttributes, ApiReviewResponseAttributes, ApiReviewRichInformation, ApiSearchResponseAttributes, ApiSearchResponseProductAttributes, ApiTextResponseAttributes, AppLoadedUserEvent, AppUnloadedEvent, BaseEcommerceEvent, BuiltIns, CachedValue, CamelCase, CamelCaseOptions, CamelCasedPropertiesDeep, ChatElementDisplayLocation, ChatElementDisplayLocationV3, ClientDetails, ColorMapping, ColorNames, Context, ConversationalSearchIds, DelimiterCase, DelimiterCasedPropertiesDeep, ExperimentConfigResolutionMetadata, ExperimentNamespace, FeatureGates, FormField, FormResponseAttributes, FormSubmitted, FormSubmittedAttributes, FrontendConfig, FrontendConfigOverrides, GA4EcommerceEvent, GenerationParams, GetMerchantColorsQueryData, GetMerchantFrontendConfigQueryData, GoogleAnalyticsEvents, IsLowerCase, IsNumeric, IsUpperCase, Message, MessageRole, MessageType, MobilePLPChatPlacementParameter, MountingConfigQueryData, NextMessageRequest, NonRecursiveType, OrderItemInfo, OrderResponseAttributes, OrgAnalyticsAmplitudeConfig, OrgAnalyticsConfig, OrgAnalyticsCustomerServiceConfig, OrgAnalyticsGoogleAnalyticsConfig, OrgConfig, OrgConfigExperiment, OrgConfigExperimentAssignment, OrgConfigFeatureGate, OrgShortName, Organization, OrganizationConfig, OrganizationSettings, PDPAttributes, PDPUserEvent, PDPVariantInfo, PLPAttributes, PLPInfo, PLPUserEvent, PLPVariantInfo, PageResponseAttributes, PageVariantCheckQueryData, PageVariantQueryData, PageVisitAttributes, PageVisitEvent, PageVisitInfo, PageVisitVariantInfo, Primitive, ProductExperiment, ProductInfo, ProductMessageMetadata, ProductResponseAttributes, ProductSearchMessageMetadata, ProductSearchResponse, ProductSearchResponseAttributes, QueryTypedAttributes, QueryTypedUserEvent, Response, ReviewResponseAttributes, ReviewRichInformation, SearchAttributes, SearchParams, SearchProductFilterAttributes, SearchProductResponseAttributes, SearchResponseAttributes, SearchResponseProductAttributes, SearchResult, SearchUserEvent, SeparatorResponseAttributes, SnakeCasedPropertiesDeep, SpanxTakeAQuizCtaParameter, SpiffyEventName, SpiffyWidgets, SplitIncludingDelimiters, SplitWords, Suggestion, SuggestionClickedAttributes, SuggestionsClickedUserEvent, SupportedEventRequest, TextResponseAttributes, Trim, UAEcommerceEvent, UIConfigQueryData, UnknownArray, UpperCaseCharacters, UserEvent, UserEventAttributes, VariantInfo, VariantType, VariantTypeEnum, Whitespace, WidgetConfigQueryData, WidgetMountingQueryData, WordSeparators, colorVar, getMerchantColorsQuery, getMerchantFrontendConfigQuery, getMerchantOrgIdQuery, hasPropertyOfType, isApiFormResponseAttributes, isApiFormSubmittedResponseAttributes, isApiOrderResponseAttributes, isApiOrgConfigResults, isApiOrganizationConfig, isApiPDPAttributes, isApiPLPEventAttributes, isApiPLPIdAttribute, isApiPageResponseAttributes, isApiProductResponseAttributes, isApiProductSearchFilterResponseAttributes, isApiProductSearchResponseAttributes, isApiQueryTypedAttributes, isApiResponse, isApiReviewResponseAttributes, isApiReviewRichInformation, isApiSearchAttributes, isApiSuggestionClickedAttributes, isApiTextResponseAttributes, isApiUserEvent, isBaseEcommerceEvent, isGA4EcommerceEvent, isGraphQLColorsConfig, isLegacyUAEcommerceEvent, isMobilePLPChatPlacementParameter, isSpanxTakeAQuizCtaParameter, isSuggestion, isVariantInfo, stringToFulfillmentDisplayStatusEnumValue, toCamelCase, transformCamelToSnake, transformSnakeToCamel, validateAndTransformMountingConfig, validateAndTransformPageVariants, validateAndTransformWidgetConfig, validateGraphQLColorsConfig, validateGraphQLFrontendConfig, validateGraphQLOrgId, validateMobilePLPChatPlacementParameter, validateOrgConfigResults, validateOrganizationConfig, validateResponse, validateSuggestion, validateUserEvent };
|
|
@@ -18,7 +18,7 @@ import { SpiffyEventName } from "./events.js";
|
|
|
18
18
|
import { FeatureGates } from "./featureGates.js";
|
|
19
19
|
import { OrgAnalyticsAmplitudeConfig, OrgAnalyticsConfig, OrgAnalyticsCustomerServiceConfig, OrgAnalyticsGoogleAnalyticsConfig } from "./api/orgAnalyticsConfig.js";
|
|
20
20
|
import { OrganizationConfig } from "./api/organizationConfig.js";
|
|
21
|
-
import { OrgConfig, OrgConfigExperiment, OrgConfigFeatureGate, Organization, OrganizationSettings } from "./api/orgConfigResults.js";
|
|
21
|
+
import { ExperimentConfigResolutionMetadata, ExperimentNamespace, OrgConfig, OrgConfigExperiment, OrgConfigExperimentAssignment, OrgConfigFeatureGate, Organization, OrganizationSettings } from "./api/orgConfigResults.js";
|
|
22
22
|
import { FrontendConfig, FrontendConfigOverrides } from "./frontendConfig.js";
|
|
23
23
|
import { GoogleAnalyticsEvents } from "./googleAnalyticsEvents.js";
|
|
24
24
|
import { FormField, Message, MessageRole, MessageType, ProductMessageMetadata, ProductSearchMessageMetadata } from "./message.js";
|
|
@@ -83,4 +83,4 @@ import { validateOrgConfigResults } from "./validators/validateOrgConfigResults.
|
|
|
83
83
|
import { validateResponse } from "./validators/validateResponse.js";
|
|
84
84
|
import { validateSuggestion } from "./validators/validateSuggestion.js";
|
|
85
85
|
import { validateUserEvent } from "./validators/validateUserEvent.js";
|
|
86
|
-
export { AcceptableFormFieldType, ApiFormResponseAttributes, ApiFormResponseSchemaAttributes, ApiOrderItemInfo, ApiOrderResponseAttributes, ApiOrganizationConfig, ApiPageResponseAttributes, ApiProductSearchFilterResponseAttributes, ApiReviewResponseAttributes, ApiReviewRichInformation, ApiSearchResponseAttributes, ApiSearchResponseProductAttributes, ApiTextResponseAttributes, AppLoadedUserEvent, AppUnloadedEvent, BaseEcommerceEvent, BuiltIns, CachedValue, CamelCase, CamelCaseOptions, CamelCasedPropertiesDeep, ChatElementDisplayLocation, ChatElementDisplayLocationV3, ClientDetails, ColorMapping, ColorNames, Context, ConversationalSearchIds, DelimiterCase, DelimiterCasedPropertiesDeep, FeatureGates, FormField, FormResponseAttributes, FormSubmitted, FormSubmittedAttributes, FrontendConfig, FrontendConfigOverrides, GA4EcommerceEvent, GenerationParams, GetMerchantColorsQueryData, GetMerchantFrontendConfigQueryData, GoogleAnalyticsEvents, IsLowerCase, IsNumeric, IsUpperCase, Message, MessageRole, MessageType, MobilePLPChatPlacementParameter, MountingConfigQueryData, NextMessageRequest, NonRecursiveType, OrderItemInfo, OrderResponseAttributes, OrgAnalyticsAmplitudeConfig, OrgAnalyticsConfig, OrgAnalyticsCustomerServiceConfig, OrgAnalyticsGoogleAnalyticsConfig, OrgConfig, OrgConfigExperiment, OrgConfigFeatureGate, OrgShortName, Organization, OrganizationConfig, OrganizationSettings, PDPAttributes, PDPUserEvent, PDPVariantInfo, PLPAttributes, PLPInfo, PLPUserEvent, PLPVariantInfo, PageResponseAttributes, PageVariantCheckQueryData, PageVariantQueryData, PageVisitAttributes, PageVisitEvent, PageVisitInfo, PageVisitVariantInfo, Primitive, ProductExperiment, ProductInfo, ProductMessageMetadata, ProductResponseAttributes, ProductSearchMessageMetadata, ProductSearchResponse, ProductSearchResponseAttributes, QueryTypedAttributes, QueryTypedUserEvent, Response, ReviewResponseAttributes, ReviewRichInformation, SearchAttributes, SearchParams, SearchProductFilterAttributes, SearchProductResponseAttributes, SearchResponseAttributes, SearchResponseProductAttributes, SearchResult, SearchUserEvent, SeparatorResponseAttributes, SnakeCasedPropertiesDeep, SpanxTakeAQuizCtaParameter, SpiffyEventName, SpiffyWidgets, SplitIncludingDelimiters, SplitWords, Suggestion, SuggestionClickedAttributes, SuggestionsClickedUserEvent, SupportedEventRequest, TextResponseAttributes, Trim, UAEcommerceEvent, UIConfigQueryData, UnknownArray, UpperCaseCharacters, UserEvent, UserEventAttributes, VariantInfo, VariantType, VariantTypeEnum, Whitespace, WidgetConfigQueryData, WidgetMountingQueryData, WordSeparators, colorVar, getMerchantColorsQuery, getMerchantFrontendConfigQuery, getMerchantOrgIdQuery, hasPropertyOfType, isApiFormResponseAttributes, isApiFormSubmittedResponseAttributes, isApiOrderResponseAttributes, isApiOrgConfigResults, isApiOrganizationConfig, isApiPDPAttributes, isApiPLPEventAttributes, isApiPLPIdAttribute, isApiPageResponseAttributes, isApiProductResponseAttributes, isApiProductSearchFilterResponseAttributes, isApiProductSearchResponseAttributes, isApiQueryTypedAttributes, isApiResponse, isApiReviewResponseAttributes, isApiReviewRichInformation, isApiSearchAttributes, isApiSuggestionClickedAttributes, isApiTextResponseAttributes, isApiUserEvent, isBaseEcommerceEvent, isGA4EcommerceEvent, isGraphQLColorsConfig, isLegacyUAEcommerceEvent, isMobilePLPChatPlacementParameter, isSpanxTakeAQuizCtaParameter, isSuggestion, isVariantInfo, stringToFulfillmentDisplayStatusEnumValue, toCamelCase, transformCamelToSnake, transformSnakeToCamel, validateAndTransformMountingConfig, validateAndTransformPageVariants, validateAndTransformWidgetConfig, validateGraphQLColorsConfig, validateGraphQLFrontendConfig, validateGraphQLOrgId, validateMobilePLPChatPlacementParameter, validateOrgConfigResults, validateOrganizationConfig, validateResponse, validateSuggestion, validateUserEvent };
|
|
86
|
+
export { AcceptableFormFieldType, ApiFormResponseAttributes, ApiFormResponseSchemaAttributes, ApiOrderItemInfo, ApiOrderResponseAttributes, ApiOrganizationConfig, ApiPageResponseAttributes, ApiProductSearchFilterResponseAttributes, ApiReviewResponseAttributes, ApiReviewRichInformation, ApiSearchResponseAttributes, ApiSearchResponseProductAttributes, ApiTextResponseAttributes, AppLoadedUserEvent, AppUnloadedEvent, BaseEcommerceEvent, BuiltIns, CachedValue, CamelCase, CamelCaseOptions, CamelCasedPropertiesDeep, ChatElementDisplayLocation, ChatElementDisplayLocationV3, ClientDetails, ColorMapping, ColorNames, Context, ConversationalSearchIds, DelimiterCase, DelimiterCasedPropertiesDeep, ExperimentConfigResolutionMetadata, ExperimentNamespace, FeatureGates, FormField, FormResponseAttributes, FormSubmitted, FormSubmittedAttributes, FrontendConfig, FrontendConfigOverrides, GA4EcommerceEvent, GenerationParams, GetMerchantColorsQueryData, GetMerchantFrontendConfigQueryData, GoogleAnalyticsEvents, IsLowerCase, IsNumeric, IsUpperCase, Message, MessageRole, MessageType, MobilePLPChatPlacementParameter, MountingConfigQueryData, NextMessageRequest, NonRecursiveType, OrderItemInfo, OrderResponseAttributes, OrgAnalyticsAmplitudeConfig, OrgAnalyticsConfig, OrgAnalyticsCustomerServiceConfig, OrgAnalyticsGoogleAnalyticsConfig, OrgConfig, OrgConfigExperiment, OrgConfigExperimentAssignment, OrgConfigFeatureGate, OrgShortName, Organization, OrganizationConfig, OrganizationSettings, PDPAttributes, PDPUserEvent, PDPVariantInfo, PLPAttributes, PLPInfo, PLPUserEvent, PLPVariantInfo, PageResponseAttributes, PageVariantCheckQueryData, PageVariantQueryData, PageVisitAttributes, PageVisitEvent, PageVisitInfo, PageVisitVariantInfo, Primitive, ProductExperiment, ProductInfo, ProductMessageMetadata, ProductResponseAttributes, ProductSearchMessageMetadata, ProductSearchResponse, ProductSearchResponseAttributes, QueryTypedAttributes, QueryTypedUserEvent, Response, ReviewResponseAttributes, ReviewRichInformation, SearchAttributes, SearchParams, SearchProductFilterAttributes, SearchProductResponseAttributes, SearchResponseAttributes, SearchResponseProductAttributes, SearchResult, SearchUserEvent, SeparatorResponseAttributes, SnakeCasedPropertiesDeep, SpanxTakeAQuizCtaParameter, SpiffyEventName, SpiffyWidgets, SplitIncludingDelimiters, SplitWords, Suggestion, SuggestionClickedAttributes, SuggestionsClickedUserEvent, SupportedEventRequest, TextResponseAttributes, Trim, UAEcommerceEvent, UIConfigQueryData, UnknownArray, UpperCaseCharacters, UserEvent, UserEventAttributes, VariantInfo, VariantType, VariantTypeEnum, Whitespace, WidgetConfigQueryData, WidgetMountingQueryData, WordSeparators, colorVar, getMerchantColorsQuery, getMerchantFrontendConfigQuery, getMerchantOrgIdQuery, hasPropertyOfType, isApiFormResponseAttributes, isApiFormSubmittedResponseAttributes, isApiOrderResponseAttributes, isApiOrgConfigResults, isApiOrganizationConfig, isApiPDPAttributes, isApiPLPEventAttributes, isApiPLPIdAttribute, isApiPageResponseAttributes, isApiProductResponseAttributes, isApiProductSearchFilterResponseAttributes, isApiProductSearchResponseAttributes, isApiQueryTypedAttributes, isApiResponse, isApiReviewResponseAttributes, isApiReviewRichInformation, isApiSearchAttributes, isApiSuggestionClickedAttributes, isApiTextResponseAttributes, isApiUserEvent, isBaseEcommerceEvent, isGA4EcommerceEvent, isGraphQLColorsConfig, isLegacyUAEcommerceEvent, isMobilePLPChatPlacementParameter, isSpanxTakeAQuizCtaParameter, isSuggestion, isVariantInfo, stringToFulfillmentDisplayStatusEnumValue, toCamelCase, transformCamelToSnake, transformSnakeToCamel, validateAndTransformMountingConfig, validateAndTransformPageVariants, validateAndTransformWidgetConfig, validateGraphQLColorsConfig, validateGraphQLFrontendConfig, validateGraphQLOrgId, validateMobilePLPChatPlacementParameter, validateOrgConfigResults, validateOrganizationConfig, validateResponse, validateSuggestion, validateUserEvent };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MouseEventTypes } from "./mouseEventTypes.js";
|
|
2
2
|
import { NodeSelector } from "./nodeSelector.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react3 from "react";
|
|
4
4
|
import { ReactElement } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/application/utils/elementObserver.d.ts
|
|
@@ -48,7 +48,7 @@ declare class ElementObserver {
|
|
|
48
48
|
init(): void;
|
|
49
49
|
watch(node: Node): void;
|
|
50
50
|
destroy(): void;
|
|
51
|
-
render(fn: () => ReactElement):
|
|
51
|
+
render(fn: () => ReactElement): react3.ReactPortal | undefined;
|
|
52
52
|
fire(event: MouseEventTypes): void;
|
|
53
53
|
show(): void;
|
|
54
54
|
hide(): void;
|
|
@@ -7,7 +7,6 @@ const require_mutationHelper = require('./mutationHelper.cjs');
|
|
|
7
7
|
const require_elementObserver = require('./elementObserver.cjs');
|
|
8
8
|
const require_domObserver = require('./domObserver.cjs');
|
|
9
9
|
const require_imageFilter = require('./imageFilter.cjs');
|
|
10
|
-
const require_merchantUtils = require('./merchantUtils.cjs');
|
|
11
10
|
const require_messageFromFormSubmittedEvent = require('./messageFromFormSubmittedEvent.cjs');
|
|
12
11
|
const require_messageFromQueryEvent = require('./messageFromQueryEvent.cjs');
|
|
13
12
|
const require_messageFromResponse = require('./messageFromResponse.cjs');
|
|
@@ -44,5 +43,4 @@ exports.messageFromSuggestionEvent = require_messageFromSuggestionEvent.messageF
|
|
|
44
43
|
exports.messageRequestToCommerceMessageRequest = require_nextMessageRequestToApiRequest.messageRequestToCommerceMessageRequest;
|
|
45
44
|
exports.parseHref = require_urlsParser.parseHref;
|
|
46
45
|
exports.parseSearchHash = require_urlsParser.parseSearchHash;
|
|
47
|
-
exports.prepareMerchantPage = require_merchantUtils.prepareMerchantPage;
|
|
48
46
|
exports.validateEmail = require_validation.validateEmail;
|
|
@@ -8,7 +8,6 @@ import { NodeSelector, SelectorFactory } from "./nodeSelector.cjs";
|
|
|
8
8
|
import { ElementObserver } from "./elementObserver.cjs";
|
|
9
9
|
import { DOMObserver } from "./domObserver.cjs";
|
|
10
10
|
import { getRecentProductImageUrls } from "./imageFilter.cjs";
|
|
11
|
-
import { prepareMerchantPage } from "./merchantUtils.cjs";
|
|
12
11
|
import { messageFromFormSubmittedEvent } from "./messageFromFormSubmittedEvent.cjs";
|
|
13
12
|
import { messageFromQueryEvent } from "./messageFromQueryEvent.cjs";
|
|
14
13
|
import { messageFromResponse } from "./messageFromResponse.cjs";
|
|
@@ -19,4 +18,4 @@ import { StringUtils } from "./stringUtils.cjs";
|
|
|
19
18
|
import { coreSupportedEventRequestToApiRequest } from "./supportedEventRequestToApiRequest.cjs";
|
|
20
19
|
import { buildSearchHash, buildSearchStartHash, createUrlWithQueryParams, getQueryParam, parseHref, parseSearchHash } from "./urlsParser.cjs";
|
|
21
20
|
import { validateEmail } from "./validation.cjs";
|
|
22
|
-
export { DOMObserver, DeleteOp, ElementObserver, MergeOptions, MouseEventTypes, MutationHelper, NodeSelector, Override, ReplaceOp, SelectorFactory, StringUtils, applyOverrides, buildSearchHash, buildSearchStartHash, coreContextToApiContext, coreSupportedEventRequestToApiRequest, coreUserEventToApiUserEvent, createUrlWithQueryParams, divideArray, getQueryParam, getRecentProductImageUrls, initAmplitude, initDataLayerWrapper, messageFromFormSubmittedEvent, messageFromQueryEvent, messageFromResponse, messageFromSuggestionEvent, messageRequestToCommerceMessageRequest, parseHref, parseSearchHash,
|
|
21
|
+
export { DOMObserver, DeleteOp, ElementObserver, MergeOptions, MouseEventTypes, MutationHelper, NodeSelector, Override, ReplaceOp, SelectorFactory, StringUtils, applyOverrides, buildSearchHash, buildSearchStartHash, coreContextToApiContext, coreSupportedEventRequestToApiRequest, coreUserEventToApiUserEvent, createUrlWithQueryParams, divideArray, getQueryParam, getRecentProductImageUrls, initAmplitude, initDataLayerWrapper, messageFromFormSubmittedEvent, messageFromQueryEvent, messageFromResponse, messageFromSuggestionEvent, messageRequestToCommerceMessageRequest, parseHref, parseSearchHash, validateEmail };
|
|
@@ -8,7 +8,6 @@ import { NodeSelector, SelectorFactory } from "./nodeSelector.js";
|
|
|
8
8
|
import { ElementObserver } from "./elementObserver.js";
|
|
9
9
|
import { DOMObserver } from "./domObserver.js";
|
|
10
10
|
import { getRecentProductImageUrls } from "./imageFilter.js";
|
|
11
|
-
import { prepareMerchantPage } from "./merchantUtils.js";
|
|
12
11
|
import { messageFromFormSubmittedEvent } from "./messageFromFormSubmittedEvent.js";
|
|
13
12
|
import { messageFromQueryEvent } from "./messageFromQueryEvent.js";
|
|
14
13
|
import { messageFromResponse } from "./messageFromResponse.js";
|
|
@@ -19,4 +18,4 @@ import { StringUtils } from "./stringUtils.js";
|
|
|
19
18
|
import { coreSupportedEventRequestToApiRequest } from "./supportedEventRequestToApiRequest.js";
|
|
20
19
|
import { buildSearchHash, buildSearchStartHash, createUrlWithQueryParams, getQueryParam, parseHref, parseSearchHash } from "./urlsParser.js";
|
|
21
20
|
import { validateEmail } from "./validation.js";
|
|
22
|
-
export { DOMObserver, DeleteOp, ElementObserver, MergeOptions, MouseEventTypes, MutationHelper, NodeSelector, Override, ReplaceOp, SelectorFactory, StringUtils, applyOverrides, buildSearchHash, buildSearchStartHash, coreContextToApiContext, coreSupportedEventRequestToApiRequest, coreUserEventToApiUserEvent, createUrlWithQueryParams, divideArray, getQueryParam, getRecentProductImageUrls, initAmplitude, initDataLayerWrapper, messageFromFormSubmittedEvent, messageFromQueryEvent, messageFromResponse, messageFromSuggestionEvent, messageRequestToCommerceMessageRequest, parseHref, parseSearchHash,
|
|
21
|
+
export { DOMObserver, DeleteOp, ElementObserver, MergeOptions, MouseEventTypes, MutationHelper, NodeSelector, Override, ReplaceOp, SelectorFactory, StringUtils, applyOverrides, buildSearchHash, buildSearchStartHash, coreContextToApiContext, coreSupportedEventRequestToApiRequest, coreUserEventToApiUserEvent, createUrlWithQueryParams, divideArray, getQueryParam, getRecentProductImageUrls, initAmplitude, initDataLayerWrapper, messageFromFormSubmittedEvent, messageFromQueryEvent, messageFromResponse, messageFromSuggestionEvent, messageRequestToCommerceMessageRequest, parseHref, parseSearchHash, validateEmail };
|
|
@@ -7,7 +7,6 @@ import { MutationHelper } from "./mutationHelper.js";
|
|
|
7
7
|
import { ElementObserver } from "./elementObserver.js";
|
|
8
8
|
import { DOMObserver } from "./domObserver.js";
|
|
9
9
|
import { getRecentProductImageUrls } from "./imageFilter.js";
|
|
10
|
-
import { prepareMerchantPage } from "./merchantUtils.js";
|
|
11
10
|
import { messageFromFormSubmittedEvent } from "./messageFromFormSubmittedEvent.js";
|
|
12
11
|
import { messageFromQueryEvent } from "./messageFromQueryEvent.js";
|
|
13
12
|
import { messageFromResponse } from "./messageFromResponse.js";
|
|
@@ -19,4 +18,4 @@ import { StringUtils } from "./stringUtils.js";
|
|
|
19
18
|
import { coreSupportedEventRequestToApiRequest } from "./supportedEventRequestToApiRequest.js";
|
|
20
19
|
import { validateEmail } from "./validation.js";
|
|
21
20
|
|
|
22
|
-
export { DOMObserver, ElementObserver, MutationHelper, NodeSelector, SelectorFactory, StringUtils, applyOverrides, buildSearchHash, buildSearchStartHash, coreContextToApiContext, coreSupportedEventRequestToApiRequest, coreUserEventToApiUserEvent, createUrlWithQueryParams, divideArray, getQueryParam, getRecentProductImageUrls, initAmplitude, initDataLayerWrapper, messageFromFormSubmittedEvent, messageFromQueryEvent, messageFromResponse, messageFromSuggestionEvent, messageRequestToCommerceMessageRequest, parseHref, parseSearchHash,
|
|
21
|
+
export { DOMObserver, ElementObserver, MutationHelper, NodeSelector, SelectorFactory, StringUtils, applyOverrides, buildSearchHash, buildSearchStartHash, coreContextToApiContext, coreSupportedEventRequestToApiRequest, coreUserEventToApiUserEvent, createUrlWithQueryParams, divideArray, getQueryParam, getRecentProductImageUrls, initAmplitude, initDataLayerWrapper, messageFromFormSubmittedEvent, messageFromQueryEvent, messageFromResponse, messageFromSuggestionEvent, messageRequestToCommerceMessageRequest, parseHref, parseSearchHash, validateEmail };
|
|
@@ -24,4 +24,4 @@ declare const chatIdAtom: jotai0.WritableAtom<string, [string | typeof jotai_uti
|
|
|
24
24
|
declare const appDetailsAtom: jotai0.Atom<AppDetails>;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { AppDetails, appDetailsAtom, appSourceAtom, chatIdAtom, hasParsedVariantInfoAtom, pageUserEventAtom, pageVariantInfoAtom, supportedEventAtom, userIdAtom, userIdentityAtom, variantInfoAtom };
|
|
27
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC5jdHMiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2F0b21zL2FwcC9pbmRleC5kLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbnRleHRFbnZFbnVtLCBDb250ZXh0U291cmNlRW51bSB9IGZyb20gJ0BzcGlmZnktYWkvY29tbWVyY2UtYXBpLWNsaWVudCc7XG5pbXBvcnQgeyBWYXJpYW50SW5mbyB9IGZyb20gJ3NyYy9hcHBsaWNhdGlvbi9tb2RlbHMnO1xuaW1wb3J0IHsgVXNlcklkZW50aXR5Q29udGV4dFR5cGUgfSBmcm9tICdzcmMvY29udGV4dHMvdXNlcklkZW50aXR5Q29udGV4dC91c2VySWRlbnRpdHlDb250ZXh0JztcbmV4cG9ydCBpbnRlcmZhY2UgQXBwRGV0YWlscyB7XG4gICAgb3JnSWQ6IHN0cmluZztcbiAgICBvcmdTaG9ydE5hbWU6IHN0cmluZztcbiAgICBjaGF0SWQ6IHN0cmluZztcbiAgICB1c2VySWQ6IHN0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
|
import { hasParsedVariantInfoAtom, pageUserEventAtom, pageVariantInfoAtom, supportedEventAtom, variantInfoAtom } from "./variant.js";
|
|
3
3
|
import { VariantInfo } from "../../application/models/variantInfo/variantInfo.js";
|
|
4
4
|
import { ContextEnvEnum, ContextSourceEnum } from "@spiffy-ai/commerce-api-client";
|
|
5
|
-
import * as
|
|
5
|
+
import * as jotai28 from "jotai";
|
|
6
6
|
import * as jotai_utils0 from "jotai/utils";
|
|
7
7
|
|
|
8
8
|
//#region src/atoms/app/index.d.ts
|
|
@@ -15,13 +15,13 @@ interface AppDetails {
|
|
|
15
15
|
env: ContextEnvEnum;
|
|
16
16
|
variantInfo: VariantInfo;
|
|
17
17
|
}
|
|
18
|
-
declare const userIdAtom:
|
|
19
|
-
declare const userIdentityAtom:
|
|
18
|
+
declare const userIdAtom: jotai28.WritableAtom<string, [value: string], void>;
|
|
19
|
+
declare const userIdentityAtom: jotai28.PrimitiveAtom<UserIdentityContextType | undefined> & {
|
|
20
20
|
init: UserIdentityContextType | undefined;
|
|
21
21
|
};
|
|
22
|
-
declare const appSourceAtom:
|
|
23
|
-
declare const chatIdAtom:
|
|
24
|
-
declare const appDetailsAtom:
|
|
22
|
+
declare const appSourceAtom: jotai28.Atom<ContextSourceEnum>;
|
|
23
|
+
declare const chatIdAtom: jotai28.WritableAtom<string, [string | typeof jotai_utils0.RESET | ((prev: string) => string | typeof jotai_utils0.RESET)], void>;
|
|
24
|
+
declare const appDetailsAtom: jotai28.Atom<AppDetails>;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { AppDetails, appDetailsAtom, appSourceAtom, chatIdAtom, hasParsedVariantInfoAtom, pageUserEventAtom, pageVariantInfoAtom, supportedEventAtom, userIdAtom, userIdentityAtom, variantInfoAtom };
|
|
27
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsIm5hbWVzIjpbXSwic291cmNlcyI6WyIuLi8uLi8uLi9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mluZWQ+ICYge1xuICAgIGluaXQ6IFVzZXJJZGVudGl0eUNvbnRleHRUeXBlIHwgdW5kZWZpbmVkO1xufTtcbmV4cG9ydCBkZWNsYXJlIGNvbnN0IGFwcFNvdXJjZUF0b206IGltcG9ydChcImpvdGFpXCIpLkF0b208Q29udGV4dFNvdXJjZUVudW0+
|
|
27
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsIm5hbWVzIjpbXSwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYXRvbXMvYXBwL2luZGV4LmQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29udGV4dEVudkVudW0sIENvbnRleHRTb3VyY2VFbnVtIH0gZnJvbSAnQHNwaWZmeS1haS9jb21tZXJjZS1hcGktY2xpZW50JztcbmltcG9ydCB7IFZhcmlhbnRJbmZvIH0gZnJvbSAnc3JjL2FwcGxpY2F0aW9uL21vZGVscyc7XG5pbXBvcnQgeyBVc2VySWRlbnRpdHlDb250ZXh0VHlwZSB9IGZyb20gJ3NyYy9jb250ZXh0cy91c2VySWRlbnRpdHlDb250ZXh0L3VzZXJJZGVudGl0eUNvbnRleHQnO1xuZXhwb3J0IGludGVyZmFjZSBBcHBEZXRhaWxzIHtcbiAgICBvcmdJZDogc3RyaW5nO1xuICAgIG9yZ1Nob3J0TmFtZTogc3RyaW5nO1xuICAgIGNoYXRJZDogc3RyaW5nO1xuICAgIHVzZXJJZDogc3RyaW5nO1xuICAgIHNvdXJjZTogQ29udGV4dFNvdXJjZUVudW07XG4gICAgZW52OiBDb250ZXh0RW52RW51bTtcbiAgICB2YXJpYW50SW5mbzogVmFyaWFudEluZm87XG59XG5leHBvcnQgeyBwYWdlVXNlckV2ZW50QXRvbSwgcGFnZVZhcmlhbnRJbmZvQXRvbSwgdmFyaWFudEluZm9BdG9tLCBoYXNQYXJzZWRWYXJpYW50SW5mb0F0b20sIHN1cH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JBQVk7Q0FBQTtPQUFBO09BQUEsUUFBQTtDQUFBO0FBQ3ZCLElBQVcsYUFBYTtDQUFDO09BQUcsYUFBQTtPQUFBLGFBQUE7T0FBQSxRQUFBO0NBQUE7QUFDNUIsSUFBQSxpQkFBQTtDQUFBO09BQUE7T0FBQSxRQUFBO0NBQUEifQ==
|
|
@@ -4,59 +4,59 @@ import { SpiffyMetricsEventName } from "../../services/amplitudeService/eventNam
|
|
|
4
4
|
import { Message } from "../../application/models/message.cjs";
|
|
5
5
|
import { FormSubmittedAttributes, UserEvent } from "../../application/models/api/userEvent.cjs";
|
|
6
6
|
import { Suggestion } from "../../application/models/api/suggestion.cjs";
|
|
7
|
-
import * as
|
|
7
|
+
import * as jotai6 from "jotai";
|
|
8
8
|
import { UserEventCategory } from "@spiffy-ai/commerce-api-client/dist/models/UserEventCategory";
|
|
9
9
|
|
|
10
10
|
//#region src/atoms/chat/chatState.d.ts
|
|
11
|
-
declare const userHasRepliedAtom:
|
|
11
|
+
declare const userHasRepliedAtom: jotai6.PrimitiveAtom<boolean> & {
|
|
12
12
|
init: boolean;
|
|
13
13
|
};
|
|
14
|
-
declare const replyEventCategoryAtom:
|
|
14
|
+
declare const replyEventCategoryAtom: jotai6.PrimitiveAtom<UserEventCategory> & {
|
|
15
15
|
init: UserEventCategory;
|
|
16
16
|
};
|
|
17
|
-
declare const userQueryAtom:
|
|
17
|
+
declare const userQueryAtom: jotai6.PrimitiveAtom<string | undefined> & {
|
|
18
18
|
init: string | undefined;
|
|
19
19
|
};
|
|
20
|
-
declare const suggestionAtom:
|
|
20
|
+
declare const suggestionAtom: jotai6.PrimitiveAtom<Suggestion | undefined> & {
|
|
21
21
|
init: Suggestion | undefined;
|
|
22
22
|
};
|
|
23
|
-
declare const askQuestionBtnClickedAtom:
|
|
23
|
+
declare const askQuestionBtnClickedAtom: jotai6.PrimitiveAtom<boolean> & {
|
|
24
24
|
init: boolean;
|
|
25
25
|
};
|
|
26
|
-
declare const messagesAtom:
|
|
26
|
+
declare const messagesAtom: jotai6.PrimitiveAtom<Message[][]> & {
|
|
27
27
|
init: Message[][];
|
|
28
28
|
};
|
|
29
|
-
declare const userEventsAtom:
|
|
29
|
+
declare const userEventsAtom: jotai6.PrimitiveAtom<UserEvent[]> & {
|
|
30
30
|
init: UserEvent[];
|
|
31
31
|
};
|
|
32
|
-
declare const suggestionsAtom:
|
|
32
|
+
declare const suggestionsAtom: jotai6.PrimitiveAtom<Suggestion[]> & {
|
|
33
33
|
init: Suggestion[];
|
|
34
34
|
};
|
|
35
|
-
declare const suggestionsLoadingAtom:
|
|
35
|
+
declare const suggestionsLoadingAtom: jotai6.PrimitiveAtom<boolean> & {
|
|
36
36
|
init: boolean;
|
|
37
37
|
};
|
|
38
|
-
declare const responseStreamingAtom:
|
|
38
|
+
declare const responseStreamingAtom: jotai6.PrimitiveAtom<boolean> & {
|
|
39
39
|
init: boolean;
|
|
40
40
|
};
|
|
41
|
-
declare const pendingResponseAtom:
|
|
41
|
+
declare const pendingResponseAtom: jotai6.PrimitiveAtom<boolean> & {
|
|
42
42
|
init: boolean;
|
|
43
43
|
};
|
|
44
|
-
declare const initializedAtom:
|
|
44
|
+
declare const initializedAtom: jotai6.PrimitiveAtom<boolean> & {
|
|
45
45
|
init: boolean;
|
|
46
46
|
};
|
|
47
|
-
declare const chatIsOpenAtom:
|
|
47
|
+
declare const chatIsOpenAtom: jotai6.PrimitiveAtom<boolean> & {
|
|
48
48
|
init: boolean;
|
|
49
49
|
};
|
|
50
|
-
declare const requestFailureAtom:
|
|
50
|
+
declare const requestFailureAtom: jotai6.PrimitiveAtom<boolean> & {
|
|
51
51
|
init: boolean;
|
|
52
52
|
};
|
|
53
|
-
declare const formSubmitAtom:
|
|
53
|
+
declare const formSubmitAtom: jotai6.PrimitiveAtom<FormSubmittedAttributes | undefined> & {
|
|
54
54
|
init: FormSubmittedAttributes | undefined;
|
|
55
55
|
};
|
|
56
|
-
declare const listeningToSpeechAtom:
|
|
56
|
+
declare const listeningToSpeechAtom: jotai6.PrimitiveAtom<"start" | "stop" | "abort" | undefined> & {
|
|
57
57
|
init: "start" | "stop" | "abort" | undefined;
|
|
58
58
|
};
|
|
59
|
-
declare const chatOnToggleAtom:
|
|
59
|
+
declare const chatOnToggleAtom: jotai6.WritableAtom<null, [triggerLocation?: ChatElementDisplayLocation | ChatElementDisplayLocationV3 | undefined, track?: ((eventName: SpiffyMetricsEventName, eventProps?: Record<string, unknown>) => void) | undefined], void> & {
|
|
60
60
|
init: null;
|
|
61
61
|
};
|
|
62
62
|
//#endregion
|
|
@@ -4,61 +4,61 @@ import { SpiffyMetricsEventName } from "../../services/amplitudeService/eventNam
|
|
|
4
4
|
import { Message } from "../../application/models/message.js";
|
|
5
5
|
import { FormSubmittedAttributes, UserEvent } from "../../application/models/api/userEvent.js";
|
|
6
6
|
import { Suggestion } from "../../application/models/api/suggestion.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as jotai11 from "jotai";
|
|
8
8
|
import { UserEventCategory } from "@spiffy-ai/commerce-api-client/dist/models/UserEventCategory";
|
|
9
9
|
|
|
10
10
|
//#region src/atoms/chat/chatState.d.ts
|
|
11
|
-
declare const userHasRepliedAtom:
|
|
11
|
+
declare const userHasRepliedAtom: jotai11.PrimitiveAtom<boolean> & {
|
|
12
12
|
init: boolean;
|
|
13
13
|
};
|
|
14
|
-
declare const replyEventCategoryAtom:
|
|
14
|
+
declare const replyEventCategoryAtom: jotai11.PrimitiveAtom<UserEventCategory> & {
|
|
15
15
|
init: UserEventCategory;
|
|
16
16
|
};
|
|
17
|
-
declare const userQueryAtom:
|
|
17
|
+
declare const userQueryAtom: jotai11.PrimitiveAtom<string | undefined> & {
|
|
18
18
|
init: string | undefined;
|
|
19
19
|
};
|
|
20
|
-
declare const suggestionAtom:
|
|
20
|
+
declare const suggestionAtom: jotai11.PrimitiveAtom<Suggestion | undefined> & {
|
|
21
21
|
init: Suggestion | undefined;
|
|
22
22
|
};
|
|
23
|
-
declare const askQuestionBtnClickedAtom:
|
|
23
|
+
declare const askQuestionBtnClickedAtom: jotai11.PrimitiveAtom<boolean> & {
|
|
24
24
|
init: boolean;
|
|
25
25
|
};
|
|
26
|
-
declare const messagesAtom:
|
|
26
|
+
declare const messagesAtom: jotai11.PrimitiveAtom<Message[][]> & {
|
|
27
27
|
init: Message[][];
|
|
28
28
|
};
|
|
29
|
-
declare const userEventsAtom:
|
|
29
|
+
declare const userEventsAtom: jotai11.PrimitiveAtom<UserEvent[]> & {
|
|
30
30
|
init: UserEvent[];
|
|
31
31
|
};
|
|
32
|
-
declare const suggestionsAtom:
|
|
32
|
+
declare const suggestionsAtom: jotai11.PrimitiveAtom<Suggestion[]> & {
|
|
33
33
|
init: Suggestion[];
|
|
34
34
|
};
|
|
35
|
-
declare const suggestionsLoadingAtom:
|
|
35
|
+
declare const suggestionsLoadingAtom: jotai11.PrimitiveAtom<boolean> & {
|
|
36
36
|
init: boolean;
|
|
37
37
|
};
|
|
38
|
-
declare const responseStreamingAtom:
|
|
38
|
+
declare const responseStreamingAtom: jotai11.PrimitiveAtom<boolean> & {
|
|
39
39
|
init: boolean;
|
|
40
40
|
};
|
|
41
|
-
declare const pendingResponseAtom:
|
|
41
|
+
declare const pendingResponseAtom: jotai11.PrimitiveAtom<boolean> & {
|
|
42
42
|
init: boolean;
|
|
43
43
|
};
|
|
44
|
-
declare const initializedAtom:
|
|
44
|
+
declare const initializedAtom: jotai11.PrimitiveAtom<boolean> & {
|
|
45
45
|
init: boolean;
|
|
46
46
|
};
|
|
47
|
-
declare const chatIsOpenAtom:
|
|
47
|
+
declare const chatIsOpenAtom: jotai11.PrimitiveAtom<boolean> & {
|
|
48
48
|
init: boolean;
|
|
49
49
|
};
|
|
50
|
-
declare const requestFailureAtom:
|
|
50
|
+
declare const requestFailureAtom: jotai11.PrimitiveAtom<boolean> & {
|
|
51
51
|
init: boolean;
|
|
52
52
|
};
|
|
53
|
-
declare const formSubmitAtom:
|
|
53
|
+
declare const formSubmitAtom: jotai11.PrimitiveAtom<FormSubmittedAttributes | undefined> & {
|
|
54
54
|
init: FormSubmittedAttributes | undefined;
|
|
55
55
|
};
|
|
56
|
-
declare const listeningToSpeechAtom:
|
|
56
|
+
declare const listeningToSpeechAtom: jotai11.PrimitiveAtom<"start" | "stop" | "abort" | undefined> & {
|
|
57
57
|
init: "start" | "stop" | "abort" | undefined;
|
|
58
58
|
};
|
|
59
|
-
declare const chatOnToggleAtom:
|
|
59
|
+
declare const chatOnToggleAtom: jotai11.WritableAtom<null, [triggerLocation?: ChatElementDisplayLocation | ChatElementDisplayLocationV3 | undefined, track?: ((eventName: SpiffyMetricsEventName, eventProps?: Record<string, unknown>) => void) | undefined], void> & {
|
|
60
60
|
init: null;
|
|
61
61
|
};
|
|
62
62
|
//#endregion
|
|
63
63
|
export { askQuestionBtnClickedAtom, chatIsOpenAtom, chatOnToggleAtom, formSubmitAtom, initializedAtom, listeningToSpeechAtom, messagesAtom, pendingResponseAtom, replyEventCategoryAtom, requestFailureAtom, responseStreamingAtom, suggestionAtom, suggestionsAtom, suggestionsLoadingAtom, userEventsAtom, userHasRepliedAtom, userQueryAtom };
|
|
64
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdFN0YXRlLmQudHMiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2F0b21zL2NoYXQvY2hhdFN0YXRlLmQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVXNlckV2ZW50Q2F0ZWdvcnkgfSBmcm9tICdAc3BpZmZ5LWFpL2NvbW1lcmNlLWFwaS1jbGllbnQvZGlzdC9tb2RlbHMvVXNlckV2ZW50Q2F0ZWdvcnknO1xuaW1wb3J0IHsgU3BpZmZ5TWV0cmljc0V2ZW50TmFtZSB9IGZyb20gJ3NyYy9zZXJ2aWNlcy9hbXBsaXR1ZGVTZXJ2aWNlL2FtcGxpdHVkZVNlcnZpY2Un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QUFRO09BQXFCO0NBQU07QUFDeEYsSUFBVyxpQkFBaUI7Q0FBQTtPQUFBO09BQUEsUUFBQTtPQUFBO0NBQUE7QUFDNUIsSUFBQyxrQkFBQTtDQUFBO09BQUE7T0FBQSxRQUFBO09BQUE7Q0FBQTtBQUNELElBQVcseUJBQXlCLENBQUMsV0FBVyxRQUFRLGNBQWM7QUFDdEUsSUFBVyx3QkFBcUIsQ0FBQSxXQUFBLFFBQUEsY0FBQTtBQUNoQyxJQUFDLHNCQUFBLENBQUEsV0FBQSxRQUFBLGNBQUE7QUFDRCxJQUFXLGtCQUFrQixDQUFDLFdBQVcsUUFBUSxjQUFjO0FBQy9ELElBQVcsaUJBQU0sQ0FBQSxXQUFBLFFBQUEsY0FBQTtBQUNqQixJQUFDLHFCQUFBLENBQUEsV0FBQSxRQUFBLGNBQUE7QUFDRCxJQUFXLGlCQUFpQjtDQUFDO09BQVc7T0FBK0IsUUFBUTtPQUFDO0NBQUE7QUFDaEYsSUFBVyx3QkFBVSxDQUFBLFdBQUEsUUFBQSxjQUFBO0FBQ3JCLElBQUMsbUJBQUE7Q0FBQTtPQUFBO09BQUE7T0FBQTtPQUFBO09BQUEsUUFBQTtDQUFBIn0=
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FormSubmittedAttributes } from "../../application/models/api/userEvent.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai56 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/form.d.ts
|
|
5
|
-
declare const handleFormSubmittedAtom:
|
|
5
|
+
declare const handleFormSubmittedAtom: jotai56.WritableAtom<null, [form: FormSubmittedAttributes], void> & {
|
|
6
6
|
init: null;
|
|
7
7
|
};
|
|
8
8
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FormSubmittedAttributes } from "../../application/models/api/userEvent.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai56 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/form.d.ts
|
|
5
|
-
declare const handleFormSubmittedAtom:
|
|
5
|
+
declare const handleFormSubmittedAtom: jotai56.WritableAtom<null, [form: FormSubmittedAttributes], void> & {
|
|
6
6
|
init: null;
|
|
7
7
|
};
|
|
8
8
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_atoms_chat_chatState = require('./chatState.cjs');
|
|
3
|
-
const require_messageQueue = require('./messageQueue.cjs');
|
|
4
3
|
const require_performanceMetrics = require('./performanceMetrics.cjs');
|
|
4
|
+
const require_messageQueue = require('./messageQueue.cjs');
|
|
5
5
|
const require_form = require('./form.cjs');
|
|
6
6
|
const require_suggestions = require('./suggestions.cjs');
|
|
7
7
|
const require_lastMessage = require('./lastMessage.cjs');
|
|
@@ -9,10 +9,10 @@ import { lastAssistantMessageAtom } from "./lastMessage.cjs";
|
|
|
9
9
|
import { clearUserEventAtom, processUserEventAtom, queueUserEventAtom, userEventQueueAtom, userQueueEventCountAtom } from "./messageQueue.cjs";
|
|
10
10
|
import { addWidget, widgetArrayAtom } from "./renderedWidgetRefs.cjs";
|
|
11
11
|
import * as _spiffy_ai_commerce_api_client0 from "@spiffy-ai/commerce-api-client";
|
|
12
|
-
import * as
|
|
12
|
+
import * as jotai5 from "jotai";
|
|
13
13
|
|
|
14
14
|
//#region src/atoms/chat/index.d.ts
|
|
15
|
-
declare const chatAtom:
|
|
15
|
+
declare const chatAtom: jotai5.Atom<{
|
|
16
16
|
userHasReplied: boolean;
|
|
17
17
|
replyEventCategory: _spiffy_ai_commerce_api_client0.UserEventCategory;
|
|
18
18
|
userQuery: string | undefined;
|
|
@@ -28,4 +28,4 @@ declare const chatAtom: jotai21.Atom<{
|
|
|
28
28
|
}>;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { APP_INITIAL_START_TIME_KEY, PAGE_LOAD_OFFSET_TIME_KEY, PerfMetricsEvents, addWidget, appInitialStartTimeMsAtom, askQuestionBtnClickedAtom, chatAtom, chatIsOpenAtom, chatOnToggleAtom, clearUserEventAtom, formSubmitAtom, handleFormSubmittedAtom, handleSuggestionAtom, hasReportedPerformanceMetricsAtom, initializedAtom, lastAssistantMessageAtom, listeningToSpeechAtom, logPerfMetricAtom, messagesAtom, pageLoadOffsetTimeAtom, pendingResponseAtom, performanceMetricsAtom, processUserEventAtom, queueUserEventAtom, replyEventCategoryAtom, requestFailureAtom, resetPerformanceMetricsAtom, responseStreamingAtom, suggestionAtom, suggestionsAtom, suggestionsLoadingAtom, userEventQueueAtom, userEventsAtom, userHasRepliedAtom, userQueryAtom, userQueueEventCountAtom, widgetArrayAtom };
|
|
31
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC5jdHMiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2F0b21zL2NoYXQvaW5kZXguZC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NoYXRTdGF0ZSc7XG5leHBvcnQgKiBmcm9tICcuL3BlcmZvcm1hbmNlTWV0cmljcyc7XG5leHBvcnQgKiBmcm9tICcuL2Zvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi9zdWdnZXN0aW9ucyc7XG5leHBvcnQgKiBmcm9tICcuL2xhc3RNZXNzYWdlJztcbmV4cG9ydCAqIGZyb20gJy4vbWVzc2FnZVF1ZXVlJztcbmV4cG9ydCAqIGZyb20gJy4vcmVuZGVyZWRXaWRnZXRSZWZzJztcbmV4cG9ydCBkZWNsYXJlIGNvbnN0IGNoYXRBdG9tOiBpbXBvcnQoXCJqb3RhaVwiKS5BdG9tPHtcbiAgICB1c2VySGFzUmVwbGllZDogYm9vbGVhbjtcbiAgICByZXBseUV2ZW50Q2F0ZWdvcnk6IGltcG9ydChcIkBzcGlmZnktYWkvY29tbWVyY2UtYXBpLW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0FBQSJ9
|
|
@@ -9,10 +9,10 @@ import { lastAssistantMessageAtom } from "./lastMessage.js";
|
|
|
9
9
|
import { clearUserEventAtom, processUserEventAtom, queueUserEventAtom, userEventQueueAtom, userQueueEventCountAtom } from "./messageQueue.js";
|
|
10
10
|
import { addWidget, widgetArrayAtom } from "./renderedWidgetRefs.js";
|
|
11
11
|
import * as _spiffy_ai_commerce_api_client0 from "@spiffy-ai/commerce-api-client";
|
|
12
|
-
import * as
|
|
12
|
+
import * as jotai0 from "jotai";
|
|
13
13
|
|
|
14
14
|
//#region src/atoms/chat/index.d.ts
|
|
15
|
-
declare const chatAtom:
|
|
15
|
+
declare const chatAtom: jotai0.Atom<{
|
|
16
16
|
userHasReplied: boolean;
|
|
17
17
|
replyEventCategory: _spiffy_ai_commerce_api_client0.UserEventCategory;
|
|
18
18
|
userQuery: string | undefined;
|
package/dist/atoms/chat/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { askQuestionBtnClickedAtom, chatIsOpenAtom, chatOnToggleAtom, formSubmitAtom, initializedAtom, listeningToSpeechAtom, messagesAtom, pendingResponseAtom, replyEventCategoryAtom, requestFailureAtom, responseStreamingAtom, suggestionAtom, suggestionsAtom, suggestionsLoadingAtom, userEventsAtom, userHasRepliedAtom, userQueryAtom } from "./chatState.js";
|
|
2
|
-
import { clearUserEventAtom, processUserEventAtom, queueUserEventAtom, userEventQueueAtom, userQueueEventCountAtom } from "./messageQueue.js";
|
|
3
2
|
import { APP_INITIAL_START_TIME_KEY, PAGE_LOAD_OFFSET_TIME_KEY, PerfMetricsEvents, appInitialStartTimeMsAtom, hasReportedPerformanceMetricsAtom, logPerfMetricAtom, pageLoadOffsetTimeAtom, performanceMetricsAtom, resetPerformanceMetricsAtom } from "./performanceMetrics.js";
|
|
3
|
+
import { clearUserEventAtom, processUserEventAtom, queueUserEventAtom, userEventQueueAtom, userQueueEventCountAtom } from "./messageQueue.js";
|
|
4
4
|
import { handleFormSubmittedAtom } from "./form.js";
|
|
5
5
|
import { handleSuggestionAtom } from "./suggestions.js";
|
|
6
6
|
import { lastAssistantMessageAtom } from "./lastMessage.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Message } from "../../application/models/message.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai57 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/lastMessage.d.ts
|
|
5
|
-
declare const lastAssistantMessageAtom:
|
|
5
|
+
declare const lastAssistantMessageAtom: jotai57.Atom<Message[] | null>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { lastAssistantMessageAtom };
|
|
8
8
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGFzdE1lc3NhZ2UuZC5jdHMiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2F0b21zL2NoYXQvbGFzdE1lc3NhZ2UuZC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVjbGFyZSBjb25zdCBsYXN0QXNzaXN0YW50TWVzc2FnZUF0b206IGltcG9ydChcImpvdGFpXCIpLkF0b208aW1wb3J0KFwiLi4vLi4vYXBwbGljYXRpb24vbW9kZWxzXCIpLk1lc3NhZ2VbXSB8IG51bGw+O1xuIl0sIm1hcHBpbmdzIjoiIn0=
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Message } from "../../application/models/message.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai58 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/lastMessage.d.ts
|
|
5
|
-
declare const lastAssistantMessageAtom:
|
|
5
|
+
declare const lastAssistantMessageAtom: jotai58.Atom<Message[] | null>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { lastAssistantMessageAtom };
|
|
8
8
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGFzdE1lc3NhZ2UuZC50cyIsIm5hbWVzIjpbXSwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYXRvbXMvY2hhdC9sYXN0TWVzc2FnZS5kLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBkZWNsYXJlIGNvbnN0IGxhc3RBc3Npc3RhbnRNZXNzYWdlQXRvbTogaW1wb3J0KFwiam90YWlcIikuQXRvbTxpbXBvcnQoXCIuLi8uLi9hcHBsaWNhdGlvbi9tb2RlbHNcIikuTWVzc2FnZVtdIHwgbnVsbD47XG4iXSwibWFwcGluZ3MiOiIifQ==
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { UserEvent } from "../../application/models/api/userEvent.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai58 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/messageQueue.d.ts
|
|
5
|
-
declare const userEventQueueAtom:
|
|
5
|
+
declare const userEventQueueAtom: jotai58.Atom<UserEvent[]>;
|
|
6
6
|
/**
|
|
7
7
|
* This atom is used to queue a new message for processing on `next_responses`
|
|
8
8
|
* It receives a single `userEvent` that is added to the processing queue.
|
|
9
9
|
* If the event has the same eventId as an existing message in the queue the NEW
|
|
10
10
|
* event is ignored
|
|
11
11
|
*/
|
|
12
|
-
declare const queueUserEventAtom:
|
|
12
|
+
declare const queueUserEventAtom: jotai58.WritableAtom<null, [userEvent: UserEvent], void> & {
|
|
13
13
|
init: null;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* This atom exposes a function to reset the entire queue. All messages in the queue will be purged
|
|
17
17
|
*/
|
|
18
|
-
declare const clearUserEventAtom:
|
|
18
|
+
declare const clearUserEventAtom: jotai58.WritableAtom<null, [], void> & {
|
|
19
19
|
init: null;
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
22
|
* This atom is used to mark events as processed and remove them from the queue
|
|
23
23
|
* It accepts a list of eventId values and will remove all events with those eventIds from the queue.
|
|
24
24
|
*/
|
|
25
|
-
declare const processUserEventAtom:
|
|
25
|
+
declare const processUserEventAtom: jotai58.WritableAtom<null, [eventIds: string[]], void> & {
|
|
26
26
|
init: null;
|
|
27
27
|
};
|
|
28
|
-
declare const userQueueEventCountAtom:
|
|
28
|
+
declare const userQueueEventCountAtom: jotai58.Atom<number>;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { clearUserEventAtom, processUserEventAtom, queueUserEventAtom, userEventQueueAtom, userQueueEventCountAtom };
|
|
31
31
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVzc2FnZVF1ZXVlLmQuY3RzIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hdG9tcy9jaGF0L21lc3NhZ2VRdWV1ZS5kLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFVzZXJFdmVudCB9IGZyb20gJ3NyYy9hcHBsaWNhdGlvbi9tb2RlbHMnO1xuZXhwb3J0IGRlY2xhcmUgY29uc3QgdXNlckV2ZW50UXVldWVBdG9tOiBpbXBvcnQoXCJqb3RhaVwiKS5BdG9tPFVzZXJFdmVudFtdPjtcbi8qKlxuICogVGhpcyBhdG9tIGlzIHVzZWQgdG8gcXVldWUgYSBuZXcgbWVzc2FnZSBmb3IgcHJvY2Vzc2luZyBvbiBgbmV4dF9yZXNwb25zZXNgXG4gKiBJdCByZWNlaXZlcyBhIHNpbmdsZSBgdXNlckV2ZW50YCB0aGF0IGlzIGFkZGVkIHRvIHRoZSBwcm9jZXNzaW5nIHF1ZXVlLlxuICogSWYgdGhlIGV2ZW50IGhhcyB0aGUgc2FtZSBldmVudElkIGFzIGFuIGV4aXN0aW5nIG1lc3NhZ2UgaW4gdGhlIHF1ZXVlIHRoZSBORVdcbiAqIGV2ZW50IGlzIGlnbm9yZWRcbiAqL1xuZXhwb3J0IGRlY2xhcmUgY29uc3QgcXVldWVVc2VyRXZlbnRBdG9tOiB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