@thoughtspot/visual-embed-sdk 1.24.2 → 1.24.4
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 +13 -0
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +4 -3
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +19 -0
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/base.d.ts +4 -1
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +4 -1
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +14 -1
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +2 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +11 -0
- package/cjs/src/embed/liveboard.spec.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/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/ts-embed.spec.js +1 -1
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/types.d.ts +14 -2
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +11 -0
- 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 +2 -2
- package/cjs/src/utils.spec.js.map +1 -1
- package/dist/src/embed/app.d.ts +13 -0
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts +4 -1
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +14 -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/types.d.ts +14 -2
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +19 -6
- package/dist/tsembed-react.js +19 -6
- package/dist/tsembed.es.js +23 -7
- package/dist/tsembed.js +23 -7
- package/dist/visual-embed-sdk-react-full.d.ts +48 -7
- package/dist/visual-embed-sdk-react.d.ts +48 -7
- package/dist/visual-embed-sdk.d.ts +48 -7
- package/lib/package.json +1 -1
- package/lib/src/embed/app.d.ts +13 -0
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +4 -3
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +19 -0
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/base.d.ts +4 -1
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +4 -1
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +14 -1
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +2 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +11 -0
- package/lib/src/embed/liveboard.spec.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/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/ts-embed.spec.js +1 -1
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/types.d.ts +14 -2
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +11 -0
- 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 +2 -2
- package/lib/src/utils.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +48 -7
- package/package.json +1 -1
- package/src/embed/app.spec.ts +29 -0
- package/src/embed/app.ts +20 -5
- package/src/embed/base.ts +4 -1
- package/src/embed/liveboard.spec.ts +16 -0
- package/src/embed/liveboard.ts +18 -1
- package/src/embed/sage.ts +1 -1
- package/src/embed/search-bar.tsx +1 -0
- package/src/embed/search.ts +1 -1
- package/src/embed/ts-embed.spec.ts +1 -1
- package/src/types.ts +12 -0
- package/src/utils.spec.ts +2 -2
- package/src/utils.ts +1 -1
package/dist/tsembed.js
CHANGED
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
const filters = runtimeFilters.map((filter, valueIndex) => {
|
|
70
70
|
const index = valueIndex + 1;
|
|
71
71
|
const filterExpr = [];
|
|
72
|
-
filterExpr.push(`col${index}=${filter.columnName}`);
|
|
72
|
+
filterExpr.push(`col${index}=${encodeURIComponent(filter.columnName)}`);
|
|
73
73
|
filterExpr.push(`op${index}=${filter.operator}`);
|
|
74
74
|
filterExpr.push(filter.values.map((value) => `val${index}=${encodeURIComponent(value)}`).join('&'));
|
|
75
75
|
return filterExpr.join('&');
|
|
@@ -1788,6 +1788,7 @@
|
|
|
1788
1788
|
Param["HideHomepageLeftNav"] = "hideHomepageLeftNav";
|
|
1789
1789
|
Param["ModularHomeExperienceEnabled"] = "modularHomeExperience";
|
|
1790
1790
|
Param["PendoTrackingKey"] = "additionalPendoKey";
|
|
1791
|
+
Param["LiveboardHeaderSticky"] = "isLiveboardHeaderSticky";
|
|
1791
1792
|
})(Param || (Param = {}));
|
|
1792
1793
|
(function (Action) {
|
|
1793
1794
|
/**
|
|
@@ -2597,6 +2598,16 @@
|
|
|
2597
2598
|
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2598
2599
|
*/
|
|
2599
2600
|
Action["PersonalisedViewsDropdown"] = "personalisedViewsDropdown";
|
|
2601
|
+
/**
|
|
2602
|
+
* Action ID for Liveboard Users ( Recently Visited / social proof )
|
|
2603
|
+
*
|
|
2604
|
+
* @example
|
|
2605
|
+
* ```js
|
|
2606
|
+
* disabledActions: [Action.LiveboardUsers]
|
|
2607
|
+
* ```
|
|
2608
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2609
|
+
*/
|
|
2610
|
+
Action["LiveboardUsers"] = "liveboardUsers";
|
|
2600
2611
|
})(exports.Action || (exports.Action = {}));
|
|
2601
2612
|
(function (PrefetchFeatures) {
|
|
2602
2613
|
PrefetchFeatures["FullApp"] = "FullApp";
|
|
@@ -10893,6 +10904,7 @@
|
|
|
10893
10904
|
};
|
|
10894
10905
|
/**
|
|
10895
10906
|
* Imports TML representation of the metadata objects into ThoughtSpot.
|
|
10907
|
+
*
|
|
10896
10908
|
* @param data
|
|
10897
10909
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
10898
10910
|
* @group Global methods
|
|
@@ -10938,7 +10950,9 @@
|
|
|
10938
10950
|
});
|
|
10939
10951
|
};
|
|
10940
10952
|
/**
|
|
10941
|
-
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML
|
|
10953
|
+
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML
|
|
10954
|
+
* format.
|
|
10955
|
+
*
|
|
10942
10956
|
* @param data
|
|
10943
10957
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
10944
10958
|
* @group Global methods
|
|
@@ -11490,7 +11504,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
11490
11504
|
});
|
|
11491
11505
|
}
|
|
11492
11506
|
|
|
11493
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.24.
|
|
11507
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.24.4";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};
|
|
11494
11508
|
|
|
11495
11509
|
/**
|
|
11496
11510
|
* Copyright (c) 2022
|
|
@@ -12326,16 +12340,17 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
12326
12340
|
* embedded Liveboard or visualization.
|
|
12327
12341
|
*/
|
|
12328
12342
|
getEmbedParams() {
|
|
12329
|
-
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader, showLiveboardTitle, showLiveboardDescription, hideHomepageLeftNav = false, modularHomeExperience = false, } = this.viewConfig;
|
|
12343
|
+
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, } = this.viewConfig;
|
|
12330
12344
|
let params = {};
|
|
12331
12345
|
params[Param.EmbedApp] = true;
|
|
12332
12346
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
12333
12347
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
12334
12348
|
params[Param.HideApplicationSwitcher] = !!hideApplicationSwitcher;
|
|
12335
12349
|
params[Param.HideOrgSwitcher] = !!hideOrgSwitcher;
|
|
12336
|
-
params[Param.HideLiveboardHeader] =
|
|
12337
|
-
params[Param.ShowLiveboardTitle] =
|
|
12350
|
+
params[Param.HideLiveboardHeader] = hideLiveboardHeader;
|
|
12351
|
+
params[Param.ShowLiveboardTitle] = showLiveboardTitle;
|
|
12338
12352
|
params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
|
|
12353
|
+
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
12339
12354
|
params = this.getBaseQueryParams(params);
|
|
12340
12355
|
if (fullHeight === true) {
|
|
12341
12356
|
params[Param.fullHeight] = true;
|
|
@@ -12520,7 +12535,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
12520
12535
|
let params = {};
|
|
12521
12536
|
params[Param.EmbedApp] = true;
|
|
12522
12537
|
params = this.getBaseQueryParams(params);
|
|
12523
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, runtimeParameters, } = this.viewConfig;
|
|
12538
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, runtimeParameters, isLiveboardHeaderSticky = true, } = this.viewConfig;
|
|
12524
12539
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
12525
12540
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
12526
12541
|
if (fullHeight === true) {
|
|
@@ -12557,6 +12572,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
12557
12572
|
if (showLiveboardTitle) {
|
|
12558
12573
|
params[Param.ShowLiveboardTitle] = showLiveboardTitle;
|
|
12559
12574
|
}
|
|
12575
|
+
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
12560
12576
|
let queryParams = getQueryParamString(params, true);
|
|
12561
12577
|
const parameterQuery = getRuntimeParameters(runtimeParameters || []);
|
|
12562
12578
|
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' | 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs'> {
|
|
127
|
+
export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' | 'showAlerts' | 'dataPanelV2' | 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs' | 'reorderedHomepageModules'> {
|
|
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 Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs'> {
|
|
202
|
+
export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs' | 'reorderedHomepageModules'> {
|
|
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 Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs'> {
|
|
300
|
+
export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs' | 'reorderedHomepageModules'> {
|
|
301
301
|
/**
|
|
302
302
|
* If set to true, the data sources panel is collapsed on load,
|
|
303
303
|
* but can be expanded manually.
|
|
@@ -570,6 +570,19 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
570
570
|
* @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
|
|
571
571
|
*/
|
|
572
572
|
modularHomeExperience?: boolean;
|
|
573
|
+
/**
|
|
574
|
+
* Boolean to control if Liveboard header is sticky or not.
|
|
575
|
+
*
|
|
576
|
+
* @example
|
|
577
|
+
* ```js
|
|
578
|
+
* const embed = new AppEmbed('#embed', {
|
|
579
|
+
* ... // other app view config
|
|
580
|
+
* isLiveboardHeaderSticky: true,
|
|
581
|
+
* });
|
|
582
|
+
* ```
|
|
583
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
584
|
+
*/
|
|
585
|
+
isLiveboardHeaderSticky?: boolean;
|
|
573
586
|
}
|
|
574
587
|
/**
|
|
575
588
|
* Embeds full ThoughtSpot experience in a host application.
|
|
@@ -629,7 +642,7 @@ export declare class AppEmbed extends V1Embed {
|
|
|
629
642
|
*
|
|
630
643
|
* @group Embed components
|
|
631
644
|
*/
|
|
632
|
-
export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems'> {
|
|
645
|
+
export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'reorderedHomepageModules'> {
|
|
633
646
|
/**
|
|
634
647
|
* If set to true, the embedded object container dynamically resizes
|
|
635
648
|
* according to the height of the Liveboard.
|
|
@@ -731,6 +744,19 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
731
744
|
* The list of parameter override to apply to a Liveboard.
|
|
732
745
|
*/
|
|
733
746
|
runtimeParameters?: RuntimeParameter[];
|
|
747
|
+
/**
|
|
748
|
+
* Boolean to control if Liveboard header is sticky or not.
|
|
749
|
+
*
|
|
750
|
+
* @example
|
|
751
|
+
* ```js
|
|
752
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
753
|
+
* ... // other liveboard view config
|
|
754
|
+
* isLiveboardHeaderSticky: true,
|
|
755
|
+
* });
|
|
756
|
+
* ```
|
|
757
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
758
|
+
*/
|
|
759
|
+
isLiveboardHeaderSticky?: boolean;
|
|
734
760
|
}
|
|
735
761
|
/**
|
|
736
762
|
* Embed a ThoughtSpot Liveboard or a Thoughtspot visualization. When rendered it already
|
|
@@ -884,13 +910,16 @@ export declare const logout: (doNotDisableAutoLogin?: boolean) => Promise<boolea
|
|
|
884
910
|
export declare const renderInQueue: (fn: (next?: (val?: any) => void) => Promise<any>) => Promise<any>;
|
|
885
911
|
/**
|
|
886
912
|
* Imports TML representation of the metadata objects into ThoughtSpot.
|
|
913
|
+
*
|
|
887
914
|
* @param data
|
|
888
915
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
889
916
|
* @group Global methods
|
|
890
917
|
*/
|
|
891
918
|
export declare const executeTML: (data: executeTMLInput) => Promise<any>;
|
|
892
919
|
/**
|
|
893
|
-
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML
|
|
920
|
+
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML
|
|
921
|
+
* format.
|
|
922
|
+
*
|
|
894
923
|
* @param data
|
|
895
924
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
896
925
|
* @group Global methods
|
|
@@ -1797,6 +1826,7 @@ export interface ViewConfig {
|
|
|
1797
1826
|
/**
|
|
1798
1827
|
* reordering the home page modules
|
|
1799
1828
|
* eg: reorderedHomepageModules = [HomepageModule.MyLibrary, HomepageModule.Watchlist]
|
|
1829
|
+
*
|
|
1800
1830
|
* @version SDK: 1.28.0 | Thoughtspot: 9.9.0.cl
|
|
1801
1831
|
*/
|
|
1802
1832
|
reorderedHomepageModules?: HomepageModule[];
|
|
@@ -3299,7 +3329,8 @@ export declare enum Param {
|
|
|
3299
3329
|
Query = "query",
|
|
3300
3330
|
HideHomepageLeftNav = "hideHomepageLeftNav",
|
|
3301
3331
|
ModularHomeExperienceEnabled = "modularHomeExperience",
|
|
3302
|
-
PendoTrackingKey = "additionalPendoKey"
|
|
3332
|
+
PendoTrackingKey = "additionalPendoKey",
|
|
3333
|
+
LiveboardHeaderSticky = "isLiveboardHeaderSticky"
|
|
3303
3334
|
}
|
|
3304
3335
|
/**
|
|
3305
3336
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -4135,7 +4166,17 @@ export declare enum Action {
|
|
|
4135
4166
|
* ```
|
|
4136
4167
|
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
4137
4168
|
*/
|
|
4138
|
-
PersonalisedViewsDropdown = "personalisedViewsDropdown"
|
|
4169
|
+
PersonalisedViewsDropdown = "personalisedViewsDropdown",
|
|
4170
|
+
/**
|
|
4171
|
+
* Action ID for Liveboard Users ( Recently Visited / social proof )
|
|
4172
|
+
*
|
|
4173
|
+
* @example
|
|
4174
|
+
* ```js
|
|
4175
|
+
* disabledActions: [Action.LiveboardUsers]
|
|
4176
|
+
* ```
|
|
4177
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
4178
|
+
*/
|
|
4179
|
+
LiveboardUsers = "liveboardUsers"
|
|
4139
4180
|
}
|
|
4140
4181
|
export interface AnswerServiceType {
|
|
4141
4182
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -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' | 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs'> {
|
|
116
|
+
export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' | 'showAlerts' | 'dataPanelV2' | 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs' | 'reorderedHomepageModules'> {
|
|
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 Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs'> {
|
|
191
|
+
export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs' | 'reorderedHomepageModules'> {
|
|
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 Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs'> {
|
|
289
|
+
export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs' | 'reorderedHomepageModules'> {
|
|
290
290
|
/**
|
|
291
291
|
* If set to true, the data sources panel is collapsed on load,
|
|
292
292
|
* but can be expanded manually.
|
|
@@ -559,6 +559,19 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
559
559
|
* @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
|
|
560
560
|
*/
|
|
561
561
|
modularHomeExperience?: boolean;
|
|
562
|
+
/**
|
|
563
|
+
* Boolean to control if Liveboard header is sticky or not.
|
|
564
|
+
*
|
|
565
|
+
* @example
|
|
566
|
+
* ```js
|
|
567
|
+
* const embed = new AppEmbed('#embed', {
|
|
568
|
+
* ... // other app view config
|
|
569
|
+
* isLiveboardHeaderSticky: true,
|
|
570
|
+
* });
|
|
571
|
+
* ```
|
|
572
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
573
|
+
*/
|
|
574
|
+
isLiveboardHeaderSticky?: boolean;
|
|
562
575
|
}
|
|
563
576
|
/**
|
|
564
577
|
* Embeds full ThoughtSpot experience in a host application.
|
|
@@ -618,7 +631,7 @@ export declare class AppEmbed extends V1Embed {
|
|
|
618
631
|
*
|
|
619
632
|
* @group Embed components
|
|
620
633
|
*/
|
|
621
|
-
export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems'> {
|
|
634
|
+
export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'reorderedHomepageModules'> {
|
|
622
635
|
/**
|
|
623
636
|
* If set to true, the embedded object container dynamically resizes
|
|
624
637
|
* according to the height of the Liveboard.
|
|
@@ -720,6 +733,19 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
720
733
|
* The list of parameter override to apply to a Liveboard.
|
|
721
734
|
*/
|
|
722
735
|
runtimeParameters?: RuntimeParameter[];
|
|
736
|
+
/**
|
|
737
|
+
* Boolean to control if Liveboard header is sticky or not.
|
|
738
|
+
*
|
|
739
|
+
* @example
|
|
740
|
+
* ```js
|
|
741
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
742
|
+
* ... // other liveboard view config
|
|
743
|
+
* isLiveboardHeaderSticky: true,
|
|
744
|
+
* });
|
|
745
|
+
* ```
|
|
746
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
747
|
+
*/
|
|
748
|
+
isLiveboardHeaderSticky?: boolean;
|
|
723
749
|
}
|
|
724
750
|
/**
|
|
725
751
|
* Embed a ThoughtSpot Liveboard or a Thoughtspot visualization. When rendered it already
|
|
@@ -1509,6 +1535,7 @@ export interface ViewConfig {
|
|
|
1509
1535
|
/**
|
|
1510
1536
|
* reordering the home page modules
|
|
1511
1537
|
* eg: reorderedHomepageModules = [HomepageModule.MyLibrary, HomepageModule.Watchlist]
|
|
1538
|
+
*
|
|
1512
1539
|
* @version SDK: 1.28.0 | Thoughtspot: 9.9.0.cl
|
|
1513
1540
|
*/
|
|
1514
1541
|
reorderedHomepageModules?: HomepageModule[];
|
|
@@ -3011,7 +3038,8 @@ export declare enum Param {
|
|
|
3011
3038
|
Query = "query",
|
|
3012
3039
|
HideHomepageLeftNav = "hideHomepageLeftNav",
|
|
3013
3040
|
ModularHomeExperienceEnabled = "modularHomeExperience",
|
|
3014
|
-
PendoTrackingKey = "additionalPendoKey"
|
|
3041
|
+
PendoTrackingKey = "additionalPendoKey",
|
|
3042
|
+
LiveboardHeaderSticky = "isLiveboardHeaderSticky"
|
|
3015
3043
|
}
|
|
3016
3044
|
/**
|
|
3017
3045
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -3847,7 +3875,17 @@ export declare enum Action {
|
|
|
3847
3875
|
* ```
|
|
3848
3876
|
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
3849
3877
|
*/
|
|
3850
|
-
PersonalisedViewsDropdown = "personalisedViewsDropdown"
|
|
3878
|
+
PersonalisedViewsDropdown = "personalisedViewsDropdown",
|
|
3879
|
+
/**
|
|
3880
|
+
* Action ID for Liveboard Users ( Recently Visited / social proof )
|
|
3881
|
+
*
|
|
3882
|
+
* @example
|
|
3883
|
+
* ```js
|
|
3884
|
+
* disabledActions: [Action.LiveboardUsers]
|
|
3885
|
+
* ```
|
|
3886
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
3887
|
+
*/
|
|
3888
|
+
LiveboardUsers = "liveboardUsers"
|
|
3851
3889
|
}
|
|
3852
3890
|
export interface AnswerServiceType {
|
|
3853
3891
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -4217,13 +4255,16 @@ export declare const logout: (doNotDisableAutoLogin?: boolean) => Promise<boolea
|
|
|
4217
4255
|
export declare const renderInQueue: (fn: (next?: (val?: any) => void) => Promise<any>) => Promise<any>;
|
|
4218
4256
|
/**
|
|
4219
4257
|
* Imports TML representation of the metadata objects into ThoughtSpot.
|
|
4258
|
+
*
|
|
4220
4259
|
* @param data
|
|
4221
4260
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
4222
4261
|
* @group Global methods
|
|
4223
4262
|
*/
|
|
4224
4263
|
export declare const executeTML: (data: executeTMLInput) => Promise<any>;
|
|
4225
4264
|
/**
|
|
4226
|
-
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML
|
|
4265
|
+
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML
|
|
4266
|
+
* format.
|
|
4267
|
+
*
|
|
4227
4268
|
* @param data
|
|
4228
4269
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
4229
4270
|
* @group Global methods
|
|
@@ -185,6 +185,19 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
185
185
|
* @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
|
|
186
186
|
*/
|
|
187
187
|
modularHomeExperience?: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Boolean to control if Liveboard header is sticky or not.
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* ```js
|
|
193
|
+
* const embed = new AppEmbed('#embed', {
|
|
194
|
+
* ... // other app view config
|
|
195
|
+
* isLiveboardHeaderSticky: true,
|
|
196
|
+
* });
|
|
197
|
+
* ```
|
|
198
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
199
|
+
*/
|
|
200
|
+
isLiveboardHeaderSticky?: boolean;
|
|
188
201
|
}
|
|
189
202
|
/**
|
|
190
203
|
* Embeds full ThoughtSpot experience in a host application.
|
|
@@ -317,13 +330,16 @@ export const logout: (doNotDisableAutoLogin?: boolean) => Promise<boolean>;
|
|
|
317
330
|
export const renderInQueue: (fn: (next?: (val?: any) => void) => Promise<any>) => Promise<any>;
|
|
318
331
|
/**
|
|
319
332
|
* Imports TML representation of the metadata objects into ThoughtSpot.
|
|
333
|
+
*
|
|
320
334
|
* @param data
|
|
321
335
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
322
336
|
* @group Global methods
|
|
323
337
|
*/
|
|
324
338
|
export const executeTML: (data: executeTMLInput) => Promise<any>;
|
|
325
339
|
/**
|
|
326
|
-
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML
|
|
340
|
+
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML
|
|
341
|
+
* format.
|
|
342
|
+
*
|
|
327
343
|
* @param data
|
|
328
344
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
329
345
|
* @group Global methods
|
|
@@ -349,7 +365,7 @@ export function reset(): void;
|
|
|
349
365
|
*
|
|
350
366
|
* @group Embed components
|
|
351
367
|
*/
|
|
352
|
-
export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems'> {
|
|
368
|
+
export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'reorderedHomepageModules'> {
|
|
353
369
|
/**
|
|
354
370
|
* If set to true, the embedded object container dynamically resizes
|
|
355
371
|
* according to the height of the Liveboard.
|
|
@@ -451,6 +467,19 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
451
467
|
* The list of parameter override to apply to a Liveboard.
|
|
452
468
|
*/
|
|
453
469
|
runtimeParameters?: RuntimeParameter[];
|
|
470
|
+
/**
|
|
471
|
+
* Boolean to control if Liveboard header is sticky or not.
|
|
472
|
+
*
|
|
473
|
+
* @example
|
|
474
|
+
* ```js
|
|
475
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
476
|
+
* ... // other liveboard view config
|
|
477
|
+
* isLiveboardHeaderSticky: true,
|
|
478
|
+
* });
|
|
479
|
+
* ```
|
|
480
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
481
|
+
*/
|
|
482
|
+
isLiveboardHeaderSticky?: boolean;
|
|
454
483
|
}
|
|
455
484
|
/**
|
|
456
485
|
* Embed a ThoughtSpot Liveboard or a Thoughtspot visualization. When rendered it already
|
|
@@ -527,7 +556,7 @@ export interface SearchOptions {
|
|
|
527
556
|
*
|
|
528
557
|
* @group Embed components
|
|
529
558
|
*/
|
|
530
|
-
export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs'> {
|
|
559
|
+
export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs' | 'reorderedHomepageModules'> {
|
|
531
560
|
/**
|
|
532
561
|
* If set to true, the data sources panel is collapsed on load,
|
|
533
562
|
* but can be expanded manually.
|
|
@@ -633,7 +662,7 @@ export class SearchEmbed extends TsEmbed {
|
|
|
633
662
|
/**
|
|
634
663
|
* @group Embed components
|
|
635
664
|
*/
|
|
636
|
-
export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' | 'showAlerts' | 'dataPanelV2' | 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs'> {
|
|
665
|
+
export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' | 'showAlerts' | 'dataPanelV2' | 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs' | 'reorderedHomepageModules'> {
|
|
637
666
|
/**
|
|
638
667
|
* The array of data source GUIDs to set on load.
|
|
639
668
|
* Only a single dataSource supported currently.
|
|
@@ -1573,6 +1602,7 @@ export interface ViewConfig {
|
|
|
1573
1602
|
/**
|
|
1574
1603
|
* reordering the home page modules
|
|
1575
1604
|
* eg: reorderedHomepageModules = [HomepageModule.MyLibrary, HomepageModule.Watchlist]
|
|
1605
|
+
*
|
|
1576
1606
|
* @version SDK: 1.28.0 | Thoughtspot: 9.9.0.cl
|
|
1577
1607
|
*/
|
|
1578
1608
|
reorderedHomepageModules?: HomepageModule[];
|
|
@@ -3075,7 +3105,8 @@ export enum Param {
|
|
|
3075
3105
|
Query = "query",
|
|
3076
3106
|
HideHomepageLeftNav = "hideHomepageLeftNav",
|
|
3077
3107
|
ModularHomeExperienceEnabled = "modularHomeExperience",
|
|
3078
|
-
PendoTrackingKey = "additionalPendoKey"
|
|
3108
|
+
PendoTrackingKey = "additionalPendoKey",
|
|
3109
|
+
LiveboardHeaderSticky = "isLiveboardHeaderSticky"
|
|
3079
3110
|
}
|
|
3080
3111
|
/**
|
|
3081
3112
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -3911,7 +3942,17 @@ export enum Action {
|
|
|
3911
3942
|
* ```
|
|
3912
3943
|
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
3913
3944
|
*/
|
|
3914
|
-
PersonalisedViewsDropdown = "personalisedViewsDropdown"
|
|
3945
|
+
PersonalisedViewsDropdown = "personalisedViewsDropdown",
|
|
3946
|
+
/**
|
|
3947
|
+
* Action ID for Liveboard Users ( Recently Visited / social proof )
|
|
3948
|
+
*
|
|
3949
|
+
* @example
|
|
3950
|
+
* ```js
|
|
3951
|
+
* disabledActions: [Action.LiveboardUsers]
|
|
3952
|
+
* ```
|
|
3953
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
3954
|
+
*/
|
|
3955
|
+
LiveboardUsers = "liveboardUsers"
|
|
3915
3956
|
}
|
|
3916
3957
|
export interface AnswerServiceType {
|
|
3917
3958
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -4335,7 +4376,7 @@ export interface SearchOptions {
|
|
|
4335
4376
|
* @version: SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
|
|
4336
4377
|
* @group Embed components
|
|
4337
4378
|
*/
|
|
4338
|
-
export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs'> {
|
|
4379
|
+
export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs' | 'reorderedHomepageModules'> {
|
|
4339
4380
|
/**
|
|
4340
4381
|
* If set to true, a list of liveboard and answers related
|
|
4341
4382
|
* to the natural language search will be shown below the
|
package/lib/package.json
CHANGED
package/lib/src/embed/app.d.ts
CHANGED
|
@@ -170,6 +170,19 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
170
170
|
* @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
|
|
171
171
|
*/
|
|
172
172
|
modularHomeExperience?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Boolean to control if Liveboard header is sticky or not.
|
|
175
|
+
*
|
|
176
|
+
* @example
|
|
177
|
+
* ```js
|
|
178
|
+
* const embed = new AppEmbed('#embed', {
|
|
179
|
+
* ... // other app view config
|
|
180
|
+
* isLiveboardHeaderSticky: true,
|
|
181
|
+
* });
|
|
182
|
+
* ```
|
|
183
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
184
|
+
*/
|
|
185
|
+
isLiveboardHeaderSticky?: boolean;
|
|
173
186
|
}
|
|
174
187
|
/**
|
|
175
188
|
* Embeds full ThoughtSpot experience in a host application.
|
|
@@ -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;;GA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,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;IAChC;;;;;;;;;;;OAWG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACrC;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;IA2DxB;;;;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,16 +88,17 @@ 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, hideLiveboardHeader, showLiveboardTitle, showLiveboardDescription, hideHomepageLeftNav = false, modularHomeExperience = false, } = this.viewConfig;
|
|
91
|
+
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, } = 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] =
|
|
99
|
-
params[Param.ShowLiveboardTitle] =
|
|
98
|
+
params[Param.HideLiveboardHeader] = hideLiveboardHeader;
|
|
99
|
+
params[Param.ShowLiveboardTitle] = showLiveboardTitle;
|
|
100
100
|
params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
|
|
101
|
+
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
101
102
|
params = this.getBaseQueryParams(params);
|
|
102
103
|
if (fullHeight === true) {
|
|
103
104
|
params[Param.fullHeight] = true;
|
package/lib/src/embed/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/embed/app.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EACH,KAAK,EAAe,SAAS,EAAc,UAAU,GACxD,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC;;GAEG;AACH,qCAAqC;AACrC,MAAM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S,GAAG,SAAS,CAAC;YAC5B,MAAM,WAAW,GAAG,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC;YACpE,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,WAAW,IAAI,IAAI,CAAC,OAAO,CAC9E,UAAU,EACV,EAAE,CACL,EAAE,CAAC;SACP;IACL,CAAC;IAED;;;;;OAKG;IACI,MAAM;QACT,KAAK,CAAC,MAAM,EAAE,CAAC;QACf,MAAM,GAAG,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAChC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QAExB,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ"}
|
|
@@ -215,6 +215,25 @@ describe('App embed tests', () => {
|
|
|
215
215
|
expectUrlMatchesWithParams(getIFrameSrc(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&enableDataPanelV2=true${defaultParams}${defaultParamsPost}#/home`);
|
|
216
216
|
});
|
|
217
217
|
});
|
|
218
|
+
test('Should add isLiveboardHeaderSticky flag to the iframe src', async () => {
|
|
219
|
+
const appEmbed = new AppEmbed(getRootEl(), {
|
|
220
|
+
...defaultViewConfig,
|
|
221
|
+
isLiveboardHeaderSticky: false,
|
|
222
|
+
});
|
|
223
|
+
appEmbed.render();
|
|
224
|
+
await executeAfterWait(() => {
|
|
225
|
+
expectUrlMatchesWithParams(getIFrameSrc(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&isLiveboardHeaderSticky=false${defaultParams}${defaultParamsPost}#/home`);
|
|
226
|
+
});
|
|
227
|
+
});
|
|
228
|
+
test('Should add default values of flags to the iframe src', async () => {
|
|
229
|
+
const appEmbed = new AppEmbed(getRootEl(), {
|
|
230
|
+
...defaultViewConfig,
|
|
231
|
+
});
|
|
232
|
+
appEmbed.render();
|
|
233
|
+
await executeAfterWait(() => {
|
|
234
|
+
expectUrlMatchesWithParams(getIFrameSrc(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&isLiveboardHeaderSticky=true&hideLiveboardHeader=false&showLiveboardDescription=true&showLiveboardTitle=true${defaultParams}${defaultParamsPost}#/home`);
|
|
235
|
+
});
|
|
236
|
+
});
|
|
218
237
|
test('Should add modularHomeExperience flag to the iframe src', async () => {
|
|
219
238
|
const appEmbed = new AppEmbed(getRootEl(), {
|
|
220
239
|
...defaultViewConfig,
|