@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-react.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
|
import * as React from 'react';
|
|
4
4
|
import React__default, { useRef, useCallback } from 'react';
|
|
@@ -4181,6 +4181,7 @@ var Param;
|
|
|
4181
4181
|
Param["ShowLiveboardTitle"] = "showLiveboardTitle";
|
|
4182
4182
|
Param["ShowMaskedFilterChip"] = "showMaskedFilterChip";
|
|
4183
4183
|
Param["IsLiveboardMasterpiecesEnabled"] = "isLiveboardMasterpiecesEnabled";
|
|
4184
|
+
Param["EnableNewChartLibrary"] = "muzeChartPhase1EnabledGA";
|
|
4184
4185
|
Param["HiddenTabs"] = "hideTabs";
|
|
4185
4186
|
Param["VisibleTabs"] = "visibleTabs";
|
|
4186
4187
|
Param["HideTabPanel"] = "hideTabPanel";
|
|
@@ -6229,7 +6230,126 @@ var InterceptedApiType;
|
|
|
6229
6230
|
* The apis that are use to get the data for the liveboard
|
|
6230
6231
|
*/
|
|
6231
6232
|
InterceptedApiType["LiveboardData"] = "LiveboardData";
|
|
6232
|
-
})(InterceptedApiType || (InterceptedApiType = {}));
|
|
6233
|
+
})(InterceptedApiType || (InterceptedApiType = {}));
|
|
6234
|
+
/**
|
|
6235
|
+
* Data label filter operators
|
|
6236
|
+
* @group Visual Overrides
|
|
6237
|
+
*/
|
|
6238
|
+
var DataLabelFilterOperator;
|
|
6239
|
+
(function (DataLabelFilterOperator) {
|
|
6240
|
+
/** Greater than */
|
|
6241
|
+
DataLabelFilterOperator["GreaterThan"] = "GREATER_THAN";
|
|
6242
|
+
/** Less than */
|
|
6243
|
+
DataLabelFilterOperator["LessThan"] = "LESS_THAN";
|
|
6244
|
+
/** Greater than or equal to */
|
|
6245
|
+
DataLabelFilterOperator["GreaterThanOrEqualTo"] = "GREATER_THAN_OR_EQUAL_TO";
|
|
6246
|
+
/** Less than or equal to */
|
|
6247
|
+
DataLabelFilterOperator["LessThanOrEqualTo"] = "LESS_THAN_OR_EQUAL_TO";
|
|
6248
|
+
/** Equal to */
|
|
6249
|
+
DataLabelFilterOperator["EqualTo"] = "EQUAL_TO";
|
|
6250
|
+
/** Not equal to */
|
|
6251
|
+
DataLabelFilterOperator["NotEqualTo"] = "NOT_EQUAL_TO";
|
|
6252
|
+
})(DataLabelFilterOperator || (DataLabelFilterOperator = {}));
|
|
6253
|
+
/**
|
|
6254
|
+
* Conditional formatting operators
|
|
6255
|
+
* @group Visual Overrides
|
|
6256
|
+
*/
|
|
6257
|
+
var ConditionalFormattingOperator;
|
|
6258
|
+
(function (ConditionalFormattingOperator) {
|
|
6259
|
+
/** Is equal to */
|
|
6260
|
+
ConditionalFormattingOperator["Is"] = "IS";
|
|
6261
|
+
/** Is not equal to */
|
|
6262
|
+
ConditionalFormattingOperator["IsNot"] = "IS_NOT";
|
|
6263
|
+
/** Contains */
|
|
6264
|
+
ConditionalFormattingOperator["Contains"] = "CONTAINS";
|
|
6265
|
+
/** Does not contain */
|
|
6266
|
+
ConditionalFormattingOperator["DoesNotContain"] = "DOES_NOT_CONTAIN";
|
|
6267
|
+
/** Starts with */
|
|
6268
|
+
ConditionalFormattingOperator["StartsWith"] = "STARTS_WITH";
|
|
6269
|
+
/** Ends with */
|
|
6270
|
+
ConditionalFormattingOperator["EndsWith"] = "ENDS_WITH";
|
|
6271
|
+
/** Greater than */
|
|
6272
|
+
ConditionalFormattingOperator["GreaterThan"] = "GREATER_THAN";
|
|
6273
|
+
/** Less than */
|
|
6274
|
+
ConditionalFormattingOperator["LessThan"] = "LESS_THAN";
|
|
6275
|
+
/** Greater than or equal to */
|
|
6276
|
+
ConditionalFormattingOperator["GreaterThanEqualTo"] = "GREATER_THAN_EQUAL_TO";
|
|
6277
|
+
/** Less than or equal to */
|
|
6278
|
+
ConditionalFormattingOperator["LessThanEqualTo"] = "LESS_THAN_EQUAL_TO";
|
|
6279
|
+
/** Equal to */
|
|
6280
|
+
ConditionalFormattingOperator["EqualTo"] = "EQUAL_TO";
|
|
6281
|
+
/** Not equal to */
|
|
6282
|
+
ConditionalFormattingOperator["NotEqualTo"] = "NOT_EQUAL_TO";
|
|
6283
|
+
/** Is between */
|
|
6284
|
+
ConditionalFormattingOperator["IsBetween"] = "IS_BETWEEN";
|
|
6285
|
+
/** Is null */
|
|
6286
|
+
ConditionalFormattingOperator["IsNull"] = "IS_NULL";
|
|
6287
|
+
/** Is not null */
|
|
6288
|
+
ConditionalFormattingOperator["IsNotNull"] = "IS_NOT_NULL";
|
|
6289
|
+
})(ConditionalFormattingOperator || (ConditionalFormattingOperator = {}));
|
|
6290
|
+
/**
|
|
6291
|
+
* Background format types for conditional formatting
|
|
6292
|
+
* @group Visual Overrides
|
|
6293
|
+
*/
|
|
6294
|
+
var BackgroundFormatType;
|
|
6295
|
+
(function (BackgroundFormatType) {
|
|
6296
|
+
/** Solid color background */
|
|
6297
|
+
BackgroundFormatType["Solid"] = "SOLID";
|
|
6298
|
+
/** Gradient background */
|
|
6299
|
+
BackgroundFormatType["Gradient"] = "GRADIENT";
|
|
6300
|
+
})(BackgroundFormatType || (BackgroundFormatType = {}));
|
|
6301
|
+
/**
|
|
6302
|
+
* Comparison types for conditional formatting
|
|
6303
|
+
* @group Visual Overrides
|
|
6304
|
+
*/
|
|
6305
|
+
var ConditionalFormattingComparisonType;
|
|
6306
|
+
(function (ConditionalFormattingComparisonType) {
|
|
6307
|
+
/** Value-based comparison */
|
|
6308
|
+
ConditionalFormattingComparisonType["ValueBased"] = "VALUE_BASED";
|
|
6309
|
+
/** Column-based comparison */
|
|
6310
|
+
ConditionalFormattingComparisonType["ColumnBased"] = "COLUMN_BASED";
|
|
6311
|
+
/** Parameter-based comparison */
|
|
6312
|
+
ConditionalFormattingComparisonType["ParameterBased"] = "PARAMETER_BASED";
|
|
6313
|
+
})(ConditionalFormattingComparisonType || (ConditionalFormattingComparisonType = {}));
|
|
6314
|
+
/**
|
|
6315
|
+
* Legend position options
|
|
6316
|
+
* @group Visual Overrides
|
|
6317
|
+
*/
|
|
6318
|
+
var LegendPosition;
|
|
6319
|
+
(function (LegendPosition) {
|
|
6320
|
+
/** Position legend at the top */
|
|
6321
|
+
LegendPosition["Top"] = "top";
|
|
6322
|
+
/** Position legend at the bottom */
|
|
6323
|
+
LegendPosition["Bottom"] = "bottom";
|
|
6324
|
+
/** Position legend on the left */
|
|
6325
|
+
LegendPosition["Left"] = "left";
|
|
6326
|
+
/** Position legend on the right */
|
|
6327
|
+
LegendPosition["Right"] = "right";
|
|
6328
|
+
})(LegendPosition || (LegendPosition = {}));
|
|
6329
|
+
/**
|
|
6330
|
+
* Table theme options
|
|
6331
|
+
* @group Visual Overrides
|
|
6332
|
+
*/
|
|
6333
|
+
var TableTheme;
|
|
6334
|
+
(function (TableTheme) {
|
|
6335
|
+
/** Outline theme */
|
|
6336
|
+
TableTheme["Outline"] = "OUTLINE";
|
|
6337
|
+
/** Row theme */
|
|
6338
|
+
TableTheme["Row"] = "ROW";
|
|
6339
|
+
/** Zebra theme */
|
|
6340
|
+
TableTheme["Zebra"] = "ZEBRA";
|
|
6341
|
+
})(TableTheme || (TableTheme = {}));
|
|
6342
|
+
/**
|
|
6343
|
+
* Table content density options
|
|
6344
|
+
* @group Visual Overrides
|
|
6345
|
+
*/
|
|
6346
|
+
var TableContentDensity;
|
|
6347
|
+
(function (TableContentDensity) {
|
|
6348
|
+
/** Regular density */
|
|
6349
|
+
TableContentDensity["Regular"] = "REGULAR";
|
|
6350
|
+
/** Compact density */
|
|
6351
|
+
TableContentDensity["Compact"] = "COMPACT";
|
|
6352
|
+
})(TableContentDensity || (TableContentDensity = {}));
|
|
6233
6353
|
|
|
6234
6354
|
const logFunctions = {
|
|
6235
6355
|
[LogLevel.SILENT]: () => undefined,
|
|
@@ -10073,7 +10193,7 @@ class AnswerService {
|
|
|
10073
10193
|
async getTML() {
|
|
10074
10194
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
10075
10195
|
const edoc = object[0].edoc;
|
|
10076
|
-
const YAML = await import('./index-
|
|
10196
|
+
const YAML = await import('./index-DZq20cR6.js');
|
|
10077
10197
|
const parsedDoc = YAML.parse(edoc);
|
|
10078
10198
|
return {
|
|
10079
10199
|
answer: {
|
|
@@ -17803,6 +17923,8 @@ var mixpanel$1 = /*#__PURE__*/_mergeNamespaces({
|
|
|
17803
17923
|
default: mixpanel_cjs
|
|
17804
17924
|
}, [mixpanel_cjs]);
|
|
17805
17925
|
|
|
17926
|
+
var version="1.47.3";
|
|
17927
|
+
|
|
17806
17928
|
// Needed to avoid error in CJS builds on some bundlers.
|
|
17807
17929
|
const mixpanelLib = mixpanel_cjs || mixpanel$1;
|
|
17808
17930
|
let mixpanelInstance;
|
|
@@ -17869,6 +17991,7 @@ function initMixpanel(sessionInfo) {
|
|
|
17869
17991
|
clusterName: sessionInfo.clusterName,
|
|
17870
17992
|
releaseVersion: sessionInfo.releaseVersion,
|
|
17871
17993
|
hostAppUrl: ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.host) || '',
|
|
17994
|
+
sdkVersion: version,
|
|
17872
17995
|
});
|
|
17873
17996
|
isMixpanelInitialized = true;
|
|
17874
17997
|
emptyQueue();
|
|
@@ -19367,8 +19490,6 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
|
|
|
19367
19490
|
return eventData;
|
|
19368
19491
|
}
|
|
19369
19492
|
|
|
19370
|
-
var version$1="1.47.2";var pkgInfo = {version:version$1};
|
|
19371
|
-
|
|
19372
19493
|
function isValidUpdateFiltersPayload(payload) {
|
|
19373
19494
|
if (!payload)
|
|
19374
19495
|
return false;
|
|
@@ -19779,7 +19900,6 @@ const processLegacyInterceptResponse = (payload) => {
|
|
|
19779
19900
|
* @summary Base classes
|
|
19780
19901
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
19781
19902
|
*/
|
|
19782
|
-
const { version } = pkgInfo;
|
|
19783
19903
|
/**
|
|
19784
19904
|
* Global prefix for all ThoughtSpot postHash Params.
|
|
19785
19905
|
*/
|
|
@@ -20694,6 +20814,17 @@ class TsEmbed {
|
|
|
20694
20814
|
setIFrameHeight(height) {
|
|
20695
20815
|
this.iFrame.style.height = getCssDimension(height);
|
|
20696
20816
|
}
|
|
20817
|
+
shouldSkipEvent(eventType, data) {
|
|
20818
|
+
var _a, _b, _c;
|
|
20819
|
+
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;
|
|
20820
|
+
if (eventType === EmbedEvent.Error
|
|
20821
|
+
&& errorType === EmbedErrorCodes.HOST_EVENT_VALIDATION
|
|
20822
|
+
&& (!getHostEventsConfig(this.viewConfig).useHostEventsV2 || getHostEventsConfig(this.viewConfig).shouldBypassPayloadValidation)) {
|
|
20823
|
+
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}`);
|
|
20824
|
+
return true;
|
|
20825
|
+
}
|
|
20826
|
+
return false;
|
|
20827
|
+
}
|
|
20697
20828
|
/**
|
|
20698
20829
|
* Executes all registered event handlers for a particular event type
|
|
20699
20830
|
* @param eventType The event type
|
|
@@ -20701,6 +20832,8 @@ class TsEmbed {
|
|
|
20701
20832
|
* @param eventPort The event Port for a specific MessageChannel
|
|
20702
20833
|
*/
|
|
20703
20834
|
executeCallbacks(eventType, data, eventPort) {
|
|
20835
|
+
if (this.shouldSkipEvent(eventType, data))
|
|
20836
|
+
return;
|
|
20704
20837
|
const eventHandlers = this.eventHandlerMap.get(eventType) || [];
|
|
20705
20838
|
const allHandlers = this.eventHandlerMap.get(EmbedEvent.ALL) || [];
|
|
20706
20839
|
const callbacks = [...eventHandlers, ...allHandlers];
|
|
@@ -21516,11 +21649,21 @@ let SearchEmbed$1 = class SearchEmbed extends TsEmbed {
|
|
|
21516
21649
|
}
|
|
21517
21650
|
async getAppInitData() {
|
|
21518
21651
|
const defaultAppInitData = await super.getAppInitData();
|
|
21519
|
-
|
|
21652
|
+
const result = {
|
|
21653
|
+
...defaultAppInitData,
|
|
21654
|
+
...this.getSearchInitData(),
|
|
21655
|
+
};
|
|
21656
|
+
if (this.viewConfig.visualOverrides) {
|
|
21657
|
+
result.embedParams = {
|
|
21658
|
+
...(defaultAppInitData.embedParams || {}),
|
|
21659
|
+
visualOverridesParams: this.viewConfig.visualOverrides,
|
|
21660
|
+
};
|
|
21661
|
+
}
|
|
21662
|
+
return result;
|
|
21520
21663
|
}
|
|
21521
21664
|
getEmbedParamsObject() {
|
|
21522
21665
|
var _a;
|
|
21523
|
-
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
|
|
21666
|
+
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, isThisPeriodInDateFiltersEnabled, newChartsLibrary, } = this.viewConfig;
|
|
21524
21667
|
const queryParams = this.getBaseQueryParams();
|
|
21525
21668
|
queryParams[Param.HideActions] = [
|
|
21526
21669
|
...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
@@ -21558,6 +21701,9 @@ let SearchEmbed$1 = class SearchEmbed extends TsEmbed {
|
|
|
21558
21701
|
if (isThisPeriodInDateFiltersEnabled !== undefined) {
|
|
21559
21702
|
queryParams[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
|
|
21560
21703
|
}
|
|
21704
|
+
if (newChartsLibrary !== undefined) {
|
|
21705
|
+
queryParams[Param.EnableNewChartLibrary] = newChartsLibrary;
|
|
21706
|
+
}
|
|
21561
21707
|
queryParams[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
21562
21708
|
queryParams[Param.DataSourceMode] = this.getDataSourceMode();
|
|
21563
21709
|
queryParams[Param.UseLastSelectedDataSource] = useLastSelectedSources;
|
|
@@ -21634,14 +21780,21 @@ const resolveEnablePastConversationsSidebar = (params) => (params.spotterSidebar
|
|
|
21634
21780
|
? params.spotterSidebarConfigValue
|
|
21635
21781
|
: params.standaloneValue);
|
|
21636
21782
|
function buildSpotterSidebarAppInitData(defaultAppInitData, viewConfig, handleError) {
|
|
21637
|
-
const { spotterSidebarConfig, enablePastConversationsSidebar } = viewConfig;
|
|
21783
|
+
const { spotterSidebarConfig, enablePastConversationsSidebar, visualOverrides } = viewConfig;
|
|
21638
21784
|
const resolvedEnablePastConversations = resolveEnablePastConversationsSidebar({
|
|
21639
21785
|
spotterSidebarConfigValue: spotterSidebarConfig === null || spotterSidebarConfig === void 0 ? void 0 : spotterSidebarConfig.enablePastConversationsSidebar,
|
|
21640
21786
|
standaloneValue: enablePastConversationsSidebar,
|
|
21641
21787
|
});
|
|
21642
21788
|
const hasConfig = spotterSidebarConfig || resolvedEnablePastConversations !== undefined;
|
|
21643
|
-
if (!hasConfig)
|
|
21644
|
-
|
|
21789
|
+
if (!hasConfig) {
|
|
21790
|
+
if (visualOverrides === undefined) {
|
|
21791
|
+
return defaultAppInitData;
|
|
21792
|
+
}
|
|
21793
|
+
return {
|
|
21794
|
+
...defaultAppInitData,
|
|
21795
|
+
embedParams: { visualOverridesParams: visualOverrides },
|
|
21796
|
+
};
|
|
21797
|
+
}
|
|
21645
21798
|
const resolvedSidebarConfig = {
|
|
21646
21799
|
...spotterSidebarConfig,
|
|
21647
21800
|
...(resolvedEnablePastConversations !== undefined && {
|
|
@@ -21665,6 +21818,7 @@ function buildSpotterSidebarAppInitData(defaultAppInitData, viewConfig, handleEr
|
|
|
21665
21818
|
embedParams: {
|
|
21666
21819
|
...(defaultAppInitData.embedParams || {}),
|
|
21667
21820
|
spotterSidebarConfig: resolvedSidebarConfig,
|
|
21821
|
+
...(visualOverrides !== undefined ? { visualOverridesParams: visualOverrides } : {}),
|
|
21668
21822
|
},
|
|
21669
21823
|
};
|
|
21670
21824
|
}
|
|
@@ -21875,7 +22029,7 @@ let AppEmbed$1 = class AppEmbed extends V1Embed {
|
|
|
21875
22029
|
* embedded Liveboard or visualization.
|
|
21876
22030
|
*/
|
|
21877
22031
|
getEmbedParams() {
|
|
21878
|
-
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.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;
|
|
22032
|
+
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.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;
|
|
21879
22033
|
let params = {};
|
|
21880
22034
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
21881
22035
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
@@ -21886,6 +22040,9 @@ let AppEmbed$1 = class AppEmbed extends V1Embed {
|
|
|
21886
22040
|
params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
|
|
21887
22041
|
params[Param.ShowMaskedFilterChip] = showMaskedFilterChip;
|
|
21888
22042
|
params[Param.IsLiveboardMasterpiecesEnabled] = isLiveboardMasterpiecesEnabled;
|
|
22043
|
+
if (newChartsLibrary !== undefined) {
|
|
22044
|
+
params[Param.EnableNewChartLibrary] = newChartsLibrary;
|
|
22045
|
+
}
|
|
21889
22046
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
21890
22047
|
params[Param.IsFullAppEmbed] = true;
|
|
21891
22048
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
@@ -22343,7 +22500,7 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
|
|
|
22343
22500
|
getEmbedParamsObject() {
|
|
22344
22501
|
let params = {};
|
|
22345
22502
|
params = this.getBaseQueryParams(params);
|
|
22346
|
-
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;
|
|
22503
|
+
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;
|
|
22347
22504
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
22348
22505
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
22349
22506
|
if (fullHeight === true) {
|
|
@@ -22441,6 +22598,9 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
|
|
|
22441
22598
|
if (enableLiveboardDataCache !== undefined) {
|
|
22442
22599
|
params[Param.EnableLiveboardDataCache] = enableLiveboardDataCache;
|
|
22443
22600
|
}
|
|
22601
|
+
if (newChartsLibrary !== undefined) {
|
|
22602
|
+
params[Param.EnableNewChartLibrary] = newChartsLibrary;
|
|
22603
|
+
}
|
|
22444
22604
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
22445
22605
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
22446
22606
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
package/dist/tsembed-react.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, require('react')) :
|
|
@@ -4203,6 +4203,7 @@
|
|
|
4203
4203
|
Param["ShowLiveboardTitle"] = "showLiveboardTitle";
|
|
4204
4204
|
Param["ShowMaskedFilterChip"] = "showMaskedFilterChip";
|
|
4205
4205
|
Param["IsLiveboardMasterpiecesEnabled"] = "isLiveboardMasterpiecesEnabled";
|
|
4206
|
+
Param["EnableNewChartLibrary"] = "muzeChartPhase1EnabledGA";
|
|
4206
4207
|
Param["HiddenTabs"] = "hideTabs";
|
|
4207
4208
|
Param["VisibleTabs"] = "visibleTabs";
|
|
4208
4209
|
Param["HideTabPanel"] = "hideTabPanel";
|
|
@@ -6251,7 +6252,126 @@
|
|
|
6251
6252
|
* The apis that are use to get the data for the liveboard
|
|
6252
6253
|
*/
|
|
6253
6254
|
InterceptedApiType["LiveboardData"] = "LiveboardData";
|
|
6254
|
-
})(InterceptedApiType || (InterceptedApiType = {}));
|
|
6255
|
+
})(InterceptedApiType || (InterceptedApiType = {}));
|
|
6256
|
+
/**
|
|
6257
|
+
* Data label filter operators
|
|
6258
|
+
* @group Visual Overrides
|
|
6259
|
+
*/
|
|
6260
|
+
var DataLabelFilterOperator;
|
|
6261
|
+
(function (DataLabelFilterOperator) {
|
|
6262
|
+
/** Greater than */
|
|
6263
|
+
DataLabelFilterOperator["GreaterThan"] = "GREATER_THAN";
|
|
6264
|
+
/** Less than */
|
|
6265
|
+
DataLabelFilterOperator["LessThan"] = "LESS_THAN";
|
|
6266
|
+
/** Greater than or equal to */
|
|
6267
|
+
DataLabelFilterOperator["GreaterThanOrEqualTo"] = "GREATER_THAN_OR_EQUAL_TO";
|
|
6268
|
+
/** Less than or equal to */
|
|
6269
|
+
DataLabelFilterOperator["LessThanOrEqualTo"] = "LESS_THAN_OR_EQUAL_TO";
|
|
6270
|
+
/** Equal to */
|
|
6271
|
+
DataLabelFilterOperator["EqualTo"] = "EQUAL_TO";
|
|
6272
|
+
/** Not equal to */
|
|
6273
|
+
DataLabelFilterOperator["NotEqualTo"] = "NOT_EQUAL_TO";
|
|
6274
|
+
})(DataLabelFilterOperator || (DataLabelFilterOperator = {}));
|
|
6275
|
+
/**
|
|
6276
|
+
* Conditional formatting operators
|
|
6277
|
+
* @group Visual Overrides
|
|
6278
|
+
*/
|
|
6279
|
+
var ConditionalFormattingOperator;
|
|
6280
|
+
(function (ConditionalFormattingOperator) {
|
|
6281
|
+
/** Is equal to */
|
|
6282
|
+
ConditionalFormattingOperator["Is"] = "IS";
|
|
6283
|
+
/** Is not equal to */
|
|
6284
|
+
ConditionalFormattingOperator["IsNot"] = "IS_NOT";
|
|
6285
|
+
/** Contains */
|
|
6286
|
+
ConditionalFormattingOperator["Contains"] = "CONTAINS";
|
|
6287
|
+
/** Does not contain */
|
|
6288
|
+
ConditionalFormattingOperator["DoesNotContain"] = "DOES_NOT_CONTAIN";
|
|
6289
|
+
/** Starts with */
|
|
6290
|
+
ConditionalFormattingOperator["StartsWith"] = "STARTS_WITH";
|
|
6291
|
+
/** Ends with */
|
|
6292
|
+
ConditionalFormattingOperator["EndsWith"] = "ENDS_WITH";
|
|
6293
|
+
/** Greater than */
|
|
6294
|
+
ConditionalFormattingOperator["GreaterThan"] = "GREATER_THAN";
|
|
6295
|
+
/** Less than */
|
|
6296
|
+
ConditionalFormattingOperator["LessThan"] = "LESS_THAN";
|
|
6297
|
+
/** Greater than or equal to */
|
|
6298
|
+
ConditionalFormattingOperator["GreaterThanEqualTo"] = "GREATER_THAN_EQUAL_TO";
|
|
6299
|
+
/** Less than or equal to */
|
|
6300
|
+
ConditionalFormattingOperator["LessThanEqualTo"] = "LESS_THAN_EQUAL_TO";
|
|
6301
|
+
/** Equal to */
|
|
6302
|
+
ConditionalFormattingOperator["EqualTo"] = "EQUAL_TO";
|
|
6303
|
+
/** Not equal to */
|
|
6304
|
+
ConditionalFormattingOperator["NotEqualTo"] = "NOT_EQUAL_TO";
|
|
6305
|
+
/** Is between */
|
|
6306
|
+
ConditionalFormattingOperator["IsBetween"] = "IS_BETWEEN";
|
|
6307
|
+
/** Is null */
|
|
6308
|
+
ConditionalFormattingOperator["IsNull"] = "IS_NULL";
|
|
6309
|
+
/** Is not null */
|
|
6310
|
+
ConditionalFormattingOperator["IsNotNull"] = "IS_NOT_NULL";
|
|
6311
|
+
})(ConditionalFormattingOperator || (ConditionalFormattingOperator = {}));
|
|
6312
|
+
/**
|
|
6313
|
+
* Background format types for conditional formatting
|
|
6314
|
+
* @group Visual Overrides
|
|
6315
|
+
*/
|
|
6316
|
+
var BackgroundFormatType;
|
|
6317
|
+
(function (BackgroundFormatType) {
|
|
6318
|
+
/** Solid color background */
|
|
6319
|
+
BackgroundFormatType["Solid"] = "SOLID";
|
|
6320
|
+
/** Gradient background */
|
|
6321
|
+
BackgroundFormatType["Gradient"] = "GRADIENT";
|
|
6322
|
+
})(BackgroundFormatType || (BackgroundFormatType = {}));
|
|
6323
|
+
/**
|
|
6324
|
+
* Comparison types for conditional formatting
|
|
6325
|
+
* @group Visual Overrides
|
|
6326
|
+
*/
|
|
6327
|
+
var ConditionalFormattingComparisonType;
|
|
6328
|
+
(function (ConditionalFormattingComparisonType) {
|
|
6329
|
+
/** Value-based comparison */
|
|
6330
|
+
ConditionalFormattingComparisonType["ValueBased"] = "VALUE_BASED";
|
|
6331
|
+
/** Column-based comparison */
|
|
6332
|
+
ConditionalFormattingComparisonType["ColumnBased"] = "COLUMN_BASED";
|
|
6333
|
+
/** Parameter-based comparison */
|
|
6334
|
+
ConditionalFormattingComparisonType["ParameterBased"] = "PARAMETER_BASED";
|
|
6335
|
+
})(ConditionalFormattingComparisonType || (ConditionalFormattingComparisonType = {}));
|
|
6336
|
+
/**
|
|
6337
|
+
* Legend position options
|
|
6338
|
+
* @group Visual Overrides
|
|
6339
|
+
*/
|
|
6340
|
+
var LegendPosition;
|
|
6341
|
+
(function (LegendPosition) {
|
|
6342
|
+
/** Position legend at the top */
|
|
6343
|
+
LegendPosition["Top"] = "top";
|
|
6344
|
+
/** Position legend at the bottom */
|
|
6345
|
+
LegendPosition["Bottom"] = "bottom";
|
|
6346
|
+
/** Position legend on the left */
|
|
6347
|
+
LegendPosition["Left"] = "left";
|
|
6348
|
+
/** Position legend on the right */
|
|
6349
|
+
LegendPosition["Right"] = "right";
|
|
6350
|
+
})(LegendPosition || (LegendPosition = {}));
|
|
6351
|
+
/**
|
|
6352
|
+
* Table theme options
|
|
6353
|
+
* @group Visual Overrides
|
|
6354
|
+
*/
|
|
6355
|
+
var TableTheme;
|
|
6356
|
+
(function (TableTheme) {
|
|
6357
|
+
/** Outline theme */
|
|
6358
|
+
TableTheme["Outline"] = "OUTLINE";
|
|
6359
|
+
/** Row theme */
|
|
6360
|
+
TableTheme["Row"] = "ROW";
|
|
6361
|
+
/** Zebra theme */
|
|
6362
|
+
TableTheme["Zebra"] = "ZEBRA";
|
|
6363
|
+
})(TableTheme || (TableTheme = {}));
|
|
6364
|
+
/**
|
|
6365
|
+
* Table content density options
|
|
6366
|
+
* @group Visual Overrides
|
|
6367
|
+
*/
|
|
6368
|
+
var TableContentDensity;
|
|
6369
|
+
(function (TableContentDensity) {
|
|
6370
|
+
/** Regular density */
|
|
6371
|
+
TableContentDensity["Regular"] = "REGULAR";
|
|
6372
|
+
/** Compact density */
|
|
6373
|
+
TableContentDensity["Compact"] = "COMPACT";
|
|
6374
|
+
})(TableContentDensity || (TableContentDensity = {}));
|
|
6255
6375
|
|
|
6256
6376
|
const logFunctions = {
|
|
6257
6377
|
[exports.LogLevel.SILENT]: () => undefined,
|
|
@@ -17825,6 +17945,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17825
17945
|
default: mixpanel_cjs
|
|
17826
17946
|
}, [mixpanel_cjs]);
|
|
17827
17947
|
|
|
17948
|
+
var version="1.47.3";
|
|
17949
|
+
|
|
17828
17950
|
// Needed to avoid error in CJS builds on some bundlers.
|
|
17829
17951
|
const mixpanelLib = mixpanel_cjs || mixpanel$1;
|
|
17830
17952
|
let mixpanelInstance;
|
|
@@ -17891,6 +18013,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17891
18013
|
clusterName: sessionInfo.clusterName,
|
|
17892
18014
|
releaseVersion: sessionInfo.releaseVersion,
|
|
17893
18015
|
hostAppUrl: ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.host) || '',
|
|
18016
|
+
sdkVersion: version,
|
|
17894
18017
|
});
|
|
17895
18018
|
isMixpanelInitialized = true;
|
|
17896
18019
|
emptyQueue();
|
|
@@ -19389,8 +19512,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
19389
19512
|
return eventData;
|
|
19390
19513
|
}
|
|
19391
19514
|
|
|
19392
|
-
var version$1="1.47.2";var pkgInfo = {version:version$1};
|
|
19393
|
-
|
|
19394
19515
|
function isValidUpdateFiltersPayload(payload) {
|
|
19395
19516
|
if (!payload)
|
|
19396
19517
|
return false;
|
|
@@ -19801,7 +19922,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
19801
19922
|
* @summary Base classes
|
|
19802
19923
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
19803
19924
|
*/
|
|
19804
|
-
const { version } = pkgInfo;
|
|
19805
19925
|
/**
|
|
19806
19926
|
* Global prefix for all ThoughtSpot postHash Params.
|
|
19807
19927
|
*/
|
|
@@ -20716,6 +20836,17 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20716
20836
|
setIFrameHeight(height) {
|
|
20717
20837
|
this.iFrame.style.height = getCssDimension(height);
|
|
20718
20838
|
}
|
|
20839
|
+
shouldSkipEvent(eventType, data) {
|
|
20840
|
+
var _a, _b, _c;
|
|
20841
|
+
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;
|
|
20842
|
+
if (eventType === exports.EmbedEvent.Error
|
|
20843
|
+
&& errorType === EmbedErrorCodes.HOST_EVENT_VALIDATION
|
|
20844
|
+
&& (!getHostEventsConfig(this.viewConfig).useHostEventsV2 || getHostEventsConfig(this.viewConfig).shouldBypassPayloadValidation)) {
|
|
20845
|
+
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}`);
|
|
20846
|
+
return true;
|
|
20847
|
+
}
|
|
20848
|
+
return false;
|
|
20849
|
+
}
|
|
20719
20850
|
/**
|
|
20720
20851
|
* Executes all registered event handlers for a particular event type
|
|
20721
20852
|
* @param eventType The event type
|
|
@@ -20723,6 +20854,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20723
20854
|
* @param eventPort The event Port for a specific MessageChannel
|
|
20724
20855
|
*/
|
|
20725
20856
|
executeCallbacks(eventType, data, eventPort) {
|
|
20857
|
+
if (this.shouldSkipEvent(eventType, data))
|
|
20858
|
+
return;
|
|
20726
20859
|
const eventHandlers = this.eventHandlerMap.get(eventType) || [];
|
|
20727
20860
|
const allHandlers = this.eventHandlerMap.get(exports.EmbedEvent.ALL) || [];
|
|
20728
20861
|
const callbacks = [...eventHandlers, ...allHandlers];
|
|
@@ -21538,11 +21671,21 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21538
21671
|
}
|
|
21539
21672
|
async getAppInitData() {
|
|
21540
21673
|
const defaultAppInitData = await super.getAppInitData();
|
|
21541
|
-
|
|
21674
|
+
const result = {
|
|
21675
|
+
...defaultAppInitData,
|
|
21676
|
+
...this.getSearchInitData(),
|
|
21677
|
+
};
|
|
21678
|
+
if (this.viewConfig.visualOverrides) {
|
|
21679
|
+
result.embedParams = {
|
|
21680
|
+
...(defaultAppInitData.embedParams || {}),
|
|
21681
|
+
visualOverridesParams: this.viewConfig.visualOverrides,
|
|
21682
|
+
};
|
|
21683
|
+
}
|
|
21684
|
+
return result;
|
|
21542
21685
|
}
|
|
21543
21686
|
getEmbedParamsObject() {
|
|
21544
21687
|
var _a;
|
|
21545
|
-
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
|
|
21688
|
+
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, isThisPeriodInDateFiltersEnabled, newChartsLibrary, } = this.viewConfig;
|
|
21546
21689
|
const queryParams = this.getBaseQueryParams();
|
|
21547
21690
|
queryParams[Param.HideActions] = [
|
|
21548
21691
|
...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
@@ -21580,6 +21723,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21580
21723
|
if (isThisPeriodInDateFiltersEnabled !== undefined) {
|
|
21581
21724
|
queryParams[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
|
|
21582
21725
|
}
|
|
21726
|
+
if (newChartsLibrary !== undefined) {
|
|
21727
|
+
queryParams[Param.EnableNewChartLibrary] = newChartsLibrary;
|
|
21728
|
+
}
|
|
21583
21729
|
queryParams[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
21584
21730
|
queryParams[Param.DataSourceMode] = this.getDataSourceMode();
|
|
21585
21731
|
queryParams[Param.UseLastSelectedDataSource] = useLastSelectedSources;
|
|
@@ -21656,14 +21802,21 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21656
21802
|
? params.spotterSidebarConfigValue
|
|
21657
21803
|
: params.standaloneValue);
|
|
21658
21804
|
function buildSpotterSidebarAppInitData(defaultAppInitData, viewConfig, handleError) {
|
|
21659
|
-
const { spotterSidebarConfig, enablePastConversationsSidebar } = viewConfig;
|
|
21805
|
+
const { spotterSidebarConfig, enablePastConversationsSidebar, visualOverrides } = viewConfig;
|
|
21660
21806
|
const resolvedEnablePastConversations = resolveEnablePastConversationsSidebar({
|
|
21661
21807
|
spotterSidebarConfigValue: spotterSidebarConfig === null || spotterSidebarConfig === void 0 ? void 0 : spotterSidebarConfig.enablePastConversationsSidebar,
|
|
21662
21808
|
standaloneValue: enablePastConversationsSidebar,
|
|
21663
21809
|
});
|
|
21664
21810
|
const hasConfig = spotterSidebarConfig || resolvedEnablePastConversations !== undefined;
|
|
21665
|
-
if (!hasConfig)
|
|
21666
|
-
|
|
21811
|
+
if (!hasConfig) {
|
|
21812
|
+
if (visualOverrides === undefined) {
|
|
21813
|
+
return defaultAppInitData;
|
|
21814
|
+
}
|
|
21815
|
+
return {
|
|
21816
|
+
...defaultAppInitData,
|
|
21817
|
+
embedParams: { visualOverridesParams: visualOverrides },
|
|
21818
|
+
};
|
|
21819
|
+
}
|
|
21667
21820
|
const resolvedSidebarConfig = {
|
|
21668
21821
|
...spotterSidebarConfig,
|
|
21669
21822
|
...(resolvedEnablePastConversations !== undefined && {
|
|
@@ -21687,6 +21840,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21687
21840
|
embedParams: {
|
|
21688
21841
|
...(defaultAppInitData.embedParams || {}),
|
|
21689
21842
|
spotterSidebarConfig: resolvedSidebarConfig,
|
|
21843
|
+
...(visualOverrides !== undefined ? { visualOverridesParams: visualOverrides } : {}),
|
|
21690
21844
|
},
|
|
21691
21845
|
};
|
|
21692
21846
|
}
|
|
@@ -21897,7 +22051,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21897
22051
|
* embedded Liveboard or visualization.
|
|
21898
22052
|
*/
|
|
21899
22053
|
getEmbedParams() {
|
|
21900
|
-
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.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;
|
|
22054
|
+
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.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;
|
|
21901
22055
|
let params = {};
|
|
21902
22056
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
21903
22057
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
@@ -21908,6 +22062,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21908
22062
|
params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
|
|
21909
22063
|
params[Param.ShowMaskedFilterChip] = showMaskedFilterChip;
|
|
21910
22064
|
params[Param.IsLiveboardMasterpiecesEnabled] = isLiveboardMasterpiecesEnabled;
|
|
22065
|
+
if (newChartsLibrary !== undefined) {
|
|
22066
|
+
params[Param.EnableNewChartLibrary] = newChartsLibrary;
|
|
22067
|
+
}
|
|
21911
22068
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
21912
22069
|
params[Param.IsFullAppEmbed] = true;
|
|
21913
22070
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
@@ -22365,7 +22522,7 @@ query GetEurekaVizSnapshots(
|
|
|
22365
22522
|
getEmbedParamsObject() {
|
|
22366
22523
|
let params = {};
|
|
22367
22524
|
params = this.getBaseQueryParams(params);
|
|
22368
|
-
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;
|
|
22525
|
+
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;
|
|
22369
22526
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
22370
22527
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
22371
22528
|
if (fullHeight === true) {
|
|
@@ -22463,6 +22620,9 @@ query GetEurekaVizSnapshots(
|
|
|
22463
22620
|
if (enableLiveboardDataCache !== undefined) {
|
|
22464
22621
|
params[Param.EnableLiveboardDataCache] = enableLiveboardDataCache;
|
|
22465
22622
|
}
|
|
22623
|
+
if (newChartsLibrary !== undefined) {
|
|
22624
|
+
params[Param.EnableNewChartLibrary] = newChartsLibrary;
|
|
22625
|
+
}
|
|
22466
22626
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
22467
22627
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
22468
22628
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|