@clickcns/vmedic-react 0.0.2

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 (86) hide show
  1. package/README.md +0 -0
  2. package/dist/App.d.ts +2 -0
  3. package/dist/TestComponent-B7kGqbVF.js +291 -0
  4. package/dist/TestComponent-B7kGqbVF.js.map +1 -0
  5. package/dist/TestComponent-oikV159P.cjs +7 -0
  6. package/dist/TestComponent-oikV159P.cjs.map +1 -0
  7. package/dist/api/axios/index.d.ts +1 -0
  8. package/dist/api/axios/initialize-axios.d.ts +10 -0
  9. package/dist/api/common/audio.d.ts +6 -0
  10. package/dist/api/common/auth.d.ts +13 -0
  11. package/dist/api/common/capture-rects.d.ts +4 -0
  12. package/dist/api/common/feedback.d.ts +18 -0
  13. package/dist/api/common/index.d.ts +10 -0
  14. package/dist/api/common/llm.d.ts +12 -0
  15. package/dist/api/common/notice.d.ts +5 -0
  16. package/dist/api/common/partners.d.ts +4 -0
  17. package/dist/api/common/push.d.ts +21 -0
  18. package/dist/api/common/speechs/index.d.ts +1 -0
  19. package/dist/api/common/speechs/speech-audios.d.ts +6 -0
  20. package/dist/api/common/speechs/speech-chat.d.ts +17 -0
  21. package/dist/api/common/speechs/speech-patients.d.ts +7 -0
  22. package/dist/api/common/speechs/speech-record-datas.d.ts +4 -0
  23. package/dist/api/common/speechs/speech-records.d.ts +22 -0
  24. package/dist/api/common/speechs/speech.d.ts +62 -0
  25. package/dist/api/common/user-settings.d.ts +5 -0
  26. package/dist/api/index.d.ts +2 -0
  27. package/dist/cjs/api/index.js +7 -0
  28. package/dist/cjs/api/index.js.map +1 -0
  29. package/dist/cjs/components/index.js +2 -0
  30. package/dist/cjs/components/index.js.map +1 -0
  31. package/dist/cjs/hooks/index.js +2 -0
  32. package/dist/cjs/hooks/index.js.map +1 -0
  33. package/dist/cjs/types/index.js +2 -0
  34. package/dist/cjs/types/index.js.map +1 -0
  35. package/dist/cjs/utils/index.js +2 -0
  36. package/dist/cjs/utils/index.js.map +1 -0
  37. package/dist/cjs.js +2 -0
  38. package/dist/cjs.js.map +1 -0
  39. package/dist/components/TestComponent.d.ts +5 -0
  40. package/dist/components/index.d.ts +1 -0
  41. package/dist/es/api/index.js +2049 -0
  42. package/dist/es/api/index.js.map +1 -0
  43. package/dist/es/components/index.js +5 -0
  44. package/dist/es/components/index.js.map +1 -0
  45. package/dist/es/hooks/index.js +5 -0
  46. package/dist/es/hooks/index.js.map +1 -0
  47. package/dist/es/types/index.js +2 -0
  48. package/dist/es/types/index.js.map +1 -0
  49. package/dist/es/utils/index.js +2 -0
  50. package/dist/es/utils/index.js.map +1 -0
  51. package/dist/es.js +7 -0
  52. package/dist/es.js.map +1 -0
  53. package/dist/hooks/index.d.ts +1 -0
  54. package/dist/hooks/useTest.d.ts +8 -0
  55. package/dist/index.d.ts +3 -0
  56. package/dist/main.d.ts +0 -0
  57. package/dist/types/api/auth.d.ts +34 -0
  58. package/dist/types/api/capture-rects.d.ts +10 -0
  59. package/dist/types/api/feedback.d.ts +58 -0
  60. package/dist/types/api/index copy.d.ts +10 -0
  61. package/dist/types/api/index.d.ts +11 -0
  62. package/dist/types/api/institution.d.ts +6 -0
  63. package/dist/types/api/llm/chat.d.ts +62 -0
  64. package/dist/types/api/llm/diarization.d.ts +30 -0
  65. package/dist/types/api/llm/disease-recommendation.d.ts +13 -0
  66. package/dist/types/api/llm/index.d.ts +5 -0
  67. package/dist/types/api/llm/medical-summary.d.ts +15 -0
  68. package/dist/types/api/llm/mindmap.d.ts +7 -0
  69. package/dist/types/api/notice.d.ts +29 -0
  70. package/dist/types/api/partners.d.ts +16 -0
  71. package/dist/types/api/records.d.ts +32 -0
  72. package/dist/types/api/speech.d.ts +83 -0
  73. package/dist/types/api/transcript.d.ts +10 -0
  74. package/dist/types/api/user-setting.d.ts +22 -0
  75. package/dist/types/index.d.ts +2 -0
  76. package/dist/types/sio/base-response.dto.d.ts +4 -0
  77. package/dist/types/sio/index.d.ts +3 -0
  78. package/dist/types/sio/patient-info.dto.d.ts +4 -0
  79. package/dist/types/sio/ping-to-agent-response.dto.d.ts +5 -0
  80. package/dist/useTest-D5Q24BCy.cjs +6 -0
  81. package/dist/useTest-D5Q24BCy.cjs.map +1 -0
  82. package/dist/useTest-qnK2xvVl.js +52 -0
  83. package/dist/useTest-qnK2xvVl.js.map +1 -0
  84. package/dist/utils/index.d.ts +1 -0
  85. package/dist/vite.svg +1 -0
  86. package/package.json +75 -0
@@ -0,0 +1,3 @@
1
+ export * from './components';
2
+ export * from './hooks';
3
+ export * from './utils';
package/dist/main.d.ts ADDED
File without changes
@@ -0,0 +1,34 @@
1
+ import { Institution } from './institution';
2
+ export interface UserDto {
3
+ id: string;
4
+ name: string;
5
+ username: string;
6
+ email?: string;
7
+ phone?: string;
8
+ ykiho?: string;
9
+ key: string;
10
+ role: "admin" | "user";
11
+ createdAt: Date | null;
12
+ updatedAt: Date | null;
13
+ institution?: Institution;
14
+ }
15
+ export interface Tokens {
16
+ accessToken: string;
17
+ }
18
+ export interface AuthResponse {
19
+ tokens: Tokens;
20
+ user: UserDto;
21
+ }
22
+ export interface LoginRequest {
23
+ username: string;
24
+ password: string;
25
+ }
26
+ export interface RegisterRequest {
27
+ username: string;
28
+ password: string;
29
+ ykiho: string;
30
+ name: string;
31
+ email?: string;
32
+ phone?: string;
33
+ role: "user";
34
+ }
@@ -0,0 +1,10 @@
1
+ export interface CaptureOnlyRect {
2
+ x: number;
3
+ y: number;
4
+ width: number;
5
+ height: number;
6
+ }
7
+ export interface CaptureRect extends CaptureOnlyRect {
8
+ id: string;
9
+ name: string;
10
+ }
@@ -0,0 +1,58 @@
1
+ export interface FeedbackDetail {
2
+ id: string;
3
+ feedbackId: string;
4
+ title: string;
5
+ body: string;
6
+ recordId?: string;
7
+ recordFileId?: string;
8
+ createdAt: string;
9
+ updatedAt: string;
10
+ }
11
+ export interface Feedback {
12
+ id: string;
13
+ userId: string;
14
+ status: 'pending' | 'resolved';
15
+ userName: string;
16
+ institutionName: string | null;
17
+ createdAt: string;
18
+ updatedAt: string;
19
+ feedbackDetail: FeedbackDetail;
20
+ }
21
+ export interface FeedbackListResponse {
22
+ feedbacks: Feedback[];
23
+ currentPage: number;
24
+ totalPages: number;
25
+ totalCount: number;
26
+ }
27
+ export interface FeedbackListRequest {
28
+ page?: number;
29
+ count?: number;
30
+ status?: 'pending' | 'resolved';
31
+ }
32
+ export interface CreateFeedbackRequest {
33
+ feedbackDetail: {
34
+ title: string;
35
+ body: string;
36
+ recordId?: string;
37
+ recordFileId?: string;
38
+ };
39
+ }
40
+ export interface FeedbackComment {
41
+ id: string;
42
+ feedbackId: string;
43
+ userId: string;
44
+ userName: string;
45
+ isAdmin: boolean;
46
+ body: string;
47
+ refId: string | null;
48
+ createdAt: string;
49
+ updatedAt: string;
50
+ children?: FeedbackComment[];
51
+ }
52
+ export interface FeedbackCommentsResponse {
53
+ comments: FeedbackComment[];
54
+ }
55
+ export interface CreateFeedbackCommentRequest {
56
+ body: string;
57
+ refId?: string;
58
+ }
@@ -0,0 +1,10 @@
1
+ export * from './auth';
2
+ export * from './institution';
3
+ export * from './speech';
4
+ export * from './capture-rects';
5
+ export * from '../api/types/user-setting';
6
+ export * from '../api/types/transcript';
7
+ export * from './partners';
8
+ export * from './records';
9
+ export * from './notice';
10
+ export * from './feedback';
@@ -0,0 +1,11 @@
1
+ export * from './speech';
2
+ export * from './auth';
3
+ export * from './capture-rects';
4
+ export * from './feedback';
5
+ export * from './institution';
6
+ export * from './notice';
7
+ export * from './partners';
8
+ export * from './records';
9
+ export * from './transcript';
10
+ export * from './user-setting';
11
+ export * from './llm';
@@ -0,0 +1,6 @@
1
+ export interface Institution {
2
+ ykiho: string;
3
+ name: string;
4
+ createdAt?: Date;
5
+ updatedAt?: Date;
6
+ }
@@ -0,0 +1,62 @@
1
+ export interface ChatRequest {
2
+ roomId?: string;
3
+ recordId: string;
4
+ humanMessageId: string;
5
+ conversationContent: string;
6
+ currentQuestion?: string;
7
+ action?: string;
8
+ }
9
+ export interface ChatResponse {
10
+ text: string;
11
+ }
12
+ export type ChatHumanStream = {
13
+ type: "human";
14
+ id: string;
15
+ content: string;
16
+ threadId: string;
17
+ };
18
+ export type ChatRoomStream = {
19
+ type: "room";
20
+ id: string;
21
+ };
22
+ export type ChatAiStream = {
23
+ type: "ai";
24
+ id: string;
25
+ content: string;
26
+ threadId: string;
27
+ };
28
+ export type ChatToolStream = {
29
+ type: "tool";
30
+ id: string;
31
+ name: string;
32
+ input: string;
33
+ content: string;
34
+ threadId: string;
35
+ };
36
+ export type ChatStream = ChatRoomStream | ChatAiStream | ChatToolStream | ChatHumanStream;
37
+ export interface LlmRoom {
38
+ id?: string;
39
+ name?: string;
40
+ createdAt?: Date;
41
+ updatedAt?: Date;
42
+ msgs?: LlmMsg[];
43
+ }
44
+ export interface LlmMsg {
45
+ id: string;
46
+ role: "human" | "ai" | "tool";
47
+ threadId: string;
48
+ text?: LlmText;
49
+ tool?: LlmTool;
50
+ img?: LlmImg;
51
+ }
52
+ export interface LlmText {
53
+ content: string;
54
+ }
55
+ export interface LlmTool {
56
+ name: string;
57
+ input: string;
58
+ content: string;
59
+ }
60
+ export interface LlmImg {
61
+ content: string;
62
+ }
@@ -0,0 +1,30 @@
1
+ export interface DiarizationRequest {
2
+ /**
3
+ * 화자 분리를 수행할 텍스트
4
+ * @example '안녕하세요. 오늘 회의는 어떻게 진행할까요? 네, 먼저 안건부터 정리해보겠습니다.'
5
+ */
6
+ content: string;
7
+ /**
8
+ * 이전 화자 분리 결과 (선택사항)
9
+ * @example 'A: 안녕하세요. B: 반갑습니다.'
10
+ */
11
+ previousContext?: string;
12
+ }
13
+ export interface DiarizationMessage {
14
+ /**
15
+ * 화자 이름
16
+ * @example 'Speaker A'
17
+ */
18
+ speaker: string;
19
+ /**
20
+ * 화자의 발화 내용
21
+ * @example '안녕하세요.'
22
+ */
23
+ content: string;
24
+ }
25
+ export interface DiarizationResponse {
26
+ /**
27
+ * 화자별 메시지 목록
28
+ */
29
+ messages: DiarizationMessage[];
30
+ }
@@ -0,0 +1,13 @@
1
+ export interface DiseaseRecommendationRequestDto {
2
+ conversation: string;
3
+ }
4
+ export interface DiseaseRecommendationResponseDto {
5
+ data: DiseaseRecommendation[];
6
+ message?: string;
7
+ }
8
+ export interface DiseaseRecommendation {
9
+ code: string;
10
+ name: string;
11
+ percent: number;
12
+ symptoms: string[];
13
+ }
@@ -0,0 +1,5 @@
1
+ export * from './diarization';
2
+ export * from './medical-summary';
3
+ export * from './chat';
4
+ export * from './mindmap';
5
+ export * from './disease-recommendation';
@@ -0,0 +1,15 @@
1
+ export interface MedicalSummaryRequest {
2
+ conversation: string;
3
+ }
4
+ export interface MedicalSummaryPlan {
5
+ medication: string;
6
+ education: string;
7
+ followUp: string;
8
+ }
9
+ export interface MedicalSummaryResponse {
10
+ cc: string;
11
+ subjective: string;
12
+ objective: string;
13
+ assessment: string;
14
+ plan: MedicalSummaryPlan;
15
+ }
@@ -0,0 +1,7 @@
1
+ export interface MindmapNodeData {
2
+ label: string;
3
+ [key: string]: MindmapNodeData | string;
4
+ }
5
+ export interface MindmapResponse {
6
+ [key: string]: MindmapNodeData;
7
+ }
@@ -0,0 +1,29 @@
1
+ export interface Notice {
2
+ id: string;
3
+ title: string;
4
+ content: string;
5
+ author: string;
6
+ createdAt: string;
7
+ updatedAt: string;
8
+ published: boolean;
9
+ }
10
+ export interface NoticeListItem {
11
+ id: string;
12
+ title: string;
13
+ author: string;
14
+ published: boolean;
15
+ createdAt: string;
16
+ updatedAt: string;
17
+ }
18
+ export interface NoticeListResponse {
19
+ notices: NoticeListItem[];
20
+ currentPage: number;
21
+ totalPages: number;
22
+ totalCount: number;
23
+ }
24
+ export interface NoticeListRequest {
25
+ page?: number;
26
+ count?: number;
27
+ searchText?: string;
28
+ showPublishedOnly?: boolean;
29
+ }
@@ -0,0 +1,16 @@
1
+ export interface PartnerDto {
2
+ id: string;
3
+ representativeName: string;
4
+ businessNumber: string | null;
5
+ companyName: string;
6
+ businessType: string | null;
7
+ businessCategory: string | null;
8
+ postCode: string | null;
9
+ addressName: string | null;
10
+ addressDetail: string | null;
11
+ email: string | null;
12
+ phoneNumber: string | null;
13
+ faxNumber: string | null;
14
+ createdAt: Date;
15
+ updatedAt: Date;
16
+ }
@@ -0,0 +1,32 @@
1
+ import { DiarizationMessage, LlmRoom, MedicalSummaryResponse } from './llm';
2
+ import { AudioFile, Patient } from './speech';
3
+ export interface RecordsResponse {
4
+ id: string;
5
+ chart: string;
6
+ createdAt: Date;
7
+ updatedAt: Date;
8
+ userId: string;
9
+ ykiho: string | null;
10
+ patient: Patient;
11
+ llmRooms?: LlmRoom[];
12
+ audioFiles?: AudioFile[];
13
+ recordData?: Partial<RecordData> | null;
14
+ }
15
+ export interface RecordData {
16
+ id: string;
17
+ createdAt: Date;
18
+ recordId: string;
19
+ medicalSummary: MedicalSummaryResponse | null;
20
+ speakerDiarization: DiarizationMessage[] | null;
21
+ }
22
+ export interface RecordsPageRequest {
23
+ page: number;
24
+ count: number;
25
+ searchText?: string;
26
+ }
27
+ export interface RecordsWithPageResponse {
28
+ records: RecordsResponse[];
29
+ totalCount: number;
30
+ totalPages: number;
31
+ currentPage: number;
32
+ }
@@ -0,0 +1,83 @@
1
+ import { LlmRoom } from './llm/chat';
2
+ import { RecordsResponse } from './records';
3
+ import { Transcript } from './transcript';
4
+ export interface TranscribeV2Response {
5
+ transcript: string;
6
+ language: string;
7
+ }
8
+ export interface TranscribeWithTranslationResponse {
9
+ transcripts: Transcript[];
10
+ }
11
+ export interface UploadBlobs {
12
+ vadBuffer: ArrayBuffer | undefined;
13
+ totalBuffer: ArrayBuffer;
14
+ opusBlob: Blob;
15
+ duration: number;
16
+ startTime?: number;
17
+ endTime?: number;
18
+ }
19
+ export interface UploadRequest extends UploadBlobs {
20
+ chart: string;
21
+ transcript: string;
22
+ recordId?: string;
23
+ }
24
+ export interface UploadWithTranslationRequest {
25
+ opusBlob: ArrayBuffer | Blob;
26
+ chart: string;
27
+ transcript: string;
28
+ transcripts: Transcript[];
29
+ durationSeconds: number;
30
+ recordId?: string;
31
+ }
32
+ export interface UploadResponse {
33
+ record: Partial<RecordsResponse>;
34
+ audioFiles: AudioFile[];
35
+ isFirstUpload?: boolean;
36
+ }
37
+ export interface ActivateRecordInfo extends Partial<Omit<RecordsResponse, "llmRooms">> {
38
+ llmRoom?: LlmRoom;
39
+ }
40
+ export interface AudioFile {
41
+ id: string;
42
+ recordId: string;
43
+ bucket: string;
44
+ objectKey: string;
45
+ fileSize: string;
46
+ durationSeconds: number;
47
+ mimeType: string;
48
+ updatedAt: Date;
49
+ transcripts?: AudioTranscript[];
50
+ }
51
+ export interface AudioTranscript {
52
+ id: string;
53
+ transcript: string;
54
+ language: string;
55
+ translatedText: string;
56
+ translatedLanguage: string;
57
+ audioFileId: string;
58
+ start: number;
59
+ end: number;
60
+ createdAt: Date;
61
+ }
62
+ export interface ChatRoomsResponse {
63
+ id: string;
64
+ name: string;
65
+ createdAt: Date;
66
+ updatedAt: Date;
67
+ }
68
+ export interface Patient {
69
+ id: string;
70
+ name: string;
71
+ ykiho: string;
72
+ chart: string;
73
+ }
74
+ export interface UpsertPatientRequest {
75
+ chart: string;
76
+ name?: string;
77
+ }
78
+ export type ResummaryPart = "cc" | "subjective" | "objective" | "assessment" | "plan";
79
+ export interface ResummaryPartRequest {
80
+ recordId: string;
81
+ level: number;
82
+ part: ResummaryPart;
83
+ }
@@ -0,0 +1,10 @@
1
+ export interface Transcript {
2
+ source: TranscriptValue;
3
+ translated: TranscriptValue;
4
+ startTime?: number;
5
+ endTime?: number;
6
+ }
7
+ export interface TranscriptValue {
8
+ text: string;
9
+ language: string;
10
+ }
@@ -0,0 +1,22 @@
1
+ interface BaseUpsertUserSettingRequest {
2
+ language: "ko" | "en";
3
+ ccSummaryLevel: number;
4
+ subjectiveSummaryLevel: number;
5
+ objectiveSummaryLevel: number;
6
+ assessmentSummaryLevel: number;
7
+ planSummaryLevel: number;
8
+ fileStorageType: "local" | "s3" | "localAndS3";
9
+ includeSummaryTitleOnCopy: boolean;
10
+ ccCustomLevelPrompt?: string;
11
+ sCustomLevelPrompt?: string;
12
+ oCustomLevelPrompt?: string;
13
+ aCustomLevelPrompt?: string;
14
+ pCustomLevelPrompt?: string;
15
+ useAutoRecord?: boolean;
16
+ }
17
+ export type UpsertUserSettingRequest = Partial<BaseUpsertUserSettingRequest>;
18
+ export interface UserSetting extends BaseUpsertUserSettingRequest {
19
+ id: string;
20
+ userId: string;
21
+ }
22
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './api';
2
+ export * from './sio';
@@ -0,0 +1,4 @@
1
+ export interface BaseResponseDto {
2
+ success: boolean;
3
+ message?: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ export * from './base-response.dto';
2
+ export * from './patient-info.dto';
3
+ export * from './ping-to-agent-response.dto';
@@ -0,0 +1,4 @@
1
+ export interface PatientInfoDto {
2
+ chart: string;
3
+ name: string;
4
+ }
@@ -0,0 +1,5 @@
1
+ import { BaseResponseDto } from '.';
2
+ export interface PingToAgentResponseDto extends BaseResponseDto {
3
+ success: boolean;
4
+ targetAppName?: string;
5
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";const a=require("react");var i={exports:{}},u={};var s;function R(){if(s)return u;s=1;var e=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return u.c=function(t){return e.H.useMemoCache(t)},u}var c={};var l;function h(){return l||(l=1,process.env.NODE_ENV!=="production"&&(function(){var e=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;c.c=function(t){var r=e.H;return r===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
2
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
3
+ 2. You might be breaking the Rules of Hooks
4
+ 3. You might have more than one copy of React in the same app
5
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(t)}})()),c}var m;function f(){return m||(m=1,process.env.NODE_ENV==="production"?i.exports=R():i.exports=h()),i.exports}var p=f();function d(){const e=p.c(3),[t,r]=a.useState(0);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>r(v),e[0]=o):o=e[0];const _=o;let n;return e[1]!==t?(n={count:t,increment:_},e[1]=t,e[2]=n):n=e[2],n}function v(e){return e+1}exports.compilerRuntimeExports=p;exports.useTest=d;
6
+ //# sourceMappingURL=useTest-D5Q24BCy.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTest-D5Q24BCy.cjs","sources":["../node_modules/react/cjs/react-compiler-runtime.production.js","../node_modules/react/cjs/react-compiler-runtime.development.js","../node_modules/react/compiler-runtime.js","../src/hooks/useTest.ts"],"sourcesContent":["/**\n * @license React\n * react-compiler-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\nexports.c = function (size) {\n return ReactSharedInternals.H.useMemoCache(size);\n};\n","/**\n * @license React\n * react-compiler-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n var ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\n exports.c = function (size) {\n var dispatcher = ReactSharedInternals.H;\n null === dispatcher &&\n console.error(\n \"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.\"\n );\n return dispatcher.useMemoCache(size);\n };\n })();\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-compiler-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-compiler-runtime.development.js');\n}\n","import { useState } from 'react'\r\n\r\n/**\r\n * 테스트용 커스텀 훅\r\n * @returns { count, increment }\r\n */\r\nexport function useTest() {\r\n const [count, setCount] = useState(0)\r\n const increment = () => setCount((c) => c + 1)\r\n return { count, increment }\r\n}\r\n"],"names":["ReactSharedInternals","require$$0","reactCompilerRuntime_production","size","reactCompilerRuntime_development","dispatcher","compilerRuntimeModule","require$$1","useTest","$","_c","count","setCount","useState","t0","Symbol","for","_temp","increment","t1","c"],"mappings":"mGAWA,IAAIA,EACFC,EAAiB,gEACnB,OAAAC,EAAA,EAAY,SAAUC,EAAM,CAC1B,OAAOH,EAAqB,EAAE,aAAaG,CAAI,CACjD,+CCJiB,QAAQ,IAAI,WAA7B,eACG,UAAY,CACX,IAAIH,EACFC,EAAiB,gEACnBG,EAAA,EAAY,SAAUD,EAAM,CAC1B,IAAIE,EAAaL,EAAqB,EACtC,OAASK,IAAT,MACE,QAAQ,MACN;AAAA;AAAA;AAAA;AAAA,iGAEGA,EAAW,aAAaF,CAAI,CACzC,CACA,GAAG,uCCdC,QAAQ,IAAI,WAAa,aAC3BG,EAAA,QAAiBL,EAAA,EAEjBK,EAAA,QAAiBC,EAAA,uBCNZ,SAAAC,GAAA,CAAA,MAAAC,EAAAC,EAAAA,EAAA,CAAA,EACL,CAAAC,EAAAC,CAAA,EAA0BC,EAAAA,UAAU,EAAC,IAAAC,EAAAL,EAAA,CAAA,IAAAM,OAAAC,IAAA,2BAAA,GACnBF,EAAAA,IAAMF,EAAQK,CAAa,EAACR,KAAAK,GAAAA,EAAAL,EAAA,CAAA,EAA9C,MAAAS,EAAkBJ,EAA4B,IAAAK,EAAA,OAAAV,OAAAE,GACvCQ,EAAA,CAAAR,MAAAA,EAAAO,UAAAA,CAAAA,EAAoBT,KAAAE,EAAAF,KAAAU,GAAAA,EAAAV,EAAA,CAAA,EAApBU,CAAoB,CAHtB,SAAAF,EAAAG,EAAA,CAAA,OAEmCA,EAAC,CAAI","x_google_ignoreList":[0,1,2]}
@@ -0,0 +1,52 @@
1
+ import l, { useState as _ } from "react";
2
+ var i = { exports: {} }, a = {};
3
+ var c;
4
+ function R() {
5
+ if (c) return a;
6
+ c = 1;
7
+ var e = l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
8
+ return a.c = function(t) {
9
+ return e.H.useMemoCache(t);
10
+ }, a;
11
+ }
12
+ var u = {};
13
+ var s;
14
+ function h() {
15
+ return s || (s = 1, process.env.NODE_ENV !== "production" && (function() {
16
+ var e = l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
17
+ u.c = function(t) {
18
+ var o = e.H;
19
+ return o === null && console.error(
20
+ `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
21
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
22
+ 2. You might be breaking the Rules of Hooks
23
+ 3. You might have more than one copy of React in the same app
24
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
25
+ ), o.useMemoCache(t);
26
+ };
27
+ })()), u;
28
+ }
29
+ var m;
30
+ function f() {
31
+ return m || (m = 1, process.env.NODE_ENV === "production" ? i.exports = R() : i.exports = h()), i.exports;
32
+ }
33
+ var d = f();
34
+ function E() {
35
+ const e = d.c(3), [t, o] = _(0);
36
+ let r;
37
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = () => o(v), e[0] = r) : r = e[0];
38
+ const p = r;
39
+ let n;
40
+ return e[1] !== t ? (n = {
41
+ count: t,
42
+ increment: p
43
+ }, e[1] = t, e[2] = n) : n = e[2], n;
44
+ }
45
+ function v(e) {
46
+ return e + 1;
47
+ }
48
+ export {
49
+ d as c,
50
+ E as u
51
+ };
52
+ //# sourceMappingURL=useTest-qnK2xvVl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTest-qnK2xvVl.js","sources":["../node_modules/react/cjs/react-compiler-runtime.production.js","../node_modules/react/cjs/react-compiler-runtime.development.js","../node_modules/react/compiler-runtime.js","../src/hooks/useTest.ts"],"sourcesContent":["/**\n * @license React\n * react-compiler-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\nexports.c = function (size) {\n return ReactSharedInternals.H.useMemoCache(size);\n};\n","/**\n * @license React\n * react-compiler-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n var ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\n exports.c = function (size) {\n var dispatcher = ReactSharedInternals.H;\n null === dispatcher &&\n console.error(\n \"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.\"\n );\n return dispatcher.useMemoCache(size);\n };\n })();\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-compiler-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-compiler-runtime.development.js');\n}\n","import { useState } from 'react'\r\n\r\n/**\r\n * 테스트용 커스텀 훅\r\n * @returns { count, increment }\r\n */\r\nexport function useTest() {\r\n const [count, setCount] = useState(0)\r\n const increment = () => setCount((c) => c + 1)\r\n return { count, increment }\r\n}\r\n"],"names":["ReactSharedInternals","require$$0","reactCompilerRuntime_production","size","reactCompilerRuntime_development","dispatcher","compilerRuntimeModule","require$$1","useTest","$","_c","count","setCount","useState","t0","Symbol","for","_temp","increment","t1","c"],"mappings":";;;;;;AAWA,MAAIA,IACFC,EAAiB;AACnB,SAAAC,EAAA,IAAY,SAAUC,GAAM;AAC1B,WAAOH,EAAqB,EAAE,aAAaG,CAAI;AAAA,EACjD;;;;;sBCJiB,QAAQ,IAAI,aAA7B,iBACG,WAAY;AACX,QAAIH,IACFC,EAAiB;AACnB,IAAAG,EAAA,IAAY,SAAUD,GAAM;AAC1B,UAAIE,IAAaL,EAAqB;AACtC,aAASK,MAAT,QACE,QAAQ;AAAA,QACN;AAAA;AAAA;AAAA;AAAA;AAAA,SAEGA,EAAW,aAAaF,CAAI;AAAA,IACzC;AAAA,EACA,GAAG;;;;sBCdC,QAAQ,IAAI,aAAa,eAC3BG,EAAA,UAAiBL,EAAA,IAEjBK,EAAA,UAAiBC,EAAA;;;ACNZ,SAAAC,IAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,CAAA,GACL,CAAAC,GAAAC,CAAA,IAA0BC,GAAU;AAAC,MAAAC;AAAA,EAAAL,EAAA,CAAA,MAAAM,OAAAC,IAAA,2BAAA,KACnBF,IAAAA,MAAMF,EAAQK,CAAa,GAACR,OAAAK,KAAAA,IAAAL,EAAA,CAAA;AAA9C,QAAAS,IAAkBJ;AAA4B,MAAAK;AAAA,SAAAV,SAAAE,KACvCQ,IAAA;AAAA,IAAAR,OAAAA;AAAAA,IAAAO,WAAAA;AAAAA,EAAAA,GAAoBT,OAAAE,GAAAF,OAAAU,KAAAA,IAAAV,EAAA,CAAA,GAApBU;AAAoB;AAHtB,SAAAF,EAAAG,GAAA;AAAA,SAEmCA,IAAC;AAAI;","x_google_ignoreList":[0,1,2]}
@@ -0,0 +1 @@
1
+ export * from './index';
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>