The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
docs(plugin): spell out what blurBookingCodes does, and preview it
Maurice0fc04909a8b4
diff --git a/plugin-sdk/src/cli/dev.ts b/plugin-sdk/src/cli/dev.tsindex 2215869e8..e9c4ff74c 100644--- a/plugin-sdk/src/cli/dev.ts+++ b/plugin-sdk/src/cli/dev.ts@@ -634,6 +634,7 @@ iframe{width:100%;border:0;background:transparent;min-height:120px;display:block<label>Accent <select id="accent"><option value="default">default</option><option value="indigo">indigo</option><option value="teal">teal</option><option value="rose">rose</option></select></label><label><input type="checkbox" id="rm"> reduce motion</label><label><input type="checkbox" id="nt"> no transparency</label>+ <label><input type="checkbox" id="blur"> blur booking codes</label><label><input type="checkbox" id="trip" checked> trip context</label></header><div class="stage"><div class="wrap"><iframe id="f" src="/ui/index.html" sandbox="allow-scripts allow-forms" referrerpolicy="no-referrer" title="${id}"></iframe></div></div>@@ -658,7 +659,7 @@ function ctx(){tripId: val("trip").checked?${tripId}:null, userId:"1",user:{name:"Dev User",avatar:null,isAdmin:true},appearance:{scheme:accent,density:"comfortable",reducedMotion:val("rm").checked,noTransparency:val("nt").checked},- formats:{locale:"en",currency:"EUR",timeFormat:"24h",distanceUnit:"metric",temperatureUnit:"celsius",timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,blurBookingCodes:false},+ formats:{locale:"en",currency:"EUR",timeFormat:"24h",distanceUnit:"metric",temperatureUnit:"celsius",timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,blurBookingCodes:val("blur").checked},tokens:tokens};}function postCtx(){ if(f.contentWindow) f.contentWindow.postMessage(ctx(),"*"); }@@ -698,7 +699,7 @@ window.addEventListener("message", function(ev){}});var geoTick=null;-["theme","accent","rm","nt","trip"].forEach(function(id){ val(id).addEventListener("change",postCtx); });+["theme","accent","rm","nt","blur","trip"].forEach(function(id){ val(id).addEventListener("change",postCtx); });f.addEventListener("load", function(){ f.style.height="120px"; postCtx(); });var __v; setInterval(function(){ fetch("/__dev/version").then(function(r){return r.text();}).then(function(v){ if(__v&&v!==__v){ f.src=f.src; } __v=v; }).catch(function(){}); },1000);</script>diff --git a/wiki/Plugin-Development.md b/wiki/Plugin-Development.mdindex be0e9224d..3d3155bf5 100644--- a/wiki/Plugin-Development.md+++ b/wiki/Plugin-Development.md@@ -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 }` |