@thoughtspot/visual-embed-sdk 1.15.0-searchbar.1 → 1.15.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/CHANGELOG.md +8 -4
- package/README.md +4 -4
- package/dist/src/embed/app.d.ts +0 -1
- package/dist/src/embed/liveboard.d.ts +0 -1
- package/dist/src/embed/search.d.ts +6 -1
- package/dist/src/index.d.ts +1 -2
- package/dist/src/types.d.ts +5 -1
- package/dist/tsembed.es.js +15 -63
- package/dist/tsembed.js +14 -63
- package/lib/package.json +4 -3
- package/lib/src/embed/app.d.ts +0 -1
- package/lib/src/embed/app.js +4 -2
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +1 -1
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +0 -1
- package/lib/src/embed/liveboard.js +4 -2
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +2 -2
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/pinboard.spec.js +2 -2
- package/lib/src/embed/pinboard.spec.js.map +1 -1
- package/lib/src/embed/search.d.ts +6 -1
- package/lib/src/embed/search.js +1 -1
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +1 -1
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +1 -2
- package/lib/src/index.js +1 -2
- package/lib/src/index.js.map +1 -1
- package/lib/src/types.d.ts +5 -1
- package/lib/src/types.js +4 -0
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +12 -43
- package/package.json +4 -3
- package/src/embed/app.spec.ts +1 -1
- package/src/embed/app.ts +4 -3
- package/src/embed/liveboard.spec.ts +2 -2
- package/src/embed/liveboard.ts +4 -3
- package/src/embed/pinboard.spec.ts +2 -2
- package/src/embed/search.ts +6 -1
- package/src/embed/ts-embed.spec.ts +1 -1
- package/src/index.ts +0 -3
- package/src/types.ts +6 -1
- package/dist/src/embed/pinboard.d.ts +0 -91
- package/dist/src/embed/search-bar.d.ts +0 -40
- package/dist/src/utils/plugin.d.ts +0 -0
- package/dist/src/v1/api.d.ts +0 -19
- package/lib/src/embed/pinboard.d.ts +0 -91
- package/lib/src/embed/pinboard.js +0 -110
- package/lib/src/embed/pinboard.js.map +0 -1
- package/lib/src/embed/search-bar.d.ts +0 -40
- package/lib/src/embed/search-bar.js +0 -59
- package/lib/src/embed/search-bar.js.map +0 -1
- package/lib/src/utils/plugin.d.ts +0 -0
- package/lib/src/utils/plugin.js +0 -1
- package/lib/src/utils/plugin.js.map +0 -1
- package/src/embed/search-bar.tsx +0 -89
package/CHANGELOG.md
CHANGED
|
@@ -6,14 +6,14 @@ This project follows Semantic Versioning.
|
|
|
6
6
|
## Unreleased
|
|
7
7
|
|
|
8
8
|
### New Features
|
|
9
|
-
- Set of new Host events to drive interactions on the embed programatically
|
|
9
|
+
- Set of new Host events to drive interactions on the embed programatically
|
|
10
10
|
|
|
11
11
|
## 1.14.1 (08-31-2022)
|
|
12
12
|
- Fixed "not logged in" message showing up on "SearchEmbed" with AuthType.None.
|
|
13
13
|
|
|
14
14
|
## 1.14.0 (08-29-2022)
|
|
15
15
|
- [AuthType.AuthServer] Now uses `POST` call to log the user in using the bearer token.
|
|
16
|
-
- `liveboardV2` flag on `LiveboardEmbed` to try out the LiveboardV2 experience.
|
|
16
|
+
- `liveboardV2` flag on `LiveboardEmbed` to try out the LiveboardV2 experience.
|
|
17
17
|
|
|
18
18
|
## 1.13.0 (07-19-2022)
|
|
19
19
|
- Release to support TS version 8.5.0.cl
|
|
@@ -29,6 +29,10 @@ This project follows Semantic Versioning.
|
|
|
29
29
|
### Fixed
|
|
30
30
|
- Typescript build that was affecting some Angular project configurations
|
|
31
31
|
|
|
32
|
+
## 1.11.2 (06-10-2022)
|
|
33
|
+
### Fixed
|
|
34
|
+
- Typescript build that was affecting some Angular project configurations
|
|
35
|
+
|
|
32
36
|
## 1.11.1 (05-30-2022)
|
|
33
37
|
### Fixed
|
|
34
38
|
- Whitelabeling - new [action](https://developers.thoughtspot.com/docs/typedoc/enums/Action.html#ReportError) for the ability to turn off TS specific error reporting by end users.
|
|
@@ -77,12 +81,12 @@ This project follows Semantic Versioning.
|
|
|
77
81
|
|
|
78
82
|
## 1.9.3 (03-22-2022)
|
|
79
83
|
|
|
80
|
-
### New Features
|
|
84
|
+
### New Features
|
|
81
85
|
- `disableLoginRedirect` option in `EmbedConfig`
|
|
82
86
|
|
|
83
87
|
## 1.9.2 (03-17-2022)
|
|
84
88
|
|
|
85
|
-
### New Features
|
|
89
|
+
### New Features
|
|
86
90
|
- Ability to trigger events on React components
|
|
87
91
|
- Added new `useEmbedRef` hook, check README for usage.
|
|
88
92
|
|
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="https://raw.githubusercontent.com/thoughtspot/visual-embed-sdk/main/static/doc-images/images/TS-Logo-black-no-bg.svg" width=
|
|
2
|
+
<img src="https://raw.githubusercontent.com/thoughtspot/visual-embed-sdk/main/static/doc-images/images/TS-Logo-black-no-bg.svg" width=120 align="center" alt="ThoughtSpot" />
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<br/>
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
# ThoughtSpot Visual Embed SDK <br/> [](https://coveralls.io/github/ts-blink/embed-sdk?branch=main)  [](https://www.jsdelivr.com/package/npm/@thoughtspot/visual-embed-sdk)  [](https://openbase.com/js/@thoughtspot/visual-embed-sdk?utm_source=embedded&utm_medium=badge&utm_campaign=rate-badge) 
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
SDK to embed ThoughtSpot into your web apps.
|
|
10
|
+
SDK to embed ThoughtSpot into your web apps. You need to have a ThoughtSpot account to use the SDK, [click here](https://www.thoughtspot.com/trial?tsref=trialtse) to start a trial.
|
|
11
11
|
|
|
12
|
-
* [
|
|
12
|
+
* [Installation](#installation)
|
|
13
13
|
* [Live Playground](#live-playground)
|
|
14
14
|
* [Full API Reference](#full-api-reference)
|
|
15
15
|
* [Quick Start](#quick-start)
|
|
@@ -21,7 +21,7 @@ SDK to embed ThoughtSpot into your web apps.
|
|
|
21
21
|
* [Search Component](#search-component)
|
|
22
22
|
* [Triggering events on React components](#triggering-events-on-react-components--version-192)
|
|
23
23
|
|
|
24
|
-
##
|
|
24
|
+
## Installation
|
|
25
25
|
|
|
26
26
|
The SDK is compatible with ThoughtSpot SW version >= 7.1 and ThoughtSpot Cloud.
|
|
27
27
|
|
package/dist/src/embed/app.d.ts
CHANGED
|
@@ -81,7 +81,6 @@ export interface AppViewConfig extends ViewConfig {
|
|
|
81
81
|
/**
|
|
82
82
|
* Render liveboards using the new v2 rendering mode
|
|
83
83
|
* This is a transient flag which is primarily meant for internal use
|
|
84
|
-
* @default false
|
|
85
84
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
86
85
|
* @hidden
|
|
87
86
|
*/
|
|
@@ -65,7 +65,6 @@ export interface LiveboardViewConfig extends ViewConfig {
|
|
|
65
65
|
preventPinboardFilterRemoval?: boolean;
|
|
66
66
|
/**
|
|
67
67
|
* Render embedded Liveboards and visualizations in the new Liveboard experience mode
|
|
68
|
-
* @default false
|
|
69
68
|
* @version SDK: 1.14.0 | ThoughtSpot: 8.6.0.cl, 8.8.1-sw
|
|
70
69
|
*/
|
|
71
70
|
liveboardV2?: boolean;
|
|
@@ -11,7 +11,7 @@ import { ViewConfig, TsEmbed } from './ts-embed';
|
|
|
11
11
|
/**
|
|
12
12
|
* Configuration for search options
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
interface SearchOptions {
|
|
15
15
|
/**
|
|
16
16
|
* The tml string to load the answer
|
|
17
17
|
*/
|
|
@@ -44,6 +44,10 @@ export interface SearchViewConfig extends ViewConfig {
|
|
|
44
44
|
* using raw answer data.
|
|
45
45
|
*/
|
|
46
46
|
hideResults?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* If set to true, expands all the data sources panel.
|
|
49
|
+
*/
|
|
50
|
+
expandAllDataSource?: boolean;
|
|
47
51
|
/**
|
|
48
52
|
* If set to true, the Search Assist feature is enabled.
|
|
49
53
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
|
|
@@ -101,3 +105,4 @@ export declare class SearchEmbed extends TsEmbed {
|
|
|
101
105
|
*/
|
|
102
106
|
render(): SearchEmbed;
|
|
103
107
|
}
|
|
108
|
+
export {};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ import { AppEmbed, Page, AppViewConfig } from './embed/app';
|
|
|
11
11
|
import { init, prefetch, logout } from './embed/base';
|
|
12
12
|
import { PinboardEmbed, LiveboardViewConfig, LiveboardEmbed } from './embed/liveboard';
|
|
13
13
|
import { SearchEmbed, SearchViewConfig } from './embed/search';
|
|
14
|
-
import { SearchBarEmbed, SearchBarViewConfig } from './embed/search-bar';
|
|
15
14
|
import { AuthFailureType, AuthStatus } from './auth';
|
|
16
15
|
import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig } from './types';
|
|
17
|
-
export { init, logout, prefetch, SearchEmbed,
|
|
16
|
+
export { init, logout, prefetch, SearchEmbed, PinboardEmbed, LiveboardEmbed, AppEmbed, AuthFailureType, AuthStatus, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, SearchViewConfig, LiveboardViewConfig, AppViewConfig, };
|
package/dist/src/types.d.ts
CHANGED
|
@@ -15,6 +15,10 @@ export declare enum AuthType {
|
|
|
15
15
|
* No authentication on the SDK. Passthrough to the embedded App. Alias for `Passthrough`.
|
|
16
16
|
*/
|
|
17
17
|
None = "None",
|
|
18
|
+
/**
|
|
19
|
+
* No authentication on the SDK. Passthrough to the embedded App.
|
|
20
|
+
*/
|
|
21
|
+
Passthrough = "None",
|
|
18
22
|
/**
|
|
19
23
|
* SSO using SAML
|
|
20
24
|
* @deprecated Use {@link SAML} instead
|
|
@@ -195,7 +199,7 @@ export interface EmbedConfig {
|
|
|
195
199
|
/**
|
|
196
200
|
* Custom style params for embed Config.
|
|
197
201
|
*
|
|
198
|
-
* @version SDK: 1.
|
|
202
|
+
* @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl
|
|
199
203
|
*/
|
|
200
204
|
customisations?: CustomisationsInterface;
|
|
201
205
|
}
|
package/dist/tsembed.es.js
CHANGED
|
@@ -162,6 +162,10 @@ var AuthType;
|
|
|
162
162
|
* No authentication on the SDK. Passthrough to the embedded App. Alias for `Passthrough`.
|
|
163
163
|
*/
|
|
164
164
|
AuthType["None"] = "None";
|
|
165
|
+
/**
|
|
166
|
+
* No authentication on the SDK. Passthrough to the embedded App.
|
|
167
|
+
*/
|
|
168
|
+
AuthType["Passthrough"] = "None";
|
|
165
169
|
/**
|
|
166
170
|
* SSO using SAML
|
|
167
171
|
* @deprecated Use {@link SAML} instead
|
|
@@ -8009,7 +8013,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
8009
8013
|
});
|
|
8010
8014
|
}
|
|
8011
8015
|
|
|
8012
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.15.0
|
|
8016
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.15.0";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**"];var exports={".":"./lib/src/index.js","./react":"./lib/src/react/index.js"};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run build","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12","mixpanel-browser":"^2.45.0","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","dts-bundle":"0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"4.1.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^4.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-neo-theme":"^1.1.0","typedoc-plugin-toc-group":"0.0.5",typescript:"^4.1.0","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports,scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
|
|
8013
8017
|
|
|
8014
8018
|
/**
|
|
8015
8019
|
* Copyright (c) 2022
|
|
@@ -8578,14 +8582,16 @@ class AppEmbed extends V1Embed {
|
|
|
8578
8582
|
*/
|
|
8579
8583
|
getEmbedParams() {
|
|
8580
8584
|
const params = this.getBaseQueryParams();
|
|
8581
|
-
const { tag, hideObjects, liveboardV2
|
|
8585
|
+
const { tag, hideObjects, liveboardV2 } = this.viewConfig;
|
|
8582
8586
|
if (tag) {
|
|
8583
8587
|
params[Param.Tag] = tag;
|
|
8584
8588
|
}
|
|
8585
8589
|
if (hideObjects && hideObjects.length) {
|
|
8586
8590
|
params[Param.HideObjects] = JSON.stringify(hideObjects);
|
|
8587
8591
|
}
|
|
8588
|
-
|
|
8592
|
+
if (liveboardV2 !== undefined) {
|
|
8593
|
+
params[Param.LiveboardV2Enabled] = liveboardV2;
|
|
8594
|
+
}
|
|
8589
8595
|
const queryParams = getQueryParamString(params, true);
|
|
8590
8596
|
return queryParams;
|
|
8591
8597
|
}
|
|
@@ -8728,7 +8734,7 @@ class LiveboardEmbed extends V1Embed {
|
|
|
8728
8734
|
*/
|
|
8729
8735
|
getEmbedParams() {
|
|
8730
8736
|
const params = this.getBaseQueryParams();
|
|
8731
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2
|
|
8737
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, activeTabId, } = this.viewConfig;
|
|
8732
8738
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval ||
|
|
8733
8739
|
this.viewConfig.preventPinboardFilterRemoval;
|
|
8734
8740
|
if (fullHeight === true) {
|
|
@@ -8750,7 +8756,9 @@ class LiveboardEmbed extends V1Embed {
|
|
|
8750
8756
|
if (vizId) {
|
|
8751
8757
|
params[Param.vizEmbed] = true;
|
|
8752
8758
|
}
|
|
8753
|
-
|
|
8759
|
+
if (liveboardV2 !== undefined) {
|
|
8760
|
+
params[Param.LiveboardV2Enabled] = liveboardV2;
|
|
8761
|
+
}
|
|
8754
8762
|
const queryParams = getQueryParamString(params, true);
|
|
8755
8763
|
return queryParams;
|
|
8756
8764
|
}
|
|
@@ -8867,7 +8875,7 @@ class SearchEmbed extends TsEmbed {
|
|
|
8867
8875
|
*/
|
|
8868
8876
|
getIFrameSrc(answerId, dataSources) {
|
|
8869
8877
|
var _a;
|
|
8870
|
-
const { hideResults, enableSearchAssist, forceTable, searchOptions, } = this.viewConfig;
|
|
8878
|
+
const { hideResults, expandAllDataSource, enableSearchAssist, forceTable, searchOptions, } = this.viewConfig;
|
|
8871
8879
|
const answerPath = answerId ? `saved-answer/${answerId}` : 'answer';
|
|
8872
8880
|
const queryParams = this.getBaseQueryParams();
|
|
8873
8881
|
queryParams[Param.HideActions] = [
|
|
@@ -8920,60 +8928,4 @@ class SearchEmbed extends TsEmbed {
|
|
|
8920
8928
|
}
|
|
8921
8929
|
}
|
|
8922
8930
|
|
|
8923
|
-
|
|
8924
|
-
* Embed ThoughtSpot search bar
|
|
8925
|
-
*
|
|
8926
|
-
* @Category Search Embed
|
|
8927
|
-
* @version: unreleased version
|
|
8928
|
-
* @hidden
|
|
8929
|
-
*/
|
|
8930
|
-
class SearchBarEmbed extends TsEmbed {
|
|
8931
|
-
constructor(domSelector, viewConfig) {
|
|
8932
|
-
super(domSelector);
|
|
8933
|
-
this.viewConfig = viewConfig;
|
|
8934
|
-
}
|
|
8935
|
-
/**
|
|
8936
|
-
* Construct the URL of the embedded ThoughtSpot search to be
|
|
8937
|
-
* loaded in the iframe
|
|
8938
|
-
* @param dataSources A list of data source GUIDs
|
|
8939
|
-
*/
|
|
8940
|
-
getIFrameSrc(dataSources) {
|
|
8941
|
-
var _a;
|
|
8942
|
-
const { searchOptions } = this.viewConfig;
|
|
8943
|
-
const path = 'search-bar-embed';
|
|
8944
|
-
const queryParams = this.getBaseQueryParams();
|
|
8945
|
-
queryParams[Param.HideActions] = [
|
|
8946
|
-
...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
8947
|
-
];
|
|
8948
|
-
if (dataSources && dataSources.length) {
|
|
8949
|
-
queryParams[Param.DataSources] = JSON.stringify(dataSources);
|
|
8950
|
-
}
|
|
8951
|
-
if (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) {
|
|
8952
|
-
queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
|
|
8953
|
-
if (searchOptions.executeSearch) {
|
|
8954
|
-
queryParams[Param.executeSearch] = true;
|
|
8955
|
-
}
|
|
8956
|
-
}
|
|
8957
|
-
queryParams[Param.UseLastSelectedDataSource] = false;
|
|
8958
|
-
queryParams[Param.searchEmbed] = true;
|
|
8959
|
-
let query = '';
|
|
8960
|
-
const queryParamsString = getQueryParamString(queryParams, true);
|
|
8961
|
-
if (queryParamsString) {
|
|
8962
|
-
query = `?${queryParamsString}`;
|
|
8963
|
-
}
|
|
8964
|
-
const tsPostHashParams = this.getThoughtSpotPostUrlParams();
|
|
8965
|
-
return `${this.getEmbedBasePath(query)}/${path}${tsPostHashParams}`;
|
|
8966
|
-
}
|
|
8967
|
-
/**
|
|
8968
|
-
* Render the embedded ThoughtSpot search
|
|
8969
|
-
*/
|
|
8970
|
-
render() {
|
|
8971
|
-
super.render();
|
|
8972
|
-
const { dataSources } = this.viewConfig;
|
|
8973
|
-
const src = this.getIFrameSrc(dataSources);
|
|
8974
|
-
this.renderIFrame(src, this.viewConfig.frameParams);
|
|
8975
|
-
return this;
|
|
8976
|
-
}
|
|
8977
|
-
}
|
|
8978
|
-
|
|
8979
|
-
export { Action, AppEmbed, AuthFailureType, AuthStatus, AuthType, DataSourceVisualMode, EmbedEvent, HostEvent, LiveboardEmbed, Page, PinboardEmbed, RuntimeFilterOp, SearchBarEmbed, SearchEmbed, init, logout$1 as logout, prefetch };
|
|
8931
|
+
export { Action, AppEmbed, AuthFailureType, AuthStatus, AuthType, DataSourceVisualMode, EmbedEvent, HostEvent, LiveboardEmbed, Page, PinboardEmbed, RuntimeFilterOp, SearchEmbed, init, logout$1 as logout, prefetch };
|
package/dist/tsembed.js
CHANGED
|
@@ -162,6 +162,10 @@
|
|
|
162
162
|
* No authentication on the SDK. Passthrough to the embedded App. Alias for `Passthrough`.
|
|
163
163
|
*/
|
|
164
164
|
AuthType["None"] = "None";
|
|
165
|
+
/**
|
|
166
|
+
* No authentication on the SDK. Passthrough to the embedded App.
|
|
167
|
+
*/
|
|
168
|
+
AuthType["Passthrough"] = "None";
|
|
165
169
|
/**
|
|
166
170
|
* SSO using SAML
|
|
167
171
|
* @deprecated Use {@link SAML} instead
|
|
@@ -7976,7 +7980,7 @@
|
|
|
7976
7980
|
});
|
|
7977
7981
|
}
|
|
7978
7982
|
|
|
7979
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.15.0
|
|
7983
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.15.0";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**"];var exports$1={".":"./lib/src/index.js","./react":"./lib/src/react/index.js"};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run build","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12","mixpanel-browser":"^2.45.0","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","dts-bundle":"0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"4.1.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^4.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-neo-theme":"^1.1.0","typedoc-plugin-toc-group":"0.0.5",typescript:"^4.1.0","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports$1,scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
|
|
7980
7984
|
|
|
7981
7985
|
/**
|
|
7982
7986
|
* Copyright (c) 2022
|
|
@@ -8540,14 +8544,16 @@
|
|
|
8540
8544
|
*/
|
|
8541
8545
|
getEmbedParams() {
|
|
8542
8546
|
const params = this.getBaseQueryParams();
|
|
8543
|
-
const { tag, hideObjects, liveboardV2
|
|
8547
|
+
const { tag, hideObjects, liveboardV2 } = this.viewConfig;
|
|
8544
8548
|
if (tag) {
|
|
8545
8549
|
params[Param.Tag] = tag;
|
|
8546
8550
|
}
|
|
8547
8551
|
if (hideObjects && hideObjects.length) {
|
|
8548
8552
|
params[Param.HideObjects] = JSON.stringify(hideObjects);
|
|
8549
8553
|
}
|
|
8550
|
-
|
|
8554
|
+
if (liveboardV2 !== undefined) {
|
|
8555
|
+
params[Param.LiveboardV2Enabled] = liveboardV2;
|
|
8556
|
+
}
|
|
8551
8557
|
const queryParams = getQueryParamString(params, true);
|
|
8552
8558
|
return queryParams;
|
|
8553
8559
|
}
|
|
@@ -8690,7 +8696,7 @@
|
|
|
8690
8696
|
*/
|
|
8691
8697
|
getEmbedParams() {
|
|
8692
8698
|
const params = this.getBaseQueryParams();
|
|
8693
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2
|
|
8699
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, activeTabId, } = this.viewConfig;
|
|
8694
8700
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval ||
|
|
8695
8701
|
this.viewConfig.preventPinboardFilterRemoval;
|
|
8696
8702
|
if (fullHeight === true) {
|
|
@@ -8712,7 +8718,9 @@
|
|
|
8712
8718
|
if (vizId) {
|
|
8713
8719
|
params[Param.vizEmbed] = true;
|
|
8714
8720
|
}
|
|
8715
|
-
|
|
8721
|
+
if (liveboardV2 !== undefined) {
|
|
8722
|
+
params[Param.LiveboardV2Enabled] = liveboardV2;
|
|
8723
|
+
}
|
|
8716
8724
|
const queryParams = getQueryParamString(params, true);
|
|
8717
8725
|
return queryParams;
|
|
8718
8726
|
}
|
|
@@ -8829,7 +8837,7 @@
|
|
|
8829
8837
|
*/
|
|
8830
8838
|
getIFrameSrc(answerId, dataSources) {
|
|
8831
8839
|
var _a;
|
|
8832
|
-
const { hideResults, enableSearchAssist, forceTable, searchOptions, } = this.viewConfig;
|
|
8840
|
+
const { hideResults, expandAllDataSource, enableSearchAssist, forceTable, searchOptions, } = this.viewConfig;
|
|
8833
8841
|
const answerPath = answerId ? `saved-answer/${answerId}` : 'answer';
|
|
8834
8842
|
const queryParams = this.getBaseQueryParams();
|
|
8835
8843
|
queryParams[Param.HideActions] = [
|
|
@@ -8882,66 +8890,9 @@
|
|
|
8882
8890
|
}
|
|
8883
8891
|
}
|
|
8884
8892
|
|
|
8885
|
-
/**
|
|
8886
|
-
* Embed ThoughtSpot search bar
|
|
8887
|
-
*
|
|
8888
|
-
* @Category Search Embed
|
|
8889
|
-
* @version: unreleased version
|
|
8890
|
-
* @hidden
|
|
8891
|
-
*/
|
|
8892
|
-
class SearchBarEmbed extends TsEmbed {
|
|
8893
|
-
constructor(domSelector, viewConfig) {
|
|
8894
|
-
super(domSelector);
|
|
8895
|
-
this.viewConfig = viewConfig;
|
|
8896
|
-
}
|
|
8897
|
-
/**
|
|
8898
|
-
* Construct the URL of the embedded ThoughtSpot search to be
|
|
8899
|
-
* loaded in the iframe
|
|
8900
|
-
* @param dataSources A list of data source GUIDs
|
|
8901
|
-
*/
|
|
8902
|
-
getIFrameSrc(dataSources) {
|
|
8903
|
-
var _a;
|
|
8904
|
-
const { searchOptions } = this.viewConfig;
|
|
8905
|
-
const path = 'search-bar-embed';
|
|
8906
|
-
const queryParams = this.getBaseQueryParams();
|
|
8907
|
-
queryParams[Param.HideActions] = [
|
|
8908
|
-
...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
8909
|
-
];
|
|
8910
|
-
if (dataSources && dataSources.length) {
|
|
8911
|
-
queryParams[Param.DataSources] = JSON.stringify(dataSources);
|
|
8912
|
-
}
|
|
8913
|
-
if (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) {
|
|
8914
|
-
queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
|
|
8915
|
-
if (searchOptions.executeSearch) {
|
|
8916
|
-
queryParams[Param.executeSearch] = true;
|
|
8917
|
-
}
|
|
8918
|
-
}
|
|
8919
|
-
queryParams[Param.UseLastSelectedDataSource] = false;
|
|
8920
|
-
queryParams[Param.searchEmbed] = true;
|
|
8921
|
-
let query = '';
|
|
8922
|
-
const queryParamsString = getQueryParamString(queryParams, true);
|
|
8923
|
-
if (queryParamsString) {
|
|
8924
|
-
query = `?${queryParamsString}`;
|
|
8925
|
-
}
|
|
8926
|
-
const tsPostHashParams = this.getThoughtSpotPostUrlParams();
|
|
8927
|
-
return `${this.getEmbedBasePath(query)}/${path}${tsPostHashParams}`;
|
|
8928
|
-
}
|
|
8929
|
-
/**
|
|
8930
|
-
* Render the embedded ThoughtSpot search
|
|
8931
|
-
*/
|
|
8932
|
-
render() {
|
|
8933
|
-
super.render();
|
|
8934
|
-
const { dataSources } = this.viewConfig;
|
|
8935
|
-
const src = this.getIFrameSrc(dataSources);
|
|
8936
|
-
this.renderIFrame(src, this.viewConfig.frameParams);
|
|
8937
|
-
return this;
|
|
8938
|
-
}
|
|
8939
|
-
}
|
|
8940
|
-
|
|
8941
8893
|
exports.AppEmbed = AppEmbed;
|
|
8942
8894
|
exports.LiveboardEmbed = LiveboardEmbed;
|
|
8943
8895
|
exports.PinboardEmbed = PinboardEmbed;
|
|
8944
|
-
exports.SearchBarEmbed = SearchBarEmbed;
|
|
8945
8896
|
exports.SearchEmbed = SearchEmbed;
|
|
8946
8897
|
exports.init = init;
|
|
8947
8898
|
exports.logout = logout$1;
|
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thoughtspot/visual-embed-sdk",
|
|
3
|
-
"version": "1.15.0
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "ThoughtSpot Embed SDK",
|
|
5
5
|
"module": "lib/src/index.js",
|
|
6
6
|
"main": "dist/tsembed.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"docgen": "typedoc --tsconfig tsconfig.json --theme typedoc-theme",
|
|
32
32
|
"test-sdk": "jest -c jest.config.sdk.js",
|
|
33
33
|
"test-docs": "jest -c jest.config.docs.js",
|
|
34
|
-
"test": "npm run test-sdk && npm run test-docs
|
|
34
|
+
"test": "npm run test-sdk && npm run test-docs",
|
|
35
35
|
"posttest": "cat ./coverage/sdk/lcov.info | coveralls",
|
|
36
36
|
"prepublishOnly": "npm run test; npm run tsc; npm run bundle-dts; npm run build",
|
|
37
37
|
"publish-dev": "npm publish --tag dev",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"algoliasearch": "^4.10.5",
|
|
46
46
|
"classnames": "^2.3.1",
|
|
47
47
|
"eventemitter3": "^4.0.7",
|
|
48
|
+
"gatsby-plugin-vercel": "^1.0.3",
|
|
48
49
|
"html-react-parser": "^1.4.12",
|
|
49
50
|
"mixpanel-browser": "^2.45.0",
|
|
50
51
|
"use-deep-compare-effect": "^1.8.1"
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
"eslint-plugin-prettier": "^3.1.4",
|
|
80
81
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
81
82
|
"fs-extra": "^10.0.0",
|
|
82
|
-
"gatsby": "3.1
|
|
83
|
+
"gatsby": "3.13.1",
|
|
83
84
|
"gatsby-plugin-algolia": "^0.22.2",
|
|
84
85
|
"gatsby-plugin-catch-links": "^3.1.0",
|
|
85
86
|
"gatsby-plugin-env-variables": "^2.1.0",
|
package/lib/src/embed/app.d.ts
CHANGED
|
@@ -81,7 +81,6 @@ export interface AppViewConfig extends ViewConfig {
|
|
|
81
81
|
/**
|
|
82
82
|
* Render liveboards using the new v2 rendering mode
|
|
83
83
|
* This is a transient flag which is primarily meant for internal use
|
|
84
|
-
* @default false
|
|
85
84
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
86
85
|
* @hidden
|
|
87
86
|
*/
|
package/lib/src/embed/app.js
CHANGED
|
@@ -61,14 +61,16 @@ export class AppEmbed extends V1Embed {
|
|
|
61
61
|
*/
|
|
62
62
|
getEmbedParams() {
|
|
63
63
|
const params = this.getBaseQueryParams();
|
|
64
|
-
const { tag, hideObjects, liveboardV2
|
|
64
|
+
const { tag, hideObjects, liveboardV2 } = this.viewConfig;
|
|
65
65
|
if (tag) {
|
|
66
66
|
params[Param.Tag] = tag;
|
|
67
67
|
}
|
|
68
68
|
if (hideObjects && hideObjects.length) {
|
|
69
69
|
params[Param.HideObjects] = JSON.stringify(hideObjects);
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
if (liveboardV2 !== undefined) {
|
|
72
|
+
params[Param.LiveboardV2Enabled] = liveboardV2;
|
|
73
|
+
}
|
|
72
74
|
const queryParams = getQueryParamString(params, true);
|
|
73
75
|
return queryParams;
|
|
74
76
|
}
|
package/lib/src/embed/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/embed/app.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,EAAE,KAAK,EAA8B,SAAS,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,EAAE,OAAO,EAAc,MAAM,YAAY,CAAC;AAEjD;;GAEG;AACH,qCAAqC;AACrC,MAAM,CAAN,IAAY,IA6BX;AA7BD,WAAY,IAAI;IACZ;;OAEG;IACH,qBAAa,CAAA;IACb;;OAEG;IACH,yBAAiB,CAAA;IACjB;;OAEG;IACH,2BAAmB,CAAA;IACnB;;OAEG;IACH,iCAAyB,CAAA;IACzB;;OAEG;IACH,+BAAuB,CAAA;IACvB;;OAEG;IACH,qBAAa,CAAA;IACb;;OAEG;IACH,yBAAiB,CAAA;AACrB,CAAC,EA7BW,IAAI,KAAJ,IAAI,QA6Bf;
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/embed/app.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,EAAE,KAAK,EAA8B,SAAS,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,EAAE,OAAO,EAAc,MAAM,YAAY,CAAC;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GAAG,CAAC,CAAC;QAExB,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ"}
|
|
@@ -14,7 +14,7 @@ const thoughtSpotHost = 'tshost';
|
|
|
14
14
|
const defaultParamsWithoutHiddenActions = `&hostAppUrl=local-host&viewPortHeight=768&viewPortWidth=1024&sdkVersion=${version}`;
|
|
15
15
|
const defaultParams = `${defaultParamsWithoutHiddenActions}&hideAction=[%22${Action.ReportError}%22]`;
|
|
16
16
|
const defaultParamsForPinboardEmbed = `hostAppUrl=local-host&viewPortHeight=768&viewPortWidth=1024&sdkVersion=${version}&hideAction=[%22${Action.ReportError}%22]`;
|
|
17
|
-
const defaultParamsPost = '
|
|
17
|
+
const defaultParamsPost = '';
|
|
18
18
|
beforeAll(() => {
|
|
19
19
|
init({
|
|
20
20
|
thoughtSpotHost,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.spec.js","sourceRoot":"","sources":["../../../src/embed/app.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,IAAI,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,EACH,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,SAAS,EACT,WAAW,EACX,kBAAkB,GACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AAEpC,MAAM,iBAAiB,GAAG;IACtB,WAAW,EAAE;QACT,KAAK,EAAE,IAAI;QACX,MAAM,EAAE,GAAG;KACd;CACJ,CAAC;AACF,MAAM,eAAe,GAAG,QAAQ,CAAC;AACjC,MAAM,iCAAiC,GAAG,2EAA2E,OAAO,EAAE,CAAC;AAC/H,MAAM,aAAa,GA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T,KAAK,EAAE,MAAM;oBACb,MAAM,EAAE,MAAM;iBACjB;aACJ,CAAC,CAAC;YACH,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YAC9B,MAAM,QAAQ,CAAC,MAAM,EAAE,CAAC;YACxB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,oBAAoB,CACpC,gDAAgD,CACnD,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -65,7 +65,6 @@ export interface LiveboardViewConfig extends ViewConfig {
|
|
|
65
65
|
preventPinboardFilterRemoval?: boolean;
|
|
66
66
|
/**
|
|
67
67
|
* Render embedded Liveboards and visualizations in the new Liveboard experience mode
|
|
68
|
-
* @default false
|
|
69
68
|
* @version SDK: 1.14.0 | ThoughtSpot: 8.6.0.cl, 8.8.1-sw
|
|
70
69
|
*/
|
|
71
70
|
liveboardV2?: boolean;
|
|
@@ -45,7 +45,7 @@ export class LiveboardEmbed extends V1Embed {
|
|
|
45
45
|
*/
|
|
46
46
|
getEmbedParams() {
|
|
47
47
|
const params = this.getBaseQueryParams();
|
|
48
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2
|
|
48
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, activeTabId, } = this.viewConfig;
|
|
49
49
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval ||
|
|
50
50
|
this.viewConfig.preventPinboardFilterRemoval;
|
|
51
51
|
if (fullHeight === true) {
|
|
@@ -67,7 +67,9 @@ export class LiveboardEmbed extends V1Embed {
|
|
|
67
67
|
if (vizId) {
|
|
68
68
|
params[Param.vizEmbed] = true;
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
if (liveboardV2 !== undefined) {
|
|
71
|
+
params[Param.LiveboardV2Enabled] = liveboardV2;
|
|
72
|
+
}
|
|
71
73
|
const queryParams = getQueryParamString(params, true);
|
|
72
74
|
return queryParams;
|
|
73
75
|
}
|