@thoughtspot/visual-embed-sdk 1.28.0-alpha.1 → 1.28.0-alpha.3

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 (207) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/auth.d.ts +16 -1
  3. package/cjs/src/auth.d.ts.map +1 -1
  4. package/cjs/src/auth.js +5 -1
  5. package/cjs/src/auth.js.map +1 -1
  6. package/cjs/src/auth.spec.d.ts.map +1 -1
  7. package/cjs/src/auth.spec.js +9 -0
  8. package/cjs/src/auth.spec.js.map +1 -1
  9. package/cjs/src/embed/app.d.ts +18 -4
  10. package/cjs/src/embed/app.d.ts.map +1 -1
  11. package/cjs/src/embed/app.js +2 -2
  12. package/cjs/src/embed/app.js.map +1 -1
  13. package/cjs/src/embed/app.spec.js +19 -1
  14. package/cjs/src/embed/app.spec.js.map +1 -1
  15. package/cjs/src/embed/base.d.ts.map +1 -1
  16. package/cjs/src/embed/base.js +0 -3
  17. package/cjs/src/embed/base.js.map +1 -1
  18. package/cjs/src/embed/embed.spec.js +0 -15
  19. package/cjs/src/embed/embed.spec.js.map +1 -1
  20. package/cjs/src/embed/liveboard.d.ts +7 -1
  21. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  22. package/cjs/src/embed/liveboard.js +2 -2
  23. package/cjs/src/embed/liveboard.js.map +1 -1
  24. package/cjs/src/embed/liveboard.spec.js +20 -1
  25. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  26. package/cjs/src/embed/pinboard.spec.js +20 -1
  27. package/cjs/src/embed/pinboard.spec.js.map +1 -1
  28. package/cjs/src/embed/sage.d.ts +1 -1
  29. package/cjs/src/embed/sage.d.ts.map +1 -1
  30. package/cjs/src/embed/sage.js +2 -2
  31. package/cjs/src/embed/sage.js.map +1 -1
  32. package/cjs/src/embed/search-bar.d.ts +1 -1
  33. package/cjs/src/embed/search-bar.d.ts.map +1 -1
  34. package/cjs/src/embed/search-bar.js +2 -2
  35. package/cjs/src/embed/search-bar.js.map +1 -1
  36. package/cjs/src/embed/search.d.ts +1 -1
  37. package/cjs/src/embed/search.d.ts.map +1 -1
  38. package/cjs/src/embed/search.js +3 -3
  39. package/cjs/src/embed/search.js.map +1 -1
  40. package/cjs/src/embed/search.spec.js +25 -1
  41. package/cjs/src/embed/search.spec.js.map +1 -1
  42. package/cjs/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  43. package/cjs/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  44. package/cjs/src/embed/ts-embed-trigger.spec.js +34 -0
  45. package/cjs/src/embed/ts-embed-trigger.spec.js.map +1 -0
  46. package/cjs/src/embed/ts-embed.d.ts +1 -1
  47. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  48. package/cjs/src/embed/ts-embed.js +14 -11
  49. package/cjs/src/embed/ts-embed.js.map +1 -1
  50. package/cjs/src/embed/ts-embed.spec.js +47 -17
  51. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  52. package/cjs/src/index.d.ts +2 -1
  53. package/cjs/src/index.d.ts.map +1 -1
  54. package/cjs/src/index.js +3 -1
  55. package/cjs/src/index.js.map +1 -1
  56. package/cjs/src/react/index.spec.js +1 -1
  57. package/cjs/src/react/index.spec.js.map +1 -1
  58. package/cjs/src/test/test-utils.d.ts +1 -0
  59. package/cjs/src/test/test-utils.d.ts.map +1 -1
  60. package/cjs/src/test/test-utils.js +10 -1
  61. package/cjs/src/test/test-utils.js.map +1 -1
  62. package/cjs/src/tokenizedFetch.d.ts +9 -0
  63. package/cjs/src/tokenizedFetch.d.ts.map +1 -1
  64. package/cjs/src/tokenizedFetch.js +9 -0
  65. package/cjs/src/tokenizedFetch.js.map +1 -1
  66. package/cjs/src/types.d.ts +178 -37
  67. package/cjs/src/types.d.ts.map +1 -1
  68. package/cjs/src/types.js +138 -21
  69. package/cjs/src/types.js.map +1 -1
  70. package/cjs/src/utils/authService/authService.d.ts.map +1 -1
  71. package/cjs/src/utils/authService/authService.js +9 -3
  72. package/cjs/src/utils/authService/authService.js.map +1 -1
  73. package/cjs/src/utils/authService/authService.spec.js +22 -0
  74. package/cjs/src/utils/authService/authService.spec.js.map +1 -1
  75. package/dist/src/auth.d.ts +16 -1
  76. package/dist/src/auth.d.ts.map +1 -1
  77. package/dist/src/auth.spec.d.ts.map +1 -1
  78. package/dist/src/embed/app.d.ts +18 -4
  79. package/dist/src/embed/app.d.ts.map +1 -1
  80. package/dist/src/embed/base.d.ts.map +1 -1
  81. package/dist/src/embed/liveboard.d.ts +7 -1
  82. package/dist/src/embed/liveboard.d.ts.map +1 -1
  83. package/dist/src/embed/sage.d.ts +1 -1
  84. package/dist/src/embed/sage.d.ts.map +1 -1
  85. package/dist/src/embed/search-bar.d.ts +1 -1
  86. package/dist/src/embed/search-bar.d.ts.map +1 -1
  87. package/dist/src/embed/search.d.ts +1 -1
  88. package/dist/src/embed/search.d.ts.map +1 -1
  89. package/dist/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  90. package/dist/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  91. package/dist/src/embed/ts-embed.d.ts +1 -1
  92. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  93. package/dist/src/index.d.ts +2 -1
  94. package/dist/src/index.d.ts.map +1 -1
  95. package/dist/src/test/test-utils.d.ts +1 -0
  96. package/dist/src/test/test-utils.d.ts.map +1 -1
  97. package/dist/src/tokenizedFetch.d.ts +9 -0
  98. package/dist/src/tokenizedFetch.d.ts.map +1 -1
  99. package/dist/src/types.d.ts +178 -37
  100. package/dist/src/types.d.ts.map +1 -1
  101. package/dist/src/utils/authService/authService.d.ts.map +1 -1
  102. package/dist/tsembed-react.es.js +186 -48
  103. package/dist/tsembed-react.js +186 -48
  104. package/dist/tsembed.es.js +187 -52
  105. package/dist/tsembed.js +187 -51
  106. package/dist/visual-embed-sdk-react-full.d.ts +235 -48
  107. package/dist/visual-embed-sdk-react.d.ts +235 -48
  108. package/dist/visual-embed-sdk.d.ts +235 -48
  109. package/lib/package.json +1 -1
  110. package/lib/src/auth.d.ts +16 -1
  111. package/lib/src/auth.d.ts.map +1 -1
  112. package/lib/src/auth.js +5 -1
  113. package/lib/src/auth.js.map +1 -1
  114. package/lib/src/auth.spec.d.ts.map +1 -1
  115. package/lib/src/auth.spec.js +9 -0
  116. package/lib/src/auth.spec.js.map +1 -1
  117. package/lib/src/embed/app.d.ts +18 -4
  118. package/lib/src/embed/app.d.ts.map +1 -1
  119. package/lib/src/embed/app.js +2 -2
  120. package/lib/src/embed/app.js.map +1 -1
  121. package/lib/src/embed/app.spec.js +19 -1
  122. package/lib/src/embed/app.spec.js.map +1 -1
  123. package/lib/src/embed/base.d.ts.map +1 -1
  124. package/lib/src/embed/base.js +0 -3
  125. package/lib/src/embed/base.js.map +1 -1
  126. package/lib/src/embed/embed.spec.js +2 -17
  127. package/lib/src/embed/embed.spec.js.map +1 -1
  128. package/lib/src/embed/liveboard.d.ts +7 -1
  129. package/lib/src/embed/liveboard.d.ts.map +1 -1
  130. package/lib/src/embed/liveboard.js +2 -2
  131. package/lib/src/embed/liveboard.js.map +1 -1
  132. package/lib/src/embed/liveboard.spec.js +20 -1
  133. package/lib/src/embed/liveboard.spec.js.map +1 -1
  134. package/lib/src/embed/pinboard.spec.js +20 -1
  135. package/lib/src/embed/pinboard.spec.js.map +1 -1
  136. package/lib/src/embed/sage.d.ts +1 -1
  137. package/lib/src/embed/sage.d.ts.map +1 -1
  138. package/lib/src/embed/sage.js +2 -2
  139. package/lib/src/embed/sage.js.map +1 -1
  140. package/lib/src/embed/search-bar.d.ts +1 -1
  141. package/lib/src/embed/search-bar.d.ts.map +1 -1
  142. package/lib/src/embed/search-bar.js +2 -2
  143. package/lib/src/embed/search-bar.js.map +1 -1
  144. package/lib/src/embed/search.d.ts +1 -1
  145. package/lib/src/embed/search.d.ts.map +1 -1
  146. package/lib/src/embed/search.js +3 -3
  147. package/lib/src/embed/search.js.map +1 -1
  148. package/lib/src/embed/search.spec.js +25 -1
  149. package/lib/src/embed/search.spec.js.map +1 -1
  150. package/lib/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  151. package/lib/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  152. package/lib/src/embed/ts-embed-trigger.spec.js +32 -0
  153. package/lib/src/embed/ts-embed-trigger.spec.js.map +1 -0
  154. package/lib/src/embed/ts-embed.d.ts +1 -1
  155. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  156. package/lib/src/embed/ts-embed.js +14 -11
  157. package/lib/src/embed/ts-embed.js.map +1 -1
  158. package/lib/src/embed/ts-embed.spec.js +41 -11
  159. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  160. package/lib/src/index.d.ts +2 -1
  161. package/lib/src/index.d.ts.map +1 -1
  162. package/lib/src/index.js +2 -1
  163. package/lib/src/index.js.map +1 -1
  164. package/lib/src/react/index.spec.js +1 -1
  165. package/lib/src/react/index.spec.js.map +1 -1
  166. package/lib/src/test/test-utils.d.ts +1 -0
  167. package/lib/src/test/test-utils.d.ts.map +1 -1
  168. package/lib/src/test/test-utils.js +8 -0
  169. package/lib/src/test/test-utils.js.map +1 -1
  170. package/lib/src/tokenizedFetch.d.ts +9 -0
  171. package/lib/src/tokenizedFetch.d.ts.map +1 -1
  172. package/lib/src/tokenizedFetch.js +9 -0
  173. package/lib/src/tokenizedFetch.js.map +1 -1
  174. package/lib/src/types.d.ts +178 -37
  175. package/lib/src/types.d.ts.map +1 -1
  176. package/lib/src/types.js +138 -21
  177. package/lib/src/types.js.map +1 -1
  178. package/lib/src/utils/authService/authService.d.ts.map +1 -1
  179. package/lib/src/utils/authService/authService.js +9 -3
  180. package/lib/src/utils/authService/authService.js.map +1 -1
  181. package/lib/src/utils/authService/authService.spec.js +22 -0
  182. package/lib/src/utils/authService/authService.spec.js.map +1 -1
  183. package/lib/src/visual-embed-sdk.d.ts +238 -48
  184. package/package.json +1 -1
  185. package/src/auth.spec.ts +10 -0
  186. package/src/auth.ts +21 -2
  187. package/src/embed/app.spec.ts +24 -1
  188. package/src/embed/app.ts +19 -5
  189. package/src/embed/base.ts +1 -5
  190. package/src/embed/embed.spec.ts +0 -18
  191. package/src/embed/liveboard.spec.ts +24 -1
  192. package/src/embed/liveboard.ts +8 -2
  193. package/src/embed/pinboard.spec.ts +24 -1
  194. package/src/embed/sage.ts +2 -2
  195. package/src/embed/search-bar.tsx +2 -2
  196. package/src/embed/search.spec.ts +29 -1
  197. package/src/embed/search.ts +3 -3
  198. package/src/embed/ts-embed-trigger.spec.ts +39 -0
  199. package/src/embed/ts-embed.spec.ts +49 -16
  200. package/src/embed/ts-embed.ts +21 -16
  201. package/src/index.ts +2 -0
  202. package/src/react/index.spec.tsx +1 -0
  203. package/src/test/test-utils.ts +9 -0
  204. package/src/tokenizedFetch.ts +9 -0
  205. package/src/types.ts +179 -34
  206. package/src/utils/authService/authService.spec.ts +27 -0
  207. package/src/utils/authService/authService.ts +14 -13
@@ -571,6 +571,7 @@
571
571
  * .then((response) => response.json())
572
572
  * .then((data) => data.token);
573
573
  * }
574
+ * });
574
575
  * ```
575
576
  */
576
577
  AuthType["TrustedAuthToken"] = "AuthServer";
@@ -604,15 +605,30 @@
604
605
  AuthType["Basic"] = "Basic";
605
606
  })(AuthType || (AuthType = {}));
606
607
  (function (HomeLeftNavItem) {
607
- HomeLeftNavItem["QueryBuilder"] = "query-builder";
608
+ /**
609
+ * @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
610
+ */
611
+ HomeLeftNavItem["SearchData"] = "search-data";
612
+ /**
613
+ * @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
614
+ */
608
615
  HomeLeftNavItem["Home"] = "insights-home";
616
+ /**
617
+ * @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
618
+ */
609
619
  HomeLeftNavItem["Liveboards"] = "liveboards";
620
+ /**
621
+ * @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
622
+ */
610
623
  HomeLeftNavItem["Answers"] = "answers";
624
+ /**
625
+ * @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
626
+ */
611
627
  HomeLeftNavItem["MonitorSubscription"] = "monitor-alerts";
628
+ /**
629
+ * @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
630
+ */
612
631
  HomeLeftNavItem["SpotIQAnalysis"] = "spotiq-analysis";
613
- HomeLeftNavItem["Tutorials"] = "tutorials";
614
- HomeLeftNavItem["Documentation"] = "documentation";
615
- HomeLeftNavItem["Community"] = "community";
616
632
  })(exports.HomeLeftNavItem || (exports.HomeLeftNavItem = {}));
617
633
  (function (RuntimeFilterOp) {
618
634
  /**
@@ -691,6 +707,10 @@
691
707
  HomepageModule["MyLibrary"] = "MY_LIBRARY";
692
708
  /**
693
709
  * Trending list
710
+ *
711
+ * **Note**: This option does not apply to the classic homepage.
712
+ * To access the updated modular homepage, set
713
+ * `modularHomeExperience` to `true` (available in Early Access from 9.12.0.cl onwards).
694
714
  */
695
715
  HomepageModule["Trending"] = "TRENDING";
696
716
  /**
@@ -775,7 +795,7 @@
775
795
  * @returns nonFilteredColumns - The columns that were not filtered
776
796
  * @example
777
797
  *```js
778
- * searchEmbed.trigger(HostEvent.DrillDown, {
798
+ * searchEmbed.trigger(EmbedEvent.DrillDown, {
779
799
  * points: {
780
800
  * clickedPoint,
781
801
  * selectedPoints: selectedPoint
@@ -867,7 +887,7 @@
867
887
  * @important
868
888
  * @example
869
889
  * ```js
870
- * embed.on(ThoughtSpotEmbed.Event.VizPointClick, ({data}) => {
890
+ * embed.on(EmbedEvent.VizPointClick, ({data}) => {
871
891
  * console.log(
872
892
  * data.vizId, // viz id
873
893
  * data.clickedPoint.selectedAttributes[0].value,
@@ -880,15 +900,41 @@
880
900
  */
881
901
  EmbedEvent["VizPointClick"] = "vizPointClick";
882
902
  /**
883
- * An error has occurred.
903
+ * An error has occurred. This event is fired for the following error types:
904
+ *
905
+ * API - API call failure error.
906
+ *
907
+ * FULLSCREEN - Error when presenting a Liveboard or visualization in full screen mode.
908
+ *
909
+ * SINGLE_VALUE_FILTER - Error due to multiple values in the single value filter.
910
+ *
911
+ * NON_EXIST_FILTER - Error due to a non-existent filter.
912
+ *
913
+ * INVALID_DATE_VALUE - Invalid date value error.
914
+ *
915
+ * INVALID_OPERATOR - Use of invalid operator during filter application.
916
+ *
917
+ * For more information, see [Developer Documentation](https://developers.thoughtspot.com/docs/events-app-integration#errorType)
884
918
  *
885
919
  * @returns error - An error object or message
886
920
  * @example
887
921
  * ```js
888
- * SearchEmbed.on(EmbedEvent.Error, showErrorMsg)
889
- * //show error messaage
890
- * function showErrorMsg() {
891
- * document.getElementById("error");
922
+ * // API error
923
+ * SearchEmbed.on(EmbedEvent.Error, (error) => {
924
+ * console.log(error);
925
+ * // { type: "Error", data: { errorType: "API", error: { message: '...', error: '...' } } }
926
+ * });
927
+ * ```
928
+ * @example
929
+ * ```js
930
+ * // Fullscreen error (Errors during presenting of a liveboard)
931
+ * LiveboardEmbed.on(EmbedEvent.Error, (error) => {
932
+ * console.log(error);
933
+ * // { type: "Error", data: { errorType: "FULLSCREEN", error: {
934
+ * // message: "Fullscreen API is not enabled",
935
+ * // stack: "..."
936
+ * // } }}
937
+ * })
892
938
  * ```
893
939
  */
894
940
  EmbedEvent["Error"] = "Error";
@@ -1434,7 +1480,7 @@
1434
1480
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1435
1481
  * @example
1436
1482
  *```js
1437
- * liveboardEmbed.trigger(HostEvent.Delete,
1483
+ * liveboardEmbed.trigger(EmbedEvent.Delete,
1438
1484
  * {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1439
1485
  *```
1440
1486
  */
@@ -1445,7 +1491,7 @@
1445
1491
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1446
1492
  * @example
1447
1493
  *```js
1448
- * liveboardEmbed.trigger(HostEvent.SchedulesList)
1494
+ * liveboardEmbed.trigger(EmbedEvent.SchedulesList)
1449
1495
  *```
1450
1496
  */
1451
1497
  EmbedEvent["SchedulesList"] = "schedule-list";
@@ -1455,7 +1501,7 @@
1455
1501
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1456
1502
  * @example
1457
1503
  *```js
1458
- * liveboardEmbed.trigger(HostEvent.Cancel)
1504
+ * liveboardEmbed.trigger(EmbedEvent.Cancel)
1459
1505
  *```
1460
1506
  */
1461
1507
  EmbedEvent["Cancel"] = "cancel";
@@ -1465,7 +1511,7 @@
1465
1511
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1466
1512
  * @example
1467
1513
  *```js
1468
- * liveboardEmbed.trigger(HostEvent.Explore, {
1514
+ * liveboardEmbed.trigger(EmbedEvent.Explore, {
1469
1515
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1470
1516
  *```
1471
1517
  */
@@ -1476,7 +1522,7 @@
1476
1522
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1477
1523
  * @example
1478
1524
  *```js
1479
- * liveboardEmbed.trigger(HostEvent.CopyLink, {
1525
+ * liveboardEmbed.trigger(EmbedEvent.CopyLink, {
1480
1526
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1481
1527
  *```
1482
1528
  */
@@ -1598,7 +1644,7 @@
1598
1644
  /**
1599
1645
  * Emitted when a LB/viz is renamed
1600
1646
  *
1601
- * @version SDK : 1.28.0 | ThoughtSpot: 9.11.0.cl
1647
+ * @version SDK : 1.28.0 | ThoughtSpot: 9.10.5.cl
1602
1648
  */
1603
1649
  EmbedEvent["Rename"] = "rename";
1604
1650
  })(exports.EmbedEvent || (exports.EmbedEvent = {}));
@@ -1723,10 +1769,13 @@
1723
1769
  * _String_. The name of the column to filter on.
1724
1770
  * `operator`
1725
1771
  * Runtime filter operator to apply. For information,
1726
- * see [Runtime filter operators](https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator).
1772
+ * see https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator.
1727
1773
  * `values`
1728
1774
  * List of operands. Some operators such as EQ, LE allow a single value, whereas
1729
1775
  * operators such as BW and IN accept multiple operands.
1776
+ * **Note**: `HostEvent.UpdateRuntimeFilters` is not supported in
1777
+ * Search embedding (SearchEmbed) and Natural Language Search
1778
+ * embedding (SageEmbed).
1730
1779
  *
1731
1780
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
1732
1781
  * @example
@@ -2249,22 +2298,24 @@
2249
2298
  */
2250
2299
  HostEvent["ResetSearch"] = "resetSearch";
2251
2300
  /**
2252
- * @hidden
2301
+ *
2253
2302
  * Get the currents visible and runtime filters applied on a Liveboard
2303
+ *
2254
2304
  * @example
2255
2305
  * liveboardEmbed.trigger(HostEvent.GetFilters)
2256
2306
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
2257
2307
  */
2258
2308
  HostEvent["GetFilters"] = "getFilters";
2259
2309
  /**
2260
- * @hidden
2310
+ *
2261
2311
  * Update the visible filters on the Liveboard.
2312
+ *
2262
2313
  * @param - filter: filter object containing column name and filter operation and values
2263
2314
  * @example
2264
2315
  *
2265
2316
  * ```js
2266
2317
  * liveboardEmbed.trigger(HostEvent.UpdateFilters, {
2267
- * filter: { column: 'column name', oper: 'in', values: [1,2,3], is_mandatory: false }
2318
+ * filter: { column: 'column name', oper: 'IN', values: [1,2,3], is_mandatory: false }
2268
2319
  * })
2269
2320
  * ```
2270
2321
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
@@ -2351,6 +2402,32 @@
2351
2402
  * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
2352
2403
  */
2353
2404
  HostEvent["AskSage"] = "AskSage";
2405
+ /**
2406
+ * Trigger UpdateCrossFilter for Liveboard
2407
+ *
2408
+ * @example
2409
+ * ```js
2410
+ * liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
2411
+ * vizId: 'b535c760-8bbe-4e6f-bb26-af56b4129a1e',
2412
+ * conditions: [
2413
+ * { columnName: 'Category', values: ['mfgr#12','mfgr#14'] },
2414
+ * { columnName: 'color', values: ['mint','hot'] },
2415
+ * ],
2416
+ * });
2417
+ * ```
2418
+ * @version SDK: 1.29.0 | Thoughtspot: 10.0.0.cl
2419
+ */
2420
+ HostEvent["UpdateCrossFilter"] = "UpdateCrossFilter";
2421
+ /**
2422
+ * Trigger ResetLiveboardPersonalisedView for Liveboard
2423
+ *
2424
+ * @example
2425
+ * ```js
2426
+ * liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
2427
+ * ```
2428
+ * @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
2429
+ */
2430
+ HostEvent["ResetLiveboardPersonalisedView"] = "ResetLiveboardPersonalisedView";
2354
2431
  })(exports.HostEvent || (exports.HostEvent = {}));
2355
2432
  /**
2356
2433
  * The different visual modes that the data sources panel within
@@ -3294,6 +3371,46 @@
3294
3371
  * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
3295
3372
  */
3296
3373
  Action["AskAi"] = "AskAi";
3374
+ /**
3375
+ * The **Add KPI to Watchlist** action on Home page watchlist.
3376
+ *
3377
+ * @example
3378
+ * ```js
3379
+ * disabledActions: [Action.AddToWatchlist]
3380
+ * ```
3381
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
3382
+ */
3383
+ Action["AddToWatchlist"] = "addToWatchlist";
3384
+ /**
3385
+ * The **Remove from watchlist** menu action on KPI watchlist.
3386
+ *
3387
+ * @example
3388
+ * ```js
3389
+ * disabledActions: [Action.RemoveFromWatchlist]
3390
+ * ```
3391
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
3392
+ */
3393
+ Action["RemoveFromWatchlist"] = "removeFromWatchlist";
3394
+ /**
3395
+ * The **Copy KPI Link** menu action on KPI watchlist.
3396
+ *
3397
+ * @example
3398
+ * ```js
3399
+ * disabledActions: [Action.CopyKpiLink]
3400
+ * ```
3401
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
3402
+ */
3403
+ Action["CopyKpiLink"] = "copyKpiLink";
3404
+ /**
3405
+ * Action ID for AI Highlights button
3406
+ *
3407
+ * @example
3408
+ * ```js
3409
+ * hiddenAction: [Action.AIHighlights]
3410
+ * ```
3411
+ * @version SDK: 1.27.10 | Thoughtspot: 9.12.5.cl
3412
+ */
3413
+ Action["AIHighlights"] = "AIHighlights";
3297
3414
  })(exports.Action || (exports.Action = {}));
3298
3415
  var PrefetchFeatures;
3299
3416
  (function (PrefetchFeatures) {
@@ -5748,7 +5865,7 @@
5748
5865
  return res.ok;
5749
5866
  }
5750
5867
  catch (e) {
5751
- logger.error(`Token Verification Service failed : ${e.message}`);
5868
+ logger.warn(`Token Verification Service failed : ${e.message}`);
5752
5869
  }
5753
5870
  return false;
5754
5871
  }
@@ -5766,7 +5883,10 @@
5766
5883
  * @param authToken
5767
5884
  */
5768
5885
  async function fetchAuthService(thoughtSpotHost, username, authToken) {
5769
- return failureLoggedFetch(`${thoughtSpotHost}${EndPoints.TOKEN_LOGIN}?username=${username}&auth_token=${authToken}`, {
5886
+ const fetchUrlParams = username
5887
+ ? `username=${username}&auth_token=${authToken}`
5888
+ : `auth_token=${authToken}`;
5889
+ return failureLoggedFetch(`${thoughtSpotHost}${EndPoints.TOKEN_LOGIN}?${fetchUrlParams}`, {
5770
5890
  credentials: 'include',
5771
5891
  // We do not want to follow the redirect, as it starts giving a CORS
5772
5892
  // error
@@ -5780,13 +5900,16 @@
5780
5900
  * @param authToken
5781
5901
  */
5782
5902
  async function fetchAuthPostService(thoughtSpotHost, username, authToken) {
5903
+ const bodyPrams = username
5904
+ ? `username=${encodeURIComponent(username)}&auth_token=${encodeURIComponent(authToken)}`
5905
+ : `auth_token=${encodeURIComponent(authToken)}`;
5783
5906
  return failureLoggedFetch(`${thoughtSpotHost}${EndPoints.TOKEN_LOGIN}`, {
5784
5907
  method: 'POST',
5785
5908
  headers: {
5786
5909
  'content-type': 'application/x-www-form-urlencoded',
5787
5910
  'x-requested-by': 'ThoughtSpot',
5788
5911
  },
5789
- body: `username=${encodeURIComponent(username)}&auth_token=${encodeURIComponent(authToken)}`,
5912
+ body: bodyPrams,
5790
5913
  credentials: 'include',
5791
5914
  // We do not want to follow the redirect, as it starts giving a CORS
5792
5915
  // error
@@ -5876,6 +5999,15 @@
5876
5999
  */
5877
6000
  const getEmbedConfig = () => config;
5878
6001
 
6002
+ /**
6003
+ * Fetch wrapper that adds the authentication token to the request.
6004
+ * Use this to call the ThoughtSpot APIs when using the visual embed sdk.
6005
+ *
6006
+ * @param input
6007
+ * @param init
6008
+ * @version SDK: 1.28.0
6009
+ * @group Global methods
6010
+ */
5879
6011
  const tokenizedFetch = async (input, init) => {
5880
6012
  const embedConfig = getEmbedConfig();
5881
6013
  if (embedConfig.authType !== AuthType.TrustedAuthTokenCookieless) {
@@ -12940,9 +13072,12 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
12940
13072
  }
12941
13073
  }
12942
13074
  const initSession = (sessionDetails) => {
13075
+ const embedConfig = getEmbedConfig();
12943
13076
  if (sessionInfo == null) {
12944
13077
  sessionInfo = sessionDetails;
12945
- initMixpanel(sessionInfo);
13078
+ if (!embedConfig.disableSDKTracking) {
13079
+ initMixpanel(sessionInfo);
13080
+ }
12946
13081
  sessionInfoResolver(sessionInfo);
12947
13082
  }
12948
13083
  };
@@ -13410,7 +13545,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13410
13545
  });
13411
13546
  }
13412
13547
 
13413
- var name="@thoughtspot/visual-embed-sdk";var version="1.28.0-alpha.1";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","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","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:"44 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};
13548
+ var name="@thoughtspot/visual-embed-sdk";var version="1.28.0-alpha.3";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","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:"44 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};
13414
13549
 
13415
13550
  /**
13416
13551
  * Copyright (c) 2022
@@ -13557,7 +13692,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13557
13692
  this.thoughtSpotV2Base = getV2BasePath(this.embedConfig);
13558
13693
  this.eventHandlerMap = new Map();
13559
13694
  this.isError = false;
13560
- this.viewConfig = viewConfig;
13695
+ this.viewConfig = { excludeRuntimeFiltersfromURL: true, ...viewConfig };
13561
13696
  this.shouldEncodeUrlQueryParams = this.embedConfig.shouldEncodeUrlQueryParams;
13562
13697
  this.registerAppInit();
13563
13698
  uploadMixpanelEvent(MIXPANEL_EVENT.VISUAL_SDK_EMBED_CREATE, {
@@ -13787,10 +13922,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13787
13922
  const queryParams = this.shouldEncodeUrlQueryParams
13788
13923
  ? `?base64UrlEncodedFlags=${getEncodedQueryParamsString(queryString)}`
13789
13924
  : `?${queryString}`;
13790
- let host = this.thoughtSpotHost;
13791
- if (!isUndefined(this.embedConfig.enableReactShell)) {
13792
- host = this.embedConfig.enableReactShell ? '/v2' : '/v1';
13793
- }
13925
+ const host = this.thoughtSpotHost;
13794
13926
  const path = `${host}/${queryParams}#`;
13795
13927
  return path;
13796
13928
  }
@@ -14179,6 +14311,14 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14179
14311
  */
14180
14312
  trigger(messageType, data = {}) {
14181
14313
  uploadMixpanelEvent(`${MIXPANEL_EVENT.VISUAL_SDK_TRIGGER}-${messageType}`);
14314
+ if (!this.isRendered) {
14315
+ this.handleError('Please call render before triggering events');
14316
+ return null;
14317
+ }
14318
+ if (!messageType) {
14319
+ this.handleError('Host event type is undefined');
14320
+ return null;
14321
+ }
14182
14322
  return processTrigger(this.iFrame, messageType, this.thoughtSpotHost, data);
14183
14323
  }
14184
14324
  /**
@@ -14188,7 +14328,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14188
14328
  *
14189
14329
  * @param args
14190
14330
  */
14191
- render() {
14331
+ async render() {
14192
14332
  this.isRendered = true;
14193
14333
  return this;
14194
14334
  }
@@ -14329,8 +14469,8 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14329
14469
  }
14330
14470
  const elBoundingClient = this.el.getBoundingClientRect();
14331
14471
  setStyleProperties(this.preRenderWrapper, {
14332
- top: `${elBoundingClient.y}px`,
14333
- left: `${elBoundingClient.x}px`,
14472
+ top: `${elBoundingClient.y + window.scrollY}px`,
14473
+ left: `${elBoundingClient.x + window.scrollX}px`,
14334
14474
  width: `${elBoundingClient.width}px`,
14335
14475
  height: `${elBoundingClient.height}px`,
14336
14476
  });
@@ -14350,8 +14490,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14350
14490
  pointerEvents: 'none',
14351
14491
  zIndex: '-1000',
14352
14492
  position: 'absolute ',
14353
- top: '0',
14354
- left: '0',
14355
14493
  };
14356
14494
  setStyleProperties(this.preRenderWrapper, preRenderHideStyles);
14357
14495
  if (this.resizeObserver) {
@@ -14395,7 +14533,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14395
14533
  class V1Embed extends TsEmbed {
14396
14534
  constructor(domSelector, viewConfig) {
14397
14535
  super(domSelector, viewConfig);
14398
- this.viewConfig = viewConfig;
14536
+ this.viewConfig = { excludeRuntimeFiltersfromURL: true, ...viewConfig };
14399
14537
  }
14400
14538
  /**
14401
14539
  * Render the app in an iframe and set up event handlers
@@ -14495,10 +14633,10 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14495
14633
  /**
14496
14634
  * Render the embedded ThoughtSpot search
14497
14635
  */
14498
- render() {
14636
+ async render() {
14499
14637
  super.render();
14500
14638
  const src = this.getIFrameSrc();
14501
- this.renderIFrame(src);
14639
+ await this.renderIFrame(src);
14502
14640
  return this;
14503
14641
  }
14504
14642
  }
@@ -14592,10 +14730,10 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14592
14730
  *
14593
14731
  * @returns {SageEmbed} Eureka/Sage embed
14594
14732
  */
14595
- render() {
14733
+ async render() {
14596
14734
  super.render();
14597
14735
  const src = this.getIFrameSrc();
14598
- this.renderV1Embed(src);
14736
+ await this.renderV1Embed(src);
14599
14737
  return this;
14600
14738
  }
14601
14739
  }
@@ -14641,7 +14779,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14641
14779
  }
14642
14780
  getEmbedParams() {
14643
14781
  var _a;
14644
- const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, } = this.viewConfig;
14782
+ const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL = true, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, } = this.viewConfig;
14645
14783
  const queryParams = this.getBaseQueryParams();
14646
14784
  queryParams[Param.HideActions] = [
14647
14785
  ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
@@ -14708,11 +14846,11 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14708
14846
  /**
14709
14847
  * Render the embedded ThoughtSpot search
14710
14848
  */
14711
- render() {
14849
+ async render() {
14712
14850
  super.render();
14713
14851
  const { answerId } = this.viewConfig;
14714
14852
  const src = this.getIFrameSrc();
14715
- this.renderIFrame(src);
14853
+ await this.renderIFrame(src);
14716
14854
  getAuthPromise().then(() => {
14717
14855
  if (checkReleaseVersionInBeta(getReleaseVersion(), getEmbedConfig().suppressSearchEmbedBetaWarning
14718
14856
  || getEmbedConfig().suppressErrorAlerts)) {
@@ -14932,10 +15070,10 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14932
15070
  * @param renderOptions An object containing the page ID
14933
15071
  * to be embedded.
14934
15072
  */
14935
- render() {
15073
+ async render() {
14936
15074
  super.render();
14937
15075
  const src = this.getIFrameSrc();
14938
- this.renderV1Embed(src);
15076
+ await this.renderV1Embed(src);
14939
15077
  return this;
14940
15078
  }
14941
15079
  }
@@ -15122,10 +15260,10 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
15122
15260
  * @param renderOptions An object specifying the Liveboard ID,
15123
15261
  * visualization ID and the runtime filters.
15124
15262
  */
15125
- render() {
15263
+ async render() {
15126
15264
  super.render();
15127
15265
  const src = this.getIFrameSrc();
15128
- this.renderV1Embed(src);
15266
+ await this.renderV1Embed(src);
15129
15267
  return this;
15130
15268
  }
15131
15269
  navigateToLiveboard(liveboardId, vizId, activeTabId) {