@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.
- package/dist/src/embed/app.d.ts +9 -2
- package/dist/src/embed/liveboard.d.ts +19 -19
- package/dist/src/embed/liveboard.spec.d.ts +1 -0
- package/dist/src/embed/ts-embed.d.ts +2 -11
- package/dist/src/types.d.ts +18 -23
- package/dist/tsembed.es.js +48 -58
- package/dist/tsembed.js +47 -57
- package/lib/package.json +1 -1
- package/lib/src/embed/app.d.ts +9 -2
- package/lib/src/embed/app.js +18 -1
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +31 -0
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/events.spec.js +55 -2
- package/lib/src/embed/events.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +19 -19
- package/lib/src/embed/liveboard.js +12 -13
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.d.ts +1 -0
- package/lib/src/embed/liveboard.spec.js +159 -0
- package/lib/src/embed/liveboard.spec.js.map +1 -0
- package/lib/src/embed/ts-embed.d.ts +2 -11
- package/lib/src/embed/ts-embed.js +2 -22
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +63 -6
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/types.d.ts +18 -23
- package/lib/src/types.js +15 -21
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +41 -48
- package/package.json +1 -1
- package/src/embed/app.spec.ts +40 -0
- package/src/embed/app.ts +21 -2
- package/src/embed/events.spec.ts +60 -1
- package/src/embed/liveboard.spec.ts +199 -0
- package/src/embed/liveboard.ts +21 -24
- package/src/embed/ts-embed.spec.ts +78 -5
- package/src/embed/ts-embed.ts +3 -24
- 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
|
-
*
|
|
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,
|
|
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
|
|
256
|
-
* @return data - The answer or
|
|
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/
|
|
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
|
|
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
|
-
* *
|
|
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
|
|
308
|
-
* @return data - The height of the embedded
|
|
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
|
-
* *
|
|
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
|
-
* *
|
|
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
|
-
* *
|
|
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
|
|
386
|
-
* @param - an array of ids of
|
|
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
|
-
*
|
|
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
|
|
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 = '
|
|
494
|
+
LiveboardInfo = 'pinboardInfo',
|
|
500
495
|
SendAnswerFeedback = 'sendFeedback',
|
|
501
496
|
/**
|
|
502
497
|
* @deprecated Will be removed in next version
|