@envive-ai/react-hooks 0.3.44 → 0.3.45
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/models/api/responseGenerics.d.cts +4 -2
- package/dist/application/models/api/responseGenerics.d.ts +4 -2
- package/dist/application/models/index.cjs +1 -1
- package/dist/application/models/index.d.cts +2 -2
- package/dist/application/models/index.d.ts +2 -2
- package/dist/application/models/index.js +1 -1
- package/dist/application/models/validators/validateGraphQLFrontendConfig.cjs +1 -1
- package/dist/application/models/validators/validateGraphQLFrontendConfig.js +1 -1
- package/dist/application/models/validators/validateResponse.cjs +3 -2
- package/dist/application/models/validators/validateResponse.js +3 -2
- package/dist/application/utils/elementObserver.d.cts +2 -2
- package/dist/application/utils/elementObserver.d.ts +2 -2
- package/dist/atoms/app/index.d.cts +1 -1
- package/dist/atoms/app/index.d.ts +7 -7
- package/dist/atoms/chat/chatState.d.cts +18 -18
- package/dist/atoms/chat/chatState.d.ts +19 -19
- package/dist/atoms/chat/form.d.cts +2 -2
- package/dist/atoms/chat/form.d.ts +2 -2
- package/dist/atoms/chat/index.cjs +1 -1
- package/dist/atoms/chat/index.d.cts +3 -3
- package/dist/atoms/chat/index.js +1 -1
- package/dist/atoms/chat/lastMessage.d.cts +2 -2
- package/dist/atoms/chat/lastMessage.d.ts +2 -2
- package/dist/atoms/chat/messageQueue.d.cts +6 -6
- package/dist/atoms/chat/messageQueue.d.ts +6 -6
- package/dist/atoms/chat/performanceMetrics.d.cts +6 -6
- package/dist/atoms/chat/performanceMetrics.d.ts +6 -6
- package/dist/atoms/chat/renderedWidgetRefs.d.cts +2 -2
- package/dist/atoms/chat/renderedWidgetRefs.d.ts +2 -2
- package/dist/atoms/chat/replies.d.cts +2 -2
- package/dist/atoms/chat/replies.d.ts +2 -2
- package/dist/atoms/chat/suggestions.d.cts +2 -2
- package/dist/atoms/chat/suggestions.d.ts +2 -2
- package/dist/atoms/envive/enviveConfig.d.cts +12 -12
- package/dist/atoms/envive/enviveConfig.d.ts +13 -13
- package/dist/atoms/globalSearch/globalSearch.d.cts +5 -5
- package/dist/atoms/globalSearch/globalSearch.d.ts +5 -5
- package/dist/atoms/org/customerService.d.cts +6 -6
- package/dist/atoms/org/customerService.d.ts +6 -6
- package/dist/atoms/org/graphqlConfig.d.cts +4 -4
- package/dist/atoms/org/graphqlConfig.d.ts +4 -4
- package/dist/atoms/org/index.cjs +1 -1
- package/dist/atoms/org/index.js +1 -1
- package/dist/atoms/org/newOrgConfigAtom.d.cts +2 -2
- package/dist/atoms/org/newOrgConfigAtom.d.ts +2 -2
- package/dist/atoms/org/orgAnalyticsConfig.d.cts +4 -4
- package/dist/atoms/org/orgAnalyticsConfig.d.ts +4 -4
- package/dist/atoms/search/chatSearch.cjs +1 -1
- package/dist/atoms/search/chatSearch.d.cts +17 -17
- package/dist/atoms/search/chatSearch.js +1 -1
- package/dist/atoms/search/searchAPI.cjs +1 -1
- package/dist/atoms/search/searchAPI.d.cts +13 -13
- package/dist/atoms/search/searchAPI.d.ts +13 -13
- package/dist/atoms/search/searchAPI.js +1 -1
- package/dist/atoms/search/types.d.ts +1 -1
- package/dist/atoms/widget/chatPreviewLoading.d.cts +2 -2
- package/dist/atoms/widget/chatPreviewLoading.d.ts +2 -2
- package/dist/contexts/enviveContext/types.d.cts +1 -1
- 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/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/widgetConfigContext/widgetConfigContext.cjs +1 -1
- package/dist/contexts/widgetConfigContext/widgetConfigContext.js +1 -1
- package/dist/hooks/ChatToggle/useChatToggle.cjs +1 -1
- package/dist/hooks/ChatToggle/useChatToggle.js +1 -1
- package/dist/hooks/GrabAndScroll/useGrabAndScroll.d.cts +2 -2
- package/dist/hooks/Search/useSearch.cjs +3 -3
- package/dist/hooks/Search/useSearch.js +3 -3
- package/dist/hooks/ShopifyUrlOperations/useShopifyUrlOperations.d.cts +2 -2
- package/dist/hooks/ShopifyUrlOperations/useShopifyUrlOperations.d.ts +2 -2
- package/dist/hooks/utils.d.ts +1 -1
- package/dist/services/amplitudeService/amplitudeService.cjs +1 -1
- package/dist/services/amplitudeService/amplitudeService.js +1 -1
- package/dist/services/enviveConfigService/fetchGraphQLConfig.cjs +1 -1
- package/dist/services/enviveConfigService/fetchGraphQLConfig.js +1 -1
- package/dist/services/hardcopyService/hardcopyService.cjs +1 -1
- package/dist/services/hardcopyService/hardcopyService.js +1 -1
- package/package.json +1 -1
- package/src/application/models/api/responseGenerics.ts +3 -0
- package/src/application/models/validators/validateResponse.ts +1 -0
package/dist/hooks/utils.d.ts
CHANGED
|
@@ -19,4 +19,4 @@ declare enum SearchResultsState {
|
|
|
19
19
|
declare const getSearchResultsState: (isLoadingSearch: boolean, searchData: SearchResult | null) => SearchResultsState;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { SearchResultsState, createAppLoadedEvent, createVisitUserEvent, getSearchResultsState, isElementPartiallyVisible, isWithinBusinessHours };
|
|
22
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuZC50cyIsIm5hbWVzIjpbXSwic291cmNlcyI6WyIuLi8uLi9zcmMvaG9va3MvdXRpbHMuZC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBTZWFyY2hSZXN1bHQgfSBmcm9tICdzcmMvYXBwbGljYXRpb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|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_contexts_typesV3 = require('../../contexts/typesV3.cjs');
|
|
2
3
|
const require_logger = require('../../application/logging/logger.cjs');
|
|
3
4
|
const require_chatElementDisplayLocationV3 = require('../../application/models/chatElementDisplayLocationV3.cjs');
|
|
4
5
|
const require_event_types = require('../../events/event-types.cjs');
|
|
5
6
|
const require_events_index = require('../../events/index.cjs');
|
|
6
7
|
const require_localStorageContext = require('../../contexts/localStorageContext/localStorageContext.cjs');
|
|
7
8
|
require('../../contexts/localStorageContext/index.cjs');
|
|
8
|
-
const require_contexts_typesV3 = require('../../contexts/typesV3.cjs');
|
|
9
9
|
const require_eventNames = require('./eventNames.cjs');
|
|
10
10
|
const require_ga4ProjectionService = require('../ga4ProjectionService/ga4ProjectionService.cjs');
|
|
11
11
|
let __amplitude_analytics_browser = require("@amplitude/analytics-browser");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { WidgetTypeV3 } from "../../contexts/typesV3.js";
|
|
1
2
|
import logger_default from "../../application/logging/logger.js";
|
|
2
3
|
import { ChatElementDisplayLocationV3 } from "../../application/models/chatElementDisplayLocationV3.js";
|
|
3
4
|
import { SpiffyEvent } from "../../events/event-types.js";
|
|
4
5
|
import { EventsDispatcher } from "../../events/index.js";
|
|
5
6
|
import { LocalStorageKeys } from "../../contexts/localStorageContext/localStorageContext.js";
|
|
6
7
|
import "../../contexts/localStorageContext/index.js";
|
|
7
|
-
import { WidgetTypeV3 } from "../../contexts/typesV3.js";
|
|
8
8
|
import { EnviveMetricsEventName, SpiffyMetricsEventName } from "./eventNames.js";
|
|
9
9
|
import { projectToGA4 } from "../ga4ProjectionService/ga4ProjectionService.js";
|
|
10
10
|
import { createInstance } from "@amplitude/analytics-browser";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_contexts_types = require('../../contexts/types.cjs');
|
|
2
3
|
const require_logger = require('../../application/logging/logger.cjs');
|
|
3
4
|
const require_config_versions = require('../../types/config-versions.cjs');
|
|
4
5
|
const require_snakeToCamelTransformer = require('../../application/models/utils/snakeToCamelTransformer.cjs');
|
|
5
|
-
const require_contexts_types = require('../../contexts/types.cjs');
|
|
6
6
|
const require_validateGraphQLFrontendConfig = require('../../application/models/validators/validateGraphQLFrontendConfig.cjs');
|
|
7
7
|
require('../../application/models/index.cjs');
|
|
8
8
|
const require_getColorsAndFrontendQuery = require('../../application/models/graphql/queries/getColorsAndFrontendQuery.cjs');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { PageVariantTestType } from "../../contexts/types.js";
|
|
1
2
|
import logger_default from "../../application/logging/logger.js";
|
|
2
3
|
import { configVersionOverride } from "../../types/config-versions.js";
|
|
3
4
|
import { transformSnakeToCamel } from "../../application/models/utils/snakeToCamelTransformer.js";
|
|
4
|
-
import { PageVariantTestType } from "../../contexts/types.js";
|
|
5
5
|
import { validateAndTransformMountingConfig, validateAndTransformPageVariants } from "../../application/models/validators/validateGraphQLFrontendConfig.js";
|
|
6
6
|
import "../../application/models/index.js";
|
|
7
7
|
import { getColorsAndFrontendQuery } from "../../application/models/graphql/queries/getColorsAndFrontendQuery.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_contexts_typesV3 = require('../../contexts/typesV3.cjs');
|
|
2
3
|
const require_logger = require('../../application/logging/logger.cjs');
|
|
3
4
|
const require_urlsParser = require('../../application/utils/urlsParser.cjs');
|
|
4
5
|
const require_snakeToCamelTransformer = require('../../application/models/utils/snakeToCamelTransformer.cjs');
|
|
5
|
-
const require_contexts_typesV3 = require('../../contexts/typesV3.cjs');
|
|
6
6
|
const require_eventNames = require('../amplitudeService/eventNames.cjs');
|
|
7
7
|
require('../../application/utils/index.cjs');
|
|
8
8
|
const require_atomStore = require('../../atoms/atomStore/atomStore.cjs');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { WidgetTypeV3 } from "../../contexts/typesV3.js";
|
|
1
2
|
import logger_default from "../../application/logging/logger.js";
|
|
2
3
|
import { getQueryParam } from "../../application/utils/urlsParser.js";
|
|
3
4
|
import { toCamelCase } from "../../application/models/utils/snakeToCamelTransformer.js";
|
|
4
|
-
import { WidgetTypeV3 } from "../../contexts/typesV3.js";
|
|
5
5
|
import { EnviveMetricsEventName } from "../amplitudeService/eventNames.js";
|
|
6
6
|
import "../../application/utils/index.js";
|
|
7
7
|
import { getAtomStore } from "../../atoms/atomStore/atomStore.js";
|
package/package.json
CHANGED
|
@@ -43,11 +43,14 @@ export interface ApiReviewResponseAttributes {
|
|
|
43
43
|
onClick?: () => void;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
export type PageSourceType = 'faq_scrape' | 'product_info_scrape';
|
|
47
|
+
|
|
46
48
|
export interface ApiPageResponseAttributes {
|
|
47
49
|
id?: string;
|
|
48
50
|
title?: string;
|
|
49
51
|
description?: string;
|
|
50
52
|
url?: string;
|
|
53
|
+
source_type?: PageSourceType;
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
export interface ApiFormResponseSchemaAttributes {
|