@thoughtspot/visual-embed-sdk 1.46.0 → 1.46.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/README.md +1 -1
  2. package/cjs/package.json +2 -2
  3. package/cjs/src/auth.d.ts +29 -4
  4. package/cjs/src/auth.d.ts.map +1 -1
  5. package/cjs/src/auth.js +30 -5
  6. package/cjs/src/auth.js.map +1 -1
  7. package/cjs/src/css-variables.d.ts +17 -17
  8. package/cjs/src/embed/app.d.ts +61 -33
  9. package/cjs/src/embed/app.d.ts.map +1 -1
  10. package/cjs/src/embed/app.js +11 -4
  11. package/cjs/src/embed/app.js.map +1 -1
  12. package/cjs/src/embed/app.spec.js +34 -1
  13. package/cjs/src/embed/app.spec.js.map +1 -1
  14. package/cjs/src/embed/base.d.ts +2 -2
  15. package/cjs/src/embed/base.js +2 -2
  16. package/cjs/src/embed/bodyless-conversation.d.ts +5 -5
  17. package/cjs/src/embed/bodyless-conversation.js +4 -4
  18. package/cjs/src/embed/conversation.d.ts +43 -30
  19. package/cjs/src/embed/conversation.d.ts.map +1 -1
  20. package/cjs/src/embed/conversation.js +10 -11
  21. package/cjs/src/embed/conversation.js.map +1 -1
  22. package/cjs/src/embed/conversation.spec.js +27 -0
  23. package/cjs/src/embed/conversation.spec.js.map +1 -1
  24. package/cjs/src/embed/liveboard.d.ts +42 -36
  25. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  26. package/cjs/src/embed/liveboard.js +3 -3
  27. package/cjs/src/embed/liveboard.js.map +1 -1
  28. package/cjs/src/embed/liveboard.spec.js +1 -1
  29. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  30. package/cjs/src/embed/sage.d.ts +5 -5
  31. package/cjs/src/embed/sage.js +1 -1
  32. package/cjs/src/embed/search-bar.d.ts +7 -7
  33. package/cjs/src/embed/search-bar.js +1 -1
  34. package/cjs/src/embed/search.d.ts +16 -14
  35. package/cjs/src/embed/search.d.ts.map +1 -1
  36. package/cjs/src/embed/search.js +3 -2
  37. package/cjs/src/embed/search.js.map +1 -1
  38. package/cjs/src/embed/ts-embed.d.ts +4 -4
  39. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  40. package/cjs/src/embed/ts-embed.js +13 -7
  41. package/cjs/src/embed/ts-embed.js.map +1 -1
  42. package/cjs/src/embed/ts-embed.spec.js +35 -0
  43. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  44. package/cjs/src/react/index.d.ts +15 -15
  45. package/cjs/src/react/index.js +12 -12
  46. package/cjs/src/tokenizedFetch.d.ts +1 -1
  47. package/cjs/src/tokenizedFetch.js +1 -1
  48. package/cjs/src/types.d.ts +653 -276
  49. package/cjs/src/types.d.ts.map +1 -1
  50. package/cjs/src/types.js +274 -208
  51. package/cjs/src/types.js.map +1 -1
  52. package/cjs/src/utils/graphql/answerService/answerService.d.ts +4 -2
  53. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  54. package/cjs/src/utils/graphql/answerService/answerService.js +6 -4
  55. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  56. package/cjs/src/utils/graphql/answerService/answerService.spec.js +55 -0
  57. package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  58. package/cjs/src/utils.d.ts +9 -0
  59. package/cjs/src/utils.d.ts.map +1 -1
  60. package/cjs/src/utils.js +10 -1
  61. package/cjs/src/utils.js.map +1 -1
  62. package/dist/{index-BQvLEoxp.js → index-DkizS4xM.js} +1 -1
  63. package/dist/src/auth.d.ts +29 -4
  64. package/dist/src/auth.d.ts.map +1 -1
  65. package/dist/src/css-variables.d.ts +17 -17
  66. package/dist/src/embed/app.d.ts +61 -33
  67. package/dist/src/embed/app.d.ts.map +1 -1
  68. package/dist/src/embed/base.d.ts +2 -2
  69. package/dist/src/embed/bodyless-conversation.d.ts +5 -5
  70. package/dist/src/embed/conversation.d.ts +43 -30
  71. package/dist/src/embed/conversation.d.ts.map +1 -1
  72. package/dist/src/embed/liveboard.d.ts +42 -36
  73. package/dist/src/embed/liveboard.d.ts.map +1 -1
  74. package/dist/src/embed/sage.d.ts +5 -5
  75. package/dist/src/embed/search-bar.d.ts +7 -7
  76. package/dist/src/embed/search.d.ts +16 -14
  77. package/dist/src/embed/search.d.ts.map +1 -1
  78. package/dist/src/embed/ts-embed.d.ts +4 -4
  79. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  80. package/dist/src/react/index.d.ts +15 -15
  81. package/dist/src/tokenizedFetch.d.ts +1 -1
  82. package/dist/src/types.d.ts +653 -276
  83. package/dist/src/types.d.ts.map +1 -1
  84. package/dist/src/utils/graphql/answerService/answerService.d.ts +4 -2
  85. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  86. package/dist/src/utils.d.ts +9 -0
  87. package/dist/src/utils.d.ts.map +1 -1
  88. package/dist/tsembed-react.es.js +383 -290
  89. package/dist/tsembed-react.js +382 -289
  90. package/dist/tsembed.es.js +375 -282
  91. package/dist/tsembed.js +374 -281
  92. package/dist/visual-embed-sdk-react-full.d.ts +880 -431
  93. package/dist/visual-embed-sdk-react.d.ts +873 -427
  94. package/dist/visual-embed-sdk.d.ts +879 -430
  95. package/lib/package.json +2 -2
  96. package/lib/src/auth.d.ts +29 -4
  97. package/lib/src/auth.d.ts.map +1 -1
  98. package/lib/src/auth.js +30 -5
  99. package/lib/src/auth.js.map +1 -1
  100. package/lib/src/css-variables.d.ts +17 -17
  101. package/lib/src/embed/app.d.ts +61 -33
  102. package/lib/src/embed/app.d.ts.map +1 -1
  103. package/lib/src/embed/app.js +12 -5
  104. package/lib/src/embed/app.js.map +1 -1
  105. package/lib/src/embed/app.spec.js +34 -1
  106. package/lib/src/embed/app.spec.js.map +1 -1
  107. package/lib/src/embed/base.d.ts +2 -2
  108. package/lib/src/embed/base.js +2 -2
  109. package/lib/src/embed/bodyless-conversation.d.ts +5 -5
  110. package/lib/src/embed/bodyless-conversation.js +4 -4
  111. package/lib/src/embed/conversation.d.ts +43 -30
  112. package/lib/src/embed/conversation.d.ts.map +1 -1
  113. package/lib/src/embed/conversation.js +11 -11
  114. package/lib/src/embed/conversation.js.map +1 -1
  115. package/lib/src/embed/conversation.spec.js +27 -0
  116. package/lib/src/embed/conversation.spec.js.map +1 -1
  117. package/lib/src/embed/liveboard.d.ts +42 -36
  118. package/lib/src/embed/liveboard.d.ts.map +1 -1
  119. package/lib/src/embed/liveboard.js +3 -3
  120. package/lib/src/embed/liveboard.js.map +1 -1
  121. package/lib/src/embed/liveboard.spec.js +1 -1
  122. package/lib/src/embed/liveboard.spec.js.map +1 -1
  123. package/lib/src/embed/sage.d.ts +5 -5
  124. package/lib/src/embed/sage.js +1 -1
  125. package/lib/src/embed/search-bar.d.ts +7 -7
  126. package/lib/src/embed/search-bar.js +1 -1
  127. package/lib/src/embed/search.d.ts +16 -14
  128. package/lib/src/embed/search.d.ts.map +1 -1
  129. package/lib/src/embed/search.js +3 -2
  130. package/lib/src/embed/search.js.map +1 -1
  131. package/lib/src/embed/ts-embed.d.ts +4 -4
  132. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  133. package/lib/src/embed/ts-embed.js +13 -7
  134. package/lib/src/embed/ts-embed.js.map +1 -1
  135. package/lib/src/embed/ts-embed.spec.js +35 -0
  136. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  137. package/lib/src/react/index.d.ts +15 -15
  138. package/lib/src/react/index.js +12 -12
  139. package/lib/src/tokenizedFetch.d.ts +1 -1
  140. package/lib/src/tokenizedFetch.js +1 -1
  141. package/lib/src/types.d.ts +653 -276
  142. package/lib/src/types.d.ts.map +1 -1
  143. package/lib/src/types.js +274 -208
  144. package/lib/src/types.js.map +1 -1
  145. package/lib/src/utils/graphql/answerService/answerService.d.ts +4 -2
  146. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  147. package/lib/src/utils/graphql/answerService/answerService.js +5 -3
  148. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  149. package/lib/src/utils/graphql/answerService/answerService.spec.js +55 -0
  150. package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  151. package/lib/src/utils.d.ts +9 -0
  152. package/lib/src/utils.d.ts.map +1 -1
  153. package/lib/src/utils.js +8 -0
  154. package/lib/src/utils.js.map +1 -1
  155. package/package.json +2 -2
  156. package/src/auth.ts +30 -5
  157. package/src/css-variables.ts +17 -17
  158. package/src/embed/app.spec.ts +46 -1
  159. package/src/embed/app.ts +73 -36
  160. package/src/embed/base.ts +2 -2
  161. package/src/embed/bodyless-conversation.ts +5 -5
  162. package/src/embed/conversation.spec.ts +37 -0
  163. package/src/embed/conversation.ts +55 -38
  164. package/src/embed/liveboard.spec.ts +1 -1
  165. package/src/embed/liveboard.ts +42 -36
  166. package/src/embed/sage.ts +5 -5
  167. package/src/embed/search-bar.tsx +7 -7
  168. package/src/embed/search.ts +16 -14
  169. package/src/embed/ts-embed.spec.ts +42 -0
  170. package/src/embed/ts-embed.ts +12 -7
  171. package/src/react/index.tsx +15 -15
  172. package/src/tokenizedFetch.ts +1 -1
  173. package/src/types.ts +652 -275
  174. package/src/utils/graphql/answerService/answerService.spec.ts +62 -0
  175. package/src/utils/graphql/answerService/answerService.ts +6 -3
  176. package/src/utils.ts +14 -0
package/dist/tsembed.js CHANGED
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.46.0 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.46.2 */
2
2
  'use client';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -29,7 +29,7 @@
29
29
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
30
30
  */
31
31
  /**
32
- * The authentication mechanism for allowing access to the
32
+ * The authentication mechanism for allowing access to
33
33
  * the embedded app
34
34
  * @group Authentication / Init
35
35
  */
@@ -55,6 +55,7 @@
55
55
  * To use this:
56
56
  * Your SAML or OpenID provider must allow iframe redirects.
57
57
  * For example, if you are using Okta as IdP, you can enable iframe embedding.
58
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.8.0.cl
58
59
  * @example
59
60
  * ```js
60
61
  * init({
@@ -62,18 +63,17 @@
62
63
  * authType: AuthType.EmbeddedSSO,
63
64
  * });
64
65
  * ```
65
- * @version: SDK: 1.15.0 | ThoughtSpot: 8.8.0.cl
66
66
  */
67
67
  AuthType["EmbeddedSSO"] = "EmbeddedSSO";
68
68
  /**
69
- * SSO using SAML
70
- * @deprecated Use {@link SAMLRedirect} instead
69
+ * SSO using SAML, Use {@link SAMLRedirect} instead
70
+ * @deprecated This option is deprecated.
71
71
  * @hidden
72
72
  */
73
73
  AuthType["SSO"] = "SSO_SAML";
74
74
  /**
75
- * SSO using SAML
76
- * @deprecated Use {@link SAMLRedirect} instead
75
+ * SSO using SAML, Use {@link SAMLRedirect} instead
76
+ * @deprecated This option is deprecated.
77
77
  * @hidden
78
78
  */
79
79
  AuthType["SAML"] = "SSO_SAML";
@@ -124,8 +124,9 @@
124
124
  AuthType["SAMLRedirect"] = "SSO_SAML";
125
125
  /**
126
126
  * SSO using OIDC
127
+ * SSO using OIDC, Use {@link OIDCRedirect} instead
128
+ * @deprecated This option is deprecated.
127
129
  * @hidden
128
- * @deprecated Use {@link OIDCRedirect} instead
129
130
  */
130
131
  AuthType["OIDC"] = "SSO_OIDC";
131
132
  /**
@@ -136,8 +137,9 @@
136
137
  AuthType["OIDCRedirect"] = "SSO_OIDC";
137
138
  /**
138
139
  * Trusted authentication server
140
+ * Use {@link TrustedAuth} instead
141
+ * @deprecated This option is deprecated.
139
142
  * @hidden
140
- * @deprecated Use {@link TrustedAuth} instead
141
143
  */
142
144
  AuthType["AuthServer"] = "AuthServer";
143
145
  /**
@@ -164,6 +166,7 @@
164
166
  * obtained from ThoughtSpot. This uses a cookieless authentication
165
167
  * approach, recommended to bypass the third-party cookie-blocking restriction
166
168
  * implemented by some browsers.
169
+ * @version SDK: 1.22.0 | ThoughtSpot: 9.3.0.cl, 9.5.1.sw
167
170
  * @example
168
171
  * ```js
169
172
  * init({
@@ -174,8 +177,8 @@
174
177
  * .then((response) => response.json())
175
178
  * .then((data) => data.token);
176
179
  * }
180
+ * });
177
181
  * ```
178
- * @version SDK: 1.22.0| ThoughtSpot: 9.3.0.cl, 9.5.1.sw
179
182
  */
180
183
  AuthType["TrustedAuthTokenCookieless"] = "AuthServerCookieless";
181
184
  /**
@@ -196,43 +199,43 @@
196
199
  /**
197
200
  * The *Search data* option in
198
201
  * the *Insights* left navigation panel.
199
- * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
202
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
200
203
  */
201
204
  HomeLeftNavItem["SearchData"] = "search-data";
202
205
  /**
203
206
  * The *Home* menu option in
204
207
  * the *Insights* left navigation panel.
205
- * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
208
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
206
209
  */
207
210
  HomeLeftNavItem["Home"] = "insights-home";
208
211
  /**
209
212
  * The *Liveboards* menu option in
210
213
  * the *Insights* left navigation panel.
211
- * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
214
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
212
215
  */
213
216
  HomeLeftNavItem["Liveboards"] = "liveboards";
214
217
  /**
215
218
  * The *Answers* menu option in
216
219
  * the *Insights* left navigation panel.
217
- * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
220
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
218
221
  */
219
222
  HomeLeftNavItem["Answers"] = "answers";
220
223
  /**
221
224
  * The *Monitor subscriptions* menu option in
222
225
  * the *Insights* left navigation panel.
223
- * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
226
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
224
227
  */
225
228
  HomeLeftNavItem["MonitorSubscription"] = "monitor-alerts";
226
229
  /**
227
230
  * The *SpotIQ analysis* menu option in
228
231
  * the *Insights* left navigation panel.
229
- * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
232
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
230
233
  */
231
234
  HomeLeftNavItem["SpotIQAnalysis"] = "spotiq-analysis";
232
235
  /**
233
236
  * The *Liveboard schedules* menu option in
234
237
  * the *Insights* left navigation panel.
235
- * @version SDK: 1.34.0| ThoughtSpot: 10.3.0.cl
238
+ * @version SDK: 1.34.0 | ThoughtSpot: 10.3.0.cl
236
239
  */
237
240
  HomeLeftNavItem["LiveboardSchedules"] = "liveboard-schedules";
238
241
  /**
@@ -338,7 +341,7 @@
338
341
  */
339
342
  HomepageModule["Search"] = "SEARCH";
340
343
  /**
341
- * kPI watchlist module
344
+ * KPI watchlist module
342
345
  */
343
346
  HomepageModule["Watchlist"] = "WATCHLIST";
344
347
  /**
@@ -370,7 +373,8 @@
370
373
  */
371
374
  ListPageColumns["Favorites"] = "FAVOURITE";
372
375
  /**
373
- * @deprecated Use {@link ListPageColumns.Favorites} instead.
376
+ * Favourite Use {@link ListPageColumns.Favorites} instead.
377
+ * @deprecated This option is deprecated.
374
378
  */
375
379
  ListPageColumns["Favourite"] = "FAVOURITE";
376
380
  /**
@@ -438,13 +442,13 @@
438
442
  /**
439
443
  * Rendering has initialized.
440
444
  * @example
441
- *```js
445
+ * ```js
442
446
  * liveboardEmbed.on(EmbedEvent.Init, showLoader)
443
447
  * //show a loader
444
448
  * function showLoader() {
445
449
  * document.getElementById("loader");
446
450
  * }
447
- *```
451
+ * ```
448
452
  * @returns timestamp - The timestamp when the event was generated.
449
453
  */
450
454
  EmbedEvent["Init"] = "init";
@@ -452,11 +456,11 @@
452
456
  * Authentication has either succeeded or failed.
453
457
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
454
458
  * @example
455
- *```js
459
+ * ```js
456
460
  * appEmbed.on(EmbedEvent.AuthInit, payload => {
457
461
  * console.log('AuthInit', payload);
458
462
  * })
459
- *```
463
+ * ```
460
464
  * @returns isLoggedIn - A Boolean specifying whether authentication was successful.
461
465
  */
462
466
  EmbedEvent["AuthInit"] = "authInit";
@@ -465,13 +469,13 @@
465
469
  * @returns timestamp - The timestamp when the event was generated.
466
470
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
467
471
  * @example
468
- *```js
472
+ * ```js
469
473
  * liveboardEmbed.on(EmbedEvent.Load, hideLoader)
470
474
  * //hide loader
471
475
  * function hideLoader() {
472
476
  * document.getElementById("loader");
473
477
  * }
474
- *```
478
+ * ```
475
479
  */
476
480
  EmbedEvent["Load"] = "load";
477
481
  /**
@@ -480,11 +484,11 @@
480
484
  * @return data - Answer of Liveboard data
481
485
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
482
486
  * @example
483
- *```js
487
+ * ```js
484
488
  * liveboardEmbed.on(EmbedEvent.Data, payload => {
485
489
  * console.log('data', payload);
486
490
  * })
487
- *```
491
+ * ```
488
492
  * @important
489
493
  */
490
494
  EmbedEvent["Data"] = "data";
@@ -492,9 +496,9 @@
492
496
  * Search query has been updated by the user.
493
497
  * @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
494
498
  * @example
495
- *```js
499
+ * ```js
496
500
  * searchEmbed.on(EmbedEvent.QueryChanged, payload => console.log('data', payload))
497
- *```
501
+ * ```
498
502
  */
499
503
  EmbedEvent["QueryChanged"] = "queryChanged";
500
504
  /**
@@ -504,7 +508,7 @@
504
508
  * @returns drillDownColumns - The columns on which drill down was performed
505
509
  * @returns nonFilteredColumns - The columns that were not filtered
506
510
  * @example
507
- *```js
511
+ * ```js
508
512
  * searchEmbed.on(EmbedEvent.DrillDown, {
509
513
  * points: {
510
514
  * clickedPoint,
@@ -512,12 +516,12 @@
512
516
  * },
513
517
  * autoDrillDown: true,
514
518
  * })
515
- *```
519
+ * ```
516
520
  * In this example, `VizPointDoubleClick` event is used for
517
521
  * triggering the `DrillDown` event when an area or specific
518
522
  * data point on a table or chart is double-clicked.
519
523
  * @example
520
- *```js
524
+ * ```js
521
525
  * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
522
526
  * console.log(payload);
523
527
  * const clickedPoint = payload.data.clickedPoint;
@@ -531,7 +535,7 @@
531
535
  * autoDrillDown: true,
532
536
  * })
533
537
  * })
534
- *```
538
+ * ```
535
539
  */
536
540
  EmbedEvent["Drilldown"] = "drillDown";
537
541
  /**
@@ -656,13 +660,13 @@
656
660
  * The ThoughtSpot authentication session has expired.
657
661
  * @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
658
662
  * @example
659
- *```js
663
+ * ```js
660
664
  * appEmbed.on(EmbedEvent.AuthExpire, showAuthExpired)
661
665
  * //show auth expired banner
662
666
  * function showAuthExpired() {
663
667
  * document.getElementById("authExpiredBanner");
664
668
  * }
665
- *```
669
+ * ```
666
670
  */
667
671
  EmbedEvent["AuthExpire"] = "ThoughtspotAuthExpired";
668
672
  /**
@@ -697,22 +701,22 @@
697
701
  * Applicable to `SearchBarEmbed` only.
698
702
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
699
703
  * @example
700
- *```js
704
+ * ```js
701
705
  * searchbarEmbed.on(EmbedEvent.GetDataClick)
702
706
  * .then(data => {
703
707
  * console.log('Answer Data:', data);
704
708
  * })
705
- *```
709
+ * ```
706
710
  */
707
711
  EmbedEvent["GetDataClick"] = "getDataClick";
708
712
  /**
709
713
  * Detects the route change.
710
714
  * @version SDK: 1.7.0 | ThoughtSpot: 8.0.0.cl, 8.4.1.sw
711
715
  * @example
712
- *```js
716
+ * ```js
713
717
  * searchEmbed.on(EmbedEvent.RouteChange, payload =>
714
718
  * console.log('data', payload))
715
- *```
719
+ * ```
716
720
  */
717
721
  EmbedEvent["RouteChange"] = "ROUTE_CHANGE";
718
722
  /**
@@ -722,12 +726,12 @@
722
726
  EmbedEvent["V1Data"] = "exportVizDataToParent";
723
727
  /**
724
728
  * Emitted when the embed does not have cookie access. This happens
725
- * when Safari and other Web browsers block third-party cookies
726
- * are blocked by default. `NoCookieAccess` can trigger.
729
+ * when third-party cookies are blocked by Safari or other
730
+ * web browsers. `NoCookieAccess` can trigger.
727
731
  * @example
728
- *```js
732
+ * ```js
729
733
  * appEmbed.on(EmbedEvent.NoCookieAccess)
730
- *```
734
+ * ```
731
735
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1.sw
732
736
  */
733
737
  EmbedEvent["NoCookieAccess"] = "noCookieAccess";
@@ -741,22 +745,22 @@
741
745
  * Emitted when any modal is opened in the app
742
746
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
743
747
  * @example
744
- *```js
748
+ * ```js
745
749
  * appEmbed.on(EmbedEvent.DialogOpen, payload => {
746
750
  * console.log('dialog open', payload);
747
751
  * })
748
- *```
752
+ * ```
749
753
  */
750
754
  EmbedEvent["DialogOpen"] = "dialog-open";
751
755
  /**
752
756
  * Emitted when any modal is closed in the app
753
757
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
754
758
  * @example
755
- *```js
759
+ * ```js
756
760
  * appEmbed.on(EmbedEvent.DialogClose, payload => {
757
761
  * console.log('dialog close', payload);
758
762
  * })
759
- *```
763
+ * ```
760
764
  */
761
765
  EmbedEvent["DialogClose"] = "dialog-close";
762
766
  /**
@@ -765,39 +769,39 @@
765
769
  * other events on the rendered Liveboard.
766
770
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
767
771
  * @example
768
- *```js
772
+ * ```js
769
773
  * liveboardEmbed.on(EmbedEvent.LiveboardRendered, payload => {
770
774
  console.log('Liveboard is rendered', payload);
771
775
  })
772
- *```
776
+ * ```
773
777
  * The following example shows how to trigger
774
778
  * `SetVisibleVizs` event using LiveboardRendered embed event:
775
779
  * @example
776
- *```js
780
+ * ```js
777
781
  * const embedRef = useEmbedRef();
778
782
  * const onLiveboardRendered = () => {
779
783
  * embed.trigger(HostEvent.SetVisibleVizs, ['viz1', 'viz2']);
780
784
  * };
781
- *```
785
+ * ```
782
786
  */
783
787
  EmbedEvent["LiveboardRendered"] = "PinboardRendered";
784
788
  /**
785
789
  * Emits all events.
786
- * @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
790
+ * @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
787
791
  * @example
788
- *```js
792
+ * ```js
789
793
  * appEmbed.on(EmbedEvent.ALL, payload => {
790
794
  * console.log('Embed Events', payload)
791
795
  * })
792
- *```
796
+ * ```
793
797
  */
794
798
  EmbedEvent["ALL"] = "*";
795
799
  /**
796
800
  * Emitted when an Answer is saved in the app.
797
801
  * Use start:true to subscribe to when save is initiated, or end:true to subscribe to when save is completed. Default is end:true.
798
- * @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
802
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
799
803
  * @example
800
- *```js
804
+ * ```js
801
805
  * //Emit when action starts
802
806
  * searchEmbed.on(EmbedEvent.Save, payload => {
803
807
  * console.log('Save', payload)
@@ -808,7 +812,7 @@
808
812
  * searchEmbed.on(EmbedEvent.Save, payload => {
809
813
  * console.log('Save', payload)
810
814
  * })
811
- *```
815
+ * ```
812
816
  */
813
817
  EmbedEvent["Save"] = "save";
814
818
  /**
@@ -820,11 +824,11 @@
820
824
  * `EmbedEvent.DownloadAsCSV`, or `EmbedEvent.DownloadAsXLSX`
821
825
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
822
826
  * @example
823
- *```js
827
+ * ```js
824
828
  * liveboardEmbed.on(EmbedEvent.Download, {
825
829
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'
826
830
  * })
827
- *```
831
+ * ```
828
832
  */
829
833
  EmbedEvent["Download"] = "download";
830
834
  /**
@@ -832,14 +836,14 @@
832
836
  * Use start:true to subscribe to when download is initiated, or end:true to subscribe to when download is completed. Default is end:true.
833
837
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
834
838
  * @example
835
- *```js
839
+ * ```js
836
840
  * //emit when action starts
837
841
  * searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
838
842
  * console.log('download PNG', payload)}, {start: true })
839
843
  * //emit when action ends
840
844
  * searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
841
845
  * console.log('download PNG', payload)})
842
- *```
846
+ * ```
843
847
  */
844
848
  EmbedEvent["DownloadAsPng"] = "downloadAsPng";
845
849
  /**
@@ -847,14 +851,14 @@
847
851
  * 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.
848
852
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
849
853
  * @example
850
- *```js
854
+ * ```js
851
855
  * //emit when action starts
852
856
  * searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
853
857
  * console.log('download PDF', payload)}, {start: true })
854
858
  * //emit when action ends
855
859
  * searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
856
860
  * console.log('download PDF', payload)})
857
- *```
861
+ * ```
858
862
  */
859
863
  EmbedEvent["DownloadAsPdf"] = "downloadAsPdf";
860
864
  /**
@@ -862,14 +866,14 @@
862
866
  * 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.
863
867
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
864
868
  * @example
865
- *```js
869
+ * ```js
866
870
  * //emit when action starts
867
871
  * searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
868
872
  * console.log('download CSV', payload)}, {start: true })
869
873
  * //emit when action ends
870
874
  * searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
871
875
  * console.log('download CSV', payload)})
872
- *```
876
+ * ```
873
877
  */
874
878
  EmbedEvent["DownloadAsCsv"] = "downloadAsCsv";
875
879
  /**
@@ -877,14 +881,14 @@
877
881
  * 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.
878
882
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
879
883
  * @example
880
- *```js
884
+ * ```js
881
885
  * //emit when action starts
882
886
  * searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
883
887
  * console.log('download Xlsx', payload)}, { start: true })
884
888
  * //emit when action ends
885
889
  * searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
886
890
  * console.log('download Xlsx', payload)})
887
- *```
891
+ * ```
888
892
  */
889
893
  EmbedEvent["DownloadAsXlsx"] = "downloadAsXlsx";
890
894
  /**
@@ -892,25 +896,25 @@
892
896
  * Use start:true to subscribe to when delete is initiated, or end:true to subscribe to when delete is completed. Default is end:true.
893
897
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
894
898
  * @example
895
- *```js
899
+ * ```js
896
900
  * //emit when action starts
897
901
  * appEmbed.on(EmbedEvent.AnswerDelete, payload => {
898
902
  * console.log('delete answer', payload)}, {start: true })
899
903
  * //trigger when action is completed
900
904
  * appEmbed.on(EmbedEvent.AnswerDelete, payload => {
901
905
  * console.log('delete answer', payload)})
902
- *```
906
+ * ```
903
907
  */
904
908
  EmbedEvent["AnswerDelete"] = "answerDelete";
905
909
  /**
906
910
  * Emitted when the AI Highlights action is triggered on a Liveboard
907
911
  * @version SDK: 1.44.0 | ThoughtSpot: 10.15.0.cl
908
912
  * @example
909
- *```js
913
+ * ```js
910
914
  * liveboardEmbed.on(EmbedEvent.AIHighlights, (payload) => {
911
915
  * console.log('AI Highlights', payload);
912
916
  * })
913
- *```
917
+ * ```
914
918
  */
915
919
  EmbedEvent["AIHighlights"] = "AIHighlights";
916
920
  /**
@@ -919,7 +923,7 @@
919
923
  * Use start:true to subscribe to when pin is initiated, or end:true to subscribe to when pin is completed. Default is end:true.
920
924
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
921
925
  * @example
922
- *```js
926
+ * ```js
923
927
  * //emit when action starts
924
928
  * searchEmbed.on(EmbedEvent.Pin, payload => {
925
929
  * console.log('pin', payload)
@@ -930,14 +934,14 @@
930
934
  * searchEmbed.on(EmbedEvent.Pin, payload => {
931
935
  * console.log('pin', payload)
932
936
  * })
933
- *```
937
+ * ```
934
938
  */
935
939
  EmbedEvent["Pin"] = "pin";
936
940
  /**
937
941
  * Emitted when SpotIQ analysis is triggered
938
942
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
939
943
  * @example
940
- *```js
944
+ * ```js
941
945
  * //emit when action starts
942
946
  * searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
943
947
  * console.log('SpotIQAnalyze', payload)
@@ -948,14 +952,14 @@
948
952
  * searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
949
953
  * console.log('SpotIQ analyze', payload)
950
954
  * })
951
- *```
955
+ * ```
952
956
  */
953
957
  EmbedEvent["SpotIQAnalyze"] = "spotIQAnalyze";
954
958
  /**
955
959
  * Emitted when a user shares an object with another user or group
956
960
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
957
961
  * @example
958
- *```js
962
+ * ```js
959
963
  * //emit when action starts
960
964
  * searchEmbed.on(EmbedEvent.Share, payload => {
961
965
  * console.log('Share', payload)
@@ -966,7 +970,7 @@
966
970
  * searchEmbed.on(EmbedEvent.Share, payload => {
967
971
  * console.log('Share', payload)
968
972
  * })
969
- *```
973
+ * ```
970
974
  */
971
975
  EmbedEvent["Share"] = "share";
972
976
  /**
@@ -974,11 +978,11 @@
974
978
  * data on a chart or table.
975
979
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
976
980
  * @example
977
- *```js
981
+ * ```js
978
982
  * appEmbed.on(EmbedEvent.DrillInclude, payload => {
979
983
  * console.log('Drill include', payload);
980
984
  * })
981
- *```
985
+ * ```
982
986
  */
983
987
  EmbedEvent["DrillInclude"] = "context-menu-item-include";
984
988
  /**
@@ -986,22 +990,22 @@
986
990
  * data on a chart or table
987
991
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
988
992
  * @example
989
- *```js
993
+ * ```js
990
994
  * appEmbed.on(EmbedEvent.DrillExclude, payload => {
991
995
  * console.log('Drill exclude', payload);
992
996
  * })
993
- *```
997
+ * ```
994
998
  */
995
999
  EmbedEvent["DrillExclude"] = "context-menu-item-exclude";
996
1000
  /**
997
1001
  * Emitted when a column value is copied in the embedded app.
998
1002
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
999
1003
  * @example
1000
- *```js
1001
- * seachEmbed.on(EmbedEvent.CopyToClipboard, payload => {
1004
+ * ```js
1005
+ * searchEmbed.on(EmbedEvent.CopyToClipboard, payload => {
1002
1006
  * console.log('copy to clipboard', payload);
1003
1007
  * })
1004
- *```
1008
+ * ```
1005
1009
  */
1006
1010
  EmbedEvent["CopyToClipboard"] = "context-menu-item-copy-to-clipboard";
1007
1011
  /**
@@ -1009,10 +1013,10 @@
1009
1013
  * embedded Liveboard.
1010
1014
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1011
1015
  * @example
1012
- *```js
1016
+ * ```js
1013
1017
  * liveboardEmbed.on(EmbedEvent.UpdateTML)
1014
1018
  * })
1015
- *```
1019
+ * ```
1016
1020
  */
1017
1021
  EmbedEvent["UpdateTML"] = "updateTSL";
1018
1022
  /**
@@ -1020,11 +1024,11 @@
1020
1024
  * on an embedded Liveboard.
1021
1025
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1022
1026
  * @example
1023
- *```js
1027
+ * ```js
1024
1028
  * appEmbed.on(EmbedEvent.EditTML, payload => {
1025
1029
  * console.log('Edit TML', payload);
1026
1030
  * })
1027
- *```
1031
+ * ```
1028
1032
  */
1029
1033
  EmbedEvent["EditTML"] = "editTSL";
1030
1034
  /**
@@ -1033,25 +1037,25 @@
1033
1037
  * Use start:true to subscribe to when export is initiated, or end:true to subscribe to when export is completed. Default is end:true.
1034
1038
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1035
1039
  * @example
1036
- *```js
1040
+ * ```js
1037
1041
  * //emit when action starts
1038
1042
  * searchEmbed.on(EmbedEvent.ExportTML, payload => {
1039
1043
  * console.log('Export TML', payload)}, { start: true })
1040
1044
  * //emit when action ends
1041
1045
  * searchEmbed.on(EmbedEvent.ExportTML, payload => {
1042
1046
  * console.log('Export TML', payload)})
1043
- *```
1047
+ * ```
1044
1048
  */
1045
1049
  EmbedEvent["ExportTML"] = "exportTSL";
1046
1050
  /**
1047
1051
  * Emitted when an Answer is saved as a View.
1048
1052
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1049
1053
  * @example
1050
- *```js
1054
+ * ```js
1051
1055
  * appEmbed.on(EmbedEvent.SaveAsView, payload => {
1052
1056
  * console.log('View', payload);
1053
1057
  * })
1054
- *```
1058
+ * ```
1055
1059
  */
1056
1060
  EmbedEvent["SaveAsView"] = "saveAsView";
1057
1061
  /**
@@ -1059,36 +1063,36 @@
1059
1063
  * 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.
1060
1064
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1061
1065
  * @example
1062
- *```js
1066
+ * ```js
1063
1067
  * //emit when action starts
1064
1068
  * appEmbed.on(EmbedEvent.CopyAEdit, payload => {
1065
1069
  * console.log('Copy and edit', payload)}, {start: true })
1066
1070
  * //emit when action ends
1067
1071
  * appEmbed.on(EmbedEvent.CopyAEdit, payload => {
1068
1072
  * console.log('Copy and edit', payload)})
1069
- *```
1073
+ * ```
1070
1074
  */
1071
1075
  EmbedEvent["CopyAEdit"] = "copyAEdit";
1072
1076
  /**
1073
1077
  * Emitted when a user clicks *Show underlying data* on an Answer.
1074
1078
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1075
1079
  * @example
1076
- *```js
1080
+ * ```js
1077
1081
  * liveboardEmbed.on(EmbedEvent.ShowUnderlyingData, payload => {
1078
1082
  * console.log('show data', payload);
1079
1083
  * })
1080
- *```
1084
+ * ```
1081
1085
  */
1082
1086
  EmbedEvent["ShowUnderlyingData"] = "showUnderlyingData";
1083
1087
  /**
1084
1088
  * Emitted when an Answer is switched to a chart or table view.
1085
1089
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1086
1090
  * @example
1087
- *```js
1091
+ * ```js
1088
1092
  * searchEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
1089
1093
  * console.log('switch view', payload);
1090
1094
  * })
1091
- *```
1095
+ * ```
1092
1096
  */
1093
1097
  EmbedEvent["AnswerChartSwitcher"] = "answerChartSwitcher";
1094
1098
  /**
@@ -1105,118 +1109,118 @@
1105
1109
  * Emitted when a user clicks **Show Liveboard details** on a Liveboard
1106
1110
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1107
1111
  * @example
1108
- *```js
1112
+ * ```js
1109
1113
  * liveboardEmbed.on(EmbedEvent.LiveboardInfo, payload => {
1110
1114
  * console.log('Liveboard details', payload);
1111
1115
  * })
1112
- *```
1116
+ * ```
1113
1117
  */
1114
1118
  EmbedEvent["LiveboardInfo"] = "pinboardInfo";
1115
1119
  /**
1116
1120
  * Emitted when a user clicks on the Favorite icon on a Liveboard
1117
1121
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1118
1122
  * @example
1119
- *```js
1123
+ * ```js
1120
1124
  * liveboardEmbed.on(EmbedEvent.AddToFavorites, payload => {
1121
1125
  * console.log('favorites', payload);
1122
1126
  * })
1123
- *```
1127
+ * ```
1124
1128
  */
1125
1129
  EmbedEvent["AddToFavorites"] = "addToFavorites";
1126
1130
  /**
1127
1131
  * Emitted when a user clicks **Schedule** on a Liveboard
1128
1132
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1129
1133
  * @example
1130
- *```js
1134
+ * ```js
1131
1135
  * liveboardEmbed.on(EmbedEvent.Schedule, payload => {
1132
- * console.log(`Liveboard schedule', payload);
1136
+ * console.log('Liveboard schedule', payload);
1133
1137
  * })
1134
- *```
1138
+ * ```
1135
1139
  */
1136
1140
  EmbedEvent["Schedule"] = "subscription";
1137
1141
  /**
1138
1142
  * Emitted when a user clicks **Edit** on a Liveboard or visualization
1139
1143
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1140
1144
  * @example
1141
- *```js
1145
+ * ```js
1142
1146
  * liveboardEmbed.on(EmbedEvent.Edit, payload => {
1143
- * console.log(`Liveboard edit', payload);
1147
+ * console.log('Liveboard edit', payload);
1144
1148
  * })
1145
- *```
1149
+ * ```
1146
1150
  */
1147
1151
  EmbedEvent["Edit"] = "edit";
1148
1152
  /**
1149
1153
  * Emitted when a user clicks *Make a copy* on a Liveboard
1150
1154
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1151
1155
  * @example
1152
- *```js
1156
+ * ```js
1153
1157
  * liveboardEmbed.on(EmbedEvent.MakeACopy, payload => {
1154
- * console.log(`Copy', payload);
1158
+ * console.log('Copy', payload);
1155
1159
  * })
1156
- *```
1160
+ * ```
1157
1161
  */
1158
1162
  EmbedEvent["MakeACopy"] = "makeACopy";
1159
1163
  /**
1160
1164
  * Emitted when a user clicks **Present** on a Liveboard or visualization
1161
1165
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1162
1166
  * @example
1163
- *```js
1167
+ * ```js
1164
1168
  * liveboardEmbed.on(EmbedEvent.Present)
1165
- *```
1169
+ * ```
1166
1170
  * @example
1167
- *```js
1171
+ * ```js
1168
1172
  * liveboardEmbed.on(EmbedEvent.Present, {
1169
1173
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1170
1174
  * })
1171
- *```
1175
+ * ```
1172
1176
  */
1173
1177
  EmbedEvent["Present"] = "present";
1174
1178
  /**
1175
1179
  * Emitted when a user clicks **Delete** on a visualization
1176
1180
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1177
1181
  * @example
1178
- *```js
1182
+ * ```js
1179
1183
  * liveboardEmbed.on(EmbedEvent.Delete,
1180
1184
  * {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1181
- *```
1185
+ * ```
1182
1186
  */
1183
1187
  EmbedEvent["Delete"] = "delete";
1184
1188
  /**
1185
1189
  * Emitted when a user clicks Manage schedules on a Liveboard
1186
1190
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1187
1191
  * @example
1188
- *```js
1192
+ * ```js
1189
1193
  * liveboardEmbed.on(EmbedEvent.SchedulesList)
1190
- *```
1194
+ * ```
1191
1195
  */
1192
1196
  EmbedEvent["SchedulesList"] = "schedule-list";
1193
1197
  /**
1194
1198
  * Emitted when a user clicks **Cancel** in edit mode on a Liveboard
1195
1199
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1196
1200
  * @example
1197
- *```js
1201
+ * ```js
1198
1202
  * liveboardEmbed.on(EmbedEvent.Cancel)
1199
- *```
1203
+ * ```
1200
1204
  */
1201
1205
  EmbedEvent["Cancel"] = "cancel";
1202
1206
  /**
1203
1207
  * Emitted when a user clicks **Explore** on a visualization
1204
1208
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1205
1209
  * @example
1206
- *```js
1210
+ * ```js
1207
1211
  * liveboardEmbed.on(EmbedEvent.Explore, {
1208
1212
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1209
- *```
1213
+ * ```
1210
1214
  */
1211
1215
  EmbedEvent["Explore"] = "explore";
1212
1216
  /**
1213
1217
  * Emitted when a user clicks **Copy link** action on a visualization.
1214
1218
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1215
1219
  * @example
1216
- *```js
1220
+ * ```js
1217
1221
  * liveboardEmbed.on(EmbedEvent.CopyLink, {
1218
1222
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1219
- *```
1223
+ * ```
1220
1224
  */
1221
1225
  EmbedEvent["CopyLink"] = "embedDocument";
1222
1226
  /**
@@ -1224,21 +1228,21 @@
1224
1228
  * visualization or Liveboard.
1225
1229
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
1226
1230
  * @example
1227
- *```js
1231
+ * ```js
1228
1232
  * liveboardEmbed.on(EmbedEvent.CrossFilterChanged, {
1229
1233
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1230
- *```
1234
+ * ```
1231
1235
  */
1232
1236
  EmbedEvent["CrossFilterChanged"] = "cross-filter-changed";
1233
1237
  /**
1234
1238
  * Emitted when a user right clicks on a visualization (chart or table)
1235
1239
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
1236
1240
  * @example
1237
- *```js
1241
+ * ```js
1238
1242
  * LiveboardEmbed.on(EmbedEvent.VizPointRightClick, payload => {
1239
1243
  * console.log('VizPointClick', payload)
1240
1244
  * })
1241
- *```
1245
+ * ```
1242
1246
  */
1243
1247
  EmbedEvent["VizPointRightClick"] = "vizPointRightClick";
1244
1248
  /**
@@ -1252,35 +1256,35 @@
1252
1256
  * filter details.
1253
1257
  * @example
1254
1258
  *
1255
- *```js
1259
+ * ```js
1256
1260
  * LiveboardEmbed.on(EmbedEvent.FilterChanged, (payload) => {
1257
1261
  * console.log('payload', payload);
1258
1262
  * })
1259
- *
1263
+ * ```
1260
1264
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.0.sw
1261
1265
  */
1262
1266
  EmbedEvent["FilterChanged"] = "filterChanged";
1263
1267
  /**
1264
1268
  * Emitted when a user clicks the **Go** button to initiate
1265
1269
  * a Natural Language Search query
1266
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1270
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1267
1271
  */
1268
1272
  EmbedEvent["SageEmbedQuery"] = "sageEmbedQuery";
1269
1273
  /**
1270
1274
  * Emitted when a user selects a data source on the embedded
1271
1275
  * Natural Language Search interface.
1272
1276
  *
1273
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1277
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1274
1278
  */
1275
1279
  EmbedEvent["SageWorksheetUpdated"] = "sageWorksheetUpdated";
1276
1280
  /**
1277
1281
  * Emitted when a user updates a connection on the **Data** page
1278
- * @version SDK : 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1282
+ * @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1279
1283
  */
1280
1284
  EmbedEvent["UpdateConnection"] = "updateConnection";
1281
1285
  /**
1282
1286
  * Emitted when a user updates a connection on the **Data** page
1283
- * @version SDK : 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1287
+ * @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1284
1288
  */
1285
1289
  EmbedEvent["CreateConnection"] = "createConnection";
1286
1290
  /**
@@ -1290,7 +1294,7 @@
1290
1294
  * @returns viewId: string
1291
1295
  * @returns liveboardId: string
1292
1296
  * @returns isPublic: boolean
1293
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1297
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1294
1298
  */
1295
1299
  EmbedEvent["UpdatePersonalisedView"] = "updatePersonalisedView";
1296
1300
  /**
@@ -1299,7 +1303,7 @@
1299
1303
  * @returns viewId: string
1300
1304
  * @returns liveboardId: string
1301
1305
  * @returns isPublic: boolean
1302
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1306
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1303
1307
  */
1304
1308
  EmbedEvent["SavePersonalisedView"] = "savePersonalisedView";
1305
1309
  /**
@@ -1308,19 +1312,19 @@
1308
1312
  * @returns viewId: string
1309
1313
  * @returns liveboardId: string
1310
1314
  * @returns isPublic: boolean
1311
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1315
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1312
1316
  */
1313
1317
  EmbedEvent["ResetLiveboard"] = "resetLiveboard";
1314
1318
  /**
1315
1319
  * Emitted when a PersonalisedView is deleted.
1316
1320
  * @returns views: string[]
1317
1321
  * @returns liveboardId: string
1318
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1322
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1319
1323
  */
1320
1324
  EmbedEvent["DeletePersonalisedView"] = "deletePersonalisedView";
1321
1325
  /**
1322
1326
  * Emitted when a user creates a Worksheet.
1323
- * @version SDK : 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1327
+ * @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1324
1328
  */
1325
1329
  EmbedEvent["CreateWorksheet"] = "createWorksheet";
1326
1330
  /**
@@ -1329,12 +1333,12 @@
1329
1333
  * @returns viewId: string
1330
1334
  * @returns liveboardId: string
1331
1335
  * @returns isPublic: boolean
1332
- * @version SDK : 1.29.0 | ThoughtSpot Cloud: 9.12.0.cl
1336
+ * @version SDK: 1.29.0 | ThoughtSpot Cloud: 9.12.0.cl
1333
1337
  */
1334
1338
  EmbedEvent["AskSageInit"] = "AskSageInit";
1335
1339
  /**
1336
1340
  * Emitted when a Liveboard or visualization is renamed.
1337
- * @version SDK : 1.28.0 | ThoughtSpot: 9.10.5.cl, 10.1.0.sw
1341
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.10.5.cl, 10.1.0.sw
1338
1342
  */
1339
1343
  EmbedEvent["Rename"] = "rename";
1340
1344
  /**
@@ -1352,14 +1356,12 @@
1352
1356
  * - `payload`: The payload received from the embed related to the Data API call.
1353
1357
  * - `responder`: Contains elements that let developers define whether ThoughtSpot
1354
1358
  * will run or block the search operation, and if blocked, which error message to provide.
1355
- *
1356
- * `execute` - When `execute` returns `true`, the search is run.
1359
+ * - `execute` - When `execute` returns `true`, the search is run.
1357
1360
  * When `execute` returns `false`, the search is not executed.
1358
- *
1359
- * `error` - Developers can customize the user-facing error message when `execute`
1361
+ * - `error` - Developers can customize the user-facing error message when `execute`
1360
1362
  * is `false` by using the `error` parameters in `responder`.
1361
- * `errorText` - The error message text shown to the user.
1362
- * @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
1363
+ * - `errorText` - The error message text shown to the user.
1364
+ * @version SDK: 1.29.0 | ThoughtSpot: 10.3.0.cl
1363
1365
  * @example
1364
1366
  *
1365
1367
  * This example blocks search operation and returns a custom error message:
@@ -1374,7 +1376,7 @@
1374
1376
  * },
1375
1377
  * },
1376
1378
  * });
1377
- * });
1379
+ * })
1378
1380
  * ```
1379
1381
  * @example
1380
1382
  *
@@ -1400,7 +1402,7 @@
1400
1402
  * },
1401
1403
  * },
1402
1404
  * });
1403
- * });
1405
+ * })
1404
1406
  * ```
1405
1407
  */
1406
1408
  EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
@@ -1411,8 +1413,8 @@
1411
1413
  * liveboardEmbed.on(EmbedEvent.ParameterChanged, (payload) => {
1412
1414
  * console.log('payload', payload);
1413
1415
  * })
1414
- *```
1415
- * @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
1416
+ * ```
1417
+ * @version SDK: 1.29.0 | ThoughtSpot: 10.3.0.cl
1416
1418
  */
1417
1419
  EmbedEvent["ParameterChanged"] = "parameterChanged";
1418
1420
  /**
@@ -1467,24 +1469,24 @@
1467
1469
  * liveboardEmbed.on(EmbedEvent.CreateLiveboard, (payload) => {
1468
1470
  * console.log('payload', payload);
1469
1471
  * })
1470
- *```
1471
- * @version SDK : 1.37.0 | ThoughtSpot: 10.8.0.cl
1472
+ * ```
1473
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
1472
1474
  */
1473
1475
  EmbedEvent["CreateLiveboard"] = "createLiveboard";
1474
1476
  /**
1475
1477
  * Emitted when a user creates a Model.
1476
- * @version SDK : 1.37.0 | ThoughtSpot: 10.8.0.cl
1478
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
1477
1479
  */
1478
1480
  EmbedEvent["CreateModel"] = "createModel";
1479
1481
  /**
1480
1482
  * @hidden
1481
1483
  * Emitted when a user exits present mode.
1482
- * @version SDK : 1.40.0 | ThoughtSpot: 10.11.0.cl
1484
+ * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
1483
1485
  */
1484
1486
  EmbedEvent["ExitPresentMode"] = "exitPresentMode";
1485
1487
  /**
1486
1488
  * Emitted when a user requests the full height lazy load data.
1487
- * @version SDK : 1.39.0 | ThoughtSpot : 10.10.0.cl
1489
+ * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1488
1490
  * @hidden
1489
1491
  */
1490
1492
  EmbedEvent["RequestVisibleEmbedCoordinates"] = "requestVisibleEmbedCoordinates";
@@ -1495,7 +1497,7 @@
1495
1497
  * spotterEmbed.on(EmbedEvent.SpotterData, (payload) => {
1496
1498
  * console.log('payload', payload);
1497
1499
  * })
1498
- *```
1500
+ * ```
1499
1501
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1500
1502
  */
1501
1503
  EmbedEvent["SpotterData"] = "SpotterData";
@@ -1506,7 +1508,7 @@
1506
1508
  * spotterEmbed.on(EmbedEvent.PreviewSpotterData, (payload) => {
1507
1509
  * console.log('payload', payload);
1508
1510
  * })
1509
- *```
1511
+ * ```
1510
1512
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1511
1513
  */
1512
1514
  EmbedEvent["PreviewSpotterData"] = "PreviewSpotterData";
@@ -1517,7 +1519,7 @@
1517
1519
  * spotterEmbed.on(EmbedEvent.AddToCoaching, (payload) => {
1518
1520
  * console.log('payload', payload);
1519
1521
  * })
1520
- *```
1522
+ * ```
1521
1523
  * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
1522
1524
  */
1523
1525
  EmbedEvent["AddToCoaching"] = "addToCoaching";
@@ -1539,7 +1541,7 @@
1539
1541
  * spotterEmbed.on(EmbedEvent.SpotterQueryTriggered, (payload) => {
1540
1542
  * console.log('payload', payload);
1541
1543
  * })
1542
- *```
1544
+ * ```
1543
1545
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1544
1546
  */
1545
1547
  EmbedEvent["SpotterQueryTriggered"] = "SpotterQueryTriggered";
@@ -1550,7 +1552,7 @@
1550
1552
  * spotterEmbed.on(EmbedEvent.LastPromptEdited, (payload) => {
1551
1553
  * console.log('payload', payload);
1552
1554
  * })
1553
- *```
1555
+ * ```
1554
1556
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1555
1557
  */
1556
1558
  EmbedEvent["LastPromptEdited"] = "LastPromptEdited";
@@ -1561,18 +1563,18 @@
1561
1563
  * spotterEmbed.on(EmbedEvent.LastPromptDeleted, (payload) => {
1562
1564
  * console.log('payload', payload);
1563
1565
  * })
1564
- *```
1566
+ * ```
1565
1567
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1566
1568
  */
1567
1569
  EmbedEvent["LastPromptDeleted"] = "LastPromptDeleted";
1568
1570
  /**
1569
- * Emitted when the coversation is reset in spotter embed.
1571
+ * Emitted when the conversation is reset in Spotter embed.
1570
1572
  * @example
1571
1573
  * ```js
1572
1574
  * spotterEmbed.on(EmbedEvent.ResetSpotterConversation, (payload) => {
1573
1575
  * console.log('payload', payload);
1574
1576
  * })
1575
- *```
1577
+ * ```
1576
1578
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1577
1579
  */
1578
1580
  EmbedEvent["ResetSpotterConversation"] = "ResetSpotterConversation";
@@ -1583,7 +1585,7 @@
1583
1585
  * spotterEmbed.on(EmbedEvent.SpotterInit, (payload) => {
1584
1586
  * console.log('payload', payload);
1585
1587
  * })
1586
- *```
1588
+ * ```
1587
1589
  * @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
1588
1590
  */
1589
1591
  EmbedEvent["SpotterInit"] = "spotterInit";
@@ -1594,7 +1596,7 @@
1594
1596
  * spotterEmbed.on(EmbedEvent.SpotterLoadComplete, (payload) => {
1595
1597
  * console.log('payload', payload);
1596
1598
  * })
1597
- *```
1599
+ * ```
1598
1600
  * @version SDK: 1.44.0 | ThoughtSpot: 26.2.0.cl
1599
1601
  */
1600
1602
  EmbedEvent["SpotterLoadComplete"] = "spotterLoadComplete";
@@ -1949,7 +1951,7 @@
1949
1951
  * ```js
1950
1952
  * appEmbed.navigateToPage(-1)
1951
1953
  * ```
1952
- * @version SDK: 1.12.0 | ThoughtSpot 8.4.0.cl, 8.4.1.sw
1954
+ * @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1.sw
1953
1955
  */
1954
1956
  HostEvent["Navigate"] = "Navigate";
1955
1957
  /**
@@ -2082,9 +2084,9 @@
2082
2084
  * Trigger the **Show Liveboard details** action
2083
2085
  * on an embedded Liveboard.
2084
2086
  * @example
2085
- *```js
2087
+ * ```js
2086
2088
  * liveboardEmbed.trigger(HostEvent.LiveboardInfo)
2087
- *```
2089
+ * ```
2088
2090
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2089
2091
  */
2090
2092
  HostEvent["LiveboardInfo"] = "pinboardInfo";
@@ -2212,7 +2214,7 @@
2212
2214
  * appEmbed.trigger(HostEvent.Remove)
2213
2215
  * ```
2214
2216
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2215
- * * @example
2217
+ * @example
2216
2218
  * ```js
2217
2219
  * liveboardEmbed.trigger(HostEvent.Remove)
2218
2220
  * ```
@@ -2303,7 +2305,7 @@
2303
2305
  * liveboardEmbed.trigger(HostEvent.CopyLink, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2304
2306
  * ```
2305
2307
  * ```js
2306
- * vizEmbed.trigger((HostEvent.CopyLink)
2308
+ * vizEmbed.trigger(HostEvent.CopyLink)
2307
2309
  * ```
2308
2310
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2309
2311
  */
@@ -2320,7 +2322,7 @@
2320
2322
  * liveboardEmbed.trigger(HostEvent.Present, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2321
2323
  * ```
2322
2324
  * ```js
2323
- * vizEmbed.trigger((HostEvent.Present)
2325
+ * vizEmbed.trigger(HostEvent.Present)
2324
2326
  * ```
2325
2327
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2326
2328
  */
@@ -2335,23 +2337,22 @@
2335
2337
  * );
2336
2338
  * })
2337
2339
  * ```
2338
- * * @example
2340
+ * @example
2339
2341
  * ```js
2340
-
2341
- * // You can use the Data event dispatched on each answer creation to get the vizId and use in Pin host event.
2342
- * let latestSpotterVizId = '';
2343
- * spotterEmbed.on(EmbedEvent.Data, (payload) => {
2344
- * latestSpotterVizId = payload.data.id;
2345
- * });
2346
- *
2347
- * spotterEmbed.trigger(HostEvent.GetTML, {
2342
+ * // You can use the Data event dispatched on each answer creation to get the vizId and use in GetTML host event.
2343
+ * let latestSpotterVizId = '';
2344
+ * spotterEmbed.on(EmbedEvent.Data, (payload) => {
2345
+ * latestSpotterVizId = payload.data.id;
2346
+ * });
2347
+ *
2348
+ * spotterEmbed.trigger(HostEvent.GetTML, {
2348
2349
  * vizId: latestSpotterVizId
2349
2350
  * }).then((tml) => {
2350
2351
  * console.log(
2351
2352
  * tml.answer.search_query // TML representation of the search query
2352
2353
  * );
2353
2354
  * })
2354
- * ```
2355
+ * ```
2355
2356
  * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
2356
2357
  * @important
2357
2358
  */
@@ -2415,6 +2416,11 @@
2415
2416
  /**
2416
2417
  * Trigger the **Download** action on charts in
2417
2418
  * the embedded view.
2419
+ * Use {@link HostEvent.DownloadAsPng} instead.
2420
+ *
2421
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
2422
+ *
2423
+ * @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
2418
2424
  * @param - `vizId` refers to the Visualization ID in Spotter embed and is required in Spotter embed.
2419
2425
  * @example
2420
2426
  * ```js
@@ -2433,9 +2439,6 @@
2433
2439
  *
2434
2440
  * spotterEmbed.trigger(HostEvent.Download, { vizId: latestSpotterVizId });
2435
2441
  * ```
2436
- * @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
2437
- * Use {@link DownloadAsPng}
2438
- * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
2439
2442
  */
2440
2443
  HostEvent["Download"] = "downloadAsPng";
2441
2444
  /**
@@ -2873,8 +2876,8 @@
2873
2876
  * liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
2874
2877
  * console.log('parameters', parameter);
2875
2878
  * });
2876
- *```
2877
- *```js
2879
+ * ```
2880
+ * ```js
2878
2881
  * // You can use the Data event dispatched on each answer creation to get the vizId and use in GetParameters host event.
2879
2882
  * let latestSpotterVizId = '';
2880
2883
  * spotterEmbed.on(EmbedEvent.Data, (payload) => {
@@ -2882,7 +2885,7 @@
2882
2885
  * });
2883
2886
  *
2884
2887
  * spotterEmbed.trigger(HostEvent.GetParameters, { vizId: latestSpotterVizId });
2885
- *```
2888
+ * ```
2886
2889
  * @version SDK: 1.29.0 | ThoughtSpot: 10.1.0.cl, 10.1.0.sw
2887
2890
  */
2888
2891
  HostEvent["GetParameters"] = "GetParameters";
@@ -2899,7 +2902,7 @@
2899
2902
  * Notify when info call is completed successfully
2900
2903
  * ```js
2901
2904
  * liveboardEmbed.trigger(HostEvent.InfoSuccess, data);
2902
- *```
2905
+ * ```
2903
2906
  * @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
2904
2907
  */
2905
2908
  HostEvent["InfoSuccess"] = "InfoSuccess";
@@ -3002,7 +3005,7 @@
3002
3005
  * ```js
3003
3006
  * spotterEmbed.trigger(HostEvent.AddToCoaching, { vizId: '730496d6-6903-4601-937e-2c691821af3c' });
3004
3007
  *
3005
- *```
3008
+ * ```
3006
3009
  * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
3007
3010
  */
3008
3011
  HostEvent["AddToCoaching"] = "addToCoaching";
@@ -3044,7 +3047,7 @@
3044
3047
  * });
3045
3048
  *
3046
3049
  * spotterEmbed.trigger(HostEvent.AnswerChartSwitcher, { vizId: latestSpotterVizId });
3047
- *```
3050
+ * ```
3048
3051
  * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
3049
3052
  */
3050
3053
  HostEvent["AnswerChartSwitcher"] = "answerChartSwitcher";
@@ -3054,7 +3057,7 @@
3054
3057
  * This is automatically triggered by the SDK when fullscreen mode is exited.
3055
3058
  * ```js
3056
3059
  * liveboardEmbed.trigger(HostEvent.ExitPresentMode);
3057
- *```
3060
+ * ```
3058
3061
  * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
3059
3062
  */
3060
3063
  HostEvent["ExitPresentMode"] = "exitPresentMode";
@@ -3204,6 +3207,7 @@
3204
3207
  // 'both' clicks in `contextMenuTrigger` configuration.
3205
3208
  Param["ContextMenuTrigger"] = "contextMenuEnabledOnWhichClick";
3206
3209
  Param["LinkOverride"] = "linkOverride";
3210
+ Param["EnableLinkOverridesV2"] = "enableLinkOverridesV2";
3207
3211
  Param["blockNonEmbedFullAppAccess"] = "blockNonEmbedFullAppAccess";
3208
3212
  Param["ShowInsertToSlide"] = "insertInToSlide";
3209
3213
  Param["PrimaryNavHidden"] = "primaryNavHidden";
@@ -3298,6 +3302,7 @@
3298
3302
  Param["IsThisPeriodInDateFiltersEnabled"] = "isThisPeriodInDateFiltersEnabled";
3299
3303
  Param["HideToolResponseCardBranding"] = "hideToolResponseCardBranding";
3300
3304
  Param["ToolResponseCardBrandingLabel"] = "toolResponseCardBrandingLabel";
3305
+ Param["EnableHomepageAnnouncement"] = "enableHomepageAnnouncement";
3301
3306
  })(Param || (Param = {}));
3302
3307
  /**
3303
3308
  * ThoughtSpot application pages include actions and menu commands
@@ -3457,14 +3462,14 @@
3457
3462
  * ```js
3458
3463
  * disabledActions: [Action.CollapseDataPanel]
3459
3464
  * ```
3460
- * @version: SDK: 1.1.0 | ThoughtSpot Cloud: ts7.may.cl, 8.4.1.sw
3465
+ * @version SDK: 1.1.0 | ThoughtSpot Cloud: ts7.may.cl, 8.4.1.sw
3461
3466
  */
3462
3467
  Action["CollapseDataSources"] = "collapseDataSources";
3463
3468
  /**
3464
3469
  * The **Collapse data panel** icon on the Search page.
3465
3470
  * Collapses the data panel view.
3466
3471
  *
3467
- * @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
3472
+ * @version SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
3468
3473
  *
3469
3474
  * @example
3470
3475
  * ```js
@@ -3911,13 +3916,12 @@
3911
3916
  */
3912
3917
  Action["CreateMonitor"] = "createMonitor";
3913
3918
  /**
3914
- * @deprecated
3915
- * Reports errors
3919
+ * @version SDK: 1.11.1 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
3920
+ * @deprecated This action is deprecated. It was used for reporting errors.
3916
3921
  * @example
3917
3922
  * ```js
3918
3923
  * disabledActions: [Action.ReportError]
3919
3924
  * ```
3920
- * @version SDK: 1.11.1 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
3921
3925
  */
3922
3926
  Action["ReportError"] = "reportError";
3923
3927
  /**
@@ -3927,7 +3931,7 @@
3927
3931
  * ```js
3928
3932
  * disabledActions: [Action.SyncToSheets]
3929
3933
  * ```
3930
- * @version SDK: 1.18.0| ThoughtSpot: 8.10.0.cl, 9.0.1.sw
3934
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
3931
3935
  */
3932
3936
  Action["SyncToSheets"] = "sync-to-sheets";
3933
3937
  /**
@@ -3938,7 +3942,7 @@
3938
3942
  * ```js
3939
3943
  * disabledActions: [Action.SyncToOtherApps]
3940
3944
  * ```
3941
- * @version SDK: 1.18.0| ThoughtSpot: 8.10.0.cl, 9.0.1.sw
3945
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
3942
3946
  */
3943
3947
  Action["SyncToOtherApps"] = "sync-to-other-apps";
3944
3948
  /**
@@ -3948,7 +3952,7 @@
3948
3952
  * ```js
3949
3953
  * disabledActions: [Action.ManagePipelines]
3950
3954
  * ```
3951
- * @version SDK: 1.18.0| ThoughtSpot: 8.10.0.cl, 9.0.1.sw
3955
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
3952
3956
  */
3953
3957
  Action["ManagePipelines"] = "manage-pipeline";
3954
3958
  /**
@@ -4260,7 +4264,7 @@
4260
4264
  * ```js
4261
4265
  * disabledActions: [Action.PersonalisedViewsDropdown]
4262
4266
  * ```
4263
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 10.1.0.sw
4267
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 10.1.0.sw
4264
4268
  */
4265
4269
  Action["PersonalisedViewsDropdown"] = "personalisedViewsDropdown";
4266
4270
  /**
@@ -4270,7 +4274,7 @@
4270
4274
  * ```js
4271
4275
  * disabledActions: [Action.LiveboardUsers]
4272
4276
  * ```
4273
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 10.1.0.sw
4277
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 10.1.0.sw
4274
4278
  */
4275
4279
  Action["LiveboardUsers"] = "liveboardUsers";
4276
4280
  /**
@@ -4288,7 +4292,7 @@
4288
4292
  * hiddenAction: [Action.TML] // hide all TML actions
4289
4293
  * disabledActions: [Action.TML] // to disable all TML actions
4290
4294
  * ```
4291
- * @version SDK : 1.28.3 | ThoughtSpot: 9.12.0.cl, 10.1.0.sw
4295
+ * @version SDK: 1.28.3 | ThoughtSpot: 9.12.0.cl, 10.1.0.sw
4292
4296
  */
4293
4297
  Action["TML"] = "tml";
4294
4298
  /**
@@ -4334,7 +4338,7 @@
4334
4338
  * ```js
4335
4339
  * disabledActions: [Action.AddToWatchlist]
4336
4340
  * ```
4337
- * @version SDK : 1.27.9 | ThoughtSpot Cloud: 9.12.5.cl
4341
+ * @version SDK: 1.27.9 | ThoughtSpot Cloud: 9.12.5.cl
4338
4342
  */
4339
4343
  Action["AddToWatchlist"] = "addToWatchlist";
4340
4344
  /**
@@ -4344,7 +4348,7 @@
4344
4348
  * ```js
4345
4349
  * disabledActions: [Action.RemoveFromWatchlist]
4346
4350
  * ```
4347
- * @version SDK : 1.27.9 | ThoughtSpot: 9.12.5.cl
4351
+ * @version SDK: 1.27.9 | ThoughtSpot: 9.12.5.cl
4348
4352
  */
4349
4353
  Action["RemoveFromWatchlist"] = "removeFromWatchlist";
4350
4354
  /**
@@ -4355,7 +4359,7 @@
4355
4359
  * ```js
4356
4360
  * disabledActions: [Action.OrganiseFavourites]
4357
4361
  * ```
4358
- * @version SDK : 1.32.0 | ThoughtSpot: 10.0.0.cl
4362
+ * @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
4359
4363
  */
4360
4364
  Action["OrganiseFavourites"] = "organiseFavourites";
4361
4365
  /**
@@ -4416,7 +4420,7 @@
4416
4420
  * ```js
4417
4421
  * disabledActions: [Action.ManageTags]
4418
4422
  * ```
4419
- * @version SDK : 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
4423
+ * @version SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
4420
4424
  */
4421
4425
  Action["ManageTags"] = "manageTags";
4422
4426
  /**
@@ -4849,18 +4853,80 @@
4849
4853
  */
4850
4854
  exports.CustomActionsPosition = void 0;
4851
4855
  (function (CustomActionsPosition) {
4856
+ /**
4857
+ * Shows the action as a primary button
4858
+ * in the toolbar area of the embed.
4859
+ */
4852
4860
  CustomActionsPosition["PRIMARY"] = "PRIMARY";
4861
+ /**
4862
+ * Shows the action inside the "More" menu
4863
+ * (three-dot overflow menu).
4864
+ */
4853
4865
  CustomActionsPosition["MENU"] = "MENU";
4866
+ /**
4867
+ * Shows the action in the right-click
4868
+ * context menu. Only supported for
4869
+ * {@link CustomActionTarget.VIZ},
4870
+ * {@link CustomActionTarget.ANSWER}, and
4871
+ * {@link CustomActionTarget.SPOTTER} targets.
4872
+ */
4854
4873
  CustomActionsPosition["CONTEXTMENU"] = "CONTEXTMENU";
4855
4874
  })(exports.CustomActionsPosition || (exports.CustomActionsPosition = {}));
4856
4875
  /**
4857
- * Enum options to mention the target of the custom action.
4876
+ * Enum options to mention the target of the code-based custom action.
4877
+ * The target determines which type of ThoughtSpot object the action is
4878
+ * associated with, and also controls which positions and scoping options
4879
+ * are available.
4858
4880
  */
4859
4881
  exports.CustomActionTarget = void 0;
4860
4882
  (function (CustomActionTarget) {
4883
+ /**
4884
+ * Action applies at the Liveboard level.
4885
+ * Supported positions:
4886
+ * {@link CustomActionsPosition.PRIMARY},
4887
+ * {@link CustomActionsPosition.MENU}.
4888
+ * Can be scoped with
4889
+ * `metadataIds.liveboardIds`,
4890
+ * `orgIds`, and `groupIds`.
4891
+ */
4861
4892
  CustomActionTarget["LIVEBOARD"] = "LIVEBOARD";
4893
+ /**
4894
+ * Action applies to individual
4895
+ * visualizations (charts/tables).
4896
+ * Supported positions:
4897
+ * {@link CustomActionsPosition.PRIMARY},
4898
+ * {@link CustomActionsPosition.MENU},
4899
+ * {@link CustomActionsPosition.CONTEXTMENU}.
4900
+ * Can be scoped with `metadataIds`
4901
+ * (answerIds, liveboardIds, vizIds),
4902
+ * `dataModelIds` (modelIds,
4903
+ * modelColumnNames), `orgIds`,
4904
+ * and `groupIds`.
4905
+ */
4862
4906
  CustomActionTarget["VIZ"] = "VIZ";
4907
+ /**
4908
+ * Action applies to saved or unsaved
4909
+ * Answers. Supported positions:
4910
+ * {@link CustomActionsPosition.PRIMARY},
4911
+ * {@link CustomActionsPosition.MENU},
4912
+ * {@link CustomActionsPosition.CONTEXTMENU}.
4913
+ * Can be scoped with
4914
+ * `metadataIds.answerIds`,
4915
+ * `dataModelIds` (modelIds,
4916
+ * modelColumnNames), `orgIds`,
4917
+ * and `groupIds`.
4918
+ */
4863
4919
  CustomActionTarget["ANSWER"] = "ANSWER";
4920
+ /**
4921
+ * Action applies to Spotter
4922
+ * (AI-powered search).
4923
+ * Supported positions:
4924
+ * {@link CustomActionsPosition.MENU},
4925
+ * {@link CustomActionsPosition.CONTEXTMENU}.
4926
+ * Can be scoped with
4927
+ * `dataModelIds.modelIds`,
4928
+ * `orgIds`, and `groupIds`.
4929
+ */
4864
4930
  CustomActionTarget["SPOTTER"] = "SPOTTER";
4865
4931
  })(exports.CustomActionTarget || (exports.CustomActionTarget = {}));
4866
4932
  /**
@@ -5354,7 +5420,7 @@
5354
5420
  * @returns true if the value is a valid CSS margin value, false otherwise
5355
5421
  */
5356
5422
  const isValidCssMargin = (value) => {
5357
- if (isUndefined$1(value)) {
5423
+ if (isUndefined(value)) {
5358
5424
  return false;
5359
5425
  }
5360
5426
  if (typeof value !== 'string') {
@@ -5542,7 +5608,7 @@
5542
5608
  element.style.removeProperty(styleProperty);
5543
5609
  });
5544
5610
  };
5545
- const isUndefined$1 = (value) => value === undefined;
5611
+ const isUndefined = (value) => value === undefined;
5546
5612
  // Return if the value is a string, double or boolean.
5547
5613
  const getTypeFromValue = (value) => {
5548
5614
  if (typeof value === 'string') {
@@ -5739,6 +5805,14 @@
5739
5805
  return [false, error instanceof Error ? error : new Error(String(error))];
5740
5806
  }
5741
5807
  };
5808
+ /**
5809
+ * Resolves enablePastConversationsSidebar with
5810
+ * spotterSidebarConfig taking precedence over the
5811
+ * standalone flag.
5812
+ */
5813
+ const resolveEnablePastConversationsSidebar = (params) => (params.spotterSidebarConfigValue !== undefined
5814
+ ? params.spotterSidebarConfigValue
5815
+ : params.standaloneValue);
5742
5816
  /**
5743
5817
  * Sets a query parameter if the value is defined.
5744
5818
  * @param queryParams - The query params object to modify
@@ -8319,7 +8393,7 @@
8319
8393
  * tokenizedFetch("<TS_ORIGIN>/api/rest/2.0/auth/session/user", {
8320
8394
  * // .. fetch options ..
8321
8395
  * });
8322
- *```
8396
+ * ```
8323
8397
  * @version SDK: 1.28.0
8324
8398
  * @group Global methods
8325
8399
  */
@@ -8659,6 +8733,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
8659
8733
  OperationType["GetChartWithData"] = "GetChartWithData";
8660
8734
  OperationType["GetTableWithHeadlineData"] = "GetTableWithHeadlineData";
8661
8735
  })(OperationType || (OperationType = {}));
8736
+ const DATA_TYPES = ['DATE', 'DATE_TIME', 'TIME'];
8662
8737
  /**
8663
8738
  * AnswerService provides a simple way to work with ThoughtSpot Answers.
8664
8739
  *
@@ -8704,7 +8779,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
8704
8779
  * });
8705
8780
  * ```
8706
8781
  *
8707
- * @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
8782
+ * @version SDK: 1.25.0 | ThoughtSpot: 9.10.0.cl
8708
8783
  * @group Events
8709
8784
  */
8710
8785
  class AnswerService {
@@ -8765,6 +8840,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
8765
8840
  * ]);
8766
8841
  * console.log(await service.fetchData());
8767
8842
  * });
8843
+ * ```
8768
8844
  */
8769
8845
  async addColumnsByName(columnNames) {
8770
8846
  const sourceDetail = await this.getSourceDetail();
@@ -8895,7 +8971,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
8895
8971
  * const data = await underlying.fetchData(0, 100);
8896
8972
  * })
8897
8973
  * ```
8898
- * @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
8974
+ * @version SDK: 1.25.0 | ThoughtSpot: 9.10.0.cl
8899
8975
  */
8900
8976
  async getUnderlyingDataForPoint(outputColumnNames, selectedPoints) {
8901
8977
  if (!selectedPoints && !this.selectedPoints) {
@@ -9014,7 +9090,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
9014
9090
  const dataType = colVal.column.dataType;
9015
9091
  colVal.column.id;
9016
9092
  let dataValue;
9017
- if (dataType === 'DATE') {
9093
+ if (DATA_TYPES.includes(dataType)) {
9018
9094
  if (Number.isFinite(colVal.value)) {
9019
9095
  dataValue = [{
9020
9096
  epochRange: {
@@ -17467,20 +17543,45 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17467
17543
  exports.AuthStatus = void 0;
17468
17544
  (function (AuthStatus) {
17469
17545
  /**
17470
- * Emits when the SDK fails to authenticate
17546
+ * Emits when the SDK fails to authenticate.
17471
17547
  */
17472
17548
  AuthStatus["FAILURE"] = "FAILURE";
17473
17549
  /**
17474
- * Emits when the SDK authenticates successfully
17550
+ * Emits when the SDK authentication step completes
17551
+ * successfully (e.g., token exchange, cookie set).
17552
+ * This fires before any iframe is rendered. Use
17553
+ * this to know that auth passed and it is safe to
17554
+ * proceed with rendering. The callback receives no
17555
+ * arguments.
17556
+ * @example
17557
+ * ```js
17558
+ * const authEE = init({ ... });
17559
+ * authEE.on(AuthStatus.SDK_SUCCESS, () => {
17560
+ * // Auth done, iframe not loaded yet
17561
+ * });
17562
+ * ```
17475
17563
  */
17476
17564
  AuthStatus["SDK_SUCCESS"] = "SDK_SUCCESS";
17477
17565
  /**
17478
17566
  * @hidden
17479
- * Emits when iframe is loaded and session info is available
17567
+ * Emits when iframe is loaded and session
17568
+ * information is available.
17480
17569
  */
17481
17570
  AuthStatus["SESSION_INFO_SUCCESS"] = "SESSION_INFO_SUCCESS";
17482
17571
  /**
17483
- * Emits when the app sends an authentication success message
17572
+ * Emits when the ThoughtSpot app inside the
17573
+ * embedded iframe confirms its session is active.
17574
+ * This fires after the iframe loads and sends back an `AuthInit` event.
17575
+ * @param sessionInfo Information about the user session, with details like `userGUID`.
17576
+ * @see EmbedEvent.AuthInit
17577
+ * @example
17578
+ * ```js
17579
+ * const authEE = init({ ... });
17580
+ * authEE.on(AuthStatus.SUCCESS, (sessionInfo) => {
17581
+ * // App is loaded and authenticated
17582
+ * console.log(sessionInfo.userGUID);
17583
+ * });
17584
+ * ```
17484
17585
  */
17485
17586
  AuthStatus["SUCCESS"] = "SUCCESS";
17486
17587
  /**
@@ -17626,7 +17727,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17626
17727
  // reload the page which we don't want. We'll live with adding an
17627
17728
  // unnecessary hash to the parent page URL until we find any use case where
17628
17729
  // that creates an issue.
17629
- // Replace any occurences of ?ssoMarker=guid or &ssoMarker=guid.
17730
+ // Replace any occurrences of ?ssoMarker=guid or &ssoMarker=guid.
17630
17731
  let updatedHash = window.location.hash.replace(`?${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
17631
17732
  updatedHash = updatedHash.replace(`&${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
17632
17733
  window.location.hash = updatedHash;
@@ -18188,7 +18289,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18188
18289
  * }).catch(error => {
18189
18290
  * console.error(error);
18190
18291
  * });
18191
- *```
18292
+ * ```
18192
18293
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
18193
18294
  * @group Global methods
18194
18295
  */
@@ -18291,9 +18392,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18291
18392
  };
18292
18393
  /**
18293
18394
  * Reloads the ThoughtSpot iframe.
18395
+ * @version SDK: 1.43.1
18294
18396
  * @param iFrame
18295
18397
  * @group Global methods
18296
- * @version SDK: 1.43.1
18297
18398
  */
18298
18399
  const reloadIframe = (iFrame) => {
18299
18400
  if (!iFrame) {
@@ -18434,7 +18535,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18434
18535
  return eventData;
18435
18536
  }
18436
18537
 
18437
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.46.0";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","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};
18538
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.46.2";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$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};
18438
18539
 
18439
18540
  class HostEventClient {
18440
18541
  constructor(iFrame) {
@@ -18708,7 +18809,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18708
18809
  */
18709
18810
  const { version } = pkgInfo;
18710
18811
  /**
18711
- * Global prefix for all Thoughtspot postHash Params.
18812
+ * Global prefix for all ThoughtSpot postHash Params.
18712
18813
  */
18713
18814
  const THOUGHTSPOT_PARAM_PREFIX = 'ts-';
18714
18815
  const TS_EMBED_ID = '_thoughtspot-embed';
@@ -18740,9 +18841,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18740
18841
  this.embedNodeKey = '__tsEmbed';
18741
18842
  this.isAppInitialized = false;
18742
18843
  /**
18743
- * Should we encode URL Query Params using base64 encoding which thoughtspot
18844
+ * Should we encode URL Query Params using base64 encoding which ThoughtSpot
18744
18845
  * will generate for embedding. This provides additional security to
18745
- * thoughtspot clusters against Cross site scripting attacks.
18846
+ * ThoughtSpot clusters against Cross site scripting attacks.
18746
18847
  * @default false
18747
18848
  */
18748
18849
  this.shouldEncodeUrlQueryParams = false;
@@ -18918,7 +19019,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18918
19019
  if (viewConfig.preRenderId) {
18919
19020
  const allOtherKeys = Object.keys(viewConfig).filter((key) => !preRenderAllowedKeys.includes(key) && !key.startsWith('on'));
18920
19021
  allOtherKeys.forEach((key) => {
18921
- if (!isUndefined$1(viewConfig[key])
19022
+ if (!isUndefined(viewConfig[key])
18922
19023
  && !isEqual_1(viewConfig[key], preRenderedObject.viewConfig[key])) {
18923
19024
  logger$3.warn(`${viewConfig.embedComponentType || 'Component'} was pre-rendered with `
18924
19025
  + `"${key}" as "${JSON.stringify(preRenderedObject.viewConfig[key])}" `
@@ -19254,7 +19355,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19254
19355
  if (this.embedConfig.currencyFormat) {
19255
19356
  queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
19256
19357
  }
19257
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, primaryAction, } = this.viewConfig;
19358
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, enableLinkOverridesV2, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, primaryAction, } = this.viewConfig;
19258
19359
  const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
19259
19360
  const additionalFlags = {
19260
19361
  ...additionalFlagsFromInit,
@@ -19330,7 +19431,13 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19330
19431
  if (locale !== undefined) {
19331
19432
  queryParams[Param.Locale] = locale;
19332
19433
  }
19333
- if (linkOverride) {
19434
+ // TODO: Once V2 is stable, send both flags when
19435
+ // linkOverride is true (remove the else-if).
19436
+ if (enableLinkOverridesV2) {
19437
+ queryParams[Param.EnableLinkOverridesV2] = true;
19438
+ queryParams[Param.LinkOverride] = true;
19439
+ }
19440
+ else if (linkOverride) {
19334
19441
  queryParams[Param.LinkOverride] = linkOverride;
19335
19442
  }
19336
19443
  if (insertInToSlide) {
@@ -19398,7 +19505,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19398
19505
  iFrame.mozallowfullscreen = true;
19399
19506
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
19400
19507
  // @ts-ignore
19401
- iFrame.allow = 'clipboard-read; clipboard-write; fullscreen;';
19508
+ iFrame.allow = 'clipboard-read; clipboard-write; fullscreen; local-network-access;';
19402
19509
  const frameParams = this.viewConfig.frameParams;
19403
19510
  const { height: frameHeight, width: frameWidth, ...restParams } = frameParams || {};
19404
19511
  const width = getCssDimension(frameWidth || DEFAULT_EMBED_WIDTH);
@@ -20100,7 +20207,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20100
20207
  * Returns the answerService which can be used to make arbitrary graphql calls on top
20101
20208
  * session.
20102
20209
  * @param vizId [Optional] to get for a specific viz in case of a Liveboard.
20103
- * @version SDK: 1.25.0 / ThoughtSpot 9.10.0
20210
+ * @version SDK: 1.25.0 | ThoughtSpot: 9.10.0
20104
20211
  */
20105
20212
  async getAnswerService(vizId) {
20106
20213
  const { session } = await this.trigger(exports.HostEvent.GetAnswerSession, vizId ? { vizId } : {});
@@ -20261,7 +20368,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20261
20368
  Page["Monitor"] = "monitor";
20262
20369
  })(exports.Page || (exports.Page = {}));
20263
20370
  /**
20264
- * Define the initial state os column custom group accordions
20371
+ * Define the initial state of column custom group accordions
20265
20372
  * in data panel v2.
20266
20373
  */
20267
20374
  exports.DataPanelCustomColumnGroupsAccordionState = void 0;
@@ -20400,7 +20507,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20400
20507
  * embedded Liveboard or visualization.
20401
20508
  */
20402
20509
  getEmbedParams() {
20403
- 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 = exports.DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, spotterSidebarConfig, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
20510
+ 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 = exports.DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, spotterSidebarConfig, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, enableHomepageAnnouncement, } = this.viewConfig;
20404
20511
  let params = {};
20405
20512
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
20406
20513
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
@@ -20421,13 +20528,17 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20421
20528
  params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
20422
20529
  params[Param.CoverAndFilterOptionInPDF] = !!coverAndFilterOptionInPDF;
20423
20530
  params = this.getBaseQueryParams(params);
20424
- if (!isUndefined$1(updatedSpotterChatPrompt)) {
20531
+ if (!isUndefined(updatedSpotterChatPrompt)) {
20425
20532
  params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
20426
20533
  }
20534
+ const resolvedEnablePastConversationsSidebar = resolveEnablePastConversationsSidebar({
20535
+ spotterSidebarConfigValue: spotterSidebarConfig === null || spotterSidebarConfig === void 0 ? void 0 : spotterSidebarConfig.enablePastConversationsSidebar,
20536
+ standaloneValue: this.viewConfig.enablePastConversationsSidebar,
20537
+ });
20538
+ setParamIfDefined(params, Param.EnablePastConversationsSidebar, resolvedEnablePastConversationsSidebar, true);
20427
20539
  // Handle spotterSidebarConfig params
20428
20540
  if (spotterSidebarConfig) {
20429
- const { enablePastConversationsSidebar, spotterSidebarTitle, spotterSidebarDefaultExpanded, spotterChatRenameLabel, spotterChatDeleteLabel, spotterDeleteConversationModalTitle, spotterPastConversationAlertMessage, spotterDocumentationUrl, spotterBestPracticesLabel, spotterConversationsBatchSize, spotterNewChatButtonTitle, } = spotterSidebarConfig;
20430
- setParamIfDefined(params, Param.EnablePastConversationsSidebar, enablePastConversationsSidebar, true);
20541
+ const { spotterSidebarTitle, spotterSidebarDefaultExpanded, spotterChatRenameLabel, spotterChatDeleteLabel, spotterDeleteConversationModalTitle, spotterPastConversationAlertMessage, spotterDocumentationUrl, spotterBestPracticesLabel, spotterConversationsBatchSize, spotterNewChatButtonTitle, } = spotterSidebarConfig;
20431
20542
  setParamIfDefined(params, Param.SpotterSidebarDefaultExpanded, spotterSidebarDefaultExpanded, true);
20432
20543
  setParamIfDefined(params, Param.SpotterSidebarTitle, spotterSidebarTitle);
20433
20544
  setParamIfDefined(params, Param.SpotterChatRenameLabel, spotterChatRenameLabel);
@@ -20525,6 +20636,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20525
20636
  if (isThisPeriodInDateFiltersEnabled !== undefined) {
20526
20637
  params[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
20527
20638
  }
20639
+ if (enableHomepageAnnouncement !== undefined) {
20640
+ params[Param.EnableHomepageAnnouncement] = enableHomepageAnnouncement;
20641
+ }
20528
20642
  this.defaultHeight = minimumHeight || this.defaultHeight;
20529
20643
  params[Param.DataPanelV2Enabled] = dataPanelV2;
20530
20644
  params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
@@ -20774,8 +20888,8 @@ query GetEurekaVizSnapshots(
20774
20888
  * Copyright (c) 2022
20775
20889
  *
20776
20890
  * Embed a ThoughtSpot Liveboard or visualization
20777
- * https://developers.thoughtspot.com/docs/?pageid=embed-pinboard
20778
- * https://developers.thoughtspot.com/docs/?pageid=embed-a-viz
20891
+ * https://developers.thoughtspot.com/docs/embed-liveboard
20892
+ * https://developers.thoughtspot.com/docs/embed-a-viz
20779
20893
  * @summary Liveboard & visualization embed
20780
20894
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
20781
20895
  */
@@ -20783,6 +20897,7 @@ query GetEurekaVizSnapshots(
20783
20897
  * Embed a ThoughtSpot Liveboard or visualization. When rendered it already
20784
20898
  * waits for the authentication to complete, so you need not wait for
20785
20899
  * `AuthStatus.SUCCESS`.
20900
+ * @group Embed components
20786
20901
  * @example
20787
20902
  * ```js
20788
20903
  * import { .. } from '@thoughtspot/visual-embed-sdk';
@@ -20792,7 +20907,6 @@ query GetEurekaVizSnapshots(
20792
20907
  * // .. other params here.
20793
20908
  * })
20794
20909
  * ```
20795
- * @group Embed components
20796
20910
  */
20797
20911
  class LiveboardEmbed extends V1Embed {
20798
20912
  constructor(domSelector, viewConfig) {
@@ -20900,7 +21014,7 @@ query GetEurekaVizSnapshots(
20900
21014
  if (preventLiveboardFilterRemoval) {
20901
21015
  params[Param.preventLiveboardFilterRemoval] = true;
20902
21016
  }
20903
- if (!isUndefined$1(updatedSpotterChatPrompt)) {
21017
+ if (!isUndefined(updatedSpotterChatPrompt)) {
20904
21018
  params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
20905
21019
  }
20906
21020
  if (visibleVizs) {
@@ -21079,7 +21193,7 @@ query GetEurekaVizSnapshots(
21079
21193
  });
21080
21194
  }
21081
21195
  async handleRenderForPrerender() {
21082
- if (isUndefined$1(this.viewConfig.liveboardId)) {
21196
+ if (isUndefined(this.viewConfig.liveboardId)) {
21083
21197
  return this.prerenderGeneric();
21084
21198
  }
21085
21199
  return super.handleRenderForPrerender();
@@ -21182,12 +21296,13 @@ query GetEurekaVizSnapshots(
21182
21296
  /**
21183
21297
  * Copyright (c) 2022
21184
21298
  *
21185
- * Embed ThoughtSpot search or a saved answer
21299
+ * Embed ThoughtSpot search or a saved answer.
21300
+ * https://developers.thoughtspot.com/docs/search-embed
21186
21301
  * @summary Search embed
21187
21302
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
21188
21303
  */
21189
21304
  /**
21190
- * Define the initial state os column custom group accordions
21305
+ * Define the initial state of column custom group accordions
21191
21306
  * in data panel v2.
21192
21307
  */
21193
21308
  var DataPanelCustomColumnGroupsAccordionState;
@@ -21364,7 +21479,7 @@ query GetEurekaVizSnapshots(
21364
21479
 
21365
21480
  /**
21366
21481
  * Embed ThoughtSpot search bar
21367
- * @version: SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
21482
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
21368
21483
  * @group Embed components
21369
21484
  */
21370
21485
  class SearchBarEmbed extends TsEmbed {
@@ -21865,6 +21980,8 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
21865
21980
  /**
21866
21981
  * Create a conversation embed, which can be integrated inside
21867
21982
  * chatbots or other conversational interfaces.
21983
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
21984
+ * @group Embed components
21868
21985
  * @example
21869
21986
  * ```js
21870
21987
  * import { SpotterAgentEmbed } from '@thoughtspot/visual-embed-sdk';
@@ -21878,8 +21995,6 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
21878
21995
  * // append the container to the DOM
21879
21996
  * document.body.appendChild(container); // or to any other element
21880
21997
  * ```
21881
- * @group Embed components
21882
- * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
21883
21998
  */
21884
21999
  class SpotterAgentEmbed {
21885
22000
  constructor(viewConfig) {
@@ -21933,8 +22048,9 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
21933
22048
  /**
21934
22049
  * Create a conversation embed, which can be integrated inside
21935
22050
  * chatbots or other conversational interfaces.
21936
- * @deprecated from SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
21937
22051
  * Use {@link SpotterAgentEmbed} instead
22052
+ * @deprecated from SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
22053
+ * @group Embed components
21938
22054
  * @example
21939
22055
  * ```js
21940
22056
  * import { SpotterAgentEmbed } from '@thoughtspot/visual-embed-sdk';
@@ -21948,7 +22064,6 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
21948
22064
  * // append the container to the DOM
21949
22065
  * document.body.appendChild(container); // or to any other element
21950
22066
  * ```
21951
- * @group Embed components
21952
22067
  */
21953
22068
  class BodylessConversation extends SpotterAgentEmbed {
21954
22069
  constructor(viewConfig) {
@@ -21956,31 +22071,9 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
21956
22071
  }
21957
22072
  }
21958
22073
 
21959
- /**
21960
- * Checks if `value` is `undefined`.
21961
- *
21962
- * @static
21963
- * @since 0.1.0
21964
- * @memberOf _
21965
- * @category Lang
21966
- * @param {*} value The value to check.
21967
- * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
21968
- * @example
21969
- *
21970
- * _.isUndefined(void 0);
21971
- * // => true
21972
- *
21973
- * _.isUndefined(null);
21974
- * // => false
21975
- */
21976
- function isUndefined(value) {
21977
- return value === undefined;
21978
- }
21979
-
21980
- var isUndefined_1 = isUndefined;
21981
-
21982
22074
  /**
21983
22075
  * Embed ThoughtSpot AI Conversation.
22076
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
21984
22077
  * @group Embed components
21985
22078
  * @example
21986
22079
  * ```js
@@ -21992,7 +22085,6 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
21992
22085
  * });
21993
22086
  * conversation.render();
21994
22087
  * ```
21995
- * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
21996
22088
  */
21997
22089
  class SpotterEmbed extends TsEmbed {
21998
22090
  constructor(container, viewConfig) {
@@ -22008,7 +22100,11 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22008
22100
  getEmbedParamsObject() {
22009
22101
  const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, updatedSpotterChatPrompt, spotterSidebarConfig, spotterChatConfig, } = this.viewConfig;
22010
22102
  // Extract sidebar config properties
22011
- const { enablePastConversationsSidebar, spotterSidebarTitle, spotterSidebarDefaultExpanded, spotterChatRenameLabel, spotterChatDeleteLabel, spotterDeleteConversationModalTitle, spotterPastConversationAlertMessage, spotterDocumentationUrl, spotterBestPracticesLabel, spotterConversationsBatchSize, spotterNewChatButtonTitle, } = spotterSidebarConfig || {};
22103
+ const { enablePastConversationsSidebar: sidebarEnablePastConversationsSidebar, spotterSidebarTitle, spotterSidebarDefaultExpanded, spotterChatRenameLabel, spotterChatDeleteLabel, spotterDeleteConversationModalTitle, spotterPastConversationAlertMessage, spotterDocumentationUrl, spotterBestPracticesLabel, spotterConversationsBatchSize, spotterNewChatButtonTitle, } = spotterSidebarConfig || {};
22104
+ const resolvedEnablePastConversationsSidebar = resolveEnablePastConversationsSidebar({
22105
+ spotterSidebarConfigValue: sidebarEnablePastConversationsSidebar,
22106
+ standaloneValue: this.viewConfig.enablePastConversationsSidebar,
22107
+ });
22012
22108
  if (!worksheetId) {
22013
22109
  this.handleError({
22014
22110
  errorType: exports.ErrorDetailsTypes.VALIDATION_ERROR,
@@ -22026,6 +22122,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22026
22122
  setParamIfDefined(queryParams, Param.ShowSpotterLimitations, showSpotterLimitations, true);
22027
22123
  setParamIfDefined(queryParams, Param.HideSampleQuestions, hideSampleQuestions, true);
22028
22124
  setParamIfDefined(queryParams, Param.UpdatedSpotterChatPrompt, updatedSpotterChatPrompt, true);
22125
+ setParamIfDefined(queryParams, Param.EnablePastConversationsSidebar, resolvedEnablePastConversationsSidebar, true);
22029
22126
  setParamIfDefined(queryParams, Param.SpotterSidebarDefaultExpanded, spotterSidebarDefaultExpanded, true);
22030
22127
  // String params
22031
22128
  setParamIfDefined(queryParams, Param.SpotterSidebarTitle, spotterSidebarTitle);
@@ -22060,13 +22157,9 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22060
22157
  return queryParams;
22061
22158
  }
22062
22159
  getIframeSrc() {
22063
- const { worksheetId, searchOptions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, spotterSidebarConfig, } = this.viewConfig;
22160
+ const { worksheetId, searchOptions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, } = this.viewConfig;
22064
22161
  const path = 'insights/conv-assist';
22065
22162
  const queryParams = this.getEmbedParamsObject();
22066
- const enablePastConversationsSidebar = spotterSidebarConfig === null || spotterSidebarConfig === void 0 ? void 0 : spotterSidebarConfig.enablePastConversationsSidebar;
22067
- if (!isUndefined_1(enablePastConversationsSidebar)) {
22068
- queryParams[Param.EnablePastConversationsSidebar] = !!enablePastConversationsSidebar;
22069
- }
22070
22163
  let query = '';
22071
22164
  const queryParamsString = getQueryParamString(queryParams, true);
22072
22165
  if (queryParamsString) {
@@ -22095,8 +22188,9 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22095
22188
  }
22096
22189
  /**
22097
22190
  * Embed ThoughtSpot AI Conversation.
22098
- * @deprecated from SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
22099
22191
  * Use {@link SpotterEmbed} instead
22192
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
22193
+ * @deprecated from SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
22100
22194
  * @group Embed components
22101
22195
  * @example
22102
22196
  * ```js
@@ -22108,7 +22202,6 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22108
22202
  * });
22109
22203
  * conversation.render();
22110
22204
  * ```
22111
- * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
22112
22205
  */
22113
22206
  class ConversationEmbed extends SpotterEmbed {
22114
22207
  constructor(container, viewConfig) {
@@ -22132,7 +22225,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
22132
22225
  */
22133
22226
  /**
22134
22227
  * Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
22135
- * @version: SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
22228
+ * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
22136
22229
  *
22137
22230
  * Note: This embed will be deprecated from SDK: 1.40.0 | ThoughtSpot: 10.13.0.cl
22138
22231
  * @group Embed components