@thoughtspot/visual-embed-sdk 1.33.9 → 1.33.10
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/liveboard.d.ts +36 -0
- 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/liveboard.spec.js +13 -0
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +5 -2
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.d.ts +2 -1
- package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +158 -0
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/types.d.ts +21 -2
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +12 -0
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-BXczdQc7.js → index-HiSgAoIA.js} +1 -1
- package/dist/src/embed/liveboard.d.ts +36 -0
- package/dist/src/embed/liveboard.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 +2 -1
- package/dist/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/dist/src/types.d.ts +21 -2
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +30 -6
- package/dist/tsembed-react.js +29 -5
- package/dist/tsembed.es.js +30 -6
- package/dist/tsembed.js +29 -5
- package/dist/visual-embed-sdk-react-full.d.ts +57 -2
- package/dist/visual-embed-sdk-react.d.ts +57 -2
- package/dist/visual-embed-sdk.d.ts +57 -2
- package/lib/package.json +1 -1
- package/lib/src/embed/liveboard.d.ts +36 -0
- 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/liveboard.spec.js +13 -0
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +5 -2
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.d.ts +2 -1
- package/lib/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +159 -2
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/types.d.ts +21 -2
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +12 -0
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +57 -2
- package/package.json +1 -1
- package/src/embed/liveboard.spec.ts +17 -0
- package/src/embed/liveboard.ts +54 -0
- package/src/embed/ts-embed.spec.ts +219 -0
- package/src/embed/ts-embed.ts +6 -1
- package/src/types.ts +19 -0
package/dist/tsembed.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.33.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.33.10 */
|
|
2
2
|
function _mergeNamespaces(n, m) {
|
|
3
3
|
m.forEach(function (e) {
|
|
4
4
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -2542,6 +2542,14 @@ var HostEvent;
|
|
|
2542
2542
|
* @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
|
|
2543
2543
|
*/
|
|
2544
2544
|
HostEvent["GetParameters"] = "GetParameters";
|
|
2545
|
+
/**
|
|
2546
|
+
* Triggers update of persoanlised view for a liveboard
|
|
2547
|
+
* ```js
|
|
2548
|
+
* liveboardEmbed.trigger(HostEvent.UpdatePersonalisedView, {viewId: '1234'})
|
|
2549
|
+
* ```
|
|
2550
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
2551
|
+
*/
|
|
2552
|
+
HostEvent["UpdatePersonalisedView"] = "UpdatePersonalisedView";
|
|
2545
2553
|
})(HostEvent || (HostEvent = {}));
|
|
2546
2554
|
/**
|
|
2547
2555
|
* The different visual modes that the data sources panel within
|
|
@@ -2663,6 +2671,10 @@ var Param;
|
|
|
2663
2671
|
Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
|
|
2664
2672
|
Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
|
|
2665
2673
|
Param["OverrideOrgId"] = "orgId";
|
|
2674
|
+
Param["EnableFlipTooltipToContextMenu"] = "flipTooltipToContextMenuEnabled";
|
|
2675
|
+
Param["OauthPollingInterval"] = "oAuthPollingInterval";
|
|
2676
|
+
Param["IsForceRedirect"] = "isForceRedirect";
|
|
2677
|
+
Param["DataSourceId"] = "dataSourceId";
|
|
2666
2678
|
})(Param || (Param = {}));
|
|
2667
2679
|
/**
|
|
2668
2680
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -7012,7 +7024,7 @@ class AnswerService {
|
|
|
7012
7024
|
async getTML() {
|
|
7013
7025
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
7014
7026
|
const edoc = object[0].edoc;
|
|
7015
|
-
const YAML = await import('./index-
|
|
7027
|
+
const YAML = await import('./index-HiSgAoIA.js');
|
|
7016
7028
|
const parsedDoc = YAML.parse(edoc);
|
|
7017
7029
|
return {
|
|
7018
7030
|
answer: {
|
|
@@ -14754,7 +14766,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
14754
14766
|
});
|
|
14755
14767
|
}
|
|
14756
14768
|
|
|
14757
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.
|
|
14769
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.10";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",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":"^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",crypto:"^1.0.1","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","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"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","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"30 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};
|
|
14758
14770
|
|
|
14759
14771
|
/**
|
|
14760
14772
|
* Copyright (c) 2022
|
|
@@ -15061,12 +15073,15 @@ class TsEmbed {
|
|
|
15061
15073
|
if (this.embedConfig.currencyFormat) {
|
|
15062
15074
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
15063
15075
|
}
|
|
15064
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, } = this.viewConfig;
|
|
15076
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, enableFlipTooltipToContextMenu = false, } = this.viewConfig;
|
|
15065
15077
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
15066
15078
|
const additionalFlags = {
|
|
15067
15079
|
...additionalFlagsFromInit,
|
|
15068
15080
|
...additionalFlagsFromView,
|
|
15069
15081
|
};
|
|
15082
|
+
if (enableFlipTooltipToContextMenu) {
|
|
15083
|
+
queryParams[Param.EnableFlipTooltipToContextMenu] = enableFlipTooltipToContextMenu;
|
|
15084
|
+
}
|
|
15070
15085
|
if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
|
|
15071
15086
|
this.handleError('You cannot have both hidden actions and visible actions');
|
|
15072
15087
|
return queryParams;
|
|
@@ -15174,7 +15189,7 @@ class TsEmbed {
|
|
|
15174
15189
|
iFrame.mozallowfullscreen = true;
|
|
15175
15190
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
15176
15191
|
// @ts-ignore
|
|
15177
|
-
iFrame.allow = 'clipboard-read; clipboard-write fullscreen';
|
|
15192
|
+
iFrame.allow = 'clipboard-read; clipboard-write; fullscreen;';
|
|
15178
15193
|
const { height: frameHeight, width: frameWidth, ...restParams } = this.viewConfig.frameParams || {};
|
|
15179
15194
|
const width = getCssDimension(frameWidth || DEFAULT_EMBED_WIDTH);
|
|
15180
15195
|
const height = getCssDimension(frameHeight || DEFAULT_EMBED_HEIGHT);
|
|
@@ -16202,7 +16217,7 @@ class LiveboardEmbed extends V1Embed {
|
|
|
16202
16217
|
getEmbedParams() {
|
|
16203
16218
|
let params = {};
|
|
16204
16219
|
params = this.getBaseQueryParams(params);
|
|
16205
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, } = this.viewConfig;
|
|
16220
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, } = this.viewConfig;
|
|
16206
16221
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
16207
16222
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
16208
16223
|
if (fullHeight === true) {
|
|
@@ -16245,6 +16260,15 @@ class LiveboardEmbed extends V1Embed {
|
|
|
16245
16260
|
if (enableAskSage) {
|
|
16246
16261
|
params[Param.enableAskSage] = enableAskSage;
|
|
16247
16262
|
}
|
|
16263
|
+
if (oAuthPollingInterval !== undefined) {
|
|
16264
|
+
params[Param.OauthPollingInterval] = oAuthPollingInterval;
|
|
16265
|
+
}
|
|
16266
|
+
if (isForceRedirect) {
|
|
16267
|
+
params[Param.IsForceRedirect] = isForceRedirect;
|
|
16268
|
+
}
|
|
16269
|
+
if (dataSourceId !== undefined) {
|
|
16270
|
+
params[Param.DataSourceId] = dataSourceId;
|
|
16271
|
+
}
|
|
16248
16272
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
16249
16273
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
16250
16274
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
package/dist/tsembed.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.33.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.33.10 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -2548,6 +2548,14 @@
|
|
|
2548
2548
|
* @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
|
|
2549
2549
|
*/
|
|
2550
2550
|
HostEvent["GetParameters"] = "GetParameters";
|
|
2551
|
+
/**
|
|
2552
|
+
* Triggers update of persoanlised view for a liveboard
|
|
2553
|
+
* ```js
|
|
2554
|
+
* liveboardEmbed.trigger(HostEvent.UpdatePersonalisedView, {viewId: '1234'})
|
|
2555
|
+
* ```
|
|
2556
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
2557
|
+
*/
|
|
2558
|
+
HostEvent["UpdatePersonalisedView"] = "UpdatePersonalisedView";
|
|
2551
2559
|
})(exports.HostEvent || (exports.HostEvent = {}));
|
|
2552
2560
|
/**
|
|
2553
2561
|
* The different visual modes that the data sources panel within
|
|
@@ -2669,6 +2677,10 @@
|
|
|
2669
2677
|
Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
|
|
2670
2678
|
Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
|
|
2671
2679
|
Param["OverrideOrgId"] = "orgId";
|
|
2680
|
+
Param["EnableFlipTooltipToContextMenu"] = "flipTooltipToContextMenuEnabled";
|
|
2681
|
+
Param["OauthPollingInterval"] = "oAuthPollingInterval";
|
|
2682
|
+
Param["IsForceRedirect"] = "isForceRedirect";
|
|
2683
|
+
Param["DataSourceId"] = "dataSourceId";
|
|
2672
2684
|
})(Param || (Param = {}));
|
|
2673
2685
|
/**
|
|
2674
2686
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -14760,7 +14772,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14760
14772
|
});
|
|
14761
14773
|
}
|
|
14762
14774
|
|
|
14763
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.
|
|
14775
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.10";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",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":"^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",crypto:"^1.0.1","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","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"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","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"30 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};
|
|
14764
14776
|
|
|
14765
14777
|
/**
|
|
14766
14778
|
* Copyright (c) 2022
|
|
@@ -15067,12 +15079,15 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15067
15079
|
if (this.embedConfig.currencyFormat) {
|
|
15068
15080
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
15069
15081
|
}
|
|
15070
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, } = this.viewConfig;
|
|
15082
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, enableFlipTooltipToContextMenu = false, } = this.viewConfig;
|
|
15071
15083
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
15072
15084
|
const additionalFlags = {
|
|
15073
15085
|
...additionalFlagsFromInit,
|
|
15074
15086
|
...additionalFlagsFromView,
|
|
15075
15087
|
};
|
|
15088
|
+
if (enableFlipTooltipToContextMenu) {
|
|
15089
|
+
queryParams[Param.EnableFlipTooltipToContextMenu] = enableFlipTooltipToContextMenu;
|
|
15090
|
+
}
|
|
15076
15091
|
if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
|
|
15077
15092
|
this.handleError('You cannot have both hidden actions and visible actions');
|
|
15078
15093
|
return queryParams;
|
|
@@ -15180,7 +15195,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15180
15195
|
iFrame.mozallowfullscreen = true;
|
|
15181
15196
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
15182
15197
|
// @ts-ignore
|
|
15183
|
-
iFrame.allow = 'clipboard-read; clipboard-write fullscreen';
|
|
15198
|
+
iFrame.allow = 'clipboard-read; clipboard-write; fullscreen;';
|
|
15184
15199
|
const { height: frameHeight, width: frameWidth, ...restParams } = this.viewConfig.frameParams || {};
|
|
15185
15200
|
const width = getCssDimension(frameWidth || DEFAULT_EMBED_WIDTH);
|
|
15186
15201
|
const height = getCssDimension(frameHeight || DEFAULT_EMBED_HEIGHT);
|
|
@@ -16208,7 +16223,7 @@ query GetEurekaVizSnapshots(
|
|
|
16208
16223
|
getEmbedParams() {
|
|
16209
16224
|
let params = {};
|
|
16210
16225
|
params = this.getBaseQueryParams(params);
|
|
16211
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, } = this.viewConfig;
|
|
16226
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, } = this.viewConfig;
|
|
16212
16227
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
16213
16228
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
16214
16229
|
if (fullHeight === true) {
|
|
@@ -16251,6 +16266,15 @@ query GetEurekaVizSnapshots(
|
|
|
16251
16266
|
if (enableAskSage) {
|
|
16252
16267
|
params[Param.enableAskSage] = enableAskSage;
|
|
16253
16268
|
}
|
|
16269
|
+
if (oAuthPollingInterval !== undefined) {
|
|
16270
|
+
params[Param.OauthPollingInterval] = oAuthPollingInterval;
|
|
16271
|
+
}
|
|
16272
|
+
if (isForceRedirect) {
|
|
16273
|
+
params[Param.IsForceRedirect] = isForceRedirect;
|
|
16274
|
+
}
|
|
16275
|
+
if (dataSourceId !== undefined) {
|
|
16276
|
+
params[Param.DataSourceId] = dataSourceId;
|
|
16277
|
+
}
|
|
16254
16278
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
16255
16279
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
16256
16280
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
@@ -1574,6 +1574,42 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
1574
1574
|
* ```
|
|
1575
1575
|
*/
|
|
1576
1576
|
hideIrrelevantChipsInLiveboardTabs?: boolean;
|
|
1577
|
+
/**
|
|
1578
|
+
* The Liveboard to run on regular intervals to fetch the cdw token.
|
|
1579
|
+
* @hidden
|
|
1580
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
|
|
1581
|
+
* @example
|
|
1582
|
+
* ```js
|
|
1583
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1584
|
+
* ... // other options
|
|
1585
|
+
* oAuthPollingInterval: value in milliseconds,
|
|
1586
|
+
* })
|
|
1587
|
+
*/
|
|
1588
|
+
oAuthPollingInterval?: number;
|
|
1589
|
+
/**
|
|
1590
|
+
* The Liveboard is set to force a token fetch during the initial load.
|
|
1591
|
+
* @hidden
|
|
1592
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
|
|
1593
|
+
* @example
|
|
1594
|
+
* ```js
|
|
1595
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1596
|
+
* ... // other options
|
|
1597
|
+
* isForceRedirect: false,
|
|
1598
|
+
* })
|
|
1599
|
+
*/
|
|
1600
|
+
isForceRedirect?: boolean;
|
|
1601
|
+
/**
|
|
1602
|
+
* The source connection ID for authentication.
|
|
1603
|
+
* @hidden
|
|
1604
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
|
|
1605
|
+
* @example
|
|
1606
|
+
* ```js
|
|
1607
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1608
|
+
* ... // other options
|
|
1609
|
+
* dataSourceId: '',
|
|
1610
|
+
* })
|
|
1611
|
+
*/
|
|
1612
|
+
dataSourceId?: string;
|
|
1577
1613
|
}
|
|
1578
1614
|
/**
|
|
1579
1615
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
@@ -3190,6 +3226,13 @@ export interface ViewConfig {
|
|
|
3190
3226
|
* @version SDK: 1.35.0 | ThoughtSpot: 10.5.0.cl
|
|
3191
3227
|
*/
|
|
3192
3228
|
overrideOrgId?: number;
|
|
3229
|
+
/**
|
|
3230
|
+
* Flag to control new flip tooltip context menu experience
|
|
3231
|
+
*
|
|
3232
|
+
* @default false
|
|
3233
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
3234
|
+
*/
|
|
3235
|
+
enableFlipTooltipToContextMenu?: boolean;
|
|
3193
3236
|
}
|
|
3194
3237
|
/**
|
|
3195
3238
|
* MessagePayload: Embed event payload: message type, data and status (start/end)
|
|
@@ -5257,7 +5300,15 @@ export declare enum HostEvent {
|
|
|
5257
5300
|
*```
|
|
5258
5301
|
* @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
|
|
5259
5302
|
*/
|
|
5260
|
-
GetParameters = "GetParameters"
|
|
5303
|
+
GetParameters = "GetParameters",
|
|
5304
|
+
/**
|
|
5305
|
+
* Triggers update of persoanlised view for a liveboard
|
|
5306
|
+
* ```js
|
|
5307
|
+
* liveboardEmbed.trigger(HostEvent.UpdatePersonalisedView, {viewId: '1234'})
|
|
5308
|
+
* ```
|
|
5309
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
5310
|
+
*/
|
|
5311
|
+
UpdatePersonalisedView = "UpdatePersonalisedView"
|
|
5261
5312
|
}
|
|
5262
5313
|
/**
|
|
5263
5314
|
* The different visual modes that the data sources panel within
|
|
@@ -5373,7 +5424,11 @@ export declare enum Param {
|
|
|
5373
5424
|
HideIrrelevantFiltersInTab = "hideIrrelevantFiltersAtTabLevel",
|
|
5374
5425
|
SpotterEnabled = "isSpotterExperienceEnabled",
|
|
5375
5426
|
IsUnifiedSearchExperienceEnabled = "isUnifiedSearchExperienceEnabled",
|
|
5376
|
-
OverrideOrgId = "orgId"
|
|
5427
|
+
OverrideOrgId = "orgId",
|
|
5428
|
+
EnableFlipTooltipToContextMenu = "flipTooltipToContextMenuEnabled",
|
|
5429
|
+
OauthPollingInterval = "oAuthPollingInterval",
|
|
5430
|
+
IsForceRedirect = "isForceRedirect",
|
|
5431
|
+
DataSourceId = "dataSourceId"
|
|
5377
5432
|
}
|
|
5378
5433
|
/**
|
|
5379
5434
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -1564,6 +1564,42 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
1564
1564
|
* ```
|
|
1565
1565
|
*/
|
|
1566
1566
|
hideIrrelevantChipsInLiveboardTabs?: boolean;
|
|
1567
|
+
/**
|
|
1568
|
+
* The Liveboard to run on regular intervals to fetch the cdw token.
|
|
1569
|
+
* @hidden
|
|
1570
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
|
|
1571
|
+
* @example
|
|
1572
|
+
* ```js
|
|
1573
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1574
|
+
* ... // other options
|
|
1575
|
+
* oAuthPollingInterval: value in milliseconds,
|
|
1576
|
+
* })
|
|
1577
|
+
*/
|
|
1578
|
+
oAuthPollingInterval?: number;
|
|
1579
|
+
/**
|
|
1580
|
+
* The Liveboard is set to force a token fetch during the initial load.
|
|
1581
|
+
* @hidden
|
|
1582
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
|
|
1583
|
+
* @example
|
|
1584
|
+
* ```js
|
|
1585
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1586
|
+
* ... // other options
|
|
1587
|
+
* isForceRedirect: false,
|
|
1588
|
+
* })
|
|
1589
|
+
*/
|
|
1590
|
+
isForceRedirect?: boolean;
|
|
1591
|
+
/**
|
|
1592
|
+
* The source connection ID for authentication.
|
|
1593
|
+
* @hidden
|
|
1594
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
|
|
1595
|
+
* @example
|
|
1596
|
+
* ```js
|
|
1597
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1598
|
+
* ... // other options
|
|
1599
|
+
* dataSourceId: '',
|
|
1600
|
+
* })
|
|
1601
|
+
*/
|
|
1602
|
+
dataSourceId?: string;
|
|
1567
1603
|
}
|
|
1568
1604
|
/**
|
|
1569
1605
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
@@ -2782,6 +2818,13 @@ export interface ViewConfig {
|
|
|
2782
2818
|
* @version SDK: 1.35.0 | ThoughtSpot: 10.5.0.cl
|
|
2783
2819
|
*/
|
|
2784
2820
|
overrideOrgId?: number;
|
|
2821
|
+
/**
|
|
2822
|
+
* Flag to control new flip tooltip context menu experience
|
|
2823
|
+
*
|
|
2824
|
+
* @default false
|
|
2825
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
2826
|
+
*/
|
|
2827
|
+
enableFlipTooltipToContextMenu?: boolean;
|
|
2785
2828
|
}
|
|
2786
2829
|
/**
|
|
2787
2830
|
* MessagePayload: Embed event payload: message type, data and status (start/end)
|
|
@@ -4849,7 +4892,15 @@ export declare enum HostEvent {
|
|
|
4849
4892
|
*```
|
|
4850
4893
|
* @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
|
|
4851
4894
|
*/
|
|
4852
|
-
GetParameters = "GetParameters"
|
|
4895
|
+
GetParameters = "GetParameters",
|
|
4896
|
+
/**
|
|
4897
|
+
* Triggers update of persoanlised view for a liveboard
|
|
4898
|
+
* ```js
|
|
4899
|
+
* liveboardEmbed.trigger(HostEvent.UpdatePersonalisedView, {viewId: '1234'})
|
|
4900
|
+
* ```
|
|
4901
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
4902
|
+
*/
|
|
4903
|
+
UpdatePersonalisedView = "UpdatePersonalisedView"
|
|
4853
4904
|
}
|
|
4854
4905
|
/**
|
|
4855
4906
|
* The different visual modes that the data sources panel within
|
|
@@ -4965,7 +5016,11 @@ export declare enum Param {
|
|
|
4965
5016
|
HideIrrelevantFiltersInTab = "hideIrrelevantFiltersAtTabLevel",
|
|
4966
5017
|
SpotterEnabled = "isSpotterExperienceEnabled",
|
|
4967
5018
|
IsUnifiedSearchExperienceEnabled = "isUnifiedSearchExperienceEnabled",
|
|
4968
|
-
OverrideOrgId = "orgId"
|
|
5019
|
+
OverrideOrgId = "orgId",
|
|
5020
|
+
EnableFlipTooltipToContextMenu = "flipTooltipToContextMenuEnabled",
|
|
5021
|
+
OauthPollingInterval = "oAuthPollingInterval",
|
|
5022
|
+
IsForceRedirect = "isForceRedirect",
|
|
5023
|
+
DataSourceId = "dataSourceId"
|
|
4969
5024
|
}
|
|
4970
5025
|
/**
|
|
4971
5026
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -959,6 +959,42 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
959
959
|
* ```
|
|
960
960
|
*/
|
|
961
961
|
hideIrrelevantChipsInLiveboardTabs?: boolean;
|
|
962
|
+
/**
|
|
963
|
+
* The Liveboard to run on regular intervals to fetch the cdw token.
|
|
964
|
+
* @hidden
|
|
965
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
|
|
966
|
+
* @example
|
|
967
|
+
* ```js
|
|
968
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
969
|
+
* ... // other options
|
|
970
|
+
* oAuthPollingInterval: value in milliseconds,
|
|
971
|
+
* })
|
|
972
|
+
*/
|
|
973
|
+
oAuthPollingInterval?: number;
|
|
974
|
+
/**
|
|
975
|
+
* The Liveboard is set to force a token fetch during the initial load.
|
|
976
|
+
* @hidden
|
|
977
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
|
|
978
|
+
* @example
|
|
979
|
+
* ```js
|
|
980
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
981
|
+
* ... // other options
|
|
982
|
+
* isForceRedirect: false,
|
|
983
|
+
* })
|
|
984
|
+
*/
|
|
985
|
+
isForceRedirect?: boolean;
|
|
986
|
+
/**
|
|
987
|
+
* The source connection ID for authentication.
|
|
988
|
+
* @hidden
|
|
989
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
|
|
990
|
+
* @example
|
|
991
|
+
* ```js
|
|
992
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
993
|
+
* ... // other options
|
|
994
|
+
* dataSourceId: '',
|
|
995
|
+
* })
|
|
996
|
+
*/
|
|
997
|
+
dataSourceId?: string;
|
|
962
998
|
}
|
|
963
999
|
/**
|
|
964
1000
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
@@ -2779,6 +2815,13 @@ export interface ViewConfig {
|
|
|
2779
2815
|
* @version SDK: 1.35.0 | ThoughtSpot: 10.5.0.cl
|
|
2780
2816
|
*/
|
|
2781
2817
|
overrideOrgId?: number;
|
|
2818
|
+
/**
|
|
2819
|
+
* Flag to control new flip tooltip context menu experience
|
|
2820
|
+
*
|
|
2821
|
+
* @default false
|
|
2822
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
2823
|
+
*/
|
|
2824
|
+
enableFlipTooltipToContextMenu?: boolean;
|
|
2782
2825
|
}
|
|
2783
2826
|
/**
|
|
2784
2827
|
* MessagePayload: Embed event payload: message type, data and status (start/end)
|
|
@@ -4846,7 +4889,15 @@ export enum HostEvent {
|
|
|
4846
4889
|
*```
|
|
4847
4890
|
* @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
|
|
4848
4891
|
*/
|
|
4849
|
-
GetParameters = "GetParameters"
|
|
4892
|
+
GetParameters = "GetParameters",
|
|
4893
|
+
/**
|
|
4894
|
+
* Triggers update of persoanlised view for a liveboard
|
|
4895
|
+
* ```js
|
|
4896
|
+
* liveboardEmbed.trigger(HostEvent.UpdatePersonalisedView, {viewId: '1234'})
|
|
4897
|
+
* ```
|
|
4898
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
4899
|
+
*/
|
|
4900
|
+
UpdatePersonalisedView = "UpdatePersonalisedView"
|
|
4850
4901
|
}
|
|
4851
4902
|
/**
|
|
4852
4903
|
* The different visual modes that the data sources panel within
|
|
@@ -4962,7 +5013,11 @@ export enum Param {
|
|
|
4962
5013
|
HideIrrelevantFiltersInTab = "hideIrrelevantFiltersAtTabLevel",
|
|
4963
5014
|
SpotterEnabled = "isSpotterExperienceEnabled",
|
|
4964
5015
|
IsUnifiedSearchExperienceEnabled = "isUnifiedSearchExperienceEnabled",
|
|
4965
|
-
OverrideOrgId = "orgId"
|
|
5016
|
+
OverrideOrgId = "orgId",
|
|
5017
|
+
EnableFlipTooltipToContextMenu = "flipTooltipToContextMenuEnabled",
|
|
5018
|
+
OauthPollingInterval = "oAuthPollingInterval",
|
|
5019
|
+
IsForceRedirect = "isForceRedirect",
|
|
5020
|
+
DataSourceId = "dataSourceId"
|
|
4966
5021
|
}
|
|
4967
5022
|
/**
|
|
4968
5023
|
* ThoughtSpot application pages include actions and menu commands
|
package/lib/package.json
CHANGED
|
@@ -319,6 +319,42 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
319
319
|
* ```
|
|
320
320
|
*/
|
|
321
321
|
hideIrrelevantChipsInLiveboardTabs?: boolean;
|
|
322
|
+
/**
|
|
323
|
+
* The Liveboard to run on regular intervals to fetch the cdw token.
|
|
324
|
+
* @hidden
|
|
325
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
|
|
326
|
+
* @example
|
|
327
|
+
* ```js
|
|
328
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
329
|
+
* ... // other options
|
|
330
|
+
* oAuthPollingInterval: value in milliseconds,
|
|
331
|
+
* })
|
|
332
|
+
*/
|
|
333
|
+
oAuthPollingInterval?: number;
|
|
334
|
+
/**
|
|
335
|
+
* The Liveboard is set to force a token fetch during the initial load.
|
|
336
|
+
* @hidden
|
|
337
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
|
|
338
|
+
* @example
|
|
339
|
+
* ```js
|
|
340
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
341
|
+
* ... // other options
|
|
342
|
+
* isForceRedirect: false,
|
|
343
|
+
* })
|
|
344
|
+
*/
|
|
345
|
+
isForceRedirect?: boolean;
|
|
346
|
+
/**
|
|
347
|
+
* The source connection ID for authentication.
|
|
348
|
+
* @hidden
|
|
349
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
|
|
350
|
+
* @example
|
|
351
|
+
* ```js
|
|
352
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
353
|
+
* ... // other options
|
|
354
|
+
* dataSourceId: '',
|
|
355
|
+
* })
|
|
356
|
+
*/
|
|
357
|
+
dataSourceId?: string;
|
|
322
358
|
}
|
|
323
359
|
/**
|
|
324
360
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liveboard.d.ts","sourceRoot":"","sources":["../../../src/embed/liveboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAKH,WAAW,EACX,SAAS,EACT,UAAU,EACb,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC;;;GAGG;AACH,MAAM,WAAW,mBACb,SAAQ,IAAI,CACR,UAAU,EACV,uBAAuB,GAAG,wBAAwB,GAAG,0BAA0B,CAClF;IACD;;;;;;;;;;;;;;;;;OAiBG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;;;;;;;;;OAcG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;;;;;OAUG;IACH,wBAAwB,CAAC,EAAE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;OAIG;IACI,OAAO,CAAC,WAAW,EAAE,SAAS,EAAE,IAAI,GAAE,GAAQ,GAAG,OAAO,CAAC,GAAG,CAAC;IAYpE;;;;OAIG;IACU,MAAM,IAAI,OAAO,CAAC,cAAc,CAAC;IAUvC,mBAAmB,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM;IAcpF;;;;OAIG;IACI,eAAe,IAAI,MAAM;CAYnC;AAED;;GAEG;AACH,qBAAa,aAAc,SAAQ,cAAc;CAAI"}
|
|
@@ -66,7 +66,7 @@ export class LiveboardEmbed extends V1Embed {
|
|
|
66
66
|
getEmbedParams() {
|
|
67
67
|
let params = {};
|
|
68
68
|
params = this.getBaseQueryParams(params);
|
|
69
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, } = this.viewConfig;
|
|
69
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, } = this.viewConfig;
|
|
70
70
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
71
71
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
72
72
|
if (fullHeight === true) {
|
|
@@ -109,6 +109,15 @@ export class LiveboardEmbed extends V1Embed {
|
|
|
109
109
|
if (enableAskSage) {
|
|
110
110
|
params[Param.enableAskSage] = enableAskSage;
|
|
111
111
|
}
|
|
112
|
+
if (oAuthPollingInterval !== undefined) {
|
|
113
|
+
params[Param.OauthPollingInterval] = oAuthPollingInterval;
|
|
114
|
+
}
|
|
115
|
+
if (isForceRedirect) {
|
|
116
|
+
params[Param.IsForceRedirect] = isForceRedirect;
|
|
117
|
+
}
|
|
118
|
+
if (dataSourceId !== undefined) {
|
|
119
|
+
params[Param.DataSourceId] = dataSourceId;
|
|
120
|
+
}
|
|
112
121
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
113
122
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
114
123
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|