@bigbinary/neeto-molecules 1.0.47 → 1.0.49
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/Sidebar.cjs.js +7 -4
- package/dist/Sidebar.cjs.js.map +1 -1
- package/dist/Sidebar.js +8 -5
- package/dist/Sidebar.js.map +1 -1
- package/package.json +1 -1
- package/types/Columns.d.ts +0 -32
- package/types/EmailPreview.d.ts +0 -6
- package/types/ErrorPage.d.ts +2 -8
- package/types/IntegrationCard.d.ts +2 -0
- package/types/IntegrationDisconnectAlert.d.ts +2 -0
- package/types/IntegrationWalkthroughModal.d.ts +2 -0
- package/types/KeyboardShortcuts.d.ts +4 -0
- package/types/LoginPage.d.ts +0 -2
- package/types/MenuBar.d.ts +9 -1
- package/types/NeetoWidget.d.ts +0 -4
- package/types/PhoneNumber.d.ts +0 -4
- package/types/PublishBlock.d.ts +30 -18
- package/types/Schedule.d.ts +1 -7
- package/types/SubHeader.d.ts +0 -6
- package/types/TableWrapper.d.ts +0 -4
package/dist/Sidebar.cjs.js
CHANGED
|
@@ -32102,13 +32102,16 @@ var _excluded = ["label", "to", "icon", "description"];
|
|
|
32102
32102
|
var Links = function Links(_ref) {
|
|
32103
32103
|
var navLinks = _ref.navLinks;
|
|
32104
32104
|
var location = reactRouterDom.useLocation();
|
|
32105
|
-
var
|
|
32106
|
-
var
|
|
32107
|
-
|
|
32105
|
+
var filterByPermissions = ramda.curry(function (_ref2) {
|
|
32106
|
+
var permissions = _ref2.permissions;
|
|
32107
|
+
if (permissions) {
|
|
32108
|
+
return ramda.is(Array, permissions) ? permissions.some(ramda.includes(ramda.__, initializers.globalProps.permissions)) : initializers.globalProps.permissions.includes(permissions);
|
|
32109
|
+
}
|
|
32110
|
+
return true;
|
|
32108
32111
|
});
|
|
32109
32112
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32110
32113
|
className: "neeto-molecules-sidebar__links"
|
|
32111
|
-
}, navLinks.filter(
|
|
32114
|
+
}, navLinks.filter(filterByPermissions).map(function (_ref3, mainIndex) {
|
|
32112
32115
|
var label = _ref3.label,
|
|
32113
32116
|
to = _ref3.to,
|
|
32114
32117
|
icon = _ref3.icon,
|