@superinterface/react 2.15.8 → 2.15.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -160,6 +160,10 @@ function _to_array(arr) {
160
160
  function _to_consumable_array(arr) {
161
161
  return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
162
162
  }
163
+ function _type_of(obj) {
164
+ "@swc/helpers - typeof";
165
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
166
+ }
163
167
  function _unsupported_iterable_to_array(o, minLen) {
164
168
  if (!o) return;
165
169
  if (typeof o === "string") return _array_like_to_array(o, minLen);
@@ -278,7 +282,7 @@ var __export = function(target, all) {
278
282
  });
279
283
  };
280
284
  var __copyProps = function(to, from, except, desc) {
281
- if (from && typeof from === "object" || typeof from === "function") {
285
+ if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
282
286
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
283
287
  try {
284
288
  var _loop = function() {
@@ -1841,13 +1845,13 @@ var threadCreated = function(param) {
1841
1845
  var value = param.value, superinterfaceContext = param.superinterfaceContext;
1842
1846
  var _superinterfaceContext_threadIdCookieOptions, _value_data_metadata, _value_data_metadata1;
1843
1847
  if (!((_superinterfaceContext_threadIdCookieOptions = superinterfaceContext.threadIdCookieOptions) === null || _superinterfaceContext_threadIdCookieOptions === void 0 ? void 0 : _superinterfaceContext_threadIdCookieOptions.set)) return;
1844
- if (!((_value_data_metadata = value.data.metadata) === null || _value_data_metadata === void 0 ? void 0 : _value_data_metadata.superinterfaceAssistantId)) return;
1845
- if (!((_value_data_metadata1 = value.data.metadata) === null || _value_data_metadata1 === void 0 ? void 0 : _value_data_metadata1.superinterfaceThreadId)) return;
1848
+ if (!((_value_data_metadata = value.data.metadata) === null || _value_data_metadata === void 0 ? void 0 : _value_data_metadata.assistantId)) return;
1849
+ if (!((_value_data_metadata1 = value.data.metadata) === null || _value_data_metadata1 === void 0 ? void 0 : _value_data_metadata1.threadId)) return;
1846
1850
  superinterfaceContext.threadIdCookieOptions.set({
1847
1851
  // @ts-ignore-next-line
1848
- assistantId: value.data.metadata.superinterfaceAssistantId,
1852
+ assistantId: value.data.metadata.assistantId,
1849
1853
  // @ts-ignore-next-line
1850
- threadId: value.data.metadata.superinterfaceThreadId
1854
+ threadId: value.data.metadata.threadId
1851
1855
  });
1852
1856
  };
1853
1857
  // src/hooks/messages/useCreateMessage/lib/mutationOptions/mutationFn/handleResponse/handlers/extendMessage.ts