@thoughtspot/visual-embed-sdk 1.46.1 → 1.46.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/package.json +1 -1
- package/cjs/src/auth.d.ts +29 -4
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +29 -7
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/auth.spec.js +1 -3
- package/cjs/src/auth.spec.js.map +1 -1
- package/cjs/src/authToken.js +0 -1
- package/cjs/src/authToken.js.map +1 -1
- package/cjs/src/authToken.spec.js +2 -1
- package/cjs/src/authToken.spec.js.map +1 -1
- package/cjs/src/css-variables.d.ts +17 -17
- package/cjs/src/embed/app.d.ts +62 -33
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +10 -3
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +34 -1
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/auto-frame-renderer.d.ts +41 -0
- package/cjs/src/embed/auto-frame-renderer.d.ts.map +1 -0
- package/cjs/src/embed/auto-frame-renderer.js +145 -0
- package/cjs/src/embed/auto-frame-renderer.js.map +1 -0
- package/cjs/src/embed/auto-frame-renderer.spec.d.ts +2 -0
- package/cjs/src/embed/auto-frame-renderer.spec.d.ts.map +1 -0
- package/cjs/src/embed/auto-frame-renderer.spec.js +195 -0
- package/cjs/src/embed/auto-frame-renderer.spec.js.map +1 -0
- package/cjs/src/embed/base.d.ts +2 -2
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +6 -9
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.d.ts +5 -5
- package/cjs/src/embed/bodyless-conversation.js +4 -4
- package/cjs/src/embed/conversation.d.ts +43 -30
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +10 -11
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +27 -0
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.js +0 -2
- package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +42 -35
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +6 -4
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +5 -3
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/sage.d.ts +5 -5
- package/cjs/src/embed/sage.js +1 -2
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/search-bar.d.ts +7 -7
- package/cjs/src/embed/search-bar.js +1 -1
- package/cjs/src/embed/search.d.ts +13 -12
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js +0 -2
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +3 -3
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +15 -9
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +37 -1
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +3 -2
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +3 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/react/index.d.ts +15 -15
- package/cjs/src/react/index.js +12 -13
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/react/index.spec.js +6 -3
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/tokenizedFetch.d.ts +1 -1
- package/cjs/src/tokenizedFetch.js +1 -1
- package/cjs/src/types.d.ts +350 -287
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +240 -218
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.d.ts +9 -6
- package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.js +13 -15
- package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.spec.js +55 -0
- package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/cjs/src/utils/graphql/preview-service.js +0 -1
- package/cjs/src/utils/graphql/preview-service.js.map +1 -1
- package/cjs/src/utils/processData.js +0 -5
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils.d.ts +9 -0
- package/cjs/src/utils.d.ts.map +1 -1
- package/cjs/src/utils.js +10 -1
- package/cjs/src/utils.js.map +1 -1
- package/dist/{index-Vyh6Ha5f.js → index-DyX-x6uN.js} +1 -1
- package/dist/src/auth.d.ts +29 -4
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/css-variables.d.ts +17 -17
- package/dist/src/embed/app.d.ts +62 -33
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/auto-frame-renderer.d.ts +41 -0
- package/dist/src/embed/auto-frame-renderer.d.ts.map +1 -0
- package/dist/src/embed/auto-frame-renderer.spec.d.ts +2 -0
- package/dist/src/embed/auto-frame-renderer.spec.d.ts.map +1 -0
- package/dist/src/embed/base.d.ts +2 -2
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/bodyless-conversation.d.ts +5 -5
- package/dist/src/embed/conversation.d.ts +43 -30
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +42 -35
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts +5 -5
- package/dist/src/embed/search-bar.d.ts +7 -7
- package/dist/src/embed/search.d.ts +13 -12
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +3 -3
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/react/index.d.ts +15 -15
- package/dist/src/tokenizedFetch.d.ts +1 -1
- package/dist/src/types.d.ts +350 -287
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answerService.d.ts +9 -6
- package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/dist/src/utils.d.ts +9 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +359 -329
- package/dist/tsembed-react.js +358 -328
- package/dist/tsembed.es.js +490 -321
- package/dist/tsembed.js +489 -319
- package/dist/visual-embed-sdk-react-full.d.ts +574 -442
- package/dist/visual-embed-sdk-react.d.ts +572 -440
- package/dist/visual-embed-sdk.d.ts +622 -446
- package/lib/package.json +1 -1
- package/lib/src/auth.d.ts +29 -4
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +29 -7
- package/lib/src/auth.js.map +1 -1
- package/lib/src/auth.spec.js +1 -3
- package/lib/src/auth.spec.js.map +1 -1
- package/lib/src/authToken.js +0 -1
- package/lib/src/authToken.js.map +1 -1
- package/lib/src/authToken.spec.js +2 -1
- package/lib/src/authToken.spec.js.map +1 -1
- package/lib/src/css-variables.d.ts +17 -17
- package/lib/src/embed/app.d.ts +62 -33
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +11 -4
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +34 -1
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/auto-frame-renderer.d.ts +41 -0
- package/lib/src/embed/auto-frame-renderer.d.ts.map +1 -0
- package/lib/src/embed/auto-frame-renderer.js +141 -0
- package/lib/src/embed/auto-frame-renderer.js.map +1 -0
- package/lib/src/embed/auto-frame-renderer.spec.d.ts +2 -0
- package/lib/src/embed/auto-frame-renderer.spec.d.ts.map +1 -0
- package/lib/src/embed/auto-frame-renderer.spec.js +192 -0
- package/lib/src/embed/auto-frame-renderer.spec.js.map +1 -0
- package/lib/src/embed/base.d.ts +2 -2
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +6 -9
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.d.ts +5 -5
- package/lib/src/embed/bodyless-conversation.js +4 -4
- package/lib/src/embed/conversation.d.ts +43 -30
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +11 -11
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +27 -0
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.js +0 -2
- package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +42 -35
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +6 -4
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +5 -3
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/sage.d.ts +5 -5
- package/lib/src/embed/sage.js +1 -2
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts +7 -7
- package/lib/src/embed/search-bar.js +1 -1
- package/lib/src/embed/search.d.ts +13 -12
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +0 -2
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +3 -3
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +15 -9
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +37 -1
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +3 -2
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +1 -0
- package/lib/src/index.js.map +1 -1
- package/lib/src/react/index.d.ts +15 -15
- package/lib/src/react/index.js +12 -13
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/react/index.spec.js +6 -3
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/tokenizedFetch.d.ts +1 -1
- package/lib/src/tokenizedFetch.js +1 -1
- package/lib/src/types.d.ts +350 -287
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +240 -218
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.d.ts +9 -6
- package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.js +12 -14
- package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.spec.js +55 -0
- package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/lib/src/utils/graphql/preview-service.js +0 -1
- package/lib/src/utils/graphql/preview-service.js.map +1 -1
- package/lib/src/utils/processData.js +0 -5
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils.d.ts +9 -0
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +8 -0
- package/lib/src/utils.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +11466 -0
- package/package.json +1 -1
- package/src/auth.spec.ts +1 -1
- package/src/auth.ts +32 -7
- package/src/authToken.spec.ts +2 -1
- package/src/authToken.ts +1 -1
- package/src/css-variables.ts +17 -17
- package/src/embed/app.spec.ts +46 -1
- package/src/embed/app.ts +74 -36
- package/src/embed/auto-frame-renderer.spec.ts +266 -0
- package/src/embed/auto-frame-renderer.ts +152 -0
- package/src/embed/base.spec.ts +1 -1
- package/src/embed/base.ts +9 -10
- package/src/embed/bodyless-conversation.ts +5 -5
- package/src/embed/conversation.spec.ts +37 -0
- package/src/embed/conversation.ts +55 -38
- package/src/embed/hostEventClient/host-event-client.ts +2 -2
- package/src/embed/liveboard.spec.ts +5 -3
- package/src/embed/liveboard.ts +47 -38
- package/src/embed/sage.ts +6 -6
- package/src/embed/search-bar.tsx +7 -7
- package/src/embed/search.spec.ts +2 -2
- package/src/embed/search.ts +13 -12
- package/src/embed/ts-embed.spec.ts +44 -1
- package/src/embed/ts-embed.ts +14 -9
- package/src/index.ts +3 -0
- package/src/react/index.spec.tsx +6 -3
- package/src/react/index.tsx +16 -16
- package/src/tokenizedFetch.ts +1 -1
- package/src/types.ts +350 -286
- package/src/utils/graphql/answerService/answerService.spec.ts +62 -0
- package/src/utils/graphql/answerService/answerService.ts +14 -10
- package/src/utils/graphql/preview-service.ts +1 -1
- package/src/utils/processData.ts +5 -5
- package/src/utils.ts +14 -0
package/dist/tsembed-react.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.46.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.46.3 */
|
|
2
2
|
'use client';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { useRef, useCallback } from 'react';
|
|
@@ -191,7 +191,7 @@ merge.withOptions = (options, ...objects) => {
|
|
|
191
191
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
192
192
|
*/
|
|
193
193
|
/**
|
|
194
|
-
* The authentication mechanism for allowing access to
|
|
194
|
+
* The authentication mechanism for allowing access to
|
|
195
195
|
* the embedded app
|
|
196
196
|
* @group Authentication / Init
|
|
197
197
|
*/
|
|
@@ -217,6 +217,7 @@ var AuthType;
|
|
|
217
217
|
* To use this:
|
|
218
218
|
* Your SAML or OpenID provider must allow iframe redirects.
|
|
219
219
|
* For example, if you are using Okta as IdP, you can enable iframe embedding.
|
|
220
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.8.0.cl
|
|
220
221
|
* @example
|
|
221
222
|
* ```js
|
|
222
223
|
* init({
|
|
@@ -224,18 +225,17 @@ var AuthType;
|
|
|
224
225
|
* authType: AuthType.EmbeddedSSO,
|
|
225
226
|
* });
|
|
226
227
|
* ```
|
|
227
|
-
* @version: SDK: 1.15.0 | ThoughtSpot: 8.8.0.cl
|
|
228
228
|
*/
|
|
229
229
|
AuthType["EmbeddedSSO"] = "EmbeddedSSO";
|
|
230
230
|
/**
|
|
231
|
-
* SSO using SAML
|
|
232
|
-
* @deprecated
|
|
231
|
+
* SSO using SAML, Use {@link SAMLRedirect} instead
|
|
232
|
+
* @deprecated This option is deprecated.
|
|
233
233
|
* @hidden
|
|
234
234
|
*/
|
|
235
235
|
AuthType["SSO"] = "SSO_SAML";
|
|
236
236
|
/**
|
|
237
|
-
* SSO using SAML
|
|
238
|
-
* @deprecated
|
|
237
|
+
* SSO using SAML, Use {@link SAMLRedirect} instead
|
|
238
|
+
* @deprecated This option is deprecated.
|
|
239
239
|
* @hidden
|
|
240
240
|
*/
|
|
241
241
|
AuthType["SAML"] = "SSO_SAML";
|
|
@@ -286,8 +286,9 @@ var AuthType;
|
|
|
286
286
|
AuthType["SAMLRedirect"] = "SSO_SAML";
|
|
287
287
|
/**
|
|
288
288
|
* SSO using OIDC
|
|
289
|
+
* SSO using OIDC, Use {@link OIDCRedirect} instead
|
|
290
|
+
* @deprecated This option is deprecated.
|
|
289
291
|
* @hidden
|
|
290
|
-
* @deprecated Use {@link OIDCRedirect} instead
|
|
291
292
|
*/
|
|
292
293
|
AuthType["OIDC"] = "SSO_OIDC";
|
|
293
294
|
/**
|
|
@@ -298,8 +299,9 @@ var AuthType;
|
|
|
298
299
|
AuthType["OIDCRedirect"] = "SSO_OIDC";
|
|
299
300
|
/**
|
|
300
301
|
* Trusted authentication server
|
|
302
|
+
* Use {@link TrustedAuth} instead
|
|
303
|
+
* @deprecated This option is deprecated.
|
|
301
304
|
* @hidden
|
|
302
|
-
* @deprecated Use {@link TrustedAuth} instead
|
|
303
305
|
*/
|
|
304
306
|
AuthType["AuthServer"] = "AuthServer";
|
|
305
307
|
/**
|
|
@@ -326,6 +328,7 @@ var AuthType;
|
|
|
326
328
|
* obtained from ThoughtSpot. This uses a cookieless authentication
|
|
327
329
|
* approach, recommended to bypass the third-party cookie-blocking restriction
|
|
328
330
|
* implemented by some browsers.
|
|
331
|
+
* @version SDK: 1.22.0 | ThoughtSpot: 9.3.0.cl, 9.5.1.sw
|
|
329
332
|
* @example
|
|
330
333
|
* ```js
|
|
331
334
|
* init({
|
|
@@ -336,8 +339,8 @@ var AuthType;
|
|
|
336
339
|
* .then((response) => response.json())
|
|
337
340
|
* .then((data) => data.token);
|
|
338
341
|
* }
|
|
342
|
+
* });
|
|
339
343
|
* ```
|
|
340
|
-
* @version SDK: 1.22.0| ThoughtSpot: 9.3.0.cl, 9.5.1.sw
|
|
341
344
|
*/
|
|
342
345
|
AuthType["TrustedAuthTokenCookieless"] = "AuthServerCookieless";
|
|
343
346
|
/**
|
|
@@ -358,43 +361,43 @@ var HomeLeftNavItem;
|
|
|
358
361
|
/**
|
|
359
362
|
* The *Search data* option in
|
|
360
363
|
* the *Insights* left navigation panel.
|
|
361
|
-
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
364
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
362
365
|
*/
|
|
363
366
|
HomeLeftNavItem["SearchData"] = "search-data";
|
|
364
367
|
/**
|
|
365
368
|
* The *Home* menu option in
|
|
366
369
|
* the *Insights* left navigation panel.
|
|
367
|
-
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
370
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
368
371
|
*/
|
|
369
372
|
HomeLeftNavItem["Home"] = "insights-home";
|
|
370
373
|
/**
|
|
371
374
|
* The *Liveboards* menu option in
|
|
372
375
|
* the *Insights* left navigation panel.
|
|
373
|
-
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
376
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
374
377
|
*/
|
|
375
378
|
HomeLeftNavItem["Liveboards"] = "liveboards";
|
|
376
379
|
/**
|
|
377
380
|
* The *Answers* menu option in
|
|
378
381
|
* the *Insights* left navigation panel.
|
|
379
|
-
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
382
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
380
383
|
*/
|
|
381
384
|
HomeLeftNavItem["Answers"] = "answers";
|
|
382
385
|
/**
|
|
383
386
|
* The *Monitor subscriptions* menu option in
|
|
384
387
|
* the *Insights* left navigation panel.
|
|
385
|
-
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
388
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
386
389
|
*/
|
|
387
390
|
HomeLeftNavItem["MonitorSubscription"] = "monitor-alerts";
|
|
388
391
|
/**
|
|
389
392
|
* The *SpotIQ analysis* menu option in
|
|
390
393
|
* the *Insights* left navigation panel.
|
|
391
|
-
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
394
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
392
395
|
*/
|
|
393
396
|
HomeLeftNavItem["SpotIQAnalysis"] = "spotiq-analysis";
|
|
394
397
|
/**
|
|
395
398
|
* The *Liveboard schedules* menu option in
|
|
396
399
|
* the *Insights* left navigation panel.
|
|
397
|
-
* @version SDK: 1.34.0| ThoughtSpot: 10.3.0.cl
|
|
400
|
+
* @version SDK: 1.34.0 | ThoughtSpot: 10.3.0.cl
|
|
398
401
|
*/
|
|
399
402
|
HomeLeftNavItem["LiveboardSchedules"] = "liveboard-schedules";
|
|
400
403
|
/**
|
|
@@ -500,7 +503,7 @@ var HomepageModule;
|
|
|
500
503
|
*/
|
|
501
504
|
HomepageModule["Search"] = "SEARCH";
|
|
502
505
|
/**
|
|
503
|
-
*
|
|
506
|
+
* KPI watchlist module
|
|
504
507
|
*/
|
|
505
508
|
HomepageModule["Watchlist"] = "WATCHLIST";
|
|
506
509
|
/**
|
|
@@ -532,7 +535,8 @@ var ListPageColumns;
|
|
|
532
535
|
*/
|
|
533
536
|
ListPageColumns["Favorites"] = "FAVOURITE";
|
|
534
537
|
/**
|
|
535
|
-
*
|
|
538
|
+
* Favourite Use {@link ListPageColumns.Favorites} instead.
|
|
539
|
+
* @deprecated This option is deprecated.
|
|
536
540
|
*/
|
|
537
541
|
ListPageColumns["Favourite"] = "FAVOURITE";
|
|
538
542
|
/**
|
|
@@ -600,13 +604,13 @@ var EmbedEvent;
|
|
|
600
604
|
/**
|
|
601
605
|
* Rendering has initialized.
|
|
602
606
|
* @example
|
|
603
|
-
|
|
607
|
+
* ```js
|
|
604
608
|
* liveboardEmbed.on(EmbedEvent.Init, showLoader)
|
|
605
609
|
* //show a loader
|
|
606
610
|
* function showLoader() {
|
|
607
611
|
* document.getElementById("loader");
|
|
608
612
|
* }
|
|
609
|
-
|
|
613
|
+
* ```
|
|
610
614
|
* @returns timestamp - The timestamp when the event was generated.
|
|
611
615
|
*/
|
|
612
616
|
EmbedEvent["Init"] = "init";
|
|
@@ -614,11 +618,11 @@ var EmbedEvent;
|
|
|
614
618
|
* Authentication has either succeeded or failed.
|
|
615
619
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
616
620
|
* @example
|
|
617
|
-
|
|
621
|
+
* ```js
|
|
618
622
|
* appEmbed.on(EmbedEvent.AuthInit, payload => {
|
|
619
623
|
* console.log('AuthInit', payload);
|
|
620
624
|
* })
|
|
621
|
-
|
|
625
|
+
* ```
|
|
622
626
|
* @returns isLoggedIn - A Boolean specifying whether authentication was successful.
|
|
623
627
|
*/
|
|
624
628
|
EmbedEvent["AuthInit"] = "authInit";
|
|
@@ -627,13 +631,13 @@ var EmbedEvent;
|
|
|
627
631
|
* @returns timestamp - The timestamp when the event was generated.
|
|
628
632
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
629
633
|
* @example
|
|
630
|
-
|
|
634
|
+
* ```js
|
|
631
635
|
* liveboardEmbed.on(EmbedEvent.Load, hideLoader)
|
|
632
636
|
* //hide loader
|
|
633
637
|
* function hideLoader() {
|
|
634
638
|
* document.getElementById("loader");
|
|
635
639
|
* }
|
|
636
|
-
|
|
640
|
+
* ```
|
|
637
641
|
*/
|
|
638
642
|
EmbedEvent["Load"] = "load";
|
|
639
643
|
/**
|
|
@@ -642,11 +646,11 @@ var EmbedEvent;
|
|
|
642
646
|
* @return data - Answer of Liveboard data
|
|
643
647
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
644
648
|
* @example
|
|
645
|
-
|
|
649
|
+
* ```js
|
|
646
650
|
* liveboardEmbed.on(EmbedEvent.Data, payload => {
|
|
647
651
|
* console.log('data', payload);
|
|
648
652
|
* })
|
|
649
|
-
|
|
653
|
+
* ```
|
|
650
654
|
* @important
|
|
651
655
|
*/
|
|
652
656
|
EmbedEvent["Data"] = "data";
|
|
@@ -654,9 +658,9 @@ var EmbedEvent;
|
|
|
654
658
|
* Search query has been updated by the user.
|
|
655
659
|
* @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
|
|
656
660
|
* @example
|
|
657
|
-
|
|
661
|
+
* ```js
|
|
658
662
|
* searchEmbed.on(EmbedEvent.QueryChanged, payload => console.log('data', payload))
|
|
659
|
-
|
|
663
|
+
* ```
|
|
660
664
|
*/
|
|
661
665
|
EmbedEvent["QueryChanged"] = "queryChanged";
|
|
662
666
|
/**
|
|
@@ -666,7 +670,7 @@ var EmbedEvent;
|
|
|
666
670
|
* @returns drillDownColumns - The columns on which drill down was performed
|
|
667
671
|
* @returns nonFilteredColumns - The columns that were not filtered
|
|
668
672
|
* @example
|
|
669
|
-
|
|
673
|
+
* ```js
|
|
670
674
|
* searchEmbed.on(EmbedEvent.DrillDown, {
|
|
671
675
|
* points: {
|
|
672
676
|
* clickedPoint,
|
|
@@ -674,12 +678,12 @@ var EmbedEvent;
|
|
|
674
678
|
* },
|
|
675
679
|
* autoDrillDown: true,
|
|
676
680
|
* })
|
|
677
|
-
|
|
681
|
+
* ```
|
|
678
682
|
* In this example, `VizPointDoubleClick` event is used for
|
|
679
683
|
* triggering the `DrillDown` event when an area or specific
|
|
680
684
|
* data point on a table or chart is double-clicked.
|
|
681
685
|
* @example
|
|
682
|
-
|
|
686
|
+
* ```js
|
|
683
687
|
* searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
684
688
|
* console.log(payload);
|
|
685
689
|
* const clickedPoint = payload.data.clickedPoint;
|
|
@@ -693,7 +697,7 @@ var EmbedEvent;
|
|
|
693
697
|
* autoDrillDown: true,
|
|
694
698
|
* })
|
|
695
699
|
* })
|
|
696
|
-
|
|
700
|
+
* ```
|
|
697
701
|
*/
|
|
698
702
|
EmbedEvent["Drilldown"] = "drillDown";
|
|
699
703
|
/**
|
|
@@ -818,13 +822,13 @@ var EmbedEvent;
|
|
|
818
822
|
* The ThoughtSpot authentication session has expired.
|
|
819
823
|
* @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
|
|
820
824
|
* @example
|
|
821
|
-
|
|
825
|
+
* ```js
|
|
822
826
|
* appEmbed.on(EmbedEvent.AuthExpire, showAuthExpired)
|
|
823
827
|
* //show auth expired banner
|
|
824
828
|
* function showAuthExpired() {
|
|
825
829
|
* document.getElementById("authExpiredBanner");
|
|
826
830
|
* }
|
|
827
|
-
|
|
831
|
+
* ```
|
|
828
832
|
*/
|
|
829
833
|
EmbedEvent["AuthExpire"] = "ThoughtspotAuthExpired";
|
|
830
834
|
/**
|
|
@@ -859,22 +863,22 @@ var EmbedEvent;
|
|
|
859
863
|
* Applicable to `SearchBarEmbed` only.
|
|
860
864
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
861
865
|
* @example
|
|
862
|
-
|
|
866
|
+
* ```js
|
|
863
867
|
* searchbarEmbed.on(EmbedEvent.GetDataClick)
|
|
864
868
|
* .then(data => {
|
|
865
869
|
* console.log('Answer Data:', data);
|
|
866
870
|
* })
|
|
867
|
-
|
|
871
|
+
* ```
|
|
868
872
|
*/
|
|
869
873
|
EmbedEvent["GetDataClick"] = "getDataClick";
|
|
870
874
|
/**
|
|
871
875
|
* Detects the route change.
|
|
872
876
|
* @version SDK: 1.7.0 | ThoughtSpot: 8.0.0.cl, 8.4.1.sw
|
|
873
877
|
* @example
|
|
874
|
-
|
|
878
|
+
* ```js
|
|
875
879
|
* searchEmbed.on(EmbedEvent.RouteChange, payload =>
|
|
876
880
|
* console.log('data', payload))
|
|
877
|
-
|
|
881
|
+
* ```
|
|
878
882
|
*/
|
|
879
883
|
EmbedEvent["RouteChange"] = "ROUTE_CHANGE";
|
|
880
884
|
/**
|
|
@@ -884,12 +888,12 @@ var EmbedEvent;
|
|
|
884
888
|
EmbedEvent["V1Data"] = "exportVizDataToParent";
|
|
885
889
|
/**
|
|
886
890
|
* Emitted when the embed does not have cookie access. This happens
|
|
887
|
-
* when
|
|
888
|
-
*
|
|
891
|
+
* when third-party cookies are blocked by Safari or other
|
|
892
|
+
* web browsers. `NoCookieAccess` can trigger.
|
|
889
893
|
* @example
|
|
890
|
-
|
|
894
|
+
* ```js
|
|
891
895
|
* appEmbed.on(EmbedEvent.NoCookieAccess)
|
|
892
|
-
|
|
896
|
+
* ```
|
|
893
897
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1.sw
|
|
894
898
|
*/
|
|
895
899
|
EmbedEvent["NoCookieAccess"] = "noCookieAccess";
|
|
@@ -903,22 +907,22 @@ var EmbedEvent;
|
|
|
903
907
|
* Emitted when any modal is opened in the app
|
|
904
908
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
905
909
|
* @example
|
|
906
|
-
|
|
910
|
+
* ```js
|
|
907
911
|
* appEmbed.on(EmbedEvent.DialogOpen, payload => {
|
|
908
912
|
* console.log('dialog open', payload);
|
|
909
913
|
* })
|
|
910
|
-
|
|
914
|
+
* ```
|
|
911
915
|
*/
|
|
912
916
|
EmbedEvent["DialogOpen"] = "dialog-open";
|
|
913
917
|
/**
|
|
914
918
|
* Emitted when any modal is closed in the app
|
|
915
919
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
916
920
|
* @example
|
|
917
|
-
|
|
921
|
+
* ```js
|
|
918
922
|
* appEmbed.on(EmbedEvent.DialogClose, payload => {
|
|
919
923
|
* console.log('dialog close', payload);
|
|
920
924
|
* })
|
|
921
|
-
|
|
925
|
+
* ```
|
|
922
926
|
*/
|
|
923
927
|
EmbedEvent["DialogClose"] = "dialog-close";
|
|
924
928
|
/**
|
|
@@ -927,39 +931,39 @@ var EmbedEvent;
|
|
|
927
931
|
* other events on the rendered Liveboard.
|
|
928
932
|
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
929
933
|
* @example
|
|
930
|
-
|
|
934
|
+
* ```js
|
|
931
935
|
* liveboardEmbed.on(EmbedEvent.LiveboardRendered, payload => {
|
|
932
936
|
console.log('Liveboard is rendered', payload);
|
|
933
937
|
})
|
|
934
|
-
|
|
938
|
+
* ```
|
|
935
939
|
* The following example shows how to trigger
|
|
936
940
|
* `SetVisibleVizs` event using LiveboardRendered embed event:
|
|
937
941
|
* @example
|
|
938
|
-
|
|
942
|
+
* ```js
|
|
939
943
|
* const embedRef = useEmbedRef();
|
|
940
944
|
* const onLiveboardRendered = () => {
|
|
941
945
|
* embed.trigger(HostEvent.SetVisibleVizs, ['viz1', 'viz2']);
|
|
942
946
|
* };
|
|
943
|
-
|
|
947
|
+
* ```
|
|
944
948
|
*/
|
|
945
949
|
EmbedEvent["LiveboardRendered"] = "PinboardRendered";
|
|
946
950
|
/**
|
|
947
951
|
* Emits all events.
|
|
948
|
-
* @
|
|
952
|
+
* @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
949
953
|
* @example
|
|
950
|
-
|
|
954
|
+
* ```js
|
|
951
955
|
* appEmbed.on(EmbedEvent.ALL, payload => {
|
|
952
956
|
* console.log('Embed Events', payload)
|
|
953
957
|
* })
|
|
954
|
-
|
|
958
|
+
* ```
|
|
955
959
|
*/
|
|
956
960
|
EmbedEvent["ALL"] = "*";
|
|
957
961
|
/**
|
|
958
962
|
* Emitted when an Answer is saved in the app.
|
|
959
963
|
* Use start:true to subscribe to when save is initiated, or end:true to subscribe to when save is completed. Default is end:true.
|
|
960
|
-
* @
|
|
964
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
961
965
|
* @example
|
|
962
|
-
|
|
966
|
+
* ```js
|
|
963
967
|
* //Emit when action starts
|
|
964
968
|
* searchEmbed.on(EmbedEvent.Save, payload => {
|
|
965
969
|
* console.log('Save', payload)
|
|
@@ -970,7 +974,7 @@ var EmbedEvent;
|
|
|
970
974
|
* searchEmbed.on(EmbedEvent.Save, payload => {
|
|
971
975
|
* console.log('Save', payload)
|
|
972
976
|
* })
|
|
973
|
-
|
|
977
|
+
* ```
|
|
974
978
|
*/
|
|
975
979
|
EmbedEvent["Save"] = "save";
|
|
976
980
|
/**
|
|
@@ -982,106 +986,112 @@ var EmbedEvent;
|
|
|
982
986
|
* `EmbedEvent.DownloadAsCSV`, or `EmbedEvent.DownloadAsXLSX`
|
|
983
987
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
984
988
|
* @example
|
|
985
|
-
|
|
989
|
+
* ```js
|
|
986
990
|
* liveboardEmbed.on(EmbedEvent.Download, {
|
|
987
991
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
988
992
|
* })
|
|
989
|
-
|
|
993
|
+
* ```
|
|
990
994
|
*/
|
|
991
995
|
EmbedEvent["Download"] = "download";
|
|
992
996
|
/**
|
|
993
997
|
* Emitted when the download action is triggered on an Answer.
|
|
994
|
-
* Use start:true to subscribe to when download is initiated, or end:true to
|
|
998
|
+
* Use start:true to subscribe to when download is initiated, or end:true to
|
|
999
|
+
* subscribe to when download is completed. Default is end:true.
|
|
995
1000
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
|
|
996
1001
|
* @example
|
|
997
|
-
|
|
1002
|
+
* ```js
|
|
998
1003
|
* //emit when action starts
|
|
999
1004
|
* searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
|
|
1000
1005
|
* console.log('download PNG', payload)}, {start: true })
|
|
1001
1006
|
* //emit when action ends
|
|
1002
1007
|
* searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
|
|
1003
1008
|
* console.log('download PNG', payload)})
|
|
1004
|
-
|
|
1009
|
+
* ```
|
|
1005
1010
|
*/
|
|
1006
1011
|
EmbedEvent["DownloadAsPng"] = "downloadAsPng";
|
|
1007
1012
|
/**
|
|
1008
1013
|
* Emitted when the Download as PDF action is triggered on an Answer
|
|
1009
|
-
* Use start:true to subscribe to when download as PDF is initiated, or end:true to
|
|
1014
|
+
* Use start:true to subscribe to when download as PDF is initiated, or end:true to
|
|
1015
|
+
* subscribe to when download as PDF is completed. Default is end:true.
|
|
1010
1016
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1011
1017
|
* @example
|
|
1012
|
-
|
|
1018
|
+
* ```js
|
|
1013
1019
|
* //emit when action starts
|
|
1014
1020
|
* searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
|
|
1015
1021
|
* console.log('download PDF', payload)}, {start: true })
|
|
1016
1022
|
* //emit when action ends
|
|
1017
1023
|
* searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
|
|
1018
1024
|
* console.log('download PDF', payload)})
|
|
1019
|
-
|
|
1025
|
+
* ```
|
|
1020
1026
|
*/
|
|
1021
1027
|
EmbedEvent["DownloadAsPdf"] = "downloadAsPdf";
|
|
1022
1028
|
/**
|
|
1023
1029
|
* Emitted when the Download as CSV action is triggered on an Answer.
|
|
1024
|
-
* Use start:true to subscribe to when download as CSV is initiated, or end:true to
|
|
1030
|
+
* Use start:true to subscribe to when download as CSV is initiated, or end:true to
|
|
1031
|
+
* subscribe to when download as CSV is completed. Default is end:true.
|
|
1025
1032
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1026
1033
|
* @example
|
|
1027
|
-
|
|
1034
|
+
* ```js
|
|
1028
1035
|
* //emit when action starts
|
|
1029
1036
|
* searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
|
|
1030
1037
|
* console.log('download CSV', payload)}, {start: true })
|
|
1031
1038
|
* //emit when action ends
|
|
1032
1039
|
* searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
|
|
1033
1040
|
* console.log('download CSV', payload)})
|
|
1034
|
-
|
|
1041
|
+
* ```
|
|
1035
1042
|
*/
|
|
1036
1043
|
EmbedEvent["DownloadAsCsv"] = "downloadAsCsv";
|
|
1037
1044
|
/**
|
|
1038
1045
|
* Emitted when the Download as XLSX action is triggered on an Answer.
|
|
1039
|
-
* Use start:true to subscribe to when download as XLSX is initiated, or end:true to
|
|
1046
|
+
* Use start:true to subscribe to when download as XLSX is initiated, or end:true to
|
|
1047
|
+
* subscribe to when download as XLSX is completed. Default is end:true.
|
|
1040
1048
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1041
1049
|
* @example
|
|
1042
|
-
|
|
1050
|
+
* ```js
|
|
1043
1051
|
* //emit when action starts
|
|
1044
1052
|
* searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
|
|
1045
1053
|
* console.log('download Xlsx', payload)}, { start: true })
|
|
1046
1054
|
* //emit when action ends
|
|
1047
1055
|
* searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
|
|
1048
1056
|
* console.log('download Xlsx', payload)})
|
|
1049
|
-
|
|
1057
|
+
* ```
|
|
1050
1058
|
*/
|
|
1051
1059
|
EmbedEvent["DownloadAsXlsx"] = "downloadAsXlsx";
|
|
1052
1060
|
/**
|
|
1053
1061
|
* Emitted when an Answer is deleted in the app
|
|
1054
|
-
* Use start:true to subscribe to when delete is initiated, or end:true to subscribe
|
|
1062
|
+
* Use start:true to subscribe to when delete is initiated, or end:true to subscribe
|
|
1063
|
+
* to when delete is completed. Default is end:true.
|
|
1055
1064
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1056
1065
|
* @example
|
|
1057
|
-
|
|
1066
|
+
* ```js
|
|
1058
1067
|
* //emit when action starts
|
|
1059
1068
|
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
1060
1069
|
* console.log('delete answer', payload)}, {start: true })
|
|
1061
1070
|
* //trigger when action is completed
|
|
1062
1071
|
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
1063
1072
|
* console.log('delete answer', payload)})
|
|
1064
|
-
|
|
1073
|
+
* ```
|
|
1065
1074
|
*/
|
|
1066
1075
|
EmbedEvent["AnswerDelete"] = "answerDelete";
|
|
1067
1076
|
/**
|
|
1068
1077
|
* Emitted when the AI Highlights action is triggered on a Liveboard
|
|
1069
1078
|
* @version SDK: 1.44.0 | ThoughtSpot: 10.15.0.cl
|
|
1070
1079
|
* @example
|
|
1071
|
-
|
|
1080
|
+
* ```js
|
|
1072
1081
|
* liveboardEmbed.on(EmbedEvent.AIHighlights, (payload) => {
|
|
1073
1082
|
* console.log('AI Highlights', payload);
|
|
1074
1083
|
* })
|
|
1075
|
-
|
|
1084
|
+
* ```
|
|
1076
1085
|
*/
|
|
1077
1086
|
EmbedEvent["AIHighlights"] = "AIHighlights";
|
|
1078
1087
|
/**
|
|
1079
1088
|
* Emitted when a user initiates the Pin action to
|
|
1080
1089
|
* add an Answer to a Liveboard.
|
|
1081
|
-
* Use start:true to subscribe to when pin is initiated, or end:true to subscribe to
|
|
1090
|
+
* Use start:true to subscribe to when pin is initiated, or end:true to subscribe to
|
|
1091
|
+
* when pin is completed. Default is end:true.
|
|
1082
1092
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1083
1093
|
* @example
|
|
1084
|
-
|
|
1094
|
+
* ```js
|
|
1085
1095
|
* //emit when action starts
|
|
1086
1096
|
* searchEmbed.on(EmbedEvent.Pin, payload => {
|
|
1087
1097
|
* console.log('pin', payload)
|
|
@@ -1092,14 +1102,14 @@ var EmbedEvent;
|
|
|
1092
1102
|
* searchEmbed.on(EmbedEvent.Pin, payload => {
|
|
1093
1103
|
* console.log('pin', payload)
|
|
1094
1104
|
* })
|
|
1095
|
-
|
|
1105
|
+
* ```
|
|
1096
1106
|
*/
|
|
1097
1107
|
EmbedEvent["Pin"] = "pin";
|
|
1098
1108
|
/**
|
|
1099
1109
|
* Emitted when SpotIQ analysis is triggered
|
|
1100
1110
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1101
1111
|
* @example
|
|
1102
|
-
|
|
1112
|
+
* ```js
|
|
1103
1113
|
* //emit when action starts
|
|
1104
1114
|
* searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
|
|
1105
1115
|
* console.log('SpotIQAnalyze', payload)
|
|
@@ -1110,14 +1120,14 @@ var EmbedEvent;
|
|
|
1110
1120
|
* searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
|
|
1111
1121
|
* console.log('SpotIQ analyze', payload)
|
|
1112
1122
|
* })
|
|
1113
|
-
|
|
1123
|
+
* ```
|
|
1114
1124
|
*/
|
|
1115
1125
|
EmbedEvent["SpotIQAnalyze"] = "spotIQAnalyze";
|
|
1116
1126
|
/**
|
|
1117
1127
|
* Emitted when a user shares an object with another user or group
|
|
1118
1128
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1119
1129
|
* @example
|
|
1120
|
-
|
|
1130
|
+
* ```js
|
|
1121
1131
|
* //emit when action starts
|
|
1122
1132
|
* searchEmbed.on(EmbedEvent.Share, payload => {
|
|
1123
1133
|
* console.log('Share', payload)
|
|
@@ -1128,7 +1138,7 @@ var EmbedEvent;
|
|
|
1128
1138
|
* searchEmbed.on(EmbedEvent.Share, payload => {
|
|
1129
1139
|
* console.log('Share', payload)
|
|
1130
1140
|
* })
|
|
1131
|
-
|
|
1141
|
+
* ```
|
|
1132
1142
|
*/
|
|
1133
1143
|
EmbedEvent["Share"] = "share";
|
|
1134
1144
|
/**
|
|
@@ -1136,11 +1146,11 @@ var EmbedEvent;
|
|
|
1136
1146
|
* data on a chart or table.
|
|
1137
1147
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1138
1148
|
* @example
|
|
1139
|
-
|
|
1149
|
+
* ```js
|
|
1140
1150
|
* appEmbed.on(EmbedEvent.DrillInclude, payload => {
|
|
1141
1151
|
* console.log('Drill include', payload);
|
|
1142
1152
|
* })
|
|
1143
|
-
|
|
1153
|
+
* ```
|
|
1144
1154
|
*/
|
|
1145
1155
|
EmbedEvent["DrillInclude"] = "context-menu-item-include";
|
|
1146
1156
|
/**
|
|
@@ -1148,22 +1158,22 @@ var EmbedEvent;
|
|
|
1148
1158
|
* data on a chart or table
|
|
1149
1159
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1150
1160
|
* @example
|
|
1151
|
-
|
|
1161
|
+
* ```js
|
|
1152
1162
|
* appEmbed.on(EmbedEvent.DrillExclude, payload => {
|
|
1153
1163
|
* console.log('Drill exclude', payload);
|
|
1154
1164
|
* })
|
|
1155
|
-
|
|
1165
|
+
* ```
|
|
1156
1166
|
*/
|
|
1157
1167
|
EmbedEvent["DrillExclude"] = "context-menu-item-exclude";
|
|
1158
1168
|
/**
|
|
1159
1169
|
* Emitted when a column value is copied in the embedded app.
|
|
1160
1170
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1161
1171
|
* @example
|
|
1162
|
-
|
|
1163
|
-
*
|
|
1172
|
+
* ```js
|
|
1173
|
+
* searchEmbed.on(EmbedEvent.CopyToClipboard, payload => {
|
|
1164
1174
|
* console.log('copy to clipboard', payload);
|
|
1165
1175
|
* })
|
|
1166
|
-
|
|
1176
|
+
* ```
|
|
1167
1177
|
*/
|
|
1168
1178
|
EmbedEvent["CopyToClipboard"] = "context-menu-item-copy-to-clipboard";
|
|
1169
1179
|
/**
|
|
@@ -1171,10 +1181,10 @@ var EmbedEvent;
|
|
|
1171
1181
|
* embedded Liveboard.
|
|
1172
1182
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1173
1183
|
* @example
|
|
1174
|
-
|
|
1184
|
+
* ```js
|
|
1175
1185
|
* liveboardEmbed.on(EmbedEvent.UpdateTML)
|
|
1176
1186
|
* })
|
|
1177
|
-
|
|
1187
|
+
* ```
|
|
1178
1188
|
*/
|
|
1179
1189
|
EmbedEvent["UpdateTML"] = "updateTSL";
|
|
1180
1190
|
/**
|
|
@@ -1182,75 +1192,77 @@ var EmbedEvent;
|
|
|
1182
1192
|
* on an embedded Liveboard.
|
|
1183
1193
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1184
1194
|
* @example
|
|
1185
|
-
|
|
1195
|
+
* ```js
|
|
1186
1196
|
* appEmbed.on(EmbedEvent.EditTML, payload => {
|
|
1187
1197
|
* console.log('Edit TML', payload);
|
|
1188
1198
|
* })
|
|
1189
|
-
|
|
1199
|
+
* ```
|
|
1190
1200
|
*/
|
|
1191
1201
|
EmbedEvent["EditTML"] = "editTSL";
|
|
1192
1202
|
/**
|
|
1193
1203
|
* Emitted when the **Export TML** action is triggered on an
|
|
1194
1204
|
* an embedded object in the app
|
|
1195
|
-
* Use start:true to subscribe to when export is initiated, or end:true to subscribe
|
|
1205
|
+
* Use start:true to subscribe to when export is initiated, or end:true to subscribe
|
|
1206
|
+
* to when export is completed. Default is end:true.
|
|
1196
1207
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1197
1208
|
* @example
|
|
1198
|
-
|
|
1209
|
+
* ```js
|
|
1199
1210
|
* //emit when action starts
|
|
1200
1211
|
* searchEmbed.on(EmbedEvent.ExportTML, payload => {
|
|
1201
1212
|
* console.log('Export TML', payload)}, { start: true })
|
|
1202
1213
|
* //emit when action ends
|
|
1203
1214
|
* searchEmbed.on(EmbedEvent.ExportTML, payload => {
|
|
1204
1215
|
* console.log('Export TML', payload)})
|
|
1205
|
-
|
|
1216
|
+
* ```
|
|
1206
1217
|
*/
|
|
1207
1218
|
EmbedEvent["ExportTML"] = "exportTSL";
|
|
1208
1219
|
/**
|
|
1209
1220
|
* Emitted when an Answer is saved as a View.
|
|
1210
1221
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1211
1222
|
* @example
|
|
1212
|
-
|
|
1223
|
+
* ```js
|
|
1213
1224
|
* appEmbed.on(EmbedEvent.SaveAsView, payload => {
|
|
1214
1225
|
* console.log('View', payload);
|
|
1215
1226
|
* })
|
|
1216
|
-
|
|
1227
|
+
* ```
|
|
1217
1228
|
*/
|
|
1218
1229
|
EmbedEvent["SaveAsView"] = "saveAsView";
|
|
1219
1230
|
/**
|
|
1220
1231
|
* Emitted when the user creates a copy of an Answer.
|
|
1221
|
-
* Use start:true to subscribe to when copy and edit is initiated, or end:true to
|
|
1232
|
+
* Use start:true to subscribe to when copy and edit is initiated, or end:true to
|
|
1233
|
+
* subscribe to when copy and edit is completed. Default is end:true.
|
|
1222
1234
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1223
1235
|
* @example
|
|
1224
|
-
|
|
1236
|
+
* ```js
|
|
1225
1237
|
* //emit when action starts
|
|
1226
1238
|
* appEmbed.on(EmbedEvent.CopyAEdit, payload => {
|
|
1227
1239
|
* console.log('Copy and edit', payload)}, {start: true })
|
|
1228
1240
|
* //emit when action ends
|
|
1229
1241
|
* appEmbed.on(EmbedEvent.CopyAEdit, payload => {
|
|
1230
1242
|
* console.log('Copy and edit', payload)})
|
|
1231
|
-
|
|
1243
|
+
* ```
|
|
1232
1244
|
*/
|
|
1233
1245
|
EmbedEvent["CopyAEdit"] = "copyAEdit";
|
|
1234
1246
|
/**
|
|
1235
1247
|
* Emitted when a user clicks *Show underlying data* on an Answer.
|
|
1236
1248
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1237
1249
|
* @example
|
|
1238
|
-
|
|
1250
|
+
* ```js
|
|
1239
1251
|
* liveboardEmbed.on(EmbedEvent.ShowUnderlyingData, payload => {
|
|
1240
1252
|
* console.log('show data', payload);
|
|
1241
1253
|
* })
|
|
1242
|
-
|
|
1254
|
+
* ```
|
|
1243
1255
|
*/
|
|
1244
1256
|
EmbedEvent["ShowUnderlyingData"] = "showUnderlyingData";
|
|
1245
1257
|
/**
|
|
1246
1258
|
* Emitted when an Answer is switched to a chart or table view.
|
|
1247
1259
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1248
1260
|
* @example
|
|
1249
|
-
|
|
1261
|
+
* ```js
|
|
1250
1262
|
* searchEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
|
|
1251
1263
|
* console.log('switch view', payload);
|
|
1252
1264
|
* })
|
|
1253
|
-
|
|
1265
|
+
* ```
|
|
1254
1266
|
*/
|
|
1255
1267
|
EmbedEvent["AnswerChartSwitcher"] = "answerChartSwitcher";
|
|
1256
1268
|
/**
|
|
@@ -1267,118 +1279,118 @@ var EmbedEvent;
|
|
|
1267
1279
|
* Emitted when a user clicks **Show Liveboard details** on a Liveboard
|
|
1268
1280
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1269
1281
|
* @example
|
|
1270
|
-
|
|
1282
|
+
* ```js
|
|
1271
1283
|
* liveboardEmbed.on(EmbedEvent.LiveboardInfo, payload => {
|
|
1272
1284
|
* console.log('Liveboard details', payload);
|
|
1273
1285
|
* })
|
|
1274
|
-
|
|
1286
|
+
* ```
|
|
1275
1287
|
*/
|
|
1276
1288
|
EmbedEvent["LiveboardInfo"] = "pinboardInfo";
|
|
1277
1289
|
/**
|
|
1278
1290
|
* Emitted when a user clicks on the Favorite icon on a Liveboard
|
|
1279
1291
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1280
1292
|
* @example
|
|
1281
|
-
|
|
1293
|
+
* ```js
|
|
1282
1294
|
* liveboardEmbed.on(EmbedEvent.AddToFavorites, payload => {
|
|
1283
1295
|
* console.log('favorites', payload);
|
|
1284
1296
|
* })
|
|
1285
|
-
|
|
1297
|
+
* ```
|
|
1286
1298
|
*/
|
|
1287
1299
|
EmbedEvent["AddToFavorites"] = "addToFavorites";
|
|
1288
1300
|
/**
|
|
1289
1301
|
* Emitted when a user clicks **Schedule** on a Liveboard
|
|
1290
1302
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1291
1303
|
* @example
|
|
1292
|
-
|
|
1304
|
+
* ```js
|
|
1293
1305
|
* liveboardEmbed.on(EmbedEvent.Schedule, payload => {
|
|
1294
|
-
* console.log(
|
|
1306
|
+
* console.log('Liveboard schedule', payload);
|
|
1295
1307
|
* })
|
|
1296
|
-
|
|
1308
|
+
* ```
|
|
1297
1309
|
*/
|
|
1298
1310
|
EmbedEvent["Schedule"] = "subscription";
|
|
1299
1311
|
/**
|
|
1300
1312
|
* Emitted when a user clicks **Edit** on a Liveboard or visualization
|
|
1301
1313
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1302
1314
|
* @example
|
|
1303
|
-
|
|
1315
|
+
* ```js
|
|
1304
1316
|
* liveboardEmbed.on(EmbedEvent.Edit, payload => {
|
|
1305
|
-
* console.log(
|
|
1317
|
+
* console.log('Liveboard edit', payload);
|
|
1306
1318
|
* })
|
|
1307
|
-
|
|
1319
|
+
* ```
|
|
1308
1320
|
*/
|
|
1309
1321
|
EmbedEvent["Edit"] = "edit";
|
|
1310
1322
|
/**
|
|
1311
1323
|
* Emitted when a user clicks *Make a copy* on a Liveboard
|
|
1312
1324
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1313
1325
|
* @example
|
|
1314
|
-
|
|
1326
|
+
* ```js
|
|
1315
1327
|
* liveboardEmbed.on(EmbedEvent.MakeACopy, payload => {
|
|
1316
|
-
* console.log(
|
|
1328
|
+
* console.log('Copy', payload);
|
|
1317
1329
|
* })
|
|
1318
|
-
|
|
1330
|
+
* ```
|
|
1319
1331
|
*/
|
|
1320
1332
|
EmbedEvent["MakeACopy"] = "makeACopy";
|
|
1321
1333
|
/**
|
|
1322
1334
|
* Emitted when a user clicks **Present** on a Liveboard or visualization
|
|
1323
1335
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1324
1336
|
* @example
|
|
1325
|
-
|
|
1337
|
+
* ```js
|
|
1326
1338
|
* liveboardEmbed.on(EmbedEvent.Present)
|
|
1327
|
-
|
|
1339
|
+
* ```
|
|
1328
1340
|
* @example
|
|
1329
|
-
|
|
1341
|
+
* ```js
|
|
1330
1342
|
* liveboardEmbed.on(EmbedEvent.Present, {
|
|
1331
1343
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1332
1344
|
* })
|
|
1333
|
-
|
|
1345
|
+
* ```
|
|
1334
1346
|
*/
|
|
1335
1347
|
EmbedEvent["Present"] = "present";
|
|
1336
1348
|
/**
|
|
1337
1349
|
* Emitted when a user clicks **Delete** on a visualization
|
|
1338
1350
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1339
1351
|
* @example
|
|
1340
|
-
|
|
1352
|
+
* ```js
|
|
1341
1353
|
* liveboardEmbed.on(EmbedEvent.Delete,
|
|
1342
1354
|
* {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1343
|
-
|
|
1355
|
+
* ```
|
|
1344
1356
|
*/
|
|
1345
1357
|
EmbedEvent["Delete"] = "delete";
|
|
1346
1358
|
/**
|
|
1347
1359
|
* Emitted when a user clicks Manage schedules on a Liveboard
|
|
1348
1360
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1349
1361
|
* @example
|
|
1350
|
-
|
|
1362
|
+
* ```js
|
|
1351
1363
|
* liveboardEmbed.on(EmbedEvent.SchedulesList)
|
|
1352
|
-
|
|
1364
|
+
* ```
|
|
1353
1365
|
*/
|
|
1354
1366
|
EmbedEvent["SchedulesList"] = "schedule-list";
|
|
1355
1367
|
/**
|
|
1356
1368
|
* Emitted when a user clicks **Cancel** in edit mode on a Liveboard
|
|
1357
1369
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1358
1370
|
* @example
|
|
1359
|
-
|
|
1371
|
+
* ```js
|
|
1360
1372
|
* liveboardEmbed.on(EmbedEvent.Cancel)
|
|
1361
|
-
|
|
1373
|
+
* ```
|
|
1362
1374
|
*/
|
|
1363
1375
|
EmbedEvent["Cancel"] = "cancel";
|
|
1364
1376
|
/**
|
|
1365
1377
|
* Emitted when a user clicks **Explore** on a visualization
|
|
1366
1378
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1367
1379
|
* @example
|
|
1368
|
-
|
|
1380
|
+
* ```js
|
|
1369
1381
|
* liveboardEmbed.on(EmbedEvent.Explore, {
|
|
1370
1382
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1371
|
-
|
|
1383
|
+
* ```
|
|
1372
1384
|
*/
|
|
1373
1385
|
EmbedEvent["Explore"] = "explore";
|
|
1374
1386
|
/**
|
|
1375
1387
|
* Emitted when a user clicks **Copy link** action on a visualization.
|
|
1376
1388
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1377
1389
|
* @example
|
|
1378
|
-
|
|
1390
|
+
* ```js
|
|
1379
1391
|
* liveboardEmbed.on(EmbedEvent.CopyLink, {
|
|
1380
1392
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1381
|
-
|
|
1393
|
+
* ```
|
|
1382
1394
|
*/
|
|
1383
1395
|
EmbedEvent["CopyLink"] = "embedDocument";
|
|
1384
1396
|
/**
|
|
@@ -1386,21 +1398,21 @@ var EmbedEvent;
|
|
|
1386
1398
|
* visualization or Liveboard.
|
|
1387
1399
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
1388
1400
|
* @example
|
|
1389
|
-
|
|
1401
|
+
* ```js
|
|
1390
1402
|
* liveboardEmbed.on(EmbedEvent.CrossFilterChanged, {
|
|
1391
1403
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1392
|
-
|
|
1404
|
+
* ```
|
|
1393
1405
|
*/
|
|
1394
1406
|
EmbedEvent["CrossFilterChanged"] = "cross-filter-changed";
|
|
1395
1407
|
/**
|
|
1396
1408
|
* Emitted when a user right clicks on a visualization (chart or table)
|
|
1397
1409
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
1398
1410
|
* @example
|
|
1399
|
-
|
|
1411
|
+
* ```js
|
|
1400
1412
|
* LiveboardEmbed.on(EmbedEvent.VizPointRightClick, payload => {
|
|
1401
1413
|
* console.log('VizPointClick', payload)
|
|
1402
1414
|
* })
|
|
1403
|
-
|
|
1415
|
+
* ```
|
|
1404
1416
|
*/
|
|
1405
1417
|
EmbedEvent["VizPointRightClick"] = "vizPointRightClick";
|
|
1406
1418
|
/**
|
|
@@ -1414,35 +1426,35 @@ var EmbedEvent;
|
|
|
1414
1426
|
* filter details.
|
|
1415
1427
|
* @example
|
|
1416
1428
|
*
|
|
1417
|
-
|
|
1429
|
+
* ```js
|
|
1418
1430
|
* LiveboardEmbed.on(EmbedEvent.FilterChanged, (payload) => {
|
|
1419
1431
|
* console.log('payload', payload);
|
|
1420
1432
|
* })
|
|
1421
|
-
*
|
|
1433
|
+
* ```
|
|
1422
1434
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.0.sw
|
|
1423
1435
|
*/
|
|
1424
1436
|
EmbedEvent["FilterChanged"] = "filterChanged";
|
|
1425
1437
|
/**
|
|
1426
1438
|
* Emitted when a user clicks the **Go** button to initiate
|
|
1427
1439
|
* a Natural Language Search query
|
|
1428
|
-
* @version SDK
|
|
1440
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
|
|
1429
1441
|
*/
|
|
1430
1442
|
EmbedEvent["SageEmbedQuery"] = "sageEmbedQuery";
|
|
1431
1443
|
/**
|
|
1432
1444
|
* Emitted when a user selects a data source on the embedded
|
|
1433
1445
|
* Natural Language Search interface.
|
|
1434
1446
|
*
|
|
1435
|
-
* @version SDK
|
|
1447
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
|
|
1436
1448
|
*/
|
|
1437
1449
|
EmbedEvent["SageWorksheetUpdated"] = "sageWorksheetUpdated";
|
|
1438
1450
|
/**
|
|
1439
1451
|
* Emitted when a user updates a connection on the **Data** page
|
|
1440
|
-
* @version SDK
|
|
1452
|
+
* @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
1441
1453
|
*/
|
|
1442
1454
|
EmbedEvent["UpdateConnection"] = "updateConnection";
|
|
1443
1455
|
/**
|
|
1444
1456
|
* Emitted when a user updates a connection on the **Data** page
|
|
1445
|
-
* @version SDK
|
|
1457
|
+
* @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
1446
1458
|
*/
|
|
1447
1459
|
EmbedEvent["CreateConnection"] = "createConnection";
|
|
1448
1460
|
/**
|
|
@@ -1452,7 +1464,7 @@ var EmbedEvent;
|
|
|
1452
1464
|
* @returns viewId: string
|
|
1453
1465
|
* @returns liveboardId: string
|
|
1454
1466
|
* @returns isPublic: boolean
|
|
1455
|
-
* @version SDK
|
|
1467
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
|
|
1456
1468
|
*/
|
|
1457
1469
|
EmbedEvent["UpdatePersonalisedView"] = "updatePersonalisedView";
|
|
1458
1470
|
/**
|
|
@@ -1461,7 +1473,7 @@ var EmbedEvent;
|
|
|
1461
1473
|
* @returns viewId: string
|
|
1462
1474
|
* @returns liveboardId: string
|
|
1463
1475
|
* @returns isPublic: boolean
|
|
1464
|
-
* @version SDK
|
|
1476
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
|
|
1465
1477
|
*/
|
|
1466
1478
|
EmbedEvent["SavePersonalisedView"] = "savePersonalisedView";
|
|
1467
1479
|
/**
|
|
@@ -1470,19 +1482,19 @@ var EmbedEvent;
|
|
|
1470
1482
|
* @returns viewId: string
|
|
1471
1483
|
* @returns liveboardId: string
|
|
1472
1484
|
* @returns isPublic: boolean
|
|
1473
|
-
* @version SDK
|
|
1485
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
|
|
1474
1486
|
*/
|
|
1475
1487
|
EmbedEvent["ResetLiveboard"] = "resetLiveboard";
|
|
1476
1488
|
/**
|
|
1477
1489
|
* Emitted when a PersonalisedView is deleted.
|
|
1478
1490
|
* @returns views: string[]
|
|
1479
1491
|
* @returns liveboardId: string
|
|
1480
|
-
* @version SDK
|
|
1492
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
|
|
1481
1493
|
*/
|
|
1482
1494
|
EmbedEvent["DeletePersonalisedView"] = "deletePersonalisedView";
|
|
1483
1495
|
/**
|
|
1484
1496
|
* Emitted when a user creates a Worksheet.
|
|
1485
|
-
* @version SDK
|
|
1497
|
+
* @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
1486
1498
|
*/
|
|
1487
1499
|
EmbedEvent["CreateWorksheet"] = "createWorksheet";
|
|
1488
1500
|
/**
|
|
@@ -1491,12 +1503,12 @@ var EmbedEvent;
|
|
|
1491
1503
|
* @returns viewId: string
|
|
1492
1504
|
* @returns liveboardId: string
|
|
1493
1505
|
* @returns isPublic: boolean
|
|
1494
|
-
* @version SDK
|
|
1506
|
+
* @version SDK: 1.29.0 | ThoughtSpot Cloud: 9.12.0.cl
|
|
1495
1507
|
*/
|
|
1496
1508
|
EmbedEvent["AskSageInit"] = "AskSageInit";
|
|
1497
1509
|
/**
|
|
1498
1510
|
* Emitted when a Liveboard or visualization is renamed.
|
|
1499
|
-
* @version SDK
|
|
1511
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.10.5.cl, 10.1.0.sw
|
|
1500
1512
|
*/
|
|
1501
1513
|
EmbedEvent["Rename"] = "rename";
|
|
1502
1514
|
/**
|
|
@@ -1519,7 +1531,7 @@ var EmbedEvent;
|
|
|
1519
1531
|
* - `error` - Developers can customize the user-facing error message when `execute`
|
|
1520
1532
|
* is `false` by using the `error` parameters in `responder`.
|
|
1521
1533
|
* - `errorText` - The error message text shown to the user.
|
|
1522
|
-
* @version SDK
|
|
1534
|
+
* @version SDK: 1.29.0 | ThoughtSpot: 10.3.0.cl
|
|
1523
1535
|
* @example
|
|
1524
1536
|
*
|
|
1525
1537
|
* This example blocks search operation and returns a custom error message:
|
|
@@ -1571,8 +1583,8 @@ var EmbedEvent;
|
|
|
1571
1583
|
* liveboardEmbed.on(EmbedEvent.ParameterChanged, (payload) => {
|
|
1572
1584
|
* console.log('payload', payload);
|
|
1573
1585
|
* })
|
|
1574
|
-
|
|
1575
|
-
* @version SDK
|
|
1586
|
+
* ```
|
|
1587
|
+
* @version SDK: 1.29.0 | ThoughtSpot: 10.3.0.cl
|
|
1576
1588
|
*/
|
|
1577
1589
|
EmbedEvent["ParameterChanged"] = "parameterChanged";
|
|
1578
1590
|
/**
|
|
@@ -1627,24 +1639,24 @@ var EmbedEvent;
|
|
|
1627
1639
|
* liveboardEmbed.on(EmbedEvent.CreateLiveboard, (payload) => {
|
|
1628
1640
|
* console.log('payload', payload);
|
|
1629
1641
|
* })
|
|
1630
|
-
|
|
1631
|
-
* @version SDK
|
|
1642
|
+
* ```
|
|
1643
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
1632
1644
|
*/
|
|
1633
1645
|
EmbedEvent["CreateLiveboard"] = "createLiveboard";
|
|
1634
1646
|
/**
|
|
1635
1647
|
* Emitted when a user creates a Model.
|
|
1636
|
-
* @version SDK
|
|
1648
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
1637
1649
|
*/
|
|
1638
1650
|
EmbedEvent["CreateModel"] = "createModel";
|
|
1639
1651
|
/**
|
|
1640
1652
|
* @hidden
|
|
1641
1653
|
* Emitted when a user exits present mode.
|
|
1642
|
-
* @version SDK
|
|
1654
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
1643
1655
|
*/
|
|
1644
1656
|
EmbedEvent["ExitPresentMode"] = "exitPresentMode";
|
|
1645
1657
|
/**
|
|
1646
1658
|
* Emitted when a user requests the full height lazy load data.
|
|
1647
|
-
* @version SDK
|
|
1659
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
1648
1660
|
* @hidden
|
|
1649
1661
|
*/
|
|
1650
1662
|
EmbedEvent["RequestVisibleEmbedCoordinates"] = "requestVisibleEmbedCoordinates";
|
|
@@ -1655,7 +1667,7 @@ var EmbedEvent;
|
|
|
1655
1667
|
* spotterEmbed.on(EmbedEvent.SpotterData, (payload) => {
|
|
1656
1668
|
* console.log('payload', payload);
|
|
1657
1669
|
* })
|
|
1658
|
-
|
|
1670
|
+
* ```
|
|
1659
1671
|
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
1660
1672
|
*/
|
|
1661
1673
|
EmbedEvent["SpotterData"] = "SpotterData";
|
|
@@ -1666,7 +1678,7 @@ var EmbedEvent;
|
|
|
1666
1678
|
* spotterEmbed.on(EmbedEvent.PreviewSpotterData, (payload) => {
|
|
1667
1679
|
* console.log('payload', payload);
|
|
1668
1680
|
* })
|
|
1669
|
-
|
|
1681
|
+
* ```
|
|
1670
1682
|
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
1671
1683
|
*/
|
|
1672
1684
|
EmbedEvent["PreviewSpotterData"] = "PreviewSpotterData";
|
|
@@ -1677,7 +1689,7 @@ var EmbedEvent;
|
|
|
1677
1689
|
* spotterEmbed.on(EmbedEvent.AddToCoaching, (payload) => {
|
|
1678
1690
|
* console.log('payload', payload);
|
|
1679
1691
|
* })
|
|
1680
|
-
|
|
1692
|
+
* ```
|
|
1681
1693
|
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
1682
1694
|
*/
|
|
1683
1695
|
EmbedEvent["AddToCoaching"] = "addToCoaching";
|
|
@@ -1699,7 +1711,7 @@ var EmbedEvent;
|
|
|
1699
1711
|
* spotterEmbed.on(EmbedEvent.SpotterQueryTriggered, (payload) => {
|
|
1700
1712
|
* console.log('payload', payload);
|
|
1701
1713
|
* })
|
|
1702
|
-
|
|
1714
|
+
* ```
|
|
1703
1715
|
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
1704
1716
|
*/
|
|
1705
1717
|
EmbedEvent["SpotterQueryTriggered"] = "SpotterQueryTriggered";
|
|
@@ -1710,7 +1722,7 @@ var EmbedEvent;
|
|
|
1710
1722
|
* spotterEmbed.on(EmbedEvent.LastPromptEdited, (payload) => {
|
|
1711
1723
|
* console.log('payload', payload);
|
|
1712
1724
|
* })
|
|
1713
|
-
|
|
1725
|
+
* ```
|
|
1714
1726
|
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
1715
1727
|
*/
|
|
1716
1728
|
EmbedEvent["LastPromptEdited"] = "LastPromptEdited";
|
|
@@ -1721,18 +1733,18 @@ var EmbedEvent;
|
|
|
1721
1733
|
* spotterEmbed.on(EmbedEvent.LastPromptDeleted, (payload) => {
|
|
1722
1734
|
* console.log('payload', payload);
|
|
1723
1735
|
* })
|
|
1724
|
-
|
|
1736
|
+
* ```
|
|
1725
1737
|
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
1726
1738
|
*/
|
|
1727
1739
|
EmbedEvent["LastPromptDeleted"] = "LastPromptDeleted";
|
|
1728
1740
|
/**
|
|
1729
|
-
* Emitted when the
|
|
1741
|
+
* Emitted when the conversation is reset in Spotter embed.
|
|
1730
1742
|
* @example
|
|
1731
1743
|
* ```js
|
|
1732
1744
|
* spotterEmbed.on(EmbedEvent.ResetSpotterConversation, (payload) => {
|
|
1733
1745
|
* console.log('payload', payload);
|
|
1734
1746
|
* })
|
|
1735
|
-
|
|
1747
|
+
* ```
|
|
1736
1748
|
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
1737
1749
|
*/
|
|
1738
1750
|
EmbedEvent["ResetSpotterConversation"] = "ResetSpotterConversation";
|
|
@@ -1743,7 +1755,7 @@ var EmbedEvent;
|
|
|
1743
1755
|
* spotterEmbed.on(EmbedEvent.SpotterInit, (payload) => {
|
|
1744
1756
|
* console.log('payload', payload);
|
|
1745
1757
|
* })
|
|
1746
|
-
|
|
1758
|
+
* ```
|
|
1747
1759
|
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
1748
1760
|
*/
|
|
1749
1761
|
EmbedEvent["SpotterInit"] = "spotterInit";
|
|
@@ -1754,7 +1766,7 @@ var EmbedEvent;
|
|
|
1754
1766
|
* spotterEmbed.on(EmbedEvent.SpotterLoadComplete, (payload) => {
|
|
1755
1767
|
* console.log('payload', payload);
|
|
1756
1768
|
* })
|
|
1757
|
-
|
|
1769
|
+
* ```
|
|
1758
1770
|
* @version SDK: 1.44.0 | ThoughtSpot: 26.2.0.cl
|
|
1759
1771
|
*/
|
|
1760
1772
|
EmbedEvent["SpotterLoadComplete"] = "spotterLoadComplete";
|
|
@@ -1982,7 +1994,8 @@ var HostEvent;
|
|
|
1982
1994
|
* - `autoDrillDown`: Optional. If `true`, the drill down will be done automatically
|
|
1983
1995
|
* on the most popular column.
|
|
1984
1996
|
* - `vizId` (TS >= 9.8.0): Optional. The GUID of the visualization to drill in case
|
|
1985
|
-
* of a Liveboard. In Spotter embed, `vizId` refers to the Answer ID and is
|
|
1997
|
+
* of a Liveboard. In Spotter embed, `vizId` refers to the Answer ID and is
|
|
1998
|
+
* **required**.
|
|
1986
1999
|
* @example
|
|
1987
2000
|
* ```js
|
|
1988
2001
|
* searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
@@ -2109,7 +2122,7 @@ var HostEvent;
|
|
|
2109
2122
|
* ```js
|
|
2110
2123
|
* appEmbed.navigateToPage(-1)
|
|
2111
2124
|
* ```
|
|
2112
|
-
* @version SDK: 1.12.0 | ThoughtSpot 8.4.0.cl, 8.4.1.sw
|
|
2125
|
+
* @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1.sw
|
|
2113
2126
|
*/
|
|
2114
2127
|
HostEvent["Navigate"] = "Navigate";
|
|
2115
2128
|
/**
|
|
@@ -2178,7 +2191,8 @@ var HostEvent;
|
|
|
2178
2191
|
* the following parameters:
|
|
2179
2192
|
*
|
|
2180
2193
|
* @param - Includes the following keys:
|
|
2181
|
-
* - `vizId`: GUID of the saved Answer or Spotter visualization ID to pin to a
|
|
2194
|
+
* - `vizId`: GUID of the saved Answer or Spotter visualization ID to pin to a
|
|
2195
|
+
* Liveboard.
|
|
2182
2196
|
* Optional when pinning a new chart or table generated from a Search query.
|
|
2183
2197
|
* **Required** in Spotter Embed.
|
|
2184
2198
|
* - `liveboardId`: GUID of the Liveboard to pin an Answer. If there is no Liveboard,
|
|
@@ -2242,9 +2256,9 @@ var HostEvent;
|
|
|
2242
2256
|
* Trigger the **Show Liveboard details** action
|
|
2243
2257
|
* on an embedded Liveboard.
|
|
2244
2258
|
* @example
|
|
2245
|
-
|
|
2259
|
+
* ```js
|
|
2246
2260
|
* liveboardEmbed.trigger(HostEvent.LiveboardInfo)
|
|
2247
|
-
|
|
2261
|
+
* ```
|
|
2248
2262
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2249
2263
|
*/
|
|
2250
2264
|
HostEvent["LiveboardInfo"] = "pinboardInfo";
|
|
@@ -2372,7 +2386,7 @@ var HostEvent;
|
|
|
2372
2386
|
* appEmbed.trigger(HostEvent.Remove)
|
|
2373
2387
|
* ```
|
|
2374
2388
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2375
|
-
*
|
|
2389
|
+
* @example
|
|
2376
2390
|
* ```js
|
|
2377
2391
|
* liveboardEmbed.trigger(HostEvent.Remove)
|
|
2378
2392
|
* ```
|
|
@@ -2434,7 +2448,8 @@ var HostEvent;
|
|
|
2434
2448
|
* This event is not supported in visualization embed and search embed.
|
|
2435
2449
|
* @param - Object parameter. Includes the following keys:
|
|
2436
2450
|
* - `vizId`: To trigger the action for a specific visualization in Liveboard embed,
|
|
2437
|
-
* pass in `vizId` as a key. In Spotter embed, `vizId` refers to the Answer ID and
|
|
2451
|
+
* pass in `vizId` as a key. In Spotter embed, `vizId` refers to the Answer ID and
|
|
2452
|
+
* is **required**.
|
|
2438
2453
|
*
|
|
2439
2454
|
* @example
|
|
2440
2455
|
* ```js
|
|
@@ -2463,7 +2478,7 @@ var HostEvent;
|
|
|
2463
2478
|
* liveboardEmbed.trigger(HostEvent.CopyLink, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2464
2479
|
* ```
|
|
2465
2480
|
* ```js
|
|
2466
|
-
* vizEmbed.trigger(
|
|
2481
|
+
* vizEmbed.trigger(HostEvent.CopyLink)
|
|
2467
2482
|
* ```
|
|
2468
2483
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2469
2484
|
*/
|
|
@@ -2480,7 +2495,7 @@ var HostEvent;
|
|
|
2480
2495
|
* liveboardEmbed.trigger(HostEvent.Present, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2481
2496
|
* ```
|
|
2482
2497
|
* ```js
|
|
2483
|
-
* vizEmbed.trigger(
|
|
2498
|
+
* vizEmbed.trigger(HostEvent.Present)
|
|
2484
2499
|
* ```
|
|
2485
2500
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2486
2501
|
*/
|
|
@@ -2495,23 +2510,22 @@ var HostEvent;
|
|
|
2495
2510
|
* );
|
|
2496
2511
|
* })
|
|
2497
2512
|
* ```
|
|
2498
|
-
*
|
|
2513
|
+
* @example
|
|
2499
2514
|
* ```js
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
* spotterEmbed.trigger(HostEvent.GetTML, {
|
|
2515
|
+
* // You can use the Data event dispatched on each answer creation to get the vizId and use in GetTML host event.
|
|
2516
|
+
* let latestSpotterVizId = '';
|
|
2517
|
+
* spotterEmbed.on(EmbedEvent.Data, (payload) => {
|
|
2518
|
+
* latestSpotterVizId = payload.data.id;
|
|
2519
|
+
* });
|
|
2520
|
+
*
|
|
2521
|
+
* spotterEmbed.trigger(HostEvent.GetTML, {
|
|
2508
2522
|
* vizId: latestSpotterVizId
|
|
2509
2523
|
* }).then((tml) => {
|
|
2510
2524
|
* console.log(
|
|
2511
2525
|
* tml.answer.search_query // TML representation of the search query
|
|
2512
2526
|
* );
|
|
2513
2527
|
* })
|
|
2514
|
-
|
|
2528
|
+
* ```
|
|
2515
2529
|
* @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
|
|
2516
2530
|
* @important
|
|
2517
2531
|
*/
|
|
@@ -2575,6 +2589,11 @@ var HostEvent;
|
|
|
2575
2589
|
/**
|
|
2576
2590
|
* Trigger the **Download** action on charts in
|
|
2577
2591
|
* the embedded view.
|
|
2592
|
+
* Use {@link HostEvent.DownloadAsPng} instead.
|
|
2593
|
+
*
|
|
2594
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
2595
|
+
*
|
|
2596
|
+
* @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
|
|
2578
2597
|
* @param - `vizId` refers to the Visualization ID in Spotter embed and is required in Spotter embed.
|
|
2579
2598
|
* @example
|
|
2580
2599
|
* ```js
|
|
@@ -2593,9 +2612,6 @@ var HostEvent;
|
|
|
2593
2612
|
*
|
|
2594
2613
|
* spotterEmbed.trigger(HostEvent.Download, { vizId: latestSpotterVizId });
|
|
2595
2614
|
* ```
|
|
2596
|
-
* @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
|
|
2597
|
-
* Use {@link DownloadAsPng}
|
|
2598
|
-
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
2599
2615
|
*/
|
|
2600
2616
|
HostEvent["Download"] = "downloadAsPng";
|
|
2601
2617
|
/**
|
|
@@ -2802,8 +2818,9 @@ var HostEvent;
|
|
|
2802
2818
|
/**
|
|
2803
2819
|
* Update one or several filters applied on a Liveboard.
|
|
2804
2820
|
* @param - Includes the following keys:
|
|
2805
|
-
* - `filter`: A single filter object containing column name, filter operator, and
|
|
2806
|
-
* - `filters`: Multiple filter objects with column name, filter operator,
|
|
2821
|
+
* - `filter`: A single filter object containing column name, filter operator, and
|
|
2822
|
+
* values. - `filters`: Multiple filter objects with column name, filter operator,
|
|
2823
|
+
* and values for each.
|
|
2807
2824
|
*
|
|
2808
2825
|
* Each filter object must include the following attributes:
|
|
2809
2826
|
*
|
|
@@ -3033,8 +3050,8 @@ var HostEvent;
|
|
|
3033
3050
|
* liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
|
|
3034
3051
|
* console.log('parameters', parameter);
|
|
3035
3052
|
* });
|
|
3036
|
-
|
|
3037
|
-
|
|
3053
|
+
* ```
|
|
3054
|
+
* ```js
|
|
3038
3055
|
* // You can use the Data event dispatched on each answer creation to get the vizId and use in GetParameters host event.
|
|
3039
3056
|
* let latestSpotterVizId = '';
|
|
3040
3057
|
* spotterEmbed.on(EmbedEvent.Data, (payload) => {
|
|
@@ -3042,7 +3059,7 @@ var HostEvent;
|
|
|
3042
3059
|
* });
|
|
3043
3060
|
*
|
|
3044
3061
|
* spotterEmbed.trigger(HostEvent.GetParameters, { vizId: latestSpotterVizId });
|
|
3045
|
-
|
|
3062
|
+
* ```
|
|
3046
3063
|
* @version SDK: 1.29.0 | ThoughtSpot: 10.1.0.cl, 10.1.0.sw
|
|
3047
3064
|
*/
|
|
3048
3065
|
HostEvent["GetParameters"] = "GetParameters";
|
|
@@ -3059,7 +3076,7 @@ var HostEvent;
|
|
|
3059
3076
|
* Notify when info call is completed successfully
|
|
3060
3077
|
* ```js
|
|
3061
3078
|
* liveboardEmbed.trigger(HostEvent.InfoSuccess, data);
|
|
3062
|
-
|
|
3079
|
+
* ```
|
|
3063
3080
|
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
3064
3081
|
*/
|
|
3065
3082
|
HostEvent["InfoSuccess"] = "InfoSuccess";
|
|
@@ -3072,8 +3089,8 @@ var HostEvent;
|
|
|
3072
3089
|
* triggered with a modal to prompt users to
|
|
3073
3090
|
* add a name and description for the Answer.
|
|
3074
3091
|
* @param - Includes the following keys:
|
|
3075
|
-
* - `vizId`: Refers to the Answer ID in Spotter embed and is **required** in Spotter
|
|
3076
|
-
* - `name`: Optional. Name string for the Answer.
|
|
3092
|
+
* - `vizId`: Refers to the Answer ID in Spotter embed and is **required** in Spotter
|
|
3093
|
+
* embed. - `name`: Optional. Name string for the Answer.
|
|
3077
3094
|
* - `description`: Optional. Description text for the Answer.
|
|
3078
3095
|
* @example
|
|
3079
3096
|
* ```js
|
|
@@ -3162,7 +3179,7 @@ var HostEvent;
|
|
|
3162
3179
|
* ```js
|
|
3163
3180
|
* spotterEmbed.trigger(HostEvent.AddToCoaching, { vizId: '730496d6-6903-4601-937e-2c691821af3c' });
|
|
3164
3181
|
*
|
|
3165
|
-
|
|
3182
|
+
* ```
|
|
3166
3183
|
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
3167
3184
|
*/
|
|
3168
3185
|
HostEvent["AddToCoaching"] = "addToCoaching";
|
|
@@ -3204,7 +3221,7 @@ var HostEvent;
|
|
|
3204
3221
|
* });
|
|
3205
3222
|
*
|
|
3206
3223
|
* spotterEmbed.trigger(HostEvent.AnswerChartSwitcher, { vizId: latestSpotterVizId });
|
|
3207
|
-
|
|
3224
|
+
* ```
|
|
3208
3225
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
3209
3226
|
*/
|
|
3210
3227
|
HostEvent["AnswerChartSwitcher"] = "answerChartSwitcher";
|
|
@@ -3214,7 +3231,7 @@ var HostEvent;
|
|
|
3214
3231
|
* This is automatically triggered by the SDK when fullscreen mode is exited.
|
|
3215
3232
|
* ```js
|
|
3216
3233
|
* liveboardEmbed.trigger(HostEvent.ExitPresentMode);
|
|
3217
|
-
|
|
3234
|
+
* ```
|
|
3218
3235
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
3219
3236
|
*/
|
|
3220
3237
|
HostEvent["ExitPresentMode"] = "exitPresentMode";
|
|
@@ -3268,8 +3285,9 @@ var HostEvent;
|
|
|
3268
3285
|
/**
|
|
3269
3286
|
* Triggers a new conversation in Spotter embed.
|
|
3270
3287
|
*
|
|
3271
|
-
* This feature is available only when chat history is enabled on your ThoughtSpot
|
|
3272
|
-
* Contact your admin or ThoughtSpot Support to enable chat history on your
|
|
3288
|
+
* This feature is available only when chat history is enabled on your ThoughtSpot
|
|
3289
|
+
* instance. Contact your admin or ThoughtSpot Support to enable chat history on your
|
|
3290
|
+
* instance.
|
|
3273
3291
|
*
|
|
3274
3292
|
* @example
|
|
3275
3293
|
* ```js
|
|
@@ -3315,6 +3333,7 @@ var DataSourceVisualMode;
|
|
|
3315
3333
|
*/
|
|
3316
3334
|
var Param;
|
|
3317
3335
|
(function (Param) {
|
|
3336
|
+
Param["Tsmcp"] = "tsmcp";
|
|
3318
3337
|
Param["EmbedApp"] = "embedApp";
|
|
3319
3338
|
Param["DataSources"] = "dataSources";
|
|
3320
3339
|
Param["DataSourceMode"] = "dataSourceMode";
|
|
@@ -3364,6 +3383,7 @@ var Param;
|
|
|
3364
3383
|
// 'both' clicks in `contextMenuTrigger` configuration.
|
|
3365
3384
|
Param["ContextMenuTrigger"] = "contextMenuEnabledOnWhichClick";
|
|
3366
3385
|
Param["LinkOverride"] = "linkOverride";
|
|
3386
|
+
Param["EnableLinkOverridesV2"] = "enableLinkOverridesV2";
|
|
3367
3387
|
Param["blockNonEmbedFullAppAccess"] = "blockNonEmbedFullAppAccess";
|
|
3368
3388
|
Param["ShowInsertToSlide"] = "insertInToSlide";
|
|
3369
3389
|
Param["PrimaryNavHidden"] = "primaryNavHidden";
|
|
@@ -3458,6 +3478,7 @@ var Param;
|
|
|
3458
3478
|
Param["IsThisPeriodInDateFiltersEnabled"] = "isThisPeriodInDateFiltersEnabled";
|
|
3459
3479
|
Param["HideToolResponseCardBranding"] = "hideToolResponseCardBranding";
|
|
3460
3480
|
Param["ToolResponseCardBrandingLabel"] = "toolResponseCardBrandingLabel";
|
|
3481
|
+
Param["EnableHomepageAnnouncement"] = "enableHomepageAnnouncement";
|
|
3461
3482
|
})(Param || (Param = {}));
|
|
3462
3483
|
/**
|
|
3463
3484
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -3617,14 +3638,14 @@ var Action;
|
|
|
3617
3638
|
* ```js
|
|
3618
3639
|
* disabledActions: [Action.CollapseDataPanel]
|
|
3619
3640
|
* ```
|
|
3620
|
-
* @version
|
|
3641
|
+
* @version SDK: 1.1.0 | ThoughtSpot Cloud: ts7.may.cl, 8.4.1.sw
|
|
3621
3642
|
*/
|
|
3622
3643
|
Action["CollapseDataSources"] = "collapseDataSources";
|
|
3623
3644
|
/**
|
|
3624
3645
|
* The **Collapse data panel** icon on the Search page.
|
|
3625
3646
|
* Collapses the data panel view.
|
|
3626
3647
|
*
|
|
3627
|
-
* @version
|
|
3648
|
+
* @version SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
|
|
3628
3649
|
*
|
|
3629
3650
|
* @example
|
|
3630
3651
|
* ```js
|
|
@@ -4071,13 +4092,12 @@ var Action;
|
|
|
4071
4092
|
*/
|
|
4072
4093
|
Action["CreateMonitor"] = "createMonitor";
|
|
4073
4094
|
/**
|
|
4074
|
-
* @
|
|
4075
|
-
*
|
|
4095
|
+
* @version SDK: 1.11.1 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
4096
|
+
* @deprecated This action is deprecated. It was used for reporting errors.
|
|
4076
4097
|
* @example
|
|
4077
4098
|
* ```js
|
|
4078
4099
|
* disabledActions: [Action.ReportError]
|
|
4079
4100
|
* ```
|
|
4080
|
-
* @version SDK: 1.11.1 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
4081
4101
|
*/
|
|
4082
4102
|
Action["ReportError"] = "reportError";
|
|
4083
4103
|
/**
|
|
@@ -4087,7 +4107,7 @@ var Action;
|
|
|
4087
4107
|
* ```js
|
|
4088
4108
|
* disabledActions: [Action.SyncToSheets]
|
|
4089
4109
|
* ```
|
|
4090
|
-
* @version SDK: 1.18.0| ThoughtSpot: 8.10.0.cl, 9.0.1.sw
|
|
4110
|
+
* @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
|
|
4091
4111
|
*/
|
|
4092
4112
|
Action["SyncToSheets"] = "sync-to-sheets";
|
|
4093
4113
|
/**
|
|
@@ -4098,7 +4118,7 @@ var Action;
|
|
|
4098
4118
|
* ```js
|
|
4099
4119
|
* disabledActions: [Action.SyncToOtherApps]
|
|
4100
4120
|
* ```
|
|
4101
|
-
* @version SDK: 1.18.0| ThoughtSpot: 8.10.0.cl, 9.0.1.sw
|
|
4121
|
+
* @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
|
|
4102
4122
|
*/
|
|
4103
4123
|
Action["SyncToOtherApps"] = "sync-to-other-apps";
|
|
4104
4124
|
/**
|
|
@@ -4108,7 +4128,7 @@ var Action;
|
|
|
4108
4128
|
* ```js
|
|
4109
4129
|
* disabledActions: [Action.ManagePipelines]
|
|
4110
4130
|
* ```
|
|
4111
|
-
* @version SDK: 1.18.0| ThoughtSpot: 8.10.0.cl, 9.0.1.sw
|
|
4131
|
+
* @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
|
|
4112
4132
|
*/
|
|
4113
4133
|
Action["ManagePipelines"] = "manage-pipeline";
|
|
4114
4134
|
/**
|
|
@@ -4420,7 +4440,7 @@ var Action;
|
|
|
4420
4440
|
* ```js
|
|
4421
4441
|
* disabledActions: [Action.PersonalisedViewsDropdown]
|
|
4422
4442
|
* ```
|
|
4423
|
-
* @version SDK
|
|
4443
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 10.1.0.sw
|
|
4424
4444
|
*/
|
|
4425
4445
|
Action["PersonalisedViewsDropdown"] = "personalisedViewsDropdown";
|
|
4426
4446
|
/**
|
|
@@ -4430,7 +4450,7 @@ var Action;
|
|
|
4430
4450
|
* ```js
|
|
4431
4451
|
* disabledActions: [Action.LiveboardUsers]
|
|
4432
4452
|
* ```
|
|
4433
|
-
* @version SDK
|
|
4453
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 10.1.0.sw
|
|
4434
4454
|
*/
|
|
4435
4455
|
Action["LiveboardUsers"] = "liveboardUsers";
|
|
4436
4456
|
/**
|
|
@@ -4448,7 +4468,7 @@ var Action;
|
|
|
4448
4468
|
* hiddenAction: [Action.TML] // hide all TML actions
|
|
4449
4469
|
* disabledActions: [Action.TML] // to disable all TML actions
|
|
4450
4470
|
* ```
|
|
4451
|
-
* @version SDK
|
|
4471
|
+
* @version SDK: 1.28.3 | ThoughtSpot: 9.12.0.cl, 10.1.0.sw
|
|
4452
4472
|
*/
|
|
4453
4473
|
Action["TML"] = "tml";
|
|
4454
4474
|
/**
|
|
@@ -4494,7 +4514,7 @@ var Action;
|
|
|
4494
4514
|
* ```js
|
|
4495
4515
|
* disabledActions: [Action.AddToWatchlist]
|
|
4496
4516
|
* ```
|
|
4497
|
-
* @version SDK
|
|
4517
|
+
* @version SDK: 1.27.9 | ThoughtSpot Cloud: 9.12.5.cl
|
|
4498
4518
|
*/
|
|
4499
4519
|
Action["AddToWatchlist"] = "addToWatchlist";
|
|
4500
4520
|
/**
|
|
@@ -4504,7 +4524,7 @@ var Action;
|
|
|
4504
4524
|
* ```js
|
|
4505
4525
|
* disabledActions: [Action.RemoveFromWatchlist]
|
|
4506
4526
|
* ```
|
|
4507
|
-
* @version SDK
|
|
4527
|
+
* @version SDK: 1.27.9 | ThoughtSpot: 9.12.5.cl
|
|
4508
4528
|
*/
|
|
4509
4529
|
Action["RemoveFromWatchlist"] = "removeFromWatchlist";
|
|
4510
4530
|
/**
|
|
@@ -4515,7 +4535,7 @@ var Action;
|
|
|
4515
4535
|
* ```js
|
|
4516
4536
|
* disabledActions: [Action.OrganiseFavourites]
|
|
4517
4537
|
* ```
|
|
4518
|
-
* @version SDK
|
|
4538
|
+
* @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
|
|
4519
4539
|
*/
|
|
4520
4540
|
Action["OrganiseFavourites"] = "organiseFavourites";
|
|
4521
4541
|
/**
|
|
@@ -4576,7 +4596,7 @@ var Action;
|
|
|
4576
4596
|
* ```js
|
|
4577
4597
|
* disabledActions: [Action.ManageTags]
|
|
4578
4598
|
* ```
|
|
4579
|
-
* @version SDK
|
|
4599
|
+
* @version SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
|
|
4580
4600
|
*/
|
|
4581
4601
|
Action["ManageTags"] = "manageTags";
|
|
4582
4602
|
/**
|
|
@@ -5208,7 +5228,9 @@ var ErrorDetailsTypes;
|
|
|
5208
5228
|
ErrorDetailsTypes["NETWORK"] = "NETWORK";
|
|
5209
5229
|
})(ErrorDetailsTypes || (ErrorDetailsTypes = {}));
|
|
5210
5230
|
/**
|
|
5211
|
-
* Error codes for identifying specific issues in embedded ThoughtSpot components. Use
|
|
5231
|
+
* Error codes for identifying specific issues in embedded ThoughtSpot components. Use
|
|
5232
|
+
* {@link EmbedErrorDetailsEvent} and {@link ErrorDetailsTypes} codes for precise error
|
|
5233
|
+
* handling and debugging.
|
|
5212
5234
|
*
|
|
5213
5235
|
* @version SDK: 1.44.2 | ThoughtSpot: 26.2.0.cl
|
|
5214
5236
|
* @group Error Handling
|
|
@@ -5523,7 +5545,7 @@ const getCssDimension = (value) => {
|
|
|
5523
5545
|
* @returns true if the value is a valid CSS margin value, false otherwise
|
|
5524
5546
|
*/
|
|
5525
5547
|
const isValidCssMargin = (value) => {
|
|
5526
|
-
if (isUndefined
|
|
5548
|
+
if (isUndefined(value)) {
|
|
5527
5549
|
return false;
|
|
5528
5550
|
}
|
|
5529
5551
|
if (typeof value !== 'string') {
|
|
@@ -5711,7 +5733,7 @@ const removeStyleProperties = (element, styleProperties) => {
|
|
|
5711
5733
|
element.style.removeProperty(styleProperty);
|
|
5712
5734
|
});
|
|
5713
5735
|
};
|
|
5714
|
-
const isUndefined
|
|
5736
|
+
const isUndefined = (value) => value === undefined;
|
|
5715
5737
|
// Return if the value is a string, double or boolean.
|
|
5716
5738
|
const getTypeFromValue = (value) => {
|
|
5717
5739
|
if (typeof value === 'string') {
|
|
@@ -5908,6 +5930,14 @@ const validateHttpUrl = (url) => {
|
|
|
5908
5930
|
return [false, error instanceof Error ? error : new Error(String(error))];
|
|
5909
5931
|
}
|
|
5910
5932
|
};
|
|
5933
|
+
/**
|
|
5934
|
+
* Resolves enablePastConversationsSidebar with
|
|
5935
|
+
* spotterSidebarConfig taking precedence over the
|
|
5936
|
+
* standalone flag.
|
|
5937
|
+
*/
|
|
5938
|
+
const resolveEnablePastConversationsSidebar = (params) => (params.spotterSidebarConfigValue !== undefined
|
|
5939
|
+
? params.spotterSidebarConfigValue
|
|
5940
|
+
: params.standaloneValue);
|
|
5911
5941
|
/**
|
|
5912
5942
|
* Sets a query parameter if the value is defined.
|
|
5913
5943
|
* @param queryParams - The query params object to modify
|
|
@@ -8390,7 +8420,6 @@ const validateAuthToken = async (embedConfig, authToken, suppressAlert) => {
|
|
|
8390
8420
|
}
|
|
8391
8421
|
if (cachedAuthToken && cachedAuthToken === authToken) {
|
|
8392
8422
|
if (!embedConfig.suppressErrorAlerts && !suppressAlert) {
|
|
8393
|
-
// eslint-disable-next-line no-alert
|
|
8394
8423
|
alert(ERROR_MESSAGE.DUPLICATE_TOKEN_ERR);
|
|
8395
8424
|
}
|
|
8396
8425
|
throw new Error(ERROR_MESSAGE.DUPLICATE_TOKEN_ERR);
|
|
@@ -8488,7 +8517,7 @@ const setEmbedConfig = (newConfig) => {
|
|
|
8488
8517
|
* tokenizedFetch("<TS_ORIGIN>/api/rest/2.0/auth/session/user", {
|
|
8489
8518
|
* // .. fetch options ..
|
|
8490
8519
|
* });
|
|
8491
|
-
|
|
8520
|
+
* ```
|
|
8492
8521
|
* @version SDK: 1.28.0
|
|
8493
8522
|
* @group Global methods
|
|
8494
8523
|
*/
|
|
@@ -8822,12 +8851,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
8822
8851
|
}`;
|
|
8823
8852
|
|
|
8824
8853
|
// import YAML from 'yaml';
|
|
8825
|
-
// eslint-disable-next-line no-shadow
|
|
8826
8854
|
var OperationType;
|
|
8827
8855
|
(function (OperationType) {
|
|
8828
8856
|
OperationType["GetChartWithData"] = "GetChartWithData";
|
|
8829
8857
|
OperationType["GetTableWithHeadlineData"] = "GetTableWithHeadlineData";
|
|
8830
8858
|
})(OperationType || (OperationType = {}));
|
|
8859
|
+
const DATA_TYPES = ['DATE', 'DATE_TIME', 'TIME'];
|
|
8831
8860
|
/**
|
|
8832
8861
|
* AnswerService provides a simple way to work with ThoughtSpot Answers.
|
|
8833
8862
|
*
|
|
@@ -8837,10 +8866,11 @@ var OperationType;
|
|
|
8837
8866
|
*
|
|
8838
8867
|
* You can use this service to:
|
|
8839
8868
|
*
|
|
8840
|
-
* - Add or remove columns from Answers (`addColumns`, `removeColumns`,
|
|
8841
|
-
* - Apply filters to Answers (`addFilter`)
|
|
8842
|
-
* - Get data from Answers in different formats (JSON, CSV, PNG) (`fetchData`,
|
|
8843
|
-
* - Get data for specific points in visualizations
|
|
8869
|
+
* - Add or remove columns from Answers (`addColumns`, `removeColumns`,
|
|
8870
|
+
* `addColumnsByName`) - Apply filters to Answers (`addFilter`)
|
|
8871
|
+
* - Get data from Answers in different formats (JSON, CSV, PNG) (`fetchData`,
|
|
8872
|
+
* `fetchCSVBlob`, `fetchPNGBlob`) - Get data for specific points in visualizations
|
|
8873
|
+
* (`getUnderlyingDataForPoint`)
|
|
8844
8874
|
* - Run custom queries (`executeQuery`)
|
|
8845
8875
|
* - Add visualizations to Liveboards (`addDisplayedVizToLiveboard`)
|
|
8846
8876
|
*
|
|
@@ -8873,7 +8903,7 @@ var OperationType;
|
|
|
8873
8903
|
* });
|
|
8874
8904
|
* ```
|
|
8875
8905
|
*
|
|
8876
|
-
* @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
|
|
8906
|
+
* @version SDK: 1.25.0 | ThoughtSpot: 9.10.0.cl
|
|
8877
8907
|
* @group Events
|
|
8878
8908
|
*/
|
|
8879
8909
|
class AnswerService {
|
|
@@ -8934,6 +8964,7 @@ class AnswerService {
|
|
|
8934
8964
|
* ]);
|
|
8935
8965
|
* console.log(await service.fetchData());
|
|
8936
8966
|
* });
|
|
8967
|
+
* ```
|
|
8937
8968
|
*/
|
|
8938
8969
|
async addColumnsByName(columnNames) {
|
|
8939
8970
|
const sourceDetail = await this.getSourceDetail();
|
|
@@ -9064,7 +9095,7 @@ class AnswerService {
|
|
|
9064
9095
|
* const data = await underlying.fetchData(0, 100);
|
|
9065
9096
|
* })
|
|
9066
9097
|
* ```
|
|
9067
|
-
* @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
|
|
9098
|
+
* @version SDK: 1.25.0 | ThoughtSpot: 9.10.0.cl
|
|
9068
9099
|
*/
|
|
9069
9100
|
async getUnderlyingDataForPoint(outputColumnNames, selectedPoints) {
|
|
9070
9101
|
if (!selectedPoints && !this.selectedPoints) {
|
|
@@ -9132,7 +9163,7 @@ class AnswerService {
|
|
|
9132
9163
|
async getTML() {
|
|
9133
9164
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
9134
9165
|
const edoc = object[0].edoc;
|
|
9135
|
-
const YAML = await import('./index-
|
|
9166
|
+
const YAML = await import('./index-DyX-x6uN.js');
|
|
9136
9167
|
const parsedDoc = YAML.parse(edoc);
|
|
9137
9168
|
return {
|
|
9138
9169
|
answer: {
|
|
@@ -9183,7 +9214,7 @@ function getSelectedPointsForUnderlyingDataQuery(selectedPoints) {
|
|
|
9183
9214
|
const dataType = colVal.column.dataType;
|
|
9184
9215
|
colVal.column.id;
|
|
9185
9216
|
let dataValue;
|
|
9186
|
-
if (dataType
|
|
9217
|
+
if (DATA_TYPES.includes(dataType)) {
|
|
9187
9218
|
if (Number.isFinite(colVal.value)) {
|
|
9188
9219
|
dataValue = [{
|
|
9189
9220
|
epochRange: {
|
|
@@ -9221,13 +9252,9 @@ function getSelectedPointsForUnderlyingDataQuery(selectedPoints) {
|
|
|
9221
9252
|
*/
|
|
9222
9253
|
function getDisplayedViz(visualizations, displayMode) {
|
|
9223
9254
|
if (displayMode === 'CHART_MODE') {
|
|
9224
|
-
return visualizations.find(
|
|
9225
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
9226
|
-
(viz) => viz.__typename === 'ChartViz');
|
|
9255
|
+
return visualizations.find((viz) => viz.__typename === 'ChartViz');
|
|
9227
9256
|
}
|
|
9228
|
-
return visualizations.find(
|
|
9229
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
9230
|
-
(viz) => viz.__typename === 'TableViz');
|
|
9257
|
+
return visualizations.find((viz) => viz.__typename === 'TableViz');
|
|
9231
9258
|
}
|
|
9232
9259
|
|
|
9233
9260
|
/** Built-in value references. */
|
|
@@ -17561,11 +17588,8 @@ function resetAllCachedServices() {
|
|
|
17561
17588
|
resetCachedPreauthInfo();
|
|
17562
17589
|
}
|
|
17563
17590
|
|
|
17564
|
-
// eslint-disable-next-line import/no-mutable-exports
|
|
17565
17591
|
let loggedInStatus = false;
|
|
17566
|
-
// eslint-disable-next-line import/no-mutable-exports
|
|
17567
17592
|
let samlAuthWindow = null;
|
|
17568
|
-
// eslint-disable-next-line import/no-mutable-exports
|
|
17569
17593
|
let samlCompletionPromise = null;
|
|
17570
17594
|
let releaseVersion = '';
|
|
17571
17595
|
const SSO_REDIRECTION_MARKER_GUID = '5e16222e-ef02-43e9-9fbd-24226bf3ce5b';
|
|
@@ -17623,20 +17647,45 @@ var AuthFailureType;
|
|
|
17623
17647
|
var AuthStatus;
|
|
17624
17648
|
(function (AuthStatus) {
|
|
17625
17649
|
/**
|
|
17626
|
-
* Emits when the SDK fails to authenticate
|
|
17650
|
+
* Emits when the SDK fails to authenticate.
|
|
17627
17651
|
*/
|
|
17628
17652
|
AuthStatus["FAILURE"] = "FAILURE";
|
|
17629
17653
|
/**
|
|
17630
|
-
* Emits when the SDK
|
|
17654
|
+
* Emits when the SDK authentication step completes
|
|
17655
|
+
* successfully (e.g., token exchange, cookie set).
|
|
17656
|
+
* This fires before any iframe is rendered. Use
|
|
17657
|
+
* this to know that auth passed and it is safe to
|
|
17658
|
+
* proceed with rendering. The callback receives no
|
|
17659
|
+
* arguments.
|
|
17660
|
+
* @example
|
|
17661
|
+
* ```js
|
|
17662
|
+
* const authEE = init({ ... });
|
|
17663
|
+
* authEE.on(AuthStatus.SDK_SUCCESS, () => {
|
|
17664
|
+
* // Auth done, iframe not loaded yet
|
|
17665
|
+
* });
|
|
17666
|
+
* ```
|
|
17631
17667
|
*/
|
|
17632
17668
|
AuthStatus["SDK_SUCCESS"] = "SDK_SUCCESS";
|
|
17633
17669
|
/**
|
|
17634
17670
|
* @hidden
|
|
17635
|
-
* Emits when iframe is loaded and session
|
|
17671
|
+
* Emits when iframe is loaded and session
|
|
17672
|
+
* information is available.
|
|
17636
17673
|
*/
|
|
17637
17674
|
AuthStatus["SESSION_INFO_SUCCESS"] = "SESSION_INFO_SUCCESS";
|
|
17638
17675
|
/**
|
|
17639
|
-
* Emits when the app
|
|
17676
|
+
* Emits when the ThoughtSpot app inside the
|
|
17677
|
+
* embedded iframe confirms its session is active.
|
|
17678
|
+
* This fires after the iframe loads and sends back an `AuthInit` event.
|
|
17679
|
+
* @param sessionInfo Information about the user session, with details like `userGUID`.
|
|
17680
|
+
* @see EmbedEvent.AuthInit
|
|
17681
|
+
* @example
|
|
17682
|
+
* ```js
|
|
17683
|
+
* const authEE = init({ ... });
|
|
17684
|
+
* authEE.on(AuthStatus.SUCCESS, (sessionInfo) => {
|
|
17685
|
+
* // App is loaded and authenticated
|
|
17686
|
+
* console.log(sessionInfo.userGUID);
|
|
17687
|
+
* });
|
|
17688
|
+
* ```
|
|
17640
17689
|
*/
|
|
17641
17690
|
AuthStatus["SUCCESS"] = "SUCCESS";
|
|
17642
17691
|
/**
|
|
@@ -18082,8 +18131,6 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data, context) {
|
|
|
18082
18131
|
});
|
|
18083
18132
|
}
|
|
18084
18133
|
|
|
18085
|
-
/* eslint-disable camelcase */
|
|
18086
|
-
/* eslint-disable import/no-mutable-exports */
|
|
18087
18134
|
/**
|
|
18088
18135
|
* Copyright (c) 2022
|
|
18089
18136
|
*
|
|
@@ -18139,7 +18186,6 @@ const hostUrlToFeatureUrl = {
|
|
|
18139
18186
|
const prefetch = (url, prefetchFeatures, additionalFlags) => {
|
|
18140
18187
|
var _a;
|
|
18141
18188
|
if (url === '') {
|
|
18142
|
-
// eslint-disable-next-line no-console
|
|
18143
18189
|
logger$3.warn('The prefetch method does not have a valid URL');
|
|
18144
18190
|
}
|
|
18145
18191
|
else {
|
|
@@ -18159,9 +18205,9 @@ const prefetch = (url, prefetchFeatures, additionalFlags) => {
|
|
|
18159
18205
|
iFrame.style.width = '0';
|
|
18160
18206
|
iFrame.style.height = '0';
|
|
18161
18207
|
iFrame.style.border = '0';
|
|
18162
|
-
// Make it 'fixed' to keep it in a different stacking
|
|
18163
|
-
//
|
|
18164
|
-
//
|
|
18208
|
+
// Make it 'fixed' to keep it in a different stacking
|
|
18209
|
+
// context. This should solve the focus behaviours inside
|
|
18210
|
+
// the iframe from interfering with main body.
|
|
18165
18211
|
iFrame.style.position = 'fixed';
|
|
18166
18212
|
// Push it out of viewport.
|
|
18167
18213
|
iFrame.style.top = '100vh';
|
|
@@ -18290,7 +18336,7 @@ const renderInQueue = (fn) => {
|
|
|
18290
18336
|
return renderQueue;
|
|
18291
18337
|
}
|
|
18292
18338
|
// Sending an empty function to keep it consistent with the above usage.
|
|
18293
|
-
return fn(() => { });
|
|
18339
|
+
return fn(() => { });
|
|
18294
18340
|
};
|
|
18295
18341
|
|
|
18296
18342
|
/**
|
|
@@ -18350,10 +18396,8 @@ function processNoCookieAccess(e, containerEl) {
|
|
|
18350
18396
|
const { loginFailedMessage, suppressNoCookieAccessAlert, ignoreNoCookieAccess, suppressErrorAlerts, } = getEmbedConfig();
|
|
18351
18397
|
if (!ignoreNoCookieAccess) {
|
|
18352
18398
|
if (!suppressNoCookieAccessAlert && !suppressErrorAlerts) {
|
|
18353
|
-
// eslint-disable-next-line no-alert
|
|
18354
18399
|
alert(ERROR_MESSAGE.THIRD_PARTY_COOKIE_BLOCKED_ALERT);
|
|
18355
18400
|
}
|
|
18356
|
-
// eslint-disable-next-line no-param-reassign
|
|
18357
18401
|
containerEl.innerHTML = loginFailedMessage;
|
|
18358
18402
|
}
|
|
18359
18403
|
notifyAuthFailure(AuthFailureType.NO_COOKIE_ACCESS);
|
|
@@ -18371,12 +18415,10 @@ function processAuthFailure(e, containerEl) {
|
|
|
18371
18415
|
const isTrustedAuth = authType === AuthType.TrustedAuthToken || authType === AuthType.TrustedAuthTokenCookieless;
|
|
18372
18416
|
const isEmbeddedSSOInfoFailure = isEmbeddedSSO && ((_a = e === null || e === void 0 ? void 0 : e.data) === null || _a === void 0 ? void 0 : _a.type) === AuthFailureType.UNAUTHENTICATED_FAILURE;
|
|
18373
18417
|
if (autoLogin && isTrustedAuth) {
|
|
18374
|
-
// eslint-disable-next-line no-param-reassign
|
|
18375
18418
|
containerEl.innerHTML = loginFailedMessage;
|
|
18376
18419
|
notifyAuthFailure(AuthFailureType.IDLE_SESSION_TIMEOUT);
|
|
18377
18420
|
}
|
|
18378
18421
|
else if (authType !== AuthType.None && !disableLoginFailurePage && !isEmbeddedSSOInfoFailure) {
|
|
18379
|
-
// eslint-disable-next-line no-param-reassign
|
|
18380
18422
|
containerEl.innerHTML = loginFailedMessage;
|
|
18381
18423
|
notifyAuthFailure(AuthFailureType.OTHER);
|
|
18382
18424
|
}
|
|
@@ -18390,7 +18432,6 @@ function processAuthFailure(e, containerEl) {
|
|
|
18390
18432
|
*/
|
|
18391
18433
|
function processAuthLogout(e, containerEl) {
|
|
18392
18434
|
const { loginFailedMessage } = getEmbedConfig();
|
|
18393
|
-
// eslint-disable-next-line no-param-reassign
|
|
18394
18435
|
containerEl.innerHTML = loginFailedMessage;
|
|
18395
18436
|
resetCachedAuthToken();
|
|
18396
18437
|
disableAutoLogin();
|
|
@@ -18424,7 +18465,7 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
|
|
|
18424
18465
|
return eventData;
|
|
18425
18466
|
}
|
|
18426
18467
|
|
|
18427
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.46.
|
|
18468
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.46.3";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js","bundle-dts":"dts-bundle-generator --config ./dts-config/dts-bundle.config.js","bundle-dts-react":"dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js","bundle-dts-react-full":"dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.build.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | npx coveralls-next || echo 'Warning: Coveralls upload failed but not breaking the build.'","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.23","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^11.2.0","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^30.0.0","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^30.2.0","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1","coveralls-next":"^5.0.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle-generator":"^9.5.1",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^2.0.0",jest:"^30.2.0","jest-environment-jsdom":"^29.7.0","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^29.4.6","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"32 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
|
|
18428
18469
|
|
|
18429
18470
|
class HostEventClient {
|
|
18430
18471
|
constructor(iFrame) {
|
|
@@ -18448,14 +18489,12 @@ class HostEventClient {
|
|
|
18448
18489
|
const response = (_b = (_a = (await this.triggerUIPassthroughApi(apiName, parameters, context))) === null || _a === void 0 ? void 0 : _a.filter) === null || _b === void 0 ? void 0 : _b.call(_a, (r) => r.error || r.value)[0];
|
|
18449
18490
|
if (!response) {
|
|
18450
18491
|
const error = `No answer found${parameters.vizId ? ` for vizId: ${parameters.vizId}` : ''}.`;
|
|
18451
|
-
// eslint-disable-next-line no-throw-literal
|
|
18452
18492
|
throw { error };
|
|
18453
18493
|
}
|
|
18454
18494
|
const errors = response.error
|
|
18455
18495
|
|| ((_c = response.value) === null || _c === void 0 ? void 0 : _c.errors)
|
|
18456
18496
|
|| ((_d = response.value) === null || _d === void 0 ? void 0 : _d.error);
|
|
18457
18497
|
if (errors) {
|
|
18458
|
-
// eslint-disable-next-line no-throw-literal
|
|
18459
18498
|
throw { error: response.error };
|
|
18460
18499
|
}
|
|
18461
18500
|
return { ...response.value };
|
|
@@ -18730,9 +18769,9 @@ class TsEmbed {
|
|
|
18730
18769
|
this.embedNodeKey = '__tsEmbed';
|
|
18731
18770
|
this.isAppInitialized = false;
|
|
18732
18771
|
/**
|
|
18733
|
-
* Should we encode URL Query Params using base64 encoding which
|
|
18772
|
+
* Should we encode URL Query Params using base64 encoding which ThoughtSpot
|
|
18734
18773
|
* will generate for embedding. This provides additional security to
|
|
18735
|
-
*
|
|
18774
|
+
* ThoughtSpot clusters against Cross site scripting attacks.
|
|
18736
18775
|
* @default false
|
|
18737
18776
|
*/
|
|
18738
18777
|
this.shouldEncodeUrlQueryParams = false;
|
|
@@ -18797,7 +18836,8 @@ class TsEmbed {
|
|
|
18797
18836
|
*/
|
|
18798
18837
|
this.updateAuthToken = async (_, responder) => {
|
|
18799
18838
|
const { authType, autoLogin: autoLoginConfig } = this.embedConfig;
|
|
18800
|
-
// Default autoLogin: true for cookieless if undefined/null, otherwise
|
|
18839
|
+
// Default autoLogin: true for cookieless if undefined/null, otherwise
|
|
18840
|
+
// false
|
|
18801
18841
|
const autoLogin = autoLoginConfig !== null && autoLoginConfig !== void 0 ? autoLoginConfig : (authType === AuthType.TrustedAuthTokenCookieless);
|
|
18802
18842
|
try {
|
|
18803
18843
|
await this.refreshAuthTokenForCookieless(responder, EmbedEvent.AuthExpire, false);
|
|
@@ -18908,7 +18948,7 @@ class TsEmbed {
|
|
|
18908
18948
|
if (viewConfig.preRenderId) {
|
|
18909
18949
|
const allOtherKeys = Object.keys(viewConfig).filter((key) => !preRenderAllowedKeys.includes(key) && !key.startsWith('on'));
|
|
18910
18950
|
allOtherKeys.forEach((key) => {
|
|
18911
|
-
if (!isUndefined
|
|
18951
|
+
if (!isUndefined(viewConfig[key])
|
|
18912
18952
|
&& !isEqual_1(viewConfig[key], preRenderedObject.viewConfig[key])) {
|
|
18913
18953
|
logger$3.warn(`${viewConfig.embedComponentType || 'Component'} was pre-rendered with `
|
|
18914
18954
|
+ `"${key}" as "${JSON.stringify(preRenderedObject.viewConfig[key])}" `
|
|
@@ -19244,7 +19284,7 @@ class TsEmbed {
|
|
|
19244
19284
|
if (this.embedConfig.currencyFormat) {
|
|
19245
19285
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
19246
19286
|
}
|
|
19247
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, primaryAction, } = this.viewConfig;
|
|
19287
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, enableLinkOverridesV2, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, primaryAction, } = this.viewConfig;
|
|
19248
19288
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
19249
19289
|
const additionalFlags = {
|
|
19250
19290
|
...additionalFlagsFromInit,
|
|
@@ -19320,7 +19360,13 @@ class TsEmbed {
|
|
|
19320
19360
|
if (locale !== undefined) {
|
|
19321
19361
|
queryParams[Param.Locale] = locale;
|
|
19322
19362
|
}
|
|
19323
|
-
|
|
19363
|
+
// TODO: Once V2 is stable, send both flags when
|
|
19364
|
+
// linkOverride is true (remove the else-if).
|
|
19365
|
+
if (enableLinkOverridesV2) {
|
|
19366
|
+
queryParams[Param.EnableLinkOverridesV2] = true;
|
|
19367
|
+
queryParams[Param.LinkOverride] = true;
|
|
19368
|
+
}
|
|
19369
|
+
else if (linkOverride) {
|
|
19324
19370
|
queryParams[Param.LinkOverride] = linkOverride;
|
|
19325
19371
|
}
|
|
19326
19372
|
if (insertInToSlide) {
|
|
@@ -19388,7 +19434,7 @@ class TsEmbed {
|
|
|
19388
19434
|
iFrame.mozallowfullscreen = true;
|
|
19389
19435
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
19390
19436
|
// @ts-ignore
|
|
19391
|
-
iFrame.allow = 'clipboard-read; clipboard-write; fullscreen;';
|
|
19437
|
+
iFrame.allow = 'clipboard-read; clipboard-write; fullscreen; local-network-access;';
|
|
19392
19438
|
const frameParams = this.viewConfig.frameParams;
|
|
19393
19439
|
const { height: frameHeight, width: frameWidth, ...restParams } = frameParams || {};
|
|
19394
19440
|
const width = getCssDimension(frameWidth || DEFAULT_EMBED_WIDTH);
|
|
@@ -20090,7 +20136,7 @@ class TsEmbed {
|
|
|
20090
20136
|
* Returns the answerService which can be used to make arbitrary graphql calls on top
|
|
20091
20137
|
* session.
|
|
20092
20138
|
* @param vizId [Optional] to get for a specific viz in case of a Liveboard.
|
|
20093
|
-
* @version SDK: 1.25.0
|
|
20139
|
+
* @version SDK: 1.25.0 | ThoughtSpot: 9.10.0
|
|
20094
20140
|
*/
|
|
20095
20141
|
async getAnswerService(vizId) {
|
|
20096
20142
|
const { session } = await this.trigger(HostEvent.GetAnswerSession, vizId ? { vizId } : {});
|
|
@@ -20205,7 +20251,7 @@ class V1Embed extends TsEmbed {
|
|
|
20205
20251
|
|
|
20206
20252
|
/**
|
|
20207
20253
|
* Embed ThoughtSpot search bar
|
|
20208
|
-
* @version
|
|
20254
|
+
* @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
|
|
20209
20255
|
* @group Embed components
|
|
20210
20256
|
*/
|
|
20211
20257
|
let SearchBarEmbed$1 = class SearchBarEmbed extends TsEmbed {
|
|
@@ -20287,13 +20333,12 @@ let SearchBarEmbed$1 = class SearchBarEmbed extends TsEmbed {
|
|
|
20287
20333
|
*/
|
|
20288
20334
|
/**
|
|
20289
20335
|
* Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
|
|
20290
|
-
* @version
|
|
20336
|
+
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
|
|
20291
20337
|
*
|
|
20292
20338
|
* Note: This embed will be deprecated from SDK: 1.40.0 | ThoughtSpot: 10.13.0.cl
|
|
20293
20339
|
* @group Embed components
|
|
20294
20340
|
*/
|
|
20295
20341
|
let SageEmbed$1 = class SageEmbed extends V1Embed {
|
|
20296
|
-
// eslint-disable-next-line no-useless-constructor
|
|
20297
20342
|
constructor(domSelector, viewConfig) {
|
|
20298
20343
|
viewConfig.embedComponentType = 'SageEmbed';
|
|
20299
20344
|
super(domSelector, viewConfig);
|
|
@@ -20731,7 +20776,7 @@ let AppEmbed$1 = class AppEmbed extends V1Embed {
|
|
|
20731
20776
|
* embedded Liveboard or visualization.
|
|
20732
20777
|
*/
|
|
20733
20778
|
getEmbedParams() {
|
|
20734
|
-
const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, spotterSidebarConfig, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
|
|
20779
|
+
const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, spotterSidebarConfig, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, enableHomepageAnnouncement, } = this.viewConfig;
|
|
20735
20780
|
let params = {};
|
|
20736
20781
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
20737
20782
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
@@ -20752,13 +20797,17 @@ let AppEmbed$1 = class AppEmbed extends V1Embed {
|
|
|
20752
20797
|
params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
|
|
20753
20798
|
params[Param.CoverAndFilterOptionInPDF] = !!coverAndFilterOptionInPDF;
|
|
20754
20799
|
params = this.getBaseQueryParams(params);
|
|
20755
|
-
if (!isUndefined
|
|
20800
|
+
if (!isUndefined(updatedSpotterChatPrompt)) {
|
|
20756
20801
|
params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
|
|
20757
20802
|
}
|
|
20803
|
+
const resolvedEnablePastConversationsSidebar = resolveEnablePastConversationsSidebar({
|
|
20804
|
+
spotterSidebarConfigValue: spotterSidebarConfig === null || spotterSidebarConfig === void 0 ? void 0 : spotterSidebarConfig.enablePastConversationsSidebar,
|
|
20805
|
+
standaloneValue: this.viewConfig.enablePastConversationsSidebar,
|
|
20806
|
+
});
|
|
20807
|
+
setParamIfDefined(params, Param.EnablePastConversationsSidebar, resolvedEnablePastConversationsSidebar, true);
|
|
20758
20808
|
// Handle spotterSidebarConfig params
|
|
20759
20809
|
if (spotterSidebarConfig) {
|
|
20760
|
-
const {
|
|
20761
|
-
setParamIfDefined(params, Param.EnablePastConversationsSidebar, enablePastConversationsSidebar, true);
|
|
20810
|
+
const { spotterSidebarTitle, spotterSidebarDefaultExpanded, spotterChatRenameLabel, spotterChatDeleteLabel, spotterDeleteConversationModalTitle, spotterPastConversationAlertMessage, spotterDocumentationUrl, spotterBestPracticesLabel, spotterConversationsBatchSize, spotterNewChatButtonTitle, } = spotterSidebarConfig;
|
|
20762
20811
|
setParamIfDefined(params, Param.SpotterSidebarDefaultExpanded, spotterSidebarDefaultExpanded, true);
|
|
20763
20812
|
setParamIfDefined(params, Param.SpotterSidebarTitle, spotterSidebarTitle);
|
|
20764
20813
|
setParamIfDefined(params, Param.SpotterChatRenameLabel, spotterChatRenameLabel);
|
|
@@ -20856,6 +20905,9 @@ let AppEmbed$1 = class AppEmbed extends V1Embed {
|
|
|
20856
20905
|
if (isThisPeriodInDateFiltersEnabled !== undefined) {
|
|
20857
20906
|
params[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
|
|
20858
20907
|
}
|
|
20908
|
+
if (enableHomepageAnnouncement !== undefined) {
|
|
20909
|
+
params[Param.EnableHomepageAnnouncement] = enableHomepageAnnouncement;
|
|
20910
|
+
}
|
|
20859
20911
|
this.defaultHeight = minimumHeight || this.defaultHeight;
|
|
20860
20912
|
params[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
20861
20913
|
params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
|
|
@@ -21030,7 +21082,6 @@ let AppEmbed$1 = class AppEmbed extends V1Embed {
|
|
|
21030
21082
|
}
|
|
21031
21083
|
};
|
|
21032
21084
|
|
|
21033
|
-
/* eslint-disable quotes */
|
|
21034
21085
|
const getPreviewQuery = `
|
|
21035
21086
|
query GetEurekaVizSnapshots(
|
|
21036
21087
|
$vizId: String!, $liveboardId: String!) {
|
|
@@ -21114,6 +21165,7 @@ const addPreviewStylesIfNotPresent = () => {
|
|
|
21114
21165
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
21115
21166
|
* waits for the authentication to complete, so you need not wait for
|
|
21116
21167
|
* `AuthStatus.SUCCESS`.
|
|
21168
|
+
* @group Embed components
|
|
21117
21169
|
* @example
|
|
21118
21170
|
* ```js
|
|
21119
21171
|
* import { .. } from '@thoughtspot/visual-embed-sdk';
|
|
@@ -21123,7 +21175,6 @@ const addPreviewStylesIfNotPresent = () => {
|
|
|
21123
21175
|
* // .. other params here.
|
|
21124
21176
|
* })
|
|
21125
21177
|
* ```
|
|
21126
|
-
* @group Embed components
|
|
21127
21178
|
*/
|
|
21128
21179
|
let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
|
|
21129
21180
|
constructor(domSelector, viewConfig) {
|
|
@@ -21231,7 +21282,7 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
|
|
|
21231
21282
|
if (preventLiveboardFilterRemoval) {
|
|
21232
21283
|
params[Param.preventLiveboardFilterRemoval] = true;
|
|
21233
21284
|
}
|
|
21234
|
-
if (!isUndefined
|
|
21285
|
+
if (!isUndefined(updatedSpotterChatPrompt)) {
|
|
21235
21286
|
params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
|
|
21236
21287
|
}
|
|
21237
21288
|
if (visibleVizs) {
|
|
@@ -21316,8 +21367,9 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
|
|
|
21316
21367
|
return params;
|
|
21317
21368
|
}
|
|
21318
21369
|
getIframeSuffixSrc(liveboardId, vizId, activeTabId, personalizedViewId) {
|
|
21319
|
-
// Extract view from liveboardId if passed along with it (legacy
|
|
21320
|
-
// View must be appended as query param at the end, not
|
|
21370
|
+
// Extract view from liveboardId if passed along with it (legacy
|
|
21371
|
+
// approach) View must be appended as query param at the end, not
|
|
21372
|
+
// embedded in path
|
|
21321
21373
|
let liveboardGuid = liveboardId;
|
|
21322
21374
|
let legacyViewId;
|
|
21323
21375
|
if (liveboardId === null || liveboardId === void 0 ? void 0 : liveboardId.includes('?')) {
|
|
@@ -21326,7 +21378,8 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
|
|
|
21326
21378
|
const params = new URLSearchParams(query);
|
|
21327
21379
|
legacyViewId = params.get('view') || undefined;
|
|
21328
21380
|
}
|
|
21329
|
-
// personalizedViewId takes precedence over legacyViewId (when passed
|
|
21381
|
+
// personalizedViewId takes precedence over legacyViewId (when passed
|
|
21382
|
+
// as part of liveboardId)
|
|
21330
21383
|
const effectiveViewId = personalizedViewId || legacyViewId;
|
|
21331
21384
|
let suffix = `/embed/viz/${liveboardGuid}`;
|
|
21332
21385
|
if (activeTabId) {
|
|
@@ -21410,7 +21463,7 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
|
|
|
21410
21463
|
});
|
|
21411
21464
|
}
|
|
21412
21465
|
async handleRenderForPrerender() {
|
|
21413
|
-
if (isUndefined
|
|
21466
|
+
if (isUndefined(this.viewConfig.liveboardId)) {
|
|
21414
21467
|
return this.prerenderGeneric();
|
|
21415
21468
|
}
|
|
21416
21469
|
return super.handleRenderForPrerender();
|
|
@@ -21933,6 +21986,8 @@ let ConversationMessage$1 = class ConversationMessage extends TsEmbed {
|
|
|
21933
21986
|
/**
|
|
21934
21987
|
* Create a conversation embed, which can be integrated inside
|
|
21935
21988
|
* chatbots or other conversational interfaces.
|
|
21989
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
|
|
21990
|
+
* @group Embed components
|
|
21936
21991
|
* @example
|
|
21937
21992
|
* ```js
|
|
21938
21993
|
* import { SpotterAgentEmbed } from '@thoughtspot/visual-embed-sdk';
|
|
@@ -21946,8 +22001,6 @@ let ConversationMessage$1 = class ConversationMessage extends TsEmbed {
|
|
|
21946
22001
|
* // append the container to the DOM
|
|
21947
22002
|
* document.body.appendChild(container); // or to any other element
|
|
21948
22003
|
* ```
|
|
21949
|
-
* @group Embed components
|
|
21950
|
-
* @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
|
|
21951
22004
|
*/
|
|
21952
22005
|
class SpotterAgentEmbed {
|
|
21953
22006
|
constructor(viewConfig) {
|
|
@@ -22019,31 +22072,9 @@ function getViewPropsAndListeners(props) {
|
|
|
22019
22072
|
});
|
|
22020
22073
|
}
|
|
22021
22074
|
|
|
22022
|
-
/**
|
|
22023
|
-
* Checks if `value` is `undefined`.
|
|
22024
|
-
*
|
|
22025
|
-
* @static
|
|
22026
|
-
* @since 0.1.0
|
|
22027
|
-
* @memberOf _
|
|
22028
|
-
* @category Lang
|
|
22029
|
-
* @param {*} value The value to check.
|
|
22030
|
-
* @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
|
|
22031
|
-
* @example
|
|
22032
|
-
*
|
|
22033
|
-
* _.isUndefined(void 0);
|
|
22034
|
-
* // => true
|
|
22035
|
-
*
|
|
22036
|
-
* _.isUndefined(null);
|
|
22037
|
-
* // => false
|
|
22038
|
-
*/
|
|
22039
|
-
function isUndefined(value) {
|
|
22040
|
-
return value === undefined;
|
|
22041
|
-
}
|
|
22042
|
-
|
|
22043
|
-
var isUndefined_1 = isUndefined;
|
|
22044
|
-
|
|
22045
22075
|
/**
|
|
22046
22076
|
* Embed ThoughtSpot AI Conversation.
|
|
22077
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
|
|
22047
22078
|
* @group Embed components
|
|
22048
22079
|
* @example
|
|
22049
22080
|
* ```js
|
|
@@ -22055,7 +22086,6 @@ var isUndefined_1 = isUndefined;
|
|
|
22055
22086
|
* });
|
|
22056
22087
|
* conversation.render();
|
|
22057
22088
|
* ```
|
|
22058
|
-
* @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
|
|
22059
22089
|
*/
|
|
22060
22090
|
let SpotterEmbed$1 = class SpotterEmbed extends TsEmbed {
|
|
22061
22091
|
constructor(container, viewConfig) {
|
|
@@ -22071,7 +22101,11 @@ let SpotterEmbed$1 = class SpotterEmbed extends TsEmbed {
|
|
|
22071
22101
|
getEmbedParamsObject() {
|
|
22072
22102
|
const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, updatedSpotterChatPrompt, spotterSidebarConfig, spotterChatConfig, } = this.viewConfig;
|
|
22073
22103
|
// Extract sidebar config properties
|
|
22074
|
-
const { enablePastConversationsSidebar, spotterSidebarTitle, spotterSidebarDefaultExpanded, spotterChatRenameLabel, spotterChatDeleteLabel, spotterDeleteConversationModalTitle, spotterPastConversationAlertMessage, spotterDocumentationUrl, spotterBestPracticesLabel, spotterConversationsBatchSize, spotterNewChatButtonTitle, } = spotterSidebarConfig || {};
|
|
22104
|
+
const { enablePastConversationsSidebar: sidebarEnablePastConversationsSidebar, spotterSidebarTitle, spotterSidebarDefaultExpanded, spotterChatRenameLabel, spotterChatDeleteLabel, spotterDeleteConversationModalTitle, spotterPastConversationAlertMessage, spotterDocumentationUrl, spotterBestPracticesLabel, spotterConversationsBatchSize, spotterNewChatButtonTitle, } = spotterSidebarConfig || {};
|
|
22105
|
+
const resolvedEnablePastConversationsSidebar = resolveEnablePastConversationsSidebar({
|
|
22106
|
+
spotterSidebarConfigValue: sidebarEnablePastConversationsSidebar,
|
|
22107
|
+
standaloneValue: this.viewConfig.enablePastConversationsSidebar,
|
|
22108
|
+
});
|
|
22075
22109
|
if (!worksheetId) {
|
|
22076
22110
|
this.handleError({
|
|
22077
22111
|
errorType: ErrorDetailsTypes.VALIDATION_ERROR,
|
|
@@ -22089,6 +22123,7 @@ let SpotterEmbed$1 = class SpotterEmbed extends TsEmbed {
|
|
|
22089
22123
|
setParamIfDefined(queryParams, Param.ShowSpotterLimitations, showSpotterLimitations, true);
|
|
22090
22124
|
setParamIfDefined(queryParams, Param.HideSampleQuestions, hideSampleQuestions, true);
|
|
22091
22125
|
setParamIfDefined(queryParams, Param.UpdatedSpotterChatPrompt, updatedSpotterChatPrompt, true);
|
|
22126
|
+
setParamIfDefined(queryParams, Param.EnablePastConversationsSidebar, resolvedEnablePastConversationsSidebar, true);
|
|
22092
22127
|
setParamIfDefined(queryParams, Param.SpotterSidebarDefaultExpanded, spotterSidebarDefaultExpanded, true);
|
|
22093
22128
|
// String params
|
|
22094
22129
|
setParamIfDefined(queryParams, Param.SpotterSidebarTitle, spotterSidebarTitle);
|
|
@@ -22123,13 +22158,9 @@ let SpotterEmbed$1 = class SpotterEmbed extends TsEmbed {
|
|
|
22123
22158
|
return queryParams;
|
|
22124
22159
|
}
|
|
22125
22160
|
getIframeSrc() {
|
|
22126
|
-
const { worksheetId, searchOptions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL,
|
|
22161
|
+
const { worksheetId, searchOptions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, } = this.viewConfig;
|
|
22127
22162
|
const path = 'insights/conv-assist';
|
|
22128
22163
|
const queryParams = this.getEmbedParamsObject();
|
|
22129
|
-
const enablePastConversationsSidebar = spotterSidebarConfig === null || spotterSidebarConfig === void 0 ? void 0 : spotterSidebarConfig.enablePastConversationsSidebar;
|
|
22130
|
-
if (!isUndefined_1(enablePastConversationsSidebar)) {
|
|
22131
|
-
queryParams[Param.EnablePastConversationsSidebar] = !!enablePastConversationsSidebar;
|
|
22132
|
-
}
|
|
22133
22164
|
let query = '';
|
|
22134
22165
|
const queryParamsString = getQueryParamString(queryParams, true);
|
|
22135
22166
|
if (queryParamsString) {
|
|
@@ -22158,8 +22189,9 @@ let SpotterEmbed$1 = class SpotterEmbed extends TsEmbed {
|
|
|
22158
22189
|
};
|
|
22159
22190
|
/**
|
|
22160
22191
|
* Embed ThoughtSpot AI Conversation.
|
|
22161
|
-
* @deprecated from SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
22162
22192
|
* Use {@link SpotterEmbed} instead
|
|
22193
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
|
|
22194
|
+
* @deprecated from SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
22163
22195
|
* @group Embed components
|
|
22164
22196
|
* @example
|
|
22165
22197
|
* ```js
|
|
@@ -22171,7 +22203,6 @@ let SpotterEmbed$1 = class SpotterEmbed extends TsEmbed {
|
|
|
22171
22203
|
* });
|
|
22172
22204
|
* conversation.render();
|
|
22173
22205
|
* ```
|
|
22174
|
-
* @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
|
|
22175
22206
|
*/
|
|
22176
22207
|
let ConversationEmbed$1 = class ConversationEmbed extends SpotterEmbed$1 {
|
|
22177
22208
|
constructor(container, viewConfig) {
|
|
@@ -22236,7 +22267,6 @@ isPreRenderedComponent = false) => React__default.forwardRef((props, forwardedRe
|
|
|
22236
22267
|
});
|
|
22237
22268
|
handleRendering(tsEmbed);
|
|
22238
22269
|
if (forwardedRef) {
|
|
22239
|
-
// eslint-disable-next-line no-param-reassign
|
|
22240
22270
|
forwardedRef.current = tsEmbed;
|
|
22241
22271
|
}
|
|
22242
22272
|
return () => {
|
|
@@ -22264,7 +22294,7 @@ const PreRenderedSearchEmbed = componentFactory(SearchEmbed$1, true);
|
|
|
22264
22294
|
* React component for Full app Embed.
|
|
22265
22295
|
* @example
|
|
22266
22296
|
* ```tsx
|
|
22267
|
-
* function
|
|
22297
|
+
* function App() {
|
|
22268
22298
|
* return <AppEmbed
|
|
22269
22299
|
* showPrimaryNavbar={false}
|
|
22270
22300
|
* pageId={Page.Liveboards}
|
|
@@ -22275,9 +22305,9 @@ const PreRenderedSearchEmbed = componentFactory(SearchEmbed$1, true);
|
|
|
22275
22305
|
*/
|
|
22276
22306
|
const AppEmbed = componentFactory(AppEmbed$1);
|
|
22277
22307
|
/**
|
|
22278
|
-
* React component for PreRendered
|
|
22308
|
+
* React component for PreRendered App embed.
|
|
22279
22309
|
*
|
|
22280
|
-
* PreRenderedAppEmbed will preRender the
|
|
22310
|
+
* PreRenderedAppEmbed will preRender the AppEmbed and will be hidden by
|
|
22281
22311
|
* default.
|
|
22282
22312
|
*
|
|
22283
22313
|
* AppEmbed with preRenderId passed will call showPreRender on the embed.
|
|
@@ -22317,7 +22347,7 @@ const PinboardEmbed = LiveboardEmbed;
|
|
|
22317
22347
|
* LiveboardEmbed with preRenderId passed will call showPreRender on the embed.
|
|
22318
22348
|
*
|
|
22319
22349
|
* If LiveboardEmbed is rendered before PreRenderedLiveboardEmbed is rendered it
|
|
22320
|
-
* tries to preRender the LiveboardEmbed, so it is recommended to
|
|
22350
|
+
* tries to preRender the LiveboardEmbed, so it is recommended to pass the
|
|
22321
22351
|
* liveboardId to both the components.
|
|
22322
22352
|
* @example
|
|
22323
22353
|
* ```tsx
|
|
@@ -22346,7 +22376,7 @@ const PreRenderedPinboardEmbed = PreRenderedLiveboardEmbed;
|
|
|
22346
22376
|
*/
|
|
22347
22377
|
const SearchBarEmbed = componentFactory(SearchBarEmbed$1);
|
|
22348
22378
|
/**
|
|
22349
|
-
* React component for PreRendered
|
|
22379
|
+
* React component for PreRendered SearchBar embed.
|
|
22350
22380
|
*
|
|
22351
22381
|
* PreRenderedSearchBarEmbed will preRender the SearchBarEmbed and will be hidden by
|
|
22352
22382
|
* default.
|
|
@@ -22378,9 +22408,9 @@ const PreRenderedSearchBarEmbed = componentFactory(SearchBarEmbed$1, true);
|
|
|
22378
22408
|
*/
|
|
22379
22409
|
const SageEmbed = componentFactory(SageEmbed$1);
|
|
22380
22410
|
/**
|
|
22381
|
-
* React component for PreRendered
|
|
22411
|
+
* React component for PreRendered Sage embed.
|
|
22382
22412
|
*
|
|
22383
|
-
* PreRenderedSageEmbed will preRender the
|
|
22413
|
+
* PreRenderedSageEmbed will preRender the SageEmbed and will be hidden by
|
|
22384
22414
|
* default.
|
|
22385
22415
|
*
|
|
22386
22416
|
* SageEmbed with preRenderId passed will call showPreRender on the embed.
|
|
@@ -22414,8 +22444,8 @@ const PreRenderedSageEmbed = componentFactory(SageEmbed$1, true);
|
|
|
22414
22444
|
const SpotterEmbed = componentFactory(SpotterEmbed$1);
|
|
22415
22445
|
/**
|
|
22416
22446
|
* React component for LLM based conversation BI.
|
|
22417
|
-
* @deprecated from SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
22418
22447
|
* Use {@link SpotterEmbed} instead
|
|
22448
|
+
* @deprecated from SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
22419
22449
|
* @example
|
|
22420
22450
|
* ```tsx
|
|
22421
22451
|
* function Sage() {
|
|
@@ -22437,6 +22467,7 @@ const ConversationMessage = componentFactory(ConversationMessage$1);
|
|
|
22437
22467
|
* This component renders a single message response from your ThoughtSpot conversation,
|
|
22438
22468
|
* showing charts, visualizations, or text responses based on the user's query.
|
|
22439
22469
|
*
|
|
22470
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.11.0.cl
|
|
22440
22471
|
* @example
|
|
22441
22472
|
* ```tsx
|
|
22442
22473
|
* const { sendMessage } = useSpotterAgent({ worksheetId: 'worksheetId' });
|
|
@@ -22453,7 +22484,6 @@ const ConversationMessage = componentFactory(ConversationMessage$1);
|
|
|
22453
22484
|
* />
|
|
22454
22485
|
* }
|
|
22455
22486
|
* ```
|
|
22456
|
-
* @version SDK: 1.39.0 | ThoughtSpot: 10.11.0.cl
|
|
22457
22487
|
*/
|
|
22458
22488
|
const SpotterMessage = React__default.forwardRef((props, ref) => {
|
|
22459
22489
|
const { message, query: _, ...otherProps } = props;
|
|
@@ -22465,7 +22495,7 @@ const SpotterMessage = React__default.forwardRef((props, ref) => {
|
|
|
22465
22495
|
* PreRenderedConversationEmbed will preRender the SpotterEmbed and will be hidden by
|
|
22466
22496
|
* default.
|
|
22467
22497
|
*
|
|
22468
|
-
*
|
|
22498
|
+
* SpotterEmbed with preRenderId passed will call showPreRender on the embed.
|
|
22469
22499
|
* @example
|
|
22470
22500
|
* ```tsx
|
|
22471
22501
|
* function LandingPageComponent() {
|
|
@@ -22499,6 +22529,7 @@ function useEmbedRef() {
|
|
|
22499
22529
|
}
|
|
22500
22530
|
/**
|
|
22501
22531
|
*
|
|
22532
|
+
* @version SDK: 1.36.2 | ThoughtSpot: *
|
|
22502
22533
|
* @param config - EmbedConfig
|
|
22503
22534
|
* @returns AuthEventEmitter
|
|
22504
22535
|
* @example
|
|
@@ -22508,7 +22539,6 @@ function useEmbedRef() {
|
|
|
22508
22539
|
* return <LiveboardEmbed ref={ref} liveboardId={<id>} />
|
|
22509
22540
|
* }
|
|
22510
22541
|
* ```
|
|
22511
|
-
* @version SDK: 1.36.2 | ThoughtSpot: *
|
|
22512
22542
|
*/
|
|
22513
22543
|
function useInit(config) {
|
|
22514
22544
|
const ref = useRef(null);
|
|
@@ -22524,6 +22554,7 @@ function useInit(config) {
|
|
|
22524
22554
|
* This hook provides a sendMessage function that allows you to send natural language
|
|
22525
22555
|
* queries to your data and get back AI-generated responses with visualizations.
|
|
22526
22556
|
*
|
|
22557
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.11.0.cl
|
|
22527
22558
|
* @param config - Configuration object containing worksheetId and other options
|
|
22528
22559
|
* @returns Object with sendMessage function that returns conversation results
|
|
22529
22560
|
* @example
|
|
@@ -22541,7 +22572,6 @@ function useInit(config) {
|
|
|
22541
22572
|
* }
|
|
22542
22573
|
* };
|
|
22543
22574
|
* ```
|
|
22544
|
-
* @version SDK: 1.39.0 | ThoughtSpot: 10.11.0.cl
|
|
22545
22575
|
*/
|
|
22546
22576
|
function useSpotterAgent(config) {
|
|
22547
22577
|
const serviceRef = useRef(null);
|