@thoughtspot/visual-embed-sdk 1.36.4 → 1.36.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.
- package/{LICENSE → LICENSE.md} +5 -6
- package/cjs/package.json +1 -1
- package/cjs/src/css-variables.d.ts +1 -1
- package/cjs/src/css-variables.d.ts.map +1 -1
- package/cjs/src/types.d.ts +59 -21
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +57 -19
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-NZYq1Tu3.js → index-C68cxDnD.js} +1 -1
- package/dist/src/css-variables.d.ts +1 -1
- package/dist/src/css-variables.d.ts.map +1 -1
- package/dist/src/types.d.ts +59 -21
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +60 -22
- package/dist/tsembed-react.js +59 -21
- package/dist/tsembed.es.js +60 -22
- package/dist/tsembed.js +59 -21
- package/dist/visual-embed-sdk-react-full.d.ts +60 -22
- package/dist/visual-embed-sdk-react.d.ts +60 -22
- package/dist/visual-embed-sdk.d.ts +60 -22
- package/lib/package.json +1 -1
- package/lib/src/css-variables.d.ts +1 -1
- package/lib/src/css-variables.d.ts.map +1 -1
- package/lib/src/types.d.ts +59 -21
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +57 -19
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +60 -22
- package/package.json +1 -1
- package/src/css-variables.ts +1 -1
- package/src/types.ts +57 -19
|
@@ -3329,8 +3329,9 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3329
3329
|
*/
|
|
3330
3330
|
Load = "load",
|
|
3331
3331
|
/**
|
|
3332
|
-
* Data pertaining to an Answer or Liveboard is received
|
|
3333
|
-
*
|
|
3332
|
+
* Data pertaining to an Answer or Liveboard is received.
|
|
3333
|
+
* The event payload includes the raw data of the object.
|
|
3334
|
+
* @return data - Answer of Liveboard data
|
|
3334
3335
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
3335
3336
|
* @example
|
|
3336
3337
|
*```js
|
|
@@ -4234,17 +4235,39 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4234
4235
|
*/
|
|
4235
4236
|
ParameterChanged = "parameterChanged",
|
|
4236
4237
|
/**
|
|
4237
|
-
*
|
|
4238
|
-
*
|
|
4239
|
-
*
|
|
4238
|
+
* Emits when a table visualization is rendered in
|
|
4239
|
+
* the ThoughtSpot embedded app.
|
|
4240
|
+
* You can also use this event as a hook to trigger host events
|
|
4241
|
+
* such as `HostEvent.TransformTableVizData` on the table visualization.
|
|
4242
|
+
* The event payload contains the data used in the rendered table.
|
|
4243
|
+
* You can extract the relevant data from the payload
|
|
4244
|
+
* stored in `payload.data.data.columnDataLite`.
|
|
4245
|
+
* `columnDataLite` is a multidimensional array that contains
|
|
4246
|
+
* data values for each column, which was used in the query to
|
|
4247
|
+
* generate the table visualization. To find and modify specific cell data,
|
|
4248
|
+
* you can either loop through the array or directly access a cell if
|
|
4249
|
+
* you know its position and data index.
|
|
4250
|
+
* In the following code sample, the first cell in the first column
|
|
4251
|
+
* (`columnDataLite[0].dataValue[0]`) is set to `new fob`.
|
|
4252
|
+
* Note that any changes made to the data in the payload will only update the
|
|
4253
|
+
* visual presentation and do not affect the underlying data.
|
|
4254
|
+
* To persist data value modifications after a reload or during chart
|
|
4255
|
+
* interactions such as drill down, ensure that the modified
|
|
4256
|
+
* payload in the `columnDataLite` is passed on to
|
|
4257
|
+
* `HostEvent.TransformTableVizData` and trigger an update to
|
|
4258
|
+
* the table visualization.
|
|
4259
|
+
* If the Row-Level Security (RLS) rules are applied on the
|
|
4260
|
+
* Worksheet or Model, exercise caution when changing column
|
|
4261
|
+
* or table cell values to maintain data security.
|
|
4262
|
+
*
|
|
4240
4263
|
* @example
|
|
4241
4264
|
* ```js
|
|
4242
4265
|
* searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
|
|
4243
|
-
*
|
|
4244
|
-
*
|
|
4245
|
-
*
|
|
4246
|
-
*
|
|
4247
|
-
*
|
|
4266
|
+
* console.log(payload);
|
|
4267
|
+
* const columnDataLite = payload.data.data.columnDataLite;
|
|
4268
|
+
* columnDataLite[0].dataValue[0]="new fob";
|
|
4269
|
+
* console.log('>>> new Data', columnDataLite);
|
|
4270
|
+
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
4248
4271
|
* })
|
|
4249
4272
|
* ```
|
|
4250
4273
|
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
@@ -4262,7 +4285,12 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4262
4285
|
*```
|
|
4263
4286
|
* @version SDK : 1.36.0 | ThoughtSpot : 10.8.0.cl
|
|
4264
4287
|
*/
|
|
4265
|
-
CreateLiveboard = "createLiveboard"
|
|
4288
|
+
CreateLiveboard = "createLiveboard",
|
|
4289
|
+
/**
|
|
4290
|
+
* Emitted when a user creates a Model.
|
|
4291
|
+
* @version SDK : 1.38.0 | ThoughtSpot : 10.8.0.cl
|
|
4292
|
+
*/
|
|
4293
|
+
CreateModel = "createModel"
|
|
4266
4294
|
}
|
|
4267
4295
|
/**
|
|
4268
4296
|
* Event types that can be triggered by the host application
|
|
@@ -5281,19 +5309,20 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
5281
5309
|
*/
|
|
5282
5310
|
UIPassthrough = "UiPassthrough",
|
|
5283
5311
|
/**
|
|
5284
|
-
* Triggers the table
|
|
5312
|
+
* Triggers the table visualization re-render with the updated data.
|
|
5285
5313
|
* Includes the following properties:
|
|
5286
|
-
* @param - columnDataLite - an array of object containing
|
|
5287
|
-
*
|
|
5288
|
-
* For example, { columnDataLite: []}
|
|
5314
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
5315
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
5316
|
+
* payload.For example, { columnDataLite: []}`.
|
|
5317
|
+
*
|
|
5289
5318
|
* @example
|
|
5290
5319
|
* ```js
|
|
5291
5320
|
* searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
|
|
5292
|
-
*
|
|
5293
|
-
*
|
|
5294
|
-
*
|
|
5295
|
-
*
|
|
5296
|
-
*
|
|
5321
|
+
* console.log(payload);
|
|
5322
|
+
* const columnDataLite = payload.data.data.columnDataLite;
|
|
5323
|
+
* columnDataLite[0].dataValue[0]="new fob";
|
|
5324
|
+
* console.log('>>> new Data', columnDataLite);
|
|
5325
|
+
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
5297
5326
|
* })
|
|
5298
5327
|
* ```
|
|
5299
5328
|
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
@@ -6621,7 +6650,16 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
6621
6650
|
* ```
|
|
6622
6651
|
* @version SDK: 1.36.0 | ThoughtSpot Cloud: 10.6.0.cl
|
|
6623
6652
|
*/
|
|
6624
|
-
EditTokens = "editTokens"
|
|
6653
|
+
EditTokens = "editTokens",
|
|
6654
|
+
/**
|
|
6655
|
+
* Action ID for hiding rename option for Column rename
|
|
6656
|
+
* @example
|
|
6657
|
+
* ```js
|
|
6658
|
+
* hiddenAction: [Action.ColumnRename]
|
|
6659
|
+
* ```
|
|
6660
|
+
* @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
6661
|
+
*/
|
|
6662
|
+
ColumnRename = "columnRename"
|
|
6625
6663
|
}
|
|
6626
6664
|
export interface AnswerServiceType {
|
|
6627
6665
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -6879,7 +6917,7 @@ declare module '@thoughtspot/visual-embed-sdk/css-variables' {
|
|
|
6879
6917
|
/**
|
|
6880
6918
|
* Background color of the previously asked prompt message in the Spotter page.
|
|
6881
6919
|
*/
|
|
6882
|
-
'--ts-var-spotter-prompt-background'
|
|
6920
|
+
'--ts-var-spotter-prompt-background'?: string;
|
|
6883
6921
|
/**
|
|
6884
6922
|
* Background color of the data panel.
|
|
6885
6923
|
*/
|
package/package.json
CHANGED
package/src/css-variables.ts
CHANGED
|
@@ -119,7 +119,7 @@ export interface CustomCssVariables {
|
|
|
119
119
|
/**
|
|
120
120
|
* Background color of the previously asked prompt message in the Spotter page.
|
|
121
121
|
*/
|
|
122
|
-
'--ts-var-spotter-prompt-background'
|
|
122
|
+
'--ts-var-spotter-prompt-background'?: string;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* Background color of the data panel.
|
package/src/types.ts
CHANGED
|
@@ -1402,8 +1402,9 @@ export enum EmbedEvent {
|
|
|
1402
1402
|
*/
|
|
1403
1403
|
Load = 'load',
|
|
1404
1404
|
/**
|
|
1405
|
-
* Data pertaining to an Answer or Liveboard is received
|
|
1406
|
-
*
|
|
1405
|
+
* Data pertaining to an Answer or Liveboard is received.
|
|
1406
|
+
* The event payload includes the raw data of the object.
|
|
1407
|
+
* @return data - Answer of Liveboard data
|
|
1407
1408
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
1408
1409
|
* @example
|
|
1409
1410
|
*```js
|
|
@@ -2309,17 +2310,39 @@ export enum EmbedEvent {
|
|
|
2309
2310
|
*/
|
|
2310
2311
|
ParameterChanged = 'parameterChanged',
|
|
2311
2312
|
/**
|
|
2312
|
-
*
|
|
2313
|
-
*
|
|
2314
|
-
*
|
|
2313
|
+
* Emits when a table visualization is rendered in
|
|
2314
|
+
* the ThoughtSpot embedded app.
|
|
2315
|
+
* You can also use this event as a hook to trigger host events
|
|
2316
|
+
* such as `HostEvent.TransformTableVizData` on the table visualization.
|
|
2317
|
+
* The event payload contains the data used in the rendered table.
|
|
2318
|
+
* You can extract the relevant data from the payload
|
|
2319
|
+
* stored in `payload.data.data.columnDataLite`.
|
|
2320
|
+
* `columnDataLite` is a multidimensional array that contains
|
|
2321
|
+
* data values for each column, which was used in the query to
|
|
2322
|
+
* generate the table visualization. To find and modify specific cell data,
|
|
2323
|
+
* you can either loop through the array or directly access a cell if
|
|
2324
|
+
* you know its position and data index.
|
|
2325
|
+
* In the following code sample, the first cell in the first column
|
|
2326
|
+
* (`columnDataLite[0].dataValue[0]`) is set to `new fob`.
|
|
2327
|
+
* Note that any changes made to the data in the payload will only update the
|
|
2328
|
+
* visual presentation and do not affect the underlying data.
|
|
2329
|
+
* To persist data value modifications after a reload or during chart
|
|
2330
|
+
* interactions such as drill down, ensure that the modified
|
|
2331
|
+
* payload in the `columnDataLite` is passed on to
|
|
2332
|
+
* `HostEvent.TransformTableVizData` and trigger an update to
|
|
2333
|
+
* the table visualization.
|
|
2334
|
+
* If the Row-Level Security (RLS) rules are applied on the
|
|
2335
|
+
* Worksheet or Model, exercise caution when changing column
|
|
2336
|
+
* or table cell values to maintain data security.
|
|
2337
|
+
*
|
|
2315
2338
|
* @example
|
|
2316
2339
|
* ```js
|
|
2317
2340
|
* searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
|
|
2318
|
-
*
|
|
2319
|
-
*
|
|
2320
|
-
*
|
|
2321
|
-
*
|
|
2322
|
-
*
|
|
2341
|
+
* console.log(payload);
|
|
2342
|
+
* const columnDataLite = payload.data.data.columnDataLite;
|
|
2343
|
+
* columnDataLite[0].dataValue[0]="new fob";
|
|
2344
|
+
* console.log('>>> new Data', columnDataLite);
|
|
2345
|
+
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
2323
2346
|
* })
|
|
2324
2347
|
* ```
|
|
2325
2348
|
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
@@ -2338,6 +2361,11 @@ export enum EmbedEvent {
|
|
|
2338
2361
|
* @version SDK : 1.36.0 | ThoughtSpot : 10.8.0.cl
|
|
2339
2362
|
*/
|
|
2340
2363
|
CreateLiveboard = 'createLiveboard',
|
|
2364
|
+
/**
|
|
2365
|
+
* Emitted when a user creates a Model.
|
|
2366
|
+
* @version SDK : 1.38.0 | ThoughtSpot : 10.8.0.cl
|
|
2367
|
+
*/
|
|
2368
|
+
CreateModel = 'createModel',
|
|
2341
2369
|
}
|
|
2342
2370
|
|
|
2343
2371
|
/**
|
|
@@ -3358,19 +3386,20 @@ export enum HostEvent {
|
|
|
3358
3386
|
*/
|
|
3359
3387
|
UIPassthrough = 'UiPassthrough',
|
|
3360
3388
|
/**
|
|
3361
|
-
* Triggers the table
|
|
3389
|
+
* Triggers the table visualization re-render with the updated data.
|
|
3362
3390
|
* Includes the following properties:
|
|
3363
|
-
* @param - columnDataLite - an array of object containing
|
|
3364
|
-
*
|
|
3365
|
-
* For example, { columnDataLite: []}
|
|
3391
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
3392
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
3393
|
+
* payload.For example, { columnDataLite: []}`.
|
|
3394
|
+
*
|
|
3366
3395
|
* @example
|
|
3367
3396
|
* ```js
|
|
3368
3397
|
* searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
|
|
3369
|
-
*
|
|
3370
|
-
*
|
|
3371
|
-
*
|
|
3372
|
-
*
|
|
3373
|
-
*
|
|
3398
|
+
* console.log(payload);
|
|
3399
|
+
* const columnDataLite = payload.data.data.columnDataLite;
|
|
3400
|
+
* columnDataLite[0].dataValue[0]="new fob";
|
|
3401
|
+
* console.log('>>> new Data', columnDataLite);
|
|
3402
|
+
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
3374
3403
|
* })
|
|
3375
3404
|
* ```
|
|
3376
3405
|
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
@@ -4728,6 +4757,15 @@ export enum Action {
|
|
|
4728
4757
|
* @version SDK: 1.36.0 | ThoughtSpot Cloud: 10.6.0.cl
|
|
4729
4758
|
*/
|
|
4730
4759
|
EditTokens = 'editTokens',
|
|
4760
|
+
/**
|
|
4761
|
+
* Action ID for hiding rename option for Column rename
|
|
4762
|
+
* @example
|
|
4763
|
+
* ```js
|
|
4764
|
+
* hiddenAction: [Action.ColumnRename]
|
|
4765
|
+
* ```
|
|
4766
|
+
* @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
4767
|
+
*/
|
|
4768
|
+
ColumnRename = 'columnRename',
|
|
4731
4769
|
}
|
|
4732
4770
|
|
|
4733
4771
|
export interface AnswerServiceType {
|