@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.
Files changed (61) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/authToken.d.ts.map +1 -1
  3. package/cjs/src/authToken.js +8 -1
  4. package/cjs/src/authToken.js.map +1 -1
  5. package/cjs/src/authToken.spec.d.ts +2 -0
  6. package/cjs/src/authToken.spec.d.ts.map +1 -0
  7. package/cjs/src/authToken.spec.js +29 -0
  8. package/cjs/src/authToken.spec.js.map +1 -0
  9. package/cjs/src/types.d.ts +93 -48
  10. package/cjs/src/types.d.ts.map +1 -1
  11. package/cjs/src/types.js +76 -48
  12. package/cjs/src/types.js.map +1 -1
  13. package/dist/src/authToken.d.ts.map +1 -1
  14. package/dist/src/authToken.spec.d.ts +2 -0
  15. package/dist/src/authToken.spec.d.ts.map +1 -0
  16. package/dist/src/types.d.ts +93 -48
  17. package/dist/src/types.d.ts.map +1 -1
  18. package/dist/tsembed-react.es.js +84 -50
  19. package/dist/tsembed-react.js +84 -50
  20. package/dist/tsembed.es.js +84 -50
  21. package/dist/tsembed.js +84 -50
  22. package/dist/visual-embed-sdk-react-full.d.ts +93 -48
  23. package/dist/visual-embed-sdk-react.d.ts +93 -48
  24. package/dist/visual-embed-sdk.d.ts +93 -48
  25. package/lib/package.json +1 -1
  26. package/lib/src/authToken.d.ts.map +1 -1
  27. package/lib/src/authToken.js +8 -1
  28. package/lib/src/authToken.js.map +1 -1
  29. package/lib/src/authToken.spec.d.ts +2 -0
  30. package/lib/src/authToken.spec.d.ts.map +1 -0
  31. package/lib/src/authToken.spec.js +26 -0
  32. package/lib/src/authToken.spec.js.map +1 -0
  33. package/lib/src/types.d.ts +93 -48
  34. package/lib/src/types.d.ts.map +1 -1
  35. package/lib/src/types.js +76 -48
  36. package/lib/src/types.js.map +1 -1
  37. package/lib/src/visual-embed-sdk.d.ts +93 -48
  38. package/package.json +1 -1
  39. package/src/authToken.spec.ts +31 -0
  40. package/src/authToken.ts +8 -1
  41. package/src/types.ts +94 -48
  42. package/cjs/src/utils/authService/tokenizedAuthService.spec.d.ts +0 -2
  43. package/cjs/src/utils/authService/tokenizedAuthService.spec.d.ts.map +0 -1
  44. package/cjs/src/utils/authService/tokenizedAuthService.spec.js +0 -32
  45. package/cjs/src/utils/authService/tokenizedAuthService.spec.js.map +0 -1
  46. package/cjs/src/utils/sessionInfoService.d.ts +0 -66
  47. package/cjs/src/utils/sessionInfoService.d.ts.map +0 -1
  48. package/cjs/src/utils/sessionInfoService.js +0 -92
  49. package/cjs/src/utils/sessionInfoService.js.map +0 -1
  50. package/dist/src/utils/authService/tokenizedAuthService.spec.d.ts +0 -2
  51. package/dist/src/utils/authService/tokenizedAuthService.spec.d.ts.map +0 -1
  52. package/dist/src/utils/sessionInfoService.d.ts +0 -66
  53. package/dist/src/utils/sessionInfoService.d.ts.map +0 -1
  54. package/lib/src/utils/authService/tokenizedAuthService.spec.d.ts +0 -2
  55. package/lib/src/utils/authService/tokenizedAuthService.spec.d.ts.map +0 -1
  56. package/lib/src/utils/authService/tokenizedAuthService.spec.js +0 -29
  57. package/lib/src/utils/authService/tokenizedAuthService.spec.js.map +0 -1
  58. package/lib/src/utils/sessionInfoService.d.ts +0 -66
  59. package/lib/src/utils/sessionInfoService.d.ts.map +0 -1
  60. package/lib/src/utils/sessionInfoService.js +0 -85
  61. package/lib/src/utils/sessionInfoService.js.map +0 -1
package/dist/tsembed.js CHANGED
@@ -302,6 +302,8 @@
302
302
  /**
303
303
  * Authentication has either succeeded or failed.
304
304
  *
305
+ * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
306
+ *
305
307
  * @example
306
308
  *```js
307
309
  * appEmbed.on(EmbedEvent.AuthInit, payload => {
@@ -315,6 +317,8 @@
315
317
  * The embed object container has loaded.
316
318
  *
317
319
  * @returns timestamp - The timestamp when the event was generated.
320
+ *
321
+ * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
318
322
  * @example
319
323
  *```js
320
324
  * liveboardEmbed.on(EmbedEvent.Load, hideLoader)
@@ -329,6 +333,8 @@
329
333
  * Data pertaining to answer or Liveboard is received
330
334
  *
331
335
  * @return data - The answer or Liveboard data
336
+ *
337
+ * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
332
338
  * @example
333
339
  *```js
334
340
  * liveboardEmbed.on(EmbedEvent.Data, payload => {
@@ -347,6 +353,7 @@
347
353
  /**
348
354
  * Search query has been updated by the user.
349
355
  *
356
+ * @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
350
357
  * @example
351
358
  *```js
352
359
  * searchEmbed.on(EmbedEvent.QueryChanged, payload => console.log('data', payload))
@@ -356,12 +363,14 @@
356
363
  /**
357
364
  * A drill-down operation has been performed.
358
365
  *
366
+ * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
367
+ *
359
368
  * @returns additionalFilters - Any additional filters applied
360
369
  * @returns drillDownColumns - The columns on which drill down was performed
361
370
  * @returns nonFilteredColumns - The columns that were not filtered
362
371
  * @example
363
372
  *```js
364
- * searchEmbed.trigger(EmbedEvent.DrillDown, {
373
+ * searchEmbed.on(EmbedEvent.DrillDown, {
365
374
  * points: {
366
375
  * clickedPoint,
367
376
  * selectedPoints: selectedPoint
@@ -394,6 +403,8 @@
394
403
  * One or more data sources have been selected.
395
404
  *
396
405
  * @returns dataSourceIds - the list of data sources
406
+ *
407
+ * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
397
408
  * @example
398
409
  * ```js
399
410
  * searchEmbed.on(EmbedEvent.DataSourceSelected, payload => {
@@ -421,6 +432,8 @@
421
432
  * @returns actionId - ID of the custom action
422
433
  * @returns payload {@link CustomActionPayload} - Response payload with the
423
434
  * Answer or Liveboard data
435
+ *
436
+ * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
424
437
  * @example
425
438
  * ```js
426
439
  * appEmbed.on(EmbedEvent.customAction, payload => {
@@ -468,22 +481,23 @@
468
481
  /**
469
482
  * An error has occurred. This event is fired for the following error types:
470
483
  *
471
- * API - API call failure error.
484
+ * `API`: API call failure error.
472
485
  *
473
- * FULLSCREEN - Error when presenting a Liveboard or visualization in full screen
474
- * mode.
486
+ * `FULLSCREEN`: Error when presenting a Liveboard or visualization in full screen mode.
475
487
  *
476
- * SINGLE_VALUE_FILTER - Error due to multiple values in the single value filter.
488
+ * `SINGLE_VALUE_FILTER`: Error due to multiple values in the single value filter.
477
489
  *
478
- * NON_EXIST_FILTER - Error due to a non-existent filter.
490
+ * `NON_EXIST_FILTER`: Error due to a non-existent filter.
479
491
  *
480
- * INVALID_DATE_VALUE - Invalid date value error.
492
+ * `INVALID_DATE_VALUE`: Invalid date value error.
481
493
  *
482
- * INVALID_OPERATOR - Use of invalid operator during filter application.
494
+ * `INVALID_OPERATOR`: Use of invalid operator during filter application.
483
495
  *
484
- * For more information, see [Developer Documentation](https://developers.thoughtspot.com/docs/events-app-integration#errorType)
496
+ * For more information, see https://developers.thoughtspot.com/docs/events-app-integration#errorType.
485
497
  *
486
498
  * @returns error - An error object or message
499
+ *
500
+ * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
487
501
  * @example
488
502
  * ```js
489
503
  * // API error
@@ -509,6 +523,9 @@
509
523
  * The embedded object has sent an alert.
510
524
  *
511
525
  * @returns alert - An alert object
526
+ *
527
+ * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
528
+ *
512
529
  * @example
513
530
  * ```js
514
531
  * searchEmbed.on(EmbedEvent.Alert)
@@ -518,6 +535,8 @@
518
535
  /**
519
536
  * The ThoughtSpot auth session has expired.
520
537
  *
538
+ * @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
539
+ *
521
540
  * @example
522
541
  *```js
523
542
  * appEmbed.on(EmbedEvent.AuthExpire, showAuthExpired)
@@ -571,6 +590,7 @@
571
590
  /**
572
591
  * Detects the route change.
573
592
  *
593
+ * @version SDK: 1.7.0 | ThoughtSpot: 8.0.0.cl, 8.4.1.sw
574
594
  * @example
575
595
  *```js
576
596
  * searchEmbed.on(EmbedEvent.RouteChange, payload =>
@@ -587,7 +607,7 @@
587
607
  /**
588
608
  * Emitted when the embed does not have cookie access. This happens
589
609
  * when Safari and other Web browsers block third-party cookies
590
- * are blocked by default. `NoCookieAccess` can trigger
610
+ * are blocked by default.
591
611
  *
592
612
  * @example
593
613
  *```js
@@ -630,7 +650,7 @@
630
650
  /**
631
651
  * Emitted when the Liveboard shell loads.
632
652
  * You can use this event as a hook to trigger
633
- * other events on the rendered Liveboard.
653
+ * actions on the rendered Liveboard.
634
654
  *
635
655
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
636
656
  * @example
@@ -651,8 +671,7 @@
651
671
  */
652
672
  EmbedEvent["LiveboardRendered"] = "PinboardRendered";
653
673
  /**
654
- * This can be used to register an event listener which
655
- * is triggered on all events.
674
+ * Emits all events.
656
675
  *
657
676
  * @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
658
677
  * @example
@@ -669,13 +688,13 @@
669
688
  * @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
670
689
  * @example
671
690
  *```js
672
- * //trigger when action starts
691
+ * //Emit when action starts
673
692
  * searchEmbed.on(EmbedEvent.Save, payload => {
674
693
  * console.log('Save', payload)
675
694
  * }, {
676
695
  * start: true
677
696
  * })
678
- * //trigger when action ends
697
+ * //emit when action ends
679
698
  * searchEmbed.on(EmbedEvent.Save, payload => {
680
699
  * console.log('Save', payload)
681
700
  * })
@@ -685,7 +704,7 @@
685
704
  /**
686
705
  * Emitted when the download action is triggered on an answer
687
706
  *
688
- * **Note**: This event is deprecated in v1.21.0.
707
+ * **Note**: This event is deprecated in v1.21.0.
689
708
  * To fire an event when a download action is initiated on a chart or table,
690
709
  * use `EmbedEvent.DownloadAsPng`, `EmbedEvent.DownloadAsPDF`, `EmbedEvent.DownloadAsCSV`,
691
710
  * or `EmbedEvent.DownloadAsXLSX`
@@ -693,7 +712,7 @@
693
712
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
694
713
  * @example
695
714
  *```js
696
- * liveboardEmbed.trigger(HostEvent.Download, {
715
+ * liveboardEmbed.on(EmbedEvent.Download, {
697
716
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'
698
717
  * })
699
718
  *```
@@ -705,10 +724,10 @@
705
724
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
706
725
  * @example
707
726
  *```js
708
- * //trigger when action starts
727
+ * //emit when action starts
709
728
  * searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
710
729
  * console.log('download PNG', payload)}, {start: true })
711
- * //trigger when action ends
730
+ * //emit when action ends
712
731
  * searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
713
732
  * console.log('download PNG', payload)})
714
733
  *```
@@ -720,10 +739,10 @@
720
739
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
721
740
  * @example
722
741
  *```js
723
- * //trigger when action starts
742
+ * //emit when action starts
724
743
  * searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
725
744
  * console.log('download PDF', payload)}, {start: true })
726
- * //trigger when action ends
745
+ * //emit when action ends
727
746
  * searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
728
747
  * console.log('download PDF', payload)})
729
748
  *```
@@ -735,10 +754,10 @@
735
754
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
736
755
  * @example
737
756
  *```js
738
- * //trigger when action starts
757
+ * //emit when action starts
739
758
  * searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
740
759
  * console.log('download CSV', payload)}, {start: true })
741
- * //trigger when action ends
760
+ * //emit when action ends
742
761
  * searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
743
762
  * console.log('download CSV', payload)})
744
763
  *```
@@ -750,10 +769,10 @@
750
769
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
751
770
  * @example
752
771
  *```js
753
- * //trigger when action starts
772
+ * //emit when action starts
754
773
  * searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
755
774
  * console.log('download Xlsx', payload)}, { start: true })
756
- * //trigger when action ends
775
+ * //emit when action ends
757
776
  * searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
758
777
  * console.log('download Xlsx', payload)})
759
778
  *```
@@ -765,10 +784,10 @@
765
784
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
766
785
  * @example
767
786
  *```js
768
- * //trigger when action starts
787
+ * //emit when action starts
769
788
  * appEmbed.on(EmbedEvent.AnswerDelete, payload => {
770
789
  * console.log('delete answer', payload)}, {start: true })
771
- * //trigger when action is completed
790
+ * //emit when action is completed
772
791
  * appEmbed.on(EmbedEvent.AnswerDelete, payload => {
773
792
  * console.log('delete answer', payload)})
774
793
  *```
@@ -780,13 +799,13 @@
780
799
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
781
800
  * @example
782
801
  *```js
783
- * //trigger when action starts
802
+ * //emit when action starts
784
803
  * searchEmbed.on(EmbedEvent.Pin, payload => {
785
804
  * console.log('pin', payload)
786
805
  * }, {
787
806
  * start: true
788
807
  * })
789
- * //trigger when action ends
808
+ * //emit when action ends
790
809
  * searchEmbed.on(EmbedEvent.Pin, payload => {
791
810
  * console.log('pin', payload)
792
811
  * })
@@ -799,13 +818,13 @@
799
818
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
800
819
  * @example
801
820
  *```js
802
- * //trigger when action starts
821
+ * //emit when action starts
803
822
  * searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
804
823
  * console.log('SpotIQAnalyze', payload)
805
824
  * }, {
806
825
  * start: true
807
826
  * })
808
- * //trigger when action ends
827
+ * //emit when action ends
809
828
  * searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
810
829
  * console.log('SpotIQ analyze', payload)
811
830
  * })
@@ -818,13 +837,13 @@
818
837
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
819
838
  * @example
820
839
  *```js
821
- * //trigger when action starts
840
+ * //emit when action starts
822
841
  * searchEmbed.on(EmbedEvent.Share, payload => {
823
842
  * console.log('Share', payload)
824
843
  * }, {
825
844
  * start: true
826
845
  * })
827
- * //trigger when action ends
846
+ * //emit when action ends
828
847
  * searchEmbed.on(EmbedEvent.Share, payload => {
829
848
  * console.log('Share', payload)
830
849
  * })
@@ -899,10 +918,10 @@
899
918
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
900
919
  * @example
901
920
  *```js
902
- * //trigger when action starts
921
+ * //emit when action starts
903
922
  * searchEmbed.on(EmbedEvent.ExportTML, payload => {
904
923
  * console.log('Export TML', payload)}, { start: true })
905
- * //trigger when action ends
924
+ * //emit when action ends
906
925
  * searchEmbed.on(EmbedEvent.ExportTML, payload => {
907
926
  * console.log('Export TML', payload)})
908
927
  *```
@@ -926,10 +945,10 @@
926
945
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
927
946
  * @example
928
947
  *```js
929
- * //trigger when action starts
948
+ * //emit when action starts
930
949
  * appEmbed.on(EmbedEvent.CopyAEdit, payload => {
931
950
  * console.log('Copy and edit', payload)}, {start: true })
932
- * //trigger when action ends
951
+ * //emit when action ends
933
952
  * appEmbed.on(EmbedEvent.CopyAEdit, payload => {
934
953
  * console.log('Copy and edit', payload)})
935
954
  *```
@@ -1031,7 +1050,7 @@
1031
1050
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1032
1051
  * @example
1033
1052
  *```js
1034
- * liveboardEmbed.trigger(HostEvent.Present)
1053
+ * liveboardEmbed.on(EmbedEvent.Present)
1035
1054
  *```
1036
1055
  * @example
1037
1056
  *```js
@@ -1047,7 +1066,7 @@
1047
1066
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1048
1067
  * @example
1049
1068
  *```js
1050
- * liveboardEmbed.trigger(EmbedEvent.Delete,
1069
+ * liveboardEmbed.on(EmbedEvent.Delete,
1051
1070
  * {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1052
1071
  *```
1053
1072
  */
@@ -1058,7 +1077,7 @@
1058
1077
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1059
1078
  * @example
1060
1079
  *```js
1061
- * liveboardEmbed.trigger(EmbedEvent.SchedulesList)
1080
+ * liveboardEmbed.on(EmbedEvent.SchedulesList)
1062
1081
  *```
1063
1082
  */
1064
1083
  EmbedEvent["SchedulesList"] = "schedule-list";
@@ -1068,7 +1087,7 @@
1068
1087
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1069
1088
  * @example
1070
1089
  *```js
1071
- * liveboardEmbed.trigger(EmbedEvent.Cancel)
1090
+ * liveboardEmbed.on(EmbedEvent.Cancel)
1072
1091
  *```
1073
1092
  */
1074
1093
  EmbedEvent["Cancel"] = "cancel";
@@ -1078,7 +1097,7 @@
1078
1097
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1079
1098
  * @example
1080
1099
  *```js
1081
- * liveboardEmbed.trigger(EmbedEvent.Explore, {
1100
+ * liveboardEmbed.on(EmbedEvent.Explore, {
1082
1101
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1083
1102
  *```
1084
1103
  */
@@ -1089,7 +1108,7 @@
1089
1108
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1090
1109
  * @example
1091
1110
  *```js
1092
- * liveboardEmbed.trigger(EmbedEvent.CopyLink, {
1111
+ * liveboardEmbed.on(EmbedEvent.CopyLink, {
1093
1112
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1094
1113
  *```
1095
1114
  */
@@ -1100,7 +1119,7 @@
1100
1119
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
1101
1120
  * @example
1102
1121
  *```js
1103
- * liveboardEmbed.trigger(HostEvent.CrossFilterChanged, {
1122
+ * liveboardEmbed.on(EmbedEvent.CrossFilterChanged, {
1104
1123
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1105
1124
  *```
1106
1125
  */
@@ -1124,9 +1143,18 @@
1124
1143
  */
1125
1144
  EmbedEvent["InsertIntoSlide"] = "insertInToSlide";
1126
1145
  /**
1127
- * @hidden
1128
1146
  * Emitted when a user changes any filter on a Liveboard.
1147
+ * Returns filter type and name, column name and ID, and runtime
1148
+ * filter details.
1149
+ *
1129
1150
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.0.sw
1151
+ * @example
1152
+ *
1153
+ *```js
1154
+ * LiveboardEmbed.on(EmbedEvent.FilterChanged, (payload) => {
1155
+ * console.log('payload', payload);
1156
+ * })
1157
+ *```
1130
1158
  */
1131
1159
  EmbedEvent["FilterChanged"] = "filterChanged";
1132
1160
  /**
@@ -1639,7 +1667,7 @@
1639
1667
  * ```js
1640
1668
  * searchEmbed.trigger(HostEvent.GetTML).then((tml) => {
1641
1669
  * console.log(
1642
- * tml.search_query // TML representation of the search query
1670
+ * tml.answer.search_query // TML representation of the search query
1643
1671
  * );
1644
1672
  * })
1645
1673
  * ```
@@ -1882,7 +1910,7 @@
1882
1910
  *
1883
1911
  * ```js
1884
1912
  * liveboardEmbed.trigger(HostEvent.UpdateFilters, {
1885
- * filter: { column: 'column name', oper: 'IN', values: [1,2,3], is_mandatory: false }
1913
+ * filter: { column: 'column name', oper: 'IN', values: [1,2,3]}
1886
1914
  * })
1887
1915
  * ```
1888
1916
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
@@ -2992,7 +3020,7 @@
2992
3020
  * disabledActions: [Action.TML] // to disable all TML actions
2993
3021
  * ```
2994
3022
  *
2995
- * @version SDK : 1.28.2 | Thoughtspot: 9.10.5.cl
3023
+ * @version SDK : 1.28.3 | Thoughtspot: 9.12.0.cl
2996
3024
  */
2997
3025
  Action["TML"] = "tml";
2998
3026
  /**
@@ -5770,7 +5798,7 @@
5770
5798
 
5771
5799
  var isEqual_1 = isEqual;
5772
5800
 
5773
- var name="@thoughtspot/visual-embed-sdk";var version="1.28.4";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"45 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
5801
+ 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};
5774
5802
 
5775
5803
  const EndPoints = {
5776
5804
  AUTH_VERIFICATION: '/callosum/v1/session/info',
@@ -5891,7 +5919,9 @@
5891
5919
  let cachedAuthToken = null;
5892
5920
  // This method can be used to get the authToken using the embedConfig
5893
5921
  const getAuthenticationToken = async (embedConfig) => {
5894
- if (cachedAuthToken) {
5922
+ // Since we don't have token validation enabled , we cannot tell if the
5923
+ // cached token is valid or not. So we will always fetch a new token.
5924
+ if (cachedAuthToken && !embedConfig.disableTokenVerification) {
5895
5925
  let isCachedTokenStillValid;
5896
5926
  try {
5897
5927
  isCachedTokenStillValid = await validateAuthToken(embedConfig, cachedAuthToken, true);
@@ -5917,6 +5947,10 @@
5917
5947
  return authToken;
5918
5948
  };
5919
5949
  const validateAuthToken = async (embedConfig, authToken, suppressAlert) => {
5950
+ if (embedConfig.disableTokenVerification) {
5951
+ logger.info('Token verification is disabled. Assuming token is valid.');
5952
+ return true;
5953
+ }
5920
5954
  try {
5921
5955
  const isTokenValid = await verifyTokenService(embedConfig.thoughtSpotHost, authToken);
5922
5956
  if (isTokenValid)