touchstudy-core 0.1.175 → 0.1.176

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.
@@ -1,6 +1,6 @@
1
1
  import { FormikProps } from "formik";
2
2
  import React, { FC } from "react";
3
- import { TextbookRequest } from "../configs/types";
3
+ import { TextbookDetailResponse, TextbookRequest } from "../configs/types";
4
4
  interface Props extends FormikProps<TextbookRequest> {
5
5
  isCreatedByAdmin?: boolean;
6
6
  isSuperAdminUser: boolean;
@@ -11,6 +11,8 @@ interface Props extends FormikProps<TextbookRequest> {
11
11
  coverImage?: string;
12
12
  disabled?: boolean;
13
13
  ownersDisabled?: boolean;
14
+ handleSaveData: (values: TextbookRequest) => Promise<void>;
15
+ selectedTextbook?: TextbookDetailResponse;
14
16
  onUploadImage: (event: React.ChangeEvent<HTMLInputElement>) => Promise<void>;
15
17
  onChangeTab: (_: React.SyntheticEvent, newValue: number) => void;
16
18
  }
@@ -93,3 +93,5 @@ export declare const CompareTypeOptions: {
93
93
  label: string;
94
94
  value: QuestionAnswerType;
95
95
  }[];
96
+ export declare const SAVE_TIME_INTERVAL_IN_MILLISECONDS: number;
97
+ export declare const SAVE_TIME_MAX_DIFF_IN_MILLISECONDS = 1000;
@@ -19,3 +19,8 @@ export declare enum TextbookEditorType {
19
19
  Korea = 1,
20
20
  Math = 2
21
21
  }
22
+ export declare enum PrintStatus {
23
+ Idle = 0,
24
+ Saving = 1,
25
+ Saved = 2
26
+ }
@@ -11,7 +11,7 @@ declare const useTextbookManagement: ({ textbookId, role, onNavigateList }: Prop
11
11
  isAdminSite: boolean;
12
12
  disabledTextbookOwners: boolean;
13
13
  isReadonly: boolean;
14
- isEditable: boolean;
14
+ isEditable: any;
15
15
  isAdmin: any;
16
16
  theme: import("@mui/material").Theme;
17
17
  history: History;
@@ -20,6 +20,7 @@ declare const useTextbookManagement: ({ textbookId, role, onNavigateList }: Prop
20
20
  isSuperAdminUser: any;
21
21
  openDialog: boolean;
22
22
  handleSubmit: (values: TextbookRequest, _formikHelpers: FormikHelpers<TextbookRequest>) => Promise<void>;
23
+ handleSaveData: (values: TextbookRequest) => Promise<void>;
23
24
  selectedTextbook: TextbookDetailResponse | undefined;
24
25
  handleOpenDialog: (item?: any) => void;
25
26
  handleCloseDialog: () => void;
package/dist/index.css CHANGED
@@ -501,6 +501,19 @@
501
501
  text-overflow: ellipsis;
502
502
  word-wrap: break-word; }
503
503
 
504
+ ._3bvVg ._z624V {
505
+ transition: background-color 0.3s ease; }
506
+ ._3bvVg ._z624V:hover {
507
+ background-color: #3DC674; }
508
+ ._3bvVg ._z624V:hover ._2KJX4 {
509
+ color: #F0FFF6; }
510
+ ._3bvVg ._z624V:hover ._1mwlk {
511
+ color: #F0FFF6; }
512
+ ._3bvVg ._z624V:hover ._maff_ {
513
+ color: #F0FFF6; }
514
+ ._3bvVg ._z624V ._maff_ {
515
+ color: #3DC674; }
516
+
504
517
  ._2mYOt ._1H9qR:nth-child(1) {
505
518
  font-family: "Pretendard";
506
519
  font-size: 20px;