From 4fb014398bbac9cd99004f916e9b9354524697f3 Mon Sep 17 00:00:00 2001 From: Wes Reid Date: Fri, 7 Aug 2026 14:25:37 -0700 Subject: [PATCH 01/22] feat: add Signature, Image, and Video docs components Adds three new MDX block components for packages/core/docs/content reference pages: Signature (a collapsible function/hook/action signature with parameter and return-type breakdown), and Image/Video (full width or aligned left/right with paired markdown text, alt text, and a caption). Video additionally supports reduced-motion-aware autoplay and looping. Documented all three on /docs/docs-components with live examples. --- .../core/docs/content/docs-components.mdx | 215 ++++++++++++++++ .../app/components/blocks/image.config.ts | 56 +++++ packages/docs/app/components/blocks/image.tsx | 37 +++ .../app/components/blocks/media-layout.tsx | 74 ++++++ .../app/components/blocks/media-shared.ts | 30 +++ .../app/components/blocks/signature.config.ts | 77 ++++++ .../docs/app/components/blocks/signature.tsx | 141 +++++++++++ .../app/components/blocks/video.config.ts | 71 ++++++ packages/docs/app/components/blocks/video.tsx | 77 ++++++ packages/docs/app/components/docBlocks.tsx | 6 + packages/docs/app/global.css | 229 ++++++++++++++++++ packages/docs/lib/doc-block-segments.ts | 9 + 12 files changed, 1022 insertions(+) create mode 100644 packages/docs/app/components/blocks/image.config.ts create mode 100644 packages/docs/app/components/blocks/image.tsx create mode 100644 packages/docs/app/components/blocks/media-layout.tsx create mode 100644 packages/docs/app/components/blocks/media-shared.ts create mode 100644 packages/docs/app/components/blocks/signature.config.ts create mode 100644 packages/docs/app/components/blocks/signature.tsx create mode 100644 packages/docs/app/components/blocks/video.config.ts create mode 100644 packages/docs/app/components/blocks/video.tsx diff --git a/packages/core/docs/content/docs-components.mdx b/packages/core/docs/content/docs-components.mdx index b967b220cc..5792cea51a 100644 --- a/packages/core/docs/content/docs-components.mdx +++ b/packages/core/docs/content/docs-components.mdx @@ -223,6 +223,218 @@ Add more `###` sections to get 3 or 4 columns (max 4). The red/green label accen --- +## Image + +Dispatch app screenshot showing the run history sidebar + +Aligning an image left or right turns it into a two-column row. The image sits on that side, and this markdown is the paired text on the other side. Leave `align` unset, or set it to `"full"`, for a normal full-width image with no paired text. + + + +```mdx +Dispatch app screenshot showing the run history sidebar + +Aligning an image left or right turns it into a two-column row. The image sits on that side, and this markdown is the paired text on the other side. Leave `align` unset, or set it to `"full"`, for a normal full-width image with no paired text. + + +``` + +`alt` is required. `align` is `"full"` (the default), `"left"`, or `"right"`. `width` is an optional pixel hint for the image column when aligned, and has no effect on `"full"`. `caption` renders in small muted text under the image. Anything between the open and close tags is markdown, and becomes the paired text next to the image when aligned, or plain content below it when full width. Omit the children entirely for a self-closing `` with no paired text. + +For a plain full-width image with no paired text, omit `align` (or set it to `"full"`) and skip the children entirely: + +Mail app screenshot showing the inbox and reading pane + +```mdx +Mail app screenshot showing the inbox and reading pane +``` + +--- + +## Video + +