@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-react.es.js
CHANGED
|
@@ -2589,6 +2589,13 @@ var Param;
|
|
|
2589
2589
|
Param["ClientLogLevel"] = "clientLogLevel";
|
|
2590
2590
|
Param["OverrideNativeConsole"] = "overrideConsoleLogs";
|
|
2591
2591
|
Param["enableAskSage"] = "enableAskSage";
|
|
2592
|
+
Param["CollapseSearchBarInitially"] = "collapseSearchBarInitially";
|
|
2593
|
+
Param["EnableCustomColumnGroups"] = "enableCustomColumnGroups";
|
|
2594
|
+
Param["DateFormatLocale"] = "dateFormatLocale";
|
|
2595
|
+
Param["NumberFormatLocale"] = "numberFormatLocale";
|
|
2596
|
+
Param["CurrencyFormat"] = "currencyFormat";
|
|
2597
|
+
Param["Enable2ColumnLayout"] = "enable2ColumnLayout";
|
|
2598
|
+
Param["IsFullAppEmbed"] = "isFullAppEmbed";
|
|
2592
2599
|
})(Param || (Param = {}));
|
|
2593
2600
|
/**
|
|
2594
2601
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -2726,6 +2733,18 @@ var Action;
|
|
|
2726
2733
|
* ```
|
|
2727
2734
|
*/
|
|
2728
2735
|
Action["AddFilter"] = "addFilter";
|
|
2736
|
+
/**
|
|
2737
|
+
* The **Add Data Panel Objects** action on the data panel v2.
|
|
2738
|
+
* Allows to show action menu to add different objects (like
|
|
2739
|
+
* formulas, parameters) in data panel v2.
|
|
2740
|
+
*
|
|
2741
|
+
* @example
|
|
2742
|
+
* ```js
|
|
2743
|
+
* disabledActions: [Action.AddDataPanelObjects]
|
|
2744
|
+
* ```
|
|
2745
|
+
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
2746
|
+
*/
|
|
2747
|
+
Action["AddDataPanelObjects"] = "addDataPanelObjects";
|
|
2729
2748
|
/**
|
|
2730
2749
|
* Filter configuration options on a Liveboard and Search page.
|
|
2731
2750
|
* Allows configuring filter options when adding filters to a
|
|
@@ -2768,6 +2787,28 @@ var Action;
|
|
|
2768
2787
|
* ```
|
|
2769
2788
|
*/
|
|
2770
2789
|
Action["AddParameter"] = "addParameter";
|
|
2790
|
+
/**
|
|
2791
|
+
* The **Add Column Set** action on a Answer.
|
|
2792
|
+
* Allows adding column sets to a Answer.
|
|
2793
|
+
*
|
|
2794
|
+
* @example
|
|
2795
|
+
* ```js
|
|
2796
|
+
* disabledActions: [Action.AddColumnSet]
|
|
2797
|
+
* ```
|
|
2798
|
+
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
2799
|
+
*/
|
|
2800
|
+
Action["AddColumnSet"] = "addSimpleCohort";
|
|
2801
|
+
/**
|
|
2802
|
+
* The **Add Query Set** action on a Answer.
|
|
2803
|
+
* Allows adding query sets to a Answer.
|
|
2804
|
+
*
|
|
2805
|
+
* @example
|
|
2806
|
+
* ```js
|
|
2807
|
+
* disabledActions: [Action.AddQuerySet]
|
|
2808
|
+
* ```
|
|
2809
|
+
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
2810
|
+
*/
|
|
2811
|
+
Action["AddQuerySet"] = "addAdvancedCohort";
|
|
2771
2812
|
/**
|
|
2772
2813
|
* @hidden
|
|
2773
2814
|
*/
|
|
@@ -3199,6 +3240,28 @@ var Action;
|
|
|
3199
3240
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
3200
3241
|
*/
|
|
3201
3242
|
Action["CrossFilter"] = "context-menu-item-cross-filter";
|
|
3243
|
+
/**
|
|
3244
|
+
* The **Sync to Slack** action on Liveboard visualizations.
|
|
3245
|
+
* Allows sending data to third-party apps Slack
|
|
3246
|
+
*
|
|
3247
|
+
* @example
|
|
3248
|
+
* ```js
|
|
3249
|
+
* disabledActions: [Action.SyncToSlack]
|
|
3250
|
+
* ```
|
|
3251
|
+
* @version @version SDK : 1.32.0 | Thoughtspot: 10.1.0.cl
|
|
3252
|
+
*/
|
|
3253
|
+
Action["SyncToSlack"] = "syncToSlack";
|
|
3254
|
+
/**
|
|
3255
|
+
* The **Sync to Teams** action on Liveboard visualizations.
|
|
3256
|
+
* Allows sending data to third-party apps Team
|
|
3257
|
+
*
|
|
3258
|
+
* @example
|
|
3259
|
+
* ```js
|
|
3260
|
+
* disabledActions: [Action.SyncToTeams]
|
|
3261
|
+
* ```
|
|
3262
|
+
* @version @version SDK : 1.32.0 | Thoughtspot: 10.1.0.cl
|
|
3263
|
+
*/
|
|
3264
|
+
Action["SyncToTeams"] = "syncToTeams";
|
|
3202
3265
|
/**
|
|
3203
3266
|
* The **Remove** action that appears when cross filters are applied
|
|
3204
3267
|
* on a Liveboard.
|
|
@@ -3440,6 +3503,26 @@ var Action;
|
|
|
3440
3503
|
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
3441
3504
|
*/
|
|
3442
3505
|
Action["LiveboardUsers"] = "liveboardUsers";
|
|
3506
|
+
/**
|
|
3507
|
+
* Action ID for the Parent TML action
|
|
3508
|
+
* The parent action **TML** must be included to access TML-related options
|
|
3509
|
+
* within the cascading menu (specific to the answer page)
|
|
3510
|
+
*
|
|
3511
|
+
* @example
|
|
3512
|
+
* ```js
|
|
3513
|
+
* // to include specific TML actions
|
|
3514
|
+
* visibleActions: [Action.TML, Action.ExportTML, Action.EditTML]
|
|
3515
|
+
*
|
|
3516
|
+
* ```
|
|
3517
|
+
* @example
|
|
3518
|
+
* ```js
|
|
3519
|
+
* hiddenAction: [Action.TML] // hide all TML actions
|
|
3520
|
+
* disabledActions: [Action.TML] // to disable all TML actions
|
|
3521
|
+
* ```
|
|
3522
|
+
*
|
|
3523
|
+
* @version SDK : 1.28.2 | Thoughtspot: 9.10.5.cl
|
|
3524
|
+
*/
|
|
3525
|
+
Action["TML"] = "tml";
|
|
3443
3526
|
/**
|
|
3444
3527
|
* Action ID for to hide Verified Liveboard Banner
|
|
3445
3528
|
*
|
|
@@ -3481,15 +3564,15 @@ var Action;
|
|
|
3481
3564
|
*/
|
|
3482
3565
|
Action["RemoveFromWatchlist"] = "removeFromWatchlist";
|
|
3483
3566
|
/**
|
|
3484
|
-
* The **
|
|
3567
|
+
* The **Organise Favourites** action on Homepage Favourite Module.
|
|
3485
3568
|
*
|
|
3486
3569
|
* @example
|
|
3487
3570
|
* ```js
|
|
3488
|
-
* disabledActions: [Action.
|
|
3571
|
+
* disabledActions: [Action.OrganiseFavourites]
|
|
3489
3572
|
* ```
|
|
3490
|
-
* @version SDK : 1.
|
|
3573
|
+
* @version SDK : 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
3491
3574
|
*/
|
|
3492
|
-
Action["
|
|
3575
|
+
Action["OrganiseFavourites"] = "organiseFavourites";
|
|
3493
3576
|
/**
|
|
3494
3577
|
* Action ID for AI Highlights button
|
|
3495
3578
|
*
|
|
@@ -5803,7 +5886,7 @@ function isEqual(value, other) {
|
|
|
5803
5886
|
|
|
5804
5887
|
var isEqual_1 = isEqual;
|
|
5805
5888
|
|
|
5806
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.28.
|
|
5889
|
+
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};
|
|
5807
5890
|
|
|
5808
5891
|
/**
|
|
5809
5892
|
* Checks if `value` is `undefined`.
|
|
@@ -12575,7 +12658,7 @@ const authenticate = async (embedConfig) => {
|
|
|
12575
12658
|
|
|
12576
12659
|
const ERROR_MESSAGE = {
|
|
12577
12660
|
INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
|
|
12578
|
-
LIVEBOARD_VIZ_ID_VALIDATION: 'Please
|
|
12661
|
+
LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a liveboard to embed.',
|
|
12579
12662
|
TRIGGER_TIMED_OUT: 'Trigger timedout in getting response',
|
|
12580
12663
|
SEARCHEMBED_BETA_WRANING_MESSAGE: 'Search Embed is in Beta in this release.',
|
|
12581
12664
|
SAGE_EMBED_BETA_WARNING_MESSAGE: 'Sage Embed is in Beta in this release.',
|
|
@@ -13945,6 +14028,15 @@ class TsEmbed {
|
|
|
13945
14028
|
if (this.embedConfig.pendoTrackingKey) {
|
|
13946
14029
|
queryParams[Param.PendoTrackingKey] = this.embedConfig.pendoTrackingKey;
|
|
13947
14030
|
}
|
|
14031
|
+
if (this.embedConfig.numberFormatLocale) {
|
|
14032
|
+
queryParams[Param.NumberFormatLocale] = this.embedConfig.numberFormatLocale;
|
|
14033
|
+
}
|
|
14034
|
+
if (this.embedConfig.dateFormatLocale) {
|
|
14035
|
+
queryParams[Param.DateFormatLocale] = this.embedConfig.dateFormatLocale;
|
|
14036
|
+
}
|
|
14037
|
+
if (this.embedConfig.currencyFormat) {
|
|
14038
|
+
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
14039
|
+
}
|
|
13948
14040
|
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, } = this.viewConfig;
|
|
13949
14041
|
if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
|
|
13950
14042
|
this.handleError('You cannot have both hidden actions and visible actions');
|
|
@@ -14749,16 +14841,6 @@ class SearchBarEmbed extends TsEmbed {
|
|
|
14749
14841
|
* @summary TS Sage embed
|
|
14750
14842
|
* @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
|
|
14751
14843
|
*/
|
|
14752
|
-
const HiddenActionItemByDefaultForSageEmbed = [
|
|
14753
|
-
Action.Save,
|
|
14754
|
-
Action.Pin,
|
|
14755
|
-
Action.EditACopy,
|
|
14756
|
-
Action.SaveAsView,
|
|
14757
|
-
Action.UpdateTML,
|
|
14758
|
-
Action.EditTML,
|
|
14759
|
-
Action.AnswerDelete,
|
|
14760
|
-
Action.Share,
|
|
14761
|
-
];
|
|
14762
14844
|
/**
|
|
14763
14845
|
* Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
|
|
14764
14846
|
*
|
|
@@ -14778,8 +14860,7 @@ class SageEmbed extends V1Embed {
|
|
|
14778
14860
|
* @returns {string} query string
|
|
14779
14861
|
*/
|
|
14780
14862
|
getEmbedParams() {
|
|
14781
|
-
|
|
14782
|
-
const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSearchBarTitle, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
|
|
14863
|
+
const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
|
|
14783
14864
|
const params = this.getBaseQueryParams();
|
|
14784
14865
|
params[Param.EmbedApp] = true;
|
|
14785
14866
|
params[Param.IsSageEmbed] = true;
|
|
@@ -14792,12 +14873,7 @@ class SageEmbed extends V1Embed {
|
|
|
14792
14873
|
}
|
|
14793
14874
|
params[Param.HideSampleQuestions] = !!hideSampleQuestions;
|
|
14794
14875
|
params[Param.IsProductTour] = !!isProductTour;
|
|
14795
|
-
params[Param.HideSearchBarTitle] = !!hideSearchBarTitle;
|
|
14796
14876
|
params[Param.HideSageAnswerHeader] = !!hideSageAnswerHeader;
|
|
14797
|
-
params[Param.HideActions] = [
|
|
14798
|
-
...((_a = params[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
14799
|
-
...HiddenActionItemByDefaultForSageEmbed,
|
|
14800
|
-
];
|
|
14801
14877
|
return getQueryParamString(params, true);
|
|
14802
14878
|
}
|
|
14803
14879
|
/**
|
|
@@ -14879,7 +14955,7 @@ class SearchEmbed extends TsEmbed {
|
|
|
14879
14955
|
}
|
|
14880
14956
|
getEmbedParams() {
|
|
14881
14957
|
var _a;
|
|
14882
|
-
const { hideResults, expandAllDataSource, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, } = this.viewConfig;
|
|
14958
|
+
const { hideResults, expandAllDataSource, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, } = this.viewConfig;
|
|
14883
14959
|
const queryParams = this.getBaseQueryParams();
|
|
14884
14960
|
queryParams[Param.HideActions] = [
|
|
14885
14961
|
...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
@@ -14916,6 +14992,8 @@ class SearchEmbed extends TsEmbed {
|
|
|
14916
14992
|
queryParams[Param.UseLastSelectedDataSource] = false;
|
|
14917
14993
|
}
|
|
14918
14994
|
queryParams[Param.searchEmbed] = true;
|
|
14995
|
+
queryParams[Param.CollapseSearchBarInitially] = collapseSearchBarInitially;
|
|
14996
|
+
queryParams[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
|
|
14919
14997
|
let query = '';
|
|
14920
14998
|
const queryParamsString = getQueryParamString(queryParams, true);
|
|
14921
14999
|
if (queryParamsString) {
|
|
@@ -15048,7 +15126,7 @@ class AppEmbed extends V1Embed {
|
|
|
15048
15126
|
* embedded Liveboard or visualization.
|
|
15049
15127
|
*/
|
|
15050
15128
|
getEmbedParams() {
|
|
15051
|
-
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;
|
|
15129
|
+
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;
|
|
15052
15130
|
let params = {};
|
|
15053
15131
|
params[Param.EmbedApp] = true;
|
|
15054
15132
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
@@ -15059,6 +15137,7 @@ class AppEmbed extends V1Embed {
|
|
|
15059
15137
|
params[Param.ShowLiveboardTitle] = showLiveboardTitle;
|
|
15060
15138
|
params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
|
|
15061
15139
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
15140
|
+
params[Param.IsFullAppEmbed] = true;
|
|
15062
15141
|
params = this.getBaseQueryParams(params);
|
|
15063
15142
|
if (fullHeight === true) {
|
|
15064
15143
|
params[Param.fullHeight] = true;
|
|
@@ -15075,12 +15154,17 @@ class AppEmbed extends V1Embed {
|
|
|
15075
15154
|
if (enableSearchAssist !== undefined) {
|
|
15076
15155
|
params[Param.EnableSearchAssist] = enableSearchAssist;
|
|
15077
15156
|
}
|
|
15157
|
+
if (enable2ColumnLayout !== undefined) {
|
|
15158
|
+
params[Param.Enable2ColumnLayout] = enable2ColumnLayout;
|
|
15159
|
+
}
|
|
15078
15160
|
if (enableAskSage) {
|
|
15079
15161
|
params[Param.enableAskSage] = enableAskSage;
|
|
15080
15162
|
}
|
|
15081
15163
|
params[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
15082
15164
|
params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
|
|
15083
15165
|
params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
|
|
15166
|
+
params[Param.CollapseSearchBarInitially] = collapseSearchBarInitially;
|
|
15167
|
+
params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
|
|
15084
15168
|
const queryParams = getQueryParamString(params, true);
|
|
15085
15169
|
return queryParams;
|
|
15086
15170
|
}
|
|
@@ -15229,9 +15313,11 @@ class LiveboardEmbed extends V1Embed {
|
|
|
15229
15313
|
responder({ type: EmbedEvent.EmbedIframeCenter, data: obj });
|
|
15230
15314
|
};
|
|
15231
15315
|
this.setIframeHeightForNonEmbedLiveboard = (data) => {
|
|
15232
|
-
if (
|
|
15233
|
-
|
|
15316
|
+
if (data.data.currentPath.startsWith('/embed/viz/')
|
|
15317
|
+
|| data.data.currentPath.startsWith('/embed/insights/viz/')) {
|
|
15318
|
+
return;
|
|
15234
15319
|
}
|
|
15320
|
+
this.setIFrameHeight(this.defaultHeight);
|
|
15235
15321
|
};
|
|
15236
15322
|
if (this.viewConfig.fullHeight === true) {
|
|
15237
15323
|
this.on(EmbedEvent.RouteChange, this.setIframeHeightForNonEmbedLiveboard);
|
|
@@ -15247,7 +15333,7 @@ class LiveboardEmbed extends V1Embed {
|
|
|
15247
15333
|
let params = {};
|
|
15248
15334
|
params[Param.EmbedApp] = true;
|
|
15249
15335
|
params = this.getBaseQueryParams(params);
|
|
15250
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, enableAskSage, } = this.viewConfig;
|
|
15336
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, enableAskSage, enable2ColumnLayout, } = this.viewConfig;
|
|
15251
15337
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
15252
15338
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
15253
15339
|
if (fullHeight === true) {
|
|
@@ -15272,6 +15358,9 @@ class LiveboardEmbed extends V1Embed {
|
|
|
15272
15358
|
if (liveboardV2 !== undefined) {
|
|
15273
15359
|
params[Param.LiveboardV2Enabled] = liveboardV2;
|
|
15274
15360
|
}
|
|
15361
|
+
if (enable2ColumnLayout !== undefined) {
|
|
15362
|
+
params[Param.Enable2ColumnLayout] = enable2ColumnLayout;
|
|
15363
|
+
}
|
|
15275
15364
|
if (hideTabPanel) {
|
|
15276
15365
|
params[Param.HideTabPanel] = hideTabPanel;
|
|
15277
15366
|
}
|
package/dist/tsembed-react.js
CHANGED
|
@@ -2527,6 +2527,13 @@
|
|
|
2527
2527
|
Param["ClientLogLevel"] = "clientLogLevel";
|
|
2528
2528
|
Param["OverrideNativeConsole"] = "overrideConsoleLogs";
|
|
2529
2529
|
Param["enableAskSage"] = "enableAskSage";
|
|
2530
|
+
Param["CollapseSearchBarInitially"] = "collapseSearchBarInitially";
|
|
2531
|
+
Param["EnableCustomColumnGroups"] = "enableCustomColumnGroups";
|
|
2532
|
+
Param["DateFormatLocale"] = "dateFormatLocale";
|
|
2533
|
+
Param["NumberFormatLocale"] = "numberFormatLocale";
|
|
2534
|
+
Param["CurrencyFormat"] = "currencyFormat";
|
|
2535
|
+
Param["Enable2ColumnLayout"] = "enable2ColumnLayout";
|
|
2536
|
+
Param["IsFullAppEmbed"] = "isFullAppEmbed";
|
|
2530
2537
|
})(Param || (Param = {}));
|
|
2531
2538
|
(function (Action) {
|
|
2532
2539
|
/**
|
|
@@ -2635,6 +2642,18 @@
|
|
|
2635
2642
|
* ```
|
|
2636
2643
|
*/
|
|
2637
2644
|
Action["AddFilter"] = "addFilter";
|
|
2645
|
+
/**
|
|
2646
|
+
* The **Add Data Panel Objects** action on the data panel v2.
|
|
2647
|
+
* Allows to show action menu to add different objects (like
|
|
2648
|
+
* formulas, parameters) in data panel v2.
|
|
2649
|
+
*
|
|
2650
|
+
* @example
|
|
2651
|
+
* ```js
|
|
2652
|
+
* disabledActions: [Action.AddDataPanelObjects]
|
|
2653
|
+
* ```
|
|
2654
|
+
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
2655
|
+
*/
|
|
2656
|
+
Action["AddDataPanelObjects"] = "addDataPanelObjects";
|
|
2638
2657
|
/**
|
|
2639
2658
|
* Filter configuration options on a Liveboard and Search page.
|
|
2640
2659
|
* Allows configuring filter options when adding filters to a
|
|
@@ -2677,6 +2696,28 @@
|
|
|
2677
2696
|
* ```
|
|
2678
2697
|
*/
|
|
2679
2698
|
Action["AddParameter"] = "addParameter";
|
|
2699
|
+
/**
|
|
2700
|
+
* The **Add Column Set** action on a Answer.
|
|
2701
|
+
* Allows adding column sets to a Answer.
|
|
2702
|
+
*
|
|
2703
|
+
* @example
|
|
2704
|
+
* ```js
|
|
2705
|
+
* disabledActions: [Action.AddColumnSet]
|
|
2706
|
+
* ```
|
|
2707
|
+
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
2708
|
+
*/
|
|
2709
|
+
Action["AddColumnSet"] = "addSimpleCohort";
|
|
2710
|
+
/**
|
|
2711
|
+
* The **Add Query Set** action on a Answer.
|
|
2712
|
+
* Allows adding query sets to a Answer.
|
|
2713
|
+
*
|
|
2714
|
+
* @example
|
|
2715
|
+
* ```js
|
|
2716
|
+
* disabledActions: [Action.AddQuerySet]
|
|
2717
|
+
* ```
|
|
2718
|
+
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
2719
|
+
*/
|
|
2720
|
+
Action["AddQuerySet"] = "addAdvancedCohort";
|
|
2680
2721
|
/**
|
|
2681
2722
|
* @hidden
|
|
2682
2723
|
*/
|
|
@@ -3108,6 +3149,28 @@
|
|
|
3108
3149
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
3109
3150
|
*/
|
|
3110
3151
|
Action["CrossFilter"] = "context-menu-item-cross-filter";
|
|
3152
|
+
/**
|
|
3153
|
+
* The **Sync to Slack** action on Liveboard visualizations.
|
|
3154
|
+
* Allows sending data to third-party apps Slack
|
|
3155
|
+
*
|
|
3156
|
+
* @example
|
|
3157
|
+
* ```js
|
|
3158
|
+
* disabledActions: [Action.SyncToSlack]
|
|
3159
|
+
* ```
|
|
3160
|
+
* @version @version SDK : 1.32.0 | Thoughtspot: 10.1.0.cl
|
|
3161
|
+
*/
|
|
3162
|
+
Action["SyncToSlack"] = "syncToSlack";
|
|
3163
|
+
/**
|
|
3164
|
+
* The **Sync to Teams** action on Liveboard visualizations.
|
|
3165
|
+
* Allows sending data to third-party apps Team
|
|
3166
|
+
*
|
|
3167
|
+
* @example
|
|
3168
|
+
* ```js
|
|
3169
|
+
* disabledActions: [Action.SyncToTeams]
|
|
3170
|
+
* ```
|
|
3171
|
+
* @version @version SDK : 1.32.0 | Thoughtspot: 10.1.0.cl
|
|
3172
|
+
*/
|
|
3173
|
+
Action["SyncToTeams"] = "syncToTeams";
|
|
3111
3174
|
/**
|
|
3112
3175
|
* The **Remove** action that appears when cross filters are applied
|
|
3113
3176
|
* on a Liveboard.
|
|
@@ -3349,6 +3412,26 @@
|
|
|
3349
3412
|
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
3350
3413
|
*/
|
|
3351
3414
|
Action["LiveboardUsers"] = "liveboardUsers";
|
|
3415
|
+
/**
|
|
3416
|
+
* Action ID for the Parent TML action
|
|
3417
|
+
* The parent action **TML** must be included to access TML-related options
|
|
3418
|
+
* within the cascading menu (specific to the answer page)
|
|
3419
|
+
*
|
|
3420
|
+
* @example
|
|
3421
|
+
* ```js
|
|
3422
|
+
* // to include specific TML actions
|
|
3423
|
+
* visibleActions: [Action.TML, Action.ExportTML, Action.EditTML]
|
|
3424
|
+
*
|
|
3425
|
+
* ```
|
|
3426
|
+
* @example
|
|
3427
|
+
* ```js
|
|
3428
|
+
* hiddenAction: [Action.TML] // hide all TML actions
|
|
3429
|
+
* disabledActions: [Action.TML] // to disable all TML actions
|
|
3430
|
+
* ```
|
|
3431
|
+
*
|
|
3432
|
+
* @version SDK : 1.28.2 | Thoughtspot: 9.10.5.cl
|
|
3433
|
+
*/
|
|
3434
|
+
Action["TML"] = "tml";
|
|
3352
3435
|
/**
|
|
3353
3436
|
* Action ID for to hide Verified Liveboard Banner
|
|
3354
3437
|
*
|
|
@@ -3390,15 +3473,15 @@
|
|
|
3390
3473
|
*/
|
|
3391
3474
|
Action["RemoveFromWatchlist"] = "removeFromWatchlist";
|
|
3392
3475
|
/**
|
|
3393
|
-
* The **
|
|
3476
|
+
* The **Organise Favourites** action on Homepage Favourite Module.
|
|
3394
3477
|
*
|
|
3395
3478
|
* @example
|
|
3396
3479
|
* ```js
|
|
3397
|
-
* disabledActions: [Action.
|
|
3480
|
+
* disabledActions: [Action.OrganiseFavourites]
|
|
3398
3481
|
* ```
|
|
3399
|
-
* @version SDK : 1.
|
|
3482
|
+
* @version SDK : 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
3400
3483
|
*/
|
|
3401
|
-
Action["
|
|
3484
|
+
Action["OrganiseFavourites"] = "organiseFavourites";
|
|
3402
3485
|
/**
|
|
3403
3486
|
* Action ID for AI Highlights button
|
|
3404
3487
|
*
|
|
@@ -5711,7 +5794,7 @@
|
|
|
5711
5794
|
|
|
5712
5795
|
var isEqual_1 = isEqual;
|
|
5713
5796
|
|
|
5714
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.28.
|
|
5797
|
+
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$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^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$1,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};
|
|
5715
5798
|
|
|
5716
5799
|
/**
|
|
5717
5800
|
* Checks if `value` is `undefined`.
|
|
@@ -12483,7 +12566,7 @@
|
|
|
12483
12566
|
|
|
12484
12567
|
const ERROR_MESSAGE = {
|
|
12485
12568
|
INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
|
|
12486
|
-
LIVEBOARD_VIZ_ID_VALIDATION: 'Please
|
|
12569
|
+
LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a liveboard to embed.',
|
|
12487
12570
|
TRIGGER_TIMED_OUT: 'Trigger timedout in getting response',
|
|
12488
12571
|
SEARCHEMBED_BETA_WRANING_MESSAGE: 'Search Embed is in Beta in this release.',
|
|
12489
12572
|
SAGE_EMBED_BETA_WARNING_MESSAGE: 'Sage Embed is in Beta in this release.',
|
|
@@ -13853,6 +13936,15 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13853
13936
|
if (this.embedConfig.pendoTrackingKey) {
|
|
13854
13937
|
queryParams[Param.PendoTrackingKey] = this.embedConfig.pendoTrackingKey;
|
|
13855
13938
|
}
|
|
13939
|
+
if (this.embedConfig.numberFormatLocale) {
|
|
13940
|
+
queryParams[Param.NumberFormatLocale] = this.embedConfig.numberFormatLocale;
|
|
13941
|
+
}
|
|
13942
|
+
if (this.embedConfig.dateFormatLocale) {
|
|
13943
|
+
queryParams[Param.DateFormatLocale] = this.embedConfig.dateFormatLocale;
|
|
13944
|
+
}
|
|
13945
|
+
if (this.embedConfig.currencyFormat) {
|
|
13946
|
+
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
13947
|
+
}
|
|
13856
13948
|
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, } = this.viewConfig;
|
|
13857
13949
|
if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
|
|
13858
13950
|
this.handleError('You cannot have both hidden actions and visible actions');
|
|
@@ -14657,16 +14749,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14657
14749
|
* @summary TS Sage embed
|
|
14658
14750
|
* @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
|
|
14659
14751
|
*/
|
|
14660
|
-
const HiddenActionItemByDefaultForSageEmbed = [
|
|
14661
|
-
exports.Action.Save,
|
|
14662
|
-
exports.Action.Pin,
|
|
14663
|
-
exports.Action.EditACopy,
|
|
14664
|
-
exports.Action.SaveAsView,
|
|
14665
|
-
exports.Action.UpdateTML,
|
|
14666
|
-
exports.Action.EditTML,
|
|
14667
|
-
exports.Action.AnswerDelete,
|
|
14668
|
-
exports.Action.Share,
|
|
14669
|
-
];
|
|
14670
14752
|
/**
|
|
14671
14753
|
* Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
|
|
14672
14754
|
*
|
|
@@ -14686,8 +14768,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14686
14768
|
* @returns {string} query string
|
|
14687
14769
|
*/
|
|
14688
14770
|
getEmbedParams() {
|
|
14689
|
-
|
|
14690
|
-
const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSearchBarTitle, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
|
|
14771
|
+
const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
|
|
14691
14772
|
const params = this.getBaseQueryParams();
|
|
14692
14773
|
params[Param.EmbedApp] = true;
|
|
14693
14774
|
params[Param.IsSageEmbed] = true;
|
|
@@ -14700,12 +14781,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14700
14781
|
}
|
|
14701
14782
|
params[Param.HideSampleQuestions] = !!hideSampleQuestions;
|
|
14702
14783
|
params[Param.IsProductTour] = !!isProductTour;
|
|
14703
|
-
params[Param.HideSearchBarTitle] = !!hideSearchBarTitle;
|
|
14704
14784
|
params[Param.HideSageAnswerHeader] = !!hideSageAnswerHeader;
|
|
14705
|
-
params[Param.HideActions] = [
|
|
14706
|
-
...((_a = params[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
14707
|
-
...HiddenActionItemByDefaultForSageEmbed,
|
|
14708
|
-
];
|
|
14709
14785
|
return getQueryParamString(params, true);
|
|
14710
14786
|
}
|
|
14711
14787
|
/**
|
|
@@ -14787,7 +14863,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14787
14863
|
}
|
|
14788
14864
|
getEmbedParams() {
|
|
14789
14865
|
var _a;
|
|
14790
|
-
const { hideResults, expandAllDataSource, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, } = this.viewConfig;
|
|
14866
|
+
const { hideResults, expandAllDataSource, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, } = this.viewConfig;
|
|
14791
14867
|
const queryParams = this.getBaseQueryParams();
|
|
14792
14868
|
queryParams[Param.HideActions] = [
|
|
14793
14869
|
...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
@@ -14824,6 +14900,8 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14824
14900
|
queryParams[Param.UseLastSelectedDataSource] = false;
|
|
14825
14901
|
}
|
|
14826
14902
|
queryParams[Param.searchEmbed] = true;
|
|
14903
|
+
queryParams[Param.CollapseSearchBarInitially] = collapseSearchBarInitially;
|
|
14904
|
+
queryParams[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
|
|
14827
14905
|
let query = '';
|
|
14828
14906
|
const queryParamsString = getQueryParamString(queryParams, true);
|
|
14829
14907
|
if (queryParamsString) {
|
|
@@ -14951,7 +15029,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14951
15029
|
* embedded Liveboard or visualization.
|
|
14952
15030
|
*/
|
|
14953
15031
|
getEmbedParams() {
|
|
14954
|
-
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;
|
|
15032
|
+
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;
|
|
14955
15033
|
let params = {};
|
|
14956
15034
|
params[Param.EmbedApp] = true;
|
|
14957
15035
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
@@ -14962,6 +15040,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14962
15040
|
params[Param.ShowLiveboardTitle] = showLiveboardTitle;
|
|
14963
15041
|
params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
|
|
14964
15042
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
15043
|
+
params[Param.IsFullAppEmbed] = true;
|
|
14965
15044
|
params = this.getBaseQueryParams(params);
|
|
14966
15045
|
if (fullHeight === true) {
|
|
14967
15046
|
params[Param.fullHeight] = true;
|
|
@@ -14978,12 +15057,17 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14978
15057
|
if (enableSearchAssist !== undefined) {
|
|
14979
15058
|
params[Param.EnableSearchAssist] = enableSearchAssist;
|
|
14980
15059
|
}
|
|
15060
|
+
if (enable2ColumnLayout !== undefined) {
|
|
15061
|
+
params[Param.Enable2ColumnLayout] = enable2ColumnLayout;
|
|
15062
|
+
}
|
|
14981
15063
|
if (enableAskSage) {
|
|
14982
15064
|
params[Param.enableAskSage] = enableAskSage;
|
|
14983
15065
|
}
|
|
14984
15066
|
params[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
14985
15067
|
params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
|
|
14986
15068
|
params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
|
|
15069
|
+
params[Param.CollapseSearchBarInitially] = collapseSearchBarInitially;
|
|
15070
|
+
params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
|
|
14987
15071
|
const queryParams = getQueryParamString(params, true);
|
|
14988
15072
|
return queryParams;
|
|
14989
15073
|
}
|
|
@@ -15132,9 +15216,11 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
15132
15216
|
responder({ type: exports.EmbedEvent.EmbedIframeCenter, data: obj });
|
|
15133
15217
|
};
|
|
15134
15218
|
this.setIframeHeightForNonEmbedLiveboard = (data) => {
|
|
15135
|
-
if (
|
|
15136
|
-
|
|
15219
|
+
if (data.data.currentPath.startsWith('/embed/viz/')
|
|
15220
|
+
|| data.data.currentPath.startsWith('/embed/insights/viz/')) {
|
|
15221
|
+
return;
|
|
15137
15222
|
}
|
|
15223
|
+
this.setIFrameHeight(this.defaultHeight);
|
|
15138
15224
|
};
|
|
15139
15225
|
if (this.viewConfig.fullHeight === true) {
|
|
15140
15226
|
this.on(exports.EmbedEvent.RouteChange, this.setIframeHeightForNonEmbedLiveboard);
|
|
@@ -15150,7 +15236,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
15150
15236
|
let params = {};
|
|
15151
15237
|
params[Param.EmbedApp] = true;
|
|
15152
15238
|
params = this.getBaseQueryParams(params);
|
|
15153
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, enableAskSage, } = this.viewConfig;
|
|
15239
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, enableAskSage, enable2ColumnLayout, } = this.viewConfig;
|
|
15154
15240
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
15155
15241
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
15156
15242
|
if (fullHeight === true) {
|
|
@@ -15175,6 +15261,9 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
15175
15261
|
if (liveboardV2 !== undefined) {
|
|
15176
15262
|
params[Param.LiveboardV2Enabled] = liveboardV2;
|
|
15177
15263
|
}
|
|
15264
|
+
if (enable2ColumnLayout !== undefined) {
|
|
15265
|
+
params[Param.Enable2ColumnLayout] = enable2ColumnLayout;
|
|
15266
|
+
}
|
|
15178
15267
|
if (hideTabPanel) {
|
|
15179
15268
|
params[Param.HideTabPanel] = hideTabPanel;
|
|
15180
15269
|
}
|