@coveo/headless 3.49.0 → 3.49.1

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.
@@ -905,7 +905,7 @@ var validateObject = (engine, schema, obj, validationMessage, errorMessage) => {
905
905
  };
906
906
 
907
907
  // src/utils/version.ts
908
- var VERSION = "3.49.0";
908
+ var VERSION = "3.49.1";
909
909
  var COVEO_FRAMEWORK = ["@coveo/atomic", "@coveo/quantic"];
910
910
 
911
911
  // src/features/configuration/configuration-actions.ts
@@ -1335,7 +1335,7 @@ function isBrowser2() {
1335
1335
  var import_toolkit = require("@reduxjs/toolkit");
1336
1336
 
1337
1337
  // src/utils/version.ts
1338
- var VERSION = "3.49.0";
1338
+ var VERSION = "3.49.1";
1339
1339
  var COVEO_FRAMEWORK = ["@coveo/atomic", "@coveo/quantic"];
1340
1340
 
1341
1341
  // src/api/analytics/analytics-selectors.ts
@@ -479,7 +479,7 @@ var import_bueno8 = require("@coveo/bueno");
479
479
  var import_toolkit3 = require("@reduxjs/toolkit");
480
480
 
481
481
  // src/utils/version.ts
482
- var VERSION = "3.49.0";
482
+ var VERSION = "3.49.1";
483
483
  var COVEO_FRAMEWORK = ["@coveo/atomic", "@coveo/quantic"];
484
484
 
485
485
  // src/features/configuration/configuration-actions.ts
@@ -478,7 +478,7 @@ var import_bueno8 = require("@coveo/bueno");
478
478
  var import_toolkit3 = require("@reduxjs/toolkit");
479
479
 
480
480
  // src/utils/version.ts
481
- var VERSION = "3.49.0";
481
+ var VERSION = "3.49.1";
482
482
  var COVEO_FRAMEWORK = ["@coveo/atomic", "@coveo/quantic"];
483
483
 
484
484
  // src/features/configuration/configuration-actions.ts
@@ -1335,7 +1335,7 @@ function isBrowser2() {
1335
1335
  var import_toolkit = require("@reduxjs/toolkit");
1336
1336
 
1337
1337
  // src/utils/version.ts
1338
- var VERSION = "3.49.0";
1338
+ var VERSION = "3.49.1";
1339
1339
  var COVEO_FRAMEWORK = ["@coveo/atomic", "@coveo/quantic"];
1340
1340
 
1341
1341
  // src/api/analytics/analytics-selectors.ts
@@ -5,7 +5,7 @@ import { buildBaseAnswerGenerationUrl } from '../endpoint-url-builder.js';
5
5
  */
6
6
  export class FollowUpAgent extends HttpAgent {
7
7
  requestInit(input) {
8
- const { q, conversationId, conversationToken, accessToken } = input.forwardedProps || {};
8
+ const { q, analytics, conversationId, conversationToken, accessToken } = input.forwardedProps || {};
9
9
  return {
10
10
  method: 'POST',
11
11
  headers: {
@@ -16,6 +16,7 @@ export class FollowUpAgent extends HttpAgent {
16
16
  },
17
17
  body: JSON.stringify({
18
18
  q,
19
+ analytics,
19
20
  conversationId,
20
21
  conversationToken,
21
22
  }),
@@ -1,6 +1,7 @@
1
1
  import { createAnswerRunner } from '../../../api/knowledge/answer-generation/agents/answer-agent/answer-agent-runner.js';
2
2
  import { createFollowUpAgent } from '../../../api/knowledge/answer-generation/agents/follow-up-agent/follow-up-agent.js';
3
3
  import { createFollowUpStrategy } from '../../../api/knowledge/answer-generation/agents/follow-up-agent/follow-up-answer-strategy.js';
4
+ import { fromAnalyticsStateToAnalyticsParams } from '../../../features/configuration/analytics-params.js';
4
5
  import { setAgentId } from '../../../features/configuration/configuration-actions.js';
5
6
  import { selectAccessToken, selectEnvironment, selectOrganizationId, } from '../../../features/configuration/configuration-selectors.js';
6
7
  import { activeFollowUpStartFailed, createFollowUpAnswer, dislikeFollowUp, likeFollowUp, } from '../../../features/follow-up-answers/follow-up-answers-actions.js';
@@ -126,10 +127,12 @@ export function buildGeneratedAnswerWithFollowUps(engine, analyticsClient, props
126
127
  }
127
128
  followUpAgent.abortRun();
128
129
  engine.dispatch(createFollowUpAnswer({ question }));
130
+ const analyticsParams = fromAnalyticsStateToAnalyticsParams(getState().configuration.analytics, engine.navigatorContext);
129
131
  try {
130
132
  await followUpAgent.runAgent({
131
133
  forwardedProps: {
132
134
  q: question,
135
+ analytics: analyticsParams.analytics,
133
136
  conversationId,
134
137
  conversationToken,
135
138
  accessToken,
@@ -1,2 +1,2 @@
1
- export const VERSION = "3.49.0" || 'Test version';
1
+ export const VERSION = "3.49.1" || 'Test version';
2
2
  export const COVEO_FRAMEWORK = ['@coveo/atomic', '@coveo/quantic'];