@thoughtspot/visual-embed-sdk 1.52.2-beta.2 → 1.53.0

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 (237) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/css-variables.d.ts +373 -5
  3. package/cjs/src/css-variables.d.ts.map +1 -1
  4. package/cjs/src/embed/app.d.ts +14 -0
  5. package/cjs/src/embed/app.d.ts.map +1 -1
  6. package/cjs/src/embed/app.js +6 -3
  7. package/cjs/src/embed/app.js.map +1 -1
  8. package/cjs/src/embed/app.spec.js +28 -0
  9. package/cjs/src/embed/app.spec.js.map +1 -1
  10. package/cjs/src/embed/auto-frame-renderer.d.ts.map +1 -1
  11. package/cjs/src/embed/auto-frame-renderer.js +244 -4
  12. package/cjs/src/embed/auto-frame-renderer.js.map +1 -1
  13. package/cjs/src/embed/auto-frame-renderer.spec.js +389 -0
  14. package/cjs/src/embed/auto-frame-renderer.spec.js.map +1 -1
  15. package/cjs/src/embed/bodyless-conversation.js +1 -1
  16. package/cjs/src/embed/bodyless-conversation.js.map +1 -1
  17. package/cjs/src/embed/conversation.d.ts +15 -0
  18. package/cjs/src/embed/conversation.d.ts.map +1 -1
  19. package/cjs/src/embed/conversation.js +7 -3
  20. package/cjs/src/embed/conversation.js.map +1 -1
  21. package/cjs/src/embed/conversation.spec.js +66 -0
  22. package/cjs/src/embed/conversation.spec.js.map +1 -1
  23. package/cjs/src/embed/liveboard-override-utils.d.ts +59 -0
  24. package/cjs/src/embed/liveboard-override-utils.d.ts.map +1 -0
  25. package/cjs/src/embed/liveboard-override-utils.js +19 -0
  26. package/cjs/src/embed/liveboard-override-utils.js.map +1 -0
  27. package/cjs/src/embed/liveboard-override-utils.spec.d.ts +2 -0
  28. package/cjs/src/embed/liveboard-override-utils.spec.d.ts.map +1 -0
  29. package/cjs/src/embed/liveboard-override-utils.spec.js +34 -0
  30. package/cjs/src/embed/liveboard-override-utils.spec.js.map +1 -0
  31. package/cjs/src/embed/liveboard.d.ts +58 -13
  32. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  33. package/cjs/src/embed/liveboard.js +11 -34
  34. package/cjs/src/embed/liveboard.js.map +1 -1
  35. package/cjs/src/embed/liveboard.spec.js +104 -79
  36. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  37. package/cjs/src/embed/search-bar.js +1 -1
  38. package/cjs/src/embed/search-bar.js.map +1 -1
  39. package/cjs/src/embed/search.js +1 -1
  40. package/cjs/src/embed/search.js.map +1 -1
  41. package/cjs/src/embed/search.spec.js +20 -0
  42. package/cjs/src/embed/search.spec.js.map +1 -1
  43. package/cjs/src/embed/spotter-utils.d.ts +11 -0
  44. package/cjs/src/embed/spotter-utils.d.ts.map +1 -1
  45. package/cjs/src/embed/spotter-utils.js +13 -1
  46. package/cjs/src/embed/spotter-utils.js.map +1 -1
  47. package/cjs/src/embed/spotter-viz-utils.d.ts +15 -0
  48. package/cjs/src/embed/spotter-viz-utils.d.ts.map +1 -1
  49. package/cjs/src/embed/spotter-viz-utils.js.map +1 -1
  50. package/cjs/src/embed/spotter-viz-utils.spec.js +11 -0
  51. package/cjs/src/embed/spotter-viz-utils.spec.js.map +1 -1
  52. package/cjs/src/embed/ts-embed.d.ts +27 -34
  53. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  54. package/cjs/src/embed/ts-embed.js +224 -102
  55. package/cjs/src/embed/ts-embed.js.map +1 -1
  56. package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -1
  57. package/cjs/src/embed/ts-embed.spec.js +543 -166
  58. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  59. package/cjs/src/index.d.ts +4 -2
  60. package/cjs/src/index.d.ts.map +1 -1
  61. package/cjs/src/index.js +4 -2
  62. package/cjs/src/index.js.map +1 -1
  63. package/cjs/src/mixpanel-service.d.ts +1 -0
  64. package/cjs/src/mixpanel-service.d.ts.map +1 -1
  65. package/cjs/src/mixpanel-service.js +1 -0
  66. package/cjs/src/mixpanel-service.js.map +1 -1
  67. package/cjs/src/react/all-types-export.d.ts +1 -1
  68. package/cjs/src/react/all-types-export.d.ts.map +1 -1
  69. package/cjs/src/react/all-types-export.js +2 -1
  70. package/cjs/src/react/all-types-export.js.map +1 -1
  71. package/cjs/src/types.d.ts +182 -2
  72. package/cjs/src/types.d.ts.map +1 -1
  73. package/cjs/src/types.js +109 -0
  74. package/cjs/src/types.js.map +1 -1
  75. package/cjs/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
  76. package/cjs/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  77. package/cjs/src/utils/graphql/answerService/answer-queries.js +8 -1
  78. package/cjs/src/utils/graphql/answerService/answer-queries.js.map +1 -1
  79. package/cjs/src/utils/graphql/answerService/answerService.d.ts +28 -4
  80. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  81. package/cjs/src/utils/graphql/answerService/answerService.js +39 -4
  82. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  83. package/cjs/src/utils/graphql/answerService/answerService.spec.js +124 -0
  84. package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  85. package/dist/{index-CnHREfvN.js → index-CyDR8j_0.js} +1 -1
  86. package/dist/src/css-variables.d.ts +373 -5
  87. package/dist/src/css-variables.d.ts.map +1 -1
  88. package/dist/src/embed/app.d.ts +14 -0
  89. package/dist/src/embed/app.d.ts.map +1 -1
  90. package/dist/src/embed/auto-frame-renderer.d.ts.map +1 -1
  91. package/dist/src/embed/conversation.d.ts +15 -0
  92. package/dist/src/embed/conversation.d.ts.map +1 -1
  93. package/dist/src/embed/liveboard-override-utils.d.ts +59 -0
  94. package/dist/src/embed/liveboard-override-utils.d.ts.map +1 -0
  95. package/dist/src/embed/liveboard-override-utils.spec.d.ts +2 -0
  96. package/dist/src/embed/liveboard-override-utils.spec.d.ts.map +1 -0
  97. package/dist/src/embed/liveboard.d.ts +58 -13
  98. package/dist/src/embed/liveboard.d.ts.map +1 -1
  99. package/dist/src/embed/spotter-utils.d.ts +11 -0
  100. package/dist/src/embed/spotter-utils.d.ts.map +1 -1
  101. package/dist/src/embed/spotter-viz-utils.d.ts +15 -0
  102. package/dist/src/embed/spotter-viz-utils.d.ts.map +1 -1
  103. package/dist/src/embed/ts-embed.d.ts +27 -34
  104. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  105. package/dist/src/embed/ts-embed.spec.d.ts.map +1 -1
  106. package/dist/src/index.d.ts +4 -2
  107. package/dist/src/index.d.ts.map +1 -1
  108. package/dist/src/mixpanel-service.d.ts +1 -0
  109. package/dist/src/mixpanel-service.d.ts.map +1 -1
  110. package/dist/src/react/all-types-export.d.ts +1 -1
  111. package/dist/src/react/all-types-export.d.ts.map +1 -1
  112. package/dist/src/types.d.ts +182 -2
  113. package/dist/src/types.d.ts.map +1 -1
  114. package/dist/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
  115. package/dist/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  116. package/dist/src/utils/graphql/answerService/answerService.d.ts +28 -4
  117. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  118. package/dist/tsembed-react.es.js +437 -191
  119. package/dist/tsembed-react.js +436 -190
  120. package/dist/tsembed.es.js +680 -196
  121. package/dist/tsembed.js +678 -194
  122. package/dist/visual-embed-sdk-react-full.d.ts +702 -56
  123. package/dist/visual-embed-sdk-react.d.ts +697 -56
  124. package/dist/visual-embed-sdk.d.ts +744 -57
  125. package/lib/package.json +1 -1
  126. package/lib/src/css-variables.d.ts +373 -5
  127. package/lib/src/css-variables.d.ts.map +1 -1
  128. package/lib/src/embed/app.d.ts +14 -0
  129. package/lib/src/embed/app.d.ts.map +1 -1
  130. package/lib/src/embed/app.js +7 -4
  131. package/lib/src/embed/app.js.map +1 -1
  132. package/lib/src/embed/app.spec.js +28 -0
  133. package/lib/src/embed/app.spec.js.map +1 -1
  134. package/lib/src/embed/auto-frame-renderer.d.ts.map +1 -1
  135. package/lib/src/embed/auto-frame-renderer.js +244 -4
  136. package/lib/src/embed/auto-frame-renderer.js.map +1 -1
  137. package/lib/src/embed/auto-frame-renderer.spec.js +389 -0
  138. package/lib/src/embed/auto-frame-renderer.spec.js.map +1 -1
  139. package/lib/src/embed/bodyless-conversation.js +1 -1
  140. package/lib/src/embed/bodyless-conversation.js.map +1 -1
  141. package/lib/src/embed/conversation.d.ts +15 -0
  142. package/lib/src/embed/conversation.d.ts.map +1 -1
  143. package/lib/src/embed/conversation.js +8 -4
  144. package/lib/src/embed/conversation.js.map +1 -1
  145. package/lib/src/embed/conversation.spec.js +67 -1
  146. package/lib/src/embed/conversation.spec.js.map +1 -1
  147. package/lib/src/embed/liveboard-override-utils.d.ts +59 -0
  148. package/lib/src/embed/liveboard-override-utils.d.ts.map +1 -0
  149. package/lib/src/embed/liveboard-override-utils.js +15 -0
  150. package/lib/src/embed/liveboard-override-utils.js.map +1 -0
  151. package/lib/src/embed/liveboard-override-utils.spec.d.ts +2 -0
  152. package/lib/src/embed/liveboard-override-utils.spec.d.ts.map +1 -0
  153. package/lib/src/embed/liveboard-override-utils.spec.js +32 -0
  154. package/lib/src/embed/liveboard-override-utils.spec.js.map +1 -0
  155. package/lib/src/embed/liveboard.d.ts +58 -13
  156. package/lib/src/embed/liveboard.d.ts.map +1 -1
  157. package/lib/src/embed/liveboard.js +11 -33
  158. package/lib/src/embed/liveboard.js.map +1 -1
  159. package/lib/src/embed/liveboard.spec.js +104 -79
  160. package/lib/src/embed/liveboard.spec.js.map +1 -1
  161. package/lib/src/embed/search-bar.js +1 -1
  162. package/lib/src/embed/search-bar.js.map +1 -1
  163. package/lib/src/embed/search.js +1 -1
  164. package/lib/src/embed/search.js.map +1 -1
  165. package/lib/src/embed/search.spec.js +20 -0
  166. package/lib/src/embed/search.spec.js.map +1 -1
  167. package/lib/src/embed/spotter-utils.d.ts +11 -0
  168. package/lib/src/embed/spotter-utils.d.ts.map +1 -1
  169. package/lib/src/embed/spotter-utils.js +12 -0
  170. package/lib/src/embed/spotter-utils.js.map +1 -1
  171. package/lib/src/embed/spotter-viz-utils.d.ts +15 -0
  172. package/lib/src/embed/spotter-viz-utils.d.ts.map +1 -1
  173. package/lib/src/embed/spotter-viz-utils.js.map +1 -1
  174. package/lib/src/embed/spotter-viz-utils.spec.js +11 -0
  175. package/lib/src/embed/spotter-viz-utils.spec.js.map +1 -1
  176. package/lib/src/embed/ts-embed.d.ts +27 -34
  177. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  178. package/lib/src/embed/ts-embed.js +224 -102
  179. package/lib/src/embed/ts-embed.js.map +1 -1
  180. package/lib/src/embed/ts-embed.spec.d.ts.map +1 -1
  181. package/lib/src/embed/ts-embed.spec.js +544 -167
  182. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  183. package/lib/src/index.d.ts +4 -2
  184. package/lib/src/index.d.ts.map +1 -1
  185. package/lib/src/index.js +3 -2
  186. package/lib/src/index.js.map +1 -1
  187. package/lib/src/mixpanel-service.d.ts +1 -0
  188. package/lib/src/mixpanel-service.d.ts.map +1 -1
  189. package/lib/src/mixpanel-service.js +1 -0
  190. package/lib/src/mixpanel-service.js.map +1 -1
  191. package/lib/src/react/all-types-export.d.ts +1 -1
  192. package/lib/src/react/all-types-export.d.ts.map +1 -1
  193. package/lib/src/react/all-types-export.js +1 -1
  194. package/lib/src/react/all-types-export.js.map +1 -1
  195. package/lib/src/types.d.ts +182 -2
  196. package/lib/src/types.d.ts.map +1 -1
  197. package/lib/src/types.js +109 -0
  198. package/lib/src/types.js.map +1 -1
  199. package/lib/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
  200. package/lib/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  201. package/lib/src/utils/graphql/answerService/answer-queries.js +7 -0
  202. package/lib/src/utils/graphql/answerService/answer-queries.js.map +1 -1
  203. package/lib/src/utils/graphql/answerService/answerService.d.ts +28 -4
  204. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  205. package/lib/src/utils/graphql/answerService/answerService.js +39 -4
  206. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  207. package/lib/src/utils/graphql/answerService/answerService.spec.js +125 -1
  208. package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  209. package/lib/src/visual-embed-sdk.d.ts +744 -57
  210. package/package.json +1 -1
  211. package/src/css-variables.ts +475 -26
  212. package/src/embed/app.spec.ts +32 -0
  213. package/src/embed/app.ts +28 -4
  214. package/src/embed/auto-frame-renderer.spec.ts +464 -0
  215. package/src/embed/auto-frame-renderer.ts +305 -6
  216. package/src/embed/bodyless-conversation.ts +1 -1
  217. package/src/embed/conversation.spec.ts +94 -1
  218. package/src/embed/conversation.ts +28 -3
  219. package/src/embed/liveboard-override-utils.spec.ts +38 -0
  220. package/src/embed/liveboard-override-utils.ts +71 -0
  221. package/src/embed/liveboard.spec.ts +119 -92
  222. package/src/embed/liveboard.ts +56 -40
  223. package/src/embed/search-bar.tsx +1 -1
  224. package/src/embed/search.spec.ts +23 -0
  225. package/src/embed/search.ts +1 -1
  226. package/src/embed/spotter-utils.ts +12 -0
  227. package/src/embed/spotter-viz-utils.spec.ts +11 -0
  228. package/src/embed/spotter-viz-utils.ts +15 -0
  229. package/src/embed/ts-embed.spec.ts +685 -207
  230. package/src/embed/ts-embed.ts +227 -97
  231. package/src/index.ts +16 -1
  232. package/src/mixpanel-service.ts +1 -0
  233. package/src/react/all-types-export.ts +6 -0
  234. package/src/types.ts +186 -5
  235. package/src/utils/graphql/answerService/answer-queries.ts +8 -0
  236. package/src/utils/graphql/answerService/answerService.spec.ts +145 -1
  237. package/src/utils/graphql/answerService/answerService.ts +65 -3
@@ -121,6 +121,33 @@ export interface CustomCssVariables {
121
121
  * Background color of the search suggestion block on hover.
122
122
  */
123
123
  "--ts-var-search-bar-auto-complete-hover-background"?: string;
124
+ /**
125
+ * Background color of the submit (*Go*) button in the search box.
126
+ */
127
+ "--ts-var-search-submit-button-background"?: string;
128
+ /**
129
+ * Color of the label and icon on the submit (*Go*) button in the search box.
130
+ */
131
+ "--ts-var-search-submit-button-color"?: string;
132
+ /**
133
+ * Background color of the submit (*Go*) button in the search box on hover.
134
+ * Defaults to the background color set for the non-hover state.
135
+ */
136
+ "--ts-var-search-submit-button--hover-background"?: string;
137
+ /**
138
+ * Border radius of the submit (*Go*) button in the search box. Default: `40px`.
139
+ */
140
+ "--ts-var-search-submit-button-border-radius"?: string;
141
+ /**
142
+ * Border width of the submit (*Go*) button in the search box. Default: `0`.
143
+ * The button has a fixed size, so a border reduces its inner area.
144
+ */
145
+ "--ts-var-search-submit-button-border-width"?: string;
146
+ /**
147
+ * Border color of the submit (*Go*) button in the search box.
148
+ * Visible only when `--ts-var-search-submit-button-border-width` is set.
149
+ */
150
+ "--ts-var-search-submit-button-border-color"?: string;
124
151
  /**
125
152
  * Font color of the text in the search suggestion panel.
126
153
  */
@@ -224,6 +251,194 @@ export interface CustomCssVariables {
224
251
  * Backgroud color of the tertiary buttons when active.
225
252
  */
226
253
  "--ts-var-button--tertiary--active-background"?: string;
254
+ /**
255
+ * Font family specification for the text on the tertiary buttons.
256
+ * Defaults to the inherited font.
257
+ */
258
+ "--ts-var-button--tertiary--font-family"?: string;
259
+ /**
260
+ * Padding of buttons with text, for example, `6px 16px`. Applies to all button
261
+ * sizes and variants.
262
+ */
263
+ "--ts-var-button-padding"?: string;
264
+ /**
265
+ * Minimum width of buttons with text. Applies to all button sizes and variants.
266
+ */
267
+ "--ts-var-button-min-width"?: string;
268
+ /**
269
+ * Space between the icon and the label in a button. Default: `8px`.
270
+ */
271
+ "--ts-var-button-gap"?: string;
272
+ /**
273
+ * Height of buttons. Icon-only buttons remain square when this is set.
274
+ */
275
+ "--ts-var-button-height"?: string;
276
+ /**
277
+ * Font size of the button label. The line height scales proportionally.
278
+ */
279
+ "--ts-var-button-font-size"?: string;
280
+ /**
281
+ * Font weight of the button label. Default: `400`.
282
+ */
283
+ "--ts-var-button-font-weight"?: string;
284
+ /**
285
+ * Border width of buttons. Default: `0`. To show a border on a button variant,
286
+ * also set its border color, for example, `--ts-var-button--primary-border-color`.
287
+ */
288
+ "--ts-var-button-border-width"?: string;
289
+ /**
290
+ * Padding of the primary buttons with text.
291
+ * Overrides `--ts-var-button-padding` for primary buttons.
292
+ */
293
+ "--ts-var-button--primary-padding"?: string;
294
+ /**
295
+ * Minimum width of the primary buttons with text.
296
+ * Overrides `--ts-var-button-min-width` for primary buttons.
297
+ */
298
+ "--ts-var-button--primary-min-width"?: string;
299
+ /**
300
+ * Space between the icon and the label in the primary buttons.
301
+ * Overrides `--ts-var-button-gap` for primary buttons.
302
+ */
303
+ "--ts-var-button--primary-gap"?: string;
304
+ /**
305
+ * Font weight of the text on the primary buttons.
306
+ * Overrides `--ts-var-button-font-weight` for primary buttons.
307
+ */
308
+ "--ts-var-button--primary-font-weight"?: string;
309
+ /**
310
+ * Border color of the primary buttons.
311
+ * Visible only when `--ts-var-button-border-width` is set.
312
+ */
313
+ "--ts-var-button--primary-border-color"?: string;
314
+ /**
315
+ * Padding of the secondary buttons with text.
316
+ * Overrides `--ts-var-button-padding` for secondary buttons.
317
+ */
318
+ "--ts-var-button--secondary-padding"?: string;
319
+ /**
320
+ * Minimum width of the secondary buttons with text.
321
+ * Overrides `--ts-var-button-min-width` for secondary buttons.
322
+ */
323
+ "--ts-var-button--secondary-min-width"?: string;
324
+ /**
325
+ * Space between the icon and the label in the secondary buttons.
326
+ * Overrides `--ts-var-button-gap` for secondary buttons.
327
+ */
328
+ "--ts-var-button--secondary-gap"?: string;
329
+ /**
330
+ * Font weight of the text on the secondary buttons.
331
+ * Overrides `--ts-var-button-font-weight` for secondary buttons.
332
+ */
333
+ "--ts-var-button--secondary-font-weight"?: string;
334
+ /**
335
+ * Border color of the secondary buttons.
336
+ * Visible only when `--ts-var-button-border-width` is set.
337
+ */
338
+ "--ts-var-button--secondary-border-color"?: string;
339
+ /**
340
+ * Padding of the tertiary buttons with text.
341
+ * Overrides `--ts-var-button-padding` for tertiary buttons.
342
+ */
343
+ "--ts-var-button--tertiary-padding"?: string;
344
+ /**
345
+ * Minimum width of the tertiary buttons with text.
346
+ * Overrides `--ts-var-button-min-width` for tertiary buttons.
347
+ */
348
+ "--ts-var-button--tertiary-min-width"?: string;
349
+ /**
350
+ * Space between the icon and the label in the tertiary buttons.
351
+ * Overrides `--ts-var-button-gap` for tertiary buttons.
352
+ */
353
+ "--ts-var-button--tertiary-gap"?: string;
354
+ /**
355
+ * Font weight of the text on the tertiary buttons.
356
+ * Overrides `--ts-var-button-font-weight` for tertiary buttons.
357
+ */
358
+ "--ts-var-button--tertiary-font-weight"?: string;
359
+ /**
360
+ * Border color of the tertiary buttons.
361
+ * Visible only when `--ts-var-button-border-width` is set.
362
+ */
363
+ "--ts-var-button--tertiary-border-color"?: string;
364
+ /**
365
+ * Font color of the tab labels.
366
+ */
367
+ "--ts-var-tab-color"?: string;
368
+ /**
369
+ * Background color of the tabs.
370
+ */
371
+ "--ts-var-tab-background"?: string;
372
+ /**
373
+ * Font family specification for the tab labels.
374
+ */
375
+ "--ts-var-tab-font-family"?: string;
376
+ /**
377
+ * Font size of the tab labels.
378
+ */
379
+ "--ts-var-tab-font-size"?: string;
380
+ /**
381
+ * Font weight of the tab labels.
382
+ */
383
+ "--ts-var-tab-font-weight"?: string;
384
+ /**
385
+ * Padding of the tab items.
386
+ */
387
+ "--ts-var-tab-padding"?: string;
388
+ /**
389
+ * Height of the tab items.
390
+ */
391
+ "--ts-var-tab-height"?: string;
392
+ /**
393
+ * Border radius of the tab items.
394
+ */
395
+ "--ts-var-tab-border-radius"?: string;
396
+ /**
397
+ * Font color of the tab labels on hover.
398
+ */
399
+ "--ts-var-tab--hover-color"?: string;
400
+ /**
401
+ * Background color of the tab items on hover.
402
+ */
403
+ "--ts-var-tab--hover-background"?: string;
404
+ /**
405
+ * Font color of the selected tab label.
406
+ */
407
+ "--ts-var-tab--selected-color"?: string;
408
+ /**
409
+ * Background color of the selected tab item.
410
+ */
411
+ "--ts-var-tab--selected-background"?: string;
412
+ /**
413
+ * Font weight of the selected tab label.
414
+ */
415
+ "--ts-var-tab--selected-font-weight"?: string;
416
+ /**
417
+ * Color of the underline indicator on the selected tab, in the horizontal tab layout.
418
+ */
419
+ "--ts-var-tab--selected-indicator-color"?: string;
420
+ /**
421
+ * Thickness of the underline indicator on the selected tab, in the horizontal tab
422
+ * layout.
423
+ */
424
+ "--ts-var-tab--selected-indicator-height"?: string;
425
+ /**
426
+ * Border color of the divider below the horizontal tab strip.
427
+ */
428
+ "--ts-var-tab-list-border-color"?: string;
429
+ /**
430
+ * Color of the side rail indicator on the selected tab, in the vertical tab layout.
431
+ */
432
+ "--ts-var-tab--vertical--selected-indicator-color"?: string;
433
+ /**
434
+ * Thickness of the side rail indicator on the selected tab, in the vertical tab
435
+ * layout.
436
+ */
437
+ "--ts-var-tab--vertical--selected-indicator-width"?: string;
438
+ /**
439
+ * Border color of the divider beside the vertical tab strip.
440
+ */
441
+ "--ts-var-tab--vertical-list-border-color"?: string;
227
442
  /**
228
443
  * Font color of the title text of a visualization or Answer.
229
444
  */
@@ -311,6 +526,104 @@ export interface CustomCssVariables {
311
526
  * Font family specification for the text on filter chips.
312
527
  */
313
528
  "--ts-var-chip-title-font-family"?: string;
529
+ /**
530
+ * Background color of attribute chips, such as attribute tokens in the search bar
531
+ * and attribute columns in the data panel.
532
+ * In chip components, `--ts-var-chip-background` takes precedence when set.
533
+ */
534
+ "--ts-var-chip--attribute-background"?: string;
535
+ /**
536
+ * Background color of attribute chips on hover.
537
+ */
538
+ "--ts-var-chip--attribute--hover-background"?: string;
539
+ /**
540
+ * Border color of attribute chips.
541
+ * Defaults to `--ts-var-chip--attribute-background`.
542
+ */
543
+ "--ts-var-chip--attribute-border-color"?: string;
544
+ /**
545
+ * Border color of attribute chips on hover.
546
+ * Defaults to `--ts-var-chip--attribute--hover-background`.
547
+ */
548
+ "--ts-var-chip--attribute--hover-border-color"?: string;
549
+ /**
550
+ * Background color of measure chips, such as measure tokens in the search bar
551
+ * and measure columns in the data panel.
552
+ * In chip components, `--ts-var-chip-background` takes precedence when set.
553
+ */
554
+ "--ts-var-chip--measure-background"?: string;
555
+ /**
556
+ * Background color of measure chips on hover.
557
+ */
558
+ "--ts-var-chip--measure--hover-background"?: string;
559
+ /**
560
+ * Border color of measure chips.
561
+ * Defaults to `--ts-var-chip--measure-background`.
562
+ */
563
+ "--ts-var-chip--measure-border-color"?: string;
564
+ /**
565
+ * Border color of measure chips on hover.
566
+ * Defaults to `--ts-var-chip--measure--hover-background`.
567
+ */
568
+ "--ts-var-chip--measure--hover-border-color"?: string;
569
+ /**
570
+ * Background color of date chips, such as date tokens in the search bar
571
+ * and date columns in the data panel.
572
+ * In chip components, `--ts-var-chip-background` takes precedence when set.
573
+ */
574
+ "--ts-var-chip--date-background"?: string;
575
+ /**
576
+ * Background color of date chips on hover.
577
+ */
578
+ "--ts-var-chip--date--hover-background"?: string;
579
+ /**
580
+ * Border color of date chips.
581
+ * Defaults to `--ts-var-chip--date-background`.
582
+ */
583
+ "--ts-var-chip--date-border-color"?: string;
584
+ /**
585
+ * Border color of date chips on hover.
586
+ * Defaults to `--ts-var-chip--date--hover-background`.
587
+ */
588
+ "--ts-var-chip--date--hover-border-color"?: string;
589
+ /**
590
+ * Background color of filter chips, such as filter tokens in the search bar.
591
+ * Also applies to neutral column chips, such as formula and set columns.
592
+ * In chip components, `--ts-var-chip-background` takes precedence when set.
593
+ */
594
+ "--ts-var-chip--filter-background"?: string;
595
+ /**
596
+ * Background color of filter chips on hover.
597
+ */
598
+ "--ts-var-chip--filter--hover-background"?: string;
599
+ /**
600
+ * Border color of filter chips.
601
+ * Defaults to `--ts-var-chip--filter-background`.
602
+ */
603
+ "--ts-var-chip--filter-border-color"?: string;
604
+ /**
605
+ * Border color of filter chips on hover.
606
+ * Defaults to `--ts-var-chip--filter--hover-background`.
607
+ */
608
+ "--ts-var-chip--filter--hover-border-color"?: string;
609
+ /**
610
+ * Background color of unrecognized tokens in the search bar.
611
+ */
612
+ "--ts-var-chip--unrecognized-background"?: string;
613
+ /**
614
+ * Background color of unrecognized tokens in the search bar on hover.
615
+ */
616
+ "--ts-var-chip--unrecognized--hover-background"?: string;
617
+ /**
618
+ * Border color of unrecognized tokens in the search bar.
619
+ * Defaults to `--ts-var-chip--unrecognized-background`.
620
+ */
621
+ "--ts-var-chip--unrecognized-border-color"?: string;
622
+ /**
623
+ * Border color of unrecognized tokens in the search bar on hover.
624
+ * Defaults to `--ts-var-chip--unrecognized--hover-background`.
625
+ */
626
+ "--ts-var-chip--unrecognized--hover-border-color"?: string;
314
627
  /**
315
628
  * Font color of axis title on charts.
316
629
  */
@@ -662,6 +975,54 @@ export interface CustomCssVariables {
662
975
  * Font color of the hover tab in the Liveboard.
663
976
  */
664
977
  "--ts-var-liveboard-tab-hover-color"?: string;
978
+ /**
979
+ * Font color of the tab labels in the Liveboard.
980
+ */
981
+ "--ts-var-liveboard-tab-color"?: string;
982
+ /**
983
+ * Background color of the tab items in the Liveboard.
984
+ */
985
+ "--ts-var-liveboard-tab-background"?: string;
986
+ /**
987
+ * Font family specification for the tab labels in the Liveboard.
988
+ */
989
+ "--ts-var-liveboard-tab-font-family"?: string;
990
+ /**
991
+ * Font size of the tab labels in the Liveboard.
992
+ */
993
+ "--ts-var-liveboard-tab-font-size"?: string;
994
+ /**
995
+ * Font weight of the tab labels in the Liveboard.
996
+ */
997
+ "--ts-var-liveboard-tab-font-weight"?: string;
998
+ /**
999
+ * Border radius of the tab items in the Liveboard.
1000
+ */
1001
+ "--ts-var-liveboard-tab-border-radius"?: string;
1002
+ /**
1003
+ * Background color of the tab items in the Liveboard on hover.
1004
+ */
1005
+ "--ts-var-liveboard-tab-hover-background"?: string;
1006
+ /**
1007
+ * Font color of the selected tab label in the Liveboard.
1008
+ */
1009
+ "--ts-var-liveboard-tab-selected-color"?: string;
1010
+ /**
1011
+ * Background color of the selected tab item in the Liveboard.
1012
+ */
1013
+ "--ts-var-liveboard-tab-selected-background"?: string;
1014
+ /**
1015
+ * Font weight of the selected tab label in the Liveboard.
1016
+ */
1017
+ "--ts-var-liveboard-tab-selected-font-weight"?: string;
1018
+ /**
1019
+ * Thickness of the underline indicator on the selected tab in the Liveboard.
1020
+ */
1021
+ "--ts-var-liveboard-tab-selected-indicator-height"?: string;
1022
+ /**
1023
+ * Border color of the divider above the tab strip in the Liveboard.
1024
+ */
1025
+ "--ts-var-liveboard-tab-list-border-color"?: string;
665
1026
  /**
666
1027
  * Font size of the title of the tiles in the Liveboard.
667
1028
  */
@@ -1027,7 +1388,8 @@ export interface CustomCssVariables {
1027
1388
  "--ts-var-spotterviz-footer-text-color"?: string;
1028
1389
  /**
1029
1390
  * Shared border color used throughout SpotterViz: input box, user message,
1030
- * header underline, left panel border, thinking step connector and dots.
1391
+ * header underline, left panel border, thinking step connector and dots,
1392
+ * and the attached-file upload card.
1031
1393
  */
1032
1394
  "--ts-var-spotterviz-border-color"?: string;
1033
1395
  /**
@@ -1041,16 +1403,22 @@ export interface CustomCssVariables {
1041
1403
  "--ts-var-spotterviz-reference-icon-hover-background"?: string;
1042
1404
  /**
1043
1405
  * Icon color for the reference-mode selected state — applies to
1044
- * both the toggle button when active and the icon badge on each
1045
- * referenced-entity chip in the chat input.
1406
+ * the toggle button when active and the icon badge on each
1407
+ * referenced-entity chip and the attached-file chip in the chat input.
1046
1408
  */
1047
1409
  "--ts-var-spotterviz-reference-icon-selected-color"?: string;
1048
1410
  /**
1049
1411
  * Background color for the reference-mode selected state — applies to
1050
- * both the reference mode toggle button when active and the icon badge
1051
- * on each referenced-entity chip in the chat input.
1412
+ * the reference mode toggle button when active and the icon badge on
1413
+ * each referenced-entity chip and the attached-file chip in the chat
1414
+ * input.
1052
1415
  */
1053
1416
  "--ts-var-spotterviz-reference-icon-selected-background"?: string;
1417
+ /**
1418
+ * Background color of the file-type thumbnail on the attached-file card
1419
+ * in the SpotterViz chat input.
1420
+ */
1421
+ "--ts-var-spotterviz-upload-card-thumbnail-background"?: string;
1054
1422
  /**
1055
1423
  * Background color of the shared conversation header (recipient's read-only view).
1056
1424
  */
@@ -1111,6 +1479,21 @@ export interface UnderlyingDataPoint {
1111
1479
  columnId: string;
1112
1480
  dataValue: any;
1113
1481
  }
1482
+ /**
1483
+ * Describes how to sort a column when fetching data. Pass an array of these to
1484
+ * sort by multiple columns, in priority order.
1485
+ * @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.12.0.cl
1486
+ */
1487
+ export interface SortOptions {
1488
+ /**
1489
+ * Name of the column to sort by. The column must exist in the data source.
1490
+ */
1491
+ columnName: string;
1492
+ /**
1493
+ * Sort direction. `true` sorts ascending, `false` sorts descending.
1494
+ */
1495
+ ascending: boolean;
1496
+ }
1114
1497
  /**
1115
1498
  * AnswerService provides a simple way to work with ThoughtSpot Answers.
1116
1499
  *
@@ -1218,6 +1601,12 @@ export declare class AnswerService {
1218
1601
  * @returns
1219
1602
  */
1220
1603
  addFilter(columnName: string, operator: RuntimeFilterOp, values: RuntimeFilter["values"]): Promise<any>;
1604
+ /**
1605
+ * Adapt the sort options into the `updateSort` payload and send it.
1606
+ * @param sortOptions Columns to sort by, each with a direction.
1607
+ * @param sourceDetail
1608
+ */
1609
+ private adaptSorting;
1221
1610
  updateDisplayMode(displayMode?: string): Promise<any>;
1222
1611
  getSQLQuery(fetchSQLWithAllColumns?: boolean): Promise<string>;
1223
1612
  /**
@@ -1270,18 +1659,21 @@ export declare class AnswerService {
1270
1659
  * automatically passed.
1271
1660
  * @param outputColumnNames
1272
1661
  * @param selectedPoints
1662
+ * @param sortOptions Optional columns to sort the underlying data by.
1273
1663
  * @example
1274
1664
  * ```js
1275
1665
  * embed.on(EmbedEvent.CustomAction, e => {
1276
- * const underlying = await e.answerService.getUnderlyingDataForPoint([
1277
- * 'col name 1' // The column should exist in the data source.
1278
- * ]);
1666
+ * const underlying = await e.answerService.getUnderlyingDataForPoint(
1667
+ * ['col name 1'], // The column should exist in the data source.
1668
+ * undefined,
1669
+ * [{ columnName: 'col name 1', ascending: true }],
1670
+ * );
1279
1671
  * const data = await underlying.fetchData(0, 100);
1280
1672
  * })
1281
1673
  * ```
1282
1674
  * @version SDK: 1.25.0 | ThoughtSpot: 9.10.0.cl
1283
1675
  */
1284
- getUnderlyingDataForPoint(outputColumnNames: string[], selectedPoints?: UnderlyingDataPoint[]): Promise<AnswerService>;
1676
+ getUnderlyingDataForPoint(outputColumnNames: string[], selectedPoints?: UnderlyingDataPoint[], sortOptions?: SortOptions[]): Promise<AnswerService>;
1285
1677
  /**
1286
1678
  * Execute a custom graphql query in the context of the answer.
1287
1679
  * @param query graphql query
@@ -2094,6 +2486,27 @@ export interface EmbedConfig {
2094
2486
  * @default true
2095
2487
  */
2096
2488
  blockNonEmbedFullAppAccess?: boolean;
2489
+ /**
2490
+ * Render the embedded application in dark appearance when `true`, and in
2491
+ * its default appearance when `false` or unset.
2492
+ *
2493
+ * The host application owns the appearance of an embed, so this overrides
2494
+ * the appearance preference of the signed-in user and the color scheme of
2495
+ * their operating system. If your application has light and dark themes,
2496
+ * pass `true` while it shows the dark theme and `false` while it shows
2497
+ * the light theme.
2498
+ * @version SDK: 1.55.0 | ThoughtSpot Cloud: 26.12.0.cl
2499
+ * @example
2500
+ * ```js
2501
+ * // Your application's current theme, 'light' or 'dark'
2502
+ * const appTheme = 'dark';
2503
+ * init({
2504
+ * ...embedConfig,
2505
+ * isDarkMode: appTheme === 'dark',
2506
+ * });
2507
+ * ```
2508
+ */
2509
+ isDarkMode?: boolean;
2097
2510
  /**
2098
2511
  * Host config in case embedded app is inside TS app itself
2099
2512
  * @hidden
@@ -2666,6 +3079,31 @@ export interface BaseViewConfig extends ApiInterceptFlags {
2666
3079
  * @default ''
2667
3080
  */
2668
3081
  customizations?: CustomisationsInterface;
3082
+ /**
3083
+ * Render this embed in dark appearance when `true`, and in its default
3084
+ * appearance when `false`, overriding the `isDarkMode` value passed to
3085
+ * `init`.
3086
+ *
3087
+ * The host application owns the appearance of an embed, so this overrides
3088
+ * the appearance preference of the signed-in user and the color scheme of
3089
+ * their operating system. If your application has light and dark themes,
3090
+ * pass `true` while it shows the dark theme and `false` while it shows
3091
+ * the light theme. Leave it unset to inherit the `init` value.
3092
+ *
3093
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
3094
+ * @version SDK: 1.55.0 | ThoughtSpot Cloud: 26.12.0.cl
3095
+ * @example
3096
+ * ```js
3097
+ * // Your application's current theme, 'light' or 'dark'
3098
+ * const appTheme = 'dark';
3099
+ * // Replace AppEmbed with a specific embed component like SearchEmbed or LiveboardEmbed
3100
+ * const embed = new AppEmbed('#tsEmbed', {
3101
+ * ... // other embed view config
3102
+ * isDarkMode: appTheme === 'dark',
3103
+ * });
3104
+ * ```
3105
+ */
3106
+ isDarkMode?: boolean;
2669
3107
  /**
2670
3108
  * Insert as a sibling of the target container, instead of appending to a
2671
3109
  * child inside it.
@@ -3209,7 +3647,32 @@ export interface BaseViewConfig extends ApiInterceptFlags {
3209
3647
  * - `enableV2Shell_experimental` — the renderer always uses the v2 URL format;
3210
3648
  * this flag has no effect.
3211
3649
  */
3212
- export type AutoMCPFrameRendererViewConfig = Omit<BaseViewConfig, "preRenderId" | "usePrerenderedIfAvailable" | "doNotTrackPreRenderSize" | "insertAsSibling" | "primaryAction" | "enableV2Shell_experimental">;
3650
+ export type AutoMCPFrameRendererViewConfig = Omit<BaseViewConfig, "preRenderId" | "usePrerenderedIfAvailable" | "doNotTrackPreRenderSize" | "insertAsSibling" | "primaryAction" | "enableV2Shell_experimental"> & {
3651
+ /**
3652
+ * Suppress the notice shown on answers re-resolved from a stored
3653
+ * conversation. Those answers are re-run against current data, so by
3654
+ * default the renderer marks them with a tooltip explaining that the
3655
+ * numbers may differ from what the user originally saw. Set this to
3656
+ * `true` to render them without any notice.
3657
+ *
3658
+ * Only affects frames carrying {@link Param.TsmcpConversationId}; frames
3659
+ * that already contain their own session parameters are never marked.
3660
+ * @default false
3661
+ * @version SDK: 1.51.3
3662
+ * @example
3663
+ * ```js
3664
+ * startAutoMCPFrameRenderer({ suppressStaleAnswerNotice: true });
3665
+ * ```
3666
+ */
3667
+ suppressStaleAnswerNotice?: boolean;
3668
+ /**
3669
+ * Text of the notice described in {@link suppressStaleAnswerNotice}.
3670
+ * Override it to translate the message or match your own product voice.
3671
+ * @default 'This data may have changed since the last time you had a chat.'
3672
+ * @version SDK: 1.51.3
3673
+ */
3674
+ staleAnswerNoticeText?: string;
3675
+ };
3213
3676
  /**
3214
3677
  * The configuration object for Home page embeds configs.
3215
3678
  */
@@ -4817,6 +5280,36 @@ export declare enum EmbedEvent {
4817
5280
  * ```
4818
5281
  */
4819
5282
  Edit = "edit",
5283
+ /**
5284
+ * Emitted when a user clicks **Edit** on a Liveboard.
5285
+ *
5286
+ * Fired alongside {@link EmbedEvent.Edit} for backward compatibility;
5287
+ * listen to this instead of `Edit` to target the Liveboard surface only.
5288
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
5289
+ * @example
5290
+ * ```js
5291
+ * liveboardEmbed.on(EmbedEvent.EditLiveboard, payload => {
5292
+ * console.log('Liveboard edit', payload);
5293
+ * })
5294
+ * ```
5295
+ */
5296
+ EditLiveboard = "editLiveboard",
5297
+ /**
5298
+ * Emitted when a user clicks **Edit** on a visualization inside a
5299
+ * Liveboard.
5300
+ *
5301
+ * Fired alongside {@link EmbedEvent.Edit} for backward compatibility;
5302
+ * listen to this instead of `Edit` to target the visualization surface
5303
+ * only.
5304
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
5305
+ * @example
5306
+ * ```js
5307
+ * liveboardEmbed.on(EmbedEvent.EditVisualization, payload => {
5308
+ * console.log('visualization edit', payload);
5309
+ * })
5310
+ * ```
5311
+ */
5312
+ EditVisualization = "editVisualization",
4820
5313
  /**
4821
5314
  * Emitted when a user clicks *Make a copy* on a Liveboard
4822
5315
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
@@ -6787,6 +7280,35 @@ export declare enum HostEvent {
6787
7280
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
6788
7281
  */
6789
7282
  Edit = "edit",
7283
+ /**
7284
+ * Trigger the **Edit** action on a Liveboard only — does not affect a
7285
+ * visualization's edit surface.
7286
+ *
7287
+ * Behaves like {@link HostEvent.Edit} restricted to the Liveboard
7288
+ * surface. Use {@link HostEvent.EditVisualization} to target a
7289
+ * visualization instead, or `HostEvent.Edit` to control whichever
7290
+ * surface applies contextually (unchanged, existing behavior).
7291
+ * @example
7292
+ * ```js
7293
+ * liveboardEmbed.trigger(HostEvent.EditLiveboard)
7294
+ * ```
7295
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
7296
+ */
7297
+ EditLiveboard = "editLiveboard",
7298
+ /**
7299
+ * Trigger the **Edit** action on a specific visualization inside a
7300
+ * Liveboard only — does not affect the Liveboard-level edit surface.
7301
+ * @param - Object parameter. Includes the following keys:
7302
+ * - `vizId`: **Required.** The visualization to edit.
7303
+ *
7304
+ * @example
7305
+ * ```js
7306
+ * liveboardEmbed.trigger(HostEvent.EditVisualization, {vizId:
7307
+ * '730496d6-6903-4601-937e-2c691821af3c'})
7308
+ * ```
7309
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
7310
+ */
7311
+ EditVisualization = "editVisualization",
6790
7312
  /**
6791
7313
  * Trigger the **Copy link** action on a Liveboard or visualization
6792
7314
  * Payload: {@link VizScopedRequest}.
@@ -8799,12 +9321,43 @@ export declare enum Action {
8799
9321
  * The *Edit* action on the Liveboard page and in the
8800
9322
  * visualization menu.
8801
9323
  * Opens a Liveboard or visualization in edit mode.
9324
+ *
9325
+ * Controls both surfaces together. To target one surface only, use
9326
+ * {@link Action.EditLiveboard} or {@link Action.EditVisualization}.
8802
9327
  * @example
8803
9328
  * ```js
8804
9329
  * disabledActions: [Action.Edit]
8805
9330
  * ```
8806
9331
  */
8807
9332
  Edit = "edit",
9333
+ /**
9334
+ * The *Edit* action on the Liveboard page only.
9335
+ * Opens a Liveboard in edit mode.
9336
+ *
9337
+ * Does not affect the *Edit* action in the visualization menu; use
9338
+ * {@link Action.EditVisualization} for that, or {@link Action.Edit} to
9339
+ * control both surfaces together.
9340
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
9341
+ * @example
9342
+ * ```js
9343
+ * disabledActions: [Action.EditLiveboard]
9344
+ * ```
9345
+ */
9346
+ EditLiveboard = "editLiveboard",
9347
+ /**
9348
+ * The *Edit* action in the visualization `...` menu only.
9349
+ * Opens a visualization in the editor.
9350
+ *
9351
+ * Does not affect the *Edit* action on the Liveboard page; use
9352
+ * {@link Action.EditLiveboard} for that, or {@link Action.Edit} to
9353
+ * control both surfaces together.
9354
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
9355
+ * @example
9356
+ * ```js
9357
+ * disabledActions: [Action.EditVisualization]
9358
+ * ```
9359
+ */
9360
+ EditVisualization = "editVisualization",
8808
9361
  /**
8809
9362
  * The text edit option for Liveboard and visualization titles.
8810
9363
  * @example
@@ -12285,6 +12838,7 @@ declare class TsEmbed {
12285
12838
  protected embedNodeKey: string;
12286
12839
  protected embedContainerLoadedKey: string;
12287
12840
  protected isAppInitialized: boolean;
12841
+ private initDataParams;
12288
12842
  /**
12289
12843
  * A reference to the iframe within which the ThoughtSpot app
12290
12844
  * will be rendered.
@@ -12334,7 +12888,7 @@ declare class TsEmbed {
12334
12888
  private defaultHiddenActions;
12335
12889
  private resizeObserver;
12336
12890
  private preRenderContainerEl;
12337
- /** Last height the embedded app reported, once fullHeight has measured one. */
12891
+ private containerScrollListener;
12338
12892
  protected hostEventClient: HostEventClient;
12339
12893
  protected isReadyForRenderPromise: Promise<void>;
12340
12894
  protected shouldWaitForRenderPromise: boolean;
@@ -12410,6 +12964,7 @@ declare class TsEmbed {
12410
12964
  protected getAuthTokenForCookielessInit(): Promise<string>;
12411
12965
  protected getDefaultAppInitData(): Promise<DefaultAppInitData>;
12412
12966
  protected getAppInitData(): Promise<DefaultAppInitData>;
12967
+ private withInitDataParams;
12413
12968
  /**
12414
12969
  * Send Custom style as part of payload of APP_INIT
12415
12970
  * @param _
@@ -12482,6 +13037,7 @@ declare class TsEmbed {
12482
13037
  [key: string]: string | number | boolean;
12483
13038
  };
12484
13039
  customizations?: CustomisationsInterface;
13040
+ isDarkMode?: boolean;
12485
13041
  insertAsSibling?: boolean;
12486
13042
  usePrerenderedIfAvailable?: boolean;
12487
13043
  preRenderId?: string;
@@ -12512,6 +13068,12 @@ declare class TsEmbed {
12512
13068
  isThisPeriodInDateFiltersEnabled?: boolean;
12513
13069
  hideLiveboardHeader?: boolean;
12514
13070
  showLiveboardTitle?: boolean;
13071
+ /**
13072
+ * Get the Post Url Params for THOUGHTSPOT from the current
13073
+ * host app URL.
13074
+ * THOUGHTSPOT URL params starts with a prefix "ts-"
13075
+ * @version SDK: 1.14.0 | ThoughtSpot: 8.4.0.cl, 8.4.1-sw
13076
+ */
12515
13077
  showLiveboardDescription?: boolean;
12516
13078
  isLiveboardHeaderSticky?: boolean;
12517
13079
  enable2ColumnLayout?: boolean;
@@ -12549,6 +13111,7 @@ declare class TsEmbed {
12549
13111
  protected getV1EmbedBasePath(queryString: string): string;
12550
13112
  protected getEmbedParams(): string;
12551
13113
  protected getEmbedParamsObject(): Record<any, any>;
13114
+ protected getUrlQueryParamsObject(): Record<any, any>;
12552
13115
  protected getRootIframeSrc(): string;
12553
13116
  protected createIframeEl(frameSrc: string): HTMLIFrameElement;
12554
13117
  /**
@@ -12590,26 +13153,10 @@ declare class TsEmbed {
12590
13153
  */
12591
13154
  private createPreRenderPlaceholder;
12592
13155
  /**
12593
- * Resolves the configured preRenderContainer to a live element. A string
12594
- * selector is re-queried on every call so a remounted container (E.g.: React
12595
- * replacing the node) resolves to the fresh element; an element passed
12596
- * directly cannot be re-resolved.
12597
- *
12598
- * With nothing configured the frame goes into the host element's nearest
12599
- * scrolling ancestor, falling back to `document.body`.
12600
- *
12601
- * The wrapper is absolutely positioned, so it follows the page for free —
12602
- * but only while it sits inside whatever scrolls. `document.body` is right
12603
- * only when the document itself is the scroller; an app that scrolls an
12604
- * inner element instead left the frame pinned to the viewport while the page
12605
- * moved under it (SCAL-338563). Being inside the scroller also lets wheel
12606
- * events chain out of the frame into it, which they cannot do from
12607
- * `document.body`.
12608
- *
12609
- * A scrolling ancestor is layout chrome rather than route content, so it
12610
- * outlives the embed in practice; and if it does go, the host element goes
12611
- * with it and this instance is remounting anyway.
12612
- * `reconcilePreRenderContainer` re-runs this on a detached container.
13156
+ * Resolves the configured preRenderContainer to a live element, falling
13157
+ * back to `document.body`. A string selector is re-queried on every call so
13158
+ * a remounted container (E.g.: React replacing the node) resolves to the
13159
+ * fresh element; an element passed directly cannot be re-resolved.
12613
13160
  */
12614
13161
  private resolvePreRenderContainerTarget;
12615
13162
  private inheritPreRenderContainer;
@@ -12626,9 +13173,8 @@ declare class TsEmbed {
12626
13173
  * Re-attaches the wrapper to a live container when the previously resolved
12627
13174
  * one has been detached or no longer holds the wrapper — e.g. the host app
12628
13175
  * remounted a custom preRenderContainer, which would otherwise leave a stale
12629
- * reference and collapse the wrapper. Selectors and the auto-resolved
12630
- * scrolling ancestor are both re-resolved; a container passed as an element
12631
- * is left untouched, as there is nothing to re-query.
13176
+ * reference and collapse the wrapper. Only string selectors can be
13177
+ * re-resolved; a container passed as an element is left untouched.
12632
13178
  */
12633
13179
  private reconcilePreRenderContainer;
12634
13180
  protected insertIntoDOMForPreRender(child: string | Node): void;
@@ -12844,17 +13390,9 @@ declare class TsEmbed {
12844
13390
  */
12845
13391
  private restorePreRenderContainerPosition;
12846
13392
  /**
12847
- * Re-sizes the wrapper when its placeholder changes size.
12848
- *
12849
- * Position deliberately has no equivalent. An absolutely positioned wrapper
12850
- * follows its containing block for free, so a correctly placed frame is the
12851
- * browser's job and costs nothing; repositioning it on scroll would mean a
12852
- * layout read and a style write per frame to compensate for placing it in
12853
- * the wrong box. Size is the one thing the browser will not do for us: the
12854
- * placeholder grows when the embedded app reports a new height, and the
12855
- * wrapper has to be told.
13393
+ * Detaches and clears the container scroll listener, if one is attached.
12856
13394
  */
12857
- private observePreRenderSize;
13395
+ private removeContainerScrollListener;
12858
13396
  /**
12859
13397
  * Destroys the ThoughtSpot embed, and remove any nodes from the DOM.
12860
13398
  * @version SDK: 1.19.1 | ThoughtSpot: *
@@ -12870,6 +13408,8 @@ declare class TsEmbed {
12870
13408
  */
12871
13409
  prerenderGeneric(): Promise<any>;
12872
13410
  protected preRenderParamsApplied: Promise<void>;
13411
+ protected isConfigExcludedFromUrl(): boolean;
13412
+ protected triggerUpdateEmbedParams(): Promise<void>;
12873
13413
  protected beforePrerenderVisible(): void;
12874
13414
  /**
12875
13415
  * Displays the pre-rendered component inside the host element.
@@ -12955,6 +13495,17 @@ declare class V1Embed extends TsEmbed {
12955
13495
  */
12956
13496
  test__executeCallbacks: (eventType: EmbedEvent, data: any, eventPort?: void | MessagePort) => void;
12957
13497
  }
13498
+ /**
13499
+ * The Spotter experience version to load in the embedded view.
13500
+ * @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.11.0.cl
13501
+ * @group Embed components
13502
+ */
13503
+ export declare enum SpotterExperienceVersion {
13504
+ /**
13505
+ * The Spotter experience version introduced in ThoughtSpot 26.11.
13506
+ */
13507
+ SPOTTER_2026_11 = "spotter_2026_11"
13508
+ }
12958
13509
  /**
12959
13510
  * Configuration for search options
12960
13511
  */
@@ -13378,6 +13929,20 @@ export interface SpotterAnalystConfig {
13378
13929
  * @group Embed components
13379
13930
  */
13380
13931
  export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, "primaryAction"> {
13932
+ /**
13933
+ * The Spotter experience version to load. When set to
13934
+ * `SpotterExperienceVersion.SPOTTER_2026_11`, the embed loads the updated Spotter
13935
+ * surface instead of the default conversation surface.
13936
+ * @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.11.0.cl
13937
+ * @example
13938
+ * ```js
13939
+ * const embed = new SpotterEmbed('#tsEmbed', {
13940
+ * ... // other options
13941
+ * spotterExperienceVersion: SpotterExperienceVersion.SPOTTER_2026_11,
13942
+ * });
13943
+ * ```
13944
+ */
13945
+ spotterExperienceVersion?: SpotterExperienceVersion;
13381
13946
  /**
13382
13947
  * The ID of the data source object. For example, Model, View, or Table. Spotter uses
13383
13948
  * this object to query data and generate Answers.
@@ -13925,6 +14490,21 @@ export interface SpotterVizConfig {
13925
14490
  * @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.7.0.cl
13926
14491
  */
13927
14492
  insightTileLoaderText?: string;
14493
+ /**
14494
+ * Set to `false` to hide the file upload feature in the SpotterViz chat
14495
+ * input on a cluster where the feature is available.
14496
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
14497
+ * @default true
14498
+ */
14499
+ fileUploadEnabled?: boolean;
14500
+ /**
14501
+ * Restricts the allowed file types for SpotterViz file upload to a
14502
+ * subset of the types SpotterViz supports, e.g. `['csv', 'pdf']`.
14503
+ * Entries are file extensions (with or without the leading dot); types
14504
+ * SpotterViz does not support are ignored, as are empty lists.
14505
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
14506
+ */
14507
+ fileUploadFileTypes?: string[];
13928
14508
  }
13929
14509
  /**
13930
14510
  * A single tip shown in the SpotterViz loading state.
@@ -14811,6 +15391,19 @@ export interface AppViewConfig extends AllEmbedViewConfig, FullHeightViewConfig
14811
15391
  * ```
14812
15392
  */
14813
15393
  hideAnswerEditPanel?: boolean;
15394
+ /**
15395
+ * The Spotter experience version to load for the Spotter surface shown within
15396
+ * this embed.
15397
+ * @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.11.0.cl
15398
+ * @example
15399
+ * ```js
15400
+ * const embed = new AppEmbed('#tsEmbed', {
15401
+ * ... // other options
15402
+ * spotterExperienceVersion: SpotterExperienceVersion.SPOTTER_2026_11,
15403
+ * });
15404
+ * ```
15405
+ */
15406
+ spotterExperienceVersion?: SpotterExperienceVersion;
14814
15407
  }
14815
15408
  /**
14816
15409
  * APP_INIT data shape for AppEmbed.
@@ -15176,6 +15769,56 @@ export declare const exportTML: (data: exportTMLInput) => Promise<any>;
15176
15769
  * @group Global methods
15177
15770
  */
15178
15771
  export declare const reloadIframe: (iFrame: HTMLIFrameElement) => void;
15772
+ /**
15773
+ * A filter to apply to a Liveboard when it loads.
15774
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
15775
+ * @group Embed components
15776
+ */
15777
+ export interface LiveboardFilterQuery {
15778
+ /** Name of the Liveboard tab the filter applies to. */
15779
+ tabName?: string;
15780
+ /** Name of the group within the tab that the filter applies to. */
15781
+ groupName?: string;
15782
+ /**
15783
+ * The filter condition, in search sentence form. For example, `color = red`.
15784
+ */
15785
+ filterQueryToken: string;
15786
+ }
15787
+ /**
15788
+ * A Parameter value to apply to a Liveboard when it loads.
15789
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
15790
+ * @group Embed components
15791
+ */
15792
+ export interface LiveboardParameterQuery {
15793
+ /** Name of the Liveboard tab the Parameter applies to. */
15794
+ tabName?: string;
15795
+ /** Name of the group within the tab that the Parameter applies to. */
15796
+ groupName?: string;
15797
+ /** The Parameter assignment. */
15798
+ parameterQueryToken: string;
15799
+ }
15800
+ /**
15801
+ * Filter and Parameter overrides for one data source on the Liveboard.
15802
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
15803
+ * @group Embed components
15804
+ */
15805
+ export interface LiveboardDataSourceOverride {
15806
+ /** The data source (Model) the overrides apply to. */
15807
+ dataSourceIdentifier?: string;
15808
+ /** Filters to apply for this data source. */
15809
+ filterQuery?: LiveboardFilterQuery[];
15810
+ /** Parameter values to apply for this data source. */
15811
+ parameterQuery?: LiveboardParameterQuery[];
15812
+ }
15813
+ /**
15814
+ * Filter and Parameter overrides applied to a Liveboard when it loads.
15815
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
15816
+ * @group Embed components
15817
+ */
15818
+ export interface LiveboardOverride {
15819
+ /** One entry per data source to override. */
15820
+ dataSourceOverride: LiveboardDataSourceOverride[];
15821
+ }
15179
15822
  /**
15180
15823
  * APP_INIT data shape for LiveboardEmbed.
15181
15824
  * @internal
@@ -15184,6 +15827,7 @@ export interface LiveboardEmbedAppInitData extends DefaultAppInitData {
15184
15827
  embedParams?: {
15185
15828
  spotterVizConfig?: SpotterVizConfig;
15186
15829
  starterPrompts?: StarterPromptsConfig;
15830
+ liveboardOverride?: LiveboardOverride;
15187
15831
  };
15188
15832
  }
15189
15833
  /**
@@ -15670,7 +16314,62 @@ export interface LiveboardViewConfig extends BaseViewConfig, FullHeightViewConfi
15670
16314
  * ```
15671
16315
  */
15672
16316
  updatedSpotterExperience?: boolean;
16317
+ /**
16318
+ * Filters and Parameters to apply to the Liveboard when it loads.
16319
+ *
16320
+ * In an embedded Liveboard, this is the only way to set these overrides.
16321
+ * The `filter` and `parameter` URL query params are ignored.
16322
+ * Clauses without a query token are dropped.
16323
+ *
16324
+ * Supported embed types: `LiveboardEmbed`
16325
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
16326
+ * @example
16327
+ * ```js
16328
+ * const embed = new LiveboardEmbed('#tsEmbed', {
16329
+ * ... // other embed view config
16330
+ * liveboardOverride: {
16331
+ * dataSourceOverride: [{
16332
+ * dataSourceIdentifier: '<model-guid>',
16333
+ * filterQuery: [{
16334
+ * tabName: 'Sales',
16335
+ * groupName: 'Region',
16336
+ * filterQueryToken: 'color = red',
16337
+ * }],
16338
+ * }],
16339
+ * },
16340
+ * })
16341
+ * ```
16342
+ */
16343
+ liveboardOverride?: LiveboardOverride;
16344
+ /**
16345
+ * The Spotter experience version to load for the Spotter surface shown within
16346
+ * this embed.
16347
+ * @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.11.0.cl
16348
+ * @example
16349
+ * ```js
16350
+ * const embed = new LiveboardEmbed('#tsEmbed', {
16351
+ * ... // other options
16352
+ * spotterExperienceVersion: SpotterExperienceVersion.SPOTTER_2026_11,
16353
+ * });
16354
+ * ```
16355
+ */
16356
+ spotterExperienceVersion?: SpotterExperienceVersion;
15673
16357
  }
16358
+ /**
16359
+ * Embed a ThoughtSpot Liveboard or visualization. When rendered it already
16360
+ * waits for the authentication to complete, so you need not wait for
16361
+ * `AuthStatus.SUCCESS`.
16362
+ * @group Embed components
16363
+ * @example
16364
+ * ```js
16365
+ * import { .. } from '@thoughtspot/visual-embed-sdk';
16366
+ * init({ ... });
16367
+ * const embed = new LiveboardEmbed("#container", {
16368
+ * liveboardId: <your-id-here>,
16369
+ * // .. other params here.
16370
+ * })
16371
+ * ```
16372
+ */
15674
16373
  export declare class LiveboardEmbed extends V1Embed {
15675
16374
  protected viewConfig: LiveboardViewConfig;
15676
16375
  private readonly fullHeightController?;
@@ -15702,19 +16401,6 @@ export declare class LiveboardEmbed extends V1Embed {
15702
16401
  personalizedViewId: string;
15703
16402
  };
15704
16403
  protected beforePrerenderVisible(): void;
15705
- /**
15706
- * Whether `previous` was showing what this instance is about to show.
15707
- *
15708
- * Undefined-valued keys are dropped before comparing. `navigateToLiveboard`
15709
- * assigns `vizId`, `activeTabId` and `personalizedViewId` unconditionally,
15710
- * so an instance that has been shown once carries those keys as `undefined`
15711
- * while a freshly constructed one does not have them at all. `isEqual`
15712
- * counts own keys, so without this the comparison can never be true after
15713
- * the first show — which is the whole case this exists for.
15714
- *
15715
- * Callbacks compare as equal: React passes a fresh closure per render.
15716
- */
15717
- private isSameEmbedConfig;
15718
16404
  private isShowingLiveboardRoute;
15719
16405
  protected handleRenderForPrerender(): Promise<TsEmbed>;
15720
16406
  /**
@@ -16418,6 +17104,7 @@ declare const getEmbedConfig: () => EmbedConfig;
16418
17104
  export declare const MIXPANEL_EVENT: {
16419
17105
  VISUAL_SDK_RENDER_START: string;
16420
17106
  VISUAL_SDK_CALLED_INIT: string;
17107
+ VISUAL_SDK_INIT_ACTIONS: string;
16421
17108
  VISUAL_SDK_RENDER_COMPLETE: string;
16422
17109
  VISUAL_SDK_RENDER_FAILED: string;
16423
17110
  VISUAL_SDK_TRIGGER: string;