{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Tags, reading figures and an author card with share and save over a wide cover; the author, figures, tags and actions beside the cover; or the facts and related reading beside it.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->\n<!--\n  A post header with the author, the reading figures, the tags and the actions. Axes: layout (center: tags,\n  figures and an author card with share and save over a wide cover; split: beside the cover; outline: facts and\n  related reading beside the cover), mediaSide, author (line, card, bio), cover (wide, square), actions (pair,\n  wide, icons), tone.\n-->\n<script lang=\"ts\" module>\n  import type { Snippet } from \"svelte\";\n  import type { PostExtras, PostSplitLabels } from \"./post-split.types\";\n  import type { Post } from \"./post-card.types\";\n  import type { NavLink } from \"./nav-bar.types\";\n\n  export type PostSplitProps = {\n    id: string;\n    post: Post;\n    labels: PostSplitLabels;\n    extras: PostExtras;\n    level?: 1 | 2;\n    layout?: \"center\" | \"split\" | \"outline\";\n    mediaSide?: \"end\" | \"start\";\n    author?: \"line\" | \"card\" | \"bio\";\n    cover?: \"wide\" | \"square\";\n    actions?: \"pair\" | \"wide\" | \"icons\";\n    tone?: \"default\" | \"muted\";\n    landmarkLabel?: string;\n  };\n</script>\n\n<script lang=\"ts\">\n  import MediaFrame from \"../components/media-frame.svelte\";\n  import PostActions from \"../components/post-actions.svelte\";\n  import PostAuthor from \"../components/post-author.svelte\";\n  import PostOutline from \"../components/post-outline.svelte\";\n  import PostStats from \"../components/post-stats.svelte\";\n  import PostTags from \"../components/post-tags.svelte\";\n  import SectionFrame from \"../components/section-frame.svelte\";\n\n  let {\n    id,\n    post,\n    labels,\n    extras,\n    level = 1,\n    layout = \"split\",\n    mediaSide = \"end\",\n    author = \"line\",\n    cover = \"wide\",\n    actions = \"pair\",\n    tone = \"default\",\n    landmarkLabel,\n  }: PostSplitProps = $props();\n</script>\n\n{#if ((layout as string) === \"center\")}\n  <SectionFrame\n    id={id}\n    title={post.title}\n    lead={post.excerpt}\n    heading={{ badge: post.category, level }}\n    tone={tone}\n    media={{ show: true }}\n    align=\"center\"\n    landmarkLabel={landmarkLabel}\n  >\n    {#if ((extras.tags?.length ?? 0) > 0)}\n      <PostTags tags={extras.tags} align=\"center\" />\n    {/if}\n    <PostStats post={post} extras={extras} labels={labels} align=\"center\" />\n    <PostAuthor\n      post={post}\n      extras={extras}\n      labels={labels}\n      mode=\"card\"\n      share={true}\n      class=\"mx-auto w-full max-w-md\"\n    />\n    {#snippet aside()}\n      <MediaFrame\n        alt={post.title}\n        src={post.image}\n        ratio={\n          (layout as string) === \"center\" ? \"21/9\"\n          : (cover as string) === \"square\" ? \"1/1\"\n          : \"4/3\"\n        }\n      />\n    {/snippet}\n  </SectionFrame>\n{:else}\n  <SectionFrame\n    id={id}\n    title={post.title}\n    lead={post.excerpt}\n    heading={{ badge: post.category, level }}\n    tone={tone}\n    media={{ show: true, side: mediaSide }}\n    layout=\"split\"\n    landmarkLabel={landmarkLabel}\n  >\n    {#if ((layout as string) === \"outline\")}\n      {#if ((extras.outline?.length ?? 0) > 0)}\n        <PostOutline post={post} extras={extras} labels={labels} />\n      {/if}\n    {:else}\n      <PostAuthor post={post} extras={extras} labels={labels} mode={author} />\n      {#if ((author as string) !== \"line\")}\n        <PostStats post={post} extras={extras} labels={labels} />\n      {/if}\n      {#if ((extras.tags?.length ?? 0) > 0)}\n        <PostTags tags={extras.tags} />\n      {/if}\n    {/if}\n    <PostActions labels={labels} mode={actions} />\n    {#snippet aside()}\n      <MediaFrame\n        alt={post.title}\n        src={post.image}\n        ratio={\n          (layout as string) === \"center\" ? \"21/9\"\n          : (cover as string) === \"square\" ? \"1/1\"\n          : \"4/3\"\n        }\n      />\n    {/snippet}\n  </SectionFrame>\n{/if}\n",
      "path": "blocks/post-split.svelte",
      "target": "blocks/post-split.svelte"
    },
    {
      "content": "// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n\nimport type { NavLink } from \"./nav-bar.types\";\n\nexport type PostExtras = {\n  role: string;\n  bio: string;\n  views: string;\n  likes: string;\n  tags: NavLink[];\n  outline: NavLink[];\n};\n\nexport type PostSplitLabels = {\n  minutes: string;\n  views: string;\n  likes: string;\n  share: string;\n  save: string;\n  read: string;\n  related: string;\n};\n",
      "path": "blocks/post-split.types.ts",
      "target": "blocks/post-split.types.ts"
    }
  ],
  "meta": {
    "category": "content",
    "group": "blog",
    "kind": "block",
    "tags": [
      "svelte",
      "block"
    ]
  },
  "name": "post-split",
  "registryDependencies": [
    "media-frame",
    "nav-bar",
    "post-actions",
    "post-author",
    "post-card",
    "post-outline",
    "post-stats",
    "post-tags",
    "section-frame",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Post Split",
  "type": "registry:block"
}
