mario-core 1.0.2 → 1.0.3-es-alpha

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 (114) hide show
  1. package/dist/index.js +33 -2706
  2. package/dist/index.modern.js +25834 -2520
  3. package/dist/mario-core.css +5 -0
  4. package/package.json +66 -67
  5. package/README.md +0 -30
  6. package/dist/assets/Images.d.ts +0 -5
  7. package/dist/commons/action.d.ts +0 -2
  8. package/dist/commons/reducer.d.ts +0 -2
  9. package/dist/components/Alerts/EmptyDataAlert.d.ts +0 -8
  10. package/dist/components/Alerts/ErrorHandler.d.ts +0 -6
  11. package/dist/components/Buttons/AddButton.d.ts +0 -7
  12. package/dist/components/Buttons/AddButtonIcon.d.ts +0 -6
  13. package/dist/components/Buttons/DeleteButtonIcon.d.ts +0 -6
  14. package/dist/components/Buttons/DetailActionButtons.d.ts +0 -8
  15. package/dist/components/Buttons/EditButtonIcon.d.ts +0 -6
  16. package/dist/components/Buttons/LinkEditButton.d.ts +0 -7
  17. package/dist/components/Headers/CommonHeader.d.ts +0 -7
  18. package/dist/components/Inputs/SearchBox.d.ts +0 -10
  19. package/dist/components/Labels/RequiredLabel.d.ts +0 -6
  20. package/dist/components/Loading/Loading.d.ts +0 -3
  21. package/dist/components/Modals/CommonModal.d.ts +0 -3
  22. package/dist/components/Modals/NotificationModal.d.ts +0 -3
  23. package/dist/components/Pagination/CustomPagination.d.ts +0 -3
  24. package/dist/components/Selectors/CreatableSelector.d.ts +0 -3
  25. package/dist/components/Selectors/CustomSelector.d.ts +0 -3
  26. package/dist/components/Selectors/MailCategorySelectors.d.ts +0 -3
  27. package/dist/components/Selectors/QuestionTypeSelector.d.ts +0 -3
  28. package/dist/components/Selectors/StarRatingSelector.d.ts +0 -3
  29. package/dist/configs/editorConfig.d.ts +0 -7
  30. package/dist/containers/Classes/components/ClassDetailModal.d.ts +0 -3
  31. package/dist/containers/Classes/views/ClassList.d.ts +0 -3
  32. package/dist/containers/Commons/NotFound.d.ts +0 -3
  33. package/dist/containers/EmailTemplate/components/MailParam.d.ts +0 -6
  34. package/dist/containers/EmailTemplate/configs/emailTemplateSchema.d.ts +0 -11
  35. package/dist/containers/EmailTemplate/hooks/useEmailTemplateDetail.d.ts +0 -15
  36. package/dist/containers/EmailTemplate/hooks/useEmailTemplateList.d.ts +0 -10
  37. package/dist/containers/EmailTemplate/views/EmailTemplateDetail.d.ts +0 -3
  38. package/dist/containers/EmailTemplate/views/EmailTemplateList.d.ts +0 -3
  39. package/dist/containers/EmailTemplateDetail.d.ts +0 -3
  40. package/dist/containers/EmailTemplateList.d.ts +0 -3
  41. package/dist/containers/Faq/components/FaqDetailModal.d.ts +0 -3
  42. package/dist/containers/Faq/hooks/useFaqDetail.d.ts +0 -13
  43. package/dist/containers/Faq/hooks/useFaqList.d.ts +0 -9
  44. package/dist/containers/Faq/views/FaqList.d.ts +0 -3
  45. package/dist/containers/Login/hooks/useLogin.d.ts +0 -9
  46. package/dist/containers/Login/views/Login.d.ts +0 -3
  47. package/dist/containers/Login.d.ts +0 -3
  48. package/dist/containers/Skill/components/SkillDetailModal.d.ts +0 -3
  49. package/dist/containers/Skill/hooks/useSkillDetail.d.ts +0 -13
  50. package/dist/containers/Skill/hooks/useSkillList.d.ts +0 -9
  51. package/dist/containers/Skill/views/SkillList.d.ts +0 -3
  52. package/dist/containers/User/hooks/useUserList.d.ts +0 -9
  53. package/dist/containers/User/views/UserList.d.ts +0 -3
  54. package/dist/containers/User.d.ts +0 -3
  55. package/dist/index.css +0 -7
  56. package/dist/index.d.ts +0 -43
  57. package/dist/index.js.map +0 -1
  58. package/dist/index.modern.js.map +0 -1
  59. package/dist/index.test.d.ts +0 -1
  60. package/dist/layouts/TheContent.d.ts +0 -3
  61. package/dist/layouts/TheFooter.d.ts +0 -3
  62. package/dist/layouts/TheHeader.d.ts +0 -3
  63. package/dist/layouts/TheHeaderDropdown.d.ts +0 -3
  64. package/dist/layouts/TheLayout.d.ts +0 -3
  65. package/dist/layouts/TheSidebar.d.ts +0 -3
  66. package/dist/redux/badges/action.d.ts +0 -1
  67. package/dist/redux/badges/reducer.d.ts +0 -2
  68. package/dist/redux/classes/action.d.ts +0 -1
  69. package/dist/redux/classes/reducer.d.ts +0 -2
  70. package/dist/redux/commons/action.d.ts +0 -3
  71. package/dist/redux/commons/reducer.d.ts +0 -2
  72. package/dist/redux/emailTemplates/action.d.ts +0 -1
  73. package/dist/redux/emailTemplates/reducer.d.ts +0 -2
  74. package/dist/redux/faqs/action.d.ts +0 -1
  75. package/dist/redux/faqs/reducer.d.ts +0 -2
  76. package/dist/redux/goalExamples/action.d.ts +0 -1
  77. package/dist/redux/goalExamples/reducer.d.ts +0 -2
  78. package/dist/redux/learningStrategies/action.d.ts +0 -1
  79. package/dist/redux/learningStrategies/reducer.d.ts +0 -2
  80. package/dist/redux/questionBanks/action.d.ts +0 -1
  81. package/dist/redux/questionBanks/reducer.d.ts +0 -2
  82. package/dist/redux/skills/action.d.ts +0 -1
  83. package/dist/redux/skills/reducer.d.ts +0 -2
  84. package/dist/redux/subjects/action.d.ts +0 -1
  85. package/dist/redux/subjects/reducer.d.ts +0 -2
  86. package/dist/redux/suggestionBanks/action.d.ts +0 -1
  87. package/dist/redux/suggestionBanks/reducer.d.ts +0 -2
  88. package/dist/redux/users/action.d.ts +0 -1
  89. package/dist/redux/users/reducer.d.ts +0 -2
  90. package/dist/rootReducer.d.ts +0 -15
  91. package/dist/services/accountService.d.ts +0 -3
  92. package/dist/services/api.d.ts +0 -2
  93. package/dist/services/emailTemplateService.d.ts +0 -6
  94. package/dist/services/faqService.d.ts +0 -6
  95. package/dist/services/skillService.d.ts +0 -6
  96. package/dist/services/userService.d.ts +0 -6
  97. package/dist/store.d.ts +0 -3
  98. package/dist/types/ClassDetail.d.ts +0 -3
  99. package/dist/types/Conversation.d.ts +0 -8
  100. package/dist/types/Filter.d.ts +0 -8
  101. package/dist/utils/canAccessRoute.d.ts +0 -2
  102. package/dist/utils/constants.d.ts +0 -41
  103. package/dist/utils/encodeParams.d.ts +0 -2
  104. package/dist/utils/firstCheckToken.d.ts +0 -2
  105. package/dist/utils/generateRandomString.d.ts +0 -2
  106. package/dist/utils/getAccessToken.d.ts +0 -2
  107. package/dist/utils/index.d.ts +0 -1
  108. package/dist/utils/utcToLocalTime.d.ts +0 -2
  109. package/dist/views/TheContent.d.ts +0 -3
  110. package/dist/views/TheFooter.d.ts +0 -3
  111. package/dist/views/TheHeader.d.ts +0 -3
  112. package/dist/views/TheHeaderDropdown.d.ts +0 -3
  113. package/dist/views/TheLayout.d.ts +0 -3
  114. package/dist/views/TheSidebar.d.ts +0 -3
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const _default: React.MemoExoticComponent<({ routes }: any) => JSX.Element>;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const _default: React.MemoExoticComponent<() => JSX.Element>;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const TheHeader: () => JSX.Element;
3
- export default TheHeader;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const TheHeaderDropdown: () => JSX.Element;
3
- export default TheHeaderDropdown;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const TheLayout: ({ routes, navigation }: any) => JSX.Element;
3
- export default TheLayout;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const TheSidebar: ({ navigation }: any) => JSX.Element;
3
- export default TheSidebar;
@@ -1 +0,0 @@
1
- export declare const setBadgeList: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean | undefined, string>;
@@ -1,2 +0,0 @@
1
- declare const commonReducer: import("redux").Reducer<any, import("redux").AnyAction>;
2
- export default commonReducer;
@@ -1 +0,0 @@
1
- export declare const setClassList: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean | undefined, string>;
@@ -1,2 +0,0 @@
1
- declare const classReducer: import("redux").Reducer<any, import("redux").AnyAction>;
2
- export default classReducer;
@@ -1,3 +0,0 @@
1
- export declare const setLoading: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean | undefined, string>;
2
- export declare const setModal: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
3
- export declare const setUser: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
@@ -1,2 +0,0 @@
1
- declare const commonReducer: import("redux").Reducer<any, import("redux").AnyAction>;
2
- export default commonReducer;
@@ -1 +0,0 @@
1
- export declare const setEmailTemplateList: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean | undefined, string>;
@@ -1,2 +0,0 @@
1
- declare const emailTemplateReducer: import("redux").Reducer<any, import("redux").AnyAction>;
2
- export default emailTemplateReducer;
@@ -1 +0,0 @@
1
- export declare const setFaqList: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean | undefined, string>;
@@ -1,2 +0,0 @@
1
- declare const commonReducer: import("redux").Reducer<any, import("redux").AnyAction>;
2
- export default commonReducer;
@@ -1 +0,0 @@
1
- export declare const setGoalExampleList: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
@@ -1,2 +0,0 @@
1
- declare const commonReducer: import("redux").Reducer<any, import("redux").AnyAction>;
2
- export default commonReducer;
@@ -1 +0,0 @@
1
- export declare const setStrategyList: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean | undefined, string>;
@@ -1,2 +0,0 @@
1
- declare const learningStrategyReducer: import("redux").Reducer<any, import("redux").AnyAction>;
2
- export default learningStrategyReducer;
@@ -1 +0,0 @@
1
- export declare const setQuestionList: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean | undefined, string>;
@@ -1,2 +0,0 @@
1
- declare const questionBankReducer: import("redux").Reducer<any, import("redux").AnyAction>;
2
- export default questionBankReducer;
@@ -1 +0,0 @@
1
- export declare const setSkillList: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean | undefined, string>;
@@ -1,2 +0,0 @@
1
- declare const commonReducer: import("redux").Reducer<any, import("redux").AnyAction>;
2
- export default commonReducer;
@@ -1 +0,0 @@
1
- export declare const setSubjectList: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean | undefined, string>;
@@ -1,2 +0,0 @@
1
- declare const commonReducer: import("redux").Reducer<any, import("redux").AnyAction>;
2
- export default commonReducer;
@@ -1 +0,0 @@
1
- export declare const setSuggestionList: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean | undefined, string>;
@@ -1,2 +0,0 @@
1
- declare const suggestionBankReducer: import("redux").Reducer<any, import("redux").AnyAction>;
2
- export default suggestionBankReducer;
@@ -1 +0,0 @@
1
- export declare const setUserList: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
@@ -1,2 +0,0 @@
1
- declare const commonReducer: import("redux").Reducer<any, import("redux").AnyAction>;
2
- export default commonReducer;
@@ -1,15 +0,0 @@
1
- declare const rootReducer: import("redux").Reducer<import("redux").CombinedState<{
2
- common: any;
3
- classes: any;
4
- faqs: any;
5
- skills: any;
6
- emailTemplate: any;
7
- suggestionBank: any;
8
- learningStrategy: any;
9
- subjects: any;
10
- questionBank: any;
11
- badges: any;
12
- goalExamples: any;
13
- users: any;
14
- }>, import("redux").AnyAction>;
15
- export default rootReducer;
@@ -1,3 +0,0 @@
1
- export declare const logIn: (data: any) => any;
2
- export declare const checkToken: (token: string) => any;
3
- export declare const getInfo: () => any;
@@ -1,2 +0,0 @@
1
- export declare const api: any;
2
- export declare const apiUpload: any;
@@ -1,6 +0,0 @@
1
- import { Filter } from "../types/Filter";
2
- export declare const get: (filter: Filter) => any;
3
- export declare const getById: (id: number) => any;
4
- export declare const create: (data: any) => any;
5
- export declare const update: (data: any) => any;
6
- export declare const remove: (id: number) => any;
@@ -1,6 +0,0 @@
1
- import { Filter } from "../types/Filter";
2
- export declare const get: (filter: Filter) => any;
3
- export declare const getById: (id: number) => any;
4
- export declare const create: (data: any) => any;
5
- export declare const update: (data: any) => any;
6
- export declare const remove: (id: number) => any;
@@ -1,6 +0,0 @@
1
- import { Filter } from "../types/Filter";
2
- export declare const get: (filter: Filter) => any;
3
- export declare const getById: (id: number) => any;
4
- export declare const create: (data: any) => any;
5
- export declare const update: (data: any) => any;
6
- export declare const remove: (id: number) => any;
@@ -1,6 +0,0 @@
1
- import { Filter } from "../types/Filter";
2
- export declare const get: (filter: Filter) => any;
3
- export declare const getById: (id: string) => any;
4
- export declare const create: (data: any) => any;
5
- export declare const update: (data: any) => any;
6
- export declare const remove: (id: string) => any;
package/dist/store.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { Store } from "redux";
2
- declare const store: Store;
3
- export default store;
@@ -1,3 +0,0 @@
1
- export declare type ClassDetail = {
2
- name: string;
3
- };
@@ -1,8 +0,0 @@
1
- export declare type Conversation = {
2
- id: number;
3
- name: string;
4
- lastMessage: string;
5
- unreadMessageCount: number;
6
- isGroup: boolean;
7
- avatarPath?: string | null;
8
- };
@@ -1,8 +0,0 @@
1
- export declare type Filter = {
2
- currentPage: number;
3
- pageSize: number;
4
- searchString: string;
5
- sortBy: string;
6
- sortOrder: string;
7
- name: string;
8
- };
@@ -1,2 +0,0 @@
1
- declare const canAccess: (userRoles: any[], componentRoles: any[]) => boolean;
2
- export default canAccess;
@@ -1,41 +0,0 @@
1
- import { Filter } from "../types/Filter";
2
- export declare const TINY_MCE_API_KEY = "h6l5ro4mqd0eo2mmhxnt3sxqnlx89uz7124h2rwcus8yukv5";
3
- export declare const ACCESS_TOKEN = "ACCESS_TOKEN";
4
- export declare const DEFAULT_PAGE_SIZE_VALUES: {
5
- label: string;
6
- value: number;
7
- }[];
8
- export declare const DEFAULT_PAGE_SIZE: {
9
- label: string;
10
- value: number;
11
- };
12
- export declare const DEFAULT_FILTER: Filter;
13
- export declare const COLORS: {
14
- DANGER: string;
15
- WARNING: string;
16
- SUCCESS: string;
17
- INFO: string;
18
- };
19
- export declare const DATE_FORMAT = "yyyy-MM-dd";
20
- export declare const DATE_MIN_VALUE = "0001-01-01T00:00:00";
21
- export declare const LICENSE_AGGRID = "Alhanko&Johnson_BASE23_single_1_Devs__22_November_2020_[v2]_MTYwNjAwMzIwMDAwMA==d452f38afc893671cad92795e95d52a1";
22
- export declare const BASE_URL: string;
23
- export declare const QUESTION_TYPES_OPTIONS: {
24
- label: string;
25
- value: string;
26
- }[];
27
- export declare const QUESTION_TYPES: {
28
- SINGLE_CHOICE: string;
29
- MULTIPLE_CHOICE: string;
30
- TEXT_INPUT: string;
31
- SLIDER: string;
32
- PROGRESS_BAR: string;
33
- STAR_RATING: string;
34
- TEXT_INPUT_WITH_SUGGESTIONS: string;
35
- };
36
- export declare const STAR_OPTIONS: {
37
- label: number;
38
- value: number;
39
- }[];
40
- export declare const ANSWER_EDITOR_HEIGHT = 150;
41
- export declare const USER_ROLE: string[];
@@ -1,2 +0,0 @@
1
- declare const _default: (params: any) => string;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const firstCheckToken: () => Promise<boolean>;
2
- export default firstCheckToken;
@@ -1,2 +0,0 @@
1
- declare const _default: () => string;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: () => string | null;
2
- export default _default;
@@ -1 +0,0 @@
1
- export declare const toogleSidebar: () => void;
@@ -1,2 +0,0 @@
1
- declare const _default: (time: string) => string;
2
- export default _default;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const _default: React.MemoExoticComponent<({ routes }: any) => JSX.Element>;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const _default: React.MemoExoticComponent<() => JSX.Element>;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const TheHeader: () => JSX.Element;
3
- export default TheHeader;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const TheHeaderDropdown: () => JSX.Element;
3
- export default TheHeaderDropdown;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const TheLayout: ({ routes, navigation }: any) => JSX.Element;
3
- export default TheLayout;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const TheSidebar: ({ navigation }: any) => JSX.Element;
3
- export default TheSidebar;