@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-react.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 (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
|
|
@@ -1060,6 +1060,11 @@
|
|
|
1060
1060
|
* @hidden
|
|
1061
1061
|
*/
|
|
1062
1062
|
EmbedEvent["AuthFailure"] = "ThoughtspotAuthFailure";
|
|
1063
|
+
/**
|
|
1064
|
+
* ThoughtSpot failed to re validate the auth session.
|
|
1065
|
+
* @hidden
|
|
1066
|
+
*/
|
|
1067
|
+
EmbedEvent["IdleSessionTimeout"] = "IdleSessionTimeout";
|
|
1063
1068
|
/**
|
|
1064
1069
|
* ThoughtSpot failed to validate the auth session.
|
|
1065
1070
|
* @hidden
|
|
@@ -1766,6 +1771,36 @@
|
|
|
1766
1771
|
* @version SDK : 1.29.0 | ThoughtSpot : 10.3.0.cl
|
|
1767
1772
|
*/
|
|
1768
1773
|
EmbedEvent["ParameterChanged"] = "parameterChanged";
|
|
1774
|
+
/**
|
|
1775
|
+
* Emitted when the table viz renders.
|
|
1776
|
+
* You can use this event as a hook to trigger
|
|
1777
|
+
* other events on the rendered table viz data.
|
|
1778
|
+
* @example
|
|
1779
|
+
* ```js
|
|
1780
|
+
* searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
|
|
1781
|
+
* console.log(payload);
|
|
1782
|
+
* const columnDataLite = payload.data.data.columnDataLite;
|
|
1783
|
+
* columnDataLite[0].dataValue[0]="new fob";
|
|
1784
|
+
* console.log('>>> new Data', columnDataLite);
|
|
1785
|
+
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
1786
|
+
* })
|
|
1787
|
+
* ```
|
|
1788
|
+
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
1789
|
+
*/
|
|
1790
|
+
EmbedEvent["TableVizRendered"] = "TableVizRendered";
|
|
1791
|
+
/**
|
|
1792
|
+
* Emitted when the liveboard is created from pin modal or liveboard list page.
|
|
1793
|
+
* You can use this event as a hook to trigger
|
|
1794
|
+
* other events on liveboard creation.
|
|
1795
|
+
*
|
|
1796
|
+
* ```js
|
|
1797
|
+
* liveboardEmbed.on(EmbedEvent.CreateLiveboard, (payload) => {
|
|
1798
|
+
* console.log('payload', payload);
|
|
1799
|
+
* })
|
|
1800
|
+
*```
|
|
1801
|
+
* @version SDK : 1.36.0 | ThoughtSpot : 10.8.0.cl
|
|
1802
|
+
*/
|
|
1803
|
+
EmbedEvent["CreateLiveboard"] = "createLiveboard";
|
|
1769
1804
|
})(exports.EmbedEvent || (exports.EmbedEvent = {}));
|
|
1770
1805
|
/**
|
|
1771
1806
|
* Event types that can be triggered by the host application
|
|
@@ -2176,7 +2211,7 @@
|
|
|
2176
2211
|
* @param - an object with `vizId` as a key
|
|
2177
2212
|
* @example
|
|
2178
2213
|
* ```js
|
|
2179
|
-
* liveboardEmbed.trigger(HostEvent.CreateMonitor {
|
|
2214
|
+
* liveboardEmbed.trigger(HostEvent.CreateMonitor, {
|
|
2180
2215
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
2181
2216
|
* })
|
|
2182
2217
|
* ```
|
|
@@ -2709,6 +2744,25 @@
|
|
|
2709
2744
|
* @hidden
|
|
2710
2745
|
*/
|
|
2711
2746
|
HostEvent["UIPassthrough"] = "UiPassthrough";
|
|
2747
|
+
/**
|
|
2748
|
+
* Triggers the table viz rerender with the updated data.
|
|
2749
|
+
* Includes the following properties:
|
|
2750
|
+
* @param - columnDataLite - an array of object containing data
|
|
2751
|
+
* transformed from data picked from TableVizRendered event.
|
|
2752
|
+
* For example, { columnDataLite: []}
|
|
2753
|
+
* @example
|
|
2754
|
+
* ```js
|
|
2755
|
+
* searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
|
|
2756
|
+
* console.log(payload);
|
|
2757
|
+
* const columnDataLite = payload.data.data.columnDataLite;
|
|
2758
|
+
* columnDataLite[0].dataValue[0]="new fob";
|
|
2759
|
+
* console.log('>>> new Data', columnDataLite);
|
|
2760
|
+
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
2761
|
+
* })
|
|
2762
|
+
* ```
|
|
2763
|
+
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
2764
|
+
*/
|
|
2765
|
+
HostEvent["TransformTableVizData"] = "TransformTableVizData";
|
|
2712
2766
|
})(exports.HostEvent || (exports.HostEvent = {}));
|
|
2713
2767
|
/**
|
|
2714
2768
|
* The different visual modes that the data sources panel within
|
|
@@ -2753,6 +2807,7 @@
|
|
|
2753
2807
|
Param["HideResult"] = "hideResult";
|
|
2754
2808
|
Param["UseLastSelectedDataSource"] = "useLastSelectedSources";
|
|
2755
2809
|
Param["Tag"] = "tag";
|
|
2810
|
+
Param["AutoLogin"] = "autoLogin";
|
|
2756
2811
|
Param["searchTokenString"] = "searchTokenString";
|
|
2757
2812
|
Param["executeSearch"] = "executeSearch";
|
|
2758
2813
|
Param["fullHeight"] = "isFullHeightPinboard";
|
|
@@ -2775,7 +2830,12 @@
|
|
|
2775
2830
|
Param["AuthType"] = "authType";
|
|
2776
2831
|
Param["IconSpriteUrl"] = "iconSprite";
|
|
2777
2832
|
Param["cookieless"] = "cookieless";
|
|
2778
|
-
|
|
2833
|
+
// Deprecated: `isContextMenuEnabledOnLeftClick`
|
|
2834
|
+
// Introduced: `contextMenuEnabledOnWhichClick` with values: 'left',
|
|
2835
|
+
// 'right', or 'both'. This update only affects ThoughtSpot URL parameters
|
|
2836
|
+
// and does not impact existing workflows or use cases. Added support for
|
|
2837
|
+
// 'both' clicks in `contextMenuTrigger` configuration.
|
|
2838
|
+
Param["ContextMenuTrigger"] = "contextMenuEnabledOnWhichClick";
|
|
2779
2839
|
Param["LinkOverride"] = "linkOverride";
|
|
2780
2840
|
Param["blockNonEmbedFullAppAccess"] = "blockNonEmbedFullAppAccess";
|
|
2781
2841
|
Param["ShowInsertToSlide"] = "insertInToSlide";
|
|
@@ -2830,10 +2890,10 @@
|
|
|
2830
2890
|
Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
|
|
2831
2891
|
Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
|
|
2832
2892
|
Param["OverrideOrgId"] = "orgId";
|
|
2833
|
-
Param["EnableFlipTooltipToContextMenu"] = "flipTooltipToContextMenuEnabled";
|
|
2834
2893
|
Param["OauthPollingInterval"] = "oAuthPollingInterval";
|
|
2835
2894
|
Param["IsForceRedirect"] = "isForceRedirect";
|
|
2836
2895
|
Param["DataSourceId"] = "dataSourceId";
|
|
2896
|
+
Param["ShowSpotterLimitations"] = "showSpotterLimitations";
|
|
2837
2897
|
})(Param || (Param = {}));
|
|
2838
2898
|
/**
|
|
2839
2899
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -4032,16 +4092,25 @@
|
|
|
4032
4092
|
})(PrefetchFeatures || (PrefetchFeatures = {}));
|
|
4033
4093
|
/**
|
|
4034
4094
|
* Enum for options to change context trigger
|
|
4095
|
+
* BOTH_CLICKS option is introduced in 10.7
|
|
4035
4096
|
*/
|
|
4036
4097
|
var ContextMenuTriggerOptions;
|
|
4037
4098
|
(function (ContextMenuTriggerOptions) {
|
|
4038
4099
|
ContextMenuTriggerOptions["LEFT_CLICK"] = "left-click";
|
|
4039
4100
|
ContextMenuTriggerOptions["RIGHT_CLICK"] = "right-click";
|
|
4101
|
+
ContextMenuTriggerOptions["BOTH_CLICKS"] = "both-clicks";
|
|
4040
4102
|
})(ContextMenuTriggerOptions || (ContextMenuTriggerOptions = {}));
|
|
4103
|
+
/**
|
|
4104
|
+
* Enum options to show or suppress Visual Embed SDK and
|
|
4105
|
+
* ThoughtSpot application logs in the console output.
|
|
4106
|
+
* This attribute doesn't support suppressing
|
|
4107
|
+
* browser warnings or errors.
|
|
4108
|
+
*/
|
|
4041
4109
|
exports.LogLevel = void 0;
|
|
4042
4110
|
(function (LogLevel) {
|
|
4043
4111
|
/**
|
|
4044
|
-
* No logs will be logged
|
|
4112
|
+
* No application or SDK-related logs will be logged
|
|
4113
|
+
* in the console output.
|
|
4045
4114
|
* @example
|
|
4046
4115
|
* ```js
|
|
4047
4116
|
* init({
|
|
@@ -4053,7 +4122,7 @@
|
|
|
4053
4122
|
*/
|
|
4054
4123
|
LogLevel["SILENT"] = "SILENT";
|
|
4055
4124
|
/**
|
|
4056
|
-
*
|
|
4125
|
+
* Log only errors in the console output.
|
|
4057
4126
|
* @example
|
|
4058
4127
|
* ```js
|
|
4059
4128
|
* init({
|
|
@@ -4065,7 +4134,7 @@
|
|
|
4065
4134
|
*/
|
|
4066
4135
|
LogLevel["ERROR"] = "ERROR";
|
|
4067
4136
|
/**
|
|
4068
|
-
*
|
|
4137
|
+
* Log only warnings and errors in the console output.
|
|
4069
4138
|
* @example
|
|
4070
4139
|
* ```js
|
|
4071
4140
|
* init({
|
|
@@ -4077,7 +4146,8 @@
|
|
|
4077
4146
|
*/
|
|
4078
4147
|
LogLevel["WARN"] = "WARN";
|
|
4079
4148
|
/**
|
|
4080
|
-
*
|
|
4149
|
+
* Log only the information alerts, warnings, and errors
|
|
4150
|
+
* in the console output.
|
|
4081
4151
|
* @example
|
|
4082
4152
|
* ```js
|
|
4083
4153
|
* init({
|
|
@@ -4089,7 +4159,8 @@
|
|
|
4089
4159
|
*/
|
|
4090
4160
|
LogLevel["INFO"] = "INFO";
|
|
4091
4161
|
/**
|
|
4092
|
-
*
|
|
4162
|
+
* Log debug messages, warnings, information alerts,
|
|
4163
|
+
* and errors in the console output.
|
|
4093
4164
|
* @example
|
|
4094
4165
|
* ```js
|
|
4095
4166
|
* init({
|
|
@@ -4101,7 +4172,7 @@
|
|
|
4101
4172
|
*/
|
|
4102
4173
|
LogLevel["DEBUG"] = "DEBUG";
|
|
4103
4174
|
/**
|
|
4104
|
-
* All logs will be logged in the console.
|
|
4175
|
+
* All logs will be logged in the browser console.
|
|
4105
4176
|
* @example
|
|
4106
4177
|
* ```js
|
|
4107
4178
|
* init({
|
|
@@ -14124,6 +14195,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14124
14195
|
AuthFailureType["NO_COOKIE_ACCESS"] = "NO_COOKIE_ACCESS";
|
|
14125
14196
|
AuthFailureType["EXPIRY"] = "EXPIRY";
|
|
14126
14197
|
AuthFailureType["OTHER"] = "OTHER";
|
|
14198
|
+
AuthFailureType["IDLE_SESSION_TIMEOUT"] = "IDLE_SESSION_TIMEOUT";
|
|
14127
14199
|
})(AuthFailureType || (AuthFailureType = {}));
|
|
14128
14200
|
/**
|
|
14129
14201
|
* Enum for auth status emitted by the emitter returned from {@link init}.
|
|
@@ -14429,7 +14501,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14429
14501
|
? `${thoughtSpotHost}/v2/#/embed/saml-complete`
|
|
14430
14502
|
: getRedirectUrl(window.location.href, SSO_REDIRECTION_MARKER_GUID, embedConfig.redirectPath);
|
|
14431
14503
|
// bring back the page to the same URL
|
|
14432
|
-
const
|
|
14504
|
+
const baseEndpoint = `${EndPoints.OIDC_LOGIN_TEMPLATE(encodeURIComponent(ssoRedirectUrl))}`;
|
|
14505
|
+
const ssoEndPoint = `${baseEndpoint}${baseEndpoint.includes('?') ? '&' : '?'}forceSAMLAutoRedirect=true`;
|
|
14433
14506
|
await doSSOAuth(embedConfig, ssoEndPoint);
|
|
14434
14507
|
return loggedInStatus;
|
|
14435
14508
|
};
|
|
@@ -14576,8 +14649,15 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14576
14649
|
* @param containerEl
|
|
14577
14650
|
*/
|
|
14578
14651
|
function processAuthFailure(e, containerEl) {
|
|
14579
|
-
const { loginFailedMessage, authType, disableLoginFailurePage } = getEmbedConfig();
|
|
14580
|
-
if (
|
|
14652
|
+
const { loginFailedMessage, authType, disableLoginFailurePage, autoLogin, } = getEmbedConfig();
|
|
14653
|
+
if (autoLogin
|
|
14654
|
+
&& (authType === AuthType.TrustedAuthToken
|
|
14655
|
+
|| authType === AuthType.TrustedAuthTokenCookieless)) {
|
|
14656
|
+
// eslint-disable-next-line no-param-reassign
|
|
14657
|
+
containerEl.innerHTML = loginFailedMessage;
|
|
14658
|
+
notifyAuthFailure(AuthFailureType.IDLE_SESSION_TIMEOUT);
|
|
14659
|
+
}
|
|
14660
|
+
else if (authType !== AuthType.None && !disableLoginFailurePage) {
|
|
14581
14661
|
// eslint-disable-next-line no-param-reassign
|
|
14582
14662
|
containerEl.innerHTML = loginFailedMessage;
|
|
14583
14663
|
notifyAuthFailure(AuthFailureType.OTHER);
|
|
@@ -14622,7 +14702,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14622
14702
|
return e;
|
|
14623
14703
|
}
|
|
14624
14704
|
|
|
14625
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.
|
|
14705
|
+
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$1={".":{"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$1,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};
|
|
14626
14706
|
|
|
14627
14707
|
/**
|
|
14628
14708
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -14747,7 +14827,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14747
14827
|
if (!payload || !('newVizName' in payload)) {
|
|
14748
14828
|
return this.hostEventFallback(exports.HostEvent.Pin, payload);
|
|
14749
14829
|
}
|
|
14750
|
-
|
|
14830
|
+
const formattedPayload = {
|
|
14831
|
+
...payload,
|
|
14832
|
+
pinboardId: payload.liveboardId,
|
|
14833
|
+
newPinboardName: payload.newLiveboardName,
|
|
14834
|
+
};
|
|
14835
|
+
return this.handleHostEventWithParam(UIPassthroughEvent.PinAnswerToLiveboard, formattedPayload);
|
|
14751
14836
|
}
|
|
14752
14837
|
async handleSaveAnswerEvent(payload) {
|
|
14753
14838
|
var _a, _b, _c, _d;
|
|
@@ -14866,12 +14951,37 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14866
14951
|
}
|
|
14867
14952
|
notifyAuthFailure(AuthFailureType.EXPIRY);
|
|
14868
14953
|
};
|
|
14954
|
+
/**
|
|
14955
|
+
* Auto Login and send updated authToken to the iFrame to avoid user session logout
|
|
14956
|
+
* @param _
|
|
14957
|
+
* @param responder
|
|
14958
|
+
*/
|
|
14959
|
+
this.idleSessionTimeout = (_, responder) => {
|
|
14960
|
+
handleAuth().then(async () => {
|
|
14961
|
+
let authToken = '';
|
|
14962
|
+
try {
|
|
14963
|
+
authToken = await getAuthenticationToken(this.embedConfig);
|
|
14964
|
+
responder({
|
|
14965
|
+
type: exports.EmbedEvent.IdleSessionTimeout,
|
|
14966
|
+
data: { authToken },
|
|
14967
|
+
});
|
|
14968
|
+
}
|
|
14969
|
+
catch (e) {
|
|
14970
|
+
logger$3.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e === null || e === void 0 ? void 0 : e.message}`);
|
|
14971
|
+
processAuthFailure(e, this.isPreRendered ? this.preRenderWrapper : this.el);
|
|
14972
|
+
}
|
|
14973
|
+
}).catch((e) => {
|
|
14974
|
+
logger$3.error(`Auto Login failed, Error : ${e === null || e === void 0 ? void 0 : e.message}`);
|
|
14975
|
+
});
|
|
14976
|
+
notifyAuthFailure(AuthFailureType.IDLE_SESSION_TIMEOUT);
|
|
14977
|
+
};
|
|
14869
14978
|
/**
|
|
14870
14979
|
* Register APP_INIT event and sendback init payload
|
|
14871
14980
|
*/
|
|
14872
14981
|
this.registerAppInit = () => {
|
|
14873
14982
|
this.on(exports.EmbedEvent.APP_INIT, this.appInitCb, { start: false }, true);
|
|
14874
14983
|
this.on(exports.EmbedEvent.AuthExpire, this.updateAuthToken, { start: false }, true);
|
|
14984
|
+
this.on(exports.EmbedEvent.IdleSessionTimeout, this.idleSessionTimeout, { start: false }, true);
|
|
14875
14985
|
};
|
|
14876
14986
|
this.showPreRenderByDefault = false;
|
|
14877
14987
|
this.validatePreRenderViewConfig = (viewConfig) => {
|
|
@@ -15054,7 +15164,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15054
15164
|
* @param query
|
|
15055
15165
|
*/
|
|
15056
15166
|
getEmbedBasePath(query) {
|
|
15057
|
-
let queryString =
|
|
15167
|
+
let queryString = query.startsWith('?') ? query : `?${query}`;
|
|
15058
15168
|
if (this.shouldEncodeUrlQueryParams) {
|
|
15059
15169
|
queryString = `?base64UrlEncodedFlags=${getEncodedQueryParamsString(queryString.substr(1))}`;
|
|
15060
15170
|
}
|
|
@@ -15069,20 +15179,22 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15069
15179
|
* @returns queryParams
|
|
15070
15180
|
*/
|
|
15071
15181
|
getBaseQueryParams(queryParams = {}) {
|
|
15072
|
-
var _a, _b
|
|
15182
|
+
var _a, _b;
|
|
15073
15183
|
let hostAppUrl = ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.host) || '';
|
|
15074
15184
|
// The below check is needed because TS Cloud firewall, blocks
|
|
15075
15185
|
// localhost/127.0.0.1 in any url param.
|
|
15076
15186
|
if (hostAppUrl.includes('localhost') || hostAppUrl.includes('127.0.0.1')) {
|
|
15077
15187
|
hostAppUrl = 'local-host';
|
|
15078
15188
|
}
|
|
15189
|
+
const blockNonEmbedFullAppAccess = (_b = this.embedConfig.blockNonEmbedFullAppAccess) !== null && _b !== void 0 ? _b : true;
|
|
15079
15190
|
queryParams[Param.EmbedApp] = true;
|
|
15080
15191
|
queryParams[Param.HostAppUrl] = encodeURIComponent(hostAppUrl);
|
|
15081
15192
|
queryParams[Param.ViewPortHeight] = window.innerHeight;
|
|
15082
15193
|
queryParams[Param.ViewPortWidth] = window.innerWidth;
|
|
15083
15194
|
queryParams[Param.Version] = version;
|
|
15084
15195
|
queryParams[Param.AuthType] = this.embedConfig.authType;
|
|
15085
|
-
queryParams[Param.blockNonEmbedFullAppAccess] =
|
|
15196
|
+
queryParams[Param.blockNonEmbedFullAppAccess] = blockNonEmbedFullAppAccess;
|
|
15197
|
+
queryParams[Param.AutoLogin] = this.embedConfig.autoLogin;
|
|
15086
15198
|
if (this.embedConfig.disableLoginRedirect === true || this.embedConfig.autoLogin === true) {
|
|
15087
15199
|
queryParams[Param.DisableLoginRedirect] = true;
|
|
15088
15200
|
}
|
|
@@ -15104,15 +15216,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15104
15216
|
if (this.embedConfig.currencyFormat) {
|
|
15105
15217
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
15106
15218
|
}
|
|
15107
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId,
|
|
15219
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, } = this.viewConfig;
|
|
15108
15220
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
15109
15221
|
const additionalFlags = {
|
|
15110
15222
|
...additionalFlagsFromInit,
|
|
15111
15223
|
...additionalFlagsFromView,
|
|
15112
15224
|
};
|
|
15113
|
-
if (enableFlipTooltipToContextMenu) {
|
|
15114
|
-
queryParams[Param.EnableFlipTooltipToContextMenu] = enableFlipTooltipToContextMenu;
|
|
15115
|
-
}
|
|
15116
15225
|
if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
|
|
15117
15226
|
this.handleError('You cannot have both hidden actions and visible actions');
|
|
15118
15227
|
return queryParams;
|
|
@@ -15143,13 +15252,16 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15143
15252
|
* menu click
|
|
15144
15253
|
*/
|
|
15145
15254
|
if (contextMenuTrigger === ContextMenuTriggerOptions.LEFT_CLICK) {
|
|
15146
|
-
queryParams[Param.ContextMenuTrigger] =
|
|
15255
|
+
queryParams[Param.ContextMenuTrigger] = 'left';
|
|
15147
15256
|
}
|
|
15148
15257
|
else if (contextMenuTrigger === ContextMenuTriggerOptions.RIGHT_CLICK) {
|
|
15149
|
-
queryParams[Param.ContextMenuTrigger] =
|
|
15258
|
+
queryParams[Param.ContextMenuTrigger] = 'right';
|
|
15150
15259
|
}
|
|
15151
|
-
|
|
15152
|
-
|
|
15260
|
+
else if (contextMenuTrigger === ContextMenuTriggerOptions.BOTH_CLICKS) {
|
|
15261
|
+
queryParams[Param.ContextMenuTrigger] = 'both';
|
|
15262
|
+
}
|
|
15263
|
+
const embedCustomizations = this.embedConfig.customizations;
|
|
15264
|
+
const spriteUrl = (customizations === null || customizations === void 0 ? void 0 : customizations.iconSpriteUrl) || (embedCustomizations === null || embedCustomizations === void 0 ? void 0 : embedCustomizations.iconSpriteUrl);
|
|
15153
15265
|
if (spriteUrl) {
|
|
15154
15266
|
queryParams[Param.IconSpriteUrl] = spriteUrl.replace('https://', '');
|
|
15155
15267
|
}
|
|
@@ -15221,7 +15333,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15221
15333
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
15222
15334
|
// @ts-ignore
|
|
15223
15335
|
iFrame.allow = 'clipboard-read; clipboard-write; fullscreen;';
|
|
15224
|
-
const
|
|
15336
|
+
const frameParams = this.viewConfig.frameParams;
|
|
15337
|
+
const { height: frameHeight, width: frameWidth, ...restParams } = frameParams || {};
|
|
15225
15338
|
const width = getCssDimension(frameWidth || DEFAULT_EMBED_WIDTH);
|
|
15226
15339
|
const height = getCssDimension(frameHeight || DEFAULT_EMBED_HEIGHT);
|
|
15227
15340
|
setAttributes(iFrame, restParams);
|
|
@@ -15326,8 +15439,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15326
15439
|
}
|
|
15327
15440
|
connectPreRendered() {
|
|
15328
15441
|
const preRenderIds = this.getPreRenderIds();
|
|
15329
|
-
|
|
15330
|
-
|
|
15442
|
+
const preRenderWrapperElement = document.getElementById(preRenderIds.wrapper);
|
|
15443
|
+
this.preRenderWrapper = this.preRenderWrapper || preRenderWrapperElement;
|
|
15331
15444
|
this.preRenderChild = this.preRenderChild || document.getElementById(preRenderIds.child);
|
|
15332
15445
|
if (this.preRenderWrapper && this.preRenderChild) {
|
|
15333
15446
|
this.isPreRendered = true;
|
|
@@ -15829,7 +15942,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15829
15942
|
const filterQuery = getFilterQuery(runtimeFilters || []);
|
|
15830
15943
|
queryString = [filterQuery, queryString].filter(Boolean).join('&');
|
|
15831
15944
|
}
|
|
15832
|
-
return
|
|
15945
|
+
return this.viewConfig.enableV2Shell_experimental
|
|
15833
15946
|
? this.getEmbedBasePath(queryString)
|
|
15834
15947
|
: this.getV1EmbedBasePath(queryString);
|
|
15835
15948
|
}
|
|
@@ -15884,8 +15997,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15884
15997
|
if (dataSource) {
|
|
15885
15998
|
queryParams[Param.DataSources] = `["${dataSource}"]`;
|
|
15886
15999
|
}
|
|
15887
|
-
if (
|
|
15888
|
-
|
|
16000
|
+
if (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) {
|
|
16001
|
+
if (!excludeSearchTokenStringFromURL) {
|
|
16002
|
+
queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
|
|
16003
|
+
}
|
|
15889
16004
|
if (searchOptions.executeSearch) {
|
|
15890
16005
|
queryParams[Param.executeSearch] = true;
|
|
15891
16006
|
}
|
|
@@ -16088,8 +16203,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
16088
16203
|
if (dataSource) {
|
|
16089
16204
|
queryParams[Param.DataSources] = `["${dataSource}"]`;
|
|
16090
16205
|
}
|
|
16091
|
-
if (
|
|
16092
|
-
|
|
16206
|
+
if (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) {
|
|
16207
|
+
if (!excludeSearchTokenStringFromURL) {
|
|
16208
|
+
queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
|
|
16209
|
+
}
|
|
16093
16210
|
if (searchOptions.executeSearch) {
|
|
16094
16211
|
queryParams[Param.executeSearch] = true;
|
|
16095
16212
|
}
|
|
@@ -16284,6 +16401,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
16284
16401
|
'/embed/insights/viz/',
|
|
16285
16402
|
'/liveboard/',
|
|
16286
16403
|
'/insights/liveboard/',
|
|
16404
|
+
'/tsl-editor/PINBOARD_ANSWER_BOOK/',
|
|
16405
|
+
'/import-tsl/PINBOARD_ANSWER_BOOK/',
|
|
16287
16406
|
];
|
|
16288
16407
|
if (liveboardRelatedRoutes.some((path) => data.data.currentPath.startsWith(path))) {
|
|
16289
16408
|
// Ignore the height reset of the frame, if the navigation is
|
|
@@ -16545,6 +16664,12 @@ query GetEurekaVizSnapshots(
|
|
|
16545
16664
|
* @summary Liveboard & visualization embed
|
|
16546
16665
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
16547
16666
|
*/
|
|
16667
|
+
const liveboardHeightWhitelistedRoutes = [
|
|
16668
|
+
'/embed/viz/',
|
|
16669
|
+
'/embed/insights/viz/',
|
|
16670
|
+
'/tsl-editor/PINBOARD_ANSWER_BOOK/',
|
|
16671
|
+
'/import-tsl/PINBOARD_ANSWER_BOOK/',
|
|
16672
|
+
];
|
|
16548
16673
|
/**
|
|
16549
16674
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
16550
16675
|
* waits for the authentication to complete, so you need not wait for
|
|
@@ -16579,8 +16704,8 @@ query GetEurekaVizSnapshots(
|
|
|
16579
16704
|
responder({ type: exports.EmbedEvent.EmbedIframeCenter, data: obj });
|
|
16580
16705
|
};
|
|
16581
16706
|
this.setIframeHeightForNonEmbedLiveboard = (data) => {
|
|
16582
|
-
|
|
16583
|
-
|
|
16707
|
+
const routePath = data.data.currentPath;
|
|
16708
|
+
if (liveboardHeightWhitelistedRoutes.some((path) => routePath.startsWith(path))) {
|
|
16584
16709
|
return;
|
|
16585
16710
|
}
|
|
16586
16711
|
this.setIFrameHeight(this.defaultHeight);
|
|
@@ -16740,8 +16865,9 @@ query GetEurekaVizSnapshots(
|
|
|
16740
16865
|
}
|
|
16741
16866
|
/**
|
|
16742
16867
|
* Triggers an event to the embedded app
|
|
16743
|
-
* @param messageType The event type
|
|
16744
|
-
* @param data The payload to send with the message
|
|
16868
|
+
* @param {HostEvent} messageType The event type
|
|
16869
|
+
* @param {any} data The payload to send with the message
|
|
16870
|
+
* @returns A promise that resolves with the response from the embedded app
|
|
16745
16871
|
*/
|
|
16746
16872
|
trigger(messageType, data = {}) {
|
|
16747
16873
|
const dataWithVizId = data;
|
|
@@ -16863,7 +16989,7 @@ query GetEurekaVizSnapshots(
|
|
|
16863
16989
|
this.viewConfig = viewConfig;
|
|
16864
16990
|
}
|
|
16865
16991
|
getIframeSrc() {
|
|
16866
|
-
const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, } = this.viewConfig;
|
|
16992
|
+
const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, } = this.viewConfig;
|
|
16867
16993
|
const path = 'insights/conv-assist';
|
|
16868
16994
|
if (!worksheetId) {
|
|
16869
16995
|
this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
|
|
@@ -16876,6 +17002,15 @@ query GetEurekaVizSnapshots(
|
|
|
16876
17002
|
if (!isUndefined_1(hideSourceSelection)) {
|
|
16877
17003
|
queryParams[Param.HideSourceSelection] = !!hideSourceSelection;
|
|
16878
17004
|
}
|
|
17005
|
+
if (!isUndefined_1(dataPanelV2)) {
|
|
17006
|
+
queryParams[Param.DataPanelV2Enabled] = !!dataPanelV2;
|
|
17007
|
+
}
|
|
17008
|
+
if (!isUndefined_1(showSpotterLimitations)) {
|
|
17009
|
+
queryParams[Param.ShowSpotterLimitations] = !!showSpotterLimitations;
|
|
17010
|
+
}
|
|
17011
|
+
if (!isUndefined_1(hideSampleQuestions)) {
|
|
17012
|
+
queryParams[Param.HideSampleQuestions] = !!hideSampleQuestions;
|
|
17013
|
+
}
|
|
16879
17014
|
let query = '';
|
|
16880
17015
|
const queryParamsString = getQueryParamString(queryParams, true);
|
|
16881
17016
|
if (queryParamsString) {
|