@thoughtspot/visual-embed-sdk 1.49.3 → 1.50.1

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 (241) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/authToken.spec.js +5 -0
  3. package/cjs/src/authToken.spec.js.map +1 -1
  4. package/cjs/src/css-variables.d.ts +59 -0
  5. package/cjs/src/css-variables.d.ts.map +1 -1
  6. package/cjs/src/embed/app.d.ts +31 -2
  7. package/cjs/src/embed/app.d.ts.map +1 -1
  8. package/cjs/src/embed/app.js +19 -2
  9. package/cjs/src/embed/app.js.map +1 -1
  10. package/cjs/src/embed/app.spec.js +112 -2
  11. package/cjs/src/embed/app.spec.js.map +1 -1
  12. package/cjs/src/embed/conversation.d.ts +38 -0
  13. package/cjs/src/embed/conversation.d.ts.map +1 -1
  14. package/cjs/src/embed/conversation.js +12 -2
  15. package/cjs/src/embed/conversation.js.map +1 -1
  16. package/cjs/src/embed/conversation.spec.js +53 -0
  17. package/cjs/src/embed/conversation.spec.js.map +1 -1
  18. package/cjs/src/embed/embedConfig.spec.d.ts +2 -0
  19. package/cjs/src/embed/embedConfig.spec.d.ts.map +1 -0
  20. package/cjs/src/embed/embedConfig.spec.js +74 -0
  21. package/cjs/src/embed/embedConfig.spec.js.map +1 -0
  22. package/cjs/src/embed/events.spec.js +593 -0
  23. package/cjs/src/embed/events.spec.js.map +1 -1
  24. package/cjs/src/embed/host-events.spec.d.ts +2 -0
  25. package/cjs/src/embed/host-events.spec.d.ts.map +1 -0
  26. package/cjs/src/embed/host-events.spec.js +1325 -0
  27. package/cjs/src/embed/host-events.spec.js.map +1 -0
  28. package/cjs/src/embed/hostEventClient/contracts.d.ts +36 -14
  29. package/cjs/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  30. package/cjs/src/embed/hostEventClient/contracts.js +10 -1
  31. package/cjs/src/embed/hostEventClient/contracts.js.map +1 -1
  32. package/cjs/src/embed/hostEventClient/host-event-client.d.ts +1 -0
  33. package/cjs/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  34. package/cjs/src/embed/hostEventClient/host-event-client.js +8 -0
  35. package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
  36. package/cjs/src/embed/hostEventClient/host-event-client.spec.js +209 -0
  37. package/cjs/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
  38. package/cjs/src/embed/hostEventClient/utils.d.ts +2 -0
  39. package/cjs/src/embed/hostEventClient/utils.d.ts.map +1 -1
  40. package/cjs/src/embed/hostEventClient/utils.js +32 -2
  41. package/cjs/src/embed/hostEventClient/utils.js.map +1 -1
  42. package/cjs/src/embed/hostEventClient/utils.spec.js +178 -0
  43. package/cjs/src/embed/hostEventClient/utils.spec.js.map +1 -1
  44. package/cjs/src/embed/liveboard.d.ts +6 -0
  45. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  46. package/cjs/src/embed/liveboard.js.map +1 -1
  47. package/cjs/src/embed/spotter-viz-utils.d.ts +34 -0
  48. package/cjs/src/embed/spotter-viz-utils.d.ts.map +1 -1
  49. package/cjs/src/embed/spotter-viz-utils.js.map +1 -1
  50. package/cjs/src/embed/spotter-viz-utils.spec.js +17 -0
  51. package/cjs/src/embed/spotter-viz-utils.spec.js.map +1 -1
  52. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  53. package/cjs/src/embed/ts-embed.js +14 -7
  54. package/cjs/src/embed/ts-embed.js.map +1 -1
  55. package/cjs/src/embed/ts-embed.spec.js +146 -0
  56. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  57. package/cjs/src/errors.d.ts +1 -0
  58. package/cjs/src/errors.d.ts.map +1 -1
  59. package/cjs/src/errors.js +1 -0
  60. package/cjs/src/errors.js.map +1 -1
  61. package/cjs/src/index.d.ts +2 -2
  62. package/cjs/src/index.d.ts.map +1 -1
  63. package/cjs/src/index.js +3 -2
  64. package/cjs/src/index.js.map +1 -1
  65. package/cjs/src/mixpanel-service.spec.js +14 -0
  66. package/cjs/src/mixpanel-service.spec.js.map +1 -1
  67. package/cjs/src/react/util.spec.js +251 -0
  68. package/cjs/src/react/util.spec.js.map +1 -1
  69. package/cjs/src/types.d.ts +212 -8
  70. package/cjs/src/types.d.ts.map +1 -1
  71. package/cjs/src/types.js +185 -3
  72. package/cjs/src/types.js.map +1 -1
  73. package/cjs/src/utils/custom-actions.spec.js +26 -0
  74. package/cjs/src/utils/custom-actions.spec.js.map +1 -1
  75. package/cjs/src/utils/processData.spec.js +123 -0
  76. package/cjs/src/utils/processData.spec.js.map +1 -1
  77. package/cjs/src/utils/processTrigger.spec.js +61 -0
  78. package/cjs/src/utils/processTrigger.spec.js.map +1 -1
  79. package/cjs/src/utils/reporting.spec.js +21 -0
  80. package/cjs/src/utils/reporting.spec.js.map +1 -1
  81. package/cjs/src/utils/sessionInfoService.spec.d.ts +2 -0
  82. package/cjs/src/utils/sessionInfoService.spec.d.ts.map +1 -0
  83. package/cjs/src/utils/sessionInfoService.spec.js +130 -0
  84. package/cjs/src/utils/sessionInfoService.spec.js.map +1 -0
  85. package/cjs/src/utils.spec.js +158 -0
  86. package/cjs/src/utils.spec.js.map +1 -1
  87. package/dist/{index-DsSQndIB.js → index-fCne7kmU.js} +1 -1
  88. package/dist/src/css-variables.d.ts +59 -0
  89. package/dist/src/css-variables.d.ts.map +1 -1
  90. package/dist/src/embed/app.d.ts +31 -2
  91. package/dist/src/embed/app.d.ts.map +1 -1
  92. package/dist/src/embed/conversation.d.ts +38 -0
  93. package/dist/src/embed/conversation.d.ts.map +1 -1
  94. package/dist/src/embed/embedConfig.spec.d.ts +2 -0
  95. package/dist/src/embed/embedConfig.spec.d.ts.map +1 -0
  96. package/dist/src/embed/host-events.spec.d.ts +2 -0
  97. package/dist/src/embed/host-events.spec.d.ts.map +1 -0
  98. package/dist/src/embed/hostEventClient/contracts.d.ts +36 -14
  99. package/dist/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  100. package/dist/src/embed/hostEventClient/host-event-client.d.ts +1 -0
  101. package/dist/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  102. package/dist/src/embed/hostEventClient/utils.d.ts +2 -0
  103. package/dist/src/embed/hostEventClient/utils.d.ts.map +1 -1
  104. package/dist/src/embed/liveboard.d.ts +6 -0
  105. package/dist/src/embed/liveboard.d.ts.map +1 -1
  106. package/dist/src/embed/spotter-viz-utils.d.ts +34 -0
  107. package/dist/src/embed/spotter-viz-utils.d.ts.map +1 -1
  108. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  109. package/dist/src/errors.d.ts +1 -0
  110. package/dist/src/errors.d.ts.map +1 -1
  111. package/dist/src/index.d.ts +2 -2
  112. package/dist/src/index.d.ts.map +1 -1
  113. package/dist/src/types.d.ts +212 -8
  114. package/dist/src/types.d.ts.map +1 -1
  115. package/dist/src/utils/sessionInfoService.spec.d.ts +2 -0
  116. package/dist/src/utils/sessionInfoService.spec.d.ts.map +1 -0
  117. package/dist/tsembed-react.es.js +482 -86
  118. package/dist/tsembed-react.js +481 -85
  119. package/dist/tsembed.es.js +483 -87
  120. package/dist/tsembed.js +481 -85
  121. package/dist/visual-embed-sdk-react-full.d.ts +407 -23
  122. package/dist/visual-embed-sdk-react.d.ts +407 -23
  123. package/dist/visual-embed-sdk.d.ts +411 -23
  124. package/lib/package.json +1 -1
  125. package/lib/src/authToken.spec.js +5 -0
  126. package/lib/src/authToken.spec.js.map +1 -1
  127. package/lib/src/css-variables.d.ts +59 -0
  128. package/lib/src/css-variables.d.ts.map +1 -1
  129. package/lib/src/embed/app.d.ts +31 -2
  130. package/lib/src/embed/app.d.ts.map +1 -1
  131. package/lib/src/embed/app.js +19 -2
  132. package/lib/src/embed/app.js.map +1 -1
  133. package/lib/src/embed/app.spec.js +112 -2
  134. package/lib/src/embed/app.spec.js.map +1 -1
  135. package/lib/src/embed/conversation.d.ts +38 -0
  136. package/lib/src/embed/conversation.d.ts.map +1 -1
  137. package/lib/src/embed/conversation.js +11 -1
  138. package/lib/src/embed/conversation.js.map +1 -1
  139. package/lib/src/embed/conversation.spec.js +54 -1
  140. package/lib/src/embed/conversation.spec.js.map +1 -1
  141. package/lib/src/embed/embedConfig.spec.d.ts +2 -0
  142. package/lib/src/embed/embedConfig.spec.d.ts.map +1 -0
  143. package/lib/src/embed/embedConfig.spec.js +72 -0
  144. package/lib/src/embed/embedConfig.spec.js.map +1 -0
  145. package/lib/src/embed/events.spec.js +593 -0
  146. package/lib/src/embed/events.spec.js.map +1 -1
  147. package/lib/src/embed/host-events.spec.d.ts +2 -0
  148. package/lib/src/embed/host-events.spec.d.ts.map +1 -0
  149. package/lib/src/embed/host-events.spec.js +1322 -0
  150. package/lib/src/embed/host-events.spec.js.map +1 -0
  151. package/lib/src/embed/hostEventClient/contracts.d.ts +36 -14
  152. package/lib/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  153. package/lib/src/embed/hostEventClient/contracts.js +9 -0
  154. package/lib/src/embed/hostEventClient/contracts.js.map +1 -1
  155. package/lib/src/embed/hostEventClient/host-event-client.d.ts +1 -0
  156. package/lib/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  157. package/lib/src/embed/hostEventClient/host-event-client.js +9 -1
  158. package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
  159. package/lib/src/embed/hostEventClient/host-event-client.spec.js +209 -0
  160. package/lib/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
  161. package/lib/src/embed/hostEventClient/utils.d.ts +2 -0
  162. package/lib/src/embed/hostEventClient/utils.d.ts.map +1 -1
  163. package/lib/src/embed/hostEventClient/utils.js +28 -1
  164. package/lib/src/embed/hostEventClient/utils.js.map +1 -1
  165. package/lib/src/embed/hostEventClient/utils.spec.js +179 -1
  166. package/lib/src/embed/hostEventClient/utils.spec.js.map +1 -1
  167. package/lib/src/embed/liveboard.d.ts +6 -0
  168. package/lib/src/embed/liveboard.d.ts.map +1 -1
  169. package/lib/src/embed/liveboard.js.map +1 -1
  170. package/lib/src/embed/spotter-viz-utils.d.ts +34 -0
  171. package/lib/src/embed/spotter-viz-utils.d.ts.map +1 -1
  172. package/lib/src/embed/spotter-viz-utils.js.map +1 -1
  173. package/lib/src/embed/spotter-viz-utils.spec.js +17 -0
  174. package/lib/src/embed/spotter-viz-utils.spec.js.map +1 -1
  175. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  176. package/lib/src/embed/ts-embed.js +14 -7
  177. package/lib/src/embed/ts-embed.js.map +1 -1
  178. package/lib/src/embed/ts-embed.spec.js +146 -0
  179. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  180. package/lib/src/errors.d.ts +1 -0
  181. package/lib/src/errors.d.ts.map +1 -1
  182. package/lib/src/errors.js +1 -0
  183. package/lib/src/errors.js.map +1 -1
  184. package/lib/src/index.d.ts +2 -2
  185. package/lib/src/index.d.ts.map +1 -1
  186. package/lib/src/index.js +2 -2
  187. package/lib/src/index.js.map +1 -1
  188. package/lib/src/mixpanel-service.spec.js +14 -0
  189. package/lib/src/mixpanel-service.spec.js.map +1 -1
  190. package/lib/src/react/util.spec.js +251 -0
  191. package/lib/src/react/util.spec.js.map +1 -1
  192. package/lib/src/types.d.ts +212 -8
  193. package/lib/src/types.d.ts.map +1 -1
  194. package/lib/src/types.js +185 -3
  195. package/lib/src/types.js.map +1 -1
  196. package/lib/src/utils/custom-actions.spec.js +26 -0
  197. package/lib/src/utils/custom-actions.spec.js.map +1 -1
  198. package/lib/src/utils/processData.spec.js +123 -0
  199. package/lib/src/utils/processData.spec.js.map +1 -1
  200. package/lib/src/utils/processTrigger.spec.js +61 -0
  201. package/lib/src/utils/processTrigger.spec.js.map +1 -1
  202. package/lib/src/utils/reporting.spec.js +21 -0
  203. package/lib/src/utils/reporting.spec.js.map +1 -1
  204. package/lib/src/utils/sessionInfoService.spec.d.ts +2 -0
  205. package/lib/src/utils/sessionInfoService.spec.d.ts.map +1 -0
  206. package/lib/src/utils/sessionInfoService.spec.js +127 -0
  207. package/lib/src/utils/sessionInfoService.spec.js.map +1 -0
  208. package/lib/src/utils.spec.js +159 -1
  209. package/lib/src/utils.spec.js.map +1 -1
  210. package/lib/src/visual-embed-sdk.d.ts +411 -23
  211. package/package.json +1 -1
  212. package/src/authToken.spec.ts +6 -0
  213. package/src/css-variables.ts +73 -0
  214. package/src/embed/app.spec.ts +155 -2
  215. package/src/embed/app.ts +44 -2
  216. package/src/embed/conversation.spec.ts +64 -1
  217. package/src/embed/conversation.ts +41 -0
  218. package/src/embed/embedConfig.spec.ts +79 -0
  219. package/src/embed/events.spec.ts +705 -1
  220. package/src/embed/host-events.spec.ts +1759 -0
  221. package/src/embed/hostEventClient/contracts.ts +41 -14
  222. package/src/embed/hostEventClient/host-event-client.spec.ts +326 -0
  223. package/src/embed/hostEventClient/host-event-client.ts +15 -0
  224. package/src/embed/hostEventClient/utils.spec.ts +204 -0
  225. package/src/embed/hostEventClient/utils.ts +37 -10
  226. package/src/embed/liveboard.ts +6 -0
  227. package/src/embed/spotter-viz-utils.spec.ts +17 -0
  228. package/src/embed/spotter-viz-utils.ts +34 -0
  229. package/src/embed/ts-embed.spec.ts +186 -0
  230. package/src/embed/ts-embed.ts +12 -4
  231. package/src/errors.ts +1 -0
  232. package/src/index.ts +2 -1
  233. package/src/mixpanel-service.spec.ts +15 -0
  234. package/src/react/util.spec.tsx +255 -0
  235. package/src/types.ts +215 -6
  236. package/src/utils/custom-actions.spec.ts +28 -0
  237. package/src/utils/processData.spec.ts +129 -0
  238. package/src/utils/processTrigger.spec.ts +91 -0
  239. package/src/utils/reporting.spec.ts +27 -0
  240. package/src/utils/sessionInfoService.spec.ts +151 -0
  241. package/src/utils.spec.ts +195 -0
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.49.3 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.50.1 */
2
2
  'use client';
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
@@ -257,6 +257,13 @@ var HomeLeftNavItem;
257
257
  * @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
258
258
  */
259
259
  HomeLeftNavItem["Favorites"] = "favorites";
260
+ /**
261
+ * The *Collections* menu option in
262
+ * the *Insights* left navigation panel.
263
+ * Shown when collections are enabled on the cluster.
264
+ * @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
265
+ */
266
+ HomeLeftNavItem["Collections"] = "collections";
260
267
  })(HomeLeftNavItem || (HomeLeftNavItem = {}));
261
268
  /**
262
269
  * A map of the supported runtime filter operations
@@ -1799,6 +1806,30 @@ var EmbedEvent;
1799
1806
  * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
1800
1807
  */
1801
1808
  EmbedEvent["SpotterConversationSelected"] = "spotterConversationSelected";
1809
+ /**
1810
+ * Emitted when the Spotter agent finishes streaming/rendering a response.
1811
+ * Includes the conversation and message identifiers so the host app can
1812
+ * fetch the full conversation history via the REST API if needed.
1813
+ *
1814
+ * The payload data has the shape `{ convId: string, messageId: string }`.
1815
+ *
1816
+ * Works with SpotterEmbed as well as AppEmbed (when Spotter is reached
1817
+ * inside the full application).
1818
+ * @example
1819
+ * ```js
1820
+ * spotterEmbed.on(EmbedEvent.SpotterResponseComplete, (payload) => {
1821
+ * console.log('Spotter response complete', payload);
1822
+ * })
1823
+ * ```
1824
+ * @example
1825
+ * ```js
1826
+ * appEmbed.on(EmbedEvent.SpotterResponseComplete, (payload) => {
1827
+ * console.log('Spotter response complete', payload);
1828
+ * })
1829
+ * ```
1830
+ * @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.9.0.cl
1831
+ */
1832
+ EmbedEvent["SpotterResponseComplete"] = "spotterResponseComplete";
1802
1833
  /**
1803
1834
  * @hidden
1804
1835
  * Emitted when the auth token is about to get expired and needs to be refreshed.
@@ -1823,10 +1854,11 @@ var EmbedEvent;
1823
1854
  */
1824
1855
  EmbedEvent["EmbedPageContextChanged"] = "EmbedPageContextChanged";
1825
1856
  /**
1826
- * Represents a special embed event that is triggered whenever any host event is subscribed.
1857
+ * Represents a special embed event that is triggered whenever any host event is
1858
+ * subscribed.
1827
1859
  *
1828
- * You can listen to this event when you need to dispatch a host event during load or render,
1829
- * particularly in situations where timing issues may occur.
1860
+ * You can listen to this event when you need to dispatch a host event during load or
1861
+ * render, particularly in situations where timing issues may occur.
1830
1862
  *
1831
1863
  * @example
1832
1864
  * ```js
@@ -3363,6 +3395,14 @@ var HostEvent;
3363
3395
  /**
3364
3396
  * Get details of filters applied on the Liveboard.
3365
3397
  * Returns arrays containing Liveboard filter and runtime filter elements.
3398
+ * Each Liveboard filter may include an `applicability` attribute
3399
+ * indicating the scope of the filter. It contains a `level`
3400
+ * (`LIVEBOARD`, `TAB`, or `GROUP`) and, when `level` is `TAB` or
3401
+ * `GROUP`, a `targetId` with the GUID of the target. At `LIVEBOARD`
3402
+ * level there is no `targetId`, since the filter applies to the
3403
+ * whole Liveboard.
3404
+ * The `applicability` attribute is available from SDK: 1.51.0 |
3405
+ * ThoughtSpot: 26.10.0.cl.
3366
3406
  * @example
3367
3407
  * ```js
3368
3408
  * const data = await liveboardEmbed.trigger(HostEvent.GetFilters);
@@ -3402,6 +3442,16 @@ var HostEvent;
3402
3442
  *
3403
3443
  * `type` - To update filters for date time, specify the date format type.
3404
3444
  * For more information and examples, see link:https://developers.thoughtspot.com/docs/embed-liveboard#_date_filters[Date filters].
3445
+ *
3446
+ * `applicability` - Optional. Scopes the filter to a specific target,
3447
+ * for example, a single Liveboard tab. Available from SDK: 1.51.0 |
3448
+ * ThoughtSpot: 26.10.0.cl. Includes the following attributes:
3449
+ *
3450
+ * - `level`: The scope of the filter: `LIVEBOARD`, `TAB`, or `GROUP`.
3451
+ * - `targetId`: The GUID of the target, for example, the tab GUID.
3452
+ * Required when `level` is `TAB` or `GROUP`. Do not pass it when
3453
+ * `level` is `LIVEBOARD`, since the filter applies to the whole
3454
+ * Liveboard.
3405
3455
  * @example
3406
3456
  * ```js
3407
3457
  *
@@ -3478,6 +3528,21 @@ var HostEvent;
3478
3528
  * }
3479
3529
  * }, ContextType.Liveboard);
3480
3530
  * ```
3531
+ * @example
3532
+ * ```js
3533
+ * // Scope the filter to a specific Liveboard tab
3534
+ * liveboardEmbed.trigger(HostEvent.UpdateFilters, {
3535
+ * filter: {
3536
+ * column: "item type",
3537
+ * oper: "IN",
3538
+ * values: ["bags", "shirts"],
3539
+ * applicability: {
3540
+ * level: "TAB",
3541
+ * targetId: "e0836cad-4fdf-42d4-bd97-567a6b2a6058"
3542
+ * }
3543
+ * }
3544
+ * });
3545
+ * ```
3481
3546
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
3482
3547
  */
3483
3548
  HostEvent["UpdateFilters"] = "updateFilters";
@@ -3629,6 +3694,15 @@ var HostEvent;
3629
3694
  * - `name`: Name of the parameter.
3630
3695
  * - `value`: The value to set for the parameter.
3631
3696
  * - `isVisibleToUser`: Optional. To control the visibility of the parameter chip.
3697
+ * - `applicability`: Optional. Scopes the parameter to a specific target,
3698
+ * for example, a single Liveboard tab. Available from SDK: 1.51.0 |
3699
+ * ThoughtSpot: 26.10.0.cl. Includes the following attributes:
3700
+ *
3701
+ * - `level`: The scope of the parameter: `LIVEBOARD`, `TAB`, or `GROUP`.
3702
+ * - `targetId`: The GUID of the target, for example, the tab GUID.
3703
+ * Required when `level` is `TAB` or `GROUP`. Do not pass it when
3704
+ * `level` is `LIVEBOARD`, since the parameter applies to the whole
3705
+ * Liveboard.
3632
3706
  *
3633
3707
  * @example
3634
3708
  * ```js
@@ -3640,6 +3714,18 @@ var HostEvent;
3640
3714
  * ```
3641
3715
  * @example
3642
3716
  * ```js
3717
+ * // Scope the parameter to a specific Liveboard tab
3718
+ * liveboardEmbed.trigger(HostEvent.UpdateParameters, [{
3719
+ * name: "Integer Range Param",
3720
+ * value: 10,
3721
+ * applicability: {
3722
+ * level: "TAB",
3723
+ * targetId: "e0836cad-4fdf-42d4-bd97-567a6b2a6058"
3724
+ * }
3725
+ * }])
3726
+ * ```
3727
+ * @example
3728
+ * ```js
3643
3729
  * // Update parameters from liveboard context
3644
3730
  * import { ContextType } from '@thoughtspot/visual-embed-sdk';
3645
3731
  * liveboardEmbed.trigger(HostEvent.UpdateParameters, [{
@@ -3653,6 +3739,14 @@ var HostEvent;
3653
3739
  HostEvent["UpdateParameters"] = "UpdateParameters";
3654
3740
  /**
3655
3741
  * Triggers GetParameters to fetch the runtime Parameters.
3742
+ * Each parameter may include an `applicability` attribute
3743
+ * indicating the scope of the parameter. It contains a `level`
3744
+ * (`LIVEBOARD`, `TAB`, or `GROUP`) and, when `level` is `TAB` or
3745
+ * `GROUP`, a `targetId` with the GUID of the target. At `LIVEBOARD`
3746
+ * level there is no `targetId`, since the parameter applies to the
3747
+ * whole Liveboard.
3748
+ * The `applicability` attribute is available from SDK: 1.51.0 |
3749
+ * ThoughtSpot: 26.10.0.cl.
3656
3750
  * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
3657
3751
  * ```js
3658
3752
  * liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
@@ -4066,6 +4160,24 @@ var HostEvent;
4066
4160
  * ```
4067
4161
  */
4068
4162
  HostEvent["InitSpotterVizConversation"] = "InitSpotterVizConversation";
4163
+ /**
4164
+ * Opens the SpotterViz panel.
4165
+ * @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
4166
+ * @example
4167
+ * ```js
4168
+ * liveboardEmbed.trigger(HostEvent.OpenSpotterVizPanel);
4169
+ * ```
4170
+ */
4171
+ HostEvent["OpenSpotterVizPanel"] = "OpenSpotterVizPanel";
4172
+ /**
4173
+ * Closes the SpotterViz panel.
4174
+ * @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
4175
+ * @example
4176
+ * ```js
4177
+ * liveboardEmbed.trigger(HostEvent.CloseSpotterVizPanel);
4178
+ * ```
4179
+ */
4180
+ HostEvent["CloseSpotterVizPanel"] = "CloseSpotterVizPanel";
4069
4181
  /**
4070
4182
  * Clears browser cache and fetches new data for liveboard ChartViz Containers.
4071
4183
  * Requires `enableLiveboardDataCache` to be enabled.
@@ -4217,6 +4329,7 @@ var Param;
4217
4329
  Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
4218
4330
  Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
4219
4331
  Param["OverrideOrgId"] = "orgId";
4332
+ Param["OverrideHistoryState"] = "overrideHistoryState";
4220
4333
  Param["OauthPollingInterval"] = "oAuthPollingInterval";
4221
4334
  Param["IsForceRedirect"] = "isForceRedirect";
4222
4335
  Param["DataSourceId"] = "dataSourceId";
@@ -4237,6 +4350,7 @@ var Param;
4237
4350
  Param["isLinkParametersEnabled"] = "isLinkParametersEnabled";
4238
4351
  Param["EnablePastConversationsSidebar"] = "enablePastConversationsSidebar";
4239
4352
  Param["UpdatedSpotterChatPrompt"] = "updatedSpotterChatPrompt";
4353
+ Param["DefaultQueryMode"] = "defaultQueryMode";
4240
4354
  Param["EnableStopAnswerGenerationEmbed"] = "enableStopAnswerGenerationEmbed";
4241
4355
  Param["SpotterSidebarTitle"] = "spotterSidebarTitle";
4242
4356
  Param["SpotterSidebarDefaultExpanded"] = "spotterSidebarDefaultExpanded";
@@ -5990,6 +6104,72 @@ var Action;
5990
6104
  * @version SDK: 1.49.0 | ThoughtSpot Cloud: 26.6.0.cl
5991
6105
  */
5992
6106
  Action["RefreshLiveboardBrowserCache"] = "refreshLiveboardBrowserCache";
6107
+ /**
6108
+ * Controls visibility and disable state of the share action
6109
+ * in the Spotter Analyst interface.
6110
+ * @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.8.0.cl
6111
+ * @example
6112
+ * ```js
6113
+ * hiddenActions: [Action.SpotterAnalystShare]
6114
+ * disabledActions: [Action.SpotterAnalystShare]
6115
+ * ```
6116
+ */
6117
+ Action["SpotterAnalystShare"] = "spotterAnalystShare";
6118
+ /**
6119
+ * Controls visibility and disable state of the edit action
6120
+ * in the Spotter Analyst interface.
6121
+ * @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.8.0.cl
6122
+ * @example
6123
+ * ```js
6124
+ * hiddenActions: [Action.SpotterAnalystEdit]
6125
+ * disabledActions: [Action.SpotterAnalystEdit]
6126
+ * ```
6127
+ */
6128
+ Action["SpotterAnalystEdit"] = "spotterAnalystEdit";
6129
+ /**
6130
+ * Controls visibility and disable state of the create action
6131
+ * in the Spotter Analyst interface.
6132
+ * @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.8.0.cl
6133
+ * @example
6134
+ * ```js
6135
+ * hiddenActions: [Action.SpotterAnalystCreate]
6136
+ * disabledActions: [Action.SpotterAnalystCreate]
6137
+ * ```
6138
+ */
6139
+ Action["SpotterAnalystCreate"] = "spotterAnalystCreate";
6140
+ /**
6141
+ * Controls visibility and disable state of the delete action
6142
+ * in the Spotter Analyst interface.
6143
+ * @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.8.0.cl
6144
+ * @example
6145
+ * ```js
6146
+ * hiddenActions: [Action.SpotterAnalystDelete]
6147
+ * disabledActions: [Action.SpotterAnalystDelete]
6148
+ * ```
6149
+ */
6150
+ Action["SpotterAnalystDelete"] = "spotterAnalystDelete";
6151
+ /**
6152
+ * Controls visibility and disable state of the make a copy action
6153
+ * in the Spotter Analyst interface.
6154
+ * @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.8.0.cl
6155
+ * @example
6156
+ * ```js
6157
+ * hiddenActions: [Action.SpotterAnalystMakeACopy]
6158
+ * disabledActions: [Action.SpotterAnalystMakeACopy]
6159
+ * ```
6160
+ */
6161
+ Action["SpotterAnalystMakeACopy"] = "spotterAnalystMakeACopy";
6162
+ /**
6163
+ * Controls visibility and disable state of the sidebar
6164
+ * in the Spotter Analyst interface.
6165
+ * @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.8.0.cl
6166
+ * @example
6167
+ * ```js
6168
+ * hiddenActions: [Action.SpotterAnalystSidebar]
6169
+ * disabledActions: [Action.SpotterAnalystSidebar]
6170
+ * ```
6171
+ */
6172
+ Action["SpotterAnalystSidebar"] = "spotterAnalystSidebar";
5993
6173
  })(Action || (Action = {}));
5994
6174
  var PrefetchFeatures;
5995
6175
  (function (PrefetchFeatures) {
@@ -6277,6 +6457,8 @@ var EmbedErrorCodes;
6277
6457
  EmbedErrorCodes["UPDATEFILTERS_INVALID_PAYLOAD"] = "UPDATEFILTERS_INVALID_PAYLOAD";
6278
6458
  /** DrillDown payload is invalid - missing or malformed points */
6279
6459
  EmbedErrorCodes["DRILLDOWN_INVALID_PAYLOAD"] = "DRILLDOWN_INVALID_PAYLOAD";
6460
+ /** UpdateParameters payload is invalid - malformed applicability */
6461
+ EmbedErrorCodes["UPDATEPARAMETERS_INVALID_PAYLOAD"] = "UPDATEPARAMETERS_INVALID_PAYLOAD";
6280
6462
  })(EmbedErrorCodes || (EmbedErrorCodes = {}));
6281
6463
  /**
6282
6464
  * Context types for specifying the page context when triggering host events.
@@ -6455,7 +6637,7 @@ var TableContentDensity;
6455
6637
  TableContentDensity["Compact"] = "COMPACT";
6456
6638
  })(TableContentDensity || (TableContentDensity = {}));
6457
6639
 
6458
- var version$1="1.49.3";var pkg = {version:version$1};
6640
+ var version$1="1.50.1";var pkg = {version:version$1};
6459
6641
 
6460
6642
  const { version } = pkg;
6461
6643
 
@@ -6631,6 +6813,7 @@ const ERROR_MESSAGE = {
6631
6813
  INVALID_SPOTTER_DOCUMENTATION_URL: 'Invalid spotterDocumentationUrl. Please provide a valid http or https URL.',
6632
6814
  UPDATEFILTERS_INVALID_PAYLOAD: 'UpdateFilters requires a valid filter or filters array. Expected: { filter: { column, oper, values } } or { filters: [{ column, oper, values }, ...] }',
6633
6815
  DRILLDOWN_INVALID_PAYLOAD: 'DrillDown requires a valid points object. Expected: { points: { clickedPoint?, selectedPoints? }, autoDrillDown?, vizId? }',
6816
+ UPDATEPARAMETERS_INVALID_PAYLOAD: 'UpdateParameters received an invalid applicability. Expected: { level: LIVEBOARD | TAB | GROUP, targetId } where targetId is required for TAB and GROUP levels',
6634
6817
  };
6635
6818
  const CUSTOM_ACTIONS_ERROR_MESSAGE = {
6636
6819
  INVALID_ACTION_OBJECT: 'Custom Action Validation Error: Invalid action object provided',
@@ -6749,7 +6932,7 @@ const getCssDimension = (value) => {
6749
6932
  * @returns true if the value is a valid CSS margin value, false otherwise
6750
6933
  */
6751
6934
  const isValidCssMargin = (value) => {
6752
- if (isUndefined(value)) {
6935
+ if (isUndefined$1(value)) {
6753
6936
  return false;
6754
6937
  }
6755
6938
  if (typeof value !== 'string') {
@@ -6958,7 +7141,7 @@ const removeStyleProperties = (element, styleProperties) => {
6958
7141
  element.style.removeProperty(styleProperty);
6959
7142
  });
6960
7143
  };
6961
- const isUndefined = (value) => value === undefined;
7144
+ const isUndefined$1 = (value) => value === undefined;
6962
7145
  // Return if the value is a string, double or boolean.
6963
7146
  const getTypeFromValue = (value) => {
6964
7147
  if (typeof value === 'string') {
@@ -7263,7 +7446,7 @@ const setParamIfDefined = (queryParams, param, value, asBoolean = false) => {
7263
7446
  };
7264
7447
 
7265
7448
  /** Used for built-in method references. */
7266
- var objectProto$c = Object.prototype;
7449
+ var objectProto$d = Object.prototype;
7267
7450
 
7268
7451
  /**
7269
7452
  * Checks if `value` is likely a prototype object.
@@ -7274,7 +7457,7 @@ var objectProto$c = Object.prototype;
7274
7457
  */
7275
7458
  function isPrototype(value) {
7276
7459
  var Ctor = value && value.constructor,
7277
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$c;
7460
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$d;
7278
7461
 
7279
7462
  return value === proto;
7280
7463
  }
@@ -7303,10 +7486,10 @@ var nativeKeys = _overArg(Object.keys, Object);
7303
7486
  var _nativeKeys = nativeKeys;
7304
7487
 
7305
7488
  /** Used for built-in method references. */
7306
- var objectProto$b = Object.prototype;
7489
+ var objectProto$c = Object.prototype;
7307
7490
 
7308
7491
  /** Used to check objects for own properties. */
7309
- var hasOwnProperty$a = objectProto$b.hasOwnProperty;
7492
+ var hasOwnProperty$b = objectProto$c.hasOwnProperty;
7310
7493
 
7311
7494
  /**
7312
7495
  * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
@@ -7321,7 +7504,7 @@ function baseKeys(object) {
7321
7504
  }
7322
7505
  var result = [];
7323
7506
  for (var key in Object(object)) {
7324
- if (hasOwnProperty$a.call(object, key) && key != 'constructor') {
7507
+ if (hasOwnProperty$b.call(object, key) && key != 'constructor') {
7325
7508
  result.push(key);
7326
7509
  }
7327
7510
  }
@@ -7357,17 +7540,17 @@ var Symbol$1 = _root.Symbol;
7357
7540
  var _Symbol = Symbol$1;
7358
7541
 
7359
7542
  /** Used for built-in method references. */
7360
- var objectProto$a = Object.prototype;
7543
+ var objectProto$b = Object.prototype;
7361
7544
 
7362
7545
  /** Used to check objects for own properties. */
7363
- var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
7546
+ var hasOwnProperty$a = objectProto$b.hasOwnProperty;
7364
7547
 
7365
7548
  /**
7366
7549
  * Used to resolve the
7367
7550
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
7368
7551
  * of values.
7369
7552
  */
7370
- var nativeObjectToString$1 = objectProto$a.toString;
7553
+ var nativeObjectToString$1 = objectProto$b.toString;
7371
7554
 
7372
7555
  /** Built-in value references. */
7373
7556
  var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
@@ -7380,7 +7563,7 @@ var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
7380
7563
  * @returns {string} Returns the raw `toStringTag`.
7381
7564
  */
7382
7565
  function getRawTag(value) {
7383
- var isOwn = hasOwnProperty$9.call(value, symToStringTag$1),
7566
+ var isOwn = hasOwnProperty$a.call(value, symToStringTag$1),
7384
7567
  tag = value[symToStringTag$1];
7385
7568
 
7386
7569
  try {
@@ -7402,14 +7585,14 @@ function getRawTag(value) {
7402
7585
  var _getRawTag = getRawTag;
7403
7586
 
7404
7587
  /** Used for built-in method references. */
7405
- var objectProto$9 = Object.prototype;
7588
+ var objectProto$a = Object.prototype;
7406
7589
 
7407
7590
  /**
7408
7591
  * Used to resolve the
7409
7592
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
7410
7593
  * of values.
7411
7594
  */
7412
- var nativeObjectToString = objectProto$9.toString;
7595
+ var nativeObjectToString = objectProto$a.toString;
7413
7596
 
7414
7597
  /**
7415
7598
  * Converts `value` to a string using `Object.prototype.toString`.
@@ -7541,10 +7724,10 @@ function isMasked(func) {
7541
7724
  var _isMasked = isMasked;
7542
7725
 
7543
7726
  /** Used for built-in method references. */
7544
- var funcProto$1 = Function.prototype;
7727
+ var funcProto$2 = Function.prototype;
7545
7728
 
7546
7729
  /** Used to resolve the decompiled source of functions. */
7547
- var funcToString$1 = funcProto$1.toString;
7730
+ var funcToString$2 = funcProto$2.toString;
7548
7731
 
7549
7732
  /**
7550
7733
  * Converts `func` to its source code.
@@ -7556,7 +7739,7 @@ var funcToString$1 = funcProto$1.toString;
7556
7739
  function toSource(func) {
7557
7740
  if (func != null) {
7558
7741
  try {
7559
- return funcToString$1.call(func);
7742
+ return funcToString$2.call(func);
7560
7743
  } catch (e) {}
7561
7744
  try {
7562
7745
  return (func + '');
@@ -7577,18 +7760,18 @@ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
7577
7760
  var reIsHostCtor = /^\[object .+?Constructor\]$/;
7578
7761
 
7579
7762
  /** Used for built-in method references. */
7580
- var funcProto = Function.prototype,
7581
- objectProto$8 = Object.prototype;
7763
+ var funcProto$1 = Function.prototype,
7764
+ objectProto$9 = Object.prototype;
7582
7765
 
7583
7766
  /** Used to resolve the decompiled source of functions. */
7584
- var funcToString = funcProto.toString;
7767
+ var funcToString$1 = funcProto$1.toString;
7585
7768
 
7586
7769
  /** Used to check objects for own properties. */
7587
- var hasOwnProperty$8 = objectProto$8.hasOwnProperty;
7770
+ var hasOwnProperty$9 = objectProto$9.hasOwnProperty;
7588
7771
 
7589
7772
  /** Used to detect if a method is native. */
7590
7773
  var reIsNative = RegExp('^' +
7591
- funcToString.call(hasOwnProperty$8).replace(reRegExpChar, '\\$&')
7774
+ funcToString$1.call(hasOwnProperty$9).replace(reRegExpChar, '\\$&')
7592
7775
  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
7593
7776
  );
7594
7777
 
@@ -7666,7 +7849,7 @@ var _WeakMap = WeakMap;
7666
7849
 
7667
7850
  /** `Object#toString` result references. */
7668
7851
  var mapTag$3 = '[object Map]',
7669
- objectTag$2 = '[object Object]',
7852
+ objectTag$3 = '[object Object]',
7670
7853
  promiseTag = '[object Promise]',
7671
7854
  setTag$3 = '[object Set]',
7672
7855
  weakMapTag$1 = '[object WeakMap]';
@@ -7697,7 +7880,7 @@ if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag$2) ||
7697
7880
  (_WeakMap && getTag(new _WeakMap) != weakMapTag$1)) {
7698
7881
  getTag = function(value) {
7699
7882
  var result = _baseGetTag(value),
7700
- Ctor = result == objectTag$2 ? value.constructor : undefined,
7883
+ Ctor = result == objectTag$3 ? value.constructor : undefined,
7701
7884
  ctorString = Ctor ? _toSource(Ctor) : '';
7702
7885
 
7703
7886
  if (ctorString) {
@@ -7762,13 +7945,13 @@ function baseIsArguments(value) {
7762
7945
  var _baseIsArguments = baseIsArguments;
7763
7946
 
7764
7947
  /** Used for built-in method references. */
7765
- var objectProto$7 = Object.prototype;
7948
+ var objectProto$8 = Object.prototype;
7766
7949
 
7767
7950
  /** Used to check objects for own properties. */
7768
- var hasOwnProperty$7 = objectProto$7.hasOwnProperty;
7951
+ var hasOwnProperty$8 = objectProto$8.hasOwnProperty;
7769
7952
 
7770
7953
  /** Built-in value references. */
7771
- var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
7954
+ var propertyIsEnumerable$1 = objectProto$8.propertyIsEnumerable;
7772
7955
 
7773
7956
  /**
7774
7957
  * Checks if `value` is likely an `arguments` object.
@@ -7789,7 +7972,7 @@ var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
7789
7972
  * // => false
7790
7973
  */
7791
7974
  var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
7792
- return isObjectLike_1(value) && hasOwnProperty$7.call(value, 'callee') &&
7975
+ return isObjectLike_1(value) && hasOwnProperty$8.call(value, 'callee') &&
7793
7976
  !propertyIsEnumerable$1.call(value, 'callee');
7794
7977
  };
7795
7978
 
@@ -7955,10 +8138,10 @@ var argsTag$1 = '[object Arguments]',
7955
8138
  funcTag = '[object Function]',
7956
8139
  mapTag$2 = '[object Map]',
7957
8140
  numberTag$1 = '[object Number]',
7958
- objectTag$1 = '[object Object]',
8141
+ objectTag$2 = '[object Object]',
7959
8142
  regexpTag$1 = '[object RegExp]',
7960
8143
  setTag$2 = '[object Set]',
7961
- stringTag$1 = '[object String]',
8144
+ stringTag$2 = '[object String]',
7962
8145
  weakMapTag = '[object WeakMap]';
7963
8146
 
7964
8147
  var arrayBufferTag$1 = '[object ArrayBuffer]',
@@ -7985,8 +8168,8 @@ typedArrayTags[arrayBufferTag$1] = typedArrayTags[boolTag$2] =
7985
8168
  typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag$1] =
7986
8169
  typedArrayTags[errorTag$1] = typedArrayTags[funcTag] =
7987
8170
  typedArrayTags[mapTag$2] = typedArrayTags[numberTag$1] =
7988
- typedArrayTags[objectTag$1] = typedArrayTags[regexpTag$1] =
7989
- typedArrayTags[setTag$2] = typedArrayTags[stringTag$1] =
8171
+ typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$1] =
8172
+ typedArrayTags[setTag$2] = typedArrayTags[stringTag$2] =
7990
8173
  typedArrayTags[weakMapTag] = false;
7991
8174
 
7992
8175
  /**
@@ -8078,10 +8261,10 @@ var mapTag$1 = '[object Map]',
8078
8261
  setTag$1 = '[object Set]';
8079
8262
 
8080
8263
  /** Used for built-in method references. */
8081
- var objectProto$6 = Object.prototype;
8264
+ var objectProto$7 = Object.prototype;
8082
8265
 
8083
8266
  /** Used to check objects for own properties. */
8084
- var hasOwnProperty$6 = objectProto$6.hasOwnProperty;
8267
+ var hasOwnProperty$7 = objectProto$7.hasOwnProperty;
8085
8268
 
8086
8269
  /**
8087
8270
  * Checks if `value` is an empty object, collection, map, or set.
@@ -8133,7 +8316,7 @@ function isEmpty$1(value) {
8133
8316
  return !_baseKeys(value).length;
8134
8317
  }
8135
8318
  for (var key in value) {
8136
- if (hasOwnProperty$6.call(value, key)) {
8319
+ if (hasOwnProperty$7.call(value, key)) {
8137
8320
  return false;
8138
8321
  }
8139
8322
  }
@@ -8142,6 +8325,15 @@ function isEmpty$1(value) {
8142
8325
 
8143
8326
  var isEmpty_1 = isEmpty$1;
8144
8327
 
8328
+ /**
8329
+ * Levels at which a filter or parameter can be applied.
8330
+ */
8331
+ var ApplicabilityLevel;
8332
+ (function (ApplicabilityLevel) {
8333
+ ApplicabilityLevel["Liveboard"] = "LIVEBOARD";
8334
+ ApplicabilityLevel["Tab"] = "TAB";
8335
+ ApplicabilityLevel["Group"] = "GROUP";
8336
+ })(ApplicabilityLevel || (ApplicabilityLevel = {}));
8145
8337
  var UIPassthroughEvent;
8146
8338
  (function (UIPassthroughEvent) {
8147
8339
  UIPassthroughEvent["PinAnswerToLiveboard"] = "addVizToPinboard";
@@ -9094,7 +9286,7 @@ class AnswerService {
9094
9286
  async getTML() {
9095
9287
  const { object } = await this.executeQuery(getAnswerTML, {});
9096
9288
  const edoc = object[0].edoc;
9097
- const YAML = await import('./index-DsSQndIB.js');
9289
+ const YAML = await import('./index-fCne7kmU.js');
9098
9290
  const parsedDoc = YAML.parse(edoc);
9099
9291
  return {
9100
9292
  answer: {
@@ -9379,10 +9571,10 @@ var _hashDelete = hashDelete;
9379
9571
  var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
9380
9572
 
9381
9573
  /** Used for built-in method references. */
9382
- var objectProto$5 = Object.prototype;
9574
+ var objectProto$6 = Object.prototype;
9383
9575
 
9384
9576
  /** Used to check objects for own properties. */
9385
- var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
9577
+ var hasOwnProperty$6 = objectProto$6.hasOwnProperty;
9386
9578
 
9387
9579
  /**
9388
9580
  * Gets the hash value for `key`.
@@ -9399,16 +9591,16 @@ function hashGet(key) {
9399
9591
  var result = data[key];
9400
9592
  return result === HASH_UNDEFINED$2 ? undefined : result;
9401
9593
  }
9402
- return hasOwnProperty$5.call(data, key) ? data[key] : undefined;
9594
+ return hasOwnProperty$6.call(data, key) ? data[key] : undefined;
9403
9595
  }
9404
9596
 
9405
9597
  var _hashGet = hashGet;
9406
9598
 
9407
9599
  /** Used for built-in method references. */
9408
- var objectProto$4 = Object.prototype;
9600
+ var objectProto$5 = Object.prototype;
9409
9601
 
9410
9602
  /** Used to check objects for own properties. */
9411
- var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
9603
+ var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
9412
9604
 
9413
9605
  /**
9414
9606
  * Checks if a hash value for `key` exists.
@@ -9421,7 +9613,7 @@ var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
9421
9613
  */
9422
9614
  function hashHas(key) {
9423
9615
  var data = this.__data__;
9424
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$4.call(data, key);
9616
+ return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$5.call(data, key);
9425
9617
  }
9426
9618
 
9427
9619
  var _hashHas = hashHas;
@@ -10396,7 +10588,7 @@ var boolTag$1 = '[object Boolean]',
10396
10588
  numberTag = '[object Number]',
10397
10589
  regexpTag = '[object RegExp]',
10398
10590
  setTag = '[object Set]',
10399
- stringTag = '[object String]',
10591
+ stringTag$1 = '[object String]',
10400
10592
  symbolTag = '[object Symbol]';
10401
10593
 
10402
10594
  var arrayBufferTag = '[object ArrayBuffer]',
@@ -10451,7 +10643,7 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
10451
10643
  return object.name == other.name && object.message == other.message;
10452
10644
 
10453
10645
  case regexpTag:
10454
- case stringTag:
10646
+ case stringTag$1:
10455
10647
  // Coerce regexes to strings and treat strings, primitives and objects,
10456
10648
  // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
10457
10649
  // for more details.
@@ -10559,10 +10751,10 @@ function stubArray() {
10559
10751
  var stubArray_1 = stubArray;
10560
10752
 
10561
10753
  /** Used for built-in method references. */
10562
- var objectProto$3 = Object.prototype;
10754
+ var objectProto$4 = Object.prototype;
10563
10755
 
10564
10756
  /** Built-in value references. */
10565
- var propertyIsEnumerable = objectProto$3.propertyIsEnumerable;
10757
+ var propertyIsEnumerable = objectProto$4.propertyIsEnumerable;
10566
10758
 
10567
10759
  /* Built-in method references for those with the same name as other `lodash` methods. */
10568
10760
  var nativeGetSymbols = Object.getOwnPropertySymbols;
@@ -10634,10 +10826,10 @@ function isIndex(value, length) {
10634
10826
  var _isIndex = isIndex;
10635
10827
 
10636
10828
  /** Used for built-in method references. */
10637
- var objectProto$2 = Object.prototype;
10829
+ var objectProto$3 = Object.prototype;
10638
10830
 
10639
10831
  /** Used to check objects for own properties. */
10640
- var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
10832
+ var hasOwnProperty$4 = objectProto$3.hasOwnProperty;
10641
10833
 
10642
10834
  /**
10643
10835
  * Creates an array of the enumerable property names of the array-like `value`.
@@ -10657,7 +10849,7 @@ function arrayLikeKeys(value, inherited) {
10657
10849
  length = result.length;
10658
10850
 
10659
10851
  for (var key in value) {
10660
- if ((inherited || hasOwnProperty$3.call(value, key)) &&
10852
+ if ((inherited || hasOwnProperty$4.call(value, key)) &&
10661
10853
  !(skipIndexes && (
10662
10854
  // Safari 9 has enumerable `arguments.length` in strict mode.
10663
10855
  key == 'length' ||
@@ -10727,10 +10919,10 @@ var _getAllKeys = getAllKeys;
10727
10919
  var COMPARE_PARTIAL_FLAG$3 = 1;
10728
10920
 
10729
10921
  /** Used for built-in method references. */
10730
- var objectProto$1 = Object.prototype;
10922
+ var objectProto$2 = Object.prototype;
10731
10923
 
10732
10924
  /** Used to check objects for own properties. */
10733
- var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
10925
+ var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
10734
10926
 
10735
10927
  /**
10736
10928
  * A specialized version of `baseIsEqualDeep` for objects with support for
@@ -10758,7 +10950,7 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
10758
10950
  var index = objLength;
10759
10951
  while (index--) {
10760
10952
  var key = objProps[index];
10761
- if (!(isPartial ? key in other : hasOwnProperty$2.call(other, key))) {
10953
+ if (!(isPartial ? key in other : hasOwnProperty$3.call(other, key))) {
10762
10954
  return false;
10763
10955
  }
10764
10956
  }
@@ -10818,13 +11010,13 @@ var COMPARE_PARTIAL_FLAG$2 = 1;
10818
11010
  /** `Object#toString` result references. */
10819
11011
  var argsTag = '[object Arguments]',
10820
11012
  arrayTag = '[object Array]',
10821
- objectTag = '[object Object]';
11013
+ objectTag$1 = '[object Object]';
10822
11014
 
10823
11015
  /** Used for built-in method references. */
10824
- var objectProto = Object.prototype;
11016
+ var objectProto$1 = Object.prototype;
10825
11017
 
10826
11018
  /** Used to check objects for own properties. */
10827
- var hasOwnProperty$1 = objectProto.hasOwnProperty;
11019
+ var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
10828
11020
 
10829
11021
  /**
10830
11022
  * A specialized version of `baseIsEqual` for arrays and objects which performs
@@ -10846,11 +11038,11 @@ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
10846
11038
  objTag = objIsArr ? arrayTag : _getTag(object),
10847
11039
  othTag = othIsArr ? arrayTag : _getTag(other);
10848
11040
 
10849
- objTag = objTag == argsTag ? objectTag : objTag;
10850
- othTag = othTag == argsTag ? objectTag : othTag;
11041
+ objTag = objTag == argsTag ? objectTag$1 : objTag;
11042
+ othTag = othTag == argsTag ? objectTag$1 : othTag;
10851
11043
 
10852
- var objIsObj = objTag == objectTag,
10853
- othIsObj = othTag == objectTag,
11044
+ var objIsObj = objTag == objectTag$1,
11045
+ othIsObj = othTag == objectTag$1,
10854
11046
  isSameTag = objTag == othTag;
10855
11047
 
10856
11048
  if (isSameTag && isBuffer_1(object)) {
@@ -10867,8 +11059,8 @@ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
10867
11059
  : _equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
10868
11060
  }
10869
11061
  if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
10870
- var objIsWrapped = objIsObj && hasOwnProperty$1.call(object, '__wrapped__'),
10871
- othIsWrapped = othIsObj && hasOwnProperty$1.call(other, '__wrapped__');
11062
+ var objIsWrapped = objIsObj && hasOwnProperty$2.call(object, '__wrapped__'),
11063
+ othIsWrapped = othIsObj && hasOwnProperty$2.call(other, '__wrapped__');
10872
11064
 
10873
11065
  if (objIsWrapped || othIsWrapped) {
10874
11066
  var objUnwrapped = objIsWrapped ? object.value() : object,
@@ -12079,7 +12271,7 @@ var FuncProto = Function.prototype;
12079
12271
  var ObjProto = Object.prototype;
12080
12272
  var slice = ArrayProto.slice;
12081
12273
  var toString = ObjProto.toString;
12082
- var hasOwnProperty = ObjProto.hasOwnProperty;
12274
+ var hasOwnProperty$1 = ObjProto.hasOwnProperty;
12083
12275
  var windowConsole = window$1.console;
12084
12276
  var navigator = window$1.navigator;
12085
12277
  var document$1 = window$1.document;
@@ -12216,7 +12408,7 @@ _.each = function(obj, iterator, context) {
12216
12408
  }
12217
12409
  } else {
12218
12410
  for (var key in obj) {
12219
- if (hasOwnProperty.call(obj, key)) {
12411
+ if (hasOwnProperty$1.call(obj, key)) {
12220
12412
  if (iterator.call(context, obj[key], key, obj) === breaker) {
12221
12413
  return;
12222
12414
  }
@@ -12252,7 +12444,7 @@ _.isFunction = function(f) {
12252
12444
  };
12253
12445
 
12254
12446
  _.isArguments = function(obj) {
12255
- return !!(obj && hasOwnProperty.call(obj, 'callee'));
12447
+ return !!(obj && hasOwnProperty$1.call(obj, 'callee'));
12256
12448
  };
12257
12449
 
12258
12450
  _.toArray = function(iterable) {
@@ -12340,7 +12532,7 @@ _.isObject = function(obj) {
12340
12532
  _.isEmptyObject = function(obj) {
12341
12533
  if (_.isObject(obj)) {
12342
12534
  for (var key in obj) {
12343
- if (hasOwnProperty.call(obj, key)) {
12535
+ if (hasOwnProperty$1.call(obj, key)) {
12344
12536
  return false;
12345
12537
  }
12346
12538
  }
@@ -12532,7 +12724,7 @@ _.JSONEncode = (function() {
12532
12724
 
12533
12725
  // Iterate through all of the keys in the object.
12534
12726
  for (k in value) {
12535
- if (hasOwnProperty.call(value, k)) {
12727
+ if (hasOwnProperty$1.call(value, k)) {
12536
12728
  v = str(k, value);
12537
12729
  if (v) {
12538
12730
  partial.push(quote(k) + (gap ? ': ' : ':') + v);
@@ -19953,6 +20145,154 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
19953
20145
  return eventData;
19954
20146
  }
19955
20147
 
20148
+ /**
20149
+ * Checks if `value` is `null` or `undefined`.
20150
+ *
20151
+ * @static
20152
+ * @memberOf _
20153
+ * @since 4.0.0
20154
+ * @category Lang
20155
+ * @param {*} value The value to check.
20156
+ * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
20157
+ * @example
20158
+ *
20159
+ * _.isNil(null);
20160
+ * // => true
20161
+ *
20162
+ * _.isNil(void 0);
20163
+ * // => true
20164
+ *
20165
+ * _.isNil(NaN);
20166
+ * // => false
20167
+ */
20168
+ function isNil(value) {
20169
+ return value == null;
20170
+ }
20171
+
20172
+ var isNil_1 = isNil;
20173
+
20174
+ /** Built-in value references. */
20175
+ var getPrototype = _overArg(Object.getPrototypeOf, Object);
20176
+
20177
+ var _getPrototype = getPrototype;
20178
+
20179
+ /** `Object#toString` result references. */
20180
+ var objectTag = '[object Object]';
20181
+
20182
+ /** Used for built-in method references. */
20183
+ var funcProto = Function.prototype,
20184
+ objectProto = Object.prototype;
20185
+
20186
+ /** Used to resolve the decompiled source of functions. */
20187
+ var funcToString = funcProto.toString;
20188
+
20189
+ /** Used to check objects for own properties. */
20190
+ var hasOwnProperty = objectProto.hasOwnProperty;
20191
+
20192
+ /** Used to infer the `Object` constructor. */
20193
+ var objectCtorString = funcToString.call(Object);
20194
+
20195
+ /**
20196
+ * Checks if `value` is a plain object, that is, an object created by the
20197
+ * `Object` constructor or one with a `[[Prototype]]` of `null`.
20198
+ *
20199
+ * @static
20200
+ * @memberOf _
20201
+ * @since 0.8.0
20202
+ * @category Lang
20203
+ * @param {*} value The value to check.
20204
+ * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
20205
+ * @example
20206
+ *
20207
+ * function Foo() {
20208
+ * this.a = 1;
20209
+ * }
20210
+ *
20211
+ * _.isPlainObject(new Foo);
20212
+ * // => false
20213
+ *
20214
+ * _.isPlainObject([1, 2, 3]);
20215
+ * // => false
20216
+ *
20217
+ * _.isPlainObject({ 'x': 0, 'y': 0 });
20218
+ * // => true
20219
+ *
20220
+ * _.isPlainObject(Object.create(null));
20221
+ * // => true
20222
+ */
20223
+ function isPlainObject(value) {
20224
+ if (!isObjectLike_1(value) || _baseGetTag(value) != objectTag) {
20225
+ return false;
20226
+ }
20227
+ var proto = _getPrototype(value);
20228
+ if (proto === null) {
20229
+ return true;
20230
+ }
20231
+ var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
20232
+ return typeof Ctor == 'function' && Ctor instanceof Ctor &&
20233
+ funcToString.call(Ctor) == objectCtorString;
20234
+ }
20235
+
20236
+ var isPlainObject_1 = isPlainObject;
20237
+
20238
+ /** `Object#toString` result references. */
20239
+ var stringTag = '[object String]';
20240
+
20241
+ /**
20242
+ * Checks if `value` is classified as a `String` primitive or object.
20243
+ *
20244
+ * @static
20245
+ * @since 0.1.0
20246
+ * @memberOf _
20247
+ * @category Lang
20248
+ * @param {*} value The value to check.
20249
+ * @returns {boolean} Returns `true` if `value` is a string, else `false`.
20250
+ * @example
20251
+ *
20252
+ * _.isString('abc');
20253
+ * // => true
20254
+ *
20255
+ * _.isString(1);
20256
+ * // => false
20257
+ */
20258
+ function isString(value) {
20259
+ return typeof value == 'string' ||
20260
+ (!isArray_1(value) && isObjectLike_1(value) && _baseGetTag(value) == stringTag);
20261
+ }
20262
+
20263
+ var isString_1 = isString;
20264
+
20265
+ /**
20266
+ * Checks if `value` is `undefined`.
20267
+ *
20268
+ * @static
20269
+ * @since 0.1.0
20270
+ * @memberOf _
20271
+ * @category Lang
20272
+ * @param {*} value The value to check.
20273
+ * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
20274
+ * @example
20275
+ *
20276
+ * _.isUndefined(void 0);
20277
+ * // => true
20278
+ *
20279
+ * _.isUndefined(null);
20280
+ * // => false
20281
+ */
20282
+ function isUndefined(value) {
20283
+ return value === undefined;
20284
+ }
20285
+
20286
+ var isUndefined_1 = isUndefined;
20287
+
20288
+ const isValidApplicability = (a) => {
20289
+ if (isUndefined_1(a))
20290
+ return true;
20291
+ // targetId is not required at LIVEBOARD level, since the filter applies to the whole Liveboard
20292
+ return isPlainObject_1(a)
20293
+ && Object.values(ApplicabilityLevel).includes(a.level)
20294
+ && (a.level === ApplicabilityLevel.Liveboard || (isString_1(a.targetId) && a.targetId.trim().length > 0));
20295
+ };
19956
20296
  function isValidUpdateFiltersPayload(payload) {
19957
20297
  if (!payload)
19958
20298
  return false;
@@ -19961,12 +20301,23 @@ function isValidUpdateFiltersPayload(payload) {
19961
20301
  const hasOperator = typeof f.oper === 'string' || typeof f.operator === 'string';
19962
20302
  const hasValues = Array.isArray(f.values);
19963
20303
  const validType = !f.type || typeof f.type === 'string';
19964
- return hasColumn && hasOperator && hasValues && validType;
20304
+ return hasColumn && hasOperator && hasValues && validType && isValidApplicability(f.applicability);
19965
20305
  };
19966
20306
  const hasValidFilter = payload.filter && isValidFilter(payload.filter);
19967
20307
  const hasValidFilters = Array.isArray(payload.filters) && payload.filters.length > 0 && payload.filters.every(isValidFilter);
19968
20308
  return !!(hasValidFilter || hasValidFilters);
19969
20309
  }
20310
+ function isValidUpdateParametersPayload(payload) {
20311
+ // Only validates the applicability of each parameter (null treated as absent); the rest is forwarded as-is for backward compatibility.
20312
+ if (!Array.isArray(payload))
20313
+ return true;
20314
+ return payload.every((p) => {
20315
+ if (!isPlainObject_1(p))
20316
+ return true;
20317
+ const { applicability } = p;
20318
+ return isNil_1(applicability) || isValidApplicability(applicability);
20319
+ });
20320
+ }
19970
20321
  function isValidDrillDownPayload(payload) {
19971
20322
  if (!payload)
19972
20323
  return false;
@@ -19997,6 +20348,9 @@ function throwUpdateFiltersValidationError() {
19997
20348
  }
19998
20349
  function throwDrillDownValidationError() {
19999
20350
  createValidationError(ERROR_MESSAGE.DRILLDOWN_INVALID_PAYLOAD);
20351
+ }
20352
+ function throwUpdateParametersValidationError() {
20353
+ createValidationError(ERROR_MESSAGE.UPDATEPARAMETERS_INVALID_PAYLOAD);
20000
20354
  }
20001
20355
 
20002
20356
  /**
@@ -20028,6 +20382,7 @@ class HostEventClient {
20028
20382
  [HostEvent.Pin]: (p, c) => this.handlePinEvent(p, c),
20029
20383
  [HostEvent.SaveAnswer]: (p, c) => this.handleSaveAnswerEvent(p, c),
20030
20384
  [HostEvent.UpdateFilters]: (p, c) => this.handleUpdateFiltersEvent(p, c),
20385
+ [HostEvent.UpdateParameters]: (p, c) => this.handleUpdateParametersEvent(p, c),
20031
20386
  [HostEvent.DrillDown]: (p, c) => this.handleDrillDownEvent(p, c),
20032
20387
  };
20033
20388
  }
@@ -20152,6 +20507,13 @@ class HostEventClient {
20152
20507
  }
20153
20508
  return this.handleHostEventWithParam(UIPassthroughEvent.UpdateFilters, payload, context);
20154
20509
  }
20510
+ handleUpdateParametersEvent(payload, context) {
20511
+ if (!isValidUpdateParametersPayload(payload)) {
20512
+ throwUpdateParametersValidationError();
20513
+ }
20514
+ // UpdateParameters has no UI passthrough contract; dispatch over the legacy channel
20515
+ return this.hostEventFallback(HostEvent.UpdateParameters, payload, context);
20516
+ }
20155
20517
  handleDrillDownEvent(payload, context) {
20156
20518
  if (!isValidDrillDownPayload(payload)) {
20157
20519
  throwDrillDownValidationError();
@@ -20937,7 +21299,7 @@ class TsEmbed {
20937
21299
  if (this.embedConfig.currencyFormat) {
20938
21300
  queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
20939
21301
  }
20940
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, enableLinkOverridesV2, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, primaryAction, } = this.viewConfig;
21302
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, enableLinkOverridesV2, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, overrideHistoryState, exposeTranslationIDs, primaryAction, } = this.viewConfig;
20941
21303
  const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
20942
21304
  const additionalFlags = {
20943
21305
  ...additionalFlagsFromInit,
@@ -21025,6 +21387,9 @@ class TsEmbed {
21025
21387
  if (overrideOrgId !== undefined) {
21026
21388
  queryParams[Param.OverrideOrgId] = overrideOrgId;
21027
21389
  }
21390
+ if (overrideHistoryState !== undefined) {
21391
+ queryParams[Param.OverrideHistoryState] = overrideHistoryState;
21392
+ }
21028
21393
  if (this.isPreAuthCacheEnabled()) {
21029
21394
  queryParams[Param.preAuthCache] = true;
21030
21395
  }
@@ -21957,7 +22322,7 @@ class TsEmbed {
21957
22322
  * wrapper to overlay it.
21958
22323
  */
21959
22324
  async showPreRender() {
21960
- var _a;
22325
+ var _a, _b;
21961
22326
  if (this.shouldWaitForRenderPromise)
21962
22327
  await this.isReadyForRenderPromise;
21963
22328
  if (!this.viewConfig.preRenderId) {
@@ -21981,10 +22346,14 @@ class TsEmbed {
21981
22346
  }
21982
22347
  }
21983
22348
  const placeHolderId = this.getPreRenderIds().placeHolder;
21984
- const oldEle = this.hostElement.querySelector(`#${placeHolderId}`);
21985
- if (oldEle) {
21986
- this.hostElement.removeChild(oldEle);
21987
- }
22349
+ // Remove any stale placeholder from a previous cycle. It is located
22350
+ // via a subtree-wide querySelector, so it may be nested deeper than a
22351
+ // direct child (E.g.: with fullHeight the host app can wrap it). Use
22352
+ // Element.remove() — which detaches from whatever the real parent is —
22353
+ // rather than hostElement.removeChild(), which throws NotFoundError
22354
+ // when the match is not a direct child. Mirrors the wrapper/child
22355
+ // cleanup in createPreRenderWrapper()/createPreRenderChild().
22356
+ (_a = this.hostElement.querySelector(`#${placeHolderId}`)) === null || _a === void 0 ? void 0 : _a.remove();
21988
22357
  this.hostElement.appendChild(this.insertedDomEl);
21989
22358
  this.syncPreRenderStyle();
21990
22359
  const customContainer = this.preRenderContainerEl && this.preRenderContainerEl !== document.body
@@ -21995,7 +22364,7 @@ class TsEmbed {
21995
22364
  customContainer.addEventListener('scroll', this.containerScrollListener);
21996
22365
  }
21997
22366
  if (!this.viewConfig.doNotTrackPreRenderSize) {
21998
- const observeTarget = (_a = this.insertedDomEl) !== null && _a !== void 0 ? _a : this.hostElement;
22367
+ const observeTarget = (_b = this.insertedDomEl) !== null && _b !== void 0 ? _b : this.hostElement;
21999
22368
  this.resizeObserver = new ResizeObserver((entries) => {
22000
22369
  entries.forEach((entry) => {
22001
22370
  if (entry.target === observeTarget) {
@@ -22327,6 +22696,10 @@ var Page;
22327
22696
  * Monitor Alerts Page
22328
22697
  */
22329
22698
  Page["Monitor"] = "monitor";
22699
+ /**
22700
+ * Collections listing page
22701
+ */
22702
+ Page["Collections"] = "collections";
22330
22703
  })(Page || (Page = {}));
22331
22704
  /**
22332
22705
  * Define the initial state of column custom group accordions
@@ -22497,7 +22870,7 @@ class AppEmbed extends V1Embed {
22497
22870
  * embedded Liveboard or visualization.
22498
22871
  */
22499
22872
  getEmbedParams() {
22500
- const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, newConnectionsExperience, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, newChartsLibrary, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, enableStopAnswerGenerationEmbed, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, enableHomepageAnnouncement = false, isContinuousLiveboardPDFEnabled = false, enableLiveboardDataCache, } = this.viewConfig;
22873
+ const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, newConnectionsExperience, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, newChartsLibrary, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, defaultQueryMode, enableStopAnswerGenerationEmbed, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, enableHomepageAnnouncement = false, isContinuousLiveboardPDFEnabled = false, enableLiveboardDataCache, } = this.viewConfig;
22501
22874
  let params = {};
22502
22875
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
22503
22876
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
@@ -22523,10 +22896,13 @@ class AppEmbed extends V1Embed {
22523
22896
  }
22524
22897
  params[Param.CoverAndFilterOptionInPDF] = !!coverAndFilterOptionInPDF;
22525
22898
  params = this.getBaseQueryParams(params);
22526
- if (!isUndefined(updatedSpotterChatPrompt)) {
22899
+ if (!isUndefined$1(updatedSpotterChatPrompt)) {
22527
22900
  params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
22528
22901
  }
22529
- if (!isUndefined(enableStopAnswerGenerationEmbed)) {
22902
+ if (!isUndefined$1(defaultQueryMode)) {
22903
+ params[Param.DefaultQueryMode] = defaultQueryMode;
22904
+ }
22905
+ if (!isUndefined$1(enableStopAnswerGenerationEmbed)) {
22530
22906
  params[Param.EnableStopAnswerGenerationEmbed] = !!enableStopAnswerGenerationEmbed;
22531
22907
  }
22532
22908
  // Handle spotterChatConfig params
@@ -22673,6 +23049,12 @@ class AppEmbed extends V1Embed {
22673
23049
  }
22674
23050
  if (discoveryExperience.homePage === HomePage.Focused) {
22675
23051
  params[Param.HomepageVersion] = HomePage.Focused;
23052
+ // The Focused (V4) homepage experience requires the updated
23053
+ // Spotter chat prompt. Enable it automatically unless the
23054
+ // developer has explicitly set updatedSpotterChatPrompt.
23055
+ if (isUndefined$1(updatedSpotterChatPrompt)) {
23056
+ params[Param.UpdatedSpotterChatPrompt] = true;
23057
+ }
22676
23058
  }
22677
23059
  }
22678
23060
  const queryParams = getQueryParamString(params, true);
@@ -22711,6 +23093,8 @@ class AppEmbed extends V1Embed {
22711
23093
  return modularHomeExperience ? 'home/spotiq-analysis' : 'insights/results';
22712
23094
  case Page.Monitor:
22713
23095
  return modularHomeExperience ? 'home/monitor-alerts' : 'insights/monitor-alerts';
23096
+ case Page.Collections:
23097
+ return 'collections';
22714
23098
  case Page.Home:
22715
23099
  default:
22716
23100
  return 'home';
@@ -22743,11 +23127,13 @@ class AppEmbed extends V1Embed {
22743
23127
  * @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1-sw
22744
23128
  */
22745
23129
  navigateToPage(path, noReload = false) {
23130
+ var _a;
22746
23131
  if (!this.iFrame) {
22747
23132
  logger$3.log('Please call render before invoking this method');
22748
23133
  return;
22749
23134
  }
22750
- if (noReload) {
23135
+ const overrideHistoryState = (_a = this.viewConfig) === null || _a === void 0 ? void 0 : _a.overrideHistoryState;
23136
+ if (noReload || overrideHistoryState) {
22751
23137
  this.trigger(HostEvent.Navigate, path);
22752
23138
  }
22753
23139
  else {
@@ -23035,10 +23421,10 @@ class LiveboardEmbed extends V1Embed {
23035
23421
  if (preventLiveboardFilterRemoval) {
23036
23422
  params[Param.preventLiveboardFilterRemoval] = true;
23037
23423
  }
23038
- if (!isUndefined(updatedSpotterChatPrompt)) {
23424
+ if (!isUndefined$1(updatedSpotterChatPrompt)) {
23039
23425
  params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
23040
23426
  }
23041
- if (!isUndefined(enableStopAnswerGenerationEmbed)) {
23427
+ if (!isUndefined$1(enableStopAnswerGenerationEmbed)) {
23042
23428
  params[Param.EnableStopAnswerGenerationEmbed] = !!enableStopAnswerGenerationEmbed;
23043
23429
  }
23044
23430
  if (visibleVizs) {
@@ -23239,7 +23625,7 @@ class LiveboardEmbed extends V1Embed {
23239
23625
  });
23240
23626
  }
23241
23627
  async handleRenderForPrerender() {
23242
- if (isUndefined(this.viewConfig.liveboardId)) {
23628
+ if (isUndefined$1(this.viewConfig.liveboardId)) {
23243
23629
  return this.prerenderGeneric();
23244
23630
  }
23245
23631
  return super.handleRenderForPrerender();
@@ -24158,6 +24544,15 @@ class BodylessConversation extends SpotterAgentEmbed {
24158
24544
  }
24159
24545
  }
24160
24546
 
24547
+ /**
24548
+ * The query mode Spotter uses when answering a question.
24549
+ * @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
24550
+ */
24551
+ var SpotterQueryMode;
24552
+ (function (SpotterQueryMode) {
24553
+ SpotterQueryMode["FAST_SEARCH"] = "fastSearch";
24554
+ SpotterQueryMode["RESEARCH"] = "research";
24555
+ })(SpotterQueryMode || (SpotterQueryMode = {}));
24161
24556
  /**
24162
24557
  * Embed ThoughtSpot AI Conversation.
24163
24558
  * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
@@ -24201,7 +24596,7 @@ class SpotterEmbed extends TsEmbed {
24201
24596
  return buildSpotterSidebarAppInitData(defaultAppInitData, this.viewConfig, this.handleError.bind(this));
24202
24597
  }
24203
24598
  getEmbedParamsObject() {
24204
- const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, updatedSpotterChatPrompt, enableStopAnswerGenerationEmbed, spotterChatConfig, } = this.viewConfig;
24599
+ const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, updatedSpotterChatPrompt, defaultQueryMode, enableStopAnswerGenerationEmbed, spotterChatConfig, } = this.viewConfig;
24205
24600
  if (!worksheetId) {
24206
24601
  this.handleError({
24207
24602
  errorType: ErrorDetailsTypes.VALIDATION_ERROR,
@@ -24219,6 +24614,7 @@ class SpotterEmbed extends TsEmbed {
24219
24614
  setParamIfDefined(queryParams, Param.ShowSpotterLimitations, showSpotterLimitations, true);
24220
24615
  setParamIfDefined(queryParams, Param.HideSampleQuestions, hideSampleQuestions, true);
24221
24616
  setParamIfDefined(queryParams, Param.UpdatedSpotterChatPrompt, updatedSpotterChatPrompt, true);
24617
+ setParamIfDefined(queryParams, Param.DefaultQueryMode, defaultQueryMode);
24222
24618
  setParamIfDefined(queryParams, Param.EnableStopAnswerGenerationEmbed, enableStopAnswerGenerationEmbed, true);
24223
24619
  // Handle spotterChatConfig params
24224
24620
  if (spotterChatConfig) {
@@ -24958,4 +25354,4 @@ class AutoFrameRenderer extends TsEmbed {
24958
25354
  }
24959
25355
  }
24960
25356
 
24961
- export { Action, AnswerService, AppEmbed, AuthEvent, AuthFailureType, AuthStatus, AuthType, BackgroundFormatType, BodylessConversation, ConditionalFormattingComparisonType, ConditionalFormattingOperator, ContextMenuTriggerOptions, ContextType, ConversationEmbed, CustomActionTarget, CustomActionsPosition, DataLabelFilterOperator, DataPanelCustomColumnGroupsAccordionState$1 as DataPanelCustomColumnGroupsAccordionState, DataSourceVisualMode, EmbedErrorCodes, EmbedEvent, ErrorDetailsTypes, HomeLeftNavItem, HomePage, HomePageSearchBarMode, HomepageModule, HostEvent, InterceptedApiType, LegendPosition, ListPage, ListPageColumns, LiveboardEmbed, LogLevel, MIXPANEL_EVENT, Page, PinboardEmbed, PrefetchFeatures, PrimaryNavbarVersion, RuntimeFilterOp, SearchBarEmbed, SearchEmbed, SpotterAgentEmbed, SpotterEmbed, TableContentDensity, TableTheme, UIPassthroughEvent, createLiveboardWithAnswers, executeTML, exportTML, getAnswerFromQuery, getEmbedConfig as getInitConfig, getSessionInfo, init, logout, prefetch, reloadIframe, resetCachedAuthToken, startAutoMCPFrameRenderer, tokenizedFetch, uploadMixpanelEvent };
25357
+ export { Action, AnswerService, AppEmbed, AuthEvent, AuthFailureType, AuthStatus, AuthType, BackgroundFormatType, BodylessConversation, ConditionalFormattingComparisonType, ConditionalFormattingOperator, ContextMenuTriggerOptions, ContextType, ConversationEmbed, CustomActionTarget, CustomActionsPosition, DataLabelFilterOperator, DataPanelCustomColumnGroupsAccordionState$1 as DataPanelCustomColumnGroupsAccordionState, DataSourceVisualMode, EmbedErrorCodes, EmbedEvent, ErrorDetailsTypes, HomeLeftNavItem, HomePage, HomePageSearchBarMode, HomepageModule, HostEvent, InterceptedApiType, LegendPosition, ListPage, ListPageColumns, LiveboardEmbed, LogLevel, MIXPANEL_EVENT, Page, PinboardEmbed, PrefetchFeatures, PrimaryNavbarVersion, RuntimeFilterOp, SearchBarEmbed, SearchEmbed, SpotterAgentEmbed, SpotterEmbed, SpotterQueryMode, TableContentDensity, TableTheme, UIPassthroughEvent, createLiveboardWithAnswers, executeTML, exportTML, getAnswerFromQuery, getEmbedConfig as getInitConfig, getSessionInfo, init, logout, prefetch, reloadIframe, resetCachedAuthToken, startAutoMCPFrameRenderer, tokenizedFetch, uploadMixpanelEvent };