wafields 0.38.0 → 0.38.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.
@@ -0,0 +1,7 @@
1
+ interface MessageSenderProps {
2
+ onSend: (content: string) => void;
3
+ errorMessage: string;
4
+ disabled: boolean;
5
+ }
6
+ declare function MessageSender({ onSend, errorMessage, disabled }: MessageSenderProps): import("react").JSX.Element;
7
+ export default MessageSender;
@@ -1,16 +1,16 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
- import { default as MessageButton } from './MessageButton';
2
+ import { default as MessageSender } from './MessageSender';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: typeof MessageButton;
5
+ component: typeof MessageSender;
6
6
  parameters: {
7
7
  layout: string;
8
8
  };
9
9
  tags: string[];
10
10
  args: {
11
11
  onSend: import('@vitest/spy').Mock<(...args: any[]) => any>;
12
- onSuccess: import('@vitest/spy').Mock<(...args: any[]) => any>;
13
- onError: import('@vitest/spy').Mock<(...args: any[]) => any>;
12
+ errorMessage: string;
13
+ disabled: false;
14
14
  };
15
15
  };
16
16
  export default meta;
@@ -1,2 +1,2 @@
1
1
  export { default as MessageInput } from './MessageInput';
2
- export { default as MessageButton } from './MessageButton';
2
+ export { default as MessageSender } from './MessageSender';