{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "z-summary-markdown",
  "title": "Z Summary Markdown",
  "dependencies": [
    "streamdown@2.5.0"
  ],
  "devDependencies": [],
  "registryDependencies": [
    "https://ui.orchid.ai/r/orchid-foundation.json",
    "https://ui.orchid.ai/r/orchid-theme.json"
  ],
  "files": [
    {
      "path": "registry/ui/orchid/spectrum/molecules/z-summary-markdown/z-summary-markdown.tsx",
      "content": "\"use client\";\nimport { cn } from \"../../../lib/ui-utils\";\nimport { type ReactNode } from 'react';\nimport { Streamdown } from 'streamdown';\ntype LinkRendererProps = {\n    href?: string;\n    children?: ReactNode;\n};\ntype Props = {\n    text: string;\n    boldEnabled?: boolean;\n    strongClassName?: string;\n    className?: string;\n    linkRenderer?: (props: LinkRendererProps) => ReactNode;\n};\nexport default function ZSummaryMarkdown({ text, boldEnabled = false, strongClassName = 'font-semibold', className, linkRenderer, }: Props) {\n    const allDisabledComponents = {\n        p: Passthrough,\n        h1: Passthrough,\n        h2: Passthrough,\n        h3: Passthrough,\n        h4: Passthrough,\n        h5: Passthrough,\n        h6: Passthrough,\n        strong: Passthrough,\n        em: Passthrough,\n        del: Passthrough,\n        a: linkRenderer ?? Passthrough,\n        code: Passthrough,\n        pre: Passthrough,\n        blockquote: Passthrough,\n        ul: Passthrough,\n        ol: Passthrough,\n        li: Passthrough,\n        br: Passthrough,\n        hr: Hidden,\n        img: Hidden,\n        table: Passthrough,\n        thead: Passthrough,\n        tbody: Passthrough,\n        tr: Passthrough,\n        th: Passthrough,\n        td: Passthrough,\n    };\n    const streamdownComponents = boldEnabled\n        ? {\n            ...allDisabledComponents,\n            strong: ({ children }: {\n                children?: ReactNode;\n            }) => (<strong className={strongClassName}>{children}</strong>),\n        }\n        : allDisabledComponents;\n    return (<Streamdown key={`${boldEnabled ? 'bold' : 'plain'}-${strongClassName}`} className={cn('contents space-y-0', className)} skipHtml components={streamdownComponents}>\n      {text}\n    </Streamdown>);\n}\nfunction Passthrough({ children }: {\n    children?: ReactNode;\n}) {\n    return <>{children}</>;\n}\nfunction Hidden() {\n    return null;\n}\n",
      "type": "registry:ui",
      "target": "@ui/orchid/spectrum/molecules/z-summary-markdown/z-summary-markdown.tsx"
    }
  ],
  "css": {
    "@import \"streamdown/styles.css\"": {},
    "@source inline(\"--- ---- --sd-animation --sd-delay --sd-duration --sd-easing --sdm-bg --sdm-c --sdm-fg --sdm-tbg --shiki-dark --shiki-dark-bg --streamdown-caret -mt-10 [&>*:first-child]:mt-0 [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)] [&>*:last-child]:after:inline [&>*:last-child]:mb-0 [&>p]:inline [&_svg]:h-auto [&_svg]:w-auto [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10 [counter-increment:line_0] [counter-reset:line] [li_&]:pl-6 a abap about absolute actionscript-3 ada add adoc an and angular-html angular-ts animate animate-spin animated annotation anonymous ao apl appearance-none applescript application ara area aria-label aria-modal as asm astro auto available awk b backdrop-blur-sm background-color bal base bat be beancount before:[counter-increment:line] before:content-[counter(line)] before:font-mono before:inline-block before:mr-4 before:select-none before:text-[13px] before:text-muted-foreground/50 before:text-right before:w-6 berry bg-[var(--sdm-tbg)] bg-background bg-background/50 bg-background/80 bg-background/90 bg-background/95 bg-black/10 bg-muted bg-muted/80 bg-primary bg-red-100 bg-red-50 bg-sidebar bg-sidebar/80 bib bicep blob block blockquote boolean border border-b-2 border-border border-collapse border-current border-l-4 border-muted-foreground/30 border-sidebar bottom-2 bottom-4 br break-all bs bsl button button! c cache cairo canvas cdc center char chart children children:typeof cjk clar className client clj closure-templates cls clsx cmake cmd co cob code code-block code-block-actions code-block-body code-block-copy-button code-block-download-button code-block-header coffee col color common-lisp components! conf config content content! contents context copy cpp cql cr create crossOrigin cs cshtml css csv cue current currentColor cursor-pointer d dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))] dark:text-[var(--shiki-dark,var(--sdm-c,inherit))] dart data data-block data-footnote-backref data-footnotes data-incomplete data-language data-sd-animate data-streamdown dax default desktop details diagram dialog diff dir dir! disabled:cursor-not-allowed disabled:opacity-50 displayName div divide-border divide-y dm dn do dockerfile download dream-maker duration-150 duration-200 ease ease-out edge ee el element elm else emacs-lisp embed enable env erb erl es et evenodd ex export external f f03 f08 f18 f77 f90 f95 fadeIn feature file finally fish fixed flex flex-1 flex-col fnl fo font-medium font-mono font-semibold for fortran-fixed-form fortran-free-form found from fs fsl ft ftl fullscreen function gap-1 gap-2 gap-4 gd gdshader gi gif git-commit git-rebase gitcommit github-dark github-light gitrebase gleam glimmer-js glimmer-ts glsl go gql grab grabbing graphql groovy group group-hover:block group-hover:opacity-100 gs gts h-4 h-8 h-[46px] h-full h1 h2 h3 h4 h5 h6 hProperties hack haml harden hast-util-to-jsx-runtime hbs hcl he heading-1 heading-2 heading-3 heading-4 heading-5 heading-6 height height! hidden hjson hlsl horizontal-rule hover:bg-background hover:bg-muted hover:bg-muted/40 hover:bg-primary/90 hover:text-foreground hr href hs html html-derivative html-url-attributes http hx hxml hy image image-fallback image-wrapper image/png imba img import in index! inherit ini inline-block inline-code input inset-0 instanceof io isAnimating isIncomplete! isPrimary italic items-center jade java jinja jison jl jo jpeg jpg js json json5 jsonc jsonl jsonnet jssm jsx jt justify-center justify-end ke key keyCache keydown kql kt kts l language lastRenderCharCount lean left-2 left-4 length length! less let li line lineNumbers link link-safety-modal linkSafety liquid lisp list-decimal list-disc list-inside list-item lit literalTagContent ll ln load log logo lowercase lr ls ltr lua luau m mak markdown marked marko math max-h-32 max-w-full max-w-md maxSize mb-2 md mdc mdx mermaid mermaid-block mermaid-block-actions meta metastring min-h-28 min-h-[200px] min-w-[120px] ml ml-1 mm mmd mode mojo mousedown move ms mt-1 mt-2 mt-6 mx-4 my-4 my-6 n name nar narrat new nf nim nix none noreferrer normalizeHtmlIndentation not nt nu number o object objective-c objective-cpp of ol onerror onload opacity-0 ordered-list origin-center ot out outerHTML overflow overflow-auto overflow-hidden overflow-x-auto overflow-y-auto p p-1 p-1.5 p-2 p-3 p-4 p-6 p6 pan panZoom panZoom! param pas path pcss php pl pl-4 pls plt plugin plugins png po pointer-events-auto pointer-events-none pointercancel pointermove pointerup polar pot potx pp pq pre prefix presentation prevContentLength prisma properties props proto ps ps1 pt-0 pug purs px-1.5 px-3 px-4 py py-0.5 py-1 py-2 ql qml qmldir qo qss r raku raw rb re react react-dom react/jsx-runtime reg regex regexp rehype-harden rehype-raw rehype-sanitize rehypePlugin rehypePlugins! rel relative remark-gfm remark-parse remark-rehype remarkPlugin remarkPlugins! remarkPluginsAfter remarkPluginsBefore remend render result return right-0 right-2 right-4 rkt rootStyle round rounded rounded-full rounded-lg rounded-md rounded-xl rq rs rst rt rtl s sas sass scala scm scss sdbl section sep service sh shader shadow-lg shadow-sm shikiTheme shouldNormalizeHtmlIndentation! shrink-0 size-4 size-full so sol source soy space space-x-2 space-y-4 span spl sql src ss ssh-config st startLine static sticky streamdown:incomplete-link streaming string strong styl sub subscript summary sup superscript supports-[backdrop-filter]:backdrop-blur supports-[backdrop-filter]:backdrop-blur-sm supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:bg-sidebar/70 sv svelte svg swift system-verilog table table-body table-cell table-fullscreen table-header table-header-cell table-row table-wrapper tailwind-merge talon tasl tbody tcl td tel templ tex text text-2xl text-3xl text-[var(--sdm-c,inherit)] text-base text-left text-lg text-muted-foreground text-primary text-primary-foreground text-red-600 text-red-700 text-red-800 text-sm text-xl text-xs text/csv text/html text/markdown text/plain tf tfvars th the thead to toml top-2 top-4 top-full tr track transform transition-all transition-colors transition-transform transparent tres true try ts ts-tags tsp tsv tsx ttl twig txt typ type type! typeof ue ul un undefined underline unified unist-util-visit unist-util-visit-parents unordered-list use userSelect v vala var vb vhdl vim vine visit vo vue vue-html vue-vine vy w w-4 w-8 w-full wait wasm wbr we webp wgsl wheel whitespace-normal whitespace-nowrap width width! wiki window window! wit wl word wrap-anywhere wy xml xsl yaml yml z-10 z-20 z-50 zig zo zoom zs zsh\")": {}
  },
  "type": "registry:ui"
}