@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.
- package/dist/{api → cjs/api}/common/speechs/speech.d.ts +2 -5
- package/dist/{api → cjs/api}/common/user-notifications.d.ts +2 -1
- package/dist/cjs/api/index.js +1 -1
- package/dist/cjs/api/index.js.map +1 -1
- package/dist/cjs/hooks.user-notifications/index.js +1 -1
- package/dist/{types → cjs/types}/api/notifications.d.ts +7 -1
- package/dist/{types → cjs/types}/api/speech.d.ts +6 -0
- package/dist/es/App.d.ts +2 -0
- package/dist/es/api/axios/index.d.ts +1 -0
- package/dist/es/api/axios/initialize-axios.d.ts +11 -0
- package/dist/es/api/common/audio.d.ts +6 -0
- package/dist/es/api/common/auth.d.ts +22 -0
- package/dist/es/api/common/capture-rects.d.ts +12 -0
- package/dist/es/api/common/feedback.d.ts +18 -0
- package/dist/es/api/common/index.d.ts +12 -0
- package/dist/es/api/common/institutions.d.ts +10 -0
- package/dist/es/api/common/llm.d.ts +12 -0
- package/dist/es/api/common/notice.d.ts +8 -0
- package/dist/es/api/common/partners.d.ts +9 -0
- package/dist/es/api/common/push.d.ts +27 -0
- package/dist/es/api/common/speechs/index.d.ts +1 -0
- package/dist/es/api/common/speechs/speech-audios.d.ts +6 -0
- package/dist/es/api/common/speechs/speech-chat.d.ts +17 -0
- package/dist/es/api/common/speechs/speech-patients.d.ts +7 -0
- package/dist/es/api/common/speechs/speech-record-datas.d.ts +4 -0
- package/dist/es/api/common/speechs/speech-records.d.ts +27 -0
- package/dist/es/api/common/speechs/speech.d.ts +67 -0
- package/dist/es/api/common/user-notifications.d.ts +11 -0
- package/dist/es/api/common/user-settings.d.ts +5 -0
- package/dist/es/api/index.d.ts +2 -0
- package/dist/es/api/index.js +1 -4
- package/dist/es/api/index.js.map +1 -1
- package/dist/es/hooks/feedbacks/index.d.ts +10 -0
- package/dist/es/hooks/index.d.ts +1 -0
- package/dist/es/hooks/useTest.d.ts +8 -0
- package/dist/es/hooks/user-notifications/index.d.ts +7 -0
- package/dist/es/hooks.user-notifications/index.js +1 -1
- package/dist/es/index.d.ts +1 -0
- package/dist/es/lib/utils/index.d.ts +1 -0
- package/dist/es/lib/utils/utils.d.ts +2 -0
- package/dist/es/main.d.ts +0 -0
- package/dist/es/shadcn-ui/button.d.ts +10 -0
- package/dist/es/shadcn-ui/checkbox.d.ts +4 -0
- package/dist/es/shadcn-ui/combobox.d.ts +16 -0
- package/dist/es/shadcn-ui/command.d.ts +80 -0
- package/dist/es/shadcn-ui/dialog.d.ts +15 -0
- package/dist/es/shadcn-ui/drawer.d.ts +22 -0
- package/dist/es/shadcn-ui/field.d.ts +24 -0
- package/dist/es/shadcn-ui/hover-card.d.ts +6 -0
- package/dist/es/shadcn-ui/index.d.ts +20 -0
- package/dist/es/shadcn-ui/input.d.ts +3 -0
- package/dist/es/shadcn-ui/kbd.d.ts +3 -0
- package/dist/es/shadcn-ui/label.d.ts +4 -0
- package/dist/es/shadcn-ui/pagination.d.ts +32 -0
- package/dist/es/shadcn-ui/popover.d.ts +7 -0
- package/dist/es/shadcn-ui/resizable.d.ts +23 -0
- package/dist/es/shadcn-ui/scroll-area.d.ts +5 -0
- package/dist/es/shadcn-ui/separator.d.ts +4 -0
- package/dist/es/shadcn-ui/sheet.d.ts +25 -0
- package/dist/es/shadcn-ui/slider.d.ts +4 -0
- package/dist/es/shadcn-ui/textarea.d.ts +3 -0
- package/dist/es/shadcn-ui/tooltip.d.ts +7 -0
- package/dist/es/types/api/auth.d.ts +35 -0
- package/dist/es/types/api/capture-rects.d.ts +29 -0
- package/dist/es/types/api/feedback.d.ts +61 -0
- package/dist/es/types/api/index.d.ts +14 -0
- package/dist/es/types/api/institution.d.ts +7 -0
- package/dist/es/types/api/llm/chat.d.ts +62 -0
- package/dist/es/types/api/llm/diarization.d.ts +30 -0
- package/dist/es/types/api/llm/disease-recommendation.d.ts +13 -0
- package/dist/es/types/api/llm/index.d.ts +5 -0
- package/dist/es/types/api/llm/medical-summary.d.ts +15 -0
- package/dist/es/types/api/llm/mindmap.d.ts +7 -0
- package/dist/es/types/api/notice.d.ts +39 -0
- package/dist/es/types/api/notifications.d.ts +17 -0
- package/dist/es/types/api/partners.d.ts +42 -0
- package/dist/es/types/api/push.d.ts +14 -0
- package/dist/es/types/api/records.d.ts +49 -0
- package/dist/es/types/api/speech.d.ts +93 -0
- package/dist/es/types/api/transcript.d.ts +10 -0
- package/dist/es/types/api/user-setting.d.ts +23 -0
- package/dist/es/types/index.d.ts +2 -0
- package/dist/es/types/sio/base-response.dto.d.ts +4 -0
- package/dist/es/types/sio/index.d.ts +3 -0
- package/dist/es/types/sio/patient-info.dto.d.ts +4 -0
- package/dist/es/types/sio/ping-to-agent-response.dto.d.ts +5 -0
- package/dist/es/ui/feedbacks/FeedbackDetailPageContent.d.ts +29 -0
- package/dist/es/ui/feedbacks/components/CommentActions.d.ts +6 -0
- package/dist/es/ui/feedbacks/components/CommentEditor.d.ts +19 -0
- package/dist/es/ui/feedbacks/components/CommentItem.d.ts +21 -0
- package/dist/es/ui/feedbacks/components/CommentSection.d.ts +25 -0
- package/dist/es/ui/feedbacks/components/FeedbackBody.d.ts +16 -0
- package/dist/es/ui/feedbacks/components/FeedbackHeader.d.ts +11 -0
- package/dist/es/ui/feedbacks/components/index.d.ts +6 -0
- package/dist/es/ui/feedbacks/hooks/index.d.ts +1 -0
- package/dist/es/ui/feedbacks/hooks/useCommentEditor.d.ts +10 -0
- package/dist/es/ui/feedbacks/index.d.ts +1 -0
- package/dist/es/ui/feedbacks/utils/focusEditor.d.ts +6 -0
- package/dist/es/ui/feedbacks/utils/index.d.ts +1 -0
- package/dist/es/ui/index.d.ts +1 -0
- package/dist/user-notifications-Bh5Z6eqH.cjs +2 -0
- package/dist/user-notifications-Bh5Z6eqH.cjs.map +1 -0
- package/dist/{user-notifications-DbJeK8gS.js → user-notifications-CQ6PTkS2.js} +5 -4
- package/dist/user-notifications-CQ6PTkS2.js.map +1 -0
- package/package.json +11 -3
- package/dist/user-notifications-DbJeK8gS.js.map +0 -1
- package/dist/user-notifications-eaEdb3_1.cjs +0 -2
- package/dist/user-notifications-eaEdb3_1.cjs.map +0 -1
- /package/dist/{App.d.ts → cjs/App.d.ts} +0 -0
- /package/dist/{api → cjs/api}/axios/index.d.ts +0 -0
- /package/dist/{api → cjs/api}/axios/initialize-axios.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/audio.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/auth.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/capture-rects.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/feedback.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/index.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/institutions.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/llm.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/notice.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/partners.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/push.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/speechs/index.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/speechs/speech-audios.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/speechs/speech-chat.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/speechs/speech-patients.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/speechs/speech-record-datas.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/speechs/speech-records.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/user-settings.d.ts +0 -0
- /package/dist/{api → cjs/api}/index.d.ts +0 -0
- /package/dist/{hooks → cjs/hooks}/feedbacks/index.d.ts +0 -0
- /package/dist/{hooks → cjs/hooks}/index.d.ts +0 -0
- /package/dist/{hooks → cjs/hooks}/useTest.d.ts +0 -0
- /package/dist/{hooks → cjs/hooks}/user-notifications/index.d.ts +0 -0
- /package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
- /package/dist/{lib → cjs/lib}/utils/index.d.ts +0 -0
- /package/dist/{lib → cjs/lib}/utils/utils.d.ts +0 -0
- /package/dist/{main.d.ts → cjs/main.d.ts} +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/button.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/checkbox.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/combobox.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/command.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/dialog.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/drawer.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/field.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/hover-card.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/index.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/input.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/kbd.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/label.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/pagination.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/popover.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/resizable.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/scroll-area.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/separator.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/sheet.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/slider.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/textarea.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/tooltip.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/auth.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/capture-rects.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/feedback.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/index.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/institution.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/llm/chat.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/llm/diarization.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/llm/disease-recommendation.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/llm/index.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/llm/medical-summary.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/llm/mindmap.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/notice.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/partners.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/push.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/records.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/transcript.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/user-setting.d.ts +0 -0
- /package/dist/{types → cjs/types}/index.d.ts +0 -0
- /package/dist/{types → cjs/types}/sio/base-response.dto.d.ts +0 -0
- /package/dist/{types → cjs/types}/sio/index.d.ts +0 -0
- /package/dist/{types → cjs/types}/sio/patient-info.dto.d.ts +0 -0
- /package/dist/{types → cjs/types}/sio/ping-to-agent-response.dto.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/FeedbackDetailPageContent.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/components/CommentActions.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/components/CommentEditor.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/components/CommentItem.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/components/CommentSection.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/components/FeedbackBody.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/components/FeedbackHeader.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/components/index.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/hooks/index.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/hooks/useCommentEditor.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/index.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/utils/focusEditor.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/utils/index.d.ts +0 -0
- /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 @@
|
|
|
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
|
|
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
|
-
|
|
9
|
+
n as u
|
|
9
10
|
};
|
|
10
|
-
//# sourceMappingURL=user-notifications-
|
|
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.
|
|
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
|
|
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
|