@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-react.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.47.0 */
|
|
2
2
|
'use client';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { useRef, useCallback } from 'react';
|
|
@@ -1449,19 +1449,6 @@ var EmbedEvent;
|
|
|
1449
1449
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.0.sw
|
|
1450
1450
|
*/
|
|
1451
1451
|
EmbedEvent["FilterChanged"] = "filterChanged";
|
|
1452
|
-
/**
|
|
1453
|
-
* Emitted when a user clicks the **Go** button to initiate
|
|
1454
|
-
* a Natural Language Search query
|
|
1455
|
-
* @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
|
|
1456
|
-
*/
|
|
1457
|
-
EmbedEvent["SageEmbedQuery"] = "sageEmbedQuery";
|
|
1458
|
-
/**
|
|
1459
|
-
* Emitted when a user selects a data source on the embedded
|
|
1460
|
-
* Natural Language Search interface.
|
|
1461
|
-
*
|
|
1462
|
-
* @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
|
|
1463
|
-
*/
|
|
1464
|
-
EmbedEvent["SageWorksheetUpdated"] = "sageWorksheetUpdated";
|
|
1465
1452
|
/**
|
|
1466
1453
|
* Emitted when a user updates a connection on the **Data** page
|
|
1467
1454
|
* @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
@@ -2925,7 +2912,7 @@ var HostEvent;
|
|
|
2925
2912
|
* tml.answer.search_query // TML representation of the search query
|
|
2926
2913
|
* );
|
|
2927
2914
|
* })
|
|
2928
|
-
|
|
2915
|
+
* ```
|
|
2929
2916
|
* @example
|
|
2930
2917
|
* ```js
|
|
2931
2918
|
* // Get TML from search context
|
|
@@ -3549,21 +3536,6 @@ var HostEvent;
|
|
|
3549
3536
|
* @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
|
|
3550
3537
|
*/
|
|
3551
3538
|
HostEvent["SetHiddenTabs"] = "SetPinboardHiddenTabs";
|
|
3552
|
-
/**
|
|
3553
|
-
* Updates the search query string for Natural Language Search operations.
|
|
3554
|
-
* @param - Includes the following keys:
|
|
3555
|
-
* - `queryString`: Text string in Natural Language format.
|
|
3556
|
-
* - `executeSearch`: Boolean to execute search and update search query.
|
|
3557
|
-
* @example
|
|
3558
|
-
* ```js
|
|
3559
|
-
* sageEmbed.trigger(HostEvent.UpdateSageQuery, {
|
|
3560
|
-
* queryString: 'revenue per year',
|
|
3561
|
-
* executeSearch: true,
|
|
3562
|
-
* })
|
|
3563
|
-
* ```
|
|
3564
|
-
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
3565
|
-
*/
|
|
3566
|
-
HostEvent["UpdateSageQuery"] = "updateSageQuery";
|
|
3567
3539
|
/**
|
|
3568
3540
|
* Get the Answer session for a Search or
|
|
3569
3541
|
* Liveboard visualization.
|
|
@@ -4129,7 +4101,6 @@ var Param;
|
|
|
4129
4101
|
Param["HideNotification"] = "hideNotification";
|
|
4130
4102
|
Param["HideApplicationSwitcher"] = "applicationSwitcherHidden";
|
|
4131
4103
|
Param["HideOrgSwitcher"] = "orgSwitcherHidden";
|
|
4132
|
-
Param["IsSageEmbed"] = "isSageEmbed";
|
|
4133
4104
|
Param["HideWorksheetSelector"] = "hideWorksheetSelector";
|
|
4134
4105
|
Param["DisableWorksheetChange"] = "disableWorksheetChange";
|
|
4135
4106
|
Param["HideSourceSelection"] = "hideSourceSelection";
|
|
@@ -4180,7 +4151,6 @@ var Param;
|
|
|
4180
4151
|
Param["HideIrrelevantFiltersInTab"] = "hideIrrelevantFiltersAtTabLevel";
|
|
4181
4152
|
Param["IsEnhancedFilterInteractivityEnabled"] = "isLiveboardPermissionV2Enabled";
|
|
4182
4153
|
Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
|
|
4183
|
-
Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
|
|
4184
4154
|
Param["OverrideOrgId"] = "orgId";
|
|
4185
4155
|
Param["OauthPollingInterval"] = "oAuthPollingInterval";
|
|
4186
4156
|
Param["IsForceRedirect"] = "isForceRedirect";
|
|
@@ -5507,11 +5477,11 @@ var Action;
|
|
|
5507
5477
|
*/
|
|
5508
5478
|
Action["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
|
|
5509
5479
|
/**
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5480
|
+
* Action ID to hide or disable the Coaching workflow in Spotter conversations.
|
|
5481
|
+
* When disabled, users cannot access **Add to Coaching** workflow in conversation.
|
|
5482
|
+
* The **Add to Coaching** feature allows adding reference questions and
|
|
5483
|
+
* business terms to improve Spotter’s responses. This feature is generally available
|
|
5484
|
+
* (GA) from version 26.2.0.cl and enabled by default on embed deployments.
|
|
5515
5485
|
* @example
|
|
5516
5486
|
* ```js
|
|
5517
5487
|
* hiddenAction: [Action.InConversationTraining]
|
|
@@ -5588,17 +5558,17 @@ var Action;
|
|
|
5588
5558
|
*/
|
|
5589
5559
|
Action["LiveboardStylePanel"] = "liveboardStylePanel";
|
|
5590
5560
|
/**
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5561
|
+
* The **Publish** action for Liveboards, Answers and Models.
|
|
5562
|
+
* Opens the publishing modal. It's a parent action for the
|
|
5563
|
+
* **Manage Publishing** and **Unpublish** actions if the object
|
|
5564
|
+
* is already published, otherwise appears standalone.
|
|
5565
|
+
* @example
|
|
5566
|
+
* ```js
|
|
5567
|
+
* hiddenActions: [Action.Publish]
|
|
5568
|
+
* disabledActions: [Action.Publish]
|
|
5569
|
+
* ```
|
|
5570
|
+
* @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
5571
|
+
*/
|
|
5602
5572
|
Action["Publish"] = "publish";
|
|
5603
5573
|
/**
|
|
5604
5574
|
* The **Manage Publishing** action for Liveboards, Answers and Models.
|
|
@@ -6233,7 +6203,6 @@ const ERROR_MESSAGE = {
|
|
|
6233
6203
|
LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a Liveboard to embed.',
|
|
6234
6204
|
TRIGGER_TIMED_OUT: 'Trigger timed-out in getting a response',
|
|
6235
6205
|
SEARCHEMBED_BETA_WRANING_MESSAGE: 'SearchEmbed is in Beta in this release.',
|
|
6236
|
-
SAGE_EMBED_BETA_WARNING_MESSAGE: 'SageEmbed is in Beta in this release.',
|
|
6237
6206
|
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.',
|
|
6238
6207
|
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.',
|
|
6239
6208
|
SDK_NOT_INITIALIZED: 'SDK not initialized',
|
|
@@ -7053,9 +7022,9 @@ var root = _freeGlobal || freeSelf || Function('return this')();
|
|
|
7053
7022
|
var _root = root;
|
|
7054
7023
|
|
|
7055
7024
|
/** Built-in value references. */
|
|
7056
|
-
var Symbol = _root.Symbol;
|
|
7025
|
+
var Symbol$1 = _root.Symbol;
|
|
7057
7026
|
|
|
7058
|
-
var _Symbol = Symbol;
|
|
7027
|
+
var _Symbol = Symbol$1;
|
|
7059
7028
|
|
|
7060
7029
|
/** Used for built-in method references. */
|
|
7061
7030
|
var objectProto$c = Object.prototype;
|
|
@@ -7126,7 +7095,7 @@ function objectToString(value) {
|
|
|
7126
7095
|
var _objectToString = objectToString;
|
|
7127
7096
|
|
|
7128
7097
|
/** `Object#toString` result references. */
|
|
7129
|
-
var nullTag = '[object Null]',
|
|
7098
|
+
var nullTag$1 = '[object Null]',
|
|
7130
7099
|
undefinedTag = '[object Undefined]';
|
|
7131
7100
|
|
|
7132
7101
|
/** Built-in value references. */
|
|
@@ -7141,7 +7110,7 @@ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
|
|
|
7141
7110
|
*/
|
|
7142
7111
|
function baseGetTag(value) {
|
|
7143
7112
|
if (value == null) {
|
|
7144
|
-
return value === undefined ? undefinedTag : nullTag;
|
|
7113
|
+
return value === undefined ? undefinedTag : nullTag$1;
|
|
7145
7114
|
}
|
|
7146
7115
|
return (symToStringTag && symToStringTag in Object(value))
|
|
7147
7116
|
? _getRawTag(value)
|
|
@@ -7906,7 +7875,7 @@ var COMPARE_PARTIAL_FLAG$4 = 1,
|
|
|
7906
7875
|
COMPARE_UNORDERED_FLAG$2 = 2;
|
|
7907
7876
|
|
|
7908
7877
|
/** `Object#toString` result references. */
|
|
7909
|
-
var boolTag$
|
|
7878
|
+
var boolTag$2 = '[object Boolean]',
|
|
7910
7879
|
dateTag$1 = '[object Date]',
|
|
7911
7880
|
errorTag$1 = '[object Error]',
|
|
7912
7881
|
mapTag$3 = '[object Map]',
|
|
@@ -7957,7 +7926,7 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
|
7957
7926
|
}
|
|
7958
7927
|
return true;
|
|
7959
7928
|
|
|
7960
|
-
case boolTag$
|
|
7929
|
+
case boolTag$2:
|
|
7961
7930
|
case dateTag$1:
|
|
7962
7931
|
case numberTag$1:
|
|
7963
7932
|
// Coerce booleans to `1` or `0` and dates to milliseconds.
|
|
@@ -8271,9 +8240,9 @@ function stubFalse() {
|
|
|
8271
8240
|
|
|
8272
8241
|
var stubFalse_1 = stubFalse;
|
|
8273
8242
|
|
|
8274
|
-
var isBuffer_1 = createCommonjsModule(function (module, exports) {
|
|
8243
|
+
var isBuffer_1 = createCommonjsModule(function (module, exports$1) {
|
|
8275
8244
|
/** Detect free variable `exports`. */
|
|
8276
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
8245
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
8277
8246
|
|
|
8278
8247
|
/** Detect free variable `module`. */
|
|
8279
8248
|
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
@@ -8374,7 +8343,7 @@ var isLength_1 = isLength;
|
|
|
8374
8343
|
/** `Object#toString` result references. */
|
|
8375
8344
|
var argsTag$1 = '[object Arguments]',
|
|
8376
8345
|
arrayTag$1 = '[object Array]',
|
|
8377
|
-
boolTag = '[object Boolean]',
|
|
8346
|
+
boolTag$1 = '[object Boolean]',
|
|
8378
8347
|
dateTag = '[object Date]',
|
|
8379
8348
|
errorTag = '[object Error]',
|
|
8380
8349
|
funcTag = '[object Function]',
|
|
@@ -8406,7 +8375,7 @@ typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
|
|
|
8406
8375
|
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
|
|
8407
8376
|
typedArrayTags[uint32Tag] = true;
|
|
8408
8377
|
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
|
|
8409
|
-
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
|
|
8378
|
+
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag$1] =
|
|
8410
8379
|
typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] =
|
|
8411
8380
|
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
|
|
8412
8381
|
typedArrayTags[mapTag$2] = typedArrayTags[numberTag] =
|
|
@@ -8443,9 +8412,9 @@ function baseUnary(func) {
|
|
|
8443
8412
|
|
|
8444
8413
|
var _baseUnary = baseUnary;
|
|
8445
8414
|
|
|
8446
|
-
var _nodeUtil = createCommonjsModule(function (module, exports) {
|
|
8415
|
+
var _nodeUtil = createCommonjsModule(function (module, exports$1) {
|
|
8447
8416
|
/** Detect free variable `exports`. */
|
|
8448
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
8417
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
8449
8418
|
|
|
8450
8419
|
/** Detect free variable `module`. */
|
|
8451
8420
|
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
@@ -9025,7 +8994,7 @@ var hasOwnProperty$1 = objectProto.hasOwnProperty;
|
|
|
9025
8994
|
* _.isEmpty({ 'a': 1 });
|
|
9026
8995
|
* // => false
|
|
9027
8996
|
*/
|
|
9028
|
-
function isEmpty(value) {
|
|
8997
|
+
function isEmpty$1(value) {
|
|
9029
8998
|
if (value == null) {
|
|
9030
8999
|
return true;
|
|
9031
9000
|
}
|
|
@@ -9049,7 +9018,7 @@ function isEmpty(value) {
|
|
|
9049
9018
|
return true;
|
|
9050
9019
|
}
|
|
9051
9020
|
|
|
9052
|
-
var isEmpty_1 = isEmpty;
|
|
9021
|
+
var isEmpty_1 = isEmpty$1;
|
|
9053
9022
|
|
|
9054
9023
|
var UIPassthroughEvent;
|
|
9055
9024
|
(function (UIPassthroughEvent) {
|
|
@@ -10000,7 +9969,7 @@ class AnswerService {
|
|
|
10000
9969
|
async getTML() {
|
|
10001
9970
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
10002
9971
|
const edoc = object[0].edoc;
|
|
10003
|
-
const YAML = await import('./index-
|
|
9972
|
+
const YAML = await import('./index-Bm2Hck8q.js');
|
|
10004
9973
|
const parsedDoc = YAML.parse(edoc);
|
|
10005
9974
|
return {
|
|
10006
9975
|
answer: {
|
|
@@ -10346,9 +10315,6 @@ var stringToPath = _memoizeCapped(function(string) {
|
|
|
10346
10315
|
|
|
10347
10316
|
var _stringToPath = stringToPath;
|
|
10348
10317
|
|
|
10349
|
-
/** Used as references for various `Number` constants. */
|
|
10350
|
-
var INFINITY$1 = 1 / 0;
|
|
10351
|
-
|
|
10352
10318
|
/** Used to convert symbols to primitives and strings. */
|
|
10353
10319
|
var symbolProto = _Symbol ? _Symbol.prototype : undefined,
|
|
10354
10320
|
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
@@ -10374,7 +10340,7 @@ function baseToString(value) {
|
|
|
10374
10340
|
return symbolToString ? symbolToString.call(value) : '';
|
|
10375
10341
|
}
|
|
10376
10342
|
var result = (value + '');
|
|
10377
|
-
return (result == '0' && (1 / value) == -
|
|
10343
|
+
return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
|
|
10378
10344
|
}
|
|
10379
10345
|
|
|
10380
10346
|
var _baseToString = baseToString;
|
|
@@ -10423,9 +10389,6 @@ function castPath(value, object) {
|
|
|
10423
10389
|
|
|
10424
10390
|
var _castPath = castPath;
|
|
10425
10391
|
|
|
10426
|
-
/** Used as references for various `Number` constants. */
|
|
10427
|
-
var INFINITY = 1 / 0;
|
|
10428
|
-
|
|
10429
10392
|
/**
|
|
10430
10393
|
* Converts `value` to a string key if it's not a string or symbol.
|
|
10431
10394
|
*
|
|
@@ -10438,7 +10401,7 @@ function toKey(value) {
|
|
|
10438
10401
|
return value;
|
|
10439
10402
|
}
|
|
10440
10403
|
var result = (value + '');
|
|
10441
|
-
return (result == '0' && (1 / value) == -
|
|
10404
|
+
return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
|
|
10442
10405
|
}
|
|
10443
10406
|
|
|
10444
10407
|
var _toKey = toKey;
|
|
@@ -17750,10 +17713,7 @@ const MIXPANEL_EVENT = {
|
|
|
17750
17713
|
VISUAL_SDK_RENDER_FAILED: 'visual-sdk-render-failed',
|
|
17751
17714
|
VISUAL_SDK_TRIGGER: 'visual-sdk-trigger',
|
|
17752
17715
|
VISUAL_SDK_ON: 'visual-sdk-on',
|
|
17753
|
-
|
|
17754
|
-
VISUAL_SDK_EMBED_CREATE: 'visual-sdk-embed-create',
|
|
17755
|
-
VERCEL_INTEGRATION_COMPLETED: 'vercel-integration-completed',
|
|
17756
|
-
};
|
|
17716
|
+
VISUAL_SDK_EMBED_CREATE: 'visual-sdk-embed-create'};
|
|
17757
17717
|
let isMixpanelInitialized = false;
|
|
17758
17718
|
let eventQueue = [];
|
|
17759
17719
|
/**
|
|
@@ -19303,12 +19263,18 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
|
|
|
19303
19263
|
return eventData;
|
|
19304
19264
|
}
|
|
19305
19265
|
|
|
19306
|
-
var
|
|
19266
|
+
var version$1="1.47.0";var pkgInfo = {version:version$1};
|
|
19307
19267
|
|
|
19308
19268
|
function isValidUpdateFiltersPayload(payload) {
|
|
19309
19269
|
if (!payload)
|
|
19310
19270
|
return false;
|
|
19311
|
-
const isValidFilter = (f) =>
|
|
19271
|
+
const isValidFilter = (f) => {
|
|
19272
|
+
const hasColumn = typeof f.column === 'string' || typeof f.columnName === 'string';
|
|
19273
|
+
const hasOperator = typeof f.oper === 'string' || typeof f.operator === 'string';
|
|
19274
|
+
const hasValues = Array.isArray(f.values);
|
|
19275
|
+
const validType = !f.type || typeof f.type === 'string';
|
|
19276
|
+
return hasColumn && hasOperator && hasValues && validType;
|
|
19277
|
+
};
|
|
19312
19278
|
const hasValidFilter = payload.filter && isValidFilter(payload.filter);
|
|
19313
19279
|
const hasValidFilters = Array.isArray(payload.filters) && payload.filters.length > 0 && payload.filters.every(isValidFilter);
|
|
19314
19280
|
return !!(hasValidFilter || hasValidFilters);
|
|
@@ -20995,6 +20961,9 @@ class TsEmbed {
|
|
|
20995
20961
|
try {
|
|
20996
20962
|
this.removeFullscreenChangeHandler();
|
|
20997
20963
|
this.unsubscribeToEvents();
|
|
20964
|
+
if (!this.isRendered) {
|
|
20965
|
+
return;
|
|
20966
|
+
}
|
|
20998
20967
|
if (!getEmbedConfig().waitForCleanupOnDestroy) {
|
|
20999
20968
|
this.trigger(HostEvent.DestroyEmbed);
|
|
21000
20969
|
(_b = (_a = this.insertedDomEl) === null || _a === void 0 ? void 0 : _a.parentNode) === null || _b === void 0 ? void 0 : _b.removeChild(this.insertedDomEl);
|
|
@@ -21004,11 +20973,16 @@ class TsEmbed {
|
|
|
21004
20973
|
Promise.race([
|
|
21005
20974
|
this.trigger(HostEvent.DestroyEmbed),
|
|
21006
20975
|
new Promise((resolve) => setTimeout(resolve, cleanupTimeout)),
|
|
21007
|
-
]).
|
|
21008
|
-
var _a, _b;
|
|
21009
|
-
(_b = (_a = this.insertedDomEl) === null || _a === void 0 ? void 0 : _a.parentNode) === null || _b === void 0 ? void 0 : _b.removeChild(this.insertedDomEl);
|
|
21010
|
-
}).catch((e) => {
|
|
20976
|
+
]).catch((e) => {
|
|
21011
20977
|
logger$3.log('Error destroying TS Embed', e);
|
|
20978
|
+
}).finally(() => {
|
|
20979
|
+
var _a, _b;
|
|
20980
|
+
try {
|
|
20981
|
+
(_b = (_a = this.insertedDomEl) === null || _a === void 0 ? void 0 : _a.parentNode) === null || _b === void 0 ? void 0 : _b.removeChild(this.insertedDomEl);
|
|
20982
|
+
}
|
|
20983
|
+
catch (e) {
|
|
20984
|
+
logger$3.log('Error removing DOM element on destroy', e);
|
|
20985
|
+
}
|
|
21012
20986
|
});
|
|
21013
20987
|
}
|
|
21014
20988
|
}
|
|
@@ -21349,87 +21323,6 @@ let SearchBarEmbed$1 = class SearchBarEmbed extends TsEmbed {
|
|
|
21349
21323
|
}
|
|
21350
21324
|
};
|
|
21351
21325
|
|
|
21352
|
-
/**
|
|
21353
|
-
* Copyright (c) 2023
|
|
21354
|
-
*
|
|
21355
|
-
* Embed ThoughtSpot Sage
|
|
21356
|
-
* @summary TS Sage embed
|
|
21357
|
-
* @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
|
|
21358
|
-
*/
|
|
21359
|
-
/**
|
|
21360
|
-
* Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
|
|
21361
|
-
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
|
|
21362
|
-
*
|
|
21363
|
-
* Note: This embed will be deprecated from SDK: 1.40.0 | ThoughtSpot: 10.13.0.cl
|
|
21364
|
-
* @group Embed components
|
|
21365
|
-
*/
|
|
21366
|
-
let SageEmbed$1 = class SageEmbed extends V1Embed {
|
|
21367
|
-
constructor(domSelector, viewConfig) {
|
|
21368
|
-
viewConfig.embedComponentType = 'SageEmbed';
|
|
21369
|
-
super(domSelector, viewConfig);
|
|
21370
|
-
}
|
|
21371
|
-
getEmbedParamsObject() {
|
|
21372
|
-
const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, dataPanelV2, hideSampleQuestions, isProductTour, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
|
|
21373
|
-
const params = this.getBaseQueryParams();
|
|
21374
|
-
params[Param.DataPanelV2Enabled] = !!dataPanelV2;
|
|
21375
|
-
params[Param.IsSageEmbed] = true;
|
|
21376
|
-
params[Param.DisableWorksheetChange] = !!disableWorksheetChange;
|
|
21377
|
-
params[Param.HideWorksheetSelector] = !!hideWorksheetSelector;
|
|
21378
|
-
params[Param.HideEurekaSuggestions] = !!hideAutocompleteSuggestions;
|
|
21379
|
-
if (showObjectSuggestions) {
|
|
21380
|
-
params[Param.HideEurekaSuggestions] = !showObjectSuggestions;
|
|
21381
|
-
// support backwards compatibility
|
|
21382
|
-
}
|
|
21383
|
-
params[Param.HideSampleQuestions] = !!hideSampleQuestions;
|
|
21384
|
-
params[Param.IsProductTour] = !!isProductTour;
|
|
21385
|
-
params[Param.HideSageAnswerHeader] = !!hideSageAnswerHeader;
|
|
21386
|
-
return params;
|
|
21387
|
-
}
|
|
21388
|
-
/**
|
|
21389
|
-
* Constructs a map of parameters to be passed on to the
|
|
21390
|
-
* embedded Eureka or Sage search page.
|
|
21391
|
-
* @returns {string} query string
|
|
21392
|
-
*/
|
|
21393
|
-
getEmbedParams() {
|
|
21394
|
-
const params = this.getEmbedParamsObject();
|
|
21395
|
-
return getQueryParamString(params, true);
|
|
21396
|
-
}
|
|
21397
|
-
/**
|
|
21398
|
-
* Construct the URL of the embedded ThoughtSpot sage to be
|
|
21399
|
-
* loaded in the iframe
|
|
21400
|
-
* @returns {string} iframe url
|
|
21401
|
-
*/
|
|
21402
|
-
getIFrameSrc() {
|
|
21403
|
-
const path = 'eureka';
|
|
21404
|
-
const postHashObj = {};
|
|
21405
|
-
const tsPostHashParams = this.getThoughtSpotPostUrlParams();
|
|
21406
|
-
const { dataSource, searchOptions, } = this.viewConfig;
|
|
21407
|
-
if (dataSource)
|
|
21408
|
-
postHashObj[Param.WorksheetId] = dataSource;
|
|
21409
|
-
if ((searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchQuery) && searchOptions.executeSearch) {
|
|
21410
|
-
postHashObj[Param.executeSearch] = true;
|
|
21411
|
-
}
|
|
21412
|
-
let sagePostHashParams = new URLSearchParams(postHashObj).toString();
|
|
21413
|
-
if (sagePostHashParams)
|
|
21414
|
-
sagePostHashParams = `${tsPostHashParams ? '&' : '?'}${sagePostHashParams}`;
|
|
21415
|
-
if (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchQuery)
|
|
21416
|
-
sagePostHashParams += `${sagePostHashParams ? '&' : '?'}${[Param.Query]}=${encodeURIComponent(searchOptions.searchQuery)}`;
|
|
21417
|
-
// use encodeURIComponent for query instead of URLSearchParams
|
|
21418
|
-
// as it adds + instead of %20 for spaces
|
|
21419
|
-
return `${this.getRootIframeSrc()}/embed/${path}${tsPostHashParams}${sagePostHashParams}`;
|
|
21420
|
-
}
|
|
21421
|
-
/**
|
|
21422
|
-
* Render the embedded ThoughtSpot Sage
|
|
21423
|
-
* @returns {SageEmbed} Eureka/Sage embed
|
|
21424
|
-
*/
|
|
21425
|
-
async render() {
|
|
21426
|
-
await super.render();
|
|
21427
|
-
const src = this.getIFrameSrc();
|
|
21428
|
-
await this.renderV1Embed(src);
|
|
21429
|
-
return this;
|
|
21430
|
-
}
|
|
21431
|
-
};
|
|
21432
|
-
|
|
21433
21326
|
/**
|
|
21434
21327
|
* Copyright (c) 2022
|
|
21435
21328
|
*
|
|
@@ -21601,7 +21494,7 @@ let SearchEmbed$1 = class SearchEmbed extends TsEmbed {
|
|
|
21601
21494
|
*/
|
|
21602
21495
|
async render() {
|
|
21603
21496
|
await super.render();
|
|
21604
|
-
this.viewConfig;
|
|
21497
|
+
const { answerId } = this.viewConfig;
|
|
21605
21498
|
const src = this.getIFrameSrc();
|
|
21606
21499
|
await this.renderIFrame(src);
|
|
21607
21500
|
getAuthPromise().then(() => {
|
|
@@ -21864,7 +21757,7 @@ let AppEmbed$1 = class AppEmbed extends V1Embed {
|
|
|
21864
21757
|
* embedded Liveboard or visualization.
|
|
21865
21758
|
*/
|
|
21866
21759
|
getEmbedParams() {
|
|
21867
|
-
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,
|
|
21760
|
+
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, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, enableHomepageAnnouncement = false, isContinuousLiveboardPDFEnabled, } = this.viewConfig;
|
|
21868
21761
|
let params = {};
|
|
21869
21762
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
21870
21763
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
@@ -21882,7 +21775,6 @@ let AppEmbed$1 = class AppEmbed extends V1Embed {
|
|
|
21882
21775
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
21883
21776
|
params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
|
|
21884
21777
|
params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
|
|
21885
|
-
params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
|
|
21886
21778
|
params[Param.CoverAndFilterOptionInPDF] = !!coverAndFilterOptionInPDF;
|
|
21887
21779
|
params = this.getBaseQueryParams(params);
|
|
21888
21780
|
if (!isUndefined(updatedSpotterChatPrompt)) {
|
|
@@ -23447,38 +23339,6 @@ const SearchBarEmbed = componentFactory(SearchBarEmbed$1);
|
|
|
23447
23339
|
* ```
|
|
23448
23340
|
*/
|
|
23449
23341
|
const PreRenderedSearchBarEmbed = componentFactory(SearchBarEmbed$1, true);
|
|
23450
|
-
/**
|
|
23451
|
-
* React component for LLM based search Sage embed.
|
|
23452
|
-
* @example
|
|
23453
|
-
* ```tsx
|
|
23454
|
-
* function Sage() {
|
|
23455
|
-
* return <SageEmbed
|
|
23456
|
-
* showObjectResults={true}
|
|
23457
|
-
* ... other view config props or event listeners.
|
|
23458
|
-
* />
|
|
23459
|
-
* }
|
|
23460
|
-
* ```
|
|
23461
|
-
*/
|
|
23462
|
-
const SageEmbed = componentFactory(SageEmbed$1);
|
|
23463
|
-
/**
|
|
23464
|
-
* React component for PreRendered Sage embed.
|
|
23465
|
-
*
|
|
23466
|
-
* PreRenderedSageEmbed will preRender the SageEmbed and will be hidden by
|
|
23467
|
-
* default.
|
|
23468
|
-
*
|
|
23469
|
-
* SageEmbed with preRenderId passed will call showPreRender on the embed.
|
|
23470
|
-
* @example
|
|
23471
|
-
* ```tsx
|
|
23472
|
-
* function LandingPageComponent() {
|
|
23473
|
-
* return <PreRenderedSageEmbed preRenderId="someId" showObjectResults={true} />
|
|
23474
|
-
* }
|
|
23475
|
-
* ```
|
|
23476
|
-
* function MyComponent() {
|
|
23477
|
-
* return <SageEmbed preRenderId="someId" showObjectResults={true} />
|
|
23478
|
-
* }
|
|
23479
|
-
* ```
|
|
23480
|
-
*/
|
|
23481
|
-
const PreRenderedSageEmbed = componentFactory(SageEmbed$1, true);
|
|
23482
23342
|
/**
|
|
23483
23343
|
* React component for LLM based conversation BI.
|
|
23484
23344
|
* @example
|
|
@@ -23659,4 +23519,4 @@ function useSpotterAgent(config) {
|
|
|
23659
23519
|
};
|
|
23660
23520
|
}
|
|
23661
23521
|
|
|
23662
|
-
export { Action, AppEmbed, ConversationEmbed, ConversationMessage, CustomActionsPosition, EmbedEvent, HomeLeftNavItem, HomepageModule, HostEvent, ListPageColumns, LiveboardEmbed, LogLevel, Page, PinboardEmbed, PreRenderedAppEmbed, PreRenderedConversationEmbed, PreRenderedLiveboardEmbed, PreRenderedPinboardEmbed,
|
|
23522
|
+
export { Action, AppEmbed, ConversationEmbed, ConversationMessage, CustomActionsPosition, EmbedEvent, HomeLeftNavItem, HomepageModule, HostEvent, ListPageColumns, LiveboardEmbed, LogLevel, Page, PinboardEmbed, PreRenderedAppEmbed, PreRenderedConversationEmbed, PreRenderedLiveboardEmbed, PreRenderedPinboardEmbed, PreRenderedSearchBarEmbed, PreRenderedSearchEmbed, RuntimeFilterOp, SearchBarEmbed, SearchEmbed, SpotterEmbed, SpotterMessage, getSessionInfo, useEmbedRef, useInit, useSpotterAgent };
|