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

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 (281) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/contracts/contracts.spec.js +4 -0
  3. package/cjs/src/contracts/contracts.spec.js.map +1 -1
  4. package/cjs/src/contracts/host-event-contracts.d.ts +10 -0
  5. package/cjs/src/contracts/host-event-contracts.d.ts.map +1 -1
  6. package/cjs/src/css-variables.d.ts +373 -5
  7. package/cjs/src/css-variables.d.ts.map +1 -1
  8. package/cjs/src/embed/app.d.ts +15 -0
  9. package/cjs/src/embed/app.d.ts.map +1 -1
  10. package/cjs/src/embed/app.js +6 -3
  11. package/cjs/src/embed/app.js.map +1 -1
  12. package/cjs/src/embed/app.spec.js +28 -0
  13. package/cjs/src/embed/app.spec.js.map +1 -1
  14. package/cjs/src/embed/auto-frame-renderer.d.ts.map +1 -1
  15. package/cjs/src/embed/auto-frame-renderer.js +244 -4
  16. package/cjs/src/embed/auto-frame-renderer.js.map +1 -1
  17. package/cjs/src/embed/auto-frame-renderer.spec.js +389 -0
  18. package/cjs/src/embed/auto-frame-renderer.spec.js.map +1 -1
  19. package/cjs/src/embed/bodyless-conversation.js +1 -1
  20. package/cjs/src/embed/bodyless-conversation.js.map +1 -1
  21. package/cjs/src/embed/conversation.d.ts +29 -0
  22. package/cjs/src/embed/conversation.d.ts.map +1 -1
  23. package/cjs/src/embed/conversation.js +7 -3
  24. package/cjs/src/embed/conversation.js.map +1 -1
  25. package/cjs/src/embed/conversation.spec.js +88 -0
  26. package/cjs/src/embed/conversation.spec.js.map +1 -1
  27. package/cjs/src/embed/host-events.spec.js +32 -0
  28. package/cjs/src/embed/host-events.spec.js.map +1 -1
  29. package/cjs/src/embed/liveboard-override-utils.d.ts +59 -0
  30. package/cjs/src/embed/liveboard-override-utils.d.ts.map +1 -0
  31. package/cjs/src/embed/liveboard-override-utils.js +19 -0
  32. package/cjs/src/embed/liveboard-override-utils.js.map +1 -0
  33. package/cjs/src/embed/liveboard-override-utils.spec.d.ts +2 -0
  34. package/cjs/src/embed/liveboard-override-utils.spec.d.ts.map +1 -0
  35. package/cjs/src/embed/liveboard-override-utils.spec.js +34 -0
  36. package/cjs/src/embed/liveboard-override-utils.spec.js.map +1 -0
  37. package/cjs/src/embed/liveboard.d.ts +44 -13
  38. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  39. package/cjs/src/embed/liveboard.js +19 -23
  40. package/cjs/src/embed/liveboard.js.map +1 -1
  41. package/cjs/src/embed/liveboard.spec.js +122 -0
  42. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  43. package/cjs/src/embed/search-bar.js +1 -1
  44. package/cjs/src/embed/search-bar.js.map +1 -1
  45. package/cjs/src/embed/search.js +1 -1
  46. package/cjs/src/embed/search.js.map +1 -1
  47. package/cjs/src/embed/search.spec.js +20 -0
  48. package/cjs/src/embed/search.spec.js.map +1 -1
  49. package/cjs/src/embed/spotter-utils.d.ts +12 -0
  50. package/cjs/src/embed/spotter-utils.d.ts.map +1 -1
  51. package/cjs/src/embed/spotter-utils.js +20 -2
  52. package/cjs/src/embed/spotter-utils.js.map +1 -1
  53. package/cjs/src/embed/spotter-utils.spec.js +19 -0
  54. package/cjs/src/embed/spotter-utils.spec.js.map +1 -1
  55. package/cjs/src/embed/spotter-viz-utils.d.ts +15 -0
  56. package/cjs/src/embed/spotter-viz-utils.d.ts.map +1 -1
  57. package/cjs/src/embed/spotter-viz-utils.js.map +1 -1
  58. package/cjs/src/embed/spotter-viz-utils.spec.js +11 -0
  59. package/cjs/src/embed/spotter-viz-utils.spec.js.map +1 -1
  60. package/cjs/src/embed/ts-embed.d.ts +18 -20
  61. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  62. package/cjs/src/embed/ts-embed.js +181 -45
  63. package/cjs/src/embed/ts-embed.js.map +1 -1
  64. package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -1
  65. package/cjs/src/embed/ts-embed.spec.js +610 -0
  66. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  67. package/cjs/src/index.d.ts +5 -3
  68. package/cjs/src/index.d.ts.map +1 -1
  69. package/cjs/src/index.js +4 -2
  70. package/cjs/src/index.js.map +1 -1
  71. package/cjs/src/mixpanel-service.d.ts +1 -0
  72. package/cjs/src/mixpanel-service.d.ts.map +1 -1
  73. package/cjs/src/mixpanel-service.js +1 -0
  74. package/cjs/src/mixpanel-service.js.map +1 -1
  75. package/cjs/src/react/all-types-export.d.ts +1 -1
  76. package/cjs/src/react/all-types-export.d.ts.map +1 -1
  77. package/cjs/src/react/all-types-export.js +2 -1
  78. package/cjs/src/react/all-types-export.js.map +1 -1
  79. package/cjs/src/types.d.ts +251 -4
  80. package/cjs/src/types.d.ts.map +1 -1
  81. package/cjs/src/types.js +176 -0
  82. package/cjs/src/types.js.map +1 -1
  83. package/cjs/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
  84. package/cjs/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  85. package/cjs/src/utils/graphql/answerService/answer-queries.js +8 -1
  86. package/cjs/src/utils/graphql/answerService/answer-queries.js.map +1 -1
  87. package/cjs/src/utils/graphql/answerService/answerService.d.ts +28 -4
  88. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  89. package/cjs/src/utils/graphql/answerService/answerService.js +39 -4
  90. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  91. package/cjs/src/utils/graphql/answerService/answerService.spec.js +124 -0
  92. package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  93. package/cjs/src/utils/runtimeTelemetry.d.ts +11 -0
  94. package/cjs/src/utils/runtimeTelemetry.d.ts.map +1 -0
  95. package/cjs/src/utils/runtimeTelemetry.js +34 -0
  96. package/cjs/src/utils/runtimeTelemetry.js.map +1 -0
  97. package/cjs/src/utils/runtimeTelemetry.spec.d.ts +2 -0
  98. package/cjs/src/utils/runtimeTelemetry.spec.d.ts.map +1 -0
  99. package/cjs/src/utils/runtimeTelemetry.spec.js +124 -0
  100. package/cjs/src/utils/runtimeTelemetry.spec.js.map +1 -0
  101. package/dist/{index-CnHREfvN.js → index-CrBnZBZv.js} +1 -1
  102. package/dist/src/contracts/host-event-contracts.d.ts +10 -0
  103. package/dist/src/contracts/host-event-contracts.d.ts.map +1 -1
  104. package/dist/src/css-variables.d.ts +373 -5
  105. package/dist/src/css-variables.d.ts.map +1 -1
  106. package/dist/src/embed/app.d.ts +15 -0
  107. package/dist/src/embed/app.d.ts.map +1 -1
  108. package/dist/src/embed/auto-frame-renderer.d.ts.map +1 -1
  109. package/dist/src/embed/conversation.d.ts +29 -0
  110. package/dist/src/embed/conversation.d.ts.map +1 -1
  111. package/dist/src/embed/liveboard-override-utils.d.ts +59 -0
  112. package/dist/src/embed/liveboard-override-utils.d.ts.map +1 -0
  113. package/dist/src/embed/liveboard-override-utils.spec.d.ts +2 -0
  114. package/dist/src/embed/liveboard-override-utils.spec.d.ts.map +1 -0
  115. package/dist/src/embed/liveboard.d.ts +44 -13
  116. package/dist/src/embed/liveboard.d.ts.map +1 -1
  117. package/dist/src/embed/spotter-utils.d.ts +12 -0
  118. package/dist/src/embed/spotter-utils.d.ts.map +1 -1
  119. package/dist/src/embed/spotter-viz-utils.d.ts +15 -0
  120. package/dist/src/embed/spotter-viz-utils.d.ts.map +1 -1
  121. package/dist/src/embed/ts-embed.d.ts +18 -20
  122. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  123. package/dist/src/embed/ts-embed.spec.d.ts.map +1 -1
  124. package/dist/src/index.d.ts +5 -3
  125. package/dist/src/index.d.ts.map +1 -1
  126. package/dist/src/mixpanel-service.d.ts +1 -0
  127. package/dist/src/mixpanel-service.d.ts.map +1 -1
  128. package/dist/src/react/all-types-export.d.ts +1 -1
  129. package/dist/src/react/all-types-export.d.ts.map +1 -1
  130. package/dist/src/types.d.ts +251 -4
  131. package/dist/src/types.d.ts.map +1 -1
  132. package/dist/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
  133. package/dist/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  134. package/dist/src/utils/graphql/answerService/answerService.d.ts +28 -4
  135. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  136. package/dist/src/utils/runtimeTelemetry.d.ts +11 -0
  137. package/dist/src/utils/runtimeTelemetry.d.ts.map +1 -0
  138. package/dist/src/utils/runtimeTelemetry.spec.d.ts +2 -0
  139. package/dist/src/utils/runtimeTelemetry.spec.d.ts.map +1 -0
  140. package/dist/tsembed-react.es.js +500 -85
  141. package/dist/tsembed-react.js +499 -84
  142. package/dist/tsembed.es.js +743 -90
  143. package/dist/tsembed.js +741 -88
  144. package/dist/visual-embed-sdk-react-full.d.ts +788 -44
  145. package/dist/visual-embed-sdk-react.d.ts +783 -44
  146. package/dist/visual-embed-sdk.d.ts +815 -45
  147. package/lib/package.json +1 -1
  148. package/lib/src/contracts/contracts.spec.js +4 -0
  149. package/lib/src/contracts/contracts.spec.js.map +1 -1
  150. package/lib/src/contracts/host-event-contracts.d.ts +10 -0
  151. package/lib/src/contracts/host-event-contracts.d.ts.map +1 -1
  152. package/lib/src/css-variables.d.ts +373 -5
  153. package/lib/src/css-variables.d.ts.map +1 -1
  154. package/lib/src/embed/app.d.ts +15 -0
  155. package/lib/src/embed/app.d.ts.map +1 -1
  156. package/lib/src/embed/app.js +7 -4
  157. package/lib/src/embed/app.js.map +1 -1
  158. package/lib/src/embed/app.spec.js +28 -0
  159. package/lib/src/embed/app.spec.js.map +1 -1
  160. package/lib/src/embed/auto-frame-renderer.d.ts.map +1 -1
  161. package/lib/src/embed/auto-frame-renderer.js +244 -4
  162. package/lib/src/embed/auto-frame-renderer.js.map +1 -1
  163. package/lib/src/embed/auto-frame-renderer.spec.js +389 -0
  164. package/lib/src/embed/auto-frame-renderer.spec.js.map +1 -1
  165. package/lib/src/embed/bodyless-conversation.js +1 -1
  166. package/lib/src/embed/bodyless-conversation.js.map +1 -1
  167. package/lib/src/embed/conversation.d.ts +29 -0
  168. package/lib/src/embed/conversation.d.ts.map +1 -1
  169. package/lib/src/embed/conversation.js +8 -4
  170. package/lib/src/embed/conversation.js.map +1 -1
  171. package/lib/src/embed/conversation.spec.js +89 -1
  172. package/lib/src/embed/conversation.spec.js.map +1 -1
  173. package/lib/src/embed/host-events.spec.js +32 -0
  174. package/lib/src/embed/host-events.spec.js.map +1 -1
  175. package/lib/src/embed/liveboard-override-utils.d.ts +59 -0
  176. package/lib/src/embed/liveboard-override-utils.d.ts.map +1 -0
  177. package/lib/src/embed/liveboard-override-utils.js +15 -0
  178. package/lib/src/embed/liveboard-override-utils.js.map +1 -0
  179. package/lib/src/embed/liveboard-override-utils.spec.d.ts +2 -0
  180. package/lib/src/embed/liveboard-override-utils.spec.d.ts.map +1 -0
  181. package/lib/src/embed/liveboard-override-utils.spec.js +32 -0
  182. package/lib/src/embed/liveboard-override-utils.spec.js.map +1 -0
  183. package/lib/src/embed/liveboard.d.ts +44 -13
  184. package/lib/src/embed/liveboard.d.ts.map +1 -1
  185. package/lib/src/embed/liveboard.js +19 -23
  186. package/lib/src/embed/liveboard.js.map +1 -1
  187. package/lib/src/embed/liveboard.spec.js +122 -0
  188. package/lib/src/embed/liveboard.spec.js.map +1 -1
  189. package/lib/src/embed/search-bar.js +1 -1
  190. package/lib/src/embed/search-bar.js.map +1 -1
  191. package/lib/src/embed/search.js +1 -1
  192. package/lib/src/embed/search.js.map +1 -1
  193. package/lib/src/embed/search.spec.js +20 -0
  194. package/lib/src/embed/search.spec.js.map +1 -1
  195. package/lib/src/embed/spotter-utils.d.ts +12 -0
  196. package/lib/src/embed/spotter-utils.d.ts.map +1 -1
  197. package/lib/src/embed/spotter-utils.js +19 -1
  198. package/lib/src/embed/spotter-utils.js.map +1 -1
  199. package/lib/src/embed/spotter-utils.spec.js +19 -0
  200. package/lib/src/embed/spotter-utils.spec.js.map +1 -1
  201. package/lib/src/embed/spotter-viz-utils.d.ts +15 -0
  202. package/lib/src/embed/spotter-viz-utils.d.ts.map +1 -1
  203. package/lib/src/embed/spotter-viz-utils.js.map +1 -1
  204. package/lib/src/embed/spotter-viz-utils.spec.js +11 -0
  205. package/lib/src/embed/spotter-viz-utils.spec.js.map +1 -1
  206. package/lib/src/embed/ts-embed.d.ts +18 -20
  207. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  208. package/lib/src/embed/ts-embed.js +181 -45
  209. package/lib/src/embed/ts-embed.js.map +1 -1
  210. package/lib/src/embed/ts-embed.spec.d.ts.map +1 -1
  211. package/lib/src/embed/ts-embed.spec.js +611 -1
  212. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  213. package/lib/src/index.d.ts +5 -3
  214. package/lib/src/index.d.ts.map +1 -1
  215. package/lib/src/index.js +3 -2
  216. package/lib/src/index.js.map +1 -1
  217. package/lib/src/mixpanel-service.d.ts +1 -0
  218. package/lib/src/mixpanel-service.d.ts.map +1 -1
  219. package/lib/src/mixpanel-service.js +1 -0
  220. package/lib/src/mixpanel-service.js.map +1 -1
  221. package/lib/src/react/all-types-export.d.ts +1 -1
  222. package/lib/src/react/all-types-export.d.ts.map +1 -1
  223. package/lib/src/react/all-types-export.js +1 -1
  224. package/lib/src/react/all-types-export.js.map +1 -1
  225. package/lib/src/types.d.ts +251 -4
  226. package/lib/src/types.d.ts.map +1 -1
  227. package/lib/src/types.js +176 -0
  228. package/lib/src/types.js.map +1 -1
  229. package/lib/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
  230. package/lib/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  231. package/lib/src/utils/graphql/answerService/answer-queries.js +7 -0
  232. package/lib/src/utils/graphql/answerService/answer-queries.js.map +1 -1
  233. package/lib/src/utils/graphql/answerService/answerService.d.ts +28 -4
  234. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  235. package/lib/src/utils/graphql/answerService/answerService.js +39 -4
  236. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  237. package/lib/src/utils/graphql/answerService/answerService.spec.js +125 -1
  238. package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  239. package/lib/src/utils/runtimeTelemetry.d.ts +11 -0
  240. package/lib/src/utils/runtimeTelemetry.d.ts.map +1 -0
  241. package/lib/src/utils/runtimeTelemetry.js +28 -0
  242. package/lib/src/utils/runtimeTelemetry.js.map +1 -0
  243. package/lib/src/utils/runtimeTelemetry.spec.d.ts +2 -0
  244. package/lib/src/utils/runtimeTelemetry.spec.d.ts.map +1 -0
  245. package/lib/src/utils/runtimeTelemetry.spec.js +122 -0
  246. package/lib/src/utils/runtimeTelemetry.spec.js.map +1 -0
  247. package/lib/src/visual-embed-sdk.d.ts +815 -45
  248. package/package.json +1 -1
  249. package/src/contracts/contracts.spec.ts +4 -0
  250. package/src/contracts/host-event-contracts.ts +13 -0
  251. package/src/css-variables.ts +475 -26
  252. package/src/embed/app.spec.ts +32 -0
  253. package/src/embed/app.ts +29 -4
  254. package/src/embed/auto-frame-renderer.spec.ts +464 -0
  255. package/src/embed/auto-frame-renderer.ts +305 -6
  256. package/src/embed/bodyless-conversation.ts +1 -1
  257. package/src/embed/conversation.spec.ts +118 -1
  258. package/src/embed/conversation.ts +42 -3
  259. package/src/embed/host-events.spec.ts +44 -0
  260. package/src/embed/liveboard-override-utils.spec.ts +38 -0
  261. package/src/embed/liveboard-override-utils.ts +71 -0
  262. package/src/embed/liveboard.spec.ts +138 -0
  263. package/src/embed/liveboard.ts +64 -24
  264. package/src/embed/search-bar.tsx +1 -1
  265. package/src/embed/search.spec.ts +23 -0
  266. package/src/embed/search.ts +1 -1
  267. package/src/embed/spotter-utils.spec.ts +20 -0
  268. package/src/embed/spotter-utils.ts +24 -1
  269. package/src/embed/spotter-viz-utils.spec.ts +11 -0
  270. package/src/embed/spotter-viz-utils.ts +15 -0
  271. package/src/embed/ts-embed.spec.ts +767 -0
  272. package/src/embed/ts-embed.ts +186 -41
  273. package/src/index.ts +18 -1
  274. package/src/mixpanel-service.ts +1 -0
  275. package/src/react/all-types-export.ts +7 -0
  276. package/src/types.ts +254 -5
  277. package/src/utils/graphql/answerService/answer-queries.ts +8 -0
  278. package/src/utils/graphql/answerService/answerService.spec.ts +145 -1
  279. package/src/utils/graphql/answerService/answerService.ts +65 -3
  280. package/src/utils/runtimeTelemetry.spec.ts +148 -0
  281. package/src/utils/runtimeTelemetry.ts +50 -0
@@ -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
@@ -2037,6 +2429,27 @@ export interface EmbedConfig {
2037
2429
  * @default true
2038
2430
  */
2039
2431
  blockNonEmbedFullAppAccess?: boolean;
2432
+ /**
2433
+ * Render the embedded application in dark appearance when `true`, and in
2434
+ * its default appearance when `false` or unset.
2435
+ *
2436
+ * The host application owns the appearance of an embed, so this overrides
2437
+ * the appearance preference of the signed-in user and the color scheme of
2438
+ * their operating system. If your application has light and dark themes,
2439
+ * pass `true` while it shows the dark theme and `false` while it shows
2440
+ * the light theme.
2441
+ * @version SDK: 1.55.0 | ThoughtSpot Cloud: 26.12.0.cl
2442
+ * @example
2443
+ * ```js
2444
+ * // Your application's current theme, 'light' or 'dark'
2445
+ * const appTheme = 'dark';
2446
+ * init({
2447
+ * ...embedConfig,
2448
+ * isDarkMode: appTheme === 'dark',
2449
+ * });
2450
+ * ```
2451
+ */
2452
+ isDarkMode?: boolean;
2040
2453
  /**
2041
2454
  * Host config in case embedded app is inside TS app itself
2042
2455
  * @hidden
@@ -2609,6 +3022,31 @@ export interface BaseViewConfig extends ApiInterceptFlags {
2609
3022
  * @default ''
2610
3023
  */
2611
3024
  customizations?: CustomisationsInterface;
3025
+ /**
3026
+ * Render this embed in dark appearance when `true`, and in its default
3027
+ * appearance when `false`, overriding the `isDarkMode` value passed to
3028
+ * `init`.
3029
+ *
3030
+ * The host application owns the appearance of an embed, so this overrides
3031
+ * the appearance preference of the signed-in user and the color scheme of
3032
+ * their operating system. If your application has light and dark themes,
3033
+ * pass `true` while it shows the dark theme and `false` while it shows
3034
+ * the light theme. Leave it unset to inherit the `init` value.
3035
+ *
3036
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
3037
+ * @version SDK: 1.55.0 | ThoughtSpot Cloud: 26.12.0.cl
3038
+ * @example
3039
+ * ```js
3040
+ * // Your application's current theme, 'light' or 'dark'
3041
+ * const appTheme = 'dark';
3042
+ * // Replace AppEmbed with a specific embed component like SearchEmbed or LiveboardEmbed
3043
+ * const embed = new AppEmbed('#tsEmbed', {
3044
+ * ... // other embed view config
3045
+ * isDarkMode: appTheme === 'dark',
3046
+ * });
3047
+ * ```
3048
+ */
3049
+ isDarkMode?: boolean;
2612
3050
  /**
2613
3051
  * Insert as a sibling of the target container, instead of appending to a
2614
3052
  * child inside it.
@@ -4745,6 +5183,36 @@ export declare enum EmbedEvent {
4745
5183
  * ```
4746
5184
  */
4747
5185
  Edit = "edit",
5186
+ /**
5187
+ * Emitted when a user clicks **Edit** on a Liveboard.
5188
+ *
5189
+ * Fired alongside {@link EmbedEvent.Edit} for backward compatibility;
5190
+ * listen to this instead of `Edit` to target the Liveboard surface only.
5191
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
5192
+ * @example
5193
+ * ```js
5194
+ * liveboardEmbed.on(EmbedEvent.EditLiveboard, payload => {
5195
+ * console.log('Liveboard edit', payload);
5196
+ * })
5197
+ * ```
5198
+ */
5199
+ EditLiveboard = "editLiveboard",
5200
+ /**
5201
+ * Emitted when a user clicks **Edit** on a visualization inside a
5202
+ * Liveboard.
5203
+ *
5204
+ * Fired alongside {@link EmbedEvent.Edit} for backward compatibility;
5205
+ * listen to this instead of `Edit` to target the visualization surface
5206
+ * only.
5207
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
5208
+ * @example
5209
+ * ```js
5210
+ * liveboardEmbed.on(EmbedEvent.EditVisualization, payload => {
5211
+ * console.log('visualization edit', payload);
5212
+ * })
5213
+ * ```
5214
+ */
5215
+ EditVisualization = "editVisualization",
4748
5216
  /**
4749
5217
  * Emitted when a user clicks *Make a copy* on a Liveboard
4750
5218
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
@@ -6715,6 +7183,46 @@ export declare enum HostEvent {
6715
7183
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
6716
7184
  */
6717
7185
  Edit = "edit",
7186
+ /**
7187
+ * Trigger the **Edit** action on a Liveboard only — does not affect a
7188
+ * visualization's edit surface.
7189
+ *
7190
+ * Behaves like {@link HostEvent.Edit} restricted to the Liveboard
7191
+ * surface. Use {@link HostEvent.EditVisualization} to target a
7192
+ * visualization instead, or `HostEvent.Edit` to control whichever
7193
+ * surface applies contextually (unchanged, existing behavior).
7194
+ * @example
7195
+ * ```js
7196
+ * liveboardEmbed.trigger(HostEvent.EditLiveboard)
7197
+ * ```
7198
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
7199
+ */
7200
+ EditLiveboard = "editLiveboard",
7201
+ /**
7202
+ * Trigger the **Edit** action on a specific visualization inside a
7203
+ * Liveboard only — does not affect the Liveboard-level edit surface.
7204
+ * @param - Object parameter. Includes the following keys:
7205
+ * - `vizId`: **Required.** The visualization to edit.
7206
+ *
7207
+ * @example
7208
+ * ```js
7209
+ * liveboardEmbed.trigger(HostEvent.EditVisualization, {vizId:
7210
+ * '730496d6-6903-4601-937e-2c691821af3c'})
7211
+ * ```
7212
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
7213
+ */
7214
+ EditVisualization = "editVisualization",
7215
+ /**
7216
+ * Exits Liveboard edit mode , equivalent to clicking the
7217
+ * *Cancel* button in the Liveboard edit header. The Liveboard returns to
7218
+ * view mode and the embedded app emits the {@link EmbedEvent.Cancel} event.
7219
+ * @version SDK: 1.55.0 | ThoughtSpot Cloud: 26.12.0.cl
7220
+ * @example
7221
+ * ```js
7222
+ * liveboardEmbed.trigger(HostEvent.ExitEditMode);
7223
+ * ```
7224
+ */
7225
+ ExitEditMode = "exitEditMode",
6718
7226
  /**
6719
7227
  * Trigger the **Copy link** action on a Liveboard or visualization
6720
7228
  * Payload: {@link VizScopedRequest}.
@@ -8248,7 +8756,40 @@ export declare enum HostEvent {
8248
8756
  * ```
8249
8757
  * @version SDK: 1.49.0 | ThoughtSpot Cloud: 26.6.0.cl
8250
8758
  */
8251
- RefreshLiveboardBrowserCache = "refreshLiveboardBrowserCache"
8759
+ RefreshLiveboardBrowserCache = "refreshLiveboardBrowserCache",
8760
+ /**
8761
+ * Switch the embed between dark appearance and its default appearance
8762
+ * while it is open, without reloading it.
8763
+ * Payload: {@link UpdateThemeRequest}.
8764
+ *
8765
+ * Use it to keep the embed in step with a theme switch in your
8766
+ * application; the appearance the embed loads with is set by `isDarkMode`.
8767
+ * The event resolves with the applied value, such as `{ isDarkMode: true }`.
8768
+ * When dark appearance is not available in the embed, the embed does not
8769
+ * change and the event rejects with an error message instead.
8770
+ * @version SDK: 1.55.0 | ThoughtSpot Cloud: 26.12.0.cl
8771
+ * @param - `isDarkMode` - `true` for dark appearance, `false` for the
8772
+ * default appearance.
8773
+ * @example
8774
+ * ```js
8775
+ * appEmbed.trigger(HostEvent.UpdateTheme, { isDarkMode: true });
8776
+ * ```
8777
+ * @example
8778
+ * ```js
8779
+ * // Follow a theme switch in your application
8780
+ * const themeSwitch = document.querySelector('#theme-switch');
8781
+ * themeSwitch.addEventListener('change', async (event) => {
8782
+ * try {
8783
+ * await appEmbed.trigger(HostEvent.UpdateTheme, {
8784
+ * isDarkMode: event.target.checked,
8785
+ * });
8786
+ * } catch (error) {
8787
+ * console.warn(error);
8788
+ * }
8789
+ * });
8790
+ * ```
8791
+ */
8792
+ UpdateTheme = "UpdateTheme"
8252
8793
  }
8253
8794
  /**
8254
8795
  * Configuration for allowed file types in Spotter file upload.
@@ -8709,12 +9250,43 @@ export declare enum Action {
8709
9250
  * The *Edit* action on the Liveboard page and in the
8710
9251
  * visualization menu.
8711
9252
  * Opens a Liveboard or visualization in edit mode.
9253
+ *
9254
+ * Controls both surfaces together. To target one surface only, use
9255
+ * {@link Action.EditLiveboard} or {@link Action.EditVisualization}.
8712
9256
  * @example
8713
9257
  * ```js
8714
9258
  * disabledActions: [Action.Edit]
8715
9259
  * ```
8716
9260
  */
8717
9261
  Edit = "edit",
9262
+ /**
9263
+ * The *Edit* action on the Liveboard page only.
9264
+ * Opens a Liveboard in edit mode.
9265
+ *
9266
+ * Does not affect the *Edit* action in the visualization menu; use
9267
+ * {@link Action.EditVisualization} for that, or {@link Action.Edit} to
9268
+ * control both surfaces together.
9269
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
9270
+ * @example
9271
+ * ```js
9272
+ * disabledActions: [Action.EditLiveboard]
9273
+ * ```
9274
+ */
9275
+ EditLiveboard = "editLiveboard",
9276
+ /**
9277
+ * The *Edit* action in the visualization `...` menu only.
9278
+ * Opens a visualization in the editor.
9279
+ *
9280
+ * Does not affect the *Edit* action on the Liveboard page; use
9281
+ * {@link Action.EditLiveboard} for that, or {@link Action.Edit} to
9282
+ * control both surfaces together.
9283
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
9284
+ * @example
9285
+ * ```js
9286
+ * disabledActions: [Action.EditVisualization]
9287
+ * ```
9288
+ */
9289
+ EditVisualization = "editVisualization",
8718
9290
  /**
8719
9291
  * The text edit option for Liveboard and visualization titles.
8720
9292
  * @example
@@ -10487,7 +11059,30 @@ export declare enum Action {
10487
11059
  * }
10488
11060
  * ```
10489
11061
  */
10490
- CustomizeHomepage = "customizeHomepage"
11062
+ CustomizeHomepage = "customizeHomepage",
11063
+ /**
11064
+ * Controls the visibility and disabled state of the *Cancel* button in the
11065
+ * Liveboard edit header, the button that discards the changes made in edit
11066
+ * mode and returns the Liveboard to view mode. The button is shown only
11067
+ * while the Liveboard is in edit mode.
11068
+ * @version SDK: 1.55.0 | ThoughtSpot Cloud: 26.12.0.cl
11069
+ * @example
11070
+ * ```js
11071
+ * const liveboardEmbed = new LiveboardEmbed('#tsEmbed', {
11072
+ * ... // other embed view config
11073
+ * hiddenActions: [Action.Cancel],
11074
+ * });
11075
+ * ```
11076
+ * @example
11077
+ * ```js
11078
+ * const liveboardEmbed = new LiveboardEmbed('#tsEmbed', {
11079
+ * ... // other embed view config
11080
+ * disabledActions: [Action.Cancel],
11081
+ * disabledActionReason: 'Save your changes to leave edit mode',
11082
+ * });
11083
+ * ```
11084
+ */
11085
+ Cancel = "cancel"
10491
11086
  }
10492
11087
  declare enum ContextMenuTriggerOptions {
10493
11088
  LEFT_CLICK = "left-click",
@@ -11915,6 +12510,15 @@ export interface SetActiveTabRequest {
11915
12510
  */
11916
12511
  tabId: string;
11917
12512
  }
12513
+ /**
12514
+ * Request payload for {@link HostEvent.UpdateTheme}.
12515
+ */
12516
+ export interface UpdateThemeRequest {
12517
+ /**
12518
+ * `true` for dark appearance, `false` for the default appearance.
12519
+ */
12520
+ isDarkMode: boolean;
12521
+ }
11918
12522
  /**
11919
12523
  * Typed request payloads for host events that do not go through the UI
11920
12524
  * passthrough pipeline (`HostEvent` member → request type; `void` = no payload).
@@ -12005,6 +12609,7 @@ export interface HostEventRequestMap {
12005
12609
  [HostEvent.InitSpotterVizConversation]: void;
12006
12610
  [HostEvent.OpenSpotterVizPanel]: void;
12007
12611
  [HostEvent.CloseSpotterVizPanel]: void;
12612
+ [HostEvent.UpdateTheme]: UpdateThemeRequest;
12008
12613
  }
12009
12614
  /**
12010
12615
  * Per-context request shapes for events whose payload varies by
@@ -12147,6 +12752,7 @@ declare class TsEmbed {
12147
12752
  protected embedNodeKey: string;
12148
12753
  protected embedContainerLoadedKey: string;
12149
12754
  protected isAppInitialized: boolean;
12755
+ private initDataParams;
12150
12756
  /**
12151
12757
  * A reference to the iframe within which the ThoughtSpot app
12152
12758
  * will be rendered.
@@ -12272,6 +12878,7 @@ declare class TsEmbed {
12272
12878
  protected getAuthTokenForCookielessInit(): Promise<string>;
12273
12879
  protected getDefaultAppInitData(): Promise<DefaultAppInitData>;
12274
12880
  protected getAppInitData(): Promise<DefaultAppInitData>;
12881
+ private withInitDataParams;
12275
12882
  /**
12276
12883
  * Send Custom style as part of payload of APP_INIT
12277
12884
  * @param _
@@ -12344,6 +12951,7 @@ declare class TsEmbed {
12344
12951
  [key: string]: string | number | boolean;
12345
12952
  };
12346
12953
  customizations?: CustomisationsInterface;
12954
+ isDarkMode?: boolean;
12347
12955
  insertAsSibling?: boolean;
12348
12956
  usePrerenderedIfAvailable?: boolean;
12349
12957
  preRenderId?: string;
@@ -12411,6 +13019,7 @@ declare class TsEmbed {
12411
13019
  protected getV1EmbedBasePath(queryString: string): string;
12412
13020
  protected getEmbedParams(): string;
12413
13021
  protected getEmbedParamsObject(): Record<any, any>;
13022
+ protected getUrlQueryParamsObject(): Record<any, any>;
12414
13023
  protected getRootIframeSrc(): string;
12415
13024
  protected createIframeEl(frameSrc: string): HTMLIFrameElement;
12416
13025
  /**
@@ -12452,26 +13061,12 @@ declare class TsEmbed {
12452
13061
  */
12453
13062
  private createPreRenderPlaceholder;
12454
13063
  /**
12455
- * Resolves the configured preRenderContainer to a live element. A string
12456
- * selector is re-queried on every call so a remounted container (E.g.: React
12457
- * replacing the node) resolves to the fresh element; an element passed
12458
- * directly cannot be re-resolved.
12459
- *
12460
- * With nothing configured the frame goes into the host element's nearest
12461
- * scrolling ancestor, falling back to `document.body`.
12462
- *
12463
- * The wrapper is absolutely positioned, so it follows the page for free —
12464
- * but only while it sits inside whatever scrolls. `document.body` is right
12465
- * only when the document itself is the scroller; an app that scrolls an
12466
- * inner element instead left the frame pinned to the viewport while the page
12467
- * moved under it (SCAL-338563). Being inside the scroller also lets wheel
12468
- * events chain out of the frame into it, which they cannot do from
12469
- * `document.body`.
12470
- *
12471
- * A scrolling ancestor is layout chrome rather than route content, so it
12472
- * outlives the embed in practice; and if it does go, the host element goes
12473
- * with it and this instance is remounting anyway.
12474
- * `reconcilePreRenderContainer` re-runs this on a detached container.
13064
+ * Resolves the configured preRenderContainer, or defaults to the host's
13065
+ * nearest scrolling ancestor (document.body if none). The absolutely
13066
+ * positioned wrapper only follows the page while it sits inside what
13067
+ * scrolls, so body is right only when the document itself scrolls — an inner
13068
+ * scroller left the frame pinned to the viewport (SCAL-338563). A string
13069
+ * selector is re-queried each call so a remounted container resolves fresh.
12475
13070
  */
12476
13071
  private resolvePreRenderContainerTarget;
12477
13072
  private inheritPreRenderContainer;
@@ -12732,6 +13327,8 @@ declare class TsEmbed {
12732
13327
  */
12733
13328
  prerenderGeneric(): Promise<any>;
12734
13329
  protected preRenderParamsApplied: Promise<void>;
13330
+ protected isConfigExcludedFromUrl(): boolean;
13331
+ protected triggerUpdateEmbedParams(): Promise<void>;
12735
13332
  protected beforePrerenderVisible(): void;
12736
13333
  /**
12737
13334
  * Displays the pre-rendered component inside the host element.
@@ -13288,6 +13885,12 @@ declare class SearchBarEmbed extends TsEmbed {
13288
13885
  };
13289
13886
  protected getAppInitData(): Promise<SearchAppInitData$1>;
13290
13887
  }
13888
+ declare enum SpotterExperienceVersion {
13889
+ /**
13890
+ * The Spotter experience version introduced in ThoughtSpot 26.11.
13891
+ */
13892
+ SPOTTER_2026_11 = "spotter_2026_11"
13893
+ }
13291
13894
  interface SearchOptions$1 {
13292
13895
  /**
13293
13896
  * The query string to pass to start the Conversation.
@@ -13421,6 +14024,19 @@ export interface SpotterSidebarViewConfig {
13421
14024
  * @default Analysts
13422
14025
  */
13423
14026
  spotterAnalystsLabel?: string;
14027
+ /**
14028
+ * Shows the connector marketplace option in the settings menu of the
14029
+ * Spotter sidebar footer. When not set, the cluster setting applies.
14030
+ * @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.10.0.cl
14031
+ */
14032
+ enableConnectorMarketplace?: boolean;
14033
+ /**
14034
+ * Shows the Spotter instructions and more settings options in the
14035
+ * settings menu of the Spotter sidebar footer.
14036
+ * @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.10.0.cl
14037
+ * @default false
14038
+ */
14039
+ enableSpotterInstructionAndMoreSettings?: boolean;
13424
14040
  }
13425
14041
  /**
13426
14042
  * Configuration for the Spotter conversation sharing feature.
@@ -13704,6 +14320,20 @@ export interface SpotterAnalystConfig {
13704
14320
  * @group Embed components
13705
14321
  */
13706
14322
  export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, "primaryAction"> {
14323
+ /**
14324
+ * The Spotter experience version to load. When set to
14325
+ * `SpotterExperienceVersion.SPOTTER_2026_11`, the embed loads the updated Spotter
14326
+ * surface instead of the default conversation surface.
14327
+ * @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.11.0.cl
14328
+ * @example
14329
+ * ```js
14330
+ * const embed = new SpotterEmbed('#tsEmbed', {
14331
+ * ... // other options
14332
+ * spotterExperienceVersion: SpotterExperienceVersion.SPOTTER_2026_11,
14333
+ * });
14334
+ * ```
14335
+ */
14336
+ spotterExperienceVersion?: SpotterExperienceVersion;
13707
14337
  /**
13708
14338
  * The ID of the data source object. For example, Model, View, or Table. Spotter uses
13709
14339
  * this object to query data and generate Answers.
@@ -14067,6 +14697,7 @@ export interface SpotterAppInitData extends DefaultAppInitData {
14067
14697
  visualOverridesParams?: VisualizationOverrides | null;
14068
14698
  starterPrompts?: StarterPromptsConfig;
14069
14699
  spotterAnalystConfig?: SpotterAnalystConfig;
14700
+ enableSpotterInstructionAndMoreSettings?: boolean;
14070
14701
  };
14071
14702
  }
14072
14703
  declare class SpotterEmbed extends TsEmbed {
@@ -14219,6 +14850,21 @@ export interface SpotterVizConfig {
14219
14850
  * @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.7.0.cl
14220
14851
  */
14221
14852
  insightTileLoaderText?: string;
14853
+ /**
14854
+ * Set to `false` to hide the file upload feature in the SpotterViz chat
14855
+ * input on a cluster where the feature is available.
14856
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
14857
+ * @default true
14858
+ */
14859
+ fileUploadEnabled?: boolean;
14860
+ /**
14861
+ * Restricts the allowed file types for SpotterViz file upload to a
14862
+ * subset of the types SpotterViz supports, e.g. `['csv', 'pdf']`.
14863
+ * Entries are file extensions (with or without the leading dot); types
14864
+ * SpotterViz does not support are ignored, as are empty lists.
14865
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
14866
+ */
14867
+ fileUploadFileTypes?: string[];
14222
14868
  }
14223
14869
  /**
14224
14870
  * A single tip shown in the SpotterViz loading state.
@@ -15089,6 +15735,19 @@ export interface AppViewConfig extends AllEmbedViewConfig, FullHeightViewConfig
15089
15735
  * ```
15090
15736
  */
15091
15737
  hideAnswerEditPanel?: boolean;
15738
+ /**
15739
+ * The Spotter experience version to load for the Spotter surface shown within
15740
+ * this embed.
15741
+ * @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.11.0.cl
15742
+ * @example
15743
+ * ```js
15744
+ * const embed = new AppEmbed('#tsEmbed', {
15745
+ * ... // other options
15746
+ * spotterExperienceVersion: SpotterExperienceVersion.SPOTTER_2026_11,
15747
+ * });
15748
+ * ```
15749
+ */
15750
+ spotterExperienceVersion?: SpotterExperienceVersion;
15092
15751
  }
15093
15752
  /**
15094
15753
  * APP_INIT data shape for AppEmbed.
@@ -15100,6 +15759,7 @@ export interface AppEmbedAppInitData extends DefaultAppInitData {
15100
15759
  spotterVizConfig?: SpotterVizConfig;
15101
15760
  spotterShareConversationConfig?: SpotterShareConversationConfig;
15102
15761
  starterPrompts?: StarterPromptsConfig;
15762
+ enableSpotterInstructionAndMoreSettings?: boolean;
15103
15763
  };
15104
15764
  }
15105
15765
  declare class AppEmbed extends V1Embed {
@@ -15167,6 +15827,56 @@ declare class AppEmbed extends V1Embed {
15167
15827
  */
15168
15828
  render(): Promise<AppEmbed>;
15169
15829
  }
15830
+ /**
15831
+ * A filter to apply to a Liveboard when it loads.
15832
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
15833
+ * @group Embed components
15834
+ */
15835
+ export interface LiveboardFilterQuery {
15836
+ /** Name of the Liveboard tab the filter applies to. */
15837
+ tabName?: string;
15838
+ /** Name of the group within the tab that the filter applies to. */
15839
+ groupName?: string;
15840
+ /**
15841
+ * The filter condition, in search sentence form. For example, `color = red`.
15842
+ */
15843
+ filterQueryToken: string;
15844
+ }
15845
+ /**
15846
+ * A Parameter value to apply to a Liveboard when it loads.
15847
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
15848
+ * @group Embed components
15849
+ */
15850
+ export interface LiveboardParameterQuery {
15851
+ /** Name of the Liveboard tab the Parameter applies to. */
15852
+ tabName?: string;
15853
+ /** Name of the group within the tab that the Parameter applies to. */
15854
+ groupName?: string;
15855
+ /** The Parameter assignment. */
15856
+ parameterQueryToken: string;
15857
+ }
15858
+ /**
15859
+ * Filter and Parameter overrides for one data source on the Liveboard.
15860
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
15861
+ * @group Embed components
15862
+ */
15863
+ export interface LiveboardDataSourceOverride {
15864
+ /** The data source (Model) the overrides apply to. */
15865
+ dataSourceIdentifier?: string;
15866
+ /** Filters to apply for this data source. */
15867
+ filterQuery?: LiveboardFilterQuery[];
15868
+ /** Parameter values to apply for this data source. */
15869
+ parameterQuery?: LiveboardParameterQuery[];
15870
+ }
15871
+ /**
15872
+ * Filter and Parameter overrides applied to a Liveboard when it loads.
15873
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
15874
+ * @group Embed components
15875
+ */
15876
+ export interface LiveboardOverride {
15877
+ /** One entry per data source to override. */
15878
+ dataSourceOverride: LiveboardDataSourceOverride[];
15879
+ }
15170
15880
  /**
15171
15881
  * APP_INIT data shape for LiveboardEmbed.
15172
15882
  * @internal
@@ -15175,6 +15885,7 @@ export interface LiveboardEmbedAppInitData extends DefaultAppInitData {
15175
15885
  embedParams?: {
15176
15886
  spotterVizConfig?: SpotterVizConfig;
15177
15887
  starterPrompts?: StarterPromptsConfig;
15888
+ liveboardOverride?: LiveboardOverride;
15178
15889
  };
15179
15890
  }
15180
15891
  /**
@@ -15661,6 +16372,46 @@ export interface LiveboardViewConfig extends BaseViewConfig, FullHeightViewConfi
15661
16372
  * ```
15662
16373
  */
15663
16374
  updatedSpotterExperience?: boolean;
16375
+ /**
16376
+ * Filters and Parameters to apply to the Liveboard when it loads.
16377
+ *
16378
+ * In an embedded Liveboard, this is the only way to set these overrides.
16379
+ * The `filter` and `parameter` URL query params are ignored.
16380
+ * Clauses without a query token are dropped.
16381
+ *
16382
+ * Supported embed types: `LiveboardEmbed`
16383
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
16384
+ * @example
16385
+ * ```js
16386
+ * const embed = new LiveboardEmbed('#tsEmbed', {
16387
+ * ... // other embed view config
16388
+ * liveboardOverride: {
16389
+ * dataSourceOverride: [{
16390
+ * dataSourceIdentifier: '<model-guid>',
16391
+ * filterQuery: [{
16392
+ * tabName: 'Sales',
16393
+ * groupName: 'Region',
16394
+ * filterQueryToken: 'color = red',
16395
+ * }],
16396
+ * }],
16397
+ * },
16398
+ * })
16399
+ * ```
16400
+ */
16401
+ liveboardOverride?: LiveboardOverride;
16402
+ /**
16403
+ * The Spotter experience version to load for the Spotter surface shown within
16404
+ * this embed.
16405
+ * @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.11.0.cl
16406
+ * @example
16407
+ * ```js
16408
+ * const embed = new LiveboardEmbed('#tsEmbed', {
16409
+ * ... // other options
16410
+ * spotterExperienceVersion: SpotterExperienceVersion.SPOTTER_2026_11,
16411
+ * });
16412
+ * ```
16413
+ */
16414
+ spotterExperienceVersion?: SpotterExperienceVersion;
15664
16415
  }
15665
16416
  declare class LiveboardEmbed extends V1Embed {
15666
16417
  protected viewConfig: LiveboardViewConfig;
@@ -15693,20 +16444,8 @@ declare class LiveboardEmbed extends V1Embed {
15693
16444
  personalizedViewId: string;
15694
16445
  };
15695
16446
  protected beforePrerenderVisible(): void;
15696
- /**
15697
- * Whether `previous` was showing what this instance is about to show.
15698
- *
15699
- * Undefined-valued keys are dropped before comparing. `navigateToLiveboard`
15700
- * assigns `vizId`, `activeTabId` and `personalizedViewId` unconditionally,
15701
- * so an instance that has been shown once carries those keys as `undefined`
15702
- * while a freshly constructed one does not have them at all. `isEqual`
15703
- * counts own keys, so without this the comparison can never be true after
15704
- * the first show — which is the whole case this exists for.
15705
- *
15706
- * Callbacks compare as equal: React passes a fresh closure per render.
15707
- */
15708
16447
  private isSameEmbedConfig;
15709
- private isShowingLiveboardRoute;
16448
+ private isAlreadyOnSameRoute;
15710
16449
  protected handleRenderForPrerender(): Promise<TsEmbed>;
15711
16450
  /**
15712
16451
  * Triggers an event to the embedded app