@stratametriq/id-card-designer 1.5.1 → 1.7.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
@@ -39,7 +39,7 @@ yarn add @stratametriq/id-card-designer
39
39
 
40
40
  ## ⚡ Quick Start
41
41
 
42
- ### 🚀 [Try the Live Interactive Demo on StackBlitz](https://stackblitz.com/edit/vitejs-vite-nurmeilk?file=package.json,src%2FApp.tsx,src%2FApp.css,src%2Findex.css&terminal=dev)
42
+ ### 🚀 [Try the Live Interactive Demo on StackBlitz](https://stackblitz.com/edit/vitejs-vite-jtyvdj5g?file=package.json,src%2FApp.tsx,src%2FApp.css,src%2Findex.css&terminal=dev)
43
43
 
44
44
  You can launch a complete ID card design studio and batch print dashboard with just **two lines of code**. It comes with pre-built dummy data so you can test it immediately!
45
45
 
@@ -58,7 +58,8 @@ export default function App() {
58
58
  ## 🌟 Features
59
59
 
60
60
  - **🎨 Turnkey Dashboard:** A complete workspace with department tabs, vector stage, and batch printing ready out-of-the-box.
61
- - **📥 Batch CSV Import:** Let users upload spreadsheets to instantly generate hundreds of cards.
61
+ - **💾 Offline Workspace & Project Backup:** Automatic IndexedDB persistence means you never lose work on a page refresh. Export and share entire offline workspaces via `.stmq` JSON project files.
62
+ - **📥 Batch CSV/Excel & ZIP Import:** Let users upload spreadsheets (`.csv`, `.xlsx`) to instantly generate hundreds of cards. Upload `.zip` archives to automatically fuzzy-match and bind hundreds of high-res student photos instantly.
62
63
  - **🔳 QR & Barcodes:** Built-in dynamic 1D Barcode and 2D QR Code generation.
63
64
  - **🏷️ Variable Placeholders:** Easily map database fields to card text (e.g., `ID: {{admissionNo}}`).
64
65
  - **🖼️ High-Res PDF/PNG Export:** Batch export to A3/A4/A5/Letter size PDF sheets with hardware cut marks.
@@ -66,6 +67,32 @@ export default function App() {
66
67
 
67
68
  ---
68
69
 
70
+ ## 📖 Step-by-Step User Guide
71
+
72
+ ### 1. Importing Your Data
73
+ The dashboard allows you to import data in multiple ways:
74
+ - **Excel/CSV Upload:** Click the "Import Data" button and select an `.xlsx` or `.csv` file. The engine will automatically parse your columns into dynamic fields.
75
+ - **Bulk ZIP Upload with Photos:** If you have photos, create a `.zip` archive containing your Excel/CSV file alongside a folder of images. The importer will automatically fuzzy-match the image filenames (e.g., `aarav_sharma.jpg`) to the rows in your spreadsheet.
76
+
77
+ ### 2. Designing the Template
78
+ Click **"Launch Studio Canvas"** to enter the Drag-and-Drop editor:
79
+ - **Dynamic Text Binding:** Click "Add Text" and type `{{ columnName }}` to dynamically bind the text to your imported spreadsheet data.
80
+ - **Conditional Logic:** Use Javascript expressions in your text elements like `{{ department === 'HR' ? 'Red' : 'Blue' }}` for conditional rendering.
81
+ - **QR & Barcodes:** Drag in a barcode or QR code element and bind it to unique employee IDs or URLs.
82
+ - **Backgrounds:** Upload high-resolution backgrounds and layer your text and images on top.
83
+
84
+ ### 3. Saving & Managing Workspaces
85
+ - **Automatic Offline Saving:** As you work, the dashboard automatically saves your entire workspace (data, photos, and templates) to your browser's IndexedDB. You can safely refresh the page or close your browser without losing work.
86
+ - **Exporting a Project:** Click **"Backup Project"** to download a `.stmq` file. You can take this file on a USB drive to an offline/air-gapped computer and upload it to instantly restore your entire workspace.
87
+
88
+ ### 4. Batch Exporting to PDF
89
+ Once your template is perfect, click **"Batch Export A4 PDF"**:
90
+ - The engine will loop through every row in your spreadsheet.
91
+ - It calculates exact millimeter dimensions (CR80 format) and automatically aligns them into an A4 grid with hardware cutting marks.
92
+ - You can apply X/Y offset calibrations to fix mechanical drift in physical PVC card printers (like Zebra or Fargo).
93
+
94
+ ---
95
+
69
96
  ## ⚙️ Props
70
97
 
71
98
  The main `<IdCardManager />` component accepts the following props:
@@ -210,7 +237,7 @@ export default function MyPortal() {
210
237
  **A:** Traditional ID software usually requires heavy Windows installations and expensive per-seat licenses. This package allows you to bring that exact same enterprise-level design capability directly into your web app as a lightweight React component that works on Mac, Windows, and Linux.
211
238
 
212
239
  **Q: Does our sensitive data leave our servers?**
213
- **A:** **Absolutely not.** Employee and student data (PII) is a massive security concern. That is why this engine runs **100% Client-Side** in the browser. Zero network requests are made to external servers. The PDFs and images are generated purely on the user's local machine.
240
+ **A:** **Absolutely not.** Employee and student data (PII) is a massive security concern. That is why this engine runs **100% Client-Side** in the browser. Zero network requests are made to external servers. The PDFs and images are generated purely on the user's local machine, and all workspace data is saved offline via IndexedDB. Your users can even export `.stmq` project backups and move them via USB to air-gapped computers!
214
241
 
215
242
  **Q: Can I remove your branding? (White-labeling)**
216
243
  **A:** Yes! The enterprise license is 100% white-label, allowing you to seamlessly integrate the designer into your own SaaS product without your users ever knowing you are using our software.