@asaleh37/ui-base 25.6.2-0.1 → 25.6.2-0.3
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/.github/workflows/publish-npm.yml +18 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/administration/admin/OrgMemberRoleForm.tsx +1 -1
- package/src/components/administration/admin/OrganizationRankGrid.tsx +1 -1
- package/src/components/administration/admin/PersonGrid.tsx +119 -16
- package/src/components/administration/admin/SystemApplicationAuthorityGrid.tsx +6 -15
- package/src/components/administration/admin/SystemApplicationModuleGrid.tsx +1 -1
- package/src/components/administration/admin/SystemApplicationRoleAuthorityGrid.tsx +64 -56
- package/src/components/administration/admin/SystemApplicationRoleGrid.tsx +2 -2
- package/src/components/common/MyNotificationsPanel.tsx +8 -2
- package/src/components/templates/DataEntryTemplates/DataEntryUtil.ts +5 -5
- package/src/hooks/UseSession.tsx +20 -1
- package/src/layout/MainContent.tsx +4 -1
- package/src/layout/NavigationTree.tsx +8 -5
- package/src/layout/RouteWrapper.tsx +28 -1
- package/src/layout/TopBar.tsx +5 -2
- package/src/main.tsx +1 -1
- package/src/navigationItems/Administration/adminNavigationItems.tsx +13 -12
- package/src/navigationItems/index.tsx +2 -1
- package/src/redux/features/administration/AdministrationStoresMetaData.ts +22 -0
- package/src/redux/features/common/AppInfoSlice.ts +2 -0
- package/src/routes/types/index.ts +1 -0
- package/vite.config.ts +1 -13
|
@@ -29,3 +29,21 @@ jobs:
|
|
|
29
29
|
run: npm publish
|
|
30
30
|
env:
|
|
31
31
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
32
|
+
notify:
|
|
33
|
+
needs: publish
|
|
34
|
+
runs-on: ubuntu-latest
|
|
35
|
+
if: always() # ensures this step runs regardless of success or failure
|
|
36
|
+
steps:
|
|
37
|
+
- name: Send email notification
|
|
38
|
+
uses: dawidd6/action-send-mail@v3
|
|
39
|
+
with:
|
|
40
|
+
server_address: smtp.gmail.com
|
|
41
|
+
server_port: 587
|
|
42
|
+
username: ${{ secrets.SMTP_USERNAME }}
|
|
43
|
+
password: ${{ secrets.SMTP_PASSWORD }}
|
|
44
|
+
subject: ui-base package publish job is finished
|
|
45
|
+
to: ahmed.saleh.mohamed.92@gmail.com
|
|
46
|
+
from: ${{ secrets.SMTP_USERNAME }}
|
|
47
|
+
body: |
|
|
48
|
+
The GitHub Actions workflow has finished.
|
|
49
|
+
Status: ${{ needs.publish.result }}
|
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { ResponseType } from 'axios';
|
|
|
17
17
|
interface SystemRoute {
|
|
18
18
|
path: string;
|
|
19
19
|
component: React.FC;
|
|
20
|
+
applicationModule?: string;
|
|
20
21
|
authority?: string;
|
|
21
22
|
}
|
|
22
23
|
|
|
@@ -26,6 +27,7 @@ type ExtendedTreeItemProps = {
|
|
|
26
27
|
label: string;
|
|
27
28
|
action?: "NAVIGATION";
|
|
28
29
|
authority?: string;
|
|
30
|
+
applicationModule?: string;
|
|
29
31
|
actionPayload?: {
|
|
30
32
|
path?: string;
|
|
31
33
|
parameters?: object;
|
|
@@ -73,6 +75,7 @@ type AppInfo = {
|
|
|
73
75
|
};
|
|
74
76
|
muiPremiumKey: string;
|
|
75
77
|
enableAdministrationModule: boolean;
|
|
78
|
+
enableUINotifications: Boolean;
|
|
76
79
|
appTheme?: {
|
|
77
80
|
light: {
|
|
78
81
|
primaryColor: string;
|
|
@@ -597,6 +600,7 @@ declare const useIsMobile: (breakpoint?: number) => boolean;
|
|
|
597
600
|
declare const useSession: () => {
|
|
598
601
|
UserSession: any;
|
|
599
602
|
isUserAuthorized: (authorityCode: string) => boolean;
|
|
603
|
+
isCurrentOrganizationAuthorizedToModule: (moduleCode: string) => Boolean;
|
|
600
604
|
UserInfo: any;
|
|
601
605
|
};
|
|
602
606
|
|