@lssm/example.learning-journey-ui-gamified 0.0.0-canary-20251212230121 → 0.0.0-canary-20251215220103

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.
@@ -1,2 +1,2 @@
1
- import { i as Overview, n as Progress, r as Steps, t as Timeline } from "../index-DiAD2ivN.mjs";
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-20251212230121",
3
+ "version": "0.0.0-canary-20251215220103",
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,27 +26,29 @@
24
26
  },
25
27
  "dependencies": {
26
28
  "@lssm/example.learning-journey-ui-shared": "workspace:*",
27
- "@lssm/example.learning-journey.duo-drills": "workspace:*",
28
- "@lssm/example.learning-journey.quest-challenges": "workspace:*",
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:*",
32
- "react": "^19.1.0"
34
+ "react": "^19.2.3"
33
35
  },
34
36
  "devDependencies": {
35
37
  "@lssm/tool.tsdown": "workspace:*",
36
38
  "@lssm/tool.typescript": "workspace:*",
37
39
  "@types/react": "^19.1.6",
38
- "tsdown": "^0.17.0",
40
+ "tsdown": "^0.17.4",
39
41
  "typescript": "^5.9.3"
40
42
  },
41
43
  "peerDependencies": {
42
- "react": "^18.0.0 || ^19.0.0"
44
+ "react": "^19.2.3"
43
45
  },
44
46
  "module": "./dist/index.js",
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
  "./*": "./*"
@@ -91,4 +91,3 @@ export function GamifiedMiniApp({
91
91
  </div>
92
92
  );
93
93
  }
94
-
@@ -51,4 +51,3 @@ export function DayCalendar({
51
51
  </div>
52
52
  );
53
53
  }
54
-
@@ -98,4 +98,3 @@ export function FlashCard({
98
98
  </Card>
99
99
  );
100
100
  }
101
-
@@ -79,4 +79,3 @@ export function MasteryRing({
79
79
  </div>
80
80
  );
81
81
  }
82
-
@@ -1,4 +1,3 @@
1
1
  export { FlashCard } from './FlashCard';
2
2
  export { MasteryRing } from './MasteryRing';
3
3
  export { DayCalendar } from './DayCalendar';
4
-
@@ -0,0 +1 @@
1
+ import './learning-journey-ui-gamified.docblock';
@@ -0,0 +1,18 @@
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);
package/src/example.ts ADDED
@@ -0,0 +1,24 @@
1
+ const example = {
2
+ id: 'learning-journey-ui-gamified',
3
+ title: 'Learning Journey UI — Gamified',
4
+ summary:
5
+ 'UI mini-app for gamified learning: flashcards, mastery ring, calendar.',
6
+ tags: ['learning', 'ui', 'gamified'],
7
+ kind: 'ui',
8
+ visibility: 'public',
9
+ docs: {
10
+ rootDocId: 'docs.examples.learning-journey-ui-gamified',
11
+ },
12
+ entrypoints: {
13
+ packageName: '@lssm/example.learning-journey-ui-gamified',
14
+ docs: './docs',
15
+ },
16
+ surfaces: {
17
+ templates: true,
18
+ sandbox: { enabled: true, modes: ['playground', 'markdown'] },
19
+ studio: { enabled: true, installable: true },
20
+ mcp: { enabled: true },
21
+ },
22
+ } as const;
23
+
24
+ export default example;
package/src/index.ts CHANGED
@@ -6,4 +6,5 @@ export { Overview, Steps, Progress, Timeline } from './views';
6
6
 
7
7
  // Components
8
8
  export { FlashCard, MasteryRing, DayCalendar } from './components';
9
-
9
+ export { default as example } from './example';
10
+ import './docs';
@@ -162,4 +162,3 @@ export function Overview({ track, progress, onStart }: GamifiedOverviewProps) {
162
162
  </div>
163
163
  );
164
164
  }
165
-
@@ -34,7 +34,7 @@ export function Progress({ track, progress }: LearningViewProps) {
34
34
  });
35
35
  });
36
36
 
37
- const surfaceColors: Array<'green' | 'blue' | 'violet' | 'orange'> = [
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
-
@@ -48,4 +48,3 @@ export function Steps({ track, progress, onStepComplete }: LearningViewProps) {
48
48
  </div>
49
49
  );
50
50
  }
51
-
@@ -195,4 +195,3 @@ export function Timeline({ track, progress }: LearningViewProps) {
195
195
  </div>
196
196
  );
197
197
  }
198
-
@@ -2,4 +2,3 @@ export { Overview } from './Overview';
2
2
  export { Steps } from './Steps';
3
3
  export { Progress } from './Progress';
4
4
  export { Timeline } from './Timeline';
5
-