@thoughtspot/visual-embed-sdk 1.33.3 → 1.33.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) 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 +20 -6
  5. package/cjs/src/embed/app.d.ts.map +1 -1
  6. package/cjs/src/embed/app.js +3 -3
  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 +58 -4
  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 +13 -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 +4 -0
  22. package/cjs/src/embed/conversation.js.map +1 -1
  23. package/cjs/src/embed/conversation.spec.js +13 -0
  24. package/cjs/src/embed/conversation.spec.js.map +1 -1
  25. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  26. package/cjs/src/embed/liveboard.js +1 -2
  27. package/cjs/src/embed/liveboard.js.map +1 -1
  28. package/cjs/src/embed/liveboard.spec.js +2 -2
  29. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  30. package/cjs/src/embed/sage.d.ts.map +1 -1
  31. package/cjs/src/embed/sage.js +0 -1
  32. package/cjs/src/embed/sage.js.map +1 -1
  33. package/cjs/src/embed/search.js +1 -1
  34. package/cjs/src/embed/search.js.map +1 -1
  35. package/cjs/src/embed/search.spec.js +6 -6
  36. package/cjs/src/embed/search.spec.js.map +1 -1
  37. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  38. package/cjs/src/embed/ts-embed.js +13 -2
  39. package/cjs/src/embed/ts-embed.js.map +1 -1
  40. package/cjs/src/embed/ts-embed.spec.js +41 -1
  41. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  42. package/cjs/src/errors.d.ts +1 -0
  43. package/cjs/src/errors.d.ts.map +1 -1
  44. package/cjs/src/errors.js +10 -9
  45. package/cjs/src/errors.js.map +1 -1
  46. package/cjs/src/react/index.spec.js +2 -2
  47. package/cjs/src/react/index.spec.js.map +1 -1
  48. package/cjs/src/types.d.ts +75 -22
  49. package/cjs/src/types.d.ts.map +1 -1
  50. package/cjs/src/types.js +33 -16
  51. package/cjs/src/types.js.map +1 -1
  52. package/dist/{index-Ck3m4Sis.js → index-CAHz286m.js} +1 -1
  53. package/dist/src/config.d.ts.map +1 -1
  54. package/dist/src/embed/app.d.ts +20 -6
  55. package/dist/src/embed/app.d.ts.map +1 -1
  56. package/dist/src/embed/base.d.ts +4 -1
  57. package/dist/src/embed/base.d.ts.map +1 -1
  58. package/dist/src/embed/bodyless-conversation.d.ts +17 -0
  59. package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
  60. package/dist/src/embed/conversation.d.ts.map +1 -1
  61. package/dist/src/embed/liveboard.d.ts.map +1 -1
  62. package/dist/src/embed/sage.d.ts.map +1 -1
  63. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  64. package/dist/src/errors.d.ts +1 -0
  65. package/dist/src/errors.d.ts.map +1 -1
  66. package/dist/src/types.d.ts +75 -22
  67. package/dist/src/types.d.ts.map +1 -1
  68. package/dist/tsembed-react.es.js +188 -91
  69. package/dist/tsembed-react.js +187 -90
  70. package/dist/tsembed.es.js +210 -93
  71. package/dist/tsembed.js +209 -92
  72. package/dist/visual-embed-sdk-react-full.d.ts +116 -29
  73. package/dist/visual-embed-sdk-react.d.ts +116 -29
  74. package/dist/visual-embed-sdk.d.ts +116 -29
  75. package/lib/package.json +1 -1
  76. package/lib/src/config.d.ts.map +1 -1
  77. package/lib/src/config.js.map +1 -1
  78. package/lib/src/embed/app.d.ts +20 -6
  79. package/lib/src/embed/app.d.ts.map +1 -1
  80. package/lib/src/embed/app.js +3 -3
  81. package/lib/src/embed/app.js.map +1 -1
  82. package/lib/src/embed/app.spec.js +10 -0
  83. package/lib/src/embed/app.spec.js.map +1 -1
  84. package/lib/src/embed/base.d.ts +4 -1
  85. package/lib/src/embed/base.d.ts.map +1 -1
  86. package/lib/src/embed/base.js +15 -7
  87. package/lib/src/embed/base.js.map +1 -1
  88. package/lib/src/embed/base.spec.js +58 -4
  89. package/lib/src/embed/base.spec.js.map +1 -1
  90. package/lib/src/embed/bodyless-conversation.d.ts +17 -0
  91. package/lib/src/embed/bodyless-conversation.d.ts.map +1 -1
  92. package/lib/src/embed/bodyless-conversation.js +13 -0
  93. package/lib/src/embed/bodyless-conversation.js.map +1 -1
  94. package/lib/src/embed/conversation.d.ts.map +1 -1
  95. package/lib/src/embed/conversation.js +4 -0
  96. package/lib/src/embed/conversation.js.map +1 -1
  97. package/lib/src/embed/conversation.spec.js +13 -0
  98. package/lib/src/embed/conversation.spec.js.map +1 -1
  99. package/lib/src/embed/liveboard.d.ts.map +1 -1
  100. package/lib/src/embed/liveboard.js +1 -2
  101. package/lib/src/embed/liveboard.js.map +1 -1
  102. package/lib/src/embed/liveboard.spec.js +2 -2
  103. package/lib/src/embed/liveboard.spec.js.map +1 -1
  104. package/lib/src/embed/sage.d.ts.map +1 -1
  105. package/lib/src/embed/sage.js +0 -1
  106. package/lib/src/embed/sage.js.map +1 -1
  107. package/lib/src/embed/search.js +1 -1
  108. package/lib/src/embed/search.js.map +1 -1
  109. package/lib/src/embed/search.spec.js +6 -6
  110. package/lib/src/embed/search.spec.js.map +1 -1
  111. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  112. package/lib/src/embed/ts-embed.js +13 -2
  113. package/lib/src/embed/ts-embed.js.map +1 -1
  114. package/lib/src/embed/ts-embed.spec.js +42 -2
  115. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  116. package/lib/src/errors.d.ts +1 -0
  117. package/lib/src/errors.d.ts.map +1 -1
  118. package/lib/src/errors.js +10 -9
  119. package/lib/src/errors.js.map +1 -1
  120. package/lib/src/react/index.spec.js +2 -2
  121. package/lib/src/react/index.spec.js.map +1 -1
  122. package/lib/src/types.d.ts +75 -22
  123. package/lib/src/types.d.ts.map +1 -1
  124. package/lib/src/types.js +33 -16
  125. package/lib/src/types.js.map +1 -1
  126. package/lib/src/visual-embed-sdk.d.ts +116 -29
  127. package/package.json +1 -1
  128. package/src/config.ts +0 -1
  129. package/src/embed/app.spec.ts +15 -0
  130. package/src/embed/app.ts +23 -8
  131. package/src/embed/base.spec.ts +61 -4
  132. package/src/embed/base.ts +21 -7
  133. package/src/embed/bodyless-conversation.ts +17 -0
  134. package/src/embed/conversation.spec.ts +16 -0
  135. package/src/embed/conversation.ts +4 -0
  136. package/src/embed/liveboard.spec.ts +2 -2
  137. package/src/embed/liveboard.ts +1 -2
  138. package/src/embed/sage.ts +0 -1
  139. package/src/embed/search.spec.ts +6 -6
  140. package/src/embed/search.ts +1 -1
  141. package/src/embed/ts-embed.spec.ts +48 -1
  142. package/src/embed/ts-embed.ts +16 -2
  143. package/src/errors.ts +10 -9
  144. package/src/react/index.spec.tsx +2 -2
  145. package/src/types.ts +71 -20
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.33.3 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.33.5 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
@@ -1693,22 +1693,26 @@
1693
1693
  */
1694
1694
  EmbedEvent["Rename"] = "rename";
1695
1695
  /**
1696
- * Emitted if the user wants to intercept the search execution
1697
- * and implement logic to decide whether to run the search or not
1698
1696
  *
1699
- * Prerequisite: Set isOnBeforeGetVizDataInterceptEnabled : true
1697
+ * This event can be emitted to intercept search execution initiated by
1698
+ * the users and implement the logic to allow or restrict search execution.
1699
+ * You can can also show custom error text if the search query must be
1700
+ * restricted due to your application or business requirements.
1701
+
1702
+ * Prerequisite: Set `isOnBeforeGetVizDataInterceptEnabled` to `true`
1700
1703
  * for this embed event to get emitted.
1701
1704
  * @param: payload
1702
1705
  * @param: responder
1703
1706
  * Contains elements that lets developers define whether ThoughtSpot
1704
- * will run the search or not, and if not, which error message to provide.
1707
+ * should run the search, and if not, what error message
1708
+ * should be shown to the user.
1705
1709
  *
1706
- * execute: When execute returns true, the search will be run.
1707
- * When execute returns false, the search will not be executed.
1710
+ * execute: When execute returns `true`, the search will be run.
1711
+ * When execute returns `false`, the search will not be executed.
1708
1712
  *
1709
- * error: Developers can customize the user facing message when execute is
1710
- * set to false using the error parameter in responder
1711
- * @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
1713
+ * error: Developers can customize the error message text when `execute`
1714
+ * returns `false` using the error parameter in responder.
1715
+ * @version SDK : 1.29.0 | Thoughtspot : 10.3.0.cl
1712
1716
  * @example
1713
1717
  *```js
1714
1718
  * .on(EmbedEvent.OnBeforeGetVizDataIntercept,
@@ -1748,15 +1752,15 @@
1748
1752
  */
1749
1753
  EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
1750
1754
  /**
1751
- * Emitted when parameter changes in an answer
1752
- * or liveboard
1755
+ * Emitted when parameter changes in an Answer
1756
+ * or Liveboard
1753
1757
  *
1754
1758
  * ```js
1755
1759
  * liveboardEmbed.on(EmbedEvent.ParameterChanged, (payload) => {
1756
1760
  * console.log('payload', payload);
1757
1761
  * })
1758
1762
  *```
1759
- * @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
1763
+ * @version SDK : 1.29.0 | Thoughtspot : 10.3.0.cl
1760
1764
  */
1761
1765
  EmbedEvent["ParameterChanged"] = "parameterChanged";
1762
1766
  })(exports.EmbedEvent || (exports.EmbedEvent = {}));
@@ -2487,11 +2491,13 @@
2487
2491
  * see link:https://developers.thoughtspot.com/docs/runtime-filters#rtOperator[Developer Documentation].
2488
2492
  *
2489
2493
  * `values` - An array of one or several values. The value definition on the
2490
- * data type you choose to filter on. For a complete list of supported data types, see
2491
- * link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported data types]
2494
+ * data type you choose to filter on. For a complete list of supported data types,
2495
+ * see
2496
+ * link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported
2497
+ * data types].
2498
+ *
2492
2499
  * `type` - To update filters for date time, specify the date format type.
2493
2500
  * For more information and examples, see link:https://developers.thoughtspot.com/docs/embed-liveboard#_date_filters[Date filters].
2494
- *
2495
2501
  * @example
2496
2502
  * ```js
2497
2503
  *
@@ -2782,6 +2788,8 @@
2782
2788
  Param["ShowLiveboardReverifyBanner"] = "showLiveboardReverifyBanner";
2783
2789
  Param["LiveboardHeaderV2"] = "isLiveboardHeaderV2Enabled";
2784
2790
  Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
2791
+ Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
2792
+ Param["OverrideOrgId"] = "orgId";
2785
2793
  })(Param || (Param = {}));
2786
2794
  /**
2787
2795
  * ThoughtSpot application pages include actions and menu commands
@@ -3753,7 +3761,7 @@
3753
3761
  */
3754
3762
  Action["AIHighlights"] = "AIHighlights";
3755
3763
  /**
3756
- * Action ID for edit schedule action on schedule on homepage
3764
+ * Action ID for edit the schedule action on schedule on homepage
3757
3765
  * @example
3758
3766
  * ```js
3759
3767
  * disabledActions: [Action.EditScheduleHomepage]
@@ -3815,6 +3823,15 @@
3815
3823
  * @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
3816
3824
  */
3817
3825
  Action["KPIAnalysisCTA"] = "kpiAnalysisCTA";
3826
+ /**
3827
+ * Action ID for disabling chip reorder in Answer and Liveboard
3828
+ * @example
3829
+ * ```js
3830
+ * const disabledActions = [Action.DisableChipReorder]
3831
+ * ```
3832
+ * @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
3833
+ */
3834
+ Action["DisableChipReorder"] = "disableChipReorder";
3818
3835
  })(exports.Action || (exports.Action = {}));
3819
3836
  var PrefetchFeatures;
3820
3837
  (function (PrefetchFeatures) {
@@ -4188,17 +4205,17 @@
4188
4205
  var _Symbol = Symbol$1;
4189
4206
 
4190
4207
  /** Used for built-in method references. */
4191
- var objectProto$b = Object.prototype;
4208
+ var objectProto$c = Object.prototype;
4192
4209
 
4193
4210
  /** Used to check objects for own properties. */
4194
- var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
4211
+ var hasOwnProperty$a = objectProto$c.hasOwnProperty;
4195
4212
 
4196
4213
  /**
4197
4214
  * Used to resolve the
4198
4215
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
4199
4216
  * of values.
4200
4217
  */
4201
- var nativeObjectToString$1 = objectProto$b.toString;
4218
+ var nativeObjectToString$1 = objectProto$c.toString;
4202
4219
 
4203
4220
  /** Built-in value references. */
4204
4221
  var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
@@ -4211,7 +4228,7 @@
4211
4228
  * @returns {string} Returns the raw `toStringTag`.
4212
4229
  */
4213
4230
  function getRawTag(value) {
4214
- var isOwn = hasOwnProperty$9.call(value, symToStringTag$1),
4231
+ var isOwn = hasOwnProperty$a.call(value, symToStringTag$1),
4215
4232
  tag = value[symToStringTag$1];
4216
4233
 
4217
4234
  try {
@@ -4233,14 +4250,14 @@
4233
4250
  var _getRawTag = getRawTag;
4234
4251
 
4235
4252
  /** Used for built-in method references. */
4236
- var objectProto$a = Object.prototype;
4253
+ var objectProto$b = Object.prototype;
4237
4254
 
4238
4255
  /**
4239
4256
  * Used to resolve the
4240
4257
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
4241
4258
  * of values.
4242
4259
  */
4243
- var nativeObjectToString = objectProto$a.toString;
4260
+ var nativeObjectToString = objectProto$b.toString;
4244
4261
 
4245
4262
  /**
4246
4263
  * Converts `value` to a string using `Object.prototype.toString`.
@@ -4409,17 +4426,17 @@
4409
4426
 
4410
4427
  /** Used for built-in method references. */
4411
4428
  var funcProto = Function.prototype,
4412
- objectProto$9 = Object.prototype;
4429
+ objectProto$a = Object.prototype;
4413
4430
 
4414
4431
  /** Used to resolve the decompiled source of functions. */
4415
4432
  var funcToString = funcProto.toString;
4416
4433
 
4417
4434
  /** Used to check objects for own properties. */
4418
- var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
4435
+ var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
4419
4436
 
4420
4437
  /** Used to detect if a method is native. */
4421
4438
  var reIsNative = RegExp('^' +
4422
- funcToString.call(hasOwnProperty$8).replace(reRegExpChar, '\\$&')
4439
+ funcToString.call(hasOwnProperty$9).replace(reRegExpChar, '\\$&')
4423
4440
  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
4424
4441
  );
4425
4442
 
@@ -4516,10 +4533,10 @@
4516
4533
  var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
4517
4534
 
4518
4535
  /** Used for built-in method references. */
4519
- var objectProto$8 = Object.prototype;
4536
+ var objectProto$9 = Object.prototype;
4520
4537
 
4521
4538
  /** Used to check objects for own properties. */
4522
- var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
4539
+ var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
4523
4540
 
4524
4541
  /**
4525
4542
  * Gets the hash value for `key`.
@@ -4536,16 +4553,16 @@
4536
4553
  var result = data[key];
4537
4554
  return result === HASH_UNDEFINED$2 ? undefined : result;
4538
4555
  }
4539
- return hasOwnProperty$7.call(data, key) ? data[key] : undefined;
4556
+ return hasOwnProperty$8.call(data, key) ? data[key] : undefined;
4540
4557
  }
4541
4558
 
4542
4559
  var _hashGet = hashGet;
4543
4560
 
4544
4561
  /** Used for built-in method references. */
4545
- var objectProto$7 = Object.prototype;
4562
+ var objectProto$8 = Object.prototype;
4546
4563
 
4547
4564
  /** Used to check objects for own properties. */
4548
- var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
4565
+ var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
4549
4566
 
4550
4567
  /**
4551
4568
  * Checks if a hash value for `key` exists.
@@ -4558,7 +4575,7 @@
4558
4575
  */
4559
4576
  function hashHas(key) {
4560
4577
  var data = this.__data__;
4561
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$6.call(data, key);
4578
+ return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$7.call(data, key);
4562
4579
  }
4563
4580
 
4564
4581
  var _hashHas = hashHas;
@@ -5039,10 +5056,10 @@
5039
5056
  var boolTag$2 = '[object Boolean]',
5040
5057
  dateTag$1 = '[object Date]',
5041
5058
  errorTag$1 = '[object Error]',
5042
- mapTag$2 = '[object Map]',
5059
+ mapTag$3 = '[object Map]',
5043
5060
  numberTag$1 = '[object Number]',
5044
5061
  regexpTag$1 = '[object RegExp]',
5045
- setTag$2 = '[object Set]',
5062
+ setTag$3 = '[object Set]',
5046
5063
  stringTag$1 = '[object String]',
5047
5064
  symbolTag = '[object Symbol]';
5048
5065
 
@@ -5104,10 +5121,10 @@
5104
5121
  // for more details.
5105
5122
  return object == (other + '');
5106
5123
 
5107
- case mapTag$2:
5124
+ case mapTag$3:
5108
5125
  var convert = _mapToArray;
5109
5126
 
5110
- case setTag$2:
5127
+ case setTag$3:
5111
5128
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
5112
5129
  convert || (convert = _setToArray);
5113
5130
 
@@ -5254,10 +5271,10 @@
5254
5271
  var stubArray_1 = stubArray;
5255
5272
 
5256
5273
  /** Used for built-in method references. */
5257
- var objectProto$6 = Object.prototype;
5274
+ var objectProto$7 = Object.prototype;
5258
5275
 
5259
5276
  /** Built-in value references. */
5260
- var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
5277
+ var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
5261
5278
 
5262
5279
  /* Built-in method references for those with the same name as other `lodash` methods. */
5263
5280
  var nativeGetSymbols = Object.getOwnPropertySymbols;
@@ -5349,13 +5366,13 @@
5349
5366
  var _baseIsArguments = baseIsArguments;
5350
5367
 
5351
5368
  /** Used for built-in method references. */
5352
- var objectProto$5 = Object.prototype;
5369
+ var objectProto$6 = Object.prototype;
5353
5370
 
5354
5371
  /** Used to check objects for own properties. */
5355
- var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
5372
+ var hasOwnProperty$6 = objectProto$6.hasOwnProperty;
5356
5373
 
5357
5374
  /** Built-in value references. */
5358
- var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
5375
+ var propertyIsEnumerable = objectProto$6.propertyIsEnumerable;
5359
5376
 
5360
5377
  /**
5361
5378
  * Checks if `value` is likely an `arguments` object.
@@ -5376,7 +5393,7 @@
5376
5393
  * // => false
5377
5394
  */
5378
5395
  var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
5379
- return isObjectLike_1(value) && hasOwnProperty$5.call(value, 'callee') &&
5396
+ return isObjectLike_1(value) && hasOwnProperty$6.call(value, 'callee') &&
5380
5397
  !propertyIsEnumerable.call(value, 'callee');
5381
5398
  };
5382
5399
 
@@ -5508,11 +5525,11 @@
5508
5525
  dateTag = '[object Date]',
5509
5526
  errorTag = '[object Error]',
5510
5527
  funcTag = '[object Function]',
5511
- mapTag$1 = '[object Map]',
5528
+ mapTag$2 = '[object Map]',
5512
5529
  numberTag = '[object Number]',
5513
5530
  objectTag$2 = '[object Object]',
5514
5531
  regexpTag = '[object RegExp]',
5515
- setTag$1 = '[object Set]',
5532
+ setTag$2 = '[object Set]',
5516
5533
  stringTag = '[object String]',
5517
5534
  weakMapTag$1 = '[object WeakMap]';
5518
5535
 
@@ -5539,9 +5556,9 @@
5539
5556
  typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag$1] =
5540
5557
  typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] =
5541
5558
  typedArrayTags[errorTag] = typedArrayTags[funcTag] =
5542
- typedArrayTags[mapTag$1] = typedArrayTags[numberTag] =
5559
+ typedArrayTags[mapTag$2] = typedArrayTags[numberTag] =
5543
5560
  typedArrayTags[objectTag$2] = typedArrayTags[regexpTag] =
5544
- typedArrayTags[setTag$1] = typedArrayTags[stringTag] =
5561
+ typedArrayTags[setTag$2] = typedArrayTags[stringTag] =
5545
5562
  typedArrayTags[weakMapTag$1] = false;
5546
5563
 
5547
5564
  /**
@@ -5629,10 +5646,10 @@
5629
5646
  var isTypedArray_1 = isTypedArray;
5630
5647
 
5631
5648
  /** Used for built-in method references. */
5632
- var objectProto$4 = Object.prototype;
5649
+ var objectProto$5 = Object.prototype;
5633
5650
 
5634
5651
  /** Used to check objects for own properties. */
5635
- var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
5652
+ var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
5636
5653
 
5637
5654
  /**
5638
5655
  * Creates an array of the enumerable property names of the array-like `value`.
@@ -5652,7 +5669,7 @@
5652
5669
  length = result.length;
5653
5670
 
5654
5671
  for (var key in value) {
5655
- if ((inherited || hasOwnProperty$4.call(value, key)) &&
5672
+ if ((inherited || hasOwnProperty$5.call(value, key)) &&
5656
5673
  !(skipIndexes && (
5657
5674
  // Safari 9 has enumerable `arguments.length` in strict mode.
5658
5675
  key == 'length' ||
@@ -5672,7 +5689,7 @@
5672
5689
  var _arrayLikeKeys = arrayLikeKeys;
5673
5690
 
5674
5691
  /** Used for built-in method references. */
5675
- var objectProto$3 = Object.prototype;
5692
+ var objectProto$4 = Object.prototype;
5676
5693
 
5677
5694
  /**
5678
5695
  * Checks if `value` is likely a prototype object.
@@ -5683,7 +5700,7 @@
5683
5700
  */
5684
5701
  function isPrototype(value) {
5685
5702
  var Ctor = value && value.constructor,
5686
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$3;
5703
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$4;
5687
5704
 
5688
5705
  return value === proto;
5689
5706
  }
@@ -5712,10 +5729,10 @@
5712
5729
  var _nativeKeys = nativeKeys;
5713
5730
 
5714
5731
  /** Used for built-in method references. */
5715
- var objectProto$2 = Object.prototype;
5732
+ var objectProto$3 = Object.prototype;
5716
5733
 
5717
5734
  /** Used to check objects for own properties. */
5718
- var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
5735
+ var hasOwnProperty$4 = objectProto$3.hasOwnProperty;
5719
5736
 
5720
5737
  /**
5721
5738
  * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
@@ -5730,7 +5747,7 @@
5730
5747
  }
5731
5748
  var result = [];
5732
5749
  for (var key in Object(object)) {
5733
- if (hasOwnProperty$3.call(object, key) && key != 'constructor') {
5750
+ if (hasOwnProperty$4.call(object, key) && key != 'constructor') {
5734
5751
  result.push(key);
5735
5752
  }
5736
5753
  }
@@ -5821,10 +5838,10 @@
5821
5838
  var COMPARE_PARTIAL_FLAG$1 = 1;
5822
5839
 
5823
5840
  /** Used for built-in method references. */
5824
- var objectProto$1 = Object.prototype;
5841
+ var objectProto$2 = Object.prototype;
5825
5842
 
5826
5843
  /** Used to check objects for own properties. */
5827
- var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
5844
+ var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
5828
5845
 
5829
5846
  /**
5830
5847
  * A specialized version of `baseIsEqualDeep` for objects with support for
@@ -5852,7 +5869,7 @@
5852
5869
  var index = objLength;
5853
5870
  while (index--) {
5854
5871
  var key = objProps[index];
5855
- if (!(isPartial ? key in other : hasOwnProperty$2.call(other, key))) {
5872
+ if (!(isPartial ? key in other : hasOwnProperty$3.call(other, key))) {
5856
5873
  return false;
5857
5874
  }
5858
5875
  }
@@ -5927,10 +5944,10 @@
5927
5944
  var _WeakMap = WeakMap;
5928
5945
 
5929
5946
  /** `Object#toString` result references. */
5930
- var mapTag = '[object Map]',
5947
+ var mapTag$1 = '[object Map]',
5931
5948
  objectTag$1 = '[object Object]',
5932
5949
  promiseTag = '[object Promise]',
5933
- setTag = '[object Set]',
5950
+ setTag$1 = '[object Set]',
5934
5951
  weakMapTag = '[object WeakMap]';
5935
5952
 
5936
5953
  var dataViewTag = '[object DataView]';
@@ -5953,9 +5970,9 @@
5953
5970
 
5954
5971
  // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
5955
5972
  if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag) ||
5956
- (_Map && getTag(new _Map) != mapTag) ||
5973
+ (_Map && getTag(new _Map) != mapTag$1) ||
5957
5974
  (_Promise && getTag(_Promise.resolve()) != promiseTag) ||
5958
- (_Set && getTag(new _Set) != setTag) ||
5975
+ (_Set && getTag(new _Set) != setTag$1) ||
5959
5976
  (_WeakMap && getTag(new _WeakMap) != weakMapTag)) {
5960
5977
  getTag = function(value) {
5961
5978
  var result = _baseGetTag(value),
@@ -5965,9 +5982,9 @@
5965
5982
  if (ctorString) {
5966
5983
  switch (ctorString) {
5967
5984
  case dataViewCtorString: return dataViewTag;
5968
- case mapCtorString: return mapTag;
5985
+ case mapCtorString: return mapTag$1;
5969
5986
  case promiseCtorString: return promiseTag;
5970
- case setCtorString: return setTag;
5987
+ case setCtorString: return setTag$1;
5971
5988
  case weakMapCtorString: return weakMapTag;
5972
5989
  }
5973
5990
  }
@@ -5986,10 +6003,10 @@
5986
6003
  objectTag = '[object Object]';
5987
6004
 
5988
6005
  /** Used for built-in method references. */
5989
- var objectProto = Object.prototype;
6006
+ var objectProto$1 = Object.prototype;
5990
6007
 
5991
6008
  /** Used to check objects for own properties. */
5992
- var hasOwnProperty$1 = objectProto.hasOwnProperty;
6009
+ var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
5993
6010
 
5994
6011
  /**
5995
6012
  * A specialized version of `baseIsEqual` for arrays and objects which performs
@@ -6032,8 +6049,8 @@
6032
6049
  : _equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
6033
6050
  }
6034
6051
  if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
6035
- var objIsWrapped = objIsObj && hasOwnProperty$1.call(object, '__wrapped__'),
6036
- othIsWrapped = othIsObj && hasOwnProperty$1.call(other, '__wrapped__');
6052
+ var objIsWrapped = objIsObj && hasOwnProperty$2.call(object, '__wrapped__'),
6053
+ othIsWrapped = othIsObj && hasOwnProperty$2.call(other, '__wrapped__');
6037
6054
 
6038
6055
  if (objIsWrapped || othIsWrapped) {
6039
6056
  var objUnwrapped = objIsWrapped ? object.value() : object,
@@ -6112,6 +6129,75 @@
6112
6129
 
6113
6130
  var isEqual_1 = isEqual;
6114
6131
 
6132
+ /** `Object#toString` result references. */
6133
+ var mapTag = '[object Map]',
6134
+ setTag = '[object Set]';
6135
+
6136
+ /** Used for built-in method references. */
6137
+ var objectProto = Object.prototype;
6138
+
6139
+ /** Used to check objects for own properties. */
6140
+ var hasOwnProperty$1 = objectProto.hasOwnProperty;
6141
+
6142
+ /**
6143
+ * Checks if `value` is an empty object, collection, map, or set.
6144
+ *
6145
+ * Objects are considered empty if they have no own enumerable string keyed
6146
+ * properties.
6147
+ *
6148
+ * Array-like values such as `arguments` objects, arrays, buffers, strings, or
6149
+ * jQuery-like collections are considered empty if they have a `length` of `0`.
6150
+ * Similarly, maps and sets are considered empty if they have a `size` of `0`.
6151
+ *
6152
+ * @static
6153
+ * @memberOf _
6154
+ * @since 0.1.0
6155
+ * @category Lang
6156
+ * @param {*} value The value to check.
6157
+ * @returns {boolean} Returns `true` if `value` is empty, else `false`.
6158
+ * @example
6159
+ *
6160
+ * _.isEmpty(null);
6161
+ * // => true
6162
+ *
6163
+ * _.isEmpty(true);
6164
+ * // => true
6165
+ *
6166
+ * _.isEmpty(1);
6167
+ * // => true
6168
+ *
6169
+ * _.isEmpty([1, 2, 3]);
6170
+ * // => false
6171
+ *
6172
+ * _.isEmpty({ 'a': 1 });
6173
+ * // => false
6174
+ */
6175
+ function isEmpty$1(value) {
6176
+ if (value == null) {
6177
+ return true;
6178
+ }
6179
+ if (isArrayLike_1(value) &&
6180
+ (isArray_1(value) || typeof value == 'string' || typeof value.splice == 'function' ||
6181
+ isBuffer_1(value) || isTypedArray_1(value) || isArguments_1(value))) {
6182
+ return !value.length;
6183
+ }
6184
+ var tag = _getTag(value);
6185
+ if (tag == mapTag || tag == setTag) {
6186
+ return !value.size;
6187
+ }
6188
+ if (_isPrototype(value)) {
6189
+ return !_baseKeys(value).length;
6190
+ }
6191
+ for (var key in value) {
6192
+ if (hasOwnProperty$1.call(value, key)) {
6193
+ return false;
6194
+ }
6195
+ }
6196
+ return true;
6197
+ }
6198
+
6199
+ var isEmpty_1 = isEmpty$1;
6200
+
6115
6201
  const logFunctions = {
6116
6202
  [exports.LogLevel.SILENT]: () => undefined,
6117
6203
  [exports.LogLevel.ERROR]: console.error,
@@ -6181,20 +6267,21 @@
6181
6267
 
6182
6268
  const ERROR_MESSAGE = {
6183
6269
  INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
6184
- LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a liveboard to embed.',
6185
- TRIGGER_TIMED_OUT: 'Trigger timedout in getting response',
6186
- SEARCHEMBED_BETA_WRANING_MESSAGE: 'Search Embed is in Beta in this release.',
6187
- SAGE_EMBED_BETA_WARNING_MESSAGE: 'Sage Embed is in Beta in this release.',
6188
- THIRD_PARTY_COOKIE_BLOCKED_ALERT: 'Third party cookie access is blocked on this browser, please allow third party cookies for this to work properly. \nYou can use `suppressNoCookieAccessAlert` to suppress this message.',
6189
- DUPLICATE_TOKEN_ERR: 'Duplicate token, please issue a new token every time getAuthToken callback is called. See https://developers.thoughtspot.com/docs/?pageid=embed-auth#trusted-auth-embed for more details.',
6270
+ SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND: 'Please select a worksheet to get started',
6271
+ LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a Liveboard to embed.',
6272
+ TRIGGER_TIMED_OUT: 'Trigger timed-out in getting a response',
6273
+ SEARCHEMBED_BETA_WRANING_MESSAGE: 'SearchEmbed is in Beta in this release.',
6274
+ SAGE_EMBED_BETA_WARNING_MESSAGE: 'SageEmbed is in Beta in this release.',
6275
+ THIRD_PARTY_COOKIE_BLOCKED_ALERT: 'Third-party cookie access is blocked on this browser. Please allow third-party cookies for this to work properly. \nYou can use `suppressNoCookieAccessAlert` to suppress this message.',
6276
+ DUPLICATE_TOKEN_ERR: 'Duplicate token. Please issue a new token every time getAuthToken callback is called. See https://developers.thoughtspot.com/docs/?pageid=embed-auth#trusted-auth-embed for more details.',
6190
6277
  SDK_NOT_INITIALIZED: 'SDK not initialized',
6191
- SESSION_INFO_FAILED: 'Failed to get session info',
6278
+ SESSION_INFO_FAILED: 'Failed to get session information',
6192
6279
  INVALID_TOKEN_ERROR: 'Received invalid token from getAuthToken callback or authToken endpoint.',
6193
6280
  MIXPANEL_TOKEN_NOT_FOUND: 'Mixpanel token not found in session info',
6194
- PRERENDER_ID_MISSING: 'PreRender id is required for preRender',
6281
+ PRERENDER_ID_MISSING: 'PreRender ID is required for preRender',
6195
6282
  SYNC_STYLE_CALLED_BEFORE_RENDER: 'PreRender should be called before using syncPreRenderStyle',
6196
6283
  CSP_VIOLATION_ALERT: 'CSP violation detected. Please check the console errors for more details.',
6197
- CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE: 'Please setup CSP Correctly for the Application to start working. You can know more about setting CSP Correctly here: https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts. \n In case you are still facing error, please read: https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts',
6284
+ CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE: 'Please set up CSP correctly for the application to start working. For more information, see https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts. \n If the issue persists, refer to https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts',
6198
6285
  MISSING_REPORTING_OBSERVER: 'ReportingObserver not supported',
6199
6286
  };
6200
6287
 
@@ -14219,10 +14306,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14219
14306
  return authPromise;
14220
14307
  };
14221
14308
  ({
14222
- [PrefetchFeatures.SearchEmbed]: (url) => `${url}v2/#/embed/answer`,
14223
- [PrefetchFeatures.LiveboardEmbed]: (url) => url,
14224
- [PrefetchFeatures.FullApp]: (url) => url,
14225
- [PrefetchFeatures.VizEmbed]: (url) => url,
14309
+ [PrefetchFeatures.SearchEmbed]: (url, flags) => `${url}v2/?${flags}#/embed/answer`,
14310
+ [PrefetchFeatures.LiveboardEmbed]: (url, flags) => `${url}?${flags}`,
14311
+ [PrefetchFeatures.FullApp]: (url, flags) => `${url}?${flags}`,
14312
+ [PrefetchFeatures.VizEmbed]: (url, flags) => `${url}?${flags}`,
14226
14313
  });
14227
14314
  /**
14228
14315
  *
@@ -14401,7 +14488,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14401
14488
  });
14402
14489
  }
14403
14490
 
14404
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.3";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};
14491
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.5";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"30 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
14405
14492
 
14406
14493
  /**
14407
14494
  * Copyright (c) 2022
@@ -14680,6 +14767,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14680
14767
  if (hostAppUrl.includes('localhost') || hostAppUrl.includes('127.0.0.1')) {
14681
14768
  hostAppUrl = 'local-host';
14682
14769
  }
14770
+ queryParams[Param.EmbedApp] = true;
14683
14771
  queryParams[Param.HostAppUrl] = encodeURIComponent(hostAppUrl);
14684
14772
  queryParams[Param.ViewPortHeight] = window.innerHeight;
14685
14773
  queryParams[Param.ViewPortWidth] = window.innerWidth;
@@ -14707,7 +14795,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14707
14795
  if (this.embedConfig.currencyFormat) {
14708
14796
  queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
14709
14797
  }
14710
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, } = this.viewConfig;
14798
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, } = this.viewConfig;
14799
+ const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
14800
+ const additionalFlags = {
14801
+ ...additionalFlagsFromInit,
14802
+ ...additionalFlagsFromView,
14803
+ };
14711
14804
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
14712
14805
  this.handleError('You cannot have both hidden actions and visible actions');
14713
14806
  return queryParams;
@@ -14763,9 +14856,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14763
14856
  if (disableRedirectionLinksInNewTab) {
14764
14857
  queryParams[Param.DisableRedirectionLinksInNewTab] = disableRedirectionLinksInNewTab;
14765
14858
  }
14859
+ if (overrideOrgId !== undefined) {
14860
+ queryParams[Param.OverrideOrgId] = overrideOrgId;
14861
+ }
14766
14862
  queryParams[Param.OverrideNativeConsole] = true;
14767
14863
  queryParams[Param.ClientLogLevel] = this.embedConfig.logLevel;
14768
- if (additionalFlags && additionalFlags.constructor.name === 'Object') {
14864
+ if (isObject_1(additionalFlags) && !isEmpty_1(additionalFlags)) {
14769
14865
  Object.assign(queryParams, additionalFlags);
14770
14866
  }
14771
14867
  // Do not add any flags below this, as we want additional flags to
@@ -15516,7 +15612,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15516
15612
  getEmbedParams() {
15517
15613
  const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
15518
15614
  const params = this.getBaseQueryParams();
15519
- params[Param.EmbedApp] = true;
15520
15615
  params[Param.IsSageEmbed] = true;
15521
15616
  params[Param.DisableWorksheetChange] = !!disableWorksheetChange;
15522
15617
  params[Param.HideWorksheetSelector] = !!hideWorksheetSelector;
@@ -15625,7 +15720,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15625
15720
  }
15626
15721
  getEmbedParams() {
15627
15722
  var _a;
15628
- const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15723
+ const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15629
15724
  /* eslint-disable-next-line max-len */
15630
15725
  dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, collapseSearchBar = true, } = this.viewConfig;
15631
15726
  const queryParams = this.getBaseQueryParams();
@@ -15842,11 +15937,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15842
15937
  * embedded Liveboard or visualization.
15843
15938
  */
15844
15939
  getEmbedParams() {
15845
- const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15940
+ 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,
15846
15941
  /* eslint-disable-next-line max-len */
15847
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, } = this.viewConfig;
15942
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, } = this.viewConfig;
15848
15943
  let params = {};
15849
- params[Param.EmbedApp] = true;
15850
15944
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
15851
15945
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
15852
15946
  params[Param.HideApplicationSwitcher] = !!hideApplicationSwitcher;
@@ -15859,6 +15953,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15859
15953
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
15860
15954
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
15861
15955
  params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
15956
+ params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
15862
15957
  params = this.getBaseQueryParams(params);
15863
15958
  if (fullHeight === true) {
15864
15959
  params[Param.fullHeight] = true;
@@ -16135,9 +16230,8 @@ query GetEurekaVizSnapshots(
16135
16230
  */
16136
16231
  getEmbedParams() {
16137
16232
  let params = {};
16138
- params[Param.EmbedApp] = true;
16139
16233
  params = this.getBaseQueryParams(params);
16140
- const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, } = this.viewConfig;
16234
+ 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;
16141
16235
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
16142
16236
  || this.viewConfig.preventPinboardFilterRemoval;
16143
16237
  if (fullHeight === true) {
@@ -16370,6 +16464,9 @@ query GetEurekaVizSnapshots(
16370
16464
  getIframeSrc() {
16371
16465
  const { worksheetId, searchOptions, } = this.viewConfig;
16372
16466
  const path = 'insights/conv-assist';
16467
+ if (!worksheetId) {
16468
+ this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
16469
+ }
16373
16470
  const queryParams = this.getBaseQueryParams();
16374
16471
  queryParams[Param.SpotterEnabled] = true;
16375
16472
  let query = '';