The backing for visibility was already in place from M2 (draft.visibility
stamped on create via defaultVisibilityFor, draftsStore.setVisibility
mints/clears unlistedToken and emits VisibilityChanged), so M11 is just
the UI step that puts it in front of the user.
- <VisibilityPicker> from @mana/shared-privacy sits in the meta-row of
DetailView, mirroring the library pattern. onChange calls
draftsStore.setVisibility — no new store method needed.
- Draft type + toDraft converter now surface `unlistedToken` so the UI
can render a share row when visibility === 'unlisted'. Token is
displayed verbatim + "Kopieren"-button because the public read-URL
for drafts ships with M10 (Publish-Hooks); a tooltip makes that
explicit so the user doesn't expect a working link yet.
With this, Writing is now consistent with the Library / Picture /
Calendar / Todo / Goals / Places / Recipes / Wardrobe pilot group.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>