@stratametriq/id-card-designer 1.17.1 → 1.17.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.
Files changed (4) hide show
  1. package/README.md +30 -2
  2. package/dist/index.es.js +6135 -5877
  3. package/dist/index.js +111 -102
  4. package/package.json +1 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  A universal, dynamic, and highly customizable **ID Card Designer & Batch Print Dashboard** for React, Vue, Angular, and Vanilla JS.
4
4
 
5
- > **Current release:** 1.17.1
5
+ > **Current release:** 1.17.3
6
6
 
7
7
  ---
8
8
 
@@ -11,7 +11,9 @@ A universal, dynamic, and highly customizable **ID Card Designer & Batch Print D
11
11
  - [Overview](#overview)
12
12
  - [Live Demo](#live-demo)
13
13
  - [Pricing / License](#pricing--licensing-important)
14
- - [What's New in v1.17.1](#whats-new-in-v1171)
14
+ - [What's New in v1.17.3](#whats-new-in-v1173)
15
+ - [What's New in v1.17.2](#whats-new-in-v1172)
16
+ - [What's New in v1.17.1](#whats-new-in-v171)
15
17
  - [What's New in v1.17.0](#whats-new-in-v1170)
16
18
  - [What's New in v1.16.0](#whats-new-in-v160)
17
19
  - [What's New in v1.15.0](#whats-new-in-v150)
@@ -77,6 +79,32 @@ Free for personal projects, students, open-source initiatives, and non-profit or
77
79
 
78
80
  ---
79
81
 
82
+ ## What's New in v1.17.3
83
+ - **🔁 Operator Session Persistence Across Page Reloads:**
84
+ - Active switched persona state is now stored across browser reloads (`ricd_active_user_v1`).
85
+ - Switched operators (e.g. Designer, Registrar, Issuance Officer) remain active when the page is refreshed without reverting to Admin.
86
+ - **🔗 Direct Operator Access Links & Deep-Link URLs:**
87
+ - Added URL parameter support: `?operator=<userId>`, `?user=<userId>`, and `?role=<roleId>`.
88
+ - Added **"Copy Direct Access Link"** button on every operator card in `<RoleSwitcherModal />`.
89
+ - Allows Admins to share direct workspace links with remote staff so they open `studio.stratametriq.com` directly in their assigned operator role.
90
+ - **📦 Public Utility Exports:**
91
+ - Exported `STORAGE_KEY_ACTIVE_USER`, `getPersistedActiveUserId`, and `persistActiveUserId` from `@stratametriq/id-card-designer`.
92
+
93
+ ## What's New in v1.17.2
94
+ - **🧠 Smart Session User Auto-Detection:**
95
+ - Automatically identifies the authenticated operator from browser storage (`localStorage`, `sessionStorage`), window globals (`window.currentUser`, `window.authUser`), and domain metadata.
96
+ - Added user prop aliases (`currentUser`, `user`, `authUser`, `sessionUser`), guaranteeing seamless integration regardless of which prop name host applications provide.
97
+ - Dynamically binds the active authenticated user (`Aabid Hussain Wani`) as the primary root Super Admin.
98
+ - **🚫 Complete Eradication of Dummy Mock Personas in Production:**
99
+ - Removed all hardcoded mock personas (*Maya Lin*, *Rahul Mehta*, *Carlos Mendez*, *Officer David Briggs*, *Evelyn Vance*) from the production user registry.
100
+ - In production mode, the user list starts with **only the authenticated logged-in operator** (`Team Users (1)`).
101
+ - Newly added operators created via `+ Add New User` now populate the directory cleanly without mock user clutter.
102
+ - Added `demoMode` prop (`demoMode={false}` by default): host apps and test harnesses can explicitly opt into mock personas for sandboxing if desired.
103
+ - **🔄 Automated IndexedDB Migration & Storage Sanitizer:**
104
+ - Built-in `sanitizeAndMigrateUsers` purges legacy dummy mock personas from browser IndexedDB (`ricd_users_v1`), updating existing installations automatically without requiring manual cache clears while preserving all user-created accounts.
105
+ - **📦 Public Exports:**
106
+ - Exported `DEFAULT_PRIMARY_ADMIN`, `isDemoPersona`, `detectSessionUser`, and `sanitizeAndMigrateUsers` from `@stratametriq/id-card-designer`.
107
+
80
108
  ## What's New in v1.17.1
81
109
  - **👥 Team User Provisioning Cockpit & Granular Permission Editor:**
82
110
  - Expanded `<RoleSwitcherModal />` with a full-featured operator management dashboard supporting **+ Add User**, **Edit User**, and **Delete User**.