@thoughtspot/visual-embed-sdk 1.33.2 → 1.33.4

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 (166) hide show
  1. package/README.md +1 -1
  2. package/cjs/package.json +1 -1
  3. package/cjs/src/auth.d.ts.map +1 -1
  4. package/cjs/src/auth.js +5 -2
  5. package/cjs/src/auth.js.map +1 -1
  6. package/cjs/src/auth.spec.js +15 -3
  7. package/cjs/src/auth.spec.js.map +1 -1
  8. package/cjs/src/css-variables.d.ts +2 -2
  9. package/cjs/src/embed/app.d.ts +20 -6
  10. package/cjs/src/embed/app.d.ts.map +1 -1
  11. package/cjs/src/embed/app.js +3 -2
  12. package/cjs/src/embed/app.js.map +1 -1
  13. package/cjs/src/embed/app.spec.js +10 -0
  14. package/cjs/src/embed/app.spec.js.map +1 -1
  15. package/cjs/src/embed/base.spec.js +13 -1
  16. package/cjs/src/embed/base.spec.js.map +1 -1
  17. package/cjs/src/embed/conversation.d.ts.map +1 -1
  18. package/cjs/src/embed/conversation.js +4 -0
  19. package/cjs/src/embed/conversation.js.map +1 -1
  20. package/cjs/src/embed/conversation.spec.js +13 -0
  21. package/cjs/src/embed/conversation.spec.js.map +1 -1
  22. package/cjs/src/embed/liveboard.d.ts +0 -3
  23. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  24. package/cjs/src/embed/liveboard.js +1 -2
  25. package/cjs/src/embed/liveboard.js.map +1 -1
  26. package/cjs/src/embed/liveboard.spec.js +2 -2
  27. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  28. package/cjs/src/embed/search.js +1 -1
  29. package/cjs/src/embed/search.js.map +1 -1
  30. package/cjs/src/embed/search.spec.js +6 -6
  31. package/cjs/src/embed/search.spec.js.map +1 -1
  32. package/cjs/src/embed/ts-embed.spec.js +1 -1
  33. package/cjs/src/errors.d.ts +1 -0
  34. package/cjs/src/errors.d.ts.map +1 -1
  35. package/cjs/src/errors.js +10 -9
  36. package/cjs/src/errors.js.map +1 -1
  37. package/cjs/src/react/index.spec.js +1 -1
  38. package/cjs/src/react/index.spec.js.map +1 -1
  39. package/cjs/src/tokenizedFetch.d.ts +0 -1
  40. package/cjs/src/tokenizedFetch.d.ts.map +1 -1
  41. package/cjs/src/tokenizedFetch.js +0 -1
  42. package/cjs/src/tokenizedFetch.js.map +1 -1
  43. package/cjs/src/types.d.ts +40 -22
  44. package/cjs/src/types.d.ts.map +1 -1
  45. package/cjs/src/types.js +35 -17
  46. package/cjs/src/types.js.map +1 -1
  47. package/cjs/src/utils/processData.d.ts.map +1 -1
  48. package/cjs/src/utils/processData.js +0 -1
  49. package/cjs/src/utils/processData.js.map +1 -1
  50. package/cjs/src/utils/sessionInfoService.d.ts +0 -4
  51. package/cjs/src/utils/sessionInfoService.d.ts.map +1 -1
  52. package/cjs/src/utils/sessionInfoService.js +0 -4
  53. package/cjs/src/utils/sessionInfoService.js.map +1 -1
  54. package/cjs/src/utils.d.ts +1 -0
  55. package/cjs/src/utils.d.ts.map +1 -1
  56. package/cjs/src/utils.js +13 -3
  57. package/cjs/src/utils.js.map +1 -1
  58. package/cjs/src/utils.spec.js +6 -6
  59. package/cjs/src/utils.spec.js.map +1 -1
  60. package/dist/{index-CqrIh3Vj.js → index-Cl8Rsh6W.js} +1 -1
  61. package/dist/src/auth.d.ts.map +1 -1
  62. package/dist/src/css-variables.d.ts +2 -2
  63. package/dist/src/embed/app.d.ts +20 -6
  64. package/dist/src/embed/app.d.ts.map +1 -1
  65. package/dist/src/embed/conversation.d.ts.map +1 -1
  66. package/dist/src/embed/liveboard.d.ts +0 -3
  67. package/dist/src/embed/liveboard.d.ts.map +1 -1
  68. package/dist/src/errors.d.ts +1 -0
  69. package/dist/src/errors.d.ts.map +1 -1
  70. package/dist/src/tokenizedFetch.d.ts +0 -1
  71. package/dist/src/tokenizedFetch.d.ts.map +1 -1
  72. package/dist/src/types.d.ts +40 -22
  73. package/dist/src/types.d.ts.map +1 -1
  74. package/dist/src/utils/processData.d.ts.map +1 -1
  75. package/dist/src/utils/sessionInfoService.d.ts +0 -4
  76. package/dist/src/utils/sessionInfoService.d.ts.map +1 -1
  77. package/dist/src/utils.d.ts +1 -0
  78. package/dist/src/utils.d.ts.map +1 -1
  79. package/dist/tsembed-react.es.js +72 -42
  80. package/dist/tsembed-react.js +71 -41
  81. package/dist/tsembed.es.js +72 -42
  82. package/dist/tsembed.js +71 -41
  83. package/dist/visual-embed-sdk-react-full.d.ts +62 -38
  84. package/dist/visual-embed-sdk-react.d.ts +62 -38
  85. package/dist/visual-embed-sdk.d.ts +62 -38
  86. package/lib/package.json +1 -1
  87. package/lib/src/auth.d.ts.map +1 -1
  88. package/lib/src/auth.js +6 -3
  89. package/lib/src/auth.js.map +1 -1
  90. package/lib/src/auth.spec.js +15 -3
  91. package/lib/src/auth.spec.js.map +1 -1
  92. package/lib/src/css-variables.d.ts +2 -2
  93. package/lib/src/embed/app.d.ts +20 -6
  94. package/lib/src/embed/app.d.ts.map +1 -1
  95. package/lib/src/embed/app.js +3 -2
  96. package/lib/src/embed/app.js.map +1 -1
  97. package/lib/src/embed/app.spec.js +10 -0
  98. package/lib/src/embed/app.spec.js.map +1 -1
  99. package/lib/src/embed/base.spec.js +13 -1
  100. package/lib/src/embed/base.spec.js.map +1 -1
  101. package/lib/src/embed/conversation.d.ts.map +1 -1
  102. package/lib/src/embed/conversation.js +4 -0
  103. package/lib/src/embed/conversation.js.map +1 -1
  104. package/lib/src/embed/conversation.spec.js +13 -0
  105. package/lib/src/embed/conversation.spec.js.map +1 -1
  106. package/lib/src/embed/liveboard.d.ts +0 -3
  107. package/lib/src/embed/liveboard.d.ts.map +1 -1
  108. package/lib/src/embed/liveboard.js +1 -2
  109. package/lib/src/embed/liveboard.js.map +1 -1
  110. package/lib/src/embed/liveboard.spec.js +2 -2
  111. package/lib/src/embed/liveboard.spec.js.map +1 -1
  112. package/lib/src/embed/search.js +1 -1
  113. package/lib/src/embed/search.js.map +1 -1
  114. package/lib/src/embed/search.spec.js +6 -6
  115. package/lib/src/embed/search.spec.js.map +1 -1
  116. package/lib/src/embed/ts-embed.spec.js +1 -1
  117. package/lib/src/errors.d.ts +1 -0
  118. package/lib/src/errors.d.ts.map +1 -1
  119. package/lib/src/errors.js +10 -9
  120. package/lib/src/errors.js.map +1 -1
  121. package/lib/src/react/index.spec.js +1 -1
  122. package/lib/src/react/index.spec.js.map +1 -1
  123. package/lib/src/tokenizedFetch.d.ts +0 -1
  124. package/lib/src/tokenizedFetch.d.ts.map +1 -1
  125. package/lib/src/tokenizedFetch.js +0 -1
  126. package/lib/src/tokenizedFetch.js.map +1 -1
  127. package/lib/src/types.d.ts +40 -22
  128. package/lib/src/types.d.ts.map +1 -1
  129. package/lib/src/types.js +35 -17
  130. package/lib/src/types.js.map +1 -1
  131. package/lib/src/utils/processData.d.ts.map +1 -1
  132. package/lib/src/utils/processData.js +0 -1
  133. package/lib/src/utils/processData.js.map +1 -1
  134. package/lib/src/utils/sessionInfoService.d.ts +0 -4
  135. package/lib/src/utils/sessionInfoService.d.ts.map +1 -1
  136. package/lib/src/utils/sessionInfoService.js +0 -4
  137. package/lib/src/utils/sessionInfoService.js.map +1 -1
  138. package/lib/src/utils.d.ts +1 -0
  139. package/lib/src/utils.d.ts.map +1 -1
  140. package/lib/src/utils.js +11 -2
  141. package/lib/src/utils.js.map +1 -1
  142. package/lib/src/utils.spec.js +6 -6
  143. package/lib/src/utils.spec.js.map +1 -1
  144. package/lib/src/visual-embed-sdk.d.ts +62 -38
  145. package/package.json +1 -1
  146. package/src/auth.spec.ts +15 -3
  147. package/src/auth.ts +7 -3
  148. package/src/css-variables.ts +2 -2
  149. package/src/embed/app.spec.ts +15 -0
  150. package/src/embed/app.ts +23 -7
  151. package/src/embed/base.spec.ts +13 -1
  152. package/src/embed/conversation.spec.ts +16 -0
  153. package/src/embed/conversation.ts +4 -0
  154. package/src/embed/liveboard.spec.ts +2 -2
  155. package/src/embed/liveboard.ts +1 -4
  156. package/src/embed/search.spec.ts +6 -6
  157. package/src/embed/search.ts +1 -1
  158. package/src/embed/ts-embed.spec.ts +1 -1
  159. package/src/errors.ts +10 -9
  160. package/src/react/index.spec.tsx +1 -1
  161. package/src/tokenizedFetch.ts +0 -1
  162. package/src/types.ts +38 -20
  163. package/src/utils/processData.ts +0 -1
  164. package/src/utils/sessionInfoService.ts +0 -4
  165. package/src/utils.spec.ts +6 -6
  166. package/src/utils.ts +14 -2
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.33.2 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.33.4 */
2
2
  import * as React from 'react';
3
3
  import React__default from 'react';
4
4
 
@@ -282,6 +282,10 @@ const getCssDimension = (value) => {
282
282
  }
283
283
  return value;
284
284
  };
285
+ const getSSOMarker = (markerId) => {
286
+ const encStringToAppend = encodeURIComponent(markerId);
287
+ return `tsSSOMarker=${encStringToAppend}`;
288
+ };
285
289
  /**
286
290
  * Append a string to a URL's hash fragment
287
291
  * @param url A URL
@@ -290,12 +294,17 @@ const getCssDimension = (value) => {
290
294
  const appendToUrlHash = (url, stringToAppend) => {
291
295
  let outputUrl = url;
292
296
  const encStringToAppend = encodeURIComponent(stringToAppend);
297
+ const marker = `tsSSOMarker=${encStringToAppend}`;
298
+ let splitAdder = '';
293
299
  if (url.indexOf('#') >= 0) {
294
- outputUrl = `${outputUrl}${encStringToAppend}`;
300
+ // If second half of hash contains a '?' already add a '&' instead of
301
+ // '?' which appends to query params.
302
+ splitAdder = url.split('#')[1].indexOf('?') >= 0 ? '&' : '?';
295
303
  }
296
304
  else {
297
- outputUrl = `${outputUrl}#${encStringToAppend}`;
305
+ splitAdder = '#?';
298
306
  }
307
+ outputUrl = `${outputUrl}${splitAdder}${marker}`;
299
308
  return outputUrl;
300
309
  };
301
310
  /**
@@ -1662,22 +1671,26 @@ var EmbedEvent;
1662
1671
  */
1663
1672
  EmbedEvent["Rename"] = "rename";
1664
1673
  /**
1665
- * Emitted if the user wants to intercept the search execution
1666
- * and implement logic to decide whether to run the search or not
1667
1674
  *
1668
- * Prerequisite: Set isOnBeforeGetVizDataInterceptEnabled : true
1675
+ * This event can be emitted to intercept search execution initiated by
1676
+ * the users and implement the logic to allow or restrict search execution.
1677
+ * You can can also show custom error text if the search query must be
1678
+ * restricted due to your application or business requirements.
1679
+
1680
+ * Prerequisite: Set `isOnBeforeGetVizDataInterceptEnabled` to `true`
1669
1681
  * for this embed event to get emitted.
1670
1682
  * @param: payload
1671
1683
  * @param: responder
1672
1684
  * Contains elements that lets developers define whether ThoughtSpot
1673
- * will run the search or not, and if not, which error message to provide.
1685
+ * should run the search, and if not, what error message
1686
+ * should be shown to the user.
1674
1687
  *
1675
- * execute: When execute returns true, the search will be run.
1676
- * When execute returns false, the search will not be executed.
1688
+ * execute: When execute returns `true`, the search will be run.
1689
+ * When execute returns `false`, the search will not be executed.
1677
1690
  *
1678
- * error: Developers can customize the user facing message when execute is
1679
- * set to false using the error parameter in responder
1680
- * @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
1691
+ * error: Developers can customize the error message text when `execute`
1692
+ * returns `false` using the error parameter in responder.
1693
+ * @version SDK : 1.29.0 | Thoughtspot : 10.3.0.cl
1681
1694
  * @example
1682
1695
  *```js
1683
1696
  * .on(EmbedEvent.OnBeforeGetVizDataIntercept,
@@ -1717,15 +1730,15 @@ var EmbedEvent;
1717
1730
  */
1718
1731
  EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
1719
1732
  /**
1720
- * Emitted when parameter changes in an answer
1721
- * or liveboard
1733
+ * Emitted when parameter changes in an Answer
1734
+ * or Liveboard
1722
1735
  *
1723
1736
  * ```js
1724
1737
  * liveboardEmbed.on(EmbedEvent.ParameterChanged, (payload) => {
1725
1738
  * console.log('payload', payload);
1726
1739
  * })
1727
1740
  *```
1728
- * @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
1741
+ * @version SDK : 1.29.0 | Thoughtspot : 10.3.0.cl
1729
1742
  */
1730
1743
  EmbedEvent["ParameterChanged"] = "parameterChanged";
1731
1744
  })(EmbedEvent || (EmbedEvent = {}));
@@ -2456,8 +2469,12 @@ var HostEvent;
2456
2469
  * see link:https://developers.thoughtspot.com/docs/runtime-filters#rtOperator[Developer Documentation].
2457
2470
  *
2458
2471
  * `values` - An array of one or several values. The value definition on the
2459
- * data type you choose to filter on. For a complete list of supported data types,
2460
- * see link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Developer Documentation].
2472
+ * data type you choose to filter on. For a complete list of supported data types, see
2473
+ * link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported data types].
2474
+ *
2475
+ * `type` - To update filters for date time, specify the date format type.
2476
+ * For more information and examples, see link:https://developers.thoughtspot.com/docs/embed-liveboard#_date_filters[Date filters].
2477
+ *
2461
2478
  * @example
2462
2479
  * ```js
2463
2480
  *
@@ -2587,7 +2604,7 @@ var HostEvent;
2587
2604
  */
2588
2605
  HostEvent["AskSage"] = "AskSage";
2589
2606
  /**
2590
- * Trigger UpdateCrossFilter for Liveboard
2607
+ * Trigger cross filter update action on a Liveboard
2591
2608
  * @example
2592
2609
  * ```js
2593
2610
  * liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
@@ -2602,7 +2619,7 @@ var HostEvent;
2602
2619
  */
2603
2620
  HostEvent["UpdateCrossFilter"] = "UpdateCrossFilter";
2604
2621
  /**
2605
- * Trigger ResetLiveboardPersonalisedView for Liveboard
2622
+ * Trigger reset action for a personalized Liveboard view.
2606
2623
  * @example
2607
2624
  * ```js
2608
2625
  * liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
@@ -2748,6 +2765,7 @@ var Param;
2748
2765
  Param["ShowLiveboardReverifyBanner"] = "showLiveboardReverifyBanner";
2749
2766
  Param["LiveboardHeaderV2"] = "isLiveboardHeaderV2Enabled";
2750
2767
  Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
2768
+ Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
2751
2769
  })(Param || (Param = {}));
2752
2770
  /**
2753
2771
  * ThoughtSpot application pages include actions and menu commands
@@ -3719,7 +3737,7 @@ var Action;
3719
3737
  */
3720
3738
  Action["AIHighlights"] = "AIHighlights";
3721
3739
  /**
3722
- * Action ID for edit schedule action on schedule on homepage
3740
+ * Action ID for edit the schedule action on schedule on homepage
3723
3741
  * @example
3724
3742
  * ```js
3725
3743
  * disabledActions: [Action.EditScheduleHomepage]
@@ -3781,6 +3799,15 @@ var Action;
3781
3799
  * @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
3782
3800
  */
3783
3801
  Action["KPIAnalysisCTA"] = "kpiAnalysisCTA";
3802
+ /**
3803
+ * Action ID for disabling chip reorder in Answer and Liveboard
3804
+ * @example
3805
+ * ```js
3806
+ * const disabledActions = [Action.DisableChipReorder]
3807
+ * ```
3808
+ * @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
3809
+ */
3810
+ Action["DisableChipReorder"] = "disableChipReorder";
3784
3811
  })(Action || (Action = {}));
3785
3812
  var PrefetchFeatures;
3786
3813
  (function (PrefetchFeatures) {
@@ -6147,20 +6174,21 @@ const logger$3 = new Logger();
6147
6174
 
6148
6175
  const ERROR_MESSAGE = {
6149
6176
  INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
6150
- LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a liveboard to embed.',
6151
- TRIGGER_TIMED_OUT: 'Trigger timedout in getting response',
6152
- SEARCHEMBED_BETA_WRANING_MESSAGE: 'Search Embed is in Beta in this release.',
6153
- SAGE_EMBED_BETA_WARNING_MESSAGE: 'Sage Embed is in Beta in this release.',
6154
- THIRD_PARTY_COOKIE_BLOCKED_ALERT: 'Third party cookie access is blocked on this browser, please allow third party cookies for this to work properly. \nYou can use `suppressNoCookieAccessAlert` to suppress this message.',
6155
- DUPLICATE_TOKEN_ERR: 'Duplicate token, please issue a new token every time getAuthToken callback is called. See https://developers.thoughtspot.com/docs/?pageid=embed-auth#trusted-auth-embed for more details.',
6177
+ SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND: 'Please select a worksheet to get started',
6178
+ LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a Liveboard to embed.',
6179
+ TRIGGER_TIMED_OUT: 'Trigger timed-out in getting a response',
6180
+ SEARCHEMBED_BETA_WRANING_MESSAGE: 'SearchEmbed is in Beta in this release.',
6181
+ SAGE_EMBED_BETA_WARNING_MESSAGE: 'SageEmbed is in Beta in this release.',
6182
+ THIRD_PARTY_COOKIE_BLOCKED_ALERT: 'Third-party cookie access is blocked on this browser. Please allow third-party cookies for this to work properly. \nYou can use `suppressNoCookieAccessAlert` to suppress this message.',
6183
+ DUPLICATE_TOKEN_ERR: 'Duplicate token. Please issue a new token every time getAuthToken callback is called. See https://developers.thoughtspot.com/docs/?pageid=embed-auth#trusted-auth-embed for more details.',
6156
6184
  SDK_NOT_INITIALIZED: 'SDK not initialized',
6157
- SESSION_INFO_FAILED: 'Failed to get session info',
6185
+ SESSION_INFO_FAILED: 'Failed to get session information',
6158
6186
  INVALID_TOKEN_ERROR: 'Received invalid token from getAuthToken callback or authToken endpoint.',
6159
6187
  MIXPANEL_TOKEN_NOT_FOUND: 'Mixpanel token not found in session info',
6160
- PRERENDER_ID_MISSING: 'PreRender id is required for preRender',
6188
+ PRERENDER_ID_MISSING: 'PreRender ID is required for preRender',
6161
6189
  SYNC_STYLE_CALLED_BEFORE_RENDER: 'PreRender should be called before using syncPreRenderStyle',
6162
6190
  CSP_VIOLATION_ALERT: 'CSP violation detected. Please check the console errors for more details.',
6163
- CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE: 'Please setup CSP Correctly for the Application to start working. You can know more about setting CSP Correctly here: https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts. \n In case you are still facing error, please read: https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts',
6191
+ CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE: 'Please set up CSP correctly for the application to start working. For more information, see https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts. \n If the issue persists, refer to https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts',
6164
6192
  MISSING_REPORTING_OBSERVER: 'ReportingObserver not supported',
6165
6193
  };
6166
6194
 
@@ -6367,7 +6395,6 @@ const getEmbedConfig = () => config;
6367
6395
  * Fetch wrapper that adds the authentication token to the request.
6368
6396
  * Use this to call the ThoughtSpot APIs when using the visual embed sdk.
6369
6397
  * The interface for this method is the same as Web `Fetch`.
6370
- *
6371
6398
  * @param input
6372
6399
  * @param init
6373
6400
  * @example
@@ -6969,7 +6996,7 @@ class AnswerService {
6969
6996
  async getTML() {
6970
6997
  const { object } = await this.executeQuery(getAnswerTML, {});
6971
6998
  const edoc = object[0].edoc;
6972
- const YAML = await import('./index-CqrIh3Vj.js');
6999
+ const YAML = await import('./index-Cl8Rsh6W.js');
6973
7000
  const parsedDoc = YAML.parse(edoc);
6974
7001
  return {
6975
7002
  answer: {
@@ -13751,7 +13778,6 @@ let sessionInfo = null;
13751
13778
  * Returns the session info object and caches it for future use.
13752
13779
  * Once fetched the session info object is cached and returned from the cache on
13753
13780
  * subsequent calls.
13754
- *
13755
13781
  * @example ```js
13756
13782
  * const sessionInfo = await getSessionInfo();
13757
13783
  * console.log(sessionInfo);
@@ -13770,7 +13796,6 @@ async function getSessionInfo() {
13770
13796
  }
13771
13797
  /**
13772
13798
  * Processes the session info response and returns the session info object.
13773
- *
13774
13799
  * @param sessionInfoResp {any} Response from the session info API.
13775
13800
  * @returns {SessionInfo} The session info object.
13776
13801
  * @example ```js
@@ -13943,7 +13968,7 @@ function getReleaseVersion() {
13943
13968
  * Check if we are stuck at the SSO redirect URL
13944
13969
  */
13945
13970
  function isAtSSORedirectUrl() {
13946
- return window.location.href.indexOf(SSO_REDIRECTION_MARKER_GUID) >= 0;
13971
+ return window.location.href.indexOf(getSSOMarker(SSO_REDIRECTION_MARKER_GUID)) >= 0;
13947
13972
  }
13948
13973
  /**
13949
13974
  * Remove the SSO redirect URL marker
@@ -13954,7 +13979,10 @@ function removeSSORedirectUrlMarker() {
13954
13979
  // reload the page which we don't want. We'll live with adding an
13955
13980
  // unnecessary hash to the parent page URL until we find any use case where
13956
13981
  // that creates an issue.
13957
- window.location.hash = window.location.hash.replace(SSO_REDIRECTION_MARKER_GUID, '');
13982
+ // Replace any occurences of ?ssoMarker=guid or &ssoMarker=guid.
13983
+ let updatedHash = window.location.hash.replace(`?${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
13984
+ updatedHash = updatedHash.replace(`&${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
13985
+ window.location.hash = updatedHash;
13958
13986
  }
13959
13987
  /**
13960
13988
  * Perform token based authentication
@@ -14227,7 +14255,6 @@ function processCustomAction(e, thoughtSpotHost) {
14227
14255
  }
14228
14256
  /**
14229
14257
  * Responds to AuthInit sent from host signifying successful authentication in host.
14230
- *
14231
14258
  * @param e
14232
14259
  * @returns {any}
14233
14260
  */
@@ -14368,7 +14395,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
14368
14395
  });
14369
14396
  }
14370
14397
 
14371
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.2";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"30 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
14398
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.4";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"30 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
14372
14399
 
14373
14400
  /**
14374
14401
  * Copyright (c) 2022
@@ -15592,7 +15619,7 @@ let SearchEmbed$1 = class SearchEmbed extends TsEmbed {
15592
15619
  }
15593
15620
  getEmbedParams() {
15594
15621
  var _a;
15595
- const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15622
+ const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15596
15623
  /* eslint-disable-next-line max-len */
15597
15624
  dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, collapseSearchBar = true, } = this.viewConfig;
15598
15625
  const queryParams = this.getBaseQueryParams();
@@ -15809,9 +15836,9 @@ let AppEmbed$1 = class AppEmbed extends V1Embed {
15809
15836
  * embedded Liveboard or visualization.
15810
15837
  */
15811
15838
  getEmbedParams() {
15812
- const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15839
+ const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15813
15840
  /* eslint-disable-next-line max-len */
15814
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, } = this.viewConfig;
15841
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, } = this.viewConfig;
15815
15842
  let params = {};
15816
15843
  params[Param.EmbedApp] = true;
15817
15844
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
@@ -15826,6 +15853,7 @@ let AppEmbed$1 = class AppEmbed extends V1Embed {
15826
15853
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
15827
15854
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
15828
15855
  params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
15856
+ params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
15829
15857
  params = this.getBaseQueryParams(params);
15830
15858
  if (fullHeight === true) {
15831
15859
  params[Param.fullHeight] = true;
@@ -16104,7 +16132,7 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
16104
16132
  let params = {};
16105
16133
  params[Param.EmbedApp] = true;
16106
16134
  params = this.getBaseQueryParams(params);
16107
- const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, } = this.viewConfig;
16135
+ const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, } = this.viewConfig;
16108
16136
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
16109
16137
  || this.viewConfig.preventPinboardFilterRemoval;
16110
16138
  if (fullHeight === true) {
@@ -16280,7 +16308,6 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
16280
16308
  /**
16281
16309
  * Returns the full url of the liveboard/viz which can be used to open
16282
16310
  * this liveboard inside the full Thoughtspot application in a new tab.
16283
- *
16284
16311
  * @returns url string
16285
16312
  */
16286
16313
  getLiveboardUrl() {
@@ -16338,6 +16365,9 @@ let ConversationEmbed$1 = class ConversationEmbed extends TsEmbed {
16338
16365
  getIframeSrc() {
16339
16366
  const { worksheetId, searchOptions, } = this.viewConfig;
16340
16367
  const path = 'insights/conv-assist';
16368
+ if (!worksheetId) {
16369
+ this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
16370
+ }
16341
16371
  const queryParams = this.getBaseQueryParams();
16342
16372
  queryParams[Param.SpotterEnabled] = true;
16343
16373
  let query = '';