@thoughtspot/visual-embed-sdk 1.35.11 → 1.35.13
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/cjs/package.json +1 -1
- package/cjs/src/auth.d.ts +2 -1
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +3 -1
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +2 -0
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +44 -0
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +10 -1
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +36 -0
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/hostEventClient/contracts.d.ts +3 -3
- package/cjs/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.js +6 -1
- package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +5 -4
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +11 -4
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +1 -1
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/search-bar.d.ts.map +1 -1
- package/cjs/src/embed/search-bar.js +4 -2
- package/cjs/src/embed/search-bar.js.map +1 -1
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +4 -2
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js +56 -3
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +6 -0
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +43 -15
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +193 -81
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/types.d.ts +85 -20
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +80 -9
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/processData.d.ts.map +1 -1
- package/cjs/src/utils/processData.js +9 -2
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils/processData.spec.js +51 -0
- package/cjs/src/utils/processData.spec.js.map +1 -1
- package/dist/index-B3hd6DTM.js +7370 -0
- package/dist/index-D-9WUCUl.js +7370 -0
- package/dist/src/auth.d.ts +2 -1
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +44 -0
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/hostEventClient/contracts.d.ts +3 -3
- package/dist/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/dist/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +5 -4
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/search-bar.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +6 -0
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/dist/src/types.d.ts +85 -20
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/processData.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +175 -40
- package/dist/tsembed-react.js +174 -39
- package/dist/tsembed.es.js +175 -40
- package/dist/tsembed.js +174 -39
- package/dist/visual-embed-sdk-react-full.d.ts +138 -27
- package/dist/visual-embed-sdk-react.d.ts +138 -27
- package/dist/visual-embed-sdk.d.ts +138 -27
- package/lib/package.json +1 -1
- package/lib/src/auth.d.ts +2 -1
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +3 -1
- package/lib/src/auth.js.map +1 -1
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +2 -0
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +44 -0
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +10 -1
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +36 -0
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/hostEventClient/contracts.d.ts +3 -3
- package/lib/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.js +6 -1
- package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +5 -4
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +11 -4
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +1 -1
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts.map +1 -1
- package/lib/src/embed/search-bar.js +4 -2
- package/lib/src/embed/search-bar.js.map +1 -1
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +4 -2
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +56 -3
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +6 -0
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +43 -15
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +195 -83
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/types.d.ts +85 -20
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +80 -9
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/processData.d.ts.map +1 -1
- package/lib/src/utils/processData.js +9 -2
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/processData.spec.js +51 -0
- package/lib/src/utils/processData.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +139 -28
- package/package.json +1 -1
- package/src/auth.ts +3 -1
- package/src/embed/app.ts +2 -0
- package/src/embed/conversation.spec.ts +52 -3
- package/src/embed/conversation.ts +60 -1
- package/src/embed/hostEventClient/contracts.ts +3 -3
- package/src/embed/hostEventClient/host-event-client.ts +7 -1
- package/src/embed/liveboard.spec.ts +1 -1
- package/src/embed/liveboard.ts +18 -12
- package/src/embed/search-bar.tsx +6 -4
- package/src/embed/search.spec.ts +71 -3
- package/src/embed/search.ts +6 -5
- package/src/embed/ts-embed.spec.ts +234 -102
- package/src/embed/ts-embed.ts +50 -34
- package/src/types.ts +89 -16
- package/src/utils/processData.spec.ts +63 -0
- package/src/utils/processData.ts +12 -2
package/dist/tsembed.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.35.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.35.13 */
|
|
2
2
|
function _mergeNamespaces(n, m) {
|
|
3
3
|
m.forEach(function (e) {
|
|
4
4
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -923,6 +923,11 @@ var EmbedEvent;
|
|
|
923
923
|
* @hidden
|
|
924
924
|
*/
|
|
925
925
|
EmbedEvent["AuthFailure"] = "ThoughtspotAuthFailure";
|
|
926
|
+
/**
|
|
927
|
+
* ThoughtSpot failed to re validate the auth session.
|
|
928
|
+
* @hidden
|
|
929
|
+
*/
|
|
930
|
+
EmbedEvent["IdleSessionTimeout"] = "IdleSessionTimeout";
|
|
926
931
|
/**
|
|
927
932
|
* ThoughtSpot failed to validate the auth session.
|
|
928
933
|
* @hidden
|
|
@@ -1629,6 +1634,36 @@ var EmbedEvent;
|
|
|
1629
1634
|
* @version SDK : 1.29.0 | ThoughtSpot : 10.3.0.cl
|
|
1630
1635
|
*/
|
|
1631
1636
|
EmbedEvent["ParameterChanged"] = "parameterChanged";
|
|
1637
|
+
/**
|
|
1638
|
+
* Emitted when the table viz renders.
|
|
1639
|
+
* You can use this event as a hook to trigger
|
|
1640
|
+
* other events on the rendered table viz data.
|
|
1641
|
+
* @example
|
|
1642
|
+
* ```js
|
|
1643
|
+
* searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
|
|
1644
|
+
* console.log(payload);
|
|
1645
|
+
* const columnDataLite = payload.data.data.columnDataLite;
|
|
1646
|
+
* columnDataLite[0].dataValue[0]="new fob";
|
|
1647
|
+
* console.log('>>> new Data', columnDataLite);
|
|
1648
|
+
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
1649
|
+
* })
|
|
1650
|
+
* ```
|
|
1651
|
+
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
1652
|
+
*/
|
|
1653
|
+
EmbedEvent["TableVizRendered"] = "TableVizRendered";
|
|
1654
|
+
/**
|
|
1655
|
+
* Emitted when the liveboard is created from pin modal or liveboard list page.
|
|
1656
|
+
* You can use this event as a hook to trigger
|
|
1657
|
+
* other events on liveboard creation.
|
|
1658
|
+
*
|
|
1659
|
+
* ```js
|
|
1660
|
+
* liveboardEmbed.on(EmbedEvent.CreateLiveboard, (payload) => {
|
|
1661
|
+
* console.log('payload', payload);
|
|
1662
|
+
* })
|
|
1663
|
+
*```
|
|
1664
|
+
* @version SDK : 1.36.0 | ThoughtSpot : 10.8.0.cl
|
|
1665
|
+
*/
|
|
1666
|
+
EmbedEvent["CreateLiveboard"] = "createLiveboard";
|
|
1632
1667
|
})(EmbedEvent || (EmbedEvent = {}));
|
|
1633
1668
|
/**
|
|
1634
1669
|
* Event types that can be triggered by the host application
|
|
@@ -2039,7 +2074,7 @@ var HostEvent;
|
|
|
2039
2074
|
* @param - an object with `vizId` as a key
|
|
2040
2075
|
* @example
|
|
2041
2076
|
* ```js
|
|
2042
|
-
* liveboardEmbed.trigger(HostEvent.CreateMonitor {
|
|
2077
|
+
* liveboardEmbed.trigger(HostEvent.CreateMonitor, {
|
|
2043
2078
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
2044
2079
|
* })
|
|
2045
2080
|
* ```
|
|
@@ -2572,6 +2607,25 @@ var HostEvent;
|
|
|
2572
2607
|
* @hidden
|
|
2573
2608
|
*/
|
|
2574
2609
|
HostEvent["UIPassthrough"] = "UiPassthrough";
|
|
2610
|
+
/**
|
|
2611
|
+
* Triggers the table viz rerender with the updated data.
|
|
2612
|
+
* Includes the following properties:
|
|
2613
|
+
* @param - columnDataLite - an array of object containing data
|
|
2614
|
+
* transformed from data picked from TableVizRendered event.
|
|
2615
|
+
* For example, { columnDataLite: []}
|
|
2616
|
+
* @example
|
|
2617
|
+
* ```js
|
|
2618
|
+
* searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
|
|
2619
|
+
* console.log(payload);
|
|
2620
|
+
* const columnDataLite = payload.data.data.columnDataLite;
|
|
2621
|
+
* columnDataLite[0].dataValue[0]="new fob";
|
|
2622
|
+
* console.log('>>> new Data', columnDataLite);
|
|
2623
|
+
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
2624
|
+
* })
|
|
2625
|
+
* ```
|
|
2626
|
+
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
2627
|
+
*/
|
|
2628
|
+
HostEvent["TransformTableVizData"] = "TransformTableVizData";
|
|
2575
2629
|
})(HostEvent || (HostEvent = {}));
|
|
2576
2630
|
/**
|
|
2577
2631
|
* The different visual modes that the data sources panel within
|
|
@@ -2616,6 +2670,7 @@ var Param;
|
|
|
2616
2670
|
Param["HideResult"] = "hideResult";
|
|
2617
2671
|
Param["UseLastSelectedDataSource"] = "useLastSelectedSources";
|
|
2618
2672
|
Param["Tag"] = "tag";
|
|
2673
|
+
Param["AutoLogin"] = "autoLogin";
|
|
2619
2674
|
Param["searchTokenString"] = "searchTokenString";
|
|
2620
2675
|
Param["executeSearch"] = "executeSearch";
|
|
2621
2676
|
Param["fullHeight"] = "isFullHeightPinboard";
|
|
@@ -2638,7 +2693,12 @@ var Param;
|
|
|
2638
2693
|
Param["AuthType"] = "authType";
|
|
2639
2694
|
Param["IconSpriteUrl"] = "iconSprite";
|
|
2640
2695
|
Param["cookieless"] = "cookieless";
|
|
2641
|
-
|
|
2696
|
+
// Deprecated: `isContextMenuEnabledOnLeftClick`
|
|
2697
|
+
// Introduced: `contextMenuEnabledOnWhichClick` with values: 'left',
|
|
2698
|
+
// 'right', or 'both'. This update only affects ThoughtSpot URL parameters
|
|
2699
|
+
// and does not impact existing workflows or use cases. Added support for
|
|
2700
|
+
// 'both' clicks in `contextMenuTrigger` configuration.
|
|
2701
|
+
Param["ContextMenuTrigger"] = "contextMenuEnabledOnWhichClick";
|
|
2642
2702
|
Param["LinkOverride"] = "linkOverride";
|
|
2643
2703
|
Param["blockNonEmbedFullAppAccess"] = "blockNonEmbedFullAppAccess";
|
|
2644
2704
|
Param["ShowInsertToSlide"] = "insertInToSlide";
|
|
@@ -2693,10 +2753,10 @@ var Param;
|
|
|
2693
2753
|
Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
|
|
2694
2754
|
Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
|
|
2695
2755
|
Param["OverrideOrgId"] = "orgId";
|
|
2696
|
-
Param["EnableFlipTooltipToContextMenu"] = "flipTooltipToContextMenuEnabled";
|
|
2697
2756
|
Param["OauthPollingInterval"] = "oAuthPollingInterval";
|
|
2698
2757
|
Param["IsForceRedirect"] = "isForceRedirect";
|
|
2699
2758
|
Param["DataSourceId"] = "dataSourceId";
|
|
2759
|
+
Param["ShowSpotterLimitations"] = "showSpotterLimitations";
|
|
2700
2760
|
})(Param || (Param = {}));
|
|
2701
2761
|
/**
|
|
2702
2762
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -3895,16 +3955,25 @@ var PrefetchFeatures;
|
|
|
3895
3955
|
})(PrefetchFeatures || (PrefetchFeatures = {}));
|
|
3896
3956
|
/**
|
|
3897
3957
|
* Enum for options to change context trigger
|
|
3958
|
+
* BOTH_CLICKS option is introduced in 10.7
|
|
3898
3959
|
*/
|
|
3899
3960
|
var ContextMenuTriggerOptions;
|
|
3900
3961
|
(function (ContextMenuTriggerOptions) {
|
|
3901
3962
|
ContextMenuTriggerOptions["LEFT_CLICK"] = "left-click";
|
|
3902
3963
|
ContextMenuTriggerOptions["RIGHT_CLICK"] = "right-click";
|
|
3964
|
+
ContextMenuTriggerOptions["BOTH_CLICKS"] = "both-clicks";
|
|
3903
3965
|
})(ContextMenuTriggerOptions || (ContextMenuTriggerOptions = {}));
|
|
3966
|
+
/**
|
|
3967
|
+
* Enum options to show or suppress Visual Embed SDK and
|
|
3968
|
+
* ThoughtSpot application logs in the console output.
|
|
3969
|
+
* This attribute doesn't support suppressing
|
|
3970
|
+
* browser warnings or errors.
|
|
3971
|
+
*/
|
|
3904
3972
|
var LogLevel;
|
|
3905
3973
|
(function (LogLevel) {
|
|
3906
3974
|
/**
|
|
3907
|
-
* No logs will be logged
|
|
3975
|
+
* No application or SDK-related logs will be logged
|
|
3976
|
+
* in the console output.
|
|
3908
3977
|
* @example
|
|
3909
3978
|
* ```js
|
|
3910
3979
|
* init({
|
|
@@ -3916,7 +3985,7 @@ var LogLevel;
|
|
|
3916
3985
|
*/
|
|
3917
3986
|
LogLevel["SILENT"] = "SILENT";
|
|
3918
3987
|
/**
|
|
3919
|
-
*
|
|
3988
|
+
* Log only errors in the console output.
|
|
3920
3989
|
* @example
|
|
3921
3990
|
* ```js
|
|
3922
3991
|
* init({
|
|
@@ -3928,7 +3997,7 @@ var LogLevel;
|
|
|
3928
3997
|
*/
|
|
3929
3998
|
LogLevel["ERROR"] = "ERROR";
|
|
3930
3999
|
/**
|
|
3931
|
-
*
|
|
4000
|
+
* Log only warnings and errors in the console output.
|
|
3932
4001
|
* @example
|
|
3933
4002
|
* ```js
|
|
3934
4003
|
* init({
|
|
@@ -3940,7 +4009,8 @@ var LogLevel;
|
|
|
3940
4009
|
*/
|
|
3941
4010
|
LogLevel["WARN"] = "WARN";
|
|
3942
4011
|
/**
|
|
3943
|
-
*
|
|
4012
|
+
* Log only the information alerts, warnings, and errors
|
|
4013
|
+
* in the console output.
|
|
3944
4014
|
* @example
|
|
3945
4015
|
* ```js
|
|
3946
4016
|
* init({
|
|
@@ -3952,7 +4022,8 @@ var LogLevel;
|
|
|
3952
4022
|
*/
|
|
3953
4023
|
LogLevel["INFO"] = "INFO";
|
|
3954
4024
|
/**
|
|
3955
|
-
*
|
|
4025
|
+
* Log debug messages, warnings, information alerts,
|
|
4026
|
+
* and errors in the console output.
|
|
3956
4027
|
* @example
|
|
3957
4028
|
* ```js
|
|
3958
4029
|
* init({
|
|
@@ -3964,7 +4035,7 @@ var LogLevel;
|
|
|
3964
4035
|
*/
|
|
3965
4036
|
LogLevel["DEBUG"] = "DEBUG";
|
|
3966
4037
|
/**
|
|
3967
|
-
* All logs will be logged in the console.
|
|
4038
|
+
* All logs will be logged in the browser console.
|
|
3968
4039
|
* @example
|
|
3969
4040
|
* ```js
|
|
3970
4041
|
* init({
|
|
@@ -7156,7 +7227,7 @@ class AnswerService {
|
|
|
7156
7227
|
async getTML() {
|
|
7157
7228
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
7158
7229
|
const edoc = object[0].edoc;
|
|
7159
|
-
const YAML = await import('./index-
|
|
7230
|
+
const YAML = await import('./index-B3hd6DTM.js');
|
|
7160
7231
|
const parsedDoc = YAML.parse(edoc);
|
|
7161
7232
|
return {
|
|
7162
7233
|
answer: {
|
|
@@ -14059,6 +14130,7 @@ var AuthFailureType;
|
|
|
14059
14130
|
AuthFailureType["NO_COOKIE_ACCESS"] = "NO_COOKIE_ACCESS";
|
|
14060
14131
|
AuthFailureType["EXPIRY"] = "EXPIRY";
|
|
14061
14132
|
AuthFailureType["OTHER"] = "OTHER";
|
|
14133
|
+
AuthFailureType["IDLE_SESSION_TIMEOUT"] = "IDLE_SESSION_TIMEOUT";
|
|
14062
14134
|
})(AuthFailureType || (AuthFailureType = {}));
|
|
14063
14135
|
/**
|
|
14064
14136
|
* Enum for auth status emitted by the emitter returned from {@link init}.
|
|
@@ -14384,7 +14456,8 @@ const doOIDCAuth = async (embedConfig) => {
|
|
|
14384
14456
|
? `${thoughtSpotHost}/v2/#/embed/saml-complete`
|
|
14385
14457
|
: getRedirectUrl(window.location.href, SSO_REDIRECTION_MARKER_GUID, embedConfig.redirectPath);
|
|
14386
14458
|
// bring back the page to the same URL
|
|
14387
|
-
const
|
|
14459
|
+
const baseEndpoint = `${EndPoints.OIDC_LOGIN_TEMPLATE(encodeURIComponent(ssoRedirectUrl))}`;
|
|
14460
|
+
const ssoEndPoint = `${baseEndpoint}${baseEndpoint.includes('?') ? '&' : '?'}forceSAMLAutoRedirect=true`;
|
|
14388
14461
|
await doSSOAuth(embedConfig, ssoEndPoint);
|
|
14389
14462
|
return loggedInStatus;
|
|
14390
14463
|
};
|
|
@@ -14796,8 +14869,15 @@ function processNoCookieAccess(e, containerEl) {
|
|
|
14796
14869
|
* @param containerEl
|
|
14797
14870
|
*/
|
|
14798
14871
|
function processAuthFailure(e, containerEl) {
|
|
14799
|
-
const { loginFailedMessage, authType, disableLoginFailurePage } = getEmbedConfig();
|
|
14800
|
-
if (
|
|
14872
|
+
const { loginFailedMessage, authType, disableLoginFailurePage, autoLogin, } = getEmbedConfig();
|
|
14873
|
+
if (autoLogin
|
|
14874
|
+
&& (authType === AuthType.TrustedAuthToken
|
|
14875
|
+
|| authType === AuthType.TrustedAuthTokenCookieless)) {
|
|
14876
|
+
// eslint-disable-next-line no-param-reassign
|
|
14877
|
+
containerEl.innerHTML = loginFailedMessage;
|
|
14878
|
+
notifyAuthFailure(AuthFailureType.IDLE_SESSION_TIMEOUT);
|
|
14879
|
+
}
|
|
14880
|
+
else if (authType !== AuthType.None && !disableLoginFailurePage) {
|
|
14801
14881
|
// eslint-disable-next-line no-param-reassign
|
|
14802
14882
|
containerEl.innerHTML = loginFailedMessage;
|
|
14803
14883
|
notifyAuthFailure(AuthFailureType.OTHER);
|
|
@@ -14842,7 +14922,7 @@ function processEventData(type, e, thoughtSpotHost, containerEl) {
|
|
|
14842
14922
|
return e;
|
|
14843
14923
|
}
|
|
14844
14924
|
|
|
14845
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.
|
|
14925
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.13";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
|
|
14846
14926
|
|
|
14847
14927
|
/**
|
|
14848
14928
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -14967,7 +15047,12 @@ class HostEventClient {
|
|
|
14967
15047
|
if (!payload || !('newVizName' in payload)) {
|
|
14968
15048
|
return this.hostEventFallback(HostEvent.Pin, payload);
|
|
14969
15049
|
}
|
|
14970
|
-
|
|
15050
|
+
const formattedPayload = {
|
|
15051
|
+
...payload,
|
|
15052
|
+
pinboardId: payload.liveboardId,
|
|
15053
|
+
newPinboardName: payload.newLiveboardName,
|
|
15054
|
+
};
|
|
15055
|
+
return this.handleHostEventWithParam(UIPassthroughEvent.PinAnswerToLiveboard, formattedPayload);
|
|
14971
15056
|
}
|
|
14972
15057
|
async handleSaveAnswerEvent(payload) {
|
|
14973
15058
|
var _a, _b, _c, _d;
|
|
@@ -15086,12 +15171,37 @@ class TsEmbed {
|
|
|
15086
15171
|
}
|
|
15087
15172
|
notifyAuthFailure(AuthFailureType.EXPIRY);
|
|
15088
15173
|
};
|
|
15174
|
+
/**
|
|
15175
|
+
* Auto Login and send updated authToken to the iFrame to avoid user session logout
|
|
15176
|
+
* @param _
|
|
15177
|
+
* @param responder
|
|
15178
|
+
*/
|
|
15179
|
+
this.idleSessionTimeout = (_, responder) => {
|
|
15180
|
+
handleAuth().then(async () => {
|
|
15181
|
+
let authToken = '';
|
|
15182
|
+
try {
|
|
15183
|
+
authToken = await getAuthenticationToken(this.embedConfig);
|
|
15184
|
+
responder({
|
|
15185
|
+
type: EmbedEvent.IdleSessionTimeout,
|
|
15186
|
+
data: { authToken },
|
|
15187
|
+
});
|
|
15188
|
+
}
|
|
15189
|
+
catch (e) {
|
|
15190
|
+
logger$3.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e === null || e === void 0 ? void 0 : e.message}`);
|
|
15191
|
+
processAuthFailure(e, this.isPreRendered ? this.preRenderWrapper : this.el);
|
|
15192
|
+
}
|
|
15193
|
+
}).catch((e) => {
|
|
15194
|
+
logger$3.error(`Auto Login failed, Error : ${e === null || e === void 0 ? void 0 : e.message}`);
|
|
15195
|
+
});
|
|
15196
|
+
notifyAuthFailure(AuthFailureType.IDLE_SESSION_TIMEOUT);
|
|
15197
|
+
};
|
|
15089
15198
|
/**
|
|
15090
15199
|
* Register APP_INIT event and sendback init payload
|
|
15091
15200
|
*/
|
|
15092
15201
|
this.registerAppInit = () => {
|
|
15093
15202
|
this.on(EmbedEvent.APP_INIT, this.appInitCb, { start: false }, true);
|
|
15094
15203
|
this.on(EmbedEvent.AuthExpire, this.updateAuthToken, { start: false }, true);
|
|
15204
|
+
this.on(EmbedEvent.IdleSessionTimeout, this.idleSessionTimeout, { start: false }, true);
|
|
15095
15205
|
};
|
|
15096
15206
|
this.showPreRenderByDefault = false;
|
|
15097
15207
|
this.validatePreRenderViewConfig = (viewConfig) => {
|
|
@@ -15274,7 +15384,7 @@ class TsEmbed {
|
|
|
15274
15384
|
* @param query
|
|
15275
15385
|
*/
|
|
15276
15386
|
getEmbedBasePath(query) {
|
|
15277
|
-
let queryString =
|
|
15387
|
+
let queryString = query.startsWith('?') ? query : `?${query}`;
|
|
15278
15388
|
if (this.shouldEncodeUrlQueryParams) {
|
|
15279
15389
|
queryString = `?base64UrlEncodedFlags=${getEncodedQueryParamsString(queryString.substr(1))}`;
|
|
15280
15390
|
}
|
|
@@ -15289,20 +15399,22 @@ class TsEmbed {
|
|
|
15289
15399
|
* @returns queryParams
|
|
15290
15400
|
*/
|
|
15291
15401
|
getBaseQueryParams(queryParams = {}) {
|
|
15292
|
-
var _a, _b
|
|
15402
|
+
var _a, _b;
|
|
15293
15403
|
let hostAppUrl = ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.host) || '';
|
|
15294
15404
|
// The below check is needed because TS Cloud firewall, blocks
|
|
15295
15405
|
// localhost/127.0.0.1 in any url param.
|
|
15296
15406
|
if (hostAppUrl.includes('localhost') || hostAppUrl.includes('127.0.0.1')) {
|
|
15297
15407
|
hostAppUrl = 'local-host';
|
|
15298
15408
|
}
|
|
15409
|
+
const blockNonEmbedFullAppAccess = (_b = this.embedConfig.blockNonEmbedFullAppAccess) !== null && _b !== void 0 ? _b : true;
|
|
15299
15410
|
queryParams[Param.EmbedApp] = true;
|
|
15300
15411
|
queryParams[Param.HostAppUrl] = encodeURIComponent(hostAppUrl);
|
|
15301
15412
|
queryParams[Param.ViewPortHeight] = window.innerHeight;
|
|
15302
15413
|
queryParams[Param.ViewPortWidth] = window.innerWidth;
|
|
15303
15414
|
queryParams[Param.Version] = version;
|
|
15304
15415
|
queryParams[Param.AuthType] = this.embedConfig.authType;
|
|
15305
|
-
queryParams[Param.blockNonEmbedFullAppAccess] =
|
|
15416
|
+
queryParams[Param.blockNonEmbedFullAppAccess] = blockNonEmbedFullAppAccess;
|
|
15417
|
+
queryParams[Param.AutoLogin] = this.embedConfig.autoLogin;
|
|
15306
15418
|
if (this.embedConfig.disableLoginRedirect === true || this.embedConfig.autoLogin === true) {
|
|
15307
15419
|
queryParams[Param.DisableLoginRedirect] = true;
|
|
15308
15420
|
}
|
|
@@ -15324,15 +15436,12 @@ class TsEmbed {
|
|
|
15324
15436
|
if (this.embedConfig.currencyFormat) {
|
|
15325
15437
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
15326
15438
|
}
|
|
15327
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId,
|
|
15439
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, } = this.viewConfig;
|
|
15328
15440
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
15329
15441
|
const additionalFlags = {
|
|
15330
15442
|
...additionalFlagsFromInit,
|
|
15331
15443
|
...additionalFlagsFromView,
|
|
15332
15444
|
};
|
|
15333
|
-
if (enableFlipTooltipToContextMenu) {
|
|
15334
|
-
queryParams[Param.EnableFlipTooltipToContextMenu] = enableFlipTooltipToContextMenu;
|
|
15335
|
-
}
|
|
15336
15445
|
if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
|
|
15337
15446
|
this.handleError('You cannot have both hidden actions and visible actions');
|
|
15338
15447
|
return queryParams;
|
|
@@ -15363,13 +15472,16 @@ class TsEmbed {
|
|
|
15363
15472
|
* menu click
|
|
15364
15473
|
*/
|
|
15365
15474
|
if (contextMenuTrigger === ContextMenuTriggerOptions.LEFT_CLICK) {
|
|
15366
|
-
queryParams[Param.ContextMenuTrigger] =
|
|
15475
|
+
queryParams[Param.ContextMenuTrigger] = 'left';
|
|
15367
15476
|
}
|
|
15368
15477
|
else if (contextMenuTrigger === ContextMenuTriggerOptions.RIGHT_CLICK) {
|
|
15369
|
-
queryParams[Param.ContextMenuTrigger] =
|
|
15478
|
+
queryParams[Param.ContextMenuTrigger] = 'right';
|
|
15370
15479
|
}
|
|
15371
|
-
|
|
15372
|
-
|
|
15480
|
+
else if (contextMenuTrigger === ContextMenuTriggerOptions.BOTH_CLICKS) {
|
|
15481
|
+
queryParams[Param.ContextMenuTrigger] = 'both';
|
|
15482
|
+
}
|
|
15483
|
+
const embedCustomizations = this.embedConfig.customizations;
|
|
15484
|
+
const spriteUrl = (customizations === null || customizations === void 0 ? void 0 : customizations.iconSpriteUrl) || (embedCustomizations === null || embedCustomizations === void 0 ? void 0 : embedCustomizations.iconSpriteUrl);
|
|
15373
15485
|
if (spriteUrl) {
|
|
15374
15486
|
queryParams[Param.IconSpriteUrl] = spriteUrl.replace('https://', '');
|
|
15375
15487
|
}
|
|
@@ -15441,7 +15553,8 @@ class TsEmbed {
|
|
|
15441
15553
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
15442
15554
|
// @ts-ignore
|
|
15443
15555
|
iFrame.allow = 'clipboard-read; clipboard-write; fullscreen;';
|
|
15444
|
-
const
|
|
15556
|
+
const frameParams = this.viewConfig.frameParams;
|
|
15557
|
+
const { height: frameHeight, width: frameWidth, ...restParams } = frameParams || {};
|
|
15445
15558
|
const width = getCssDimension(frameWidth || DEFAULT_EMBED_WIDTH);
|
|
15446
15559
|
const height = getCssDimension(frameHeight || DEFAULT_EMBED_HEIGHT);
|
|
15447
15560
|
setAttributes(iFrame, restParams);
|
|
@@ -15546,8 +15659,8 @@ class TsEmbed {
|
|
|
15546
15659
|
}
|
|
15547
15660
|
connectPreRendered() {
|
|
15548
15661
|
const preRenderIds = this.getPreRenderIds();
|
|
15549
|
-
|
|
15550
|
-
|
|
15662
|
+
const preRenderWrapperElement = document.getElementById(preRenderIds.wrapper);
|
|
15663
|
+
this.preRenderWrapper = this.preRenderWrapper || preRenderWrapperElement;
|
|
15551
15664
|
this.preRenderChild = this.preRenderChild || document.getElementById(preRenderIds.child);
|
|
15552
15665
|
if (this.preRenderWrapper && this.preRenderChild) {
|
|
15553
15666
|
this.isPreRendered = true;
|
|
@@ -16049,7 +16162,7 @@ class V1Embed extends TsEmbed {
|
|
|
16049
16162
|
const filterQuery = getFilterQuery(runtimeFilters || []);
|
|
16050
16163
|
queryString = [filterQuery, queryString].filter(Boolean).join('&');
|
|
16051
16164
|
}
|
|
16052
|
-
return
|
|
16165
|
+
return this.viewConfig.enableV2Shell_experimental
|
|
16053
16166
|
? this.getEmbedBasePath(queryString)
|
|
16054
16167
|
: this.getV1EmbedBasePath(queryString);
|
|
16055
16168
|
}
|
|
@@ -16182,6 +16295,8 @@ class AppEmbed extends V1Embed {
|
|
|
16182
16295
|
'/embed/insights/viz/',
|
|
16183
16296
|
'/liveboard/',
|
|
16184
16297
|
'/insights/liveboard/',
|
|
16298
|
+
'/tsl-editor/PINBOARD_ANSWER_BOOK/',
|
|
16299
|
+
'/import-tsl/PINBOARD_ANSWER_BOOK/',
|
|
16185
16300
|
];
|
|
16186
16301
|
if (liveboardRelatedRoutes.some((path) => data.data.currentPath.startsWith(path))) {
|
|
16187
16302
|
// Ignore the height reset of the frame, if the navigation is
|
|
@@ -16443,6 +16558,12 @@ const addPreviewStylesIfNotPresent = () => {
|
|
|
16443
16558
|
* @summary Liveboard & visualization embed
|
|
16444
16559
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
16445
16560
|
*/
|
|
16561
|
+
const liveboardHeightWhitelistedRoutes = [
|
|
16562
|
+
'/embed/viz/',
|
|
16563
|
+
'/embed/insights/viz/',
|
|
16564
|
+
'/tsl-editor/PINBOARD_ANSWER_BOOK/',
|
|
16565
|
+
'/import-tsl/PINBOARD_ANSWER_BOOK/',
|
|
16566
|
+
];
|
|
16446
16567
|
/**
|
|
16447
16568
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
16448
16569
|
* waits for the authentication to complete, so you need not wait for
|
|
@@ -16477,8 +16598,8 @@ class LiveboardEmbed extends V1Embed {
|
|
|
16477
16598
|
responder({ type: EmbedEvent.EmbedIframeCenter, data: obj });
|
|
16478
16599
|
};
|
|
16479
16600
|
this.setIframeHeightForNonEmbedLiveboard = (data) => {
|
|
16480
|
-
|
|
16481
|
-
|
|
16601
|
+
const routePath = data.data.currentPath;
|
|
16602
|
+
if (liveboardHeightWhitelistedRoutes.some((path) => routePath.startsWith(path))) {
|
|
16482
16603
|
return;
|
|
16483
16604
|
}
|
|
16484
16605
|
this.setIFrameHeight(this.defaultHeight);
|
|
@@ -16638,8 +16759,9 @@ class LiveboardEmbed extends V1Embed {
|
|
|
16638
16759
|
}
|
|
16639
16760
|
/**
|
|
16640
16761
|
* Triggers an event to the embedded app
|
|
16641
|
-
* @param messageType The event type
|
|
16642
|
-
* @param data The payload to send with the message
|
|
16762
|
+
* @param {HostEvent} messageType The event type
|
|
16763
|
+
* @param {any} data The payload to send with the message
|
|
16764
|
+
* @returns A promise that resolves with the response from the embedded app
|
|
16643
16765
|
*/
|
|
16644
16766
|
trigger(messageType, data = {}) {
|
|
16645
16767
|
const dataWithVizId = data;
|
|
@@ -16788,8 +16910,10 @@ class SearchEmbed extends TsEmbed {
|
|
|
16788
16910
|
if (dataSource) {
|
|
16789
16911
|
queryParams[Param.DataSources] = `["${dataSource}"]`;
|
|
16790
16912
|
}
|
|
16791
|
-
if (
|
|
16792
|
-
|
|
16913
|
+
if (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) {
|
|
16914
|
+
if (!excludeSearchTokenStringFromURL) {
|
|
16915
|
+
queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
|
|
16916
|
+
}
|
|
16793
16917
|
if (searchOptions.executeSearch) {
|
|
16794
16918
|
queryParams[Param.executeSearch] = true;
|
|
16795
16919
|
}
|
|
@@ -16906,8 +17030,10 @@ class SearchBarEmbed extends TsEmbed {
|
|
|
16906
17030
|
if (dataSource) {
|
|
16907
17031
|
queryParams[Param.DataSources] = `["${dataSource}"]`;
|
|
16908
17032
|
}
|
|
16909
|
-
if (
|
|
16910
|
-
|
|
17033
|
+
if (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) {
|
|
17034
|
+
if (!excludeSearchTokenStringFromURL) {
|
|
17035
|
+
queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
|
|
17036
|
+
}
|
|
16911
17037
|
if (searchOptions.executeSearch) {
|
|
16912
17038
|
queryParams[Param.executeSearch] = true;
|
|
16913
17039
|
}
|
|
@@ -17447,7 +17573,7 @@ class ConversationEmbed extends TsEmbed {
|
|
|
17447
17573
|
this.viewConfig = viewConfig;
|
|
17448
17574
|
}
|
|
17449
17575
|
getIframeSrc() {
|
|
17450
|
-
const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, } = this.viewConfig;
|
|
17576
|
+
const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, } = this.viewConfig;
|
|
17451
17577
|
const path = 'insights/conv-assist';
|
|
17452
17578
|
if (!worksheetId) {
|
|
17453
17579
|
this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
|
|
@@ -17460,6 +17586,15 @@ class ConversationEmbed extends TsEmbed {
|
|
|
17460
17586
|
if (!isUndefined_1(hideSourceSelection)) {
|
|
17461
17587
|
queryParams[Param.HideSourceSelection] = !!hideSourceSelection;
|
|
17462
17588
|
}
|
|
17589
|
+
if (!isUndefined_1(dataPanelV2)) {
|
|
17590
|
+
queryParams[Param.DataPanelV2Enabled] = !!dataPanelV2;
|
|
17591
|
+
}
|
|
17592
|
+
if (!isUndefined_1(showSpotterLimitations)) {
|
|
17593
|
+
queryParams[Param.ShowSpotterLimitations] = !!showSpotterLimitations;
|
|
17594
|
+
}
|
|
17595
|
+
if (!isUndefined_1(hideSampleQuestions)) {
|
|
17596
|
+
queryParams[Param.HideSampleQuestions] = !!hideSampleQuestions;
|
|
17597
|
+
}
|
|
17463
17598
|
let query = '';
|
|
17464
17599
|
const queryParamsString = getQueryParamString(queryParams, true);
|
|
17465
17600
|
if (queryParamsString) {
|