@thoughtspot/visual-embed-sdk 1.46.5 → 1.47.0
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 +0 -15
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +1 -2
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +0 -10
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +1 -1
- package/cjs/src/embed/hostEventClient/utils.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/utils.js +7 -1
- package/cjs/src/embed/hostEventClient/utils.js.map +1 -1
- package/cjs/src/embed/hostEventClient/utils.spec.js +80 -5
- package/cjs/src/embed/hostEventClient/utils.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +12 -4
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +28 -67
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/errors.d.ts +0 -1
- package/cjs/src/errors.d.ts.map +1 -1
- package/cjs/src/errors.js +0 -1
- package/cjs/src/errors.js.map +1 -1
- package/cjs/src/index.d.ts +1 -2
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +2 -4
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/react/all-types-export.d.ts +2 -2
- package/cjs/src/react/all-types-export.d.ts.map +1 -1
- package/cjs/src/react/all-types-export.js +1 -3
- package/cjs/src/react/all-types-export.js.map +1 -1
- package/cjs/src/react/index.d.ts +1 -36
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js +1 -34
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/types.d.ts +41 -75
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +17 -47
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-ChNydfIz.js → index-Bm2Hck8q.js} +1 -1
- package/dist/src/embed/app.d.ts +0 -15
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +1 -1
- package/dist/src/embed/hostEventClient/utils.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/dist/src/errors.d.ts +0 -1
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/react/all-types-export.d.ts +2 -2
- package/dist/src/react/all-types-export.d.ts.map +1 -1
- package/dist/src/react/index.d.ts +1 -36
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +41 -75
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +59 -199
- package/dist/tsembed-react.js +47 -189
- package/dist/tsembed.es.js +74 -180
- package/dist/tsembed.js +30800 -30907
- package/dist/visual-embed-sdk-react-full.d.ts +44 -270
- package/dist/visual-embed-sdk-react.d.ts +44 -270
- package/dist/visual-embed-sdk.d.ts +42 -240
- package/lib/package.json +1 -1
- package/lib/src/embed/app.d.ts +0 -15
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +1 -2
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +0 -10
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +1 -1
- package/lib/src/embed/hostEventClient/utils.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/utils.js +7 -1
- package/lib/src/embed/hostEventClient/utils.js.map +1 -1
- package/lib/src/embed/hostEventClient/utils.spec.js +80 -5
- package/lib/src/embed/hostEventClient/utils.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +12 -4
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +30 -69
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/errors.d.ts +0 -1
- package/lib/src/errors.d.ts.map +1 -1
- package/lib/src/errors.js +0 -1
- package/lib/src/errors.js.map +1 -1
- package/lib/src/index.d.ts +1 -2
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +1 -2
- package/lib/src/index.js.map +1 -1
- package/lib/src/react/all-types-export.d.ts +2 -2
- package/lib/src/react/all-types-export.d.ts.map +1 -1
- package/lib/src/react/all-types-export.js +1 -1
- package/lib/src/react/all-types-export.js.map +1 -1
- package/lib/src/react/index.d.ts +1 -36
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +0 -33
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/types.d.ts +41 -75
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +17 -47
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +42 -240
- package/package.json +1 -1
- package/src/embed/app.spec.ts +0 -15
- package/src/embed/app.ts +2 -20
- package/src/embed/conversation.ts +4 -4
- package/src/embed/hostEventClient/utils.spec.ts +94 -6
- package/src/embed/hostEventClient/utils.ts +15 -2
- package/src/embed/ts-embed.spec.ts +56 -108
- package/src/embed/ts-embed.ts +10 -3
- package/src/errors.ts +0 -1
- package/src/index.ts +2 -5
- package/src/react/all-types-export.ts +0 -3
- package/src/react/index.tsx +15 -59
- package/src/types.ts +102 -138
- package/cjs/src/embed/sage.d.ts +0 -164
- package/cjs/src/embed/sage.d.ts.map +0 -1
- package/cjs/src/embed/sage.js +0 -88
- package/cjs/src/embed/sage.js.map +0 -1
- package/cjs/src/embed/sage.spec.d.ts +0 -2
- package/cjs/src/embed/sage.spec.d.ts.map +0 -1
- package/cjs/src/embed/sage.spec.js +0 -151
- package/cjs/src/embed/sage.spec.js.map +0 -1
- package/dist/index-DGV_zh53.js +0 -7371
- package/dist/index-DW2wEHqy.js +0 -7371
- package/dist/src/embed/sage.d.ts +0 -164
- package/dist/src/embed/sage.d.ts.map +0 -1
- package/dist/src/embed/sage.spec.d.ts +0 -2
- package/dist/src/embed/sage.spec.d.ts.map +0 -1
- package/lib/src/embed/sage.d.ts +0 -164
- package/lib/src/embed/sage.d.ts.map +0 -1
- package/lib/src/embed/sage.js +0 -84
- package/lib/src/embed/sage.js.map +0 -1
- package/lib/src/embed/sage.spec.d.ts +0 -2
- package/lib/src/embed/sage.spec.d.ts.map +0 -1
- package/lib/src/embed/sage.spec.js +0 -148
- package/lib/src/embed/sage.spec.js.map +0 -1
- package/src/embed/sage.spec.ts +0 -206
- package/src/embed/sage.ts +0 -231
package/dist/tsembed.es.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.47.0 */
|
|
2
2
|
'use client';
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
m.forEach(function (e) {
|
|
5
|
+
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
6
|
+
if (k !== 'default' && !(k in n)) {
|
|
7
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
8
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return e[k]; }
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
return Object.freeze(n);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/**
|
|
@@ -1281,19 +1281,6 @@ var EmbedEvent;
|
|
|
1281
1281
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.0.sw
|
|
1282
1282
|
*/
|
|
1283
1283
|
EmbedEvent["FilterChanged"] = "filterChanged";
|
|
1284
|
-
/**
|
|
1285
|
-
* Emitted when a user clicks the **Go** button to initiate
|
|
1286
|
-
* a Natural Language Search query
|
|
1287
|
-
* @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
|
|
1288
|
-
*/
|
|
1289
|
-
EmbedEvent["SageEmbedQuery"] = "sageEmbedQuery";
|
|
1290
|
-
/**
|
|
1291
|
-
* Emitted when a user selects a data source on the embedded
|
|
1292
|
-
* Natural Language Search interface.
|
|
1293
|
-
*
|
|
1294
|
-
* @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
|
|
1295
|
-
*/
|
|
1296
|
-
EmbedEvent["SageWorksheetUpdated"] = "sageWorksheetUpdated";
|
|
1297
1284
|
/**
|
|
1298
1285
|
* Emitted when a user updates a connection on the **Data** page
|
|
1299
1286
|
* @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
@@ -2757,7 +2744,7 @@ var HostEvent;
|
|
|
2757
2744
|
* tml.answer.search_query // TML representation of the search query
|
|
2758
2745
|
* );
|
|
2759
2746
|
* })
|
|
2760
|
-
|
|
2747
|
+
* ```
|
|
2761
2748
|
* @example
|
|
2762
2749
|
* ```js
|
|
2763
2750
|
* // Get TML from search context
|
|
@@ -3381,21 +3368,6 @@ var HostEvent;
|
|
|
3381
3368
|
* @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
|
|
3382
3369
|
*/
|
|
3383
3370
|
HostEvent["SetHiddenTabs"] = "SetPinboardHiddenTabs";
|
|
3384
|
-
/**
|
|
3385
|
-
* Updates the search query string for Natural Language Search operations.
|
|
3386
|
-
* @param - Includes the following keys:
|
|
3387
|
-
* - `queryString`: Text string in Natural Language format.
|
|
3388
|
-
* - `executeSearch`: Boolean to execute search and update search query.
|
|
3389
|
-
* @example
|
|
3390
|
-
* ```js
|
|
3391
|
-
* sageEmbed.trigger(HostEvent.UpdateSageQuery, {
|
|
3392
|
-
* queryString: 'revenue per year',
|
|
3393
|
-
* executeSearch: true,
|
|
3394
|
-
* })
|
|
3395
|
-
* ```
|
|
3396
|
-
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
3397
|
-
*/
|
|
3398
|
-
HostEvent["UpdateSageQuery"] = "updateSageQuery";
|
|
3399
3371
|
/**
|
|
3400
3372
|
* Get the Answer session for a Search or
|
|
3401
3373
|
* Liveboard visualization.
|
|
@@ -3961,7 +3933,6 @@ var Param;
|
|
|
3961
3933
|
Param["HideNotification"] = "hideNotification";
|
|
3962
3934
|
Param["HideApplicationSwitcher"] = "applicationSwitcherHidden";
|
|
3963
3935
|
Param["HideOrgSwitcher"] = "orgSwitcherHidden";
|
|
3964
|
-
Param["IsSageEmbed"] = "isSageEmbed";
|
|
3965
3936
|
Param["HideWorksheetSelector"] = "hideWorksheetSelector";
|
|
3966
3937
|
Param["DisableWorksheetChange"] = "disableWorksheetChange";
|
|
3967
3938
|
Param["HideSourceSelection"] = "hideSourceSelection";
|
|
@@ -4012,7 +3983,6 @@ var Param;
|
|
|
4012
3983
|
Param["HideIrrelevantFiltersInTab"] = "hideIrrelevantFiltersAtTabLevel";
|
|
4013
3984
|
Param["IsEnhancedFilterInteractivityEnabled"] = "isLiveboardPermissionV2Enabled";
|
|
4014
3985
|
Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
|
|
4015
|
-
Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
|
|
4016
3986
|
Param["OverrideOrgId"] = "orgId";
|
|
4017
3987
|
Param["OauthPollingInterval"] = "oAuthPollingInterval";
|
|
4018
3988
|
Param["IsForceRedirect"] = "isForceRedirect";
|
|
@@ -5339,11 +5309,11 @@ var Action;
|
|
|
5339
5309
|
*/
|
|
5340
5310
|
Action["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
|
|
5341
5311
|
/**
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5312
|
+
* Action ID to hide or disable the Coaching workflow in Spotter conversations.
|
|
5313
|
+
* When disabled, users cannot access **Add to Coaching** workflow in conversation.
|
|
5314
|
+
* The **Add to Coaching** feature allows adding reference questions and
|
|
5315
|
+
* business terms to improve Spotter’s responses. This feature is generally available
|
|
5316
|
+
* (GA) from version 26.2.0.cl and enabled by default on embed deployments.
|
|
5347
5317
|
* @example
|
|
5348
5318
|
* ```js
|
|
5349
5319
|
* hiddenAction: [Action.InConversationTraining]
|
|
@@ -5420,17 +5390,17 @@ var Action;
|
|
|
5420
5390
|
*/
|
|
5421
5391
|
Action["LiveboardStylePanel"] = "liveboardStylePanel";
|
|
5422
5392
|
/**
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5393
|
+
* The **Publish** action for Liveboards, Answers and Models.
|
|
5394
|
+
* Opens the publishing modal. It's a parent action for the
|
|
5395
|
+
* **Manage Publishing** and **Unpublish** actions if the object
|
|
5396
|
+
* is already published, otherwise appears standalone.
|
|
5397
|
+
* @example
|
|
5398
|
+
* ```js
|
|
5399
|
+
* hiddenActions: [Action.Publish]
|
|
5400
|
+
* disabledActions: [Action.Publish]
|
|
5401
|
+
* ```
|
|
5402
|
+
* @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
5403
|
+
*/
|
|
5434
5404
|
Action["Publish"] = "publish";
|
|
5435
5405
|
/**
|
|
5436
5406
|
* The **Manage Publishing** action for Liveboards, Answers and Models.
|
|
@@ -6118,7 +6088,6 @@ const ERROR_MESSAGE = {
|
|
|
6118
6088
|
LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a Liveboard to embed.',
|
|
6119
6089
|
TRIGGER_TIMED_OUT: 'Trigger timed-out in getting a response',
|
|
6120
6090
|
SEARCHEMBED_BETA_WRANING_MESSAGE: 'SearchEmbed is in Beta in this release.',
|
|
6121
|
-
SAGE_EMBED_BETA_WARNING_MESSAGE: 'SageEmbed is in Beta in this release.',
|
|
6122
6091
|
THIRD_PARTY_COOKIE_BLOCKED_ALERT: 'Third-party cookie access is blocked on this browser. Please allow third-party cookies for this to work properly. \nYou can use `suppressNoCookieAccessAlert` to suppress this message.',
|
|
6123
6092
|
DUPLICATE_TOKEN_ERR: 'Duplicate token. Please issue a new token every time getAuthToken callback is called. See https://developers.thoughtspot.com/docs/?pageid=embed-auth#trusted-auth-embed for more details.',
|
|
6124
6093
|
SDK_NOT_INITIALIZED: 'SDK not initialized',
|
|
@@ -6132,7 +6101,6 @@ const ERROR_MESSAGE = {
|
|
|
6132
6101
|
CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE: 'Please set up CSP correctly for the application to start working. For more information, see https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts. \n If the issue persists, refer to https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts',
|
|
6133
6102
|
MISSING_REPORTING_OBSERVER: 'ReportingObserver not supported',
|
|
6134
6103
|
RENDER_CALLED_BEFORE_INIT: 'Looks like render was called before calling init, the render won\'t start until init is called.\nFor more info check\n1. https://developers.thoughtspot.com/docs/Function_init#_init\n2.https://developers.thoughtspot.com/docs/getting-started#initSdk',
|
|
6135
|
-
SPOTTER_AGENT_NOT_INITIALIZED: 'SpotterAgent not initialized',
|
|
6136
6104
|
OFFLINE_WARNING: 'Network not Detected. Embed is offline. Please reconnect and refresh',
|
|
6137
6105
|
INIT_SDK_REQUIRED: 'You need to init the ThoughtSpot SDK module first',
|
|
6138
6106
|
CONFLICTING_ACTIONS_CONFIG: 'You cannot have both hidden actions and visible actions',
|
|
@@ -6938,9 +6906,9 @@ var root = _freeGlobal || freeSelf || Function('return this')();
|
|
|
6938
6906
|
var _root = root;
|
|
6939
6907
|
|
|
6940
6908
|
/** Built-in value references. */
|
|
6941
|
-
var Symbol = _root.Symbol;
|
|
6909
|
+
var Symbol$1 = _root.Symbol;
|
|
6942
6910
|
|
|
6943
|
-
var _Symbol = Symbol;
|
|
6911
|
+
var _Symbol = Symbol$1;
|
|
6944
6912
|
|
|
6945
6913
|
/** Used for built-in method references. */
|
|
6946
6914
|
var objectProto$c = Object.prototype;
|
|
@@ -7011,7 +6979,7 @@ function objectToString(value) {
|
|
|
7011
6979
|
var _objectToString = objectToString;
|
|
7012
6980
|
|
|
7013
6981
|
/** `Object#toString` result references. */
|
|
7014
|
-
var nullTag = '[object Null]',
|
|
6982
|
+
var nullTag$1 = '[object Null]',
|
|
7015
6983
|
undefinedTag = '[object Undefined]';
|
|
7016
6984
|
|
|
7017
6985
|
/** Built-in value references. */
|
|
@@ -7026,7 +6994,7 @@ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
|
|
|
7026
6994
|
*/
|
|
7027
6995
|
function baseGetTag(value) {
|
|
7028
6996
|
if (value == null) {
|
|
7029
|
-
return value === undefined ? undefinedTag : nullTag;
|
|
6997
|
+
return value === undefined ? undefinedTag : nullTag$1;
|
|
7030
6998
|
}
|
|
7031
6999
|
return (symToStringTag && symToStringTag in Object(value))
|
|
7032
7000
|
? _getRawTag(value)
|
|
@@ -7744,9 +7712,9 @@ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
|
7744
7712
|
var _equalArrays = equalArrays;
|
|
7745
7713
|
|
|
7746
7714
|
/** Built-in value references. */
|
|
7747
|
-
var Uint8Array = _root.Uint8Array;
|
|
7715
|
+
var Uint8Array$1 = _root.Uint8Array;
|
|
7748
7716
|
|
|
7749
|
-
var _Uint8Array = Uint8Array;
|
|
7717
|
+
var _Uint8Array = Uint8Array$1;
|
|
7750
7718
|
|
|
7751
7719
|
/**
|
|
7752
7720
|
* Converts `map` to its key-value pairs.
|
|
@@ -7791,7 +7759,7 @@ var COMPARE_PARTIAL_FLAG$4 = 1,
|
|
|
7791
7759
|
COMPARE_UNORDERED_FLAG$2 = 2;
|
|
7792
7760
|
|
|
7793
7761
|
/** `Object#toString` result references. */
|
|
7794
|
-
var boolTag$
|
|
7762
|
+
var boolTag$2 = '[object Boolean]',
|
|
7795
7763
|
dateTag$1 = '[object Date]',
|
|
7796
7764
|
errorTag$1 = '[object Error]',
|
|
7797
7765
|
mapTag$3 = '[object Map]',
|
|
@@ -7842,7 +7810,7 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
|
7842
7810
|
}
|
|
7843
7811
|
return true;
|
|
7844
7812
|
|
|
7845
|
-
case boolTag$
|
|
7813
|
+
case boolTag$2:
|
|
7846
7814
|
case dateTag$1:
|
|
7847
7815
|
case numberTag$1:
|
|
7848
7816
|
// Coerce booleans to `1` or `0` and dates to milliseconds.
|
|
@@ -8156,9 +8124,9 @@ function stubFalse() {
|
|
|
8156
8124
|
|
|
8157
8125
|
var stubFalse_1 = stubFalse;
|
|
8158
8126
|
|
|
8159
|
-
var isBuffer_1 = createCommonjsModule(function (module, exports) {
|
|
8127
|
+
var isBuffer_1 = createCommonjsModule(function (module, exports$1) {
|
|
8160
8128
|
/** Detect free variable `exports`. */
|
|
8161
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
8129
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
8162
8130
|
|
|
8163
8131
|
/** Detect free variable `module`. */
|
|
8164
8132
|
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
@@ -8259,7 +8227,7 @@ var isLength_1 = isLength;
|
|
|
8259
8227
|
/** `Object#toString` result references. */
|
|
8260
8228
|
var argsTag$1 = '[object Arguments]',
|
|
8261
8229
|
arrayTag$1 = '[object Array]',
|
|
8262
|
-
boolTag = '[object Boolean]',
|
|
8230
|
+
boolTag$1 = '[object Boolean]',
|
|
8263
8231
|
dateTag = '[object Date]',
|
|
8264
8232
|
errorTag = '[object Error]',
|
|
8265
8233
|
funcTag = '[object Function]',
|
|
@@ -8291,7 +8259,7 @@ typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
|
|
|
8291
8259
|
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
|
|
8292
8260
|
typedArrayTags[uint32Tag] = true;
|
|
8293
8261
|
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
|
|
8294
|
-
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
|
|
8262
|
+
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag$1] =
|
|
8295
8263
|
typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] =
|
|
8296
8264
|
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
|
|
8297
8265
|
typedArrayTags[mapTag$2] = typedArrayTags[numberTag] =
|
|
@@ -8328,9 +8296,9 @@ function baseUnary(func) {
|
|
|
8328
8296
|
|
|
8329
8297
|
var _baseUnary = baseUnary;
|
|
8330
8298
|
|
|
8331
|
-
var _nodeUtil = createCommonjsModule(function (module, exports) {
|
|
8299
|
+
var _nodeUtil = createCommonjsModule(function (module, exports$1) {
|
|
8332
8300
|
/** Detect free variable `exports`. */
|
|
8333
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
8301
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
8334
8302
|
|
|
8335
8303
|
/** Detect free variable `module`. */
|
|
8336
8304
|
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
@@ -8910,7 +8878,7 @@ var hasOwnProperty$1 = objectProto.hasOwnProperty;
|
|
|
8910
8878
|
* _.isEmpty({ 'a': 1 });
|
|
8911
8879
|
* // => false
|
|
8912
8880
|
*/
|
|
8913
|
-
function isEmpty(value) {
|
|
8881
|
+
function isEmpty$1(value) {
|
|
8914
8882
|
if (value == null) {
|
|
8915
8883
|
return true;
|
|
8916
8884
|
}
|
|
@@ -8934,7 +8902,7 @@ function isEmpty(value) {
|
|
|
8934
8902
|
return true;
|
|
8935
8903
|
}
|
|
8936
8904
|
|
|
8937
|
-
var isEmpty_1 = isEmpty;
|
|
8905
|
+
var isEmpty_1 = isEmpty$1;
|
|
8938
8906
|
|
|
8939
8907
|
var UIPassthroughEvent;
|
|
8940
8908
|
(function (UIPassthroughEvent) {
|
|
@@ -9885,7 +9853,7 @@ class AnswerService {
|
|
|
9885
9853
|
async getTML() {
|
|
9886
9854
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
9887
9855
|
const edoc = object[0].edoc;
|
|
9888
|
-
const YAML = await import('./index-
|
|
9856
|
+
const YAML = await import('./index-Bm2Hck8q.js');
|
|
9889
9857
|
const parsedDoc = YAML.parse(edoc);
|
|
9890
9858
|
return {
|
|
9891
9859
|
answer: {
|
|
@@ -10231,9 +10199,6 @@ var stringToPath = _memoizeCapped(function(string) {
|
|
|
10231
10199
|
|
|
10232
10200
|
var _stringToPath = stringToPath;
|
|
10233
10201
|
|
|
10234
|
-
/** Used as references for various `Number` constants. */
|
|
10235
|
-
var INFINITY$1 = 1 / 0;
|
|
10236
|
-
|
|
10237
10202
|
/** Used to convert symbols to primitives and strings. */
|
|
10238
10203
|
var symbolProto = _Symbol ? _Symbol.prototype : undefined,
|
|
10239
10204
|
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
@@ -10259,7 +10224,7 @@ function baseToString(value) {
|
|
|
10259
10224
|
return symbolToString ? symbolToString.call(value) : '';
|
|
10260
10225
|
}
|
|
10261
10226
|
var result = (value + '');
|
|
10262
|
-
return (result == '0' && (1 / value) == -
|
|
10227
|
+
return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
|
|
10263
10228
|
}
|
|
10264
10229
|
|
|
10265
10230
|
var _baseToString = baseToString;
|
|
@@ -10308,9 +10273,6 @@ function castPath(value, object) {
|
|
|
10308
10273
|
|
|
10309
10274
|
var _castPath = castPath;
|
|
10310
10275
|
|
|
10311
|
-
/** Used as references for various `Number` constants. */
|
|
10312
|
-
var INFINITY = 1 / 0;
|
|
10313
|
-
|
|
10314
10276
|
/**
|
|
10315
10277
|
* Converts `value` to a string key if it's not a string or symbol.
|
|
10316
10278
|
*
|
|
@@ -10323,7 +10285,7 @@ function toKey(value) {
|
|
|
10323
10285
|
return value;
|
|
10324
10286
|
}
|
|
10325
10287
|
var result = (value + '');
|
|
10326
|
-
return (result == '0' && (1 / value) == -
|
|
10288
|
+
return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
|
|
10327
10289
|
}
|
|
10328
10290
|
|
|
10329
10291
|
var _toKey = toKey;
|
|
@@ -17617,8 +17579,8 @@ var mixpanel = init_as_module();
|
|
|
17617
17579
|
var mixpanel_cjs = mixpanel;
|
|
17618
17580
|
|
|
17619
17581
|
var mixpanel$1 = /*#__PURE__*/_mergeNamespaces({
|
|
17620
|
-
|
|
17621
|
-
|
|
17582
|
+
__proto__: null,
|
|
17583
|
+
default: mixpanel_cjs
|
|
17622
17584
|
}, [mixpanel_cjs]);
|
|
17623
17585
|
|
|
17624
17586
|
// Needed to avoid error in CJS builds on some bundlers.
|
|
@@ -19367,12 +19329,18 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
|
|
|
19367
19329
|
return eventData;
|
|
19368
19330
|
}
|
|
19369
19331
|
|
|
19370
|
-
var
|
|
19332
|
+
var version$1="1.47.0";var pkgInfo = {version:version$1};
|
|
19371
19333
|
|
|
19372
19334
|
function isValidUpdateFiltersPayload(payload) {
|
|
19373
19335
|
if (!payload)
|
|
19374
19336
|
return false;
|
|
19375
|
-
const isValidFilter = (f) =>
|
|
19337
|
+
const isValidFilter = (f) => {
|
|
19338
|
+
const hasColumn = typeof f.column === 'string' || typeof f.columnName === 'string';
|
|
19339
|
+
const hasOperator = typeof f.oper === 'string' || typeof f.operator === 'string';
|
|
19340
|
+
const hasValues = Array.isArray(f.values);
|
|
19341
|
+
const validType = !f.type || typeof f.type === 'string';
|
|
19342
|
+
return hasColumn && hasOperator && hasValues && validType;
|
|
19343
|
+
};
|
|
19376
19344
|
const hasValidFilter = payload.filter && isValidFilter(payload.filter);
|
|
19377
19345
|
const hasValidFilters = Array.isArray(payload.filters) && payload.filters.length > 0 && payload.filters.every(isValidFilter);
|
|
19378
19346
|
return !!(hasValidFilter || hasValidFilters);
|
|
@@ -21059,6 +21027,9 @@ class TsEmbed {
|
|
|
21059
21027
|
try {
|
|
21060
21028
|
this.removeFullscreenChangeHandler();
|
|
21061
21029
|
this.unsubscribeToEvents();
|
|
21030
|
+
if (!this.isRendered) {
|
|
21031
|
+
return;
|
|
21032
|
+
}
|
|
21062
21033
|
if (!getEmbedConfig().waitForCleanupOnDestroy) {
|
|
21063
21034
|
this.trigger(HostEvent.DestroyEmbed);
|
|
21064
21035
|
(_b = (_a = this.insertedDomEl) === null || _a === void 0 ? void 0 : _a.parentNode) === null || _b === void 0 ? void 0 : _b.removeChild(this.insertedDomEl);
|
|
@@ -21068,11 +21039,16 @@ class TsEmbed {
|
|
|
21068
21039
|
Promise.race([
|
|
21069
21040
|
this.trigger(HostEvent.DestroyEmbed),
|
|
21070
21041
|
new Promise((resolve) => setTimeout(resolve, cleanupTimeout)),
|
|
21071
|
-
]).
|
|
21072
|
-
var _a, _b;
|
|
21073
|
-
(_b = (_a = this.insertedDomEl) === null || _a === void 0 ? void 0 : _a.parentNode) === null || _b === void 0 ? void 0 : _b.removeChild(this.insertedDomEl);
|
|
21074
|
-
}).catch((e) => {
|
|
21042
|
+
]).catch((e) => {
|
|
21075
21043
|
logger$3.log('Error destroying TS Embed', e);
|
|
21044
|
+
}).finally(() => {
|
|
21045
|
+
var _a, _b;
|
|
21046
|
+
try {
|
|
21047
|
+
(_b = (_a = this.insertedDomEl) === null || _a === void 0 ? void 0 : _a.parentNode) === null || _b === void 0 ? void 0 : _b.removeChild(this.insertedDomEl);
|
|
21048
|
+
}
|
|
21049
|
+
catch (e) {
|
|
21050
|
+
logger$3.log('Error removing DOM element on destroy', e);
|
|
21051
|
+
}
|
|
21076
21052
|
});
|
|
21077
21053
|
}
|
|
21078
21054
|
}
|
|
@@ -21588,7 +21564,7 @@ class AppEmbed extends V1Embed {
|
|
|
21588
21564
|
* embedded Liveboard or visualization.
|
|
21589
21565
|
*/
|
|
21590
21566
|
getEmbedParams() {
|
|
21591
|
-
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,
|
|
21567
|
+
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, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, enableHomepageAnnouncement = false, isContinuousLiveboardPDFEnabled, } = this.viewConfig;
|
|
21592
21568
|
let params = {};
|
|
21593
21569
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
21594
21570
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
@@ -21606,7 +21582,6 @@ class AppEmbed extends V1Embed {
|
|
|
21606
21582
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
21607
21583
|
params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
|
|
21608
21584
|
params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
|
|
21609
|
-
params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
|
|
21610
21585
|
params[Param.CoverAndFilterOptionInPDF] = !!coverAndFilterOptionInPDF;
|
|
21611
21586
|
params = this.getBaseQueryParams(params);
|
|
21612
21587
|
if (!isUndefined(updatedSpotterChatPrompt)) {
|
|
@@ -22523,7 +22498,7 @@ class SearchEmbed extends TsEmbed {
|
|
|
22523
22498
|
*/
|
|
22524
22499
|
async render() {
|
|
22525
22500
|
await super.render();
|
|
22526
|
-
this.viewConfig;
|
|
22501
|
+
const { answerId } = this.viewConfig;
|
|
22527
22502
|
const src = this.getIFrameSrc();
|
|
22528
22503
|
await this.renderIFrame(src);
|
|
22529
22504
|
getAuthPromise().then(() => {
|
|
@@ -23259,87 +23234,6 @@ class ConversationEmbed extends SpotterEmbed {
|
|
|
23259
23234
|
}
|
|
23260
23235
|
}
|
|
23261
23236
|
|
|
23262
|
-
/**
|
|
23263
|
-
* Copyright (c) 2023
|
|
23264
|
-
*
|
|
23265
|
-
* Embed ThoughtSpot Sage
|
|
23266
|
-
* @summary TS Sage embed
|
|
23267
|
-
* @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
|
|
23268
|
-
*/
|
|
23269
|
-
/**
|
|
23270
|
-
* Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
|
|
23271
|
-
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
|
|
23272
|
-
*
|
|
23273
|
-
* Note: This embed will be deprecated from SDK: 1.40.0 | ThoughtSpot: 10.13.0.cl
|
|
23274
|
-
* @group Embed components
|
|
23275
|
-
*/
|
|
23276
|
-
class SageEmbed extends V1Embed {
|
|
23277
|
-
constructor(domSelector, viewConfig) {
|
|
23278
|
-
viewConfig.embedComponentType = 'SageEmbed';
|
|
23279
|
-
super(domSelector, viewConfig);
|
|
23280
|
-
}
|
|
23281
|
-
getEmbedParamsObject() {
|
|
23282
|
-
const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, dataPanelV2, hideSampleQuestions, isProductTour, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
|
|
23283
|
-
const params = this.getBaseQueryParams();
|
|
23284
|
-
params[Param.DataPanelV2Enabled] = !!dataPanelV2;
|
|
23285
|
-
params[Param.IsSageEmbed] = true;
|
|
23286
|
-
params[Param.DisableWorksheetChange] = !!disableWorksheetChange;
|
|
23287
|
-
params[Param.HideWorksheetSelector] = !!hideWorksheetSelector;
|
|
23288
|
-
params[Param.HideEurekaSuggestions] = !!hideAutocompleteSuggestions;
|
|
23289
|
-
if (showObjectSuggestions) {
|
|
23290
|
-
params[Param.HideEurekaSuggestions] = !showObjectSuggestions;
|
|
23291
|
-
// support backwards compatibility
|
|
23292
|
-
}
|
|
23293
|
-
params[Param.HideSampleQuestions] = !!hideSampleQuestions;
|
|
23294
|
-
params[Param.IsProductTour] = !!isProductTour;
|
|
23295
|
-
params[Param.HideSageAnswerHeader] = !!hideSageAnswerHeader;
|
|
23296
|
-
return params;
|
|
23297
|
-
}
|
|
23298
|
-
/**
|
|
23299
|
-
* Constructs a map of parameters to be passed on to the
|
|
23300
|
-
* embedded Eureka or Sage search page.
|
|
23301
|
-
* @returns {string} query string
|
|
23302
|
-
*/
|
|
23303
|
-
getEmbedParams() {
|
|
23304
|
-
const params = this.getEmbedParamsObject();
|
|
23305
|
-
return getQueryParamString(params, true);
|
|
23306
|
-
}
|
|
23307
|
-
/**
|
|
23308
|
-
* Construct the URL of the embedded ThoughtSpot sage to be
|
|
23309
|
-
* loaded in the iframe
|
|
23310
|
-
* @returns {string} iframe url
|
|
23311
|
-
*/
|
|
23312
|
-
getIFrameSrc() {
|
|
23313
|
-
const path = 'eureka';
|
|
23314
|
-
const postHashObj = {};
|
|
23315
|
-
const tsPostHashParams = this.getThoughtSpotPostUrlParams();
|
|
23316
|
-
const { dataSource, searchOptions, } = this.viewConfig;
|
|
23317
|
-
if (dataSource)
|
|
23318
|
-
postHashObj[Param.WorksheetId] = dataSource;
|
|
23319
|
-
if ((searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchQuery) && searchOptions.executeSearch) {
|
|
23320
|
-
postHashObj[Param.executeSearch] = true;
|
|
23321
|
-
}
|
|
23322
|
-
let sagePostHashParams = new URLSearchParams(postHashObj).toString();
|
|
23323
|
-
if (sagePostHashParams)
|
|
23324
|
-
sagePostHashParams = `${tsPostHashParams ? '&' : '?'}${sagePostHashParams}`;
|
|
23325
|
-
if (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchQuery)
|
|
23326
|
-
sagePostHashParams += `${sagePostHashParams ? '&' : '?'}${[Param.Query]}=${encodeURIComponent(searchOptions.searchQuery)}`;
|
|
23327
|
-
// use encodeURIComponent for query instead of URLSearchParams
|
|
23328
|
-
// as it adds + instead of %20 for spaces
|
|
23329
|
-
return `${this.getRootIframeSrc()}/embed/${path}${tsPostHashParams}${sagePostHashParams}`;
|
|
23330
|
-
}
|
|
23331
|
-
/**
|
|
23332
|
-
* Render the embedded ThoughtSpot Sage
|
|
23333
|
-
* @returns {SageEmbed} Eureka/Sage embed
|
|
23334
|
-
*/
|
|
23335
|
-
async render() {
|
|
23336
|
-
await super.render();
|
|
23337
|
-
const src = this.getIFrameSrc();
|
|
23338
|
-
await this.renderV1Embed(src);
|
|
23339
|
-
return this;
|
|
23340
|
-
}
|
|
23341
|
-
}
|
|
23342
|
-
|
|
23343
23237
|
const getAnswerSessionFromQuery = `
|
|
23344
23238
|
query GetEurekaResults($params: Input_eureka_SearchRequest) {
|
|
23345
23239
|
queryRequest(request: $params) {
|
|
@@ -24000,4 +23894,4 @@ class AutoFrameRenderer extends TsEmbed {
|
|
|
24000
23894
|
}
|
|
24001
23895
|
}
|
|
24002
23896
|
|
|
24003
|
-
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,
|
|
23897
|
+
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 };
|