@lssm/example.learning-journey-ui-gamified 0.0.0-canary-20251212224228 → 0.0.0-canary-20251213172311
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 +13 -13
- package/CHANGELOG.md +7 -7
- package/README.md +1 -2
- package/dist/{index-Bi5V3Ihq.d.mts → index-X03x0lCK.d.mts} +5 -5
- package/dist/index.d.mts +35 -4
- package/dist/index.mjs +684 -1
- package/dist/views/index.d.mts +1 -1
- package/example.ts +1 -0
- package/package.json +7 -3
- package/src/GamifiedMiniApp.tsx +0 -1
- package/src/components/DayCalendar.tsx +0 -1
- package/src/components/FlashCard.tsx +0 -1
- package/src/components/MasteryRing.tsx +0 -1
- package/src/components/index.ts +0 -1
- package/src/docs/index.ts +3 -0
- package/src/docs/learning-journey-ui-gamified.docblock.ts +20 -0
- package/src/example.ts +25 -0
- package/src/index.ts +2 -1
- package/src/views/Overview.tsx +0 -1
- package/src/views/Progress.tsx +1 -2
- package/src/views/Steps.tsx +0 -1
- package/src/views/Timeline.tsx +0 -1
- package/src/views/index.ts +0 -1
- package/tsconfig.tsbuildinfo +1 -1
package/dist/views/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as Overview, n as Progress, r as Steps, t as Timeline } from "../index-
|
|
1
|
+
import { i as Overview, n as Progress, r as Steps, t as Timeline } from "../index-X03x0lCK.mjs";
|
|
2
2
|
export { Overview, Progress, Steps, Timeline };
|
package/example.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './src/example';
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/example.learning-journey-ui-gamified",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251213172311",
|
|
4
4
|
"description": "Duolingo-style gamified learning UI for drills and quests.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": "./src/index.ts",
|
|
10
|
+
"./example": "./src/example.ts",
|
|
11
|
+
"./docs": "./src/docs/index.ts",
|
|
10
12
|
"./views": "./src/views/index.ts",
|
|
11
13
|
"./components": "./src/components/index.ts",
|
|
12
14
|
"./*": "./*"
|
|
@@ -24,8 +26,8 @@
|
|
|
24
26
|
},
|
|
25
27
|
"dependencies": {
|
|
26
28
|
"@lssm/example.learning-journey-ui-shared": "workspace:*",
|
|
27
|
-
"@lssm/example.learning-journey
|
|
28
|
-
"@lssm/example.learning-journey
|
|
29
|
+
"@lssm/example.learning-journey-duo-drills": "workspace:*",
|
|
30
|
+
"@lssm/example.learning-journey-quest-challenges": "workspace:*",
|
|
29
31
|
"@lssm/module.learning-journey": "workspace:*",
|
|
30
32
|
"@lssm/lib.design-system": "workspace:*",
|
|
31
33
|
"@lssm/lib.ui-kit-web": "workspace:*",
|
|
@@ -45,6 +47,8 @@
|
|
|
45
47
|
"publishConfig": {
|
|
46
48
|
"exports": {
|
|
47
49
|
".": "./dist/index.js",
|
|
50
|
+
"./example": "./dist/example.js",
|
|
51
|
+
"./docs": "./dist/docs/index.js",
|
|
48
52
|
"./views": "./dist/views/index.js",
|
|
49
53
|
"./components": "./dist/components/index.js",
|
|
50
54
|
"./*": "./*"
|
package/src/GamifiedMiniApp.tsx
CHANGED
package/src/components/index.ts
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { DocBlock } from '@lssm/lib.contracts/docs';
|
|
2
|
+
import { registerDocBlocks } from '@lssm/lib.contracts/docs';
|
|
3
|
+
|
|
4
|
+
const blocks: DocBlock[] = [
|
|
5
|
+
{
|
|
6
|
+
id: 'docs.examples.learning-journey-ui-gamified',
|
|
7
|
+
title: 'Learning Journey UI — Gamified',
|
|
8
|
+
summary:
|
|
9
|
+
'UI mini-app components for gamified learning: flashcards, mastery, streak/calendar.',
|
|
10
|
+
kind: 'reference',
|
|
11
|
+
visibility: 'public',
|
|
12
|
+
route: '/docs/examples/learning-journey-ui-gamified',
|
|
13
|
+
tags: ['learning', 'ui', 'gamified'],
|
|
14
|
+
body: `## Includes\n- Gamified mini-app shell\n- Views: overview, steps, progress, timeline\n- Components: flash card, mastery ring, day calendar\n\n## Notes\n- Compose with design system components.\n- Respect prefers-reduced-motion; keep tap targets large.`,
|
|
15
|
+
},
|
|
16
|
+
];
|
|
17
|
+
|
|
18
|
+
registerDocBlocks(blocks);
|
|
19
|
+
|
|
20
|
+
|
package/src/example.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const example = {
|
|
2
|
+
id: 'learning-journey-ui-gamified',
|
|
3
|
+
title: 'Learning Journey UI — Gamified',
|
|
4
|
+
summary: 'UI mini-app for gamified learning: flashcards, mastery ring, calendar.',
|
|
5
|
+
tags: ['learning', 'ui', 'gamified'],
|
|
6
|
+
kind: 'ui',
|
|
7
|
+
visibility: 'public',
|
|
8
|
+
docs: {
|
|
9
|
+
rootDocId: 'docs.examples.learning-journey-ui-gamified',
|
|
10
|
+
},
|
|
11
|
+
entrypoints: {
|
|
12
|
+
packageName: '@lssm/example.learning-journey-ui-gamified',
|
|
13
|
+
docs: './docs',
|
|
14
|
+
},
|
|
15
|
+
surfaces: {
|
|
16
|
+
templates: true,
|
|
17
|
+
sandbox: { enabled: true, modes: ['playground', 'markdown'] },
|
|
18
|
+
studio: { enabled: true, installable: true },
|
|
19
|
+
mcp: { enabled: true },
|
|
20
|
+
},
|
|
21
|
+
} as const;
|
|
22
|
+
|
|
23
|
+
export default example;
|
|
24
|
+
|
|
25
|
+
|
package/src/index.ts
CHANGED
package/src/views/Overview.tsx
CHANGED
package/src/views/Progress.tsx
CHANGED
|
@@ -34,7 +34,7 @@ export function Progress({ track, progress }: LearningViewProps) {
|
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
const surfaceColors:
|
|
37
|
+
const surfaceColors: ('green' | 'blue' | 'violet' | 'orange')[] = [
|
|
38
38
|
'green',
|
|
39
39
|
'blue',
|
|
40
40
|
'violet',
|
|
@@ -178,4 +178,3 @@ export function Progress({ track, progress }: LearningViewProps) {
|
|
|
178
178
|
</div>
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
|
-
|
package/src/views/Steps.tsx
CHANGED
package/src/views/Timeline.tsx
CHANGED
package/src/views/index.ts
CHANGED