andoncloud-sdk 1.7.35 → 1.7.37
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/index.js +13 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4026 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +17 -16
package/dist/index.js
CHANGED
|
@@ -679,9 +679,10 @@ const useAccess = (features = [], options = {}) => {
|
|
|
679
679
|
});
|
|
680
680
|
const aggregatedState = featureResults.reduce((acc, feat) => ACCESS_STATE_PRIORITY[feat.accessState] < ACCESS_STATE_PRIORITY[acc] ? feat.accessState : acc, "accessible");
|
|
681
681
|
const extraPermissionsResult = checkPermissions(extraPermissions);
|
|
682
|
-
const
|
|
682
|
+
const featurePermissions = features.flatMap((key) => {
|
|
683
683
|
return getFeature(key)?.permissions || [];
|
|
684
|
-
})
|
|
684
|
+
});
|
|
685
|
+
const allPermissionsResult = checkPermissions([...featurePermissions, ...extraPermissions]);
|
|
685
686
|
const hasAccess = aggregatedState === "accessible" && extraPermissionsResult.allAllowed;
|
|
686
687
|
const mostRestrictiveFeature = featureResults.reduce((acc, feat) => ACCESS_STATE_PRIORITY[feat.accessState] < ACCESS_STATE_PRIORITY[acc?.accessState || "accessible"] ? feat : acc, featureResults[0]);
|
|
687
688
|
const buttons = mostRestrictiveFeature?.buttons || [];
|
|
@@ -2005,6 +2006,7 @@ var theme_default = createTheme(baseTheme, { components: {
|
|
|
2005
2006
|
"&:last-child": { paddingBottom: 16 }
|
|
2006
2007
|
} } },
|
|
2007
2008
|
MuiDayCalendar: { styleOverrides: { weekDayLabel: { color: "#E0E0E0" } } },
|
|
2009
|
+
MuiDialog: { styleOverrides: { paper: { borderRadius: "6px" } } },
|
|
2008
2010
|
MuiDialogTitle: { styleOverrides: { root: {
|
|
2009
2011
|
textAlign: "center",
|
|
2010
2012
|
color: "white",
|
|
@@ -2015,6 +2017,12 @@ var theme_default = createTheme(baseTheme, { components: {
|
|
|
2015
2017
|
padding: "16px 24px",
|
|
2016
2018
|
background: "#252A32"
|
|
2017
2019
|
} } },
|
|
2020
|
+
MuiDialogActions: { styleOverrides: { root: {
|
|
2021
|
+
padding: "16px 24px",
|
|
2022
|
+
background: "#30353D",
|
|
2023
|
+
borderTop: "1px solid rgba(255, 255, 255, 0.08)",
|
|
2024
|
+
justifyContent: "space-evenly"
|
|
2025
|
+
} } },
|
|
2018
2026
|
MuiDialogContentText: { styleOverrides: { root: {
|
|
2019
2027
|
textAlign: "center",
|
|
2020
2028
|
color: "white"
|
|
@@ -2803,7 +2811,7 @@ const LoginModal = ({ isOpen, title, subtitle, scope, redirectPath, onSuccess, o
|
|
|
2803
2811
|
};
|
|
2804
2812
|
const OAUTH_STATE_KEY = "oauth2_state";
|
|
2805
2813
|
const generateOAuthState = () => {
|
|
2806
|
-
const bytes = crypto.getRandomValues(new Uint8Array(16));
|
|
2814
|
+
const bytes = crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16));
|
|
2807
2815
|
return Array.from(bytes, (b) => b.toString(16).padStart(2, "0")).join("");
|
|
2808
2816
|
};
|
|
2809
2817
|
const useLogin = (scope, loginProps = {}) => {
|
|
@@ -3744,10 +3752,8 @@ App.defaultProps = {
|
|
|
3744
3752
|
};
|
|
3745
3753
|
var app_default = Sentry.withProfiler(App);
|
|
3746
3754
|
//#endregion
|
|
3747
|
-
//#region src/assets/check.svg
|
|
3748
|
-
var check_default = "data:image/svg+xml,<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<g id=\"Check\">%0A<path id=\"Vector\" d=\"M17.6758 3.92578L6.875 14.7266L2.32422 10.1758L1.42578 11.0742L6.42578 16.0742L6.875 16.5039L7.32422 16.0742L18.5742 4.82422L17.6758 3.92578Z\" fill=\"white\"/>%0A</g>%0A</svg>%0A";
|
|
3749
|
-
//#endregion
|
|
3750
3755
|
//#region src/core/ui/Checkbox/styled.ts
|
|
3756
|
+
const checkIcon = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M17.6758 3.92578L6.875 14.7266L2.32422 10.1758L1.42578 11.0742L6.42578 16.0742L6.875 16.5039L7.32422 16.0742L18.5742 4.82422L17.6758 3.92578Z' fill='white'/%3E%3C/svg%3E";
|
|
3751
3757
|
const UncheckedIcon$1 = styled$1("span")(({ theme }) => ({
|
|
3752
3758
|
width: "16px",
|
|
3753
3759
|
height: "16px",
|
|
@@ -3768,7 +3774,7 @@ const CheckedIcon$1 = styled$1(UncheckedIcon$1)(({ theme }) => ({
|
|
|
3768
3774
|
height: "16px",
|
|
3769
3775
|
top: 0,
|
|
3770
3776
|
left: 0,
|
|
3771
|
-
background: `url(${
|
|
3777
|
+
background: `url("${checkIcon}") no-repeat center`,
|
|
3772
3778
|
backgroundSize: "80%"
|
|
3773
3779
|
}
|
|
3774
3780
|
}));
|