@thoughtspot/visual-embed-sdk 1.32.4 → 1.32.6
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 +42 -0
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +4 -1
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +30 -0
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/base.d.ts +1 -1
- package/cjs/src/embed/base.js +1 -1
- package/cjs/src/embed/liveboard.d.ts +42 -0
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +4 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +33 -0
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +0 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +1 -2
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/types.d.ts +62 -7
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +55 -6
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.d.ts +14 -0
- package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.js +21 -0
- package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/cjs/src/utils/processData.js +2 -2
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils/processData.spec.js +14 -0
- package/cjs/src/utils/processData.spec.js.map +1 -1
- package/dist/src/embed/app.d.ts +42 -0
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts +1 -1
- package/dist/src/embed/liveboard.d.ts +42 -0
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +0 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/types.d.ts +62 -7
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answerService.d.ts +14 -0
- package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +88 -13
- package/dist/tsembed-react.js +88 -13
- package/dist/tsembed.es.js +89 -14
- package/dist/tsembed.js +89 -14
- package/dist/visual-embed-sdk-react-full.d.ts +161 -9
- package/dist/visual-embed-sdk-react.d.ts +161 -9
- package/dist/visual-embed-sdk.d.ts +161 -9
- package/lib/package.json +1 -1
- package/lib/src/embed/app.d.ts +42 -0
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +4 -1
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +30 -0
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/base.d.ts +1 -1
- package/lib/src/embed/base.js +1 -1
- package/lib/src/embed/liveboard.d.ts +42 -0
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +4 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +33 -0
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +0 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +1 -2
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/types.d.ts +62 -7
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +55 -6
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.d.ts +14 -0
- package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.js +21 -0
- package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/lib/src/utils/processData.js +2 -2
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/processData.spec.js +14 -0
- package/lib/src/utils/processData.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +161 -9
- package/package.json +1 -1
- package/src/embed/app.spec.ts +45 -0
- package/src/embed/app.ts +48 -0
- package/src/embed/base.ts +1 -1
- package/src/embed/liveboard.spec.ts +48 -0
- package/src/embed/liveboard.ts +48 -0
- package/src/embed/ts-embed.ts +1 -2
- package/src/types.ts +62 -6
- package/src/utils/graphql/answerService/answerService.ts +27 -0
- package/src/utils/processData.spec.ts +16 -0
- package/src/utils/processData.ts +2 -2
package/dist/tsembed.es.js
CHANGED
|
@@ -1500,20 +1500,57 @@ var EmbedEvent;
|
|
|
1500
1500
|
*/
|
|
1501
1501
|
EmbedEvent["Rename"] = "rename";
|
|
1502
1502
|
/**
|
|
1503
|
-
* Emitted
|
|
1503
|
+
* Emitted if the user wants to intercept the search execution
|
|
1504
|
+
* and implement logic to decide whether to run the search or not
|
|
1504
1505
|
*
|
|
1505
|
-
* Set
|
|
1506
|
-
* this embed event
|
|
1506
|
+
* Prerequisite: Set isOnBeforeGetVizDataInterceptEnabled : true
|
|
1507
|
+
* for this embed event to get emitted.
|
|
1508
|
+
*
|
|
1509
|
+
* Parameter: payload
|
|
1510
|
+
* Parameter: responder
|
|
1511
|
+
* Contains elements that lets developers define whether ThoughtSpot
|
|
1512
|
+
* will run the search or not, and if not, which error message to provide.
|
|
1513
|
+
* execute: When execute returns true, the search will be run.
|
|
1514
|
+
* When execute returns false, the search will not be executed.
|
|
1515
|
+
* error: Developers can customize the user facing message when execute is
|
|
1516
|
+
* set to false using the error parameter in responder
|
|
1507
1517
|
*
|
|
1508
1518
|
*```js
|
|
1509
|
-
*
|
|
1519
|
+
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
1510
1520
|
* (payload, responder) => {
|
|
1511
1521
|
* responder({
|
|
1512
1522
|
* data: {
|
|
1513
|
-
* execute:
|
|
1514
|
-
*
|
|
1523
|
+
* execute:false,
|
|
1524
|
+
* error: {
|
|
1525
|
+
* //Provide a custom error message to explain to your end user
|
|
1526
|
+
* //why their search did not run
|
|
1527
|
+
* errorText: "This search query cannot be run.
|
|
1528
|
+
* Please contact your administrator for more details."
|
|
1529
|
+
* }
|
|
1530
|
+
* }})
|
|
1531
|
+
* })
|
|
1532
|
+
* ```
|
|
1533
|
+
*
|
|
1534
|
+
*```js
|
|
1535
|
+
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
1536
|
+
* (payload, responder) => {
|
|
1537
|
+
* const query = payload.data.data.answer.search_query
|
|
1538
|
+
* responder({
|
|
1539
|
+
* data: {
|
|
1540
|
+
* // returns true as long as the query does not include
|
|
1541
|
+
* // both the 'sales' AND the 'county' column
|
|
1542
|
+
* execute: !(query.includes("sales")&&query.includes("county")),
|
|
1543
|
+
* error: {
|
|
1544
|
+
* //Provide a custom error message to explain to your end user
|
|
1545
|
+
* // why their search did not run, and which searches are accepted by your custom logic.
|
|
1546
|
+
* errorText: "You can't use this query :" + query + ".
|
|
1547
|
+
* The 'sales' measures can never be used at the 'county' level.
|
|
1548
|
+
* Please try another measure, or remove 'county' from your search."
|
|
1549
|
+
* }
|
|
1550
|
+
* }})
|
|
1515
1551
|
* })
|
|
1516
1552
|
*```
|
|
1553
|
+
*
|
|
1517
1554
|
* @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
|
|
1518
1555
|
*/
|
|
1519
1556
|
EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
|
|
@@ -1634,6 +1671,15 @@ var HostEvent;
|
|
|
1634
1671
|
* @hidden
|
|
1635
1672
|
*/
|
|
1636
1673
|
HostEvent["Reload"] = "reload";
|
|
1674
|
+
/**
|
|
1675
|
+
* Get current iframe src
|
|
1676
|
+
* @example
|
|
1677
|
+
* ```js
|
|
1678
|
+
* const frameUrl = AppEmbed.trigger(HostEvent.GetIframeUrl)
|
|
1679
|
+
* ```
|
|
1680
|
+
* @version SDK: 1.35.0 | Thoughtspot: 10.4.0.cl
|
|
1681
|
+
*/
|
|
1682
|
+
HostEvent["GetIframeUrl"] = "GetIframeUrl";
|
|
1637
1683
|
/**
|
|
1638
1684
|
* Display specific visualizations on a Liveboard.
|
|
1639
1685
|
* @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
|
|
@@ -2504,6 +2550,9 @@ var Param;
|
|
|
2504
2550
|
Param["FocusSearchBarOnRender"] = "focusSearchBarOnRender";
|
|
2505
2551
|
Param["DisableRedirectionLinksInNewTab"] = "disableRedirectionLinksInNewTab";
|
|
2506
2552
|
Param["HomePageSearchBarMode"] = "homePageSearchBarMode";
|
|
2553
|
+
Param["ShowLiveboardVerifiedBadge"] = "showLiveboardVerifiedBadge";
|
|
2554
|
+
Param["ShowLiveboardReverifyBanner"] = "showLiveboardReverifyBanner";
|
|
2555
|
+
Param["LiveboardHeaderV2"] = "isLiveboardHeaderV2Enabled";
|
|
2507
2556
|
})(Param || (Param = {}));
|
|
2508
2557
|
/**
|
|
2509
2558
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -6587,6 +6636,20 @@ class AnswerService {
|
|
|
6587
6636
|
credentials: 'include',
|
|
6588
6637
|
});
|
|
6589
6638
|
}
|
|
6639
|
+
/**
|
|
6640
|
+
* Fetch the data for the answer as a PNG blob. This might be
|
|
6641
|
+
* quicker for larger data.
|
|
6642
|
+
* @param userLocale
|
|
6643
|
+
* @param omitBackground Omit the background in the PNG
|
|
6644
|
+
* @param deviceScaleFactor The scale factor for the PNG
|
|
6645
|
+
* @return Response
|
|
6646
|
+
*/
|
|
6647
|
+
async fetchPNGBlob(userLocale = 'en-us', includeInfo = false, omitBackground = false, deviceScaleFactor = 2) {
|
|
6648
|
+
const fetchUrl = this.getFetchPNGBlobUrl(userLocale, omitBackground, deviceScaleFactor);
|
|
6649
|
+
return tokenizedFetch(fetchUrl, {
|
|
6650
|
+
credentials: 'include',
|
|
6651
|
+
});
|
|
6652
|
+
}
|
|
6590
6653
|
/**
|
|
6591
6654
|
* Just get the internal URL for this answer's data
|
|
6592
6655
|
* as a CSV blob.
|
|
@@ -6597,6 +6660,13 @@ class AnswerService {
|
|
|
6597
6660
|
getFetchCSVBlobUrl(userLocale = 'en-us', includeInfo = false) {
|
|
6598
6661
|
return `${this.thoughtSpotHost}/prism/download/answer/csv?sessionId=${this.session.sessionId}&genNo=${this.session.genNo}&userLocale=${userLocale}&exportFileName=data&hideCsvHeader=${!includeInfo}`;
|
|
6599
6662
|
}
|
|
6663
|
+
/**
|
|
6664
|
+
* Just get the internal URL for this answer's data
|
|
6665
|
+
* as a PNG blob.
|
|
6666
|
+
*/
|
|
6667
|
+
getFetchPNGBlobUrl(userLocale = 'en-us', omitBackground = false, deviceScaleFactor = 2) {
|
|
6668
|
+
return `${this.thoughtSpotHost}/prism/download/answer/png?sessionId=${this.session.sessionId}&deviceScaleFactor=${deviceScaleFactor}&omitBackground=${omitBackground}&genNo=${this.session.genNo}&userLocale=${userLocale}&exportFileName=data`;
|
|
6669
|
+
}
|
|
6600
6670
|
/**
|
|
6601
6671
|
* Get underlying data given a point and the output column names.
|
|
6602
6672
|
* In case of a context menu action, the selectedPoints are
|
|
@@ -13951,7 +14021,7 @@ const renderInQueue = (fn) => {
|
|
|
13951
14021
|
}).catch(error => {
|
|
13952
14022
|
console.error(error);
|
|
13953
14023
|
});
|
|
13954
|
-
|
|
14024
|
+
*```
|
|
13955
14025
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
13956
14026
|
* @group Global methods
|
|
13957
14027
|
*/
|
|
@@ -14106,8 +14176,8 @@ function processNoCookieAccess(e, containerEl) {
|
|
|
14106
14176
|
* @param containerEl
|
|
14107
14177
|
*/
|
|
14108
14178
|
function processAuthFailure(e, containerEl) {
|
|
14109
|
-
const { loginFailedMessage, authType } = getEmbedConfig();
|
|
14110
|
-
if (authType !== AuthType.None) {
|
|
14179
|
+
const { loginFailedMessage, authType, disableLoginFailurePage } = getEmbedConfig();
|
|
14180
|
+
if (authType !== AuthType.None && !disableLoginFailurePage) {
|
|
14111
14181
|
// eslint-disable-next-line no-param-reassign
|
|
14112
14182
|
containerEl.innerHTML = loginFailedMessage;
|
|
14113
14183
|
notifyAuthFailure(AuthFailureType.OTHER);
|
|
@@ -14208,7 +14278,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
14208
14278
|
});
|
|
14209
14279
|
}
|
|
14210
14280
|
|
|
14211
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.32.
|
|
14281
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.32.6";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/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","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","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@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/lodash":"^4.17.0","@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","current-git-branch":"^1.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","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-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",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-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.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","embedded","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,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"48 kB"}],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};
|
|
14212
14282
|
|
|
14213
14283
|
/**
|
|
14214
14284
|
* Copyright (c) 2022
|
|
@@ -15168,7 +15238,7 @@ class TsEmbed {
|
|
|
15168
15238
|
* @version SDK: 1.25.0 / ThoughtSpot 9.10.0
|
|
15169
15239
|
*/
|
|
15170
15240
|
async getAnswerService(vizId) {
|
|
15171
|
-
const { session } = await this.trigger(HostEvent.GetAnswerSession, vizId);
|
|
15241
|
+
const { session } = await this.trigger(HostEvent.GetAnswerSession, vizId ? { vizId } : {});
|
|
15172
15242
|
return new AnswerService(session, null, this.embedConfig.thoughtSpotHost);
|
|
15173
15243
|
}
|
|
15174
15244
|
}
|
|
@@ -15183,7 +15253,6 @@ class V1Embed extends TsEmbed {
|
|
|
15183
15253
|
super(domSelector, viewConfig);
|
|
15184
15254
|
/**
|
|
15185
15255
|
* Only for testing purposes.
|
|
15186
|
-
*
|
|
15187
15256
|
* @hidden
|
|
15188
15257
|
*/
|
|
15189
15258
|
// eslint-disable-next-line camelcase
|
|
@@ -15352,7 +15421,7 @@ class AppEmbed extends V1Embed {
|
|
|
15352
15421
|
getEmbedParams() {
|
|
15353
15422
|
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
|
|
15354
15423
|
/* eslint-disable-next-line max-len */
|
|
15355
|
-
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, homePageSearchBarMode, } = this.viewConfig;
|
|
15424
|
+
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, } = this.viewConfig;
|
|
15356
15425
|
let params = {};
|
|
15357
15426
|
params[Param.EmbedApp] = true;
|
|
15358
15427
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
@@ -15364,6 +15433,9 @@ class AppEmbed extends V1Embed {
|
|
|
15364
15433
|
params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
|
|
15365
15434
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
15366
15435
|
params[Param.IsFullAppEmbed] = true;
|
|
15436
|
+
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
15437
|
+
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
15438
|
+
params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
|
|
15367
15439
|
params = this.getBaseQueryParams(params);
|
|
15368
15440
|
if (fullHeight === true) {
|
|
15369
15441
|
params[Param.fullHeight] = true;
|
|
@@ -15636,7 +15708,7 @@ class LiveboardEmbed extends V1Embed {
|
|
|
15636
15708
|
let params = {};
|
|
15637
15709
|
params[Param.EmbedApp] = true;
|
|
15638
15710
|
params = this.getBaseQueryParams(params);
|
|
15639
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, } = this.viewConfig;
|
|
15711
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, } = this.viewConfig;
|
|
15640
15712
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
15641
15713
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
15642
15714
|
if (fullHeight === true) {
|
|
@@ -15680,6 +15752,9 @@ class LiveboardEmbed extends V1Embed {
|
|
|
15680
15752
|
params[Param.enableAskSage] = enableAskSage;
|
|
15681
15753
|
}
|
|
15682
15754
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
15755
|
+
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
15756
|
+
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
15757
|
+
params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
|
|
15683
15758
|
params[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
15684
15759
|
const queryParams = getQueryParamString(params, true);
|
|
15685
15760
|
return queryParams;
|
package/dist/tsembed.js
CHANGED
|
@@ -1455,20 +1455,57 @@
|
|
|
1455
1455
|
*/
|
|
1456
1456
|
EmbedEvent["Rename"] = "rename";
|
|
1457
1457
|
/**
|
|
1458
|
-
* Emitted
|
|
1458
|
+
* Emitted if the user wants to intercept the search execution
|
|
1459
|
+
* and implement logic to decide whether to run the search or not
|
|
1459
1460
|
*
|
|
1460
|
-
* Set
|
|
1461
|
-
* this embed event
|
|
1461
|
+
* Prerequisite: Set isOnBeforeGetVizDataInterceptEnabled : true
|
|
1462
|
+
* for this embed event to get emitted.
|
|
1463
|
+
*
|
|
1464
|
+
* Parameter: payload
|
|
1465
|
+
* Parameter: responder
|
|
1466
|
+
* Contains elements that lets developers define whether ThoughtSpot
|
|
1467
|
+
* will run the search or not, and if not, which error message to provide.
|
|
1468
|
+
* execute: When execute returns true, the search will be run.
|
|
1469
|
+
* When execute returns false, the search will not be executed.
|
|
1470
|
+
* error: Developers can customize the user facing message when execute is
|
|
1471
|
+
* set to false using the error parameter in responder
|
|
1462
1472
|
*
|
|
1463
1473
|
*```js
|
|
1464
|
-
*
|
|
1474
|
+
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
1465
1475
|
* (payload, responder) => {
|
|
1466
1476
|
* responder({
|
|
1467
1477
|
* data: {
|
|
1468
|
-
* execute:
|
|
1469
|
-
*
|
|
1478
|
+
* execute:false,
|
|
1479
|
+
* error: {
|
|
1480
|
+
* //Provide a custom error message to explain to your end user
|
|
1481
|
+
* //why their search did not run
|
|
1482
|
+
* errorText: "This search query cannot be run.
|
|
1483
|
+
* Please contact your administrator for more details."
|
|
1484
|
+
* }
|
|
1485
|
+
* }})
|
|
1486
|
+
* })
|
|
1487
|
+
* ```
|
|
1488
|
+
*
|
|
1489
|
+
*```js
|
|
1490
|
+
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
1491
|
+
* (payload, responder) => {
|
|
1492
|
+
* const query = payload.data.data.answer.search_query
|
|
1493
|
+
* responder({
|
|
1494
|
+
* data: {
|
|
1495
|
+
* // returns true as long as the query does not include
|
|
1496
|
+
* // both the 'sales' AND the 'county' column
|
|
1497
|
+
* execute: !(query.includes("sales")&&query.includes("county")),
|
|
1498
|
+
* error: {
|
|
1499
|
+
* //Provide a custom error message to explain to your end user
|
|
1500
|
+
* // why their search did not run, and which searches are accepted by your custom logic.
|
|
1501
|
+
* errorText: "You can't use this query :" + query + ".
|
|
1502
|
+
* The 'sales' measures can never be used at the 'county' level.
|
|
1503
|
+
* Please try another measure, or remove 'county' from your search."
|
|
1504
|
+
* }
|
|
1505
|
+
* }})
|
|
1470
1506
|
* })
|
|
1471
1507
|
*```
|
|
1508
|
+
*
|
|
1472
1509
|
* @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
|
|
1473
1510
|
*/
|
|
1474
1511
|
EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
|
|
@@ -1566,6 +1603,15 @@
|
|
|
1566
1603
|
* @hidden
|
|
1567
1604
|
*/
|
|
1568
1605
|
HostEvent["Reload"] = "reload";
|
|
1606
|
+
/**
|
|
1607
|
+
* Get current iframe src
|
|
1608
|
+
* @example
|
|
1609
|
+
* ```js
|
|
1610
|
+
* const frameUrl = AppEmbed.trigger(HostEvent.GetIframeUrl)
|
|
1611
|
+
* ```
|
|
1612
|
+
* @version SDK: 1.35.0 | Thoughtspot: 10.4.0.cl
|
|
1613
|
+
*/
|
|
1614
|
+
HostEvent["GetIframeUrl"] = "GetIframeUrl";
|
|
1569
1615
|
/**
|
|
1570
1616
|
* Display specific visualizations on a Liveboard.
|
|
1571
1617
|
* @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
|
|
@@ -2430,6 +2476,9 @@
|
|
|
2430
2476
|
Param["FocusSearchBarOnRender"] = "focusSearchBarOnRender";
|
|
2431
2477
|
Param["DisableRedirectionLinksInNewTab"] = "disableRedirectionLinksInNewTab";
|
|
2432
2478
|
Param["HomePageSearchBarMode"] = "homePageSearchBarMode";
|
|
2479
|
+
Param["ShowLiveboardVerifiedBadge"] = "showLiveboardVerifiedBadge";
|
|
2480
|
+
Param["ShowLiveboardReverifyBanner"] = "showLiveboardReverifyBanner";
|
|
2481
|
+
Param["LiveboardHeaderV2"] = "isLiveboardHeaderV2Enabled";
|
|
2433
2482
|
})(Param || (Param = {}));
|
|
2434
2483
|
(function (Action) {
|
|
2435
2484
|
/**
|
|
@@ -6479,6 +6528,20 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
6479
6528
|
credentials: 'include',
|
|
6480
6529
|
});
|
|
6481
6530
|
}
|
|
6531
|
+
/**
|
|
6532
|
+
* Fetch the data for the answer as a PNG blob. This might be
|
|
6533
|
+
* quicker for larger data.
|
|
6534
|
+
* @param userLocale
|
|
6535
|
+
* @param omitBackground Omit the background in the PNG
|
|
6536
|
+
* @param deviceScaleFactor The scale factor for the PNG
|
|
6537
|
+
* @return Response
|
|
6538
|
+
*/
|
|
6539
|
+
async fetchPNGBlob(userLocale = 'en-us', includeInfo = false, omitBackground = false, deviceScaleFactor = 2) {
|
|
6540
|
+
const fetchUrl = this.getFetchPNGBlobUrl(userLocale, omitBackground, deviceScaleFactor);
|
|
6541
|
+
return tokenizedFetch(fetchUrl, {
|
|
6542
|
+
credentials: 'include',
|
|
6543
|
+
});
|
|
6544
|
+
}
|
|
6482
6545
|
/**
|
|
6483
6546
|
* Just get the internal URL for this answer's data
|
|
6484
6547
|
* as a CSV blob.
|
|
@@ -6489,6 +6552,13 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
6489
6552
|
getFetchCSVBlobUrl(userLocale = 'en-us', includeInfo = false) {
|
|
6490
6553
|
return `${this.thoughtSpotHost}/prism/download/answer/csv?sessionId=${this.session.sessionId}&genNo=${this.session.genNo}&userLocale=${userLocale}&exportFileName=data&hideCsvHeader=${!includeInfo}`;
|
|
6491
6554
|
}
|
|
6555
|
+
/**
|
|
6556
|
+
* Just get the internal URL for this answer's data
|
|
6557
|
+
* as a PNG blob.
|
|
6558
|
+
*/
|
|
6559
|
+
getFetchPNGBlobUrl(userLocale = 'en-us', omitBackground = false, deviceScaleFactor = 2) {
|
|
6560
|
+
return `${this.thoughtSpotHost}/prism/download/answer/png?sessionId=${this.session.sessionId}&deviceScaleFactor=${deviceScaleFactor}&omitBackground=${omitBackground}&genNo=${this.session.genNo}&userLocale=${userLocale}&exportFileName=data`;
|
|
6561
|
+
}
|
|
6492
6562
|
/**
|
|
6493
6563
|
* Get underlying data given a point and the output column names.
|
|
6494
6564
|
* In case of a context menu action, the selectedPoints are
|
|
@@ -13827,7 +13897,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13827
13897
|
}).catch(error => {
|
|
13828
13898
|
console.error(error);
|
|
13829
13899
|
});
|
|
13830
|
-
|
|
13900
|
+
*```
|
|
13831
13901
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
13832
13902
|
* @group Global methods
|
|
13833
13903
|
*/
|
|
@@ -13982,8 +14052,8 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13982
14052
|
* @param containerEl
|
|
13983
14053
|
*/
|
|
13984
14054
|
function processAuthFailure(e, containerEl) {
|
|
13985
|
-
const { loginFailedMessage, authType } = getEmbedConfig();
|
|
13986
|
-
if (authType !== exports.AuthType.None) {
|
|
14055
|
+
const { loginFailedMessage, authType, disableLoginFailurePage } = getEmbedConfig();
|
|
14056
|
+
if (authType !== exports.AuthType.None && !disableLoginFailurePage) {
|
|
13987
14057
|
// eslint-disable-next-line no-param-reassign
|
|
13988
14058
|
containerEl.innerHTML = loginFailedMessage;
|
|
13989
14059
|
notifyAuthFailure(exports.AuthFailureType.OTHER);
|
|
@@ -14084,7 +14154,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14084
14154
|
});
|
|
14085
14155
|
}
|
|
14086
14156
|
|
|
14087
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.32.
|
|
14157
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.32.6";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/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","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","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@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/lodash":"^4.17.0","@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","current-git-branch":"^1.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","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-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",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-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.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","embedded","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,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"48 kB"}],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};
|
|
14088
14158
|
|
|
14089
14159
|
/**
|
|
14090
14160
|
* Copyright (c) 2022
|
|
@@ -15044,7 +15114,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
15044
15114
|
* @version SDK: 1.25.0 / ThoughtSpot 9.10.0
|
|
15045
15115
|
*/
|
|
15046
15116
|
async getAnswerService(vizId) {
|
|
15047
|
-
const { session } = await this.trigger(exports.HostEvent.GetAnswerSession, vizId);
|
|
15117
|
+
const { session } = await this.trigger(exports.HostEvent.GetAnswerSession, vizId ? { vizId } : {});
|
|
15048
15118
|
return new AnswerService(session, null, this.embedConfig.thoughtSpotHost);
|
|
15049
15119
|
}
|
|
15050
15120
|
}
|
|
@@ -15059,7 +15129,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
15059
15129
|
super(domSelector, viewConfig);
|
|
15060
15130
|
/**
|
|
15061
15131
|
* Only for testing purposes.
|
|
15062
|
-
*
|
|
15063
15132
|
* @hidden
|
|
15064
15133
|
*/
|
|
15065
15134
|
// eslint-disable-next-line camelcase
|
|
@@ -15223,7 +15292,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
15223
15292
|
getEmbedParams() {
|
|
15224
15293
|
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
|
|
15225
15294
|
/* eslint-disable-next-line max-len */
|
|
15226
|
-
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, homePageSearchBarMode, } = this.viewConfig;
|
|
15295
|
+
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, } = this.viewConfig;
|
|
15227
15296
|
let params = {};
|
|
15228
15297
|
params[Param.EmbedApp] = true;
|
|
15229
15298
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
@@ -15235,6 +15304,9 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
15235
15304
|
params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
|
|
15236
15305
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
15237
15306
|
params[Param.IsFullAppEmbed] = true;
|
|
15307
|
+
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
15308
|
+
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
15309
|
+
params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
|
|
15238
15310
|
params = this.getBaseQueryParams(params);
|
|
15239
15311
|
if (fullHeight === true) {
|
|
15240
15312
|
params[Param.fullHeight] = true;
|
|
@@ -15507,7 +15579,7 @@ query GetEurekaVizSnapshots(
|
|
|
15507
15579
|
let params = {};
|
|
15508
15580
|
params[Param.EmbedApp] = true;
|
|
15509
15581
|
params = this.getBaseQueryParams(params);
|
|
15510
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, } = this.viewConfig;
|
|
15582
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, } = this.viewConfig;
|
|
15511
15583
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
15512
15584
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
15513
15585
|
if (fullHeight === true) {
|
|
@@ -15551,6 +15623,9 @@ query GetEurekaVizSnapshots(
|
|
|
15551
15623
|
params[Param.enableAskSage] = enableAskSage;
|
|
15552
15624
|
}
|
|
15553
15625
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
15626
|
+
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
15627
|
+
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
15628
|
+
params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
|
|
15554
15629
|
params[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
15555
15630
|
const queryParams = getQueryParamString(params, true);
|
|
15556
15631
|
return queryParams;
|