mario-core 2.9.222-release → 2.9.224-release

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,3 +1,4 @@
1
+ import { LogLevel } from "@azure/msal-browser";
1
2
  /**
2
3
  * Configuration object to be passed to MSAL instance on creation.
3
4
  * For a full list of MSAL.js configuration parameters, visit:
@@ -15,7 +16,7 @@ export declare const msalConfig: {
15
16
  };
16
17
  system: {
17
18
  loggerOptions: {
18
- loggerCallback: (level: any, message: string, containsPii: any) => void;
19
+ loggerCallback: (level: LogLevel, message: string, containsPii: any) => void;
19
20
  };
20
21
  };
21
22
  };
package/dist/index.js CHANGED
@@ -1846,7 +1846,7 @@ var print_my_accommodations = "Print my accommodations";
1846
1846
  var my_learning_progress = "My Learning Progress";
1847
1847
  var responses_and_response_rates_per_question = "Responses and Response Rates Per Question";
1848
1848
  var responses_comparisons = "Responses Comparisons";
1849
- var dropdown_and_verbal_questions_responses = "Dropdown and verbal Questions Responses";
1849
+ var dropdown_and_verbal_questions_responses = "Dropdown and Verbal Questions Responses";
1850
1850
  var lang_us = {
1851
1851
  dashboard: dashboard,
1852
1852
  user: user,
@@ -5484,7 +5484,7 @@ var add_new_accommodation$1 = "Add new accommodation";
5484
5484
  var print_my_accommodations$1 = "Print my accommodations";
5485
5485
  var my_learning_progress$1 = "My Learning Progress";
5486
5486
  var responses_comparisons$1 = "Responses Comparisons";
5487
- var dropdown_and_verbal_questions_responses$1 = "Dropdown and verbal Questions Responses";
5487
+ var dropdown_and_verbal_questions_responses$1 = "Dropdown and Verbal Questions Responses";
5488
5488
  var lang_uk = {
5489
5489
  dashboard: dashboard$1,
5490
5490
  user: user$1,
@@ -32353,7 +32353,9 @@ var TheLayout = function TheLayout(_ref) {
32353
32353
  try {
32354
32354
  var _temp6 = _catch(function () {
32355
32355
  return Promise.resolve(getInfo()).then(function (info) {
32356
- if (!info) {
32356
+ var _info$data, _info$data$roles;
32357
+
32358
+ if (!info || !(info !== null && info !== void 0 && (_info$data = info.data) !== null && _info$data !== void 0 && (_info$data$roles = _info$data.roles) !== null && _info$data$roles !== void 0 && _info$data$roles.includes("Admin"))) {
32357
32359
  resetAuth();
32358
32360
  }
32359
32361