touchstudy-core 0.1.196 → 0.1.197

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 (49) hide show
  1. package/dist/components/Chats/ChatContainer.d.ts +1 -5
  2. package/dist/components/Chats/components/InputChat.d.ts +2 -8
  3. package/dist/components/Chats/configs/constants.d.ts +1 -8
  4. package/dist/components/Chats/configs/types.d.ts +0 -2
  5. package/dist/components/Chats/hooks/useChatContainer.d.ts +2 -6
  6. package/dist/components/Selects/CustomSelectOption.d.ts +1 -1
  7. package/dist/index.css +16 -4
  8. package/dist/index.js +239 -1083
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.modern.js +244 -1088
  11. package/dist/index.modern.js.map +1 -1
  12. package/dist/layouts/TimerDialog.d.ts +3 -1
  13. package/dist/layouts/configs/constants.d.ts +2 -0
  14. package/dist/layouts/configs/enums.d.ts +6 -0
  15. package/dist/layouts/configs/fn.d.ts +3 -0
  16. package/dist/layouts/configs/types.d.ts +8 -0
  17. package/dist/layouts/hooks/useAlarm.d.ts +19 -0
  18. package/dist/layouts/hooks/useCountDownTimer.d.ts +6 -2
  19. package/dist/layouts/hooks/useTimers.d.ts +14 -0
  20. package/dist/layouts/partials/Alarm/AlarmClock.d.ts +12 -0
  21. package/dist/layouts/partials/Alarm/AlarmClockNote.d.ts +3 -0
  22. package/dist/layouts/partials/Alarm/AlarmClockPanel.d.ts +12 -0
  23. package/dist/layouts/partials/Alarm/AlarmClockPanelNote.d.ts +3 -0
  24. package/dist/layouts/partials/Alarm/AlarmClockTab.d.ts +14 -0
  25. package/dist/layouts/partials/Alarm/AlarmSpeakerCheckbox.d.ts +8 -0
  26. package/dist/layouts/partials/Alarm/AudioToastContent.d.ts +8 -0
  27. package/dist/layouts/partials/AlarmClock.d.ts +3 -1
  28. package/dist/layouts/partials/AlarmClockNote.d.ts +3 -0
  29. package/dist/layouts/partials/AlarmClockPanel.d.ts +3 -1
  30. package/dist/layouts/partials/AlarmClockPanelNote.d.ts +3 -0
  31. package/dist/layouts/partials/AlarmClockTab.d.ts +4 -3
  32. package/dist/layouts/partials/AudioToastContent.d.ts +8 -0
  33. package/dist/layouts/partials/StudyTimerTab.d.ts +2 -1
  34. package/dist/layouts/partials/TimeUpdateDialog.d.ts +7 -0
  35. package/dist/layouts/partials/Timer/StudyTimerTab.d.ts +13 -0
  36. package/dist/layouts/partials/Timer/TimeLineTabPanel.d.ts +8 -0
  37. package/dist/layouts/partials/Timer/TimeLineTabs.d.ts +11 -0
  38. package/dist/layouts/partials/Timer/TimeUpdateDialog.d.ts +7 -0
  39. package/dist/layouts/partials/Timer/TimerCountItem.d.ts +10 -0
  40. package/dist/layouts/partials/Timer/TimerDivider.d.ts +9 -0
  41. package/dist/layouts/partials/Timer/TimerItem.d.ts +12 -0
  42. package/dist/layouts/partials/Timer/TimerLineItem.d.ts +13 -0
  43. package/dist/layouts/partials/Timer/TimerTabPanel.d.ts +8 -0
  44. package/dist/layouts/partials/Timer/TimerTabs.d.ts +7 -0
  45. package/dist/layouts/partials/TimerItem.d.ts +2 -1
  46. package/dist/services/alarmService.d.ts +9 -0
  47. package/dist/utils/types/examResults.d.ts +1 -0
  48. package/dist/utils/types/subjects.d.ts +4 -2
  49. package/package.json +1 -2
@@ -2,7 +2,6 @@ import { IChatListProps } from "./components/ChatList";
2
2
  import { IInputChatProps } from "./components/InputChat";
3
3
  import { IChatHeaderProps } from "./components/ChatHeader";
4
4
  import { FC } from "react";
5
- import { Role } from "../../utils";
6
5
  export interface IChatContainerProps {
7
6
  chatHeaderProps: IChatHeaderProps;
8
7
  chatListProps: IChatListProps;
@@ -15,8 +14,5 @@ export interface IChatContainerProps {
15
14
  onReachBottom?: () => void;
16
15
  onEndScrollToEnd?: () => void;
17
16
  }
18
- interface Props extends IChatContainerProps {
19
- role: Role;
20
- }
21
- declare const ChatContainer: FC<Props>;
17
+ declare const ChatContainer: FC<IChatContainerProps>;
22
18
  export default ChatContainer;
@@ -1,20 +1,14 @@
1
- import { FC, MouseEvent } from "react";
2
- import { Role } from "../../../utils";
1
+ import { FC } from "react";
3
2
  export interface IInputChatProps {
4
- isSending: boolean;
5
3
  text: string;
6
- drawPath?: any;
7
4
  onSubmit: () => void;
8
5
  onChangeInput: (text: string) => void;
9
6
  isCompleted?: boolean;
10
7
  handleUploadImage: (file: File) => void;
11
- onSaveCanvas: (data: string, drawPath: any) => void;
12
8
  selectedFile?: string | null;
13
- handleDeleteSelectedImage: (e: MouseEvent<HTMLButtonElement>) => void;
14
- onClearCanvas: () => void;
9
+ handleDeleteSelectedImage: () => void;
15
10
  }
16
11
  interface Props extends IInputChatProps {
17
- role: Role;
18
12
  }
19
13
  declare const InputChat: FC<Props>;
20
14
  export default InputChat;
@@ -1,4 +1,4 @@
1
- import { Align, ConversationFilter, MessageFilter } from "./types";
1
+ import { ConversationFilter, MessageFilter } from "./types";
2
2
  export declare enum ExamStatus {
3
3
  Default = "Default",
4
4
  Pending = "Pending",
@@ -12,10 +12,3 @@ export declare enum Roles {
12
12
  }
13
13
  export declare const CONVERSATION_DEFAULT_FILTER: ConversationFilter;
14
14
  export declare const MESSAGE_DEFAULT_FILTER: MessageFilter;
15
- export declare const AlignList: Align[];
16
- export declare const DEFAULT_STROKE_COLOR = "#000000";
17
- export declare const DEFAULT_BG_COLOR = "#FFFFFF";
18
- export declare const DEFAULT_STROKE_WIDTH = 4;
19
- export declare const DEFAULT_ERASER_WIDTH = 10;
20
- export declare const CANVAS_WIDTH = 800;
21
- export declare const CANVAS_HEIGHT = 600;
@@ -177,5 +177,3 @@ export declare enum MessageStatus {
177
177
  Sending = "Sending...",
178
178
  SentError = "Sent fail, Retry"
179
179
  }
180
- export declare type Align = "Min" | "Max" | "Mid";
181
- export declare type Axis = "x" | "y";
@@ -1,4 +1,4 @@
1
- import { MouseEvent } from "react";
1
+ /// <reference types="react" />
2
2
  import { ConversationsResponse, MessageRequest, StudentsConversationResponse } from "../configs/types";
3
3
  import { IChatItemProps } from "../components/ChatItem";
4
4
  interface Props {
@@ -29,16 +29,12 @@ declare const useChatContainer: (props: Props) => {
29
29
  handleDeleteMessage: (conversationId: number, id: number, callback: any) => Promise<void>;
30
30
  };
31
31
  inputProps: {
32
- isSending: boolean;
33
- drawPath: any;
34
32
  selectedFile: string | null;
35
33
  text: string;
36
34
  onChangeInput: (text: string) => void;
37
35
  onSubmit: () => Promise<void>;
38
- handleDeleteSelectedImage: (e: MouseEvent<HTMLButtonElement>) => void;
36
+ handleDeleteSelectedImage: () => void;
39
37
  handleUploadImage: (file: File) => Promise<void>;
40
- onSaveCanvas: (data: string, drawPath: any) => Promise<void>;
41
- onClearCanvas: () => void;
42
38
  isCompleted: boolean | undefined;
43
39
  };
44
40
  isScrollToEnd: boolean;
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
- declare const CustomSelectOption: ({ defaultValue, options, isDisabled, scrollBottom, value, isMulti, valueById, isTextbook, ...rest }: any) => React.JSX.Element;
2
+ declare const CustomSelectOption: ({ defaultValue, options, isDisabled, scrollBottom, value, isMulti, valueById, isTextbook, styles, ...rest }: any) => React.JSX.Element;
3
3
  export default CustomSelectOption;
package/dist/index.css CHANGED
@@ -603,7 +603,10 @@
603
603
  min-width: 136px; }
604
604
  ._1jZV7 .__LRYW ._18ZNf {
605
605
  font-weight: 500;
606
- font-size: 12px; }
606
+ font-size: 12px;
607
+ display: flex;
608
+ align-items: baseline;
609
+ gap: 2px; }
607
610
  ._1jZV7 .__LRYW ._3nbRi {
608
611
  color: #6B0861; }
609
612
  ._1jZV7 .__LRYW ._3NEHk {
@@ -647,7 +650,10 @@
647
650
  ._1jZV7 .__LRYW ._3l-yC {
648
651
  font-weight: 500;
649
652
  font-size: 12px;
650
- color: #ced2da; }
653
+ color: #ced2da;
654
+ display: flex;
655
+ align-items: baseline;
656
+ gap: 2px; }
651
657
  ._1jZV7 .__LRYW ._2mK7U {
652
658
  font-family: "Pretendard";
653
659
  font-weight: 600;
@@ -1479,7 +1485,10 @@
1479
1485
  min-width: 136px; }
1480
1486
  ._eDBpS ._2K_sx ._3GfJt {
1481
1487
  font-weight: 500;
1482
- font-size: 12px; }
1488
+ font-size: 12px;
1489
+ display: flex;
1490
+ align-items: baseline;
1491
+ gap: 2px; }
1483
1492
  ._eDBpS ._2K_sx ._3ut64 {
1484
1493
  color: #6B0861; }
1485
1494
  ._eDBpS ._2K_sx ._2VtpD {
@@ -1523,7 +1532,10 @@
1523
1532
  ._eDBpS ._2K_sx ._3iItu {
1524
1533
  font-weight: 500;
1525
1534
  font-size: 12px;
1526
- color: #ced2da; }
1535
+ color: #ced2da;
1536
+ display: flex;
1537
+ align-items: baseline;
1538
+ gap: 2px; }
1527
1539
  ._eDBpS ._2K_sx ._1fNkS {
1528
1540
  font-family: "Pretendard";
1529
1541
  font-weight: 600;