@thoughtspot/visual-embed-sdk 1.28.2 → 1.28.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/package.json +2 -1
- package/cjs/src/embed/app.d.ts +38 -0
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +7 -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/liveboard.d.ts +16 -0
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +8 -3
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +61 -4
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/sage.d.ts +4 -4
- package/cjs/src/embed/sage.d.ts.map +1 -1
- package/cjs/src/embed/sage.js +2 -18
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/sage.spec.js +20 -31
- package/cjs/src/embed/sage.spec.js.map +1 -1
- package/cjs/src/embed/search.d.ts +22 -0
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +3 -1
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js +2 -1
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +9 -0
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +18 -0
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/errors.js +1 -1
- package/cjs/src/errors.js.map +1 -1
- package/cjs/src/react/index.spec.js +1 -1
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/types.d.ts +106 -9
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +87 -4
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
- package/cjs/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
- package/cjs/src/utils/authService/tokenizedAuthService.spec.js +32 -0
- package/cjs/src/utils/authService/tokenizedAuthService.spec.js.map +1 -0
- package/cjs/src/utils/sessionInfoService.d.ts +66 -0
- package/cjs/src/utils/sessionInfoService.d.ts.map +1 -0
- package/cjs/src/utils/sessionInfoService.js +92 -0
- package/cjs/src/utils/sessionInfoService.js.map +1 -0
- package/dist/src/embed/app.d.ts +38 -0
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +16 -0
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts +4 -4
- package/dist/src/embed/sage.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +22 -0
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/types.d.ts +106 -9
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
- package/dist/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
- package/dist/src/utils/sessionInfoService.d.ts +66 -0
- package/dist/src/utils/sessionInfoService.d.ts.map +1 -0
- package/dist/tsembed-react.es.js +117 -28
- package/dist/tsembed-react.js +117 -28
- package/dist/tsembed.es.js +117 -28
- package/dist/tsembed.js +117 -28
- package/dist/visual-embed-sdk-react-full.d.ts +185 -12
- package/dist/visual-embed-sdk-react.d.ts +185 -12
- package/dist/visual-embed-sdk.d.ts +185 -12
- package/lib/package.json +2 -1
- package/lib/src/embed/app.d.ts +38 -0
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +7 -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/liveboard.d.ts +16 -0
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +8 -3
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +61 -4
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/sage.d.ts +4 -4
- package/lib/src/embed/sage.d.ts.map +1 -1
- package/lib/src/embed/sage.js +2 -18
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/sage.spec.js +20 -31
- package/lib/src/embed/sage.spec.js.map +1 -1
- package/lib/src/embed/search.d.ts +22 -0
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +3 -1
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +2 -1
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +9 -0
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +18 -0
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/errors.js +1 -1
- package/lib/src/errors.js.map +1 -1
- package/lib/src/react/index.spec.js +1 -1
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/types.d.ts +106 -9
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +87 -4
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
- package/lib/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
- package/lib/src/utils/authService/tokenizedAuthService.spec.js +29 -0
- package/lib/src/utils/authService/tokenizedAuthService.spec.js.map +1 -0
- package/lib/src/utils/sessionInfoService.d.ts +66 -0
- package/lib/src/utils/sessionInfoService.d.ts.map +1 -0
- package/lib/src/utils/sessionInfoService.js +85 -0
- package/lib/src/utils/sessionInfoService.js.map +1 -0
- package/lib/src/visual-embed-sdk.d.ts +186 -13
- package/package.json +2 -1
- package/src/embed/app.spec.ts +15 -0
- package/src/embed/app.ts +48 -0
- package/src/embed/liveboard.spec.ts +82 -9
- package/src/embed/liveboard.ts +26 -2
- package/src/embed/sage.spec.ts +20 -35
- package/src/embed/sage.ts +4 -21
- package/src/embed/search.spec.ts +2 -1
- package/src/embed/search.ts +26 -0
- package/src/embed/ts-embed.spec.ts +22 -0
- package/src/embed/ts-embed.ts +9 -0
- package/src/errors.ts +1 -1
- package/src/react/index.spec.tsx +1 -1
- package/src/types.ts +106 -8
package/dist/tsembed.es.js
CHANGED
|
@@ -2168,6 +2168,13 @@ var Param;
|
|
|
2168
2168
|
Param["ClientLogLevel"] = "clientLogLevel";
|
|
2169
2169
|
Param["OverrideNativeConsole"] = "overrideConsoleLogs";
|
|
2170
2170
|
Param["enableAskSage"] = "enableAskSage";
|
|
2171
|
+
Param["CollapseSearchBarInitially"] = "collapseSearchBarInitially";
|
|
2172
|
+
Param["EnableCustomColumnGroups"] = "enableCustomColumnGroups";
|
|
2173
|
+
Param["DateFormatLocale"] = "dateFormatLocale";
|
|
2174
|
+
Param["NumberFormatLocale"] = "numberFormatLocale";
|
|
2175
|
+
Param["CurrencyFormat"] = "currencyFormat";
|
|
2176
|
+
Param["Enable2ColumnLayout"] = "enable2ColumnLayout";
|
|
2177
|
+
Param["IsFullAppEmbed"] = "isFullAppEmbed";
|
|
2171
2178
|
})(Param || (Param = {}));
|
|
2172
2179
|
/**
|
|
2173
2180
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -2305,6 +2312,18 @@ var Action;
|
|
|
2305
2312
|
* ```
|
|
2306
2313
|
*/
|
|
2307
2314
|
Action["AddFilter"] = "addFilter";
|
|
2315
|
+
/**
|
|
2316
|
+
* The **Add Data Panel Objects** action on the data panel v2.
|
|
2317
|
+
* Allows to show action menu to add different objects (like
|
|
2318
|
+
* formulas, parameters) in data panel v2.
|
|
2319
|
+
*
|
|
2320
|
+
* @example
|
|
2321
|
+
* ```js
|
|
2322
|
+
* disabledActions: [Action.AddDataPanelObjects]
|
|
2323
|
+
* ```
|
|
2324
|
+
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
2325
|
+
*/
|
|
2326
|
+
Action["AddDataPanelObjects"] = "addDataPanelObjects";
|
|
2308
2327
|
/**
|
|
2309
2328
|
* Filter configuration options on a Liveboard and Search page.
|
|
2310
2329
|
* Allows configuring filter options when adding filters to a
|
|
@@ -2347,6 +2366,28 @@ var Action;
|
|
|
2347
2366
|
* ```
|
|
2348
2367
|
*/
|
|
2349
2368
|
Action["AddParameter"] = "addParameter";
|
|
2369
|
+
/**
|
|
2370
|
+
* The **Add Column Set** action on a Answer.
|
|
2371
|
+
* Allows adding column sets to a Answer.
|
|
2372
|
+
*
|
|
2373
|
+
* @example
|
|
2374
|
+
* ```js
|
|
2375
|
+
* disabledActions: [Action.AddColumnSet]
|
|
2376
|
+
* ```
|
|
2377
|
+
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
2378
|
+
*/
|
|
2379
|
+
Action["AddColumnSet"] = "addSimpleCohort";
|
|
2380
|
+
/**
|
|
2381
|
+
* The **Add Query Set** action on a Answer.
|
|
2382
|
+
* Allows adding query sets to a Answer.
|
|
2383
|
+
*
|
|
2384
|
+
* @example
|
|
2385
|
+
* ```js
|
|
2386
|
+
* disabledActions: [Action.AddQuerySet]
|
|
2387
|
+
* ```
|
|
2388
|
+
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
2389
|
+
*/
|
|
2390
|
+
Action["AddQuerySet"] = "addAdvancedCohort";
|
|
2350
2391
|
/**
|
|
2351
2392
|
* @hidden
|
|
2352
2393
|
*/
|
|
@@ -2778,6 +2819,28 @@ var Action;
|
|
|
2778
2819
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
2779
2820
|
*/
|
|
2780
2821
|
Action["CrossFilter"] = "context-menu-item-cross-filter";
|
|
2822
|
+
/**
|
|
2823
|
+
* The **Sync to Slack** action on Liveboard visualizations.
|
|
2824
|
+
* Allows sending data to third-party apps Slack
|
|
2825
|
+
*
|
|
2826
|
+
* @example
|
|
2827
|
+
* ```js
|
|
2828
|
+
* disabledActions: [Action.SyncToSlack]
|
|
2829
|
+
* ```
|
|
2830
|
+
* @version @version SDK : 1.32.0 | Thoughtspot: 10.1.0.cl
|
|
2831
|
+
*/
|
|
2832
|
+
Action["SyncToSlack"] = "syncToSlack";
|
|
2833
|
+
/**
|
|
2834
|
+
* The **Sync to Teams** action on Liveboard visualizations.
|
|
2835
|
+
* Allows sending data to third-party apps Team
|
|
2836
|
+
*
|
|
2837
|
+
* @example
|
|
2838
|
+
* ```js
|
|
2839
|
+
* disabledActions: [Action.SyncToTeams]
|
|
2840
|
+
* ```
|
|
2841
|
+
* @version @version SDK : 1.32.0 | Thoughtspot: 10.1.0.cl
|
|
2842
|
+
*/
|
|
2843
|
+
Action["SyncToTeams"] = "syncToTeams";
|
|
2781
2844
|
/**
|
|
2782
2845
|
* The **Remove** action that appears when cross filters are applied
|
|
2783
2846
|
* on a Liveboard.
|
|
@@ -3019,6 +3082,26 @@ var Action;
|
|
|
3019
3082
|
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
3020
3083
|
*/
|
|
3021
3084
|
Action["LiveboardUsers"] = "liveboardUsers";
|
|
3085
|
+
/**
|
|
3086
|
+
* Action ID for the Parent TML action
|
|
3087
|
+
* The parent action **TML** must be included to access TML-related options
|
|
3088
|
+
* within the cascading menu (specific to the answer page)
|
|
3089
|
+
*
|
|
3090
|
+
* @example
|
|
3091
|
+
* ```js
|
|
3092
|
+
* // to include specific TML actions
|
|
3093
|
+
* visibleActions: [Action.TML, Action.ExportTML, Action.EditTML]
|
|
3094
|
+
*
|
|
3095
|
+
* ```
|
|
3096
|
+
* @example
|
|
3097
|
+
* ```js
|
|
3098
|
+
* hiddenAction: [Action.TML] // hide all TML actions
|
|
3099
|
+
* disabledActions: [Action.TML] // to disable all TML actions
|
|
3100
|
+
* ```
|
|
3101
|
+
*
|
|
3102
|
+
* @version SDK : 1.28.2 | Thoughtspot: 9.10.5.cl
|
|
3103
|
+
*/
|
|
3104
|
+
Action["TML"] = "tml";
|
|
3022
3105
|
/**
|
|
3023
3106
|
* Action ID for to hide Verified Liveboard Banner
|
|
3024
3107
|
*
|
|
@@ -3060,15 +3143,15 @@ var Action;
|
|
|
3060
3143
|
*/
|
|
3061
3144
|
Action["RemoveFromWatchlist"] = "removeFromWatchlist";
|
|
3062
3145
|
/**
|
|
3063
|
-
* The **
|
|
3146
|
+
* The **Organise Favourites** action on Homepage Favourite Module.
|
|
3064
3147
|
*
|
|
3065
3148
|
* @example
|
|
3066
3149
|
* ```js
|
|
3067
|
-
* disabledActions: [Action.
|
|
3150
|
+
* disabledActions: [Action.OrganiseFavourites]
|
|
3068
3151
|
* ```
|
|
3069
|
-
* @version SDK : 1.
|
|
3152
|
+
* @version SDK : 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
3070
3153
|
*/
|
|
3071
|
-
Action["
|
|
3154
|
+
Action["OrganiseFavourites"] = "organiseFavourites";
|
|
3072
3155
|
/**
|
|
3073
3156
|
* Action ID for AI Highlights button
|
|
3074
3157
|
*
|
|
@@ -5800,7 +5883,7 @@ function isEqual(value, other) {
|
|
|
5800
5883
|
|
|
5801
5884
|
var isEqual_1 = isEqual;
|
|
5802
5885
|
|
|
5803
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.28.
|
|
5886
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.28.4";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^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.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","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,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"45 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};
|
|
5804
5887
|
|
|
5805
5888
|
const EndPoints = {
|
|
5806
5889
|
AUTH_VERIFICATION: '/callosum/v1/session/info',
|
|
@@ -12525,7 +12608,7 @@ const authenticate = async (embedConfig) => {
|
|
|
12525
12608
|
|
|
12526
12609
|
const ERROR_MESSAGE = {
|
|
12527
12610
|
INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
|
|
12528
|
-
LIVEBOARD_VIZ_ID_VALIDATION: 'Please
|
|
12611
|
+
LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a liveboard to embed.',
|
|
12529
12612
|
TRIGGER_TIMED_OUT: 'Trigger timedout in getting response',
|
|
12530
12613
|
SEARCHEMBED_BETA_WRANING_MESSAGE: 'Search Embed is in Beta in this release.',
|
|
12531
12614
|
SAGE_EMBED_BETA_WARNING_MESSAGE: 'Sage Embed is in Beta in this release.',
|
|
@@ -14350,6 +14433,15 @@ class TsEmbed {
|
|
|
14350
14433
|
if (this.embedConfig.pendoTrackingKey) {
|
|
14351
14434
|
queryParams[Param.PendoTrackingKey] = this.embedConfig.pendoTrackingKey;
|
|
14352
14435
|
}
|
|
14436
|
+
if (this.embedConfig.numberFormatLocale) {
|
|
14437
|
+
queryParams[Param.NumberFormatLocale] = this.embedConfig.numberFormatLocale;
|
|
14438
|
+
}
|
|
14439
|
+
if (this.embedConfig.dateFormatLocale) {
|
|
14440
|
+
queryParams[Param.DateFormatLocale] = this.embedConfig.dateFormatLocale;
|
|
14441
|
+
}
|
|
14442
|
+
if (this.embedConfig.currencyFormat) {
|
|
14443
|
+
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
14444
|
+
}
|
|
14353
14445
|
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, } = this.viewConfig;
|
|
14354
14446
|
if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
|
|
14355
14447
|
this.handleError('You cannot have both hidden actions and visible actions');
|
|
@@ -15173,7 +15265,7 @@ class AppEmbed extends V1Embed {
|
|
|
15173
15265
|
* embedded Liveboard or visualization.
|
|
15174
15266
|
*/
|
|
15175
15267
|
getEmbedParams() {
|
|
15176
|
-
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, } = this.viewConfig;
|
|
15268
|
+
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, } = this.viewConfig;
|
|
15177
15269
|
let params = {};
|
|
15178
15270
|
params[Param.EmbedApp] = true;
|
|
15179
15271
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
@@ -15184,6 +15276,7 @@ class AppEmbed extends V1Embed {
|
|
|
15184
15276
|
params[Param.ShowLiveboardTitle] = showLiveboardTitle;
|
|
15185
15277
|
params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
|
|
15186
15278
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
15279
|
+
params[Param.IsFullAppEmbed] = true;
|
|
15187
15280
|
params = this.getBaseQueryParams(params);
|
|
15188
15281
|
if (fullHeight === true) {
|
|
15189
15282
|
params[Param.fullHeight] = true;
|
|
@@ -15200,12 +15293,17 @@ class AppEmbed extends V1Embed {
|
|
|
15200
15293
|
if (enableSearchAssist !== undefined) {
|
|
15201
15294
|
params[Param.EnableSearchAssist] = enableSearchAssist;
|
|
15202
15295
|
}
|
|
15296
|
+
if (enable2ColumnLayout !== undefined) {
|
|
15297
|
+
params[Param.Enable2ColumnLayout] = enable2ColumnLayout;
|
|
15298
|
+
}
|
|
15203
15299
|
if (enableAskSage) {
|
|
15204
15300
|
params[Param.enableAskSage] = enableAskSage;
|
|
15205
15301
|
}
|
|
15206
15302
|
params[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
15207
15303
|
params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
|
|
15208
15304
|
params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
|
|
15305
|
+
params[Param.CollapseSearchBarInitially] = collapseSearchBarInitially;
|
|
15306
|
+
params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
|
|
15209
15307
|
const queryParams = getQueryParamString(params, true);
|
|
15210
15308
|
return queryParams;
|
|
15211
15309
|
}
|
|
@@ -15354,9 +15452,11 @@ class LiveboardEmbed extends V1Embed {
|
|
|
15354
15452
|
responder({ type: EmbedEvent.EmbedIframeCenter, data: obj });
|
|
15355
15453
|
};
|
|
15356
15454
|
this.setIframeHeightForNonEmbedLiveboard = (data) => {
|
|
15357
|
-
if (
|
|
15358
|
-
|
|
15455
|
+
if (data.data.currentPath.startsWith('/embed/viz/')
|
|
15456
|
+
|| data.data.currentPath.startsWith('/embed/insights/viz/')) {
|
|
15457
|
+
return;
|
|
15359
15458
|
}
|
|
15459
|
+
this.setIFrameHeight(this.defaultHeight);
|
|
15360
15460
|
};
|
|
15361
15461
|
if (this.viewConfig.fullHeight === true) {
|
|
15362
15462
|
this.on(EmbedEvent.RouteChange, this.setIframeHeightForNonEmbedLiveboard);
|
|
@@ -15372,7 +15472,7 @@ class LiveboardEmbed extends V1Embed {
|
|
|
15372
15472
|
let params = {};
|
|
15373
15473
|
params[Param.EmbedApp] = true;
|
|
15374
15474
|
params = this.getBaseQueryParams(params);
|
|
15375
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, enableAskSage, } = this.viewConfig;
|
|
15475
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, enableAskSage, enable2ColumnLayout, } = this.viewConfig;
|
|
15376
15476
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
15377
15477
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
15378
15478
|
if (fullHeight === true) {
|
|
@@ -15397,6 +15497,9 @@ class LiveboardEmbed extends V1Embed {
|
|
|
15397
15497
|
if (liveboardV2 !== undefined) {
|
|
15398
15498
|
params[Param.LiveboardV2Enabled] = liveboardV2;
|
|
15399
15499
|
}
|
|
15500
|
+
if (enable2ColumnLayout !== undefined) {
|
|
15501
|
+
params[Param.Enable2ColumnLayout] = enable2ColumnLayout;
|
|
15502
|
+
}
|
|
15400
15503
|
if (hideTabPanel) {
|
|
15401
15504
|
params[Param.HideTabPanel] = hideTabPanel;
|
|
15402
15505
|
}
|
|
@@ -15559,7 +15662,7 @@ class SearchEmbed extends TsEmbed {
|
|
|
15559
15662
|
}
|
|
15560
15663
|
getEmbedParams() {
|
|
15561
15664
|
var _a;
|
|
15562
|
-
const { hideResults, expandAllDataSource, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, } = this.viewConfig;
|
|
15665
|
+
const { hideResults, expandAllDataSource, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, } = this.viewConfig;
|
|
15563
15666
|
const queryParams = this.getBaseQueryParams();
|
|
15564
15667
|
queryParams[Param.HideActions] = [
|
|
15565
15668
|
...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
@@ -15596,6 +15699,8 @@ class SearchEmbed extends TsEmbed {
|
|
|
15596
15699
|
queryParams[Param.UseLastSelectedDataSource] = false;
|
|
15597
15700
|
}
|
|
15598
15701
|
queryParams[Param.searchEmbed] = true;
|
|
15702
|
+
queryParams[Param.CollapseSearchBarInitially] = collapseSearchBarInitially;
|
|
15703
|
+
queryParams[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
|
|
15599
15704
|
let query = '';
|
|
15600
15705
|
const queryParamsString = getQueryParamString(queryParams, true);
|
|
15601
15706
|
if (queryParamsString) {
|
|
@@ -15709,16 +15814,6 @@ class SearchBarEmbed extends TsEmbed {
|
|
|
15709
15814
|
* @summary TS Sage embed
|
|
15710
15815
|
* @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
|
|
15711
15816
|
*/
|
|
15712
|
-
const HiddenActionItemByDefaultForSageEmbed = [
|
|
15713
|
-
Action.Save,
|
|
15714
|
-
Action.Pin,
|
|
15715
|
-
Action.EditACopy,
|
|
15716
|
-
Action.SaveAsView,
|
|
15717
|
-
Action.UpdateTML,
|
|
15718
|
-
Action.EditTML,
|
|
15719
|
-
Action.AnswerDelete,
|
|
15720
|
-
Action.Share,
|
|
15721
|
-
];
|
|
15722
15817
|
/**
|
|
15723
15818
|
* Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
|
|
15724
15819
|
*
|
|
@@ -15738,8 +15833,7 @@ class SageEmbed extends V1Embed {
|
|
|
15738
15833
|
* @returns {string} query string
|
|
15739
15834
|
*/
|
|
15740
15835
|
getEmbedParams() {
|
|
15741
|
-
|
|
15742
|
-
const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSearchBarTitle, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
|
|
15836
|
+
const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
|
|
15743
15837
|
const params = this.getBaseQueryParams();
|
|
15744
15838
|
params[Param.EmbedApp] = true;
|
|
15745
15839
|
params[Param.IsSageEmbed] = true;
|
|
@@ -15752,12 +15846,7 @@ class SageEmbed extends V1Embed {
|
|
|
15752
15846
|
}
|
|
15753
15847
|
params[Param.HideSampleQuestions] = !!hideSampleQuestions;
|
|
15754
15848
|
params[Param.IsProductTour] = !!isProductTour;
|
|
15755
|
-
params[Param.HideSearchBarTitle] = !!hideSearchBarTitle;
|
|
15756
15849
|
params[Param.HideSageAnswerHeader] = !!hideSageAnswerHeader;
|
|
15757
|
-
params[Param.HideActions] = [
|
|
15758
|
-
...((_a = params[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
15759
|
-
...HiddenActionItemByDefaultForSageEmbed,
|
|
15760
|
-
];
|
|
15761
15850
|
return getQueryParamString(params, true);
|
|
15762
15851
|
}
|
|
15763
15852
|
/**
|