@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
@@ -123,6 +123,33 @@ export interface CustomCssVariables {
123
123
  * Background color of the search suggestion block on hover.
124
124
  */
125
125
  "--ts-var-search-bar-auto-complete-hover-background"?: string;
126
+ /**
127
+ * Background color of the submit (*Go*) button in the search box.
128
+ */
129
+ "--ts-var-search-submit-button-background"?: string;
130
+ /**
131
+ * Color of the label and icon on the submit (*Go*) button in the search box.
132
+ */
133
+ "--ts-var-search-submit-button-color"?: string;
134
+ /**
135
+ * Background color of the submit (*Go*) button in the search box on hover.
136
+ * Defaults to the background color set for the non-hover state.
137
+ */
138
+ "--ts-var-search-submit-button--hover-background"?: string;
139
+ /**
140
+ * Border radius of the submit (*Go*) button in the search box. Default: `40px`.
141
+ */
142
+ "--ts-var-search-submit-button-border-radius"?: string;
143
+ /**
144
+ * Border width of the submit (*Go*) button in the search box. Default: `0`.
145
+ * The button has a fixed size, so a border reduces its inner area.
146
+ */
147
+ "--ts-var-search-submit-button-border-width"?: string;
148
+ /**
149
+ * Border color of the submit (*Go*) button in the search box.
150
+ * Visible only when `--ts-var-search-submit-button-border-width` is set.
151
+ */
152
+ "--ts-var-search-submit-button-border-color"?: string;
126
153
  /**
127
154
  * Font color of the text in the search suggestion panel.
128
155
  */
@@ -226,6 +253,194 @@ export interface CustomCssVariables {
226
253
  * Backgroud color of the tertiary buttons when active.
227
254
  */
228
255
  "--ts-var-button--tertiary--active-background"?: string;
256
+ /**
257
+ * Font family specification for the text on the tertiary buttons.
258
+ * Defaults to the inherited font.
259
+ */
260
+ "--ts-var-button--tertiary--font-family"?: string;
261
+ /**
262
+ * Padding of buttons with text, for example, `6px 16px`. Applies to all button
263
+ * sizes and variants.
264
+ */
265
+ "--ts-var-button-padding"?: string;
266
+ /**
267
+ * Minimum width of buttons with text. Applies to all button sizes and variants.
268
+ */
269
+ "--ts-var-button-min-width"?: string;
270
+ /**
271
+ * Space between the icon and the label in a button. Default: `8px`.
272
+ */
273
+ "--ts-var-button-gap"?: string;
274
+ /**
275
+ * Height of buttons. Icon-only buttons remain square when this is set.
276
+ */
277
+ "--ts-var-button-height"?: string;
278
+ /**
279
+ * Font size of the button label. The line height scales proportionally.
280
+ */
281
+ "--ts-var-button-font-size"?: string;
282
+ /**
283
+ * Font weight of the button label. Default: `400`.
284
+ */
285
+ "--ts-var-button-font-weight"?: string;
286
+ /**
287
+ * Border width of buttons. Default: `0`. To show a border on a button variant,
288
+ * also set its border color, for example, `--ts-var-button--primary-border-color`.
289
+ */
290
+ "--ts-var-button-border-width"?: string;
291
+ /**
292
+ * Padding of the primary buttons with text.
293
+ * Overrides `--ts-var-button-padding` for primary buttons.
294
+ */
295
+ "--ts-var-button--primary-padding"?: string;
296
+ /**
297
+ * Minimum width of the primary buttons with text.
298
+ * Overrides `--ts-var-button-min-width` for primary buttons.
299
+ */
300
+ "--ts-var-button--primary-min-width"?: string;
301
+ /**
302
+ * Space between the icon and the label in the primary buttons.
303
+ * Overrides `--ts-var-button-gap` for primary buttons.
304
+ */
305
+ "--ts-var-button--primary-gap"?: string;
306
+ /**
307
+ * Font weight of the text on the primary buttons.
308
+ * Overrides `--ts-var-button-font-weight` for primary buttons.
309
+ */
310
+ "--ts-var-button--primary-font-weight"?: string;
311
+ /**
312
+ * Border color of the primary buttons.
313
+ * Visible only when `--ts-var-button-border-width` is set.
314
+ */
315
+ "--ts-var-button--primary-border-color"?: string;
316
+ /**
317
+ * Padding of the secondary buttons with text.
318
+ * Overrides `--ts-var-button-padding` for secondary buttons.
319
+ */
320
+ "--ts-var-button--secondary-padding"?: string;
321
+ /**
322
+ * Minimum width of the secondary buttons with text.
323
+ * Overrides `--ts-var-button-min-width` for secondary buttons.
324
+ */
325
+ "--ts-var-button--secondary-min-width"?: string;
326
+ /**
327
+ * Space between the icon and the label in the secondary buttons.
328
+ * Overrides `--ts-var-button-gap` for secondary buttons.
329
+ */
330
+ "--ts-var-button--secondary-gap"?: string;
331
+ /**
332
+ * Font weight of the text on the secondary buttons.
333
+ * Overrides `--ts-var-button-font-weight` for secondary buttons.
334
+ */
335
+ "--ts-var-button--secondary-font-weight"?: string;
336
+ /**
337
+ * Border color of the secondary buttons.
338
+ * Visible only when `--ts-var-button-border-width` is set.
339
+ */
340
+ "--ts-var-button--secondary-border-color"?: string;
341
+ /**
342
+ * Padding of the tertiary buttons with text.
343
+ * Overrides `--ts-var-button-padding` for tertiary buttons.
344
+ */
345
+ "--ts-var-button--tertiary-padding"?: string;
346
+ /**
347
+ * Minimum width of the tertiary buttons with text.
348
+ * Overrides `--ts-var-button-min-width` for tertiary buttons.
349
+ */
350
+ "--ts-var-button--tertiary-min-width"?: string;
351
+ /**
352
+ * Space between the icon and the label in the tertiary buttons.
353
+ * Overrides `--ts-var-button-gap` for tertiary buttons.
354
+ */
355
+ "--ts-var-button--tertiary-gap"?: string;
356
+ /**
357
+ * Font weight of the text on the tertiary buttons.
358
+ * Overrides `--ts-var-button-font-weight` for tertiary buttons.
359
+ */
360
+ "--ts-var-button--tertiary-font-weight"?: string;
361
+ /**
362
+ * Border color of the tertiary buttons.
363
+ * Visible only when `--ts-var-button-border-width` is set.
364
+ */
365
+ "--ts-var-button--tertiary-border-color"?: string;
366
+ /**
367
+ * Font color of the tab labels.
368
+ */
369
+ "--ts-var-tab-color"?: string;
370
+ /**
371
+ * Background color of the tabs.
372
+ */
373
+ "--ts-var-tab-background"?: string;
374
+ /**
375
+ * Font family specification for the tab labels.
376
+ */
377
+ "--ts-var-tab-font-family"?: string;
378
+ /**
379
+ * Font size of the tab labels.
380
+ */
381
+ "--ts-var-tab-font-size"?: string;
382
+ /**
383
+ * Font weight of the tab labels.
384
+ */
385
+ "--ts-var-tab-font-weight"?: string;
386
+ /**
387
+ * Padding of the tab items.
388
+ */
389
+ "--ts-var-tab-padding"?: string;
390
+ /**
391
+ * Height of the tab items.
392
+ */
393
+ "--ts-var-tab-height"?: string;
394
+ /**
395
+ * Border radius of the tab items.
396
+ */
397
+ "--ts-var-tab-border-radius"?: string;
398
+ /**
399
+ * Font color of the tab labels on hover.
400
+ */
401
+ "--ts-var-tab--hover-color"?: string;
402
+ /**
403
+ * Background color of the tab items on hover.
404
+ */
405
+ "--ts-var-tab--hover-background"?: string;
406
+ /**
407
+ * Font color of the selected tab label.
408
+ */
409
+ "--ts-var-tab--selected-color"?: string;
410
+ /**
411
+ * Background color of the selected tab item.
412
+ */
413
+ "--ts-var-tab--selected-background"?: string;
414
+ /**
415
+ * Font weight of the selected tab label.
416
+ */
417
+ "--ts-var-tab--selected-font-weight"?: string;
418
+ /**
419
+ * Color of the underline indicator on the selected tab, in the horizontal tab layout.
420
+ */
421
+ "--ts-var-tab--selected-indicator-color"?: string;
422
+ /**
423
+ * Thickness of the underline indicator on the selected tab, in the horizontal tab
424
+ * layout.
425
+ */
426
+ "--ts-var-tab--selected-indicator-height"?: string;
427
+ /**
428
+ * Border color of the divider below the horizontal tab strip.
429
+ */
430
+ "--ts-var-tab-list-border-color"?: string;
431
+ /**
432
+ * Color of the side rail indicator on the selected tab, in the vertical tab layout.
433
+ */
434
+ "--ts-var-tab--vertical--selected-indicator-color"?: string;
435
+ /**
436
+ * Thickness of the side rail indicator on the selected tab, in the vertical tab
437
+ * layout.
438
+ */
439
+ "--ts-var-tab--vertical--selected-indicator-width"?: string;
440
+ /**
441
+ * Border color of the divider beside the vertical tab strip.
442
+ */
443
+ "--ts-var-tab--vertical-list-border-color"?: string;
229
444
  /**
230
445
  * Font color of the title text of a visualization or Answer.
231
446
  */
@@ -313,6 +528,104 @@ export interface CustomCssVariables {
313
528
  * Font family specification for the text on filter chips.
314
529
  */
315
530
  "--ts-var-chip-title-font-family"?: string;
531
+ /**
532
+ * Background color of attribute chips, such as attribute tokens in the search bar
533
+ * and attribute columns in the data panel.
534
+ * In chip components, `--ts-var-chip-background` takes precedence when set.
535
+ */
536
+ "--ts-var-chip--attribute-background"?: string;
537
+ /**
538
+ * Background color of attribute chips on hover.
539
+ */
540
+ "--ts-var-chip--attribute--hover-background"?: string;
541
+ /**
542
+ * Border color of attribute chips.
543
+ * Defaults to `--ts-var-chip--attribute-background`.
544
+ */
545
+ "--ts-var-chip--attribute-border-color"?: string;
546
+ /**
547
+ * Border color of attribute chips on hover.
548
+ * Defaults to `--ts-var-chip--attribute--hover-background`.
549
+ */
550
+ "--ts-var-chip--attribute--hover-border-color"?: string;
551
+ /**
552
+ * Background color of measure chips, such as measure tokens in the search bar
553
+ * and measure columns in the data panel.
554
+ * In chip components, `--ts-var-chip-background` takes precedence when set.
555
+ */
556
+ "--ts-var-chip--measure-background"?: string;
557
+ /**
558
+ * Background color of measure chips on hover.
559
+ */
560
+ "--ts-var-chip--measure--hover-background"?: string;
561
+ /**
562
+ * Border color of measure chips.
563
+ * Defaults to `--ts-var-chip--measure-background`.
564
+ */
565
+ "--ts-var-chip--measure-border-color"?: string;
566
+ /**
567
+ * Border color of measure chips on hover.
568
+ * Defaults to `--ts-var-chip--measure--hover-background`.
569
+ */
570
+ "--ts-var-chip--measure--hover-border-color"?: string;
571
+ /**
572
+ * Background color of date chips, such as date tokens in the search bar
573
+ * and date columns in the data panel.
574
+ * In chip components, `--ts-var-chip-background` takes precedence when set.
575
+ */
576
+ "--ts-var-chip--date-background"?: string;
577
+ /**
578
+ * Background color of date chips on hover.
579
+ */
580
+ "--ts-var-chip--date--hover-background"?: string;
581
+ /**
582
+ * Border color of date chips.
583
+ * Defaults to `--ts-var-chip--date-background`.
584
+ */
585
+ "--ts-var-chip--date-border-color"?: string;
586
+ /**
587
+ * Border color of date chips on hover.
588
+ * Defaults to `--ts-var-chip--date--hover-background`.
589
+ */
590
+ "--ts-var-chip--date--hover-border-color"?: string;
591
+ /**
592
+ * Background color of filter chips, such as filter tokens in the search bar.
593
+ * Also applies to neutral column chips, such as formula and set columns.
594
+ * In chip components, `--ts-var-chip-background` takes precedence when set.
595
+ */
596
+ "--ts-var-chip--filter-background"?: string;
597
+ /**
598
+ * Background color of filter chips on hover.
599
+ */
600
+ "--ts-var-chip--filter--hover-background"?: string;
601
+ /**
602
+ * Border color of filter chips.
603
+ * Defaults to `--ts-var-chip--filter-background`.
604
+ */
605
+ "--ts-var-chip--filter-border-color"?: string;
606
+ /**
607
+ * Border color of filter chips on hover.
608
+ * Defaults to `--ts-var-chip--filter--hover-background`.
609
+ */
610
+ "--ts-var-chip--filter--hover-border-color"?: string;
611
+ /**
612
+ * Background color of unrecognized tokens in the search bar.
613
+ */
614
+ "--ts-var-chip--unrecognized-background"?: string;
615
+ /**
616
+ * Background color of unrecognized tokens in the search bar on hover.
617
+ */
618
+ "--ts-var-chip--unrecognized--hover-background"?: string;
619
+ /**
620
+ * Border color of unrecognized tokens in the search bar.
621
+ * Defaults to `--ts-var-chip--unrecognized-background`.
622
+ */
623
+ "--ts-var-chip--unrecognized-border-color"?: string;
624
+ /**
625
+ * Border color of unrecognized tokens in the search bar on hover.
626
+ * Defaults to `--ts-var-chip--unrecognized--hover-background`.
627
+ */
628
+ "--ts-var-chip--unrecognized--hover-border-color"?: string;
316
629
  /**
317
630
  * Font color of axis title on charts.
318
631
  */
@@ -664,6 +977,54 @@ export interface CustomCssVariables {
664
977
  * Font color of the hover tab in the Liveboard.
665
978
  */
666
979
  "--ts-var-liveboard-tab-hover-color"?: string;
980
+ /**
981
+ * Font color of the tab labels in the Liveboard.
982
+ */
983
+ "--ts-var-liveboard-tab-color"?: string;
984
+ /**
985
+ * Background color of the tab items in the Liveboard.
986
+ */
987
+ "--ts-var-liveboard-tab-background"?: string;
988
+ /**
989
+ * Font family specification for the tab labels in the Liveboard.
990
+ */
991
+ "--ts-var-liveboard-tab-font-family"?: string;
992
+ /**
993
+ * Font size of the tab labels in the Liveboard.
994
+ */
995
+ "--ts-var-liveboard-tab-font-size"?: string;
996
+ /**
997
+ * Font weight of the tab labels in the Liveboard.
998
+ */
999
+ "--ts-var-liveboard-tab-font-weight"?: string;
1000
+ /**
1001
+ * Border radius of the tab items in the Liveboard.
1002
+ */
1003
+ "--ts-var-liveboard-tab-border-radius"?: string;
1004
+ /**
1005
+ * Background color of the tab items in the Liveboard on hover.
1006
+ */
1007
+ "--ts-var-liveboard-tab-hover-background"?: string;
1008
+ /**
1009
+ * Font color of the selected tab label in the Liveboard.
1010
+ */
1011
+ "--ts-var-liveboard-tab-selected-color"?: string;
1012
+ /**
1013
+ * Background color of the selected tab item in the Liveboard.
1014
+ */
1015
+ "--ts-var-liveboard-tab-selected-background"?: string;
1016
+ /**
1017
+ * Font weight of the selected tab label in the Liveboard.
1018
+ */
1019
+ "--ts-var-liveboard-tab-selected-font-weight"?: string;
1020
+ /**
1021
+ * Thickness of the underline indicator on the selected tab in the Liveboard.
1022
+ */
1023
+ "--ts-var-liveboard-tab-selected-indicator-height"?: string;
1024
+ /**
1025
+ * Border color of the divider above the tab strip in the Liveboard.
1026
+ */
1027
+ "--ts-var-liveboard-tab-list-border-color"?: string;
667
1028
  /**
668
1029
  * Font size of the title of the tiles in the Liveboard.
669
1030
  */
@@ -1029,7 +1390,8 @@ export interface CustomCssVariables {
1029
1390
  "--ts-var-spotterviz-footer-text-color"?: string;
1030
1391
  /**
1031
1392
  * Shared border color used throughout SpotterViz: input box, user message,
1032
- * header underline, left panel border, thinking step connector and dots.
1393
+ * header underline, left panel border, thinking step connector and dots,
1394
+ * and the attached-file upload card.
1033
1395
  */
1034
1396
  "--ts-var-spotterviz-border-color"?: string;
1035
1397
  /**
@@ -1043,16 +1405,22 @@ export interface CustomCssVariables {
1043
1405
  "--ts-var-spotterviz-reference-icon-hover-background"?: string;
1044
1406
  /**
1045
1407
  * Icon color for the reference-mode selected state — applies to
1046
- * both the toggle button when active and the icon badge on each
1047
- * referenced-entity chip in the chat input.
1408
+ * the toggle button when active and the icon badge on each
1409
+ * referenced-entity chip and the attached-file chip in the chat input.
1048
1410
  */
1049
1411
  "--ts-var-spotterviz-reference-icon-selected-color"?: string;
1050
1412
  /**
1051
1413
  * Background color for the reference-mode selected state — applies to
1052
- * both the reference mode toggle button when active and the icon badge
1053
- * on each referenced-entity chip in the chat input.
1414
+ * the reference mode toggle button when active and the icon badge on
1415
+ * each referenced-entity chip and the attached-file chip in the chat
1416
+ * input.
1054
1417
  */
1055
1418
  "--ts-var-spotterviz-reference-icon-selected-background"?: string;
1419
+ /**
1420
+ * Background color of the file-type thumbnail on the attached-file card
1421
+ * in the SpotterViz chat input.
1422
+ */
1423
+ "--ts-var-spotterviz-upload-card-thumbnail-background"?: string;
1056
1424
  /**
1057
1425
  * Background color of the shared conversation header (recipient's read-only view).
1058
1426
  */
@@ -1113,6 +1481,21 @@ export interface UnderlyingDataPoint {
1113
1481
  columnId: string;
1114
1482
  dataValue: any;
1115
1483
  }
1484
+ /**
1485
+ * Describes how to sort a column when fetching data. Pass an array of these to
1486
+ * sort by multiple columns, in priority order.
1487
+ * @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.12.0.cl
1488
+ */
1489
+ export interface SortOptions {
1490
+ /**
1491
+ * Name of the column to sort by. The column must exist in the data source.
1492
+ */
1493
+ columnName: string;
1494
+ /**
1495
+ * Sort direction. `true` sorts ascending, `false` sorts descending.
1496
+ */
1497
+ ascending: boolean;
1498
+ }
1116
1499
  declare class AnswerService {
1117
1500
  private session;
1118
1501
  private thoughtSpotHost;
@@ -1169,6 +1552,12 @@ declare class AnswerService {
1169
1552
  * @returns
1170
1553
  */
1171
1554
  addFilter(columnName: string, operator: RuntimeFilterOp, values: RuntimeFilter["values"]): Promise<any>;
1555
+ /**
1556
+ * Adapt the sort options into the `updateSort` payload and send it.
1557
+ * @param sortOptions Columns to sort by, each with a direction.
1558
+ * @param sourceDetail
1559
+ */
1560
+ private adaptSorting;
1172
1561
  updateDisplayMode(displayMode?: string): Promise<any>;
1173
1562
  getSQLQuery(fetchSQLWithAllColumns?: boolean): Promise<string>;
1174
1563
  /**
@@ -1221,18 +1610,21 @@ declare class AnswerService {
1221
1610
  * automatically passed.
1222
1611
  * @param outputColumnNames
1223
1612
  * @param selectedPoints
1613
+ * @param sortOptions Optional columns to sort the underlying data by.
1224
1614
  * @example
1225
1615
  * ```js
1226
1616
  * embed.on(EmbedEvent.CustomAction, e => {
1227
- * const underlying = await e.answerService.getUnderlyingDataForPoint([
1228
- * 'col name 1' // The column should exist in the data source.
1229
- * ]);
1617
+ * const underlying = await e.answerService.getUnderlyingDataForPoint(
1618
+ * ['col name 1'], // The column should exist in the data source.
1619
+ * undefined,
1620
+ * [{ columnName: 'col name 1', ascending: true }],
1621
+ * );
1230
1622
  * const data = await underlying.fetchData(0, 100);
1231
1623
  * })
1232
1624
  * ```
1233
1625
  * @version SDK: 1.25.0 | ThoughtSpot: 9.10.0.cl
1234
1626
  */
1235
- getUnderlyingDataForPoint(outputColumnNames: string[], selectedPoints?: UnderlyingDataPoint[]): Promise<AnswerService>;
1627
+ getUnderlyingDataForPoint(outputColumnNames: string[], selectedPoints?: UnderlyingDataPoint[], sortOptions?: SortOptions[]): Promise<AnswerService>;
1236
1628
  /**
1237
1629
  * Execute a custom graphql query in the context of the answer.
1238
1630
  * @param query graphql query
@@ -2038,6 +2430,27 @@ export interface EmbedConfig {
2038
2430
  * @default true
2039
2431
  */
2040
2432
  blockNonEmbedFullAppAccess?: boolean;
2433
+ /**
2434
+ * Render the embedded application in dark appearance when `true`, and in
2435
+ * its default appearance when `false` or unset.
2436
+ *
2437
+ * The host application owns the appearance of an embed, so this overrides
2438
+ * the appearance preference of the signed-in user and the color scheme of
2439
+ * their operating system. If your application has light and dark themes,
2440
+ * pass `true` while it shows the dark theme and `false` while it shows
2441
+ * the light theme.
2442
+ * @version SDK: 1.55.0 | ThoughtSpot Cloud: 26.12.0.cl
2443
+ * @example
2444
+ * ```js
2445
+ * // Your application's current theme, 'light' or 'dark'
2446
+ * const appTheme = 'dark';
2447
+ * init({
2448
+ * ...embedConfig,
2449
+ * isDarkMode: appTheme === 'dark',
2450
+ * });
2451
+ * ```
2452
+ */
2453
+ isDarkMode?: boolean;
2041
2454
  /**
2042
2455
  * Host config in case embedded app is inside TS app itself
2043
2456
  * @hidden
@@ -2610,6 +3023,31 @@ export interface BaseViewConfig extends ApiInterceptFlags {
2610
3023
  * @default ''
2611
3024
  */
2612
3025
  customizations?: CustomisationsInterface;
3026
+ /**
3027
+ * Render this embed in dark appearance when `true`, and in its default
3028
+ * appearance when `false`, overriding the `isDarkMode` value passed to
3029
+ * `init`.
3030
+ *
3031
+ * The host application owns the appearance of an embed, so this overrides
3032
+ * the appearance preference of the signed-in user and the color scheme of
3033
+ * their operating system. If your application has light and dark themes,
3034
+ * pass `true` while it shows the dark theme and `false` while it shows
3035
+ * the light theme. Leave it unset to inherit the `init` value.
3036
+ *
3037
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
3038
+ * @version SDK: 1.55.0 | ThoughtSpot Cloud: 26.12.0.cl
3039
+ * @example
3040
+ * ```js
3041
+ * // Your application's current theme, 'light' or 'dark'
3042
+ * const appTheme = 'dark';
3043
+ * // Replace AppEmbed with a specific embed component like SearchEmbed or LiveboardEmbed
3044
+ * const embed = new AppEmbed('#tsEmbed', {
3045
+ * ... // other embed view config
3046
+ * isDarkMode: appTheme === 'dark',
3047
+ * });
3048
+ * ```
3049
+ */
3050
+ isDarkMode?: boolean;
2613
3051
  /**
2614
3052
  * Insert as a sibling of the target container, instead of appending to a
2615
3053
  * child inside it.
@@ -4731,6 +5169,36 @@ export declare enum EmbedEvent {
4731
5169
  * ```
4732
5170
  */
4733
5171
  Edit = "edit",
5172
+ /**
5173
+ * Emitted when a user clicks **Edit** on a Liveboard.
5174
+ *
5175
+ * Fired alongside {@link EmbedEvent.Edit} for backward compatibility;
5176
+ * listen to this instead of `Edit` to target the Liveboard surface only.
5177
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
5178
+ * @example
5179
+ * ```js
5180
+ * liveboardEmbed.on(EmbedEvent.EditLiveboard, payload => {
5181
+ * console.log('Liveboard edit', payload);
5182
+ * })
5183
+ * ```
5184
+ */
5185
+ EditLiveboard = "editLiveboard",
5186
+ /**
5187
+ * Emitted when a user clicks **Edit** on a visualization inside a
5188
+ * Liveboard.
5189
+ *
5190
+ * Fired alongside {@link EmbedEvent.Edit} for backward compatibility;
5191
+ * listen to this instead of `Edit` to target the visualization surface
5192
+ * only.
5193
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
5194
+ * @example
5195
+ * ```js
5196
+ * liveboardEmbed.on(EmbedEvent.EditVisualization, payload => {
5197
+ * console.log('visualization edit', payload);
5198
+ * })
5199
+ * ```
5200
+ */
5201
+ EditVisualization = "editVisualization",
4734
5202
  /**
4735
5203
  * Emitted when a user clicks *Make a copy* on a Liveboard
4736
5204
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
@@ -6701,6 +7169,35 @@ export declare enum HostEvent {
6701
7169
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
6702
7170
  */
6703
7171
  Edit = "edit",
7172
+ /**
7173
+ * Trigger the **Edit** action on a Liveboard only — does not affect a
7174
+ * visualization's edit surface.
7175
+ *
7176
+ * Behaves like {@link HostEvent.Edit} restricted to the Liveboard
7177
+ * surface. Use {@link HostEvent.EditVisualization} to target a
7178
+ * visualization instead, or `HostEvent.Edit` to control whichever
7179
+ * surface applies contextually (unchanged, existing behavior).
7180
+ * @example
7181
+ * ```js
7182
+ * liveboardEmbed.trigger(HostEvent.EditLiveboard)
7183
+ * ```
7184
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
7185
+ */
7186
+ EditLiveboard = "editLiveboard",
7187
+ /**
7188
+ * Trigger the **Edit** action on a specific visualization inside a
7189
+ * Liveboard only — does not affect the Liveboard-level edit surface.
7190
+ * @param - Object parameter. Includes the following keys:
7191
+ * - `vizId`: **Required.** The visualization to edit.
7192
+ *
7193
+ * @example
7194
+ * ```js
7195
+ * liveboardEmbed.trigger(HostEvent.EditVisualization, {vizId:
7196
+ * '730496d6-6903-4601-937e-2c691821af3c'})
7197
+ * ```
7198
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
7199
+ */
7200
+ EditVisualization = "editVisualization",
6704
7201
  /**
6705
7202
  * Trigger the **Copy link** action on a Liveboard or visualization
6706
7203
  * Payload: {@link VizScopedRequest}.
@@ -8713,12 +9210,43 @@ export declare enum Action {
8713
9210
  * The *Edit* action on the Liveboard page and in the
8714
9211
  * visualization menu.
8715
9212
  * Opens a Liveboard or visualization in edit mode.
9213
+ *
9214
+ * Controls both surfaces together. To target one surface only, use
9215
+ * {@link Action.EditLiveboard} or {@link Action.EditVisualization}.
8716
9216
  * @example
8717
9217
  * ```js
8718
9218
  * disabledActions: [Action.Edit]
8719
9219
  * ```
8720
9220
  */
8721
9221
  Edit = "edit",
9222
+ /**
9223
+ * The *Edit* action on the Liveboard page only.
9224
+ * Opens a Liveboard in edit mode.
9225
+ *
9226
+ * Does not affect the *Edit* action in the visualization menu; use
9227
+ * {@link Action.EditVisualization} for that, or {@link Action.Edit} to
9228
+ * control both surfaces together.
9229
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
9230
+ * @example
9231
+ * ```js
9232
+ * disabledActions: [Action.EditLiveboard]
9233
+ * ```
9234
+ */
9235
+ EditLiveboard = "editLiveboard",
9236
+ /**
9237
+ * The *Edit* action in the visualization `...` menu only.
9238
+ * Opens a visualization in the editor.
9239
+ *
9240
+ * Does not affect the *Edit* action on the Liveboard page; use
9241
+ * {@link Action.EditLiveboard} for that, or {@link Action.Edit} to
9242
+ * control both surfaces together.
9243
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
9244
+ * @example
9245
+ * ```js
9246
+ * disabledActions: [Action.EditVisualization]
9247
+ * ```
9248
+ */
9249
+ EditVisualization = "editVisualization",
8722
9250
  /**
8723
9251
  * The text edit option for Liveboard and visualization titles.
8724
9252
  * @example
@@ -12246,6 +12774,7 @@ declare class TsEmbed {
12246
12774
  protected embedNodeKey: string;
12247
12775
  protected embedContainerLoadedKey: string;
12248
12776
  protected isAppInitialized: boolean;
12777
+ private initDataParams;
12249
12778
  /**
12250
12779
  * A reference to the iframe within which the ThoughtSpot app
12251
12780
  * will be rendered.
@@ -12295,7 +12824,7 @@ declare class TsEmbed {
12295
12824
  private defaultHiddenActions;
12296
12825
  private resizeObserver;
12297
12826
  private preRenderContainerEl;
12298
- /** Last height the embedded app reported, once fullHeight has measured one. */
12827
+ private containerScrollListener;
12299
12828
  protected hostEventClient: HostEventClient;
12300
12829
  protected isReadyForRenderPromise: Promise<void>;
12301
12830
  protected shouldWaitForRenderPromise: boolean;
@@ -12371,6 +12900,7 @@ declare class TsEmbed {
12371
12900
  protected getAuthTokenForCookielessInit(): Promise<string>;
12372
12901
  protected getDefaultAppInitData(): Promise<DefaultAppInitData>;
12373
12902
  protected getAppInitData(): Promise<DefaultAppInitData>;
12903
+ private withInitDataParams;
12374
12904
  /**
12375
12905
  * Send Custom style as part of payload of APP_INIT
12376
12906
  * @param _
@@ -12443,6 +12973,7 @@ declare class TsEmbed {
12443
12973
  [key: string]: string | number | boolean;
12444
12974
  };
12445
12975
  customizations?: CustomisationsInterface;
12976
+ isDarkMode?: boolean;
12446
12977
  insertAsSibling?: boolean;
12447
12978
  usePrerenderedIfAvailable?: boolean;
12448
12979
  preRenderId?: string;
@@ -12473,6 +13004,12 @@ declare class TsEmbed {
12473
13004
  isThisPeriodInDateFiltersEnabled?: boolean;
12474
13005
  hideLiveboardHeader?: boolean;
12475
13006
  showLiveboardTitle?: boolean;
13007
+ /**
13008
+ * Get the Post Url Params for THOUGHTSPOT from the current
13009
+ * host app URL.
13010
+ * THOUGHTSPOT URL params starts with a prefix "ts-"
13011
+ * @version SDK: 1.14.0 | ThoughtSpot: 8.4.0.cl, 8.4.1-sw
13012
+ */
12476
13013
  showLiveboardDescription?: boolean;
12477
13014
  isLiveboardHeaderSticky?: boolean;
12478
13015
  enable2ColumnLayout?: boolean;
@@ -12510,6 +13047,7 @@ declare class TsEmbed {
12510
13047
  protected getV1EmbedBasePath(queryString: string): string;
12511
13048
  protected getEmbedParams(): string;
12512
13049
  protected getEmbedParamsObject(): Record<any, any>;
13050
+ protected getUrlQueryParamsObject(): Record<any, any>;
12513
13051
  protected getRootIframeSrc(): string;
12514
13052
  protected createIframeEl(frameSrc: string): HTMLIFrameElement;
12515
13053
  /**
@@ -12551,26 +13089,10 @@ declare class TsEmbed {
12551
13089
  */
12552
13090
  private createPreRenderPlaceholder;
12553
13091
  /**
12554
- * Resolves the configured preRenderContainer to a live element. A string
12555
- * selector is re-queried on every call so a remounted container (E.g.: React
12556
- * replacing the node) resolves to the fresh element; an element passed
12557
- * directly cannot be re-resolved.
12558
- *
12559
- * With nothing configured the frame goes into the host element's nearest
12560
- * scrolling ancestor, falling back to `document.body`.
12561
- *
12562
- * The wrapper is absolutely positioned, so it follows the page for free —
12563
- * but only while it sits inside whatever scrolls. `document.body` is right
12564
- * only when the document itself is the scroller; an app that scrolls an
12565
- * inner element instead left the frame pinned to the viewport while the page
12566
- * moved under it (SCAL-338563). Being inside the scroller also lets wheel
12567
- * events chain out of the frame into it, which they cannot do from
12568
- * `document.body`.
12569
- *
12570
- * A scrolling ancestor is layout chrome rather than route content, so it
12571
- * outlives the embed in practice; and if it does go, the host element goes
12572
- * with it and this instance is remounting anyway.
12573
- * `reconcilePreRenderContainer` re-runs this on a detached container.
13092
+ * Resolves the configured preRenderContainer to a live element, falling
13093
+ * back to `document.body`. A string selector is re-queried on every call so
13094
+ * a remounted container (E.g.: React replacing the node) resolves to the
13095
+ * fresh element; an element passed directly cannot be re-resolved.
12574
13096
  */
12575
13097
  private resolvePreRenderContainerTarget;
12576
13098
  private inheritPreRenderContainer;
@@ -12587,9 +13109,8 @@ declare class TsEmbed {
12587
13109
  * Re-attaches the wrapper to a live container when the previously resolved
12588
13110
  * one has been detached or no longer holds the wrapper — e.g. the host app
12589
13111
  * remounted a custom preRenderContainer, which would otherwise leave a stale
12590
- * reference and collapse the wrapper. Selectors and the auto-resolved
12591
- * scrolling ancestor are both re-resolved; a container passed as an element
12592
- * is left untouched, as there is nothing to re-query.
13112
+ * reference and collapse the wrapper. Only string selectors can be
13113
+ * re-resolved; a container passed as an element is left untouched.
12593
13114
  */
12594
13115
  private reconcilePreRenderContainer;
12595
13116
  protected insertIntoDOMForPreRender(child: string | Node): void;
@@ -12805,17 +13326,9 @@ declare class TsEmbed {
12805
13326
  */
12806
13327
  private restorePreRenderContainerPosition;
12807
13328
  /**
12808
- * Re-sizes the wrapper when its placeholder changes size.
12809
- *
12810
- * Position deliberately has no equivalent. An absolutely positioned wrapper
12811
- * follows its containing block for free, so a correctly placed frame is the
12812
- * browser's job and costs nothing; repositioning it on scroll would mean a
12813
- * layout read and a style write per frame to compensate for placing it in
12814
- * the wrong box. Size is the one thing the browser will not do for us: the
12815
- * placeholder grows when the embedded app reports a new height, and the
12816
- * wrapper has to be told.
13329
+ * Detaches and clears the container scroll listener, if one is attached.
12817
13330
  */
12818
- private observePreRenderSize;
13331
+ private removeContainerScrollListener;
12819
13332
  /**
12820
13333
  * Destroys the ThoughtSpot embed, and remove any nodes from the DOM.
12821
13334
  * @version SDK: 1.19.1 | ThoughtSpot: *
@@ -12831,6 +13344,8 @@ declare class TsEmbed {
12831
13344
  */
12832
13345
  prerenderGeneric(): Promise<any>;
12833
13346
  protected preRenderParamsApplied: Promise<void>;
13347
+ protected isConfigExcludedFromUrl(): boolean;
13348
+ protected triggerUpdateEmbedParams(): Promise<void>;
12834
13349
  protected beforePrerenderVisible(): void;
12835
13350
  /**
12836
13351
  * Displays the pre-rendered component inside the host element.
@@ -13387,6 +13902,17 @@ declare class SearchBarEmbed extends TsEmbed {
13387
13902
  };
13388
13903
  protected getAppInitData(): Promise<SearchAppInitData$1>;
13389
13904
  }
13905
+ /**
13906
+ * The Spotter experience version to load in the embedded view.
13907
+ * @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.11.0.cl
13908
+ * @group Embed components
13909
+ */
13910
+ export declare enum SpotterExperienceVersion {
13911
+ /**
13912
+ * The Spotter experience version introduced in ThoughtSpot 26.11.
13913
+ */
13914
+ SPOTTER_2026_11 = "spotter_2026_11"
13915
+ }
13390
13916
  interface SearchOptions$1 {
13391
13917
  /**
13392
13918
  * The query string to pass to start the Conversation.
@@ -13803,6 +14329,20 @@ export interface SpotterAnalystConfig {
13803
14329
  * @group Embed components
13804
14330
  */
13805
14331
  export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, "primaryAction"> {
14332
+ /**
14333
+ * The Spotter experience version to load. When set to
14334
+ * `SpotterExperienceVersion.SPOTTER_2026_11`, the embed loads the updated Spotter
14335
+ * surface instead of the default conversation surface.
14336
+ * @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.11.0.cl
14337
+ * @example
14338
+ * ```js
14339
+ * const embed = new SpotterEmbed('#tsEmbed', {
14340
+ * ... // other options
14341
+ * spotterExperienceVersion: SpotterExperienceVersion.SPOTTER_2026_11,
14342
+ * });
14343
+ * ```
14344
+ */
14345
+ spotterExperienceVersion?: SpotterExperienceVersion;
13806
14346
  /**
13807
14347
  * The ID of the data source object. For example, Model, View, or Table. Spotter uses
13808
14348
  * this object to query data and generate Answers.
@@ -14318,6 +14858,21 @@ export interface SpotterVizConfig {
14318
14858
  * @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.7.0.cl
14319
14859
  */
14320
14860
  insightTileLoaderText?: string;
14861
+ /**
14862
+ * Set to `false` to hide the file upload feature in the SpotterViz chat
14863
+ * input on a cluster where the feature is available.
14864
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
14865
+ * @default true
14866
+ */
14867
+ fileUploadEnabled?: boolean;
14868
+ /**
14869
+ * Restricts the allowed file types for SpotterViz file upload to a
14870
+ * subset of the types SpotterViz supports, e.g. `['csv', 'pdf']`.
14871
+ * Entries are file extensions (with or without the leading dot); types
14872
+ * SpotterViz does not support are ignored, as are empty lists.
14873
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
14874
+ */
14875
+ fileUploadFileTypes?: string[];
14321
14876
  }
14322
14877
  /**
14323
14878
  * A single tip shown in the SpotterViz loading state.
@@ -15192,6 +15747,19 @@ export interface AppViewConfig extends AllEmbedViewConfig, FullHeightViewConfig
15192
15747
  * ```
15193
15748
  */
15194
15749
  hideAnswerEditPanel?: boolean;
15750
+ /**
15751
+ * The Spotter experience version to load for the Spotter surface shown within
15752
+ * this embed.
15753
+ * @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.11.0.cl
15754
+ * @example
15755
+ * ```js
15756
+ * const embed = new AppEmbed('#tsEmbed', {
15757
+ * ... // other options
15758
+ * spotterExperienceVersion: SpotterExperienceVersion.SPOTTER_2026_11,
15759
+ * });
15760
+ * ```
15761
+ */
15762
+ spotterExperienceVersion?: SpotterExperienceVersion;
15195
15763
  }
15196
15764
  /**
15197
15765
  * APP_INIT data shape for AppEmbed.
@@ -15270,6 +15838,56 @@ declare class AppEmbed extends V1Embed {
15270
15838
  */
15271
15839
  render(): Promise<AppEmbed>;
15272
15840
  }
15841
+ /**
15842
+ * A filter to apply to a Liveboard when it loads.
15843
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
15844
+ * @group Embed components
15845
+ */
15846
+ export interface LiveboardFilterQuery {
15847
+ /** Name of the Liveboard tab the filter applies to. */
15848
+ tabName?: string;
15849
+ /** Name of the group within the tab that the filter applies to. */
15850
+ groupName?: string;
15851
+ /**
15852
+ * The filter condition, in search sentence form. For example, `color = red`.
15853
+ */
15854
+ filterQueryToken: string;
15855
+ }
15856
+ /**
15857
+ * A Parameter value to apply to a Liveboard when it loads.
15858
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
15859
+ * @group Embed components
15860
+ */
15861
+ export interface LiveboardParameterQuery {
15862
+ /** Name of the Liveboard tab the Parameter applies to. */
15863
+ tabName?: string;
15864
+ /** Name of the group within the tab that the Parameter applies to. */
15865
+ groupName?: string;
15866
+ /** The Parameter assignment. */
15867
+ parameterQueryToken: string;
15868
+ }
15869
+ /**
15870
+ * Filter and Parameter overrides for one data source on the Liveboard.
15871
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
15872
+ * @group Embed components
15873
+ */
15874
+ export interface LiveboardDataSourceOverride {
15875
+ /** The data source (Model) the overrides apply to. */
15876
+ dataSourceIdentifier?: string;
15877
+ /** Filters to apply for this data source. */
15878
+ filterQuery?: LiveboardFilterQuery[];
15879
+ /** Parameter values to apply for this data source. */
15880
+ parameterQuery?: LiveboardParameterQuery[];
15881
+ }
15882
+ /**
15883
+ * Filter and Parameter overrides applied to a Liveboard when it loads.
15884
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
15885
+ * @group Embed components
15886
+ */
15887
+ export interface LiveboardOverride {
15888
+ /** One entry per data source to override. */
15889
+ dataSourceOverride: LiveboardDataSourceOverride[];
15890
+ }
15273
15891
  /**
15274
15892
  * APP_INIT data shape for LiveboardEmbed.
15275
15893
  * @internal
@@ -15278,6 +15896,7 @@ export interface LiveboardEmbedAppInitData extends DefaultAppInitData {
15278
15896
  embedParams?: {
15279
15897
  spotterVizConfig?: SpotterVizConfig;
15280
15898
  starterPrompts?: StarterPromptsConfig;
15899
+ liveboardOverride?: LiveboardOverride;
15281
15900
  };
15282
15901
  }
15283
15902
  /**
@@ -15764,6 +16383,46 @@ export interface LiveboardViewConfig extends BaseViewConfig, FullHeightViewConfi
15764
16383
  * ```
15765
16384
  */
15766
16385
  updatedSpotterExperience?: boolean;
16386
+ /**
16387
+ * Filters and Parameters to apply to the Liveboard when it loads.
16388
+ *
16389
+ * In an embedded Liveboard, this is the only way to set these overrides.
16390
+ * The `filter` and `parameter` URL query params are ignored.
16391
+ * Clauses without a query token are dropped.
16392
+ *
16393
+ * Supported embed types: `LiveboardEmbed`
16394
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
16395
+ * @example
16396
+ * ```js
16397
+ * const embed = new LiveboardEmbed('#tsEmbed', {
16398
+ * ... // other embed view config
16399
+ * liveboardOverride: {
16400
+ * dataSourceOverride: [{
16401
+ * dataSourceIdentifier: '<model-guid>',
16402
+ * filterQuery: [{
16403
+ * tabName: 'Sales',
16404
+ * groupName: 'Region',
16405
+ * filterQueryToken: 'color = red',
16406
+ * }],
16407
+ * }],
16408
+ * },
16409
+ * })
16410
+ * ```
16411
+ */
16412
+ liveboardOverride?: LiveboardOverride;
16413
+ /**
16414
+ * The Spotter experience version to load for the Spotter surface shown within
16415
+ * this embed.
16416
+ * @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.11.0.cl
16417
+ * @example
16418
+ * ```js
16419
+ * const embed = new LiveboardEmbed('#tsEmbed', {
16420
+ * ... // other options
16421
+ * spotterExperienceVersion: SpotterExperienceVersion.SPOTTER_2026_11,
16422
+ * });
16423
+ * ```
16424
+ */
16425
+ spotterExperienceVersion?: SpotterExperienceVersion;
15767
16426
  }
15768
16427
  declare class LiveboardEmbed extends V1Embed {
15769
16428
  protected viewConfig: LiveboardViewConfig;
@@ -15796,19 +16455,6 @@ declare class LiveboardEmbed extends V1Embed {
15796
16455
  personalizedViewId: string;
15797
16456
  };
15798
16457
  protected beforePrerenderVisible(): void;
15799
- /**
15800
- * Whether `previous` was showing what this instance is about to show.
15801
- *
15802
- * Undefined-valued keys are dropped before comparing. `navigateToLiveboard`
15803
- * assigns `vizId`, `activeTabId` and `personalizedViewId` unconditionally,
15804
- * so an instance that has been shown once carries those keys as `undefined`
15805
- * while a freshly constructed one does not have them at all. `isEqual`
15806
- * counts own keys, so without this the comparison can never be true after
15807
- * the first show — which is the whole case this exists for.
15808
- *
15809
- * Callbacks compare as equal: React passes a fresh closure per render.
15810
- */
15811
- private isSameEmbedConfig;
15812
16458
  private isShowingLiveboardRoute;
15813
16459
  protected handleRenderForPrerender(): Promise<TsEmbed>;
15814
16460
  /**