managarten/packages/shared-privacy/src
Till JS b7a54ccd10 feat(unlisted-sharing): QR code + per-link expiry picker (M8.5)
SharedLinkControls now renders a lazy QR code (qrcode npm) and a
datetime-local "Läuft ab" picker. Both stay in sync with the active
URL — regenerating the link rebuilds the QR; clearing the expiry
re-publishes with no `expiresAt`.

Wired across all three unlisted collections:
- Calendar: LocalEvent.unlistedExpiresAt + setUnlistedExpiry +
  preserve-on-refresh + clear-on-flip; both Workbench DetailView and
  EventDetailModal pass expiresAt+onExpiryChange to SharedLinkControls.
- Library: same pattern in libraryEntriesStore + DetailView.
- Places: same pattern in placesStore + DetailView.

setVisibility clears any prior expiry so a flip-away-flip-back gets
a fresh "never expires" link. refreshUnlistedSnapshot and
regenerateUnlistedToken preserve the existing expiry so a content
edit or token rotation never silently extends a link's lifetime.

The qrcode dep ships as a regular `dependencies` entry on
@mana/shared-privacy so any consuming app picks it up via the
workspace.

Note: an unrelated svelte-check error in writing/components/DraftCard
("draft" not assignable to DragType) exists from a parallel session
and is not introduced by this commit.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-25 12:29:53 +02:00
..
defaults.test.ts fix(shared-privacy): default all new records to 'space', not 'private' 2026-04-24 14:46:48 +02:00
defaults.ts fix(shared-privacy): default all new records to 'space', not 'private' 2026-04-24 14:46:48 +02:00
index.ts feat(shared-privacy): M8.2 — unlisted-client + SharedLinkControls 2026-04-24 17:18:56 +02:00
predicates.test.ts feat(shared-privacy): M1 — visibility foundation package 2026-04-24 01:59:11 +02:00
predicates.ts feat(shared-privacy): M1 — visibility foundation package 2026-04-24 01:59:11 +02:00
schema.ts feat(shared-privacy): M1 — visibility foundation package 2026-04-24 01:59:11 +02:00
SharedLinkControls.svelte feat(unlisted-sharing): QR code + per-link expiry picker (M8.5) 2026-04-25 12:29:53 +02:00
tokens.test.ts feat(shared-privacy): M1 — visibility foundation package 2026-04-24 01:59:11 +02:00
tokens.ts feat(shared-privacy): M1 — visibility foundation package 2026-04-24 01:59:11 +02:00
types.ts feat(shared-privacy): M1 — visibility foundation package 2026-04-24 01:59:11 +02:00
unlisted-client.test.ts feat(shared-privacy): M8.2 — unlisted-client + SharedLinkControls 2026-04-24 17:18:56 +02:00
unlisted-client.ts feat(shared-privacy): M8.2 — unlisted-client + SharedLinkControls 2026-04-24 17:18:56 +02:00
VisibilityPicker.svelte feat(shared-privacy): M1 — visibility foundation package 2026-04-24 01:59:11 +02:00