@vantageos/mosaic-blocks 0.5.36-alpha → 0.5.38-alpha
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.
- package/README.md +3 -1
- package/dist/index.cjs +553 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +191 -2
- package/dist/index.d.ts +191 -2
- package/dist/index.js +546 -51
- package/dist/index.js.map +1 -1
- package/package.json +9 -1
- package/r/mosaic-adaptive-grid.json +1 -1
- package/r/mosaic-adaptive-modal.json +1 -1
- package/r/mosaic-adaptive-navigation.json +1 -1
- package/r/mosaic-add-memory-form.json +3 -3
- package/r/mosaic-admin-only-guard.json +1 -1
- package/r/mosaic-agent-chat.json +4 -4
- package/r/mosaic-agent-composer.json +1 -1
- package/r/mosaic-agent-editor.json +3 -3
- package/r/mosaic-agent-list.json +4 -4
- package/r/mosaic-app-sidebar.json +1 -1
- package/r/mosaic-artifact-checklist.json +1 -1
- package/r/mosaic-artifact-data-table.json +1 -1
- package/r/mosaic-artifact-library.json +1 -1
- package/r/mosaic-artifact-save-as-memory-form.json +2 -2
- package/r/mosaic-chat-message.json +1 -1
- package/r/mosaic-dashboard-content.json +1 -1
- package/r/mosaic-dashboard-header.json +1 -1
- package/r/mosaic-dashboard-layout.json +3 -3
- package/r/mosaic-document-table.json +6 -6
- package/r/mosaic-edit-memory-dialog.json +3 -3
- package/r/mosaic-edit-session-dialog.json +3 -3
- package/r/mosaic-editable-cell.json +1 -1
- package/r/mosaic-filter-bar.json +1 -1
- package/r/mosaic-filter-sidebar.json +1 -1
- package/r/mosaic-grille-registre.json +53 -0
- package/r/mosaic-main-nav.json +1 -1
- package/r/mosaic-marketplace-card.json +2 -2
- package/r/mosaic-marketplace-list.json +3 -3
- package/r/mosaic-match-input.json +1 -1
- package/r/mosaic-memory-dashboard.json +1 -1
- package/r/mosaic-memory-search.json +1 -1
- package/r/mosaic-mention-input.json +1 -1
- package/r/mosaic-message-list.json +2 -2
- package/r/mosaic-message-search.json +1 -1
- package/r/mosaic-module-library.json +1 -1
- package/r/mosaic-org-context-display.json +1 -1
- package/r/mosaic-org-panel.json +2 -2
- package/r/mosaic-preferences-panel.json +1 -1
- package/r/mosaic-profile-panel.json +1 -1
- package/r/mosaic-quick-actions-menu.json +1 -1
- package/r/mosaic-quick-agent-selector.json +2 -2
- package/r/mosaic-save-chat-as-memory-form.json +3 -3
- package/r/mosaic-save-template-modal.json +5 -5
- package/r/mosaic-selector-modal.json +1 -1
- package/r/mosaic-session-card.json +2 -2
- package/r/mosaic-template-gallery.json +3 -3
- package/r/mosaic-template-management-panel.json +3 -3
- package/r/use-effective-workspace-id.json +1 -1
- package/registry.json +42 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vantageos/mosaic-blocks",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.38-alpha",
|
|
4
4
|
"description": "VantageOS React composed blocks — Next.js 16 + React 19 + Tailwind v4 + @base-ui/react. Published alpha.",
|
|
5
5
|
"license": "FSL-1.1-Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -54,7 +54,11 @@
|
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@clerk/nextjs": "^7",
|
|
57
|
+
"@heroui/react": "^3.2.5",
|
|
57
58
|
"@vantageos/cloud-identity": ">=0.6.0",
|
|
59
|
+
"ag-grid-community": "^36.1.0",
|
|
60
|
+
"ag-grid-react": "^36.1.0",
|
|
61
|
+
"lucide-react": "^0.511.0",
|
|
58
62
|
"react": "^19",
|
|
59
63
|
"react-dom": "^19",
|
|
60
64
|
"recharts": "^2.12.0 || ^3.0.0",
|
|
@@ -83,6 +87,7 @@
|
|
|
83
87
|
},
|
|
84
88
|
"devDependencies": {
|
|
85
89
|
"@biomejs/biome": "^1.9.4",
|
|
90
|
+
"@heroui/react": "3.2.5",
|
|
86
91
|
"@playwright/test": "^1.61.1",
|
|
87
92
|
"@storybook/addon-a11y": "^10.6.2",
|
|
88
93
|
"@storybook/react": "^10.6.2",
|
|
@@ -93,8 +98,11 @@
|
|
|
93
98
|
"@types/react": "^19",
|
|
94
99
|
"@types/react-dom": "^19",
|
|
95
100
|
"@vitejs/plugin-react": "^4.5.2",
|
|
101
|
+
"ag-grid-community": "^36.3.0",
|
|
102
|
+
"ag-grid-react": "^36.3.0",
|
|
96
103
|
"http-server": "^14.1.1",
|
|
97
104
|
"jsdom": "^26.1.0",
|
|
105
|
+
"lucide-react": "^0.511.0",
|
|
98
106
|
"next": "16.4.1",
|
|
99
107
|
"react": "^19",
|
|
100
108
|
"react-dom": "^19",
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "Device-aware CSS grid wrapper. Reads isMobile/isTablet/isDesktop from MosaicDeviceProvider and applies the correct column count. Props: mobileColumns, tabletColumns, desktopColumns, gap. Uses inline CSS for dynamic columns (no JIT issues).",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-device-provider.json"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "Unified modal/sheet: Dialog on desktop, bottom-sheet on mobile. Uses native <dialog> element (focus trap, Escape key, backdrop). Single API: isOpen, onClose, title, children, description. No Radix/Vaul dep — fully portable.",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-device-provider.json"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "Step navigation: tab strip on desktop, expandable accordion on mobile. Props: items[] {id, title, duration?, isComplete?, children?}, activeItem, onItemChange, expandedItems, onToggleExpanded. Zero debate coupling; generic items API.",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-device-provider.json"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"description": "MosaicAddMemoryForm — presentational \"record a new memory\" form",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
9
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
10
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-select.json",
|
|
9
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-tag-input.json",
|
|
10
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-textarea.json"
|
|
11
11
|
],
|
|
12
12
|
"files": [
|
|
13
13
|
{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "MosaicAdminOnlyGuard — permission gate that renders `children` for admins, an access-denied card for non-admins, and a loading fallback while permissions resolve, EveVantage M3 C7.",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-button.json"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
package/r/mosaic-agent-chat.json
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"description": "MosaicAgentChat — presentational session harness: MVP-8, the last MVP piece, wiring MosaicChatThread + MosaicChatMessage + MosaicChatComposer + MosaicApprovalPrompt into one send/resume/respond harness.",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
9
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
10
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
11
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-approval-prompt.json",
|
|
9
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-chat-composer.json",
|
|
10
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-chat-message.json",
|
|
11
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-chat-thread.json"
|
|
12
12
|
],
|
|
13
13
|
"files": [
|
|
14
14
|
{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "Responsive-pair agent composer: auto-selects Desktop (2-column with live preview) or Mobile (single-column + sticky CTA) via useDevice. Shared props contract: agentName, customInstructions, 4 module slots (role/persona/framework/model), labels override. Generic MosaicComposerModule type — no domain coupling.",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-device-provider.json"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"description": "MosaicAgentEditor — agent config form (name / role / instructions)",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
9
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
10
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-button.json",
|
|
9
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-input.json",
|
|
10
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-textarea.json"
|
|
11
11
|
],
|
|
12
12
|
"files": [
|
|
13
13
|
{
|
package/r/mosaic-agent-list.json
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"description": "Responsive agent list (responsive-pair). Desktop: filter sidebar + grid. Mobile: stacked + filter sheet.",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
9
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
10
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
11
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-adaptive-modal.json",
|
|
9
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-agent-card.json",
|
|
10
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-device-provider.json",
|
|
11
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-filter-sidebar.json"
|
|
12
12
|
],
|
|
13
13
|
"files": [
|
|
14
14
|
{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "Collapsible sidebar (64px icon-only / 280px expanded) with nested nav, quick actions, recent items, and footer status slot. Full-width on mobile. Props: navItems[], quickActions[], recentItems[], logoSlot, footerStatus. No hardcoded routes or branding.",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-device-provider.json"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "MosaicArtifactChecklist — dumb, contract-agnostic checklist artifact renderer",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-progress.json"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "MosaicArtifactDataTable — dumb, contract-agnostic data-table artifact renderer",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-data-table.json"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "MosaicArtifactLibrary — org-scoped list/search of saved artifacts, opening a selected one through the C1 adapter (MosaicArtifactCanvasAdapter) + C2 renderers.",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-artifact-canvas-adapter.json"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"description": "MosaicArtifactSaveAsMemoryForm — presentational \"capitalise this artifact into memory\" form: the artifact → memory bridge, sibling of MosaicSaveChatAsMemoryForm (chat → memory) in the same product family.",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
9
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-input.json",
|
|
9
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-tag-input.json"
|
|
10
10
|
],
|
|
11
11
|
"files": [
|
|
12
12
|
{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "MosaicChatMessage — one chat message: role + ordered parts (text / reasoning / tool call).",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-collapsible.json"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "Generic dashboard content area with view switcher. Tab-based view rendering. CSS fade-in transition.",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-device-provider.json"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "Generic sticky dashboard header. Title/subtitle, search bar (desktop), notification bell, right-side actions slot.",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-device-provider.json"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"description": "Full-height app shell: sticky header (title, subtitle, breadcrumbs, actions slot), persistent sidebar on desktop, hamburger + AdaptiveModal drawer on mobile. Props: title, subtitle, breadcrumbs[], actions, sidebarProps, renderLink. Zero hardcoded branding.",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
9
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
10
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-adaptive-modal.json",
|
|
9
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-app-sidebar.json",
|
|
10
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-device-provider.json"
|
|
11
11
|
],
|
|
12
12
|
"files": [
|
|
13
13
|
{
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"description": "MosaicDocumentTable — generic document table, built on MosaicDataTable.",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
9
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
10
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
11
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
12
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-editable-cell.json",
|
|
9
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-grille-registre.json",
|
|
10
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-pdf-viewer.json",
|
|
11
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-resizable-split-pane.json",
|
|
12
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-tabs.json"
|
|
13
13
|
],
|
|
14
14
|
"files": [
|
|
15
15
|
{
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
{
|
|
21
21
|
"path": "src/components/document-review/MosaicDocumentTable.tsx",
|
|
22
22
|
"type": "registry:ui",
|
|
23
|
-
"content": "/**\n * MosaicDocumentTable — generic document table,
|
|
23
|
+
"content": "/**\n * MosaicDocumentTable — generic document table, a composition of GrilleRegistre.\n *\n * One table component serves every document screen: this module renders through\n * the library's shared AG Grid (GrilleRegistre) and adds only the document-review\n * contract on top of it — the column model, the row selection and the panel.\n *\n * Rows and the column model come from props; column visibility comes from the\n * model (`defaultVisible`) unless the host passes a `columnVisibility` override.\n * Selecting a row (click, Enter, Space) opens `renderPanel` for that row. The\n * module ships no business vocabulary: every label is a prop, the empty state\n * included (GrilleRegistre's `messageVide`).\n *\n * Row activation: the first visible column renders its value inside a real\n * `<button>` (keyboard + assistive tech), and a click on any cell of a row —\n * the button's keyboard activation arrives as a click — is resolved to its row\n * through the grid's `onCellClicked`, one path for both. Grid cells take no focus\n * of their own (`suppressCellFocus`), so each row's button is its keyboard stop.\n *\n * Sorting and filtering are off on every column: the table keeps the host's row\n * order, which is also the order prev/next navigation walks (`orderedRowIds`).\n */\nimport type { CellClickedEvent, ColDef, ICellRendererParams } from \"ag-grid-community\";\nimport { createContext, useContext, useMemo, useState } from \"react\";\nimport type * as React from \"react\";\nimport { GrilleRegistre } from \"@/components/ui/GrilleRegistre\";\nimport { refitColumns } from \"@/components/ui/grid-theme\";\nimport {\n type ColumnVisibility,\n type ReviewColumn,\n initialColumnVisibility,\n visibleColumns,\n} from \"./document-review-logic.js\";\n\nexport interface MosaicDocumentTableRowContext {\n rowId: string;\n /** Row ids in display order — what prev/next navigation walks. */\n orderedRowIds: string[];\n /** Select another row (the panel stays open on it). */\n selectRow: (rowId: string) => void;\n /** Close the panel. */\n closeRow: () => void;\n}\n\nexport interface MosaicDocumentTableProps<T> {\n columns: ReviewColumn<T>[];\n rows: T[];\n getRowId: (row: T) => string;\n /** Overrides the model's `defaultVisible` per column id. */\n columnVisibility?: ColumnVisibility;\n /** Controlled selection. Omit for internal state. */\n selectedRowId?: string | null;\n onSelectedRowChange?: (rowId: string | null) => void;\n /** Rendered for the selected row. */\n renderPanel?: (row: T, context: MosaicDocumentTableRowContext) => React.ReactNode;\n /** Required — the host owns the language. */\n emptyMessage: string;\n className?: string;\n}\n\n// The selected row id reaches the first-column renderer through React context:\n// ag-grid-react renders cell renderers in portals of this tree, so a selection\n// change re-renders the marked button without rebuilding the column definitions.\nconst SelectedRowIdContext = createContext<string | null>(null);\n\nfunction OpenRowButton({ value, node }: ICellRendererParams) {\n const selectedRowId = useContext(SelectedRowIdContext);\n const isSelected = node.id !== undefined && node.id === selectedRowId;\n return (\n <button\n type=\"button\"\n data-slot=\"document-table-open\"\n aria-current={isSelected ? \"true\" : undefined}\n data-selected={isSelected ? \"true\" : undefined}\n className=\"text-left underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\"\n >\n {value as string}\n </button>\n );\n}\n\nexport function MosaicDocumentTable<T>({\n columns,\n rows,\n getRowId,\n columnVisibility,\n selectedRowId: controlledSelectedRowId,\n onSelectedRowChange,\n renderPanel,\n emptyMessage,\n className,\n}: MosaicDocumentTableProps<T>) {\n const [internalSelectedRowId, setInternalSelectedRowId] = useState<string | null>(null);\n const isControlled = controlledSelectedRowId !== undefined;\n const selectedRowId = isControlled ? controlledSelectedRowId : internalSelectedRowId;\n\n function select(rowId: string | null) {\n if (!isControlled) setInternalSelectedRowId(rowId);\n onSelectedRowChange?.(rowId);\n }\n\n const columnDefs = useMemo<ColDef<T>[]>(\n () =>\n visibleColumns(columns, columnVisibility ?? initialColumnVisibility(columns)).map(\n (column, columnIndex) => ({\n colId: column.id,\n headerName: column.label,\n // The column model's value, as text: null reads as an empty cell.\n valueGetter: (params) => {\n if (params.data === undefined) return \"\";\n const value = column.accessor(params.data);\n return value === null ? \"\" : String(value);\n },\n // No type inference: a boolean stays text, never a grid checkbox.\n cellDataType: false,\n sortable: false,\n filter: false,\n floatingFilter: false,\n ...(columnIndex === 0 ? { cellRenderer: OpenRowButton } : {}),\n }),\n ),\n [columns, columnVisibility],\n );\n\n function handleCellClicked(event: CellClickedEvent<T>) {\n if (event.data !== undefined) select(getRowId(event.data));\n }\n\n const orderedRowIds = rows.map(getRowId);\n const selectedRow =\n selectedRowId === null ? undefined : rows.find((row) => getRowId(row) === selectedRowId);\n\n return (\n <div data-slot=\"document-table\" className={className}>\n <SelectedRowIdContext.Provider value={selectedRowId}>\n <GrilleRegistre<T>\n lignes={rows}\n columnDefs={columnDefs}\n getRowId={getRowId}\n onCellClicked={handleCellClicked}\n suppressCellFocus\n domLayout=\"autoHeight\"\n onGridSizeChanged={refitColumns}\n messageVide={emptyMessage}\n />\n </SelectedRowIdContext.Provider>\n {selectedRow !== undefined && renderPanel\n ? renderPanel(selectedRow, {\n rowId: getRowId(selectedRow),\n orderedRowIds,\n selectRow: (rowId) => select(rowId),\n closeRow: () => select(null),\n })\n : null}\n </div>\n );\n}\n\nMosaicDocumentTable.displayName = \"MosaicDocumentTable\";\n"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"path": "src/components/document-review/column-model.ts",
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
"@base-ui/react"
|
|
8
8
|
],
|
|
9
9
|
"registryDependencies": [
|
|
10
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
11
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
12
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
10
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-select.json",
|
|
11
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-tag-input.json",
|
|
12
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-textarea.json"
|
|
13
13
|
],
|
|
14
14
|
"files": [
|
|
15
15
|
{
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"description": "MosaicEditSessionDialog — presentational \"rename / reclassify a work-in-progress session\" form modal",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
9
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
10
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-adaptive-modal.json",
|
|
9
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-input.json",
|
|
10
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-select.json"
|
|
11
11
|
],
|
|
12
12
|
"files": [
|
|
13
13
|
{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "MosaicEditableCell — table cell with double-click-to-edit",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-input.json"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
package/r/mosaic-filter-bar.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "MosaicFilterBar — responsive horizontal control bar for filter rows",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-button.json"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "Generic collapsible filter sidebar. Filter tabs + category list with counts. Reusable across agents/marketplace/templates.",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-device-provider.json"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "mosaic-grille-registre",
|
|
4
|
+
"title": "GrilleRegistre",
|
|
5
|
+
"description": "GrilleRegistre — the shared AG Grid of a registry screen: AG Grid Community, a stable row identity, and every column sortable, filterable (with a floating filter) and resizable.",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"@heroui/react",
|
|
8
|
+
"ag-grid-community",
|
|
9
|
+
"ag-grid-react",
|
|
10
|
+
"lucide-react"
|
|
11
|
+
],
|
|
12
|
+
"registryDependencies": [
|
|
13
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-document-table.json"
|
|
14
|
+
],
|
|
15
|
+
"files": [
|
|
16
|
+
{
|
|
17
|
+
"path": "src/components/registre/ChoixColonnes.tsx",
|
|
18
|
+
"type": "registry:ui",
|
|
19
|
+
"content": "/**\n * ChoixColonnes — the « visible columns » chooser of a registry screen: a HeroUI\n * Popover of Checkboxes. AG Grid Community exposes the hiding API\n * (`setColumnsVisible`) but its ready-made chooser belongs to the enterprise\n * edition, so this is the one piece of grid UI the blocks write.\n *\n * The list height is bounded by the viewport (`max-h-[60vh]`), never a pixel\n * constant: a fixed height overflows a short window and makes the first and last\n * columns unreachable.\n */\nimport { Button, Checkbox, Popover } from \"@heroui/react\";\nimport { useState } from \"react\";\nimport { type ColonneChoisie, type EtatVisibilite, estVisible } from \"./colonnes.js\";\n\nexport interface ChoixColonnesLabels {\n /** The trigger's text, given the number of hidden columns (derived each render). */\n columnsButton: (hiddenCount: number) => string;\n /** Accessible name of the checkbox group. */\n columnsGroupAriaLabel: string;\n}\n\nexport interface ChoixColonnesProps {\n colonnes: readonly ColonneChoisie[];\n visibilite: EtatVisibilite;\n onBasculer: (champ: string) => void;\n labels: ChoixColonnesLabels;\n /** Display transform of a column label (casing); identity when omitted. */\n formatLibelle?: (libelle: string) => string;\n /** For layout tests only: render the chooser already open. */\n ouvertParDefaut?: boolean;\n}\n\n// allow-undeclared-theme-token: `default` is a HeroUI theme token; these blocks require @heroui/react and its styles.\nconst OPTION_CLASS =\n \"flex cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-sm hover:bg-default\";\n\nexport function ChoixColonnes({\n colonnes,\n visibilite,\n onBasculer,\n labels,\n formatLibelle = (libelle) => libelle,\n ouvertParDefaut = false,\n}: ChoixColonnesProps) {\n const [ouvert, setOuvert] = useState(ouvertParDefaut);\n\n // Derived from the state every render, never kept apart: a separately\n // maintained counter ends up lying.\n const nbMasquees = colonnes.filter((c) => !estVisible(visibilite, c.champ)).length;\n\n return (\n <Popover isOpen={ouvert} onOpenChange={setOuvert}>\n <Button variant=\"outline\" size=\"sm\">\n {labels.columnsButton(nbMasquees)}\n </Button>\n <Popover.Content placement=\"bottom\">\n <Popover.Dialog>\n <fieldset\n aria-label={labels.columnsGroupAriaLabel}\n className=\"z-50 max-h-[60vh] w-72 overflow-y-auto border-0 p-1\"\n >\n {colonnes.map((c) => (\n <Checkbox\n key={c.champ}\n isSelected={estVisible(visibilite, c.champ)}\n onChange={() => onBasculer(c.champ)}\n >\n <Checkbox.Content className={OPTION_CLASS}>\n <Checkbox.Control>\n <Checkbox.Indicator />\n </Checkbox.Control>\n <span className=\"w-4 tabular-nums text-muted-foreground\">{c.lettre}</span>\n <span>{formatLibelle(c.libelle)}</span>\n </Checkbox.Content>\n </Checkbox>\n ))}\n </fieldset>\n </Popover.Dialog>\n </Popover.Content>\n </Popover>\n );\n}\n"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"path": "src/components/registre/GrilleRegistre.tsx",
|
|
23
|
+
"type": "registry:ui",
|
|
24
|
+
"content": "/**\n * GrilleRegistre — the shared AG Grid of a registry screen: AG Grid Community, a\n * stable row identity, and every column sortable, filterable (with a floating\n * filter) and resizable.\n *\n * THIS MODULE DECIDES NOTHING ABOUT COLUMNS. The caller passes its own\n * `columnDefs`. The grid-level behaviours a registry screen may need — in-grid\n * edit, a selected-row style, cell tooltips — are forwarded as optional props,\n * never wired in here.\n */\nimport type {\n CellClickedEvent,\n CellValueChangedEvent,\n ColDef,\n GridReadyEvent,\n GridSizeChangedEvent,\n RowClassParams,\n RowStyle,\n Theme,\n} from \"ag-grid-community\";\nimport { AllCommunityModule, ModuleRegistry } from \"ag-grid-community\";\nimport { AgGridReact } from \"ag-grid-react\";\nimport { fitGridWidthStrategy, registreGridTheme } from \"./grid-theme.js\";\n\n// Registered on first render, not at import: a host importing the package\n// without rendering a grid gets no global AG Grid side effect.\nlet modulesRegistered = false;\nfunction ensureModules(): void {\n if (modulesRegistered) return;\n ModuleRegistry.registerModules([AllCommunityModule]);\n modulesRegistered = true;\n}\n\n/** Every column sorts, filters (with a floating filter) and resizes. */\nconst DEFAUTS: ColDef = {\n resizable: true,\n sortable: true,\n filter: true,\n floatingFilter: true,\n};\n\nexport interface GrilleRegistreProps<T> {\n lignes: readonly T[];\n columnDefs: readonly ColDef<T>[];\n /** Stable row identity: a correction after a sort reaches its row. */\n getRowId: (ligne: T) => string;\n /** Global search, applied by the grid across every visible column. */\n filtreGlobal?: string;\n /** AG Grid theme; defaults to `registreGridTheme` (HeroUI variables). */\n theme?: Theme;\n onGridReady?: (e: GridReadyEvent<T>) => void;\n /** Fired when a grid cell has just been validated (in-grid edit). */\n onCelluleEditee?: (e: CellValueChangedEvent<T>) => void;\n /** Per-row style, e.g. the selected-row highlight. */\n getRowStyle?: (p: RowClassParams<T>) => RowStyle | undefined;\n /** ms before a cell tooltip shows; set when columns carry tooltips. */\n tooltipShowDelay?: number;\n /** false lets a cell take keyboard focus (needed for in-grid edit). */\n suppressCellFocus?: boolean;\n /** A cell click, e.g. to open a row's detail panel. */\n onCellClicked?: (e: CellClickedEvent<T>) => void;\n /** Fixed row height; set when a cell carries a tall control (a row action). */\n rowHeight?: number;\n /** AG Grid layout; `\"autoHeight\"` grows the grid to its rows (no inner scroll). */\n domLayout?: \"normal\" | \"autoHeight\" | \"print\";\n /** Refit columns on a size change — `refitColumns` on an autoHeight grid. */\n onGridSizeChanged?: (e: GridSizeChangedEvent<T>) => void;\n /**\n * Text of the grid's no-rows overlay, shown when `lignes` is empty. The host\n * owns the language; omitted, AG Grid shows its own default overlay text.\n */\n messageVide?: string;\n}\n\nexport function GrilleRegistre<T>({\n lignes,\n columnDefs,\n getRowId,\n filtreGlobal,\n theme = registreGridTheme,\n onGridReady,\n onCelluleEditee,\n getRowStyle,\n tooltipShowDelay,\n suppressCellFocus,\n onCellClicked,\n rowHeight,\n domLayout,\n onGridSizeChanged,\n messageVide,\n}: GrilleRegistreProps<T>) {\n ensureModules();\n // The parent sets the height unless the caller asks for autoHeight.\n return (\n <div className=\"isolate h-full min-h-0 w-full\">\n <AgGridReact<T>\n theme={theme}\n autoSizeStrategy={fitGridWidthStrategy}\n rowData={lignes as T[]}\n columnDefs={columnDefs as ColDef<T>[]}\n defaultColDef={DEFAUTS}\n quickFilterText={filtreGlobal}\n getRowId={(p) => getRowId(p.data)}\n onGridReady={onGridReady}\n onCellValueChanged={onCelluleEditee}\n onCellClicked={onCellClicked}\n getRowStyle={getRowStyle}\n tooltipShowDelay={tooltipShowDelay}\n suppressCellFocus={suppressCellFocus}\n rowHeight={rowHeight}\n domLayout={domLayout}\n onGridSizeChanged={onGridSizeChanged}\n overlayComponentParams={\n messageVide === undefined ? undefined : { noRows: { overlayText: messageVide } }\n }\n animateRows\n />\n </div>\n );\n}\n"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"path": "src/components/registre/PanneauRegistreShell.tsx",
|
|
28
|
+
"type": "registry:ui",
|
|
29
|
+
"content": "/**\n * PanneauRegistreShell — the ONE drawer shell every registry screen's side panel\n * mounts. It owns the HeroUI Drawer, the left-edge resize handle, the\n * ArrowUp/ArrowDown row navigation, the header band and the prev/next footer.\n * The body is supplied as `children`: the mounting screen puts the ROW'S FIELDS\n * FIRST there.\n *\n * Why one shell: two separately written panels drift apart on the frame, and a\n * panel that mounts a tall control first pushes every field below the fold. With\n * one shell, a new registry panel cannot diverge on the frame.\n *\n * `Drawer.Content`'s published props carry no `style` slot, so the resizable\n * width rides a CSS variable on a scoped class. `forceWidthRatio` lets a screen\n * momentarily override the width (e.g. a compare mode) without owning the\n * resize state itself.\n */\nimport { Button, Drawer } from \"@heroui/react\";\nimport { ChevronDown, ChevronUp } from \"lucide-react\";\nimport {\n type ReactNode,\n type PointerEvent as ReactPointerEvent,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from \"react\";\nimport { isEditableTarget } from \"@/components/ui/row-navigation\";\n\nconst DEFAULT_WIDTH_RATIO = 0.45;\nconst MIN_WIDTH_PX = 360;\nconst MAX_WIDTH_RATIO = 0.9;\n\n// Not user-facing text. Kept as an object-literal constant with the marker BETWEEN\n// properties: esbuild strips a statement-level `//` comment, never this one.\nconst CSS_RULES = {\n // allow-hardcoded-word: a CSS rule (the scoped width variable), not user-facing text\n width: (px: number) => `.panneau-registre-shell { --panneau-registre-width: ${px}px; }`,\n};\n\nexport interface PanneauRegistreShellLabels {\n /** Accessible name of the left-edge resize handle. */\n resizeHandle: string;\n /** Accessible name of the close trigger. */\n close: string;\n previousRow: string;\n nextRow: string;\n}\n\nexport interface PanneauRegistreShellProps {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n labels: PanneauRegistreShellLabels;\n /** The dialog's accessible name. */\n ariaLabel?: string;\n /** The header line naming the row in words. */\n contexte: string;\n /** Optional header controls (e.g. a compare toggle), left of the close trigger. */\n headerActions?: ReactNode;\n /** When set, overrides the resizable width for the duration (e.g. a compare mode). */\n forceWidthRatio?: number | null;\n onPrev: () => void;\n onNext: () => void;\n prevDisabled: boolean;\n nextDisabled: boolean;\n /** The panel body. The mounting screen puts the ROW'S FIELDS FIRST here. */\n children: ReactNode;\n}\n\nexport function PanneauRegistreShell({\n open,\n onOpenChange,\n labels,\n ariaLabel,\n contexte,\n headerActions,\n forceWidthRatio = null,\n onPrev,\n onNext,\n prevDisabled,\n nextDisabled,\n children,\n}: PanneauRegistreShellProps) {\n // null until measured on the client.\n const [widthPx, setWidthPx] = useState<number | null>(null);\n const dragStart = useRef<{ x: number; width: number } | null>(null);\n\n useEffect(() => {\n if (widthPx !== null || typeof window === \"undefined\") return;\n setWidthPx(Math.round(window.innerWidth * DEFAULT_WIDTH_RATIO));\n }, [widthPx]);\n\n const onPointerMove = useCallback((e: PointerEvent) => {\n const drag = dragStart.current;\n if (!drag) return;\n // Handle sits on the panel's LEFT edge: dragging left grows the panel.\n const dx = drag.x - e.clientX;\n const maxWidth = window.innerWidth * MAX_WIDTH_RATIO;\n setWidthPx(Math.min(maxWidth, Math.max(MIN_WIDTH_PX, drag.width + dx)));\n }, []);\n\n const onPointerUp = useCallback(() => {\n dragStart.current = null;\n window.removeEventListener(\"pointermove\", onPointerMove);\n window.removeEventListener(\"pointerup\", onPointerUp);\n }, [onPointerMove]);\n\n const onHandlePointerDown = useCallback(\n (e: ReactPointerEvent<HTMLButtonElement>) => {\n dragStart.current = {\n x: e.clientX,\n width: widthPx ?? Math.round(window.innerWidth * DEFAULT_WIDTH_RATIO),\n };\n window.addEventListener(\"pointermove\", onPointerMove);\n window.addEventListener(\"pointerup\", onPointerUp);\n },\n [widthPx, onPointerMove, onPointerUp],\n );\n\n useEffect(() => () => onPointerUp(), [onPointerUp]);\n\n // ArrowUp/ArrowDown move to the neighbour row without closing the panel.\n useEffect(() => {\n if (!open) return;\n function onKeyDown(e: KeyboardEvent) {\n if (isEditableTarget(e.target)) return;\n if (e.key === \"ArrowUp\" && !prevDisabled) {\n e.preventDefault();\n onPrev();\n } else if (e.key === \"ArrowDown\" && !nextDisabled) {\n e.preventDefault();\n onNext();\n }\n }\n // Capture phase: the drawer stops arrow keys from its own buttons before they bubble to window.\n window.addEventListener(\"keydown\", onKeyDown, true);\n return () => window.removeEventListener(\"keydown\", onKeyDown, true);\n }, [open, prevDisabled, nextDisabled, onPrev, onNext]);\n\n const resolvedWidth =\n forceWidthRatio !== null && typeof window !== \"undefined\"\n ? Math.round(window.innerWidth * forceWidthRatio)\n : (widthPx ?? MIN_WIDTH_PX);\n\n const widthRule = CSS_RULES.width(resolvedWidth);\n\n return (\n <Drawer isOpen={open} onOpenChange={onOpenChange}>\n <Drawer.Backdrop>\n <Drawer.Content placement=\"right\">\n <style>{widthRule}</style>\n <Drawer.Dialog\n aria-label={ariaLabel}\n className=\"panneau-registre-shell relative flex h-full w-full! flex-col overflow-hidden sm:w-[var(--panneau-registre-width)]! sm:min-w-[360px]! sm:max-w-[90vw]!\"\n >\n <button\n type=\"button\"\n aria-label={labels.resizeHandle}\n className=\"absolute inset-y-0 left-0 hidden w-1.5 cursor-col-resize touch-none bg-transparent hover:bg-border sm:block\"\n onPointerDown={onHandlePointerDown}\n />\n <Drawer.Header className=\"flex shrink-0 flex-row items-center justify-between gap-3\">\n <p className=\"min-w-0 truncate text-sm text-muted-foreground\">{contexte}</p>\n <div className=\"flex shrink-0 flex-row items-center gap-2\">\n {headerActions}\n <Drawer.CloseTrigger aria-label={labels.close} />\n </div>\n </Drawer.Header>\n {children}\n <Drawer.Footer className=\"flex shrink-0 flex-row items-center justify-end gap-2\">\n <Button\n variant=\"outline\"\n size=\"sm\"\n isIconOnly\n aria-label={labels.previousRow}\n isDisabled={prevDisabled}\n onPress={onPrev}\n >\n <ChevronUp className=\"h-4 w-4\" aria-hidden=\"true\" />\n </Button>\n <Button\n variant=\"outline\"\n size=\"sm\"\n isIconOnly\n aria-label={labels.nextRow}\n isDisabled={nextDisabled}\n onPress={onNext}\n >\n <ChevronDown className=\"h-4 w-4\" aria-hidden=\"true\" />\n </Button>\n </Drawer.Footer>\n </Drawer.Dialog>\n </Drawer.Content>\n </Drawer.Backdrop>\n </Drawer>\n );\n}\n"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"path": "src/components/registre/RegistreEcran.tsx",
|
|
33
|
+
"type": "registry:ui",
|
|
34
|
+
"content": "/**\n * RegistreEcran — the shared chrome of a registry screen: the fullscreen section\n * wrapper, the Escape / body-scroll-lock behaviour, and the toolbar scaffold — a\n * global search, the column chooser and the fullscreen toggle.\n *\n * It OWNS the fullscreen state (the one behaviour every registry screen wants\n * identically) and leaves the data region to `children`: a screen keeps its own\n * loading / empty / error states and its own grid (GrilleRegistre) beneath the\n * toolbar. Search and column visibility are CONTROLLED by the host, so a host\n * can keep them above a period selector and a period change resets neither.\n */\nimport { Button, SearchField, Toolbar } from \"@heroui/react\";\nimport { Maximize2, Minimize2 } from \"lucide-react\";\nimport { type ReactNode, useEffect, useState } from \"react\";\nimport { ChoixColonnes, type ChoixColonnesLabels } from \"./ChoixColonnes.js\";\nimport type { ColonneChoisie, EtatVisibilite } from \"./colonnes.js\";\n\nexport interface RegistreEcranLabels extends ChoixColonnesLabels {\n searchPlaceholder: string;\n searchAriaLabel: string;\n enterFullscreen: string;\n exitFullscreen: string;\n}\n\nexport interface RegistreEcranProps {\n /** Section landmark label. */\n ariaLabel: string;\n labels: RegistreEcranLabels;\n /** The columns the chooser offers. */\n colonnes: readonly ColonneChoisie[];\n visibilite: EtatVisibilite;\n onBasculerColonne: (champ: string) => void;\n /** Display transform of a column label in the chooser; identity when omitted. */\n formatLibelleColonne?: (libelle: string) => string;\n /** Global search text, owned by the host. */\n filtreGlobal: string;\n onFiltreGlobalChange: (valeur: string) => void;\n /** Rendered at the start of the toolbar (e.g. a period selector). */\n avantRecherche?: ReactNode;\n /** Rendered after the chooser, before the fullscreen toggle (e.g. « add »). */\n actionsToolbar?: ReactNode;\n /** The data region: the screen's loading / empty / error states and grid. */\n children: ReactNode;\n}\n\n// Not user-facing text. Kept as an object-literal constant with the marker BETWEEN\n// properties: esbuild strips a statement-level `//` comment, never this one.\nconst CSS_SELECTORS = {\n // allow-hardcoded-word: a CSS attribute selector (HeroUI data-slot names), not user-facing text\n openOverlay: \"[data-slot=select-popover], [data-slot=popover-dialog]\",\n};\n\nexport function RegistreEcran({\n ariaLabel,\n labels,\n colonnes,\n visibilite,\n onBasculerColonne,\n formatLibelleColonne,\n filtreGlobal,\n onFiltreGlobalChange,\n avantRecherche,\n actionsToolbar,\n children,\n}: RegistreEcranProps) {\n const [fullScreen, setFullScreen] = useState(false);\n\n // Escape leaves fullscreen and the page behind must not scroll; an open HeroUI\n // overlay (a select list, a popover) takes Escape first.\n useEffect(() => {\n if (!fullScreen) return;\n const onKeyDown = (e: KeyboardEvent) => {\n if (document.querySelector(CSS_SELECTORS.openOverlay)) return;\n if (e.key === \"Escape\") setFullScreen(false);\n };\n const previousOverflow = document.body.style.overflow;\n document.body.style.overflow = \"hidden\";\n window.addEventListener(\"keydown\", onKeyDown);\n return () => {\n window.removeEventListener(\"keydown\", onKeyDown);\n document.body.style.overflow = previousOverflow;\n };\n }, [fullScreen]);\n\n return (\n <section\n aria-label={ariaLabel}\n data-fullscreen={fullScreen ? \"true\" : undefined}\n // Same element in both modes so the grid keeps its sort, filters and scroll.\n className={\n fullScreen\n ? \"fixed inset-0 z-40 flex flex-col gap-4 bg-background p-4\"\n : // Phones let the page scroll so content above cannot squeeze the grid to nothing.\n \"flex min-h-[70vh] flex-1 flex-col gap-4 sm:min-h-0\"\n }\n >\n <div className=\"shrink-0\">\n <Toolbar className=\"flex flex-wrap items-center gap-2\">\n {avantRecherche}\n <SearchField\n value={filtreGlobal}\n onChange={onFiltreGlobalChange}\n aria-label={labels.searchAriaLabel}\n className=\"w-full sm:w-auto\"\n >\n <SearchField.Group className=\"h-10 min-w-64\">\n <SearchField.SearchIcon />\n {/* text-base on mobile avoids iOS Safari zoom-on-focus under 16px */}\n <SearchField.Input\n placeholder={labels.searchPlaceholder}\n className=\"text-base sm:text-sm\"\n />\n <SearchField.ClearButton />\n </SearchField.Group>\n </SearchField>\n <ChoixColonnes\n colonnes={colonnes}\n visibilite={visibilite}\n onBasculer={onBasculerColonne}\n labels={labels}\n formatLibelle={formatLibelleColonne}\n />\n {actionsToolbar}\n <Button\n variant=\"outline\"\n size=\"sm\"\n aria-pressed={fullScreen}\n onPress={() => setFullScreen((f) => !f)}\n >\n {fullScreen ? (\n <Minimize2 aria-hidden className=\"size-4\" />\n ) : (\n <Maximize2 aria-hidden className=\"size-4\" />\n )}\n {fullScreen ? labels.exitFullscreen : labels.enterFullscreen}\n </Button>\n </Toolbar>\n </div>\n\n {children}\n </section>\n );\n}\n"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"path": "src/components/registre/RegistreLigneDetail.tsx",
|
|
38
|
+
"type": "registry:ui",
|
|
39
|
+
"content": "/**\n * RegistreLigneDetail — the per-field detail of one registry row, driven by the\n * column declaration (ColonneRegistre).\n *\n * A field declared `editable` carries a pencil; a non-editable field reads the\n * host's « computed » label; a corrected field shows the host's correction line\n * (who, when, previous value). The edit is one path — `onSaveField(champ, saisie)`\n * — the same the grid cell uses. A number is edited with the host's decimal\n * separator, the format the host's validator parses.\n */\nimport { Pencil } from \"lucide-react\";\nimport { type FormEvent, type KeyboardEvent, useState } from \"react\";\nimport type { ColonneRegistre } from \"./colonnes.js\";\n\n/** The correction trace a row carries per field. */\nexport interface CorrectionChamp {\n par: string;\n leMs: number;\n valeurAvant: string | number | null;\n}\n\nexport interface RegistreLigneDetailLabels {\n /** Accessible name of a field's pencil button. */\n edit: (libelle: string) => string;\n /** Accessible name of a field's editor input. */\n fieldInput: (colonne: ColonneRegistre) => string;\n /** Shown on a non-editable field. */\n computed: string;\n save: string;\n cancel: string;\n /** The correction line of a corrected field (the host formats the date and an empty value). */\n correction: (correction: CorrectionChamp) => string;\n}\n\nexport interface RegistreLigneDetailProps {\n colonnes: readonly ColonneRegistre[];\n /** The row, read generically by field key. */\n ligne: Readonly<Record<string, string | number | null>>;\n /** Per-field correction trace, keyed by `champ`. */\n corrections?: Readonly<Record<string, CorrectionChamp | undefined>>;\n labels: RegistreLigneDetailLabels;\n /** Renders a `montant` field. */\n formatMontant: (value: number) => string;\n /** Renders a `nombre` or `entier` field. */\n formatNombre: (value: number) => string;\n /** The decimal separator a number is edited with. */\n decimalSeparator: string;\n onSaveField: (champ: string, saisie: string) => Promise<boolean>;\n}\n\nfunction editValue(value: string | number | null, decimalSeparator: string): string {\n if (value == null) return \"\";\n return typeof value === \"number\" ? String(value).replace(\".\", decimalSeparator) : value;\n}\n\nfunction FieldEditor({\n col,\n initial,\n labels,\n onSave,\n onCancel,\n}: {\n col: ColonneRegistre;\n initial: string;\n labels: RegistreLigneDetailLabels;\n onSave: (saisie: string) => Promise<void>;\n onCancel: () => void;\n}) {\n const [draft, setDraft] = useState(initial);\n const [saving, setSaving] = useState(false);\n const inputId = `registre-field-${col.champ}`;\n const label = labels.fieldInput(col);\n\n async function submit(e: FormEvent) {\n e.preventDefault();\n setSaving(true);\n await onSave(draft);\n setSaving(false);\n }\n\n function onKeyDown(e: KeyboardEvent) {\n if (e.key === \"Escape\") {\n e.stopPropagation();\n onCancel();\n }\n }\n\n const inputClass =\n \"h-8 min-w-0 flex-1 rounded-md border border-border bg-background px-2 text-base sm:text-sm\";\n\n return (\n <form onSubmit={submit} onKeyDown={onKeyDown} className=\"flex flex-wrap items-center gap-2\">\n {col.valeurs ? (\n <select\n id={inputId}\n aria-label={label}\n value={draft}\n onChange={(e) => setDraft(e.target.value)}\n className={inputClass}\n >\n <option value=\"\">—</option>\n {col.valeurs.map((v) => (\n <option key={v} value={v}>\n {v}\n </option>\n ))}\n </select>\n ) : (\n <input\n id={inputId}\n aria-label={label}\n value={draft}\n onChange={(e) => setDraft(e.target.value)}\n // biome-ignore lint/a11y/noAutofocus: the field was opened on purpose by the pencil\n autoFocus\n className={inputClass}\n />\n )}\n <button\n type=\"submit\"\n disabled={saving}\n className=\"h-8 rounded-md bg-primary px-3 text-sm text-primary-foreground disabled:opacity-50\"\n >\n {labels.save}\n </button>\n <button\n type=\"button\"\n onClick={onCancel}\n className=\"h-8 rounded-md border border-border px-3 text-sm\"\n >\n {labels.cancel}\n </button>\n </form>\n );\n}\n\n// allow-undeclared-theme-token: `default` is a HeroUI theme token; these blocks require @heroui/react and its styles.\nconst PENCIL_CLASS =\n \"inline-flex size-7 shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-default hover:text-foreground\";\n\nexport function RegistreLigneDetail({\n colonnes,\n ligne,\n corrections,\n labels,\n formatMontant,\n formatNombre,\n decimalSeparator,\n onSaveField,\n}: RegistreLigneDetailProps) {\n const [editing, setEditing] = useState<string | null>(null);\n\n function displayValue(col: ColonneRegistre, value: string | number | null): string {\n if (value == null || value === \"\") return \"\";\n if (col.type === \"montant\") return formatMontant(Number(value));\n if (col.type === \"nombre\" || col.type === \"entier\") return formatNombre(Number(value));\n return String(value);\n }\n\n return (\n <dl className=\"divide-y divide-border rounded-md border border-border\">\n {colonnes.map((col) => {\n const value = ligne[col.champ] ?? null;\n const correction = corrections?.[col.champ];\n return (\n <div\n key={col.champ}\n data-field={col.champ}\n className={`grid gap-1 px-3 py-2 sm:grid-cols-[11rem_1fr] sm:gap-3 ${correction ? \"bg-amber-50 dark:bg-amber-950/30\" : \"\"}`}\n >\n <dt className=\"text-muted-foreground\">\n {col.libelle} <span className=\"text-xs\">· {col.lettre}</span>\n </dt>\n <dd className=\"flex min-w-0 flex-col gap-1\">\n {editing === col.champ ? (\n <FieldEditor\n col={col}\n initial={editValue(value, decimalSeparator)}\n labels={labels}\n onCancel={() => setEditing(null)}\n onSave={async (saisie) => {\n if (await onSaveField(col.champ, saisie)) setEditing(null);\n }}\n />\n ) : (\n <div className=\"flex items-center justify-between gap-2\">\n <span className=\"min-w-0 break-words tabular-nums\">\n {displayValue(col, value)}\n </span>\n {col.editable ? (\n <button\n type=\"button\"\n aria-label={labels.edit(col.libelle)}\n onClick={() => setEditing(col.champ)}\n className={PENCIL_CLASS}\n >\n <Pencil className=\"size-3.5\" aria-hidden=\"true\" />\n </button>\n ) : (\n <span className=\"shrink-0 text-xs text-muted-foreground\">\n {labels.computed}\n </span>\n )}\n </div>\n )}\n {correction && (\n <p className=\"text-xs text-amber-800 dark:text-amber-300\">\n {labels.correction(correction)}\n </p>\n )}\n </dd>\n </div>\n );\n })}\n </dl>\n );\n}\n"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"path": "src/components/registre/colonnes.ts",
|
|
43
|
+
"type": "registry:ui",
|
|
44
|
+
"content": "/**\n * The column/field declaration a registry screen supplies. It is DATA, never a\n * code branch: the grid, the column chooser and the per-field edit all read it,\n * so a new registry screen declares its columns without touching a component.\n */\nexport type TypeColonneRegistre = \"texte\" | \"nombre\" | \"entier\" | \"montant\";\n\nexport interface ColonneRegistre {\n /** The key of the field on the row (technical identity). */\n champ: string;\n /** The source column letter, shown in the chooser and the panel. */\n lettre: string;\n /** The displayed label. */\n libelle: string;\n /** Drives formatting: the panel renders a number per this type. */\n type: TypeColonneRegistre;\n /** true = pencil + edit; false = the host's « computed » label. */\n editable: boolean;\n /** Optional closed set of a choice field, rendered as a menu. */\n valeurs?: readonly string[];\n /** Optional minimum width hint for the grid column. */\n largeurMin?: number;\n}\n\n/** The columns a chooser offers: only identity and label are needed. */\nexport interface ColonneChoisie {\n champ: string;\n lettre: string;\n libelle: string;\n}\n\n/** Which columns the user wants to see. true = visible; an absent field reads as visible. */\nexport type EtatVisibilite = Readonly<Record<string, boolean>>;\n\nexport function estVisible(etat: EtatVisibilite, champ: string): boolean {\n return etat[champ] !== false;\n}\n"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"path": "src/components/registre/grid-theme.ts",
|
|
48
|
+
"type": "registry:ui",
|
|
49
|
+
"content": "/**\n * The default AG Grid theme of a registry grid (GrilleRegistre), on AG Grid's\n * Theming API (no `ag-theme-*` class). Every colour is a HeroUI theme variable:\n * the registry blocks are built on HeroUI, so a host rendering them already\n * ships those variables. A host with its own brand passes its own theme through\n * GrilleRegistre's `theme` prop instead.\n */\nimport type { SizeColumnsToFitGridStrategy } from \"ag-grid-community\";\nimport { themeQuartz } from \"ag-grid-community\";\n\nexport const registreGridTheme = themeQuartz.withParams({\n accentColor: \"var(--accent)\",\n backgroundColor: \"var(--surface)\",\n foregroundColor: \"var(--foreground)\",\n textColor: \"var(--foreground)\",\n borderColor: \"var(--border)\",\n headerBackgroundColor: \"var(--surface-secondary)\",\n headerTextColor: \"var(--surface-secondary-foreground)\",\n headerFontWeight: 600,\n fontFamily: \"var(--font-sans)\",\n fontSize: 14,\n headerFontSize: 13,\n rowHeight: 40,\n headerHeight: 44,\n spacing: 8,\n wrapperBorderRadius: 8,\n rowHoverColor: \"var(--surface-hover)\",\n // No `selectedRowBackgroundColor`: the grid does not use the native AG Grid row\n // selection. A host highlights its selected row through `getRowStyle`.\n});\n\n/** Columns fill the grid's width instead of leaving a blank strip on the right. */\nexport const fitGridWidthStrategy: SizeColumnsToFitGridStrategy = {\n type: \"fitGridWidth\",\n};\n\n/** fitGridWidth sizes once; refit whenever the grid's width changes (pass to `onGridSizeChanged`). */\nexport function refitColumns(e: { api: { sizeColumnsToFit: () => void } }): void {\n e.api.sizeColumnsToFit();\n}\n"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"type": "registry:ui"
|
|
53
|
+
}
|
package/r/mosaic-main-nav.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "Generic responsive top-nav. Desktop: inline link strip. Mobile: hamburger + drawer. Items are props.",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-device-provider.json"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"description": "MosaicMarketplaceCard — standalone agent-type gallery tile (M1)",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
9
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-badge.json",
|
|
9
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-card.json"
|
|
10
10
|
],
|
|
11
11
|
"files": [
|
|
12
12
|
{
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"description": "Responsive marketplace grid/list (responsive-pair). Install/uninstall actions, rating, downloads, price.",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
9
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
10
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-adaptive-modal.json",
|
|
9
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-device-provider.json",
|
|
10
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-filter-sidebar.json"
|
|
11
11
|
],
|
|
12
12
|
"files": [
|
|
13
13
|
{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "MosaicMatchInput — autocomplete carrying a match state",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-combobox.json"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "MosaicMemoryDashboard — landing surface of a knowledge base: a header with a title and a primary \"add\" action, a row of host-supplied summary statistics, an optional slot for a search bar, a host-controlled view-mode toggle (tiles / rows), and a slot for results.",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-button.json"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "MosaicMemorySearch — search bar over a host-supplied knowledge base: a query input, optional filter chips (by type/tag), a clear action, and a result-count indication.",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-input.json"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "MosaicMentionInput — text input that opens an anchored, host-owned list of mentionable entries when the host-chosen trigger character is typed.",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-popover.json"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"description": "Responsive message list (responsive-pair). Desktop: sticky header + search. Mobile: compact list.",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
9
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-device-provider.json",
|
|
9
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-message-card.json"
|
|
10
10
|
],
|
|
11
11
|
"files": [
|
|
12
12
|
{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "MosaicMessageSearch — search bar over the messages of a single, already-open conversation: a query input and a clear action, with the matching results rendered entirely by the host.",
|
|
6
6
|
"dependencies": [],
|
|
7
7
|
"registryDependencies": [
|
|
8
|
-
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.
|
|
8
|
+
"https://cdn.jsdelivr.net/npm/@vantageos/mosaic-blocks@0.5.38-alpha/r/mosaic-input.json"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
{
|