@thoughtspot/visual-embed-sdk 1.46.1 → 1.46.3

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 (257) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/auth.d.ts +29 -4
  3. package/cjs/src/auth.d.ts.map +1 -1
  4. package/cjs/src/auth.js +29 -7
  5. package/cjs/src/auth.js.map +1 -1
  6. package/cjs/src/auth.spec.js +1 -3
  7. package/cjs/src/auth.spec.js.map +1 -1
  8. package/cjs/src/authToken.js +0 -1
  9. package/cjs/src/authToken.js.map +1 -1
  10. package/cjs/src/authToken.spec.js +2 -1
  11. package/cjs/src/authToken.spec.js.map +1 -1
  12. package/cjs/src/css-variables.d.ts +17 -17
  13. package/cjs/src/embed/app.d.ts +62 -33
  14. package/cjs/src/embed/app.d.ts.map +1 -1
  15. package/cjs/src/embed/app.js +10 -3
  16. package/cjs/src/embed/app.js.map +1 -1
  17. package/cjs/src/embed/app.spec.js +34 -1
  18. package/cjs/src/embed/app.spec.js.map +1 -1
  19. package/cjs/src/embed/auto-frame-renderer.d.ts +41 -0
  20. package/cjs/src/embed/auto-frame-renderer.d.ts.map +1 -0
  21. package/cjs/src/embed/auto-frame-renderer.js +145 -0
  22. package/cjs/src/embed/auto-frame-renderer.js.map +1 -0
  23. package/cjs/src/embed/auto-frame-renderer.spec.d.ts +2 -0
  24. package/cjs/src/embed/auto-frame-renderer.spec.d.ts.map +1 -0
  25. package/cjs/src/embed/auto-frame-renderer.spec.js +195 -0
  26. package/cjs/src/embed/auto-frame-renderer.spec.js.map +1 -0
  27. package/cjs/src/embed/base.d.ts +2 -2
  28. package/cjs/src/embed/base.d.ts.map +1 -1
  29. package/cjs/src/embed/base.js +6 -9
  30. package/cjs/src/embed/base.js.map +1 -1
  31. package/cjs/src/embed/bodyless-conversation.d.ts +5 -5
  32. package/cjs/src/embed/bodyless-conversation.js +4 -4
  33. package/cjs/src/embed/conversation.d.ts +43 -30
  34. package/cjs/src/embed/conversation.d.ts.map +1 -1
  35. package/cjs/src/embed/conversation.js +10 -11
  36. package/cjs/src/embed/conversation.js.map +1 -1
  37. package/cjs/src/embed/conversation.spec.js +27 -0
  38. package/cjs/src/embed/conversation.spec.js.map +1 -1
  39. package/cjs/src/embed/hostEventClient/host-event-client.js +0 -2
  40. package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
  41. package/cjs/src/embed/liveboard.d.ts +42 -35
  42. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  43. package/cjs/src/embed/liveboard.js +6 -4
  44. package/cjs/src/embed/liveboard.js.map +1 -1
  45. package/cjs/src/embed/liveboard.spec.js +5 -3
  46. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  47. package/cjs/src/embed/sage.d.ts +5 -5
  48. package/cjs/src/embed/sage.js +1 -2
  49. package/cjs/src/embed/sage.js.map +1 -1
  50. package/cjs/src/embed/search-bar.d.ts +7 -7
  51. package/cjs/src/embed/search-bar.js +1 -1
  52. package/cjs/src/embed/search.d.ts +13 -12
  53. package/cjs/src/embed/search.d.ts.map +1 -1
  54. package/cjs/src/embed/search.js.map +1 -1
  55. package/cjs/src/embed/search.spec.js +0 -2
  56. package/cjs/src/embed/search.spec.js.map +1 -1
  57. package/cjs/src/embed/ts-embed.d.ts +3 -3
  58. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  59. package/cjs/src/embed/ts-embed.js +15 -9
  60. package/cjs/src/embed/ts-embed.js.map +1 -1
  61. package/cjs/src/embed/ts-embed.spec.js +37 -1
  62. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  63. package/cjs/src/index.d.ts +3 -2
  64. package/cjs/src/index.d.ts.map +1 -1
  65. package/cjs/src/index.js +3 -1
  66. package/cjs/src/index.js.map +1 -1
  67. package/cjs/src/react/index.d.ts +15 -15
  68. package/cjs/src/react/index.js +12 -13
  69. package/cjs/src/react/index.js.map +1 -1
  70. package/cjs/src/react/index.spec.js +6 -3
  71. package/cjs/src/react/index.spec.js.map +1 -1
  72. package/cjs/src/tokenizedFetch.d.ts +1 -1
  73. package/cjs/src/tokenizedFetch.js +1 -1
  74. package/cjs/src/types.d.ts +350 -287
  75. package/cjs/src/types.d.ts.map +1 -1
  76. package/cjs/src/types.js +240 -218
  77. package/cjs/src/types.js.map +1 -1
  78. package/cjs/src/utils/graphql/answerService/answerService.d.ts +9 -6
  79. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  80. package/cjs/src/utils/graphql/answerService/answerService.js +13 -15
  81. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  82. package/cjs/src/utils/graphql/answerService/answerService.spec.js +55 -0
  83. package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  84. package/cjs/src/utils/graphql/preview-service.js +0 -1
  85. package/cjs/src/utils/graphql/preview-service.js.map +1 -1
  86. package/cjs/src/utils/processData.js +0 -5
  87. package/cjs/src/utils/processData.js.map +1 -1
  88. package/cjs/src/utils.d.ts +9 -0
  89. package/cjs/src/utils.d.ts.map +1 -1
  90. package/cjs/src/utils.js +10 -1
  91. package/cjs/src/utils.js.map +1 -1
  92. package/dist/{index-Vyh6Ha5f.js → index-DyX-x6uN.js} +1 -1
  93. package/dist/src/auth.d.ts +29 -4
  94. package/dist/src/auth.d.ts.map +1 -1
  95. package/dist/src/css-variables.d.ts +17 -17
  96. package/dist/src/embed/app.d.ts +62 -33
  97. package/dist/src/embed/app.d.ts.map +1 -1
  98. package/dist/src/embed/auto-frame-renderer.d.ts +41 -0
  99. package/dist/src/embed/auto-frame-renderer.d.ts.map +1 -0
  100. package/dist/src/embed/auto-frame-renderer.spec.d.ts +2 -0
  101. package/dist/src/embed/auto-frame-renderer.spec.d.ts.map +1 -0
  102. package/dist/src/embed/base.d.ts +2 -2
  103. package/dist/src/embed/base.d.ts.map +1 -1
  104. package/dist/src/embed/bodyless-conversation.d.ts +5 -5
  105. package/dist/src/embed/conversation.d.ts +43 -30
  106. package/dist/src/embed/conversation.d.ts.map +1 -1
  107. package/dist/src/embed/liveboard.d.ts +42 -35
  108. package/dist/src/embed/liveboard.d.ts.map +1 -1
  109. package/dist/src/embed/sage.d.ts +5 -5
  110. package/dist/src/embed/search-bar.d.ts +7 -7
  111. package/dist/src/embed/search.d.ts +13 -12
  112. package/dist/src/embed/search.d.ts.map +1 -1
  113. package/dist/src/embed/ts-embed.d.ts +3 -3
  114. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  115. package/dist/src/index.d.ts +3 -2
  116. package/dist/src/index.d.ts.map +1 -1
  117. package/dist/src/react/index.d.ts +15 -15
  118. package/dist/src/tokenizedFetch.d.ts +1 -1
  119. package/dist/src/types.d.ts +350 -287
  120. package/dist/src/types.d.ts.map +1 -1
  121. package/dist/src/utils/graphql/answerService/answerService.d.ts +9 -6
  122. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  123. package/dist/src/utils.d.ts +9 -0
  124. package/dist/src/utils.d.ts.map +1 -1
  125. package/dist/tsembed-react.es.js +359 -329
  126. package/dist/tsembed-react.js +358 -328
  127. package/dist/tsembed.es.js +490 -321
  128. package/dist/tsembed.js +489 -319
  129. package/dist/visual-embed-sdk-react-full.d.ts +574 -442
  130. package/dist/visual-embed-sdk-react.d.ts +572 -440
  131. package/dist/visual-embed-sdk.d.ts +622 -446
  132. package/lib/package.json +1 -1
  133. package/lib/src/auth.d.ts +29 -4
  134. package/lib/src/auth.d.ts.map +1 -1
  135. package/lib/src/auth.js +29 -7
  136. package/lib/src/auth.js.map +1 -1
  137. package/lib/src/auth.spec.js +1 -3
  138. package/lib/src/auth.spec.js.map +1 -1
  139. package/lib/src/authToken.js +0 -1
  140. package/lib/src/authToken.js.map +1 -1
  141. package/lib/src/authToken.spec.js +2 -1
  142. package/lib/src/authToken.spec.js.map +1 -1
  143. package/lib/src/css-variables.d.ts +17 -17
  144. package/lib/src/embed/app.d.ts +62 -33
  145. package/lib/src/embed/app.d.ts.map +1 -1
  146. package/lib/src/embed/app.js +11 -4
  147. package/lib/src/embed/app.js.map +1 -1
  148. package/lib/src/embed/app.spec.js +34 -1
  149. package/lib/src/embed/app.spec.js.map +1 -1
  150. package/lib/src/embed/auto-frame-renderer.d.ts +41 -0
  151. package/lib/src/embed/auto-frame-renderer.d.ts.map +1 -0
  152. package/lib/src/embed/auto-frame-renderer.js +141 -0
  153. package/lib/src/embed/auto-frame-renderer.js.map +1 -0
  154. package/lib/src/embed/auto-frame-renderer.spec.d.ts +2 -0
  155. package/lib/src/embed/auto-frame-renderer.spec.d.ts.map +1 -0
  156. package/lib/src/embed/auto-frame-renderer.spec.js +192 -0
  157. package/lib/src/embed/auto-frame-renderer.spec.js.map +1 -0
  158. package/lib/src/embed/base.d.ts +2 -2
  159. package/lib/src/embed/base.d.ts.map +1 -1
  160. package/lib/src/embed/base.js +6 -9
  161. package/lib/src/embed/base.js.map +1 -1
  162. package/lib/src/embed/bodyless-conversation.d.ts +5 -5
  163. package/lib/src/embed/bodyless-conversation.js +4 -4
  164. package/lib/src/embed/conversation.d.ts +43 -30
  165. package/lib/src/embed/conversation.d.ts.map +1 -1
  166. package/lib/src/embed/conversation.js +11 -11
  167. package/lib/src/embed/conversation.js.map +1 -1
  168. package/lib/src/embed/conversation.spec.js +27 -0
  169. package/lib/src/embed/conversation.spec.js.map +1 -1
  170. package/lib/src/embed/hostEventClient/host-event-client.js +0 -2
  171. package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
  172. package/lib/src/embed/liveboard.d.ts +42 -35
  173. package/lib/src/embed/liveboard.d.ts.map +1 -1
  174. package/lib/src/embed/liveboard.js +6 -4
  175. package/lib/src/embed/liveboard.js.map +1 -1
  176. package/lib/src/embed/liveboard.spec.js +5 -3
  177. package/lib/src/embed/liveboard.spec.js.map +1 -1
  178. package/lib/src/embed/sage.d.ts +5 -5
  179. package/lib/src/embed/sage.js +1 -2
  180. package/lib/src/embed/sage.js.map +1 -1
  181. package/lib/src/embed/search-bar.d.ts +7 -7
  182. package/lib/src/embed/search-bar.js +1 -1
  183. package/lib/src/embed/search.d.ts +13 -12
  184. package/lib/src/embed/search.d.ts.map +1 -1
  185. package/lib/src/embed/search.js.map +1 -1
  186. package/lib/src/embed/search.spec.js +0 -2
  187. package/lib/src/embed/search.spec.js.map +1 -1
  188. package/lib/src/embed/ts-embed.d.ts +3 -3
  189. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  190. package/lib/src/embed/ts-embed.js +15 -9
  191. package/lib/src/embed/ts-embed.js.map +1 -1
  192. package/lib/src/embed/ts-embed.spec.js +37 -1
  193. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  194. package/lib/src/index.d.ts +3 -2
  195. package/lib/src/index.d.ts.map +1 -1
  196. package/lib/src/index.js +1 -0
  197. package/lib/src/index.js.map +1 -1
  198. package/lib/src/react/index.d.ts +15 -15
  199. package/lib/src/react/index.js +12 -13
  200. package/lib/src/react/index.js.map +1 -1
  201. package/lib/src/react/index.spec.js +6 -3
  202. package/lib/src/react/index.spec.js.map +1 -1
  203. package/lib/src/tokenizedFetch.d.ts +1 -1
  204. package/lib/src/tokenizedFetch.js +1 -1
  205. package/lib/src/types.d.ts +350 -287
  206. package/lib/src/types.d.ts.map +1 -1
  207. package/lib/src/types.js +240 -218
  208. package/lib/src/types.js.map +1 -1
  209. package/lib/src/utils/graphql/answerService/answerService.d.ts +9 -6
  210. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  211. package/lib/src/utils/graphql/answerService/answerService.js +12 -14
  212. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  213. package/lib/src/utils/graphql/answerService/answerService.spec.js +55 -0
  214. package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  215. package/lib/src/utils/graphql/preview-service.js +0 -1
  216. package/lib/src/utils/graphql/preview-service.js.map +1 -1
  217. package/lib/src/utils/processData.js +0 -5
  218. package/lib/src/utils/processData.js.map +1 -1
  219. package/lib/src/utils.d.ts +9 -0
  220. package/lib/src/utils.d.ts.map +1 -1
  221. package/lib/src/utils.js +8 -0
  222. package/lib/src/utils.js.map +1 -1
  223. package/lib/src/visual-embed-sdk.d.ts +11466 -0
  224. package/package.json +1 -1
  225. package/src/auth.spec.ts +1 -1
  226. package/src/auth.ts +32 -7
  227. package/src/authToken.spec.ts +2 -1
  228. package/src/authToken.ts +1 -1
  229. package/src/css-variables.ts +17 -17
  230. package/src/embed/app.spec.ts +46 -1
  231. package/src/embed/app.ts +74 -36
  232. package/src/embed/auto-frame-renderer.spec.ts +266 -0
  233. package/src/embed/auto-frame-renderer.ts +152 -0
  234. package/src/embed/base.spec.ts +1 -1
  235. package/src/embed/base.ts +9 -10
  236. package/src/embed/bodyless-conversation.ts +5 -5
  237. package/src/embed/conversation.spec.ts +37 -0
  238. package/src/embed/conversation.ts +55 -38
  239. package/src/embed/hostEventClient/host-event-client.ts +2 -2
  240. package/src/embed/liveboard.spec.ts +5 -3
  241. package/src/embed/liveboard.ts +47 -38
  242. package/src/embed/sage.ts +6 -6
  243. package/src/embed/search-bar.tsx +7 -7
  244. package/src/embed/search.spec.ts +2 -2
  245. package/src/embed/search.ts +13 -12
  246. package/src/embed/ts-embed.spec.ts +44 -1
  247. package/src/embed/ts-embed.ts +14 -9
  248. package/src/index.ts +3 -0
  249. package/src/react/index.spec.tsx +6 -3
  250. package/src/react/index.tsx +16 -16
  251. package/src/tokenizedFetch.ts +1 -1
  252. package/src/types.ts +350 -286
  253. package/src/utils/graphql/answerService/answerService.spec.ts +62 -0
  254. package/src/utils/graphql/answerService/answerService.ts +14 -10
  255. package/src/utils/graphql/preview-service.ts +1 -1
  256. package/src/utils/processData.ts +5 -5
  257. package/src/utils.ts +14 -0
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.46.1 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.46.3 */
2
2
  'use client';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
@@ -213,7 +213,7 @@
213
213
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
214
214
  */
215
215
  /**
216
- * The authentication mechanism for allowing access to the
216
+ * The authentication mechanism for allowing access to
217
217
  * the embedded app
218
218
  * @group Authentication / Init
219
219
  */
@@ -239,6 +239,7 @@
239
239
  * To use this:
240
240
  * Your SAML or OpenID provider must allow iframe redirects.
241
241
  * For example, if you are using Okta as IdP, you can enable iframe embedding.
242
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.8.0.cl
242
243
  * @example
243
244
  * ```js
244
245
  * init({
@@ -246,18 +247,17 @@
246
247
  * authType: AuthType.EmbeddedSSO,
247
248
  * });
248
249
  * ```
249
- * @version: SDK: 1.15.0 | ThoughtSpot: 8.8.0.cl
250
250
  */
251
251
  AuthType["EmbeddedSSO"] = "EmbeddedSSO";
252
252
  /**
253
- * SSO using SAML
254
- * @deprecated Use {@link SAMLRedirect} instead
253
+ * SSO using SAML, Use {@link SAMLRedirect} instead
254
+ * @deprecated This option is deprecated.
255
255
  * @hidden
256
256
  */
257
257
  AuthType["SSO"] = "SSO_SAML";
258
258
  /**
259
- * SSO using SAML
260
- * @deprecated Use {@link SAMLRedirect} instead
259
+ * SSO using SAML, Use {@link SAMLRedirect} instead
260
+ * @deprecated This option is deprecated.
261
261
  * @hidden
262
262
  */
263
263
  AuthType["SAML"] = "SSO_SAML";
@@ -308,8 +308,9 @@
308
308
  AuthType["SAMLRedirect"] = "SSO_SAML";
309
309
  /**
310
310
  * SSO using OIDC
311
+ * SSO using OIDC, Use {@link OIDCRedirect} instead
312
+ * @deprecated This option is deprecated.
311
313
  * @hidden
312
- * @deprecated Use {@link OIDCRedirect} instead
313
314
  */
314
315
  AuthType["OIDC"] = "SSO_OIDC";
315
316
  /**
@@ -320,8 +321,9 @@
320
321
  AuthType["OIDCRedirect"] = "SSO_OIDC";
321
322
  /**
322
323
  * Trusted authentication server
324
+ * Use {@link TrustedAuth} instead
325
+ * @deprecated This option is deprecated.
323
326
  * @hidden
324
- * @deprecated Use {@link TrustedAuth} instead
325
327
  */
326
328
  AuthType["AuthServer"] = "AuthServer";
327
329
  /**
@@ -348,6 +350,7 @@
348
350
  * obtained from ThoughtSpot. This uses a cookieless authentication
349
351
  * approach, recommended to bypass the third-party cookie-blocking restriction
350
352
  * implemented by some browsers.
353
+ * @version SDK: 1.22.0 | ThoughtSpot: 9.3.0.cl, 9.5.1.sw
351
354
  * @example
352
355
  * ```js
353
356
  * init({
@@ -358,8 +361,8 @@
358
361
  * .then((response) => response.json())
359
362
  * .then((data) => data.token);
360
363
  * }
364
+ * });
361
365
  * ```
362
- * @version SDK: 1.22.0| ThoughtSpot: 9.3.0.cl, 9.5.1.sw
363
366
  */
364
367
  AuthType["TrustedAuthTokenCookieless"] = "AuthServerCookieless";
365
368
  /**
@@ -380,43 +383,43 @@
380
383
  /**
381
384
  * The *Search data* option in
382
385
  * the *Insights* left navigation panel.
383
- * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
386
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
384
387
  */
385
388
  HomeLeftNavItem["SearchData"] = "search-data";
386
389
  /**
387
390
  * The *Home* menu option in
388
391
  * the *Insights* left navigation panel.
389
- * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
392
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
390
393
  */
391
394
  HomeLeftNavItem["Home"] = "insights-home";
392
395
  /**
393
396
  * The *Liveboards* menu option in
394
397
  * the *Insights* left navigation panel.
395
- * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
398
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
396
399
  */
397
400
  HomeLeftNavItem["Liveboards"] = "liveboards";
398
401
  /**
399
402
  * The *Answers* menu option in
400
403
  * the *Insights* left navigation panel.
401
- * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
404
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
402
405
  */
403
406
  HomeLeftNavItem["Answers"] = "answers";
404
407
  /**
405
408
  * The *Monitor subscriptions* menu option in
406
409
  * the *Insights* left navigation panel.
407
- * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
410
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
408
411
  */
409
412
  HomeLeftNavItem["MonitorSubscription"] = "monitor-alerts";
410
413
  /**
411
414
  * The *SpotIQ analysis* menu option in
412
415
  * the *Insights* left navigation panel.
413
- * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
416
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
414
417
  */
415
418
  HomeLeftNavItem["SpotIQAnalysis"] = "spotiq-analysis";
416
419
  /**
417
420
  * The *Liveboard schedules* menu option in
418
421
  * the *Insights* left navigation panel.
419
- * @version SDK: 1.34.0| ThoughtSpot: 10.3.0.cl
422
+ * @version SDK: 1.34.0 | ThoughtSpot: 10.3.0.cl
420
423
  */
421
424
  HomeLeftNavItem["LiveboardSchedules"] = "liveboard-schedules";
422
425
  /**
@@ -522,7 +525,7 @@
522
525
  */
523
526
  HomepageModule["Search"] = "SEARCH";
524
527
  /**
525
- * kPI watchlist module
528
+ * KPI watchlist module
526
529
  */
527
530
  HomepageModule["Watchlist"] = "WATCHLIST";
528
531
  /**
@@ -554,7 +557,8 @@
554
557
  */
555
558
  ListPageColumns["Favorites"] = "FAVOURITE";
556
559
  /**
557
- * @deprecated Use {@link ListPageColumns.Favorites} instead.
560
+ * Favourite Use {@link ListPageColumns.Favorites} instead.
561
+ * @deprecated This option is deprecated.
558
562
  */
559
563
  ListPageColumns["Favourite"] = "FAVOURITE";
560
564
  /**
@@ -622,13 +626,13 @@
622
626
  /**
623
627
  * Rendering has initialized.
624
628
  * @example
625
- *```js
629
+ * ```js
626
630
  * liveboardEmbed.on(EmbedEvent.Init, showLoader)
627
631
  * //show a loader
628
632
  * function showLoader() {
629
633
  * document.getElementById("loader");
630
634
  * }
631
- *```
635
+ * ```
632
636
  * @returns timestamp - The timestamp when the event was generated.
633
637
  */
634
638
  EmbedEvent["Init"] = "init";
@@ -636,11 +640,11 @@
636
640
  * Authentication has either succeeded or failed.
637
641
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
638
642
  * @example
639
- *```js
643
+ * ```js
640
644
  * appEmbed.on(EmbedEvent.AuthInit, payload => {
641
645
  * console.log('AuthInit', payload);
642
646
  * })
643
- *```
647
+ * ```
644
648
  * @returns isLoggedIn - A Boolean specifying whether authentication was successful.
645
649
  */
646
650
  EmbedEvent["AuthInit"] = "authInit";
@@ -649,13 +653,13 @@
649
653
  * @returns timestamp - The timestamp when the event was generated.
650
654
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
651
655
  * @example
652
- *```js
656
+ * ```js
653
657
  * liveboardEmbed.on(EmbedEvent.Load, hideLoader)
654
658
  * //hide loader
655
659
  * function hideLoader() {
656
660
  * document.getElementById("loader");
657
661
  * }
658
- *```
662
+ * ```
659
663
  */
660
664
  EmbedEvent["Load"] = "load";
661
665
  /**
@@ -664,11 +668,11 @@
664
668
  * @return data - Answer of Liveboard data
665
669
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
666
670
  * @example
667
- *```js
671
+ * ```js
668
672
  * liveboardEmbed.on(EmbedEvent.Data, payload => {
669
673
  * console.log('data', payload);
670
674
  * })
671
- *```
675
+ * ```
672
676
  * @important
673
677
  */
674
678
  EmbedEvent["Data"] = "data";
@@ -676,9 +680,9 @@
676
680
  * Search query has been updated by the user.
677
681
  * @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
678
682
  * @example
679
- *```js
683
+ * ```js
680
684
  * searchEmbed.on(EmbedEvent.QueryChanged, payload => console.log('data', payload))
681
- *```
685
+ * ```
682
686
  */
683
687
  EmbedEvent["QueryChanged"] = "queryChanged";
684
688
  /**
@@ -688,7 +692,7 @@
688
692
  * @returns drillDownColumns - The columns on which drill down was performed
689
693
  * @returns nonFilteredColumns - The columns that were not filtered
690
694
  * @example
691
- *```js
695
+ * ```js
692
696
  * searchEmbed.on(EmbedEvent.DrillDown, {
693
697
  * points: {
694
698
  * clickedPoint,
@@ -696,12 +700,12 @@
696
700
  * },
697
701
  * autoDrillDown: true,
698
702
  * })
699
- *```
703
+ * ```
700
704
  * In this example, `VizPointDoubleClick` event is used for
701
705
  * triggering the `DrillDown` event when an area or specific
702
706
  * data point on a table or chart is double-clicked.
703
707
  * @example
704
- *```js
708
+ * ```js
705
709
  * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
706
710
  * console.log(payload);
707
711
  * const clickedPoint = payload.data.clickedPoint;
@@ -715,7 +719,7 @@
715
719
  * autoDrillDown: true,
716
720
  * })
717
721
  * })
718
- *```
722
+ * ```
719
723
  */
720
724
  EmbedEvent["Drilldown"] = "drillDown";
721
725
  /**
@@ -840,13 +844,13 @@
840
844
  * The ThoughtSpot authentication session has expired.
841
845
  * @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
842
846
  * @example
843
- *```js
847
+ * ```js
844
848
  * appEmbed.on(EmbedEvent.AuthExpire, showAuthExpired)
845
849
  * //show auth expired banner
846
850
  * function showAuthExpired() {
847
851
  * document.getElementById("authExpiredBanner");
848
852
  * }
849
- *```
853
+ * ```
850
854
  */
851
855
  EmbedEvent["AuthExpire"] = "ThoughtspotAuthExpired";
852
856
  /**
@@ -881,22 +885,22 @@
881
885
  * Applicable to `SearchBarEmbed` only.
882
886
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
883
887
  * @example
884
- *```js
888
+ * ```js
885
889
  * searchbarEmbed.on(EmbedEvent.GetDataClick)
886
890
  * .then(data => {
887
891
  * console.log('Answer Data:', data);
888
892
  * })
889
- *```
893
+ * ```
890
894
  */
891
895
  EmbedEvent["GetDataClick"] = "getDataClick";
892
896
  /**
893
897
  * Detects the route change.
894
898
  * @version SDK: 1.7.0 | ThoughtSpot: 8.0.0.cl, 8.4.1.sw
895
899
  * @example
896
- *```js
900
+ * ```js
897
901
  * searchEmbed.on(EmbedEvent.RouteChange, payload =>
898
902
  * console.log('data', payload))
899
- *```
903
+ * ```
900
904
  */
901
905
  EmbedEvent["RouteChange"] = "ROUTE_CHANGE";
902
906
  /**
@@ -906,12 +910,12 @@
906
910
  EmbedEvent["V1Data"] = "exportVizDataToParent";
907
911
  /**
908
912
  * Emitted when the embed does not have cookie access. This happens
909
- * when Safari and other Web browsers block third-party cookies
910
- * are blocked by default. `NoCookieAccess` can trigger.
913
+ * when third-party cookies are blocked by Safari or other
914
+ * web browsers. `NoCookieAccess` can trigger.
911
915
  * @example
912
- *```js
916
+ * ```js
913
917
  * appEmbed.on(EmbedEvent.NoCookieAccess)
914
- *```
918
+ * ```
915
919
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1.sw
916
920
  */
917
921
  EmbedEvent["NoCookieAccess"] = "noCookieAccess";
@@ -925,22 +929,22 @@
925
929
  * Emitted when any modal is opened in the app
926
930
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
927
931
  * @example
928
- *```js
932
+ * ```js
929
933
  * appEmbed.on(EmbedEvent.DialogOpen, payload => {
930
934
  * console.log('dialog open', payload);
931
935
  * })
932
- *```
936
+ * ```
933
937
  */
934
938
  EmbedEvent["DialogOpen"] = "dialog-open";
935
939
  /**
936
940
  * Emitted when any modal is closed in the app
937
941
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
938
942
  * @example
939
- *```js
943
+ * ```js
940
944
  * appEmbed.on(EmbedEvent.DialogClose, payload => {
941
945
  * console.log('dialog close', payload);
942
946
  * })
943
- *```
947
+ * ```
944
948
  */
945
949
  EmbedEvent["DialogClose"] = "dialog-close";
946
950
  /**
@@ -949,39 +953,39 @@
949
953
  * other events on the rendered Liveboard.
950
954
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
951
955
  * @example
952
- *```js
956
+ * ```js
953
957
  * liveboardEmbed.on(EmbedEvent.LiveboardRendered, payload => {
954
958
  console.log('Liveboard is rendered', payload);
955
959
  })
956
- *```
960
+ * ```
957
961
  * The following example shows how to trigger
958
962
  * `SetVisibleVizs` event using LiveboardRendered embed event:
959
963
  * @example
960
- *```js
964
+ * ```js
961
965
  * const embedRef = useEmbedRef();
962
966
  * const onLiveboardRendered = () => {
963
967
  * embed.trigger(HostEvent.SetVisibleVizs, ['viz1', 'viz2']);
964
968
  * };
965
- *```
969
+ * ```
966
970
  */
967
971
  EmbedEvent["LiveboardRendered"] = "PinboardRendered";
968
972
  /**
969
973
  * Emits all events.
970
- * @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
974
+ * @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
971
975
  * @example
972
- *```js
976
+ * ```js
973
977
  * appEmbed.on(EmbedEvent.ALL, payload => {
974
978
  * console.log('Embed Events', payload)
975
979
  * })
976
- *```
980
+ * ```
977
981
  */
978
982
  EmbedEvent["ALL"] = "*";
979
983
  /**
980
984
  * Emitted when an Answer is saved in the app.
981
985
  * Use start:true to subscribe to when save is initiated, or end:true to subscribe to when save is completed. Default is end:true.
982
- * @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
986
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
983
987
  * @example
984
- *```js
988
+ * ```js
985
989
  * //Emit when action starts
986
990
  * searchEmbed.on(EmbedEvent.Save, payload => {
987
991
  * console.log('Save', payload)
@@ -992,7 +996,7 @@
992
996
  * searchEmbed.on(EmbedEvent.Save, payload => {
993
997
  * console.log('Save', payload)
994
998
  * })
995
- *```
999
+ * ```
996
1000
  */
997
1001
  EmbedEvent["Save"] = "save";
998
1002
  /**
@@ -1004,106 +1008,112 @@
1004
1008
  * `EmbedEvent.DownloadAsCSV`, or `EmbedEvent.DownloadAsXLSX`
1005
1009
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1006
1010
  * @example
1007
- *```js
1011
+ * ```js
1008
1012
  * liveboardEmbed.on(EmbedEvent.Download, {
1009
1013
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'
1010
1014
  * })
1011
- *```
1015
+ * ```
1012
1016
  */
1013
1017
  EmbedEvent["Download"] = "download";
1014
1018
  /**
1015
1019
  * Emitted when the download action is triggered on an Answer.
1016
- * Use start:true to subscribe to when download is initiated, or end:true to subscribe to when download is completed. Default is end:true.
1020
+ * Use start:true to subscribe to when download is initiated, or end:true to
1021
+ * subscribe to when download is completed. Default is end:true.
1017
1022
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
1018
1023
  * @example
1019
- *```js
1024
+ * ```js
1020
1025
  * //emit when action starts
1021
1026
  * searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
1022
1027
  * console.log('download PNG', payload)}, {start: true })
1023
1028
  * //emit when action ends
1024
1029
  * searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
1025
1030
  * console.log('download PNG', payload)})
1026
- *```
1031
+ * ```
1027
1032
  */
1028
1033
  EmbedEvent["DownloadAsPng"] = "downloadAsPng";
1029
1034
  /**
1030
1035
  * Emitted when the Download as PDF action is triggered on an Answer
1031
- * Use start:true to subscribe to when download as PDF is initiated, or end:true to subscribe to when download as PDF is completed. Default is end:true.
1036
+ * Use start:true to subscribe to when download as PDF is initiated, or end:true to
1037
+ * subscribe to when download as PDF is completed. Default is end:true.
1032
1038
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1033
1039
  * @example
1034
- *```js
1040
+ * ```js
1035
1041
  * //emit when action starts
1036
1042
  * searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
1037
1043
  * console.log('download PDF', payload)}, {start: true })
1038
1044
  * //emit when action ends
1039
1045
  * searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
1040
1046
  * console.log('download PDF', payload)})
1041
- *```
1047
+ * ```
1042
1048
  */
1043
1049
  EmbedEvent["DownloadAsPdf"] = "downloadAsPdf";
1044
1050
  /**
1045
1051
  * Emitted when the Download as CSV action is triggered on an Answer.
1046
- * Use start:true to subscribe to when download as CSV is initiated, or end:true to subscribe to when download as CSV is completed. Default is end:true.
1052
+ * Use start:true to subscribe to when download as CSV is initiated, or end:true to
1053
+ * subscribe to when download as CSV is completed. Default is end:true.
1047
1054
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1048
1055
  * @example
1049
- *```js
1056
+ * ```js
1050
1057
  * //emit when action starts
1051
1058
  * searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
1052
1059
  * console.log('download CSV', payload)}, {start: true })
1053
1060
  * //emit when action ends
1054
1061
  * searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
1055
1062
  * console.log('download CSV', payload)})
1056
- *```
1063
+ * ```
1057
1064
  */
1058
1065
  EmbedEvent["DownloadAsCsv"] = "downloadAsCsv";
1059
1066
  /**
1060
1067
  * Emitted when the Download as XLSX action is triggered on an Answer.
1061
- * Use start:true to subscribe to when download as XLSX is initiated, or end:true to subscribe to when download as XLSX is completed. Default is end:true.
1068
+ * Use start:true to subscribe to when download as XLSX is initiated, or end:true to
1069
+ * subscribe to when download as XLSX is completed. Default is end:true.
1062
1070
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1063
1071
  * @example
1064
- *```js
1072
+ * ```js
1065
1073
  * //emit when action starts
1066
1074
  * searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
1067
1075
  * console.log('download Xlsx', payload)}, { start: true })
1068
1076
  * //emit when action ends
1069
1077
  * searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
1070
1078
  * console.log('download Xlsx', payload)})
1071
- *```
1079
+ * ```
1072
1080
  */
1073
1081
  EmbedEvent["DownloadAsXlsx"] = "downloadAsXlsx";
1074
1082
  /**
1075
1083
  * Emitted when an Answer is deleted in the app
1076
- * Use start:true to subscribe to when delete is initiated, or end:true to subscribe to when delete is completed. Default is end:true.
1084
+ * Use start:true to subscribe to when delete is initiated, or end:true to subscribe
1085
+ * to when delete is completed. Default is end:true.
1077
1086
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1078
1087
  * @example
1079
- *```js
1088
+ * ```js
1080
1089
  * //emit when action starts
1081
1090
  * appEmbed.on(EmbedEvent.AnswerDelete, payload => {
1082
1091
  * console.log('delete answer', payload)}, {start: true })
1083
1092
  * //trigger when action is completed
1084
1093
  * appEmbed.on(EmbedEvent.AnswerDelete, payload => {
1085
1094
  * console.log('delete answer', payload)})
1086
- *```
1095
+ * ```
1087
1096
  */
1088
1097
  EmbedEvent["AnswerDelete"] = "answerDelete";
1089
1098
  /**
1090
1099
  * Emitted when the AI Highlights action is triggered on a Liveboard
1091
1100
  * @version SDK: 1.44.0 | ThoughtSpot: 10.15.0.cl
1092
1101
  * @example
1093
- *```js
1102
+ * ```js
1094
1103
  * liveboardEmbed.on(EmbedEvent.AIHighlights, (payload) => {
1095
1104
  * console.log('AI Highlights', payload);
1096
1105
  * })
1097
- *```
1106
+ * ```
1098
1107
  */
1099
1108
  EmbedEvent["AIHighlights"] = "AIHighlights";
1100
1109
  /**
1101
1110
  * Emitted when a user initiates the Pin action to
1102
1111
  * add an Answer to a Liveboard.
1103
- * Use start:true to subscribe to when pin is initiated, or end:true to subscribe to when pin is completed. Default is end:true.
1112
+ * Use start:true to subscribe to when pin is initiated, or end:true to subscribe to
1113
+ * when pin is completed. Default is end:true.
1104
1114
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1105
1115
  * @example
1106
- *```js
1116
+ * ```js
1107
1117
  * //emit when action starts
1108
1118
  * searchEmbed.on(EmbedEvent.Pin, payload => {
1109
1119
  * console.log('pin', payload)
@@ -1114,14 +1124,14 @@
1114
1124
  * searchEmbed.on(EmbedEvent.Pin, payload => {
1115
1125
  * console.log('pin', payload)
1116
1126
  * })
1117
- *```
1127
+ * ```
1118
1128
  */
1119
1129
  EmbedEvent["Pin"] = "pin";
1120
1130
  /**
1121
1131
  * Emitted when SpotIQ analysis is triggered
1122
1132
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1123
1133
  * @example
1124
- *```js
1134
+ * ```js
1125
1135
  * //emit when action starts
1126
1136
  * searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
1127
1137
  * console.log('SpotIQAnalyze', payload)
@@ -1132,14 +1142,14 @@
1132
1142
  * searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
1133
1143
  * console.log('SpotIQ analyze', payload)
1134
1144
  * })
1135
- *```
1145
+ * ```
1136
1146
  */
1137
1147
  EmbedEvent["SpotIQAnalyze"] = "spotIQAnalyze";
1138
1148
  /**
1139
1149
  * Emitted when a user shares an object with another user or group
1140
1150
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1141
1151
  * @example
1142
- *```js
1152
+ * ```js
1143
1153
  * //emit when action starts
1144
1154
  * searchEmbed.on(EmbedEvent.Share, payload => {
1145
1155
  * console.log('Share', payload)
@@ -1150,7 +1160,7 @@
1150
1160
  * searchEmbed.on(EmbedEvent.Share, payload => {
1151
1161
  * console.log('Share', payload)
1152
1162
  * })
1153
- *```
1163
+ * ```
1154
1164
  */
1155
1165
  EmbedEvent["Share"] = "share";
1156
1166
  /**
@@ -1158,11 +1168,11 @@
1158
1168
  * data on a chart or table.
1159
1169
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1160
1170
  * @example
1161
- *```js
1171
+ * ```js
1162
1172
  * appEmbed.on(EmbedEvent.DrillInclude, payload => {
1163
1173
  * console.log('Drill include', payload);
1164
1174
  * })
1165
- *```
1175
+ * ```
1166
1176
  */
1167
1177
  EmbedEvent["DrillInclude"] = "context-menu-item-include";
1168
1178
  /**
@@ -1170,22 +1180,22 @@
1170
1180
  * data on a chart or table
1171
1181
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1172
1182
  * @example
1173
- *```js
1183
+ * ```js
1174
1184
  * appEmbed.on(EmbedEvent.DrillExclude, payload => {
1175
1185
  * console.log('Drill exclude', payload);
1176
1186
  * })
1177
- *```
1187
+ * ```
1178
1188
  */
1179
1189
  EmbedEvent["DrillExclude"] = "context-menu-item-exclude";
1180
1190
  /**
1181
1191
  * Emitted when a column value is copied in the embedded app.
1182
1192
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1183
1193
  * @example
1184
- *```js
1185
- * seachEmbed.on(EmbedEvent.CopyToClipboard, payload => {
1194
+ * ```js
1195
+ * searchEmbed.on(EmbedEvent.CopyToClipboard, payload => {
1186
1196
  * console.log('copy to clipboard', payload);
1187
1197
  * })
1188
- *```
1198
+ * ```
1189
1199
  */
1190
1200
  EmbedEvent["CopyToClipboard"] = "context-menu-item-copy-to-clipboard";
1191
1201
  /**
@@ -1193,10 +1203,10 @@
1193
1203
  * embedded Liveboard.
1194
1204
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1195
1205
  * @example
1196
- *```js
1206
+ * ```js
1197
1207
  * liveboardEmbed.on(EmbedEvent.UpdateTML)
1198
1208
  * })
1199
- *```
1209
+ * ```
1200
1210
  */
1201
1211
  EmbedEvent["UpdateTML"] = "updateTSL";
1202
1212
  /**
@@ -1204,75 +1214,77 @@
1204
1214
  * on an embedded Liveboard.
1205
1215
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1206
1216
  * @example
1207
- *```js
1217
+ * ```js
1208
1218
  * appEmbed.on(EmbedEvent.EditTML, payload => {
1209
1219
  * console.log('Edit TML', payload);
1210
1220
  * })
1211
- *```
1221
+ * ```
1212
1222
  */
1213
1223
  EmbedEvent["EditTML"] = "editTSL";
1214
1224
  /**
1215
1225
  * Emitted when the **Export TML** action is triggered on an
1216
1226
  * an embedded object in the app
1217
- * Use start:true to subscribe to when export is initiated, or end:true to subscribe to when export is completed. Default is end:true.
1227
+ * Use start:true to subscribe to when export is initiated, or end:true to subscribe
1228
+ * to when export is completed. Default is end:true.
1218
1229
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1219
1230
  * @example
1220
- *```js
1231
+ * ```js
1221
1232
  * //emit when action starts
1222
1233
  * searchEmbed.on(EmbedEvent.ExportTML, payload => {
1223
1234
  * console.log('Export TML', payload)}, { start: true })
1224
1235
  * //emit when action ends
1225
1236
  * searchEmbed.on(EmbedEvent.ExportTML, payload => {
1226
1237
  * console.log('Export TML', payload)})
1227
- *```
1238
+ * ```
1228
1239
  */
1229
1240
  EmbedEvent["ExportTML"] = "exportTSL";
1230
1241
  /**
1231
1242
  * Emitted when an Answer is saved as a View.
1232
1243
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1233
1244
  * @example
1234
- *```js
1245
+ * ```js
1235
1246
  * appEmbed.on(EmbedEvent.SaveAsView, payload => {
1236
1247
  * console.log('View', payload);
1237
1248
  * })
1238
- *```
1249
+ * ```
1239
1250
  */
1240
1251
  EmbedEvent["SaveAsView"] = "saveAsView";
1241
1252
  /**
1242
1253
  * Emitted when the user creates a copy of an Answer.
1243
- * Use start:true to subscribe to when copy and edit is initiated, or end:true to subscribe to when copy and edit is completed. Default is end:true.
1254
+ * Use start:true to subscribe to when copy and edit is initiated, or end:true to
1255
+ * subscribe to when copy and edit is completed. Default is end:true.
1244
1256
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1245
1257
  * @example
1246
- *```js
1258
+ * ```js
1247
1259
  * //emit when action starts
1248
1260
  * appEmbed.on(EmbedEvent.CopyAEdit, payload => {
1249
1261
  * console.log('Copy and edit', payload)}, {start: true })
1250
1262
  * //emit when action ends
1251
1263
  * appEmbed.on(EmbedEvent.CopyAEdit, payload => {
1252
1264
  * console.log('Copy and edit', payload)})
1253
- *```
1265
+ * ```
1254
1266
  */
1255
1267
  EmbedEvent["CopyAEdit"] = "copyAEdit";
1256
1268
  /**
1257
1269
  * Emitted when a user clicks *Show underlying data* on an Answer.
1258
1270
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1259
1271
  * @example
1260
- *```js
1272
+ * ```js
1261
1273
  * liveboardEmbed.on(EmbedEvent.ShowUnderlyingData, payload => {
1262
1274
  * console.log('show data', payload);
1263
1275
  * })
1264
- *```
1276
+ * ```
1265
1277
  */
1266
1278
  EmbedEvent["ShowUnderlyingData"] = "showUnderlyingData";
1267
1279
  /**
1268
1280
  * Emitted when an Answer is switched to a chart or table view.
1269
1281
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1270
1282
  * @example
1271
- *```js
1283
+ * ```js
1272
1284
  * searchEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
1273
1285
  * console.log('switch view', payload);
1274
1286
  * })
1275
- *```
1287
+ * ```
1276
1288
  */
1277
1289
  EmbedEvent["AnswerChartSwitcher"] = "answerChartSwitcher";
1278
1290
  /**
@@ -1289,118 +1301,118 @@
1289
1301
  * Emitted when a user clicks **Show Liveboard details** on a Liveboard
1290
1302
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1291
1303
  * @example
1292
- *```js
1304
+ * ```js
1293
1305
  * liveboardEmbed.on(EmbedEvent.LiveboardInfo, payload => {
1294
1306
  * console.log('Liveboard details', payload);
1295
1307
  * })
1296
- *```
1308
+ * ```
1297
1309
  */
1298
1310
  EmbedEvent["LiveboardInfo"] = "pinboardInfo";
1299
1311
  /**
1300
1312
  * Emitted when a user clicks on the Favorite icon on a Liveboard
1301
1313
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1302
1314
  * @example
1303
- *```js
1315
+ * ```js
1304
1316
  * liveboardEmbed.on(EmbedEvent.AddToFavorites, payload => {
1305
1317
  * console.log('favorites', payload);
1306
1318
  * })
1307
- *```
1319
+ * ```
1308
1320
  */
1309
1321
  EmbedEvent["AddToFavorites"] = "addToFavorites";
1310
1322
  /**
1311
1323
  * Emitted when a user clicks **Schedule** on a Liveboard
1312
1324
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1313
1325
  * @example
1314
- *```js
1326
+ * ```js
1315
1327
  * liveboardEmbed.on(EmbedEvent.Schedule, payload => {
1316
- * console.log(`Liveboard schedule', payload);
1328
+ * console.log('Liveboard schedule', payload);
1317
1329
  * })
1318
- *```
1330
+ * ```
1319
1331
  */
1320
1332
  EmbedEvent["Schedule"] = "subscription";
1321
1333
  /**
1322
1334
  * Emitted when a user clicks **Edit** on a Liveboard or visualization
1323
1335
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1324
1336
  * @example
1325
- *```js
1337
+ * ```js
1326
1338
  * liveboardEmbed.on(EmbedEvent.Edit, payload => {
1327
- * console.log(`Liveboard edit', payload);
1339
+ * console.log('Liveboard edit', payload);
1328
1340
  * })
1329
- *```
1341
+ * ```
1330
1342
  */
1331
1343
  EmbedEvent["Edit"] = "edit";
1332
1344
  /**
1333
1345
  * Emitted when a user clicks *Make a copy* on a Liveboard
1334
1346
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1335
1347
  * @example
1336
- *```js
1348
+ * ```js
1337
1349
  * liveboardEmbed.on(EmbedEvent.MakeACopy, payload => {
1338
- * console.log(`Copy', payload);
1350
+ * console.log('Copy', payload);
1339
1351
  * })
1340
- *```
1352
+ * ```
1341
1353
  */
1342
1354
  EmbedEvent["MakeACopy"] = "makeACopy";
1343
1355
  /**
1344
1356
  * Emitted when a user clicks **Present** on a Liveboard or visualization
1345
1357
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1346
1358
  * @example
1347
- *```js
1359
+ * ```js
1348
1360
  * liveboardEmbed.on(EmbedEvent.Present)
1349
- *```
1361
+ * ```
1350
1362
  * @example
1351
- *```js
1363
+ * ```js
1352
1364
  * liveboardEmbed.on(EmbedEvent.Present, {
1353
1365
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1354
1366
  * })
1355
- *```
1367
+ * ```
1356
1368
  */
1357
1369
  EmbedEvent["Present"] = "present";
1358
1370
  /**
1359
1371
  * Emitted when a user clicks **Delete** on a visualization
1360
1372
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1361
1373
  * @example
1362
- *```js
1374
+ * ```js
1363
1375
  * liveboardEmbed.on(EmbedEvent.Delete,
1364
1376
  * {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1365
- *```
1377
+ * ```
1366
1378
  */
1367
1379
  EmbedEvent["Delete"] = "delete";
1368
1380
  /**
1369
1381
  * Emitted when a user clicks Manage schedules on a Liveboard
1370
1382
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1371
1383
  * @example
1372
- *```js
1384
+ * ```js
1373
1385
  * liveboardEmbed.on(EmbedEvent.SchedulesList)
1374
- *```
1386
+ * ```
1375
1387
  */
1376
1388
  EmbedEvent["SchedulesList"] = "schedule-list";
1377
1389
  /**
1378
1390
  * Emitted when a user clicks **Cancel** in edit mode on a Liveboard
1379
1391
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1380
1392
  * @example
1381
- *```js
1393
+ * ```js
1382
1394
  * liveboardEmbed.on(EmbedEvent.Cancel)
1383
- *```
1395
+ * ```
1384
1396
  */
1385
1397
  EmbedEvent["Cancel"] = "cancel";
1386
1398
  /**
1387
1399
  * Emitted when a user clicks **Explore** on a visualization
1388
1400
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1389
1401
  * @example
1390
- *```js
1402
+ * ```js
1391
1403
  * liveboardEmbed.on(EmbedEvent.Explore, {
1392
1404
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1393
- *```
1405
+ * ```
1394
1406
  */
1395
1407
  EmbedEvent["Explore"] = "explore";
1396
1408
  /**
1397
1409
  * Emitted when a user clicks **Copy link** action on a visualization.
1398
1410
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1399
1411
  * @example
1400
- *```js
1412
+ * ```js
1401
1413
  * liveboardEmbed.on(EmbedEvent.CopyLink, {
1402
1414
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1403
- *```
1415
+ * ```
1404
1416
  */
1405
1417
  EmbedEvent["CopyLink"] = "embedDocument";
1406
1418
  /**
@@ -1408,21 +1420,21 @@
1408
1420
  * visualization or Liveboard.
1409
1421
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
1410
1422
  * @example
1411
- *```js
1423
+ * ```js
1412
1424
  * liveboardEmbed.on(EmbedEvent.CrossFilterChanged, {
1413
1425
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1414
- *```
1426
+ * ```
1415
1427
  */
1416
1428
  EmbedEvent["CrossFilterChanged"] = "cross-filter-changed";
1417
1429
  /**
1418
1430
  * Emitted when a user right clicks on a visualization (chart or table)
1419
1431
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
1420
1432
  * @example
1421
- *```js
1433
+ * ```js
1422
1434
  * LiveboardEmbed.on(EmbedEvent.VizPointRightClick, payload => {
1423
1435
  * console.log('VizPointClick', payload)
1424
1436
  * })
1425
- *```
1437
+ * ```
1426
1438
  */
1427
1439
  EmbedEvent["VizPointRightClick"] = "vizPointRightClick";
1428
1440
  /**
@@ -1436,35 +1448,35 @@
1436
1448
  * filter details.
1437
1449
  * @example
1438
1450
  *
1439
- *```js
1451
+ * ```js
1440
1452
  * LiveboardEmbed.on(EmbedEvent.FilterChanged, (payload) => {
1441
1453
  * console.log('payload', payload);
1442
1454
  * })
1443
- *
1455
+ * ```
1444
1456
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.0.sw
1445
1457
  */
1446
1458
  EmbedEvent["FilterChanged"] = "filterChanged";
1447
1459
  /**
1448
1460
  * Emitted when a user clicks the **Go** button to initiate
1449
1461
  * a Natural Language Search query
1450
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1462
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1451
1463
  */
1452
1464
  EmbedEvent["SageEmbedQuery"] = "sageEmbedQuery";
1453
1465
  /**
1454
1466
  * Emitted when a user selects a data source on the embedded
1455
1467
  * Natural Language Search interface.
1456
1468
  *
1457
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1469
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1458
1470
  */
1459
1471
  EmbedEvent["SageWorksheetUpdated"] = "sageWorksheetUpdated";
1460
1472
  /**
1461
1473
  * Emitted when a user updates a connection on the **Data** page
1462
- * @version SDK : 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1474
+ * @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1463
1475
  */
1464
1476
  EmbedEvent["UpdateConnection"] = "updateConnection";
1465
1477
  /**
1466
1478
  * Emitted when a user updates a connection on the **Data** page
1467
- * @version SDK : 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1479
+ * @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1468
1480
  */
1469
1481
  EmbedEvent["CreateConnection"] = "createConnection";
1470
1482
  /**
@@ -1474,7 +1486,7 @@
1474
1486
  * @returns viewId: string
1475
1487
  * @returns liveboardId: string
1476
1488
  * @returns isPublic: boolean
1477
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1489
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1478
1490
  */
1479
1491
  EmbedEvent["UpdatePersonalisedView"] = "updatePersonalisedView";
1480
1492
  /**
@@ -1483,7 +1495,7 @@
1483
1495
  * @returns viewId: string
1484
1496
  * @returns liveboardId: string
1485
1497
  * @returns isPublic: boolean
1486
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1498
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1487
1499
  */
1488
1500
  EmbedEvent["SavePersonalisedView"] = "savePersonalisedView";
1489
1501
  /**
@@ -1492,19 +1504,19 @@
1492
1504
  * @returns viewId: string
1493
1505
  * @returns liveboardId: string
1494
1506
  * @returns isPublic: boolean
1495
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1507
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1496
1508
  */
1497
1509
  EmbedEvent["ResetLiveboard"] = "resetLiveboard";
1498
1510
  /**
1499
1511
  * Emitted when a PersonalisedView is deleted.
1500
1512
  * @returns views: string[]
1501
1513
  * @returns liveboardId: string
1502
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1514
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1503
1515
  */
1504
1516
  EmbedEvent["DeletePersonalisedView"] = "deletePersonalisedView";
1505
1517
  /**
1506
1518
  * Emitted when a user creates a Worksheet.
1507
- * @version SDK : 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1519
+ * @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1508
1520
  */
1509
1521
  EmbedEvent["CreateWorksheet"] = "createWorksheet";
1510
1522
  /**
@@ -1513,12 +1525,12 @@
1513
1525
  * @returns viewId: string
1514
1526
  * @returns liveboardId: string
1515
1527
  * @returns isPublic: boolean
1516
- * @version SDK : 1.29.0 | ThoughtSpot Cloud: 9.12.0.cl
1528
+ * @version SDK: 1.29.0 | ThoughtSpot Cloud: 9.12.0.cl
1517
1529
  */
1518
1530
  EmbedEvent["AskSageInit"] = "AskSageInit";
1519
1531
  /**
1520
1532
  * Emitted when a Liveboard or visualization is renamed.
1521
- * @version SDK : 1.28.0 | ThoughtSpot: 9.10.5.cl, 10.1.0.sw
1533
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.10.5.cl, 10.1.0.sw
1522
1534
  */
1523
1535
  EmbedEvent["Rename"] = "rename";
1524
1536
  /**
@@ -1541,7 +1553,7 @@
1541
1553
  * - `error` - Developers can customize the user-facing error message when `execute`
1542
1554
  * is `false` by using the `error` parameters in `responder`.
1543
1555
  * - `errorText` - The error message text shown to the user.
1544
- * @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
1556
+ * @version SDK: 1.29.0 | ThoughtSpot: 10.3.0.cl
1545
1557
  * @example
1546
1558
  *
1547
1559
  * This example blocks search operation and returns a custom error message:
@@ -1593,8 +1605,8 @@
1593
1605
  * liveboardEmbed.on(EmbedEvent.ParameterChanged, (payload) => {
1594
1606
  * console.log('payload', payload);
1595
1607
  * })
1596
- *```
1597
- * @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
1608
+ * ```
1609
+ * @version SDK: 1.29.0 | ThoughtSpot: 10.3.0.cl
1598
1610
  */
1599
1611
  EmbedEvent["ParameterChanged"] = "parameterChanged";
1600
1612
  /**
@@ -1649,24 +1661,24 @@
1649
1661
  * liveboardEmbed.on(EmbedEvent.CreateLiveboard, (payload) => {
1650
1662
  * console.log('payload', payload);
1651
1663
  * })
1652
- *```
1653
- * @version SDK : 1.37.0 | ThoughtSpot: 10.8.0.cl
1664
+ * ```
1665
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
1654
1666
  */
1655
1667
  EmbedEvent["CreateLiveboard"] = "createLiveboard";
1656
1668
  /**
1657
1669
  * Emitted when a user creates a Model.
1658
- * @version SDK : 1.37.0 | ThoughtSpot: 10.8.0.cl
1670
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
1659
1671
  */
1660
1672
  EmbedEvent["CreateModel"] = "createModel";
1661
1673
  /**
1662
1674
  * @hidden
1663
1675
  * Emitted when a user exits present mode.
1664
- * @version SDK : 1.40.0 | ThoughtSpot: 10.11.0.cl
1676
+ * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
1665
1677
  */
1666
1678
  EmbedEvent["ExitPresentMode"] = "exitPresentMode";
1667
1679
  /**
1668
1680
  * Emitted when a user requests the full height lazy load data.
1669
- * @version SDK : 1.39.0 | ThoughtSpot : 10.10.0.cl
1681
+ * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1670
1682
  * @hidden
1671
1683
  */
1672
1684
  EmbedEvent["RequestVisibleEmbedCoordinates"] = "requestVisibleEmbedCoordinates";
@@ -1677,7 +1689,7 @@
1677
1689
  * spotterEmbed.on(EmbedEvent.SpotterData, (payload) => {
1678
1690
  * console.log('payload', payload);
1679
1691
  * })
1680
- *```
1692
+ * ```
1681
1693
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1682
1694
  */
1683
1695
  EmbedEvent["SpotterData"] = "SpotterData";
@@ -1688,7 +1700,7 @@
1688
1700
  * spotterEmbed.on(EmbedEvent.PreviewSpotterData, (payload) => {
1689
1701
  * console.log('payload', payload);
1690
1702
  * })
1691
- *```
1703
+ * ```
1692
1704
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1693
1705
  */
1694
1706
  EmbedEvent["PreviewSpotterData"] = "PreviewSpotterData";
@@ -1699,7 +1711,7 @@
1699
1711
  * spotterEmbed.on(EmbedEvent.AddToCoaching, (payload) => {
1700
1712
  * console.log('payload', payload);
1701
1713
  * })
1702
- *```
1714
+ * ```
1703
1715
  * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
1704
1716
  */
1705
1717
  EmbedEvent["AddToCoaching"] = "addToCoaching";
@@ -1721,7 +1733,7 @@
1721
1733
  * spotterEmbed.on(EmbedEvent.SpotterQueryTriggered, (payload) => {
1722
1734
  * console.log('payload', payload);
1723
1735
  * })
1724
- *```
1736
+ * ```
1725
1737
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1726
1738
  */
1727
1739
  EmbedEvent["SpotterQueryTriggered"] = "SpotterQueryTriggered";
@@ -1732,7 +1744,7 @@
1732
1744
  * spotterEmbed.on(EmbedEvent.LastPromptEdited, (payload) => {
1733
1745
  * console.log('payload', payload);
1734
1746
  * })
1735
- *```
1747
+ * ```
1736
1748
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1737
1749
  */
1738
1750
  EmbedEvent["LastPromptEdited"] = "LastPromptEdited";
@@ -1743,18 +1755,18 @@
1743
1755
  * spotterEmbed.on(EmbedEvent.LastPromptDeleted, (payload) => {
1744
1756
  * console.log('payload', payload);
1745
1757
  * })
1746
- *```
1758
+ * ```
1747
1759
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1748
1760
  */
1749
1761
  EmbedEvent["LastPromptDeleted"] = "LastPromptDeleted";
1750
1762
  /**
1751
- * Emitted when the coversation is reset in spotter embed.
1763
+ * Emitted when the conversation is reset in Spotter embed.
1752
1764
  * @example
1753
1765
  * ```js
1754
1766
  * spotterEmbed.on(EmbedEvent.ResetSpotterConversation, (payload) => {
1755
1767
  * console.log('payload', payload);
1756
1768
  * })
1757
- *```
1769
+ * ```
1758
1770
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1759
1771
  */
1760
1772
  EmbedEvent["ResetSpotterConversation"] = "ResetSpotterConversation";
@@ -1765,7 +1777,7 @@
1765
1777
  * spotterEmbed.on(EmbedEvent.SpotterInit, (payload) => {
1766
1778
  * console.log('payload', payload);
1767
1779
  * })
1768
- *```
1780
+ * ```
1769
1781
  * @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
1770
1782
  */
1771
1783
  EmbedEvent["SpotterInit"] = "spotterInit";
@@ -1776,7 +1788,7 @@
1776
1788
  * spotterEmbed.on(EmbedEvent.SpotterLoadComplete, (payload) => {
1777
1789
  * console.log('payload', payload);
1778
1790
  * })
1779
- *```
1791
+ * ```
1780
1792
  * @version SDK: 1.44.0 | ThoughtSpot: 26.2.0.cl
1781
1793
  */
1782
1794
  EmbedEvent["SpotterLoadComplete"] = "spotterLoadComplete";
@@ -2004,7 +2016,8 @@
2004
2016
  * - `autoDrillDown`: Optional. If `true`, the drill down will be done automatically
2005
2017
  * on the most popular column.
2006
2018
  * - `vizId` (TS >= 9.8.0): Optional. The GUID of the visualization to drill in case
2007
- * of a Liveboard. In Spotter embed, `vizId` refers to the Answer ID and is **required**.
2019
+ * of a Liveboard. In Spotter embed, `vizId` refers to the Answer ID and is
2020
+ * **required**.
2008
2021
  * @example
2009
2022
  * ```js
2010
2023
  * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
@@ -2131,7 +2144,7 @@
2131
2144
  * ```js
2132
2145
  * appEmbed.navigateToPage(-1)
2133
2146
  * ```
2134
- * @version SDK: 1.12.0 | ThoughtSpot 8.4.0.cl, 8.4.1.sw
2147
+ * @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1.sw
2135
2148
  */
2136
2149
  HostEvent["Navigate"] = "Navigate";
2137
2150
  /**
@@ -2200,7 +2213,8 @@
2200
2213
  * the following parameters:
2201
2214
  *
2202
2215
  * @param - Includes the following keys:
2203
- * - `vizId`: GUID of the saved Answer or Spotter visualization ID to pin to a Liveboard.
2216
+ * - `vizId`: GUID of the saved Answer or Spotter visualization ID to pin to a
2217
+ * Liveboard.
2204
2218
  * Optional when pinning a new chart or table generated from a Search query.
2205
2219
  * **Required** in Spotter Embed.
2206
2220
  * - `liveboardId`: GUID of the Liveboard to pin an Answer. If there is no Liveboard,
@@ -2264,9 +2278,9 @@
2264
2278
  * Trigger the **Show Liveboard details** action
2265
2279
  * on an embedded Liveboard.
2266
2280
  * @example
2267
- *```js
2281
+ * ```js
2268
2282
  * liveboardEmbed.trigger(HostEvent.LiveboardInfo)
2269
- *```
2283
+ * ```
2270
2284
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2271
2285
  */
2272
2286
  HostEvent["LiveboardInfo"] = "pinboardInfo";
@@ -2394,7 +2408,7 @@
2394
2408
  * appEmbed.trigger(HostEvent.Remove)
2395
2409
  * ```
2396
2410
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2397
- * * @example
2411
+ * @example
2398
2412
  * ```js
2399
2413
  * liveboardEmbed.trigger(HostEvent.Remove)
2400
2414
  * ```
@@ -2456,7 +2470,8 @@
2456
2470
  * This event is not supported in visualization embed and search embed.
2457
2471
  * @param - Object parameter. Includes the following keys:
2458
2472
  * - `vizId`: To trigger the action for a specific visualization in Liveboard embed,
2459
- * pass in `vizId` as a key. In Spotter embed, `vizId` refers to the Answer ID and is **required**.
2473
+ * pass in `vizId` as a key. In Spotter embed, `vizId` refers to the Answer ID and
2474
+ * is **required**.
2460
2475
  *
2461
2476
  * @example
2462
2477
  * ```js
@@ -2485,7 +2500,7 @@
2485
2500
  * liveboardEmbed.trigger(HostEvent.CopyLink, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2486
2501
  * ```
2487
2502
  * ```js
2488
- * vizEmbed.trigger((HostEvent.CopyLink)
2503
+ * vizEmbed.trigger(HostEvent.CopyLink)
2489
2504
  * ```
2490
2505
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2491
2506
  */
@@ -2502,7 +2517,7 @@
2502
2517
  * liveboardEmbed.trigger(HostEvent.Present, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2503
2518
  * ```
2504
2519
  * ```js
2505
- * vizEmbed.trigger((HostEvent.Present)
2520
+ * vizEmbed.trigger(HostEvent.Present)
2506
2521
  * ```
2507
2522
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2508
2523
  */
@@ -2517,23 +2532,22 @@
2517
2532
  * );
2518
2533
  * })
2519
2534
  * ```
2520
- * * @example
2535
+ * @example
2521
2536
  * ```js
2522
-
2523
- * // You can use the Data event dispatched on each answer creation to get the vizId and use in Pin host event.
2524
- * let latestSpotterVizId = '';
2525
- * spotterEmbed.on(EmbedEvent.Data, (payload) => {
2526
- * latestSpotterVizId = payload.data.id;
2527
- * });
2528
- *
2529
- * spotterEmbed.trigger(HostEvent.GetTML, {
2537
+ * // You can use the Data event dispatched on each answer creation to get the vizId and use in GetTML host event.
2538
+ * let latestSpotterVizId = '';
2539
+ * spotterEmbed.on(EmbedEvent.Data, (payload) => {
2540
+ * latestSpotterVizId = payload.data.id;
2541
+ * });
2542
+ *
2543
+ * spotterEmbed.trigger(HostEvent.GetTML, {
2530
2544
  * vizId: latestSpotterVizId
2531
2545
  * }).then((tml) => {
2532
2546
  * console.log(
2533
2547
  * tml.answer.search_query // TML representation of the search query
2534
2548
  * );
2535
2549
  * })
2536
- * ```
2550
+ * ```
2537
2551
  * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
2538
2552
  * @important
2539
2553
  */
@@ -2597,6 +2611,11 @@
2597
2611
  /**
2598
2612
  * Trigger the **Download** action on charts in
2599
2613
  * the embedded view.
2614
+ * Use {@link HostEvent.DownloadAsPng} instead.
2615
+ *
2616
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
2617
+ *
2618
+ * @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
2600
2619
  * @param - `vizId` refers to the Visualization ID in Spotter embed and is required in Spotter embed.
2601
2620
  * @example
2602
2621
  * ```js
@@ -2615,9 +2634,6 @@
2615
2634
  *
2616
2635
  * spotterEmbed.trigger(HostEvent.Download, { vizId: latestSpotterVizId });
2617
2636
  * ```
2618
- * @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
2619
- * Use {@link DownloadAsPng}
2620
- * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
2621
2637
  */
2622
2638
  HostEvent["Download"] = "downloadAsPng";
2623
2639
  /**
@@ -2824,8 +2840,9 @@
2824
2840
  /**
2825
2841
  * Update one or several filters applied on a Liveboard.
2826
2842
  * @param - Includes the following keys:
2827
- * - `filter`: A single filter object containing column name, filter operator, and values.
2828
- * - `filters`: Multiple filter objects with column name, filter operator, and values for each.
2843
+ * - `filter`: A single filter object containing column name, filter operator, and
2844
+ * values. - `filters`: Multiple filter objects with column name, filter operator,
2845
+ * and values for each.
2829
2846
  *
2830
2847
  * Each filter object must include the following attributes:
2831
2848
  *
@@ -3055,8 +3072,8 @@
3055
3072
  * liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
3056
3073
  * console.log('parameters', parameter);
3057
3074
  * });
3058
- *```
3059
- *```js
3075
+ * ```
3076
+ * ```js
3060
3077
  * // You can use the Data event dispatched on each answer creation to get the vizId and use in GetParameters host event.
3061
3078
  * let latestSpotterVizId = '';
3062
3079
  * spotterEmbed.on(EmbedEvent.Data, (payload) => {
@@ -3064,7 +3081,7 @@
3064
3081
  * });
3065
3082
  *
3066
3083
  * spotterEmbed.trigger(HostEvent.GetParameters, { vizId: latestSpotterVizId });
3067
- *```
3084
+ * ```
3068
3085
  * @version SDK: 1.29.0 | ThoughtSpot: 10.1.0.cl, 10.1.0.sw
3069
3086
  */
3070
3087
  HostEvent["GetParameters"] = "GetParameters";
@@ -3081,7 +3098,7 @@
3081
3098
  * Notify when info call is completed successfully
3082
3099
  * ```js
3083
3100
  * liveboardEmbed.trigger(HostEvent.InfoSuccess, data);
3084
- *```
3101
+ * ```
3085
3102
  * @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
3086
3103
  */
3087
3104
  HostEvent["InfoSuccess"] = "InfoSuccess";
@@ -3094,8 +3111,8 @@
3094
3111
  * triggered with a modal to prompt users to
3095
3112
  * add a name and description for the Answer.
3096
3113
  * @param - Includes the following keys:
3097
- * - `vizId`: Refers to the Answer ID in Spotter embed and is **required** in Spotter embed.
3098
- * - `name`: Optional. Name string for the Answer.
3114
+ * - `vizId`: Refers to the Answer ID in Spotter embed and is **required** in Spotter
3115
+ * embed. - `name`: Optional. Name string for the Answer.
3099
3116
  * - `description`: Optional. Description text for the Answer.
3100
3117
  * @example
3101
3118
  * ```js
@@ -3184,7 +3201,7 @@
3184
3201
  * ```js
3185
3202
  * spotterEmbed.trigger(HostEvent.AddToCoaching, { vizId: '730496d6-6903-4601-937e-2c691821af3c' });
3186
3203
  *
3187
- *```
3204
+ * ```
3188
3205
  * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
3189
3206
  */
3190
3207
  HostEvent["AddToCoaching"] = "addToCoaching";
@@ -3226,7 +3243,7 @@
3226
3243
  * });
3227
3244
  *
3228
3245
  * spotterEmbed.trigger(HostEvent.AnswerChartSwitcher, { vizId: latestSpotterVizId });
3229
- *```
3246
+ * ```
3230
3247
  * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
3231
3248
  */
3232
3249
  HostEvent["AnswerChartSwitcher"] = "answerChartSwitcher";
@@ -3236,7 +3253,7 @@
3236
3253
  * This is automatically triggered by the SDK when fullscreen mode is exited.
3237
3254
  * ```js
3238
3255
  * liveboardEmbed.trigger(HostEvent.ExitPresentMode);
3239
- *```
3256
+ * ```
3240
3257
  * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
3241
3258
  */
3242
3259
  HostEvent["ExitPresentMode"] = "exitPresentMode";
@@ -3290,8 +3307,9 @@
3290
3307
  /**
3291
3308
  * Triggers a new conversation in Spotter embed.
3292
3309
  *
3293
- * This feature is available only when chat history is enabled on your ThoughtSpot instance.
3294
- * Contact your admin or ThoughtSpot Support to enable chat history on your instance.
3310
+ * This feature is available only when chat history is enabled on your ThoughtSpot
3311
+ * instance. Contact your admin or ThoughtSpot Support to enable chat history on your
3312
+ * instance.
3295
3313
  *
3296
3314
  * @example
3297
3315
  * ```js
@@ -3337,6 +3355,7 @@
3337
3355
  */
3338
3356
  var Param;
3339
3357
  (function (Param) {
3358
+ Param["Tsmcp"] = "tsmcp";
3340
3359
  Param["EmbedApp"] = "embedApp";
3341
3360
  Param["DataSources"] = "dataSources";
3342
3361
  Param["DataSourceMode"] = "dataSourceMode";
@@ -3386,6 +3405,7 @@
3386
3405
  // 'both' clicks in `contextMenuTrigger` configuration.
3387
3406
  Param["ContextMenuTrigger"] = "contextMenuEnabledOnWhichClick";
3388
3407
  Param["LinkOverride"] = "linkOverride";
3408
+ Param["EnableLinkOverridesV2"] = "enableLinkOverridesV2";
3389
3409
  Param["blockNonEmbedFullAppAccess"] = "blockNonEmbedFullAppAccess";
3390
3410
  Param["ShowInsertToSlide"] = "insertInToSlide";
3391
3411
  Param["PrimaryNavHidden"] = "primaryNavHidden";
@@ -3480,6 +3500,7 @@
3480
3500
  Param["IsThisPeriodInDateFiltersEnabled"] = "isThisPeriodInDateFiltersEnabled";
3481
3501
  Param["HideToolResponseCardBranding"] = "hideToolResponseCardBranding";
3482
3502
  Param["ToolResponseCardBrandingLabel"] = "toolResponseCardBrandingLabel";
3503
+ Param["EnableHomepageAnnouncement"] = "enableHomepageAnnouncement";
3483
3504
  })(Param || (Param = {}));
3484
3505
  /**
3485
3506
  * ThoughtSpot application pages include actions and menu commands
@@ -3639,14 +3660,14 @@
3639
3660
  * ```js
3640
3661
  * disabledActions: [Action.CollapseDataPanel]
3641
3662
  * ```
3642
- * @version: SDK: 1.1.0 | ThoughtSpot Cloud: ts7.may.cl, 8.4.1.sw
3663
+ * @version SDK: 1.1.0 | ThoughtSpot Cloud: ts7.may.cl, 8.4.1.sw
3643
3664
  */
3644
3665
  Action["CollapseDataSources"] = "collapseDataSources";
3645
3666
  /**
3646
3667
  * The **Collapse data panel** icon on the Search page.
3647
3668
  * Collapses the data panel view.
3648
3669
  *
3649
- * @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
3670
+ * @version SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
3650
3671
  *
3651
3672
  * @example
3652
3673
  * ```js
@@ -4093,13 +4114,12 @@
4093
4114
  */
4094
4115
  Action["CreateMonitor"] = "createMonitor";
4095
4116
  /**
4096
- * @deprecated
4097
- * Reports errors
4117
+ * @version SDK: 1.11.1 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
4118
+ * @deprecated This action is deprecated. It was used for reporting errors.
4098
4119
  * @example
4099
4120
  * ```js
4100
4121
  * disabledActions: [Action.ReportError]
4101
4122
  * ```
4102
- * @version SDK: 1.11.1 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
4103
4123
  */
4104
4124
  Action["ReportError"] = "reportError";
4105
4125
  /**
@@ -4109,7 +4129,7 @@
4109
4129
  * ```js
4110
4130
  * disabledActions: [Action.SyncToSheets]
4111
4131
  * ```
4112
- * @version SDK: 1.18.0| ThoughtSpot: 8.10.0.cl, 9.0.1.sw
4132
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
4113
4133
  */
4114
4134
  Action["SyncToSheets"] = "sync-to-sheets";
4115
4135
  /**
@@ -4120,7 +4140,7 @@
4120
4140
  * ```js
4121
4141
  * disabledActions: [Action.SyncToOtherApps]
4122
4142
  * ```
4123
- * @version SDK: 1.18.0| ThoughtSpot: 8.10.0.cl, 9.0.1.sw
4143
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
4124
4144
  */
4125
4145
  Action["SyncToOtherApps"] = "sync-to-other-apps";
4126
4146
  /**
@@ -4130,7 +4150,7 @@
4130
4150
  * ```js
4131
4151
  * disabledActions: [Action.ManagePipelines]
4132
4152
  * ```
4133
- * @version SDK: 1.18.0| ThoughtSpot: 8.10.0.cl, 9.0.1.sw
4153
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
4134
4154
  */
4135
4155
  Action["ManagePipelines"] = "manage-pipeline";
4136
4156
  /**
@@ -4442,7 +4462,7 @@
4442
4462
  * ```js
4443
4463
  * disabledActions: [Action.PersonalisedViewsDropdown]
4444
4464
  * ```
4445
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 10.1.0.sw
4465
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 10.1.0.sw
4446
4466
  */
4447
4467
  Action["PersonalisedViewsDropdown"] = "personalisedViewsDropdown";
4448
4468
  /**
@@ -4452,7 +4472,7 @@
4452
4472
  * ```js
4453
4473
  * disabledActions: [Action.LiveboardUsers]
4454
4474
  * ```
4455
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 10.1.0.sw
4475
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 10.1.0.sw
4456
4476
  */
4457
4477
  Action["LiveboardUsers"] = "liveboardUsers";
4458
4478
  /**
@@ -4470,7 +4490,7 @@
4470
4490
  * hiddenAction: [Action.TML] // hide all TML actions
4471
4491
  * disabledActions: [Action.TML] // to disable all TML actions
4472
4492
  * ```
4473
- * @version SDK : 1.28.3 | ThoughtSpot: 9.12.0.cl, 10.1.0.sw
4493
+ * @version SDK: 1.28.3 | ThoughtSpot: 9.12.0.cl, 10.1.0.sw
4474
4494
  */
4475
4495
  Action["TML"] = "tml";
4476
4496
  /**
@@ -4516,7 +4536,7 @@
4516
4536
  * ```js
4517
4537
  * disabledActions: [Action.AddToWatchlist]
4518
4538
  * ```
4519
- * @version SDK : 1.27.9 | ThoughtSpot Cloud: 9.12.5.cl
4539
+ * @version SDK: 1.27.9 | ThoughtSpot Cloud: 9.12.5.cl
4520
4540
  */
4521
4541
  Action["AddToWatchlist"] = "addToWatchlist";
4522
4542
  /**
@@ -4526,7 +4546,7 @@
4526
4546
  * ```js
4527
4547
  * disabledActions: [Action.RemoveFromWatchlist]
4528
4548
  * ```
4529
- * @version SDK : 1.27.9 | ThoughtSpot: 9.12.5.cl
4549
+ * @version SDK: 1.27.9 | ThoughtSpot: 9.12.5.cl
4530
4550
  */
4531
4551
  Action["RemoveFromWatchlist"] = "removeFromWatchlist";
4532
4552
  /**
@@ -4537,7 +4557,7 @@
4537
4557
  * ```js
4538
4558
  * disabledActions: [Action.OrganiseFavourites]
4539
4559
  * ```
4540
- * @version SDK : 1.32.0 | ThoughtSpot: 10.0.0.cl
4560
+ * @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
4541
4561
  */
4542
4562
  Action["OrganiseFavourites"] = "organiseFavourites";
4543
4563
  /**
@@ -4598,7 +4618,7 @@
4598
4618
  * ```js
4599
4619
  * disabledActions: [Action.ManageTags]
4600
4620
  * ```
4601
- * @version SDK : 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
4621
+ * @version SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
4602
4622
  */
4603
4623
  Action["ManageTags"] = "manageTags";
4604
4624
  /**
@@ -5230,7 +5250,9 @@
5230
5250
  ErrorDetailsTypes["NETWORK"] = "NETWORK";
5231
5251
  })(ErrorDetailsTypes || (ErrorDetailsTypes = {}));
5232
5252
  /**
5233
- * Error codes for identifying specific issues in embedded ThoughtSpot components. Use {@link EmbedErrorDetailsEvent} and {@link ErrorDetailsTypes} codes for precise error handling and debugging.
5253
+ * Error codes for identifying specific issues in embedded ThoughtSpot components. Use
5254
+ * {@link EmbedErrorDetailsEvent} and {@link ErrorDetailsTypes} codes for precise error
5255
+ * handling and debugging.
5234
5256
  *
5235
5257
  * @version SDK: 1.44.2 | ThoughtSpot: 26.2.0.cl
5236
5258
  * @group Error Handling
@@ -5545,7 +5567,7 @@
5545
5567
  * @returns true if the value is a valid CSS margin value, false otherwise
5546
5568
  */
5547
5569
  const isValidCssMargin = (value) => {
5548
- if (isUndefined$1(value)) {
5570
+ if (isUndefined(value)) {
5549
5571
  return false;
5550
5572
  }
5551
5573
  if (typeof value !== 'string') {
@@ -5733,7 +5755,7 @@
5733
5755
  element.style.removeProperty(styleProperty);
5734
5756
  });
5735
5757
  };
5736
- const isUndefined$1 = (value) => value === undefined;
5758
+ const isUndefined = (value) => value === undefined;
5737
5759
  // Return if the value is a string, double or boolean.
5738
5760
  const getTypeFromValue = (value) => {
5739
5761
  if (typeof value === 'string') {
@@ -5930,6 +5952,14 @@
5930
5952
  return [false, error instanceof Error ? error : new Error(String(error))];
5931
5953
  }
5932
5954
  };
5955
+ /**
5956
+ * Resolves enablePastConversationsSidebar with
5957
+ * spotterSidebarConfig taking precedence over the
5958
+ * standalone flag.
5959
+ */
5960
+ const resolveEnablePastConversationsSidebar = (params) => (params.spotterSidebarConfigValue !== undefined
5961
+ ? params.spotterSidebarConfigValue
5962
+ : params.standaloneValue);
5933
5963
  /**
5934
5964
  * Sets a query parameter if the value is defined.
5935
5965
  * @param queryParams - The query params object to modify
@@ -8412,7 +8442,6 @@
8412
8442
  }
8413
8443
  if (cachedAuthToken && cachedAuthToken === authToken) {
8414
8444
  if (!embedConfig.suppressErrorAlerts && !suppressAlert) {
8415
- // eslint-disable-next-line no-alert
8416
8445
  alert(ERROR_MESSAGE.DUPLICATE_TOKEN_ERR);
8417
8446
  }
8418
8447
  throw new Error(ERROR_MESSAGE.DUPLICATE_TOKEN_ERR);
@@ -8510,7 +8539,7 @@
8510
8539
  * tokenizedFetch("<TS_ORIGIN>/api/rest/2.0/auth/session/user", {
8511
8540
  * // .. fetch options ..
8512
8541
  * });
8513
- *```
8542
+ * ```
8514
8543
  * @version SDK: 1.28.0
8515
8544
  * @group Global methods
8516
8545
  */
@@ -8844,12 +8873,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
8844
8873
  }`;
8845
8874
 
8846
8875
  // import YAML from 'yaml';
8847
- // eslint-disable-next-line no-shadow
8848
8876
  var OperationType;
8849
8877
  (function (OperationType) {
8850
8878
  OperationType["GetChartWithData"] = "GetChartWithData";
8851
8879
  OperationType["GetTableWithHeadlineData"] = "GetTableWithHeadlineData";
8852
8880
  })(OperationType || (OperationType = {}));
8881
+ const DATA_TYPES = ['DATE', 'DATE_TIME', 'TIME'];
8853
8882
  /**
8854
8883
  * AnswerService provides a simple way to work with ThoughtSpot Answers.
8855
8884
  *
@@ -8859,10 +8888,11 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
8859
8888
  *
8860
8889
  * You can use this service to:
8861
8890
  *
8862
- * - Add or remove columns from Answers (`addColumns`, `removeColumns`, `addColumnsByName`)
8863
- * - Apply filters to Answers (`addFilter`)
8864
- * - Get data from Answers in different formats (JSON, CSV, PNG) (`fetchData`, `fetchCSVBlob`, `fetchPNGBlob`)
8865
- * - Get data for specific points in visualizations (`getUnderlyingDataForPoint`)
8891
+ * - Add or remove columns from Answers (`addColumns`, `removeColumns`,
8892
+ * `addColumnsByName`) - Apply filters to Answers (`addFilter`)
8893
+ * - Get data from Answers in different formats (JSON, CSV, PNG) (`fetchData`,
8894
+ * `fetchCSVBlob`, `fetchPNGBlob`) - Get data for specific points in visualizations
8895
+ * (`getUnderlyingDataForPoint`)
8866
8896
  * - Run custom queries (`executeQuery`)
8867
8897
  * - Add visualizations to Liveboards (`addDisplayedVizToLiveboard`)
8868
8898
  *
@@ -8895,7 +8925,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
8895
8925
  * });
8896
8926
  * ```
8897
8927
  *
8898
- * @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
8928
+ * @version SDK: 1.25.0 | ThoughtSpot: 9.10.0.cl
8899
8929
  * @group Events
8900
8930
  */
8901
8931
  class AnswerService {
@@ -8956,6 +8986,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
8956
8986
  * ]);
8957
8987
  * console.log(await service.fetchData());
8958
8988
  * });
8989
+ * ```
8959
8990
  */
8960
8991
  async addColumnsByName(columnNames) {
8961
8992
  const sourceDetail = await this.getSourceDetail();
@@ -9086,7 +9117,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
9086
9117
  * const data = await underlying.fetchData(0, 100);
9087
9118
  * })
9088
9119
  * ```
9089
- * @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
9120
+ * @version SDK: 1.25.0 | ThoughtSpot: 9.10.0.cl
9090
9121
  */
9091
9122
  async getUnderlyingDataForPoint(outputColumnNames, selectedPoints) {
9092
9123
  if (!selectedPoints && !this.selectedPoints) {
@@ -9205,7 +9236,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
9205
9236
  const dataType = colVal.column.dataType;
9206
9237
  colVal.column.id;
9207
9238
  let dataValue;
9208
- if (dataType === 'DATE') {
9239
+ if (DATA_TYPES.includes(dataType)) {
9209
9240
  if (Number.isFinite(colVal.value)) {
9210
9241
  dataValue = [{
9211
9242
  epochRange: {
@@ -9243,13 +9274,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
9243
9274
  */
9244
9275
  function getDisplayedViz(visualizations, displayMode) {
9245
9276
  if (displayMode === 'CHART_MODE') {
9246
- return visualizations.find(
9247
- // eslint-disable-next-line no-underscore-dangle
9248
- (viz) => viz.__typename === 'ChartViz');
9277
+ return visualizations.find((viz) => viz.__typename === 'ChartViz');
9249
9278
  }
9250
- return visualizations.find(
9251
- // eslint-disable-next-line no-underscore-dangle
9252
- (viz) => viz.__typename === 'TableViz');
9279
+ return visualizations.find((viz) => viz.__typename === 'TableViz');
9253
9280
  }
9254
9281
 
9255
9282
  /** Built-in value references. */
@@ -17583,11 +17610,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17583
17610
  resetCachedPreauthInfo();
17584
17611
  }
17585
17612
 
17586
- // eslint-disable-next-line import/no-mutable-exports
17587
17613
  let loggedInStatus = false;
17588
- // eslint-disable-next-line import/no-mutable-exports
17589
17614
  let samlAuthWindow = null;
17590
- // eslint-disable-next-line import/no-mutable-exports
17591
17615
  let samlCompletionPromise = null;
17592
17616
  let releaseVersion = '';
17593
17617
  const SSO_REDIRECTION_MARKER_GUID = '5e16222e-ef02-43e9-9fbd-24226bf3ce5b';
@@ -17645,20 +17669,45 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17645
17669
  var AuthStatus;
17646
17670
  (function (AuthStatus) {
17647
17671
  /**
17648
- * Emits when the SDK fails to authenticate
17672
+ * Emits when the SDK fails to authenticate.
17649
17673
  */
17650
17674
  AuthStatus["FAILURE"] = "FAILURE";
17651
17675
  /**
17652
- * Emits when the SDK authenticates successfully
17676
+ * Emits when the SDK authentication step completes
17677
+ * successfully (e.g., token exchange, cookie set).
17678
+ * This fires before any iframe is rendered. Use
17679
+ * this to know that auth passed and it is safe to
17680
+ * proceed with rendering. The callback receives no
17681
+ * arguments.
17682
+ * @example
17683
+ * ```js
17684
+ * const authEE = init({ ... });
17685
+ * authEE.on(AuthStatus.SDK_SUCCESS, () => {
17686
+ * // Auth done, iframe not loaded yet
17687
+ * });
17688
+ * ```
17653
17689
  */
17654
17690
  AuthStatus["SDK_SUCCESS"] = "SDK_SUCCESS";
17655
17691
  /**
17656
17692
  * @hidden
17657
- * Emits when iframe is loaded and session info is available
17693
+ * Emits when iframe is loaded and session
17694
+ * information is available.
17658
17695
  */
17659
17696
  AuthStatus["SESSION_INFO_SUCCESS"] = "SESSION_INFO_SUCCESS";
17660
17697
  /**
17661
- * Emits when the app sends an authentication success message
17698
+ * Emits when the ThoughtSpot app inside the
17699
+ * embedded iframe confirms its session is active.
17700
+ * This fires after the iframe loads and sends back an `AuthInit` event.
17701
+ * @param sessionInfo Information about the user session, with details like `userGUID`.
17702
+ * @see EmbedEvent.AuthInit
17703
+ * @example
17704
+ * ```js
17705
+ * const authEE = init({ ... });
17706
+ * authEE.on(AuthStatus.SUCCESS, (sessionInfo) => {
17707
+ * // App is loaded and authenticated
17708
+ * console.log(sessionInfo.userGUID);
17709
+ * });
17710
+ * ```
17662
17711
  */
17663
17712
  AuthStatus["SUCCESS"] = "SUCCESS";
17664
17713
  /**
@@ -18104,8 +18153,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18104
18153
  });
18105
18154
  }
18106
18155
 
18107
- /* eslint-disable camelcase */
18108
- /* eslint-disable import/no-mutable-exports */
18109
18156
  /**
18110
18157
  * Copyright (c) 2022
18111
18158
  *
@@ -18161,7 +18208,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18161
18208
  const prefetch = (url, prefetchFeatures, additionalFlags) => {
18162
18209
  var _a;
18163
18210
  if (url === '') {
18164
- // eslint-disable-next-line no-console
18165
18211
  logger$3.warn('The prefetch method does not have a valid URL');
18166
18212
  }
18167
18213
  else {
@@ -18181,9 +18227,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18181
18227
  iFrame.style.width = '0';
18182
18228
  iFrame.style.height = '0';
18183
18229
  iFrame.style.border = '0';
18184
- // Make it 'fixed' to keep it in a different stacking context.
18185
- // This should solve the focus behaviours inside the iframe from
18186
- // interfering with main body.
18230
+ // Make it 'fixed' to keep it in a different stacking
18231
+ // context. This should solve the focus behaviours inside
18232
+ // the iframe from interfering with main body.
18187
18233
  iFrame.style.position = 'fixed';
18188
18234
  // Push it out of viewport.
18189
18235
  iFrame.style.top = '100vh';
@@ -18312,7 +18358,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18312
18358
  return renderQueue;
18313
18359
  }
18314
18360
  // Sending an empty function to keep it consistent with the above usage.
18315
- return fn(() => { }); // eslint-disable-line @typescript-eslint/no-empty-function
18361
+ return fn(() => { });
18316
18362
  };
18317
18363
 
18318
18364
  /**
@@ -18372,10 +18418,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18372
18418
  const { loginFailedMessage, suppressNoCookieAccessAlert, ignoreNoCookieAccess, suppressErrorAlerts, } = getEmbedConfig();
18373
18419
  if (!ignoreNoCookieAccess) {
18374
18420
  if (!suppressNoCookieAccessAlert && !suppressErrorAlerts) {
18375
- // eslint-disable-next-line no-alert
18376
18421
  alert(ERROR_MESSAGE.THIRD_PARTY_COOKIE_BLOCKED_ALERT);
18377
18422
  }
18378
- // eslint-disable-next-line no-param-reassign
18379
18423
  containerEl.innerHTML = loginFailedMessage;
18380
18424
  }
18381
18425
  notifyAuthFailure(AuthFailureType.NO_COOKIE_ACCESS);
@@ -18393,12 +18437,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18393
18437
  const isTrustedAuth = authType === AuthType.TrustedAuthToken || authType === AuthType.TrustedAuthTokenCookieless;
18394
18438
  const isEmbeddedSSOInfoFailure = isEmbeddedSSO && ((_a = e === null || e === void 0 ? void 0 : e.data) === null || _a === void 0 ? void 0 : _a.type) === AuthFailureType.UNAUTHENTICATED_FAILURE;
18395
18439
  if (autoLogin && isTrustedAuth) {
18396
- // eslint-disable-next-line no-param-reassign
18397
18440
  containerEl.innerHTML = loginFailedMessage;
18398
18441
  notifyAuthFailure(AuthFailureType.IDLE_SESSION_TIMEOUT);
18399
18442
  }
18400
18443
  else if (authType !== AuthType.None && !disableLoginFailurePage && !isEmbeddedSSOInfoFailure) {
18401
- // eslint-disable-next-line no-param-reassign
18402
18444
  containerEl.innerHTML = loginFailedMessage;
18403
18445
  notifyAuthFailure(AuthFailureType.OTHER);
18404
18446
  }
@@ -18412,7 +18454,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18412
18454
  */
18413
18455
  function processAuthLogout(e, containerEl) {
18414
18456
  const { loginFailedMessage } = getEmbedConfig();
18415
- // eslint-disable-next-line no-param-reassign
18416
18457
  containerEl.innerHTML = loginFailedMessage;
18417
18458
  resetCachedAuthToken();
18418
18459
  disableAutoLogin();
@@ -18446,7 +18487,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18446
18487
  return eventData;
18447
18488
  }
18448
18489
 
18449
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.46.1";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$1={".":{"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 tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js","bundle-dts":"dts-bundle-generator --config ./dts-config/dts-bundle.config.js","bundle-dts-react":"dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js","bundle-dts-react-full":"dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.build.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 | npx coveralls-next || echo 'Warning: Coveralls upload failed but not breaking the build.'","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={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.23","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":"^11.2.0","@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":"^30.0.0","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^30.2.0","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1","coveralls-next":"^5.0.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle-generator":"^9.5.1",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^2.0.0",jest:"^30.2.0","jest-environment-jsdom":"^29.7.0","jest-fetch-mock":"^3.0.3",jsdom:"^17.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":"^29.4.6","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};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$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"32 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};
18490
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.46.3";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$1={".":{"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 tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js","bundle-dts":"dts-bundle-generator --config ./dts-config/dts-bundle.config.js","bundle-dts-react":"dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js","bundle-dts-react-full":"dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.build.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 | npx coveralls-next || echo 'Warning: Coveralls upload failed but not breaking the build.'","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={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.23","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":"^11.2.0","@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":"^30.0.0","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^30.2.0","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1","coveralls-next":"^5.0.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle-generator":"^9.5.1",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^2.0.0",jest:"^30.2.0","jest-environment-jsdom":"^29.7.0","jest-fetch-mock":"^3.0.3",jsdom:"^17.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":"^29.4.6","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};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$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"32 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};
18450
18491
 
18451
18492
  class HostEventClient {
18452
18493
  constructor(iFrame) {
@@ -18470,14 +18511,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18470
18511
  const response = (_b = (_a = (await this.triggerUIPassthroughApi(apiName, parameters, context))) === null || _a === void 0 ? void 0 : _a.filter) === null || _b === void 0 ? void 0 : _b.call(_a, (r) => r.error || r.value)[0];
18471
18512
  if (!response) {
18472
18513
  const error = `No answer found${parameters.vizId ? ` for vizId: ${parameters.vizId}` : ''}.`;
18473
- // eslint-disable-next-line no-throw-literal
18474
18514
  throw { error };
18475
18515
  }
18476
18516
  const errors = response.error
18477
18517
  || ((_c = response.value) === null || _c === void 0 ? void 0 : _c.errors)
18478
18518
  || ((_d = response.value) === null || _d === void 0 ? void 0 : _d.error);
18479
18519
  if (errors) {
18480
- // eslint-disable-next-line no-throw-literal
18481
18520
  throw { error: response.error };
18482
18521
  }
18483
18522
  return { ...response.value };
@@ -18752,9 +18791,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18752
18791
  this.embedNodeKey = '__tsEmbed';
18753
18792
  this.isAppInitialized = false;
18754
18793
  /**
18755
- * Should we encode URL Query Params using base64 encoding which thoughtspot
18794
+ * Should we encode URL Query Params using base64 encoding which ThoughtSpot
18756
18795
  * will generate for embedding. This provides additional security to
18757
- * thoughtspot clusters against Cross site scripting attacks.
18796
+ * ThoughtSpot clusters against Cross site scripting attacks.
18758
18797
  * @default false
18759
18798
  */
18760
18799
  this.shouldEncodeUrlQueryParams = false;
@@ -18819,7 +18858,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18819
18858
  */
18820
18859
  this.updateAuthToken = async (_, responder) => {
18821
18860
  const { authType, autoLogin: autoLoginConfig } = this.embedConfig;
18822
- // Default autoLogin: true for cookieless if undefined/null, otherwise false
18861
+ // Default autoLogin: true for cookieless if undefined/null, otherwise
18862
+ // false
18823
18863
  const autoLogin = autoLoginConfig !== null && autoLoginConfig !== void 0 ? autoLoginConfig : (authType === AuthType.TrustedAuthTokenCookieless);
18824
18864
  try {
18825
18865
  await this.refreshAuthTokenForCookieless(responder, exports.EmbedEvent.AuthExpire, false);
@@ -18930,7 +18970,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18930
18970
  if (viewConfig.preRenderId) {
18931
18971
  const allOtherKeys = Object.keys(viewConfig).filter((key) => !preRenderAllowedKeys.includes(key) && !key.startsWith('on'));
18932
18972
  allOtherKeys.forEach((key) => {
18933
- if (!isUndefined$1(viewConfig[key])
18973
+ if (!isUndefined(viewConfig[key])
18934
18974
  && !isEqual_1(viewConfig[key], preRenderedObject.viewConfig[key])) {
18935
18975
  logger$3.warn(`${viewConfig.embedComponentType || 'Component'} was pre-rendered with `
18936
18976
  + `"${key}" as "${JSON.stringify(preRenderedObject.viewConfig[key])}" `
@@ -19266,7 +19306,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19266
19306
  if (this.embedConfig.currencyFormat) {
19267
19307
  queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
19268
19308
  }
19269
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, primaryAction, } = this.viewConfig;
19309
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, enableLinkOverridesV2, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, primaryAction, } = this.viewConfig;
19270
19310
  const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
19271
19311
  const additionalFlags = {
19272
19312
  ...additionalFlagsFromInit,
@@ -19342,7 +19382,13 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19342
19382
  if (locale !== undefined) {
19343
19383
  queryParams[Param.Locale] = locale;
19344
19384
  }
19345
- if (linkOverride) {
19385
+ // TODO: Once V2 is stable, send both flags when
19386
+ // linkOverride is true (remove the else-if).
19387
+ if (enableLinkOverridesV2) {
19388
+ queryParams[Param.EnableLinkOverridesV2] = true;
19389
+ queryParams[Param.LinkOverride] = true;
19390
+ }
19391
+ else if (linkOverride) {
19346
19392
  queryParams[Param.LinkOverride] = linkOverride;
19347
19393
  }
19348
19394
  if (insertInToSlide) {
@@ -19410,7 +19456,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19410
19456
  iFrame.mozallowfullscreen = true;
19411
19457
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
19412
19458
  // @ts-ignore
19413
- iFrame.allow = 'clipboard-read; clipboard-write; fullscreen;';
19459
+ iFrame.allow = 'clipboard-read; clipboard-write; fullscreen; local-network-access;';
19414
19460
  const frameParams = this.viewConfig.frameParams;
19415
19461
  const { height: frameHeight, width: frameWidth, ...restParams } = frameParams || {};
19416
19462
  const width = getCssDimension(frameWidth || DEFAULT_EMBED_WIDTH);
@@ -20112,7 +20158,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20112
20158
  * Returns the answerService which can be used to make arbitrary graphql calls on top
20113
20159
  * session.
20114
20160
  * @param vizId [Optional] to get for a specific viz in case of a Liveboard.
20115
- * @version SDK: 1.25.0 / ThoughtSpot 9.10.0
20161
+ * @version SDK: 1.25.0 | ThoughtSpot: 9.10.0
20116
20162
  */
20117
20163
  async getAnswerService(vizId) {
20118
20164
  const { session } = await this.trigger(exports.HostEvent.GetAnswerSession, vizId ? { vizId } : {});
@@ -20227,7 +20273,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20227
20273
 
20228
20274
  /**
20229
20275
  * Embed ThoughtSpot search bar
20230
- * @version: SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
20276
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
20231
20277
  * @group Embed components
20232
20278
  */
20233
20279
  let SearchBarEmbed$1 = class SearchBarEmbed extends TsEmbed {
@@ -20309,13 +20355,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20309
20355
  */
20310
20356
  /**
20311
20357
  * Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
20312
- * @version: SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
20358
+ * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
20313
20359
  *
20314
20360
  * Note: This embed will be deprecated from SDK: 1.40.0 | ThoughtSpot: 10.13.0.cl
20315
20361
  * @group Embed components
20316
20362
  */
20317
20363
  let SageEmbed$1 = class SageEmbed extends V1Embed {
20318
- // eslint-disable-next-line no-useless-constructor
20319
20364
  constructor(domSelector, viewConfig) {
20320
20365
  viewConfig.embedComponentType = 'SageEmbed';
20321
20366
  super(domSelector, viewConfig);
@@ -20753,7 +20798,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20753
20798
  * embedded Liveboard or visualization.
20754
20799
  */
20755
20800
  getEmbedParams() {
20756
- 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, spotterSidebarConfig, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
20801
+ 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, spotterSidebarConfig, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, enableHomepageAnnouncement, } = this.viewConfig;
20757
20802
  let params = {};
20758
20803
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
20759
20804
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
@@ -20774,13 +20819,17 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20774
20819
  params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
20775
20820
  params[Param.CoverAndFilterOptionInPDF] = !!coverAndFilterOptionInPDF;
20776
20821
  params = this.getBaseQueryParams(params);
20777
- if (!isUndefined$1(updatedSpotterChatPrompt)) {
20822
+ if (!isUndefined(updatedSpotterChatPrompt)) {
20778
20823
  params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
20779
20824
  }
20825
+ const resolvedEnablePastConversationsSidebar = resolveEnablePastConversationsSidebar({
20826
+ spotterSidebarConfigValue: spotterSidebarConfig === null || spotterSidebarConfig === void 0 ? void 0 : spotterSidebarConfig.enablePastConversationsSidebar,
20827
+ standaloneValue: this.viewConfig.enablePastConversationsSidebar,
20828
+ });
20829
+ setParamIfDefined(params, Param.EnablePastConversationsSidebar, resolvedEnablePastConversationsSidebar, true);
20780
20830
  // Handle spotterSidebarConfig params
20781
20831
  if (spotterSidebarConfig) {
20782
- const { enablePastConversationsSidebar, spotterSidebarTitle, spotterSidebarDefaultExpanded, spotterChatRenameLabel, spotterChatDeleteLabel, spotterDeleteConversationModalTitle, spotterPastConversationAlertMessage, spotterDocumentationUrl, spotterBestPracticesLabel, spotterConversationsBatchSize, spotterNewChatButtonTitle, } = spotterSidebarConfig;
20783
- setParamIfDefined(params, Param.EnablePastConversationsSidebar, enablePastConversationsSidebar, true);
20832
+ const { spotterSidebarTitle, spotterSidebarDefaultExpanded, spotterChatRenameLabel, spotterChatDeleteLabel, spotterDeleteConversationModalTitle, spotterPastConversationAlertMessage, spotterDocumentationUrl, spotterBestPracticesLabel, spotterConversationsBatchSize, spotterNewChatButtonTitle, } = spotterSidebarConfig;
20784
20833
  setParamIfDefined(params, Param.SpotterSidebarDefaultExpanded, spotterSidebarDefaultExpanded, true);
20785
20834
  setParamIfDefined(params, Param.SpotterSidebarTitle, spotterSidebarTitle);
20786
20835
  setParamIfDefined(params, Param.SpotterChatRenameLabel, spotterChatRenameLabel);
@@ -20878,6 +20927,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20878
20927
  if (isThisPeriodInDateFiltersEnabled !== undefined) {
20879
20928
  params[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
20880
20929
  }
20930
+ if (enableHomepageAnnouncement !== undefined) {
20931
+ params[Param.EnableHomepageAnnouncement] = enableHomepageAnnouncement;
20932
+ }
20881
20933
  this.defaultHeight = minimumHeight || this.defaultHeight;
20882
20934
  params[Param.DataPanelV2Enabled] = dataPanelV2;
20883
20935
  params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
@@ -21052,7 +21104,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
21052
21104
  }
21053
21105
  };
21054
21106
 
21055
- /* eslint-disable quotes */
21056
21107
  const getPreviewQuery = `
21057
21108
  query GetEurekaVizSnapshots(
21058
21109
  $vizId: String!, $liveboardId: String!) {
@@ -21136,6 +21187,7 @@ query GetEurekaVizSnapshots(
21136
21187
  * Embed a ThoughtSpot Liveboard or visualization. When rendered it already
21137
21188
  * waits for the authentication to complete, so you need not wait for
21138
21189
  * `AuthStatus.SUCCESS`.
21190
+ * @group Embed components
21139
21191
  * @example
21140
21192
  * ```js
21141
21193
  * import { .. } from '@thoughtspot/visual-embed-sdk';
@@ -21145,7 +21197,6 @@ query GetEurekaVizSnapshots(
21145
21197
  * // .. other params here.
21146
21198
  * })
21147
21199
  * ```
21148
- * @group Embed components
21149
21200
  */
21150
21201
  let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
21151
21202
  constructor(domSelector, viewConfig) {
@@ -21253,7 +21304,7 @@ query GetEurekaVizSnapshots(
21253
21304
  if (preventLiveboardFilterRemoval) {
21254
21305
  params[Param.preventLiveboardFilterRemoval] = true;
21255
21306
  }
21256
- if (!isUndefined$1(updatedSpotterChatPrompt)) {
21307
+ if (!isUndefined(updatedSpotterChatPrompt)) {
21257
21308
  params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
21258
21309
  }
21259
21310
  if (visibleVizs) {
@@ -21338,8 +21389,9 @@ query GetEurekaVizSnapshots(
21338
21389
  return params;
21339
21390
  }
21340
21391
  getIframeSuffixSrc(liveboardId, vizId, activeTabId, personalizedViewId) {
21341
- // Extract view from liveboardId if passed along with it (legacy approach)
21342
- // View must be appended as query param at the end, not embedded in path
21392
+ // Extract view from liveboardId if passed along with it (legacy
21393
+ // approach) View must be appended as query param at the end, not
21394
+ // embedded in path
21343
21395
  let liveboardGuid = liveboardId;
21344
21396
  let legacyViewId;
21345
21397
  if (liveboardId === null || liveboardId === void 0 ? void 0 : liveboardId.includes('?')) {
@@ -21348,7 +21400,8 @@ query GetEurekaVizSnapshots(
21348
21400
  const params = new URLSearchParams(query);
21349
21401
  legacyViewId = params.get('view') || undefined;
21350
21402
  }
21351
- // personalizedViewId takes precedence over legacyViewId (when passed as part of liveboardId)
21403
+ // personalizedViewId takes precedence over legacyViewId (when passed
21404
+ // as part of liveboardId)
21352
21405
  const effectiveViewId = personalizedViewId || legacyViewId;
21353
21406
  let suffix = `/embed/viz/${liveboardGuid}`;
21354
21407
  if (activeTabId) {
@@ -21432,7 +21485,7 @@ query GetEurekaVizSnapshots(
21432
21485
  });
21433
21486
  }
21434
21487
  async handleRenderForPrerender() {
21435
- if (isUndefined$1(this.viewConfig.liveboardId)) {
21488
+ if (isUndefined(this.viewConfig.liveboardId)) {
21436
21489
  return this.prerenderGeneric();
21437
21490
  }
21438
21491
  return super.handleRenderForPrerender();
@@ -21955,6 +22008,8 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
21955
22008
  /**
21956
22009
  * Create a conversation embed, which can be integrated inside
21957
22010
  * chatbots or other conversational interfaces.
22011
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
22012
+ * @group Embed components
21958
22013
  * @example
21959
22014
  * ```js
21960
22015
  * import { SpotterAgentEmbed } from '@thoughtspot/visual-embed-sdk';
@@ -21968,8 +22023,6 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
21968
22023
  * // append the container to the DOM
21969
22024
  * document.body.appendChild(container); // or to any other element
21970
22025
  * ```
21971
- * @group Embed components
21972
- * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
21973
22026
  */
21974
22027
  class SpotterAgentEmbed {
21975
22028
  constructor(viewConfig) {
@@ -22041,31 +22094,9 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22041
22094
  });
22042
22095
  }
22043
22096
 
22044
- /**
22045
- * Checks if `value` is `undefined`.
22046
- *
22047
- * @static
22048
- * @since 0.1.0
22049
- * @memberOf _
22050
- * @category Lang
22051
- * @param {*} value The value to check.
22052
- * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
22053
- * @example
22054
- *
22055
- * _.isUndefined(void 0);
22056
- * // => true
22057
- *
22058
- * _.isUndefined(null);
22059
- * // => false
22060
- */
22061
- function isUndefined(value) {
22062
- return value === undefined;
22063
- }
22064
-
22065
- var isUndefined_1 = isUndefined;
22066
-
22067
22097
  /**
22068
22098
  * Embed ThoughtSpot AI Conversation.
22099
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
22069
22100
  * @group Embed components
22070
22101
  * @example
22071
22102
  * ```js
@@ -22077,7 +22108,6 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22077
22108
  * });
22078
22109
  * conversation.render();
22079
22110
  * ```
22080
- * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
22081
22111
  */
22082
22112
  let SpotterEmbed$1 = class SpotterEmbed extends TsEmbed {
22083
22113
  constructor(container, viewConfig) {
@@ -22093,7 +22123,11 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22093
22123
  getEmbedParamsObject() {
22094
22124
  const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, updatedSpotterChatPrompt, spotterSidebarConfig, spotterChatConfig, } = this.viewConfig;
22095
22125
  // Extract sidebar config properties
22096
- const { enablePastConversationsSidebar, spotterSidebarTitle, spotterSidebarDefaultExpanded, spotterChatRenameLabel, spotterChatDeleteLabel, spotterDeleteConversationModalTitle, spotterPastConversationAlertMessage, spotterDocumentationUrl, spotterBestPracticesLabel, spotterConversationsBatchSize, spotterNewChatButtonTitle, } = spotterSidebarConfig || {};
22126
+ const { enablePastConversationsSidebar: sidebarEnablePastConversationsSidebar, spotterSidebarTitle, spotterSidebarDefaultExpanded, spotterChatRenameLabel, spotterChatDeleteLabel, spotterDeleteConversationModalTitle, spotterPastConversationAlertMessage, spotterDocumentationUrl, spotterBestPracticesLabel, spotterConversationsBatchSize, spotterNewChatButtonTitle, } = spotterSidebarConfig || {};
22127
+ const resolvedEnablePastConversationsSidebar = resolveEnablePastConversationsSidebar({
22128
+ spotterSidebarConfigValue: sidebarEnablePastConversationsSidebar,
22129
+ standaloneValue: this.viewConfig.enablePastConversationsSidebar,
22130
+ });
22097
22131
  if (!worksheetId) {
22098
22132
  this.handleError({
22099
22133
  errorType: ErrorDetailsTypes.VALIDATION_ERROR,
@@ -22111,6 +22145,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22111
22145
  setParamIfDefined(queryParams, Param.ShowSpotterLimitations, showSpotterLimitations, true);
22112
22146
  setParamIfDefined(queryParams, Param.HideSampleQuestions, hideSampleQuestions, true);
22113
22147
  setParamIfDefined(queryParams, Param.UpdatedSpotterChatPrompt, updatedSpotterChatPrompt, true);
22148
+ setParamIfDefined(queryParams, Param.EnablePastConversationsSidebar, resolvedEnablePastConversationsSidebar, true);
22114
22149
  setParamIfDefined(queryParams, Param.SpotterSidebarDefaultExpanded, spotterSidebarDefaultExpanded, true);
22115
22150
  // String params
22116
22151
  setParamIfDefined(queryParams, Param.SpotterSidebarTitle, spotterSidebarTitle);
@@ -22145,13 +22180,9 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22145
22180
  return queryParams;
22146
22181
  }
22147
22182
  getIframeSrc() {
22148
- const { worksheetId, searchOptions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, spotterSidebarConfig, } = this.viewConfig;
22183
+ const { worksheetId, searchOptions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, } = this.viewConfig;
22149
22184
  const path = 'insights/conv-assist';
22150
22185
  const queryParams = this.getEmbedParamsObject();
22151
- const enablePastConversationsSidebar = spotterSidebarConfig === null || spotterSidebarConfig === void 0 ? void 0 : spotterSidebarConfig.enablePastConversationsSidebar;
22152
- if (!isUndefined_1(enablePastConversationsSidebar)) {
22153
- queryParams[Param.EnablePastConversationsSidebar] = !!enablePastConversationsSidebar;
22154
- }
22155
22186
  let query = '';
22156
22187
  const queryParamsString = getQueryParamString(queryParams, true);
22157
22188
  if (queryParamsString) {
@@ -22180,8 +22211,9 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22180
22211
  };
22181
22212
  /**
22182
22213
  * Embed ThoughtSpot AI Conversation.
22183
- * @deprecated from SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
22184
22214
  * Use {@link SpotterEmbed} instead
22215
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
22216
+ * @deprecated from SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
22185
22217
  * @group Embed components
22186
22218
  * @example
22187
22219
  * ```js
@@ -22193,7 +22225,6 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22193
22225
  * });
22194
22226
  * conversation.render();
22195
22227
  * ```
22196
- * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
22197
22228
  */
22198
22229
  let ConversationEmbed$1 = class ConversationEmbed extends SpotterEmbed$1 {
22199
22230
  constructor(container, viewConfig) {
@@ -22258,7 +22289,6 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22258
22289
  });
22259
22290
  handleRendering(tsEmbed);
22260
22291
  if (forwardedRef) {
22261
- // eslint-disable-next-line no-param-reassign
22262
22292
  forwardedRef.current = tsEmbed;
22263
22293
  }
22264
22294
  return () => {
@@ -22286,7 +22316,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22286
22316
  * React component for Full app Embed.
22287
22317
  * @example
22288
22318
  * ```tsx
22289
- * function Search() {
22319
+ * function App() {
22290
22320
  * return <AppEmbed
22291
22321
  * showPrimaryNavbar={false}
22292
22322
  * pageId={Page.Liveboards}
@@ -22297,9 +22327,9 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22297
22327
  */
22298
22328
  const AppEmbed = componentFactory(AppEmbed$1);
22299
22329
  /**
22300
- * React component for PreRendered Liveboard embed.
22330
+ * React component for PreRendered App embed.
22301
22331
  *
22302
- * PreRenderedAppEmbed will preRender the SearchBarEmbed and will be hidden by
22332
+ * PreRenderedAppEmbed will preRender the AppEmbed and will be hidden by
22303
22333
  * default.
22304
22334
  *
22305
22335
  * AppEmbed with preRenderId passed will call showPreRender on the embed.
@@ -22339,7 +22369,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22339
22369
  * LiveboardEmbed with preRenderId passed will call showPreRender on the embed.
22340
22370
  *
22341
22371
  * If LiveboardEmbed is rendered before PreRenderedLiveboardEmbed is rendered it
22342
- * tries to preRender the LiveboardEmbed, so it is recommended to use pass the
22372
+ * tries to preRender the LiveboardEmbed, so it is recommended to pass the
22343
22373
  * liveboardId to both the components.
22344
22374
  * @example
22345
22375
  * ```tsx
@@ -22368,7 +22398,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22368
22398
  */
22369
22399
  const SearchBarEmbed = componentFactory(SearchBarEmbed$1);
22370
22400
  /**
22371
- * React component for PreRendered Liveboard embed.
22401
+ * React component for PreRendered SearchBar embed.
22372
22402
  *
22373
22403
  * PreRenderedSearchBarEmbed will preRender the SearchBarEmbed and will be hidden by
22374
22404
  * default.
@@ -22400,9 +22430,9 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22400
22430
  */
22401
22431
  const SageEmbed = componentFactory(SageEmbed$1);
22402
22432
  /**
22403
- * React component for PreRendered Liveboard embed.
22433
+ * React component for PreRendered Sage embed.
22404
22434
  *
22405
- * PreRenderedSageEmbed will preRender the SearchBarEmbed and will be hidden by
22435
+ * PreRenderedSageEmbed will preRender the SageEmbed and will be hidden by
22406
22436
  * default.
22407
22437
  *
22408
22438
  * SageEmbed with preRenderId passed will call showPreRender on the embed.
@@ -22436,8 +22466,8 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22436
22466
  const SpotterEmbed = componentFactory(SpotterEmbed$1);
22437
22467
  /**
22438
22468
  * React component for LLM based conversation BI.
22439
- * @deprecated from SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
22440
22469
  * Use {@link SpotterEmbed} instead
22470
+ * @deprecated from SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
22441
22471
  * @example
22442
22472
  * ```tsx
22443
22473
  * function Sage() {
@@ -22459,6 +22489,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22459
22489
  * This component renders a single message response from your ThoughtSpot conversation,
22460
22490
  * showing charts, visualizations, or text responses based on the user's query.
22461
22491
  *
22492
+ * @version SDK: 1.39.0 | ThoughtSpot: 10.11.0.cl
22462
22493
  * @example
22463
22494
  * ```tsx
22464
22495
  * const { sendMessage } = useSpotterAgent({ worksheetId: 'worksheetId' });
@@ -22475,7 +22506,6 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22475
22506
  * />
22476
22507
  * }
22477
22508
  * ```
22478
- * @version SDK: 1.39.0 | ThoughtSpot: 10.11.0.cl
22479
22509
  */
22480
22510
  const SpotterMessage = React.forwardRef((props, ref) => {
22481
22511
  const { message, query: _, ...otherProps } = props;
@@ -22487,7 +22517,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22487
22517
  * PreRenderedConversationEmbed will preRender the SpotterEmbed and will be hidden by
22488
22518
  * default.
22489
22519
  *
22490
- * SageEmbed with preRenderId passed will call showPreRender on the embed.
22520
+ * SpotterEmbed with preRenderId passed will call showPreRender on the embed.
22491
22521
  * @example
22492
22522
  * ```tsx
22493
22523
  * function LandingPageComponent() {
@@ -22521,6 +22551,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22521
22551
  }
22522
22552
  /**
22523
22553
  *
22554
+ * @version SDK: 1.36.2 | ThoughtSpot: *
22524
22555
  * @param config - EmbedConfig
22525
22556
  * @returns AuthEventEmitter
22526
22557
  * @example
@@ -22530,7 +22561,6 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22530
22561
  * return <LiveboardEmbed ref={ref} liveboardId={<id>} />
22531
22562
  * }
22532
22563
  * ```
22533
- * @version SDK: 1.36.2 | ThoughtSpot: *
22534
22564
  */
22535
22565
  function useInit(config) {
22536
22566
  const ref = React.useRef(null);
@@ -22546,6 +22576,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22546
22576
  * This hook provides a sendMessage function that allows you to send natural language
22547
22577
  * queries to your data and get back AI-generated responses with visualizations.
22548
22578
  *
22579
+ * @version SDK: 1.39.0 | ThoughtSpot: 10.11.0.cl
22549
22580
  * @param config - Configuration object containing worksheetId and other options
22550
22581
  * @returns Object with sendMessage function that returns conversation results
22551
22582
  * @example
@@ -22563,7 +22594,6 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22563
22594
  * }
22564
22595
  * };
22565
22596
  * ```
22566
- * @version SDK: 1.39.0 | ThoughtSpot: 10.11.0.cl
22567
22597
  */
22568
22598
  function useSpotterAgent(config) {
22569
22599
  const serviceRef = React.useRef(null);