@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.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 (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -2360,12 +2360,13 @@
|
|
|
2360
2360
|
* see link:https://developers.thoughtspot.com/docs/runtime-filters#rtOperator[Developer Documentation].
|
|
2361
2361
|
*
|
|
2362
2362
|
* `values` - An array of one or several values. The value definition on the
|
|
2363
|
-
* data type you choose to filter on. For a complete list of supported data types,
|
|
2364
|
-
*
|
|
2363
|
+
* data type you choose to filter on. For a complete list of supported data types,
|
|
2364
|
+
* see
|
|
2365
|
+
* link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported
|
|
2366
|
+
* data types].
|
|
2365
2367
|
*
|
|
2366
2368
|
* `type` - To update filters for date time, specify the date format type.
|
|
2367
2369
|
* For more information and examples, see link:https://developers.thoughtspot.com/docs/embed-liveboard#_date_filters[Date filters].
|
|
2368
|
-
*
|
|
2369
2370
|
* @example
|
|
2370
2371
|
* ```js
|
|
2371
2372
|
*
|
|
@@ -2657,6 +2658,7 @@
|
|
|
2657
2658
|
Param["LiveboardHeaderV2"] = "isLiveboardHeaderV2Enabled";
|
|
2658
2659
|
Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
|
|
2659
2660
|
Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
|
|
2661
|
+
Param["OverrideOrgId"] = "orgId";
|
|
2660
2662
|
})(Param || (Param = {}));
|
|
2661
2663
|
/**
|
|
2662
2664
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -4142,17 +4144,17 @@
|
|
|
4142
4144
|
var _Symbol = Symbol$1;
|
|
4143
4145
|
|
|
4144
4146
|
/** Used for built-in method references. */
|
|
4145
|
-
var objectProto$
|
|
4147
|
+
var objectProto$c = Object.prototype;
|
|
4146
4148
|
|
|
4147
4149
|
/** Used to check objects for own properties. */
|
|
4148
|
-
var hasOwnProperty$
|
|
4150
|
+
var hasOwnProperty$a = objectProto$c.hasOwnProperty;
|
|
4149
4151
|
|
|
4150
4152
|
/**
|
|
4151
4153
|
* Used to resolve the
|
|
4152
4154
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
4153
4155
|
* of values.
|
|
4154
4156
|
*/
|
|
4155
|
-
var nativeObjectToString$1 = objectProto$
|
|
4157
|
+
var nativeObjectToString$1 = objectProto$c.toString;
|
|
4156
4158
|
|
|
4157
4159
|
/** Built-in value references. */
|
|
4158
4160
|
var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
|
|
@@ -4165,7 +4167,7 @@
|
|
|
4165
4167
|
* @returns {string} Returns the raw `toStringTag`.
|
|
4166
4168
|
*/
|
|
4167
4169
|
function getRawTag(value) {
|
|
4168
|
-
var isOwn = hasOwnProperty$
|
|
4170
|
+
var isOwn = hasOwnProperty$a.call(value, symToStringTag$1),
|
|
4169
4171
|
tag = value[symToStringTag$1];
|
|
4170
4172
|
|
|
4171
4173
|
try {
|
|
@@ -4187,14 +4189,14 @@
|
|
|
4187
4189
|
var _getRawTag = getRawTag;
|
|
4188
4190
|
|
|
4189
4191
|
/** Used for built-in method references. */
|
|
4190
|
-
var objectProto$
|
|
4192
|
+
var objectProto$b = Object.prototype;
|
|
4191
4193
|
|
|
4192
4194
|
/**
|
|
4193
4195
|
* Used to resolve the
|
|
4194
4196
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
4195
4197
|
* of values.
|
|
4196
4198
|
*/
|
|
4197
|
-
var nativeObjectToString = objectProto$
|
|
4199
|
+
var nativeObjectToString = objectProto$b.toString;
|
|
4198
4200
|
|
|
4199
4201
|
/**
|
|
4200
4202
|
* Converts `value` to a string using `Object.prototype.toString`.
|
|
@@ -4363,17 +4365,17 @@
|
|
|
4363
4365
|
|
|
4364
4366
|
/** Used for built-in method references. */
|
|
4365
4367
|
var funcProto = Function.prototype,
|
|
4366
|
-
objectProto$
|
|
4368
|
+
objectProto$a = Object.prototype;
|
|
4367
4369
|
|
|
4368
4370
|
/** Used to resolve the decompiled source of functions. */
|
|
4369
4371
|
var funcToString = funcProto.toString;
|
|
4370
4372
|
|
|
4371
4373
|
/** Used to check objects for own properties. */
|
|
4372
|
-
var hasOwnProperty$
|
|
4374
|
+
var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
|
|
4373
4375
|
|
|
4374
4376
|
/** Used to detect if a method is native. */
|
|
4375
4377
|
var reIsNative = RegExp('^' +
|
|
4376
|
-
funcToString.call(hasOwnProperty$
|
|
4378
|
+
funcToString.call(hasOwnProperty$9).replace(reRegExpChar, '\\$&')
|
|
4377
4379
|
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
4378
4380
|
);
|
|
4379
4381
|
|
|
@@ -4470,10 +4472,10 @@
|
|
|
4470
4472
|
var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
|
|
4471
4473
|
|
|
4472
4474
|
/** Used for built-in method references. */
|
|
4473
|
-
var objectProto$
|
|
4475
|
+
var objectProto$9 = Object.prototype;
|
|
4474
4476
|
|
|
4475
4477
|
/** Used to check objects for own properties. */
|
|
4476
|
-
var hasOwnProperty$
|
|
4478
|
+
var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
|
|
4477
4479
|
|
|
4478
4480
|
/**
|
|
4479
4481
|
* Gets the hash value for `key`.
|
|
@@ -4490,16 +4492,16 @@
|
|
|
4490
4492
|
var result = data[key];
|
|
4491
4493
|
return result === HASH_UNDEFINED$2 ? undefined : result;
|
|
4492
4494
|
}
|
|
4493
|
-
return hasOwnProperty$
|
|
4495
|
+
return hasOwnProperty$8.call(data, key) ? data[key] : undefined;
|
|
4494
4496
|
}
|
|
4495
4497
|
|
|
4496
4498
|
var _hashGet = hashGet;
|
|
4497
4499
|
|
|
4498
4500
|
/** Used for built-in method references. */
|
|
4499
|
-
var objectProto$
|
|
4501
|
+
var objectProto$8 = Object.prototype;
|
|
4500
4502
|
|
|
4501
4503
|
/** Used to check objects for own properties. */
|
|
4502
|
-
var hasOwnProperty$
|
|
4504
|
+
var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
|
4503
4505
|
|
|
4504
4506
|
/**
|
|
4505
4507
|
* Checks if a hash value for `key` exists.
|
|
@@ -4512,7 +4514,7 @@
|
|
|
4512
4514
|
*/
|
|
4513
4515
|
function hashHas(key) {
|
|
4514
4516
|
var data = this.__data__;
|
|
4515
|
-
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$
|
|
4517
|
+
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$7.call(data, key);
|
|
4516
4518
|
}
|
|
4517
4519
|
|
|
4518
4520
|
var _hashHas = hashHas;
|
|
@@ -4993,10 +4995,10 @@
|
|
|
4993
4995
|
var boolTag$2 = '[object Boolean]',
|
|
4994
4996
|
dateTag$1 = '[object Date]',
|
|
4995
4997
|
errorTag$1 = '[object Error]',
|
|
4996
|
-
mapTag$
|
|
4998
|
+
mapTag$3 = '[object Map]',
|
|
4997
4999
|
numberTag$1 = '[object Number]',
|
|
4998
5000
|
regexpTag$1 = '[object RegExp]',
|
|
4999
|
-
setTag$
|
|
5001
|
+
setTag$3 = '[object Set]',
|
|
5000
5002
|
stringTag$1 = '[object String]',
|
|
5001
5003
|
symbolTag = '[object Symbol]';
|
|
5002
5004
|
|
|
@@ -5058,10 +5060,10 @@
|
|
|
5058
5060
|
// for more details.
|
|
5059
5061
|
return object == (other + '');
|
|
5060
5062
|
|
|
5061
|
-
case mapTag$
|
|
5063
|
+
case mapTag$3:
|
|
5062
5064
|
var convert = _mapToArray;
|
|
5063
5065
|
|
|
5064
|
-
case setTag$
|
|
5066
|
+
case setTag$3:
|
|
5065
5067
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
|
|
5066
5068
|
convert || (convert = _setToArray);
|
|
5067
5069
|
|
|
@@ -5208,10 +5210,10 @@
|
|
|
5208
5210
|
var stubArray_1 = stubArray;
|
|
5209
5211
|
|
|
5210
5212
|
/** Used for built-in method references. */
|
|
5211
|
-
var objectProto$
|
|
5213
|
+
var objectProto$7 = Object.prototype;
|
|
5212
5214
|
|
|
5213
5215
|
/** Built-in value references. */
|
|
5214
|
-
var propertyIsEnumerable$1 = objectProto$
|
|
5216
|
+
var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
|
|
5215
5217
|
|
|
5216
5218
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
5217
5219
|
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
@@ -5303,13 +5305,13 @@
|
|
|
5303
5305
|
var _baseIsArguments = baseIsArguments;
|
|
5304
5306
|
|
|
5305
5307
|
/** Used for built-in method references. */
|
|
5306
|
-
var objectProto$
|
|
5308
|
+
var objectProto$6 = Object.prototype;
|
|
5307
5309
|
|
|
5308
5310
|
/** Used to check objects for own properties. */
|
|
5309
|
-
var hasOwnProperty$
|
|
5311
|
+
var hasOwnProperty$6 = objectProto$6.hasOwnProperty;
|
|
5310
5312
|
|
|
5311
5313
|
/** Built-in value references. */
|
|
5312
|
-
var propertyIsEnumerable = objectProto$
|
|
5314
|
+
var propertyIsEnumerable = objectProto$6.propertyIsEnumerable;
|
|
5313
5315
|
|
|
5314
5316
|
/**
|
|
5315
5317
|
* Checks if `value` is likely an `arguments` object.
|
|
@@ -5330,7 +5332,7 @@
|
|
|
5330
5332
|
* // => false
|
|
5331
5333
|
*/
|
|
5332
5334
|
var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
|
|
5333
|
-
return isObjectLike_1(value) && hasOwnProperty$
|
|
5335
|
+
return isObjectLike_1(value) && hasOwnProperty$6.call(value, 'callee') &&
|
|
5334
5336
|
!propertyIsEnumerable.call(value, 'callee');
|
|
5335
5337
|
};
|
|
5336
5338
|
|
|
@@ -5462,11 +5464,11 @@
|
|
|
5462
5464
|
dateTag = '[object Date]',
|
|
5463
5465
|
errorTag = '[object Error]',
|
|
5464
5466
|
funcTag = '[object Function]',
|
|
5465
|
-
mapTag$
|
|
5467
|
+
mapTag$2 = '[object Map]',
|
|
5466
5468
|
numberTag = '[object Number]',
|
|
5467
5469
|
objectTag$2 = '[object Object]',
|
|
5468
5470
|
regexpTag = '[object RegExp]',
|
|
5469
|
-
setTag$
|
|
5471
|
+
setTag$2 = '[object Set]',
|
|
5470
5472
|
stringTag = '[object String]',
|
|
5471
5473
|
weakMapTag$1 = '[object WeakMap]';
|
|
5472
5474
|
|
|
@@ -5493,9 +5495,9 @@
|
|
|
5493
5495
|
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag$1] =
|
|
5494
5496
|
typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] =
|
|
5495
5497
|
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
|
|
5496
|
-
typedArrayTags[mapTag$
|
|
5498
|
+
typedArrayTags[mapTag$2] = typedArrayTags[numberTag] =
|
|
5497
5499
|
typedArrayTags[objectTag$2] = typedArrayTags[regexpTag] =
|
|
5498
|
-
typedArrayTags[setTag$
|
|
5500
|
+
typedArrayTags[setTag$2] = typedArrayTags[stringTag] =
|
|
5499
5501
|
typedArrayTags[weakMapTag$1] = false;
|
|
5500
5502
|
|
|
5501
5503
|
/**
|
|
@@ -5583,10 +5585,10 @@
|
|
|
5583
5585
|
var isTypedArray_1 = isTypedArray;
|
|
5584
5586
|
|
|
5585
5587
|
/** Used for built-in method references. */
|
|
5586
|
-
var objectProto$
|
|
5588
|
+
var objectProto$5 = Object.prototype;
|
|
5587
5589
|
|
|
5588
5590
|
/** Used to check objects for own properties. */
|
|
5589
|
-
var hasOwnProperty$
|
|
5591
|
+
var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
|
|
5590
5592
|
|
|
5591
5593
|
/**
|
|
5592
5594
|
* Creates an array of the enumerable property names of the array-like `value`.
|
|
@@ -5606,7 +5608,7 @@
|
|
|
5606
5608
|
length = result.length;
|
|
5607
5609
|
|
|
5608
5610
|
for (var key in value) {
|
|
5609
|
-
if ((inherited || hasOwnProperty$
|
|
5611
|
+
if ((inherited || hasOwnProperty$5.call(value, key)) &&
|
|
5610
5612
|
!(skipIndexes && (
|
|
5611
5613
|
// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
5612
5614
|
key == 'length' ||
|
|
@@ -5626,7 +5628,7 @@
|
|
|
5626
5628
|
var _arrayLikeKeys = arrayLikeKeys;
|
|
5627
5629
|
|
|
5628
5630
|
/** Used for built-in method references. */
|
|
5629
|
-
var objectProto$
|
|
5631
|
+
var objectProto$4 = Object.prototype;
|
|
5630
5632
|
|
|
5631
5633
|
/**
|
|
5632
5634
|
* Checks if `value` is likely a prototype object.
|
|
@@ -5637,7 +5639,7 @@
|
|
|
5637
5639
|
*/
|
|
5638
5640
|
function isPrototype(value) {
|
|
5639
5641
|
var Ctor = value && value.constructor,
|
|
5640
|
-
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$
|
|
5642
|
+
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$4;
|
|
5641
5643
|
|
|
5642
5644
|
return value === proto;
|
|
5643
5645
|
}
|
|
@@ -5666,10 +5668,10 @@
|
|
|
5666
5668
|
var _nativeKeys = nativeKeys;
|
|
5667
5669
|
|
|
5668
5670
|
/** Used for built-in method references. */
|
|
5669
|
-
var objectProto$
|
|
5671
|
+
var objectProto$3 = Object.prototype;
|
|
5670
5672
|
|
|
5671
5673
|
/** Used to check objects for own properties. */
|
|
5672
|
-
var hasOwnProperty$
|
|
5674
|
+
var hasOwnProperty$4 = objectProto$3.hasOwnProperty;
|
|
5673
5675
|
|
|
5674
5676
|
/**
|
|
5675
5677
|
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
@@ -5684,7 +5686,7 @@
|
|
|
5684
5686
|
}
|
|
5685
5687
|
var result = [];
|
|
5686
5688
|
for (var key in Object(object)) {
|
|
5687
|
-
if (hasOwnProperty$
|
|
5689
|
+
if (hasOwnProperty$4.call(object, key) && key != 'constructor') {
|
|
5688
5690
|
result.push(key);
|
|
5689
5691
|
}
|
|
5690
5692
|
}
|
|
@@ -5775,10 +5777,10 @@
|
|
|
5775
5777
|
var COMPARE_PARTIAL_FLAG$1 = 1;
|
|
5776
5778
|
|
|
5777
5779
|
/** Used for built-in method references. */
|
|
5778
|
-
var objectProto$
|
|
5780
|
+
var objectProto$2 = Object.prototype;
|
|
5779
5781
|
|
|
5780
5782
|
/** Used to check objects for own properties. */
|
|
5781
|
-
var hasOwnProperty$
|
|
5783
|
+
var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
|
|
5782
5784
|
|
|
5783
5785
|
/**
|
|
5784
5786
|
* A specialized version of `baseIsEqualDeep` for objects with support for
|
|
@@ -5806,7 +5808,7 @@
|
|
|
5806
5808
|
var index = objLength;
|
|
5807
5809
|
while (index--) {
|
|
5808
5810
|
var key = objProps[index];
|
|
5809
|
-
if (!(isPartial ? key in other : hasOwnProperty$
|
|
5811
|
+
if (!(isPartial ? key in other : hasOwnProperty$3.call(other, key))) {
|
|
5810
5812
|
return false;
|
|
5811
5813
|
}
|
|
5812
5814
|
}
|
|
@@ -5881,10 +5883,10 @@
|
|
|
5881
5883
|
var _WeakMap = WeakMap;
|
|
5882
5884
|
|
|
5883
5885
|
/** `Object#toString` result references. */
|
|
5884
|
-
var mapTag = '[object Map]',
|
|
5886
|
+
var mapTag$1 = '[object Map]',
|
|
5885
5887
|
objectTag$1 = '[object Object]',
|
|
5886
5888
|
promiseTag = '[object Promise]',
|
|
5887
|
-
setTag = '[object Set]',
|
|
5889
|
+
setTag$1 = '[object Set]',
|
|
5888
5890
|
weakMapTag = '[object WeakMap]';
|
|
5889
5891
|
|
|
5890
5892
|
var dataViewTag = '[object DataView]';
|
|
@@ -5907,9 +5909,9 @@
|
|
|
5907
5909
|
|
|
5908
5910
|
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
|
5909
5911
|
if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|
5910
|
-
(_Map && getTag(new _Map) != mapTag) ||
|
|
5912
|
+
(_Map && getTag(new _Map) != mapTag$1) ||
|
|
5911
5913
|
(_Promise && getTag(_Promise.resolve()) != promiseTag) ||
|
|
5912
|
-
(_Set && getTag(new _Set) != setTag) ||
|
|
5914
|
+
(_Set && getTag(new _Set) != setTag$1) ||
|
|
5913
5915
|
(_WeakMap && getTag(new _WeakMap) != weakMapTag)) {
|
|
5914
5916
|
getTag = function(value) {
|
|
5915
5917
|
var result = _baseGetTag(value),
|
|
@@ -5919,9 +5921,9 @@
|
|
|
5919
5921
|
if (ctorString) {
|
|
5920
5922
|
switch (ctorString) {
|
|
5921
5923
|
case dataViewCtorString: return dataViewTag;
|
|
5922
|
-
case mapCtorString: return mapTag;
|
|
5924
|
+
case mapCtorString: return mapTag$1;
|
|
5923
5925
|
case promiseCtorString: return promiseTag;
|
|
5924
|
-
case setCtorString: return setTag;
|
|
5926
|
+
case setCtorString: return setTag$1;
|
|
5925
5927
|
case weakMapCtorString: return weakMapTag;
|
|
5926
5928
|
}
|
|
5927
5929
|
}
|
|
@@ -5940,10 +5942,10 @@
|
|
|
5940
5942
|
objectTag = '[object Object]';
|
|
5941
5943
|
|
|
5942
5944
|
/** Used for built-in method references. */
|
|
5943
|
-
var objectProto = Object.prototype;
|
|
5945
|
+
var objectProto$1 = Object.prototype;
|
|
5944
5946
|
|
|
5945
5947
|
/** Used to check objects for own properties. */
|
|
5946
|
-
var hasOwnProperty$
|
|
5948
|
+
var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
|
|
5947
5949
|
|
|
5948
5950
|
/**
|
|
5949
5951
|
* A specialized version of `baseIsEqual` for arrays and objects which performs
|
|
@@ -5986,8 +5988,8 @@
|
|
|
5986
5988
|
: _equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
5987
5989
|
}
|
|
5988
5990
|
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
5989
|
-
var objIsWrapped = objIsObj && hasOwnProperty$
|
|
5990
|
-
othIsWrapped = othIsObj && hasOwnProperty$
|
|
5991
|
+
var objIsWrapped = objIsObj && hasOwnProperty$2.call(object, '__wrapped__'),
|
|
5992
|
+
othIsWrapped = othIsObj && hasOwnProperty$2.call(other, '__wrapped__');
|
|
5991
5993
|
|
|
5992
5994
|
if (objIsWrapped || othIsWrapped) {
|
|
5993
5995
|
var objUnwrapped = objIsWrapped ? object.value() : object,
|
|
@@ -6066,6 +6068,75 @@
|
|
|
6066
6068
|
|
|
6067
6069
|
var isEqual_1 = isEqual;
|
|
6068
6070
|
|
|
6071
|
+
/** `Object#toString` result references. */
|
|
6072
|
+
var mapTag = '[object Map]',
|
|
6073
|
+
setTag = '[object Set]';
|
|
6074
|
+
|
|
6075
|
+
/** Used for built-in method references. */
|
|
6076
|
+
var objectProto = Object.prototype;
|
|
6077
|
+
|
|
6078
|
+
/** Used to check objects for own properties. */
|
|
6079
|
+
var hasOwnProperty$1 = objectProto.hasOwnProperty;
|
|
6080
|
+
|
|
6081
|
+
/**
|
|
6082
|
+
* Checks if `value` is an empty object, collection, map, or set.
|
|
6083
|
+
*
|
|
6084
|
+
* Objects are considered empty if they have no own enumerable string keyed
|
|
6085
|
+
* properties.
|
|
6086
|
+
*
|
|
6087
|
+
* Array-like values such as `arguments` objects, arrays, buffers, strings, or
|
|
6088
|
+
* jQuery-like collections are considered empty if they have a `length` of `0`.
|
|
6089
|
+
* Similarly, maps and sets are considered empty if they have a `size` of `0`.
|
|
6090
|
+
*
|
|
6091
|
+
* @static
|
|
6092
|
+
* @memberOf _
|
|
6093
|
+
* @since 0.1.0
|
|
6094
|
+
* @category Lang
|
|
6095
|
+
* @param {*} value The value to check.
|
|
6096
|
+
* @returns {boolean} Returns `true` if `value` is empty, else `false`.
|
|
6097
|
+
* @example
|
|
6098
|
+
*
|
|
6099
|
+
* _.isEmpty(null);
|
|
6100
|
+
* // => true
|
|
6101
|
+
*
|
|
6102
|
+
* _.isEmpty(true);
|
|
6103
|
+
* // => true
|
|
6104
|
+
*
|
|
6105
|
+
* _.isEmpty(1);
|
|
6106
|
+
* // => true
|
|
6107
|
+
*
|
|
6108
|
+
* _.isEmpty([1, 2, 3]);
|
|
6109
|
+
* // => false
|
|
6110
|
+
*
|
|
6111
|
+
* _.isEmpty({ 'a': 1 });
|
|
6112
|
+
* // => false
|
|
6113
|
+
*/
|
|
6114
|
+
function isEmpty$1(value) {
|
|
6115
|
+
if (value == null) {
|
|
6116
|
+
return true;
|
|
6117
|
+
}
|
|
6118
|
+
if (isArrayLike_1(value) &&
|
|
6119
|
+
(isArray_1(value) || typeof value == 'string' || typeof value.splice == 'function' ||
|
|
6120
|
+
isBuffer_1(value) || isTypedArray_1(value) || isArguments_1(value))) {
|
|
6121
|
+
return !value.length;
|
|
6122
|
+
}
|
|
6123
|
+
var tag = _getTag(value);
|
|
6124
|
+
if (tag == mapTag || tag == setTag) {
|
|
6125
|
+
return !value.size;
|
|
6126
|
+
}
|
|
6127
|
+
if (_isPrototype(value)) {
|
|
6128
|
+
return !_baseKeys(value).length;
|
|
6129
|
+
}
|
|
6130
|
+
for (var key in value) {
|
|
6131
|
+
if (hasOwnProperty$1.call(value, key)) {
|
|
6132
|
+
return false;
|
|
6133
|
+
}
|
|
6134
|
+
}
|
|
6135
|
+
return true;
|
|
6136
|
+
}
|
|
6137
|
+
|
|
6138
|
+
var isEmpty_1 = isEmpty$1;
|
|
6139
|
+
|
|
6069
6140
|
const ERROR_MESSAGE = {
|
|
6070
6141
|
INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
|
|
6071
6142
|
SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND: 'Please select a worksheet to get started',
|
|
@@ -14209,10 +14280,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14209
14280
|
return authPromise;
|
|
14210
14281
|
};
|
|
14211
14282
|
const hostUrlToFeatureUrl = {
|
|
14212
|
-
[exports.PrefetchFeatures.SearchEmbed]: (url) => `${url}v2
|
|
14213
|
-
[exports.PrefetchFeatures.LiveboardEmbed]: (url) => url
|
|
14214
|
-
[exports.PrefetchFeatures.FullApp]: (url) => url
|
|
14215
|
-
[exports.PrefetchFeatures.VizEmbed]: (url) => url
|
|
14283
|
+
[exports.PrefetchFeatures.SearchEmbed]: (url, flags) => `${url}v2/?${flags}#/embed/answer`,
|
|
14284
|
+
[exports.PrefetchFeatures.LiveboardEmbed]: (url, flags) => `${url}?${flags}`,
|
|
14285
|
+
[exports.PrefetchFeatures.FullApp]: (url, flags) => `${url}?${flags}`,
|
|
14286
|
+
[exports.PrefetchFeatures.VizEmbed]: (url, flags) => `${url}?${flags}`,
|
|
14216
14287
|
};
|
|
14217
14288
|
/**
|
|
14218
14289
|
* Prefetches static resources from the specified URL. Web browsers can then cache the
|
|
@@ -14220,10 +14291,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14220
14291
|
* to your app.
|
|
14221
14292
|
* @param url The URL provided for prefetch
|
|
14222
14293
|
* @param prefetchFeatures Specify features which needs to be prefetched.
|
|
14294
|
+
* @param additionalFlags This can be used to add any URL flag.
|
|
14223
14295
|
* @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 7.2.1
|
|
14224
14296
|
* @group Global methods
|
|
14225
14297
|
*/
|
|
14226
|
-
const prefetch = (url, prefetchFeatures) => {
|
|
14298
|
+
const prefetch = (url, prefetchFeatures, additionalFlags) => {
|
|
14299
|
+
var _a;
|
|
14227
14300
|
if (url === '') {
|
|
14228
14301
|
// eslint-disable-next-line no-console
|
|
14229
14302
|
logger$3.warn('The prefetch method does not have a valid URL');
|
|
@@ -14231,9 +14304,14 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14231
14304
|
else {
|
|
14232
14305
|
const features = prefetchFeatures || [exports.PrefetchFeatures.FullApp];
|
|
14233
14306
|
let hostUrl = url || getEmbedConfig().thoughtSpotHost;
|
|
14307
|
+
const prefetchFlags = {
|
|
14308
|
+
[Param.EmbedApp]: true,
|
|
14309
|
+
...(_a = getEmbedConfig()) === null || _a === void 0 ? void 0 : _a.additionalFlags,
|
|
14310
|
+
...additionalFlags,
|
|
14311
|
+
};
|
|
14234
14312
|
hostUrl = hostUrl[hostUrl.length - 1] === '/' ? hostUrl : `${hostUrl}/`;
|
|
14235
14313
|
Array.from(new Set(features
|
|
14236
|
-
.map((feature) => hostUrlToFeatureUrl[feature](hostUrl))))
|
|
14314
|
+
.map((feature) => hostUrlToFeatureUrl[feature](hostUrl, getQueryParamString(prefetchFlags)))))
|
|
14237
14315
|
.forEach((prefetchUrl, index) => {
|
|
14238
14316
|
const iFrame = document.createElement('iframe');
|
|
14239
14317
|
iFrame.src = prefetchUrl;
|
|
@@ -14636,7 +14714,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14636
14714
|
});
|
|
14637
14715
|
}
|
|
14638
14716
|
|
|
14639
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.
|
|
14717
|
+
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$1={".":{"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$1,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};
|
|
14640
14718
|
|
|
14641
14719
|
/**
|
|
14642
14720
|
* Copyright (c) 2022
|
|
@@ -14915,6 +14993,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14915
14993
|
if (hostAppUrl.includes('localhost') || hostAppUrl.includes('127.0.0.1')) {
|
|
14916
14994
|
hostAppUrl = 'local-host';
|
|
14917
14995
|
}
|
|
14996
|
+
queryParams[Param.EmbedApp] = true;
|
|
14918
14997
|
queryParams[Param.HostAppUrl] = encodeURIComponent(hostAppUrl);
|
|
14919
14998
|
queryParams[Param.ViewPortHeight] = window.innerHeight;
|
|
14920
14999
|
queryParams[Param.ViewPortWidth] = window.innerWidth;
|
|
@@ -14942,7 +15021,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14942
15021
|
if (this.embedConfig.currencyFormat) {
|
|
14943
15022
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
14944
15023
|
}
|
|
14945
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, } = this.viewConfig;
|
|
15024
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, } = this.viewConfig;
|
|
15025
|
+
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
15026
|
+
const additionalFlags = {
|
|
15027
|
+
...additionalFlagsFromInit,
|
|
15028
|
+
...additionalFlagsFromView,
|
|
15029
|
+
};
|
|
14946
15030
|
if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
|
|
14947
15031
|
this.handleError('You cannot have both hidden actions and visible actions');
|
|
14948
15032
|
return queryParams;
|
|
@@ -14998,9 +15082,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14998
15082
|
if (disableRedirectionLinksInNewTab) {
|
|
14999
15083
|
queryParams[Param.DisableRedirectionLinksInNewTab] = disableRedirectionLinksInNewTab;
|
|
15000
15084
|
}
|
|
15085
|
+
if (overrideOrgId !== undefined) {
|
|
15086
|
+
queryParams[Param.OverrideOrgId] = overrideOrgId;
|
|
15087
|
+
}
|
|
15001
15088
|
queryParams[Param.OverrideNativeConsole] = true;
|
|
15002
15089
|
queryParams[Param.ClientLogLevel] = this.embedConfig.logLevel;
|
|
15003
|
-
if (additionalFlags && additionalFlags
|
|
15090
|
+
if (isObject_1(additionalFlags) && !isEmpty_1(additionalFlags)) {
|
|
15004
15091
|
Object.assign(queryParams, additionalFlags);
|
|
15005
15092
|
}
|
|
15006
15093
|
// Do not add any flags below this, as we want additional flags to
|
|
@@ -15784,7 +15871,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15784
15871
|
/* eslint-disable-next-line max-len */
|
|
15785
15872
|
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, } = this.viewConfig;
|
|
15786
15873
|
let params = {};
|
|
15787
|
-
params[Param.EmbedApp] = true;
|
|
15788
15874
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
15789
15875
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
15790
15876
|
params[Param.HideApplicationSwitcher] = !!hideApplicationSwitcher;
|
|
@@ -16074,7 +16160,6 @@ query GetEurekaVizSnapshots(
|
|
|
16074
16160
|
*/
|
|
16075
16161
|
getEmbedParams() {
|
|
16076
16162
|
let params = {};
|
|
16077
|
-
params[Param.EmbedApp] = true;
|
|
16078
16163
|
params = this.getBaseQueryParams(params);
|
|
16079
16164
|
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;
|
|
16080
16165
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
@@ -16904,6 +16989,19 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
16904
16989
|
/**
|
|
16905
16990
|
* Create a conversation embed, which can be integrated inside
|
|
16906
16991
|
* chatbots or other conversational interfaces.
|
|
16992
|
+
* @example
|
|
16993
|
+
* ```js
|
|
16994
|
+
* import { BodylessConversation } from '@thoughtspot/visual-embed-sdk';
|
|
16995
|
+
*
|
|
16996
|
+
* const conversation = new BodylessConversation({
|
|
16997
|
+
* worksheetId: 'worksheetId',
|
|
16998
|
+
* });
|
|
16999
|
+
*
|
|
17000
|
+
* const { container, error } = await conversation.sendMessage('show me sales by region');
|
|
17001
|
+
*
|
|
17002
|
+
* // append the container to the DOM
|
|
17003
|
+
* document.body.appendChild(container); // or to any other element
|
|
17004
|
+
* ```
|
|
16907
17005
|
* @group Embed components
|
|
16908
17006
|
* @version SDK: 1.33.1 | ThoughtSpot: 10.5.0.cl
|
|
16909
17007
|
*/
|
|
@@ -17004,7 +17102,6 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
17004
17102
|
getEmbedParams() {
|
|
17005
17103
|
const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
|
|
17006
17104
|
const params = this.getBaseQueryParams();
|
|
17007
|
-
params[Param.EmbedApp] = true;
|
|
17008
17105
|
params[Param.IsSageEmbed] = true;
|
|
17009
17106
|
params[Param.DisableWorksheetChange] = !!disableWorksheetChange;
|
|
17010
17107
|
params[Param.HideWorksheetSelector] = !!hideWorksheetSelector;
|