@thoughtspot/visual-embed-sdk 1.45.2 → 1.45.3-mcp.2

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 (250) hide show
  1. package/cjs/package.json +2 -2
  2. package/cjs/src/css-variables.d.ts +48 -0
  3. package/cjs/src/css-variables.d.ts.map +1 -1
  4. package/cjs/src/embed/app.d.ts +37 -0
  5. package/cjs/src/embed/app.d.ts.map +1 -1
  6. package/cjs/src/embed/app.js +37 -1
  7. package/cjs/src/embed/app.js.map +1 -1
  8. package/cjs/src/embed/app.spec.js +24 -0
  9. package/cjs/src/embed/app.spec.js.map +1 -1
  10. package/cjs/src/embed/auto-frame-renderer.d.ts +3 -0
  11. package/cjs/src/embed/auto-frame-renderer.d.ts.map +1 -0
  12. package/cjs/src/embed/auto-frame-renderer.js +70 -0
  13. package/cjs/src/embed/auto-frame-renderer.js.map +1 -0
  14. package/cjs/src/embed/base.d.ts.map +1 -1
  15. package/cjs/src/embed/base.js.map +1 -1
  16. package/cjs/src/embed/conversation.d.ts +128 -10
  17. package/cjs/src/embed/conversation.d.ts.map +1 -1
  18. package/cjs/src/embed/conversation.js +41 -18
  19. package/cjs/src/embed/conversation.js.map +1 -1
  20. package/cjs/src/embed/conversation.spec.js +96 -3
  21. package/cjs/src/embed/conversation.spec.js.map +1 -1
  22. package/cjs/src/embed/liveboard.d.ts +38 -1
  23. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  24. package/cjs/src/embed/liveboard.js +38 -10
  25. package/cjs/src/embed/liveboard.js.map +1 -1
  26. package/cjs/src/embed/liveboard.spec.js +179 -7
  27. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  28. package/cjs/src/embed/searchEmbed-basic-auth.spec.d.ts +2 -0
  29. package/cjs/src/embed/searchEmbed-basic-auth.spec.d.ts.map +1 -0
  30. package/cjs/src/embed/searchEmbed-basic-auth.spec.js +104 -0
  31. package/cjs/src/embed/searchEmbed-basic-auth.spec.js.map +1 -0
  32. package/cjs/src/errors.d.ts +1 -0
  33. package/cjs/src/errors.d.ts.map +1 -1
  34. package/cjs/src/errors.js +1 -0
  35. package/cjs/src/errors.js.map +1 -1
  36. package/cjs/src/index.d.ts +4 -3
  37. package/cjs/src/index.d.ts.map +1 -1
  38. package/cjs/src/index.js +3 -1
  39. package/cjs/src/index.js.map +1 -1
  40. package/cjs/src/types.d.ts +196 -41
  41. package/cjs/src/types.d.ts.map +1 -1
  42. package/cjs/src/types.js +185 -19
  43. package/cjs/src/types.js.map +1 -1
  44. package/cjs/src/utils/answerService/answerService.d.ts +34 -0
  45. package/cjs/src/utils/answerService/answerService.d.ts.map +1 -0
  46. package/cjs/src/utils/answerService/answerService.js +142 -0
  47. package/cjs/src/utils/answerService/answerService.js.map +1 -0
  48. package/cjs/src/utils/answerService/answerService.spec.d.ts +1 -0
  49. package/cjs/src/utils/answerService/answerService.spec.d.ts.map +1 -0
  50. package/cjs/src/utils/answerService/answerService.spec.js +1 -0
  51. package/cjs/src/utils/answerService/answerService.spec.js.map +1 -0
  52. package/cjs/src/utils/answerService/graphql-queries.d.ts +6 -0
  53. package/cjs/src/utils/answerService/graphql-queries.d.ts.map +1 -0
  54. package/cjs/src/utils/answerService/graphql-queries.js +123 -0
  55. package/cjs/src/utils/answerService/graphql-queries.js.map +1 -0
  56. package/cjs/src/utils/answerService.d.ts +10 -0
  57. package/cjs/src/utils/answerService.d.ts.map +1 -0
  58. package/cjs/src/utils/answerService.js +61 -0
  59. package/cjs/src/utils/answerService.js.map +1 -0
  60. package/cjs/src/utils/answerService.spec.d.ts +2 -0
  61. package/cjs/src/utils/answerService.spec.d.ts.map +1 -0
  62. package/cjs/src/utils/answerService.spec.js +31 -0
  63. package/cjs/src/utils/answerService.spec.js.map +1 -0
  64. package/cjs/src/utils/authService.d.ts +37 -0
  65. package/cjs/src/utils/authService.d.ts.map +1 -0
  66. package/cjs/src/utils/authService.js +106 -0
  67. package/cjs/src/utils/authService.js.map +1 -0
  68. package/cjs/src/utils/authService.spec.d.ts +2 -0
  69. package/cjs/src/utils/authService.spec.d.ts.map +1 -0
  70. package/cjs/src/utils/authService.spec.js +72 -0
  71. package/cjs/src/utils/authService.spec.js.map +1 -0
  72. package/cjs/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
  73. package/cjs/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  74. package/cjs/src/utils/graphql/answerService/answer-queries.js +23 -1
  75. package/cjs/src/utils/graphql/answerService/answer-queries.js.map +1 -1
  76. package/cjs/src/utils/graphql/answerService/answerService.d.ts +2 -1
  77. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  78. package/cjs/src/utils/graphql/answerService/answerService.js +9 -1
  79. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  80. package/cjs/src/utils/graphql/answerService/answerService.spec.js +73 -0
  81. package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  82. package/cjs/src/utils/graphql/answerService/graphql-queries.d.ts +5 -0
  83. package/cjs/src/utils/graphql/answerService/graphql-queries.d.ts.map +1 -0
  84. package/cjs/src/utils/graphql/answerService/graphql-queries.js +80 -0
  85. package/cjs/src/utils/graphql/answerService/graphql-queries.js.map +1 -0
  86. package/cjs/src/utils/graphql/conversationService/conversation-queries.d.ts +3 -0
  87. package/cjs/src/utils/graphql/conversationService/conversation-queries.d.ts.map +1 -0
  88. package/cjs/src/utils/graphql/conversationService/conversation-queries.js +318 -0
  89. package/cjs/src/utils/graphql/conversationService/conversation-queries.js.map +1 -0
  90. package/cjs/src/utils/graphql/conversationService/conversation-service.d.ts +12 -0
  91. package/cjs/src/utils/graphql/conversationService/conversation-service.d.ts.map +1 -0
  92. package/cjs/src/utils/graphql/conversationService/conversation-service.js +89 -0
  93. package/cjs/src/utils/graphql/conversationService/conversation-service.js.map +1 -0
  94. package/cjs/src/utils/graphql/spotterService/conversation-queries.d.ts +3 -0
  95. package/cjs/src/utils/graphql/spotterService/conversation-queries.d.ts.map +1 -0
  96. package/cjs/src/utils/graphql/spotterService/conversation-queries.js +318 -0
  97. package/cjs/src/utils/graphql/spotterService/conversation-queries.js.map +1 -0
  98. package/cjs/src/utils/graphql/spotterService/conversation-service.d.ts +12 -0
  99. package/cjs/src/utils/graphql/spotterService/conversation-service.d.ts.map +1 -0
  100. package/cjs/src/utils/graphql/spotterService/conversation-service.js +89 -0
  101. package/cjs/src/utils/graphql/spotterService/conversation-service.js.map +1 -0
  102. package/cjs/src/utils/graphql/spotterService/nls-answer-queries.d.ts +2 -0
  103. package/cjs/src/utils/graphql/spotterService/nls-answer-queries.d.ts.map +1 -0
  104. package/cjs/src/utils/graphql/spotterService/nls-answer-queries.js +403 -0
  105. package/cjs/src/utils/graphql/spotterService/nls-answer-queries.js.map +1 -0
  106. package/cjs/src/utils/graphql/spotterService/nls-answer-service.d.ts +12 -0
  107. package/cjs/src/utils/graphql/spotterService/nls-answer-service.d.ts.map +1 -0
  108. package/cjs/src/utils/graphql/spotterService/nls-answer-service.js +55 -0
  109. package/cjs/src/utils/graphql/spotterService/nls-answer-service.js.map +1 -0
  110. package/cjs/src/utils.d.ts +15 -0
  111. package/cjs/src/utils.d.ts.map +1 -1
  112. package/cjs/src/utils.js +33 -1
  113. package/cjs/src/utils.js.map +1 -1
  114. package/cjs/src/utils.spec.js +49 -0
  115. package/cjs/src/utils.spec.js.map +1 -1
  116. package/dist/{index-BdkKLLo1.js → index-0serzuii.js} +1 -1
  117. package/dist/index-CqrIh3Vj.js +7370 -0
  118. package/dist/index-aFN9fe8V.js +7371 -0
  119. package/dist/src/css-variables.d.ts +48 -0
  120. package/dist/src/css-variables.d.ts.map +1 -1
  121. package/dist/src/embed/app.d.ts +37 -0
  122. package/dist/src/embed/app.d.ts.map +1 -1
  123. package/dist/src/embed/auto-frame-renderer.d.ts +3 -0
  124. package/dist/src/embed/auto-frame-renderer.d.ts.map +1 -0
  125. package/dist/src/embed/base.d.ts.map +1 -1
  126. package/dist/src/embed/conversation.d.ts +128 -10
  127. package/dist/src/embed/conversation.d.ts.map +1 -1
  128. package/dist/src/embed/liveboard.d.ts +38 -1
  129. package/dist/src/embed/liveboard.d.ts.map +1 -1
  130. package/dist/src/errors.d.ts +1 -0
  131. package/dist/src/errors.d.ts.map +1 -1
  132. package/dist/src/index.d.ts +4 -3
  133. package/dist/src/index.d.ts.map +1 -1
  134. package/dist/src/types.d.ts +196 -41
  135. package/dist/src/types.d.ts.map +1 -1
  136. package/dist/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
  137. package/dist/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  138. package/dist/src/utils/graphql/answerService/answerService.d.ts +2 -1
  139. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  140. package/dist/src/utils.d.ts +15 -0
  141. package/dist/src/utils.d.ts.map +1 -1
  142. package/dist/tsembed-react.es.js +365 -52
  143. package/dist/tsembed-react.js +364 -51
  144. package/dist/tsembed.es.js +429 -53
  145. package/dist/tsembed.js +428 -51
  146. package/dist/visual-embed-sdk-react-full.d.ts +697 -343
  147. package/dist/visual-embed-sdk-react.d.ts +686 -332
  148. package/dist/visual-embed-sdk.d.ts +761 -380
  149. package/lib/package.json +2 -2
  150. package/lib/src/css-variables.d.ts +48 -0
  151. package/lib/src/css-variables.d.ts.map +1 -1
  152. package/lib/src/embed/app.d.ts +37 -0
  153. package/lib/src/embed/app.d.ts.map +1 -1
  154. package/lib/src/embed/app.js +39 -3
  155. package/lib/src/embed/app.js.map +1 -1
  156. package/lib/src/embed/app.spec.js +24 -0
  157. package/lib/src/embed/app.spec.js.map +1 -1
  158. package/lib/src/embed/auto-frame-renderer.d.ts +3 -0
  159. package/lib/src/embed/auto-frame-renderer.d.ts.map +1 -0
  160. package/lib/src/embed/auto-frame-renderer.js +66 -0
  161. package/lib/src/embed/auto-frame-renderer.js.map +1 -0
  162. package/lib/src/embed/base.d.ts.map +1 -1
  163. package/lib/src/embed/base.js.map +1 -1
  164. package/lib/src/embed/conversation.d.ts +128 -10
  165. package/lib/src/embed/conversation.d.ts.map +1 -1
  166. package/lib/src/embed/conversation.js +42 -19
  167. package/lib/src/embed/conversation.js.map +1 -1
  168. package/lib/src/embed/conversation.spec.js +96 -3
  169. package/lib/src/embed/conversation.spec.js.map +1 -1
  170. package/lib/src/embed/liveboard.d.ts +38 -1
  171. package/lib/src/embed/liveboard.d.ts.map +1 -1
  172. package/lib/src/embed/liveboard.js +39 -11
  173. package/lib/src/embed/liveboard.js.map +1 -1
  174. package/lib/src/embed/liveboard.spec.js +179 -7
  175. package/lib/src/embed/liveboard.spec.js.map +1 -1
  176. package/lib/src/embed/searchEmbed-basic-auth.spec.d.ts +2 -0
  177. package/lib/src/embed/searchEmbed-basic-auth.spec.d.ts.map +1 -0
  178. package/lib/src/embed/searchEmbed-basic-auth.spec.js +101 -0
  179. package/lib/src/embed/searchEmbed-basic-auth.spec.js.map +1 -0
  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 +4 -3
  185. package/lib/src/index.d.ts.map +1 -1
  186. package/lib/src/index.js +1 -0
  187. package/lib/src/index.js.map +1 -1
  188. package/lib/src/types.d.ts +196 -41
  189. package/lib/src/types.d.ts.map +1 -1
  190. package/lib/src/types.js +185 -19
  191. package/lib/src/types.js.map +1 -1
  192. package/lib/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
  193. package/lib/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  194. package/lib/src/utils/graphql/answerService/answer-queries.js +22 -0
  195. package/lib/src/utils/graphql/answerService/answer-queries.js.map +1 -1
  196. package/lib/src/utils/graphql/answerService/answerService.d.ts +2 -1
  197. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  198. package/lib/src/utils/graphql/answerService/answerService.js +9 -1
  199. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  200. package/lib/src/utils/graphql/answerService/answerService.spec.js +73 -0
  201. package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  202. package/lib/src/utils/graphql/conversationService/conversation-queries.d.ts +3 -0
  203. package/lib/src/utils/graphql/conversationService/conversation-queries.d.ts.map +1 -0
  204. package/lib/src/utils/graphql/conversationService/conversation-queries.js +315 -0
  205. package/lib/src/utils/graphql/conversationService/conversation-queries.js.map +1 -0
  206. package/lib/src/utils/graphql/conversationService/conversation-service.d.ts +12 -0
  207. package/lib/src/utils/graphql/conversationService/conversation-service.d.ts.map +1 -0
  208. package/lib/src/utils/graphql/conversationService/conversation-service.js +84 -0
  209. package/lib/src/utils/graphql/conversationService/conversation-service.js.map +1 -0
  210. package/lib/src/utils/graphql/spotterService/conversation-queries.d.ts +3 -0
  211. package/lib/src/utils/graphql/spotterService/conversation-queries.d.ts.map +1 -0
  212. package/lib/src/utils/graphql/spotterService/conversation-queries.js +315 -0
  213. package/lib/src/utils/graphql/spotterService/conversation-queries.js.map +1 -0
  214. package/lib/src/utils/graphql/spotterService/conversation-service.d.ts +12 -0
  215. package/lib/src/utils/graphql/spotterService/conversation-service.d.ts.map +1 -0
  216. package/lib/src/utils/graphql/spotterService/conversation-service.js +84 -0
  217. package/lib/src/utils/graphql/spotterService/conversation-service.js.map +1 -0
  218. package/lib/src/utils/graphql/spotterService/nls-answer-queries.d.ts +2 -0
  219. package/lib/src/utils/graphql/spotterService/nls-answer-queries.d.ts.map +1 -0
  220. package/lib/src/utils/graphql/spotterService/nls-answer-queries.js +400 -0
  221. package/lib/src/utils/graphql/spotterService/nls-answer-queries.js.map +1 -0
  222. package/lib/src/utils/graphql/spotterService/nls-answer-service.d.ts +12 -0
  223. package/lib/src/utils/graphql/spotterService/nls-answer-service.d.ts.map +1 -0
  224. package/lib/src/utils/graphql/spotterService/nls-answer-service.js +50 -0
  225. package/lib/src/utils/graphql/spotterService/nls-answer-service.js.map +1 -0
  226. package/lib/src/utils.d.ts +15 -0
  227. package/lib/src/utils.d.ts.map +1 -1
  228. package/lib/src/utils.js +30 -0
  229. package/lib/src/utils.js.map +1 -1
  230. package/lib/src/utils.spec.js +50 -1
  231. package/lib/src/utils.spec.js.map +1 -1
  232. package/lib/src/visual-embed-sdk.d.ts +7186 -0
  233. package/package.json +3 -3
  234. package/src/css-variables.ts +60 -0
  235. package/src/embed/app.spec.ts +32 -0
  236. package/src/embed/app.ts +97 -1
  237. package/src/embed/auto-frame-renderer.ts +78 -0
  238. package/src/embed/base.ts +1 -0
  239. package/src/embed/conversation.spec.ts +117 -3
  240. package/src/embed/conversation.ts +189 -30
  241. package/src/embed/liveboard.spec.ts +264 -10
  242. package/src/embed/liveboard.ts +100 -11
  243. package/src/errors.ts +1 -0
  244. package/src/index.ts +8 -1
  245. package/src/types.ts +198 -42
  246. package/src/utils/graphql/answerService/answer-queries.ts +23 -0
  247. package/src/utils/graphql/answerService/answerService.spec.ts +87 -0
  248. package/src/utils/graphql/answerService/answerService.ts +13 -1
  249. package/src/utils.spec.ts +56 -0
  250. package/src/utils.ts +36 -0
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.45.2 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.45.3-mcp.2 */
2
2
  'use client';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
@@ -1867,6 +1867,42 @@
1867
1867
  * @version SDK: 1.43.0 | ThoughtSpot: 10.15.0.cl
1868
1868
  */
1869
1869
  EmbedEvent["ApiIntercept"] = "ApiIntercept";
1870
+ /**
1871
+ * Emitted when a Spotter conversation is renamed.
1872
+ * @example
1873
+ * ```js
1874
+ * spotterEmbed.on(EmbedEvent.SpotterConversationRenamed, (payload) => {
1875
+ * console.log('Conversation renamed', payload);
1876
+ * // payload: { convId: string, oldTitle: string, newTitle: string }
1877
+ * })
1878
+ * ```
1879
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
1880
+ */
1881
+ EmbedEvent["SpotterConversationRenamed"] = "spotterConversationRenamed";
1882
+ /**
1883
+ * Emitted when a Spotter conversation is deleted.
1884
+ * @example
1885
+ * ```js
1886
+ * spotterEmbed.on(EmbedEvent.SpotterConversationDeleted, (payload) => {
1887
+ * console.log('Conversation deleted', payload);
1888
+ * // payload: { convId: string, title: string }
1889
+ * })
1890
+ * ```
1891
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
1892
+ */
1893
+ EmbedEvent["SpotterConversationDeleted"] = "spotterConversationDeleted";
1894
+ /**
1895
+ * Emitted when a Spotter conversation is selected/clicked.
1896
+ * @example
1897
+ * ```js
1898
+ * spotterEmbed.on(EmbedEvent.SpotterConversationSelected, (payload) => {
1899
+ * console.log('Conversation selected', payload);
1900
+ * // payload: { convId: string, title: string, worksheetId: string }
1901
+ * })
1902
+ * ```
1903
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
1904
+ */
1905
+ EmbedEvent["SpotterConversationSelected"] = "spotterConversationSelected";
1870
1906
  /**
1871
1907
  * @hidden
1872
1908
  * Emitted when the auth token is about to get expired and needs to be refreshed.
@@ -3299,6 +3335,7 @@
3299
3335
  */
3300
3336
  var Param;
3301
3337
  (function (Param) {
3338
+ Param["Tsmcp"] = "tsmcp";
3302
3339
  Param["EmbedApp"] = "embedApp";
3303
3340
  Param["DataSources"] = "dataSources";
3304
3341
  Param["DataSourceMode"] = "dataSourceMode";
@@ -3429,7 +3466,19 @@
3429
3466
  Param["isLinkParametersEnabled"] = "isLinkParametersEnabled";
3430
3467
  Param["EnablePastConversationsSidebar"] = "enablePastConversationsSidebar";
3431
3468
  Param["UpdatedSpotterChatPrompt"] = "updatedSpotterChatPrompt";
3469
+ Param["SpotterSidebarTitle"] = "spotterSidebarTitle";
3470
+ Param["SpotterSidebarDefaultExpanded"] = "spotterSidebarDefaultExpanded";
3471
+ Param["SpotterChatRenameLabel"] = "spotterChatRenameLabel";
3472
+ Param["SpotterChatDeleteLabel"] = "spotterChatDeleteLabel";
3473
+ Param["SpotterDeleteConversationModalTitle"] = "spotterDeleteConversationModalTitle";
3474
+ Param["SpotterPastConversationAlertMessage"] = "spotterPastConversationAlertMessage";
3475
+ Param["SpotterDocumentationUrl"] = "spotterDocumentationUrl";
3476
+ Param["SpotterBestPracticesLabel"] = "spotterBestPracticesLabel";
3477
+ Param["SpotterConversationsBatchSize"] = "spotterConversationsBatchSize";
3478
+ Param["SpotterNewChatButtonTitle"] = "spotterNewChatButtonTitle";
3432
3479
  Param["IsThisPeriodInDateFiltersEnabled"] = "isThisPeriodInDateFiltersEnabled";
3480
+ Param["HideToolResponseCardBranding"] = "hideToolResponseCardBranding";
3481
+ Param["ToolResponseCardBrandingLabel"] = "toolResponseCardBrandingLabel";
3433
3482
  })(Param || (Param = {}));
3434
3483
  /**
3435
3484
  * ThoughtSpot application pages include actions and menu commands
@@ -4855,6 +4904,96 @@
4855
4904
  * @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
4856
4905
  */
4857
4906
  Action["UngroupLiveboardGroup"] = "ungroupLiveboardGroup";
4907
+ /**
4908
+ * Controls visibility of the sidebar header (title and toggle button)
4909
+ * in the Spotter past conversations sidebar.
4910
+ * @example
4911
+ * ```js
4912
+ * hiddenActions: [Action.SpotterSidebarHeader]
4913
+ * ```
4914
+ * @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
4915
+ */
4916
+ Action["SpotterSidebarHeader"] = "spotterSidebarHeader";
4917
+ /**
4918
+ * Controls visibility of the sidebar footer (documentation link)
4919
+ * in the Spotter past conversations sidebar.
4920
+ * @example
4921
+ * ```js
4922
+ * hiddenActions: [Action.SpotterSidebarFooter]
4923
+ * ```
4924
+ * @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
4925
+ */
4926
+ Action["SpotterSidebarFooter"] = "spotterSidebarFooter";
4927
+ /**
4928
+ * Controls visibility and disable state of the sidebar toggle/expand button
4929
+ * in the Spotter past conversations sidebar.
4930
+ * @example
4931
+ * ```js
4932
+ * disabledActions: [Action.SpotterSidebarToggle]
4933
+ * ```
4934
+ * @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
4935
+ */
4936
+ Action["SpotterSidebarToggle"] = "spotterSidebarToggle";
4937
+ /**
4938
+ * Controls visibility and disable state of the "New Chat" button
4939
+ * in the Spotter past conversations sidebar.
4940
+ * @example
4941
+ * ```js
4942
+ * disabledActions: [Action.SpotterNewChat]
4943
+ * ```
4944
+ * @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
4945
+ */
4946
+ Action["SpotterNewChat"] = "spotterNewChat";
4947
+ /**
4948
+ * Controls visibility of the past conversation banner alert
4949
+ * in the Spotter interface.
4950
+ * @example
4951
+ * ```js
4952
+ * hiddenActions: [Action.SpotterPastChatBanner]
4953
+ * ```
4954
+ * @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
4955
+ */
4956
+ Action["SpotterPastChatBanner"] = "spotterPastChatBanner";
4957
+ /**
4958
+ * Controls visibility and disable state of the conversation edit menu
4959
+ * (three-dot menu) in the Spotter past conversations sidebar.
4960
+ * @example
4961
+ * ```js
4962
+ * disabledActions: [Action.SpotterChatMenu]
4963
+ * ```
4964
+ * @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
4965
+ */
4966
+ Action["SpotterChatMenu"] = "spotterChatMenu";
4967
+ /**
4968
+ * Controls visibility and disable state of the rename action
4969
+ * in the Spotter conversation edit menu.
4970
+ * @example
4971
+ * ```js
4972
+ * disabledActions: [Action.SpotterChatRename]
4973
+ * ```
4974
+ * @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
4975
+ */
4976
+ Action["SpotterChatRename"] = "spotterChatRename";
4977
+ /**
4978
+ * Controls visibility and disable state of the delete action
4979
+ * in the Spotter conversation edit menu.
4980
+ * @example
4981
+ * ```js
4982
+ * disabledActions: [Action.SpotterChatDelete]
4983
+ * ```
4984
+ * @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
4985
+ */
4986
+ Action["SpotterChatDelete"] = "spotterChatDelete";
4987
+ /**
4988
+ * Controls visibility and disable state of the documentation/best practices
4989
+ * link in the Spotter sidebar footer.
4990
+ * @example
4991
+ * ```js
4992
+ * disabledActions: [Action.SpotterDocs]
4993
+ * ```
4994
+ * @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
4995
+ */
4996
+ Action["SpotterDocs"] = "spotterDocs";
4858
4997
  /**
4859
4998
  * The **Include current period** checkbox for date filters.
4860
4999
  * Controls the visibility and availability of the option to include
@@ -4993,13 +5132,30 @@
4993
5132
  * Error types emitted by embedded components.
4994
5133
  *
4995
5134
  * These enum values categorize different types of errors that can occur during
4996
- * the lifecycle of an embedded ThoughtSpot component. Use these values to implement
4997
- * specific error handling logic based on the error category.
4998
- *
4999
- * @see {@link EmbedErrorDetailsEvent} - The error event object structure
5000
- * @see {@link EmbedEvent.Error} - The event that emits these errors
5135
+ * the lifecycle of an embedded ThoughtSpot component.
5136
+ * Use {@link EmbedErrorDetailsEvent} and {@link EmbedErrorCodes} to handle specific errors.
5001
5137
  * @version SDK: 1.44.2 | ThoughtSpot: 26.2.0.cl
5002
5138
  * @group Error Handling
5139
+ *
5140
+ * @example
5141
+ * Handle specific error types
5142
+ * ```js
5143
+ * embed.on(EmbedEvent.Error, (error) => {
5144
+ * switch (error.errorType) {
5145
+ * case ErrorDetailsTypes.API:
5146
+ * console.error('API error:', error.message);
5147
+ * break;
5148
+ * case ErrorDetailsTypes.VALIDATION_ERROR:
5149
+ * console.error('Validation error:', error.message);
5150
+ * break;
5151
+ * case ErrorDetailsTypes.NETWORK:
5152
+ * console.error('Network error:', error.message);
5153
+ * break;
5154
+ * default:
5155
+ * console.error('Unknown error:', error);
5156
+ * }
5157
+ * });
5158
+ * ```
5003
5159
  */
5004
5160
  var ErrorDetailsTypes;
5005
5161
  (function (ErrorDetailsTypes) {
@@ -5011,35 +5167,43 @@
5011
5167
  ErrorDetailsTypes["NETWORK"] = "NETWORK";
5012
5168
  })(ErrorDetailsTypes || (ErrorDetailsTypes = {}));
5013
5169
  /**
5014
- * Error codes for identifying specific issues in embedded ThoughtSpot components.
5015
- *
5016
- * Use these codes for precise error handling and debugging. Each code maps to a
5017
- * distinct failure scenario, enabling targeted recovery strategies.
5170
+ * Error codes for identifying specific issues in embedded ThoughtSpot components. Use {@link EmbedErrorDetailsEvent} and {@link ErrorDetailsTypes} codes for precise error handling and debugging.
5018
5171
  *
5019
5172
  * @version SDK: 1.44.2 | ThoughtSpot: 26.2.0.cl
5020
5173
  * @group Error Handling
5021
- *
5022
- * @see {@link EmbedErrorDetailsEvent} - The error event object that includes these codes
5023
- * @see {@link ErrorDetailsTypes} - General error type categories
5024
- *
5174
+
5025
5175
  * @example
5026
5176
  * Handle specific error codes in the error event handler
5027
- *
5177
+ * ```js
5028
5178
  * embed.on(EmbedEvent.Error, (error) => {
5029
- * if (error.code === EmbedErrorCodes.WORKSHEET_ID_NOT_FOUND) {
5030
- * console.error('Worksheet ID not found:', error.message);
5179
+ * switch (error.code) {
5180
+ * case EmbedErrorCodes.WORKSHEET_ID_NOT_FOUND:
5181
+ * console.error('Worksheet ID not found:', error.message);
5182
+ * break;
5183
+ * case EmbedErrorCodes.LIVEBOARD_ID_MISSING:
5184
+ * console.error('Liveboard ID is missing:', error.message);
5185
+ * break;
5186
+ * case EmbedErrorCodes.CONFLICTING_ACTIONS_CONFIG:
5187
+ * console.error('Conflicting actions configuration:', error.message);
5188
+ * break;
5189
+ * case EmbedErrorCodes.CONFLICTING_TABS_CONFIG:
5190
+ * console.error('Conflicting tabs configuration:', error.message);
5191
+ * break;
5192
+ * default:
5193
+ * console.error('Unknown error:', error);
5031
5194
  * }
5032
5195
  * });
5033
- * */
5196
+ * ```
5197
+ * */
5034
5198
  var EmbedErrorCodes;
5035
5199
  (function (EmbedErrorCodes) {
5036
5200
  /** Worksheet ID not found or does not exist */
5037
5201
  EmbedErrorCodes["WORKSHEET_ID_NOT_FOUND"] = "WORKSHEET_ID_NOT_FOUND";
5038
5202
  /** Required Liveboard ID is missing from configuration */
5039
5203
  EmbedErrorCodes["LIVEBOARD_ID_MISSING"] = "LIVEBOARD_ID_MISSING";
5040
- /** Conflicting action configuration detected (e.g., both hiddenActions and visibleActions specified) */
5204
+ /** Conflicting action configuration detected */
5041
5205
  EmbedErrorCodes["CONFLICTING_ACTIONS_CONFIG"] = "CONFLICTING_ACTIONS_CONFIG";
5042
- /** Conflicting tab configuration detected (e.g., both hiddenTabs and visibleTabs specified) */
5206
+ /** Conflicting tab configuration detected */
5043
5207
  EmbedErrorCodes["CONFLICTING_TABS_CONFIG"] = "CONFLICTING_TABS_CONFIG";
5044
5208
  /** Error during component initialization */
5045
5209
  EmbedErrorCodes["INIT_ERROR"] = "INIT_ERROR";
@@ -5057,6 +5221,8 @@
5057
5221
  EmbedErrorCodes["PARSING_API_INTERCEPT_BODY_ERROR"] = "PARSING_API_INTERCEPT_BODY_ERROR";
5058
5222
  /** Failed to update embed parameters during pre-render */
5059
5223
  EmbedErrorCodes["UPDATE_PARAMS_FAILED"] = "UPDATE_PARAMS_FAILED";
5224
+ /** Invalid URL provided in configuration */
5225
+ EmbedErrorCodes["INVALID_URL"] = "INVALID_URL";
5060
5226
  })(EmbedErrorCodes || (EmbedErrorCodes = {}));
5061
5227
  var ContextType;
5062
5228
  (function (ContextType) {
@@ -5197,6 +5363,7 @@
5197
5363
  ERROR_PARSING_API_INTERCEPT_BODY: 'Error parsing api intercept body',
5198
5364
  SSR_ENVIRONMENT_ERROR: 'SSR environment detected. This function cannot be called in SSR environment.',
5199
5365
  UPDATE_PARAMS_FAILED: 'Failed to update embed parameters',
5366
+ INVALID_SPOTTER_DOCUMENTATION_URL: 'Invalid spotterDocumentationUrl. Please provide a valid http or https URL.',
5200
5367
  };
5201
5368
  const CUSTOM_ACTIONS_ERROR_MESSAGE = {
5202
5369
  INVALID_ACTION_OBJECT: 'Custom Action Validation Error: Invalid action object provided',
@@ -5681,6 +5848,36 @@
5681
5848
  return true;
5682
5849
  }
5683
5850
  return false;
5851
+ };
5852
+ /**
5853
+ * Validates that a URL uses only http: or https: protocols.
5854
+ * Returns a tuple of [isValid, error] so the caller can handle validation errors.
5855
+ * @param url - The URL string to validate
5856
+ * @returns [true, null] if valid, [false, Error] if invalid
5857
+ */
5858
+ const validateHttpUrl = (url) => {
5859
+ try {
5860
+ const parsedUrl = new URL(url);
5861
+ if (parsedUrl.protocol !== 'http:' && parsedUrl.protocol !== 'https:') {
5862
+ return [false, new Error(`Invalid protocol: ${parsedUrl.protocol}. Only http: and https: are allowed.`)];
5863
+ }
5864
+ return [true, null];
5865
+ }
5866
+ catch (error) {
5867
+ return [false, error instanceof Error ? error : new Error(String(error))];
5868
+ }
5869
+ };
5870
+ /**
5871
+ * Sets a query parameter if the value is defined.
5872
+ * @param queryParams - The query params object to modify
5873
+ * @param param - The parameter key
5874
+ * @param value - The value to set
5875
+ * @param asBoolean - If true, coerces value to boolean
5876
+ */
5877
+ const setParamIfDefined = (queryParams, param, value, asBoolean = false) => {
5878
+ if (value !== undefined) {
5879
+ queryParams[param] = asBoolean ? !!value : value;
5880
+ }
5684
5881
  };
5685
5882
 
5686
5883
  /**
@@ -8540,6 +8737,28 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
8540
8737
  sql
8541
8738
  }
8542
8739
  }
8740
+ `;
8741
+ const updateDisplayMode = `
8742
+ mutation UpdateDisplayMode(
8743
+ $session: BachSessionIdInput!
8744
+ $displayMode: DisplayMode
8745
+ ) {
8746
+ Answer__updateProperties(session: $session, displayMode: $displayMode) {
8747
+ id {
8748
+ sessionId
8749
+ genNo
8750
+ acSession {
8751
+ sessionId
8752
+ genNo
8753
+ }
8754
+ }
8755
+ answer {
8756
+ id
8757
+ displayMode
8758
+ suggestedDisplayMode
8759
+ }
8760
+ }
8761
+ }
8543
8762
  `;
8544
8763
  const getAnswerTML = `
8545
8764
  mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies: Boolean, $formatType: EDocFormatType, $exportPermissions: Boolean, $exportFqn: Boolean) {
@@ -8708,7 +8927,15 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
8708
8927
  },
8709
8928
  });
8710
8929
  }
8711
- async getSQLQuery() {
8930
+ async updateDisplayMode(displayMode = "TABLE_MODE") {
8931
+ return this.executeQuery(updateDisplayMode, {
8932
+ displayMode,
8933
+ });
8934
+ }
8935
+ async getSQLQuery(fetchSQLWithAllColumns = false) {
8936
+ if (fetchSQLWithAllColumns) {
8937
+ await this.updateDisplayMode("TABLE_MODE");
8938
+ }
8712
8939
  const { sql } = await this.executeQuery(getSQLQuery, {});
8713
8940
  return sql;
8714
8941
  }
@@ -18123,7 +18350,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18123
18350
  return eventData;
18124
18351
  }
18125
18352
 
18126
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.45.2";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js","bundle-dts":"dts-bundle-generator --config ./dts-config/dts-bundle.config.js","bundle-dts-react":"dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js","bundle-dts-react-full":"dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.build.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 | npx coveralls-next","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={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.23","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":"^11.2.0","@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":"^30.0.0","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^30.2.0","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1","coveralls-next":"^5.0.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle-generator":"^9.5.1",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^2.0.0",jest:"^30.2.0","jest-environment-jsdom":"^29.7.0","jest-fetch-mock":"^3.0.3",jsdom:"^17.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":"^29.4.6","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};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$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"32 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};
18353
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.45.3-mcp.2";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js","bundle-dts":"dts-bundle-generator --config ./dts-config/dts-bundle.config.js","bundle-dts-react":"dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js","bundle-dts-react-full":"dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.build.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 | npx coveralls-next","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && 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={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.23","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":"^11.2.0","@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":"^30.0.0","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^30.2.0","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1","coveralls-next":"^5.0.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle-generator":"^9.5.1",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^2.0.0",jest:"^30.2.0","jest-environment-jsdom":"^29.7.0","jest-fetch-mock":"^3.0.3",jsdom:"^17.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":"^29.4.6","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};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$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"32 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};
18127
18354
 
18128
18355
  class HostEventClient {
18129
18356
  constructor(iFrame) {
@@ -20429,7 +20656,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20429
20656
  * embedded Liveboard or visualization.
20430
20657
  */
20431
20658
  getEmbedParams() {
20432
- const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.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, minimumHeight, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
20659
+ const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.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, spotterSidebarConfig, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
20433
20660
  let params = {};
20434
20661
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
20435
20662
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
@@ -20453,6 +20680,41 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20453
20680
  if (!isUndefined$1(updatedSpotterChatPrompt)) {
20454
20681
  params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
20455
20682
  }
20683
+ // Handle spotterSidebarConfig params
20684
+ if (spotterSidebarConfig) {
20685
+ const { enablePastConversationsSidebar, spotterSidebarTitle, spotterSidebarDefaultExpanded, spotterChatRenameLabel, spotterChatDeleteLabel, spotterDeleteConversationModalTitle, spotterPastConversationAlertMessage, spotterDocumentationUrl, spotterBestPracticesLabel, spotterConversationsBatchSize, spotterNewChatButtonTitle, } = spotterSidebarConfig;
20686
+ setParamIfDefined(params, Param.EnablePastConversationsSidebar, enablePastConversationsSidebar, true);
20687
+ setParamIfDefined(params, Param.SpotterSidebarDefaultExpanded, spotterSidebarDefaultExpanded, true);
20688
+ setParamIfDefined(params, Param.SpotterSidebarTitle, spotterSidebarTitle);
20689
+ setParamIfDefined(params, Param.SpotterChatRenameLabel, spotterChatRenameLabel);
20690
+ setParamIfDefined(params, Param.SpotterChatDeleteLabel, spotterChatDeleteLabel);
20691
+ setParamIfDefined(params, Param.SpotterDeleteConversationModalTitle, spotterDeleteConversationModalTitle);
20692
+ setParamIfDefined(params, Param.SpotterPastConversationAlertMessage, spotterPastConversationAlertMessage);
20693
+ setParamIfDefined(params, Param.SpotterBestPracticesLabel, spotterBestPracticesLabel);
20694
+ setParamIfDefined(params, Param.SpotterConversationsBatchSize, spotterConversationsBatchSize);
20695
+ setParamIfDefined(params, Param.SpotterNewChatButtonTitle, spotterNewChatButtonTitle);
20696
+ // URL param with validation
20697
+ if (spotterDocumentationUrl !== undefined) {
20698
+ const [isValid, validationError] = validateHttpUrl(spotterDocumentationUrl);
20699
+ if (isValid) {
20700
+ params[Param.SpotterDocumentationUrl] = spotterDocumentationUrl;
20701
+ }
20702
+ else {
20703
+ this.handleError({
20704
+ errorType: ErrorDetailsTypes.VALIDATION_ERROR,
20705
+ message: ERROR_MESSAGE.INVALID_SPOTTER_DOCUMENTATION_URL,
20706
+ code: EmbedErrorCodes.INVALID_URL,
20707
+ error: (validationError === null || validationError === void 0 ? void 0 : validationError.message) || ERROR_MESSAGE.INVALID_SPOTTER_DOCUMENTATION_URL,
20708
+ });
20709
+ }
20710
+ }
20711
+ }
20712
+ // Handle spotterChatConfig params
20713
+ if (spotterChatConfig) {
20714
+ const { hideToolResponseCardBranding, toolResponseCardBrandingLabel, } = spotterChatConfig;
20715
+ setParamIfDefined(params, Param.HideToolResponseCardBranding, hideToolResponseCardBranding, true);
20716
+ setParamIfDefined(params, Param.ToolResponseCardBrandingLabel, toolResponseCardBrandingLabel);
20717
+ }
20456
20718
  if (hideObjectSearch) {
20457
20719
  params[Param.HideObjectSearch] = !!hideObjectSearch;
20458
20720
  }
@@ -20850,6 +21112,7 @@ query GetEurekaVizSnapshots(
20850
21112
  liveboardId: this.viewConfig.liveboardId,
20851
21113
  vizId: this.viewConfig.vizId,
20852
21114
  activeTabId: this.viewConfig.activeTabId,
21115
+ personalizedViewId: this.viewConfig.personalizedViewId,
20853
21116
  };
20854
21117
  if (this.viewConfig.fullHeight === true) {
20855
21118
  if (this.viewConfig.vizId) {
@@ -20874,7 +21137,7 @@ query GetEurekaVizSnapshots(
20874
21137
  getEmbedParamsObject() {
20875
21138
  let params = {};
20876
21139
  params = this.getBaseQueryParams(params);
20877
- const { enableVizTransformations, fullHeight, defaultHeight, minimumHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, isEnhancedFilterInteractivityEnabled = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, showSpotterLimitations, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
21140
+ const { enableVizTransformations, fullHeight, defaultHeight, minimumHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, isEnhancedFilterInteractivityEnabled = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, showSpotterLimitations, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, spotterChatConfig, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
20878
21141
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
20879
21142
  || this.viewConfig.preventPinboardFilterRemoval;
20880
21143
  if (fullHeight === true) {
@@ -20948,6 +21211,12 @@ query GetEurekaVizSnapshots(
20948
21211
  if (showSpotterLimitations !== undefined) {
20949
21212
  params[Param.ShowSpotterLimitations] = showSpotterLimitations;
20950
21213
  }
21214
+ // Handle spotterChatConfig params
21215
+ if (spotterChatConfig) {
21216
+ const { hideToolResponseCardBranding, toolResponseCardBrandingLabel, } = spotterChatConfig;
21217
+ setParamIfDefined(params, Param.HideToolResponseCardBranding, hideToolResponseCardBranding, true);
21218
+ setParamIfDefined(params, Param.ToolResponseCardBrandingLabel, toolResponseCardBrandingLabel);
21219
+ }
20951
21220
  if (isLinkParametersEnabled !== undefined) {
20952
21221
  params[Param.isLinkParametersEnabled] = isLinkParametersEnabled;
20953
21222
  }
@@ -20971,15 +21240,31 @@ query GetEurekaVizSnapshots(
20971
21240
  getQueryParamString(params, true);
20972
21241
  return params;
20973
21242
  }
20974
- getIframeSuffixSrc(liveboardId, vizId, activeTabId) {
20975
- let suffix = `/embed/viz/${liveboardId}`;
21243
+ getIframeSuffixSrc(liveboardId, vizId, activeTabId, personalizedViewId) {
21244
+ // Extract view from liveboardId if passed along with it (legacy approach)
21245
+ // View must be appended as query param at the end, not embedded in path
21246
+ let liveboardGuid = liveboardId;
21247
+ let legacyViewId;
21248
+ if (liveboardId === null || liveboardId === void 0 ? void 0 : liveboardId.includes('?')) {
21249
+ const [id, query] = liveboardId.split('?');
21250
+ liveboardGuid = id;
21251
+ const params = new URLSearchParams(query);
21252
+ legacyViewId = params.get('view') || undefined;
21253
+ }
21254
+ // personalizedViewId takes precedence over legacyViewId (when passed as part of liveboardId)
21255
+ const effectiveViewId = personalizedViewId || legacyViewId;
21256
+ let suffix = `/embed/viz/${liveboardGuid}`;
20976
21257
  if (activeTabId) {
20977
- suffix = `${suffix}/tab/${activeTabId} `;
21258
+ suffix = `${suffix}/tab/${activeTabId}`;
20978
21259
  }
20979
21260
  if (vizId) {
20980
21261
  suffix = `${suffix}/${vizId}`;
20981
21262
  }
20982
- const tsPostHashParams = this.getThoughtSpotPostUrlParams();
21263
+ const additionalParams = {};
21264
+ if (effectiveViewId) {
21265
+ additionalParams.view = effectiveViewId;
21266
+ }
21267
+ const tsPostHashParams = this.getThoughtSpotPostUrlParams(additionalParams);
20983
21268
  suffix = `${suffix}${tsPostHashParams}`;
20984
21269
  return suffix;
20985
21270
  }
@@ -20989,7 +21274,7 @@ query GetEurekaVizSnapshots(
20989
21274
  */
20990
21275
  getIFrameSrc() {
20991
21276
  var _a;
20992
- const { vizId, activeTabId } = this.viewConfig;
21277
+ const { vizId, activeTabId, personalizedViewId } = this.viewConfig;
20993
21278
  const liveboardId = (_a = this.viewConfig.liveboardId) !== null && _a !== void 0 ? _a : this.viewConfig.pinboardId;
20994
21279
  if (!liveboardId) {
20995
21280
  this.handleError({
@@ -20999,7 +21284,7 @@ query GetEurekaVizSnapshots(
20999
21284
  error: ERROR_MESSAGE.LIVEBOARD_VIZ_ID_VALIDATION,
21000
21285
  });
21001
21286
  }
21002
- return `${this.getRootIframeSrc()}${this.getIframeSuffixSrc(liveboardId, vizId, activeTabId)}`;
21287
+ return `${this.getRootIframeSrc()}${this.getIframeSuffixSrc(liveboardId, vizId, activeTabId, personalizedViewId)}`;
21003
21288
  }
21004
21289
  setActiveTab(data) {
21005
21290
  if (!this.viewConfig.vizId) {
@@ -21038,12 +21323,13 @@ query GetEurekaVizSnapshots(
21038
21323
  beforePrerenderVisible() {
21039
21324
  const embedObj = this.getPreRenderObj();
21040
21325
  this.executeAfterEmbedContainerLoaded(() => {
21041
- this.navigateToLiveboard(this.viewConfig.liveboardId, this.viewConfig.vizId, this.viewConfig.activeTabId);
21326
+ this.navigateToLiveboard(this.viewConfig.liveboardId, this.viewConfig.vizId, this.viewConfig.activeTabId, this.viewConfig.personalizedViewId);
21042
21327
  if (embedObj) {
21043
21328
  embedObj.currentLiveboardState = {
21044
21329
  liveboardId: this.viewConfig.liveboardId,
21045
21330
  vizId: this.viewConfig.vizId,
21046
21331
  activeTabId: this.viewConfig.activeTabId,
21332
+ personalizedViewId: this.viewConfig.personalizedViewId,
21047
21333
  };
21048
21334
  }
21049
21335
  });
@@ -21108,11 +21394,12 @@ query GetEurekaVizSnapshots(
21108
21394
  this.postRender();
21109
21395
  return this;
21110
21396
  }
21111
- navigateToLiveboard(liveboardId, vizId, activeTabId) {
21112
- const path = this.getIframeSuffixSrc(liveboardId, vizId, activeTabId);
21397
+ navigateToLiveboard(liveboardId, vizId, activeTabId, personalizedViewId) {
21398
+ const path = this.getIframeSuffixSrc(liveboardId, vizId, activeTabId, personalizedViewId);
21113
21399
  this.viewConfig.liveboardId = liveboardId;
21114
21400
  this.viewConfig.activeTabId = activeTabId;
21115
21401
  this.viewConfig.vizId = vizId;
21402
+ this.viewConfig.personalizedViewId = personalizedViewId;
21116
21403
  if (this.isRendered) {
21117
21404
  this.trigger(exports.HostEvent.Navigate, path.substring(1));
21118
21405
  }
@@ -21136,6 +21423,9 @@ query GetEurekaVizSnapshots(
21136
21423
  if (this.viewConfig.vizId) {
21137
21424
  url = `${url}/${this.viewConfig.vizId}`;
21138
21425
  }
21426
+ if (this.viewConfig.personalizedViewId) {
21427
+ url = `${url}?view=${this.viewConfig.personalizedViewId}`;
21428
+ }
21139
21429
  return url;
21140
21430
  }
21141
21431
  };
@@ -21704,7 +21994,9 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
21704
21994
  this.viewConfig = viewConfig;
21705
21995
  }
21706
21996
  getEmbedParamsObject() {
21707
- const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, enablePastConversationsSidebar, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, updatedSpotterChatPrompt, } = this.viewConfig;
21997
+ const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, updatedSpotterChatPrompt, spotterSidebarConfig, spotterChatConfig, } = this.viewConfig;
21998
+ // Extract sidebar config properties
21999
+ const { enablePastConversationsSidebar, spotterSidebarTitle, spotterSidebarDefaultExpanded, spotterChatRenameLabel, spotterChatDeleteLabel, spotterDeleteConversationModalTitle, spotterPastConversationAlertMessage, spotterDocumentationUrl, spotterBestPracticesLabel, spotterConversationsBatchSize, spotterNewChatButtonTitle, } = spotterSidebarConfig || {};
21708
22000
  if (!worksheetId) {
21709
22001
  this.handleError({
21710
22002
  errorType: ErrorDetailsTypes.VALIDATION_ERROR,
@@ -21715,30 +22007,51 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
21715
22007
  }
21716
22008
  const queryParams = this.getBaseQueryParams();
21717
22009
  queryParams[Param.SpotterEnabled] = true;
21718
- if (!isUndefined_1(disableSourceSelection)) {
21719
- queryParams[Param.DisableSourceSelection] = !!disableSourceSelection;
21720
- }
21721
- if (!isUndefined_1(hideSourceSelection)) {
21722
- queryParams[Param.HideSourceSelection] = !!hideSourceSelection;
21723
- }
21724
- if (!isUndefined_1(dataPanelV2)) {
21725
- queryParams[Param.DataPanelV2Enabled] = !!dataPanelV2;
21726
- }
21727
- if (!isUndefined_1(showSpotterLimitations)) {
21728
- queryParams[Param.ShowSpotterLimitations] = !!showSpotterLimitations;
21729
- }
21730
- if (!isUndefined_1(hideSampleQuestions)) {
21731
- queryParams[Param.HideSampleQuestions] = !!hideSampleQuestions;
22010
+ // Boolean params
22011
+ setParamIfDefined(queryParams, Param.DisableSourceSelection, disableSourceSelection, true);
22012
+ setParamIfDefined(queryParams, Param.HideSourceSelection, hideSourceSelection, true);
22013
+ setParamIfDefined(queryParams, Param.DataPanelV2Enabled, dataPanelV2, true);
22014
+ setParamIfDefined(queryParams, Param.ShowSpotterLimitations, showSpotterLimitations, true);
22015
+ setParamIfDefined(queryParams, Param.HideSampleQuestions, hideSampleQuestions, true);
22016
+ setParamIfDefined(queryParams, Param.UpdatedSpotterChatPrompt, updatedSpotterChatPrompt, true);
22017
+ setParamIfDefined(queryParams, Param.SpotterSidebarDefaultExpanded, spotterSidebarDefaultExpanded, true);
22018
+ // String params
22019
+ setParamIfDefined(queryParams, Param.SpotterSidebarTitle, spotterSidebarTitle);
22020
+ setParamIfDefined(queryParams, Param.SpotterChatRenameLabel, spotterChatRenameLabel);
22021
+ setParamIfDefined(queryParams, Param.SpotterChatDeleteLabel, spotterChatDeleteLabel);
22022
+ setParamIfDefined(queryParams, Param.SpotterDeleteConversationModalTitle, spotterDeleteConversationModalTitle);
22023
+ setParamIfDefined(queryParams, Param.SpotterPastConversationAlertMessage, spotterPastConversationAlertMessage);
22024
+ setParamIfDefined(queryParams, Param.SpotterBestPracticesLabel, spotterBestPracticesLabel);
22025
+ setParamIfDefined(queryParams, Param.SpotterConversationsBatchSize, spotterConversationsBatchSize);
22026
+ setParamIfDefined(queryParams, Param.SpotterNewChatButtonTitle, spotterNewChatButtonTitle);
22027
+ // URL param with validation
22028
+ if (spotterDocumentationUrl !== undefined) {
22029
+ const [isValid, validationError] = validateHttpUrl(spotterDocumentationUrl);
22030
+ if (isValid) {
22031
+ queryParams[Param.SpotterDocumentationUrl] = spotterDocumentationUrl;
22032
+ }
22033
+ else {
22034
+ this.handleError({
22035
+ errorType: ErrorDetailsTypes.VALIDATION_ERROR,
22036
+ message: ERROR_MESSAGE.INVALID_SPOTTER_DOCUMENTATION_URL,
22037
+ code: EmbedErrorCodes.INVALID_URL,
22038
+ error: (validationError === null || validationError === void 0 ? void 0 : validationError.message) || ERROR_MESSAGE.INVALID_SPOTTER_DOCUMENTATION_URL,
22039
+ });
22040
+ }
21732
22041
  }
21733
- if (!isUndefined_1(updatedSpotterChatPrompt)) {
21734
- queryParams[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
22042
+ // Handle spotterChatConfig params
22043
+ if (spotterChatConfig) {
22044
+ const { hideToolResponseCardBranding, toolResponseCardBrandingLabel, } = spotterChatConfig;
22045
+ setParamIfDefined(queryParams, Param.HideToolResponseCardBranding, hideToolResponseCardBranding, true);
22046
+ setParamIfDefined(queryParams, Param.ToolResponseCardBrandingLabel, toolResponseCardBrandingLabel);
21735
22047
  }
21736
22048
  return queryParams;
21737
22049
  }
21738
22050
  getIframeSrc() {
21739
- const { worksheetId, searchOptions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, enablePastConversationsSidebar, } = this.viewConfig;
22051
+ const { worksheetId, searchOptions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, spotterSidebarConfig, } = this.viewConfig;
21740
22052
  const path = 'insights/conv-assist';
21741
22053
  const queryParams = this.getEmbedParamsObject();
22054
+ const enablePastConversationsSidebar = spotterSidebarConfig === null || spotterSidebarConfig === void 0 ? void 0 : spotterSidebarConfig.enablePastConversationsSidebar;
21742
22055
  if (!isUndefined_1(enablePastConversationsSidebar)) {
21743
22056
  queryParams[Param.EnablePastConversationsSidebar] = !!enablePastConversationsSidebar;
21744
22057
  }