@thoughtspot/visual-embed-sdk 1.37.0-temp-nav → 1.37.1
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 +2 -2
- package/cjs/src/auth.d.ts +7 -3
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +20 -0
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/auth.spec.js +48 -0
- package/cjs/src/auth.spec.js.map +1 -1
- package/cjs/src/embed/app.d.ts +37 -14
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +35 -7
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +19 -8
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +7 -0
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +6 -4
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +105 -0
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/types.d.ts +24 -2
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +24 -2
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-Fhk1V_Gw.js → index-m9UtENc9.js} +1 -1
- package/dist/src/auth.d.ts +7 -3
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +37 -14
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/dist/src/types.d.ts +24 -2
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +94 -15
- package/dist/tsembed-react.js +93 -14
- package/dist/tsembed.es.js +94 -15
- package/dist/tsembed.js +93 -14
- package/dist/visual-embed-sdk-react-full.d.ts +68 -19
- package/dist/visual-embed-sdk-react.d.ts +68 -19
- package/dist/visual-embed-sdk.d.ts +68 -19
- package/lib/package.json +2 -2
- package/lib/src/auth.d.ts +7 -3
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +20 -0
- package/lib/src/auth.js.map +1 -1
- package/lib/src/auth.spec.js +48 -0
- package/lib/src/auth.spec.js.map +1 -1
- package/lib/src/embed/app.d.ts +37 -14
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +34 -6
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +20 -9
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +7 -0
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +6 -4
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +105 -0
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/types.d.ts +24 -2
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +24 -2
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +68 -19
- package/package.json +2 -2
- package/src/auth.spec.ts +52 -0
- package/src/auth.ts +23 -2
- package/src/embed/app.spec.ts +26 -8
- package/src/embed/app.ts +48 -19
- package/src/embed/base.ts +9 -0
- package/src/embed/ts-embed.spec.ts +130 -0
- package/src/embed/ts-embed.ts +6 -4
- package/src/types.ts +24 -2
- package/cjs/src/pages/embed-test.page.d.ts +0 -8
- package/cjs/src/pages/embed-test.page.d.ts.map +0 -1
- package/cjs/src/pages/embed-test.page.js +0 -20
- package/cjs/src/pages/embed-test.page.js.map +0 -1
- package/cjs/src/pages/home.page.d.ts +0 -6
- package/cjs/src/pages/home.page.d.ts.map +0 -1
- package/cjs/src/pages/home.page.js +0 -12
- package/cjs/src/pages/home.page.js.map +0 -1
- package/cjs/src/pages/login.page.d.ts +0 -15
- package/cjs/src/pages/login.page.d.ts.map +0 -1
- package/cjs/src/pages/login.page.js +0 -22
- package/cjs/src/pages/login.page.js.map +0 -1
- package/cjs/src/tests/auth.test.d.ts +0 -1
- package/cjs/src/tests/auth.test.d.ts.map +0 -1
- package/cjs/src/tests/auth.test.js +0 -1
- package/cjs/src/tests/auth.test.js.map +0 -1
- package/cjs/src/tests/e2e/auth.spec.d.ts +0 -2
- package/cjs/src/tests/e2e/auth.spec.d.ts.map +0 -1
- package/cjs/src/tests/e2e/auth.spec.js +0 -54
- package/cjs/src/tests/e2e/auth.spec.js.map +0 -1
- package/dist/index-Cj4BVGHL.js +0 -7371
package/dist/tsembed-react.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.37.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.37.1 */
|
|
2
2
|
'use client';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { useRef } from 'react';
|
|
@@ -2114,9 +2114,12 @@ var HostEvent;
|
|
|
2114
2114
|
* @example
|
|
2115
2115
|
* ```js
|
|
2116
2116
|
* searchEmbed.trigger(HostEvent.OpenFilter,
|
|
2117
|
-
* { columnId: '<column-GUID>', name: 'column name', type: 'INT64', dataType: 'ATTRIBUTE'})
|
|
2117
|
+
* {column: { columnId: '<column-GUID>', name: 'column name', type: 'INT64', dataType: 'ATTRIBUTE'}})
|
|
2118
|
+
* ```
|
|
2119
|
+
* @example
|
|
2120
|
+
* ```js
|
|
2118
2121
|
* LiveboardEmbed.trigger(HostEvent.OpenFilter,
|
|
2119
|
-
*
|
|
2122
|
+
* { column: {columnId: '<column-GUID>'}})
|
|
2120
2123
|
* ```
|
|
2121
2124
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
2122
2125
|
*/
|
|
@@ -2725,6 +2728,25 @@ var HostEvent;
|
|
|
2725
2728
|
* }]
|
|
2726
2729
|
* });
|
|
2727
2730
|
* ```
|
|
2731
|
+
* If there are multiple columns with the same name, consider
|
|
2732
|
+
* using `WORKSHEET_NAME::COLUMN_NAME` format.
|
|
2733
|
+
*
|
|
2734
|
+
* @example
|
|
2735
|
+
*
|
|
2736
|
+
* ```js
|
|
2737
|
+
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
2738
|
+
* filters: [{
|
|
2739
|
+
* column: "(Sample) Retail - Apparel::city",
|
|
2740
|
+
* oper: 'IN',
|
|
2741
|
+
* values: ["atlanta"]
|
|
2742
|
+
* },
|
|
2743
|
+
* {
|
|
2744
|
+
* column: "(Sample) Retail - Apparel::Region",
|
|
2745
|
+
* oper: 'IN',
|
|
2746
|
+
* values: ["West","Midwest"]
|
|
2747
|
+
* }]
|
|
2748
|
+
* });
|
|
2749
|
+
* ```
|
|
2728
2750
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
2729
2751
|
*/
|
|
2730
2752
|
HostEvent["UpdateFilters"] = "updateFilters";
|
|
@@ -7606,7 +7628,7 @@ class AnswerService {
|
|
|
7606
7628
|
async getTML() {
|
|
7607
7629
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
7608
7630
|
const edoc = object[0].edoc;
|
|
7609
|
-
const YAML = await import('./index-
|
|
7631
|
+
const YAML = await import('./index-m9UtENc9.js');
|
|
7610
7632
|
const parsedDoc = YAML.parse(edoc);
|
|
7611
7633
|
return {
|
|
7612
7634
|
answer: {
|
|
@@ -14653,6 +14675,10 @@ var AuthStatus;
|
|
|
14653
14675
|
* @version SDK: 1.19.0
|
|
14654
14676
|
*/
|
|
14655
14677
|
AuthStatus["WAITING_FOR_POPUP"] = "WAITING_FOR_POPUP";
|
|
14678
|
+
/**
|
|
14679
|
+
* Emitted when the SAML popup is closed without authentication
|
|
14680
|
+
*/
|
|
14681
|
+
AuthStatus["SAML_POPUP_CLOSED_NO_AUTH"] = "SAML_POPUP_CLOSED_NO_AUTH";
|
|
14656
14682
|
})(AuthStatus || (AuthStatus = {}));
|
|
14657
14683
|
/**
|
|
14658
14684
|
* Events which can be triggered on the emitter returned from {@link init}.
|
|
@@ -14873,14 +14899,26 @@ const doBasicAuth = async (embedConfig) => {
|
|
|
14873
14899
|
* @param triggerText
|
|
14874
14900
|
*/
|
|
14875
14901
|
async function samlPopupFlow(ssoURL, triggerContainer, triggerText) {
|
|
14902
|
+
let popupClosedCheck;
|
|
14876
14903
|
const openPopup = () => {
|
|
14877
14904
|
if (samlAuthWindow === null || samlAuthWindow.closed) {
|
|
14878
14905
|
samlAuthWindow = window.open(ssoURL, '_blank', 'location=no,height=570,width=520,scrollbars=yes,status=yes');
|
|
14906
|
+
if (samlAuthWindow) {
|
|
14907
|
+
popupClosedCheck = setInterval(() => {
|
|
14908
|
+
if (samlAuthWindow.closed) {
|
|
14909
|
+
clearInterval(popupClosedCheck);
|
|
14910
|
+
if (samlCompletionPromise && !samlCompletionResolved) {
|
|
14911
|
+
authEE === null || authEE === void 0 ? void 0 : authEE.emit(AuthStatus.SAML_POPUP_CLOSED_NO_AUTH);
|
|
14912
|
+
}
|
|
14913
|
+
}
|
|
14914
|
+
}, 500);
|
|
14915
|
+
}
|
|
14879
14916
|
}
|
|
14880
14917
|
else {
|
|
14881
14918
|
samlAuthWindow.focus();
|
|
14882
14919
|
}
|
|
14883
14920
|
};
|
|
14921
|
+
let samlCompletionResolved = false;
|
|
14884
14922
|
authEE === null || authEE === void 0 ? void 0 : authEE.emit(AuthStatus.WAITING_FOR_POPUP);
|
|
14885
14923
|
const containerEl = getDOMNode(triggerContainer);
|
|
14886
14924
|
if (containerEl) {
|
|
@@ -14892,6 +14930,10 @@ async function samlPopupFlow(ssoURL, triggerContainer, triggerText) {
|
|
|
14892
14930
|
samlCompletionPromise = samlCompletionPromise || new Promise((resolve, reject) => {
|
|
14893
14931
|
window.addEventListener('message', (e) => {
|
|
14894
14932
|
if (e.data.type === EmbedEvent.SAMLComplete) {
|
|
14933
|
+
samlCompletionResolved = true;
|
|
14934
|
+
if (popupClosedCheck) {
|
|
14935
|
+
clearInterval(popupClosedCheck);
|
|
14936
|
+
}
|
|
14895
14937
|
e.source.close();
|
|
14896
14938
|
resolve();
|
|
14897
14939
|
}
|
|
@@ -15068,6 +15110,13 @@ const prefetch = (url, prefetchFeatures, additionalFlags) => {
|
|
|
15068
15110
|
iFrame.style.width = '0';
|
|
15069
15111
|
iFrame.style.height = '0';
|
|
15070
15112
|
iFrame.style.border = '0';
|
|
15113
|
+
// Make it 'fixed' to keep it in a different stacking context.
|
|
15114
|
+
// This should solve the focus behaviours inside the iframe from
|
|
15115
|
+
// interfering with main body.
|
|
15116
|
+
iFrame.style.position = 'fixed';
|
|
15117
|
+
// Push it out of viewport.
|
|
15118
|
+
iFrame.style.top = '100vh';
|
|
15119
|
+
iFrame.style.left = '100vw';
|
|
15071
15120
|
iFrame.classList.add('prefetchIframe');
|
|
15072
15121
|
iFrame.classList.add(`prefetchIframeNum-${index}`);
|
|
15073
15122
|
document.body.appendChild(iFrame);
|
|
@@ -15299,7 +15348,7 @@ function processEventData(type, e, thoughtSpotHost, containerEl) {
|
|
|
15299
15348
|
return e;
|
|
15300
15349
|
}
|
|
15301
15350
|
|
|
15302
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.37.
|
|
15351
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.37.1";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={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.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/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.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",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.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",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:"4.24.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","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};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$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 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};
|
|
15303
15352
|
|
|
15304
15353
|
/**
|
|
15305
15354
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -15533,11 +15582,13 @@ class TsEmbed {
|
|
|
15533
15582
|
* @param responder
|
|
15534
15583
|
*/
|
|
15535
15584
|
this.updateAuthToken = async (_, responder) => {
|
|
15536
|
-
const {
|
|
15537
|
-
|
|
15538
|
-
|
|
15585
|
+
const { authType } = this.embedConfig;
|
|
15586
|
+
let { autoLogin } = this.embedConfig;
|
|
15587
|
+
// Default autoLogin: true for cookieless if undefined/null, otherwise false
|
|
15588
|
+
autoLogin = autoLogin !== null && autoLogin !== void 0 ? autoLogin : (authType === AuthType.TrustedAuthTokenCookieless);
|
|
15589
|
+
if (autoLogin && authType === AuthType.TrustedAuthTokenCookieless) {
|
|
15539
15590
|
try {
|
|
15540
|
-
authToken = await getAuthenticationToken(this.embedConfig);
|
|
15591
|
+
const authToken = await getAuthenticationToken(this.embedConfig);
|
|
15541
15592
|
responder({
|
|
15542
15593
|
type: EmbedEvent.AuthExpire,
|
|
15543
15594
|
data: { authToken },
|
|
@@ -17017,6 +17068,31 @@ var HomePageSearchBarMode;
|
|
|
17017
17068
|
HomePageSearchBarMode["AI_ANSWER"] = "aiAnswer";
|
|
17018
17069
|
HomePageSearchBarMode["NONE"] = "none";
|
|
17019
17070
|
})(HomePageSearchBarMode || (HomePageSearchBarMode = {}));
|
|
17071
|
+
/**
|
|
17072
|
+
* Define the version of the primary navbar
|
|
17073
|
+
* @version SDK: 1.39.0 | Thoughtspot: 10.10.0.cl
|
|
17074
|
+
*/
|
|
17075
|
+
var PrimaryNavbarVersion;
|
|
17076
|
+
(function (PrimaryNavbarVersion) {
|
|
17077
|
+
/**
|
|
17078
|
+
* Sliding (v3) introduces a new left-side navigation hub featuring a tab switcher,
|
|
17079
|
+
* along with updates to the top navigation bar.
|
|
17080
|
+
* It serves as the foundational version of the PrimaryNavBar.
|
|
17081
|
+
*/
|
|
17082
|
+
PrimaryNavbarVersion["Sliding"] = "v3";
|
|
17083
|
+
})(PrimaryNavbarVersion || (PrimaryNavbarVersion = {}));
|
|
17084
|
+
/**
|
|
17085
|
+
* Define the version of the home page
|
|
17086
|
+
* @version SDK: 1.39.0 | Thoughtspot: 10.10.0.cl
|
|
17087
|
+
*/
|
|
17088
|
+
var HomePage;
|
|
17089
|
+
(function (HomePage) {
|
|
17090
|
+
/**
|
|
17091
|
+
* Modular (v2) introduces the updated Modular Home Experience.
|
|
17092
|
+
* It serves as the foundational version of the home page.
|
|
17093
|
+
*/
|
|
17094
|
+
HomePage["Modular"] = "v2";
|
|
17095
|
+
})(HomePage || (HomePage = {}));
|
|
17020
17096
|
/**
|
|
17021
17097
|
* Embeds full ThoughtSpot experience in a host application.
|
|
17022
17098
|
* @group Embed components
|
|
@@ -17071,9 +17147,9 @@ let AppEmbed$1 = class AppEmbed extends V1Embed {
|
|
|
17071
17147
|
* embedded Liveboard or visualization.
|
|
17072
17148
|
*/
|
|
17073
17149
|
getEmbedParams() {
|
|
17074
|
-
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false,
|
|
17150
|
+
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
|
|
17075
17151
|
/* eslint-disable-next-line max-len */
|
|
17076
|
-
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, } = this.viewConfig;
|
|
17152
|
+
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, } = this.viewConfig;
|
|
17077
17153
|
let params = {};
|
|
17078
17154
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
17079
17155
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
@@ -17146,11 +17222,14 @@ let AppEmbed$1 = class AppEmbed extends V1Embed {
|
|
|
17146
17222
|
/* eslint-disable-next-line max-len */
|
|
17147
17223
|
params[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL;
|
|
17148
17224
|
}
|
|
17149
|
-
if (
|
|
17150
|
-
|
|
17151
|
-
|
|
17225
|
+
if (discoveryExperience) {
|
|
17226
|
+
// primaryNavbarVersion v3 will enabled the new left navigation
|
|
17227
|
+
if (discoveryExperience.primaryNavbarVersion === PrimaryNavbarVersion.Sliding) {
|
|
17228
|
+
params[Param.NavigationVersion] = discoveryExperience.primaryNavbarVersion;
|
|
17152
17229
|
}
|
|
17153
|
-
|
|
17230
|
+
// homePage v2 will enable the modular home page
|
|
17231
|
+
// and it will override the modularHomeExperience value
|
|
17232
|
+
if (discoveryExperience.homePage === HomePage.Modular) {
|
|
17154
17233
|
params[Param.ModularHomeExperienceEnabled] = true;
|
|
17155
17234
|
}
|
|
17156
17235
|
}
|
package/dist/tsembed-react.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.37.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.37.1 */
|
|
2
2
|
'use client';
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
|
|
@@ -2136,9 +2136,12 @@
|
|
|
2136
2136
|
* @example
|
|
2137
2137
|
* ```js
|
|
2138
2138
|
* searchEmbed.trigger(HostEvent.OpenFilter,
|
|
2139
|
-
* { columnId: '<column-GUID>', name: 'column name', type: 'INT64', dataType: 'ATTRIBUTE'})
|
|
2139
|
+
* {column: { columnId: '<column-GUID>', name: 'column name', type: 'INT64', dataType: 'ATTRIBUTE'}})
|
|
2140
|
+
* ```
|
|
2141
|
+
* @example
|
|
2142
|
+
* ```js
|
|
2140
2143
|
* LiveboardEmbed.trigger(HostEvent.OpenFilter,
|
|
2141
|
-
*
|
|
2144
|
+
* { column: {columnId: '<column-GUID>'}})
|
|
2142
2145
|
* ```
|
|
2143
2146
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
2144
2147
|
*/
|
|
@@ -2747,6 +2750,25 @@
|
|
|
2747
2750
|
* }]
|
|
2748
2751
|
* });
|
|
2749
2752
|
* ```
|
|
2753
|
+
* If there are multiple columns with the same name, consider
|
|
2754
|
+
* using `WORKSHEET_NAME::COLUMN_NAME` format.
|
|
2755
|
+
*
|
|
2756
|
+
* @example
|
|
2757
|
+
*
|
|
2758
|
+
* ```js
|
|
2759
|
+
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
2760
|
+
* filters: [{
|
|
2761
|
+
* column: "(Sample) Retail - Apparel::city",
|
|
2762
|
+
* oper: 'IN',
|
|
2763
|
+
* values: ["atlanta"]
|
|
2764
|
+
* },
|
|
2765
|
+
* {
|
|
2766
|
+
* column: "(Sample) Retail - Apparel::Region",
|
|
2767
|
+
* oper: 'IN',
|
|
2768
|
+
* values: ["West","Midwest"]
|
|
2769
|
+
* }]
|
|
2770
|
+
* });
|
|
2771
|
+
* ```
|
|
2750
2772
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
2751
2773
|
*/
|
|
2752
2774
|
HostEvent["UpdateFilters"] = "updateFilters";
|
|
@@ -14675,6 +14697,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14675
14697
|
* @version SDK: 1.19.0
|
|
14676
14698
|
*/
|
|
14677
14699
|
AuthStatus["WAITING_FOR_POPUP"] = "WAITING_FOR_POPUP";
|
|
14700
|
+
/**
|
|
14701
|
+
* Emitted when the SAML popup is closed without authentication
|
|
14702
|
+
*/
|
|
14703
|
+
AuthStatus["SAML_POPUP_CLOSED_NO_AUTH"] = "SAML_POPUP_CLOSED_NO_AUTH";
|
|
14678
14704
|
})(AuthStatus || (AuthStatus = {}));
|
|
14679
14705
|
/**
|
|
14680
14706
|
* Events which can be triggered on the emitter returned from {@link init}.
|
|
@@ -14895,14 +14921,26 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14895
14921
|
* @param triggerText
|
|
14896
14922
|
*/
|
|
14897
14923
|
async function samlPopupFlow(ssoURL, triggerContainer, triggerText) {
|
|
14924
|
+
let popupClosedCheck;
|
|
14898
14925
|
const openPopup = () => {
|
|
14899
14926
|
if (samlAuthWindow === null || samlAuthWindow.closed) {
|
|
14900
14927
|
samlAuthWindow = window.open(ssoURL, '_blank', 'location=no,height=570,width=520,scrollbars=yes,status=yes');
|
|
14928
|
+
if (samlAuthWindow) {
|
|
14929
|
+
popupClosedCheck = setInterval(() => {
|
|
14930
|
+
if (samlAuthWindow.closed) {
|
|
14931
|
+
clearInterval(popupClosedCheck);
|
|
14932
|
+
if (samlCompletionPromise && !samlCompletionResolved) {
|
|
14933
|
+
authEE === null || authEE === void 0 ? void 0 : authEE.emit(AuthStatus.SAML_POPUP_CLOSED_NO_AUTH);
|
|
14934
|
+
}
|
|
14935
|
+
}
|
|
14936
|
+
}, 500);
|
|
14937
|
+
}
|
|
14901
14938
|
}
|
|
14902
14939
|
else {
|
|
14903
14940
|
samlAuthWindow.focus();
|
|
14904
14941
|
}
|
|
14905
14942
|
};
|
|
14943
|
+
let samlCompletionResolved = false;
|
|
14906
14944
|
authEE === null || authEE === void 0 ? void 0 : authEE.emit(AuthStatus.WAITING_FOR_POPUP);
|
|
14907
14945
|
const containerEl = getDOMNode(triggerContainer);
|
|
14908
14946
|
if (containerEl) {
|
|
@@ -14914,6 +14952,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14914
14952
|
samlCompletionPromise = samlCompletionPromise || new Promise((resolve, reject) => {
|
|
14915
14953
|
window.addEventListener('message', (e) => {
|
|
14916
14954
|
if (e.data.type === exports.EmbedEvent.SAMLComplete) {
|
|
14955
|
+
samlCompletionResolved = true;
|
|
14956
|
+
if (popupClosedCheck) {
|
|
14957
|
+
clearInterval(popupClosedCheck);
|
|
14958
|
+
}
|
|
14917
14959
|
e.source.close();
|
|
14918
14960
|
resolve();
|
|
14919
14961
|
}
|
|
@@ -15090,6 +15132,13 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15090
15132
|
iFrame.style.width = '0';
|
|
15091
15133
|
iFrame.style.height = '0';
|
|
15092
15134
|
iFrame.style.border = '0';
|
|
15135
|
+
// Make it 'fixed' to keep it in a different stacking context.
|
|
15136
|
+
// This should solve the focus behaviours inside the iframe from
|
|
15137
|
+
// interfering with main body.
|
|
15138
|
+
iFrame.style.position = 'fixed';
|
|
15139
|
+
// Push it out of viewport.
|
|
15140
|
+
iFrame.style.top = '100vh';
|
|
15141
|
+
iFrame.style.left = '100vw';
|
|
15093
15142
|
iFrame.classList.add('prefetchIframe');
|
|
15094
15143
|
iFrame.classList.add(`prefetchIframeNum-${index}`);
|
|
15095
15144
|
document.body.appendChild(iFrame);
|
|
@@ -15321,7 +15370,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15321
15370
|
return e;
|
|
15322
15371
|
}
|
|
15323
15372
|
|
|
15324
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.37.
|
|
15373
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.37.1";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={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.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/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.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",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.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",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:"4.24.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","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};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$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 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};
|
|
15325
15374
|
|
|
15326
15375
|
/**
|
|
15327
15376
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -15555,11 +15604,13 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15555
15604
|
* @param responder
|
|
15556
15605
|
*/
|
|
15557
15606
|
this.updateAuthToken = async (_, responder) => {
|
|
15558
|
-
const {
|
|
15559
|
-
|
|
15560
|
-
|
|
15607
|
+
const { authType } = this.embedConfig;
|
|
15608
|
+
let { autoLogin } = this.embedConfig;
|
|
15609
|
+
// Default autoLogin: true for cookieless if undefined/null, otherwise false
|
|
15610
|
+
autoLogin = autoLogin !== null && autoLogin !== void 0 ? autoLogin : (authType === AuthType.TrustedAuthTokenCookieless);
|
|
15611
|
+
if (autoLogin && authType === AuthType.TrustedAuthTokenCookieless) {
|
|
15561
15612
|
try {
|
|
15562
|
-
authToken = await getAuthenticationToken(this.embedConfig);
|
|
15613
|
+
const authToken = await getAuthenticationToken(this.embedConfig);
|
|
15563
15614
|
responder({
|
|
15564
15615
|
type: exports.EmbedEvent.AuthExpire,
|
|
15565
15616
|
data: { authToken },
|
|
@@ -17039,6 +17090,31 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17039
17090
|
HomePageSearchBarMode["AI_ANSWER"] = "aiAnswer";
|
|
17040
17091
|
HomePageSearchBarMode["NONE"] = "none";
|
|
17041
17092
|
})(HomePageSearchBarMode || (HomePageSearchBarMode = {}));
|
|
17093
|
+
/**
|
|
17094
|
+
* Define the version of the primary navbar
|
|
17095
|
+
* @version SDK: 1.39.0 | Thoughtspot: 10.10.0.cl
|
|
17096
|
+
*/
|
|
17097
|
+
var PrimaryNavbarVersion;
|
|
17098
|
+
(function (PrimaryNavbarVersion) {
|
|
17099
|
+
/**
|
|
17100
|
+
* Sliding (v3) introduces a new left-side navigation hub featuring a tab switcher,
|
|
17101
|
+
* along with updates to the top navigation bar.
|
|
17102
|
+
* It serves as the foundational version of the PrimaryNavBar.
|
|
17103
|
+
*/
|
|
17104
|
+
PrimaryNavbarVersion["Sliding"] = "v3";
|
|
17105
|
+
})(PrimaryNavbarVersion || (PrimaryNavbarVersion = {}));
|
|
17106
|
+
/**
|
|
17107
|
+
* Define the version of the home page
|
|
17108
|
+
* @version SDK: 1.39.0 | Thoughtspot: 10.10.0.cl
|
|
17109
|
+
*/
|
|
17110
|
+
var HomePage;
|
|
17111
|
+
(function (HomePage) {
|
|
17112
|
+
/**
|
|
17113
|
+
* Modular (v2) introduces the updated Modular Home Experience.
|
|
17114
|
+
* It serves as the foundational version of the home page.
|
|
17115
|
+
*/
|
|
17116
|
+
HomePage["Modular"] = "v2";
|
|
17117
|
+
})(HomePage || (HomePage = {}));
|
|
17042
17118
|
/**
|
|
17043
17119
|
* Embeds full ThoughtSpot experience in a host application.
|
|
17044
17120
|
* @group Embed components
|
|
@@ -17093,9 +17169,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17093
17169
|
* embedded Liveboard or visualization.
|
|
17094
17170
|
*/
|
|
17095
17171
|
getEmbedParams() {
|
|
17096
|
-
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false,
|
|
17172
|
+
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
|
|
17097
17173
|
/* eslint-disable-next-line max-len */
|
|
17098
|
-
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, } = this.viewConfig;
|
|
17174
|
+
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, } = this.viewConfig;
|
|
17099
17175
|
let params = {};
|
|
17100
17176
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
17101
17177
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
@@ -17168,11 +17244,14 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17168
17244
|
/* eslint-disable-next-line max-len */
|
|
17169
17245
|
params[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL;
|
|
17170
17246
|
}
|
|
17171
|
-
if (
|
|
17172
|
-
|
|
17173
|
-
|
|
17247
|
+
if (discoveryExperience) {
|
|
17248
|
+
// primaryNavbarVersion v3 will enabled the new left navigation
|
|
17249
|
+
if (discoveryExperience.primaryNavbarVersion === PrimaryNavbarVersion.Sliding) {
|
|
17250
|
+
params[Param.NavigationVersion] = discoveryExperience.primaryNavbarVersion;
|
|
17174
17251
|
}
|
|
17175
|
-
|
|
17252
|
+
// homePage v2 will enable the modular home page
|
|
17253
|
+
// and it will override the modularHomeExperience value
|
|
17254
|
+
if (discoveryExperience.homePage === HomePage.Modular) {
|
|
17176
17255
|
params[Param.ModularHomeExperienceEnabled] = true;
|
|
17177
17256
|
}
|
|
17178
17257
|
}
|