@thoughtspot/visual-embed-sdk 1.44.3 → 1.44.4
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/README.md +1 -1
- package/cjs/package.json +1 -1
- package/cjs/src/embed/app.d.ts +44 -32
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +1 -1
- package/cjs/src/embed/ts-embed.d.ts +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +24 -6
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +145 -13
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/errors.d.ts +1 -0
- package/cjs/src/errors.d.ts.map +1 -1
- package/cjs/src/errors.js +1 -0
- package/cjs/src/errors.js.map +1 -1
- package/cjs/src/index.d.ts +2 -2
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +4 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/types.d.ts +100 -44
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +74 -15
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils.d.ts.map +1 -1
- package/cjs/src/utils.js +2 -1
- package/cjs/src/utils.js.map +1 -1
- package/dist/{index-D0n5LIka.js → index-C5FAW929.js} +1 -1
- package/dist/src/embed/app.d.ts +44 -32
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +1 -1
- package/dist/src/embed/ts-embed.d.ts +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/errors.d.ts +1 -0
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +100 -44
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +104 -25
- package/dist/tsembed-react.js +103 -24
- package/dist/tsembed.es.js +105 -26
- package/dist/tsembed.js +130 -51
- package/dist/visual-embed-sdk-react-full.d.ts +140 -70
- package/dist/visual-embed-sdk-react.d.ts +146 -78
- package/dist/visual-embed-sdk.d.ts +193 -80
- package/lib/package.json +1 -1
- package/lib/src/embed/app.d.ts +44 -32
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +1 -1
- package/lib/src/embed/ts-embed.d.ts +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +24 -6
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +145 -13
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/errors.d.ts +1 -0
- package/lib/src/errors.d.ts.map +1 -1
- package/lib/src/errors.js +1 -0
- package/lib/src/errors.js.map +1 -1
- package/lib/src/index.d.ts +2 -2
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +2 -2
- package/lib/src/index.js.map +1 -1
- package/lib/src/types.d.ts +100 -44
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +74 -15
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +2 -1
- package/lib/src/utils.js.map +1 -1
- package/package.json +1 -1
- package/src/embed/app.ts +44 -32
- package/src/embed/liveboard.ts +1 -1
- package/src/embed/ts-embed.spec.ts +190 -15
- package/src/embed/ts-embed.ts +24 -6
- package/src/errors.ts +1 -0
- package/src/index.ts +4 -0
- package/src/types.ts +100 -43
- package/src/utils.ts +2 -1
|
@@ -1056,56 +1056,70 @@ export declare enum AuthType {
|
|
|
1056
1056
|
}
|
|
1057
1057
|
/**
|
|
1058
1058
|
*
|
|
1059
|
-
* This
|
|
1060
|
-
* To access the updated modular homepage,
|
|
1061
|
-
* set `modularHomeExperience` to `true`
|
|
1062
|
-
* (available as Early Access feature in 9.12.5.cl).
|
|
1059
|
+
* **Note**: This attribute is not supported in the classic (V1) homepage experience.
|
|
1063
1060
|
*
|
|
1064
1061
|
*/
|
|
1065
1062
|
export declare enum HomeLeftNavItem {
|
|
1066
1063
|
/**
|
|
1064
|
+
* The *Search data* option in
|
|
1065
|
+
* the *Insights* left navigation panel.
|
|
1067
1066
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1068
1067
|
*/
|
|
1069
1068
|
SearchData = "search-data",
|
|
1070
1069
|
/**
|
|
1070
|
+
* The *Home* menu option in
|
|
1071
|
+
* the *Insights* left navigation panel.
|
|
1071
1072
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1072
1073
|
*/
|
|
1073
1074
|
Home = "insights-home",
|
|
1074
1075
|
/**
|
|
1076
|
+
* The *Liveboards* menu option in
|
|
1077
|
+
* the *Insights* left navigation panel.
|
|
1075
1078
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1076
1079
|
*/
|
|
1077
1080
|
Liveboards = "liveboards",
|
|
1078
1081
|
/**
|
|
1082
|
+
* The *Answers* menu option in
|
|
1083
|
+
* the *Insights* left navigation panel.
|
|
1079
1084
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1080
1085
|
*/
|
|
1081
1086
|
Answers = "answers",
|
|
1082
1087
|
/**
|
|
1088
|
+
* The *Monitor subscriptions* menu option in
|
|
1089
|
+
* the *Insights* left navigation panel.
|
|
1083
1090
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1084
1091
|
*/
|
|
1085
1092
|
MonitorSubscription = "monitor-alerts",
|
|
1086
1093
|
/**
|
|
1094
|
+
* The *SpotIQ analysis* menu option in
|
|
1095
|
+
* the *Insights* left navigation panel.
|
|
1087
1096
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1088
1097
|
*/
|
|
1089
1098
|
SpotIQAnalysis = "spotiq-analysis",
|
|
1090
1099
|
/**
|
|
1100
|
+
* The *Liveboard schedules* menu option in
|
|
1101
|
+
* the *Insights* left navigation panel.
|
|
1091
1102
|
* @version SDK: 1.34.0| ThoughtSpot: 10.3.0.cl
|
|
1092
1103
|
*/
|
|
1093
1104
|
LiveboardSchedules = "liveboard-schedules",
|
|
1094
1105
|
/**
|
|
1095
|
-
*
|
|
1096
|
-
*
|
|
1106
|
+
* The create option in the *Insights*
|
|
1107
|
+
* left navigation panel.
|
|
1108
|
+
* Available in the V3 navigation experience.
|
|
1097
1109
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
1098
1110
|
*/
|
|
1099
1111
|
Create = "create",
|
|
1100
1112
|
/**
|
|
1101
|
-
* Spotter option in the
|
|
1102
|
-
*
|
|
1113
|
+
* The *Spotter* menu option in the *Insights*
|
|
1114
|
+
* left navigation panel.
|
|
1115
|
+
* Available in the V3 navigation experience.
|
|
1103
1116
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
1104
1117
|
*/
|
|
1105
1118
|
Spotter = "spotter",
|
|
1106
1119
|
/**
|
|
1107
|
-
* Favorites
|
|
1108
|
-
*
|
|
1120
|
+
* The *Favorites* section in the *Insights*
|
|
1121
|
+
* left navigation panel.
|
|
1122
|
+
* Available in the V3 navigation experience.
|
|
1109
1123
|
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
1110
1124
|
*/
|
|
1111
1125
|
Favorites = "favorites"
|
|
@@ -1968,11 +1982,13 @@ export interface BaseViewConfig extends ApiInterceptFlags {
|
|
|
1968
1982
|
*/
|
|
1969
1983
|
export interface HomePageConfig {
|
|
1970
1984
|
/**
|
|
1971
|
-
* Hide list
|
|
1972
|
-
*
|
|
1985
|
+
* Hide columns on list pages such as
|
|
1986
|
+
* *Liveboards* and *Answers*.
|
|
1987
|
+
* For example: `hiddenListColumns = [ListPageColumns.Author]`
|
|
1973
1988
|
*
|
|
1974
|
-
* **Note**: This option is
|
|
1975
|
-
*
|
|
1989
|
+
* **Note**: This option is available only in full app embedding and requires importing the `ListPageColumns` enum.
|
|
1990
|
+
* Starting with version 10.14.0.cl, you can use this attribute to
|
|
1991
|
+
* hide the columns on all list pages in the *Insights* section.
|
|
1976
1992
|
*
|
|
1977
1993
|
* Supported embed types: `AppEmbed`
|
|
1978
1994
|
* @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
|
|
@@ -1988,13 +2004,11 @@ export interface HomePageConfig {
|
|
|
1988
2004
|
*/
|
|
1989
2005
|
hiddenListColumns?: ListPageColumns[];
|
|
1990
2006
|
/**
|
|
1991
|
-
*
|
|
1992
|
-
*
|
|
2007
|
+
* Control the visibility of home page modules.
|
|
2008
|
+
* To specify the modules, import the `HomepageModule` enum.
|
|
2009
|
+
* For example: `hiddenHomepageModules = [HomepageModule.MyLibrary]`
|
|
1993
2010
|
*
|
|
1994
|
-
* **Note**: This
|
|
1995
|
-
* To access the updated modular homepage, set
|
|
1996
|
-
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
1997
|
-
* To use it, you need to import `HomepageModule` enum.
|
|
2011
|
+
* **Note**: This attribute is not supported in the classic (v1) experience.
|
|
1998
2012
|
*
|
|
1999
2013
|
* Supported embed types: `AppEmbed`
|
|
2000
2014
|
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
@@ -2003,20 +2017,18 @@ export interface HomePageConfig {
|
|
|
2003
2017
|
* import { HomepageModule } from '@thoughtspot/visual-embed-sdk';
|
|
2004
2018
|
*
|
|
2005
2019
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
2006
|
-
* ... //
|
|
2020
|
+
* ... // V2/V3 navigation and home page experience attributes
|
|
2007
2021
|
* hiddenHomepageModules : [HomepageModule.Favorite,HomepageModule.Learning],
|
|
2022
|
+
* //...other embed view configuration attributes
|
|
2008
2023
|
* })
|
|
2009
2024
|
* ```
|
|
2010
2025
|
*/
|
|
2011
2026
|
hiddenHomepageModules?: HomepageModule[];
|
|
2012
2027
|
/**
|
|
2013
|
-
*
|
|
2014
|
-
*
|
|
2015
|
-
*
|
|
2016
|
-
* **Note**: This
|
|
2017
|
-
* To access the updated modular homepage, set
|
|
2018
|
-
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
2019
|
-
* To use it, you need to import `HomepageModule` enum.
|
|
2028
|
+
* Reorder home page modules.
|
|
2029
|
+
* To specify the modules, import the `HomepageModule` enum.
|
|
2030
|
+
* For example: `reorderedHomepageModules = [HomepageModule.MyLibrary, HomepageModule.Watchlist]`
|
|
2031
|
+
* **Note**: This attribute is not supported in the classic (v1) homepage.
|
|
2020
2032
|
*
|
|
2021
2033
|
* Supported embed types: `AppEmbed`
|
|
2022
2034
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
@@ -2025,16 +2037,19 @@ export interface HomePageConfig {
|
|
|
2025
2037
|
* import { HomepageModule } from '@thoughtspot/visual-embed-sdk';
|
|
2026
2038
|
*
|
|
2027
2039
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
2028
|
-
*
|
|
2040
|
+
* ...//V2/V3 navigation and home page experience attributes
|
|
2029
2041
|
* reorderedHomepageModules:[HomepageModule.Favorite,HomepageModule.MyLibrary],
|
|
2042
|
+
* //... other embed view configuration attributes
|
|
2030
2043
|
* })
|
|
2031
2044
|
* ```
|
|
2032
2045
|
*/
|
|
2033
2046
|
reorderedHomepageModules?: HomepageModule[];
|
|
2034
2047
|
/**
|
|
2035
|
-
*
|
|
2036
|
-
*
|
|
2037
|
-
* To
|
|
2048
|
+
* Controls the visibility of the menu items
|
|
2049
|
+
* on the home page left navigation panel.
|
|
2050
|
+
* To specify the menu items, import the `HomeLeftNavItem` enum.
|
|
2051
|
+
*
|
|
2052
|
+
* **Note**: This attribute is not supported in the classic (v1) homepage.
|
|
2038
2053
|
*
|
|
2039
2054
|
* Supported embed types: `AppEmbed`
|
|
2040
2055
|
* @example
|
|
@@ -2042,15 +2057,11 @@ export interface HomePageConfig {
|
|
|
2042
2057
|
* import { HomeLeftNavItem } from '@thoughtspot/visual-embed-sdk';
|
|
2043
2058
|
*
|
|
2044
2059
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
2045
|
-
*
|
|
2060
|
+
* //... V2/V3 experience attributes
|
|
2046
2061
|
* hiddenHomeLeftNavItems : [HomeLeftNavItem.Home,HomeLeftNavItem.Answers],
|
|
2062
|
+
* ... //other embed view configuration attributes
|
|
2047
2063
|
* })
|
|
2048
2064
|
* ```
|
|
2049
|
-
*
|
|
2050
|
-
* **Note**: This option does not apply to the classic homepage.
|
|
2051
|
-
* To access the updated modular homepage, set
|
|
2052
|
-
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
2053
|
-
* To use it, you need to import `HomeLeftNavItem` enum.
|
|
2054
2065
|
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
2055
2066
|
*/
|
|
2056
2067
|
hiddenHomeLeftNavItems?: HomeLeftNavItem[];
|
|
@@ -2568,10 +2579,11 @@ export declare enum RuntimeFilterOp {
|
|
|
2568
2579
|
NOT_IN = "NOT_IN"
|
|
2569
2580
|
}
|
|
2570
2581
|
/**
|
|
2571
|
-
* Home page
|
|
2572
|
-
*
|
|
2573
|
-
*
|
|
2574
|
-
*
|
|
2582
|
+
* Home page modules that can be hidden
|
|
2583
|
+
* via `hiddenHomepageModules` and reordered via
|
|
2584
|
+
* `reorderedHomepageModules`.
|
|
2585
|
+
*
|
|
2586
|
+
* **Note**: This option is not supported in the classic (v1) experience.
|
|
2575
2587
|
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
2576
2588
|
*/
|
|
2577
2589
|
export declare enum HomepageModule {
|
|
@@ -2584,7 +2596,7 @@ export declare enum HomepageModule {
|
|
|
2584
2596
|
*/
|
|
2585
2597
|
Watchlist = "WATCHLIST",
|
|
2586
2598
|
/**
|
|
2587
|
-
*
|
|
2599
|
+
* Favorite module
|
|
2588
2600
|
*/
|
|
2589
2601
|
Favorite = "FAVORITE",
|
|
2590
2602
|
/**
|
|
@@ -3772,6 +3784,28 @@ export declare enum EmbedEvent {
|
|
|
3772
3784
|
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
3773
3785
|
*/
|
|
3774
3786
|
PreviewSpotterData = "PreviewSpotterData",
|
|
3787
|
+
/**
|
|
3788
|
+
* Emitted when user opens up the Add to Coaching modal on any visualization in Spotter Embed.
|
|
3789
|
+
* @example
|
|
3790
|
+
* ```js
|
|
3791
|
+
* spotterEmbed.on(EmbedEvent.AddToCoaching, (payload) => {
|
|
3792
|
+
* console.log('payload', payload);
|
|
3793
|
+
* })
|
|
3794
|
+
*```
|
|
3795
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
3796
|
+
*/
|
|
3797
|
+
AddToCoaching = "addToCoaching",
|
|
3798
|
+
/**
|
|
3799
|
+
* Emitted when user opens up the data model instructions modal in Spotter embed.
|
|
3800
|
+
* @example
|
|
3801
|
+
* ```js
|
|
3802
|
+
* spotterEmbed.on(EmbedEvent.DataModelInstructions, (payload) => {
|
|
3803
|
+
* console.log('payload', payload);
|
|
3804
|
+
* })
|
|
3805
|
+
* ```
|
|
3806
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
3807
|
+
*/
|
|
3808
|
+
DataModelInstructions = "DataModelInstructions",
|
|
3775
3809
|
/**
|
|
3776
3810
|
* Emitted when the Spotter query is triggered in Spotter embed.
|
|
3777
3811
|
* @example
|
|
@@ -5195,6 +5229,26 @@ export declare enum HostEvent {
|
|
|
5195
5229
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
5196
5230
|
*/
|
|
5197
5231
|
PreviewSpotterData = "PreviewSpotterData",
|
|
5232
|
+
/**
|
|
5233
|
+
* Opens the Add to Coaching modal from a visualization in Spotter Embed.
|
|
5234
|
+
* @param - `vizId ` refers to the Visualization ID in Spotter embed and is required.
|
|
5235
|
+
* @example
|
|
5236
|
+
* ```js
|
|
5237
|
+
* spotterEmbed.trigger(HostEvent.AddToCoaching, { vizId: '730496d6-6903-4601-937e-2c691821af3c' });
|
|
5238
|
+
*
|
|
5239
|
+
*```
|
|
5240
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
5241
|
+
*/
|
|
5242
|
+
AddToCoaching = "addToCoaching",
|
|
5243
|
+
/**
|
|
5244
|
+
* Opens the data model instructions modal in Spotter Embed.
|
|
5245
|
+
* @example
|
|
5246
|
+
* ```js
|
|
5247
|
+
* spotterEmbed.trigger(HostEvent.DataModelInstructions);
|
|
5248
|
+
* ```
|
|
5249
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
5250
|
+
*/
|
|
5251
|
+
DataModelInstructions = "DataModelInstructions",
|
|
5198
5252
|
/**
|
|
5199
5253
|
* Resets the Spotter Embed Conversation.
|
|
5200
5254
|
* @example
|
|
@@ -6843,7 +6897,19 @@ export declare enum LogLevel {
|
|
|
6843
6897
|
*/
|
|
6844
6898
|
TRACE = "TRACE"
|
|
6845
6899
|
}
|
|
6846
|
-
|
|
6900
|
+
/**
|
|
6901
|
+
* Error types emitted by embedded components.
|
|
6902
|
+
*
|
|
6903
|
+
* These enum values categorize different types of errors that can occur during
|
|
6904
|
+
* the lifecycle of an embedded ThoughtSpot component. Use these values to implement
|
|
6905
|
+
* specific error handling logic based on the error category.
|
|
6906
|
+
*
|
|
6907
|
+
* @see {@link EmbedErrorDetailsEvent} - The error event object structure
|
|
6908
|
+
* @see {@link EmbedEvent.Error} - The event that emits these errors
|
|
6909
|
+
* @version SDK: 1.44.2 | ThoughtSpot: 26.2.0.cl
|
|
6910
|
+
* @group Error Handling
|
|
6911
|
+
*/
|
|
6912
|
+
export declare enum ErrorDetailsTypes {
|
|
6847
6913
|
/** API call failure */
|
|
6848
6914
|
API = "API",
|
|
6849
6915
|
/** General validation error */
|
|
@@ -6851,7 +6917,40 @@ declare enum ErrorDetailsTypes {
|
|
|
6851
6917
|
/** Network connectivity or request error */
|
|
6852
6918
|
NETWORK = "NETWORK"
|
|
6853
6919
|
}
|
|
6854
|
-
|
|
6920
|
+
/**
|
|
6921
|
+
* Specific error codes for embedded component errors.
|
|
6922
|
+
*
|
|
6923
|
+
* These codes provide granular identification of errors that occur in embedded components.
|
|
6924
|
+
* They are returned in the {@link EmbedErrorDetailsEvent.code} property and allow for
|
|
6925
|
+
* precise error handling and debugging.
|
|
6926
|
+
*
|
|
6927
|
+
* The codes are organized into categories:
|
|
6928
|
+
* - **Worksheet ID not found or does not exist**: Errors related to applying or updating filters
|
|
6929
|
+
* - **Liveboard ID missing**: Errors related to missing liveboard ID
|
|
6930
|
+
* - **Conflicting actions configuration**: Errors related to conflicting actions configuration
|
|
6931
|
+
* - **Conflicting tabs configuration**: Errors related to conflicting tabs configuration
|
|
6932
|
+
* - **Initialization error**: Errors related to initialization error
|
|
6933
|
+
* - **Network error**: Errors related to network error
|
|
6934
|
+
* - **Custom action validation**: Errors related to custom action validation
|
|
6935
|
+
* - **Login failed**: Errors related to login failed
|
|
6936
|
+
* - **Render not called**: Errors related to render not called
|
|
6937
|
+
* - **Host event type undefined or invalid**: Errors related to host event type undefined or invalid
|
|
6938
|
+
*
|
|
6939
|
+
* @version SDK: 1.44.2 | ThoughtSpot: 26.2.0.cl
|
|
6940
|
+
* @group Error Handling
|
|
6941
|
+
* @see {@link EmbedErrorDetailsEvent} - The error event object that includes these codes
|
|
6942
|
+
* @see {@link ErrorDetailsTypes} - General error type categories
|
|
6943
|
+
*
|
|
6944
|
+
* @example
|
|
6945
|
+
* Handle specific error codes
|
|
6946
|
+
*
|
|
6947
|
+
* embed.on(EmbedEvent.Error, (error) => {
|
|
6948
|
+
* if (error.code === EmbedErrorCodes.WORKSHEET_ID_NOT_FOUND) {
|
|
6949
|
+
* console.error('Worksheet ID not found:', error.message);
|
|
6950
|
+
* }
|
|
6951
|
+
* });
|
|
6952
|
+
* */
|
|
6953
|
+
export declare enum EmbedErrorCodes {
|
|
6855
6954
|
/** Worksheet ID not found or does not exist */
|
|
6856
6955
|
WORKSHEET_ID_NOT_FOUND = "WORKSHEET_ID_NOT_FOUND",
|
|
6857
6956
|
/** Required Liveboard ID is missing from configuration */
|
|
@@ -6873,7 +6972,9 @@ declare enum EmbedErrorCodes {
|
|
|
6873
6972
|
/** Host event type is undefined or invalid */
|
|
6874
6973
|
HOST_EVENT_TYPE_UNDEFINED = "HOST_EVENT_TYPE_UNDEFINED",
|
|
6875
6974
|
/** Error parsing api intercept body */
|
|
6876
|
-
PARSING_API_INTERCEPT_BODY_ERROR = "PARSING_API_INTERCEPT_BODY_ERROR"
|
|
6975
|
+
PARSING_API_INTERCEPT_BODY_ERROR = "PARSING_API_INTERCEPT_BODY_ERROR",
|
|
6976
|
+
/** Failed to update embed parameters during pre-render */
|
|
6977
|
+
UPDATE_PARAMS_FAILED = "UPDATE_PARAMS_FAILED"
|
|
6877
6978
|
}
|
|
6878
6979
|
/**
|
|
6879
6980
|
* Error event object emitted when an error occurs in an embedded component.
|
|
@@ -7296,7 +7397,7 @@ declare class TsEmbed {
|
|
|
7296
7397
|
* @param query
|
|
7297
7398
|
*/
|
|
7298
7399
|
protected getEmbedBasePath(query: string): string;
|
|
7299
|
-
protected getUpdateEmbedParamsObject(): Record<any, any
|
|
7400
|
+
protected getUpdateEmbedParamsObject(): Promise<Record<any, any>>;
|
|
7300
7401
|
/**
|
|
7301
7402
|
* Common query params set for all the embed modes.
|
|
7302
7403
|
* @param queryParams
|
|
@@ -7724,14 +7825,14 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
7724
7825
|
*/
|
|
7725
7826
|
showPrimaryNavbar?: boolean;
|
|
7726
7827
|
/**
|
|
7727
|
-
* Control the visibility of the left navigation
|
|
7728
|
-
*
|
|
7729
|
-
*
|
|
7730
|
-
*
|
|
7828
|
+
* Control the visibility of the left navigation panel on the home page
|
|
7829
|
+
* in the V2 and V3 navigation and home page experience.
|
|
7830
|
+
* If `showPrimaryNavbar` is true, that is, if the Global and Homepage
|
|
7831
|
+
* navigation bars are visible, this flag will only hide the left navigation bar
|
|
7832
|
+
* on the home page.
|
|
7833
|
+
* The `showPrimaryNavbar` flag takes precedence over the `hideHomepageLeftNav`.
|
|
7731
7834
|
*
|
|
7732
|
-
* **Note**: This
|
|
7733
|
-
* To access the updated modular homepage, set
|
|
7734
|
-
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
7835
|
+
* **Note**: This attribute is not supported in the classic (V1) experience.
|
|
7735
7836
|
*
|
|
7736
7837
|
* Supported embed types: `AppEmbed`
|
|
7737
7838
|
* @default false
|
|
@@ -7746,8 +7847,10 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
7746
7847
|
*/
|
|
7747
7848
|
hideHomepageLeftNav?: boolean;
|
|
7748
7849
|
/**
|
|
7749
|
-
* Control the visibility of the help (?) and profile
|
|
7750
|
-
*
|
|
7850
|
+
* Control the visibility of the help (?) and profile
|
|
7851
|
+
* buttons on the top navigation bar.
|
|
7852
|
+
* These buttons are visible if the
|
|
7853
|
+
* navigation bar is not hidden via `showPrimaryNavbar`.
|
|
7751
7854
|
*
|
|
7752
7855
|
* Supported embed types: `AppEmbed`
|
|
7753
7856
|
* @default false
|
|
@@ -7764,7 +7867,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
7764
7867
|
/**
|
|
7765
7868
|
* @version SDK: 1.36.3 | ThoughtSpot: 10.1.0.cl
|
|
7766
7869
|
* @default true
|
|
7767
|
-
* Whether the help menu in the top
|
|
7870
|
+
* Whether the help menu in the top navigation bar should be served
|
|
7768
7871
|
* from Pendo or ThoughtSpot's internal help items.
|
|
7769
7872
|
*
|
|
7770
7873
|
* Supported embed types: `AppEmbed`
|
|
@@ -7778,8 +7881,8 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
7778
7881
|
*/
|
|
7779
7882
|
enablePendoHelp?: boolean;
|
|
7780
7883
|
/**
|
|
7781
|
-
* Control the visibility of the hamburger icon on
|
|
7782
|
-
*
|
|
7884
|
+
* Control the visibility of the hamburger icon on
|
|
7885
|
+
* the top navigation bar in the V3 navigation experience.
|
|
7783
7886
|
*
|
|
7784
7887
|
* Supported embed types: `AppEmbed`
|
|
7785
7888
|
* @default false
|
|
@@ -7794,8 +7897,12 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
7794
7897
|
*/
|
|
7795
7898
|
hideHamburger?: boolean;
|
|
7796
7899
|
/**
|
|
7797
|
-
* Control the visibility of the
|
|
7798
|
-
*
|
|
7900
|
+
* Control the visibility of the object search
|
|
7901
|
+
* on the top navigation bar in the
|
|
7902
|
+
* V2 and V3 navigation experience.
|
|
7903
|
+
*
|
|
7904
|
+
* **Note**: This attribute is not supported
|
|
7905
|
+
* in the classic (V1) experience.
|
|
7799
7906
|
*
|
|
7800
7907
|
* Supported embed types: `AppEmbed`
|
|
7801
7908
|
* @default true
|
|
@@ -7810,8 +7917,11 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
7810
7917
|
*/
|
|
7811
7918
|
hideObjectSearch?: boolean;
|
|
7812
7919
|
/**
|
|
7813
|
-
* Control the visibility of the notification
|
|
7814
|
-
*
|
|
7920
|
+
* Control the visibility of the notification icon
|
|
7921
|
+
* on the top navigation bar in V3 navigation experience.
|
|
7922
|
+
*
|
|
7923
|
+
* **Note**: This attribute is not supported
|
|
7924
|
+
* in the classic (V1) and V2 experience modes.
|
|
7815
7925
|
*
|
|
7816
7926
|
* Supported embed types: `AppEmbed`
|
|
7817
7927
|
* @default true
|
|
@@ -7826,12 +7936,14 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
7826
7936
|
*/
|
|
7827
7937
|
hideNotification?: boolean;
|
|
7828
7938
|
/**
|
|
7829
|
-
* Control the visibility of the application
|
|
7830
|
-
*
|
|
7939
|
+
* Control the visibility of the application selection menu
|
|
7940
|
+
* in the top navigation bar in the V2 experience.
|
|
7941
|
+
* In the V3 experience, it shows or hides application selection
|
|
7942
|
+
* icons on the left navigation panel.
|
|
7943
|
+
* By default, the application selection menu and icons are
|
|
7944
|
+
* shown in the UI
|
|
7831
7945
|
*
|
|
7832
|
-
* **Note**: This
|
|
7833
|
-
* To access the updated modular homepage, set
|
|
7834
|
-
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
7946
|
+
* **Note**: This attribute is not supported in the classic (V1) experience.
|
|
7835
7947
|
*
|
|
7836
7948
|
* Supported embed types: `AppEmbed`
|
|
7837
7949
|
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
@@ -7849,9 +7961,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
7849
7961
|
* Control the visibility of the Org switcher button on the nav-bar.
|
|
7850
7962
|
* By default, the Org switcher button is shown.
|
|
7851
7963
|
*
|
|
7852
|
-
* **Note**: This
|
|
7853
|
-
* To access the updated modular homepage, set
|
|
7854
|
-
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
7964
|
+
* **Note**: This attribute is not supported in the classic (V1) experience.
|
|
7855
7965
|
*
|
|
7856
7966
|
* Supported embed types: `AppEmbed`
|
|
7857
7967
|
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
@@ -8004,8 +8114,9 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
8004
8114
|
*/
|
|
8005
8115
|
fullHeight?: boolean;
|
|
8006
8116
|
/**
|
|
8007
|
-
*
|
|
8008
|
-
*
|
|
8117
|
+
* Enables the V2 navigation and modular home page experience.
|
|
8118
|
+
* For more information,
|
|
8119
|
+
* see link:https://developers.thoughtspot.com/docs/full-app-customize[full app embed documentation].
|
|
8009
8120
|
* Supported embed types: `AppEmbed`
|
|
8010
8121
|
* @default false
|
|
8011
8122
|
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
|
|
@@ -8019,18 +8130,20 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
8019
8130
|
*/
|
|
8020
8131
|
modularHomeExperience?: boolean;
|
|
8021
8132
|
/**
|
|
8022
|
-
*
|
|
8023
|
-
*
|
|
8133
|
+
* Configures the V3 navigation and home page experience.
|
|
8134
|
+
* For more information, see
|
|
8135
|
+
* link:https://developers.thoughtspot.com/docs/full-app-customize[full app embed documentation].
|
|
8024
8136
|
* Supported embed types: `AppEmbed`
|
|
8025
8137
|
* @default false
|
|
8026
8138
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
8027
8139
|
* @example
|
|
8028
8140
|
* ```js
|
|
8029
8141
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
8030
|
-
*
|
|
8142
|
+
* // Enable V3 navigation and home page experience
|
|
8031
8143
|
* discoveryExperience : {
|
|
8032
|
-
* primaryNavbarVersion: PrimaryNavbarVersion.Sliding,
|
|
8033
|
-
* homePage: HomePage.
|
|
8144
|
+
* primaryNavbarVersion: PrimaryNavbarVersion.Sliding, // Enable V3 navigation
|
|
8145
|
+
* homePage: HomePage.ModularWithStylingChanges, // Enable V3 modular home page
|
|
8146
|
+
* ... // other embed view config
|
|
8034
8147
|
* },
|
|
8035
8148
|
* })
|
|
8036
8149
|
* ```
|
|
@@ -8178,7 +8291,7 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
8178
8291
|
* Setting this height helps resolve issues with empty Apps and
|
|
8179
8292
|
* other screens navigable from an App.
|
|
8180
8293
|
*
|
|
8181
|
-
* @version SDK: 1.44.2 | ThoughtSpot:
|
|
8294
|
+
* @version SDK: 1.44.2 | ThoughtSpot: 10.15.0.cl
|
|
8182
8295
|
* @default 500
|
|
8183
8296
|
* @example
|
|
8184
8297
|
* ```js
|
|
@@ -8540,7 +8653,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, SearchLiveboardComm
|
|
|
8540
8653
|
* Setting this height helps resolve issues with empty Liveboards and
|
|
8541
8654
|
* other screens navigable from a Liveboard.
|
|
8542
8655
|
*
|
|
8543
|
-
* @version SDK: 1.44.2 | ThoughtSpot:
|
|
8656
|
+
* @version SDK: 1.44.2 | ThoughtSpot: 10.15.0.cl
|
|
8544
8657
|
* @default 500
|
|
8545
8658
|
* @example
|
|
8546
8659
|
* ```js
|