@stamprally/ui 0.19.0 → 0.20.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 +23 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @stamprally/ui v0.
|
|
1
|
+
# @stamprally/ui v0.20.0
|
|
2
2
|
|
|
3
3
|
Participant-facing React components for `@stamprally/core`.
|
|
4
4
|
|
|
@@ -39,3 +39,25 @@ Standard cards render localized descriptions and hints, spot imagery and externa
|
|
|
39
39
|
reference badges, plus reward descriptions, stock, expiry, and status. Spot cards
|
|
40
40
|
with incomplete prerequisites show a lock and disable verification controls.
|
|
41
41
|
The status badge values are `UNCLAIMED`, `CLAIMED`, `LOCKED`, and `VERIFYING`.
|
|
42
|
+
|
|
43
|
+
## Synchronization status
|
|
44
|
+
|
|
45
|
+
`RallyViewer` displays `SyncStatusBanner` by default. Set `showSyncStatus={false}`
|
|
46
|
+
to hide it, or use `renderSyncStatus` for a custom renderer:
|
|
47
|
+
|
|
48
|
+
```tsx
|
|
49
|
+
<RallyViewer
|
|
50
|
+
config={publicConfig}
|
|
51
|
+
client={client}
|
|
52
|
+
showSyncStatus
|
|
53
|
+
renderSyncStatus={(status) => (
|
|
54
|
+
<aside data-sync-state={status.syncState}>
|
|
55
|
+
{status.pendingCount} pending; {status.rejectedHistory.length} rejected
|
|
56
|
+
</aside>
|
|
57
|
+
)}
|
|
58
|
+
/>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
`SyncStatusBanner` accepts the same `SyncStateContext` directly, so applications
|
|
62
|
+
can place it outside the viewer. The context exposes pending work, rejected
|
|
63
|
+
history, persistence capability, and whether synchronization is active.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stamprally/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Accessible participant UI components for stamp rallies.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"./styles.css": "./dist/index.css"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@stamprally/core": "0.
|
|
36
|
-
"@stamprally/react": "0.
|
|
35
|
+
"@stamprally/core": "0.20.0",
|
|
36
|
+
"@stamprally/react": "0.20.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": "^18.0.0 || ^19.0.0",
|