full diff

pub.leaflet.blocks.questions

leaflet.pub +8 −18
From
bafyreicxdmfgawktjfp46yd7gnz4fbsrwsbccb5arx3u2fk7sf6vauqizi indexed 2026-11-20 20:06 UTC View this version
To
bafyreib2ayeyh4csa3jhdmiqhjdojqkjbqqfuzwodpivmaol2ab6k7i54a indexed 2026-11-25 04:22 UTC View this version

Compatibility

breaking 5 breaking changes, 21 non-breaking changes.

Breaking changes (5)
  • RemovedVertex RemovedVertex { vertex_id: "pub.leaflet.blocks.questions.tierIds" }
  • RemovedVertex RemovedVertex { vertex_id: "pub.leaflet.blocks.questions.tierIds:items" }
  • RemovedEdge RemovedEdge { src: "pub.leaflet.blocks.questions", tgt: "pub.leaflet.blocks.questions.tierIds", kind: "prop", name: Some("tierIds") }
  • RemovedEdge RemovedEdge { src: "pub.leaflet.blocks.questions.tierIds", tgt: "pub.leaflet.blocks.questions.tierIds:items", kind: "items", name: None }
  • KindChanged KindChanged { vertex_id: "pub.leaflet.blocks.questions.audience", old_kind: "string", new_kind: "union" }
Non-breaking changes (21)
  • AddedVertex AddedVertex { vertex_id: "pub.leaflet.audience#followers" }
  • AddedVertex AddedVertex { vertex_id: "pub.leaflet.audience#follows" }
  • AddedVertex AddedVertex { vertex_id: "pub.leaflet.audience#paid" }
  • AddedVertex AddedVertex { vertex_id: "pub.leaflet.audience#subscribers" }
  • AddedVertex AddedVertex { vertex_id: "pub.leaflet.audience#tiers" }
  • AddedVertex AddedVertex { vertex_id: "pub.leaflet.blocks.questions.audience:variant0" }
  • AddedVertex AddedVertex { vertex_id: "pub.leaflet.blocks.questions.audience:variant1" }
  • AddedVertex AddedVertex { vertex_id: "pub.leaflet.blocks.questions.audience:variant2" }
  • AddedVertex AddedVertex { vertex_id: "pub.leaflet.blocks.questions.audience:variant3" }
  • AddedVertex AddedVertex { vertex_id: "pub.leaflet.blocks.questions.audience:variant4" }
  • AddedEdge AddedEdge { src: "pub.leaflet.blocks.questions.audience", tgt: "pub.leaflet.blocks.questions.audience:variant0", kind: "variant", name: Some("pub.leaflet.audience#subscribers") }
  • AddedEdge AddedEdge { src: "pub.leaflet.blocks.questions.audience", tgt: "pub.leaflet.blocks.questions.audience:variant1", kind: "variant", name: Some("pub.leaflet.audience#paid") }
  • AddedEdge AddedEdge { src: "pub.leaflet.blocks.questions.audience", tgt: "pub.leaflet.blocks.questions.audience:variant2", kind: "variant", name: Some("pub.leaflet.audience#tiers") }
  • AddedEdge AddedEdge { src: "pub.leaflet.blocks.questions.audience", tgt: "pub.leaflet.blocks.questions.audience:variant3", kind: "variant", name: Some("pub.leaflet.audience#follows") }
  • AddedEdge AddedEdge { src: "pub.leaflet.blocks.questions.audience", tgt: "pub.leaflet.blocks.questions.audience:variant4", kind: "variant", name: Some("pub.leaflet.audience#followers") }
  • AddedEdge AddedEdge { src: "pub.leaflet.blocks.questions.audience:variant0", tgt: "pub.leaflet.audience#subscribers", kind: "ref", name: None }
  • AddedEdge AddedEdge { src: "pub.leaflet.blocks.questions.audience:variant1", tgt: "pub.leaflet.audience#paid", kind: "ref", name: None }
  • AddedEdge AddedEdge { src: "pub.leaflet.blocks.questions.audience:variant2", tgt: "pub.leaflet.audience#tiers", kind: "ref", name: None }
  • AddedEdge AddedEdge { src: "pub.leaflet.blocks.questions.audience:variant3", tgt: "pub.leaflet.audience#follows", kind: "ref", name: None }
  • AddedEdge AddedEdge { src: "pub.leaflet.blocks.questions.audience:variant4", tgt: "pub.leaflet.audience#followers", kind: "ref", name: None }
  • ConstraintRemoved ConstraintRemoved { vertex_id: "pub.leaflet.blocks.questions.audience", sort: "knownValues" }

Migration guidance

Removed

  • RemovedVertex { vertex_id: "pub.leaflet.blocks.questions.tierIds" }
  • RemovedVertex { vertex_id: "pub.leaflet.blocks.questions.tierIds:items" }

Added

  • AddedVertex { vertex_id: "pub.leaflet.audience#followers" }
  • AddedVertex { vertex_id: "pub.leaflet.audience#follows" }
  • AddedVertex { vertex_id: "pub.leaflet.audience#paid" }
  • AddedVertex { vertex_id: "pub.leaflet.audience#subscribers" }
  • AddedVertex { vertex_id: "pub.leaflet.audience#tiers" }
  • AddedVertex { vertex_id: "pub.leaflet.blocks.questions.audience:variant0" }
  • AddedVertex { vertex_id: "pub.leaflet.blocks.questions.audience:variant1" }
  • AddedVertex { vertex_id: "pub.leaflet.blocks.questions.audience:variant2" }
  • AddedVertex { vertex_id: "pub.leaflet.blocks.questions.audience:variant3" }
  • AddedVertex { vertex_id: "pub.leaflet.blocks.questions.audience:variant4" }

Constraint changes

  • ConstraintRemoved ConstraintRemoved { vertex_id: "pub.leaflet.blocks.questions.audience", sort: "knownValues" }

Notes

  • Breaking: RemovedEdge { src: "pub.leaflet.blocks.questions", tgt: "pub.leaflet.blocks.questions.tierIds", kind: "prop", name: Some("tierIds") }
  • Breaking: RemovedEdge { src: "pub.leaflet.blocks.questions.tierIds", tgt: "pub.leaflet.blocks.questions.tierIds:items", kind: "items", name: None }
  • Breaking: KindChanged { vertex_id: "pub.leaflet.blocks.questions.audience", old_kind: "string", new_kind: "union" }
  • Non-breaking: AddedEdge { src: "pub.leaflet.blocks.questions.audience", tgt: "pub.leaflet.blocks.questions.audience:variant0", kind: "variant", name: Some("pub.leaflet.audience#subscribers") }
  • Non-breaking: AddedEdge { src: "pub.leaflet.blocks.questions.audience", tgt: "pub.leaflet.blocks.questions.audience:variant1", kind: "variant", name: Some("pub.leaflet.audience#paid") }
  • Non-breaking: AddedEdge { src: "pub.leaflet.blocks.questions.audience", tgt: "pub.leaflet.blocks.questions.audience:variant2", kind: "variant", name: Some("pub.leaflet.audience#tiers") }
  • Non-breaking: AddedEdge { src: "pub.leaflet.blocks.questions.audience", tgt: "pub.leaflet.blocks.questions.audience:variant3", kind: "variant", name: Some("pub.leaflet.audience#follows") }
  • Non-breaking: AddedEdge { src: "pub.leaflet.blocks.questions.audience", tgt: "pub.leaflet.blocks.questions.audience:variant4", kind: "variant", name: Some("pub.leaflet.audience#followers") }
  • Non-breaking: AddedEdge { src: "pub.leaflet.blocks.questions.audience:variant0", tgt: "pub.leaflet.audience#subscribers", kind: "ref", name: None }
  • Non-breaking: AddedEdge { src: "pub.leaflet.blocks.questions.audience:variant1", tgt: "pub.leaflet.audience#paid", kind: "ref", name: None }
  • Non-breaking: AddedEdge { src: "pub.leaflet.blocks.questions.audience:variant2", tgt: "pub.leaflet.audience#tiers", kind: "ref", name: None }
  • Non-breaking: AddedEdge { src: "pub.leaflet.blocks.questions.audience:variant3", tgt: "pub.leaflet.audience#follows", kind: "ref", name: None }
  • Non-breaking: AddedEdge { src: "pub.leaflet.blocks.questions.audience:variant4", tgt: "pub.leaflet.audience#followers", kind: "ref", name: None }

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
55 "description": "Lets readers ask the author public questions (pub.leaflet.interactions.question) and shows the ones the author has answered (pub.leaflet.interactions.answer) or accepted (pub.leaflet.interactions.questionVisibility). Questions are resolved at render time rather than stored on the block.",
66 "properties": {
77 "audience": {
8 "description": "Who may ask: anyone, only subscribers to the document's publication, only its paid members, only members of the tiers in tierIds, only accounts the author follows, or only accounts following the author. Defaults to anyone. Checked when a question is asked.",
9 "knownValues": [
10 "anyone",
11 "subscribers",
12 "paid",
13 "tiers",
14 "follows",
15 "followers"
8 "description": "Who may ask. Absent means anyone. Checked when a question is asked.",
9 "refs": [
10 "pub.leaflet.audience#subscribers",
11 "pub.leaflet.audience#paid",
12 "pub.leaflet.audience#tiers",
13 "pub.leaflet.audience#follows",
14 "pub.leaflet.audience#followers"
1615 ],
17 "type": "string"
16 "type": "union"
1817 },
1918 "buttonText": {
2019 "description": "Label for the button readers use to submit a question.",
2120 "maxGraphemes": 50,
2221 "maxLength": 500,
2322 "type": "string"
2423 },
2524 "closesAt": {
2625 "description": "When the block stops taking questions. Absent means it never closes. Checked when a question is submitted.",
2726 "format": "datetime",
2827 "type": "string"
2928 },
3029 "key": {
3130 "description": "Tells this block apart from the document's other blocks of its type; interaction records name it in their `block` field. Records without a matching key belong to the first block of the type.",
3231 "maxLength": 100,
3332 "type": "string"
3433 },
3534 "showPending": {
3635 "description": "Show readers questions the author hasn't accepted, answered or hidden yet. Defaults to false.",
3736 "type": "boolean"
38 },
39 "tierIds": {
40 "description": "Paid membership tier ids whose active members may ask when audience is tiers.",
41 "items": {
42 "maxLength": 100,
43 "type": "string"
44 },
45 "maxLength": 50,
46 "type": "array"
4737 }
4838 },
4939 "required": [],
5040 "type": "object"
5141 }
5242 },
5343 "id": "pub.leaflet.blocks.questions",
5444 "lexicon": 1
5545}

Compare other versions