@contractspec/example.learning-journey-ui-gamified 1.44.1 → 1.45.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$colon$bundle.log +6 -6
- package/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +47 -0
- package/dist/GamifiedMiniApp.d.ts +2 -2
- package/dist/components/DayCalendar.d.ts +2 -2
- package/dist/components/MasteryRing.d.ts +2 -2
- package/dist/example.d.ts +3 -29
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +15 -10
- package/dist/example.js.map +1 -1
- package/dist/views/Overview.d.ts +2 -2
- package/dist/views/Progress.d.ts +2 -2
- package/dist/views/Steps.d.ts +2 -2
- package/dist/views/Timeline.d.ts +2 -2
- package/package.json +11 -11
- package/src/example.ts +16 -9
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -14,8 +14,8 @@ $ tsdown
|
|
|
14
14
|
[34mℹ[39m [2mdist/[22m[1mcomponents/MasteryRing.js[22m [2m2.15 kB[22m [2m│ gzip: 0.88 kB[22m
|
|
15
15
|
[34mℹ[39m [2mdist/[22m[1mviews/Steps.js[22m [2m1.63 kB[22m [2m│ gzip: 0.68 kB[22m
|
|
16
16
|
[34mℹ[39m [2mdist/[22m[1mcomponents/DayCalendar.js[22m [2m1.51 kB[22m [2m│ gzip: 0.68 kB[22m
|
|
17
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.88 kB[22m [2m│ gzip: 0.49 kB[22m
|
|
17
18
|
[34mℹ[39m [2mdist/[22m[1mdocs/learning-journey-ui-gamified.docblock.js[22m [2m0.83 kB[22m [2m│ gzip: 0.47 kB[22m
|
|
18
|
-
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.78 kB[22m [2m│ gzip: 0.43 kB[22m
|
|
19
19
|
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.67 kB[22m [2m│ gzip: 0.24 kB[22m
|
|
20
20
|
[34mℹ[39m [2mdist/[22m[1mviews/index.js[22m [2m0.21 kB[22m [2m│ gzip: 0.11 kB[22m
|
|
21
21
|
[34mℹ[39m [2mdist/[22m[1mcomponents/index.js[22m [2m0.19 kB[22m [2m│ gzip: 0.11 kB[22m
|
|
@@ -28,8 +28,8 @@ $ tsdown
|
|
|
28
28
|
[34mℹ[39m [2mdist/[22mcomponents/MasteryRing.js.map [2m3.43 kB[22m [2m│ gzip: 1.34 kB[22m
|
|
29
29
|
[34mℹ[39m [2mdist/[22mviews/Steps.js.map [2m2.36 kB[22m [2m│ gzip: 1.04 kB[22m
|
|
30
30
|
[34mℹ[39m [2mdist/[22mcomponents/DayCalendar.js.map [2m2.28 kB[22m [2m│ gzip: 0.99 kB[22m
|
|
31
|
+
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.40 kB[22m [2m│ gzip: 0.71 kB[22m
|
|
31
32
|
[34mℹ[39m [2mdist/[22mdocs/learning-journey-ui-gamified.docblock.js.map [2m1.17 kB[22m [2m│ gzip: 0.63 kB[22m
|
|
32
|
-
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.13 kB[22m [2m│ gzip: 0.60 kB[22m
|
|
33
33
|
[34mℹ[39m [2mdist/[22mcomponents/MasteryRing.d.ts.map [2m0.37 kB[22m [2m│ gzip: 0.23 kB[22m
|
|
34
34
|
[34mℹ[39m [2mdist/[22mcomponents/FlashCard.d.ts.map [2m0.32 kB[22m [2m│ gzip: 0.21 kB[22m
|
|
35
35
|
[34mℹ[39m [2mdist/[22mGamifiedMiniApp.d.ts.map [2m0.31 kB[22m [2m│ gzip: 0.22 kB[22m
|
|
@@ -38,8 +38,7 @@ $ tsdown
|
|
|
38
38
|
[34mℹ[39m [2mdist/[22mviews/Progress.d.ts.map [2m0.17 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
39
39
|
[34mℹ[39m [2mdist/[22mviews/Timeline.d.ts.map [2m0.17 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
40
40
|
[34mℹ[39m [2mdist/[22mviews/Steps.d.ts.map [2m0.17 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
41
|
-
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.
|
|
42
|
-
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m1.01 kB[22m [2m│ gzip: 0.43 kB[22m
|
|
41
|
+
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.12 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
43
42
|
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m0.62 kB[22m [2m│ gzip: 0.22 kB[22m
|
|
44
43
|
[34mℹ[39m [2mdist/[22m[32m[1mGamifiedMiniApp.d.ts[22m[39m [2m0.59 kB[22m [2m│ gzip: 0.33 kB[22m
|
|
45
44
|
[34mℹ[39m [2mdist/[22m[32m[1mcomponents/FlashCard.d.ts[22m[39m [2m0.53 kB[22m [2m│ gzip: 0.31 kB[22m
|
|
@@ -50,8 +49,9 @@ $ tsdown
|
|
|
50
49
|
[34mℹ[39m [2mdist/[22m[32m[1mviews/Progress.d.ts[22m[39m [2m0.35 kB[22m [2m│ gzip: 0.24 kB[22m
|
|
51
50
|
[34mℹ[39m [2mdist/[22m[32m[1mviews/Timeline.d.ts[22m[39m [2m0.35 kB[22m [2m│ gzip: 0.24 kB[22m
|
|
52
51
|
[34mℹ[39m [2mdist/[22m[32m[1mviews/index.d.ts[22m[39m [2m0.21 kB[22m [2m│ gzip: 0.11 kB[22m
|
|
52
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m0.20 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
53
53
|
[34mℹ[39m [2mdist/[22m[32m[1mcomponents/index.d.ts[22m[39m [2m0.19 kB[22m [2m│ gzip: 0.11 kB[22m
|
|
54
54
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
55
55
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/learning-journey-ui-gamified.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
56
|
-
[34mℹ[39m 47 files, total:
|
|
57
|
-
[32m✔[39m Build complete in [
|
|
56
|
+
[34mℹ[39m 47 files, total: 81.83 kB
|
|
57
|
+
[32m✔[39m Build complete in [32m9884ms[39m
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -15,8 +15,8 @@ $ tsdown
|
|
|
15
15
|
[34mℹ[39m [2mdist/[22m[1mcomponents/MasteryRing.js[22m [2m2.15 kB[22m [2m│ gzip: 0.88 kB[22m
|
|
16
16
|
[34mℹ[39m [2mdist/[22m[1mviews/Steps.js[22m [2m1.63 kB[22m [2m│ gzip: 0.68 kB[22m
|
|
17
17
|
[34mℹ[39m [2mdist/[22m[1mcomponents/DayCalendar.js[22m [2m1.51 kB[22m [2m│ gzip: 0.68 kB[22m
|
|
18
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.88 kB[22m [2m│ gzip: 0.49 kB[22m
|
|
18
19
|
[34mℹ[39m [2mdist/[22m[1mdocs/learning-journey-ui-gamified.docblock.js[22m [2m0.83 kB[22m [2m│ gzip: 0.47 kB[22m
|
|
19
|
-
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.78 kB[22m [2m│ gzip: 0.43 kB[22m
|
|
20
20
|
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.67 kB[22m [2m│ gzip: 0.24 kB[22m
|
|
21
21
|
[34mℹ[39m [2mdist/[22m[1mviews/index.js[22m [2m0.21 kB[22m [2m│ gzip: 0.11 kB[22m
|
|
22
22
|
[34mℹ[39m [2mdist/[22m[1mcomponents/index.js[22m [2m0.19 kB[22m [2m│ gzip: 0.11 kB[22m
|
|
@@ -29,8 +29,8 @@ $ tsdown
|
|
|
29
29
|
[34mℹ[39m [2mdist/[22mcomponents/MasteryRing.js.map [2m3.43 kB[22m [2m│ gzip: 1.34 kB[22m
|
|
30
30
|
[34mℹ[39m [2mdist/[22mviews/Steps.js.map [2m2.36 kB[22m [2m│ gzip: 1.04 kB[22m
|
|
31
31
|
[34mℹ[39m [2mdist/[22mcomponents/DayCalendar.js.map [2m2.28 kB[22m [2m│ gzip: 0.99 kB[22m
|
|
32
|
+
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.40 kB[22m [2m│ gzip: 0.71 kB[22m
|
|
32
33
|
[34mℹ[39m [2mdist/[22mdocs/learning-journey-ui-gamified.docblock.js.map [2m1.17 kB[22m [2m│ gzip: 0.63 kB[22m
|
|
33
|
-
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.13 kB[22m [2m│ gzip: 0.60 kB[22m
|
|
34
34
|
[34mℹ[39m [2mdist/[22mcomponents/MasteryRing.d.ts.map [2m0.37 kB[22m [2m│ gzip: 0.23 kB[22m
|
|
35
35
|
[34mℹ[39m [2mdist/[22mcomponents/FlashCard.d.ts.map [2m0.32 kB[22m [2m│ gzip: 0.21 kB[22m
|
|
36
36
|
[34mℹ[39m [2mdist/[22mGamifiedMiniApp.d.ts.map [2m0.31 kB[22m [2m│ gzip: 0.22 kB[22m
|
|
@@ -39,20 +39,20 @@ $ tsdown
|
|
|
39
39
|
[34mℹ[39m [2mdist/[22mviews/Progress.d.ts.map [2m0.17 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
40
40
|
[34mℹ[39m [2mdist/[22mviews/Timeline.d.ts.map [2m0.17 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
41
41
|
[34mℹ[39m [2mdist/[22mviews/Steps.d.ts.map [2m0.17 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
42
|
-
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.
|
|
43
|
-
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m1.01 kB[22m [2m│ gzip: 0.43 kB[22m
|
|
42
|
+
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.12 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
44
43
|
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m0.62 kB[22m [2m│ gzip: 0.22 kB[22m
|
|
45
44
|
[34mℹ[39m [2mdist/[22m[32m[1mGamifiedMiniApp.d.ts[22m[39m [2m0.59 kB[22m [2m│ gzip: 0.33 kB[22m
|
|
46
45
|
[34mℹ[39m [2mdist/[22m[32m[1mcomponents/FlashCard.d.ts[22m[39m [2m0.53 kB[22m [2m│ gzip: 0.31 kB[22m
|
|
47
46
|
[34mℹ[39m [2mdist/[22m[32m[1mviews/Overview.d.ts[22m[39m [2m0.45 kB[22m [2m│ gzip: 0.29 kB[22m
|
|
48
47
|
[34mℹ[39m [2mdist/[22m[32m[1mcomponents/MasteryRing.d.ts[22m[39m [2m0.45 kB[22m [2m│ gzip: 0.28 kB[22m
|
|
49
|
-
[34mℹ[39m [2mdist/[22m[32m[1mcomponents/DayCalendar.d.ts[22m[39m [2m0.41 kB[22m [2m│ gzip: 0.
|
|
48
|
+
[34mℹ[39m [2mdist/[22m[32m[1mcomponents/DayCalendar.d.ts[22m[39m [2m0.41 kB[22m [2m│ gzip: 0.24 kB[22m
|
|
50
49
|
[34mℹ[39m [2mdist/[22m[32m[1mviews/Steps.d.ts[22m[39m [2m0.36 kB[22m [2m│ gzip: 0.25 kB[22m
|
|
51
50
|
[34mℹ[39m [2mdist/[22m[32m[1mviews/Progress.d.ts[22m[39m [2m0.35 kB[22m [2m│ gzip: 0.24 kB[22m
|
|
52
51
|
[34mℹ[39m [2mdist/[22m[32m[1mviews/Timeline.d.ts[22m[39m [2m0.35 kB[22m [2m│ gzip: 0.24 kB[22m
|
|
53
52
|
[34mℹ[39m [2mdist/[22m[32m[1mviews/index.d.ts[22m[39m [2m0.21 kB[22m [2m│ gzip: 0.11 kB[22m
|
|
53
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m0.20 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
54
54
|
[34mℹ[39m [2mdist/[22m[32m[1mcomponents/index.d.ts[22m[39m [2m0.19 kB[22m [2m│ gzip: 0.11 kB[22m
|
|
55
55
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
56
56
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/learning-journey-ui-gamified.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
57
|
-
[34mℹ[39m 47 files, total:
|
|
58
|
-
[32m✔[39m Build complete in [
|
|
57
|
+
[34mℹ[39m 47 files, total: 81.83 kB
|
|
58
|
+
[32m✔[39m Build complete in [32m8481ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,52 @@
|
|
|
1
1
|
# @contractspec/example.learning-journey-ui-gamified
|
|
2
2
|
|
|
3
|
+
## 1.45.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- feat: improve app config and examples contracts
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @contractspec/example.learning-journey-quest-challenges@1.45.1
|
|
10
|
+
- @contractspec/example.learning-journey-duo-drills@1.45.1
|
|
11
|
+
- @contractspec/example.learning-journey-ui-shared@1.45.1
|
|
12
|
+
- @contractspec/module.learning-journey@1.45.1
|
|
13
|
+
- @contractspec/lib.design-system@1.45.1
|
|
14
|
+
- @contractspec/lib.ui-kit-web@1.45.1
|
|
15
|
+
- @contractspec/lib.contracts@1.45.1
|
|
16
|
+
- @contractspec/lib.schema@1.45.1
|
|
17
|
+
|
|
18
|
+
## 1.45.0
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- e73ca1d: feat: improve app config and examples contracts
|
|
23
|
+
feat: Contract layers support (features, examples, app-configs)
|
|
24
|
+
|
|
25
|
+
### New CLI Commands
|
|
26
|
+
- `contractspec list layers` - List all contract layers with filtering
|
|
27
|
+
|
|
28
|
+
### Enhanced Commands
|
|
29
|
+
- `contractspec ci` - New `layers` check category validates features/examples/config
|
|
30
|
+
- `contractspec doctor` - New `layers` health checks
|
|
31
|
+
- `contractspec integrity` - Now shows layer statistics
|
|
32
|
+
|
|
33
|
+
### New APIs
|
|
34
|
+
- `discoverLayers()` - Scan workspace for all layer files
|
|
35
|
+
- `scanExampleSource()` - Parse ExampleSpec from source code
|
|
36
|
+
- `isExampleFile()` - Check if file is an example spec
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- Updated dependencies [e73ca1d]
|
|
41
|
+
- @contractspec/example.learning-journey-quest-challenges@1.45.0
|
|
42
|
+
- @contractspec/example.learning-journey-duo-drills@1.45.0
|
|
43
|
+
- @contractspec/example.learning-journey-ui-shared@1.45.0
|
|
44
|
+
- @contractspec/module.learning-journey@1.45.0
|
|
45
|
+
- @contractspec/lib.design-system@1.45.0
|
|
46
|
+
- @contractspec/lib.ui-kit-web@1.45.0
|
|
47
|
+
- @contractspec/lib.contracts@1.45.0
|
|
48
|
+
- @contractspec/lib.schema@1.45.0
|
|
49
|
+
|
|
3
50
|
## 1.44.1
|
|
4
51
|
|
|
5
52
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LearningMiniAppProps } from "@contractspec/example.learning-journey-ui-shared";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/GamifiedMiniApp.d.ts
|
|
5
5
|
type GamifiedMiniAppProps = Omit<LearningMiniAppProps, 'progress'> & {
|
|
@@ -11,7 +11,7 @@ declare function GamifiedMiniApp({
|
|
|
11
11
|
onStepComplete: externalOnStepComplete,
|
|
12
12
|
onViewChange,
|
|
13
13
|
initialView
|
|
14
|
-
}: GamifiedMiniAppProps):
|
|
14
|
+
}: GamifiedMiniAppProps): react_jsx_runtime0.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { GamifiedMiniApp };
|
|
17
17
|
//# sourceMappingURL=GamifiedMiniApp.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/DayCalendar.d.ts
|
|
4
4
|
interface DayCalendarProps {
|
|
@@ -10,7 +10,7 @@ declare function DayCalendar({
|
|
|
10
10
|
totalDays,
|
|
11
11
|
currentDay,
|
|
12
12
|
completedDays
|
|
13
|
-
}: DayCalendarProps):
|
|
13
|
+
}: DayCalendarProps): react_jsx_runtime1.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { DayCalendar };
|
|
16
16
|
//# sourceMappingURL=DayCalendar.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/MasteryRing.d.ts
|
|
4
4
|
interface MasteryRingProps {
|
|
@@ -12,7 +12,7 @@ declare function MasteryRing({
|
|
|
12
12
|
percentage,
|
|
13
13
|
size,
|
|
14
14
|
color
|
|
15
|
-
}: MasteryRingProps):
|
|
15
|
+
}: MasteryRingProps): react_jsx_runtime2.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { MasteryRing };
|
|
18
18
|
//# sourceMappingURL=MasteryRing.d.ts.map
|
package/dist/example.d.ts
CHANGED
|
@@ -1,33 +1,7 @@
|
|
|
1
|
+
import { ExampleSpec } from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
1
3
|
//#region src/example.d.ts
|
|
2
|
-
declare const example:
|
|
3
|
-
readonly id: "learning-journey-ui-gamified";
|
|
4
|
-
readonly title: "Learning Journey UI — Gamified";
|
|
5
|
-
readonly summary: "UI mini-app for gamified learning: flashcards, mastery ring, calendar.";
|
|
6
|
-
readonly tags: readonly ["learning", "ui", "gamified"];
|
|
7
|
-
readonly kind: "ui";
|
|
8
|
-
readonly visibility: "public";
|
|
9
|
-
readonly docs: {
|
|
10
|
-
readonly rootDocId: "docs.examples.learning-journey-ui-gamified";
|
|
11
|
-
};
|
|
12
|
-
readonly entrypoints: {
|
|
13
|
-
readonly packageName: "@contractspec/example.learning-journey-ui-gamified";
|
|
14
|
-
readonly docs: "./docs";
|
|
15
|
-
};
|
|
16
|
-
readonly surfaces: {
|
|
17
|
-
readonly templates: true;
|
|
18
|
-
readonly sandbox: {
|
|
19
|
-
readonly enabled: true;
|
|
20
|
-
readonly modes: readonly ["playground", "markdown"];
|
|
21
|
-
};
|
|
22
|
-
readonly studio: {
|
|
23
|
-
readonly enabled: true;
|
|
24
|
-
readonly installable: true;
|
|
25
|
-
};
|
|
26
|
-
readonly mcp: {
|
|
27
|
-
readonly enabled: true;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
};
|
|
4
|
+
declare const example: ExampleSpec;
|
|
31
5
|
//#endregion
|
|
32
6
|
export { example as default };
|
|
33
7
|
//# sourceMappingURL=example.d.ts.map
|
package/dist/example.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SAAS"}
|
package/dist/example.js
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
//#region src/example.ts
|
|
2
2
|
const example = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"learning",
|
|
8
|
-
"ui",
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
meta: {
|
|
4
|
+
key: "learning-journey-ui-gamified",
|
|
5
|
+
version: "1.0.0",
|
|
6
|
+
title: "Learning Journey UI — Gamified",
|
|
7
|
+
description: "UI mini-app for gamified learning: flashcards, mastery ring, calendar.",
|
|
8
|
+
kind: "ui",
|
|
9
|
+
visibility: "public",
|
|
10
|
+
stability: "experimental",
|
|
11
|
+
owners: ["@platform.core"],
|
|
12
|
+
tags: [
|
|
13
|
+
"learning",
|
|
14
|
+
"ui",
|
|
15
|
+
"gamified"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
13
18
|
docs: { rootDocId: "docs.examples.learning-journey-ui-gamified" },
|
|
14
19
|
entrypoints: {
|
|
15
20
|
packageName: "@contractspec/example.learning-journey-ui-gamified",
|
package/dist/example.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"example.js","names":["example: ExampleSpec"],"sources":["../src/example.ts"],"sourcesContent":["import type { ExampleSpec } from '@contractspec/lib.contracts';\n\nconst example: ExampleSpec = {\n meta: {\n key: 'learning-journey-ui-gamified',\n version: '1.0.0',\n title: 'Learning Journey UI — Gamified',\n description:\n 'UI mini-app for gamified learning: flashcards, mastery ring, calendar.',\n kind: 'ui',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['learning', 'ui', 'gamified'],\n },\n docs: {\n rootDocId: 'docs.examples.learning-journey-ui-gamified',\n },\n entrypoints: {\n packageName: '@contractspec/example.learning-journey-ui-gamified',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: { enabled: true, modes: ['playground', 'markdown'] },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n};\n\nexport default example;\n"],"mappings":";AAEA,MAAMA,UAAuB;CAC3B,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,YAAY;EACZ,WAAW;EACX,QAAQ,CAAC,iBAAiB;EAC1B,MAAM;GAAC;GAAY;GAAM;GAAW;EACrC;CACD,MAAM,EACJ,WAAW,8CACZ;CACD,aAAa;EACX,aAAa;EACb,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GAAE,SAAS;GAAM,OAAO,CAAC,cAAc,WAAW;GAAE;EAC7D,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
|
package/dist/views/Overview.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LearningViewProps } from "@contractspec/example.learning-journey-ui-shared";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/views/Overview.d.ts
|
|
5
5
|
interface GamifiedOverviewProps extends LearningViewProps {
|
|
@@ -9,7 +9,7 @@ declare function Overview({
|
|
|
9
9
|
track,
|
|
10
10
|
progress,
|
|
11
11
|
onStart
|
|
12
|
-
}: GamifiedOverviewProps):
|
|
12
|
+
}: GamifiedOverviewProps): react_jsx_runtime3.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { Overview };
|
|
15
15
|
//# sourceMappingURL=Overview.d.ts.map
|
package/dist/views/Progress.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { LearningViewProps } from "@contractspec/example.learning-journey-ui-shared";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/views/Progress.d.ts
|
|
5
5
|
declare function Progress({
|
|
6
6
|
track,
|
|
7
7
|
progress
|
|
8
|
-
}: LearningViewProps):
|
|
8
|
+
}: LearningViewProps): react_jsx_runtime4.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Progress };
|
|
11
11
|
//# sourceMappingURL=Progress.d.ts.map
|
package/dist/views/Steps.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { LearningViewProps } from "@contractspec/example.learning-journey-ui-shared";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/views/Steps.d.ts
|
|
5
5
|
declare function Steps({
|
|
6
6
|
track,
|
|
7
7
|
progress,
|
|
8
8
|
onStepComplete
|
|
9
|
-
}: LearningViewProps):
|
|
9
|
+
}: LearningViewProps): react_jsx_runtime5.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Steps };
|
|
12
12
|
//# sourceMappingURL=Steps.d.ts.map
|
package/dist/views/Timeline.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { LearningViewProps } from "@contractspec/example.learning-journey-ui-shared";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/views/Timeline.d.ts
|
|
5
5
|
declare function Timeline({
|
|
6
6
|
track,
|
|
7
7
|
progress
|
|
8
|
-
}: LearningViewProps):
|
|
8
|
+
}: LearningViewProps): react_jsx_runtime6.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Timeline };
|
|
11
11
|
//# sourceMappingURL=Timeline.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/example.learning-journey-ui-gamified",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.45.1",
|
|
4
4
|
"description": "Duolingo-style gamified learning UI for drills and quests.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"test": "bun test"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@contractspec/lib.schema": "1.
|
|
40
|
-
"@contractspec/lib.contracts": "1.
|
|
41
|
-
"@contractspec/example.learning-journey-ui-shared": "1.
|
|
42
|
-
"@contractspec/example.learning-journey-duo-drills": "1.
|
|
43
|
-
"@contractspec/example.learning-journey-quest-challenges": "1.
|
|
44
|
-
"@contractspec/module.learning-journey": "1.
|
|
45
|
-
"@contractspec/lib.design-system": "1.
|
|
46
|
-
"@contractspec/lib.ui-kit-web": "1.
|
|
39
|
+
"@contractspec/lib.schema": "1.45.1",
|
|
40
|
+
"@contractspec/lib.contracts": "1.45.1",
|
|
41
|
+
"@contractspec/example.learning-journey-ui-shared": "1.45.1",
|
|
42
|
+
"@contractspec/example.learning-journey-duo-drills": "1.45.1",
|
|
43
|
+
"@contractspec/example.learning-journey-quest-challenges": "1.45.1",
|
|
44
|
+
"@contractspec/module.learning-journey": "1.45.1",
|
|
45
|
+
"@contractspec/lib.design-system": "1.45.1",
|
|
46
|
+
"@contractspec/lib.ui-kit-web": "1.45.1",
|
|
47
47
|
"react": "19.2.3"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@contractspec/tool.tsdown": "1.
|
|
51
|
-
"@contractspec/tool.typescript": "1.
|
|
50
|
+
"@contractspec/tool.tsdown": "1.45.1",
|
|
51
|
+
"@contractspec/tool.typescript": "1.45.1",
|
|
52
52
|
"@types/react": "^19.1.6",
|
|
53
53
|
"tsdown": "^0.18.3",
|
|
54
54
|
"typescript": "^5.9.3"
|
package/src/example.ts
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
'
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import type { ExampleSpec } from '@contractspec/lib.contracts';
|
|
2
|
+
|
|
3
|
+
const example: ExampleSpec = {
|
|
4
|
+
meta: {
|
|
5
|
+
key: 'learning-journey-ui-gamified',
|
|
6
|
+
version: '1.0.0',
|
|
7
|
+
title: 'Learning Journey UI — Gamified',
|
|
8
|
+
description:
|
|
9
|
+
'UI mini-app for gamified learning: flashcards, mastery ring, calendar.',
|
|
10
|
+
kind: 'ui',
|
|
11
|
+
visibility: 'public',
|
|
12
|
+
stability: 'experimental',
|
|
13
|
+
owners: ['@platform.core'],
|
|
14
|
+
tags: ['learning', 'ui', 'gamified'],
|
|
15
|
+
},
|
|
9
16
|
docs: {
|
|
10
17
|
rootDocId: 'docs.examples.learning-journey-ui-gamified',
|
|
11
18
|
},
|
|
@@ -19,6 +26,6 @@ const example = {
|
|
|
19
26
|
studio: { enabled: true, installable: true },
|
|
20
27
|
mcp: { enabled: true },
|
|
21
28
|
},
|
|
22
|
-
}
|
|
29
|
+
};
|
|
23
30
|
|
|
24
31
|
export default example;
|