@contractspec/example.learning-journey-registry 1.56.1 → 1.58.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.
- package/.turbo/turbo-build.log +53 -51
- package/.turbo/turbo-prebuild.log +1 -0
- package/CHANGELOG.md +50 -0
- package/dist/api-types.d.ts +33 -37
- package/dist/api-types.d.ts.map +1 -1
- package/dist/api-types.js +1 -0
- package/dist/api.d.ts +7 -11
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +261 -161
- package/dist/api.test.d.ts +2 -0
- package/dist/api.test.d.ts.map +1 -0
- package/dist/browser/api-types.js +0 -0
- package/dist/browser/api.js +270 -0
- package/dist/browser/docs/index.js +33 -0
- package/dist/browser/docs/learning-journey-registry.docblock.js +33 -0
- package/dist/browser/example.js +32 -0
- package/dist/browser/index.js +540 -0
- package/dist/browser/learning-journey-registry.feature.js +45 -0
- package/dist/browser/presentations/index.js +67 -0
- package/dist/browser/progress-store.js +34 -0
- package/dist/browser/tracks.js +52 -0
- package/dist/browser/ui/LearningMiniApp.js +133 -0
- package/dist/browser/ui/index.js +133 -0
- package/dist/docs/index.d.ts +2 -1
- package/dist/docs/index.d.ts.map +1 -0
- package/dist/docs/index.js +34 -1
- package/dist/docs/learning-journey-registry.docblock.d.ts +2 -1
- package/dist/docs/learning-journey-registry.docblock.d.ts.map +1 -0
- package/dist/docs/learning-journey-registry.docblock.js +18 -22
- package/dist/example.d.ts +2 -6
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +30 -39
- package/dist/index.d.ts +8 -8
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +541 -10
- package/dist/learning-journey-registry.feature.d.ts +1 -7
- package/dist/learning-journey-registry.feature.d.ts.map +1 -1
- package/dist/learning-journey-registry.feature.js +44 -73
- package/dist/node/api-types.js +0 -0
- package/dist/node/api.js +270 -0
- package/dist/node/docs/index.js +33 -0
- package/dist/node/docs/learning-journey-registry.docblock.js +33 -0
- package/dist/node/example.js +32 -0
- package/dist/node/index.js +540 -0
- package/dist/node/learning-journey-registry.feature.js +45 -0
- package/dist/node/presentations/index.js +67 -0
- package/dist/node/progress-store.js +34 -0
- package/dist/node/tracks.js +52 -0
- package/dist/node/ui/LearningMiniApp.js +133 -0
- package/dist/node/ui/index.js +133 -0
- package/dist/presentations/index.d.ts +4 -9
- package/dist/presentations/index.d.ts.map +1 -1
- package/dist/presentations/index.js +63 -66
- package/dist/progress-store.d.ts +6 -10
- package/dist/progress-store.d.ts.map +1 -1
- package/dist/progress-store.js +33 -29
- package/dist/tracks.d.ts +33 -36
- package/dist/tracks.d.ts.map +1 -1
- package/dist/tracks.js +44 -39
- package/dist/ui/LearningMiniApp.d.ts +8 -16
- package/dist/ui/LearningMiniApp.d.ts.map +1 -1
- package/dist/ui/LearningMiniApp.js +123 -69
- package/dist/ui/index.d.ts +2 -2
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +134 -3
- package/package.json +144 -49
- package/tsdown.config.js +1 -2
- package/.turbo/turbo-build$colon$bundle.log +0 -50
- package/dist/api.js.map +0 -1
- package/dist/docs/learning-journey-registry.docblock.js.map +0 -1
- package/dist/example.js.map +0 -1
- package/dist/learning-journey-registry.feature.js.map +0 -1
- package/dist/presentations/index.js.map +0 -1
- package/dist/progress-store.js.map +0 -1
- package/dist/tracks.js.map +0 -1
- package/dist/ui/LearningMiniApp.js.map +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,51 +1,53 @@
|
|
|
1
|
-
$ bun
|
|
2
|
-
$
|
|
3
|
-
$
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
1
|
+
$ contractspec-bun-build prebuild
|
|
2
|
+
$ bun run prebuild && bun run build:bundle && bun run build:types
|
|
3
|
+
$ contractspec-bun-build prebuild
|
|
4
|
+
$ contractspec-bun-build transpile
|
|
5
|
+
[contractspec-bun-build] transpile target=bun root=src entries=12
|
|
6
|
+
Bundled 12 modules in 5ms
|
|
7
|
+
|
|
8
|
+
./api-types.js 8 bytes (entry point)
|
|
9
|
+
./index.js 18.13 KB (entry point)
|
|
10
|
+
ui/index.js 4.71 KB (entry point)
|
|
11
|
+
ui/LearningMiniApp.js 4.71 KB (entry point)
|
|
12
|
+
./api.js 9.56 KB (entry point)
|
|
13
|
+
./progress-store.js 0.79 KB (entry point)
|
|
14
|
+
./tracks.js 1.79 KB (entry point)
|
|
15
|
+
docs/index.js 1.36 KB (entry point)
|
|
16
|
+
docs/learning-journey-registry.docblock.js 1.36 KB (entry point)
|
|
17
|
+
./example.js 0.92 KB (entry point)
|
|
18
|
+
./learning-journey-registry.feature.js 1.31 KB (entry point)
|
|
19
|
+
presentations/index.js 1.82 KB (entry point)
|
|
20
|
+
|
|
21
|
+
[contractspec-bun-build] transpile target=node root=src entries=12
|
|
22
|
+
Bundled 12 modules in 6ms
|
|
23
|
+
|
|
24
|
+
./api-types.js 0 KB (entry point)
|
|
25
|
+
./index.js 18.11 KB (entry point)
|
|
26
|
+
ui/index.js 4.71 KB (entry point)
|
|
27
|
+
ui/LearningMiniApp.js 4.71 KB (entry point)
|
|
28
|
+
./api.js 9.55 KB (entry point)
|
|
29
|
+
./progress-store.js 0.78 KB (entry point)
|
|
30
|
+
./tracks.js 1.79 KB (entry point)
|
|
31
|
+
docs/index.js 1.34 KB (entry point)
|
|
32
|
+
docs/learning-journey-registry.docblock.js 1.34 KB (entry point)
|
|
33
|
+
./example.js 0.91 KB (entry point)
|
|
34
|
+
./learning-journey-registry.feature.js 1.30 KB (entry point)
|
|
35
|
+
presentations/index.js 1.81 KB (entry point)
|
|
36
|
+
|
|
37
|
+
[contractspec-bun-build] transpile target=browser root=src entries=12
|
|
38
|
+
Bundled 12 modules in 10ms
|
|
39
|
+
|
|
40
|
+
./api-types.js 0 KB (entry point)
|
|
41
|
+
./index.js 18.11 KB (entry point)
|
|
42
|
+
ui/index.js 4.71 KB (entry point)
|
|
43
|
+
ui/LearningMiniApp.js 4.71 KB (entry point)
|
|
44
|
+
./api.js 9.55 KB (entry point)
|
|
45
|
+
./progress-store.js 0.78 KB (entry point)
|
|
46
|
+
./tracks.js 1.79 KB (entry point)
|
|
47
|
+
docs/index.js 1.34 KB (entry point)
|
|
48
|
+
docs/learning-journey-registry.docblock.js 1.34 KB (entry point)
|
|
49
|
+
./example.js 0.91 KB (entry point)
|
|
50
|
+
./learning-journey-registry.feature.js 1.30 KB (entry point)
|
|
51
|
+
presentations/index.js 1.81 KB (entry point)
|
|
52
|
+
|
|
53
|
+
$ contractspec-bun-build types
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ contractspec-bun-build prebuild
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
# @contractspec/example.learning-journey-registry
|
|
2
2
|
|
|
3
|
+
## 1.58.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- d1f0fd0: chore: Migrate non-app package builds from tsdown to shared Bun tooling, add `@contractspec/tool.bun`, and standardize `prebuild`/`build`/`typecheck` with platform-aware exports and `tsc` declaration emission into `dist`.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [d1f0fd0]
|
|
12
|
+
- Updated dependencies [4355a9e]
|
|
13
|
+
- @contractspec/example.learning-journey-studio-onboarding@1.58.0
|
|
14
|
+
- @contractspec/example.learning-journey-quest-challenges@1.58.0
|
|
15
|
+
- @contractspec/example.learning-journey-crm-onboarding@1.58.0
|
|
16
|
+
- @contractspec/example.learning-journey-ambient-coach@1.58.0
|
|
17
|
+
- @contractspec/example.learning-journey-platform-tour@1.58.0
|
|
18
|
+
- @contractspec/example.learning-journey-ui-onboarding@1.58.0
|
|
19
|
+
- @contractspec/example.learning-journey-ui-coaching@1.58.0
|
|
20
|
+
- @contractspec/example.learning-journey-ui-gamified@1.58.0
|
|
21
|
+
- @contractspec/example.learning-journey-duo-drills@1.58.0
|
|
22
|
+
- @contractspec/example.learning-journey-ui-shared@1.58.0
|
|
23
|
+
- @contractspec/module.learning-journey@1.58.0
|
|
24
|
+
- @contractspec/lib.contracts@1.58.0
|
|
25
|
+
|
|
26
|
+
## 1.57.0
|
|
27
|
+
|
|
28
|
+
### Minor Changes
|
|
29
|
+
|
|
30
|
+
- 11a5a05: feat: improve product intent
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- Updated dependencies [8ecf3c1]
|
|
35
|
+
- Updated dependencies [47c48c2]
|
|
36
|
+
- Updated dependencies [a119963]
|
|
37
|
+
- Updated dependencies [4651e06]
|
|
38
|
+
- Updated dependencies [ad9d10a]
|
|
39
|
+
- Updated dependencies [11a5a05]
|
|
40
|
+
- @contractspec/lib.contracts@1.57.0
|
|
41
|
+
- @contractspec/example.learning-journey-studio-onboarding@1.57.0
|
|
42
|
+
- @contractspec/example.learning-journey-quest-challenges@1.57.0
|
|
43
|
+
- @contractspec/example.learning-journey-crm-onboarding@1.57.0
|
|
44
|
+
- @contractspec/example.learning-journey-ambient-coach@1.57.0
|
|
45
|
+
- @contractspec/example.learning-journey-platform-tour@1.57.0
|
|
46
|
+
- @contractspec/example.learning-journey-ui-onboarding@1.57.0
|
|
47
|
+
- @contractspec/example.learning-journey-ui-coaching@1.57.0
|
|
48
|
+
- @contractspec/example.learning-journey-ui-gamified@1.57.0
|
|
49
|
+
- @contractspec/example.learning-journey-duo-drills@1.57.0
|
|
50
|
+
- @contractspec/example.learning-journey-ui-shared@1.57.0
|
|
51
|
+
- @contractspec/module.learning-journey@1.57.0
|
|
52
|
+
|
|
3
53
|
## 1.56.1
|
|
4
54
|
|
|
5
55
|
### Patch Changes
|
package/dist/api-types.d.ts
CHANGED
|
@@ -1,41 +1,37 @@
|
|
|
1
|
-
import { LearningJourneyTrackSpec } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
learnerId: string;
|
|
11
|
-
trackId?: string;
|
|
1
|
+
import type { LearningJourneyTrackSpec } from '@contractspec/module.learning-journey/track-spec';
|
|
2
|
+
export interface LearningEvent {
|
|
3
|
+
name: string;
|
|
4
|
+
version?: number;
|
|
5
|
+
sourceModule?: string;
|
|
6
|
+
payload?: Record<string, unknown>;
|
|
7
|
+
occurredAt?: Date;
|
|
8
|
+
learnerId: string;
|
|
9
|
+
trackId?: string;
|
|
12
10
|
}
|
|
13
|
-
type StepStatus = 'PENDING' | 'COMPLETED';
|
|
14
|
-
interface StepProgress {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
export type StepStatus = 'PENDING' | 'COMPLETED';
|
|
12
|
+
export interface StepProgress {
|
|
13
|
+
id: string;
|
|
14
|
+
status: StepStatus;
|
|
15
|
+
xpEarned: number;
|
|
16
|
+
completedAt?: Date;
|
|
17
|
+
triggeringEvent?: string;
|
|
18
|
+
eventPayload?: Record<string, unknown>;
|
|
19
|
+
occurrences?: number;
|
|
20
|
+
counterStartedAt?: Date;
|
|
21
|
+
availableAt?: Date;
|
|
22
|
+
dueAt?: Date;
|
|
23
|
+
masteryCount?: number;
|
|
26
24
|
}
|
|
27
|
-
interface TrackProgress {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
export interface TrackProgress {
|
|
26
|
+
learnerId: string;
|
|
27
|
+
trackId: string;
|
|
28
|
+
progress: number;
|
|
29
|
+
isCompleted: boolean;
|
|
30
|
+
xpEarned: number;
|
|
31
|
+
startedAt?: Date;
|
|
32
|
+
completedAt?: Date;
|
|
33
|
+
lastActivityAt?: Date;
|
|
34
|
+
steps: StepProgress[];
|
|
37
35
|
}
|
|
38
|
-
type TrackResolver = (trackId: string) => LearningJourneyTrackSpec | undefined;
|
|
39
|
-
//#endregion
|
|
40
|
-
export { LearningEvent, StepProgress, StepStatus, TrackProgress, TrackResolver };
|
|
36
|
+
export type TrackResolver = (trackId: string) => LearningJourneyTrackSpec | undefined;
|
|
41
37
|
//# sourceMappingURL=api-types.d.ts.map
|
package/dist/api-types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-types.d.ts","
|
|
1
|
+
{"version":3,"file":"api-types.d.ts","sourceRoot":"","sources":["../src/api-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kDAAkD,CAAC;AAEjG,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,WAAW,CAAC;AAEjD,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,IAAI,CAAC;IACxB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB;AAED,MAAM,MAAM,aAAa,GAAG,CAC1B,OAAO,EAAE,MAAM,KACZ,wBAAwB,GAAG,SAAS,CAAC"}
|
package/dist/api-types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
package/dist/api.d.ts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
tracks: LearningJourneyTrackSpec[];
|
|
7
|
-
progress: TrackProgress[];
|
|
1
|
+
import type { LearningJourneyTrackSpec } from '@contractspec/module.learning-journey/track-spec';
|
|
2
|
+
import type { LearningEvent, TrackProgress } from './api-types';
|
|
3
|
+
export declare const listTracks: (learnerId?: string) => {
|
|
4
|
+
tracks: LearningJourneyTrackSpec[];
|
|
5
|
+
progress: TrackProgress[];
|
|
8
6
|
};
|
|
9
|
-
declare const getProgress: (trackId: string, learnerId: string) => TrackProgress | undefined;
|
|
10
|
-
declare const recordEvent: (event: LearningEvent) => TrackProgress[];
|
|
11
|
-
//#endregion
|
|
12
|
-
export { getProgress, listTracks, recordEvent };
|
|
7
|
+
export declare const getProgress: (trackId: string, learnerId: string) => TrackProgress | undefined;
|
|
8
|
+
export declare const recordEvent: (event: LearningEvent) => TrackProgress[];
|
|
13
9
|
//# sourceMappingURL=api.d.ts.map
|
package/dist/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,wBAAwB,EAGzB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAgB,aAAa,EAAE,MAAM,aAAa,CAAC;AAmL9E,eAAO,MAAM,UAAU,GAAI,YAAY,MAAM;;;CAW5C,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,SAAS,MAAM,EAAE,WAAW,MAAM,8BAQ7D,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,aAAa,oBA4F/C,CAAC"}
|