@thoughtspot/visual-embed-sdk 1.6.0-alpha.2 → 1.6.0-alpha.3

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 (39) hide show
  1. package/dist/src/embed/app.d.ts +9 -2
  2. package/dist/src/embed/liveboard.d.ts +19 -19
  3. package/dist/src/embed/liveboard.spec.d.ts +1 -0
  4. package/dist/src/embed/ts-embed.d.ts +2 -11
  5. package/dist/src/types.d.ts +18 -23
  6. package/dist/tsembed.es.js +48 -58
  7. package/dist/tsembed.js +47 -57
  8. package/lib/package.json +1 -1
  9. package/lib/src/embed/app.d.ts +9 -2
  10. package/lib/src/embed/app.js +18 -1
  11. package/lib/src/embed/app.js.map +1 -1
  12. package/lib/src/embed/app.spec.js +31 -0
  13. package/lib/src/embed/app.spec.js.map +1 -1
  14. package/lib/src/embed/events.spec.js +55 -2
  15. package/lib/src/embed/events.spec.js.map +1 -1
  16. package/lib/src/embed/liveboard.d.ts +19 -19
  17. package/lib/src/embed/liveboard.js +12 -13
  18. package/lib/src/embed/liveboard.js.map +1 -1
  19. package/lib/src/embed/liveboard.spec.d.ts +1 -0
  20. package/lib/src/embed/liveboard.spec.js +159 -0
  21. package/lib/src/embed/liveboard.spec.js.map +1 -0
  22. package/lib/src/embed/ts-embed.d.ts +2 -11
  23. package/lib/src/embed/ts-embed.js +2 -22
  24. package/lib/src/embed/ts-embed.js.map +1 -1
  25. package/lib/src/embed/ts-embed.spec.js +63 -6
  26. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  27. package/lib/src/types.d.ts +18 -23
  28. package/lib/src/types.js +15 -21
  29. package/lib/src/types.js.map +1 -1
  30. package/lib/src/visual-embed-sdk.d.ts +41 -48
  31. package/package.json +1 -1
  32. package/src/embed/app.spec.ts +40 -0
  33. package/src/embed/app.ts +21 -2
  34. package/src/embed/events.spec.ts +60 -1
  35. package/src/embed/liveboard.spec.ts +199 -0
  36. package/src/embed/liveboard.ts +21 -24
  37. package/src/embed/ts-embed.spec.ts +78 -5
  38. package/src/embed/ts-embed.ts +3 -24
  39. package/src/types.ts +18 -23
package/src/types.ts CHANGED
@@ -124,13 +124,14 @@ export interface EmbedConfig {
124
124
  * When there are multiple embeds, queue the render of embed to start
125
125
  * after the previous embed's render is complete. This helps in the load performance
126
126
  * by decreasing the load on the browser.
127
+ * * _Version 1.5.0 or later _
127
128
  * @default false
128
129
  */
129
130
  queueMultiRenders?: boolean;
130
131
 
131
132
  /**
132
133
  * Dynamic CSS Url to be injected in the loaded application.
133
- * _Since: 1.6.0_
134
+ * * _Version 1.6.0 or later _
134
135
  * @default ''
135
136
  */
136
137
  customCssUrl?: string;
@@ -212,7 +213,7 @@ export enum RuntimeFilterOp {
212
213
  }
213
214
 
214
215
  /**
215
- * A filter that can be applied to ThoughtSpot answers, liveboards, or
216
+ * A filter that can be applied to ThoughtSpot answers, Liveboards, or
216
217
  * visualizations at runtime.
217
218
  */
218
219
  export interface RuntimeFilter {
@@ -252,12 +253,12 @@ export enum EmbedEvent {
252
253
  */
253
254
  Load = 'load',
254
255
  /**
255
- * Data pertaining to answer or liveboard is received
256
- * @return data - The answer or liveboard data
256
+ * Data pertaining to answer or Liveboard is received
257
+ * @return data - The answer or Liveboard data
257
258
  */
258
259
  Data = 'data',
259
260
  /**
260
- * Search/answer/liveboard filters have been applied/updated
261
+ * Search/answer/Liveboard filters have been applied/updated
261
262
  * @hidden
262
263
  */
263
264
  FiltersChanged = 'filtersChanged',
@@ -280,13 +281,13 @@ export enum EmbedEvent {
280
281
  /**
281
282
  * A custom action has been triggered
282
283
  * @return actionId - The id of the custom action
283
- * @return data - The answer or liveboard data
284
+ * @return data - The answer or Liveboard data
284
285
  */
285
286
  CustomAction = 'customAction',
286
287
  /**
287
288
  * A double click has been triggered on table/chart
288
289
  * @return ContextMenuInputPoints - data point that is double clicked
289
- * * _since: 1.5.0_
290
+ * * _Version 1.5.0 or later _
290
291
  */
291
292
  VizPointDoubleClick = 'vizPointDoubleClick',
292
293
  /**
@@ -304,8 +305,8 @@ export enum EmbedEvent {
304
305
  */
305
306
  AuthExpire = 'ThoughtspotAuthExpired',
306
307
  /**
307
- * The height of the embedded liveboard or visualization has been computed.
308
- * @return data - The height of the embedded liveboard or visualization
308
+ * The height of the embedded Liveboard or visualization has been computed.
309
+ * @return data - The height of the embedded Liveboard or visualization
309
310
  * @hidden
310
311
  */
311
312
  EmbedHeight = 'EMBED_HEIGHT',
@@ -317,7 +318,6 @@ export enum EmbedEvent {
317
318
  EmbedIframeCenter = 'EmbedIframeCenter',
318
319
  /**
319
320
  * Detects the route change.
320
- * @hidden
321
321
  */
322
322
  RouteChange = 'ROUTE_CHANGE',
323
323
  /**
@@ -340,12 +340,12 @@ export enum EmbedEvent {
340
340
  SAMLComplete = 'samlComplete',
341
341
  /**
342
342
  * Emitted when any modal is opened in the app
343
- * * _since: 1.6.0_
343
+ * * _Version 1.6.0 or later _
344
344
  */
345
345
  DialogOpen = 'dialog-open',
346
346
  /**
347
347
  * Emitted when any modal is closed in the app
348
- * * _since: 1.6.0_
348
+ * * _Version 1.6.0 or later _
349
349
  */
350
350
  DialogClose = 'dialog-close',
351
351
  }
@@ -368,7 +368,7 @@ export enum HostEvent {
368
368
  * eg. { selectedPoints: []}
369
369
  * @param columnGuid - a string guid of the column to drill by. This is optional,
370
370
  * if not provided it will auto drill by the configured column. \
371
- * * _since: 1.5.0_
371
+ * * _Version 1.5.0 or later _
372
372
  */
373
373
  DrillDown = 'triggerDrillDown',
374
374
  /**
@@ -382,10 +382,10 @@ export enum HostEvent {
382
382
  */
383
383
  Reload = 'reload',
384
384
  /**
385
- * Set the visible Vizs on a pinboard/liveboard.
386
- * @param - an array of ids of vizs to show, the ids not passed
385
+ * Set the visible visualizations on a Liveboard.
386
+ * @param - an array of ids of visualizations to show, the ids not passed
387
387
  * will be hidden.
388
- * _since: 1.6.0_
388
+ * * _Version 1.6.0 or later _
389
389
  */
390
390
  SetVisibleVizs = 'SetPinboardVisibleVizs',
391
391
  }
@@ -444,7 +444,7 @@ export enum Param {
444
444
 
445
445
  /**
446
446
  * The list of actions that can be performed on visual ThoughtSpot
447
- * entities, such as answers and liveboards.
447
+ * entities, such as answers and Liveboards.
448
448
  */
449
449
  // eslint-disable-next-line no-shadow
450
450
  export enum Action {
@@ -455,11 +455,6 @@ export enum Action {
455
455
  MakeACopy = 'makeACopy',
456
456
  EditACopy = 'editACopy',
457
457
  CopyLink = 'embedDocument',
458
- /**
459
- * @hidden
460
- */
461
- PinboardSnapshot = 'pinboardSnapshot',
462
- LiveboardSnapshot = 'liveboardSnapshot', // update-TSCB
463
458
  ResetLayout = 'resetLayout',
464
459
  Schedule = 'schedule',
465
460
  SchedulesList = 'schedule-list',
@@ -496,7 +491,7 @@ export enum Action {
496
491
  * @hidden
497
492
  */
498
493
  PinboardInfo = 'pinboardInfo',
499
- LiveboardInfo = 'liveboardInfo', // update-TSCB
494
+ LiveboardInfo = 'pinboardInfo',
500
495
  SendAnswerFeedback = 'sendFeedback',
501
496
  /**
502
497
  * @deprecated Will be removed in next version