Skip to content

Commit 0164be2

Browse files
committed
chore: changeset and regenerated sharing reference for the one anonymous-intake rule
Claude-Session: https://claude.ai/code/session_018zT8d8NpiQ1ExhuNd5TxY6 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5ccab09 commit 0164be2

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@objectstack/metadata-core': patch
3+
'@objectstack/metadata-protocol': patch
4+
'@objectstack/rest': patch
5+
---
6+
7+
Public forms: every declared means of withdrawing a form from anonymous intake is now honoured by every anonymous form door. Which forms a `view` opens to anonymous intake is now decided by one rule, `anonymousFormIntakeCandidates` (new in `@objectstack/metadata-core`, alongside `anonymousFormIntakeSlugs`, `anonymousFormIntakeSlug` and `publicFormSlug`), read by both the anonymous form endpoints in `@objectstack/rest` and the organization-scoped `view` write check in `@objectstack/metadata-protocol`, so the two can no longer disagree. A form is served anonymously only when its `sharing` config declares public sharing as `SharingConfigSchema` defines it; see the public forms guide for the required keys.

‎content/docs/references/ui/sharing.mdx‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ asymmetry survives as the reason this file reads the way it does:
1717

1818
- `SharingConfigSchema` has a **live authoring door**. `FormViewSchema.sharing`
1919
carries it (`view.zod.ts`), `view` is a metadata-type root, and the runtime
20-
really reads it: `rest-server.ts` mounts the anonymous form endpoints only
21-
when `sharing.allowAnonymous === true` and a `sharing.publicLink` slug
22-
matches. Both example apps author it (`app-showcase` `inquiry.view.ts`,
20+
really reads it: `rest-server.ts` serves the anonymous form endpoints only
21+
when `sharing.enabled === true`, `sharing.allowAnonymous === true` and a
22+
`sharing.publicLink` slug matches (`anonymousFormIntakeCandidates` in
23+
`@objectstack/metadata-core`). Both example apps author it (`app-showcase` `inquiry.view.ts`,
2324
`app-crm` `lead.view.ts`). It is `strictObject` as of #4001 批 14.
2425
- `EmbedConfigSchema` was **REMOVED** at #5015 (ADR-0049 enforce-or-remove) —
2526
see the block below where it stood.

0 commit comments

Comments
 (0)