@thoughtspot/visual-embed-sdk 1.33.5 → 1.33.7
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 +14 -0
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +2 -1
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +10 -0
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/cjs/src/embed/bodyless-conversation.js +1 -0
- package/cjs/src/embed/bodyless-conversation.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +1 -0
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +14 -0
- 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.map +1 -1
- package/cjs/src/embed/sage.js +2 -1
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/sage.spec.js +21 -10
- package/cjs/src/embed/sage.spec.js.map +1 -1
- package/cjs/src/types.d.ts +27 -10
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +26 -9
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-CAHz286m.js → index-CbgViG0H.js} +1 -1
- package/dist/src/embed/app.d.ts +14 -0
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +14 -0
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts.map +1 -1
- package/dist/src/types.d.ts +27 -10
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +36 -15
- package/dist/tsembed-react.js +35 -14
- package/dist/tsembed.es.js +37 -15
- package/dist/tsembed.js +36 -14
- package/dist/visual-embed-sdk-react-full.d.ts +55 -10
- package/dist/visual-embed-sdk-react.d.ts +55 -10
- package/dist/visual-embed-sdk.d.ts +55 -10
- package/lib/package.json +1 -1
- package/lib/src/embed/app.d.ts +14 -0
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +2 -1
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +10 -0
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/lib/src/embed/bodyless-conversation.js +1 -0
- package/lib/src/embed/bodyless-conversation.js.map +1 -1
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +1 -0
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +14 -0
- 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.map +1 -1
- package/lib/src/embed/sage.js +2 -1
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/sage.spec.js +21 -10
- package/lib/src/embed/sage.spec.js.map +1 -1
- package/lib/src/types.d.ts +27 -10
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +26 -9
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +55 -10
- package/package.json +1 -1
- package/src/embed/app.spec.ts +15 -0
- package/src/embed/app.ts +16 -0
- package/src/embed/bodyless-conversation.ts +1 -0
- package/src/embed/conversation.ts +1 -0
- package/src/embed/liveboard.spec.ts +16 -0
- package/src/embed/liveboard.ts +16 -0
- package/src/embed/sage.spec.ts +25 -10
- package/src/embed/sage.ts +2 -0
- package/src/types.ts +27 -9
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.7 */
|
|
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) {
|
|
@@ -1764,10 +1764,14 @@ var HostEvent;
|
|
|
1764
1764
|
*/
|
|
1765
1765
|
HostEvent["Reload"] = "reload";
|
|
1766
1766
|
/**
|
|
1767
|
-
* Get current
|
|
1767
|
+
* Get iframe URL for the current embed view on the playground.
|
|
1768
|
+
* Developers can use this URL to embed a ThoughtSpot object
|
|
1769
|
+
* in apps like Salesforce or Sharepoint.
|
|
1770
|
+
*
|
|
1768
1771
|
* @example
|
|
1769
1772
|
* ```js
|
|
1770
|
-
* const
|
|
1773
|
+
* const url = embed.trigger(HostEvent.GetIframeUrl);
|
|
1774
|
+
* console.log("iFrameURL",url);
|
|
1771
1775
|
* ```
|
|
1772
1776
|
* @version SDK: 1.35.0 | Thoughtspot: 10.4.0.cl
|
|
1773
1777
|
*/
|
|
@@ -1884,6 +1888,9 @@ var HostEvent;
|
|
|
1884
1888
|
* Liveboard filters, runtime filters applied on visualizations on a
|
|
1885
1889
|
* Liveboard, and Liveboard layout, changes to visualizations such as
|
|
1886
1890
|
* sorting, toggling of legends, and data drill down.
|
|
1891
|
+
* For more information, see
|
|
1892
|
+
* link:https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#transient-lb-content[Liveboard data with unsaved changes].
|
|
1893
|
+
*
|
|
1887
1894
|
* @example
|
|
1888
1895
|
* ```js
|
|
1889
1896
|
* liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard).then(
|
|
@@ -2650,6 +2657,7 @@ var Param;
|
|
|
2650
2657
|
Param["ShowLiveboardVerifiedBadge"] = "showLiveboardVerifiedBadge";
|
|
2651
2658
|
Param["ShowLiveboardReverifyBanner"] = "showLiveboardReverifyBanner";
|
|
2652
2659
|
Param["LiveboardHeaderV2"] = "isLiveboardHeaderV2Enabled";
|
|
2660
|
+
Param["HideIrrelevantFiltersInTab"] = "hideIrrelevantFiltersAtTabLevel";
|
|
2653
2661
|
Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
|
|
2654
2662
|
Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
|
|
2655
2663
|
Param["OverrideOrgId"] = "orgId";
|
|
@@ -2773,8 +2781,8 @@ var Action;
|
|
|
2773
2781
|
*/
|
|
2774
2782
|
Action["Share"] = "share";
|
|
2775
2783
|
/**
|
|
2776
|
-
* The **Add filter** action on a Liveboard
|
|
2777
|
-
* Allows adding filters to
|
|
2784
|
+
* The **Add filter** action on a Liveboard page.
|
|
2785
|
+
* Allows adding filters to visualizations on a Liveboard.
|
|
2778
2786
|
* @example
|
|
2779
2787
|
* ```js
|
|
2780
2788
|
* disabledActions: [Action.AddFilter]
|
|
@@ -2783,8 +2791,8 @@ var Action;
|
|
|
2783
2791
|
Action["AddFilter"] = "addFilter";
|
|
2784
2792
|
/**
|
|
2785
2793
|
* The **Add Data Panel Objects** action on the data panel v2.
|
|
2786
|
-
* Allows to show action menu to add different objects (
|
|
2787
|
-
* formulas,
|
|
2794
|
+
* Allows to show action menu to add different objects (such as
|
|
2795
|
+
* formulas, Parameters) in data panel new experience.
|
|
2788
2796
|
* @example
|
|
2789
2797
|
* ```js
|
|
2790
2798
|
* disabledActions: [Action.AddDataPanelObjects]
|
|
@@ -2793,9 +2801,9 @@ var Action;
|
|
|
2793
2801
|
*/
|
|
2794
2802
|
Action["AddDataPanelObjects"] = "addDataPanelObjects";
|
|
2795
2803
|
/**
|
|
2796
|
-
* Filter configuration options on a Liveboard
|
|
2797
|
-
* Allows configuring
|
|
2798
|
-
* Liveboard
|
|
2804
|
+
* Filter configuration options on a Liveboard page.
|
|
2805
|
+
* Allows configuring filters on a
|
|
2806
|
+
* Liveboard.
|
|
2799
2807
|
* @example
|
|
2800
2808
|
* ```js
|
|
2801
2809
|
* disabledActions: [Action.ConfigureFilter]
|
|
@@ -3695,6 +3703,15 @@ var Action;
|
|
|
3695
3703
|
* @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
|
|
3696
3704
|
*/
|
|
3697
3705
|
Action["DisableChipReorder"] = "disableChipReorder";
|
|
3706
|
+
/**
|
|
3707
|
+
* Action ID for Hide Irrelevant filters button
|
|
3708
|
+
* @example
|
|
3709
|
+
* ```js
|
|
3710
|
+
* hiddenAction: [Action.ChangeFilterVisibilityInTab]
|
|
3711
|
+
* ```
|
|
3712
|
+
* @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
|
|
3713
|
+
*/
|
|
3714
|
+
Action["ChangeFilterVisibilityInTab"] = "changeFilterVisibilityInTab";
|
|
3698
3715
|
})(Action || (Action = {}));
|
|
3699
3716
|
var PrefetchFeatures;
|
|
3700
3717
|
(function (PrefetchFeatures) {
|
|
@@ -6966,7 +6983,7 @@ class AnswerService {
|
|
|
6966
6983
|
async getTML() {
|
|
6967
6984
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
6968
6985
|
const edoc = object[0].edoc;
|
|
6969
|
-
const YAML = await import('./index-
|
|
6986
|
+
const YAML = await import('./index-CbgViG0H.js');
|
|
6970
6987
|
const parsedDoc = YAML.parse(edoc);
|
|
6971
6988
|
return {
|
|
6972
6989
|
answer: {
|
|
@@ -14708,7 +14725,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
14708
14725
|
});
|
|
14709
14726
|
}
|
|
14710
14727
|
|
|
14711
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.
|
|
14728
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.7";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.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","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};
|
|
14712
14729
|
|
|
14713
14730
|
/**
|
|
14714
14731
|
* Copyright (c) 2022
|
|
@@ -15863,7 +15880,7 @@ class AppEmbed extends V1Embed {
|
|
|
15863
15880
|
getEmbedParams() {
|
|
15864
15881
|
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
|
|
15865
15882
|
/* eslint-disable-next-line max-len */
|
|
15866
|
-
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, } = this.viewConfig;
|
|
15883
|
+
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, } = this.viewConfig;
|
|
15867
15884
|
let params = {};
|
|
15868
15885
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
15869
15886
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
@@ -15877,6 +15894,7 @@ class AppEmbed extends V1Embed {
|
|
|
15877
15894
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
15878
15895
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
15879
15896
|
params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
|
|
15897
|
+
params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
|
|
15880
15898
|
params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
|
|
15881
15899
|
params = this.getBaseQueryParams(params);
|
|
15882
15900
|
if (fullHeight === true) {
|
|
@@ -16155,7 +16173,7 @@ class LiveboardEmbed extends V1Embed {
|
|
|
16155
16173
|
getEmbedParams() {
|
|
16156
16174
|
let params = {};
|
|
16157
16175
|
params = this.getBaseQueryParams(params);
|
|
16158
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, } = this.viewConfig;
|
|
16176
|
+
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;
|
|
16159
16177
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
16160
16178
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
16161
16179
|
if (fullHeight === true) {
|
|
@@ -16202,6 +16220,7 @@ class LiveboardEmbed extends V1Embed {
|
|
|
16202
16220
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
16203
16221
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
16204
16222
|
params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
|
|
16223
|
+
params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
|
|
16205
16224
|
params[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
16206
16225
|
params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
|
|
16207
16226
|
const queryParams = getQueryParamString(params, true);
|
|
@@ -16951,6 +16970,7 @@ class Conversation {
|
|
|
16951
16970
|
|
|
16952
16971
|
class ConversationMessage extends TsEmbed {
|
|
16953
16972
|
constructor(container, viewConfig) {
|
|
16973
|
+
viewConfig.embedComponentType = 'bodyless-conversation';
|
|
16954
16974
|
super(container, viewConfig);
|
|
16955
16975
|
this.viewConfig = viewConfig;
|
|
16956
16976
|
}
|
|
@@ -17040,6 +17060,7 @@ class BodylessConversation {
|
|
|
17040
17060
|
*/
|
|
17041
17061
|
class ConversationEmbed extends TsEmbed {
|
|
17042
17062
|
constructor(container, viewConfig) {
|
|
17063
|
+
viewConfig.embedComponentType = 'conversation';
|
|
17043
17064
|
super(container, viewConfig);
|
|
17044
17065
|
this.viewConfig = viewConfig;
|
|
17045
17066
|
}
|
|
@@ -17094,8 +17115,9 @@ class SageEmbed extends V1Embed {
|
|
|
17094
17115
|
* @returns {string} query string
|
|
17095
17116
|
*/
|
|
17096
17117
|
getEmbedParams() {
|
|
17097
|
-
const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
|
|
17118
|
+
const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, dataPanelV2, hideSampleQuestions, isProductTour, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
|
|
17098
17119
|
const params = this.getBaseQueryParams();
|
|
17120
|
+
params[Param.DataPanelV2Enabled] = !!dataPanelV2;
|
|
17099
17121
|
params[Param.IsSageEmbed] = true;
|
|
17100
17122
|
params[Param.DisableWorksheetChange] = !!disableWorksheetChange;
|
|
17101
17123
|
params[Param.HideWorksheetSelector] = !!hideWorksheetSelector;
|
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.7 */
|
|
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) :
|
|
@@ -1770,10 +1770,14 @@
|
|
|
1770
1770
|
*/
|
|
1771
1771
|
HostEvent["Reload"] = "reload";
|
|
1772
1772
|
/**
|
|
1773
|
-
* Get current
|
|
1773
|
+
* Get iframe URL for the current embed view on the playground.
|
|
1774
|
+
* Developers can use this URL to embed a ThoughtSpot object
|
|
1775
|
+
* in apps like Salesforce or Sharepoint.
|
|
1776
|
+
*
|
|
1774
1777
|
* @example
|
|
1775
1778
|
* ```js
|
|
1776
|
-
* const
|
|
1779
|
+
* const url = embed.trigger(HostEvent.GetIframeUrl);
|
|
1780
|
+
* console.log("iFrameURL",url);
|
|
1777
1781
|
* ```
|
|
1778
1782
|
* @version SDK: 1.35.0 | Thoughtspot: 10.4.0.cl
|
|
1779
1783
|
*/
|
|
@@ -1890,6 +1894,9 @@
|
|
|
1890
1894
|
* Liveboard filters, runtime filters applied on visualizations on a
|
|
1891
1895
|
* Liveboard, and Liveboard layout, changes to visualizations such as
|
|
1892
1896
|
* sorting, toggling of legends, and data drill down.
|
|
1897
|
+
* For more information, see
|
|
1898
|
+
* link:https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#transient-lb-content[Liveboard data with unsaved changes].
|
|
1899
|
+
*
|
|
1893
1900
|
* @example
|
|
1894
1901
|
* ```js
|
|
1895
1902
|
* liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard).then(
|
|
@@ -2656,6 +2663,7 @@
|
|
|
2656
2663
|
Param["ShowLiveboardVerifiedBadge"] = "showLiveboardVerifiedBadge";
|
|
2657
2664
|
Param["ShowLiveboardReverifyBanner"] = "showLiveboardReverifyBanner";
|
|
2658
2665
|
Param["LiveboardHeaderV2"] = "isLiveboardHeaderV2Enabled";
|
|
2666
|
+
Param["HideIrrelevantFiltersInTab"] = "hideIrrelevantFiltersAtTabLevel";
|
|
2659
2667
|
Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
|
|
2660
2668
|
Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
|
|
2661
2669
|
Param["OverrideOrgId"] = "orgId";
|
|
@@ -2779,8 +2787,8 @@
|
|
|
2779
2787
|
*/
|
|
2780
2788
|
Action["Share"] = "share";
|
|
2781
2789
|
/**
|
|
2782
|
-
* The **Add filter** action on a Liveboard
|
|
2783
|
-
* Allows adding filters to
|
|
2790
|
+
* The **Add filter** action on a Liveboard page.
|
|
2791
|
+
* Allows adding filters to visualizations on a Liveboard.
|
|
2784
2792
|
* @example
|
|
2785
2793
|
* ```js
|
|
2786
2794
|
* disabledActions: [Action.AddFilter]
|
|
@@ -2789,8 +2797,8 @@
|
|
|
2789
2797
|
Action["AddFilter"] = "addFilter";
|
|
2790
2798
|
/**
|
|
2791
2799
|
* The **Add Data Panel Objects** action on the data panel v2.
|
|
2792
|
-
* Allows to show action menu to add different objects (
|
|
2793
|
-
* formulas,
|
|
2800
|
+
* Allows to show action menu to add different objects (such as
|
|
2801
|
+
* formulas, Parameters) in data panel new experience.
|
|
2794
2802
|
* @example
|
|
2795
2803
|
* ```js
|
|
2796
2804
|
* disabledActions: [Action.AddDataPanelObjects]
|
|
@@ -2799,9 +2807,9 @@
|
|
|
2799
2807
|
*/
|
|
2800
2808
|
Action["AddDataPanelObjects"] = "addDataPanelObjects";
|
|
2801
2809
|
/**
|
|
2802
|
-
* Filter configuration options on a Liveboard
|
|
2803
|
-
* Allows configuring
|
|
2804
|
-
* Liveboard
|
|
2810
|
+
* Filter configuration options on a Liveboard page.
|
|
2811
|
+
* Allows configuring filters on a
|
|
2812
|
+
* Liveboard.
|
|
2805
2813
|
* @example
|
|
2806
2814
|
* ```js
|
|
2807
2815
|
* disabledActions: [Action.ConfigureFilter]
|
|
@@ -3701,6 +3709,15 @@
|
|
|
3701
3709
|
* @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
|
|
3702
3710
|
*/
|
|
3703
3711
|
Action["DisableChipReorder"] = "disableChipReorder";
|
|
3712
|
+
/**
|
|
3713
|
+
* Action ID for Hide Irrelevant filters button
|
|
3714
|
+
* @example
|
|
3715
|
+
* ```js
|
|
3716
|
+
* hiddenAction: [Action.ChangeFilterVisibilityInTab]
|
|
3717
|
+
* ```
|
|
3718
|
+
* @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
|
|
3719
|
+
*/
|
|
3720
|
+
Action["ChangeFilterVisibilityInTab"] = "changeFilterVisibilityInTab";
|
|
3704
3721
|
})(exports.Action || (exports.Action = {}));
|
|
3705
3722
|
exports.PrefetchFeatures = void 0;
|
|
3706
3723
|
(function (PrefetchFeatures) {
|
|
@@ -14714,7 +14731,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14714
14731
|
});
|
|
14715
14732
|
}
|
|
14716
14733
|
|
|
14717
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.
|
|
14734
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.7";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.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","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};
|
|
14718
14735
|
|
|
14719
14736
|
/**
|
|
14720
14737
|
* Copyright (c) 2022
|
|
@@ -15869,7 +15886,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15869
15886
|
getEmbedParams() {
|
|
15870
15887
|
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
|
|
15871
15888
|
/* eslint-disable-next-line max-len */
|
|
15872
|
-
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, } = this.viewConfig;
|
|
15889
|
+
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, } = this.viewConfig;
|
|
15873
15890
|
let params = {};
|
|
15874
15891
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
15875
15892
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
@@ -15883,6 +15900,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15883
15900
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
15884
15901
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
15885
15902
|
params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
|
|
15903
|
+
params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
|
|
15886
15904
|
params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
|
|
15887
15905
|
params = this.getBaseQueryParams(params);
|
|
15888
15906
|
if (fullHeight === true) {
|
|
@@ -16161,7 +16179,7 @@ query GetEurekaVizSnapshots(
|
|
|
16161
16179
|
getEmbedParams() {
|
|
16162
16180
|
let params = {};
|
|
16163
16181
|
params = this.getBaseQueryParams(params);
|
|
16164
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, } = this.viewConfig;
|
|
16182
|
+
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;
|
|
16165
16183
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
16166
16184
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
16167
16185
|
if (fullHeight === true) {
|
|
@@ -16208,6 +16226,7 @@ query GetEurekaVizSnapshots(
|
|
|
16208
16226
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
16209
16227
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
16210
16228
|
params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
|
|
16229
|
+
params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
|
|
16211
16230
|
params[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
16212
16231
|
params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
|
|
16213
16232
|
const queryParams = getQueryParamString(params, true);
|
|
@@ -16957,6 +16976,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
16957
16976
|
|
|
16958
16977
|
class ConversationMessage extends TsEmbed {
|
|
16959
16978
|
constructor(container, viewConfig) {
|
|
16979
|
+
viewConfig.embedComponentType = 'bodyless-conversation';
|
|
16960
16980
|
super(container, viewConfig);
|
|
16961
16981
|
this.viewConfig = viewConfig;
|
|
16962
16982
|
}
|
|
@@ -17046,6 +17066,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
17046
17066
|
*/
|
|
17047
17067
|
class ConversationEmbed extends TsEmbed {
|
|
17048
17068
|
constructor(container, viewConfig) {
|
|
17069
|
+
viewConfig.embedComponentType = 'conversation';
|
|
17049
17070
|
super(container, viewConfig);
|
|
17050
17071
|
this.viewConfig = viewConfig;
|
|
17051
17072
|
}
|
|
@@ -17100,8 +17121,9 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
17100
17121
|
* @returns {string} query string
|
|
17101
17122
|
*/
|
|
17102
17123
|
getEmbedParams() {
|
|
17103
|
-
const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
|
|
17124
|
+
const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, dataPanelV2, hideSampleQuestions, isProductTour, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
|
|
17104
17125
|
const params = this.getBaseQueryParams();
|
|
17126
|
+
params[Param.DataPanelV2Enabled] = !!dataPanelV2;
|
|
17105
17127
|
params[Param.IsSageEmbed] = true;
|
|
17106
17128
|
params[Param.DisableWorksheetChange] = !!disableWorksheetChange;
|
|
17107
17129
|
params[Param.HideWorksheetSelector] = !!hideWorksheetSelector;
|
|
@@ -1169,6 +1169,20 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
1169
1169
|
* ```
|
|
1170
1170
|
*/
|
|
1171
1171
|
showLiveboardVerifiedBadge?: boolean;
|
|
1172
|
+
/**
|
|
1173
|
+
* This flag is used to enable/disable hide irrelevant filters in liveboard tab
|
|
1174
|
+
* @type {boolean}
|
|
1175
|
+
* @default false
|
|
1176
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.5.0.cl
|
|
1177
|
+
* @example
|
|
1178
|
+
* ```js
|
|
1179
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
1180
|
+
* ... // other options
|
|
1181
|
+
* hideIrrelevantChipsInLiveboardTabs: true,
|
|
1182
|
+
* })
|
|
1183
|
+
* ```
|
|
1184
|
+
*/
|
|
1185
|
+
hideIrrelevantChipsInLiveboardTabs?: boolean;
|
|
1172
1186
|
/**
|
|
1173
1187
|
* This flag can be used to show or hide the re-verify banner on the Liveboard compact header
|
|
1174
1188
|
* @type {boolean}
|
|
@@ -1546,6 +1560,20 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
1546
1560
|
* ```
|
|
1547
1561
|
*/
|
|
1548
1562
|
showLiveboardReverifyBanner?: boolean;
|
|
1563
|
+
/**
|
|
1564
|
+
* This flag is used to enable/disable hide irrelevant filters in liveboard tab
|
|
1565
|
+
* @type {boolean}
|
|
1566
|
+
* @default false
|
|
1567
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.5.0.cl
|
|
1568
|
+
* @example
|
|
1569
|
+
* ```js
|
|
1570
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1571
|
+
* ... // other options
|
|
1572
|
+
* hideIrrelevantChipsInLiveboardTabs: true,
|
|
1573
|
+
* })
|
|
1574
|
+
* ```
|
|
1575
|
+
*/
|
|
1576
|
+
hideIrrelevantChipsInLiveboardTabs?: boolean;
|
|
1549
1577
|
}
|
|
1550
1578
|
/**
|
|
1551
1579
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
@@ -4425,10 +4453,14 @@ export declare enum HostEvent {
|
|
|
4425
4453
|
*/
|
|
4426
4454
|
Reload = "reload",
|
|
4427
4455
|
/**
|
|
4428
|
-
* Get current
|
|
4456
|
+
* Get iframe URL for the current embed view on the playground.
|
|
4457
|
+
* Developers can use this URL to embed a ThoughtSpot object
|
|
4458
|
+
* in apps like Salesforce or Sharepoint.
|
|
4459
|
+
*
|
|
4429
4460
|
* @example
|
|
4430
4461
|
* ```js
|
|
4431
|
-
* const
|
|
4462
|
+
* const url = embed.trigger(HostEvent.GetIframeUrl);
|
|
4463
|
+
* console.log("iFrameURL",url);
|
|
4432
4464
|
* ```
|
|
4433
4465
|
* @version SDK: 1.35.0 | Thoughtspot: 10.4.0.cl
|
|
4434
4466
|
*/
|
|
@@ -4545,6 +4577,9 @@ export declare enum HostEvent {
|
|
|
4545
4577
|
* Liveboard filters, runtime filters applied on visualizations on a
|
|
4546
4578
|
* Liveboard, and Liveboard layout, changes to visualizations such as
|
|
4547
4579
|
* sorting, toggling of legends, and data drill down.
|
|
4580
|
+
* For more information, see
|
|
4581
|
+
* link:https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#transient-lb-content[Liveboard data with unsaved changes].
|
|
4582
|
+
*
|
|
4548
4583
|
* @example
|
|
4549
4584
|
* ```js
|
|
4550
4585
|
* liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard).then(
|
|
@@ -5306,6 +5341,7 @@ export declare enum Param {
|
|
|
5306
5341
|
ShowLiveboardVerifiedBadge = "showLiveboardVerifiedBadge",
|
|
5307
5342
|
ShowLiveboardReverifyBanner = "showLiveboardReverifyBanner",
|
|
5308
5343
|
LiveboardHeaderV2 = "isLiveboardHeaderV2Enabled",
|
|
5344
|
+
HideIrrelevantFiltersInTab = "hideIrrelevantFiltersAtTabLevel",
|
|
5309
5345
|
SpotterEnabled = "isSpotterExperienceEnabled",
|
|
5310
5346
|
IsUnifiedSearchExperienceEnabled = "isUnifiedSearchExperienceEnabled",
|
|
5311
5347
|
OverrideOrgId = "orgId"
|
|
@@ -5427,8 +5463,8 @@ export declare enum Action {
|
|
|
5427
5463
|
*/
|
|
5428
5464
|
Share = "share",
|
|
5429
5465
|
/**
|
|
5430
|
-
* The **Add filter** action on a Liveboard
|
|
5431
|
-
* Allows adding filters to
|
|
5466
|
+
* The **Add filter** action on a Liveboard page.
|
|
5467
|
+
* Allows adding filters to visualizations on a Liveboard.
|
|
5432
5468
|
* @example
|
|
5433
5469
|
* ```js
|
|
5434
5470
|
* disabledActions: [Action.AddFilter]
|
|
@@ -5437,8 +5473,8 @@ export declare enum Action {
|
|
|
5437
5473
|
AddFilter = "addFilter",
|
|
5438
5474
|
/**
|
|
5439
5475
|
* The **Add Data Panel Objects** action on the data panel v2.
|
|
5440
|
-
* Allows to show action menu to add different objects (
|
|
5441
|
-
* formulas,
|
|
5476
|
+
* Allows to show action menu to add different objects (such as
|
|
5477
|
+
* formulas, Parameters) in data panel new experience.
|
|
5442
5478
|
* @example
|
|
5443
5479
|
* ```js
|
|
5444
5480
|
* disabledActions: [Action.AddDataPanelObjects]
|
|
@@ -5447,9 +5483,9 @@ export declare enum Action {
|
|
|
5447
5483
|
*/
|
|
5448
5484
|
AddDataPanelObjects = "addDataPanelObjects",
|
|
5449
5485
|
/**
|
|
5450
|
-
* Filter configuration options on a Liveboard
|
|
5451
|
-
* Allows configuring
|
|
5452
|
-
* Liveboard
|
|
5486
|
+
* Filter configuration options on a Liveboard page.
|
|
5487
|
+
* Allows configuring filters on a
|
|
5488
|
+
* Liveboard.
|
|
5453
5489
|
* @example
|
|
5454
5490
|
* ```js
|
|
5455
5491
|
* disabledActions: [Action.ConfigureFilter]
|
|
@@ -6348,7 +6384,16 @@ export declare enum Action {
|
|
|
6348
6384
|
* ```
|
|
6349
6385
|
* @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
|
|
6350
6386
|
*/
|
|
6351
|
-
DisableChipReorder = "disableChipReorder"
|
|
6387
|
+
DisableChipReorder = "disableChipReorder",
|
|
6388
|
+
/**
|
|
6389
|
+
* Action ID for Hide Irrelevant filters button
|
|
6390
|
+
* @example
|
|
6391
|
+
* ```js
|
|
6392
|
+
* hiddenAction: [Action.ChangeFilterVisibilityInTab]
|
|
6393
|
+
* ```
|
|
6394
|
+
* @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
|
|
6395
|
+
*/
|
|
6396
|
+
ChangeFilterVisibilityInTab = "changeFilterVisibilityInTab"
|
|
6352
6397
|
}
|
|
6353
6398
|
export interface AnswerServiceType {
|
|
6354
6399
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -1159,6 +1159,20 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
1159
1159
|
* ```
|
|
1160
1160
|
*/
|
|
1161
1161
|
showLiveboardVerifiedBadge?: boolean;
|
|
1162
|
+
/**
|
|
1163
|
+
* This flag is used to enable/disable hide irrelevant filters in liveboard tab
|
|
1164
|
+
* @type {boolean}
|
|
1165
|
+
* @default false
|
|
1166
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.5.0.cl
|
|
1167
|
+
* @example
|
|
1168
|
+
* ```js
|
|
1169
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
1170
|
+
* ... // other options
|
|
1171
|
+
* hideIrrelevantChipsInLiveboardTabs: true,
|
|
1172
|
+
* })
|
|
1173
|
+
* ```
|
|
1174
|
+
*/
|
|
1175
|
+
hideIrrelevantChipsInLiveboardTabs?: boolean;
|
|
1162
1176
|
/**
|
|
1163
1177
|
* This flag can be used to show or hide the re-verify banner on the Liveboard compact header
|
|
1164
1178
|
* @type {boolean}
|
|
@@ -1536,6 +1550,20 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
1536
1550
|
* ```
|
|
1537
1551
|
*/
|
|
1538
1552
|
showLiveboardReverifyBanner?: boolean;
|
|
1553
|
+
/**
|
|
1554
|
+
* This flag is used to enable/disable hide irrelevant filters in liveboard tab
|
|
1555
|
+
* @type {boolean}
|
|
1556
|
+
* @default false
|
|
1557
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.5.0.cl
|
|
1558
|
+
* @example
|
|
1559
|
+
* ```js
|
|
1560
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1561
|
+
* ... // other options
|
|
1562
|
+
* hideIrrelevantChipsInLiveboardTabs: true,
|
|
1563
|
+
* })
|
|
1564
|
+
* ```
|
|
1565
|
+
*/
|
|
1566
|
+
hideIrrelevantChipsInLiveboardTabs?: boolean;
|
|
1539
1567
|
}
|
|
1540
1568
|
/**
|
|
1541
1569
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
@@ -4017,10 +4045,14 @@ export declare enum HostEvent {
|
|
|
4017
4045
|
*/
|
|
4018
4046
|
Reload = "reload",
|
|
4019
4047
|
/**
|
|
4020
|
-
* Get current
|
|
4048
|
+
* Get iframe URL for the current embed view on the playground.
|
|
4049
|
+
* Developers can use this URL to embed a ThoughtSpot object
|
|
4050
|
+
* in apps like Salesforce or Sharepoint.
|
|
4051
|
+
*
|
|
4021
4052
|
* @example
|
|
4022
4053
|
* ```js
|
|
4023
|
-
* const
|
|
4054
|
+
* const url = embed.trigger(HostEvent.GetIframeUrl);
|
|
4055
|
+
* console.log("iFrameURL",url);
|
|
4024
4056
|
* ```
|
|
4025
4057
|
* @version SDK: 1.35.0 | Thoughtspot: 10.4.0.cl
|
|
4026
4058
|
*/
|
|
@@ -4137,6 +4169,9 @@ export declare enum HostEvent {
|
|
|
4137
4169
|
* Liveboard filters, runtime filters applied on visualizations on a
|
|
4138
4170
|
* Liveboard, and Liveboard layout, changes to visualizations such as
|
|
4139
4171
|
* sorting, toggling of legends, and data drill down.
|
|
4172
|
+
* For more information, see
|
|
4173
|
+
* link:https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#transient-lb-content[Liveboard data with unsaved changes].
|
|
4174
|
+
*
|
|
4140
4175
|
* @example
|
|
4141
4176
|
* ```js
|
|
4142
4177
|
* liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard).then(
|
|
@@ -4898,6 +4933,7 @@ export declare enum Param {
|
|
|
4898
4933
|
ShowLiveboardVerifiedBadge = "showLiveboardVerifiedBadge",
|
|
4899
4934
|
ShowLiveboardReverifyBanner = "showLiveboardReverifyBanner",
|
|
4900
4935
|
LiveboardHeaderV2 = "isLiveboardHeaderV2Enabled",
|
|
4936
|
+
HideIrrelevantFiltersInTab = "hideIrrelevantFiltersAtTabLevel",
|
|
4901
4937
|
SpotterEnabled = "isSpotterExperienceEnabled",
|
|
4902
4938
|
IsUnifiedSearchExperienceEnabled = "isUnifiedSearchExperienceEnabled",
|
|
4903
4939
|
OverrideOrgId = "orgId"
|
|
@@ -5019,8 +5055,8 @@ export declare enum Action {
|
|
|
5019
5055
|
*/
|
|
5020
5056
|
Share = "share",
|
|
5021
5057
|
/**
|
|
5022
|
-
* The **Add filter** action on a Liveboard
|
|
5023
|
-
* Allows adding filters to
|
|
5058
|
+
* The **Add filter** action on a Liveboard page.
|
|
5059
|
+
* Allows adding filters to visualizations on a Liveboard.
|
|
5024
5060
|
* @example
|
|
5025
5061
|
* ```js
|
|
5026
5062
|
* disabledActions: [Action.AddFilter]
|
|
@@ -5029,8 +5065,8 @@ export declare enum Action {
|
|
|
5029
5065
|
AddFilter = "addFilter",
|
|
5030
5066
|
/**
|
|
5031
5067
|
* The **Add Data Panel Objects** action on the data panel v2.
|
|
5032
|
-
* Allows to show action menu to add different objects (
|
|
5033
|
-
* formulas,
|
|
5068
|
+
* Allows to show action menu to add different objects (such as
|
|
5069
|
+
* formulas, Parameters) in data panel new experience.
|
|
5034
5070
|
* @example
|
|
5035
5071
|
* ```js
|
|
5036
5072
|
* disabledActions: [Action.AddDataPanelObjects]
|
|
@@ -5039,9 +5075,9 @@ export declare enum Action {
|
|
|
5039
5075
|
*/
|
|
5040
5076
|
AddDataPanelObjects = "addDataPanelObjects",
|
|
5041
5077
|
/**
|
|
5042
|
-
* Filter configuration options on a Liveboard
|
|
5043
|
-
* Allows configuring
|
|
5044
|
-
* Liveboard
|
|
5078
|
+
* Filter configuration options on a Liveboard page.
|
|
5079
|
+
* Allows configuring filters on a
|
|
5080
|
+
* Liveboard.
|
|
5045
5081
|
* @example
|
|
5046
5082
|
* ```js
|
|
5047
5083
|
* disabledActions: [Action.ConfigureFilter]
|
|
@@ -5940,7 +5976,16 @@ export declare enum Action {
|
|
|
5940
5976
|
* ```
|
|
5941
5977
|
* @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
|
|
5942
5978
|
*/
|
|
5943
|
-
DisableChipReorder = "disableChipReorder"
|
|
5979
|
+
DisableChipReorder = "disableChipReorder",
|
|
5980
|
+
/**
|
|
5981
|
+
* Action ID for Hide Irrelevant filters button
|
|
5982
|
+
* @example
|
|
5983
|
+
* ```js
|
|
5984
|
+
* hiddenAction: [Action.ChangeFilterVisibilityInTab]
|
|
5985
|
+
* ```
|
|
5986
|
+
* @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
|
|
5987
|
+
*/
|
|
5988
|
+
ChangeFilterVisibilityInTab = "changeFilterVisibilityInTab"
|
|
5944
5989
|
}
|
|
5945
5990
|
export interface AnswerServiceType {
|
|
5946
5991
|
getAnswer?: (offset: number, batchSize: number) => any;
|