@thoughtspot/visual-embed-sdk 1.30.0-alpha.1 → 1.30.0
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/README.md +1 -1
- package/cjs/package.json +1 -1
- package/cjs/src/auth.d.ts +0 -15
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +2 -13
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/authToken.d.ts +0 -1
- package/cjs/src/authToken.d.ts.map +1 -1
- package/cjs/src/authToken.js +0 -1
- package/cjs/src/authToken.js.map +1 -1
- package/cjs/src/config.d.ts +0 -1
- package/cjs/src/config.d.ts.map +1 -1
- package/cjs/src/config.js +0 -2
- package/cjs/src/config.js.map +1 -1
- package/cjs/src/embed/app.d.ts +0 -49
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +0 -8
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/base.d.ts +0 -6
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +0 -7
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/base.spec.js +1 -1
- package/cjs/src/embed/base.spec.js.map +1 -1
- package/cjs/src/embed/embedConfig.d.ts +0 -2
- package/cjs/src/embed/embedConfig.d.ts.map +1 -1
- package/cjs/src/embed/embedConfig.js +0 -2
- package/cjs/src/embed/embedConfig.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +0 -30
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +0 -5
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/sage.d.ts +2 -18
- package/cjs/src/embed/sage.d.ts.map +1 -1
- package/cjs/src/embed/sage.js +0 -5
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/search-bar.d.ts +0 -11
- package/cjs/src/embed/search-bar.d.ts.map +1 -1
- package/cjs/src/embed/search-bar.js +0 -2
- package/cjs/src/embed/search-bar.js.map +1 -1
- package/cjs/src/embed/search.d.ts +0 -33
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +0 -3
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +1 -31
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +6 -37
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/index.d.ts +0 -1
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +0 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/mixpanel-service.d.ts +0 -1
- package/cjs/src/mixpanel-service.d.ts.map +1 -1
- package/cjs/src/mixpanel-service.js +0 -1
- package/cjs/src/mixpanel-service.js.map +1 -1
- package/cjs/src/react/index.d.ts +1 -12
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js +1 -11
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/react/index.spec.js +14 -2
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/test/test-utils.d.ts +0 -2
- package/cjs/src/test/test-utils.d.ts.map +1 -1
- package/cjs/src/test/test-utils.js +0 -2
- package/cjs/src/test/test-utils.js.map +1 -1
- package/cjs/src/tokenizedFetch.d.ts +0 -1
- package/cjs/src/tokenizedFetch.d.ts.map +1 -1
- package/cjs/src/tokenizedFetch.js +0 -1
- package/cjs/src/tokenizedFetch.js.map +1 -1
- package/cjs/src/types.d.ts +19 -337
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +18 -264
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/authService/authService.d.ts +0 -1
- package/cjs/src/utils/authService/authService.d.ts.map +1 -1
- package/cjs/src/utils/authService/authService.js +0 -1
- package/cjs/src/utils/authService/authService.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
- package/cjs/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.js +19 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.d.ts +2 -14
- package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.js +2 -14
- package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.spec.js +43 -0
- package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/cjs/src/utils/graphql/graphql-request.d.ts.map +1 -1
- package/cjs/src/utils/graphql/graphql-request.js +2 -1
- package/cjs/src/utils/graphql/graphql-request.js.map +1 -1
- package/cjs/src/utils/processTrigger.d.ts +0 -1
- package/cjs/src/utils/processTrigger.d.ts.map +1 -1
- package/cjs/src/utils/processTrigger.js +0 -2
- package/cjs/src/utils/processTrigger.js.map +1 -1
- package/cjs/src/utils.d.ts +0 -9
- package/cjs/src/utils.d.ts.map +1 -1
- package/cjs/src/utils.js +0 -11
- package/cjs/src/utils.js.map +1 -1
- package/dist/src/auth.d.ts +0 -15
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/authToken.d.ts +0 -1
- package/dist/src/authToken.d.ts.map +1 -1
- package/dist/src/config.d.ts +0 -1
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +0 -49
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts +0 -6
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/embedConfig.d.ts +0 -2
- package/dist/src/embed/embedConfig.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +0 -30
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts +2 -18
- package/dist/src/embed/sage.d.ts.map +1 -1
- package/dist/src/embed/search-bar.d.ts +0 -11
- package/dist/src/embed/search-bar.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +0 -33
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +1 -31
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/mixpanel-service.d.ts +0 -1
- package/dist/src/mixpanel-service.d.ts.map +1 -1
- package/dist/src/react/index.d.ts +1 -12
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/test/test-utils.d.ts +0 -2
- package/dist/src/test/test-utils.d.ts.map +1 -1
- package/dist/src/tokenizedFetch.d.ts +0 -1
- package/dist/src/tokenizedFetch.d.ts.map +1 -1
- package/dist/src/types.d.ts +19 -337
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/authService/authService.d.ts +0 -1
- package/dist/src/utils/authService/authService.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
- package/dist/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answerService.d.ts +2 -14
- package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/dist/src/utils/graphql/graphql-request.d.ts.map +1 -1
- package/dist/src/utils/processTrigger.d.ts +0 -1
- package/dist/src/utils/processTrigger.d.ts.map +1 -1
- package/dist/src/utils.d.ts +0 -9
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +2030 -2380
- package/dist/tsembed-react.js +1871 -2217
- package/dist/tsembed.es.js +3443 -3790
- package/dist/tsembed.js +6371 -6710
- package/dist/visual-embed-sdk-react-full.d.ts +24 -550
- package/dist/visual-embed-sdk-react.d.ts +24 -550
- package/dist/visual-embed-sdk.d.ts +23 -538
- package/lib/package.json +1 -1
- package/lib/src/auth.d.ts +0 -15
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +3 -14
- package/lib/src/auth.js.map +1 -1
- package/lib/src/authToken.d.ts +0 -1
- package/lib/src/authToken.d.ts.map +1 -1
- package/lib/src/authToken.js +0 -1
- package/lib/src/authToken.js.map +1 -1
- package/lib/src/config.d.ts +0 -1
- package/lib/src/config.d.ts.map +1 -1
- package/lib/src/config.js +0 -2
- package/lib/src/config.js.map +1 -1
- package/lib/src/embed/app.d.ts +0 -49
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +0 -8
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/base.d.ts +0 -6
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +0 -7
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/base.spec.js +2 -2
- package/lib/src/embed/base.spec.js.map +1 -1
- package/lib/src/embed/embedConfig.d.ts +0 -2
- package/lib/src/embed/embedConfig.d.ts.map +1 -1
- package/lib/src/embed/embedConfig.js +0 -2
- package/lib/src/embed/embedConfig.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +0 -30
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +1 -6
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/sage.d.ts +2 -18
- package/lib/src/embed/sage.d.ts.map +1 -1
- package/lib/src/embed/sage.js +0 -5
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts +0 -11
- package/lib/src/embed/search-bar.d.ts.map +1 -1
- package/lib/src/embed/search-bar.js +0 -2
- package/lib/src/embed/search-bar.js.map +1 -1
- package/lib/src/embed/search.d.ts +0 -33
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +0 -3
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +1 -31
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +9 -40
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/index.d.ts +0 -1
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +0 -1
- package/lib/src/index.js.map +1 -1
- package/lib/src/mixpanel-service.d.ts +0 -1
- package/lib/src/mixpanel-service.d.ts.map +1 -1
- package/lib/src/mixpanel-service.js +0 -1
- package/lib/src/mixpanel-service.js.map +1 -1
- package/lib/src/react/index.d.ts +1 -12
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +1 -11
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/react/index.spec.js +15 -3
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/test/test-utils.d.ts +0 -2
- package/lib/src/test/test-utils.d.ts.map +1 -1
- package/lib/src/test/test-utils.js +0 -2
- package/lib/src/test/test-utils.js.map +1 -1
- package/lib/src/tokenizedFetch.d.ts +0 -1
- package/lib/src/tokenizedFetch.d.ts.map +1 -1
- package/lib/src/tokenizedFetch.js +0 -1
- package/lib/src/tokenizedFetch.js.map +1 -1
- package/lib/src/types.d.ts +19 -337
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +18 -264
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/authService/authService.d.ts +0 -1
- package/lib/src/utils/authService/authService.d.ts.map +1 -1
- package/lib/src/utils/authService/authService.js +0 -1
- package/lib/src/utils/authService/authService.js.map +1 -1
- package/lib/src/utils/authService/authService.spec.js +1 -1
- package/lib/src/utils/authService/authService.spec.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
- package/lib/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answer-queries.js +18 -0
- package/lib/src/utils/graphql/answerService/answer-queries.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.d.ts +2 -14
- package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.js +2 -14
- package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.spec.js +44 -1
- package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/lib/src/utils/graphql/graphql-request.d.ts.map +1 -1
- package/lib/src/utils/graphql/graphql-request.js +2 -1
- package/lib/src/utils/graphql/graphql-request.js.map +1 -1
- package/lib/src/utils/processTrigger.d.ts +0 -1
- package/lib/src/utils/processTrigger.d.ts.map +1 -1
- package/lib/src/utils/processTrigger.js +0 -2
- package/lib/src/utils/processTrigger.js.map +1 -1
- package/lib/src/utils.d.ts +0 -9
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +0 -11
- package/lib/src/utils.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +24 -539
- package/package.json +1 -1
- package/src/auth.ts +6 -23
- package/src/authToken.ts +0 -1
- package/src/config.ts +0 -2
- package/src/embed/app.ts +0 -49
- package/src/embed/base.spec.ts +3 -3
- package/src/embed/base.ts +0 -7
- package/src/embed/embedConfig.ts +0 -2
- package/src/embed/liveboard.ts +1 -38
- package/src/embed/sage.ts +2 -18
- package/src/embed/search-bar.tsx +0 -11
- package/src/embed/search.ts +0 -33
- package/src/embed/ts-embed.ts +38 -72
- package/src/index.ts +0 -1
- package/src/mixpanel-service.ts +0 -1
- package/src/react/index.spec.tsx +47 -59
- package/src/react/index.tsx +1 -12
- package/src/test/test-utils.ts +0 -2
- package/src/tokenizedFetch.ts +0 -1
- package/src/types.ts +19 -337
- package/src/utils/authService/authService.spec.ts +4 -4
- package/src/utils/authService/authService.ts +0 -1
- package/src/utils/graphql/answerService/answer-queries.ts +19 -0
- package/src/utils/graphql/answerService/answerService.spec.ts +53 -1
- package/src/utils/graphql/answerService/answerService.ts +2 -14
- package/src/utils/graphql/graphql-request.ts +2 -1
- package/src/utils/processTrigger.ts +0 -2
- package/src/utils.ts +0 -11
package/src/embed/liveboard.ts
CHANGED
|
@@ -4,28 +4,19 @@
|
|
|
4
4
|
* Embed a ThoughtSpot Liveboard or visualization
|
|
5
5
|
* https://developers.thoughtspot.com/docs/?pageid=embed-pinboard
|
|
6
6
|
* https://developers.thoughtspot.com/docs/?pageid=embed-a-viz
|
|
7
|
-
*
|
|
8
7
|
* @summary Liveboard & visualization embed
|
|
9
8
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
10
9
|
*/
|
|
11
10
|
|
|
12
11
|
import { ERROR_MESSAGE } from '../errors';
|
|
13
12
|
import {
|
|
14
|
-
EmbedEvent,
|
|
15
|
-
MessagePayload,
|
|
16
|
-
Param,
|
|
17
|
-
RuntimeFilter,
|
|
18
|
-
DOMSelector,
|
|
19
|
-
HostEvent,
|
|
20
|
-
ViewConfig,
|
|
13
|
+
DOMSelector, EmbedEvent, HostEvent, MessagePayload, Param, ViewConfig,
|
|
21
14
|
} from '../types';
|
|
22
15
|
import { getQueryParamString, isUndefined } from '../utils';
|
|
23
|
-
import { getAuthPromise } from './base';
|
|
24
16
|
import { V1Embed } from './ts-embed';
|
|
25
17
|
|
|
26
18
|
/**
|
|
27
19
|
* The configuration for the embedded Liveboard or visualization page view.
|
|
28
|
-
*
|
|
29
20
|
* @group Embed components
|
|
30
21
|
*/
|
|
31
22
|
export interface LiveboardViewConfig
|
|
@@ -42,9 +33,7 @@ export interface LiveboardViewConfig
|
|
|
42
33
|
* visualizations to display on the screen.
|
|
43
34
|
* Setting `fullHeight` to `false` fetches visualizations
|
|
44
35
|
* incrementally as users scroll the page to view the charts and tables.
|
|
45
|
-
*
|
|
46
36
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
|
|
47
|
-
*
|
|
48
37
|
* @example
|
|
49
38
|
* ```js
|
|
50
39
|
* const embed = new LiveboardEmbed('#embed', {
|
|
@@ -58,7 +47,6 @@ export interface LiveboardViewConfig
|
|
|
58
47
|
* This is the minimum height(in pixels) for a full-height Liveboard.
|
|
59
48
|
* Setting this height helps resolve issues with empty Liveboards and
|
|
60
49
|
* other screens navigable from a Liveboard.
|
|
61
|
-
*
|
|
62
50
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
63
51
|
* @default 500
|
|
64
52
|
* @example
|
|
@@ -73,7 +61,6 @@ export interface LiveboardViewConfig
|
|
|
73
61
|
defaultHeight?: number;
|
|
74
62
|
/**
|
|
75
63
|
* @Deprecated If set to true, the context menu in visualizations will be enabled.
|
|
76
|
-
*
|
|
77
64
|
* @example
|
|
78
65
|
* ```js
|
|
79
66
|
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
@@ -81,14 +68,12 @@ export interface LiveboardViewConfig
|
|
|
81
68
|
* enableVizTransformations:true,
|
|
82
69
|
* })
|
|
83
70
|
* ```
|
|
84
|
-
*
|
|
85
71
|
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
86
72
|
*/
|
|
87
73
|
enableVizTransformations?: boolean;
|
|
88
74
|
/**
|
|
89
75
|
* The Liveboard to display in the embedded view.
|
|
90
76
|
* Use either liveboardId or pinboardId to reference the Liveboard to embed.
|
|
91
|
-
*
|
|
92
77
|
* @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
|
|
93
78
|
* @example
|
|
94
79
|
* ```js
|
|
@@ -100,15 +85,12 @@ export interface LiveboardViewConfig
|
|
|
100
85
|
liveboardId?: string;
|
|
101
86
|
/**
|
|
102
87
|
* To support backward compatibility
|
|
103
|
-
*
|
|
104
88
|
* @hidden
|
|
105
89
|
*/
|
|
106
90
|
pinboardId?: string;
|
|
107
91
|
/**
|
|
108
92
|
* The visualization within the Liveboard to display.
|
|
109
|
-
*
|
|
110
93
|
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
|
|
111
|
-
*
|
|
112
94
|
* @example
|
|
113
95
|
* ```js
|
|
114
96
|
* const embed = new LiveboardEmbed('#embed-container', {
|
|
@@ -121,7 +103,6 @@ export interface LiveboardViewConfig
|
|
|
121
103
|
/**
|
|
122
104
|
* If set to true, all filter chips from a
|
|
123
105
|
* Liveboard page will be read-only (no X buttons)
|
|
124
|
-
*
|
|
125
106
|
* @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1.sw
|
|
126
107
|
* @example
|
|
127
108
|
* ```js
|
|
@@ -136,9 +117,7 @@ export interface LiveboardViewConfig
|
|
|
136
117
|
* Array of visualization IDs which should be visible when the Liveboard
|
|
137
118
|
* renders. This can be changed by triggering the `SetVisibleVizs`
|
|
138
119
|
* event.
|
|
139
|
-
*
|
|
140
120
|
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
|
|
141
|
-
*
|
|
142
121
|
* @example
|
|
143
122
|
* ```js
|
|
144
123
|
* const embed = new LiveboardEmbed('#embed-container', {
|
|
@@ -152,14 +131,12 @@ export interface LiveboardViewConfig
|
|
|
152
131
|
visibleVizs?: string[];
|
|
153
132
|
/**
|
|
154
133
|
* To support backward compatibility
|
|
155
|
-
*
|
|
156
134
|
* @hidden
|
|
157
135
|
*/
|
|
158
136
|
preventPinboardFilterRemoval?: boolean;
|
|
159
137
|
/**
|
|
160
138
|
* Render embedded Liveboards and visualizations in the
|
|
161
139
|
* new Liveboard experience mode.
|
|
162
|
-
*
|
|
163
140
|
* @version SDK: 1.14.0 | ThoughtSpot: 8.6.0.cl, 8.8.1-sw
|
|
164
141
|
* @example
|
|
165
142
|
* ```js
|
|
@@ -173,7 +150,6 @@ export interface LiveboardViewConfig
|
|
|
173
150
|
/**
|
|
174
151
|
* Set a Liveboard tab as an active tab.
|
|
175
152
|
* Specify the tab ID.
|
|
176
|
-
*
|
|
177
153
|
* @example
|
|
178
154
|
* ```js
|
|
179
155
|
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
@@ -186,9 +162,7 @@ export interface LiveboardViewConfig
|
|
|
186
162
|
activeTabId?: string;
|
|
187
163
|
/**
|
|
188
164
|
* Show or hide the tab panel of the embedded Liveboard.
|
|
189
|
-
*
|
|
190
165
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
|
|
191
|
-
*
|
|
192
166
|
* @example
|
|
193
167
|
* ```js
|
|
194
168
|
* const embed = new LiveboardEmbed('#embed-container', {
|
|
@@ -200,7 +174,6 @@ export interface LiveboardViewConfig
|
|
|
200
174
|
hideTabPanel?: boolean;
|
|
201
175
|
/**
|
|
202
176
|
* Show or hide the Liveboard header.
|
|
203
|
-
*
|
|
204
177
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
205
178
|
* @default false
|
|
206
179
|
* @example
|
|
@@ -216,7 +189,6 @@ export interface LiveboardViewConfig
|
|
|
216
189
|
* Show or hide the Liveboard title.
|
|
217
190
|
* @default false
|
|
218
191
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
219
|
-
*
|
|
220
192
|
* @example
|
|
221
193
|
* ```js
|
|
222
194
|
* const embed = new LiveboardEmbed('#embed-container', {
|
|
@@ -230,7 +202,6 @@ export interface LiveboardViewConfig
|
|
|
230
202
|
* Show or hide the Liveboard description.
|
|
231
203
|
* @default false
|
|
232
204
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
233
|
-
*
|
|
234
205
|
* @example
|
|
235
206
|
* ```js
|
|
236
207
|
* const embed = new LiveboardEmbed('#embed-container', {
|
|
@@ -244,7 +215,6 @@ export interface LiveboardViewConfig
|
|
|
244
215
|
* Control the position and visibility of
|
|
245
216
|
* the Liveboard header as the users scroll down the
|
|
246
217
|
* embedded Liveboard page.
|
|
247
|
-
*
|
|
248
218
|
* @example
|
|
249
219
|
* ```js
|
|
250
220
|
* const embed = new LiveboardEmbed('#embed', {
|
|
@@ -257,7 +227,6 @@ export interface LiveboardViewConfig
|
|
|
257
227
|
isLiveboardHeaderSticky?: boolean;
|
|
258
228
|
/**
|
|
259
229
|
* enable or disable ask sage
|
|
260
|
-
*
|
|
261
230
|
* @default false
|
|
262
231
|
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
263
232
|
* @example
|
|
@@ -271,11 +240,9 @@ export interface LiveboardViewConfig
|
|
|
271
240
|
enableAskSage?: boolean;
|
|
272
241
|
/**
|
|
273
242
|
* This flag is used to enable the 2 column layout in liveboard
|
|
274
|
-
*
|
|
275
243
|
* @type {boolean}
|
|
276
244
|
* @default false
|
|
277
245
|
* @version SDK: 1.32.0 | ThoughtSpot:10.1.0.cl
|
|
278
|
-
*
|
|
279
246
|
* @example
|
|
280
247
|
* ```js
|
|
281
248
|
* const embed = new LiveboardEmbed('#embed-container', {
|
|
@@ -291,7 +258,6 @@ export interface LiveboardViewConfig
|
|
|
291
258
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
292
259
|
* waits for the authentication to complete, so you need not wait for
|
|
293
260
|
* `AuthStatus.SUCCESS`.
|
|
294
|
-
*
|
|
295
261
|
* @example
|
|
296
262
|
* ```js
|
|
297
263
|
* import { .. } from '@thoughtspot/visual-embed-sdk';
|
|
@@ -429,7 +395,6 @@ export class LiveboardEmbed extends V1Embed {
|
|
|
429
395
|
/**
|
|
430
396
|
* Set the iframe height as per the computed height received
|
|
431
397
|
* from the ThoughtSpot app.
|
|
432
|
-
*
|
|
433
398
|
* @param data The event payload
|
|
434
399
|
*/
|
|
435
400
|
private updateIFrameHeight = (data: MessagePayload) => {
|
|
@@ -483,7 +448,6 @@ export class LiveboardEmbed extends V1Embed {
|
|
|
483
448
|
|
|
484
449
|
/**
|
|
485
450
|
* Triggers an event to the embedded app
|
|
486
|
-
*
|
|
487
451
|
* @param messageType The event type
|
|
488
452
|
* @param data The payload to send with the message
|
|
489
453
|
*/
|
|
@@ -501,7 +465,6 @@ export class LiveboardEmbed extends V1Embed {
|
|
|
501
465
|
|
|
502
466
|
/**
|
|
503
467
|
* Render an embedded ThoughtSpot Liveboard or visualization
|
|
504
|
-
*
|
|
505
468
|
* @param renderOptions An object specifying the Liveboard ID,
|
|
506
469
|
* visualization ID and the runtime filters.
|
|
507
470
|
*/
|
package/src/embed/sage.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Copyright (c) 2023
|
|
3
3
|
*
|
|
4
4
|
* Embed ThoughtSpot Sage
|
|
5
|
-
*
|
|
6
5
|
* @summary TS Sage embed
|
|
7
6
|
* @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
|
|
8
7
|
*/
|
|
@@ -31,7 +30,6 @@ export interface SearchOptions {
|
|
|
31
30
|
/**
|
|
32
31
|
* The configuration attributes for the embedded Natural language search view. Based on
|
|
33
32
|
* GPT and LLM.
|
|
34
|
-
*
|
|
35
33
|
* @version: SDK: 1.23.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
36
34
|
* @group Embed components
|
|
37
35
|
*/
|
|
@@ -44,7 +42,6 @@ export interface SageViewConfig
|
|
|
44
42
|
* If set to true, a list of Liveboard and Answers related
|
|
45
43
|
* to the natural language search will be shown below the
|
|
46
44
|
* AI generated answer.
|
|
47
|
-
*
|
|
48
45
|
* @deprecated Currently Liveboard and Answers related
|
|
49
46
|
* to the natural language search will not be shown for sage
|
|
50
47
|
* embed
|
|
@@ -52,11 +49,10 @@ export interface SageViewConfig
|
|
|
52
49
|
showObjectResults?: boolean;
|
|
53
50
|
/**
|
|
54
51
|
* flag used by the TS product tour page to show the blue search bar
|
|
55
|
-
* even after the search is completed. This is different from Thoughtspot Embedded
|
|
56
|
-
* experience where it mimics closer to the non-embed case.
|
|
52
|
+
* even after the search is completed. This is different from Thoughtspot Embedded
|
|
53
|
+
* Sage Embed experience where it mimics closer to the non-embed case.
|
|
57
54
|
* The Sample questions container is collapsed when this value is set after
|
|
58
55
|
* does a search.
|
|
59
|
-
*
|
|
60
56
|
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl
|
|
61
57
|
* @hidden
|
|
62
58
|
*/
|
|
@@ -64,38 +60,32 @@ export interface SageViewConfig
|
|
|
64
60
|
/**
|
|
65
61
|
* Show or hide the search bar title.
|
|
66
62
|
* @version SDK: 1.29.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
67
|
-
*
|
|
68
63
|
* @deprecated Thoughtspot: 9.10.0.cl | search bar doesn't have the title from 9.10.0.cl
|
|
69
64
|
*/
|
|
70
65
|
hideSearchBarTitle?: boolean;
|
|
71
66
|
/**
|
|
72
67
|
* Show or hide the Answer header, that is, the `AI Answer` title
|
|
73
68
|
* at the top of the Answer page.
|
|
74
|
-
*
|
|
75
69
|
* @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
|
|
76
70
|
*/
|
|
77
71
|
hideSageAnswerHeader?: boolean;
|
|
78
72
|
/**
|
|
79
73
|
* Disable the worksheet selection option.
|
|
80
|
-
*
|
|
81
74
|
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
82
75
|
*/
|
|
83
76
|
disableWorksheetChange?: boolean;
|
|
84
77
|
/**
|
|
85
78
|
* Hide the worksheet selection panel.
|
|
86
|
-
*
|
|
87
79
|
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
88
80
|
*/
|
|
89
81
|
hideWorksheetSelector?: boolean;
|
|
90
82
|
/**
|
|
91
83
|
* Show or hide autocomplete suggestions for the search query string.
|
|
92
|
-
*
|
|
93
84
|
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
94
85
|
*/
|
|
95
86
|
hideAutocompleteSuggestions?: boolean;
|
|
96
87
|
/**
|
|
97
88
|
* Show or hide autocomplete suggestions for the search query string.
|
|
98
|
-
*
|
|
99
89
|
* @deprecated
|
|
100
90
|
* Currently, the object suggestions will not be shown for Natural Language Search.
|
|
101
91
|
* You can use {@link hideAutocompleteSuggestions} instead.
|
|
@@ -105,7 +95,6 @@ export interface SageViewConfig
|
|
|
105
95
|
* Show or hide sample questions.
|
|
106
96
|
* The sample questions are autogenerated based on the worksheet
|
|
107
97
|
* selected for the search operation.
|
|
108
|
-
*
|
|
109
98
|
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
110
99
|
*/
|
|
111
100
|
hideSampleQuestions?: boolean;
|
|
@@ -123,7 +112,6 @@ export interface SageViewConfig
|
|
|
123
112
|
* If it is executed, the focus is placed on the results.
|
|
124
113
|
* If it’s not executed, the focus is placed at the end of
|
|
125
114
|
* the token string in the search bar.
|
|
126
|
-
*
|
|
127
115
|
* @example
|
|
128
116
|
* ```js
|
|
129
117
|
* searchOptions: {
|
|
@@ -137,7 +125,6 @@ export interface SageViewConfig
|
|
|
137
125
|
}
|
|
138
126
|
/**
|
|
139
127
|
* Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
|
|
140
|
-
*
|
|
141
128
|
* @version: SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
|
|
142
129
|
* @group Embed components
|
|
143
130
|
*/
|
|
@@ -157,7 +144,6 @@ export class SageEmbed extends V1Embed {
|
|
|
157
144
|
/**
|
|
158
145
|
* Constructs a map of parameters to be passed on to the
|
|
159
146
|
* embedded Eureka or Sage search page.
|
|
160
|
-
*
|
|
161
147
|
* @returns {string} query string
|
|
162
148
|
*/
|
|
163
149
|
protected getEmbedParams(): string {
|
|
@@ -191,7 +177,6 @@ export class SageEmbed extends V1Embed {
|
|
|
191
177
|
/**
|
|
192
178
|
* Construct the URL of the embedded ThoughtSpot sage to be
|
|
193
179
|
* loaded in the iframe
|
|
194
|
-
*
|
|
195
180
|
* @returns {string} iframe url
|
|
196
181
|
*/
|
|
197
182
|
public getIFrameSrc(): string {
|
|
@@ -217,7 +202,6 @@ export class SageEmbed extends V1Embed {
|
|
|
217
202
|
|
|
218
203
|
/**
|
|
219
204
|
* Render the embedded ThoughtSpot Sage
|
|
220
|
-
*
|
|
221
205
|
* @returns {SageEmbed} Eureka/Sage embed
|
|
222
206
|
*/
|
|
223
207
|
public async render(): Promise<SageEmbed> {
|
package/src/embed/search-bar.tsx
CHANGED
|
@@ -21,11 +21,8 @@ export interface SearchBarViewConfig
|
|
|
21
21
|
/**
|
|
22
22
|
* The array of data source GUIDs to set on load.
|
|
23
23
|
* Only a single data source is supported currently.
|
|
24
|
-
*
|
|
25
24
|
* @deprecated Use `dataSource` instead
|
|
26
|
-
*
|
|
27
25
|
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.1-sw
|
|
28
|
-
*
|
|
29
26
|
* @example
|
|
30
27
|
* ```js
|
|
31
28
|
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
@@ -37,9 +34,7 @@ export interface SearchBarViewConfig
|
|
|
37
34
|
dataSources?: string[];
|
|
38
35
|
/**
|
|
39
36
|
* Pass the ID of the source to be selected.
|
|
40
|
-
*
|
|
41
37
|
* @version: SDK: 1.19.0, ThoughtSpot 9.0.0.cl, 9.0.1.sw
|
|
42
|
-
*
|
|
43
38
|
* @example
|
|
44
39
|
* ```js
|
|
45
40
|
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
@@ -51,9 +46,7 @@ export interface SearchBarViewConfig
|
|
|
51
46
|
dataSource?: string;
|
|
52
47
|
/**
|
|
53
48
|
* Boolean to define if the last selected data source should be used
|
|
54
|
-
*
|
|
55
49
|
* @version: SDK: 1.24.0, ThoughtSpot 9.5.0.cl, 9.5.0.sw
|
|
56
|
-
*
|
|
57
50
|
* @example
|
|
58
51
|
* ```js
|
|
59
52
|
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
@@ -73,9 +66,7 @@ export interface SearchBarViewConfig
|
|
|
73
66
|
* If it is executed, the focus is placed on the results.
|
|
74
67
|
* If it’s not executed, the focus is placed at the end of
|
|
75
68
|
* the token string in the search bar.
|
|
76
|
-
*
|
|
77
69
|
* @version: SDK: 1.2.0 | ThoughtSpot: 9.4.0.sw
|
|
78
|
-
*
|
|
79
70
|
* @example
|
|
80
71
|
* ```js
|
|
81
72
|
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
@@ -92,7 +83,6 @@ export interface SearchBarViewConfig
|
|
|
92
83
|
|
|
93
84
|
/**
|
|
94
85
|
* Embed ThoughtSpot search bar
|
|
95
|
-
*
|
|
96
86
|
* @version: SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
|
|
97
87
|
* @group Embed components
|
|
98
88
|
*/
|
|
@@ -112,7 +102,6 @@ export class SearchBarEmbed extends TsEmbed {
|
|
|
112
102
|
/**
|
|
113
103
|
* Construct the URL of the embedded ThoughtSpot search to be
|
|
114
104
|
* loaded in the iframe
|
|
115
|
-
*
|
|
116
105
|
* @param dataSources A list of data source GUIDs
|
|
117
106
|
*/
|
|
118
107
|
private getIFrameSrc() {
|
package/src/embed/search.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Copyright (c) 2022
|
|
3
3
|
*
|
|
4
4
|
* Embed ThoughtSpot search or a saved answer
|
|
5
|
-
*
|
|
6
5
|
* @summary Search embed
|
|
7
6
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
8
7
|
*/
|
|
@@ -65,7 +64,6 @@ export enum DataPanelCustomColumnGroupsAccordionState {
|
|
|
65
64
|
|
|
66
65
|
/**
|
|
67
66
|
* The configuration attributes for the embedded search view.
|
|
68
|
-
*
|
|
69
67
|
* @group Embed components
|
|
70
68
|
*/
|
|
71
69
|
export interface SearchViewConfig
|
|
@@ -80,9 +78,7 @@ export interface SearchViewConfig
|
|
|
80
78
|
/**
|
|
81
79
|
* If set to true, the data sources panel is collapsed on load,
|
|
82
80
|
* but can be expanded manually.
|
|
83
|
-
*
|
|
84
81
|
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
85
|
-
*
|
|
86
82
|
* @example
|
|
87
83
|
* ```js
|
|
88
84
|
* const embed = new SearchEmbed('#tsEmbed', {
|
|
@@ -94,9 +90,7 @@ export interface SearchViewConfig
|
|
|
94
90
|
collapseDataSources?: boolean;
|
|
95
91
|
/**
|
|
96
92
|
* Show or hide the data sources panel.
|
|
97
|
-
*
|
|
98
93
|
* @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
|
|
99
|
-
*
|
|
100
94
|
* @example
|
|
101
95
|
* ```js
|
|
102
96
|
* const embed = new SearchEmbed('#tsEmbed', {
|
|
@@ -110,9 +104,7 @@ export interface SearchViewConfig
|
|
|
110
104
|
* Show or hide the charts and tables in search answers.
|
|
111
105
|
* This attribute can be used to create a custom visualization
|
|
112
106
|
* using raw answer data.
|
|
113
|
-
*
|
|
114
107
|
* @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
|
|
115
|
-
*
|
|
116
108
|
* @example
|
|
117
109
|
* ```js
|
|
118
110
|
* const embed = new SearchEmbed('#tsEmbed', {
|
|
@@ -124,9 +116,7 @@ export interface SearchViewConfig
|
|
|
124
116
|
hideResults?: boolean;
|
|
125
117
|
/**
|
|
126
118
|
* If set to true, the Search Assist feature is enabled.
|
|
127
|
-
*
|
|
128
119
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
|
|
129
|
-
*
|
|
130
120
|
* @example
|
|
131
121
|
* ```js
|
|
132
122
|
* const embed = new SearchEmbed('#tsEmbed', {
|
|
@@ -139,9 +129,7 @@ export interface SearchViewConfig
|
|
|
139
129
|
/**
|
|
140
130
|
* If set to true, the tabular view is set as the default
|
|
141
131
|
* format for presenting search data.
|
|
142
|
-
*
|
|
143
132
|
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
144
|
-
*
|
|
145
133
|
* @example
|
|
146
134
|
* ```js
|
|
147
135
|
* const embed = new SearchEmbed('#tsEmbed', {
|
|
@@ -153,9 +141,7 @@ export interface SearchViewConfig
|
|
|
153
141
|
/**
|
|
154
142
|
* The array of data source GUIDs to set on load.
|
|
155
143
|
* Only a single data source is supported currently.
|
|
156
|
-
*
|
|
157
144
|
* @deprecated Use `dataSource` instead.
|
|
158
|
-
*
|
|
159
145
|
* @example
|
|
160
146
|
* ```js
|
|
161
147
|
* const embed = new SearchEmbed('#tsEmbed', {
|
|
@@ -167,9 +153,7 @@ export interface SearchViewConfig
|
|
|
167
153
|
dataSources?: string[];
|
|
168
154
|
/**
|
|
169
155
|
* The array of data source GUIDs to set on load.
|
|
170
|
-
*
|
|
171
156
|
* @version: SDK: 1.19.0
|
|
172
|
-
*
|
|
173
157
|
* @example
|
|
174
158
|
* ```js
|
|
175
159
|
* const embed = new SearchEmbed('#tsEmbed', {
|
|
@@ -181,7 +165,6 @@ export interface SearchViewConfig
|
|
|
181
165
|
dataSource?: string;
|
|
182
166
|
/**
|
|
183
167
|
* The initial search query to load the answer with.
|
|
184
|
-
*
|
|
185
168
|
* @deprecated
|
|
186
169
|
*
|
|
187
170
|
* Use {@link searchOptions} instead.
|
|
@@ -197,7 +180,6 @@ export interface SearchViewConfig
|
|
|
197
180
|
* If it is executed, the focus is placed on the results.
|
|
198
181
|
* If it’s not executed, the focus is placed at the end of
|
|
199
182
|
* the token string in the search bar.
|
|
200
|
-
*
|
|
201
183
|
* @example
|
|
202
184
|
* ```js
|
|
203
185
|
* searchOptions: {
|
|
@@ -209,9 +191,7 @@ export interface SearchViewConfig
|
|
|
209
191
|
searchOptions?: SearchOptions;
|
|
210
192
|
/**
|
|
211
193
|
* The GUID of a saved answer to load initially.
|
|
212
|
-
*
|
|
213
194
|
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
214
|
-
*
|
|
215
195
|
* @example
|
|
216
196
|
* ```js
|
|
217
197
|
* const embed = new SearchEmbed('#tsEmbed', {
|
|
@@ -224,9 +204,7 @@ export interface SearchViewConfig
|
|
|
224
204
|
/**
|
|
225
205
|
* If set to true, the search page will render without the Search Bar
|
|
226
206
|
* The chart/table should still be visible.
|
|
227
|
-
*
|
|
228
207
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
229
|
-
*
|
|
230
208
|
* @example
|
|
231
209
|
* ```js
|
|
232
210
|
* const embed = new SearchEmbed('#tsEmbed', {
|
|
@@ -238,10 +216,8 @@ export interface SearchViewConfig
|
|
|
238
216
|
hideSearchBar?: boolean;
|
|
239
217
|
/**
|
|
240
218
|
* Flag to control Data panel experience
|
|
241
|
-
*
|
|
242
219
|
* @default false
|
|
243
220
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
244
|
-
*
|
|
245
221
|
* @example
|
|
246
222
|
* ```js
|
|
247
223
|
* const embed = new SearchEmbed('#tsEmbed', {
|
|
@@ -253,23 +229,19 @@ export interface SearchViewConfig
|
|
|
253
229
|
dataPanelV2?: boolean;
|
|
254
230
|
/**
|
|
255
231
|
* Flag to set if last selected dataSource should be used
|
|
256
|
-
*
|
|
257
232
|
* @version: SDK: 1.24.0
|
|
258
233
|
*/
|
|
259
234
|
useLastSelectedSources?: boolean;
|
|
260
235
|
/**
|
|
261
236
|
* To set the initial state of the search bar in case of saved-answers.
|
|
262
|
-
*
|
|
263
237
|
* @default false
|
|
264
238
|
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
265
239
|
*/
|
|
266
240
|
collapseSearchBarInitially?: boolean;
|
|
267
241
|
/**
|
|
268
242
|
* To enable custom column groups in data panel v2
|
|
269
|
-
*
|
|
270
243
|
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
271
244
|
* @default false
|
|
272
|
-
*
|
|
273
245
|
* @example
|
|
274
246
|
* ```js
|
|
275
247
|
* const embed = new SearchEmbed('#tsEmbed', {
|
|
@@ -281,7 +253,6 @@ export interface SearchViewConfig
|
|
|
281
253
|
enableCustomColumnGroups?: boolean;
|
|
282
254
|
/**
|
|
283
255
|
* Flag to enable onBeforeSearchExecute Embed Event
|
|
284
|
-
*
|
|
285
256
|
* @version: SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
|
|
286
257
|
*/
|
|
287
258
|
isOnBeforeGetVizDataInterceptEnabled?: boolean;
|
|
@@ -292,10 +263,8 @@ export interface SearchViewConfig
|
|
|
292
263
|
* - EXPAND_ALL: Expand all the accordion initially in data panel v2.
|
|
293
264
|
* - COLLAPSE_ALL: Collapse all the accordions initially in data panel v2.
|
|
294
265
|
* - EXPAND_FIRST: Expand the first accordion and collapse the rest.
|
|
295
|
-
*
|
|
296
266
|
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
297
267
|
* @default DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL
|
|
298
|
-
*
|
|
299
268
|
* @example
|
|
300
269
|
* ```js
|
|
301
270
|
* const embed = new SearchEmbed('#tsEmbed', {
|
|
@@ -318,7 +287,6 @@ export const HiddenActionItemByDefaultForSearchEmbed = [
|
|
|
318
287
|
|
|
319
288
|
/**
|
|
320
289
|
* Embed ThoughtSpot search
|
|
321
|
-
*
|
|
322
290
|
* @group Embed components
|
|
323
291
|
*/
|
|
324
292
|
export class SearchEmbed extends TsEmbed {
|
|
@@ -451,7 +419,6 @@ export class SearchEmbed extends TsEmbed {
|
|
|
451
419
|
/**
|
|
452
420
|
* Construct the URL of the embedded ThoughtSpot search to be
|
|
453
421
|
* loaded in the iframe
|
|
454
|
-
*
|
|
455
422
|
* @param answerId The GUID of a saved answer
|
|
456
423
|
* @param dataSources A list of data source GUIDs
|
|
457
424
|
*/
|