mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
docs(plugin): spell out what blurBookingCodes does, and preview it
The context table listed the new field without saying what a plugin is meant to do with it. It is a display hint — booking codes still arrive in full over trek:invoke — and reading it as redaction is the one mistake worth preventing. The dev preview hardcoded it to false, so the blurred path was the only host flag an author could not try out; it gets a toggle like reduce motion and the rest.
This commit is contained in:
@@ -533,7 +533,7 @@ declared), no popups.
|
||||
| `locale` | e.g. `'en'` |
|
||||
| `hostOrigin` | the app origin |
|
||||
| `user` | `{ name, avatar, isAdmin } \| null` — **never** an email; role only as a boolean |
|
||||
| `formats` | `{ locale, currency, timeFormat, distanceUnit, temperatureUnit, timezone, blurBookingCodes }` |
|
||||
| `formats` | `{ locale, currency, timeFormat, distanceUnit, temperatureUnit, timezone, blurBookingCodes }` — `blurBookingCodes` mirrors the user's "blur booking codes" preference so your UI can hide confirmation numbers until they're revealed. It is a **display hint, not redaction**: the codes still reach your plugin in full over `trek:invoke`. |
|
||||
| `tokens` | TREK's resolved CSS design tokens for the current theme (see below) |
|
||||
| `appearance` | `{ scheme, density: 'comfortable'\|'compact', reducedMotion, noTransparency }` |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user