@thoughtspot/visual-embed-sdk 1.41.0-pre-render-1 → 1.41.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 (259) hide show
  1. package/README.md +2 -4
  2. package/cjs/package.json +3 -3
  3. package/cjs/src/authToken.d.ts +1 -0
  4. package/cjs/src/authToken.d.ts.map +1 -1
  5. package/cjs/src/authToken.js +13 -3
  6. package/cjs/src/authToken.js.map +1 -1
  7. package/cjs/src/authToken.spec.js +29 -0
  8. package/cjs/src/authToken.spec.js.map +1 -1
  9. package/cjs/src/css-variables.d.ts +2 -1
  10. package/cjs/src/css-variables.d.ts.map +1 -1
  11. package/cjs/src/embed/app.d.ts +22 -1
  12. package/cjs/src/embed/app.d.ts.map +1 -1
  13. package/cjs/src/embed/app.js +22 -1
  14. package/cjs/src/embed/app.js.map +1 -1
  15. package/cjs/src/embed/app.spec.js +70 -3
  16. package/cjs/src/embed/app.spec.js.map +1 -1
  17. package/cjs/src/embed/bodyless-conversation.d.ts +0 -1
  18. package/cjs/src/embed/bodyless-conversation.d.ts.map +1 -1
  19. package/cjs/src/embed/bodyless-conversation.js +3 -7
  20. package/cjs/src/embed/bodyless-conversation.js.map +1 -1
  21. package/cjs/src/embed/conversation.d.ts +2 -3
  22. package/cjs/src/embed/conversation.d.ts.map +1 -1
  23. package/cjs/src/embed/conversation.js +2 -7
  24. package/cjs/src/embed/conversation.js.map +1 -1
  25. package/cjs/src/embed/liveboard.d.ts +32 -1
  26. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  27. package/cjs/src/embed/liveboard.js +8 -25
  28. package/cjs/src/embed/liveboard.js.map +1 -1
  29. package/cjs/src/embed/liveboard.spec.js +96 -28
  30. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  31. package/cjs/src/embed/sage.d.ts +0 -1
  32. package/cjs/src/embed/sage.d.ts.map +1 -1
  33. package/cjs/src/embed/sage.js +6 -10
  34. package/cjs/src/embed/sage.js.map +1 -1
  35. package/cjs/src/embed/sage.spec.js +20 -10
  36. package/cjs/src/embed/sage.spec.js.map +1 -1
  37. package/cjs/src/embed/search-bar.d.ts +0 -1
  38. package/cjs/src/embed/search-bar.d.ts.map +1 -1
  39. package/cjs/src/embed/search-bar.js +7 -11
  40. package/cjs/src/embed/search-bar.js.map +1 -1
  41. package/cjs/src/embed/search.d.ts +0 -1
  42. package/cjs/src/embed/search.d.ts.map +1 -1
  43. package/cjs/src/embed/search.js +8 -7
  44. package/cjs/src/embed/search.js.map +1 -1
  45. package/cjs/src/embed/search.spec.js +10 -10
  46. package/cjs/src/embed/search.spec.js.map +1 -1
  47. package/cjs/src/embed/ts-embed.d.ts +5 -7
  48. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  49. package/cjs/src/embed/ts-embed.js +25 -22
  50. package/cjs/src/embed/ts-embed.js.map +1 -1
  51. package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -1
  52. package/cjs/src/embed/ts-embed.spec.js +122 -0
  53. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  54. package/cjs/src/errors.d.ts +11 -0
  55. package/cjs/src/errors.d.ts.map +1 -1
  56. package/cjs/src/errors.js +12 -1
  57. package/cjs/src/errors.js.map +1 -1
  58. package/cjs/src/index.d.ts +2 -2
  59. package/cjs/src/index.d.ts.map +1 -1
  60. package/cjs/src/index.js +3 -1
  61. package/cjs/src/index.js.map +1 -1
  62. package/cjs/src/react/index.d.ts +1 -1
  63. package/cjs/src/react/index.d.ts.map +1 -1
  64. package/cjs/src/react/index.js +4 -2
  65. package/cjs/src/react/index.js.map +1 -1
  66. package/cjs/src/react/index.spec.js +1 -1
  67. package/cjs/src/react/index.spec.js.map +1 -1
  68. package/cjs/src/types.d.ts +163 -21
  69. package/cjs/src/types.d.ts.map +1 -1
  70. package/cjs/src/types.js +65 -22
  71. package/cjs/src/types.js.map +1 -1
  72. package/cjs/src/utils/custom-actions.d.ts +12 -0
  73. package/cjs/src/utils/custom-actions.d.ts.map +1 -0
  74. package/cjs/src/utils/custom-actions.js +180 -0
  75. package/cjs/src/utils/custom-actions.js.map +1 -0
  76. package/cjs/src/utils/custom-actions.spec.d.ts +2 -0
  77. package/cjs/src/utils/custom-actions.spec.d.ts.map +1 -0
  78. package/cjs/src/utils/custom-actions.spec.js +399 -0
  79. package/cjs/src/utils/custom-actions.spec.js.map +1 -0
  80. package/cjs/src/utils/processData.d.ts.map +1 -1
  81. package/cjs/src/utils/processData.js +10 -0
  82. package/cjs/src/utils/processData.js.map +1 -1
  83. package/cjs/src/utils/processData.spec.js +11 -0
  84. package/cjs/src/utils/processData.spec.js.map +1 -1
  85. package/cjs/src/utils.d.ts +21 -0
  86. package/cjs/src/utils.d.ts.map +1 -1
  87. package/cjs/src/utils.js +32 -1
  88. package/cjs/src/utils.js.map +1 -1
  89. package/cjs/src/utils.spec.js +38 -0
  90. package/cjs/src/utils.spec.js.map +1 -1
  91. package/dist/{index-CmEQfuE3.js → index-DQueHwfQ.js} +1 -1
  92. package/dist/src/authToken.d.ts +1 -0
  93. package/dist/src/authToken.d.ts.map +1 -1
  94. package/dist/src/css-variables.d.ts +2 -1
  95. package/dist/src/css-variables.d.ts.map +1 -1
  96. package/dist/src/embed/app.d.ts +22 -1
  97. package/dist/src/embed/app.d.ts.map +1 -1
  98. package/dist/src/embed/bodyless-conversation.d.ts +0 -1
  99. package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
  100. package/dist/src/embed/conversation.d.ts +2 -3
  101. package/dist/src/embed/conversation.d.ts.map +1 -1
  102. package/dist/src/embed/liveboard.d.ts +32 -1
  103. package/dist/src/embed/liveboard.d.ts.map +1 -1
  104. package/dist/src/embed/sage.d.ts +0 -1
  105. package/dist/src/embed/sage.d.ts.map +1 -1
  106. package/dist/src/embed/search-bar.d.ts +0 -1
  107. package/dist/src/embed/search-bar.d.ts.map +1 -1
  108. package/dist/src/embed/search.d.ts +0 -1
  109. package/dist/src/embed/search.d.ts.map +1 -1
  110. package/dist/src/embed/ts-embed.d.ts +5 -7
  111. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  112. package/dist/src/embed/ts-embed.spec.d.ts.map +1 -1
  113. package/dist/src/errors.d.ts +11 -0
  114. package/dist/src/errors.d.ts.map +1 -1
  115. package/dist/src/index.d.ts +2 -2
  116. package/dist/src/index.d.ts.map +1 -1
  117. package/dist/src/react/index.d.ts +1 -1
  118. package/dist/src/react/index.d.ts.map +1 -1
  119. package/dist/src/types.d.ts +163 -21
  120. package/dist/src/types.d.ts.map +1 -1
  121. package/dist/src/utils/custom-actions.d.ts +12 -0
  122. package/dist/src/utils/custom-actions.d.ts.map +1 -0
  123. package/dist/src/utils/custom-actions.spec.d.ts +2 -0
  124. package/dist/src/utils/custom-actions.spec.d.ts.map +1 -0
  125. package/dist/src/utils/processData.d.ts.map +1 -1
  126. package/dist/src/utils.d.ts +21 -0
  127. package/dist/src/utils.d.ts.map +1 -1
  128. package/dist/tsembed-react.es.js +1773 -251
  129. package/dist/tsembed-react.js +1772 -250
  130. package/dist/tsembed.es.js +1771 -250
  131. package/dist/tsembed.js +1770 -249
  132. package/dist/visual-embed-sdk-react-full.d.ts +228 -39
  133. package/dist/visual-embed-sdk-react.d.ts +228 -39
  134. package/dist/visual-embed-sdk.d.ts +228 -39
  135. package/lib/package.json +3 -3
  136. package/lib/src/authToken.d.ts +1 -0
  137. package/lib/src/authToken.d.ts.map +1 -1
  138. package/lib/src/authToken.js +11 -2
  139. package/lib/src/authToken.js.map +1 -1
  140. package/lib/src/authToken.spec.js +30 -1
  141. package/lib/src/authToken.spec.js.map +1 -1
  142. package/lib/src/css-variables.d.ts +2 -1
  143. package/lib/src/css-variables.d.ts.map +1 -1
  144. package/lib/src/embed/app.d.ts +22 -1
  145. package/lib/src/embed/app.d.ts.map +1 -1
  146. package/lib/src/embed/app.js +22 -1
  147. package/lib/src/embed/app.js.map +1 -1
  148. package/lib/src/embed/app.spec.js +70 -3
  149. package/lib/src/embed/app.spec.js.map +1 -1
  150. package/lib/src/embed/bodyless-conversation.d.ts +0 -1
  151. package/lib/src/embed/bodyless-conversation.d.ts.map +1 -1
  152. package/lib/src/embed/bodyless-conversation.js +3 -7
  153. package/lib/src/embed/bodyless-conversation.js.map +1 -1
  154. package/lib/src/embed/conversation.d.ts +2 -3
  155. package/lib/src/embed/conversation.d.ts.map +1 -1
  156. package/lib/src/embed/conversation.js +2 -7
  157. package/lib/src/embed/conversation.js.map +1 -1
  158. package/lib/src/embed/liveboard.d.ts +32 -1
  159. package/lib/src/embed/liveboard.d.ts.map +1 -1
  160. package/lib/src/embed/liveboard.js +8 -25
  161. package/lib/src/embed/liveboard.js.map +1 -1
  162. package/lib/src/embed/liveboard.spec.js +96 -28
  163. package/lib/src/embed/liveboard.spec.js.map +1 -1
  164. package/lib/src/embed/sage.d.ts +0 -1
  165. package/lib/src/embed/sage.d.ts.map +1 -1
  166. package/lib/src/embed/sage.js +6 -10
  167. package/lib/src/embed/sage.js.map +1 -1
  168. package/lib/src/embed/sage.spec.js +20 -10
  169. package/lib/src/embed/sage.spec.js.map +1 -1
  170. package/lib/src/embed/search-bar.d.ts +0 -1
  171. package/lib/src/embed/search-bar.d.ts.map +1 -1
  172. package/lib/src/embed/search-bar.js +7 -11
  173. package/lib/src/embed/search-bar.js.map +1 -1
  174. package/lib/src/embed/search.d.ts +0 -1
  175. package/lib/src/embed/search.d.ts.map +1 -1
  176. package/lib/src/embed/search.js +8 -7
  177. package/lib/src/embed/search.js.map +1 -1
  178. package/lib/src/embed/search.spec.js +11 -11
  179. package/lib/src/embed/search.spec.js.map +1 -1
  180. package/lib/src/embed/ts-embed.d.ts +5 -7
  181. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  182. package/lib/src/embed/ts-embed.js +25 -22
  183. package/lib/src/embed/ts-embed.js.map +1 -1
  184. package/lib/src/embed/ts-embed.spec.d.ts.map +1 -1
  185. package/lib/src/embed/ts-embed.spec.js +123 -1
  186. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  187. package/lib/src/errors.d.ts +11 -0
  188. package/lib/src/errors.d.ts.map +1 -1
  189. package/lib/src/errors.js +11 -0
  190. package/lib/src/errors.js.map +1 -1
  191. package/lib/src/index.d.ts +2 -2
  192. package/lib/src/index.d.ts.map +1 -1
  193. package/lib/src/index.js +2 -2
  194. package/lib/src/index.js.map +1 -1
  195. package/lib/src/react/index.d.ts +1 -1
  196. package/lib/src/react/index.d.ts.map +1 -1
  197. package/lib/src/react/index.js +3 -2
  198. package/lib/src/react/index.js.map +1 -1
  199. package/lib/src/react/index.spec.js +1 -1
  200. package/lib/src/react/index.spec.js.map +1 -1
  201. package/lib/src/types.d.ts +163 -21
  202. package/lib/src/types.d.ts.map +1 -1
  203. package/lib/src/types.js +64 -21
  204. package/lib/src/types.js.map +1 -1
  205. package/lib/src/utils/custom-actions.d.ts +12 -0
  206. package/lib/src/utils/custom-actions.d.ts.map +1 -0
  207. package/lib/src/utils/custom-actions.js +175 -0
  208. package/lib/src/utils/custom-actions.js.map +1 -0
  209. package/lib/src/utils/custom-actions.spec.d.ts +2 -0
  210. package/lib/src/utils/custom-actions.spec.d.ts.map +1 -0
  211. package/lib/src/utils/custom-actions.spec.js +397 -0
  212. package/lib/src/utils/custom-actions.spec.js.map +1 -0
  213. package/lib/src/utils/processData.d.ts.map +1 -1
  214. package/lib/src/utils/processData.js +10 -0
  215. package/lib/src/utils/processData.js.map +1 -1
  216. package/lib/src/utils/processData.spec.js +11 -0
  217. package/lib/src/utils/processData.spec.js.map +1 -1
  218. package/lib/src/utils.d.ts +21 -0
  219. package/lib/src/utils.d.ts.map +1 -1
  220. package/lib/src/utils.js +29 -0
  221. package/lib/src/utils.js.map +1 -1
  222. package/lib/src/utils.spec.js +39 -1
  223. package/lib/src/utils.spec.js.map +1 -1
  224. package/lib/src/visual-embed-sdk.d.ts +229 -40
  225. package/package.json +3 -3
  226. package/src/authToken.spec.ts +48 -1
  227. package/src/authToken.ts +13 -2
  228. package/src/css-variables.ts +2 -1
  229. package/src/embed/app.spec.ts +99 -3
  230. package/src/embed/app.ts +44 -1
  231. package/src/embed/bodyless-conversation.ts +3 -8
  232. package/src/embed/conversation.ts +4 -19
  233. package/src/embed/liveboard.spec.ts +128 -30
  234. package/src/embed/liveboard.ts +66 -52
  235. package/src/embed/sage.spec.ts +24 -10
  236. package/src/embed/sage.ts +7 -12
  237. package/src/embed/search-bar.tsx +7 -14
  238. package/src/embed/search.spec.ts +13 -14
  239. package/src/embed/search.ts +8 -19
  240. package/src/embed/ts-embed.spec.ts +136 -2
  241. package/src/embed/ts-embed.ts +31 -28
  242. package/src/errors.ts +12 -0
  243. package/src/index.ts +4 -0
  244. package/src/react/index.spec.tsx +1 -1
  245. package/src/react/index.tsx +5 -2
  246. package/src/types.ts +225 -79
  247. package/src/utils/custom-actions.spec.ts +431 -0
  248. package/src/utils/custom-actions.ts +217 -0
  249. package/src/utils/processData.spec.ts +12 -0
  250. package/src/utils/processData.ts +10 -0
  251. package/src/utils.spec.ts +52 -0
  252. package/src/utils.ts +31 -0
  253. package/dist/index-BDlM0f0T.js +0 -7371
  254. package/dist/index-D1pyb7RG.js +0 -7371
  255. package/dist/index-DeFzsyFF.js +0 -7371
  256. package/dist/index-Dpf0rd6w.js +0 -7371
  257. package/dist/index-UuEbsISo.js +0 -7447
  258. package/dist/index-e3Uw3YFO.js +0 -7371
  259. package/dist/index-k7pkZMhx.js +0 -7371
@@ -46,7 +46,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
46
46
  * incrementally as users scroll the page to view the charts and tables.
47
47
  *
48
48
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
49
- *
49
+ *
50
50
  * Supported embed types: `LiveboardEmbed`
51
51
  * @example
52
52
  * ```js
@@ -61,7 +61,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
61
61
  * This is the minimum height(in pixels) for a full-height Liveboard.
62
62
  * Setting this height helps resolve issues with empty Liveboards and
63
63
  * other screens navigable from a Liveboard.
64
- *
64
+ *
65
65
  * Supported embed types: `LiveboardEmbed`
66
66
  * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
67
67
  * @default 500
@@ -90,7 +90,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
90
90
  /**
91
91
  * The Liveboard to display in the embedded view.
92
92
  * Use either liveboardId or pinboardId to reference the Liveboard to embed.
93
- *
93
+ *
94
94
  * Supported embed types: `LiveboardEmbed`
95
95
  * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
96
96
  * @example
@@ -108,7 +108,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
108
108
  pinboardId?: string;
109
109
  /**
110
110
  * The visualization within the Liveboard to display.
111
- *
111
+ *
112
112
  * Supported embed types: `LiveboardEmbed`
113
113
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
114
114
  * @example
@@ -123,7 +123,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
123
123
  /**
124
124
  * If set to true, all filter chips from a
125
125
  * Liveboard page will be read-only (no X buttons)
126
- *
126
+ *
127
127
  * Supported embed types: `LiveboardEmbed`
128
128
  * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1.sw
129
129
  * @example
@@ -139,7 +139,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
139
139
  * Array of visualization IDs which should be visible when the Liveboard
140
140
  * renders. This can be changed by triggering the `SetVisibleVizs`
141
141
  * event.
142
- *
142
+ *
143
143
  * Supported embed types: `LiveboardEmbed`
144
144
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
145
145
  * @example
@@ -161,7 +161,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
161
161
  /**
162
162
  * Render embedded Liveboards and visualizations in the
163
163
  * new Liveboard experience mode.
164
- *
164
+ *
165
165
  * Supported embed types: `LiveboardEmbed`
166
166
  * @version SDK: 1.14.0 | ThoughtSpot: 8.6.0.cl, 8.8.1-sw
167
167
  * @example
@@ -176,7 +176,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
176
176
  /**
177
177
  * Set a Liveboard tab as an active tab.
178
178
  * Specify the tab ID.
179
- *
179
+ *
180
180
  * Supported embed types: `LiveboardEmbed`
181
181
  * @example
182
182
  * ```js
@@ -190,7 +190,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
190
190
  activeTabId?: string;
191
191
  /**
192
192
  * Show or hide the tab panel of the embedded Liveboard.
193
- *
193
+ *
194
194
  * Supported embed types: `LiveboardEmbed`
195
195
  * @version SDK: 1.25.0 | ThoughtSpot: 9.6.0.cl, 9.8.0.sw
196
196
  * @example
@@ -211,7 +211,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
211
211
  *
212
212
  * Since, this will show preview images, be careful that it may show
213
213
  * undesired data to the user when using row level security.
214
- *
214
+ *
215
215
  * Supported embed types: `LiveboardEmbed`
216
216
  * @example
217
217
  * ```js
@@ -227,8 +227,8 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
227
227
  showPreviewLoader?: boolean;
228
228
  /**
229
229
  * The Liveboard to run on regular intervals to fetch the cdw token.
230
- *
231
- * Supported embed types: `LiveboardEmbed`
230
+ *
231
+ * Supported embed types: `LiveboardEmbed`
232
232
  * @hidden
233
233
  * @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
234
234
  * @example
@@ -242,7 +242,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
242
242
 
243
243
  /**
244
244
  * The Liveboard is set to force a token fetch during the initial load.
245
- *
245
+ *
246
246
  * Supported embed types: `LiveboardEmbed`
247
247
  * @hidden
248
248
  * @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
@@ -259,7 +259,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
259
259
  * The source connection ID for authentication.
260
260
  * @hidden
261
261
  * @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
262
- *
262
+ *
263
263
  * Supported embed types: `LiveboardEmbed`
264
264
  * @example
265
265
  * ```js
@@ -273,7 +273,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
273
273
  * The list of tab IDs to hide from the embedded.
274
274
  * This Tabs will be hidden from their respective LBs.
275
275
  * Use this to hide an tabID.
276
- *
276
+ *
277
277
  * Supported embed types: `LiveboardEmbed`
278
278
  * @example
279
279
  * ```js
@@ -293,7 +293,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
293
293
  * Only the tabs specified in the array will be shown in the Liveboard.
294
294
  *
295
295
  * Use either `visibleTabs` or `hiddenTabs`.
296
- *
296
+ *
297
297
  * Supported embed types: `LiveboardEmbed`
298
298
  * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 10.1.0.sw
299
299
  * @example
@@ -310,7 +310,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
310
310
  visibleTabs?: string[];
311
311
  /**
312
312
  * This flag is used to enable/disable the styling and grouping in a Liveboard
313
- *
313
+ *
314
314
  * Supported embed types: `LiveboardEmbed`, `AppEmbed`
315
315
  * @type {boolean}
316
316
  * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
@@ -324,9 +324,25 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
324
324
  * ```
325
325
  */
326
326
  isLiveboardStylingAndGroupingEnabled?: boolean;
327
+ /**
328
+ * This flag is used to enable/disable the png embedding of liveboard in scheduled mails
329
+ *
330
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
331
+ * @type {boolean}
332
+ * @version SDK: 1.42.0 | ThoughtSpot: 10.14.0.cl
333
+ * @example
334
+ * ```js
335
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
336
+ * const embed = new <EmbedComponent>('#tsEmbed', {
337
+ * ... // other embed view config
338
+ * isPNGInScheduledEmailsEnabled: true,
339
+ * })
340
+ * ```
341
+ */
342
+ isPNGInScheduledEmailsEnabled?: boolean;
327
343
  /**
328
344
  * This flag is used to enable the full height lazy load data.
329
- *
345
+ *
330
346
  * @example
331
347
  * ```js
332
348
  * const embed = new LiveboardEmbed('#embed-container', {
@@ -335,7 +351,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
335
351
  * lazyLoadingForFullHeight: true,
336
352
  * })
337
353
  * ```
338
- *
354
+ *
339
355
  * @type {boolean}
340
356
  * @default false
341
357
  * @version SDK: 1.40.0 | ThoughtSpot:10.12.0.cl
@@ -343,13 +359,13 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
343
359
  lazyLoadingForFullHeight?: boolean;
344
360
  /**
345
361
  * The margin to be used for lazy loading.
346
- *
362
+ *
347
363
  * For example, if the margin is set to '10px',
348
364
  * the visualization will be loaded 10px before the its top edge is visible in the
349
365
  * viewport.
350
- *
366
+ *
351
367
  * The format is similar to CSS margin.
352
- *
368
+ *
353
369
  * @example
354
370
  * ```js
355
371
  * const embed = new LiveboardEmbed('#embed-container', {
@@ -364,6 +380,22 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
364
380
  * @version SDK: 1.40.0 | ThoughtSpot:10.12.0.cl
365
381
  */
366
382
  lazyLoadingMargin?: string;
383
+ /**
384
+ * showSpotterLimitations : show limitation text
385
+ * of the spotter underneath the chat input.
386
+ * default is false.
387
+ *
388
+ * @example
389
+ * ```js
390
+ * const embed = new LiveboardEmbed('#embed-container', {
391
+ * // ...other options
392
+ * showSpotterLimitations: true,
393
+ * })
394
+ * ```
395
+ * @type {boolean}
396
+ * @version SDK: 1.41.1 | ThoughtSpot: 10.5.0.cl
397
+ */
398
+ showSpotterLimitations?: boolean;
367
399
  }
368
400
 
369
401
  /**
@@ -408,12 +440,6 @@ export class LiveboardEmbed extends V1Embed {
408
440
  * embedded Liveboard or visualization.
409
441
  */
410
442
  protected getEmbedParams() {
411
- const params = this.getEmbedParamsObject();
412
- const queryParams = getQueryParamString(params, true);
413
- return queryParams;
414
- }
415
-
416
- protected getEmbedParamsObject() {
417
443
  let params: any = {};
418
444
  params = this.getBaseQueryParams(params);
419
445
  const {
@@ -435,13 +461,16 @@ export class LiveboardEmbed extends V1Embed {
435
461
  hideIrrelevantChipsInLiveboardTabs = false,
436
462
  enableAskSage,
437
463
  enable2ColumnLayout,
438
- dataPanelV2 = false,
464
+ dataPanelV2 = true,
439
465
  enableCustomColumnGroups = false,
440
466
  oAuthPollingInterval,
441
467
  isForceRedirect,
442
468
  dataSourceId,
443
469
  coverAndFilterOptionInPDF = false,
470
+ liveboardXLSXCSVDownload = false,
444
471
  isLiveboardStylingAndGroupingEnabled,
472
+ isPNGInScheduledEmailsEnabled = false,
473
+ showSpotterLimitations,
445
474
  } = this.viewConfig;
446
475
 
447
476
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
@@ -509,30 +538,12 @@ export class LiveboardEmbed extends V1Embed {
509
538
  params[Param.IsLiveboardStylingAndGroupingEnabled] = isLiveboardStylingAndGroupingEnabled;
510
539
  }
511
540
 
512
- params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
513
- params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
514
- params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
515
- params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
516
- params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
517
- params[Param.DataPanelV2Enabled] = dataPanelV2;
518
- params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
519
- params[Param.CoverAndFilterOptionInPDF] = coverAndFilterOptionInPDF;
520
-
521
- if (oAuthPollingInterval !== undefined) {
522
- params[Param.OauthPollingInterval] = oAuthPollingInterval;
523
- }
524
-
525
- if (isForceRedirect) {
526
- params[Param.IsForceRedirect] = isForceRedirect;
527
- }
528
-
529
- if (dataSourceId !== undefined) {
530
- params[Param.DataSourceId] = dataSourceId;
541
+ if (isPNGInScheduledEmailsEnabled !== undefined) {
542
+ params[Param.isPNGInScheduledEmailsEnabled] = isPNGInScheduledEmailsEnabled;
531
543
  }
532
544
 
533
-
534
- if (isLiveboardStylingAndGroupingEnabled !== undefined) {
535
- params[Param.IsLiveboardStylingAndGroupingEnabled] = isLiveboardStylingAndGroupingEnabled;
545
+ if (showSpotterLimitations !== undefined) {
546
+ params[Param.ShowSpotterLimitations] = showSpotterLimitations;
536
547
  }
537
548
 
538
549
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
@@ -543,7 +554,10 @@ export class LiveboardEmbed extends V1Embed {
543
554
  params[Param.DataPanelV2Enabled] = dataPanelV2;
544
555
  params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
545
556
  params[Param.CoverAndFilterOptionInPDF] = coverAndFilterOptionInPDF;
546
- return params;
557
+ params[Param.LiveboardXLSXCSVDownload] = !!liveboardXLSXCSVDownload;
558
+ const queryParams = getQueryParamString(params, true);
559
+
560
+ return queryParams;
547
561
  }
548
562
 
549
563
  private getIframeSuffixSrc(liveboardId: string, vizId: string, activeTabId: string) {
@@ -18,7 +18,7 @@ const defaultConfig: SageViewConfig = {
18
18
  hideAutocompleteSuggestions: false,
19
19
  hideSampleQuestions: false,
20
20
  isProductTour: false,
21
- dataPanelV2: false,
21
+ dataPanelV2: true,
22
22
  };
23
23
 
24
24
  const thoughtSpotHost = 'tshost';
@@ -43,7 +43,7 @@ describe('Sage embed tests', () => {
43
43
  await executeAfterWait(() => {
44
44
  expectUrlMatch(
45
45
  getIFrameSrc(),
46
- `http://${thoughtSpotHost}/?embedApp=true&enableDataPanelV2=false&isSageEmbed=true&disableWorksheetChange=false&hideWorksheetSelector=false&hideEurekaSuggestions=false&isProductTour=false&hideSageAnswerHeader=false&hideAction=%5B%22reportError%22%5D#/embed/eureka`,
46
+ `http://${thoughtSpotHost}/?embedApp=true&enableDataPanelV2=true&isSageEmbed=true&disableWorksheetChange=false&hideWorksheetSelector=false&hideEurekaSuggestions=false&isProductTour=false&hideSageAnswerHeader=false&hideAction=%5B%22reportError%22%5D#/embed/eureka`,
47
47
  );
48
48
  });
49
49
  });
@@ -54,7 +54,7 @@ describe('Sage embed tests', () => {
54
54
  await executeAfterWait(() => {
55
55
  expectUrlMatch(
56
56
  getIFrameSrc(),
57
- `http://${thoughtSpotHost}/?embedApp=true&enableDataPanelV2=false&isSageEmbed=true&disableWorksheetChange=false&hideWorksheetSelector=false&hideEurekaSuggestions=false&isProductTour=true&hideSageAnswerHeader=false&hideAction=%5B%22reportError%22%5D#/embed/eureka`,
57
+ `http://${thoughtSpotHost}/?embedApp=true&enableDataPanelV2=true&isSageEmbed=true&disableWorksheetChange=false&hideWorksheetSelector=false&hideEurekaSuggestions=false&isProductTour=true&hideSageAnswerHeader=false&hideAction=%5B%22reportError%22%5D#/embed/eureka`,
58
58
  );
59
59
  });
60
60
  });
@@ -68,7 +68,7 @@ describe('Sage embed tests', () => {
68
68
  await executeAfterWait(() => {
69
69
  expectUrlMatch(
70
70
  getIFrameSrc(),
71
- `http://${thoughtSpotHost}/?embedApp=true&enableDataPanelV2=false&isSageEmbed=true&disableWorksheetChange=true&hideWorksheetSelector=false&hideEurekaSuggestions=false&isProductTour=false&hideSageAnswerHeader=false&hideAction=%5B%22reportError%22%5D#/embed/eureka`,
71
+ `http://${thoughtSpotHost}/?embedApp=true&enableDataPanelV2=true&isSageEmbed=true&disableWorksheetChange=true&hideWorksheetSelector=false&hideEurekaSuggestions=false&isProductTour=false&hideSageAnswerHeader=false&hideAction=%5B%22reportError%22%5D#/embed/eureka`,
72
72
  );
73
73
  });
74
74
  });
@@ -82,7 +82,7 @@ describe('Sage embed tests', () => {
82
82
  await executeAfterWait(() => {
83
83
  expectUrlMatch(
84
84
  getIFrameSrc(),
85
- `http://${thoughtSpotHost}/?embedApp=true&enableDataPanelV2=false&isSageEmbed=true&disableWorksheetChange=false&hideWorksheetSelector=true&hideEurekaSuggestions=false&isProductTour=false&hideSageAnswerHeader=false&hideAction=%5B%22reportError%22%5D#/embed/eureka`,
85
+ `http://${thoughtSpotHost}/?embedApp=true&enableDataPanelV2=true&isSageEmbed=true&disableWorksheetChange=false&hideWorksheetSelector=true&hideEurekaSuggestions=false&isProductTour=false&hideSageAnswerHeader=false&hideAction=%5B%22reportError%22%5D#/embed/eureka`,
86
86
  );
87
87
  });
88
88
  });
@@ -96,7 +96,7 @@ describe('Sage embed tests', () => {
96
96
  await executeAfterWait(() => {
97
97
  expectUrlMatch(
98
98
  getIFrameSrc(),
99
- `http://${thoughtSpotHost}/?embedApp=true&enableDataPanelV2=false&isSageEmbed=true&disableWorksheetChange=false&hideWorksheetSelector=false&hideEurekaSuggestions=false&isProductTour=false&hideSageAnswerHeader=true&hideAction=%5B%22reportError%22%5D#/embed/eureka`,
99
+ `http://${thoughtSpotHost}/?embedApp=true&enableDataPanelV2=true&isSageEmbed=true&disableWorksheetChange=false&hideWorksheetSelector=false&hideEurekaSuggestions=false&isProductTour=false&hideSageAnswerHeader=true&hideAction=%5B%22reportError%22%5D#/embed/eureka`,
100
100
  );
101
101
  });
102
102
  });
@@ -110,7 +110,7 @@ describe('Sage embed tests', () => {
110
110
  await executeAfterWait(() => {
111
111
  expectUrlMatch(
112
112
  getIFrameSrc(),
113
- `http://${thoughtSpotHost}/?embedApp=true&enableDataPanelV2=false&isSageEmbed=true&disableWorksheetChange=false&hideWorksheetSelector=false&hideEurekaSuggestions=true&isProductTour=false&hideSageAnswerHeader=false&hideAction=%5B%22reportError%22%5D#/embed/eureka`,
113
+ `http://${thoughtSpotHost}/?embedApp=true&enableDataPanelV2=true&isSageEmbed=true&disableWorksheetChange=false&hideWorksheetSelector=false&hideEurekaSuggestions=true&isProductTour=false&hideSageAnswerHeader=false&hideAction=%5B%22reportError%22%5D#/embed/eureka`,
114
114
  );
115
115
  });
116
116
  });
@@ -137,7 +137,7 @@ describe('Sage embed tests', () => {
137
137
  await executeAfterWait(() => {
138
138
  expectUrlMatch(
139
139
  getIFrameSrc(),
140
- `http://${thoughtSpotHost}/?embedApp=true&enableDataPanelV2=false&isSageEmbed=true&disableWorksheetChange=false&hideWorksheetSelector=false&hideEurekaSuggestions=false&isProductTour=false&hideSageAnswerHeader=false&hideAction=%5B%22reportError%22%5D#/embed/eureka?worksheet=worksheet-id`,
140
+ `http://${thoughtSpotHost}/?embedApp=true&enableDataPanelV2=true&isSageEmbed=true&disableWorksheetChange=false&hideWorksheetSelector=false&hideEurekaSuggestions=false&isProductTour=false&hideSageAnswerHeader=false&hideAction=%5B%22reportError%22%5D#/embed/eureka?worksheet=worksheet-id`,
141
141
  );
142
142
  });
143
143
  });
@@ -154,7 +154,7 @@ describe('Sage embed tests', () => {
154
154
  await executeAfterWait(() => {
155
155
  expectUrlMatch(
156
156
  getIFrameSrc(),
157
- `http://${thoughtSpotHost}/?embedApp=true&enableDataPanelV2=false&isSageEmbed=true&disableWorksheetChange=false&hideWorksheetSelector=false&hideEurekaSuggestions=false&isProductTour=false&hideSageAnswerHeader=false&hideAction=%5B%22reportError%22%5D#/embed/eureka?worksheet=worksheet-id&query=test%20query`,
157
+ `http://${thoughtSpotHost}/?embedApp=true&enableDataPanelV2=true&isSageEmbed=true&disableWorksheetChange=false&hideWorksheetSelector=false&hideEurekaSuggestions=false&isProductTour=false&hideSageAnswerHeader=false&hideAction=%5B%22reportError%22%5D#/embed/eureka?worksheet=worksheet-id&query=test%20query`,
158
158
  );
159
159
  });
160
160
  });
@@ -171,7 +171,7 @@ describe('Sage embed tests', () => {
171
171
  await executeAfterWait(() => {
172
172
  expectUrlMatch(
173
173
  getIFrameSrc(),
174
- `http://${thoughtSpotHost}/?embedApp=true&enableDataPanelV2=false&isSageEmbed=true&disableWorksheetChange=false&hideWorksheetSelector=false&hideEurekaSuggestions=false&hideAction=%5B%22reportError%22%5D#/embed/eureka?executeSearch=true&query=test-query`,
174
+ `http://${thoughtSpotHost}/?embedApp=true&enableDataPanelV2=true&isSageEmbed=true&disableWorksheetChange=false&hideWorksheetSelector=false&hideEurekaSuggestions=false&hideAction=%5B%22reportError%22%5D#/embed/eureka?executeSearch=true&query=test-query`,
175
175
  );
176
176
  });
177
177
  });
@@ -189,4 +189,18 @@ describe('Sage embed tests', () => {
189
189
  );
190
190
  });
191
191
  });
192
+
193
+ test('should set enableDataPanelV2 to false if data panel v2 flag is false', async () => {
194
+ const sageEmbed = new SageEmbed(getRootEl(), {
195
+ ...defaultConfig,
196
+ dataPanelV2: false,
197
+ });
198
+ await sageEmbed.render();
199
+ await executeAfterWait(() => {
200
+ expectUrlMatch(
201
+ getIFrameSrc(),
202
+ `http://${thoughtSpotHost}/?embedApp=true&enableDataPanelV2=false&isSageEmbed=true&disableWorksheetChange=false&hideWorksheetSelector=false&hideEurekaSuggestions=false&isProductTour=false&hideSageAnswerHeader=false&hideAction=%5B%22reportError%22%5D#/embed/eureka`,
203
+ );
204
+ });
205
+ });
192
206
  });
package/src/embed/sage.ts CHANGED
@@ -153,7 +153,12 @@ export class SageEmbed extends V1Embed {
153
153
  super(domSelector, viewConfig);
154
154
  }
155
155
 
156
- protected getEmbedParamsObject() {
156
+ /**
157
+ * Constructs a map of parameters to be passed on to the
158
+ * embedded Eureka or Sage search page.
159
+ * @returns {string} query string
160
+ */
161
+ protected getEmbedParams(): string {
157
162
  const {
158
163
  disableWorksheetChange,
159
164
  hideWorksheetSelector,
@@ -179,16 +184,6 @@ export class SageEmbed extends V1Embed {
179
184
  params[Param.IsProductTour] = !!isProductTour;
180
185
  params[Param.HideSageAnswerHeader] = !!hideSageAnswerHeader;
181
186
 
182
- return params;
183
- }
184
-
185
- /**
186
- * Constructs a map of parameters to be passed on to the
187
- * embedded Eureka or Sage search page.
188
- * @returns {string} query string
189
- */
190
- protected getEmbedParams(): string {
191
- const params = this.getEmbedParamsObject();
192
187
  return getQueryParamString(params, true);
193
188
  }
194
189
 
@@ -199,7 +194,7 @@ export class SageEmbed extends V1Embed {
199
194
  */
200
195
  public getIFrameSrc(): string {
201
196
  const path = 'eureka';
202
- const postHashObj: Record<string, any> = {};
197
+ const postHashObj = {};
203
198
  const tsPostHashParams = this.getThoughtSpotPostUrlParams();
204
199
  const {
205
200
  dataSource, searchOptions,
@@ -118,7 +118,12 @@ export class SearchBarEmbed extends TsEmbed {
118
118
  this.viewConfig = viewConfig;
119
119
  }
120
120
 
121
- protected getEmbedParamsObject() {
121
+ /**
122
+ * Construct the URL of the embedded ThoughtSpot search to be
123
+ * loaded in the iframe
124
+ * @param dataSources A list of data source GUIDs
125
+ */
126
+ private getIFrameSrc() {
122
127
  const {
123
128
  searchOptions,
124
129
  dataSource,
@@ -126,6 +131,7 @@ export class SearchBarEmbed extends TsEmbed {
126
131
  useLastSelectedSources = false,
127
132
  excludeSearchTokenStringFromURL,
128
133
  } = this.viewConfig;
134
+ const path = 'search-bar-embed';
129
135
  const queryParams = this.getBaseQueryParams();
130
136
 
131
137
  queryParams[Param.HideActions] = [...(queryParams[Param.HideActions] ?? [])];
@@ -153,19 +159,6 @@ export class SearchBarEmbed extends TsEmbed {
153
159
  queryParams[Param.UseLastSelectedDataSource] = false;
154
160
  }
155
161
  queryParams[Param.searchEmbed] = true;
156
-
157
- return queryParams;
158
- }
159
-
160
- /**
161
- * Construct the URL of the embedded ThoughtSpot search to be
162
- * loaded in the iframe
163
- * @param dataSources A list of data source GUIDs
164
- */
165
- private getIFrameSrc() {
166
- const queryParams = this.getEmbedParamsObject();
167
- const path = 'search-bar-embed';
168
-
169
162
  let query = '';
170
163
  const queryParamsString = getQueryParamString(queryParams, true);
171
164
  if (queryParamsString) {
@@ -6,9 +6,7 @@ import {
6
6
  } from './search';
7
7
  import * as authInstance from '../auth';
8
8
  import { init } from '../index';
9
- import {
10
- Action, AuthType, EmbedEvent, RuntimeFilterOp,
11
- } from '../types';
9
+ import { Action, AuthType, EmbedEvent, RuntimeFilterOp } from '../types';
12
10
  import {
13
11
  executeAfterWait,
14
12
  getDocumentBody,
@@ -58,7 +56,7 @@ describe('Search embed tests', () => {
58
56
  await executeAfterWait(() => {
59
57
  expectUrlMatchesWithParams(
60
58
  getIFrameSrc(),
61
- `http://${thoughtSpotHost}/v2/?${defaultParamsWithHiddenActions}&enableDataPanelV2=false&dataSourceMode=expand&useLastSelectedSources=false${prefixParams}#/embed/answer`,
59
+ `http://${thoughtSpotHost}/v2/?${defaultParamsWithHiddenActions}&enableDataPanelV2=true&dataSourceMode=expand&useLastSelectedSources=false${prefixParams}#/embed/answer`,
62
60
  );
63
61
  });
64
62
  });
@@ -444,7 +442,7 @@ describe('Search embed tests', () => {
444
442
  await executeAfterWait(() => {
445
443
  expectUrlMatchesWithParams(
446
444
  getIFrameSrc(),
447
- `http://${thoughtSpotHost}/v2/?${defaultParamsWithHiddenActions}&dataSourceMode=expand&enableDataPanelV2=false&useLastSelectedSources=true${prefixParams}#/embed/saved-answer/${answerId}`,
445
+ `http://${thoughtSpotHost}/v2/?${defaultParamsWithHiddenActions}&dataSourceMode=expand&enableDataPanelV2=true&useLastSelectedSources=true${prefixParams}#/embed/saved-answer/${answerId}`,
448
446
  );
449
447
  });
450
448
  });
@@ -459,7 +457,7 @@ describe('Search embed tests', () => {
459
457
  await executeAfterWait(() => {
460
458
  expectUrlMatchesWithParams(
461
459
  getIFrameSrc(),
462
- `http://${thoughtSpotHost}/v2/?${defaultParamsWithHiddenActions}&dataSources=[%22data-source-1%22]&dataSourceMode=expand&enableDataPanelV2=false&useLastSelectedSources=false${prefixParams}#/embed/saved-answer/${answerId}`,
460
+ `http://${thoughtSpotHost}/v2/?${defaultParamsWithHiddenActions}&dataSources=[%22data-source-1%22]&dataSourceMode=expand&enableDataPanelV2=true&useLastSelectedSources=false${prefixParams}#/embed/saved-answer/${answerId}`,
463
461
  );
464
462
  });
465
463
  });
@@ -474,7 +472,7 @@ describe('Search embed tests', () => {
474
472
  await executeAfterWait(() => {
475
473
  expectUrlMatchesWithParams(
476
474
  getIFrameSrc(),
477
- `http://${thoughtSpotHost}/v2/?${defaultParamsWithHiddenActions}&dataSources=[%22data-source-1%22]&dataSourceMode=expand&enableDataPanelV2=false&useLastSelectedSources=false${prefixParams}#/embed/saved-answer/${answerId}`,
475
+ `http://${thoughtSpotHost}/v2/?${defaultParamsWithHiddenActions}&dataSources=[%22data-source-1%22]&dataSourceMode=expand&enableDataPanelV2=true&useLastSelectedSources=false${prefixParams}#/embed/saved-answer/${answerId}`,
478
476
  );
479
477
  });
480
478
  });
@@ -505,7 +503,7 @@ describe('Search embed tests', () => {
505
503
  await executeAfterWait(() => {
506
504
  expectUrlMatchesWithParams(
507
505
  getIFrameSrc(),
508
- `http://${thoughtSpotHost}/v2/?${defaultParamsWithHiddenActions}&dataSourceMode=expand&enableDataPanelV2=false&useLastSelectedSources=false&hideSearchBar=true${prefixParams}#/embed/saved-answer/${answerId}`,
506
+ `http://${thoughtSpotHost}/v2/?${defaultParamsWithHiddenActions}&dataSourceMode=expand&enableDataPanelV2=true&useLastSelectedSources=false&hideSearchBar=true${prefixParams}#/embed/saved-answer/${answerId}`,
509
507
  );
510
508
  });
511
509
  });
@@ -528,13 +526,14 @@ describe('Search embed tests', () => {
528
526
  const searchEmbed = new SearchEmbed(getRootEl(), {
529
527
  ...defaultViewConfig,
530
528
  // eslint-disable-next-line max-len
531
- dataPanelCustomGroupsAccordionInitialState: DataPanelCustomColumnGroupsAccordionState.EXPAND_FIRST,
529
+ dataPanelCustomGroupsAccordionInitialState:
530
+ DataPanelCustomColumnGroupsAccordionState.EXPAND_FIRST,
532
531
  });
533
532
  searchEmbed.render();
534
533
  await executeAfterWait(() => {
535
534
  expectUrlMatchesWithParams(
536
535
  getIFrameSrc(),
537
- `http://${thoughtSpotHost}/v2/?${defaultParamsWithHiddenActions}&dataSourceMode=expand&enableDataPanelV2=false&useLastSelectedSources=false&dataPanelCustomGroupsAccordionInitialState=EXPAND_FIRST${prefixParams}#/embed/saved-answer/${answerId}`,
536
+ `http://${thoughtSpotHost}/v2/?${defaultParamsWithHiddenActions}&dataSourceMode=expand&enableDataPanelV2=true&useLastSelectedSources=false&dataPanelCustomGroupsAccordionInitialState=EXPAND_FIRST${prefixParams}#/embed/saved-answer/${answerId}`,
538
537
  );
539
538
  });
540
539
  });
@@ -566,7 +565,7 @@ describe('Search embed tests', () => {
566
565
  await executeAfterWait(() => {
567
566
  expectUrlMatchesWithParams(
568
567
  getIFrameSrc(),
569
- `http://${thoughtSpotHost}/v2/?${defaultParamsWithHiddenActions}&dataSourceMode=expand&enableDataPanelV2=false&useLastSelectedSources=false${prefixParams}#/embed/saved-answer/${answerId}`,
568
+ `http://${thoughtSpotHost}/v2/?${defaultParamsWithHiddenActions}&dataSourceMode=expand&enableDataPanelV2=true&useLastSelectedSources=false${prefixParams}#/embed/saved-answer/${answerId}`,
570
569
  );
571
570
  });
572
571
 
@@ -612,7 +611,7 @@ describe('Search embed tests', () => {
612
611
  await executeAfterWait(() => {
613
612
  expectUrlMatchesWithParams(
614
613
  getIFrameSrc(),
615
- `http://${thoughtSpotHost}/v2/?${defaultParamsWithHiddenActions}&executeSearch=true&dataSourceMode=expand&enableDataPanelV2=false&useLastSelectedSources=false${prefixParams}#/embed/saved-answer/${answerId}`,
614
+ `http://${thoughtSpotHost}/v2/?${defaultParamsWithHiddenActions}&executeSearch=true&dataSourceMode=expand&enableDataPanelV2=true&useLastSelectedSources=false${prefixParams}#/embed/saved-answer/${answerId}`,
616
615
  );
617
616
  });
618
617
 
@@ -640,7 +639,7 @@ describe('Search embed tests', () => {
640
639
  await executeAfterWait(() => {
641
640
  expectUrlMatchesWithParams(
642
641
  getIFrameSrc(),
643
- `http://${thoughtSpotHost}/v2/?${defaultParamsWithHiddenActions}&dataSourceMode=expand&enableDataPanelV2=false&useLastSelectedSources=false&searchTokenString=[commit date][revenue]${prefixParams}#/embed/saved-answer/${answerId}`,
642
+ `http://${thoughtSpotHost}/v2/?${defaultParamsWithHiddenActions}&dataSourceMode=expand&enableDataPanelV2=true&useLastSelectedSources=false&searchTokenString=[commit date][revenue]${prefixParams}#/embed/saved-answer/${answerId}`,
644
643
  );
645
644
  });
646
645
  });
@@ -660,7 +659,7 @@ describe('Search embed tests', () => {
660
659
  await executeAfterWait(() => {
661
660
  expectUrlMatchesWithParams(
662
661
  getIFrameSrc(),
663
- `http://${thoughtSpotHost}/v2/?${defaultParamsWithHiddenActions}&dataSourceMode=expand&enableDataPanelV2=false&useLastSelectedSources=false&searchTokenString=[commit date][revenue]${prefixParams}#/embed/saved-answer/${answerId}`,
662
+ `http://${thoughtSpotHost}/v2/?${defaultParamsWithHiddenActions}&dataSourceMode=expand&enableDataPanelV2=true&useLastSelectedSources=false&searchTokenString=[commit date][revenue]${prefixParams}#/embed/saved-answer/${answerId}`,
664
663
  );
665
664
  });
666
665
 
@@ -331,7 +331,7 @@ export const HiddenActionItemByDefaultForSearchEmbed = [
331
331
  ];
332
332
 
333
333
  export interface SearchAppInitData extends DefaultAppInitData {
334
- searchOptions?: SearchOptions;
334
+ searchOptions?: SearchOptions;
335
335
  }
336
336
 
337
337
  /**
@@ -381,7 +381,7 @@ export class SearchEmbed extends TsEmbed {
381
381
  return { ...defaultAppInitData, ...this.getSearchInitData() };
382
382
  }
383
383
 
384
- protected getEmbedParamsObject() {
384
+ protected getEmbedParams(): string {
385
385
  const {
386
386
  hideResults,
387
387
  enableSearchAssist,
@@ -392,13 +392,13 @@ export class SearchEmbed extends TsEmbed {
392
392
  dataSources,
393
393
  excludeRuntimeFiltersfromURL,
394
394
  hideSearchBar,
395
- dataPanelV2 = false,
395
+ dataPanelV2 = true,
396
396
  useLastSelectedSources = false,
397
397
  runtimeParameters,
398
398
  collapseSearchBarInitially = false,
399
399
  enableCustomColumnGroups = false,
400
400
  isOnBeforeGetVizDataInterceptEnabled = false,
401
-
401
+ /* eslint-disable-next-line max-len */
402
402
  dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL,
403
403
  focusSearchBarOnRender = true,
404
404
  excludeRuntimeParametersfromURL,
@@ -443,7 +443,7 @@ export class SearchEmbed extends TsEmbed {
443
443
  }
444
444
 
445
445
  if (isOnBeforeGetVizDataInterceptEnabled) {
446
-
446
+ /* eslint-disable-next-line max-len */
447
447
  queryParams[Param.IsOnBeforeGetVizDataInterceptEnabled] = isOnBeforeGetVizDataInterceptEnabled;
448
448
  }
449
449
 
@@ -460,7 +460,7 @@ export class SearchEmbed extends TsEmbed {
460
460
  }
461
461
 
462
462
  queryParams[Param.searchEmbed] = true;
463
-
463
+ /* eslint-disable-next-line max-len */
464
464
  queryParams[Param.CollapseSearchBarInitially] = collapseSearchBarInitially || collapseSearchBar;
465
465
  queryParams[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
466
466
  if (dataPanelCustomGroupsAccordionInitialState
@@ -468,23 +468,12 @@ export class SearchEmbed extends TsEmbed {
468
468
  || dataPanelCustomGroupsAccordionInitialState
469
469
  === DataPanelCustomColumnGroupsAccordionState.EXPAND_FIRST
470
470
  ) {
471
-
471
+ /* eslint-disable-next-line max-len */
472
472
  queryParams[Param.DataPanelCustomGroupsAccordionInitialState] = dataPanelCustomGroupsAccordionInitialState;
473
473
  } else {
474
-
474
+ /* eslint-disable-next-line max-len */
475
475
  queryParams[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL;
476
476
  }
477
- return queryParams;
478
- }
479
-
480
- protected getEmbedParams() {
481
- const {
482
- runtimeParameters,
483
- runtimeFilters,
484
- excludeRuntimeParametersfromURL,
485
- excludeRuntimeFiltersfromURL,
486
- } = this.viewConfig;
487
- const queryParams = this.getEmbedParamsObject();
488
477
  let query = '';
489
478
  const queryParamsString = getQueryParamString(queryParams, true);
490
479
  if (queryParamsString) {