@thoughtspot/visual-embed-sdk 1.38.1 → 1.39.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/package.json +1 -1
- package/cjs/src/embed/app.d.ts +13 -13
- package/cjs/src/embed/conversation.d.ts +4 -4
- package/cjs/src/embed/embedConfig.d.ts +47 -4
- package/cjs/src/embed/embedConfig.d.ts.map +1 -1
- package/cjs/src/embed/embedConfig.js +47 -4
- package/cjs/src/embed/embedConfig.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +2 -2
- package/cjs/src/embed/liveboard.js +1 -1
- package/cjs/src/embed/sage.d.ts +10 -10
- package/cjs/src/embed/search.d.ts +4 -4
- package/cjs/src/types.d.ts +7 -6
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +6 -5
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-BKIWUvTr.js → index-JaFaxrvQ.js} +1 -1
- package/dist/src/embed/app.d.ts +13 -13
- package/dist/src/embed/conversation.d.ts +4 -4
- package/dist/src/embed/embedConfig.d.ts +47 -4
- package/dist/src/embed/embedConfig.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +2 -2
- package/dist/src/embed/sage.d.ts +10 -10
- package/dist/src/embed/search.d.ts +4 -4
- package/dist/src/types.d.ts +7 -6
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +57 -13
- package/dist/tsembed-react.js +56 -12
- package/dist/tsembed.es.js +57 -13
- package/dist/tsembed.js +56 -12
- package/dist/visual-embed-sdk-react-full.d.ts +87 -43
- package/dist/visual-embed-sdk-react.d.ts +87 -43
- package/dist/visual-embed-sdk.d.ts +87 -43
- package/lib/package.json +1 -1
- package/lib/src/embed/app.d.ts +13 -13
- package/lib/src/embed/conversation.d.ts +4 -4
- package/lib/src/embed/embedConfig.d.ts +47 -4
- package/lib/src/embed/embedConfig.d.ts.map +1 -1
- package/lib/src/embed/embedConfig.js +47 -4
- package/lib/src/embed/embedConfig.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +2 -2
- package/lib/src/embed/liveboard.js +1 -1
- package/lib/src/embed/sage.d.ts +10 -10
- package/lib/src/embed/search.d.ts +4 -4
- package/lib/src/types.d.ts +7 -6
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +6 -5
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +87 -43
- package/package.json +1 -1
- package/src/embed/app.ts +13 -13
- package/src/embed/conversation.ts +4 -4
- package/src/embed/embedConfig.ts +48 -5
- package/src/embed/liveboard.ts +2 -2
- package/src/embed/sage.ts +10 -10
- package/src/embed/search.ts +4 -4
- package/src/types.ts +7 -6
|
@@ -155,7 +155,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
155
155
|
*
|
|
156
156
|
* Supported embed types: `AppEmbed`
|
|
157
157
|
* @default true
|
|
158
|
-
* @version SDK: 1.2.0 |
|
|
158
|
+
* @version SDK: 1.2.0 | ThoughtSpot: 8.4.0.cl
|
|
159
159
|
* @example
|
|
160
160
|
* ```js
|
|
161
161
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -177,7 +177,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
177
177
|
*
|
|
178
178
|
* Supported embed types: `AppEmbed`
|
|
179
179
|
* @default false
|
|
180
|
-
* @version SDK: 1.28.0 |
|
|
180
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
181
181
|
* @example
|
|
182
182
|
* ```js
|
|
183
183
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -193,7 +193,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
193
193
|
*
|
|
194
194
|
* Supported embed types: `AppEmbed`
|
|
195
195
|
* @default false
|
|
196
|
-
* @version SDK: 1.2.0 |
|
|
196
|
+
* @version SDK: 1.2.0 | ThoughtSpot: 8.4.0.cl
|
|
197
197
|
* @example
|
|
198
198
|
* ```js
|
|
199
199
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -276,7 +276,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
276
276
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
277
277
|
*
|
|
278
278
|
* Supported embed types: `AppEmbed`
|
|
279
|
-
* @version SDK: 1.28.0 |
|
|
279
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
280
280
|
* @default false
|
|
281
281
|
* @example
|
|
282
282
|
* ```js
|
|
@@ -296,7 +296,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
296
296
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
297
297
|
*
|
|
298
298
|
* Supported embed types: `AppEmbed`
|
|
299
|
-
* @version SDK: 1.28.0 |
|
|
299
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
300
300
|
* @default true
|
|
301
301
|
* @example
|
|
302
302
|
* ```js
|
|
@@ -317,7 +317,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
317
317
|
* you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
|
|
318
318
|
*
|
|
319
319
|
* Supported embed types: `AppEmbed`
|
|
320
|
-
* @version SDK: 1.1.0 |
|
|
320
|
+
* @version SDK: 1.1.0 | ThoughtSpot: 9.4.0.cl
|
|
321
321
|
* @example
|
|
322
322
|
* ```js
|
|
323
323
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -335,7 +335,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
335
335
|
* path within the app, use the `path` attribute which is more flexible.
|
|
336
336
|
*
|
|
337
337
|
* Supported embed types: `AppEmbed`
|
|
338
|
-
* @version SDK: 1.1.0 |
|
|
338
|
+
* @version SDK: 1.1.0 | ThoughtSpot: 9.4.0.cl
|
|
339
339
|
* @example
|
|
340
340
|
* ```js
|
|
341
341
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -351,7 +351,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
351
351
|
* tag.
|
|
352
352
|
*
|
|
353
353
|
* Supported embed types: `AppEmbed`
|
|
354
|
-
* @version SDK: 1.1.0 |
|
|
354
|
+
* @version SDK: 1.1.0 | ThoughtSpot: 9.4.0.cl
|
|
355
355
|
* @example
|
|
356
356
|
* ```js
|
|
357
357
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -430,7 +430,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
430
430
|
*
|
|
431
431
|
* Supported embed types: `AppEmbed`
|
|
432
432
|
* @default false
|
|
433
|
-
* @version SDK: 1.28.0 |
|
|
433
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
434
434
|
* @example
|
|
435
435
|
* ```js
|
|
436
436
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -460,7 +460,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
460
460
|
discoveryExperience?: DiscoveryExperience;
|
|
461
461
|
/**
|
|
462
462
|
* To set the initial state of the search bar in case of saved-answers.
|
|
463
|
-
* @version SDK: 1.32.0 |
|
|
463
|
+
* @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
|
|
464
464
|
* @default false
|
|
465
465
|
* @deprecated Use {@link collapseSearchBar} instead
|
|
466
466
|
*/
|
|
@@ -474,7 +474,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
474
474
|
* - EXPAND_FIRST: Expand the first accordion and collapse the rest.
|
|
475
475
|
*
|
|
476
476
|
* Supported embed types: `AppEmbed`
|
|
477
|
-
* @version SDK: 1.32.0 |
|
|
477
|
+
* @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
|
|
478
478
|
* @default DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL
|
|
479
479
|
* @example
|
|
480
480
|
* ```js
|
|
@@ -488,14 +488,14 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
488
488
|
dataPanelCustomGroupsAccordionInitialState?: DataPanelCustomColumnGroupsAccordionState;
|
|
489
489
|
/**
|
|
490
490
|
* Flag that allows using `EmbedEvent.OnBeforeGetVizDataIntercept`.
|
|
491
|
-
* @version SDK : 1.29.0 |
|
|
491
|
+
* @version SDK : 1.29.0 | ThoughtSpot: 10.1.0.cl
|
|
492
492
|
*/
|
|
493
493
|
isOnBeforeGetVizDataInterceptEnabled?: boolean;
|
|
494
494
|
/**
|
|
495
495
|
* Flag to use home page search bar mode
|
|
496
496
|
*
|
|
497
497
|
* Supported embed types: `AppEmbed`
|
|
498
|
-
* @version SDK : 1.33.0 |
|
|
498
|
+
* @version SDK : 1.33.0 | ThoughtSpot: 10.3.0.cl
|
|
499
499
|
*/
|
|
500
500
|
homePageSearchBarMode?: HomePageSearchBarMode;
|
|
501
501
|
/**
|
|
@@ -910,7 +910,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
|
|
|
910
910
|
* Show or hide the tab panel of the embedded Liveboard.
|
|
911
911
|
*
|
|
912
912
|
* Supported embed types: `LiveboardEmbed`
|
|
913
|
-
* @version SDK: 1.25.0 |
|
|
913
|
+
* @version SDK: 1.25.0 | ThoughtSpot: 9.6.0.cl, 9.8.0.sw
|
|
914
914
|
* @example
|
|
915
915
|
* ```js
|
|
916
916
|
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
@@ -1099,7 +1099,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
|
|
|
1099
1099
|
navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string): void;
|
|
1100
1100
|
/**
|
|
1101
1101
|
* Returns the full url of the Liveboard/visualization which can be used to open
|
|
1102
|
-
* this Liveboard inside the full
|
|
1102
|
+
* this Liveboard inside the full ThoughtSpot application in a new tab.
|
|
1103
1103
|
* @returns url string
|
|
1104
1104
|
*/
|
|
1105
1105
|
getLiveboardUrl(): string;
|
|
@@ -1363,7 +1363,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
1363
1363
|
/**
|
|
1364
1364
|
* To set the initial state of the search bar in case of saved-answers.
|
|
1365
1365
|
* @default false
|
|
1366
|
-
* @version SDK: 1.32.0 |
|
|
1366
|
+
* @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
|
|
1367
1367
|
* @deprecated Use {@link collapseSearchBar} instead
|
|
1368
1368
|
*/
|
|
1369
1369
|
collapseSearchBarInitially?: boolean;
|
|
@@ -1371,7 +1371,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
1371
1371
|
* Flag to enable onBeforeSearchExecute Embed Event
|
|
1372
1372
|
*
|
|
1373
1373
|
* Supported embed types: `SearchEmbed`
|
|
1374
|
-
* @version: SDK: 1.29.0 |
|
|
1374
|
+
* @version: SDK: 1.29.0 | ThoughtSpot: 10.1.0.cl
|
|
1375
1375
|
*/
|
|
1376
1376
|
isOnBeforeGetVizDataInterceptEnabled?: boolean;
|
|
1377
1377
|
/**
|
|
@@ -1383,7 +1383,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
1383
1383
|
* - EXPAND_FIRST: Expand the first accordion and collapse the rest.
|
|
1384
1384
|
*
|
|
1385
1385
|
* Supported embed types: `SearchEmbed`
|
|
1386
|
-
* @version SDK: 1.32.0 |
|
|
1386
|
+
* @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
|
|
1387
1387
|
* @default DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL
|
|
1388
1388
|
* @example
|
|
1389
1389
|
* ```js
|
|
@@ -1400,7 +1400,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
1400
1400
|
* lands on search embed page.
|
|
1401
1401
|
*
|
|
1402
1402
|
* Supported embed types: `SearchEmbed`
|
|
1403
|
-
* @version SDK: 1.32.0 |
|
|
1403
|
+
* @version SDK: 1.32.0 | ThoughtSpot: 10.3.0.cl
|
|
1404
1404
|
* @default true
|
|
1405
1405
|
* @example
|
|
1406
1406
|
* ```js
|
|
@@ -1700,7 +1700,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/conversation' {
|
|
|
1700
1700
|
* disableSourceSelection : true,
|
|
1701
1701
|
* })
|
|
1702
1702
|
* ```
|
|
1703
|
-
* @version SDK: 1.36.0 |
|
|
1703
|
+
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
1704
1704
|
*/
|
|
1705
1705
|
disableSourceSelection?: boolean;
|
|
1706
1706
|
/**
|
|
@@ -1714,7 +1714,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/conversation' {
|
|
|
1714
1714
|
* hideSourceSelection : true,
|
|
1715
1715
|
* })
|
|
1716
1716
|
* ```
|
|
1717
|
-
* @version SDK: 1.36.0 |
|
|
1717
|
+
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
1718
1718
|
*/
|
|
1719
1719
|
hideSourceSelection?: boolean;
|
|
1720
1720
|
/**
|
|
@@ -1746,7 +1746,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/conversation' {
|
|
|
1746
1746
|
* showSpotterLimitations : true,
|
|
1747
1747
|
* })
|
|
1748
1748
|
* ```
|
|
1749
|
-
* @version SDK: 1.36.0 |
|
|
1749
|
+
* @version SDK: 1.36.0 | ThoughtSpot: 10.5.0.cl
|
|
1750
1750
|
*/
|
|
1751
1751
|
showSpotterLimitations?: boolean;
|
|
1752
1752
|
/**
|
|
@@ -1761,7 +1761,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/conversation' {
|
|
|
1761
1761
|
* hideSampleQuestions : true,
|
|
1762
1762
|
* })
|
|
1763
1763
|
* ```
|
|
1764
|
-
* @version SDK: 1.36.0 |
|
|
1764
|
+
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
1765
1765
|
*/
|
|
1766
1766
|
hideSampleQuestions?: boolean;
|
|
1767
1767
|
}
|
|
@@ -2378,7 +2378,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2378
2378
|
* Configuration to define the customization on the Embedded
|
|
2379
2379
|
* ThoughtSpot components.
|
|
2380
2380
|
* You can customize styles, text strings, and icons.
|
|
2381
|
-
* For more information, see https://developers.thoughtspot.com/docs/custom-css.
|
|
2381
|
+
* For more information, see link:https://developers.thoughtspot.com/docs/custom-css[CSS customization framework].
|
|
2382
2382
|
* @example
|
|
2383
2383
|
* ```js
|
|
2384
2384
|
* init({
|
|
@@ -4608,7 +4608,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4608
4608
|
*
|
|
4609
4609
|
* error: Developers can customize the error message text when `execute`
|
|
4610
4610
|
* returns `false` using the error parameter in responder.
|
|
4611
|
-
* @version SDK : 1.29.0 | ThoughtSpot
|
|
4611
|
+
* @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
|
|
4612
4612
|
* @example
|
|
4613
4613
|
*```js
|
|
4614
4614
|
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
@@ -4655,7 +4655,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4655
4655
|
* console.log('payload', payload);
|
|
4656
4656
|
* })
|
|
4657
4657
|
*```
|
|
4658
|
-
* @version SDK : 1.29.0 | ThoughtSpot
|
|
4658
|
+
* @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
|
|
4659
4659
|
*/
|
|
4660
4660
|
ParameterChanged = "parameterChanged",
|
|
4661
4661
|
/**
|
|
@@ -4711,18 +4711,18 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4711
4711
|
* console.log('payload', payload);
|
|
4712
4712
|
* })
|
|
4713
4713
|
*```
|
|
4714
|
-
* @version SDK : 1.37.0 | ThoughtSpot
|
|
4714
|
+
* @version SDK : 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
4715
4715
|
*/
|
|
4716
4716
|
CreateLiveboard = "createLiveboard",
|
|
4717
4717
|
/**
|
|
4718
4718
|
* Emitted when a user creates a Model.
|
|
4719
|
-
* @version SDK : 1.37.0 | ThoughtSpot
|
|
4719
|
+
* @version SDK : 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
4720
4720
|
*/
|
|
4721
4721
|
CreateModel = "createModel",
|
|
4722
4722
|
/**
|
|
4723
4723
|
* @hidden
|
|
4724
4724
|
* Emitted when a user exits present mode.
|
|
4725
|
-
* @version SDK : 1.40.0 | ThoughtSpot
|
|
4725
|
+
* @version SDK : 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
4726
4726
|
*/
|
|
4727
4727
|
ExitPresentMode = "exitPresentMode"
|
|
4728
4728
|
}
|
|
@@ -5966,6 +5966,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
5966
5966
|
* hiddenActions: [Action.Edit, ActionAction.Explore],
|
|
5967
5967
|
* })
|
|
5968
5968
|
* ```
|
|
5969
|
+
* See also link:https://developers.thoughtspot.com/docs/actions[Action IDs in the SDK]
|
|
5969
5970
|
*/
|
|
5970
5971
|
export enum Action {
|
|
5971
5972
|
/**
|
|
@@ -7756,39 +7757,39 @@ declare module '@thoughtspot/visual-embed-sdk/embed/sage' {
|
|
|
7756
7757
|
showObjectResults?: boolean;
|
|
7757
7758
|
/**
|
|
7758
7759
|
* flag used by the TS product tour page to show the blue search bar
|
|
7759
|
-
* even after the search is completed. This is different from
|
|
7760
|
+
* even after the search is completed. This is different from ThoughtSpot Embedded
|
|
7760
7761
|
* Sage Embed experience where it mimics closer to the non-embed case.
|
|
7761
7762
|
* The Sample questions container is collapsed when this value is set after
|
|
7762
7763
|
* does a search.
|
|
7763
|
-
* @version SDK: 1.26.0 |
|
|
7764
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl
|
|
7764
7765
|
* @hidden
|
|
7765
7766
|
*/
|
|
7766
7767
|
isProductTour?: boolean;
|
|
7767
7768
|
/**
|
|
7768
7769
|
* Show or hide the search bar title.
|
|
7769
|
-
* @version SDK: 1.29.0 |
|
|
7770
|
-
* @deprecated
|
|
7770
|
+
* @version SDK: 1.29.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
7771
|
+
* @deprecated ThoughtSpot: 9.10.0.cl | search bar doesn't have the title from 9.10.0.cl
|
|
7771
7772
|
*/
|
|
7772
7773
|
hideSearchBarTitle?: boolean;
|
|
7773
7774
|
/**
|
|
7774
7775
|
* Show or hide the Answer header, that is, the `AI Answer` title
|
|
7775
7776
|
* at the top of the Answer page.
|
|
7776
|
-
* @version SDK: 1.26.0 |
|
|
7777
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.10.0.cl
|
|
7777
7778
|
*/
|
|
7778
7779
|
hideSageAnswerHeader?: boolean;
|
|
7779
7780
|
/**
|
|
7780
7781
|
* Disable the worksheet selection option.
|
|
7781
|
-
* @version SDK: 1.26.0 |
|
|
7782
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
7782
7783
|
*/
|
|
7783
7784
|
disableWorksheetChange?: boolean;
|
|
7784
7785
|
/**
|
|
7785
7786
|
* Hide the worksheet selection panel.
|
|
7786
|
-
* @version SDK: 1.26.0 |
|
|
7787
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
7787
7788
|
*/
|
|
7788
7789
|
hideWorksheetSelector?: boolean;
|
|
7789
7790
|
/**
|
|
7790
7791
|
* Show or hide autocomplete suggestions for the search query string.
|
|
7791
|
-
* @version SDK: 1.26.0 |
|
|
7792
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
7792
7793
|
*/
|
|
7793
7794
|
hideAutocompleteSuggestions?: boolean;
|
|
7794
7795
|
/**
|
|
@@ -7804,7 +7805,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/sage' {
|
|
|
7804
7805
|
* selected for the search operation.
|
|
7805
7806
|
*
|
|
7806
7807
|
* Supported embed types: `SageEmbed`
|
|
7807
|
-
* @version SDK: 1.26.0 |
|
|
7808
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
7808
7809
|
* @example
|
|
7809
7810
|
* ```js
|
|
7810
7811
|
* const embed = new SageEmbed('#tsEmbed', {
|
|
@@ -7837,7 +7838,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/sage' {
|
|
|
7837
7838
|
* executeSearch: true,
|
|
7838
7839
|
* }
|
|
7839
7840
|
* ```
|
|
7840
|
-
* @version SDK: 1.26.0 |
|
|
7841
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
7841
7842
|
*/
|
|
7842
7843
|
searchOptions?: SearchOptions;
|
|
7843
7844
|
}
|
|
@@ -8076,9 +8077,52 @@ declare module '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answer
|
|
|
8076
8077
|
declare module '@thoughtspot/visual-embed-sdk/embed/embedConfig' {
|
|
8077
8078
|
import { EmbedConfig } from '@thoughtspot/visual-embed-sdk/types';
|
|
8078
8079
|
/**
|
|
8079
|
-
* Gets the configuration
|
|
8080
|
-
*
|
|
8081
|
-
* @
|
|
8080
|
+
* Gets the embed configuration settings that were used to
|
|
8081
|
+
* initialize the SDK.
|
|
8082
|
+
* @returns {@link EmbedConfig}
|
|
8083
|
+
*
|
|
8084
|
+
* @example
|
|
8085
|
+
* ```js
|
|
8086
|
+
* const config = getInitConfig();
|
|
8087
|
+
* console.log(config);
|
|
8088
|
+
* ```
|
|
8089
|
+
* @example
|
|
8090
|
+
*
|
|
8091
|
+
* Returns the `EmbedConfig` object, which
|
|
8092
|
+
* contains the configuration settings used to
|
|
8093
|
+
* initialize the SDK, including the following:
|
|
8094
|
+
*
|
|
8095
|
+
* - `thoughtSpotHost` - ThoughtSpot host URL
|
|
8096
|
+
* - `authType`: The authentication method used. For example,
|
|
8097
|
+
* `AuthServerCookieless` for `AuthType.TrustedAuthTokenCookieless`
|
|
8098
|
+
* - `customizations` - Style, text, and icon customization settings
|
|
8099
|
+
* that were applied during the SDK initialization.
|
|
8100
|
+
*
|
|
8101
|
+
* For a comprehensive list of embed configuration settings,
|
|
8102
|
+
* see link:https://developers.thoughtspot.com/docs/Interface_EmbedConfig[Developer Documentation].
|
|
8103
|
+
*
|
|
8104
|
+
* ```json
|
|
8105
|
+
* {
|
|
8106
|
+
* "thoughtSpotHost": "https://{ThoughtSpot-Host}",
|
|
8107
|
+
* "authType": "AuthServerCookieless",
|
|
8108
|
+
* "customizations": {
|
|
8109
|
+
* "style": {
|
|
8110
|
+
* "customCSS": {
|
|
8111
|
+
* "variables": {
|
|
8112
|
+
* "--ts-var-button--secondary-background": "#7492d5",
|
|
8113
|
+
* "--ts-var-button--secondary--hovers-background": "#aac2f8",
|
|
8114
|
+
* "--ts-var-root-background": "#f1f4f8"
|
|
8115
|
+
* }
|
|
8116
|
+
* }
|
|
8117
|
+
* }
|
|
8118
|
+
* },
|
|
8119
|
+
* "loginFailedMessage": "Login failed, please try again",
|
|
8120
|
+
* "authTriggerText": "Authorize",
|
|
8121
|
+
* "disableTokenVerification": true,
|
|
8122
|
+
* "authTriggerContainer": "#your-own-div"
|
|
8123
|
+
* }
|
|
8124
|
+
* ```
|
|
8125
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.cl, and later
|
|
8082
8126
|
* @group Global methods
|
|
8083
8127
|
*/
|
|
8084
8128
|
export const getEmbedConfig: () => EmbedConfig;
|
|
@@ -8086,7 +8130,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/embedConfig' {
|
|
|
8086
8130
|
* Sets the configuration embed was initialized with.
|
|
8087
8131
|
* And returns the new configuration.
|
|
8088
8132
|
* @param newConfig The configuration to set.
|
|
8089
|
-
* @version SDK: 1.27.0 | ThoughtSpot:
|
|
8133
|
+
* @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.1.sw, and later
|
|
8090
8134
|
* @group Global methods
|
|
8091
8135
|
*/
|
|
8092
8136
|
export const setEmbedConfig: (newConfig: EmbedConfig) => any;
|
package/package.json
CHANGED
package/src/embed/app.ts
CHANGED
|
@@ -136,7 +136,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
136
136
|
*
|
|
137
137
|
* Supported embed types: `AppEmbed`
|
|
138
138
|
* @default true
|
|
139
|
-
* @version SDK: 1.2.0 |
|
|
139
|
+
* @version SDK: 1.2.0 | ThoughtSpot: 8.4.0.cl
|
|
140
140
|
* @example
|
|
141
141
|
* ```js
|
|
142
142
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -158,7 +158,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
158
158
|
*
|
|
159
159
|
* Supported embed types: `AppEmbed`
|
|
160
160
|
* @default false
|
|
161
|
-
* @version SDK: 1.28.0 |
|
|
161
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
162
162
|
* @example
|
|
163
163
|
* ```js
|
|
164
164
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -174,7 +174,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
174
174
|
*
|
|
175
175
|
* Supported embed types: `AppEmbed`
|
|
176
176
|
* @default false
|
|
177
|
-
* @version SDK: 1.2.0 |
|
|
177
|
+
* @version SDK: 1.2.0 | ThoughtSpot: 8.4.0.cl
|
|
178
178
|
* @example
|
|
179
179
|
* ```js
|
|
180
180
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -257,7 +257,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
257
257
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
258
258
|
*
|
|
259
259
|
* Supported embed types: `AppEmbed`
|
|
260
|
-
* @version SDK: 1.28.0 |
|
|
260
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
261
261
|
* @default false
|
|
262
262
|
* @example
|
|
263
263
|
* ```js
|
|
@@ -277,7 +277,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
277
277
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
278
278
|
*
|
|
279
279
|
* Supported embed types: `AppEmbed`
|
|
280
|
-
* @version SDK: 1.28.0 |
|
|
280
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
281
281
|
* @default true
|
|
282
282
|
* @example
|
|
283
283
|
* ```js
|
|
@@ -298,7 +298,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
298
298
|
* you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
|
|
299
299
|
*
|
|
300
300
|
* Supported embed types: `AppEmbed`
|
|
301
|
-
* @version SDK: 1.1.0 |
|
|
301
|
+
* @version SDK: 1.1.0 | ThoughtSpot: 9.4.0.cl
|
|
302
302
|
* @example
|
|
303
303
|
* ```js
|
|
304
304
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -316,7 +316,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
316
316
|
* path within the app, use the `path` attribute which is more flexible.
|
|
317
317
|
*
|
|
318
318
|
* Supported embed types: `AppEmbed`
|
|
319
|
-
* @version SDK: 1.1.0 |
|
|
319
|
+
* @version SDK: 1.1.0 | ThoughtSpot: 9.4.0.cl
|
|
320
320
|
* @example
|
|
321
321
|
* ```js
|
|
322
322
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -332,7 +332,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
332
332
|
* tag.
|
|
333
333
|
*
|
|
334
334
|
* Supported embed types: `AppEmbed`
|
|
335
|
-
* @version SDK: 1.1.0 |
|
|
335
|
+
* @version SDK: 1.1.0 | ThoughtSpot: 9.4.0.cl
|
|
336
336
|
* @example
|
|
337
337
|
* ```js
|
|
338
338
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -411,7 +411,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
411
411
|
*
|
|
412
412
|
* Supported embed types: `AppEmbed`
|
|
413
413
|
* @default false
|
|
414
|
-
* @version SDK: 1.28.0 |
|
|
414
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
415
415
|
* @example
|
|
416
416
|
* ```js
|
|
417
417
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -441,7 +441,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
441
441
|
discoveryExperience?: DiscoveryExperience;
|
|
442
442
|
/**
|
|
443
443
|
* To set the initial state of the search bar in case of saved-answers.
|
|
444
|
-
* @version SDK: 1.32.0 |
|
|
444
|
+
* @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
|
|
445
445
|
* @default false
|
|
446
446
|
* @deprecated Use {@link collapseSearchBar} instead
|
|
447
447
|
*/
|
|
@@ -455,7 +455,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
455
455
|
* - EXPAND_FIRST: Expand the first accordion and collapse the rest.
|
|
456
456
|
*
|
|
457
457
|
* Supported embed types: `AppEmbed`
|
|
458
|
-
* @version SDK: 1.32.0 |
|
|
458
|
+
* @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
|
|
459
459
|
* @default DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL
|
|
460
460
|
* @example
|
|
461
461
|
* ```js
|
|
@@ -469,14 +469,14 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
469
469
|
dataPanelCustomGroupsAccordionInitialState?: DataPanelCustomColumnGroupsAccordionState;
|
|
470
470
|
/**
|
|
471
471
|
* Flag that allows using `EmbedEvent.OnBeforeGetVizDataIntercept`.
|
|
472
|
-
* @version SDK : 1.29.0 |
|
|
472
|
+
* @version SDK : 1.29.0 | ThoughtSpot: 10.1.0.cl
|
|
473
473
|
*/
|
|
474
474
|
isOnBeforeGetVizDataInterceptEnabled?: boolean;
|
|
475
475
|
/**
|
|
476
476
|
* Flag to use home page search bar mode
|
|
477
477
|
*
|
|
478
478
|
* Supported embed types: `AppEmbed`
|
|
479
|
-
* @version SDK : 1.33.0 |
|
|
479
|
+
* @version SDK : 1.33.0 | ThoughtSpot: 10.3.0.cl
|
|
480
480
|
*/
|
|
481
481
|
homePageSearchBarMode?: HomePageSearchBarMode;
|
|
482
482
|
/**
|
|
@@ -39,7 +39,7 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAct
|
|
|
39
39
|
* disableSourceSelection : true,
|
|
40
40
|
* })
|
|
41
41
|
* ```
|
|
42
|
-
* @version SDK: 1.36.0 |
|
|
42
|
+
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
43
43
|
*/
|
|
44
44
|
disableSourceSelection?: boolean;
|
|
45
45
|
/**
|
|
@@ -53,7 +53,7 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAct
|
|
|
53
53
|
* hideSourceSelection : true,
|
|
54
54
|
* })
|
|
55
55
|
* ```
|
|
56
|
-
* @version SDK: 1.36.0 |
|
|
56
|
+
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
57
57
|
*/
|
|
58
58
|
hideSourceSelection?: boolean;
|
|
59
59
|
/**
|
|
@@ -85,7 +85,7 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAct
|
|
|
85
85
|
* showSpotterLimitations : true,
|
|
86
86
|
* })
|
|
87
87
|
* ```
|
|
88
|
-
* @version SDK: 1.36.0 |
|
|
88
|
+
* @version SDK: 1.36.0 | ThoughtSpot: 10.5.0.cl
|
|
89
89
|
*/
|
|
90
90
|
showSpotterLimitations?: boolean;
|
|
91
91
|
/**
|
|
@@ -100,7 +100,7 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAct
|
|
|
100
100
|
* hideSampleQuestions : true,
|
|
101
101
|
* })
|
|
102
102
|
* ```
|
|
103
|
-
* @version SDK: 1.36.0 |
|
|
103
|
+
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
104
104
|
*/
|
|
105
105
|
hideSampleQuestions?: boolean;
|
|
106
106
|
}
|
package/src/embed/embedConfig.ts
CHANGED
|
@@ -4,9 +4,52 @@ import { EmbedConfig } from '../types';
|
|
|
4
4
|
const configKey = 'embedConfig';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* Gets the configuration
|
|
8
|
-
*
|
|
9
|
-
* @
|
|
7
|
+
* Gets the embed configuration settings that were used to
|
|
8
|
+
* initialize the SDK.
|
|
9
|
+
* @returns {@link EmbedConfig}
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```js
|
|
13
|
+
* const config = getInitConfig();
|
|
14
|
+
* console.log(config);
|
|
15
|
+
* ```
|
|
16
|
+
* @example
|
|
17
|
+
*
|
|
18
|
+
* Returns the `EmbedConfig` object, which
|
|
19
|
+
* contains the configuration settings used to
|
|
20
|
+
* initialize the SDK, including the following:
|
|
21
|
+
*
|
|
22
|
+
* - `thoughtSpotHost` - ThoughtSpot host URL
|
|
23
|
+
* - `authType`: The authentication method used. For example,
|
|
24
|
+
* `AuthServerCookieless` for `AuthType.TrustedAuthTokenCookieless`
|
|
25
|
+
* - `customizations` - Style, text, and icon customization settings
|
|
26
|
+
* that were applied during the SDK initialization.
|
|
27
|
+
*
|
|
28
|
+
* For a comprehensive list of embed configuration settings,
|
|
29
|
+
* see link:https://developers.thoughtspot.com/docs/Interface_EmbedConfig[Developer Documentation].
|
|
30
|
+
*
|
|
31
|
+
* ```json
|
|
32
|
+
* {
|
|
33
|
+
* "thoughtSpotHost": "https://{ThoughtSpot-Host}",
|
|
34
|
+
* "authType": "AuthServerCookieless",
|
|
35
|
+
* "customizations": {
|
|
36
|
+
* "style": {
|
|
37
|
+
* "customCSS": {
|
|
38
|
+
* "variables": {
|
|
39
|
+
* "--ts-var-button--secondary-background": "#7492d5",
|
|
40
|
+
* "--ts-var-button--secondary--hovers-background": "#aac2f8",
|
|
41
|
+
* "--ts-var-root-background": "#f1f4f8"
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
* }
|
|
45
|
+
* },
|
|
46
|
+
* "loginFailedMessage": "Login failed, please try again",
|
|
47
|
+
* "authTriggerText": "Authorize",
|
|
48
|
+
* "disableTokenVerification": true,
|
|
49
|
+
* "authTriggerContainer": "#your-own-div"
|
|
50
|
+
* }
|
|
51
|
+
* ```
|
|
52
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.cl, and later
|
|
10
53
|
* @group Global methods
|
|
11
54
|
*/
|
|
12
55
|
export const getEmbedConfig = (): EmbedConfig => getValueFromWindow(configKey) || ({} as any);
|
|
@@ -15,10 +58,10 @@ export const getEmbedConfig = (): EmbedConfig => getValueFromWindow(configKey) |
|
|
|
15
58
|
* Sets the configuration embed was initialized with.
|
|
16
59
|
* And returns the new configuration.
|
|
17
60
|
* @param newConfig The configuration to set.
|
|
18
|
-
* @version SDK: 1.27.0 | ThoughtSpot:
|
|
61
|
+
* @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.1.sw, and later
|
|
19
62
|
* @group Global methods
|
|
20
63
|
*/
|
|
21
64
|
export const setEmbedConfig = (newConfig: EmbedConfig) => {
|
|
22
65
|
storeValueInWindow(configKey, newConfig);
|
|
23
66
|
return getValueFromWindow(configKey);
|
|
24
|
-
};
|
|
67
|
+
};
|
package/src/embed/liveboard.ts
CHANGED
|
@@ -192,7 +192,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
|
|
|
192
192
|
* Show or hide the tab panel of the embedded Liveboard.
|
|
193
193
|
*
|
|
194
194
|
* Supported embed types: `LiveboardEmbed`
|
|
195
|
-
* @version SDK: 1.25.0 |
|
|
195
|
+
* @version SDK: 1.25.0 | ThoughtSpot: 9.6.0.cl, 9.8.0.sw
|
|
196
196
|
* @example
|
|
197
197
|
* ```js
|
|
198
198
|
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
@@ -674,7 +674,7 @@ export class LiveboardEmbed extends V1Embed {
|
|
|
674
674
|
|
|
675
675
|
/**
|
|
676
676
|
* Returns the full url of the Liveboard/visualization which can be used to open
|
|
677
|
-
* this Liveboard inside the full
|
|
677
|
+
* this Liveboard inside the full ThoughtSpot application in a new tab.
|
|
678
678
|
* @returns url string
|
|
679
679
|
*/
|
|
680
680
|
public getLiveboardUrl(): string {
|