@rolder/kit 3.0.0-alpha.41 → 3.0.0-alpha.43

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.
@@ -8,6 +8,6 @@ export interface OnSubmitProps {
8
8
  text: string;
9
9
  file?: FileUIPart;
10
10
  }
11
- export declare const getOnSubmit: () => (props: OnSubmitProps) => void;
11
+ export declare const getOnSubmit: () => ((props: OnSubmitProps) => void) | undefined;
12
12
  export declare const setOnSubmit: (onSubmit: (props: OnSubmitProps) => void) => void;
13
13
  export declare const onSubmit: () => Promise<void>;
@@ -14,7 +14,7 @@ const setText = (text)=>$text.set(text);
14
14
  const $isComposing = atom(false);
15
15
  const getIsComposing = ()=>$isComposing.get();
16
16
  const setIsComposing = (isComposing)=>$isComposing.set(isComposing);
17
- const $onSubmit = atom(()=>()=>{});
17
+ const $onSubmit = atom();
18
18
  const getOnSubmit = ()=>$onSubmit.get();
19
19
  const setOnSubmit = (onSubmit)=>$onSubmit.set(onSubmit);
20
20
  const input_onSubmit = async ()=>{
@@ -79,6 +79,7 @@ const messages_sendMessage = async ({ text, file }, data)=>{
79
79
  const files = file ? [
80
80
  file
81
81
  ] : [];
82
+ console.log(getChatSendMessage());
82
83
  await getChatSendMessage()?.({
83
84
  text,
84
85
  files
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolder/kit",
3
- "version": "3.0.0-alpha.41",
3
+ "version": "3.0.0-alpha.43",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {