@thoughtspot/visual-embed-sdk 1.33.2 → 1.33.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/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +5 -2
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/auth.spec.js +15 -3
- package/cjs/src/auth.spec.js.map +1 -1
- package/cjs/src/css-variables.d.ts +2 -2
- package/cjs/src/embed/app.d.ts +20 -6
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +3 -2
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +10 -0
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/base.spec.js +13 -1
- package/cjs/src/embed/base.spec.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +4 -0
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +13 -0
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +0 -3
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +1 -2
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +2 -2
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/search.js +1 -1
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js +6 -6
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +1 -1
- package/cjs/src/errors.d.ts +1 -0
- package/cjs/src/errors.d.ts.map +1 -1
- package/cjs/src/errors.js +10 -9
- package/cjs/src/errors.js.map +1 -1
- package/cjs/src/react/index.spec.js +1 -1
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/tokenizedFetch.d.ts +0 -1
- package/cjs/src/tokenizedFetch.d.ts.map +1 -1
- package/cjs/src/tokenizedFetch.js +0 -1
- package/cjs/src/tokenizedFetch.js.map +1 -1
- package/cjs/src/types.d.ts +40 -22
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +35 -17
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/processData.d.ts.map +1 -1
- package/cjs/src/utils/processData.js +0 -1
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils/sessionInfoService.d.ts +0 -4
- package/cjs/src/utils/sessionInfoService.d.ts.map +1 -1
- package/cjs/src/utils/sessionInfoService.js +0 -4
- package/cjs/src/utils/sessionInfoService.js.map +1 -1
- package/cjs/src/utils.d.ts +1 -0
- package/cjs/src/utils.d.ts.map +1 -1
- package/cjs/src/utils.js +13 -3
- package/cjs/src/utils.js.map +1 -1
- package/cjs/src/utils.spec.js +6 -6
- package/cjs/src/utils.spec.js.map +1 -1
- package/dist/{index-CqrIh3Vj.js → index-Cl8Rsh6W.js} +1 -1
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/css-variables.d.ts +2 -2
- package/dist/src/embed/app.d.ts +20 -6
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +0 -3
- package/dist/src/embed/liveboard.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/tokenizedFetch.d.ts +0 -1
- package/dist/src/tokenizedFetch.d.ts.map +1 -1
- package/dist/src/types.d.ts +40 -22
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/processData.d.ts.map +1 -1
- package/dist/src/utils/sessionInfoService.d.ts +0 -4
- package/dist/src/utils/sessionInfoService.d.ts.map +1 -1
- package/dist/src/utils.d.ts +1 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +72 -42
- package/dist/tsembed-react.js +71 -41
- package/dist/tsembed.es.js +72 -42
- package/dist/tsembed.js +71 -41
- package/dist/visual-embed-sdk-react-full.d.ts +62 -38
- package/dist/visual-embed-sdk-react.d.ts +62 -38
- package/dist/visual-embed-sdk.d.ts +62 -38
- package/lib/package.json +1 -1
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +6 -3
- package/lib/src/auth.js.map +1 -1
- package/lib/src/auth.spec.js +15 -3
- package/lib/src/auth.spec.js.map +1 -1
- package/lib/src/css-variables.d.ts +2 -2
- package/lib/src/embed/app.d.ts +20 -6
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +3 -2
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +10 -0
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/base.spec.js +13 -1
- package/lib/src/embed/base.spec.js.map +1 -1
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +4 -0
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +13 -0
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +0 -3
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +1 -2
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +2 -2
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/search.js +1 -1
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +6 -6
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +1 -1
- package/lib/src/errors.d.ts +1 -0
- package/lib/src/errors.d.ts.map +1 -1
- package/lib/src/errors.js +10 -9
- package/lib/src/errors.js.map +1 -1
- package/lib/src/react/index.spec.js +1 -1
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/tokenizedFetch.d.ts +0 -1
- package/lib/src/tokenizedFetch.d.ts.map +1 -1
- package/lib/src/tokenizedFetch.js +0 -1
- package/lib/src/tokenizedFetch.js.map +1 -1
- package/lib/src/types.d.ts +40 -22
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +35 -17
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/processData.d.ts.map +1 -1
- package/lib/src/utils/processData.js +0 -1
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/sessionInfoService.d.ts +0 -4
- package/lib/src/utils/sessionInfoService.d.ts.map +1 -1
- package/lib/src/utils/sessionInfoService.js +0 -4
- package/lib/src/utils/sessionInfoService.js.map +1 -1
- package/lib/src/utils.d.ts +1 -0
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +11 -2
- package/lib/src/utils.js.map +1 -1
- package/lib/src/utils.spec.js +6 -6
- package/lib/src/utils.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +62 -38
- package/package.json +1 -1
- package/src/auth.spec.ts +15 -3
- package/src/auth.ts +7 -3
- package/src/css-variables.ts +2 -2
- package/src/embed/app.spec.ts +15 -0
- package/src/embed/app.ts +23 -7
- package/src/embed/base.spec.ts +13 -1
- package/src/embed/conversation.spec.ts +16 -0
- package/src/embed/conversation.ts +4 -0
- package/src/embed/liveboard.spec.ts +2 -2
- package/src/embed/liveboard.ts +1 -4
- package/src/embed/search.spec.ts +6 -6
- package/src/embed/search.ts +1 -1
- package/src/embed/ts-embed.spec.ts +1 -1
- package/src/errors.ts +10 -9
- package/src/react/index.spec.tsx +1 -1
- package/src/tokenizedFetch.ts +0 -1
- package/src/types.ts +38 -20
- package/src/utils/processData.ts +0 -1
- package/src/utils/sessionInfoService.ts +0 -4
- package/src/utils.spec.ts +6 -6
- package/src/utils.ts +14 -2
package/dist/tsembed.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.33.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.33.4 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -173,6 +173,10 @@
|
|
|
173
173
|
}
|
|
174
174
|
return value;
|
|
175
175
|
};
|
|
176
|
+
const getSSOMarker = (markerId) => {
|
|
177
|
+
const encStringToAppend = encodeURIComponent(markerId);
|
|
178
|
+
return `tsSSOMarker=${encStringToAppend}`;
|
|
179
|
+
};
|
|
176
180
|
/**
|
|
177
181
|
* Append a string to a URL's hash fragment
|
|
178
182
|
* @param url A URL
|
|
@@ -181,12 +185,17 @@
|
|
|
181
185
|
const appendToUrlHash = (url, stringToAppend) => {
|
|
182
186
|
let outputUrl = url;
|
|
183
187
|
const encStringToAppend = encodeURIComponent(stringToAppend);
|
|
188
|
+
const marker = `tsSSOMarker=${encStringToAppend}`;
|
|
189
|
+
let splitAdder = '';
|
|
184
190
|
if (url.indexOf('#') >= 0) {
|
|
185
|
-
|
|
191
|
+
// If second half of hash contains a '?' already add a '&' instead of
|
|
192
|
+
// '?' which appends to query params.
|
|
193
|
+
splitAdder = url.split('#')[1].indexOf('?') >= 0 ? '&' : '?';
|
|
186
194
|
}
|
|
187
195
|
else {
|
|
188
|
-
|
|
196
|
+
splitAdder = '#?';
|
|
189
197
|
}
|
|
198
|
+
outputUrl = `${outputUrl}${splitAdder}${marker}`;
|
|
190
199
|
return outputUrl;
|
|
191
200
|
};
|
|
192
201
|
/**
|
|
@@ -1553,22 +1562,26 @@
|
|
|
1553
1562
|
*/
|
|
1554
1563
|
EmbedEvent["Rename"] = "rename";
|
|
1555
1564
|
/**
|
|
1556
|
-
* Emitted if the user wants to intercept the search execution
|
|
1557
|
-
* and implement logic to decide whether to run the search or not
|
|
1558
1565
|
*
|
|
1559
|
-
*
|
|
1566
|
+
* This event can be emitted to intercept search execution initiated by
|
|
1567
|
+
* the users and implement the logic to allow or restrict search execution.
|
|
1568
|
+
* You can can also show custom error text if the search query must be
|
|
1569
|
+
* restricted due to your application or business requirements.
|
|
1570
|
+
|
|
1571
|
+
* Prerequisite: Set `isOnBeforeGetVizDataInterceptEnabled` to `true`
|
|
1560
1572
|
* for this embed event to get emitted.
|
|
1561
1573
|
* @param: payload
|
|
1562
1574
|
* @param: responder
|
|
1563
1575
|
* Contains elements that lets developers define whether ThoughtSpot
|
|
1564
|
-
*
|
|
1576
|
+
* should run the search, and if not, what error message
|
|
1577
|
+
* should be shown to the user.
|
|
1565
1578
|
*
|
|
1566
|
-
* execute: When execute returns true
|
|
1567
|
-
* When execute returns false
|
|
1579
|
+
* execute: When execute returns `true`, the search will be run.
|
|
1580
|
+
* When execute returns `false`, the search will not be executed.
|
|
1568
1581
|
*
|
|
1569
|
-
* error: Developers can customize the
|
|
1570
|
-
*
|
|
1571
|
-
* @version SDK : 1.29.0 | Thoughtspot : 10.
|
|
1582
|
+
* error: Developers can customize the error message text when `execute`
|
|
1583
|
+
* returns `false` using the error parameter in responder.
|
|
1584
|
+
* @version SDK : 1.29.0 | Thoughtspot : 10.3.0.cl
|
|
1572
1585
|
* @example
|
|
1573
1586
|
*```js
|
|
1574
1587
|
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
@@ -1608,15 +1621,15 @@
|
|
|
1608
1621
|
*/
|
|
1609
1622
|
EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
|
|
1610
1623
|
/**
|
|
1611
|
-
* Emitted when parameter changes in an
|
|
1612
|
-
* or
|
|
1624
|
+
* Emitted when parameter changes in an Answer
|
|
1625
|
+
* or Liveboard
|
|
1613
1626
|
*
|
|
1614
1627
|
* ```js
|
|
1615
1628
|
* liveboardEmbed.on(EmbedEvent.ParameterChanged, (payload) => {
|
|
1616
1629
|
* console.log('payload', payload);
|
|
1617
1630
|
* })
|
|
1618
1631
|
*```
|
|
1619
|
-
* @version SDK : 1.29.0 | Thoughtspot : 10.
|
|
1632
|
+
* @version SDK : 1.29.0 | Thoughtspot : 10.3.0.cl
|
|
1620
1633
|
*/
|
|
1621
1634
|
EmbedEvent["ParameterChanged"] = "parameterChanged";
|
|
1622
1635
|
})(exports.EmbedEvent || (exports.EmbedEvent = {}));
|
|
@@ -2347,8 +2360,12 @@
|
|
|
2347
2360
|
* see link:https://developers.thoughtspot.com/docs/runtime-filters#rtOperator[Developer Documentation].
|
|
2348
2361
|
*
|
|
2349
2362
|
* `values` - An array of one or several values. The value definition on the
|
|
2350
|
-
* data type you choose to filter on. For a complete list of supported data types,
|
|
2351
|
-
*
|
|
2363
|
+
* data type you choose to filter on. For a complete list of supported data types, see
|
|
2364
|
+
* link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported data types].
|
|
2365
|
+
*
|
|
2366
|
+
* `type` - To update filters for date time, specify the date format type.
|
|
2367
|
+
* For more information and examples, see link:https://developers.thoughtspot.com/docs/embed-liveboard#_date_filters[Date filters].
|
|
2368
|
+
*
|
|
2352
2369
|
* @example
|
|
2353
2370
|
* ```js
|
|
2354
2371
|
*
|
|
@@ -2478,7 +2495,7 @@
|
|
|
2478
2495
|
*/
|
|
2479
2496
|
HostEvent["AskSage"] = "AskSage";
|
|
2480
2497
|
/**
|
|
2481
|
-
* Trigger
|
|
2498
|
+
* Trigger cross filter update action on a Liveboard
|
|
2482
2499
|
* @example
|
|
2483
2500
|
* ```js
|
|
2484
2501
|
* liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
|
|
@@ -2493,7 +2510,7 @@
|
|
|
2493
2510
|
*/
|
|
2494
2511
|
HostEvent["UpdateCrossFilter"] = "UpdateCrossFilter";
|
|
2495
2512
|
/**
|
|
2496
|
-
* Trigger
|
|
2513
|
+
* Trigger reset action for a personalized Liveboard view.
|
|
2497
2514
|
* @example
|
|
2498
2515
|
* ```js
|
|
2499
2516
|
* liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
|
|
@@ -2639,6 +2656,7 @@
|
|
|
2639
2656
|
Param["ShowLiveboardReverifyBanner"] = "showLiveboardReverifyBanner";
|
|
2640
2657
|
Param["LiveboardHeaderV2"] = "isLiveboardHeaderV2Enabled";
|
|
2641
2658
|
Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
|
|
2659
|
+
Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
|
|
2642
2660
|
})(Param || (Param = {}));
|
|
2643
2661
|
/**
|
|
2644
2662
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -3610,7 +3628,7 @@
|
|
|
3610
3628
|
*/
|
|
3611
3629
|
Action["AIHighlights"] = "AIHighlights";
|
|
3612
3630
|
/**
|
|
3613
|
-
* Action ID for edit schedule action on schedule on homepage
|
|
3631
|
+
* Action ID for edit the schedule action on schedule on homepage
|
|
3614
3632
|
* @example
|
|
3615
3633
|
* ```js
|
|
3616
3634
|
* disabledActions: [Action.EditScheduleHomepage]
|
|
@@ -3672,6 +3690,15 @@
|
|
|
3672
3690
|
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
3673
3691
|
*/
|
|
3674
3692
|
Action["KPIAnalysisCTA"] = "kpiAnalysisCTA";
|
|
3693
|
+
/**
|
|
3694
|
+
* Action ID for disabling chip reorder in Answer and Liveboard
|
|
3695
|
+
* @example
|
|
3696
|
+
* ```js
|
|
3697
|
+
* const disabledActions = [Action.DisableChipReorder]
|
|
3698
|
+
* ```
|
|
3699
|
+
* @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
|
|
3700
|
+
*/
|
|
3701
|
+
Action["DisableChipReorder"] = "disableChipReorder";
|
|
3675
3702
|
})(exports.Action || (exports.Action = {}));
|
|
3676
3703
|
exports.PrefetchFeatures = void 0;
|
|
3677
3704
|
(function (PrefetchFeatures) {
|
|
@@ -6041,20 +6068,21 @@
|
|
|
6041
6068
|
|
|
6042
6069
|
const ERROR_MESSAGE = {
|
|
6043
6070
|
INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6071
|
+
SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND: 'Please select a worksheet to get started',
|
|
6072
|
+
LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a Liveboard to embed.',
|
|
6073
|
+
TRIGGER_TIMED_OUT: 'Trigger timed-out in getting a response',
|
|
6074
|
+
SEARCHEMBED_BETA_WRANING_MESSAGE: 'SearchEmbed is in Beta in this release.',
|
|
6075
|
+
SAGE_EMBED_BETA_WARNING_MESSAGE: 'SageEmbed is in Beta in this release.',
|
|
6076
|
+
THIRD_PARTY_COOKIE_BLOCKED_ALERT: 'Third-party cookie access is blocked on this browser. Please allow third-party cookies for this to work properly. \nYou can use `suppressNoCookieAccessAlert` to suppress this message.',
|
|
6077
|
+
DUPLICATE_TOKEN_ERR: 'Duplicate token. Please issue a new token every time getAuthToken callback is called. See https://developers.thoughtspot.com/docs/?pageid=embed-auth#trusted-auth-embed for more details.',
|
|
6050
6078
|
SDK_NOT_INITIALIZED: 'SDK not initialized',
|
|
6051
|
-
SESSION_INFO_FAILED: 'Failed to get session
|
|
6079
|
+
SESSION_INFO_FAILED: 'Failed to get session information',
|
|
6052
6080
|
INVALID_TOKEN_ERROR: 'Received invalid token from getAuthToken callback or authToken endpoint.',
|
|
6053
6081
|
MIXPANEL_TOKEN_NOT_FOUND: 'Mixpanel token not found in session info',
|
|
6054
|
-
PRERENDER_ID_MISSING: 'PreRender
|
|
6082
|
+
PRERENDER_ID_MISSING: 'PreRender ID is required for preRender',
|
|
6055
6083
|
SYNC_STYLE_CALLED_BEFORE_RENDER: 'PreRender should be called before using syncPreRenderStyle',
|
|
6056
6084
|
CSP_VIOLATION_ALERT: 'CSP violation detected. Please check the console errors for more details.',
|
|
6057
|
-
CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE: 'Please
|
|
6085
|
+
CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE: 'Please set up CSP correctly for the application to start working. For more information, see https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts. \n If the issue persists, refer to https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts',
|
|
6058
6086
|
MISSING_REPORTING_OBSERVER: 'ReportingObserver not supported',
|
|
6059
6087
|
};
|
|
6060
6088
|
|
|
@@ -6272,7 +6300,6 @@
|
|
|
6272
6300
|
* Fetch wrapper that adds the authentication token to the request.
|
|
6273
6301
|
* Use this to call the ThoughtSpot APIs when using the visual embed sdk.
|
|
6274
6302
|
* The interface for this method is the same as Web `Fetch`.
|
|
6275
|
-
*
|
|
6276
6303
|
* @param input
|
|
6277
6304
|
* @param init
|
|
6278
6305
|
* @example
|
|
@@ -13714,7 +13741,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
13714
13741
|
* Returns the session info object and caches it for future use.
|
|
13715
13742
|
* Once fetched the session info object is cached and returned from the cache on
|
|
13716
13743
|
* subsequent calls.
|
|
13717
|
-
*
|
|
13718
13744
|
* @example ```js
|
|
13719
13745
|
* const sessionInfo = await getSessionInfo();
|
|
13720
13746
|
* console.log(sessionInfo);
|
|
@@ -13733,7 +13759,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
13733
13759
|
}
|
|
13734
13760
|
/**
|
|
13735
13761
|
* Processes the session info response and returns the session info object.
|
|
13736
|
-
*
|
|
13737
13762
|
* @param sessionInfoResp {any} Response from the session info API.
|
|
13738
13763
|
* @returns {SessionInfo} The session info object.
|
|
13739
13764
|
* @example ```js
|
|
@@ -13924,7 +13949,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
13924
13949
|
* Check if we are stuck at the SSO redirect URL
|
|
13925
13950
|
*/
|
|
13926
13951
|
function isAtSSORedirectUrl() {
|
|
13927
|
-
return window.location.href.indexOf(SSO_REDIRECTION_MARKER_GUID) >= 0;
|
|
13952
|
+
return window.location.href.indexOf(getSSOMarker(SSO_REDIRECTION_MARKER_GUID)) >= 0;
|
|
13928
13953
|
}
|
|
13929
13954
|
/**
|
|
13930
13955
|
* Remove the SSO redirect URL marker
|
|
@@ -13935,7 +13960,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
13935
13960
|
// reload the page which we don't want. We'll live with adding an
|
|
13936
13961
|
// unnecessary hash to the parent page URL until we find any use case where
|
|
13937
13962
|
// that creates an issue.
|
|
13938
|
-
|
|
13963
|
+
// Replace any occurences of ?ssoMarker=guid or &ssoMarker=guid.
|
|
13964
|
+
let updatedHash = window.location.hash.replace(`?${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
13965
|
+
updatedHash = updatedHash.replace(`&${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
13966
|
+
window.location.hash = updatedHash;
|
|
13939
13967
|
}
|
|
13940
13968
|
/**
|
|
13941
13969
|
* Perform token based authentication
|
|
@@ -14468,7 +14496,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14468
14496
|
}
|
|
14469
14497
|
/**
|
|
14470
14498
|
* Responds to AuthInit sent from host signifying successful authentication in host.
|
|
14471
|
-
*
|
|
14472
14499
|
* @param e
|
|
14473
14500
|
* @returns {any}
|
|
14474
14501
|
*/
|
|
@@ -14609,7 +14636,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14609
14636
|
});
|
|
14610
14637
|
}
|
|
14611
14638
|
|
|
14612
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.
|
|
14639
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.4";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","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",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","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:"30 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};
|
|
14613
14640
|
|
|
14614
14641
|
/**
|
|
14615
14642
|
* Copyright (c) 2022
|
|
@@ -15753,9 +15780,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15753
15780
|
* embedded Liveboard or visualization.
|
|
15754
15781
|
*/
|
|
15755
15782
|
getEmbedParams() {
|
|
15756
|
-
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 =
|
|
15783
|
+
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
|
|
15757
15784
|
/* eslint-disable-next-line max-len */
|
|
15758
|
-
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, } = this.viewConfig;
|
|
15785
|
+
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, } = this.viewConfig;
|
|
15759
15786
|
let params = {};
|
|
15760
15787
|
params[Param.EmbedApp] = true;
|
|
15761
15788
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
@@ -15770,6 +15797,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15770
15797
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
15771
15798
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
15772
15799
|
params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
|
|
15800
|
+
params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
|
|
15773
15801
|
params = this.getBaseQueryParams(params);
|
|
15774
15802
|
if (fullHeight === true) {
|
|
15775
15803
|
params[Param.fullHeight] = true;
|
|
@@ -16048,7 +16076,7 @@ query GetEurekaVizSnapshots(
|
|
|
16048
16076
|
let params = {};
|
|
16049
16077
|
params[Param.EmbedApp] = true;
|
|
16050
16078
|
params = this.getBaseQueryParams(params);
|
|
16051
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 =
|
|
16079
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, } = this.viewConfig;
|
|
16052
16080
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
16053
16081
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
16054
16082
|
if (fullHeight === true) {
|
|
@@ -16224,7 +16252,6 @@ query GetEurekaVizSnapshots(
|
|
|
16224
16252
|
/**
|
|
16225
16253
|
* Returns the full url of the liveboard/viz which can be used to open
|
|
16226
16254
|
* this liveboard inside the full Thoughtspot application in a new tab.
|
|
16227
|
-
*
|
|
16228
16255
|
* @returns url string
|
|
16229
16256
|
*/
|
|
16230
16257
|
getLiveboardUrl() {
|
|
@@ -16303,7 +16330,7 @@ query GetEurekaVizSnapshots(
|
|
|
16303
16330
|
}
|
|
16304
16331
|
getEmbedParams() {
|
|
16305
16332
|
var _a;
|
|
16306
|
-
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 =
|
|
16333
|
+
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
|
|
16307
16334
|
/* eslint-disable-next-line max-len */
|
|
16308
16335
|
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, collapseSearchBar = true, } = this.viewConfig;
|
|
16309
16336
|
const queryParams = this.getBaseQueryParams();
|
|
@@ -16927,6 +16954,9 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
16927
16954
|
getIframeSrc() {
|
|
16928
16955
|
const { worksheetId, searchOptions, } = this.viewConfig;
|
|
16929
16956
|
const path = 'insights/conv-assist';
|
|
16957
|
+
if (!worksheetId) {
|
|
16958
|
+
this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
|
|
16959
|
+
}
|
|
16930
16960
|
const queryParams = this.getBaseQueryParams();
|
|
16931
16961
|
queryParams[Param.SpotterEnabled] = true;
|
|
16932
16962
|
let query = '';
|
|
@@ -1118,7 +1118,7 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
1118
1118
|
*/
|
|
1119
1119
|
dataPanelCustomGroupsAccordionInitialState?: DataPanelCustomColumnGroupsAccordionState;
|
|
1120
1120
|
/**
|
|
1121
|
-
* This
|
|
1121
|
+
* This attribute can be used to enable the two-column layout on an embedded Liveboard
|
|
1122
1122
|
* @type {boolean}
|
|
1123
1123
|
* @default false
|
|
1124
1124
|
* @version SDK: 1.32.0 | ThoughtSpot:10.1.0.cl
|
|
@@ -1132,17 +1132,17 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
1132
1132
|
*/
|
|
1133
1133
|
enable2ColumnLayout?: boolean;
|
|
1134
1134
|
/**
|
|
1135
|
-
* Flag
|
|
1135
|
+
* Flag that allows using `EmbedEvent.OnBeforeGetVizDataIntercept`.
|
|
1136
1136
|
* @version SDK : 1.29.0 | Thoughtspot : 10.1.0.cl
|
|
1137
1137
|
*/
|
|
1138
1138
|
isOnBeforeGetVizDataInterceptEnabled?: boolean;
|
|
1139
1139
|
/**
|
|
1140
1140
|
* Flag to use home page search bar mode
|
|
1141
|
-
* @version SDK : 1.33.0 | Thoughtspot : 10.
|
|
1141
|
+
* @version SDK : 1.33.0 | Thoughtspot : 10.3.0.cl
|
|
1142
1142
|
*/
|
|
1143
1143
|
homePageSearchBarMode?: HomePageSearchBarMode;
|
|
1144
1144
|
/**
|
|
1145
|
-
* This flag
|
|
1145
|
+
* This flag can be used to enable the compact header in Liveboard
|
|
1146
1146
|
* @type {boolean}
|
|
1147
1147
|
* @default false
|
|
1148
1148
|
* @version SDK: 1.35.0 | ThoughtSpot:10.3.0.cl
|
|
@@ -1156,7 +1156,7 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
1156
1156
|
*/
|
|
1157
1157
|
isLiveboardCompactHeaderEnabled?: boolean;
|
|
1158
1158
|
/**
|
|
1159
|
-
* This flag
|
|
1159
|
+
* This flag can be used to show or hide the Liveboard verified icon in the compact header.
|
|
1160
1160
|
* @type {boolean}
|
|
1161
1161
|
* @default true
|
|
1162
1162
|
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
@@ -1170,7 +1170,7 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
1170
1170
|
*/
|
|
1171
1171
|
showLiveboardVerifiedBadge?: boolean;
|
|
1172
1172
|
/**
|
|
1173
|
-
* This flag
|
|
1173
|
+
* This flag can be used to show or hide the re-verify banner on the Liveboard compact header
|
|
1174
1174
|
* @type {boolean}
|
|
1175
1175
|
* @default true
|
|
1176
1176
|
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
@@ -1183,6 +1183,20 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
1183
1183
|
* ```
|
|
1184
1184
|
*/
|
|
1185
1185
|
showLiveboardReverifyBanner?: boolean;
|
|
1186
|
+
/**
|
|
1187
|
+
* This flag is used to enable unified search experience for full app embed.
|
|
1188
|
+
* @type {boolean}
|
|
1189
|
+
* @default true
|
|
1190
|
+
* @version SDK: 1.34.0 | ThoughtSpot:10.5.0.cl
|
|
1191
|
+
* @example
|
|
1192
|
+
* ```js
|
|
1193
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
1194
|
+
* ... // other options
|
|
1195
|
+
* isUnifiedSearchExperienceEnabled: true,
|
|
1196
|
+
* })
|
|
1197
|
+
* ```
|
|
1198
|
+
*/
|
|
1199
|
+
isUnifiedSearchExperienceEnabled?: boolean;
|
|
1186
1200
|
}
|
|
1187
1201
|
/**
|
|
1188
1202
|
* Embeds full ThoughtSpot experience in a host application.
|
|
@@ -1478,7 +1492,6 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
1478
1492
|
*
|
|
1479
1493
|
* Since, this will show preview images, be careful that it may show
|
|
1480
1494
|
* undesired data to the user when using row level security.
|
|
1481
|
-
*
|
|
1482
1495
|
* @example
|
|
1483
1496
|
* ```js
|
|
1484
1497
|
* const embed = new LiveboardEmbed('#embed-container', {
|
|
@@ -1488,7 +1501,6 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
1488
1501
|
* });
|
|
1489
1502
|
* embed.render();
|
|
1490
1503
|
* ```
|
|
1491
|
-
*
|
|
1492
1504
|
* @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
|
|
1493
1505
|
*/
|
|
1494
1506
|
showPreviewLoader?: boolean;
|
|
@@ -1576,7 +1588,6 @@ export declare class LiveboardEmbed extends V1Embed {
|
|
|
1576
1588
|
/**
|
|
1577
1589
|
* Returns the full url of the liveboard/viz which can be used to open
|
|
1578
1590
|
* this liveboard inside the full Thoughtspot application in a new tab.
|
|
1579
|
-
*
|
|
1580
1591
|
* @returns url string
|
|
1581
1592
|
*/
|
|
1582
1593
|
getLiveboardUrl(): string;
|
|
@@ -1987,7 +1998,6 @@ export type SessionInfo = {
|
|
|
1987
1998
|
* Returns the session info object and caches it for future use.
|
|
1988
1999
|
* Once fetched the session info object is cached and returned from the cache on
|
|
1989
2000
|
* subsequent calls.
|
|
1990
|
-
*
|
|
1991
2001
|
* @example ```js
|
|
1992
2002
|
* const sessionInfo = await getSessionInfo();
|
|
1993
2003
|
* console.log(sessionInfo);
|
|
@@ -1999,7 +2009,6 @@ export declare function getSessionInfo(): Promise<SessionInfo>;
|
|
|
1999
2009
|
/**
|
|
2000
2010
|
* Returns the cached session info object. If the client is not authenticated the
|
|
2001
2011
|
* function will return null.
|
|
2002
|
-
*
|
|
2003
2012
|
* @example ```js
|
|
2004
2013
|
* const sessionInfo = getCachedSessionInfo();
|
|
2005
2014
|
* if (sessionInfo) {
|
|
@@ -2014,7 +2023,6 @@ export declare function getSessionInfo(): Promise<SessionInfo>;
|
|
|
2014
2023
|
export declare function getCachedSessionInfo(): SessionInfo | null;
|
|
2015
2024
|
/**
|
|
2016
2025
|
* Processes the session info response and returns the session info object.
|
|
2017
|
-
*
|
|
2018
2026
|
* @param sessionInfoResp {any} Response from the session info API.
|
|
2019
2027
|
* @returns {SessionInfo} The session info object.
|
|
2020
2028
|
* @example ```js
|
|
@@ -2027,7 +2035,6 @@ export declare function getCachedSessionInfo(): SessionInfo | null;
|
|
|
2027
2035
|
export declare const getSessionDetails: (sessionInfoResp: any) => SessionInfo;
|
|
2028
2036
|
/**
|
|
2029
2037
|
* Resets the cached session info object and forces a new fetch on the next call.
|
|
2030
|
-
*
|
|
2031
2038
|
* @example ```js
|
|
2032
2039
|
* resetCachedSessionInfo();
|
|
2033
2040
|
* const sessionInfo = await getSessionInfo();
|
|
@@ -3023,7 +3030,7 @@ export interface ViewConfig {
|
|
|
3023
3030
|
*/
|
|
3024
3031
|
enableV2Shell_experimental?: boolean;
|
|
3025
3032
|
/**
|
|
3026
|
-
* To set the initial state of the search bar in case of saved
|
|
3033
|
+
* To set the initial state of the search bar in case of saved Answers.
|
|
3027
3034
|
* @default true
|
|
3028
3035
|
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
3029
3036
|
* @example
|
|
@@ -3036,7 +3043,7 @@ export interface ViewConfig {
|
|
|
3036
3043
|
collapseSearchBar?: boolean;
|
|
3037
3044
|
/**
|
|
3038
3045
|
* This flag can be used to disable links inside the embedded app,
|
|
3039
|
-
* and
|
|
3046
|
+
* and disable redirection of links in a new tab.
|
|
3040
3047
|
* @example
|
|
3041
3048
|
* ```js
|
|
3042
3049
|
* const embed = new LiveboardEmbed('#embed', {
|
|
@@ -3048,7 +3055,7 @@ export interface ViewConfig {
|
|
|
3048
3055
|
disableRedirectionLinksInNewTab?: boolean;
|
|
3049
3056
|
/**
|
|
3050
3057
|
* Flag to control Data panel experience
|
|
3051
|
-
* @default
|
|
3058
|
+
* @default false
|
|
3052
3059
|
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
3053
3060
|
* @example
|
|
3054
3061
|
* ```js
|
|
@@ -4156,22 +4163,26 @@ export declare enum EmbedEvent {
|
|
|
4156
4163
|
*/
|
|
4157
4164
|
Rename = "rename",
|
|
4158
4165
|
/**
|
|
4159
|
-
* Emitted if the user wants to intercept the search execution
|
|
4160
|
-
* and implement logic to decide whether to run the search or not
|
|
4161
4166
|
*
|
|
4162
|
-
*
|
|
4167
|
+
* This event can be emitted to intercept search execution initiated by
|
|
4168
|
+
* the users and implement the logic to allow or restrict search execution.
|
|
4169
|
+
* You can can also show custom error text if the search query must be
|
|
4170
|
+
* restricted due to your application or business requirements.
|
|
4171
|
+
|
|
4172
|
+
* Prerequisite: Set `isOnBeforeGetVizDataInterceptEnabled` to `true`
|
|
4163
4173
|
* for this embed event to get emitted.
|
|
4164
4174
|
* @param: payload
|
|
4165
4175
|
* @param: responder
|
|
4166
4176
|
* Contains elements that lets developers define whether ThoughtSpot
|
|
4167
|
-
*
|
|
4177
|
+
* should run the search, and if not, what error message
|
|
4178
|
+
* should be shown to the user.
|
|
4168
4179
|
*
|
|
4169
|
-
* execute: When execute returns true
|
|
4170
|
-
* When execute returns false
|
|
4180
|
+
* execute: When execute returns `true`, the search will be run.
|
|
4181
|
+
* When execute returns `false`, the search will not be executed.
|
|
4171
4182
|
*
|
|
4172
|
-
* error: Developers can customize the
|
|
4173
|
-
*
|
|
4174
|
-
* @version SDK : 1.29.0 | Thoughtspot : 10.
|
|
4183
|
+
* error: Developers can customize the error message text when `execute`
|
|
4184
|
+
* returns `false` using the error parameter in responder.
|
|
4185
|
+
* @version SDK : 1.29.0 | Thoughtspot : 10.3.0.cl
|
|
4175
4186
|
* @example
|
|
4176
4187
|
*```js
|
|
4177
4188
|
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
@@ -4211,15 +4222,15 @@ export declare enum EmbedEvent {
|
|
|
4211
4222
|
*/
|
|
4212
4223
|
OnBeforeGetVizDataIntercept = "onBeforeGetVizDataIntercept",
|
|
4213
4224
|
/**
|
|
4214
|
-
* Emitted when parameter changes in an
|
|
4215
|
-
* or
|
|
4225
|
+
* Emitted when parameter changes in an Answer
|
|
4226
|
+
* or Liveboard
|
|
4216
4227
|
*
|
|
4217
4228
|
* ```js
|
|
4218
4229
|
* liveboardEmbed.on(EmbedEvent.ParameterChanged, (payload) => {
|
|
4219
4230
|
* console.log('payload', payload);
|
|
4220
4231
|
* })
|
|
4221
4232
|
*```
|
|
4222
|
-
* @version SDK : 1.29.0 | Thoughtspot : 10.
|
|
4233
|
+
* @version SDK : 1.29.0 | Thoughtspot : 10.3.0.cl
|
|
4223
4234
|
*/
|
|
4224
4235
|
ParameterChanged = "parameterChanged"
|
|
4225
4236
|
}
|
|
@@ -4948,8 +4959,12 @@ export declare enum HostEvent {
|
|
|
4948
4959
|
* see link:https://developers.thoughtspot.com/docs/runtime-filters#rtOperator[Developer Documentation].
|
|
4949
4960
|
*
|
|
4950
4961
|
* `values` - An array of one or several values. The value definition on the
|
|
4951
|
-
* data type you choose to filter on. For a complete list of supported data types,
|
|
4952
|
-
*
|
|
4962
|
+
* data type you choose to filter on. For a complete list of supported data types, see
|
|
4963
|
+
* link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported data types].
|
|
4964
|
+
*
|
|
4965
|
+
* `type` - To update filters for date time, specify the date format type.
|
|
4966
|
+
* For more information and examples, see link:https://developers.thoughtspot.com/docs/embed-liveboard#_date_filters[Date filters].
|
|
4967
|
+
*
|
|
4953
4968
|
* @example
|
|
4954
4969
|
* ```js
|
|
4955
4970
|
*
|
|
@@ -5079,7 +5094,7 @@ export declare enum HostEvent {
|
|
|
5079
5094
|
*/
|
|
5080
5095
|
AskSage = "AskSage",
|
|
5081
5096
|
/**
|
|
5082
|
-
* Trigger
|
|
5097
|
+
* Trigger cross filter update action on a Liveboard
|
|
5083
5098
|
* @example
|
|
5084
5099
|
* ```js
|
|
5085
5100
|
* liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
|
|
@@ -5094,7 +5109,7 @@ export declare enum HostEvent {
|
|
|
5094
5109
|
*/
|
|
5095
5110
|
UpdateCrossFilter = "UpdateCrossFilter",
|
|
5096
5111
|
/**
|
|
5097
|
-
* Trigger
|
|
5112
|
+
* Trigger reset action for a personalized Liveboard view.
|
|
5098
5113
|
* @example
|
|
5099
5114
|
* ```js
|
|
5100
5115
|
* liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
|
|
@@ -5234,7 +5249,8 @@ export declare enum Param {
|
|
|
5234
5249
|
ShowLiveboardVerifiedBadge = "showLiveboardVerifiedBadge",
|
|
5235
5250
|
ShowLiveboardReverifyBanner = "showLiveboardReverifyBanner",
|
|
5236
5251
|
LiveboardHeaderV2 = "isLiveboardHeaderV2Enabled",
|
|
5237
|
-
SpotterEnabled = "isSpotterExperienceEnabled"
|
|
5252
|
+
SpotterEnabled = "isSpotterExperienceEnabled",
|
|
5253
|
+
IsUnifiedSearchExperienceEnabled = "isUnifiedSearchExperienceEnabled"
|
|
5238
5254
|
}
|
|
5239
5255
|
/**
|
|
5240
5256
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -6204,7 +6220,7 @@ export declare enum Action {
|
|
|
6204
6220
|
*/
|
|
6205
6221
|
AIHighlights = "AIHighlights",
|
|
6206
6222
|
/**
|
|
6207
|
-
* Action ID for edit schedule action on schedule on homepage
|
|
6223
|
+
* Action ID for edit the schedule action on schedule on homepage
|
|
6208
6224
|
* @example
|
|
6209
6225
|
* ```js
|
|
6210
6226
|
* disabledActions: [Action.EditScheduleHomepage]
|
|
@@ -6265,7 +6281,16 @@ export declare enum Action {
|
|
|
6265
6281
|
* ```
|
|
6266
6282
|
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
6267
6283
|
*/
|
|
6268
|
-
KPIAnalysisCTA = "kpiAnalysisCTA"
|
|
6284
|
+
KPIAnalysisCTA = "kpiAnalysisCTA",
|
|
6285
|
+
/**
|
|
6286
|
+
* Action ID for disabling chip reorder in Answer and Liveboard
|
|
6287
|
+
* @example
|
|
6288
|
+
* ```js
|
|
6289
|
+
* const disabledActions = [Action.DisableChipReorder]
|
|
6290
|
+
* ```
|
|
6291
|
+
* @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
|
|
6292
|
+
*/
|
|
6293
|
+
DisableChipReorder = "disableChipReorder"
|
|
6269
6294
|
}
|
|
6270
6295
|
export interface AnswerServiceType {
|
|
6271
6296
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -6423,8 +6448,8 @@ export interface CustomCssVariables {
|
|
|
6423
6448
|
/**
|
|
6424
6449
|
* Font color of the text on toggle buttons such as
|
|
6425
6450
|
* **All**, **Answers**, and **Liveboards** on the Home page (Classic experience),
|
|
6426
|
-
* the text color of the chart and table tiles on Home page (New modular Homepage
|
|
6427
|
-
* and title text on the AI-generated charts and tables.
|
|
6451
|
+
* the text color of the chart and table tiles on Home page (New modular Homepage
|
|
6452
|
+
* experience), and title text on the AI-generated charts and tables.
|
|
6428
6453
|
* The default color code is #2770EF.
|
|
6429
6454
|
*
|
|
6430
6455
|
*/
|
|
@@ -7011,7 +7036,6 @@ export declare function testResetMixpanel(): void;
|
|
|
7011
7036
|
* Fetch wrapper that adds the authentication token to the request.
|
|
7012
7037
|
* Use this to call the ThoughtSpot APIs when using the visual embed sdk.
|
|
7013
7038
|
* The interface for this method is the same as Web `Fetch`.
|
|
7014
|
-
*
|
|
7015
7039
|
* @param input
|
|
7016
7040
|
* @param init
|
|
7017
7041
|
* @example
|