@thoughtspot/visual-embed-sdk 1.47.0 → 1.47.2

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.
Files changed (89) hide show
  1. package/cjs/package.json +3 -3
  2. package/cjs/src/embed/app.d.ts +37 -0
  3. package/cjs/src/embed/app.d.ts.map +1 -1
  4. package/cjs/src/embed/app.js +10 -1
  5. package/cjs/src/embed/app.js.map +1 -1
  6. package/cjs/src/embed/app.spec.js +59 -0
  7. package/cjs/src/embed/app.spec.js.map +1 -1
  8. package/cjs/src/embed/conversation.d.ts +9 -0
  9. package/cjs/src/embed/conversation.d.ts.map +1 -1
  10. package/cjs/src/embed/conversation.js +2 -1
  11. package/cjs/src/embed/conversation.js.map +1 -1
  12. package/cjs/src/embed/hostEventClient/contracts.d.ts +4 -1
  13. package/cjs/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  14. package/cjs/src/embed/hostEventClient/host-event-client.spec.js +2 -2
  15. package/cjs/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
  16. package/cjs/src/embed/liveboard.d.ts +22 -0
  17. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  18. package/cjs/src/embed/liveboard.js +7 -1
  19. package/cjs/src/embed/liveboard.js.map +1 -1
  20. package/cjs/src/embed/liveboard.spec.js +32 -0
  21. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  22. package/cjs/src/embed/ts-embed.d.ts +13 -1
  23. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  24. package/cjs/src/embed/ts-embed.js +14 -0
  25. package/cjs/src/embed/ts-embed.js.map +1 -1
  26. package/cjs/src/types.d.ts +110 -6
  27. package/cjs/src/types.d.ts.map +1 -1
  28. package/cjs/src/types.js +106 -2
  29. package/cjs/src/types.js.map +1 -1
  30. package/dist/{index-Bm2Hck8q.js → index-CFZ7RDZ9.js} +1 -1
  31. package/dist/src/embed/app.d.ts +37 -0
  32. package/dist/src/embed/app.d.ts.map +1 -1
  33. package/dist/src/embed/conversation.d.ts +9 -0
  34. package/dist/src/embed/conversation.d.ts.map +1 -1
  35. package/dist/src/embed/hostEventClient/contracts.d.ts +4 -1
  36. package/dist/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  37. package/dist/src/embed/liveboard.d.ts +22 -0
  38. package/dist/src/embed/liveboard.d.ts.map +1 -1
  39. package/dist/src/embed/ts-embed.d.ts +13 -1
  40. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  41. package/dist/src/types.d.ts +110 -6
  42. package/dist/src/types.d.ts.map +1 -1
  43. package/dist/tsembed-react.es.js +144 -10
  44. package/dist/tsembed-react.js +143 -9
  45. package/dist/tsembed.es.js +144 -10
  46. package/dist/tsembed.js +143 -9
  47. package/dist/visual-embed-sdk-react-full.d.ts +189 -6
  48. package/dist/visual-embed-sdk-react.d.ts +189 -6
  49. package/dist/visual-embed-sdk.d.ts +189 -6
  50. package/lib/package.json +3 -3
  51. package/lib/src/embed/app.d.ts +37 -0
  52. package/lib/src/embed/app.d.ts.map +1 -1
  53. package/lib/src/embed/app.js +10 -1
  54. package/lib/src/embed/app.js.map +1 -1
  55. package/lib/src/embed/app.spec.js +59 -0
  56. package/lib/src/embed/app.spec.js.map +1 -1
  57. package/lib/src/embed/conversation.d.ts +9 -0
  58. package/lib/src/embed/conversation.d.ts.map +1 -1
  59. package/lib/src/embed/conversation.js +2 -1
  60. package/lib/src/embed/conversation.js.map +1 -1
  61. package/lib/src/embed/hostEventClient/contracts.d.ts +4 -1
  62. package/lib/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  63. package/lib/src/embed/hostEventClient/host-event-client.spec.js +2 -2
  64. package/lib/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
  65. package/lib/src/embed/liveboard.d.ts +22 -0
  66. package/lib/src/embed/liveboard.d.ts.map +1 -1
  67. package/lib/src/embed/liveboard.js +7 -1
  68. package/lib/src/embed/liveboard.js.map +1 -1
  69. package/lib/src/embed/liveboard.spec.js +32 -0
  70. package/lib/src/embed/liveboard.spec.js.map +1 -1
  71. package/lib/src/embed/ts-embed.d.ts +13 -1
  72. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  73. package/lib/src/embed/ts-embed.js +14 -0
  74. package/lib/src/embed/ts-embed.js.map +1 -1
  75. package/lib/src/types.d.ts +110 -6
  76. package/lib/src/types.d.ts.map +1 -1
  77. package/lib/src/types.js +106 -2
  78. package/lib/src/types.js.map +1 -1
  79. package/lib/src/visual-embed-sdk.d.ts +189 -6
  80. package/package.json +3 -3
  81. package/src/embed/app.spec.ts +84 -1
  82. package/src/embed/app.ts +51 -0
  83. package/src/embed/conversation.ts +11 -0
  84. package/src/embed/hostEventClient/contracts.ts +2 -1
  85. package/src/embed/hostEventClient/host-event-client.spec.ts +2 -2
  86. package/src/embed/liveboard.spec.ts +41 -0
  87. package/src/embed/liveboard.ts +31 -0
  88. package/src/embed/ts-embed.ts +15 -0
  89. package/src/types.ts +109 -2
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.47.0 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.47.2 */
2
2
  'use client';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
@@ -1985,6 +1985,53 @@
1985
1985
  * @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
1986
1986
  */
1987
1987
  EmbedEvent["RefreshAuthToken"] = "RefreshAuthToken";
1988
+ /**
1989
+ * Triggered whenever the page context changes, returning the current context along with the navigation stack.
1990
+ * @example
1991
+ * ```js
1992
+ * embed.on(EmbedEvent.EmbedPageContextChanged, (payload) => {
1993
+ * console.log('payload', payload);
1994
+ * })
1995
+ * ```
1996
+ * @version SDK: 1.47.2 | ThoughtSpot: 26.3.0.cl
1997
+ */
1998
+ EmbedEvent["EmbedPageContextChanged"] = "EmbedPageContextChanged";
1999
+ /**
2000
+ * Represents a special embed event that is triggered whenever any host event is subscribed.
2001
+ *
2002
+ * You can listen to this event when you need to dispatch a host event during load or render,
2003
+ * particularly in situations where timing issues may occur.
2004
+ *
2005
+ * @example
2006
+ * ```js
2007
+ * embed.on(`${HostEvent.Save} Subscribed`, () => {
2008
+ * // make action
2009
+ * });
2010
+ * ```
2011
+ *
2012
+ * @example
2013
+ * ```js
2014
+ * embed.on(subscribedEvent(HostEvent.Save), () => {
2015
+ * // make action
2016
+ * });
2017
+ * ```
2018
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.4.0.cl
2019
+ */
2020
+ EmbedEvent["Subscribed"] = "Subscribed";
2021
+ /**
2022
+ * Emitted when a user clicks the **Send Test Email** button in the
2023
+ * Liveboard schedule modal. Requires `isSendNowLiveboardSchedulingEnabled`
2024
+ * to be enabled.
2025
+ * @example
2026
+ * ```js
2027
+ * liveboardEmbed.on(EmbedEvent.SendTestScheduleEmail, (payload) => {
2028
+ * console.log('Send test email', payload);
2029
+ * // payload: { liveboardId: string, sendToSelf: boolean }
2030
+ * })
2031
+ * ```
2032
+ * @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
2033
+ */
2034
+ EmbedEvent["SendTestScheduleEmail"] = "sendTestScheduleEmail";
1988
2035
  })(exports.EmbedEvent || (exports.EmbedEvent = {}));
1989
2036
  /**
1990
2037
  * Event types that can be triggered by the host application
@@ -3684,7 +3731,8 @@
3684
3731
  * ```js
3685
3732
  * // Get parameters from liveboard context
3686
3733
  * import { ContextType } from '@thoughtspot/visual-embed-sdk';
3687
- * liveboardEmbed.trigger(HostEvent.GetParameters, {}, ContextType.Liveboard).then((parameters) => {
3734
+ * liveboardEmbed.trigger(HostEvent.GetParameters, {},
3735
+ * ContextType.Liveboard).then((parameters) => {
3688
3736
  * console.log('parameters', parameters);
3689
3737
  * });
3690
3738
  * ```
@@ -4036,6 +4084,26 @@
4036
4084
  * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
4037
4085
  */
4038
4086
  HostEvent["GetPageContext"] = "GetPageContext";
4087
+ /**
4088
+ * Trigger the **Send Test Email** action in the Liveboard schedule modal.
4089
+ * Sends a test schedule email to self or all recipients.
4090
+ * Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
4091
+ * @example
4092
+ * ```js
4093
+ * liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
4094
+ * sendToSelf: true,
4095
+ * })
4096
+ * ```
4097
+ * @example
4098
+ * ```js
4099
+ * // Send to all recipients
4100
+ * liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
4101
+ * sendToSelf: false,
4102
+ * })
4103
+ * ```
4104
+ * @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
4105
+ */
4106
+ HostEvent["SendTestScheduleEmail"] = "sendTestScheduleEmail";
4039
4107
  })(exports.HostEvent || (exports.HostEvent = {}));
4040
4108
  /**
4041
4109
  * The different visual modes that the data sources panel within
@@ -4173,6 +4241,7 @@
4173
4241
  Param["HideIrrelevantFiltersInTab"] = "hideIrrelevantFiltersAtTabLevel";
4174
4242
  Param["IsEnhancedFilterInteractivityEnabled"] = "isLiveboardPermissionV2Enabled";
4175
4243
  Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
4244
+ Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
4176
4245
  Param["OverrideOrgId"] = "orgId";
4177
4246
  Param["OauthPollingInterval"] = "oAuthPollingInterval";
4178
4247
  Param["IsForceRedirect"] = "isForceRedirect";
@@ -4189,10 +4258,12 @@
4189
4258
  Param["IsWYSIWYGLiveboardPDFEnabled"] = "isWYSIWYGLiveboardPDFEnabled";
4190
4259
  Param["isLiveboardXLSXCSVDownloadEnabled"] = "isLiveboardXLSXCSVDownloadEnabled";
4191
4260
  Param["isGranularXLSXCSVSchedulesEnabled"] = "isGranularXLSXCSVSchedulesEnabled";
4261
+ Param["isSendNowLiveboardSchedulingEnabled"] = "isSendNowLiveboardSchedulingEnabled";
4192
4262
  Param["isCentralizedLiveboardFilterUXEnabled"] = "isCentralizedLiveboardFilterUXEnabled";
4193
4263
  Param["isLinkParametersEnabled"] = "isLinkParametersEnabled";
4194
4264
  Param["EnablePastConversationsSidebar"] = "enablePastConversationsSidebar";
4195
4265
  Param["UpdatedSpotterChatPrompt"] = "updatedSpotterChatPrompt";
4266
+ Param["EnableStopAnswerGenerationEmbed"] = "enableStopAnswerGenerationEmbed";
4196
4267
  Param["SpotterSidebarTitle"] = "spotterSidebarTitle";
4197
4268
  Param["SpotterSidebarDefaultExpanded"] = "spotterSidebarDefaultExpanded";
4198
4269
  Param["SpotterChatRenameLabel"] = "spotterChatRenameLabel";
@@ -4207,6 +4278,7 @@
4207
4278
  Param["HideToolResponseCardBranding"] = "hideToolResponseCardBranding";
4208
4279
  Param["ToolResponseCardBrandingLabel"] = "toolResponseCardBrandingLabel";
4209
4280
  Param["EnableHomepageAnnouncement"] = "enableHomepageAnnouncement";
4281
+ Param["EnableLiveboardDataCache"] = "enableLiveboardDataCache";
4210
4282
  })(Param || (Param = {}));
4211
4283
  /**
4212
4284
  * ThoughtSpot application pages include actions and menu commands
@@ -4528,7 +4600,7 @@
4528
4600
  * ```js
4529
4601
  * disabledActions: [Action.DownloadLiveboard]
4530
4602
  * ```
4531
- * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
4603
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
4532
4604
  */
4533
4605
  Action["DownloadLiveboard"] = "downloadLiveboard";
4534
4606
  /**
@@ -4541,6 +4613,26 @@
4541
4613
  * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
4542
4614
  */
4543
4615
  Action["DownloadLiveboardAsContinuousPDF"] = "downloadLiveboardAsContinuousPDF";
4616
+ /**
4617
+ * The **Download Liveboard as XLSX** menu action on a Liveboard.
4618
+ * Allows downloading the entire Liveboard as an XLSX file.
4619
+ * @example
4620
+ * ```js
4621
+ * disabledActions: [Action.DownloadLiveboardAsXlsx]
4622
+ * ```
4623
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
4624
+ */
4625
+ Action["DownloadLiveboardAsXlsx"] = "downloadLiveboardAsXlsx";
4626
+ /**
4627
+ * The **Download Liveboard as CSV** menu action on a Liveboard.
4628
+ * Allows downloading the entire Liveboard as a CSV file.
4629
+ * @example
4630
+ * ```js
4631
+ * disabledActions: [Action.DownloadLiveboardAsCsv]
4632
+ * ```
4633
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
4634
+ */
4635
+ Action["DownloadLiveboardAsCsv"] = "downloadLiveboardAsCsv";
4544
4636
  /**
4545
4637
  * @hidden
4546
4638
  */
@@ -5803,6 +5895,18 @@
5803
5895
  * @version SDK: 1.45.0 | ThoughtSpot: 26.4.0.cl
5804
5896
  */
5805
5897
  Action["IncludeCurrentPeriod"] = "includeCurrentPeriod";
5898
+ /**
5899
+ * The **Send Test Email** button in the Liveboard schedule modal.
5900
+ * Allows sending a test schedule email to self or all recipients.
5901
+ * Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
5902
+ * @example
5903
+ * ```js
5904
+ * disabledActions: [Action.SendTestScheduleEmail]
5905
+ * hiddenActions: [Action.SendTestScheduleEmail]
5906
+ * ```
5907
+ * @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
5908
+ */
5909
+ Action["SendTestScheduleEmail"] = "sendTestScheduleEmail";
5806
5910
  })(exports.Action || (exports.Action = {}));
5807
5911
  var PrefetchFeatures;
5808
5912
  (function (PrefetchFeatures) {
@@ -7698,7 +7802,7 @@
7698
7802
  * @name has
7699
7803
  * @memberOf SetCache
7700
7804
  * @param {*} value The value to search for.
7701
- * @returns {number} Returns `true` if `value` is found, else `false`.
7805
+ * @returns {boolean} Returns `true` if `value` is found, else `false`.
7702
7806
  */
7703
7807
  function setCacheHas(value) {
7704
7808
  return this.__data__.has(value);
@@ -11067,7 +11171,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
11067
11171
  if (isArray_1(iteratee)) {
11068
11172
  return function(value) {
11069
11173
  return _baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
11070
- }
11174
+ };
11071
11175
  }
11072
11176
  return iteratee;
11073
11177
  });
@@ -19285,7 +19389,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19285
19389
  return eventData;
19286
19390
  }
19287
19391
 
19288
- var version$1="1.47.0";var pkgInfo = {version:version$1};
19392
+ var version$1="1.47.2";var pkgInfo = {version:version$1};
19289
19393
 
19290
19394
  function isValidUpdateFiltersPayload(payload) {
19291
19395
  if (!payload)
@@ -20931,6 +21035,20 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20931
21035
  });
20932
21036
  });
20933
21037
  }
21038
+ /**
21039
+ * Generates the event name for a "Subscribed" embed event.
21040
+ *
21041
+ * This helper appends the "Subscribed" suffix to a given host or action event,
21042
+ * allowing you to listen for subscription lifecycle events in a consistent format.
21043
+ *
21044
+ * @param eventName - The host or action event to generate the subscribed event name for.
21045
+ * @returns The formatted event name (e.g., "Save Subscribed").
21046
+ *
21047
+ * @version SDK: 1.47.2 | ThoughtSpot: 26.3.0.cl
21048
+ */
21049
+ subscribedEvent(eventName) {
21050
+ return `${eventName} ${exports.EmbedEvent.Subscribed}`;
21051
+ }
20934
21052
  /**
20935
21053
  * Creates the preRender shell
20936
21054
  * @param showPreRenderByDefault - Show the preRender after render, hidden by default
@@ -21779,7 +21897,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
21779
21897
  * embedded Liveboard or visualization.
21780
21898
  */
21781
21899
  getEmbedParams() {
21782
- const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, enableHomepageAnnouncement = false, isContinuousLiveboardPDFEnabled, } = this.viewConfig;
21900
+ const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, enableStopAnswerGenerationEmbed, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, enableHomepageAnnouncement = false, isContinuousLiveboardPDFEnabled, enableLiveboardDataCache, } = this.viewConfig;
21783
21901
  let params = {};
21784
21902
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
21785
21903
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
@@ -21797,11 +21915,17 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
21797
21915
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
21798
21916
  params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
21799
21917
  params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
21918
+ if (isUnifiedSearchExperienceEnabled !== undefined) {
21919
+ params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
21920
+ }
21800
21921
  params[Param.CoverAndFilterOptionInPDF] = !!coverAndFilterOptionInPDF;
21801
21922
  params = this.getBaseQueryParams(params);
21802
21923
  if (!isUndefined(updatedSpotterChatPrompt)) {
21803
21924
  params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
21804
21925
  }
21926
+ if (!isUndefined(enableStopAnswerGenerationEmbed)) {
21927
+ params[Param.EnableStopAnswerGenerationEmbed] = !!enableStopAnswerGenerationEmbed;
21928
+ }
21805
21929
  // Handle spotterChatConfig params
21806
21930
  if (spotterChatConfig) {
21807
21931
  const { hideToolResponseCardBranding, toolResponseCardBrandingLabel, } = spotterChatConfig;
@@ -21881,6 +22005,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
21881
22005
  params[Param.IsWYSIWYGLiveboardPDFEnabled] = isContinuousLiveboardPDFEnabled;
21882
22006
  }
21883
22007
  this.defaultHeight = minimumHeight || this.defaultHeight;
22008
+ if (enableLiveboardDataCache !== undefined) {
22009
+ params[Param.EnableLiveboardDataCache] = enableLiveboardDataCache;
22010
+ }
21884
22011
  params[Param.DataPanelV2Enabled] = dataPanelV2;
21885
22012
  params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
21886
22013
  params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
@@ -22238,7 +22365,7 @@ query GetEurekaVizSnapshots(
22238
22365
  getEmbedParamsObject() {
22239
22366
  let params = {};
22240
22367
  params = this.getBaseQueryParams(params);
22241
- const { enableVizTransformations, fullHeight, defaultHeight, minimumHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, isEnhancedFilterInteractivityEnabled = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, showSpotterLimitations, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, spotterChatConfig, isThisPeriodInDateFiltersEnabled, isContinuousLiveboardPDFEnabled, } = this.viewConfig;
22368
+ const { enableVizTransformations, fullHeight, defaultHeight, minimumHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, isEnhancedFilterInteractivityEnabled = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, showSpotterLimitations, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, enableStopAnswerGenerationEmbed, spotterChatConfig, isThisPeriodInDateFiltersEnabled, isContinuousLiveboardPDFEnabled, enableLiveboardDataCache, } = this.viewConfig;
22242
22369
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
22243
22370
  || this.viewConfig.preventPinboardFilterRemoval;
22244
22371
  if (fullHeight === true) {
@@ -22260,6 +22387,9 @@ query GetEurekaVizSnapshots(
22260
22387
  if (!isUndefined(updatedSpotterChatPrompt)) {
22261
22388
  params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
22262
22389
  }
22390
+ if (!isUndefined(enableStopAnswerGenerationEmbed)) {
22391
+ params[Param.EnableStopAnswerGenerationEmbed] = !!enableStopAnswerGenerationEmbed;
22392
+ }
22263
22393
  if (visibleVizs) {
22264
22394
  params[Param.visibleVizs] = visibleVizs;
22265
22395
  }
@@ -22330,6 +22460,9 @@ query GetEurekaVizSnapshots(
22330
22460
  if (isContinuousLiveboardPDFEnabled !== undefined) {
22331
22461
  params[Param.IsWYSIWYGLiveboardPDFEnabled] = isContinuousLiveboardPDFEnabled;
22332
22462
  }
22463
+ if (enableLiveboardDataCache !== undefined) {
22464
+ params[Param.EnableLiveboardDataCache] = enableLiveboardDataCache;
22465
+ }
22333
22466
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
22334
22467
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
22335
22468
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
@@ -23094,7 +23227,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
23094
23227
  return buildSpotterSidebarAppInitData(defaultAppInitData, this.viewConfig, this.handleError.bind(this));
23095
23228
  }
23096
23229
  getEmbedParamsObject() {
23097
- const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, updatedSpotterChatPrompt, spotterChatConfig, } = this.viewConfig;
23230
+ const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, updatedSpotterChatPrompt, enableStopAnswerGenerationEmbed, spotterChatConfig, } = this.viewConfig;
23098
23231
  if (!worksheetId) {
23099
23232
  this.handleError({
23100
23233
  errorType: ErrorDetailsTypes.VALIDATION_ERROR,
@@ -23112,6 +23245,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
23112
23245
  setParamIfDefined(queryParams, Param.ShowSpotterLimitations, showSpotterLimitations, true);
23113
23246
  setParamIfDefined(queryParams, Param.HideSampleQuestions, hideSampleQuestions, true);
23114
23247
  setParamIfDefined(queryParams, Param.UpdatedSpotterChatPrompt, updatedSpotterChatPrompt, true);
23248
+ setParamIfDefined(queryParams, Param.EnableStopAnswerGenerationEmbed, enableStopAnswerGenerationEmbed, true);
23115
23249
  // Handle spotterChatConfig params
23116
23250
  if (spotterChatConfig) {
23117
23251
  const { hideToolResponseCardBranding, toolResponseCardBrandingLabel, } = spotterChatConfig;
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.47.0 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.47.2 */
2
2
  'use client';
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
@@ -1795,6 +1795,53 @@ var EmbedEvent;
1795
1795
  * @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
1796
1796
  */
1797
1797
  EmbedEvent["RefreshAuthToken"] = "RefreshAuthToken";
1798
+ /**
1799
+ * Triggered whenever the page context changes, returning the current context along with the navigation stack.
1800
+ * @example
1801
+ * ```js
1802
+ * embed.on(EmbedEvent.EmbedPageContextChanged, (payload) => {
1803
+ * console.log('payload', payload);
1804
+ * })
1805
+ * ```
1806
+ * @version SDK: 1.47.2 | ThoughtSpot: 26.3.0.cl
1807
+ */
1808
+ EmbedEvent["EmbedPageContextChanged"] = "EmbedPageContextChanged";
1809
+ /**
1810
+ * Represents a special embed event that is triggered whenever any host event is subscribed.
1811
+ *
1812
+ * You can listen to this event when you need to dispatch a host event during load or render,
1813
+ * particularly in situations where timing issues may occur.
1814
+ *
1815
+ * @example
1816
+ * ```js
1817
+ * embed.on(`${HostEvent.Save} Subscribed`, () => {
1818
+ * // make action
1819
+ * });
1820
+ * ```
1821
+ *
1822
+ * @example
1823
+ * ```js
1824
+ * embed.on(subscribedEvent(HostEvent.Save), () => {
1825
+ * // make action
1826
+ * });
1827
+ * ```
1828
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.4.0.cl
1829
+ */
1830
+ EmbedEvent["Subscribed"] = "Subscribed";
1831
+ /**
1832
+ * Emitted when a user clicks the **Send Test Email** button in the
1833
+ * Liveboard schedule modal. Requires `isSendNowLiveboardSchedulingEnabled`
1834
+ * to be enabled.
1835
+ * @example
1836
+ * ```js
1837
+ * liveboardEmbed.on(EmbedEvent.SendTestScheduleEmail, (payload) => {
1838
+ * console.log('Send test email', payload);
1839
+ * // payload: { liveboardId: string, sendToSelf: boolean }
1840
+ * })
1841
+ * ```
1842
+ * @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
1843
+ */
1844
+ EmbedEvent["SendTestScheduleEmail"] = "sendTestScheduleEmail";
1798
1845
  })(EmbedEvent || (EmbedEvent = {}));
1799
1846
  /**
1800
1847
  * Event types that can be triggered by the host application
@@ -3494,7 +3541,8 @@ var HostEvent;
3494
3541
  * ```js
3495
3542
  * // Get parameters from liveboard context
3496
3543
  * import { ContextType } from '@thoughtspot/visual-embed-sdk';
3497
- * liveboardEmbed.trigger(HostEvent.GetParameters, {}, ContextType.Liveboard).then((parameters) => {
3544
+ * liveboardEmbed.trigger(HostEvent.GetParameters, {},
3545
+ * ContextType.Liveboard).then((parameters) => {
3498
3546
  * console.log('parameters', parameters);
3499
3547
  * });
3500
3548
  * ```
@@ -3846,6 +3894,26 @@ var HostEvent;
3846
3894
  * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
3847
3895
  */
3848
3896
  HostEvent["GetPageContext"] = "GetPageContext";
3897
+ /**
3898
+ * Trigger the **Send Test Email** action in the Liveboard schedule modal.
3899
+ * Sends a test schedule email to self or all recipients.
3900
+ * Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
3901
+ * @example
3902
+ * ```js
3903
+ * liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
3904
+ * sendToSelf: true,
3905
+ * })
3906
+ * ```
3907
+ * @example
3908
+ * ```js
3909
+ * // Send to all recipients
3910
+ * liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
3911
+ * sendToSelf: false,
3912
+ * })
3913
+ * ```
3914
+ * @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
3915
+ */
3916
+ HostEvent["SendTestScheduleEmail"] = "sendTestScheduleEmail";
3849
3917
  })(HostEvent || (HostEvent = {}));
3850
3918
  /**
3851
3919
  * The different visual modes that the data sources panel within
@@ -3983,6 +4051,7 @@ var Param;
3983
4051
  Param["HideIrrelevantFiltersInTab"] = "hideIrrelevantFiltersAtTabLevel";
3984
4052
  Param["IsEnhancedFilterInteractivityEnabled"] = "isLiveboardPermissionV2Enabled";
3985
4053
  Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
4054
+ Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
3986
4055
  Param["OverrideOrgId"] = "orgId";
3987
4056
  Param["OauthPollingInterval"] = "oAuthPollingInterval";
3988
4057
  Param["IsForceRedirect"] = "isForceRedirect";
@@ -3999,10 +4068,12 @@ var Param;
3999
4068
  Param["IsWYSIWYGLiveboardPDFEnabled"] = "isWYSIWYGLiveboardPDFEnabled";
4000
4069
  Param["isLiveboardXLSXCSVDownloadEnabled"] = "isLiveboardXLSXCSVDownloadEnabled";
4001
4070
  Param["isGranularXLSXCSVSchedulesEnabled"] = "isGranularXLSXCSVSchedulesEnabled";
4071
+ Param["isSendNowLiveboardSchedulingEnabled"] = "isSendNowLiveboardSchedulingEnabled";
4002
4072
  Param["isCentralizedLiveboardFilterUXEnabled"] = "isCentralizedLiveboardFilterUXEnabled";
4003
4073
  Param["isLinkParametersEnabled"] = "isLinkParametersEnabled";
4004
4074
  Param["EnablePastConversationsSidebar"] = "enablePastConversationsSidebar";
4005
4075
  Param["UpdatedSpotterChatPrompt"] = "updatedSpotterChatPrompt";
4076
+ Param["EnableStopAnswerGenerationEmbed"] = "enableStopAnswerGenerationEmbed";
4006
4077
  Param["SpotterSidebarTitle"] = "spotterSidebarTitle";
4007
4078
  Param["SpotterSidebarDefaultExpanded"] = "spotterSidebarDefaultExpanded";
4008
4079
  Param["SpotterChatRenameLabel"] = "spotterChatRenameLabel";
@@ -4017,6 +4088,7 @@ var Param;
4017
4088
  Param["HideToolResponseCardBranding"] = "hideToolResponseCardBranding";
4018
4089
  Param["ToolResponseCardBrandingLabel"] = "toolResponseCardBrandingLabel";
4019
4090
  Param["EnableHomepageAnnouncement"] = "enableHomepageAnnouncement";
4091
+ Param["EnableLiveboardDataCache"] = "enableLiveboardDataCache";
4020
4092
  })(Param || (Param = {}));
4021
4093
  /**
4022
4094
  * ThoughtSpot application pages include actions and menu commands
@@ -4338,7 +4410,7 @@ var Action;
4338
4410
  * ```js
4339
4411
  * disabledActions: [Action.DownloadLiveboard]
4340
4412
  * ```
4341
- * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
4413
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
4342
4414
  */
4343
4415
  Action["DownloadLiveboard"] = "downloadLiveboard";
4344
4416
  /**
@@ -4351,6 +4423,26 @@ var Action;
4351
4423
  * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
4352
4424
  */
4353
4425
  Action["DownloadLiveboardAsContinuousPDF"] = "downloadLiveboardAsContinuousPDF";
4426
+ /**
4427
+ * The **Download Liveboard as XLSX** menu action on a Liveboard.
4428
+ * Allows downloading the entire Liveboard as an XLSX file.
4429
+ * @example
4430
+ * ```js
4431
+ * disabledActions: [Action.DownloadLiveboardAsXlsx]
4432
+ * ```
4433
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
4434
+ */
4435
+ Action["DownloadLiveboardAsXlsx"] = "downloadLiveboardAsXlsx";
4436
+ /**
4437
+ * The **Download Liveboard as CSV** menu action on a Liveboard.
4438
+ * Allows downloading the entire Liveboard as a CSV file.
4439
+ * @example
4440
+ * ```js
4441
+ * disabledActions: [Action.DownloadLiveboardAsCsv]
4442
+ * ```
4443
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
4444
+ */
4445
+ Action["DownloadLiveboardAsCsv"] = "downloadLiveboardAsCsv";
4354
4446
  /**
4355
4447
  * @hidden
4356
4448
  */
@@ -5613,6 +5705,18 @@ var Action;
5613
5705
  * @version SDK: 1.45.0 | ThoughtSpot: 26.4.0.cl
5614
5706
  */
5615
5707
  Action["IncludeCurrentPeriod"] = "includeCurrentPeriod";
5708
+ /**
5709
+ * The **Send Test Email** button in the Liveboard schedule modal.
5710
+ * Allows sending a test schedule email to self or all recipients.
5711
+ * Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
5712
+ * @example
5713
+ * ```js
5714
+ * disabledActions: [Action.SendTestScheduleEmail]
5715
+ * hiddenActions: [Action.SendTestScheduleEmail]
5716
+ * ```
5717
+ * @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
5718
+ */
5719
+ Action["SendTestScheduleEmail"] = "sendTestScheduleEmail";
5616
5720
  })(Action || (Action = {}));
5617
5721
  var PrefetchFeatures;
5618
5722
  (function (PrefetchFeatures) {
@@ -7560,7 +7664,7 @@ var _setCacheAdd = setCacheAdd;
7560
7664
  * @name has
7561
7665
  * @memberOf SetCache
7562
7666
  * @param {*} value The value to search for.
7563
- * @returns {number} Returns `true` if `value` is found, else `false`.
7667
+ * @returns {boolean} Returns `true` if `value` is found, else `false`.
7564
7668
  */
7565
7669
  function setCacheHas(value) {
7566
7670
  return this.__data__.has(value);
@@ -9853,7 +9957,7 @@ class AnswerService {
9853
9957
  async getTML() {
9854
9958
  const { object } = await this.executeQuery(getAnswerTML, {});
9855
9959
  const edoc = object[0].edoc;
9856
- const YAML = await import('./index-Bm2Hck8q.js');
9960
+ const YAML = await import('./index-CFZ7RDZ9.js');
9857
9961
  const parsedDoc = YAML.parse(edoc);
9858
9962
  return {
9859
9963
  answer: {
@@ -10929,7 +11033,7 @@ function baseOrderBy(collection, iteratees, orders) {
10929
11033
  if (isArray_1(iteratee)) {
10930
11034
  return function(value) {
10931
11035
  return _baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
10932
- }
11036
+ };
10933
11037
  }
10934
11038
  return iteratee;
10935
11039
  });
@@ -19329,7 +19433,7 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
19329
19433
  return eventData;
19330
19434
  }
19331
19435
 
19332
- var version$1="1.47.0";var pkgInfo = {version:version$1};
19436
+ var version$1="1.47.2";var pkgInfo = {version:version$1};
19333
19437
 
19334
19438
  function isValidUpdateFiltersPayload(payload) {
19335
19439
  if (!payload)
@@ -20975,6 +21079,20 @@ class TsEmbed {
20975
21079
  });
20976
21080
  });
20977
21081
  }
21082
+ /**
21083
+ * Generates the event name for a "Subscribed" embed event.
21084
+ *
21085
+ * This helper appends the "Subscribed" suffix to a given host or action event,
21086
+ * allowing you to listen for subscription lifecycle events in a consistent format.
21087
+ *
21088
+ * @param eventName - The host or action event to generate the subscribed event name for.
21089
+ * @returns The formatted event name (e.g., "Save Subscribed").
21090
+ *
21091
+ * @version SDK: 1.47.2 | ThoughtSpot: 26.3.0.cl
21092
+ */
21093
+ subscribedEvent(eventName) {
21094
+ return `${eventName} ${EmbedEvent.Subscribed}`;
21095
+ }
20978
21096
  /**
20979
21097
  * Creates the preRender shell
20980
21098
  * @param showPreRenderByDefault - Show the preRender after render, hidden by default
@@ -21564,7 +21682,7 @@ class AppEmbed extends V1Embed {
21564
21682
  * embedded Liveboard or visualization.
21565
21683
  */
21566
21684
  getEmbedParams() {
21567
- const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, enableHomepageAnnouncement = false, isContinuousLiveboardPDFEnabled, } = this.viewConfig;
21685
+ const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, enableStopAnswerGenerationEmbed, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, enableHomepageAnnouncement = false, isContinuousLiveboardPDFEnabled, enableLiveboardDataCache, } = this.viewConfig;
21568
21686
  let params = {};
21569
21687
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
21570
21688
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
@@ -21582,11 +21700,17 @@ class AppEmbed extends V1Embed {
21582
21700
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
21583
21701
  params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
21584
21702
  params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
21703
+ if (isUnifiedSearchExperienceEnabled !== undefined) {
21704
+ params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
21705
+ }
21585
21706
  params[Param.CoverAndFilterOptionInPDF] = !!coverAndFilterOptionInPDF;
21586
21707
  params = this.getBaseQueryParams(params);
21587
21708
  if (!isUndefined(updatedSpotterChatPrompt)) {
21588
21709
  params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
21589
21710
  }
21711
+ if (!isUndefined(enableStopAnswerGenerationEmbed)) {
21712
+ params[Param.EnableStopAnswerGenerationEmbed] = !!enableStopAnswerGenerationEmbed;
21713
+ }
21590
21714
  // Handle spotterChatConfig params
21591
21715
  if (spotterChatConfig) {
21592
21716
  const { hideToolResponseCardBranding, toolResponseCardBrandingLabel, } = spotterChatConfig;
@@ -21666,6 +21790,9 @@ class AppEmbed extends V1Embed {
21666
21790
  params[Param.IsWYSIWYGLiveboardPDFEnabled] = isContinuousLiveboardPDFEnabled;
21667
21791
  }
21668
21792
  this.defaultHeight = minimumHeight || this.defaultHeight;
21793
+ if (enableLiveboardDataCache !== undefined) {
21794
+ params[Param.EnableLiveboardDataCache] = enableLiveboardDataCache;
21795
+ }
21669
21796
  params[Param.DataPanelV2Enabled] = dataPanelV2;
21670
21797
  params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
21671
21798
  params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
@@ -22023,7 +22150,7 @@ class LiveboardEmbed extends V1Embed {
22023
22150
  getEmbedParamsObject() {
22024
22151
  let params = {};
22025
22152
  params = this.getBaseQueryParams(params);
22026
- const { enableVizTransformations, fullHeight, defaultHeight, minimumHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, isEnhancedFilterInteractivityEnabled = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, showSpotterLimitations, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, spotterChatConfig, isThisPeriodInDateFiltersEnabled, isContinuousLiveboardPDFEnabled, } = this.viewConfig;
22153
+ const { enableVizTransformations, fullHeight, defaultHeight, minimumHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, isEnhancedFilterInteractivityEnabled = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, showSpotterLimitations, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, enableStopAnswerGenerationEmbed, spotterChatConfig, isThisPeriodInDateFiltersEnabled, isContinuousLiveboardPDFEnabled, enableLiveboardDataCache, } = this.viewConfig;
22027
22154
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
22028
22155
  || this.viewConfig.preventPinboardFilterRemoval;
22029
22156
  if (fullHeight === true) {
@@ -22045,6 +22172,9 @@ class LiveboardEmbed extends V1Embed {
22045
22172
  if (!isUndefined(updatedSpotterChatPrompt)) {
22046
22173
  params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
22047
22174
  }
22175
+ if (!isUndefined(enableStopAnswerGenerationEmbed)) {
22176
+ params[Param.EnableStopAnswerGenerationEmbed] = !!enableStopAnswerGenerationEmbed;
22177
+ }
22048
22178
  if (visibleVizs) {
22049
22179
  params[Param.visibleVizs] = visibleVizs;
22050
22180
  }
@@ -22115,6 +22245,9 @@ class LiveboardEmbed extends V1Embed {
22115
22245
  if (isContinuousLiveboardPDFEnabled !== undefined) {
22116
22246
  params[Param.IsWYSIWYGLiveboardPDFEnabled] = isContinuousLiveboardPDFEnabled;
22117
22247
  }
22248
+ if (enableLiveboardDataCache !== undefined) {
22249
+ params[Param.EnableLiveboardDataCache] = enableLiveboardDataCache;
22250
+ }
22118
22251
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
22119
22252
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
22120
22253
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
@@ -23148,7 +23281,7 @@ class SpotterEmbed extends TsEmbed {
23148
23281
  return buildSpotterSidebarAppInitData(defaultAppInitData, this.viewConfig, this.handleError.bind(this));
23149
23282
  }
23150
23283
  getEmbedParamsObject() {
23151
- const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, updatedSpotterChatPrompt, spotterChatConfig, } = this.viewConfig;
23284
+ const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, updatedSpotterChatPrompt, enableStopAnswerGenerationEmbed, spotterChatConfig, } = this.viewConfig;
23152
23285
  if (!worksheetId) {
23153
23286
  this.handleError({
23154
23287
  errorType: ErrorDetailsTypes.VALIDATION_ERROR,
@@ -23166,6 +23299,7 @@ class SpotterEmbed extends TsEmbed {
23166
23299
  setParamIfDefined(queryParams, Param.ShowSpotterLimitations, showSpotterLimitations, true);
23167
23300
  setParamIfDefined(queryParams, Param.HideSampleQuestions, hideSampleQuestions, true);
23168
23301
  setParamIfDefined(queryParams, Param.UpdatedSpotterChatPrompt, updatedSpotterChatPrompt, true);
23302
+ setParamIfDefined(queryParams, Param.EnableStopAnswerGenerationEmbed, enableStopAnswerGenerationEmbed, true);
23169
23303
  // Handle spotterChatConfig params
23170
23304
  if (spotterChatConfig) {
23171
23305
  const { hideToolResponseCardBranding, toolResponseCardBrandingLabel, } = spotterChatConfig;