@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 _mergeNamespaces(n, m) {
3
3
  m.forEach(function (e) {
4
4
  e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
@@ -1556,22 +1556,26 @@ var EmbedEvent;
1556
1556
  */
1557
1557
  EmbedEvent["Rename"] = "rename";
1558
1558
  /**
1559
- * Emitted if the user wants to intercept the search execution
1560
- * and implement logic to decide whether to run the search or not
1561
1559
  *
1562
- * Prerequisite: Set isOnBeforeGetVizDataInterceptEnabled : true
1560
+ * This event can be emitted to intercept search execution initiated by
1561
+ * the users and implement the logic to allow or restrict search execution.
1562
+ * You can can also show custom error text if the search query must be
1563
+ * restricted due to your application or business requirements.
1564
+
1565
+ * Prerequisite: Set `isOnBeforeGetVizDataInterceptEnabled` to `true`
1563
1566
  * for this embed event to get emitted.
1564
1567
  * @param: payload
1565
1568
  * @param: responder
1566
1569
  * Contains elements that lets developers define whether ThoughtSpot
1567
- * will run the search or not, and if not, which error message to provide.
1570
+ * should run the search, and if not, what error message
1571
+ * should be shown to the user.
1568
1572
  *
1569
- * execute: When execute returns true, the search will be run.
1570
- * When execute returns false, the search will not be executed.
1573
+ * execute: When execute returns `true`, the search will be run.
1574
+ * When execute returns `false`, the search will not be executed.
1571
1575
  *
1572
- * error: Developers can customize the user facing message when execute is
1573
- * set to false using the error parameter in responder
1574
- * @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
1576
+ * error: Developers can customize the error message text when `execute`
1577
+ * returns `false` using the error parameter in responder.
1578
+ * @version SDK : 1.29.0 | Thoughtspot : 10.3.0.cl
1575
1579
  * @example
1576
1580
  *```js
1577
1581
  * .on(EmbedEvent.OnBeforeGetVizDataIntercept,
@@ -1611,15 +1615,15 @@ var EmbedEvent;
1611
1615
  */
1612
1616
  EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
1613
1617
  /**
1614
- * Emitted when parameter changes in an answer
1615
- * or liveboard
1618
+ * Emitted when parameter changes in an Answer
1619
+ * or Liveboard
1616
1620
  *
1617
1621
  * ```js
1618
1622
  * liveboardEmbed.on(EmbedEvent.ParameterChanged, (payload) => {
1619
1623
  * console.log('payload', payload);
1620
1624
  * })
1621
1625
  *```
1622
- * @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
1626
+ * @version SDK : 1.29.0 | Thoughtspot : 10.3.0.cl
1623
1627
  */
1624
1628
  EmbedEvent["ParameterChanged"] = "parameterChanged";
1625
1629
  })(EmbedEvent || (EmbedEvent = {}));
@@ -2350,11 +2354,13 @@ var HostEvent;
2350
2354
  * see link:https://developers.thoughtspot.com/docs/runtime-filters#rtOperator[Developer Documentation].
2351
2355
  *
2352
2356
  * `values` - An array of one or several values. The value definition on the
2353
- * data type you choose to filter on. For a complete list of supported data types, see
2354
- * link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported data types]
2357
+ * data type you choose to filter on. For a complete list of supported data types,
2358
+ * see
2359
+ * link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported
2360
+ * data types].
2361
+ *
2355
2362
  * `type` - To update filters for date time, specify the date format type.
2356
2363
  * For more information and examples, see link:https://developers.thoughtspot.com/docs/embed-liveboard#_date_filters[Date filters].
2357
- *
2358
2364
  * @example
2359
2365
  * ```js
2360
2366
  *
@@ -2645,6 +2651,8 @@ var Param;
2645
2651
  Param["ShowLiveboardReverifyBanner"] = "showLiveboardReverifyBanner";
2646
2652
  Param["LiveboardHeaderV2"] = "isLiveboardHeaderV2Enabled";
2647
2653
  Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
2654
+ Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
2655
+ Param["OverrideOrgId"] = "orgId";
2648
2656
  })(Param || (Param = {}));
2649
2657
  /**
2650
2658
  * ThoughtSpot application pages include actions and menu commands
@@ -3616,7 +3624,7 @@ var Action;
3616
3624
  */
3617
3625
  Action["AIHighlights"] = "AIHighlights";
3618
3626
  /**
3619
- * Action ID for edit schedule action on schedule on homepage
3627
+ * Action ID for edit the schedule action on schedule on homepage
3620
3628
  * @example
3621
3629
  * ```js
3622
3630
  * disabledActions: [Action.EditScheduleHomepage]
@@ -3678,6 +3686,15 @@ var Action;
3678
3686
  * @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
3679
3687
  */
3680
3688
  Action["KPIAnalysisCTA"] = "kpiAnalysisCTA";
3689
+ /**
3690
+ * Action ID for disabling chip reorder in Answer and Liveboard
3691
+ * @example
3692
+ * ```js
3693
+ * const disabledActions = [Action.DisableChipReorder]
3694
+ * ```
3695
+ * @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
3696
+ */
3697
+ Action["DisableChipReorder"] = "disableChipReorder";
3681
3698
  })(Action || (Action = {}));
3682
3699
  var PrefetchFeatures;
3683
3700
  (function (PrefetchFeatures) {
@@ -4121,17 +4138,17 @@ var Symbol = _root.Symbol;
4121
4138
  var _Symbol = Symbol;
4122
4139
 
4123
4140
  /** Used for built-in method references. */
4124
- var objectProto$b = Object.prototype;
4141
+ var objectProto$c = Object.prototype;
4125
4142
 
4126
4143
  /** Used to check objects for own properties. */
4127
- var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
4144
+ var hasOwnProperty$a = objectProto$c.hasOwnProperty;
4128
4145
 
4129
4146
  /**
4130
4147
  * Used to resolve the
4131
4148
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
4132
4149
  * of values.
4133
4150
  */
4134
- var nativeObjectToString$1 = objectProto$b.toString;
4151
+ var nativeObjectToString$1 = objectProto$c.toString;
4135
4152
 
4136
4153
  /** Built-in value references. */
4137
4154
  var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
@@ -4144,7 +4161,7 @@ var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
4144
4161
  * @returns {string} Returns the raw `toStringTag`.
4145
4162
  */
4146
4163
  function getRawTag(value) {
4147
- var isOwn = hasOwnProperty$9.call(value, symToStringTag$1),
4164
+ var isOwn = hasOwnProperty$a.call(value, symToStringTag$1),
4148
4165
  tag = value[symToStringTag$1];
4149
4166
 
4150
4167
  try {
@@ -4166,14 +4183,14 @@ function getRawTag(value) {
4166
4183
  var _getRawTag = getRawTag;
4167
4184
 
4168
4185
  /** Used for built-in method references. */
4169
- var objectProto$a = Object.prototype;
4186
+ var objectProto$b = Object.prototype;
4170
4187
 
4171
4188
  /**
4172
4189
  * Used to resolve the
4173
4190
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
4174
4191
  * of values.
4175
4192
  */
4176
- var nativeObjectToString = objectProto$a.toString;
4193
+ var nativeObjectToString = objectProto$b.toString;
4177
4194
 
4178
4195
  /**
4179
4196
  * Converts `value` to a string using `Object.prototype.toString`.
@@ -4342,17 +4359,17 @@ var reIsHostCtor = /^\[object .+?Constructor\]$/;
4342
4359
 
4343
4360
  /** Used for built-in method references. */
4344
4361
  var funcProto = Function.prototype,
4345
- objectProto$9 = Object.prototype;
4362
+ objectProto$a = Object.prototype;
4346
4363
 
4347
4364
  /** Used to resolve the decompiled source of functions. */
4348
4365
  var funcToString = funcProto.toString;
4349
4366
 
4350
4367
  /** Used to check objects for own properties. */
4351
- var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
4368
+ var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
4352
4369
 
4353
4370
  /** Used to detect if a method is native. */
4354
4371
  var reIsNative = RegExp('^' +
4355
- funcToString.call(hasOwnProperty$8).replace(reRegExpChar, '\\$&')
4372
+ funcToString.call(hasOwnProperty$9).replace(reRegExpChar, '\\$&')
4356
4373
  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
4357
4374
  );
4358
4375
 
@@ -4449,10 +4466,10 @@ var _hashDelete = hashDelete;
4449
4466
  var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
4450
4467
 
4451
4468
  /** Used for built-in method references. */
4452
- var objectProto$8 = Object.prototype;
4469
+ var objectProto$9 = Object.prototype;
4453
4470
 
4454
4471
  /** Used to check objects for own properties. */
4455
- var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
4472
+ var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
4456
4473
 
4457
4474
  /**
4458
4475
  * Gets the hash value for `key`.
@@ -4469,16 +4486,16 @@ function hashGet(key) {
4469
4486
  var result = data[key];
4470
4487
  return result === HASH_UNDEFINED$2 ? undefined : result;
4471
4488
  }
4472
- return hasOwnProperty$7.call(data, key) ? data[key] : undefined;
4489
+ return hasOwnProperty$8.call(data, key) ? data[key] : undefined;
4473
4490
  }
4474
4491
 
4475
4492
  var _hashGet = hashGet;
4476
4493
 
4477
4494
  /** Used for built-in method references. */
4478
- var objectProto$7 = Object.prototype;
4495
+ var objectProto$8 = Object.prototype;
4479
4496
 
4480
4497
  /** Used to check objects for own properties. */
4481
- var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
4498
+ var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
4482
4499
 
4483
4500
  /**
4484
4501
  * Checks if a hash value for `key` exists.
@@ -4491,7 +4508,7 @@ var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
4491
4508
  */
4492
4509
  function hashHas(key) {
4493
4510
  var data = this.__data__;
4494
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$6.call(data, key);
4511
+ return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$7.call(data, key);
4495
4512
  }
4496
4513
 
4497
4514
  var _hashHas = hashHas;
@@ -4972,10 +4989,10 @@ var COMPARE_PARTIAL_FLAG$2 = 1,
4972
4989
  var boolTag$1 = '[object Boolean]',
4973
4990
  dateTag$1 = '[object Date]',
4974
4991
  errorTag$1 = '[object Error]',
4975
- mapTag$2 = '[object Map]',
4992
+ mapTag$3 = '[object Map]',
4976
4993
  numberTag$1 = '[object Number]',
4977
4994
  regexpTag$1 = '[object RegExp]',
4978
- setTag$2 = '[object Set]',
4995
+ setTag$3 = '[object Set]',
4979
4996
  stringTag$1 = '[object String]',
4980
4997
  symbolTag = '[object Symbol]';
4981
4998
 
@@ -5037,10 +5054,10 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
5037
5054
  // for more details.
5038
5055
  return object == (other + '');
5039
5056
 
5040
- case mapTag$2:
5057
+ case mapTag$3:
5041
5058
  var convert = _mapToArray;
5042
5059
 
5043
- case setTag$2:
5060
+ case setTag$3:
5044
5061
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
5045
5062
  convert || (convert = _setToArray);
5046
5063
 
@@ -5187,10 +5204,10 @@ function stubArray() {
5187
5204
  var stubArray_1 = stubArray;
5188
5205
 
5189
5206
  /** Used for built-in method references. */
5190
- var objectProto$6 = Object.prototype;
5207
+ var objectProto$7 = Object.prototype;
5191
5208
 
5192
5209
  /** Built-in value references. */
5193
- var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
5210
+ var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
5194
5211
 
5195
5212
  /* Built-in method references for those with the same name as other `lodash` methods. */
5196
5213
  var nativeGetSymbols = Object.getOwnPropertySymbols;
@@ -5282,13 +5299,13 @@ function baseIsArguments(value) {
5282
5299
  var _baseIsArguments = baseIsArguments;
5283
5300
 
5284
5301
  /** Used for built-in method references. */
5285
- var objectProto$5 = Object.prototype;
5302
+ var objectProto$6 = Object.prototype;
5286
5303
 
5287
5304
  /** Used to check objects for own properties. */
5288
- var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
5305
+ var hasOwnProperty$6 = objectProto$6.hasOwnProperty;
5289
5306
 
5290
5307
  /** Built-in value references. */
5291
- var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
5308
+ var propertyIsEnumerable = objectProto$6.propertyIsEnumerable;
5292
5309
 
5293
5310
  /**
5294
5311
  * Checks if `value` is likely an `arguments` object.
@@ -5309,7 +5326,7 @@ var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
5309
5326
  * // => false
5310
5327
  */
5311
5328
  var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
5312
- return isObjectLike_1(value) && hasOwnProperty$5.call(value, 'callee') &&
5329
+ return isObjectLike_1(value) && hasOwnProperty$6.call(value, 'callee') &&
5313
5330
  !propertyIsEnumerable.call(value, 'callee');
5314
5331
  };
5315
5332
 
@@ -5441,11 +5458,11 @@ var argsTag$1 = '[object Arguments]',
5441
5458
  dateTag = '[object Date]',
5442
5459
  errorTag = '[object Error]',
5443
5460
  funcTag = '[object Function]',
5444
- mapTag$1 = '[object Map]',
5461
+ mapTag$2 = '[object Map]',
5445
5462
  numberTag = '[object Number]',
5446
5463
  objectTag$2 = '[object Object]',
5447
5464
  regexpTag = '[object RegExp]',
5448
- setTag$1 = '[object Set]',
5465
+ setTag$2 = '[object Set]',
5449
5466
  stringTag = '[object String]',
5450
5467
  weakMapTag$1 = '[object WeakMap]';
5451
5468
 
@@ -5472,9 +5489,9 @@ typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
5472
5489
  typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
5473
5490
  typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] =
5474
5491
  typedArrayTags[errorTag] = typedArrayTags[funcTag] =
5475
- typedArrayTags[mapTag$1] = typedArrayTags[numberTag] =
5492
+ typedArrayTags[mapTag$2] = typedArrayTags[numberTag] =
5476
5493
  typedArrayTags[objectTag$2] = typedArrayTags[regexpTag] =
5477
- typedArrayTags[setTag$1] = typedArrayTags[stringTag] =
5494
+ typedArrayTags[setTag$2] = typedArrayTags[stringTag] =
5478
5495
  typedArrayTags[weakMapTag$1] = false;
5479
5496
 
5480
5497
  /**
@@ -5562,10 +5579,10 @@ var isTypedArray = nodeIsTypedArray ? _baseUnary(nodeIsTypedArray) : _baseIsType
5562
5579
  var isTypedArray_1 = isTypedArray;
5563
5580
 
5564
5581
  /** Used for built-in method references. */
5565
- var objectProto$4 = Object.prototype;
5582
+ var objectProto$5 = Object.prototype;
5566
5583
 
5567
5584
  /** Used to check objects for own properties. */
5568
- var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
5585
+ var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
5569
5586
 
5570
5587
  /**
5571
5588
  * Creates an array of the enumerable property names of the array-like `value`.
@@ -5585,7 +5602,7 @@ function arrayLikeKeys(value, inherited) {
5585
5602
  length = result.length;
5586
5603
 
5587
5604
  for (var key in value) {
5588
- if ((inherited || hasOwnProperty$4.call(value, key)) &&
5605
+ if ((inherited || hasOwnProperty$5.call(value, key)) &&
5589
5606
  !(skipIndexes && (
5590
5607
  // Safari 9 has enumerable `arguments.length` in strict mode.
5591
5608
  key == 'length' ||
@@ -5605,7 +5622,7 @@ function arrayLikeKeys(value, inherited) {
5605
5622
  var _arrayLikeKeys = arrayLikeKeys;
5606
5623
 
5607
5624
  /** Used for built-in method references. */
5608
- var objectProto$3 = Object.prototype;
5625
+ var objectProto$4 = Object.prototype;
5609
5626
 
5610
5627
  /**
5611
5628
  * Checks if `value` is likely a prototype object.
@@ -5616,7 +5633,7 @@ var objectProto$3 = Object.prototype;
5616
5633
  */
5617
5634
  function isPrototype(value) {
5618
5635
  var Ctor = value && value.constructor,
5619
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$3;
5636
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$4;
5620
5637
 
5621
5638
  return value === proto;
5622
5639
  }
@@ -5645,10 +5662,10 @@ var nativeKeys = _overArg(Object.keys, Object);
5645
5662
  var _nativeKeys = nativeKeys;
5646
5663
 
5647
5664
  /** Used for built-in method references. */
5648
- var objectProto$2 = Object.prototype;
5665
+ var objectProto$3 = Object.prototype;
5649
5666
 
5650
5667
  /** Used to check objects for own properties. */
5651
- var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
5668
+ var hasOwnProperty$4 = objectProto$3.hasOwnProperty;
5652
5669
 
5653
5670
  /**
5654
5671
  * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
@@ -5663,7 +5680,7 @@ function baseKeys(object) {
5663
5680
  }
5664
5681
  var result = [];
5665
5682
  for (var key in Object(object)) {
5666
- if (hasOwnProperty$3.call(object, key) && key != 'constructor') {
5683
+ if (hasOwnProperty$4.call(object, key) && key != 'constructor') {
5667
5684
  result.push(key);
5668
5685
  }
5669
5686
  }
@@ -5754,10 +5771,10 @@ var _getAllKeys = getAllKeys;
5754
5771
  var COMPARE_PARTIAL_FLAG$1 = 1;
5755
5772
 
5756
5773
  /** Used for built-in method references. */
5757
- var objectProto$1 = Object.prototype;
5774
+ var objectProto$2 = Object.prototype;
5758
5775
 
5759
5776
  /** Used to check objects for own properties. */
5760
- var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
5777
+ var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
5761
5778
 
5762
5779
  /**
5763
5780
  * A specialized version of `baseIsEqualDeep` for objects with support for
@@ -5785,7 +5802,7 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
5785
5802
  var index = objLength;
5786
5803
  while (index--) {
5787
5804
  var key = objProps[index];
5788
- if (!(isPartial ? key in other : hasOwnProperty$2.call(other, key))) {
5805
+ if (!(isPartial ? key in other : hasOwnProperty$3.call(other, key))) {
5789
5806
  return false;
5790
5807
  }
5791
5808
  }
@@ -5860,10 +5877,10 @@ var WeakMap = _getNative(_root, 'WeakMap');
5860
5877
  var _WeakMap = WeakMap;
5861
5878
 
5862
5879
  /** `Object#toString` result references. */
5863
- var mapTag = '[object Map]',
5880
+ var mapTag$1 = '[object Map]',
5864
5881
  objectTag$1 = '[object Object]',
5865
5882
  promiseTag = '[object Promise]',
5866
- setTag = '[object Set]',
5883
+ setTag$1 = '[object Set]',
5867
5884
  weakMapTag = '[object WeakMap]';
5868
5885
 
5869
5886
  var dataViewTag = '[object DataView]';
@@ -5886,9 +5903,9 @@ var getTag = _baseGetTag;
5886
5903
 
5887
5904
  // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
5888
5905
  if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag) ||
5889
- (_Map && getTag(new _Map) != mapTag) ||
5906
+ (_Map && getTag(new _Map) != mapTag$1) ||
5890
5907
  (_Promise && getTag(_Promise.resolve()) != promiseTag) ||
5891
- (_Set && getTag(new _Set) != setTag) ||
5908
+ (_Set && getTag(new _Set) != setTag$1) ||
5892
5909
  (_WeakMap && getTag(new _WeakMap) != weakMapTag)) {
5893
5910
  getTag = function(value) {
5894
5911
  var result = _baseGetTag(value),
@@ -5898,9 +5915,9 @@ if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag) ||
5898
5915
  if (ctorString) {
5899
5916
  switch (ctorString) {
5900
5917
  case dataViewCtorString: return dataViewTag;
5901
- case mapCtorString: return mapTag;
5918
+ case mapCtorString: return mapTag$1;
5902
5919
  case promiseCtorString: return promiseTag;
5903
- case setCtorString: return setTag;
5920
+ case setCtorString: return setTag$1;
5904
5921
  case weakMapCtorString: return weakMapTag;
5905
5922
  }
5906
5923
  }
@@ -5919,10 +5936,10 @@ var argsTag = '[object Arguments]',
5919
5936
  objectTag = '[object Object]';
5920
5937
 
5921
5938
  /** Used for built-in method references. */
5922
- var objectProto = Object.prototype;
5939
+ var objectProto$1 = Object.prototype;
5923
5940
 
5924
5941
  /** Used to check objects for own properties. */
5925
- var hasOwnProperty$1 = objectProto.hasOwnProperty;
5942
+ var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
5926
5943
 
5927
5944
  /**
5928
5945
  * A specialized version of `baseIsEqual` for arrays and objects which performs
@@ -5965,8 +5982,8 @@ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
5965
5982
  : _equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
5966
5983
  }
5967
5984
  if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
5968
- var objIsWrapped = objIsObj && hasOwnProperty$1.call(object, '__wrapped__'),
5969
- othIsWrapped = othIsObj && hasOwnProperty$1.call(other, '__wrapped__');
5985
+ var objIsWrapped = objIsObj && hasOwnProperty$2.call(object, '__wrapped__'),
5986
+ othIsWrapped = othIsObj && hasOwnProperty$2.call(other, '__wrapped__');
5970
5987
 
5971
5988
  if (objIsWrapped || othIsWrapped) {
5972
5989
  var objUnwrapped = objIsWrapped ? object.value() : object,
@@ -6045,22 +6062,92 @@ function isEqual(value, other) {
6045
6062
 
6046
6063
  var isEqual_1 = isEqual;
6047
6064
 
6065
+ /** `Object#toString` result references. */
6066
+ var mapTag = '[object Map]',
6067
+ setTag = '[object Set]';
6068
+
6069
+ /** Used for built-in method references. */
6070
+ var objectProto = Object.prototype;
6071
+
6072
+ /** Used to check objects for own properties. */
6073
+ var hasOwnProperty$1 = objectProto.hasOwnProperty;
6074
+
6075
+ /**
6076
+ * Checks if `value` is an empty object, collection, map, or set.
6077
+ *
6078
+ * Objects are considered empty if they have no own enumerable string keyed
6079
+ * properties.
6080
+ *
6081
+ * Array-like values such as `arguments` objects, arrays, buffers, strings, or
6082
+ * jQuery-like collections are considered empty if they have a `length` of `0`.
6083
+ * Similarly, maps and sets are considered empty if they have a `size` of `0`.
6084
+ *
6085
+ * @static
6086
+ * @memberOf _
6087
+ * @since 0.1.0
6088
+ * @category Lang
6089
+ * @param {*} value The value to check.
6090
+ * @returns {boolean} Returns `true` if `value` is empty, else `false`.
6091
+ * @example
6092
+ *
6093
+ * _.isEmpty(null);
6094
+ * // => true
6095
+ *
6096
+ * _.isEmpty(true);
6097
+ * // => true
6098
+ *
6099
+ * _.isEmpty(1);
6100
+ * // => true
6101
+ *
6102
+ * _.isEmpty([1, 2, 3]);
6103
+ * // => false
6104
+ *
6105
+ * _.isEmpty({ 'a': 1 });
6106
+ * // => false
6107
+ */
6108
+ function isEmpty(value) {
6109
+ if (value == null) {
6110
+ return true;
6111
+ }
6112
+ if (isArrayLike_1(value) &&
6113
+ (isArray_1(value) || typeof value == 'string' || typeof value.splice == 'function' ||
6114
+ isBuffer_1(value) || isTypedArray_1(value) || isArguments_1(value))) {
6115
+ return !value.length;
6116
+ }
6117
+ var tag = _getTag(value);
6118
+ if (tag == mapTag || tag == setTag) {
6119
+ return !value.size;
6120
+ }
6121
+ if (_isPrototype(value)) {
6122
+ return !_baseKeys(value).length;
6123
+ }
6124
+ for (var key in value) {
6125
+ if (hasOwnProperty$1.call(value, key)) {
6126
+ return false;
6127
+ }
6128
+ }
6129
+ return true;
6130
+ }
6131
+
6132
+ var isEmpty_1 = isEmpty;
6133
+
6048
6134
  const ERROR_MESSAGE = {
6049
6135
  INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
6050
- LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a liveboard to embed.',
6051
- TRIGGER_TIMED_OUT: 'Trigger timedout in getting response',
6052
- SEARCHEMBED_BETA_WRANING_MESSAGE: 'Search Embed is in Beta in this release.',
6053
- SAGE_EMBED_BETA_WARNING_MESSAGE: 'Sage Embed is in Beta in this release.',
6054
- 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.',
6055
- 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.',
6136
+ SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND: 'Please select a worksheet to get started',
6137
+ LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a Liveboard to embed.',
6138
+ TRIGGER_TIMED_OUT: 'Trigger timed-out in getting a response',
6139
+ SEARCHEMBED_BETA_WRANING_MESSAGE: 'SearchEmbed is in Beta in this release.',
6140
+ SAGE_EMBED_BETA_WARNING_MESSAGE: 'SageEmbed is in Beta in this release.',
6141
+ 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.',
6142
+ 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.',
6056
6143
  SDK_NOT_INITIALIZED: 'SDK not initialized',
6057
- SESSION_INFO_FAILED: 'Failed to get session info',
6144
+ SESSION_INFO_FAILED: 'Failed to get session information',
6058
6145
  INVALID_TOKEN_ERROR: 'Received invalid token from getAuthToken callback or authToken endpoint.',
6059
6146
  MIXPANEL_TOKEN_NOT_FOUND: 'Mixpanel token not found in session info',
6060
- PRERENDER_ID_MISSING: 'PreRender id is required for preRender',
6147
+ PRERENDER_ID_MISSING: 'PreRender ID is required for preRender',
6061
6148
  SYNC_STYLE_CALLED_BEFORE_RENDER: 'PreRender should be called before using syncPreRenderStyle',
6062
6149
  CSP_VIOLATION_ALERT: 'CSP violation detected. Please check the console errors for more details.',
6063
- 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',
6150
+ 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',
6064
6151
  MISSING_REPORTING_OBSERVER: 'ReportingObserver not supported',
6065
6152
  };
6066
6153
 
@@ -6879,7 +6966,7 @@ class AnswerService {
6879
6966
  async getTML() {
6880
6967
  const { object } = await this.executeQuery(getAnswerTML, {});
6881
6968
  const edoc = object[0].edoc;
6882
- const YAML = await import('./index-Ck3m4Sis.js');
6969
+ const YAML = await import('./index-CAHz286m.js');
6883
6970
  const parsedDoc = YAML.parse(edoc);
6884
6971
  return {
6885
6972
  answer: {
@@ -14187,10 +14274,10 @@ const handleAuth = () => {
14187
14274
  return authPromise;
14188
14275
  };
14189
14276
  const hostUrlToFeatureUrl = {
14190
- [PrefetchFeatures.SearchEmbed]: (url) => `${url}v2/#/embed/answer`,
14191
- [PrefetchFeatures.LiveboardEmbed]: (url) => url,
14192
- [PrefetchFeatures.FullApp]: (url) => url,
14193
- [PrefetchFeatures.VizEmbed]: (url) => url,
14277
+ [PrefetchFeatures.SearchEmbed]: (url, flags) => `${url}v2/?${flags}#/embed/answer`,
14278
+ [PrefetchFeatures.LiveboardEmbed]: (url, flags) => `${url}?${flags}`,
14279
+ [PrefetchFeatures.FullApp]: (url, flags) => `${url}?${flags}`,
14280
+ [PrefetchFeatures.VizEmbed]: (url, flags) => `${url}?${flags}`,
14194
14281
  };
14195
14282
  /**
14196
14283
  * Prefetches static resources from the specified URL. Web browsers can then cache the
@@ -14198,10 +14285,12 @@ const hostUrlToFeatureUrl = {
14198
14285
  * to your app.
14199
14286
  * @param url The URL provided for prefetch
14200
14287
  * @param prefetchFeatures Specify features which needs to be prefetched.
14288
+ * @param additionalFlags This can be used to add any URL flag.
14201
14289
  * @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 7.2.1
14202
14290
  * @group Global methods
14203
14291
  */
14204
- const prefetch = (url, prefetchFeatures) => {
14292
+ const prefetch = (url, prefetchFeatures, additionalFlags) => {
14293
+ var _a;
14205
14294
  if (url === '') {
14206
14295
  // eslint-disable-next-line no-console
14207
14296
  logger$3.warn('The prefetch method does not have a valid URL');
@@ -14209,9 +14298,14 @@ const prefetch = (url, prefetchFeatures) => {
14209
14298
  else {
14210
14299
  const features = prefetchFeatures || [PrefetchFeatures.FullApp];
14211
14300
  let hostUrl = url || getEmbedConfig().thoughtSpotHost;
14301
+ const prefetchFlags = {
14302
+ [Param.EmbedApp]: true,
14303
+ ...(_a = getEmbedConfig()) === null || _a === void 0 ? void 0 : _a.additionalFlags,
14304
+ ...additionalFlags,
14305
+ };
14212
14306
  hostUrl = hostUrl[hostUrl.length - 1] === '/' ? hostUrl : `${hostUrl}/`;
14213
14307
  Array.from(new Set(features
14214
- .map((feature) => hostUrlToFeatureUrl[feature](hostUrl))))
14308
+ .map((feature) => hostUrlToFeatureUrl[feature](hostUrl, getQueryParamString(prefetchFlags)))))
14215
14309
  .forEach((prefetchUrl, index) => {
14216
14310
  const iFrame = document.createElement('iframe');
14217
14311
  iFrame.src = prefetchUrl;
@@ -14614,7 +14708,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
14614
14708
  });
14615
14709
  }
14616
14710
 
14617
- 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={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"30 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
14711
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.5";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"30 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
14618
14712
 
14619
14713
  /**
14620
14714
  * Copyright (c) 2022
@@ -14893,6 +14987,7 @@ class TsEmbed {
14893
14987
  if (hostAppUrl.includes('localhost') || hostAppUrl.includes('127.0.0.1')) {
14894
14988
  hostAppUrl = 'local-host';
14895
14989
  }
14990
+ queryParams[Param.EmbedApp] = true;
14896
14991
  queryParams[Param.HostAppUrl] = encodeURIComponent(hostAppUrl);
14897
14992
  queryParams[Param.ViewPortHeight] = window.innerHeight;
14898
14993
  queryParams[Param.ViewPortWidth] = window.innerWidth;
@@ -14920,7 +15015,12 @@ class TsEmbed {
14920
15015
  if (this.embedConfig.currencyFormat) {
14921
15016
  queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
14922
15017
  }
14923
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, } = this.viewConfig;
15018
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, } = this.viewConfig;
15019
+ const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
15020
+ const additionalFlags = {
15021
+ ...additionalFlagsFromInit,
15022
+ ...additionalFlagsFromView,
15023
+ };
14924
15024
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
14925
15025
  this.handleError('You cannot have both hidden actions and visible actions');
14926
15026
  return queryParams;
@@ -14976,9 +15076,12 @@ class TsEmbed {
14976
15076
  if (disableRedirectionLinksInNewTab) {
14977
15077
  queryParams[Param.DisableRedirectionLinksInNewTab] = disableRedirectionLinksInNewTab;
14978
15078
  }
15079
+ if (overrideOrgId !== undefined) {
15080
+ queryParams[Param.OverrideOrgId] = overrideOrgId;
15081
+ }
14979
15082
  queryParams[Param.OverrideNativeConsole] = true;
14980
15083
  queryParams[Param.ClientLogLevel] = this.embedConfig.logLevel;
14981
- if (additionalFlags && additionalFlags.constructor.name === 'Object') {
15084
+ if (isObject_1(additionalFlags) && !isEmpty_1(additionalFlags)) {
14982
15085
  Object.assign(queryParams, additionalFlags);
14983
15086
  }
14984
15087
  // Do not add any flags below this, as we want additional flags to
@@ -15758,11 +15861,10 @@ class AppEmbed extends V1Embed {
15758
15861
  * embedded Liveboard or visualization.
15759
15862
  */
15760
15863
  getEmbedParams() {
15761
- 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,
15864
+ 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,
15762
15865
  /* eslint-disable-next-line max-len */
15763
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, } = this.viewConfig;
15866
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, } = this.viewConfig;
15764
15867
  let params = {};
15765
- params[Param.EmbedApp] = true;
15766
15868
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
15767
15869
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
15768
15870
  params[Param.HideApplicationSwitcher] = !!hideApplicationSwitcher;
@@ -15775,6 +15877,7 @@ class AppEmbed extends V1Embed {
15775
15877
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
15776
15878
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
15777
15879
  params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
15880
+ params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
15778
15881
  params = this.getBaseQueryParams(params);
15779
15882
  if (fullHeight === true) {
15780
15883
  params[Param.fullHeight] = true;
@@ -16051,9 +16154,8 @@ class LiveboardEmbed extends V1Embed {
16051
16154
  */
16052
16155
  getEmbedParams() {
16053
16156
  let params = {};
16054
- params[Param.EmbedApp] = true;
16055
16157
  params = this.getBaseQueryParams(params);
16056
- 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;
16158
+ const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, } = this.viewConfig;
16057
16159
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
16058
16160
  || this.viewConfig.preventPinboardFilterRemoval;
16059
16161
  if (fullHeight === true) {
@@ -16307,7 +16409,7 @@ class SearchEmbed extends TsEmbed {
16307
16409
  }
16308
16410
  getEmbedParams() {
16309
16411
  var _a;
16310
- const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
16412
+ const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
16311
16413
  /* eslint-disable-next-line max-len */
16312
16414
  dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, collapseSearchBar = true, } = this.viewConfig;
16313
16415
  const queryParams = this.getBaseQueryParams();
@@ -16881,6 +16983,19 @@ class ConversationMessage extends TsEmbed {
16881
16983
  /**
16882
16984
  * Create a conversation embed, which can be integrated inside
16883
16985
  * chatbots or other conversational interfaces.
16986
+ * @example
16987
+ * ```js
16988
+ * import { BodylessConversation } from '@thoughtspot/visual-embed-sdk';
16989
+ *
16990
+ * const conversation = new BodylessConversation({
16991
+ * worksheetId: 'worksheetId',
16992
+ * });
16993
+ *
16994
+ * const { container, error } = await conversation.sendMessage('show me sales by region');
16995
+ *
16996
+ * // append the container to the DOM
16997
+ * document.body.appendChild(container); // or to any other element
16998
+ * ```
16884
16999
  * @group Embed components
16885
17000
  * @version SDK: 1.33.1 | ThoughtSpot: 10.5.0.cl
16886
17001
  */
@@ -16931,6 +17046,9 @@ class ConversationEmbed extends TsEmbed {
16931
17046
  getIframeSrc() {
16932
17047
  const { worksheetId, searchOptions, } = this.viewConfig;
16933
17048
  const path = 'insights/conv-assist';
17049
+ if (!worksheetId) {
17050
+ this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
17051
+ }
16934
17052
  const queryParams = this.getBaseQueryParams();
16935
17053
  queryParams[Param.SpotterEnabled] = true;
16936
17054
  let query = '';
@@ -16978,7 +17096,6 @@ class SageEmbed extends V1Embed {
16978
17096
  getEmbedParams() {
16979
17097
  const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
16980
17098
  const params = this.getBaseQueryParams();
16981
- params[Param.EmbedApp] = true;
16982
17099
  params[Param.IsSageEmbed] = true;
16983
17100
  params[Param.DisableWorksheetChange] = !!disableWorksheetChange;
16984
17101
  params[Param.HideWorksheetSelector] = !!hideWorksheetSelector;