@envive-ai/react-hooks 0.3.50 → 0.3.52
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/utils/elementObserver.d.cts +2 -2
- package/dist/atoms/app/index.d.cts +7 -7
- package/dist/atoms/app/index.d.ts +1 -1
- package/dist/atoms/app/variant.d.cts +6 -6
- package/dist/atoms/chat/chatState.d.cts +19 -19
- package/dist/atoms/chat/chatState.d.ts +19 -19
- package/dist/atoms/chat/form.d.cts +2 -2
- package/dist/atoms/chat/form.d.ts +2 -2
- package/dist/atoms/chat/index.cjs +1 -1
- package/dist/atoms/chat/index.d.cts +2 -2
- package/dist/atoms/chat/index.d.ts +2 -2
- package/dist/atoms/chat/index.js +1 -1
- package/dist/atoms/chat/lastMessage.d.cts +2 -2
- package/dist/atoms/chat/lastMessage.d.ts +2 -2
- package/dist/atoms/chat/messageQueue.d.cts +6 -6
- package/dist/atoms/chat/performanceMetrics.d.cts +6 -6
- package/dist/atoms/chat/renderedWidgetRefs.d.cts +2 -2
- package/dist/atoms/chat/replies.d.cts +2 -2
- package/dist/atoms/chat/replies.d.ts +2 -2
- package/dist/atoms/chat/suggestions.d.cts +2 -2
- package/dist/atoms/envive/enviveConfig.d.cts +14 -14
- package/dist/atoms/envive/enviveConfig.d.ts +14 -14
- package/dist/atoms/globalSearch/globalSearch.d.cts +6 -6
- package/dist/atoms/globalSearch/globalSearch.d.ts +5 -5
- package/dist/atoms/org/customerService.d.cts +6 -6
- package/dist/atoms/org/graphqlConfig.d.cts +4 -4
- package/dist/atoms/org/graphqlConfig.d.ts +4 -4
- package/dist/atoms/org/index.cjs +1 -1
- package/dist/atoms/org/index.js +1 -1
- package/dist/atoms/org/newOrgConfigAtom.d.cts +2 -2
- package/dist/atoms/org/newOrgConfigAtom.d.ts +2 -2
- package/dist/atoms/org/orgAnalyticsConfig.d.cts +4 -4
- package/dist/atoms/org/orgAnalyticsConfig.d.ts +4 -4
- package/dist/atoms/search/chatSearch.cjs +1 -1
- package/dist/atoms/search/chatSearch.d.cts +17 -17
- package/dist/atoms/search/chatSearch.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.js +1 -1
- package/dist/atoms/search/utils.d.cts +1 -1
- package/dist/atoms/widget/chatPreviewLoading.d.cts +2 -2
- package/dist/contexts/enviveContext/types.d.ts +1 -1
- package/dist/contexts/salesAgentContext/chatAPI.cjs +2 -2
- package/dist/contexts/salesAgentContext/chatAPI.js +2 -2
- package/dist/contexts/salesAgentContext/salesAgentService.cjs +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/systemSettingsContext/systemSettingsContext.d.cts +2 -2
- package/dist/contexts/types.d.cts +1 -1
- package/dist/contexts/types.d.ts +1 -1
- package/dist/contexts/typesV3.cjs +9 -1
- package/dist/contexts/typesV3.d.cts +9 -2
- package/dist/contexts/typesV3.d.ts +9 -2
- package/dist/contexts/typesV3.js +9 -2
- package/dist/hooks/ChatToggle/useChatToggle.cjs +1 -1
- package/dist/hooks/ChatToggle/useChatToggle.js +1 -1
- package/dist/hooks/GrabAndScroll/useGrabAndScroll.d.cts +2 -2
- package/dist/hooks/Search/useSearch.cjs +3 -3
- package/dist/hooks/Search/useSearch.js +3 -3
- package/dist/hooks/WidgetInteraction/types.cjs +4 -1
- package/dist/hooks/WidgetInteraction/types.d.cts +8 -3
- package/dist/hooks/WidgetInteraction/types.d.ts +8 -3
- package/dist/hooks/WidgetInteraction/types.js +4 -1
- package/dist/hooks/utils.d.cts +1 -1
- package/dist/services/hardcopyService/hardcopyService.cjs +3 -2
- package/dist/services/hardcopyService/hardcopyService.js +3 -2
- package/package.json +1 -1
- package/src/contexts/typesV3.ts +8 -0
- package/src/hooks/WidgetInteraction/__tests__/interactionClass.test.ts +18 -0
- package/src/hooks/WidgetInteraction/types.ts +12 -0
- package/src/services/hardcopyService/hardcopyService.ts +1 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { AddToCartCallback } from "../../types/enviveConfig.js";
|
|
2
2
|
import { EnviveConfig } from "../../contexts/types.js";
|
|
3
3
|
import { ContextSourceEnum } from "@spiffy-ai/commerce-api-client";
|
|
4
|
-
import * as
|
|
4
|
+
import * as jotai4 from "jotai";
|
|
5
5
|
|
|
6
6
|
//#region src/atoms/envive/enviveConfig.d.ts
|
|
7
|
-
declare const enviveConfigAtom:
|
|
8
|
-
declare const amplitudeApiKeyAtom:
|
|
9
|
-
declare const dataResidencyAtom:
|
|
10
|
-
declare const envAtom:
|
|
11
|
-
declare const baseUrlAtom:
|
|
12
|
-
declare const reactAppNameAtom:
|
|
13
|
-
declare const cdnUrlAtom:
|
|
14
|
-
declare const orgIdAtom:
|
|
15
|
-
declare const addToCartCallbackAtom:
|
|
16
|
-
declare const contextSourceAtom:
|
|
17
|
-
declare const orgLevelApiKeyAtom:
|
|
18
|
-
declare const orgShortNameAtom:
|
|
7
|
+
declare const enviveConfigAtom: jotai4.WritableAtom<EnviveConfig | undefined, [value: EnviveConfig], void>;
|
|
8
|
+
declare const amplitudeApiKeyAtom: jotai4.Atom<string | undefined>;
|
|
9
|
+
declare const dataResidencyAtom: jotai4.Atom<string | undefined>;
|
|
10
|
+
declare const envAtom: jotai4.Atom<string | undefined>;
|
|
11
|
+
declare const baseUrlAtom: jotai4.Atom<string>;
|
|
12
|
+
declare const reactAppNameAtom: jotai4.Atom<string | undefined>;
|
|
13
|
+
declare const cdnUrlAtom: jotai4.Atom<string | undefined>;
|
|
14
|
+
declare const orgIdAtom: jotai4.Atom<string | undefined>;
|
|
15
|
+
declare const addToCartCallbackAtom: jotai4.Atom<AddToCartCallback | undefined>;
|
|
16
|
+
declare const contextSourceAtom: jotai4.Atom<ContextSourceEnum>;
|
|
17
|
+
declare const orgLevelApiKeyAtom: jotai4.Atom<string | undefined>;
|
|
18
|
+
declare const orgShortNameAtom: jotai4.Atom<string | undefined>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { addToCartCallbackAtom, amplitudeApiKeyAtom, baseUrlAtom, cdnUrlAtom, contextSourceAtom, dataResidencyAtom, envAtom, enviveConfigAtom, orgIdAtom, orgLevelApiKeyAtom, orgShortNameAtom, reactAppNameAtom };
|
|
21
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52aXZlQ29uZmlnLmQudHMiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2F0b21zL2Vudml2ZS9lbnZpdmVDb25maWcuZC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBFbnZpdmVDb25maWcgfSBmcm9tICdzcmMvY29udGV4dHMvdHlwZXMnO1xuaW1wb3J0IHsgQ29udGV4dFNvdXJjZUVudW0gfSBmcm9tICdAc3BpZmZ5LWFpL2NvbW1lcmNlLWFwaS1jbGllbnQnO1xuZXhwb3J0IGRlY2xhcmUgY29uc3QgZW52aXZlQ29uZmlnQXRvbTogaW1wb3J0KFwiam90YWlcIikuV3JpdGFibGVBdG9tPEVudml2ZUNvbmZpZyB8IHVuZGVmaW5lZCwgW3ZhbHVlOiBFbnZpdmVDb25maWddLCB2b2lkPjtcbmV4cG9ydCBkZWNsYXJlIGNvbnN0IGFtcGxpdHVkZUFwaUtleUF0b206IGltcG9ydChcImpvdGFpXCIpLkF0b208c3RyaW5nIHwgdW5kZWZpbmVkPjtcbmV4cG9ydCBkZWNsYXJlIGNvbnN0IGRhdGFSZXNpZGVuY3lBdG9tOiBpbXBvcnQoXCJqb3RhaVwiKS5BdG9tPHN0cmluZyB8IHVuZGVmaW5lZD47XG5leHBvcnQgZGVjbGFyZSBjb25zdCBlbnZBdG9tOiBpbXBvcnQoXCJqb3RhaVwiKS5BdG9tPHN0cmluZyB8IHVuZGVm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29uc3QgY29udGV4dFNvdXJjZUF0b206IGltcG9ydChcImpvdGFpXCIpLkF0b208Q29udGV4dFNvdXJjZUVudW0+O1xuZXhwb3J0IGRlY2xhcmUgY29uc3Qgb3JnTGV2ZWxBcGlLZXlBdG9tOiBpbXBvcnQoXCJqb3RhaVwiKS5BdG9tPHN0cmluZyB8IHVuZGVmaW5lZD47XG5leHBvcnQgZGVjbGFyZSBjb25zdCBvcmdTaG9ydE5hbWVBdG9tOiBpbXBvcnQoXCJqb3RhaVwiKS5BdG9tPHN0cmluZyB8IHVuZGVmaW5lZD47XG4iXSwibWFwcGluZ3MiOiI7Ozs7OztBQUlBLElBQVcsbUJBQW1CO0NBQUM7T0FBVTtPQUFvQjtPQUFtQixPQUFBO0NBQUE7QUFDaEYsSUFBVyxzQkFBc0IsQ0FBQyxVQUFVLE9BQU8sS0FBSztBQUN4RCxJQUFXLG9CQUFvQixDQUFDLFVBQVUsT0FBTyxLQUFLO0FBQ3RELElBQVcsVUFBVSxDQUFDLFVBQVUsT0FBTyxLQUFLO0FBQzVDLElBQVcsY0FBYyxDQUFDLFVBQVUsT0FBTyxLQUFLO0FBQ2hELElBQVcsbUJBQW1CLENBQUMsVUFBVSxPQUFPLEtBQUs7QUFDckQsSUFBVyxhQUFhLENBQUMsVUFBVSxPQUFPLEtBQUs7QUFDL0MsSUFBVyxZQUFZLENBQUMsVUFBVSxPQUFPLEtBQUs7QUFDOUMsSUFBVyx3QkFBd0I7Q0FBQztPQUFVO09BQW1DLE9BQUE7Q0FBQTtBQUNqRixJQUFXLG9CQUFvQjtDQUFDO09BQVU7T0FBeUIsT0FBTztDQUFLIn0=
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as jotai106 from "jotai";
|
|
2
2
|
|
|
3
3
|
//#region src/atoms/globalSearch/globalSearch.d.ts
|
|
4
|
-
declare const autocompleteStateAtom:
|
|
4
|
+
declare const autocompleteStateAtom: jotai106.PrimitiveAtom<{
|
|
5
5
|
results: string[];
|
|
6
6
|
isLoading: boolean;
|
|
7
7
|
}> & {
|
|
@@ -10,15 +10,15 @@ declare const autocompleteStateAtom: jotai76.PrimitiveAtom<{
|
|
|
10
10
|
isLoading: boolean;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
declare const isFilterOpenAtom:
|
|
13
|
+
declare const isFilterOpenAtom: jotai106.PrimitiveAtom<boolean> & {
|
|
14
14
|
init: boolean;
|
|
15
15
|
};
|
|
16
|
-
declare const isGlobalSearchOpenAtom:
|
|
16
|
+
declare const isGlobalSearchOpenAtom: jotai106.PrimitiveAtom<boolean> & {
|
|
17
17
|
init: boolean;
|
|
18
18
|
};
|
|
19
|
-
declare const isSearchResultsOpenAtom:
|
|
19
|
+
declare const isSearchResultsOpenAtom: jotai106.PrimitiveAtom<boolean> & {
|
|
20
20
|
init: boolean;
|
|
21
21
|
};
|
|
22
22
|
//#endregion
|
|
23
23
|
export { autocompleteStateAtom, isFilterOpenAtom, isGlobalSearchOpenAtom, isSearchResultsOpenAtom };
|
|
24
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2xvYmFsU2VhcmNoLmQuY3RzIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hdG9tcy9nbG9iYWxTZWFyY2gvZ2xvYmFsU2VhcmNoLmQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGRlY2xhcmUgY29uc3QgYXV0b2NvbXBsZXRlU3RhdGVBdG9tOiBpbXBvcnQoXCJqb3RhaVwiKS5QcmltaXRpdmVBdG9tPHtcbiAgICByZXN1bHRzOiBzdHJpbmdbXTtcbiAgICBpc0xvYWRpbmc6IGJvb2xlYW47XG59PiAmIHtcbiAgICBpbml0OiB7XG4gICAgICAgIHJlc3VsdHM6IHN0cmluZ1tdO1xuICAgICAgICBpc0xvYWRpbmc6IGJvb2xlYW47XG4gICAgfTtcbn07XG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wb3J0IGRlY2xhcmUgY29uc3QgaXNHbG9iYWxTZWFyY2hPcGVuQXRvbTogaW1wb3J0KFwiam90YWlcIikuUHJpbWl0aXZlQXRvbTxib29sZWFuPiAmIHtcbiAgICBpbml0OiBib29sZWFuO1xufTtcbmV4cG9ydCBkZWNsYXJlIGNvbnN0IGlzU2VhcmNoUmVzdWx0c09wZW5BdG9tOiBpbXBvcnQoXCJqb3RhaVwiKS5QcmltaXRpdmVBdG9tPGJvb2xlYW4+ICYge1xuICAgIGluaXQ6IGJvb2xlYW47XG59O1xuIl0sIm1hcHBpbmdzIjoiOzs7QUFDQSxJQUFXLHdCQUFVLENBQUEsV0FBQSxTQUFBLGNBQUE7QUFDckIsSUFBVyxtQkFBVyxDQUFBLFdBQUEsU0FBQSxjQUFBO0FBQ3RCLElBQUsseUJBQUEsQ0FBQSxXQUFBLFNBQUEsY0FBQTtBQUNMLElBQVUsMEJBQUEsQ0FBQSxXQUFBLFNBQUEsY0FBQSJ9
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as jotai74 from "jotai";
|
|
2
2
|
|
|
3
3
|
//#region src/atoms/globalSearch/globalSearch.d.ts
|
|
4
|
-
declare const autocompleteStateAtom:
|
|
4
|
+
declare const autocompleteStateAtom: jotai74.PrimitiveAtom<{
|
|
5
5
|
results: string[];
|
|
6
6
|
isLoading: boolean;
|
|
7
7
|
}> & {
|
|
@@ -10,13 +10,13 @@ declare const autocompleteStateAtom: jotai75.PrimitiveAtom<{
|
|
|
10
10
|
isLoading: boolean;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
declare const isFilterOpenAtom:
|
|
13
|
+
declare const isFilterOpenAtom: jotai74.PrimitiveAtom<boolean> & {
|
|
14
14
|
init: boolean;
|
|
15
15
|
};
|
|
16
|
-
declare const isGlobalSearchOpenAtom:
|
|
16
|
+
declare const isGlobalSearchOpenAtom: jotai74.PrimitiveAtom<boolean> & {
|
|
17
17
|
init: boolean;
|
|
18
18
|
};
|
|
19
|
-
declare const isSearchResultsOpenAtom:
|
|
19
|
+
declare const isSearchResultsOpenAtom: jotai74.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 jotai50 from "jotai";
|
|
4
4
|
|
|
5
5
|
//#region src/atoms/org/customerService.d.ts
|
|
6
|
-
declare const isBusinessHoursAtom:
|
|
6
|
+
declare const isBusinessHoursAtom: jotai50.PrimitiveAtom<boolean> & {
|
|
7
7
|
init: boolean;
|
|
8
8
|
};
|
|
9
|
-
declare const isCustomerServiceOpenAtom:
|
|
9
|
+
declare const isCustomerServiceOpenAtom: jotai50.PrimitiveAtom<boolean> & {
|
|
10
10
|
init: boolean;
|
|
11
11
|
};
|
|
12
|
-
declare const customerServiceResponseAtom:
|
|
12
|
+
declare const customerServiceResponseAtom: jotai50.PrimitiveAtom<CustServiceConversationMessages | undefined> & {
|
|
13
13
|
init: CustServiceConversationMessages | undefined;
|
|
14
14
|
};
|
|
15
|
-
declare const customerServiceChatStateAtom:
|
|
15
|
+
declare const customerServiceChatStateAtom: jotai50.PrimitiveAtom<ChatState | undefined> & {
|
|
16
16
|
init: ChatState | undefined;
|
|
17
17
|
};
|
|
18
|
-
declare const customerServiceAttachment:
|
|
18
|
+
declare const customerServiceAttachment: jotai50.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 jotai55 from "jotai";
|
|
5
5
|
|
|
6
6
|
//#region src/atoms/org/graphqlConfig.d.ts
|
|
7
|
-
declare const internalGraphQLColorsConfigAtom:
|
|
7
|
+
declare const internalGraphQLColorsConfigAtom: jotai55.PrimitiveAtom<ColorMapping | undefined> & {
|
|
8
8
|
init: ColorMapping | undefined;
|
|
9
9
|
};
|
|
10
|
-
declare const featureFlagServiceAtom:
|
|
10
|
+
declare const featureFlagServiceAtom: jotai55.PrimitiveAtom<FeatureFlagContextType | undefined> & {
|
|
11
11
|
init: FeatureFlagContextType | undefined;
|
|
12
12
|
};
|
|
13
|
-
declare const frontendConfigAtom:
|
|
13
|
+
declare const frontendConfigAtom: jotai55.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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3JhcGhxbENvbmZpZy5kLmN0cyIsIm5hbWVzIjpbXSwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYXRvbXMvb3JnL2dyYXBocWxDb25maWcuZC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb2xvck1hcHBpbmcgfSBmcm9tICdzcmMvYXBwbGljYXRpb24vbW9kZWxzL2NvbG9yc0NvbmZpZyc7XG5pbXBvcnQgeyBGcm9udGVuZENvbmZpZyB9IGZyb20gJ3NyYy9hcHBsaWNhdGlvbi9tb2RlbHMvZnJvbnRlbmRDb25maWcnO1xuaW1wb3J0IHR5cGUgeyBGZWF0dXJlRmxhZ0NvbnRleHRUeXBlIH0gZnJvbSAnc3JjL2NvbnRleHRzL2ZlYXR1cmVGbGFnU2VydmljZUNvbnRleHQvZmVhdHVyZUZsYWdTZXJ2aWNlQ29udGV4dCc7XG5leHBvcnQgZGVjbGFyZSBjb25zdCBpbnRlcm5hbEdyYXBoUUxDb2xvcnNDb25maWdBdG9tOiBpbXBvcnQoXCJqb3RhaVwiKS5QcmltaXRpdmVBdG9tPENvbG9yTWFwcGluZyB8IHVuZGVmaW5lZD4gJiB7XG4gICAgaW5pdDogQ29sb3JNYXBwaW5nIHwgdW5kZWZpbmVkO1xufTtcbmV4cG9ydCBkZWNsYXJlIGNvbnN0IGZlYXR1cmVGbGFnU2VydmljZUF0b206IGltcG9ydChcImpvdGFpXCIpLlByaW1pdGl2ZUF0b208RmVhdHVyZUZsYWdDb250ZXh0VHlwZSB8IHVuZGVmaW5lZD4gJiB7XG4gICAgaW5pdDogRmVhdHVyZUZsYWdDb250ZXh0VHlwZSB8IHVuZGVmaW5lZDtcbn07XG5leHBvcnQgZGVjbGFyZSBjb25zdCBmcm9udGVuZENvbmZpZ0F0b206IGltcG9ydChcImpvdGFpXCIpLldyaXRhYmxlQXRvbTxGcm9udGVuZENvbmZpZyB8IHVuZGVmaW5lZCwgW3ZhbHVlOiBGcm9udGVuZENvbmZpZyB8IHVuZGVmaW5lZF0sIHZvaWQ+O1xuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7QUFJQSxJQUFXLGtDQUF1QjtDQUFBO09BQUE7T0FBQSxRQUFBO09BQUE7Q0FBQTtBQUNsQyxJQUFDLHlCQUFBO0NBQUE7T0FBQTtPQUFBLFFBQUE7T0FBQTtDQUFBO0FBQ0QsSUFBVyxxQkFBcUI7Q0FBQztPQUFXO09BQXNCO09BQXNCLFFBQVE7Q0FBYSJ9
|
|
@@ -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 jotai68 from "jotai";
|
|
5
5
|
|
|
6
6
|
//#region src/atoms/org/graphqlConfig.d.ts
|
|
7
|
-
declare const internalGraphQLColorsConfigAtom:
|
|
7
|
+
declare const internalGraphQLColorsConfigAtom: jotai68.PrimitiveAtom<ColorMapping | undefined> & {
|
|
8
8
|
init: ColorMapping | undefined;
|
|
9
9
|
};
|
|
10
|
-
declare const featureFlagServiceAtom:
|
|
10
|
+
declare const featureFlagServiceAtom: jotai68.PrimitiveAtom<FeatureFlagContextType | undefined> & {
|
|
11
11
|
init: FeatureFlagContextType | undefined;
|
|
12
12
|
};
|
|
13
|
-
declare const frontendConfigAtom:
|
|
13
|
+
declare const frontendConfigAtom: jotai68.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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3JhcGhxbENvbmZpZy5kLnRzIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hdG9tcy9vcmcvZ3JhcGhxbENvbmZpZy5kLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbG9yTWFwcGluZyB9IGZyb20gJ3NyYy9hcHBsaWNhdGlvbi9tb2RlbHMvY29sb3JzQ29uZmlnJztcbmltcG9ydCB7IEZyb250ZW5kQ29uZmlnIH0gZnJvbSAnc3JjL2FwcGxpY2F0aW9uL21vZGVscy9mcm9udGVuZENvbmZpZyc7XG5pbXBvcnQgdHlwZSB7IEZlYXR1cmVGbGFnQ29udGV4dFR5cGUgfSBmcm9tICdzcmMvY29udGV4dHMvZmVhdHVyZUZsYWdTZXJ2aWNlQ29udGV4dC9mZWF0dXJlRmxhZ1NlcnZpY2VDb250ZXh0JztcbmV4cG9ydCBkZWNsYXJlIGNvbnN0IGludGVybmFsR3JhcGhRTENvbG9yc0NvbmZpZ0F0b206IGltcG9ydChcImpvdGFpXCIpLlByaW1pdGl2ZUF0b208Q29sb3JNYXBwaW5nIHwgdW5kZWZpbmVkPiAmIHtcbiAgICBpbml0OiBDb2xvck1hcHBpbmcgfCB1bmRlZmluZWQ7XG59O1xuZXhwb3J0IGRlY2xhcmUgY29uc3QgZmVhdHVyZUZsYWdTZXJ2aWNlQXRvbTogaW1wb3J0KFwiam90YWlcIikuUHJpbWl0aXZlQXRvbTxGZWF0dXJlRmxhZ0NvbnRleHRUeXBlIHwgdW5kZWZpbmVkPiAmIHtcbiAgICBpbml0OiBGZWF0dXJlRmxhZ0NvbnRleHRUeXBlIHwgdW5kZWZpbmVkO1xufTtcbmV4cG9ydCBkZWNsYXJlIGNvbnN0IGZyb250ZW5kQ29uZmlnQXRvbTogaW1wb3J0KFwiam90YWlcIikuV3JpdGFibGVBdG9tPEZyb250ZW5kQ29uZmlnIHwgdW5kZWZpbmVkLCBbdmFsdWU6IEZyb250ZW5kQ29uZmlnIHwgdW5kZWZpbmVkXSwgdm9pZD47XG4iXSwibWFwcGluZ3MiOiI7Ozs7OztBQUlBLElBQVcsa0NBQXVCO0NBQUE7T0FBQTtPQUFBLFFBQUE7T0FBQTtDQUFBO0FBQ2xDLElBQUMseUJBQUE7Q0FBQTtPQUFBO09BQUEsUUFBQTtPQUFBO0NBQUE7QUFDRCxJQUFXLHFCQUFxQjtDQUFDO09BQVc7T0FBc0I7T0FBc0IsUUFBUTtDQUFhIn0=
|
package/dist/atoms/org/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_graphqlConfig = require('./graphqlConfig.cjs');
|
|
2
|
-
const require_newOrgConfigAtom = require('./newOrgConfigAtom.cjs');
|
|
3
2
|
const require_customerService = require('./customerService.cjs');
|
|
4
3
|
const require_orgAnalyticsConfig = require('./orgAnalyticsConfig.cjs');
|
|
4
|
+
const require_newOrgConfigAtom = require('./newOrgConfigAtom.cjs');
|
|
5
5
|
|
|
6
6
|
exports.customerServiceAttachment = require_customerService.customerServiceAttachment;
|
|
7
7
|
exports.customerServiceChatStateAtom = require_customerService.customerServiceChatStateAtom;
|
package/dist/atoms/org/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { featureFlagServiceAtom, frontendConfigAtom, internalGraphQLColorsConfigAtom } from "./graphqlConfig.js";
|
|
2
|
-
import { newOrgConfigAtom } from "./newOrgConfigAtom.js";
|
|
3
2
|
import { customerServiceAttachment, customerServiceChatStateAtom, customerServiceResponseAtom, isBusinessHoursAtom, isCustomerServiceOpenAtom } from "./customerService.js";
|
|
4
3
|
import { orgAnalyticsAmplitudeConfigAtom, orgAnalyticsConfigAtom, orgAnalyticsCustomerServiceConfigAtom } from "./orgAnalyticsConfig.js";
|
|
4
|
+
import { newOrgConfigAtom } from "./newOrgConfigAtom.js";
|
|
5
5
|
|
|
6
6
|
export { customerServiceAttachment, customerServiceChatStateAtom, customerServiceResponseAtom, featureFlagServiceAtom, frontendConfigAtom, internalGraphQLColorsConfigAtom, isBusinessHoursAtom, isCustomerServiceOpenAtom, newOrgConfigAtom, orgAnalyticsAmplitudeConfigAtom, orgAnalyticsConfigAtom, orgAnalyticsCustomerServiceConfigAtom };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GraphQlConfigValues } from "../../contexts/graphqlContext/graphqlContext.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai49 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/org/newOrgConfigAtom.d.ts
|
|
5
|
-
declare const newOrgConfigAtom:
|
|
5
|
+
declare const newOrgConfigAtom: jotai49.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 jotai78 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/org/newOrgConfigAtom.d.ts
|
|
5
|
-
declare const newOrgConfigAtom:
|
|
5
|
+
declare const newOrgConfigAtom: jotai78.PrimitiveAtom<GraphQlConfigValues | null> & {
|
|
6
6
|
init: GraphQlConfigValues | null;
|
|
7
7
|
};
|
|
8
8
|
//#endregion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OrgAnalyticsAmplitudeConfig, OrgAnalyticsConfig, OrgAnalyticsCustomerServiceConfig } from "../../application/models/api/orgAnalyticsConfig.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai58 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:
|
|
5
|
+
declare const orgAnalyticsConfigAtom: jotai58.WritableAtom<OrgAnalyticsConfig | undefined, [value: OrgAnalyticsConfig], void>;
|
|
6
|
+
declare const orgAnalyticsAmplitudeConfigAtom: jotai58.Atom<OrgAnalyticsAmplitudeConfig | undefined>;
|
|
7
|
+
declare const orgAnalyticsCustomerServiceConfigAtom: jotai58.Atom<OrgAnalyticsCustomerServiceConfig | undefined>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { orgAnalyticsAmplitudeConfigAtom, orgAnalyticsConfigAtom, orgAnalyticsCustomerServiceConfigAtom };
|
|
10
10
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JnQW5hbHl0aWNzQ29uZmlnLmQuY3RzIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hdG9tcy9vcmcvb3JnQW5hbHl0aWNzQ29uZmlnLmQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgT3JnQW5hbHl0aWNzQW1wbGl0dWRlQ29uZmlnLCBPcmdBbmFseXRpY3NDb25maWcsIE9yZ0FuYWx5dGljc0N1c3RvbWVyU2VydmljZUNvbmZpZyB9IGZyb20gJ3NyYy9hcHBsaWNhdGlvbi9tb2RlbHMvYXBpL29yZ0FuYWx5dGljc0NvbmZpZyc7XG5leHBvcnQgZGVjbGFyZSBjb25zdCBvcmdBbmFseXRpY3NDb25maWdBdG9tOiBpbXBvcnQoXCJqb3RhaVwiKS5Xcml0YWJsZUF0b208T3JnQW5hbHl0aWNzQ29uZmlnIHwgdW5kZWZpbmVkLCBbdmFsdWU6IE9yZ0FuYWx5dGljc0NvbmZpZ10sIHZvaWQ+O1xuZXhwb3J0IGRlY2xhcmUgY29uc3Qgb3JnQW5hbHl0aWNzQW1wbGl0dWRlQ29uZmlnQXRvbTogaW1wb3J0KFwiam90YWlcIikuQXRvbTxPcmdBbmFseXRpY3NBbXBsaXR1ZGVDb25maWcgfCB1bmRlZmluZWQ+O1xuZXhwb3J0IGRlY2xhcmUgY29uc3Qgb3JnQW5hbHl0aWNzQ3VzdG9tZXJTZXJ2aWNlQ29uZmlnQXRvbTogaW1wb3J0KFwiam90YWlcIikuQXRvbTxPcmdBbmFseXRpY3NDdXN0b21lclNlcnZpY2VDb25maWcgfCB1bmRlZmluZWQ+O1xuIl0sIm1hcHBpbmdzIjoiOzs7O0FBRUEsSUFBVyx5QkFBeUI7Q0FBQztPQUFXO09BQTBCO09BQTBCLFFBQVE7Q0FBTztBQUNuSCxJQUFXLGtDQUFrQztDQUFDO09BQVc7T0FBbUMsUUFBUTtDQUFLIn0=
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OrgAnalyticsAmplitudeConfig, OrgAnalyticsConfig, OrgAnalyticsCustomerServiceConfig } from "../../application/models/api/orgAnalyticsConfig.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai71 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:
|
|
5
|
+
declare const orgAnalyticsConfigAtom: jotai71.WritableAtom<OrgAnalyticsConfig | undefined, [value: OrgAnalyticsConfig], void>;
|
|
6
|
+
declare const orgAnalyticsAmplitudeConfigAtom: jotai71.Atom<OrgAnalyticsAmplitudeConfig | undefined>;
|
|
7
|
+
declare const orgAnalyticsCustomerServiceConfigAtom: jotai71.Atom<OrgAnalyticsCustomerServiceConfig | undefined>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { orgAnalyticsAmplitudeConfigAtom, orgAnalyticsConfigAtom, orgAnalyticsCustomerServiceConfigAtom };
|
|
10
10
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JnQW5hbHl0aWNzQ29uZmlnLmQudHMiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2F0b21zL29yZy9vcmdBbmFseXRpY3NDb25maWcuZC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBPcmdBbmFseXRpY3NBbXBsaXR1ZGVDb25maWcsIE9yZ0FuYWx5dGljc0NvbmZpZywgT3JnQW5hbHl0aWNzQ3VzdG9tZXJTZXJ2aWNlQ29uZmlnIH0gZnJvbSAnc3JjL2FwcGxpY2F0aW9uL21vZGVscy9hcGkvb3JnQW5hbHl0aWNzQ29uZmlnJztcbmV4cG9ydCBkZWNsYXJlIGNvbnN0IG9yZ0FuYWx5dGljc0NvbmZpZ0F0b206IGltcG9ydChcImpvdGFpXCIpLldyaXRhYmxlQXRvbTxPcmdBbmFseXRpY3NDb25maWcgfCB1bmRlZmluZWQsIFt2YWx1ZTogT3JnQW5hbHl0aWNzQ29uZmlnXSwgdm9pZD47XG5leHBvcnQgZGVjbGFyZSBjb25zdCBvcmdBbmFseXRpY3NBbXBsaXR1ZGVDb25maWdBdG9tOiBpbXBvcnQoXCJqb3RhaVwiKS5BdG9tPE9yZ0FuYWx5dGljc0FtcGxpdHVkZUNvbmZpZyB8IHVuZGVmaW5lZD47XG5leHBvcnQgZGVjbGFyZSBjb25zdCBvcmdBbmFseXRpY3NDdXN0b21lclNlcnZpY2VDb25maWdBdG9tOiBpbXBvcnQoXCJqb3RhaVwiKS5BdG9tPE9yZ0FuYWx5dGljc0N1c3RvbWVyU2VydmljZUNvbmZpZyB8IHVuZGVmaW5lZD47XG4iXSwibWFwcGluZ3MiOiI7Ozs7QUFFQSxJQUFXLHlCQUF5QjtDQUFDO09BQVc7T0FBMEI7T0FBMEIsUUFBUTtDQUFPO0FBQ25ILElBQVcsa0NBQWtDO0NBQUM7T0FBVztPQUFtQyxRQUFRO0NBQUsifQ==
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_message = require('../../application/models/message.cjs');
|
|
3
3
|
require('../../application/models/index.cjs');
|
|
4
|
-
const require_newOrgConfigAtom = require('../org/newOrgConfigAtom.cjs');
|
|
5
4
|
const require_atoms_chat_chatState = require('../chat/chatState.cjs');
|
|
6
5
|
const require_messageQueue = require('../chat/messageQueue.cjs');
|
|
7
6
|
require('../chat/index.cjs');
|
|
7
|
+
const require_newOrgConfigAtom = require('../org/newOrgConfigAtom.cjs');
|
|
8
8
|
require('../org/index.cjs');
|
|
9
9
|
const require_productFilters = require('./productFilters.cjs');
|
|
10
10
|
const require_atoms_search_types = require('./types.cjs');
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ProductResponseAttributes } from "../../application/models/api/response.cjs";
|
|
2
2
|
import { ChatSearchFilter, ChatSearchStateType, ProductSorting } from "./types.cjs";
|
|
3
3
|
import { Message } from "../../application/models/message.cjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as jotai73 from "jotai";
|
|
5
5
|
|
|
6
6
|
//#region src/atoms/search/chatSearch.d.ts
|
|
7
|
-
declare const chatSearchStateAtom:
|
|
7
|
+
declare const chatSearchStateAtom: jotai73.PrimitiveAtom<ChatSearchStateType> & {
|
|
8
8
|
init: ChatSearchStateType;
|
|
9
9
|
};
|
|
10
|
-
declare const chatSearchHasProductsAtom:
|
|
10
|
+
declare const chatSearchHasProductsAtom: jotai73.PrimitiveAtom<boolean> & {
|
|
11
11
|
init: boolean;
|
|
12
12
|
};
|
|
13
|
-
declare const chatSearchProductSortingAtom:
|
|
13
|
+
declare const chatSearchProductSortingAtom: jotai73.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: jotai73.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: jotai73.PrimitiveAtom<SelectedChatSearchFilterOption[]> & {
|
|
34
34
|
init: SelectedChatSearchFilterOption[];
|
|
35
35
|
};
|
|
36
|
-
declare const additiveDynamicFiltersAtom:
|
|
36
|
+
declare const additiveDynamicFiltersAtom: jotai73.Atom<boolean>;
|
|
37
37
|
declare const createChatSearchFilterOption: (filterId: string, filterItemId: string, displayName: string) => SelectedChatSearchFilterOption;
|
|
38
|
-
declare const chatSearchParamsAtom:
|
|
38
|
+
declare const chatSearchParamsAtom: jotai73.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: jotai73.WritableAtom<string | null, [value: string | null], void>;
|
|
46
|
+
declare const chatSearchIdAtom: jotai73.WritableAtom<string | null, [value: string | null], void>;
|
|
47
|
+
declare const ChatSearchTurnAtom: jotai73.Atom<{
|
|
48
48
|
productList: {
|
|
49
49
|
averageRating?: number | undefined;
|
|
50
50
|
colors?: string[] | undefined;
|
|
@@ -74,7 +74,7 @@ declare const ChatSearchTurnAtom: jotai48.Atom<{
|
|
|
74
74
|
filterList: string[];
|
|
75
75
|
messages: Message[];
|
|
76
76
|
} | null>;
|
|
77
|
-
declare const chatSearchProducts:
|
|
77
|
+
declare const chatSearchProducts: jotai73.Atom<{
|
|
78
78
|
averageRating?: number | undefined;
|
|
79
79
|
colors?: string[] | undefined;
|
|
80
80
|
description?: string | undefined;
|
|
@@ -97,19 +97,19 @@ declare const chatSearchProducts: jotai48.Atom<{
|
|
|
97
97
|
title: string;
|
|
98
98
|
url: string;
|
|
99
99
|
}[]>;
|
|
100
|
-
declare const chatSearchFiltersAtom:
|
|
100
|
+
declare const chatSearchFiltersAtom: jotai73.Atom<ChatSearchFilter[]>;
|
|
101
101
|
declare const setSearchParams: (query: string) => void;
|
|
102
|
-
declare const getSearchParamsAtom:
|
|
102
|
+
declare const getSearchParamsAtom: jotai73.Atom<{
|
|
103
103
|
es: string | null;
|
|
104
104
|
esq: string | null;
|
|
105
105
|
}>;
|
|
106
|
-
declare const initiateChatSearchAtom:
|
|
106
|
+
declare const initiateChatSearchAtom: jotai73.WritableAtom<null, [query: string], void> & {
|
|
107
107
|
init: null;
|
|
108
108
|
};
|
|
109
|
-
declare const handleSearchResultsAtom:
|
|
109
|
+
declare const handleSearchResultsAtom: jotai73.WritableAtom<null, [message: Message | undefined], void> & {
|
|
110
110
|
init: null;
|
|
111
111
|
};
|
|
112
|
-
declare const setChatSearchParamsAtom:
|
|
112
|
+
declare const setChatSearchParamsAtom: jotai73.WritableAtom<null, [query: string], void> & {
|
|
113
113
|
init: null;
|
|
114
114
|
};
|
|
115
115
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { MessageRole, MessageType } from "../../application/models/message.js";
|
|
2
2
|
import "../../application/models/index.js";
|
|
3
|
-
import { newOrgConfigAtom } from "../org/newOrgConfigAtom.js";
|
|
4
3
|
import { messagesAtom, replyEventCategoryAtom, userHasRepliedAtom, userQueryAtom } from "../chat/chatState.js";
|
|
5
4
|
import { queueUserEventAtom } from "../chat/messageQueue.js";
|
|
6
5
|
import "../chat/index.js";
|
|
6
|
+
import { newOrgConfigAtom } from "../org/newOrgConfigAtom.js";
|
|
7
7
|
import "../org/index.js";
|
|
8
8
|
import { ProductFilters } from "./productFilters.js";
|
|
9
9
|
import { ProductSorting } from "./types.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_newOrgConfigAtom = require('../org/newOrgConfigAtom.cjs');
|
|
3
|
-
const require_searchServiceAdapter = require('./searchServiceAdapter.cjs');
|
|
4
3
|
require('../org/index.cjs');
|
|
5
4
|
const require_productFilters = require('./productFilters.cjs');
|
|
6
5
|
const require_atoms_search_types = require('./types.cjs');
|
|
7
6
|
const require_productSorter = require('./productSorter.cjs');
|
|
7
|
+
const require_searchServiceAdapter = require('./searchServiceAdapter.cjs');
|
|
8
8
|
let jotai = require("jotai");
|
|
9
9
|
|
|
10
10
|
//#region src/atoms/search/searchAPI.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChatSearchFilter, ProductSorting } from "./types.cjs";
|
|
2
2
|
import { SearchParams, SearchResult } from "../../application/models/api/search.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as jotai61 from "jotai";
|
|
4
4
|
|
|
5
5
|
//#region src/atoms/search/searchAPI.d.ts
|
|
6
6
|
type SelectedFilterOption = {
|
|
@@ -15,28 +15,28 @@ interface SearchState {
|
|
|
15
15
|
error: string | null;
|
|
16
16
|
lastQuery: string | null;
|
|
17
17
|
}
|
|
18
|
-
declare const searchAtom:
|
|
18
|
+
declare const searchAtom: jotai61.PrimitiveAtom<SearchState> & {
|
|
19
19
|
init: SearchState;
|
|
20
20
|
};
|
|
21
|
-
declare const searchProductSortingAtom:
|
|
21
|
+
declare const searchProductSortingAtom: jotai61.PrimitiveAtom<ProductSorting> & {
|
|
22
22
|
init: ProductSorting;
|
|
23
23
|
};
|
|
24
|
-
declare const searchSelectedFiltersAtom:
|
|
24
|
+
declare const searchSelectedFiltersAtom: jotai61.PrimitiveAtom<SelectedFilterOption[]> & {
|
|
25
25
|
init: SelectedFilterOption[];
|
|
26
26
|
};
|
|
27
27
|
declare const createFilterOption: (filterId: string, filterItemId: string, displayName: string) => SelectedFilterOption;
|
|
28
|
-
declare const searchParamsAtom:
|
|
28
|
+
declare const searchParamsAtom: jotai61.WritableAtom<{
|
|
29
29
|
id: string | null;
|
|
30
30
|
query: string | null;
|
|
31
31
|
}, [value: {
|
|
32
32
|
id: string | null;
|
|
33
33
|
query: string | null;
|
|
34
34
|
}], void>;
|
|
35
|
-
declare const internalSearchSystemStateAtom:
|
|
35
|
+
declare const internalSearchSystemStateAtom: jotai61.PrimitiveAtom<boolean> & {
|
|
36
36
|
init: boolean;
|
|
37
37
|
};
|
|
38
|
-
declare const searchSystemAtom:
|
|
39
|
-
declare const filteredSearchProductsAtom:
|
|
38
|
+
declare const searchSystemAtom: jotai61.WritableAtom<boolean, [value: boolean], void>;
|
|
39
|
+
declare const filteredSearchProductsAtom: jotai61.Atom<{
|
|
40
40
|
averageRating?: number | undefined;
|
|
41
41
|
colors?: string[] | undefined;
|
|
42
42
|
description?: string | undefined;
|
|
@@ -59,17 +59,17 @@ declare const filteredSearchProductsAtom: jotai64.Atom<{
|
|
|
59
59
|
title: string;
|
|
60
60
|
url: string;
|
|
61
61
|
}[]>;
|
|
62
|
-
declare const searchFiltersAtom:
|
|
63
|
-
declare const addSearchFilterAtom:
|
|
62
|
+
declare const searchFiltersAtom: jotai61.Atom<ChatSearchFilter[]>;
|
|
63
|
+
declare const addSearchFilterAtom: jotai61.WritableAtom<null, [filter: SelectedFilterOption], void> & {
|
|
64
64
|
init: null;
|
|
65
65
|
};
|
|
66
|
-
declare const removeSearchFilterAtom:
|
|
66
|
+
declare const removeSearchFilterAtom: jotai61.WritableAtom<null, [filterId: string], void> & {
|
|
67
67
|
init: null;
|
|
68
68
|
};
|
|
69
|
-
declare const clearSearchFiltersAtom:
|
|
69
|
+
declare const clearSearchFiltersAtom: jotai61.WritableAtom<null, [], void> & {
|
|
70
70
|
init: null;
|
|
71
71
|
};
|
|
72
|
-
declare const performSearchAtom:
|
|
72
|
+
declare const performSearchAtom: jotai61.WritableAtom<null, [params: SearchParams, allowRedirect?: unknown], Promise<void>> & {
|
|
73
73
|
init: null;
|
|
74
74
|
};
|
|
75
75
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { newOrgConfigAtom } from "../org/newOrgConfigAtom.js";
|
|
2
|
-
import { getSearchServiceFunction } from "./searchServiceAdapter.js";
|
|
3
2
|
import "../org/index.js";
|
|
4
3
|
import { ProductFilters } from "./productFilters.js";
|
|
5
4
|
import { ProductSorting } from "./types.js";
|
|
6
5
|
import { ProductSorter } from "./productSorter.js";
|
|
6
|
+
import { getSearchServiceFunction } from "./searchServiceAdapter.js";
|
|
7
7
|
import { atom } from "jotai";
|
|
8
8
|
|
|
9
9
|
//#region src/atoms/search/searchAPI.ts
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
declare const formatFilterDisplayName: (displayName: string) => string;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { formatFilterDisplayName };
|
|
5
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
5
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuZC5jdHMiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2F0b21zL3NlYXJjaC91dGlscy5kLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBkZWNsYXJlIGNvbnN0IGZvcm1hdEZpbHRlckRpc3BsYXlOYW1lOiAoZGlzcGxheU5hbWU6IHN0cmluZykgPT4gc3RyaW5nO1xuIl0sIm1hcHBpbmdzIjoiO0FBQUEsSUFBVywwQkFBMEIsQ0FBQyxHQUFHIn0=
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as jotai89 from "jotai";
|
|
2
2
|
import { WidgetWrapperVariant } from "@envive-ai/react-toolkit-v3/WidgetWrapper";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/widget/chatPreviewLoading.d.ts
|
|
@@ -17,7 +17,7 @@ type ChatPreviewLoadingData = {
|
|
|
17
17
|
/**
|
|
18
18
|
* Atom to read ChatPreviewLoading data for a specific widgetConfigId.
|
|
19
19
|
*/
|
|
20
|
-
declare const chatPreviewLoadingDataAtom:
|
|
20
|
+
declare const chatPreviewLoadingDataAtom: jotai89.WritableAtom<Record<string, ChatPreviewLoadingData>, [update: {
|
|
21
21
|
widgetConfigId: string;
|
|
22
22
|
data: ChatPreviewLoadingData;
|
|
23
23
|
}], void>;
|
|
@@ -5,4 +5,4 @@ declare enum EnviveAgent {
|
|
|
5
5
|
}
|
|
6
6
|
//#endregion
|
|
7
7
|
export { EnviveAgent };
|
|
8
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
8
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuZC50cyIsIm5hbWVzIjpbXSwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29udGV4dHMvZW52aXZlQ29udGV4dC90eXBlcy5kLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBkZWNsYXJlIGVudW0gRW52aXZlQWdlbnQge1xuICAgIFNhbGVzQWdlbnQgPSBcInNhbGVzXCIsXG4gICAgU2VhcmNoQWdlbnQgPSBcInNlYXJjaFwiXG59XG4iXSwibWFwcGluZ3MiOiI7QUFBQSxJQUFXLGNBQWMsQ0FBQyxFQUFFIn0=
|
|
@@ -6,11 +6,11 @@ const require_eventNames = require('../../services/amplitudeService/eventNames.c
|
|
|
6
6
|
require('../../services/amplitudeService/amplitudeService.cjs');
|
|
7
7
|
const require_variant = require('../../atoms/app/variant.cjs');
|
|
8
8
|
require('../../atoms/app/index.cjs');
|
|
9
|
-
const require_amplitudeContext = require('../amplitudeContext/amplitudeContext.cjs');
|
|
10
|
-
require('../amplitudeContext/index.cjs');
|
|
11
9
|
const require_atoms_chat_chatState = require('../../atoms/chat/chatState.cjs');
|
|
12
10
|
const require_messageQueue = require('../../atoms/chat/messageQueue.cjs');
|
|
13
11
|
require('../../atoms/chat/index.cjs');
|
|
12
|
+
const require_amplitudeContext = require('../amplitudeContext/amplitudeContext.cjs');
|
|
13
|
+
require('../amplitudeContext/index.cjs');
|
|
14
14
|
const require_hooks_WidgetInteraction_types = require('../../hooks/WidgetInteraction/types.cjs');
|
|
15
15
|
const require_useWidgetInteraction = require('../../hooks/WidgetInteraction/useWidgetInteraction.cjs');
|
|
16
16
|
require('../../hooks/WidgetInteraction/index.cjs');
|
|
@@ -5,11 +5,11 @@ import { EnviveMetricsEventName, SpiffyMetricsEventName } from "../../services/a
|
|
|
5
5
|
import "../../services/amplitudeService/amplitudeService.js";
|
|
6
6
|
import { analyticsContextAtom, hasParsedVariantInfoAtom } from "../../atoms/app/variant.js";
|
|
7
7
|
import "../../atoms/app/index.js";
|
|
8
|
-
import { useAmplitude } from "../amplitudeContext/amplitudeContext.js";
|
|
9
|
-
import "../amplitudeContext/index.js";
|
|
10
8
|
import { formSubmitAtom, messagesAtom, replyEventCategoryAtom, suggestionsAtom } from "../../atoms/chat/chatState.js";
|
|
11
9
|
import { queueUserEventAtom } from "../../atoms/chat/messageQueue.js";
|
|
12
10
|
import "../../atoms/chat/index.js";
|
|
11
|
+
import { useAmplitude } from "../amplitudeContext/amplitudeContext.js";
|
|
12
|
+
import "../amplitudeContext/index.js";
|
|
13
13
|
import { WidgetInteractionComponent, WidgetInteractionType } from "../../hooks/WidgetInteraction/types.js";
|
|
14
14
|
import { useWidgetInteraction } from "../../hooks/WidgetInteraction/useWidgetInteraction.js";
|
|
15
15
|
import "../../hooks/WidgetInteraction/index.js";
|
|
@@ -11,11 +11,11 @@ const require_atoms_app_index = require('../../atoms/app/index.cjs');
|
|
|
11
11
|
const require_resolvedBaseConfigVersion = require('../../atoms/envive/resolvedBaseConfigVersion.cjs');
|
|
12
12
|
const require_application_commerce_api = require('../../application/commerce-api.cjs');
|
|
13
13
|
const require_useMessageInterceptor = require('../../interceptors/useMessageInterceptor.cjs');
|
|
14
|
+
const require_atoms_chat_chatState = require('../../atoms/chat/chatState.cjs');
|
|
14
15
|
const require_featureFlagServiceContext = require('../featureFlagServiceContext/featureFlagServiceContext.cjs');
|
|
15
16
|
const require_amplitudeContext = require('../amplitudeContext/amplitudeContext.cjs');
|
|
16
17
|
require('../amplitudeContext/index.cjs');
|
|
17
18
|
require('../featureFlagServiceContext/index.cjs');
|
|
18
|
-
const require_atoms_chat_chatState = require('../../atoms/chat/chatState.cjs');
|
|
19
19
|
const require_statusCodeError = require('./statusCodeError.cjs');
|
|
20
20
|
let __spiffy_ai_commerce_api_client = require("@spiffy-ai/commerce-api-client");
|
|
21
21
|
let react = require("react");
|
|
@@ -10,11 +10,11 @@ import { appDetailsAtom } from "../../atoms/app/index.js";
|
|
|
10
10
|
import { resolvedBaseConfigVersionAtom } from "../../atoms/envive/resolvedBaseConfigVersion.js";
|
|
11
11
|
import commerce_api_default from "../../application/commerce-api.js";
|
|
12
12
|
import { useMessageInterceptor } from "../../interceptors/useMessageInterceptor.js";
|
|
13
|
+
import { messagesAtom, pendingResponseAtom, requestFailureAtom, responseStreamingAtom, suggestionsAtom, suggestionsLoadingAtom } from "../../atoms/chat/chatState.js";
|
|
13
14
|
import { useFeatureFlagService } from "../featureFlagServiceContext/featureFlagServiceContext.js";
|
|
14
15
|
import { useAmplitude } from "../amplitudeContext/amplitudeContext.js";
|
|
15
16
|
import "../amplitudeContext/index.js";
|
|
16
17
|
import "../featureFlagServiceContext/index.js";
|
|
17
|
-
import { messagesAtom, pendingResponseAtom, requestFailureAtom, responseStreamingAtom, suggestionsAtom, suggestionsLoadingAtom } from "../../atoms/chat/chatState.js";
|
|
18
18
|
import { StatusCodeError } from "./statusCodeError.js";
|
|
19
19
|
import { UserEventCategory } from "@spiffy-ai/commerce-api-client";
|
|
20
20
|
import { useCallback } from "react";
|
|
@@ -3,10 +3,10 @@ const require_logger = require('../../application/logging/logger.cjs');
|
|
|
3
3
|
const require_atoms_envive_enviveConfig = require('../../atoms/envive/enviveConfig.cjs');
|
|
4
4
|
const require_sessionExceptions = require('../../types/exceptions/sessionExceptions.cjs');
|
|
5
5
|
const require_unsupportedProductExceptions = require('../../types/exceptions/unsupportedProductExceptions.cjs');
|
|
6
|
+
const require_searchServiceAdapter = require('../../atoms/search/searchServiceAdapter.cjs');
|
|
6
7
|
const require_useEnviveConfig = require('../enviveConfigContext/useEnviveConfig.cjs');
|
|
7
8
|
require('../enviveConfigContext/index.cjs');
|
|
8
9
|
const require_useAppDetails = require('../../hooks/AppDetails/useAppDetails.cjs');
|
|
9
|
-
const require_searchServiceAdapter = require('../../atoms/search/searchServiceAdapter.cjs');
|
|
10
10
|
let __spiffy_ai_commerce_api_client = require("@spiffy-ai/commerce-api-client");
|
|
11
11
|
let react = require("react");
|
|
12
12
|
react = require_rolldown_runtime.__toESM(react);
|
|
@@ -2,10 +2,10 @@ import logger_default from "../../application/logging/logger.js";
|
|
|
2
2
|
import { baseUrlAtom } from "../../atoms/envive/enviveConfig.js";
|
|
3
3
|
import { SessionRestartRequired } from "../../types/exceptions/sessionExceptions.js";
|
|
4
4
|
import { UnsupportedProductException } from "../../types/exceptions/unsupportedProductExceptions.js";
|
|
5
|
+
import { clearSearchServiceFunction, setSearchServiceFunction } from "../../atoms/search/searchServiceAdapter.js";
|
|
5
6
|
import { useEnviveConfig } from "../enviveConfigContext/useEnviveConfig.js";
|
|
6
7
|
import "../enviveConfigContext/index.js";
|
|
7
8
|
import { useAppDetails } from "../../hooks/AppDetails/useAppDetails.js";
|
|
8
|
-
import { clearSearchServiceFunction, setSearchServiceFunction } from "../../atoms/search/searchServiceAdapter.js";
|
|
9
9
|
import { Configuration, ResponseCategory, ResponseError, SearchApi } from "@spiffy-ai/commerce-api-client";
|
|
10
10
|
import React, { createContext, useCallback, useContext, useEffect, useMemo } from "react";
|
|
11
11
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GenerationParams } from "../../application/models/api/generationParams.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react2 from "react";
|
|
3
3
|
import { Dispatch, ReactNode, SetStateAction } from "react";
|
|
4
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
|
|
@@ -16,7 +16,7 @@ interface SystemSettingsContextProviderProps {
|
|
|
16
16
|
generationParams?: GenerationParams;
|
|
17
17
|
showDebugBar?: boolean;
|
|
18
18
|
}
|
|
19
|
-
declare const SystemSettingsContext:
|
|
19
|
+
declare const SystemSettingsContext: react2.Context<SystemSettingsContextParams | undefined>;
|
|
20
20
|
declare const SystemSettingsContextProvider: ({
|
|
21
21
|
children,
|
|
22
22
|
generationParams,
|