@thoughtspot/visual-embed-sdk 1.36.1 → 1.36.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 (203) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/auth.d.ts.map +1 -1
  3. package/cjs/src/auth.js +2 -1
  4. package/cjs/src/auth.js.map +1 -1
  5. package/cjs/src/authToken.d.ts.map +1 -1
  6. package/cjs/src/authToken.js +10 -3
  7. package/cjs/src/authToken.js.map +1 -1
  8. package/cjs/src/embed/app.d.ts +14 -0
  9. package/cjs/src/embed/app.d.ts.map +1 -1
  10. package/cjs/src/embed/app.js +4 -1
  11. package/cjs/src/embed/app.js.map +1 -1
  12. package/cjs/src/embed/app.spec.js +17 -0
  13. package/cjs/src/embed/app.spec.js.map +1 -1
  14. package/cjs/src/embed/base.d.ts.map +1 -1
  15. package/cjs/src/embed/base.js +2 -2
  16. package/cjs/src/embed/base.js.map +1 -1
  17. package/cjs/src/embed/base.spec.js +24 -0
  18. package/cjs/src/embed/base.spec.js.map +1 -1
  19. package/cjs/src/embed/embedConfig.d.ts +1 -1
  20. package/cjs/src/embed/embedConfig.d.ts.map +1 -1
  21. package/cjs/src/embed/embedConfig.js +5 -4
  22. package/cjs/src/embed/embedConfig.js.map +1 -1
  23. package/cjs/src/embed/liveboard.d.ts +4 -1
  24. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  25. package/cjs/src/embed/liveboard.js.map +1 -1
  26. package/cjs/src/types.d.ts +85 -66
  27. package/cjs/src/types.d.ts.map +1 -1
  28. package/cjs/src/types.js +78 -59
  29. package/cjs/src/types.js.map +1 -1
  30. package/cjs/src/utils/resetServices.d.ts +8 -0
  31. package/cjs/src/utils/resetServices.d.ts.map +1 -0
  32. package/cjs/src/utils/resetServices.js +18 -0
  33. package/cjs/src/utils/resetServices.js.map +1 -0
  34. package/cjs/src/utils/resetServices.spec.d.ts +2 -0
  35. package/cjs/src/utils/resetServices.spec.d.ts.map +1 -0
  36. package/cjs/src/utils/resetServices.spec.js +18 -0
  37. package/cjs/src/utils/resetServices.spec.js.map +1 -0
  38. package/cjs/src/utils/sessionInfoService.d.ts +14 -2
  39. package/cjs/src/utils/sessionInfoService.d.ts.map +1 -1
  40. package/cjs/src/utils/sessionInfoService.js +18 -3
  41. package/cjs/src/utils/sessionInfoService.js.map +1 -1
  42. package/cjs/src/utils.d.ts +12 -0
  43. package/cjs/src/utils.d.ts.map +1 -1
  44. package/cjs/src/utils.js +21 -1
  45. package/cjs/src/utils.js.map +1 -1
  46. package/cjs/src/utils.spec.js +15 -0
  47. package/cjs/src/utils.spec.js.map +1 -1
  48. package/dist/{index-B3hd6DTM.js → index-BJx3m5_V.js} +1 -1
  49. package/dist/src/auth.d.ts.map +1 -1
  50. package/dist/src/authToken.d.ts.map +1 -1
  51. package/dist/src/embed/app.d.ts +14 -0
  52. package/dist/src/embed/app.d.ts.map +1 -1
  53. package/dist/src/embed/base.d.ts.map +1 -1
  54. package/dist/src/embed/embedConfig.d.ts +1 -1
  55. package/dist/src/embed/embedConfig.d.ts.map +1 -1
  56. package/dist/src/embed/liveboard.d.ts +4 -1
  57. package/dist/src/embed/liveboard.d.ts.map +1 -1
  58. package/dist/src/types.d.ts +85 -66
  59. package/dist/src/types.d.ts.map +1 -1
  60. package/dist/src/utils/resetServices.d.ts +8 -0
  61. package/dist/src/utils/resetServices.d.ts.map +1 -0
  62. package/dist/src/utils/resetServices.spec.d.ts +2 -0
  63. package/dist/src/utils/resetServices.spec.d.ts.map +1 -0
  64. package/dist/src/utils/sessionInfoService.d.ts +14 -2
  65. package/dist/src/utils/sessionInfoService.d.ts.map +1 -1
  66. package/dist/src/utils.d.ts +12 -0
  67. package/dist/src/utils.d.ts.map +1 -1
  68. package/dist/tsembed-react.es.js +117 -70
  69. package/dist/tsembed-react.js +116 -69
  70. package/dist/tsembed.es.js +160 -75
  71. package/dist/tsembed.js +159 -74
  72. package/dist/visual-embed-sdk-react-full.d.ts +118 -70
  73. package/dist/visual-embed-sdk-react.d.ts +118 -70
  74. package/dist/visual-embed-sdk.d.ts +118 -70
  75. package/lib/package.json +1 -1
  76. package/lib/src/auth.d.ts.map +1 -1
  77. package/lib/src/auth.js +3 -2
  78. package/lib/src/auth.js.map +1 -1
  79. package/lib/src/authToken.d.ts.map +1 -1
  80. package/lib/src/authToken.js +10 -3
  81. package/lib/src/authToken.js.map +1 -1
  82. package/lib/src/embed/app.d.ts +14 -0
  83. package/lib/src/embed/app.d.ts.map +1 -1
  84. package/lib/src/embed/app.js +4 -1
  85. package/lib/src/embed/app.js.map +1 -1
  86. package/lib/src/embed/app.spec.js +17 -0
  87. package/lib/src/embed/app.spec.js.map +1 -1
  88. package/lib/src/embed/base.d.ts.map +1 -1
  89. package/lib/src/embed/base.js +2 -2
  90. package/lib/src/embed/base.js.map +1 -1
  91. package/lib/src/embed/base.spec.js +24 -0
  92. package/lib/src/embed/base.spec.js.map +1 -1
  93. package/lib/src/embed/embedConfig.d.ts +1 -1
  94. package/lib/src/embed/embedConfig.d.ts.map +1 -1
  95. package/lib/src/embed/embedConfig.js +5 -4
  96. package/lib/src/embed/embedConfig.js.map +1 -1
  97. package/lib/src/embed/liveboard.d.ts +4 -1
  98. package/lib/src/embed/liveboard.d.ts.map +1 -1
  99. package/lib/src/embed/liveboard.js.map +1 -1
  100. package/lib/src/types.d.ts +85 -66
  101. package/lib/src/types.d.ts.map +1 -1
  102. package/lib/src/types.js +78 -59
  103. package/lib/src/types.js.map +1 -1
  104. package/lib/src/utils/resetServices.d.ts +8 -0
  105. package/lib/src/utils/resetServices.d.ts.map +1 -0
  106. package/lib/src/utils/resetServices.js +14 -0
  107. package/lib/src/utils/resetServices.js.map +1 -0
  108. package/lib/src/utils/resetServices.spec.d.ts +2 -0
  109. package/lib/src/utils/resetServices.spec.d.ts.map +1 -0
  110. package/lib/src/utils/resetServices.spec.js +15 -0
  111. package/lib/src/utils/resetServices.spec.js.map +1 -0
  112. package/lib/src/utils/sessionInfoService.d.ts +14 -2
  113. package/lib/src/utils/sessionInfoService.d.ts.map +1 -1
  114. package/lib/src/utils/sessionInfoService.js +16 -2
  115. package/lib/src/utils/sessionInfoService.js.map +1 -1
  116. package/lib/src/utils.d.ts +12 -0
  117. package/lib/src/utils.d.ts.map +1 -1
  118. package/lib/src/utils.js +18 -0
  119. package/lib/src/utils.js.map +1 -1
  120. package/lib/src/utils.spec.js +16 -1
  121. package/lib/src/utils.spec.js.map +1 -1
  122. package/lib/src/visual-embed-sdk.d.ts +118 -70
  123. package/package.json +1 -1
  124. package/src/auth.ts +3 -2
  125. package/src/authToken.ts +11 -3
  126. package/src/embed/app.spec.ts +27 -0
  127. package/src/embed/app.ts +19 -0
  128. package/src/embed/base.spec.ts +26 -0
  129. package/src/embed/base.ts +2 -2
  130. package/src/embed/embedConfig.ts +5 -4
  131. package/src/embed/liveboard.ts +4 -1
  132. package/src/types.ts +89 -70
  133. package/src/utils/resetServices.spec.ts +15 -0
  134. package/src/utils/resetServices.ts +14 -0
  135. package/src/utils/sessionInfoService.ts +17 -2
  136. package/src/utils.spec.ts +21 -0
  137. package/src/utils.ts +21 -0
  138. package/cjs/src/embed/searchEmbed-basic-auth.spec.d.ts +0 -2
  139. package/cjs/src/embed/searchEmbed-basic-auth.spec.d.ts.map +0 -1
  140. package/cjs/src/embed/searchEmbed-basic-auth.spec.js +0 -104
  141. package/cjs/src/embed/searchEmbed-basic-auth.spec.js.map +0 -1
  142. package/cjs/src/hostEventsTypeMapping.d.ts +0 -2
  143. package/cjs/src/hostEventsTypeMapping.d.ts.map +0 -1
  144. package/cjs/src/hostEventsTypeMapping.js +0 -4
  145. package/cjs/src/hostEventsTypeMapping.js.map +0 -1
  146. package/cjs/src/utils/embedApi/contracts.d.ts +0 -101
  147. package/cjs/src/utils/embedApi/contracts.d.ts.map +0 -1
  148. package/cjs/src/utils/embedApi/contracts.js +0 -17
  149. package/cjs/src/utils/embedApi/contracts.js.map +0 -1
  150. package/cjs/src/utils/embedApi/embedApiClient.d.ts +0 -12
  151. package/cjs/src/utils/embedApi/embedApiClient.d.ts.map +0 -1
  152. package/cjs/src/utils/embedApi/embedApiClient.js +0 -46
  153. package/cjs/src/utils/embedApi/embedApiClient.js.map +0 -1
  154. package/cjs/src/utils/embedApi/processEmbedApi.d.ts +0 -9
  155. package/cjs/src/utils/embedApi/processEmbedApi.d.ts.map +0 -1
  156. package/cjs/src/utils/embedApi/processEmbedApi.js +0 -18
  157. package/cjs/src/utils/embedApi/processEmbedApi.js.map +0 -1
  158. package/dist/index-BBBimG1x.js +0 -7370
  159. package/dist/index-BGnxP5NY.js +0 -7370
  160. package/dist/index-CENLvayL.js +0 -7370
  161. package/dist/index-CR5u7BMC.js +0 -7370
  162. package/dist/index-CbltIawo.js +0 -7370
  163. package/dist/index-CoQfqaHj.js +0 -7370
  164. package/dist/index-CzwzS0P4.js +0 -7370
  165. package/dist/index-D-9WUCUl.js +0 -7370
  166. package/dist/index-DFwi_pV_.js +0 -7370
  167. package/dist/index-DOIjN0N_.js +0 -7370
  168. package/dist/index-DYBx8SuE.js +0 -7370
  169. package/dist/index-DaLHJaLd.js +0 -7370
  170. package/dist/index-DnJX-gN2.js +0 -7370
  171. package/dist/index-IDmSUe93.js +0 -7370
  172. package/dist/index-nWevLycs.js +0 -7370
  173. package/dist/index-vxW97_xb.js +0 -7370
  174. package/dist/src/embed/searchEmbed-basic-auth.spec.d.ts +0 -2
  175. package/dist/src/embed/searchEmbed-basic-auth.spec.d.ts.map +0 -1
  176. package/dist/src/hostEventsTypeMapping.d.ts +0 -2
  177. package/dist/src/hostEventsTypeMapping.d.ts.map +0 -1
  178. package/dist/src/utils/embedApi/contracts.d.ts +0 -101
  179. package/dist/src/utils/embedApi/contracts.d.ts.map +0 -1
  180. package/dist/src/utils/embedApi/embedApiClient.d.ts +0 -12
  181. package/dist/src/utils/embedApi/embedApiClient.d.ts.map +0 -1
  182. package/dist/src/utils/embedApi/processEmbedApi.d.ts +0 -9
  183. package/dist/src/utils/embedApi/processEmbedApi.d.ts.map +0 -1
  184. package/lib/src/embed/searchEmbed-basic-auth.spec.d.ts +0 -2
  185. package/lib/src/embed/searchEmbed-basic-auth.spec.d.ts.map +0 -1
  186. package/lib/src/embed/searchEmbed-basic-auth.spec.js +0 -101
  187. package/lib/src/embed/searchEmbed-basic-auth.spec.js.map +0 -1
  188. package/lib/src/hostEventsTypeMapping.d.ts +0 -2
  189. package/lib/src/hostEventsTypeMapping.d.ts.map +0 -1
  190. package/lib/src/hostEventsTypeMapping.js +0 -2
  191. package/lib/src/hostEventsTypeMapping.js.map +0 -1
  192. package/lib/src/utils/embedApi/contracts.d.ts +0 -101
  193. package/lib/src/utils/embedApi/contracts.d.ts.map +0 -1
  194. package/lib/src/utils/embedApi/contracts.js +0 -14
  195. package/lib/src/utils/embedApi/contracts.js.map +0 -1
  196. package/lib/src/utils/embedApi/embedApiClient.d.ts +0 -12
  197. package/lib/src/utils/embedApi/embedApiClient.d.ts.map +0 -1
  198. package/lib/src/utils/embedApi/embedApiClient.js +0 -42
  199. package/lib/src/utils/embedApi/embedApiClient.js.map +0 -1
  200. package/lib/src/utils/embedApi/processEmbedApi.d.ts +0 -9
  201. package/lib/src/utils/embedApi/processEmbedApi.d.ts.map +0 -1
  202. package/lib/src/utils/embedApi/processEmbedApi.js +0 -14
  203. package/lib/src/utils/embedApi/processEmbedApi.js.map +0 -1
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.36.1 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.36.3 */
2
2
  function _mergeNamespaces(n, m) {
3
3
  m.forEach(function (e) {
4
4
  e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
@@ -340,7 +340,25 @@ const getTypeFromValue = (value) => {
340
340
  return ['boolean', 'boolean'];
341
341
  }
342
342
  return ['', ''];
343
- };
343
+ };
344
+ const sdkWindowKey = '_tsEmbedSDK';
345
+ /**
346
+ * Stores a value in the global `window` object under the `_tsEmbedSDK` namespace.
347
+ * @param key - The key under which the value will be stored.
348
+ * @param value - The value to store.
349
+ */
350
+ const storeValueInWindow = (key, value) => {
351
+ if (!window[sdkWindowKey]) {
352
+ window[sdkWindowKey] = {};
353
+ }
354
+ window[sdkWindowKey][key] = value;
355
+ };
356
+ /**
357
+ * Retrieves a stored value from the global `window` object under the `_tsEmbedSDK` namespace.
358
+ * @param key - The key whose value needs to be retrieved.
359
+ * @returns The stored value or `undefined` if the key is not found.
360
+ */
361
+ const getValueFromWindow = (key) => { var _a; return (_a = window === null || window === void 0 ? void 0 : window[sdkWindowKey]) === null || _a === void 0 ? void 0 : _a[key]; };
344
362
 
345
363
  /**
346
364
  * Copyright (c) 2023
@@ -731,8 +749,8 @@ var EmbedEvent;
731
749
  */
732
750
  EmbedEvent["Load"] = "load";
733
751
  /**
734
- * Data pertaining to answer or Liveboard is received
735
- * @return data - The answer or Liveboard data
752
+ * Data pertaining to an Answer or Liveboard is received
753
+ * @return data - The Answer or Liveboard data
736
754
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
737
755
  * @example
738
756
  *```js
@@ -906,7 +924,7 @@ var EmbedEvent;
906
924
  */
907
925
  EmbedEvent["Alert"] = "alert";
908
926
  /**
909
- * The ThoughtSpot auth session has expired.
927
+ * The ThoughtSpot authentication session has expired.
910
928
  * @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
911
929
  * @example
912
930
  *```js
@@ -976,7 +994,7 @@ var EmbedEvent;
976
994
  /**
977
995
  * Emitted when the embed does not have cookie access. This happens
978
996
  * when Safari and other Web browsers block third-party cookies
979
- * are blocked by default. `NoCookieAccess` can trigger
997
+ * are blocked by default. `NoCookieAccess` can trigger.
980
998
  * @example
981
999
  *```js
982
1000
  * appEmbed.on(EmbedEvent.NoCookieAccess)
@@ -1064,7 +1082,7 @@ var EmbedEvent;
1064
1082
  */
1065
1083
  EmbedEvent["Save"] = "save";
1066
1084
  /**
1067
- * Emitted when the download action is triggered on an answer
1085
+ * Emitted when the download action is triggered on an Answer.
1068
1086
  *
1069
1087
  * **Note**: This event is deprecated in v1.21.0.
1070
1088
  * To fire an event when a download action is initiated on a chart or table,
@@ -1080,7 +1098,7 @@ var EmbedEvent;
1080
1098
  */
1081
1099
  EmbedEvent["Download"] = "download";
1082
1100
  /**
1083
- * Emitted when the download action is triggered on an answer
1101
+ * Emitted when the download action is triggered on an Answer.
1084
1102
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
1085
1103
  * @example
1086
1104
  *```js
@@ -1094,7 +1112,7 @@ var EmbedEvent;
1094
1112
  */
1095
1113
  EmbedEvent["DownloadAsPng"] = "downloadAsPng";
1096
1114
  /**
1097
- * Emitted when the Download as PDF action is triggered on an answer
1115
+ * Emitted when the Download as PDF action is triggered on an Answer
1098
1116
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1099
1117
  * @example
1100
1118
  *```js
@@ -1108,7 +1126,7 @@ var EmbedEvent;
1108
1126
  */
1109
1127
  EmbedEvent["DownloadAsPdf"] = "downloadAsPdf";
1110
1128
  /**
1111
- * Emitted when the Download as CSV action is triggered on an answer
1129
+ * Emitted when the Download as CSV action is triggered on an Answer.
1112
1130
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1113
1131
  * @example
1114
1132
  *```js
@@ -1122,7 +1140,7 @@ var EmbedEvent;
1122
1140
  */
1123
1141
  EmbedEvent["DownloadAsCsv"] = "downloadAsCsv";
1124
1142
  /**
1125
- * Emitted when the Download as XLSX action is triggered on an answer
1143
+ * Emitted when the Download as XLSX action is triggered on an Answer.
1126
1144
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1127
1145
  * @example
1128
1146
  *```js
@@ -1150,7 +1168,8 @@ var EmbedEvent;
1150
1168
  */
1151
1169
  EmbedEvent["AnswerDelete"] = "answerDelete";
1152
1170
  /**
1153
- * Emitted when an answer is pinned to a Liveboard
1171
+ * Emitted when a user initiates the Pin action to
1172
+ * add an Answer to a Liveboard.
1154
1173
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1155
1174
  * @example
1156
1175
  *```js
@@ -1288,7 +1307,7 @@ var EmbedEvent;
1288
1307
  */
1289
1308
  EmbedEvent["SaveAsView"] = "saveAsView";
1290
1309
  /**
1291
- * Emitted when the user creates a copy of an Answer
1310
+ * Emitted when the user creates a copy of an Answer.
1292
1311
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1293
1312
  * @example
1294
1313
  *```js
@@ -1302,7 +1321,7 @@ var EmbedEvent;
1302
1321
  */
1303
1322
  EmbedEvent["CopyAEdit"] = "copyAEdit";
1304
1323
  /**
1305
- * Emitted when a user clicks Show underlying data on an Answer
1324
+ * Emitted when a user clicks *Show underlying data* on an Answer.
1306
1325
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1307
1326
  * @example
1308
1327
  *```js
@@ -1313,7 +1332,7 @@ var EmbedEvent;
1313
1332
  */
1314
1333
  EmbedEvent["ShowUnderlyingData"] = "showUnderlyingData";
1315
1334
  /**
1316
- * Emitted when an answer is switched to a chart or table view.
1335
+ * Emitted when an Answer is switched to a chart or table view.
1317
1336
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1318
1337
  * @example
1319
1338
  *```js
@@ -1447,11 +1466,12 @@ var EmbedEvent;
1447
1466
  */
1448
1467
  EmbedEvent["CopyLink"] = "embedDocument";
1449
1468
  /**
1450
- * Emitted when a user interacts with cross filters on a visualization or Liveboard
1469
+ * Emitted when a user interacts with cross filters on a
1470
+ * visualization or Liveboard.
1451
1471
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
1452
1472
  * @example
1453
1473
  *```js
1454
- * liveboardEmbed.trigger(HostEvent.CrossFilterChanged, {
1474
+ * liveboardEmbed.on(EmbedEvent.CrossFilterChanged, {
1455
1475
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1456
1476
  *```
1457
1477
  */
@@ -1545,8 +1565,8 @@ var EmbedEvent;
1545
1565
  */
1546
1566
  EmbedEvent["DeletePersonalisedView"] = "deletePersonalisedView";
1547
1567
  /**
1548
- * Emitted when a user creates a new worksheet
1549
- * @version SDK : 1.27.0 | ThoughtSpot Cloud: 9.8.0.cl
1568
+ * Emitted when a user creates a Worksheet.
1569
+ * @version SDK : 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1550
1570
  */
1551
1571
  EmbedEvent["CreateWorksheet"] = "createWorksheet";
1552
1572
  /**
@@ -1559,8 +1579,8 @@ var EmbedEvent;
1559
1579
  */
1560
1580
  EmbedEvent["AskSageInit"] = "AskSageInit";
1561
1581
  /**
1562
- * Emitted when a LB/viz is renamed
1563
- * @version SDK : 1.28.0 | ThoughtSpot: 9.10.5.cl
1582
+ * Emitted when a Liveboard or visualization is renamed.
1583
+ * @version SDK : 1.28.0 | ThoughtSpot: 9.10.5.cl, 10.1.0.sw
1564
1584
  */
1565
1585
  EmbedEvent["Rename"] = "rename";
1566
1586
  /**
@@ -1624,8 +1644,7 @@ var EmbedEvent;
1624
1644
  EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
1625
1645
  /**
1626
1646
  * Emitted when parameter changes in an Answer
1627
- * or Liveboard
1628
- *
1647
+ * or Liveboard.
1629
1648
  * ```js
1630
1649
  * liveboardEmbed.on(EmbedEvent.ParameterChanged, (payload) => {
1631
1650
  * console.log('payload', payload);
@@ -1652,7 +1671,7 @@ var EmbedEvent;
1652
1671
  */
1653
1672
  EmbedEvent["TableVizRendered"] = "TableVizRendered";
1654
1673
  /**
1655
- * Emitted when the liveboard is created from pin modal or liveboard list page.
1674
+ * Emitted when the liveboard is created from pin modal or Liveboard list page.
1656
1675
  * You can use this event as a hook to trigger
1657
1676
  * other events on liveboard creation.
1658
1677
  *
@@ -1797,7 +1816,7 @@ var HostEvent;
1797
1816
  */
1798
1817
  HostEvent["Filter"] = "filter";
1799
1818
  /**
1800
- * Reload the answer or visualization
1819
+ * Reload the Answer or visualization
1801
1820
  * @hidden
1802
1821
  */
1803
1822
  HostEvent["Reload"] = "reload";
@@ -1847,12 +1866,10 @@ var HostEvent;
1847
1866
  * and `AppEmbed` only. In full application embedding, this event updates
1848
1867
  * the runtime filters applied on the Liveboard and saved Answer objects.
1849
1868
  *
1850
- *
1851
- * Pass an array of runtime filters with the following attributes:
1852
- *
1869
+ * @param - Pass an array of {@link RuntimeFilter} with the following attributes:
1853
1870
  * `columnName` - _String_. The name of the column to filter on.
1854
1871
  *
1855
- * `operator` - Runtime filter operator to apply. For more information,
1872
+ * `operator` - {@link RuntimeFilterOp} to apply. For more information,
1856
1873
  * see link:https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator[Developer Documentation].
1857
1874
  *
1858
1875
  * `values` - List of operands. Some operators such as EQ and LE allow a
@@ -1864,7 +1881,7 @@ var HostEvent;
1864
1881
  * will be cleared, restoring the original visualization
1865
1882
  * with the updated filters.
1866
1883
  *
1867
- * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
1884
+
1868
1885
  * @example
1869
1886
  * ```js
1870
1887
  * liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
@@ -2103,6 +2120,11 @@ var HostEvent;
2103
2120
  * appEmbed.trigger(HostEvent.Remove)
2104
2121
  * ```
2105
2122
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2123
+ * * @example
2124
+ * ```js
2125
+ * liveboardEmbed.trigger(HostEvent.Remove)
2126
+ * ```
2127
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
2106
2128
  */
2107
2129
  HostEvent["Remove"] = "delete";
2108
2130
  /**
@@ -2513,7 +2535,7 @@ var HostEvent;
2513
2535
  * ```js
2514
2536
  * liveboardEmbed.trigger(HostEvent.GetTabs).then((tabDetails) => {
2515
2537
  * console.log(
2516
- * tabDetails // TabDetails of current LB
2538
+ * tabDetails // TabDetails of current Liveboard
2517
2539
  * );
2518
2540
  * })
2519
2541
  * ```
@@ -2561,7 +2583,7 @@ var HostEvent;
2561
2583
  */
2562
2584
  HostEvent["UpdateSageQuery"] = "updateSageQuery";
2563
2585
  /**
2564
- * Get the answer session for a Search or
2586
+ * Get the Answer session for a Search or
2565
2587
  * Liveboard visualization.
2566
2588
  * @example
2567
2589
  * ```js
@@ -2740,6 +2762,7 @@ var Param;
2740
2762
  Param["HostAppUrl"] = "hostAppUrl";
2741
2763
  Param["EnableVizTransformations"] = "enableVizTransform";
2742
2764
  Param["EnableSearchAssist"] = "enableSearchAssist";
2765
+ Param["EnablePendoHelp"] = "enablePendoHelp";
2743
2766
  Param["HideResult"] = "hideResult";
2744
2767
  Param["UseLastSelectedDataSource"] = "useLastSelectedSources";
2745
2768
  Param["Tag"] = "tag";
@@ -2972,9 +2995,10 @@ var Action;
2972
2995
  */
2973
2996
  Action["AddDataPanelObjects"] = "addDataPanelObjects";
2974
2997
  /**
2975
- * Filter configuration options on a Liveboard page.
2976
- * Allows configuring filters on a
2977
- * Liveboard.
2998
+ * The filter configuration options for a Liveboard.
2999
+ * The configuration options are available when adding
3000
+ * filters on a Liveboard.
3001
+ *
2978
3002
  * @example
2979
3003
  * ```js
2980
3004
  * disabledActions: [Action.ConfigureFilter]
@@ -3072,14 +3096,17 @@ var Action;
3072
3096
  * @hidden
3073
3097
  */
3074
3098
  Action["SpotIQFollow"] = "spotIQFollow";
3099
+ /**
3100
+ * The Share action for a Liveboard visualization.
3101
+ */
3075
3102
  Action["ShareViz"] = "shareViz";
3076
3103
  /**
3077
3104
  * @hidden
3078
3105
  */
3079
3106
  Action["ReplaySearch"] = "replaySearch";
3080
3107
  /**
3081
- * The **Show underlying data** menu action on a visualization or
3082
- * Answer page.
3108
+ * The **Show underlying data** menu action on a
3109
+ * visualization or Answer page.
3083
3110
  * Displays detailed information and raw data
3084
3111
  * for a given visualization.
3085
3112
  * @example
@@ -3089,8 +3116,8 @@ var Action;
3089
3116
  */
3090
3117
  Action["ShowUnderlyingData"] = "showUnderlyingData";
3091
3118
  /**
3092
- * The **Download** menu action on Liveboard visualizations
3093
- * and Answers.
3119
+ * The **Download** menu action on Liveboard
3120
+ * visualizations and Answers.
3094
3121
  * Allows downloading a visualization or Answer.
3095
3122
  * @example
3096
3123
  * ```js
@@ -3111,11 +3138,10 @@ var Action;
3111
3138
  /**
3112
3139
  *
3113
3140
  *The **Download PDF** action that downloads a Liveboard,
3114
- *visualization, or Answer as a PDF file.
3115
- *
3141
+ * visualization, or Answer as a PDF file.
3116
3142
  *
3117
- ***NOTE**: The **Download** > **PDF** action is available on
3118
- *visualizations and Answers if the data is in tabular format.
3143
+ * **NOTE**: The **Download** > **PDF** option is available for
3144
+ * tables in visualizations and Answers.
3119
3145
  * @example
3120
3146
  * ```js
3121
3147
  * disabledActions: [Action.DownloadAsPdf]
@@ -3147,9 +3173,11 @@ var Action;
3147
3173
  */
3148
3174
  Action["DownloadTrace"] = "downloadTrace";
3149
3175
  /**
3150
- * The **Export TML** menu action on Liveboard, Answers
3151
- * Worksheets and Data Connections page.
3152
- * Exports an object as a TML file.
3176
+ * The **Export TML** menu action on a Liveboard, Answer, and
3177
+ * the Data Workspace pages for data objects and connections.
3178
+ *
3179
+ * Allows exporting an object as a TML file.
3180
+ *
3153
3181
  * @example
3154
3182
  * ```js
3155
3183
  * disabledActions: [Action.ExportTML]
@@ -3157,7 +3185,8 @@ var Action;
3157
3185
  */
3158
3186
  Action["ExportTML"] = "exportTSL";
3159
3187
  /**
3160
- * The **Import TML** menu action for Liveboards and Answers.
3188
+ * The **Import TML** menu action on the
3189
+ * *Data Workspace* > *Utilities* page.
3161
3190
  * Imports TML representation of ThoughtSpot objects.
3162
3191
  * @example
3163
3192
  * ```js
@@ -3167,7 +3196,7 @@ var Action;
3167
3196
  Action["ImportTML"] = "importTSL";
3168
3197
  /**
3169
3198
  * The **Update TML** menu action for Liveboards and Answers.
3170
- * Update TML representation of ThoughtSpot objects.
3199
+ * Updates TML representation of ThoughtSpot objects.
3171
3200
  * @example
3172
3201
  * ```js
3173
3202
  * disabledActions: [Action.UpdateTML]
@@ -3194,8 +3223,11 @@ var Action;
3194
3223
  */
3195
3224
  Action["Present"] = "present";
3196
3225
  /**
3197
- * The tile resize options in the visualization menu.
3198
- * Allows switching between different preset layouts.
3226
+ * The visualization tile resize option.
3227
+ * Also available via More `...` options menu on a visualization.
3228
+ * Allows resizing visualization tiles and switching
3229
+ * between different preset layout option.
3230
+ *
3199
3231
  * @example
3200
3232
  * ```js
3201
3233
  * disabledActions: [Action.ToggleSize]
@@ -3221,8 +3253,9 @@ var Action;
3221
3253
  */
3222
3254
  Action["EditTitle"] = "editTitle";
3223
3255
  /**
3224
- * The **Delete** menu action on Liveboards and visualizations.
3225
- * Deletes a Liveboard or a visualization from a Liveboard.
3256
+ * The **Delete** action on a Liveboard, *Liveboards* and
3257
+ * *Answers* list pages in full application embedding.
3258
+ *
3226
3259
  * @example
3227
3260
  * ```js
3228
3261
  * disabledActions: [Action.Remove]
@@ -3299,8 +3332,9 @@ var Action;
3299
3332
  */
3300
3333
  Action["Explore"] = "explore";
3301
3334
  /**
3302
- * The action to include data points on a drilled-down Answer
3303
- * or visualization
3335
+ * The contextual menu action to include a specific data point
3336
+ * when drilling down a table or chart on an Answer.
3337
+ *
3304
3338
  * @example
3305
3339
  * ```js
3306
3340
  * disabledActions: [Action.DrillInclude]
@@ -3308,8 +3342,8 @@ var Action;
3308
3342
  */
3309
3343
  Action["DrillInclude"] = "context-menu-item-include";
3310
3344
  /**
3311
- * The action to exclude data points on a drilled-down Answer
3312
- * or visualization
3345
+ * The contextual menu action to exclude a specific data point
3346
+ * when drilling down a table or chart on an Answer.
3313
3347
  * @example
3314
3348
  * ```js
3315
3349
  * disabledActions: [Action.DrillInclude]
@@ -3456,7 +3490,7 @@ var Action;
3456
3490
  * Allows users to manage data sync pipelines to third-party apps.
3457
3491
  * @example
3458
3492
  * ```js
3459
- * disabledActions: [Action.SyncToOtherApps]
3493
+ * disabledActions: [Action.ManagePipelines]
3460
3494
  * ```
3461
3495
  * @version SDK: 1.18.0| ThoughtSpot: 8.10.0.cl, 9.0.1.sw
3462
3496
  */
@@ -3775,7 +3809,7 @@ var Action;
3775
3809
  /**
3776
3810
  * Action ID for the Parent TML action
3777
3811
  * The parent action **TML** must be included to access TML-related options
3778
- * within the cascading menu (specific to the answer page)
3812
+ * within the cascading menu (specific to the Answer page)
3779
3813
  * @example
3780
3814
  * ```js
3781
3815
  * // to include specific TML actions
@@ -3814,8 +3848,10 @@ var Action;
3814
3848
  */
3815
3849
  Action["VerifiedLiveboard"] = "verifiedLiveboard";
3816
3850
  /**
3817
- * The *Ask Sage* action for Answers and visualizations.
3818
- * Allows initiating a Natural Language Search query.
3851
+ * Action ID for the *Ask Sage* In Natural Language Search embed,
3852
+ * *Spotter* in Liveboard, full app, and Spotter embed.
3853
+ *
3854
+ * Allows initiating a conversation with ThoughtSpot AI analyst.
3819
3855
  *
3820
3856
  * @example
3821
3857
  * ```js
@@ -4011,7 +4047,8 @@ var Action;
4011
4047
  */
4012
4048
  Action["DeletePreviousPrompt"] = "deletePreviousPrompt";
4013
4049
  /**
4014
- * Action ID for hide/disable edit of tokens on spotter results.
4050
+ * Action ID for hide or disable editing tokens generated from
4051
+ * Spotter results.
4015
4052
  * @example
4016
4053
  * ```js
4017
4054
  * hiddenAction: [Action.EditTokens]
@@ -6600,13 +6637,18 @@ async function fetchBasicAuthService(thoughtSpotHost, username, password) {
6600
6637
  });
6601
6638
  }
6602
6639
 
6603
- let cachedAuthToken = null;
6640
+ const cacheAuthTokenKey = 'cachedAuthToken';
6641
+ const getCacheAuthToken = () => getValueFromWindow(cacheAuthTokenKey);
6642
+ const storeAuthTokenInCache = (token) => {
6643
+ storeValueInWindow(cacheAuthTokenKey, token);
6644
+ };
6604
6645
  // This method can be used to get the authToken using the embedConfig
6605
6646
  /**
6606
6647
  *
6607
6648
  * @param embedConfig
6608
6649
  */
6609
6650
  async function getAuthenticationToken(embedConfig) {
6651
+ const cachedAuthToken = getCacheAuthToken();
6610
6652
  // Since we don't have token validation enabled , we cannot tell if the
6611
6653
  // cached token is valid or not. So we will always fetch a new token.
6612
6654
  if (cachedAuthToken && !embedConfig.disableTokenVerification) {
@@ -6637,10 +6679,11 @@ async function getAuthenticationToken(embedConfig) {
6637
6679
  logger$3.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e.message}`);
6638
6680
  throw e;
6639
6681
  }
6640
- cachedAuthToken = authToken;
6682
+ storeAuthTokenInCache(authToken);
6641
6683
  return authToken;
6642
6684
  }
6643
6685
  const validateAuthToken = async (embedConfig, authToken, suppressAlert) => {
6686
+ const cachedAuthToken = getCacheAuthToken();
6644
6687
  if (embedConfig.disableTokenVerification) {
6645
6688
  logger$3.info('Token verification is disabled. Assuming token is valid.');
6646
6689
  return true;
@@ -6674,17 +6717,17 @@ const validateAuthToken = async (embedConfig, authToken, suppressAlert) => {
6674
6717
  * @group Authentication / Init
6675
6718
  */
6676
6719
  const resetCachedAuthToken = () => {
6677
- cachedAuthToken = null;
6720
+ storeAuthTokenInCache(null);
6678
6721
  };
6679
6722
 
6680
- let config = {};
6723
+ const configKey = 'embedConfig';
6681
6724
  /**
6682
6725
  * Gets the configuration embed was initialized with.
6683
6726
  * @returns {@link EmbedConfig} The configuration embed was initialized with.
6684
6727
  * @version SDK: 1.19.0 | ThoughtSpot: *
6685
6728
  * @group Global methods
6686
6729
  */
6687
- const getEmbedConfig = () => config;
6730
+ const getEmbedConfig = () => getValueFromWindow(configKey) || {};
6688
6731
  /**
6689
6732
  * Sets the configuration embed was initialized with.
6690
6733
  * And returns the new configuration.
@@ -6693,8 +6736,8 @@ const getEmbedConfig = () => config;
6693
6736
  * @group Global methods
6694
6737
  */
6695
6738
  const setEmbedConfig = (newConfig) => {
6696
- config = newConfig;
6697
- return newConfig;
6739
+ storeValueInWindow(configKey, newConfig);
6740
+ return getValueFromWindow(configKey);
6698
6741
  };
6699
6742
 
6700
6743
  /**
@@ -7302,7 +7345,7 @@ class AnswerService {
7302
7345
  async getTML() {
7303
7346
  const { object } = await this.executeQuery(getAnswerTML, {});
7304
7347
  const edoc = object[0].edoc;
7305
- const YAML = await import('./index-CR5u7BMC.js');
7348
+ const YAML = await import('./index-BJx3m5_V.js');
7306
7349
  const parsedDoc = YAML.parse(edoc);
7307
7350
  return {
7308
7351
  answer: {
@@ -14220,9 +14263,10 @@ async function getPreauthInfo(allowCache = true) {
14220
14263
  return preauthInfo;
14221
14264
  }
14222
14265
  /**
14223
- * Returns the session info object and caches it for future use.
14266
+ * Returns the cached session info object and caches it for future use.
14224
14267
  * Once fetched the session info object is cached and returned from the cache on
14225
14268
  * subsequent calls.
14269
+ * This cache is cleared when inti is called OR resetCachedSessionInfo is called.
14226
14270
  * @example ```js
14227
14271
  * const sessionInfo = await getSessionInfo();
14228
14272
  * console.log(sessionInfo);
@@ -14265,7 +14309,45 @@ const getSessionDetails = (sessionInfoResp) => {
14265
14309
  clusterName: sessionInfoResp.configInfo.selfClusterName,
14266
14310
  ...sessionInfoResp,
14267
14311
  };
14268
- };
14312
+ };
14313
+ /**
14314
+ * Resets the cached session info object and forces a new fetch on the next call.
14315
+ * @example ```js
14316
+ * resetCachedSessionInfo();
14317
+ * const sessionInfo = await getSessionInfo();
14318
+ * console.log(sessionInfo);
14319
+ * ```
14320
+ * @version SDK: 1.28.3 | ThoughtSpot: *
14321
+ * @returns {void}
14322
+ */
14323
+ function resetCachedSessionInfo() {
14324
+ sessionInfo = null;
14325
+ }
14326
+ /**
14327
+ * Resets the cached preauth info object and forces a new fetch on the next call.
14328
+ * @example ```js
14329
+ * resetCachedPreauthInfo();
14330
+ * const preauthInfo = await getPreauthInfo();
14331
+ * console.log(preauthInfo);
14332
+ * ```
14333
+ * @version SDK: 1.28.3 | ThoughtSpot: *
14334
+ * @returns {void}
14335
+ */
14336
+ function resetCachedPreauthInfo() {
14337
+ preauthInfo = null;
14338
+ }
14339
+
14340
+ /**
14341
+ * This function resets all the services that are cached in the SDK.
14342
+ * This is to be called when the user logs out of the application and also
14343
+ * when init is called again.
14344
+ * @version SDK: 1.30.2 | ThoughtSpot: *
14345
+ */
14346
+ function resetAllCachedServices() {
14347
+ resetCachedAuthToken();
14348
+ resetCachedSessionInfo();
14349
+ resetCachedPreauthInfo();
14350
+ }
14269
14351
 
14270
14352
  // eslint-disable-next-line import/no-mutable-exports
14271
14353
  let loggedInStatus = false;
@@ -14627,7 +14709,7 @@ const doOIDCAuth = async (embedConfig) => {
14627
14709
  const logout$1 = async (embedConfig) => {
14628
14710
  const { thoughtSpotHost } = embedConfig;
14629
14711
  await fetchLogoutService(thoughtSpotHost);
14630
- resetCachedAuthToken();
14712
+ resetAllCachedServices();
14631
14713
  const thoughtspotIframes = document.querySelectorAll("[data-ts-iframe='true']");
14632
14714
  if (thoughtspotIframes === null || thoughtspotIframes === void 0 ? void 0 : thoughtspotIframes.length) {
14633
14715
  thoughtspotIframes.forEach((el) => {
@@ -14792,7 +14874,7 @@ function backwardCompat(embedConfig) {
14792
14874
  const init = (embedConfig) => {
14793
14875
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
14794
14876
  sanity(embedConfig);
14795
- resetCachedAuthToken();
14877
+ resetAllCachedServices();
14796
14878
  embedConfig = setEmbedConfig(backwardCompat({
14797
14879
  ...CONFIG_DEFAULTS,
14798
14880
  ...embedConfig,
@@ -15085,7 +15167,7 @@ function processEventData(type, e, thoughtSpotHost, containerEl) {
15085
15167
  return e;
15086
15168
  }
15087
15169
 
15088
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.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={".":{"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","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",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",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",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.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/lodash":"^4.17.0","@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",crypto:"^1.0.1","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","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"6.3.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:"4.24.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",vite:"^5.3.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$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 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};
15170
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.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={".":{"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","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",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",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",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.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/lodash":"^4.17.0","@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",crypto:"^1.0.1","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","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"6.3.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:"4.24.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",vite:"^5.3.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$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 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};
15089
15171
 
15090
15172
  /**
15091
15173
  * Reloads the ThoughtSpot iframe.
@@ -16512,7 +16594,7 @@ class AppEmbed extends V1Embed {
16512
16594
  getEmbedParams() {
16513
16595
  const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
16514
16596
  /* eslint-disable-next-line max-len */
16515
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, } = this.viewConfig;
16597
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, } = this.viewConfig;
16516
16598
  let params = {};
16517
16599
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
16518
16600
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
@@ -16557,6 +16639,9 @@ class AppEmbed extends V1Embed {
16557
16639
  if (homePageSearchBarMode) {
16558
16640
  params[Param.HomePageSearchBarMode] = homePageSearchBarMode;
16559
16641
  }
16642
+ if (enablePendoHelp !== undefined) {
16643
+ params[Param.EnablePendoHelp] = enablePendoHelp;
16644
+ }
16560
16645
  params[Param.DataPanelV2Enabled] = dataPanelV2;
16561
16646
  params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
16562
16647
  params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;