@thoughtspot/visual-embed-sdk 1.17.0-alpha.5 → 1.17.1

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/CHANGELOG.md CHANGED
@@ -6,14 +6,14 @@ This project follows Semantic Versioning.
6
6
  ## Unreleased
7
7
 
8
8
  ### New Features
9
- - Set of new Host events to drive interactions on the embed programatically
9
+ - Set of new Host events to drive interactions on the embed programatically
10
10
 
11
11
  ## 1.14.1 (08-31-2022)
12
12
  - Fixed "not logged in" message showing up on "SearchEmbed" with AuthType.None.
13
13
 
14
14
  ## 1.14.0 (08-29-2022)
15
15
  - [AuthType.AuthServer] Now uses `POST` call to log the user in using the bearer token.
16
- - `liveboardV2` flag on `LiveboardEmbed` to try out the LiveboardV2 experience.
16
+ - `liveboardV2` flag on `LiveboardEmbed` to try out the LiveboardV2 experience.
17
17
 
18
18
  ## 1.13.0 (07-19-2022)
19
19
  - Release to support TS version 8.5.0.cl
@@ -29,6 +29,10 @@ This project follows Semantic Versioning.
29
29
  ### Fixed
30
30
  - Typescript build that was affecting some Angular project configurations
31
31
 
32
+ ## 1.11.2 (06-10-2022)
33
+ ### Fixed
34
+ - Typescript build that was affecting some Angular project configurations
35
+
32
36
  ## 1.11.1 (05-30-2022)
33
37
  ### Fixed
34
38
  - Whitelabeling - new [action](https://developers.thoughtspot.com/docs/typedoc/enums/Action.html#ReportError) for the ability to turn off TS specific error reporting by end users.
@@ -77,12 +81,12 @@ This project follows Semantic Versioning.
77
81
 
78
82
  ## 1.9.3 (03-22-2022)
79
83
 
80
- ### New Features
84
+ ### New Features
81
85
  - `disableLoginRedirect` option in `EmbedConfig`
82
86
 
83
87
  ## 1.9.2 (03-17-2022)
84
88
 
85
- ### New Features
89
+ ### New Features
86
90
  - Ability to trigger events on React components
87
91
  - Added new `useEmbedRef` hook, check README for usage.
88
92
 
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  # ThoughtSpot Visual Embed SDK <br/> [![Coverage Status](https://coveralls.io/repos/github/ts-blink/embed-sdk/badge.svg?branch=main)](https://coveralls.io/github/ts-blink/embed-sdk?branch=main) ![npm (scoped with tag)](https://img.shields.io/npm/v/@thoughtspot/visual-embed-sdk) [![](https://data.jsdelivr.com/v1/package/npm/@thoughtspot/visual-embed-sdk/badge?style=rounded)](https://www.jsdelivr.com/package/npm/@thoughtspot/visual-embed-sdk) ![npm](https://img.shields.io/npm/dm/@thoughtspot/visual-embed-sdk?label=npm%20downloads&style=flat-square) [![Featured on Openbase](https://badges.openbase.com/js/featured/@thoughtspot/visual-embed-sdk.svg?token=IoqZUwE8aX7LYNedeuBLM2w5Wt52hu+Dh0eyKjlpC0E=)](https://openbase.com/js/@thoughtspot/visual-embed-sdk?utm_source=embedded&amp;utm_medium=badge&amp;utm_campaign=rate-badge) ![npm bundle size (scoped)](https://img.shields.io/bundlephobia/minzip/@thoughtspot/visual-embed-sdk?style=flat-square)
8
8
 
9
9
 
10
- SDK to embed ThoughtSpot into your web apps. You need a ThoughtSpot account to use the SDK, [click here](https://www.thoughtspot.com/trial?tsref=trialtse) to start a trial.
10
+ SDK to embed ThoughtSpot into your web apps. You need to have a ThoughtSpot account to use the SDK, [click here](https://www.thoughtspot.com/trial?tsref=trialtse) to start a trial.
11
11
 
12
12
  * [Installation](#installation)
13
13
  * [Live Playground](#live-playground)
@@ -44,6 +44,10 @@ export interface SearchViewConfig extends ViewConfig {
44
44
  * using raw answer data.
45
45
  */
46
46
  hideResults?: boolean;
47
+ /**
48
+ * If set to true, expands all the data sources panel.
49
+ */
50
+ expandAllDataSource?: boolean;
47
51
  /**
48
52
  * If set to true, the Search Assist feature is enabled.
49
53
  * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
@@ -268,7 +268,7 @@ export declare class TsEmbed {
268
268
  * @param messageType The event type
269
269
  * @param data The payload to send with the message
270
270
  */
271
- trigger(messageType: HostEvent, data?: any): Promise<any>;
271
+ trigger(messageType: HostEvent, data: any): Promise<any>;
272
272
  /**
273
273
  * Marks the ThoughtSpot object to have been rendered
274
274
  * Needs to be overridden by subclasses to do the actual
@@ -738,10 +738,7 @@ export declare enum HostEvent {
738
738
  * Triggers the Pin action on an embedded object
739
739
  * @param - incase of Liveboard embed, takes in an object with vizId as a key
740
740
  * can be left empty for search and visualization embeds
741
- * @example
742
- * liveboardEmbed.trigger(HostEvent.Pin, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
743
- * vizEmbed.trigger(HostEvent.Pin)
744
- * searchEmbed.trigger(HostEvent.Pin)
741
+ * @example liveboardEmbed.trigger(HostEvent.Pin, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
745
742
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
746
743
  */
747
744
  Pin = "pin",
@@ -788,11 +785,8 @@ export declare enum HostEvent {
788
785
  */
789
786
  DownloadAsPdf = "downloadAsPdf",
790
787
  /**
791
- * Triggers the Make a copy action on a Liveboard, search or visualization
792
- * @example
793
- * liveboardEmbed.trigger(HostEvent.MakeACopy, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
794
- * vizEmbed.trigger(HostEvent.MakeACopy)
795
- * searchEmbed.trigger(HostEvent.MakeACopy)
788
+ * Triggers the Make a copy action on a Liveboard
789
+ * @example liveboardEmbed.trigger(HostEvent.MakeACopy)
796
790
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
797
791
  */
798
792
  MakeACopy = "makeACopy",
@@ -859,65 +853,6 @@ export declare enum HostEvent {
859
853
  * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl
860
854
  */
861
855
  GetTML = "getTML",
862
- /**
863
- * Triggers the ShowUnderlyingData action on visualization or search
864
- * @param - an object with vizId as a key
865
- * @example
866
- * liveboardEmbed.trigger(HostEvent.ShowUnderlyingData, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
867
- * vizEmbed.trigger(HostEvent.ShowUnderlyingData)
868
- * searchEmbed.trigger(HostEvent.ShowUnderlyingData)
869
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
870
- */
871
- ShowUnderlyingData = "showUnderlyingData",
872
- /**
873
- * Triggers the Delete action on visualization or search
874
- * @param - incase of Liveboard embed, takes in an object with vizId as a key
875
- * can be left empty for search and visualization embeds
876
- * @example
877
- * liveboardEmbed.trigger(HostEvent.Delete, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
878
- * vizEmbed.trigger(HostEvent.Delete)
879
- * searchEmbed.trigger(HostEvent.Delete)
880
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
881
- */
882
- Delete = "delete",
883
- /**
884
- * Triggers the SpotIQAnalyze action on visualization or search
885
- * @param - incase of Liveboard embed, takes in an object with vizId as a key
886
- * can be left empty for search and visualization embeds
887
- * @example
888
- * liveboardEmbed.trigger(HostEvent.SpotIQAnalyze, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
889
- * vizEmbed.trigger(HostEvent.SpotIQAnalyze)
890
- * searchEmbed.trigger(HostEvent.SpotIQAnalyze)
891
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
892
- */
893
- SpotIQAnalyze = "spotIQAnalyze",
894
- /**
895
- * Triggers the Download action on visualization or search when Displaymode is Chart
896
- * @example
897
- * liveboardEmbed.trigger(HostEvent.Download, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
898
- * vizEmbed.trigger(HostEvent.Download)
899
- * searchEmbed.trigger(HostEvent.Download)
900
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
901
- */
902
- Download = "download",
903
- /**
904
- * Triggers the downloadAsCSV action on visualization or search when Displaymode is Table
905
- * @example
906
- * liveboardEmbed.trigger(HostEvent.DownloadAsCsv, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
907
- * vizEmbed.trigger(HostEvent.DownloadAsCsv)
908
- * searchEmbed.trigger(HostEvent.DownloadAsCsv)
909
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
910
- */
911
- DownloadAsCsv = "downloadAsCSV",
912
- /**
913
- * Triggers the downloadAsXLSX action on visualization or search when Displaymode is Table
914
- * @example
915
- * liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
916
- * vizEmbed.trigger(HostEvent.DownloadAsXlsx)
917
- * searchEmbed.trigger(HostEvent.DownloadAsXlsx)
918
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
919
- */
920
- DownloadAsXlsx = "downloadAsXLSX",
921
856
  /**
922
857
  * Triggers the Share action on a liveboard or answer
923
858
  * @example
@@ -933,34 +868,7 @@ export declare enum HostEvent {
933
868
  * searchEmbed.trigger(HostEvent.Save)
934
869
  * @version SDK: 1.18.0 | Thoughtspot: 9.0.0.cl
935
870
  */
936
- Save = "save",
937
- /**
938
- * Triggers the SyncToSheets action on visualization
939
- * @param - an object with vizId as a key
940
- * @example
941
- * liveboardEmbed.trigger(HostEvent.SyncToSheets, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
942
- * vizEmbed.trigger(HostEvent.SyncToSheets)
943
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
944
- */
945
- SyncToSheets = "sync-to-sheets",
946
- /**
947
- * Triggers the SyncToOtherApps action on visualization
948
- * @param - an object with vizId as a key
949
- * @example
950
- * liveboardEmbed.trigger(HostEvent.SyncToOtherApps, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
951
- * vizEmbed.trigger(HostEvent.SyncToOtherApps)
952
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
953
- */
954
- SyncToOtherApps = "sync-to-other-apps",
955
- /**
956
- * Triggers the ManagePipelines action on visualization
957
- * @param - an object with vizId as a key
958
- * @example
959
- * liveboardEmbed.trigger(HostEvent.ManagePipelines, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
960
- * vizEmbed.trigger(HostEvent.ManagePipelines)
961
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
962
- */
963
- ManagePipelines = "manage-pipeline"
871
+ Save = "save"
964
872
  }
965
873
  /**
966
874
  * The different visual modes that the data sources panel within
@@ -680,10 +680,7 @@ var HostEvent;
680
680
  * Triggers the Pin action on an embedded object
681
681
  * @param - incase of Liveboard embed, takes in an object with vizId as a key
682
682
  * can be left empty for search and visualization embeds
683
- * @example
684
- * liveboardEmbed.trigger(HostEvent.Pin, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
685
- * vizEmbed.trigger(HostEvent.Pin)
686
- * searchEmbed.trigger(HostEvent.Pin)
683
+ * @example liveboardEmbed.trigger(HostEvent.Pin, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
687
684
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
688
685
  */
689
686
  HostEvent["Pin"] = "pin";
@@ -730,11 +727,8 @@ var HostEvent;
730
727
  */
731
728
  HostEvent["DownloadAsPdf"] = "downloadAsPdf";
732
729
  /**
733
- * Triggers the Make a copy action on a Liveboard, search or visualization
734
- * @example
735
- * liveboardEmbed.trigger(HostEvent.MakeACopy, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
736
- * vizEmbed.trigger(HostEvent.MakeACopy)
737
- * searchEmbed.trigger(HostEvent.MakeACopy)
730
+ * Triggers the Make a copy action on a Liveboard
731
+ * @example liveboardEmbed.trigger(HostEvent.MakeACopy)
738
732
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
739
733
  */
740
734
  HostEvent["MakeACopy"] = "makeACopy";
@@ -801,65 +795,6 @@ var HostEvent;
801
795
  * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl
802
796
  */
803
797
  HostEvent["GetTML"] = "getTML";
804
- /**
805
- * Triggers the ShowUnderlyingData action on visualization or search
806
- * @param - an object with vizId as a key
807
- * @example
808
- * liveboardEmbed.trigger(HostEvent.ShowUnderlyingData, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
809
- * vizEmbed.trigger(HostEvent.ShowUnderlyingData)
810
- * searchEmbed.trigger(HostEvent.ShowUnderlyingData)
811
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
812
- */
813
- HostEvent["ShowUnderlyingData"] = "showUnderlyingData";
814
- /**
815
- * Triggers the Delete action on visualization or search
816
- * @param - incase of Liveboard embed, takes in an object with vizId as a key
817
- * can be left empty for search and visualization embeds
818
- * @example
819
- * liveboardEmbed.trigger(HostEvent.Delete, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
820
- * vizEmbed.trigger(HostEvent.Delete)
821
- * searchEmbed.trigger(HostEvent.Delete)
822
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
823
- */
824
- HostEvent["Delete"] = "delete";
825
- /**
826
- * Triggers the SpotIQAnalyze action on visualization or search
827
- * @param - incase of Liveboard embed, takes in an object with vizId as a key
828
- * can be left empty for search and visualization embeds
829
- * @example
830
- * liveboardEmbed.trigger(HostEvent.SpotIQAnalyze, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
831
- * vizEmbed.trigger(HostEvent.SpotIQAnalyze)
832
- * searchEmbed.trigger(HostEvent.SpotIQAnalyze)
833
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
834
- */
835
- HostEvent["SpotIQAnalyze"] = "spotIQAnalyze";
836
- /**
837
- * Triggers the Download action on visualization or search when Displaymode is Chart
838
- * @example
839
- * liveboardEmbed.trigger(HostEvent.Download, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
840
- * vizEmbed.trigger(HostEvent.Download)
841
- * searchEmbed.trigger(HostEvent.Download)
842
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
843
- */
844
- HostEvent["Download"] = "download";
845
- /**
846
- * Triggers the downloadAsCSV action on visualization or search when Displaymode is Table
847
- * @example
848
- * liveboardEmbed.trigger(HostEvent.DownloadAsCsv, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
849
- * vizEmbed.trigger(HostEvent.DownloadAsCsv)
850
- * searchEmbed.trigger(HostEvent.DownloadAsCsv)
851
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
852
- */
853
- HostEvent["DownloadAsCsv"] = "downloadAsCSV";
854
- /**
855
- * Triggers the downloadAsXLSX action on visualization or search when Displaymode is Table
856
- * @example
857
- * liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
858
- * vizEmbed.trigger(HostEvent.DownloadAsXlsx)
859
- * searchEmbed.trigger(HostEvent.DownloadAsXlsx)
860
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
861
- */
862
- HostEvent["DownloadAsXlsx"] = "downloadAsXLSX";
863
798
  /**
864
799
  * Triggers the Share action on a liveboard or answer
865
800
  * @example
@@ -876,33 +811,6 @@ var HostEvent;
876
811
  * @version SDK: 1.18.0 | Thoughtspot: 9.0.0.cl
877
812
  */
878
813
  HostEvent["Save"] = "save";
879
- /**
880
- * Triggers the SyncToSheets action on visualization
881
- * @param - an object with vizId as a key
882
- * @example
883
- * liveboardEmbed.trigger(HostEvent.SyncToSheets, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
884
- * vizEmbed.trigger(HostEvent.SyncToSheets)
885
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
886
- */
887
- HostEvent["SyncToSheets"] = "sync-to-sheets";
888
- /**
889
- * Triggers the SyncToOtherApps action on visualization
890
- * @param - an object with vizId as a key
891
- * @example
892
- * liveboardEmbed.trigger(HostEvent.SyncToOtherApps, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
893
- * vizEmbed.trigger(HostEvent.SyncToOtherApps)
894
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
895
- */
896
- HostEvent["SyncToOtherApps"] = "sync-to-other-apps";
897
- /**
898
- * Triggers the ManagePipelines action on visualization
899
- * @param - an object with vizId as a key
900
- * @example
901
- * liveboardEmbed.trigger(HostEvent.ManagePipelines, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
902
- * vizEmbed.trigger(HostEvent.ManagePipelines)
903
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
904
- */
905
- HostEvent["ManagePipelines"] = "manage-pipeline";
906
814
  })(HostEvent || (HostEvent = {}));
907
815
  /**
908
816
  * The different visual modes that the data sources panel within
@@ -9114,7 +9022,7 @@ function sanity(embedConfig) {
9114
9022
  if (!embedConfig.username) {
9115
9023
  throw new Error('Username not provided with Trusted auth');
9116
9024
  }
9117
- if (!embedConfig.authEndpoint ||
9025
+ if (!embedConfig.authEndpoint &&
9118
9026
  typeof embedConfig.getAuthToken !== 'function') {
9119
9027
  throw new Error('Trusted auth should provide either authEndpoint or getAuthToken');
9120
9028
  }
@@ -9368,7 +9276,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
9368
9276
  });
9369
9277
  }
9370
9278
 
9371
- var name="@thoughtspot/visual-embed-sdk";var version="1.17.0-alpha.5";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/**"];var exports={".":"./lib/src/index.js","./react":"./lib/src/react/index.js"};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false",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":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts",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",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run build","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",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","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","@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","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":"4.1.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-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^4.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",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-neo-theme":"^1.1.0","typedoc-plugin-toc-group":"0.0.5",typescript:"^4.1.0","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","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,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};
9279
+ var name="@thoughtspot/visual-embed-sdk";var version="1.17.1";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/**"];var exports={".":"./lib/src/index.js","./react":"./lib/src/react/index.js"};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false",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":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts",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",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run build","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",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","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","@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","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":"4.1.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-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^4.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",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-neo-theme":"^1.1.0","typedoc-plugin-toc-group":"0.0.5",typescript:"^4.1.0","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","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,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};
9372
9280
 
9373
9281
  /**
9374
9282
  * Copyright (c) 2022
@@ -9811,7 +9719,7 @@ class TsEmbed {
9811
9719
  * @param messageType The event type
9812
9720
  * @param data The payload to send with the message
9813
9721
  */
9814
- trigger(messageType, data = {}) {
9722
+ trigger(messageType, data) {
9815
9723
  uploadMixpanelEvent(`${MIXPANEL_EVENT.VISUAL_SDK_TRIGGER}-${messageType}`);
9816
9724
  return processTrigger(this.iFrame, messageType, this.thoughtSpotHost, data);
9817
9725
  }
@@ -10228,7 +10136,7 @@ class SearchEmbed extends TsEmbed {
10228
10136
  */
10229
10137
  getIFrameSrc(answerId, dataSources) {
10230
10138
  var _a;
10231
- const { hideResults, enableSearchAssist, forceTable, searchOptions, } = this.viewConfig;
10139
+ const { hideResults, expandAllDataSource, enableSearchAssist, forceTable, searchOptions, } = this.viewConfig;
10232
10140
  const answerPath = answerId ? `saved-answer/${answerId}` : 'answer';
10233
10141
  const queryParams = this.getBaseQueryParams();
10234
10142
  queryParams[Param.HideActions] = [
package/dist/tsembed.js CHANGED
@@ -661,10 +661,7 @@
661
661
  * Triggers the Pin action on an embedded object
662
662
  * @param - incase of Liveboard embed, takes in an object with vizId as a key
663
663
  * can be left empty for search and visualization embeds
664
- * @example
665
- * liveboardEmbed.trigger(HostEvent.Pin, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
666
- * vizEmbed.trigger(HostEvent.Pin)
667
- * searchEmbed.trigger(HostEvent.Pin)
664
+ * @example liveboardEmbed.trigger(HostEvent.Pin, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
668
665
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
669
666
  */
670
667
  HostEvent["Pin"] = "pin";
@@ -711,11 +708,8 @@
711
708
  */
712
709
  HostEvent["DownloadAsPdf"] = "downloadAsPdf";
713
710
  /**
714
- * Triggers the Make a copy action on a Liveboard, search or visualization
715
- * @example
716
- * liveboardEmbed.trigger(HostEvent.MakeACopy, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
717
- * vizEmbed.trigger(HostEvent.MakeACopy)
718
- * searchEmbed.trigger(HostEvent.MakeACopy)
711
+ * Triggers the Make a copy action on a Liveboard
712
+ * @example liveboardEmbed.trigger(HostEvent.MakeACopy)
719
713
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
720
714
  */
721
715
  HostEvent["MakeACopy"] = "makeACopy";
@@ -782,65 +776,6 @@
782
776
  * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl
783
777
  */
784
778
  HostEvent["GetTML"] = "getTML";
785
- /**
786
- * Triggers the ShowUnderlyingData action on visualization or search
787
- * @param - an object with vizId as a key
788
- * @example
789
- * liveboardEmbed.trigger(HostEvent.ShowUnderlyingData, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
790
- * vizEmbed.trigger(HostEvent.ShowUnderlyingData)
791
- * searchEmbed.trigger(HostEvent.ShowUnderlyingData)
792
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
793
- */
794
- HostEvent["ShowUnderlyingData"] = "showUnderlyingData";
795
- /**
796
- * Triggers the Delete action on visualization or search
797
- * @param - incase of Liveboard embed, takes in an object with vizId as a key
798
- * can be left empty for search and visualization embeds
799
- * @example
800
- * liveboardEmbed.trigger(HostEvent.Delete, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
801
- * vizEmbed.trigger(HostEvent.Delete)
802
- * searchEmbed.trigger(HostEvent.Delete)
803
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
804
- */
805
- HostEvent["Delete"] = "delete";
806
- /**
807
- * Triggers the SpotIQAnalyze action on visualization or search
808
- * @param - incase of Liveboard embed, takes in an object with vizId as a key
809
- * can be left empty for search and visualization embeds
810
- * @example
811
- * liveboardEmbed.trigger(HostEvent.SpotIQAnalyze, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
812
- * vizEmbed.trigger(HostEvent.SpotIQAnalyze)
813
- * searchEmbed.trigger(HostEvent.SpotIQAnalyze)
814
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
815
- */
816
- HostEvent["SpotIQAnalyze"] = "spotIQAnalyze";
817
- /**
818
- * Triggers the Download action on visualization or search when Displaymode is Chart
819
- * @example
820
- * liveboardEmbed.trigger(HostEvent.Download, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
821
- * vizEmbed.trigger(HostEvent.Download)
822
- * searchEmbed.trigger(HostEvent.Download)
823
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
824
- */
825
- HostEvent["Download"] = "download";
826
- /**
827
- * Triggers the downloadAsCSV action on visualization or search when Displaymode is Table
828
- * @example
829
- * liveboardEmbed.trigger(HostEvent.DownloadAsCsv, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
830
- * vizEmbed.trigger(HostEvent.DownloadAsCsv)
831
- * searchEmbed.trigger(HostEvent.DownloadAsCsv)
832
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
833
- */
834
- HostEvent["DownloadAsCsv"] = "downloadAsCSV";
835
- /**
836
- * Triggers the downloadAsXLSX action on visualization or search when Displaymode is Table
837
- * @example
838
- * liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
839
- * vizEmbed.trigger(HostEvent.DownloadAsXlsx)
840
- * searchEmbed.trigger(HostEvent.DownloadAsXlsx)
841
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
842
- */
843
- HostEvent["DownloadAsXlsx"] = "downloadAsXLSX";
844
779
  /**
845
780
  * Triggers the Share action on a liveboard or answer
846
781
  * @example
@@ -857,33 +792,6 @@
857
792
  * @version SDK: 1.18.0 | Thoughtspot: 9.0.0.cl
858
793
  */
859
794
  HostEvent["Save"] = "save";
860
- /**
861
- * Triggers the SyncToSheets action on visualization
862
- * @param - an object with vizId as a key
863
- * @example
864
- * liveboardEmbed.trigger(HostEvent.SyncToSheets, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
865
- * vizEmbed.trigger(HostEvent.SyncToSheets)
866
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
867
- */
868
- HostEvent["SyncToSheets"] = "sync-to-sheets";
869
- /**
870
- * Triggers the SyncToOtherApps action on visualization
871
- * @param - an object with vizId as a key
872
- * @example
873
- * liveboardEmbed.trigger(HostEvent.SyncToOtherApps, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
874
- * vizEmbed.trigger(HostEvent.SyncToOtherApps)
875
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
876
- */
877
- HostEvent["SyncToOtherApps"] = "sync-to-other-apps";
878
- /**
879
- * Triggers the ManagePipelines action on visualization
880
- * @param - an object with vizId as a key
881
- * @example
882
- * liveboardEmbed.trigger(HostEvent.ManagePipelines, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
883
- * vizEmbed.trigger(HostEvent.ManagePipelines)
884
- * @version SDK: 1.18.0 | ThoughtSpot: 9.0.0.cl
885
- */
886
- HostEvent["ManagePipelines"] = "manage-pipeline";
887
795
  })(exports.HostEvent || (exports.HostEvent = {}));
888
796
  (function (DataSourceVisualMode) {
889
797
  /**
@@ -9080,7 +8988,7 @@
9080
8988
  if (!embedConfig.username) {
9081
8989
  throw new Error('Username not provided with Trusted auth');
9082
8990
  }
9083
- if (!embedConfig.authEndpoint ||
8991
+ if (!embedConfig.authEndpoint &&
9084
8992
  typeof embedConfig.getAuthToken !== 'function') {
9085
8993
  throw new Error('Trusted auth should provide either authEndpoint or getAuthToken');
9086
8994
  }
@@ -9334,7 +9242,7 @@
9334
9242
  });
9335
9243
  }
9336
9244
 
9337
- var name="@thoughtspot/visual-embed-sdk";var version="1.17.0-alpha.5";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/**"];var exports$1={".":"./lib/src/index.js","./react":"./lib/src/react/index.js"};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false",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":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts",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",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run build","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",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","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","@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","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":"4.1.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-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^4.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",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-neo-theme":"^1.1.0","typedoc-plugin-toc-group":"0.0.5",typescript:"^4.1.0","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","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,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};
9245
+ var name="@thoughtspot/visual-embed-sdk";var version="1.17.1";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/**"];var exports$1={".":"./lib/src/index.js","./react":"./lib/src/react/index.js"};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false",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":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts",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",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run build","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",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","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","@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","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":"4.1.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-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^4.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",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-neo-theme":"^1.1.0","typedoc-plugin-toc-group":"0.0.5",typescript:"^4.1.0","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","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,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};
9338
9246
 
9339
9247
  /**
9340
9248
  * Copyright (c) 2022
@@ -9777,7 +9685,7 @@
9777
9685
  * @param messageType The event type
9778
9686
  * @param data The payload to send with the message
9779
9687
  */
9780
- trigger(messageType, data = {}) {
9688
+ trigger(messageType, data) {
9781
9689
  uploadMixpanelEvent(`${MIXPANEL_EVENT.VISUAL_SDK_TRIGGER}-${messageType}`);
9782
9690
  return processTrigger(this.iFrame, messageType, this.thoughtSpotHost, data);
9783
9691
  }
@@ -10189,7 +10097,7 @@
10189
10097
  */
10190
10098
  getIFrameSrc(answerId, dataSources) {
10191
10099
  var _a;
10192
- const { hideResults, enableSearchAssist, forceTable, searchOptions, } = this.viewConfig;
10100
+ const { hideResults, expandAllDataSource, enableSearchAssist, forceTable, searchOptions, } = this.viewConfig;
10193
10101
  const answerPath = answerId ? `saved-answer/${answerId}` : 'answer';
10194
10102
  const queryParams = this.getBaseQueryParams();
10195
10103
  queryParams[Param.HideActions] = [
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.17.0-alpha.5",
3
+ "version": "1.17.1",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -109,7 +109,7 @@ function sanity(embedConfig) {
109
109
  if (!embedConfig.username) {
110
110
  throw new Error('Username not provided with Trusted auth');
111
111
  }
112
- if (!embedConfig.authEndpoint ||
112
+ if (!embedConfig.authEndpoint &&
113
113
  typeof embedConfig.getAuthToken !== 'function') {
114
114
  throw new Error('Trusted auth should provide either authEndpoint or getAuthToken');
115
115
  }
@@ -44,6 +44,10 @@ export interface SearchViewConfig extends ViewConfig {
44
44
  * using raw answer data.
45
45
  */
46
46
  hideResults?: boolean;
47
+ /**
48
+ * If set to true, expands all the data sources panel.
49
+ */
50
+ expandAllDataSource?: boolean;
47
51
  /**
48
52
  * If set to true, the Search Assist feature is enabled.
49
53
  * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
@@ -51,7 +51,7 @@ export class SearchEmbed extends TsEmbed {
51
51
  */
52
52
  getIFrameSrc(answerId, dataSources) {
53
53
  var _a;
54
- const { hideResults, enableSearchAssist, forceTable, searchOptions, } = this.viewConfig;
54
+ const { hideResults, expandAllDataSource, enableSearchAssist, forceTable, searchOptions, } = this.viewConfig;
55
55
  const answerPath = answerId ? `saved-answer/${answerId}` : 'answer';
56
56
  const queryParams = this.getBaseQueryParams();
57
57
  queryParams[Param.HideActions] = [
@@ -1 +1 @@
1
- {"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/embed/search.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,oBAAoB,EAAe,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAC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,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;QACrD,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QACpD,cAAc,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE;YACvB,IACI,yBAAyB,CACrB,iBAAiB,EAAE,EACnB,cAAc,EAAE,CAAC,8BAA8B,CAClD,EACH;gBACE,KAAK,CAAC,aAAa,CAAC,gCAAgC,CAAC,CAAC;aACzD;QACL,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ"}
@@ -268,7 +268,7 @@ export declare class TsEmbed {
268
268
  * @param messageType The event type
269
269
  * @param data The payload to send with the message
270
270
  */
271
- trigger(messageType: HostEvent, data?: any): Promise<any>;
271
+ trigger(messageType: HostEvent, data: any): Promise<any>;
272
272
  /**
273
273
  * Marks the ThoughtSpot object to have been rendered
274
274
  * Needs to be overridden by subclasses to do the actual