@envive-ai/react-hooks 0.3.5 → 0.3.6
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 +1 -1
- package/dist/application/commerce-api.js +1 -1
- 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/utils/analyticsUtils.cjs +1 -1
- package/dist/application/utils/analyticsUtils.js +1 -1
- package/dist/application/utils/elementObserver.d.cts +2 -2
- package/dist/application/utils/elementObserver.d.ts +2 -2
- 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 +17 -17
- package/dist/atoms/chat/chatState.d.ts +18 -18
- package/dist/atoms/chat/form.d.cts +2 -2
- package/dist/atoms/chat/form.d.ts +2 -2
- 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/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 +2 -2
- 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/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/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.d.cts +17 -17
- package/dist/atoms/search/chatSearch.d.ts +17 -17
- 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.ts +1 -1
- package/dist/atoms/widget/chatPreviewLoading.d.cts +2 -2
- package/dist/contexts/enviveContext/enviveContext.cjs +20 -17
- package/dist/contexts/enviveContext/enviveContext.d.cts +3 -1
- package/dist/contexts/enviveContext/enviveContext.d.ts +3 -1
- package/dist/contexts/enviveContext/enviveContext.js +20 -17
- package/dist/contexts/enviveContext/types.d.ts +1 -1
- package/dist/contexts/featureFlagContext/featureFlagContext.cjs +1 -1
- package/dist/contexts/featureFlagContext/featureFlagContext.js +1 -1
- package/dist/contexts/featureFlagServiceContext/featureFlagServiceContext.cjs +1 -1
- package/dist/contexts/featureFlagServiceContext/featureFlagServiceContext.js +1 -1
- package/dist/contexts/graphqlContext/graphqlContext.cjs +1 -1
- package/dist/contexts/graphqlContext/graphqlContext.js +1 -1
- package/dist/contexts/newOrgConfigContext/newOrgConfigContext.cjs +11 -9
- package/dist/contexts/newOrgConfigContext/newOrgConfigContext.d.cts +2 -1
- package/dist/contexts/newOrgConfigContext/newOrgConfigContext.d.ts +2 -1
- package/dist/contexts/newOrgConfigContext/newOrgConfigContext.js +11 -9
- package/dist/contexts/salesAgentContext/salesAgentService.cjs +1 -1
- package/dist/contexts/salesAgentContext/salesAgentService.js +1 -1
- package/dist/contexts/systemSettingsContext/systemSettingsContext.d.cts +2 -2
- package/dist/contexts/systemSettingsContext/systemSettingsContext.d.ts +2 -2
- package/dist/contexts/types.d.cts +1 -1
- package/dist/contexts/types.d.ts +1 -1
- package/dist/contexts/typesV3.d.cts +1 -1
- package/dist/contexts/typesV3.d.ts +1 -1
- package/dist/hooks/GrabAndScroll/useGrabAndScroll.d.cts +2 -2
- package/dist/hooks/GrabAndScroll/useGrabAndScroll.d.ts +2 -2
- package/dist/hooks/Search/useSearch.cjs +1 -1
- package/dist/hooks/Search/useSearch.js +1 -1
- package/dist/hooks/utils.d.ts +1 -1
- package/dist/packages/components-v3/dist/ImageGallery/components/Layout.cjs +2 -2
- package/dist/packages/components-v3/dist/ImageGallery/components/Layout.js +2 -2
- package/dist/packages/components-v3/dist/WelcomeMessage/components/Container.cjs +1 -1
- package/dist/packages/components-v3/dist/WelcomeMessage/components/Container.js +1 -1
- package/package.json +1 -1
- package/src/contexts/enviveContext/enviveContext.tsx +4 -2
- package/src/contexts/newOrgConfigContext/__tests__/newOrgConfigContext.test.tsx +234 -0
- package/src/contexts/newOrgConfigContext/newOrgConfigContext.tsx +15 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_productExperiment = require('./models/productExperiment.cjs');
|
|
3
2
|
const require_logger = require('./logging/logger.cjs');
|
|
3
|
+
const require_productExperiment = require('./models/productExperiment.cjs');
|
|
4
4
|
const require_validateOrgConfigResults = require('./models/validators/validateOrgConfigResults.cjs');
|
|
5
5
|
const require_validateResponse = require('./models/validators/validateResponse.cjs');
|
|
6
6
|
const require_validateSuggestion = require('./models/validators/validateSuggestion.cjs');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProductExperiment } from "./models/productExperiment.js";
|
|
2
1
|
import logger_default from "./logging/logger.js";
|
|
2
|
+
import { ProductExperiment } from "./models/productExperiment.js";
|
|
3
3
|
import { validateOrgConfigResults } from "./models/validators/validateOrgConfigResults.js";
|
|
4
4
|
import { validateResponse } from "./models/validators/validateResponse.js";
|
|
5
5
|
import { validateSuggestion } from "./models/validators/validateSuggestion.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_application_models_guards_utils = require('../utils.cjs');
|
|
3
2
|
const require_logger = require('../../../logging/logger.cjs');
|
|
3
|
+
const require_application_models_guards_utils = require('../utils.cjs');
|
|
4
4
|
let __spiffy_ai_commerce_api_client = require("@spiffy-ai/commerce-api-client");
|
|
5
5
|
|
|
6
6
|
//#region src/application/models/guards/api/isApiFormResponse.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { hasPropertyOfType } from "../utils.js";
|
|
2
1
|
import logger_default from "../../../logging/logger.js";
|
|
2
|
+
import { hasPropertyOfType } from "../utils.js";
|
|
3
3
|
import { FormType } from "@spiffy-ai/commerce-api-client";
|
|
4
4
|
|
|
5
5
|
//#region src/application/models/guards/api/isApiFormResponse.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_application_models_guards_utils = require('../utils.cjs');
|
|
3
2
|
const require_logger = require('../../../logging/logger.cjs');
|
|
3
|
+
const require_application_models_guards_utils = require('../utils.cjs');
|
|
4
4
|
let __spiffy_ai_commerce_api_client = require("@spiffy-ai/commerce-api-client");
|
|
5
5
|
|
|
6
6
|
//#region src/application/models/guards/api/isApiFormSubmittedResponseAttributes.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { hasPropertyOfType } from "../utils.js";
|
|
2
1
|
import logger_default from "../../../logging/logger.js";
|
|
2
|
+
import { hasPropertyOfType } from "../utils.js";
|
|
3
3
|
import { FormType } from "@spiffy-ai/commerce-api-client";
|
|
4
4
|
|
|
5
5
|
//#region src/application/models/guards/api/isApiFormSubmittedResponseAttributes.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_application_models_guards_utils = require('../utils.cjs');
|
|
2
1
|
const require_logger = require('../../../logging/logger.cjs');
|
|
2
|
+
const require_application_models_guards_utils = require('../utils.cjs');
|
|
3
3
|
|
|
4
4
|
//#region src/application/models/guards/api/isApiOrderResponseAttributes.ts
|
|
5
5
|
const isApiOrderItemInfo = (data) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { hasPropertyOfType } from "../utils.js";
|
|
2
1
|
import logger_default from "../../../logging/logger.js";
|
|
2
|
+
import { hasPropertyOfType } from "../utils.js";
|
|
3
3
|
|
|
4
4
|
//#region src/application/models/guards/api/isApiOrderResponseAttributes.ts
|
|
5
5
|
const isApiOrderItemInfo = (data) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_application_models_guards_utils = require('../utils.cjs');
|
|
2
1
|
const require_logger = require('../../../logging/logger.cjs');
|
|
2
|
+
const require_application_models_guards_utils = require('../utils.cjs');
|
|
3
3
|
|
|
4
4
|
//#region src/application/models/guards/api/isApiProductResponseAttributes.ts
|
|
5
5
|
const isApiProductResponseAttributes = (attributes) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { hasPropertyOfType } from "../utils.js";
|
|
2
1
|
import logger_default from "../../../logging/logger.js";
|
|
2
|
+
import { hasPropertyOfType } from "../utils.js";
|
|
3
3
|
|
|
4
4
|
//#region src/application/models/guards/api/isApiProductResponseAttributes.ts
|
|
5
5
|
const isApiProductResponseAttributes = (attributes) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_application_models_guards_utils = require('../utils.cjs');
|
|
3
2
|
const require_logger = require('../../../logging/logger.cjs');
|
|
3
|
+
const require_application_models_guards_utils = require('../utils.cjs');
|
|
4
4
|
let __spiffy_ai_commerce_api_client = require("@spiffy-ai/commerce-api-client");
|
|
5
5
|
|
|
6
6
|
//#region src/application/models/guards/api/isApiResponse.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { hasPropertyOfType } from "../utils.js";
|
|
2
1
|
import logger_default from "../../../logging/logger.js";
|
|
2
|
+
import { hasPropertyOfType } from "../utils.js";
|
|
3
3
|
import { ResponseCategory } from "@spiffy-ai/commerce-api-client";
|
|
4
4
|
|
|
5
5
|
//#region src/application/models/guards/api/isApiResponse.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
const require_logger = require('../logging/logger.cjs');
|
|
1
2
|
const require_isBaseEcommerceEvent = require('../models/guards/isBaseEcommerceEvent.cjs');
|
|
2
3
|
const require_isGA4EcommerceEvent = require('../models/guards/isGA4EcommerceEvent.cjs');
|
|
3
4
|
const require_isLegacyUAEcommerceEvent = require('../models/guards/isLegacyUAEcommerceEvent.cjs');
|
|
4
|
-
const require_logger = require('../logging/logger.cjs');
|
|
5
5
|
require('../models/index.cjs');
|
|
6
6
|
const require_amplitudeService = require('../../services/amplitudeService/amplitudeService.cjs');
|
|
7
7
|
require('../../contexts/amplitudeContext/amplitudeContext.cjs');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import logger_default from "../logging/logger.js";
|
|
1
2
|
import { isBaseEcommerceEvent } from "../models/guards/isBaseEcommerceEvent.js";
|
|
2
3
|
import { isGA4EcommerceEvent } from "../models/guards/isGA4EcommerceEvent.js";
|
|
3
4
|
import { isLegacyUAEcommerceEvent } from "../models/guards/isLegacyUAEcommerceEvent.js";
|
|
4
|
-
import logger_default from "../logging/logger.js";
|
|
5
5
|
import "../models/index.js";
|
|
6
6
|
import { SpiffyMetricsEventName } from "../../services/amplitudeService/amplitudeService.js";
|
|
7
7
|
import "../../contexts/amplitudeContext/amplitudeContext.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MouseEventTypes } from "./mouseEventTypes.cjs";
|
|
2
2
|
import { NodeSelector } from "./nodeSelector.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react2 from "react";
|
|
4
4
|
import { ReactElement } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/application/utils/elementObserver.d.ts
|
|
@@ -48,7 +48,7 @@ declare class ElementObserver {
|
|
|
48
48
|
init(): void;
|
|
49
49
|
watch(node: Node): void;
|
|
50
50
|
destroy(): void;
|
|
51
|
-
render(fn: () => ReactElement):
|
|
51
|
+
render(fn: () => ReactElement): react2.ReactPortal | undefined;
|
|
52
52
|
fire(event: MouseEventTypes): void;
|
|
53
53
|
show(): void;
|
|
54
54
|
hide(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MouseEventTypes } from "./mouseEventTypes.js";
|
|
2
2
|
import { NodeSelector } from "./nodeSelector.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react0 from "react";
|
|
4
4
|
import { ReactElement } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/application/utils/elementObserver.d.ts
|
|
@@ -48,7 +48,7 @@ declare class ElementObserver {
|
|
|
48
48
|
init(): void;
|
|
49
49
|
watch(node: Node): void;
|
|
50
50
|
destroy(): void;
|
|
51
|
-
render(fn: () => ReactElement):
|
|
51
|
+
render(fn: () => ReactElement): react0.ReactPortal | undefined;
|
|
52
52
|
fire(event: MouseEventTypes): void;
|
|
53
53
|
show(): void;
|
|
54
54
|
hide(): void;
|
|
@@ -24,4 +24,4 @@ declare const chatIdAtom: jotai0.WritableAtom<string, [string | typeof jotai_uti
|
|
|
24
24
|
declare const appDetailsAtom: jotai0.Atom<AppDetails>;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { AppDetails, appDetailsAtom, appSourceAtom, chatIdAtom, hasParsedVariantInfoAtom, pageUserEventAtom, pageVariantInfoAtom, supportedEventAtom, userIdAtom, userIdentityAtom, variantInfoAtom };
|
|
27
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsIm5hbWVzIjpbXSwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYXRvbXMvYXBwL2luZGV4LmQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29udGV4dEVudkVudW0sIENvbnRleHRTb3VyY2VFbnVtIH0gZnJvbSAnQHNwaWZmeS1haS9jb21tZXJjZS1hcGktY2xpZW50JztcbmltcG9ydCB7IFZhcmlhbnRJbmZvIH0gZnJvbSAnc3JjL2FwcGxpY2F0aW9uL21vZGVscyc7XG5pbXBvcnQgeyBVc2VySWRlbnRpdHlDb250ZXh0VHlwZSB9IGZyb20gJ3NyYy9jb250ZXh0cy91c2VySWRlbnRpdHlDb250ZXh0L3VzZXJJZGVudGl0eUNvbnRleHQnO1xuZXhwb3J0IGludGVyZmFjZSBBcHBEZXRhaWxzIHtcbiAgICBvcmdJZDogc3RyaW5nO1xuICAgIG9yZ1Nob3J0TmFtZTogc3RyaW5nO1xuICAgIGNoYXRJZDogc3RyaW5nO1xuICAgIHVzZXJJZDogc3RyaW5nO1xuICAgIHNvdXJjZTogQ29udGV4dFNvdXJjZUVudW07XG4gICAgZW52OiBDb250ZXh0RW52RW51bTtcbiAgICB2YXJpYW50SW5mbzogVmFyaWFudEluZm87XG59XG5leHBvcnQgeyBwYWdlVXNlckV2ZW50QXRvbSwgcGFnZVZhcmlhbnRJbmZvQXRvbSwgdmFyaWFudEluZm9BdG9tLCBoYXNQYXJzZWRWYXJpYW50SW5mb0F0b20sIHN1cHBvcnRlZEV2ZW50QXRvbSwgfSBmcm9tICcuL3ZhcmlhbnQnO1xuZXhwb3J0IGRlY2xhcmUgY29uc3QgdXNlcklkQXRvbTogaW1wb3J0KFwiam90YWlcIikuV3JpdGFibGVBdG9tPHN0cmluZywgW3ZhbHVlOiBzdHJpbmcgfCB1bmRlZmluZWRdLCB2b2lkPjtcbmV4cG9ydCBkZWNsYXJlIGNvbnN0IHVzZXJJZGVudGl0eUF0b206IGltcG9ydChcImpvdGFpXCIpLlByaW1pdGl2ZUF0b208VXNlcklkZW50aXR5Q29udGV4dFR5cGUgfCB1bmRlZmluZWQ+ICYge1xuICAgIGluaXQ6IFVzZXJJZGVudGl0eUNvbnRleHRUeXBlIHwgdW5kZWZpbmVkO1xufTtcbmV4cG9ydCBkZWNsYXJlIGNvbnN0IGFwcFNvdXJjZUF0b206IGltcG9ydChcImpvdGFpXCIpLkF0b208Q29udGV4dFNvdXJjZUVudW0+
|
|
27
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsIm5hbWVzIjpbXSwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYXRvbXMvYXBwL2luZGV4LmQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29udGV4dEVudkVudW0sIENvbnRleHRTb3VyY2VFbnVtIH0gZnJvbSAnQHNwaWZmeS1haS9jb21tZXJjZS1hcGktY2xpZW50JztcbmltcG9ydCB7IFZhcmlhbnRJbmZvIH0gZnJvbSAnc3JjL2FwcGxpY2F0aW9uL21vZGVscyc7XG5pbXBvcnQgeyBVc2VySWRlbnRpdHlDb250ZXh0VHlwZSB9IGZyb20gJ3NyYy9jb250ZXh0cy91c2VySWRlbnRpdHlDb250ZXh0L3VzZXJJZGVudGl0eUNvbnRleHQnO1xuZXhwb3J0IGludGVyZmFjZSBBcHBEZXRhaWxzIHtcbiAgICBvcmdJZDogc3RyaW5nO1xuICAgIG9yZ1Nob3J0TmFtZTogc3RyaW5nO1xuICAgIGNoYXRJZDogc3RyaW5nO1xuICAgIHVzZXJJZDogc3RyaW5nO1xuICAgIHNvdXJjZT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BEZXRhaWxzPjtcbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFLQSxJQUFXLGFBQWE7Q0FBQTtPQUFBO09BQUE7T0FBQTtDQUFBO0FBRXhCLElBQVcsYUFBTyxDQUFBLFdBQUEsT0FBQSxhQUFBO0FBQ2xCLElBQVcsbUJBQWtCO0NBQUE7T0FBQTtPQUFBLE9BQUE7T0FBQTtDQUFBO0FBQzdCLElBQVcsZ0JBQVk7Q0FBQTtPQUFBO09BQUEsT0FBQTtDQUFBO0FBQ3ZCLElBQVcsYUFBYTtDQUFDO09BQUcsYUFBQTtPQUFBLGFBQUE7T0FBQSxPQUFBO0NBQUE7QUFDNUIsSUFBQSxpQkFBQTtDQUFBO09BQUE7T0FBQSxPQUFBO0NBQUEifQ==
|
|
@@ -2,7 +2,7 @@ import { UserEvent as UserEvent$1 } from "../../application/models/api/userEvent
|
|
|
2
2
|
import { VariantInfo } from "../../application/models/variantInfo/variantInfo.cjs";
|
|
3
3
|
import { PageVariantInfo } from "../../contexts/pageContext/types.cjs";
|
|
4
4
|
import { PageVisitCategory, SupportedEventResponse, UserEvent } from "@spiffy-ai/commerce-api-client";
|
|
5
|
-
import * as
|
|
5
|
+
import * as jotai64 from "jotai";
|
|
6
6
|
|
|
7
7
|
//#region src/atoms/app/variant.d.ts
|
|
8
8
|
interface SupportedEvent extends Pick<SupportedEventResponse, 'supported' | 'ready' | 'category' | 'collections' | 'top_category'> {
|
|
@@ -73,15 +73,15 @@ interface UrlResolverResponse {
|
|
|
73
73
|
user_event?: UserEvent;
|
|
74
74
|
page_variant?: BackendPageVariantConfig;
|
|
75
75
|
}
|
|
76
|
-
declare const supportedEventAtom:
|
|
77
|
-
declare const hasParsedVariantInfoAtom:
|
|
76
|
+
declare const supportedEventAtom: jotai64.WritableAtom<SupportedEvent | undefined, [value: SupportedEvent | undefined], void>;
|
|
77
|
+
declare const hasParsedVariantInfoAtom: jotai64.PrimitiveAtom<boolean> & {
|
|
78
78
|
init: boolean;
|
|
79
79
|
};
|
|
80
|
-
declare const variantInfoAtom:
|
|
81
|
-
declare const pageUserEventAtom:
|
|
80
|
+
declare const variantInfoAtom: jotai64.WritableAtom<VariantInfo, [newVariant: VariantInfo], void>;
|
|
81
|
+
declare const pageUserEventAtom: jotai64.PrimitiveAtom<UserEvent$1 | undefined> & {
|
|
82
82
|
init: UserEvent$1 | undefined;
|
|
83
83
|
};
|
|
84
|
-
declare const pageVariantInfoAtom:
|
|
84
|
+
declare const pageVariantInfoAtom: jotai64.PrimitiveAtom<PageVariantInfo | undefined> & {
|
|
85
85
|
init: PageVariantInfo | undefined;
|
|
86
86
|
};
|
|
87
87
|
//#endregion
|
|
@@ -4,56 +4,56 @@ 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/amplitudeService.cjs";
|
|
7
|
-
import * as
|
|
7
|
+
import * as jotai5 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: jotai5.PrimitiveAtom<boolean> & {
|
|
12
12
|
init: boolean;
|
|
13
13
|
};
|
|
14
|
-
declare const replyEventCategoryAtom:
|
|
14
|
+
declare const replyEventCategoryAtom: jotai5.PrimitiveAtom<UserEventCategory> & {
|
|
15
15
|
init: UserEventCategory;
|
|
16
16
|
};
|
|
17
|
-
declare const userQueryAtom:
|
|
17
|
+
declare const userQueryAtom: jotai5.PrimitiveAtom<string | undefined> & {
|
|
18
18
|
init: string | undefined;
|
|
19
19
|
};
|
|
20
|
-
declare const suggestionAtom:
|
|
20
|
+
declare const suggestionAtom: jotai5.PrimitiveAtom<Suggestion | undefined> & {
|
|
21
21
|
init: Suggestion | undefined;
|
|
22
22
|
};
|
|
23
|
-
declare const askQuestionBtnClickedAtom:
|
|
23
|
+
declare const askQuestionBtnClickedAtom: jotai5.PrimitiveAtom<boolean> & {
|
|
24
24
|
init: boolean;
|
|
25
25
|
};
|
|
26
|
-
declare const messagesAtom:
|
|
26
|
+
declare const messagesAtom: jotai5.PrimitiveAtom<Message[][]> & {
|
|
27
27
|
init: Message[][];
|
|
28
28
|
};
|
|
29
|
-
declare const userEventsAtom:
|
|
29
|
+
declare const userEventsAtom: jotai5.PrimitiveAtom<UserEvent[]> & {
|
|
30
30
|
init: UserEvent[];
|
|
31
31
|
};
|
|
32
|
-
declare const suggestionsAtom:
|
|
32
|
+
declare const suggestionsAtom: jotai5.PrimitiveAtom<Suggestion[]> & {
|
|
33
33
|
init: Suggestion[];
|
|
34
34
|
};
|
|
35
|
-
declare const suggestionsLoadingAtom:
|
|
35
|
+
declare const suggestionsLoadingAtom: jotai5.PrimitiveAtom<boolean> & {
|
|
36
36
|
init: boolean;
|
|
37
37
|
};
|
|
38
|
-
declare const responseStreamingAtom:
|
|
38
|
+
declare const responseStreamingAtom: jotai5.PrimitiveAtom<boolean> & {
|
|
39
39
|
init: boolean;
|
|
40
40
|
};
|
|
41
|
-
declare const pendingResponseAtom:
|
|
41
|
+
declare const pendingResponseAtom: jotai5.PrimitiveAtom<boolean> & {
|
|
42
42
|
init: boolean;
|
|
43
43
|
};
|
|
44
|
-
declare const initializedAtom:
|
|
44
|
+
declare const initializedAtom: jotai5.PrimitiveAtom<boolean> & {
|
|
45
45
|
init: boolean;
|
|
46
46
|
};
|
|
47
|
-
declare const chatIsOpenAtom:
|
|
47
|
+
declare const chatIsOpenAtom: jotai5.PrimitiveAtom<boolean> & {
|
|
48
48
|
init: boolean;
|
|
49
49
|
};
|
|
50
|
-
declare const requestFailureAtom:
|
|
50
|
+
declare const requestFailureAtom: jotai5.PrimitiveAtom<boolean> & {
|
|
51
51
|
init: boolean;
|
|
52
52
|
};
|
|
53
|
-
declare const formSubmitAtom:
|
|
53
|
+
declare const formSubmitAtom: jotai5.PrimitiveAtom<FormSubmittedAttributes | undefined> & {
|
|
54
54
|
init: FormSubmittedAttributes | undefined;
|
|
55
55
|
};
|
|
56
|
-
declare const chatOnToggleAtom:
|
|
56
|
+
declare const chatOnToggleAtom: jotai5.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
|
|
@@ -4,58 +4,58 @@ 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/amplitudeService.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as jotai5 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: jotai5.PrimitiveAtom<boolean> & {
|
|
12
12
|
init: boolean;
|
|
13
13
|
};
|
|
14
|
-
declare const replyEventCategoryAtom:
|
|
14
|
+
declare const replyEventCategoryAtom: jotai5.PrimitiveAtom<UserEventCategory> & {
|
|
15
15
|
init: UserEventCategory;
|
|
16
16
|
};
|
|
17
|
-
declare const userQueryAtom:
|
|
17
|
+
declare const userQueryAtom: jotai5.PrimitiveAtom<string | undefined> & {
|
|
18
18
|
init: string | undefined;
|
|
19
19
|
};
|
|
20
|
-
declare const suggestionAtom:
|
|
20
|
+
declare const suggestionAtom: jotai5.PrimitiveAtom<Suggestion | undefined> & {
|
|
21
21
|
init: Suggestion | undefined;
|
|
22
22
|
};
|
|
23
|
-
declare const askQuestionBtnClickedAtom:
|
|
23
|
+
declare const askQuestionBtnClickedAtom: jotai5.PrimitiveAtom<boolean> & {
|
|
24
24
|
init: boolean;
|
|
25
25
|
};
|
|
26
|
-
declare const messagesAtom:
|
|
26
|
+
declare const messagesAtom: jotai5.PrimitiveAtom<Message[][]> & {
|
|
27
27
|
init: Message[][];
|
|
28
28
|
};
|
|
29
|
-
declare const userEventsAtom:
|
|
29
|
+
declare const userEventsAtom: jotai5.PrimitiveAtom<UserEvent[]> & {
|
|
30
30
|
init: UserEvent[];
|
|
31
31
|
};
|
|
32
|
-
declare const suggestionsAtom:
|
|
32
|
+
declare const suggestionsAtom: jotai5.PrimitiveAtom<Suggestion[]> & {
|
|
33
33
|
init: Suggestion[];
|
|
34
34
|
};
|
|
35
|
-
declare const suggestionsLoadingAtom:
|
|
35
|
+
declare const suggestionsLoadingAtom: jotai5.PrimitiveAtom<boolean> & {
|
|
36
36
|
init: boolean;
|
|
37
37
|
};
|
|
38
|
-
declare const responseStreamingAtom:
|
|
38
|
+
declare const responseStreamingAtom: jotai5.PrimitiveAtom<boolean> & {
|
|
39
39
|
init: boolean;
|
|
40
40
|
};
|
|
41
|
-
declare const pendingResponseAtom:
|
|
41
|
+
declare const pendingResponseAtom: jotai5.PrimitiveAtom<boolean> & {
|
|
42
42
|
init: boolean;
|
|
43
43
|
};
|
|
44
|
-
declare const initializedAtom:
|
|
44
|
+
declare const initializedAtom: jotai5.PrimitiveAtom<boolean> & {
|
|
45
45
|
init: boolean;
|
|
46
46
|
};
|
|
47
|
-
declare const chatIsOpenAtom:
|
|
47
|
+
declare const chatIsOpenAtom: jotai5.PrimitiveAtom<boolean> & {
|
|
48
48
|
init: boolean;
|
|
49
49
|
};
|
|
50
|
-
declare const requestFailureAtom:
|
|
50
|
+
declare const requestFailureAtom: jotai5.PrimitiveAtom<boolean> & {
|
|
51
51
|
init: boolean;
|
|
52
52
|
};
|
|
53
|
-
declare const formSubmitAtom:
|
|
53
|
+
declare const formSubmitAtom: jotai5.PrimitiveAtom<FormSubmittedAttributes | undefined> & {
|
|
54
54
|
init: FormSubmittedAttributes | undefined;
|
|
55
55
|
};
|
|
56
|
-
declare const chatOnToggleAtom:
|
|
56
|
+
declare const chatOnToggleAtom: jotai5.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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdFN0YXRlLmQudHMiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2F0b21zL2NoYXQvY2hhdFN0YXRlLmQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVXNlckV2ZW50Q2F0ZWdvcnkgfSBmcm9tICdAc3BpZmZ5LWFpL2NvbW1lcmNlLWFwaS1jbGllbnQvZGlzdC9tb2RlbHMvVXNlckV2ZW50Q2F0ZWdvcnknO1xuaW1wb3J0IHsgU3BpZmZ5TWV0cmljc0V2ZW50TmFtZSB9IGZyb20gJ3NyYy9jb250ZXh0cy9hbXBsaXR1ZGVDb250ZXh0L2FtcGxpdHVkZUNvbnRleHQnO1xuaW1wb3J0IHsgQ2hhdEVsZW1lbnREaXNwbGF5TG9jYXRpb25WMywgRm9ybVN1Ym1pdHRlZEF0dHJpYnV0ZXMsIE1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
|
2
|
+
import * as jotai61 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/form.d.ts
|
|
5
|
-
declare const handleFormSubmittedAtom:
|
|
5
|
+
declare const handleFormSubmittedAtom: jotai61.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 jotai33 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/form.d.ts
|
|
5
|
-
declare const handleFormSubmittedAtom:
|
|
5
|
+
declare const handleFormSubmittedAtom: jotai33.WritableAtom<null, [form: FormSubmittedAttributes], void> & {
|
|
6
6
|
init: null;
|
|
7
7
|
};
|
|
8
8
|
//#endregion
|
|
@@ -9,10 +9,10 @@ import { handleSuggestionAtom } from "./suggestions.cjs";
|
|
|
9
9
|
import { lastAssistantMessageAtom } from "./lastMessage.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 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: jotai5.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, formSubmitAtom, handleFormSubmittedAtom, handleReplyAtom, handleSuggestionAtom, hasReportedPerformanceMetricsAtom, initializedAtom, lastAssistantMessageAtom, logPerfMetricAtom, messagesAtom, pageLoadOffsetTimeAtom, pendingResponseAtom, performanceMetricsAtom, replyEventCategoryAtom, requestFailureAtom, resetPerformanceMetricsAtom, responseStreamingAtom, suggestionAtom, suggestionsAtom, suggestionsLoadingAtom, userEventsAtom, userHasRepliedAtom, userQueryAtom, widgetArrayAtom };
|
|
31
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
31
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC5jdHMiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2F0b21zL2NoYXQvaW5kZXguZC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NoYXRTdGF0ZSc7XG5leHBvcnQgKiBmcm9tICcuL3JlcGxpZXMnO1xuZXhwb3J0ICogZnJvbSAnLi9wZXJmb3JtYW5jZU1ldHJpY3MnO1xuZXhwb3J0ICogZnJvbSAnLi9mb3JtJztcbmV4cG9ydCAqIGZyb20gJy4vc3VnZ2VzdGlvbnMnO1xuZXhwb3J0ICogZnJvbSAnLi9sYXN0TWVzc2FnZSc7XG5leHBvcnQgKiBmcm9tICcuL3JlbmRlcmVkV2lkZ2V0UmVmcyc7XG5leHBvcnQgZGVjbGFyZSBjb25zdCBjaGF0QXRvbTogaW1wb3J0KFwiam90YWlcIikuQXRvbTx7XG4gICAgdXNlckhhc1JlcGxpZWQ6IGJvb2xlYW47XG4gICAgcmVwbHlFdmVudENhdGVnb3J5OiBpbXBvcnQoXCJAc3BpZmZ5LWFpL2NvbW1lcmNlLWFwaS1jbGllbnRcIikuVXNlckV2ZW50Q2F0ZWdvcnk7XG4gICAgdXNlclF1ZXJ5OiBzdHJpbmcgfCB1bmRlZmluZWQ7XG4gICAgc3VnZ2VzdGlvbjogaW1wb3J0KFwiLi4vLi4vYXBwbGljYXRpb24vbW9kZWxzXCIpLlN1Z2dlc3Rpb24gfCB1bmRlZmluZWQ7XG4gICAgYXNrUXVlc3Rpb25CdG5DbGlja2VkOiBib29sZWFuO1xuICAgIG1lc3NhZ2VzOiBpbXBvcnQoXCIuLi8uLi9hcHBsaWNhdGlvbi9tb2RlbHNcIikuTWVzc2FnZVtdW107XG4gICAgdXNlckV2ZW50czogaW1wb3J0KFwiLi4vLi4vYXBwbGljYXRpb24vbW9kZWxzXCIpLlVzZXJFdmVudFtdO1xuICAgIHN1Z2dlc3Rpb25zOiBpbXBvcnQoXCIuLi8uLi9hcHBsaWNhdGlvbi9tb2RlbHNcIikuU3VnZ2VzdGlvbltdO1xuICAgIHN1Z2dlc3Rpb25zTG9hZGluZzogYm9vbGVhbjtcbiAgICByZXNwb25zZVN0cmVhbWluZzogYm9vbGVhbjtcbiAgICBpc09wZW46IGJvb2xlYW47XG4gICAgb25Ub2dnbGU6IG51bGw7XG59PjtcbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7QUFVQSxJQUFXLFdBQVc7Q0FBQztPQUFVLGdDQUFBO09BQUE7T0FBQTtPQUFBO09BQUE7T0FBQSxRQUFBO0NBQUEifQ==
|
|
@@ -9,10 +9,10 @@ import { handleSuggestionAtom } from "./suggestions.js";
|
|
|
9
9
|
import { lastAssistantMessageAtom } from "./lastMessage.js";
|
|
10
10
|
import { addWidget, widgetArrayAtom } from "./renderedWidgetRefs.js";
|
|
11
11
|
import * as _spiffy_ai_commerce_api_client0 from "@spiffy-ai/commerce-api-client";
|
|
12
|
-
import * as
|
|
12
|
+
import * as jotai0 from "jotai";
|
|
13
13
|
|
|
14
14
|
//#region src/atoms/chat/index.d.ts
|
|
15
|
-
declare const chatAtom:
|
|
15
|
+
declare const chatAtom: jotai0.Atom<{
|
|
16
16
|
userHasReplied: boolean;
|
|
17
17
|
replyEventCategory: _spiffy_ai_commerce_api_client0.UserEventCategory;
|
|
18
18
|
userQuery: string | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Message } from "../../application/models/message.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai62 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/lastMessage.d.ts
|
|
5
|
-
declare const lastAssistantMessageAtom:
|
|
5
|
+
declare const lastAssistantMessageAtom: jotai62.Atom<Message[] | null>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { lastAssistantMessageAtom };
|
|
8
8
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGFzdE1lc3NhZ2UuZC5jdHMiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2F0b21zL2NoYXQvbGFzdE1lc3NhZ2UuZC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVjbGFyZSBjb25zdCBsYXN0QXNzaXN0YW50TWVzc2FnZUF0b206IGltcG9ydChcImpvdGFpXCIpLkF0b208aW1wb3J0KFwiLi4vLi4vYXBwbGljYXRpb24vbW9kZWxzXCIpLk1lc3NhZ2VbXSB8IG51bGw+O1xuIl0sIm1hcHBpbmdzIjoiIn0=
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Message } from "../../application/models/message.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai32 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/lastMessage.d.ts
|
|
5
|
-
declare const lastAssistantMessageAtom:
|
|
5
|
+
declare const lastAssistantMessageAtom: jotai32.Atom<Message[] | null>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { lastAssistantMessageAtom };
|
|
8
8
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGFzdE1lc3NhZ2UuZC50cyIsIm5hbWVzIjpbXSwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYXRvbXMvY2hhdC9sYXN0TWVzc2FnZS5kLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBkZWNsYXJlIGNvbnN0IGxhc3RBc3Npc3RhbnRNZXNzYWdlQXRvbTogaW1wb3J0KFwiam90YWlcIikuQXRvbTxpbXBvcnQoXCIuLi8uLi9hcHBsaWNhdGlvbi9tb2RlbHNcIikuTWVzc2FnZVtdIHwgbnVsbD47XG4iXSwibWFwcGluZ3MiOiIifQ==
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as jotai55 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: jotai55.WritableAtom<string | undefined, [string | typeof jotai_utils1.RESET | ((prev: string | undefined) => string | typeof jotai_utils1.RESET | undefined) | undefined], void>;
|
|
27
|
+
declare const pageLoadOffsetTimeAtom: jotai55.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: jotai68.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: jotai55.Atom<Map<PerfMetricsEvents, number>>;
|
|
36
|
+
declare const hasReportedPerformanceMetricsAtom: jotai55.PrimitiveAtom<boolean> & {
|
|
37
37
|
init: boolean;
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
@@ -42,7 +42,7 @@ declare const hasReportedPerformanceMetricsAtom: jotai68.PrimitiveAtom<boolean>
|
|
|
42
42
|
*
|
|
43
43
|
* @param value The performance metric name to log.
|
|
44
44
|
*/
|
|
45
|
-
declare const logPerfMetricAtom:
|
|
45
|
+
declare const logPerfMetricAtom: jotai55.WritableAtom<null, [value: PerfMetricsEvents], void> & {
|
|
46
46
|
init: null;
|
|
47
47
|
};
|
|
48
48
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as jotai27 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: jotai27.WritableAtom<string | undefined, [string | typeof jotai_utils1.RESET | ((prev: string | undefined) => string | typeof jotai_utils1.RESET | undefined) | undefined], void>;
|
|
27
|
+
declare const pageLoadOffsetTimeAtom: jotai27.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: jotai69.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: jotai27.Atom<Map<PerfMetricsEvents, number>>;
|
|
36
|
+
declare const hasReportedPerformanceMetricsAtom: jotai27.PrimitiveAtom<boolean> & {
|
|
37
37
|
init: boolean;
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
@@ -42,7 +42,7 @@ declare const hasReportedPerformanceMetricsAtom: jotai69.PrimitiveAtom<boolean>
|
|
|
42
42
|
*
|
|
43
43
|
* @param value The performance metric name to log.
|
|
44
44
|
*/
|
|
45
|
-
declare const logPerfMetricAtom:
|
|
45
|
+
declare const logPerfMetricAtom: jotai27.WritableAtom<null, [value: PerfMetricsEvents], void> & {
|
|
46
46
|
init: null;
|
|
47
47
|
};
|
|
48
48
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as jotai63 from "jotai";
|
|
2
2
|
|
|
3
3
|
//#region src/atoms/chat/renderedWidgetRefs.d.ts
|
|
4
|
-
declare const widgetArrayAtom:
|
|
4
|
+
declare const widgetArrayAtom: jotai63.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 jotai34 from "jotai";
|
|
2
2
|
|
|
3
3
|
//#region src/atoms/chat/renderedWidgetRefs.d.ts
|
|
4
|
-
declare const widgetArrayAtom:
|
|
4
|
+
declare const widgetArrayAtom: jotai34.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,12 +1,12 @@
|
|
|
1
1
|
import { Message } from "../../application/models/message.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai0 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: jotai0.WritableAtom<null, [HandleReplyParams], void> & {
|
|
10
10
|
init: null;
|
|
11
11
|
};
|
|
12
12
|
//#endregion
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Message } from "../../application/models/message.js";
|
|
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,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 jotai60 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/chat/suggestions.d.ts
|
|
5
|
-
declare const handleSuggestionAtom:
|
|
5
|
+
declare const handleSuggestionAtom: jotai60.WritableAtom<null, [suggestion: Suggestion], void> & {
|
|
6
6
|
init: null;
|
|
7
7
|
};
|
|
8
8
|
//#endregion
|