@thoughtspot/visual-embed-sdk 1.33.4 → 1.33.5
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/config.d.ts.map +1 -1
- package/cjs/src/config.js.map +1 -1
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +0 -1
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/base.d.ts +4 -1
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +14 -6
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/base.spec.js +45 -3
- package/cjs/src/embed/base.spec.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.d.ts +17 -0
- package/cjs/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/cjs/src/embed/bodyless-conversation.js +13 -0
- package/cjs/src/embed/bodyless-conversation.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +0 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/sage.d.ts.map +1 -1
- package/cjs/src/embed/sage.js +0 -1
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +13 -2
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +40 -0
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/react/index.spec.js +2 -2
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/types.d.ts +43 -5
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +5 -3
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-Cl8Rsh6W.js → index-CAHz286m.js} +1 -1
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts +4 -1
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/bodyless-conversation.d.ts +17 -0
- package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/types.d.ts +43 -5
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +142 -65
- package/dist/tsembed-react.js +141 -64
- package/dist/tsembed.es.js +164 -67
- package/dist/tsembed.js +163 -66
- package/dist/visual-embed-sdk-react-full.d.ts +64 -6
- package/dist/visual-embed-sdk-react.d.ts +64 -6
- package/dist/visual-embed-sdk.d.ts +64 -6
- package/lib/package.json +1 -1
- package/lib/src/config.d.ts.map +1 -1
- package/lib/src/config.js.map +1 -1
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +0 -1
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/base.d.ts +4 -1
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +15 -7
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/base.spec.js +45 -3
- package/lib/src/embed/base.spec.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.d.ts +17 -0
- package/lib/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/lib/src/embed/bodyless-conversation.js +13 -0
- package/lib/src/embed/bodyless-conversation.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +0 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/sage.d.ts.map +1 -1
- package/lib/src/embed/sage.js +0 -1
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +13 -2
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +41 -1
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/react/index.spec.js +2 -2
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/types.d.ts +43 -5
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +5 -3
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +64 -6
- package/package.json +1 -1
- package/src/config.ts +0 -1
- package/src/embed/app.ts +0 -1
- package/src/embed/base.spec.ts +48 -3
- package/src/embed/base.ts +21 -7
- package/src/embed/bodyless-conversation.ts +17 -0
- package/src/embed/liveboard.ts +0 -1
- package/src/embed/sage.ts +0 -1
- package/src/embed/ts-embed.spec.ts +47 -0
- package/src/embed/ts-embed.ts +16 -2
- package/src/react/index.spec.tsx +2 -2
- package/src/types.ts +40 -4
package/dist/tsembed.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.33.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.33.5 */
|
|
2
2
|
function _mergeNamespaces(n, m) {
|
|
3
3
|
m.forEach(function (e) {
|
|
4
4
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -2354,12 +2354,13 @@ var HostEvent;
|
|
|
2354
2354
|
* see link:https://developers.thoughtspot.com/docs/runtime-filters#rtOperator[Developer Documentation].
|
|
2355
2355
|
*
|
|
2356
2356
|
* `values` - An array of one or several values. The value definition on the
|
|
2357
|
-
* data type you choose to filter on. For a complete list of supported data types,
|
|
2358
|
-
*
|
|
2357
|
+
* data type you choose to filter on. For a complete list of supported data types,
|
|
2358
|
+
* see
|
|
2359
|
+
* link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported
|
|
2360
|
+
* data types].
|
|
2359
2361
|
*
|
|
2360
2362
|
* `type` - To update filters for date time, specify the date format type.
|
|
2361
2363
|
* For more information and examples, see link:https://developers.thoughtspot.com/docs/embed-liveboard#_date_filters[Date filters].
|
|
2362
|
-
*
|
|
2363
2364
|
* @example
|
|
2364
2365
|
* ```js
|
|
2365
2366
|
*
|
|
@@ -2651,6 +2652,7 @@ var Param;
|
|
|
2651
2652
|
Param["LiveboardHeaderV2"] = "isLiveboardHeaderV2Enabled";
|
|
2652
2653
|
Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
|
|
2653
2654
|
Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
|
|
2655
|
+
Param["OverrideOrgId"] = "orgId";
|
|
2654
2656
|
})(Param || (Param = {}));
|
|
2655
2657
|
/**
|
|
2656
2658
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -4136,17 +4138,17 @@ var Symbol = _root.Symbol;
|
|
|
4136
4138
|
var _Symbol = Symbol;
|
|
4137
4139
|
|
|
4138
4140
|
/** Used for built-in method references. */
|
|
4139
|
-
var objectProto$
|
|
4141
|
+
var objectProto$c = Object.prototype;
|
|
4140
4142
|
|
|
4141
4143
|
/** Used to check objects for own properties. */
|
|
4142
|
-
var hasOwnProperty$
|
|
4144
|
+
var hasOwnProperty$a = objectProto$c.hasOwnProperty;
|
|
4143
4145
|
|
|
4144
4146
|
/**
|
|
4145
4147
|
* Used to resolve the
|
|
4146
4148
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
4147
4149
|
* of values.
|
|
4148
4150
|
*/
|
|
4149
|
-
var nativeObjectToString$1 = objectProto$
|
|
4151
|
+
var nativeObjectToString$1 = objectProto$c.toString;
|
|
4150
4152
|
|
|
4151
4153
|
/** Built-in value references. */
|
|
4152
4154
|
var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
|
|
@@ -4159,7 +4161,7 @@ var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
|
|
|
4159
4161
|
* @returns {string} Returns the raw `toStringTag`.
|
|
4160
4162
|
*/
|
|
4161
4163
|
function getRawTag(value) {
|
|
4162
|
-
var isOwn = hasOwnProperty$
|
|
4164
|
+
var isOwn = hasOwnProperty$a.call(value, symToStringTag$1),
|
|
4163
4165
|
tag = value[symToStringTag$1];
|
|
4164
4166
|
|
|
4165
4167
|
try {
|
|
@@ -4181,14 +4183,14 @@ function getRawTag(value) {
|
|
|
4181
4183
|
var _getRawTag = getRawTag;
|
|
4182
4184
|
|
|
4183
4185
|
/** Used for built-in method references. */
|
|
4184
|
-
var objectProto$
|
|
4186
|
+
var objectProto$b = Object.prototype;
|
|
4185
4187
|
|
|
4186
4188
|
/**
|
|
4187
4189
|
* Used to resolve the
|
|
4188
4190
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
4189
4191
|
* of values.
|
|
4190
4192
|
*/
|
|
4191
|
-
var nativeObjectToString = objectProto$
|
|
4193
|
+
var nativeObjectToString = objectProto$b.toString;
|
|
4192
4194
|
|
|
4193
4195
|
/**
|
|
4194
4196
|
* Converts `value` to a string using `Object.prototype.toString`.
|
|
@@ -4357,17 +4359,17 @@ var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
|
4357
4359
|
|
|
4358
4360
|
/** Used for built-in method references. */
|
|
4359
4361
|
var funcProto = Function.prototype,
|
|
4360
|
-
objectProto$
|
|
4362
|
+
objectProto$a = Object.prototype;
|
|
4361
4363
|
|
|
4362
4364
|
/** Used to resolve the decompiled source of functions. */
|
|
4363
4365
|
var funcToString = funcProto.toString;
|
|
4364
4366
|
|
|
4365
4367
|
/** Used to check objects for own properties. */
|
|
4366
|
-
var hasOwnProperty$
|
|
4368
|
+
var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
|
|
4367
4369
|
|
|
4368
4370
|
/** Used to detect if a method is native. */
|
|
4369
4371
|
var reIsNative = RegExp('^' +
|
|
4370
|
-
funcToString.call(hasOwnProperty$
|
|
4372
|
+
funcToString.call(hasOwnProperty$9).replace(reRegExpChar, '\\$&')
|
|
4371
4373
|
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
4372
4374
|
);
|
|
4373
4375
|
|
|
@@ -4464,10 +4466,10 @@ var _hashDelete = hashDelete;
|
|
|
4464
4466
|
var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
|
|
4465
4467
|
|
|
4466
4468
|
/** Used for built-in method references. */
|
|
4467
|
-
var objectProto$
|
|
4469
|
+
var objectProto$9 = Object.prototype;
|
|
4468
4470
|
|
|
4469
4471
|
/** Used to check objects for own properties. */
|
|
4470
|
-
var hasOwnProperty$
|
|
4472
|
+
var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
|
|
4471
4473
|
|
|
4472
4474
|
/**
|
|
4473
4475
|
* Gets the hash value for `key`.
|
|
@@ -4484,16 +4486,16 @@ function hashGet(key) {
|
|
|
4484
4486
|
var result = data[key];
|
|
4485
4487
|
return result === HASH_UNDEFINED$2 ? undefined : result;
|
|
4486
4488
|
}
|
|
4487
|
-
return hasOwnProperty$
|
|
4489
|
+
return hasOwnProperty$8.call(data, key) ? data[key] : undefined;
|
|
4488
4490
|
}
|
|
4489
4491
|
|
|
4490
4492
|
var _hashGet = hashGet;
|
|
4491
4493
|
|
|
4492
4494
|
/** Used for built-in method references. */
|
|
4493
|
-
var objectProto$
|
|
4495
|
+
var objectProto$8 = Object.prototype;
|
|
4494
4496
|
|
|
4495
4497
|
/** Used to check objects for own properties. */
|
|
4496
|
-
var hasOwnProperty$
|
|
4498
|
+
var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
|
4497
4499
|
|
|
4498
4500
|
/**
|
|
4499
4501
|
* Checks if a hash value for `key` exists.
|
|
@@ -4506,7 +4508,7 @@ var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
|
4506
4508
|
*/
|
|
4507
4509
|
function hashHas(key) {
|
|
4508
4510
|
var data = this.__data__;
|
|
4509
|
-
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$
|
|
4511
|
+
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$7.call(data, key);
|
|
4510
4512
|
}
|
|
4511
4513
|
|
|
4512
4514
|
var _hashHas = hashHas;
|
|
@@ -4987,10 +4989,10 @@ var COMPARE_PARTIAL_FLAG$2 = 1,
|
|
|
4987
4989
|
var boolTag$1 = '[object Boolean]',
|
|
4988
4990
|
dateTag$1 = '[object Date]',
|
|
4989
4991
|
errorTag$1 = '[object Error]',
|
|
4990
|
-
mapTag$
|
|
4992
|
+
mapTag$3 = '[object Map]',
|
|
4991
4993
|
numberTag$1 = '[object Number]',
|
|
4992
4994
|
regexpTag$1 = '[object RegExp]',
|
|
4993
|
-
setTag$
|
|
4995
|
+
setTag$3 = '[object Set]',
|
|
4994
4996
|
stringTag$1 = '[object String]',
|
|
4995
4997
|
symbolTag = '[object Symbol]';
|
|
4996
4998
|
|
|
@@ -5052,10 +5054,10 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
|
5052
5054
|
// for more details.
|
|
5053
5055
|
return object == (other + '');
|
|
5054
5056
|
|
|
5055
|
-
case mapTag$
|
|
5057
|
+
case mapTag$3:
|
|
5056
5058
|
var convert = _mapToArray;
|
|
5057
5059
|
|
|
5058
|
-
case setTag$
|
|
5060
|
+
case setTag$3:
|
|
5059
5061
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
|
|
5060
5062
|
convert || (convert = _setToArray);
|
|
5061
5063
|
|
|
@@ -5202,10 +5204,10 @@ function stubArray() {
|
|
|
5202
5204
|
var stubArray_1 = stubArray;
|
|
5203
5205
|
|
|
5204
5206
|
/** Used for built-in method references. */
|
|
5205
|
-
var objectProto$
|
|
5207
|
+
var objectProto$7 = Object.prototype;
|
|
5206
5208
|
|
|
5207
5209
|
/** Built-in value references. */
|
|
5208
|
-
var propertyIsEnumerable$1 = objectProto$
|
|
5210
|
+
var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
|
|
5209
5211
|
|
|
5210
5212
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
5211
5213
|
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
@@ -5297,13 +5299,13 @@ function baseIsArguments(value) {
|
|
|
5297
5299
|
var _baseIsArguments = baseIsArguments;
|
|
5298
5300
|
|
|
5299
5301
|
/** Used for built-in method references. */
|
|
5300
|
-
var objectProto$
|
|
5302
|
+
var objectProto$6 = Object.prototype;
|
|
5301
5303
|
|
|
5302
5304
|
/** Used to check objects for own properties. */
|
|
5303
|
-
var hasOwnProperty$
|
|
5305
|
+
var hasOwnProperty$6 = objectProto$6.hasOwnProperty;
|
|
5304
5306
|
|
|
5305
5307
|
/** Built-in value references. */
|
|
5306
|
-
var propertyIsEnumerable = objectProto$
|
|
5308
|
+
var propertyIsEnumerable = objectProto$6.propertyIsEnumerable;
|
|
5307
5309
|
|
|
5308
5310
|
/**
|
|
5309
5311
|
* Checks if `value` is likely an `arguments` object.
|
|
@@ -5324,7 +5326,7 @@ var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
|
|
|
5324
5326
|
* // => false
|
|
5325
5327
|
*/
|
|
5326
5328
|
var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
|
|
5327
|
-
return isObjectLike_1(value) && hasOwnProperty$
|
|
5329
|
+
return isObjectLike_1(value) && hasOwnProperty$6.call(value, 'callee') &&
|
|
5328
5330
|
!propertyIsEnumerable.call(value, 'callee');
|
|
5329
5331
|
};
|
|
5330
5332
|
|
|
@@ -5456,11 +5458,11 @@ var argsTag$1 = '[object Arguments]',
|
|
|
5456
5458
|
dateTag = '[object Date]',
|
|
5457
5459
|
errorTag = '[object Error]',
|
|
5458
5460
|
funcTag = '[object Function]',
|
|
5459
|
-
mapTag$
|
|
5461
|
+
mapTag$2 = '[object Map]',
|
|
5460
5462
|
numberTag = '[object Number]',
|
|
5461
5463
|
objectTag$2 = '[object Object]',
|
|
5462
5464
|
regexpTag = '[object RegExp]',
|
|
5463
|
-
setTag$
|
|
5465
|
+
setTag$2 = '[object Set]',
|
|
5464
5466
|
stringTag = '[object String]',
|
|
5465
5467
|
weakMapTag$1 = '[object WeakMap]';
|
|
5466
5468
|
|
|
@@ -5487,9 +5489,9 @@ typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
|
|
|
5487
5489
|
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
|
|
5488
5490
|
typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] =
|
|
5489
5491
|
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
|
|
5490
|
-
typedArrayTags[mapTag$
|
|
5492
|
+
typedArrayTags[mapTag$2] = typedArrayTags[numberTag] =
|
|
5491
5493
|
typedArrayTags[objectTag$2] = typedArrayTags[regexpTag] =
|
|
5492
|
-
typedArrayTags[setTag$
|
|
5494
|
+
typedArrayTags[setTag$2] = typedArrayTags[stringTag] =
|
|
5493
5495
|
typedArrayTags[weakMapTag$1] = false;
|
|
5494
5496
|
|
|
5495
5497
|
/**
|
|
@@ -5577,10 +5579,10 @@ var isTypedArray = nodeIsTypedArray ? _baseUnary(nodeIsTypedArray) : _baseIsType
|
|
|
5577
5579
|
var isTypedArray_1 = isTypedArray;
|
|
5578
5580
|
|
|
5579
5581
|
/** Used for built-in method references. */
|
|
5580
|
-
var objectProto$
|
|
5582
|
+
var objectProto$5 = Object.prototype;
|
|
5581
5583
|
|
|
5582
5584
|
/** Used to check objects for own properties. */
|
|
5583
|
-
var hasOwnProperty$
|
|
5585
|
+
var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
|
|
5584
5586
|
|
|
5585
5587
|
/**
|
|
5586
5588
|
* Creates an array of the enumerable property names of the array-like `value`.
|
|
@@ -5600,7 +5602,7 @@ function arrayLikeKeys(value, inherited) {
|
|
|
5600
5602
|
length = result.length;
|
|
5601
5603
|
|
|
5602
5604
|
for (var key in value) {
|
|
5603
|
-
if ((inherited || hasOwnProperty$
|
|
5605
|
+
if ((inherited || hasOwnProperty$5.call(value, key)) &&
|
|
5604
5606
|
!(skipIndexes && (
|
|
5605
5607
|
// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
5606
5608
|
key == 'length' ||
|
|
@@ -5620,7 +5622,7 @@ function arrayLikeKeys(value, inherited) {
|
|
|
5620
5622
|
var _arrayLikeKeys = arrayLikeKeys;
|
|
5621
5623
|
|
|
5622
5624
|
/** Used for built-in method references. */
|
|
5623
|
-
var objectProto$
|
|
5625
|
+
var objectProto$4 = Object.prototype;
|
|
5624
5626
|
|
|
5625
5627
|
/**
|
|
5626
5628
|
* Checks if `value` is likely a prototype object.
|
|
@@ -5631,7 +5633,7 @@ var objectProto$3 = Object.prototype;
|
|
|
5631
5633
|
*/
|
|
5632
5634
|
function isPrototype(value) {
|
|
5633
5635
|
var Ctor = value && value.constructor,
|
|
5634
|
-
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$
|
|
5636
|
+
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$4;
|
|
5635
5637
|
|
|
5636
5638
|
return value === proto;
|
|
5637
5639
|
}
|
|
@@ -5660,10 +5662,10 @@ var nativeKeys = _overArg(Object.keys, Object);
|
|
|
5660
5662
|
var _nativeKeys = nativeKeys;
|
|
5661
5663
|
|
|
5662
5664
|
/** Used for built-in method references. */
|
|
5663
|
-
var objectProto$
|
|
5665
|
+
var objectProto$3 = Object.prototype;
|
|
5664
5666
|
|
|
5665
5667
|
/** Used to check objects for own properties. */
|
|
5666
|
-
var hasOwnProperty$
|
|
5668
|
+
var hasOwnProperty$4 = objectProto$3.hasOwnProperty;
|
|
5667
5669
|
|
|
5668
5670
|
/**
|
|
5669
5671
|
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
@@ -5678,7 +5680,7 @@ function baseKeys(object) {
|
|
|
5678
5680
|
}
|
|
5679
5681
|
var result = [];
|
|
5680
5682
|
for (var key in Object(object)) {
|
|
5681
|
-
if (hasOwnProperty$
|
|
5683
|
+
if (hasOwnProperty$4.call(object, key) && key != 'constructor') {
|
|
5682
5684
|
result.push(key);
|
|
5683
5685
|
}
|
|
5684
5686
|
}
|
|
@@ -5769,10 +5771,10 @@ var _getAllKeys = getAllKeys;
|
|
|
5769
5771
|
var COMPARE_PARTIAL_FLAG$1 = 1;
|
|
5770
5772
|
|
|
5771
5773
|
/** Used for built-in method references. */
|
|
5772
|
-
var objectProto$
|
|
5774
|
+
var objectProto$2 = Object.prototype;
|
|
5773
5775
|
|
|
5774
5776
|
/** Used to check objects for own properties. */
|
|
5775
|
-
var hasOwnProperty$
|
|
5777
|
+
var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
|
|
5776
5778
|
|
|
5777
5779
|
/**
|
|
5778
5780
|
* A specialized version of `baseIsEqualDeep` for objects with support for
|
|
@@ -5800,7 +5802,7 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
5800
5802
|
var index = objLength;
|
|
5801
5803
|
while (index--) {
|
|
5802
5804
|
var key = objProps[index];
|
|
5803
|
-
if (!(isPartial ? key in other : hasOwnProperty$
|
|
5805
|
+
if (!(isPartial ? key in other : hasOwnProperty$3.call(other, key))) {
|
|
5804
5806
|
return false;
|
|
5805
5807
|
}
|
|
5806
5808
|
}
|
|
@@ -5875,10 +5877,10 @@ var WeakMap = _getNative(_root, 'WeakMap');
|
|
|
5875
5877
|
var _WeakMap = WeakMap;
|
|
5876
5878
|
|
|
5877
5879
|
/** `Object#toString` result references. */
|
|
5878
|
-
var mapTag = '[object Map]',
|
|
5880
|
+
var mapTag$1 = '[object Map]',
|
|
5879
5881
|
objectTag$1 = '[object Object]',
|
|
5880
5882
|
promiseTag = '[object Promise]',
|
|
5881
|
-
setTag = '[object Set]',
|
|
5883
|
+
setTag$1 = '[object Set]',
|
|
5882
5884
|
weakMapTag = '[object WeakMap]';
|
|
5883
5885
|
|
|
5884
5886
|
var dataViewTag = '[object DataView]';
|
|
@@ -5901,9 +5903,9 @@ var getTag = _baseGetTag;
|
|
|
5901
5903
|
|
|
5902
5904
|
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
|
5903
5905
|
if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|
5904
|
-
(_Map && getTag(new _Map) != mapTag) ||
|
|
5906
|
+
(_Map && getTag(new _Map) != mapTag$1) ||
|
|
5905
5907
|
(_Promise && getTag(_Promise.resolve()) != promiseTag) ||
|
|
5906
|
-
(_Set && getTag(new _Set) != setTag) ||
|
|
5908
|
+
(_Set && getTag(new _Set) != setTag$1) ||
|
|
5907
5909
|
(_WeakMap && getTag(new _WeakMap) != weakMapTag)) {
|
|
5908
5910
|
getTag = function(value) {
|
|
5909
5911
|
var result = _baseGetTag(value),
|
|
@@ -5913,9 +5915,9 @@ if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|
|
5913
5915
|
if (ctorString) {
|
|
5914
5916
|
switch (ctorString) {
|
|
5915
5917
|
case dataViewCtorString: return dataViewTag;
|
|
5916
|
-
case mapCtorString: return mapTag;
|
|
5918
|
+
case mapCtorString: return mapTag$1;
|
|
5917
5919
|
case promiseCtorString: return promiseTag;
|
|
5918
|
-
case setCtorString: return setTag;
|
|
5920
|
+
case setCtorString: return setTag$1;
|
|
5919
5921
|
case weakMapCtorString: return weakMapTag;
|
|
5920
5922
|
}
|
|
5921
5923
|
}
|
|
@@ -5934,10 +5936,10 @@ var argsTag = '[object Arguments]',
|
|
|
5934
5936
|
objectTag = '[object Object]';
|
|
5935
5937
|
|
|
5936
5938
|
/** Used for built-in method references. */
|
|
5937
|
-
var objectProto = Object.prototype;
|
|
5939
|
+
var objectProto$1 = Object.prototype;
|
|
5938
5940
|
|
|
5939
5941
|
/** Used to check objects for own properties. */
|
|
5940
|
-
var hasOwnProperty$
|
|
5942
|
+
var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
|
|
5941
5943
|
|
|
5942
5944
|
/**
|
|
5943
5945
|
* A specialized version of `baseIsEqual` for arrays and objects which performs
|
|
@@ -5980,8 +5982,8 @@ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
5980
5982
|
: _equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
5981
5983
|
}
|
|
5982
5984
|
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
5983
|
-
var objIsWrapped = objIsObj && hasOwnProperty$
|
|
5984
|
-
othIsWrapped = othIsObj && hasOwnProperty$
|
|
5985
|
+
var objIsWrapped = objIsObj && hasOwnProperty$2.call(object, '__wrapped__'),
|
|
5986
|
+
othIsWrapped = othIsObj && hasOwnProperty$2.call(other, '__wrapped__');
|
|
5985
5987
|
|
|
5986
5988
|
if (objIsWrapped || othIsWrapped) {
|
|
5987
5989
|
var objUnwrapped = objIsWrapped ? object.value() : object,
|
|
@@ -6060,6 +6062,75 @@ function isEqual(value, other) {
|
|
|
6060
6062
|
|
|
6061
6063
|
var isEqual_1 = isEqual;
|
|
6062
6064
|
|
|
6065
|
+
/** `Object#toString` result references. */
|
|
6066
|
+
var mapTag = '[object Map]',
|
|
6067
|
+
setTag = '[object Set]';
|
|
6068
|
+
|
|
6069
|
+
/** Used for built-in method references. */
|
|
6070
|
+
var objectProto = Object.prototype;
|
|
6071
|
+
|
|
6072
|
+
/** Used to check objects for own properties. */
|
|
6073
|
+
var hasOwnProperty$1 = objectProto.hasOwnProperty;
|
|
6074
|
+
|
|
6075
|
+
/**
|
|
6076
|
+
* Checks if `value` is an empty object, collection, map, or set.
|
|
6077
|
+
*
|
|
6078
|
+
* Objects are considered empty if they have no own enumerable string keyed
|
|
6079
|
+
* properties.
|
|
6080
|
+
*
|
|
6081
|
+
* Array-like values such as `arguments` objects, arrays, buffers, strings, or
|
|
6082
|
+
* jQuery-like collections are considered empty if they have a `length` of `0`.
|
|
6083
|
+
* Similarly, maps and sets are considered empty if they have a `size` of `0`.
|
|
6084
|
+
*
|
|
6085
|
+
* @static
|
|
6086
|
+
* @memberOf _
|
|
6087
|
+
* @since 0.1.0
|
|
6088
|
+
* @category Lang
|
|
6089
|
+
* @param {*} value The value to check.
|
|
6090
|
+
* @returns {boolean} Returns `true` if `value` is empty, else `false`.
|
|
6091
|
+
* @example
|
|
6092
|
+
*
|
|
6093
|
+
* _.isEmpty(null);
|
|
6094
|
+
* // => true
|
|
6095
|
+
*
|
|
6096
|
+
* _.isEmpty(true);
|
|
6097
|
+
* // => true
|
|
6098
|
+
*
|
|
6099
|
+
* _.isEmpty(1);
|
|
6100
|
+
* // => true
|
|
6101
|
+
*
|
|
6102
|
+
* _.isEmpty([1, 2, 3]);
|
|
6103
|
+
* // => false
|
|
6104
|
+
*
|
|
6105
|
+
* _.isEmpty({ 'a': 1 });
|
|
6106
|
+
* // => false
|
|
6107
|
+
*/
|
|
6108
|
+
function isEmpty(value) {
|
|
6109
|
+
if (value == null) {
|
|
6110
|
+
return true;
|
|
6111
|
+
}
|
|
6112
|
+
if (isArrayLike_1(value) &&
|
|
6113
|
+
(isArray_1(value) || typeof value == 'string' || typeof value.splice == 'function' ||
|
|
6114
|
+
isBuffer_1(value) || isTypedArray_1(value) || isArguments_1(value))) {
|
|
6115
|
+
return !value.length;
|
|
6116
|
+
}
|
|
6117
|
+
var tag = _getTag(value);
|
|
6118
|
+
if (tag == mapTag || tag == setTag) {
|
|
6119
|
+
return !value.size;
|
|
6120
|
+
}
|
|
6121
|
+
if (_isPrototype(value)) {
|
|
6122
|
+
return !_baseKeys(value).length;
|
|
6123
|
+
}
|
|
6124
|
+
for (var key in value) {
|
|
6125
|
+
if (hasOwnProperty$1.call(value, key)) {
|
|
6126
|
+
return false;
|
|
6127
|
+
}
|
|
6128
|
+
}
|
|
6129
|
+
return true;
|
|
6130
|
+
}
|
|
6131
|
+
|
|
6132
|
+
var isEmpty_1 = isEmpty;
|
|
6133
|
+
|
|
6063
6134
|
const ERROR_MESSAGE = {
|
|
6064
6135
|
INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
|
|
6065
6136
|
SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND: 'Please select a worksheet to get started',
|
|
@@ -6895,7 +6966,7 @@ class AnswerService {
|
|
|
6895
6966
|
async getTML() {
|
|
6896
6967
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
6897
6968
|
const edoc = object[0].edoc;
|
|
6898
|
-
const YAML = await import('./index-
|
|
6969
|
+
const YAML = await import('./index-CAHz286m.js');
|
|
6899
6970
|
const parsedDoc = YAML.parse(edoc);
|
|
6900
6971
|
return {
|
|
6901
6972
|
answer: {
|
|
@@ -14203,10 +14274,10 @@ const handleAuth = () => {
|
|
|
14203
14274
|
return authPromise;
|
|
14204
14275
|
};
|
|
14205
14276
|
const hostUrlToFeatureUrl = {
|
|
14206
|
-
[PrefetchFeatures.SearchEmbed]: (url) => `${url}v2
|
|
14207
|
-
[PrefetchFeatures.LiveboardEmbed]: (url) => url
|
|
14208
|
-
[PrefetchFeatures.FullApp]: (url) => url
|
|
14209
|
-
[PrefetchFeatures.VizEmbed]: (url) => url
|
|
14277
|
+
[PrefetchFeatures.SearchEmbed]: (url, flags) => `${url}v2/?${flags}#/embed/answer`,
|
|
14278
|
+
[PrefetchFeatures.LiveboardEmbed]: (url, flags) => `${url}?${flags}`,
|
|
14279
|
+
[PrefetchFeatures.FullApp]: (url, flags) => `${url}?${flags}`,
|
|
14280
|
+
[PrefetchFeatures.VizEmbed]: (url, flags) => `${url}?${flags}`,
|
|
14210
14281
|
};
|
|
14211
14282
|
/**
|
|
14212
14283
|
* Prefetches static resources from the specified URL. Web browsers can then cache the
|
|
@@ -14214,10 +14285,12 @@ const hostUrlToFeatureUrl = {
|
|
|
14214
14285
|
* to your app.
|
|
14215
14286
|
* @param url The URL provided for prefetch
|
|
14216
14287
|
* @param prefetchFeatures Specify features which needs to be prefetched.
|
|
14288
|
+
* @param additionalFlags This can be used to add any URL flag.
|
|
14217
14289
|
* @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 7.2.1
|
|
14218
14290
|
* @group Global methods
|
|
14219
14291
|
*/
|
|
14220
|
-
const prefetch = (url, prefetchFeatures) => {
|
|
14292
|
+
const prefetch = (url, prefetchFeatures, additionalFlags) => {
|
|
14293
|
+
var _a;
|
|
14221
14294
|
if (url === '') {
|
|
14222
14295
|
// eslint-disable-next-line no-console
|
|
14223
14296
|
logger$3.warn('The prefetch method does not have a valid URL');
|
|
@@ -14225,9 +14298,14 @@ const prefetch = (url, prefetchFeatures) => {
|
|
|
14225
14298
|
else {
|
|
14226
14299
|
const features = prefetchFeatures || [PrefetchFeatures.FullApp];
|
|
14227
14300
|
let hostUrl = url || getEmbedConfig().thoughtSpotHost;
|
|
14301
|
+
const prefetchFlags = {
|
|
14302
|
+
[Param.EmbedApp]: true,
|
|
14303
|
+
...(_a = getEmbedConfig()) === null || _a === void 0 ? void 0 : _a.additionalFlags,
|
|
14304
|
+
...additionalFlags,
|
|
14305
|
+
};
|
|
14228
14306
|
hostUrl = hostUrl[hostUrl.length - 1] === '/' ? hostUrl : `${hostUrl}/`;
|
|
14229
14307
|
Array.from(new Set(features
|
|
14230
|
-
.map((feature) => hostUrlToFeatureUrl[feature](hostUrl))))
|
|
14308
|
+
.map((feature) => hostUrlToFeatureUrl[feature](hostUrl, getQueryParamString(prefetchFlags)))))
|
|
14231
14309
|
.forEach((prefetchUrl, index) => {
|
|
14232
14310
|
const iFrame = document.createElement('iframe');
|
|
14233
14311
|
iFrame.src = prefetchUrl;
|
|
@@ -14630,7 +14708,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
14630
14708
|
});
|
|
14631
14709
|
}
|
|
14632
14710
|
|
|
14633
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.
|
|
14711
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.5";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"30 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
|
|
14634
14712
|
|
|
14635
14713
|
/**
|
|
14636
14714
|
* Copyright (c) 2022
|
|
@@ -14909,6 +14987,7 @@ class TsEmbed {
|
|
|
14909
14987
|
if (hostAppUrl.includes('localhost') || hostAppUrl.includes('127.0.0.1')) {
|
|
14910
14988
|
hostAppUrl = 'local-host';
|
|
14911
14989
|
}
|
|
14990
|
+
queryParams[Param.EmbedApp] = true;
|
|
14912
14991
|
queryParams[Param.HostAppUrl] = encodeURIComponent(hostAppUrl);
|
|
14913
14992
|
queryParams[Param.ViewPortHeight] = window.innerHeight;
|
|
14914
14993
|
queryParams[Param.ViewPortWidth] = window.innerWidth;
|
|
@@ -14936,7 +15015,12 @@ class TsEmbed {
|
|
|
14936
15015
|
if (this.embedConfig.currencyFormat) {
|
|
14937
15016
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
14938
15017
|
}
|
|
14939
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, } = this.viewConfig;
|
|
15018
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, } = this.viewConfig;
|
|
15019
|
+
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
15020
|
+
const additionalFlags = {
|
|
15021
|
+
...additionalFlagsFromInit,
|
|
15022
|
+
...additionalFlagsFromView,
|
|
15023
|
+
};
|
|
14940
15024
|
if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
|
|
14941
15025
|
this.handleError('You cannot have both hidden actions and visible actions');
|
|
14942
15026
|
return queryParams;
|
|
@@ -14992,9 +15076,12 @@ class TsEmbed {
|
|
|
14992
15076
|
if (disableRedirectionLinksInNewTab) {
|
|
14993
15077
|
queryParams[Param.DisableRedirectionLinksInNewTab] = disableRedirectionLinksInNewTab;
|
|
14994
15078
|
}
|
|
15079
|
+
if (overrideOrgId !== undefined) {
|
|
15080
|
+
queryParams[Param.OverrideOrgId] = overrideOrgId;
|
|
15081
|
+
}
|
|
14995
15082
|
queryParams[Param.OverrideNativeConsole] = true;
|
|
14996
15083
|
queryParams[Param.ClientLogLevel] = this.embedConfig.logLevel;
|
|
14997
|
-
if (additionalFlags && additionalFlags
|
|
15084
|
+
if (isObject_1(additionalFlags) && !isEmpty_1(additionalFlags)) {
|
|
14998
15085
|
Object.assign(queryParams, additionalFlags);
|
|
14999
15086
|
}
|
|
15000
15087
|
// Do not add any flags below this, as we want additional flags to
|
|
@@ -15778,7 +15865,6 @@ class AppEmbed extends V1Embed {
|
|
|
15778
15865
|
/* eslint-disable-next-line max-len */
|
|
15779
15866
|
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, } = this.viewConfig;
|
|
15780
15867
|
let params = {};
|
|
15781
|
-
params[Param.EmbedApp] = true;
|
|
15782
15868
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
15783
15869
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
15784
15870
|
params[Param.HideApplicationSwitcher] = !!hideApplicationSwitcher;
|
|
@@ -16068,7 +16154,6 @@ class LiveboardEmbed extends V1Embed {
|
|
|
16068
16154
|
*/
|
|
16069
16155
|
getEmbedParams() {
|
|
16070
16156
|
let params = {};
|
|
16071
|
-
params[Param.EmbedApp] = true;
|
|
16072
16157
|
params = this.getBaseQueryParams(params);
|
|
16073
16158
|
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, } = this.viewConfig;
|
|
16074
16159
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
@@ -16898,6 +16983,19 @@ class ConversationMessage extends TsEmbed {
|
|
|
16898
16983
|
/**
|
|
16899
16984
|
* Create a conversation embed, which can be integrated inside
|
|
16900
16985
|
* chatbots or other conversational interfaces.
|
|
16986
|
+
* @example
|
|
16987
|
+
* ```js
|
|
16988
|
+
* import { BodylessConversation } from '@thoughtspot/visual-embed-sdk';
|
|
16989
|
+
*
|
|
16990
|
+
* const conversation = new BodylessConversation({
|
|
16991
|
+
* worksheetId: 'worksheetId',
|
|
16992
|
+
* });
|
|
16993
|
+
*
|
|
16994
|
+
* const { container, error } = await conversation.sendMessage('show me sales by region');
|
|
16995
|
+
*
|
|
16996
|
+
* // append the container to the DOM
|
|
16997
|
+
* document.body.appendChild(container); // or to any other element
|
|
16998
|
+
* ```
|
|
16901
16999
|
* @group Embed components
|
|
16902
17000
|
* @version SDK: 1.33.1 | ThoughtSpot: 10.5.0.cl
|
|
16903
17001
|
*/
|
|
@@ -16998,7 +17096,6 @@ class SageEmbed extends V1Embed {
|
|
|
16998
17096
|
getEmbedParams() {
|
|
16999
17097
|
const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
|
|
17000
17098
|
const params = this.getBaseQueryParams();
|
|
17001
|
-
params[Param.EmbedApp] = true;
|
|
17002
17099
|
params[Param.IsSageEmbed] = true;
|
|
17003
17100
|
params[Param.DisableWorksheetChange] = !!disableWorksheetChange;
|
|
17004
17101
|
params[Param.HideWorksheetSelector] = !!hideWorksheetSelector;
|