@envive-ai/react-widgets-v3 0.3.44 → 0.3.46
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/debug/chatEmbed.cjs +1 -1
- package/dist/debug/chatEmbed.js +1 -1
- package/dist/debug/reportIssue.cjs +1 -1
- package/dist/debug/reportIssue.js +1 -1
- package/dist/hocs/withBaseWidget/withBaseWidget.d.cts +2 -2
- package/dist/hocs/withBaseWidget/withBaseWidget.d.ts +2 -2
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/CustomerServiceApi.cjs +20 -65
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/DefaultApi.cjs +87 -168
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/InferenceApi.cjs +20 -65
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/ProductsApi.cjs +4 -13
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/SearchApi.cjs +14 -50
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AISuggestionsServedMethodAttribution.cjs +78 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ExperimentNamespace.cjs +61 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/FormResponseAttributesFormCategory.cjs +0 -2
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/OrderItemInfo.cjs +3 -3
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/Organization.cjs +2 -2
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/OrganizationConfigResults.cjs +10 -2
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PLPAttributesAttributes.cjs +0 -2
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/StatsigExperimentConfigResolutionMetadata.cjs +73 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/StatsigExperimentLayerAssignment.cjs +64 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingResponseSpecificDetails.cjs +0 -2
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UserEventAttributes.cjs +0 -2
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/WidgetTextResponse.cjs +6 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/index.cjs +8 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/runtime.cjs +1 -3
- package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.cjs +6 -6
- package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.cts +3 -3
- package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.ts +3 -3
- package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.js +6 -6
- package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.cts +3 -3
- package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.ts +3 -3
- package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.cjs +4 -4
- package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.d.cts +3 -3
- package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.d.ts +3 -3
- package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.js +4 -4
- package/dist/widgets/FloatingChatWidget/FloatingChatOverlay.cjs +1 -0
- package/dist/widgets/FloatingChatWidget/FloatingChatOverlay.js +1 -0
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.cjs +3 -3
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.cts +2 -2
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.ts +2 -2
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.js +3 -3
- package/dist/widgets/FloatingChatWidget/hooks/useAutoPopup.cjs +1 -1
- package/dist/widgets/FloatingChatWidget/hooks/useAutoPopup.js +1 -1
- package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.cjs +2 -0
- package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.cts +2 -2
- package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.ts +2 -2
- package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.js +2 -0
- package/dist/widgets/ProductCardWidget/ProductCardWidget.cjs +3 -3
- package/dist/widgets/ProductCardWidget/ProductCardWidget.d.cts +2 -2
- package/dist/widgets/ProductCardWidget/ProductCardWidget.d.ts +2 -2
- package/dist/widgets/ProductCardWidget/ProductCardWidget.js +3 -3
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.cjs +4 -4
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.cts +3 -3
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.ts +3 -3
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.js +4 -4
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.cjs +3 -3
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.cts +2 -2
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.ts +2 -2
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.js +3 -3
- package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.cjs +1 -1
- package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.cts +2 -2
- package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.ts +2 -2
- package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.js +1 -1
- package/dist/widgets/SocialProofWidget/SocialProofWidget.cjs +6 -6
- package/dist/widgets/SocialProofWidget/SocialProofWidget.d.cts +3 -3
- package/dist/widgets/SocialProofWidget/SocialProofWidget.d.ts +3 -3
- package/dist/widgets/SocialProofWidget/SocialProofWidget.js +6 -6
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.cjs +2 -2
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.cts +2 -2
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.ts +2 -2
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.js +2 -2
- package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.cjs +1 -1
- package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.cts +2 -2
- package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.ts +2 -2
- package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.js +1 -1
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.cjs +3 -3
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.cts +3 -3
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.ts +3 -3
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.js +3 -3
- package/dist/widgets/hooks/useGetWidgetStatus.cjs +1 -1
- package/dist/widgets/hooks/useGetWidgetStatus.js +1 -1
- package/dist/widgets/utils/functions.cjs +1 -1
- package/dist/widgets/utils/functions.js +1 -1
- package/package.json +1 -1
- package/src/widgets/FloatingChatWidget/FloatingChatOverlay.tsx +1 -0
- package/src/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.tsx +3 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/@spiffy-ai/commerce-api-client/dist/models/StatsigExperimentConfigResolutionMetadata.js
|
|
6
|
+
var require_StatsigExperimentConfigResolutionMetadata = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
7
|
+
/**
|
|
8
|
+
* Commerce
|
|
9
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.1.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.StatsigExperimentConfigResolutionMetadataBaseVersionSourceEnum = void 0;
|
|
20
|
+
exports.instanceOfStatsigExperimentConfigResolutionMetadata = instanceOfStatsigExperimentConfigResolutionMetadata;
|
|
21
|
+
exports.StatsigExperimentConfigResolutionMetadataFromJSON = StatsigExperimentConfigResolutionMetadataFromJSON;
|
|
22
|
+
exports.StatsigExperimentConfigResolutionMetadataFromJSONTyped = StatsigExperimentConfigResolutionMetadataFromJSONTyped;
|
|
23
|
+
exports.StatsigExperimentConfigResolutionMetadataToJSON = StatsigExperimentConfigResolutionMetadataToJSON;
|
|
24
|
+
exports.StatsigExperimentConfigResolutionMetadataToJSONTyped = StatsigExperimentConfigResolutionMetadataToJSONTyped;
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
* @enum {string}
|
|
28
|
+
*/
|
|
29
|
+
var StatsigExperimentConfigResolutionMetadataBaseVersionSourceEnum;
|
|
30
|
+
(function(StatsigExperimentConfigResolutionMetadataBaseVersionSourceEnum$1) {
|
|
31
|
+
StatsigExperimentConfigResolutionMetadataBaseVersionSourceEnum$1["QueryParam"] = "query_param";
|
|
32
|
+
StatsigExperimentConfigResolutionMetadataBaseVersionSourceEnum$1["MerchantLayer"] = "merchant_layer";
|
|
33
|
+
StatsigExperimentConfigResolutionMetadataBaseVersionSourceEnum$1["Deployed"] = "deployed";
|
|
34
|
+
})(StatsigExperimentConfigResolutionMetadataBaseVersionSourceEnum || (exports.StatsigExperimentConfigResolutionMetadataBaseVersionSourceEnum = StatsigExperimentConfigResolutionMetadataBaseVersionSourceEnum = {}));
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the StatsigExperimentConfigResolutionMetadata interface.
|
|
37
|
+
*/
|
|
38
|
+
function instanceOfStatsigExperimentConfigResolutionMetadata(value) {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function StatsigExperimentConfigResolutionMetadataFromJSON(json) {
|
|
42
|
+
return StatsigExperimentConfigResolutionMetadataFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function StatsigExperimentConfigResolutionMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) return json;
|
|
46
|
+
return {
|
|
47
|
+
"base_version": json["base_version"] == null ? void 0 : json["base_version"],
|
|
48
|
+
"base_version_source": json["base_version_source"] == null ? void 0 : json["base_version_source"],
|
|
49
|
+
"errors": json["errors"] == null ? void 0 : json["errors"],
|
|
50
|
+
"layers_resolved": json["layers_resolved"] == null ? void 0 : json["layers_resolved"]
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function StatsigExperimentConfigResolutionMetadataToJSON(json) {
|
|
54
|
+
return StatsigExperimentConfigResolutionMetadataToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function StatsigExperimentConfigResolutionMetadataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) return value;
|
|
58
|
+
return {
|
|
59
|
+
"base_version": value["base_version"],
|
|
60
|
+
"base_version_source": value["base_version_source"],
|
|
61
|
+
"errors": value["errors"],
|
|
62
|
+
"layers_resolved": value["layers_resolved"]
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
}));
|
|
66
|
+
|
|
67
|
+
//#endregion
|
|
68
|
+
Object.defineProperty(exports, 'default', {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function () {
|
|
71
|
+
return require_StatsigExperimentConfigResolutionMetadata();
|
|
72
|
+
}
|
|
73
|
+
});
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
4
|
+
const require_ExperimentNamespace$1 = require('./ExperimentNamespace.cjs');
|
|
5
|
+
|
|
6
|
+
//#region ../../node_modules/@spiffy-ai/commerce-api-client/dist/models/StatsigExperimentLayerAssignment.js
|
|
7
|
+
var require_StatsigExperimentLayerAssignment = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
8
|
+
/**
|
|
9
|
+
* Commerce
|
|
10
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
11
|
+
*
|
|
12
|
+
* The version of the OpenAPI document: 1.1.0
|
|
13
|
+
*
|
|
14
|
+
*
|
|
15
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
16
|
+
* https://openapi-generator.tech
|
|
17
|
+
* Do not edit the class manually.
|
|
18
|
+
*/
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.instanceOfStatsigExperimentLayerAssignment = instanceOfStatsigExperimentLayerAssignment;
|
|
21
|
+
exports.StatsigExperimentLayerAssignmentFromJSON = StatsigExperimentLayerAssignmentFromJSON;
|
|
22
|
+
exports.StatsigExperimentLayerAssignmentFromJSONTyped = StatsigExperimentLayerAssignmentFromJSONTyped;
|
|
23
|
+
exports.StatsigExperimentLayerAssignmentToJSON = StatsigExperimentLayerAssignmentToJSON;
|
|
24
|
+
exports.StatsigExperimentLayerAssignmentToJSONTyped = StatsigExperimentLayerAssignmentToJSONTyped;
|
|
25
|
+
const ExperimentNamespace_1 = require_ExperimentNamespace$1.default;
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the StatsigExperimentLayerAssignment interface.
|
|
28
|
+
*/
|
|
29
|
+
function instanceOfStatsigExperimentLayerAssignment(value) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function StatsigExperimentLayerAssignmentFromJSON(json) {
|
|
33
|
+
return StatsigExperimentLayerAssignmentFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function StatsigExperimentLayerAssignmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) return json;
|
|
37
|
+
return {
|
|
38
|
+
"allocated_experiment_name": json["allocated_experiment_name"] == null ? void 0 : json["allocated_experiment_name"],
|
|
39
|
+
"group_name": json["group_name"] == null ? void 0 : json["group_name"],
|
|
40
|
+
"layer_name": json["layer_name"] == null ? void 0 : json["layer_name"],
|
|
41
|
+
"namespace": json["namespace"] == null ? void 0 : (0, ExperimentNamespace_1.ExperimentNamespaceFromJSON)(json["namespace"])
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function StatsigExperimentLayerAssignmentToJSON(json) {
|
|
45
|
+
return StatsigExperimentLayerAssignmentToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function StatsigExperimentLayerAssignmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) return value;
|
|
49
|
+
return {
|
|
50
|
+
"allocated_experiment_name": value["allocated_experiment_name"],
|
|
51
|
+
"group_name": value["group_name"],
|
|
52
|
+
"layer_name": value["layer_name"],
|
|
53
|
+
"namespace": (0, ExperimentNamespace_1.ExperimentNamespaceToJSON)(value["namespace"])
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}));
|
|
57
|
+
|
|
58
|
+
//#endregion
|
|
59
|
+
Object.defineProperty(exports, 'default', {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function () {
|
|
62
|
+
return require_StatsigExperimentLayerAssignment();
|
|
63
|
+
}
|
|
64
|
+
});
|
|
@@ -31,7 +31,6 @@ var require_UrlResolvingResponseSpecificDetails = /* @__PURE__ */ require_rolldo
|
|
|
31
31
|
}
|
|
32
32
|
function UrlResolvingResponseSpecificDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
33
|
if (json == null) return json;
|
|
34
|
-
if (typeof json !== "object") return json;
|
|
35
34
|
if ((0, UrlResolvingGenericConfig_1.instanceOfUrlResolvingGenericConfig)(json)) return (0, UrlResolvingGenericConfig_1.UrlResolvingGenericConfigFromJSONTyped)(json, true);
|
|
36
35
|
if ((0, UrlResolvingPDPConfig_1.instanceOfUrlResolvingPDPConfig)(json)) return (0, UrlResolvingPDPConfig_1.UrlResolvingPDPConfigFromJSONTyped)(json, true);
|
|
37
36
|
if ((0, UrlResolvingPLPConfig_1.instanceOfUrlResolvingPLPConfig)(json)) return (0, UrlResolvingPLPConfig_1.UrlResolvingPLPConfigFromJSONTyped)(json, true);
|
|
@@ -42,7 +41,6 @@ var require_UrlResolvingResponseSpecificDetails = /* @__PURE__ */ require_rolldo
|
|
|
42
41
|
}
|
|
43
42
|
function UrlResolvingResponseSpecificDetailsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
43
|
if (value == null) return value;
|
|
45
|
-
if (typeof value !== "object") return value;
|
|
46
44
|
if ((0, UrlResolvingGenericConfig_1.instanceOfUrlResolvingGenericConfig)(value)) return (0, UrlResolvingGenericConfig_1.UrlResolvingGenericConfigToJSON)(value);
|
|
47
45
|
if ((0, UrlResolvingPDPConfig_1.instanceOfUrlResolvingPDPConfig)(value)) return (0, UrlResolvingPDPConfig_1.UrlResolvingPDPConfigToJSON)(value);
|
|
48
46
|
if ((0, UrlResolvingPLPConfig_1.instanceOfUrlResolvingPLPConfig)(value)) return (0, UrlResolvingPLPConfig_1.UrlResolvingPLPConfigToJSON)(value);
|
package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UserEventAttributes.cjs
CHANGED
|
@@ -39,7 +39,6 @@ var require_UserEventAttributes = /* @__PURE__ */ require_rolldown_runtime.__com
|
|
|
39
39
|
}
|
|
40
40
|
function UserEventAttributesFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
41
|
if (json == null) return json;
|
|
42
|
-
if (typeof json !== "object") return json;
|
|
43
42
|
if ((0, FormSubmittedAttributes_1.instanceOfFormSubmittedAttributes)(json)) return (0, FormSubmittedAttributes_1.FormSubmittedAttributesFromJSONTyped)(json, true);
|
|
44
43
|
if ((0, PDPAttributes_1.instanceOfPDPAttributes)(json)) return (0, PDPAttributes_1.PDPAttributesFromJSONTyped)(json, true);
|
|
45
44
|
if ((0, PLPAttributes_1.instanceOfPLPAttributes)(json)) return (0, PLPAttributes_1.PLPAttributesFromJSONTyped)(json, true);
|
|
@@ -54,7 +53,6 @@ var require_UserEventAttributes = /* @__PURE__ */ require_rolldown_runtime.__com
|
|
|
54
53
|
}
|
|
55
54
|
function UserEventAttributesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
55
|
if (value == null) return value;
|
|
57
|
-
if (typeof value !== "object") return value;
|
|
58
56
|
if ((0, FormSubmittedAttributes_1.instanceOfFormSubmittedAttributes)(value)) return (0, FormSubmittedAttributes_1.FormSubmittedAttributesToJSON)(value);
|
|
59
57
|
if ((0, PDPAttributes_1.instanceOfPDPAttributes)(value)) return (0, PDPAttributes_1.PDPAttributesToJSON)(value);
|
|
60
58
|
if ((0, PLPAttributes_1.instanceOfPLPAttributes)(value)) return (0, PLPAttributes_1.PLPAttributesToJSON)(value);
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
4
|
+
const require_runtime$1 = require('../runtime.cjs');
|
|
5
|
+
const require_AISuggestionsServedMethodAttribution$1 = require('./AISuggestionsServedMethodAttribution.cjs');
|
|
4
6
|
const require_WidgetType$1 = require('./WidgetType.cjs');
|
|
5
7
|
|
|
6
8
|
//#region ../../node_modules/@spiffy-ai/commerce-api-client/dist/models/WidgetTextResponse.js
|
|
@@ -22,6 +24,8 @@ var require_WidgetTextResponse = /* @__PURE__ */ require_rolldown_runtime.__comm
|
|
|
22
24
|
exports.WidgetTextResponseFromJSONTyped = WidgetTextResponseFromJSONTyped;
|
|
23
25
|
exports.WidgetTextResponseToJSON = WidgetTextResponseToJSON;
|
|
24
26
|
exports.WidgetTextResponseToJSONTyped = WidgetTextResponseToJSONTyped;
|
|
27
|
+
const runtime_1 = require_runtime$1.default;
|
|
28
|
+
const AISuggestionsServedMethodAttribution_1 = require_AISuggestionsServedMethodAttribution$1.default;
|
|
25
29
|
const WidgetType_1 = require_WidgetType$1.default;
|
|
26
30
|
/**
|
|
27
31
|
* Check if a given object implements the WidgetTextResponse interface.
|
|
@@ -37,6 +41,7 @@ var require_WidgetTextResponse = /* @__PURE__ */ require_rolldown_runtime.__comm
|
|
|
37
41
|
function WidgetTextResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
42
|
if (json == null) return json;
|
|
39
43
|
return {
|
|
44
|
+
"ai_suggestions_attribution_by_slot": json["ai_suggestions_attribution_by_slot"] == null ? void 0 : (0, runtime_1.mapValues)(json["ai_suggestions_attribution_by_slot"], AISuggestionsServedMethodAttribution_1.AISuggestionsServedMethodAttributionFromJSON),
|
|
40
45
|
"id": json["id"] == null ? void 0 : json["id"],
|
|
41
46
|
"request_id": json["request_id"] == null ? void 0 : json["request_id"],
|
|
42
47
|
"widget_text": json["widget_text"],
|
|
@@ -49,6 +54,7 @@ var require_WidgetTextResponse = /* @__PURE__ */ require_rolldown_runtime.__comm
|
|
|
49
54
|
function WidgetTextResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
55
|
if (value == null) return value;
|
|
51
56
|
return {
|
|
57
|
+
"ai_suggestions_attribution_by_slot": value["ai_suggestions_attribution_by_slot"] == null ? void 0 : (0, runtime_1.mapValues)(value["ai_suggestions_attribution_by_slot"], AISuggestionsServedMethodAttribution_1.AISuggestionsServedMethodAttributionToJSON),
|
|
52
58
|
"id": value["id"],
|
|
53
59
|
"request_id": value["request_id"],
|
|
54
60
|
"widget_text": value["widget_text"],
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
4
|
+
const require_AISuggestionsServedMethodAttribution$1 = require('./AISuggestionsServedMethodAttribution.cjs');
|
|
4
5
|
const require_CustomerServiceProvider$1 = require('./CustomerServiceProvider.cjs');
|
|
5
6
|
const require_AddNoteToLatestConversationRequest$1 = require('./AddNoteToLatestConversationRequest.cjs');
|
|
6
7
|
const require_AddNoteToLatestConversationResponse$1 = require('./AddNoteToLatestConversationResponse.cjs');
|
|
@@ -19,6 +20,7 @@ const require_CreateConversationResponse$1 = require('./CreateConversationRespon
|
|
|
19
20
|
const require_CustServiceAttachment$1 = require('./CustServiceAttachment.cjs');
|
|
20
21
|
const require_CustServiceMessage$1 = require('./CustServiceMessage.cjs');
|
|
21
22
|
const require_CustServiceConversationMessages$1 = require('./CustServiceConversationMessages.cjs');
|
|
23
|
+
const require_ExperimentNamespace$1 = require('./ExperimentNamespace.cjs');
|
|
22
24
|
const require_ManualForm$1 = require('./ManualForm.cjs');
|
|
23
25
|
const require_FormResponseAttributesFormCategory$1 = require('./FormResponseAttributesFormCategory.cjs');
|
|
24
26
|
const require_FormResponseAttributes$1 = require('./FormResponseAttributes.cjs');
|
|
@@ -55,6 +57,8 @@ const require_OrderItemInfo$1 = require('./OrderItemInfo.cjs');
|
|
|
55
57
|
const require_OrderResponseAttributes$1 = require('./OrderResponseAttributes.cjs');
|
|
56
58
|
const require_Organization$1 = require('./Organization.cjs');
|
|
57
59
|
const require_OrganizationConfig$1 = require('./OrganizationConfig.cjs');
|
|
60
|
+
const require_StatsigExperimentLayerAssignment$1 = require('./StatsigExperimentLayerAssignment.cjs');
|
|
61
|
+
const require_StatsigExperimentConfigResolutionMetadata$1 = require('./StatsigExperimentConfigResolutionMetadata.cjs');
|
|
58
62
|
const require_OrganizationSettings$1 = require('./OrganizationSettings.cjs');
|
|
59
63
|
const require_StatsigExperiment$1 = require('./StatsigExperiment.cjs');
|
|
60
64
|
const require_StatsigFeatureGate$1 = require('./StatsigFeatureGate.cjs');
|
|
@@ -116,6 +120,7 @@ var require_models = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((ex
|
|
|
116
120
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$1, p)) __createBinding(exports$1, m, p);
|
|
117
121
|
};
|
|
118
122
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
123
|
+
__exportStar(require_AISuggestionsServedMethodAttribution$1.default, exports);
|
|
119
124
|
__exportStar(require_AddNoteToLatestConversationRequest$1.default, exports);
|
|
120
125
|
__exportStar(require_AddNoteToLatestConversationResponse$1.default, exports);
|
|
121
126
|
__exportStar(require_AddToCartAttributes$1.default, exports);
|
|
@@ -133,6 +138,7 @@ var require_models = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((ex
|
|
|
133
138
|
__exportStar(require_CustServiceCustomer$1.default, exports);
|
|
134
139
|
__exportStar(require_CustServiceMessage$1.default, exports);
|
|
135
140
|
__exportStar(require_CustomerServiceProvider$1.default, exports);
|
|
141
|
+
__exportStar(require_ExperimentNamespace$1.default, exports);
|
|
136
142
|
__exportStar(require_FormResponseAttributes$1.default, exports);
|
|
137
143
|
__exportStar(require_FormResponseAttributesFormCategory$1.default, exports);
|
|
138
144
|
__exportStar(require_FormSubmittedAttributes$1.default, exports);
|
|
@@ -185,6 +191,8 @@ var require_models = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((ex
|
|
|
185
191
|
__exportStar(require_SendMessageRequest$1.default, exports);
|
|
186
192
|
__exportStar(require_SendMessageResponse$1.default, exports);
|
|
187
193
|
__exportStar(require_StatsigExperiment$1.default, exports);
|
|
194
|
+
__exportStar(require_StatsigExperimentConfigResolutionMetadata$1.default, exports);
|
|
195
|
+
__exportStar(require_StatsigExperimentLayerAssignment$1.default, exports);
|
|
188
196
|
__exportStar(require_StatsigFeatureGate$1.default, exports);
|
|
189
197
|
__exportStar(require_Suggestion$1.default, exports);
|
|
190
198
|
__exportStar(require_SuggestionCategory$1.default, exports);
|
|
@@ -262,9 +262,7 @@ var require_runtime = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((e
|
|
|
262
262
|
return value !== null && value !== void 0;
|
|
263
263
|
}
|
|
264
264
|
function mapValues(data, fn) {
|
|
265
|
-
|
|
266
|
-
for (const key of Object.keys(data)) result[key] = fn(data[key]);
|
|
267
|
-
return result;
|
|
265
|
+
return Object.keys(data).reduce((acc, key) => Object.assign(Object.assign({}, acc), { [key]: fn(data[key]) }), {});
|
|
268
266
|
}
|
|
269
267
|
function canConsumeForm(consumes) {
|
|
270
268
|
for (const consume of consumes) if ("multipart/form-data" === consume.contentType) return true;
|
|
@@ -5,19 +5,19 @@ const require_ChatPreviewLoadingWidget = require('../ChatPreviewLoadingWidget/Ch
|
|
|
5
5
|
let react = require("react");
|
|
6
6
|
let __envive_ai_react_hooks_contexts_amplitudeContext = require("@envive-ai/react-hooks/contexts/amplitudeContext");
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
-
let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
|
|
9
|
-
let __envive_ai_react_hooks_contexts_salesAgentContext = require("@envive-ai/react-hooks/contexts/salesAgentContext");
|
|
10
8
|
let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/contexts/typesV3");
|
|
11
|
-
let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
|
|
12
9
|
let jotai = require("jotai");
|
|
13
10
|
let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
|
|
14
11
|
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
15
|
-
let
|
|
16
|
-
let
|
|
12
|
+
let __envive_ai_react_hooks_contexts_salesAgentContext = require("@envive-ai/react-hooks/contexts/salesAgentContext");
|
|
13
|
+
let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
|
|
17
14
|
let __envive_ai_react_hooks_hooks_WidgetInteraction_types = require("@envive-ai/react-hooks/hooks/WidgetInteraction/types");
|
|
18
|
-
let __envive_ai_react_toolkit_v3_ChatPreviewComparison = require("@envive-ai/react-toolkit-v3/ChatPreviewComparison");
|
|
19
15
|
let __envive_ai_react_toolkit_v3_PromptCarousel = require("@envive-ai/react-toolkit-v3/PromptCarousel");
|
|
20
16
|
let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
|
|
17
|
+
let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
|
|
18
|
+
let __envive_ai_react_hooks_atoms_app = require("@envive-ai/react-hooks/atoms/app");
|
|
19
|
+
let __envive_ai_react_hooks_hooks_WidgetInteraction = require("@envive-ai/react-hooks/hooks/WidgetInteraction");
|
|
20
|
+
let __envive_ai_react_toolkit_v3_ChatPreviewComparison = require("@envive-ai/react-toolkit-v3/ChatPreviewComparison");
|
|
21
21
|
|
|
22
22
|
//#region src/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.tsx
|
|
23
23
|
const ChatPreviewComparisonWidgetHandler = (props) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.ts
|
|
5
5
|
declare const ChatPreviewComparisonWidgetWithBaseWidget: {
|
|
6
|
-
(props: BaseWidgetProps):
|
|
6
|
+
(props: BaseWidgetProps): react_jsx_runtime8.JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
interface ChatPreviewComparisonWidgetProps {
|
|
@@ -12,7 +12,7 @@ interface ChatPreviewComparisonWidgetProps {
|
|
|
12
12
|
declare const ChatPreviewComparisonWidget: {
|
|
13
13
|
({
|
|
14
14
|
widgetConfigId
|
|
15
|
-
}: ChatPreviewComparisonWidgetProps):
|
|
15
|
+
}: ChatPreviewComparisonWidgetProps): react_jsx_runtime8.JSX.Element;
|
|
16
16
|
displayName: string;
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.ts
|
|
5
5
|
declare const ChatPreviewComparisonWidgetWithBaseWidget: {
|
|
6
|
-
(props: BaseWidgetProps):
|
|
6
|
+
(props: BaseWidgetProps): react_jsx_runtime12.JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
interface ChatPreviewComparisonWidgetProps {
|
|
@@ -12,7 +12,7 @@ interface ChatPreviewComparisonWidgetProps {
|
|
|
12
12
|
declare const ChatPreviewComparisonWidget: {
|
|
13
13
|
({
|
|
14
14
|
widgetConfigId
|
|
15
|
-
}: ChatPreviewComparisonWidgetProps):
|
|
15
|
+
}: ChatPreviewComparisonWidgetProps): react_jsx_runtime12.JSX.Element;
|
|
16
16
|
displayName: string;
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
@@ -4,19 +4,19 @@ import { ChatPreviewLoadingWidgetWithBaseWidget } from "../ChatPreviewLoadingWid
|
|
|
4
4
|
import { useCallback, useMemo } from "react";
|
|
5
5
|
import { EnviveMetricsEventName } from "@envive-ai/react-hooks/contexts/amplitudeContext";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
import { chatAtom, lastAssistantMessageAtom } from "@envive-ai/react-hooks/atoms/chat";
|
|
8
|
-
import { useSalesAgent } from "@envive-ai/react-hooks/contexts/salesAgentContext";
|
|
9
7
|
import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
|
|
10
|
-
import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
|
|
11
8
|
import { useAtomValue } from "jotai";
|
|
12
9
|
import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
|
|
13
10
|
import { ChatElementDisplayLocationV3, FeatureGates, VariantTypeEnum } from "@envive-ai/react-hooks/application/models";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
11
|
+
import { useSalesAgent } from "@envive-ai/react-hooks/contexts/salesAgentContext";
|
|
12
|
+
import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
|
|
16
13
|
import { WidgetInteractionComponent, WidgetInteractionType } from "@envive-ai/react-hooks/hooks/WidgetInteraction/types";
|
|
17
|
-
import { ChatPreviewComparison } from "@envive-ai/react-toolkit-v3/ChatPreviewComparison";
|
|
18
14
|
import { usePromptCarouselAnalytics } from "@envive-ai/react-toolkit-v3/PromptCarousel";
|
|
19
15
|
import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
|
|
16
|
+
import { chatAtom, lastAssistantMessageAtom } from "@envive-ai/react-hooks/atoms/chat";
|
|
17
|
+
import { variantInfoAtom } from "@envive-ai/react-hooks/atoms/app";
|
|
18
|
+
import { useWidgetInteraction } from "@envive-ai/react-hooks/hooks/WidgetInteraction";
|
|
19
|
+
import { ChatPreviewComparison } from "@envive-ai/react-toolkit-v3/ChatPreviewComparison";
|
|
20
20
|
|
|
21
21
|
//#region src/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.tsx
|
|
22
22
|
const ChatPreviewComparisonWidgetHandler = (props) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.ts
|
|
5
5
|
declare const ChatPreviewLoadingWidgetWithBaseWidget: {
|
|
6
|
-
(props: BaseWidgetProps):
|
|
6
|
+
(props: BaseWidgetProps): react_jsx_runtime18.JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
interface ChatPreviewLoadingWidgetProps {
|
|
@@ -11,6 +11,6 @@ interface ChatPreviewLoadingWidgetProps {
|
|
|
11
11
|
}
|
|
12
12
|
declare const ChatPreviewLoadingWidget: ({
|
|
13
13
|
widgetConfigId
|
|
14
|
-
}: ChatPreviewLoadingWidgetProps) =>
|
|
14
|
+
}: ChatPreviewLoadingWidgetProps) => react_jsx_runtime18.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { ChatPreviewLoadingWidget, ChatPreviewLoadingWidgetProps, ChatPreviewLoadingWidgetWithBaseWidget };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.ts
|
|
5
5
|
declare const ChatPreviewLoadingWidgetWithBaseWidget: {
|
|
6
|
-
(props: BaseWidgetProps):
|
|
6
|
+
(props: BaseWidgetProps): react_jsx_runtime16.JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
interface ChatPreviewLoadingWidgetProps {
|
|
@@ -11,6 +11,6 @@ interface ChatPreviewLoadingWidgetProps {
|
|
|
11
11
|
}
|
|
12
12
|
declare const ChatPreviewLoadingWidget: ({
|
|
13
13
|
widgetConfigId
|
|
14
|
-
}: ChatPreviewLoadingWidgetProps) =>
|
|
14
|
+
}: ChatPreviewLoadingWidgetProps) => react_jsx_runtime16.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { ChatPreviewLoadingWidget, ChatPreviewLoadingWidgetProps, ChatPreviewLoadingWidgetWithBaseWidget };
|
|
@@ -5,17 +5,17 @@ const require_ChatPreviewLoadingWidget = require('../ChatPreviewLoadingWidget/Ch
|
|
|
5
5
|
let react = require("react");
|
|
6
6
|
let __envive_ai_react_hooks_contexts_amplitudeContext = require("@envive-ai/react-hooks/contexts/amplitudeContext");
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
-
let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
|
|
9
|
-
let __envive_ai_react_hooks_contexts_salesAgentContext = require("@envive-ai/react-hooks/contexts/salesAgentContext");
|
|
10
8
|
let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/contexts/typesV3");
|
|
11
|
-
let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
|
|
12
9
|
let jotai = require("jotai");
|
|
13
10
|
let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
|
|
14
11
|
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
15
|
-
let
|
|
12
|
+
let __envive_ai_react_hooks_contexts_salesAgentContext = require("@envive-ai/react-hooks/contexts/salesAgentContext");
|
|
13
|
+
let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
|
|
16
14
|
let __envive_ai_react_hooks_hooks_WidgetInteraction_types = require("@envive-ai/react-hooks/hooks/WidgetInteraction/types");
|
|
17
15
|
let __envive_ai_react_toolkit_v3_PromptCarousel = require("@envive-ai/react-toolkit-v3/PromptCarousel");
|
|
18
16
|
let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
|
|
17
|
+
let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
|
|
18
|
+
let __envive_ai_react_hooks_hooks_WidgetInteraction = require("@envive-ai/react-hooks/hooks/WidgetInteraction");
|
|
19
19
|
let __envive_ai_react_toolkit_v3_ChatPreview = require("@envive-ai/react-toolkit-v3/ChatPreview");
|
|
20
20
|
|
|
21
21
|
//#region src/widgets/ChatPreviewWidget/ChatPreviewWidget.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/widgets/ChatPreviewWidget/ChatPreviewWidget.d.ts
|
|
5
5
|
declare const ChatPreviewWidgetWithBaseWidget: {
|
|
6
|
-
(props: BaseWidgetProps):
|
|
6
|
+
(props: BaseWidgetProps): react_jsx_runtime13.JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
interface ChatPreviewWidgetProps {
|
|
@@ -12,7 +12,7 @@ interface ChatPreviewWidgetProps {
|
|
|
12
12
|
declare const ChatPreviewWidget: {
|
|
13
13
|
({
|
|
14
14
|
widgetConfigId
|
|
15
|
-
}: ChatPreviewWidgetProps):
|
|
15
|
+
}: ChatPreviewWidgetProps): react_jsx_runtime13.JSX.Element;
|
|
16
16
|
displayName: string;
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/widgets/ChatPreviewWidget/ChatPreviewWidget.d.ts
|
|
5
5
|
declare const ChatPreviewWidgetWithBaseWidget: {
|
|
6
|
-
(props: BaseWidgetProps):
|
|
6
|
+
(props: BaseWidgetProps): react_jsx_runtime7.JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
interface ChatPreviewWidgetProps {
|
|
@@ -12,7 +12,7 @@ interface ChatPreviewWidgetProps {
|
|
|
12
12
|
declare const ChatPreviewWidget: {
|
|
13
13
|
({
|
|
14
14
|
widgetConfigId
|
|
15
|
-
}: ChatPreviewWidgetProps):
|
|
15
|
+
}: ChatPreviewWidgetProps): react_jsx_runtime7.JSX.Element;
|
|
16
16
|
displayName: string;
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
@@ -4,17 +4,17 @@ import { ChatPreviewLoadingWidgetWithBaseWidget } from "../ChatPreviewLoadingWid
|
|
|
4
4
|
import { useCallback, useMemo } from "react";
|
|
5
5
|
import { EnviveMetricsEventName, useAmplitude } from "@envive-ai/react-hooks/contexts/amplitudeContext";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
import { chatAtom, lastAssistantMessageAtom } from "@envive-ai/react-hooks/atoms/chat";
|
|
8
|
-
import { useSalesAgent } from "@envive-ai/react-hooks/contexts/salesAgentContext";
|
|
9
7
|
import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
|
|
10
|
-
import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
|
|
11
8
|
import { useAtomValue } from "jotai";
|
|
12
9
|
import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
|
|
13
10
|
import { ChatElementDisplayLocationV3, FeatureGates } from "@envive-ai/react-hooks/application/models";
|
|
14
|
-
import {
|
|
11
|
+
import { useSalesAgent } from "@envive-ai/react-hooks/contexts/salesAgentContext";
|
|
12
|
+
import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
|
|
15
13
|
import { WidgetInteractionComponent, WidgetInteractionType } from "@envive-ai/react-hooks/hooks/WidgetInteraction/types";
|
|
16
14
|
import { usePromptCarouselAnalytics } from "@envive-ai/react-toolkit-v3/PromptCarousel";
|
|
17
15
|
import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
|
|
16
|
+
import { chatAtom, lastAssistantMessageAtom } from "@envive-ai/react-hooks/atoms/chat";
|
|
17
|
+
import { useWidgetInteraction } from "@envive-ai/react-hooks/hooks/WidgetInteraction";
|
|
18
18
|
import { ChatPreview } from "@envive-ai/react-toolkit-v3/ChatPreview";
|
|
19
19
|
|
|
20
20
|
//#region src/widgets/ChatPreviewWidget/ChatPreviewWidget.tsx
|
|
@@ -47,6 +47,7 @@ const FloatingChatOverlay = ({ children, isOpened, onClose, className, dataTestI
|
|
|
47
47
|
const backdropClasses = (0, classnames.default)("envive-tw-absolute", "envive-tw-top-0", "envive-tw-left-0", "envive-tw-h-full", "envive-tw-w-full", isMobile ? "envive-tw-bg-black" : "", "envive-tw-opacity-50", "envive-tw-pointer-events-none", "envive-tw-z-0");
|
|
48
48
|
const overlayContentClasses = (0, classnames.default)("envive-tw-relative", "envive-tw-flex", "envive-tw-justify-end", "envive-tw-items-stretch", "envive-tw-h-full", "envive-tw-w-full", "envive-tw-pointer-events-auto", "envive-tw-cursor-pointer", "envive-tw-z-10");
|
|
49
49
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.AnimatePresence, { children: isOpened && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(framer_motion.motion.div, {
|
|
50
|
+
id: "envive-ai-floating-chat-overlay",
|
|
50
51
|
className: overlayClasses,
|
|
51
52
|
style: { top: "0px" },
|
|
52
53
|
initial: { opacity: 0 },
|
|
@@ -45,6 +45,7 @@ const FloatingChatOverlay = ({ children, isOpened, onClose, className, dataTestI
|
|
|
45
45
|
const backdropClasses = classNames("envive-tw-absolute", "envive-tw-top-0", "envive-tw-left-0", "envive-tw-h-full", "envive-tw-w-full", isMobile ? "envive-tw-bg-black" : "", "envive-tw-opacity-50", "envive-tw-pointer-events-none", "envive-tw-z-0");
|
|
46
46
|
const overlayContentClasses = classNames("envive-tw-relative", "envive-tw-flex", "envive-tw-justify-end", "envive-tw-items-stretch", "envive-tw-h-full", "envive-tw-w-full", "envive-tw-pointer-events-auto", "envive-tw-cursor-pointer", "envive-tw-z-10");
|
|
47
47
|
return /* @__PURE__ */ jsx(AnimatePresence, { children: isOpened && /* @__PURE__ */ jsxs(motion.div, {
|
|
48
|
+
id: "envive-ai-floating-chat-overlay",
|
|
48
49
|
className: overlayClasses,
|
|
49
50
|
style: { top: "0px" },
|
|
50
51
|
initial: { opacity: 0 },
|
|
@@ -13,14 +13,14 @@ let react = require("react");
|
|
|
13
13
|
let __envive_ai_react_hooks_contexts_amplitudeContext = require("@envive-ai/react-hooks/contexts/amplitudeContext");
|
|
14
14
|
let __envive_ai_react_hooks_hooks_TrackComponentVisibleEvent = require("@envive-ai/react-hooks/hooks/TrackComponentVisibleEvent");
|
|
15
15
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
16
|
-
let __envive_ai_react_hooks_contexts_salesAgentContext = require("@envive-ai/react-hooks/contexts/salesAgentContext");
|
|
17
16
|
let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/contexts/typesV3");
|
|
18
|
-
let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
|
|
19
17
|
let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
|
|
20
18
|
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
21
|
-
let
|
|
19
|
+
let __envive_ai_react_hooks_contexts_salesAgentContext = require("@envive-ai/react-hooks/contexts/salesAgentContext");
|
|
20
|
+
let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
|
|
22
21
|
let __envive_ai_react_hooks_hooks_WidgetInteraction_types = require("@envive-ai/react-hooks/hooks/WidgetInteraction/types");
|
|
23
22
|
let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
|
|
23
|
+
let __envive_ai_react_hooks_hooks_WidgetInteraction = require("@envive-ai/react-hooks/hooks/WidgetInteraction");
|
|
24
24
|
let __envive_ai_react_toolkit_v3_FloatingButton = require("@envive-ai/react-toolkit-v3/FloatingButton");
|
|
25
25
|
|
|
26
26
|
//#region src/widgets/FloatingChatWidget/FloatingChatWidget.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/widgets/FloatingChatWidget/FloatingChatWidget.d.ts
|
|
4
4
|
interface FloatingChatWidgetProps {
|
|
@@ -13,7 +13,7 @@ declare const FloatingChatWidget: {
|
|
|
13
13
|
previewChatAlwaysOpen,
|
|
14
14
|
previewCXButtonsEnabled,
|
|
15
15
|
previewDisclaimer
|
|
16
|
-
}?: FloatingChatWidgetProps):
|
|
16
|
+
}?: FloatingChatWidgetProps): react_jsx_runtime17.JSX.Element;
|
|
17
17
|
displayName: string;
|
|
18
18
|
};
|
|
19
19
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/widgets/FloatingChatWidget/FloatingChatWidget.d.ts
|
|
4
4
|
interface FloatingChatWidgetProps {
|
|
@@ -13,7 +13,7 @@ declare const FloatingChatWidget: {
|
|
|
13
13
|
previewChatAlwaysOpen,
|
|
14
14
|
previewCXButtonsEnabled,
|
|
15
15
|
previewDisclaimer
|
|
16
|
-
}?: FloatingChatWidgetProps):
|
|
16
|
+
}?: FloatingChatWidgetProps): react_jsx_runtime11.JSX.Element;
|
|
17
17
|
displayName: string;
|
|
18
18
|
};
|
|
19
19
|
//#endregion
|
|
@@ -12,14 +12,14 @@ import { Suspense, lazy, useEffect, useMemo, useRef, useState } from "react";
|
|
|
12
12
|
import { EnviveMetricsEventName, useAmplitude } from "@envive-ai/react-hooks/contexts/amplitudeContext";
|
|
13
13
|
import { useTrackComponentVisibleEvent } from "@envive-ai/react-hooks/hooks/TrackComponentVisibleEvent";
|
|
14
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
import { useSalesAgent } from "@envive-ai/react-hooks/contexts/salesAgentContext";
|
|
16
15
|
import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
|
|
17
|
-
import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
|
|
18
16
|
import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
|
|
19
17
|
import { ChatElementDisplayLocationV3, FeatureGates } from "@envive-ai/react-hooks/application/models";
|
|
20
|
-
import {
|
|
18
|
+
import { useSalesAgent } from "@envive-ai/react-hooks/contexts/salesAgentContext";
|
|
19
|
+
import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
|
|
21
20
|
import { WidgetInteractionComponent, WidgetInteractionType } from "@envive-ai/react-hooks/hooks/WidgetInteraction/types";
|
|
22
21
|
import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
|
|
22
|
+
import { useWidgetInteraction } from "@envive-ai/react-hooks/hooks/WidgetInteraction";
|
|
23
23
|
import { FloatingButton } from "@envive-ai/react-toolkit-v3/FloatingButton";
|
|
24
24
|
|
|
25
25
|
//#region src/widgets/FloatingChatWidget/FloatingChatWidget.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
let react = require("react");
|
|
3
|
-
let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
|
|
4
3
|
let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
|
|
5
4
|
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
5
|
+
let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
|
|
6
6
|
|
|
7
7
|
//#region src/widgets/FloatingChatWidget/hooks/useAutoPopup.ts
|
|
8
8
|
const useAutoPopup = ({ autoPopupConfig }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback, useEffect, useMemo, useRef } from "react";
|
|
2
|
-
import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
|
|
3
2
|
import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
|
|
4
3
|
import { ChatElementDisplayLocationV3, FeatureGates } from "@envive-ai/react-hooks/application/models";
|
|
4
|
+
import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
|
|
5
5
|
|
|
6
6
|
//#region src/widgets/FloatingChatWidget/hooks/useAutoPopup.ts
|
|
7
7
|
const useAutoPopup = ({ autoPopupConfig }) => {
|