@thoughtspot/visual-embed-sdk 1.42.1-alpha.6 → 1.42.2
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 +3 -2
- package/cjs/src/css-variables.d.ts +0 -48
- package/cjs/src/css-variables.d.ts.map +1 -1
- package/cjs/src/embed/app.d.ts +20 -0
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +9 -4
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +62 -0
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.d.ts +1 -1
- package/cjs/src/embed/conversation.d.ts +16 -0
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +5 -2
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +25 -1
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/hostEventClient/contracts.d.ts +1 -11
- package/cjs/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/contracts.js +0 -1
- package/cjs/src/embed/hostEventClient/contracts.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +5 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +46 -0
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/sage.d.ts +4 -4
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +1 -3
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +0 -2
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +14 -42
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/errors.js +1 -1
- package/cjs/src/errors.js.map +1 -1
- package/cjs/src/index.d.ts +2 -2
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +1 -2
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/react/all-types-export.d.ts +1 -1
- package/cjs/src/react/all-types-export.d.ts.map +1 -1
- package/cjs/src/react/all-types-export.js +3 -2
- package/cjs/src/react/all-types-export.js.map +1 -1
- package/cjs/src/react/util.d.ts +1 -0
- package/cjs/src/react/util.d.ts.map +1 -1
- package/cjs/src/types.d.ts +58 -93
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +21 -46
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/custom-actions.d.ts.map +1 -1
- package/cjs/src/utils/custom-actions.js +9 -0
- package/cjs/src/utils/custom-actions.js.map +1 -1
- package/cjs/src/utils/custom-actions.spec.js +20 -0
- package/cjs/src/utils/custom-actions.spec.js.map +1 -1
- package/cjs/src/utils/processData.d.ts +1 -1
- package/cjs/src/utils/processData.d.ts.map +1 -1
- package/cjs/src/utils/processData.js +8 -8
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils/processData.spec.js.map +1 -1
- package/dist/{index-DvNA626T.js → index-CjbriUI0.js} +1 -1
- package/dist/src/css-variables.d.ts +0 -48
- package/dist/src/css-variables.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +20 -0
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/bodyless-conversation.d.ts +1 -1
- package/dist/src/embed/conversation.d.ts +16 -0
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/hostEventClient/contracts.d.ts +1 -11
- package/dist/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts +4 -4
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +0 -2
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/react/all-types-export.d.ts +1 -1
- package/dist/src/react/all-types-export.d.ts.map +1 -1
- package/dist/src/react/util.d.ts +1 -0
- package/dist/src/react/util.d.ts.map +1 -1
- package/dist/src/types.d.ts +58 -93
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/custom-actions.d.ts.map +1 -1
- package/dist/src/utils/processData.d.ts +1 -1
- package/dist/src/utils/processData.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +84 -219
- package/dist/tsembed-react.js +228 -439
- package/dist/tsembed.es.js +85 -220
- package/dist/tsembed.js +228 -439
- package/dist/visual-embed-sdk-react-full.d.ts +104 -160
- package/dist/visual-embed-sdk-react.d.ts +95 -155
- package/dist/visual-embed-sdk.d.ts +95 -158
- package/lib/package.json +3 -2
- package/lib/src/css-variables.d.ts +0 -48
- package/lib/src/css-variables.d.ts.map +1 -1
- package/lib/src/embed/app.d.ts +20 -0
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +9 -4
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +62 -0
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.d.ts +1 -1
- package/lib/src/embed/conversation.d.ts +16 -0
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +5 -2
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +25 -1
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/hostEventClient/contracts.d.ts +1 -11
- package/lib/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/contracts.js +0 -1
- package/lib/src/embed/hostEventClient/contracts.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +5 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +47 -1
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/sage.d.ts +4 -4
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +1 -3
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +0 -2
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +14 -42
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/errors.js +1 -1
- package/lib/src/errors.js.map +1 -1
- package/lib/src/index.d.ts +2 -2
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +2 -2
- package/lib/src/index.js.map +1 -1
- package/lib/src/react/all-types-export.d.ts +1 -1
- package/lib/src/react/all-types-export.d.ts.map +1 -1
- package/lib/src/react/all-types-export.js +1 -1
- package/lib/src/react/all-types-export.js.map +1 -1
- package/lib/src/react/util.d.ts +1 -0
- package/lib/src/react/util.d.ts.map +1 -1
- package/lib/src/types.d.ts +58 -93
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +20 -45
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/custom-actions.d.ts.map +1 -1
- package/lib/src/utils/custom-actions.js +9 -0
- package/lib/src/utils/custom-actions.js.map +1 -1
- package/lib/src/utils/custom-actions.spec.js +20 -0
- package/lib/src/utils/custom-actions.spec.js.map +1 -1
- package/lib/src/utils/processData.d.ts +1 -1
- package/lib/src/utils/processData.d.ts.map +1 -1
- package/lib/src/utils/processData.js +8 -8
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/processData.spec.js.map +1 -1
- package/package.json +3 -2
- package/src/css-variables.ts +0 -58
- package/src/embed/app.spec.ts +87 -0
- package/src/embed/app.ts +35 -4
- package/src/embed/bodyless-conversation.ts +1 -1
- package/src/embed/conversation.spec.ts +35 -1
- package/src/embed/conversation.ts +22 -0
- package/src/embed/hostEventClient/contracts.ts +0 -10
- package/src/embed/liveboard.spec.ts +60 -0
- package/src/embed/liveboard.ts +9 -0
- package/src/embed/sage.ts +4 -4
- package/src/embed/search.ts +1 -3
- package/src/embed/ts-embed.spec.ts +7 -7
- package/src/embed/ts-embed.ts +31 -67
- package/src/errors.ts +1 -1
- package/src/index.ts +0 -2
- package/src/react/all-types-export.ts +2 -1
- package/src/types.ts +56 -94
- package/src/utils/custom-actions.spec.ts +22 -0
- package/src/utils/custom-actions.ts +11 -0
- package/src/utils/processData.spec.ts +1 -0
- package/src/utils/processData.ts +11 -11
- package/cjs/src/api-intercept.d.ts +0 -31
- package/cjs/src/api-intercept.d.ts.map +0 -1
- package/cjs/src/api-intercept.js +0 -117
- package/cjs/src/api-intercept.js.map +0 -1
- package/cjs/src/api-intercept.spec.d.ts +0 -2
- package/cjs/src/api-intercept.spec.d.ts.map +0 -1
- package/cjs/src/api-intercept.spec.js +0 -122
- package/cjs/src/api-intercept.spec.js.map +0 -1
- package/dist/index-BCC3Z072.js +0 -7371
- package/dist/index-BEzW4MDA.js +0 -7371
- package/dist/index-BaESA9rq.js +0 -7371
- package/dist/index-CFNZIcKr.js +0 -7447
- package/dist/index-DFnPKcjZ.js +0 -7447
- package/dist/index-DhFH7b7U.js +0 -7447
- package/dist/src/api-intercept.d.ts +0 -31
- package/dist/src/api-intercept.d.ts.map +0 -1
- package/dist/src/api-intercept.spec.d.ts +0 -2
- package/dist/src/api-intercept.spec.d.ts.map +0 -1
- package/lib/src/api-intercept.d.ts +0 -31
- package/lib/src/api-intercept.d.ts.map +0 -1
- package/lib/src/api-intercept.js +0 -110
- package/lib/src/api-intercept.js.map +0 -1
- package/lib/src/api-intercept.spec.d.ts +0 -2
- package/lib/src/api-intercept.spec.d.ts.map +0 -1
- package/lib/src/api-intercept.spec.js +0 -119
- package/lib/src/api-intercept.spec.js.map +0 -1
- package/src/api-intercept.ts +0 -136
|
@@ -393,30 +393,14 @@ export interface CustomCssVariables {
|
|
|
393
393
|
* Background color of checkbox.
|
|
394
394
|
*/
|
|
395
395
|
"--ts-var-checkbox-background-color"?: string;
|
|
396
|
-
/**
|
|
397
|
-
* Height of the tiles in the Liveboard.
|
|
398
|
-
*/
|
|
399
|
-
"--ts-var-viz-tile-height"?: string;
|
|
400
396
|
/**
|
|
401
397
|
* Background color of the layout in the Liveboard.
|
|
402
398
|
*/
|
|
403
399
|
"--ts-var-liveboard-layout-background"?: string;
|
|
404
|
-
/**
|
|
405
|
-
* Font color of the title of the layout in the Liveboard.
|
|
406
|
-
*/
|
|
407
|
-
"--ts-var-liveboard-layout-title-color"?: string;
|
|
408
|
-
/**
|
|
409
|
-
* Font size of the title of the layout in the Liveboard.
|
|
410
|
-
*/
|
|
411
|
-
"--ts-var-liveboard-layout-title-fontsize"?: string;
|
|
412
400
|
/**
|
|
413
401
|
* Background color of the header in the Liveboard.
|
|
414
402
|
*/
|
|
415
403
|
"--ts-var-liveboard-header-background"?: string;
|
|
416
|
-
/**
|
|
417
|
-
* Font size of the header in the Liveboard.
|
|
418
|
-
*/
|
|
419
|
-
"--ts-var-liveboard-header-fontsize"?: string;
|
|
420
404
|
/**
|
|
421
405
|
* Font color of the header in the Liveboard.
|
|
422
406
|
*/
|
|
@@ -447,12 +431,6 @@ export interface CustomCssVariables {
|
|
|
447
431
|
* Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
|
|
448
432
|
*/
|
|
449
433
|
"--ts-var-liveboard-group-padding"?: string;
|
|
450
|
-
/**
|
|
451
|
-
* Padding of the title of the groups in the Liveboard.
|
|
452
|
-
*
|
|
453
|
-
* Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
|
|
454
|
-
*/
|
|
455
|
-
"--ts-var-liveboard-group-title-padding"?: string;
|
|
456
434
|
/**
|
|
457
435
|
* Font size of the title of the groups in the Liveboard.
|
|
458
436
|
*
|
|
@@ -477,24 +455,6 @@ export interface CustomCssVariables {
|
|
|
477
455
|
* Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
|
|
478
456
|
*/
|
|
479
457
|
"--ts-var-liveboard-group-tile-title-font-weight"?: string;
|
|
480
|
-
/**
|
|
481
|
-
* Font size of the description of the groups in the Liveboard.
|
|
482
|
-
*
|
|
483
|
-
* Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
|
|
484
|
-
*/
|
|
485
|
-
"--ts-var-liveboard-group-description-font-size"?: string;
|
|
486
|
-
/**
|
|
487
|
-
* Font weight of the description of the groups in the Liveboard.
|
|
488
|
-
*
|
|
489
|
-
* Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
|
|
490
|
-
*/
|
|
491
|
-
"--ts-var-liveboard-group-description-font-weight"?: string;
|
|
492
|
-
/**
|
|
493
|
-
* Border of the group tiles in the Liveboard.
|
|
494
|
-
*
|
|
495
|
-
* Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
|
|
496
|
-
*/
|
|
497
|
-
"--ts-var-liveboard-group-tile-border"?: string;
|
|
498
458
|
/**
|
|
499
459
|
* Padding of the group tiles in the Liveboard.
|
|
500
460
|
*
|
|
@@ -615,14 +575,6 @@ export interface CustomCssVariables {
|
|
|
615
575
|
* Font weight of the title of the tiles in the Liveboard.
|
|
616
576
|
*/
|
|
617
577
|
"--ts-var-liveboard-tile-title-fontweight"?: string;
|
|
618
|
-
/**
|
|
619
|
-
* Font weight of the description of the tiles in the Liveboard.
|
|
620
|
-
*/
|
|
621
|
-
"--ts-var-liveboard-tile-description-font-weight"?: string;
|
|
622
|
-
/**
|
|
623
|
-
* Opacity of the description of the tiles in the Liveboard.
|
|
624
|
-
*/
|
|
625
|
-
"--ts-var-liveboard-tile-description-opacity"?: string;
|
|
626
578
|
/**
|
|
627
579
|
* Background color of the parameter chips in the Liveboard.
|
|
628
580
|
*/
|
|
@@ -1204,7 +1156,7 @@ export interface CustomisationsInterface {
|
|
|
1204
1156
|
* if a trusted authentication server is used.
|
|
1205
1157
|
* @group Authentication / Init
|
|
1206
1158
|
*/
|
|
1207
|
-
export interface EmbedConfig
|
|
1159
|
+
export interface EmbedConfig {
|
|
1208
1160
|
/**
|
|
1209
1161
|
* The ThoughtSpot cluster hostname or IP address.
|
|
1210
1162
|
*/
|
|
@@ -1577,7 +1529,7 @@ export interface FrameParams {
|
|
|
1577
1529
|
/**
|
|
1578
1530
|
* The common configuration object for an embedded view.
|
|
1579
1531
|
*/
|
|
1580
|
-
export interface BaseViewConfig
|
|
1532
|
+
export interface BaseViewConfig {
|
|
1581
1533
|
/**
|
|
1582
1534
|
* @hidden
|
|
1583
1535
|
*/
|
|
@@ -2359,6 +2311,24 @@ export interface LiveboardAppEmbedViewConfig {
|
|
|
2359
2311
|
* ```
|
|
2360
2312
|
*/
|
|
2361
2313
|
liveboardXLSXCSVDownload?: boolean;
|
|
2314
|
+
/**
|
|
2315
|
+
* This flag is used to enable or disable the new centralized Liveboard filter UX (v2).
|
|
2316
|
+
* When enabled, a unified modal is used to manage and update multiple filters at once,
|
|
2317
|
+
* replacing the older individual filter interactions.
|
|
2318
|
+
* To enable this feature on your instance, contact ThoughtSpot Support.
|
|
2319
|
+
*
|
|
2320
|
+
* Supported embed types: `AppEmbed`, `LiveboardEmbed`
|
|
2321
|
+
* @version SDK: 1.42.0 | ThoughtSpot: 10.15.0.cl
|
|
2322
|
+
* @example
|
|
2323
|
+
* ```js
|
|
2324
|
+
* // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
|
|
2325
|
+
* const embed = new <EmbedComponent>('#tsEmbed', {
|
|
2326
|
+
* ... // other embed view config
|
|
2327
|
+
* isCentralizedLiveboardFilterUXEnabled: true,
|
|
2328
|
+
* })
|
|
2329
|
+
* ```
|
|
2330
|
+
*/
|
|
2331
|
+
isCentralizedLiveboardFilterUXEnabled?: boolean;
|
|
2362
2332
|
/**
|
|
2363
2333
|
* This flag is used to enable or disable the link parameters in liveboard.
|
|
2364
2334
|
*
|
|
@@ -2374,6 +2344,21 @@ export interface LiveboardAppEmbedViewConfig {
|
|
|
2374
2344
|
* ```
|
|
2375
2345
|
*/
|
|
2376
2346
|
isLinkParametersEnabled?: boolean;
|
|
2347
|
+
/**
|
|
2348
|
+
* This flag is used to enable or disable the enhanced filter interactivity in liveboard.
|
|
2349
|
+
*
|
|
2350
|
+
* Supported embed types: `AppEmbed`, `LiveboardEmbed`
|
|
2351
|
+
* @version SDK: 1.42.0 | ThoughtSpot: 10.15.0.cl
|
|
2352
|
+
* @example
|
|
2353
|
+
* ```js
|
|
2354
|
+
* // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
|
|
2355
|
+
* const embed = new <EmbedComponent>('#tsEmbed', {
|
|
2356
|
+
* ... // other embed view config
|
|
2357
|
+
* isEnhancedFilterInteractivityEnabled: true,
|
|
2358
|
+
* })
|
|
2359
|
+
* ```
|
|
2360
|
+
*/
|
|
2361
|
+
isEnhancedFilterInteractivityEnabled?: boolean;
|
|
2377
2362
|
}
|
|
2378
2363
|
export interface AllEmbedViewConfig extends BaseViewConfig, SearchLiveboardCommonViewConfig, HomePageConfig, LiveboardAppEmbedViewConfig {
|
|
2379
2364
|
}
|
|
@@ -3584,7 +3569,7 @@ export declare enum EmbedEvent {
|
|
|
3584
3569
|
* the table visualization.
|
|
3585
3570
|
*
|
|
3586
3571
|
* If the Row-Level Security (RLS) rules are applied on the
|
|
3587
|
-
*
|
|
3572
|
+
* Model, exercise caution when changing column
|
|
3588
3573
|
* or table cell values to maintain data security.
|
|
3589
3574
|
*
|
|
3590
3575
|
* @example
|
|
@@ -3642,7 +3627,7 @@ export declare enum EmbedEvent {
|
|
|
3642
3627
|
*/
|
|
3643
3628
|
SpotterData = "SpotterData",
|
|
3644
3629
|
/**
|
|
3645
|
-
* Emitted when user opens up the
|
|
3630
|
+
* Emitted when user opens up the data source preview modal in Spotter embed.
|
|
3646
3631
|
* @example
|
|
3647
3632
|
* ```js
|
|
3648
3633
|
* spotterEmbed.on(EmbedEvent.PreviewSpotterData, (payload) => {
|
|
@@ -3729,22 +3714,7 @@ export declare enum EmbedEvent {
|
|
|
3729
3714
|
* ```
|
|
3730
3715
|
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
3731
3716
|
*/
|
|
3732
|
-
OrgSwitched = "orgSwitched"
|
|
3733
|
-
/**
|
|
3734
|
-
* Emitted when the user intercepts a URL.
|
|
3735
|
-
*
|
|
3736
|
-
* Supported on all embed types.
|
|
3737
|
-
*
|
|
3738
|
-
* @example
|
|
3739
|
-
* ```js
|
|
3740
|
-
* embed.on(EmbedEvent.ApiIntercept, (payload) => {
|
|
3741
|
-
* console.log('payload', payload);
|
|
3742
|
-
* })
|
|
3743
|
-
* ```
|
|
3744
|
-
*
|
|
3745
|
-
* @version SDK: 1.42.0 | ThoughtSpot: 10.14.0.cl
|
|
3746
|
-
*/
|
|
3747
|
-
ApiIntercept = "ApiIntercept"
|
|
3717
|
+
OrgSwitched = "orgSwitched"
|
|
3748
3718
|
}
|
|
3749
3719
|
/**
|
|
3750
3720
|
* Event types that can be triggered by the host application
|
|
@@ -3882,9 +3852,7 @@ export declare enum HostEvent {
|
|
|
3882
3852
|
*/
|
|
3883
3853
|
Reload = "reload",
|
|
3884
3854
|
/**
|
|
3885
|
-
* Get iframe URL for the current embed view
|
|
3886
|
-
* Developers can use this URL to embed a ThoughtSpot object
|
|
3887
|
-
* in apps like Salesforce or Sharepoint.
|
|
3855
|
+
* Get iframe URL for the current embed view.
|
|
3888
3856
|
* @example
|
|
3889
3857
|
* ```js
|
|
3890
3858
|
* const url = embed.trigger(HostEvent.GetIframeUrl);
|
|
@@ -4956,7 +4924,7 @@ export declare enum HostEvent {
|
|
|
4956
4924
|
*/
|
|
4957
4925
|
EditLastPrompt = "EditLastPrompt",
|
|
4958
4926
|
/**
|
|
4959
|
-
* Opens the
|
|
4927
|
+
* Opens the data source preview modal in Spotter Embed.
|
|
4960
4928
|
* @example
|
|
4961
4929
|
* ```js
|
|
4962
4930
|
* spotterEmbed.trigger(HostEvent.PreviewSpotterData);
|
|
@@ -5149,7 +5117,7 @@ export declare enum Action {
|
|
|
5149
5117
|
*/
|
|
5150
5118
|
SchedulesList = "schedule-list",
|
|
5151
5119
|
/**
|
|
5152
|
-
* The **Share** action on a Liveboard, Answer, or
|
|
5120
|
+
* The **Share** action on a Liveboard, Answer, or Model.
|
|
5153
5121
|
* Allows users to share an object with other users and groups.
|
|
5154
5122
|
* @example
|
|
5155
5123
|
* ```js
|
|
@@ -5607,7 +5575,7 @@ export declare enum Action {
|
|
|
5607
5575
|
AnswerChartSwitcher = "answerChartSwitcher",
|
|
5608
5576
|
/**
|
|
5609
5577
|
* The Favorites icon (*) for Answers,
|
|
5610
|
-
* Liveboard, and data objects like
|
|
5578
|
+
* Liveboard, and data objects like Model,
|
|
5611
5579
|
* Tables and Views.
|
|
5612
5580
|
* Allows adding an object to the user's favorites list.
|
|
5613
5581
|
* @example
|
|
@@ -6340,7 +6308,17 @@ export declare enum Action {
|
|
|
6340
6308
|
* ```
|
|
6341
6309
|
* @version SDK: 1.42.0 | ThoughtSpot Cloud: 10.14.0.cl
|
|
6342
6310
|
*/
|
|
6343
|
-
RemoveAttachment = "removeAttachment"
|
|
6311
|
+
RemoveAttachment = "removeAttachment",
|
|
6312
|
+
/**
|
|
6313
|
+
* The **Style panel** on a Liveboard.
|
|
6314
|
+
* Controls the visibility of the Liveboard style panel.
|
|
6315
|
+
* @example
|
|
6316
|
+
* ```js
|
|
6317
|
+
* hiddenActions: [Action.LiveboardStylePanel]
|
|
6318
|
+
* ```
|
|
6319
|
+
* @version SDK: 1.43.0 | ThoughtSpot Cloud: 10.15.0.cl
|
|
6320
|
+
*/
|
|
6321
|
+
LiveboardStylePanel = "liveboardStylePanel"
|
|
6344
6322
|
}
|
|
6345
6323
|
declare enum ContextMenuTriggerOptions {
|
|
6346
6324
|
LEFT_CLICK = "left-click",
|
|
@@ -6493,68 +6471,6 @@ export interface DefaultAppInitData {
|
|
|
6493
6471
|
hiddenListColumns: ListPageColumns[];
|
|
6494
6472
|
customActions: CustomAction[];
|
|
6495
6473
|
}
|
|
6496
|
-
declare enum InterceptedApiType {
|
|
6497
|
-
/**
|
|
6498
|
-
* The apis that are use to get the metadata for the embed
|
|
6499
|
-
*/
|
|
6500
|
-
METADATA = "METADATA",
|
|
6501
|
-
/**
|
|
6502
|
-
* The apis that are use to get the data for the embed
|
|
6503
|
-
*/
|
|
6504
|
-
ANSWER_DATA = "ANSWER_DATA",
|
|
6505
|
-
/**
|
|
6506
|
-
* This will intercept all the apis
|
|
6507
|
-
*/
|
|
6508
|
-
ALL = "ALL",
|
|
6509
|
-
/**
|
|
6510
|
-
* The apis that are use to get the data for the liveboard
|
|
6511
|
-
*/
|
|
6512
|
-
LIVEBOARD_DATA = "LIVEBOARD_DATA"
|
|
6513
|
-
}
|
|
6514
|
-
export type InterceptV2Flags = {
|
|
6515
|
-
/**
|
|
6516
|
-
* Enable intercepting the apis
|
|
6517
|
-
*
|
|
6518
|
-
* @example
|
|
6519
|
-
* ```js
|
|
6520
|
-
* const embed = new LiveboardEmbed('#embed', {
|
|
6521
|
-
* ...viewConfig,
|
|
6522
|
-
* enableApiIntercept: true,
|
|
6523
|
-
* interceptUrls: [InterceptedApiType.DATA],
|
|
6524
|
-
* })
|
|
6525
|
-
* ```
|
|
6526
|
-
*
|
|
6527
|
-
*/
|
|
6528
|
-
enableApiIntercept?: boolean;
|
|
6529
|
-
/**
|
|
6530
|
-
* The apis to intercept
|
|
6531
|
-
*
|
|
6532
|
-
* @example
|
|
6533
|
-
* ```js
|
|
6534
|
-
* const embed = new LiveboardEmbed('#embed', {
|
|
6535
|
-
* ...viewConfig,
|
|
6536
|
-
* enableApiIntercept: true,
|
|
6537
|
-
* interceptUrls: [InterceptedApiType.DATA],
|
|
6538
|
-
* })
|
|
6539
|
-
* ```
|
|
6540
|
-
*/
|
|
6541
|
-
interceptUrls?: (string | InterceptedApiType)[];
|
|
6542
|
-
/**
|
|
6543
|
-
* The timeout for the intercept, default is 30000ms
|
|
6544
|
-
* the api will error out if the timeout is reached
|
|
6545
|
-
*
|
|
6546
|
-
* @example
|
|
6547
|
-
* ```js
|
|
6548
|
-
* const embed = new LiveboardEmbed('#embed', {
|
|
6549
|
-
* ...viewConfig,
|
|
6550
|
-
* enableApiIntercept: true,
|
|
6551
|
-
* interceptUrls: [InterceptedApiType.ALL],
|
|
6552
|
-
* interceptTimeout: 1000,
|
|
6553
|
-
* })
|
|
6554
|
-
* ```
|
|
6555
|
-
*/
|
|
6556
|
-
interceptTimeout?: number;
|
|
6557
|
-
};
|
|
6558
6474
|
declare enum AuthFailureType {
|
|
6559
6475
|
SDK = "SDK",
|
|
6560
6476
|
NO_COOKIE_ACCESS = "NO_COOKIE_ACCESS",
|
|
@@ -6650,8 +6566,7 @@ declare enum UIPassthroughEvent {
|
|
|
6650
6566
|
GetDiscoverabilityStatus = "getDiscoverabilityStatus",
|
|
6651
6567
|
GetAvailableUIPassthroughs = "getAvailableUiPassthroughs",
|
|
6652
6568
|
GetAnswerConfig = "getAnswerPageConfig",
|
|
6653
|
-
GetLiveboardConfig = "getPinboardPageConfig"
|
|
6654
|
-
GetUnsavedAnswerTML = "getUnsavedAnswerTML"
|
|
6569
|
+
GetLiveboardConfig = "getPinboardPageConfig"
|
|
6655
6570
|
}
|
|
6656
6571
|
export type UIPassthroughContractBase = {
|
|
6657
6572
|
[UIPassthroughEvent.PinAnswerToLiveboard]: {
|
|
@@ -6706,15 +6621,6 @@ export type UIPassthroughContractBase = {
|
|
|
6706
6621
|
request: any;
|
|
6707
6622
|
response: any;
|
|
6708
6623
|
};
|
|
6709
|
-
[UIPassthroughEvent.GetUnsavedAnswerTML]: {
|
|
6710
|
-
request: {
|
|
6711
|
-
sessionId?: string;
|
|
6712
|
-
vizId?: string;
|
|
6713
|
-
};
|
|
6714
|
-
response: {
|
|
6715
|
-
tml: string;
|
|
6716
|
-
};
|
|
6717
|
-
};
|
|
6718
6624
|
};
|
|
6719
6625
|
export type UIPassthroughRequest<T extends keyof UIPassthroughContractBase> = UIPassthroughContractBase[T]["request"];
|
|
6720
6626
|
export type UIPassthroughResponse<T extends keyof UIPassthroughContractBase> = UIPassthroughContractBase[T]["response"];
|
|
@@ -6870,7 +6776,6 @@ declare class TsEmbed {
|
|
|
6870
6776
|
* work regardless of auth status
|
|
6871
6777
|
*/
|
|
6872
6778
|
private subscribeToNetworkEvents;
|
|
6873
|
-
private messageEventListener;
|
|
6874
6779
|
/**
|
|
6875
6780
|
* Subscribe to message events that depend on successful iframe setup
|
|
6876
6781
|
*/
|
|
@@ -6957,7 +6862,6 @@ declare class TsEmbed {
|
|
|
6957
6862
|
* @param height The height in pixels
|
|
6958
6863
|
*/
|
|
6959
6864
|
protected setIFrameHeight(height: number | string): void;
|
|
6960
|
-
protected createEmbedEventResponder: (eventPort: MessagePort | void, eventType: EmbedEvent) => (payload: any) => void;
|
|
6961
6865
|
/**
|
|
6962
6866
|
* Executes all registered event handlers for a particular event type
|
|
6963
6867
|
* @param eventType The event type
|
|
@@ -7687,12 +7591,12 @@ export interface SageViewConfig extends SearchLiveboardCommonViewConfig, Omit<Ba
|
|
|
7687
7591
|
*/
|
|
7688
7592
|
hideSageAnswerHeader?: boolean;
|
|
7689
7593
|
/**
|
|
7690
|
-
* Disable the
|
|
7594
|
+
* Disable the data source selection option.
|
|
7691
7595
|
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
7692
7596
|
*/
|
|
7693
7597
|
disableWorksheetChange?: boolean;
|
|
7694
7598
|
/**
|
|
7695
|
-
* Hide the
|
|
7599
|
+
* Hide the data source selection panel.
|
|
7696
7600
|
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
7697
7601
|
*/
|
|
7698
7602
|
hideWorksheetSelector?: boolean;
|
|
@@ -7710,7 +7614,7 @@ export interface SageViewConfig extends SearchLiveboardCommonViewConfig, Omit<Ba
|
|
|
7710
7614
|
showObjectSuggestions?: boolean;
|
|
7711
7615
|
/**
|
|
7712
7616
|
* Show or hide sample questions.
|
|
7713
|
-
* The sample questions are autogenerated based on the
|
|
7617
|
+
* The sample questions are autogenerated based on the data Model.
|
|
7714
7618
|
* selected for the search operation.
|
|
7715
7619
|
*
|
|
7716
7620
|
* Supported embed types: `SageEmbed`
|
|
@@ -7725,7 +7629,7 @@ export interface SageViewConfig extends SearchLiveboardCommonViewConfig, Omit<Ba
|
|
|
7725
7629
|
*/
|
|
7726
7630
|
hideSampleQuestions?: boolean;
|
|
7727
7631
|
/**
|
|
7728
|
-
* The data source GUID (
|
|
7632
|
+
* The data source GUID (Model GUID) to set on load.
|
|
7729
7633
|
*/
|
|
7730
7634
|
dataSource?: string;
|
|
7731
7635
|
/**
|
|
@@ -8100,6 +8004,26 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
8100
8004
|
* ```
|
|
8101
8005
|
*/
|
|
8102
8006
|
tag?: string;
|
|
8007
|
+
/**
|
|
8008
|
+
* Hide tag filter chips that appear when content is filtered by tags.
|
|
8009
|
+
* When enabled, this automatically:
|
|
8010
|
+
* - Hides tag filter indicators/chips from the UI
|
|
8011
|
+
*
|
|
8012
|
+
* This provides a clean interface without tag-related UI elements.
|
|
8013
|
+
*
|
|
8014
|
+
* Supported embed types: `AppEmbed`
|
|
8015
|
+
* @version SDK: 1.44.0 | ThoughtSpot: 10.15.0.cl
|
|
8016
|
+
* @example
|
|
8017
|
+
* ```js
|
|
8018
|
+
* // Simple usage - automatically hides all tag-related UI
|
|
8019
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
8020
|
+
* ... // other embed view config
|
|
8021
|
+
* tag: 'Some Tag',
|
|
8022
|
+
* hideTagFilterChips: true, // This is all you need!
|
|
8023
|
+
* });
|
|
8024
|
+
* ```
|
|
8025
|
+
*/
|
|
8026
|
+
hideTagFilterChips?: boolean;
|
|
8103
8027
|
/**
|
|
8104
8028
|
* The array of GUIDs to be hidden
|
|
8105
8029
|
*
|
|
@@ -8841,7 +8765,7 @@ declare class LiveboardEmbed extends V1Embed {
|
|
|
8841
8765
|
*/
|
|
8842
8766
|
export interface SpotterAgentEmbedViewConfig extends Omit<BaseViewConfig, "primaryAction"> {
|
|
8843
8767
|
/**
|
|
8844
|
-
* The ID of the
|
|
8768
|
+
* The ID of the Model to use for the conversation.
|
|
8845
8769
|
*/
|
|
8846
8770
|
worksheetId: string;
|
|
8847
8771
|
}
|
|
@@ -9025,6 +8949,22 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, "primaryAct
|
|
|
9025
8949
|
* @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
|
|
9026
8950
|
*/
|
|
9027
8951
|
excludeRuntimeParametersfromURL?: boolean;
|
|
8952
|
+
/**
|
|
8953
|
+
* enablePastConversationsSidebar : Controls the visibility of the past conversations
|
|
8954
|
+
* sidebar.
|
|
8955
|
+
*
|
|
8956
|
+
* Supported embed types: `SpotterEmbed`
|
|
8957
|
+
* @default false
|
|
8958
|
+
* @example
|
|
8959
|
+
* ```js
|
|
8960
|
+
* const embed = new SpotterEmbed('#tsEmbed', {
|
|
8961
|
+
* ... //other embed view config
|
|
8962
|
+
* enablePastConversationsSidebar : true,
|
|
8963
|
+
* })
|
|
8964
|
+
* ```
|
|
8965
|
+
* @version SDK: 1.43.0 | ThoughtSpot: 10.14.0.cl
|
|
8966
|
+
*/
|
|
8967
|
+
enablePastConversationsSidebar?: boolean;
|
|
9028
8968
|
}
|
|
9029
8969
|
/**
|
|
9030
8970
|
* The configuration for the embedded spotterEmbed options.
|