@thoughtspot/visual-embed-sdk 1.8.1 → 1.9.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.
@@ -31,7 +31,7 @@ describe('React Components', () => {
31
31
  await waitFor(() => getIFrameEl(container));
32
32
 
33
33
  expect(getIFrameSrc(container)).toBe(
34
- `http://${thoughtSpotHost}/?hostAppUrl=local-host&viewPortHeight=768&viewPortWidth=1024&sdkVersion=${version}&hideAction=[%22editACopy%22,%22saveAsView%22]&dataSourceMode=hide&useLastSelectedSources=false&isSearchEmbed=true#/embed/answer`,
34
+ `http://${thoughtSpotHost}/?hostAppUrl=local-host&viewPortHeight=768&viewPortWidth=1024&sdkVersion=${version}&hideAction=[%22editACopy%22,%22saveAsView%22,%22updateTSL%22,%22editTSL%22,%22onDeleteAnswer%22]&dataSourceMode=hide&useLastSelectedSources=false&isSearchEmbed=true#/embed/answer`,
35
35
  );
36
36
  });
37
37
 
package/src/types.ts CHANGED
@@ -140,6 +140,7 @@ export interface EmbedConfig {
140
140
 
141
141
  /**
142
142
  * Dynamic CSS Url to be injected in the loaded application.
143
+ * You would also need to set `style-src` in the CSP settings.
143
144
  * @version 1.6.0 or later
144
145
  * @default ''
145
146
  */
@@ -287,6 +288,12 @@ export enum EmbedEvent {
287
288
  * @return dataSourceIds - the list of data sources
288
289
  */
289
290
  DataSourceSelected = 'dataSourceSelected',
291
+ /**
292
+ * One or more data columns have been selected.
293
+ * @return columnIds - the list of columns
294
+ * @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl
295
+ */
296
+ AddRemoveColumns = 'addRemoveColumns',
290
297
  /**
291
298
  * A custom action has been triggered
292
299
  * @return actionId - The id of the custom action
@@ -401,9 +408,10 @@ export enum HostEvent {
401
408
  */
402
409
  SetVisibleVizs = 'SetPinboardVisibleVizs',
403
410
  /**
404
- * Update the runtime filters
411
+ * Update the runtime filters. The runtime filters passed here are extended
412
+ * on to the existing runtime filters if they exist.
405
413
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
406
- * @version 1.8.0 or later
414
+ * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl
407
415
  */
408
416
  UpdateRuntimeFilters = 'UpdateRuntimeFilters',
409
417
  }
@@ -513,10 +521,6 @@ export enum Action {
513
521
  PinboardInfo = 'pinboardInfo',
514
522
  LiveboardInfo = 'pinboardInfo',
515
523
  SendAnswerFeedback = 'sendFeedback',
516
- /**
517
- * @deprecated Will be removed in next version
518
- */
519
- CustomAction = 'customAction',
520
524
  DownloadEmbraceQueries = 'downloadEmbraceQueries',
521
525
  Pin = 'pin',
522
526
  AnalysisInfo = 'analysisInfo',
@@ -532,6 +536,26 @@ export enum Action {
532
536
  DrillDown = 'DRILL',
533
537
  RequestAccess = 'requestAccess',
534
538
  QueryDetailsButtons = 'queryDetailsButtons',
539
+ /**
540
+ * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl
541
+ */
542
+ Monitor = 'createMonitor',
543
+ /**
544
+ * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl
545
+ */
546
+ AnswerDelete = 'onDeleteAnswer',
547
+ /**
548
+ * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl
549
+ */
550
+ AnswerChartSwitcher = 'answerChartSwitcher',
551
+ /**
552
+ * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl
553
+ */
554
+ AddToFavorites = 'addToFavorites',
555
+ /**
556
+ * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl
557
+ */
558
+ EditDetails = 'editDetails',
535
559
  }
536
560
 
537
561
  export interface SessionInterface {