@lssm/example.learning-journey-registry 0.0.0-canary-20251217080011 → 1.41.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.
Files changed (143) hide show
  1. package/.turbo/turbo-build.log +53 -55
  2. package/dist/api.js +1 -170
  3. package/dist/docs/index.js +1 -1
  4. package/dist/docs/learning-journey-registry.docblock.js +1 -38
  5. package/dist/example.js +1 -34
  6. package/dist/index.js +1 -13
  7. package/dist/learning-journey-registry.feature.js +1 -66
  8. package/dist/libs/contracts/src/docs/PUBLISHING.docblock.js +76 -0
  9. package/dist/libs/contracts/src/docs/accessibility_wcag_compliance_specs.docblock.js +350 -0
  10. package/dist/libs/contracts/src/docs/index.js +1 -0
  11. package/dist/libs/contracts/src/docs/presentations.js +1 -0
  12. package/dist/libs/contracts/src/docs/registry.js +1 -0
  13. package/dist/libs/contracts/src/docs/tech/PHASE_1_QUICKSTART.docblock.js +383 -0
  14. package/dist/libs/contracts/src/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +68 -0
  15. package/dist/libs/contracts/src/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +140 -0
  16. package/dist/libs/contracts/src/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +86 -0
  17. package/dist/libs/contracts/src/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +1 -0
  18. package/dist/libs/contracts/{dist → src}/docs/tech/auth/better-auth-nextjs.docblock.js +2 -24
  19. package/dist/libs/contracts/{dist → src}/docs/tech/contracts/openapi-export.docblock.js +2 -21
  20. package/dist/libs/contracts/src/docs/tech/lifecycle-stage-system.docblock.js +213 -0
  21. package/dist/libs/contracts/{dist → src}/docs/tech/llm/llm-integration.docblock.js +5 -73
  22. package/dist/libs/contracts/src/docs/tech/mcp-endpoints.docblock.js +1 -0
  23. package/dist/libs/contracts/src/docs/tech/presentation-runtime.docblock.js +1 -0
  24. package/dist/libs/contracts/src/docs/tech/schema/README.docblock.js +262 -0
  25. package/dist/libs/contracts/src/docs/tech/studio/learning-events.docblock.js +1 -0
  26. package/dist/libs/contracts/{dist → src}/docs/tech/studio/learning-journeys.docblock.js +2 -24
  27. package/dist/libs/contracts/{dist → src}/docs/tech/studio/platform-admin-panel.docblock.js +2 -23
  28. package/dist/libs/contracts/src/docs/tech/studio/project-access-teams.docblock.js +36 -0
  29. package/dist/libs/contracts/src/docs/tech/studio/project-routing.docblock.js +1 -0
  30. package/dist/libs/contracts/src/docs/tech/studio/sandbox-unlogged.docblock.js +20 -0
  31. package/dist/libs/contracts/{dist → src}/docs/tech/studio/team-invitations.docblock.js +36 -40
  32. package/dist/libs/contracts/src/docs/tech/studio/workspace-ops.docblock.js +1 -0
  33. package/dist/libs/contracts/{dist → src}/docs/tech/studio/workspaces.docblock.js +2 -23
  34. package/dist/libs/contracts/{dist → src}/docs/tech/telemetry-ingest.docblock.js +3 -36
  35. package/dist/libs/contracts/src/docs/tech/templates/runtime.docblock.js +1 -0
  36. package/dist/libs/contracts/{dist → src}/docs/tech/vscode-extension.docblock.js +3 -36
  37. package/dist/libs/contracts/src/docs/tech/workflows/overview.docblock.js +1 -0
  38. package/dist/presentations/index.js +1 -64
  39. package/dist/progress-store.js +1 -30
  40. package/dist/tracks.js +1 -47
  41. package/dist/ui/LearningMiniApp.js +1 -82
  42. package/dist/ui/index.js +1 -3
  43. package/package.json +26 -30
  44. package/tsconfig.tsbuildinfo +1 -1
  45. package/.turbo/turbo-build$colon$bundle.log +0 -410
  46. package/CHANGELOG.md +0 -24
  47. package/dist/api-types.d.ts +0 -40
  48. package/dist/api.d.ts +0 -12
  49. package/dist/docs/index.d.ts +0 -1
  50. package/dist/docs/learning-journey-registry.docblock.d.ts +0 -1
  51. package/dist/example.d.ts +0 -32
  52. package/dist/examples/learning-journey-ambient-coach/src/track.js +0 -41
  53. package/dist/examples/learning-journey-crm-onboarding/dist/track.js +0 -98
  54. package/dist/examples/learning-journey-duo-drills/src/track.js +0 -65
  55. package/dist/examples/learning-journey-platform-tour/dist/track.js +0 -105
  56. package/dist/examples/learning-journey-quest-challenges/src/track.js +0 -35
  57. package/dist/examples/learning-journey-studio-onboarding/dist/track.js +0 -90
  58. package/dist/examples/learning-journey-ui-coaching/src/CoachingMiniApp.js +0 -64
  59. package/dist/examples/learning-journey-ui-coaching/src/components/EngagementMeter.js +0 -107
  60. package/dist/examples/learning-journey-ui-coaching/src/components/TipCard.js +0 -75
  61. package/dist/examples/learning-journey-ui-coaching/src/components/TipFeed.js +0 -65
  62. package/dist/examples/learning-journey-ui-coaching/src/components/index.js +0 -3
  63. package/dist/examples/learning-journey-ui-coaching/src/docs/index.js +0 -1
  64. package/dist/examples/learning-journey-ui-coaching/src/docs/learning-journey-ui-coaching.docblock.js +0 -20
  65. package/dist/examples/learning-journey-ui-coaching/src/index.js +0 -11
  66. package/dist/examples/learning-journey-ui-coaching/src/views/Overview.js +0 -152
  67. package/dist/examples/learning-journey-ui-coaching/src/views/Progress.js +0 -117
  68. package/dist/examples/learning-journey-ui-coaching/src/views/Steps.js +0 -68
  69. package/dist/examples/learning-journey-ui-coaching/src/views/Timeline.js +0 -112
  70. package/dist/examples/learning-journey-ui-coaching/src/views/index.js +0 -4
  71. package/dist/examples/learning-journey-ui-gamified/src/GamifiedMiniApp.js +0 -64
  72. package/dist/examples/learning-journey-ui-gamified/src/components/DayCalendar.js +0 -32
  73. package/dist/examples/learning-journey-ui-gamified/src/components/FlashCard.js +0 -79
  74. package/dist/examples/learning-journey-ui-gamified/src/components/MasteryRing.js +0 -81
  75. package/dist/examples/learning-journey-ui-gamified/src/components/index.js +0 -3
  76. package/dist/examples/learning-journey-ui-gamified/src/docs/index.js +0 -1
  77. package/dist/examples/learning-journey-ui-gamified/src/docs/learning-journey-ui-gamified.docblock.js +0 -20
  78. package/dist/examples/learning-journey-ui-gamified/src/index.js +0 -11
  79. package/dist/examples/learning-journey-ui-gamified/src/views/Overview.js +0 -163
  80. package/dist/examples/learning-journey-ui-gamified/src/views/Progress.js +0 -144
  81. package/dist/examples/learning-journey-ui-gamified/src/views/Steps.js +0 -55
  82. package/dist/examples/learning-journey-ui-gamified/src/views/Timeline.js +0 -132
  83. package/dist/examples/learning-journey-ui-gamified/src/views/index.js +0 -4
  84. package/dist/examples/learning-journey-ui-onboarding/src/OnboardingMiniApp.js +0 -64
  85. package/dist/examples/learning-journey-ui-onboarding/src/components/CodeSnippet.js +0 -4
  86. package/dist/examples/learning-journey-ui-onboarding/src/components/JourneyMap.js +0 -48
  87. package/dist/examples/learning-journey-ui-onboarding/src/components/StepChecklist.js +0 -79
  88. package/dist/examples/learning-journey-ui-onboarding/src/components/index.js +0 -3
  89. package/dist/examples/learning-journey-ui-onboarding/src/docs/index.js +0 -1
  90. package/dist/examples/learning-journey-ui-onboarding/src/docs/learning-journey-ui-onboarding.docblock.js +0 -20
  91. package/dist/examples/learning-journey-ui-onboarding/src/index.js +0 -10
  92. package/dist/examples/learning-journey-ui-onboarding/src/views/Overview.js +0 -180
  93. package/dist/examples/learning-journey-ui-onboarding/src/views/Progress.js +0 -162
  94. package/dist/examples/learning-journey-ui-onboarding/src/views/Steps.js +0 -91
  95. package/dist/examples/learning-journey-ui-onboarding/src/views/Timeline.js +0 -97
  96. package/dist/examples/learning-journey-ui-onboarding/src/views/index.js +0 -4
  97. package/dist/examples/learning-journey-ui-shared/src/components/BadgeDisplay.js +0 -44
  98. package/dist/examples/learning-journey-ui-shared/src/components/StreakCounter.js +0 -45
  99. package/dist/examples/learning-journey-ui-shared/src/components/ViewTabs.js +0 -48
  100. package/dist/examples/learning-journey-ui-shared/src/components/XpBar.js +0 -46
  101. package/dist/examples/learning-journey-ui-shared/src/components/index.js +0 -4
  102. package/dist/examples/learning-journey-ui-shared/src/docs/index.js +0 -1
  103. package/dist/examples/learning-journey-ui-shared/src/docs/learning-journey-ui-shared.docblock.js +0 -20
  104. package/dist/examples/learning-journey-ui-shared/src/hooks/index.js +0 -1
  105. package/dist/examples/learning-journey-ui-shared/src/hooks/useLearningProgress.js +0 -73
  106. package/dist/examples/learning-journey-ui-shared/src/index.js +0 -8
  107. package/dist/index.d.ts +0 -8
  108. package/dist/learning-journey-registry.feature.d.ts +0 -11
  109. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
  110. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -16
  111. package/dist/libs/contracts/dist/docs/index.js +0 -29
  112. package/dist/libs/contracts/dist/docs/presentations.js +0 -71
  113. package/dist/libs/contracts/dist/docs/registry.js +0 -44
  114. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
  115. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
  116. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
  117. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
  118. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
  119. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -16
  120. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -37
  121. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
  122. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -20
  123. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -48
  124. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -45
  125. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -67
  126. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
  127. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -47
  128. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
  129. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
  130. package/dist/libs/design-system/dist/_virtual/rolldown_runtime.js +0 -5
  131. package/dist/libs/design-system/dist/components/atoms/Button.js +0 -33
  132. package/dist/libs/design-system/dist/ui-kit-web/dist/ui/button.js +0 -55
  133. package/dist/libs/design-system/dist/ui-kit-web/dist/ui-kit-core/dist/utils.js +0 -13
  134. package/dist/libs/ui-kit-core/dist/utils.js +0 -10
  135. package/dist/libs/ui-kit-web/dist/ui/card.js +0 -36
  136. package/dist/libs/ui-kit-web/dist/ui/progress.js +0 -23
  137. package/dist/libs/ui-kit-web/dist/ui/utils.js +0 -10
  138. package/dist/libs/ui-kit-web/dist/ui-kit-core/dist/utils.js +0 -10
  139. package/dist/presentations/index.d.ts +0 -9
  140. package/dist/progress-store.d.ts +0 -10
  141. package/dist/tracks.d.ts +0 -39
  142. package/dist/ui/LearningMiniApp.d.ts +0 -22
  143. package/dist/ui/index.d.ts +0 -2
@@ -1,132 +0,0 @@
1
- 'use client';
2
-
3
- import { Card, CardContent, CardHeader, CardTitle } from "../../../../libs/ui-kit-web/dist/ui/card.js";
4
- import { DayCalendar } from "../components/DayCalendar.js";
5
- import { jsx, jsxs } from "react/jsx-runtime";
6
-
7
- //#region ../learning-journey-ui-gamified/src/views/Timeline.tsx
8
- function Timeline({ track, progress }) {
9
- if (track.steps.some((s) => s.availability?.unlockOnDay !== void 0)) {
10
- const totalDays = Math.max(...track.steps.map((s) => s.availability?.unlockOnDay ?? 1), 7);
11
- const completedDays = track.steps.filter((s) => progress.completedStepIds.includes(s.id)).map((s) => s.availability?.unlockOnDay ?? 1);
12
- const currentDay = track.steps.find((s) => !progress.completedStepIds.includes(s.id))?.availability?.unlockOnDay ?? 1;
13
- return /* @__PURE__ */ jsxs("div", {
14
- className: "space-y-6",
15
- children: [
16
- /* @__PURE__ */ jsxs("div", {
17
- className: "text-center",
18
- children: [/* @__PURE__ */ jsx("h2", {
19
- className: "text-xl font-bold",
20
- children: track.name
21
- }), /* @__PURE__ */ jsx("p", {
22
- className: "text-muted-foreground",
23
- children: "Complete each day's challenge to progress"
24
- })]
25
- }),
26
- /* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, {
27
- className: "flex items-center gap-2",
28
- children: [/* @__PURE__ */ jsx("span", { children: "📅" }), /* @__PURE__ */ jsx("span", { children: "Your Journey" })]
29
- }) }), /* @__PURE__ */ jsx(CardContent, {
30
- className: "flex justify-center",
31
- children: /* @__PURE__ */ jsx(DayCalendar, {
32
- totalDays,
33
- currentDay,
34
- completedDays
35
- })
36
- })] }),
37
- /* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, {
38
- className: "flex items-center gap-2",
39
- children: [/* @__PURE__ */ jsx("span", { children: "📝" }), /* @__PURE__ */ jsx("span", { children: "Daily Challenges" })]
40
- }) }), /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx("div", {
41
- className: "space-y-3",
42
- children: track.steps.map((step) => {
43
- const day = step.availability?.unlockOnDay ?? 1;
44
- const isCompleted = progress.completedStepIds.includes(step.id);
45
- const isLocked = day > currentDay;
46
- return /* @__PURE__ */ jsxs("div", {
47
- className: `flex items-start gap-4 rounded-lg border p-4 ${isLocked ? "opacity-50" : ""}`,
48
- children: [
49
- /* @__PURE__ */ jsx("div", {
50
- className: "bg-muted flex h-10 w-10 shrink-0 items-center justify-center rounded-lg font-semibold",
51
- children: isCompleted ? "✓" : isLocked ? "🔒" : day
52
- }),
53
- /* @__PURE__ */ jsxs("div", {
54
- className: "flex-1",
55
- children: [/* @__PURE__ */ jsx("h4", {
56
- className: "font-semibold",
57
- children: step.title
58
- }), /* @__PURE__ */ jsx("p", {
59
- className: "text-muted-foreground text-sm",
60
- children: step.description
61
- })]
62
- }),
63
- step.xpReward && /* @__PURE__ */ jsxs("span", {
64
- className: `text-sm font-medium ${isCompleted ? "text-green-500" : "text-muted-foreground"}`,
65
- children: [
66
- "+",
67
- step.xpReward,
68
- " XP"
69
- ]
70
- })
71
- ]
72
- }, step.id);
73
- })
74
- }) })] })
75
- ]
76
- });
77
- }
78
- return /* @__PURE__ */ jsxs("div", {
79
- className: "space-y-6",
80
- children: [/* @__PURE__ */ jsxs("div", {
81
- className: "text-center",
82
- children: [/* @__PURE__ */ jsx("h2", {
83
- className: "text-xl font-bold",
84
- children: "Learning Path"
85
- }), /* @__PURE__ */ jsx("p", {
86
- className: "text-muted-foreground",
87
- children: "Follow the steps to master this skill"
88
- })]
89
- }), /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsx(CardContent, {
90
- className: "p-6",
91
- children: /* @__PURE__ */ jsxs("div", {
92
- className: "relative",
93
- children: [/* @__PURE__ */ jsx("div", { className: "bg-border absolute top-0 left-5 h-full w-0.5" }), /* @__PURE__ */ jsx("div", {
94
- className: "space-y-6",
95
- children: track.steps.map((step, index) => {
96
- const isCompleted = progress.completedStepIds.includes(step.id);
97
- const isCurrent = !isCompleted && track.steps.slice(0, index).every((s) => progress.completedStepIds.includes(s.id));
98
- return /* @__PURE__ */ jsxs("div", {
99
- className: "relative flex gap-4 pl-2",
100
- children: [/* @__PURE__ */ jsx("div", {
101
- className: `relative z-10 flex h-8 w-8 shrink-0 items-center justify-center rounded-full border-2 ${isCompleted ? "border-green-500 bg-green-500 text-white" : isCurrent ? "border-violet-500 bg-violet-500 text-white" : "border-border bg-background"}`,
102
- children: isCompleted ? "✓" : index + 1
103
- }), /* @__PURE__ */ jsx("div", {
104
- className: "flex-1 pb-4",
105
- children: /* @__PURE__ */ jsxs("div", {
106
- className: "flex items-start justify-between gap-2",
107
- children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h4", {
108
- className: `font-semibold ${isCompleted ? "text-foreground" : isCurrent ? "text-violet-500" : "text-muted-foreground"}`,
109
- children: step.title
110
- }), /* @__PURE__ */ jsx("p", {
111
- className: "text-muted-foreground mt-1 text-sm",
112
- children: step.description
113
- })] }), step.xpReward && /* @__PURE__ */ jsxs("span", {
114
- className: `shrink-0 rounded-full px-2 py-1 text-xs font-semibold ${isCompleted ? "bg-green-500/10 text-green-500" : "bg-muted text-muted-foreground"}`,
115
- children: [
116
- "+",
117
- step.xpReward,
118
- " XP"
119
- ]
120
- })]
121
- })
122
- })]
123
- }, step.id);
124
- })
125
- })]
126
- })
127
- }) })]
128
- });
129
- }
130
-
131
- //#endregion
132
- export { Timeline };
@@ -1,4 +0,0 @@
1
- import { Overview } from "./Overview.js";
2
- import { Steps } from "./Steps.js";
3
- import { Progress } from "./Progress.js";
4
- import { Timeline } from "./Timeline.js";
@@ -1,64 +0,0 @@
1
- 'use client';
2
-
3
- import { Card, CardContent } from "../../../libs/ui-kit-web/dist/ui/card.js";
4
- import { useLearningProgress } from "../../learning-journey-ui-shared/src/hooks/useLearningProgress.js";
5
- import { ViewTabs } from "../../learning-journey-ui-shared/src/components/ViewTabs.js";
6
- import "../../learning-journey-ui-shared/src/index.js";
7
- import { Overview } from "./views/Overview.js";
8
- import { Steps } from "./views/Steps.js";
9
- import { ProgressView } from "./views/Progress.js";
10
- import { Timeline } from "./views/Timeline.js";
11
- import { useCallback, useState } from "react";
12
- import { jsx, jsxs } from "react/jsx-runtime";
13
-
14
- //#region ../learning-journey-ui-onboarding/src/OnboardingMiniApp.tsx
15
- function OnboardingMiniApp({ track, progress: externalProgress, onStepComplete: externalOnStepComplete, onViewChange, initialView = "overview" }) {
16
- const [currentView, setCurrentView] = useState(initialView);
17
- const { progress: internalProgress, completeStep: internalCompleteStep } = useLearningProgress(track);
18
- const progress = externalProgress ?? internalProgress;
19
- const handleViewChange = useCallback((view) => {
20
- setCurrentView(view);
21
- onViewChange?.(view);
22
- }, [onViewChange]);
23
- const handleStepComplete = useCallback((stepId) => {
24
- if (externalOnStepComplete) externalOnStepComplete(stepId);
25
- else internalCompleteStep(stepId);
26
- }, [externalOnStepComplete, internalCompleteStep]);
27
- const handleStartFromOverview = useCallback(() => {
28
- setCurrentView("steps");
29
- onViewChange?.("steps");
30
- }, [onViewChange]);
31
- const renderView = () => {
32
- const viewProps = {
33
- track,
34
- progress,
35
- onStepComplete: handleStepComplete
36
- };
37
- switch (currentView) {
38
- case "overview": return /* @__PURE__ */ jsx(Overview, {
39
- ...viewProps,
40
- onStart: handleStartFromOverview
41
- });
42
- case "steps": return /* @__PURE__ */ jsx(Steps, { ...viewProps });
43
- case "progress": return /* @__PURE__ */ jsx(ProgressView, { ...viewProps });
44
- case "timeline": return /* @__PURE__ */ jsx(Timeline, { ...viewProps });
45
- default: return /* @__PURE__ */ jsx(Overview, {
46
- ...viewProps,
47
- onStart: handleStartFromOverview
48
- });
49
- }
50
- };
51
- return /* @__PURE__ */ jsxs("div", {
52
- className: "space-y-6",
53
- children: [/* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsx(CardContent, {
54
- className: "p-4",
55
- children: /* @__PURE__ */ jsx(ViewTabs, {
56
- currentView,
57
- onViewChange: handleViewChange
58
- })
59
- }) }), renderView()]
60
- });
61
- }
62
-
63
- //#endregion
64
- export { OnboardingMiniApp };
@@ -1,4 +0,0 @@
1
- 'use client';
2
-
3
- import { useState } from "react";
4
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,48 +0,0 @@
1
- 'use client';
2
-
3
- import { cn } from "../../../../libs/ui-kit-web/dist/ui/utils.js";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
-
6
- //#region ../learning-journey-ui-onboarding/src/components/JourneyMap.tsx
7
- const SURFACE_ICONS = {
8
- templates: "📋",
9
- "spec-editor": "✏️",
10
- regenerator: "🔄",
11
- playground: "🎮",
12
- evolution: "🤖",
13
- dashboard: "📊",
14
- settings: "⚙️",
15
- default: "📍"
16
- };
17
- function JourneyMap({ steps, completedStepIds, currentStepId }) {
18
- return /* @__PURE__ */ jsx("div", {
19
- className: "relative overflow-x-auto pb-4",
20
- children: /* @__PURE__ */ jsx("div", {
21
- className: "flex min-w-max items-center gap-2",
22
- children: steps.map((step, index) => {
23
- const isCompleted = completedStepIds.includes(step.id);
24
- const isCurrent = step.id === currentStepId;
25
- const icon = SURFACE_ICONS[step.metadata?.surface ?? "default"] ?? SURFACE_ICONS.default;
26
- return /* @__PURE__ */ jsxs("div", {
27
- className: "flex items-center",
28
- children: [/* @__PURE__ */ jsxs("div", {
29
- className: "flex flex-col items-center gap-2",
30
- children: [/* @__PURE__ */ jsx("div", {
31
- className: cn("flex h-14 w-14 items-center justify-center rounded-2xl border-2 text-2xl transition-all", isCompleted && "border-green-500 bg-green-500/10", isCurrent && !isCompleted && "border-violet-500 bg-violet-500/10 ring-4 ring-violet-500/20", !isCompleted && !isCurrent && "border-muted bg-muted/50"),
32
- children: isCompleted ? "✓" : icon
33
- }), /* @__PURE__ */ jsx("div", {
34
- className: "text-center",
35
- children: /* @__PURE__ */ jsx("p", {
36
- className: cn("max-w-[100px] truncate text-xs font-medium", isCompleted && "text-green-500", isCurrent && !isCompleted && "text-violet-500", !isCompleted && !isCurrent && "text-muted-foreground"),
37
- children: step.title
38
- })
39
- })]
40
- }), index < steps.length - 1 && /* @__PURE__ */ jsx("div", { className: cn("mx-2 h-1 w-8 rounded-full transition-colors", completedStepIds.includes(steps[index + 1]?.id ?? "") ? "bg-green-500" : isCompleted ? "bg-green-500/50" : "bg-muted") })]
41
- }, step.id);
42
- })
43
- })
44
- });
45
- }
46
-
47
- //#endregion
48
- export { JourneyMap };
@@ -1,79 +0,0 @@
1
- 'use client';
2
-
3
- import { Button$1 } from "../../../../libs/design-system/dist/components/atoms/Button.js";
4
- import { cn } from "../../../../libs/ui-kit-core/dist/utils.js";
5
- import { jsx, jsxs } from "react/jsx-runtime";
6
-
7
- //#region ../learning-journey-ui-onboarding/src/components/StepChecklist.tsx
8
- function StepChecklist({ step, stepNumber, isCompleted, isCurrent, isExpanded, onToggle, onComplete }) {
9
- return /* @__PURE__ */ jsxs("div", {
10
- className: cn("rounded-xl border transition-all", isCompleted && "border-green-500/50 bg-green-500/5", isCurrent && !isCompleted && "border-violet-500 bg-violet-500/5", !isCompleted && !isCurrent && "border-border"),
11
- children: [/* @__PURE__ */ jsxs("button", {
12
- type: "button",
13
- className: "flex w-full items-center gap-4 p-4 text-left",
14
- onClick: onToggle,
15
- children: [
16
- /* @__PURE__ */ jsx("div", {
17
- className: cn("flex h-8 w-8 shrink-0 items-center justify-center rounded-full border-2 text-sm font-semibold transition-colors", isCompleted && "border-green-500 bg-green-500 text-white", isCurrent && !isCompleted && "border-violet-500 text-violet-500", !isCompleted && !isCurrent && "border-muted-foreground text-muted-foreground"),
18
- children: isCompleted ? "✓" : stepNumber
19
- }),
20
- /* @__PURE__ */ jsxs("div", {
21
- className: "min-w-0 flex-1",
22
- children: [/* @__PURE__ */ jsx("h4", {
23
- className: cn("font-semibold", isCompleted && "text-green-500", isCurrent && !isCompleted && "text-foreground", !isCompleted && !isCurrent && "text-muted-foreground"),
24
- children: step.title
25
- }), !isExpanded && step.description && /* @__PURE__ */ jsx("p", {
26
- className: "text-muted-foreground truncate text-sm",
27
- children: step.description
28
- })]
29
- }),
30
- step.xpReward && /* @__PURE__ */ jsxs("span", {
31
- className: cn("shrink-0 rounded-full px-2 py-1 text-xs font-semibold", isCompleted ? "bg-green-500/10 text-green-500" : "bg-muted text-muted-foreground"),
32
- children: [
33
- "+",
34
- step.xpReward,
35
- " XP"
36
- ]
37
- }),
38
- /* @__PURE__ */ jsx("span", {
39
- className: cn("shrink-0 transition-transform", isExpanded && "rotate-180"),
40
- children: "▼"
41
- })
42
- ]
43
- }), isExpanded && /* @__PURE__ */ jsxs("div", {
44
- className: "border-t px-4 py-4",
45
- children: [
46
- step.description && /* @__PURE__ */ jsx("p", {
47
- className: "text-muted-foreground mb-4",
48
- children: step.description
49
- }),
50
- step.instructions && /* @__PURE__ */ jsxs("div", {
51
- className: "bg-muted mb-4 rounded-lg p-4",
52
- children: [/* @__PURE__ */ jsx("p", {
53
- className: "mb-2 text-sm font-medium",
54
- children: "Instructions:"
55
- }), /* @__PURE__ */ jsx("p", {
56
- className: "text-muted-foreground text-sm",
57
- children: step.instructions
58
- })]
59
- }),
60
- /* @__PURE__ */ jsxs("div", {
61
- className: "flex flex-wrap gap-2",
62
- children: [step.actionUrl && /* @__PURE__ */ jsx(Button$1, {
63
- variant: "outline",
64
- size: "sm",
65
- onClick: () => window.open(step.actionUrl, "_blank"),
66
- children: step.actionLabel ?? "Try it"
67
- }), !isCompleted && /* @__PURE__ */ jsx(Button$1, {
68
- size: "sm",
69
- onClick: onComplete,
70
- children: "Mark as Complete"
71
- })]
72
- })
73
- ]
74
- })]
75
- });
76
- }
77
-
78
- //#endregion
79
- export { StepChecklist };
@@ -1,3 +0,0 @@
1
- import { StepChecklist } from "./StepChecklist.js";
2
- import { JourneyMap } from "./JourneyMap.js";
3
- import "./CodeSnippet.js";
@@ -1 +0,0 @@
1
- import "./learning-journey-ui-onboarding.docblock.js";
@@ -1,20 +0,0 @@
1
- import { registerDocBlocks } from "../../../../libs/contracts/dist/docs/registry.js";
2
- import "../../../../libs/contracts/dist/docs/index.js";
3
-
4
- //#region ../learning-journey-ui-onboarding/src/docs/learning-journey-ui-onboarding.docblock.ts
5
- registerDocBlocks([{
6
- id: "docs.examples.learning-journey-ui-onboarding",
7
- title: "Learning Journey UI — Onboarding",
8
- summary: "UI mini-app components for onboarding: checklists, snippets, and journey mapping.",
9
- kind: "reference",
10
- visibility: "public",
11
- route: "/docs/examples/learning-journey-ui-onboarding",
12
- tags: [
13
- "learning",
14
- "ui",
15
- "onboarding"
16
- ],
17
- body: `## Includes\n- Onboarding mini-app shell\n- Views: overview, steps, progress, timeline\n- Components: step checklist, code snippet, journey map\n\n## Notes\n- Compose with design system components.\n- Ensure accessible labels and keyboard navigation.`
18
- }]);
19
-
20
- //#endregion
@@ -1,10 +0,0 @@
1
- import { Overview } from "./views/Overview.js";
2
- import { StepChecklist } from "./components/StepChecklist.js";
3
- import { Steps } from "./views/Steps.js";
4
- import { ProgressView } from "./views/Progress.js";
5
- import { JourneyMap } from "./components/JourneyMap.js";
6
- import { Timeline } from "./views/Timeline.js";
7
- import { OnboardingMiniApp } from "./OnboardingMiniApp.js";
8
- import "./views/index.js";
9
- import "./components/index.js";
10
- import "./docs/index.js";
@@ -1,180 +0,0 @@
1
- 'use client';
2
-
3
- import { Card, CardContent, CardHeader, CardTitle } from "../../../../libs/ui-kit-web/dist/ui/card.js";
4
- import { Progress } from "../../../../libs/ui-kit-web/dist/ui/progress.js";
5
- import { XpBar } from "../../../learning-journey-ui-shared/src/components/XpBar.js";
6
- import { Button$1 } from "../../../../libs/design-system/dist/components/atoms/Button.js";
7
- import "../../../learning-journey-ui-shared/src/index.js";
8
- import { jsx, jsxs } from "react/jsx-runtime";
9
-
10
- //#region ../learning-journey-ui-onboarding/src/views/Overview.tsx
11
- function Overview({ track, progress, onStart }) {
12
- const totalSteps = track.steps.length;
13
- const completedSteps = progress.completedStepIds.length;
14
- const percentComplete = totalSteps > 0 ? completedSteps / totalSteps * 100 : 0;
15
- const isComplete = completedSteps === totalSteps;
16
- const remainingSteps = totalSteps - completedSteps;
17
- const estimatedMinutes = remainingSteps * 5;
18
- const totalXp = track.totalXp ?? track.steps.reduce((sum, s) => sum + (s.xpReward ?? 0), 0) + (track.completionRewards?.xpBonus ?? 0);
19
- return /* @__PURE__ */ jsxs("div", {
20
- className: "space-y-6",
21
- children: [
22
- /* @__PURE__ */ jsx(Card, {
23
- className: "overflow-hidden bg-gradient-to-r from-blue-500/10 via-violet-500/10 to-purple-500/10",
24
- children: /* @__PURE__ */ jsx(CardContent, {
25
- className: "p-8",
26
- children: /* @__PURE__ */ jsxs("div", {
27
- className: "flex flex-col items-center gap-6 text-center md:flex-row md:text-left",
28
- children: [
29
- /* @__PURE__ */ jsx("div", {
30
- className: "flex h-20 w-20 items-center justify-center rounded-2xl bg-gradient-to-br from-blue-500 to-violet-600 text-4xl shadow-lg",
31
- children: isComplete ? "🎉" : "🚀"
32
- }),
33
- /* @__PURE__ */ jsxs("div", {
34
- className: "flex-1",
35
- children: [
36
- /* @__PURE__ */ jsx("h1", {
37
- className: "text-2xl font-bold",
38
- children: track.name
39
- }),
40
- /* @__PURE__ */ jsx("p", {
41
- className: "text-muted-foreground mt-1 max-w-2xl",
42
- children: track.description
43
- }),
44
- !isComplete && /* @__PURE__ */ jsxs("p", {
45
- className: "text-muted-foreground mt-3 text-sm",
46
- children: [
47
- "⏱️ Estimated time:",
48
- " ",
49
- estimatedMinutes > 0 ? `~${estimatedMinutes} minutes` : "Less than a minute"
50
- ]
51
- })
52
- ]
53
- }),
54
- !isComplete && /* @__PURE__ */ jsx(Button$1, {
55
- size: "lg",
56
- onClick: onStart,
57
- children: completedSteps > 0 ? "Continue" : "Get Started"
58
- })
59
- ]
60
- })
61
- })
62
- }),
63
- /* @__PURE__ */ jsxs("div", {
64
- className: "grid gap-4 md:grid-cols-3",
65
- children: [
66
- /* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsx(CardHeader, {
67
- className: "pb-2",
68
- children: /* @__PURE__ */ jsx(CardTitle, {
69
- className: "text-muted-foreground text-sm font-medium",
70
- children: "Progress"
71
- })
72
- }), /* @__PURE__ */ jsxs(CardContent, { children: [
73
- /* @__PURE__ */ jsxs("div", {
74
- className: "text-3xl font-bold",
75
- children: [Math.round(percentComplete), "%"]
76
- }),
77
- /* @__PURE__ */ jsx(Progress, {
78
- value: percentComplete,
79
- className: "mt-2 h-2"
80
- }),
81
- /* @__PURE__ */ jsxs("p", {
82
- className: "text-muted-foreground mt-2 text-sm",
83
- children: [
84
- completedSteps,
85
- " of ",
86
- totalSteps,
87
- " steps completed"
88
- ]
89
- })
90
- ] })] }),
91
- /* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsx(CardHeader, {
92
- className: "pb-2",
93
- children: /* @__PURE__ */ jsx(CardTitle, {
94
- className: "text-muted-foreground text-sm font-medium",
95
- children: "XP Earned"
96
- })
97
- }), /* @__PURE__ */ jsxs(CardContent, { children: [/* @__PURE__ */ jsx("div", {
98
- className: "text-3xl font-bold text-blue-500",
99
- children: progress.xpEarned
100
- }), /* @__PURE__ */ jsx(XpBar, {
101
- current: progress.xpEarned,
102
- max: totalXp,
103
- showLabel: false,
104
- size: "sm"
105
- })] })] }),
106
- /* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsx(CardHeader, {
107
- className: "pb-2",
108
- children: /* @__PURE__ */ jsx(CardTitle, {
109
- className: "text-muted-foreground text-sm font-medium",
110
- children: "Time Remaining"
111
- })
112
- }), /* @__PURE__ */ jsxs(CardContent, { children: [/* @__PURE__ */ jsx("div", {
113
- className: "text-3xl font-bold",
114
- children: isComplete ? "✓" : `~${estimatedMinutes}m`
115
- }), /* @__PURE__ */ jsx("p", {
116
- className: "text-muted-foreground mt-2 text-sm",
117
- children: isComplete ? "All done!" : `${remainingSteps} steps to go`
118
- })] })] })
119
- ]
120
- }),
121
- /* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, {
122
- className: "flex items-center gap-2",
123
- children: [/* @__PURE__ */ jsx("span", { children: "📋" }), /* @__PURE__ */ jsx("span", { children: "Your Journey" })]
124
- }) }), /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx("div", {
125
- className: "space-y-3",
126
- children: track.steps.map((step, index) => {
127
- const isStepCompleted = progress.completedStepIds.includes(step.id);
128
- const isCurrent = !isStepCompleted && track.steps.slice(0, index).every((s) => progress.completedStepIds.includes(s.id));
129
- return /* @__PURE__ */ jsxs("div", {
130
- className: "flex items-center gap-4 rounded-lg border p-3",
131
- children: [
132
- /* @__PURE__ */ jsx("div", {
133
- className: `flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-sm font-semibold ${isStepCompleted ? "bg-green-500 text-white" : isCurrent ? "bg-blue-500 text-white" : "bg-muted text-muted-foreground"}`,
134
- children: isStepCompleted ? "✓" : index + 1
135
- }),
136
- /* @__PURE__ */ jsx("div", {
137
- className: "min-w-0 flex-1",
138
- children: /* @__PURE__ */ jsx("p", {
139
- className: `font-medium ${isStepCompleted ? "text-green-500" : isCurrent ? "text-foreground" : "text-muted-foreground"}`,
140
- children: step.title
141
- })
142
- }),
143
- step.xpReward && /* @__PURE__ */ jsxs("span", {
144
- className: "text-muted-foreground text-sm",
145
- children: [
146
- "+",
147
- step.xpReward,
148
- " XP"
149
- ]
150
- })
151
- ]
152
- }, step.id);
153
- })
154
- }) })] }),
155
- isComplete && /* @__PURE__ */ jsx(Card, {
156
- className: "border-green-500/50 bg-green-500/5",
157
- children: /* @__PURE__ */ jsxs(CardContent, {
158
- className: "flex items-center gap-4 p-6",
159
- children: [/* @__PURE__ */ jsx("div", {
160
- className: "text-4xl",
161
- children: "🎉"
162
- }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h3", {
163
- className: "text-lg font-semibold text-green-500",
164
- children: "Onboarding Complete!"
165
- }), /* @__PURE__ */ jsxs("p", {
166
- className: "text-muted-foreground",
167
- children: [
168
- "You've completed all ",
169
- totalSteps,
170
- " steps. Welcome aboard!"
171
- ]
172
- })] })]
173
- })
174
- })
175
- ]
176
- });
177
- }
178
-
179
- //#endregion
180
- export { Overview };