mario-core 2.9.138-level → 2.9.139-up

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 (82) hide show
  1. package/dist/components/Alerts/ReactNotification.d.ts +2 -2
  2. package/dist/components/Image/UploadImage.d.ts +2 -2
  3. package/dist/components/Modals/NotificationLogoutModal.d.ts +2 -2
  4. package/dist/components/Modals/NotificationModal.d.ts +2 -2
  5. package/dist/components/Others/QuitPrompt.d.ts +2 -2
  6. package/dist/components/Pagination/CustomPagination.d.ts +2 -2
  7. package/dist/components/Selectors/AcademicClassSelector.d.ts +2 -2
  8. package/dist/components/Selectors/CategorySelector.d.ts +2 -2
  9. package/dist/components/Selectors/CreatableSelector.d.ts +2 -2
  10. package/dist/components/Selectors/CustomSelector.d.ts +2 -2
  11. package/dist/components/Selectors/MailCategorySelectors.d.ts +2 -2
  12. package/dist/components/Selectors/QuestionCategorySelector.d.ts +2 -2
  13. package/dist/components/Selectors/QuestionTypeSelector.d.ts +2 -2
  14. package/dist/components/Selectors/StarRatingSelector.d.ts +2 -2
  15. package/dist/components/Selectors/SuggestionCategorySelector.d.ts +2 -2
  16. package/dist/components/Tabs/CustomTab.d.ts +2 -2
  17. package/dist/containers/Login/views/Dashboard.d.ts +2 -2
  18. package/dist/containers/Login/views/Login.d.ts +2 -2
  19. package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +2 -2
  20. package/dist/containers/Login/views/block/BlockResetPassword.d.ts +2 -2
  21. package/dist/containers/Login/views/block/BlockTwoFactorLogin.d.ts +2 -2
  22. package/dist/containers/Login/views/block/QuoteContent.d.ts +2 -2
  23. package/dist/containers/Notifications/views/NotificationList.d.ts +2 -2
  24. package/dist/containers/Skill/components/SkillSelector.d.ts +2 -2
  25. package/dist/containers/User/views/UserDetail.d.ts +2 -2
  26. package/dist/containers/User/views/UserList.d.ts +2 -2
  27. package/dist/index.css +3 -3
  28. package/dist/index.js +107 -51
  29. package/dist/index.js.map +1 -1
  30. package/dist/index.modern.js +107 -51
  31. package/dist/index.modern.js.map +1 -1
  32. package/dist/layouts/TheContent.d.ts +1 -1
  33. package/dist/layouts/TheFooter.d.ts +1 -1
  34. package/dist/layouts/TheHeader.d.ts +2 -2
  35. package/dist/layouts/TheHeaderDropdown.d.ts +2 -2
  36. package/dist/layouts/TheLanguageDropdown.d.ts +2 -2
  37. package/dist/layouts/TheLayout.d.ts +2 -2
  38. package/dist/layouts/TheSidebar.d.ts +2 -2
  39. package/dist/redux/assessments/reducer.d.ts +2 -2
  40. package/dist/redux/assignment/reducer.d.ts +1 -1
  41. package/dist/redux/assistants/reducer.d.ts +1 -1
  42. package/dist/redux/badges/reducer.d.ts +1 -1
  43. package/dist/redux/bandScores/reducer.d.ts +1 -1
  44. package/dist/redux/certificate/reducer.d.ts +1 -1
  45. package/dist/redux/classes/reducer.d.ts +1 -1
  46. package/dist/redux/commons/reducer.d.ts +1 -1
  47. package/dist/redux/conferenceRubrics/reducer.d.ts +1 -1
  48. package/dist/redux/customAlert/reducer.d.ts +1 -1
  49. package/dist/redux/dashboard/reducer.d.ts +1 -1
  50. package/dist/redux/dataPlayer/reducer.d.ts +1 -1
  51. package/dist/redux/emailTemplates/reducer.d.ts +1 -1
  52. package/dist/redux/faqs/reducer.d.ts +1 -1
  53. package/dist/redux/feedback/reducer.d.ts +1 -1
  54. package/dist/redux/gallery/reducer.d.ts +1 -1
  55. package/dist/redux/goalExamples/reducer.d.ts +1 -1
  56. package/dist/redux/improveMyClass/reducer.d.ts +1 -1
  57. package/dist/redux/learningStrategies/reducer.d.ts +1 -1
  58. package/dist/redux/learningSupportCategories/reducer.d.ts +1 -1
  59. package/dist/redux/mailCategories/reducer.d.ts +1 -1
  60. package/dist/redux/navMobile/reducer.d.ts +1 -1
  61. package/dist/redux/notifications/reducer.d.ts +1 -1
  62. package/dist/redux/questionBanks/reducer.d.ts +1 -1
  63. package/dist/redux/questionByCategory/reducer.d.ts +1 -1
  64. package/dist/redux/questionCategory/reducer.d.ts +1 -1
  65. package/dist/redux/reflectionForms/reducer.d.ts +1 -1
  66. package/dist/redux/reflectionResults/reducer.d.ts +1 -1
  67. package/dist/redux/schoolBlankDays/reducer.d.ts +1 -1
  68. package/dist/redux/semester/reducer.d.ts +1 -1
  69. package/dist/redux/sessionPlayers/reducer.d.ts +1 -1
  70. package/dist/redux/sessionTemplateGeneralClasses/reducer.d.ts +1 -1
  71. package/dist/redux/sessionTemplates/reducer.d.ts +1 -1
  72. package/dist/redux/skills/reducer.d.ts +1 -1
  73. package/dist/redux/subjects/reducer.d.ts +1 -1
  74. package/dist/redux/suggestionBanks/reducer.d.ts +1 -1
  75. package/dist/redux/teacher/myStudent/reducer.d.ts +1 -1
  76. package/dist/redux/tutorialScreen/reducer.d.ts +2 -2
  77. package/dist/redux/users/reducer.d.ts +1 -1
  78. package/dist/redux/widget/reducer.d.ts +1 -1
  79. package/package.json +2 -2
  80. package/dist/containers/Login/constant/type.d.ts +0 -5
  81. package/dist/containers/Login/views/ModelSelectRole.d.ts +0 -4
  82. package/dist/utils/amplitude.d.ts +0 -1
@@ -32,7 +32,6 @@ import Creatable from 'react-select/creatable';
32
32
  import ReactNotification$1 from 'react-notifications-component';
33
33
  import 'react-notifications-component/dist/theme.css';
34
34
  import { AiOutlineEye } from 'react-icons/ai';
35
- import 'symbol-observable';
36
35
 
37
36
  var dashboard = "Dashboard";
38
37
  var user = "User";
@@ -607,9 +606,10 @@ var share_survey = "Share Survey";
607
606
  var new_survey = "New Survey";
608
607
  var assign_counselor = "Assign Counselor";
609
608
  var select_counselor = "Select Counselor";
610
- var select_secondary_teacher = "Select Secondary Teacher";
611
- var assign_secondary_teacher = "Assign Secondary Teacher";
612
- var secondary_teacher_name = "Secondary Teacher Name";
609
+ var select_support_teacher = "Select Support Teacher";
610
+ var assign_support_teacher = "Assign Support Teacher";
611
+ var switch_support_teacher = "Switch Support Teacher";
612
+ var support_teacher_name = "Support Teacher Name";
613
613
  var user_for_question = "User For Question";
614
614
  var requested_reflection = "Requested Reflection";
615
615
  var request_class_reflection = "Request Class Reflection";
@@ -620,10 +620,10 @@ var remove_counselor = "Remove Counselor";
620
620
  var current_counselor_email = "Current Counselor Email";
621
621
  var current_counselor_name = "Current Counselor Name";
622
622
  var select_counselor_change = "Select Counselor Change";
623
- var current_secondary_teacher_name = "Current Secondary Teacher Name";
624
- var current_secondary_teacher_email = "Current Secondary Teacher Email";
625
- var remove_secondary_teacher = "Remove Secondary Teacher";
626
- var select_secondary_teacher_change = "Select Secondary Teacher Change";
623
+ var current_support_teacher_name = "Current Support Teacher Name";
624
+ var current_support_teacher_email = "Current Support Teacher Email";
625
+ var remove_support_teacher = "Remove Support Teacher";
626
+ var select_support_teacher_change = "Select Support Teacher Change";
627
627
  var filter_calendar = "Filter calendar";
628
628
  var average_student_safety = "Average Student Safety";
629
629
  var is_active = "Is Active";
@@ -1275,9 +1275,10 @@ var lang_us = {
1275
1275
  new_survey: new_survey,
1276
1276
  assign_counselor: assign_counselor,
1277
1277
  select_counselor: select_counselor,
1278
- select_secondary_teacher: select_secondary_teacher,
1279
- assign_secondary_teacher: assign_secondary_teacher,
1280
- secondary_teacher_name: secondary_teacher_name,
1278
+ select_support_teacher: select_support_teacher,
1279
+ assign_support_teacher: assign_support_teacher,
1280
+ switch_support_teacher: switch_support_teacher,
1281
+ support_teacher_name: support_teacher_name,
1281
1282
  user_for_question: user_for_question,
1282
1283
  requested_reflection: requested_reflection,
1283
1284
  request_class_reflection: request_class_reflection,
@@ -1288,10 +1289,10 @@ var lang_us = {
1288
1289
  current_counselor_email: current_counselor_email,
1289
1290
  current_counselor_name: current_counselor_name,
1290
1291
  select_counselor_change: select_counselor_change,
1291
- current_secondary_teacher_name: current_secondary_teacher_name,
1292
- current_secondary_teacher_email: current_secondary_teacher_email,
1293
- remove_secondary_teacher: remove_secondary_teacher,
1294
- select_secondary_teacher_change: select_secondary_teacher_change,
1292
+ current_support_teacher_name: current_support_teacher_name,
1293
+ current_support_teacher_email: current_support_teacher_email,
1294
+ remove_support_teacher: remove_support_teacher,
1295
+ select_support_teacher_change: select_support_teacher_change,
1295
1296
  filter_calendar: filter_calendar,
1296
1297
  average_student_safety: average_student_safety,
1297
1298
  is_active: is_active,
@@ -1943,9 +1944,10 @@ var share_survey$1 = "Share Survey";
1943
1944
  var new_survey$1 = "New Survey";
1944
1945
  var assign_counselor$1 = "Assign Counselor";
1945
1946
  var select_counselor$1 = "Select Counselor";
1946
- var select_secondary_teacher$1 = "Select Secondary Teacher";
1947
- var assign_secondary_teacher$1 = "Assign Secondary Teacher";
1948
- var secondary_teacher_name$1 = "Secondary Teacher Name";
1947
+ var select_support_teacher$1 = "Select Support Teacher";
1948
+ var assign_support_teacher$1 = "Assign Support Teacher";
1949
+ var switch_support_teacher$1 = "Switch Support Teacher";
1950
+ var support_teacher_name$1 = "Support Teacher Name";
1949
1951
  var user_for_question$1 = "User For Question";
1950
1952
  var requested_reflection$1 = "Requested Reflection";
1951
1953
  var request_class_reflection$1 = "Request Class Reflection";
@@ -1956,10 +1958,10 @@ var remove_counselor$1 = "Remove Counselor";
1956
1958
  var current_counselor_email$1 = "Current Counselor Email";
1957
1959
  var current_counselor_name$1 = "Current Counselor Name";
1958
1960
  var select_counselor_change$1 = "Select Counselor Change";
1959
- var current_secondary_teacher_name$1 = "Current Secondary Teacher Name";
1960
- var current_secondary_teacher_email$1 = "Current Secondary Teacher Email";
1961
- var remove_secondary_teacher$1 = "Remove Secondary Teacher";
1962
- var select_secondary_teacher_change$1 = "Select Secondary Teacher Change";
1961
+ var current_support_teacher_name$1 = "Current Support Teacher Name";
1962
+ var current_support_teacher_email$1 = "Current Support Teacher Email";
1963
+ var remove_support_teacher$1 = "Remove Support Teacher";
1964
+ var select_support_teacher_change$1 = "Select Support Teacher Change";
1963
1965
  var filter_calendar$1 = "Filter calendar";
1964
1966
  var average_student_safety$1 = "Average Student Safety";
1965
1967
  var is_active$1 = "Is Active";
@@ -2611,9 +2613,10 @@ var lang_uk = {
2611
2613
  new_survey: new_survey$1,
2612
2614
  assign_counselor: assign_counselor$1,
2613
2615
  select_counselor: select_counselor$1,
2614
- select_secondary_teacher: select_secondary_teacher$1,
2615
- assign_secondary_teacher: assign_secondary_teacher$1,
2616
- secondary_teacher_name: secondary_teacher_name$1,
2616
+ select_support_teacher: select_support_teacher$1,
2617
+ assign_support_teacher: assign_support_teacher$1,
2618
+ switch_support_teacher: switch_support_teacher$1,
2619
+ support_teacher_name: support_teacher_name$1,
2617
2620
  user_for_question: user_for_question$1,
2618
2621
  requested_reflection: requested_reflection$1,
2619
2622
  request_class_reflection: request_class_reflection$1,
@@ -2624,10 +2627,10 @@ var lang_uk = {
2624
2627
  current_counselor_email: current_counselor_email$1,
2625
2628
  current_counselor_name: current_counselor_name$1,
2626
2629
  select_counselor_change: select_counselor_change$1,
2627
- current_secondary_teacher_name: current_secondary_teacher_name$1,
2628
- current_secondary_teacher_email: current_secondary_teacher_email$1,
2629
- remove_secondary_teacher: remove_secondary_teacher$1,
2630
- select_secondary_teacher_change: select_secondary_teacher_change$1,
2630
+ current_support_teacher_name: current_support_teacher_name$1,
2631
+ current_support_teacher_email: current_support_teacher_email$1,
2632
+ remove_support_teacher: remove_support_teacher$1,
2633
+ select_support_teacher_change: select_support_teacher_change$1,
2631
2634
  filter_calendar: filter_calendar$1,
2632
2635
  average_student_safety: average_student_safety$1,
2633
2636
  is_active: is_active$1,
@@ -9189,6 +9192,17 @@ var reduxLogger = createCommonjsModule(function (module, exports) {
9189
9192
 
9190
9193
  var logger = unwrapExports(reduxLogger);
9191
9194
 
9195
+ /**
9196
+ * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
9197
+ *
9198
+ * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
9199
+ * during build.
9200
+ * @param {number} code
9201
+ */
9202
+ function formatProdErrorMessage(code) {
9203
+ return "Minified Redux error #" + code + "; visit https://redux.js.org/Errors?code=" + code + " for the full message or " + 'use the non-minified dev environment for full errors. ';
9204
+ }
9205
+
9192
9206
  /**
9193
9207
  * These are private action types reserved by Redux.
9194
9208
  * For any unknown actions, you must return the current state.
@@ -9222,6 +9236,65 @@ function isPlainObject(obj) {
9222
9236
  return Object.getPrototypeOf(obj) === proto;
9223
9237
  }
9224
9238
 
9239
+ // Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
9240
+ function miniKindOf(val) {
9241
+ if (val === void 0) return 'undefined';
9242
+ if (val === null) return 'null';
9243
+ var type = typeof val;
9244
+
9245
+ switch (type) {
9246
+ case 'boolean':
9247
+ case 'string':
9248
+ case 'number':
9249
+ case 'symbol':
9250
+ case 'function':
9251
+ {
9252
+ return type;
9253
+ }
9254
+ }
9255
+
9256
+ if (Array.isArray(val)) return 'array';
9257
+ if (isDate(val)) return 'date';
9258
+ if (isError(val)) return 'error';
9259
+ var constructorName = ctorName(val);
9260
+
9261
+ switch (constructorName) {
9262
+ case 'Symbol':
9263
+ case 'Promise':
9264
+ case 'WeakMap':
9265
+ case 'WeakSet':
9266
+ case 'Map':
9267
+ case 'Set':
9268
+ return constructorName;
9269
+ } // other
9270
+
9271
+
9272
+ return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
9273
+ }
9274
+
9275
+ function ctorName(val) {
9276
+ return typeof val.constructor === 'function' ? val.constructor.name : null;
9277
+ }
9278
+
9279
+ function isError(val) {
9280
+ return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';
9281
+ }
9282
+
9283
+ function isDate(val) {
9284
+ if (val instanceof Date) return true;
9285
+ return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';
9286
+ }
9287
+
9288
+ function kindOf(val) {
9289
+ var typeOfVal = typeof val;
9290
+
9291
+ if (process.env.NODE_ENV !== 'production') {
9292
+ typeOfVal = miniKindOf(val);
9293
+ }
9294
+
9295
+ return typeOfVal;
9296
+ }
9297
+
9225
9298
  /**
9226
9299
  * Prints a warning in the console if it exists.
9227
9300
  *
@@ -9245,12 +9318,6 @@ function warning(message) {
9245
9318
 
9246
9319
  }
9247
9320
 
9248
- function getUndefinedStateErrorMessage(key, action) {
9249
- var actionType = action && action.type;
9250
- var actionDescription = actionType && "action \"" + String(actionType) + "\"" || 'an action';
9251
- return "Given " + actionDescription + ", reducer \"" + key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined.";
9252
- }
9253
-
9254
9321
  function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
9255
9322
  var reducerKeys = Object.keys(reducers);
9256
9323
  var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
@@ -9260,7 +9327,7 @@ function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, une
9260
9327
  }
9261
9328
 
9262
9329
  if (!isPlainObject(inputState)) {
9263
- return "The " + argumentName + " has unexpected type of \"" + {}.toString.call(inputState).match(/\s([a-z|A-Z]+)/)[1] + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
9330
+ return "The " + argumentName + " has unexpected type of \"" + kindOf(inputState) + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
9264
9331
  }
9265
9332
 
9266
9333
  var unexpectedKeys = Object.keys(inputState).filter(function (key) {
@@ -9284,13 +9351,13 @@ function assertReducerShape(reducers) {
9284
9351
  });
9285
9352
 
9286
9353
  if (typeof initialState === 'undefined') {
9287
- throw new Error("Reducer \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined.");
9354
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(12) : "The slice reducer for key \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined.");
9288
9355
  }
9289
9356
 
9290
9357
  if (typeof reducer(undefined, {
9291
9358
  type: ActionTypes.PROBE_UNKNOWN_ACTION()
9292
9359
  }) === 'undefined') {
9293
- throw new Error("Reducer \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle " + ActionTypes.INIT + " or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null.");
9360
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(13) : "The slice reducer for key \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle '" + ActionTypes.INIT + "' or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null.");
9294
9361
  }
9295
9362
  });
9296
9363
  }
@@ -9374,8 +9441,8 @@ function combineReducers(reducers) {
9374
9441
  var nextStateForKey = reducer(previousStateForKey, action);
9375
9442
 
9376
9443
  if (typeof nextStateForKey === 'undefined') {
9377
- var errorMessage = getUndefinedStateErrorMessage(_key, action);
9378
- throw new Error(errorMessage);
9444
+ var actionType = action && action.type;
9445
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(14) : "When called with an action of type " + (actionType ? "\"" + String(actionType) + "\"" : '(unknown type)') + ", the slice reducer for key \"" + _key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined.");
9379
9446
  }
9380
9447
 
9381
9448
  nextState[_key] = nextStateForKey;
@@ -9387,17 +9454,6 @@ function combineReducers(reducers) {
9387
9454
  };
9388
9455
  }
9389
9456
 
9390
- /*
9391
- * This is a dummy function to check if the function name has been altered by minification.
9392
- * If the function has been minified and NODE_ENV !== 'production', warn the user.
9393
- */
9394
-
9395
- function isCrushed() {}
9396
-
9397
- if (process.env.NODE_ENV !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
9398
- warning('You are currently using minified code outside of NODE_ENV === "production". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');
9399
- }
9400
-
9401
9457
  var _localStorage$getItem;
9402
9458
  var initialState = {
9403
9459
  sidebarShow: "responsive",