@thoughtspot/visual-embed-sdk 1.32.3 → 1.32.6

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 (158) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/app.d.ts +42 -0
  3. package/cjs/src/embed/app.d.ts.map +1 -1
  4. package/cjs/src/embed/app.js +4 -1
  5. package/cjs/src/embed/app.js.map +1 -1
  6. package/cjs/src/embed/app.spec.js +30 -0
  7. package/cjs/src/embed/app.spec.js.map +1 -1
  8. package/cjs/src/embed/base.d.ts +1 -1
  9. package/cjs/src/embed/base.d.ts.map +1 -1
  10. package/cjs/src/embed/base.js +6 -7
  11. package/cjs/src/embed/base.js.map +1 -1
  12. package/cjs/src/embed/embed.spec.js +0 -19
  13. package/cjs/src/embed/embed.spec.js.map +1 -1
  14. package/cjs/src/embed/liveboard.d.ts +42 -0
  15. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  16. package/cjs/src/embed/liveboard.js +4 -1
  17. package/cjs/src/embed/liveboard.js.map +1 -1
  18. package/cjs/src/embed/liveboard.spec.js +33 -0
  19. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  20. package/cjs/src/embed/ts-embed.d.ts +0 -1
  21. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  22. package/cjs/src/embed/ts-embed.js +3 -9
  23. package/cjs/src/embed/ts-embed.js.map +1 -1
  24. package/cjs/src/embed/ts-embed.spec.js +0 -9
  25. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  26. package/cjs/src/types.d.ts +62 -16
  27. package/cjs/src/types.d.ts.map +1 -1
  28. package/cjs/src/types.js +55 -7
  29. package/cjs/src/types.js.map +1 -1
  30. package/cjs/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
  31. package/cjs/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  32. package/cjs/src/utils/graphql/answerService/answer-queries.js +9 -2
  33. package/cjs/src/utils/graphql/answerService/answer-queries.js.map +1 -1
  34. package/cjs/src/utils/graphql/answerService/answerService.d.ts +15 -0
  35. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  36. package/cjs/src/utils/graphql/answerService/answerService.js +25 -0
  37. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  38. package/cjs/src/utils/graphql/answerService/answerService.spec.js +35 -0
  39. package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  40. package/cjs/src/utils/graphql/graphql-request.spec.d.ts +2 -0
  41. package/cjs/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
  42. package/cjs/src/utils/graphql/graphql-request.spec.js +36 -0
  43. package/cjs/src/utils/graphql/graphql-request.spec.js.map +1 -0
  44. package/cjs/src/utils/processData.js +2 -2
  45. package/cjs/src/utils/processData.js.map +1 -1
  46. package/cjs/src/utils/processData.spec.js +14 -0
  47. package/cjs/src/utils/processData.spec.js.map +1 -1
  48. package/cjs/src/utils/processTrigger.d.ts +1 -0
  49. package/cjs/src/utils/processTrigger.d.ts.map +1 -1
  50. package/cjs/src/utils/processTrigger.js +3 -3
  51. package/cjs/src/utils/processTrigger.js.map +1 -1
  52. package/cjs/src/utils/processTrigger.spec.js +10 -0
  53. package/cjs/src/utils/processTrigger.spec.js.map +1 -1
  54. package/cjs/src/utils.d.ts.map +1 -1
  55. package/cjs/src/utils.js +1 -5
  56. package/cjs/src/utils.js.map +1 -1
  57. package/dist/src/embed/app.d.ts +42 -0
  58. package/dist/src/embed/app.d.ts.map +1 -1
  59. package/dist/src/embed/base.d.ts +1 -1
  60. package/dist/src/embed/base.d.ts.map +1 -1
  61. package/dist/src/embed/liveboard.d.ts +42 -0
  62. package/dist/src/embed/liveboard.d.ts.map +1 -1
  63. package/dist/src/embed/ts-embed.d.ts +0 -1
  64. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  65. package/dist/src/types.d.ts +62 -16
  66. package/dist/src/types.d.ts.map +1 -1
  67. package/dist/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
  68. package/dist/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  69. package/dist/src/utils/graphql/answerService/answerService.d.ts +15 -0
  70. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  71. package/dist/src/utils/graphql/graphql-request.spec.d.ts +2 -0
  72. package/dist/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
  73. package/dist/src/utils/processTrigger.d.ts +1 -0
  74. package/dist/src/utils/processTrigger.d.ts.map +1 -1
  75. package/dist/src/utils.d.ts.map +1 -1
  76. package/dist/tsembed-react.es.js +103 -27
  77. package/dist/tsembed-react.js +103 -27
  78. package/dist/tsembed.es.js +109 -34
  79. package/dist/tsembed.js +109 -34
  80. package/dist/visual-embed-sdk-react-full.d.ts +162 -18
  81. package/dist/visual-embed-sdk-react.d.ts +162 -18
  82. package/dist/visual-embed-sdk.d.ts +162 -18
  83. package/lib/package.json +1 -1
  84. package/lib/src/embed/app.d.ts +42 -0
  85. package/lib/src/embed/app.d.ts.map +1 -1
  86. package/lib/src/embed/app.js +4 -1
  87. package/lib/src/embed/app.js.map +1 -1
  88. package/lib/src/embed/app.spec.js +30 -0
  89. package/lib/src/embed/app.spec.js.map +1 -1
  90. package/lib/src/embed/base.d.ts +1 -1
  91. package/lib/src/embed/base.d.ts.map +1 -1
  92. package/lib/src/embed/base.js +6 -7
  93. package/lib/src/embed/base.js.map +1 -1
  94. package/lib/src/embed/embed.spec.js +0 -19
  95. package/lib/src/embed/embed.spec.js.map +1 -1
  96. package/lib/src/embed/liveboard.d.ts +42 -0
  97. package/lib/src/embed/liveboard.d.ts.map +1 -1
  98. package/lib/src/embed/liveboard.js +4 -1
  99. package/lib/src/embed/liveboard.js.map +1 -1
  100. package/lib/src/embed/liveboard.spec.js +33 -0
  101. package/lib/src/embed/liveboard.spec.js.map +1 -1
  102. package/lib/src/embed/ts-embed.d.ts +0 -1
  103. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  104. package/lib/src/embed/ts-embed.js +3 -9
  105. package/lib/src/embed/ts-embed.js.map +1 -1
  106. package/lib/src/embed/ts-embed.spec.js +0 -9
  107. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  108. package/lib/src/types.d.ts +62 -16
  109. package/lib/src/types.d.ts.map +1 -1
  110. package/lib/src/types.js +55 -7
  111. package/lib/src/types.js.map +1 -1
  112. package/lib/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
  113. package/lib/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  114. package/lib/src/utils/graphql/answerService/answer-queries.js +8 -1
  115. package/lib/src/utils/graphql/answerService/answer-queries.js.map +1 -1
  116. package/lib/src/utils/graphql/answerService/answerService.d.ts +15 -0
  117. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  118. package/lib/src/utils/graphql/answerService/answerService.js +25 -0
  119. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  120. package/lib/src/utils/graphql/answerService/answerService.spec.js +36 -1
  121. package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  122. package/lib/src/utils/graphql/graphql-request.spec.d.ts +2 -0
  123. package/lib/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
  124. package/lib/src/utils/graphql/graphql-request.spec.js +33 -0
  125. package/lib/src/utils/graphql/graphql-request.spec.js.map +1 -0
  126. package/lib/src/utils/processData.js +2 -2
  127. package/lib/src/utils/processData.js.map +1 -1
  128. package/lib/src/utils/processData.spec.js +14 -0
  129. package/lib/src/utils/processData.spec.js.map +1 -1
  130. package/lib/src/utils/processTrigger.d.ts +1 -0
  131. package/lib/src/utils/processTrigger.d.ts.map +1 -1
  132. package/lib/src/utils/processTrigger.js +1 -1
  133. package/lib/src/utils/processTrigger.js.map +1 -1
  134. package/lib/src/utils/processTrigger.spec.js +10 -0
  135. package/lib/src/utils/processTrigger.spec.js.map +1 -1
  136. package/lib/src/utils.d.ts.map +1 -1
  137. package/lib/src/utils.js +1 -5
  138. package/lib/src/utils.js.map +1 -1
  139. package/lib/src/visual-embed-sdk.d.ts +162 -18
  140. package/package.json +1 -1
  141. package/src/embed/app.spec.ts +45 -0
  142. package/src/embed/app.ts +48 -0
  143. package/src/embed/base.ts +1 -2
  144. package/src/embed/embed.spec.ts +0 -22
  145. package/src/embed/liveboard.spec.ts +48 -0
  146. package/src/embed/liveboard.ts +48 -0
  147. package/src/embed/ts-embed.spec.ts +0 -11
  148. package/src/embed/ts-embed.ts +1 -9
  149. package/src/types.ts +62 -15
  150. package/src/utils/graphql/answerService/answer-queries.ts +9 -1
  151. package/src/utils/graphql/answerService/answerService.spec.ts +45 -0
  152. package/src/utils/graphql/answerService/answerService.ts +35 -0
  153. package/src/utils/graphql/graphql-request.spec.ts +38 -0
  154. package/src/utils/processData.spec.ts +16 -0
  155. package/src/utils/processData.ts +2 -2
  156. package/src/utils/processTrigger.spec.ts +19 -0
  157. package/src/utils/processTrigger.ts +1 -1
  158. package/src/utils.ts +0 -5
@@ -1120,6 +1120,48 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
1120
1120
  * @version SDK : 1.33.0 | Thoughtspot : 10.2.0.cl
1121
1121
  */
1122
1122
  homePageSearchBarMode?: HomePageSearchBarMode;
1123
+ /**
1124
+ * This flag is used to enable the compact header in liveboard
1125
+ * @type {boolean}
1126
+ * @default false
1127
+ * @version SDK: 1.35.0 | ThoughtSpot:10.3.0.cl
1128
+ * @example
1129
+ * ```js
1130
+ * const embed = new AppEmbed('#embed-container', {
1131
+ * ... // other options
1132
+ * isLiveboardCompactHeaderEnabled: true,
1133
+ * })
1134
+ * ```
1135
+ */
1136
+ isLiveboardCompactHeaderEnabled?: boolean;
1137
+ /**
1138
+ * This flag is used to show/hide verified Icon in liveboard compact header
1139
+ * @type {boolean}
1140
+ * @default true
1141
+ * @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
1142
+ * @example
1143
+ * ```js
1144
+ * const embed = new AppEmbed('#embed-container', {
1145
+ * ... // other options
1146
+ * showLiveboardVerifiedBadge: true,
1147
+ * })
1148
+ * ```
1149
+ */
1150
+ showLiveboardVerifiedBadge?: boolean;
1151
+ /**
1152
+ * This flag is used to show/hide re-verify banner in liveboard compact header
1153
+ * @type {boolean}
1154
+ * @default true
1155
+ * @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
1156
+ * @example
1157
+ * ```js
1158
+ * const embed = new AppEmbed('#embed-container', {
1159
+ * ... // other options
1160
+ * showLiveboardReverifyBanner: true,
1161
+ * })
1162
+ * ```
1163
+ */
1164
+ showLiveboardReverifyBanner?: boolean;
1123
1165
  }
1124
1166
  /**
1125
1167
  * Embeds full ThoughtSpot experience in a host application.
@@ -1429,6 +1471,48 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
1429
1471
  * @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
1430
1472
  */
1431
1473
  showPreviewLoader?: boolean;
1474
+ /**
1475
+ * This flag is used to enable the compact header in liveboard
1476
+ * @type {boolean}
1477
+ * @default false
1478
+ * @version SDK: 1.35.0 | ThoughtSpot:10.3.0.cl
1479
+ * @example
1480
+ * ```js
1481
+ * const embed = new LiveboardEmbed('#embed-container', {
1482
+ * ... // other options
1483
+ * isLiveboardCompactHeaderEnabled: true,
1484
+ * })
1485
+ * ```
1486
+ */
1487
+ isLiveboardCompactHeaderEnabled?: boolean;
1488
+ /**
1489
+ * This flag is used to show/hide verified Icon in liveboard compact header
1490
+ * @type {boolean}
1491
+ * @default true
1492
+ * @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
1493
+ * @example
1494
+ * ```js
1495
+ * const embed = new LiveboardEmbed('#embed-container', {
1496
+ * ... // other options
1497
+ * showLiveboardVerifiedBadge: true,
1498
+ * })
1499
+ * ```
1500
+ */
1501
+ showLiveboardVerifiedBadge?: boolean;
1502
+ /**
1503
+ * This flag is used to show/hide re-verify banner in liveboard compact header
1504
+ * @type {boolean}
1505
+ * @default true
1506
+ * @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
1507
+ * @example
1508
+ * ```js
1509
+ * const embed = new LiveboardEmbed('#embed-container', {
1510
+ * ... // other options
1511
+ * showLiveboardReverifyBanner: true,
1512
+ * })
1513
+ * ```
1514
+ */
1515
+ showLiveboardReverifyBanner?: boolean;
1432
1516
  }
1433
1517
  /**
1434
1518
  * Embed a ThoughtSpot Liveboard or visualization. When rendered it already
@@ -1752,7 +1836,6 @@ export interface customCssInterface {
1752
1836
  * Styles within the {@link CustomisationsInterface}.
1753
1837
  */
1754
1838
  export interface CustomStyles {
1755
- customCSSUrl?: string;
1756
1839
  customCSS?: customCssInterface;
1757
1840
  }
1758
1841
  /**
@@ -1930,13 +2013,6 @@ export interface EmbedConfig {
1930
2013
  * @default false
1931
2014
  */
1932
2015
  queueMultiRenders?: boolean;
1933
- /**
1934
- * Dynamic CSS URL to be injected in the loaded application.
1935
- * You would also need to set `style-src` in the CSP settings.
1936
- * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
1937
- * @default ''
1938
- */
1939
- customCssUrl?: string;
1940
2016
  /**
1941
2017
  * [AuthServer|Basic] Detect if third-party party cookies are enabled by doing an
1942
2018
  * additional call. This is slower and should be avoided. Listen to the
@@ -2065,6 +2141,12 @@ export interface EmbedConfig {
2065
2141
  * @version SDK: 1.28.5 | Thoughtspot: *
2066
2142
  */
2067
2143
  disableTokenVerification?: boolean;
2144
+ /**
2145
+ * This flag is used to disable showing the login failure page in the embedded app.
2146
+ *
2147
+ * @version SDK 1.32.3 | Thoughtspot: *
2148
+ */
2149
+ disableLoginFailurePage?: boolean;
2068
2150
  }
2069
2151
  export interface LayoutConfig {
2070
2152
  }
@@ -3589,20 +3671,57 @@ export declare enum EmbedEvent {
3589
3671
  */
3590
3672
  Rename = "rename",
3591
3673
  /**
3592
- * Emitted when user wants to intercept the search execution
3674
+ * Emitted if the user wants to intercept the search execution
3675
+ * and implement logic to decide whether to run the search or not
3593
3676
  *
3594
- * Set IsOnBeforeGetVizDataInterceptEnabled : true to use
3595
- * this embed event
3677
+ * Prerequisite: Set isOnBeforeGetVizDataInterceptEnabled : true
3678
+ * for this embed event to get emitted.
3679
+ *
3680
+ * Parameter: payload
3681
+ * Parameter: responder
3682
+ * Contains elements that lets developers define whether ThoughtSpot
3683
+ * will run the search or not, and if not, which error message to provide.
3684
+ * execute: When execute returns true, the search will be run.
3685
+ * When execute returns false, the search will not be executed.
3686
+ * error: Developers can customize the user facing message when execute is
3687
+ * set to false using the error parameter in responder
3596
3688
  *
3597
3689
  *```js
3598
- * searchEmbed.on(EmbedEvent.OnBeforeGetVizDataIntercept,
3690
+ * .on(EmbedEvent.OnBeforeGetVizDataIntercept,
3599
3691
  * (payload, responder) => {
3600
3692
  * responder({
3601
3693
  * data: {
3602
- * execute: true,
3603
- * }})
3694
+ * execute:false,
3695
+ * error: {
3696
+ * //Provide a custom error message to explain to your end user
3697
+ * //why their search did not run
3698
+ * errorText: "This search query cannot be run.
3699
+ * Please contact your administrator for more details."
3700
+ * }
3701
+ * }})
3702
+ * })
3703
+ * ```
3704
+ *
3705
+ *```js
3706
+ * .on(EmbedEvent.OnBeforeGetVizDataIntercept,
3707
+ * (payload, responder) => {
3708
+ * const query = payload.data.data.answer.search_query
3709
+ * responder({
3710
+ * data: {
3711
+ * // returns true as long as the query does not include
3712
+ * // both the 'sales' AND the 'county' column
3713
+ * execute: !(query.includes("sales")&&query.includes("county")),
3714
+ * error: {
3715
+ * //Provide a custom error message to explain to your end user
3716
+ * // why their search did not run, and which searches are accepted by your custom logic.
3717
+ * errorText: "You can't use this query :" + query + ".
3718
+ * The 'sales' measures can never be used at the 'county' level.
3719
+ * Please try another measure, or remove 'county' from your search."
3720
+ * }
3721
+ * }})
3604
3722
  * })
3605
3723
  *```
3724
+ *
3606
3725
  * @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
3607
3726
  */
3608
3727
  OnBeforeGetVizDataIntercept = "onBeforeGetVizDataIntercept",
@@ -3721,6 +3840,15 @@ export declare enum HostEvent {
3721
3840
  * @hidden
3722
3841
  */
3723
3842
  Reload = "reload",
3843
+ /**
3844
+ * Get current iframe src
3845
+ * @example
3846
+ * ```js
3847
+ * const frameUrl = AppEmbed.trigger(HostEvent.GetIframeUrl)
3848
+ * ```
3849
+ * @version SDK: 1.35.0 | Thoughtspot: 10.4.0.cl
3850
+ */
3851
+ GetIframeUrl = "GetIframeUrl",
3724
3852
  /**
3725
3853
  * Display specific visualizations on a Liveboard.
3726
3854
  * @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
@@ -4529,7 +4657,6 @@ export declare enum Param {
4529
4657
  ViewPortHeight = "viewPortHeight",
4530
4658
  ViewPortWidth = "viewPortWidth",
4531
4659
  VisibleActions = "visibleAction",
4532
- CustomCSSUrl = "customCssUrl",
4533
4660
  DisableLoginRedirect = "disableLoginRedirect",
4534
4661
  visibleVizs = "pinboardVisibleVizs",
4535
4662
  LiveboardV2Enabled = "isPinboardV2Enabled",
@@ -4586,7 +4713,10 @@ export declare enum Param {
4586
4713
  IsOnBeforeGetVizDataInterceptEnabled = "isOnBeforeGetVizDataInterceptEnabled",
4587
4714
  FocusSearchBarOnRender = "focusSearchBarOnRender",
4588
4715
  DisableRedirectionLinksInNewTab = "disableRedirectionLinksInNewTab",
4589
- HomePageSearchBarMode = "homePageSearchBarMode"
4716
+ HomePageSearchBarMode = "homePageSearchBarMode",
4717
+ ShowLiveboardVerifiedBadge = "showLiveboardVerifiedBadge",
4718
+ ShowLiveboardReverifyBanner = "showLiveboardReverifyBanner",
4719
+ LiveboardHeaderV2 = "isLiveboardHeaderV2Enabled"
4590
4720
  }
4591
4721
  /**
4592
4722
  * ThoughtSpot application pages include actions and menu commands
@@ -6043,7 +6173,6 @@ export declare class V1Embed extends TsEmbed {
6043
6173
  on(messageType: EmbedEvent, callback: MessageCallback, options?: MessageOptions): typeof TsEmbed.prototype;
6044
6174
  /**
6045
6175
  * Only for testing purposes.
6046
- *
6047
6176
  * @hidden
6048
6177
  */
6049
6178
  test__executeCallbacks: (eventType: EmbedEvent, data: any, eventPort?: void | MessagePort) => void;
@@ -6141,7 +6270,7 @@ export declare const renderInQueue: (fn: (next?: (val?: any) => void) => Promise
6141
6270
  }).catch(error => {
6142
6271
  console.error(error);
6143
6272
  });
6144
- *
6273
+ *```
6145
6274
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
6146
6275
  * @group Global methods
6147
6276
  */
@@ -6879,6 +7008,7 @@ export declare class AnswerService {
6879
7008
  * @returns
6880
7009
  */
6881
7010
  addFilter(columnName: string, operator: RuntimeFilterOp, values: RuntimeFilter['values']): Promise<any>;
7011
+ getSQLQuery(): Promise<string>;
6882
7012
  /**
6883
7013
  * Fetch data from the answer.
6884
7014
  * @param offset
@@ -6897,6 +7027,15 @@ export declare class AnswerService {
6897
7027
  * @returns Response
6898
7028
  */
6899
7029
  fetchCSVBlob(userLocale?: string, includeInfo?: boolean): Promise<Response>;
7030
+ /**
7031
+ * Fetch the data for the answer as a PNG blob. This might be
7032
+ * quicker for larger data.
7033
+ * @param userLocale
7034
+ * @param omitBackground Omit the background in the PNG
7035
+ * @param deviceScaleFactor The scale factor for the PNG
7036
+ * @return Response
7037
+ */
7038
+ fetchPNGBlob(userLocale?: string, includeInfo?: boolean, omitBackground?: boolean, deviceScaleFactor?: number): Promise<Response>;
6900
7039
  /**
6901
7040
  * Just get the internal URL for this answer's data
6902
7041
  * as a CSV blob.
@@ -6905,6 +7044,11 @@ export declare class AnswerService {
6905
7044
  * @returns
6906
7045
  */
6907
7046
  getFetchCSVBlobUrl(userLocale?: string, includeInfo?: boolean): string;
7047
+ /**
7048
+ * Just get the internal URL for this answer's data
7049
+ * as a PNG blob.
7050
+ */
7051
+ getFetchPNGBlobUrl(userLocale?: string, omitBackground?: boolean, deviceScaleFactor?: number): string;
6908
7052
  /**
6909
7053
  * Get underlying data given a point and the output column names.
6910
7054
  * In case of a context menu action, the selectedPoints are
@@ -402,6 +402,48 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
402
402
  * @version SDK : 1.33.0 | Thoughtspot : 10.2.0.cl
403
403
  */
404
404
  homePageSearchBarMode?: HomePageSearchBarMode;
405
+ /**
406
+ * This flag is used to enable the compact header in liveboard
407
+ * @type {boolean}
408
+ * @default false
409
+ * @version SDK: 1.35.0 | ThoughtSpot:10.3.0.cl
410
+ * @example
411
+ * ```js
412
+ * const embed = new AppEmbed('#embed-container', {
413
+ * ... // other options
414
+ * isLiveboardCompactHeaderEnabled: true,
415
+ * })
416
+ * ```
417
+ */
418
+ isLiveboardCompactHeaderEnabled?: boolean;
419
+ /**
420
+ * This flag is used to show/hide verified Icon in liveboard compact header
421
+ * @type {boolean}
422
+ * @default true
423
+ * @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
424
+ * @example
425
+ * ```js
426
+ * const embed = new AppEmbed('#embed-container', {
427
+ * ... // other options
428
+ * showLiveboardVerifiedBadge: true,
429
+ * })
430
+ * ```
431
+ */
432
+ showLiveboardVerifiedBadge?: boolean;
433
+ /**
434
+ * This flag is used to show/hide re-verify banner in liveboard compact header
435
+ * @type {boolean}
436
+ * @default true
437
+ * @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
438
+ * @example
439
+ * ```js
440
+ * const embed = new AppEmbed('#embed-container', {
441
+ * ... // other options
442
+ * showLiveboardReverifyBanner: true,
443
+ * })
444
+ * ```
445
+ */
446
+ showLiveboardReverifyBanner?: boolean;
405
447
  }
406
448
  /**
407
449
  * Embeds full ThoughtSpot experience in a host application.
@@ -538,7 +580,7 @@ export const renderInQueue: (fn: (next?: (val?: any) => void) => Promise<any>) =
538
580
  }).catch(error => {
539
581
  console.error(error);
540
582
  });
541
- *
583
+ *```
542
584
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
543
585
  * @group Global methods
544
586
  */
@@ -843,6 +885,48 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
843
885
  * @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
844
886
  */
845
887
  showPreviewLoader?: boolean;
888
+ /**
889
+ * This flag is used to enable the compact header in liveboard
890
+ * @type {boolean}
891
+ * @default false
892
+ * @version SDK: 1.35.0 | ThoughtSpot:10.3.0.cl
893
+ * @example
894
+ * ```js
895
+ * const embed = new LiveboardEmbed('#embed-container', {
896
+ * ... // other options
897
+ * isLiveboardCompactHeaderEnabled: true,
898
+ * })
899
+ * ```
900
+ */
901
+ isLiveboardCompactHeaderEnabled?: boolean;
902
+ /**
903
+ * This flag is used to show/hide verified Icon in liveboard compact header
904
+ * @type {boolean}
905
+ * @default true
906
+ * @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
907
+ * @example
908
+ * ```js
909
+ * const embed = new LiveboardEmbed('#embed-container', {
910
+ * ... // other options
911
+ * showLiveboardVerifiedBadge: true,
912
+ * })
913
+ * ```
914
+ */
915
+ showLiveboardVerifiedBadge?: boolean;
916
+ /**
917
+ * This flag is used to show/hide re-verify banner in liveboard compact header
918
+ * @type {boolean}
919
+ * @default true
920
+ * @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
921
+ * @example
922
+ * ```js
923
+ * const embed = new LiveboardEmbed('#embed-container', {
924
+ * ... // other options
925
+ * showLiveboardReverifyBanner: true,
926
+ * })
927
+ * ```
928
+ */
929
+ showLiveboardReverifyBanner?: boolean;
846
930
  }
847
931
  /**
848
932
  * Embed a ThoughtSpot Liveboard or visualization. When rendered it already
@@ -1746,7 +1830,6 @@ export interface customCssInterface {
1746
1830
  * Styles within the {@link CustomisationsInterface}.
1747
1831
  */
1748
1832
  export interface CustomStyles {
1749
- customCSSUrl?: string;
1750
1833
  customCSS?: customCssInterface;
1751
1834
  }
1752
1835
  /**
@@ -1924,13 +2007,6 @@ export interface EmbedConfig {
1924
2007
  * @default false
1925
2008
  */
1926
2009
  queueMultiRenders?: boolean;
1927
- /**
1928
- * Dynamic CSS URL to be injected in the loaded application.
1929
- * You would also need to set `style-src` in the CSP settings.
1930
- * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
1931
- * @default ''
1932
- */
1933
- customCssUrl?: string;
1934
2010
  /**
1935
2011
  * [AuthServer|Basic] Detect if third-party party cookies are enabled by doing an
1936
2012
  * additional call. This is slower and should be avoided. Listen to the
@@ -2059,6 +2135,12 @@ export interface EmbedConfig {
2059
2135
  * @version SDK: 1.28.5 | Thoughtspot: *
2060
2136
  */
2061
2137
  disableTokenVerification?: boolean;
2138
+ /**
2139
+ * This flag is used to disable showing the login failure page in the embedded app.
2140
+ *
2141
+ * @version SDK 1.32.3 | Thoughtspot: *
2142
+ */
2143
+ disableLoginFailurePage?: boolean;
2062
2144
  }
2063
2145
  export interface LayoutConfig {
2064
2146
  }
@@ -3583,20 +3665,57 @@ export enum EmbedEvent {
3583
3665
  */
3584
3666
  Rename = "rename",
3585
3667
  /**
3586
- * Emitted when user wants to intercept the search execution
3668
+ * Emitted if the user wants to intercept the search execution
3669
+ * and implement logic to decide whether to run the search or not
3670
+ *
3671
+ * Prerequisite: Set isOnBeforeGetVizDataInterceptEnabled : true
3672
+ * for this embed event to get emitted.
3587
3673
  *
3588
- * Set IsOnBeforeGetVizDataInterceptEnabled : true to use
3589
- * this embed event
3674
+ * Parameter: payload
3675
+ * Parameter: responder
3676
+ * Contains elements that lets developers define whether ThoughtSpot
3677
+ * will run the search or not, and if not, which error message to provide.
3678
+ * execute: When execute returns true, the search will be run.
3679
+ * When execute returns false, the search will not be executed.
3680
+ * error: Developers can customize the user facing message when execute is
3681
+ * set to false using the error parameter in responder
3590
3682
  *
3591
3683
  *```js
3592
- * searchEmbed.on(EmbedEvent.OnBeforeGetVizDataIntercept,
3684
+ * .on(EmbedEvent.OnBeforeGetVizDataIntercept,
3593
3685
  * (payload, responder) => {
3594
3686
  * responder({
3595
3687
  * data: {
3596
- * execute: true,
3597
- * }})
3688
+ * execute:false,
3689
+ * error: {
3690
+ * //Provide a custom error message to explain to your end user
3691
+ * //why their search did not run
3692
+ * errorText: "This search query cannot be run.
3693
+ * Please contact your administrator for more details."
3694
+ * }
3695
+ * }})
3696
+ * })
3697
+ * ```
3698
+ *
3699
+ *```js
3700
+ * .on(EmbedEvent.OnBeforeGetVizDataIntercept,
3701
+ * (payload, responder) => {
3702
+ * const query = payload.data.data.answer.search_query
3703
+ * responder({
3704
+ * data: {
3705
+ * // returns true as long as the query does not include
3706
+ * // both the 'sales' AND the 'county' column
3707
+ * execute: !(query.includes("sales")&&query.includes("county")),
3708
+ * error: {
3709
+ * //Provide a custom error message to explain to your end user
3710
+ * // why their search did not run, and which searches are accepted by your custom logic.
3711
+ * errorText: "You can't use this query :" + query + ".
3712
+ * The 'sales' measures can never be used at the 'county' level.
3713
+ * Please try another measure, or remove 'county' from your search."
3714
+ * }
3715
+ * }})
3598
3716
  * })
3599
3717
  *```
3718
+ *
3600
3719
  * @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
3601
3720
  */
3602
3721
  OnBeforeGetVizDataIntercept = "onBeforeGetVizDataIntercept",
@@ -3715,6 +3834,15 @@ export enum HostEvent {
3715
3834
  * @hidden
3716
3835
  */
3717
3836
  Reload = "reload",
3837
+ /**
3838
+ * Get current iframe src
3839
+ * @example
3840
+ * ```js
3841
+ * const frameUrl = AppEmbed.trigger(HostEvent.GetIframeUrl)
3842
+ * ```
3843
+ * @version SDK: 1.35.0 | Thoughtspot: 10.4.0.cl
3844
+ */
3845
+ GetIframeUrl = "GetIframeUrl",
3718
3846
  /**
3719
3847
  * Display specific visualizations on a Liveboard.
3720
3848
  * @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
@@ -4523,7 +4651,6 @@ export enum Param {
4523
4651
  ViewPortHeight = "viewPortHeight",
4524
4652
  ViewPortWidth = "viewPortWidth",
4525
4653
  VisibleActions = "visibleAction",
4526
- CustomCSSUrl = "customCssUrl",
4527
4654
  DisableLoginRedirect = "disableLoginRedirect",
4528
4655
  visibleVizs = "pinboardVisibleVizs",
4529
4656
  LiveboardV2Enabled = "isPinboardV2Enabled",
@@ -4580,7 +4707,10 @@ export enum Param {
4580
4707
  IsOnBeforeGetVizDataInterceptEnabled = "isOnBeforeGetVizDataInterceptEnabled",
4581
4708
  FocusSearchBarOnRender = "focusSearchBarOnRender",
4582
4709
  DisableRedirectionLinksInNewTab = "disableRedirectionLinksInNewTab",
4583
- HomePageSearchBarMode = "homePageSearchBarMode"
4710
+ HomePageSearchBarMode = "homePageSearchBarMode",
4711
+ ShowLiveboardVerifiedBadge = "showLiveboardVerifiedBadge",
4712
+ ShowLiveboardReverifyBanner = "showLiveboardReverifyBanner",
4713
+ LiveboardHeaderV2 = "isLiveboardHeaderV2Enabled"
4584
4714
  }
4585
4715
  /**
4586
4716
  * ThoughtSpot application pages include actions and menu commands
@@ -6362,6 +6492,7 @@ export class AnswerService {
6362
6492
  * @returns
6363
6493
  */
6364
6494
  addFilter(columnName: string, operator: RuntimeFilterOp, values: RuntimeFilter['values']): Promise<any>;
6495
+ getSQLQuery(): Promise<string>;
6365
6496
  /**
6366
6497
  * Fetch data from the answer.
6367
6498
  * @param offset
@@ -6380,6 +6511,15 @@ export class AnswerService {
6380
6511
  * @returns Response
6381
6512
  */
6382
6513
  fetchCSVBlob(userLocale?: string, includeInfo?: boolean): Promise<Response>;
6514
+ /**
6515
+ * Fetch the data for the answer as a PNG blob. This might be
6516
+ * quicker for larger data.
6517
+ * @param userLocale
6518
+ * @param omitBackground Omit the background in the PNG
6519
+ * @param deviceScaleFactor The scale factor for the PNG
6520
+ * @return Response
6521
+ */
6522
+ fetchPNGBlob(userLocale?: string, includeInfo?: boolean, omitBackground?: boolean, deviceScaleFactor?: number): Promise<Response>;
6383
6523
  /**
6384
6524
  * Just get the internal URL for this answer's data
6385
6525
  * as a CSV blob.
@@ -6388,6 +6528,11 @@ export class AnswerService {
6388
6528
  * @returns
6389
6529
  */
6390
6530
  getFetchCSVBlobUrl(userLocale?: string, includeInfo?: boolean): string;
6531
+ /**
6532
+ * Just get the internal URL for this answer's data
6533
+ * as a PNG blob.
6534
+ */
6535
+ getFetchPNGBlobUrl(userLocale?: string, omitBackground?: boolean, deviceScaleFactor?: number): string;
6391
6536
  /**
6392
6537
  * Get underlying data given a point and the output column names.
6393
6538
  * In case of a context menu action, the selectedPoints are
@@ -6784,7 +6929,6 @@ export class V1Embed extends TsEmbed {
6784
6929
  on(messageType: EmbedEvent, callback: MessageCallback, options?: MessageOptions): typeof TsEmbed.prototype;
6785
6930
  /**
6786
6931
  * Only for testing purposes.
6787
- *
6788
6932
  * @hidden
6789
6933
  */
6790
6934
  test__executeCallbacks: (eventType: EmbedEvent, data: any, eventPort?: void | MessagePort) => void;
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.32.3",
3
+ "version": "1.32.6",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -388,6 +388,48 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
388
388
  * @version SDK : 1.33.0 | Thoughtspot : 10.2.0.cl
389
389
  */
390
390
  homePageSearchBarMode?: HomePageSearchBarMode;
391
+ /**
392
+ * This flag is used to enable the compact header in liveboard
393
+ * @type {boolean}
394
+ * @default false
395
+ * @version SDK: 1.35.0 | ThoughtSpot:10.3.0.cl
396
+ * @example
397
+ * ```js
398
+ * const embed = new AppEmbed('#embed-container', {
399
+ * ... // other options
400
+ * isLiveboardCompactHeaderEnabled: true,
401
+ * })
402
+ * ```
403
+ */
404
+ isLiveboardCompactHeaderEnabled?: boolean;
405
+ /**
406
+ * This flag is used to show/hide verified Icon in liveboard compact header
407
+ * @type {boolean}
408
+ * @default true
409
+ * @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
410
+ * @example
411
+ * ```js
412
+ * const embed = new AppEmbed('#embed-container', {
413
+ * ... // other options
414
+ * showLiveboardVerifiedBadge: true,
415
+ * })
416
+ * ```
417
+ */
418
+ showLiveboardVerifiedBadge?: boolean;
419
+ /**
420
+ * This flag is used to show/hide re-verify banner in liveboard compact header
421
+ * @type {boolean}
422
+ * @default true
423
+ * @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
424
+ * @example
425
+ * ```js
426
+ * const embed = new AppEmbed('#embed-container', {
427
+ * ... // other options
428
+ * showLiveboardReverifyBanner: true,
429
+ * })
430
+ * ```
431
+ */
432
+ showLiveboardReverifyBanner?: boolean;
391
433
  }
392
434
  /**
393
435
  * Embeds full ThoughtSpot experience in a host application.
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/embed/app.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAEH,WAAW,EAEX,UAAU,EAEV,cAAc,EACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC;;GAEG;AAEH,oBAAY,IAAI;IACZ;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,MAAM,WAAW;IACjB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,UAAU,eAAe;IACzB;;OAEG;IACH,SAAS,cAAc;IACvB;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,MAAM,aAAa;IACnB;;OAEG;IACH,OAAO,YAAY;CACtB;AAED;;;GAGG;AACH,oBAAY,yCAAyC;IACjD;;OAEG;IACH,UAAU,eAAe;IACzB;;OAEG;IACH,YAAY,iBAAiB;IAC7B;;OAEG;IACH,YAAY,iBAAiB;CAChC;AAED,oBAAY,qBAAqB;IAC7B,aAAa,iBAAiB;IAC9B,SAAS,aAAa;IACtB,IAAI,SAAS;CAChB;AACD;;;GAGG;AACH,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,UAAU,EAAE,aAAa,CAAC;IAClE;;;;;;;;;;;;;OAaG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;;;;;;;;;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O,CAAC,UAAU;IAalB;;;;;;;;;;OAUG;IACI,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,UAAQ,GAAG,IAAI;IAsBpE;;;;OAIG;IACU,MAAM,IAAI,OAAO,CAAC,QAAQ,CAAC;CAO3C"}
@@ -117,7 +117,7 @@ export class AppEmbed extends V1Embed {
117
117
  getEmbedParams() {
118
118
  const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
119
119
  /* eslint-disable-next-line max-len */
120
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, homePageSearchBarMode, } = this.viewConfig;
120
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, } = this.viewConfig;
121
121
  let params = {};
122
122
  params[Param.EmbedApp] = true;
123
123
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
@@ -129,6 +129,9 @@ export class AppEmbed extends V1Embed {
129
129
  params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
130
130
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
131
131
  params[Param.IsFullAppEmbed] = true;
132
+ params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
133
+ params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
134
+ params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
132
135
  params = this.getBaseQueryParams(params);
133
136
  if (fullHeight === true) {
134
137
  params[Param.fullHeight] = true;