@superinterface/react 5.3.1-beta.5 → 5.4.0

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.js CHANGED
@@ -36899,15 +36899,9 @@ import { useRef } from "react";
36899
36899
  import _2 from "lodash";
36900
36900
  // src/lib/misc/merge/customizer.ts
36901
36901
  import _ from "lodash";
36902
- var customizer = function(objectValue, srcValue, key2) {
36903
- if (_.isArray(objectValue)) {
36904
- return srcValue;
36905
- }
36906
- if (srcValue && (typeof srcValue === "undefined" ? "undefined" : _type_of(srcValue)) === "object" && "current" in srcValue && typeof key2 === "string" && key2.toLowerCase().includes("ref")) {
36907
- console.log("[customizer] Preserving ref identity for key:", key2, "srcValue:", srcValue);
36908
- return srcValue;
36909
- }
36910
- return void 0;
36902
+ var customizer = function(objectValue, srcValue) {
36903
+ if (!_.isArray(objectValue)) return;
36904
+ return srcValue;
36911
36905
  };
36912
36906
  // src/lib/misc/merge/index.ts
36913
36907
  var merge = function merge2(obj) {
@@ -36946,7 +36940,9 @@ var set = function(_ref) {
36946
36940
  var assistantId = _ref.assistantId, threadId = _ref.threadId;
36947
36941
  return Cookies2.set(key({
36948
36942
  assistantId: assistantId
36949
- }), threadId);
36943
+ }), threadId, {
36944
+ expires: 365
36945
+ });
36950
36946
  };
36951
36947
  // src/lib/threadIdStorage/cookieOptions/remove.ts
36952
36948
  import Cookies3 from "js-cookie";