@uibot/registry 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/component-replacement.d.ts +10 -0
  2. package/dist/index.js +7 -7
  3. package/dist/resources.d.ts +1 -0
  4. package/dist/resources.js +3 -3
  5. package/dist/shadcn/r/admin-shell.json +16 -3
  6. package/dist/shadcn/r/charts.json +44 -17
  7. package/dist/shadcn/r/chat-workspace.json +1 -1
  8. package/dist/shadcn/r/collection-cell-editor.json +1 -1
  9. package/dist/shadcn/r/collection-panel-drawer.json +1 -1
  10. package/dist/shadcn/r/collection-record-menu.json +1 -1
  11. package/dist/shadcn/r/collection-shared.json +1 -1
  12. package/dist/shadcn/r/commerce-workspace.json +1 -1
  13. package/dist/shadcn/r/console-page.json +1 -1
  14. package/dist/shadcn/r/console-shell.json +1 -1
  15. package/dist/shadcn/r/creation-html-generation.json +2 -2
  16. package/dist/shadcn/r/creation-reference-generation.json +2 -2
  17. package/dist/shadcn/r/creation-revision-export.json +2 -2
  18. package/dist/shadcn/r/creation-shared.json +2 -2
  19. package/dist/shadcn/r/creation-variant-compare.json +3 -3
  20. package/dist/shadcn/r/creation-workspace.json +3 -3
  21. package/dist/shadcn/r/crm-workspace.json +1 -1
  22. package/dist/shadcn/r/dashboard-01.json +78 -0
  23. package/dist/shadcn/r/dashboard.json +113 -3
  24. package/dist/shadcn/r/data-table.json +120 -10
  25. package/dist/shadcn/r/data.json +9 -2
  26. package/dist/shadcn/r/document-assistant.json +1 -1
  27. package/dist/shadcn/r/document-workspace.json +1 -1
  28. package/dist/shadcn/r/drilldown-menu.json +1 -1
  29. package/dist/shadcn/r/education-workspace.json +1 -1
  30. package/dist/shadcn/r/feedback.json +15 -2
  31. package/dist/shadcn/r/form.json +1 -1
  32. package/dist/shadcn/r/layout.json +27 -8
  33. package/dist/shadcn/r/nav.json +38 -10
  34. package/dist/shadcn/r/shadcn-admin.json +1 -1
  35. package/dist/shadcn/r/sidebar-primitives.json +1 -1
  36. package/dist/shadcn/r/workspace.json +9 -2
  37. package/dist/shadcn/registry.json +55 -27
  38. package/package.json +2 -2
@@ -0,0 +1,78 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "dashboard-01",
4
+ "type": "registry:block",
5
+ "description": "An inset dashboard with four metrics, date-range visitor trends and an editable document outline, adapted from shadcn/ui dashboard-01.",
6
+ "registryDependencies": [
7
+ "@uibot/charts",
8
+ "@uibot/data",
9
+ "@uibot/data-table",
10
+ "@uibot/feedback",
11
+ "@uibot/form",
12
+ "@uibot/layout",
13
+ "@uibot/nav",
14
+ "@uibot/primitives"
15
+ ],
16
+ "files": [
17
+ {
18
+ "path": "lib/uibot/templates/dashboard-01.uibot.yaml",
19
+ "target": "lib/uibot/templates/dashboard-01.uibot.yaml",
20
+ "content": "version: \"2.0\"\nlayout:\n navigation: sidebar\n container: fluid\n navigationStyle: floating\n sidebar: expanded\n offcanvas: floating\nconnections:\n - id: dashboard-sections-db\n type: NowAPI.Collection\npages:\n - id: dashboard-sections\n path: /dashboard-01\n title: Documents\n state:\n theme: system\n direction: ltr\n range: \"90\"\n section: dashboard\n templateSource:\n url: https://ui.shadcn.com/view/new-york-v4/dashboard-01\n registryUrl: https://ui.shadcn.com/r/styles/new-york-v4/dashboard-01.json\n license: MIT\n registrySha256: ec8e10eb0dc64e8c2a3077ca6abb771efc03c8499aa8044811f7a8525141ec0d\n files:\n - path: registry/new-york-v4/blocks/dashboard-01/page.tsx\n sha256: 042f13bbb8c0033e4546232b6767f83349ec29db3b2bcd93a07291ff549b6a65\n - path: registry/new-york-v4/blocks/dashboard-01/data.json\n sha256: a8dcfbe6d014ab33adb4be2ccc221313d0bbf5d1d69a06bc08527b66148e849a\n - path: registry/new-york-v4/blocks/dashboard-01/components/app-sidebar.tsx\n sha256: 4b5d8891b26d61f651059f240a85a1294fdcea7b9f27e7ade467412a6847cf33\n - path: registry/new-york-v4/blocks/dashboard-01/components/chart-area-interactive.tsx\n sha256: 5d6ec1ac623dbae184b63d2840cb4dc54ee7eb2ae754d5a42b319ae93a00170a\n - path: registry/new-york-v4/blocks/dashboard-01/components/data-table.tsx\n sha256: d05b74af48e3585521b916bae116b32c575688b2c87bf555ec5933ff3a26ee88\n - path: registry/new-york-v4/blocks/dashboard-01/components/nav-documents.tsx\n sha256: d28f7c121410e1e35b2bbd49be5db672e14ca5ee10feed6cf1e08101c96c2468\n - path: registry/new-york-v4/blocks/dashboard-01/components/nav-main.tsx\n sha256: 215c602b782adda1b9f1a7c4a701ef8354f892ae2fe609723cea9814a74cb8ae\n - path: registry/new-york-v4/blocks/dashboard-01/components/nav-secondary.tsx\n sha256: 61dd4c2b73c0de29178595183e15283518388959cc2c636c7862df4c16e6e01b\n - path: registry/new-york-v4/blocks/dashboard-01/components/nav-user.tsx\n sha256: c2e13a8ac430387c03b746e98dea7912f1f92e8b081786a8ee89ba367d75c183\n - path: registry/new-york-v4/blocks/dashboard-01/components/section-cards.tsx\n sha256: 680e2816e3161c5d2e05eb833b6f39cb268690b2135a5303cc76fd7968d15ea1\n - path: registry/new-york-v4/blocks/dashboard-01/components/site-header.tsx\n sha256: ed1cd67ed4663f47908f64d3df288435c7e49ec24a09f0ae22adf3b2c11289a2\n licenseText: >\n MIT License\n\n\n Copyright (c) 2023 shadcn\n\n\n Permission is hereby granted, free of charge, to any person obtaining\n a copy\n\n of this software and associated documentation files (the \"Software\"),\n to deal\n\n in the Software without restriction, including without limitation the\n rights\n\n to use, copy, modify, merge, publish, distribute, sublicense, and/or\n sell\n\n copies of the Software, and to permit persons to whom the Software is\n\n furnished to do so, subject to the following conditions:\n\n\n The above copyright notice and this permission notice shall be\n included in all\n\n copies or substantial portions of the Software.\n\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR\n\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY,\n\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\n SHALL THE\n\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n ARISING FROM,\n\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n IN THE\n\n SOFTWARE.\n rows:\n - id: \"1\"\n header: Cover page\n type: Cover page\n status: In Process\n target: \"18\"\n limit: \"5\"\n reviewer: Eddie Lake\n version: 1\n favorite: false\n - id: \"2\"\n header: Table of contents\n type: Table of contents\n status: Done\n target: \"29\"\n limit: \"24\"\n reviewer: Eddie Lake\n version: 1\n favorite: false\n - id: \"3\"\n header: Executive summary\n type: Narrative\n status: Done\n target: \"10\"\n limit: \"13\"\n reviewer: Eddie Lake\n version: 1\n favorite: false\n - id: \"4\"\n header: Technical approach\n type: Narrative\n status: Done\n target: \"27\"\n limit: \"23\"\n reviewer: Jamik Tashpulatov\n version: 1\n favorite: false\n - id: \"5\"\n header: Design\n type: Narrative\n status: In Process\n target: \"2\"\n limit: \"16\"\n reviewer: Jamik Tashpulatov\n version: 1\n favorite: false\n - id: \"6\"\n header: Capabilities\n type: Narrative\n status: In Process\n target: \"20\"\n limit: \"8\"\n reviewer: Jamik Tashpulatov\n version: 1\n favorite: false\n - id: \"7\"\n header: Integration with existing systems\n type: Narrative\n status: In Process\n target: \"19\"\n limit: \"21\"\n reviewer: Jamik Tashpulatov\n version: 1\n favorite: false\n - id: \"8\"\n header: Innovation and Advantages\n type: Narrative\n status: Done\n target: \"25\"\n limit: \"26\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"9\"\n header: Overview of EMR's Innovative Solutions\n type: Technical content\n status: Done\n target: \"7\"\n limit: \"23\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"10\"\n header: Advanced Algorithms and Machine Learning\n type: Narrative\n status: Done\n target: \"30\"\n limit: \"28\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"11\"\n header: Adaptive Communication Protocols\n type: Narrative\n status: Done\n target: \"9\"\n limit: \"31\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"12\"\n header: Advantages Over Current Technologies\n type: Narrative\n status: Done\n target: \"12\"\n limit: \"0\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"13\"\n header: Past Performance\n type: Narrative\n status: Done\n target: \"22\"\n limit: \"33\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"14\"\n header: Customer Feedback and Satisfaction Levels\n type: Narrative\n status: Done\n target: \"15\"\n limit: \"34\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"15\"\n header: Implementation Challenges and Solutions\n type: Narrative\n status: Done\n target: \"3\"\n limit: \"35\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"16\"\n header: Security Measures and Data Protection Policies\n type: Narrative\n status: In Process\n target: \"6\"\n limit: \"36\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"17\"\n header: Scalability and Future Proofing\n type: Narrative\n status: Done\n target: \"4\"\n limit: \"37\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"18\"\n header: Cost-Benefit Analysis\n type: Plain language\n status: Done\n target: \"14\"\n limit: \"38\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"19\"\n header: User Training and Onboarding Experience\n type: Narrative\n status: Done\n target: \"17\"\n limit: \"39\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"20\"\n header: Future Development Roadmap\n type: Narrative\n status: Done\n target: \"11\"\n limit: \"40\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"21\"\n header: System Architecture Overview\n type: Technical content\n status: In Process\n target: \"24\"\n limit: \"18\"\n reviewer: Maya Johnson\n version: 1\n favorite: false\n - id: \"22\"\n header: Risk Management Plan\n type: Narrative\n status: Done\n target: \"15\"\n limit: \"22\"\n reviewer: Carlos Rodriguez\n version: 1\n favorite: false\n - id: \"23\"\n header: Compliance Documentation\n type: Legal\n status: In Process\n target: \"31\"\n limit: \"27\"\n reviewer: Sarah Chen\n version: 1\n favorite: false\n - id: \"24\"\n header: API Documentation\n type: Technical content\n status: Done\n target: \"8\"\n limit: \"12\"\n reviewer: Raj Patel\n version: 1\n favorite: false\n - id: \"25\"\n header: User Interface Mockups\n type: Visual\n status: In Process\n target: \"19\"\n limit: \"25\"\n reviewer: Leila Ahmadi\n version: 1\n favorite: false\n - id: \"26\"\n header: Database Schema\n type: Technical content\n status: Done\n target: \"22\"\n limit: \"20\"\n reviewer: Thomas Wilson\n version: 1\n favorite: false\n - id: \"27\"\n header: Testing Methodology\n type: Technical content\n status: In Process\n target: \"17\"\n limit: \"14\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"28\"\n header: Deployment Strategy\n type: Narrative\n status: Done\n target: \"26\"\n limit: \"30\"\n reviewer: Eddie Lake\n version: 1\n favorite: false\n - id: \"29\"\n header: Budget Breakdown\n type: Financial\n status: In Process\n target: \"13\"\n limit: \"16\"\n reviewer: Jamik Tashpulatov\n version: 1\n favorite: false\n - id: \"30\"\n header: Market Analysis\n type: Research\n status: Done\n target: \"29\"\n limit: \"32\"\n reviewer: Sophia Martinez\n version: 1\n favorite: false\n - id: \"31\"\n header: Competitor Comparison\n type: Research\n status: In Process\n target: \"21\"\n limit: \"19\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"32\"\n header: Maintenance Plan\n type: Technical content\n status: Done\n target: \"16\"\n limit: \"23\"\n reviewer: Alex Thompson\n version: 1\n favorite: false\n - id: \"33\"\n header: User Personas\n type: Research\n status: In Process\n target: \"27\"\n limit: \"24\"\n reviewer: Nina Patel\n version: 1\n favorite: false\n - id: \"34\"\n header: Accessibility Compliance\n type: Legal\n status: Done\n target: \"18\"\n limit: \"21\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"35\"\n header: Performance Metrics\n type: Technical content\n status: In Process\n target: \"23\"\n limit: \"26\"\n reviewer: David Kim\n version: 1\n favorite: false\n - id: \"36\"\n header: Disaster Recovery Plan\n type: Technical content\n status: Done\n target: \"14\"\n limit: \"17\"\n reviewer: Jamik Tashpulatov\n version: 1\n favorite: false\n - id: \"37\"\n header: Third-party Integrations\n type: Technical content\n status: In Process\n target: \"25\"\n limit: \"28\"\n reviewer: Eddie Lake\n version: 1\n favorite: false\n - id: \"38\"\n header: User Feedback Summary\n type: Research\n status: Done\n target: \"20\"\n limit: \"15\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"39\"\n header: Localization Strategy\n type: Narrative\n status: In Process\n target: \"12\"\n limit: \"19\"\n reviewer: Maria Garcia\n version: 1\n favorite: false\n - id: \"40\"\n header: Mobile Compatibility\n type: Technical content\n status: Done\n target: \"28\"\n limit: \"31\"\n reviewer: James Wilson\n version: 1\n favorite: false\n - id: \"41\"\n header: Data Migration Plan\n type: Technical content\n status: In Process\n target: \"19\"\n limit: \"22\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"42\"\n header: Quality Assurance Protocols\n type: Technical content\n status: Done\n target: \"30\"\n limit: \"33\"\n reviewer: Priya Singh\n version: 1\n favorite: false\n - id: \"43\"\n header: Stakeholder Analysis\n type: Research\n status: In Process\n target: \"11\"\n limit: \"14\"\n reviewer: Eddie Lake\n version: 1\n favorite: false\n - id: \"44\"\n header: Environmental Impact Assessment\n type: Research\n status: Done\n target: \"24\"\n limit: \"27\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"45\"\n header: Intellectual Property Rights\n type: Legal\n status: In Process\n target: \"17\"\n limit: \"20\"\n reviewer: Sarah Johnson\n version: 1\n favorite: false\n - id: \"46\"\n header: Customer Support Framework\n type: Narrative\n status: Done\n target: \"22\"\n limit: \"25\"\n reviewer: Jamik Tashpulatov\n version: 1\n favorite: false\n - id: \"47\"\n header: Version Control Strategy\n type: Technical content\n status: In Process\n target: \"15\"\n limit: \"18\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"48\"\n header: Continuous Integration Pipeline\n type: Technical content\n status: Done\n target: \"26\"\n limit: \"29\"\n reviewer: Michael Chen\n version: 1\n favorite: false\n - id: \"49\"\n header: Regulatory Compliance\n type: Legal\n status: In Process\n target: \"13\"\n limit: \"16\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"50\"\n header: User Authentication System\n type: Technical content\n status: Done\n target: \"28\"\n limit: \"31\"\n reviewer: Eddie Lake\n version: 1\n favorite: false\n - id: \"51\"\n header: Data Analytics Framework\n type: Technical content\n status: In Process\n target: \"21\"\n limit: \"24\"\n reviewer: Jamik Tashpulatov\n version: 1\n favorite: false\n - id: \"52\"\n header: Cloud Infrastructure\n type: Technical content\n status: Done\n target: \"16\"\n limit: \"19\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"53\"\n header: Network Security Measures\n type: Technical content\n status: In Process\n target: \"29\"\n limit: \"32\"\n reviewer: Lisa Wong\n version: 1\n favorite: false\n - id: \"54\"\n header: Project Timeline\n type: Planning\n status: Done\n target: \"14\"\n limit: \"17\"\n reviewer: Eddie Lake\n version: 1\n favorite: false\n - id: \"55\"\n header: Resource Allocation\n type: Planning\n status: In Process\n target: \"27\"\n limit: \"30\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"56\"\n header: Team Structure and Roles\n type: Planning\n status: Done\n target: \"20\"\n limit: \"23\"\n reviewer: Jamik Tashpulatov\n version: 1\n favorite: false\n - id: \"57\"\n header: Communication Protocols\n type: Planning\n status: In Process\n target: \"15\"\n limit: \"18\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"58\"\n header: Success Metrics\n type: Planning\n status: Done\n target: \"30\"\n limit: \"33\"\n reviewer: Eddie Lake\n version: 1\n favorite: false\n - id: \"59\"\n header: Internationalization Support\n type: Technical content\n status: In Process\n target: \"23\"\n limit: \"26\"\n reviewer: Jamik Tashpulatov\n version: 1\n favorite: false\n - id: \"60\"\n header: Backup and Recovery Procedures\n type: Technical content\n status: Done\n target: \"18\"\n limit: \"21\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"61\"\n header: Monitoring and Alerting System\n type: Technical content\n status: In Process\n target: \"25\"\n limit: \"28\"\n reviewer: Daniel Park\n version: 1\n favorite: false\n - id: \"62\"\n header: Code Review Guidelines\n type: Technical content\n status: Done\n target: \"12\"\n limit: \"15\"\n reviewer: Eddie Lake\n version: 1\n favorite: false\n - id: \"63\"\n header: Documentation Standards\n type: Technical content\n status: In Process\n target: \"27\"\n limit: \"30\"\n reviewer: Jamik Tashpulatov\n version: 1\n favorite: false\n - id: \"64\"\n header: Release Management Process\n type: Planning\n status: Done\n target: \"22\"\n limit: \"25\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n - id: \"65\"\n header: Feature Prioritization Matrix\n type: Planning\n status: In Process\n target: \"19\"\n limit: \"22\"\n reviewer: Emma Davis\n version: 1\n favorite: false\n - id: \"66\"\n header: Technical Debt Assessment\n type: Technical content\n status: Done\n target: \"24\"\n limit: \"27\"\n reviewer: Eddie Lake\n version: 1\n favorite: false\n - id: \"67\"\n header: Capacity Planning\n type: Planning\n status: In Process\n target: \"21\"\n limit: \"24\"\n reviewer: Jamik Tashpulatov\n version: 1\n favorite: false\n - id: \"68\"\n header: Service Level Agreements\n type: Legal\n status: Done\n target: \"26\"\n limit: \"29\"\n reviewer: Assign reviewer\n version: 1\n favorite: false\n loading: false\n saving: false\n saved: false\n uiError: null\n editorOpen: false\n deleteOpen: false\n draft: {}\n tableView: null\n rowOrder: []\n cellFeedback: null\n cellIntent: {}\n reorderIntent: {}\n cellError: null\n cellLoading: false\n editorBaseline: {}\n discardEditorOpen: false\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: dashboard-sections-db\n request: &a2\n id: load-dashboard-sections\n connectionId: dashboard-sections-db\n payload:\n operation: FindAll\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: saved\n value: false\n onStateChange:\n - watch:\n - editorOpen\n - draft.header\n - draft.type\n - draft.status\n - draft.target\n - draft.limit\n - draft.reviewer\n - draft.favorite\n run: []\n blocks:\n - id: dashboard-01-frame\n type: PageLayout\n props:\n title: Documents\n theme:\n _state: theme\n direction:\n _state: direction\n initials: CN\n tokens:\n primary: var(--foreground)\n primary-foreground: var(--background)\n routes:\n - label: Documents\n href: /dashboard-01\n accountLinks:\n - label: Documents\n href: /dashboard-01\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n slots:\n sidebar:\n - type: PageSiderMenu\n props:\n title: Acme Inc.\n slots:\n footer:\n - type: Box\n props:\n direction: row\n align: center\n gap: sm\n children:\n - type: Paragraph\n props:\n text: CN\n className: shrink-0 text-xs font-semibold\n - type: Box\n props:\n className: uibot-menu-label min-w-0\n gap: xs\n children:\n - type: Paragraph\n props:\n text: shadcn\n className: text-sm font-medium\n - type: Paragraph\n props:\n text: m@example.com\n className: truncate text-xs text-muted-foreground\n children:\n - type: MenuLink\n props:\n label: Quick create\n iconName: plus\n events:\n onClick: &a1\n - action: SetState\n params:\n path: draft\n value:\n action: create\n header: \"\"\n type: Narrative\n status: In Process\n target: \"0\"\n limit: \"0\"\n reviewer: Assign reviewer\n - action: SetState\n params:\n path: uiError\n value: null\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: editorBaseline\n value:\n header:\n _state: draft.header\n type:\n _state: draft.type\n status:\n _state: draft.status\n target:\n _state: draft.target\n limit:\n _state: draft.limit\n reviewer:\n _state: draft.reviewer\n favorite:\n _state: draft.favorite\n - action: SetState\n params:\n path: editorBaseline\n value:\n header:\n _state: draft.header\n type:\n _state: draft.type\n status:\n _state: draft.status\n target:\n _state: draft.target\n limit:\n _state: draft.limit\n reviewer:\n _state: draft.reviewer\n favorite:\n _state: draft.favorite\n - action: SetState\n params:\n path: editorOpen\n value: true\n - type: MenuLink\n props:\n label: Dashboard\n iconName: layout-dashboard\n active:\n _eq:\n - _state: section\n - dashboard\n events:\n onClick:\n - action: SetState\n params:\n path: section\n value: dashboard\n - type: MenuLink\n props:\n label: Analytics\n iconName: chart-no-axes-column\n active:\n _eq:\n - _state: section\n - analytics\n events:\n onClick:\n - action: SetState\n params:\n path: section\n value: analytics\n - type: MenuGroup\n props:\n title: Documents\n children:\n - type: MenuLink\n props:\n label: Data library\n iconName: list-todo\n active:\n _eq:\n - _state: section\n - documents\n events:\n onClick:\n - action: SetState\n params:\n path: section\n value: documents\n children:\n - type: Box\n visible:\n _not:\n _eq:\n - _state: section\n - documents\n props:\n className: \"!grid grid-cols-1 gap-4 sm:grid-cols-2 2xl:grid-cols-4\"\n children:\n - type: Card\n props:\n className: bg-gradient-to-t from-muted/40 to-card shadow-xs\n children:\n - type: Box\n props:\n direction: row\n align: center\n justify: between\n gap: sm\n children:\n - type: Paragraph\n props:\n text: Total Revenue\n className: text-sm text-muted-foreground\n - type: Badge\n props:\n label: ↗ +12.5%\n variant: outline\n - type: Heading\n props:\n text: $1,250.00\n level: 2\n className: mt-2 text-3xl font-semibold tracking-tight tabular-nums\n - type: Paragraph\n props:\n text: Trending up this month ↗\n className: mt-6 text-sm font-medium\n - type: Paragraph\n props:\n text: Visitors for the last 6 months\n className: mt-1 text-sm text-muted-foreground\n - type: Card\n props:\n className: bg-gradient-to-t from-muted/40 to-card shadow-xs\n children:\n - type: Box\n props:\n direction: row\n align: center\n justify: between\n gap: sm\n children:\n - type: Paragraph\n props:\n text: New Customers\n className: text-sm text-muted-foreground\n - type: Badge\n props:\n label: ↘ −20%\n variant: outline\n - type: Heading\n props:\n text: 1,234\n level: 2\n className: mt-2 text-3xl font-semibold tracking-tight tabular-nums\n - type: Paragraph\n props:\n text: Down 20% this period ↘\n className: mt-6 text-sm font-medium\n - type: Paragraph\n props:\n text: Acquisition needs attention\n className: mt-1 text-sm text-muted-foreground\n - type: Card\n props:\n className: bg-gradient-to-t from-muted/40 to-card shadow-xs\n children:\n - type: Box\n props:\n direction: row\n align: center\n justify: between\n gap: sm\n children:\n - type: Paragraph\n props:\n text: Active Accounts\n className: text-sm text-muted-foreground\n - type: Badge\n props:\n label: ↗ +12.5%\n variant: outline\n - type: Heading\n props:\n text: 45,678\n level: 2\n className: mt-2 text-3xl font-semibold tracking-tight tabular-nums\n - type: Paragraph\n props:\n text: Strong user retention ↗\n className: mt-6 text-sm font-medium\n - type: Paragraph\n props:\n text: Engagement exceeds targets\n className: mt-1 text-sm text-muted-foreground\n - type: Card\n props:\n className: bg-gradient-to-t from-muted/40 to-card shadow-xs\n children:\n - type: Box\n props:\n direction: row\n align: center\n justify: between\n gap: sm\n children:\n - type: Paragraph\n props:\n text: Growth Rate\n className: text-sm text-muted-foreground\n - type: Badge\n props:\n label: ↗ +4.5%\n variant: outline\n - type: Heading\n props:\n text: 4.5%\n level: 2\n className: mt-2 text-3xl font-semibold tracking-tight tabular-nums\n - type: Paragraph\n props:\n text: Steady performance increase ↗\n className: mt-6 text-sm font-medium\n - type: Paragraph\n props:\n text: Meets growth projections\n className: mt-1 text-sm text-muted-foreground\n - type: Card\n visible:\n _not:\n _eq:\n - _state: section\n - documents\n props:\n title: Total Visitors\n description: Illustrative desktop and mobile traffic\n slots:\n actions:\n - type: Form.Select\n props:\n name: range\n value:\n _bindState: range\n placeholder: Date range\n options:\n - value: \"90\"\n label: Last 3 months\n - value: \"30\"\n label: Last 30 days\n - value: \"7\"\n label: Last 7 days\n children:\n - id: dashboard-01-chart\n type: TrendChart\n props:\n variant: plain\n title: Daily visitors\n series:\n _if:\n - _eq:\n - _state: range\n - \"7\"\n - - name: Desktop\n points:\n - 132\n - 141\n - 434\n - 448\n - 149\n - 103\n - 446\n area: true\n - name: Mobile\n points:\n - 180\n - 190\n - 380\n - 490\n - 200\n - 160\n - 400\n area: true\n - _if:\n - _eq:\n - _state: range\n - \"30\"\n - - name: Desktop\n points:\n - 178\n - 470\n - 103\n - 439\n - 88\n - 294\n - 323\n - 385\n - 438\n - 155\n - 92\n - 492\n - 81\n - 426\n - 307\n - 371\n - 475\n - 107\n - 341\n - 408\n - 169\n - 317\n - 480\n - 132\n - 141\n - 434\n - 448\n - 149\n - 103\n - 446\n area: true\n - name: Mobile\n points:\n - 200\n - 410\n - 160\n - 380\n - 140\n - 250\n - 370\n - 320\n - 480\n - 200\n - 150\n - 420\n - 130\n - 380\n - 350\n - 310\n - 520\n - 170\n - 290\n - 450\n - 210\n - 270\n - 530\n - 180\n - 190\n - 380\n - 490\n - 200\n - 160\n - 400\n area: true\n - - name: Desktop\n points:\n - 97\n - 167\n - 242\n - 373\n - 301\n - 245\n - 409\n - 59\n - 261\n - 327\n - 292\n - 342\n - 137\n - 120\n - 138\n - 446\n - 364\n - 243\n - 89\n - 137\n - 224\n - 138\n - 387\n - 215\n - 75\n - 383\n - 122\n - 315\n - 454\n - 165\n - 293\n - 247\n - 385\n - 481\n - 498\n - 388\n - 149\n - 227\n - 293\n - 335\n - 197\n - 197\n - 448\n - 473\n - 338\n - 499\n - 315\n - 235\n - 177\n - 82\n - 81\n - 252\n - 294\n - 201\n - 213\n - 420\n - 233\n - 78\n - 340\n - 178\n - 178\n - 470\n - 103\n - 439\n - 88\n - 294\n - 323\n - 385\n - 438\n - 155\n - 92\n - 492\n - 81\n - 426\n - 307\n - 371\n - 475\n - 107\n - 341\n - 408\n - 169\n - 317\n - 480\n - 132\n - 141\n - 434\n - 448\n - 149\n - 103\n - 446\n area: true\n - name: Mobile\n points:\n - 180\n - 120\n - 260\n - 290\n - 340\n - 180\n - 320\n - 110\n - 190\n - 350\n - 210\n - 380\n - 220\n - 170\n - 190\n - 360\n - 410\n - 180\n - 150\n - 200\n - 170\n - 230\n - 290\n - 250\n - 130\n - 420\n - 180\n - 240\n - 380\n - 220\n - 310\n - 190\n - 420\n - 390\n - 520\n - 300\n - 210\n - 180\n - 330\n - 270\n - 240\n - 160\n - 490\n - 380\n - 400\n - 420\n - 350\n - 180\n - 230\n - 140\n - 120\n - 290\n - 220\n - 250\n - 170\n - 460\n - 190\n - 130\n - 280\n - 230\n - 200\n - 410\n - 160\n - 380\n - 140\n - 250\n - 370\n - 320\n - 480\n - 200\n - 150\n - 420\n - 130\n - 380\n - 350\n - 310\n - 520\n - 170\n - 290\n - 450\n - 210\n - 270\n - 530\n - 180\n - 190\n - 380\n - 490\n - 200\n - 160\n - 400\n area: true\n labels:\n _if:\n - _eq:\n - _state: range\n - \"7\"\n - - 06-24\n - 06-25\n - 06-26\n - 06-27\n - 06-28\n - 06-29\n - 06-30\n - _if:\n - _eq:\n - _state: range\n - \"30\"\n - - 06-01\n - 06-02\n - 06-03\n - 06-04\n - 06-05\n - 06-06\n - 06-07\n - 06-08\n - 06-09\n - 06-10\n - 06-11\n - 06-12\n - 06-13\n - 06-14\n - 06-15\n - 06-16\n - 06-17\n - 06-18\n - 06-19\n - 06-20\n - 06-21\n - 06-22\n - 06-23\n - 06-24\n - 06-25\n - 06-26\n - 06-27\n - 06-28\n - 06-29\n - 06-30\n - - 04-02\n - 04-03\n - 04-04\n - 04-05\n - 04-06\n - 04-07\n - 04-08\n - 04-09\n - 04-10\n - 04-11\n - 04-12\n - 04-13\n - 04-14\n - 04-15\n - 04-16\n - 04-17\n - 04-18\n - 04-19\n - 04-20\n - 04-21\n - 04-22\n - 04-23\n - 04-24\n - 04-25\n - 04-26\n - 04-27\n - 04-28\n - 04-29\n - 04-30\n - 05-01\n - 05-02\n - 05-03\n - 05-04\n - 05-05\n - 05-06\n - 05-07\n - 05-08\n - 05-09\n - 05-10\n - 05-11\n - 05-12\n - 05-13\n - 05-14\n - 05-15\n - 05-16\n - 05-17\n - 05-18\n - 05-19\n - 05-20\n - 05-21\n - 05-22\n - 05-23\n - 05-24\n - 05-25\n - 05-26\n - 05-27\n - 05-28\n - 05-29\n - 05-30\n - 05-31\n - 06-01\n - 06-02\n - 06-03\n - 06-04\n - 06-05\n - 06-06\n - 06-07\n - 06-08\n - 06-09\n - 06-10\n - 06-11\n - 06-12\n - 06-13\n - 06-14\n - 06-15\n - 06-16\n - 06-17\n - 06-18\n - 06-19\n - 06-20\n - 06-21\n - 06-22\n - 06-23\n - 06-24\n - 06-25\n - 06-26\n - 06-27\n - 06-28\n - 06-29\n - 06-30\n width: 1000\n height: 240\n - type: Box\n visible:\n _not:\n _eq:\n - _state: section\n - analytics\n props:\n gap: md\n children:\n - type: Alert\n visible:\n _state: saved\n props:\n variant: success\n title: Changes confirmed\n description: The section list has been refreshed from the connected host.\n - id: dashboard-01-table\n type: DataTable\n props:\n label: Document sections\n rows:\n _state: rows\n loading:\n _state: loading\n error:\n _state: uiError.message\n pageSize: 10\n minWidth: 900\n searchKeys:\n - header\n - reviewer\n searchPlaceholder: Filter sections…\n view:\n _state: tableView\n reorderable: true\n rowOrder:\n _state: rowOrder\n cellFeedback:\n _state: cellFeedback\n searchable: false\n addLabel: Add section\n views:\n - value: outline\n label: Outline\n - value: performance\n label: Past Performance\n badge: 3\n placeholder: true\n emptyText: No past performance sections yet.\n - value: personnel\n label: Key Personnel\n badge: 2\n placeholder: true\n emptyText: No key personnel sections yet.\n - value: documents\n label: Focus Documents\n placeholder: true\n emptyText: No focus documents yet.\n columns:\n - key: header\n label: Header\n hideable: false\n action: edit\n - key: type\n label: Section type\n kind: badge\n - key: status\n label: Status\n kind: badge\n statusIcons: true\n - key: target\n label: Target\n editor: number\n align: end\n - key: limit\n label: Limit\n editor: number\n align: end\n - key: reviewer\n label: Reviewer\n editor: select\n emptyValue: Assign reviewer\n options:\n - value: Eddie Lake\n label: Eddie Lake\n - value: Jamik Tashpulatov\n label: Jamik Tashpulatov\n - value: Mary Pascoe\n label: Mary Pascoe\n actions:\n - id: edit\n label: Edit\n - id: copy\n label: Make a copy\n - id: favorite\n label: Favorite\n - id: delete\n label: Delete\n destructive: true\n events:\n onViewChange:\n - action: SetState\n params:\n path: tableView\n value:\n _event: value\n onAdd: *a1\n onReorder:\n - action: SetState\n params:\n path: reorderIntent\n value:\n _event: values\n - action: SetState\n params:\n path: rowOrder\n value:\n _state: reorderIntent.ids\n onCellChange:\n - action: SetState\n params:\n path: cellIntent\n value:\n _event: values\n - action: SetState\n params:\n path: cellError\n value: null\n - action: SetState\n params:\n path: cellFeedback\n value:\n id:\n _state: cellIntent.id\n column:\n _state: cellIntent.column\n operationId:\n _state: cellIntent.operationId\n attempt:\n _state: cellIntent.attempt\n status: pending\n message:\n _state: cellError.message\n - action: Request\n params:\n connectionId: dashboard-sections-db\n request:\n id: edit-dashboard-cell\n connectionId: dashboard-sections-db\n payload:\n operation: UpdateOne\n filter:\n id:\n _state: cellIntent.id\n data:\n _if:\n - _eq:\n - _state: cellIntent.column\n - target\n - target:\n _state: cellIntent.value\n - _if:\n - _eq:\n - _state: cellIntent.column\n - limit\n - limit:\n _state: cellIntent.value\n - reviewer:\n _state: cellIntent.value\n expectedVersion:\n _state: cellIntent.version\n idempotencyKey:\n _state: cellIntent.operationId\n errorPath: cellError\n onSuccess:\n - action: Request\n params:\n connectionId: dashboard-sections-db\n request: *a2\n responsePath: rows\n loadingPath: cellLoading\n errorPath: cellError\n onError: &a3\n - action: SetState\n params:\n path: cellFeedback\n value:\n id:\n _state: cellIntent.id\n column:\n _state: cellIntent.column\n operationId:\n _state: cellIntent.operationId\n attempt:\n _state: cellIntent.attempt\n status: error\n message:\n _state: cellError.message\n onSuccess:\n - action: SetState\n params:\n path: cellFeedback\n value:\n id:\n _state: cellIntent.id\n column:\n _state: cellIntent.column\n operationId:\n _state: cellIntent.operationId\n attempt:\n _state: cellIntent.attempt\n status: success\n message:\n _state: cellError.message\n onError: *a3\n onRowAction:\n - action: SetState\n params:\n path: draft\n value:\n _event: values\n - action: SetState\n params:\n path: draft.action\n value:\n _if:\n - _eq:\n - _state: draft.action\n - copy\n - create\n - _state: draft.action\n - action: SetState\n params:\n path: draft.favorite\n value:\n _if:\n - _eq:\n - _state: draft.action\n - favorite\n - _not:\n _state: draft.favorite\n - _state: draft.favorite\n - action: SetState\n params:\n path: uiError\n value: null\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: editorBaseline\n value:\n header:\n _state: draft.header\n type:\n _state: draft.type\n status:\n _state: draft.status\n target:\n _state: draft.target\n limit:\n _state: draft.limit\n reviewer:\n _state: draft.reviewer\n favorite:\n _state: draft.favorite\n - action: SetState\n params:\n path: editorOpen\n value:\n _not:\n _eq:\n - _state: draft.action\n - delete\n - action: SetState\n params:\n path: deleteOpen\n value:\n _eq:\n - _state: draft.action\n - delete\n - type: Drawer\n props:\n placement: responsive\n open:\n _state: editorOpen\n pending:\n _state: saving\n title:\n _if:\n - _eq:\n - _state: draft.action\n - create\n - Add section\n - _state: draft.header\n description: Changes are submitted to the host before the list is refreshed.\n events:\n onClose:\n - action: SetState\n params:\n path: discardEditorOpen\n value:\n _computed: editorDirty\n - action: SetState\n params:\n path: editorOpen\n value:\n _computed: editorDirty\n children:\n - type: Box\n props:\n className: hidden md:flex mb-6 border-b pb-6\n gap: sm\n children:\n - type: TrendChart\n props:\n variant: plain\n height: 150\n width: 420\n labels:\n - January\n - February\n - March\n - April\n - May\n - June\n series:\n - name: Desktop\n points:\n - 186\n - 305\n - 237\n - 73\n - 209\n - 214\n area: true\n - name: Mobile\n points:\n - 80\n - 200\n - 120\n - 190\n - 130\n - 140\n area: true\n - type: Paragraph\n props:\n text: Trending up by 5.2% this month ↗\n className: text-sm font-medium\n - type: Paragraph\n props:\n text: Illustrative visitor totals for the last 6 months.\n className: text-sm text-muted-foreground\n - type: Form\n props:\n label: Section details\n pending:\n _state: saving\n idempotent: true\n events:\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: Request\n params:\n connectionId: dashboard-sections-db\n request:\n id: mutate-dashboard-section\n connectionId: dashboard-sections-db\n payload:\n operation:\n _if:\n - _eq:\n - _state: draft.action\n - create\n - InsertOne\n - UpdateOne\n filter:\n id:\n _state: draft.id\n data:\n _event: values\n expectedVersion:\n _state: draft.version\n idempotencyKey:\n _event: value\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: dashboard-sections-db\n request:\n id: load-dashboard-sections\n connectionId: dashboard-sections-db\n payload:\n operation: FindAll\n responsePath: rows\n loadingPath: saving\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: saved\n value: false\n onSuccess: &a4\n - action: SetState\n params:\n path: editorOpen\n value: false\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - action: SetState\n params:\n path: saved\n value: true\n onError:\n - action: SetState\n params:\n path: saved\n value: false\n children:\n - type: Form.Input\n props:\n name: header\n label: Header\n type: text\n value:\n _bindState: draft.header\n required: true\n - type: Form.Select\n props:\n name: type\n label: Section type\n required: true\n value:\n _bindState: draft.type\n options:\n - value: Cover page\n label: Cover page\n - value: Table of contents\n label: Table of contents\n - value: Narrative\n label: Narrative\n - value: Technical content\n label: Technical content\n - value: Plain language\n label: Plain language\n - value: Legal\n label: Legal\n - value: Visual\n label: Visual\n - value: Financial\n label: Financial\n - value: Research\n label: Research\n - value: Planning\n label: Planning\n - type: Form.Select\n props:\n name: status\n label: Status\n required: true\n value:\n _bindState: draft.status\n options:\n - value: In Process\n label: In Process\n - value: Done\n label: Done\n - type: Box\n props:\n className: \"!grid grid-cols-2 gap-4\"\n children:\n - type: Form.Input\n props:\n name: target\n label: Target\n type: number\n value:\n _bindState: draft.target\n required: true\n - type: Form.Input\n props:\n name: limit\n label: Limit\n type: number\n value:\n _bindState: draft.limit\n required: true\n - type: Form.Select\n props:\n name: reviewer\n label: Reviewer\n required: true\n value:\n _bindState: draft.reviewer\n options:\n - value: Eddie Lake\n label: Eddie Lake\n - value: Jamik Tashpulatov\n label: Jamik Tashpulatov\n - value: Assign reviewer\n label: Assign reviewer\n - value: Maya Johnson\n label: Maya Johnson\n - value: Carlos Rodriguez\n label: Carlos Rodriguez\n - value: Sarah Chen\n label: Sarah Chen\n - value: Raj Patel\n label: Raj Patel\n - value: Leila Ahmadi\n label: Leila Ahmadi\n - value: Thomas Wilson\n label: Thomas Wilson\n - value: Sophia Martinez\n label: Sophia Martinez\n - value: Alex Thompson\n label: Alex Thompson\n - value: Nina Patel\n label: Nina Patel\n - value: David Kim\n label: David Kim\n - value: Maria Garcia\n label: Maria Garcia\n - value: James Wilson\n label: James Wilson\n - value: Priya Singh\n label: Priya Singh\n - value: Sarah Johnson\n label: Sarah Johnson\n - value: Michael Chen\n label: Michael Chen\n - value: Lisa Wong\n label: Lisa Wong\n - value: Daniel Park\n label: Daniel Park\n - value: Emma Davis\n label: Emma Davis\n - type: Form.Checkbox\n props:\n name: favorite\n label: Favorite\n checked:\n _bindState: draft.favorite\n - type: Alert\n visible:\n _state: uiError\n props:\n variant: destructive\n title: Changes were not confirmed\n description:\n _state: uiError.message\n - type: Form.Submit\n props:\n label: Save changes\n disabled:\n _state: saving\n slots:\n footer:\n - type: Button\n props:\n label: Done\n variant: outline\n disabled:\n _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: discardEditorOpen\n value:\n _computed: editorDirty\n - action: SetState\n params:\n path: editorOpen\n value:\n _computed: editorDirty\n - type: Modal\n props:\n open:\n _state: deleteOpen\n pending:\n _state: saving\n title: Delete section?\n description: This removes the section from the document outline.\n events:\n onClose:\n - action: SetState\n params:\n path: deleteOpen\n value: false\n children:\n - type: Alert\n visible:\n _state: uiError\n props:\n variant: destructive\n title: Deletion was not confirmed\n description:\n _state: uiError.message\n - type: Button\n props:\n label: Cancel\n variant: outline\n disabled:\n _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - type: Button\n props:\n label: Delete section\n variant: destructive\n disabled:\n _state: saving\n events:\n onClick:\n - action: Request\n params:\n connectionId: dashboard-sections-db\n request:\n id: mutate-dashboard-section\n connectionId: dashboard-sections-db\n payload:\n operation: DeleteOne\n filter:\n id:\n _state: draft.id\n data:\n _event: values\n expectedVersion:\n _state: draft.version\n idempotencyKey:\n _concat:\n - \"delete:\"\n - _state: draft.id\n - \":\"\n - _state: draft.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: dashboard-sections-db\n request:\n id: load-dashboard-sections\n connectionId: dashboard-sections-db\n payload:\n operation: FindAll\n responsePath: rows\n loadingPath: saving\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: saved\n value: false\n onSuccess: *a4\n onError:\n - action: SetState\n params:\n path: saved\n value: false\n - type: Modal\n props:\n open:\n _state: discardEditorOpen\n pending:\n _state: saving\n title: Discard unsaved changes?\n description: Your edits will be lost if you discard them.\n events:\n onClose: &a5\n - &a6\n action: SetState\n params:\n path: discardEditorOpen\n value: false\n children:\n - type: Button\n props:\n label: Stay\n variant: outline\n events:\n onClick: *a5\n - type: Button\n props:\n label: Discard\n variant: destructive\n events:\n onClick:\n - *a6\n - action: SetState\n params:\n path: editorOpen\n value: false\n computed:\n editorDirty:\n _not:\n _and:\n - _eq:\n - _if:\n - _state: draft.header\n - _state: draft.header\n - \"\"\n - _if:\n - _state: editorBaseline.header\n - _state: editorBaseline.header\n - \"\"\n - _eq:\n - _if:\n - _state: draft.type\n - _state: draft.type\n - \"\"\n - _if:\n - _state: editorBaseline.type\n - _state: editorBaseline.type\n - \"\"\n - _eq:\n - _if:\n - _state: draft.status\n - _state: draft.status\n - \"\"\n - _if:\n - _state: editorBaseline.status\n - _state: editorBaseline.status\n - \"\"\n - _eq:\n - _if:\n - _state: draft.target\n - _state: draft.target\n - \"\"\n - _if:\n - _state: editorBaseline.target\n - _state: editorBaseline.target\n - \"\"\n - _eq:\n - _if:\n - _state: draft.limit\n - _state: draft.limit\n - \"\"\n - _if:\n - _state: editorBaseline.limit\n - _state: editorBaseline.limit\n - \"\"\n - _eq:\n - _if:\n - _state: draft.reviewer\n - _state: draft.reviewer\n - \"\"\n - _if:\n - _state: editorBaseline.reviewer\n - _state: editorBaseline.reviewer\n - \"\"\n - _eq:\n - _if:\n - _state: draft.favorite\n - _state: draft.favorite\n - \"\"\n - _if:\n - _state: editorBaseline.favorite\n - _state: editorBaseline.favorite\n - \"\"\n",
21
+ "type": "registry:lib"
22
+ },
23
+ {
24
+ "path": "lib/uibot/templates/dashboard-01.uibot.json",
25
+ "target": "lib/uibot/templates/dashboard-01.uibot.json",
26
+ "content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"dashboard-01\",\n \"channel\": \"public\",\n \"template\": {\n \"file\": \"dashboard-01.uibot.yaml\",\n \"contract\": {\n \"name\": \"dashboard-01\",\n \"description\": \"An inset dashboard with four metrics, date-range visitor trends and an editable document outline, adapted from shadcn/ui dashboard-01.\",\n \"level\": \"L4\",\n \"category\": \"page\",\n \"keywords\": [\n \"dashboard-01\",\n \"Dashboard 01 · 数据工作台\",\n \"Dashboard 01 · Documents\",\n \"analytics\",\n \"data\",\n \"dashboard\",\n \"metrics\",\n \"table\"\n ],\n \"composedFrom\": [\n \"PageLayout\",\n \"Box\",\n \"Card\",\n \"Paragraph\",\n \"Badge\",\n \"Heading\",\n \"TrendChart\",\n \"Form.Select\",\n \"Alert\",\n \"DataTable\",\n \"Drawer\",\n \"Form\",\n \"Form.Input\",\n \"Form.Checkbox\",\n \"Form.Submit\",\n \"Button\",\n \"Modal\",\n \"PageSiderMenu\",\n \"MenuLink\",\n \"MenuGroup\"\n ]\n }\n }\n}\n",
27
+ "type": "registry:lib"
28
+ }
29
+ ],
30
+ "meta": {
31
+ "uibot": {
32
+ "schema": "uibot.registry.item.v1",
33
+ "item": "dashboard-01",
34
+ "channel": "public",
35
+ "template": {
36
+ "file": "dashboard-01.uibot.yaml",
37
+ "contract": {
38
+ "name": "dashboard-01",
39
+ "description": "An inset dashboard with four metrics, date-range visitor trends and an editable document outline, adapted from shadcn/ui dashboard-01.",
40
+ "level": "L4",
41
+ "category": "page",
42
+ "keywords": [
43
+ "dashboard-01",
44
+ "Dashboard 01 · 数据工作台",
45
+ "Dashboard 01 · Documents",
46
+ "analytics",
47
+ "data",
48
+ "dashboard",
49
+ "metrics",
50
+ "table"
51
+ ],
52
+ "composedFrom": [
53
+ "PageLayout",
54
+ "Box",
55
+ "Card",
56
+ "Paragraph",
57
+ "Badge",
58
+ "Heading",
59
+ "TrendChart",
60
+ "Form.Select",
61
+ "Alert",
62
+ "DataTable",
63
+ "Drawer",
64
+ "Form",
65
+ "Form.Input",
66
+ "Form.Checkbox",
67
+ "Form.Submit",
68
+ "Button",
69
+ "Modal",
70
+ "PageSiderMenu",
71
+ "MenuLink",
72
+ "MenuGroup"
73
+ ]
74
+ }
75
+ }
76
+ }
77
+ }
78
+ }
@@ -13,7 +13,7 @@
13
13
  {
14
14
  "path": "components/uibot/dashboard.tsx",
15
15
  "target": "components/uibot/dashboard.tsx",
16
- "content": "import type { RendererComponent } from \"@/lib/uibot-renderer\";\nimport { records, text } from \"./interaction\";\nimport { Icon } from \"./icons\";\nexport const StatCard: RendererComponent = (props) => (\n <article className=\"rounded-xl border bg-card p-6 shadow-sm\" data-uibot-type=\"StatCard\">\n <div className=\"mb-4 flex items-center justify-between gap-4\">\n <h3 className=\"text-sm font-medium\">{text(props.label)}</h3>\n <span className=\"text-muted-foreground\">\n <Icon name={text(props.icon, \"chart-no-axes-column\")} size={16} />\n </span>\n </div>\n <div className=\"text-2xl font-bold tracking-tight\">{text(props.value)}</div>\n <p className=\"mt-1 text-xs text-muted-foreground\">{text(props.description)}</p>\n </article>\n);\nexport const BarChart: RendererComponent = (props) => {\n const points = records(props.data),\n max = Math.max(1, ...points.map((p) => Number(p.value) || 0));\n return (\n <figure\n data-uibot-type=\"BarChart\"\n aria-label={text(props.label, \"Monthly overview\")}\n className=\"w-full\"\n >\n <div className=\"flex gap-3\" style={{ height: Number(props.height) || 320 }}>\n <div className=\"flex w-9 flex-col justify-between pb-7 text-right text-xs text-muted-foreground\">\n {[1, 0.75, 0.5, 0.25, 0].map((n) => (\n <span key={n}>\n {text(props.prefix)}\n {Math.round(max * n).toLocaleString()}\n </span>\n ))}\n </div>\n <div className=\"flex min-w-0 flex-1 items-end justify-around gap-2\">\n {points.map((p) => (\n <div\n key={text(p.label)}\n className=\"flex h-full min-w-0 flex-1 flex-col justify-end gap-2\"\n >\n <div\n className=\"group relative w-full rounded-t bg-primary focus-visible:outline-2\"\n style={{ height: `${Math.max(1, ((Number(p.value) || 0) / max) * 90)}%` }}\n tabIndex={0}\n role=\"img\"\n aria-label={`${text(p.label)}: ${text(props.prefix)}${text(p.value)}`}\n >\n <span className=\"absolute -top-8 start-1/2 hidden -translate-x-1/2 whitespace-nowrap rounded border bg-popover px-2 py-1 text-xs group-hover:block group-focus:block\">\n {text(props.prefix)}\n {text(p.value)}\n </span>\n </div>\n <span className=\"h-5 text-center text-xs text-muted-foreground\">{text(p.label)}</span>\n </div>\n ))}\n </div>\n </div>\n <figcaption className=\"sr-only\">\n {points.map((p) => `${text(p.label)} ${text(p.value)}`).join(\", \")}\n </figcaption>\n </figure>\n );\n};\nexport const AvatarList: RendererComponent = (props) => (\n <ul data-uibot-type=\"AvatarList\" className=\"space-y-7\">\n {records(props.items).map((item) => (\n <li key={text(item.id, item.name as string)} className=\"flex items-center gap-4\">\n <span className=\"grid size-9 shrink-0 place-items-center rounded-full bg-muted text-xs font-medium\">\n {text(item.initials)}\n </span>\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-medium\">{text(item.name)}</p>\n <p className=\"truncate text-sm text-muted-foreground\">{text(item.description)}</p>\n </div>\n <span className=\"text-sm font-medium\">{text(item.value)}</span>\n </li>\n ))}\n </ul>\n);\n",
16
+ "content": "import type { RendererComponent } from \"@/lib/uibot-renderer\";\nimport { records, text } from \"./interaction\";\nimport { Icon } from \"./icons\";\nexport const StatCard: RendererComponent = (props) => (\n <article className=\"rounded-xl border bg-card p-6 shadow-sm\" data-uibot-type=\"StatCard\">\n <div className=\"mb-4 flex items-center justify-between gap-4\">\n <h3 className=\"text-sm font-medium\">{text(props.label)}</h3>\n <span className=\"text-muted-foreground\">\n <Icon name={text(props.icon, \"chart-no-axes-column\")} size={16} />\n </span>\n </div>\n <div className=\"text-2xl font-bold tracking-tight\">{text(props.value)}</div>\n <p className=\"mt-1 text-xs text-muted-foreground\">{text(props.description)}</p>\n </article>\n);\nexport const BarChart: RendererComponent = (props) => {\n const points = records(props.data),\n max = Math.max(1, ...points.map((p) => Number(p.value) || 0));\n return (\n <figure\n data-uibot-type=\"BarChart\"\n aria-label={text(props.label, \"Monthly overview\")}\n className=\"w-full\"\n >\n <div className=\"flex gap-3\" style={{ height: Number(props.height) || 320 }}>\n <div className=\"flex w-9 flex-col justify-between pb-7 text-right text-xs text-muted-foreground\">\n {[1, 0.75, 0.5, 0.25, 0].map((n) => (\n <span key={n}>\n {text(props.prefix)}\n {Math.round(max * n).toLocaleString()}\n </span>\n ))}\n </div>\n <div className=\"flex min-w-0 flex-1 items-end justify-around gap-2\">\n {points.map((p) => (\n <div\n key={text(p.label)}\n className=\"flex h-full min-w-0 flex-1 flex-col justify-end gap-2\"\n >\n <div\n className=\"group relative w-full rounded-t bg-primary focus-visible:outline-2\"\n style={{ height: `${Math.max(1, ((Number(p.value) || 0) / max) * 90)}%` }}\n tabIndex={0}\n role=\"img\"\n aria-label={`${text(p.label)}: ${text(props.prefix)}${text(p.value)}`}\n >\n <span className=\"absolute -top-8 start-1/2 hidden -translate-x-1/2 whitespace-nowrap rounded border bg-popover px-2 py-1 text-xs group-hover:block group-focus:block\">\n {text(props.prefix)}\n {text(p.value)}\n </span>\n </div>\n <span className=\"h-5 text-center text-xs text-muted-foreground\">{text(p.label)}</span>\n </div>\n ))}\n </div>\n </div>\n <figcaption className=\"sr-only\">\n {points.map((p) => `${text(p.label)} ${text(p.value)}`).join(\", \")}\n </figcaption>\n </figure>\n );\n};\nexport const AvatarList: RendererComponent = (props) => (\n <ul data-uibot-type=\"AvatarList\" className=\"space-y-7\">\n {records(props.items).map((item) => (\n <li key={text(item.id, item.name as string)} className=\"flex items-center gap-4\">\n <span className=\"grid size-9 shrink-0 place-items-center rounded-full bg-muted text-xs font-medium\">\n {text(item.initials)}\n </span>\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-medium\">{text(item.name)}</p>\n <p className=\"truncate text-sm text-muted-foreground\">{text(item.description)}</p>\n </div>\n <span className=\"text-sm font-medium\">{text(item.value)}</span>\n </li>\n ))}\n </ul>\n);\n\n/** Same data contract as BarChart; bindings stay authored in `data`, never materialized. */\nexport const SeriesChart: RendererComponent = (props) => {\n const data = records(props.data);\n const values = data.map((point) => Number(point.value) || 0);\n const min = Math.min(0, ...values),\n max = Math.max(1, ...values);\n const y = (value: number) => 260 - ((value - min) / (max - min)) * 240;\n const x = (index: number) => 45 + (index * 880) / Math.max(1, data.length - 1);\n const points = values.map((value, index) => `${x(index)},${y(value)}`).join(\" \");\n const area = props.variant === \"area\";\n return (\n <figure\n data-uibot-type=\"SeriesChart\"\n aria-label={text(props.label, area ? \"Area chart\" : \"Line chart\")}\n className=\"w-full\"\n >\n {data.length ? (\n <>\n <svg\n viewBox=\"0 0 960 295\"\n role=\"img\"\n aria-label={text(props.label, \"Series chart\")}\n className=\"w-full text-primary\"\n style={{ height: Number(props.height) || 320 }}\n >\n {[0, 0.25, 0.5, 0.75, 1].map((fraction) => {\n const value = min + fraction * (max - min);\n return (\n <g key={fraction}>\n <line\n x1=\"45\"\n x2=\"925\"\n y1={y(value)}\n y2={y(value)}\n stroke=\"currentColor\"\n opacity=\".12\"\n />\n <text\n x=\"38\"\n y={y(value) + 4}\n textAnchor=\"end\"\n className=\"fill-muted-foreground text-[11px]\"\n >\n {text(props.prefix)}\n {Math.round(value).toLocaleString()}\n </text>\n </g>\n );\n })}\n {area && (\n <polygon\n points={`45,${y(0)} ${points} ${x(data.length - 1)},${y(0)}`}\n fill=\"currentColor\"\n opacity=\".14\"\n />\n )}\n <polyline\n points={points}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"3\"\n strokeLinejoin=\"round\"\n />\n {data.map((point, index) => (\n <g key={text(point.label, String(index))}>\n <circle\n cx={x(index)}\n cy={y(values[index] ?? 0)}\n r=\"5\"\n fill=\"currentColor\"\n tabIndex={0}\n role=\"img\"\n aria-label={`${text(point.label)}: ${text(props.prefix)}${text(point.value)}`}\n >\n <title>\n {text(point.label)}: {text(props.prefix)}\n {text(point.value)}\n </title>\n </circle>\n <text\n x={x(index)}\n y=\"285\"\n textAnchor=\"middle\"\n className=\"fill-muted-foreground text-[11px]\"\n >\n {text(point.label)}\n </text>\n </g>\n ))}\n </svg>\n <figcaption className=\"sr-only\">\n {data\n .map((point) => `${text(point.label)} ${text(props.prefix)}${text(point.value)}`)\n .join(\", \")}\n </figcaption>\n </>\n ) : (\n <p className=\"py-12 text-center text-sm text-muted-foreground\">No data</p>\n )}\n </figure>\n );\n};\n\nexport const RecordCards: RendererComponent = (props) => (\n <ul data-uibot-type=\"RecordCards\" className=\"grid grid-cols-1 gap-3 sm:grid-cols-2\">\n {records(props.items).map((item) => (\n <li\n key={text(item.id, item.name as string)}\n className=\"min-w-0 rounded-lg border bg-card p-4\"\n >\n <div className=\"flex items-center gap-3\">\n <span className=\"grid size-9 shrink-0 place-items-center rounded-full bg-muted text-xs font-medium\">\n {text(item.initials)}\n </span>\n <p className=\"min-w-0 break-words text-sm font-medium\">{text(item.name)}</p>\n </div>\n <p className=\"mt-3 break-words text-xs text-muted-foreground\">{text(item.description)}</p>\n <p className=\"mt-2 text-sm font-semibold\">{text(item.value)}</p>\n </li>\n ))}\n </ul>\n);\n",
17
17
  "type": "registry:ui"
18
18
  },
19
19
  {
@@ -31,7 +31,7 @@
31
31
  {
32
32
  "path": "components/uibot/dashboard.uibot.json",
33
33
  "target": "components/uibot/dashboard.uibot.json",
34
- "content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"dashboard\",\n \"channel\": \"public\",\n \"components\": [\n {\n \"name\": \"AvatarList\",\n \"export\": \"AvatarList\",\n \"module\": \"dashboard.tsx\",\n \"catalog\": {\n \"name\": \"AvatarList\",\n \"tags\": [\n \"list\"\n ],\n \"description\": \"Compact people and activity list\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"props\": {\n \"items\": {\n \"type\": \"array\"\n }\n },\n \"events\": {}\n }\n },\n {\n \"name\": \"BarChart\",\n \"export\": \"BarChart\",\n \"module\": \"dashboard.tsx\",\n \"catalog\": {\n \"name\": \"BarChart\",\n \"tags\": [\n \"chart\"\n ],\n \"description\": \"Accessible deterministic bar series with visible labels and hover values\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"props\": {\n \"label\": {\n \"type\": \"string\"\n },\n \"data\": {\n \"type\": \"array\"\n },\n \"height\": {\n \"type\": \"number\"\n },\n \"prefix\": {\n \"type\": \"string\"\n }\n },\n \"events\": {}\n }\n },\n {\n \"name\": \"StatCard\",\n \"export\": \"StatCard\",\n \"module\": \"dashboard.tsx\",\n \"catalog\": {\n \"name\": \"StatCard\",\n \"tags\": [\n \"metric\"\n ],\n \"description\": \"Metric with label, value and supporting text\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"props\": {\n \"label\": {\n \"type\": \"string\"\n },\n \"value\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"icon\": {\n \"type\": \"string\"\n }\n },\n \"events\": {}\n }\n }\n ]\n}\n",
34
+ "content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"dashboard\",\n \"channel\": \"public\",\n \"components\": [\n {\n \"name\": \"AvatarList\",\n \"export\": \"AvatarList\",\n \"module\": \"dashboard.tsx\",\n \"catalog\": {\n \"name\": \"AvatarList\",\n \"tags\": [\n \"list\"\n ],\n \"description\": \"Compact people and activity list\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"replacement\": {\n \"family\": \"dashboard.records.v1\",\n \"variants\": [\n {\n \"id\": \"list\",\n \"title\": \"Avatar list\"\n }\n ]\n },\n \"props\": {\n \"items\": {\n \"type\": \"array\"\n }\n },\n \"events\": {}\n }\n },\n {\n \"name\": \"BarChart\",\n \"export\": \"BarChart\",\n \"module\": \"dashboard.tsx\",\n \"catalog\": {\n \"name\": \"BarChart\",\n \"tags\": [\n \"chart\"\n ],\n \"description\": \"Accessible deterministic bar series with visible labels and hover values\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"replacement\": {\n \"family\": \"dashboard.series.v1\",\n \"variants\": [\n {\n \"id\": \"bar\",\n \"title\": \"Bar chart\"\n }\n ]\n },\n \"props\": {\n \"label\": {\n \"type\": \"string\"\n },\n \"data\": {\n \"type\": \"array\"\n },\n \"height\": {\n \"type\": \"number\"\n },\n \"prefix\": {\n \"type\": \"string\"\n }\n },\n \"events\": {}\n }\n },\n {\n \"name\": \"RecordCards\",\n \"export\": \"RecordCards\",\n \"module\": \"dashboard.tsx\",\n \"catalog\": {\n \"name\": \"RecordCards\",\n \"description\": \"Readonly record cards over the same items contract as AvatarList\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"tags\": [\n \"list\",\n \"cards\"\n ],\n \"replacement\": {\n \"family\": \"dashboard.records.v1\",\n \"variants\": [\n {\n \"id\": \"cards\",\n \"title\": \"Record cards\"\n }\n ]\n },\n \"props\": {\n \"items\": {\n \"type\": \"array\"\n }\n },\n \"events\": {}\n }\n },\n {\n \"name\": \"SeriesChart\",\n \"export\": \"SeriesChart\",\n \"module\": \"dashboard.tsx\",\n \"catalog\": {\n \"name\": \"SeriesChart\",\n \"description\": \"Accessible line or area chart over the same label/value data as BarChart\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"tags\": [\n \"chart\",\n \"line\",\n \"area\"\n ],\n \"replacement\": {\n \"family\": \"dashboard.series.v1\",\n \"presentationProps\": [\n \"variant\"\n ],\n \"variants\": [\n {\n \"id\": \"line\",\n \"title\": \"Line chart\",\n \"props\": {\n \"variant\": \"line\"\n }\n },\n {\n \"id\": \"area\",\n \"title\": \"Area chart\",\n \"props\": {\n \"variant\": \"area\"\n }\n }\n ]\n },\n \"props\": {\n \"label\": {\n \"type\": \"string\"\n },\n \"data\": {\n \"type\": \"array\"\n },\n \"height\": {\n \"type\": \"number\"\n },\n \"prefix\": {\n \"type\": \"string\"\n },\n \"variant\": {\n \"type\": \"string\",\n \"enum\": [\n \"line\",\n \"area\"\n ]\n }\n },\n \"events\": {}\n }\n },\n {\n \"name\": \"StatCard\",\n \"export\": \"StatCard\",\n \"module\": \"dashboard.tsx\",\n \"catalog\": {\n \"name\": \"StatCard\",\n \"tags\": [\n \"metric\"\n ],\n \"description\": \"Metric with label, value and supporting text\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"props\": {\n \"label\": {\n \"type\": \"string\"\n },\n \"value\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"icon\": {\n \"type\": \"string\"\n }\n },\n \"events\": {}\n }\n }\n ]\n}\n",
35
35
  "type": "registry:ui"
36
36
  }
37
37
  ],
@@ -56,7 +56,9 @@
56
56
  "provides": [
57
57
  "StatCard",
58
58
  "BarChart",
59
- "AvatarList"
59
+ "AvatarList",
60
+ "SeriesChart",
61
+ "RecordCards"
60
62
  ],
61
63
  "uibot": {
62
64
  "schema": "uibot.registry.item.v1",
@@ -75,6 +77,15 @@
75
77
  "description": "Compact people and activity list",
76
78
  "category": "composite",
77
79
  "level": "L2",
80
+ "replacement": {
81
+ "family": "dashboard.records.v1",
82
+ "variants": [
83
+ {
84
+ "id": "list",
85
+ "title": "Avatar list"
86
+ }
87
+ ]
88
+ },
78
89
  "props": {
79
90
  "items": {
80
91
  "type": "array"
@@ -95,6 +106,98 @@
95
106
  "description": "Accessible deterministic bar series with visible labels and hover values",
96
107
  "category": "composite",
97
108
  "level": "L2",
109
+ "replacement": {
110
+ "family": "dashboard.series.v1",
111
+ "variants": [
112
+ {
113
+ "id": "bar",
114
+ "title": "Bar chart"
115
+ }
116
+ ]
117
+ },
118
+ "props": {
119
+ "label": {
120
+ "type": "string"
121
+ },
122
+ "data": {
123
+ "type": "array"
124
+ },
125
+ "height": {
126
+ "type": "number"
127
+ },
128
+ "prefix": {
129
+ "type": "string"
130
+ }
131
+ },
132
+ "events": {}
133
+ }
134
+ },
135
+ {
136
+ "name": "RecordCards",
137
+ "export": "RecordCards",
138
+ "module": "dashboard.tsx",
139
+ "catalog": {
140
+ "name": "RecordCards",
141
+ "description": "Readonly record cards over the same items contract as AvatarList",
142
+ "category": "composite",
143
+ "level": "L2",
144
+ "tags": [
145
+ "list",
146
+ "cards"
147
+ ],
148
+ "replacement": {
149
+ "family": "dashboard.records.v1",
150
+ "variants": [
151
+ {
152
+ "id": "cards",
153
+ "title": "Record cards"
154
+ }
155
+ ]
156
+ },
157
+ "props": {
158
+ "items": {
159
+ "type": "array"
160
+ }
161
+ },
162
+ "events": {}
163
+ }
164
+ },
165
+ {
166
+ "name": "SeriesChart",
167
+ "export": "SeriesChart",
168
+ "module": "dashboard.tsx",
169
+ "catalog": {
170
+ "name": "SeriesChart",
171
+ "description": "Accessible line or area chart over the same label/value data as BarChart",
172
+ "category": "composite",
173
+ "level": "L2",
174
+ "tags": [
175
+ "chart",
176
+ "line",
177
+ "area"
178
+ ],
179
+ "replacement": {
180
+ "family": "dashboard.series.v1",
181
+ "presentationProps": [
182
+ "variant"
183
+ ],
184
+ "variants": [
185
+ {
186
+ "id": "line",
187
+ "title": "Line chart",
188
+ "props": {
189
+ "variant": "line"
190
+ }
191
+ },
192
+ {
193
+ "id": "area",
194
+ "title": "Area chart",
195
+ "props": {
196
+ "variant": "area"
197
+ }
198
+ }
199
+ ]
200
+ },
98
201
  "props": {
99
202
  "label": {
100
203
  "type": "string"
@@ -107,6 +210,13 @@
107
210
  },
108
211
  "prefix": {
109
212
  "type": "string"
213
+ },
214
+ "variant": {
215
+ "type": "string",
216
+ "enum": [
217
+ "line",
218
+ "area"
219
+ ]
110
220
  }
111
221
  },
112
222
  "events": {}