touchstudy-core 0.1.9 → 0.1.11

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 (30) hide show
  1. package/dist/components/Chats/ChatContainer.d.ts +6 -0
  2. package/dist/components/Chats/ChatHeader.d.ts +1 -0
  3. package/dist/components/Chats/ChatItem.d.ts +2 -1
  4. package/dist/components/Chats/ChatList.d.ts +1 -1
  5. package/dist/components/Chats/configs/types.d.ts +2 -0
  6. package/dist/components/Chats/hooks/useChatContainer.d.ts +6 -1
  7. package/dist/components/Chats/hooks/useMessageList.d.ts +2 -1
  8. package/dist/components/Dialogs/ConfirmDialog.d.ts +1 -0
  9. package/dist/components/Selects/CustomAsyncSelect.d.ts +3 -0
  10. package/dist/components/Selects/CustomCreatable.d.ts +3 -0
  11. package/dist/components/Selects/CustomSelect.d.ts +1 -1
  12. package/dist/containers/Exams/components/ArticleGroupView.d.ts +19 -0
  13. package/dist/containers/Exams/components/QuestionView.d.ts +11 -0
  14. package/dist/containers/Exams/configs/constants.d.ts +8 -0
  15. package/dist/containers/Exams/configs/interfaces.d.ts +9 -0
  16. package/dist/containers/Exams/configs/types.d.ts +21 -0
  17. package/dist/containers/Exams/hooks/useExamDetailView.d.ts +23 -0
  18. package/dist/containers/Exams/views/ExamDetailView.d.ts +4 -0
  19. package/dist/containers/Login/configs/constants.d.ts +5 -0
  20. package/dist/containers/Login/views/Login.d.ts +2 -1
  21. package/dist/containers/Login/views/block/BlockLogin.d.ts +2 -1
  22. package/dist/index.css +40 -1
  23. package/dist/index.d.ts +11 -1
  24. package/dist/index.js +993 -112
  25. package/dist/index.js.map +1 -1
  26. package/dist/index.modern.js +978 -113
  27. package/dist/index.modern.js.map +1 -1
  28. package/dist/utils/useLanguage.d.ts +10 -0
  29. package/package.json +3 -1
  30. package/dist/services/api.d.ts +0 -3
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { Language } from "../configs/constants";
3
+ declare const useLanguage: () => {
4
+ language: string;
5
+ dropdownOpen: boolean;
6
+ currentLanguage: Language | null;
7
+ toggle: () => void;
8
+ setItemLanguage: import("react").Dispatch<import("react").SetStateAction<string>>;
9
+ };
10
+ export default useLanguage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "touchstudy-core",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "Contains core components && functions for TouchStudy project",
5
5
  "author": "brss",
6
6
  "license": "MIT",
@@ -19,6 +19,7 @@
19
19
  "gapi-script": "^1.2.0",
20
20
  "i18next": "^23.7.16",
21
21
  "link": "^2.1.0",
22
+ "lodash": "^4.17.21",
22
23
  "moment": "^2.29.4",
23
24
  "node-sass": "^7.0.3",
24
25
  "pusher-js": "^8.4.0-rc2",
@@ -55,6 +56,7 @@
55
56
  "@testing-library/react": "^13.4.0",
56
57
  "@testing-library/user-event": "^13.5.0",
57
58
  "@types/jest": "^27.5.2",
59
+ "@types/lodash": "^4.14.202",
58
60
  "@types/node": "^16.18.68",
59
61
  "@types/react": "^18.2.45",
60
62
  "@types/react-dom": "^18.2.18",
@@ -1,3 +0,0 @@
1
- import { AxiosInstance } from "axios";
2
- export declare const api: AxiosInstance;
3
- export declare const apiUpload: AxiosInstance;