@thoughtspot/visual-embed-sdk 1.33.4 → 1.33.6

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.
Files changed (122) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/config.d.ts.map +1 -1
  3. package/cjs/src/config.js.map +1 -1
  4. package/cjs/src/embed/app.d.ts +14 -0
  5. package/cjs/src/embed/app.d.ts.map +1 -1
  6. package/cjs/src/embed/app.js +2 -2
  7. package/cjs/src/embed/app.js.map +1 -1
  8. package/cjs/src/embed/app.spec.js +10 -0
  9. package/cjs/src/embed/app.spec.js.map +1 -1
  10. package/cjs/src/embed/base.d.ts +4 -1
  11. package/cjs/src/embed/base.d.ts.map +1 -1
  12. package/cjs/src/embed/base.js +14 -6
  13. package/cjs/src/embed/base.js.map +1 -1
  14. package/cjs/src/embed/base.spec.js +45 -3
  15. package/cjs/src/embed/base.spec.js.map +1 -1
  16. package/cjs/src/embed/bodyless-conversation.d.ts +17 -0
  17. package/cjs/src/embed/bodyless-conversation.d.ts.map +1 -1
  18. package/cjs/src/embed/bodyless-conversation.js +14 -0
  19. package/cjs/src/embed/bodyless-conversation.js.map +1 -1
  20. package/cjs/src/embed/conversation.d.ts.map +1 -1
  21. package/cjs/src/embed/conversation.js +1 -0
  22. package/cjs/src/embed/conversation.js.map +1 -1
  23. package/cjs/src/embed/liveboard.d.ts +14 -0
  24. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  25. package/cjs/src/embed/liveboard.js +2 -2
  26. package/cjs/src/embed/liveboard.js.map +1 -1
  27. package/cjs/src/embed/liveboard.spec.js +11 -0
  28. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  29. package/cjs/src/embed/sage.d.ts.map +1 -1
  30. package/cjs/src/embed/sage.js +0 -1
  31. package/cjs/src/embed/sage.js.map +1 -1
  32. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  33. package/cjs/src/embed/ts-embed.js +13 -2
  34. package/cjs/src/embed/ts-embed.js.map +1 -1
  35. package/cjs/src/embed/ts-embed.spec.js +40 -0
  36. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  37. package/cjs/src/react/index.spec.js +2 -2
  38. package/cjs/src/react/index.spec.js.map +1 -1
  39. package/cjs/src/types.d.ts +54 -6
  40. package/cjs/src/types.d.ts.map +1 -1
  41. package/cjs/src/types.js +15 -3
  42. package/cjs/src/types.js.map +1 -1
  43. package/dist/{index-Cl8Rsh6W.js → index-CbltIawo.js} +1 -1
  44. package/dist/src/config.d.ts.map +1 -1
  45. package/dist/src/embed/app.d.ts +14 -0
  46. package/dist/src/embed/app.d.ts.map +1 -1
  47. package/dist/src/embed/base.d.ts +4 -1
  48. package/dist/src/embed/base.d.ts.map +1 -1
  49. package/dist/src/embed/bodyless-conversation.d.ts +17 -0
  50. package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
  51. package/dist/src/embed/conversation.d.ts.map +1 -1
  52. package/dist/src/embed/liveboard.d.ts +14 -0
  53. package/dist/src/embed/liveboard.d.ts.map +1 -1
  54. package/dist/src/embed/sage.d.ts.map +1 -1
  55. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  56. package/dist/src/types.d.ts +54 -6
  57. package/dist/src/types.d.ts.map +1 -1
  58. package/dist/tsembed-react.es.js +157 -67
  59. package/dist/tsembed-react.js +156 -66
  60. package/dist/tsembed.es.js +180 -69
  61. package/dist/tsembed.js +179 -68
  62. package/dist/visual-embed-sdk-react-full.d.ts +103 -7
  63. package/dist/visual-embed-sdk-react.d.ts +103 -7
  64. package/dist/visual-embed-sdk.d.ts +103 -7
  65. package/lib/package.json +1 -1
  66. package/lib/src/config.d.ts.map +1 -1
  67. package/lib/src/config.js.map +1 -1
  68. package/lib/src/embed/app.d.ts +14 -0
  69. package/lib/src/embed/app.d.ts.map +1 -1
  70. package/lib/src/embed/app.js +2 -2
  71. package/lib/src/embed/app.js.map +1 -1
  72. package/lib/src/embed/app.spec.js +10 -0
  73. package/lib/src/embed/app.spec.js.map +1 -1
  74. package/lib/src/embed/base.d.ts +4 -1
  75. package/lib/src/embed/base.d.ts.map +1 -1
  76. package/lib/src/embed/base.js +15 -7
  77. package/lib/src/embed/base.js.map +1 -1
  78. package/lib/src/embed/base.spec.js +45 -3
  79. package/lib/src/embed/base.spec.js.map +1 -1
  80. package/lib/src/embed/bodyless-conversation.d.ts +17 -0
  81. package/lib/src/embed/bodyless-conversation.d.ts.map +1 -1
  82. package/lib/src/embed/bodyless-conversation.js +14 -0
  83. package/lib/src/embed/bodyless-conversation.js.map +1 -1
  84. package/lib/src/embed/conversation.d.ts.map +1 -1
  85. package/lib/src/embed/conversation.js +1 -0
  86. package/lib/src/embed/conversation.js.map +1 -1
  87. package/lib/src/embed/liveboard.d.ts +14 -0
  88. package/lib/src/embed/liveboard.d.ts.map +1 -1
  89. package/lib/src/embed/liveboard.js +2 -2
  90. package/lib/src/embed/liveboard.js.map +1 -1
  91. package/lib/src/embed/liveboard.spec.js +11 -0
  92. package/lib/src/embed/liveboard.spec.js.map +1 -1
  93. package/lib/src/embed/sage.d.ts.map +1 -1
  94. package/lib/src/embed/sage.js +0 -1
  95. package/lib/src/embed/sage.js.map +1 -1
  96. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  97. package/lib/src/embed/ts-embed.js +13 -2
  98. package/lib/src/embed/ts-embed.js.map +1 -1
  99. package/lib/src/embed/ts-embed.spec.js +41 -1
  100. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  101. package/lib/src/react/index.spec.js +2 -2
  102. package/lib/src/react/index.spec.js.map +1 -1
  103. package/lib/src/types.d.ts +54 -6
  104. package/lib/src/types.d.ts.map +1 -1
  105. package/lib/src/types.js +15 -3
  106. package/lib/src/types.js.map +1 -1
  107. package/lib/src/visual-embed-sdk.d.ts +103 -7
  108. package/package.json +1 -1
  109. package/src/config.ts +0 -1
  110. package/src/embed/app.spec.ts +15 -0
  111. package/src/embed/app.ts +16 -1
  112. package/src/embed/base.spec.ts +48 -3
  113. package/src/embed/base.ts +21 -7
  114. package/src/embed/bodyless-conversation.ts +18 -0
  115. package/src/embed/conversation.ts +1 -0
  116. package/src/embed/liveboard.spec.ts +16 -0
  117. package/src/embed/liveboard.ts +16 -1
  118. package/src/embed/sage.ts +0 -1
  119. package/src/embed/ts-embed.spec.ts +47 -0
  120. package/src/embed/ts-embed.ts +16 -2
  121. package/src/react/index.spec.tsx +2 -2
  122. package/src/types.ts +51 -4
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.33.4 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.33.6 */
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, see
2358
- * link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported data types].
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
  *
@@ -2649,8 +2650,10 @@ var Param;
2649
2650
  Param["ShowLiveboardVerifiedBadge"] = "showLiveboardVerifiedBadge";
2650
2651
  Param["ShowLiveboardReverifyBanner"] = "showLiveboardReverifyBanner";
2651
2652
  Param["LiveboardHeaderV2"] = "isLiveboardHeaderV2Enabled";
2653
+ Param["HideIrrelevantFiltersInTab"] = "hideIrrelevantFiltersAtTabLevel";
2652
2654
  Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
2653
2655
  Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
2656
+ Param["OverrideOrgId"] = "orgId";
2654
2657
  })(Param || (Param = {}));
2655
2658
  /**
2656
2659
  * ThoughtSpot application pages include actions and menu commands
@@ -3693,6 +3696,15 @@ var Action;
3693
3696
  * @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
3694
3697
  */
3695
3698
  Action["DisableChipReorder"] = "disableChipReorder";
3699
+ /**
3700
+ * Action ID for Hide Irrelevant filters button
3701
+ * @example
3702
+ * ```js
3703
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
3704
+ * ```
3705
+ * @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
3706
+ */
3707
+ Action["ChangeFilterVisibilityInTab"] = "changeFilterVisibilityInTab";
3696
3708
  })(Action || (Action = {}));
3697
3709
  var PrefetchFeatures;
3698
3710
  (function (PrefetchFeatures) {
@@ -4136,17 +4148,17 @@ var Symbol = _root.Symbol;
4136
4148
  var _Symbol = Symbol;
4137
4149
 
4138
4150
  /** Used for built-in method references. */
4139
- var objectProto$b = Object.prototype;
4151
+ var objectProto$c = Object.prototype;
4140
4152
 
4141
4153
  /** Used to check objects for own properties. */
4142
- var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
4154
+ var hasOwnProperty$a = objectProto$c.hasOwnProperty;
4143
4155
 
4144
4156
  /**
4145
4157
  * Used to resolve the
4146
4158
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
4147
4159
  * of values.
4148
4160
  */
4149
- var nativeObjectToString$1 = objectProto$b.toString;
4161
+ var nativeObjectToString$1 = objectProto$c.toString;
4150
4162
 
4151
4163
  /** Built-in value references. */
4152
4164
  var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
@@ -4159,7 +4171,7 @@ var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
4159
4171
  * @returns {string} Returns the raw `toStringTag`.
4160
4172
  */
4161
4173
  function getRawTag(value) {
4162
- var isOwn = hasOwnProperty$9.call(value, symToStringTag$1),
4174
+ var isOwn = hasOwnProperty$a.call(value, symToStringTag$1),
4163
4175
  tag = value[symToStringTag$1];
4164
4176
 
4165
4177
  try {
@@ -4181,14 +4193,14 @@ function getRawTag(value) {
4181
4193
  var _getRawTag = getRawTag;
4182
4194
 
4183
4195
  /** Used for built-in method references. */
4184
- var objectProto$a = Object.prototype;
4196
+ var objectProto$b = Object.prototype;
4185
4197
 
4186
4198
  /**
4187
4199
  * Used to resolve the
4188
4200
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
4189
4201
  * of values.
4190
4202
  */
4191
- var nativeObjectToString = objectProto$a.toString;
4203
+ var nativeObjectToString = objectProto$b.toString;
4192
4204
 
4193
4205
  /**
4194
4206
  * Converts `value` to a string using `Object.prototype.toString`.
@@ -4357,17 +4369,17 @@ var reIsHostCtor = /^\[object .+?Constructor\]$/;
4357
4369
 
4358
4370
  /** Used for built-in method references. */
4359
4371
  var funcProto = Function.prototype,
4360
- objectProto$9 = Object.prototype;
4372
+ objectProto$a = Object.prototype;
4361
4373
 
4362
4374
  /** Used to resolve the decompiled source of functions. */
4363
4375
  var funcToString = funcProto.toString;
4364
4376
 
4365
4377
  /** Used to check objects for own properties. */
4366
- var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
4378
+ var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
4367
4379
 
4368
4380
  /** Used to detect if a method is native. */
4369
4381
  var reIsNative = RegExp('^' +
4370
- funcToString.call(hasOwnProperty$8).replace(reRegExpChar, '\\$&')
4382
+ funcToString.call(hasOwnProperty$9).replace(reRegExpChar, '\\$&')
4371
4383
  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
4372
4384
  );
4373
4385
 
@@ -4464,10 +4476,10 @@ var _hashDelete = hashDelete;
4464
4476
  var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
4465
4477
 
4466
4478
  /** Used for built-in method references. */
4467
- var objectProto$8 = Object.prototype;
4479
+ var objectProto$9 = Object.prototype;
4468
4480
 
4469
4481
  /** Used to check objects for own properties. */
4470
- var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
4482
+ var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
4471
4483
 
4472
4484
  /**
4473
4485
  * Gets the hash value for `key`.
@@ -4484,16 +4496,16 @@ function hashGet(key) {
4484
4496
  var result = data[key];
4485
4497
  return result === HASH_UNDEFINED$2 ? undefined : result;
4486
4498
  }
4487
- return hasOwnProperty$7.call(data, key) ? data[key] : undefined;
4499
+ return hasOwnProperty$8.call(data, key) ? data[key] : undefined;
4488
4500
  }
4489
4501
 
4490
4502
  var _hashGet = hashGet;
4491
4503
 
4492
4504
  /** Used for built-in method references. */
4493
- var objectProto$7 = Object.prototype;
4505
+ var objectProto$8 = Object.prototype;
4494
4506
 
4495
4507
  /** Used to check objects for own properties. */
4496
- var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
4508
+ var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
4497
4509
 
4498
4510
  /**
4499
4511
  * Checks if a hash value for `key` exists.
@@ -4506,7 +4518,7 @@ var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
4506
4518
  */
4507
4519
  function hashHas(key) {
4508
4520
  var data = this.__data__;
4509
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$6.call(data, key);
4521
+ return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$7.call(data, key);
4510
4522
  }
4511
4523
 
4512
4524
  var _hashHas = hashHas;
@@ -4987,10 +4999,10 @@ var COMPARE_PARTIAL_FLAG$2 = 1,
4987
4999
  var boolTag$1 = '[object Boolean]',
4988
5000
  dateTag$1 = '[object Date]',
4989
5001
  errorTag$1 = '[object Error]',
4990
- mapTag$2 = '[object Map]',
5002
+ mapTag$3 = '[object Map]',
4991
5003
  numberTag$1 = '[object Number]',
4992
5004
  regexpTag$1 = '[object RegExp]',
4993
- setTag$2 = '[object Set]',
5005
+ setTag$3 = '[object Set]',
4994
5006
  stringTag$1 = '[object String]',
4995
5007
  symbolTag = '[object Symbol]';
4996
5008
 
@@ -5052,10 +5064,10 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
5052
5064
  // for more details.
5053
5065
  return object == (other + '');
5054
5066
 
5055
- case mapTag$2:
5067
+ case mapTag$3:
5056
5068
  var convert = _mapToArray;
5057
5069
 
5058
- case setTag$2:
5070
+ case setTag$3:
5059
5071
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
5060
5072
  convert || (convert = _setToArray);
5061
5073
 
@@ -5202,10 +5214,10 @@ function stubArray() {
5202
5214
  var stubArray_1 = stubArray;
5203
5215
 
5204
5216
  /** Used for built-in method references. */
5205
- var objectProto$6 = Object.prototype;
5217
+ var objectProto$7 = Object.prototype;
5206
5218
 
5207
5219
  /** Built-in value references. */
5208
- var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
5220
+ var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
5209
5221
 
5210
5222
  /* Built-in method references for those with the same name as other `lodash` methods. */
5211
5223
  var nativeGetSymbols = Object.getOwnPropertySymbols;
@@ -5297,13 +5309,13 @@ function baseIsArguments(value) {
5297
5309
  var _baseIsArguments = baseIsArguments;
5298
5310
 
5299
5311
  /** Used for built-in method references. */
5300
- var objectProto$5 = Object.prototype;
5312
+ var objectProto$6 = Object.prototype;
5301
5313
 
5302
5314
  /** Used to check objects for own properties. */
5303
- var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
5315
+ var hasOwnProperty$6 = objectProto$6.hasOwnProperty;
5304
5316
 
5305
5317
  /** Built-in value references. */
5306
- var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
5318
+ var propertyIsEnumerable = objectProto$6.propertyIsEnumerable;
5307
5319
 
5308
5320
  /**
5309
5321
  * Checks if `value` is likely an `arguments` object.
@@ -5324,7 +5336,7 @@ var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
5324
5336
  * // => false
5325
5337
  */
5326
5338
  var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
5327
- return isObjectLike_1(value) && hasOwnProperty$5.call(value, 'callee') &&
5339
+ return isObjectLike_1(value) && hasOwnProperty$6.call(value, 'callee') &&
5328
5340
  !propertyIsEnumerable.call(value, 'callee');
5329
5341
  };
5330
5342
 
@@ -5456,11 +5468,11 @@ var argsTag$1 = '[object Arguments]',
5456
5468
  dateTag = '[object Date]',
5457
5469
  errorTag = '[object Error]',
5458
5470
  funcTag = '[object Function]',
5459
- mapTag$1 = '[object Map]',
5471
+ mapTag$2 = '[object Map]',
5460
5472
  numberTag = '[object Number]',
5461
5473
  objectTag$2 = '[object Object]',
5462
5474
  regexpTag = '[object RegExp]',
5463
- setTag$1 = '[object Set]',
5475
+ setTag$2 = '[object Set]',
5464
5476
  stringTag = '[object String]',
5465
5477
  weakMapTag$1 = '[object WeakMap]';
5466
5478
 
@@ -5487,9 +5499,9 @@ typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
5487
5499
  typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
5488
5500
  typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] =
5489
5501
  typedArrayTags[errorTag] = typedArrayTags[funcTag] =
5490
- typedArrayTags[mapTag$1] = typedArrayTags[numberTag] =
5502
+ typedArrayTags[mapTag$2] = typedArrayTags[numberTag] =
5491
5503
  typedArrayTags[objectTag$2] = typedArrayTags[regexpTag] =
5492
- typedArrayTags[setTag$1] = typedArrayTags[stringTag] =
5504
+ typedArrayTags[setTag$2] = typedArrayTags[stringTag] =
5493
5505
  typedArrayTags[weakMapTag$1] = false;
5494
5506
 
5495
5507
  /**
@@ -5577,10 +5589,10 @@ var isTypedArray = nodeIsTypedArray ? _baseUnary(nodeIsTypedArray) : _baseIsType
5577
5589
  var isTypedArray_1 = isTypedArray;
5578
5590
 
5579
5591
  /** Used for built-in method references. */
5580
- var objectProto$4 = Object.prototype;
5592
+ var objectProto$5 = Object.prototype;
5581
5593
 
5582
5594
  /** Used to check objects for own properties. */
5583
- var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
5595
+ var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
5584
5596
 
5585
5597
  /**
5586
5598
  * Creates an array of the enumerable property names of the array-like `value`.
@@ -5600,7 +5612,7 @@ function arrayLikeKeys(value, inherited) {
5600
5612
  length = result.length;
5601
5613
 
5602
5614
  for (var key in value) {
5603
- if ((inherited || hasOwnProperty$4.call(value, key)) &&
5615
+ if ((inherited || hasOwnProperty$5.call(value, key)) &&
5604
5616
  !(skipIndexes && (
5605
5617
  // Safari 9 has enumerable `arguments.length` in strict mode.
5606
5618
  key == 'length' ||
@@ -5620,7 +5632,7 @@ function arrayLikeKeys(value, inherited) {
5620
5632
  var _arrayLikeKeys = arrayLikeKeys;
5621
5633
 
5622
5634
  /** Used for built-in method references. */
5623
- var objectProto$3 = Object.prototype;
5635
+ var objectProto$4 = Object.prototype;
5624
5636
 
5625
5637
  /**
5626
5638
  * Checks if `value` is likely a prototype object.
@@ -5631,7 +5643,7 @@ var objectProto$3 = Object.prototype;
5631
5643
  */
5632
5644
  function isPrototype(value) {
5633
5645
  var Ctor = value && value.constructor,
5634
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$3;
5646
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$4;
5635
5647
 
5636
5648
  return value === proto;
5637
5649
  }
@@ -5660,10 +5672,10 @@ var nativeKeys = _overArg(Object.keys, Object);
5660
5672
  var _nativeKeys = nativeKeys;
5661
5673
 
5662
5674
  /** Used for built-in method references. */
5663
- var objectProto$2 = Object.prototype;
5675
+ var objectProto$3 = Object.prototype;
5664
5676
 
5665
5677
  /** Used to check objects for own properties. */
5666
- var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
5678
+ var hasOwnProperty$4 = objectProto$3.hasOwnProperty;
5667
5679
 
5668
5680
  /**
5669
5681
  * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
@@ -5678,7 +5690,7 @@ function baseKeys(object) {
5678
5690
  }
5679
5691
  var result = [];
5680
5692
  for (var key in Object(object)) {
5681
- if (hasOwnProperty$3.call(object, key) && key != 'constructor') {
5693
+ if (hasOwnProperty$4.call(object, key) && key != 'constructor') {
5682
5694
  result.push(key);
5683
5695
  }
5684
5696
  }
@@ -5769,10 +5781,10 @@ var _getAllKeys = getAllKeys;
5769
5781
  var COMPARE_PARTIAL_FLAG$1 = 1;
5770
5782
 
5771
5783
  /** Used for built-in method references. */
5772
- var objectProto$1 = Object.prototype;
5784
+ var objectProto$2 = Object.prototype;
5773
5785
 
5774
5786
  /** Used to check objects for own properties. */
5775
- var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
5787
+ var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
5776
5788
 
5777
5789
  /**
5778
5790
  * A specialized version of `baseIsEqualDeep` for objects with support for
@@ -5800,7 +5812,7 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
5800
5812
  var index = objLength;
5801
5813
  while (index--) {
5802
5814
  var key = objProps[index];
5803
- if (!(isPartial ? key in other : hasOwnProperty$2.call(other, key))) {
5815
+ if (!(isPartial ? key in other : hasOwnProperty$3.call(other, key))) {
5804
5816
  return false;
5805
5817
  }
5806
5818
  }
@@ -5875,10 +5887,10 @@ var WeakMap = _getNative(_root, 'WeakMap');
5875
5887
  var _WeakMap = WeakMap;
5876
5888
 
5877
5889
  /** `Object#toString` result references. */
5878
- var mapTag = '[object Map]',
5890
+ var mapTag$1 = '[object Map]',
5879
5891
  objectTag$1 = '[object Object]',
5880
5892
  promiseTag = '[object Promise]',
5881
- setTag = '[object Set]',
5893
+ setTag$1 = '[object Set]',
5882
5894
  weakMapTag = '[object WeakMap]';
5883
5895
 
5884
5896
  var dataViewTag = '[object DataView]';
@@ -5901,9 +5913,9 @@ var getTag = _baseGetTag;
5901
5913
 
5902
5914
  // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
5903
5915
  if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag) ||
5904
- (_Map && getTag(new _Map) != mapTag) ||
5916
+ (_Map && getTag(new _Map) != mapTag$1) ||
5905
5917
  (_Promise && getTag(_Promise.resolve()) != promiseTag) ||
5906
- (_Set && getTag(new _Set) != setTag) ||
5918
+ (_Set && getTag(new _Set) != setTag$1) ||
5907
5919
  (_WeakMap && getTag(new _WeakMap) != weakMapTag)) {
5908
5920
  getTag = function(value) {
5909
5921
  var result = _baseGetTag(value),
@@ -5913,9 +5925,9 @@ if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag) ||
5913
5925
  if (ctorString) {
5914
5926
  switch (ctorString) {
5915
5927
  case dataViewCtorString: return dataViewTag;
5916
- case mapCtorString: return mapTag;
5928
+ case mapCtorString: return mapTag$1;
5917
5929
  case promiseCtorString: return promiseTag;
5918
- case setCtorString: return setTag;
5930
+ case setCtorString: return setTag$1;
5919
5931
  case weakMapCtorString: return weakMapTag;
5920
5932
  }
5921
5933
  }
@@ -5934,10 +5946,10 @@ var argsTag = '[object Arguments]',
5934
5946
  objectTag = '[object Object]';
5935
5947
 
5936
5948
  /** Used for built-in method references. */
5937
- var objectProto = Object.prototype;
5949
+ var objectProto$1 = Object.prototype;
5938
5950
 
5939
5951
  /** Used to check objects for own properties. */
5940
- var hasOwnProperty$1 = objectProto.hasOwnProperty;
5952
+ var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
5941
5953
 
5942
5954
  /**
5943
5955
  * A specialized version of `baseIsEqual` for arrays and objects which performs
@@ -5980,8 +5992,8 @@ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
5980
5992
  : _equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
5981
5993
  }
5982
5994
  if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
5983
- var objIsWrapped = objIsObj && hasOwnProperty$1.call(object, '__wrapped__'),
5984
- othIsWrapped = othIsObj && hasOwnProperty$1.call(other, '__wrapped__');
5995
+ var objIsWrapped = objIsObj && hasOwnProperty$2.call(object, '__wrapped__'),
5996
+ othIsWrapped = othIsObj && hasOwnProperty$2.call(other, '__wrapped__');
5985
5997
 
5986
5998
  if (objIsWrapped || othIsWrapped) {
5987
5999
  var objUnwrapped = objIsWrapped ? object.value() : object,
@@ -6060,6 +6072,75 @@ function isEqual(value, other) {
6060
6072
 
6061
6073
  var isEqual_1 = isEqual;
6062
6074
 
6075
+ /** `Object#toString` result references. */
6076
+ var mapTag = '[object Map]',
6077
+ setTag = '[object Set]';
6078
+
6079
+ /** Used for built-in method references. */
6080
+ var objectProto = Object.prototype;
6081
+
6082
+ /** Used to check objects for own properties. */
6083
+ var hasOwnProperty$1 = objectProto.hasOwnProperty;
6084
+
6085
+ /**
6086
+ * Checks if `value` is an empty object, collection, map, or set.
6087
+ *
6088
+ * Objects are considered empty if they have no own enumerable string keyed
6089
+ * properties.
6090
+ *
6091
+ * Array-like values such as `arguments` objects, arrays, buffers, strings, or
6092
+ * jQuery-like collections are considered empty if they have a `length` of `0`.
6093
+ * Similarly, maps and sets are considered empty if they have a `size` of `0`.
6094
+ *
6095
+ * @static
6096
+ * @memberOf _
6097
+ * @since 0.1.0
6098
+ * @category Lang
6099
+ * @param {*} value The value to check.
6100
+ * @returns {boolean} Returns `true` if `value` is empty, else `false`.
6101
+ * @example
6102
+ *
6103
+ * _.isEmpty(null);
6104
+ * // => true
6105
+ *
6106
+ * _.isEmpty(true);
6107
+ * // => true
6108
+ *
6109
+ * _.isEmpty(1);
6110
+ * // => true
6111
+ *
6112
+ * _.isEmpty([1, 2, 3]);
6113
+ * // => false
6114
+ *
6115
+ * _.isEmpty({ 'a': 1 });
6116
+ * // => false
6117
+ */
6118
+ function isEmpty(value) {
6119
+ if (value == null) {
6120
+ return true;
6121
+ }
6122
+ if (isArrayLike_1(value) &&
6123
+ (isArray_1(value) || typeof value == 'string' || typeof value.splice == 'function' ||
6124
+ isBuffer_1(value) || isTypedArray_1(value) || isArguments_1(value))) {
6125
+ return !value.length;
6126
+ }
6127
+ var tag = _getTag(value);
6128
+ if (tag == mapTag || tag == setTag) {
6129
+ return !value.size;
6130
+ }
6131
+ if (_isPrototype(value)) {
6132
+ return !_baseKeys(value).length;
6133
+ }
6134
+ for (var key in value) {
6135
+ if (hasOwnProperty$1.call(value, key)) {
6136
+ return false;
6137
+ }
6138
+ }
6139
+ return true;
6140
+ }
6141
+
6142
+ var isEmpty_1 = isEmpty;
6143
+
6063
6144
  const ERROR_MESSAGE = {
6064
6145
  INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
6065
6146
  SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND: 'Please select a worksheet to get started',
@@ -6895,7 +6976,7 @@ class AnswerService {
6895
6976
  async getTML() {
6896
6977
  const { object } = await this.executeQuery(getAnswerTML, {});
6897
6978
  const edoc = object[0].edoc;
6898
- const YAML = await import('./index-Cl8Rsh6W.js');
6979
+ const YAML = await import('./index-CbltIawo.js');
6899
6980
  const parsedDoc = YAML.parse(edoc);
6900
6981
  return {
6901
6982
  answer: {
@@ -14203,10 +14284,10 @@ const handleAuth = () => {
14203
14284
  return authPromise;
14204
14285
  };
14205
14286
  const hostUrlToFeatureUrl = {
14206
- [PrefetchFeatures.SearchEmbed]: (url) => `${url}v2/#/embed/answer`,
14207
- [PrefetchFeatures.LiveboardEmbed]: (url) => url,
14208
- [PrefetchFeatures.FullApp]: (url) => url,
14209
- [PrefetchFeatures.VizEmbed]: (url) => url,
14287
+ [PrefetchFeatures.SearchEmbed]: (url, flags) => `${url}v2/?${flags}#/embed/answer`,
14288
+ [PrefetchFeatures.LiveboardEmbed]: (url, flags) => `${url}?${flags}`,
14289
+ [PrefetchFeatures.FullApp]: (url, flags) => `${url}?${flags}`,
14290
+ [PrefetchFeatures.VizEmbed]: (url, flags) => `${url}?${flags}`,
14210
14291
  };
14211
14292
  /**
14212
14293
  * Prefetches static resources from the specified URL. Web browsers can then cache the
@@ -14214,10 +14295,12 @@ const hostUrlToFeatureUrl = {
14214
14295
  * to your app.
14215
14296
  * @param url The URL provided for prefetch
14216
14297
  * @param prefetchFeatures Specify features which needs to be prefetched.
14298
+ * @param additionalFlags This can be used to add any URL flag.
14217
14299
  * @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 7.2.1
14218
14300
  * @group Global methods
14219
14301
  */
14220
- const prefetch = (url, prefetchFeatures) => {
14302
+ const prefetch = (url, prefetchFeatures, additionalFlags) => {
14303
+ var _a;
14221
14304
  if (url === '') {
14222
14305
  // eslint-disable-next-line no-console
14223
14306
  logger$3.warn('The prefetch method does not have a valid URL');
@@ -14225,9 +14308,14 @@ const prefetch = (url, prefetchFeatures) => {
14225
14308
  else {
14226
14309
  const features = prefetchFeatures || [PrefetchFeatures.FullApp];
14227
14310
  let hostUrl = url || getEmbedConfig().thoughtSpotHost;
14311
+ const prefetchFlags = {
14312
+ [Param.EmbedApp]: true,
14313
+ ...(_a = getEmbedConfig()) === null || _a === void 0 ? void 0 : _a.additionalFlags,
14314
+ ...additionalFlags,
14315
+ };
14228
14316
  hostUrl = hostUrl[hostUrl.length - 1] === '/' ? hostUrl : `${hostUrl}/`;
14229
14317
  Array.from(new Set(features
14230
- .map((feature) => hostUrlToFeatureUrl[feature](hostUrl))))
14318
+ .map((feature) => hostUrlToFeatureUrl[feature](hostUrl, getQueryParamString(prefetchFlags)))))
14231
14319
  .forEach((prefetchUrl, index) => {
14232
14320
  const iFrame = document.createElement('iframe');
14233
14321
  iFrame.src = prefetchUrl;
@@ -14630,7 +14718,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
14630
14718
  });
14631
14719
  }
14632
14720
 
14633
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.4";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};
14721
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.6";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
14722
 
14635
14723
  /**
14636
14724
  * Copyright (c) 2022
@@ -14909,6 +14997,7 @@ class TsEmbed {
14909
14997
  if (hostAppUrl.includes('localhost') || hostAppUrl.includes('127.0.0.1')) {
14910
14998
  hostAppUrl = 'local-host';
14911
14999
  }
15000
+ queryParams[Param.EmbedApp] = true;
14912
15001
  queryParams[Param.HostAppUrl] = encodeURIComponent(hostAppUrl);
14913
15002
  queryParams[Param.ViewPortHeight] = window.innerHeight;
14914
15003
  queryParams[Param.ViewPortWidth] = window.innerWidth;
@@ -14936,7 +15025,12 @@ class TsEmbed {
14936
15025
  if (this.embedConfig.currencyFormat) {
14937
15026
  queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
14938
15027
  }
14939
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, } = this.viewConfig;
15028
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, } = this.viewConfig;
15029
+ const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
15030
+ const additionalFlags = {
15031
+ ...additionalFlagsFromInit,
15032
+ ...additionalFlagsFromView,
15033
+ };
14940
15034
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
14941
15035
  this.handleError('You cannot have both hidden actions and visible actions');
14942
15036
  return queryParams;
@@ -14992,9 +15086,12 @@ class TsEmbed {
14992
15086
  if (disableRedirectionLinksInNewTab) {
14993
15087
  queryParams[Param.DisableRedirectionLinksInNewTab] = disableRedirectionLinksInNewTab;
14994
15088
  }
15089
+ if (overrideOrgId !== undefined) {
15090
+ queryParams[Param.OverrideOrgId] = overrideOrgId;
15091
+ }
14995
15092
  queryParams[Param.OverrideNativeConsole] = true;
14996
15093
  queryParams[Param.ClientLogLevel] = this.embedConfig.logLevel;
14997
- if (additionalFlags && additionalFlags.constructor.name === 'Object') {
15094
+ if (isObject_1(additionalFlags) && !isEmpty_1(additionalFlags)) {
14998
15095
  Object.assign(queryParams, additionalFlags);
14999
15096
  }
15000
15097
  // Do not add any flags below this, as we want additional flags to
@@ -15776,9 +15873,8 @@ class AppEmbed extends V1Embed {
15776
15873
  getEmbedParams() {
15777
15874
  const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15778
15875
  /* eslint-disable-next-line max-len */
15779
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, } = this.viewConfig;
15876
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, } = this.viewConfig;
15780
15877
  let params = {};
15781
- params[Param.EmbedApp] = true;
15782
15878
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
15783
15879
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
15784
15880
  params[Param.HideApplicationSwitcher] = !!hideApplicationSwitcher;
@@ -15791,6 +15887,7 @@ class AppEmbed extends V1Embed {
15791
15887
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
15792
15888
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
15793
15889
  params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
15890
+ params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
15794
15891
  params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
15795
15892
  params = this.getBaseQueryParams(params);
15796
15893
  if (fullHeight === true) {
@@ -16068,9 +16165,8 @@ class LiveboardEmbed extends V1Embed {
16068
16165
  */
16069
16166
  getEmbedParams() {
16070
16167
  let params = {};
16071
- params[Param.EmbedApp] = true;
16072
16168
  params = this.getBaseQueryParams(params);
16073
- 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;
16169
+ const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, } = this.viewConfig;
16074
16170
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
16075
16171
  || this.viewConfig.preventPinboardFilterRemoval;
16076
16172
  if (fullHeight === true) {
@@ -16117,6 +16213,7 @@ class LiveboardEmbed extends V1Embed {
16117
16213
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
16118
16214
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
16119
16215
  params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
16216
+ params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
16120
16217
  params[Param.DataPanelV2Enabled] = dataPanelV2;
16121
16218
  params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
16122
16219
  const queryParams = getQueryParamString(params, true);
@@ -16866,6 +16963,7 @@ class Conversation {
16866
16963
 
16867
16964
  class ConversationMessage extends TsEmbed {
16868
16965
  constructor(container, viewConfig) {
16966
+ viewConfig.embedComponentType = 'bodyless-conversation';
16869
16967
  super(container, viewConfig);
16870
16968
  this.viewConfig = viewConfig;
16871
16969
  }
@@ -16898,6 +16996,19 @@ class ConversationMessage extends TsEmbed {
16898
16996
  /**
16899
16997
  * Create a conversation embed, which can be integrated inside
16900
16998
  * chatbots or other conversational interfaces.
16999
+ * @example
17000
+ * ```js
17001
+ * import { BodylessConversation } from '@thoughtspot/visual-embed-sdk';
17002
+ *
17003
+ * const conversation = new BodylessConversation({
17004
+ * worksheetId: 'worksheetId',
17005
+ * });
17006
+ *
17007
+ * const { container, error } = await conversation.sendMessage('show me sales by region');
17008
+ *
17009
+ * // append the container to the DOM
17010
+ * document.body.appendChild(container); // or to any other element
17011
+ * ```
16901
17012
  * @group Embed components
16902
17013
  * @version SDK: 1.33.1 | ThoughtSpot: 10.5.0.cl
16903
17014
  */
@@ -16942,6 +17053,7 @@ class BodylessConversation {
16942
17053
  */
16943
17054
  class ConversationEmbed extends TsEmbed {
16944
17055
  constructor(container, viewConfig) {
17056
+ viewConfig.embedComponentType = 'conversation';
16945
17057
  super(container, viewConfig);
16946
17058
  this.viewConfig = viewConfig;
16947
17059
  }
@@ -16998,7 +17110,6 @@ class SageEmbed extends V1Embed {
16998
17110
  getEmbedParams() {
16999
17111
  const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
17000
17112
  const params = this.getBaseQueryParams();
17001
- params[Param.EmbedApp] = true;
17002
17113
  params[Param.IsSageEmbed] = true;
17003
17114
  params[Param.DisableWorksheetChange] = !!disableWorksheetChange;
17004
17115
  params[Param.HideWorksheetSelector] = !!hideWorksheetSelector;