@thoughtspot/visual-embed-sdk 1.35.12 → 1.35.13
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/auth.d.ts +2 -1
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +3 -1
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +2 -0
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +44 -0
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +10 -1
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +36 -0
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/hostEventClient/contracts.d.ts +3 -3
- package/cjs/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.js +6 -1
- package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +8 -2
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/search-bar.d.ts.map +1 -1
- package/cjs/src/embed/search-bar.js +4 -2
- package/cjs/src/embed/search-bar.js.map +1 -1
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +4 -2
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js +56 -3
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +6 -0
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +38 -13
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +132 -130
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/types.d.ts +43 -17
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +35 -7
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/processData.d.ts.map +1 -1
- package/cjs/src/utils/processData.js +9 -2
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils/processData.spec.js +51 -0
- package/cjs/src/utils/processData.spec.js.map +1 -1
- package/dist/index-B3hd6DTM.js +7370 -0
- package/dist/src/auth.d.ts +2 -1
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +44 -0
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/hostEventClient/contracts.d.ts +3 -3
- package/dist/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/dist/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/search-bar.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +6 -0
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/types.d.ts +43 -17
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/processData.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +122 -34
- package/dist/tsembed-react.js +121 -33
- package/dist/tsembed.es.js +122 -34
- package/dist/tsembed.js +121 -33
- package/dist/visual-embed-sdk-react-full.d.ts +92 -21
- package/dist/visual-embed-sdk-react.d.ts +92 -21
- package/dist/visual-embed-sdk.d.ts +92 -21
- package/lib/package.json +1 -1
- package/lib/src/auth.d.ts +2 -1
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +3 -1
- package/lib/src/auth.js.map +1 -1
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +2 -0
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +44 -0
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +10 -1
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +36 -0
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/hostEventClient/contracts.d.ts +3 -3
- package/lib/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.js +6 -1
- package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +8 -2
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts.map +1 -1
- package/lib/src/embed/search-bar.js +4 -2
- package/lib/src/embed/search-bar.js.map +1 -1
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +4 -2
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +56 -3
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +6 -0
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +38 -13
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +133 -131
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/types.d.ts +43 -17
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +35 -7
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/processData.d.ts.map +1 -1
- package/lib/src/utils/processData.js +9 -2
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/processData.spec.js +51 -0
- package/lib/src/utils/processData.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +92 -21
- package/package.json +1 -1
- package/src/auth.ts +3 -1
- package/src/embed/app.ts +2 -0
- package/src/embed/conversation.spec.ts +52 -3
- package/src/embed/conversation.ts +60 -1
- package/src/embed/hostEventClient/contracts.ts +3 -3
- package/src/embed/hostEventClient/host-event-client.ts +7 -1
- package/src/embed/liveboard.ts +9 -4
- package/src/embed/search-bar.tsx +6 -4
- package/src/embed/search.spec.ts +71 -3
- package/src/embed/search.ts +6 -5
- package/src/embed/ts-embed.spec.ts +153 -180
- package/src/embed/ts-embed.ts +46 -30
- package/src/types.ts +44 -15
- package/src/utils/processData.spec.ts +63 -0
- package/src/utils/processData.ts +12 -2
package/dist/tsembed.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.35.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.35.13 */
|
|
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) :
|
|
@@ -929,6 +929,11 @@
|
|
|
929
929
|
* @hidden
|
|
930
930
|
*/
|
|
931
931
|
EmbedEvent["AuthFailure"] = "ThoughtspotAuthFailure";
|
|
932
|
+
/**
|
|
933
|
+
* ThoughtSpot failed to re validate the auth session.
|
|
934
|
+
* @hidden
|
|
935
|
+
*/
|
|
936
|
+
EmbedEvent["IdleSessionTimeout"] = "IdleSessionTimeout";
|
|
932
937
|
/**
|
|
933
938
|
* ThoughtSpot failed to validate the auth session.
|
|
934
939
|
* @hidden
|
|
@@ -1652,6 +1657,19 @@
|
|
|
1652
1657
|
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
1653
1658
|
*/
|
|
1654
1659
|
EmbedEvent["TableVizRendered"] = "TableVizRendered";
|
|
1660
|
+
/**
|
|
1661
|
+
* Emitted when the liveboard is created from pin modal or liveboard list page.
|
|
1662
|
+
* You can use this event as a hook to trigger
|
|
1663
|
+
* other events on liveboard creation.
|
|
1664
|
+
*
|
|
1665
|
+
* ```js
|
|
1666
|
+
* liveboardEmbed.on(EmbedEvent.CreateLiveboard, (payload) => {
|
|
1667
|
+
* console.log('payload', payload);
|
|
1668
|
+
* })
|
|
1669
|
+
*```
|
|
1670
|
+
* @version SDK : 1.36.0 | ThoughtSpot : 10.8.0.cl
|
|
1671
|
+
*/
|
|
1672
|
+
EmbedEvent["CreateLiveboard"] = "createLiveboard";
|
|
1655
1673
|
})(exports.EmbedEvent || (exports.EmbedEvent = {}));
|
|
1656
1674
|
/**
|
|
1657
1675
|
* Event types that can be triggered by the host application
|
|
@@ -2658,6 +2676,7 @@
|
|
|
2658
2676
|
Param["HideResult"] = "hideResult";
|
|
2659
2677
|
Param["UseLastSelectedDataSource"] = "useLastSelectedSources";
|
|
2660
2678
|
Param["Tag"] = "tag";
|
|
2679
|
+
Param["AutoLogin"] = "autoLogin";
|
|
2661
2680
|
Param["searchTokenString"] = "searchTokenString";
|
|
2662
2681
|
Param["executeSearch"] = "executeSearch";
|
|
2663
2682
|
Param["fullHeight"] = "isFullHeightPinboard";
|
|
@@ -2740,10 +2759,10 @@
|
|
|
2740
2759
|
Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
|
|
2741
2760
|
Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
|
|
2742
2761
|
Param["OverrideOrgId"] = "orgId";
|
|
2743
|
-
Param["EnableFlipTooltipToContextMenu"] = "flipTooltipToContextMenuEnabled";
|
|
2744
2762
|
Param["OauthPollingInterval"] = "oAuthPollingInterval";
|
|
2745
2763
|
Param["IsForceRedirect"] = "isForceRedirect";
|
|
2746
2764
|
Param["DataSourceId"] = "dataSourceId";
|
|
2765
|
+
Param["ShowSpotterLimitations"] = "showSpotterLimitations";
|
|
2747
2766
|
})(Param || (Param = {}));
|
|
2748
2767
|
/**
|
|
2749
2768
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -3950,10 +3969,17 @@
|
|
|
3950
3969
|
ContextMenuTriggerOptions["RIGHT_CLICK"] = "right-click";
|
|
3951
3970
|
ContextMenuTriggerOptions["BOTH_CLICKS"] = "both-clicks";
|
|
3952
3971
|
})(exports.ContextMenuTriggerOptions || (exports.ContextMenuTriggerOptions = {}));
|
|
3972
|
+
/**
|
|
3973
|
+
* Enum options to show or suppress Visual Embed SDK and
|
|
3974
|
+
* ThoughtSpot application logs in the console output.
|
|
3975
|
+
* This attribute doesn't support suppressing
|
|
3976
|
+
* browser warnings or errors.
|
|
3977
|
+
*/
|
|
3953
3978
|
exports.LogLevel = void 0;
|
|
3954
3979
|
(function (LogLevel) {
|
|
3955
3980
|
/**
|
|
3956
|
-
* No logs will be logged
|
|
3981
|
+
* No application or SDK-related logs will be logged
|
|
3982
|
+
* in the console output.
|
|
3957
3983
|
* @example
|
|
3958
3984
|
* ```js
|
|
3959
3985
|
* init({
|
|
@@ -3965,7 +3991,7 @@
|
|
|
3965
3991
|
*/
|
|
3966
3992
|
LogLevel["SILENT"] = "SILENT";
|
|
3967
3993
|
/**
|
|
3968
|
-
*
|
|
3994
|
+
* Log only errors in the console output.
|
|
3969
3995
|
* @example
|
|
3970
3996
|
* ```js
|
|
3971
3997
|
* init({
|
|
@@ -3977,7 +4003,7 @@
|
|
|
3977
4003
|
*/
|
|
3978
4004
|
LogLevel["ERROR"] = "ERROR";
|
|
3979
4005
|
/**
|
|
3980
|
-
*
|
|
4006
|
+
* Log only warnings and errors in the console output.
|
|
3981
4007
|
* @example
|
|
3982
4008
|
* ```js
|
|
3983
4009
|
* init({
|
|
@@ -3989,7 +4015,8 @@
|
|
|
3989
4015
|
*/
|
|
3990
4016
|
LogLevel["WARN"] = "WARN";
|
|
3991
4017
|
/**
|
|
3992
|
-
*
|
|
4018
|
+
* Log only the information alerts, warnings, and errors
|
|
4019
|
+
* in the console output.
|
|
3993
4020
|
* @example
|
|
3994
4021
|
* ```js
|
|
3995
4022
|
* init({
|
|
@@ -4001,7 +4028,8 @@
|
|
|
4001
4028
|
*/
|
|
4002
4029
|
LogLevel["INFO"] = "INFO";
|
|
4003
4030
|
/**
|
|
4004
|
-
*
|
|
4031
|
+
* Log debug messages, warnings, information alerts,
|
|
4032
|
+
* and errors in the console output.
|
|
4005
4033
|
* @example
|
|
4006
4034
|
* ```js
|
|
4007
4035
|
* init({
|
|
@@ -4013,7 +4041,7 @@
|
|
|
4013
4041
|
*/
|
|
4014
4042
|
LogLevel["DEBUG"] = "DEBUG";
|
|
4015
4043
|
/**
|
|
4016
|
-
* All logs will be logged in the console.
|
|
4044
|
+
* All logs will be logged in the browser console.
|
|
4017
4045
|
* @example
|
|
4018
4046
|
* ```js
|
|
4019
4047
|
* init({
|
|
@@ -14108,6 +14136,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14108
14136
|
AuthFailureType["NO_COOKIE_ACCESS"] = "NO_COOKIE_ACCESS";
|
|
14109
14137
|
AuthFailureType["EXPIRY"] = "EXPIRY";
|
|
14110
14138
|
AuthFailureType["OTHER"] = "OTHER";
|
|
14139
|
+
AuthFailureType["IDLE_SESSION_TIMEOUT"] = "IDLE_SESSION_TIMEOUT";
|
|
14111
14140
|
})(exports.AuthFailureType || (exports.AuthFailureType = {}));
|
|
14112
14141
|
/**
|
|
14113
14142
|
* Enum for auth status emitted by the emitter returned from {@link init}.
|
|
@@ -14433,7 +14462,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14433
14462
|
? `${thoughtSpotHost}/v2/#/embed/saml-complete`
|
|
14434
14463
|
: getRedirectUrl(window.location.href, SSO_REDIRECTION_MARKER_GUID, embedConfig.redirectPath);
|
|
14435
14464
|
// bring back the page to the same URL
|
|
14436
|
-
const
|
|
14465
|
+
const baseEndpoint = `${EndPoints.OIDC_LOGIN_TEMPLATE(encodeURIComponent(ssoRedirectUrl))}`;
|
|
14466
|
+
const ssoEndPoint = `${baseEndpoint}${baseEndpoint.includes('?') ? '&' : '?'}forceSAMLAutoRedirect=true`;
|
|
14437
14467
|
await doSSOAuth(embedConfig, ssoEndPoint);
|
|
14438
14468
|
return loggedInStatus;
|
|
14439
14469
|
};
|
|
@@ -14845,8 +14875,15 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14845
14875
|
* @param containerEl
|
|
14846
14876
|
*/
|
|
14847
14877
|
function processAuthFailure(e, containerEl) {
|
|
14848
|
-
const { loginFailedMessage, authType, disableLoginFailurePage } = getEmbedConfig();
|
|
14849
|
-
if (
|
|
14878
|
+
const { loginFailedMessage, authType, disableLoginFailurePage, autoLogin, } = getEmbedConfig();
|
|
14879
|
+
if (autoLogin
|
|
14880
|
+
&& (authType === exports.AuthType.TrustedAuthToken
|
|
14881
|
+
|| authType === exports.AuthType.TrustedAuthTokenCookieless)) {
|
|
14882
|
+
// eslint-disable-next-line no-param-reassign
|
|
14883
|
+
containerEl.innerHTML = loginFailedMessage;
|
|
14884
|
+
notifyAuthFailure(exports.AuthFailureType.IDLE_SESSION_TIMEOUT);
|
|
14885
|
+
}
|
|
14886
|
+
else if (authType !== exports.AuthType.None && !disableLoginFailurePage) {
|
|
14850
14887
|
// eslint-disable-next-line no-param-reassign
|
|
14851
14888
|
containerEl.innerHTML = loginFailedMessage;
|
|
14852
14889
|
notifyAuthFailure(exports.AuthFailureType.OTHER);
|
|
@@ -14891,7 +14928,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14891
14928
|
return e;
|
|
14892
14929
|
}
|
|
14893
14930
|
|
|
14894
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.
|
|
14931
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.13";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:"31 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
|
|
14895
14932
|
|
|
14896
14933
|
/**
|
|
14897
14934
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -15016,7 +15053,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15016
15053
|
if (!payload || !('newVizName' in payload)) {
|
|
15017
15054
|
return this.hostEventFallback(exports.HostEvent.Pin, payload);
|
|
15018
15055
|
}
|
|
15019
|
-
|
|
15056
|
+
const formattedPayload = {
|
|
15057
|
+
...payload,
|
|
15058
|
+
pinboardId: payload.liveboardId,
|
|
15059
|
+
newPinboardName: payload.newLiveboardName,
|
|
15060
|
+
};
|
|
15061
|
+
return this.handleHostEventWithParam(exports.UIPassthroughEvent.PinAnswerToLiveboard, formattedPayload);
|
|
15020
15062
|
}
|
|
15021
15063
|
async handleSaveAnswerEvent(payload) {
|
|
15022
15064
|
var _a, _b, _c, _d;
|
|
@@ -15135,12 +15177,37 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15135
15177
|
}
|
|
15136
15178
|
notifyAuthFailure(exports.AuthFailureType.EXPIRY);
|
|
15137
15179
|
};
|
|
15180
|
+
/**
|
|
15181
|
+
* Auto Login and send updated authToken to the iFrame to avoid user session logout
|
|
15182
|
+
* @param _
|
|
15183
|
+
* @param responder
|
|
15184
|
+
*/
|
|
15185
|
+
this.idleSessionTimeout = (_, responder) => {
|
|
15186
|
+
handleAuth().then(async () => {
|
|
15187
|
+
let authToken = '';
|
|
15188
|
+
try {
|
|
15189
|
+
authToken = await getAuthenticationToken(this.embedConfig);
|
|
15190
|
+
responder({
|
|
15191
|
+
type: exports.EmbedEvent.IdleSessionTimeout,
|
|
15192
|
+
data: { authToken },
|
|
15193
|
+
});
|
|
15194
|
+
}
|
|
15195
|
+
catch (e) {
|
|
15196
|
+
logger$3.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e === null || e === void 0 ? void 0 : e.message}`);
|
|
15197
|
+
processAuthFailure(e, this.isPreRendered ? this.preRenderWrapper : this.el);
|
|
15198
|
+
}
|
|
15199
|
+
}).catch((e) => {
|
|
15200
|
+
logger$3.error(`Auto Login failed, Error : ${e === null || e === void 0 ? void 0 : e.message}`);
|
|
15201
|
+
});
|
|
15202
|
+
notifyAuthFailure(exports.AuthFailureType.IDLE_SESSION_TIMEOUT);
|
|
15203
|
+
};
|
|
15138
15204
|
/**
|
|
15139
15205
|
* Register APP_INIT event and sendback init payload
|
|
15140
15206
|
*/
|
|
15141
15207
|
this.registerAppInit = () => {
|
|
15142
15208
|
this.on(exports.EmbedEvent.APP_INIT, this.appInitCb, { start: false }, true);
|
|
15143
15209
|
this.on(exports.EmbedEvent.AuthExpire, this.updateAuthToken, { start: false }, true);
|
|
15210
|
+
this.on(exports.EmbedEvent.IdleSessionTimeout, this.idleSessionTimeout, { start: false }, true);
|
|
15144
15211
|
};
|
|
15145
15212
|
this.showPreRenderByDefault = false;
|
|
15146
15213
|
this.validatePreRenderViewConfig = (viewConfig) => {
|
|
@@ -15323,7 +15390,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15323
15390
|
* @param query
|
|
15324
15391
|
*/
|
|
15325
15392
|
getEmbedBasePath(query) {
|
|
15326
|
-
let queryString =
|
|
15393
|
+
let queryString = query.startsWith('?') ? query : `?${query}`;
|
|
15327
15394
|
if (this.shouldEncodeUrlQueryParams) {
|
|
15328
15395
|
queryString = `?base64UrlEncodedFlags=${getEncodedQueryParamsString(queryString.substr(1))}`;
|
|
15329
15396
|
}
|
|
@@ -15338,20 +15405,22 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15338
15405
|
* @returns queryParams
|
|
15339
15406
|
*/
|
|
15340
15407
|
getBaseQueryParams(queryParams = {}) {
|
|
15341
|
-
var _a, _b
|
|
15408
|
+
var _a, _b;
|
|
15342
15409
|
let hostAppUrl = ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.host) || '';
|
|
15343
15410
|
// The below check is needed because TS Cloud firewall, blocks
|
|
15344
15411
|
// localhost/127.0.0.1 in any url param.
|
|
15345
15412
|
if (hostAppUrl.includes('localhost') || hostAppUrl.includes('127.0.0.1')) {
|
|
15346
15413
|
hostAppUrl = 'local-host';
|
|
15347
15414
|
}
|
|
15415
|
+
const blockNonEmbedFullAppAccess = (_b = this.embedConfig.blockNonEmbedFullAppAccess) !== null && _b !== void 0 ? _b : true;
|
|
15348
15416
|
queryParams[Param.EmbedApp] = true;
|
|
15349
15417
|
queryParams[Param.HostAppUrl] = encodeURIComponent(hostAppUrl);
|
|
15350
15418
|
queryParams[Param.ViewPortHeight] = window.innerHeight;
|
|
15351
15419
|
queryParams[Param.ViewPortWidth] = window.innerWidth;
|
|
15352
15420
|
queryParams[Param.Version] = version;
|
|
15353
15421
|
queryParams[Param.AuthType] = this.embedConfig.authType;
|
|
15354
|
-
queryParams[Param.blockNonEmbedFullAppAccess] =
|
|
15422
|
+
queryParams[Param.blockNonEmbedFullAppAccess] = blockNonEmbedFullAppAccess;
|
|
15423
|
+
queryParams[Param.AutoLogin] = this.embedConfig.autoLogin;
|
|
15355
15424
|
if (this.embedConfig.disableLoginRedirect === true || this.embedConfig.autoLogin === true) {
|
|
15356
15425
|
queryParams[Param.DisableLoginRedirect] = true;
|
|
15357
15426
|
}
|
|
@@ -15373,15 +15442,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15373
15442
|
if (this.embedConfig.currencyFormat) {
|
|
15374
15443
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
15375
15444
|
}
|
|
15376
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId,
|
|
15445
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, } = this.viewConfig;
|
|
15377
15446
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
15378
15447
|
const additionalFlags = {
|
|
15379
15448
|
...additionalFlagsFromInit,
|
|
15380
15449
|
...additionalFlagsFromView,
|
|
15381
15450
|
};
|
|
15382
|
-
if (enableFlipTooltipToContextMenu) {
|
|
15383
|
-
queryParams[Param.EnableFlipTooltipToContextMenu] = enableFlipTooltipToContextMenu;
|
|
15384
|
-
}
|
|
15385
15451
|
if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
|
|
15386
15452
|
this.handleError('You cannot have both hidden actions and visible actions');
|
|
15387
15453
|
return queryParams;
|
|
@@ -15420,8 +15486,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15420
15486
|
else if (contextMenuTrigger === exports.ContextMenuTriggerOptions.BOTH_CLICKS) {
|
|
15421
15487
|
queryParams[Param.ContextMenuTrigger] = 'both';
|
|
15422
15488
|
}
|
|
15423
|
-
const
|
|
15424
|
-
|
|
15489
|
+
const embedCustomizations = this.embedConfig.customizations;
|
|
15490
|
+
const spriteUrl = (customizations === null || customizations === void 0 ? void 0 : customizations.iconSpriteUrl) || (embedCustomizations === null || embedCustomizations === void 0 ? void 0 : embedCustomizations.iconSpriteUrl);
|
|
15425
15491
|
if (spriteUrl) {
|
|
15426
15492
|
queryParams[Param.IconSpriteUrl] = spriteUrl.replace('https://', '');
|
|
15427
15493
|
}
|
|
@@ -15493,7 +15559,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15493
15559
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
15494
15560
|
// @ts-ignore
|
|
15495
15561
|
iFrame.allow = 'clipboard-read; clipboard-write; fullscreen;';
|
|
15496
|
-
const
|
|
15562
|
+
const frameParams = this.viewConfig.frameParams;
|
|
15563
|
+
const { height: frameHeight, width: frameWidth, ...restParams } = frameParams || {};
|
|
15497
15564
|
const width = getCssDimension(frameWidth || DEFAULT_EMBED_WIDTH);
|
|
15498
15565
|
const height = getCssDimension(frameHeight || DEFAULT_EMBED_HEIGHT);
|
|
15499
15566
|
setAttributes(iFrame, restParams);
|
|
@@ -15598,8 +15665,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15598
15665
|
}
|
|
15599
15666
|
connectPreRendered() {
|
|
15600
15667
|
const preRenderIds = this.getPreRenderIds();
|
|
15601
|
-
|
|
15602
|
-
|
|
15668
|
+
const preRenderWrapperElement = document.getElementById(preRenderIds.wrapper);
|
|
15669
|
+
this.preRenderWrapper = this.preRenderWrapper || preRenderWrapperElement;
|
|
15603
15670
|
this.preRenderChild = this.preRenderChild || document.getElementById(preRenderIds.child);
|
|
15604
15671
|
if (this.preRenderWrapper && this.preRenderChild) {
|
|
15605
15672
|
this.isPreRendered = true;
|
|
@@ -16101,7 +16168,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
16101
16168
|
const filterQuery = getFilterQuery(runtimeFilters || []);
|
|
16102
16169
|
queryString = [filterQuery, queryString].filter(Boolean).join('&');
|
|
16103
16170
|
}
|
|
16104
|
-
return
|
|
16171
|
+
return this.viewConfig.enableV2Shell_experimental
|
|
16105
16172
|
? this.getEmbedBasePath(queryString)
|
|
16106
16173
|
: this.getV1EmbedBasePath(queryString);
|
|
16107
16174
|
}
|
|
@@ -16234,6 +16301,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
16234
16301
|
'/embed/insights/viz/',
|
|
16235
16302
|
'/liveboard/',
|
|
16236
16303
|
'/insights/liveboard/',
|
|
16304
|
+
'/tsl-editor/PINBOARD_ANSWER_BOOK/',
|
|
16305
|
+
'/import-tsl/PINBOARD_ANSWER_BOOK/',
|
|
16237
16306
|
];
|
|
16238
16307
|
if (liveboardRelatedRoutes.some((path) => data.data.currentPath.startsWith(path))) {
|
|
16239
16308
|
// Ignore the height reset of the frame, if the navigation is
|
|
@@ -16495,6 +16564,12 @@ query GetEurekaVizSnapshots(
|
|
|
16495
16564
|
* @summary Liveboard & visualization embed
|
|
16496
16565
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
16497
16566
|
*/
|
|
16567
|
+
const liveboardHeightWhitelistedRoutes = [
|
|
16568
|
+
'/embed/viz/',
|
|
16569
|
+
'/embed/insights/viz/',
|
|
16570
|
+
'/tsl-editor/PINBOARD_ANSWER_BOOK/',
|
|
16571
|
+
'/import-tsl/PINBOARD_ANSWER_BOOK/',
|
|
16572
|
+
];
|
|
16498
16573
|
/**
|
|
16499
16574
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
16500
16575
|
* waits for the authentication to complete, so you need not wait for
|
|
@@ -16529,8 +16604,8 @@ query GetEurekaVizSnapshots(
|
|
|
16529
16604
|
responder({ type: exports.EmbedEvent.EmbedIframeCenter, data: obj });
|
|
16530
16605
|
};
|
|
16531
16606
|
this.setIframeHeightForNonEmbedLiveboard = (data) => {
|
|
16532
|
-
|
|
16533
|
-
|
|
16607
|
+
const routePath = data.data.currentPath;
|
|
16608
|
+
if (liveboardHeightWhitelistedRoutes.some((path) => routePath.startsWith(path))) {
|
|
16534
16609
|
return;
|
|
16535
16610
|
}
|
|
16536
16611
|
this.setIFrameHeight(this.defaultHeight);
|
|
@@ -16841,8 +16916,10 @@ query GetEurekaVizSnapshots(
|
|
|
16841
16916
|
if (dataSource) {
|
|
16842
16917
|
queryParams[Param.DataSources] = `["${dataSource}"]`;
|
|
16843
16918
|
}
|
|
16844
|
-
if (
|
|
16845
|
-
|
|
16919
|
+
if (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) {
|
|
16920
|
+
if (!excludeSearchTokenStringFromURL) {
|
|
16921
|
+
queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
|
|
16922
|
+
}
|
|
16846
16923
|
if (searchOptions.executeSearch) {
|
|
16847
16924
|
queryParams[Param.executeSearch] = true;
|
|
16848
16925
|
}
|
|
@@ -16959,8 +17036,10 @@ query GetEurekaVizSnapshots(
|
|
|
16959
17036
|
if (dataSource) {
|
|
16960
17037
|
queryParams[Param.DataSources] = `["${dataSource}"]`;
|
|
16961
17038
|
}
|
|
16962
|
-
if (
|
|
16963
|
-
|
|
17039
|
+
if (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) {
|
|
17040
|
+
if (!excludeSearchTokenStringFromURL) {
|
|
17041
|
+
queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
|
|
17042
|
+
}
|
|
16964
17043
|
if (searchOptions.executeSearch) {
|
|
16965
17044
|
queryParams[Param.executeSearch] = true;
|
|
16966
17045
|
}
|
|
@@ -17500,7 +17579,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
17500
17579
|
this.viewConfig = viewConfig;
|
|
17501
17580
|
}
|
|
17502
17581
|
getIframeSrc() {
|
|
17503
|
-
const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, } = this.viewConfig;
|
|
17582
|
+
const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, } = this.viewConfig;
|
|
17504
17583
|
const path = 'insights/conv-assist';
|
|
17505
17584
|
if (!worksheetId) {
|
|
17506
17585
|
this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
|
|
@@ -17513,6 +17592,15 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
17513
17592
|
if (!isUndefined_1(hideSourceSelection)) {
|
|
17514
17593
|
queryParams[Param.HideSourceSelection] = !!hideSourceSelection;
|
|
17515
17594
|
}
|
|
17595
|
+
if (!isUndefined_1(dataPanelV2)) {
|
|
17596
|
+
queryParams[Param.DataPanelV2Enabled] = !!dataPanelV2;
|
|
17597
|
+
}
|
|
17598
|
+
if (!isUndefined_1(showSpotterLimitations)) {
|
|
17599
|
+
queryParams[Param.ShowSpotterLimitations] = !!showSpotterLimitations;
|
|
17600
|
+
}
|
|
17601
|
+
if (!isUndefined_1(hideSampleQuestions)) {
|
|
17602
|
+
queryParams[Param.HideSampleQuestions] = !!hideSampleQuestions;
|
|
17603
|
+
}
|
|
17516
17604
|
let query = '';
|
|
17517
17605
|
const queryParamsString = getQueryParamString(queryParams, true);
|
|
17518
17606
|
if (queryParamsString) {
|
|
@@ -1750,6 +1750,10 @@ export interface SearchOptions {
|
|
|
1750
1750
|
*/
|
|
1751
1751
|
searchQuery: string;
|
|
1752
1752
|
}
|
|
1753
|
+
/**
|
|
1754
|
+
* The configuration for the embedded conversationEmbed options.
|
|
1755
|
+
* @group Embed components
|
|
1756
|
+
*/
|
|
1753
1757
|
export interface ConversationViewConfig extends ViewConfig {
|
|
1754
1758
|
/**
|
|
1755
1759
|
* The ID of the worksheet to use for the conversation.
|
|
@@ -1784,6 +1788,46 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
1784
1788
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
1785
1789
|
*/
|
|
1786
1790
|
hideSourceSelection?: boolean;
|
|
1791
|
+
/**
|
|
1792
|
+
* Flag to control Data panel experience
|
|
1793
|
+
* @default false
|
|
1794
|
+
* @version SDK: 1.36.0 | ThoughtSpot Cloud: 10.4.0.cl
|
|
1795
|
+
* @example
|
|
1796
|
+
* ```js
|
|
1797
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
1798
|
+
* ... // other options
|
|
1799
|
+
* dataPanelV2: true,
|
|
1800
|
+
* })
|
|
1801
|
+
* ```
|
|
1802
|
+
*/
|
|
1803
|
+
dataPanelV2?: boolean;
|
|
1804
|
+
/**
|
|
1805
|
+
* showSpotterLimitations : show limitation text
|
|
1806
|
+
* of the spotter underneath the chat input.
|
|
1807
|
+
* default is false.
|
|
1808
|
+
* @example
|
|
1809
|
+
* ```js
|
|
1810
|
+
* const embed = new ConversationEmbed('#tsEmbed', {
|
|
1811
|
+
* ... // other options
|
|
1812
|
+
* showSpotterLimitations : true,
|
|
1813
|
+
* })
|
|
1814
|
+
* ```
|
|
1815
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.5.0.cl
|
|
1816
|
+
*/
|
|
1817
|
+
showSpotterLimitations?: boolean;
|
|
1818
|
+
/**
|
|
1819
|
+
* hideSampleQuestions : Hide sample questions on
|
|
1820
|
+
* the initial screen of the conversation.
|
|
1821
|
+
* @example
|
|
1822
|
+
* ```js
|
|
1823
|
+
* const embed = new ConversationEmbed('#tsEmbed', {
|
|
1824
|
+
* ... // other options
|
|
1825
|
+
* hideSampleQuestions : true,
|
|
1826
|
+
* })
|
|
1827
|
+
* ```
|
|
1828
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
1829
|
+
*/
|
|
1830
|
+
hideSampleQuestions?: boolean;
|
|
1787
1831
|
}
|
|
1788
1832
|
/**
|
|
1789
1833
|
* Embed ThoughtSpot AI Conversation.
|
|
@@ -1997,7 +2041,8 @@ export declare enum AuthFailureType {
|
|
|
1997
2041
|
SDK = "SDK",
|
|
1998
2042
|
NO_COOKIE_ACCESS = "NO_COOKIE_ACCESS",
|
|
1999
2043
|
EXPIRY = "EXPIRY",
|
|
2000
|
-
OTHER = "OTHER"
|
|
2044
|
+
OTHER = "OTHER",
|
|
2045
|
+
IDLE_SESSION_TIMEOUT = "IDLE_SESSION_TIMEOUT"
|
|
2001
2046
|
}
|
|
2002
2047
|
/**
|
|
2003
2048
|
* Enum for auth status emitted by the emitter returned from {@link init}.
|
|
@@ -2724,7 +2769,12 @@ export interface EmbedConfig {
|
|
|
2724
2769
|
*/
|
|
2725
2770
|
suppressErrorAlerts?: boolean;
|
|
2726
2771
|
/**
|
|
2727
|
-
*
|
|
2772
|
+
* Suppress or show specific types of logs in the console output.
|
|
2773
|
+
* For example, `LogLevel.ERROR` shows only Visual Embed SDK and
|
|
2774
|
+
* ThoughtSpot application errors and suppresses
|
|
2775
|
+
* other logs such as warnings, information alerts,
|
|
2776
|
+
* and debug messages in the console output.
|
|
2777
|
+
*
|
|
2728
2778
|
* @default LogLevel.ERROR
|
|
2729
2779
|
* @example
|
|
2730
2780
|
* ```js
|
|
@@ -3304,13 +3354,6 @@ export interface ViewConfig {
|
|
|
3304
3354
|
* @version SDK: 1.35.0 | ThoughtSpot: 10.5.0.cl
|
|
3305
3355
|
*/
|
|
3306
3356
|
overrideOrgId?: number;
|
|
3307
|
-
/**
|
|
3308
|
-
* Flag to enhance the visual effects of charts
|
|
3309
|
-
* This feature is a beta release for 10.6
|
|
3310
|
-
* @default false
|
|
3311
|
-
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
3312
|
-
*/
|
|
3313
|
-
enableFlipTooltipToContextMenu?: boolean;
|
|
3314
3357
|
}
|
|
3315
3358
|
/**
|
|
3316
3359
|
* MessagePayload: Embed event payload: message type, data and status (start/end)
|
|
@@ -3762,6 +3805,11 @@ export declare enum EmbedEvent {
|
|
|
3762
3805
|
* @hidden
|
|
3763
3806
|
*/
|
|
3764
3807
|
AuthFailure = "ThoughtspotAuthFailure",
|
|
3808
|
+
/**
|
|
3809
|
+
* ThoughtSpot failed to re validate the auth session.
|
|
3810
|
+
* @hidden
|
|
3811
|
+
*/
|
|
3812
|
+
IdleSessionTimeout = "IdleSessionTimeout",
|
|
3765
3813
|
/**
|
|
3766
3814
|
* ThoughtSpot failed to validate the auth session.
|
|
3767
3815
|
* @hidden
|
|
@@ -4484,7 +4532,20 @@ export declare enum EmbedEvent {
|
|
|
4484
4532
|
* ```
|
|
4485
4533
|
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
4486
4534
|
*/
|
|
4487
|
-
TableVizRendered = "TableVizRendered"
|
|
4535
|
+
TableVizRendered = "TableVizRendered",
|
|
4536
|
+
/**
|
|
4537
|
+
* Emitted when the liveboard is created from pin modal or liveboard list page.
|
|
4538
|
+
* You can use this event as a hook to trigger
|
|
4539
|
+
* other events on liveboard creation.
|
|
4540
|
+
*
|
|
4541
|
+
* ```js
|
|
4542
|
+
* liveboardEmbed.on(EmbedEvent.CreateLiveboard, (payload) => {
|
|
4543
|
+
* console.log('payload', payload);
|
|
4544
|
+
* })
|
|
4545
|
+
*```
|
|
4546
|
+
* @version SDK : 1.36.0 | ThoughtSpot : 10.8.0.cl
|
|
4547
|
+
*/
|
|
4548
|
+
CreateLiveboard = "createLiveboard"
|
|
4488
4549
|
}
|
|
4489
4550
|
/**
|
|
4490
4551
|
* Event types that can be triggered by the host application
|
|
@@ -5485,6 +5546,7 @@ export declare enum Param {
|
|
|
5485
5546
|
HideResult = "hideResult",
|
|
5486
5547
|
UseLastSelectedDataSource = "useLastSelectedSources",
|
|
5487
5548
|
Tag = "tag",
|
|
5549
|
+
AutoLogin = "autoLogin",
|
|
5488
5550
|
searchTokenString = "searchTokenString",
|
|
5489
5551
|
executeSearch = "executeSearch",
|
|
5490
5552
|
fullHeight = "isFullHeightPinboard",
|
|
@@ -5561,10 +5623,10 @@ export declare enum Param {
|
|
|
5561
5623
|
SpotterEnabled = "isSpotterExperienceEnabled",
|
|
5562
5624
|
IsUnifiedSearchExperienceEnabled = "isUnifiedSearchExperienceEnabled",
|
|
5563
5625
|
OverrideOrgId = "orgId",
|
|
5564
|
-
EnableFlipTooltipToContextMenu = "flipTooltipToContextMenuEnabled",
|
|
5565
5626
|
OauthPollingInterval = "oAuthPollingInterval",
|
|
5566
5627
|
IsForceRedirect = "isForceRedirect",
|
|
5567
|
-
DataSourceId = "dataSourceId"
|
|
5628
|
+
DataSourceId = "dataSourceId",
|
|
5629
|
+
ShowSpotterLimitations = "showSpotterLimitations"
|
|
5568
5630
|
}
|
|
5569
5631
|
/**
|
|
5570
5632
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -6811,9 +6873,16 @@ export interface CustomActionPayload {
|
|
|
6811
6873
|
session: SessionInterface;
|
|
6812
6874
|
vizId?: string;
|
|
6813
6875
|
}
|
|
6876
|
+
/**
|
|
6877
|
+
* Enum options to show or suppress Visual Embed SDK and
|
|
6878
|
+
* ThoughtSpot application logs in the console output.
|
|
6879
|
+
* This attribute doesn't support suppressing
|
|
6880
|
+
* browser warnings or errors.
|
|
6881
|
+
*/
|
|
6814
6882
|
export declare enum LogLevel {
|
|
6815
6883
|
/**
|
|
6816
|
-
* No logs will be logged
|
|
6884
|
+
* No application or SDK-related logs will be logged
|
|
6885
|
+
* in the console output.
|
|
6817
6886
|
* @example
|
|
6818
6887
|
* ```js
|
|
6819
6888
|
* init({
|
|
@@ -6825,7 +6894,7 @@ export declare enum LogLevel {
|
|
|
6825
6894
|
*/
|
|
6826
6895
|
SILENT = "SILENT",
|
|
6827
6896
|
/**
|
|
6828
|
-
*
|
|
6897
|
+
* Log only errors in the console output.
|
|
6829
6898
|
* @example
|
|
6830
6899
|
* ```js
|
|
6831
6900
|
* init({
|
|
@@ -6837,7 +6906,7 @@ export declare enum LogLevel {
|
|
|
6837
6906
|
*/
|
|
6838
6907
|
ERROR = "ERROR",
|
|
6839
6908
|
/**
|
|
6840
|
-
*
|
|
6909
|
+
* Log only warnings and errors in the console output.
|
|
6841
6910
|
* @example
|
|
6842
6911
|
* ```js
|
|
6843
6912
|
* init({
|
|
@@ -6849,7 +6918,8 @@ export declare enum LogLevel {
|
|
|
6849
6918
|
*/
|
|
6850
6919
|
WARN = "WARN",
|
|
6851
6920
|
/**
|
|
6852
|
-
*
|
|
6921
|
+
* Log only the information alerts, warnings, and errors
|
|
6922
|
+
* in the console output.
|
|
6853
6923
|
* @example
|
|
6854
6924
|
* ```js
|
|
6855
6925
|
* init({
|
|
@@ -6861,7 +6931,8 @@ export declare enum LogLevel {
|
|
|
6861
6931
|
*/
|
|
6862
6932
|
INFO = "INFO",
|
|
6863
6933
|
/**
|
|
6864
|
-
*
|
|
6934
|
+
* Log debug messages, warnings, information alerts,
|
|
6935
|
+
* and errors in the console output.
|
|
6865
6936
|
* @example
|
|
6866
6937
|
* ```js
|
|
6867
6938
|
* init({
|
|
@@ -6873,7 +6944,7 @@ export declare enum LogLevel {
|
|
|
6873
6944
|
*/
|
|
6874
6945
|
DEBUG = "DEBUG",
|
|
6875
6946
|
/**
|
|
6876
|
-
* All logs will be logged in the console.
|
|
6947
|
+
* All logs will be logged in the browser console.
|
|
6877
6948
|
* @example
|
|
6878
6949
|
* ```js
|
|
6879
6950
|
* init({
|
|
@@ -7567,13 +7638,13 @@ export type UIPassthroughContractBase = {
|
|
|
7567
7638
|
vizId?: string;
|
|
7568
7639
|
newVizName: string;
|
|
7569
7640
|
newVizDescription?: string;
|
|
7570
|
-
|
|
7641
|
+
liveboardId?: string;
|
|
7571
7642
|
tabId?: string;
|
|
7572
|
-
|
|
7643
|
+
newLiveboardName?: string;
|
|
7573
7644
|
newTabName?: string;
|
|
7574
7645
|
};
|
|
7575
7646
|
response: {
|
|
7576
|
-
|
|
7647
|
+
liveboardId: string;
|
|
7577
7648
|
tabId: string;
|
|
7578
7649
|
vizId: string;
|
|
7579
7650
|
};
|