@thoughtspot/visual-embed-sdk 1.47.2 → 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 +1 -1
- package/cjs/src/embed/app.d.ts +6 -1
- 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 +112 -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/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 +22 -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 +1 -0
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +15 -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 +424 -0
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +121 -1
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-CFZ7RDZ9.js → index-DZq20cR6.js} +1 -1
- package/dist/src/embed/app.d.ts +6 -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/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 +1 -0
- 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 +424 -0
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +173 -13
- package/dist/tsembed-react.js +172 -12
- package/dist/tsembed.es.js +174 -14
- package/dist/tsembed.js +172 -12
- package/dist/visual-embed-sdk-react-full.d.ts +425 -0
- package/dist/visual-embed-sdk-react.d.ts +425 -0
- package/dist/visual-embed-sdk.d.ts +453 -0
- package/lib/package.json +1 -1
- package/lib/src/embed/app.d.ts +6 -1
- 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 +113 -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/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 +22 -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 +1 -0
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +14 -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 +424 -0
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +120 -0
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +453 -0
- package/package.json +1 -1
- package/src/embed/app.spec.ts +141 -0
- package/src/embed/app.ts +11 -0
- package/src/embed/conversation.ts +2 -1
- package/src/embed/liveboard.spec.ts +32 -0
- package/src/embed/liveboard.ts +5 -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 +14 -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 +454 -0
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) {
|
|
@@ -4013,6 +4013,7 @@ var Param;
|
|
|
4013
4013
|
Param["ShowLiveboardTitle"] = "showLiveboardTitle";
|
|
4014
4014
|
Param["ShowMaskedFilterChip"] = "showMaskedFilterChip";
|
|
4015
4015
|
Param["IsLiveboardMasterpiecesEnabled"] = "isLiveboardMasterpiecesEnabled";
|
|
4016
|
+
Param["EnableNewChartLibrary"] = "muzeChartPhase1EnabledGA";
|
|
4016
4017
|
Param["HiddenTabs"] = "hideTabs";
|
|
4017
4018
|
Param["VisibleTabs"] = "visibleTabs";
|
|
4018
4019
|
Param["HideTabPanel"] = "hideTabPanel";
|
|
@@ -6061,7 +6062,126 @@ var InterceptedApiType;
|
|
|
6061
6062
|
* The apis that are use to get the data for the liveboard
|
|
6062
6063
|
*/
|
|
6063
6064
|
InterceptedApiType["LiveboardData"] = "LiveboardData";
|
|
6064
|
-
})(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 = {}));
|
|
6065
6185
|
|
|
6066
6186
|
const logFunctions = {
|
|
6067
6187
|
[LogLevel.SILENT]: () => undefined,
|
|
@@ -9957,7 +10077,7 @@ class AnswerService {
|
|
|
9957
10077
|
async getTML() {
|
|
9958
10078
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
9959
10079
|
const edoc = object[0].edoc;
|
|
9960
|
-
const YAML = await import('./index-
|
|
10080
|
+
const YAML = await import('./index-DZq20cR6.js');
|
|
9961
10081
|
const parsedDoc = YAML.parse(edoc);
|
|
9962
10082
|
return {
|
|
9963
10083
|
answer: {
|
|
@@ -17687,6 +17807,8 @@ var mixpanel$1 = /*#__PURE__*/_mergeNamespaces({
|
|
|
17687
17807
|
default: mixpanel_cjs
|
|
17688
17808
|
}, [mixpanel_cjs]);
|
|
17689
17809
|
|
|
17810
|
+
var version="1.47.3";
|
|
17811
|
+
|
|
17690
17812
|
// Needed to avoid error in CJS builds on some bundlers.
|
|
17691
17813
|
const mixpanelLib = mixpanel_cjs || mixpanel$1;
|
|
17692
17814
|
let mixpanelInstance;
|
|
@@ -17756,6 +17878,7 @@ function initMixpanel(sessionInfo) {
|
|
|
17756
17878
|
clusterName: sessionInfo.clusterName,
|
|
17757
17879
|
releaseVersion: sessionInfo.releaseVersion,
|
|
17758
17880
|
hostAppUrl: ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.host) || '',
|
|
17881
|
+
sdkVersion: version,
|
|
17759
17882
|
});
|
|
17760
17883
|
isMixpanelInitialized = true;
|
|
17761
17884
|
emptyQueue();
|
|
@@ -19433,8 +19556,6 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
|
|
|
19433
19556
|
return eventData;
|
|
19434
19557
|
}
|
|
19435
19558
|
|
|
19436
|
-
var version$1="1.47.2";var pkgInfo = {version:version$1};
|
|
19437
|
-
|
|
19438
19559
|
function isValidUpdateFiltersPayload(payload) {
|
|
19439
19560
|
if (!payload)
|
|
19440
19561
|
return false;
|
|
@@ -19845,7 +19966,6 @@ const processLegacyInterceptResponse = (payload) => {
|
|
|
19845
19966
|
* @summary Base classes
|
|
19846
19967
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
19847
19968
|
*/
|
|
19848
|
-
const { version } = pkgInfo;
|
|
19849
19969
|
/**
|
|
19850
19970
|
* Global prefix for all ThoughtSpot postHash Params.
|
|
19851
19971
|
*/
|
|
@@ -20760,6 +20880,17 @@ class TsEmbed {
|
|
|
20760
20880
|
setIFrameHeight(height) {
|
|
20761
20881
|
this.iFrame.style.height = getCssDimension(height);
|
|
20762
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
|
+
}
|
|
20763
20894
|
/**
|
|
20764
20895
|
* Executes all registered event handlers for a particular event type
|
|
20765
20896
|
* @param eventType The event type
|
|
@@ -20767,6 +20898,8 @@ class TsEmbed {
|
|
|
20767
20898
|
* @param eventPort The event Port for a specific MessageChannel
|
|
20768
20899
|
*/
|
|
20769
20900
|
executeCallbacks(eventType, data, eventPort) {
|
|
20901
|
+
if (this.shouldSkipEvent(eventType, data))
|
|
20902
|
+
return;
|
|
20770
20903
|
const eventHandlers = this.eventHandlerMap.get(eventType) || [];
|
|
20771
20904
|
const allHandlers = this.eventHandlerMap.get(EmbedEvent.ALL) || [];
|
|
20772
20905
|
const callbacks = [...eventHandlers, ...allHandlers];
|
|
@@ -21441,14 +21574,21 @@ const resolveEnablePastConversationsSidebar = (params) => (params.spotterSidebar
|
|
|
21441
21574
|
? params.spotterSidebarConfigValue
|
|
21442
21575
|
: params.standaloneValue);
|
|
21443
21576
|
function buildSpotterSidebarAppInitData(defaultAppInitData, viewConfig, handleError) {
|
|
21444
|
-
const { spotterSidebarConfig, enablePastConversationsSidebar } = viewConfig;
|
|
21577
|
+
const { spotterSidebarConfig, enablePastConversationsSidebar, visualOverrides } = viewConfig;
|
|
21445
21578
|
const resolvedEnablePastConversations = resolveEnablePastConversationsSidebar({
|
|
21446
21579
|
spotterSidebarConfigValue: spotterSidebarConfig === null || spotterSidebarConfig === void 0 ? void 0 : spotterSidebarConfig.enablePastConversationsSidebar,
|
|
21447
21580
|
standaloneValue: enablePastConversationsSidebar,
|
|
21448
21581
|
});
|
|
21449
21582
|
const hasConfig = spotterSidebarConfig || resolvedEnablePastConversations !== undefined;
|
|
21450
|
-
if (!hasConfig)
|
|
21451
|
-
|
|
21583
|
+
if (!hasConfig) {
|
|
21584
|
+
if (visualOverrides === undefined) {
|
|
21585
|
+
return defaultAppInitData;
|
|
21586
|
+
}
|
|
21587
|
+
return {
|
|
21588
|
+
...defaultAppInitData,
|
|
21589
|
+
embedParams: { visualOverridesParams: visualOverrides },
|
|
21590
|
+
};
|
|
21591
|
+
}
|
|
21452
21592
|
const resolvedSidebarConfig = {
|
|
21453
21593
|
...spotterSidebarConfig,
|
|
21454
21594
|
...(resolvedEnablePastConversations !== undefined && {
|
|
@@ -21472,6 +21612,7 @@ function buildSpotterSidebarAppInitData(defaultAppInitData, viewConfig, handleEr
|
|
|
21472
21612
|
embedParams: {
|
|
21473
21613
|
...(defaultAppInitData.embedParams || {}),
|
|
21474
21614
|
spotterSidebarConfig: resolvedSidebarConfig,
|
|
21615
|
+
...(visualOverrides !== undefined ? { visualOverridesParams: visualOverrides } : {}),
|
|
21475
21616
|
},
|
|
21476
21617
|
};
|
|
21477
21618
|
}
|
|
@@ -21682,7 +21823,7 @@ class AppEmbed extends V1Embed {
|
|
|
21682
21823
|
* embedded Liveboard or visualization.
|
|
21683
21824
|
*/
|
|
21684
21825
|
getEmbedParams() {
|
|
21685
|
-
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, enableLiveboardDataCache, } = 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;
|
|
21686
21827
|
let params = {};
|
|
21687
21828
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
21688
21829
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
@@ -21693,6 +21834,9 @@ class AppEmbed extends V1Embed {
|
|
|
21693
21834
|
params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
|
|
21694
21835
|
params[Param.ShowMaskedFilterChip] = showMaskedFilterChip;
|
|
21695
21836
|
params[Param.IsLiveboardMasterpiecesEnabled] = isLiveboardMasterpiecesEnabled;
|
|
21837
|
+
if (newChartsLibrary !== undefined) {
|
|
21838
|
+
params[Param.EnableNewChartLibrary] = newChartsLibrary;
|
|
21839
|
+
}
|
|
21696
21840
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
21697
21841
|
params[Param.IsFullAppEmbed] = true;
|
|
21698
21842
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
@@ -22150,7 +22294,7 @@ class LiveboardEmbed extends V1Embed {
|
|
|
22150
22294
|
getEmbedParamsObject() {
|
|
22151
22295
|
let params = {};
|
|
22152
22296
|
params = this.getBaseQueryParams(params);
|
|
22153
|
-
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;
|
|
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;
|
|
22154
22298
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
22155
22299
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
22156
22300
|
if (fullHeight === true) {
|
|
@@ -22248,6 +22392,9 @@ class LiveboardEmbed extends V1Embed {
|
|
|
22248
22392
|
if (enableLiveboardDataCache !== undefined) {
|
|
22249
22393
|
params[Param.EnableLiveboardDataCache] = enableLiveboardDataCache;
|
|
22250
22394
|
}
|
|
22395
|
+
if (newChartsLibrary !== undefined) {
|
|
22396
|
+
params[Param.EnableNewChartLibrary] = newChartsLibrary;
|
|
22397
|
+
}
|
|
22251
22398
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
22252
22399
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
22253
22400
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
@@ -22535,11 +22682,21 @@ class SearchEmbed extends TsEmbed {
|
|
|
22535
22682
|
}
|
|
22536
22683
|
async getAppInitData() {
|
|
22537
22684
|
const defaultAppInitData = await super.getAppInitData();
|
|
22538
|
-
|
|
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;
|
|
22539
22696
|
}
|
|
22540
22697
|
getEmbedParamsObject() {
|
|
22541
22698
|
var _a;
|
|
22542
|
-
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;
|
|
22543
22700
|
const queryParams = this.getBaseQueryParams();
|
|
22544
22701
|
queryParams[Param.HideActions] = [
|
|
22545
22702
|
...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
@@ -22577,6 +22734,9 @@ class SearchEmbed extends TsEmbed {
|
|
|
22577
22734
|
if (isThisPeriodInDateFiltersEnabled !== undefined) {
|
|
22578
22735
|
queryParams[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
|
|
22579
22736
|
}
|
|
22737
|
+
if (newChartsLibrary !== undefined) {
|
|
22738
|
+
queryParams[Param.EnableNewChartLibrary] = newChartsLibrary;
|
|
22739
|
+
}
|
|
22580
22740
|
queryParams[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
22581
22741
|
queryParams[Param.DataSourceMode] = this.getDataSourceMode();
|
|
22582
22742
|
queryParams[Param.UseLastSelectedDataSource] = useLastSelectedSources;
|
|
@@ -24028,4 +24188,4 @@ class AutoFrameRenderer extends TsEmbed {
|
|
|
24028
24188
|
}
|
|
24029
24189
|
}
|
|
24030
24190
|
|
|
24031
|
-
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 };
|
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.3 */
|
|
2
2
|
'use client';
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
@@ -4019,6 +4019,7 @@
|
|
|
4019
4019
|
Param["ShowLiveboardTitle"] = "showLiveboardTitle";
|
|
4020
4020
|
Param["ShowMaskedFilterChip"] = "showMaskedFilterChip";
|
|
4021
4021
|
Param["IsLiveboardMasterpiecesEnabled"] = "isLiveboardMasterpiecesEnabled";
|
|
4022
|
+
Param["EnableNewChartLibrary"] = "muzeChartPhase1EnabledGA";
|
|
4022
4023
|
Param["HiddenTabs"] = "hideTabs";
|
|
4023
4024
|
Param["VisibleTabs"] = "visibleTabs";
|
|
4024
4025
|
Param["HideTabPanel"] = "hideTabPanel";
|
|
@@ -6067,7 +6068,126 @@
|
|
|
6067
6068
|
* The apis that are use to get the data for the liveboard
|
|
6068
6069
|
*/
|
|
6069
6070
|
InterceptedApiType["LiveboardData"] = "LiveboardData";
|
|
6070
|
-
})(exports.InterceptedApiType || (exports.InterceptedApiType = {}));
|
|
6071
|
+
})(exports.InterceptedApiType || (exports.InterceptedApiType = {}));
|
|
6072
|
+
/**
|
|
6073
|
+
* Data label filter operators
|
|
6074
|
+
* @group Visual Overrides
|
|
6075
|
+
*/
|
|
6076
|
+
exports.DataLabelFilterOperator = void 0;
|
|
6077
|
+
(function (DataLabelFilterOperator) {
|
|
6078
|
+
/** Greater than */
|
|
6079
|
+
DataLabelFilterOperator["GreaterThan"] = "GREATER_THAN";
|
|
6080
|
+
/** Less than */
|
|
6081
|
+
DataLabelFilterOperator["LessThan"] = "LESS_THAN";
|
|
6082
|
+
/** Greater than or equal to */
|
|
6083
|
+
DataLabelFilterOperator["GreaterThanOrEqualTo"] = "GREATER_THAN_OR_EQUAL_TO";
|
|
6084
|
+
/** Less than or equal to */
|
|
6085
|
+
DataLabelFilterOperator["LessThanOrEqualTo"] = "LESS_THAN_OR_EQUAL_TO";
|
|
6086
|
+
/** Equal to */
|
|
6087
|
+
DataLabelFilterOperator["EqualTo"] = "EQUAL_TO";
|
|
6088
|
+
/** Not equal to */
|
|
6089
|
+
DataLabelFilterOperator["NotEqualTo"] = "NOT_EQUAL_TO";
|
|
6090
|
+
})(exports.DataLabelFilterOperator || (exports.DataLabelFilterOperator = {}));
|
|
6091
|
+
/**
|
|
6092
|
+
* Conditional formatting operators
|
|
6093
|
+
* @group Visual Overrides
|
|
6094
|
+
*/
|
|
6095
|
+
exports.ConditionalFormattingOperator = void 0;
|
|
6096
|
+
(function (ConditionalFormattingOperator) {
|
|
6097
|
+
/** Is equal to */
|
|
6098
|
+
ConditionalFormattingOperator["Is"] = "IS";
|
|
6099
|
+
/** Is not equal to */
|
|
6100
|
+
ConditionalFormattingOperator["IsNot"] = "IS_NOT";
|
|
6101
|
+
/** Contains */
|
|
6102
|
+
ConditionalFormattingOperator["Contains"] = "CONTAINS";
|
|
6103
|
+
/** Does not contain */
|
|
6104
|
+
ConditionalFormattingOperator["DoesNotContain"] = "DOES_NOT_CONTAIN";
|
|
6105
|
+
/** Starts with */
|
|
6106
|
+
ConditionalFormattingOperator["StartsWith"] = "STARTS_WITH";
|
|
6107
|
+
/** Ends with */
|
|
6108
|
+
ConditionalFormattingOperator["EndsWith"] = "ENDS_WITH";
|
|
6109
|
+
/** Greater than */
|
|
6110
|
+
ConditionalFormattingOperator["GreaterThan"] = "GREATER_THAN";
|
|
6111
|
+
/** Less than */
|
|
6112
|
+
ConditionalFormattingOperator["LessThan"] = "LESS_THAN";
|
|
6113
|
+
/** Greater than or equal to */
|
|
6114
|
+
ConditionalFormattingOperator["GreaterThanEqualTo"] = "GREATER_THAN_EQUAL_TO";
|
|
6115
|
+
/** Less than or equal to */
|
|
6116
|
+
ConditionalFormattingOperator["LessThanEqualTo"] = "LESS_THAN_EQUAL_TO";
|
|
6117
|
+
/** Equal to */
|
|
6118
|
+
ConditionalFormattingOperator["EqualTo"] = "EQUAL_TO";
|
|
6119
|
+
/** Not equal to */
|
|
6120
|
+
ConditionalFormattingOperator["NotEqualTo"] = "NOT_EQUAL_TO";
|
|
6121
|
+
/** Is between */
|
|
6122
|
+
ConditionalFormattingOperator["IsBetween"] = "IS_BETWEEN";
|
|
6123
|
+
/** Is null */
|
|
6124
|
+
ConditionalFormattingOperator["IsNull"] = "IS_NULL";
|
|
6125
|
+
/** Is not null */
|
|
6126
|
+
ConditionalFormattingOperator["IsNotNull"] = "IS_NOT_NULL";
|
|
6127
|
+
})(exports.ConditionalFormattingOperator || (exports.ConditionalFormattingOperator = {}));
|
|
6128
|
+
/**
|
|
6129
|
+
* Background format types for conditional formatting
|
|
6130
|
+
* @group Visual Overrides
|
|
6131
|
+
*/
|
|
6132
|
+
exports.BackgroundFormatType = void 0;
|
|
6133
|
+
(function (BackgroundFormatType) {
|
|
6134
|
+
/** Solid color background */
|
|
6135
|
+
BackgroundFormatType["Solid"] = "SOLID";
|
|
6136
|
+
/** Gradient background */
|
|
6137
|
+
BackgroundFormatType["Gradient"] = "GRADIENT";
|
|
6138
|
+
})(exports.BackgroundFormatType || (exports.BackgroundFormatType = {}));
|
|
6139
|
+
/**
|
|
6140
|
+
* Comparison types for conditional formatting
|
|
6141
|
+
* @group Visual Overrides
|
|
6142
|
+
*/
|
|
6143
|
+
exports.ConditionalFormattingComparisonType = void 0;
|
|
6144
|
+
(function (ConditionalFormattingComparisonType) {
|
|
6145
|
+
/** Value-based comparison */
|
|
6146
|
+
ConditionalFormattingComparisonType["ValueBased"] = "VALUE_BASED";
|
|
6147
|
+
/** Column-based comparison */
|
|
6148
|
+
ConditionalFormattingComparisonType["ColumnBased"] = "COLUMN_BASED";
|
|
6149
|
+
/** Parameter-based comparison */
|
|
6150
|
+
ConditionalFormattingComparisonType["ParameterBased"] = "PARAMETER_BASED";
|
|
6151
|
+
})(exports.ConditionalFormattingComparisonType || (exports.ConditionalFormattingComparisonType = {}));
|
|
6152
|
+
/**
|
|
6153
|
+
* Legend position options
|
|
6154
|
+
* @group Visual Overrides
|
|
6155
|
+
*/
|
|
6156
|
+
exports.LegendPosition = void 0;
|
|
6157
|
+
(function (LegendPosition) {
|
|
6158
|
+
/** Position legend at the top */
|
|
6159
|
+
LegendPosition["Top"] = "top";
|
|
6160
|
+
/** Position legend at the bottom */
|
|
6161
|
+
LegendPosition["Bottom"] = "bottom";
|
|
6162
|
+
/** Position legend on the left */
|
|
6163
|
+
LegendPosition["Left"] = "left";
|
|
6164
|
+
/** Position legend on the right */
|
|
6165
|
+
LegendPosition["Right"] = "right";
|
|
6166
|
+
})(exports.LegendPosition || (exports.LegendPosition = {}));
|
|
6167
|
+
/**
|
|
6168
|
+
* Table theme options
|
|
6169
|
+
* @group Visual Overrides
|
|
6170
|
+
*/
|
|
6171
|
+
exports.TableTheme = void 0;
|
|
6172
|
+
(function (TableTheme) {
|
|
6173
|
+
/** Outline theme */
|
|
6174
|
+
TableTheme["Outline"] = "OUTLINE";
|
|
6175
|
+
/** Row theme */
|
|
6176
|
+
TableTheme["Row"] = "ROW";
|
|
6177
|
+
/** Zebra theme */
|
|
6178
|
+
TableTheme["Zebra"] = "ZEBRA";
|
|
6179
|
+
})(exports.TableTheme || (exports.TableTheme = {}));
|
|
6180
|
+
/**
|
|
6181
|
+
* Table content density options
|
|
6182
|
+
* @group Visual Overrides
|
|
6183
|
+
*/
|
|
6184
|
+
exports.TableContentDensity = void 0;
|
|
6185
|
+
(function (TableContentDensity) {
|
|
6186
|
+
/** Regular density */
|
|
6187
|
+
TableContentDensity["Regular"] = "REGULAR";
|
|
6188
|
+
/** Compact density */
|
|
6189
|
+
TableContentDensity["Compact"] = "COMPACT";
|
|
6190
|
+
})(exports.TableContentDensity || (exports.TableContentDensity = {}));
|
|
6071
6191
|
|
|
6072
6192
|
const logFunctions = {
|
|
6073
6193
|
[exports.LogLevel.SILENT]: () => undefined,
|
|
@@ -17693,6 +17813,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17693
17813
|
default: mixpanel_cjs
|
|
17694
17814
|
}, [mixpanel_cjs]);
|
|
17695
17815
|
|
|
17816
|
+
var version="1.47.3";
|
|
17817
|
+
|
|
17696
17818
|
// Needed to avoid error in CJS builds on some bundlers.
|
|
17697
17819
|
const mixpanelLib = mixpanel_cjs || mixpanel$1;
|
|
17698
17820
|
let mixpanelInstance;
|
|
@@ -17762,6 +17884,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17762
17884
|
clusterName: sessionInfo.clusterName,
|
|
17763
17885
|
releaseVersion: sessionInfo.releaseVersion,
|
|
17764
17886
|
hostAppUrl: ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.host) || '',
|
|
17887
|
+
sdkVersion: version,
|
|
17765
17888
|
});
|
|
17766
17889
|
isMixpanelInitialized = true;
|
|
17767
17890
|
emptyQueue();
|
|
@@ -19439,8 +19562,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
19439
19562
|
return eventData;
|
|
19440
19563
|
}
|
|
19441
19564
|
|
|
19442
|
-
var version$1="1.47.2";var pkgInfo = {version:version$1};
|
|
19443
|
-
|
|
19444
19565
|
function isValidUpdateFiltersPayload(payload) {
|
|
19445
19566
|
if (!payload)
|
|
19446
19567
|
return false;
|
|
@@ -19851,7 +19972,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
19851
19972
|
* @summary Base classes
|
|
19852
19973
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
19853
19974
|
*/
|
|
19854
|
-
const { version } = pkgInfo;
|
|
19855
19975
|
/**
|
|
19856
19976
|
* Global prefix for all ThoughtSpot postHash Params.
|
|
19857
19977
|
*/
|
|
@@ -20766,6 +20886,17 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20766
20886
|
setIFrameHeight(height) {
|
|
20767
20887
|
this.iFrame.style.height = getCssDimension(height);
|
|
20768
20888
|
}
|
|
20889
|
+
shouldSkipEvent(eventType, data) {
|
|
20890
|
+
var _a, _b, _c;
|
|
20891
|
+
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;
|
|
20892
|
+
if (eventType === exports.EmbedEvent.Error
|
|
20893
|
+
&& errorType === exports.EmbedErrorCodes.HOST_EVENT_VALIDATION
|
|
20894
|
+
&& (!getHostEventsConfig(this.viewConfig).useHostEventsV2 || getHostEventsConfig(this.viewConfig).shouldBypassPayloadValidation)) {
|
|
20895
|
+
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}`);
|
|
20896
|
+
return true;
|
|
20897
|
+
}
|
|
20898
|
+
return false;
|
|
20899
|
+
}
|
|
20769
20900
|
/**
|
|
20770
20901
|
* Executes all registered event handlers for a particular event type
|
|
20771
20902
|
* @param eventType The event type
|
|
@@ -20773,6 +20904,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20773
20904
|
* @param eventPort The event Port for a specific MessageChannel
|
|
20774
20905
|
*/
|
|
20775
20906
|
executeCallbacks(eventType, data, eventPort) {
|
|
20907
|
+
if (this.shouldSkipEvent(eventType, data))
|
|
20908
|
+
return;
|
|
20776
20909
|
const eventHandlers = this.eventHandlerMap.get(eventType) || [];
|
|
20777
20910
|
const allHandlers = this.eventHandlerMap.get(exports.EmbedEvent.ALL) || [];
|
|
20778
20911
|
const callbacks = [...eventHandlers, ...allHandlers];
|
|
@@ -21447,14 +21580,21 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21447
21580
|
? params.spotterSidebarConfigValue
|
|
21448
21581
|
: params.standaloneValue);
|
|
21449
21582
|
function buildSpotterSidebarAppInitData(defaultAppInitData, viewConfig, handleError) {
|
|
21450
|
-
const { spotterSidebarConfig, enablePastConversationsSidebar } = viewConfig;
|
|
21583
|
+
const { spotterSidebarConfig, enablePastConversationsSidebar, visualOverrides } = viewConfig;
|
|
21451
21584
|
const resolvedEnablePastConversations = resolveEnablePastConversationsSidebar({
|
|
21452
21585
|
spotterSidebarConfigValue: spotterSidebarConfig === null || spotterSidebarConfig === void 0 ? void 0 : spotterSidebarConfig.enablePastConversationsSidebar,
|
|
21453
21586
|
standaloneValue: enablePastConversationsSidebar,
|
|
21454
21587
|
});
|
|
21455
21588
|
const hasConfig = spotterSidebarConfig || resolvedEnablePastConversations !== undefined;
|
|
21456
|
-
if (!hasConfig)
|
|
21457
|
-
|
|
21589
|
+
if (!hasConfig) {
|
|
21590
|
+
if (visualOverrides === undefined) {
|
|
21591
|
+
return defaultAppInitData;
|
|
21592
|
+
}
|
|
21593
|
+
return {
|
|
21594
|
+
...defaultAppInitData,
|
|
21595
|
+
embedParams: { visualOverridesParams: visualOverrides },
|
|
21596
|
+
};
|
|
21597
|
+
}
|
|
21458
21598
|
const resolvedSidebarConfig = {
|
|
21459
21599
|
...spotterSidebarConfig,
|
|
21460
21600
|
...(resolvedEnablePastConversations !== undefined && {
|
|
@@ -21478,6 +21618,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21478
21618
|
embedParams: {
|
|
21479
21619
|
...(defaultAppInitData.embedParams || {}),
|
|
21480
21620
|
spotterSidebarConfig: resolvedSidebarConfig,
|
|
21621
|
+
...(visualOverrides !== undefined ? { visualOverridesParams: visualOverrides } : {}),
|
|
21481
21622
|
},
|
|
21482
21623
|
};
|
|
21483
21624
|
}
|
|
@@ -21688,7 +21829,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21688
21829
|
* embedded Liveboard or visualization.
|
|
21689
21830
|
*/
|
|
21690
21831
|
getEmbedParams() {
|
|
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;
|
|
21832
|
+
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 = 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;
|
|
21692
21833
|
let params = {};
|
|
21693
21834
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
21694
21835
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
@@ -21699,6 +21840,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21699
21840
|
params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
|
|
21700
21841
|
params[Param.ShowMaskedFilterChip] = showMaskedFilterChip;
|
|
21701
21842
|
params[Param.IsLiveboardMasterpiecesEnabled] = isLiveboardMasterpiecesEnabled;
|
|
21843
|
+
if (newChartsLibrary !== undefined) {
|
|
21844
|
+
params[Param.EnableNewChartLibrary] = newChartsLibrary;
|
|
21845
|
+
}
|
|
21702
21846
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
21703
21847
|
params[Param.IsFullAppEmbed] = true;
|
|
21704
21848
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
@@ -22156,7 +22300,7 @@ query GetEurekaVizSnapshots(
|
|
|
22156
22300
|
getEmbedParamsObject() {
|
|
22157
22301
|
let params = {};
|
|
22158
22302
|
params = this.getBaseQueryParams(params);
|
|
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;
|
|
22303
|
+
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;
|
|
22160
22304
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
22161
22305
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
22162
22306
|
if (fullHeight === true) {
|
|
@@ -22254,6 +22398,9 @@ query GetEurekaVizSnapshots(
|
|
|
22254
22398
|
if (enableLiveboardDataCache !== undefined) {
|
|
22255
22399
|
params[Param.EnableLiveboardDataCache] = enableLiveboardDataCache;
|
|
22256
22400
|
}
|
|
22401
|
+
if (newChartsLibrary !== undefined) {
|
|
22402
|
+
params[Param.EnableNewChartLibrary] = newChartsLibrary;
|
|
22403
|
+
}
|
|
22257
22404
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
22258
22405
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
22259
22406
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
@@ -22541,11 +22688,21 @@ query GetEurekaVizSnapshots(
|
|
|
22541
22688
|
}
|
|
22542
22689
|
async getAppInitData() {
|
|
22543
22690
|
const defaultAppInitData = await super.getAppInitData();
|
|
22544
|
-
|
|
22691
|
+
const result = {
|
|
22692
|
+
...defaultAppInitData,
|
|
22693
|
+
...this.getSearchInitData(),
|
|
22694
|
+
};
|
|
22695
|
+
if (this.viewConfig.visualOverrides) {
|
|
22696
|
+
result.embedParams = {
|
|
22697
|
+
...(defaultAppInitData.embedParams || {}),
|
|
22698
|
+
visualOverridesParams: this.viewConfig.visualOverrides,
|
|
22699
|
+
};
|
|
22700
|
+
}
|
|
22701
|
+
return result;
|
|
22545
22702
|
}
|
|
22546
22703
|
getEmbedParamsObject() {
|
|
22547
22704
|
var _a;
|
|
22548
|
-
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;
|
|
22705
|
+
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;
|
|
22549
22706
|
const queryParams = this.getBaseQueryParams();
|
|
22550
22707
|
queryParams[Param.HideActions] = [
|
|
22551
22708
|
...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
@@ -22583,6 +22740,9 @@ query GetEurekaVizSnapshots(
|
|
|
22583
22740
|
if (isThisPeriodInDateFiltersEnabled !== undefined) {
|
|
22584
22741
|
queryParams[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
|
|
22585
22742
|
}
|
|
22743
|
+
if (newChartsLibrary !== undefined) {
|
|
22744
|
+
queryParams[Param.EnableNewChartLibrary] = newChartsLibrary;
|
|
22745
|
+
}
|
|
22586
22746
|
queryParams[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
22587
22747
|
queryParams[Param.DataSourceMode] = this.getDataSourceMode();
|
|
22588
22748
|
queryParams[Param.UseLastSelectedDataSource] = useLastSelectedSources;
|