@thoughtspot/visual-embed-sdk 1.46.0 → 1.46.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 (176) hide show
  1. package/README.md +1 -1
  2. package/cjs/package.json +2 -2
  3. package/cjs/src/auth.d.ts +29 -4
  4. package/cjs/src/auth.d.ts.map +1 -1
  5. package/cjs/src/auth.js +30 -5
  6. package/cjs/src/auth.js.map +1 -1
  7. package/cjs/src/css-variables.d.ts +17 -17
  8. package/cjs/src/embed/app.d.ts +61 -33
  9. package/cjs/src/embed/app.d.ts.map +1 -1
  10. package/cjs/src/embed/app.js +11 -4
  11. package/cjs/src/embed/app.js.map +1 -1
  12. package/cjs/src/embed/app.spec.js +34 -1
  13. package/cjs/src/embed/app.spec.js.map +1 -1
  14. package/cjs/src/embed/base.d.ts +2 -2
  15. package/cjs/src/embed/base.js +2 -2
  16. package/cjs/src/embed/bodyless-conversation.d.ts +5 -5
  17. package/cjs/src/embed/bodyless-conversation.js +4 -4
  18. package/cjs/src/embed/conversation.d.ts +43 -30
  19. package/cjs/src/embed/conversation.d.ts.map +1 -1
  20. package/cjs/src/embed/conversation.js +10 -11
  21. package/cjs/src/embed/conversation.js.map +1 -1
  22. package/cjs/src/embed/conversation.spec.js +27 -0
  23. package/cjs/src/embed/conversation.spec.js.map +1 -1
  24. package/cjs/src/embed/liveboard.d.ts +42 -36
  25. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  26. package/cjs/src/embed/liveboard.js +3 -3
  27. package/cjs/src/embed/liveboard.js.map +1 -1
  28. package/cjs/src/embed/liveboard.spec.js +1 -1
  29. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  30. package/cjs/src/embed/sage.d.ts +5 -5
  31. package/cjs/src/embed/sage.js +1 -1
  32. package/cjs/src/embed/search-bar.d.ts +7 -7
  33. package/cjs/src/embed/search-bar.js +1 -1
  34. package/cjs/src/embed/search.d.ts +16 -14
  35. package/cjs/src/embed/search.d.ts.map +1 -1
  36. package/cjs/src/embed/search.js +3 -2
  37. package/cjs/src/embed/search.js.map +1 -1
  38. package/cjs/src/embed/ts-embed.d.ts +4 -4
  39. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  40. package/cjs/src/embed/ts-embed.js +13 -7
  41. package/cjs/src/embed/ts-embed.js.map +1 -1
  42. package/cjs/src/embed/ts-embed.spec.js +35 -0
  43. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  44. package/cjs/src/react/index.d.ts +15 -15
  45. package/cjs/src/react/index.js +12 -12
  46. package/cjs/src/tokenizedFetch.d.ts +1 -1
  47. package/cjs/src/tokenizedFetch.js +1 -1
  48. package/cjs/src/types.d.ts +653 -276
  49. package/cjs/src/types.d.ts.map +1 -1
  50. package/cjs/src/types.js +274 -208
  51. package/cjs/src/types.js.map +1 -1
  52. package/cjs/src/utils/graphql/answerService/answerService.d.ts +4 -2
  53. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  54. package/cjs/src/utils/graphql/answerService/answerService.js +6 -4
  55. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  56. package/cjs/src/utils/graphql/answerService/answerService.spec.js +55 -0
  57. package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  58. package/cjs/src/utils.d.ts +9 -0
  59. package/cjs/src/utils.d.ts.map +1 -1
  60. package/cjs/src/utils.js +10 -1
  61. package/cjs/src/utils.js.map +1 -1
  62. package/dist/{index-BQvLEoxp.js → index-DkizS4xM.js} +1 -1
  63. package/dist/src/auth.d.ts +29 -4
  64. package/dist/src/auth.d.ts.map +1 -1
  65. package/dist/src/css-variables.d.ts +17 -17
  66. package/dist/src/embed/app.d.ts +61 -33
  67. package/dist/src/embed/app.d.ts.map +1 -1
  68. package/dist/src/embed/base.d.ts +2 -2
  69. package/dist/src/embed/bodyless-conversation.d.ts +5 -5
  70. package/dist/src/embed/conversation.d.ts +43 -30
  71. package/dist/src/embed/conversation.d.ts.map +1 -1
  72. package/dist/src/embed/liveboard.d.ts +42 -36
  73. package/dist/src/embed/liveboard.d.ts.map +1 -1
  74. package/dist/src/embed/sage.d.ts +5 -5
  75. package/dist/src/embed/search-bar.d.ts +7 -7
  76. package/dist/src/embed/search.d.ts +16 -14
  77. package/dist/src/embed/search.d.ts.map +1 -1
  78. package/dist/src/embed/ts-embed.d.ts +4 -4
  79. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  80. package/dist/src/react/index.d.ts +15 -15
  81. package/dist/src/tokenizedFetch.d.ts +1 -1
  82. package/dist/src/types.d.ts +653 -276
  83. package/dist/src/types.d.ts.map +1 -1
  84. package/dist/src/utils/graphql/answerService/answerService.d.ts +4 -2
  85. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  86. package/dist/src/utils.d.ts +9 -0
  87. package/dist/src/utils.d.ts.map +1 -1
  88. package/dist/tsembed-react.es.js +383 -290
  89. package/dist/tsembed-react.js +382 -289
  90. package/dist/tsembed.es.js +375 -282
  91. package/dist/tsembed.js +374 -281
  92. package/dist/visual-embed-sdk-react-full.d.ts +880 -431
  93. package/dist/visual-embed-sdk-react.d.ts +873 -427
  94. package/dist/visual-embed-sdk.d.ts +879 -430
  95. package/lib/package.json +2 -2
  96. package/lib/src/auth.d.ts +29 -4
  97. package/lib/src/auth.d.ts.map +1 -1
  98. package/lib/src/auth.js +30 -5
  99. package/lib/src/auth.js.map +1 -1
  100. package/lib/src/css-variables.d.ts +17 -17
  101. package/lib/src/embed/app.d.ts +61 -33
  102. package/lib/src/embed/app.d.ts.map +1 -1
  103. package/lib/src/embed/app.js +12 -5
  104. package/lib/src/embed/app.js.map +1 -1
  105. package/lib/src/embed/app.spec.js +34 -1
  106. package/lib/src/embed/app.spec.js.map +1 -1
  107. package/lib/src/embed/base.d.ts +2 -2
  108. package/lib/src/embed/base.js +2 -2
  109. package/lib/src/embed/bodyless-conversation.d.ts +5 -5
  110. package/lib/src/embed/bodyless-conversation.js +4 -4
  111. package/lib/src/embed/conversation.d.ts +43 -30
  112. package/lib/src/embed/conversation.d.ts.map +1 -1
  113. package/lib/src/embed/conversation.js +11 -11
  114. package/lib/src/embed/conversation.js.map +1 -1
  115. package/lib/src/embed/conversation.spec.js +27 -0
  116. package/lib/src/embed/conversation.spec.js.map +1 -1
  117. package/lib/src/embed/liveboard.d.ts +42 -36
  118. package/lib/src/embed/liveboard.d.ts.map +1 -1
  119. package/lib/src/embed/liveboard.js +3 -3
  120. package/lib/src/embed/liveboard.js.map +1 -1
  121. package/lib/src/embed/liveboard.spec.js +1 -1
  122. package/lib/src/embed/liveboard.spec.js.map +1 -1
  123. package/lib/src/embed/sage.d.ts +5 -5
  124. package/lib/src/embed/sage.js +1 -1
  125. package/lib/src/embed/search-bar.d.ts +7 -7
  126. package/lib/src/embed/search-bar.js +1 -1
  127. package/lib/src/embed/search.d.ts +16 -14
  128. package/lib/src/embed/search.d.ts.map +1 -1
  129. package/lib/src/embed/search.js +3 -2
  130. package/lib/src/embed/search.js.map +1 -1
  131. package/lib/src/embed/ts-embed.d.ts +4 -4
  132. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  133. package/lib/src/embed/ts-embed.js +13 -7
  134. package/lib/src/embed/ts-embed.js.map +1 -1
  135. package/lib/src/embed/ts-embed.spec.js +35 -0
  136. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  137. package/lib/src/react/index.d.ts +15 -15
  138. package/lib/src/react/index.js +12 -12
  139. package/lib/src/tokenizedFetch.d.ts +1 -1
  140. package/lib/src/tokenizedFetch.js +1 -1
  141. package/lib/src/types.d.ts +653 -276
  142. package/lib/src/types.d.ts.map +1 -1
  143. package/lib/src/types.js +274 -208
  144. package/lib/src/types.js.map +1 -1
  145. package/lib/src/utils/graphql/answerService/answerService.d.ts +4 -2
  146. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  147. package/lib/src/utils/graphql/answerService/answerService.js +5 -3
  148. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  149. package/lib/src/utils/graphql/answerService/answerService.spec.js +55 -0
  150. package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  151. package/lib/src/utils.d.ts +9 -0
  152. package/lib/src/utils.d.ts.map +1 -1
  153. package/lib/src/utils.js +8 -0
  154. package/lib/src/utils.js.map +1 -1
  155. package/package.json +2 -2
  156. package/src/auth.ts +30 -5
  157. package/src/css-variables.ts +17 -17
  158. package/src/embed/app.spec.ts +46 -1
  159. package/src/embed/app.ts +73 -36
  160. package/src/embed/base.ts +2 -2
  161. package/src/embed/bodyless-conversation.ts +5 -5
  162. package/src/embed/conversation.spec.ts +37 -0
  163. package/src/embed/conversation.ts +55 -38
  164. package/src/embed/liveboard.spec.ts +1 -1
  165. package/src/embed/liveboard.ts +42 -36
  166. package/src/embed/sage.ts +5 -5
  167. package/src/embed/search-bar.tsx +7 -7
  168. package/src/embed/search.ts +16 -14
  169. package/src/embed/ts-embed.spec.ts +42 -0
  170. package/src/embed/ts-embed.ts +12 -7
  171. package/src/react/index.tsx +15 -15
  172. package/src/tokenizedFetch.ts +1 -1
  173. package/src/types.ts +652 -275
  174. package/src/utils/graphql/answerService/answerService.spec.ts +62 -0
  175. package/src/utils/graphql/answerService/answerService.ts +6 -3
  176. package/src/utils.ts +14 -0
package/README.md CHANGED
@@ -61,7 +61,7 @@ Start a [free trial](https://www.thoughtspot.com/trial?tsref=trialtse) on your o
61
61
 
62
62
  ## Full API Reference
63
63
 
64
- - Thoughtspot Embedded [Docs](https://developers.thoughtspot.com/docs/)
64
+ - ThoughtSpot Embedded [Docs](https://developers.thoughtspot.com/docs/)
65
65
  - Please visit our [API reference docs](https://developers.thoughtspot.com/docs/VisualEmbedSdk).
66
66
  - Comprehensive [CodeSandbox](https://codesandbox.io/s/big-tse-react-demo-i4g9xi?file=/src/App.tsx)
67
67
 
package/cjs/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.46.0",
3
+ "version": "1.46.2",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -55,7 +55,7 @@
55
55
  "docgen": "typedoc --tsconfig tsconfig.build.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck",
56
56
  "test-sdk": "jest -c jest.config.sdk.js --runInBand",
57
57
  "test": "npm run test-sdk",
58
- "posttest": "cat ./coverage/sdk/lcov.info | npx coveralls-next",
58
+ "posttest": "cat ./coverage/sdk/lcov.info | npx coveralls-next || echo 'Warning: Coveralls upload failed but not breaking the build.'",
59
59
  "is-publish-allowed": "node scripts/is-publish-allowed.js",
60
60
  "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",
61
61
  "check-size": "npm run build && size-limit",
package/cjs/src/auth.d.ts CHANGED
@@ -56,20 +56,45 @@ export declare enum AuthFailureType {
56
56
  */
57
57
  export declare enum AuthStatus {
58
58
  /**
59
- * Emits when the SDK fails to authenticate
59
+ * Emits when the SDK fails to authenticate.
60
60
  */
61
61
  FAILURE = "FAILURE",
62
62
  /**
63
- * Emits when the SDK authenticates successfully
63
+ * Emits when the SDK authentication step completes
64
+ * successfully (e.g., token exchange, cookie set).
65
+ * This fires before any iframe is rendered. Use
66
+ * this to know that auth passed and it is safe to
67
+ * proceed with rendering. The callback receives no
68
+ * arguments.
69
+ * @example
70
+ * ```js
71
+ * const authEE = init({ ... });
72
+ * authEE.on(AuthStatus.SDK_SUCCESS, () => {
73
+ * // Auth done, iframe not loaded yet
74
+ * });
75
+ * ```
64
76
  */
65
77
  SDK_SUCCESS = "SDK_SUCCESS",
66
78
  /**
67
79
  * @hidden
68
- * Emits when iframe is loaded and session info is available
80
+ * Emits when iframe is loaded and session
81
+ * information is available.
69
82
  */
70
83
  SESSION_INFO_SUCCESS = "SESSION_INFO_SUCCESS",
71
84
  /**
72
- * Emits when the app sends an authentication success message
85
+ * Emits when the ThoughtSpot app inside the
86
+ * embedded iframe confirms its session is active.
87
+ * This fires after the iframe loads and sends back an `AuthInit` event.
88
+ * @param sessionInfo Information about the user session, with details like `userGUID`.
89
+ * @see EmbedEvent.AuthInit
90
+ * @example
91
+ * ```js
92
+ * const authEE = init({ ... });
93
+ * authEE.on(AuthStatus.SUCCESS, (sessionInfo) => {
94
+ * // App is loaded and authenticated
95
+ * console.log(sessionInfo.userGUID);
96
+ * });
97
+ * ```
73
98
  */
74
99
  SUCCESS = "SUCCESS",
75
100
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/auth.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,eAAe,CAAC;AAIzC,OAAO,EACoB,WAAW,EACrC,MAAM,SAAS,CAAC;AAgBjB,eAAO,IAAI,cAAc,SAAQ,CAAC;AAElC,eAAO,IAAI,cAAc,EAAE,MAAa,CAAC;AAEzC,eAAO,IAAI,qBAAqB,EAAE,OAAO,CAAC,IAAI,CAAQ,CAAC;AAIvD,eAAO,MAAM,2BAA2B,yCAAyC,CAAC;AAElF;;;;GAIG;AACH,oBAAY,eAAe;IACvB;;;;;;OAMG;IACH,GAAG,QAAQ;IACX;;;;;OAKG;IACH,gBAAgB,qBAAqB;IACrC;;;;OAIG;IACH,MAAM,WAAW;IACjB;;;;OAIG;IACH,KAAK,UAAU;IACf;;;;OAIG;IACH,oBAAoB,yBAAyB;IAC7C;;;;OAIG;IACH,uBAAuB,4BAA4B;CACtD;AAED;;;GAGG;AACH,oBAAY,UAAU;IAClB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,WAAW,gBAAgB;IAC3B;;;OAGG;IACH,oBAAoB,yBAAyB;IAC7C;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,MAAM,WAAW;IACjB;;;;;OAKG;IACH,iBAAiB,sBAAsB;IAEvC;;OAEG;IACH,yBAAyB,8BAA8B;CAC1D;AAED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;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAM3C;AAED;;GAEG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAYvD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,eAAe,GAAG,IAAI,CAMpE;AAED;;GAEG;AACH,wBAAgB,YAAY,IAAI,IAAI,CAMnC;AAeD;;;;;;;;;;GAUG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAYtD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,WAEhC;AAyBD;;;GAGG;AACH,eAAO,MAAM,WAAW,gBAAuB,WAAW,KAAG,QAAQ,OAAO,CAgC3E,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,gBAAuB,WAAW,KAAG,QAAQ,OAAO,CAgBrF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,gBAAuB,WAAW,KAAG,QAAQ,OAAO,CAa3E,CAAC;AA2FF,eAAO,MAAM,UAAU,gBAAuB,WAAW,qBAiBxD,CAAC;AAEF,eAAO,MAAM,UAAU,gBAAuB,WAAW,qBAkBxD,CAAC;AAEF,eAAO,MAAM,MAAM,gBAAuB,WAAW,KAAG,QAAQ,OAAO,CAYtE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,gBAAuB,WAAW,KAAG,QAAQ,OAAO,CAoB5E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,QAAO,OAAyB,CAAC"}
package/cjs/src/auth.js CHANGED
@@ -74,20 +74,45 @@ var AuthFailureType;
74
74
  var AuthStatus;
75
75
  (function (AuthStatus) {
76
76
  /**
77
- * Emits when the SDK fails to authenticate
77
+ * Emits when the SDK fails to authenticate.
78
78
  */
79
79
  AuthStatus["FAILURE"] = "FAILURE";
80
80
  /**
81
- * Emits when the SDK authenticates successfully
81
+ * Emits when the SDK authentication step completes
82
+ * successfully (e.g., token exchange, cookie set).
83
+ * This fires before any iframe is rendered. Use
84
+ * this to know that auth passed and it is safe to
85
+ * proceed with rendering. The callback receives no
86
+ * arguments.
87
+ * @example
88
+ * ```js
89
+ * const authEE = init({ ... });
90
+ * authEE.on(AuthStatus.SDK_SUCCESS, () => {
91
+ * // Auth done, iframe not loaded yet
92
+ * });
93
+ * ```
82
94
  */
83
95
  AuthStatus["SDK_SUCCESS"] = "SDK_SUCCESS";
84
96
  /**
85
97
  * @hidden
86
- * Emits when iframe is loaded and session info is available
98
+ * Emits when iframe is loaded and session
99
+ * information is available.
87
100
  */
88
101
  AuthStatus["SESSION_INFO_SUCCESS"] = "SESSION_INFO_SUCCESS";
89
102
  /**
90
- * Emits when the app sends an authentication success message
103
+ * Emits when the ThoughtSpot app inside the
104
+ * embedded iframe confirms its session is active.
105
+ * This fires after the iframe loads and sends back an `AuthInit` event.
106
+ * @param sessionInfo Information about the user session, with details like `userGUID`.
107
+ * @see EmbedEvent.AuthInit
108
+ * @example
109
+ * ```js
110
+ * const authEE = init({ ... });
111
+ * authEE.on(AuthStatus.SUCCESS, (sessionInfo) => {
112
+ * // App is loaded and authenticated
113
+ * console.log(sessionInfo.userGUID);
114
+ * });
115
+ * ```
91
116
  */
92
117
  AuthStatus["SUCCESS"] = "SUCCESS";
93
118
  /**
@@ -247,7 +272,7 @@ function removeSSORedirectUrlMarker() {
247
272
  // reload the page which we don't want. We'll live with adding an
248
273
  // unnecessary hash to the parent page URL until we find any use case where
249
274
  // that creates an issue.
250
- // Replace any occurences of ?ssoMarker=guid or &ssoMarker=guid.
275
+ // Replace any occurrences of ?ssoMarker=guid or &ssoMarker=guid.
251
276
  let updatedHash = window.location.hash.replace(`?${(0, utils_1.getSSOMarker)(exports.SSO_REDIRECTION_MARKER_GUID)}`, '');
252
277
  updatedHash = updatedHash.replace(`&${(0, utils_1.getSSOMarker)(exports.SSO_REDIRECTION_MARKER_GUID)}`, '');
253
278
  window.location.hash = updatedHash;
@@ -1 +1 @@
1
- {"version":3,"file":"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ssVariables {
424
424
  /**
425
425
  * Padding of the groups in the Liveboard.
426
426
  *
427
- * 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.
427
+ * 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.
428
428
  */
429
429
  '--ts-var-liveboard-group-padding'?: string;
430
430
  /**
431
431
  * Font size of the title of the groups in the Liveboard.
432
432
  *
433
- * 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.
433
+ * 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.
434
434
  */
435
435
  '--ts-var-liveboard-group-title-font-size'?: string;
436
436
  /**
437
437
  * Font weight of the title of the groups in the Liveboard.
438
438
  *
439
- * 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.
439
+ * 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.
440
440
  */
441
441
  '--ts-var-liveboard-group-title-font-weight'?: string;
442
442
  /**
443
443
  * Font size of the title of the tiles inside the groups in the Liveboard.
444
444
  *
445
- * 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.
445
+ * 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.
446
446
  */
447
447
  '--ts-var-liveboard-group-tile-title-font-size'?: string;
448
448
  /**
449
449
  * Font weight of the title of the tiles inside the groups in the Liveboard.
450
450
  *
451
- * 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.
451
+ * 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.
452
452
  */
453
453
  '--ts-var-liveboard-group-tile-title-font-weight'?: string;
454
454
  /**
455
455
  * Padding of the group tiles in the Liveboard.
456
456
  *
457
- * 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.
457
+ * 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.
458
458
  */
459
459
  '--ts-var-liveboard-group-tile-padding'?: string;
460
460
  /**
@@ -464,13 +464,13 @@ export interface CustomCssVariables {
464
464
  /**
465
465
  * Background color of the groups in the Liveboard.
466
466
  *
467
- * 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.
467
+ * 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.
468
468
  */
469
469
  '--ts-var-liveboard-group-background'?: string;
470
470
  /**
471
471
  * Border color of the groups in the Liveboard.
472
472
  *
473
- * 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.
473
+ * 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.
474
474
  */
475
475
  '--ts-var-liveboard-group-border-color'?: string;
476
476
  /**
@@ -484,55 +484,55 @@ export interface CustomCssVariables {
484
484
  /**
485
485
  * Font color of the title of the groups in the Liveboard.
486
486
  *
487
- * 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.
487
+ * 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.
488
488
  */
489
489
  '--ts-var-liveboard-group-title-font-color'?: string;
490
490
  /**
491
491
  * Font color of the description of the groups in the Liveboard.
492
492
  *
493
- * 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.
493
+ * 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.
494
494
  */
495
495
  '--ts-var-liveboard-group-description-font-color'?: string;
496
496
  /**
497
497
  * Font color of the title of the tiles inside the groups in the Liveboard.
498
498
  *
499
- * 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.
499
+ * 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.
500
500
  */
501
501
  '--ts-var-liveboard-group-tile-title-font-color'?: string;
502
502
  /**
503
503
  * Font color of the description of the tiles inside the groups in the Liveboard.
504
504
  *
505
- * 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.
505
+ * 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.
506
506
  */
507
507
  '--ts-var-liveboard-group-tile-description-font-color'?: string;
508
508
  /**
509
509
  * Background color of the tiles inside the groups in the Liveboard.
510
510
  *
511
- * 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.
511
+ * 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.
512
512
  */
513
513
  '--ts-var-liveboard-group-tile-background'?: string;
514
514
  /**
515
515
  * Background color of the filter chips in the Liveboard.
516
516
  *
517
- * 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.
517
+ * 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.
518
518
  */
519
519
  '--ts-var-liveboard-chip-background'?: string;
520
520
  /**
521
521
  * Font color of the filter chips in the Liveboard.
522
522
  *
523
- * 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.
523
+ * 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.
524
524
  */
525
525
  '--ts-var-liveboard-chip-color'?: string;
526
526
  /**
527
527
  * Background color of the filter chips in the Liveboard on hover.
528
528
  *
529
- * 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.
529
+ * 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.
530
530
  */
531
531
  '--ts-var-liveboard-chip--hover-background'?: string;
532
532
  /**
533
533
  * Background color of the filter chips in the Liveboard on active.
534
534
  *
535
- * 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.
535
+ * 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.
536
536
  */
537
537
  '--ts-var-liveboard-chip--active-background'?: string;
538
538
  /**
@@ -48,7 +48,7 @@ export declare enum Page {
48
48
  Monitor = "monitor"
49
49
  }
50
50
  /**
51
- * Define the initial state os column custom group accordions
51
+ * Define the initial state of column custom group accordions
52
52
  * in data panel v2.
53
53
  */
54
54
  export declare enum DataPanelCustomColumnGroupsAccordionState {
@@ -119,7 +119,7 @@ export declare enum ListPage {
119
119
  */
120
120
  export interface DiscoveryExperience {
121
121
  /**
122
- * primaryNavbarVersion determines the version of the navigation version.
122
+ * primaryNavbarVersion determines the version of the primary navigation bar.
123
123
  */
124
124
  primaryNavbarVersion?: PrimaryNavbarVersion;
125
125
  /**
@@ -142,8 +142,8 @@ export interface AppViewConfig extends AllEmbedViewConfig {
142
142
  * This flag also controls the homepage left navigation bar.
143
143
  *
144
144
  * Supported embed types: `AppEmbed`
145
- * @default true
146
145
  * @version SDK: 1.2.0 | ThoughtSpot: 8.4.0.cl
146
+ * @default true
147
147
  * @example
148
148
  * ```js
149
149
  * const embed = new AppEmbed('#tsEmbed', {
@@ -164,8 +164,8 @@ export interface AppViewConfig extends AllEmbedViewConfig {
164
164
  * **Note**: This attribute is not supported in the classic (V1) experience.
165
165
  *
166
166
  * Supported embed types: `AppEmbed`
167
- * @default false
168
167
  * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
168
+ * @default false
169
169
  * @example
170
170
  * ```js
171
171
  * const embed = new AppEmbed('#tsEmbed', {
@@ -182,8 +182,8 @@ export interface AppViewConfig extends AllEmbedViewConfig {
182
182
  * navigation bar is not hidden via `showPrimaryNavbar`.
183
183
  *
184
184
  * Supported embed types: `AppEmbed`
185
- * @default false
186
185
  * @version SDK: 1.2.0 | ThoughtSpot: 8.4.0.cl
186
+ * @default false
187
187
  * @example
188
188
  * ```js
189
189
  * const embed = new AppEmbed('#tsEmbed', {
@@ -194,12 +194,12 @@ export interface AppViewConfig extends AllEmbedViewConfig {
194
194
  */
195
195
  disableProfileAndHelp?: boolean;
196
196
  /**
197
- * @version SDK: 1.36.3 | ThoughtSpot: 10.1.0.cl
198
- * @default true
199
197
  * Whether the help menu in the top navigation bar should be served
200
198
  * from Pendo or ThoughtSpot's internal help items.
201
199
  *
202
200
  * Supported embed types: `AppEmbed`
201
+ * @version SDK: 1.36.3 | ThoughtSpot: 10.1.0.cl
202
+ * @default true
203
203
  * @example
204
204
  * ```js
205
205
  * const embed = new AppEmbed('#tsEmbed', {
@@ -214,8 +214,8 @@ export interface AppViewConfig extends AllEmbedViewConfig {
214
214
  * the top navigation bar in the V3 navigation experience.
215
215
  *
216
216
  * Supported embed types: `AppEmbed`
217
- * @default false
218
217
  * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
218
+ * @default false
219
219
  * @example
220
220
  * ```js
221
221
  * const embed = new AppEmbed('#tsEmbed', {
@@ -234,8 +234,8 @@ export interface AppViewConfig extends AllEmbedViewConfig {
234
234
  * in the classic (V1) experience.
235
235
  *
236
236
  * Supported embed types: `AppEmbed`
237
- * @default true
238
237
  * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
238
+ * @default true
239
239
  * @example
240
240
  * ```js
241
241
  * const embed = new AppEmbed('#tsEmbed', {
@@ -253,8 +253,8 @@ export interface AppViewConfig extends AllEmbedViewConfig {
253
253
  * in the classic (V1) and V2 experience modes.
254
254
  *
255
255
  * Supported embed types: `AppEmbed`
256
- * @default true
257
256
  * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
257
+ * @default true
258
258
  * @example
259
259
  * ```js
260
260
  * const embed = new AppEmbed('#tsEmbed', {
@@ -270,7 +270,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
270
270
  * In the V3 experience, it shows or hides application selection
271
271
  * icons on the left navigation panel.
272
272
  * By default, the application selection menu and icons are
273
- * shown in the UI
273
+ * shown in the UI.
274
274
  *
275
275
  * **Note**: This attribute is not supported in the classic (V1) experience.
276
276
  *
@@ -310,7 +310,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
310
310
  * takes precedence. This is the path post the `#/` in the URL of the standalone
311
311
  * ThoughtSpot app. Use this to open the embedded view to a specific path.
312
312
  *
313
- * For eg, if you want the component to open to a specific Liveboard
313
+ * For example, if you want the component to open to a specific Liveboard
314
314
  * you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
315
315
  *
316
316
  * Supported embed types: `AppEmbed`
@@ -328,7 +328,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
328
328
  * The application page to set as the start page
329
329
  * in the embedded view.
330
330
  *
331
- * Use this to open to particular page in the app. To open to a specific
331
+ * Use this to open to a particular page in the app. To open to a specific
332
332
  * path within the app, use the `path` attribute which is more flexible.
333
333
  *
334
334
  * Supported embed types: `AppEmbed`
@@ -408,8 +408,8 @@ export interface AppViewConfig extends AllEmbedViewConfig {
408
408
  * If set to true, the Search Assist feature is enabled.
409
409
  *
410
410
  * Supported embed types: `AppEmbed`
411
- * @default true
412
411
  * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
412
+ * @default true
413
413
  * @example
414
414
  * ```js
415
415
  * const embed = new AppEmbed('#tsEmbed', {
@@ -447,8 +447,8 @@ export interface AppViewConfig extends AllEmbedViewConfig {
447
447
  * For more information,
448
448
  * see link:https://developers.thoughtspot.com/docs/full-app-customize[full app embed documentation].
449
449
  * Supported embed types: `AppEmbed`
450
- * @default false
451
450
  * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
451
+ * @default false
452
452
  * @example
453
453
  * ```js
454
454
  * const embed = new AppEmbed('#tsEmbed', {
@@ -463,8 +463,8 @@ export interface AppViewConfig extends AllEmbedViewConfig {
463
463
  * For more information, see
464
464
  * link:https://developers.thoughtspot.com/docs/full-app-customize[full app embed documentation].
465
465
  * Supported embed types: `AppEmbed`
466
- * @default false
467
466
  * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
467
+ * @default false
468
468
  * @example
469
469
  * ```js
470
470
  * const embed = new AppEmbed('#tsEmbed', {
@@ -479,10 +479,10 @@ export interface AppViewConfig extends AllEmbedViewConfig {
479
479
  */
480
480
  discoveryExperience?: DiscoveryExperience;
481
481
  /**
482
- * To set the initial state of the search bar in case of saved-answers.
482
+ * To set the initial state of the search bar in case of saved-answers. Use {@link collapseSearchBar} instead.
483
483
  * @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
484
+ * @deprecated This flag is deprecated.
484
485
  * @default false
485
- * @deprecated Use {@link collapseSearchBar} instead
486
486
  */
487
487
  collapseSearchBarInitially?: boolean;
488
488
  /**
@@ -510,14 +510,14 @@ export interface AppViewConfig extends AllEmbedViewConfig {
510
510
  * Flag to use home page search bar mode
511
511
  *
512
512
  * Supported embed types: `AppEmbed`
513
- * @version SDK : 1.33.0 | ThoughtSpot: 10.3.0.cl
513
+ * @version SDK: 1.33.0 | ThoughtSpot: 10.3.0.cl
514
514
  */
515
515
  homePageSearchBarMode?: HomePageSearchBarMode;
516
516
  /**
517
517
  * This flag is used to enable unified search experience for full app embed.
518
518
  *
519
519
  * Supported embed types: `AppEmbed`
520
- * @version SDK: 1.34.0 | ThoughtSpot:10.5.0.cl
520
+ * @version SDK: 1.34.0 | ThoughtSpot: 10.5.0.cl
521
521
  * @default true
522
522
  * @example
523
523
  * ```js
@@ -529,7 +529,8 @@ export interface AppViewConfig extends AllEmbedViewConfig {
529
529
  */
530
530
  isUnifiedSearchExperienceEnabled?: boolean;
531
531
  /**
532
- * This flag is used to enable/disable the styling and grouping in a Liveboard
532
+ * This flag is used to enable/disable the styling and grouping in a Liveboard. Use {@link isLiveboardMasterpiecesEnabled} instead.
533
+ * @deprecated This flag is deprecated.
533
534
  *
534
535
  * Supported embed types: `AppEmbed`, `LiveboardEmbed`
535
536
  * @type {boolean}
@@ -595,6 +596,9 @@ export interface AppViewConfig extends AllEmbedViewConfig {
595
596
  /**
596
597
  * This flag is used to enable the full height lazy load data.
597
598
  *
599
+ * @type {boolean}
600
+ * @version SDK: 1.40.0 | ThoughtSpot: 10.12.0.cl
601
+ * @default false
598
602
  * @example
599
603
  * ```js
600
604
  * const embed = new AppEmbed('#embed-container', {
@@ -603,39 +607,36 @@ export interface AppViewConfig extends AllEmbedViewConfig {
603
607
  * lazyLoadingForFullHeight: true,
604
608
  * })
605
609
  * ```
606
- *
607
- * @type {boolean}
608
- * @default false
609
- * @version SDK: 1.40.0 | ThoughtSpot:10.12.0.cl
610
610
  */
611
611
  lazyLoadingForFullHeight?: boolean;
612
612
  /**
613
613
  * The margin to be used for lazy loading.
614
614
  *
615
615
  * For example, if the margin is set to '10px',
616
- * the visualization will be loaded 10px before the its top edge is visible in the
616
+ * the visualization will be loaded 10px before its top edge is visible in the
617
617
  * viewport.
618
618
  *
619
619
  * The format is similar to CSS margin.
620
620
  *
621
+ * @type {string}
622
+ * @version SDK: 1.40.0 | ThoughtSpot: 10.12.0.cl
621
623
  * @example
622
624
  * ```js
623
625
  * const embed = new AppEmbed('#embed-container', {
624
626
  * // ...other options
625
627
  * fullHeight: true,
626
628
  * lazyLoadingForFullHeight: true,
627
- * // Using 0px, the visualization will be only loaded when its visible in the viewport.
629
+ * // Using 0px, the visualization will be only loaded when it's visible in the viewport.
628
630
  * lazyLoadingMargin: '0px',
629
631
  * })
630
632
  * ```
631
- * @type {string}
632
- * @version SDK: 1.40.0 | ThoughtSpot:10.12.0.cl
633
633
  */
634
634
  lazyLoadingMargin?: string;
635
635
  /**
636
636
  * updatedSpotterChatPrompt : Controls the updated spotter chat prompt.
637
637
  *
638
638
  * Supported embed types: `AppEmbed`
639
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
639
640
  * @default false
640
641
  * @example
641
642
  * ```js
@@ -644,25 +645,36 @@ export interface AppViewConfig extends AllEmbedViewConfig {
644
645
  * updatedSpotterChatPrompt : true,
645
646
  * })
646
647
  * ```
647
- * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
648
648
  */
649
649
  updatedSpotterChatPrompt?: boolean;
650
+ /**
651
+ * Controls the visibility of the past conversations sidebar.
652
+ *
653
+ * Supported embed types: `AppEmbed`
654
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
655
+ * @deprecated from SDK: 1.47.0 | ThoughtSpot: 26.4.0.cl
656
+ * Use `spotterSidebarConfig.enablePastConversationsSidebar`.
657
+ * @default false
658
+ */
659
+ enablePastConversationsSidebar?: boolean;
650
660
  /**
651
661
  * Configuration for the Spotter sidebar UI customization.
652
662
  * Only applicable when navigating to Spotter within the app.
653
663
  *
654
664
  * Supported embed types: `AppEmbed`
665
+ * @version SDK: 1.47.0 | ThoughtSpot: 26.4.0.cl
655
666
  * @example
656
667
  * ```js
657
668
  * const embed = new AppEmbed('#tsEmbed', {
658
- * ... //other embed view config
669
+ * // Deprecated standalone flag (backward compatibility)
670
+ * enablePastConversationsSidebar: false,
671
+ * // Recommended config; this value takes precedence
659
672
  * spotterSidebarConfig: {
660
673
  * enablePastConversationsSidebar: true,
661
674
  * spotterSidebarTitle: 'My Conversations',
662
675
  * },
663
676
  * })
664
677
  * ```
665
- * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
666
678
  */
667
679
  spotterSidebarConfig?: SpotterSidebarViewConfig;
668
680
  /**
@@ -670,6 +682,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
670
682
  * branding in tool response cards.
671
683
  *
672
684
  * Supported embed types: `AppEmbed`
685
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.4.0.cl
673
686
  * @example
674
687
  * ```js
675
688
  * const embed = new AppEmbed('#tsEmbed', {
@@ -680,7 +693,6 @@ export interface AppViewConfig extends AllEmbedViewConfig {
680
693
  * },
681
694
  * })
682
695
  * ```
683
- * @version SDK: 1.46.0 | ThoughtSpot: 26.4.0.cl
684
696
  */
685
697
  spotterChatConfig?: SpotterChatViewConfig;
686
698
  /**
@@ -700,6 +712,22 @@ export interface AppViewConfig extends AllEmbedViewConfig {
700
712
  * ```
701
713
  */
702
714
  minimumHeight?: number;
715
+ /**
716
+ * To enable the homepage announcement banner.
717
+ * Controls the visibility of the announcement section
718
+ * on the homepage.
719
+ *
720
+ * Supported embed types: `AppEmbed`
721
+ * @example
722
+ * ```js
723
+ * const embed = new AppEmbed('#tsEmbed', {
724
+ * ... // other embed view config
725
+ * enableHomepageAnnouncement: true,
726
+ * })
727
+ * ```
728
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
729
+ */
730
+ enableHomepageAnnouncement?: boolean;
703
731
  }
704
732
  /**
705
733
  * Embeds full ThoughtSpot experience in a host application.