@thoughtspot/visual-embed-sdk 1.24.1 → 1.24.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/package.json +1 -1
- package/cjs/src/embed/app.d.ts +22 -1
- 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/base.d.ts +1 -4
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +1 -4
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +22 -1
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +10 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/sage.d.ts +1 -1
- package/cjs/src/embed/sage.d.ts.map +1 -1
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/search-bar.d.ts +1 -1
- package/cjs/src/embed/search-bar.d.ts.map +1 -1
- package/cjs/src/embed/search-bar.js.map +1 -1
- package/cjs/src/embed/search.d.ts +1 -1
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +1 -10
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +2 -2
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/types.d.ts +0 -21
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils.js +1 -1
- package/cjs/src/utils.js.map +1 -1
- package/cjs/src/utils.spec.js +10 -0
- package/cjs/src/utils.spec.js.map +1 -1
- package/dist/src/embed/app.d.ts +22 -1
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts +1 -4
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +22 -1
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts +1 -1
- package/dist/src/embed/sage.d.ts.map +1 -1
- package/dist/src/embed/search-bar.d.ts +1 -1
- package/dist/src/embed/search-bar.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +1 -1
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/types.d.ts +0 -21
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +17 -14
- package/dist/tsembed-react.js +17 -14
- package/dist/tsembed.es.js +18 -18
- package/dist/tsembed.js +18 -18
- package/dist/visual-embed-sdk-react-full.d.ts +48 -30
- package/dist/visual-embed-sdk-react.d.ts +48 -30
- package/dist/visual-embed-sdk.d.ts +48 -30
- package/lib/package.json +1 -1
- package/lib/src/embed/app.d.ts +22 -1
- 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/base.d.ts +1 -4
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +1 -4
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +22 -1
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +10 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/sage.d.ts +1 -1
- package/lib/src/embed/sage.d.ts.map +1 -1
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts +1 -1
- package/lib/src/embed/search-bar.d.ts.map +1 -1
- package/lib/src/embed/search-bar.js.map +1 -1
- package/lib/src/embed/search.d.ts +1 -1
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +1 -10
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +2 -2
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/types.d.ts +0 -21
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils.js +1 -1
- package/lib/src/utils.js.map +1 -1
- package/lib/src/utils.spec.js +10 -0
- package/lib/src/utils.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +48 -30
- package/package.json +1 -1
- package/src/embed/app.ts +28 -1
- package/src/embed/base.ts +1 -4
- package/src/embed/liveboard.ts +34 -1
- package/src/embed/sage.ts +7 -4
- package/src/embed/search-bar.tsx +10 -1
- package/src/embed/search.ts +5 -1
- package/src/embed/ts-embed.spec.ts +2 -2
- package/src/embed/ts-embed.ts +0 -12
- package/src/types.ts +0 -21
- package/src/utils.spec.ts +13 -0
- package/src/utils.ts +1 -1
- package/cjs/src/utils/answerService/answerService.d.ts +0 -34
- package/cjs/src/utils/answerService/answerService.d.ts.map +0 -1
- package/cjs/src/utils/answerService/answerService.js +0 -142
- package/cjs/src/utils/answerService/answerService.js.map +0 -1
- package/cjs/src/utils/answerService/answerService.spec.d.ts +0 -1
- package/cjs/src/utils/answerService/answerService.spec.d.ts.map +0 -1
- package/cjs/src/utils/answerService/answerService.spec.js +0 -1
- package/cjs/src/utils/answerService/answerService.spec.js.map +0 -1
- package/cjs/src/utils/answerService/graphql-queries.d.ts +0 -6
- package/cjs/src/utils/answerService/graphql-queries.d.ts.map +0 -1
- package/cjs/src/utils/answerService/graphql-queries.js +0 -123
- package/cjs/src/utils/answerService/graphql-queries.js.map +0 -1
- package/cjs/src/utils/answerService.d.ts +0 -10
- package/cjs/src/utils/answerService.d.ts.map +0 -1
- package/cjs/src/utils/answerService.js +0 -61
- package/cjs/src/utils/answerService.js.map +0 -1
- package/cjs/src/utils/answerService.spec.d.ts +0 -2
- package/cjs/src/utils/answerService.spec.d.ts.map +0 -1
- package/cjs/src/utils/answerService.spec.js +0 -31
- package/cjs/src/utils/answerService.spec.js.map +0 -1
- package/cjs/src/utils/graphql/answerService/graphql-queries.d.ts +0 -5
- package/cjs/src/utils/graphql/answerService/graphql-queries.d.ts.map +0 -1
- package/cjs/src/utils/graphql/answerService/graphql-queries.js +0 -80
- package/cjs/src/utils/graphql/answerService/graphql-queries.js.map +0 -1
- package/dist/src/utils/answerService.d.ts +0 -10
- package/dist/src/utils/answerService.d.ts.map +0 -1
- package/dist/src/utils/answerService.spec.d.ts +0 -2
- package/dist/src/utils/answerService.spec.d.ts.map +0 -1
- package/lib/src/.index.d.ts.swp +0 -0
- package/lib/src/utils/answerService/answerService.d.ts +0 -34
- package/lib/src/utils/answerService/answerService.d.ts.map +0 -1
- package/lib/src/utils/answerService/answerService.js +0 -137
- package/lib/src/utils/answerService/answerService.js.map +0 -1
- package/lib/src/utils/answerService/answerService.spec.d.ts +0 -1
- package/lib/src/utils/answerService/answerService.spec.d.ts.map +0 -1
- package/lib/src/utils/answerService/answerService.spec.js +0 -1
- package/lib/src/utils/answerService/answerService.spec.js.map +0 -1
- package/lib/src/utils/answerService/graphql-queries.d.ts +0 -6
- package/lib/src/utils/answerService/graphql-queries.d.ts.map +0 -1
- package/lib/src/utils/answerService/graphql-queries.js +0 -120
- package/lib/src/utils/answerService/graphql-queries.js.map +0 -1
- package/lib/src/utils/answerService.d.ts +0 -10
- package/lib/src/utils/answerService.d.ts.map +0 -1
- package/lib/src/utils/answerService.js +0 -57
- package/lib/src/utils/answerService.js.map +0 -1
- package/lib/src/utils/answerService.spec.d.ts +0 -2
- package/lib/src/utils/answerService.spec.d.ts.map +0 -1
- package/lib/src/utils/answerService.spec.js +0 -29
- package/lib/src/utils/answerService.spec.js.map +0 -1
- package/lib/src/utils/graphql/answerService/graphql-queries.d.ts +0 -5
- package/lib/src/utils/graphql/answerService/graphql-queries.d.ts.map +0 -1
- package/lib/src/utils/graphql/answerService/graphql-queries.js +0 -77
- package/lib/src/utils/graphql/answerService/graphql-queries.js.map +0 -1
package/dist/tsembed.js
CHANGED
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
const filterExpr = [];
|
|
72
72
|
filterExpr.push(`col${index}=${filter.columnName}`);
|
|
73
73
|
filterExpr.push(`op${index}=${filter.operator}`);
|
|
74
|
-
filterExpr.push(filter.values.map((value) => `val${index}=${value}`).join('&'));
|
|
74
|
+
filterExpr.push(filter.values.map((value) => `val${index}=${encodeURIComponent(value)}`).join('&'));
|
|
75
75
|
return filterExpr.join('&');
|
|
76
76
|
});
|
|
77
77
|
return `${filters.join('&')}`;
|
|
@@ -10893,7 +10893,6 @@
|
|
|
10893
10893
|
};
|
|
10894
10894
|
/**
|
|
10895
10895
|
* Imports TML representation of the metadata objects into ThoughtSpot.
|
|
10896
|
-
*
|
|
10897
10896
|
* @param data
|
|
10898
10897
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
10899
10898
|
* @group Global methods
|
|
@@ -10939,9 +10938,7 @@
|
|
|
10939
10938
|
});
|
|
10940
10939
|
};
|
|
10941
10940
|
/**
|
|
10942
|
-
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML
|
|
10943
|
-
* format.
|
|
10944
|
-
*
|
|
10941
|
+
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML format.
|
|
10945
10942
|
* @param data
|
|
10946
10943
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
10947
10944
|
* @group Global methods
|
|
@@ -11493,7 +11490,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
11493
11490
|
});
|
|
11494
11491
|
}
|
|
11495
11492
|
|
|
11496
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.24.
|
|
11493
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.24.2";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",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-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","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",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"};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":"^40.1.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/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",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":"6.7.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-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"};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,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"40 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};
|
|
11497
11494
|
|
|
11498
11495
|
/**
|
|
11499
11496
|
* Copyright (c) 2022
|
|
@@ -11742,7 +11739,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
11742
11739
|
if (this.embedConfig.pendoTrackingKey) {
|
|
11743
11740
|
queryParams[Param.PendoTrackingKey] = this.embedConfig.pendoTrackingKey;
|
|
11744
11741
|
}
|
|
11745
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide,
|
|
11742
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, } = this.viewConfig;
|
|
11746
11743
|
if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
|
|
11747
11744
|
this.handleError('You cannot have both hidden actions and visible actions');
|
|
11748
11745
|
return queryParams;
|
|
@@ -11803,15 +11800,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
11803
11800
|
if (insertInToSlide) {
|
|
11804
11801
|
queryParams[Param.ShowInsertToSlide] = insertInToSlide;
|
|
11805
11802
|
}
|
|
11806
|
-
if (hideLiveboardHeader) {
|
|
11807
|
-
queryParams[Param.HideLiveboardHeader] = hideLiveboardHeader;
|
|
11808
|
-
}
|
|
11809
|
-
if (showLiveboardDescription) {
|
|
11810
|
-
queryParams[Param.ShowLiveboardDescription] = showLiveboardDescription;
|
|
11811
|
-
}
|
|
11812
|
-
if (showLiveboardTitle) {
|
|
11813
|
-
queryParams[Param.ShowLiveboardTitle] = showLiveboardTitle;
|
|
11814
|
-
}
|
|
11815
11803
|
return queryParams;
|
|
11816
11804
|
}
|
|
11817
11805
|
/**
|
|
@@ -12338,13 +12326,16 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
12338
12326
|
* embedded Liveboard or visualization.
|
|
12339
12327
|
*/
|
|
12340
12328
|
getEmbedParams() {
|
|
12341
|
-
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideHomepageLeftNav = false, modularHomeExperience = false, } = this.viewConfig;
|
|
12329
|
+
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader, showLiveboardTitle, showLiveboardDescription, hideHomepageLeftNav = false, modularHomeExperience = false, } = this.viewConfig;
|
|
12342
12330
|
let params = {};
|
|
12343
12331
|
params[Param.EmbedApp] = true;
|
|
12344
12332
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
12345
12333
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
12346
12334
|
params[Param.HideApplicationSwitcher] = !!hideApplicationSwitcher;
|
|
12347
12335
|
params[Param.HideOrgSwitcher] = !!hideOrgSwitcher;
|
|
12336
|
+
params[Param.HideLiveboardHeader] = !!hideLiveboardHeader;
|
|
12337
|
+
params[Param.ShowLiveboardTitle] = !!showLiveboardTitle;
|
|
12338
|
+
params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
|
|
12348
12339
|
params = this.getBaseQueryParams(params);
|
|
12349
12340
|
if (fullHeight === true) {
|
|
12350
12341
|
params[Param.fullHeight] = true;
|
|
@@ -12529,7 +12520,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
12529
12520
|
let params = {};
|
|
12530
12521
|
params[Param.EmbedApp] = true;
|
|
12531
12522
|
params = this.getBaseQueryParams(params);
|
|
12532
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, runtimeParameters, } = this.viewConfig;
|
|
12523
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, runtimeParameters, } = this.viewConfig;
|
|
12533
12524
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
12534
12525
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
12535
12526
|
if (fullHeight === true) {
|
|
@@ -12557,6 +12548,15 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
12557
12548
|
if (hideTabPanel) {
|
|
12558
12549
|
params[Param.HideTabPanel] = hideTabPanel;
|
|
12559
12550
|
}
|
|
12551
|
+
if (hideLiveboardHeader) {
|
|
12552
|
+
params[Param.HideLiveboardHeader] = hideLiveboardHeader;
|
|
12553
|
+
}
|
|
12554
|
+
if (showLiveboardDescription) {
|
|
12555
|
+
params[Param.ShowLiveboardDescription] = showLiveboardDescription;
|
|
12556
|
+
}
|
|
12557
|
+
if (showLiveboardTitle) {
|
|
12558
|
+
params[Param.ShowLiveboardTitle] = showLiveboardTitle;
|
|
12559
|
+
}
|
|
12560
12560
|
let queryParams = getQueryParamString(params, true);
|
|
12561
12561
|
const parameterQuery = getRuntimeParameters(runtimeParameters || []);
|
|
12562
12562
|
if (parameterQuery)
|
|
@@ -124,7 +124,7 @@ export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportT
|
|
|
124
124
|
/**
|
|
125
125
|
* @group Embed components
|
|
126
126
|
*/
|
|
127
|
-
export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' | 'showAlerts' | 'dataPanelV2'> {
|
|
127
|
+
export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' | 'showAlerts' | 'dataPanelV2' | 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs'> {
|
|
128
128
|
/**
|
|
129
129
|
* The array of data source GUIDs to set on load.
|
|
130
130
|
* Only a single dataSource supported currently.
|
|
@@ -199,7 +199,7 @@ export interface SearchOptions {
|
|
|
199
199
|
* @version: SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
|
|
200
200
|
* @group Embed components
|
|
201
201
|
*/
|
|
202
|
-
export interface SageViewConfig extends ViewConfig {
|
|
202
|
+
export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs'> {
|
|
203
203
|
/**
|
|
204
204
|
* If set to true, a list of liveboard and answers related
|
|
205
205
|
* to the natural language search will be shown below the
|
|
@@ -297,7 +297,7 @@ export interface SearchOptions {
|
|
|
297
297
|
*
|
|
298
298
|
* @group Embed components
|
|
299
299
|
*/
|
|
300
|
-
export interface SearchViewConfig extends ViewConfig {
|
|
300
|
+
export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs'> {
|
|
301
301
|
/**
|
|
302
302
|
* If set to true, the data sources panel is collapsed on load,
|
|
303
303
|
* but can be expanded manually.
|
|
@@ -448,7 +448,7 @@ export declare enum Page {
|
|
|
448
448
|
*
|
|
449
449
|
* @group Embed components
|
|
450
450
|
*/
|
|
451
|
-
export interface AppViewConfig extends ViewConfig {
|
|
451
|
+
export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
452
452
|
/**
|
|
453
453
|
* If true, the main navigation bar within the ThoughtSpot app
|
|
454
454
|
* is displayed. By default, the navigation bar is hidden.
|
|
@@ -542,6 +542,27 @@ export interface AppViewConfig extends ViewConfig {
|
|
|
542
542
|
* @hidden
|
|
543
543
|
*/
|
|
544
544
|
dataPanelV2?: boolean;
|
|
545
|
+
/**
|
|
546
|
+
* Boolean to hide liveboard header
|
|
547
|
+
*
|
|
548
|
+
* @version SDK: 1.23.0 | Thoughtspot: 9.6.0.cl
|
|
549
|
+
* @default false
|
|
550
|
+
*/
|
|
551
|
+
hideLiveboardHeader?: boolean;
|
|
552
|
+
/**
|
|
553
|
+
* Boolean to show liveboard title
|
|
554
|
+
*
|
|
555
|
+
* @version SDK: 1.23.0 | Thoughtspot: 9.6.0.cl
|
|
556
|
+
* @default false
|
|
557
|
+
*/
|
|
558
|
+
showLiveboardTitle?: boolean;
|
|
559
|
+
/**
|
|
560
|
+
* Boolean to show liveboard description
|
|
561
|
+
*
|
|
562
|
+
* @version SDK: 1.23.0 | Thoughtspot: 9.6.0.cl
|
|
563
|
+
* @default false
|
|
564
|
+
*/
|
|
565
|
+
showLiveboardDescription?: boolean;
|
|
545
566
|
/**
|
|
546
567
|
* Flag to control new Modular Home experience
|
|
547
568
|
*
|
|
@@ -608,7 +629,7 @@ export declare class AppEmbed extends V1Embed {
|
|
|
608
629
|
*
|
|
609
630
|
* @group Embed components
|
|
610
631
|
*/
|
|
611
|
-
export interface LiveboardViewConfig extends ViewConfig {
|
|
632
|
+
export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems'> {
|
|
612
633
|
/**
|
|
613
634
|
* If set to true, the embedded object container dynamically resizes
|
|
614
635
|
* according to the height of the Liveboard.
|
|
@@ -685,6 +706,27 @@ export interface LiveboardViewConfig extends ViewConfig {
|
|
|
685
706
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
686
707
|
*/
|
|
687
708
|
hideTabPanel?: boolean;
|
|
709
|
+
/**
|
|
710
|
+
* Boolean to hide liveboard header
|
|
711
|
+
*
|
|
712
|
+
* @version SDK: 1.23.0 | Thoughtspot: 9.6.0.cl
|
|
713
|
+
* @default false
|
|
714
|
+
*/
|
|
715
|
+
hideLiveboardHeader?: boolean;
|
|
716
|
+
/**
|
|
717
|
+
* Boolean to show liveboard title
|
|
718
|
+
*
|
|
719
|
+
* @version SDK: 1.23.0 | Thoughtspot: 9.6.0.cl
|
|
720
|
+
* @default false
|
|
721
|
+
*/
|
|
722
|
+
showLiveboardTitle?: boolean;
|
|
723
|
+
/**
|
|
724
|
+
* Boolean to show liveboard description
|
|
725
|
+
*
|
|
726
|
+
* @version SDK: 1.23.0 | Thoughtspot: 9.6.0.cl
|
|
727
|
+
* @default false
|
|
728
|
+
*/
|
|
729
|
+
showLiveboardDescription?: boolean;
|
|
688
730
|
/**
|
|
689
731
|
* The list of parameter override to apply to a Liveboard.
|
|
690
732
|
*/
|
|
@@ -842,16 +884,13 @@ export declare const logout: (doNotDisableAutoLogin?: boolean) => Promise<boolea
|
|
|
842
884
|
export declare const renderInQueue: (fn: (next?: (val?: any) => void) => Promise<any>) => Promise<any>;
|
|
843
885
|
/**
|
|
844
886
|
* Imports TML representation of the metadata objects into ThoughtSpot.
|
|
845
|
-
*
|
|
846
887
|
* @param data
|
|
847
888
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
848
889
|
* @group Global methods
|
|
849
890
|
*/
|
|
850
891
|
export declare const executeTML: (data: executeTMLInput) => Promise<any>;
|
|
851
892
|
/**
|
|
852
|
-
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML
|
|
853
|
-
* format.
|
|
854
|
-
*
|
|
893
|
+
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML format.
|
|
855
894
|
* @param data
|
|
856
895
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
857
896
|
* @group Global methods
|
|
@@ -1731,27 +1770,6 @@ export interface ViewConfig {
|
|
|
1731
1770
|
* @hidden
|
|
1732
1771
|
*/
|
|
1733
1772
|
excludeRuntimeFiltersfromURL?: boolean;
|
|
1734
|
-
/**
|
|
1735
|
-
* Boolean to hide liveboard header
|
|
1736
|
-
*
|
|
1737
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1738
|
-
* @default false
|
|
1739
|
-
*/
|
|
1740
|
-
hideLiveboardHeader?: boolean;
|
|
1741
|
-
/**
|
|
1742
|
-
* Boolean to show liveboard title
|
|
1743
|
-
*
|
|
1744
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1745
|
-
* @default false
|
|
1746
|
-
*/
|
|
1747
|
-
showLiveboardTitle?: boolean;
|
|
1748
|
-
/**
|
|
1749
|
-
* Boolean to show liveboard description
|
|
1750
|
-
*
|
|
1751
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1752
|
-
* @default false
|
|
1753
|
-
*/
|
|
1754
|
-
showLiveboardDescription?: boolean;
|
|
1755
1773
|
/**
|
|
1756
1774
|
* The list of tab IDs to hide from the embedded.
|
|
1757
1775
|
* This Tabs will be hidden from their respective LBs.
|
|
@@ -113,7 +113,7 @@ export function useEmbedRef<T extends EmbedComponent>(): React.MutableRefObject<
|
|
|
113
113
|
/**
|
|
114
114
|
* @group Embed components
|
|
115
115
|
*/
|
|
116
|
-
export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' | 'showAlerts' | 'dataPanelV2'> {
|
|
116
|
+
export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' | 'showAlerts' | 'dataPanelV2' | 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs'> {
|
|
117
117
|
/**
|
|
118
118
|
* The array of data source GUIDs to set on load.
|
|
119
119
|
* Only a single dataSource supported currently.
|
|
@@ -188,7 +188,7 @@ export interface SearchOptions {
|
|
|
188
188
|
* @version: SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
|
|
189
189
|
* @group Embed components
|
|
190
190
|
*/
|
|
191
|
-
export interface SageViewConfig extends ViewConfig {
|
|
191
|
+
export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs'> {
|
|
192
192
|
/**
|
|
193
193
|
* If set to true, a list of liveboard and answers related
|
|
194
194
|
* to the natural language search will be shown below the
|
|
@@ -286,7 +286,7 @@ export interface SearchOptions {
|
|
|
286
286
|
*
|
|
287
287
|
* @group Embed components
|
|
288
288
|
*/
|
|
289
|
-
export interface SearchViewConfig extends ViewConfig {
|
|
289
|
+
export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs'> {
|
|
290
290
|
/**
|
|
291
291
|
* If set to true, the data sources panel is collapsed on load,
|
|
292
292
|
* but can be expanded manually.
|
|
@@ -437,7 +437,7 @@ export declare enum Page {
|
|
|
437
437
|
*
|
|
438
438
|
* @group Embed components
|
|
439
439
|
*/
|
|
440
|
-
export interface AppViewConfig extends ViewConfig {
|
|
440
|
+
export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
441
441
|
/**
|
|
442
442
|
* If true, the main navigation bar within the ThoughtSpot app
|
|
443
443
|
* is displayed. By default, the navigation bar is hidden.
|
|
@@ -531,6 +531,27 @@ export interface AppViewConfig extends ViewConfig {
|
|
|
531
531
|
* @hidden
|
|
532
532
|
*/
|
|
533
533
|
dataPanelV2?: boolean;
|
|
534
|
+
/**
|
|
535
|
+
* Boolean to hide liveboard header
|
|
536
|
+
*
|
|
537
|
+
* @version SDK: 1.23.0 | Thoughtspot: 9.6.0.cl
|
|
538
|
+
* @default false
|
|
539
|
+
*/
|
|
540
|
+
hideLiveboardHeader?: boolean;
|
|
541
|
+
/**
|
|
542
|
+
* Boolean to show liveboard title
|
|
543
|
+
*
|
|
544
|
+
* @version SDK: 1.23.0 | Thoughtspot: 9.6.0.cl
|
|
545
|
+
* @default false
|
|
546
|
+
*/
|
|
547
|
+
showLiveboardTitle?: boolean;
|
|
548
|
+
/**
|
|
549
|
+
* Boolean to show liveboard description
|
|
550
|
+
*
|
|
551
|
+
* @version SDK: 1.23.0 | Thoughtspot: 9.6.0.cl
|
|
552
|
+
* @default false
|
|
553
|
+
*/
|
|
554
|
+
showLiveboardDescription?: boolean;
|
|
534
555
|
/**
|
|
535
556
|
* Flag to control new Modular Home experience
|
|
536
557
|
*
|
|
@@ -597,7 +618,7 @@ export declare class AppEmbed extends V1Embed {
|
|
|
597
618
|
*
|
|
598
619
|
* @group Embed components
|
|
599
620
|
*/
|
|
600
|
-
export interface LiveboardViewConfig extends ViewConfig {
|
|
621
|
+
export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems'> {
|
|
601
622
|
/**
|
|
602
623
|
* If set to true, the embedded object container dynamically resizes
|
|
603
624
|
* according to the height of the Liveboard.
|
|
@@ -674,6 +695,27 @@ export interface LiveboardViewConfig extends ViewConfig {
|
|
|
674
695
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
675
696
|
*/
|
|
676
697
|
hideTabPanel?: boolean;
|
|
698
|
+
/**
|
|
699
|
+
* Boolean to hide liveboard header
|
|
700
|
+
*
|
|
701
|
+
* @version SDK: 1.23.0 | Thoughtspot: 9.6.0.cl
|
|
702
|
+
* @default false
|
|
703
|
+
*/
|
|
704
|
+
hideLiveboardHeader?: boolean;
|
|
705
|
+
/**
|
|
706
|
+
* Boolean to show liveboard title
|
|
707
|
+
*
|
|
708
|
+
* @version SDK: 1.23.0 | Thoughtspot: 9.6.0.cl
|
|
709
|
+
* @default false
|
|
710
|
+
*/
|
|
711
|
+
showLiveboardTitle?: boolean;
|
|
712
|
+
/**
|
|
713
|
+
* Boolean to show liveboard description
|
|
714
|
+
*
|
|
715
|
+
* @version SDK: 1.23.0 | Thoughtspot: 9.6.0.cl
|
|
716
|
+
* @default false
|
|
717
|
+
*/
|
|
718
|
+
showLiveboardDescription?: boolean;
|
|
677
719
|
/**
|
|
678
720
|
* The list of parameter override to apply to a Liveboard.
|
|
679
721
|
*/
|
|
@@ -1440,27 +1482,6 @@ export interface ViewConfig {
|
|
|
1440
1482
|
* @hidden
|
|
1441
1483
|
*/
|
|
1442
1484
|
excludeRuntimeFiltersfromURL?: boolean;
|
|
1443
|
-
/**
|
|
1444
|
-
* Boolean to hide liveboard header
|
|
1445
|
-
*
|
|
1446
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1447
|
-
* @default false
|
|
1448
|
-
*/
|
|
1449
|
-
hideLiveboardHeader?: boolean;
|
|
1450
|
-
/**
|
|
1451
|
-
* Boolean to show liveboard title
|
|
1452
|
-
*
|
|
1453
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1454
|
-
* @default false
|
|
1455
|
-
*/
|
|
1456
|
-
showLiveboardTitle?: boolean;
|
|
1457
|
-
/**
|
|
1458
|
-
* Boolean to show liveboard description
|
|
1459
|
-
*
|
|
1460
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1461
|
-
* @default false
|
|
1462
|
-
*/
|
|
1463
|
-
showLiveboardDescription?: boolean;
|
|
1464
1485
|
/**
|
|
1465
1486
|
* The list of tab IDs to hide from the embedded.
|
|
1466
1487
|
* This Tabs will be hidden from their respective LBs.
|
|
@@ -4196,16 +4217,13 @@ export declare const logout: (doNotDisableAutoLogin?: boolean) => Promise<boolea
|
|
|
4196
4217
|
export declare const renderInQueue: (fn: (next?: (val?: any) => void) => Promise<any>) => Promise<any>;
|
|
4197
4218
|
/**
|
|
4198
4219
|
* Imports TML representation of the metadata objects into ThoughtSpot.
|
|
4199
|
-
*
|
|
4200
4220
|
* @param data
|
|
4201
4221
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
4202
4222
|
* @group Global methods
|
|
4203
4223
|
*/
|
|
4204
4224
|
export declare const executeTML: (data: executeTMLInput) => Promise<any>;
|
|
4205
4225
|
/**
|
|
4206
|
-
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML
|
|
4207
|
-
* format.
|
|
4208
|
-
*
|
|
4226
|
+
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML format.
|
|
4209
4227
|
* @param data
|
|
4210
4228
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
4211
4229
|
* @group Global methods
|
|
@@ -63,7 +63,7 @@ export enum Page {
|
|
|
63
63
|
*
|
|
64
64
|
* @group Embed components
|
|
65
65
|
*/
|
|
66
|
-
export interface AppViewConfig extends ViewConfig {
|
|
66
|
+
export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
67
67
|
/**
|
|
68
68
|
* If true, the main navigation bar within the ThoughtSpot app
|
|
69
69
|
* is displayed. By default, the navigation bar is hidden.
|
|
@@ -157,6 +157,27 @@ export interface AppViewConfig extends ViewConfig {
|
|
|
157
157
|
* @hidden
|
|
158
158
|
*/
|
|
159
159
|
dataPanelV2?: boolean;
|
|
160
|
+
/**
|
|
161
|
+
* Boolean to hide liveboard header
|
|
162
|
+
*
|
|
163
|
+
* @version SDK: 1.23.0 | Thoughtspot: 9.6.0.cl
|
|
164
|
+
* @default false
|
|
165
|
+
*/
|
|
166
|
+
hideLiveboardHeader?: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Boolean to show liveboard title
|
|
169
|
+
*
|
|
170
|
+
* @version SDK: 1.23.0 | Thoughtspot: 9.6.0.cl
|
|
171
|
+
* @default false
|
|
172
|
+
*/
|
|
173
|
+
showLiveboardTitle?: boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Boolean to show liveboard description
|
|
176
|
+
*
|
|
177
|
+
* @version SDK: 1.23.0 | Thoughtspot: 9.6.0.cl
|
|
178
|
+
* @default false
|
|
179
|
+
*/
|
|
180
|
+
showLiveboardDescription?: boolean;
|
|
160
181
|
/**
|
|
161
182
|
* Flag to control new Modular Home experience
|
|
162
183
|
*
|
|
@@ -296,16 +317,13 @@ export const logout: (doNotDisableAutoLogin?: boolean) => Promise<boolean>;
|
|
|
296
317
|
export const renderInQueue: (fn: (next?: (val?: any) => void) => Promise<any>) => Promise<any>;
|
|
297
318
|
/**
|
|
298
319
|
* Imports TML representation of the metadata objects into ThoughtSpot.
|
|
299
|
-
*
|
|
300
320
|
* @param data
|
|
301
321
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
302
322
|
* @group Global methods
|
|
303
323
|
*/
|
|
304
324
|
export const executeTML: (data: executeTMLInput) => Promise<any>;
|
|
305
325
|
/**
|
|
306
|
-
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML
|
|
307
|
-
* format.
|
|
308
|
-
*
|
|
326
|
+
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML format.
|
|
309
327
|
* @param data
|
|
310
328
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
311
329
|
* @group Global methods
|
|
@@ -331,7 +349,7 @@ export function reset(): void;
|
|
|
331
349
|
*
|
|
332
350
|
* @group Embed components
|
|
333
351
|
*/
|
|
334
|
-
export interface LiveboardViewConfig extends ViewConfig {
|
|
352
|
+
export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems'> {
|
|
335
353
|
/**
|
|
336
354
|
* If set to true, the embedded object container dynamically resizes
|
|
337
355
|
* according to the height of the Liveboard.
|
|
@@ -408,6 +426,27 @@ export interface LiveboardViewConfig extends ViewConfig {
|
|
|
408
426
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
409
427
|
*/
|
|
410
428
|
hideTabPanel?: boolean;
|
|
429
|
+
/**
|
|
430
|
+
* Boolean to hide liveboard header
|
|
431
|
+
*
|
|
432
|
+
* @version SDK: 1.23.0 | Thoughtspot: 9.6.0.cl
|
|
433
|
+
* @default false
|
|
434
|
+
*/
|
|
435
|
+
hideLiveboardHeader?: boolean;
|
|
436
|
+
/**
|
|
437
|
+
* Boolean to show liveboard title
|
|
438
|
+
*
|
|
439
|
+
* @version SDK: 1.23.0 | Thoughtspot: 9.6.0.cl
|
|
440
|
+
* @default false
|
|
441
|
+
*/
|
|
442
|
+
showLiveboardTitle?: boolean;
|
|
443
|
+
/**
|
|
444
|
+
* Boolean to show liveboard description
|
|
445
|
+
*
|
|
446
|
+
* @version SDK: 1.23.0 | Thoughtspot: 9.6.0.cl
|
|
447
|
+
* @default false
|
|
448
|
+
*/
|
|
449
|
+
showLiveboardDescription?: boolean;
|
|
411
450
|
/**
|
|
412
451
|
* The list of parameter override to apply to a Liveboard.
|
|
413
452
|
*/
|
|
@@ -488,7 +527,7 @@ export interface SearchOptions {
|
|
|
488
527
|
*
|
|
489
528
|
* @group Embed components
|
|
490
529
|
*/
|
|
491
|
-
export interface SearchViewConfig extends ViewConfig {
|
|
530
|
+
export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs'> {
|
|
492
531
|
/**
|
|
493
532
|
* If set to true, the data sources panel is collapsed on load,
|
|
494
533
|
* but can be expanded manually.
|
|
@@ -594,7 +633,7 @@ export class SearchEmbed extends TsEmbed {
|
|
|
594
633
|
/**
|
|
595
634
|
* @group Embed components
|
|
596
635
|
*/
|
|
597
|
-
export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' | 'showAlerts' | 'dataPanelV2'> {
|
|
636
|
+
export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' | 'showAlerts' | 'dataPanelV2' | 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs'> {
|
|
598
637
|
/**
|
|
599
638
|
* The array of data source GUIDs to set on load.
|
|
600
639
|
* Only a single dataSource supported currently.
|
|
@@ -1507,27 +1546,6 @@ export interface ViewConfig {
|
|
|
1507
1546
|
* @hidden
|
|
1508
1547
|
*/
|
|
1509
1548
|
excludeRuntimeFiltersfromURL?: boolean;
|
|
1510
|
-
/**
|
|
1511
|
-
* Boolean to hide liveboard header
|
|
1512
|
-
*
|
|
1513
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1514
|
-
* @default false
|
|
1515
|
-
*/
|
|
1516
|
-
hideLiveboardHeader?: boolean;
|
|
1517
|
-
/**
|
|
1518
|
-
* Boolean to show liveboard title
|
|
1519
|
-
*
|
|
1520
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1521
|
-
* @default false
|
|
1522
|
-
*/
|
|
1523
|
-
showLiveboardTitle?: boolean;
|
|
1524
|
-
/**
|
|
1525
|
-
* Boolean to show liveboard description
|
|
1526
|
-
*
|
|
1527
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1528
|
-
* @default false
|
|
1529
|
-
*/
|
|
1530
|
-
showLiveboardDescription?: boolean;
|
|
1531
1549
|
/**
|
|
1532
1550
|
* The list of tab IDs to hide from the embedded.
|
|
1533
1551
|
* This Tabs will be hidden from their respective LBs.
|
|
@@ -4317,7 +4335,7 @@ export interface SearchOptions {
|
|
|
4317
4335
|
* @version: SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
|
|
4318
4336
|
* @group Embed components
|
|
4319
4337
|
*/
|
|
4320
|
-
export interface SageViewConfig extends ViewConfig {
|
|
4338
|
+
export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs'> {
|
|
4321
4339
|
/**
|
|
4322
4340
|
* If set to true, a list of liveboard and answers related
|
|
4323
4341
|
* to the natural language search will be shown below the
|
package/lib/package.json
CHANGED
package/lib/src/embed/app.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export declare enum Page {
|
|
|
48
48
|
*
|
|
49
49
|
* @group Embed components
|
|
50
50
|
*/
|
|
51
|
-
export interface AppViewConfig extends ViewConfig {
|
|
51
|
+
export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
52
52
|
/**
|
|
53
53
|
* If true, the main navigation bar within the ThoughtSpot app
|
|
54
54
|
* is displayed. By default, the navigation bar is hidden.
|
|
@@ -142,6 +142,27 @@ export interface AppViewConfig extends ViewConfig {
|
|
|
142
142
|
* @hidden
|
|
143
143
|
*/
|
|
144
144
|
dataPanelV2?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Boolean to hide liveboard header
|
|
147
|
+
*
|
|
148
|
+
* @version SDK: 1.23.0 | Thoughtspot: 9.6.0.cl
|
|
149
|
+
* @default false
|
|
150
|
+
*/
|
|
151
|
+
hideLiveboardHeader?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Boolean to show liveboard title
|
|
154
|
+
*
|
|
155
|
+
* @version SDK: 1.23.0 | Thoughtspot: 9.6.0.cl
|
|
156
|
+
* @default false
|
|
157
|
+
*/
|
|
158
|
+
showLiveboardTitle?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Boolean to show liveboard description
|
|
161
|
+
*
|
|
162
|
+
* @version SDK: 1.23.0 | Thoughtspot: 9.6.0.cl
|
|
163
|
+
* @default false
|
|
164
|
+
*/
|
|
165
|
+
showLiveboardDescription?: boolean;
|
|
145
166
|
/**
|
|
146
167
|
* Flag to control new Modular Home experience
|
|
147
168
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/embed/app.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EACI,WAAW,EAAa,UAAU,EAAc,cAAc,EACxE,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC;;GAEG;AAEH,oBAAY,IAAI;IACZ;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,MAAM,WAAW;IACjB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,UAAU,eAAe;IACzB;;OAEG;IACH,SAAS,cAAc;IACvB;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,MAAM,aAAa;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAc,SAAQ,UAAU;
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/embed/app.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EACI,WAAW,EAAa,UAAU,EAAc,cAAc,EACxE,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC;;GAEG;AAEH,oBAAY,IAAI;IACZ;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,MAAM,WAAW;IACjB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,UAAU,eAAe;IACzB;;OAEG;IACH,SAAS,cAAc;IACvB;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,MAAM,aAAa;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,UAAU,EAAE,aAAa,CAAC;IAClE;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;;;;OAQG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC;IACd;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;;OAKG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED;;;;GAIG;AACH,qBAAa,QAAS,SAAQ,OAAO;IACjC,SAAS,CAAC,UAAU,EAAE,aAAa,CAAC;IAEpC,OAAO,CAAC,aAAa,CAAU;IAE/B,SAAS,CAAC,kBAAkB,SAAc;gBAG9B,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa;IAS/D;;;OAGG;IACH,SAAS,CAAC,cAAc;IAyDxB;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAWpB;;;;;OAKG;IACH,SAAS,CAAC,kBAAkB,SAAU,cAAc,UAEnD;IAED,OAAO,CAAC,iBAAiB,CAGvB;IAEF,OAAO,CAAC,mCAAmC,CAOzC;IAEF;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAoBpB;;;;;OAKG;IACH,OAAO,CAAC,UAAU;IAalB;;;;;;;;;;;OAWG;IACI,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,UAAQ,GAAG,IAAI;IAsBpE;;;;;OAKG;IACI,MAAM,IAAI,QAAQ;CAO5B"}
|
package/lib/src/embed/app.js
CHANGED
|
@@ -88,13 +88,16 @@ export class AppEmbed extends V1Embed {
|
|
|
88
88
|
* embedded Liveboard or visualization.
|
|
89
89
|
*/
|
|
90
90
|
getEmbedParams() {
|
|
91
|
-
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideHomepageLeftNav = false, modularHomeExperience = false, } = this.viewConfig;
|
|
91
|
+
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader, showLiveboardTitle, showLiveboardDescription, hideHomepageLeftNav = false, modularHomeExperience = false, } = this.viewConfig;
|
|
92
92
|
let params = {};
|
|
93
93
|
params[Param.EmbedApp] = true;
|
|
94
94
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
95
95
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
96
96
|
params[Param.HideApplicationSwitcher] = !!hideApplicationSwitcher;
|
|
97
97
|
params[Param.HideOrgSwitcher] = !!hideOrgSwitcher;
|
|
98
|
+
params[Param.HideLiveboardHeader] = !!hideLiveboardHeader;
|
|
99
|
+
params[Param.ShowLiveboardTitle] = !!showLiveboardTitle;
|
|
100
|
+
params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
|
|
98
101
|
params = this.getBaseQueryParams(params);
|
|
99
102
|
if (fullHeight === true) {
|
|
100
103
|
params[Param.fullHeight] = true;
|