@envive-ai/react-hooks 0.3.16 → 0.3.17
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/atoms/app/index.d.cts +7 -7
- package/dist/atoms/app/index.d.ts +6 -6
- package/dist/atoms/chat/chatState.d.cts +18 -18
- package/dist/atoms/chat/chatState.d.ts +17 -17
- 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 +2 -2
- package/dist/atoms/chat/index.d.ts +3 -3
- package/dist/atoms/chat/index.js +1 -1
- package/dist/atoms/chat/lastMessage.d.cts +2 -2
- package/dist/atoms/chat/messageQueue.d.cts +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/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/envive/enviveConfig.d.cts +13 -13
- 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.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/widget/chatPreviewLoading.d.cts +2 -2
- package/dist/contexts/enviveContext/types.d.cts +1 -1
- package/dist/contexts/enviveContext/types.d.ts +1 -1
- package/dist/contexts/newOrgConfigContext/newOrgConfigContext.cjs +1 -1
- package/dist/contexts/newOrgConfigContext/newOrgConfigContext.js +1 -1
- package/dist/contexts/salesAgentContext/chatAPI.cjs +2 -2
- package/dist/contexts/salesAgentContext/chatAPI.js +2 -2
- package/dist/contexts/salesAgentContext/salesAgentService.cjs +1 -1
- package/dist/contexts/salesAgentContext/salesAgentService.js +1 -1
- package/dist/contexts/searchContext/searchContext.cjs +1 -1
- package/dist/contexts/searchContext/searchContext.js +1 -1
- 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/hooks/ChatToggle/useChatToggle.cjs +1 -1
- package/dist/hooks/ChatToggle/useChatToggle.js +1 -1
- package/dist/hooks/Search/useSearch.cjs +3 -3
- package/dist/hooks/Search/useSearch.js +3 -3
- package/dist/hooks/utils.d.cts +1 -1
- package/dist/hooks/utils.d.ts +1 -1
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ import { VariantInfo } from "../../application/models/variantInfo/variantInfo.cj
|
|
|
2
2
|
import { hasParsedVariantInfoAtom, pageUserEventAtom, pageVariantInfoAtom, supportedEventAtom, variantInfoAtom } from "./variant.cjs";
|
|
3
3
|
import { UserIdentityContextType } from "../../contexts/userIdentityContext/userIdentityContext.cjs";
|
|
4
4
|
import { ContextEnvEnum, ContextSourceEnum } from "@spiffy-ai/commerce-api-client";
|
|
5
|
-
import * as
|
|
5
|
+
import * as jotai15 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: jotai15.WritableAtom<string, [value: string], void>;
|
|
19
|
+
declare const userIdentityAtom: jotai15.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: jotai15.Atom<ContextSourceEnum>;
|
|
23
|
+
declare const chatIdAtom: jotai15.WritableAtom<string, [string | typeof jotai_utils0.RESET | ((prev: string) => string | typeof jotai_utils0.RESET)], void>;
|
|
24
|
+
declare const appDetailsAtom: jotai15.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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC5jdHMiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2F0b21zL2FwcC9pbmRleC5kLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbnRleHRFbnZFbnVtLCBDb250ZXh0U291cmNlRW51bSB9IGZyb20gJ0BzcGlmZnktYWkvY29tbWVyY2UtYXBpLWNsaWVudCc7XG5pbXBvcnQgeyBWYXJpYW50SW5mbyB9IGZyb20gJ3NyYy9h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NvbnN0IGNoYXRJZEF0b206IGltcG9ydChcImpvdGFpXCIpLldyaXRhYmxlQXRvbTxzdHJpbmcsIFtzdHJpbmcgfCB0eXBlb2YgaW1wb3J0KFwiam90YWkvdXRpbHNcIikuUkVTRVQgfCAoKHByZXY6IHN0cmluZykgPT4gc3RyaW5nIHwgdHlwZW9mIGltcG9ydChcImpvdGFpL3V0aWxzXCIpLlJFU0VUKV0sIHZvaWQ+
|
|
27
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC5jdHMiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2F0b21zL2FwcC9pbmRleC5kLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbnRleHRFbnZFbnVtLCBDb250ZXh0U291cmNlRW51bSB9IGZyb20gJ0BzcGlmZnktYWkvY29tbWVyY2UtYXBpLWNsaWVudCc7XG5pbXBvcnQgeyBWYXJpYW50SW5mbyB9IGZyb20gJ3NyYy9hcHBsaWNhdGlvbi9tb2RlbHMnO1xuaW1wb3J0IHsgVXNlcklkZW50aXR5Q29udGV4dFR5cGUgfSBmcm9tICdzcmMvY29udGV4dHMvdXNlcklkZW50aXR5Q29udGV4dC91c2VySWRlbnRpdHlDb250ZXh0JztcbmV4cG9ydCBpbnRlcmZhY2UgQXBwRGV0YWlscyB7XG4gICAgb3JnSWQ6IHN0cmluZztcbiAgICBvcmdTaG9ydE5hbWU6IHN0cmluZztcbiAgICBjaGF0SWQ6IHN0cmluZztcbiAgICB1c2VySWQ6IHN0cmluZztcbiAgICBzb3VyY2U6IENvbnRleHRTb3VyY2VFbnVtO1xuICAgIGVudjogQ29udGV4dEVudkVudW07XG4gICAgdmFyaWFudEluZm86IFZhcmlhbnRJbmZvO1xufVxuZXhwb3J0IHsgcGFnZVVzZXJFdmVudEF0b20sIHBhZ2VWYXJpYW50SW5mb0F0b20sIHZhcmlhbn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tDQUFBO09BQUE7T0FBQSxRQUFBO09BQUE7Q0FBQTtBQUM3QixJQUFXLGdCQUFZO0NBQUE7T0FBQTtPQUFBLFFBQUE7Q0FBQTtBQUN2QixJQUFXLGFBQWE7Q0FBQztPQUFHLGFBQUE7T0FBQSxhQUFBO09BQUEsUUFBQTtDQUFBO0FBQzVCLElBQUEsaUJBQUE7Q0FBQTtPQUFBO09BQUEsUUFBQTtDQUFBIn0=
|
|
@@ -2,7 +2,7 @@ import { VariantInfo } from "../../application/models/variantInfo/variantInfo.js
|
|
|
2
2
|
import { hasParsedVariantInfoAtom, pageUserEventAtom, pageVariantInfoAtom, supportedEventAtom, variantInfoAtom } from "./variant.js";
|
|
3
3
|
import { UserIdentityContextType } from "../../contexts/userIdentityContext/userIdentityContext.js";
|
|
4
4
|
import { ContextEnvEnum, ContextSourceEnum } from "@spiffy-ai/commerce-api-client";
|
|
5
|
-
import * as
|
|
5
|
+
import * as jotai0 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: jotai0.WritableAtom<string, [value: string], void>;
|
|
19
|
+
declare const userIdentityAtom: jotai0.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: jotai0.Atom<ContextSourceEnum>;
|
|
23
|
+
declare const chatIdAtom: jotai0.WritableAtom<string, [string | typeof jotai_utils0.RESET | ((prev: string) => string | typeof jotai_utils0.RESET)], void>;
|
|
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
27
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsIm5hbWVzIjpbXSwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYXRvbXMvYXBwL2luZGV4LmQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29udGV4dEVudkVudW0sIENvbnRleHRTb3VyY2VFbnVtIH0gZnJvbSAnQHNwaWZmeS1haS9jb21tZXJjZS1hcGktY2xpZW50JztcbmltcG9ydCB7IFZhcmlhbnRJbmZvIH0gZnJvbSAnc3JjL2FwcGxpY2F0aW9uL21vZGVscyc7XG5pbXBvcnQgeyBVc2VySWRlbnRpdHlDb250ZXh0VHlwZSB9IGZyb20gJ3NyYy9jb250ZXh0cy91c2VySWRlbnRpdHlDb250ZXh0L3VzZXJJZGVudGl0eUNvbnRleHQnO1xuZXhwb3J0IGludGVyZmFjZSBBcHBEZXRhaWxzIHtcbiAgICBvcmdJZDogc3RyaW5nO1xuICAgIG9yZ1Nob3J0TmFtZTogc3RyaW5nO1xuICAgIGNoYXRJZDogc3RyaW5nO1xuICAgIHVzZXJJZDogc3RyaW5nO1xuICAgIHNvdXJjZTogQ29udGV4dFNvdXJjZUVudW07XG4gICAgZW52OiBDb250ZXh0RW52RW51bTtcbiAgICB2YXJpYW50SW5mbzogVmFyaWFudEluZm87XG59XG5leHBvcnQgeyBwYWdlVXNlckV2ZW50QXRvbSwgcGFnZVZhcmlhbnRJbmZvQXRvbSwgdmFyaWFudEluZm9BdG9tLCBoYXNQYXJzZWRWYXJpYW50SW5mb0F0b20sIHN1cHB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BQVk7Q0FBQTtPQUFBO09BQUEsT0FBQTtDQUFBO0FBQ3ZCLElBQVcsYUFBYTtDQUFDO09BQUcsYUFBQTtPQUFBLGFBQUE7T0FBQSxPQUFBO0NBQUE7QUFDNUIsSUFBQSxpQkFBQTtDQUFBO09BQUE7T0FBQSxPQUFBO0NBQUEifQ==
|
|
@@ -4,58 +4,58 @@ import { Message } from "../../application/models/message.cjs";
|
|
|
4
4
|
import { FormSubmittedAttributes, UserEvent } from "../../application/models/api/userEvent.cjs";
|
|
5
5
|
import { Suggestion } from "../../application/models/api/suggestion.cjs";
|
|
6
6
|
import { SpiffyMetricsEventName } from "../../services/amplitudeService/eventNames.cjs";
|
|
7
|
-
import * as
|
|
7
|
+
import * as jotai0 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: jotai0.PrimitiveAtom<boolean> & {
|
|
12
12
|
init: boolean;
|
|
13
13
|
};
|
|
14
|
-
declare const replyEventCategoryAtom:
|
|
14
|
+
declare const replyEventCategoryAtom: jotai0.PrimitiveAtom<UserEventCategory> & {
|
|
15
15
|
init: UserEventCategory;
|
|
16
16
|
};
|
|
17
|
-
declare const userQueryAtom:
|
|
17
|
+
declare const userQueryAtom: jotai0.PrimitiveAtom<string | undefined> & {
|
|
18
18
|
init: string | undefined;
|
|
19
19
|
};
|
|
20
|
-
declare const suggestionAtom:
|
|
20
|
+
declare const suggestionAtom: jotai0.PrimitiveAtom<Suggestion | undefined> & {
|
|
21
21
|
init: Suggestion | undefined;
|
|
22
22
|
};
|
|
23
|
-
declare const askQuestionBtnClickedAtom:
|
|
23
|
+
declare const askQuestionBtnClickedAtom: jotai0.PrimitiveAtom<boolean> & {
|
|
24
24
|
init: boolean;
|
|
25
25
|
};
|
|
26
|
-
declare const messagesAtom:
|
|
26
|
+
declare const messagesAtom: jotai0.PrimitiveAtom<Message[][]> & {
|
|
27
27
|
init: Message[][];
|
|
28
28
|
};
|
|
29
|
-
declare const userEventsAtom:
|
|
29
|
+
declare const userEventsAtom: jotai0.PrimitiveAtom<UserEvent[]> & {
|
|
30
30
|
init: UserEvent[];
|
|
31
31
|
};
|
|
32
|
-
declare const suggestionsAtom:
|
|
32
|
+
declare const suggestionsAtom: jotai0.PrimitiveAtom<Suggestion[]> & {
|
|
33
33
|
init: Suggestion[];
|
|
34
34
|
};
|
|
35
|
-
declare const suggestionsLoadingAtom:
|
|
35
|
+
declare const suggestionsLoadingAtom: jotai0.PrimitiveAtom<boolean> & {
|
|
36
36
|
init: boolean;
|
|
37
37
|
};
|
|
38
|
-
declare const responseStreamingAtom:
|
|
38
|
+
declare const responseStreamingAtom: jotai0.PrimitiveAtom<boolean> & {
|
|
39
39
|
init: boolean;
|
|
40
40
|
};
|
|
41
|
-
declare const pendingResponseAtom:
|
|
41
|
+
declare const pendingResponseAtom: jotai0.PrimitiveAtom<boolean> & {
|
|
42
42
|
init: boolean;
|
|
43
43
|
};
|
|
44
|
-
declare const initializedAtom:
|
|
44
|
+
declare const initializedAtom: jotai0.PrimitiveAtom<boolean> & {
|
|
45
45
|
init: boolean;
|
|
46
46
|
};
|
|
47
|
-
declare const chatIsOpenAtom:
|
|
47
|
+
declare const chatIsOpenAtom: jotai0.PrimitiveAtom<boolean> & {
|
|
48
48
|
init: boolean;
|
|
49
49
|
};
|
|
50
|
-
declare const requestFailureAtom:
|
|
50
|
+
declare const requestFailureAtom: jotai0.PrimitiveAtom<boolean> & {
|
|
51
51
|
init: boolean;
|
|
52
52
|
};
|
|
53
|
-
declare const formSubmitAtom:
|
|
53
|
+
declare const formSubmitAtom: jotai0.PrimitiveAtom<FormSubmittedAttributes | undefined> & {
|
|
54
54
|
init: FormSubmittedAttributes | undefined;
|
|
55
55
|
};
|
|
56
|
-
declare const chatOnToggleAtom:
|
|
56
|
+
declare const chatOnToggleAtom: jotai0.WritableAtom<null, [triggerLocation?: ChatElementDisplayLocation | ChatElementDisplayLocationV3 | undefined, track?: ((eventName: SpiffyMetricsEventName, eventProps?: Record<string, unknown>) => void) | undefined], void> & {
|
|
57
57
|
init: null;
|
|
58
58
|
};
|
|
59
59
|
//#endregion
|
|
60
60
|
export { askQuestionBtnClickedAtom, chatIsOpenAtom, chatOnToggleAtom, formSubmitAtom, initializedAtom, messagesAtom, pendingResponseAtom, replyEventCategoryAtom, requestFailureAtom, responseStreamingAtom, suggestionAtom, suggestionsAtom, suggestionsLoadingAtom, userEventsAtom, userHasRepliedAtom, userQueryAtom };
|
|
61
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdFN0YXRlLmQuY3RzIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hdG9tcy9jaGF0L2NoYXRTdGF0ZS5kLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFVzZXJFdmVudENhdGVnb3J5IH0gZnJvbSAnQHNwaWZmeS1haS9jb21tZXJjZS1hcGktY2xpZW50L2Rpc3QvbW9kZWxzL1VzZXJFdmVudENhdGVnb3J5JztcbmltcG9ydCB7IFNwaWZmeU1ldHJpY3NFdmVudE5hbWUgfSBmcm9tICdzcmMvc2VydmljZXMvYW1wbGl0dWRlU2VydmljZS9hbXBsaXR1ZGVTZXJ2aWNlJztcbmltcG9ydCB7IENoYXRFbGVtZW50RGlzcGxheUxvY2F0aW9uVjMsIEZvcm1TdWJtaXR0ZWRBdHRyaWJ1dGVzLCBNZXNzYWdlLCBTdWdnZXN0aW9uLCBVc2VyRXZlbnQgfSBmcm9tICdzcmMvYXBwbGljYXRpb24vbW9kZWxzJztcbmltcG9ydCB7IENoYXRFbGVtZW50RGlzcGxheUxvY2F0aW9uIH0gZnJvbSAnc3JjL2FwcGxpY2F0aW9uL21vZGVscy9jaGF0RWx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BQUNELElBQVcsZ0JBQWdCLENBQUMsVUFBVSxPQUFPLGNBQWM7QUFDM0QsSUFBVyxpQkFBZ0I7Q0FBQTtPQUFBO09BQUEsT0FBQTtPQUFBO0NBQUE7QUFDM0IsSUFBQyw0QkFBQSxDQUFBLFVBQUEsT0FBQSxjQUFBO0FBQ0QsSUFBVyxlQUFlO0NBQUM7T0FBVTtPQUFlLE9BQU87T0FBcUI7Q0FBUTtBQUN4RixJQUFXLGlCQUFpQjtDQUFBO09BQUE7T0FBQSxPQUFBO09BQUE7Q0FBQTtBQUM1QixJQUFDLGtCQUFBO0NBQUE7T0FBQTtPQUFBLE9BQUE7T0FBQTtDQUFBO0FBQ0QsSUFBVyx5QkFBeUIsQ0FBQyxVQUFVLE9BQU8sY0FBYztBQUNwRSxJQUFXLHdCQUFxQixDQUFBLFVBQUEsT0FBQSxjQUFBO0FBQ2hDLElBQUMsc0JBQUEsQ0FBQSxVQUFBLE9BQUEsY0FBQTtBQUNELElBQVcsa0JBQWtCLENBQUMsVUFBVSxPQUFPLGNBQWM7QUFDN0QsSUFBVyxpQkFBTSxDQUFBLFVBQUEsT0FBQSxjQUFBO0FBQ2pCLElBQUMscUJBQUEsQ0FBQSxVQUFBLE9BQUEsY0FBQTtBQUNELElBQVcsaUJBQWlCO0NBQUM7T0FBVTtPQUErQixPQUFPO09BQUc7Q0FBQTtBQUNoRixJQUFXLG1CQUFVO0NBQUE7T0FBQTtPQUFBO09BQUE7T0FBQTtPQUFBLE9BQUE7Q0FBQSJ9
|
|
@@ -4,56 +4,56 @@ import { Message } from "../../application/models/message.js";
|
|
|
4
4
|
import { FormSubmittedAttributes, UserEvent } from "../../application/models/api/userEvent.js";
|
|
5
5
|
import { Suggestion } from "../../application/models/api/suggestion.js";
|
|
6
6
|
import { SpiffyMetricsEventName } from "../../services/amplitudeService/eventNames.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as jotai4 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: jotai4.PrimitiveAtom<boolean> & {
|
|
12
12
|
init: boolean;
|
|
13
13
|
};
|
|
14
|
-
declare const replyEventCategoryAtom:
|
|
14
|
+
declare const replyEventCategoryAtom: jotai4.PrimitiveAtom<UserEventCategory> & {
|
|
15
15
|
init: UserEventCategory;
|
|
16
16
|
};
|
|
17
|
-
declare const userQueryAtom:
|
|
17
|
+
declare const userQueryAtom: jotai4.PrimitiveAtom<string | undefined> & {
|
|
18
18
|
init: string | undefined;
|
|
19
19
|
};
|
|
20
|
-
declare const suggestionAtom:
|
|
20
|
+
declare const suggestionAtom: jotai4.PrimitiveAtom<Suggestion | undefined> & {
|
|
21
21
|
init: Suggestion | undefined;
|
|
22
22
|
};
|
|
23
|
-
declare const askQuestionBtnClickedAtom:
|
|
23
|
+
declare const askQuestionBtnClickedAtom: jotai4.PrimitiveAtom<boolean> & {
|
|
24
24
|
init: boolean;
|
|
25
25
|
};
|
|
26
|
-
declare const messagesAtom:
|
|
26
|
+
declare const messagesAtom: jotai4.PrimitiveAtom<Message[][]> & {
|
|
27
27
|
init: Message[][];
|
|
28
28
|
};
|
|
29
|
-
declare const userEventsAtom:
|
|
29
|
+
declare const userEventsAtom: jotai4.PrimitiveAtom<UserEvent[]> & {
|
|
30
30
|
init: UserEvent[];
|
|
31
31
|
};
|
|
32
|
-
declare const suggestionsAtom:
|
|
32
|
+
declare const suggestionsAtom: jotai4.PrimitiveAtom<Suggestion[]> & {
|
|
33
33
|
init: Suggestion[];
|
|
34
34
|
};
|
|
35
|
-
declare const suggestionsLoadingAtom:
|
|
35
|
+
declare const suggestionsLoadingAtom: jotai4.PrimitiveAtom<boolean> & {
|
|
36
36
|
init: boolean;
|
|
37
37
|
};
|
|
38
|
-
declare const responseStreamingAtom:
|
|
38
|
+
declare const responseStreamingAtom: jotai4.PrimitiveAtom<boolean> & {
|
|
39
39
|
init: boolean;
|
|
40
40
|
};
|
|
41
|
-
declare const pendingResponseAtom:
|
|
41
|
+
declare const pendingResponseAtom: jotai4.PrimitiveAtom<boolean> & {
|
|
42
42
|
init: boolean;
|
|
43
43
|
};
|
|
44
|
-
declare const initializedAtom:
|
|
44
|
+
declare const initializedAtom: jotai4.PrimitiveAtom<boolean> & {
|
|
45
45
|
init: boolean;
|
|
46
46
|
};
|
|
47
|
-
declare const chatIsOpenAtom:
|
|
47
|
+
declare const chatIsOpenAtom: jotai4.PrimitiveAtom<boolean> & {
|
|
48
48
|
init: boolean;
|
|
49
49
|
};
|
|
50
|
-
declare const requestFailureAtom:
|
|
50
|
+
declare const requestFailureAtom: jotai4.PrimitiveAtom<boolean> & {
|
|
51
51
|
init: boolean;
|
|
52
52
|
};
|
|
53
|
-
declare const formSubmitAtom:
|
|
53
|
+
declare const formSubmitAtom: jotai4.PrimitiveAtom<FormSubmittedAttributes | undefined> & {
|
|
54
54
|
init: FormSubmittedAttributes | undefined;
|
|
55
55
|
};
|
|
56
|
-
declare const chatOnToggleAtom:
|
|
56
|
+
declare const chatOnToggleAtom: jotai4.WritableAtom<null, [triggerLocation?: ChatElementDisplayLocation | ChatElementDisplayLocationV3 | undefined, track?: ((eventName: SpiffyMetricsEventName, eventProps?: Record<string, unknown>) => void) | undefined], void> & {
|
|
57
57
|
init: null;
|
|
58
58
|
};
|
|
59
59
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FormSubmittedAttributes } from "../../application/models/api/userEvent.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai80 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/form.d.ts
|
|
5
|
-
declare const handleFormSubmittedAtom:
|
|
5
|
+
declare const handleFormSubmittedAtom: jotai80.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 jotai79 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/form.d.ts
|
|
5
|
-
declare const handleFormSubmittedAtom:
|
|
5
|
+
declare const handleFormSubmittedAtom: jotai79.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 jotai20 from "jotai";
|
|
13
13
|
|
|
14
14
|
//#region src/atoms/chat/index.d.ts
|
|
15
|
-
declare const chatAtom:
|
|
15
|
+
declare const chatAtom: jotai20.Atom<{
|
|
16
16
|
userHasReplied: boolean;
|
|
17
17
|
replyEventCategory: _spiffy_ai_commerce_api_client0.UserEventCategory;
|
|
18
18
|
userQuery: string | undefined;
|
|
@@ -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 jotai21 from "jotai";
|
|
13
13
|
|
|
14
14
|
//#region src/atoms/chat/index.d.ts
|
|
15
|
-
declare const chatAtom:
|
|
15
|
+
declare const chatAtom: jotai21.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: jotai0.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, 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,
|
|
31
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJ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i4vLi4vYXBwbGljYXRpb24vbW9kZWxzXCIpLlN1Z2dlc3Rpb25bXTtcbiAgICBzdWdnZXN0aW9uc0xvYWRpbmc6IGJvb2xlYW47XG4gICAgcmVzcG9uc2VTdHJlYW1pbmc6IGJvb2xlYW47XG4gICAgaXNPcGVuOiBib29sZWFuO1xuICAgIG9uVG9nZ2xlOiBudWxsO1xufT47XG4iXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7O0FBVUEsSUFBVyxXQUFXO0NBQUM7T0FBVSxnQ0FBQTtPQUFBO09BQUE7T0FBQTtPQUFBO09BQUEsUUFBQTtDQUFBIn0=
|
package/dist/atoms/chat/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { askQuestionBtnClickedAtom, chatIsOpenAtom, chatOnToggleAtom, formSubmitAtom, initializedAtom, 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 jotai87 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/lastMessage.d.ts
|
|
5
|
-
declare const lastAssistantMessageAtom:
|
|
5
|
+
declare const lastAssistantMessageAtom: jotai87.Atom<Message[] | null>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { lastAssistantMessageAtom };
|
|
8
8
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGFzdE1lc3NhZ2UuZC5jdHMiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2F0b21zL2NoYXQvbGFzdE1lc3NhZ2UuZC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVjbGFyZSBjb25zdCBsYXN0QXNzaXN0YW50TWVzc2FnZUF0b206IGltcG9ydChcImpvdGFpXCIpLkF0b208aW1wb3J0KFwiLi4vLi4vYXBwbGljYXRpb24vbW9kZWxzXCIpLk1lc3NhZ2VbXSB8IG51bGw+O1xuIl0sIm1hcHBpbmdzIjoiIn0=
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { UserEvent } from "../../application/models/api/userEvent.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai82 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/messageQueue.d.ts
|
|
5
|
-
declare const userEventQueueAtom:
|
|
5
|
+
declare const userEventQueueAtom: jotai82.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: jotai82.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: jotai82.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: jotai82.WritableAtom<null, [eventIds: string[]], void> & {
|
|
26
26
|
init: null;
|
|
27
27
|
};
|
|
28
|
-
declare const userQueueEventCountAtom:
|
|
28
|
+
declare const userQueueEventCountAtom: jotai82.Atom<number>;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { clearUserEventAtom, processUserEventAtom, queueUserEventAtom, userEventQueueAtom, userQueueEventCountAtom };
|
|
31
31
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVzc2FnZVF1ZXVlLmQuY3RzIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hdG9tcy9jaGF0L21lc3NhZ2VRdWV1ZS5kLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFVzZXJFdmVudCB9IGZyb20gJ3NyYy9hcHBsaWNhdGlvbi9tb2RlbHMnO1xuZXhwb3J0IGRlY2xhcmUgY29uc3QgdXNlckV2ZW50UXVldWVBdG9tOiBpbXBvcnQoXCJqb3RhaVwiKS5BdG9tPFVzZXJFdmVudFtdPjtcbi8qKlxuICogVGhpcyBhdG9tIGlzIHVzZWQgdG8gcXVldWUgYSBuZXcgbWVzc2FnZSBmb3IgcHJvY2Vzc2luZyBvbiBgbmV4dF9yZXNwb25zZXNgXG4gKiBJdCByZWNlaXZlcyBhIHNp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bCwgW2V2ZW50SWRzOiBzdHJpbmdbXV0sIHZvaWQ+ICYge1xuICAgIGluaXQ6IG51bGw7XG59O1xuZXhwb3J0IGRlY2xhcmUgY29uc3QgdXNlclF1ZXVlRXZlbnRDb3VudEF0b206IGltcG9ydChcImpvdGFpXCIpLkF0b208bnVtYmVyPjtcbiJdLCJtYXBwaW5ncyI6Ijs7OztBQUVBLElBQUUscUJBQUE7Q0FBQTtPQUFBO09BQUEsUUFBQTtDQUFBO0FBQ0YsSUFBVyxxQkFBcUI7Q0FBQztPQUFXO09BQWlCLFFBQVE7Q0FBUTtBQUM3RSxJQUFXLHFCQUFxQixDQUFDLFdBQVcsUUFBUSxhQUFhO0FBQ2pFLElBQVcsdUJBQXVCLENBQUMsV0FBVyxRQUFRLGFBQWE7QUFDbkUsSUFBVywwQkFBTyxDQUFBLFdBQUEsUUFBQSxLQUFBIn0=
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as jotai75 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: jotai75.WritableAtom<string | undefined, [string | typeof jotai_utils1.RESET | ((prev: string | undefined) => string | typeof jotai_utils1.RESET | undefined) | undefined], void>;
|
|
27
|
+
declare const pageLoadOffsetTimeAtom: jotai75.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: jotai33.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: jotai75.Atom<Map<PerfMetricsEvents, number>>;
|
|
36
|
+
declare const hasReportedPerformanceMetricsAtom: jotai75.PrimitiveAtom<boolean> & {
|
|
37
37
|
init: boolean;
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
@@ -42,7 +42,7 @@ declare const hasReportedPerformanceMetricsAtom: jotai33.PrimitiveAtom<boolean>
|
|
|
42
42
|
*
|
|
43
43
|
* @param value The performance metric name to log.
|
|
44
44
|
*/
|
|
45
|
-
declare const logPerfMetricAtom:
|
|
45
|
+
declare const logPerfMetricAtom: jotai75.WritableAtom<null, [value: PerfMetricsEvents], void> & {
|
|
46
46
|
init: null;
|
|
47
47
|
};
|
|
48
48
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as jotai80 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: jotai80.WritableAtom<string | undefined, [string | typeof jotai_utils1.RESET | ((prev: string | undefined) => string | typeof jotai_utils1.RESET | undefined) | undefined], void>;
|
|
27
|
+
declare const pageLoadOffsetTimeAtom: jotai80.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: jotai79.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: jotai80.Atom<Map<PerfMetricsEvents, number>>;
|
|
36
|
+
declare const hasReportedPerformanceMetricsAtom: jotai80.PrimitiveAtom<boolean> & {
|
|
37
37
|
init: boolean;
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
@@ -42,7 +42,7 @@ declare const hasReportedPerformanceMetricsAtom: jotai79.PrimitiveAtom<boolean>
|
|
|
42
42
|
*
|
|
43
43
|
* @param value The performance metric name to log.
|
|
44
44
|
*/
|
|
45
|
-
declare const logPerfMetricAtom:
|
|
45
|
+
declare const logPerfMetricAtom: jotai80.WritableAtom<null, [value: PerfMetricsEvents], void> & {
|
|
46
46
|
init: null;
|
|
47
47
|
};
|
|
48
48
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as jotai88 from "jotai";
|
|
2
2
|
|
|
3
3
|
//#region src/atoms/chat/renderedWidgetRefs.d.ts
|
|
4
|
-
declare const widgetArrayAtom:
|
|
4
|
+
declare const widgetArrayAtom: jotai88.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 jotai81 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/suggestions.d.ts
|
|
5
|
-
declare const handleSuggestionAtom:
|
|
5
|
+
declare const handleSuggestionAtom: jotai81.WritableAtom<null, [suggestion: Suggestion], void> & {
|
|
6
6
|
init: null;
|
|
7
7
|
};
|
|
8
8
|
//#endregion
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { EnviveConfig } from "../../contexts/types.cjs";
|
|
2
2
|
import { ContextSourceEnum } from "@spiffy-ai/commerce-api-client";
|
|
3
|
-
import * as
|
|
3
|
+
import * as jotai22 from "jotai";
|
|
4
4
|
|
|
5
5
|
//#region src/atoms/envive/enviveConfig.d.ts
|
|
6
|
-
declare const enviveConfigAtom:
|
|
7
|
-
declare const amplitudeApiKeyAtom:
|
|
8
|
-
declare const dataResidencyAtom:
|
|
9
|
-
declare const envAtom:
|
|
10
|
-
declare const baseUrlAtom:
|
|
11
|
-
declare const reactAppNameAtom:
|
|
12
|
-
declare const cdnUrlAtom:
|
|
13
|
-
declare const orgIdAtom:
|
|
14
|
-
declare const contextSourceAtom:
|
|
15
|
-
declare const orgLevelApiKeyAtom:
|
|
16
|
-
declare const orgShortNameAtom:
|
|
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
17
|
//#endregion
|
|
18
18
|
export { amplitudeApiKeyAtom, baseUrlAtom, cdnUrlAtom, contextSourceAtom, dataResidencyAtom, envAtom, enviveConfigAtom, orgIdAtom, orgLevelApiKeyAtom, orgShortNameAtom, reactAppNameAtom };
|
|
19
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52aXZlQ29uZmlnLmQuY3RzIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hdG9tcy9lbnZpdmUvZW52aXZlQ29uZmlnLmQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgR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09BQVc7T0FBeUIsUUFBUTtDQUFLO0FBQ2pGLElBQVcscUJBQXFCLENBQUMsV0FBVyxRQUFRLEtBQUsifQ==
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as jotai89 from "jotai";
|
|
2
2
|
|
|
3
3
|
//#region src/atoms/globalSearch/globalSearch.d.ts
|
|
4
|
-
declare const autocompleteStateAtom:
|
|
4
|
+
declare const autocompleteStateAtom: jotai89.PrimitiveAtom<{
|
|
5
5
|
results: string[];
|
|
6
6
|
isLoading: boolean;
|
|
7
7
|
}> & {
|
|
@@ -10,13 +10,13 @@ declare const autocompleteStateAtom: jotai47.PrimitiveAtom<{
|
|
|
10
10
|
isLoading: boolean;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
declare const isFilterOpenAtom:
|
|
13
|
+
declare const isFilterOpenAtom: jotai89.PrimitiveAtom<boolean> & {
|
|
14
14
|
init: boolean;
|
|
15
15
|
};
|
|
16
|
-
declare const isGlobalSearchOpenAtom:
|
|
16
|
+
declare const isGlobalSearchOpenAtom: jotai89.PrimitiveAtom<boolean> & {
|
|
17
17
|
init: boolean;
|
|
18
18
|
};
|
|
19
|
-
declare const isSearchResultsOpenAtom:
|
|
19
|
+
declare const isSearchResultsOpenAtom: jotai89.PrimitiveAtom<boolean> & {
|
|
20
20
|
init: boolean;
|
|
21
21
|
};
|
|
22
22
|
//#endregion
|