@thoughtspot/visual-embed-sdk 1.36.9 → 1.37.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.
@@ -1107,8 +1107,8 @@ export interface ViewConfig {
1107
1107
  * Hide list page columns
1108
1108
  * For example: hiddenListColumns = [ListPageColumns.Author]
1109
1109
  *
1110
- * **Note**: This option is appplicable only in full app embedding.
1111
- * @version SDK: 1.38.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
1110
+ * **Note**: This option is available only in full app embedding.
1111
+ * @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
1112
1112
  * @example
1113
1113
  * ```js
1114
1114
  * const embed = new AppEmbed('#tsEmbed', {
@@ -1265,8 +1265,8 @@ export declare enum HomepageModule {
1265
1265
  }
1266
1266
  /**
1267
1267
  * List page columns that can be hidden.
1268
- * **Note**: This option is applicable only in full app embedding.
1269
- * @version SDK: 1.38.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
1268
+ * **Note**: This option is applicable to full app embedding only.
1269
+ * @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
1270
1270
  */
1271
1271
  export declare enum ListPageColumns {
1272
1272
  /**
@@ -2349,7 +2349,7 @@ export declare enum EmbedEvent {
2349
2349
  * searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
2350
2350
  * })
2351
2351
  * ```
2352
- * @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl
2352
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
2353
2353
  */
2354
2354
  TableVizRendered = "TableVizRendered",
2355
2355
  /**
@@ -2362,12 +2362,12 @@ export declare enum EmbedEvent {
2362
2362
  * console.log('payload', payload);
2363
2363
  * })
2364
2364
  *```
2365
- * @version SDK : 1.38.0 | ThoughtSpot : 10.8.0.cl
2365
+ * @version SDK : 1.37.0 | ThoughtSpot : 10.8.0.cl
2366
2366
  */
2367
2367
  CreateLiveboard = "createLiveboard",
2368
2368
  /**
2369
2369
  * Emitted when a user creates a Model.
2370
- * @version SDK : 1.38.0 | ThoughtSpot : 10.8.0.cl
2370
+ * @version SDK : 1.37.0 | ThoughtSpot : 10.8.0.cl
2371
2371
  */
2372
2372
  CreateModel = "createModel"
2373
2373
  }
@@ -2809,7 +2809,7 @@ export declare enum HostEvent {
2809
2809
  * ```js
2810
2810
  * liveboardEmbed.trigger(HostEvent.Remove)
2811
2811
  * ```
2812
- * @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
2812
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
2813
2813
  */
2814
2814
  Remove = "delete",
2815
2815
  /**
@@ -3404,7 +3404,7 @@ export declare enum HostEvent {
3404
3404
  * searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
3405
3405
  * })
3406
3406
  * ```
3407
- * @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl
3407
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
3408
3408
  */
3409
3409
  TransformTableVizData = "TransformTableVizData"
3410
3410
  }
@@ -4739,7 +4739,7 @@ export declare enum Action {
4739
4739
  * ```js
4740
4740
  * hiddenAction: [Action.ColumnRename]
4741
4741
  * ```
4742
- * @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
4742
+ * @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
4743
4743
  */
4744
4744
  ColumnRename = "columnRename",
4745
4745
  /**
@@ -4749,7 +4749,7 @@ export declare enum Action {
4749
4749
  * ```js
4750
4750
  * hiddenAction: [Action.CoverAndFilterOptionInPDF]
4751
4751
  * ```
4752
- * @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
4752
+ * @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
4753
4753
  */
4754
4754
  CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF"
4755
4755
  }
package/lib/src/types.js CHANGED
@@ -307,8 +307,8 @@ export var HomepageModule;
307
307
  })(HomepageModule || (HomepageModule = {}));
308
308
  /**
309
309
  * List page columns that can be hidden.
310
- * **Note**: This option is applicable only in full app embedding.
311
- * @version SDK: 1.38.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
310
+ * **Note**: This option is applicable to full app embedding only.
311
+ * @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
312
312
  */
313
313
  // eslint-disable-next-line no-shadow
314
314
  export var ListPageColumns;
@@ -1361,7 +1361,7 @@ export var EmbedEvent;
1361
1361
  * searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
1362
1362
  * })
1363
1363
  * ```
1364
- * @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl
1364
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
1365
1365
  */
1366
1366
  EmbedEvent["TableVizRendered"] = "TableVizRendered";
1367
1367
  /**
@@ -1374,12 +1374,12 @@ export var EmbedEvent;
1374
1374
  * console.log('payload', payload);
1375
1375
  * })
1376
1376
  *```
1377
- * @version SDK : 1.38.0 | ThoughtSpot : 10.8.0.cl
1377
+ * @version SDK : 1.37.0 | ThoughtSpot : 10.8.0.cl
1378
1378
  */
1379
1379
  EmbedEvent["CreateLiveboard"] = "createLiveboard";
1380
1380
  /**
1381
1381
  * Emitted when a user creates a Model.
1382
- * @version SDK : 1.38.0 | ThoughtSpot : 10.8.0.cl
1382
+ * @version SDK : 1.37.0 | ThoughtSpot : 10.8.0.cl
1383
1383
  */
1384
1384
  EmbedEvent["CreateModel"] = "createModel";
1385
1385
  })(EmbedEvent || (EmbedEvent = {}));
@@ -1823,7 +1823,7 @@ export var HostEvent;
1823
1823
  * ```js
1824
1824
  * liveboardEmbed.trigger(HostEvent.Remove)
1825
1825
  * ```
1826
- * @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
1826
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
1827
1827
  */
1828
1828
  HostEvent["Remove"] = "delete";
1829
1829
  /**
@@ -2418,7 +2418,7 @@ export var HostEvent;
2418
2418
  * searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
2419
2419
  * })
2420
2420
  * ```
2421
- * @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl
2421
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
2422
2422
  */
2423
2423
  HostEvent["TransformTableVizData"] = "TransformTableVizData";
2424
2424
  })(HostEvent || (HostEvent = {}));
@@ -3765,7 +3765,7 @@ export var Action;
3765
3765
  * ```js
3766
3766
  * hiddenAction: [Action.ColumnRename]
3767
3767
  * ```
3768
- * @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
3768
+ * @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
3769
3769
  */
3770
3770
  Action["ColumnRename"] = "columnRename";
3771
3771
  /**
@@ -3775,7 +3775,7 @@ export var Action;
3775
3775
  * ```js
3776
3776
  * hiddenAction: [Action.CoverAndFilterOptionInPDF]
3777
3777
  * ```
3778
- * @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
3778
+ * @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
3779
3779
  */
3780
3780
  Action["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
3781
3781
  })(Action || (Action = {}));
@@ -1062,10 +1062,10 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
1062
1062
  dataSourceId?: string;
1063
1063
  /**
1064
1064
  * This flag is for show/hide checkboxes for include or exclude
1065
- * cover and filter pages in the Liveboard PDF
1065
+ * cover page and filters in the Liveboard PDF.
1066
1066
  * @type {boolean}
1067
1067
  * @default true
1068
- * @version SDK: 1.38.0 | ThoughtSpot:10.8.0.cl
1068
+ * @version SDK: 1.37.0 | ThoughtSpot:10.8.0.cl
1069
1069
  * @example
1070
1070
  * ```js
1071
1071
  * const embed = new LiveboardEmbed('#embed-container', {
@@ -3113,8 +3113,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3113
3113
  * Hide list page columns
3114
3114
  * For example: hiddenListColumns = [ListPageColumns.Author]
3115
3115
  *
3116
- * **Note**: This option is appplicable only in full app embedding.
3117
- * @version SDK: 1.38.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
3116
+ * **Note**: This option is available only in full app embedding.
3117
+ * @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
3118
3118
  * @example
3119
3119
  * ```js
3120
3120
  * const embed = new AppEmbed('#tsEmbed', {
@@ -3271,8 +3271,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3271
3271
  }
3272
3272
  /**
3273
3273
  * List page columns that can be hidden.
3274
- * **Note**: This option is applicable only in full app embedding.
3275
- * @version SDK: 1.38.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
3274
+ * **Note**: This option is applicable to full app embedding only.
3275
+ * @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
3276
3276
  */
3277
3277
  export enum ListPageColumns {
3278
3278
  /**
@@ -4355,7 +4355,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
4355
4355
  * searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
4356
4356
  * })
4357
4357
  * ```
4358
- * @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl
4358
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
4359
4359
  */
4360
4360
  TableVizRendered = "TableVizRendered",
4361
4361
  /**
@@ -4368,12 +4368,12 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
4368
4368
  * console.log('payload', payload);
4369
4369
  * })
4370
4370
  *```
4371
- * @version SDK : 1.38.0 | ThoughtSpot : 10.8.0.cl
4371
+ * @version SDK : 1.37.0 | ThoughtSpot : 10.8.0.cl
4372
4372
  */
4373
4373
  CreateLiveboard = "createLiveboard",
4374
4374
  /**
4375
4375
  * Emitted when a user creates a Model.
4376
- * @version SDK : 1.38.0 | ThoughtSpot : 10.8.0.cl
4376
+ * @version SDK : 1.37.0 | ThoughtSpot : 10.8.0.cl
4377
4377
  */
4378
4378
  CreateModel = "createModel"
4379
4379
  }
@@ -4815,7 +4815,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
4815
4815
  * ```js
4816
4816
  * liveboardEmbed.trigger(HostEvent.Remove)
4817
4817
  * ```
4818
- * @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
4818
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
4819
4819
  */
4820
4820
  Remove = "delete",
4821
4821
  /**
@@ -5410,7 +5410,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5410
5410
  * searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
5411
5411
  * })
5412
5412
  * ```
5413
- * @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl
5413
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
5414
5414
  */
5415
5415
  TransformTableVizData = "TransformTableVizData"
5416
5416
  }
@@ -6745,7 +6745,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
6745
6745
  * ```js
6746
6746
  * hiddenAction: [Action.ColumnRename]
6747
6747
  * ```
6748
- * @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
6748
+ * @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
6749
6749
  */
6750
6750
  ColumnRename = "columnRename",
6751
6751
  /**
@@ -6755,7 +6755,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
6755
6755
  * ```js
6756
6756
  * hiddenAction: [Action.CoverAndFilterOptionInPDF]
6757
6757
  * ```
6758
- * @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
6758
+ * @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
6759
6759
  */
6760
6760
  CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF"
6761
6761
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.36.9",
3
+ "version": "1.37.0",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -394,10 +394,10 @@ export interface LiveboardViewConfig
394
394
 
395
395
  /**
396
396
  * This flag is for show/hide checkboxes for include or exclude
397
- * cover and filter pages in the Liveboard PDF
397
+ * cover page and filters in the Liveboard PDF.
398
398
  * @type {boolean}
399
399
  * @default true
400
- * @version SDK: 1.38.0 | ThoughtSpot:10.8.0.cl
400
+ * @version SDK: 1.37.0 | ThoughtSpot:10.8.0.cl
401
401
  * @example
402
402
  * ```js
403
403
  * const embed = new LiveboardEmbed('#embed-container', {
package/src/index.ts CHANGED
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  /**
2
4
  * Copyright (c) 2023
3
5
  *
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import React, { useRef } from 'react';
2
4
  import useDeepCompareEffect from 'use-deep-compare-effect';
3
5
  import { AuthEventEmitter } from '../auth';
package/src/types.ts CHANGED
@@ -1138,8 +1138,8 @@ export interface ViewConfig {
1138
1138
  * Hide list page columns
1139
1139
  * For example: hiddenListColumns = [ListPageColumns.Author]
1140
1140
  *
1141
- * **Note**: This option is appplicable only in full app embedding.
1142
- * @version SDK: 1.38.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
1141
+ * **Note**: This option is available only in full app embedding.
1142
+ * @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
1143
1143
  * @example
1144
1144
  * ```js
1145
1145
  * const embed = new AppEmbed('#tsEmbed', {
@@ -1311,8 +1311,8 @@ export enum HomepageModule {
1311
1311
 
1312
1312
  /**
1313
1313
  * List page columns that can be hidden.
1314
- * **Note**: This option is applicable only in full app embedding.
1315
- * @version SDK: 1.38.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
1314
+ * **Note**: This option is applicable to full app embedding only.
1315
+ * @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
1316
1316
  */
1317
1317
  // eslint-disable-next-line no-shadow
1318
1318
  export enum ListPageColumns {
@@ -2401,7 +2401,7 @@ export enum EmbedEvent {
2401
2401
  * searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
2402
2402
  * })
2403
2403
  * ```
2404
- * @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl
2404
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
2405
2405
  */
2406
2406
  TableVizRendered = 'TableVizRendered',
2407
2407
  /**
@@ -2414,12 +2414,12 @@ export enum EmbedEvent {
2414
2414
  * console.log('payload', payload);
2415
2415
  * })
2416
2416
  *```
2417
- * @version SDK : 1.38.0 | ThoughtSpot : 10.8.0.cl
2417
+ * @version SDK : 1.37.0 | ThoughtSpot : 10.8.0.cl
2418
2418
  */
2419
2419
  CreateLiveboard = 'createLiveboard',
2420
2420
  /**
2421
2421
  * Emitted when a user creates a Model.
2422
- * @version SDK : 1.38.0 | ThoughtSpot : 10.8.0.cl
2422
+ * @version SDK : 1.37.0 | ThoughtSpot : 10.8.0.cl
2423
2423
  */
2424
2424
  CreateModel = 'createModel',
2425
2425
  }
@@ -2863,7 +2863,7 @@ export enum HostEvent {
2863
2863
  * ```js
2864
2864
  * liveboardEmbed.trigger(HostEvent.Remove)
2865
2865
  * ```
2866
- * @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
2866
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
2867
2867
  */
2868
2868
  Remove = 'delete',
2869
2869
  /**
@@ -3458,7 +3458,7 @@ export enum HostEvent {
3458
3458
  * searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
3459
3459
  * })
3460
3460
  * ```
3461
- * @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl
3461
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
3462
3462
  */
3463
3463
  TransformTableVizData = 'TransformTableVizData',
3464
3464
  }
@@ -4822,7 +4822,7 @@ export enum Action {
4822
4822
  * ```js
4823
4823
  * hiddenAction: [Action.ColumnRename]
4824
4824
  * ```
4825
- * @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
4825
+ * @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
4826
4826
  */
4827
4827
  ColumnRename = 'columnRename',
4828
4828
  /**
@@ -4832,7 +4832,7 @@ export enum Action {
4832
4832
  * ```js
4833
4833
  * hiddenAction: [Action.CoverAndFilterOptionInPDF]
4834
4834
  * ```
4835
- * @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
4835
+ * @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
4836
4836
  */
4837
4837
  CoverAndFilterOptionInPDF = 'coverAndFilterOptionInPDF',
4838
4838
  }