@clickcns/vmedic-react 0.0.16 → 0.0.17

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.
Files changed (194) hide show
  1. package/dist/{api → cjs/api}/common/speechs/speech.d.ts +2 -5
  2. package/dist/{api → cjs/api}/common/user-notifications.d.ts +2 -1
  3. package/dist/cjs/api/index.js +1 -1
  4. package/dist/cjs/api/index.js.map +1 -1
  5. package/dist/cjs/hooks.user-notifications/index.js +1 -1
  6. package/dist/{types → cjs/types}/api/notifications.d.ts +7 -1
  7. package/dist/{types → cjs/types}/api/speech.d.ts +6 -0
  8. package/dist/es/App.d.ts +2 -0
  9. package/dist/es/api/axios/index.d.ts +1 -0
  10. package/dist/es/api/axios/initialize-axios.d.ts +11 -0
  11. package/dist/es/api/common/audio.d.ts +6 -0
  12. package/dist/es/api/common/auth.d.ts +22 -0
  13. package/dist/es/api/common/capture-rects.d.ts +12 -0
  14. package/dist/es/api/common/feedback.d.ts +18 -0
  15. package/dist/es/api/common/index.d.ts +12 -0
  16. package/dist/es/api/common/institutions.d.ts +10 -0
  17. package/dist/es/api/common/llm.d.ts +12 -0
  18. package/dist/es/api/common/notice.d.ts +8 -0
  19. package/dist/es/api/common/partners.d.ts +9 -0
  20. package/dist/es/api/common/push.d.ts +27 -0
  21. package/dist/es/api/common/speechs/index.d.ts +1 -0
  22. package/dist/es/api/common/speechs/speech-audios.d.ts +6 -0
  23. package/dist/es/api/common/speechs/speech-chat.d.ts +17 -0
  24. package/dist/es/api/common/speechs/speech-patients.d.ts +7 -0
  25. package/dist/es/api/common/speechs/speech-record-datas.d.ts +4 -0
  26. package/dist/es/api/common/speechs/speech-records.d.ts +27 -0
  27. package/dist/es/api/common/speechs/speech.d.ts +67 -0
  28. package/dist/es/api/common/user-notifications.d.ts +11 -0
  29. package/dist/es/api/common/user-settings.d.ts +5 -0
  30. package/dist/es/api/index.d.ts +2 -0
  31. package/dist/es/api/index.js +1 -4
  32. package/dist/es/api/index.js.map +1 -1
  33. package/dist/es/hooks/feedbacks/index.d.ts +10 -0
  34. package/dist/es/hooks/index.d.ts +1 -0
  35. package/dist/es/hooks/useTest.d.ts +8 -0
  36. package/dist/es/hooks/user-notifications/index.d.ts +7 -0
  37. package/dist/es/hooks.user-notifications/index.js +1 -1
  38. package/dist/es/index.d.ts +1 -0
  39. package/dist/es/lib/utils/index.d.ts +1 -0
  40. package/dist/es/lib/utils/utils.d.ts +2 -0
  41. package/dist/es/main.d.ts +0 -0
  42. package/dist/es/shadcn-ui/button.d.ts +10 -0
  43. package/dist/es/shadcn-ui/checkbox.d.ts +4 -0
  44. package/dist/es/shadcn-ui/combobox.d.ts +16 -0
  45. package/dist/es/shadcn-ui/command.d.ts +80 -0
  46. package/dist/es/shadcn-ui/dialog.d.ts +15 -0
  47. package/dist/es/shadcn-ui/drawer.d.ts +22 -0
  48. package/dist/es/shadcn-ui/field.d.ts +24 -0
  49. package/dist/es/shadcn-ui/hover-card.d.ts +6 -0
  50. package/dist/es/shadcn-ui/index.d.ts +20 -0
  51. package/dist/es/shadcn-ui/input.d.ts +3 -0
  52. package/dist/es/shadcn-ui/kbd.d.ts +3 -0
  53. package/dist/es/shadcn-ui/label.d.ts +4 -0
  54. package/dist/es/shadcn-ui/pagination.d.ts +32 -0
  55. package/dist/es/shadcn-ui/popover.d.ts +7 -0
  56. package/dist/es/shadcn-ui/resizable.d.ts +23 -0
  57. package/dist/es/shadcn-ui/scroll-area.d.ts +5 -0
  58. package/dist/es/shadcn-ui/separator.d.ts +4 -0
  59. package/dist/es/shadcn-ui/sheet.d.ts +25 -0
  60. package/dist/es/shadcn-ui/slider.d.ts +4 -0
  61. package/dist/es/shadcn-ui/textarea.d.ts +3 -0
  62. package/dist/es/shadcn-ui/tooltip.d.ts +7 -0
  63. package/dist/es/types/api/auth.d.ts +35 -0
  64. package/dist/es/types/api/capture-rects.d.ts +29 -0
  65. package/dist/es/types/api/feedback.d.ts +61 -0
  66. package/dist/es/types/api/index.d.ts +14 -0
  67. package/dist/es/types/api/institution.d.ts +7 -0
  68. package/dist/es/types/api/llm/chat.d.ts +62 -0
  69. package/dist/es/types/api/llm/diarization.d.ts +30 -0
  70. package/dist/es/types/api/llm/disease-recommendation.d.ts +13 -0
  71. package/dist/es/types/api/llm/index.d.ts +5 -0
  72. package/dist/es/types/api/llm/medical-summary.d.ts +15 -0
  73. package/dist/es/types/api/llm/mindmap.d.ts +7 -0
  74. package/dist/es/types/api/notice.d.ts +39 -0
  75. package/dist/es/types/api/notifications.d.ts +17 -0
  76. package/dist/es/types/api/partners.d.ts +42 -0
  77. package/dist/es/types/api/push.d.ts +14 -0
  78. package/dist/es/types/api/records.d.ts +49 -0
  79. package/dist/es/types/api/speech.d.ts +93 -0
  80. package/dist/es/types/api/transcript.d.ts +10 -0
  81. package/dist/es/types/api/user-setting.d.ts +23 -0
  82. package/dist/es/types/index.d.ts +2 -0
  83. package/dist/es/types/sio/base-response.dto.d.ts +4 -0
  84. package/dist/es/types/sio/index.d.ts +3 -0
  85. package/dist/es/types/sio/patient-info.dto.d.ts +4 -0
  86. package/dist/es/types/sio/ping-to-agent-response.dto.d.ts +5 -0
  87. package/dist/es/ui/feedbacks/FeedbackDetailPageContent.d.ts +29 -0
  88. package/dist/es/ui/feedbacks/components/CommentActions.d.ts +6 -0
  89. package/dist/es/ui/feedbacks/components/CommentEditor.d.ts +19 -0
  90. package/dist/es/ui/feedbacks/components/CommentItem.d.ts +21 -0
  91. package/dist/es/ui/feedbacks/components/CommentSection.d.ts +25 -0
  92. package/dist/es/ui/feedbacks/components/FeedbackBody.d.ts +16 -0
  93. package/dist/es/ui/feedbacks/components/FeedbackHeader.d.ts +11 -0
  94. package/dist/es/ui/feedbacks/components/index.d.ts +6 -0
  95. package/dist/es/ui/feedbacks/hooks/index.d.ts +1 -0
  96. package/dist/es/ui/feedbacks/hooks/useCommentEditor.d.ts +10 -0
  97. package/dist/es/ui/feedbacks/index.d.ts +1 -0
  98. package/dist/es/ui/feedbacks/utils/focusEditor.d.ts +6 -0
  99. package/dist/es/ui/feedbacks/utils/index.d.ts +1 -0
  100. package/dist/es/ui/index.d.ts +1 -0
  101. package/dist/user-notifications-Bh5Z6eqH.cjs +2 -0
  102. package/dist/user-notifications-Bh5Z6eqH.cjs.map +1 -0
  103. package/dist/{user-notifications-DbJeK8gS.js → user-notifications-CQ6PTkS2.js} +5 -4
  104. package/dist/user-notifications-CQ6PTkS2.js.map +1 -0
  105. package/package.json +11 -3
  106. package/dist/user-notifications-DbJeK8gS.js.map +0 -1
  107. package/dist/user-notifications-eaEdb3_1.cjs +0 -2
  108. package/dist/user-notifications-eaEdb3_1.cjs.map +0 -1
  109. /package/dist/{App.d.ts → cjs/App.d.ts} +0 -0
  110. /package/dist/{api → cjs/api}/axios/index.d.ts +0 -0
  111. /package/dist/{api → cjs/api}/axios/initialize-axios.d.ts +0 -0
  112. /package/dist/{api → cjs/api}/common/audio.d.ts +0 -0
  113. /package/dist/{api → cjs/api}/common/auth.d.ts +0 -0
  114. /package/dist/{api → cjs/api}/common/capture-rects.d.ts +0 -0
  115. /package/dist/{api → cjs/api}/common/feedback.d.ts +0 -0
  116. /package/dist/{api → cjs/api}/common/index.d.ts +0 -0
  117. /package/dist/{api → cjs/api}/common/institutions.d.ts +0 -0
  118. /package/dist/{api → cjs/api}/common/llm.d.ts +0 -0
  119. /package/dist/{api → cjs/api}/common/notice.d.ts +0 -0
  120. /package/dist/{api → cjs/api}/common/partners.d.ts +0 -0
  121. /package/dist/{api → cjs/api}/common/push.d.ts +0 -0
  122. /package/dist/{api → cjs/api}/common/speechs/index.d.ts +0 -0
  123. /package/dist/{api → cjs/api}/common/speechs/speech-audios.d.ts +0 -0
  124. /package/dist/{api → cjs/api}/common/speechs/speech-chat.d.ts +0 -0
  125. /package/dist/{api → cjs/api}/common/speechs/speech-patients.d.ts +0 -0
  126. /package/dist/{api → cjs/api}/common/speechs/speech-record-datas.d.ts +0 -0
  127. /package/dist/{api → cjs/api}/common/speechs/speech-records.d.ts +0 -0
  128. /package/dist/{api → cjs/api}/common/user-settings.d.ts +0 -0
  129. /package/dist/{api → cjs/api}/index.d.ts +0 -0
  130. /package/dist/{hooks → cjs/hooks}/feedbacks/index.d.ts +0 -0
  131. /package/dist/{hooks → cjs/hooks}/index.d.ts +0 -0
  132. /package/dist/{hooks → cjs/hooks}/useTest.d.ts +0 -0
  133. /package/dist/{hooks → cjs/hooks}/user-notifications/index.d.ts +0 -0
  134. /package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
  135. /package/dist/{lib → cjs/lib}/utils/index.d.ts +0 -0
  136. /package/dist/{lib → cjs/lib}/utils/utils.d.ts +0 -0
  137. /package/dist/{main.d.ts → cjs/main.d.ts} +0 -0
  138. /package/dist/{shadcn-ui → cjs/shadcn-ui}/button.d.ts +0 -0
  139. /package/dist/{shadcn-ui → cjs/shadcn-ui}/checkbox.d.ts +0 -0
  140. /package/dist/{shadcn-ui → cjs/shadcn-ui}/combobox.d.ts +0 -0
  141. /package/dist/{shadcn-ui → cjs/shadcn-ui}/command.d.ts +0 -0
  142. /package/dist/{shadcn-ui → cjs/shadcn-ui}/dialog.d.ts +0 -0
  143. /package/dist/{shadcn-ui → cjs/shadcn-ui}/drawer.d.ts +0 -0
  144. /package/dist/{shadcn-ui → cjs/shadcn-ui}/field.d.ts +0 -0
  145. /package/dist/{shadcn-ui → cjs/shadcn-ui}/hover-card.d.ts +0 -0
  146. /package/dist/{shadcn-ui → cjs/shadcn-ui}/index.d.ts +0 -0
  147. /package/dist/{shadcn-ui → cjs/shadcn-ui}/input.d.ts +0 -0
  148. /package/dist/{shadcn-ui → cjs/shadcn-ui}/kbd.d.ts +0 -0
  149. /package/dist/{shadcn-ui → cjs/shadcn-ui}/label.d.ts +0 -0
  150. /package/dist/{shadcn-ui → cjs/shadcn-ui}/pagination.d.ts +0 -0
  151. /package/dist/{shadcn-ui → cjs/shadcn-ui}/popover.d.ts +0 -0
  152. /package/dist/{shadcn-ui → cjs/shadcn-ui}/resizable.d.ts +0 -0
  153. /package/dist/{shadcn-ui → cjs/shadcn-ui}/scroll-area.d.ts +0 -0
  154. /package/dist/{shadcn-ui → cjs/shadcn-ui}/separator.d.ts +0 -0
  155. /package/dist/{shadcn-ui → cjs/shadcn-ui}/sheet.d.ts +0 -0
  156. /package/dist/{shadcn-ui → cjs/shadcn-ui}/slider.d.ts +0 -0
  157. /package/dist/{shadcn-ui → cjs/shadcn-ui}/textarea.d.ts +0 -0
  158. /package/dist/{shadcn-ui → cjs/shadcn-ui}/tooltip.d.ts +0 -0
  159. /package/dist/{types → cjs/types}/api/auth.d.ts +0 -0
  160. /package/dist/{types → cjs/types}/api/capture-rects.d.ts +0 -0
  161. /package/dist/{types → cjs/types}/api/feedback.d.ts +0 -0
  162. /package/dist/{types → cjs/types}/api/index.d.ts +0 -0
  163. /package/dist/{types → cjs/types}/api/institution.d.ts +0 -0
  164. /package/dist/{types → cjs/types}/api/llm/chat.d.ts +0 -0
  165. /package/dist/{types → cjs/types}/api/llm/diarization.d.ts +0 -0
  166. /package/dist/{types → cjs/types}/api/llm/disease-recommendation.d.ts +0 -0
  167. /package/dist/{types → cjs/types}/api/llm/index.d.ts +0 -0
  168. /package/dist/{types → cjs/types}/api/llm/medical-summary.d.ts +0 -0
  169. /package/dist/{types → cjs/types}/api/llm/mindmap.d.ts +0 -0
  170. /package/dist/{types → cjs/types}/api/notice.d.ts +0 -0
  171. /package/dist/{types → cjs/types}/api/partners.d.ts +0 -0
  172. /package/dist/{types → cjs/types}/api/push.d.ts +0 -0
  173. /package/dist/{types → cjs/types}/api/records.d.ts +0 -0
  174. /package/dist/{types → cjs/types}/api/transcript.d.ts +0 -0
  175. /package/dist/{types → cjs/types}/api/user-setting.d.ts +0 -0
  176. /package/dist/{types → cjs/types}/index.d.ts +0 -0
  177. /package/dist/{types → cjs/types}/sio/base-response.dto.d.ts +0 -0
  178. /package/dist/{types → cjs/types}/sio/index.d.ts +0 -0
  179. /package/dist/{types → cjs/types}/sio/patient-info.dto.d.ts +0 -0
  180. /package/dist/{types → cjs/types}/sio/ping-to-agent-response.dto.d.ts +0 -0
  181. /package/dist/{ui → cjs/ui}/feedbacks/FeedbackDetailPageContent.d.ts +0 -0
  182. /package/dist/{ui → cjs/ui}/feedbacks/components/CommentActions.d.ts +0 -0
  183. /package/dist/{ui → cjs/ui}/feedbacks/components/CommentEditor.d.ts +0 -0
  184. /package/dist/{ui → cjs/ui}/feedbacks/components/CommentItem.d.ts +0 -0
  185. /package/dist/{ui → cjs/ui}/feedbacks/components/CommentSection.d.ts +0 -0
  186. /package/dist/{ui → cjs/ui}/feedbacks/components/FeedbackBody.d.ts +0 -0
  187. /package/dist/{ui → cjs/ui}/feedbacks/components/FeedbackHeader.d.ts +0 -0
  188. /package/dist/{ui → cjs/ui}/feedbacks/components/index.d.ts +0 -0
  189. /package/dist/{ui → cjs/ui}/feedbacks/hooks/index.d.ts +0 -0
  190. /package/dist/{ui → cjs/ui}/feedbacks/hooks/useCommentEditor.d.ts +0 -0
  191. /package/dist/{ui → cjs/ui}/feedbacks/index.d.ts +0 -0
  192. /package/dist/{ui → cjs/ui}/feedbacks/utils/focusEditor.d.ts +0 -0
  193. /package/dist/{ui → cjs/ui}/feedbacks/utils/index.d.ts +0 -0
  194. /package/dist/{ui → cjs/ui}/index.d.ts +0 -0
@@ -0,0 +1,19 @@
1
+ import { TiptapEditorRefs } from '@kaburi/react-kit/tiptap';
2
+ import { default as React } from 'react';
3
+ interface CommentEditorProps {
4
+ ref?: React.Ref<HTMLDivElement>;
5
+ tiptapRef?: React.Ref<TiptapEditorRefs>;
6
+ initialContent?: string;
7
+ placeholder?: string;
8
+ isSubmitting?: boolean;
9
+ onSubmit: () => Promise<void> | void;
10
+ onCancel: () => void;
11
+ submitLabel?: string;
12
+ cancelLabel?: string;
13
+ showLabel?: boolean;
14
+ labelText?: string;
15
+ containerClassName?: string;
16
+ isEditMode?: boolean;
17
+ }
18
+ export declare const CommentEditor: ({ ref, tiptapRef, initialContent, isSubmitting, onSubmit, onCancel, submitLabel, cancelLabel, showLabel, labelText, containerClassName, }: CommentEditorProps) => import("react/jsx-runtime").JSX.Element;
19
+ export {};
@@ -0,0 +1,21 @@
1
+ import { TiptapEditorRefs } from '@kaburi/react-kit/tiptap';
2
+ import { default as React } from 'react';
3
+ import { FeedbackComment } from '../../../types';
4
+ interface CommentItemProps {
5
+ comment: FeedbackComment;
6
+ level: number;
7
+ currentUserId: string | undefined;
8
+ onReplyOpen: (commentId: string) => void;
9
+ replyingToId: string | null;
10
+ replyEditorRef: React.RefObject<TiptapEditorRefs | null>;
11
+ onSubmitReply: (parentCommentId: string) => Promise<void>;
12
+ isSubmitting: boolean;
13
+ onEdit: (commentId: string) => void;
14
+ editingId: string | null;
15
+ editEditorRef: React.RefObject<TiptapEditorRefs | null>;
16
+ onSubmitEdit: (commentId: string) => Promise<void>;
17
+ onDelete: (commentId: string) => Promise<void>;
18
+ isEditing: boolean;
19
+ }
20
+ export declare const CommentItem: ({ comment, level, currentUserId, onReplyOpen, replyingToId, replyEditorRef, onSubmitReply, isSubmitting, onEdit, editingId, editEditorRef, onSubmitEdit, onDelete, isEditing, }: CommentItemProps) => import("react/jsx-runtime").JSX.Element;
21
+ export {};
@@ -0,0 +1,25 @@
1
+ import { TiptapEditorRefs } from '@kaburi/react-kit/tiptap';
2
+ import { default as React } from 'react';
3
+ import { FeedbackComment } from '../../../types';
4
+ interface CommentSectionProps {
5
+ comments: FeedbackComment[];
6
+ isLoading: boolean;
7
+ isCommentEditOpen: boolean;
8
+ onCommentEditOpen: (open: boolean) => void;
9
+ commentEditorRef: React.RefObject<TiptapEditorRefs | null>;
10
+ onSubmitComment: () => Promise<void>;
11
+ isSubmitting: boolean;
12
+ replyingToId: string | null;
13
+ onReplyOpen: (commentId: string) => void;
14
+ replyEditorRef: React.RefObject<TiptapEditorRefs | null>;
15
+ onSubmitReply: (parentCommentId: string) => Promise<void>;
16
+ editingId: string | null;
17
+ onEdit: (commentId: string) => void;
18
+ editEditorRef: React.RefObject<TiptapEditorRefs | null>;
19
+ onSubmitEdit: (commentId: string) => Promise<void>;
20
+ onDelete: (commentId: string) => Promise<void>;
21
+ isEditing: boolean;
22
+ currentUserId: string | undefined;
23
+ }
24
+ export declare const CommentSection: ({ comments, isLoading, isCommentEditOpen, onCommentEditOpen, commentEditorRef, onSubmitComment, isSubmitting, replyingToId, onReplyOpen, replyEditorRef, onSubmitReply, editingId, onEdit, editEditorRef, onSubmitEdit, onDelete, isEditing, currentUserId, }: CommentSectionProps) => import("react/jsx-runtime").JSX.Element;
25
+ export {};
@@ -0,0 +1,16 @@
1
+ import { TiptapEditorRefs } from '@kaburi/react-kit/tiptap';
2
+ import { default as React } from 'react';
3
+ import { Feedback } from '../../../types';
4
+ interface FeedbackBodyProps {
5
+ feedback: Feedback;
6
+ isEditing: boolean;
7
+ isUpdating: boolean;
8
+ currentUserRole: string | undefined;
9
+ feedbackEditorRef: React.RefObject<TiptapEditorRefs | null>;
10
+ titleInputRef: React.RefObject<HTMLInputElement | null>;
11
+ onEditCancel: () => void;
12
+ onEditSave: () => Promise<void>;
13
+ onStatusChange: () => Promise<void>;
14
+ }
15
+ export declare const FeedbackBody: ({ feedback, isEditing, isUpdating, currentUserRole, feedbackEditorRef, titleInputRef, onEditCancel, onEditSave, onStatusChange, }: FeedbackBodyProps) => import("react/jsx-runtime").JSX.Element;
16
+ export {};
@@ -0,0 +1,11 @@
1
+ import { Feedback, UserDto } from '../../../types';
2
+ interface FeedbackHeaderProps {
3
+ feedback: Feedback;
4
+ currentUserId: string | undefined;
5
+ currentUser?: UserDto;
6
+ onEditClick: () => void;
7
+ onDeleteClick: () => void;
8
+ onViewDetailClick?: (recordId: string) => void;
9
+ }
10
+ export declare const FeedbackHeader: ({ feedback, currentUserId, currentUser, onEditClick, onDeleteClick, onViewDetailClick, }: FeedbackHeaderProps) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,6 @@
1
+ export { CommentEditor } from './CommentEditor';
2
+ export { CommentActions } from './CommentActions';
3
+ export { CommentItem } from './CommentItem';
4
+ export { CommentSection } from './CommentSection';
5
+ export { FeedbackHeader } from './FeedbackHeader';
6
+ export { FeedbackBody } from './FeedbackBody';
@@ -0,0 +1 @@
1
+ export * from './useCommentEditor';
@@ -0,0 +1,10 @@
1
+ import { TiptapEditorRefs } from '@kaburi/react-kit/tiptap';
2
+ export declare const useCommentEditor: () => {
3
+ commentEditorRef: import('react').RefObject<TiptapEditorRefs | null>;
4
+ replyEditorRef: import('react').RefObject<TiptapEditorRefs | null>;
5
+ editEditorRef: import('react').RefObject<TiptapEditorRefs | null>;
6
+ feedbackEditorRef: import('react').RefObject<TiptapEditorRefs | null>;
7
+ clearEditor: (ref: React.RefObject<TiptapEditorRefs | null>) => void;
8
+ getEditorContent: (ref: React.RefObject<TiptapEditorRefs | null>) => string;
9
+ validateContent: (content: string | object) => boolean;
10
+ };
@@ -0,0 +1 @@
1
+ export * from './FeedbackDetailPageContent';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * contenteditable 요소를 찾아서 포커스하는 유틸 함수
3
+ * @param containerId - 컨테이너 ID (옵션)
4
+ * @param delay - 포커스 전 대기 시간 (기본값: 100ms)
5
+ */
6
+ export declare const focusEditor: (containerId?: string, delay?: number) => void;
@@ -0,0 +1 @@
1
+ export { focusEditor } from './focusEditor';
@@ -0,0 +1 @@
1
+ export { FeedbackDetailPageContent } from './feedbacks';
@@ -0,0 +1,2 @@
1
+ "use strict";const a=require("./feedback-xoeZc8ns.cjs"),s={getNotifications:async()=>(await a.apiClient.get("/user-notifications")).data,markAsRead:async t=>(await a.apiClient.patch("/user-notifications/mark/read",t)).data,getUnreadNotificationCount:async()=>(await a.apiClient.get("/user-notifications/unread/count")).data,markAllAsAlert:async t=>(await a.apiClient.patch("/user-notifications/mark/alert/all",t)).data};exports.userNotificationsApi=s;
2
+ //# sourceMappingURL=user-notifications-Bh5Z6eqH.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-notifications-Bh5Z6eqH.cjs","sources":["../src/api/common/user-notifications.ts"],"sourcesContent":["import type {\r\n MarkAsReadRequest,\r\n UserNotification,\r\n UserNotificationListResponse\r\n} from \"../../types\";\r\nimport { apiClient } from \"../axios\";\r\n\r\nexport const userNotificationsApi = {\r\n getNotifications: async (): Promise<UserNotificationListResponse> => {\r\n const response = await apiClient.get(\"/user-notifications\");\r\n return response.data;\r\n },\r\n\r\n markAsRead: async (request: { targetId: string }): Promise<void> => {\r\n const response = await apiClient.patch(\r\n `/user-notifications/mark/read`,\r\n request\r\n );\r\n return response.data;\r\n },\r\n\r\n getUnreadNotificationCount: async (): Promise<{ count: number }> => {\r\n const response = await apiClient.get(\"/user-notifications/unread/count\");\r\n return response.data;\r\n },\r\n\r\n markAllAsAlert: async (request: MarkAsReadRequest): Promise<Array<UserNotification>> => {\r\n const response = await apiClient.patch(\r\n \"/user-notifications/mark/alert/all\",\r\n request\r\n );\r\n return response.data;\r\n },\r\n};\r\n"],"names":["userNotificationsApi","getNotifications","apiClient","get","data","markAsRead","request","patch","getUnreadNotificationCount","markAllAsAlert"],"mappings":"wDAOaA,EAAuB,CAClCC,iBAAkB,UACC,MAAMC,YAAUC,IAAI,qBAAqB,GAC1CC,KAGlBC,WAAY,MAAOC,IACA,MAAMJ,EAAAA,UAAUK,MAC/B,gCACAD,CACF,GACgBF,KAGlBI,2BAA4B,UACT,MAAMN,YAAUC,IAAI,kCAAkC,GACvDC,KAGlBK,eAAgB,MAAOH,IACJ,MAAMJ,EAAAA,UAAUK,MAC/B,qCACAD,CACF,GACgBF,IAEpB"}
@@ -1,10 +1,11 @@
1
1
  import { a } from "./feedback-BbDeqNIh.js";
2
- const e = {
2
+ const n = {
3
3
  getNotifications: async () => (await a.get("/user-notifications")).data,
4
4
  markAsRead: async (t) => (await a.patch("/user-notifications/mark/read", t)).data,
5
- getUnreadNotificationCount: async () => (await a.get("/user-notifications/unread/count")).data
5
+ getUnreadNotificationCount: async () => (await a.get("/user-notifications/unread/count")).data,
6
+ markAllAsAlert: async (t) => (await a.patch("/user-notifications/mark/alert/all", t)).data
6
7
  };
7
8
  export {
8
- e as u
9
+ n as u
9
10
  };
10
- //# sourceMappingURL=user-notifications-DbJeK8gS.js.map
11
+ //# sourceMappingURL=user-notifications-CQ6PTkS2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-notifications-CQ6PTkS2.js","sources":["../src/api/common/user-notifications.ts"],"sourcesContent":["import type {\r\n MarkAsReadRequest,\r\n UserNotification,\r\n UserNotificationListResponse\r\n} from \"../../types\";\r\nimport { apiClient } from \"../axios\";\r\n\r\nexport const userNotificationsApi = {\r\n getNotifications: async (): Promise<UserNotificationListResponse> => {\r\n const response = await apiClient.get(\"/user-notifications\");\r\n return response.data;\r\n },\r\n\r\n markAsRead: async (request: { targetId: string }): Promise<void> => {\r\n const response = await apiClient.patch(\r\n `/user-notifications/mark/read`,\r\n request\r\n );\r\n return response.data;\r\n },\r\n\r\n getUnreadNotificationCount: async (): Promise<{ count: number }> => {\r\n const response = await apiClient.get(\"/user-notifications/unread/count\");\r\n return response.data;\r\n },\r\n\r\n markAllAsAlert: async (request: MarkAsReadRequest): Promise<Array<UserNotification>> => {\r\n const response = await apiClient.patch(\r\n \"/user-notifications/mark/alert/all\",\r\n request\r\n );\r\n return response.data;\r\n },\r\n};\r\n"],"names":["userNotificationsApi","getNotifications","apiClient","get","data","markAsRead","request","patch","getUnreadNotificationCount","markAllAsAlert"],"mappings":";AAOO,MAAMA,IAAuB;AAAA,EAClCC,kBAAkB,aACC,MAAMC,EAAUC,IAAI,qBAAqB,GAC1CC;AAAAA,EAGlBC,YAAY,OAAOC,OACA,MAAMJ,EAAUK,MAC/B,iCACAD,CACF,GACgBF;AAAAA,EAGlBI,4BAA4B,aACT,MAAMN,EAAUC,IAAI,kCAAkC,GACvDC;AAAAA,EAGlBK,gBAAgB,OAAOH,OACJ,MAAMJ,EAAUK,MAC/B,sCACAD,CACF,GACgBF;AAEpB;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickcns/vmedic-react",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "description": "A collection of powerful utilities and components built with React and Vite",
5
5
  "author": "clickcns",
6
6
  "license": "MIT",
@@ -18,41 +18,49 @@
18
18
  "types": "./dist/es.d.ts",
19
19
  "exports": {
20
20
  ".": {
21
+ "development": "./src/index.ts",
21
22
  "types": "./dist/es.d.ts",
22
23
  "import": "./dist/es.js",
23
24
  "require": "./dist/cjs.js"
24
25
  },
25
26
  "./api": {
27
+ "development": "./src/api/index.ts",
26
28
  "types": "./dist/api/index.d.ts",
27
29
  "import": "./dist/es/api/index.js",
28
30
  "require": "./dist/cjs/api/index.js"
29
31
  },
30
32
  "./types": {
33
+ "development": "./src/types/index.ts",
31
34
  "types": "./dist/types/index.d.ts",
32
35
  "import": "./dist/es/types/index.js",
33
36
  "require": "./dist/cjs/types/index.js"
34
37
  },
35
38
  "./ui": {
39
+ "development": "./src/ui/index.ts",
36
40
  "types": "./dist/ui/index.d.ts",
37
41
  "import": "./dist/es/ui/index.js",
38
42
  "require": "./dist/cjs/ui/index.js"
39
43
  },
40
44
  "./shadcn-ui": {
45
+ "development": "./src/shadcn-ui/index.ts",
41
46
  "types": "./dist/shadcn-ui/index.d.ts",
42
47
  "import": "./dist/es/shadcn-ui/index.js",
43
48
  "require": "./dist/cjs/shadcn-ui/index.js"
44
49
  },
45
50
  "./hooks": {
51
+ "development": "./src/hooks/index.ts",
46
52
  "types": "./dist/hooks/index.d.ts",
47
53
  "import": "./dist/es/hooks/index.js",
48
54
  "require": "./dist/cjs/hooks/index.js"
49
55
  },
50
56
  "./hooks.user-notifications": {
57
+ "development": "./src/hooks/user-notifications/index.ts",
51
58
  "types": "./dist/hooks/user-notifications/index.d.ts",
52
59
  "import": "./dist/es/hooks.user-notifications/index.js",
53
60
  "require": "./dist/cjs/hooks.user-notifications/index.js"
54
61
  },
55
62
  "./hooks.feedbacks": {
63
+ "development": "./src/hooks/feedbacks/index.ts",
56
64
  "types": "./dist/hooks/feedbacks/index.d.ts",
57
65
  "import": "./dist/es/hooks.feedbacks/index.js",
58
66
  "require": "./dist/cjs/hooks.feedbacks/index.js"
@@ -90,13 +98,13 @@
90
98
  "class-variance-authority": "^0.7.0",
91
99
  "cmdk": "^1.0.0",
92
100
  "date-fns": "^4.0.0",
93
- "lucide-react": "^0.300.0",
94
101
  "react-resizable-panels": "^3.0.0",
95
102
  "tailwind-merge": "^2.0.0",
96
103
  "vaul": "^1.0.0"
97
104
  },
98
105
  "dependencies": {
99
- "@kaburi/react-kit": "^0.0.36"
106
+ "@kaburi/react-kit": "^0.0.36",
107
+ "lucide-react": "^0.522.0"
100
108
  },
101
109
  "devDependencies": {
102
110
  "@eslint/js": "^9.36.0",
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-notifications-DbJeK8gS.js","sources":["../src/api/common/user-notifications.ts"],"sourcesContent":["import type { UserNotificationListResponse } from \"../../types\";\r\nimport { apiClient } from \"../axios\";\r\n\r\nexport const userNotificationsApi = {\r\n getNotifications: async (): Promise<UserNotificationListResponse> => {\r\n const response = await apiClient.get(\"/user-notifications\");\r\n return response.data;\r\n },\r\n\r\n markAsRead: async (request: { targetId: string }): Promise<void> => {\r\n const response = await apiClient.patch(`/user-notifications/mark/read`, request);\r\n return response.data;\r\n },\r\n\r\n getUnreadNotificationCount: async (): Promise<{ count: number }> => {\r\n const response = await apiClient.get(\"/user-notifications/unread/count\");\r\n return response.data;\r\n },\r\n};\r\n"],"names":["userNotificationsApi","getNotifications","apiClient","get","data","markAsRead","request","patch","getUnreadNotificationCount"],"mappings":";AAGO,MAAMA,IAAuB;AAAA,EAClCC,kBAAkB,aACC,MAAMC,EAAUC,IAAI,qBAAqB,GAC1CC;AAAAA,EAGlBC,YAAY,OAAOC,OACA,MAAMJ,EAAUK,MAAM,iCAAiCD,CAAO,GAC/DF;AAAAA,EAGlBI,4BAA4B,aACT,MAAMN,EAAUC,IAAI,kCAAkC,GACvDC;AAEpB;"}
@@ -1,2 +0,0 @@
1
- "use strict";const e=require("./feedback-xoeZc8ns.cjs"),i={getNotifications:async()=>(await e.apiClient.get("/user-notifications")).data,markAsRead:async t=>(await e.apiClient.patch("/user-notifications/mark/read",t)).data,getUnreadNotificationCount:async()=>(await e.apiClient.get("/user-notifications/unread/count")).data};exports.userNotificationsApi=i;
2
- //# sourceMappingURL=user-notifications-eaEdb3_1.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-notifications-eaEdb3_1.cjs","sources":["../src/api/common/user-notifications.ts"],"sourcesContent":["import type { UserNotificationListResponse } from \"../../types\";\r\nimport { apiClient } from \"../axios\";\r\n\r\nexport const userNotificationsApi = {\r\n getNotifications: async (): Promise<UserNotificationListResponse> => {\r\n const response = await apiClient.get(\"/user-notifications\");\r\n return response.data;\r\n },\r\n\r\n markAsRead: async (request: { targetId: string }): Promise<void> => {\r\n const response = await apiClient.patch(`/user-notifications/mark/read`, request);\r\n return response.data;\r\n },\r\n\r\n getUnreadNotificationCount: async (): Promise<{ count: number }> => {\r\n const response = await apiClient.get(\"/user-notifications/unread/count\");\r\n return response.data;\r\n },\r\n};\r\n"],"names":["userNotificationsApi","getNotifications","apiClient","get","data","markAsRead","request","patch","getUnreadNotificationCount"],"mappings":"wDAGaA,EAAuB,CAClCC,iBAAkB,UACC,MAAMC,YAAUC,IAAI,qBAAqB,GAC1CC,KAGlBC,WAAY,MAAOC,IACA,MAAMJ,EAAAA,UAAUK,MAAM,gCAAiCD,CAAO,GAC/DF,KAGlBI,2BAA4B,UACT,MAAMN,YAAUC,IAAI,kCAAkC,GACvDC,IAEpB"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes