@droppii-org/chat-sdk 0.0.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/dist/components/AutoScrollAnchor.d.ts +2 -0
- package/dist/components/AutoScrollAnchor.d.ts.map +1 -0
- package/dist/components/AutoScrollAnchor.jsx +11 -0
- package/dist/components/ChatBubble.d.ts +2 -0
- package/dist/components/ChatBubble.d.ts.map +1 -0
- package/dist/components/ChatBubble.jsx +32 -0
- package/dist/components/ChatHeader.d.ts +8 -0
- package/dist/components/ChatHeader.d.ts.map +1 -0
- package/dist/components/ChatHeader.jsx +72 -0
- package/dist/components/ChatInput.d.ts +4 -0
- package/dist/components/ChatInput.d.ts.map +1 -0
- package/dist/components/ChatInput.jsx +444 -0
- package/dist/components/ChatInputDemo.d.ts +2 -0
- package/dist/components/ChatInputDemo.d.ts.map +1 -0
- package/dist/components/ChatInputDemo.jsx +53 -0
- package/dist/components/ChatInputWithCustomIcon.d.ts +17 -0
- package/dist/components/ChatInputWithCustomIcon.d.ts.map +1 -0
- package/dist/components/ChatInputWithCustomIcon.jsx +167 -0
- package/dist/components/ChatLayout.d.ts +6 -0
- package/dist/components/ChatLayout.d.ts.map +1 -0
- package/dist/components/ChatLayout.jsx +122 -0
- package/dist/components/ConversationItem.d.ts +9 -0
- package/dist/components/ConversationItem.d.ts.map +1 -0
- package/dist/components/ConversationItem.jsx +51 -0
- package/dist/components/ConversationList.d.ts +8 -0
- package/dist/components/ConversationList.d.ts.map +1 -0
- package/dist/components/ConversationList.jsx +22 -0
- package/dist/components/DateDivider.d.ts +7 -0
- package/dist/components/DateDivider.d.ts.map +1 -0
- package/dist/components/DateDivider.jsx +28 -0
- package/dist/components/EmojiPicker.d.ts +4 -0
- package/dist/components/EmojiPicker.d.ts.map +1 -0
- package/dist/components/EmojiPicker.jsx +229 -0
- package/dist/components/ImageLightbox.d.ts +8 -0
- package/dist/components/ImageLightbox.d.ts.map +1 -0
- package/dist/components/ImageLightbox.jsx +16 -0
- package/dist/components/ImagePreviewModal.d.ts +12 -0
- package/dist/components/ImagePreviewModal.d.ts.map +1 -0
- package/dist/components/ImagePreviewModal.jsx +84 -0
- package/dist/components/MessageItem.d.ts +3 -0
- package/dist/components/MessageItem.d.ts.map +1 -0
- package/dist/components/MessageItem.jsx +99 -0
- package/dist/components/MessageItemDemo.d.ts +2 -0
- package/dist/components/MessageItemDemo.d.ts.map +1 -0
- package/dist/components/MessageItemDemo.jsx +179 -0
- package/dist/components/MessageList.d.ts +15 -0
- package/dist/components/MessageList.d.ts.map +1 -0
- package/dist/components/MessageList.jsx +306 -0
- package/dist/components/MessageListDemo.d.ts +2 -0
- package/dist/components/MessageListDemo.d.ts.map +1 -0
- package/dist/components/MessageListDemo.jsx +183 -0
- package/dist/components/StickerPicker.d.ts +4 -0
- package/dist/components/StickerPicker.d.ts.map +1 -0
- package/dist/components/StickerPicker.jsx +106 -0
- package/dist/components/SwipeIndicator.d.ts +9 -0
- package/dist/components/SwipeIndicator.d.ts.map +1 -0
- package/dist/components/SwipeIndicator.jsx +28 -0
- package/dist/components/TextFormattingToolbar.d.ts +4 -0
- package/dist/components/TextFormattingToolbar.d.ts.map +1 -0
- package/dist/components/TextFormattingToolbar.jsx +52 -0
- package/dist/components/TypingIndicator.d.ts +6 -0
- package/dist/components/TypingIndicator.d.ts.map +1 -0
- package/dist/components/TypingIndicator.jsx +27 -0
- package/dist/components/VoiceWaveIcon.d.ts +7 -0
- package/dist/components/VoiceWaveIcon.d.ts.map +1 -0
- package/dist/components/VoiceWaveIcon.jsx +11 -0
- package/dist/context/ChatContext.d.ts +72 -0
- package/dist/context/ChatContext.d.ts.map +1 -0
- package/dist/context/ChatContext.jsx +346 -0
- package/dist/hooks/useChat.d.ts +5 -0
- package/dist/hooks/useChat.d.ts.map +1 -0
- package/dist/hooks/useChat.js +73 -0
- package/dist/hooks/useConversationList.d.ts +5 -0
- package/dist/hooks/useConversationList.d.ts.map +1 -0
- package/dist/hooks/useConversationList.js +9 -0
- package/dist/hooks/useMessages.d.ts +5 -0
- package/dist/hooks/useMessages.d.ts.map +1 -0
- package/dist/hooks/useMessages.js +192 -0
- package/dist/hooks/useSocket.d.ts +7 -0
- package/dist/hooks/useSocket.d.ts.map +1 -0
- package/dist/hooks/useSocket.js +120 -0
- package/dist/hooks/useSwipeGesture.d.ts +11 -0
- package/dist/hooks/useSwipeGesture.d.ts.map +1 -0
- package/dist/hooks/useSwipeGesture.js +54 -0
- package/dist/hooks/useTextSelection.d.ts +13 -0
- package/dist/hooks/useTextSelection.d.ts.map +1 -0
- package/dist/hooks/useTextSelection.js +132 -0
- package/dist/hooks/useTyping.d.ts +7 -0
- package/dist/hooks/useTyping.d.ts.map +1 -0
- package/dist/hooks/useTyping.js +64 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +29 -0
- package/dist/types/chat.d.ts +39 -0
- package/dist/types/chat.d.ts.map +1 -0
- package/dist/types/chat.js +1 -0
- package/dist/types/index.d.ts +86 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +1 -0
- package/package.json +60 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export { ChatProvider, useChatContext } from "./context/ChatContext";
|
|
2
|
+
export { useChat } from "./hooks/useChat";
|
|
3
|
+
export { useMessages } from "./hooks/useMessages";
|
|
4
|
+
export { useTyping } from "./hooks/useTyping";
|
|
5
|
+
export { useSocket } from "./hooks/useSocket";
|
|
6
|
+
export { useTextSelection } from "./hooks/useTextSelection";
|
|
7
|
+
export { useSwipeGesture } from "./hooks/useSwipeGesture";
|
|
8
|
+
export { ChatLayout } from "./components/ChatLayout";
|
|
9
|
+
export { ChatHeader } from "./components/ChatHeader";
|
|
10
|
+
export { MessageList } from "./components/MessageList";
|
|
11
|
+
export { MessageItem } from "./components/MessageItem";
|
|
12
|
+
export { ChatInput } from "./components/ChatInput";
|
|
13
|
+
export { ConversationList } from "./components/ConversationList";
|
|
14
|
+
export { ConversationItem } from "./components/ConversationItem";
|
|
15
|
+
export { DateDivider } from "./components/DateDivider";
|
|
16
|
+
export { MessageItemDemo } from "./components/MessageItemDemo";
|
|
17
|
+
export { ChatBubble } from "./components/ChatBubble";
|
|
18
|
+
export { TypingIndicator } from "./components/TypingIndicator";
|
|
19
|
+
export { VoiceWaveIcon } from "./components/VoiceWaveIcon";
|
|
20
|
+
export { TextFormattingToolbar } from "./components/TextFormattingToolbar";
|
|
21
|
+
export { SwipeIndicator } from "./components/SwipeIndicator";
|
|
22
|
+
export { ImagePreviewModal } from "./components/ImagePreviewModal";
|
|
23
|
+
export { ChatInputWithCustomIcon } from "./components/ChatInputWithCustomIcon";
|
|
24
|
+
export { EmojiPicker } from "./components/EmojiPicker";
|
|
25
|
+
export { ChatInputDemo } from "./components/ChatInputDemo";
|
|
26
|
+
export { ImageLightbox } from "./components/ImageLightbox";
|
|
27
|
+
export type { User, Message, Conversation, TypingStatus, ChatConfig, MessageItemProps, } from "./types";
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAGpE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAGzD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAA;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAA;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAG1D,YAAY,EACV,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,gBAAgB,GACjB,MAAM,SAAS,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Main exports for the SDK
|
|
2
|
+
export { ChatProvider, useChatContext } from "./context/ChatContext";
|
|
3
|
+
// Hooks
|
|
4
|
+
export { useChat } from "./hooks/useChat";
|
|
5
|
+
export { useMessages } from "./hooks/useMessages";
|
|
6
|
+
export { useTyping } from "./hooks/useTyping";
|
|
7
|
+
export { useSocket } from "./hooks/useSocket";
|
|
8
|
+
export { useTextSelection } from "./hooks/useTextSelection";
|
|
9
|
+
export { useSwipeGesture } from "./hooks/useSwipeGesture";
|
|
10
|
+
// Components
|
|
11
|
+
export { ChatLayout } from "./components/ChatLayout";
|
|
12
|
+
export { ChatHeader } from "./components/ChatHeader";
|
|
13
|
+
export { MessageList } from "./components/MessageList";
|
|
14
|
+
export { MessageItem } from "./components/MessageItem";
|
|
15
|
+
export { ChatInput } from "./components/ChatInput";
|
|
16
|
+
export { ConversationList } from "./components/ConversationList";
|
|
17
|
+
export { ConversationItem } from "./components/ConversationItem";
|
|
18
|
+
export { DateDivider } from "./components/DateDivider";
|
|
19
|
+
export { MessageItemDemo } from "./components/MessageItemDemo";
|
|
20
|
+
export { ChatBubble } from "./components/ChatBubble";
|
|
21
|
+
export { TypingIndicator } from "./components/TypingIndicator";
|
|
22
|
+
export { VoiceWaveIcon } from "./components/VoiceWaveIcon";
|
|
23
|
+
export { TextFormattingToolbar } from "./components/TextFormattingToolbar";
|
|
24
|
+
export { SwipeIndicator } from "./components/SwipeIndicator";
|
|
25
|
+
export { ImagePreviewModal } from "./components/ImagePreviewModal";
|
|
26
|
+
export { ChatInputWithCustomIcon } from "./components/ChatInputWithCustomIcon";
|
|
27
|
+
export { EmojiPicker } from "./components/EmojiPicker";
|
|
28
|
+
export { ChatInputDemo } from "./components/ChatInputDemo";
|
|
29
|
+
export { ImageLightbox } from "./components/ImageLightbox";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
export interface ChatInputProps {
|
|
3
|
+
onSendMessage?: (message: string) => void;
|
|
4
|
+
onEmojiClick?: (emoji: string) => void;
|
|
5
|
+
onFileUpload?: (file: File) => void;
|
|
6
|
+
onImageUpload?: (file: File) => void;
|
|
7
|
+
onContactShare?: () => void;
|
|
8
|
+
onVoiceRecord?: () => void;
|
|
9
|
+
onVoiceMessage?: () => void;
|
|
10
|
+
onQuickReact?: () => void;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
onStickerClick?: (sticker: string) => void;
|
|
15
|
+
conversationId?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface EmojiPickerProps {
|
|
18
|
+
onEmojiSelect?: (emoji: string) => void;
|
|
19
|
+
onClose?: () => void;
|
|
20
|
+
isOpen?: boolean;
|
|
21
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
22
|
+
style?: React.CSSProperties;
|
|
23
|
+
}
|
|
24
|
+
export interface StickerPickerProps {
|
|
25
|
+
onStickerSelect?: (sticker: string) => void;
|
|
26
|
+
onClose?: () => void;
|
|
27
|
+
isOpen?: boolean;
|
|
28
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
29
|
+
style?: React.CSSProperties;
|
|
30
|
+
}
|
|
31
|
+
export interface TextFormattingToolbarProps {
|
|
32
|
+
isOpen: boolean;
|
|
33
|
+
onClose: () => void;
|
|
34
|
+
onFormatSelect: (format: string) => void;
|
|
35
|
+
selectedFormats?: string[];
|
|
36
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
37
|
+
style?: React.CSSProperties;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=chat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/types/chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,MAAM,WAAW,cAAc;IAC7B,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;IACnC,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAA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C,CAAA;IAC/B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export type MessageStatus = "sending" | "sent" | "delivered" | "read";
|
|
2
|
+
export interface User {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
avatar?: string;
|
|
6
|
+
status: "online" | "offline" | "away";
|
|
7
|
+
lastSeen?: Date;
|
|
8
|
+
}
|
|
9
|
+
export interface Message {
|
|
10
|
+
id: string;
|
|
11
|
+
conversationId: string;
|
|
12
|
+
senderId: string;
|
|
13
|
+
content: string;
|
|
14
|
+
type: "text" | "image" | "file" | "promo";
|
|
15
|
+
timestamp: Date;
|
|
16
|
+
status: MessageStatus;
|
|
17
|
+
attachments?: Attachment[];
|
|
18
|
+
promoData?: PromotionalMessageData;
|
|
19
|
+
}
|
|
20
|
+
export interface Attachment {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
url: string;
|
|
24
|
+
type: string;
|
|
25
|
+
size: number;
|
|
26
|
+
}
|
|
27
|
+
export interface Conversation {
|
|
28
|
+
id: string;
|
|
29
|
+
participants: User[];
|
|
30
|
+
lastMessage?: Message;
|
|
31
|
+
unreadCount: number;
|
|
32
|
+
updatedAt: Date;
|
|
33
|
+
type: "direct" | "group";
|
|
34
|
+
name?: string;
|
|
35
|
+
avatar?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface TypingStatus {
|
|
38
|
+
userId: string;
|
|
39
|
+
conversationId: string;
|
|
40
|
+
isTyping: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface ChatConfig {
|
|
43
|
+
userId: string;
|
|
44
|
+
token: string;
|
|
45
|
+
apiUrl?: string;
|
|
46
|
+
wsUrl?: string;
|
|
47
|
+
onTokenRefresh?: () => Promise<string>;
|
|
48
|
+
}
|
|
49
|
+
export interface SocketMessage {
|
|
50
|
+
type: "message" | "typing" | "read" | "user_status";
|
|
51
|
+
data: any;
|
|
52
|
+
}
|
|
53
|
+
export type MessageAttachment = {
|
|
54
|
+
id: string;
|
|
55
|
+
type: "image" | "file";
|
|
56
|
+
url: string;
|
|
57
|
+
name?: string;
|
|
58
|
+
size?: number;
|
|
59
|
+
};
|
|
60
|
+
export type PromotionalMessageData = {
|
|
61
|
+
imageUrl: string;
|
|
62
|
+
title: string;
|
|
63
|
+
description: string;
|
|
64
|
+
buttonText: string;
|
|
65
|
+
buttonUrl: string;
|
|
66
|
+
};
|
|
67
|
+
export type DisplayMessage = {
|
|
68
|
+
id: string;
|
|
69
|
+
senderId: string;
|
|
70
|
+
type: "text" | "media" | "promo";
|
|
71
|
+
text?: string;
|
|
72
|
+
attachments?: MessageAttachment[];
|
|
73
|
+
promoData?: PromotionalMessageData;
|
|
74
|
+
createdAt: string;
|
|
75
|
+
isMine: boolean;
|
|
76
|
+
};
|
|
77
|
+
export type MessageItemProps = {
|
|
78
|
+
message: DisplayMessage;
|
|
79
|
+
isGrouped?: boolean;
|
|
80
|
+
onImageClick?: (imageId: string, images: {
|
|
81
|
+
id: string;
|
|
82
|
+
url: string;
|
|
83
|
+
name?: string;
|
|
84
|
+
}[]) => void;
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,CAAA;AAErE,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IACrC,QAAQ,CAAC,EAAE,IAAI,CAAA;CAChB;AAGD,MAAM,WAAW,OAAO;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
+
"version": "0.0.1",
|
|
4
|
+
"description": "A modern React Chat SDK",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts"
|
|
11
|
+
},
|
|
12
|
+
"./components/*": {
|
|
13
|
+
"import": "./dist/components/*.js",
|
|
14
|
+
"types": "./dist/components/*.d.ts"
|
|
15
|
+
},
|
|
16
|
+
"./hooks/*": {
|
|
17
|
+
"import": "./dist/hooks/*.js",
|
|
18
|
+
"types": "./dist/hooks/*.d.ts"
|
|
19
|
+
},
|
|
20
|
+
"./context/*": {
|
|
21
|
+
"import": "./dist/context/*.js",
|
|
22
|
+
"types": "./dist/context/*.d.ts"
|
|
23
|
+
},
|
|
24
|
+
"./types/*": {
|
|
25
|
+
"import": "./dist/types/*.js",
|
|
26
|
+
"types": "./dist/types/*.d.ts"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist"
|
|
31
|
+
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "tsc -p tsconfig.build.json",
|
|
34
|
+
"dev": "tsc --noEmit --watch",
|
|
35
|
+
"lint": "eslint src/",
|
|
36
|
+
"type-check": "tsc --noEmit",
|
|
37
|
+
"prepare": "pnpm build"
|
|
38
|
+
},
|
|
39
|
+
"keywords": ["chat", "sdk", "react", "messenger-style"],
|
|
40
|
+
"author": "Garru",
|
|
41
|
+
"license": "MIT",
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"clsx": "^2.0.0",
|
|
47
|
+
"lucide-react": "^0.263.1",
|
|
48
|
+
"tailwind-merge": "^2.0.0"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"react": "^18.0.0",
|
|
52
|
+
"react-dom": "^18.0.0"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@types/node": "^20.0.0",
|
|
56
|
+
"@types/react": "^18.2.37",
|
|
57
|
+
"@types/react-dom": "^18.2.15",
|
|
58
|
+
"typescript": "^5.2.2"
|
|
59
|
+
}
|
|
60
|
+
}
|