mesauth-angular 1.4.0 → 1.5.6

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/README.md CHANGED
@@ -4,6 +4,18 @@ Angular helper library to connect to a backend API and SignalR hub to surface th
4
4
 
5
5
  ## Changelog
6
6
 
7
+ ### v1.5.0 (2026-03-24) - **Approval Module**
8
+ - **New `<ma-approval-panel>` component**: Slide-out sidebar with 3 tabs (Processing / Approved / Rejected). Shows all pending approvals requiring action, and recent approved/rejected items. Listens to `approvalEvents$` for real-time refresh via SignalR.
9
+ - **New `<ma-arv-container>` component**: Content capture container for submitting documents for approval. Captures projected `<ng-content>` as a self-contained HTML document by inlining all computed styles, replacing canvas elements with images, and stripping Angular/script artifacts. Supports ad-hoc step builder and template selector.
10
+ - **New `MaApprovalService`**: Service for all approval API calls — `getPendingApprovals()`, `getMyRequests()`, `getDashboard()`, `approve()`, `reject()`, `delegate()`, `getTemplates()`, `createApproval()`, etc. Manual init pattern (same as `MesAuthService`).
11
+ - **Approval icon in `ma-user-profile`**: Clipboard/checkmark icon button added between notification bell and avatar. Shows pending count badge. Emits `approvalClick` output for panel toggle.
12
+ - **`approvalEvents$` observable in `MesAuthService`**: Real-time SignalR events (`ApprovalCompleted`, `ApprovalStepChanged`) exposed as an observable stream.
13
+ - **New exports**: `MaApprovalService`, `MaApprovalPanelComponent`, `MaArvContainerComponent`, and all approval model interfaces/enums.
14
+
15
+ ### v1.4.0 (2026-03-20) - **Remove Unused Route Registration API**
16
+ - Removed `registerRoutes()`, `unregisterRoute()`, `getRoutesByRole()` and related methods from `MesAuthService`. Frontend route master/mapping CRUD is handled by `MesExtensionSite` via direct HTTP calls, not through the library.
17
+ - `getFrontEndRoutes()` and `UserFrontEndRoutesGrouped`/`FrontEndRoute` interfaces are retained as the public API for consuming route data.
18
+
7
19
  ### v1.2.3 (2026-02-11) - **Fix Register Page Auto-Redirect**
8
20
  - **Fixed 401 redirect on public pages**: The interceptor now skips the login redirect when the user is on `/register`, `/forgot-password`, or `/reset-password` pages. Previously, unauthenticated users on the register page were incorrectly redirected to login when any API call returned 401.
9
21
 
@@ -40,6 +52,7 @@ Angular helper library to connect to a backend API and SignalR hub to surface th
40
52
 
41
53
  - 🔐 **Authentication**: User login/logout with API integration
42
54
  - 🔔 **Real-time Notifications**: SignalR integration for live notifications
55
+ - ✅ **Approval Workflows**: `<ma-approval-panel>`, `<ma-arv-container>`, `MaApprovalService` for multi-step document approval
43
56
  - 🎨 **Dark/Light Theme**: Automatic theme detection and support
44
57
  - 🖼️ **Avatar Support**: Direct API-based avatar loading
45
58
  - 🍞 **Toast Notifications**: In-app notification toasts