@thoughtspot/visual-embed-sdk 1.39.0 → 1.39.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 +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/embed/ts-embed.d.ts +5 -0
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +16 -1
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +164 -0
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- 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-sSREbWM-.js → index-CmEQfuE3.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/embed/ts-embed.d.ts +5 -0
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/types.d.ts +7 -6
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +73 -14
- package/dist/tsembed-react.js +72 -13
- package/dist/tsembed.es.js +73 -14
- package/dist/tsembed.js +72 -13
- 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/embed/ts-embed.d.ts +5 -0
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +16 -1
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +164 -0
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- 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/embed/ts-embed.spec.ts +225 -0
- package/src/embed/ts-embed.ts +19 -0
- package/src/types.ts +7 -6
|
@@ -132,7 +132,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
132
132
|
*
|
|
133
133
|
* Supported embed types: `AppEmbed`
|
|
134
134
|
* @default true
|
|
135
|
-
* @version SDK: 1.2.0 |
|
|
135
|
+
* @version SDK: 1.2.0 | ThoughtSpot: 8.4.0.cl
|
|
136
136
|
* @example
|
|
137
137
|
* ```js
|
|
138
138
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -154,7 +154,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
154
154
|
*
|
|
155
155
|
* Supported embed types: `AppEmbed`
|
|
156
156
|
* @default false
|
|
157
|
-
* @version SDK: 1.28.0 |
|
|
157
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
158
158
|
* @example
|
|
159
159
|
* ```js
|
|
160
160
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -170,7 +170,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
170
170
|
*
|
|
171
171
|
* Supported embed types: `AppEmbed`
|
|
172
172
|
* @default false
|
|
173
|
-
* @version SDK: 1.2.0 |
|
|
173
|
+
* @version SDK: 1.2.0 | ThoughtSpot: 8.4.0.cl
|
|
174
174
|
* @example
|
|
175
175
|
* ```js
|
|
176
176
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -253,7 +253,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
253
253
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
254
254
|
*
|
|
255
255
|
* Supported embed types: `AppEmbed`
|
|
256
|
-
* @version SDK: 1.28.0 |
|
|
256
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
257
257
|
* @default false
|
|
258
258
|
* @example
|
|
259
259
|
* ```js
|
|
@@ -273,7 +273,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
273
273
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
274
274
|
*
|
|
275
275
|
* Supported embed types: `AppEmbed`
|
|
276
|
-
* @version SDK: 1.28.0 |
|
|
276
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
277
277
|
* @default true
|
|
278
278
|
* @example
|
|
279
279
|
* ```js
|
|
@@ -294,7 +294,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
294
294
|
* you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
|
|
295
295
|
*
|
|
296
296
|
* Supported embed types: `AppEmbed`
|
|
297
|
-
* @version SDK: 1.1.0 |
|
|
297
|
+
* @version SDK: 1.1.0 | ThoughtSpot: 9.4.0.cl
|
|
298
298
|
* @example
|
|
299
299
|
* ```js
|
|
300
300
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -312,7 +312,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
312
312
|
* path within the app, use the `path` attribute which is more flexible.
|
|
313
313
|
*
|
|
314
314
|
* Supported embed types: `AppEmbed`
|
|
315
|
-
* @version SDK: 1.1.0 |
|
|
315
|
+
* @version SDK: 1.1.0 | ThoughtSpot: 9.4.0.cl
|
|
316
316
|
* @example
|
|
317
317
|
* ```js
|
|
318
318
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -328,7 +328,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
328
328
|
* tag.
|
|
329
329
|
*
|
|
330
330
|
* Supported embed types: `AppEmbed`
|
|
331
|
-
* @version SDK: 1.1.0 |
|
|
331
|
+
* @version SDK: 1.1.0 | ThoughtSpot: 9.4.0.cl
|
|
332
332
|
* @example
|
|
333
333
|
* ```js
|
|
334
334
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -407,7 +407,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
407
407
|
*
|
|
408
408
|
* Supported embed types: `AppEmbed`
|
|
409
409
|
* @default false
|
|
410
|
-
* @version SDK: 1.28.0 |
|
|
410
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
411
411
|
* @example
|
|
412
412
|
* ```js
|
|
413
413
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -437,7 +437,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
437
437
|
discoveryExperience?: DiscoveryExperience;
|
|
438
438
|
/**
|
|
439
439
|
* To set the initial state of the search bar in case of saved-answers.
|
|
440
|
-
* @version SDK: 1.32.0 |
|
|
440
|
+
* @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
|
|
441
441
|
* @default false
|
|
442
442
|
* @deprecated Use {@link collapseSearchBar} instead
|
|
443
443
|
*/
|
|
@@ -451,7 +451,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
451
451
|
* - EXPAND_FIRST: Expand the first accordion and collapse the rest.
|
|
452
452
|
*
|
|
453
453
|
* Supported embed types: `AppEmbed`
|
|
454
|
-
* @version SDK: 1.32.0 |
|
|
454
|
+
* @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
|
|
455
455
|
* @default DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL
|
|
456
456
|
* @example
|
|
457
457
|
* ```js
|
|
@@ -465,14 +465,14 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
465
465
|
dataPanelCustomGroupsAccordionInitialState?: DataPanelCustomColumnGroupsAccordionState;
|
|
466
466
|
/**
|
|
467
467
|
* Flag that allows using `EmbedEvent.OnBeforeGetVizDataIntercept`.
|
|
468
|
-
* @version SDK : 1.29.0 |
|
|
468
|
+
* @version SDK : 1.29.0 | ThoughtSpot: 10.1.0.cl
|
|
469
469
|
*/
|
|
470
470
|
isOnBeforeGetVizDataInterceptEnabled?: boolean;
|
|
471
471
|
/**
|
|
472
472
|
* Flag to use home page search bar mode
|
|
473
473
|
*
|
|
474
474
|
* Supported embed types: `AppEmbed`
|
|
475
|
-
* @version SDK : 1.33.0 |
|
|
475
|
+
* @version SDK : 1.33.0 | ThoughtSpot: 10.3.0.cl
|
|
476
476
|
*/
|
|
477
477
|
homePageSearchBarMode?: HomePageSearchBarMode;
|
|
478
478
|
/**
|
|
@@ -878,7 +878,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
|
|
|
878
878
|
* Show or hide the tab panel of the embedded Liveboard.
|
|
879
879
|
*
|
|
880
880
|
* Supported embed types: `LiveboardEmbed`
|
|
881
|
-
* @version SDK: 1.25.0 |
|
|
881
|
+
* @version SDK: 1.25.0 | ThoughtSpot: 9.6.0.cl, 9.8.0.sw
|
|
882
882
|
* @example
|
|
883
883
|
* ```js
|
|
884
884
|
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
@@ -1067,7 +1067,7 @@ export class LiveboardEmbed extends V1Embed {
|
|
|
1067
1067
|
navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string): void;
|
|
1068
1068
|
/**
|
|
1069
1069
|
* Returns the full url of the Liveboard/visualization which can be used to open
|
|
1070
|
-
* this Liveboard inside the full
|
|
1070
|
+
* this Liveboard inside the full ThoughtSpot application in a new tab.
|
|
1071
1071
|
* @returns url string
|
|
1072
1072
|
*/
|
|
1073
1073
|
getLiveboardUrl(): string;
|
|
@@ -1327,7 +1327,7 @@ export interface SearchViewConfig extends SearchLiveboardCommonViewConfig, Omit<
|
|
|
1327
1327
|
/**
|
|
1328
1328
|
* To set the initial state of the search bar in case of saved-answers.
|
|
1329
1329
|
* @default false
|
|
1330
|
-
* @version SDK: 1.32.0 |
|
|
1330
|
+
* @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
|
|
1331
1331
|
* @deprecated Use {@link collapseSearchBar} instead
|
|
1332
1332
|
*/
|
|
1333
1333
|
collapseSearchBarInitially?: boolean;
|
|
@@ -1335,7 +1335,7 @@ export interface SearchViewConfig extends SearchLiveboardCommonViewConfig, Omit<
|
|
|
1335
1335
|
* Flag to enable onBeforeSearchExecute Embed Event
|
|
1336
1336
|
*
|
|
1337
1337
|
* Supported embed types: `SearchEmbed`
|
|
1338
|
-
* @version: SDK: 1.29.0 |
|
|
1338
|
+
* @version: SDK: 1.29.0 | ThoughtSpot: 10.1.0.cl
|
|
1339
1339
|
*/
|
|
1340
1340
|
isOnBeforeGetVizDataInterceptEnabled?: boolean;
|
|
1341
1341
|
/**
|
|
@@ -1347,7 +1347,7 @@ export interface SearchViewConfig extends SearchLiveboardCommonViewConfig, Omit<
|
|
|
1347
1347
|
* - EXPAND_FIRST: Expand the first accordion and collapse the rest.
|
|
1348
1348
|
*
|
|
1349
1349
|
* Supported embed types: `SearchEmbed`
|
|
1350
|
-
* @version SDK: 1.32.0 |
|
|
1350
|
+
* @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
|
|
1351
1351
|
* @default DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL
|
|
1352
1352
|
* @example
|
|
1353
1353
|
* ```js
|
|
@@ -1364,7 +1364,7 @@ export interface SearchViewConfig extends SearchLiveboardCommonViewConfig, Omit<
|
|
|
1364
1364
|
* lands on search embed page.
|
|
1365
1365
|
*
|
|
1366
1366
|
* Supported embed types: `SearchEmbed`
|
|
1367
|
-
* @version SDK: 1.32.0 |
|
|
1367
|
+
* @version SDK: 1.32.0 | ThoughtSpot: 10.3.0.cl
|
|
1368
1368
|
* @default true
|
|
1369
1369
|
* @example
|
|
1370
1370
|
* ```js
|
|
@@ -1651,7 +1651,7 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAct
|
|
|
1651
1651
|
* disableSourceSelection : true,
|
|
1652
1652
|
* })
|
|
1653
1653
|
* ```
|
|
1654
|
-
* @version SDK: 1.36.0 |
|
|
1654
|
+
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
1655
1655
|
*/
|
|
1656
1656
|
disableSourceSelection?: boolean;
|
|
1657
1657
|
/**
|
|
@@ -1665,7 +1665,7 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAct
|
|
|
1665
1665
|
* hideSourceSelection : true,
|
|
1666
1666
|
* })
|
|
1667
1667
|
* ```
|
|
1668
|
-
* @version SDK: 1.36.0 |
|
|
1668
|
+
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
1669
1669
|
*/
|
|
1670
1670
|
hideSourceSelection?: boolean;
|
|
1671
1671
|
/**
|
|
@@ -1697,7 +1697,7 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAct
|
|
|
1697
1697
|
* showSpotterLimitations : true,
|
|
1698
1698
|
* })
|
|
1699
1699
|
* ```
|
|
1700
|
-
* @version SDK: 1.36.0 |
|
|
1700
|
+
* @version SDK: 1.36.0 | ThoughtSpot: 10.5.0.cl
|
|
1701
1701
|
*/
|
|
1702
1702
|
showSpotterLimitations?: boolean;
|
|
1703
1703
|
/**
|
|
@@ -1712,7 +1712,7 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAct
|
|
|
1712
1712
|
* hideSampleQuestions : true,
|
|
1713
1713
|
* })
|
|
1714
1714
|
* ```
|
|
1715
|
-
* @version SDK: 1.36.0 |
|
|
1715
|
+
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
1716
1716
|
*/
|
|
1717
1717
|
hideSampleQuestions?: boolean;
|
|
1718
1718
|
}
|
|
@@ -2319,7 +2319,7 @@ export interface CustomStyles {
|
|
|
2319
2319
|
* Configuration to define the customization on the Embedded
|
|
2320
2320
|
* ThoughtSpot components.
|
|
2321
2321
|
* You can customize styles, text strings, and icons.
|
|
2322
|
-
* For more information, see https://developers.thoughtspot.com/docs/custom-css.
|
|
2322
|
+
* For more information, see link:https://developers.thoughtspot.com/docs/custom-css[CSS customization framework].
|
|
2323
2323
|
* @example
|
|
2324
2324
|
* ```js
|
|
2325
2325
|
* init({
|
|
@@ -4549,7 +4549,7 @@ export enum EmbedEvent {
|
|
|
4549
4549
|
*
|
|
4550
4550
|
* error: Developers can customize the error message text when `execute`
|
|
4551
4551
|
* returns `false` using the error parameter in responder.
|
|
4552
|
-
* @version SDK : 1.29.0 | ThoughtSpot
|
|
4552
|
+
* @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
|
|
4553
4553
|
* @example
|
|
4554
4554
|
*```js
|
|
4555
4555
|
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
@@ -4596,7 +4596,7 @@ export enum EmbedEvent {
|
|
|
4596
4596
|
* console.log('payload', payload);
|
|
4597
4597
|
* })
|
|
4598
4598
|
*```
|
|
4599
|
-
* @version SDK : 1.29.0 | ThoughtSpot
|
|
4599
|
+
* @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
|
|
4600
4600
|
*/
|
|
4601
4601
|
ParameterChanged = "parameterChanged",
|
|
4602
4602
|
/**
|
|
@@ -4652,18 +4652,18 @@ export enum EmbedEvent {
|
|
|
4652
4652
|
* console.log('payload', payload);
|
|
4653
4653
|
* })
|
|
4654
4654
|
*```
|
|
4655
|
-
* @version SDK : 1.37.0 | ThoughtSpot
|
|
4655
|
+
* @version SDK : 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
4656
4656
|
*/
|
|
4657
4657
|
CreateLiveboard = "createLiveboard",
|
|
4658
4658
|
/**
|
|
4659
4659
|
* Emitted when a user creates a Model.
|
|
4660
|
-
* @version SDK : 1.37.0 | ThoughtSpot
|
|
4660
|
+
* @version SDK : 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
4661
4661
|
*/
|
|
4662
4662
|
CreateModel = "createModel",
|
|
4663
4663
|
/**
|
|
4664
4664
|
* @hidden
|
|
4665
4665
|
* Emitted when a user exits present mode.
|
|
4666
|
-
* @version SDK : 1.40.0 | ThoughtSpot
|
|
4666
|
+
* @version SDK : 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
4667
4667
|
*/
|
|
4668
4668
|
ExitPresentMode = "exitPresentMode"
|
|
4669
4669
|
}
|
|
@@ -5907,6 +5907,7 @@ export enum Param {
|
|
|
5907
5907
|
* hiddenActions: [Action.Edit, ActionAction.Explore],
|
|
5908
5908
|
* })
|
|
5909
5909
|
* ```
|
|
5910
|
+
* See also link:https://developers.thoughtspot.com/docs/actions[Action IDs in the SDK]
|
|
5910
5911
|
*/
|
|
5911
5912
|
export enum Action {
|
|
5912
5913
|
/**
|
|
@@ -7691,39 +7692,39 @@ export interface SageViewConfig extends SearchLiveboardCommonViewConfig, Omit<Ba
|
|
|
7691
7692
|
showObjectResults?: boolean;
|
|
7692
7693
|
/**
|
|
7693
7694
|
* flag used by the TS product tour page to show the blue search bar
|
|
7694
|
-
* even after the search is completed. This is different from
|
|
7695
|
+
* even after the search is completed. This is different from ThoughtSpot Embedded
|
|
7695
7696
|
* Sage Embed experience where it mimics closer to the non-embed case.
|
|
7696
7697
|
* The Sample questions container is collapsed when this value is set after
|
|
7697
7698
|
* does a search.
|
|
7698
|
-
* @version SDK: 1.26.0 |
|
|
7699
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl
|
|
7699
7700
|
* @hidden
|
|
7700
7701
|
*/
|
|
7701
7702
|
isProductTour?: boolean;
|
|
7702
7703
|
/**
|
|
7703
7704
|
* Show or hide the search bar title.
|
|
7704
|
-
* @version SDK: 1.29.0 |
|
|
7705
|
-
* @deprecated
|
|
7705
|
+
* @version SDK: 1.29.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
7706
|
+
* @deprecated ThoughtSpot: 9.10.0.cl | search bar doesn't have the title from 9.10.0.cl
|
|
7706
7707
|
*/
|
|
7707
7708
|
hideSearchBarTitle?: boolean;
|
|
7708
7709
|
/**
|
|
7709
7710
|
* Show or hide the Answer header, that is, the `AI Answer` title
|
|
7710
7711
|
* at the top of the Answer page.
|
|
7711
|
-
* @version SDK: 1.26.0 |
|
|
7712
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.10.0.cl
|
|
7712
7713
|
*/
|
|
7713
7714
|
hideSageAnswerHeader?: boolean;
|
|
7714
7715
|
/**
|
|
7715
7716
|
* Disable the worksheet selection option.
|
|
7716
|
-
* @version SDK: 1.26.0 |
|
|
7717
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
7717
7718
|
*/
|
|
7718
7719
|
disableWorksheetChange?: boolean;
|
|
7719
7720
|
/**
|
|
7720
7721
|
* Hide the worksheet selection panel.
|
|
7721
|
-
* @version SDK: 1.26.0 |
|
|
7722
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
7722
7723
|
*/
|
|
7723
7724
|
hideWorksheetSelector?: boolean;
|
|
7724
7725
|
/**
|
|
7725
7726
|
* Show or hide autocomplete suggestions for the search query string.
|
|
7726
|
-
* @version SDK: 1.26.0 |
|
|
7727
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
7727
7728
|
*/
|
|
7728
7729
|
hideAutocompleteSuggestions?: boolean;
|
|
7729
7730
|
/**
|
|
@@ -7739,7 +7740,7 @@ export interface SageViewConfig extends SearchLiveboardCommonViewConfig, Omit<Ba
|
|
|
7739
7740
|
* selected for the search operation.
|
|
7740
7741
|
*
|
|
7741
7742
|
* Supported embed types: `SageEmbed`
|
|
7742
|
-
* @version SDK: 1.26.0 |
|
|
7743
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
7743
7744
|
* @example
|
|
7744
7745
|
* ```js
|
|
7745
7746
|
* const embed = new SageEmbed('#tsEmbed', {
|
|
@@ -7772,7 +7773,7 @@ export interface SageViewConfig extends SearchLiveboardCommonViewConfig, Omit<Ba
|
|
|
7772
7773
|
* executeSearch: true,
|
|
7773
7774
|
* }
|
|
7774
7775
|
* ```
|
|
7775
|
-
* @version SDK: 1.26.0 |
|
|
7776
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
7776
7777
|
*/
|
|
7777
7778
|
searchOptions?: SearchOptions;
|
|
7778
7779
|
}
|
|
@@ -8005,9 +8006,52 @@ export class AnswerService {
|
|
|
8005
8006
|
}
|
|
8006
8007
|
|
|
8007
8008
|
/**
|
|
8008
|
-
* Gets the configuration
|
|
8009
|
-
*
|
|
8010
|
-
* @
|
|
8009
|
+
* Gets the embed configuration settings that were used to
|
|
8010
|
+
* initialize the SDK.
|
|
8011
|
+
* @returns {@link EmbedConfig}
|
|
8012
|
+
*
|
|
8013
|
+
* @example
|
|
8014
|
+
* ```js
|
|
8015
|
+
* const config = getInitConfig();
|
|
8016
|
+
* console.log(config);
|
|
8017
|
+
* ```
|
|
8018
|
+
* @example
|
|
8019
|
+
*
|
|
8020
|
+
* Returns the `EmbedConfig` object, which
|
|
8021
|
+
* contains the configuration settings used to
|
|
8022
|
+
* initialize the SDK, including the following:
|
|
8023
|
+
*
|
|
8024
|
+
* - `thoughtSpotHost` - ThoughtSpot host URL
|
|
8025
|
+
* - `authType`: The authentication method used. For example,
|
|
8026
|
+
* `AuthServerCookieless` for `AuthType.TrustedAuthTokenCookieless`
|
|
8027
|
+
* - `customizations` - Style, text, and icon customization settings
|
|
8028
|
+
* that were applied during the SDK initialization.
|
|
8029
|
+
*
|
|
8030
|
+
* For a comprehensive list of embed configuration settings,
|
|
8031
|
+
* see link:https://developers.thoughtspot.com/docs/Interface_EmbedConfig[Developer Documentation].
|
|
8032
|
+
*
|
|
8033
|
+
* ```json
|
|
8034
|
+
* {
|
|
8035
|
+
* "thoughtSpotHost": "https://{ThoughtSpot-Host}",
|
|
8036
|
+
* "authType": "AuthServerCookieless",
|
|
8037
|
+
* "customizations": {
|
|
8038
|
+
* "style": {
|
|
8039
|
+
* "customCSS": {
|
|
8040
|
+
* "variables": {
|
|
8041
|
+
* "--ts-var-button--secondary-background": "#7492d5",
|
|
8042
|
+
* "--ts-var-button--secondary--hovers-background": "#aac2f8",
|
|
8043
|
+
* "--ts-var-root-background": "#f1f4f8"
|
|
8044
|
+
* }
|
|
8045
|
+
* }
|
|
8046
|
+
* }
|
|
8047
|
+
* },
|
|
8048
|
+
* "loginFailedMessage": "Login failed, please try again",
|
|
8049
|
+
* "authTriggerText": "Authorize",
|
|
8050
|
+
* "disableTokenVerification": true,
|
|
8051
|
+
* "authTriggerContainer": "#your-own-div"
|
|
8052
|
+
* }
|
|
8053
|
+
* ```
|
|
8054
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.cl, and later
|
|
8011
8055
|
* @group Global methods
|
|
8012
8056
|
*/
|
|
8013
8057
|
export const getEmbedConfig: () => EmbedConfig;
|
|
@@ -8015,7 +8059,7 @@ export const getEmbedConfig: () => EmbedConfig;
|
|
|
8015
8059
|
* Sets the configuration embed was initialized with.
|
|
8016
8060
|
* And returns the new configuration.
|
|
8017
8061
|
* @param newConfig The configuration to set.
|
|
8018
|
-
* @version SDK: 1.27.0 | ThoughtSpot:
|
|
8062
|
+
* @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.1.sw, and later
|
|
8019
8063
|
* @group Global methods
|
|
8020
8064
|
*/
|
|
8021
8065
|
export const setEmbedConfig: (newConfig: EmbedConfig) => any;
|
package/lib/package.json
CHANGED
package/lib/src/embed/app.d.ts
CHANGED
|
@@ -118,7 +118,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
118
118
|
*
|
|
119
119
|
* Supported embed types: `AppEmbed`
|
|
120
120
|
* @default true
|
|
121
|
-
* @version SDK: 1.2.0 |
|
|
121
|
+
* @version SDK: 1.2.0 | ThoughtSpot: 8.4.0.cl
|
|
122
122
|
* @example
|
|
123
123
|
* ```js
|
|
124
124
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -140,7 +140,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
140
140
|
*
|
|
141
141
|
* Supported embed types: `AppEmbed`
|
|
142
142
|
* @default false
|
|
143
|
-
* @version SDK: 1.28.0 |
|
|
143
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
144
144
|
* @example
|
|
145
145
|
* ```js
|
|
146
146
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -156,7 +156,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
156
156
|
*
|
|
157
157
|
* Supported embed types: `AppEmbed`
|
|
158
158
|
* @default false
|
|
159
|
-
* @version SDK: 1.2.0 |
|
|
159
|
+
* @version SDK: 1.2.0 | ThoughtSpot: 8.4.0.cl
|
|
160
160
|
* @example
|
|
161
161
|
* ```js
|
|
162
162
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -239,7 +239,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
239
239
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
240
240
|
*
|
|
241
241
|
* Supported embed types: `AppEmbed`
|
|
242
|
-
* @version SDK: 1.28.0 |
|
|
242
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
243
243
|
* @default false
|
|
244
244
|
* @example
|
|
245
245
|
* ```js
|
|
@@ -259,7 +259,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
259
259
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
260
260
|
*
|
|
261
261
|
* Supported embed types: `AppEmbed`
|
|
262
|
-
* @version SDK: 1.28.0 |
|
|
262
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
263
263
|
* @default true
|
|
264
264
|
* @example
|
|
265
265
|
* ```js
|
|
@@ -280,7 +280,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
280
280
|
* you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
|
|
281
281
|
*
|
|
282
282
|
* Supported embed types: `AppEmbed`
|
|
283
|
-
* @version SDK: 1.1.0 |
|
|
283
|
+
* @version SDK: 1.1.0 | ThoughtSpot: 9.4.0.cl
|
|
284
284
|
* @example
|
|
285
285
|
* ```js
|
|
286
286
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -298,7 +298,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
298
298
|
* path within the app, use the `path` attribute which is more flexible.
|
|
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', {
|
|
@@ -314,7 +314,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
314
314
|
* tag.
|
|
315
315
|
*
|
|
316
316
|
* Supported embed types: `AppEmbed`
|
|
317
|
-
* @version SDK: 1.1.0 |
|
|
317
|
+
* @version SDK: 1.1.0 | ThoughtSpot: 9.4.0.cl
|
|
318
318
|
* @example
|
|
319
319
|
* ```js
|
|
320
320
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -393,7 +393,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
393
393
|
*
|
|
394
394
|
* Supported embed types: `AppEmbed`
|
|
395
395
|
* @default false
|
|
396
|
-
* @version SDK: 1.28.0 |
|
|
396
|
+
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
397
397
|
* @example
|
|
398
398
|
* ```js
|
|
399
399
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -423,7 +423,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
423
423
|
discoveryExperience?: DiscoveryExperience;
|
|
424
424
|
/**
|
|
425
425
|
* To set the initial state of the search bar in case of saved-answers.
|
|
426
|
-
* @version SDK: 1.32.0 |
|
|
426
|
+
* @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
|
|
427
427
|
* @default false
|
|
428
428
|
* @deprecated Use {@link collapseSearchBar} instead
|
|
429
429
|
*/
|
|
@@ -437,7 +437,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
437
437
|
* - EXPAND_FIRST: Expand the first accordion and collapse the rest.
|
|
438
438
|
*
|
|
439
439
|
* Supported embed types: `AppEmbed`
|
|
440
|
-
* @version SDK: 1.32.0 |
|
|
440
|
+
* @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
|
|
441
441
|
* @default DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL
|
|
442
442
|
* @example
|
|
443
443
|
* ```js
|
|
@@ -451,14 +451,14 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
451
451
|
dataPanelCustomGroupsAccordionInitialState?: DataPanelCustomColumnGroupsAccordionState;
|
|
452
452
|
/**
|
|
453
453
|
* Flag that allows using `EmbedEvent.OnBeforeGetVizDataIntercept`.
|
|
454
|
-
* @version SDK : 1.29.0 |
|
|
454
|
+
* @version SDK : 1.29.0 | ThoughtSpot: 10.1.0.cl
|
|
455
455
|
*/
|
|
456
456
|
isOnBeforeGetVizDataInterceptEnabled?: boolean;
|
|
457
457
|
/**
|
|
458
458
|
* Flag to use home page search bar mode
|
|
459
459
|
*
|
|
460
460
|
* Supported embed types: `AppEmbed`
|
|
461
|
-
* @version SDK : 1.33.0 |
|
|
461
|
+
* @version SDK : 1.33.0 | ThoughtSpot: 10.3.0.cl
|
|
462
462
|
*/
|
|
463
463
|
homePageSearchBarMode?: HomePageSearchBarMode;
|
|
464
464
|
/**
|
|
@@ -34,7 +34,7 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAct
|
|
|
34
34
|
* disableSourceSelection : true,
|
|
35
35
|
* })
|
|
36
36
|
* ```
|
|
37
|
-
* @version SDK: 1.36.0 |
|
|
37
|
+
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
38
38
|
*/
|
|
39
39
|
disableSourceSelection?: boolean;
|
|
40
40
|
/**
|
|
@@ -48,7 +48,7 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAct
|
|
|
48
48
|
* hideSourceSelection : true,
|
|
49
49
|
* })
|
|
50
50
|
* ```
|
|
51
|
-
* @version SDK: 1.36.0 |
|
|
51
|
+
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
52
52
|
*/
|
|
53
53
|
hideSourceSelection?: boolean;
|
|
54
54
|
/**
|
|
@@ -80,7 +80,7 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAct
|
|
|
80
80
|
* showSpotterLimitations : true,
|
|
81
81
|
* })
|
|
82
82
|
* ```
|
|
83
|
-
* @version SDK: 1.36.0 |
|
|
83
|
+
* @version SDK: 1.36.0 | ThoughtSpot: 10.5.0.cl
|
|
84
84
|
*/
|
|
85
85
|
showSpotterLimitations?: boolean;
|
|
86
86
|
/**
|
|
@@ -95,7 +95,7 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAct
|
|
|
95
95
|
* hideSampleQuestions : true,
|
|
96
96
|
* })
|
|
97
97
|
* ```
|
|
98
|
-
* @version SDK: 1.36.0 |
|
|
98
|
+
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
99
99
|
*/
|
|
100
100
|
hideSampleQuestions?: boolean;
|
|
101
101
|
}
|
|
@@ -1,8 +1,51 @@
|
|
|
1
1
|
import { EmbedConfig } from '../types';
|
|
2
2
|
/**
|
|
3
|
-
* Gets the configuration
|
|
4
|
-
*
|
|
5
|
-
* @
|
|
3
|
+
* Gets the embed configuration settings that were used to
|
|
4
|
+
* initialize the SDK.
|
|
5
|
+
* @returns {@link EmbedConfig}
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```js
|
|
9
|
+
* const config = getInitConfig();
|
|
10
|
+
* console.log(config);
|
|
11
|
+
* ```
|
|
12
|
+
* @example
|
|
13
|
+
*
|
|
14
|
+
* Returns the `EmbedConfig` object, which
|
|
15
|
+
* contains the configuration settings used to
|
|
16
|
+
* initialize the SDK, including the following:
|
|
17
|
+
*
|
|
18
|
+
* - `thoughtSpotHost` - ThoughtSpot host URL
|
|
19
|
+
* - `authType`: The authentication method used. For example,
|
|
20
|
+
* `AuthServerCookieless` for `AuthType.TrustedAuthTokenCookieless`
|
|
21
|
+
* - `customizations` - Style, text, and icon customization settings
|
|
22
|
+
* that were applied during the SDK initialization.
|
|
23
|
+
*
|
|
24
|
+
* For a comprehensive list of embed configuration settings,
|
|
25
|
+
* see link:https://developers.thoughtspot.com/docs/Interface_EmbedConfig[Developer Documentation].
|
|
26
|
+
*
|
|
27
|
+
* ```json
|
|
28
|
+
* {
|
|
29
|
+
* "thoughtSpotHost": "https://{ThoughtSpot-Host}",
|
|
30
|
+
* "authType": "AuthServerCookieless",
|
|
31
|
+
* "customizations": {
|
|
32
|
+
* "style": {
|
|
33
|
+
* "customCSS": {
|
|
34
|
+
* "variables": {
|
|
35
|
+
* "--ts-var-button--secondary-background": "#7492d5",
|
|
36
|
+
* "--ts-var-button--secondary--hovers-background": "#aac2f8",
|
|
37
|
+
* "--ts-var-root-background": "#f1f4f8"
|
|
38
|
+
* }
|
|
39
|
+
* }
|
|
40
|
+
* }
|
|
41
|
+
* },
|
|
42
|
+
* "loginFailedMessage": "Login failed, please try again",
|
|
43
|
+
* "authTriggerText": "Authorize",
|
|
44
|
+
* "disableTokenVerification": true,
|
|
45
|
+
* "authTriggerContainer": "#your-own-div"
|
|
46
|
+
* }
|
|
47
|
+
* ```
|
|
48
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.cl, and later
|
|
6
49
|
* @group Global methods
|
|
7
50
|
*/
|
|
8
51
|
export declare const getEmbedConfig: () => EmbedConfig;
|
|
@@ -10,7 +53,7 @@ export declare const getEmbedConfig: () => EmbedConfig;
|
|
|
10
53
|
* Sets the configuration embed was initialized with.
|
|
11
54
|
* And returns the new configuration.
|
|
12
55
|
* @param newConfig The configuration to set.
|
|
13
|
-
* @version SDK: 1.27.0 | ThoughtSpot:
|
|
56
|
+
* @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.1.sw, and later
|
|
14
57
|
* @group Global methods
|
|
15
58
|
*/
|
|
16
59
|
export declare const setEmbedConfig: (newConfig: EmbedConfig) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embedConfig.d.ts","sourceRoot":"","sources":["../../../src/embed/embedConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC
|
|
1
|
+
{"version":3,"file":"embedConfig.d.ts","sourceRoot":"","sources":["../../../src/embed/embedConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,eAAO,MAAM,cAAc,QAAO,WAA2D,CAAC;AAE9F;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,cAAe,WAAW,QAGpD,CAAC"}
|
|
@@ -1,9 +1,52 @@
|
|
|
1
1
|
import { getValueFromWindow, storeValueInWindow } from '../utils';
|
|
2
2
|
const configKey = 'embedConfig';
|
|
3
3
|
/**
|
|
4
|
-
* Gets the configuration
|
|
5
|
-
*
|
|
6
|
-
* @
|
|
4
|
+
* Gets the embed configuration settings that were used to
|
|
5
|
+
* initialize the SDK.
|
|
6
|
+
* @returns {@link EmbedConfig}
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```js
|
|
10
|
+
* const config = getInitConfig();
|
|
11
|
+
* console.log(config);
|
|
12
|
+
* ```
|
|
13
|
+
* @example
|
|
14
|
+
*
|
|
15
|
+
* Returns the `EmbedConfig` object, which
|
|
16
|
+
* contains the configuration settings used to
|
|
17
|
+
* initialize the SDK, including the following:
|
|
18
|
+
*
|
|
19
|
+
* - `thoughtSpotHost` - ThoughtSpot host URL
|
|
20
|
+
* - `authType`: The authentication method used. For example,
|
|
21
|
+
* `AuthServerCookieless` for `AuthType.TrustedAuthTokenCookieless`
|
|
22
|
+
* - `customizations` - Style, text, and icon customization settings
|
|
23
|
+
* that were applied during the SDK initialization.
|
|
24
|
+
*
|
|
25
|
+
* For a comprehensive list of embed configuration settings,
|
|
26
|
+
* see link:https://developers.thoughtspot.com/docs/Interface_EmbedConfig[Developer Documentation].
|
|
27
|
+
*
|
|
28
|
+
* ```json
|
|
29
|
+
* {
|
|
30
|
+
* "thoughtSpotHost": "https://{ThoughtSpot-Host}",
|
|
31
|
+
* "authType": "AuthServerCookieless",
|
|
32
|
+
* "customizations": {
|
|
33
|
+
* "style": {
|
|
34
|
+
* "customCSS": {
|
|
35
|
+
* "variables": {
|
|
36
|
+
* "--ts-var-button--secondary-background": "#7492d5",
|
|
37
|
+
* "--ts-var-button--secondary--hovers-background": "#aac2f8",
|
|
38
|
+
* "--ts-var-root-background": "#f1f4f8"
|
|
39
|
+
* }
|
|
40
|
+
* }
|
|
41
|
+
* }
|
|
42
|
+
* },
|
|
43
|
+
* "loginFailedMessage": "Login failed, please try again",
|
|
44
|
+
* "authTriggerText": "Authorize",
|
|
45
|
+
* "disableTokenVerification": true,
|
|
46
|
+
* "authTriggerContainer": "#your-own-div"
|
|
47
|
+
* }
|
|
48
|
+
* ```
|
|
49
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.cl, and later
|
|
7
50
|
* @group Global methods
|
|
8
51
|
*/
|
|
9
52
|
export const getEmbedConfig = () => getValueFromWindow(configKey) || {};
|
|
@@ -11,7 +54,7 @@ export const getEmbedConfig = () => getValueFromWindow(configKey) || {};
|
|
|
11
54
|
* Sets the configuration embed was initialized with.
|
|
12
55
|
* And returns the new configuration.
|
|
13
56
|
* @param newConfig The configuration to set.
|
|
14
|
-
* @version SDK: 1.27.0 | ThoughtSpot:
|
|
57
|
+
* @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.1.sw, and later
|
|
15
58
|
* @group Global methods
|
|
16
59
|
*/
|
|
17
60
|
export const setEmbedConfig = (newConfig) => {
|