TypeScript
Refresh README and canonical Extend UI URLs
Andrew Luo823f9fc8d37f
diff --git a/README.md b/README.mdindex 412e7a8..6a63d13 100644--- a/README.md+++ b/README.md@@ -1,16 +1,34 @@# Extend UI-Open source document components created by [Extend](https://www.extend.ai).-Extend UI gives product teams the building blocks for document processing-interfaces: PDF viewers, file uploads, thumbnails, citations, OCR blocks,-human review, document splitting, and e-signature flows.+[Extend UI](https://www.extend.ai/ui) is a set of open-source components for+document agents, user-facing document flows, and internal tools.+The library includes 14 components and examples for PDF, DOCX, and XLSX+viewers, plus bounding box citations, file upload, file thumbnails,+e-signature, document splitting, layout blocks, and Finder-style file browsing.+Components are fully customizable, MIT licensed, and available through the+shadcn component registry.++Extend UI started as the internal component layer for+[Extend](https://www.extend.ai). We built it after evaluating existing file+viewer and document component libraries and needing more complete, polished+building blocks for document-heavy products. The components are maintained in+production at Extend and are used across workflows that process millions of+pages, so fixes and improvements continue to flow back into the project.++Use Extend UI when you need document viewers, review surfaces, file-management+interfaces, or agent-facing document tools without starting from a generic+viewer library. Because each component is installed as source, it also works+well with design-system agents and prototyping tools that need editable React+and Tailwind code.+## Links-- Documentation: `http://localhost:4000`+- Documentation: [https://www.extend.ai/ui](https://www.extend.ai/ui)- GitHub: [extend-hq/ui](https://github.com/extend-hq/ui)+- Registry namespace: `@extend/*`## Getting Started@@ -39,6 +57,88 @@ generated imports to match, for example changingpaths. You can also set those aliases in `components.json` before installing sonew components are generated closer to your app structure.+## Examples++### File System++A Finder-style file browser for object-store manifests. It supports icon, list,+column, and gallery views, and opens PDF, DOCX, XLSX, and image files in viewer+dialogs.++++```bash+npx shadcn@latest add @extend/file-system-block+```++```tsx+import type { FileSystemItem } from "@/components/ui/file-system"+import { FileSystemBlock } from "@/components/blocks/file-system-block"++const items: FileSystemItem[] = [+ {+ kind: "file",+ path: "bank-statement.pdf",+ contentType: "application/pdf",+ url: "/documents/bank-statement.pdf",+ previewImageUrl: "/documents/bank-statement-preview.png",+ },+]++export default function Page() {+ return <FileSystemBlock items={items} className="h-[720px]" />+}+```++### Bounding Box Citations++Review extracted values against the source PDF with field-level citations,+editable form controls, JSON diffing, and page overlays.++++```bash+npx shadcn@latest add @extend/bounding-box-citations-block+```++```tsx+import { HumanReviewBlock } from "@/components/blocks/bounding-box-citations-block"++export default function Page() {+ return <HumanReviewBlock className="h-[720px]" />+}+```++### Layout Blocks++Inspect OCR and layout output with selectable blocks, confidence, markdown text,+and PDF overlays that stay connected to the rendered page.++++```bash+npx shadcn@latest add @extend/layout-blocks-block+```++```tsx+import { OcrBlocksBlock } from "@/components/blocks/layout-blocks-block"++export default function Page() {+ return <OcrBlocksBlock />+}+```++## Popular Components++```bash+npx shadcn@latest add @extend/pdf-viewer+npx shadcn@latest add @extend/docx-viewer+npx shadcn@latest add @extend/xlsx-viewer+npx shadcn@latest add @extend/file-upload+npx shadcn@latest add @extend/file-thumbnail+npx shadcn@latest add @extend/e-signature+```+## Development```bash@@ -48,13 +148,6 @@ pnpm v4:devThe site runs at `http://localhost:4000`.-## Included Sections--- Docs-- Components-- Blocks-- PDF Viewer blocks-## Created ByExtend UI is built and maintained by [Extend](https://www.extend.ai) for teamsdiff --git a/apps/v4/components.json b/apps/v4/components.jsonindex 775c782..4c014c4 100644--- a/apps/v4/components.json+++ b/apps/v4/components.json@@ -19,7 +19,7 @@"hooks": "@/hooks"},"registries": {- "@extend": "https://extend.ai/ui/r/{name}.json",+ "@extend": "https://www.extend.ai/ui/r/{name}.json","@coss": "https://coss.com/ui/r/{name}.json"}}diff --git a/apps/v4/lib/config.ts b/apps/v4/lib/config.tsindex 7c72a8f..7f3c85d 100644--- a/apps/v4/lib/config.ts+++ b/apps/v4/lib/config.ts@@ -1,4 +1,4 @@-const appUrl = process.env.NEXT_PUBLIC_APP_URL ?? "https://extend.ai/ui"+const appUrl = process.env.NEXT_PUBLIC_APP_URL ?? "https://www.extend.ai/ui"export const siteConfig = {name: "Extend UI",diff --git a/apps/v4/public/readme/bounding-box-citations.png b/apps/v4/public/readme/bounding-box-citations.pngnew file mode 100644index 0000000..1e8f826Binary files /dev/null and b/apps/v4/public/readme/bounding-box-citations.png differdiff --git a/apps/v4/public/readme/file-system-finder.png b/apps/v4/public/readme/file-system-finder.pngnew file mode 100644index 0000000..0efa340Binary files /dev/null and b/apps/v4/public/readme/file-system-finder.png differdiff --git a/apps/v4/public/readme/layout-blocks.png b/apps/v4/public/readme/layout-blocks.pngnew file mode 100644index 0000000..d02a22fBinary files /dev/null and b/apps/v4/public/readme/layout-blocks.png differ