@thoughtspot/visual-embed-sdk 1.44.5 → 1.45.0

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 (77) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/app.d.ts +1 -1
  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 +10 -0
  7. package/cjs/src/embed/app.spec.js.map +1 -1
  8. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  9. package/cjs/src/embed/liveboard.js +4 -1
  10. package/cjs/src/embed/liveboard.js.map +1 -1
  11. package/cjs/src/embed/liveboard.spec.js +11 -0
  12. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  13. package/cjs/src/embed/search.d.ts +1 -0
  14. package/cjs/src/embed/search.d.ts.map +1 -1
  15. package/cjs/src/embed/search.js +4 -1
  16. package/cjs/src/embed/search.js.map +1 -1
  17. package/cjs/src/embed/search.spec.js +10 -0
  18. package/cjs/src/embed/search.spec.js.map +1 -1
  19. package/cjs/src/types.d.ts +102 -23
  20. package/cjs/src/types.d.ts.map +1 -1
  21. package/cjs/src/types.js +77 -14
  22. package/cjs/src/types.js.map +1 -1
  23. package/cjs/src/utils/processTrigger.js +1 -1
  24. package/cjs/src/utils/processTrigger.js.map +1 -1
  25. package/cjs/src/utils/processTrigger.spec.js +12 -0
  26. package/cjs/src/utils/processTrigger.spec.js.map +1 -1
  27. package/dist/{index-_2rRJf4J.js → index-Dk-SLdNk.js} +1 -1
  28. package/dist/src/embed/app.d.ts +1 -1
  29. package/dist/src/embed/app.d.ts.map +1 -1
  30. package/dist/src/embed/liveboard.d.ts.map +1 -1
  31. package/dist/src/embed/search.d.ts +1 -0
  32. package/dist/src/embed/search.d.ts.map +1 -1
  33. package/dist/src/types.d.ts +102 -23
  34. package/dist/src/types.d.ts.map +1 -1
  35. package/dist/tsembed-react.es.js +93 -21
  36. package/dist/tsembed-react.js +92 -20
  37. package/dist/tsembed.es.js +93 -21
  38. package/dist/tsembed.js +92 -20
  39. package/dist/visual-embed-sdk-react-full.d.ts +102 -23
  40. package/dist/visual-embed-sdk-react.d.ts +102 -23
  41. package/dist/visual-embed-sdk.d.ts +102 -23
  42. package/lib/package.json +1 -1
  43. package/lib/src/embed/app.d.ts +1 -1
  44. package/lib/src/embed/app.d.ts.map +1 -1
  45. package/lib/src/embed/app.js +4 -1
  46. package/lib/src/embed/app.js.map +1 -1
  47. package/lib/src/embed/app.spec.js +10 -0
  48. package/lib/src/embed/app.spec.js.map +1 -1
  49. package/lib/src/embed/liveboard.d.ts.map +1 -1
  50. package/lib/src/embed/liveboard.js +4 -1
  51. package/lib/src/embed/liveboard.js.map +1 -1
  52. package/lib/src/embed/liveboard.spec.js +11 -0
  53. package/lib/src/embed/liveboard.spec.js.map +1 -1
  54. package/lib/src/embed/search.d.ts +1 -0
  55. package/lib/src/embed/search.d.ts.map +1 -1
  56. package/lib/src/embed/search.js +4 -1
  57. package/lib/src/embed/search.js.map +1 -1
  58. package/lib/src/embed/search.spec.js +10 -0
  59. package/lib/src/embed/search.spec.js.map +1 -1
  60. package/lib/src/types.d.ts +102 -23
  61. package/lib/src/types.d.ts.map +1 -1
  62. package/lib/src/types.js +77 -14
  63. package/lib/src/types.js.map +1 -1
  64. package/lib/src/utils/processTrigger.js +1 -1
  65. package/lib/src/utils/processTrigger.js.map +1 -1
  66. package/lib/src/utils/processTrigger.spec.js +12 -0
  67. package/lib/src/utils/processTrigger.spec.js.map +1 -1
  68. package/package.json +1 -1
  69. package/src/embed/app.spec.ts +14 -0
  70. package/src/embed/app.ts +6 -1
  71. package/src/embed/liveboard.spec.ts +15 -0
  72. package/src/embed/liveboard.ts +5 -0
  73. package/src/embed/search.spec.ts +14 -0
  74. package/src/embed/search.ts +6 -0
  75. package/src/types.ts +125 -46
  76. package/src/utils/processTrigger.spec.ts +18 -0
  77. package/src/utils/processTrigger.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"processTrigger.spec.js","sourceRoot":"","sources":["../../../src/utils/processTrigger.spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,uBAAuB,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,KAAK,WAAW,MAAM,UAAU,CAAC;AACxC,OAAO,KAAK,iBAAiB,MAAM,sBAAsB,CAAC;AAE1D,QAAQ,CAAC,8BAA8B,EAAE,GAAG,EAAE;IAC1C,MAAM,MAAM,GAAQ;QAChB,aAAa,EAAE;YACX,WAAW,EAAE,IAAI,CAAC,EAAE,EAAE;SACzB;KACJ,CAAC;IAEF,UAAU,CAAC,GAAG,EAAE;QACZ,IAAI,CAAC,aAAa,EAAE,CAAC;IACzB,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,wEAAwE,EAAE,KAAK,IAAI,EAAE;QACtF,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,MAAM,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QACvD,MAAM,IAAI,GAAG,kBAAkB,CAAC;QAChC,aAAa,CAAC,GAAG,GAAG,gCAAgC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;QACtE,MAAM,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC/C,QAAQ,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;QACpC,MAAM,WAAW,GAAG,SAAS,CAAC,MAAM,CAAC;QACrC,MAAM,eAAe,GAAG,uBAAuB,CAAC;QAChD,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,uBAAuB,EAAE,QAAQ,CAAC,CAAC;QAChE,MAAM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AACP,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.44.5",
3
+ "version": "1.45.0",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -345,6 +345,20 @@ describe('App embed tests', () => {
345
345
  });
346
346
  });
347
347
 
348
+ test('should set isThisPeriodInDateFiltersEnabled to true in url', async () => {
349
+ const appEmbed = new AppEmbed(getRootEl(), {
350
+ ...defaultViewConfig,
351
+ isThisPeriodInDateFiltersEnabled: true,
352
+ } as AppViewConfig);
353
+ appEmbed.render();
354
+ await executeAfterWait(() => {
355
+ expectUrlMatchesWithParams(
356
+ getIFrameSrc(),
357
+ `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isThisPeriodInDateFiltersEnabled=true${defaultParamsPost}#/home`,
358
+ );
359
+ });
360
+ });
361
+
348
362
  test('should set isPNGInScheduledEmailsEnabled to true in url', async () => {
349
363
  const appEmbed = new AppEmbed(getRootEl(), {
350
364
  ...defaultViewConfig,
package/src/embed/app.ts CHANGED
@@ -355,7 +355,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
355
355
  * ```js
356
356
  * const embed = new AppEmbed('#tsEmbed', {
357
357
  * ... // other embed view config
358
- * pageId : Page.Answers | Page.Data,
358
+ * pageId: Page.Answers, // or Page.Data
359
359
  * })
360
360
  * ```
361
361
  */
@@ -764,6 +764,7 @@ export class AppEmbed extends V1Embed {
764
764
  isLinkParametersEnabled,
765
765
  updatedSpotterChatPrompt,
766
766
  minimumHeight,
767
+ isThisPeriodInDateFiltersEnabled,
767
768
  } = this.viewConfig;
768
769
 
769
770
  let params: any = {};
@@ -874,6 +875,10 @@ export class AppEmbed extends V1Embed {
874
875
  ] = isCentralizedLiveboardFilterUXEnabled;
875
876
  }
876
877
 
878
+ if (isThisPeriodInDateFiltersEnabled !== undefined) {
879
+ params[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
880
+ }
881
+
877
882
  this.defaultHeight = minimumHeight || this.defaultHeight;
878
883
 
879
884
  params[Param.DataPanelV2Enabled] = dataPanelV2;
@@ -184,6 +184,21 @@ describe('Liveboard/viz embed tests', () => {
184
184
  });
185
185
  });
186
186
 
187
+ test('should set isThisPeriodInDateFiltersEnabled to true in url', async () => {
188
+ const liveboardEmbed = new LiveboardEmbed(getRootEl(), {
189
+ ...defaultViewConfig,
190
+ liveboardId,
191
+ isThisPeriodInDateFiltersEnabled: true,
192
+ } as LiveboardViewConfig);
193
+ liveboardEmbed.render();
194
+ await executeAfterWait(() => {
195
+ expectUrlMatchesWithParams(
196
+ getIFrameSrc(),
197
+ `http://${thoughtSpotHost}/?embedApp=true${defaultParams}&isThisPeriodInDateFiltersEnabled=true${prefixParams}#/embed/viz/${liveboardId}`,
198
+ );
199
+ });
200
+ });
201
+
187
202
  test('should set isLiveboardPermissionV2Enabled to true in url', async () => {
188
203
  const liveboardEmbed = new LiveboardEmbed(getRootEl(), {
189
204
  isEnhancedFilterInteractivityEnabled: true,
@@ -552,6 +552,7 @@ export class LiveboardEmbed extends V1Embed {
552
552
  isCentralizedLiveboardFilterUXEnabled = false,
553
553
  isLinkParametersEnabled,
554
554
  updatedSpotterChatPrompt,
555
+ isThisPeriodInDateFiltersEnabled,
555
556
  } = this.viewConfig;
556
557
 
557
558
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
@@ -648,6 +649,10 @@ export class LiveboardEmbed extends V1Embed {
648
649
  ] = isCentralizedLiveboardFilterUXEnabled;
649
650
  }
650
651
 
652
+ if (isThisPeriodInDateFiltersEnabled !== undefined) {
653
+ params[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
654
+ }
655
+
651
656
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
652
657
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
653
658
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
@@ -510,6 +510,20 @@ describe('Search embed tests', () => {
510
510
  });
511
511
  });
512
512
 
513
+ test('should set isThisPeriodInDateFiltersEnabled to true in url', async () => {
514
+ const searchEmbed = new SearchEmbed(getRootEl(), {
515
+ ...defaultViewConfig,
516
+ isThisPeriodInDateFiltersEnabled: true,
517
+ });
518
+ searchEmbed.render();
519
+ await executeAfterWait(() => {
520
+ expectUrlMatchesWithParams(
521
+ getIFrameSrc(),
522
+ `http://${thoughtSpotHost}/v2/?${defaultParamsWithHiddenActions}&dataSourceMode=expand&enableDataPanelV2=true&useLastSelectedSources=false&isThisPeriodInDateFiltersEnabled=true${prefixParams}#/embed/saved-answer/${answerId}`,
523
+ );
524
+ });
525
+ });
526
+
513
527
  test('should set dataPanelCustomGroupsAccordionInitialState to EXPAND_FIRST when passed', async () => {
514
528
  const searchEmbed = new SearchBarEmbed(getRootEl() as any, {
515
529
  ...defaultViewConfig,
@@ -157,6 +157,7 @@ export interface SearchViewConfig
157
157
  * ... // other embed view config
158
158
  * forceTable:true,
159
159
  * })
160
+ * ```
160
161
  */
161
162
  forceTable?: boolean;
162
163
  /**
@@ -401,6 +402,7 @@ export class SearchEmbed extends TsEmbed {
401
402
  excludeRuntimeParametersfromURL,
402
403
  excludeSearchTokenStringFromURL,
403
404
  collapseSearchBar = true,
405
+ isThisPeriodInDateFiltersEnabled,
404
406
  } = this.viewConfig;
405
407
  const queryParams = this.getBaseQueryParams();
406
408
 
@@ -443,6 +445,10 @@ export class SearchEmbed extends TsEmbed {
443
445
  queryParams[Param.FocusSearchBarOnRender] = focusSearchBarOnRender;
444
446
  }
445
447
 
448
+ if (isThisPeriodInDateFiltersEnabled !== undefined) {
449
+ queryParams[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
450
+ }
451
+
446
452
  queryParams[Param.DataPanelV2Enabled] = dataPanelV2;
447
453
  queryParams[Param.DataSourceMode] = this.getDataSourceMode();
448
454
 
package/src/types.ts CHANGED
@@ -1112,7 +1112,7 @@ export interface BaseViewConfig extends ApiInterceptFlags {
1112
1112
  * }
1113
1113
  * ]
1114
1114
  * })
1115
- *
1115
+ *
1116
1116
  * // to trigger a custom flow on custom action click listen to Custom action embed event
1117
1117
  * embed.on(EmbedEvent.CustomAction, (payload: CustomActionPayload) => {
1118
1118
  * console.log('Custom Action event:', payload);
@@ -1347,6 +1347,22 @@ export interface SearchLiveboardCommonViewConfig {
1347
1347
  * ```
1348
1348
  */
1349
1349
  enableCustomColumnGroups?: boolean;
1350
+ /**
1351
+ * To enable **Include current period** checkbox for date filters.
1352
+ * Controls the visibility of the option to include
1353
+ * the current time period in filter results.
1354
+ *
1355
+ * Supported embed types: `AppEmbed`, `SearchBarEmbed`, `LiveboardEmbed`, `SearchEmbed`
1356
+ * @example
1357
+ * ```js
1358
+ * const embed = new <EmbedComponent>('#tsEmbed', {
1359
+ * ... // other embed view config
1360
+ * isThisPeriodInDateFiltersEnabled: true,
1361
+ * })
1362
+ * ```
1363
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.4.0.cl
1364
+ */
1365
+ isThisPeriodInDateFiltersEnabled?: boolean;
1350
1366
  }
1351
1367
 
1352
1368
  /**
@@ -1357,7 +1373,7 @@ export interface LiveboardAppEmbedViewConfig {
1357
1373
  * Show or hide Liveboard header
1358
1374
  *
1359
1375
  * Supported embed types: `AppEmbed`, `LiveboardEmbed`
1360
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1376
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl
1361
1377
  * @default false
1362
1378
  * @example
1363
1379
  * ```js
@@ -1373,7 +1389,7 @@ export interface LiveboardAppEmbedViewConfig {
1373
1389
  * Show or hide Liveboard title
1374
1390
  *
1375
1391
  * Supported embed types: `AppEmbed`, `LiveboardEmbed`
1376
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1392
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl
1377
1393
  * @default false
1378
1394
  * @example
1379
1395
  * ```js
@@ -1389,7 +1405,7 @@ export interface LiveboardAppEmbedViewConfig {
1389
1405
  * Show or hide Liveboard description
1390
1406
  *
1391
1407
  * Supported embed types: `AppEmbed`, `LiveboardEmbed`
1392
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1408
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl
1393
1409
  * @default false
1394
1410
  * @example
1395
1411
  * ```js
@@ -1413,7 +1429,7 @@ export interface LiveboardAppEmbedViewConfig {
1413
1429
  * isLiveboardHeaderSticky: true,
1414
1430
  * });
1415
1431
  * ```
1416
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1432
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl
1417
1433
  */
1418
1434
  isLiveboardHeaderSticky?: boolean;
1419
1435
  /**
@@ -1507,7 +1523,7 @@ export interface LiveboardAppEmbedViewConfig {
1507
1523
  * enable or disable ask sage
1508
1524
  *
1509
1525
  * Supported embed types: `AppEmbed`, `LiveboardEmbed`
1510
- * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
1526
+ * @version SDK: 1.29.0 | ThoughtSpot: 9.12.0.cl
1511
1527
  * @default false
1512
1528
  * @example
1513
1529
  * ```js
@@ -1588,7 +1604,7 @@ export interface LiveboardAppEmbedViewConfig {
1588
1604
  * Show or hide masked filter chips
1589
1605
  *
1590
1606
  * Supported embed types: `AppEmbed`, `LiveboardEmbed`
1591
- * @version SDK: 1.45.0 | Thoughtspot: 26.2.0.cl
1607
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
1592
1608
  * @default false
1593
1609
  * @example
1594
1610
  * ```js
@@ -1604,7 +1620,7 @@ export interface LiveboardAppEmbedViewConfig {
1604
1620
  * Enable or disable Liveboard styling and grouping
1605
1621
  *
1606
1622
  * Supported embed types: `AppEmbed`, `LiveboardEmbed`
1607
- * @version SDK: 1.45.0 | Thoughtspot: 26.2.0.cl
1623
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
1608
1624
  * @default false
1609
1625
  * @example
1610
1626
  * ```js
@@ -2820,7 +2836,7 @@ export enum EmbedEvent {
2820
2836
  *
2821
2837
  * `error` - Developers can customize the error message text when `execute`
2822
2838
  * is `false` using the `errorText` and `errorDescription` parameters in responder.
2823
- *
2839
+ *
2824
2840
  * `errorText` - The error message text to be shown to the user.
2825
2841
  * `errorDescription (ThoughtSpot: 10.15.0.cl and above)` - The error description to be shown to the user.
2826
2842
  * @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
@@ -3486,7 +3502,7 @@ export enum HostEvent {
3486
3502
  *
3487
3503
  * spotterEmbed.trigger(HostEvent.Pin, { vizId: latestSpotterVizId });
3488
3504
  * ```
3489
- *
3505
+ *
3490
3506
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
3491
3507
  */
3492
3508
  Pin = 'pin',
@@ -3552,7 +3568,7 @@ export enum HostEvent {
3552
3568
  * visualization or Answer.
3553
3569
  *
3554
3570
  * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
3555
- *
3571
+ *
3556
3572
  * **NOTE**: The **Download** > **PDF** action is available on
3557
3573
  * visualizations and Answers if the data is in tabular format.
3558
3574
  * @example
@@ -3570,7 +3586,7 @@ export enum HostEvent {
3570
3586
  *
3571
3587
  * spotterEmbed.trigger(HostEvent.DownloadAsPdf, { vizId: latestSpotterVizId });
3572
3588
  * ```
3573
- *
3589
+ *
3574
3590
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
3575
3591
  */
3576
3592
  DownloadAsPdf = 'downloadAsPdf',
@@ -4413,7 +4429,7 @@ export enum HostEvent {
4413
4429
  * @example
4414
4430
  * ```js
4415
4431
  * spotterEmbed.trigger(HostEvent.AddToCoaching, { vizId: '730496d6-6903-4601-937e-2c691821af3c' });
4416
- *
4432
+ *
4417
4433
  *```
4418
4434
  * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
4419
4435
  */
@@ -4689,6 +4705,7 @@ export enum Param {
4689
4705
  isLinkParametersEnabled = 'isLinkParametersEnabled',
4690
4706
  EnablePastConversationsSidebar = 'enablePastConversationsSidebar',
4691
4707
  UpdatedSpotterChatPrompt = 'updatedSpotterChatPrompt',
4708
+ IsThisPeriodInDateFiltersEnabled = 'isThisPeriodInDateFiltersEnabled',
4692
4709
  }
4693
4710
 
4694
4711
  /**
@@ -4702,7 +4719,7 @@ export enum Param {
4702
4719
  * ```js
4703
4720
  * const embed = new LiveboardEmbed('#tsEmbed', {
4704
4721
  * ... //other embed view config
4705
- * visibleActions: [Action.Save, Action.Edit, Action.Present, ActionAction.Explore],
4722
+ * visibleActions: [Action.Save, Action.Edit, Action.Present, Action.Explore],
4706
4723
  * disabledActions: [Action.Download],
4707
4724
  * //hiddenActions: [], // Set either this or visibleActions
4708
4725
  * })
@@ -4713,7 +4730,7 @@ export enum Param {
4713
4730
  * ... //other embed view config
4714
4731
  * //visibleActions: [],
4715
4732
  * disabledActions: [Action.Download],
4716
- * hiddenActions: [Action.Edit, ActionAction.Explore],
4733
+ * hiddenActions: [Action.Edit, Action.Explore],
4717
4734
  * })
4718
4735
  * ```
4719
4736
  * See also link:https://developers.thoughtspot.com/docs/actions[Developer Documentation].
@@ -5234,13 +5251,15 @@ export enum Action {
5234
5251
  */
5235
5252
  RequestAccess = 'requestAccess',
5236
5253
  /**
5237
- * The **Query visualizer** and **Query SQL** buttons in
5238
- * Query details panel of the Answer page.
5254
+ * Controls the display and availability of the **Query visualizer** and
5255
+ * **Query SQL** buttons in the Query details panel on the Answer page.
5256
+ *
5257
+ * **Query visualizer** - Displays the tables and filters used in the search query.
5258
+ * **Query SQL** - Displays the SQL statements used to retrieve data for the query.
5239
5259
  *
5240
- * **Query visualizer** - Displays the tables
5241
- * and filters used in a search query.
5242
- * **Query SQL** - Displays the SQL statements used
5243
- * in a search query to fetch data.
5260
+ * Note: This action ID only affects the visibility of the buttons within the
5261
+ * Query details panel. It does not control the visibility
5262
+ * of the query details icon on the Answer page.
5244
5263
  * @example
5245
5264
  * ```js
5246
5265
  * disabledActions: [Action.QueryDetailsButtons]
@@ -5962,12 +5981,11 @@ export enum Action {
5962
5981
  */
5963
5982
  CoverAndFilterOptionInPDF = 'coverAndFilterOptionInPDF',
5964
5983
  /**
5965
- * Action ID to hide or disable the Spotter in the conversation training widget.
5966
- * When disabled, users cannot access **Add to Coaching**, which allows adding reference
5967
- * questions and business terms to improve Spotter’s responses.
5968
- * The **Add to Coaching** feature is generally available from version 26.2.0.cl and
5969
- * enabled by default on embed deployments.
5970
-
5984
+ * Action ID to hide or disable the Coaching workflow in Spotter conversations.
5985
+ * When disabled, users cannot access **Add to Coaching** workflow in conversation.
5986
+ * The **Add to Coaching** feature allows adding reference questions and
5987
+ * business terms to improve Spotter’s responses. This feature is generally available
5988
+ * (GA) from version 26.2.0.cl and enabled by default on embed deployments.
5971
5989
  * @example
5972
5990
  * ```js
5973
5991
  * hiddenAction: [Action.InConversationTraining]
@@ -6043,6 +6061,55 @@ export enum Action {
6043
6061
  * @version SDK: 1.43.0 | ThoughtSpot Cloud: 10.15.0.cl
6044
6062
  */
6045
6063
  LiveboardStylePanel = 'liveboardStylePanel',
6064
+ /**
6065
+ * The **Publish** action for Liveboards, Answers and Models.
6066
+ * Opens the publishing modal. It's a parent action for the
6067
+ * **Manage Publishing** and **Unpublish** actions if the object
6068
+ * is already published, otherwise appears standalone.
6069
+ * @example
6070
+ * ```js
6071
+ * hiddenActions: [Action.Publish]
6072
+ * disabledActions: [Action.Publish]
6073
+ * ```
6074
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
6075
+ */
6076
+ Publish = 'publish',
6077
+ /**
6078
+ * The **Manage Publishing** action for Liveboards, Answers and Models.
6079
+ * Opens the same publishing modal as the **Publish** action.
6080
+ * Appears as a child action to the **Publish** action if the
6081
+ * object is already published.
6082
+ * @example
6083
+ * ```js
6084
+ * hiddenActions: [Action.ManagePublishing]
6085
+ * disabledActions: [Action.ManagePublishing]
6086
+ * ```
6087
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
6088
+ */
6089
+ ManagePublishing = 'managePublishing',
6090
+ /**
6091
+ * The **Unpublish** action for Liveboards, Answers and Models.
6092
+ * Opens the unpublishing modal. Appears as a child action to
6093
+ * the **Publish** action if the object is already published.
6094
+ * @example
6095
+ * ```js
6096
+ * hiddenActions: [Action.Unpublish]
6097
+ * disabledActions: [Action.Unpublish]
6098
+ * ```
6099
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
6100
+ */
6101
+ Unpublish = 'unpublish',
6102
+ /**
6103
+ * The **Parameterize** action for Tables and Connections.
6104
+ * Opens the parameterization modal.
6105
+ * @example
6106
+ * ```js
6107
+ * hiddenActions: [Action.Parameterize]
6108
+ * disabledActions: [Action.Parameterize]
6109
+ * ```
6110
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
6111
+ */
6112
+ Parameterize = 'parameterise',
6046
6113
  /**
6047
6114
  * The **Move to Group** menu action on a Liveboard.
6048
6115
  * Allows moving a visualization to a different group.
@@ -6083,6 +6150,18 @@ export enum Action {
6083
6150
  * @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
6084
6151
  */
6085
6152
  UngroupLiveboardGroup = 'ungroupLiveboardGroup',
6153
+ /**
6154
+ * The **Include current period** checkbox for date filters.
6155
+ * Controls the visibility and availability of the option to include
6156
+ * the current time period in filter results.
6157
+ * @example
6158
+ * ```js
6159
+ * hiddenActions: [Action.IncludeCurrentPeriod]
6160
+ * disabledActions: [Action.IncludeCurrentPeriod]
6161
+ * ```
6162
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.4.0.cl
6163
+ */
6164
+ IncludeCurrentPeriod = 'includeCurrentPeriod',
6086
6165
  }
6087
6166
  export interface AnswerServiceType {
6088
6167
  getAnswer?: (offset: number, batchSize: number) => any;
@@ -6279,11 +6358,11 @@ export enum LogLevel {
6279
6358
 
6280
6359
  /**
6281
6360
  * Error types emitted by embedded components.
6282
- *
6361
+ *
6283
6362
  * These enum values categorize different types of errors that can occur during
6284
6363
  * the lifecycle of an embedded ThoughtSpot component. Use these values to implement
6285
6364
  * specific error handling logic based on the error category.
6286
- *
6365
+ *
6287
6366
  * @see {@link EmbedErrorDetailsEvent} - The error event object structure
6288
6367
  * @see {@link EmbedEvent.Error} - The event that emits these errors
6289
6368
  * @version SDK: 1.44.2 | ThoughtSpot: 26.2.0.cl
@@ -6322,31 +6401,31 @@ export enum ErrorDetailsTypes {
6322
6401
  export enum EmbedErrorCodes {
6323
6402
  /** Worksheet ID not found or does not exist */
6324
6403
  WORKSHEET_ID_NOT_FOUND = 'WORKSHEET_ID_NOT_FOUND',
6325
-
6404
+
6326
6405
  /** Required Liveboard ID is missing from configuration */
6327
6406
  LIVEBOARD_ID_MISSING = 'LIVEBOARD_ID_MISSING',
6328
-
6407
+
6329
6408
  /** Conflicting action configuration detected (e.g., both hiddenActions and visibleActions specified) */
6330
6409
  CONFLICTING_ACTIONS_CONFIG = 'CONFLICTING_ACTIONS_CONFIG',
6331
-
6410
+
6332
6411
  /** Conflicting tab configuration detected (e.g., both hiddenTabs and visibleTabs specified) */
6333
6412
  CONFLICTING_TABS_CONFIG = 'CONFLICTING_TABS_CONFIG',
6334
-
6413
+
6335
6414
  /** Error during component initialization */
6336
6415
  INIT_ERROR = 'INIT_ERROR',
6337
-
6416
+
6338
6417
  /** Network connectivity or request error */
6339
6418
  NETWORK_ERROR = 'NETWORK_ERROR',
6340
-
6419
+
6341
6420
  /** Custom action validation failed */
6342
6421
  CUSTOM_ACTION_VALIDATION = 'CUSTOM_ACTION_VALIDATION',
6343
-
6422
+
6344
6423
  /** Authentication/login failed */
6345
6424
  LOGIN_FAILED = 'LOGIN_FAILED',
6346
-
6425
+
6347
6426
  /** Render method was not called before attempting to use the component */
6348
6427
  RENDER_NOT_CALLED = 'RENDER_NOT_CALLED',
6349
-
6428
+
6350
6429
  /** Host event type is undefined or invalid */
6351
6430
  HOST_EVENT_TYPE_UNDEFINED = 'HOST_EVENT_TYPE_UNDEFINED',
6352
6431
 
@@ -6365,14 +6444,14 @@ export enum EmbedErrorCodes {
6365
6444
  * a human-readable message, and a machine-readable error code.
6366
6445
  *
6367
6446
  * ## Properties
6368
- *
6447
+ *
6369
6448
  * - **errorType**: One of the predefined {@link ErrorDetailsTypes} values
6370
6449
  * - **message**: Human-readable error description (string or array of strings for multiple errors)
6371
6450
  * - **code**: Machine-readable error identifier for programmatic handling
6372
6451
  * - **[key: string]**: Additional context-specific for backward compatibility
6373
6452
  *
6374
6453
  * ## Usage
6375
- *
6454
+ *
6376
6455
  * Listen to the {@link EmbedEvent.Error} event to receive instances of this object
6377
6456
  * and implement appropriate error handling logic based on the `errorType`.
6378
6457
  *
@@ -6380,7 +6459,7 @@ export enum EmbedErrorCodes {
6380
6459
  * @group Error Handling
6381
6460
  * @see {@link ErrorDetailsTypes} - Available error type values
6382
6461
  * @see {@link EmbedEvent.Error} - The event that emits this object
6383
- *
6462
+ *
6384
6463
  * @example
6385
6464
  * Handle specific error types
6386
6465
  *
@@ -6393,18 +6472,18 @@ export enum EmbedErrorCodes {
6393
6472
  * console.error('Unknown error:', error);
6394
6473
  * }
6395
6474
  * });
6396
- * *
6475
+ * *
6397
6476
  * @example
6398
6477
  * Handle multiple error messages
6399
6478
  *
6400
6479
  * embed.on(EmbedEvent.Error, (error) => {
6401
- * const messages = Array.isArray(error.message)
6402
- * ? error.message
6480
+ * const messages = Array.isArray(error.message)
6481
+ * ? error.message
6403
6482
  * : [error.message];
6404
- *
6483
+ *
6405
6484
  * messages.forEach(msg => console.error(msg));
6406
6485
  * });
6407
- * *
6486
+ * *
6408
6487
  * @example
6409
6488
  * Access additional error context
6410
6489
  *
@@ -76,6 +76,24 @@ describe('Unit test for processTrigger', () => {
76
76
  expect(triggerPromise).rejects.toEqual(res.data.error);
77
77
  });
78
78
 
79
+ test('should handle null/undefined responseData without throwing', async () => {
80
+ const messageType = HostEvent.Search;
81
+ const thoughtSpotHost = 'http://localhost:3000';
82
+ const data = {};
83
+ mockMessageChannel();
84
+ const triggerPromise = _processTriggerInstance.processTrigger(
85
+ iFrame,
86
+ messageType,
87
+ thoughtSpotHost,
88
+ data,
89
+ );
90
+ expect(iFrame.contentWindow.postMessage).toHaveBeenCalled();
91
+ // Simulate a message with null responseData
92
+ messageChannelMock.port1.onmessage({ data: null });
93
+ expect(messageChannelMock.port1.close).toHaveBeenCalled();
94
+ await expect(triggerPromise).resolves.toEqual(null);
95
+ });
96
+
79
97
  test('should close channel.port1 when timeout exceeds TRIGGER_TIMEOUT', async () => {
80
98
  const messageType = HostEvent.Search;
81
99
  const thoughtSpotHost = 'http://localhost:3000';
@@ -69,7 +69,7 @@ export function processTrigger(
69
69
  const channel = new MessageChannel();
70
70
  channel.port1.onmessage = ({ data: responseData }) => {
71
71
  channel.port1.close();
72
- const error = responseData.error || responseData?.data?.error;
72
+ const error = responseData?.error || responseData?.data?.error;
73
73
  if (error) {
74
74
  rej(error);
75
75
  } else {