mario-education 2.0.236-staging โ 2.0.237-staging
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.
- package/dist/FlagAlertWrapper-BuheeP2f.js +87 -0
- package/dist/FlagAlertWrapper-D1doALtZ.cjs +1 -0
- package/dist/MainLayoutAdmin-3aKJp9x0.js +1797 -0
- package/dist/MainLayoutAdmin-Cm22eeS_.cjs +6 -0
- package/dist/PersonalLearningPlansWrapper-Dl0A1m8C.js +89 -0
- package/dist/PersonalLearningPlansWrapper-PHtgR0pM.cjs +1 -0
- package/dist/constants-CEtnmqRg.cjs +1 -0
- package/dist/constants-DZslPwPm.js +43 -0
- package/dist/index-BukXLYBj.js +2592 -0
- package/dist/index-BzUDFNjy.cjs +4 -0
- package/dist/index-Ddg18kTH.cjs +1 -0
- package/dist/index-LPQFswhn.js +8003 -0
- package/dist/index.js +1 -1
- package/dist/index.modern.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { jsx as l, jsxs as v } from "react/jsx-runtime";
|
|
2
|
+
import { W as T } from "./WrapperWorkspace-Dk06lvjb.js";
|
|
3
|
+
import { useRef as k, useMemo as h, useEffect as g } from "react";
|
|
4
|
+
import { useNavigate as M, useLocation as P } from "react-router-dom";
|
|
5
|
+
import { useSelector as x } from "react-redux";
|
|
6
|
+
import { g as W } from "./constants-DZslPwPm.js";
|
|
7
|
+
const L = () => {
|
|
8
|
+
const t = M(), c = P(), r = new URLSearchParams(c.search).get("type") === "elementary", a = k(null), e = x((s) => s.common?.user), n = e?.hasEsSchool !== !1, { msRoles: y, esRoles: A } = h(
|
|
9
|
+
() => W(e?.appType, e?.msRoles, e?.esRoles),
|
|
10
|
+
[e?.appType, e?.msRoles, e?.esRoles]
|
|
11
|
+
), m = e?.appTypeRaw ?? e?.appType ?? "", w = m.toUpperCase().includes("MS"), E = m.toUpperCase().includes("ES"), d = e?.roles?.includes("Admin"), i = y.includes("Admin") || d && w, o = n && (A.includes("Admin") || d && E), R = n && o && i, u = n && o && !i, f = !n || i && !o;
|
|
12
|
+
g(() => {
|
|
13
|
+
if (r && (!n || !o)) {
|
|
14
|
+
t("/admin/custom-alert", { replace: !0 });
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
r || (f ? t("/admin/custom-alert", { replace: !0 }) : u && t("?type=elementary", { replace: !0 }));
|
|
18
|
+
}, [r, n, o, f, u, t]), g(() => {
|
|
19
|
+
if (r && a.current) {
|
|
20
|
+
const s = a.current.closest('div[class*="container-fluid"]') || a.current.parentElement;
|
|
21
|
+
if (s) {
|
|
22
|
+
const C = s.style.padding;
|
|
23
|
+
return s.style.setProperty("padding", "0", "important"), () => {
|
|
24
|
+
s.style.padding = C;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return () => {
|
|
29
|
+
};
|
|
30
|
+
}, [r]);
|
|
31
|
+
const S = r && n && o, b = h(() => {
|
|
32
|
+
const s = [];
|
|
33
|
+
return n && o && s.push({
|
|
34
|
+
title: "Elementary / Primary",
|
|
35
|
+
description: "Ages 7-11 ยท Grades 2-5 / Years 3-6",
|
|
36
|
+
icon: "๐",
|
|
37
|
+
items: ["Educator Email Notification", "Alerts Thresholds"],
|
|
38
|
+
buttonLabel: "Configure Alerts โ",
|
|
39
|
+
buttonColor: "#316CD9",
|
|
40
|
+
onAction: () => t("?type=elementary")
|
|
41
|
+
}), i && s.push({
|
|
42
|
+
title: "Middle & High / Secondary",
|
|
43
|
+
description: "Ages 11-18 ยท Grades 6-12 / Years 7-13",
|
|
44
|
+
icon: "๐ฎ",
|
|
45
|
+
items: ["Educator Email Notification", "Alerts Thresholds"],
|
|
46
|
+
buttonLabel: "Configure Alerts โ",
|
|
47
|
+
buttonColor: "#9333ea",
|
|
48
|
+
onAction: () => t("/admin/custom-alert")
|
|
49
|
+
}), s;
|
|
50
|
+
}, [n, o, i, t]);
|
|
51
|
+
return {
|
|
52
|
+
showIframe: S,
|
|
53
|
+
iframeRef: a,
|
|
54
|
+
isBothAdmin: R,
|
|
55
|
+
workspaces: b,
|
|
56
|
+
iframeSrc: `${window.location.origin}/es/admin/custom-alert?fullsize=true`
|
|
57
|
+
};
|
|
58
|
+
}, z = () => {
|
|
59
|
+
const { showIframe: t, iframeRef: c, iframeSrc: p, workspaces: r } = L();
|
|
60
|
+
return t ? /* @__PURE__ */ l(
|
|
61
|
+
"iframe",
|
|
62
|
+
{
|
|
63
|
+
ref: c,
|
|
64
|
+
src: p,
|
|
65
|
+
style: { width: "100%", height: "100%", border: "none", display: "block" },
|
|
66
|
+
title: "Elementary Custom Alert"
|
|
67
|
+
}
|
|
68
|
+
) : r.length === 0 ? null : /* @__PURE__ */ l(
|
|
69
|
+
T,
|
|
70
|
+
{
|
|
71
|
+
title: "Alert & Notification Settings",
|
|
72
|
+
description: "Select the school level to configure thresholds and workflows.",
|
|
73
|
+
workspaces: r,
|
|
74
|
+
warningIcon: /* @__PURE__ */ l("span", { style: { fontSize: "16px" }, children: "๐" }),
|
|
75
|
+
warningBg: "#eff6ff",
|
|
76
|
+
warningBorder: "#dbeafe",
|
|
77
|
+
warningColor: "#1e40af",
|
|
78
|
+
warning: /* @__PURE__ */ v("span", { children: [
|
|
79
|
+
/* @__PURE__ */ l("strong", { children: "Student-driven alerts only." }),
|
|
80
|
+
" Every notification is triggered exclusively by real student check-in responses โ no assumptions, no automation. Alerts surface genuine signals so your team can respond with confidence and care."
|
|
81
|
+
] })
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
};
|
|
85
|
+
export {
|
|
86
|
+
z as default
|
|
87
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),C=require("./WrapperWorkspace-chUi6fpR.cjs"),c=require("react"),h=require("react-router-dom"),v=require("react-redux"),M=require("./constants-CEtnmqRg.cjs"),T=()=>{const t=h.useNavigate(),u=h.useLocation(),r=new URLSearchParams(u.search).get("type")==="elementary",l=c.useRef(null),e=v.useSelector(s=>s.common?.user),n=e?.hasEsSchool!==!1,{msRoles:y,esRoles:A}=c.useMemo(()=>M.getAccessibleRoles(e?.appType,e?.msRoles,e?.esRoles),[e?.appType,e?.msRoles,e?.esRoles]),p=e?.appTypeRaw??e?.appType??"",w=p.toUpperCase().includes("MS"),E=p.toUpperCase().includes("ES"),m=e?.roles?.includes("Admin"),i=y.includes("Admin")||m&&w,o=n&&(A.includes("Admin")||m&&E),R=n&&o&&i,f=n&&o&&!i,g=!n||i&&!o;c.useEffect(()=>{if(r&&(!n||!o)){t("/admin/custom-alert",{replace:!0});return}r||(g?t("/admin/custom-alert",{replace:!0}):f&&t("?type=elementary",{replace:!0}))},[r,n,o,g,f,t]),c.useEffect(()=>{if(r&&l.current){const s=l.current.closest('div[class*="container-fluid"]')||l.current.parentElement;if(s){const x=s.style.padding;return s.style.setProperty("padding","0","important"),()=>{s.style.padding=x}}}return()=>{}},[r]);const S=r&&n&&o,b=c.useMemo(()=>{const s=[];return n&&o&&s.push({title:"Elementary / Primary",description:"Ages 7-11 ยท Grades 2-5 / Years 3-6",icon:"๐",items:["Educator Email Notification","Alerts Thresholds"],buttonLabel:"Configure Alerts โ",buttonColor:"#316CD9",onAction:()=>t("?type=elementary")}),i&&s.push({title:"Middle & High / Secondary",description:"Ages 11-18 ยท Grades 6-12 / Years 7-13",icon:"๐ฎ",items:["Educator Email Notification","Alerts Thresholds"],buttonLabel:"Configure Alerts โ",buttonColor:"#9333ea",onAction:()=>t("/admin/custom-alert")}),s},[n,o,i,t]);return{showIframe:S,iframeRef:l,isBothAdmin:R,workspaces:b,iframeSrc:`${window.location.origin}/es/admin/custom-alert?fullsize=true`}},j=()=>{const{showIframe:t,iframeRef:u,iframeSrc:d,workspaces:r}=T();return t?a.jsx("iframe",{ref:u,src:d,style:{width:"100%",height:"100%",border:"none",display:"block"},title:"Elementary Custom Alert"}):r.length===0?null:a.jsx(C.WrapperWorkspace,{title:"Alert & Notification Settings",description:"Select the school level to configure thresholds and workflows.",workspaces:r,warningIcon:a.jsx("span",{style:{fontSize:"16px"},children:"๐"}),warningBg:"#eff6ff",warningBorder:"#dbeafe",warningColor:"#1e40af",warning:a.jsxs("span",{children:[a.jsx("strong",{children:"Student-driven alerts only."})," Every notification is triggered exclusively by real student check-in responses โ no assumptions, no automation. Alerts surface genuine signals so your team can respond with confidence and care."]})})};exports.default=j;
|