@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
package/dist/tsembed.js CHANGED
@@ -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 (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, see
2364
- * link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported data types].
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
  *
@@ -2655,8 +2656,10 @@
2655
2656
  Param["ShowLiveboardVerifiedBadge"] = "showLiveboardVerifiedBadge";
2656
2657
  Param["ShowLiveboardReverifyBanner"] = "showLiveboardReverifyBanner";
2657
2658
  Param["LiveboardHeaderV2"] = "isLiveboardHeaderV2Enabled";
2659
+ Param["HideIrrelevantFiltersInTab"] = "hideIrrelevantFiltersAtTabLevel";
2658
2660
  Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
2659
2661
  Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
2662
+ Param["OverrideOrgId"] = "orgId";
2660
2663
  })(Param || (Param = {}));
2661
2664
  /**
2662
2665
  * ThoughtSpot application pages include actions and menu commands
@@ -3699,6 +3702,15 @@
3699
3702
  * @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
3700
3703
  */
3701
3704
  Action["DisableChipReorder"] = "disableChipReorder";
3705
+ /**
3706
+ * Action ID for Hide Irrelevant filters button
3707
+ * @example
3708
+ * ```js
3709
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
3710
+ * ```
3711
+ * @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
3712
+ */
3713
+ Action["ChangeFilterVisibilityInTab"] = "changeFilterVisibilityInTab";
3702
3714
  })(exports.Action || (exports.Action = {}));
3703
3715
  exports.PrefetchFeatures = void 0;
3704
3716
  (function (PrefetchFeatures) {
@@ -4142,17 +4154,17 @@
4142
4154
  var _Symbol = Symbol$1;
4143
4155
 
4144
4156
  /** Used for built-in method references. */
4145
- var objectProto$b = Object.prototype;
4157
+ var objectProto$c = Object.prototype;
4146
4158
 
4147
4159
  /** Used to check objects for own properties. */
4148
- var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
4160
+ var hasOwnProperty$a = objectProto$c.hasOwnProperty;
4149
4161
 
4150
4162
  /**
4151
4163
  * Used to resolve the
4152
4164
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
4153
4165
  * of values.
4154
4166
  */
4155
- var nativeObjectToString$1 = objectProto$b.toString;
4167
+ var nativeObjectToString$1 = objectProto$c.toString;
4156
4168
 
4157
4169
  /** Built-in value references. */
4158
4170
  var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
@@ -4165,7 +4177,7 @@
4165
4177
  * @returns {string} Returns the raw `toStringTag`.
4166
4178
  */
4167
4179
  function getRawTag(value) {
4168
- var isOwn = hasOwnProperty$9.call(value, symToStringTag$1),
4180
+ var isOwn = hasOwnProperty$a.call(value, symToStringTag$1),
4169
4181
  tag = value[symToStringTag$1];
4170
4182
 
4171
4183
  try {
@@ -4187,14 +4199,14 @@
4187
4199
  var _getRawTag = getRawTag;
4188
4200
 
4189
4201
  /** Used for built-in method references. */
4190
- var objectProto$a = Object.prototype;
4202
+ var objectProto$b = Object.prototype;
4191
4203
 
4192
4204
  /**
4193
4205
  * Used to resolve the
4194
4206
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
4195
4207
  * of values.
4196
4208
  */
4197
- var nativeObjectToString = objectProto$a.toString;
4209
+ var nativeObjectToString = objectProto$b.toString;
4198
4210
 
4199
4211
  /**
4200
4212
  * Converts `value` to a string using `Object.prototype.toString`.
@@ -4363,17 +4375,17 @@
4363
4375
 
4364
4376
  /** Used for built-in method references. */
4365
4377
  var funcProto = Function.prototype,
4366
- objectProto$9 = Object.prototype;
4378
+ objectProto$a = Object.prototype;
4367
4379
 
4368
4380
  /** Used to resolve the decompiled source of functions. */
4369
4381
  var funcToString = funcProto.toString;
4370
4382
 
4371
4383
  /** Used to check objects for own properties. */
4372
- var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
4384
+ var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
4373
4385
 
4374
4386
  /** Used to detect if a method is native. */
4375
4387
  var reIsNative = RegExp('^' +
4376
- funcToString.call(hasOwnProperty$8).replace(reRegExpChar, '\\$&')
4388
+ funcToString.call(hasOwnProperty$9).replace(reRegExpChar, '\\$&')
4377
4389
  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
4378
4390
  );
4379
4391
 
@@ -4470,10 +4482,10 @@
4470
4482
  var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
4471
4483
 
4472
4484
  /** Used for built-in method references. */
4473
- var objectProto$8 = Object.prototype;
4485
+ var objectProto$9 = Object.prototype;
4474
4486
 
4475
4487
  /** Used to check objects for own properties. */
4476
- var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
4488
+ var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
4477
4489
 
4478
4490
  /**
4479
4491
  * Gets the hash value for `key`.
@@ -4490,16 +4502,16 @@
4490
4502
  var result = data[key];
4491
4503
  return result === HASH_UNDEFINED$2 ? undefined : result;
4492
4504
  }
4493
- return hasOwnProperty$7.call(data, key) ? data[key] : undefined;
4505
+ return hasOwnProperty$8.call(data, key) ? data[key] : undefined;
4494
4506
  }
4495
4507
 
4496
4508
  var _hashGet = hashGet;
4497
4509
 
4498
4510
  /** Used for built-in method references. */
4499
- var objectProto$7 = Object.prototype;
4511
+ var objectProto$8 = Object.prototype;
4500
4512
 
4501
4513
  /** Used to check objects for own properties. */
4502
- var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
4514
+ var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
4503
4515
 
4504
4516
  /**
4505
4517
  * Checks if a hash value for `key` exists.
@@ -4512,7 +4524,7 @@
4512
4524
  */
4513
4525
  function hashHas(key) {
4514
4526
  var data = this.__data__;
4515
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$6.call(data, key);
4527
+ return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$7.call(data, key);
4516
4528
  }
4517
4529
 
4518
4530
  var _hashHas = hashHas;
@@ -4993,10 +5005,10 @@
4993
5005
  var boolTag$2 = '[object Boolean]',
4994
5006
  dateTag$1 = '[object Date]',
4995
5007
  errorTag$1 = '[object Error]',
4996
- mapTag$2 = '[object Map]',
5008
+ mapTag$3 = '[object Map]',
4997
5009
  numberTag$1 = '[object Number]',
4998
5010
  regexpTag$1 = '[object RegExp]',
4999
- setTag$2 = '[object Set]',
5011
+ setTag$3 = '[object Set]',
5000
5012
  stringTag$1 = '[object String]',
5001
5013
  symbolTag = '[object Symbol]';
5002
5014
 
@@ -5058,10 +5070,10 @@
5058
5070
  // for more details.
5059
5071
  return object == (other + '');
5060
5072
 
5061
- case mapTag$2:
5073
+ case mapTag$3:
5062
5074
  var convert = _mapToArray;
5063
5075
 
5064
- case setTag$2:
5076
+ case setTag$3:
5065
5077
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
5066
5078
  convert || (convert = _setToArray);
5067
5079
 
@@ -5208,10 +5220,10 @@
5208
5220
  var stubArray_1 = stubArray;
5209
5221
 
5210
5222
  /** Used for built-in method references. */
5211
- var objectProto$6 = Object.prototype;
5223
+ var objectProto$7 = Object.prototype;
5212
5224
 
5213
5225
  /** Built-in value references. */
5214
- var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
5226
+ var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
5215
5227
 
5216
5228
  /* Built-in method references for those with the same name as other `lodash` methods. */
5217
5229
  var nativeGetSymbols = Object.getOwnPropertySymbols;
@@ -5303,13 +5315,13 @@
5303
5315
  var _baseIsArguments = baseIsArguments;
5304
5316
 
5305
5317
  /** Used for built-in method references. */
5306
- var objectProto$5 = Object.prototype;
5318
+ var objectProto$6 = Object.prototype;
5307
5319
 
5308
5320
  /** Used to check objects for own properties. */
5309
- var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
5321
+ var hasOwnProperty$6 = objectProto$6.hasOwnProperty;
5310
5322
 
5311
5323
  /** Built-in value references. */
5312
- var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
5324
+ var propertyIsEnumerable = objectProto$6.propertyIsEnumerable;
5313
5325
 
5314
5326
  /**
5315
5327
  * Checks if `value` is likely an `arguments` object.
@@ -5330,7 +5342,7 @@
5330
5342
  * // => false
5331
5343
  */
5332
5344
  var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
5333
- return isObjectLike_1(value) && hasOwnProperty$5.call(value, 'callee') &&
5345
+ return isObjectLike_1(value) && hasOwnProperty$6.call(value, 'callee') &&
5334
5346
  !propertyIsEnumerable.call(value, 'callee');
5335
5347
  };
5336
5348
 
@@ -5462,11 +5474,11 @@
5462
5474
  dateTag = '[object Date]',
5463
5475
  errorTag = '[object Error]',
5464
5476
  funcTag = '[object Function]',
5465
- mapTag$1 = '[object Map]',
5477
+ mapTag$2 = '[object Map]',
5466
5478
  numberTag = '[object Number]',
5467
5479
  objectTag$2 = '[object Object]',
5468
5480
  regexpTag = '[object RegExp]',
5469
- setTag$1 = '[object Set]',
5481
+ setTag$2 = '[object Set]',
5470
5482
  stringTag = '[object String]',
5471
5483
  weakMapTag$1 = '[object WeakMap]';
5472
5484
 
@@ -5493,9 +5505,9 @@
5493
5505
  typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag$1] =
5494
5506
  typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] =
5495
5507
  typedArrayTags[errorTag] = typedArrayTags[funcTag] =
5496
- typedArrayTags[mapTag$1] = typedArrayTags[numberTag] =
5508
+ typedArrayTags[mapTag$2] = typedArrayTags[numberTag] =
5497
5509
  typedArrayTags[objectTag$2] = typedArrayTags[regexpTag] =
5498
- typedArrayTags[setTag$1] = typedArrayTags[stringTag] =
5510
+ typedArrayTags[setTag$2] = typedArrayTags[stringTag] =
5499
5511
  typedArrayTags[weakMapTag$1] = false;
5500
5512
 
5501
5513
  /**
@@ -5583,10 +5595,10 @@
5583
5595
  var isTypedArray_1 = isTypedArray;
5584
5596
 
5585
5597
  /** Used for built-in method references. */
5586
- var objectProto$4 = Object.prototype;
5598
+ var objectProto$5 = Object.prototype;
5587
5599
 
5588
5600
  /** Used to check objects for own properties. */
5589
- var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
5601
+ var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
5590
5602
 
5591
5603
  /**
5592
5604
  * Creates an array of the enumerable property names of the array-like `value`.
@@ -5606,7 +5618,7 @@
5606
5618
  length = result.length;
5607
5619
 
5608
5620
  for (var key in value) {
5609
- if ((inherited || hasOwnProperty$4.call(value, key)) &&
5621
+ if ((inherited || hasOwnProperty$5.call(value, key)) &&
5610
5622
  !(skipIndexes && (
5611
5623
  // Safari 9 has enumerable `arguments.length` in strict mode.
5612
5624
  key == 'length' ||
@@ -5626,7 +5638,7 @@
5626
5638
  var _arrayLikeKeys = arrayLikeKeys;
5627
5639
 
5628
5640
  /** Used for built-in method references. */
5629
- var objectProto$3 = Object.prototype;
5641
+ var objectProto$4 = Object.prototype;
5630
5642
 
5631
5643
  /**
5632
5644
  * Checks if `value` is likely a prototype object.
@@ -5637,7 +5649,7 @@
5637
5649
  */
5638
5650
  function isPrototype(value) {
5639
5651
  var Ctor = value && value.constructor,
5640
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$3;
5652
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$4;
5641
5653
 
5642
5654
  return value === proto;
5643
5655
  }
@@ -5666,10 +5678,10 @@
5666
5678
  var _nativeKeys = nativeKeys;
5667
5679
 
5668
5680
  /** Used for built-in method references. */
5669
- var objectProto$2 = Object.prototype;
5681
+ var objectProto$3 = Object.prototype;
5670
5682
 
5671
5683
  /** Used to check objects for own properties. */
5672
- var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
5684
+ var hasOwnProperty$4 = objectProto$3.hasOwnProperty;
5673
5685
 
5674
5686
  /**
5675
5687
  * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
@@ -5684,7 +5696,7 @@
5684
5696
  }
5685
5697
  var result = [];
5686
5698
  for (var key in Object(object)) {
5687
- if (hasOwnProperty$3.call(object, key) && key != 'constructor') {
5699
+ if (hasOwnProperty$4.call(object, key) && key != 'constructor') {
5688
5700
  result.push(key);
5689
5701
  }
5690
5702
  }
@@ -5775,10 +5787,10 @@
5775
5787
  var COMPARE_PARTIAL_FLAG$1 = 1;
5776
5788
 
5777
5789
  /** Used for built-in method references. */
5778
- var objectProto$1 = Object.prototype;
5790
+ var objectProto$2 = Object.prototype;
5779
5791
 
5780
5792
  /** Used to check objects for own properties. */
5781
- var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
5793
+ var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
5782
5794
 
5783
5795
  /**
5784
5796
  * A specialized version of `baseIsEqualDeep` for objects with support for
@@ -5806,7 +5818,7 @@
5806
5818
  var index = objLength;
5807
5819
  while (index--) {
5808
5820
  var key = objProps[index];
5809
- if (!(isPartial ? key in other : hasOwnProperty$2.call(other, key))) {
5821
+ if (!(isPartial ? key in other : hasOwnProperty$3.call(other, key))) {
5810
5822
  return false;
5811
5823
  }
5812
5824
  }
@@ -5881,10 +5893,10 @@
5881
5893
  var _WeakMap = WeakMap;
5882
5894
 
5883
5895
  /** `Object#toString` result references. */
5884
- var mapTag = '[object Map]',
5896
+ var mapTag$1 = '[object Map]',
5885
5897
  objectTag$1 = '[object Object]',
5886
5898
  promiseTag = '[object Promise]',
5887
- setTag = '[object Set]',
5899
+ setTag$1 = '[object Set]',
5888
5900
  weakMapTag = '[object WeakMap]';
5889
5901
 
5890
5902
  var dataViewTag = '[object DataView]';
@@ -5907,9 +5919,9 @@
5907
5919
 
5908
5920
  // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
5909
5921
  if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag) ||
5910
- (_Map && getTag(new _Map) != mapTag) ||
5922
+ (_Map && getTag(new _Map) != mapTag$1) ||
5911
5923
  (_Promise && getTag(_Promise.resolve()) != promiseTag) ||
5912
- (_Set && getTag(new _Set) != setTag) ||
5924
+ (_Set && getTag(new _Set) != setTag$1) ||
5913
5925
  (_WeakMap && getTag(new _WeakMap) != weakMapTag)) {
5914
5926
  getTag = function(value) {
5915
5927
  var result = _baseGetTag(value),
@@ -5919,9 +5931,9 @@
5919
5931
  if (ctorString) {
5920
5932
  switch (ctorString) {
5921
5933
  case dataViewCtorString: return dataViewTag;
5922
- case mapCtorString: return mapTag;
5934
+ case mapCtorString: return mapTag$1;
5923
5935
  case promiseCtorString: return promiseTag;
5924
- case setCtorString: return setTag;
5936
+ case setCtorString: return setTag$1;
5925
5937
  case weakMapCtorString: return weakMapTag;
5926
5938
  }
5927
5939
  }
@@ -5940,10 +5952,10 @@
5940
5952
  objectTag = '[object Object]';
5941
5953
 
5942
5954
  /** Used for built-in method references. */
5943
- var objectProto = Object.prototype;
5955
+ var objectProto$1 = Object.prototype;
5944
5956
 
5945
5957
  /** Used to check objects for own properties. */
5946
- var hasOwnProperty$1 = objectProto.hasOwnProperty;
5958
+ var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
5947
5959
 
5948
5960
  /**
5949
5961
  * A specialized version of `baseIsEqual` for arrays and objects which performs
@@ -5986,8 +5998,8 @@
5986
5998
  : _equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
5987
5999
  }
5988
6000
  if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
5989
- var objIsWrapped = objIsObj && hasOwnProperty$1.call(object, '__wrapped__'),
5990
- othIsWrapped = othIsObj && hasOwnProperty$1.call(other, '__wrapped__');
6001
+ var objIsWrapped = objIsObj && hasOwnProperty$2.call(object, '__wrapped__'),
6002
+ othIsWrapped = othIsObj && hasOwnProperty$2.call(other, '__wrapped__');
5991
6003
 
5992
6004
  if (objIsWrapped || othIsWrapped) {
5993
6005
  var objUnwrapped = objIsWrapped ? object.value() : object,
@@ -6066,6 +6078,75 @@
6066
6078
 
6067
6079
  var isEqual_1 = isEqual;
6068
6080
 
6081
+ /** `Object#toString` result references. */
6082
+ var mapTag = '[object Map]',
6083
+ setTag = '[object Set]';
6084
+
6085
+ /** Used for built-in method references. */
6086
+ var objectProto = Object.prototype;
6087
+
6088
+ /** Used to check objects for own properties. */
6089
+ var hasOwnProperty$1 = objectProto.hasOwnProperty;
6090
+
6091
+ /**
6092
+ * Checks if `value` is an empty object, collection, map, or set.
6093
+ *
6094
+ * Objects are considered empty if they have no own enumerable string keyed
6095
+ * properties.
6096
+ *
6097
+ * Array-like values such as `arguments` objects, arrays, buffers, strings, or
6098
+ * jQuery-like collections are considered empty if they have a `length` of `0`.
6099
+ * Similarly, maps and sets are considered empty if they have a `size` of `0`.
6100
+ *
6101
+ * @static
6102
+ * @memberOf _
6103
+ * @since 0.1.0
6104
+ * @category Lang
6105
+ * @param {*} value The value to check.
6106
+ * @returns {boolean} Returns `true` if `value` is empty, else `false`.
6107
+ * @example
6108
+ *
6109
+ * _.isEmpty(null);
6110
+ * // => true
6111
+ *
6112
+ * _.isEmpty(true);
6113
+ * // => true
6114
+ *
6115
+ * _.isEmpty(1);
6116
+ * // => true
6117
+ *
6118
+ * _.isEmpty([1, 2, 3]);
6119
+ * // => false
6120
+ *
6121
+ * _.isEmpty({ 'a': 1 });
6122
+ * // => false
6123
+ */
6124
+ function isEmpty$1(value) {
6125
+ if (value == null) {
6126
+ return true;
6127
+ }
6128
+ if (isArrayLike_1(value) &&
6129
+ (isArray_1(value) || typeof value == 'string' || typeof value.splice == 'function' ||
6130
+ isBuffer_1(value) || isTypedArray_1(value) || isArguments_1(value))) {
6131
+ return !value.length;
6132
+ }
6133
+ var tag = _getTag(value);
6134
+ if (tag == mapTag || tag == setTag) {
6135
+ return !value.size;
6136
+ }
6137
+ if (_isPrototype(value)) {
6138
+ return !_baseKeys(value).length;
6139
+ }
6140
+ for (var key in value) {
6141
+ if (hasOwnProperty$1.call(value, key)) {
6142
+ return false;
6143
+ }
6144
+ }
6145
+ return true;
6146
+ }
6147
+
6148
+ var isEmpty_1 = isEmpty$1;
6149
+
6069
6150
  const ERROR_MESSAGE = {
6070
6151
  INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
6071
6152
  SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND: 'Please select a worksheet to get started',
@@ -14209,10 +14290,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14209
14290
  return authPromise;
14210
14291
  };
14211
14292
  const hostUrlToFeatureUrl = {
14212
- [exports.PrefetchFeatures.SearchEmbed]: (url) => `${url}v2/#/embed/answer`,
14213
- [exports.PrefetchFeatures.LiveboardEmbed]: (url) => url,
14214
- [exports.PrefetchFeatures.FullApp]: (url) => url,
14215
- [exports.PrefetchFeatures.VizEmbed]: (url) => url,
14293
+ [exports.PrefetchFeatures.SearchEmbed]: (url, flags) => `${url}v2/?${flags}#/embed/answer`,
14294
+ [exports.PrefetchFeatures.LiveboardEmbed]: (url, flags) => `${url}?${flags}`,
14295
+ [exports.PrefetchFeatures.FullApp]: (url, flags) => `${url}?${flags}`,
14296
+ [exports.PrefetchFeatures.VizEmbed]: (url, flags) => `${url}?${flags}`,
14216
14297
  };
14217
14298
  /**
14218
14299
  * Prefetches static resources from the specified URL. Web browsers can then cache the
@@ -14220,10 +14301,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14220
14301
  * to your app.
14221
14302
  * @param url The URL provided for prefetch
14222
14303
  * @param prefetchFeatures Specify features which needs to be prefetched.
14304
+ * @param additionalFlags This can be used to add any URL flag.
14223
14305
  * @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 7.2.1
14224
14306
  * @group Global methods
14225
14307
  */
14226
- const prefetch = (url, prefetchFeatures) => {
14308
+ const prefetch = (url, prefetchFeatures, additionalFlags) => {
14309
+ var _a;
14227
14310
  if (url === '') {
14228
14311
  // eslint-disable-next-line no-console
14229
14312
  logger$3.warn('The prefetch method does not have a valid URL');
@@ -14231,9 +14314,14 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14231
14314
  else {
14232
14315
  const features = prefetchFeatures || [exports.PrefetchFeatures.FullApp];
14233
14316
  let hostUrl = url || getEmbedConfig().thoughtSpotHost;
14317
+ const prefetchFlags = {
14318
+ [Param.EmbedApp]: true,
14319
+ ...(_a = getEmbedConfig()) === null || _a === void 0 ? void 0 : _a.additionalFlags,
14320
+ ...additionalFlags,
14321
+ };
14234
14322
  hostUrl = hostUrl[hostUrl.length - 1] === '/' ? hostUrl : `${hostUrl}/`;
14235
14323
  Array.from(new Set(features
14236
- .map((feature) => hostUrlToFeatureUrl[feature](hostUrl))))
14324
+ .map((feature) => hostUrlToFeatureUrl[feature](hostUrl, getQueryParamString(prefetchFlags)))))
14237
14325
  .forEach((prefetchUrl, index) => {
14238
14326
  const iFrame = document.createElement('iframe');
14239
14327
  iFrame.src = prefetchUrl;
@@ -14636,7 +14724,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14636
14724
  });
14637
14725
  }
14638
14726
 
14639
- 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$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};
14727
+ 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$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
14728
 
14641
14729
  /**
14642
14730
  * Copyright (c) 2022
@@ -14915,6 +15003,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14915
15003
  if (hostAppUrl.includes('localhost') || hostAppUrl.includes('127.0.0.1')) {
14916
15004
  hostAppUrl = 'local-host';
14917
15005
  }
15006
+ queryParams[Param.EmbedApp] = true;
14918
15007
  queryParams[Param.HostAppUrl] = encodeURIComponent(hostAppUrl);
14919
15008
  queryParams[Param.ViewPortHeight] = window.innerHeight;
14920
15009
  queryParams[Param.ViewPortWidth] = window.innerWidth;
@@ -14942,7 +15031,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14942
15031
  if (this.embedConfig.currencyFormat) {
14943
15032
  queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
14944
15033
  }
14945
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, } = this.viewConfig;
15034
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, } = this.viewConfig;
15035
+ const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
15036
+ const additionalFlags = {
15037
+ ...additionalFlagsFromInit,
15038
+ ...additionalFlagsFromView,
15039
+ };
14946
15040
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
14947
15041
  this.handleError('You cannot have both hidden actions and visible actions');
14948
15042
  return queryParams;
@@ -14998,9 +15092,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14998
15092
  if (disableRedirectionLinksInNewTab) {
14999
15093
  queryParams[Param.DisableRedirectionLinksInNewTab] = disableRedirectionLinksInNewTab;
15000
15094
  }
15095
+ if (overrideOrgId !== undefined) {
15096
+ queryParams[Param.OverrideOrgId] = overrideOrgId;
15097
+ }
15001
15098
  queryParams[Param.OverrideNativeConsole] = true;
15002
15099
  queryParams[Param.ClientLogLevel] = this.embedConfig.logLevel;
15003
- if (additionalFlags && additionalFlags.constructor.name === 'Object') {
15100
+ if (isObject_1(additionalFlags) && !isEmpty_1(additionalFlags)) {
15004
15101
  Object.assign(queryParams, additionalFlags);
15005
15102
  }
15006
15103
  // Do not add any flags below this, as we want additional flags to
@@ -15782,9 +15879,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15782
15879
  getEmbedParams() {
15783
15880
  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,
15784
15881
  /* eslint-disable-next-line max-len */
15785
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, } = this.viewConfig;
15882
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, } = this.viewConfig;
15786
15883
  let params = {};
15787
- params[Param.EmbedApp] = true;
15788
15884
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
15789
15885
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
15790
15886
  params[Param.HideApplicationSwitcher] = !!hideApplicationSwitcher;
@@ -15797,6 +15893,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15797
15893
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
15798
15894
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
15799
15895
  params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
15896
+ params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
15800
15897
  params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
15801
15898
  params = this.getBaseQueryParams(params);
15802
15899
  if (fullHeight === true) {
@@ -16074,9 +16171,8 @@ query GetEurekaVizSnapshots(
16074
16171
  */
16075
16172
  getEmbedParams() {
16076
16173
  let params = {};
16077
- params[Param.EmbedApp] = true;
16078
16174
  params = this.getBaseQueryParams(params);
16079
- 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;
16175
+ 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;
16080
16176
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
16081
16177
  || this.viewConfig.preventPinboardFilterRemoval;
16082
16178
  if (fullHeight === true) {
@@ -16123,6 +16219,7 @@ query GetEurekaVizSnapshots(
16123
16219
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
16124
16220
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
16125
16221
  params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
16222
+ params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
16126
16223
  params[Param.DataPanelV2Enabled] = dataPanelV2;
16127
16224
  params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
16128
16225
  const queryParams = getQueryParamString(params, true);
@@ -16872,6 +16969,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
16872
16969
 
16873
16970
  class ConversationMessage extends TsEmbed {
16874
16971
  constructor(container, viewConfig) {
16972
+ viewConfig.embedComponentType = 'bodyless-conversation';
16875
16973
  super(container, viewConfig);
16876
16974
  this.viewConfig = viewConfig;
16877
16975
  }
@@ -16904,6 +17002,19 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
16904
17002
  /**
16905
17003
  * Create a conversation embed, which can be integrated inside
16906
17004
  * chatbots or other conversational interfaces.
17005
+ * @example
17006
+ * ```js
17007
+ * import { BodylessConversation } from '@thoughtspot/visual-embed-sdk';
17008
+ *
17009
+ * const conversation = new BodylessConversation({
17010
+ * worksheetId: 'worksheetId',
17011
+ * });
17012
+ *
17013
+ * const { container, error } = await conversation.sendMessage('show me sales by region');
17014
+ *
17015
+ * // append the container to the DOM
17016
+ * document.body.appendChild(container); // or to any other element
17017
+ * ```
16907
17018
  * @group Embed components
16908
17019
  * @version SDK: 1.33.1 | ThoughtSpot: 10.5.0.cl
16909
17020
  */
@@ -16948,6 +17059,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
16948
17059
  */
16949
17060
  class ConversationEmbed extends TsEmbed {
16950
17061
  constructor(container, viewConfig) {
17062
+ viewConfig.embedComponentType = 'conversation';
16951
17063
  super(container, viewConfig);
16952
17064
  this.viewConfig = viewConfig;
16953
17065
  }
@@ -17004,7 +17116,6 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
17004
17116
  getEmbedParams() {
17005
17117
  const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
17006
17118
  const params = this.getBaseQueryParams();
17007
- params[Param.EmbedApp] = true;
17008
17119
  params[Param.IsSageEmbed] = true;
17009
17120
  params[Param.DisableWorksheetChange] = !!disableWorksheetChange;
17010
17121
  params[Param.HideWorksheetSelector] = !!hideWorksheetSelector;