@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.
- package/cjs/package.json +1 -1
- package/cjs/src/css-variables.d.ts +373 -5
- package/cjs/src/css-variables.d.ts.map +1 -1
- package/cjs/src/embed/app.d.ts +14 -0
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +6 -3
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +28 -0
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/auto-frame-renderer.d.ts.map +1 -1
- package/cjs/src/embed/auto-frame-renderer.js +244 -4
- package/cjs/src/embed/auto-frame-renderer.js.map +1 -1
- package/cjs/src/embed/auto-frame-renderer.spec.js +389 -0
- package/cjs/src/embed/auto-frame-renderer.spec.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.js +1 -1
- package/cjs/src/embed/bodyless-conversation.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +15 -0
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +7 -3
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +66 -0
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/liveboard-override-utils.d.ts +59 -0
- package/cjs/src/embed/liveboard-override-utils.d.ts.map +1 -0
- package/cjs/src/embed/liveboard-override-utils.js +19 -0
- package/cjs/src/embed/liveboard-override-utils.js.map +1 -0
- package/cjs/src/embed/liveboard-override-utils.spec.d.ts +2 -0
- package/cjs/src/embed/liveboard-override-utils.spec.d.ts.map +1 -0
- package/cjs/src/embed/liveboard-override-utils.spec.js +34 -0
- package/cjs/src/embed/liveboard-override-utils.spec.js.map +1 -0
- package/cjs/src/embed/liveboard.d.ts +58 -13
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +11 -34
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +104 -79
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/search-bar.js +1 -1
- package/cjs/src/embed/search-bar.js.map +1 -1
- package/cjs/src/embed/search.js +1 -1
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js +20 -0
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/spotter-utils.d.ts +11 -0
- package/cjs/src/embed/spotter-utils.d.ts.map +1 -1
- package/cjs/src/embed/spotter-utils.js +13 -1
- package/cjs/src/embed/spotter-utils.js.map +1 -1
- package/cjs/src/embed/spotter-viz-utils.d.ts +15 -0
- package/cjs/src/embed/spotter-viz-utils.d.ts.map +1 -1
- package/cjs/src/embed/spotter-viz-utils.js.map +1 -1
- package/cjs/src/embed/spotter-viz-utils.spec.js +11 -0
- package/cjs/src/embed/spotter-viz-utils.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +27 -34
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +224 -102
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +543 -166
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +4 -2
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +4 -2
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/mixpanel-service.d.ts +1 -0
- package/cjs/src/mixpanel-service.d.ts.map +1 -1
- package/cjs/src/mixpanel-service.js +1 -0
- package/cjs/src/mixpanel-service.js.map +1 -1
- package/cjs/src/react/all-types-export.d.ts +1 -1
- package/cjs/src/react/all-types-export.d.ts.map +1 -1
- package/cjs/src/react/all-types-export.js +2 -1
- package/cjs/src/react/all-types-export.js.map +1 -1
- package/cjs/src/types.d.ts +182 -2
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +109 -0
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
- package/cjs/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.js +8 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.d.ts +28 -4
- package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.js +39 -4
- package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.spec.js +124 -0
- package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/dist/{index-CnHREfvN.js → index-CyDR8j_0.js} +1 -1
- package/dist/src/css-variables.d.ts +373 -5
- package/dist/src/css-variables.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +14 -0
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/auto-frame-renderer.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +15 -0
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/liveboard-override-utils.d.ts +59 -0
- package/dist/src/embed/liveboard-override-utils.d.ts.map +1 -0
- package/dist/src/embed/liveboard-override-utils.spec.d.ts +2 -0
- package/dist/src/embed/liveboard-override-utils.spec.d.ts.map +1 -0
- package/dist/src/embed/liveboard.d.ts +58 -13
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/spotter-utils.d.ts +11 -0
- package/dist/src/embed/spotter-utils.d.ts.map +1 -1
- package/dist/src/embed/spotter-viz-utils.d.ts +15 -0
- package/dist/src/embed/spotter-viz-utils.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +27 -34
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/dist/src/index.d.ts +4 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/mixpanel-service.d.ts +1 -0
- package/dist/src/mixpanel-service.d.ts.map +1 -1
- package/dist/src/react/all-types-export.d.ts +1 -1
- package/dist/src/react/all-types-export.d.ts.map +1 -1
- package/dist/src/types.d.ts +182 -2
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
- package/dist/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answerService.d.ts +28 -4
- package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +437 -191
- package/dist/tsembed-react.js +436 -190
- package/dist/tsembed.es.js +680 -196
- package/dist/tsembed.js +678 -194
- package/dist/visual-embed-sdk-react-full.d.ts +702 -56
- package/dist/visual-embed-sdk-react.d.ts +697 -56
- package/dist/visual-embed-sdk.d.ts +744 -57
- package/lib/package.json +1 -1
- package/lib/src/css-variables.d.ts +373 -5
- package/lib/src/css-variables.d.ts.map +1 -1
- package/lib/src/embed/app.d.ts +14 -0
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +7 -4
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +28 -0
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/auto-frame-renderer.d.ts.map +1 -1
- package/lib/src/embed/auto-frame-renderer.js +244 -4
- package/lib/src/embed/auto-frame-renderer.js.map +1 -1
- package/lib/src/embed/auto-frame-renderer.spec.js +389 -0
- package/lib/src/embed/auto-frame-renderer.spec.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.js +1 -1
- package/lib/src/embed/bodyless-conversation.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +15 -0
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +8 -4
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +67 -1
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/liveboard-override-utils.d.ts +59 -0
- package/lib/src/embed/liveboard-override-utils.d.ts.map +1 -0
- package/lib/src/embed/liveboard-override-utils.js +15 -0
- package/lib/src/embed/liveboard-override-utils.js.map +1 -0
- package/lib/src/embed/liveboard-override-utils.spec.d.ts +2 -0
- package/lib/src/embed/liveboard-override-utils.spec.d.ts.map +1 -0
- package/lib/src/embed/liveboard-override-utils.spec.js +32 -0
- package/lib/src/embed/liveboard-override-utils.spec.js.map +1 -0
- package/lib/src/embed/liveboard.d.ts +58 -13
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +11 -33
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +104 -79
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/search-bar.js +1 -1
- package/lib/src/embed/search-bar.js.map +1 -1
- package/lib/src/embed/search.js +1 -1
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +20 -0
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/spotter-utils.d.ts +11 -0
- package/lib/src/embed/spotter-utils.d.ts.map +1 -1
- package/lib/src/embed/spotter-utils.js +12 -0
- package/lib/src/embed/spotter-utils.js.map +1 -1
- package/lib/src/embed/spotter-viz-utils.d.ts +15 -0
- package/lib/src/embed/spotter-viz-utils.d.ts.map +1 -1
- package/lib/src/embed/spotter-viz-utils.js.map +1 -1
- package/lib/src/embed/spotter-viz-utils.spec.js +11 -0
- package/lib/src/embed/spotter-viz-utils.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +27 -34
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +224 -102
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +544 -167
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +4 -2
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +3 -2
- package/lib/src/index.js.map +1 -1
- package/lib/src/mixpanel-service.d.ts +1 -0
- package/lib/src/mixpanel-service.d.ts.map +1 -1
- package/lib/src/mixpanel-service.js +1 -0
- package/lib/src/mixpanel-service.js.map +1 -1
- package/lib/src/react/all-types-export.d.ts +1 -1
- package/lib/src/react/all-types-export.d.ts.map +1 -1
- package/lib/src/react/all-types-export.js +1 -1
- package/lib/src/react/all-types-export.js.map +1 -1
- package/lib/src/types.d.ts +182 -2
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +109 -0
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
- package/lib/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answer-queries.js +7 -0
- package/lib/src/utils/graphql/answerService/answer-queries.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.d.ts +28 -4
- package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.js +39 -4
- package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.spec.js +125 -1
- package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +744 -57
- package/package.json +1 -1
- package/src/css-variables.ts +475 -26
- package/src/embed/app.spec.ts +32 -0
- package/src/embed/app.ts +28 -4
- package/src/embed/auto-frame-renderer.spec.ts +464 -0
- package/src/embed/auto-frame-renderer.ts +305 -6
- package/src/embed/bodyless-conversation.ts +1 -1
- package/src/embed/conversation.spec.ts +94 -1
- package/src/embed/conversation.ts +28 -3
- package/src/embed/liveboard-override-utils.spec.ts +38 -0
- package/src/embed/liveboard-override-utils.ts +71 -0
- package/src/embed/liveboard.spec.ts +119 -92
- package/src/embed/liveboard.ts +56 -40
- package/src/embed/search-bar.tsx +1 -1
- package/src/embed/search.spec.ts +23 -0
- package/src/embed/search.ts +1 -1
- package/src/embed/spotter-utils.ts +12 -0
- package/src/embed/spotter-viz-utils.spec.ts +11 -0
- package/src/embed/spotter-viz-utils.ts +15 -0
- package/src/embed/ts-embed.spec.ts +685 -207
- package/src/embed/ts-embed.ts +227 -97
- package/src/index.ts +16 -1
- package/src/mixpanel-service.ts +1 -0
- package/src/react/all-types-export.ts +6 -0
- package/src/types.ts +186 -5
- package/src/utils/graphql/answerService/answer-queries.ts +8 -0
- package/src/utils/graphql/answerService/answerService.spec.ts +145 -1
- 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
|
-
*
|
|
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
|
-
*
|
|
1053
|
-
*
|
|
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,35 @@ 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",
|
|
6718
7215
|
/**
|
|
6719
7216
|
* Trigger the **Copy link** action on a Liveboard or visualization
|
|
6720
7217
|
* Payload: {@link VizScopedRequest}.
|
|
@@ -8709,12 +9206,43 @@ export declare enum Action {
|
|
|
8709
9206
|
* The *Edit* action on the Liveboard page and in the
|
|
8710
9207
|
* visualization menu.
|
|
8711
9208
|
* Opens a Liveboard or visualization in edit mode.
|
|
9209
|
+
*
|
|
9210
|
+
* Controls both surfaces together. To target one surface only, use
|
|
9211
|
+
* {@link Action.EditLiveboard} or {@link Action.EditVisualization}.
|
|
8712
9212
|
* @example
|
|
8713
9213
|
* ```js
|
|
8714
9214
|
* disabledActions: [Action.Edit]
|
|
8715
9215
|
* ```
|
|
8716
9216
|
*/
|
|
8717
9217
|
Edit = "edit",
|
|
9218
|
+
/**
|
|
9219
|
+
* The *Edit* action on the Liveboard page only.
|
|
9220
|
+
* Opens a Liveboard in edit mode.
|
|
9221
|
+
*
|
|
9222
|
+
* Does not affect the *Edit* action in the visualization menu; use
|
|
9223
|
+
* {@link Action.EditVisualization} for that, or {@link Action.Edit} to
|
|
9224
|
+
* control both surfaces together.
|
|
9225
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9226
|
+
* @example
|
|
9227
|
+
* ```js
|
|
9228
|
+
* disabledActions: [Action.EditLiveboard]
|
|
9229
|
+
* ```
|
|
9230
|
+
*/
|
|
9231
|
+
EditLiveboard = "editLiveboard",
|
|
9232
|
+
/**
|
|
9233
|
+
* The *Edit* action in the visualization `...` menu only.
|
|
9234
|
+
* Opens a visualization in the editor.
|
|
9235
|
+
*
|
|
9236
|
+
* Does not affect the *Edit* action on the Liveboard page; use
|
|
9237
|
+
* {@link Action.EditLiveboard} for that, or {@link Action.Edit} to
|
|
9238
|
+
* control both surfaces together.
|
|
9239
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9240
|
+
* @example
|
|
9241
|
+
* ```js
|
|
9242
|
+
* disabledActions: [Action.EditVisualization]
|
|
9243
|
+
* ```
|
|
9244
|
+
*/
|
|
9245
|
+
EditVisualization = "editVisualization",
|
|
8718
9246
|
/**
|
|
8719
9247
|
* The text edit option for Liveboard and visualization titles.
|
|
8720
9248
|
* @example
|
|
@@ -12147,6 +12675,7 @@ declare class TsEmbed {
|
|
|
12147
12675
|
protected embedNodeKey: string;
|
|
12148
12676
|
protected embedContainerLoadedKey: string;
|
|
12149
12677
|
protected isAppInitialized: boolean;
|
|
12678
|
+
private initDataParams;
|
|
12150
12679
|
/**
|
|
12151
12680
|
* A reference to the iframe within which the ThoughtSpot app
|
|
12152
12681
|
* will be rendered.
|
|
@@ -12196,7 +12725,7 @@ declare class TsEmbed {
|
|
|
12196
12725
|
private defaultHiddenActions;
|
|
12197
12726
|
private resizeObserver;
|
|
12198
12727
|
private preRenderContainerEl;
|
|
12199
|
-
|
|
12728
|
+
private containerScrollListener;
|
|
12200
12729
|
protected hostEventClient: HostEventClient;
|
|
12201
12730
|
protected isReadyForRenderPromise: Promise<void>;
|
|
12202
12731
|
protected shouldWaitForRenderPromise: boolean;
|
|
@@ -12272,6 +12801,7 @@ declare class TsEmbed {
|
|
|
12272
12801
|
protected getAuthTokenForCookielessInit(): Promise<string>;
|
|
12273
12802
|
protected getDefaultAppInitData(): Promise<DefaultAppInitData>;
|
|
12274
12803
|
protected getAppInitData(): Promise<DefaultAppInitData>;
|
|
12804
|
+
private withInitDataParams;
|
|
12275
12805
|
/**
|
|
12276
12806
|
* Send Custom style as part of payload of APP_INIT
|
|
12277
12807
|
* @param _
|
|
@@ -12344,6 +12874,7 @@ declare class TsEmbed {
|
|
|
12344
12874
|
[key: string]: string | number | boolean;
|
|
12345
12875
|
};
|
|
12346
12876
|
customizations?: CustomisationsInterface;
|
|
12877
|
+
isDarkMode?: boolean;
|
|
12347
12878
|
insertAsSibling?: boolean;
|
|
12348
12879
|
usePrerenderedIfAvailable?: boolean;
|
|
12349
12880
|
preRenderId?: string;
|
|
@@ -12374,6 +12905,12 @@ declare class TsEmbed {
|
|
|
12374
12905
|
isThisPeriodInDateFiltersEnabled?: boolean;
|
|
12375
12906
|
hideLiveboardHeader?: boolean;
|
|
12376
12907
|
showLiveboardTitle?: boolean;
|
|
12908
|
+
/**
|
|
12909
|
+
* Get the Post Url Params for THOUGHTSPOT from the current
|
|
12910
|
+
* host app URL.
|
|
12911
|
+
* THOUGHTSPOT URL params starts with a prefix "ts-"
|
|
12912
|
+
* @version SDK: 1.14.0 | ThoughtSpot: 8.4.0.cl, 8.4.1-sw
|
|
12913
|
+
*/
|
|
12377
12914
|
showLiveboardDescription?: boolean;
|
|
12378
12915
|
isLiveboardHeaderSticky?: boolean;
|
|
12379
12916
|
enable2ColumnLayout?: boolean;
|
|
@@ -12411,6 +12948,7 @@ declare class TsEmbed {
|
|
|
12411
12948
|
protected getV1EmbedBasePath(queryString: string): string;
|
|
12412
12949
|
protected getEmbedParams(): string;
|
|
12413
12950
|
protected getEmbedParamsObject(): Record<any, any>;
|
|
12951
|
+
protected getUrlQueryParamsObject(): Record<any, any>;
|
|
12414
12952
|
protected getRootIframeSrc(): string;
|
|
12415
12953
|
protected createIframeEl(frameSrc: string): HTMLIFrameElement;
|
|
12416
12954
|
/**
|
|
@@ -12452,26 +12990,10 @@ declare class TsEmbed {
|
|
|
12452
12990
|
*/
|
|
12453
12991
|
private createPreRenderPlaceholder;
|
|
12454
12992
|
/**
|
|
12455
|
-
* Resolves the configured preRenderContainer to a live element
|
|
12456
|
-
* selector is re-queried on every call so
|
|
12457
|
-
* replacing the node) resolves to the
|
|
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.
|
|
12993
|
+
* Resolves the configured preRenderContainer to a live element, falling
|
|
12994
|
+
* back to `document.body`. A string selector is re-queried on every call so
|
|
12995
|
+
* a remounted container (E.g.: React replacing the node) resolves to the
|
|
12996
|
+
* fresh element; an element passed directly cannot be re-resolved.
|
|
12475
12997
|
*/
|
|
12476
12998
|
private resolvePreRenderContainerTarget;
|
|
12477
12999
|
private inheritPreRenderContainer;
|
|
@@ -12488,9 +13010,8 @@ declare class TsEmbed {
|
|
|
12488
13010
|
* Re-attaches the wrapper to a live container when the previously resolved
|
|
12489
13011
|
* one has been detached or no longer holds the wrapper — e.g. the host app
|
|
12490
13012
|
* remounted a custom preRenderContainer, which would otherwise leave a stale
|
|
12491
|
-
* reference and collapse the wrapper.
|
|
12492
|
-
*
|
|
12493
|
-
* is left untouched, as there is nothing to re-query.
|
|
13013
|
+
* reference and collapse the wrapper. Only string selectors can be
|
|
13014
|
+
* re-resolved; a container passed as an element is left untouched.
|
|
12494
13015
|
*/
|
|
12495
13016
|
private reconcilePreRenderContainer;
|
|
12496
13017
|
protected insertIntoDOMForPreRender(child: string | Node): void;
|
|
@@ -12706,17 +13227,9 @@ declare class TsEmbed {
|
|
|
12706
13227
|
*/
|
|
12707
13228
|
private restorePreRenderContainerPosition;
|
|
12708
13229
|
/**
|
|
12709
|
-
*
|
|
12710
|
-
*
|
|
12711
|
-
* Position deliberately has no equivalent. An absolutely positioned wrapper
|
|
12712
|
-
* follows its containing block for free, so a correctly placed frame is the
|
|
12713
|
-
* browser's job and costs nothing; repositioning it on scroll would mean a
|
|
12714
|
-
* layout read and a style write per frame to compensate for placing it in
|
|
12715
|
-
* the wrong box. Size is the one thing the browser will not do for us: the
|
|
12716
|
-
* placeholder grows when the embedded app reports a new height, and the
|
|
12717
|
-
* wrapper has to be told.
|
|
13230
|
+
* Detaches and clears the container scroll listener, if one is attached.
|
|
12718
13231
|
*/
|
|
12719
|
-
private
|
|
13232
|
+
private removeContainerScrollListener;
|
|
12720
13233
|
/**
|
|
12721
13234
|
* Destroys the ThoughtSpot embed, and remove any nodes from the DOM.
|
|
12722
13235
|
* @version SDK: 1.19.1 | ThoughtSpot: *
|
|
@@ -12732,6 +13245,8 @@ declare class TsEmbed {
|
|
|
12732
13245
|
*/
|
|
12733
13246
|
prerenderGeneric(): Promise<any>;
|
|
12734
13247
|
protected preRenderParamsApplied: Promise<void>;
|
|
13248
|
+
protected isConfigExcludedFromUrl(): boolean;
|
|
13249
|
+
protected triggerUpdateEmbedParams(): Promise<void>;
|
|
12735
13250
|
protected beforePrerenderVisible(): void;
|
|
12736
13251
|
/**
|
|
12737
13252
|
* Displays the pre-rendered component inside the host element.
|
|
@@ -13288,6 +13803,12 @@ declare class SearchBarEmbed extends TsEmbed {
|
|
|
13288
13803
|
};
|
|
13289
13804
|
protected getAppInitData(): Promise<SearchAppInitData$1>;
|
|
13290
13805
|
}
|
|
13806
|
+
declare enum SpotterExperienceVersion {
|
|
13807
|
+
/**
|
|
13808
|
+
* The Spotter experience version introduced in ThoughtSpot 26.11.
|
|
13809
|
+
*/
|
|
13810
|
+
SPOTTER_2026_11 = "spotter_2026_11"
|
|
13811
|
+
}
|
|
13291
13812
|
interface SearchOptions$1 {
|
|
13292
13813
|
/**
|
|
13293
13814
|
* The query string to pass to start the Conversation.
|
|
@@ -13704,6 +14225,20 @@ export interface SpotterAnalystConfig {
|
|
|
13704
14225
|
* @group Embed components
|
|
13705
14226
|
*/
|
|
13706
14227
|
export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, "primaryAction"> {
|
|
14228
|
+
/**
|
|
14229
|
+
* The Spotter experience version to load. When set to
|
|
14230
|
+
* `SpotterExperienceVersion.SPOTTER_2026_11`, the embed loads the updated Spotter
|
|
14231
|
+
* surface instead of the default conversation surface.
|
|
14232
|
+
* @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
14233
|
+
* @example
|
|
14234
|
+
* ```js
|
|
14235
|
+
* const embed = new SpotterEmbed('#tsEmbed', {
|
|
14236
|
+
* ... // other options
|
|
14237
|
+
* spotterExperienceVersion: SpotterExperienceVersion.SPOTTER_2026_11,
|
|
14238
|
+
* });
|
|
14239
|
+
* ```
|
|
14240
|
+
*/
|
|
14241
|
+
spotterExperienceVersion?: SpotterExperienceVersion;
|
|
13707
14242
|
/**
|
|
13708
14243
|
* The ID of the data source object. For example, Model, View, or Table. Spotter uses
|
|
13709
14244
|
* this object to query data and generate Answers.
|
|
@@ -14219,6 +14754,21 @@ export interface SpotterVizConfig {
|
|
|
14219
14754
|
* @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.7.0.cl
|
|
14220
14755
|
*/
|
|
14221
14756
|
insightTileLoaderText?: string;
|
|
14757
|
+
/**
|
|
14758
|
+
* Set to `false` to hide the file upload feature in the SpotterViz chat
|
|
14759
|
+
* input on a cluster where the feature is available.
|
|
14760
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
14761
|
+
* @default true
|
|
14762
|
+
*/
|
|
14763
|
+
fileUploadEnabled?: boolean;
|
|
14764
|
+
/**
|
|
14765
|
+
* Restricts the allowed file types for SpotterViz file upload to a
|
|
14766
|
+
* subset of the types SpotterViz supports, e.g. `['csv', 'pdf']`.
|
|
14767
|
+
* Entries are file extensions (with or without the leading dot); types
|
|
14768
|
+
* SpotterViz does not support are ignored, as are empty lists.
|
|
14769
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
14770
|
+
*/
|
|
14771
|
+
fileUploadFileTypes?: string[];
|
|
14222
14772
|
}
|
|
14223
14773
|
/**
|
|
14224
14774
|
* A single tip shown in the SpotterViz loading state.
|
|
@@ -15089,6 +15639,19 @@ export interface AppViewConfig extends AllEmbedViewConfig, FullHeightViewConfig
|
|
|
15089
15639
|
* ```
|
|
15090
15640
|
*/
|
|
15091
15641
|
hideAnswerEditPanel?: boolean;
|
|
15642
|
+
/**
|
|
15643
|
+
* The Spotter experience version to load for the Spotter surface shown within
|
|
15644
|
+
* this embed.
|
|
15645
|
+
* @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
15646
|
+
* @example
|
|
15647
|
+
* ```js
|
|
15648
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
15649
|
+
* ... // other options
|
|
15650
|
+
* spotterExperienceVersion: SpotterExperienceVersion.SPOTTER_2026_11,
|
|
15651
|
+
* });
|
|
15652
|
+
* ```
|
|
15653
|
+
*/
|
|
15654
|
+
spotterExperienceVersion?: SpotterExperienceVersion;
|
|
15092
15655
|
}
|
|
15093
15656
|
/**
|
|
15094
15657
|
* APP_INIT data shape for AppEmbed.
|
|
@@ -15167,6 +15730,56 @@ declare class AppEmbed extends V1Embed {
|
|
|
15167
15730
|
*/
|
|
15168
15731
|
render(): Promise<AppEmbed>;
|
|
15169
15732
|
}
|
|
15733
|
+
/**
|
|
15734
|
+
* A filter to apply to a Liveboard when it loads.
|
|
15735
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
15736
|
+
* @group Embed components
|
|
15737
|
+
*/
|
|
15738
|
+
export interface LiveboardFilterQuery {
|
|
15739
|
+
/** Name of the Liveboard tab the filter applies to. */
|
|
15740
|
+
tabName?: string;
|
|
15741
|
+
/** Name of the group within the tab that the filter applies to. */
|
|
15742
|
+
groupName?: string;
|
|
15743
|
+
/**
|
|
15744
|
+
* The filter condition, in search sentence form. For example, `color = red`.
|
|
15745
|
+
*/
|
|
15746
|
+
filterQueryToken: string;
|
|
15747
|
+
}
|
|
15748
|
+
/**
|
|
15749
|
+
* A Parameter value to apply to a Liveboard when it loads.
|
|
15750
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
15751
|
+
* @group Embed components
|
|
15752
|
+
*/
|
|
15753
|
+
export interface LiveboardParameterQuery {
|
|
15754
|
+
/** Name of the Liveboard tab the Parameter applies to. */
|
|
15755
|
+
tabName?: string;
|
|
15756
|
+
/** Name of the group within the tab that the Parameter applies to. */
|
|
15757
|
+
groupName?: string;
|
|
15758
|
+
/** The Parameter assignment. */
|
|
15759
|
+
parameterQueryToken: string;
|
|
15760
|
+
}
|
|
15761
|
+
/**
|
|
15762
|
+
* Filter and Parameter overrides for one data source on the Liveboard.
|
|
15763
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
15764
|
+
* @group Embed components
|
|
15765
|
+
*/
|
|
15766
|
+
export interface LiveboardDataSourceOverride {
|
|
15767
|
+
/** The data source (Model) the overrides apply to. */
|
|
15768
|
+
dataSourceIdentifier?: string;
|
|
15769
|
+
/** Filters to apply for this data source. */
|
|
15770
|
+
filterQuery?: LiveboardFilterQuery[];
|
|
15771
|
+
/** Parameter values to apply for this data source. */
|
|
15772
|
+
parameterQuery?: LiveboardParameterQuery[];
|
|
15773
|
+
}
|
|
15774
|
+
/**
|
|
15775
|
+
* Filter and Parameter overrides applied to a Liveboard when it loads.
|
|
15776
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
15777
|
+
* @group Embed components
|
|
15778
|
+
*/
|
|
15779
|
+
export interface LiveboardOverride {
|
|
15780
|
+
/** One entry per data source to override. */
|
|
15781
|
+
dataSourceOverride: LiveboardDataSourceOverride[];
|
|
15782
|
+
}
|
|
15170
15783
|
/**
|
|
15171
15784
|
* APP_INIT data shape for LiveboardEmbed.
|
|
15172
15785
|
* @internal
|
|
@@ -15175,6 +15788,7 @@ export interface LiveboardEmbedAppInitData extends DefaultAppInitData {
|
|
|
15175
15788
|
embedParams?: {
|
|
15176
15789
|
spotterVizConfig?: SpotterVizConfig;
|
|
15177
15790
|
starterPrompts?: StarterPromptsConfig;
|
|
15791
|
+
liveboardOverride?: LiveboardOverride;
|
|
15178
15792
|
};
|
|
15179
15793
|
}
|
|
15180
15794
|
/**
|
|
@@ -15661,6 +16275,46 @@ export interface LiveboardViewConfig extends BaseViewConfig, FullHeightViewConfi
|
|
|
15661
16275
|
* ```
|
|
15662
16276
|
*/
|
|
15663
16277
|
updatedSpotterExperience?: boolean;
|
|
16278
|
+
/**
|
|
16279
|
+
* Filters and Parameters to apply to the Liveboard when it loads.
|
|
16280
|
+
*
|
|
16281
|
+
* In an embedded Liveboard, this is the only way to set these overrides.
|
|
16282
|
+
* The `filter` and `parameter` URL query params are ignored.
|
|
16283
|
+
* Clauses without a query token are dropped.
|
|
16284
|
+
*
|
|
16285
|
+
* Supported embed types: `LiveboardEmbed`
|
|
16286
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
16287
|
+
* @example
|
|
16288
|
+
* ```js
|
|
16289
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
16290
|
+
* ... // other embed view config
|
|
16291
|
+
* liveboardOverride: {
|
|
16292
|
+
* dataSourceOverride: [{
|
|
16293
|
+
* dataSourceIdentifier: '<model-guid>',
|
|
16294
|
+
* filterQuery: [{
|
|
16295
|
+
* tabName: 'Sales',
|
|
16296
|
+
* groupName: 'Region',
|
|
16297
|
+
* filterQueryToken: 'color = red',
|
|
16298
|
+
* }],
|
|
16299
|
+
* }],
|
|
16300
|
+
* },
|
|
16301
|
+
* })
|
|
16302
|
+
* ```
|
|
16303
|
+
*/
|
|
16304
|
+
liveboardOverride?: LiveboardOverride;
|
|
16305
|
+
/**
|
|
16306
|
+
* The Spotter experience version to load for the Spotter surface shown within
|
|
16307
|
+
* this embed.
|
|
16308
|
+
* @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
16309
|
+
* @example
|
|
16310
|
+
* ```js
|
|
16311
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
16312
|
+
* ... // other options
|
|
16313
|
+
* spotterExperienceVersion: SpotterExperienceVersion.SPOTTER_2026_11,
|
|
16314
|
+
* });
|
|
16315
|
+
* ```
|
|
16316
|
+
*/
|
|
16317
|
+
spotterExperienceVersion?: SpotterExperienceVersion;
|
|
15664
16318
|
}
|
|
15665
16319
|
declare class LiveboardEmbed extends V1Embed {
|
|
15666
16320
|
protected viewConfig: LiveboardViewConfig;
|
|
@@ -15693,19 +16347,6 @@ declare class LiveboardEmbed extends V1Embed {
|
|
|
15693
16347
|
personalizedViewId: string;
|
|
15694
16348
|
};
|
|
15695
16349
|
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
|
-
private isSameEmbedConfig;
|
|
15709
16350
|
private isShowingLiveboardRoute;
|
|
15710
16351
|
protected handleRenderForPrerender(): Promise<TsEmbed>;
|
|
15711
16352
|
/**
|