react-semaphor 0.1.229 → 0.1.231
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/chunks/dashboard-controls-D5LGwleP.js +47 -0
- package/dist/chunks/dashboard-controls-WDfLhTmh.js +1837 -0
- package/dist/chunks/{dashboard-json-C6i1R8Wf.js → dashboard-json-BWWfRH2_.js} +1 -1
- package/dist/chunks/{dashboard-json-Bb4sPs1-.js → dashboard-json-DXunjBeA.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-B-EIaEfz.js → dashboard-summary-settings-dialog-BzEEwHOF.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-B5oZC5Et.js → dashboard-summary-settings-dialog-CB5TScfc.js} +23 -23
- package/dist/chunks/{edit-dashboard-visual-BrR2eN_x.js → edit-dashboard-visual-CCQoz0-3.js} +3 -3
- package/dist/chunks/{edit-dashboard-visual-BhqnGTNb.js → edit-dashboard-visual-Ct8MHaNG.js} +461 -461
- package/dist/chunks/{editor-action-buttons-BuGSShg4.js → editor-action-buttons-TCC22i95.js} +42 -42
- package/dist/chunks/{editor-action-buttons-DZHYde-x.js → editor-action-buttons-acRlz-51.js} +1 -1
- package/dist/chunks/{index-C_FfPMsT.js → index-BSv9U5tc.js} +5658 -5645
- package/dist/chunks/{index--t-xJkFo.js → index-CcysLOA4.js} +161 -161
- package/dist/chunks/{notification-bell-BJx5GZ0K.js → notification-bell-a6BxRjVN.js} +60 -60
- package/dist/chunks/{notification-bell-BUK6qo6E.js → notification-bell-z7oT5LAh.js} +1 -1
- package/dist/chunks/resource-management-panel-6WdgxllK.js +6 -0
- package/dist/chunks/resource-management-panel-BacphZKd.js +920 -0
- package/dist/chunks/{use-visual-utils-C-1MadD0.js → use-visual-utils-Bgi4-2vL.js} +33 -33
- package/dist/chunks/{use-visual-utils-CckIJVB_.js → use-visual-utils-CUrMP3ER.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +44 -44
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/dashboard-controls-C4Yq0TiH.js +0 -1764
- package/dist/chunks/dashboard-controls-DUVPeEnP.js +0 -47
- package/dist/chunks/resource-management-panel-C--Zp8ix.js +0 -6
- package/dist/chunks/resource-management-panel-CliUOxsc.js +0 -913
- package/dist/chunks/use-role-aware-display-preferences-Dza-JBu0.js +0 -29
- package/dist/chunks/use-role-aware-display-preferences-YdbXXiO7.js +0 -1
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { b as m, e as t, g as D, f as U, h as b, i as u, j as E, k as g } from "./index-C_FfPMsT.js";
|
|
2
|
-
import { useMemo as i } from "react";
|
|
3
|
-
function S() {
|
|
4
|
-
const { displayPreferences: n, shouldShowElement: c } = m(), { currentUser: a, userContext: s } = t(), r = i(
|
|
5
|
-
() => D(a),
|
|
6
|
-
[a]
|
|
7
|
-
), p = i(() => (e) => r && r[e] !== void 0 && r[e] === !1 ? !1 : c(e), [r, c, n]), f = i(
|
|
8
|
-
() => {
|
|
9
|
-
var e, o, d, l, h;
|
|
10
|
-
return {
|
|
11
|
-
canEdit: ((e = s == null ? void 0 : s.permissions) == null ? void 0 : e.canEdit) ?? g(a),
|
|
12
|
-
canUseFilters: ((o = s == null ? void 0 : s.permissions) == null ? void 0 : o.canEdit) ?? E(a),
|
|
13
|
-
canManageDashboards: ((d = s == null ? void 0 : s.permissions) == null ? void 0 : d.canCreateDashboard) ?? u(a),
|
|
14
|
-
canCreateDashboards: ((l = s == null ? void 0 : s.permissions) == null ? void 0 : l.canCreateDashboard) ?? b(a),
|
|
15
|
-
canAccessVisuals: ((h = s == null ? void 0 : s.permissions) == null ? void 0 : h.canEdit) ?? U(a)
|
|
16
|
-
};
|
|
17
|
-
},
|
|
18
|
-
[a, s]
|
|
19
|
-
);
|
|
20
|
-
return {
|
|
21
|
-
displayPreferences: n,
|
|
22
|
-
shouldShowElement: p,
|
|
23
|
-
permissions: f,
|
|
24
|
-
currentUser: a
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
S as u
|
|
29
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("./index--t-xJkFo.js"),n=require("react");function f(){const{displayPreferences:c,shouldShowElement:o}=a.useDisplayPreferences(),{currentUser:e,userContext:s}=a.useCurrentUserInfo(),i=n.useMemo(()=>a.getRoleBasedDisplayOverrides(e),[e]),t=n.useMemo(()=>r=>i&&i[r]!==void 0&&i[r]===!1?!1:o(r),[i,o,c]),p=n.useMemo(()=>{var r,d,l,u,h;return{canEdit:((r=s==null?void 0:s.permissions)==null?void 0:r.canEdit)??a.canUserEdit(e),canUseFilters:((d=s==null?void 0:s.permissions)==null?void 0:d.canEdit)??a.canUserUseFilters(e),canManageDashboards:((l=s==null?void 0:s.permissions)==null?void 0:l.canCreateDashboard)??a.canUserManageDashboards(e),canCreateDashboards:((u=s==null?void 0:s.permissions)==null?void 0:u.canCreateDashboard)??a.canUserCreateDashboards(e),canAccessVisuals:((h=s==null?void 0:s.permissions)==null?void 0:h.canEdit)??a.canUserAccessVisuals(e)}},[e,s]);return{displayPreferences:c,shouldShowElement:t,permissions:p,currentUser:e}}exports.useRoleAwareDisplayPreferences=f;
|