ATProto Browser

ATProto Browser

Experimental browser for the Atmosphere

Post

Day 4 — specify a `defaultValue` on form inputs, and it will be used when the form is reset - docs svelte.dev/docs/svelte/... - demo svelte.dev/playground/b...

Dec 4, 2024, 4:56 PM

Record data

{
  "uri": "at://did:plc:b6gbde64ngpelprsvnphc2l2/app.bsky.feed.post/3lcimpbzfv22y",
  "cid": "bafyreihv6hwgm7adajkh7mls7jghxjvqjnitqq5vrezqiimbjetvcxjvvy",
  "value": {
    "text": "Day 4 — specify a `defaultValue` on form inputs, and it will be used when the form is reset\n\n- docs svelte.dev/docs/svelte/...\n- demo svelte.dev/playground/b...",
    "$type": "app.bsky.feed.post",
    "embed": {
      "$type": "app.bsky.embed.images",
      "images": [
        {
          "alt": "a screenshot of svelte.dev/playground showing the new defaultValue support",
          "image": {
            "$type": "blob",
            "ref": {
              "$link": "bafkreihbm3n6bahu4osdpifrqisvu6teljxk2gb6sff7d2lpv72fr7iunu"
            },
            "mimeType": "image/jpeg",
            "size": 513518
          },
          "aspectRatio": {
            "width": 1999,
            "height": 1072
          }
        }
      ]
    },
    "langs": [
      "en"
    ],
    "reply": {
      "root": {
        "cid": "bafyreieay7byr4wjm7fybgxcjbsa7b6v36dc3jmrv3gwtoxlffk3lh33ve",
        "uri": "at://did:plc:b6gbde64ngpelprsvnphc2l2/app.bsky.feed.post/3lcavobxn7c2k"
      },
      "parent": {
        "cid": "bafyreicab3tmwfd66hn745iqbnq4lpktf4rrlh2tei4zlfyp4epimk6aiy",
        "uri": "at://did:plc:b6gbde64ngpelprsvnphc2l2/app.bsky.feed.post/3lcg23deptc25"
      }
    },
    "facets": [
      {
        "index": {
          "byteEnd": 128,
          "byteStart": 102
        },
        "features": [
          {
            "uri": "https://svelte.dev/docs/svelte/bind#input-bind:value",
            "$type": "app.bsky.richtext.facet#link"
          }
        ]
      },
      {
        "index": {
          "byteEnd": 162,
          "byteStart": 136
        },
        "features": [
          {
            "uri": "https://svelte.dev/playground/b30cfac16c3c4a3ab3d76ad20a5925cf?version=5.6.1",
            "$type": "app.bsky.richtext.facet#link"
          }
        ]
      }
    ],
    "createdAt": "2024-12-04T16:56:42.073Z"
  }
}