@thoughtspot/visual-embed-sdk 1.46.1 → 1.46.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/auth.d.ts +29 -4
  3. package/cjs/src/auth.d.ts.map +1 -1
  4. package/cjs/src/auth.js +29 -7
  5. package/cjs/src/auth.js.map +1 -1
  6. package/cjs/src/auth.spec.js +1 -3
  7. package/cjs/src/auth.spec.js.map +1 -1
  8. package/cjs/src/authToken.js +0 -1
  9. package/cjs/src/authToken.js.map +1 -1
  10. package/cjs/src/authToken.spec.js +2 -1
  11. package/cjs/src/authToken.spec.js.map +1 -1
  12. package/cjs/src/css-variables.d.ts +17 -17
  13. package/cjs/src/embed/app.d.ts +62 -33
  14. package/cjs/src/embed/app.d.ts.map +1 -1
  15. package/cjs/src/embed/app.js +10 -3
  16. package/cjs/src/embed/app.js.map +1 -1
  17. package/cjs/src/embed/app.spec.js +34 -1
  18. package/cjs/src/embed/app.spec.js.map +1 -1
  19. package/cjs/src/embed/auto-frame-renderer.d.ts +41 -0
  20. package/cjs/src/embed/auto-frame-renderer.d.ts.map +1 -0
  21. package/cjs/src/embed/auto-frame-renderer.js +145 -0
  22. package/cjs/src/embed/auto-frame-renderer.js.map +1 -0
  23. package/cjs/src/embed/auto-frame-renderer.spec.d.ts +2 -0
  24. package/cjs/src/embed/auto-frame-renderer.spec.d.ts.map +1 -0
  25. package/cjs/src/embed/auto-frame-renderer.spec.js +195 -0
  26. package/cjs/src/embed/auto-frame-renderer.spec.js.map +1 -0
  27. package/cjs/src/embed/base.d.ts +2 -2
  28. package/cjs/src/embed/base.d.ts.map +1 -1
  29. package/cjs/src/embed/base.js +6 -9
  30. package/cjs/src/embed/base.js.map +1 -1
  31. package/cjs/src/embed/bodyless-conversation.d.ts +5 -5
  32. package/cjs/src/embed/bodyless-conversation.js +4 -4
  33. package/cjs/src/embed/conversation.d.ts +43 -30
  34. package/cjs/src/embed/conversation.d.ts.map +1 -1
  35. package/cjs/src/embed/conversation.js +10 -11
  36. package/cjs/src/embed/conversation.js.map +1 -1
  37. package/cjs/src/embed/conversation.spec.js +27 -0
  38. package/cjs/src/embed/conversation.spec.js.map +1 -1
  39. package/cjs/src/embed/hostEventClient/host-event-client.js +0 -2
  40. package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
  41. package/cjs/src/embed/liveboard.d.ts +42 -35
  42. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  43. package/cjs/src/embed/liveboard.js +6 -4
  44. package/cjs/src/embed/liveboard.js.map +1 -1
  45. package/cjs/src/embed/liveboard.spec.js +5 -3
  46. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  47. package/cjs/src/embed/sage.d.ts +5 -5
  48. package/cjs/src/embed/sage.js +1 -2
  49. package/cjs/src/embed/sage.js.map +1 -1
  50. package/cjs/src/embed/search-bar.d.ts +7 -7
  51. package/cjs/src/embed/search-bar.js +1 -1
  52. package/cjs/src/embed/search.d.ts +13 -12
  53. package/cjs/src/embed/search.d.ts.map +1 -1
  54. package/cjs/src/embed/search.js.map +1 -1
  55. package/cjs/src/embed/search.spec.js +0 -2
  56. package/cjs/src/embed/search.spec.js.map +1 -1
  57. package/cjs/src/embed/ts-embed.d.ts +3 -3
  58. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  59. package/cjs/src/embed/ts-embed.js +15 -9
  60. package/cjs/src/embed/ts-embed.js.map +1 -1
  61. package/cjs/src/embed/ts-embed.spec.js +37 -1
  62. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  63. package/cjs/src/index.d.ts +3 -2
  64. package/cjs/src/index.d.ts.map +1 -1
  65. package/cjs/src/index.js +3 -1
  66. package/cjs/src/index.js.map +1 -1
  67. package/cjs/src/react/index.d.ts +15 -15
  68. package/cjs/src/react/index.js +12 -13
  69. package/cjs/src/react/index.js.map +1 -1
  70. package/cjs/src/react/index.spec.js +6 -3
  71. package/cjs/src/react/index.spec.js.map +1 -1
  72. package/cjs/src/tokenizedFetch.d.ts +1 -1
  73. package/cjs/src/tokenizedFetch.js +1 -1
  74. package/cjs/src/types.d.ts +350 -287
  75. package/cjs/src/types.d.ts.map +1 -1
  76. package/cjs/src/types.js +240 -218
  77. package/cjs/src/types.js.map +1 -1
  78. package/cjs/src/utils/graphql/answerService/answerService.d.ts +9 -6
  79. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  80. package/cjs/src/utils/graphql/answerService/answerService.js +13 -15
  81. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  82. package/cjs/src/utils/graphql/answerService/answerService.spec.js +55 -0
  83. package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  84. package/cjs/src/utils/graphql/preview-service.js +0 -1
  85. package/cjs/src/utils/graphql/preview-service.js.map +1 -1
  86. package/cjs/src/utils/processData.js +0 -5
  87. package/cjs/src/utils/processData.js.map +1 -1
  88. package/cjs/src/utils.d.ts +9 -0
  89. package/cjs/src/utils.d.ts.map +1 -1
  90. package/cjs/src/utils.js +10 -1
  91. package/cjs/src/utils.js.map +1 -1
  92. package/dist/{index-Vyh6Ha5f.js → index-DyX-x6uN.js} +1 -1
  93. package/dist/src/auth.d.ts +29 -4
  94. package/dist/src/auth.d.ts.map +1 -1
  95. package/dist/src/css-variables.d.ts +17 -17
  96. package/dist/src/embed/app.d.ts +62 -33
  97. package/dist/src/embed/app.d.ts.map +1 -1
  98. package/dist/src/embed/auto-frame-renderer.d.ts +41 -0
  99. package/dist/src/embed/auto-frame-renderer.d.ts.map +1 -0
  100. package/dist/src/embed/auto-frame-renderer.spec.d.ts +2 -0
  101. package/dist/src/embed/auto-frame-renderer.spec.d.ts.map +1 -0
  102. package/dist/src/embed/base.d.ts +2 -2
  103. package/dist/src/embed/base.d.ts.map +1 -1
  104. package/dist/src/embed/bodyless-conversation.d.ts +5 -5
  105. package/dist/src/embed/conversation.d.ts +43 -30
  106. package/dist/src/embed/conversation.d.ts.map +1 -1
  107. package/dist/src/embed/liveboard.d.ts +42 -35
  108. package/dist/src/embed/liveboard.d.ts.map +1 -1
  109. package/dist/src/embed/sage.d.ts +5 -5
  110. package/dist/src/embed/search-bar.d.ts +7 -7
  111. package/dist/src/embed/search.d.ts +13 -12
  112. package/dist/src/embed/search.d.ts.map +1 -1
  113. package/dist/src/embed/ts-embed.d.ts +3 -3
  114. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  115. package/dist/src/index.d.ts +3 -2
  116. package/dist/src/index.d.ts.map +1 -1
  117. package/dist/src/react/index.d.ts +15 -15
  118. package/dist/src/tokenizedFetch.d.ts +1 -1
  119. package/dist/src/types.d.ts +350 -287
  120. package/dist/src/types.d.ts.map +1 -1
  121. package/dist/src/utils/graphql/answerService/answerService.d.ts +9 -6
  122. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  123. package/dist/src/utils.d.ts +9 -0
  124. package/dist/src/utils.d.ts.map +1 -1
  125. package/dist/tsembed-react.es.js +359 -329
  126. package/dist/tsembed-react.js +358 -328
  127. package/dist/tsembed.es.js +490 -321
  128. package/dist/tsembed.js +489 -319
  129. package/dist/visual-embed-sdk-react-full.d.ts +574 -442
  130. package/dist/visual-embed-sdk-react.d.ts +572 -440
  131. package/dist/visual-embed-sdk.d.ts +622 -446
  132. package/lib/package.json +1 -1
  133. package/lib/src/auth.d.ts +29 -4
  134. package/lib/src/auth.d.ts.map +1 -1
  135. package/lib/src/auth.js +29 -7
  136. package/lib/src/auth.js.map +1 -1
  137. package/lib/src/auth.spec.js +1 -3
  138. package/lib/src/auth.spec.js.map +1 -1
  139. package/lib/src/authToken.js +0 -1
  140. package/lib/src/authToken.js.map +1 -1
  141. package/lib/src/authToken.spec.js +2 -1
  142. package/lib/src/authToken.spec.js.map +1 -1
  143. package/lib/src/css-variables.d.ts +17 -17
  144. package/lib/src/embed/app.d.ts +62 -33
  145. package/lib/src/embed/app.d.ts.map +1 -1
  146. package/lib/src/embed/app.js +11 -4
  147. package/lib/src/embed/app.js.map +1 -1
  148. package/lib/src/embed/app.spec.js +34 -1
  149. package/lib/src/embed/app.spec.js.map +1 -1
  150. package/lib/src/embed/auto-frame-renderer.d.ts +41 -0
  151. package/lib/src/embed/auto-frame-renderer.d.ts.map +1 -0
  152. package/lib/src/embed/auto-frame-renderer.js +141 -0
  153. package/lib/src/embed/auto-frame-renderer.js.map +1 -0
  154. package/lib/src/embed/auto-frame-renderer.spec.d.ts +2 -0
  155. package/lib/src/embed/auto-frame-renderer.spec.d.ts.map +1 -0
  156. package/lib/src/embed/auto-frame-renderer.spec.js +192 -0
  157. package/lib/src/embed/auto-frame-renderer.spec.js.map +1 -0
  158. package/lib/src/embed/base.d.ts +2 -2
  159. package/lib/src/embed/base.d.ts.map +1 -1
  160. package/lib/src/embed/base.js +6 -9
  161. package/lib/src/embed/base.js.map +1 -1
  162. package/lib/src/embed/bodyless-conversation.d.ts +5 -5
  163. package/lib/src/embed/bodyless-conversation.js +4 -4
  164. package/lib/src/embed/conversation.d.ts +43 -30
  165. package/lib/src/embed/conversation.d.ts.map +1 -1
  166. package/lib/src/embed/conversation.js +11 -11
  167. package/lib/src/embed/conversation.js.map +1 -1
  168. package/lib/src/embed/conversation.spec.js +27 -0
  169. package/lib/src/embed/conversation.spec.js.map +1 -1
  170. package/lib/src/embed/hostEventClient/host-event-client.js +0 -2
  171. package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
  172. package/lib/src/embed/liveboard.d.ts +42 -35
  173. package/lib/src/embed/liveboard.d.ts.map +1 -1
  174. package/lib/src/embed/liveboard.js +6 -4
  175. package/lib/src/embed/liveboard.js.map +1 -1
  176. package/lib/src/embed/liveboard.spec.js +5 -3
  177. package/lib/src/embed/liveboard.spec.js.map +1 -1
  178. package/lib/src/embed/sage.d.ts +5 -5
  179. package/lib/src/embed/sage.js +1 -2
  180. package/lib/src/embed/sage.js.map +1 -1
  181. package/lib/src/embed/search-bar.d.ts +7 -7
  182. package/lib/src/embed/search-bar.js +1 -1
  183. package/lib/src/embed/search.d.ts +13 -12
  184. package/lib/src/embed/search.d.ts.map +1 -1
  185. package/lib/src/embed/search.js.map +1 -1
  186. package/lib/src/embed/search.spec.js +0 -2
  187. package/lib/src/embed/search.spec.js.map +1 -1
  188. package/lib/src/embed/ts-embed.d.ts +3 -3
  189. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  190. package/lib/src/embed/ts-embed.js +15 -9
  191. package/lib/src/embed/ts-embed.js.map +1 -1
  192. package/lib/src/embed/ts-embed.spec.js +37 -1
  193. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  194. package/lib/src/index.d.ts +3 -2
  195. package/lib/src/index.d.ts.map +1 -1
  196. package/lib/src/index.js +1 -0
  197. package/lib/src/index.js.map +1 -1
  198. package/lib/src/react/index.d.ts +15 -15
  199. package/lib/src/react/index.js +12 -13
  200. package/lib/src/react/index.js.map +1 -1
  201. package/lib/src/react/index.spec.js +6 -3
  202. package/lib/src/react/index.spec.js.map +1 -1
  203. package/lib/src/tokenizedFetch.d.ts +1 -1
  204. package/lib/src/tokenizedFetch.js +1 -1
  205. package/lib/src/types.d.ts +350 -287
  206. package/lib/src/types.d.ts.map +1 -1
  207. package/lib/src/types.js +240 -218
  208. package/lib/src/types.js.map +1 -1
  209. package/lib/src/utils/graphql/answerService/answerService.d.ts +9 -6
  210. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  211. package/lib/src/utils/graphql/answerService/answerService.js +12 -14
  212. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  213. package/lib/src/utils/graphql/answerService/answerService.spec.js +55 -0
  214. package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  215. package/lib/src/utils/graphql/preview-service.js +0 -1
  216. package/lib/src/utils/graphql/preview-service.js.map +1 -1
  217. package/lib/src/utils/processData.js +0 -5
  218. package/lib/src/utils/processData.js.map +1 -1
  219. package/lib/src/utils.d.ts +9 -0
  220. package/lib/src/utils.d.ts.map +1 -1
  221. package/lib/src/utils.js +8 -0
  222. package/lib/src/utils.js.map +1 -1
  223. package/lib/src/visual-embed-sdk.d.ts +11466 -0
  224. package/package.json +1 -1
  225. package/src/auth.spec.ts +1 -1
  226. package/src/auth.ts +32 -7
  227. package/src/authToken.spec.ts +2 -1
  228. package/src/authToken.ts +1 -1
  229. package/src/css-variables.ts +17 -17
  230. package/src/embed/app.spec.ts +46 -1
  231. package/src/embed/app.ts +74 -36
  232. package/src/embed/auto-frame-renderer.spec.ts +266 -0
  233. package/src/embed/auto-frame-renderer.ts +152 -0
  234. package/src/embed/base.spec.ts +1 -1
  235. package/src/embed/base.ts +9 -10
  236. package/src/embed/bodyless-conversation.ts +5 -5
  237. package/src/embed/conversation.spec.ts +37 -0
  238. package/src/embed/conversation.ts +55 -38
  239. package/src/embed/hostEventClient/host-event-client.ts +2 -2
  240. package/src/embed/liveboard.spec.ts +5 -3
  241. package/src/embed/liveboard.ts +47 -38
  242. package/src/embed/sage.ts +6 -6
  243. package/src/embed/search-bar.tsx +7 -7
  244. package/src/embed/search.spec.ts +2 -2
  245. package/src/embed/search.ts +13 -12
  246. package/src/embed/ts-embed.spec.ts +44 -1
  247. package/src/embed/ts-embed.ts +14 -9
  248. package/src/index.ts +3 -0
  249. package/src/react/index.spec.tsx +6 -3
  250. package/src/react/index.tsx +16 -16
  251. package/src/tokenizedFetch.ts +1 -1
  252. package/src/types.ts +350 -286
  253. package/src/utils/graphql/answerService/answerService.spec.ts +62 -0
  254. package/src/utils/graphql/answerService/answerService.ts +14 -10
  255. package/src/utils/graphql/preview-service.ts +1 -1
  256. package/src/utils/processData.ts +5 -5
  257. package/src/utils.ts +14 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.46.1",
3
+ "version": "1.46.3",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
package/src/auth.spec.ts CHANGED
@@ -283,7 +283,7 @@ describe('Unit test for auth', () => {
283
283
  text: () => Promise.resolve('abc'),
284
284
  } as any));
285
285
  jest.spyOn(authService, 'fetchAuthPostService').mockImplementation(() =>
286
- // eslint-disable-next-line prefer-promise-reject-errors, implicit-arrow-linebreak
286
+
287
287
  Promise.reject({
288
288
  status: 500,
289
289
  }));
package/src/auth.ts CHANGED
@@ -19,11 +19,11 @@ import { getSessionInfo, getPreauthInfo } from './utils/sessionInfoService';
19
19
  import { ERROR_MESSAGE } from './errors';
20
20
  import { resetAllCachedServices } from './utils/resetServices';
21
21
 
22
- // eslint-disable-next-line import/no-mutable-exports
22
+
23
23
  export let loggedInStatus = false;
24
- // eslint-disable-next-line import/no-mutable-exports
24
+
25
25
  export let samlAuthWindow: Window = null;
26
- // eslint-disable-next-line import/no-mutable-exports
26
+
27
27
  export let samlCompletionPromise: Promise<void> = null;
28
28
 
29
29
  let releaseVersion = '';
@@ -83,20 +83,45 @@ export enum AuthFailureType {
83
83
  */
84
84
  export enum AuthStatus {
85
85
  /**
86
- * Emits when the SDK fails to authenticate
86
+ * Emits when the SDK fails to authenticate.
87
87
  */
88
88
  FAILURE = 'FAILURE',
89
89
  /**
90
- * Emits when the SDK authenticates successfully
90
+ * Emits when the SDK authentication step completes
91
+ * successfully (e.g., token exchange, cookie set).
92
+ * This fires before any iframe is rendered. Use
93
+ * this to know that auth passed and it is safe to
94
+ * proceed with rendering. The callback receives no
95
+ * arguments.
96
+ * @example
97
+ * ```js
98
+ * const authEE = init({ ... });
99
+ * authEE.on(AuthStatus.SDK_SUCCESS, () => {
100
+ * // Auth done, iframe not loaded yet
101
+ * });
102
+ * ```
91
103
  */
92
104
  SDK_SUCCESS = 'SDK_SUCCESS',
93
105
  /**
94
106
  * @hidden
95
- * Emits when iframe is loaded and session info is available
107
+ * Emits when iframe is loaded and session
108
+ * information is available.
96
109
  */
97
110
  SESSION_INFO_SUCCESS = 'SESSION_INFO_SUCCESS',
98
111
  /**
99
- * Emits when the app sends an authentication success message
112
+ * Emits when the ThoughtSpot app inside the
113
+ * embedded iframe confirms its session is active.
114
+ * This fires after the iframe loads and sends back an `AuthInit` event.
115
+ * @param sessionInfo Information about the user session, with details like `userGUID`.
116
+ * @see EmbedEvent.AuthInit
117
+ * @example
118
+ * ```js
119
+ * const authEE = init({ ... });
120
+ * authEE.on(AuthStatus.SUCCESS, (sessionInfo) => {
121
+ * // App is loaded and authenticated
122
+ * console.log(sessionInfo.userGUID);
123
+ * });
124
+ * ```
100
125
  */
101
126
  SUCCESS = 'SUCCESS',
102
127
  /**
@@ -129,7 +129,8 @@ describe('AuthToken Unit tests', () => {
129
129
  expect(token).toBe(newToken);
130
130
  // Should not validate cached token (condition at line 23 is false)
131
131
  expect(validateAuthTokenSpy).not.toHaveBeenCalledWith(config, cachedToken, true);
132
- // But should validate new token (though it returns early when disableTokenVerification is true)
132
+ // But should validate new token (though it returns early when
133
+ // disableTokenVerification is true)
133
134
  expect(validateAuthTokenSpy).toHaveBeenCalledWith(config, newToken);
134
135
  expect(getAuthTokenMock).toHaveBeenCalled();
135
136
 
package/src/authToken.ts CHANGED
@@ -83,7 +83,7 @@ export const validateAuthToken = async (
83
83
 
84
84
  if (cachedAuthToken && cachedAuthToken === authToken) {
85
85
  if (!embedConfig.suppressErrorAlerts && !suppressAlert) {
86
- // eslint-disable-next-line no-alert
86
+
87
87
  alert(ERROR_MESSAGE.DUPLICATE_TOKEN_ERR);
88
88
  }
89
89
  throw new Error(ERROR_MESSAGE.DUPLICATE_TOKEN_ERR);
@@ -517,42 +517,42 @@ export interface CustomCssVariables {
517
517
  /**
518
518
  * Padding of the groups in the Liveboard.
519
519
  *
520
- * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
520
+ * Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
521
521
  */
522
522
  '--ts-var-liveboard-group-padding'?: string;
523
523
 
524
524
  /**
525
525
  * Font size of the title of the groups in the Liveboard.
526
526
  *
527
- * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
527
+ * Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
528
528
  */
529
529
  '--ts-var-liveboard-group-title-font-size'?: string;
530
530
 
531
531
  /**
532
532
  * Font weight of the title of the groups in the Liveboard.
533
533
  *
534
- * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
534
+ * Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
535
535
  */
536
536
  '--ts-var-liveboard-group-title-font-weight'?: string;
537
537
 
538
538
  /**
539
539
  * Font size of the title of the tiles inside the groups in the Liveboard.
540
540
  *
541
- * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
541
+ * Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
542
542
  */
543
543
  '--ts-var-liveboard-group-tile-title-font-size'?: string;
544
544
 
545
545
  /**
546
546
  * Font weight of the title of the tiles inside the groups in the Liveboard.
547
547
  *
548
- * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
548
+ * Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
549
549
  */
550
550
  '--ts-var-liveboard-group-tile-title-font-weight'?: string;
551
551
 
552
552
  /**
553
553
  * Padding of the group tiles in the Liveboard.
554
554
  *
555
- * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
555
+ * Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
556
556
  */
557
557
  '--ts-var-liveboard-group-tile-padding'?: string;
558
558
 
@@ -564,14 +564,14 @@ export interface CustomCssVariables {
564
564
  /**
565
565
  * Background color of the groups in the Liveboard.
566
566
  *
567
- * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
567
+ * Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
568
568
  */
569
569
  '--ts-var-liveboard-group-background'?: string;
570
570
 
571
571
  /**
572
572
  * Border color of the groups in the Liveboard.
573
573
  *
574
- * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
574
+ * Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
575
575
  */
576
576
  '--ts-var-liveboard-group-border-color'?: string;
577
577
 
@@ -588,63 +588,63 @@ export interface CustomCssVariables {
588
588
  /**
589
589
  * Font color of the title of the groups in the Liveboard.
590
590
  *
591
- * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
591
+ * Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
592
592
  */
593
593
  '--ts-var-liveboard-group-title-font-color'?: string;
594
594
 
595
595
  /**
596
596
  * Font color of the description of the groups in the Liveboard.
597
597
  *
598
- * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
598
+ * Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
599
599
  */
600
600
  '--ts-var-liveboard-group-description-font-color'?: string;
601
601
 
602
602
  /**
603
603
  * Font color of the title of the tiles inside the groups in the Liveboard.
604
604
  *
605
- * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
605
+ * Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
606
606
  */
607
607
  '--ts-var-liveboard-group-tile-title-font-color'?: string;
608
608
 
609
609
  /**
610
610
  * Font color of the description of the tiles inside the groups in the Liveboard.
611
611
  *
612
- * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
612
+ * Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
613
613
  */
614
614
  '--ts-var-liveboard-group-tile-description-font-color'?: string;
615
615
 
616
616
  /**
617
617
  * Background color of the tiles inside the groups in the Liveboard.
618
618
  *
619
- * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
619
+ * Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
620
620
  */
621
621
  '--ts-var-liveboard-group-tile-background'?: string;
622
622
 
623
623
  /**
624
624
  * Background color of the filter chips in the Liveboard.
625
625
  *
626
- * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
626
+ * Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
627
627
  */
628
628
  '--ts-var-liveboard-chip-background'?: string;
629
629
 
630
630
  /**
631
631
  * Font color of the filter chips in the Liveboard.
632
632
  *
633
- * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
633
+ * Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
634
634
  */
635
635
  '--ts-var-liveboard-chip-color'?: string;
636
636
 
637
637
  /**
638
638
  * Background color of the filter chips in the Liveboard on hover.
639
639
  *
640
- * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
640
+ * Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
641
641
  */
642
642
  '--ts-var-liveboard-chip--hover-background'?: string;
643
643
 
644
644
  /**
645
645
  * Background color of the filter chips in the Liveboard on active.
646
646
  *
647
- * Please enable the Liveboard styling and grouping feature in your ThoughtSpot instance and then set the isLiveboardStylingAndGrouping SDK flag to true to start modifying this CSS variable.
647
+ * Please enable the Liveboard Masterpieces feature in your ThoughtSpot instance and then set the isLiveboardMasterpiecesEnabled SDK flag to true to start modifying this CSS variable.
648
648
  */
649
649
  '--ts-var-liveboard-chip--active-background'?: string;
650
650
 
@@ -397,7 +397,7 @@ describe('App embed tests', () => {
397
397
  });
398
398
  });
399
399
 
400
- test('should set isLiveboardStylingAndGroupingEnabled to true in url', async () => {
400
+ test('should set isLiveboardStylingAndGroupingEnabled to true in url (deprecated, use isLiveboardMasterpiecesEnabled)', async () => {
401
401
  const appEmbed = new AppEmbed(getRootEl(), {
402
402
  ...defaultViewConfig,
403
403
  isLiveboardStylingAndGroupingEnabled: true,
@@ -425,6 +425,20 @@ describe('App embed tests', () => {
425
425
  });
426
426
  });
427
427
 
428
+ test('should set enableHomepageAnnouncement to true in url', async () => {
429
+ const appEmbed = new AppEmbed(getRootEl(), {
430
+ ...defaultViewConfig,
431
+ enableHomepageAnnouncement: true,
432
+ } as AppViewConfig);
433
+ appEmbed.render();
434
+ await executeAfterWait(() => {
435
+ expectUrlMatchesWithParams(
436
+ getIFrameSrc(),
437
+ `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&enableHomepageAnnouncement=true${defaultParamsPost}#/home`,
438
+ );
439
+ });
440
+ });
441
+
428
442
  test('should set isPNGInScheduledEmailsEnabled to true in url', async () => {
429
443
  const appEmbed = new AppEmbed(getRootEl(), {
430
444
  ...defaultViewConfig,
@@ -509,6 +523,37 @@ describe('App embed tests', () => {
509
523
  });
510
524
  });
511
525
 
526
+ test('should set deprecated standalone enablePastConversationsSidebar in url', async () => {
527
+ const appEmbed = new AppEmbed(getRootEl(), {
528
+ ...defaultViewConfig,
529
+ enablePastConversationsSidebar: true,
530
+ } as AppViewConfig);
531
+ appEmbed.render();
532
+ await executeAfterWait(() => {
533
+ expectUrlMatchesWithParams(
534
+ getIFrameSrc(),
535
+ `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&enablePastConversationsSidebar=true${defaultParamsPost}#/home`,
536
+ );
537
+ });
538
+ });
539
+
540
+ test('should prefer spotterSidebarConfig.enablePastConversationsSidebar over deprecated standalone flag in url', async () => {
541
+ const appEmbed = new AppEmbed(getRootEl(), {
542
+ ...defaultViewConfig,
543
+ enablePastConversationsSidebar: false,
544
+ spotterSidebarConfig: {
545
+ enablePastConversationsSidebar: true,
546
+ },
547
+ } as AppViewConfig);
548
+ appEmbed.render();
549
+ await executeAfterWait(() => {
550
+ expectUrlMatchesWithParams(
551
+ getIFrameSrc(),
552
+ `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&enablePastConversationsSidebar=true${defaultParamsPost}#/home`,
553
+ );
554
+ });
555
+ });
556
+
512
557
  test('should set hideToolResponseCardBranding to true in url via spotterChatConfig', async () => {
513
558
  const appEmbed = new AppEmbed(getRootEl(), {
514
559
  ...defaultViewConfig,