@thoughtspot/visual-embed-sdk 1.47.1 → 1.47.3
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 +19 -1
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +7 -1
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +141 -0
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +2 -1
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.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 +7 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +54 -0
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/search.d.ts +24 -1
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +15 -2
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js +99 -0
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/spotter-utils.d.ts +3 -0
- package/cjs/src/embed/spotter-utils.d.ts.map +1 -1
- package/cjs/src/embed/spotter-utils.js +11 -3
- package/cjs/src/embed/spotter-utils.js.map +1 -1
- package/cjs/src/embed/spotter-utils.spec.js +51 -0
- package/cjs/src/embed/spotter-utils.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +14 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +29 -3
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +139 -0
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +2 -2
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +8 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/mixpanel-service.d.ts.map +1 -1
- package/cjs/src/mixpanel-service.js +2 -0
- package/cjs/src/mixpanel-service.js.map +1 -1
- package/cjs/src/mixpanel-service.spec.js +2 -0
- package/cjs/src/mixpanel-service.spec.js.map +1 -1
- package/cjs/src/test/test-utils.d.ts +1 -0
- package/cjs/src/test/test-utils.d.ts.map +1 -1
- package/cjs/src/test/test-utils.js +26 -1
- package/cjs/src/test/test-utils.js.map +1 -1
- package/cjs/src/types.d.ts +532 -6
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +225 -3
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-CUgxBnPm.js → index-DZq20cR6.js} +1 -1
- package/dist/src/embed/app.d.ts +19 -1
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +2 -1
- package/dist/src/embed/conversation.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/search.d.ts +24 -1
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/spotter-utils.d.ts +3 -0
- package/dist/src/embed/spotter-utils.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +14 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/mixpanel-service.d.ts.map +1 -1
- package/dist/src/test/test-utils.d.ts +1 -0
- package/dist/src/test/test-utils.d.ts.map +1 -1
- package/dist/src/types.d.ts +532 -6
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +299 -17
- package/dist/tsembed-react.js +298 -16
- package/dist/tsembed.es.js +300 -18
- package/dist/tsembed.js +298 -16
- package/dist/visual-embed-sdk-react-full.d.ts +572 -6
- package/dist/visual-embed-sdk-react.d.ts +572 -6
- package/dist/visual-embed-sdk.d.ts +600 -6
- package/lib/package.json +3 -3
- package/lib/src/embed/app.d.ts +19 -1
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +7 -1
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +142 -1
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +2 -1
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.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 +7 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +54 -0
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/search.d.ts +24 -1
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +15 -2
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +100 -1
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/spotter-utils.d.ts +3 -0
- package/lib/src/embed/spotter-utils.d.ts.map +1 -1
- package/lib/src/embed/spotter-utils.js +11 -3
- package/lib/src/embed/spotter-utils.js.map +1 -1
- package/lib/src/embed/spotter-utils.spec.js +51 -0
- package/lib/src/embed/spotter-utils.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +14 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +28 -2
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +139 -0
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +2 -2
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +2 -2
- package/lib/src/index.js.map +1 -1
- package/lib/src/mixpanel-service.d.ts.map +1 -1
- package/lib/src/mixpanel-service.js +2 -0
- package/lib/src/mixpanel-service.js.map +1 -1
- package/lib/src/mixpanel-service.spec.js +2 -0
- package/lib/src/mixpanel-service.spec.js.map +1 -1
- package/lib/src/test/test-utils.d.ts +1 -0
- package/lib/src/test/test-utils.d.ts.map +1 -1
- package/lib/src/test/test-utils.js +25 -1
- package/lib/src/test/test-utils.js.map +1 -1
- package/lib/src/types.d.ts +532 -6
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +224 -2
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +600 -6
- package/package.json +3 -3
- package/src/embed/app.spec.ts +179 -0
- package/src/embed/app.ts +29 -0
- package/src/embed/conversation.ts +2 -1
- 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 +73 -0
- package/src/embed/liveboard.ts +23 -0
- package/src/embed/search.spec.ts +118 -0
- package/src/embed/search.ts +43 -1
- package/src/embed/spotter-utils.spec.ts +52 -0
- package/src/embed/spotter-utils.ts +19 -3
- package/src/embed/ts-embed.spec.ts +185 -0
- package/src/embed/ts-embed.ts +29 -3
- package/src/index.ts +16 -0
- package/src/mixpanel-service.spec.ts +2 -0
- package/src/mixpanel-service.ts +2 -0
- package/src/test/test-utils.ts +33 -1
- package/src/types.ts +561 -2
package/dist/tsembed.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.47.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.47.3 */
|
|
2
2
|
'use client';
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
@@ -1795,6 +1795,53 @@ var EmbedEvent;
|
|
|
1795
1795
|
* @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
|
|
1796
1796
|
*/
|
|
1797
1797
|
EmbedEvent["RefreshAuthToken"] = "RefreshAuthToken";
|
|
1798
|
+
/**
|
|
1799
|
+
* Triggered whenever the page context changes, returning the current context along with the navigation stack.
|
|
1800
|
+
* @example
|
|
1801
|
+
* ```js
|
|
1802
|
+
* embed.on(EmbedEvent.EmbedPageContextChanged, (payload) => {
|
|
1803
|
+
* console.log('payload', payload);
|
|
1804
|
+
* })
|
|
1805
|
+
* ```
|
|
1806
|
+
* @version SDK: 1.47.2 | ThoughtSpot: 26.3.0.cl
|
|
1807
|
+
*/
|
|
1808
|
+
EmbedEvent["EmbedPageContextChanged"] = "EmbedPageContextChanged";
|
|
1809
|
+
/**
|
|
1810
|
+
* Represents a special embed event that is triggered whenever any host event is subscribed.
|
|
1811
|
+
*
|
|
1812
|
+
* You can listen to this event when you need to dispatch a host event during load or render,
|
|
1813
|
+
* particularly in situations where timing issues may occur.
|
|
1814
|
+
*
|
|
1815
|
+
* @example
|
|
1816
|
+
* ```js
|
|
1817
|
+
* embed.on(`${HostEvent.Save} Subscribed`, () => {
|
|
1818
|
+
* // make action
|
|
1819
|
+
* });
|
|
1820
|
+
* ```
|
|
1821
|
+
*
|
|
1822
|
+
* @example
|
|
1823
|
+
* ```js
|
|
1824
|
+
* embed.on(subscribedEvent(HostEvent.Save), () => {
|
|
1825
|
+
* // make action
|
|
1826
|
+
* });
|
|
1827
|
+
* ```
|
|
1828
|
+
* @version SDK: 1.48.0 | ThoughtSpot: 26.4.0.cl
|
|
1829
|
+
*/
|
|
1830
|
+
EmbedEvent["Subscribed"] = "Subscribed";
|
|
1831
|
+
/**
|
|
1832
|
+
* Emitted when a user clicks the **Send Test Email** button in the
|
|
1833
|
+
* Liveboard schedule modal. Requires `isSendNowLiveboardSchedulingEnabled`
|
|
1834
|
+
* to be enabled.
|
|
1835
|
+
* @example
|
|
1836
|
+
* ```js
|
|
1837
|
+
* liveboardEmbed.on(EmbedEvent.SendTestScheduleEmail, (payload) => {
|
|
1838
|
+
* console.log('Send test email', payload);
|
|
1839
|
+
* // payload: { liveboardId: string, sendToSelf: boolean }
|
|
1840
|
+
* })
|
|
1841
|
+
* ```
|
|
1842
|
+
* @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
|
|
1843
|
+
*/
|
|
1844
|
+
EmbedEvent["SendTestScheduleEmail"] = "sendTestScheduleEmail";
|
|
1798
1845
|
})(EmbedEvent || (EmbedEvent = {}));
|
|
1799
1846
|
/**
|
|
1800
1847
|
* Event types that can be triggered by the host application
|
|
@@ -3494,7 +3541,8 @@ var HostEvent;
|
|
|
3494
3541
|
* ```js
|
|
3495
3542
|
* // Get parameters from liveboard context
|
|
3496
3543
|
* import { ContextType } from '@thoughtspot/visual-embed-sdk';
|
|
3497
|
-
* liveboardEmbed.trigger(HostEvent.GetParameters, {},
|
|
3544
|
+
* liveboardEmbed.trigger(HostEvent.GetParameters, {},
|
|
3545
|
+
* ContextType.Liveboard).then((parameters) => {
|
|
3498
3546
|
* console.log('parameters', parameters);
|
|
3499
3547
|
* });
|
|
3500
3548
|
* ```
|
|
@@ -3846,6 +3894,26 @@ var HostEvent;
|
|
|
3846
3894
|
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
3847
3895
|
*/
|
|
3848
3896
|
HostEvent["GetPageContext"] = "GetPageContext";
|
|
3897
|
+
/**
|
|
3898
|
+
* Trigger the **Send Test Email** action in the Liveboard schedule modal.
|
|
3899
|
+
* Sends a test schedule email to self or all recipients.
|
|
3900
|
+
* Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
|
|
3901
|
+
* @example
|
|
3902
|
+
* ```js
|
|
3903
|
+
* liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
|
|
3904
|
+
* sendToSelf: true,
|
|
3905
|
+
* })
|
|
3906
|
+
* ```
|
|
3907
|
+
* @example
|
|
3908
|
+
* ```js
|
|
3909
|
+
* // Send to all recipients
|
|
3910
|
+
* liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
|
|
3911
|
+
* sendToSelf: false,
|
|
3912
|
+
* })
|
|
3913
|
+
* ```
|
|
3914
|
+
* @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
|
|
3915
|
+
*/
|
|
3916
|
+
HostEvent["SendTestScheduleEmail"] = "sendTestScheduleEmail";
|
|
3849
3917
|
})(HostEvent || (HostEvent = {}));
|
|
3850
3918
|
/**
|
|
3851
3919
|
* The different visual modes that the data sources panel within
|
|
@@ -3945,6 +4013,7 @@ var Param;
|
|
|
3945
4013
|
Param["ShowLiveboardTitle"] = "showLiveboardTitle";
|
|
3946
4014
|
Param["ShowMaskedFilterChip"] = "showMaskedFilterChip";
|
|
3947
4015
|
Param["IsLiveboardMasterpiecesEnabled"] = "isLiveboardMasterpiecesEnabled";
|
|
4016
|
+
Param["EnableNewChartLibrary"] = "muzeChartPhase1EnabledGA";
|
|
3948
4017
|
Param["HiddenTabs"] = "hideTabs";
|
|
3949
4018
|
Param["VisibleTabs"] = "visibleTabs";
|
|
3950
4019
|
Param["HideTabPanel"] = "hideTabPanel";
|
|
@@ -4000,6 +4069,7 @@ var Param;
|
|
|
4000
4069
|
Param["IsWYSIWYGLiveboardPDFEnabled"] = "isWYSIWYGLiveboardPDFEnabled";
|
|
4001
4070
|
Param["isLiveboardXLSXCSVDownloadEnabled"] = "isLiveboardXLSXCSVDownloadEnabled";
|
|
4002
4071
|
Param["isGranularXLSXCSVSchedulesEnabled"] = "isGranularXLSXCSVSchedulesEnabled";
|
|
4072
|
+
Param["isSendNowLiveboardSchedulingEnabled"] = "isSendNowLiveboardSchedulingEnabled";
|
|
4003
4073
|
Param["isCentralizedLiveboardFilterUXEnabled"] = "isCentralizedLiveboardFilterUXEnabled";
|
|
4004
4074
|
Param["isLinkParametersEnabled"] = "isLinkParametersEnabled";
|
|
4005
4075
|
Param["EnablePastConversationsSidebar"] = "enablePastConversationsSidebar";
|
|
@@ -4019,6 +4089,7 @@ var Param;
|
|
|
4019
4089
|
Param["HideToolResponseCardBranding"] = "hideToolResponseCardBranding";
|
|
4020
4090
|
Param["ToolResponseCardBrandingLabel"] = "toolResponseCardBrandingLabel";
|
|
4021
4091
|
Param["EnableHomepageAnnouncement"] = "enableHomepageAnnouncement";
|
|
4092
|
+
Param["EnableLiveboardDataCache"] = "enableLiveboardDataCache";
|
|
4022
4093
|
})(Param || (Param = {}));
|
|
4023
4094
|
/**
|
|
4024
4095
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -4340,7 +4411,7 @@ var Action;
|
|
|
4340
4411
|
* ```js
|
|
4341
4412
|
* disabledActions: [Action.DownloadLiveboard]
|
|
4342
4413
|
* ```
|
|
4343
|
-
* @version SDK: 1.
|
|
4414
|
+
* @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
|
|
4344
4415
|
*/
|
|
4345
4416
|
Action["DownloadLiveboard"] = "downloadLiveboard";
|
|
4346
4417
|
/**
|
|
@@ -4353,6 +4424,26 @@ var Action;
|
|
|
4353
4424
|
* @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
|
|
4354
4425
|
*/
|
|
4355
4426
|
Action["DownloadLiveboardAsContinuousPDF"] = "downloadLiveboardAsContinuousPDF";
|
|
4427
|
+
/**
|
|
4428
|
+
* The **Download Liveboard as XLSX** menu action on a Liveboard.
|
|
4429
|
+
* Allows downloading the entire Liveboard as an XLSX file.
|
|
4430
|
+
* @example
|
|
4431
|
+
* ```js
|
|
4432
|
+
* disabledActions: [Action.DownloadLiveboardAsXlsx]
|
|
4433
|
+
* ```
|
|
4434
|
+
* @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
|
|
4435
|
+
*/
|
|
4436
|
+
Action["DownloadLiveboardAsXlsx"] = "downloadLiveboardAsXlsx";
|
|
4437
|
+
/**
|
|
4438
|
+
* The **Download Liveboard as CSV** menu action on a Liveboard.
|
|
4439
|
+
* Allows downloading the entire Liveboard as a CSV file.
|
|
4440
|
+
* @example
|
|
4441
|
+
* ```js
|
|
4442
|
+
* disabledActions: [Action.DownloadLiveboardAsCsv]
|
|
4443
|
+
* ```
|
|
4444
|
+
* @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
|
|
4445
|
+
*/
|
|
4446
|
+
Action["DownloadLiveboardAsCsv"] = "downloadLiveboardAsCsv";
|
|
4356
4447
|
/**
|
|
4357
4448
|
* @hidden
|
|
4358
4449
|
*/
|
|
@@ -5615,6 +5706,18 @@ var Action;
|
|
|
5615
5706
|
* @version SDK: 1.45.0 | ThoughtSpot: 26.4.0.cl
|
|
5616
5707
|
*/
|
|
5617
5708
|
Action["IncludeCurrentPeriod"] = "includeCurrentPeriod";
|
|
5709
|
+
/**
|
|
5710
|
+
* The **Send Test Email** button in the Liveboard schedule modal.
|
|
5711
|
+
* Allows sending a test schedule email to self or all recipients.
|
|
5712
|
+
* Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
|
|
5713
|
+
* @example
|
|
5714
|
+
* ```js
|
|
5715
|
+
* disabledActions: [Action.SendTestScheduleEmail]
|
|
5716
|
+
* hiddenActions: [Action.SendTestScheduleEmail]
|
|
5717
|
+
* ```
|
|
5718
|
+
* @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
|
|
5719
|
+
*/
|
|
5720
|
+
Action["SendTestScheduleEmail"] = "sendTestScheduleEmail";
|
|
5618
5721
|
})(Action || (Action = {}));
|
|
5619
5722
|
var PrefetchFeatures;
|
|
5620
5723
|
(function (PrefetchFeatures) {
|
|
@@ -5959,7 +6062,126 @@ var InterceptedApiType;
|
|
|
5959
6062
|
* The apis that are use to get the data for the liveboard
|
|
5960
6063
|
*/
|
|
5961
6064
|
InterceptedApiType["LiveboardData"] = "LiveboardData";
|
|
5962
|
-
})(InterceptedApiType || (InterceptedApiType = {}));
|
|
6065
|
+
})(InterceptedApiType || (InterceptedApiType = {}));
|
|
6066
|
+
/**
|
|
6067
|
+
* Data label filter operators
|
|
6068
|
+
* @group Visual Overrides
|
|
6069
|
+
*/
|
|
6070
|
+
var DataLabelFilterOperator;
|
|
6071
|
+
(function (DataLabelFilterOperator) {
|
|
6072
|
+
/** Greater than */
|
|
6073
|
+
DataLabelFilterOperator["GreaterThan"] = "GREATER_THAN";
|
|
6074
|
+
/** Less than */
|
|
6075
|
+
DataLabelFilterOperator["LessThan"] = "LESS_THAN";
|
|
6076
|
+
/** Greater than or equal to */
|
|
6077
|
+
DataLabelFilterOperator["GreaterThanOrEqualTo"] = "GREATER_THAN_OR_EQUAL_TO";
|
|
6078
|
+
/** Less than or equal to */
|
|
6079
|
+
DataLabelFilterOperator["LessThanOrEqualTo"] = "LESS_THAN_OR_EQUAL_TO";
|
|
6080
|
+
/** Equal to */
|
|
6081
|
+
DataLabelFilterOperator["EqualTo"] = "EQUAL_TO";
|
|
6082
|
+
/** Not equal to */
|
|
6083
|
+
DataLabelFilterOperator["NotEqualTo"] = "NOT_EQUAL_TO";
|
|
6084
|
+
})(DataLabelFilterOperator || (DataLabelFilterOperator = {}));
|
|
6085
|
+
/**
|
|
6086
|
+
* Conditional formatting operators
|
|
6087
|
+
* @group Visual Overrides
|
|
6088
|
+
*/
|
|
6089
|
+
var ConditionalFormattingOperator;
|
|
6090
|
+
(function (ConditionalFormattingOperator) {
|
|
6091
|
+
/** Is equal to */
|
|
6092
|
+
ConditionalFormattingOperator["Is"] = "IS";
|
|
6093
|
+
/** Is not equal to */
|
|
6094
|
+
ConditionalFormattingOperator["IsNot"] = "IS_NOT";
|
|
6095
|
+
/** Contains */
|
|
6096
|
+
ConditionalFormattingOperator["Contains"] = "CONTAINS";
|
|
6097
|
+
/** Does not contain */
|
|
6098
|
+
ConditionalFormattingOperator["DoesNotContain"] = "DOES_NOT_CONTAIN";
|
|
6099
|
+
/** Starts with */
|
|
6100
|
+
ConditionalFormattingOperator["StartsWith"] = "STARTS_WITH";
|
|
6101
|
+
/** Ends with */
|
|
6102
|
+
ConditionalFormattingOperator["EndsWith"] = "ENDS_WITH";
|
|
6103
|
+
/** Greater than */
|
|
6104
|
+
ConditionalFormattingOperator["GreaterThan"] = "GREATER_THAN";
|
|
6105
|
+
/** Less than */
|
|
6106
|
+
ConditionalFormattingOperator["LessThan"] = "LESS_THAN";
|
|
6107
|
+
/** Greater than or equal to */
|
|
6108
|
+
ConditionalFormattingOperator["GreaterThanEqualTo"] = "GREATER_THAN_EQUAL_TO";
|
|
6109
|
+
/** Less than or equal to */
|
|
6110
|
+
ConditionalFormattingOperator["LessThanEqualTo"] = "LESS_THAN_EQUAL_TO";
|
|
6111
|
+
/** Equal to */
|
|
6112
|
+
ConditionalFormattingOperator["EqualTo"] = "EQUAL_TO";
|
|
6113
|
+
/** Not equal to */
|
|
6114
|
+
ConditionalFormattingOperator["NotEqualTo"] = "NOT_EQUAL_TO";
|
|
6115
|
+
/** Is between */
|
|
6116
|
+
ConditionalFormattingOperator["IsBetween"] = "IS_BETWEEN";
|
|
6117
|
+
/** Is null */
|
|
6118
|
+
ConditionalFormattingOperator["IsNull"] = "IS_NULL";
|
|
6119
|
+
/** Is not null */
|
|
6120
|
+
ConditionalFormattingOperator["IsNotNull"] = "IS_NOT_NULL";
|
|
6121
|
+
})(ConditionalFormattingOperator || (ConditionalFormattingOperator = {}));
|
|
6122
|
+
/**
|
|
6123
|
+
* Background format types for conditional formatting
|
|
6124
|
+
* @group Visual Overrides
|
|
6125
|
+
*/
|
|
6126
|
+
var BackgroundFormatType;
|
|
6127
|
+
(function (BackgroundFormatType) {
|
|
6128
|
+
/** Solid color background */
|
|
6129
|
+
BackgroundFormatType["Solid"] = "SOLID";
|
|
6130
|
+
/** Gradient background */
|
|
6131
|
+
BackgroundFormatType["Gradient"] = "GRADIENT";
|
|
6132
|
+
})(BackgroundFormatType || (BackgroundFormatType = {}));
|
|
6133
|
+
/**
|
|
6134
|
+
* Comparison types for conditional formatting
|
|
6135
|
+
* @group Visual Overrides
|
|
6136
|
+
*/
|
|
6137
|
+
var ConditionalFormattingComparisonType;
|
|
6138
|
+
(function (ConditionalFormattingComparisonType) {
|
|
6139
|
+
/** Value-based comparison */
|
|
6140
|
+
ConditionalFormattingComparisonType["ValueBased"] = "VALUE_BASED";
|
|
6141
|
+
/** Column-based comparison */
|
|
6142
|
+
ConditionalFormattingComparisonType["ColumnBased"] = "COLUMN_BASED";
|
|
6143
|
+
/** Parameter-based comparison */
|
|
6144
|
+
ConditionalFormattingComparisonType["ParameterBased"] = "PARAMETER_BASED";
|
|
6145
|
+
})(ConditionalFormattingComparisonType || (ConditionalFormattingComparisonType = {}));
|
|
6146
|
+
/**
|
|
6147
|
+
* Legend position options
|
|
6148
|
+
* @group Visual Overrides
|
|
6149
|
+
*/
|
|
6150
|
+
var LegendPosition;
|
|
6151
|
+
(function (LegendPosition) {
|
|
6152
|
+
/** Position legend at the top */
|
|
6153
|
+
LegendPosition["Top"] = "top";
|
|
6154
|
+
/** Position legend at the bottom */
|
|
6155
|
+
LegendPosition["Bottom"] = "bottom";
|
|
6156
|
+
/** Position legend on the left */
|
|
6157
|
+
LegendPosition["Left"] = "left";
|
|
6158
|
+
/** Position legend on the right */
|
|
6159
|
+
LegendPosition["Right"] = "right";
|
|
6160
|
+
})(LegendPosition || (LegendPosition = {}));
|
|
6161
|
+
/**
|
|
6162
|
+
* Table theme options
|
|
6163
|
+
* @group Visual Overrides
|
|
6164
|
+
*/
|
|
6165
|
+
var TableTheme;
|
|
6166
|
+
(function (TableTheme) {
|
|
6167
|
+
/** Outline theme */
|
|
6168
|
+
TableTheme["Outline"] = "OUTLINE";
|
|
6169
|
+
/** Row theme */
|
|
6170
|
+
TableTheme["Row"] = "ROW";
|
|
6171
|
+
/** Zebra theme */
|
|
6172
|
+
TableTheme["Zebra"] = "ZEBRA";
|
|
6173
|
+
})(TableTheme || (TableTheme = {}));
|
|
6174
|
+
/**
|
|
6175
|
+
* Table content density options
|
|
6176
|
+
* @group Visual Overrides
|
|
6177
|
+
*/
|
|
6178
|
+
var TableContentDensity;
|
|
6179
|
+
(function (TableContentDensity) {
|
|
6180
|
+
/** Regular density */
|
|
6181
|
+
TableContentDensity["Regular"] = "REGULAR";
|
|
6182
|
+
/** Compact density */
|
|
6183
|
+
TableContentDensity["Compact"] = "COMPACT";
|
|
6184
|
+
})(TableContentDensity || (TableContentDensity = {}));
|
|
5963
6185
|
|
|
5964
6186
|
const logFunctions = {
|
|
5965
6187
|
[LogLevel.SILENT]: () => undefined,
|
|
@@ -7562,7 +7784,7 @@ var _setCacheAdd = setCacheAdd;
|
|
|
7562
7784
|
* @name has
|
|
7563
7785
|
* @memberOf SetCache
|
|
7564
7786
|
* @param {*} value The value to search for.
|
|
7565
|
-
* @returns {
|
|
7787
|
+
* @returns {boolean} Returns `true` if `value` is found, else `false`.
|
|
7566
7788
|
*/
|
|
7567
7789
|
function setCacheHas(value) {
|
|
7568
7790
|
return this.__data__.has(value);
|
|
@@ -9855,7 +10077,7 @@ class AnswerService {
|
|
|
9855
10077
|
async getTML() {
|
|
9856
10078
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
9857
10079
|
const edoc = object[0].edoc;
|
|
9858
|
-
const YAML = await import('./index-
|
|
10080
|
+
const YAML = await import('./index-DZq20cR6.js');
|
|
9859
10081
|
const parsedDoc = YAML.parse(edoc);
|
|
9860
10082
|
return {
|
|
9861
10083
|
answer: {
|
|
@@ -10931,7 +11153,7 @@ function baseOrderBy(collection, iteratees, orders) {
|
|
|
10931
11153
|
if (isArray_1(iteratee)) {
|
|
10932
11154
|
return function(value) {
|
|
10933
11155
|
return _baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
|
|
10934
|
-
}
|
|
11156
|
+
};
|
|
10935
11157
|
}
|
|
10936
11158
|
return iteratee;
|
|
10937
11159
|
});
|
|
@@ -17585,6 +17807,8 @@ var mixpanel$1 = /*#__PURE__*/_mergeNamespaces({
|
|
|
17585
17807
|
default: mixpanel_cjs
|
|
17586
17808
|
}, [mixpanel_cjs]);
|
|
17587
17809
|
|
|
17810
|
+
var version="1.47.3";
|
|
17811
|
+
|
|
17588
17812
|
// Needed to avoid error in CJS builds on some bundlers.
|
|
17589
17813
|
const mixpanelLib = mixpanel_cjs || mixpanel$1;
|
|
17590
17814
|
let mixpanelInstance;
|
|
@@ -17654,6 +17878,7 @@ function initMixpanel(sessionInfo) {
|
|
|
17654
17878
|
clusterName: sessionInfo.clusterName,
|
|
17655
17879
|
releaseVersion: sessionInfo.releaseVersion,
|
|
17656
17880
|
hostAppUrl: ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.host) || '',
|
|
17881
|
+
sdkVersion: version,
|
|
17657
17882
|
});
|
|
17658
17883
|
isMixpanelInitialized = true;
|
|
17659
17884
|
emptyQueue();
|
|
@@ -19331,8 +19556,6 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
|
|
|
19331
19556
|
return eventData;
|
|
19332
19557
|
}
|
|
19333
19558
|
|
|
19334
|
-
var version$1="1.47.1";var pkgInfo = {version:version$1};
|
|
19335
|
-
|
|
19336
19559
|
function isValidUpdateFiltersPayload(payload) {
|
|
19337
19560
|
if (!payload)
|
|
19338
19561
|
return false;
|
|
@@ -19743,7 +19966,6 @@ const processLegacyInterceptResponse = (payload) => {
|
|
|
19743
19966
|
* @summary Base classes
|
|
19744
19967
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
19745
19968
|
*/
|
|
19746
|
-
const { version } = pkgInfo;
|
|
19747
19969
|
/**
|
|
19748
19970
|
* Global prefix for all ThoughtSpot postHash Params.
|
|
19749
19971
|
*/
|
|
@@ -20658,6 +20880,17 @@ class TsEmbed {
|
|
|
20658
20880
|
setIFrameHeight(height) {
|
|
20659
20881
|
this.iFrame.style.height = getCssDimension(height);
|
|
20660
20882
|
}
|
|
20883
|
+
shouldSkipEvent(eventType, data) {
|
|
20884
|
+
var _a, _b, _c;
|
|
20885
|
+
const errorType = (_a = data === null || data === void 0 ? void 0 : data.errorType) !== null && _a !== void 0 ? _a : (_b = data === null || data === void 0 ? void 0 : data.data) === null || _b === void 0 ? void 0 : _b.code;
|
|
20886
|
+
if (eventType === EmbedEvent.Error
|
|
20887
|
+
&& errorType === EmbedErrorCodes.HOST_EVENT_VALIDATION
|
|
20888
|
+
&& (!getHostEventsConfig(this.viewConfig).useHostEventsV2 || getHostEventsConfig(this.viewConfig).shouldBypassPayloadValidation)) {
|
|
20889
|
+
logger$3.warn(`Host Event Validation failed: ${(_c = data === null || data === void 0 ? void 0 : data.data) === null || _c === void 0 ? void 0 : _c.message}`);
|
|
20890
|
+
return true;
|
|
20891
|
+
}
|
|
20892
|
+
return false;
|
|
20893
|
+
}
|
|
20661
20894
|
/**
|
|
20662
20895
|
* Executes all registered event handlers for a particular event type
|
|
20663
20896
|
* @param eventType The event type
|
|
@@ -20665,6 +20898,8 @@ class TsEmbed {
|
|
|
20665
20898
|
* @param eventPort The event Port for a specific MessageChannel
|
|
20666
20899
|
*/
|
|
20667
20900
|
executeCallbacks(eventType, data, eventPort) {
|
|
20901
|
+
if (this.shouldSkipEvent(eventType, data))
|
|
20902
|
+
return;
|
|
20668
20903
|
const eventHandlers = this.eventHandlerMap.get(eventType) || [];
|
|
20669
20904
|
const allHandlers = this.eventHandlerMap.get(EmbedEvent.ALL) || [];
|
|
20670
20905
|
const callbacks = [...eventHandlers, ...allHandlers];
|
|
@@ -20977,6 +21212,20 @@ class TsEmbed {
|
|
|
20977
21212
|
});
|
|
20978
21213
|
});
|
|
20979
21214
|
}
|
|
21215
|
+
/**
|
|
21216
|
+
* Generates the event name for a "Subscribed" embed event.
|
|
21217
|
+
*
|
|
21218
|
+
* This helper appends the "Subscribed" suffix to a given host or action event,
|
|
21219
|
+
* allowing you to listen for subscription lifecycle events in a consistent format.
|
|
21220
|
+
*
|
|
21221
|
+
* @param eventName - The host or action event to generate the subscribed event name for.
|
|
21222
|
+
* @returns The formatted event name (e.g., "Save Subscribed").
|
|
21223
|
+
*
|
|
21224
|
+
* @version SDK: 1.47.2 | ThoughtSpot: 26.3.0.cl
|
|
21225
|
+
*/
|
|
21226
|
+
subscribedEvent(eventName) {
|
|
21227
|
+
return `${eventName} ${EmbedEvent.Subscribed}`;
|
|
21228
|
+
}
|
|
20980
21229
|
/**
|
|
20981
21230
|
* Creates the preRender shell
|
|
20982
21231
|
* @param showPreRenderByDefault - Show the preRender after render, hidden by default
|
|
@@ -21325,14 +21574,21 @@ const resolveEnablePastConversationsSidebar = (params) => (params.spotterSidebar
|
|
|
21325
21574
|
? params.spotterSidebarConfigValue
|
|
21326
21575
|
: params.standaloneValue);
|
|
21327
21576
|
function buildSpotterSidebarAppInitData(defaultAppInitData, viewConfig, handleError) {
|
|
21328
|
-
const { spotterSidebarConfig, enablePastConversationsSidebar } = viewConfig;
|
|
21577
|
+
const { spotterSidebarConfig, enablePastConversationsSidebar, visualOverrides } = viewConfig;
|
|
21329
21578
|
const resolvedEnablePastConversations = resolveEnablePastConversationsSidebar({
|
|
21330
21579
|
spotterSidebarConfigValue: spotterSidebarConfig === null || spotterSidebarConfig === void 0 ? void 0 : spotterSidebarConfig.enablePastConversationsSidebar,
|
|
21331
21580
|
standaloneValue: enablePastConversationsSidebar,
|
|
21332
21581
|
});
|
|
21333
21582
|
const hasConfig = spotterSidebarConfig || resolvedEnablePastConversations !== undefined;
|
|
21334
|
-
if (!hasConfig)
|
|
21335
|
-
|
|
21583
|
+
if (!hasConfig) {
|
|
21584
|
+
if (visualOverrides === undefined) {
|
|
21585
|
+
return defaultAppInitData;
|
|
21586
|
+
}
|
|
21587
|
+
return {
|
|
21588
|
+
...defaultAppInitData,
|
|
21589
|
+
embedParams: { visualOverridesParams: visualOverrides },
|
|
21590
|
+
};
|
|
21591
|
+
}
|
|
21336
21592
|
const resolvedSidebarConfig = {
|
|
21337
21593
|
...spotterSidebarConfig,
|
|
21338
21594
|
...(resolvedEnablePastConversations !== undefined && {
|
|
@@ -21356,6 +21612,7 @@ function buildSpotterSidebarAppInitData(defaultAppInitData, viewConfig, handleEr
|
|
|
21356
21612
|
embedParams: {
|
|
21357
21613
|
...(defaultAppInitData.embedParams || {}),
|
|
21358
21614
|
spotterSidebarConfig: resolvedSidebarConfig,
|
|
21615
|
+
...(visualOverrides !== undefined ? { visualOverridesParams: visualOverrides } : {}),
|
|
21359
21616
|
},
|
|
21360
21617
|
};
|
|
21361
21618
|
}
|
|
@@ -21566,7 +21823,7 @@ class AppEmbed extends V1Embed {
|
|
|
21566
21823
|
* embedded Liveboard or visualization.
|
|
21567
21824
|
*/
|
|
21568
21825
|
getEmbedParams() {
|
|
21569
|
-
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 = DataPanelCustomColumnGroupsAccordionState$1.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;
|
|
21826
|
+
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, newChartsLibrary, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.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;
|
|
21570
21827
|
let params = {};
|
|
21571
21828
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
21572
21829
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
@@ -21577,6 +21834,9 @@ class AppEmbed extends V1Embed {
|
|
|
21577
21834
|
params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
|
|
21578
21835
|
params[Param.ShowMaskedFilterChip] = showMaskedFilterChip;
|
|
21579
21836
|
params[Param.IsLiveboardMasterpiecesEnabled] = isLiveboardMasterpiecesEnabled;
|
|
21837
|
+
if (newChartsLibrary !== undefined) {
|
|
21838
|
+
params[Param.EnableNewChartLibrary] = newChartsLibrary;
|
|
21839
|
+
}
|
|
21580
21840
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
21581
21841
|
params[Param.IsFullAppEmbed] = true;
|
|
21582
21842
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
@@ -21674,6 +21934,9 @@ class AppEmbed extends V1Embed {
|
|
|
21674
21934
|
params[Param.IsWYSIWYGLiveboardPDFEnabled] = isContinuousLiveboardPDFEnabled;
|
|
21675
21935
|
}
|
|
21676
21936
|
this.defaultHeight = minimumHeight || this.defaultHeight;
|
|
21937
|
+
if (enableLiveboardDataCache !== undefined) {
|
|
21938
|
+
params[Param.EnableLiveboardDataCache] = enableLiveboardDataCache;
|
|
21939
|
+
}
|
|
21677
21940
|
params[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
21678
21941
|
params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
|
|
21679
21942
|
params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
|
|
@@ -22031,7 +22294,7 @@ class LiveboardEmbed extends V1Embed {
|
|
|
22031
22294
|
getEmbedParamsObject() {
|
|
22032
22295
|
let params = {};
|
|
22033
22296
|
params = this.getBaseQueryParams(params);
|
|
22034
|
-
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;
|
|
22297
|
+
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, newChartsLibrary, 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;
|
|
22035
22298
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
22036
22299
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
22037
22300
|
if (fullHeight === true) {
|
|
@@ -22126,6 +22389,12 @@ class LiveboardEmbed extends V1Embed {
|
|
|
22126
22389
|
if (isContinuousLiveboardPDFEnabled !== undefined) {
|
|
22127
22390
|
params[Param.IsWYSIWYGLiveboardPDFEnabled] = isContinuousLiveboardPDFEnabled;
|
|
22128
22391
|
}
|
|
22392
|
+
if (enableLiveboardDataCache !== undefined) {
|
|
22393
|
+
params[Param.EnableLiveboardDataCache] = enableLiveboardDataCache;
|
|
22394
|
+
}
|
|
22395
|
+
if (newChartsLibrary !== undefined) {
|
|
22396
|
+
params[Param.EnableNewChartLibrary] = newChartsLibrary;
|
|
22397
|
+
}
|
|
22129
22398
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
22130
22399
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
22131
22400
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
@@ -22413,11 +22682,21 @@ class SearchEmbed extends TsEmbed {
|
|
|
22413
22682
|
}
|
|
22414
22683
|
async getAppInitData() {
|
|
22415
22684
|
const defaultAppInitData = await super.getAppInitData();
|
|
22416
|
-
|
|
22685
|
+
const result = {
|
|
22686
|
+
...defaultAppInitData,
|
|
22687
|
+
...this.getSearchInitData(),
|
|
22688
|
+
};
|
|
22689
|
+
if (this.viewConfig.visualOverrides) {
|
|
22690
|
+
result.embedParams = {
|
|
22691
|
+
...(defaultAppInitData.embedParams || {}),
|
|
22692
|
+
visualOverridesParams: this.viewConfig.visualOverrides,
|
|
22693
|
+
};
|
|
22694
|
+
}
|
|
22695
|
+
return result;
|
|
22417
22696
|
}
|
|
22418
22697
|
getEmbedParamsObject() {
|
|
22419
22698
|
var _a;
|
|
22420
|
-
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
|
|
22699
|
+
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, isThisPeriodInDateFiltersEnabled, newChartsLibrary, } = this.viewConfig;
|
|
22421
22700
|
const queryParams = this.getBaseQueryParams();
|
|
22422
22701
|
queryParams[Param.HideActions] = [
|
|
22423
22702
|
...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
@@ -22455,6 +22734,9 @@ class SearchEmbed extends TsEmbed {
|
|
|
22455
22734
|
if (isThisPeriodInDateFiltersEnabled !== undefined) {
|
|
22456
22735
|
queryParams[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
|
|
22457
22736
|
}
|
|
22737
|
+
if (newChartsLibrary !== undefined) {
|
|
22738
|
+
queryParams[Param.EnableNewChartLibrary] = newChartsLibrary;
|
|
22739
|
+
}
|
|
22458
22740
|
queryParams[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
22459
22741
|
queryParams[Param.DataSourceMode] = this.getDataSourceMode();
|
|
22460
22742
|
queryParams[Param.UseLastSelectedDataSource] = useLastSelectedSources;
|
|
@@ -23906,4 +24188,4 @@ class AutoFrameRenderer extends TsEmbed {
|
|
|
23906
24188
|
}
|
|
23907
24189
|
}
|
|
23908
24190
|
|
|
23909
|
-
export { Action, AnswerService, AppEmbed, AuthEvent, AuthFailureType, AuthStatus, AuthType, BodylessConversation, ContextMenuTriggerOptions, ContextType, ConversationEmbed, CustomActionTarget, CustomActionsPosition, DataPanelCustomColumnGroupsAccordionState$1 as DataPanelCustomColumnGroupsAccordionState, DataSourceVisualMode, EmbedErrorCodes, EmbedEvent, ErrorDetailsTypes, HomeLeftNavItem, HomePage, HomePageSearchBarMode, HomepageModule, HostEvent, InterceptedApiType, ListPage, ListPageColumns, LiveboardEmbed, LogLevel, MIXPANEL_EVENT, Page, PinboardEmbed, PrefetchFeatures, PrimaryNavbarVersion, RuntimeFilterOp, SearchBarEmbed, SearchEmbed, SpotterAgentEmbed, SpotterEmbed, UIPassthroughEvent, createLiveboardWithAnswers, executeTML, exportTML, getAnswerFromQuery, getEmbedConfig as getInitConfig, getSessionInfo, init, logout, prefetch, reloadIframe, resetCachedAuthToken, startAutoMCPFrameRenderer, tokenizedFetch, uploadMixpanelEvent };
|
|
24191
|
+
export { Action, AnswerService, AppEmbed, AuthEvent, AuthFailureType, AuthStatus, AuthType, BackgroundFormatType, BodylessConversation, ConditionalFormattingComparisonType, ConditionalFormattingOperator, ContextMenuTriggerOptions, ContextType, ConversationEmbed, CustomActionTarget, CustomActionsPosition, DataLabelFilterOperator, DataPanelCustomColumnGroupsAccordionState$1 as DataPanelCustomColumnGroupsAccordionState, DataSourceVisualMode, EmbedErrorCodes, EmbedEvent, ErrorDetailsTypes, HomeLeftNavItem, HomePage, HomePageSearchBarMode, HomepageModule, HostEvent, InterceptedApiType, LegendPosition, ListPage, ListPageColumns, LiveboardEmbed, LogLevel, MIXPANEL_EVENT, Page, PinboardEmbed, PrefetchFeatures, PrimaryNavbarVersion, RuntimeFilterOp, SearchBarEmbed, SearchEmbed, SpotterAgentEmbed, SpotterEmbed, TableContentDensity, TableTheme, UIPassthroughEvent, createLiveboardWithAnswers, executeTML, exportTML, getAnswerFromQuery, getEmbedConfig as getInitConfig, getSessionInfo, init, logout, prefetch, reloadIframe, resetCachedAuthToken, startAutoMCPFrameRenderer, tokenizedFetch, uploadMixpanelEvent };
|