@thoughtspot/visual-embed-sdk 1.28.4 → 1.28.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/package.json +1 -1
- package/cjs/src/authToken.d.ts.map +1 -1
- package/cjs/src/authToken.js +8 -1
- package/cjs/src/authToken.js.map +1 -1
- package/cjs/src/authToken.spec.d.ts +2 -0
- package/cjs/src/authToken.spec.d.ts.map +1 -0
- package/cjs/src/authToken.spec.js +29 -0
- package/cjs/src/authToken.spec.js.map +1 -0
- package/cjs/src/types.d.ts +93 -48
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +76 -48
- package/cjs/src/types.js.map +1 -1
- package/dist/src/authToken.d.ts.map +1 -1
- package/dist/src/authToken.spec.d.ts +2 -0
- package/dist/src/authToken.spec.d.ts.map +1 -0
- package/dist/src/types.d.ts +93 -48
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +84 -50
- package/dist/tsembed-react.js +84 -50
- package/dist/tsembed.es.js +84 -50
- package/dist/tsembed.js +84 -50
- package/dist/visual-embed-sdk-react-full.d.ts +93 -48
- package/dist/visual-embed-sdk-react.d.ts +93 -48
- package/dist/visual-embed-sdk.d.ts +93 -48
- package/lib/package.json +1 -1
- package/lib/src/authToken.d.ts.map +1 -1
- package/lib/src/authToken.js +8 -1
- package/lib/src/authToken.js.map +1 -1
- package/lib/src/authToken.spec.d.ts +2 -0
- package/lib/src/authToken.spec.d.ts.map +1 -0
- package/lib/src/authToken.spec.js +26 -0
- package/lib/src/authToken.spec.js.map +1 -0
- package/lib/src/types.d.ts +93 -48
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +76 -48
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +93 -48
- package/package.json +1 -1
- package/src/authToken.spec.ts +31 -0
- package/src/authToken.ts +8 -1
- package/src/types.ts +94 -48
- package/cjs/src/utils/authService/tokenizedAuthService.spec.d.ts +0 -2
- package/cjs/src/utils/authService/tokenizedAuthService.spec.d.ts.map +0 -1
- package/cjs/src/utils/authService/tokenizedAuthService.spec.js +0 -32
- package/cjs/src/utils/authService/tokenizedAuthService.spec.js.map +0 -1
- package/cjs/src/utils/sessionInfoService.d.ts +0 -66
- package/cjs/src/utils/sessionInfoService.d.ts.map +0 -1
- package/cjs/src/utils/sessionInfoService.js +0 -92
- package/cjs/src/utils/sessionInfoService.js.map +0 -1
- package/dist/src/utils/authService/tokenizedAuthService.spec.d.ts +0 -2
- package/dist/src/utils/authService/tokenizedAuthService.spec.d.ts.map +0 -1
- package/dist/src/utils/sessionInfoService.d.ts +0 -66
- package/dist/src/utils/sessionInfoService.d.ts.map +0 -1
- package/lib/src/utils/authService/tokenizedAuthService.spec.d.ts +0 -2
- package/lib/src/utils/authService/tokenizedAuthService.spec.d.ts.map +0 -1
- package/lib/src/utils/authService/tokenizedAuthService.spec.js +0 -29
- package/lib/src/utils/authService/tokenizedAuthService.spec.js.map +0 -1
- package/lib/src/utils/sessionInfoService.d.ts +0 -66
- package/lib/src/utils/sessionInfoService.d.ts.map +0 -1
- package/lib/src/utils/sessionInfoService.js +0 -85
- package/lib/src/utils/sessionInfoService.js.map +0 -1
package/dist/tsembed-react.js
CHANGED
|
@@ -733,6 +733,8 @@
|
|
|
733
733
|
/**
|
|
734
734
|
* Authentication has either succeeded or failed.
|
|
735
735
|
*
|
|
736
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
737
|
+
*
|
|
736
738
|
* @example
|
|
737
739
|
*```js
|
|
738
740
|
* appEmbed.on(EmbedEvent.AuthInit, payload => {
|
|
@@ -746,6 +748,8 @@
|
|
|
746
748
|
* The embed object container has loaded.
|
|
747
749
|
*
|
|
748
750
|
* @returns timestamp - The timestamp when the event was generated.
|
|
751
|
+
*
|
|
752
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
749
753
|
* @example
|
|
750
754
|
*```js
|
|
751
755
|
* liveboardEmbed.on(EmbedEvent.Load, hideLoader)
|
|
@@ -760,6 +764,8 @@
|
|
|
760
764
|
* Data pertaining to answer or Liveboard is received
|
|
761
765
|
*
|
|
762
766
|
* @return data - The answer or Liveboard data
|
|
767
|
+
*
|
|
768
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
763
769
|
* @example
|
|
764
770
|
*```js
|
|
765
771
|
* liveboardEmbed.on(EmbedEvent.Data, payload => {
|
|
@@ -778,6 +784,7 @@
|
|
|
778
784
|
/**
|
|
779
785
|
* Search query has been updated by the user.
|
|
780
786
|
*
|
|
787
|
+
* @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
|
|
781
788
|
* @example
|
|
782
789
|
*```js
|
|
783
790
|
* searchEmbed.on(EmbedEvent.QueryChanged, payload => console.log('data', payload))
|
|
@@ -787,12 +794,14 @@
|
|
|
787
794
|
/**
|
|
788
795
|
* A drill-down operation has been performed.
|
|
789
796
|
*
|
|
797
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
798
|
+
*
|
|
790
799
|
* @returns additionalFilters - Any additional filters applied
|
|
791
800
|
* @returns drillDownColumns - The columns on which drill down was performed
|
|
792
801
|
* @returns nonFilteredColumns - The columns that were not filtered
|
|
793
802
|
* @example
|
|
794
803
|
*```js
|
|
795
|
-
* searchEmbed.
|
|
804
|
+
* searchEmbed.on(EmbedEvent.DrillDown, {
|
|
796
805
|
* points: {
|
|
797
806
|
* clickedPoint,
|
|
798
807
|
* selectedPoints: selectedPoint
|
|
@@ -825,6 +834,8 @@
|
|
|
825
834
|
* One or more data sources have been selected.
|
|
826
835
|
*
|
|
827
836
|
* @returns dataSourceIds - the list of data sources
|
|
837
|
+
*
|
|
838
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
828
839
|
* @example
|
|
829
840
|
* ```js
|
|
830
841
|
* searchEmbed.on(EmbedEvent.DataSourceSelected, payload => {
|
|
@@ -852,6 +863,8 @@
|
|
|
852
863
|
* @returns actionId - ID of the custom action
|
|
853
864
|
* @returns payload {@link CustomActionPayload} - Response payload with the
|
|
854
865
|
* Answer or Liveboard data
|
|
866
|
+
*
|
|
867
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
855
868
|
* @example
|
|
856
869
|
* ```js
|
|
857
870
|
* appEmbed.on(EmbedEvent.customAction, payload => {
|
|
@@ -899,22 +912,23 @@
|
|
|
899
912
|
/**
|
|
900
913
|
* An error has occurred. This event is fired for the following error types:
|
|
901
914
|
*
|
|
902
|
-
*
|
|
915
|
+
* `API`: API call failure error.
|
|
903
916
|
*
|
|
904
|
-
*
|
|
905
|
-
* mode.
|
|
917
|
+
* `FULLSCREEN`: Error when presenting a Liveboard or visualization in full screen mode.
|
|
906
918
|
*
|
|
907
|
-
*
|
|
919
|
+
* `SINGLE_VALUE_FILTER`: Error due to multiple values in the single value filter.
|
|
908
920
|
*
|
|
909
|
-
*
|
|
921
|
+
* `NON_EXIST_FILTER`: Error due to a non-existent filter.
|
|
910
922
|
*
|
|
911
|
-
*
|
|
923
|
+
* `INVALID_DATE_VALUE`: Invalid date value error.
|
|
912
924
|
*
|
|
913
|
-
*
|
|
925
|
+
* `INVALID_OPERATOR`: Use of invalid operator during filter application.
|
|
914
926
|
*
|
|
915
|
-
* For more information, see
|
|
927
|
+
* For more information, see https://developers.thoughtspot.com/docs/events-app-integration#errorType.
|
|
916
928
|
*
|
|
917
929
|
* @returns error - An error object or message
|
|
930
|
+
*
|
|
931
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
918
932
|
* @example
|
|
919
933
|
* ```js
|
|
920
934
|
* // API error
|
|
@@ -940,6 +954,9 @@
|
|
|
940
954
|
* The embedded object has sent an alert.
|
|
941
955
|
*
|
|
942
956
|
* @returns alert - An alert object
|
|
957
|
+
*
|
|
958
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
959
|
+
*
|
|
943
960
|
* @example
|
|
944
961
|
* ```js
|
|
945
962
|
* searchEmbed.on(EmbedEvent.Alert)
|
|
@@ -949,6 +966,8 @@
|
|
|
949
966
|
/**
|
|
950
967
|
* The ThoughtSpot auth session has expired.
|
|
951
968
|
*
|
|
969
|
+
* @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
|
|
970
|
+
*
|
|
952
971
|
* @example
|
|
953
972
|
*```js
|
|
954
973
|
* appEmbed.on(EmbedEvent.AuthExpire, showAuthExpired)
|
|
@@ -1002,6 +1021,7 @@
|
|
|
1002
1021
|
/**
|
|
1003
1022
|
* Detects the route change.
|
|
1004
1023
|
*
|
|
1024
|
+
* @version SDK: 1.7.0 | ThoughtSpot: 8.0.0.cl, 8.4.1.sw
|
|
1005
1025
|
* @example
|
|
1006
1026
|
*```js
|
|
1007
1027
|
* searchEmbed.on(EmbedEvent.RouteChange, payload =>
|
|
@@ -1018,7 +1038,7 @@
|
|
|
1018
1038
|
/**
|
|
1019
1039
|
* Emitted when the embed does not have cookie access. This happens
|
|
1020
1040
|
* when Safari and other Web browsers block third-party cookies
|
|
1021
|
-
* are blocked by default.
|
|
1041
|
+
* are blocked by default.
|
|
1022
1042
|
*
|
|
1023
1043
|
* @example
|
|
1024
1044
|
*```js
|
|
@@ -1061,7 +1081,7 @@
|
|
|
1061
1081
|
/**
|
|
1062
1082
|
* Emitted when the Liveboard shell loads.
|
|
1063
1083
|
* You can use this event as a hook to trigger
|
|
1064
|
-
*
|
|
1084
|
+
* actions on the rendered Liveboard.
|
|
1065
1085
|
*
|
|
1066
1086
|
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
1067
1087
|
* @example
|
|
@@ -1082,8 +1102,7 @@
|
|
|
1082
1102
|
*/
|
|
1083
1103
|
EmbedEvent["LiveboardRendered"] = "PinboardRendered";
|
|
1084
1104
|
/**
|
|
1085
|
-
*
|
|
1086
|
-
* is triggered on all events.
|
|
1105
|
+
* Emits all events.
|
|
1087
1106
|
*
|
|
1088
1107
|
* @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
1089
1108
|
* @example
|
|
@@ -1100,13 +1119,13 @@
|
|
|
1100
1119
|
* @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1101
1120
|
* @example
|
|
1102
1121
|
*```js
|
|
1103
|
-
* //
|
|
1122
|
+
* //Emit when action starts
|
|
1104
1123
|
* searchEmbed.on(EmbedEvent.Save, payload => {
|
|
1105
1124
|
* console.log('Save', payload)
|
|
1106
1125
|
* }, {
|
|
1107
1126
|
* start: true
|
|
1108
1127
|
* })
|
|
1109
|
-
* //
|
|
1128
|
+
* //emit when action ends
|
|
1110
1129
|
* searchEmbed.on(EmbedEvent.Save, payload => {
|
|
1111
1130
|
* console.log('Save', payload)
|
|
1112
1131
|
* })
|
|
@@ -1116,7 +1135,7 @@
|
|
|
1116
1135
|
/**
|
|
1117
1136
|
* Emitted when the download action is triggered on an answer
|
|
1118
1137
|
*
|
|
1119
|
-
*
|
|
1138
|
+
* **Note**: This event is deprecated in v1.21.0.
|
|
1120
1139
|
* To fire an event when a download action is initiated on a chart or table,
|
|
1121
1140
|
* use `EmbedEvent.DownloadAsPng`, `EmbedEvent.DownloadAsPDF`, `EmbedEvent.DownloadAsCSV`,
|
|
1122
1141
|
* or `EmbedEvent.DownloadAsXLSX`
|
|
@@ -1124,7 +1143,7 @@
|
|
|
1124
1143
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1125
1144
|
* @example
|
|
1126
1145
|
*```js
|
|
1127
|
-
* liveboardEmbed.
|
|
1146
|
+
* liveboardEmbed.on(EmbedEvent.Download, {
|
|
1128
1147
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
1129
1148
|
* })
|
|
1130
1149
|
*```
|
|
@@ -1136,10 +1155,10 @@
|
|
|
1136
1155
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
|
|
1137
1156
|
* @example
|
|
1138
1157
|
*```js
|
|
1139
|
-
* //
|
|
1158
|
+
* //emit when action starts
|
|
1140
1159
|
* searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
|
|
1141
1160
|
* console.log('download PNG', payload)}, {start: true })
|
|
1142
|
-
* //
|
|
1161
|
+
* //emit when action ends
|
|
1143
1162
|
* searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
|
|
1144
1163
|
* console.log('download PNG', payload)})
|
|
1145
1164
|
*```
|
|
@@ -1151,10 +1170,10 @@
|
|
|
1151
1170
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1152
1171
|
* @example
|
|
1153
1172
|
*```js
|
|
1154
|
-
* //
|
|
1173
|
+
* //emit when action starts
|
|
1155
1174
|
* searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
|
|
1156
1175
|
* console.log('download PDF', payload)}, {start: true })
|
|
1157
|
-
* //
|
|
1176
|
+
* //emit when action ends
|
|
1158
1177
|
* searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
|
|
1159
1178
|
* console.log('download PDF', payload)})
|
|
1160
1179
|
*```
|
|
@@ -1166,10 +1185,10 @@
|
|
|
1166
1185
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1167
1186
|
* @example
|
|
1168
1187
|
*```js
|
|
1169
|
-
* //
|
|
1188
|
+
* //emit when action starts
|
|
1170
1189
|
* searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
|
|
1171
1190
|
* console.log('download CSV', payload)}, {start: true })
|
|
1172
|
-
* //
|
|
1191
|
+
* //emit when action ends
|
|
1173
1192
|
* searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
|
|
1174
1193
|
* console.log('download CSV', payload)})
|
|
1175
1194
|
*```
|
|
@@ -1181,10 +1200,10 @@
|
|
|
1181
1200
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1182
1201
|
* @example
|
|
1183
1202
|
*```js
|
|
1184
|
-
* //
|
|
1203
|
+
* //emit when action starts
|
|
1185
1204
|
* searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
|
|
1186
1205
|
* console.log('download Xlsx', payload)}, { start: true })
|
|
1187
|
-
* //
|
|
1206
|
+
* //emit when action ends
|
|
1188
1207
|
* searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
|
|
1189
1208
|
* console.log('download Xlsx', payload)})
|
|
1190
1209
|
*```
|
|
@@ -1196,10 +1215,10 @@
|
|
|
1196
1215
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1197
1216
|
* @example
|
|
1198
1217
|
*```js
|
|
1199
|
-
* //
|
|
1218
|
+
* //emit when action starts
|
|
1200
1219
|
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
1201
1220
|
* console.log('delete answer', payload)}, {start: true })
|
|
1202
|
-
* //
|
|
1221
|
+
* //emit when action is completed
|
|
1203
1222
|
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
1204
1223
|
* console.log('delete answer', payload)})
|
|
1205
1224
|
*```
|
|
@@ -1211,13 +1230,13 @@
|
|
|
1211
1230
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1212
1231
|
* @example
|
|
1213
1232
|
*```js
|
|
1214
|
-
* //
|
|
1233
|
+
* //emit when action starts
|
|
1215
1234
|
* searchEmbed.on(EmbedEvent.Pin, payload => {
|
|
1216
1235
|
* console.log('pin', payload)
|
|
1217
1236
|
* }, {
|
|
1218
1237
|
* start: true
|
|
1219
1238
|
* })
|
|
1220
|
-
* //
|
|
1239
|
+
* //emit when action ends
|
|
1221
1240
|
* searchEmbed.on(EmbedEvent.Pin, payload => {
|
|
1222
1241
|
* console.log('pin', payload)
|
|
1223
1242
|
* })
|
|
@@ -1230,13 +1249,13 @@
|
|
|
1230
1249
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1231
1250
|
* @example
|
|
1232
1251
|
*```js
|
|
1233
|
-
* //
|
|
1252
|
+
* //emit when action starts
|
|
1234
1253
|
* searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
|
|
1235
1254
|
* console.log('SpotIQAnalyze', payload)
|
|
1236
1255
|
* }, {
|
|
1237
1256
|
* start: true
|
|
1238
1257
|
* })
|
|
1239
|
-
* //
|
|
1258
|
+
* //emit when action ends
|
|
1240
1259
|
* searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
|
|
1241
1260
|
* console.log('SpotIQ analyze', payload)
|
|
1242
1261
|
* })
|
|
@@ -1249,13 +1268,13 @@
|
|
|
1249
1268
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1250
1269
|
* @example
|
|
1251
1270
|
*```js
|
|
1252
|
-
* //
|
|
1271
|
+
* //emit when action starts
|
|
1253
1272
|
* searchEmbed.on(EmbedEvent.Share, payload => {
|
|
1254
1273
|
* console.log('Share', payload)
|
|
1255
1274
|
* }, {
|
|
1256
1275
|
* start: true
|
|
1257
1276
|
* })
|
|
1258
|
-
* //
|
|
1277
|
+
* //emit when action ends
|
|
1259
1278
|
* searchEmbed.on(EmbedEvent.Share, payload => {
|
|
1260
1279
|
* console.log('Share', payload)
|
|
1261
1280
|
* })
|
|
@@ -1330,10 +1349,10 @@
|
|
|
1330
1349
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1331
1350
|
* @example
|
|
1332
1351
|
*```js
|
|
1333
|
-
* //
|
|
1352
|
+
* //emit when action starts
|
|
1334
1353
|
* searchEmbed.on(EmbedEvent.ExportTML, payload => {
|
|
1335
1354
|
* console.log('Export TML', payload)}, { start: true })
|
|
1336
|
-
* //
|
|
1355
|
+
* //emit when action ends
|
|
1337
1356
|
* searchEmbed.on(EmbedEvent.ExportTML, payload => {
|
|
1338
1357
|
* console.log('Export TML', payload)})
|
|
1339
1358
|
*```
|
|
@@ -1357,10 +1376,10 @@
|
|
|
1357
1376
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1358
1377
|
* @example
|
|
1359
1378
|
*```js
|
|
1360
|
-
* //
|
|
1379
|
+
* //emit when action starts
|
|
1361
1380
|
* appEmbed.on(EmbedEvent.CopyAEdit, payload => {
|
|
1362
1381
|
* console.log('Copy and edit', payload)}, {start: true })
|
|
1363
|
-
* //
|
|
1382
|
+
* //emit when action ends
|
|
1364
1383
|
* appEmbed.on(EmbedEvent.CopyAEdit, payload => {
|
|
1365
1384
|
* console.log('Copy and edit', payload)})
|
|
1366
1385
|
*```
|
|
@@ -1462,7 +1481,7 @@
|
|
|
1462
1481
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1463
1482
|
* @example
|
|
1464
1483
|
*```js
|
|
1465
|
-
* liveboardEmbed.
|
|
1484
|
+
* liveboardEmbed.on(EmbedEvent.Present)
|
|
1466
1485
|
*```
|
|
1467
1486
|
* @example
|
|
1468
1487
|
*```js
|
|
@@ -1478,7 +1497,7 @@
|
|
|
1478
1497
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1479
1498
|
* @example
|
|
1480
1499
|
*```js
|
|
1481
|
-
* liveboardEmbed.
|
|
1500
|
+
* liveboardEmbed.on(EmbedEvent.Delete,
|
|
1482
1501
|
* {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1483
1502
|
*```
|
|
1484
1503
|
*/
|
|
@@ -1489,7 +1508,7 @@
|
|
|
1489
1508
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1490
1509
|
* @example
|
|
1491
1510
|
*```js
|
|
1492
|
-
* liveboardEmbed.
|
|
1511
|
+
* liveboardEmbed.on(EmbedEvent.SchedulesList)
|
|
1493
1512
|
*```
|
|
1494
1513
|
*/
|
|
1495
1514
|
EmbedEvent["SchedulesList"] = "schedule-list";
|
|
@@ -1499,7 +1518,7 @@
|
|
|
1499
1518
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1500
1519
|
* @example
|
|
1501
1520
|
*```js
|
|
1502
|
-
* liveboardEmbed.
|
|
1521
|
+
* liveboardEmbed.on(EmbedEvent.Cancel)
|
|
1503
1522
|
*```
|
|
1504
1523
|
*/
|
|
1505
1524
|
EmbedEvent["Cancel"] = "cancel";
|
|
@@ -1509,7 +1528,7 @@
|
|
|
1509
1528
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1510
1529
|
* @example
|
|
1511
1530
|
*```js
|
|
1512
|
-
* liveboardEmbed.
|
|
1531
|
+
* liveboardEmbed.on(EmbedEvent.Explore, {
|
|
1513
1532
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1514
1533
|
*```
|
|
1515
1534
|
*/
|
|
@@ -1520,7 +1539,7 @@
|
|
|
1520
1539
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1521
1540
|
* @example
|
|
1522
1541
|
*```js
|
|
1523
|
-
* liveboardEmbed.
|
|
1542
|
+
* liveboardEmbed.on(EmbedEvent.CopyLink, {
|
|
1524
1543
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1525
1544
|
*```
|
|
1526
1545
|
*/
|
|
@@ -1531,7 +1550,7 @@
|
|
|
1531
1550
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
1532
1551
|
* @example
|
|
1533
1552
|
*```js
|
|
1534
|
-
* liveboardEmbed.
|
|
1553
|
+
* liveboardEmbed.on(EmbedEvent.CrossFilterChanged, {
|
|
1535
1554
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1536
1555
|
*```
|
|
1537
1556
|
*/
|
|
@@ -1555,9 +1574,18 @@
|
|
|
1555
1574
|
*/
|
|
1556
1575
|
EmbedEvent["InsertIntoSlide"] = "insertInToSlide";
|
|
1557
1576
|
/**
|
|
1558
|
-
* @hidden
|
|
1559
1577
|
* Emitted when a user changes any filter on a Liveboard.
|
|
1578
|
+
* Returns filter type and name, column name and ID, and runtime
|
|
1579
|
+
* filter details.
|
|
1580
|
+
*
|
|
1560
1581
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.0.sw
|
|
1582
|
+
* @example
|
|
1583
|
+
*
|
|
1584
|
+
*```js
|
|
1585
|
+
* LiveboardEmbed.on(EmbedEvent.FilterChanged, (payload) => {
|
|
1586
|
+
* console.log('payload', payload);
|
|
1587
|
+
* })
|
|
1588
|
+
*```
|
|
1561
1589
|
*/
|
|
1562
1590
|
EmbedEvent["FilterChanged"] = "filterChanged";
|
|
1563
1591
|
/**
|
|
@@ -2070,7 +2098,7 @@
|
|
|
2070
2098
|
* ```js
|
|
2071
2099
|
* searchEmbed.trigger(HostEvent.GetTML).then((tml) => {
|
|
2072
2100
|
* console.log(
|
|
2073
|
-
* tml.search_query // TML representation of the search query
|
|
2101
|
+
* tml.answer.search_query // TML representation of the search query
|
|
2074
2102
|
* );
|
|
2075
2103
|
* })
|
|
2076
2104
|
* ```
|
|
@@ -2313,7 +2341,7 @@
|
|
|
2313
2341
|
*
|
|
2314
2342
|
* ```js
|
|
2315
2343
|
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
2316
|
-
* filter: { column: 'column name', oper: 'IN', values: [1,2,3]
|
|
2344
|
+
* filter: { column: 'column name', oper: 'IN', values: [1,2,3]}
|
|
2317
2345
|
* })
|
|
2318
2346
|
* ```
|
|
2319
2347
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
@@ -3429,7 +3457,7 @@
|
|
|
3429
3457
|
* disabledActions: [Action.TML] // to disable all TML actions
|
|
3430
3458
|
* ```
|
|
3431
3459
|
*
|
|
3432
|
-
* @version SDK : 1.28.
|
|
3460
|
+
* @version SDK : 1.28.3 | Thoughtspot: 9.12.0.cl
|
|
3433
3461
|
*/
|
|
3434
3462
|
Action["TML"] = "tml";
|
|
3435
3463
|
/**
|
|
@@ -5794,7 +5822,7 @@
|
|
|
5794
5822
|
|
|
5795
5823
|
var isEqual_1 = isEqual;
|
|
5796
5824
|
|
|
5797
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.28.
|
|
5825
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.28.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/**","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};
|
|
5798
5826
|
|
|
5799
5827
|
/**
|
|
5800
5828
|
* Checks if `value` is `undefined`.
|
|
@@ -6023,7 +6051,9 @@
|
|
|
6023
6051
|
let cachedAuthToken = null;
|
|
6024
6052
|
// This method can be used to get the authToken using the embedConfig
|
|
6025
6053
|
const getAuthenticationToken = async (embedConfig) => {
|
|
6026
|
-
if
|
|
6054
|
+
// Since we don't have token validation enabled , we cannot tell if the
|
|
6055
|
+
// cached token is valid or not. So we will always fetch a new token.
|
|
6056
|
+
if (cachedAuthToken && !embedConfig.disableTokenVerification) {
|
|
6027
6057
|
let isCachedTokenStillValid;
|
|
6028
6058
|
try {
|
|
6029
6059
|
isCachedTokenStillValid = await validateAuthToken(embedConfig, cachedAuthToken, true);
|
|
@@ -6049,6 +6079,10 @@
|
|
|
6049
6079
|
return authToken;
|
|
6050
6080
|
};
|
|
6051
6081
|
const validateAuthToken = async (embedConfig, authToken, suppressAlert) => {
|
|
6082
|
+
if (embedConfig.disableTokenVerification) {
|
|
6083
|
+
logger.info('Token verification is disabled. Assuming token is valid.');
|
|
6084
|
+
return true;
|
|
6085
|
+
}
|
|
6052
6086
|
try {
|
|
6053
6087
|
const isTokenValid = await verifyTokenService(embedConfig.thoughtSpotHost, authToken);
|
|
6054
6088
|
if (isTokenValid)
|