@thoughtspot/visual-embed-sdk 1.53.1 → 1.53.2-beta
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/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +25 -6
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/auth.spec.js +40 -8
- package/cjs/src/auth.spec.js.map +1 -1
- package/cjs/src/contracts/contracts.spec.js +165 -2
- package/cjs/src/contracts/contracts.spec.js.map +1 -1
- package/cjs/src/contracts/embed-event-payloads.d.ts +212 -14
- package/cjs/src/contracts/embed-event-payloads.d.ts.map +1 -1
- package/cjs/src/contracts/host-event-contracts.d.ts +1 -0
- package/cjs/src/contracts/host-event-contracts.d.ts.map +1 -1
- package/cjs/src/css-variables.d.ts +140 -0
- package/cjs/src/css-variables.d.ts.map +1 -1
- package/cjs/src/embed/auto-frame-renderer.d.ts +14 -1
- package/cjs/src/embed/auto-frame-renderer.d.ts.map +1 -1
- package/cjs/src/embed/auto-frame-renderer.js +91 -2
- package/cjs/src/embed/auto-frame-renderer.js.map +1 -1
- package/cjs/src/embed/auto-frame-renderer.spec.js +112 -7
- package/cjs/src/embed/auto-frame-renderer.spec.js.map +1 -1
- package/cjs/src/embed/host-events.spec.js +18 -0
- package/cjs/src/embed/host-events.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +42 -0
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/react/util.d.ts +8 -1
- package/cjs/src/react/util.d.ts.map +1 -1
- package/cjs/src/react/util.js.map +1 -1
- package/cjs/src/types.d.ts +181 -1
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +180 -0
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-CrBnZBZv.js → index-DQ7r5f1z.js} +1 -1
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/contracts/embed-event-payloads.d.ts +212 -14
- package/dist/src/contracts/embed-event-payloads.d.ts.map +1 -1
- package/dist/src/contracts/host-event-contracts.d.ts +1 -0
- package/dist/src/contracts/host-event-contracts.d.ts.map +1 -1
- package/dist/src/css-variables.d.ts +140 -0
- package/dist/src/css-variables.d.ts.map +1 -1
- package/dist/src/embed/auto-frame-renderer.d.ts +14 -1
- package/dist/src/embed/auto-frame-renderer.d.ts.map +1 -1
- package/dist/src/react/util.d.ts +8 -1
- package/dist/src/react/util.d.ts.map +1 -1
- package/dist/src/types.d.ts +181 -1
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +230 -9
- package/dist/tsembed-react.js +229 -8
- package/dist/tsembed.es.js +298 -10
- package/dist/tsembed.js +297 -9
- package/dist/visual-embed-sdk-react-full.d.ts +534 -13
- package/dist/visual-embed-sdk-react.d.ts +531 -11
- package/dist/visual-embed-sdk.d.ts +527 -12
- package/lib/package.json +1 -1
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +25 -6
- package/lib/src/auth.js.map +1 -1
- package/lib/src/auth.spec.js +40 -8
- package/lib/src/auth.spec.js.map +1 -1
- package/lib/src/contracts/contracts.spec.js +165 -2
- package/lib/src/contracts/contracts.spec.js.map +1 -1
- package/lib/src/contracts/embed-event-payloads.d.ts +212 -14
- package/lib/src/contracts/embed-event-payloads.d.ts.map +1 -1
- package/lib/src/contracts/host-event-contracts.d.ts +1 -0
- package/lib/src/contracts/host-event-contracts.d.ts.map +1 -1
- package/lib/src/css-variables.d.ts +140 -0
- package/lib/src/css-variables.d.ts.map +1 -1
- package/lib/src/embed/auto-frame-renderer.d.ts +14 -1
- package/lib/src/embed/auto-frame-renderer.d.ts.map +1 -1
- package/lib/src/embed/auto-frame-renderer.js +91 -2
- package/lib/src/embed/auto-frame-renderer.js.map +1 -1
- package/lib/src/embed/auto-frame-renderer.spec.js +113 -8
- package/lib/src/embed/auto-frame-renderer.spec.js.map +1 -1
- package/lib/src/embed/host-events.spec.js +18 -0
- package/lib/src/embed/host-events.spec.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +42 -0
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/react/util.d.ts +8 -1
- package/lib/src/react/util.d.ts.map +1 -1
- package/lib/src/react/util.js.map +1 -1
- package/lib/src/types.d.ts +181 -1
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +180 -0
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +527 -12
- package/package.json +1 -1
- package/src/auth.spec.ts +47 -11
- package/src/auth.ts +35 -6
- package/src/contracts/contracts.spec.ts +182 -3
- package/src/contracts/embed-event-payloads.ts +281 -14
- package/src/contracts/host-event-contracts.ts +1 -0
- package/src/css-variables.ts +168 -0
- package/src/embed/auto-frame-renderer.spec.ts +134 -8
- package/src/embed/auto-frame-renderer.ts +103 -2
- package/src/embed/host-events.spec.ts +24 -0
- package/src/embed/liveboard.spec.ts +45 -0
- package/src/react/util.ts +13 -1
- package/src/types.ts +181 -0
package/dist/tsembed-react.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.53.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.53.2-beta */
|
|
2
2
|
'use client';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { useRef, useCallback } from 'react';
|
|
@@ -656,6 +656,7 @@ var EmbedEvent;
|
|
|
656
656
|
* })
|
|
657
657
|
* ```
|
|
658
658
|
* @returns isLoggedIn - A Boolean specifying whether authentication was successful.
|
|
659
|
+
* Payload: {@link AuthInitPayload}.
|
|
659
660
|
*/
|
|
660
661
|
EmbedEvent["AuthInit"] = "authInit";
|
|
661
662
|
/**
|
|
@@ -675,6 +676,7 @@ var EmbedEvent;
|
|
|
675
676
|
/**
|
|
676
677
|
* Data pertaining to an Answer, Liveboard or Spotter visualization is received.
|
|
677
678
|
* The event payload includes the raw data of the object.
|
|
679
|
+
* Payload: {@link DataEventPayload}.
|
|
678
680
|
* @return data - Answer of Liveboard data
|
|
679
681
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
680
682
|
* @example
|
|
@@ -688,6 +690,7 @@ var EmbedEvent;
|
|
|
688
690
|
EmbedEvent["Data"] = "data";
|
|
689
691
|
/**
|
|
690
692
|
* Search query has been updated by the user.
|
|
693
|
+
* Payload: {@link QueryChangedPayload} or a string.
|
|
691
694
|
* @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
|
|
692
695
|
* @example
|
|
693
696
|
* ```js
|
|
@@ -730,6 +733,7 @@ var EmbedEvent;
|
|
|
730
733
|
* })
|
|
731
734
|
* })
|
|
732
735
|
* ```
|
|
736
|
+
* Payload: {@link DrilldownPayload}.
|
|
733
737
|
*/
|
|
734
738
|
EmbedEvent["Drilldown"] = "drillDown";
|
|
735
739
|
/**
|
|
@@ -742,6 +746,7 @@ var EmbedEvent;
|
|
|
742
746
|
* console.log('DataSourceSelected', payload);
|
|
743
747
|
* })
|
|
744
748
|
* ```
|
|
749
|
+
* Payload: {@link DataSourceSelectedPayload} or string[].
|
|
745
750
|
*/
|
|
746
751
|
EmbedEvent["DataSourceSelected"] = "dataSourceSelected";
|
|
747
752
|
/**
|
|
@@ -754,6 +759,7 @@ var EmbedEvent;
|
|
|
754
759
|
* console.log('AddRemoveColumns', payload);
|
|
755
760
|
* })
|
|
756
761
|
* ```
|
|
762
|
+
* Payload: string[].
|
|
757
763
|
*/
|
|
758
764
|
EmbedEvent["AddRemoveColumns"] = "addRemoveColumns";
|
|
759
765
|
/**
|
|
@@ -771,6 +777,7 @@ var EmbedEvent;
|
|
|
771
777
|
* }
|
|
772
778
|
* })
|
|
773
779
|
* ```
|
|
780
|
+
* Payload: {@link CustomActionPayload} (on() enriches it to {@link CustomActionEventPayload}).
|
|
774
781
|
*/
|
|
775
782
|
EmbedEvent["CustomAction"] = "customAction";
|
|
776
783
|
/**
|
|
@@ -783,6 +790,7 @@ var EmbedEvent;
|
|
|
783
790
|
* console.log('VizPointDoubleClick', payload);
|
|
784
791
|
* })
|
|
785
792
|
* ```
|
|
793
|
+
* Payload: {@link VizInteractionPayload}.
|
|
786
794
|
*/
|
|
787
795
|
EmbedEvent["VizPointDoubleClick"] = "vizPointDoubleClick";
|
|
788
796
|
/**
|
|
@@ -802,6 +810,7 @@ var EmbedEvent;
|
|
|
802
810
|
* )
|
|
803
811
|
* });
|
|
804
812
|
* ```
|
|
813
|
+
* Payload: {@link VizInteractionPayload}.
|
|
805
814
|
*/
|
|
806
815
|
EmbedEvent["VizPointClick"] = "vizPointClick";
|
|
807
816
|
/**
|
|
@@ -854,6 +863,7 @@ var EmbedEvent;
|
|
|
854
863
|
* // { errorType: "API", message: '...', code: '...' }
|
|
855
864
|
* });
|
|
856
865
|
* ```
|
|
866
|
+
* Payload: {@link EmbedErrorPayload} or a string.
|
|
857
867
|
*/
|
|
858
868
|
EmbedEvent["Error"] = "Error";
|
|
859
869
|
/**
|
|
@@ -904,6 +914,7 @@ var EmbedEvent;
|
|
|
904
914
|
* The center of visible iframe viewport is calculated.
|
|
905
915
|
* @returns data - The center of the visible Iframe viewport.
|
|
906
916
|
* @hidden
|
|
917
|
+
* Payload: none.
|
|
907
918
|
*/
|
|
908
919
|
EmbedEvent["EmbedIframeCenter"] = "EmbedIframeCenter";
|
|
909
920
|
/**
|
|
@@ -960,6 +971,7 @@ var EmbedEvent;
|
|
|
960
971
|
* console.log('dialog open', payload);
|
|
961
972
|
* })
|
|
962
973
|
* ```
|
|
974
|
+
* Payload: none.
|
|
963
975
|
*/
|
|
964
976
|
EmbedEvent["DialogOpen"] = "dialog-open";
|
|
965
977
|
/**
|
|
@@ -971,6 +983,7 @@ var EmbedEvent;
|
|
|
971
983
|
* console.log('dialog close', payload);
|
|
972
984
|
* })
|
|
973
985
|
* ```
|
|
986
|
+
* Payload: none.
|
|
974
987
|
*/
|
|
975
988
|
EmbedEvent["DialogClose"] = "dialog-close";
|
|
976
989
|
/**
|
|
@@ -993,6 +1006,7 @@ var EmbedEvent;
|
|
|
993
1006
|
* embed.trigger(HostEvent.SetVisibleVizs, ['viz1', 'viz2']);
|
|
994
1007
|
* };
|
|
995
1008
|
* ```
|
|
1009
|
+
* Payload: none.
|
|
996
1010
|
*/
|
|
997
1011
|
EmbedEvent["LiveboardRendered"] = "PinboardRendered";
|
|
998
1012
|
/**
|
|
@@ -1023,6 +1037,7 @@ var EmbedEvent;
|
|
|
1023
1037
|
* console.log('Save', payload)
|
|
1024
1038
|
* })
|
|
1025
1039
|
* ```
|
|
1040
|
+
* Payload: {@link SaveEventPayload}.
|
|
1026
1041
|
*/
|
|
1027
1042
|
EmbedEvent["Save"] = "save";
|
|
1028
1043
|
/**
|
|
@@ -1039,6 +1054,7 @@ var EmbedEvent;
|
|
|
1039
1054
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
1040
1055
|
* })
|
|
1041
1056
|
* ```
|
|
1057
|
+
* Payload: {@link VizScope}.
|
|
1042
1058
|
*/
|
|
1043
1059
|
EmbedEvent["Download"] = "download";
|
|
1044
1060
|
/**
|
|
@@ -1058,6 +1074,7 @@ var EmbedEvent;
|
|
|
1058
1074
|
* searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
|
|
1059
1075
|
* console.log('download PNG', payload)})
|
|
1060
1076
|
* ```
|
|
1077
|
+
* Payload: {@link DownloadEventPayload}.
|
|
1061
1078
|
*/
|
|
1062
1079
|
EmbedEvent["DownloadAsPng"] = "downloadAsPng";
|
|
1063
1080
|
/**
|
|
@@ -1077,6 +1094,7 @@ var EmbedEvent;
|
|
|
1077
1094
|
* searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
|
|
1078
1095
|
* console.log('download PDF', payload)})
|
|
1079
1096
|
* ```
|
|
1097
|
+
* Payload: {@link DownloadEventPayload}.
|
|
1080
1098
|
*/
|
|
1081
1099
|
EmbedEvent["DownloadAsPdf"] = "downloadAsPdf";
|
|
1082
1100
|
/**
|
|
@@ -1096,6 +1114,7 @@ var EmbedEvent;
|
|
|
1096
1114
|
* searchEmbed.on(EmbedEvent.DownloadAsCsv, payload => {
|
|
1097
1115
|
* console.log('download CSV', payload)})
|
|
1098
1116
|
* ```
|
|
1117
|
+
* Payload: {@link DownloadEventPayload}.
|
|
1099
1118
|
*/
|
|
1100
1119
|
EmbedEvent["DownloadAsCsv"] = "downloadAsCsv";
|
|
1101
1120
|
/**
|
|
@@ -1115,6 +1134,7 @@ var EmbedEvent;
|
|
|
1115
1134
|
* searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
|
|
1116
1135
|
* console.log('download Xlsx', payload)})
|
|
1117
1136
|
* ```
|
|
1137
|
+
* Payload: {@link DownloadEventPayload}.
|
|
1118
1138
|
*/
|
|
1119
1139
|
EmbedEvent["DownloadAsXlsx"] = "downloadAsXlsx";
|
|
1120
1140
|
/**
|
|
@@ -1126,6 +1146,7 @@ var EmbedEvent;
|
|
|
1126
1146
|
* liveboardEmbed.on(EmbedEvent.DownloadLiveboardAsContinuousPDF, payload => {
|
|
1127
1147
|
* console.log('download liveboard as continuous PDF', payload)})
|
|
1128
1148
|
* ```
|
|
1149
|
+
* Payload: {@link LiveboardScope}.
|
|
1129
1150
|
*/
|
|
1130
1151
|
EmbedEvent["DownloadLiveboardAsContinuousPDF"] = "downloadLiveboardAsContinuousPDF";
|
|
1131
1152
|
/**
|
|
@@ -1142,6 +1163,7 @@ var EmbedEvent;
|
|
|
1142
1163
|
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
1143
1164
|
* console.log('delete answer', payload)})
|
|
1144
1165
|
* ```
|
|
1166
|
+
* Payload: {@link AnswerScope}.
|
|
1145
1167
|
*/
|
|
1146
1168
|
EmbedEvent["AnswerDelete"] = "answerDelete";
|
|
1147
1169
|
/**
|
|
@@ -1153,6 +1175,7 @@ var EmbedEvent;
|
|
|
1153
1175
|
* console.log('AI Highlights', payload);
|
|
1154
1176
|
* })
|
|
1155
1177
|
* ```
|
|
1178
|
+
* Payload: {@link LiveboardScope}.
|
|
1156
1179
|
*/
|
|
1157
1180
|
EmbedEvent["AIHighlights"] = "AIHighlights";
|
|
1158
1181
|
/**
|
|
@@ -1174,6 +1197,7 @@ var EmbedEvent;
|
|
|
1174
1197
|
* console.log('pin', payload)
|
|
1175
1198
|
* })
|
|
1176
1199
|
* ```
|
|
1200
|
+
* Payload: {@link PinEventPayload}.
|
|
1177
1201
|
*/
|
|
1178
1202
|
EmbedEvent["Pin"] = "pin";
|
|
1179
1203
|
/**
|
|
@@ -1192,6 +1216,7 @@ var EmbedEvent;
|
|
|
1192
1216
|
* console.log('SpotIQ analyze', payload)
|
|
1193
1217
|
* })
|
|
1194
1218
|
* ```
|
|
1219
|
+
* Payload: {@link AnswerScope}.
|
|
1195
1220
|
*/
|
|
1196
1221
|
EmbedEvent["SpotIQAnalyze"] = "spotIQAnalyze";
|
|
1197
1222
|
/**
|
|
@@ -1245,6 +1270,7 @@ var EmbedEvent;
|
|
|
1245
1270
|
* console.log('copy to clipboard', payload);
|
|
1246
1271
|
* })
|
|
1247
1272
|
* ```
|
|
1273
|
+
* Payload: {@link CopyToClipboardPayload}.
|
|
1248
1274
|
*/
|
|
1249
1275
|
EmbedEvent["CopyToClipboard"] = "context-menu-item-copy-to-clipboard";
|
|
1250
1276
|
/**
|
|
@@ -1256,6 +1282,7 @@ var EmbedEvent;
|
|
|
1256
1282
|
* liveboardEmbed.on(EmbedEvent.UpdateTML)
|
|
1257
1283
|
* })
|
|
1258
1284
|
* ```
|
|
1285
|
+
* Payload: {@link TmlEventPayload}.
|
|
1259
1286
|
*/
|
|
1260
1287
|
EmbedEvent["UpdateTML"] = "updateTSL";
|
|
1261
1288
|
/**
|
|
@@ -1268,6 +1295,7 @@ var EmbedEvent;
|
|
|
1268
1295
|
* console.log('Edit TML', payload);
|
|
1269
1296
|
* })
|
|
1270
1297
|
* ```
|
|
1298
|
+
* Payload: {@link TmlEventPayload}.
|
|
1271
1299
|
*/
|
|
1272
1300
|
EmbedEvent["EditTML"] = "editTSL";
|
|
1273
1301
|
/**
|
|
@@ -1285,6 +1313,7 @@ var EmbedEvent;
|
|
|
1285
1313
|
* searchEmbed.on(EmbedEvent.ExportTML, payload => {
|
|
1286
1314
|
* console.log('Export TML', payload)})
|
|
1287
1315
|
* ```
|
|
1316
|
+
* Payload: {@link TmlEventPayload}.
|
|
1288
1317
|
*/
|
|
1289
1318
|
EmbedEvent["ExportTML"] = "exportTSL";
|
|
1290
1319
|
/**
|
|
@@ -1323,6 +1352,7 @@ var EmbedEvent;
|
|
|
1323
1352
|
* console.log('show data', payload);
|
|
1324
1353
|
* })
|
|
1325
1354
|
* ```
|
|
1355
|
+
* Payload: {@link AnswerScope}.
|
|
1326
1356
|
*/
|
|
1327
1357
|
EmbedEvent["ShowUnderlyingData"] = "showUnderlyingData";
|
|
1328
1358
|
/**
|
|
@@ -1334,6 +1364,7 @@ var EmbedEvent;
|
|
|
1334
1364
|
* console.log('switch view', payload);
|
|
1335
1365
|
* })
|
|
1336
1366
|
* ```
|
|
1367
|
+
* Payload: {@link AnswerChartSwitcherPayload}.
|
|
1337
1368
|
*/
|
|
1338
1369
|
EmbedEvent["AnswerChartSwitcher"] = "answerChartSwitcher";
|
|
1339
1370
|
/**
|
|
@@ -1355,6 +1386,7 @@ var EmbedEvent;
|
|
|
1355
1386
|
* console.log('Liveboard details', payload);
|
|
1356
1387
|
* })
|
|
1357
1388
|
* ```
|
|
1389
|
+
* Payload: {@link LiveboardScope}.
|
|
1358
1390
|
*/
|
|
1359
1391
|
EmbedEvent["LiveboardInfo"] = "pinboardInfo";
|
|
1360
1392
|
/**
|
|
@@ -1366,6 +1398,7 @@ var EmbedEvent;
|
|
|
1366
1398
|
* console.log('favorites', payload);
|
|
1367
1399
|
* })
|
|
1368
1400
|
* ```
|
|
1401
|
+
* Payload: {@link FavoritePayload}.
|
|
1369
1402
|
*/
|
|
1370
1403
|
EmbedEvent["AddToFavorites"] = "addToFavorites";
|
|
1371
1404
|
/**
|
|
@@ -1377,6 +1410,7 @@ var EmbedEvent;
|
|
|
1377
1410
|
* console.log('Liveboard schedule', payload);
|
|
1378
1411
|
* })
|
|
1379
1412
|
* ```
|
|
1413
|
+
* Payload: {@link LiveboardScope}.
|
|
1380
1414
|
*/
|
|
1381
1415
|
EmbedEvent["Schedule"] = "subscription";
|
|
1382
1416
|
/**
|
|
@@ -1391,6 +1425,7 @@ var EmbedEvent;
|
|
|
1391
1425
|
* console.log('Liveboard edit', payload);
|
|
1392
1426
|
* })
|
|
1393
1427
|
* ```
|
|
1428
|
+
* Payload: {@link LiveboardVizScope}.
|
|
1394
1429
|
*/
|
|
1395
1430
|
EmbedEvent["Edit"] = "edit";
|
|
1396
1431
|
/**
|
|
@@ -1432,6 +1467,7 @@ var EmbedEvent;
|
|
|
1432
1467
|
* console.log('Copy', payload);
|
|
1433
1468
|
* })
|
|
1434
1469
|
* ```
|
|
1470
|
+
* Payload: {@link MakeACopyPayload}.
|
|
1435
1471
|
*/
|
|
1436
1472
|
EmbedEvent["MakeACopy"] = "makeACopy";
|
|
1437
1473
|
/**
|
|
@@ -1447,6 +1483,7 @@ var EmbedEvent;
|
|
|
1447
1483
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1448
1484
|
* })
|
|
1449
1485
|
* ```
|
|
1486
|
+
* Payload: {@link LiveboardVizScope}.
|
|
1450
1487
|
*/
|
|
1451
1488
|
EmbedEvent["Present"] = "present";
|
|
1452
1489
|
/**
|
|
@@ -1457,6 +1494,7 @@ var EmbedEvent;
|
|
|
1457
1494
|
* liveboardEmbed.on(EmbedEvent.Delete,
|
|
1458
1495
|
* {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1459
1496
|
* ```
|
|
1497
|
+
* Payload: {@link LiveboardScope}.
|
|
1460
1498
|
*/
|
|
1461
1499
|
EmbedEvent["Delete"] = "delete";
|
|
1462
1500
|
/**
|
|
@@ -1466,6 +1504,7 @@ var EmbedEvent;
|
|
|
1466
1504
|
* ```js
|
|
1467
1505
|
* liveboardEmbed.on(EmbedEvent.SchedulesList)
|
|
1468
1506
|
* ```
|
|
1507
|
+
* Payload: {@link LiveboardScope}.
|
|
1469
1508
|
*/
|
|
1470
1509
|
EmbedEvent["SchedulesList"] = "schedule-list";
|
|
1471
1510
|
/**
|
|
@@ -1475,6 +1514,7 @@ var EmbedEvent;
|
|
|
1475
1514
|
* ```js
|
|
1476
1515
|
* liveboardEmbed.on(EmbedEvent.Cancel)
|
|
1477
1516
|
* ```
|
|
1517
|
+
* Payload: {@link LiveboardScope}.
|
|
1478
1518
|
*/
|
|
1479
1519
|
EmbedEvent["Cancel"] = "cancel";
|
|
1480
1520
|
/**
|
|
@@ -1485,6 +1525,7 @@ var EmbedEvent;
|
|
|
1485
1525
|
* liveboardEmbed.on(EmbedEvent.Explore, {
|
|
1486
1526
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1487
1527
|
* ```
|
|
1528
|
+
* Payload: {@link LiveboardVizScope}.
|
|
1488
1529
|
*/
|
|
1489
1530
|
EmbedEvent["Explore"] = "explore";
|
|
1490
1531
|
/**
|
|
@@ -1495,6 +1536,7 @@ var EmbedEvent;
|
|
|
1495
1536
|
* liveboardEmbed.on(EmbedEvent.CopyLink, {
|
|
1496
1537
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1497
1538
|
* ```
|
|
1539
|
+
* Payload: {@link CopyLinkPayload}.
|
|
1498
1540
|
*/
|
|
1499
1541
|
EmbedEvent["CopyLink"] = "embedDocument";
|
|
1500
1542
|
/**
|
|
@@ -1506,6 +1548,7 @@ var EmbedEvent;
|
|
|
1506
1548
|
* liveboardEmbed.on(EmbedEvent.CrossFilterChanged, {
|
|
1507
1549
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1508
1550
|
* ```
|
|
1551
|
+
* Payload: {@link CrossFilterChangedPayload}.
|
|
1509
1552
|
*/
|
|
1510
1553
|
EmbedEvent["CrossFilterChanged"] = "cross-filter-changed";
|
|
1511
1554
|
/**
|
|
@@ -1517,6 +1560,7 @@ var EmbedEvent;
|
|
|
1517
1560
|
* console.log('VizPointClick', payload)
|
|
1518
1561
|
* })
|
|
1519
1562
|
* ```
|
|
1563
|
+
* Payload: {@link VizInteractionPayload}.
|
|
1520
1564
|
*/
|
|
1521
1565
|
EmbedEvent["VizPointRightClick"] = "vizPointRightClick";
|
|
1522
1566
|
/**
|
|
@@ -1544,6 +1588,7 @@ var EmbedEvent;
|
|
|
1544
1588
|
* })
|
|
1545
1589
|
* ```
|
|
1546
1590
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.0.sw
|
|
1591
|
+
* Payload: {@link FilterChangedPayload}.
|
|
1547
1592
|
*/
|
|
1548
1593
|
EmbedEvent["FilterChanged"] = "filterChanged";
|
|
1549
1594
|
/**
|
|
@@ -1566,6 +1611,7 @@ var EmbedEvent;
|
|
|
1566
1611
|
* @returns isPublic: boolean
|
|
1567
1612
|
* @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
|
|
1568
1613
|
* @deprecated SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
|
|
1614
|
+
* Payload: {@link PersonalisedViewPayload}.
|
|
1569
1615
|
*/
|
|
1570
1616
|
EmbedEvent["UpdatePersonalisedView"] = "updatePersonalisedView";
|
|
1571
1617
|
/**
|
|
@@ -1587,6 +1633,7 @@ var EmbedEvent;
|
|
|
1587
1633
|
* @returns isPublic: boolean
|
|
1588
1634
|
* @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
|
|
1589
1635
|
* @deprecated SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
|
|
1636
|
+
* Payload: {@link PersonalisedViewPayload}.
|
|
1590
1637
|
*/
|
|
1591
1638
|
EmbedEvent["SavePersonalisedView"] = "savePersonalisedView";
|
|
1592
1639
|
/**
|
|
@@ -1661,6 +1708,7 @@ var EmbedEvent;
|
|
|
1661
1708
|
/**
|
|
1662
1709
|
* Emitted when a Liveboard or visualization is renamed.
|
|
1663
1710
|
* @version SDK: 1.28.0 | ThoughtSpot: 9.10.5.cl, 10.1.0.sw
|
|
1711
|
+
* Payload: {@link RenamePayload}.
|
|
1664
1712
|
*/
|
|
1665
1713
|
EmbedEvent["Rename"] = "rename";
|
|
1666
1714
|
/**
|
|
@@ -1746,6 +1794,7 @@ var EmbedEvent;
|
|
|
1746
1794
|
* })
|
|
1747
1795
|
* ```
|
|
1748
1796
|
* @version SDK: 1.29.0 | ThoughtSpot: 10.3.0.cl
|
|
1797
|
+
* Payload: {@link ParameterChangedPayload}.
|
|
1749
1798
|
*/
|
|
1750
1799
|
EmbedEvent["ParameterChanged"] = "parameterChanged";
|
|
1751
1800
|
/**
|
|
@@ -1789,6 +1838,7 @@ var EmbedEvent;
|
|
|
1789
1838
|
* })
|
|
1790
1839
|
* ```
|
|
1791
1840
|
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
1841
|
+
* Payload: {@link TableVizRenderedPayload}.
|
|
1792
1842
|
*/
|
|
1793
1843
|
EmbedEvent["TableVizRendered"] = "TableVizRendered";
|
|
1794
1844
|
/**
|
|
@@ -1813,12 +1863,14 @@ var EmbedEvent;
|
|
|
1813
1863
|
* @hidden
|
|
1814
1864
|
* Emitted when a user exits present mode.
|
|
1815
1865
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
1866
|
+
* Payload: {@link ExitPresentModePayload}.
|
|
1816
1867
|
*/
|
|
1817
1868
|
EmbedEvent["ExitPresentMode"] = "exitPresentMode";
|
|
1818
1869
|
/**
|
|
1819
1870
|
* Emitted when a user requests the full height lazy load data.
|
|
1820
1871
|
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
1821
1872
|
* @hidden
|
|
1873
|
+
* Payload: none.
|
|
1822
1874
|
*/
|
|
1823
1875
|
EmbedEvent["RequestVisibleEmbedCoordinates"] = "requestVisibleEmbedCoordinates";
|
|
1824
1876
|
/**
|
|
@@ -1852,6 +1904,7 @@ var EmbedEvent;
|
|
|
1852
1904
|
* })
|
|
1853
1905
|
* ```
|
|
1854
1906
|
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
1907
|
+
* Payload: {@link VizScope}.
|
|
1855
1908
|
*/
|
|
1856
1909
|
EmbedEvent["AddToCoaching"] = "addToCoaching";
|
|
1857
1910
|
/**
|
|
@@ -1941,6 +1994,7 @@ var EmbedEvent;
|
|
|
1941
1994
|
* console.log('EmbedListenerReady');
|
|
1942
1995
|
* })
|
|
1943
1996
|
* ```
|
|
1997
|
+
* Payload: none.
|
|
1944
1998
|
*/
|
|
1945
1999
|
EmbedEvent["EmbedListenerReady"] = "EmbedListenerReady";
|
|
1946
2000
|
/**
|
|
@@ -2315,6 +2369,7 @@ var EmbedEvent;
|
|
|
2315
2369
|
* })
|
|
2316
2370
|
* ```
|
|
2317
2371
|
* @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
|
|
2372
|
+
* Payload: {@link TestScheduleEmailPayload}.
|
|
2318
2373
|
*/
|
|
2319
2374
|
EmbedEvent["SendTestScheduleEmail"] = "sendTestScheduleEmail";
|
|
2320
2375
|
/**
|
|
@@ -2826,6 +2881,19 @@ var HostEvent;
|
|
|
2826
2881
|
* ```
|
|
2827
2882
|
*/
|
|
2828
2883
|
HostEvent["OpenAddParameterModal"] = "openAddParameterModal";
|
|
2884
|
+
/**
|
|
2885
|
+
* Add a tab to the Liveboard, the same action as the *Tab* option in the
|
|
2886
|
+
* *Add* dropdown in the Liveboard edit header.
|
|
2887
|
+
*
|
|
2888
|
+
* The Liveboard must be in edit mode; the event is ignored otherwise.
|
|
2889
|
+
*
|
|
2890
|
+
* @version SDK: 1.56.0 | ThoughtSpot Cloud: 27.1.0.cl
|
|
2891
|
+
* @example
|
|
2892
|
+
* ```js
|
|
2893
|
+
* liveboardEmbed.trigger(HostEvent.OpenAddTabModal);
|
|
2894
|
+
* ```
|
|
2895
|
+
*/
|
|
2896
|
+
HostEvent["OpenAddTabModal"] = "openAddTabModal";
|
|
2829
2897
|
/**
|
|
2830
2898
|
* Open the parameter panel for a particular parameter on a Liveboard.
|
|
2831
2899
|
* Mirrors {@link HostEvent.OpenFilter} for parameters.
|
|
@@ -5045,6 +5113,7 @@ var Param;
|
|
|
5045
5113
|
* @version SDK: 1.52.2 | ThoughtSpot Cloud: 26.9.0.cl
|
|
5046
5114
|
*/
|
|
5047
5115
|
Param["TsmcpAnswerIndex"] = "tsmcpAnswerIndex";
|
|
5116
|
+
Param["IsMcpAnswerEmbed"] = "isMcpAnswerEmbed";
|
|
5048
5117
|
Param["EmbedApp"] = "embedApp";
|
|
5049
5118
|
Param["DataSources"] = "dataSources";
|
|
5050
5119
|
Param["DataSourceMode"] = "dataSourceMode";
|
|
@@ -5247,6 +5316,21 @@ var Param;
|
|
|
5247
5316
|
var Action;
|
|
5248
5317
|
(function (Action) {
|
|
5249
5318
|
/**
|
|
5319
|
+
* The **Add** button on a Liveboard in edit mode.
|
|
5320
|
+
* Controls the visibility and disabled state of the Add panel button
|
|
5321
|
+
* in the Liveboard edit toolbar, which allows users to add
|
|
5322
|
+
* visualizations, filters, parameters, and tabs.
|
|
5323
|
+
* @example
|
|
5324
|
+
* ```js
|
|
5325
|
+
* hiddenActions: [Action.LiveboardAddPanel]
|
|
5326
|
+
* // or
|
|
5327
|
+
* disabledActions: [Action.LiveboardAddPanel]
|
|
5328
|
+
* ```
|
|
5329
|
+
* @version SDK: 1.56.0 | ThoughtSpot Cloud: 27.1.0.cl
|
|
5330
|
+
*/
|
|
5331
|
+
Action["LiveboardAddPanel"] = "liveboardAddPanel";
|
|
5332
|
+
/**
|
|
5333
|
+
*
|
|
5250
5334
|
* The **Save** action on an Answer or Liveboard.
|
|
5251
5335
|
* Allows users to save the changes.
|
|
5252
5336
|
* @example
|
|
@@ -7500,6 +7584,102 @@ var Action;
|
|
|
7500
7584
|
* ```
|
|
7501
7585
|
*/
|
|
7502
7586
|
Action["Cancel"] = "cancel";
|
|
7587
|
+
/**
|
|
7588
|
+
* Controls the visibility and disabled state of the "Version history" menu item for a Liveboard or Answer.
|
|
7589
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 9.8.0.cl
|
|
7590
|
+
* @example
|
|
7591
|
+
* ```js
|
|
7592
|
+
* {
|
|
7593
|
+
* hiddenActions: [Action.ShowVersionHistory],
|
|
7594
|
+
* disabledActions: [Action.ShowVersionHistory],
|
|
7595
|
+
* }
|
|
7596
|
+
* ```
|
|
7597
|
+
*/
|
|
7598
|
+
Action["ShowVersionHistory"] = "showVersionHistory";
|
|
7599
|
+
/**
|
|
7600
|
+
* Controls the visibility and disabled state of the "Enable version control" menu item for a Liveboard or Answer.
|
|
7601
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 9.10.0.cl
|
|
7602
|
+
* @example
|
|
7603
|
+
* ```js
|
|
7604
|
+
* {
|
|
7605
|
+
* hiddenActions: [Action.EnableVersionControl],
|
|
7606
|
+
* disabledActions: [Action.EnableVersionControl],
|
|
7607
|
+
* }
|
|
7608
|
+
* ```
|
|
7609
|
+
*/
|
|
7610
|
+
Action["EnableVersionControl"] = "enableVersionControl";
|
|
7611
|
+
/**
|
|
7612
|
+
* Controls the visibility and disabled state of the "Disable version control" menu item for a Liveboard or Answer.
|
|
7613
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 9.10.0.cl
|
|
7614
|
+
* @example
|
|
7615
|
+
* ```js
|
|
7616
|
+
* {
|
|
7617
|
+
* hiddenActions: [Action.DisableVersionControl],
|
|
7618
|
+
* disabledActions: [Action.DisableVersionControl],
|
|
7619
|
+
* }
|
|
7620
|
+
* ```
|
|
7621
|
+
*/
|
|
7622
|
+
Action["DisableVersionControl"] = "disableVersionControl";
|
|
7623
|
+
/**
|
|
7624
|
+
* Controls the visibility and disabled state of the "Withdraw verification" menu item for a verified Liveboard.
|
|
7625
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 9.8.0.cl
|
|
7626
|
+
* @example
|
|
7627
|
+
* ```js
|
|
7628
|
+
* {
|
|
7629
|
+
* hiddenActions: [Action.WithdrawVerification],
|
|
7630
|
+
* disabledActions: [Action.WithdrawVerification],
|
|
7631
|
+
* }
|
|
7632
|
+
* ```
|
|
7633
|
+
*/
|
|
7634
|
+
Action["WithdrawVerification"] = "withdrawVerification";
|
|
7635
|
+
/**
|
|
7636
|
+
* Controls the visibility and disabled state of the "Switch to new chart experience" menu item on an Answer.
|
|
7637
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 10.10.0.cl
|
|
7638
|
+
* @example
|
|
7639
|
+
* ```js
|
|
7640
|
+
* {
|
|
7641
|
+
* hiddenActions: [Action.SwitchToNewChartExperience],
|
|
7642
|
+
* disabledActions: [Action.SwitchToNewChartExperience],
|
|
7643
|
+
* }
|
|
7644
|
+
* ```
|
|
7645
|
+
*/
|
|
7646
|
+
Action["SwitchToNewChartExperience"] = "switchToNewChartExperience";
|
|
7647
|
+
/**
|
|
7648
|
+
* Controls the visibility and disabled state of the "Switch to classic chart experience" menu item on an Answer.
|
|
7649
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 10.10.0.cl
|
|
7650
|
+
* @example
|
|
7651
|
+
* ```js
|
|
7652
|
+
* {
|
|
7653
|
+
* hiddenActions: [Action.SwitchToClassicChartExperience],
|
|
7654
|
+
* disabledActions: [Action.SwitchToClassicChartExperience],
|
|
7655
|
+
* }
|
|
7656
|
+
* ```
|
|
7657
|
+
*/
|
|
7658
|
+
Action["SwitchToClassicChartExperience"] = "switchToClassicChartExperience";
|
|
7659
|
+
/**
|
|
7660
|
+
* Controls the visibility and disabled state of the "Monitor" menu item on an Answer, which includes the alert options.
|
|
7661
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 10.5.0.cl
|
|
7662
|
+
* @example
|
|
7663
|
+
* ```js
|
|
7664
|
+
* {
|
|
7665
|
+
* hiddenActions: [Action.Monitor],
|
|
7666
|
+
* disabledActions: [Action.Monitor],
|
|
7667
|
+
* }
|
|
7668
|
+
* ```
|
|
7669
|
+
*/
|
|
7670
|
+
Action["Monitor"] = "monitor";
|
|
7671
|
+
/**
|
|
7672
|
+
* Controls the visibility and disabled state of the "View explanation" button in the footer of a Spotter answer, which opens the explanation and verification details.
|
|
7673
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
7674
|
+
* @example
|
|
7675
|
+
* ```js
|
|
7676
|
+
* {
|
|
7677
|
+
* hiddenActions: [Action.SpotterViewExplanation],
|
|
7678
|
+
* disabledActions: [Action.SpotterViewExplanation],
|
|
7679
|
+
* }
|
|
7680
|
+
* ```
|
|
7681
|
+
*/
|
|
7682
|
+
Action["SpotterViewExplanation"] = "spotterViewExplanation";
|
|
7503
7683
|
})(Action || (Action = {}));
|
|
7504
7684
|
var PrefetchFeatures;
|
|
7505
7685
|
(function (PrefetchFeatures) {
|
|
@@ -8004,7 +8184,7 @@ var TableContentDensity;
|
|
|
8004
8184
|
TableContentDensity["Compact"] = "COMPACT";
|
|
8005
8185
|
})(TableContentDensity || (TableContentDensity = {}));
|
|
8006
8186
|
|
|
8007
|
-
var version$1="1.53.
|
|
8187
|
+
var version$1="1.53.2-beta";var pkg = {version:version$1};
|
|
8008
8188
|
|
|
8009
8189
|
const { version } = pkg;
|
|
8010
8190
|
|
|
@@ -10774,7 +10954,7 @@ class AnswerService {
|
|
|
10774
10954
|
async getTML() {
|
|
10775
10955
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
10776
10956
|
const edoc = object[0].edoc;
|
|
10777
|
-
const YAML = await import('./index-
|
|
10957
|
+
const YAML = await import('./index-DQ7r5f1z.js');
|
|
10778
10958
|
const parsedDoc = YAML.parse(edoc);
|
|
10779
10959
|
return {
|
|
10780
10960
|
answer: {
|
|
@@ -20927,11 +21107,13 @@ const doBasicAuth = async (embedConfig) => {
|
|
|
20927
21107
|
* @param ssoURL
|
|
20928
21108
|
* @param triggerContainer
|
|
20929
21109
|
* @param triggerText
|
|
21110
|
+
* @param thoughtSpotHost
|
|
20930
21111
|
*/
|
|
20931
|
-
async function samlPopupFlow(ssoURL, triggerContainer, triggerText) {
|
|
21112
|
+
async function samlPopupFlow(ssoURL, triggerContainer, triggerText, thoughtSpotHost) {
|
|
21113
|
+
const thoughtSpotOrigin = new URL(thoughtSpotHost).origin;
|
|
20932
21114
|
let popupClosedCheck;
|
|
20933
21115
|
const openPopup = () => {
|
|
20934
|
-
if (samlAuthWindow
|
|
21116
|
+
if (!samlAuthWindow || samlAuthWindow.closed) {
|
|
20935
21117
|
samlAuthWindow = window.open(ssoURL, '_blank', 'location=no,height=570,width=520,scrollbars=yes,status=yes');
|
|
20936
21118
|
if (samlAuthWindow) {
|
|
20937
21119
|
popupClosedCheck = setInterval(() => {
|
|
@@ -20959,7 +21141,14 @@ async function samlPopupFlow(ssoURL, triggerContainer, triggerText) {
|
|
|
20959
21141
|
}
|
|
20960
21142
|
samlCompletionPromise = samlCompletionPromise || new Promise((resolve, reject) => {
|
|
20961
21143
|
window.addEventListener('message', (e) => {
|
|
20962
|
-
|
|
21144
|
+
var _a;
|
|
21145
|
+
// Only the SSO popup we opened, on the ThoughtSpot origin, may
|
|
21146
|
+
// complete the flow or hand us a token; anything else could
|
|
21147
|
+
// inject an attacker's token into the auth cache.
|
|
21148
|
+
if (e.origin !== thoughtSpotOrigin || !samlAuthWindow || e.source !== samlAuthWindow) {
|
|
21149
|
+
return;
|
|
21150
|
+
}
|
|
21151
|
+
if (((_a = e.data) === null || _a === void 0 ? void 0 : _a.type) === EmbedEvent.SAMLComplete) {
|
|
20963
21152
|
if (e.data.accessToken) {
|
|
20964
21153
|
const decodedToken = decodeURIComponent(e.data.accessToken);
|
|
20965
21154
|
storeAuthTokenInCache(decodedToken);
|
|
@@ -21000,7 +21189,7 @@ const doSSOAuth = async (embedConfig, ssoEndPoint) => {
|
|
|
21000
21189
|
}
|
|
21001
21190
|
const ssoURL = `${thoughtSpotHost}${ssoEndPoint}`;
|
|
21002
21191
|
if (embedConfig.inPopup) {
|
|
21003
|
-
await samlPopupFlow(ssoURL, embedConfig.authTriggerContainer, embedConfig.authTriggerText);
|
|
21192
|
+
await samlPopupFlow(ssoURL, embedConfig.authTriggerContainer, embedConfig.authTriggerText, thoughtSpotHost);
|
|
21004
21193
|
const cachedToken = getCacheAuthToken();
|
|
21005
21194
|
if (cachedToken) {
|
|
21006
21195
|
loggedInStatus = true;
|
|
@@ -21012,12 +21201,22 @@ const doSSOAuth = async (embedConfig, ssoEndPoint) => {
|
|
|
21012
21201
|
}
|
|
21013
21202
|
window.location.href = ssoURL;
|
|
21014
21203
|
};
|
|
21204
|
+
/**
|
|
21205
|
+
* The popup's SSO completion page. hostAppOrigin tells ThoughtSpot which
|
|
21206
|
+
* origin opened the popup; the cluster only posts a token back to it if it
|
|
21207
|
+
* is an allowed redirect domain.
|
|
21208
|
+
* @param thoughtSpotHost
|
|
21209
|
+
*/
|
|
21210
|
+
const getSSOCompletePageUrl = (thoughtSpotHost) => {
|
|
21211
|
+
const hostAppOrigin = encodeURIComponent(window.location.origin);
|
|
21212
|
+
return `${thoughtSpotHost}/v2/#/embed/saml-complete?hostAppOrigin=${hostAppOrigin}`;
|
|
21213
|
+
};
|
|
21015
21214
|
const doSamlAuth = async (embedConfig) => {
|
|
21016
21215
|
const { thoughtSpotHost } = embedConfig;
|
|
21017
21216
|
// redirect for SSO, when the SSO authentication is done, this page will be
|
|
21018
21217
|
// loaded again and the same JS will execute again.
|
|
21019
21218
|
const ssoRedirectUrl = embedConfig.inPopup
|
|
21020
|
-
?
|
|
21219
|
+
? getSSOCompletePageUrl(thoughtSpotHost)
|
|
21021
21220
|
: getRedirectUrl(window.location.href, SSO_REDIRECTION_MARKER_GUID, embedConfig.redirectPath);
|
|
21022
21221
|
// bring back the page to the same URL
|
|
21023
21222
|
const ssoEndPoint = `${EndPoints.SAML_LOGIN_TEMPLATE(encodeURIComponent(ssoRedirectUrl))}`;
|
|
@@ -21029,7 +21228,7 @@ const doOIDCAuth = async (embedConfig) => {
|
|
|
21029
21228
|
// redirect for SSO, when the SSO authentication is done, this page will be
|
|
21030
21229
|
// loaded again and the same JS will execute again.
|
|
21031
21230
|
const ssoRedirectUrl = embedConfig.noRedirect || embedConfig.inPopup
|
|
21032
|
-
?
|
|
21231
|
+
? getSSOCompletePageUrl(thoughtSpotHost)
|
|
21033
21232
|
: getRedirectUrl(window.location.href, SSO_REDIRECTION_MARKER_GUID, embedConfig.redirectPath);
|
|
21034
21233
|
// bring back the page to the same URL
|
|
21035
21234
|
const baseEndpoint = `${EndPoints.OIDC_LOGIN_TEMPLATE(encodeURIComponent(ssoRedirectUrl))}`;
|
|
@@ -26636,6 +26835,28 @@ let ConversationEmbed$1 = class ConversationEmbed extends SpotterEmbed$1 {
|
|
|
26636
26835
|
}
|
|
26637
26836
|
};
|
|
26638
26837
|
|
|
26838
|
+
/**
|
|
26839
|
+
* Actions hidden by default on Answers rendered by the ThoughtSpot MCP server
|
|
26840
|
+
* (iframes carrying the `tsmcp=true` marker). Applied automatically by
|
|
26841
|
+
* {@link AutoFrameRenderer} so the auto-rendered answer exposes a curated set of
|
|
26842
|
+
* controls: Pin/Save/Download at the top level, Aggregate/Filter/Sort/Position in
|
|
26843
|
+
* the column menu, and Exclude/Only include/Drill down/Show underlying data in the
|
|
26844
|
+
* axis menu remain visible, while the actions below are removed.
|
|
26845
|
+
*
|
|
26846
|
+
* This is a denylist merged into {@link Param.HideActions}; anything not listed
|
|
26847
|
+
* here stays visible. It is skipped when the caller supplies a `visibleActions`
|
|
26848
|
+
* allowlist (see {@link AutoFrameRenderer.getEmbedParamsObject}).
|
|
26849
|
+
*/
|
|
26850
|
+
[
|
|
26851
|
+
Action.Edit,
|
|
26852
|
+
Action.InConversationTraining,
|
|
26853
|
+
Action.AxisMenuConditionalFormat,
|
|
26854
|
+
Action.AxisMenuRename,
|
|
26855
|
+
Action.AxisMenuEdit,
|
|
26856
|
+
Action.AxisMenuRemove,
|
|
26857
|
+
Action.MakeACopy,
|
|
26858
|
+
];
|
|
26859
|
+
|
|
26639
26860
|
const componentFactory = (EmbedConstructor,
|
|
26640
26861
|
// isPreRenderedComponent: Specifies whether the component being returned is
|
|
26641
26862
|
// intended for preRendering. If set to true, the component will call the
|