@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
@@ -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 _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
@@ -23,7 +23,7 @@ function _mergeNamespaces(n, m) {
23
23
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
24
24
  */
25
25
  /**
26
- * The authentication mechanism for allowing access to the
26
+ * The authentication mechanism for allowing access to
27
27
  * the embedded app
28
28
  * @group Authentication / Init
29
29
  */
@@ -49,6 +49,7 @@ var AuthType;
49
49
  * To use this:
50
50
  * Your SAML or OpenID provider must allow iframe redirects.
51
51
  * For example, if you are using Okta as IdP, you can enable iframe embedding.
52
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.8.0.cl
52
53
  * @example
53
54
  * ```js
54
55
  * init({
@@ -56,18 +57,17 @@ var AuthType;
56
57
  * authType: AuthType.EmbeddedSSO,
57
58
  * });
58
59
  * ```
59
- * @version: SDK: 1.15.0 | ThoughtSpot: 8.8.0.cl
60
60
  */
61
61
  AuthType["EmbeddedSSO"] = "EmbeddedSSO";
62
62
  /**
63
- * SSO using SAML
64
- * @deprecated Use {@link SAMLRedirect} instead
63
+ * SSO using SAML, Use {@link SAMLRedirect} instead
64
+ * @deprecated This option is deprecated.
65
65
  * @hidden
66
66
  */
67
67
  AuthType["SSO"] = "SSO_SAML";
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["SAML"] = "SSO_SAML";
@@ -118,8 +118,9 @@ var AuthType;
118
118
  AuthType["SAMLRedirect"] = "SSO_SAML";
119
119
  /**
120
120
  * SSO using OIDC
121
+ * SSO using OIDC, Use {@link OIDCRedirect} instead
122
+ * @deprecated This option is deprecated.
121
123
  * @hidden
122
- * @deprecated Use {@link OIDCRedirect} instead
123
124
  */
124
125
  AuthType["OIDC"] = "SSO_OIDC";
125
126
  /**
@@ -130,8 +131,9 @@ var AuthType;
130
131
  AuthType["OIDCRedirect"] = "SSO_OIDC";
131
132
  /**
132
133
  * Trusted authentication server
134
+ * Use {@link TrustedAuth} instead
135
+ * @deprecated This option is deprecated.
133
136
  * @hidden
134
- * @deprecated Use {@link TrustedAuth} instead
135
137
  */
136
138
  AuthType["AuthServer"] = "AuthServer";
137
139
  /**
@@ -158,6 +160,7 @@ var AuthType;
158
160
  * obtained from ThoughtSpot. This uses a cookieless authentication
159
161
  * approach, recommended to bypass the third-party cookie-blocking restriction
160
162
  * implemented by some browsers.
163
+ * @version SDK: 1.22.0 | ThoughtSpot: 9.3.0.cl, 9.5.1.sw
161
164
  * @example
162
165
  * ```js
163
166
  * init({
@@ -168,8 +171,8 @@ var AuthType;
168
171
  * .then((response) => response.json())
169
172
  * .then((data) => data.token);
170
173
  * }
174
+ * });
171
175
  * ```
172
- * @version SDK: 1.22.0| ThoughtSpot: 9.3.0.cl, 9.5.1.sw
173
176
  */
174
177
  AuthType["TrustedAuthTokenCookieless"] = "AuthServerCookieless";
175
178
  /**
@@ -190,43 +193,43 @@ var HomeLeftNavItem;
190
193
  /**
191
194
  * The *Search data* option in
192
195
  * the *Insights* left navigation panel.
193
- * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
196
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
194
197
  */
195
198
  HomeLeftNavItem["SearchData"] = "search-data";
196
199
  /**
197
200
  * The *Home* menu 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["Home"] = "insights-home";
202
205
  /**
203
206
  * The *Liveboards* 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["Liveboards"] = "liveboards";
208
211
  /**
209
212
  * The *Answers* 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["Answers"] = "answers";
214
217
  /**
215
218
  * The *Monitor subscriptions* 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["MonitorSubscription"] = "monitor-alerts";
220
223
  /**
221
224
  * The *SpotIQ analysis* 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["SpotIQAnalysis"] = "spotiq-analysis";
226
229
  /**
227
230
  * The *Liveboard schedules* menu option in
228
231
  * the *Insights* left navigation panel.
229
- * @version SDK: 1.34.0| ThoughtSpot: 10.3.0.cl
232
+ * @version SDK: 1.34.0 | ThoughtSpot: 10.3.0.cl
230
233
  */
231
234
  HomeLeftNavItem["LiveboardSchedules"] = "liveboard-schedules";
232
235
  /**
@@ -332,7 +335,7 @@ var HomepageModule;
332
335
  */
333
336
  HomepageModule["Search"] = "SEARCH";
334
337
  /**
335
- * kPI watchlist module
338
+ * KPI watchlist module
336
339
  */
337
340
  HomepageModule["Watchlist"] = "WATCHLIST";
338
341
  /**
@@ -364,7 +367,8 @@ var ListPageColumns;
364
367
  */
365
368
  ListPageColumns["Favorites"] = "FAVOURITE";
366
369
  /**
367
- * @deprecated Use {@link ListPageColumns.Favorites} instead.
370
+ * Favourite Use {@link ListPageColumns.Favorites} instead.
371
+ * @deprecated This option is deprecated.
368
372
  */
369
373
  ListPageColumns["Favourite"] = "FAVOURITE";
370
374
  /**
@@ -432,13 +436,13 @@ var EmbedEvent;
432
436
  /**
433
437
  * Rendering has initialized.
434
438
  * @example
435
- *```js
439
+ * ```js
436
440
  * liveboardEmbed.on(EmbedEvent.Init, showLoader)
437
441
  * //show a loader
438
442
  * function showLoader() {
439
443
  * document.getElementById("loader");
440
444
  * }
441
- *```
445
+ * ```
442
446
  * @returns timestamp - The timestamp when the event was generated.
443
447
  */
444
448
  EmbedEvent["Init"] = "init";
@@ -446,11 +450,11 @@ var EmbedEvent;
446
450
  * Authentication has either succeeded or failed.
447
451
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
448
452
  * @example
449
- *```js
453
+ * ```js
450
454
  * appEmbed.on(EmbedEvent.AuthInit, payload => {
451
455
  * console.log('AuthInit', payload);
452
456
  * })
453
- *```
457
+ * ```
454
458
  * @returns isLoggedIn - A Boolean specifying whether authentication was successful.
455
459
  */
456
460
  EmbedEvent["AuthInit"] = "authInit";
@@ -459,13 +463,13 @@ var EmbedEvent;
459
463
  * @returns timestamp - The timestamp when the event was generated.
460
464
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
461
465
  * @example
462
- *```js
466
+ * ```js
463
467
  * liveboardEmbed.on(EmbedEvent.Load, hideLoader)
464
468
  * //hide loader
465
469
  * function hideLoader() {
466
470
  * document.getElementById("loader");
467
471
  * }
468
- *```
472
+ * ```
469
473
  */
470
474
  EmbedEvent["Load"] = "load";
471
475
  /**
@@ -474,11 +478,11 @@ var EmbedEvent;
474
478
  * @return data - Answer of Liveboard data
475
479
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
476
480
  * @example
477
- *```js
481
+ * ```js
478
482
  * liveboardEmbed.on(EmbedEvent.Data, payload => {
479
483
  * console.log('data', payload);
480
484
  * })
481
- *```
485
+ * ```
482
486
  * @important
483
487
  */
484
488
  EmbedEvent["Data"] = "data";
@@ -486,9 +490,9 @@ var EmbedEvent;
486
490
  * Search query has been updated by the user.
487
491
  * @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
488
492
  * @example
489
- *```js
493
+ * ```js
490
494
  * searchEmbed.on(EmbedEvent.QueryChanged, payload => console.log('data', payload))
491
- *```
495
+ * ```
492
496
  */
493
497
  EmbedEvent["QueryChanged"] = "queryChanged";
494
498
  /**
@@ -498,7 +502,7 @@ var EmbedEvent;
498
502
  * @returns drillDownColumns - The columns on which drill down was performed
499
503
  * @returns nonFilteredColumns - The columns that were not filtered
500
504
  * @example
501
- *```js
505
+ * ```js
502
506
  * searchEmbed.on(EmbedEvent.DrillDown, {
503
507
  * points: {
504
508
  * clickedPoint,
@@ -506,12 +510,12 @@ var EmbedEvent;
506
510
  * },
507
511
  * autoDrillDown: true,
508
512
  * })
509
- *```
513
+ * ```
510
514
  * In this example, `VizPointDoubleClick` event is used for
511
515
  * triggering the `DrillDown` event when an area or specific
512
516
  * data point on a table or chart is double-clicked.
513
517
  * @example
514
- *```js
518
+ * ```js
515
519
  * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
516
520
  * console.log(payload);
517
521
  * const clickedPoint = payload.data.clickedPoint;
@@ -525,7 +529,7 @@ var EmbedEvent;
525
529
  * autoDrillDown: true,
526
530
  * })
527
531
  * })
528
- *```
532
+ * ```
529
533
  */
530
534
  EmbedEvent["Drilldown"] = "drillDown";
531
535
  /**
@@ -650,13 +654,13 @@ var EmbedEvent;
650
654
  * The ThoughtSpot authentication session has expired.
651
655
  * @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
652
656
  * @example
653
- *```js
657
+ * ```js
654
658
  * appEmbed.on(EmbedEvent.AuthExpire, showAuthExpired)
655
659
  * //show auth expired banner
656
660
  * function showAuthExpired() {
657
661
  * document.getElementById("authExpiredBanner");
658
662
  * }
659
- *```
663
+ * ```
660
664
  */
661
665
  EmbedEvent["AuthExpire"] = "ThoughtspotAuthExpired";
662
666
  /**
@@ -691,22 +695,22 @@ var EmbedEvent;
691
695
  * Applicable to `SearchBarEmbed` only.
692
696
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
693
697
  * @example
694
- *```js
698
+ * ```js
695
699
  * searchbarEmbed.on(EmbedEvent.GetDataClick)
696
700
  * .then(data => {
697
701
  * console.log('Answer Data:', data);
698
702
  * })
699
- *```
703
+ * ```
700
704
  */
701
705
  EmbedEvent["GetDataClick"] = "getDataClick";
702
706
  /**
703
707
  * Detects the route change.
704
708
  * @version SDK: 1.7.0 | ThoughtSpot: 8.0.0.cl, 8.4.1.sw
705
709
  * @example
706
- *```js
710
+ * ```js
707
711
  * searchEmbed.on(EmbedEvent.RouteChange, payload =>
708
712
  * console.log('data', payload))
709
- *```
713
+ * ```
710
714
  */
711
715
  EmbedEvent["RouteChange"] = "ROUTE_CHANGE";
712
716
  /**
@@ -716,12 +720,12 @@ var EmbedEvent;
716
720
  EmbedEvent["V1Data"] = "exportVizDataToParent";
717
721
  /**
718
722
  * Emitted when the embed does not have cookie access. This happens
719
- * when Safari and other Web browsers block third-party cookies
720
- * are blocked by default. `NoCookieAccess` can trigger.
723
+ * when third-party cookies are blocked by Safari or other
724
+ * web browsers. `NoCookieAccess` can trigger.
721
725
  * @example
722
- *```js
726
+ * ```js
723
727
  * appEmbed.on(EmbedEvent.NoCookieAccess)
724
- *```
728
+ * ```
725
729
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1.sw
726
730
  */
727
731
  EmbedEvent["NoCookieAccess"] = "noCookieAccess";
@@ -735,22 +739,22 @@ var EmbedEvent;
735
739
  * Emitted when any modal is opened in the app
736
740
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
737
741
  * @example
738
- *```js
742
+ * ```js
739
743
  * appEmbed.on(EmbedEvent.DialogOpen, payload => {
740
744
  * console.log('dialog open', payload);
741
745
  * })
742
- *```
746
+ * ```
743
747
  */
744
748
  EmbedEvent["DialogOpen"] = "dialog-open";
745
749
  /**
746
750
  * Emitted when any modal is closed in the app
747
751
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
748
752
  * @example
749
- *```js
753
+ * ```js
750
754
  * appEmbed.on(EmbedEvent.DialogClose, payload => {
751
755
  * console.log('dialog close', payload);
752
756
  * })
753
- *```
757
+ * ```
754
758
  */
755
759
  EmbedEvent["DialogClose"] = "dialog-close";
756
760
  /**
@@ -759,39 +763,39 @@ var EmbedEvent;
759
763
  * other events on the rendered Liveboard.
760
764
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
761
765
  * @example
762
- *```js
766
+ * ```js
763
767
  * liveboardEmbed.on(EmbedEvent.LiveboardRendered, payload => {
764
768
  console.log('Liveboard is rendered', payload);
765
769
  })
766
- *```
770
+ * ```
767
771
  * The following example shows how to trigger
768
772
  * `SetVisibleVizs` event using LiveboardRendered embed event:
769
773
  * @example
770
- *```js
774
+ * ```js
771
775
  * const embedRef = useEmbedRef();
772
776
  * const onLiveboardRendered = () => {
773
777
  * embed.trigger(HostEvent.SetVisibleVizs, ['viz1', 'viz2']);
774
778
  * };
775
- *```
779
+ * ```
776
780
  */
777
781
  EmbedEvent["LiveboardRendered"] = "PinboardRendered";
778
782
  /**
779
783
  * Emits all events.
780
- * @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
784
+ * @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
781
785
  * @example
782
- *```js
786
+ * ```js
783
787
  * appEmbed.on(EmbedEvent.ALL, payload => {
784
788
  * console.log('Embed Events', payload)
785
789
  * })
786
- *```
790
+ * ```
787
791
  */
788
792
  EmbedEvent["ALL"] = "*";
789
793
  /**
790
794
  * Emitted when an Answer is saved in the app.
791
795
  * Use start:true to subscribe to when save is initiated, or end:true to subscribe to when save is completed. Default is end:true.
792
- * @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
796
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
793
797
  * @example
794
- *```js
798
+ * ```js
795
799
  * //Emit when action starts
796
800
  * searchEmbed.on(EmbedEvent.Save, payload => {
797
801
  * console.log('Save', payload)
@@ -802,7 +806,7 @@ var EmbedEvent;
802
806
  * searchEmbed.on(EmbedEvent.Save, payload => {
803
807
  * console.log('Save', payload)
804
808
  * })
805
- *```
809
+ * ```
806
810
  */
807
811
  EmbedEvent["Save"] = "save";
808
812
  /**
@@ -814,11 +818,11 @@ var EmbedEvent;
814
818
  * `EmbedEvent.DownloadAsCSV`, or `EmbedEvent.DownloadAsXLSX`
815
819
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
816
820
  * @example
817
- *```js
821
+ * ```js
818
822
  * liveboardEmbed.on(EmbedEvent.Download, {
819
823
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'
820
824
  * })
821
- *```
825
+ * ```
822
826
  */
823
827
  EmbedEvent["Download"] = "download";
824
828
  /**
@@ -826,14 +830,14 @@ var EmbedEvent;
826
830
  * Use start:true to subscribe to when download is initiated, or end:true to subscribe to when download is completed. Default is end:true.
827
831
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
828
832
  * @example
829
- *```js
833
+ * ```js
830
834
  * //emit when action starts
831
835
  * searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
832
836
  * console.log('download PNG', payload)}, {start: true })
833
837
  * //emit when action ends
834
838
  * searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
835
839
  * console.log('download PNG', payload)})
836
- *```
840
+ * ```
837
841
  */
838
842
  EmbedEvent["DownloadAsPng"] = "downloadAsPng";
839
843
  /**
@@ -841,14 +845,14 @@ var EmbedEvent;
841
845
  * 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.
842
846
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
843
847
  * @example
844
- *```js
848
+ * ```js
845
849
  * //emit when action starts
846
850
  * searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
847
851
  * console.log('download PDF', payload)}, {start: true })
848
852
  * //emit when action ends
849
853
  * searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
850
854
  * console.log('download PDF', payload)})
851
- *```
855
+ * ```
852
856
  */
853
857
  EmbedEvent["DownloadAsPdf"] = "downloadAsPdf";
854
858
  /**
@@ -856,14 +860,14 @@ var EmbedEvent;
856
860
  * 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.
857
861
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
858
862
  * @example
859
- *```js
863
+ * ```js
860
864
  * //emit when action starts
861
865
  * searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
862
866
  * console.log('download CSV', payload)}, {start: true })
863
867
  * //emit when action ends
864
868
  * searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
865
869
  * console.log('download CSV', payload)})
866
- *```
870
+ * ```
867
871
  */
868
872
  EmbedEvent["DownloadAsCsv"] = "downloadAsCsv";
869
873
  /**
@@ -871,14 +875,14 @@ var EmbedEvent;
871
875
  * 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.
872
876
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
873
877
  * @example
874
- *```js
878
+ * ```js
875
879
  * //emit when action starts
876
880
  * searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
877
881
  * console.log('download Xlsx', payload)}, { start: true })
878
882
  * //emit when action ends
879
883
  * searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
880
884
  * console.log('download Xlsx', payload)})
881
- *```
885
+ * ```
882
886
  */
883
887
  EmbedEvent["DownloadAsXlsx"] = "downloadAsXlsx";
884
888
  /**
@@ -886,25 +890,25 @@ var EmbedEvent;
886
890
  * Use start:true to subscribe to when delete is initiated, or end:true to subscribe to when delete is completed. Default is end:true.
887
891
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
888
892
  * @example
889
- *```js
893
+ * ```js
890
894
  * //emit when action starts
891
895
  * appEmbed.on(EmbedEvent.AnswerDelete, payload => {
892
896
  * console.log('delete answer', payload)}, {start: true })
893
897
  * //trigger when action is completed
894
898
  * appEmbed.on(EmbedEvent.AnswerDelete, payload => {
895
899
  * console.log('delete answer', payload)})
896
- *```
900
+ * ```
897
901
  */
898
902
  EmbedEvent["AnswerDelete"] = "answerDelete";
899
903
  /**
900
904
  * Emitted when the AI Highlights action is triggered on a Liveboard
901
905
  * @version SDK: 1.44.0 | ThoughtSpot: 10.15.0.cl
902
906
  * @example
903
- *```js
907
+ * ```js
904
908
  * liveboardEmbed.on(EmbedEvent.AIHighlights, (payload) => {
905
909
  * console.log('AI Highlights', payload);
906
910
  * })
907
- *```
911
+ * ```
908
912
  */
909
913
  EmbedEvent["AIHighlights"] = "AIHighlights";
910
914
  /**
@@ -913,7 +917,7 @@ var EmbedEvent;
913
917
  * Use start:true to subscribe to when pin is initiated, or end:true to subscribe to when pin is completed. Default is end:true.
914
918
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
915
919
  * @example
916
- *```js
920
+ * ```js
917
921
  * //emit when action starts
918
922
  * searchEmbed.on(EmbedEvent.Pin, payload => {
919
923
  * console.log('pin', payload)
@@ -924,14 +928,14 @@ var EmbedEvent;
924
928
  * searchEmbed.on(EmbedEvent.Pin, payload => {
925
929
  * console.log('pin', payload)
926
930
  * })
927
- *```
931
+ * ```
928
932
  */
929
933
  EmbedEvent["Pin"] = "pin";
930
934
  /**
931
935
  * Emitted when SpotIQ analysis is triggered
932
936
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
933
937
  * @example
934
- *```js
938
+ * ```js
935
939
  * //emit when action starts
936
940
  * searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
937
941
  * console.log('SpotIQAnalyze', payload)
@@ -942,14 +946,14 @@ var EmbedEvent;
942
946
  * searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
943
947
  * console.log('SpotIQ analyze', payload)
944
948
  * })
945
- *```
949
+ * ```
946
950
  */
947
951
  EmbedEvent["SpotIQAnalyze"] = "spotIQAnalyze";
948
952
  /**
949
953
  * Emitted when a user shares an object with another user or group
950
954
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
951
955
  * @example
952
- *```js
956
+ * ```js
953
957
  * //emit when action starts
954
958
  * searchEmbed.on(EmbedEvent.Share, payload => {
955
959
  * console.log('Share', payload)
@@ -960,7 +964,7 @@ var EmbedEvent;
960
964
  * searchEmbed.on(EmbedEvent.Share, payload => {
961
965
  * console.log('Share', payload)
962
966
  * })
963
- *```
967
+ * ```
964
968
  */
965
969
  EmbedEvent["Share"] = "share";
966
970
  /**
@@ -968,11 +972,11 @@ var EmbedEvent;
968
972
  * data on a chart or table.
969
973
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
970
974
  * @example
971
- *```js
975
+ * ```js
972
976
  * appEmbed.on(EmbedEvent.DrillInclude, payload => {
973
977
  * console.log('Drill include', payload);
974
978
  * })
975
- *```
979
+ * ```
976
980
  */
977
981
  EmbedEvent["DrillInclude"] = "context-menu-item-include";
978
982
  /**
@@ -980,22 +984,22 @@ var EmbedEvent;
980
984
  * data on a chart or table
981
985
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
982
986
  * @example
983
- *```js
987
+ * ```js
984
988
  * appEmbed.on(EmbedEvent.DrillExclude, payload => {
985
989
  * console.log('Drill exclude', payload);
986
990
  * })
987
- *```
991
+ * ```
988
992
  */
989
993
  EmbedEvent["DrillExclude"] = "context-menu-item-exclude";
990
994
  /**
991
995
  * Emitted when a column value is copied in the embedded app.
992
996
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
993
997
  * @example
994
- *```js
995
- * seachEmbed.on(EmbedEvent.CopyToClipboard, payload => {
998
+ * ```js
999
+ * searchEmbed.on(EmbedEvent.CopyToClipboard, payload => {
996
1000
  * console.log('copy to clipboard', payload);
997
1001
  * })
998
- *```
1002
+ * ```
999
1003
  */
1000
1004
  EmbedEvent["CopyToClipboard"] = "context-menu-item-copy-to-clipboard";
1001
1005
  /**
@@ -1003,10 +1007,10 @@ var EmbedEvent;
1003
1007
  * embedded Liveboard.
1004
1008
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1005
1009
  * @example
1006
- *```js
1010
+ * ```js
1007
1011
  * liveboardEmbed.on(EmbedEvent.UpdateTML)
1008
1012
  * })
1009
- *```
1013
+ * ```
1010
1014
  */
1011
1015
  EmbedEvent["UpdateTML"] = "updateTSL";
1012
1016
  /**
@@ -1014,11 +1018,11 @@ var EmbedEvent;
1014
1018
  * on an embedded Liveboard.
1015
1019
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1016
1020
  * @example
1017
- *```js
1021
+ * ```js
1018
1022
  * appEmbed.on(EmbedEvent.EditTML, payload => {
1019
1023
  * console.log('Edit TML', payload);
1020
1024
  * })
1021
- *```
1025
+ * ```
1022
1026
  */
1023
1027
  EmbedEvent["EditTML"] = "editTSL";
1024
1028
  /**
@@ -1027,25 +1031,25 @@ var EmbedEvent;
1027
1031
  * Use start:true to subscribe to when export is initiated, or end:true to subscribe to when export is completed. Default is end:true.
1028
1032
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1029
1033
  * @example
1030
- *```js
1034
+ * ```js
1031
1035
  * //emit when action starts
1032
1036
  * searchEmbed.on(EmbedEvent.ExportTML, payload => {
1033
1037
  * console.log('Export TML', payload)}, { start: true })
1034
1038
  * //emit when action ends
1035
1039
  * searchEmbed.on(EmbedEvent.ExportTML, payload => {
1036
1040
  * console.log('Export TML', payload)})
1037
- *```
1041
+ * ```
1038
1042
  */
1039
1043
  EmbedEvent["ExportTML"] = "exportTSL";
1040
1044
  /**
1041
1045
  * Emitted when an Answer is saved as a View.
1042
1046
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1043
1047
  * @example
1044
- *```js
1048
+ * ```js
1045
1049
  * appEmbed.on(EmbedEvent.SaveAsView, payload => {
1046
1050
  * console.log('View', payload);
1047
1051
  * })
1048
- *```
1052
+ * ```
1049
1053
  */
1050
1054
  EmbedEvent["SaveAsView"] = "saveAsView";
1051
1055
  /**
@@ -1053,36 +1057,36 @@ var EmbedEvent;
1053
1057
  * 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.
1054
1058
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1055
1059
  * @example
1056
- *```js
1060
+ * ```js
1057
1061
  * //emit when action starts
1058
1062
  * appEmbed.on(EmbedEvent.CopyAEdit, payload => {
1059
1063
  * console.log('Copy and edit', payload)}, {start: true })
1060
1064
  * //emit when action ends
1061
1065
  * appEmbed.on(EmbedEvent.CopyAEdit, payload => {
1062
1066
  * console.log('Copy and edit', payload)})
1063
- *```
1067
+ * ```
1064
1068
  */
1065
1069
  EmbedEvent["CopyAEdit"] = "copyAEdit";
1066
1070
  /**
1067
1071
  * Emitted when a user clicks *Show underlying data* on an Answer.
1068
1072
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1069
1073
  * @example
1070
- *```js
1074
+ * ```js
1071
1075
  * liveboardEmbed.on(EmbedEvent.ShowUnderlyingData, payload => {
1072
1076
  * console.log('show data', payload);
1073
1077
  * })
1074
- *```
1078
+ * ```
1075
1079
  */
1076
1080
  EmbedEvent["ShowUnderlyingData"] = "showUnderlyingData";
1077
1081
  /**
1078
1082
  * Emitted when an Answer is switched to a chart or table view.
1079
1083
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1080
1084
  * @example
1081
- *```js
1085
+ * ```js
1082
1086
  * searchEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
1083
1087
  * console.log('switch view', payload);
1084
1088
  * })
1085
- *```
1089
+ * ```
1086
1090
  */
1087
1091
  EmbedEvent["AnswerChartSwitcher"] = "answerChartSwitcher";
1088
1092
  /**
@@ -1099,118 +1103,118 @@ var EmbedEvent;
1099
1103
  * Emitted when a user clicks **Show Liveboard details** on a Liveboard
1100
1104
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1101
1105
  * @example
1102
- *```js
1106
+ * ```js
1103
1107
  * liveboardEmbed.on(EmbedEvent.LiveboardInfo, payload => {
1104
1108
  * console.log('Liveboard details', payload);
1105
1109
  * })
1106
- *```
1110
+ * ```
1107
1111
  */
1108
1112
  EmbedEvent["LiveboardInfo"] = "pinboardInfo";
1109
1113
  /**
1110
1114
  * Emitted when a user clicks on the Favorite icon on a Liveboard
1111
1115
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1112
1116
  * @example
1113
- *```js
1117
+ * ```js
1114
1118
  * liveboardEmbed.on(EmbedEvent.AddToFavorites, payload => {
1115
1119
  * console.log('favorites', payload);
1116
1120
  * })
1117
- *```
1121
+ * ```
1118
1122
  */
1119
1123
  EmbedEvent["AddToFavorites"] = "addToFavorites";
1120
1124
  /**
1121
1125
  * Emitted when a user clicks **Schedule** on a Liveboard
1122
1126
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1123
1127
  * @example
1124
- *```js
1128
+ * ```js
1125
1129
  * liveboardEmbed.on(EmbedEvent.Schedule, payload => {
1126
- * console.log(`Liveboard schedule', payload);
1130
+ * console.log('Liveboard schedule', payload);
1127
1131
  * })
1128
- *```
1132
+ * ```
1129
1133
  */
1130
1134
  EmbedEvent["Schedule"] = "subscription";
1131
1135
  /**
1132
1136
  * Emitted when a user clicks **Edit** on a Liveboard or visualization
1133
1137
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1134
1138
  * @example
1135
- *```js
1139
+ * ```js
1136
1140
  * liveboardEmbed.on(EmbedEvent.Edit, payload => {
1137
- * console.log(`Liveboard edit', payload);
1141
+ * console.log('Liveboard edit', payload);
1138
1142
  * })
1139
- *```
1143
+ * ```
1140
1144
  */
1141
1145
  EmbedEvent["Edit"] = "edit";
1142
1146
  /**
1143
1147
  * Emitted when a user clicks *Make a copy* on a Liveboard
1144
1148
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1145
1149
  * @example
1146
- *```js
1150
+ * ```js
1147
1151
  * liveboardEmbed.on(EmbedEvent.MakeACopy, payload => {
1148
- * console.log(`Copy', payload);
1152
+ * console.log('Copy', payload);
1149
1153
  * })
1150
- *```
1154
+ * ```
1151
1155
  */
1152
1156
  EmbedEvent["MakeACopy"] = "makeACopy";
1153
1157
  /**
1154
1158
  * Emitted when a user clicks **Present** on a Liveboard or visualization
1155
1159
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1156
1160
  * @example
1157
- *```js
1161
+ * ```js
1158
1162
  * liveboardEmbed.on(EmbedEvent.Present)
1159
- *```
1163
+ * ```
1160
1164
  * @example
1161
- *```js
1165
+ * ```js
1162
1166
  * liveboardEmbed.on(EmbedEvent.Present, {
1163
1167
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1164
1168
  * })
1165
- *```
1169
+ * ```
1166
1170
  */
1167
1171
  EmbedEvent["Present"] = "present";
1168
1172
  /**
1169
1173
  * Emitted when a user clicks **Delete** on a visualization
1170
1174
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1171
1175
  * @example
1172
- *```js
1176
+ * ```js
1173
1177
  * liveboardEmbed.on(EmbedEvent.Delete,
1174
1178
  * {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1175
- *```
1179
+ * ```
1176
1180
  */
1177
1181
  EmbedEvent["Delete"] = "delete";
1178
1182
  /**
1179
1183
  * Emitted when a user clicks Manage schedules on a Liveboard
1180
1184
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1181
1185
  * @example
1182
- *```js
1186
+ * ```js
1183
1187
  * liveboardEmbed.on(EmbedEvent.SchedulesList)
1184
- *```
1188
+ * ```
1185
1189
  */
1186
1190
  EmbedEvent["SchedulesList"] = "schedule-list";
1187
1191
  /**
1188
1192
  * Emitted when a user clicks **Cancel** in edit mode on a Liveboard
1189
1193
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1190
1194
  * @example
1191
- *```js
1195
+ * ```js
1192
1196
  * liveboardEmbed.on(EmbedEvent.Cancel)
1193
- *```
1197
+ * ```
1194
1198
  */
1195
1199
  EmbedEvent["Cancel"] = "cancel";
1196
1200
  /**
1197
1201
  * Emitted when a user clicks **Explore** on a visualization
1198
1202
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1199
1203
  * @example
1200
- *```js
1204
+ * ```js
1201
1205
  * liveboardEmbed.on(EmbedEvent.Explore, {
1202
1206
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1203
- *```
1207
+ * ```
1204
1208
  */
1205
1209
  EmbedEvent["Explore"] = "explore";
1206
1210
  /**
1207
1211
  * Emitted when a user clicks **Copy link** action on a visualization.
1208
1212
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1209
1213
  * @example
1210
- *```js
1214
+ * ```js
1211
1215
  * liveboardEmbed.on(EmbedEvent.CopyLink, {
1212
1216
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1213
- *```
1217
+ * ```
1214
1218
  */
1215
1219
  EmbedEvent["CopyLink"] = "embedDocument";
1216
1220
  /**
@@ -1218,21 +1222,21 @@ var EmbedEvent;
1218
1222
  * visualization or Liveboard.
1219
1223
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
1220
1224
  * @example
1221
- *```js
1225
+ * ```js
1222
1226
  * liveboardEmbed.on(EmbedEvent.CrossFilterChanged, {
1223
1227
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1224
- *```
1228
+ * ```
1225
1229
  */
1226
1230
  EmbedEvent["CrossFilterChanged"] = "cross-filter-changed";
1227
1231
  /**
1228
1232
  * Emitted when a user right clicks on a visualization (chart or table)
1229
1233
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
1230
1234
  * @example
1231
- *```js
1235
+ * ```js
1232
1236
  * LiveboardEmbed.on(EmbedEvent.VizPointRightClick, payload => {
1233
1237
  * console.log('VizPointClick', payload)
1234
1238
  * })
1235
- *```
1239
+ * ```
1236
1240
  */
1237
1241
  EmbedEvent["VizPointRightClick"] = "vizPointRightClick";
1238
1242
  /**
@@ -1246,35 +1250,35 @@ var EmbedEvent;
1246
1250
  * filter details.
1247
1251
  * @example
1248
1252
  *
1249
- *```js
1253
+ * ```js
1250
1254
  * LiveboardEmbed.on(EmbedEvent.FilterChanged, (payload) => {
1251
1255
  * console.log('payload', payload);
1252
1256
  * })
1253
- *
1257
+ * ```
1254
1258
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.0.sw
1255
1259
  */
1256
1260
  EmbedEvent["FilterChanged"] = "filterChanged";
1257
1261
  /**
1258
1262
  * Emitted when a user clicks the **Go** button to initiate
1259
1263
  * a Natural Language Search query
1260
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1264
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1261
1265
  */
1262
1266
  EmbedEvent["SageEmbedQuery"] = "sageEmbedQuery";
1263
1267
  /**
1264
1268
  * Emitted when a user selects a data source on the embedded
1265
1269
  * Natural Language Search interface.
1266
1270
  *
1267
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1271
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1268
1272
  */
1269
1273
  EmbedEvent["SageWorksheetUpdated"] = "sageWorksheetUpdated";
1270
1274
  /**
1271
1275
  * Emitted when a user updates a connection on the **Data** page
1272
- * @version SDK : 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1276
+ * @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1273
1277
  */
1274
1278
  EmbedEvent["UpdateConnection"] = "updateConnection";
1275
1279
  /**
1276
1280
  * Emitted when a user updates a connection on the **Data** page
1277
- * @version SDK : 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1281
+ * @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1278
1282
  */
1279
1283
  EmbedEvent["CreateConnection"] = "createConnection";
1280
1284
  /**
@@ -1284,7 +1288,7 @@ var EmbedEvent;
1284
1288
  * @returns viewId: string
1285
1289
  * @returns liveboardId: string
1286
1290
  * @returns isPublic: boolean
1287
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1291
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1288
1292
  */
1289
1293
  EmbedEvent["UpdatePersonalisedView"] = "updatePersonalisedView";
1290
1294
  /**
@@ -1293,7 +1297,7 @@ var EmbedEvent;
1293
1297
  * @returns viewId: string
1294
1298
  * @returns liveboardId: string
1295
1299
  * @returns isPublic: boolean
1296
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1300
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1297
1301
  */
1298
1302
  EmbedEvent["SavePersonalisedView"] = "savePersonalisedView";
1299
1303
  /**
@@ -1302,19 +1306,19 @@ var EmbedEvent;
1302
1306
  * @returns viewId: string
1303
1307
  * @returns liveboardId: string
1304
1308
  * @returns isPublic: boolean
1305
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1309
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1306
1310
  */
1307
1311
  EmbedEvent["ResetLiveboard"] = "resetLiveboard";
1308
1312
  /**
1309
1313
  * Emitted when a PersonalisedView is deleted.
1310
1314
  * @returns views: string[]
1311
1315
  * @returns liveboardId: string
1312
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1316
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1313
1317
  */
1314
1318
  EmbedEvent["DeletePersonalisedView"] = "deletePersonalisedView";
1315
1319
  /**
1316
1320
  * Emitted when a user creates a Worksheet.
1317
- * @version SDK : 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1321
+ * @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1318
1322
  */
1319
1323
  EmbedEvent["CreateWorksheet"] = "createWorksheet";
1320
1324
  /**
@@ -1323,12 +1327,12 @@ var EmbedEvent;
1323
1327
  * @returns viewId: string
1324
1328
  * @returns liveboardId: string
1325
1329
  * @returns isPublic: boolean
1326
- * @version SDK : 1.29.0 | ThoughtSpot Cloud: 9.12.0.cl
1330
+ * @version SDK: 1.29.0 | ThoughtSpot Cloud: 9.12.0.cl
1327
1331
  */
1328
1332
  EmbedEvent["AskSageInit"] = "AskSageInit";
1329
1333
  /**
1330
1334
  * Emitted when a Liveboard or visualization is renamed.
1331
- * @version SDK : 1.28.0 | ThoughtSpot: 9.10.5.cl, 10.1.0.sw
1335
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.10.5.cl, 10.1.0.sw
1332
1336
  */
1333
1337
  EmbedEvent["Rename"] = "rename";
1334
1338
  /**
@@ -1346,14 +1350,12 @@ var EmbedEvent;
1346
1350
  * - `payload`: The payload received from the embed related to the Data API call.
1347
1351
  * - `responder`: Contains elements that let developers define whether ThoughtSpot
1348
1352
  * will run or block the search operation, and if blocked, which error message to provide.
1349
- *
1350
- * `execute` - When `execute` returns `true`, the search is run.
1353
+ * - `execute` - When `execute` returns `true`, the search is run.
1351
1354
  * When `execute` returns `false`, the search is not executed.
1352
- *
1353
- * `error` - Developers can customize the user-facing error message when `execute`
1355
+ * - `error` - Developers can customize the user-facing error message when `execute`
1354
1356
  * is `false` by using the `error` parameters in `responder`.
1355
- * `errorText` - The error message text shown to the user.
1356
- * @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
1357
+ * - `errorText` - The error message text shown to the user.
1358
+ * @version SDK: 1.29.0 | ThoughtSpot: 10.3.0.cl
1357
1359
  * @example
1358
1360
  *
1359
1361
  * This example blocks search operation and returns a custom error message:
@@ -1368,7 +1370,7 @@ var EmbedEvent;
1368
1370
  * },
1369
1371
  * },
1370
1372
  * });
1371
- * });
1373
+ * })
1372
1374
  * ```
1373
1375
  * @example
1374
1376
  *
@@ -1394,7 +1396,7 @@ var EmbedEvent;
1394
1396
  * },
1395
1397
  * },
1396
1398
  * });
1397
- * });
1399
+ * })
1398
1400
  * ```
1399
1401
  */
1400
1402
  EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
@@ -1405,8 +1407,8 @@ var EmbedEvent;
1405
1407
  * liveboardEmbed.on(EmbedEvent.ParameterChanged, (payload) => {
1406
1408
  * console.log('payload', payload);
1407
1409
  * })
1408
- *```
1409
- * @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
1410
+ * ```
1411
+ * @version SDK: 1.29.0 | ThoughtSpot: 10.3.0.cl
1410
1412
  */
1411
1413
  EmbedEvent["ParameterChanged"] = "parameterChanged";
1412
1414
  /**
@@ -1461,24 +1463,24 @@ var EmbedEvent;
1461
1463
  * liveboardEmbed.on(EmbedEvent.CreateLiveboard, (payload) => {
1462
1464
  * console.log('payload', payload);
1463
1465
  * })
1464
- *```
1465
- * @version SDK : 1.37.0 | ThoughtSpot: 10.8.0.cl
1466
+ * ```
1467
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
1466
1468
  */
1467
1469
  EmbedEvent["CreateLiveboard"] = "createLiveboard";
1468
1470
  /**
1469
1471
  * Emitted when a user creates a Model.
1470
- * @version SDK : 1.37.0 | ThoughtSpot: 10.8.0.cl
1472
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
1471
1473
  */
1472
1474
  EmbedEvent["CreateModel"] = "createModel";
1473
1475
  /**
1474
1476
  * @hidden
1475
1477
  * Emitted when a user exits present mode.
1476
- * @version SDK : 1.40.0 | ThoughtSpot: 10.11.0.cl
1478
+ * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
1477
1479
  */
1478
1480
  EmbedEvent["ExitPresentMode"] = "exitPresentMode";
1479
1481
  /**
1480
1482
  * Emitted when a user requests the full height lazy load data.
1481
- * @version SDK : 1.39.0 | ThoughtSpot : 10.10.0.cl
1483
+ * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1482
1484
  * @hidden
1483
1485
  */
1484
1486
  EmbedEvent["RequestVisibleEmbedCoordinates"] = "requestVisibleEmbedCoordinates";
@@ -1489,7 +1491,7 @@ var EmbedEvent;
1489
1491
  * spotterEmbed.on(EmbedEvent.SpotterData, (payload) => {
1490
1492
  * console.log('payload', payload);
1491
1493
  * })
1492
- *```
1494
+ * ```
1493
1495
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1494
1496
  */
1495
1497
  EmbedEvent["SpotterData"] = "SpotterData";
@@ -1500,7 +1502,7 @@ var EmbedEvent;
1500
1502
  * spotterEmbed.on(EmbedEvent.PreviewSpotterData, (payload) => {
1501
1503
  * console.log('payload', payload);
1502
1504
  * })
1503
- *```
1505
+ * ```
1504
1506
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1505
1507
  */
1506
1508
  EmbedEvent["PreviewSpotterData"] = "PreviewSpotterData";
@@ -1511,7 +1513,7 @@ var EmbedEvent;
1511
1513
  * spotterEmbed.on(EmbedEvent.AddToCoaching, (payload) => {
1512
1514
  * console.log('payload', payload);
1513
1515
  * })
1514
- *```
1516
+ * ```
1515
1517
  * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
1516
1518
  */
1517
1519
  EmbedEvent["AddToCoaching"] = "addToCoaching";
@@ -1533,7 +1535,7 @@ var EmbedEvent;
1533
1535
  * spotterEmbed.on(EmbedEvent.SpotterQueryTriggered, (payload) => {
1534
1536
  * console.log('payload', payload);
1535
1537
  * })
1536
- *```
1538
+ * ```
1537
1539
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1538
1540
  */
1539
1541
  EmbedEvent["SpotterQueryTriggered"] = "SpotterQueryTriggered";
@@ -1544,7 +1546,7 @@ var EmbedEvent;
1544
1546
  * spotterEmbed.on(EmbedEvent.LastPromptEdited, (payload) => {
1545
1547
  * console.log('payload', payload);
1546
1548
  * })
1547
- *```
1549
+ * ```
1548
1550
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1549
1551
  */
1550
1552
  EmbedEvent["LastPromptEdited"] = "LastPromptEdited";
@@ -1555,18 +1557,18 @@ var EmbedEvent;
1555
1557
  * spotterEmbed.on(EmbedEvent.LastPromptDeleted, (payload) => {
1556
1558
  * console.log('payload', payload);
1557
1559
  * })
1558
- *```
1560
+ * ```
1559
1561
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1560
1562
  */
1561
1563
  EmbedEvent["LastPromptDeleted"] = "LastPromptDeleted";
1562
1564
  /**
1563
- * Emitted when the coversation is reset in spotter embed.
1565
+ * Emitted when the conversation is reset in Spotter embed.
1564
1566
  * @example
1565
1567
  * ```js
1566
1568
  * spotterEmbed.on(EmbedEvent.ResetSpotterConversation, (payload) => {
1567
1569
  * console.log('payload', payload);
1568
1570
  * })
1569
- *```
1571
+ * ```
1570
1572
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1571
1573
  */
1572
1574
  EmbedEvent["ResetSpotterConversation"] = "ResetSpotterConversation";
@@ -1577,7 +1579,7 @@ var EmbedEvent;
1577
1579
  * spotterEmbed.on(EmbedEvent.SpotterInit, (payload) => {
1578
1580
  * console.log('payload', payload);
1579
1581
  * })
1580
- *```
1582
+ * ```
1581
1583
  * @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
1582
1584
  */
1583
1585
  EmbedEvent["SpotterInit"] = "spotterInit";
@@ -1588,7 +1590,7 @@ var EmbedEvent;
1588
1590
  * spotterEmbed.on(EmbedEvent.SpotterLoadComplete, (payload) => {
1589
1591
  * console.log('payload', payload);
1590
1592
  * })
1591
- *```
1593
+ * ```
1592
1594
  * @version SDK: 1.44.0 | ThoughtSpot: 26.2.0.cl
1593
1595
  */
1594
1596
  EmbedEvent["SpotterLoadComplete"] = "spotterLoadComplete";
@@ -1943,7 +1945,7 @@ var HostEvent;
1943
1945
  * ```js
1944
1946
  * appEmbed.navigateToPage(-1)
1945
1947
  * ```
1946
- * @version SDK: 1.12.0 | ThoughtSpot 8.4.0.cl, 8.4.1.sw
1948
+ * @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1.sw
1947
1949
  */
1948
1950
  HostEvent["Navigate"] = "Navigate";
1949
1951
  /**
@@ -2076,9 +2078,9 @@ var HostEvent;
2076
2078
  * Trigger the **Show Liveboard details** action
2077
2079
  * on an embedded Liveboard.
2078
2080
  * @example
2079
- *```js
2081
+ * ```js
2080
2082
  * liveboardEmbed.trigger(HostEvent.LiveboardInfo)
2081
- *```
2083
+ * ```
2082
2084
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2083
2085
  */
2084
2086
  HostEvent["LiveboardInfo"] = "pinboardInfo";
@@ -2206,7 +2208,7 @@ var HostEvent;
2206
2208
  * appEmbed.trigger(HostEvent.Remove)
2207
2209
  * ```
2208
2210
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2209
- * * @example
2211
+ * @example
2210
2212
  * ```js
2211
2213
  * liveboardEmbed.trigger(HostEvent.Remove)
2212
2214
  * ```
@@ -2297,7 +2299,7 @@ var HostEvent;
2297
2299
  * liveboardEmbed.trigger(HostEvent.CopyLink, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2298
2300
  * ```
2299
2301
  * ```js
2300
- * vizEmbed.trigger((HostEvent.CopyLink)
2302
+ * vizEmbed.trigger(HostEvent.CopyLink)
2301
2303
  * ```
2302
2304
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2303
2305
  */
@@ -2314,7 +2316,7 @@ var HostEvent;
2314
2316
  * liveboardEmbed.trigger(HostEvent.Present, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2315
2317
  * ```
2316
2318
  * ```js
2317
- * vizEmbed.trigger((HostEvent.Present)
2319
+ * vizEmbed.trigger(HostEvent.Present)
2318
2320
  * ```
2319
2321
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2320
2322
  */
@@ -2329,23 +2331,22 @@ var HostEvent;
2329
2331
  * );
2330
2332
  * })
2331
2333
  * ```
2332
- * * @example
2334
+ * @example
2333
2335
  * ```js
2334
-
2335
- * // You can use the Data event dispatched on each answer creation to get the vizId and use in Pin host event.
2336
- * let latestSpotterVizId = '';
2337
- * spotterEmbed.on(EmbedEvent.Data, (payload) => {
2338
- * latestSpotterVizId = payload.data.id;
2339
- * });
2340
- *
2341
- * spotterEmbed.trigger(HostEvent.GetTML, {
2336
+ * // You can use the Data event dispatched on each answer creation to get the vizId and use in GetTML host event.
2337
+ * let latestSpotterVizId = '';
2338
+ * spotterEmbed.on(EmbedEvent.Data, (payload) => {
2339
+ * latestSpotterVizId = payload.data.id;
2340
+ * });
2341
+ *
2342
+ * spotterEmbed.trigger(HostEvent.GetTML, {
2342
2343
  * vizId: latestSpotterVizId
2343
2344
  * }).then((tml) => {
2344
2345
  * console.log(
2345
2346
  * tml.answer.search_query // TML representation of the search query
2346
2347
  * );
2347
2348
  * })
2348
- * ```
2349
+ * ```
2349
2350
  * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
2350
2351
  * @important
2351
2352
  */
@@ -2409,6 +2410,11 @@ var HostEvent;
2409
2410
  /**
2410
2411
  * Trigger the **Download** action on charts in
2411
2412
  * the embedded view.
2413
+ * Use {@link HostEvent.DownloadAsPng} instead.
2414
+ *
2415
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
2416
+ *
2417
+ * @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
2412
2418
  * @param - `vizId` refers to the Visualization ID in Spotter embed and is required in Spotter embed.
2413
2419
  * @example
2414
2420
  * ```js
@@ -2427,9 +2433,6 @@ var HostEvent;
2427
2433
  *
2428
2434
  * spotterEmbed.trigger(HostEvent.Download, { vizId: latestSpotterVizId });
2429
2435
  * ```
2430
- * @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
2431
- * Use {@link DownloadAsPng}
2432
- * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
2433
2436
  */
2434
2437
  HostEvent["Download"] = "downloadAsPng";
2435
2438
  /**
@@ -2867,8 +2870,8 @@ var HostEvent;
2867
2870
  * liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
2868
2871
  * console.log('parameters', parameter);
2869
2872
  * });
2870
- *```
2871
- *```js
2873
+ * ```
2874
+ * ```js
2872
2875
  * // You can use the Data event dispatched on each answer creation to get the vizId and use in GetParameters host event.
2873
2876
  * let latestSpotterVizId = '';
2874
2877
  * spotterEmbed.on(EmbedEvent.Data, (payload) => {
@@ -2876,7 +2879,7 @@ var HostEvent;
2876
2879
  * });
2877
2880
  *
2878
2881
  * spotterEmbed.trigger(HostEvent.GetParameters, { vizId: latestSpotterVizId });
2879
- *```
2882
+ * ```
2880
2883
  * @version SDK: 1.29.0 | ThoughtSpot: 10.1.0.cl, 10.1.0.sw
2881
2884
  */
2882
2885
  HostEvent["GetParameters"] = "GetParameters";
@@ -2893,7 +2896,7 @@ var HostEvent;
2893
2896
  * Notify when info call is completed successfully
2894
2897
  * ```js
2895
2898
  * liveboardEmbed.trigger(HostEvent.InfoSuccess, data);
2896
- *```
2899
+ * ```
2897
2900
  * @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
2898
2901
  */
2899
2902
  HostEvent["InfoSuccess"] = "InfoSuccess";
@@ -2996,7 +2999,7 @@ var HostEvent;
2996
2999
  * ```js
2997
3000
  * spotterEmbed.trigger(HostEvent.AddToCoaching, { vizId: '730496d6-6903-4601-937e-2c691821af3c' });
2998
3001
  *
2999
- *```
3002
+ * ```
3000
3003
  * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
3001
3004
  */
3002
3005
  HostEvent["AddToCoaching"] = "addToCoaching";
@@ -3038,7 +3041,7 @@ var HostEvent;
3038
3041
  * });
3039
3042
  *
3040
3043
  * spotterEmbed.trigger(HostEvent.AnswerChartSwitcher, { vizId: latestSpotterVizId });
3041
- *```
3044
+ * ```
3042
3045
  * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
3043
3046
  */
3044
3047
  HostEvent["AnswerChartSwitcher"] = "answerChartSwitcher";
@@ -3048,7 +3051,7 @@ var HostEvent;
3048
3051
  * This is automatically triggered by the SDK when fullscreen mode is exited.
3049
3052
  * ```js
3050
3053
  * liveboardEmbed.trigger(HostEvent.ExitPresentMode);
3051
- *```
3054
+ * ```
3052
3055
  * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
3053
3056
  */
3054
3057
  HostEvent["ExitPresentMode"] = "exitPresentMode";
@@ -3198,6 +3201,7 @@ var Param;
3198
3201
  // 'both' clicks in `contextMenuTrigger` configuration.
3199
3202
  Param["ContextMenuTrigger"] = "contextMenuEnabledOnWhichClick";
3200
3203
  Param["LinkOverride"] = "linkOverride";
3204
+ Param["EnableLinkOverridesV2"] = "enableLinkOverridesV2";
3201
3205
  Param["blockNonEmbedFullAppAccess"] = "blockNonEmbedFullAppAccess";
3202
3206
  Param["ShowInsertToSlide"] = "insertInToSlide";
3203
3207
  Param["PrimaryNavHidden"] = "primaryNavHidden";
@@ -3292,6 +3296,7 @@ var Param;
3292
3296
  Param["IsThisPeriodInDateFiltersEnabled"] = "isThisPeriodInDateFiltersEnabled";
3293
3297
  Param["HideToolResponseCardBranding"] = "hideToolResponseCardBranding";
3294
3298
  Param["ToolResponseCardBrandingLabel"] = "toolResponseCardBrandingLabel";
3299
+ Param["EnableHomepageAnnouncement"] = "enableHomepageAnnouncement";
3295
3300
  })(Param || (Param = {}));
3296
3301
  /**
3297
3302
  * ThoughtSpot application pages include actions and menu commands
@@ -3451,14 +3456,14 @@ var Action;
3451
3456
  * ```js
3452
3457
  * disabledActions: [Action.CollapseDataPanel]
3453
3458
  * ```
3454
- * @version: SDK: 1.1.0 | ThoughtSpot Cloud: ts7.may.cl, 8.4.1.sw
3459
+ * @version SDK: 1.1.0 | ThoughtSpot Cloud: ts7.may.cl, 8.4.1.sw
3455
3460
  */
3456
3461
  Action["CollapseDataSources"] = "collapseDataSources";
3457
3462
  /**
3458
3463
  * The **Collapse data panel** icon on the Search page.
3459
3464
  * Collapses the data panel view.
3460
3465
  *
3461
- * @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
3466
+ * @version SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
3462
3467
  *
3463
3468
  * @example
3464
3469
  * ```js
@@ -3905,13 +3910,12 @@ var Action;
3905
3910
  */
3906
3911
  Action["CreateMonitor"] = "createMonitor";
3907
3912
  /**
3908
- * @deprecated
3909
- * Reports errors
3913
+ * @version SDK: 1.11.1 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
3914
+ * @deprecated This action is deprecated. It was used for reporting errors.
3910
3915
  * @example
3911
3916
  * ```js
3912
3917
  * disabledActions: [Action.ReportError]
3913
3918
  * ```
3914
- * @version SDK: 1.11.1 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
3915
3919
  */
3916
3920
  Action["ReportError"] = "reportError";
3917
3921
  /**
@@ -3921,7 +3925,7 @@ var Action;
3921
3925
  * ```js
3922
3926
  * disabledActions: [Action.SyncToSheets]
3923
3927
  * ```
3924
- * @version SDK: 1.18.0| ThoughtSpot: 8.10.0.cl, 9.0.1.sw
3928
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
3925
3929
  */
3926
3930
  Action["SyncToSheets"] = "sync-to-sheets";
3927
3931
  /**
@@ -3932,7 +3936,7 @@ var Action;
3932
3936
  * ```js
3933
3937
  * disabledActions: [Action.SyncToOtherApps]
3934
3938
  * ```
3935
- * @version SDK: 1.18.0| ThoughtSpot: 8.10.0.cl, 9.0.1.sw
3939
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
3936
3940
  */
3937
3941
  Action["SyncToOtherApps"] = "sync-to-other-apps";
3938
3942
  /**
@@ -3942,7 +3946,7 @@ var Action;
3942
3946
  * ```js
3943
3947
  * disabledActions: [Action.ManagePipelines]
3944
3948
  * ```
3945
- * @version SDK: 1.18.0| ThoughtSpot: 8.10.0.cl, 9.0.1.sw
3949
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
3946
3950
  */
3947
3951
  Action["ManagePipelines"] = "manage-pipeline";
3948
3952
  /**
@@ -4254,7 +4258,7 @@ var Action;
4254
4258
  * ```js
4255
4259
  * disabledActions: [Action.PersonalisedViewsDropdown]
4256
4260
  * ```
4257
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 10.1.0.sw
4261
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 10.1.0.sw
4258
4262
  */
4259
4263
  Action["PersonalisedViewsDropdown"] = "personalisedViewsDropdown";
4260
4264
  /**
@@ -4264,7 +4268,7 @@ var Action;
4264
4268
  * ```js
4265
4269
  * disabledActions: [Action.LiveboardUsers]
4266
4270
  * ```
4267
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 10.1.0.sw
4271
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 10.1.0.sw
4268
4272
  */
4269
4273
  Action["LiveboardUsers"] = "liveboardUsers";
4270
4274
  /**
@@ -4282,7 +4286,7 @@ var Action;
4282
4286
  * hiddenAction: [Action.TML] // hide all TML actions
4283
4287
  * disabledActions: [Action.TML] // to disable all TML actions
4284
4288
  * ```
4285
- * @version SDK : 1.28.3 | ThoughtSpot: 9.12.0.cl, 10.1.0.sw
4289
+ * @version SDK: 1.28.3 | ThoughtSpot: 9.12.0.cl, 10.1.0.sw
4286
4290
  */
4287
4291
  Action["TML"] = "tml";
4288
4292
  /**
@@ -4328,7 +4332,7 @@ var Action;
4328
4332
  * ```js
4329
4333
  * disabledActions: [Action.AddToWatchlist]
4330
4334
  * ```
4331
- * @version SDK : 1.27.9 | ThoughtSpot Cloud: 9.12.5.cl
4335
+ * @version SDK: 1.27.9 | ThoughtSpot Cloud: 9.12.5.cl
4332
4336
  */
4333
4337
  Action["AddToWatchlist"] = "addToWatchlist";
4334
4338
  /**
@@ -4338,7 +4342,7 @@ var Action;
4338
4342
  * ```js
4339
4343
  * disabledActions: [Action.RemoveFromWatchlist]
4340
4344
  * ```
4341
- * @version SDK : 1.27.9 | ThoughtSpot: 9.12.5.cl
4345
+ * @version SDK: 1.27.9 | ThoughtSpot: 9.12.5.cl
4342
4346
  */
4343
4347
  Action["RemoveFromWatchlist"] = "removeFromWatchlist";
4344
4348
  /**
@@ -4349,7 +4353,7 @@ var Action;
4349
4353
  * ```js
4350
4354
  * disabledActions: [Action.OrganiseFavourites]
4351
4355
  * ```
4352
- * @version SDK : 1.32.0 | ThoughtSpot: 10.0.0.cl
4356
+ * @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
4353
4357
  */
4354
4358
  Action["OrganiseFavourites"] = "organiseFavourites";
4355
4359
  /**
@@ -4410,7 +4414,7 @@ var Action;
4410
4414
  * ```js
4411
4415
  * disabledActions: [Action.ManageTags]
4412
4416
  * ```
4413
- * @version SDK : 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
4417
+ * @version SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
4414
4418
  */
4415
4419
  Action["ManageTags"] = "manageTags";
4416
4420
  /**
@@ -4843,18 +4847,80 @@ var ContextMenuTriggerOptions;
4843
4847
  */
4844
4848
  var CustomActionsPosition;
4845
4849
  (function (CustomActionsPosition) {
4850
+ /**
4851
+ * Shows the action as a primary button
4852
+ * in the toolbar area of the embed.
4853
+ */
4846
4854
  CustomActionsPosition["PRIMARY"] = "PRIMARY";
4855
+ /**
4856
+ * Shows the action inside the "More" menu
4857
+ * (three-dot overflow menu).
4858
+ */
4847
4859
  CustomActionsPosition["MENU"] = "MENU";
4860
+ /**
4861
+ * Shows the action in the right-click
4862
+ * context menu. Only supported for
4863
+ * {@link CustomActionTarget.VIZ},
4864
+ * {@link CustomActionTarget.ANSWER}, and
4865
+ * {@link CustomActionTarget.SPOTTER} targets.
4866
+ */
4848
4867
  CustomActionsPosition["CONTEXTMENU"] = "CONTEXTMENU";
4849
4868
  })(CustomActionsPosition || (CustomActionsPosition = {}));
4850
4869
  /**
4851
- * Enum options to mention the target of the custom action.
4870
+ * Enum options to mention the target of the code-based custom action.
4871
+ * The target determines which type of ThoughtSpot object the action is
4872
+ * associated with, and also controls which positions and scoping options
4873
+ * are available.
4852
4874
  */
4853
4875
  var CustomActionTarget;
4854
4876
  (function (CustomActionTarget) {
4877
+ /**
4878
+ * Action applies at the Liveboard level.
4879
+ * Supported positions:
4880
+ * {@link CustomActionsPosition.PRIMARY},
4881
+ * {@link CustomActionsPosition.MENU}.
4882
+ * Can be scoped with
4883
+ * `metadataIds.liveboardIds`,
4884
+ * `orgIds`, and `groupIds`.
4885
+ */
4855
4886
  CustomActionTarget["LIVEBOARD"] = "LIVEBOARD";
4887
+ /**
4888
+ * Action applies to individual
4889
+ * visualizations (charts/tables).
4890
+ * Supported positions:
4891
+ * {@link CustomActionsPosition.PRIMARY},
4892
+ * {@link CustomActionsPosition.MENU},
4893
+ * {@link CustomActionsPosition.CONTEXTMENU}.
4894
+ * Can be scoped with `metadataIds`
4895
+ * (answerIds, liveboardIds, vizIds),
4896
+ * `dataModelIds` (modelIds,
4897
+ * modelColumnNames), `orgIds`,
4898
+ * and `groupIds`.
4899
+ */
4856
4900
  CustomActionTarget["VIZ"] = "VIZ";
4901
+ /**
4902
+ * Action applies to saved or unsaved
4903
+ * Answers. Supported positions:
4904
+ * {@link CustomActionsPosition.PRIMARY},
4905
+ * {@link CustomActionsPosition.MENU},
4906
+ * {@link CustomActionsPosition.CONTEXTMENU}.
4907
+ * Can be scoped with
4908
+ * `metadataIds.answerIds`,
4909
+ * `dataModelIds` (modelIds,
4910
+ * modelColumnNames), `orgIds`,
4911
+ * and `groupIds`.
4912
+ */
4857
4913
  CustomActionTarget["ANSWER"] = "ANSWER";
4914
+ /**
4915
+ * Action applies to Spotter
4916
+ * (AI-powered search).
4917
+ * Supported positions:
4918
+ * {@link CustomActionsPosition.MENU},
4919
+ * {@link CustomActionsPosition.CONTEXTMENU}.
4920
+ * Can be scoped with
4921
+ * `dataModelIds.modelIds`,
4922
+ * `orgIds`, and `groupIds`.
4923
+ */
4858
4924
  CustomActionTarget["SPOTTER"] = "SPOTTER";
4859
4925
  })(CustomActionTarget || (CustomActionTarget = {}));
4860
4926
  /**
@@ -5348,7 +5414,7 @@ const getCssDimension = (value) => {
5348
5414
  * @returns true if the value is a valid CSS margin value, false otherwise
5349
5415
  */
5350
5416
  const isValidCssMargin = (value) => {
5351
- if (isUndefined$1(value)) {
5417
+ if (isUndefined(value)) {
5352
5418
  return false;
5353
5419
  }
5354
5420
  if (typeof value !== 'string') {
@@ -5536,7 +5602,7 @@ const removeStyleProperties = (element, styleProperties) => {
5536
5602
  element.style.removeProperty(styleProperty);
5537
5603
  });
5538
5604
  };
5539
- const isUndefined$1 = (value) => value === undefined;
5605
+ const isUndefined = (value) => value === undefined;
5540
5606
  // Return if the value is a string, double or boolean.
5541
5607
  const getTypeFromValue = (value) => {
5542
5608
  if (typeof value === 'string') {
@@ -5733,6 +5799,14 @@ const validateHttpUrl = (url) => {
5733
5799
  return [false, error instanceof Error ? error : new Error(String(error))];
5734
5800
  }
5735
5801
  };
5802
+ /**
5803
+ * Resolves enablePastConversationsSidebar with
5804
+ * spotterSidebarConfig taking precedence over the
5805
+ * standalone flag.
5806
+ */
5807
+ const resolveEnablePastConversationsSidebar = (params) => (params.spotterSidebarConfigValue !== undefined
5808
+ ? params.spotterSidebarConfigValue
5809
+ : params.standaloneValue);
5736
5810
  /**
5737
5811
  * Sets a query parameter if the value is defined.
5738
5812
  * @param queryParams - The query params object to modify
@@ -8313,7 +8387,7 @@ const setEmbedConfig = (newConfig) => {
8313
8387
  * tokenizedFetch("<TS_ORIGIN>/api/rest/2.0/auth/session/user", {
8314
8388
  * // .. fetch options ..
8315
8389
  * });
8316
- *```
8390
+ * ```
8317
8391
  * @version SDK: 1.28.0
8318
8392
  * @group Global methods
8319
8393
  */
@@ -8653,6 +8727,7 @@ var OperationType;
8653
8727
  OperationType["GetChartWithData"] = "GetChartWithData";
8654
8728
  OperationType["GetTableWithHeadlineData"] = "GetTableWithHeadlineData";
8655
8729
  })(OperationType || (OperationType = {}));
8730
+ const DATA_TYPES = ['DATE', 'DATE_TIME', 'TIME'];
8656
8731
  /**
8657
8732
  * AnswerService provides a simple way to work with ThoughtSpot Answers.
8658
8733
  *
@@ -8698,7 +8773,7 @@ var OperationType;
8698
8773
  * });
8699
8774
  * ```
8700
8775
  *
8701
- * @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
8776
+ * @version SDK: 1.25.0 | ThoughtSpot: 9.10.0.cl
8702
8777
  * @group Events
8703
8778
  */
8704
8779
  class AnswerService {
@@ -8759,6 +8834,7 @@ class AnswerService {
8759
8834
  * ]);
8760
8835
  * console.log(await service.fetchData());
8761
8836
  * });
8837
+ * ```
8762
8838
  */
8763
8839
  async addColumnsByName(columnNames) {
8764
8840
  const sourceDetail = await this.getSourceDetail();
@@ -8889,7 +8965,7 @@ class AnswerService {
8889
8965
  * const data = await underlying.fetchData(0, 100);
8890
8966
  * })
8891
8967
  * ```
8892
- * @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
8968
+ * @version SDK: 1.25.0 | ThoughtSpot: 9.10.0.cl
8893
8969
  */
8894
8970
  async getUnderlyingDataForPoint(outputColumnNames, selectedPoints) {
8895
8971
  if (!selectedPoints && !this.selectedPoints) {
@@ -8957,7 +9033,7 @@ class AnswerService {
8957
9033
  async getTML() {
8958
9034
  const { object } = await this.executeQuery(getAnswerTML, {});
8959
9035
  const edoc = object[0].edoc;
8960
- const YAML = await import('./index-BQvLEoxp.js');
9036
+ const YAML = await import('./index-DkizS4xM.js');
8961
9037
  const parsedDoc = YAML.parse(edoc);
8962
9038
  return {
8963
9039
  answer: {
@@ -9008,7 +9084,7 @@ function getSelectedPointsForUnderlyingDataQuery(selectedPoints) {
9008
9084
  const dataType = colVal.column.dataType;
9009
9085
  colVal.column.id;
9010
9086
  let dataValue;
9011
- if (dataType === 'DATE') {
9087
+ if (DATA_TYPES.includes(dataType)) {
9012
9088
  if (Number.isFinite(colVal.value)) {
9013
9089
  dataValue = [{
9014
9090
  epochRange: {
@@ -17461,20 +17537,45 @@ var AuthFailureType;
17461
17537
  var AuthStatus;
17462
17538
  (function (AuthStatus) {
17463
17539
  /**
17464
- * Emits when the SDK fails to authenticate
17540
+ * Emits when the SDK fails to authenticate.
17465
17541
  */
17466
17542
  AuthStatus["FAILURE"] = "FAILURE";
17467
17543
  /**
17468
- * Emits when the SDK authenticates successfully
17544
+ * Emits when the SDK authentication step completes
17545
+ * successfully (e.g., token exchange, cookie set).
17546
+ * This fires before any iframe is rendered. Use
17547
+ * this to know that auth passed and it is safe to
17548
+ * proceed with rendering. The callback receives no
17549
+ * arguments.
17550
+ * @example
17551
+ * ```js
17552
+ * const authEE = init({ ... });
17553
+ * authEE.on(AuthStatus.SDK_SUCCESS, () => {
17554
+ * // Auth done, iframe not loaded yet
17555
+ * });
17556
+ * ```
17469
17557
  */
17470
17558
  AuthStatus["SDK_SUCCESS"] = "SDK_SUCCESS";
17471
17559
  /**
17472
17560
  * @hidden
17473
- * Emits when iframe is loaded and session info is available
17561
+ * Emits when iframe is loaded and session
17562
+ * information is available.
17474
17563
  */
17475
17564
  AuthStatus["SESSION_INFO_SUCCESS"] = "SESSION_INFO_SUCCESS";
17476
17565
  /**
17477
- * Emits when the app sends an authentication success message
17566
+ * Emits when the ThoughtSpot app inside the
17567
+ * embedded iframe confirms its session is active.
17568
+ * This fires after the iframe loads and sends back an `AuthInit` event.
17569
+ * @param sessionInfo Information about the user session, with details like `userGUID`.
17570
+ * @see EmbedEvent.AuthInit
17571
+ * @example
17572
+ * ```js
17573
+ * const authEE = init({ ... });
17574
+ * authEE.on(AuthStatus.SUCCESS, (sessionInfo) => {
17575
+ * // App is loaded and authenticated
17576
+ * console.log(sessionInfo.userGUID);
17577
+ * });
17578
+ * ```
17478
17579
  */
17479
17580
  AuthStatus["SUCCESS"] = "SUCCESS";
17480
17581
  /**
@@ -17620,7 +17721,7 @@ function removeSSORedirectUrlMarker() {
17620
17721
  // reload the page which we don't want. We'll live with adding an
17621
17722
  // unnecessary hash to the parent page URL until we find any use case where
17622
17723
  // that creates an issue.
17623
- // Replace any occurences of ?ssoMarker=guid or &ssoMarker=guid.
17724
+ // Replace any occurrences of ?ssoMarker=guid or &ssoMarker=guid.
17624
17725
  let updatedHash = window.location.hash.replace(`?${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
17625
17726
  updatedHash = updatedHash.replace(`&${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
17626
17727
  window.location.hash = updatedHash;
@@ -18182,7 +18283,7 @@ const renderInQueue = (fn) => {
18182
18283
  * }).catch(error => {
18183
18284
  * console.error(error);
18184
18285
  * });
18185
- *```
18286
+ * ```
18186
18287
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
18187
18288
  * @group Global methods
18188
18289
  */
@@ -18285,9 +18386,9 @@ const exportTML = async (data) => {
18285
18386
  };
18286
18387
  /**
18287
18388
  * Reloads the ThoughtSpot iframe.
18389
+ * @version SDK: 1.43.1
18288
18390
  * @param iFrame
18289
18391
  * @group Global methods
18290
- * @version SDK: 1.43.1
18291
18392
  */
18292
18393
  const reloadIframe = (iFrame) => {
18293
18394
  if (!iFrame) {
@@ -18428,7 +18529,7 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
18428
18529
  return eventData;
18429
18530
  }
18430
18531
 
18431
- 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={".":{"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,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};
18532
+ 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={".":{"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,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};
18432
18533
 
18433
18534
  class HostEventClient {
18434
18535
  constructor(iFrame) {
@@ -18702,7 +18803,7 @@ const processLegacyInterceptResponse = (payload) => {
18702
18803
  */
18703
18804
  const { version } = pkgInfo;
18704
18805
  /**
18705
- * Global prefix for all Thoughtspot postHash Params.
18806
+ * Global prefix for all ThoughtSpot postHash Params.
18706
18807
  */
18707
18808
  const THOUGHTSPOT_PARAM_PREFIX = 'ts-';
18708
18809
  const TS_EMBED_ID = '_thoughtspot-embed';
@@ -18734,9 +18835,9 @@ class TsEmbed {
18734
18835
  this.embedNodeKey = '__tsEmbed';
18735
18836
  this.isAppInitialized = false;
18736
18837
  /**
18737
- * Should we encode URL Query Params using base64 encoding which thoughtspot
18838
+ * Should we encode URL Query Params using base64 encoding which ThoughtSpot
18738
18839
  * will generate for embedding. This provides additional security to
18739
- * thoughtspot clusters against Cross site scripting attacks.
18840
+ * ThoughtSpot clusters against Cross site scripting attacks.
18740
18841
  * @default false
18741
18842
  */
18742
18843
  this.shouldEncodeUrlQueryParams = false;
@@ -18912,7 +19013,7 @@ class TsEmbed {
18912
19013
  if (viewConfig.preRenderId) {
18913
19014
  const allOtherKeys = Object.keys(viewConfig).filter((key) => !preRenderAllowedKeys.includes(key) && !key.startsWith('on'));
18914
19015
  allOtherKeys.forEach((key) => {
18915
- if (!isUndefined$1(viewConfig[key])
19016
+ if (!isUndefined(viewConfig[key])
18916
19017
  && !isEqual_1(viewConfig[key], preRenderedObject.viewConfig[key])) {
18917
19018
  logger$3.warn(`${viewConfig.embedComponentType || 'Component'} was pre-rendered with `
18918
19019
  + `"${key}" as "${JSON.stringify(preRenderedObject.viewConfig[key])}" `
@@ -19248,7 +19349,7 @@ class TsEmbed {
19248
19349
  if (this.embedConfig.currencyFormat) {
19249
19350
  queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
19250
19351
  }
19251
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, primaryAction, } = this.viewConfig;
19352
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, enableLinkOverridesV2, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, primaryAction, } = this.viewConfig;
19252
19353
  const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
19253
19354
  const additionalFlags = {
19254
19355
  ...additionalFlagsFromInit,
@@ -19324,7 +19425,13 @@ class TsEmbed {
19324
19425
  if (locale !== undefined) {
19325
19426
  queryParams[Param.Locale] = locale;
19326
19427
  }
19327
- if (linkOverride) {
19428
+ // TODO: Once V2 is stable, send both flags when
19429
+ // linkOverride is true (remove the else-if).
19430
+ if (enableLinkOverridesV2) {
19431
+ queryParams[Param.EnableLinkOverridesV2] = true;
19432
+ queryParams[Param.LinkOverride] = true;
19433
+ }
19434
+ else if (linkOverride) {
19328
19435
  queryParams[Param.LinkOverride] = linkOverride;
19329
19436
  }
19330
19437
  if (insertInToSlide) {
@@ -19392,7 +19499,7 @@ class TsEmbed {
19392
19499
  iFrame.mozallowfullscreen = true;
19393
19500
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
19394
19501
  // @ts-ignore
19395
- iFrame.allow = 'clipboard-read; clipboard-write; fullscreen;';
19502
+ iFrame.allow = 'clipboard-read; clipboard-write; fullscreen; local-network-access;';
19396
19503
  const frameParams = this.viewConfig.frameParams;
19397
19504
  const { height: frameHeight, width: frameWidth, ...restParams } = frameParams || {};
19398
19505
  const width = getCssDimension(frameWidth || DEFAULT_EMBED_WIDTH);
@@ -20094,7 +20201,7 @@ class TsEmbed {
20094
20201
  * Returns the answerService which can be used to make arbitrary graphql calls on top
20095
20202
  * session.
20096
20203
  * @param vizId [Optional] to get for a specific viz in case of a Liveboard.
20097
- * @version SDK: 1.25.0 / ThoughtSpot 9.10.0
20204
+ * @version SDK: 1.25.0 | ThoughtSpot: 9.10.0
20098
20205
  */
20099
20206
  async getAnswerService(vizId) {
20100
20207
  const { session } = await this.trigger(HostEvent.GetAnswerSession, vizId ? { vizId } : {});
@@ -20255,7 +20362,7 @@ var Page;
20255
20362
  Page["Monitor"] = "monitor";
20256
20363
  })(Page || (Page = {}));
20257
20364
  /**
20258
- * Define the initial state os column custom group accordions
20365
+ * Define the initial state of column custom group accordions
20259
20366
  * in data panel v2.
20260
20367
  */
20261
20368
  var DataPanelCustomColumnGroupsAccordionState$1;
@@ -20394,7 +20501,7 @@ class AppEmbed extends V1Embed {
20394
20501
  * embedded Liveboard or visualization.
20395
20502
  */
20396
20503
  getEmbedParams() {
20397
- const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, spotterSidebarConfig, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
20504
+ const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, spotterSidebarConfig, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, enableHomepageAnnouncement, } = this.viewConfig;
20398
20505
  let params = {};
20399
20506
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
20400
20507
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
@@ -20415,13 +20522,17 @@ class AppEmbed extends V1Embed {
20415
20522
  params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
20416
20523
  params[Param.CoverAndFilterOptionInPDF] = !!coverAndFilterOptionInPDF;
20417
20524
  params = this.getBaseQueryParams(params);
20418
- if (!isUndefined$1(updatedSpotterChatPrompt)) {
20525
+ if (!isUndefined(updatedSpotterChatPrompt)) {
20419
20526
  params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
20420
20527
  }
20528
+ const resolvedEnablePastConversationsSidebar = resolveEnablePastConversationsSidebar({
20529
+ spotterSidebarConfigValue: spotterSidebarConfig === null || spotterSidebarConfig === void 0 ? void 0 : spotterSidebarConfig.enablePastConversationsSidebar,
20530
+ standaloneValue: this.viewConfig.enablePastConversationsSidebar,
20531
+ });
20532
+ setParamIfDefined(params, Param.EnablePastConversationsSidebar, resolvedEnablePastConversationsSidebar, true);
20421
20533
  // Handle spotterSidebarConfig params
20422
20534
  if (spotterSidebarConfig) {
20423
- const { enablePastConversationsSidebar, spotterSidebarTitle, spotterSidebarDefaultExpanded, spotterChatRenameLabel, spotterChatDeleteLabel, spotterDeleteConversationModalTitle, spotterPastConversationAlertMessage, spotterDocumentationUrl, spotterBestPracticesLabel, spotterConversationsBatchSize, spotterNewChatButtonTitle, } = spotterSidebarConfig;
20424
- setParamIfDefined(params, Param.EnablePastConversationsSidebar, enablePastConversationsSidebar, true);
20535
+ const { spotterSidebarTitle, spotterSidebarDefaultExpanded, spotterChatRenameLabel, spotterChatDeleteLabel, spotterDeleteConversationModalTitle, spotterPastConversationAlertMessage, spotterDocumentationUrl, spotterBestPracticesLabel, spotterConversationsBatchSize, spotterNewChatButtonTitle, } = spotterSidebarConfig;
20425
20536
  setParamIfDefined(params, Param.SpotterSidebarDefaultExpanded, spotterSidebarDefaultExpanded, true);
20426
20537
  setParamIfDefined(params, Param.SpotterSidebarTitle, spotterSidebarTitle);
20427
20538
  setParamIfDefined(params, Param.SpotterChatRenameLabel, spotterChatRenameLabel);
@@ -20519,6 +20630,9 @@ class AppEmbed extends V1Embed {
20519
20630
  if (isThisPeriodInDateFiltersEnabled !== undefined) {
20520
20631
  params[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
20521
20632
  }
20633
+ if (enableHomepageAnnouncement !== undefined) {
20634
+ params[Param.EnableHomepageAnnouncement] = enableHomepageAnnouncement;
20635
+ }
20522
20636
  this.defaultHeight = minimumHeight || this.defaultHeight;
20523
20637
  params[Param.DataPanelV2Enabled] = dataPanelV2;
20524
20638
  params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
@@ -20768,8 +20882,8 @@ const addPreviewStylesIfNotPresent = () => {
20768
20882
  * Copyright (c) 2022
20769
20883
  *
20770
20884
  * Embed a ThoughtSpot Liveboard or visualization
20771
- * https://developers.thoughtspot.com/docs/?pageid=embed-pinboard
20772
- * https://developers.thoughtspot.com/docs/?pageid=embed-a-viz
20885
+ * https://developers.thoughtspot.com/docs/embed-liveboard
20886
+ * https://developers.thoughtspot.com/docs/embed-a-viz
20773
20887
  * @summary Liveboard & visualization embed
20774
20888
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
20775
20889
  */
@@ -20777,6 +20891,7 @@ const addPreviewStylesIfNotPresent = () => {
20777
20891
  * Embed a ThoughtSpot Liveboard or visualization. When rendered it already
20778
20892
  * waits for the authentication to complete, so you need not wait for
20779
20893
  * `AuthStatus.SUCCESS`.
20894
+ * @group Embed components
20780
20895
  * @example
20781
20896
  * ```js
20782
20897
  * import { .. } from '@thoughtspot/visual-embed-sdk';
@@ -20786,7 +20901,6 @@ const addPreviewStylesIfNotPresent = () => {
20786
20901
  * // .. other params here.
20787
20902
  * })
20788
20903
  * ```
20789
- * @group Embed components
20790
20904
  */
20791
20905
  class LiveboardEmbed extends V1Embed {
20792
20906
  constructor(domSelector, viewConfig) {
@@ -20894,7 +21008,7 @@ class LiveboardEmbed extends V1Embed {
20894
21008
  if (preventLiveboardFilterRemoval) {
20895
21009
  params[Param.preventLiveboardFilterRemoval] = true;
20896
21010
  }
20897
- if (!isUndefined$1(updatedSpotterChatPrompt)) {
21011
+ if (!isUndefined(updatedSpotterChatPrompt)) {
20898
21012
  params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
20899
21013
  }
20900
21014
  if (visibleVizs) {
@@ -21073,7 +21187,7 @@ class LiveboardEmbed extends V1Embed {
21073
21187
  });
21074
21188
  }
21075
21189
  async handleRenderForPrerender() {
21076
- if (isUndefined$1(this.viewConfig.liveboardId)) {
21190
+ if (isUndefined(this.viewConfig.liveboardId)) {
21077
21191
  return this.prerenderGeneric();
21078
21192
  }
21079
21193
  return super.handleRenderForPrerender();
@@ -21176,12 +21290,13 @@ class PinboardEmbed extends LiveboardEmbed {
21176
21290
  /**
21177
21291
  * Copyright (c) 2022
21178
21292
  *
21179
- * Embed ThoughtSpot search or a saved answer
21293
+ * Embed ThoughtSpot search or a saved answer.
21294
+ * https://developers.thoughtspot.com/docs/search-embed
21180
21295
  * @summary Search embed
21181
21296
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
21182
21297
  */
21183
21298
  /**
21184
- * Define the initial state os column custom group accordions
21299
+ * Define the initial state of column custom group accordions
21185
21300
  * in data panel v2.
21186
21301
  */
21187
21302
  var DataPanelCustomColumnGroupsAccordionState;
@@ -21358,7 +21473,7 @@ class SearchEmbed extends TsEmbed {
21358
21473
 
21359
21474
  /**
21360
21475
  * Embed ThoughtSpot search bar
21361
- * @version: SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
21476
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
21362
21477
  * @group Embed components
21363
21478
  */
21364
21479
  class SearchBarEmbed extends TsEmbed {
@@ -21859,6 +21974,8 @@ class ConversationMessage extends TsEmbed {
21859
21974
  /**
21860
21975
  * Create a conversation embed, which can be integrated inside
21861
21976
  * chatbots or other conversational interfaces.
21977
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
21978
+ * @group Embed components
21862
21979
  * @example
21863
21980
  * ```js
21864
21981
  * import { SpotterAgentEmbed } from '@thoughtspot/visual-embed-sdk';
@@ -21872,8 +21989,6 @@ class ConversationMessage extends TsEmbed {
21872
21989
  * // append the container to the DOM
21873
21990
  * document.body.appendChild(container); // or to any other element
21874
21991
  * ```
21875
- * @group Embed components
21876
- * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
21877
21992
  */
21878
21993
  class SpotterAgentEmbed {
21879
21994
  constructor(viewConfig) {
@@ -21927,8 +22042,9 @@ class SpotterAgentEmbed {
21927
22042
  /**
21928
22043
  * Create a conversation embed, which can be integrated inside
21929
22044
  * chatbots or other conversational interfaces.
21930
- * @deprecated from SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
21931
22045
  * Use {@link SpotterAgentEmbed} instead
22046
+ * @deprecated from SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
22047
+ * @group Embed components
21932
22048
  * @example
21933
22049
  * ```js
21934
22050
  * import { SpotterAgentEmbed } from '@thoughtspot/visual-embed-sdk';
@@ -21942,7 +22058,6 @@ class SpotterAgentEmbed {
21942
22058
  * // append the container to the DOM
21943
22059
  * document.body.appendChild(container); // or to any other element
21944
22060
  * ```
21945
- * @group Embed components
21946
22061
  */
21947
22062
  class BodylessConversation extends SpotterAgentEmbed {
21948
22063
  constructor(viewConfig) {
@@ -21950,31 +22065,9 @@ class BodylessConversation extends SpotterAgentEmbed {
21950
22065
  }
21951
22066
  }
21952
22067
 
21953
- /**
21954
- * Checks if `value` is `undefined`.
21955
- *
21956
- * @static
21957
- * @since 0.1.0
21958
- * @memberOf _
21959
- * @category Lang
21960
- * @param {*} value The value to check.
21961
- * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
21962
- * @example
21963
- *
21964
- * _.isUndefined(void 0);
21965
- * // => true
21966
- *
21967
- * _.isUndefined(null);
21968
- * // => false
21969
- */
21970
- function isUndefined(value) {
21971
- return value === undefined;
21972
- }
21973
-
21974
- var isUndefined_1 = isUndefined;
21975
-
21976
22068
  /**
21977
22069
  * Embed ThoughtSpot AI Conversation.
22070
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
21978
22071
  * @group Embed components
21979
22072
  * @example
21980
22073
  * ```js
@@ -21986,7 +22079,6 @@ var isUndefined_1 = isUndefined;
21986
22079
  * });
21987
22080
  * conversation.render();
21988
22081
  * ```
21989
- * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
21990
22082
  */
21991
22083
  class SpotterEmbed extends TsEmbed {
21992
22084
  constructor(container, viewConfig) {
@@ -22002,7 +22094,11 @@ class SpotterEmbed extends TsEmbed {
22002
22094
  getEmbedParamsObject() {
22003
22095
  const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, updatedSpotterChatPrompt, spotterSidebarConfig, spotterChatConfig, } = this.viewConfig;
22004
22096
  // Extract sidebar config properties
22005
- const { enablePastConversationsSidebar, spotterSidebarTitle, spotterSidebarDefaultExpanded, spotterChatRenameLabel, spotterChatDeleteLabel, spotterDeleteConversationModalTitle, spotterPastConversationAlertMessage, spotterDocumentationUrl, spotterBestPracticesLabel, spotterConversationsBatchSize, spotterNewChatButtonTitle, } = spotterSidebarConfig || {};
22097
+ const { enablePastConversationsSidebar: sidebarEnablePastConversationsSidebar, spotterSidebarTitle, spotterSidebarDefaultExpanded, spotterChatRenameLabel, spotterChatDeleteLabel, spotterDeleteConversationModalTitle, spotterPastConversationAlertMessage, spotterDocumentationUrl, spotterBestPracticesLabel, spotterConversationsBatchSize, spotterNewChatButtonTitle, } = spotterSidebarConfig || {};
22098
+ const resolvedEnablePastConversationsSidebar = resolveEnablePastConversationsSidebar({
22099
+ spotterSidebarConfigValue: sidebarEnablePastConversationsSidebar,
22100
+ standaloneValue: this.viewConfig.enablePastConversationsSidebar,
22101
+ });
22006
22102
  if (!worksheetId) {
22007
22103
  this.handleError({
22008
22104
  errorType: ErrorDetailsTypes.VALIDATION_ERROR,
@@ -22020,6 +22116,7 @@ class SpotterEmbed extends TsEmbed {
22020
22116
  setParamIfDefined(queryParams, Param.ShowSpotterLimitations, showSpotterLimitations, true);
22021
22117
  setParamIfDefined(queryParams, Param.HideSampleQuestions, hideSampleQuestions, true);
22022
22118
  setParamIfDefined(queryParams, Param.UpdatedSpotterChatPrompt, updatedSpotterChatPrompt, true);
22119
+ setParamIfDefined(queryParams, Param.EnablePastConversationsSidebar, resolvedEnablePastConversationsSidebar, true);
22023
22120
  setParamIfDefined(queryParams, Param.SpotterSidebarDefaultExpanded, spotterSidebarDefaultExpanded, true);
22024
22121
  // String params
22025
22122
  setParamIfDefined(queryParams, Param.SpotterSidebarTitle, spotterSidebarTitle);
@@ -22054,13 +22151,9 @@ class SpotterEmbed extends TsEmbed {
22054
22151
  return queryParams;
22055
22152
  }
22056
22153
  getIframeSrc() {
22057
- const { worksheetId, searchOptions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, spotterSidebarConfig, } = this.viewConfig;
22154
+ const { worksheetId, searchOptions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, } = this.viewConfig;
22058
22155
  const path = 'insights/conv-assist';
22059
22156
  const queryParams = this.getEmbedParamsObject();
22060
- const enablePastConversationsSidebar = spotterSidebarConfig === null || spotterSidebarConfig === void 0 ? void 0 : spotterSidebarConfig.enablePastConversationsSidebar;
22061
- if (!isUndefined_1(enablePastConversationsSidebar)) {
22062
- queryParams[Param.EnablePastConversationsSidebar] = !!enablePastConversationsSidebar;
22063
- }
22064
22157
  let query = '';
22065
22158
  const queryParamsString = getQueryParamString(queryParams, true);
22066
22159
  if (queryParamsString) {
@@ -22089,8 +22182,9 @@ class SpotterEmbed extends TsEmbed {
22089
22182
  }
22090
22183
  /**
22091
22184
  * Embed ThoughtSpot AI Conversation.
22092
- * @deprecated from SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
22093
22185
  * Use {@link SpotterEmbed} instead
22186
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
22187
+ * @deprecated from SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
22094
22188
  * @group Embed components
22095
22189
  * @example
22096
22190
  * ```js
@@ -22102,7 +22196,6 @@ class SpotterEmbed extends TsEmbed {
22102
22196
  * });
22103
22197
  * conversation.render();
22104
22198
  * ```
22105
- * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
22106
22199
  */
22107
22200
  class ConversationEmbed extends SpotterEmbed {
22108
22201
  constructor(container, viewConfig) {
@@ -22126,7 +22219,7 @@ class ConversationEmbed extends SpotterEmbed {
22126
22219
  */
22127
22220
  /**
22128
22221
  * Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
22129
- * @version: SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
22222
+ * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
22130
22223
  *
22131
22224
  * Note: This embed will be deprecated from SDK: 1.40.0 | ThoughtSpot: 10.13.0.cl
22132
22225
  * @group Embed components