@gisce/react-ooui 2.91.0 → 2.92.0
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePermissions.d.ts","sourceRoot":"","sources":["../../src/hooks/usePermissions.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEpE,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AAE7D,eAAO,MAAM,cAAc;8BAcd,MAAM,eACA,cAAc,EAAE,KAC5B,QAAQ,cAAc,CAAC;;
|
|
1
|
+
{"version":3,"file":"usePermissions.d.ts","sourceRoot":"","sources":["../../src/hooks/usePermissions.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEpE,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AAE7D,eAAO,MAAM,cAAc;8BAcd,MAAM,eACA,cAAc,EAAE,KAC5B,QAAQ,cAAc,CAAC;;CA+B7B,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,WAAW,EAAE,cAAc,GAAG,IAAI,CAAC;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,mBAAmB,qCAI7B,0BAA0B,KAAG,yBAsD/B,CAAC"}
|
package/dist/react-ooui.es.js
CHANGED
|
@@ -11720,16 +11720,18 @@ const Bn = Nt(ey), Un = (e) => {
|
|
|
11720
11720
|
}, []), { checkPermissions: E(
|
|
11721
11721
|
async (r, o) => {
|
|
11722
11722
|
try {
|
|
11723
|
-
const i =
|
|
11724
|
-
|
|
11725
|
-
|
|
11726
|
-
|
|
11727
|
-
|
|
11728
|
-
|
|
11729
|
-
|
|
11730
|
-
|
|
11731
|
-
|
|
11732
|
-
|
|
11723
|
+
const i = await e({
|
|
11724
|
+
model: r,
|
|
11725
|
+
type: o
|
|
11726
|
+
});
|
|
11727
|
+
if (typeof i == "boolean") {
|
|
11728
|
+
const l = {};
|
|
11729
|
+
return l[o[0]] = i, l;
|
|
11730
|
+
}
|
|
11731
|
+
const a = {};
|
|
11732
|
+
return o.forEach((l) => {
|
|
11733
|
+
a[l] = i[l] || !1;
|
|
11734
|
+
}), a;
|
|
11733
11735
|
} catch (i) {
|
|
11734
11736
|
throw console.error("Error checking permissions:", i), i;
|
|
11735
11737
|
}
|