@stratametriq/id-card-designer 1.11.0 → 1.13.0

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
@@ -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.11.0
5
+ > **Current release:** 1.13.0
6
6
 
7
7
  ---
8
8
 
@@ -10,8 +10,7 @@ A universal, dynamic, and highly customizable **ID Card Designer & Batch Print D
10
10
 
11
11
  - [Overview](#overview)
12
12
  - [Live Demo](#live-demo)
13
- - [What's New in v1.11.0](#whats-new-in-v1110)
14
- - [What's New in v1.10.0](#whats-new-in-v1100)
13
+ - [What's New in v1.13.0](#whats-new-in-v1130)
15
14
  - [Features](#features)
16
15
  - [ID Card Verification & Card Lifecycle](#id-card-verification--card-lifecycle)
17
16
  - [How It Works](#how-it-works)
@@ -52,20 +51,23 @@ You can launch a complete ID card design studio and batch print dashboard with j
52
51
 
53
52
  ---
54
53
 
55
- ## What's New in v1.11.0
56
- - **ID Card Digital Verification & Card Lifecycle Suite:** Upgrades `@stratametriq/id-card-designer` from a badge design canvas into a complete Enterprise Credential & Anti-Counterfeiting Platform.
57
- - **Standalone `<IdCardVerificationModal />`:** Mobile-friendly digital verification certificate featuring real-time status banners (🟢 `Active`, 🟣 `Issued`, ⚪ `Draft`, 🟠 `Suspended`, 🔴 `Revoked`, 🚨 `Lost`), official database photo matching, and digital checksum verification.
58
- - **Built-in HTML5 Camera Scanner:** Optical scanner using `getUserMedia` with targeting reticle overlay for instant badge scanning via laptop webcams or smartphone cameras.
59
- - **Live Roster Lifecycle Controls:** Added interactive **Status Column** in `<IdCardManager />` with 1-click status switcher dropdowns, row-level **"Verify"** action buttons, and **Batch Action ▾** menu.
60
- - **Smart Lifecycle Filter Tabs:** 1-Click filter toolbar (`All`, `Active`, `Issued`, `Draft`, `Suspended`, `Revoked`, `Selected`).
61
- - **Automatic Print Issuance Promotion:** Batch PDF or ZIP export automatically promotes printed cards to **`Issued`** status with an ISO issuance timestamp (`issuedAt`).
62
- - **Dynamic Verification QR Code Preset:** Dedicated "Verification QR" button and configuration in Property Editor with dynamic URL binding for live scanning.
54
+ ## What's New in v1.13.0
55
+ - **Organization & Multi-Tenant Workspace Suite:** Added an enterprise organization profile and branch workspace system into `<IdCardManager />` for schools, universities, hospitals, corporate enterprises, and SaaS host applications.
56
+ - **Institutional Identity & Profile:** Configure Organization Name, Affiliation Code, Tagline, Official Website, Email, Phone, and Headquarters Address.
57
+ - **Top Master Header Organization Pill:** Displays live organization logo, organization name, and active branch workspace with one-click access to settings.
58
+ - **Brand Assets & Digital Signature Manager:** Local file uploaders (converts to base64 Data URL) and direct URL inputs for institutional logos and authorized signatory signatures with instant preview and fallback reset.
59
+ - **Multi-Tenant Workspaces & Campus Branches:** Built-in branch registry supporting multiple campuses or hospital units with 1-click branch switching (`Activate`) and new workspace provisioning.
60
+ - **Verification & Anti-Counterfeiting Security Domain:** Configure custom verification domain (`verificationBaseUrl`), automatically binding dynamic QR codes to `[verificationBaseUrl] + [Cardholder Identifier]` with live verification certificate integration.
61
+ - **Universal Asset Injection:** Dynamically injects `orgAssets: { logoUrl, signatureUrl, orgName, signatoryName, signatoryTitle }` across card previews, studio design canvas, batch PDF engine, and ZIP generator.
62
+ - **Full IndexedDB & .stmq Backup Sync:** Automatically persisted in IndexedDB and preserved in `.stmq` project backups.
63
63
 
64
64
  ---
65
65
 
66
66
  ## Features
67
67
 
68
68
  - **🎨 Visual ID Card Designer:** A complete workspace for designing ID cards with a visual canvas, configurable elements, templates, and preview capabilities.
69
+ - **➕ Custom Column / Field Creator:** Dynamically create custom data fields (`+ Add Column`) on the fly, with automated template key generation, default value backfilling, live table sorting, and persistent IndexedDB sync.
70
+ - **📊 Enterprise People Directory:** Export full or selected cards to formatted Excel (`.xlsx`) & CSV (`.csv`), filter by missing portraits or incomplete records, filter by class/department sub-groups, track card expiration dates, and detect duplicate ID collisions in real time.
69
71
  - **➕ Live Roster CRUD & Management:** Full inline editing ("Edit Record"), manual creation ("+ Add Record" with photo upload), individual deletion, and bulk selection deletion directly from the dashboard.
70
72
  - **🔀 Multi-Column Sorting & Smart Pagination:** 1-click column header sorting (Ascending / Descending) and customizable pagination (`10`, `25`, `50`, `100`, `All`) for smooth performance on large datasets.
71
73
  - **📥 CSV & Excel Import:** Import structured card data from `.csv`, `.xlsx`, and `.xls`. Imported columns can be used as dynamic fields inside templates.
@@ -305,6 +307,10 @@ Your application remains responsible for compliance with applicable privacy and
305
307
  | `sampleRecords` | `object` | Default data | Records used to populate the dashboard |
306
308
  | `categories` | `object` | Default config | Custom ID-card categories |
307
309
  | `onBatchExportComplete` | `function` | `undefined` | Callback after batch PDF generation |
310
+ | `organization` | `object` | `DEFAULT_ORGANIZATION` | Institution profile (Name, Code, Logo, Signatory, Signature, Verification Base URL) |
311
+ | `onSaveOrganization` | `function` | `undefined` | Callback when organization profile or brand assets are updated |
312
+ | `workspaces` | `array` | `DEFAULT_WORKSPACES` | List of branch workspaces/campuses (`[{ id, name, code, location }]`) |
313
+ | `onSwitchWorkspace` | `function` | `undefined` | Callback when active branch workspace changes |
308
314
 
309
315
  ### Templates
310
316
  Designs are represented as JSON-compatible template structures.
package/dist/index.css CHANGED
@@ -1512,4 +1512,23 @@ body, button, input, select, textarea {
1512
1512
  user-select: none !important;
1513
1513
  overflow: hidden;
1514
1514
  box-sizing: border-box;
1515
+ }
1516
+
1517
+ /* Modal Dialog Layer */
1518
+ .pg-modal-overlay {
1519
+ position: fixed !important;
1520
+ inset: 0 !important;
1521
+ background-color: rgba(11, 15, 25, 0.85) !important;
1522
+ backdrop-filter: blur(8px) !important;
1523
+ -webkit-backdrop-filter: blur(8px) !important;
1524
+ z-index: 99999 !important;
1525
+ display: flex !important;
1526
+ align-items: center !important;
1527
+ justify-content: center !important;
1528
+ padding: 1.25rem !important;
1529
+ }
1530
+
1531
+ .pg-modal-content,
1532
+ .pg-modal-container {
1533
+ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
1515
1534
  }