@helpai/elements 0.62.0 → 0.62.1

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/index.mjs CHANGED
@@ -29,7 +29,7 @@ var BRAND = {
29
29
  };
30
30
 
31
31
  // src/core/version.ts
32
- var ELEMENTS_VERSION = true ? "0.62.0" : "0.0.0-dev";
32
+ var ELEMENTS_VERSION = true ? "0.62.1" : "0.0.0-dev";
33
33
  var ELEMENTS_VERSION_PARAM = "_ev";
34
34
 
35
35
  // src/i18n/strings.ts
@@ -7906,10 +7906,13 @@ function MessengerHome({
7906
7906
  el.removeEventListener("keydown", onKey);
7907
7907
  };
7908
7908
  }, [panelProps.onClose]);
7909
- const composerAttachApiRef = useRef8(null);
7910
- const onDropItems = useCallback4((items) => {
7911
- composerAttachApiRef.current?.attachFromDrop(items);
7912
- }, []);
7909
+ const composerApiRef = panelProps.composerApiRef;
7910
+ const onDropItems = useCallback4(
7911
+ (items) => {
7912
+ composerApiRef.current?.attachFromDrop(items);
7913
+ },
7914
+ [composerApiRef]
7915
+ );
7913
7916
  const { visible: dragOver } = useFileDrop({ containerRef, onDrop: onDropItems });
7914
7917
  useDragMove(containerRef.current, options.mode === "modal");
7915
7918
  const navState = useComputed8(() => nav.sig.value).value;
@@ -7960,7 +7963,7 @@ function MessengerHome({
7960
7963
  ...panelProps,
7961
7964
  containerEl: containerRef.current,
7962
7965
  dragOver,
7963
- composerAttachApiRef
7966
+ composerAttachApiRef: composerApiRef
7964
7967
  }
7965
7968
  );
7966
7969
  }
package/package.json CHANGED
@@ -80,5 +80,5 @@
80
80
  ],
81
81
  "type": "module",
82
82
  "types": "./index.d.ts",
83
- "version": "0.62.0"
83
+ "version": "0.62.1"
84
84
  }
package/web-component.mjs CHANGED
@@ -1932,7 +1932,7 @@ function createAuth(opts) {
1932
1932
  }
1933
1933
 
1934
1934
  // src/core/version.ts
1935
- var ELEMENTS_VERSION = true ? "0.62.0" : "0.0.0-dev";
1935
+ var ELEMENTS_VERSION = true ? "0.62.1" : "0.0.0-dev";
1936
1936
  var ELEMENTS_VERSION_PARAM = "_ev";
1937
1937
 
1938
1938
  // src/stream/types.ts
@@ -7865,10 +7865,13 @@ function MessengerHome({
7865
7865
  el.removeEventListener("keydown", onKey);
7866
7866
  };
7867
7867
  }, [panelProps.onClose]);
7868
- const composerAttachApiRef = useRef8(null);
7869
- const onDropItems = useCallback4((items) => {
7870
- composerAttachApiRef.current?.attachFromDrop(items);
7871
- }, []);
7868
+ const composerApiRef = panelProps.composerApiRef;
7869
+ const onDropItems = useCallback4(
7870
+ (items) => {
7871
+ composerApiRef.current?.attachFromDrop(items);
7872
+ },
7873
+ [composerApiRef]
7874
+ );
7872
7875
  const { visible: dragOver } = useFileDrop({ containerRef, onDrop: onDropItems });
7873
7876
  useDragMove(containerRef.current, options.mode === "modal");
7874
7877
  const navState = useComputed8(() => nav.sig.value).value;
@@ -7919,7 +7922,7 @@ function MessengerHome({
7919
7922
  ...panelProps,
7920
7923
  containerEl: containerRef.current,
7921
7924
  dragOver,
7922
- composerAttachApiRef
7925
+ composerAttachApiRef: composerApiRef
7923
7926
  }
7924
7927
  );
7925
7928
  }