@thoughtspot/visual-embed-sdk 1.42.1-alpha.7 → 1.42.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/cjs/package.json +4 -3
  2. package/cjs/src/css-variables.d.ts +0 -48
  3. package/cjs/src/css-variables.d.ts.map +1 -1
  4. package/cjs/src/embed/app.d.ts +20 -0
  5. package/cjs/src/embed/app.d.ts.map +1 -1
  6. package/cjs/src/embed/app.js +9 -4
  7. package/cjs/src/embed/app.js.map +1 -1
  8. package/cjs/src/embed/app.spec.js +62 -0
  9. package/cjs/src/embed/app.spec.js.map +1 -1
  10. package/cjs/src/embed/base.d.ts.map +1 -1
  11. package/cjs/src/embed/base.js +2 -0
  12. package/cjs/src/embed/base.js.map +1 -1
  13. package/cjs/src/embed/bodyless-conversation.d.ts +1 -1
  14. package/cjs/src/embed/conversation.d.ts +16 -0
  15. package/cjs/src/embed/conversation.d.ts.map +1 -1
  16. package/cjs/src/embed/conversation.js +5 -2
  17. package/cjs/src/embed/conversation.js.map +1 -1
  18. package/cjs/src/embed/conversation.spec.js +25 -1
  19. package/cjs/src/embed/conversation.spec.js.map +1 -1
  20. package/cjs/src/embed/hostEventClient/contracts.d.ts +1 -11
  21. package/cjs/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  22. package/cjs/src/embed/hostEventClient/contracts.js +0 -1
  23. package/cjs/src/embed/hostEventClient/contracts.js.map +1 -1
  24. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  25. package/cjs/src/embed/liveboard.js +5 -1
  26. package/cjs/src/embed/liveboard.js.map +1 -1
  27. package/cjs/src/embed/liveboard.spec.js +46 -0
  28. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  29. package/cjs/src/embed/sage.d.ts +4 -4
  30. package/cjs/src/embed/search.d.ts.map +1 -1
  31. package/cjs/src/embed/search.js +1 -3
  32. package/cjs/src/embed/search.js.map +1 -1
  33. package/cjs/src/embed/ts-embed.d.ts +0 -2
  34. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  35. package/cjs/src/embed/ts-embed.js +31 -44
  36. package/cjs/src/embed/ts-embed.js.map +1 -1
  37. package/cjs/src/embed/ts-embed.spec.js +134 -43
  38. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  39. package/cjs/src/errors.js +1 -1
  40. package/cjs/src/errors.js.map +1 -1
  41. package/cjs/src/index.d.ts +3 -3
  42. package/cjs/src/index.d.ts.map +1 -1
  43. package/cjs/src/index.js +1 -2
  44. package/cjs/src/index.js.map +1 -1
  45. package/cjs/src/react/all-types-export.d.ts +1 -2
  46. package/cjs/src/react/all-types-export.d.ts.map +1 -1
  47. package/cjs/src/react/all-types-export.js +5 -3
  48. package/cjs/src/react/all-types-export.js.map +1 -1
  49. package/cjs/src/react/all-types-export.spec.js +0 -8
  50. package/cjs/src/react/all-types-export.spec.js.map +1 -1
  51. package/cjs/src/react/index.d.ts +1 -2
  52. package/cjs/src/react/index.d.ts.map +1 -1
  53. package/cjs/src/react/index.js +2 -1
  54. package/cjs/src/react/index.js.map +1 -1
  55. package/cjs/src/react/util.d.ts +1 -0
  56. package/cjs/src/react/util.d.ts.map +1 -1
  57. package/cjs/src/types.d.ts +80 -94
  58. package/cjs/src/types.d.ts.map +1 -1
  59. package/cjs/src/types.js +30 -46
  60. package/cjs/src/types.js.map +1 -1
  61. package/cjs/src/utils/custom-actions.d.ts.map +1 -1
  62. package/cjs/src/utils/custom-actions.js +9 -0
  63. package/cjs/src/utils/custom-actions.js.map +1 -1
  64. package/cjs/src/utils/custom-actions.spec.js +20 -0
  65. package/cjs/src/utils/custom-actions.spec.js.map +1 -1
  66. package/cjs/src/utils/processData.d.ts +1 -1
  67. package/cjs/src/utils/processData.d.ts.map +1 -1
  68. package/cjs/src/utils/processData.js +8 -8
  69. package/cjs/src/utils/processData.js.map +1 -1
  70. package/cjs/src/utils/processData.spec.js.map +1 -1
  71. package/dist/{index-DvNA626T.js → index-SVcLgSqi.js} +1 -1
  72. package/dist/src/css-variables.d.ts +0 -48
  73. package/dist/src/css-variables.d.ts.map +1 -1
  74. package/dist/src/embed/app.d.ts +20 -0
  75. package/dist/src/embed/app.d.ts.map +1 -1
  76. package/dist/src/embed/base.d.ts.map +1 -1
  77. package/dist/src/embed/bodyless-conversation.d.ts +1 -1
  78. package/dist/src/embed/conversation.d.ts +16 -0
  79. package/dist/src/embed/conversation.d.ts.map +1 -1
  80. package/dist/src/embed/hostEventClient/contracts.d.ts +1 -11
  81. package/dist/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  82. package/dist/src/embed/liveboard.d.ts.map +1 -1
  83. package/dist/src/embed/sage.d.ts +4 -4
  84. package/dist/src/embed/search.d.ts.map +1 -1
  85. package/dist/src/embed/ts-embed.d.ts +0 -2
  86. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  87. package/dist/src/index.d.ts +3 -3
  88. package/dist/src/index.d.ts.map +1 -1
  89. package/dist/src/react/all-types-export.d.ts +1 -2
  90. package/dist/src/react/all-types-export.d.ts.map +1 -1
  91. package/dist/src/react/index.d.ts +1 -2
  92. package/dist/src/react/index.d.ts.map +1 -1
  93. package/dist/src/react/util.d.ts +1 -0
  94. package/dist/src/react/util.d.ts.map +1 -1
  95. package/dist/src/types.d.ts +80 -94
  96. package/dist/src/types.d.ts.map +1 -1
  97. package/dist/src/utils/custom-actions.d.ts.map +1 -1
  98. package/dist/src/utils/processData.d.ts +1 -1
  99. package/dist/src/utils/processData.d.ts.map +1 -1
  100. package/dist/tsembed-react.es.js +114 -224
  101. package/dist/tsembed-react.js +258 -444
  102. package/dist/tsembed.es.js +113 -224
  103. package/dist/tsembed.js +256 -443
  104. package/dist/visual-embed-sdk-react-full.d.ts +126 -161
  105. package/dist/visual-embed-sdk-react.d.ts +117 -156
  106. package/dist/visual-embed-sdk.d.ts +117 -159
  107. package/lib/package.json +4 -3
  108. package/lib/src/css-variables.d.ts +0 -48
  109. package/lib/src/css-variables.d.ts.map +1 -1
  110. package/lib/src/embed/app.d.ts +20 -0
  111. package/lib/src/embed/app.d.ts.map +1 -1
  112. package/lib/src/embed/app.js +9 -4
  113. package/lib/src/embed/app.js.map +1 -1
  114. package/lib/src/embed/app.spec.js +62 -0
  115. package/lib/src/embed/app.spec.js.map +1 -1
  116. package/lib/src/embed/base.d.ts.map +1 -1
  117. package/lib/src/embed/base.js +2 -0
  118. package/lib/src/embed/base.js.map +1 -1
  119. package/lib/src/embed/bodyless-conversation.d.ts +1 -1
  120. package/lib/src/embed/conversation.d.ts +16 -0
  121. package/lib/src/embed/conversation.d.ts.map +1 -1
  122. package/lib/src/embed/conversation.js +5 -2
  123. package/lib/src/embed/conversation.js.map +1 -1
  124. package/lib/src/embed/conversation.spec.js +25 -1
  125. package/lib/src/embed/conversation.spec.js.map +1 -1
  126. package/lib/src/embed/hostEventClient/contracts.d.ts +1 -11
  127. package/lib/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  128. package/lib/src/embed/hostEventClient/contracts.js +0 -1
  129. package/lib/src/embed/hostEventClient/contracts.js.map +1 -1
  130. package/lib/src/embed/liveboard.d.ts.map +1 -1
  131. package/lib/src/embed/liveboard.js +5 -1
  132. package/lib/src/embed/liveboard.js.map +1 -1
  133. package/lib/src/embed/liveboard.spec.js +47 -1
  134. package/lib/src/embed/liveboard.spec.js.map +1 -1
  135. package/lib/src/embed/sage.d.ts +4 -4
  136. package/lib/src/embed/search.d.ts.map +1 -1
  137. package/lib/src/embed/search.js +1 -3
  138. package/lib/src/embed/search.js.map +1 -1
  139. package/lib/src/embed/ts-embed.d.ts +0 -2
  140. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  141. package/lib/src/embed/ts-embed.js +31 -44
  142. package/lib/src/embed/ts-embed.js.map +1 -1
  143. package/lib/src/embed/ts-embed.spec.js +134 -43
  144. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  145. package/lib/src/errors.js +1 -1
  146. package/lib/src/errors.js.map +1 -1
  147. package/lib/src/index.d.ts +3 -3
  148. package/lib/src/index.d.ts.map +1 -1
  149. package/lib/src/index.js +2 -2
  150. package/lib/src/index.js.map +1 -1
  151. package/lib/src/react/all-types-export.d.ts +1 -2
  152. package/lib/src/react/all-types-export.d.ts.map +1 -1
  153. package/lib/src/react/all-types-export.js +2 -2
  154. package/lib/src/react/all-types-export.js.map +1 -1
  155. package/lib/src/react/all-types-export.spec.js +0 -8
  156. package/lib/src/react/all-types-export.spec.js.map +1 -1
  157. package/lib/src/react/index.d.ts +1 -2
  158. package/lib/src/react/index.d.ts.map +1 -1
  159. package/lib/src/react/index.js +4 -3
  160. package/lib/src/react/index.js.map +1 -1
  161. package/lib/src/react/util.d.ts +1 -0
  162. package/lib/src/react/util.d.ts.map +1 -1
  163. package/lib/src/types.d.ts +80 -94
  164. package/lib/src/types.d.ts.map +1 -1
  165. package/lib/src/types.js +29 -45
  166. package/lib/src/types.js.map +1 -1
  167. package/lib/src/utils/custom-actions.d.ts.map +1 -1
  168. package/lib/src/utils/custom-actions.js +9 -0
  169. package/lib/src/utils/custom-actions.js.map +1 -1
  170. package/lib/src/utils/custom-actions.spec.js +20 -0
  171. package/lib/src/utils/custom-actions.spec.js.map +1 -1
  172. package/lib/src/utils/processData.d.ts +1 -1
  173. package/lib/src/utils/processData.d.ts.map +1 -1
  174. package/lib/src/utils/processData.js +8 -8
  175. package/lib/src/utils/processData.js.map +1 -1
  176. package/lib/src/utils/processData.spec.js.map +1 -1
  177. package/package.json +4 -3
  178. package/src/css-variables.ts +0 -58
  179. package/src/embed/app.spec.ts +87 -0
  180. package/src/embed/app.ts +35 -4
  181. package/src/embed/base.ts +2 -0
  182. package/src/embed/bodyless-conversation.ts +1 -1
  183. package/src/embed/conversation.spec.ts +35 -1
  184. package/src/embed/conversation.ts +22 -0
  185. package/src/embed/hostEventClient/contracts.ts +0 -10
  186. package/src/embed/liveboard.spec.ts +60 -0
  187. package/src/embed/liveboard.ts +9 -0
  188. package/src/embed/sage.ts +4 -4
  189. package/src/embed/search.ts +1 -3
  190. package/src/embed/ts-embed.spec.ts +175 -53
  191. package/src/embed/ts-embed.ts +45 -68
  192. package/src/errors.ts +1 -1
  193. package/src/index.ts +3 -4
  194. package/src/react/all-types-export.spec.ts +1 -9
  195. package/src/react/all-types-export.ts +8 -10
  196. package/src/react/index.tsx +130 -155
  197. package/src/types.ts +78 -94
  198. package/src/utils/custom-actions.spec.ts +22 -0
  199. package/src/utils/custom-actions.ts +11 -0
  200. package/src/utils/processData.spec.ts +1 -0
  201. package/src/utils/processData.ts +11 -11
  202. package/cjs/src/api-intercept.d.ts +0 -31
  203. package/cjs/src/api-intercept.d.ts.map +0 -1
  204. package/cjs/src/api-intercept.js +0 -119
  205. package/cjs/src/api-intercept.js.map +0 -1
  206. package/cjs/src/api-intercept.spec.d.ts +0 -2
  207. package/cjs/src/api-intercept.spec.d.ts.map +0 -1
  208. package/cjs/src/api-intercept.spec.js +0 -122
  209. package/cjs/src/api-intercept.spec.js.map +0 -1
  210. package/dist/index-BCC3Z072.js +0 -7371
  211. package/dist/index-BEzW4MDA.js +0 -7371
  212. package/dist/index-BaESA9rq.js +0 -7371
  213. package/dist/index-CFNZIcKr.js +0 -7447
  214. package/dist/index-CqKTa1Fe.js +0 -7447
  215. package/dist/index-DFnPKcjZ.js +0 -7447
  216. package/dist/index-DhFH7b7U.js +0 -7447
  217. package/dist/src/api-intercept.d.ts +0 -31
  218. package/dist/src/api-intercept.d.ts.map +0 -1
  219. package/dist/src/api-intercept.spec.d.ts +0 -2
  220. package/dist/src/api-intercept.spec.d.ts.map +0 -1
  221. package/lib/src/api-intercept.d.ts +0 -31
  222. package/lib/src/api-intercept.d.ts.map +0 -1
  223. package/lib/src/api-intercept.js +0 -112
  224. package/lib/src/api-intercept.js.map +0 -1
  225. package/lib/src/api-intercept.spec.d.ts +0 -2
  226. package/lib/src/api-intercept.spec.d.ts.map +0 -1
  227. package/lib/src/api-intercept.spec.js +0 -119
  228. package/lib/src/api-intercept.spec.js.map +0 -1
  229. package/src/api-intercept.ts +0 -139
@@ -393,30 +393,14 @@ export interface CustomCssVariables {
393
393
  * Background color of checkbox.
394
394
  */
395
395
  "--ts-var-checkbox-background-color"?: string;
396
- /**
397
- * Height of the tiles in the Liveboard.
398
- */
399
- "--ts-var-viz-tile-height"?: string;
400
396
  /**
401
397
  * Background color of the layout in the Liveboard.
402
398
  */
403
399
  "--ts-var-liveboard-layout-background"?: string;
404
- /**
405
- * Font color of the title of the layout in the Liveboard.
406
- */
407
- "--ts-var-liveboard-layout-title-color"?: string;
408
- /**
409
- * Font size of the title of the layout in the Liveboard.
410
- */
411
- "--ts-var-liveboard-layout-title-fontsize"?: string;
412
400
  /**
413
401
  * Background color of the header in the Liveboard.
414
402
  */
415
403
  "--ts-var-liveboard-header-background"?: string;
416
- /**
417
- * Font size of the header in the Liveboard.
418
- */
419
- "--ts-var-liveboard-header-fontsize"?: string;
420
404
  /**
421
405
  * Font color of the header in the Liveboard.
422
406
  */
@@ -447,12 +431,6 @@ export interface CustomCssVariables {
447
431
  * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
448
432
  */
449
433
  "--ts-var-liveboard-group-padding"?: string;
450
- /**
451
- * Padding of the title of the groups in the Liveboard.
452
- *
453
- * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
454
- */
455
- "--ts-var-liveboard-group-title-padding"?: string;
456
434
  /**
457
435
  * Font size of the title of the groups in the Liveboard.
458
436
  *
@@ -477,24 +455,6 @@ export interface CustomCssVariables {
477
455
  * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
478
456
  */
479
457
  "--ts-var-liveboard-group-tile-title-font-weight"?: string;
480
- /**
481
- * Font size of the description of the groups in the Liveboard.
482
- *
483
- * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
484
- */
485
- "--ts-var-liveboard-group-description-font-size"?: string;
486
- /**
487
- * Font weight of the description of the groups in the Liveboard.
488
- *
489
- * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
490
- */
491
- "--ts-var-liveboard-group-description-font-weight"?: string;
492
- /**
493
- * Border of the group tiles in the Liveboard.
494
- *
495
- * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
496
- */
497
- "--ts-var-liveboard-group-tile-border"?: string;
498
458
  /**
499
459
  * Padding of the group tiles in the Liveboard.
500
460
  *
@@ -615,14 +575,6 @@ export interface CustomCssVariables {
615
575
  * Font weight of the title of the tiles in the Liveboard.
616
576
  */
617
577
  "--ts-var-liveboard-tile-title-fontweight"?: string;
618
- /**
619
- * Font weight of the description of the tiles in the Liveboard.
620
- */
621
- "--ts-var-liveboard-tile-description-font-weight"?: string;
622
- /**
623
- * Opacity of the description of the tiles in the Liveboard.
624
- */
625
- "--ts-var-liveboard-tile-description-opacity"?: string;
626
578
  /**
627
579
  * Background color of the parameter chips in the Liveboard.
628
580
  */
@@ -1201,7 +1153,7 @@ export interface CustomisationsInterface {
1201
1153
  * if a trusted authentication server is used.
1202
1154
  * @group Authentication / Init
1203
1155
  */
1204
- export interface EmbedConfig extends InterceptV2Flags {
1156
+ export interface EmbedConfig {
1205
1157
  /**
1206
1158
  * The ThoughtSpot cluster hostname or IP address.
1207
1159
  */
@@ -1543,6 +1495,18 @@ export interface EmbedConfig extends InterceptV2Flags {
1543
1495
  * ```
1544
1496
  */
1545
1497
  customActions?: CustomAction[];
1498
+ /**
1499
+ * Wait for the cleanup to be completed before destroying the embed.
1500
+ * @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
1501
+ * @default false
1502
+ */
1503
+ waitForCleanupOnDestroy?: boolean;
1504
+ /**
1505
+ * The timeout for the cleanup to be completed before destroying the embed.
1506
+ * @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
1507
+ * @default 5000
1508
+ */
1509
+ cleanupTimeout?: number;
1546
1510
  }
1547
1511
  export interface LayoutConfig {
1548
1512
  }
@@ -1574,7 +1538,7 @@ export interface FrameParams {
1574
1538
  /**
1575
1539
  * The common configuration object for an embedded view.
1576
1540
  */
1577
- export interface BaseViewConfig extends InterceptV2Flags {
1541
+ export interface BaseViewConfig {
1578
1542
  /**
1579
1543
  * @hidden
1580
1544
  */
@@ -2356,6 +2320,24 @@ export interface LiveboardAppEmbedViewConfig {
2356
2320
  * ```
2357
2321
  */
2358
2322
  liveboardXLSXCSVDownload?: boolean;
2323
+ /**
2324
+ * This flag is used to enable or disable the new centralized Liveboard filter UX (v2).
2325
+ * When enabled, a unified modal is used to manage and update multiple filters at once,
2326
+ * replacing the older individual filter interactions.
2327
+ * To enable this feature on your instance, contact ThoughtSpot Support.
2328
+ *
2329
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
2330
+ * @version SDK: 1.42.0 | ThoughtSpot: 10.15.0.cl
2331
+ * @example
2332
+ * ```js
2333
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
2334
+ * const embed = new <EmbedComponent>('#tsEmbed', {
2335
+ * ... // other embed view config
2336
+ * isCentralizedLiveboardFilterUXEnabled: true,
2337
+ * })
2338
+ * ```
2339
+ */
2340
+ isCentralizedLiveboardFilterUXEnabled?: boolean;
2359
2341
  /**
2360
2342
  * This flag is used to enable or disable the link parameters in liveboard.
2361
2343
  *
@@ -2371,6 +2353,21 @@ export interface LiveboardAppEmbedViewConfig {
2371
2353
  * ```
2372
2354
  */
2373
2355
  isLinkParametersEnabled?: boolean;
2356
+ /**
2357
+ * This flag is used to enable or disable the enhanced filter interactivity in liveboard.
2358
+ *
2359
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
2360
+ * @version SDK: 1.42.0 | ThoughtSpot: 10.15.0.cl
2361
+ * @example
2362
+ * ```js
2363
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
2364
+ * const embed = new <EmbedComponent>('#tsEmbed', {
2365
+ * ... // other embed view config
2366
+ * isEnhancedFilterInteractivityEnabled: true,
2367
+ * })
2368
+ * ```
2369
+ */
2370
+ isEnhancedFilterInteractivityEnabled?: boolean;
2374
2371
  }
2375
2372
  export interface AllEmbedViewConfig extends BaseViewConfig, SearchLiveboardCommonViewConfig, HomePageConfig, LiveboardAppEmbedViewConfig {
2376
2373
  }
@@ -3569,7 +3566,7 @@ export declare enum EmbedEvent {
3569
3566
  * the table visualization.
3570
3567
  *
3571
3568
  * If the Row-Level Security (RLS) rules are applied on the
3572
- * Worksheet or Model, exercise caution when changing column
3569
+ * Model, exercise caution when changing column
3573
3570
  * or table cell values to maintain data security.
3574
3571
  *
3575
3572
  * @example
@@ -3627,7 +3624,7 @@ export declare enum EmbedEvent {
3627
3624
  */
3628
3625
  SpotterData = "SpotterData",
3629
3626
  /**
3630
- * Emitted when user opens up the worksheet preview modal in Spotter embed.
3627
+ * Emitted when user opens up the data source preview modal in Spotter embed.
3631
3628
  * @example
3632
3629
  * ```js
3633
3630
  * spotterEmbed.on(EmbedEvent.PreviewSpotterData, (payload) => {
@@ -3714,22 +3711,7 @@ export declare enum EmbedEvent {
3714
3711
  * ```
3715
3712
  * @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
3716
3713
  */
3717
- OrgSwitched = "orgSwitched",
3718
- /**
3719
- * Emitted when the user intercepts a URL.
3720
- *
3721
- * Supported on all embed types.
3722
- *
3723
- * @example
3724
- * ```js
3725
- * embed.on(EmbedEvent.ApiIntercept, (payload) => {
3726
- * console.log('payload', payload);
3727
- * })
3728
- * ```
3729
- *
3730
- * @version SDK: 1.42.0 | ThoughtSpot: 10.14.0.cl
3731
- */
3732
- ApiIntercept = "ApiIntercept"
3714
+ OrgSwitched = "orgSwitched"
3733
3715
  }
3734
3716
  /**
3735
3717
  * Event types that can be triggered by the host application
@@ -3867,9 +3849,7 @@ export declare enum HostEvent {
3867
3849
  */
3868
3850
  Reload = "reload",
3869
3851
  /**
3870
- * Get iframe URL for the current embed view on the playground.
3871
- * Developers can use this URL to embed a ThoughtSpot object
3872
- * in apps like Salesforce or Sharepoint.
3852
+ * Get iframe URL for the current embed view.
3873
3853
  * @example
3874
3854
  * ```js
3875
3855
  * const url = embed.trigger(HostEvent.GetIframeUrl);
@@ -4941,7 +4921,7 @@ export declare enum HostEvent {
4941
4921
  */
4942
4922
  EditLastPrompt = "EditLastPrompt",
4943
4923
  /**
4944
- * Opens the Worksheet preview modal in Spotter Embed.
4924
+ * Opens the data source preview modal in Spotter Embed.
4945
4925
  * @example
4946
4926
  * ```js
4947
4927
  * spotterEmbed.trigger(HostEvent.PreviewSpotterData);
@@ -5022,7 +5002,16 @@ export declare enum HostEvent {
5022
5002
  * liveboardEmbed.trigger(HostEvent.UpdateEmbedParams, viewConfig);
5023
5003
  * ```
5024
5004
  */
5025
- UpdateEmbedParams = "updateEmbedParams"
5005
+ UpdateEmbedParams = "updateEmbedParams",
5006
+ /**
5007
+ * Triggered when the embed is needed to be destroyed. This is used to clean up any embed related resources internally.
5008
+ * @example
5009
+ * ```js
5010
+ * liveboardEmbed.trigger(HostEvent.DestroyEmbed);
5011
+ * ```
5012
+ * @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
5013
+ */
5014
+ DestroyEmbed = "EmbedDestroyed"
5026
5015
  }
5027
5016
  /**
5028
5017
  * The different visual modes that the data sources panel within
@@ -5152,7 +5141,7 @@ export declare enum Action {
5152
5141
  */
5153
5142
  SchedulesList = "schedule-list",
5154
5143
  /**
5155
- * The **Share** action on a Liveboard, Answer, or Worksheet.
5144
+ * The **Share** action on a Liveboard, Answer, or Model.
5156
5145
  * Allows users to share an object with other users and groups.
5157
5146
  * @example
5158
5147
  * ```js
@@ -5610,7 +5599,7 @@ export declare enum Action {
5610
5599
  AnswerChartSwitcher = "answerChartSwitcher",
5611
5600
  /**
5612
5601
  * The Favorites icon (*) for Answers,
5613
- * Liveboard, and data objects like Worksheet, Model,
5602
+ * Liveboard, and data objects like Model,
5614
5603
  * Tables and Views.
5615
5604
  * Allows adding an object to the user's favorites list.
5616
5605
  * @example
@@ -6343,7 +6332,17 @@ export declare enum Action {
6343
6332
  * ```
6344
6333
  * @version SDK: 1.42.0 | ThoughtSpot Cloud: 10.14.0.cl
6345
6334
  */
6346
- RemoveAttachment = "removeAttachment"
6335
+ RemoveAttachment = "removeAttachment",
6336
+ /**
6337
+ * The **Style panel** on a Liveboard.
6338
+ * Controls the visibility of the Liveboard style panel.
6339
+ * @example
6340
+ * ```js
6341
+ * hiddenActions: [Action.LiveboardStylePanel]
6342
+ * ```
6343
+ * @version SDK: 1.43.0 | ThoughtSpot Cloud: 10.15.0.cl
6344
+ */
6345
+ LiveboardStylePanel = "liveboardStylePanel"
6347
6346
  }
6348
6347
  export declare enum PrefetchFeatures {
6349
6348
  FullApp = "FullApp",
@@ -6391,12 +6390,19 @@ export interface CustomAction {
6391
6390
  orgIds?: string[];
6392
6391
  groupIds?: string[];
6393
6392
  }
6394
- declare enum CustomActionsPosition {
6393
+ /**
6394
+ * Enum options to show custom actions at different
6395
+ * positions in the application.
6396
+ */
6397
+ export declare enum CustomActionsPosition {
6395
6398
  PRIMARY = "PRIMARY",
6396
6399
  MENU = "MENU",
6397
6400
  CONTEXTMENU = "CONTEXTMENU"
6398
6401
  }
6399
- declare enum CustomActionTarget {
6402
+ /**
6403
+ * Enum options to mention the target of the custom action.
6404
+ */
6405
+ export declare enum CustomActionTarget {
6400
6406
  LIVEBOARD = "LIVEBOARD",
6401
6407
  VIZ = "VIZ",
6402
6408
  ANSWER = "ANSWER",
@@ -6492,71 +6498,6 @@ export interface DefaultAppInitData {
6492
6498
  hiddenListColumns: ListPageColumns[];
6493
6499
  customActions: CustomAction[];
6494
6500
  }
6495
- /**
6496
- * Enum for the type of API intercepted
6497
- */
6498
- export declare enum InterceptedApiType {
6499
- /**
6500
- * The apis that are use to get the metadata for the embed
6501
- */
6502
- METADATA = "METADATA",
6503
- /**
6504
- * The apis that are use to get the data for the embed
6505
- */
6506
- ANSWER_DATA = "ANSWER_DATA",
6507
- /**
6508
- * This will intercept all the apis
6509
- */
6510
- ALL = "ALL",
6511
- /**
6512
- * The apis that are use to get the data for the liveboard
6513
- */
6514
- LIVEBOARD_DATA = "LIVEBOARD_DATA"
6515
- }
6516
- export type InterceptV2Flags = {
6517
- /**
6518
- * Enable intercepting the apis
6519
- *
6520
- * @example
6521
- * ```js
6522
- * const embed = new LiveboardEmbed('#embed', {
6523
- * ...viewConfig,
6524
- * enableApiIntercept: true,
6525
- * interceptUrls: [InterceptedApiType.DATA],
6526
- * })
6527
- * ```
6528
- *
6529
- */
6530
- enableApiIntercept?: boolean;
6531
- /**
6532
- * The apis to intercept
6533
- *
6534
- * @example
6535
- * ```js
6536
- * const embed = new LiveboardEmbed('#embed', {
6537
- * ...viewConfig,
6538
- * enableApiIntercept: true,
6539
- * interceptUrls: [InterceptedApiType.DATA],
6540
- * })
6541
- * ```
6542
- */
6543
- interceptUrls?: (string | InterceptedApiType)[];
6544
- /**
6545
- * The timeout for the intercept, default is 30000ms
6546
- * the api will error out if the timeout is reached
6547
- *
6548
- * @example
6549
- * ```js
6550
- * const embed = new LiveboardEmbed('#embed', {
6551
- * ...viewConfig,
6552
- * enableApiIntercept: true,
6553
- * interceptUrls: [InterceptedApiType.ALL],
6554
- * interceptTimeout: 1000,
6555
- * })
6556
- * ```
6557
- */
6558
- interceptTimeout?: number;
6559
- };
6560
6501
  /**
6561
6502
  * Enum for auth failure types. This is the parameter passed to the listner
6562
6503
  * of {@link AuthStatus.FAILURE}.
@@ -6665,8 +6606,7 @@ export declare enum UIPassthroughEvent {
6665
6606
  GetDiscoverabilityStatus = "getDiscoverabilityStatus",
6666
6607
  GetAvailableUIPassthroughs = "getAvailableUiPassthroughs",
6667
6608
  GetAnswerConfig = "getAnswerPageConfig",
6668
- GetLiveboardConfig = "getPinboardPageConfig",
6669
- GetUnsavedAnswerTML = "getUnsavedAnswerTML"
6609
+ GetLiveboardConfig = "getPinboardPageConfig"
6670
6610
  }
6671
6611
  export type UIPassthroughContractBase = {
6672
6612
  [UIPassthroughEvent.PinAnswerToLiveboard]: {
@@ -6721,15 +6661,6 @@ export type UIPassthroughContractBase = {
6721
6661
  request: any;
6722
6662
  response: any;
6723
6663
  };
6724
- [UIPassthroughEvent.GetUnsavedAnswerTML]: {
6725
- request: {
6726
- sessionId?: string;
6727
- vizId?: string;
6728
- };
6729
- response: {
6730
- tml: string;
6731
- };
6732
- };
6733
6664
  };
6734
6665
  export type UIPassthroughRequest<T extends keyof UIPassthroughContractBase> = UIPassthroughContractBase[T]["request"];
6735
6666
  export type UIPassthroughResponse<T extends keyof UIPassthroughContractBase> = UIPassthroughContractBase[T]["response"];
@@ -6885,7 +6816,6 @@ declare class TsEmbed {
6885
6816
  * work regardless of auth status
6886
6817
  */
6887
6818
  private subscribeToNetworkEvents;
6888
- private messageEventListener;
6889
6819
  /**
6890
6820
  * Subscribe to message events that depend on successful iframe setup
6891
6821
  */
@@ -6972,7 +6902,6 @@ declare class TsEmbed {
6972
6902
  * @param height The height in pixels
6973
6903
  */
6974
6904
  protected setIFrameHeight(height: number | string): void;
6975
- protected createEmbedEventResponder: (eventPort: MessagePort | void, eventType: EmbedEvent) => (payload: any) => void;
6976
6905
  /**
6977
6906
  * Executes all registered event handlers for a particular event type
6978
6907
  * @param eventType The event type
@@ -7702,12 +7631,12 @@ export interface SageViewConfig extends SearchLiveboardCommonViewConfig, Omit<Ba
7702
7631
  */
7703
7632
  hideSageAnswerHeader?: boolean;
7704
7633
  /**
7705
- * Disable the worksheet selection option.
7634
+ * Disable the data source selection option.
7706
7635
  * @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
7707
7636
  */
7708
7637
  disableWorksheetChange?: boolean;
7709
7638
  /**
7710
- * Hide the worksheet selection panel.
7639
+ * Hide the data source selection panel.
7711
7640
  * @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
7712
7641
  */
7713
7642
  hideWorksheetSelector?: boolean;
@@ -7725,7 +7654,7 @@ export interface SageViewConfig extends SearchLiveboardCommonViewConfig, Omit<Ba
7725
7654
  showObjectSuggestions?: boolean;
7726
7655
  /**
7727
7656
  * Show or hide sample questions.
7728
- * The sample questions are autogenerated based on the worksheet
7657
+ * The sample questions are autogenerated based on the data Model.
7729
7658
  * selected for the search operation.
7730
7659
  *
7731
7660
  * Supported embed types: `SageEmbed`
@@ -7740,7 +7669,7 @@ export interface SageViewConfig extends SearchLiveboardCommonViewConfig, Omit<Ba
7740
7669
  */
7741
7670
  hideSampleQuestions?: boolean;
7742
7671
  /**
7743
- * The data source GUID (Worksheet GUID) to set on load.
7672
+ * The data source GUID (Model GUID) to set on load.
7744
7673
  */
7745
7674
  dataSource?: string;
7746
7675
  /**
@@ -8119,6 +8048,26 @@ export interface AppViewConfig extends AllEmbedViewConfig {
8119
8048
  * ```
8120
8049
  */
8121
8050
  tag?: string;
8051
+ /**
8052
+ * Hide tag filter chips that appear when content is filtered by tags.
8053
+ * When enabled, this automatically:
8054
+ * - Hides tag filter indicators/chips from the UI
8055
+ *
8056
+ * This provides a clean interface without tag-related UI elements.
8057
+ *
8058
+ * Supported embed types: `AppEmbed`
8059
+ * @version SDK: 1.44.0 | ThoughtSpot: 10.15.0.cl
8060
+ * @example
8061
+ * ```js
8062
+ * // Simple usage - automatically hides all tag-related UI
8063
+ * const embed = new AppEmbed('#tsEmbed', {
8064
+ * ... // other embed view config
8065
+ * tag: 'Some Tag',
8066
+ * hideTagFilterChips: true, // This is all you need!
8067
+ * });
8068
+ * ```
8069
+ */
8070
+ hideTagFilterChips?: boolean;
8122
8071
  /**
8123
8072
  * The array of GUIDs to be hidden
8124
8073
  *
@@ -8865,7 +8814,7 @@ export declare class PinboardEmbed extends LiveboardEmbed {
8865
8814
  */
8866
8815
  export interface SpotterAgentEmbedViewConfig extends Omit<BaseViewConfig, "primaryAction"> {
8867
8816
  /**
8868
- * The ID of the worksheet to use for the conversation.
8817
+ * The ID of the Model to use for the conversation.
8869
8818
  */
8870
8819
  worksheetId: string;
8871
8820
  }
@@ -9049,6 +8998,22 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, "primaryAct
9049
8998
  * @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
9050
8999
  */
9051
9000
  excludeRuntimeParametersfromURL?: boolean;
9001
+ /**
9002
+ * enablePastConversationsSidebar : Controls the visibility of the past conversations
9003
+ * sidebar.
9004
+ *
9005
+ * Supported embed types: `SpotterEmbed`
9006
+ * @default false
9007
+ * @example
9008
+ * ```js
9009
+ * const embed = new SpotterEmbed('#tsEmbed', {
9010
+ * ... //other embed view config
9011
+ * enablePastConversationsSidebar : true,
9012
+ * })
9013
+ * ```
9014
+ * @version SDK: 1.43.0 | ThoughtSpot: 10.14.0.cl
9015
+ */
9016
+ enablePastConversationsSidebar?: boolean;
9052
9017
  }
9053
9018
  /**
9054
9019
  * The configuration for the embedded spotterEmbed options.