@thoughtspot/visual-embed-sdk 1.28.3 → 1.28.5-alpha-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 (171) hide show
  1. package/README.md +1 -1
  2. package/cjs/package.json +2 -1
  3. package/cjs/src/auth.d.ts.map +1 -1
  4. package/cjs/src/auth.js +2 -2
  5. package/cjs/src/auth.js.map +1 -1
  6. package/cjs/src/authToken.d.ts +1 -1
  7. package/cjs/src/authToken.d.ts.map +1 -1
  8. package/cjs/src/authToken.js +9 -2
  9. package/cjs/src/authToken.js.map +1 -1
  10. package/cjs/src/embed/app.d.ts +50 -6
  11. package/cjs/src/embed/app.d.ts.map +1 -1
  12. package/cjs/src/embed/app.js +9 -3
  13. package/cjs/src/embed/app.js.map +1 -1
  14. package/cjs/src/embed/app.spec.js +10 -0
  15. package/cjs/src/embed/app.spec.js.map +1 -1
  16. package/cjs/src/embed/base.d.ts +1 -1
  17. package/cjs/src/embed/base.d.ts.map +1 -1
  18. package/cjs/src/embed/base.js +6 -6
  19. package/cjs/src/embed/base.js.map +1 -1
  20. package/cjs/src/embed/base.spec.js +1 -1
  21. package/cjs/src/embed/base.spec.js.map +1 -1
  22. package/cjs/src/embed/liveboard.d.ts +24 -2
  23. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  24. package/cjs/src/embed/liveboard.js +8 -3
  25. package/cjs/src/embed/liveboard.js.map +1 -1
  26. package/cjs/src/embed/liveboard.spec.js +61 -4
  27. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  28. package/cjs/src/embed/sage.d.ts +4 -4
  29. package/cjs/src/embed/sage.d.ts.map +1 -1
  30. package/cjs/src/embed/sage.js +2 -18
  31. package/cjs/src/embed/sage.js.map +1 -1
  32. package/cjs/src/embed/sage.spec.js +20 -31
  33. package/cjs/src/embed/sage.spec.js.map +1 -1
  34. package/cjs/src/embed/search.d.ts +33 -5
  35. package/cjs/src/embed/search.d.ts.map +1 -1
  36. package/cjs/src/embed/search.js +6 -4
  37. package/cjs/src/embed/search.js.map +1 -1
  38. package/cjs/src/embed/search.spec.js +2 -1
  39. package/cjs/src/embed/search.spec.js.map +1 -1
  40. package/cjs/src/embed/ts-embed.d.ts +1 -1
  41. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  42. package/cjs/src/embed/ts-embed.js +15 -6
  43. package/cjs/src/embed/ts-embed.js.map +1 -1
  44. package/cjs/src/embed/ts-embed.spec.js +27 -18
  45. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  46. package/cjs/src/errors.js +1 -1
  47. package/cjs/src/errors.js.map +1 -1
  48. package/cjs/src/react/index.spec.js +1 -13
  49. package/cjs/src/react/index.spec.js.map +1 -1
  50. package/cjs/src/types.d.ts +114 -15
  51. package/cjs/src/types.d.ts.map +1 -1
  52. package/cjs/src/types.js +68 -7
  53. package/cjs/src/types.js.map +1 -1
  54. package/cjs/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
  55. package/cjs/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
  56. package/cjs/src/utils/authService/tokenizedAuthService.spec.js +32 -0
  57. package/cjs/src/utils/authService/tokenizedAuthService.spec.js.map +1 -0
  58. package/cjs/src/utils/sessionInfoService.d.ts +66 -0
  59. package/cjs/src/utils/sessionInfoService.d.ts.map +1 -0
  60. package/cjs/src/utils/sessionInfoService.js +92 -0
  61. package/cjs/src/utils/sessionInfoService.js.map +1 -0
  62. package/dist/src/auth.d.ts.map +1 -1
  63. package/dist/src/authToken.d.ts +1 -1
  64. package/dist/src/authToken.d.ts.map +1 -1
  65. package/dist/src/embed/app.d.ts +50 -6
  66. package/dist/src/embed/app.d.ts.map +1 -1
  67. package/dist/src/embed/base.d.ts +1 -1
  68. package/dist/src/embed/base.d.ts.map +1 -1
  69. package/dist/src/embed/liveboard.d.ts +24 -2
  70. package/dist/src/embed/liveboard.d.ts.map +1 -1
  71. package/dist/src/embed/sage.d.ts +4 -4
  72. package/dist/src/embed/sage.d.ts.map +1 -1
  73. package/dist/src/embed/search.d.ts +33 -5
  74. package/dist/src/embed/search.d.ts.map +1 -1
  75. package/dist/src/embed/ts-embed.d.ts +1 -1
  76. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  77. package/dist/src/types.d.ts +114 -15
  78. package/dist/src/types.d.ts.map +1 -1
  79. package/dist/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
  80. package/dist/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
  81. package/dist/src/utils/sessionInfoService.d.ts +66 -0
  82. package/dist/src/utils/sessionInfoService.d.ts.map +1 -0
  83. package/dist/tsembed-react.es.js +1764 -1691
  84. package/dist/tsembed-react.js +7024 -6951
  85. package/dist/tsembed.es.js +7275 -7202
  86. package/dist/tsembed.js +15449 -15376
  87. package/dist/visual-embed-sdk-react-full.d.ts +223 -30
  88. package/dist/visual-embed-sdk-react.d.ts +223 -30
  89. package/dist/visual-embed-sdk.d.ts +223 -30
  90. package/lib/package.json +2 -1
  91. package/lib/src/auth.d.ts.map +1 -1
  92. package/lib/src/auth.js +3 -3
  93. package/lib/src/auth.js.map +1 -1
  94. package/lib/src/authToken.d.ts +1 -1
  95. package/lib/src/authToken.d.ts.map +1 -1
  96. package/lib/src/authToken.js +9 -2
  97. package/lib/src/authToken.js.map +1 -1
  98. package/lib/src/embed/app.d.ts +50 -6
  99. package/lib/src/embed/app.d.ts.map +1 -1
  100. package/lib/src/embed/app.js +9 -3
  101. package/lib/src/embed/app.js.map +1 -1
  102. package/lib/src/embed/app.spec.js +10 -0
  103. package/lib/src/embed/app.spec.js.map +1 -1
  104. package/lib/src/embed/base.d.ts +1 -1
  105. package/lib/src/embed/base.d.ts.map +1 -1
  106. package/lib/src/embed/base.js +5 -5
  107. package/lib/src/embed/base.js.map +1 -1
  108. package/lib/src/embed/base.spec.js +2 -2
  109. package/lib/src/embed/base.spec.js.map +1 -1
  110. package/lib/src/embed/liveboard.d.ts +24 -2
  111. package/lib/src/embed/liveboard.d.ts.map +1 -1
  112. package/lib/src/embed/liveboard.js +9 -4
  113. package/lib/src/embed/liveboard.js.map +1 -1
  114. package/lib/src/embed/liveboard.spec.js +61 -4
  115. package/lib/src/embed/liveboard.spec.js.map +1 -1
  116. package/lib/src/embed/sage.d.ts +4 -4
  117. package/lib/src/embed/sage.d.ts.map +1 -1
  118. package/lib/src/embed/sage.js +2 -18
  119. package/lib/src/embed/sage.js.map +1 -1
  120. package/lib/src/embed/sage.spec.js +20 -31
  121. package/lib/src/embed/sage.spec.js.map +1 -1
  122. package/lib/src/embed/search.d.ts +33 -5
  123. package/lib/src/embed/search.d.ts.map +1 -1
  124. package/lib/src/embed/search.js +7 -5
  125. package/lib/src/embed/search.js.map +1 -1
  126. package/lib/src/embed/search.spec.js +2 -1
  127. package/lib/src/embed/search.spec.js.map +1 -1
  128. package/lib/src/embed/ts-embed.d.ts +1 -1
  129. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  130. package/lib/src/embed/ts-embed.js +18 -9
  131. package/lib/src/embed/ts-embed.js.map +1 -1
  132. package/lib/src/embed/ts-embed.spec.js +27 -18
  133. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  134. package/lib/src/errors.js +1 -1
  135. package/lib/src/errors.js.map +1 -1
  136. package/lib/src/react/index.spec.js +1 -13
  137. package/lib/src/react/index.spec.js.map +1 -1
  138. package/lib/src/types.d.ts +114 -15
  139. package/lib/src/types.d.ts.map +1 -1
  140. package/lib/src/types.js +68 -7
  141. package/lib/src/types.js.map +1 -1
  142. package/lib/src/utils/authService/authService.spec.js +1 -1
  143. package/lib/src/utils/authService/authService.spec.js.map +1 -1
  144. package/lib/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
  145. package/lib/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
  146. package/lib/src/utils/authService/tokenizedAuthService.spec.js +29 -0
  147. package/lib/src/utils/authService/tokenizedAuthService.spec.js.map +1 -0
  148. package/lib/src/utils/sessionInfoService.d.ts +66 -0
  149. package/lib/src/utils/sessionInfoService.d.ts.map +1 -0
  150. package/lib/src/utils/sessionInfoService.js +85 -0
  151. package/lib/src/utils/sessionInfoService.js.map +1 -0
  152. package/lib/src/visual-embed-sdk.d.ts +228 -35
  153. package/package.json +2 -1
  154. package/src/auth.ts +6 -6
  155. package/src/authToken.ts +9 -2
  156. package/src/embed/app.spec.ts +15 -0
  157. package/src/embed/app.ts +67 -8
  158. package/src/embed/base.spec.ts +3 -3
  159. package/src/embed/base.ts +14 -14
  160. package/src/embed/liveboard.spec.ts +82 -9
  161. package/src/embed/liveboard.ts +42 -5
  162. package/src/embed/sage.spec.ts +20 -35
  163. package/src/embed/sage.ts +4 -21
  164. package/src/embed/search.spec.ts +2 -1
  165. package/src/embed/search.ts +45 -10
  166. package/src/embed/ts-embed.spec.ts +48 -34
  167. package/src/embed/ts-embed.ts +52 -39
  168. package/src/errors.ts +1 -1
  169. package/src/react/index.spec.tsx +1 -30
  170. package/src/types.ts +114 -15
  171. package/src/utils/authService/authService.spec.ts +4 -4
@@ -40,7 +40,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
40
40
  * @module
41
41
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
42
42
  */
43
- import { DOMSelector, MessagePayload, ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
43
+ import { DOMSelector, ViewConfig, MessagePayload } from '@thoughtspot/visual-embed-sdk/types';
44
44
  import { V1Embed } from '@thoughtspot/visual-embed-sdk/embed/ts-embed';
45
45
  /**
46
46
  * Pages within the ThoughtSpot app that can be embedded.
@@ -88,6 +88,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
88
88
  *
89
89
  * @default true
90
90
  * @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
91
+ *
91
92
  * @example
92
93
  * ```js
93
94
  * const embed = new AppEmbed('#tsEmbed', {
@@ -103,7 +104,6 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
103
104
  * nav-bars are visible, this flag will only hide the homepage left nav-bar.
104
105
  * The showPrimaryNavbar flag takes precedence over the hideHomepageLeftNav.
105
106
  *
106
- *
107
107
  * **Note**: This option does not apply to the classic homepage.
108
108
  * To access the updated modular homepage, set
109
109
  * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
@@ -123,9 +123,9 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
123
123
  /**
124
124
  * Control the visibility of the help (?) and profile buttons on the
125
125
  * Global nav-bar. By default, these buttons are visible on the nav-bar.
126
- *
127
126
  * @default false
128
127
  * @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
128
+ *
129
129
  * @example
130
130
  * ```js
131
131
  * const embed = new AppEmbed('#tsEmbed', {
@@ -139,7 +139,6 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
139
139
  * Control the visibility of the application switcher button on the nav-bar.
140
140
  * By default, the application switcher is shown.
141
141
  *
142
- *
143
142
  * **Note**: This option does not apply to the classic homepage.
144
143
  * To access the updated modular homepage, set
145
144
  * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
@@ -160,7 +159,6 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
160
159
  * Control the visibility of the Org switcher button on the nav-bar.
161
160
  * By default, the Org switcher button is shown.
162
161
  *
163
- *
164
162
  * **Note**: This option does not apply to the classic homepage.
165
163
  * To access the updated modular homepage, set
166
164
  * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
@@ -187,6 +185,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
187
185
  * you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
188
186
  *
189
187
  * @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
188
+ *
190
189
  * @example
191
190
  * ```js
192
191
  * const embed = new AppEmbed('#tsEmbed', {
@@ -204,6 +203,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
204
203
  * path within the app, use the `path` attribute which is more flexible.
205
204
  *
206
205
  * @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
206
+ *
207
207
  * @example
208
208
  * ```js
209
209
  * const embed = new AppEmbed('#tsEmbed', {
@@ -232,6 +232,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
232
232
  * The array of GUIDs to be hidden
233
233
  *
234
234
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
235
+ *
235
236
  * @example
236
237
  * ```js
237
238
  * const embed = new AppEmbed('#tsEmbed', {
@@ -254,9 +255,10 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
254
255
  liveboardV2?: boolean;
255
256
  /**
256
257
  * If set to true, the Search Assist feature is enabled.
257
- *
258
258
  * @default true
259
+ *
259
260
  * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
261
+ *
260
262
  * @example
261
263
  * ```js
262
264
  * const embed = new AppEmbed('#tsEmbed', {
@@ -271,6 +273,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
271
273
  * according to the height of the pages which support fullHeight mode.
272
274
  *
273
275
  * @version SDK: 1.21.0 | ThoughtSpot: 9.4.0.cl, 9.4.0-sw
276
+ *
274
277
  * @example
275
278
  * ```js
276
279
  * const embed = new AppEmbed('#tsEmbed', {
@@ -293,6 +296,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
293
296
  *
294
297
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
295
298
  * @default false
299
+ *
296
300
  * @example
297
301
  * ```js
298
302
  * const embed = new AppEmbed('#tsEmbed', {
@@ -307,6 +311,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
307
311
  *
308
312
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
309
313
  * @default false
314
+ *
310
315
  * @example
311
316
  * ```js
312
317
  * const embed = new AppEmbed('#tsEmbed', {
@@ -321,6 +326,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
321
326
  *
322
327
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
323
328
  * @default false
329
+ *
324
330
  * @example
325
331
  * ```js
326
332
  * const embed = new AppEmbed('#tsEmbed', {
@@ -365,6 +371,44 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
365
371
  * @default false
366
372
  */
367
373
  enableAskSage?: boolean;
374
+ /**
375
+ * To set the initial state of the search bar in case of saved-answers.
376
+ *
377
+ * @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
378
+ * @default false
379
+ */
380
+ collapseSearchBarInitially?: boolean;
381
+ /**
382
+ * To enable custom column groups in data panel v2
383
+ *
384
+ * @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
385
+ * @default false
386
+ *
387
+ * @example
388
+ * ```js
389
+ * const embed = new AppEmbed('#embed', {
390
+ * ... // other app view config
391
+ * enableCustomColumnGroups: true,
392
+ * });
393
+ * ```
394
+ */
395
+ enableCustomColumnGroups?: boolean;
396
+ /**
397
+ * This flag is used to enable the 2 column layout in liveboard
398
+ *
399
+ * @type {boolean}
400
+ * @default false
401
+ * @version SDK: 1.32.0 | ThoughtSpot:10.1.0.cl
402
+ *
403
+ * @example
404
+ * ```js
405
+ * const embed = new LiveboardEmbed('#embed-container', {
406
+ * ... // other options
407
+ * enable2ColumnLayout: true,
408
+ * })
409
+ * ```
410
+ */
411
+ enable2ColumnLayout?: boolean;
368
412
  }
369
413
  /**
370
414
  * Embeds full ThoughtSpot experience in a host application.
@@ -416,8 +460,8 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
416
460
  }
417
461
 
418
462
  declare module '@thoughtspot/visual-embed-sdk/embed/base' {
419
- import { AuthEventEmitter, notifyAuthFailure, notifyAuthSDKSuccess, notifyAuthSuccess, notifyLogout } from '@thoughtspot/visual-embed-sdk/auth';
420
463
  import { EmbedConfig, PrefetchFeatures } from '@thoughtspot/visual-embed-sdk/types';
464
+ import { notifyAuthFailure, notifyAuthSDKSuccess, notifyAuthSuccess, notifyLogout, AuthEventEmitter } from '@thoughtspot/visual-embed-sdk/auth';
421
465
  export interface executeTMLInput {
422
466
  metadata_tmls: string[];
423
467
  import_policy?: 'PARTIAL' | 'ALL_OR_NONE' | 'VALIDATE_ONLY';
@@ -587,6 +631,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
587
631
  * incrementally as users scroll the page to view the charts and tables.
588
632
  *
589
633
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
634
+ *
590
635
  * @example
591
636
  * ```js
592
637
  * const embed = new LiveboardEmbed('#embed', {
@@ -615,6 +660,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
615
660
  defaultHeight?: number;
616
661
  /**
617
662
  * @Deprecated If set to true, the context menu in visualizations will be enabled.
663
+ *
618
664
  * @example
619
665
  * ```js
620
666
  * const embed = new LiveboardEmbed('#tsEmbed', {
@@ -622,6 +668,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
622
668
  * enableVizTransformations:true,
623
669
  * })
624
670
  * ```
671
+ *
625
672
  * @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
626
673
  */
627
674
  enableVizTransformations?: boolean;
@@ -648,6 +695,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
648
695
  * The visualization within the Liveboard to display.
649
696
  *
650
697
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
698
+ *
651
699
  * @example
652
700
  * ```js
653
701
  * const embed = new LiveboardEmbed('#embed-container', {
@@ -677,6 +725,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
677
725
  * event.
678
726
  *
679
727
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
728
+ *
680
729
  * @example
681
730
  * ```js
682
731
  * const embed = new LiveboardEmbed('#embed-container', {
@@ -726,6 +775,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
726
775
  * Show or hide the tab panel of the embedded Liveboard.
727
776
  *
728
777
  * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
778
+ *
729
779
  * @example
730
780
  * ```js
731
781
  * const embed = new LiveboardEmbed('#embed-container', {
@@ -751,9 +801,9 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
751
801
  hideLiveboardHeader?: boolean;
752
802
  /**
753
803
  * Show or hide the Liveboard title.
754
- *
755
804
  * @default false
756
805
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
806
+ *
757
807
  * @example
758
808
  * ```js
759
809
  * const embed = new LiveboardEmbed('#embed-container', {
@@ -765,9 +815,9 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
765
815
  showLiveboardTitle?: boolean;
766
816
  /**
767
817
  * Show or hide the Liveboard description.
768
- *
769
818
  * @default false
770
819
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
820
+ *
771
821
  * @example
772
822
  * ```js
773
823
  * const embed = new LiveboardEmbed('#embed-container', {
@@ -806,6 +856,22 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
806
856
  * ```
807
857
  */
808
858
  enableAskSage?: boolean;
859
+ /**
860
+ * This flag is used to enable the 2 column layout in liveboard
861
+ *
862
+ * @type {boolean}
863
+ * @default false
864
+ * @version SDK: 1.32.0 | ThoughtSpot:10.1.0.cl
865
+ *
866
+ * @example
867
+ * ```js
868
+ * const embed = new LiveboardEmbed('#embed-container', {
869
+ * ... // other options
870
+ * enable2ColumnLayout: true,
871
+ * })
872
+ * ```
873
+ */
874
+ enable2ColumnLayout?: boolean;
809
875
  }
810
876
  /**
811
877
  * Embed a ThoughtSpot Liveboard or visualization. When rendered it already
@@ -865,7 +931,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
865
931
  * @summary Search embed
866
932
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
867
933
  */
868
- import { Action, DOMSelector, ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
934
+ import { DOMSelector, Action, ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
869
935
  import { TsEmbed } from '@thoughtspot/visual-embed-sdk/embed/ts-embed';
870
936
  /**
871
937
  * Configuration for search options.
@@ -895,6 +961,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
895
961
  * but can be expanded manually.
896
962
  *
897
963
  * @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
964
+ *
898
965
  * @example
899
966
  * ```js
900
967
  * const embed = new SearchEmbed('#tsEmbed', {
@@ -908,6 +975,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
908
975
  * Show or hide the data sources panel.
909
976
  *
910
977
  * @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
978
+ *
911
979
  * @example
912
980
  * ```js
913
981
  * const embed = new SearchEmbed('#tsEmbed', {
@@ -923,6 +991,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
923
991
  * using raw answer data.
924
992
  *
925
993
  * @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
994
+ *
926
995
  * @example
927
996
  * ```js
928
997
  * const embed = new SearchEmbed('#tsEmbed', {
@@ -932,14 +1001,11 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
932
1001
  * ```
933
1002
  */
934
1003
  hideResults?: boolean;
935
- /**
936
- * If set to true, expands all the data sources panel.
937
- */
938
- expandAllDataSource?: boolean;
939
1004
  /**
940
1005
  * If set to true, the Search Assist feature is enabled.
941
1006
  *
942
1007
  * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
1008
+ *
943
1009
  * @example
944
1010
  * ```js
945
1011
  * const embed = new SearchEmbed('#tsEmbed', {
@@ -954,6 +1020,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
954
1020
  * format for presenting search data.
955
1021
  *
956
1022
  * @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
1023
+ *
957
1024
  * @example
958
1025
  * ```js
959
1026
  * const embed = new SearchEmbed('#tsEmbed', {
@@ -967,6 +1034,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
967
1034
  * Only a single data source is supported currently.
968
1035
  *
969
1036
  * @deprecated Use `dataSource` instead.
1037
+ *
970
1038
  * @example
971
1039
  * ```js
972
1040
  * const embed = new SearchEmbed('#tsEmbed', {
@@ -980,6 +1048,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
980
1048
  * The array of data source GUIDs to set on load.
981
1049
  *
982
1050
  * @version: SDK: 1.19.0
1051
+ *
983
1052
  * @example
984
1053
  * ```js
985
1054
  * const embed = new SearchEmbed('#tsEmbed', {
@@ -1021,6 +1090,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
1021
1090
  * The GUID of a saved answer to load initially.
1022
1091
  *
1023
1092
  * @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
1093
+ *
1024
1094
  * @example
1025
1095
  * ```js
1026
1096
  * const embed = new SearchEmbed('#tsEmbed', {
@@ -1035,6 +1105,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
1035
1105
  * The chart/table should still be visible.
1036
1106
  *
1037
1107
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
1108
+ *
1038
1109
  * @example
1039
1110
  * ```js
1040
1111
  * const embed = new SearchEmbed('#tsEmbed', {
@@ -1049,6 +1120,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
1049
1120
  *
1050
1121
  * @default false
1051
1122
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1123
+ *
1052
1124
  * @example
1053
1125
  * ```js
1054
1126
  * const embed = new SearchEmbed('#tsEmbed', {
@@ -1064,6 +1136,28 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
1064
1136
  * @version: SDK: 1.24.0
1065
1137
  */
1066
1138
  useLastSelectedSources?: boolean;
1139
+ /**
1140
+ * To set the initial state of the search bar in case of saved-answers.
1141
+ *
1142
+ * @default false
1143
+ * @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
1144
+ */
1145
+ collapseSearchBarInitially?: boolean;
1146
+ /**
1147
+ * To enable custom column groups in data panel v2
1148
+ *
1149
+ * @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
1150
+ * @default false
1151
+ *
1152
+ * @example
1153
+ * ```js
1154
+ * const embed = new SearchEmbed('#tsEmbed', {
1155
+ * ... // other options
1156
+ * enableCustomColumnGroups: true,
1157
+ * });
1158
+ * ```
1159
+ */
1160
+ enableCustomColumnGroups?: boolean;
1067
1161
  }
1068
1162
  export const HiddenActionItemByDefaultForSearchEmbed: Action[];
1069
1163
  /**
@@ -1529,7 +1623,6 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1529
1623
  * .then((data) => data.token);
1530
1624
  * }
1531
1625
  * });
1532
- * });
1533
1626
  * ```
1534
1627
  */
1535
1628
  TrustedAuthToken = "AuthServer",
@@ -1953,6 +2046,41 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1953
2046
  * @version SDK: 1.27.9
1954
2047
  */
1955
2048
  disableSDKTracking?: boolean;
2049
+ /**
2050
+ * Overrides default/user preffered locale for date formatting
2051
+ *
2052
+ * @version SDK: 1.28.4 | Thoughtspot: 10.0.0.cl, 9.5.0.sw
2053
+ */
2054
+ dateFormatLocale?: string;
2055
+ /**
2056
+ * Overrides default/user preffered locale for number formatting
2057
+ *
2058
+ * @version SDK: 1.28.4 | Thoughtspot: 10.0.0.cl, 9.5.0.sw
2059
+ */
2060
+ numberFormatLocale?: string;
2061
+ /**
2062
+ * Format to be used for currency when currency format is set to infer from browser
2063
+ *
2064
+ * @version SDK: 1.28.4 | Thoughtspot: 10.0.0.cl, 9.5.0.sw
2065
+ */
2066
+ currencyFormat?: string;
2067
+ /**
2068
+ * This flag is used to disable the token verification in the SDK.
2069
+ * Enabling this flag will also disable the caching of the token.
2070
+ *
2071
+ * @hidden
2072
+ *
2073
+ * @example
2074
+ * ```js
2075
+ * init({
2076
+ * ...embedConfig,
2077
+ * disableTokenVerification : true
2078
+ * })
2079
+ * ```
2080
+ *
2081
+ * @version SDK: 1.28.5 | Thoughtspot: *
2082
+ */
2083
+ disableTokenVerification?: boolean;
1956
2084
  }
1957
2085
  export interface LayoutConfig {
1958
2086
  }
@@ -1995,6 +2123,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1995
2123
  * object inside your app. Specify the values in pixels or percentage.
1996
2124
  *
1997
2125
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
2126
+ *
1998
2127
  * @example
1999
2128
  * ```js
2000
2129
  * const embed = new LiveboardEmbed('#embed', {
@@ -2033,7 +2162,6 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2033
2162
  disabledActions?: Action[];
2034
2163
  /**
2035
2164
  * The tooltip to display for disabled actions.
2036
- *
2037
2165
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
2038
2166
  * @example
2039
2167
  * ```js
@@ -2051,6 +2179,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2051
2179
  * Use this to hide an action.
2052
2180
  *
2053
2181
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
2182
+ *
2054
2183
  * @example
2055
2184
  * ```js
2056
2185
  * const embed = new LiveboardEmbed('#embed', {
@@ -2071,6 +2200,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2071
2200
  *
2072
2201
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
2073
2202
  * @important
2203
+ *
2074
2204
  * @example
2075
2205
  * ```js
2076
2206
  * const embed = new LiveboardEmbed('#embed', {
@@ -2084,6 +2214,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2084
2214
  * Show alert messages and toast messages in the embedded view.
2085
2215
  *
2086
2216
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2217
+ *
2087
2218
  * @example
2088
2219
  * ```js
2089
2220
  * const embed = new LiveboardEmbed('#embed-container', {
@@ -2098,6 +2229,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2098
2229
  * visualization, or Liveboard.
2099
2230
  *
2100
2231
  * @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
2232
+ *
2101
2233
  * @example
2102
2234
  * ```js
2103
2235
  * const embed = new LiveboardEmbed('#embed-container', {
@@ -2118,6 +2250,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2118
2250
  * visualization, or Liveboard.
2119
2251
  *
2120
2252
  * @version SDK : 1.25.0 | Thoughtspot: 9.2.0.cl, 9.5.0.sw
2253
+ *
2121
2254
  * @example
2122
2255
  * ```js
2123
2256
  * const embed = new LiveboardEmbed('#embed-container', {
@@ -2152,7 +2285,6 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2152
2285
  * Warning: This option is for advanced use only and is used internally
2153
2286
  * to control embed behavior in non-regular ways. We do not publish the
2154
2287
  * list of supported keys and values associated with each.
2155
- *
2156
2288
  * @example
2157
2289
  * ```js
2158
2290
  * const embed = new LiveboardEmbed('#embed', {
@@ -2181,6 +2313,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2181
2313
  * child inside it.
2182
2314
  *
2183
2315
  * @version SDK: 1.2.0 | Thoughtspot: 9.0.0.cl, 9.0.0.sw
2316
+ *
2184
2317
  * @example
2185
2318
  * ```js
2186
2319
  * const embed = new LiveboardEmbed('#embed-container', {
@@ -2266,8 +2399,6 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2266
2399
  * Hide the home page modules
2267
2400
  * For example: hiddenHomepageModules = [HomepageModule.MyLibrary]
2268
2401
  *
2269
- *
2270
- *
2271
2402
  * **Note**: This option does not apply to the classic homepage.
2272
2403
  * To access the updated modular homepage, set
2273
2404
  * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
@@ -2280,13 +2411,13 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2280
2411
  * hiddenHomepageModules : [HomepageModule.Favorite,HomepageModule.Learning],
2281
2412
  * })
2282
2413
  * ```
2414
+ *
2283
2415
  */
2284
2416
  hiddenHomepageModules?: HomepageModule[];
2285
2417
  /**
2286
2418
  * reordering the home page modules
2287
2419
  * eg: reorderedHomepageModules = [HomepageModule.MyLibrary, HomepageModule.Watchlist]
2288
2420
  *
2289
- *
2290
2421
  * **Note**: This option does not apply to the classic homepage.
2291
2422
  * To access the updated modular homepage, set
2292
2423
  * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
@@ -2309,6 +2440,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2309
2440
  * Use either `visibleTabs` or `hiddenTabs`.
2310
2441
  *
2311
2442
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
2443
+ *
2312
2444
  * @example
2313
2445
  * ```js
2314
2446
  * const embed = new LiveboardEmbed('#embed-container', {
@@ -2334,8 +2466,6 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2334
2466
  * })
2335
2467
  * ```
2336
2468
  *
2337
- *
2338
- *
2339
2469
  * **Note**: This option does not apply to the classic homepage.
2340
2470
  * To access the updated modular homepage, set
2341
2471
  * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
@@ -2368,6 +2498,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2368
2498
  * @type {boolean}
2369
2499
  * @default false
2370
2500
  * @version SDK: 1.24.0 | ThoughtSpot:9.4.0.cl, 9.4.0.sw
2501
+ *
2371
2502
  * @example
2372
2503
  * ```js
2373
2504
  * // Disable tracking PreRender size in the configuration
@@ -2771,8 +2902,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2771
2902
  *
2772
2903
  * API - API call failure error.
2773
2904
  *
2774
- * FULLSCREEN - Error when presenting a Liveboard or visualization in full screen
2775
- * mode.
2905
+ * FULLSCREEN - Error when presenting a Liveboard or visualization in full screen mode.
2776
2906
  *
2777
2907
  * SINGLE_VALUE_FILTER - Error due to multiple values in the single value filter.
2778
2908
  *
@@ -4413,7 +4543,14 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
4413
4543
  HideSearchBar = "hideSearchBar",
4414
4544
  ClientLogLevel = "clientLogLevel",
4415
4545
  OverrideNativeConsole = "overrideConsoleLogs",
4416
- enableAskSage = "enableAskSage"
4546
+ enableAskSage = "enableAskSage",
4547
+ CollapseSearchBarInitially = "collapseSearchBarInitially",
4548
+ EnableCustomColumnGroups = "enableCustomColumnGroups",
4549
+ DateFormatLocale = "dateFormatLocale",
4550
+ NumberFormatLocale = "numberFormatLocale",
4551
+ CurrencyFormat = "currencyFormat",
4552
+ Enable2ColumnLayout = "enable2ColumnLayout",
4553
+ IsFullAppEmbed = "isFullAppEmbed"
4417
4554
  }
4418
4555
  /**
4419
4556
  * ThoughtSpot application pages include actions and menu commands
@@ -4549,6 +4686,18 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
4549
4686
  * ```
4550
4687
  */
4551
4688
  AddFilter = "addFilter",
4689
+ /**
4690
+ * The **Add Data Panel Objects** action on the data panel v2.
4691
+ * Allows to show action menu to add different objects (like
4692
+ * formulas, parameters) in data panel v2.
4693
+ *
4694
+ * @example
4695
+ * ```js
4696
+ * disabledActions: [Action.AddDataPanelObjects]
4697
+ * ```
4698
+ * @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
4699
+ */
4700
+ AddDataPanelObjects = "addDataPanelObjects",
4552
4701
  /**
4553
4702
  * Filter configuration options on a Liveboard and Search page.
4554
4703
  * Allows configuring filter options when adding filters to a
@@ -4591,6 +4740,28 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
4591
4740
  * ```
4592
4741
  */
4593
4742
  AddParameter = "addParameter",
4743
+ /**
4744
+ * The **Add Column Set** action on a Answer.
4745
+ * Allows adding column sets to a Answer.
4746
+ *
4747
+ * @example
4748
+ * ```js
4749
+ * disabledActions: [Action.AddColumnSet]
4750
+ * ```
4751
+ * @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
4752
+ */
4753
+ AddColumnSet = "addSimpleCohort",
4754
+ /**
4755
+ * The **Add Query Set** action on a Answer.
4756
+ * Allows adding query sets to a Answer.
4757
+ *
4758
+ * @example
4759
+ * ```js
4760
+ * disabledActions: [Action.AddQuerySet]
4761
+ * ```
4762
+ * @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
4763
+ */
4764
+ AddQuerySet = "addAdvancedCohort",
4594
4765
  /**
4595
4766
  * @hidden
4596
4767
  */
@@ -5022,6 +5193,28 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5022
5193
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
5023
5194
  */
5024
5195
  CrossFilter = "context-menu-item-cross-filter",
5196
+ /**
5197
+ * The **Sync to Slack** action on Liveboard visualizations.
5198
+ * Allows sending data to third-party apps Slack
5199
+ *
5200
+ * @example
5201
+ * ```js
5202
+ * disabledActions: [Action.SyncToSlack]
5203
+ * ```
5204
+ * @version @version SDK : 1.32.0 | Thoughtspot: 10.1.0.cl
5205
+ */
5206
+ SyncToSlack = "syncToSlack",
5207
+ /**
5208
+ * The **Sync to Teams** action on Liveboard visualizations.
5209
+ * Allows sending data to third-party apps Team
5210
+ *
5211
+ * @example
5212
+ * ```js
5213
+ * disabledActions: [Action.SyncToTeams]
5214
+ * ```
5215
+ * @version @version SDK : 1.32.0 | Thoughtspot: 10.1.0.cl
5216
+ */
5217
+ SyncToTeams = "syncToTeams",
5025
5218
  /**
5026
5219
  * The **Remove** action that appears when cross filters are applied
5027
5220
  * on a Liveboard.
@@ -5324,15 +5517,15 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5324
5517
  */
5325
5518
  RemoveFromWatchlist = "removeFromWatchlist",
5326
5519
  /**
5327
- * The **Copy KPI Link** menu action on KPI watchlist.
5520
+ * The **Organise Favourites** action on Homepage Favourite Module.
5328
5521
  *
5329
5522
  * @example
5330
5523
  * ```js
5331
- * disabledActions: [Action.CopyKpiLink]
5524
+ * disabledActions: [Action.OrganiseFavourites]
5332
5525
  * ```
5333
- * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
5526
+ * @version SDK : 1.32.0 | Thoughtspot: 10.0.0.cl
5334
5527
  */
5335
- CopyKpiLink = "copyKpiLink",
5528
+ OrganiseFavourites = "organiseFavourites",
5336
5529
  /**
5337
5530
  * Action ID for AI Highlights button
5338
5531
  *
@@ -5835,7 +6028,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/sage' {
5835
6028
  * @summary TS Sage embed
5836
6029
  * @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
5837
6030
  */
5838
- import { Action, DOMSelector, ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
6031
+ import { DOMSelector, ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
5839
6032
  import { V1Embed } from '@thoughtspot/visual-embed-sdk/embed/ts-embed';
5840
6033
  /**
5841
6034
  * Configuration for search options
@@ -5873,7 +6066,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/sage' {
5873
6066
  showObjectResults?: boolean;
5874
6067
  /**
5875
6068
  * flag used by the TS product tour page to show the blue search bar
5876
- * even after the search is completed. This is different from TSE Sage Embed
6069
+ * even after the search is completed. This is different from Thoughtspot Embedded Sage Embed
5877
6070
  * experience where it mimics closer to the non-embed case.
5878
6071
  * The Sample questions container is collapsed when this value is set after
5879
6072
  * does a search.
@@ -5884,8 +6077,9 @@ declare module '@thoughtspot/visual-embed-sdk/embed/sage' {
5884
6077
  isProductTour?: boolean;
5885
6078
  /**
5886
6079
  * Show or hide the search bar title.
6080
+ * @version SDK: 1.29.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
5887
6081
  *
5888
- * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
6082
+ * @deprecated Thoughtspot: 9.10.0.cl | search bar doesn't have the title from 9.10.0.cl
5889
6083
  */
5890
6084
  hideSearchBarTitle?: boolean;
5891
6085
  /**
@@ -5955,7 +6149,6 @@ declare module '@thoughtspot/visual-embed-sdk/embed/sage' {
5955
6149
  */
5956
6150
  searchOptions?: SearchOptions;
5957
6151
  }
5958
- export const HiddenActionItemByDefaultForSageEmbed: Action[];
5959
6152
  /**
5960
6153
  * Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
5961
6154
  *
@@ -6199,7 +6392,7 @@ declare module '@thoughtspot/visual-embed-sdk/authToken' {
6199
6392
  * ```js
6200
6393
  * resetCachedAuthToken();
6201
6394
  * ```
6202
- * @version SDK: 1.28.2 | ThoughtSpot: *
6395
+ * @version SDK: 1.28.0 | ThoughtSpot: *
6203
6396
  * @group Authentication / Init
6204
6397
  */
6205
6398
  export const resetCachedAuthToken: () => void;
@@ -6214,8 +6407,8 @@ declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
6214
6407
  * @summary Base classes
6215
6408
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
6216
6409
  */
6217
- import { DOMSelector, EmbedConfig, EmbedEvent, HostEvent, MessageCallback, MessageOptions, ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
6218
6410
  import { AnswerService } from '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answerService';
6411
+ import { DOMSelector, HostEvent, EmbedEvent, MessageCallback, EmbedConfig, MessageOptions, ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
6219
6412
  /**
6220
6413
  * Global prefix for all Thoughtspot postHash Params.
6221
6414
  */