@lssm/example.learning-journey-ui-shared 0.0.0-canary-20251217083314 → 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 (76) hide show
  1. package/.turbo/turbo-build.log +24 -26
  2. package/dist/components/index.d.mts +2 -0
  3. package/dist/components/index.mjs +3 -0
  4. package/dist/components-tyJAN4Ru.mjs +164 -0
  5. package/dist/hooks/index.d.mts +2 -0
  6. package/dist/hooks/index.mjs +3 -0
  7. package/dist/{hooks/useLearningProgress.js → hooks-B-tDvppY.mjs} +1 -3
  8. package/dist/{hooks/useLearningProgress.d.ts → index-D_7WU_xm.d.mts} +2 -2
  9. package/dist/index-EWErSKip.d.mts +34 -0
  10. package/dist/{example.d.ts → index.d.mts} +5 -1
  11. package/dist/index.mjs +1643 -0
  12. package/dist/{types.d.ts → types-BMAby_Ku.d.mts} +1 -1
  13. package/dist/types.d.mts +2 -0
  14. package/dist/types.mjs +1 -0
  15. package/package.json +12 -22
  16. package/tsconfig.tsbuildinfo +1 -1
  17. package/tsdown.config.js +11 -14
  18. package/.turbo/turbo-build$colon$bundle.log +0 -342
  19. package/CHANGELOG.md +0 -16
  20. package/dist/components/BadgeDisplay.d.ts +0 -11
  21. package/dist/components/BadgeDisplay.js +0 -44
  22. package/dist/components/StreakCounter.d.ts +0 -11
  23. package/dist/components/StreakCounter.js +0 -45
  24. package/dist/components/ViewTabs.d.ts +0 -11
  25. package/dist/components/ViewTabs.js +0 -48
  26. package/dist/components/XpBar.d.ts +0 -13
  27. package/dist/components/XpBar.js +0 -46
  28. package/dist/components/index.d.ts +0 -5
  29. package/dist/components/index.js +0 -6
  30. package/dist/docs/index.d.ts +0 -1
  31. package/dist/docs/index.js +0 -1
  32. package/dist/docs/learning-journey-ui-shared.docblock.d.ts +0 -1
  33. package/dist/docs/learning-journey-ui-shared.docblock.js +0 -20
  34. package/dist/example.js +0 -34
  35. package/dist/hooks/index.d.ts +0 -2
  36. package/dist/hooks/index.js +0 -3
  37. package/dist/index.d.ts +0 -9
  38. package/dist/index.js +0 -11
  39. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
  40. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -16
  41. package/dist/libs/contracts/dist/docs/index.js +0 -29
  42. package/dist/libs/contracts/dist/docs/presentations.js +0 -71
  43. package/dist/libs/contracts/dist/docs/registry.js +0 -44
  44. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
  45. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
  46. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
  47. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
  48. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
  49. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
  50. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
  51. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -16
  52. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
  53. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -37
  54. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
  55. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -20
  56. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -48
  57. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
  58. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
  59. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -45
  60. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -67
  61. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
  62. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -69
  63. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -47
  64. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
  65. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
  66. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
  67. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
  68. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
  69. package/dist/libs/design-system/dist/_virtual/rolldown_runtime.js +0 -5
  70. package/dist/libs/design-system/dist/components/atoms/Button.js +0 -33
  71. package/dist/libs/design-system/dist/ui-kit-web/dist/ui/button.js +0 -55
  72. package/dist/libs/design-system/dist/ui-kit-web/dist/ui-kit-core/dist/utils.js +0 -13
  73. package/dist/libs/ui-kit-web/dist/ui/progress.js +0 -23
  74. package/dist/libs/ui-kit-web/dist/ui/utils.js +0 -10
  75. package/dist/libs/ui-kit-web/dist/ui-kit-core/dist/utils.js +0 -10
  76. package/dist/types.js +0 -0
@@ -1,26 +1,24 @@
1
-
2
- $ bun build:bundle && bun build:types
3
- $ tsdown
4
- ℹ tsdown v0.17.4 powered by rolldown v1.0.0-beta.53
5
- ℹ config file: /Users/tboutron/Documents/clients/lssm/monorepo-lssm/packages/contractspec/packages/examples/learning-journey-ui-shared/tsdown.config.js (unrun)
6
- ℹ entry: src/index.ts, src/hooks/index.ts, src/components/index.ts, src/types.ts
7
- ℹ target: esnext
8
- ℹ tsconfig: tsconfig.json
9
- ℹ Build start
10
- ℹ Cleaning 15 files
11
- ℹ dist/index.mjs 131.07 kB │ gzip: 43.50 kB
12
- ℹ dist/components/index.mjs  0.17 kB │ gzip: 0.14 kB
13
- ℹ dist/hooks/index.mjs  0.10 kB │ gzip: 0.09 kB
14
- ℹ dist/types.mjs  0.01 kB │ gzip: 0.03 kB
15
- ℹ dist/components-tyJAN4Ru.mjs  4.53 kB │ gzip: 1.63 kB
16
- ℹ dist/hooks-B-tDvppY.mjs  2.48 kB │ gzip: 0.87 kB
17
- ℹ dist/index.d.mts  1.58 kB │ gzip: 0.60 kB
18
- ℹ dist/types.d.mts  0.38 kB │ gzip: 0.19 kB
19
- ℹ dist/components/index.d.mts  0.16 kB │ gzip: 0.14 kB
20
- ℹ dist/hooks/index.d.mts  0.10 kB │ gzip: 0.09 kB
21
- ℹ dist/types-BMAby_Ku.d.mts  1.70 kB │ gzip: 0.60 kB
22
- ℹ dist/index-EWErSKip.d.mts  0.95 kB │ gzip: 0.37 kB
23
- ℹ dist/index-D_7WU_xm.d.mts  0.68 kB │ gzip: 0.35 kB
24
- ℹ 13 files, total: 143.90 kB
25
- ✔ Build complete in 3574ms
26
- $ tsc --noEmit
1
+ $ bun build:bundle && bun build:types
2
+ $ tsdown
3
+ ℹ tsdown v0.17.4 powered by rolldown v1.0.0-beta.53
4
+ ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/learning-journey-ui-shared/tsdown.config.js
5
+ ℹ entry: src/index.ts, src/hooks/index.ts, src/components/index.ts, src/types.ts
6
+ ℹ target: esnext
7
+ ℹ tsconfig: tsconfig.json
8
+ ℹ Build start
9
+ ℹ dist/index.mjs 131.07 kB │ gzip: 43.50 kB
10
+ ℹ dist/components/index.mjs  0.17 kB │ gzip: 0.14 kB
11
+ ℹ dist/hooks/index.mjs  0.10 kB │ gzip: 0.09 kB
12
+ ℹ dist/types.mjs  0.01 kB │ gzip: 0.03 kB
13
+ ℹ dist/components-tyJAN4Ru.mjs  4.53 kB │ gzip: 1.63 kB
14
+ ℹ dist/hooks-B-tDvppY.mjs  2.48 kB │ gzip: 0.87 kB
15
+ ℹ dist/index.d.mts  1.58 kB │ gzip: 0.60 kB
16
+ ℹ dist/types.d.mts  0.38 kB │ gzip: 0.19 kB
17
+ ℹ dist/components/index.d.mts  0.16 kB │ gzip: 0.14 kB
18
+ ℹ dist/hooks/index.d.mts  0.10 kB │ gzip: 0.09 kB
19
+ ℹ dist/types-BMAby_Ku.d.mts  1.70 kB │ gzip: 0.60 kB
20
+ ℹ dist/index-EWErSKip.d.mts  0.95 kB │ gzip: 0.37 kB
21
+ ℹ dist/index-D_7WU_xm.d.mts  0.68 kB │ gzip: 0.35 kB
22
+ ℹ 13 files, total: 143.90 kB
23
+ ✔ Build complete in 9299ms
24
+ $ tsc --noEmit
@@ -0,0 +1,2 @@
1
+ import { i as XpBar, n as BadgeDisplay, r as StreakCounter, t as ViewTabs } from "../index-EWErSKip.mjs";
2
+ export { BadgeDisplay, StreakCounter, ViewTabs, XpBar };
@@ -0,0 +1,3 @@
1
+ import { i as XpBar, n as BadgeDisplay, r as StreakCounter, t as ViewTabs } from "../components-tyJAN4Ru.mjs";
2
+
3
+ export { BadgeDisplay, StreakCounter, ViewTabs, XpBar };
@@ -0,0 +1,164 @@
1
+ import { Progress } from "@lssm/lib.ui-kit-web/ui/progress";
2
+ import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { Button } from "@lssm/lib.design-system";
5
+
6
+ //#region src/components/XpBar.tsx
7
+ const sizeStyles$2 = {
8
+ sm: "h-2",
9
+ md: "h-3",
10
+ lg: "h-4"
11
+ };
12
+ const labelSizeStyles = {
13
+ sm: "text-xs",
14
+ md: "text-sm",
15
+ lg: "text-base"
16
+ };
17
+ function XpBar({ current, max, level, showLabel = true, size = "md" }) {
18
+ const percentage = max > 0 ? Math.min(current / max * 100, 100) : 0;
19
+ return /* @__PURE__ */ jsxs("div", {
20
+ className: "w-full space-y-1",
21
+ children: [showLabel && /* @__PURE__ */ jsxs("div", {
22
+ className: cn("flex items-center justify-between", labelSizeStyles[size]),
23
+ children: [/* @__PURE__ */ jsxs("span", {
24
+ className: "text-muted-foreground font-medium",
25
+ children: [level !== void 0 && /* @__PURE__ */ jsxs("span", {
26
+ className: "text-primary mr-1",
27
+ children: ["Lvl ", level]
28
+ }), "XP"]
29
+ }), /* @__PURE__ */ jsxs("span", {
30
+ className: "font-semibold",
31
+ children: [
32
+ current.toLocaleString(),
33
+ " / ",
34
+ max.toLocaleString()
35
+ ]
36
+ })]
37
+ }), /* @__PURE__ */ jsx(Progress, {
38
+ value: percentage,
39
+ className: cn("bg-muted", sizeStyles$2[size])
40
+ })]
41
+ });
42
+ }
43
+
44
+ //#endregion
45
+ //#region src/components/StreakCounter.tsx
46
+ const sizeStyles$1 = {
47
+ sm: {
48
+ container: "gap-1 px-2 py-1",
49
+ icon: "text-base",
50
+ text: "text-xs"
51
+ },
52
+ md: {
53
+ container: "gap-1.5 px-3 py-1.5",
54
+ icon: "text-lg",
55
+ text: "text-sm"
56
+ },
57
+ lg: {
58
+ container: "gap-2 px-4 py-2",
59
+ icon: "text-xl",
60
+ text: "text-base"
61
+ }
62
+ };
63
+ function StreakCounter({ days, isActive = true, size = "md" }) {
64
+ const styles = sizeStyles$1[size];
65
+ return /* @__PURE__ */ jsxs("div", {
66
+ className: cn("inline-flex items-center rounded-full font-semibold", styles.container, isActive ? "bg-orange-500/10 text-orange-500" : "bg-muted text-muted-foreground"),
67
+ children: [/* @__PURE__ */ jsx("span", {
68
+ className: styles.icon,
69
+ role: "img",
70
+ "aria-label": "streak",
71
+ children: "🔥"
72
+ }), /* @__PURE__ */ jsxs("span", {
73
+ className: styles.text,
74
+ children: [
75
+ days,
76
+ " ",
77
+ days === 1 ? "day" : "days"
78
+ ]
79
+ })]
80
+ });
81
+ }
82
+
83
+ //#endregion
84
+ //#region src/components/BadgeDisplay.tsx
85
+ const BADGE_ICONS = {
86
+ studio_first_30m: "🎯",
87
+ platform_tour: "🗺️",
88
+ crm_first_win: "🏆",
89
+ drill_master: "🧠",
90
+ coach_listener: "👂",
91
+ quest_complete: "⭐",
92
+ streak_7: "🔥",
93
+ streak_30: "💎",
94
+ default: "🏅"
95
+ };
96
+ const sizeStyles = {
97
+ sm: "h-6 w-6 text-sm",
98
+ md: "h-8 w-8 text-base",
99
+ lg: "h-10 w-10 text-lg"
100
+ };
101
+ function BadgeDisplay({ badges, maxVisible = 5, size = "md" }) {
102
+ const visibleBadges = badges.slice(0, maxVisible);
103
+ const hiddenCount = badges.length - maxVisible;
104
+ if (badges.length === 0) return /* @__PURE__ */ jsx("div", {
105
+ className: "text-muted-foreground text-sm",
106
+ children: "No badges earned yet"
107
+ });
108
+ return /* @__PURE__ */ jsxs("div", {
109
+ className: "flex items-center gap-1",
110
+ children: [visibleBadges.map((badge) => /* @__PURE__ */ jsx("div", {
111
+ className: cn("flex items-center justify-center rounded-full bg-gradient-to-br from-amber-400/20 to-amber-600/20", sizeStyles[size]),
112
+ title: badge.replace(/_/g, " "),
113
+ children: BADGE_ICONS[badge] ?? BADGE_ICONS.default
114
+ }, badge)), hiddenCount > 0 && /* @__PURE__ */ jsxs("div", {
115
+ className: cn("text-muted-foreground bg-muted flex items-center justify-center rounded-full", sizeStyles[size], "text-xs font-medium"),
116
+ children: ["+", hiddenCount]
117
+ })]
118
+ });
119
+ }
120
+
121
+ //#endregion
122
+ //#region src/components/ViewTabs.tsx
123
+ const VIEW_LABELS = {
124
+ overview: {
125
+ label: "Overview",
126
+ icon: "📊"
127
+ },
128
+ steps: {
129
+ label: "Steps",
130
+ icon: "📝"
131
+ },
132
+ progress: {
133
+ label: "Progress",
134
+ icon: "📈"
135
+ },
136
+ timeline: {
137
+ label: "Timeline",
138
+ icon: "📅"
139
+ }
140
+ };
141
+ const DEFAULT_VIEWS = [
142
+ "overview",
143
+ "steps",
144
+ "progress",
145
+ "timeline"
146
+ ];
147
+ function ViewTabs({ currentView, onViewChange, availableViews = DEFAULT_VIEWS }) {
148
+ return /* @__PURE__ */ jsx("div", {
149
+ className: "flex flex-wrap gap-2",
150
+ children: availableViews.map((view) => {
151
+ const { label, icon } = VIEW_LABELS[view];
152
+ return /* @__PURE__ */ jsxs(Button, {
153
+ variant: currentView === view ? "default" : "outline",
154
+ size: "sm",
155
+ onClick: () => onViewChange(view),
156
+ className: "gap-1.5",
157
+ children: [/* @__PURE__ */ jsx("span", { children: icon }), /* @__PURE__ */ jsx("span", { children: label })]
158
+ }, view);
159
+ })
160
+ });
161
+ }
162
+
163
+ //#endregion
164
+ export { XpBar as i, BadgeDisplay as n, StreakCounter as r, ViewTabs as t };
@@ -0,0 +1,2 @@
1
+ import { t as useLearningProgress } from "../index-D_7WU_xm.mjs";
2
+ export { useLearningProgress };
@@ -0,0 +1,3 @@
1
+ import { t as useLearningProgress } from "../hooks-B-tDvppY.mjs";
2
+
3
+ export { useLearningProgress };
@@ -1,5 +1,3 @@
1
- 'use client';
2
-
3
1
  import { useCallback, useMemo, useState } from "react";
4
2
 
5
3
  //#region src/hooks/useLearningProgress.ts
@@ -70,4 +68,4 @@ function useLearningProgress(track) {
70
68
  }
71
69
 
72
70
  //#endregion
73
- export { useLearningProgress };
71
+ export { useLearningProgress as t };
@@ -1,4 +1,4 @@
1
- import { LearningProgressState } from "../types.js";
1
+ import { r as LearningProgressState } from "./types-BMAby_Ku.mjs";
2
2
  import { LearningJourneyTrackSpec } from "@lssm/module.learning-journey/track-spec";
3
3
 
4
4
  //#region src/hooks/useLearningProgress.d.ts
@@ -18,4 +18,4 @@ declare function useLearningProgress(track: LearningJourneyTrackSpec): {
18
18
  incrementStreak: () => void;
19
19
  };
20
20
  //#endregion
21
- export { useLearningProgress };
21
+ export { useLearningProgress as t };
@@ -0,0 +1,34 @@
1
+ import { c as XpBarProps, o as StreakCounterProps, s as ViewTabsProps, t as BadgeDisplayProps } from "./types-BMAby_Ku.mjs";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/components/XpBar.d.ts
5
+ declare function XpBar({
6
+ current,
7
+ max,
8
+ level,
9
+ showLabel,
10
+ size
11
+ }: XpBarProps): react_jsx_runtime0.JSX.Element;
12
+ //#endregion
13
+ //#region src/components/StreakCounter.d.ts
14
+ declare function StreakCounter({
15
+ days,
16
+ isActive,
17
+ size
18
+ }: StreakCounterProps): react_jsx_runtime0.JSX.Element;
19
+ //#endregion
20
+ //#region src/components/BadgeDisplay.d.ts
21
+ declare function BadgeDisplay({
22
+ badges,
23
+ maxVisible,
24
+ size
25
+ }: BadgeDisplayProps): react_jsx_runtime0.JSX.Element;
26
+ //#endregion
27
+ //#region src/components/ViewTabs.d.ts
28
+ declare function ViewTabs({
29
+ currentView,
30
+ onViewChange,
31
+ availableViews
32
+ }: ViewTabsProps): react_jsx_runtime0.JSX.Element;
33
+ //#endregion
34
+ export { XpBar as i, BadgeDisplay as n, StreakCounter as r, ViewTabs as t };
@@ -1,3 +1,7 @@
1
+ import { a as LearningViewProps, c as XpBarProps, i as LearningView, n as LearningMiniAppProps, o as StreakCounterProps, r as LearningProgressState, s as ViewTabsProps, t as BadgeDisplayProps } from "./types-BMAby_Ku.mjs";
2
+ import { i as XpBar, n as BadgeDisplay, r as StreakCounter, t as ViewTabs } from "./index-EWErSKip.mjs";
3
+ import { t as useLearningProgress } from "./index-D_7WU_xm.mjs";
4
+
1
5
  //#region src/example.d.ts
2
6
  declare const example: {
3
7
  readonly id: "learning-journey-ui-shared";
@@ -29,4 +33,4 @@ declare const example: {
29
33
  };
30
34
  };
31
35
  //#endregion
32
- export { example as default };
36
+ export { BadgeDisplay, type BadgeDisplayProps, type LearningMiniAppProps, type LearningProgressState, type LearningView, type LearningViewProps, StreakCounter, type StreakCounterProps, ViewTabs, type ViewTabsProps, XpBar, type XpBarProps, example, useLearningProgress };