@contractspec/lib.example-shared-ui 2.9.1 → 3.1.1
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/.turbo/turbo-build.log +3 -3
- package/AGENTS.md +41 -0
- package/CHANGELOG.md +41 -0
- package/README.md +45 -0
- package/package.json +8 -8
package/.turbo/turbo-build.log
CHANGED
|
@@ -3,7 +3,7 @@ $ bun run prebuild && bun run build:bundle && bun run build:types
|
|
|
3
3
|
$ contractspec-bun-build prebuild
|
|
4
4
|
$ contractspec-bun-build transpile
|
|
5
5
|
[contractspec-bun-build] transpile target=bun root=src entries=23
|
|
6
|
-
Bundled 23 modules in
|
|
6
|
+
Bundled 23 modules in 44ms
|
|
7
7
|
|
|
8
8
|
./EvolutionDashboard.js 31.40 KB (entry point)
|
|
9
9
|
./index.js 120.97 KB (entry point)
|
|
@@ -30,7 +30,7 @@ Bundled 23 modules in 43ms
|
|
|
30
30
|
lib/runtime-context.js 430 bytes (entry point)
|
|
31
31
|
|
|
32
32
|
[contractspec-bun-build] transpile target=node root=src entries=23
|
|
33
|
-
Bundled 23 modules in
|
|
33
|
+
Bundled 23 modules in 72ms
|
|
34
34
|
|
|
35
35
|
./EvolutionDashboard.js 31.38 KB (entry point)
|
|
36
36
|
./index.js 120.92 KB (entry point)
|
|
@@ -57,7 +57,7 @@ Bundled 23 modules in 24ms
|
|
|
57
57
|
lib/runtime-context.js 422 bytes (entry point)
|
|
58
58
|
|
|
59
59
|
[contractspec-bun-build] transpile target=browser root=src entries=23
|
|
60
|
-
Bundled 23 modules in
|
|
60
|
+
Bundled 23 modules in 42ms
|
|
61
61
|
|
|
62
62
|
./EvolutionDashboard.js 31.38 KB (entry point)
|
|
63
63
|
./index.js 120.92 KB (entry point)
|
package/AGENTS.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# AI Agent Guide — `@contractspec/lib.example-shared-ui`
|
|
2
|
+
|
|
3
|
+
Scope: `packages/libs/example-shared-ui/*`
|
|
4
|
+
|
|
5
|
+
Shared React components and hooks for ContractSpec example apps. Provides the common layout, editors, and overlays used across all examples.
|
|
6
|
+
|
|
7
|
+
## Quick Context
|
|
8
|
+
|
|
9
|
+
- **Layer**: lib
|
|
10
|
+
- **Consumers**: example apps
|
|
11
|
+
|
|
12
|
+
## Public Exports
|
|
13
|
+
|
|
14
|
+
| Subpath | Description |
|
|
15
|
+
| ---------------------------- | ------------------------------ |
|
|
16
|
+
| `.` | Main entry |
|
|
17
|
+
| `./EvolutionDashboard` | Evolution dashboard component |
|
|
18
|
+
| `./EvolutionSidebar` | Evolution sidebar component |
|
|
19
|
+
| `./hooks/*` | Shared React hooks |
|
|
20
|
+
| `./lib/*` | Shared utilities |
|
|
21
|
+
| `./LocalDataIndicator` | Local data status indicator |
|
|
22
|
+
| `./MarkdownView` | Markdown renderer |
|
|
23
|
+
| `./OverlayContextProvider` | Overlay context provider |
|
|
24
|
+
| `./PersonalizationInsights` | Personalization panel |
|
|
25
|
+
| `./SaveToStudioButton` | Studio save button |
|
|
26
|
+
| `./SpecEditorPanel` | Spec editor panel |
|
|
27
|
+
| `./TemplateShell` | Shared layout for all examples |
|
|
28
|
+
| `./utils/*` | Utility functions |
|
|
29
|
+
| `./overlay-types` | Overlay type definitions |
|
|
30
|
+
|
|
31
|
+
## Guardrails
|
|
32
|
+
|
|
33
|
+
- Low blast radius — only example apps depend on this package.
|
|
34
|
+
- `TemplateShell` is the shared layout for all examples; structural changes affect every example app.
|
|
35
|
+
|
|
36
|
+
## Local Commands
|
|
37
|
+
|
|
38
|
+
- Build: `bun run build`
|
|
39
|
+
- Test: `bun test`
|
|
40
|
+
- Lint: `bun run lint`
|
|
41
|
+
- Dev: `bun run dev`
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# @contractspec/lib.example-shared-ui
|
|
2
2
|
|
|
3
|
+
## 3.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [02c0cc5]
|
|
8
|
+
- @contractspec/lib.contracts-spec@3.1.1
|
|
9
|
+
- @contractspec/lib.design-system@3.1.1
|
|
10
|
+
|
|
11
|
+
## 3.1.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 28987eb: chore: upgrade dependencies
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [f2a4faf]
|
|
20
|
+
- Updated dependencies [28987eb]
|
|
21
|
+
- Updated dependencies [28987eb]
|
|
22
|
+
- @contractspec/lib.contracts-spec@3.1.0
|
|
23
|
+
- @contractspec/lib.design-system@3.1.0
|
|
24
|
+
- @contractspec/lib.ui-kit-web@3.1.0
|
|
25
|
+
|
|
26
|
+
## 3.0.0
|
|
27
|
+
|
|
28
|
+
### Major Changes
|
|
29
|
+
|
|
30
|
+
- b781ce6: feat: improve ai readiness
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- Updated dependencies [7cbdb7f]
|
|
35
|
+
- Updated dependencies [c608804]
|
|
36
|
+
- Updated dependencies [e3bc858]
|
|
37
|
+
- Updated dependencies [b19ae0a]
|
|
38
|
+
- Updated dependencies [aa4a9c9]
|
|
39
|
+
- Updated dependencies [b781ce6]
|
|
40
|
+
- @contractspec/lib.contracts-spec@3.0.0
|
|
41
|
+
- @contractspec/lib.design-system@3.0.0
|
|
42
|
+
- @contractspec/lib.ui-kit-web@3.0.0
|
|
43
|
+
|
|
3
44
|
## 2.9.1
|
|
4
45
|
|
|
5
46
|
### Patch Changes
|
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# @contractspec/lib.example-shared-ui
|
|
2
|
+
|
|
3
|
+
Website: https://contractspec.io/
|
|
4
|
+
|
|
5
|
+
**Shared React components and hooks for ContractSpec example apps.**
|
|
6
|
+
|
|
7
|
+
Provides reusable UI shells, editors, dashboards, and context utilities used across ContractSpec example applications. Built on the ContractSpec design system.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
bun add @contractspec/lib.example-shared-ui
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Exports
|
|
16
|
+
|
|
17
|
+
- `.` -- All components, hooks, and utilities
|
|
18
|
+
- `./TemplateShell` -- App shell layout with navigation and slots
|
|
19
|
+
- `./EvolutionDashboard` -- Dashboard for spec evolution visualization
|
|
20
|
+
- `./EvolutionSidebar` -- Sidebar companion for the evolution dashboard
|
|
21
|
+
- `./SpecEditorPanel` -- Inline spec editor component
|
|
22
|
+
- `./MarkdownView` -- Markdown renderer
|
|
23
|
+
- `./LocalDataIndicator` -- Indicator for local/offline data state
|
|
24
|
+
- `./SaveToStudioButton` -- One-click save to ContractSpec Studio
|
|
25
|
+
- `./OverlayContextProvider` -- Context provider for overlay state
|
|
26
|
+
- `./PersonalizationInsights` -- Personalization insights panel
|
|
27
|
+
- `./hooks/*` -- Shared React hooks
|
|
28
|
+
- `./lib/*` -- Runtime context, component registry, and shared types
|
|
29
|
+
- `./utils/*` -- Shared utility functions
|
|
30
|
+
- `./overlay-types` -- Overlay type definitions
|
|
31
|
+
|
|
32
|
+
## Usage
|
|
33
|
+
|
|
34
|
+
```tsx
|
|
35
|
+
import { TemplateShell } from "@contractspec/lib.example-shared-ui/TemplateShell";
|
|
36
|
+
import { SpecEditorPanel } from "@contractspec/lib.example-shared-ui/SpecEditorPanel";
|
|
37
|
+
|
|
38
|
+
export function App() {
|
|
39
|
+
return (
|
|
40
|
+
<TemplateShell title="My Example">
|
|
41
|
+
<SpecEditorPanel specId="user-registration" />
|
|
42
|
+
</TemplateShell>
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/lib.example-shared-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -377,22 +377,22 @@
|
|
|
377
377
|
},
|
|
378
378
|
"dependencies": {
|
|
379
379
|
"@apollo/client": "^4.1.6",
|
|
380
|
-
"@contractspec/lib.contracts-spec": "
|
|
381
|
-
"@contractspec/lib.design-system": "
|
|
382
|
-
"@contractspec/lib.ui-kit-web": "
|
|
380
|
+
"@contractspec/lib.contracts-spec": "3.1.1",
|
|
381
|
+
"@contractspec/lib.design-system": "3.1.1",
|
|
382
|
+
"@contractspec/lib.ui-kit-web": "3.1.0",
|
|
383
383
|
"@tanstack/react-query": "^5.90.21",
|
|
384
|
-
"framer-motion": "^12.
|
|
385
|
-
"lucide-react": "^0.
|
|
384
|
+
"framer-motion": "^12.35.0",
|
|
385
|
+
"lucide-react": "^0.577.0",
|
|
386
386
|
"react": "19.2.4",
|
|
387
387
|
"react-dom": "19.2.4"
|
|
388
388
|
},
|
|
389
389
|
"devDependencies": {
|
|
390
|
-
"@contractspec/tool.typescript": "
|
|
390
|
+
"@contractspec/tool.typescript": "3.1.0",
|
|
391
391
|
"@types/react": "^19.2.14",
|
|
392
392
|
"@types/react-dom": "^19.2.2",
|
|
393
393
|
"eslint": "^9.39.2",
|
|
394
394
|
"typescript": "^5.9.3",
|
|
395
|
-
"@contractspec/tool.bun": "
|
|
395
|
+
"@contractspec/tool.bun": "3.1.0"
|
|
396
396
|
},
|
|
397
397
|
"types": "./dist/index.d.ts"
|
|
398
398
|
}
|