@envive-ai/react-hooks 0.3.10 → 0.3.12
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 +26 -22
- package/dist/application/commerce-api.d.cts +58 -0
- package/dist/application/commerce-api.d.ts +59 -0
- package/dist/application/commerce-api.js +16 -12
- package/dist/application/models/api/widgetText.d.cts +14 -0
- package/dist/application/models/api/widgetText.d.ts +14 -0
- package/dist/application/models/api/widgetTextRequest.d.cts +16 -0
- package/dist/application/models/api/widgetTextRequest.d.ts +16 -0
- package/dist/application/models/chatElementDisplayLocationV3.cjs +4 -1
- package/dist/application/models/chatElementDisplayLocationV3.d.cts +4 -1
- package/dist/application/models/chatElementDisplayLocationV3.d.ts +4 -1
- package/dist/application/models/chatElementDisplayLocationV3.js +4 -1
- package/dist/application/models/guards/api/index.cjs +7 -7
- package/dist/application/models/guards/api/index.js +7 -7
- package/dist/application/models/guards/api/isApiFormResponse.cjs +1 -1
- package/dist/application/models/guards/api/isApiFormResponse.js +1 -1
- package/dist/application/models/guards/api/isApiFormSubmittedResponseAttributes.cjs +1 -1
- package/dist/application/models/guards/api/isApiFormSubmittedResponseAttributes.js +1 -1
- package/dist/application/models/guards/api/isApiOrderResponseAttributes.cjs +1 -1
- package/dist/application/models/guards/api/isApiOrderResponseAttributes.js +1 -1
- package/dist/application/models/guards/api/isApiProductResponseAttributes.cjs +1 -1
- package/dist/application/models/guards/api/isApiProductResponseAttributes.js +1 -1
- package/dist/application/models/guards/api/isApiResponse.cjs +1 -1
- package/dist/application/models/guards/api/isApiResponse.js +1 -1
- package/dist/application/models/index.cjs +29 -29
- package/dist/application/models/index.d.cts +25 -25
- package/dist/application/models/index.d.ts +25 -25
- package/dist/application/models/index.js +29 -29
- package/dist/application/models/validators/validateGraphQLFrontendConfig.cjs +1 -1
- package/dist/application/models/validators/validateGraphQLFrontendConfig.js +1 -1
- package/dist/application/models/validators/validateResponse.cjs +3 -3
- package/dist/application/models/validators/validateResponse.js +3 -3
- package/dist/application/models/validators/validateUserEvent.cjs +2 -2
- package/dist/application/models/validators/validateUserEvent.js +2 -2
- package/dist/application/models/variantInfo/variantInfo.cjs +2 -1
- package/dist/application/models/variantInfo/variantInfo.d.cts +6 -1
- package/dist/application/models/variantInfo/variantInfo.d.ts +6 -1
- package/dist/application/models/variantInfo/variantInfo.js +2 -1
- package/dist/application/utils/analyticsUtils.cjs +1 -1
- package/dist/application/utils/analyticsUtils.js +1 -1
- package/dist/application/utils/nodeSelector.cjs +12 -14
- package/dist/application/utils/nodeSelector.js +12 -14
- package/dist/application/utils/widgetTextFromApiWidgetTextResponse.cjs +3 -1
- package/dist/application/utils/widgetTextFromApiWidgetTextResponse.js +3 -1
- package/dist/application/utils/widgetTextRequestToApiRequest.cjs +4 -1
- package/dist/application/utils/widgetTextRequestToApiRequest.js +4 -1
- package/dist/atoms/app/index.cjs +7 -7
- package/dist/atoms/app/index.d.cts +1 -1
- package/dist/atoms/app/index.d.ts +8 -8
- package/dist/atoms/app/index.js +1 -1
- package/dist/atoms/app/variant.cjs +44 -4
- package/dist/atoms/app/variant.d.cts +8 -8
- package/dist/atoms/app/variant.d.ts +8 -8
- package/dist/atoms/app/variant.js +44 -5
- package/dist/atoms/chat/chatState.d.cts +18 -18
- package/dist/atoms/chat/chatState.d.ts +17 -17
- package/dist/atoms/chat/form.cjs +1 -1
- package/dist/atoms/chat/form.d.cts +2 -2
- package/dist/atoms/chat/form.d.ts +2 -2
- package/dist/atoms/chat/form.js +1 -1
- package/dist/atoms/chat/index.d.cts +3 -3
- package/dist/atoms/chat/index.d.ts +2 -2
- 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/replies.d.ts +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 +19 -0
- package/dist/atoms/envive/enviveConfig.d.ts +19 -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 +5 -5
- package/dist/atoms/org/orgAnalyticsConfig.d.ts +5 -5
- 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.d.cts +13 -13
- package/dist/atoms/search/searchAPI.d.ts +13 -13
- package/dist/atoms/search/types.d.cts +1 -1
- package/dist/atoms/search/types.d.ts +1 -1
- package/dist/atoms/search/utils.d.cts +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/config/locators/components/search/index.d.cts +1 -1
- package/dist/contexts/amplitudeContext/amplitudeContext.cjs +9 -7
- package/dist/contexts/amplitudeContext/amplitudeContext.d.cts +2 -2
- package/dist/contexts/amplitudeContext/amplitudeContext.d.ts +2 -2
- package/dist/contexts/amplitudeContext/amplitudeContext.js +5 -3
- package/dist/contexts/amplitudeContext/index.cjs +1 -0
- package/dist/contexts/amplitudeContext/index.d.cts +2 -2
- package/dist/contexts/amplitudeContext/index.d.ts +2 -2
- package/dist/contexts/amplitudeContext/index.js +2 -2
- package/dist/contexts/cdnContext/cdnContext.cjs +3 -3
- package/dist/contexts/enviveConfigContext/enviveConfigContext.cjs +6 -5
- package/dist/contexts/enviveConfigContext/enviveConfigContext.d.cts +2 -1
- package/dist/contexts/enviveConfigContext/enviveConfigContext.d.ts +2 -1
- package/dist/contexts/enviveConfigContext/enviveConfigContext.js +3 -2
- package/dist/contexts/enviveContext/WindowChatToggleBinder.cjs +4 -3
- package/dist/contexts/enviveContext/WindowChatToggleBinder.js +4 -3
- package/dist/contexts/enviveContext/enviveContext.cjs +23 -16
- package/dist/contexts/enviveContext/enviveContext.d.cts +5 -1
- package/dist/contexts/enviveContext/enviveContext.d.ts +5 -1
- package/dist/contexts/enviveContext/enviveContext.js +23 -16
- package/dist/contexts/enviveContext/types.d.cts +1 -1
- package/dist/contexts/enviveContext/types.d.ts +1 -1
- package/dist/contexts/featureFlagServiceContext/featureFlagServiceContext.cjs +23 -2
- package/dist/contexts/featureFlagServiceContext/featureFlagServiceContext.d.cts +11 -2
- package/dist/contexts/featureFlagServiceContext/featureFlagServiceContext.d.ts +11 -2
- package/dist/contexts/featureFlagServiceContext/featureFlagServiceContext.js +23 -2
- package/dist/contexts/featureFlagServiceContext/index.d.cts +2 -2
- package/dist/contexts/featureFlagServiceContext/index.d.ts +2 -2
- package/dist/contexts/graphqlContext/graphqlContext.cjs +7 -7
- package/dist/contexts/graphqlContext/graphqlContext.d.cts +1 -1
- package/dist/contexts/graphqlContext/graphqlContext.d.ts +1 -1
- package/dist/contexts/graphqlContext/graphqlContext.js +3 -3
- package/dist/contexts/graphqlContext/mockV3Config.cjs +10 -4
- package/dist/contexts/graphqlContext/mockV3Config.js +10 -4
- package/dist/contexts/hardcopyContext/hardcopyContext.cjs +60 -6
- package/dist/contexts/hardcopyContext/hardcopyContext.d.cts +8 -3
- package/dist/contexts/hardcopyContext/hardcopyContext.d.ts +8 -3
- package/dist/contexts/hardcopyContext/hardcopyContext.js +58 -4
- package/dist/contexts/newOrgConfigContext/newOrgConfigContext.cjs +3 -3
- package/dist/contexts/pageContext/mapping.cjs +6 -2
- package/dist/contexts/pageContext/mapping.js +6 -2
- package/dist/contexts/pageContext/pageContext.cjs +12 -7
- package/dist/contexts/pageContext/pageContext.js +10 -5
- package/dist/contexts/pageContext/types.d.cts +7 -3
- package/dist/contexts/pageContext/types.d.ts +7 -3
- package/dist/contexts/salesAgentContext/chatAPI.cjs +101 -12
- package/dist/contexts/salesAgentContext/chatAPI.d.cts +8 -4
- package/dist/contexts/salesAgentContext/chatAPI.d.ts +8 -4
- package/dist/contexts/salesAgentContext/chatAPI.js +103 -14
- package/dist/contexts/salesAgentContext/salesAgentContext.cjs +1 -1
- package/dist/contexts/salesAgentContext/salesAgentContext.js +1 -1
- package/dist/contexts/salesAgentContext/salesAgentService.cjs +52 -10
- package/dist/contexts/salesAgentContext/salesAgentService.js +50 -8
- package/dist/contexts/searchContext/searchContext.cjs +4 -4
- package/dist/contexts/searchContext/searchContext.js +1 -1
- package/dist/contexts/systemSettingsContext/systemSettingsContext.cjs +3 -3
- package/dist/contexts/systemSettingsContext/systemSettingsContext.d.cts +2 -2
- package/dist/contexts/types.cjs +1 -1
- package/dist/contexts/types.d.cts +10 -3
- package/dist/contexts/types.d.ts +10 -3
- package/dist/contexts/types.js +1 -1
- package/dist/contexts/typesV3.cjs +2 -1
- package/dist/contexts/typesV3.d.cts +28 -7
- package/dist/contexts/typesV3.d.ts +26 -5
- package/dist/contexts/typesV3.js +2 -1
- package/dist/contexts/userIdentityContext/userIdentityContext.cjs +3 -3
- package/dist/contexts/widgetConfigContext/widgetConfigContext.cjs +1 -1
- package/dist/contexts/widgetConfigContext/widgetConfigContext.js +1 -1
- package/dist/hooks/AppDetails/useAppDetails.cjs +6 -6
- package/dist/hooks/GrabAndScroll/useGrabAndScroll.d.cts +2 -2
- package/dist/hooks/ImageResolver/useImageResolver.cjs +3 -3
- package/dist/hooks/Search/useSearch.cjs +4 -4
- package/dist/hooks/Search/useSearch.d.cts +1 -1
- package/dist/hooks/Search/useSearch.d.ts +1 -1
- package/dist/hooks/Search/useSearch.js +1 -1
- package/dist/services/amplitudeService/amplitudeService.cjs +49 -11
- package/dist/services/amplitudeService/amplitudeService.d.cts +18 -3
- package/dist/services/amplitudeService/amplitudeService.d.ts +18 -3
- package/dist/services/amplitudeService/amplitudeService.js +49 -12
- package/dist/services/amplitudeService/index.cjs +1 -0
- package/dist/services/amplitudeService/index.d.cts +2 -2
- package/dist/services/amplitudeService/index.d.ts +2 -2
- package/dist/services/amplitudeService/index.js +2 -2
- package/dist/types/customerService.d.cts +3 -1
- package/dist/types/customerService.d.ts +1 -1
- package/dist/types/enviveConfig.d.cts +4 -1
- package/dist/types/enviveConfig.d.ts +4 -1
- package/package.json +10 -2
- package/src/application/commerce-api.ts +25 -20
- package/src/application/models/api/widgetText.ts +2 -0
- package/src/application/models/api/widgetTextRequest.ts +2 -0
- package/src/application/models/chatElementDisplayLocationV3.ts +3 -0
- package/src/application/models/variantInfo/variantInfo.ts +5 -0
- package/src/application/utils/nodeSelector.ts +15 -14
- package/src/application/utils/widgetTextFromApiWidgetTextResponse.ts +2 -0
- package/src/application/utils/widgetTextRequestToApiRequest.ts +5 -0
- package/src/atoms/app/variant.ts +56 -2
- package/src/contexts/amplitudeContext/__tests__/amplitudeContext.test.tsx +2 -0
- package/src/contexts/amplitudeContext/amplitudeContext.tsx +5 -1
- package/src/contexts/enviveConfigContext/enviveConfigContext.tsx +3 -0
- package/src/contexts/enviveContext/WindowChatToggleBinder.tsx +5 -1
- package/src/contexts/enviveContext/enviveContext.tsx +10 -3
- package/src/contexts/featureFlagServiceContext/featureFlagServiceContext.tsx +36 -0
- package/src/contexts/graphqlContext/mockV3Config.ts +13 -7
- package/src/contexts/hardcopyContext/hardcopyContext.tsx +67 -4
- package/src/contexts/pageContext/mapping.ts +13 -1
- package/src/contexts/pageContext/pageContext.tsx +9 -4
- package/src/contexts/pageContext/types.ts +7 -1
- package/src/contexts/salesAgentContext/chatAPI.ts +105 -13
- package/src/contexts/salesAgentContext/salesAgentService.ts +66 -4
- package/src/contexts/types.ts +11 -2
- package/src/contexts/typesV3.ts +42 -16
- package/src/services/amplitudeService/__tests__/amplitudeService.test.ts +80 -0
- package/src/services/amplitudeService/amplitudeService.ts +55 -11
- package/src/types/enviveConfig.ts +3 -0
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { UserEvent } from "../../application/models/api/userEvent.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai69 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/messageQueue.d.ts
|
|
5
|
-
declare const userEventQueueAtom:
|
|
5
|
+
declare const userEventQueueAtom: jotai69.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: jotai69.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: jotai69.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: jotai69.WritableAtom<null, [eventIds: string[]], void> & {
|
|
26
26
|
init: null;
|
|
27
27
|
};
|
|
28
|
-
declare const userQueueEventCountAtom:
|
|
28
|
+
declare const userQueueEventCountAtom: jotai69.Atom<number>;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { clearUserEventAtom, processUserEventAtom, queueUserEventAtom, userEventQueueAtom, userQueueEventCountAtom };
|
|
31
31
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVzc2FnZVF1ZXVlLmQudHMiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2F0b21zL2NoYXQvbWVzc2FnZVF1ZXVlLmQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVXNlckV2ZW50IH0gZnJvbSAnc3JjL2FwcGxpY2F0aW9uL21vZGVscyc7XG5leHBvcnQgZGVjbGFyZSBjb25zdCB1c2VyRXZlbnRRdWV1ZUF0b206IGltcG9ydChcImpvdGFpXCIpLkF0b208VXNlckV2ZW50W10+O1xuLyoqXG4gKiBUaGlzIGF0b20gaXMgdXNlZCB0byBxdWV1ZSBhIG5ldyBtZXNzYWdlIGZvciBwcm9jZXNzaW5nIG9uIGBuZXh0X3Jlc3BvbnNlc2BcbiAqIEl0IHJlY2VpdmVzIGEgc2luZ2xlIGB1c2VyRXZlbnRgIHRoYXQgaXMgYWRkZWQgdG8gdGhlIHByb2Nlc3NpbmcgcXVldWUuXG4gKiBJZiB0aGUgZXZlbnQgaGFzIHRoZSBzYW1lIGV2ZW50SWQgYXMgYW4gZXhpc3RpbmcgbWVzc2FnZSBpbiB0aGUgcXVldWUgdGhlIE5FV1xuICogZXZlbnQgaXMgaWdub3JlZFxuICovXG5leHBvcnQgZGVjbGFyZSBjb25zdCBxdWV1ZVVzZXJFdmVud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FDO09BQVc7T0FBaUIsUUFBUTtDQUFRO0FBQzdFLElBQVcscUJBQXFCLENBQUMsV0FBVyxRQUFRLGFBQWE7QUFDakUsSUFBVyx1QkFBdUIsQ0FBQyxXQUFXLFFBQVEsYUFBYTtBQUNuRSxJQUFXLDBCQUFPLENBQUEsV0FBQSxRQUFBLEtBQUEifQ==
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as jotai37 from "jotai";
|
|
2
2
|
import * as jotai_utils1 from "jotai/utils";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/performanceMetrics.d.ts
|
|
@@ -23,8 +23,8 @@ declare enum PerfMetricsEvents {
|
|
|
23
23
|
BottomSuggestionsBarRendered = "bottom_suggestions_bar_rendered_ms",
|
|
24
24
|
SearchPromptRendered = "search_prompt_rendered_ms",
|
|
25
25
|
}
|
|
26
|
-
declare const appInitialStartTimeMsAtom:
|
|
27
|
-
declare const pageLoadOffsetTimeAtom:
|
|
26
|
+
declare const appInitialStartTimeMsAtom: jotai37.WritableAtom<string | undefined, [string | typeof jotai_utils1.RESET | ((prev: string | undefined) => string | typeof jotai_utils1.RESET | undefined) | undefined], void>;
|
|
27
|
+
declare const pageLoadOffsetTimeAtom: jotai37.WritableAtom<string | undefined, [string | typeof jotai_utils1.RESET | ((prev: string | undefined) => string | typeof jotai_utils1.RESET | undefined) | undefined], void>;
|
|
28
28
|
/**
|
|
29
29
|
* Resets the performance metrics atom to an empty map. This should be called after the performance
|
|
30
30
|
* metrics have been reported to amplitude. On SPA, it ensures that we can still capture metrics as
|
|
@@ -32,8 +32,8 @@ declare const pageLoadOffsetTimeAtom: jotai54.WritableAtom<string | undefined, [
|
|
|
32
32
|
* On non-SPA, it ensures that previously captured metrics are not reported again.
|
|
33
33
|
*/
|
|
34
34
|
declare const resetPerformanceMetricsAtom: () => void;
|
|
35
|
-
declare const performanceMetricsAtom:
|
|
36
|
-
declare const hasReportedPerformanceMetricsAtom:
|
|
35
|
+
declare const performanceMetricsAtom: jotai37.Atom<Map<PerfMetricsEvents, number>>;
|
|
36
|
+
declare const hasReportedPerformanceMetricsAtom: jotai37.PrimitiveAtom<boolean> & {
|
|
37
37
|
init: boolean;
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
@@ -42,7 +42,7 @@ declare const hasReportedPerformanceMetricsAtom: jotai54.PrimitiveAtom<boolean>
|
|
|
42
42
|
*
|
|
43
43
|
* @param value The performance metric name to log.
|
|
44
44
|
*/
|
|
45
|
-
declare const logPerfMetricAtom:
|
|
45
|
+
declare const logPerfMetricAtom: jotai37.WritableAtom<null, [value: PerfMetricsEvents], void> & {
|
|
46
46
|
init: null;
|
|
47
47
|
};
|
|
48
48
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as jotai61 from "jotai";
|
|
2
2
|
import * as jotai_utils1 from "jotai/utils";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/performanceMetrics.d.ts
|
|
@@ -23,8 +23,8 @@ declare enum PerfMetricsEvents {
|
|
|
23
23
|
BottomSuggestionsBarRendered = "bottom_suggestions_bar_rendered_ms",
|
|
24
24
|
SearchPromptRendered = "search_prompt_rendered_ms",
|
|
25
25
|
}
|
|
26
|
-
declare const appInitialStartTimeMsAtom:
|
|
27
|
-
declare const pageLoadOffsetTimeAtom:
|
|
26
|
+
declare const appInitialStartTimeMsAtom: jotai61.WritableAtom<string | undefined, [string | typeof jotai_utils1.RESET | ((prev: string | undefined) => string | typeof jotai_utils1.RESET | undefined) | undefined], void>;
|
|
27
|
+
declare const pageLoadOffsetTimeAtom: jotai61.WritableAtom<string | undefined, [string | typeof jotai_utils1.RESET | ((prev: string | undefined) => string | typeof jotai_utils1.RESET | undefined) | undefined], void>;
|
|
28
28
|
/**
|
|
29
29
|
* Resets the performance metrics atom to an empty map. This should be called after the performance
|
|
30
30
|
* metrics have been reported to amplitude. On SPA, it ensures that we can still capture metrics as
|
|
@@ -32,8 +32,8 @@ declare const pageLoadOffsetTimeAtom: jotai22.WritableAtom<string | undefined, [
|
|
|
32
32
|
* On non-SPA, it ensures that previously captured metrics are not reported again.
|
|
33
33
|
*/
|
|
34
34
|
declare const resetPerformanceMetricsAtom: () => void;
|
|
35
|
-
declare const performanceMetricsAtom:
|
|
36
|
-
declare const hasReportedPerformanceMetricsAtom:
|
|
35
|
+
declare const performanceMetricsAtom: jotai61.Atom<Map<PerfMetricsEvents, number>>;
|
|
36
|
+
declare const hasReportedPerformanceMetricsAtom: jotai61.PrimitiveAtom<boolean> & {
|
|
37
37
|
init: boolean;
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
@@ -42,7 +42,7 @@ declare const hasReportedPerformanceMetricsAtom: jotai22.PrimitiveAtom<boolean>
|
|
|
42
42
|
*
|
|
43
43
|
* @param value The performance metric name to log.
|
|
44
44
|
*/
|
|
45
|
-
declare const logPerfMetricAtom:
|
|
45
|
+
declare const logPerfMetricAtom: jotai61.WritableAtom<null, [value: PerfMetricsEvents], void> & {
|
|
46
46
|
init: null;
|
|
47
47
|
};
|
|
48
48
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as jotai50 from "jotai";
|
|
2
2
|
|
|
3
3
|
//#region src/atoms/chat/renderedWidgetRefs.d.ts
|
|
4
|
-
declare const widgetArrayAtom:
|
|
4
|
+
declare const widgetArrayAtom: jotai50.Atom<HTMLElement[]>;
|
|
5
5
|
/**
|
|
6
6
|
* This function call is used to create a list of the Spiffy widgets
|
|
7
7
|
* that are rendering on the page.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as jotai68 from "jotai";
|
|
2
2
|
|
|
3
3
|
//#region src/atoms/chat/renderedWidgetRefs.d.ts
|
|
4
|
-
declare const widgetArrayAtom:
|
|
4
|
+
declare const widgetArrayAtom: jotai68.Atom<HTMLElement[]>;
|
|
5
5
|
/**
|
|
6
6
|
* This function call is used to create a list of the Spiffy widgets
|
|
7
7
|
* that are rendering on the page.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Message } from "../../application/models/message.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai21 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/replies.d.ts
|
|
5
5
|
type HandleReplyParams = {
|
|
6
6
|
message: Message;
|
|
7
7
|
userTyped: boolean;
|
|
8
8
|
};
|
|
9
|
-
declare const handleReplyAtom:
|
|
9
|
+
declare const handleReplyAtom: jotai21.WritableAtom<null, [HandleReplyParams], void> & {
|
|
10
10
|
init: null;
|
|
11
11
|
};
|
|
12
12
|
//#endregion
|
|
13
13
|
export { handleReplyAtom };
|
|
14
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
14
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwbGllcy5kLmN0cyIsIm5hbWVzIjpbXSwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYXRvbXMvY2hhdC9yZXBsaWVzLmQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTWVzc2FnZSB9IGZyb20gJ3NyYy9hcHBsaWNhdGlvbi9tb2RlbHMnO1xudHlwZSBIYW5kbGVSZXBseVBhcmFtcyA9IHtcbiAgICBtZXNzYWdlOiBNZXNzYWdlO1xuICAgIHVzZXJUeXBlZDogYm9vbGVhbjtcbn07XG5leHBvcnQgZGVjbGFyZSBjb25zdCBoYW5kbGVSZXBseUF0b206IGltcG9ydChcImpvdGFpXCIpLldyaXRhYmxlQXRvbTxudWxsLCBbSGFuZGxlUmVwbHlQYXJhbXNdLCB2b2lkPiAmIHtcbiAgICBpbml0OiBudWxsO1xufTtcbmV4cG9ydCB7fTtcbiJdLCJtYXBwaW5ncyI6Ijs7OztBQUVBLElBQUksb0JBQWdCLENBQUEsV0FBQSxRQUFBO0FBQ3BCLElBQVcsa0JBQVc7Q0FBQTtPQUFBO09BQUEsUUFBQTtDQUFBIn0=
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Message } from "../../application/models/message.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai20 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/replies.d.ts
|
|
5
5
|
type HandleReplyParams = {
|
|
6
6
|
message: Message;
|
|
7
7
|
userTyped: boolean;
|
|
8
8
|
};
|
|
9
|
-
declare const handleReplyAtom:
|
|
9
|
+
declare const handleReplyAtom: jotai20.WritableAtom<null, [HandleReplyParams], void> & {
|
|
10
10
|
init: null;
|
|
11
11
|
};
|
|
12
12
|
//#endregion
|
|
13
13
|
export { handleReplyAtom };
|
|
14
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwbGllcy5kLnRzIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hdG9tcy9jaGF0L3JlcGxpZXMuZC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBNZXNzYWdlIH0gZnJvbSAnc3JjL2FwcGxpY2F0aW9uL21vZGVscyc7XG50eXBlIEhhbmRsZVJlcGx5UGFyYW1zID0ge1xuICAgIG1lc3NhZ2U6IE1lc3NhZ2U7XG4gICAgdXNlclR5cGVkOiBib29sZWFuO1xufTtcbmV4cG9ydCBkZWNsYXJlIGNvbnN0IGhhbmRsZVJlcGx5QXRvbTogaW1wb3J0KFwiam90YWlcIikuV3JpdGFibGVBdG9tPG51bGwsIFtIYW5kbGVSZXBseVBhcmFtc10sIHZvaWQ+
|
|
14
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwbGllcy5kLnRzIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hdG9tcy9jaGF0L3JlcGxpZXMuZC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBNZXNzYWdlIH0gZnJvbSAnc3JjL2FwcGxpY2F0aW9uL21vZGVscyc7XG50eXBlIEhhbmRsZVJlcGx5UGFyYW1zID0ge1xuICAgIG1lc3NhZ2U6IE1lc3NhZ2U7XG4gICAgdXNlclR5cGVkOiBib29sZWFuO1xufTtcbmV4cG9ydCBkZWNsYXJlIGNvbnN0IGhhbmRsZVJlcGx5QXRvbTogaW1wb3J0KFwiam90YWlcIikuV3JpdGFibGVBdG9tPG51bGwsIFtIYW5kbGVSZXBseVBhcmFtc10sIHZvaWQ+ICYge1xuICAgIGluaXQ6IG51bGw7XG59O1xuZXhwb3J0IHt9O1xuIl0sIm1hcHBpbmdzIjoiOzs7O0FBRUEsSUFBSSxvQkFBZ0IsQ0FBQSxXQUFBLFFBQUE7QUFDcEIsSUFBVyxrQkFBVztDQUFBO09BQUE7T0FBQSxRQUFBO0NBQUEifQ==
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Suggestion } from "../../application/models/api/suggestion.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai43 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/suggestions.d.ts
|
|
5
|
-
declare const handleSuggestionAtom:
|
|
5
|
+
declare const handleSuggestionAtom: jotai43.WritableAtom<null, [suggestion: Suggestion], void> & {
|
|
6
6
|
init: null;
|
|
7
7
|
};
|
|
8
8
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Suggestion } from "../../application/models/api/suggestion.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai74 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/suggestions.d.ts
|
|
5
|
-
declare const handleSuggestionAtom:
|
|
5
|
+
declare const handleSuggestionAtom: jotai74.WritableAtom<null, [suggestion: Suggestion], void> & {
|
|
6
6
|
init: null;
|
|
7
7
|
};
|
|
8
8
|
//#endregion
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EnviveConfig } from "../../contexts/types.cjs";
|
|
2
|
+
import { ContextSourceEnum } from "@spiffy-ai/commerce-api-client";
|
|
3
|
+
import * as jotai22 from "jotai";
|
|
4
|
+
|
|
5
|
+
//#region src/atoms/envive/enviveConfig.d.ts
|
|
6
|
+
declare const enviveConfigAtom: jotai22.WritableAtom<EnviveConfig | undefined, [value: EnviveConfig], void>;
|
|
7
|
+
declare const amplitudeApiKeyAtom: jotai22.Atom<string | undefined>;
|
|
8
|
+
declare const dataResidencyAtom: jotai22.Atom<string | undefined>;
|
|
9
|
+
declare const envAtom: jotai22.Atom<string | undefined>;
|
|
10
|
+
declare const baseUrlAtom: jotai22.Atom<string>;
|
|
11
|
+
declare const reactAppNameAtom: jotai22.Atom<string | undefined>;
|
|
12
|
+
declare const cdnUrlAtom: jotai22.Atom<string | undefined>;
|
|
13
|
+
declare const orgIdAtom: jotai22.Atom<string | undefined>;
|
|
14
|
+
declare const contextSourceAtom: jotai22.Atom<ContextSourceEnum>;
|
|
15
|
+
declare const orgLevelApiKeyAtom: jotai22.Atom<string | undefined>;
|
|
16
|
+
declare const orgShortNameAtom: jotai22.Atom<string | undefined>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { amplitudeApiKeyAtom, baseUrlAtom, cdnUrlAtom, contextSourceAtom, dataResidencyAtom, envAtom, enviveConfigAtom, orgIdAtom, orgLevelApiKeyAtom, orgShortNameAtom, reactAppNameAtom };
|
|
19
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52aXZlQ29uZmlnLmQuY3RzIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hdG9tcy9lbnZpdmUvZW52aXZlQ29uZmlnLmQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRW52aXZlQ29uZmlnIH0gZnJvbSAnc3JjL2NvbnRleHRzL3R5cGVzJ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vdXJjZUVudW0+O1xuZXhwb3J0IGRlY2xhcmUgY29uc3Qgb3JnTGV2ZWxBcGlLZXlBdG9tOiBpbXBvcnQoXCJqb3RhaVwiKS5BdG9tPHN0cmluZyB8IHVuZGVmaW5lZD47XG5leHBvcnQgZGVjbGFyZSBjb25zdCBvcmdTaG9ydE5hbWVBdG9tOiBpbXBvcnQoXCJqb3RhaVwiKS5BdG9tPHN0cmluZyB8IHVuZGVmaW5lZD47XG4iXSwibWFwcGluZ3MiOiI7Ozs7O0FBR0EsSUFBVyxtQkFBbUI7Q0FBQztPQUFXO09BQW9CO09BQW9CLFFBQUE7Q0FBQTtBQUNsRixJQUFXLHNCQUFzQixDQUFDLFdBQVcsUUFBUSxLQUFLO0FBQzFELElBQVcsb0JBQW9CLENBQUMsV0FBVyxRQUFRLEtBQUs7QUFDeEQsSUFBVyxVQUFVLENBQUMsV0FBVyxRQUFRLEtBQUs7QUFDOUMsSUFBVyxjQUFjLENBQUMsV0FBVyxRQUFRLEtBQUs7QUFDbEQsSUFBVyxtQkFBbUIsQ0FBQyxXQUFXLFFBQVEsS0FBSztBQUN2RCxJQUFXLGFBQWEsQ0FBQyxXQUFXLFFBQVEsS0FBSztBQUNqRCxJQUFXLFlBQVksQ0FBQyxXQUFXLFFBQVEsS0FBSztBQUNoRCxJQUFXLG9CQUFvQjtDQUFDO09BQVc7T0FBeUIsUUFBUTtDQUFLO0FBQ2pGLElBQVcscUJBQXFCLENBQUMsV0FBVyxRQUFRLEtBQUsifQ==
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EnviveConfig } from "../../contexts/types.js";
|
|
2
|
+
import { ContextSourceEnum } from "@spiffy-ai/commerce-api-client";
|
|
3
|
+
import * as jotai21 from "jotai";
|
|
4
|
+
|
|
5
|
+
//#region src/atoms/envive/enviveConfig.d.ts
|
|
6
|
+
declare const enviveConfigAtom: jotai21.WritableAtom<EnviveConfig | undefined, [value: EnviveConfig], void>;
|
|
7
|
+
declare const amplitudeApiKeyAtom: jotai21.Atom<string | undefined>;
|
|
8
|
+
declare const dataResidencyAtom: jotai21.Atom<string | undefined>;
|
|
9
|
+
declare const envAtom: jotai21.Atom<string | undefined>;
|
|
10
|
+
declare const baseUrlAtom: jotai21.Atom<string>;
|
|
11
|
+
declare const reactAppNameAtom: jotai21.Atom<string | undefined>;
|
|
12
|
+
declare const cdnUrlAtom: jotai21.Atom<string | undefined>;
|
|
13
|
+
declare const orgIdAtom: jotai21.Atom<string | undefined>;
|
|
14
|
+
declare const contextSourceAtom: jotai21.Atom<ContextSourceEnum>;
|
|
15
|
+
declare const orgLevelApiKeyAtom: jotai21.Atom<string | undefined>;
|
|
16
|
+
declare const orgShortNameAtom: jotai21.Atom<string | undefined>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { amplitudeApiKeyAtom, baseUrlAtom, cdnUrlAtom, contextSourceAtom, dataResidencyAtom, envAtom, enviveConfigAtom, orgIdAtom, orgLevelApiKeyAtom, orgShortNameAtom, reactAppNameAtom };
|
|
19
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52aXZlQ29uZmlnLmQudHMiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2F0b21zL2Vudml2ZS9lbnZpdmVDb25maWcuZC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBFbnZpdmVDb25maWcgfSBmcm9tICdzcmMvY29udGV4dHMvdHlwZXMnO1xuaW1wb3J0IHsgQ29udGV4dFNvdXJjZUVudW0gfSBmcm9tICdAc3BpZmZ5LWFpL2NvbW1lcmNlLWFwaS1jbGllbnQnO1xuZXhwb3J0IGRlY2xhcmUgY29uc3QgZW52aXZlQ29uZmlnQXRvbTogaW1wb3J0KFwiam90YWlcIikuV3JpdGFibGVBdG9tPEVudml2ZUNvbmZpZyB8IHVuZGVmaW5lZCwgW3ZhbHVlOiBFbnZpdmVDb25maWddLCB2b2lkP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tYXBwaW5ncyI6Ijs7Ozs7QUFHQSxJQUFXLG1CQUFtQjtDQUFDO09BQVc7T0FBb0I7T0FBb0IsUUFBQTtDQUFBO0FBQ2xGLElBQVcsc0JBQXNCLENBQUMsV0FBVyxRQUFRLEtBQUs7QUFDMUQsSUFBVyxvQkFBb0IsQ0FBQyxXQUFXLFFBQVEsS0FBSztBQUN4RCxJQUFXLFVBQVUsQ0FBQyxXQUFXLFFBQVEsS0FBSztBQUM5QyxJQUFXLGNBQWMsQ0FBQyxXQUFXLFFBQVEsS0FBSztBQUNsRCxJQUFXLG1CQUFtQixDQUFDLFdBQVcsUUFBUSxLQUFLO0FBQ3ZELElBQVcsYUFBYSxDQUFDLFdBQVcsUUFBUSxLQUFLO0FBQ2pELElBQVcsWUFBWSxDQUFDLFdBQVcsUUFBUSxLQUFLO0FBQ2hELElBQVcsb0JBQW9CO0NBQUM7T0FBVztPQUF5QixRQUFRO0NBQUs7QUFDakYsSUFBVyxxQkFBcUIsQ0FBQyxXQUFXLFFBQVEsS0FBSyJ9
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as jotai33 from "jotai";
|
|
2
2
|
|
|
3
3
|
//#region src/atoms/globalSearch/globalSearch.d.ts
|
|
4
|
-
declare const autocompleteStateAtom:
|
|
4
|
+
declare const autocompleteStateAtom: jotai33.PrimitiveAtom<{
|
|
5
5
|
results: string[];
|
|
6
6
|
isLoading: boolean;
|
|
7
7
|
}> & {
|
|
@@ -10,13 +10,13 @@ declare const autocompleteStateAtom: jotai22.PrimitiveAtom<{
|
|
|
10
10
|
isLoading: boolean;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
declare const isFilterOpenAtom:
|
|
13
|
+
declare const isFilterOpenAtom: jotai33.PrimitiveAtom<boolean> & {
|
|
14
14
|
init: boolean;
|
|
15
15
|
};
|
|
16
|
-
declare const isGlobalSearchOpenAtom:
|
|
16
|
+
declare const isGlobalSearchOpenAtom: jotai33.PrimitiveAtom<boolean> & {
|
|
17
17
|
init: boolean;
|
|
18
18
|
};
|
|
19
|
-
declare const isSearchResultsOpenAtom:
|
|
19
|
+
declare const isSearchResultsOpenAtom: jotai33.PrimitiveAtom<boolean> & {
|
|
20
20
|
init: boolean;
|
|
21
21
|
};
|
|
22
22
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as jotai76 from "jotai";
|
|
2
2
|
|
|
3
3
|
//#region src/atoms/globalSearch/globalSearch.d.ts
|
|
4
|
-
declare const autocompleteStateAtom:
|
|
4
|
+
declare const autocompleteStateAtom: jotai76.PrimitiveAtom<{
|
|
5
5
|
results: string[];
|
|
6
6
|
isLoading: boolean;
|
|
7
7
|
}> & {
|
|
@@ -10,13 +10,13 @@ declare const autocompleteStateAtom: jotai37.PrimitiveAtom<{
|
|
|
10
10
|
isLoading: boolean;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
declare const isFilterOpenAtom:
|
|
13
|
+
declare const isFilterOpenAtom: jotai76.PrimitiveAtom<boolean> & {
|
|
14
14
|
init: boolean;
|
|
15
15
|
};
|
|
16
|
-
declare const isGlobalSearchOpenAtom:
|
|
16
|
+
declare const isGlobalSearchOpenAtom: jotai76.PrimitiveAtom<boolean> & {
|
|
17
17
|
init: boolean;
|
|
18
18
|
};
|
|
19
|
-
declare const isSearchResultsOpenAtom:
|
|
19
|
+
declare const isSearchResultsOpenAtom: jotai76.PrimitiveAtom<boolean> & {
|
|
20
20
|
init: boolean;
|
|
21
21
|
};
|
|
22
22
|
//#endregion
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { ChatState } from "../../types/custservice-types.cjs";
|
|
2
2
|
import { AttachmentRequest, CustServiceConversationMessages } from "@spiffy-ai/commerce-api-client";
|
|
3
|
-
import * as
|
|
3
|
+
import * as jotai80 from "jotai";
|
|
4
4
|
|
|
5
5
|
//#region src/atoms/org/customerService.d.ts
|
|
6
|
-
declare const isBusinessHoursAtom:
|
|
6
|
+
declare const isBusinessHoursAtom: jotai80.PrimitiveAtom<boolean> & {
|
|
7
7
|
init: boolean;
|
|
8
8
|
};
|
|
9
|
-
declare const isCustomerServiceOpenAtom:
|
|
9
|
+
declare const isCustomerServiceOpenAtom: jotai80.PrimitiveAtom<boolean> & {
|
|
10
10
|
init: boolean;
|
|
11
11
|
};
|
|
12
|
-
declare const customerServiceResponseAtom:
|
|
12
|
+
declare const customerServiceResponseAtom: jotai80.PrimitiveAtom<CustServiceConversationMessages | undefined> & {
|
|
13
13
|
init: CustServiceConversationMessages | undefined;
|
|
14
14
|
};
|
|
15
|
-
declare const customerServiceChatStateAtom:
|
|
15
|
+
declare const customerServiceChatStateAtom: jotai80.PrimitiveAtom<ChatState | undefined> & {
|
|
16
16
|
init: ChatState | undefined;
|
|
17
17
|
};
|
|
18
|
-
declare const customerServiceAttachment:
|
|
18
|
+
declare const customerServiceAttachment: jotai80.PrimitiveAtom<AttachmentRequest | undefined> & {
|
|
19
19
|
init: AttachmentRequest | undefined;
|
|
20
20
|
};
|
|
21
21
|
//#endregion
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { ChatState } from "../../types/custservice-types.js";
|
|
2
2
|
import { AttachmentRequest, CustServiceConversationMessages } from "@spiffy-ai/commerce-api-client";
|
|
3
|
-
import * as
|
|
3
|
+
import * as jotai85 from "jotai";
|
|
4
4
|
|
|
5
5
|
//#region src/atoms/org/customerService.d.ts
|
|
6
|
-
declare const isBusinessHoursAtom:
|
|
6
|
+
declare const isBusinessHoursAtom: jotai85.PrimitiveAtom<boolean> & {
|
|
7
7
|
init: boolean;
|
|
8
8
|
};
|
|
9
|
-
declare const isCustomerServiceOpenAtom:
|
|
9
|
+
declare const isCustomerServiceOpenAtom: jotai85.PrimitiveAtom<boolean> & {
|
|
10
10
|
init: boolean;
|
|
11
11
|
};
|
|
12
|
-
declare const customerServiceResponseAtom:
|
|
12
|
+
declare const customerServiceResponseAtom: jotai85.PrimitiveAtom<CustServiceConversationMessages | undefined> & {
|
|
13
13
|
init: CustServiceConversationMessages | undefined;
|
|
14
14
|
};
|
|
15
|
-
declare const customerServiceChatStateAtom:
|
|
15
|
+
declare const customerServiceChatStateAtom: jotai85.PrimitiveAtom<ChatState | undefined> & {
|
|
16
16
|
init: ChatState | undefined;
|
|
17
17
|
};
|
|
18
|
-
declare const customerServiceAttachment:
|
|
18
|
+
declare const customerServiceAttachment: jotai85.PrimitiveAtom<AttachmentRequest | undefined> & {
|
|
19
19
|
init: AttachmentRequest | undefined;
|
|
20
20
|
};
|
|
21
21
|
//#endregion
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ColorMapping } from "../../application/models/colorsConfig.cjs";
|
|
2
2
|
import { FrontendConfig } from "../../application/models/frontendConfig.cjs";
|
|
3
3
|
import { FeatureFlagContextType } from "../../contexts/featureFlagServiceContext/featureFlagServiceContext.cjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as jotai85 from "jotai";
|
|
5
5
|
|
|
6
6
|
//#region src/atoms/org/graphqlConfig.d.ts
|
|
7
|
-
declare const internalGraphQLColorsConfigAtom:
|
|
7
|
+
declare const internalGraphQLColorsConfigAtom: jotai85.PrimitiveAtom<ColorMapping | undefined> & {
|
|
8
8
|
init: ColorMapping | undefined;
|
|
9
9
|
};
|
|
10
|
-
declare const featureFlagServiceAtom:
|
|
10
|
+
declare const featureFlagServiceAtom: jotai85.PrimitiveAtom<FeatureFlagContextType | undefined> & {
|
|
11
11
|
init: FeatureFlagContextType | undefined;
|
|
12
12
|
};
|
|
13
|
-
declare const frontendConfigAtom:
|
|
13
|
+
declare const frontendConfigAtom: jotai85.WritableAtom<FrontendConfig | undefined, [value: FrontendConfig | undefined], void>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { featureFlagServiceAtom, frontendConfigAtom, internalGraphQLColorsConfigAtom };
|
|
16
16
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ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cgfCB1bmRlZmluZWRdLCB2b2lkPjtcbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBSUEsSUFBVyxrQ0FBdUI7Q0FBQTtPQUFBO09BQUEsUUFBQTtPQUFBO0NBQUE7QUFDbEMsSUFBQyx5QkFBQTtDQUFBO09BQUE7T0FBQSxRQUFBO09BQUE7Q0FBQTtBQUNELElBQVcscUJBQXFCO0NBQUM7T0FBVztPQUFzQjtPQUFzQixRQUFRO0NBQWEifQ==
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ColorMapping } from "../../application/models/colorsConfig.js";
|
|
2
2
|
import { FrontendConfig } from "../../application/models/frontendConfig.js";
|
|
3
3
|
import { FeatureFlagContextType } from "../../contexts/featureFlagServiceContext/featureFlagServiceContext.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as jotai90 from "jotai";
|
|
5
5
|
|
|
6
6
|
//#region src/atoms/org/graphqlConfig.d.ts
|
|
7
|
-
declare const internalGraphQLColorsConfigAtom:
|
|
7
|
+
declare const internalGraphQLColorsConfigAtom: jotai90.PrimitiveAtom<ColorMapping | undefined> & {
|
|
8
8
|
init: ColorMapping | undefined;
|
|
9
9
|
};
|
|
10
|
-
declare const featureFlagServiceAtom:
|
|
10
|
+
declare const featureFlagServiceAtom: jotai90.PrimitiveAtom<FeatureFlagContextType | undefined> & {
|
|
11
11
|
init: FeatureFlagContextType | undefined;
|
|
12
12
|
};
|
|
13
|
-
declare const frontendConfigAtom:
|
|
13
|
+
declare const frontendConfigAtom: jotai90.WritableAtom<FrontendConfig | undefined, [value: FrontendConfig | undefined], void>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { featureFlagServiceAtom, frontendConfigAtom, internalGraphQLColorsConfigAtom };
|
|
16
16
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3JhcGhxbENvbmZpZy5kLnRzIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIi4uLy4uL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UFXLGtDQUF1QjtDQUFBO09BQUE7T0FBQSxRQUFBO09BQUE7Q0FBQTtBQUNsQyxJQUFDLHlCQUFBO0NBQUE7T0FBQTtPQUFBLFFBQUE7T0FBQTtDQUFBO0FBQ0QsSUFBVyxxQkFBcUI7Q0FBQztPQUFXO09BQXNCO09BQXNCLFFBQVE7Q0FBYSJ9
|
package/dist/atoms/org/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_orgAnalyticsConfig = require('./orgAnalyticsConfig.cjs');
|
|
2
|
-
const require_customerService = require('./customerService.cjs');
|
|
3
2
|
const require_graphqlConfig = require('./graphqlConfig.cjs');
|
|
3
|
+
const require_customerService = require('./customerService.cjs');
|
|
4
4
|
const require_newOrgConfigAtom = require('./newOrgConfigAtom.cjs');
|
|
5
5
|
|
|
6
6
|
exports.customerServiceAttachment = require_customerService.customerServiceAttachment;
|
package/dist/atoms/org/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { orgAnalyticsAmplitudeConfigAtom, orgAnalyticsConfigAtom, orgAnalyticsCustomerServiceConfigAtom, orgAnalyticsGoogleAnalyticsConfigAtom } from "./orgAnalyticsConfig.js";
|
|
2
|
-
import { customerServiceAttachment, customerServiceChatStateAtom, customerServiceResponseAtom, isBusinessHoursAtom, isCustomerServiceOpenAtom } from "./customerService.js";
|
|
3
2
|
import { featureFlagServiceAtom, frontendConfigAtom, internalGraphQLColorsConfigAtom } from "./graphqlConfig.js";
|
|
3
|
+
import { customerServiceAttachment, customerServiceChatStateAtom, customerServiceResponseAtom, isBusinessHoursAtom, isCustomerServiceOpenAtom } from "./customerService.js";
|
|
4
4
|
import { newOrgConfigAtom } from "./newOrgConfigAtom.js";
|
|
5
5
|
|
|
6
6
|
export { customerServiceAttachment, customerServiceChatStateAtom, customerServiceResponseAtom, featureFlagServiceAtom, frontendConfigAtom, internalGraphQLColorsConfigAtom, isBusinessHoursAtom, isCustomerServiceOpenAtom, newOrgConfigAtom, orgAnalyticsAmplitudeConfigAtom, orgAnalyticsConfigAtom, orgAnalyticsCustomerServiceConfigAtom, orgAnalyticsGoogleAnalyticsConfigAtom };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GraphQlConfigValues } from "../../contexts/graphqlContext/graphqlContext.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai88 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/org/newOrgConfigAtom.d.ts
|
|
5
|
-
declare const newOrgConfigAtom:
|
|
5
|
+
declare const newOrgConfigAtom: jotai88.PrimitiveAtom<GraphQlConfigValues | null> & {
|
|
6
6
|
init: GraphQlConfigValues | null;
|
|
7
7
|
};
|
|
8
8
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GraphQlConfigValues } from "../../contexts/graphqlContext/graphqlContext.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai80 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/org/newOrgConfigAtom.d.ts
|
|
5
|
-
declare const newOrgConfigAtom:
|
|
5
|
+
declare const newOrgConfigAtom: jotai80.PrimitiveAtom<GraphQlConfigValues | null> & {
|
|
6
6
|
init: GraphQlConfigValues | null;
|
|
7
7
|
};
|
|
8
8
|
//#endregion
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { OrgAnalyticsAmplitudeConfig, OrgAnalyticsConfig, OrgAnalyticsCustomerServiceConfig, OrgAnalyticsGoogleAnalyticsConfig } from "../../application/models/api/orgAnalyticsConfig.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai89 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/org/orgAnalyticsConfig.d.ts
|
|
5
|
-
declare const orgAnalyticsConfigAtom:
|
|
6
|
-
declare const orgAnalyticsAmplitudeConfigAtom:
|
|
7
|
-
declare const orgAnalyticsCustomerServiceConfigAtom:
|
|
8
|
-
declare const orgAnalyticsGoogleAnalyticsConfigAtom:
|
|
5
|
+
declare const orgAnalyticsConfigAtom: jotai89.WritableAtom<OrgAnalyticsConfig | undefined, [value: OrgAnalyticsConfig], void>;
|
|
6
|
+
declare const orgAnalyticsAmplitudeConfigAtom: jotai89.Atom<OrgAnalyticsAmplitudeConfig | undefined>;
|
|
7
|
+
declare const orgAnalyticsCustomerServiceConfigAtom: jotai89.Atom<OrgAnalyticsCustomerServiceConfig | undefined>;
|
|
8
|
+
declare const orgAnalyticsGoogleAnalyticsConfigAtom: jotai89.Atom<OrgAnalyticsGoogleAnalyticsConfig | undefined>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { orgAnalyticsAmplitudeConfigAtom, orgAnalyticsConfigAtom, orgAnalyticsCustomerServiceConfigAtom, orgAnalyticsGoogleAnalyticsConfigAtom };
|
|
11
11
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JnQW5hbHl0aWNzQ29uZmlnLmQuY3RzIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hdG9tcy9vcmcvb3JnQW5hbHl0aWNzQ29uZmlnLmQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgT3JnQW5hbHl0aWNzQW1wbGl0dWRlQ29uZmlnLCBPcmdBbmFseXRpY3NDb25maWcsIE9yZ0FuYWx5dGljc0N1c3RvbWVyU2VydmljZUNvbmZpZywgT3JnQW5hbHl0aWNzR29vZ2xlQW5hbHl0aWNzQ29uZmlnIH0gZnJvbSAnc3JjL2FwcGxpY2F0aW9uL21vZGVscy9hcGkvb3JnQW5hbHl0aWNzQ29uZmlnJztcbmV4cG9ydCBkZWNsYXJlIGNvbnN0IG9yZ0FuYWx5dGljc0NvbmZpZ0F0b206IGltcG9ydChcImpvdGFpXCIpLldyaXRhYmxlQXRvbTxPcmdBbmFseXRpY3NDb25maWcgfCB1bmRlZmluZWQsIFt2YWx1ZTogT3JnQW5hbHl0aWNzQ29uZmlnXSwgdm9pZD47XG5leHBvcnQgZGVjbGFyZSBjb25zdCBvcmdBbmFseXRpY3NBbXBsaXR1ZGVDb25maWdBdG9tOiBpbXBvcnQoXCJqb3RhaVwiKS5BdG9tPE9yZ0FuYWx5dGljc0FtcGxpdHVkZUNvbmZpZyB8IHVuZGVmaW5lZD47XG5leHBvcnQgZGVjbGFyZSBjb25zdCBvcmdBbmFseXRpY3NDdXN0b21lclNlcnZpY2VDb25maWdBdG9tOiBpbXBvcnQoXCJqb3RhaVwiKS5BdG9tPE9yZ0FuYWx5dGljc0N1c3RvbWVyU2VydmljZUNvbmZpZyB8IHVuZGVmaW5lZD47XG5leHBvcnQgZGVjbGFyZSBjb25zdCBvcmdBbmFseXRpY3NHb29nbGVBbmFseXRpY3NDb25maWdBdG9tOiBpbXBvcnQoXCJqb3RhaVwiKS5BdG9tPE9yZ0FuYWx5dGljc0dvb2dsZUFuYWx5dGljc0NvbmZpZyB8IHVuZGVmaW5lZD47XG4iXSwibWFwcGluZ3MiOiI7Ozs7QUFFQSxJQUFXLHlCQUF5QjtDQUFDO09BQVc7T0FBMEI7T0FBMEIsUUFBUTtDQUFPO0FBQ25ILElBQVcsa0NBQWtDO0NBQUM7T0FBVztPQUFtQyxRQUFRO0NBQUs7QUFDekcsSUFBVyx3Q0FBd0M7Q0FBQztPQUFXO09BQXlDLFFBQVE7Q0FBSyJ9
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { OrgAnalyticsAmplitudeConfig, OrgAnalyticsConfig, OrgAnalyticsCustomerServiceConfig, OrgAnalyticsGoogleAnalyticsConfig } from "../../application/models/api/orgAnalyticsConfig.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai81 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/org/orgAnalyticsConfig.d.ts
|
|
5
|
-
declare const orgAnalyticsConfigAtom:
|
|
6
|
-
declare const orgAnalyticsAmplitudeConfigAtom:
|
|
7
|
-
declare const orgAnalyticsCustomerServiceConfigAtom:
|
|
8
|
-
declare const orgAnalyticsGoogleAnalyticsConfigAtom:
|
|
5
|
+
declare const orgAnalyticsConfigAtom: jotai81.WritableAtom<OrgAnalyticsConfig | undefined, [value: OrgAnalyticsConfig], void>;
|
|
6
|
+
declare const orgAnalyticsAmplitudeConfigAtom: jotai81.Atom<OrgAnalyticsAmplitudeConfig | undefined>;
|
|
7
|
+
declare const orgAnalyticsCustomerServiceConfigAtom: jotai81.Atom<OrgAnalyticsCustomerServiceConfig | undefined>;
|
|
8
|
+
declare const orgAnalyticsGoogleAnalyticsConfigAtom: jotai81.Atom<OrgAnalyticsGoogleAnalyticsConfig | undefined>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { orgAnalyticsAmplitudeConfigAtom, orgAnalyticsConfigAtom, orgAnalyticsCustomerServiceConfigAtom, orgAnalyticsGoogleAnalyticsConfigAtom };
|
|
11
11
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JnQW5hbHl0aWNzQ29uZmlnLmQudHMiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2F0b21zL29yZy9vcmdBbmFseXRpY3NDb25maWcuZC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBPcmdBbmFseXRpY3NBbXBsaXR1ZGVDb25maWcsIE9yZ0FuYWx5dGljc0NvbmZpZywgT3JnQW5hbHl0aWNzQ3VzdG9tZXJTZXJ2aWNlQ29uZmlnLCBPcmdBbmFseXRpY3NHb29nbGVBbmFseXRpY3NDb25maWcgfSBmcm9tICdzcmMvYXBwbGljYXRpb24vbW9kZWxzL2FwaS9vcmdBbmFseXRpY3NDb25maWcnO1xuZXhwb3J0IGRlY2xhcmUgY29uc3Qgb3JnQW5hbHl0aWNzQ29uZmlnQXRvbTogaW1wb3J0KFwiam90YWlcIikuV3JpdGFibGVBdG9tPE9yZ0FuYWx5dGljc0NvbmZpZyB8IHVuZGVmaW5lZCwgW3ZhbHVlOiBPcmdBbmFseXRpY3NDb25maWddLCB2b2lkPjtcbmV4cG9ydCBkZWNsYXJlIGNvbnN0IG9yZ0FuYWx5dGljc0FtcGxpdHVkZUNvbmZpZ0F0b206IGltcG9ydChcImpvdGFpXCIpLkF0b208T3JnQW5hbHl0aWNzQW1wbGl0dWRlQ29uZmlnIHwgdW5kZWZpbmVkPjtcbmV4cG9ydCBkZWNsYXJlIGNvbnN0IG9yZ0FuYWx5dGljc0N1c3RvbWVyU2VydmljZUNvbmZpZ0F0b206IGltcG9ydChcImpvdGFpXCIpLkF0b208T3JnQW5hbHl0aWNzQ3VzdG9tZXJTZXJ2aWNlQ29uZmlnIHwgdW5kZWZpbmVkPjtcbmV4cG9ydCBkZWNsYXJlIGNvbnN0IG9yZ0FuYWx5dGljc0dvb2dsZUFuYWx5dGljc0NvbmZpZ0F0b206IGltcG9ydChcImpvdGFpXCIpLkF0b208T3JnQW5hbHl0aWNzR29vZ2xlQW5hbHl0aWNzQ29uZmlnIHwgdW5kZWZpbmVkPjtcbiJdLCJtYXBwaW5ncyI6Ijs7OztBQUVBLElBQVcseUJBQXlCO0NBQUM7T0FBVztPQUEwQjtPQUEwQixRQUFRO0NBQU87QUFDbkgsSUFBVyxrQ0FBa0M7Q0FBQztPQUFXO09BQW1DLFFBQVE7Q0FBSztBQUN6RyxJQUFXLHdDQUF3QztDQUFDO09BQVc7T0FBeUMsUUFBUTtDQUFLIn0=
|
|
@@ -10,8 +10,8 @@ const require_productFilters = require('./productFilters.cjs');
|
|
|
10
10
|
const require_atoms_search_types = require('./types.cjs');
|
|
11
11
|
const require_productSorter = require('./productSorter.cjs');
|
|
12
12
|
let __spiffy_ai_commerce_api_client = require("@spiffy-ai/commerce-api-client");
|
|
13
|
-
let uuid = require("uuid");
|
|
14
13
|
let jotai = require("jotai");
|
|
14
|
+
let uuid = require("uuid");
|
|
15
15
|
|
|
16
16
|
//#region src/atoms/search/chatSearch.ts
|
|
17
17
|
const chatSearchStateAtom = (0, jotai.atom)("entrypoint");
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ProductResponseAttributes } from "../../application/models/api/response.cjs";
|
|
2
2
|
import { Message } from "../../application/models/message.cjs";
|
|
3
3
|
import { ChatSearchFilter, ChatSearchStateType, ProductSorting } from "./types.cjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as jotai51 from "jotai";
|
|
5
5
|
|
|
6
6
|
//#region src/atoms/search/chatSearch.d.ts
|
|
7
|
-
declare const chatSearchStateAtom:
|
|
7
|
+
declare const chatSearchStateAtom: jotai51.PrimitiveAtom<ChatSearchStateType> & {
|
|
8
8
|
init: ChatSearchStateType;
|
|
9
9
|
};
|
|
10
|
-
declare const chatSearchHasProductsAtom:
|
|
10
|
+
declare const chatSearchHasProductsAtom: jotai51.PrimitiveAtom<boolean> & {
|
|
11
11
|
init: boolean;
|
|
12
12
|
};
|
|
13
|
-
declare const chatSearchProductSortingAtom:
|
|
13
|
+
declare const chatSearchProductSortingAtom: jotai51.PrimitiveAtom<ProductSorting> & {
|
|
14
14
|
init: ProductSorting;
|
|
15
15
|
};
|
|
16
16
|
type ChatSearchTurn = {
|
|
@@ -21,7 +21,7 @@ type ChatSearchTurn = {
|
|
|
21
21
|
filterList: string[];
|
|
22
22
|
messages: Message[];
|
|
23
23
|
};
|
|
24
|
-
declare const chatSearchIsLoadingAtom:
|
|
24
|
+
declare const chatSearchIsLoadingAtom: jotai51.PrimitiveAtom<boolean> & {
|
|
25
25
|
init: boolean;
|
|
26
26
|
};
|
|
27
27
|
type SelectedChatSearchFilterOption = {
|
|
@@ -30,21 +30,21 @@ type SelectedChatSearchFilterOption = {
|
|
|
30
30
|
filterId: string;
|
|
31
31
|
filterItemId: string;
|
|
32
32
|
};
|
|
33
|
-
declare const selectedFilterOptionsAtom:
|
|
33
|
+
declare const selectedFilterOptionsAtom: jotai51.PrimitiveAtom<SelectedChatSearchFilterOption[]> & {
|
|
34
34
|
init: SelectedChatSearchFilterOption[];
|
|
35
35
|
};
|
|
36
|
-
declare const additiveDynamicFiltersAtom:
|
|
36
|
+
declare const additiveDynamicFiltersAtom: jotai51.Atom<boolean>;
|
|
37
37
|
declare const createChatSearchFilterOption: (filterId: string, filterItemId: string, displayName: string) => SelectedChatSearchFilterOption;
|
|
38
|
-
declare const chatSearchParamsAtom:
|
|
38
|
+
declare const chatSearchParamsAtom: jotai51.WritableAtom<{
|
|
39
39
|
id: string | null;
|
|
40
40
|
query: string | null;
|
|
41
41
|
}, [value: {
|
|
42
42
|
id: string | null;
|
|
43
43
|
query: string | null;
|
|
44
44
|
}], void>;
|
|
45
|
-
declare const chatSearchQueryAtom:
|
|
46
|
-
declare const chatSearchIdAtom:
|
|
47
|
-
declare const ChatSearchTurnAtom:
|
|
45
|
+
declare const chatSearchQueryAtom: jotai51.WritableAtom<string | null, [value: string | null], void>;
|
|
46
|
+
declare const chatSearchIdAtom: jotai51.WritableAtom<string | null, [value: string | null], void>;
|
|
47
|
+
declare const ChatSearchTurnAtom: jotai51.Atom<{
|
|
48
48
|
productList: {
|
|
49
49
|
averageRating?: number | undefined;
|
|
50
50
|
colors?: string[] | undefined;
|
|
@@ -74,7 +74,7 @@ declare const ChatSearchTurnAtom: jotai38.Atom<{
|
|
|
74
74
|
filterList: string[];
|
|
75
75
|
messages: Message[];
|
|
76
76
|
} | null>;
|
|
77
|
-
declare const chatSearchProducts:
|
|
77
|
+
declare const chatSearchProducts: jotai51.Atom<{
|
|
78
78
|
averageRating?: number | undefined;
|
|
79
79
|
colors?: string[] | undefined;
|
|
80
80
|
description?: string | undefined;
|
|
@@ -97,19 +97,19 @@ declare const chatSearchProducts: jotai38.Atom<{
|
|
|
97
97
|
title: string;
|
|
98
98
|
url: string;
|
|
99
99
|
}[]>;
|
|
100
|
-
declare const chatSearchFiltersAtom:
|
|
100
|
+
declare const chatSearchFiltersAtom: jotai51.Atom<ChatSearchFilter[]>;
|
|
101
101
|
declare const setSearchParams: (query: string) => void;
|
|
102
|
-
declare const getSearchParamsAtom:
|
|
102
|
+
declare const getSearchParamsAtom: jotai51.Atom<{
|
|
103
103
|
es: string | null;
|
|
104
104
|
esq: string | null;
|
|
105
105
|
}>;
|
|
106
|
-
declare const initiateChatSearchAtom:
|
|
106
|
+
declare const initiateChatSearchAtom: jotai51.WritableAtom<null, [query: string], void> & {
|
|
107
107
|
init: null;
|
|
108
108
|
};
|
|
109
|
-
declare const handleSearchResultsAtom:
|
|
109
|
+
declare const handleSearchResultsAtom: jotai51.WritableAtom<null, [message: Message | undefined], void> & {
|
|
110
110
|
init: null;
|
|
111
111
|
};
|
|
112
|
-
declare const setChatSearchParamsAtom:
|
|
112
|
+
declare const setChatSearchParamsAtom: jotai51.WritableAtom<null, [query: string], void> & {
|
|
113
113
|
init: null;
|
|
114
114
|
};
|
|
115
115
|
//#endregion
|