@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.
@@ -824,7 +824,7 @@ var import_bueno5 = require("@coveo/bueno");
824
824
  var import_toolkit7 = require("@reduxjs/toolkit");
825
825
 
826
826
  // src/utils/version.ts
827
- var VERSION = "3.49.0";
827
+ var VERSION = "3.49.1";
828
828
  var COVEO_FRAMEWORK = ["@coveo/atomic", "@coveo/quantic"];
829
829
 
830
830
  // src/features/configuration/configuration-actions.ts
@@ -1341,7 +1341,7 @@ var import_bueno7 = require("@coveo/bueno");
1341
1341
  var import_toolkit3 = require("@reduxjs/toolkit");
1342
1342
 
1343
1343
  // src/utils/version.ts
1344
- var VERSION = "3.49.0";
1344
+ var VERSION = "3.49.1";
1345
1345
  var COVEO_FRAMEWORK = ["@coveo/atomic", "@coveo/quantic"];
1346
1346
 
1347
1347
  // src/features/configuration/configuration-actions.ts
@@ -1403,7 +1403,7 @@ function isBrowser2() {
1403
1403
  var import_toolkit = require("@reduxjs/toolkit");
1404
1404
 
1405
1405
  // src/utils/version.ts
1406
- var VERSION = "3.49.0";
1406
+ var VERSION = "3.49.1";
1407
1407
  var COVEO_FRAMEWORK = ["@coveo/atomic", "@coveo/quantic"];
1408
1408
 
1409
1409
  // src/api/analytics/analytics-selectors.ts
@@ -16351,7 +16351,7 @@ function loadAnswerApiReducers(engine) {
16351
16351
  var import_client2 = require("@ag-ui/client");
16352
16352
  var FollowUpAgent = class extends import_client2.HttpAgent {
16353
16353
  requestInit(input) {
16354
- const { q, conversationId, conversationToken, accessToken } = input.forwardedProps || {};
16354
+ const { q, analytics, conversationId, conversationToken, accessToken } = input.forwardedProps || {};
16355
16355
  return {
16356
16356
  method: "POST",
16357
16357
  headers: {
@@ -16362,6 +16362,7 @@ var FollowUpAgent = class extends import_client2.HttpAgent {
16362
16362
  },
16363
16363
  body: JSON.stringify({
16364
16364
  q,
16365
+ analytics,
16365
16366
  conversationId,
16366
16367
  conversationToken
16367
16368
  }),
@@ -16789,11 +16790,16 @@ function buildGeneratedAnswerWithFollowUps(engine, analyticsClient, props) {
16789
16790
  }
16790
16791
  followUpAgent.abortRun();
16791
16792
  engine.dispatch(createFollowUpAnswer({ question }));
16793
+ const analyticsParams = fromAnalyticsStateToAnalyticsParams(
16794
+ getState().configuration.analytics,
16795
+ engine.navigatorContext
16796
+ );
16792
16797
  try {
16793
16798
  await followUpAgent.runAgent(
16794
16799
  {
16795
16800
  forwardedProps: {
16796
16801
  q: question,
16802
+ analytics: analyticsParams.analytics,
16797
16803
  conversationId,
16798
16804
  conversationToken,
16799
16805
  accessToken
@@ -1462,7 +1462,7 @@ function isBrowser2() {
1462
1462
  var import_toolkit = require("@reduxjs/toolkit");
1463
1463
 
1464
1464
  // src/utils/version.ts
1465
- var VERSION = "3.49.0";
1465
+ var VERSION = "3.49.1";
1466
1466
  var COVEO_FRAMEWORK = ["@coveo/atomic", "@coveo/quantic"];
1467
1467
 
1468
1468
  // src/api/analytics/analytics-selectors.ts