@contractspec/example.learning-journey-ui-shared 3.0.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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=12
6
- Bundled 12 modules in 30ms
6
+ Bundled 12 modules in 8ms
7
7
 
8
8
  components/BadgeDisplay.js 1.79 KB (entry point)
9
9
  ./index.js 10.33 KB (entry point)
@@ -19,7 +19,7 @@ Bundled 12 modules in 30ms
19
19
  ./example.js 0.92 KB (entry point)
20
20
 
21
21
  [contractspec-bun-build] transpile target=node root=src entries=12
22
- Bundled 12 modules in 25ms
22
+ Bundled 12 modules in 18ms
23
23
 
24
24
  components/BadgeDisplay.js 1.78 KB (entry point)
25
25
  ./index.js 10.31 KB (entry point)
@@ -35,7 +35,7 @@ Bundled 12 modules in 25ms
35
35
  ./example.js 0.90 KB (entry point)
36
36
 
37
37
  [contractspec-bun-build] transpile target=browser root=src entries=12
38
- Bundled 12 modules in 33ms
38
+ Bundled 12 modules in 19ms
39
39
 
40
40
  components/BadgeDisplay.js 1.78 KB (entry point)
41
41
  ./index.js 10.31 KB (entry point)
package/AGENTS.md ADDED
@@ -0,0 +1,32 @@
1
+ # AI Agent Guide -- `@contractspec/example.learning-journey-ui-shared`
2
+
3
+ Scope: `packages/examples/learning-journey-ui-shared/*`
4
+
5
+ Shared UI components and hooks consumed by all learning journey mini-apps.
6
+
7
+ ## Quick Context
8
+
9
+ - **Layer**: example
10
+ - **Related Packages**: `lib.contracts-spec`, `lib.design-system`, `lib.ui-kit-web`, `module.learning-journey`
11
+
12
+ ## What This Demonstrates
13
+
14
+ - Reusable gamification components (XpBar, StreakCounter, BadgeDisplay, ViewTabs)
15
+ - Custom hook pattern (`useLearningProgress`) for shared state
16
+ - Shared types for cross-mini-app consistency
17
+
18
+ ## Public Exports
19
+
20
+ - `.` -- root barrel
21
+ - `./components` -- BadgeDisplay, StreakCounter, ViewTabs, XpBar
22
+ - `./hooks` -- useLearningProgress
23
+ - `./types` -- shared type definitions
24
+ - `./docs` -- DocBlock documentation
25
+ - `./example` -- runnable example entry
26
+
27
+ ## Local Commands
28
+
29
+ - Build: `bun run build`
30
+ - Dev: `bun run dev`
31
+ - Test: `bun test --pass-with-no-tests`
32
+ - Typecheck: `bun run typecheck`
package/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # @contractspec/example.learning-journey-ui-shared
2
2
 
3
+ ## 3.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a281fc5: fix: missing dependencies
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [a281fc5]
12
+ - @contractspec/module.learning-journey@3.2.0
13
+ - @contractspec/lib.contracts-spec@3.2.0
14
+ - @contractspec/lib.design-system@3.2.0
15
+ - @contractspec/lib.ui-kit-web@3.2.0
16
+
17
+ ## 3.1.1
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [02c0cc5]
22
+ - @contractspec/lib.contracts-spec@3.1.1
23
+ - @contractspec/lib.design-system@3.1.1
24
+ - @contractspec/module.learning-journey@3.1.1
25
+
26
+ ## 3.1.0
27
+
28
+ ### Minor Changes
29
+
30
+ - 28987eb: chore: upgrade dependencies
31
+
32
+ ### Patch Changes
33
+
34
+ - Updated dependencies [f2a4faf]
35
+ - Updated dependencies [28987eb]
36
+ - Updated dependencies [28987eb]
37
+ - @contractspec/lib.contracts-spec@3.1.0
38
+ - @contractspec/module.learning-journey@3.1.0
39
+ - @contractspec/lib.design-system@3.1.0
40
+ - @contractspec/lib.ui-kit-web@3.1.0
41
+
3
42
  ## 3.0.0
4
43
 
5
44
  ### Major Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/example.learning-journey-ui-shared",
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "description": "Shared UI components and hooks for learning journey mini-apps.",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -127,17 +127,17 @@
127
127
  "typecheck": "tsc --noEmit"
128
128
  },
129
129
  "dependencies": {
130
- "@contractspec/lib.contracts-spec": "3.0.0",
131
- "@contractspec/module.learning-journey": "3.0.0",
132
- "@contractspec/lib.design-system": "3.0.0",
133
- "@contractspec/lib.ui-kit-web": "3.0.0",
130
+ "@contractspec/lib.contracts-spec": "3.2.0",
131
+ "@contractspec/module.learning-journey": "3.2.0",
132
+ "@contractspec/lib.design-system": "3.2.0",
133
+ "@contractspec/lib.ui-kit-web": "3.2.0",
134
134
  "react": "19.2.4"
135
135
  },
136
136
  "devDependencies": {
137
- "@contractspec/tool.typescript": "3.0.0",
137
+ "@contractspec/tool.typescript": "3.2.0",
138
138
  "@types/react": "^19.2.14",
139
139
  "typescript": "^5.9.3",
140
- "@contractspec/tool.bun": "3.0.0"
140
+ "@contractspec/tool.bun": "3.2.0"
141
141
  },
142
142
  "peerDependencies": {
143
143
  "react": "^19.2.4"