@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
package/cjs/package.json
CHANGED
package/cjs/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"}
|
|
@@ -4,9 +4,52 @@ exports.setEmbedConfig = exports.getEmbedConfig = void 0;
|
|
|
4
4
|
const utils_1 = require("../utils");
|
|
5
5
|
const configKey = 'embedConfig';
|
|
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
|
const getEmbedConfig = () => (0, utils_1.getValueFromWindow)(configKey) || {};
|
|
@@ -15,7 +58,7 @@ exports.getEmbedConfig = getEmbedConfig;
|
|
|
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
|
const setEmbedConfig = (newConfig) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embedConfig.js","sourceRoot":"","sources":["../../../src/embed/embedConfig.ts"],"names":[],"mappings":";;;AAAA,oCAAkE;AAGlE,MAAM,SAAS,GAAG,aAAa,CAAC;AAEhC
|
|
1
|
+
{"version":3,"file":"embedConfig.js","sourceRoot":"","sources":["../../../src/embed/embedConfig.ts"],"names":[],"mappings":";;;AAAA,oCAAkE;AAGlE,MAAM,SAAS,GAAG,aAAa,CAAC;AAEhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACI,MAAM,cAAc,GAAG,GAAgB,EAAE,CAAC,IAAA,0BAAkB,EAAC,SAAS,CAAC,IAAK,EAAU,CAAC;AAAjF,QAAA,cAAc,kBAAmE;AAE9F;;;;;;GAMG;AACI,MAAM,cAAc,GAAG,CAAC,SAAsB,EAAE,EAAE;IACrD,IAAA,0BAAkB,EAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IACzC,OAAO,IAAA,0BAAkB,EAAC,SAAS,CAAC,CAAC;AACzC,CAAC,CAAC;AAHW,QAAA,cAAc,kBAGzB"}
|
|
@@ -173,7 +173,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
|
|
|
173
173
|
* Show or hide the tab panel of the embedded Liveboard.
|
|
174
174
|
*
|
|
175
175
|
* Supported embed types: `LiveboardEmbed`
|
|
176
|
-
* @version SDK: 1.25.0 |
|
|
176
|
+
* @version SDK: 1.25.0 | ThoughtSpot: 9.6.0.cl, 9.8.0.sw
|
|
177
177
|
* @example
|
|
178
178
|
* ```js
|
|
179
179
|
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
@@ -379,7 +379,7 @@ export declare class LiveboardEmbed extends V1Embed {
|
|
|
379
379
|
navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string): void;
|
|
380
380
|
/**
|
|
381
381
|
* Returns the full url of the Liveboard/visualization which can be used to open
|
|
382
|
-
* this Liveboard inside the full
|
|
382
|
+
* this Liveboard inside the full ThoughtSpot application in a new tab.
|
|
383
383
|
* @returns url string
|
|
384
384
|
*/
|
|
385
385
|
getLiveboardUrl(): string;
|
|
@@ -277,7 +277,7 @@ class LiveboardEmbed extends ts_embed_1.V1Embed {
|
|
|
277
277
|
}
|
|
278
278
|
/**
|
|
279
279
|
* Returns the full url of the Liveboard/visualization which can be used to open
|
|
280
|
-
* this Liveboard inside the full
|
|
280
|
+
* this Liveboard inside the full ThoughtSpot application in a new tab.
|
|
281
281
|
* @returns url string
|
|
282
282
|
*/
|
|
283
283
|
getLiveboardUrl() {
|
package/cjs/src/embed/sage.d.ts
CHANGED
|
@@ -43,39 +43,39 @@ export interface SageViewConfig extends SearchLiveboardCommonViewConfig, Omit<Ba
|
|
|
43
43
|
showObjectResults?: boolean;
|
|
44
44
|
/**
|
|
45
45
|
* flag used by the TS product tour page to show the blue search bar
|
|
46
|
-
* even after the search is completed. This is different from
|
|
46
|
+
* even after the search is completed. This is different from ThoughtSpot Embedded
|
|
47
47
|
* Sage Embed experience where it mimics closer to the non-embed case.
|
|
48
48
|
* The Sample questions container is collapsed when this value is set after
|
|
49
49
|
* does a search.
|
|
50
|
-
* @version SDK: 1.26.0 |
|
|
50
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl
|
|
51
51
|
* @hidden
|
|
52
52
|
*/
|
|
53
53
|
isProductTour?: boolean;
|
|
54
54
|
/**
|
|
55
55
|
* Show or hide the search bar title.
|
|
56
|
-
* @version SDK: 1.29.0 |
|
|
57
|
-
* @deprecated
|
|
56
|
+
* @version SDK: 1.29.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
57
|
+
* @deprecated ThoughtSpot: 9.10.0.cl | search bar doesn't have the title from 9.10.0.cl
|
|
58
58
|
*/
|
|
59
59
|
hideSearchBarTitle?: boolean;
|
|
60
60
|
/**
|
|
61
61
|
* Show or hide the Answer header, that is, the `AI Answer` title
|
|
62
62
|
* at the top of the Answer page.
|
|
63
|
-
* @version SDK: 1.26.0 |
|
|
63
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.10.0.cl
|
|
64
64
|
*/
|
|
65
65
|
hideSageAnswerHeader?: boolean;
|
|
66
66
|
/**
|
|
67
67
|
* Disable the worksheet selection option.
|
|
68
|
-
* @version SDK: 1.26.0 |
|
|
68
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
69
69
|
*/
|
|
70
70
|
disableWorksheetChange?: boolean;
|
|
71
71
|
/**
|
|
72
72
|
* Hide the worksheet selection panel.
|
|
73
|
-
* @version SDK: 1.26.0 |
|
|
73
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
74
74
|
*/
|
|
75
75
|
hideWorksheetSelector?: boolean;
|
|
76
76
|
/**
|
|
77
77
|
* Show or hide autocomplete suggestions for the search query string.
|
|
78
|
-
* @version SDK: 1.26.0 |
|
|
78
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
79
79
|
*/
|
|
80
80
|
hideAutocompleteSuggestions?: boolean;
|
|
81
81
|
/**
|
|
@@ -91,7 +91,7 @@ export interface SageViewConfig extends SearchLiveboardCommonViewConfig, Omit<Ba
|
|
|
91
91
|
* selected for the search operation.
|
|
92
92
|
*
|
|
93
93
|
* Supported embed types: `SageEmbed`
|
|
94
|
-
* @version SDK: 1.26.0 |
|
|
94
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
95
95
|
* @example
|
|
96
96
|
* ```js
|
|
97
97
|
* const embed = new SageEmbed('#tsEmbed', {
|
|
@@ -124,7 +124,7 @@ export interface SageViewConfig extends SearchLiveboardCommonViewConfig, Omit<Ba
|
|
|
124
124
|
* executeSearch: true,
|
|
125
125
|
* }
|
|
126
126
|
* ```
|
|
127
|
-
* @version SDK: 1.26.0 |
|
|
127
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
128
128
|
*/
|
|
129
129
|
searchOptions?: SearchOptions;
|
|
130
130
|
}
|
|
@@ -249,7 +249,7 @@ export interface SearchViewConfig extends SearchLiveboardCommonViewConfig, Omit<
|
|
|
249
249
|
/**
|
|
250
250
|
* To set the initial state of the search bar in case of saved-answers.
|
|
251
251
|
* @default false
|
|
252
|
-
* @version SDK: 1.32.0 |
|
|
252
|
+
* @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
|
|
253
253
|
* @deprecated Use {@link collapseSearchBar} instead
|
|
254
254
|
*/
|
|
255
255
|
collapseSearchBarInitially?: boolean;
|
|
@@ -257,7 +257,7 @@ export interface SearchViewConfig extends SearchLiveboardCommonViewConfig, Omit<
|
|
|
257
257
|
* Flag to enable onBeforeSearchExecute Embed Event
|
|
258
258
|
*
|
|
259
259
|
* Supported embed types: `SearchEmbed`
|
|
260
|
-
* @version: SDK: 1.29.0 |
|
|
260
|
+
* @version: SDK: 1.29.0 | ThoughtSpot: 10.1.0.cl
|
|
261
261
|
*/
|
|
262
262
|
isOnBeforeGetVizDataInterceptEnabled?: boolean;
|
|
263
263
|
/**
|
|
@@ -269,7 +269,7 @@ export interface SearchViewConfig extends SearchLiveboardCommonViewConfig, Omit<
|
|
|
269
269
|
* - EXPAND_FIRST: Expand the first accordion and collapse the rest.
|
|
270
270
|
*
|
|
271
271
|
* Supported embed types: `SearchEmbed`
|
|
272
|
-
* @version SDK: 1.32.0 |
|
|
272
|
+
* @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
|
|
273
273
|
* @default DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL
|
|
274
274
|
* @example
|
|
275
275
|
* ```js
|
|
@@ -286,7 +286,7 @@ export interface SearchViewConfig extends SearchLiveboardCommonViewConfig, Omit<
|
|
|
286
286
|
* lands on search embed page.
|
|
287
287
|
*
|
|
288
288
|
* Supported embed types: `SearchEmbed`
|
|
289
|
-
* @version SDK: 1.32.0 |
|
|
289
|
+
* @version SDK: 1.32.0 | ThoughtSpot: 10.3.0.cl
|
|
290
290
|
* @default true
|
|
291
291
|
* @example
|
|
292
292
|
* ```js
|
|
@@ -116,6 +116,11 @@ export declare class TsEmbed {
|
|
|
116
116
|
* @returns boolean
|
|
117
117
|
*/
|
|
118
118
|
private isPreAuthCacheEnabled;
|
|
119
|
+
/**
|
|
120
|
+
* Checks if current embed is FullAppEmbed with visible primary navbar
|
|
121
|
+
* @returns boolean
|
|
122
|
+
*/
|
|
123
|
+
private isFullAppEmbedWithVisiblePrimaryNavbar;
|
|
119
124
|
/**
|
|
120
125
|
* fix for ts7.sep.cl
|
|
121
126
|
* will be removed for ts7.oct.cl
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-embed.d.ts","sourceRoot":"","sources":["../../../src/embed/ts-embed.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,EACH,cAAc,EACd,eAAe,EACf,0BAA0B,EAC1B,kBAAkB,EAClB,oBAAoB,EACvB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAwB7E,OAAO,EAEH,WAAW,EACX,SAAS,EACT,UAAU,EACV,eAAe,EAGf,WAAW,EACX,cAAc,EAGd,kBAAkB,EAClB,kBAAkB,IAAI,UAAU,EACnC,MAAM,UAAU,CAAC;AAalB,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAA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 -246,10 +246,25 @@ class TsEmbed {
|
|
|
246
246
|
// - cached auth info would be for wrong org
|
|
247
247
|
// - info call response changes for each different overrideOrgId
|
|
248
248
|
// 2. disablePreauthCache is explicitly set to true
|
|
249
|
+
// 3. FullAppEmbed has primary navbar visible since:
|
|
250
|
+
// - primary navbar requires fresh auth state for navigation
|
|
251
|
+
// - cached auth may not reflect current user permissions
|
|
249
252
|
const isDisabled = (this.viewConfig.overrideOrgId !== undefined
|
|
250
|
-
|| this.embedConfig.disablePreauthCache === true
|
|
253
|
+
|| this.embedConfig.disablePreauthCache === true
|
|
254
|
+
|| this.isFullAppEmbedWithVisiblePrimaryNavbar());
|
|
251
255
|
return !isDisabled;
|
|
252
256
|
}
|
|
257
|
+
/**
|
|
258
|
+
* Checks if current embed is FullAppEmbed with visible primary navbar
|
|
259
|
+
* @returns boolean
|
|
260
|
+
*/
|
|
261
|
+
isFullAppEmbedWithVisiblePrimaryNavbar() {
|
|
262
|
+
const appViewConfig = this.viewConfig;
|
|
263
|
+
// Check if this is a FullAppEmbed (AppEmbed)
|
|
264
|
+
// showPrimaryNavbar defaults to true if not explicitly set to false
|
|
265
|
+
return (appViewConfig.embedComponentType === 'AppEmbed'
|
|
266
|
+
&& appViewConfig.showPrimaryNavbar === true);
|
|
267
|
+
}
|
|
253
268
|
/**
|
|
254
269
|
* fix for ts7.sep.cl
|
|
255
270
|
* will be removed for ts7.oct.cl
|