@thoughtspot/visual-embed-sdk 1.47.1 → 1.47.2
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 +3 -3
- package/cjs/src/embed/app.d.ts +13 -0
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +4 -1
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +29 -0
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/hostEventClient/contracts.d.ts +4 -1
- package/cjs/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.spec.js +2 -2
- package/cjs/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +13 -0
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +4 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +32 -0
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +13 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +14 -0
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/types.d.ts +108 -6
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +104 -2
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-CUgxBnPm.js → index-CFZ7RDZ9.js} +1 -1
- package/dist/src/embed/app.d.ts +13 -0
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/hostEventClient/contracts.d.ts +4 -1
- package/dist/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +13 -0
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +13 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/types.d.ts +108 -6
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +131 -9
- package/dist/tsembed-react.js +130 -8
- package/dist/tsembed.es.js +131 -9
- package/dist/tsembed.js +130 -8
- package/dist/visual-embed-sdk-react-full.d.ts +147 -6
- package/dist/visual-embed-sdk-react.d.ts +147 -6
- package/dist/visual-embed-sdk.d.ts +147 -6
- package/lib/package.json +3 -3
- package/lib/src/embed/app.d.ts +13 -0
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +4 -1
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +29 -0
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/hostEventClient/contracts.d.ts +4 -1
- package/lib/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.spec.js +2 -2
- package/lib/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +13 -0
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +4 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +32 -0
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +13 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +14 -0
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/types.d.ts +108 -6
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +104 -2
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +147 -6
- package/package.json +3 -3
- package/src/embed/app.spec.ts +38 -0
- package/src/embed/app.ts +18 -0
- package/src/embed/hostEventClient/contracts.ts +2 -1
- package/src/embed/hostEventClient/host-event-client.spec.ts +2 -2
- package/src/embed/liveboard.spec.ts +41 -0
- package/src/embed/liveboard.ts +18 -0
- package/src/embed/ts-embed.ts +15 -0
- package/src/types.ts +107 -2
package/dist/tsembed.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.47.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.47.2 */
|
|
2
2
|
'use client';
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
@@ -1801,6 +1801,53 @@
|
|
|
1801
1801
|
* @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
|
|
1802
1802
|
*/
|
|
1803
1803
|
EmbedEvent["RefreshAuthToken"] = "RefreshAuthToken";
|
|
1804
|
+
/**
|
|
1805
|
+
* Triggered whenever the page context changes, returning the current context along with the navigation stack.
|
|
1806
|
+
* @example
|
|
1807
|
+
* ```js
|
|
1808
|
+
* embed.on(EmbedEvent.EmbedPageContextChanged, (payload) => {
|
|
1809
|
+
* console.log('payload', payload);
|
|
1810
|
+
* })
|
|
1811
|
+
* ```
|
|
1812
|
+
* @version SDK: 1.47.2 | ThoughtSpot: 26.3.0.cl
|
|
1813
|
+
*/
|
|
1814
|
+
EmbedEvent["EmbedPageContextChanged"] = "EmbedPageContextChanged";
|
|
1815
|
+
/**
|
|
1816
|
+
* Represents a special embed event that is triggered whenever any host event is subscribed.
|
|
1817
|
+
*
|
|
1818
|
+
* You can listen to this event when you need to dispatch a host event during load or render,
|
|
1819
|
+
* particularly in situations where timing issues may occur.
|
|
1820
|
+
*
|
|
1821
|
+
* @example
|
|
1822
|
+
* ```js
|
|
1823
|
+
* embed.on(`${HostEvent.Save} Subscribed`, () => {
|
|
1824
|
+
* // make action
|
|
1825
|
+
* });
|
|
1826
|
+
* ```
|
|
1827
|
+
*
|
|
1828
|
+
* @example
|
|
1829
|
+
* ```js
|
|
1830
|
+
* embed.on(subscribedEvent(HostEvent.Save), () => {
|
|
1831
|
+
* // make action
|
|
1832
|
+
* });
|
|
1833
|
+
* ```
|
|
1834
|
+
* @version SDK: 1.48.0 | ThoughtSpot: 26.4.0.cl
|
|
1835
|
+
*/
|
|
1836
|
+
EmbedEvent["Subscribed"] = "Subscribed";
|
|
1837
|
+
/**
|
|
1838
|
+
* Emitted when a user clicks the **Send Test Email** button in the
|
|
1839
|
+
* Liveboard schedule modal. Requires `isSendNowLiveboardSchedulingEnabled`
|
|
1840
|
+
* to be enabled.
|
|
1841
|
+
* @example
|
|
1842
|
+
* ```js
|
|
1843
|
+
* liveboardEmbed.on(EmbedEvent.SendTestScheduleEmail, (payload) => {
|
|
1844
|
+
* console.log('Send test email', payload);
|
|
1845
|
+
* // payload: { liveboardId: string, sendToSelf: boolean }
|
|
1846
|
+
* })
|
|
1847
|
+
* ```
|
|
1848
|
+
* @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
|
|
1849
|
+
*/
|
|
1850
|
+
EmbedEvent["SendTestScheduleEmail"] = "sendTestScheduleEmail";
|
|
1804
1851
|
})(exports.EmbedEvent || (exports.EmbedEvent = {}));
|
|
1805
1852
|
/**
|
|
1806
1853
|
* Event types that can be triggered by the host application
|
|
@@ -3500,7 +3547,8 @@
|
|
|
3500
3547
|
* ```js
|
|
3501
3548
|
* // Get parameters from liveboard context
|
|
3502
3549
|
* import { ContextType } from '@thoughtspot/visual-embed-sdk';
|
|
3503
|
-
* liveboardEmbed.trigger(HostEvent.GetParameters, {},
|
|
3550
|
+
* liveboardEmbed.trigger(HostEvent.GetParameters, {},
|
|
3551
|
+
* ContextType.Liveboard).then((parameters) => {
|
|
3504
3552
|
* console.log('parameters', parameters);
|
|
3505
3553
|
* });
|
|
3506
3554
|
* ```
|
|
@@ -3852,6 +3900,26 @@
|
|
|
3852
3900
|
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
3853
3901
|
*/
|
|
3854
3902
|
HostEvent["GetPageContext"] = "GetPageContext";
|
|
3903
|
+
/**
|
|
3904
|
+
* Trigger the **Send Test Email** action in the Liveboard schedule modal.
|
|
3905
|
+
* Sends a test schedule email to self or all recipients.
|
|
3906
|
+
* Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
|
|
3907
|
+
* @example
|
|
3908
|
+
* ```js
|
|
3909
|
+
* liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
|
|
3910
|
+
* sendToSelf: true,
|
|
3911
|
+
* })
|
|
3912
|
+
* ```
|
|
3913
|
+
* @example
|
|
3914
|
+
* ```js
|
|
3915
|
+
* // Send to all recipients
|
|
3916
|
+
* liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
|
|
3917
|
+
* sendToSelf: false,
|
|
3918
|
+
* })
|
|
3919
|
+
* ```
|
|
3920
|
+
* @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
|
|
3921
|
+
*/
|
|
3922
|
+
HostEvent["SendTestScheduleEmail"] = "sendTestScheduleEmail";
|
|
3855
3923
|
})(exports.HostEvent || (exports.HostEvent = {}));
|
|
3856
3924
|
/**
|
|
3857
3925
|
* The different visual modes that the data sources panel within
|
|
@@ -4006,6 +4074,7 @@
|
|
|
4006
4074
|
Param["IsWYSIWYGLiveboardPDFEnabled"] = "isWYSIWYGLiveboardPDFEnabled";
|
|
4007
4075
|
Param["isLiveboardXLSXCSVDownloadEnabled"] = "isLiveboardXLSXCSVDownloadEnabled";
|
|
4008
4076
|
Param["isGranularXLSXCSVSchedulesEnabled"] = "isGranularXLSXCSVSchedulesEnabled";
|
|
4077
|
+
Param["isSendNowLiveboardSchedulingEnabled"] = "isSendNowLiveboardSchedulingEnabled";
|
|
4009
4078
|
Param["isCentralizedLiveboardFilterUXEnabled"] = "isCentralizedLiveboardFilterUXEnabled";
|
|
4010
4079
|
Param["isLinkParametersEnabled"] = "isLinkParametersEnabled";
|
|
4011
4080
|
Param["EnablePastConversationsSidebar"] = "enablePastConversationsSidebar";
|
|
@@ -4025,6 +4094,7 @@
|
|
|
4025
4094
|
Param["HideToolResponseCardBranding"] = "hideToolResponseCardBranding";
|
|
4026
4095
|
Param["ToolResponseCardBrandingLabel"] = "toolResponseCardBrandingLabel";
|
|
4027
4096
|
Param["EnableHomepageAnnouncement"] = "enableHomepageAnnouncement";
|
|
4097
|
+
Param["EnableLiveboardDataCache"] = "enableLiveboardDataCache";
|
|
4028
4098
|
})(Param || (Param = {}));
|
|
4029
4099
|
/**
|
|
4030
4100
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -4346,7 +4416,7 @@
|
|
|
4346
4416
|
* ```js
|
|
4347
4417
|
* disabledActions: [Action.DownloadLiveboard]
|
|
4348
4418
|
* ```
|
|
4349
|
-
* @version SDK: 1.
|
|
4419
|
+
* @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
|
|
4350
4420
|
*/
|
|
4351
4421
|
Action["DownloadLiveboard"] = "downloadLiveboard";
|
|
4352
4422
|
/**
|
|
@@ -4359,6 +4429,26 @@
|
|
|
4359
4429
|
* @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
|
|
4360
4430
|
*/
|
|
4361
4431
|
Action["DownloadLiveboardAsContinuousPDF"] = "downloadLiveboardAsContinuousPDF";
|
|
4432
|
+
/**
|
|
4433
|
+
* The **Download Liveboard as XLSX** menu action on a Liveboard.
|
|
4434
|
+
* Allows downloading the entire Liveboard as an XLSX file.
|
|
4435
|
+
* @example
|
|
4436
|
+
* ```js
|
|
4437
|
+
* disabledActions: [Action.DownloadLiveboardAsXlsx]
|
|
4438
|
+
* ```
|
|
4439
|
+
* @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
|
|
4440
|
+
*/
|
|
4441
|
+
Action["DownloadLiveboardAsXlsx"] = "downloadLiveboardAsXlsx";
|
|
4442
|
+
/**
|
|
4443
|
+
* The **Download Liveboard as CSV** menu action on a Liveboard.
|
|
4444
|
+
* Allows downloading the entire Liveboard as a CSV file.
|
|
4445
|
+
* @example
|
|
4446
|
+
* ```js
|
|
4447
|
+
* disabledActions: [Action.DownloadLiveboardAsCsv]
|
|
4448
|
+
* ```
|
|
4449
|
+
* @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
|
|
4450
|
+
*/
|
|
4451
|
+
Action["DownloadLiveboardAsCsv"] = "downloadLiveboardAsCsv";
|
|
4362
4452
|
/**
|
|
4363
4453
|
* @hidden
|
|
4364
4454
|
*/
|
|
@@ -5621,6 +5711,18 @@
|
|
|
5621
5711
|
* @version SDK: 1.45.0 | ThoughtSpot: 26.4.0.cl
|
|
5622
5712
|
*/
|
|
5623
5713
|
Action["IncludeCurrentPeriod"] = "includeCurrentPeriod";
|
|
5714
|
+
/**
|
|
5715
|
+
* The **Send Test Email** button in the Liveboard schedule modal.
|
|
5716
|
+
* Allows sending a test schedule email to self or all recipients.
|
|
5717
|
+
* Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
|
|
5718
|
+
* @example
|
|
5719
|
+
* ```js
|
|
5720
|
+
* disabledActions: [Action.SendTestScheduleEmail]
|
|
5721
|
+
* hiddenActions: [Action.SendTestScheduleEmail]
|
|
5722
|
+
* ```
|
|
5723
|
+
* @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
|
|
5724
|
+
*/
|
|
5725
|
+
Action["SendTestScheduleEmail"] = "sendTestScheduleEmail";
|
|
5624
5726
|
})(exports.Action || (exports.Action = {}));
|
|
5625
5727
|
exports.PrefetchFeatures = void 0;
|
|
5626
5728
|
(function (PrefetchFeatures) {
|
|
@@ -7568,7 +7670,7 @@
|
|
|
7568
7670
|
* @name has
|
|
7569
7671
|
* @memberOf SetCache
|
|
7570
7672
|
* @param {*} value The value to search for.
|
|
7571
|
-
* @returns {
|
|
7673
|
+
* @returns {boolean} Returns `true` if `value` is found, else `false`.
|
|
7572
7674
|
*/
|
|
7573
7675
|
function setCacheHas(value) {
|
|
7574
7676
|
return this.__data__.has(value);
|
|
@@ -10937,7 +11039,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
10937
11039
|
if (isArray_1(iteratee)) {
|
|
10938
11040
|
return function(value) {
|
|
10939
11041
|
return _baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
|
|
10940
|
-
}
|
|
11042
|
+
};
|
|
10941
11043
|
}
|
|
10942
11044
|
return iteratee;
|
|
10943
11045
|
});
|
|
@@ -19337,7 +19439,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
19337
19439
|
return eventData;
|
|
19338
19440
|
}
|
|
19339
19441
|
|
|
19340
|
-
var version$1="1.47.
|
|
19442
|
+
var version$1="1.47.2";var pkgInfo = {version:version$1};
|
|
19341
19443
|
|
|
19342
19444
|
function isValidUpdateFiltersPayload(payload) {
|
|
19343
19445
|
if (!payload)
|
|
@@ -20983,6 +21085,20 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20983
21085
|
});
|
|
20984
21086
|
});
|
|
20985
21087
|
}
|
|
21088
|
+
/**
|
|
21089
|
+
* Generates the event name for a "Subscribed" embed event.
|
|
21090
|
+
*
|
|
21091
|
+
* This helper appends the "Subscribed" suffix to a given host or action event,
|
|
21092
|
+
* allowing you to listen for subscription lifecycle events in a consistent format.
|
|
21093
|
+
*
|
|
21094
|
+
* @param eventName - The host or action event to generate the subscribed event name for.
|
|
21095
|
+
* @returns The formatted event name (e.g., "Save Subscribed").
|
|
21096
|
+
*
|
|
21097
|
+
* @version SDK: 1.47.2 | ThoughtSpot: 26.3.0.cl
|
|
21098
|
+
*/
|
|
21099
|
+
subscribedEvent(eventName) {
|
|
21100
|
+
return `${eventName} ${exports.EmbedEvent.Subscribed}`;
|
|
21101
|
+
}
|
|
20986
21102
|
/**
|
|
20987
21103
|
* Creates the preRender shell
|
|
20988
21104
|
* @param showPreRenderByDefault - Show the preRender after render, hidden by default
|
|
@@ -21572,7 +21688,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21572
21688
|
* embedded Liveboard or visualization.
|
|
21573
21689
|
*/
|
|
21574
21690
|
getEmbedParams() {
|
|
21575
|
-
const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = exports.DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, enableStopAnswerGenerationEmbed, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, enableHomepageAnnouncement = false, isContinuousLiveboardPDFEnabled, } = this.viewConfig;
|
|
21691
|
+
const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = exports.DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, enableStopAnswerGenerationEmbed, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, enableHomepageAnnouncement = false, isContinuousLiveboardPDFEnabled, enableLiveboardDataCache, } = this.viewConfig;
|
|
21576
21692
|
let params = {};
|
|
21577
21693
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
21578
21694
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
@@ -21680,6 +21796,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21680
21796
|
params[Param.IsWYSIWYGLiveboardPDFEnabled] = isContinuousLiveboardPDFEnabled;
|
|
21681
21797
|
}
|
|
21682
21798
|
this.defaultHeight = minimumHeight || this.defaultHeight;
|
|
21799
|
+
if (enableLiveboardDataCache !== undefined) {
|
|
21800
|
+
params[Param.EnableLiveboardDataCache] = enableLiveboardDataCache;
|
|
21801
|
+
}
|
|
21683
21802
|
params[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
21684
21803
|
params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
|
|
21685
21804
|
params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
|
|
@@ -22037,7 +22156,7 @@ query GetEurekaVizSnapshots(
|
|
|
22037
22156
|
getEmbedParamsObject() {
|
|
22038
22157
|
let params = {};
|
|
22039
22158
|
params = this.getBaseQueryParams(params);
|
|
22040
|
-
const { enableVizTransformations, fullHeight, defaultHeight, minimumHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, isEnhancedFilterInteractivityEnabled = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, showSpotterLimitations, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, enableStopAnswerGenerationEmbed, spotterChatConfig, isThisPeriodInDateFiltersEnabled, isContinuousLiveboardPDFEnabled, } = this.viewConfig;
|
|
22159
|
+
const { enableVizTransformations, fullHeight, defaultHeight, minimumHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, isEnhancedFilterInteractivityEnabled = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, showSpotterLimitations, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, enableStopAnswerGenerationEmbed, spotterChatConfig, isThisPeriodInDateFiltersEnabled, isContinuousLiveboardPDFEnabled, enableLiveboardDataCache, } = this.viewConfig;
|
|
22041
22160
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
22042
22161
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
22043
22162
|
if (fullHeight === true) {
|
|
@@ -22132,6 +22251,9 @@ query GetEurekaVizSnapshots(
|
|
|
22132
22251
|
if (isContinuousLiveboardPDFEnabled !== undefined) {
|
|
22133
22252
|
params[Param.IsWYSIWYGLiveboardPDFEnabled] = isContinuousLiveboardPDFEnabled;
|
|
22134
22253
|
}
|
|
22254
|
+
if (enableLiveboardDataCache !== undefined) {
|
|
22255
|
+
params[Param.EnableLiveboardDataCache] = enableLiveboardDataCache;
|
|
22256
|
+
}
|
|
22135
22257
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
22136
22258
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
22137
22259
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
@@ -4493,7 +4493,54 @@ export declare enum EmbedEvent {
|
|
|
4493
4493
|
* ```
|
|
4494
4494
|
* @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
|
|
4495
4495
|
*/
|
|
4496
|
-
RefreshAuthToken = "RefreshAuthToken"
|
|
4496
|
+
RefreshAuthToken = "RefreshAuthToken",
|
|
4497
|
+
/**
|
|
4498
|
+
* Triggered whenever the page context changes, returning the current context along with the navigation stack.
|
|
4499
|
+
* @example
|
|
4500
|
+
* ```js
|
|
4501
|
+
* embed.on(EmbedEvent.EmbedPageContextChanged, (payload) => {
|
|
4502
|
+
* console.log('payload', payload);
|
|
4503
|
+
* })
|
|
4504
|
+
* ```
|
|
4505
|
+
* @version SDK: 1.47.2 | ThoughtSpot: 26.3.0.cl
|
|
4506
|
+
*/
|
|
4507
|
+
EmbedPageContextChanged = "EmbedPageContextChanged",
|
|
4508
|
+
/**
|
|
4509
|
+
* Represents a special embed event that is triggered whenever any host event is subscribed.
|
|
4510
|
+
*
|
|
4511
|
+
* You can listen to this event when you need to dispatch a host event during load or render,
|
|
4512
|
+
* particularly in situations where timing issues may occur.
|
|
4513
|
+
*
|
|
4514
|
+
* @example
|
|
4515
|
+
* ```js
|
|
4516
|
+
* embed.on(`${HostEvent.Save} Subscribed`, () => {
|
|
4517
|
+
* // make action
|
|
4518
|
+
* });
|
|
4519
|
+
* ```
|
|
4520
|
+
*
|
|
4521
|
+
* @example
|
|
4522
|
+
* ```js
|
|
4523
|
+
* embed.on(subscribedEvent(HostEvent.Save), () => {
|
|
4524
|
+
* // make action
|
|
4525
|
+
* });
|
|
4526
|
+
* ```
|
|
4527
|
+
* @version SDK: 1.48.0 | ThoughtSpot: 26.4.0.cl
|
|
4528
|
+
*/
|
|
4529
|
+
Subscribed = "Subscribed",
|
|
4530
|
+
/**
|
|
4531
|
+
* Emitted when a user clicks the **Send Test Email** button in the
|
|
4532
|
+
* Liveboard schedule modal. Requires `isSendNowLiveboardSchedulingEnabled`
|
|
4533
|
+
* to be enabled.
|
|
4534
|
+
* @example
|
|
4535
|
+
* ```js
|
|
4536
|
+
* liveboardEmbed.on(EmbedEvent.SendTestScheduleEmail, (payload) => {
|
|
4537
|
+
* console.log('Send test email', payload);
|
|
4538
|
+
* // payload: { liveboardId: string, sendToSelf: boolean }
|
|
4539
|
+
* })
|
|
4540
|
+
* ```
|
|
4541
|
+
* @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
|
|
4542
|
+
*/
|
|
4543
|
+
SendTestScheduleEmail = "sendTestScheduleEmail"
|
|
4497
4544
|
}
|
|
4498
4545
|
/**
|
|
4499
4546
|
* Event types that can be triggered by the host application
|
|
@@ -6191,7 +6238,8 @@ export declare enum HostEvent {
|
|
|
6191
6238
|
* ```js
|
|
6192
6239
|
* // Get parameters from liveboard context
|
|
6193
6240
|
* import { ContextType } from '@thoughtspot/visual-embed-sdk';
|
|
6194
|
-
* liveboardEmbed.trigger(HostEvent.GetParameters, {},
|
|
6241
|
+
* liveboardEmbed.trigger(HostEvent.GetParameters, {},
|
|
6242
|
+
* ContextType.Liveboard).then((parameters) => {
|
|
6195
6243
|
* console.log('parameters', parameters);
|
|
6196
6244
|
* });
|
|
6197
6245
|
* ```
|
|
@@ -6542,7 +6590,27 @@ export declare enum HostEvent {
|
|
|
6542
6590
|
* ```
|
|
6543
6591
|
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
6544
6592
|
*/
|
|
6545
|
-
GetPageContext = "GetPageContext"
|
|
6593
|
+
GetPageContext = "GetPageContext",
|
|
6594
|
+
/**
|
|
6595
|
+
* Trigger the **Send Test Email** action in the Liveboard schedule modal.
|
|
6596
|
+
* Sends a test schedule email to self or all recipients.
|
|
6597
|
+
* Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
|
|
6598
|
+
* @example
|
|
6599
|
+
* ```js
|
|
6600
|
+
* liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
|
|
6601
|
+
* sendToSelf: true,
|
|
6602
|
+
* })
|
|
6603
|
+
* ```
|
|
6604
|
+
* @example
|
|
6605
|
+
* ```js
|
|
6606
|
+
* // Send to all recipients
|
|
6607
|
+
* liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
|
|
6608
|
+
* sendToSelf: false,
|
|
6609
|
+
* })
|
|
6610
|
+
* ```
|
|
6611
|
+
* @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
|
|
6612
|
+
*/
|
|
6613
|
+
SendTestScheduleEmail = "sendTestScheduleEmail"
|
|
6546
6614
|
}
|
|
6547
6615
|
/**
|
|
6548
6616
|
* The different visual modes that the data sources panel within
|
|
@@ -6881,7 +6949,7 @@ export declare enum Action {
|
|
|
6881
6949
|
* ```js
|
|
6882
6950
|
* disabledActions: [Action.DownloadLiveboard]
|
|
6883
6951
|
* ```
|
|
6884
|
-
* @version SDK: 1.
|
|
6952
|
+
* @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
|
|
6885
6953
|
*/
|
|
6886
6954
|
DownloadLiveboard = "downloadLiveboard",
|
|
6887
6955
|
/**
|
|
@@ -6894,6 +6962,26 @@ export declare enum Action {
|
|
|
6894
6962
|
* @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
|
|
6895
6963
|
*/
|
|
6896
6964
|
DownloadLiveboardAsContinuousPDF = "downloadLiveboardAsContinuousPDF",
|
|
6965
|
+
/**
|
|
6966
|
+
* The **Download Liveboard as XLSX** menu action on a Liveboard.
|
|
6967
|
+
* Allows downloading the entire Liveboard as an XLSX file.
|
|
6968
|
+
* @example
|
|
6969
|
+
* ```js
|
|
6970
|
+
* disabledActions: [Action.DownloadLiveboardAsXlsx]
|
|
6971
|
+
* ```
|
|
6972
|
+
* @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
|
|
6973
|
+
*/
|
|
6974
|
+
DownloadLiveboardAsXlsx = "downloadLiveboardAsXlsx",
|
|
6975
|
+
/**
|
|
6976
|
+
* The **Download Liveboard as CSV** menu action on a Liveboard.
|
|
6977
|
+
* Allows downloading the entire Liveboard as a CSV file.
|
|
6978
|
+
* @example
|
|
6979
|
+
* ```js
|
|
6980
|
+
* disabledActions: [Action.DownloadLiveboardAsCsv]
|
|
6981
|
+
* ```
|
|
6982
|
+
* @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
|
|
6983
|
+
*/
|
|
6984
|
+
DownloadLiveboardAsCsv = "downloadLiveboardAsCsv",
|
|
6897
6985
|
/**
|
|
6898
6986
|
* @hidden
|
|
6899
6987
|
*/
|
|
@@ -8153,7 +8241,19 @@ export declare enum Action {
|
|
|
8153
8241
|
* ```
|
|
8154
8242
|
* @version SDK: 1.45.0 | ThoughtSpot: 26.4.0.cl
|
|
8155
8243
|
*/
|
|
8156
|
-
IncludeCurrentPeriod = "includeCurrentPeriod"
|
|
8244
|
+
IncludeCurrentPeriod = "includeCurrentPeriod",
|
|
8245
|
+
/**
|
|
8246
|
+
* The **Send Test Email** button in the Liveboard schedule modal.
|
|
8247
|
+
* Allows sending a test schedule email to self or all recipients.
|
|
8248
|
+
* Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
|
|
8249
|
+
* @example
|
|
8250
|
+
* ```js
|
|
8251
|
+
* disabledActions: [Action.SendTestScheduleEmail]
|
|
8252
|
+
* hiddenActions: [Action.SendTestScheduleEmail]
|
|
8253
|
+
* ```
|
|
8254
|
+
* @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
|
|
8255
|
+
*/
|
|
8256
|
+
SendTestScheduleEmail = "sendTestScheduleEmail"
|
|
8157
8257
|
}
|
|
8158
8258
|
export declare enum PrefetchFeatures {
|
|
8159
8259
|
FullApp = "FullApp",
|
|
@@ -8907,7 +9007,10 @@ export type UIPassthroughContractBase = {
|
|
|
8907
9007
|
[UIPassthroughEvent.GetExportRequestForCurrentPinboard]: {
|
|
8908
9008
|
request: Record<string, never>;
|
|
8909
9009
|
response: {
|
|
8910
|
-
|
|
9010
|
+
data: {
|
|
9011
|
+
v2Content: string;
|
|
9012
|
+
};
|
|
9013
|
+
type: UIPassthroughEvent.GetExportRequestForCurrentPinboard;
|
|
8911
9014
|
};
|
|
8912
9015
|
};
|
|
8913
9016
|
[UIPassthroughEvent.UpdateFilters]: {
|
|
@@ -9410,6 +9513,18 @@ declare class TsEmbed {
|
|
|
9410
9513
|
* @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
|
|
9411
9514
|
*/
|
|
9412
9515
|
getCurrentContext(): Promise<ContextObject>;
|
|
9516
|
+
/**
|
|
9517
|
+
* Generates the event name for a "Subscribed" embed event.
|
|
9518
|
+
*
|
|
9519
|
+
* This helper appends the "Subscribed" suffix to a given host or action event,
|
|
9520
|
+
* allowing you to listen for subscription lifecycle events in a consistent format.
|
|
9521
|
+
*
|
|
9522
|
+
* @param eventName - The host or action event to generate the subscribed event name for.
|
|
9523
|
+
* @returns The formatted event name (e.g., "Save Subscribed").
|
|
9524
|
+
*
|
|
9525
|
+
* @version SDK: 1.47.2 | ThoughtSpot: 26.3.0.cl
|
|
9526
|
+
*/
|
|
9527
|
+
subscribedEvent(eventName: HostEvent | Action): string;
|
|
9413
9528
|
/**
|
|
9414
9529
|
* Creates the preRender shell
|
|
9415
9530
|
* @param showPreRenderByDefault - Show the preRender after render, hidden by default
|
|
@@ -11063,6 +11178,19 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
11063
11178
|
* @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
|
|
11064
11179
|
*/
|
|
11065
11180
|
enableHomepageAnnouncement?: boolean;
|
|
11181
|
+
/**
|
|
11182
|
+
* If set to true, enables visualization data caching on the Liveboard.
|
|
11183
|
+
* @type {boolean}
|
|
11184
|
+
* @version SDK: 1.49.0 | ThoughtSpot: 26.6.0.cl
|
|
11185
|
+
* @example
|
|
11186
|
+
* ```js
|
|
11187
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
11188
|
+
* ... // other options
|
|
11189
|
+
* enableLiveboardDataCache: true,
|
|
11190
|
+
* })
|
|
11191
|
+
* ```
|
|
11192
|
+
*/
|
|
11193
|
+
enableLiveboardDataCache?: boolean;
|
|
11066
11194
|
}
|
|
11067
11195
|
/**
|
|
11068
11196
|
* APP_INIT data shape for AppEmbed.
|
|
@@ -11654,6 +11782,19 @@ export interface LiveboardViewConfig extends BaseViewConfig, SearchLiveboardComm
|
|
|
11654
11782
|
* ```
|
|
11655
11783
|
*/
|
|
11656
11784
|
spotterChatConfig?: SpotterChatViewConfig;
|
|
11785
|
+
/**
|
|
11786
|
+
* If set to true, enables visualization data caching on the Liveboard.
|
|
11787
|
+
* @type {boolean}
|
|
11788
|
+
* @version SDK: 1.49.0 | ThoughtSpot: 26.6.0.cl
|
|
11789
|
+
* @example
|
|
11790
|
+
* ```js
|
|
11791
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
11792
|
+
* ... // other options
|
|
11793
|
+
* enableLiveboardDataCache: true,
|
|
11794
|
+
* })
|
|
11795
|
+
* ```
|
|
11796
|
+
*/
|
|
11797
|
+
enableLiveboardDataCache?: boolean;
|
|
11657
11798
|
}
|
|
11658
11799
|
declare class LiveboardEmbed extends V1Embed {
|
|
11659
11800
|
protected viewConfig: LiveboardViewConfig;
|