@thoughtspot/visual-embed-sdk 1.47.3 → 1.48.0

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 (102) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/auth.d.ts.map +1 -1
  3. package/cjs/src/auth.js +11 -1
  4. package/cjs/src/auth.js.map +1 -1
  5. package/cjs/src/auth.spec.js +38 -0
  6. package/cjs/src/auth.spec.js.map +1 -1
  7. package/cjs/src/authToken.d.ts +2 -0
  8. package/cjs/src/authToken.d.ts.map +1 -1
  9. package/cjs/src/authToken.js +7 -5
  10. package/cjs/src/authToken.js.map +1 -1
  11. package/cjs/src/embed/app.d.ts +1 -1
  12. package/cjs/src/embed/app.js +1 -1
  13. package/cjs/src/embed/app.js.map +1 -1
  14. package/cjs/src/embed/app.spec.js +9 -0
  15. package/cjs/src/embed/app.spec.js.map +1 -1
  16. package/cjs/src/embed/liveboard.d.ts +1 -1
  17. package/cjs/src/embed/liveboard.js +1 -1
  18. package/cjs/src/embed/liveboard.js.map +1 -1
  19. package/cjs/src/embed/liveboard.spec.js +10 -0
  20. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  21. package/cjs/src/embed/ts-embed.js +2 -2
  22. package/cjs/src/embed/ts-embed.js.map +1 -1
  23. package/cjs/src/embed/ts-embed.spec.js +29 -0
  24. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  25. package/cjs/src/tokenizedFetch.d.ts.map +1 -1
  26. package/cjs/src/tokenizedFetch.js +12 -9
  27. package/cjs/src/tokenizedFetch.js.map +1 -1
  28. package/cjs/src/tokenizedFetch.spec.d.ts +2 -0
  29. package/cjs/src/tokenizedFetch.spec.d.ts.map +1 -0
  30. package/cjs/src/tokenizedFetch.spec.js +68 -0
  31. package/cjs/src/tokenizedFetch.spec.js.map +1 -0
  32. package/cjs/src/types.d.ts +42 -13
  33. package/cjs/src/types.d.ts.map +1 -1
  34. package/cjs/src/types.js +28 -4
  35. package/cjs/src/types.js.map +1 -1
  36. package/dist/{index-DZq20cR6.js → index-Ck-r09gt.js} +1 -1
  37. package/dist/src/auth.d.ts.map +1 -1
  38. package/dist/src/authToken.d.ts +2 -0
  39. package/dist/src/authToken.d.ts.map +1 -1
  40. package/dist/src/embed/app.d.ts +1 -1
  41. package/dist/src/embed/liveboard.d.ts +1 -1
  42. package/dist/src/tokenizedFetch.d.ts.map +1 -1
  43. package/dist/src/tokenizedFetch.spec.d.ts +2 -0
  44. package/dist/src/tokenizedFetch.spec.d.ts.map +1 -0
  45. package/dist/src/types.d.ts +42 -13
  46. package/dist/src/types.d.ts.map +1 -1
  47. package/dist/tsembed-react.es.js +58 -21
  48. package/dist/tsembed-react.js +57 -20
  49. package/dist/tsembed.es.js +58 -21
  50. package/dist/tsembed.js +57 -20
  51. package/dist/visual-embed-sdk-react-full.d.ts +44 -15
  52. package/dist/visual-embed-sdk-react.d.ts +44 -15
  53. package/dist/visual-embed-sdk.d.ts +44 -15
  54. package/lib/package.json +1 -1
  55. package/lib/src/auth.d.ts.map +1 -1
  56. package/lib/src/auth.js +12 -2
  57. package/lib/src/auth.js.map +1 -1
  58. package/lib/src/auth.spec.js +38 -0
  59. package/lib/src/auth.spec.js.map +1 -1
  60. package/lib/src/authToken.d.ts +2 -0
  61. package/lib/src/authToken.d.ts.map +1 -1
  62. package/lib/src/authToken.js +2 -2
  63. package/lib/src/authToken.js.map +1 -1
  64. package/lib/src/embed/app.d.ts +1 -1
  65. package/lib/src/embed/app.js +1 -1
  66. package/lib/src/embed/app.js.map +1 -1
  67. package/lib/src/embed/app.spec.js +9 -0
  68. package/lib/src/embed/app.spec.js.map +1 -1
  69. package/lib/src/embed/liveboard.d.ts +1 -1
  70. package/lib/src/embed/liveboard.js +1 -1
  71. package/lib/src/embed/liveboard.js.map +1 -1
  72. package/lib/src/embed/liveboard.spec.js +10 -0
  73. package/lib/src/embed/liveboard.spec.js.map +1 -1
  74. package/lib/src/embed/ts-embed.js +2 -2
  75. package/lib/src/embed/ts-embed.js.map +1 -1
  76. package/lib/src/embed/ts-embed.spec.js +29 -0
  77. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  78. package/lib/src/tokenizedFetch.d.ts.map +1 -1
  79. package/lib/src/tokenizedFetch.js +13 -10
  80. package/lib/src/tokenizedFetch.js.map +1 -1
  81. package/lib/src/tokenizedFetch.spec.d.ts +2 -0
  82. package/lib/src/tokenizedFetch.spec.d.ts.map +1 -0
  83. package/lib/src/tokenizedFetch.spec.js +65 -0
  84. package/lib/src/tokenizedFetch.spec.js.map +1 -0
  85. package/lib/src/types.d.ts +42 -13
  86. package/lib/src/types.d.ts.map +1 -1
  87. package/lib/src/types.js +28 -4
  88. package/lib/src/types.js.map +1 -1
  89. package/lib/src/visual-embed-sdk.d.ts +44 -15
  90. package/package.json +1 -1
  91. package/src/auth.spec.ts +55 -1
  92. package/src/auth.ts +11 -2
  93. package/src/authToken.ts +2 -2
  94. package/src/embed/app.spec.ts +13 -0
  95. package/src/embed/app.ts +2 -2
  96. package/src/embed/liveboard.spec.ts +14 -0
  97. package/src/embed/liveboard.ts +4 -4
  98. package/src/embed/ts-embed.spec.ts +35 -0
  99. package/src/embed/ts-embed.ts +1 -1
  100. package/src/tokenizedFetch.spec.ts +81 -0
  101. package/src/tokenizedFetch.ts +14 -11
  102. package/src/types.ts +42 -13
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.47.3 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.48.0 */
2
2
  'use client';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
@@ -4284,10 +4284,14 @@
4284
4284
  /**
4285
4285
  * ThoughtSpot application pages include actions and menu commands
4286
4286
  * for various user-initiated operations. These actions are represented
4287
- * as enumeration members in the SDK. To show, hide, or disable
4288
- * specific actions in the embedded view, define the Action
4289
- * enumeration members in the `disabledActions`, `visibleActions`,
4290
- * or `hiddenActions` array.
4287
+ * as enumeration members in the SDK. To control actions in the embedded view:
4288
+ * - disabledActions the action is grayed out and still visible, but non-interactive (user can see but not click).
4289
+ * - hiddenActions the action is completely removed from the UI (user cannot see it at all).
4290
+ * - visibleActions — allowlist, only these actions are shown; all others are hidden.
4291
+ *
4292
+ * Use disabledActions to disable (gray out) an action.
4293
+ * Use hiddenActions to hide (fully remove) an action.
4294
+ * Use visibleActions to show only specific actions.
4291
4295
  * @example
4292
4296
  * ```js
4293
4297
  * const embed = new LiveboardEmbed('#tsEmbed', {
@@ -5137,6 +5141,26 @@
5137
5141
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.1.sw
5138
5142
  */
5139
5143
  Action["AxisMenuRemove"] = "axisMenuRemove";
5144
+ /**
5145
+ * The **Compare with** action in the chart axis customization menu.
5146
+ * Allows comparing data across dimensions or measures.
5147
+ * @example
5148
+ * ```js
5149
+ * disabledActions: [Action.AxisMenuCompare]
5150
+ * ```
5151
+ * @version SDK: 1.50.0 | ThoughtSpot: 26.7.0.cl
5152
+ */
5153
+ Action["AxisMenuCompare"] = "axisMenuCompare";
5154
+ /**
5155
+ * The **Merge with** action in the chart axis customization menu.
5156
+ * Allows merging data across dimensions or measures.
5157
+ * @example
5158
+ * ```js
5159
+ * disabledActions: [Action.AxisMenuMerge]
5160
+ * ```
5161
+ * @version SDK: 1.50.0 | ThoughtSpot: 26.7.0.cl
5162
+ */
5163
+ Action["AxisMenuMerge"] = "axisMenuMerge";
5140
5164
  /**
5141
5165
  * @hidden
5142
5166
  */
@@ -9573,17 +9597,20 @@
9573
9597
  */
9574
9598
  const tokenizedFetch = async (input, init) => {
9575
9599
  const embedConfig = getEmbedConfig();
9600
+ const options = { ...init };
9601
+ let token;
9576
9602
  if (embedConfig.authType !== AuthType.TrustedAuthTokenCookieless) {
9577
- return fetch(input, {
9578
- // ensure cookies are included for the non cookie-less api calls.
9579
- credentials: 'include',
9580
- ...init,
9581
- });
9603
+ token = getCacheAuthToken();
9604
+ if (!token) {
9605
+ return fetch(input, { ...options, credentials: 'include' });
9606
+ }
9607
+ }
9608
+ else {
9609
+ token = await getAuthenticationToken(embedConfig);
9582
9610
  }
9583
- const req = new Request(input, init);
9584
- const authToken = await getAuthenticationToken(embedConfig);
9585
- if (authToken) {
9586
- req.headers.append('Authorization', `Bearer ${authToken}`);
9611
+ const req = new Request(input, options);
9612
+ if (token) {
9613
+ req.headers.append('Authorization', `Bearer ${token}`);
9587
9614
  }
9588
9615
  return fetch(req);
9589
9616
  };
@@ -17945,7 +17972,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17945
17972
  default: mixpanel_cjs
17946
17973
  }, [mixpanel_cjs]);
17947
17974
 
17948
- var version="1.47.3";
17975
+ var version="1.48.0";
17949
17976
 
17950
17977
  // Needed to avoid error in CJS builds on some bundlers.
17951
17978
  const mixpanelLib = mixpanel_cjs || mixpanel$1;
@@ -19001,6 +19028,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19001
19028
  samlCompletionPromise = samlCompletionPromise || new Promise((resolve, reject) => {
19002
19029
  window.addEventListener('message', (e) => {
19003
19030
  if (e.data.type === exports.EmbedEvent.SAMLComplete) {
19031
+ if (e.data.accessToken) {
19032
+ const decodedToken = decodeURIComponent(e.data.accessToken);
19033
+ storeAuthTokenInCache(decodedToken);
19034
+ }
19004
19035
  samlCompletionResolved = true;
19005
19036
  if (popupClosedCheck) {
19006
19037
  clearInterval(popupClosedCheck);
@@ -19038,7 +19069,13 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19038
19069
  const ssoURL = `${thoughtSpotHost}${ssoEndPoint}`;
19039
19070
  if (embedConfig.inPopup) {
19040
19071
  await samlPopupFlow(ssoURL, embedConfig.authTriggerContainer, embedConfig.authTriggerText);
19041
- loggedInStatus = await isLoggedIn(thoughtSpotHost);
19072
+ const cachedToken = getCacheAuthToken();
19073
+ if (cachedToken) {
19074
+ loggedInStatus = true;
19075
+ }
19076
+ else {
19077
+ loggedInStatus = await isLoggedIn(thoughtSpotHost);
19078
+ }
19042
19079
  return;
19043
19080
  }
19044
19081
  window.location.href = ssoURL;
@@ -20348,7 +20385,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20348
20385
  return authToken;
20349
20386
  }
20350
20387
  async getDefaultAppInitData() {
20351
- var _a, _b;
20388
+ var _a, _b, _c;
20352
20389
  const authToken = await this.getAuthTokenForCookielessInit();
20353
20390
  const customActionsResult = getCustomActions([
20354
20391
  ...(this.viewConfig.customActions || []),
@@ -20380,7 +20417,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20380
20417
  customVariablesForThirdPartyTools: this.embedConfig.customVariablesForThirdPartyTools || {},
20381
20418
  hiddenListColumns: this.viewConfig.hiddenListColumns || [],
20382
20419
  customActions: customActionsResult.actions,
20383
- embedExpiryInAuthToken: this.viewConfig.refreshAuthTokenOnNearExpiry,
20420
+ embedExpiryInAuthToken: (_c = this.viewConfig.refreshAuthTokenOnNearExpiry) !== null && _c !== void 0 ? _c : true,
20384
20421
  ...getInterceptInitData(this.viewConfig),
20385
20422
  ...getHostEventsConfig(this.viewConfig),
20386
20423
  };
@@ -22051,7 +22088,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
22051
22088
  * embedded Liveboard or visualization.
22052
22089
  */
22053
22090
  getEmbedParams() {
22054
- 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, newChartsLibrary, 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;
22091
+ 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, newChartsLibrary, 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 = false, enableLiveboardDataCache, } = this.viewConfig;
22055
22092
  let params = {};
22056
22093
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
22057
22094
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
@@ -22522,7 +22559,7 @@ query GetEurekaVizSnapshots(
22522
22559
  getEmbedParamsObject() {
22523
22560
  let params = {};
22524
22561
  params = this.getBaseQueryParams(params);
22525
- 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, newChartsLibrary, 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;
22562
+ 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, newChartsLibrary, 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 = false, enableLiveboardDataCache, } = this.viewConfig;
22526
22563
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
22527
22564
  || this.viewConfig.preventPinboardFilterRemoval;
22528
22565
  if (fullHeight === true) {
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.47.3 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.48.0 */
2
2
  'use client';
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
@@ -4094,10 +4094,14 @@ var Param;
4094
4094
  /**
4095
4095
  * ThoughtSpot application pages include actions and menu commands
4096
4096
  * for various user-initiated operations. These actions are represented
4097
- * as enumeration members in the SDK. To show, hide, or disable
4098
- * specific actions in the embedded view, define the Action
4099
- * enumeration members in the `disabledActions`, `visibleActions`,
4100
- * or `hiddenActions` array.
4097
+ * as enumeration members in the SDK. To control actions in the embedded view:
4098
+ * - disabledActions the action is grayed out and still visible, but non-interactive (user can see but not click).
4099
+ * - hiddenActions the action is completely removed from the UI (user cannot see it at all).
4100
+ * - visibleActions — allowlist, only these actions are shown; all others are hidden.
4101
+ *
4102
+ * Use disabledActions to disable (gray out) an action.
4103
+ * Use hiddenActions to hide (fully remove) an action.
4104
+ * Use visibleActions to show only specific actions.
4101
4105
  * @example
4102
4106
  * ```js
4103
4107
  * const embed = new LiveboardEmbed('#tsEmbed', {
@@ -4947,6 +4951,26 @@ var Action;
4947
4951
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.1.sw
4948
4952
  */
4949
4953
  Action["AxisMenuRemove"] = "axisMenuRemove";
4954
+ /**
4955
+ * The **Compare with** action in the chart axis customization menu.
4956
+ * Allows comparing data across dimensions or measures.
4957
+ * @example
4958
+ * ```js
4959
+ * disabledActions: [Action.AxisMenuCompare]
4960
+ * ```
4961
+ * @version SDK: 1.50.0 | ThoughtSpot: 26.7.0.cl
4962
+ */
4963
+ Action["AxisMenuCompare"] = "axisMenuCompare";
4964
+ /**
4965
+ * The **Merge with** action in the chart axis customization menu.
4966
+ * Allows merging data across dimensions or measures.
4967
+ * @example
4968
+ * ```js
4969
+ * disabledActions: [Action.AxisMenuMerge]
4970
+ * ```
4971
+ * @version SDK: 1.50.0 | ThoughtSpot: 26.7.0.cl
4972
+ */
4973
+ Action["AxisMenuMerge"] = "axisMenuMerge";
4950
4974
  /**
4951
4975
  * @hidden
4952
4976
  */
@@ -9435,17 +9459,20 @@ const setEmbedConfig = (newConfig) => {
9435
9459
  */
9436
9460
  const tokenizedFetch = async (input, init) => {
9437
9461
  const embedConfig = getEmbedConfig();
9462
+ const options = { ...init };
9463
+ let token;
9438
9464
  if (embedConfig.authType !== AuthType.TrustedAuthTokenCookieless) {
9439
- return fetch(input, {
9440
- // ensure cookies are included for the non cookie-less api calls.
9441
- credentials: 'include',
9442
- ...init,
9443
- });
9465
+ token = getCacheAuthToken();
9466
+ if (!token) {
9467
+ return fetch(input, { ...options, credentials: 'include' });
9468
+ }
9469
+ }
9470
+ else {
9471
+ token = await getAuthenticationToken(embedConfig);
9444
9472
  }
9445
- const req = new Request(input, init);
9446
- const authToken = await getAuthenticationToken(embedConfig);
9447
- if (authToken) {
9448
- req.headers.append('Authorization', `Bearer ${authToken}`);
9473
+ const req = new Request(input, options);
9474
+ if (token) {
9475
+ req.headers.append('Authorization', `Bearer ${token}`);
9449
9476
  }
9450
9477
  return fetch(req);
9451
9478
  };
@@ -10077,7 +10104,7 @@ class AnswerService {
10077
10104
  async getTML() {
10078
10105
  const { object } = await this.executeQuery(getAnswerTML, {});
10079
10106
  const edoc = object[0].edoc;
10080
- const YAML = await import('./index-DZq20cR6.js');
10107
+ const YAML = await import('./index-Ck-r09gt.js');
10081
10108
  const parsedDoc = YAML.parse(edoc);
10082
10109
  return {
10083
10110
  answer: {
@@ -17807,7 +17834,7 @@ var mixpanel$1 = /*#__PURE__*/_mergeNamespaces({
17807
17834
  default: mixpanel_cjs
17808
17835
  }, [mixpanel_cjs]);
17809
17836
 
17810
- var version="1.47.3";
17837
+ var version="1.48.0";
17811
17838
 
17812
17839
  // Needed to avoid error in CJS builds on some bundlers.
17813
17840
  const mixpanelLib = mixpanel_cjs || mixpanel$1;
@@ -18879,6 +18906,10 @@ async function samlPopupFlow(ssoURL, triggerContainer, triggerText) {
18879
18906
  samlCompletionPromise = samlCompletionPromise || new Promise((resolve, reject) => {
18880
18907
  window.addEventListener('message', (e) => {
18881
18908
  if (e.data.type === EmbedEvent.SAMLComplete) {
18909
+ if (e.data.accessToken) {
18910
+ const decodedToken = decodeURIComponent(e.data.accessToken);
18911
+ storeAuthTokenInCache(decodedToken);
18912
+ }
18882
18913
  samlCompletionResolved = true;
18883
18914
  if (popupClosedCheck) {
18884
18915
  clearInterval(popupClosedCheck);
@@ -18916,7 +18947,13 @@ const doSSOAuth = async (embedConfig, ssoEndPoint) => {
18916
18947
  const ssoURL = `${thoughtSpotHost}${ssoEndPoint}`;
18917
18948
  if (embedConfig.inPopup) {
18918
18949
  await samlPopupFlow(ssoURL, embedConfig.authTriggerContainer, embedConfig.authTriggerText);
18919
- loggedInStatus = await isLoggedIn(thoughtSpotHost);
18950
+ const cachedToken = getCacheAuthToken();
18951
+ if (cachedToken) {
18952
+ loggedInStatus = true;
18953
+ }
18954
+ else {
18955
+ loggedInStatus = await isLoggedIn(thoughtSpotHost);
18956
+ }
18920
18957
  return;
18921
18958
  }
18922
18959
  window.location.href = ssoURL;
@@ -20392,7 +20429,7 @@ class TsEmbed {
20392
20429
  return authToken;
20393
20430
  }
20394
20431
  async getDefaultAppInitData() {
20395
- var _a, _b;
20432
+ var _a, _b, _c;
20396
20433
  const authToken = await this.getAuthTokenForCookielessInit();
20397
20434
  const customActionsResult = getCustomActions([
20398
20435
  ...(this.viewConfig.customActions || []),
@@ -20424,7 +20461,7 @@ class TsEmbed {
20424
20461
  customVariablesForThirdPartyTools: this.embedConfig.customVariablesForThirdPartyTools || {},
20425
20462
  hiddenListColumns: this.viewConfig.hiddenListColumns || [],
20426
20463
  customActions: customActionsResult.actions,
20427
- embedExpiryInAuthToken: this.viewConfig.refreshAuthTokenOnNearExpiry,
20464
+ embedExpiryInAuthToken: (_c = this.viewConfig.refreshAuthTokenOnNearExpiry) !== null && _c !== void 0 ? _c : true,
20428
20465
  ...getInterceptInitData(this.viewConfig),
20429
20466
  ...getHostEventsConfig(this.viewConfig),
20430
20467
  };
@@ -21823,7 +21860,7 @@ class AppEmbed extends V1Embed {
21823
21860
  * embedded Liveboard or visualization.
21824
21861
  */
21825
21862
  getEmbedParams() {
21826
- 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, newChartsLibrary, 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;
21863
+ 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, newChartsLibrary, 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 = false, enableLiveboardDataCache, } = this.viewConfig;
21827
21864
  let params = {};
21828
21865
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
21829
21866
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
@@ -22294,7 +22331,7 @@ class LiveboardEmbed extends V1Embed {
22294
22331
  getEmbedParamsObject() {
22295
22332
  let params = {};
22296
22333
  params = this.getBaseQueryParams(params);
22297
- 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, newChartsLibrary, 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;
22334
+ 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, newChartsLibrary, 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 = false, enableLiveboardDataCache, } = this.viewConfig;
22298
22335
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
22299
22336
  || this.viewConfig.preventPinboardFilterRemoval;
22300
22337
  if (fullHeight === true) {
package/dist/tsembed.js CHANGED
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.47.3 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.48.0 */
2
2
  'use client';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -4100,10 +4100,14 @@
4100
4100
  /**
4101
4101
  * ThoughtSpot application pages include actions and menu commands
4102
4102
  * for various user-initiated operations. These actions are represented
4103
- * as enumeration members in the SDK. To show, hide, or disable
4104
- * specific actions in the embedded view, define the Action
4105
- * enumeration members in the `disabledActions`, `visibleActions`,
4106
- * or `hiddenActions` array.
4103
+ * as enumeration members in the SDK. To control actions in the embedded view:
4104
+ * - disabledActions the action is grayed out and still visible, but non-interactive (user can see but not click).
4105
+ * - hiddenActions the action is completely removed from the UI (user cannot see it at all).
4106
+ * - visibleActions — allowlist, only these actions are shown; all others are hidden.
4107
+ *
4108
+ * Use disabledActions to disable (gray out) an action.
4109
+ * Use hiddenActions to hide (fully remove) an action.
4110
+ * Use visibleActions to show only specific actions.
4107
4111
  * @example
4108
4112
  * ```js
4109
4113
  * const embed = new LiveboardEmbed('#tsEmbed', {
@@ -4953,6 +4957,26 @@
4953
4957
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.1.sw
4954
4958
  */
4955
4959
  Action["AxisMenuRemove"] = "axisMenuRemove";
4960
+ /**
4961
+ * The **Compare with** action in the chart axis customization menu.
4962
+ * Allows comparing data across dimensions or measures.
4963
+ * @example
4964
+ * ```js
4965
+ * disabledActions: [Action.AxisMenuCompare]
4966
+ * ```
4967
+ * @version SDK: 1.50.0 | ThoughtSpot: 26.7.0.cl
4968
+ */
4969
+ Action["AxisMenuCompare"] = "axisMenuCompare";
4970
+ /**
4971
+ * The **Merge with** action in the chart axis customization menu.
4972
+ * Allows merging data across dimensions or measures.
4973
+ * @example
4974
+ * ```js
4975
+ * disabledActions: [Action.AxisMenuMerge]
4976
+ * ```
4977
+ * @version SDK: 1.50.0 | ThoughtSpot: 26.7.0.cl
4978
+ */
4979
+ Action["AxisMenuMerge"] = "axisMenuMerge";
4956
4980
  /**
4957
4981
  * @hidden
4958
4982
  */
@@ -9441,17 +9465,20 @@
9441
9465
  */
9442
9466
  const tokenizedFetch = async (input, init) => {
9443
9467
  const embedConfig = getEmbedConfig();
9468
+ const options = { ...init };
9469
+ let token;
9444
9470
  if (embedConfig.authType !== exports.AuthType.TrustedAuthTokenCookieless) {
9445
- return fetch(input, {
9446
- // ensure cookies are included for the non cookie-less api calls.
9447
- credentials: 'include',
9448
- ...init,
9449
- });
9471
+ token = getCacheAuthToken();
9472
+ if (!token) {
9473
+ return fetch(input, { ...options, credentials: 'include' });
9474
+ }
9475
+ }
9476
+ else {
9477
+ token = await getAuthenticationToken(embedConfig);
9450
9478
  }
9451
- const req = new Request(input, init);
9452
- const authToken = await getAuthenticationToken(embedConfig);
9453
- if (authToken) {
9454
- req.headers.append('Authorization', `Bearer ${authToken}`);
9479
+ const req = new Request(input, options);
9480
+ if (token) {
9481
+ req.headers.append('Authorization', `Bearer ${token}`);
9455
9482
  }
9456
9483
  return fetch(req);
9457
9484
  };
@@ -17813,7 +17840,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17813
17840
  default: mixpanel_cjs
17814
17841
  }, [mixpanel_cjs]);
17815
17842
 
17816
- var version="1.47.3";
17843
+ var version="1.48.0";
17817
17844
 
17818
17845
  // Needed to avoid error in CJS builds on some bundlers.
17819
17846
  const mixpanelLib = mixpanel_cjs || mixpanel$1;
@@ -18885,6 +18912,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18885
18912
  samlCompletionPromise = samlCompletionPromise || new Promise((resolve, reject) => {
18886
18913
  window.addEventListener('message', (e) => {
18887
18914
  if (e.data.type === exports.EmbedEvent.SAMLComplete) {
18915
+ if (e.data.accessToken) {
18916
+ const decodedToken = decodeURIComponent(e.data.accessToken);
18917
+ storeAuthTokenInCache(decodedToken);
18918
+ }
18888
18919
  samlCompletionResolved = true;
18889
18920
  if (popupClosedCheck) {
18890
18921
  clearInterval(popupClosedCheck);
@@ -18922,7 +18953,13 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18922
18953
  const ssoURL = `${thoughtSpotHost}${ssoEndPoint}`;
18923
18954
  if (embedConfig.inPopup) {
18924
18955
  await samlPopupFlow(ssoURL, embedConfig.authTriggerContainer, embedConfig.authTriggerText);
18925
- loggedInStatus = await isLoggedIn(thoughtSpotHost);
18956
+ const cachedToken = getCacheAuthToken();
18957
+ if (cachedToken) {
18958
+ loggedInStatus = true;
18959
+ }
18960
+ else {
18961
+ loggedInStatus = await isLoggedIn(thoughtSpotHost);
18962
+ }
18926
18963
  return;
18927
18964
  }
18928
18965
  window.location.href = ssoURL;
@@ -20398,7 +20435,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20398
20435
  return authToken;
20399
20436
  }
20400
20437
  async getDefaultAppInitData() {
20401
- var _a, _b;
20438
+ var _a, _b, _c;
20402
20439
  const authToken = await this.getAuthTokenForCookielessInit();
20403
20440
  const customActionsResult = getCustomActions([
20404
20441
  ...(this.viewConfig.customActions || []),
@@ -20430,7 +20467,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20430
20467
  customVariablesForThirdPartyTools: this.embedConfig.customVariablesForThirdPartyTools || {},
20431
20468
  hiddenListColumns: this.viewConfig.hiddenListColumns || [],
20432
20469
  customActions: customActionsResult.actions,
20433
- embedExpiryInAuthToken: this.viewConfig.refreshAuthTokenOnNearExpiry,
20470
+ embedExpiryInAuthToken: (_c = this.viewConfig.refreshAuthTokenOnNearExpiry) !== null && _c !== void 0 ? _c : true,
20434
20471
  ...getInterceptInitData(this.viewConfig),
20435
20472
  ...getHostEventsConfig(this.viewConfig),
20436
20473
  };
@@ -21829,7 +21866,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
21829
21866
  * embedded Liveboard or visualization.
21830
21867
  */
21831
21868
  getEmbedParams() {
21832
- 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, newChartsLibrary, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = exports.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;
21869
+ 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, newChartsLibrary, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = exports.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 = false, enableLiveboardDataCache, } = this.viewConfig;
21833
21870
  let params = {};
21834
21871
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
21835
21872
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
@@ -22300,7 +22337,7 @@ query GetEurekaVizSnapshots(
22300
22337
  getEmbedParamsObject() {
22301
22338
  let params = {};
22302
22339
  params = this.getBaseQueryParams(params);
22303
- 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, newChartsLibrary, 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;
22340
+ 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, newChartsLibrary, 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 = false, enableLiveboardDataCache, } = this.viewConfig;
22304
22341
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
22305
22342
  || this.viewConfig.preventPinboardFilterRemoval;
22306
22343
  if (fullHeight === true) {
@@ -1847,9 +1847,10 @@ export interface BaseViewConfig extends ApiInterceptFlags {
1847
1847
  styleSheet__unstable?: string;
1848
1848
  /**
1849
1849
  * The list of actions to disable from the primary menu, more menu
1850
- * (...), and the contextual menu. These actions will be disabled
1851
- * for the user.
1852
- * Use this to disable actions.
1850
+ * (...), and the contextual menu. Disabled actions are grayed out
1851
+ * and still visible to the user, but cannot be clicked.
1852
+ * Use this when you want to disable an action (keep it visible but non-interactive).
1853
+ * To completely remove an action from the UI, use {@link hiddenActions} instead.
1853
1854
  *
1854
1855
  * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
1855
1856
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
@@ -1880,9 +1881,10 @@ export interface BaseViewConfig extends ApiInterceptFlags {
1880
1881
  */
1881
1882
  disabledActionReason?: string;
1882
1883
  /**
1883
- * The list of actions to hide from the embedded view.
1884
- * These actions will be hidden from the user.
1885
- * Use this to hide an action.
1884
+ * The list of actions to completely remove from the embedded view.
1885
+ * Hidden actions are not visible to the user at all (fully removed from the UI).
1886
+ * Use this when you want to remove an action entirely.
1887
+ * To keep an action visible but non-interactive (grayed out), use {@link disabledActions} instead.
1886
1888
  *
1887
1889
  * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
1888
1890
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
@@ -1901,9 +1903,8 @@ export interface BaseViewConfig extends ApiInterceptFlags {
1901
1903
  * The list of actions to display from the primary menu, more menu
1902
1904
  * (...), and the contextual menu. These will be only actions that
1903
1905
  * are visible to the user.
1904
- * Use this to hide all actions except the ones you want to show.
1905
- *
1906
- * Use either this or hiddenActions.
1906
+ * Use this as an allowlist only the actions listed here will be shown.
1907
+ * All other actions will be hidden. Use either this or {@link hiddenActions}, not both.
1907
1908
  *
1908
1909
  * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
1909
1910
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
@@ -2357,6 +2358,7 @@ export interface BaseViewConfig extends ApiInterceptFlags {
2357
2358
  /**
2358
2359
  * Refresh the auth token when the token is near expiry.
2359
2360
  * @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
2361
+ * @default true
2360
2362
  * @example
2361
2363
  * ```js
2362
2364
  * const embed = new AppEmbed('#tsEmbed', {
@@ -6649,10 +6651,14 @@ export declare enum DataSourceVisualMode {
6649
6651
  /**
6650
6652
  * ThoughtSpot application pages include actions and menu commands
6651
6653
  * for various user-initiated operations. These actions are represented
6652
- * as enumeration members in the SDK. To show, hide, or disable
6653
- * specific actions in the embedded view, define the Action
6654
- * enumeration members in the `disabledActions`, `visibleActions`,
6655
- * or `hiddenActions` array.
6654
+ * as enumeration members in the SDK. To control actions in the embedded view:
6655
+ * - disabledActions the action is grayed out and still visible, but non-interactive (user can see but not click).
6656
+ * - hiddenActions the action is completely removed from the UI (user cannot see it at all).
6657
+ * - visibleActions — allowlist, only these actions are shown; all others are hidden.
6658
+ *
6659
+ * Use disabledActions to disable (gray out) an action.
6660
+ * Use hiddenActions to hide (fully remove) an action.
6661
+ * Use visibleActions to show only specific actions.
6656
6662
  * @example
6657
6663
  * ```js
6658
6664
  * const embed = new LiveboardEmbed('#tsEmbed', {
@@ -7499,6 +7505,26 @@ export declare enum Action {
7499
7505
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.1.sw
7500
7506
  */
7501
7507
  AxisMenuRemove = "axisMenuRemove",
7508
+ /**
7509
+ * The **Compare with** action in the chart axis customization menu.
7510
+ * Allows comparing data across dimensions or measures.
7511
+ * @example
7512
+ * ```js
7513
+ * disabledActions: [Action.AxisMenuCompare]
7514
+ * ```
7515
+ * @version SDK: 1.50.0 | ThoughtSpot: 26.7.0.cl
7516
+ */
7517
+ AxisMenuCompare = "axisMenuCompare",
7518
+ /**
7519
+ * The **Merge with** action in the chart axis customization menu.
7520
+ * Allows merging data across dimensions or measures.
7521
+ * @example
7522
+ * ```js
7523
+ * disabledActions: [Action.AxisMenuMerge]
7524
+ * ```
7525
+ * @version SDK: 1.50.0 | ThoughtSpot: 26.7.0.cl
7526
+ */
7527
+ AxisMenuMerge = "axisMenuMerge",
7502
7528
  /**
7503
7529
  * @hidden
7504
7530
  */
@@ -8612,6 +8638,9 @@ export interface DefaultAppInitData {
8612
8638
  customActions: CustomAction[];
8613
8639
  interceptTimeout: number | undefined;
8614
8640
  interceptUrls: (string | InterceptedApiType)[];
8641
+ embedExpiryInAuthToken: boolean;
8642
+ shouldBypassPayloadValidation?: boolean;
8643
+ useHostEventsV2?: boolean;
8615
8644
  }
8616
8645
  /**
8617
8646
  * Enum for the type of API intercepted
@@ -11407,7 +11436,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
11407
11436
  /**
11408
11437
  * Enables the 'what you see is what you get' PDF export for Liveboards. Each tab is rendered on a single page
11409
11438
  * following the exact UI layout, instead of splitting visualizations across multiple A4 pages.
11410
- * This feature is GA from version 26.5.0.cl and is enabled by default on embed deployments.
11439
+ * This feature is GA from version 26.5.0.cl. It is disabled by default in embed deployments.
11411
11440
  *
11412
11441
  * Supported embed types: `AppEmbed`, `LiveboardEmbed`
11413
11442
  * @type {boolean}
@@ -12063,7 +12092,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, SearchLiveboardComm
12063
12092
  /**
12064
12093
  * Enables the 'what you see is what you get' PDF export for Liveboards. Each tab is rendered on a single page
12065
12094
  * following the exact UI layout, instead of splitting visualizations across multiple A4 pages.
12066
- * This feature is GA from version 26.5.0.cl and is enabled by default on embed deployments.
12095
+ * This feature is GA from version 26.5.0.cl. It is disabled by default in embed deployments.
12067
12096
  *
12068
12097
  * Supported embed types: `AppEmbed`, `LiveboardEmbed`
12069
12098
  * @type {boolean}