@thoughtspot/visual-embed-sdk 1.17.0-alpha.4 → 1.17.0-customcss-embed

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.
@@ -18,7 +18,7 @@ export interface SearchBarViewConfig extends ViewConfig {
18
18
  * Embed ThoughtSpot search bar
19
19
  *
20
20
  * @Category Search Embed
21
- * @version: SDK: 1.17.0 | ThoughtSpot: 8.10.0
21
+ * @version: SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
22
22
  */
23
23
  export declare class SearchBarEmbed extends TsEmbed {
24
24
  /**
@@ -98,6 +98,13 @@ export interface ViewConfig {
98
98
  additionalFlags?: {
99
99
  [key: string]: string | number | boolean;
100
100
  };
101
+ /**
102
+ * Dynamic CSS Url to be injected in the embedded view.
103
+ * You would also need to set `style-src` in the CSP settings.
104
+ * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1-sw
105
+ * @default ''
106
+ */
107
+ customCssUrl?: string;
101
108
  }
102
109
  /**
103
110
  * Base class for embedding v2 experience
@@ -268,7 +275,7 @@ export declare class TsEmbed {
268
275
  * @param messageType The event type
269
276
  * @param data The payload to send with the message
270
277
  */
271
- trigger(messageType: HostEvent, data: any): Promise<any>;
278
+ trigger(messageType: HostEvent, data?: any): Promise<any>;
272
279
  /**
273
280
  * Marks the ThoughtSpot object to have been rendered
274
281
  * Needs to be overridden by subclasses to do the actual
@@ -82,11 +82,11 @@ interface customCssInterface {
82
82
  }
83
83
  interface CustomStyles {
84
84
  customCSSUrl?: string;
85
- customCss?: customCssInterface;
85
+ customCSS?: customCssInterface;
86
86
  }
87
87
  export interface CustomisationsInterface {
88
- style: CustomStyles;
89
- content: {
88
+ style?: CustomStyles;
89
+ content?: {
90
90
  [key: string]: string;
91
91
  };
92
92
  }
@@ -226,7 +226,7 @@ export interface EmbedConfig {
226
226
  *
227
227
  * @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl
228
228
  */
229
- customisations?: CustomisationsInterface;
229
+ customizations?: CustomisationsInterface;
230
230
  /**
231
231
  * For noRedirect SSO Auth, we need a button which the user
232
232
  * click to trigger the flow. This is the containing element
@@ -714,8 +714,8 @@ export declare enum HostEvent {
714
714
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
715
715
  * @example
716
716
  * liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
717
- * {columnName: "state",operator: "EQ",values: ["michigan"]},
718
- * {columnName: "item type",operator: "EQ",values: ["Jackets"]}
717
+ * {columnName: "state",operator: RuntimeFilterOp.EQ,values: ["michigan"]},
718
+ * {columnName: "item type",operator: RuntimeFilterOp.EQ,values: ["Jackets"]}
719
719
  * ])
720
720
  * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
721
721
  */
@@ -738,7 +738,10 @@ 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 liveboardEmbed.trigger(HostEvent.Pin, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
741
+ * @example
742
+ * liveboardEmbed.trigger(HostEvent.Pin, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
743
+ * vizEmbed.trigger(HostEvent.Pin)
744
+ * searchEmbed.trigger(HostEvent.Pin)
742
745
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
743
746
  */
744
747
  Pin = "pin",
@@ -785,8 +788,11 @@ export declare enum HostEvent {
785
788
  */
786
789
  DownloadAsPdf = "downloadAsPdf",
787
790
  /**
788
- * Triggers the Make a copy action on a Liveboard
789
- * @example liveboardEmbed.trigger(HostEvent.MakeACopy)
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)
790
796
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
791
797
  */
792
798
  MakeACopy = "makeACopy",
@@ -853,12 +859,71 @@ export declare enum HostEvent {
853
859
  * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl
854
860
  */
855
861
  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.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
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.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
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.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
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.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
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.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
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.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
919
+ */
920
+ DownloadAsXlsx = "downloadAsXLSX",
856
921
  /**
857
922
  * Triggers the Share action on a liveboard or answer
858
923
  * @example
859
924
  * liveboardEmbed.trigger(HostEvent.Share)
860
925
  * searchEmbed.trigger(HostEvent.Share)
861
- * @version SDK: 1.18.0 | Thoughtspot: 9.0.0.cl
926
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
862
927
  */
863
928
  Share = "share",
864
929
  /**
@@ -866,9 +931,36 @@ export declare enum HostEvent {
866
931
  * @example
867
932
  * liveboardEmbed.trigger(HostEvent.Save)
868
933
  * searchEmbed.trigger(HostEvent.Save)
869
- * @version SDK: 1.18.0 | Thoughtspot: 9.0.0.cl
934
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
935
+ */
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.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
870
944
  */
871
- Save = "save"
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.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
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.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
962
+ */
963
+ ManagePipelines = "manage-pipeline"
872
964
  }
873
965
  /**
874
966
  * The different visual modes that the data sources panel within
@@ -135,12 +135,13 @@ const checkReleaseVersionInBeta = (releaseVersion, suppressBetaWarning) => {
135
135
  };
136
136
  const getCustomisations = (embedConfig) => {
137
137
  const { customCssUrl } = embedConfig;
138
- let { customisations } = embedConfig;
139
- customisations = customisations || {};
140
- customisations.style = customisations.style || {};
141
- customisations.style.customCSSUrl =
142
- customisations.style.customCSSUrl || customCssUrl;
143
- return customisations;
138
+ let customizations = embedConfig.customizations ||
139
+ embedConfig.customisations;
140
+ customizations = customizations || {};
141
+ customizations.style = customizations.style || {};
142
+ customizations.style.customCSSUrl =
143
+ customizations.style.customCSSUrl || customCssUrl;
144
+ return customizations;
144
145
  };
145
146
  /**
146
147
  * Gets a reference to the DOM node given
@@ -656,8 +657,8 @@ var HostEvent;
656
657
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
657
658
  * @example
658
659
  * liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
659
- * {columnName: "state",operator: "EQ",values: ["michigan"]},
660
- * {columnName: "item type",operator: "EQ",values: ["Jackets"]}
660
+ * {columnName: "state",operator: RuntimeFilterOp.EQ,values: ["michigan"]},
661
+ * {columnName: "item type",operator: RuntimeFilterOp.EQ,values: ["Jackets"]}
661
662
  * ])
662
663
  * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
663
664
  */
@@ -680,7 +681,10 @@ var HostEvent;
680
681
  * Triggers the Pin action on an embedded object
681
682
  * @param - incase of Liveboard embed, takes in an object with vizId as a key
682
683
  * can be left empty for search and visualization embeds
683
- * @example liveboardEmbed.trigger(HostEvent.Pin, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
684
+ * @example
685
+ * liveboardEmbed.trigger(HostEvent.Pin, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
686
+ * vizEmbed.trigger(HostEvent.Pin)
687
+ * searchEmbed.trigger(HostEvent.Pin)
684
688
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
685
689
  */
686
690
  HostEvent["Pin"] = "pin";
@@ -727,8 +731,11 @@ var HostEvent;
727
731
  */
728
732
  HostEvent["DownloadAsPdf"] = "downloadAsPdf";
729
733
  /**
730
- * Triggers the Make a copy action on a Liveboard
731
- * @example liveboardEmbed.trigger(HostEvent.MakeACopy)
734
+ * Triggers the Make a copy action on a Liveboard, search or visualization
735
+ * @example
736
+ * liveboardEmbed.trigger(HostEvent.MakeACopy, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
737
+ * vizEmbed.trigger(HostEvent.MakeACopy)
738
+ * searchEmbed.trigger(HostEvent.MakeACopy)
732
739
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
733
740
  */
734
741
  HostEvent["MakeACopy"] = "makeACopy";
@@ -795,12 +802,71 @@ var HostEvent;
795
802
  * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl
796
803
  */
797
804
  HostEvent["GetTML"] = "getTML";
805
+ /**
806
+ * Triggers the ShowUnderlyingData action on visualization or search
807
+ * @param - an object with vizId as a key
808
+ * @example
809
+ * liveboardEmbed.trigger(HostEvent.ShowUnderlyingData, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
810
+ * vizEmbed.trigger(HostEvent.ShowUnderlyingData)
811
+ * searchEmbed.trigger(HostEvent.ShowUnderlyingData)
812
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
813
+ */
814
+ HostEvent["ShowUnderlyingData"] = "showUnderlyingData";
815
+ /**
816
+ * Triggers the Delete action on visualization or search
817
+ * @param - incase of Liveboard embed, takes in an object with vizId as a key
818
+ * can be left empty for search and visualization embeds
819
+ * @example
820
+ * liveboardEmbed.trigger(HostEvent.Delete, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
821
+ * vizEmbed.trigger(HostEvent.Delete)
822
+ * searchEmbed.trigger(HostEvent.Delete)
823
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
824
+ */
825
+ HostEvent["Delete"] = "delete";
826
+ /**
827
+ * Triggers the SpotIQAnalyze action on visualization or search
828
+ * @param - incase of Liveboard embed, takes in an object with vizId as a key
829
+ * can be left empty for search and visualization embeds
830
+ * @example
831
+ * liveboardEmbed.trigger(HostEvent.SpotIQAnalyze, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
832
+ * vizEmbed.trigger(HostEvent.SpotIQAnalyze)
833
+ * searchEmbed.trigger(HostEvent.SpotIQAnalyze)
834
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
835
+ */
836
+ HostEvent["SpotIQAnalyze"] = "spotIQAnalyze";
837
+ /**
838
+ * Triggers the Download action on visualization or search when Displaymode is Chart
839
+ * @example
840
+ * liveboardEmbed.trigger(HostEvent.Download, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
841
+ * vizEmbed.trigger(HostEvent.Download)
842
+ * searchEmbed.trigger(HostEvent.Download)
843
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
844
+ */
845
+ HostEvent["Download"] = "download";
846
+ /**
847
+ * Triggers the downloadAsCSV action on visualization or search when Displaymode is Table
848
+ * @example
849
+ * liveboardEmbed.trigger(HostEvent.DownloadAsCsv, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
850
+ * vizEmbed.trigger(HostEvent.DownloadAsCsv)
851
+ * searchEmbed.trigger(HostEvent.DownloadAsCsv)
852
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
853
+ */
854
+ HostEvent["DownloadAsCsv"] = "downloadAsCSV";
855
+ /**
856
+ * Triggers the downloadAsXLSX action on visualization or search when Displaymode is Table
857
+ * @example
858
+ * liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
859
+ * vizEmbed.trigger(HostEvent.DownloadAsXlsx)
860
+ * searchEmbed.trigger(HostEvent.DownloadAsXlsx)
861
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
862
+ */
863
+ HostEvent["DownloadAsXlsx"] = "downloadAsXLSX";
798
864
  /**
799
865
  * Triggers the Share action on a liveboard or answer
800
866
  * @example
801
867
  * liveboardEmbed.trigger(HostEvent.Share)
802
868
  * searchEmbed.trigger(HostEvent.Share)
803
- * @version SDK: 1.18.0 | Thoughtspot: 9.0.0.cl
869
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
804
870
  */
805
871
  HostEvent["Share"] = "share";
806
872
  /**
@@ -808,9 +874,36 @@ var HostEvent;
808
874
  * @example
809
875
  * liveboardEmbed.trigger(HostEvent.Save)
810
876
  * searchEmbed.trigger(HostEvent.Save)
811
- * @version SDK: 1.18.0 | Thoughtspot: 9.0.0.cl
877
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
812
878
  */
813
879
  HostEvent["Save"] = "save";
880
+ /**
881
+ * Triggers the SyncToSheets action on visualization
882
+ * @param - an object with vizId as a key
883
+ * @example
884
+ * liveboardEmbed.trigger(HostEvent.SyncToSheets, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
885
+ * vizEmbed.trigger(HostEvent.SyncToSheets)
886
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
887
+ */
888
+ HostEvent["SyncToSheets"] = "sync-to-sheets";
889
+ /**
890
+ * Triggers the SyncToOtherApps action on visualization
891
+ * @param - an object with vizId as a key
892
+ * @example
893
+ * liveboardEmbed.trigger(HostEvent.SyncToOtherApps, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
894
+ * vizEmbed.trigger(HostEvent.SyncToOtherApps)
895
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
896
+ */
897
+ HostEvent["SyncToOtherApps"] = "sync-to-other-apps";
898
+ /**
899
+ * Triggers the ManagePipelines action on visualization
900
+ * @param - an object with vizId as a key
901
+ * @example
902
+ * liveboardEmbed.trigger(HostEvent.ManagePipelines, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
903
+ * vizEmbed.trigger(HostEvent.ManagePipelines)
904
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
905
+ */
906
+ HostEvent["ManagePipelines"] = "manage-pipeline";
814
907
  })(HostEvent || (HostEvent = {}));
815
908
  /**
816
909
  * The different visual modes that the data sources panel within
@@ -9022,7 +9115,7 @@ function sanity(embedConfig) {
9022
9115
  if (!embedConfig.username) {
9023
9116
  throw new Error('Username not provided with Trusted auth');
9024
9117
  }
9025
- if (!embedConfig.authEndpoint ||
9118
+ if (!embedConfig.authEndpoint &&
9026
9119
  typeof embedConfig.getAuthToken !== 'function') {
9027
9120
  throw new Error('Trusted auth should provide either authEndpoint or getAuthToken');
9028
9121
  }
@@ -9054,9 +9147,9 @@ const init = (embedConfig) => {
9054
9147
  uploadMixpanelEvent(MIXPANEL_EVENT.VISUAL_SDK_CALLED_INIT, {
9055
9148
  authType: config.authType,
9056
9149
  host: config.thoughtSpotHost,
9057
- usedCustomizationSheet: ((_b = (_a = embedConfig.customisations) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.customCSSUrl) != null,
9058
- usedCustomizationVariables: ((_e = (_d = (_c = embedConfig.customisations) === null || _c === void 0 ? void 0 : _c.style) === null || _d === void 0 ? void 0 : _d.customCss) === null || _e === void 0 ? void 0 : _e.variables) != null,
9059
- usedCustomizationRules: ((_h = (_g = (_f = embedConfig.customisations) === null || _f === void 0 ? void 0 : _f.style) === null || _g === void 0 ? void 0 : _g.customCss) === null || _h === void 0 ? void 0 : _h.rules_UNSTABLE) !=
9150
+ usedCustomizationSheet: ((_b = (_a = embedConfig.customizations) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.customCSSUrl) != null,
9151
+ usedCustomizationVariables: ((_e = (_d = (_c = embedConfig.customizations) === null || _c === void 0 ? void 0 : _c.style) === null || _d === void 0 ? void 0 : _d.customCSS) === null || _e === void 0 ? void 0 : _e.variables) != null,
9152
+ usedCustomizationRules: ((_h = (_g = (_f = embedConfig.customizations) === null || _f === void 0 ? void 0 : _f.style) === null || _g === void 0 ? void 0 : _g.customCSS) === null || _h === void 0 ? void 0 : _h.rules_UNSTABLE) !=
9060
9153
  null,
9061
9154
  });
9062
9155
  if (config.callPrefetch) {
@@ -9276,7 +9369,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
9276
9369
  });
9277
9370
  }
9278
9371
 
9279
- var name="@thoughtspot/visual-embed-sdk";var version="1.17.0-alpha.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/**"];var exports={".":"./lib/src/index.js","./react":{"import":"./lib/src/react/index.js",require:"./cjs/src/react.index.js"}};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":"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
+ var name="@thoughtspot/visual-embed-sdk";var version="1.17.0-customcss-embed";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};
9280
9373
 
9281
9374
  /**
9282
9375
  * Copyright (c) 2022
@@ -9457,11 +9550,14 @@ class TsEmbed {
9457
9550
  if (this.embedConfig.authType === AuthType.EmbeddedSSO) {
9458
9551
  queryParams[Param.ForceSAMLAutoRedirect] = true;
9459
9552
  }
9460
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, showAlerts, additionalFlags, locale, } = this.viewConfig;
9553
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, showAlerts, additionalFlags, locale, customCssUrl, } = this.viewConfig;
9461
9554
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
9462
9555
  this.handleError('You cannot have both hidden actions and visible actions');
9463
9556
  return queryParams;
9464
9557
  }
9558
+ if (customCssUrl) {
9559
+ queryParams[Param.CustomCSSUrl] = customCssUrl;
9560
+ }
9465
9561
  if (disabledActions === null || disabledActions === void 0 ? void 0 : disabledActions.length) {
9466
9562
  queryParams[Param.DisableActions] = disabledActions;
9467
9563
  }
@@ -9719,7 +9815,7 @@ class TsEmbed {
9719
9815
  * @param messageType The event type
9720
9816
  * @param data The payload to send with the message
9721
9817
  */
9722
- trigger(messageType, data) {
9818
+ trigger(messageType, data = {}) {
9723
9819
  uploadMixpanelEvent(`${MIXPANEL_EVENT.VISUAL_SDK_TRIGGER}-${messageType}`);
9724
9820
  return processTrigger(this.iFrame, messageType, this.thoughtSpotHost, data);
9725
9821
  }
@@ -10193,7 +10289,7 @@ class SearchEmbed extends TsEmbed {
10193
10289
  * Embed ThoughtSpot search bar
10194
10290
  *
10195
10291
  * @Category Search Embed
10196
- * @version: SDK: 1.17.0 | ThoughtSpot: 8.10.0
10292
+ * @version: SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
10197
10293
  */
10198
10294
  class SearchBarEmbed extends TsEmbed {
10199
10295
  constructor(domSelector, viewConfig) {