@happyvertical/smrt-svelte 0.43.5 → 0.43.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.
Files changed (2) hide show
  1. package/README.md +14 -1
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -348,7 +348,20 @@ clears it.
348
348
 
349
349
  **UI**: `Badge`, `Button`, `Card`, `Pagination`
350
350
 
351
- **Display**: `ConfidenceBadge`, `CurrencyDisplay`, `DateDisplay`, `Icon`, `StatusBadge`
351
+ **Display** (from `@happyvertical/smrt-ui`): `ConfidenceBadge`, `CurrencyDisplay`, `DateDisplay`, `Icon`, `StatusBadge`
352
+
353
+ `CurrencyDisplay` accepts Commerce-compatible string currency fields. It trims
354
+ and uppercases ISO 4217 codes before formatting, defaults to CAD, and renders an
355
+ accessible inline error for malformed or unsupported codes instead of throwing
356
+ and interrupting the surrounding collection render.
357
+ The historical `unit="cents"` option means ISO minor units, so currencies with
358
+ zero or three minor digits are scaled correctly. Minor-unit amounts must be
359
+ finite safe integers; fractional or unsafe numeric values render an accessible
360
+ inline error. `unit="dollars"` means major units.
361
+ ISO codes whose minor unit is `N.A.` require `unit="dollars"`; minor-unit mode
362
+ renders an accessible inline error for those codes, while major-unit mode uses
363
+ a stable two-digit display policy. CAD and USD retain their symbol display;
364
+ all other currencies render their ISO code for deterministic SSR hydration.
352
365
 
353
366
  **Feedback**: `ConfirmDialog`, `LoadingOverlay`, `Modal`, `ProgressBar`
354
367
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-svelte",
3
- "version": "0.43.5",
3
+ "version": "0.43.6",
4
4
  "description": "Svelte 5 components for SMRT user management - auth, users, tenants, roles, permissions, groups",
5
5
  "type": "module",
6
6
  "smrtRawPrimitives": "strict",
@@ -123,10 +123,10 @@
123
123
  "@tanstack/db": "^0.6.14",
124
124
  "@tanstack/svelte-db": "^0.1.91",
125
125
  "esm-env": "^1.2.2",
126
- "@happyvertical/smrt-languages": "0.43.5",
127
- "@happyvertical/smrt-ui": "0.43.5",
128
- "@happyvertical/smrt-types": "0.43.5",
129
- "@happyvertical/smrt-web": "0.43.5"
126
+ "@happyvertical/smrt-languages": "0.43.6",
127
+ "@happyvertical/smrt-types": "0.43.6",
128
+ "@happyvertical/smrt-ui": "0.43.6",
129
+ "@happyvertical/smrt-web": "0.43.6"
130
130
  },
131
131
  "peerDependencies": {
132
132
  "@huggingface/transformers": ">=3.8.1",
@@ -166,8 +166,8 @@
166
166
  "typescript": "5.9.3",
167
167
  "vite": "8.1.4",
168
168
  "vitest": "4.1.10",
169
- "@happyvertical/smrt-core": "0.43.5",
170
- "@happyvertical/smrt-scanner": "0.43.5"
169
+ "@happyvertical/smrt-core": "0.43.6",
170
+ "@happyvertical/smrt-scanner": "0.43.6"
171
171
  },
172
172
  "scripts": {
173
173
  "build": "svelte-package -i src --tsconfig tsconfig.svelte.json",