@vantageos/mosaic-blocks 0.5.35-alpha → 0.5.37-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.
Files changed (150) hide show
  1. package/README.md +11 -8
  2. package/dist/index.cjs +828 -40
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.cts +415 -11
  5. package/dist/index.d.ts +415 -11
  6. package/dist/index.js +809 -41
  7. package/dist/index.js.map +1 -1
  8. package/dist/styles.css +18 -0
  9. package/package.json +20 -7
  10. package/r/mosaic-accordion.json +1 -2
  11. package/r/mosaic-activity-feed.json +16 -0
  12. package/r/mosaic-adaptive-grid.json +18 -0
  13. package/r/mosaic-adaptive-modal.json +18 -0
  14. package/r/mosaic-adaptive-navigation.json +18 -0
  15. package/r/mosaic-add-memory-form.json +25 -0
  16. package/r/mosaic-admin-only-guard.json +18 -0
  17. package/r/mosaic-agent-builder-modal.json +23 -0
  18. package/r/mosaic-agent-card.json +16 -0
  19. package/r/mosaic-agent-chat.json +26 -0
  20. package/r/mosaic-agent-composer.json +28 -0
  21. package/r/mosaic-agent-editor.json +25 -0
  22. package/r/mosaic-agent-list.json +21 -0
  23. package/r/mosaic-agent-preview.json +21 -0
  24. package/r/mosaic-alert-dialog.json +23 -0
  25. package/r/mosaic-animated-list.json +16 -0
  26. package/r/mosaic-api-key-panel.json +21 -0
  27. package/r/mosaic-app-sidebar.json +18 -0
  28. package/r/mosaic-approval-prompt.json +21 -0
  29. package/r/mosaic-artifact-canvas-adapter.json +26 -0
  30. package/r/mosaic-artifact-chart.json +18 -0
  31. package/r/mosaic-artifact-checklist.json +18 -0
  32. package/r/mosaic-artifact-data-table.json +18 -0
  33. package/r/mosaic-artifact-document.json +16 -0
  34. package/r/mosaic-artifact-library.json +18 -0
  35. package/r/mosaic-artifact-save-as-memory-form.json +24 -0
  36. package/r/mosaic-artifact-version-history.json +16 -0
  37. package/r/mosaic-avatar.json +18 -0
  38. package/r/mosaic-badge.json +23 -0
  39. package/r/mosaic-blurred-orb.json +16 -0
  40. package/r/mosaic-button.json +24 -0
  41. package/r/mosaic-callout.json +23 -0
  42. package/r/mosaic-card.json +16 -0
  43. package/r/mosaic-chat-composer.json +21 -0
  44. package/r/mosaic-chat-message.json +23 -0
  45. package/r/mosaic-chat-sidebar.json +21 -0
  46. package/r/mosaic-chat-thread.json +21 -0
  47. package/r/mosaic-checkbox.json +18 -0
  48. package/r/mosaic-clerk-org-switcher.json +18 -0
  49. package/r/mosaic-clerk-webhook-handler.json +18 -0
  50. package/r/mosaic-collapsible.json +18 -0
  51. package/r/mosaic-combobox.json +18 -0
  52. package/r/mosaic-counter.json +16 -0
  53. package/r/mosaic-dashboard-content.json +18 -0
  54. package/r/mosaic-dashboard-header.json +18 -0
  55. package/r/mosaic-dashboard-layout.json +20 -0
  56. package/r/mosaic-data-table.json +16 -0
  57. package/r/mosaic-delete-confirmation-dialog.json +18 -0
  58. package/r/mosaic-device-provider.json +16 -0
  59. package/r/mosaic-document-table.json +52 -0
  60. package/r/mosaic-document-upload.json +21 -0
  61. package/r/mosaic-drawer.json +23 -0
  62. package/r/mosaic-dropdown-menu.json +18 -0
  63. package/r/mosaic-edit-memory-dialog.json +27 -0
  64. package/r/mosaic-edit-session-dialog.json +25 -0
  65. package/r/mosaic-editable-cell.json +23 -0
  66. package/r/mosaic-empty-state.json +16 -0
  67. package/r/mosaic-falling-pattern.json +16 -0
  68. package/r/mosaic-feature-3col.json +16 -0
  69. package/r/mosaic-feature-centered-media.json +16 -0
  70. package/r/mosaic-field.json +18 -0
  71. package/r/mosaic-filter-bar.json +18 -0
  72. package/r/mosaic-filter-sidebar.json +18 -0
  73. package/r/mosaic-footer-simple.json +16 -0
  74. package/r/mosaic-grille-registre.json +53 -0
  75. package/r/mosaic-hero-split.json +16 -0
  76. package/r/mosaic-input-group.json +16 -0
  77. package/r/mosaic-input.json +18 -0
  78. package/r/mosaic-integrations-badge.json +16 -0
  79. package/r/mosaic-kanban-board.json +21 -0
  80. package/r/mosaic-logos-grid.json +16 -0
  81. package/r/mosaic-main-nav.json +18 -0
  82. package/r/mosaic-markdown.json +21 -0
  83. package/r/mosaic-marketplace-card.json +24 -0
  84. package/r/mosaic-marketplace-list.json +20 -0
  85. package/r/mosaic-match-input.json +23 -0
  86. package/r/mosaic-memory-card.json +21 -0
  87. package/r/mosaic-memory-dashboard.json +23 -0
  88. package/r/mosaic-memory-grid.json +21 -0
  89. package/r/mosaic-memory-list.json +21 -0
  90. package/r/mosaic-memory-search.json +23 -0
  91. package/r/mosaic-mention-input.json +23 -0
  92. package/r/mosaic-message-card.json +16 -0
  93. package/r/mosaic-message-list.json +19 -0
  94. package/r/mosaic-message-search.json +18 -0
  95. package/r/mosaic-model-selector.json +23 -0
  96. package/r/mosaic-module-card.json +16 -0
  97. package/r/mosaic-module-library.json +18 -0
  98. package/r/mosaic-multi-tenant-provider.json +19 -0
  99. package/r/mosaic-navbar.json +16 -0
  100. package/r/mosaic-org-context-display.json +18 -0
  101. package/r/mosaic-org-panel.json +19 -0
  102. package/r/mosaic-org-profile-page.json +18 -0
  103. package/r/mosaic-org-switcher.json +16 -0
  104. package/r/mosaic-pdf-viewer.json +23 -0
  105. package/r/mosaic-popover.json +23 -0
  106. package/r/mosaic-preferences-panel.json +18 -0
  107. package/r/mosaic-pricing-card.json +16 -0
  108. package/r/mosaic-profile-panel.json +18 -0
  109. package/r/mosaic-progress.json +18 -0
  110. package/r/mosaic-quick-action-card.json +16 -0
  111. package/r/mosaic-quick-actions-menu.json +18 -0
  112. package/r/mosaic-quick-agent-selector.json +19 -0
  113. package/r/mosaic-radio-group.json +18 -0
  114. package/r/mosaic-reply-input.json +21 -0
  115. package/r/mosaic-resizable-split-pane.json +23 -0
  116. package/r/mosaic-save-chat-as-memory-form.json +25 -0
  117. package/r/mosaic-save-template-modal.json +27 -0
  118. package/r/mosaic-scroll-area.json +18 -0
  119. package/r/mosaic-select.json +18 -0
  120. package/r/mosaic-selector-modal.json +18 -0
  121. package/r/mosaic-separator.json +18 -0
  122. package/r/mosaic-session-card.json +24 -0
  123. package/r/mosaic-session-list.json +21 -0
  124. package/r/mosaic-sign-in-layout.json +18 -0
  125. package/r/mosaic-sign-up-layout.json +18 -0
  126. package/r/mosaic-skeleton.json +23 -0
  127. package/r/mosaic-slider.json +18 -0
  128. package/r/mosaic-stats-grid.json +16 -0
  129. package/r/mosaic-step-pipeline.json +21 -0
  130. package/r/mosaic-switch.json +18 -0
  131. package/r/mosaic-tabs.json +18 -0
  132. package/r/mosaic-tag-input.json +23 -0
  133. package/r/mosaic-template-agent-card.json +21 -0
  134. package/r/mosaic-template-category-chips.json +21 -0
  135. package/r/mosaic-template-gallery.json +20 -0
  136. package/r/mosaic-template-list.json +21 -0
  137. package/r/mosaic-template-management-panel.json +25 -0
  138. package/r/mosaic-testimonials-grid.json +16 -0
  139. package/r/mosaic-textarea.json +16 -0
  140. package/r/mosaic-theme-provider.json +18 -0
  141. package/r/mosaic-theme-toggle.json +16 -0
  142. package/r/mosaic-thread-indicator.json +21 -0
  143. package/r/mosaic-thread-view.json +21 -0
  144. package/r/mosaic-toast.json +28 -0
  145. package/r/mosaic-tool-toggle-list.json +23 -0
  146. package/r/mosaic-tooltip.json +18 -0
  147. package/r/mosaic-url-scraper.json +21 -0
  148. package/r/mosaic-user-button.json +18 -0
  149. package/r/use-effective-workspace-id.json +18 -0
  150. package/registry.json +77 -130
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # @vantageos/mosaic-blocks
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/@vantageos/mosaic-blocks)](https://www.npmjs.com/package/@vantageos/mosaic-blocks)
4
- [![CI](https://github.com/vantageos-agency/mosaic-blocks/actions/workflows/ci.yml/badge.svg)](https://github.com/vantageos-agency/mosaic-blocks/actions/workflows/ci.yml)
4
+ [![Gate: pnpm gate:local](https://img.shields.io/badge/gate-pnpm%20gate%3Alocal-blue)](docs/CONTRIBUTING.md#delivering-a-pr-with-actions-off)
5
5
  [![License: FSL-1.1-Apache-2.0](https://img.shields.io/badge/license-FSL--1.1--Apache--2.0-blue)](LICENSE)
6
6
 
7
7
  **Production-ready composed UI blocks for VantageOS products.** Built on React 19 + Tailwind v4 + `@base-ui/react`. Ships mobile-first, multi-tenant auth, OKLCH theming, and full bilingual (FR+EN) out of the box.
@@ -10,7 +10,7 @@
10
10
 
11
11
  ## 1. Hero & Positioning
12
12
 
13
- `@vantageos/mosaic-blocks` is the **React composed-block layer** of the VantageOS Mosaic design system. It provides 190 opinionated, fully-typed UI components that integrate natively with:
13
+ `@vantageos/mosaic-blocks` is the **React composed-block layer** of the VantageOS Mosaic design system. It provides 192 opinionated, fully-typed UI components that integrate natively with:
14
14
 
15
15
  - **Clerk** — auth sign-in/up flows, org switcher, RBAC, webhook sync
16
16
  - **Convex** — real-time data binding ready
@@ -54,7 +54,7 @@ pnpm add @vantageos/mosaic-blocks
54
54
  | `tailwindcss` | `^4.3.1` | Always |
55
55
  | `@base-ui/react` | `^1.5.0` | Auto-installed (direct dep) |
56
56
  | `@clerk/nextjs` | `^7` | Using any auth component |
57
- | `@vantageos/cloud-identity` | `>=0.2.0 <0.8.0` | `MosaicMultiTenantProvider` |
57
+ | `@vantageos/cloud-identity` | `>=0.6.0` | `MosaicMultiTenantProvider` |
58
58
  | `svix` | `^1.0.0` | `MosaicClerkWebhookHandler` only |
59
59
 
60
60
  ```bash
@@ -169,7 +169,7 @@ For OKLCH design tokens, pair with `@vantageos/mosaic-tokens` — see [Section 1
169
169
 
170
170
  ## 6. Component Catalogue Summary
171
171
 
172
- 190 exported `Mosaic*` components across 9 sections (303 total named exports including hooks, variant helpers, and unprefixed aliases such as `Tooltip`/`Accordion`). This count is enforced by `src/__tests__/readme-matches-exports.test.ts` — it fails CI if this README drifts from `src/index.ts` again. Full reference: [docs/components-catalog.md](docs/components-catalog.md).
172
+ 192 exported `Mosaic*` components across 9 sections (323 total named exports including hooks, variant helpers, and unprefixed aliases such as `Tooltip`/`Accordion`). This count is enforced by `src/__tests__/readme-matches-exports.test.ts` — it fails CI if this README drifts from `src/index.ts` again. Full reference: [docs/components-catalog.md](docs/components-catalog.md).
173
173
 
174
174
  > There is **no "Debate" section**. No `Mosaic*` debate component (room/timer/participant) is exported by this package — despite the "absorbed from anydebate" origin story below, the debate UI was never ported. If you need debate-room UI, it does not exist here yet.
175
175
 
@@ -187,6 +187,8 @@ For OKLCH design tokens, pair with `@vantageos/mosaic-tokens` — see [Section 1
187
187
 
188
188
  All exports: `import { ComponentName } from "@vantageos/mosaic-blocks"`
189
189
 
190
+ **Registry-screen blocks** (`src/components/registre/`): `GrilleRegistre` (AG Grid Community grid, every column sortable/filterable/resizable, stable row id), `RegistreEcran` (fullscreen section + toolbar: global search, column chooser, fullscreen toggle), `PanneauRegistreShell` (resizable HeroUI drawer with ArrowUp/ArrowDown row navigation) and `RegistreLigneDetail` (declaration-driven per-field detail and edit), plus `ChoixColonnes`, the `ColonneRegistre` declaration type and `registreGridTheme`. Columns, row shape, labels and formatters are props. They need the peer dependencies `@heroui/react` (with its styles), `ag-grid-community`, `ag-grid-react` and `lucide-react`.
191
+
190
192
  ---
191
193
 
192
194
  ## 7. Auth Integration
@@ -365,6 +367,7 @@ export default function DashboardPage() {
365
367
  heading="Recent activity"
366
368
  viewAllLabel="View all"
367
369
  emptyMessage="No activity yet"
370
+ formatMessageCount={(count) => `${count} messages`}
368
371
  />
369
372
  </div>
370
373
  </MosaicDashboardLayout>
@@ -470,7 +473,7 @@ This package follows [Semantic Versioning](https://semver.org/). While in alpha
470
473
 
471
474
  | Version | Status | Notes |
472
475
  |---|---|---|
473
- | `0.5.17-alpha` | Current | 190 exported `Mosaic*` components — adds `MosaicResizableSplitPane` (presentational resizable two-pane content layout: drag or arrow-key resize, host-controlled width and collapsed state; forms a pair with `MosaicPdfViewer` for side-by-side document preview + edit panel) — superseded row below kept for history |
476
+ | `0.5.17-alpha` | Current | 192 exported `Mosaic*` components — adds `MosaicResizableSplitPane` (presentational resizable two-pane content layout: drag or arrow-key resize, host-controlled width and collapsed state; forms a pair with `MosaicPdfViewer` for side-by-side document preview + edit panel) — superseded row below kept for history |
474
477
  | `0.5.16-alpha` | Historical | 136 exported `Mosaic*` components — adds `MosaicPdfViewer` (presentational inline PDF preview via the browser's native PDF renderer: host-controlled page navigation + zoom, local loading/error status, no PDF library, no network call by the component itself) — superseded by the Current row above |
475
478
  | `0.5.15-alpha` | Historical | 135 exported `Mosaic*` components — adds `MosaicToast` + `MosaicToastProvider` (presentational ephemeral notification: 4 variants, optional `durationMs` auto-dismiss, host-controlled action node; provider positions the stack top-right/top-center/bottom-right/bottom-center) — superseded by the Current row above |
476
479
  | `0.5.14-alpha` | Historical | 133 exported `Mosaic*` components — no new component: adds `scripts/docs-counts.mjs`, a generator that derives every README.md / docs/components-catalog.md component/export count from `src/index.ts` (`pnpm docs:counts` writes, `pnpm docs:counts --check` verifies without writing, wired into CI's Gates job) — closes the class of defect where a count goes stale only AFTER two branches compose, invisible to any per-branch CI run — superseded by the Current row above |
@@ -503,12 +506,12 @@ Quick summary:
503
506
  1. Fork and clone the repo
504
507
  2. `pnpm install` at repo root
505
508
  3. `pnpm build` — compiles the package
506
- 4. `pnpm test` — runs vitest suite (557+ tests; exact count grows with every PR, see CI output)
509
+ 4. `pnpm test` — runs vitest suite (557+ tests; exact count grows with every PR, run `pnpm test` for the live count)
507
510
  5. `pnpm lint` — biome check
508
511
  6. `pnpm storybook` — component sandbox at localhost:6006
509
- 7. Open a PR — CI gate has 7 required checks (Lint, Typecheck, Test, Parse guard, Build, Sandbox build, React-doctor — see `.github/workflows/ci.yml`)
512
+ 7. Run `pnpm gate:local` (it runs every step of `.github/workflows/ci.yml` locally and prints an `N run / M total` summary), then open a PR with that summary line in the body
510
513
 
511
- All PRs require a passing CI and a review. See [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) for system design and [docs/adr/](docs/adr/) for architecture decisions.
514
+ GitHub Actions is off on this repository: a PR is gated by the author's `pnpm gate:local` run plus the reviewer's fresh-clone rerun (see [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md#delivering-a-pr-with-actions-off)), never by a CI status. See [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) for system design and [docs/adr/](docs/adr/) for architecture decisions.
512
515
 
513
516
  ---
514
517