@lssm/example.learning-journey-ui-shared 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.
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-shared",
3
- "version": "0.0.0-canary-20251212230121",
3
+ "version": "0.0.0-canary-20251215220103",
4
4
  "description": "Shared UI components and hooks for learning journey mini-apps.",
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
  "./hooks": "./src/hooks/index.ts",
11
13
  "./components": "./src/components/index.ts",
12
14
  "./types": "./src/types.ts",
@@ -27,22 +29,24 @@
27
29
  "@lssm/module.learning-journey": "workspace:*",
28
30
  "@lssm/lib.design-system": "workspace:*",
29
31
  "@lssm/lib.ui-kit-web": "workspace:*",
30
- "react": "^19.1.0"
32
+ "react": "^19.2.3"
31
33
  },
32
34
  "devDependencies": {
33
35
  "@lssm/tool.tsdown": "workspace:*",
34
36
  "@lssm/tool.typescript": "workspace:*",
35
37
  "@types/react": "^19.1.6",
36
- "tsdown": "^0.17.0",
38
+ "tsdown": "^0.17.4",
37
39
  "typescript": "^5.9.3"
38
40
  },
39
41
  "peerDependencies": {
40
- "react": "^18.0.0 || ^19.0.0"
42
+ "react": "^19.2.3"
41
43
  },
42
44
  "module": "./dist/index.js",
43
45
  "publishConfig": {
44
46
  "exports": {
45
47
  ".": "./dist/index.js",
48
+ "./example": "./dist/example.js",
49
+ "./docs": "./dist/docs/index.js",
46
50
  "./hooks": "./dist/hooks/index.js",
47
51
  "./components": "./dist/components/index.js",
48
52
  "./types": "./dist/types.js",
@@ -63,4 +63,3 @@ export function BadgeDisplay({
63
63
  </div>
64
64
  );
65
65
  }
66
-
@@ -47,4 +47,3 @@ export function StreakCounter({
47
47
  </div>
48
48
  );
49
49
  }
50
-
@@ -44,4 +44,3 @@ export function ViewTabs({
44
44
  </div>
45
45
  );
46
46
  }
47
-
@@ -52,4 +52,3 @@ export function XpBar({
52
52
  </div>
53
53
  );
54
54
  }
55
-
@@ -2,4 +2,3 @@ export { XpBar } from './XpBar';
2
2
  export { StreakCounter } from './StreakCounter';
3
3
  export { BadgeDisplay } from './BadgeDisplay';
4
4
  export { ViewTabs } from './ViewTabs';
5
-
@@ -0,0 +1 @@
1
+ import './learning-journey-ui-shared.docblock';
@@ -0,0 +1,17 @@
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-shared',
7
+ title: 'Learning Journey UI — Shared',
8
+ summary: 'Shared UI components and hooks for learning journey mini-apps.',
9
+ kind: 'reference',
10
+ visibility: 'public',
11
+ route: '/docs/examples/learning-journey-ui-shared',
12
+ tags: ['learning', 'ui', 'shared'],
13
+ body: `## Includes\n- Hooks: useLearningProgress\n- Components: XpBar, StreakCounter, BadgeDisplay, ViewTabs\n\n## Notes\n- Keep components accessible (labels, focus, contrast).\n- Prefer design-system tokens and components.`,
14
+ },
15
+ ];
16
+
17
+ registerDocBlocks(blocks);
package/src/example.ts ADDED
@@ -0,0 +1,23 @@
1
+ const example = {
2
+ id: 'learning-journey-ui-shared',
3
+ title: 'Learning Journey UI — Shared',
4
+ summary: 'Shared UI components and hooks for learning journey mini-apps.',
5
+ tags: ['learning', 'ui', 'shared'],
6
+ kind: 'ui',
7
+ visibility: 'public',
8
+ docs: {
9
+ rootDocId: 'docs.examples.learning-journey-ui-shared',
10
+ },
11
+ entrypoints: {
12
+ packageName: '@lssm/example.learning-journey-ui-shared',
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;
@@ -1,2 +1 @@
1
1
  export { useLearningProgress } from './useLearningProgress';
2
-
@@ -99,4 +99,3 @@ export function useLearningProgress(track: LearningJourneyTrackSpec) {
99
99
  incrementStreak,
100
100
  };
101
101
  }
102
-
package/src/index.ts CHANGED
@@ -16,3 +16,5 @@ export type {
16
16
  ViewTabsProps,
17
17
  } from './types';
18
18
 
19
+ export { default as example } from './example';
20
+ import './docs';
package/src/types.ts CHANGED
@@ -59,4 +59,3 @@ export interface ViewTabsProps {
59
59
  onViewChange: (view: LearningView) => void;
60
60
  availableViews?: LearningView[];
61
61
  }
62
-
package/tsconfig.json CHANGED
@@ -7,4 +7,3 @@
7
7
  "outDir": "dist"
8
8
  }
9
9
  }
10
-