@vantageos/mosaic-blocks 0.5.34-alpha → 0.5.35-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 +4 -4
- package/dist/index.cjs +1185 -67
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1055 -7
- package/dist/index.d.ts +1055 -7
- package/dist/index.js +1166 -68
- package/dist/index.js.map +1 -1
- package/package.json +28 -21
- package/r/mosaic-accordion.json +19 -0
- package/registry.json +144 -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.35-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",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"files": [
|
|
24
24
|
"dist",
|
|
25
25
|
"registry.json",
|
|
26
|
+
"r",
|
|
26
27
|
"README.md",
|
|
27
28
|
"LICENSE"
|
|
28
29
|
],
|
|
@@ -51,27 +52,12 @@
|
|
|
51
52
|
"type": "git",
|
|
52
53
|
"url": "git+https://github.com/vantageos-agency/mosaic-blocks.git"
|
|
53
54
|
},
|
|
54
|
-
"scripts": {
|
|
55
|
-
"build": "tsup && node scripts/prepend-use-client.mjs && node scripts/copy-assets.mjs",
|
|
56
|
-
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json",
|
|
57
|
-
"lint": "biome check .",
|
|
58
|
-
"test": "vitest run",
|
|
59
|
-
"test:browser": "playwright test",
|
|
60
|
-
"sandbox:build": "cd sandbox && pnpm build",
|
|
61
|
-
"prebuild": "rimraf dist",
|
|
62
|
-
"sync-versions": "node scripts/sync-versions.mjs",
|
|
63
|
-
"docs:counts": "node scripts/docs-counts.mjs",
|
|
64
|
-
"registry:derive": "node scripts/registry-json-derive.mjs",
|
|
65
|
-
"parse-guard": "node scripts/parse-guard.mjs",
|
|
66
|
-
"storybook": "storybook dev -p 6006",
|
|
67
|
-
"build-storybook": "storybook build",
|
|
68
|
-
"prepublishOnly": "npm run build"
|
|
69
|
-
},
|
|
70
55
|
"peerDependencies": {
|
|
71
56
|
"@clerk/nextjs": "^7",
|
|
72
|
-
"@vantageos/cloud-identity": "
|
|
57
|
+
"@vantageos/cloud-identity": ">=0.2.0 <0.8.0",
|
|
73
58
|
"react": "^19",
|
|
74
59
|
"react-dom": "^19",
|
|
60
|
+
"recharts": "^2.12.0 || ^3.0.0",
|
|
75
61
|
"svix": "^1.0.0",
|
|
76
62
|
"tailwindcss": "^4.3.1"
|
|
77
63
|
},
|
|
@@ -82,13 +68,17 @@
|
|
|
82
68
|
"@vantageos/cloud-identity": {
|
|
83
69
|
"optional": true
|
|
84
70
|
},
|
|
85
|
-
"
|
|
71
|
+
"recharts": {
|
|
86
72
|
"optional": true
|
|
73
|
+
},
|
|
74
|
+
"svix": {
|
|
75
|
+
"optional": true,
|
|
76
|
+
"reason": "Kept at ^1.0.0 on purpose: svix 2.x Webhook.verify() returns undefined instead of the parsed event, which MosaicClerkWebhookHandler reads as evt.type. Widen only together with that handler."
|
|
87
77
|
}
|
|
88
78
|
},
|
|
89
79
|
"dependencies": {
|
|
90
80
|
"@base-ui/react": "^1.5.0",
|
|
91
|
-
"@vantageos/mosaic-tokens": "^0.
|
|
81
|
+
"@vantageos/mosaic-tokens": "^0.7.0",
|
|
92
82
|
"class-variance-authority": "^0.7.1"
|
|
93
83
|
},
|
|
94
84
|
"devDependencies": {
|
|
@@ -107,6 +97,7 @@
|
|
|
107
97
|
"jsdom": "^26.1.0",
|
|
108
98
|
"react": "^19",
|
|
109
99
|
"react-dom": "^19",
|
|
100
|
+
"recharts": "^2.12.0",
|
|
110
101
|
"rimraf": "^6.0.1",
|
|
111
102
|
"storybook": "^10.4.6",
|
|
112
103
|
"svix": "^1.0.0",
|
|
@@ -114,5 +105,21 @@
|
|
|
114
105
|
"tsup": "^8.5.0",
|
|
115
106
|
"typescript": "^5.8.3",
|
|
116
107
|
"vitest": "^3.2.3"
|
|
108
|
+
},
|
|
109
|
+
"scripts": {
|
|
110
|
+
"build": "tsup && node scripts/prepend-use-client.mjs && node scripts/copy-assets.mjs",
|
|
111
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json",
|
|
112
|
+
"lint": "biome check .",
|
|
113
|
+
"test": "vitest run",
|
|
114
|
+
"test:browser": "playwright test",
|
|
115
|
+
"sandbox:build": "cd sandbox && pnpm build",
|
|
116
|
+
"prebuild": "rimraf dist",
|
|
117
|
+
"sync-versions": "node scripts/sync-versions.mjs",
|
|
118
|
+
"docs:counts": "node scripts/docs-counts.mjs",
|
|
119
|
+
"registry:derive": "node scripts/registry-json-derive.mjs",
|
|
120
|
+
"build:registry-items": "node scripts/build-registry-items.mjs",
|
|
121
|
+
"parse-guard": "node scripts/parse-guard.mjs",
|
|
122
|
+
"storybook": "storybook dev -p 6006",
|
|
123
|
+
"build-storybook": "storybook build"
|
|
117
124
|
}
|
|
118
|
-
}
|
|
125
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "mosaic-accordion",
|
|
4
|
+
"title": "MosaicAccordion",
|
|
5
|
+
"description": "MosaicAccordion — @base-ui/react Accordion primitive",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"@base-ui/react"
|
|
8
|
+
],
|
|
9
|
+
"registryDependencies": [],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "src/components/accordion/MosaicAccordion.tsx",
|
|
13
|
+
"type": "registry:ui",
|
|
14
|
+
"content": "/**\n * MosaicAccordion — @base-ui/react Accordion primitive\n *\n * Builds on Accordion.Root + Accordion.Item + Accordion.Header +\n * Accordion.Trigger + Accordion.Panel.\n * Supports single and multiple expansion modes.\n * role=button + aria-expanded + aria-controls managed by the primitive.\n *\n * data-slot=\"accordion\" on Root, \"accordion-item\" on Item,\n * \"accordion-trigger\" on Trigger, \"accordion-panel\" on Panel.\n * Styling: Tailwind v4 semantic tokens only.\n */\n\nimport { Accordion } from \"@base-ui/react/accordion\";\nimport type * as React from \"react\";\n\n// ── Utility ──────────────────────────────────────────────────────────────────\n\nfunction cn(...classes: (string | undefined | null | false)[]): string {\n return classes.filter(Boolean).join(\" \");\n}\n\n// ── Props ─────────────────────────────────────────────────────────────────────\n\nexport interface MosaicAccordionProps extends Accordion.Root.Props {\n className?: string;\n ref?: React.Ref<HTMLDivElement>;\n}\n\nexport interface MosaicAccordionItemProps extends Accordion.Item.Props {\n className?: string;\n ref?: React.Ref<HTMLDivElement>;\n}\n\nexport interface MosaicAccordionTriggerProps extends Omit<Accordion.Trigger.Props, \"ref\"> {\n className?: string;\n ref?: React.Ref<HTMLButtonElement>;\n}\n\nexport interface MosaicAccordionPanelProps extends Accordion.Panel.Props {\n className?: string;\n ref?: React.Ref<HTMLDivElement>;\n}\n\n// ── Components ────────────────────────────────────────────────────────────────\n\n/**\n * MosaicAccordion — production Accordion root for @vantageos/mosaic-blocks.\n *\n * Compose with MosaicAccordionItem, MosaicAccordionTrigger, MosaicAccordionPanel.\n * By default, only one item can be open at a time (openMultiple={false}).\n *\n * @example\n * <MosaicAccordion>\n * <MosaicAccordionItem value=\"item-1\">\n * <Accordion.Header>\n * <MosaicAccordionTrigger>Section 1</MosaicAccordionTrigger>\n * </Accordion.Header>\n * <MosaicAccordionPanel>Content 1</MosaicAccordionPanel>\n * </MosaicAccordionItem>\n * </MosaicAccordion>\n */\nexport function MosaicAccordion({ className, ref, ...props }: MosaicAccordionProps) {\n return (\n <Accordion.Root\n ref={ref}\n data-slot=\"accordion\"\n className={cn(\"w-full divide-y divide-border\", className)}\n {...props}\n />\n );\n}\n\nMosaicAccordion.displayName = \"MosaicAccordion\";\n\n/**\n * MosaicAccordionItem — individual accordion item wrapper.\n * Must supply a unique `value` prop.\n */\nexport function MosaicAccordionItem({ className, ref, ...props }: MosaicAccordionItemProps) {\n return (\n <Accordion.Item\n ref={ref}\n data-slot=\"accordion-item\"\n className={cn(\"py-0\", className)}\n {...props}\n />\n );\n}\n\nMosaicAccordionItem.displayName = \"MosaicAccordionItem\";\n\n/**\n * MosaicAccordionTrigger — toggle button inside an accordion item header.\n * Must be placed inside an Accordion.Header.\n */\nexport function MosaicAccordionTrigger({\n className,\n children,\n ref,\n ...props\n}: MosaicAccordionTriggerProps) {\n return (\n <Accordion.Trigger\n ref={ref}\n data-slot=\"accordion-trigger\"\n className={cn(\n \"flex w-full flex-1 items-center justify-between py-4\",\n \"text-sm font-medium text-foreground\",\n \"outline-none transition-all\",\n \"hover:text-foreground/80\",\n \"focus-visible:ring-ring focus-visible:ring-[3px]\",\n \"disabled:cursor-not-allowed disabled:opacity-50\",\n \"[&>svg]:transition-transform [&>svg]:duration-200\",\n \"data-[panel-open]:[&>svg]:rotate-180\",\n className,\n )}\n {...props}\n >\n {children}\n {/* Chevron icon */}\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n className=\"size-4 shrink-0 text-muted-foreground\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </Accordion.Trigger>\n );\n}\n\nMosaicAccordionTrigger.displayName = \"MosaicAccordionTrigger\";\n\n/**\n * MosaicAccordionPanel — collapsible content area for an accordion item.\n */\nexport function MosaicAccordionPanel({ className, ref, ...props }: MosaicAccordionPanelProps) {\n return (\n <Accordion.Panel\n ref={ref}\n data-slot=\"accordion-panel\"\n className={cn(\"overflow-hidden text-sm text-muted-foreground\", \"transition-all\", className)}\n {...props}\n />\n );\n}\n\nMosaicAccordionPanel.displayName = \"MosaicAccordionPanel\";\n\n// Re-export Header from base-ui for composition (no styling needed on header itself)\nexport { Accordion };\n",
|
|
15
|
+
"target": "components/ui/MosaicAccordion.tsx"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"type": "registry:ui"
|
|
19
|
+
}
|
package/registry.json
CHANGED
|
@@ -103,6 +103,19 @@
|
|
|
103
103
|
}
|
|
104
104
|
]
|
|
105
105
|
},
|
|
106
|
+
{
|
|
107
|
+
"name": "mosaic-admin-only-guard",
|
|
108
|
+
"type": "registry:ui",
|
|
109
|
+
"title": "MosaicAdminOnlyGuard",
|
|
110
|
+
"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.",
|
|
111
|
+
"dependencies": [],
|
|
112
|
+
"files": [
|
|
113
|
+
{
|
|
114
|
+
"path": "src/components/admin-only-guard/MosaicAdminOnlyGuard.tsx",
|
|
115
|
+
"type": "registry:ui"
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
},
|
|
106
119
|
{
|
|
107
120
|
"name": "mosaic-agent-builder-modal",
|
|
108
121
|
"type": "registry:ui",
|
|
@@ -315,6 +328,124 @@
|
|
|
315
328
|
}
|
|
316
329
|
]
|
|
317
330
|
},
|
|
331
|
+
{
|
|
332
|
+
"name": "mosaic-artifact-canvas-adapter",
|
|
333
|
+
"type": "registry:ui",
|
|
334
|
+
"title": "MosaicArtifactCanvasAdapter",
|
|
335
|
+
"description": "MosaicArtifactCanvasAdapter — dual-source artifact runtime chrome.",
|
|
336
|
+
"dependencies": [],
|
|
337
|
+
"files": [
|
|
338
|
+
{
|
|
339
|
+
"path": "src/components/artifact-canvas-adapter/MosaicArtifactCanvasAdapter.tsx",
|
|
340
|
+
"type": "registry:ui"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"path": "src/components/artifact-canvas-adapter/normalize.ts",
|
|
344
|
+
"type": "registry:ui"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"path": "src/components/artifact-canvas-adapter/types.ts",
|
|
348
|
+
"type": "registry:ui"
|
|
349
|
+
}
|
|
350
|
+
]
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"name": "mosaic-artifact-chart",
|
|
354
|
+
"type": "registry:ui",
|
|
355
|
+
"title": "MosaicArtifactChart",
|
|
356
|
+
"description": "MosaicArtifactChart — dumb, contract-agnostic chart artifact renderer",
|
|
357
|
+
"dependencies": [
|
|
358
|
+
"recharts"
|
|
359
|
+
],
|
|
360
|
+
"files": [
|
|
361
|
+
{
|
|
362
|
+
"path": "src/components/artifact-chart/MosaicArtifactChart.tsx",
|
|
363
|
+
"type": "registry:ui"
|
|
364
|
+
}
|
|
365
|
+
]
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"name": "mosaic-artifact-checklist",
|
|
369
|
+
"type": "registry:ui",
|
|
370
|
+
"title": "MosaicArtifactChecklist",
|
|
371
|
+
"description": "MosaicArtifactChecklist — dumb, contract-agnostic checklist artifact renderer",
|
|
372
|
+
"dependencies": [],
|
|
373
|
+
"files": [
|
|
374
|
+
{
|
|
375
|
+
"path": "src/components/artifact-checklist/MosaicArtifactChecklist.tsx",
|
|
376
|
+
"type": "registry:ui"
|
|
377
|
+
}
|
|
378
|
+
]
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"name": "mosaic-artifact-data-table",
|
|
382
|
+
"type": "registry:ui",
|
|
383
|
+
"title": "MosaicArtifactDataTable",
|
|
384
|
+
"description": "MosaicArtifactDataTable — dumb, contract-agnostic data-table artifact renderer",
|
|
385
|
+
"dependencies": [],
|
|
386
|
+
"files": [
|
|
387
|
+
{
|
|
388
|
+
"path": "src/components/artifact-data-table/MosaicArtifactDataTable.tsx",
|
|
389
|
+
"type": "registry:ui"
|
|
390
|
+
}
|
|
391
|
+
]
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"name": "mosaic-artifact-document",
|
|
395
|
+
"type": "registry:ui",
|
|
396
|
+
"title": "MosaicArtifactDocument",
|
|
397
|
+
"description": "MosaicArtifactDocument — dumb, contract-agnostic document artifact renderer",
|
|
398
|
+
"dependencies": [],
|
|
399
|
+
"files": [
|
|
400
|
+
{
|
|
401
|
+
"path": "src/components/artifact-document/MosaicArtifactDocument.tsx",
|
|
402
|
+
"type": "registry:ui"
|
|
403
|
+
}
|
|
404
|
+
]
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "mosaic-artifact-library",
|
|
408
|
+
"type": "registry:ui",
|
|
409
|
+
"title": "MosaicArtifactLibrary",
|
|
410
|
+
"description": "MosaicArtifactLibrary — org-scoped list/search of saved artifacts, opening a selected one through the C1 adapter (MosaicArtifactCanvasAdapter) + C2 renderers.",
|
|
411
|
+
"dependencies": [],
|
|
412
|
+
"files": [
|
|
413
|
+
{
|
|
414
|
+
"path": "src/components/artifact-library/MosaicArtifactLibrary.tsx",
|
|
415
|
+
"type": "registry:ui"
|
|
416
|
+
}
|
|
417
|
+
]
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"name": "mosaic-artifact-save-as-memory-form",
|
|
421
|
+
"type": "registry:ui",
|
|
422
|
+
"title": "MosaicArtifactSaveAsMemoryForm",
|
|
423
|
+
"description": "MosaicArtifactSaveAsMemoryForm — presentational \"capitalise this artifact into memory\" form: the artifact → memory bridge, sibling of MosaicSaveChatAsMemoryForm (chat → memory) in the same product family.",
|
|
424
|
+
"dependencies": [],
|
|
425
|
+
"files": [
|
|
426
|
+
{
|
|
427
|
+
"path": "src/components/artifact-save-as-memory-form/MosaicArtifactSaveAsMemoryForm.tsx",
|
|
428
|
+
"type": "registry:ui"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"path": "src/components/artifact-save-as-memory-form/artifact-save-as-memory-form-variants.ts",
|
|
432
|
+
"type": "registry:ui"
|
|
433
|
+
}
|
|
434
|
+
]
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"name": "mosaic-artifact-version-history",
|
|
438
|
+
"type": "registry:ui",
|
|
439
|
+
"title": "MosaicArtifactVersionHistory",
|
|
440
|
+
"description": "MosaicArtifactVersionHistory — org-scoped version-history timeline for a deliverable, letting the user select a version to open through the C1 adapter + C2 renderers, and (optionally) restore an earlier version.",
|
|
441
|
+
"dependencies": [],
|
|
442
|
+
"files": [
|
|
443
|
+
{
|
|
444
|
+
"path": "src/components/artifact-version-history/MosaicArtifactVersionHistory.tsx",
|
|
445
|
+
"type": "registry:ui"
|
|
446
|
+
}
|
|
447
|
+
]
|
|
448
|
+
},
|
|
318
449
|
{
|
|
319
450
|
"name": "mosaic-clerk-org-switcher",
|
|
320
451
|
"type": "registry:ui",
|
|
@@ -1369,6 +1500,19 @@
|
|
|
1369
1500
|
}
|
|
1370
1501
|
]
|
|
1371
1502
|
},
|
|
1503
|
+
{
|
|
1504
|
+
"name": "mosaic-org-context-display",
|
|
1505
|
+
"type": "registry:ui",
|
|
1506
|
+
"title": "MosaicOrgContextDisplay",
|
|
1507
|
+
"description": "MosaicOrgContextDisplay — active organization (cloisonnement) indicator + switcher, EveVantage M3 C6.",
|
|
1508
|
+
"dependencies": [],
|
|
1509
|
+
"files": [
|
|
1510
|
+
{
|
|
1511
|
+
"path": "src/components/org-context-display/MosaicOrgContextDisplay.tsx",
|
|
1512
|
+
"type": "registry:ui"
|
|
1513
|
+
}
|
|
1514
|
+
]
|
|
1515
|
+
},
|
|
1372
1516
|
{
|
|
1373
1517
|
"name": "mosaic-org-panel",
|
|
1374
1518
|
"type": "registry:ui",
|