@contractspec/example.learning-journey-ui-shared 3.2.0 → 3.4.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 +57 -53
- package/.turbo/turbo-prebuild.log +2 -1
- package/CHANGELOG.md +29 -0
- package/dist/browser/index.js +16 -0
- package/dist/browser/learning-journey-ui-shared.feature.js +18 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +16 -0
- package/dist/learning-journey-ui-shared.feature.d.ts +1 -0
- package/dist/learning-journey-ui-shared.feature.js +19 -0
- package/dist/node/index.js +16 -0
- package/dist/node/learning-journey-ui-shared.feature.js +18 -0
- package/package.json +21 -7
- package/src/index.ts +1 -0
- package/src/learning-journey-ui-shared.feature.ts +17 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,53 +1,57 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
1
|
+
|
|
2
|
+
[0m[2m[35m$[0m [2m[1mcontractspec-bun-build prebuild[0m
|
|
3
|
+
[0m[2m[35m$[0m [2m[1mbun run prebuild && bun run build:bundle && bun run build:types[0m
|
|
4
|
+
[0m[2m[35m$[0m [2m[1mcontractspec-bun-build prebuild[0m
|
|
5
|
+
[0m[2m[35m$[0m [2m[1mcontractspec-bun-build transpile[0m
|
|
6
|
+
[contractspec-bun-build] transpile target=bun root=src entries=13
|
|
7
|
+
[32mBundled 13 modules in 11ms[0m
|
|
8
|
+
|
|
9
|
+
[34mcomponents/BadgeDisplay.js[0m 1.79 KB [2m(entry point)[0m
|
|
10
|
+
[34m./index.js[0m 10.96 KB [2m(entry point)[0m
|
|
11
|
+
[34mhooks/index.js[0m 2.49 KB [2m(entry point)[0m
|
|
12
|
+
[34mhooks/useLearningProgress.js[0m 2.49 KB [2m(entry point)[0m
|
|
13
|
+
[34m./learning-journey-ui-shared.feature.js[0m 0.64 KB [2m(entry point)[0m
|
|
14
|
+
[34m./types.js[0m 8 bytes [2m(entry point)[0m
|
|
15
|
+
[34mcomponents/index.js[0m 6.24 KB [2m(entry point)[0m
|
|
16
|
+
[34mcomponents/StreakCounter.js[0m 1.29 KB [2m(entry point)[0m
|
|
17
|
+
[34mcomponents/ViewTabs.js[0m 1.36 KB [2m(entry point)[0m
|
|
18
|
+
[34mcomponents/XpBar.js[0m 1.79 KB [2m(entry point)[0m
|
|
19
|
+
[34mdocs/index.js[0m 0.74 KB [2m(entry point)[0m
|
|
20
|
+
[34mdocs/learning-journey-ui-shared.docblock.js[0m 0.74 KB [2m(entry point)[0m
|
|
21
|
+
[34m./example.js[0m 0.92 KB [2m(entry point)[0m
|
|
22
|
+
|
|
23
|
+
[contractspec-bun-build] transpile target=node root=src entries=13
|
|
24
|
+
[32mBundled 13 modules in 12ms[0m
|
|
25
|
+
|
|
26
|
+
[34mcomponents/BadgeDisplay.js[0m 1.78 KB [2m(entry point)[0m
|
|
27
|
+
[34m./index.js[0m 10.94 KB [2m(entry point)[0m
|
|
28
|
+
[34mhooks/index.js[0m 2.48 KB [2m(entry point)[0m
|
|
29
|
+
[34mhooks/useLearningProgress.js[0m 2.48 KB [2m(entry point)[0m
|
|
30
|
+
[34m./learning-journey-ui-shared.feature.js[0m 0.63 KB [2m(entry point)[0m
|
|
31
|
+
[34m./types.js[0m 0 KB [2m(entry point)[0m
|
|
32
|
+
[34mcomponents/index.js[0m 6.23 KB [2m(entry point)[0m
|
|
33
|
+
[34mcomponents/StreakCounter.js[0m 1.28 KB [2m(entry point)[0m
|
|
34
|
+
[34mcomponents/ViewTabs.js[0m 1.35 KB [2m(entry point)[0m
|
|
35
|
+
[34mcomponents/XpBar.js[0m 1.78 KB [2m(entry point)[0m
|
|
36
|
+
[34mdocs/index.js[0m 0.72 KB [2m(entry point)[0m
|
|
37
|
+
[34mdocs/learning-journey-ui-shared.docblock.js[0m 0.72 KB [2m(entry point)[0m
|
|
38
|
+
[34m./example.js[0m 0.90 KB [2m(entry point)[0m
|
|
39
|
+
|
|
40
|
+
[contractspec-bun-build] transpile target=browser root=src entries=13
|
|
41
|
+
[32mBundled 13 modules in 9ms[0m
|
|
42
|
+
|
|
43
|
+
[34mcomponents/BadgeDisplay.js[0m 1.78 KB [2m(entry point)[0m
|
|
44
|
+
[34m./index.js[0m 10.94 KB [2m(entry point)[0m
|
|
45
|
+
[34mhooks/index.js[0m 2.48 KB [2m(entry point)[0m
|
|
46
|
+
[34mhooks/useLearningProgress.js[0m 2.48 KB [2m(entry point)[0m
|
|
47
|
+
[34m./learning-journey-ui-shared.feature.js[0m 0.63 KB [2m(entry point)[0m
|
|
48
|
+
[34m./types.js[0m 0 KB [2m(entry point)[0m
|
|
49
|
+
[34mcomponents/index.js[0m 6.23 KB [2m(entry point)[0m
|
|
50
|
+
[34mcomponents/StreakCounter.js[0m 1.28 KB [2m(entry point)[0m
|
|
51
|
+
[34mcomponents/ViewTabs.js[0m 1.35 KB [2m(entry point)[0m
|
|
52
|
+
[34mcomponents/XpBar.js[0m 1.78 KB [2m(entry point)[0m
|
|
53
|
+
[34mdocs/index.js[0m 0.72 KB [2m(entry point)[0m
|
|
54
|
+
[34mdocs/learning-journey-ui-shared.docblock.js[0m 0.72 KB [2m(entry point)[0m
|
|
55
|
+
[34m./example.js[0m 0.90 KB [2m(entry point)[0m
|
|
56
|
+
|
|
57
|
+
[0m[2m[35m$[0m [2m[1mcontractspec-bun-build types[0m
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
[0m[2m[35m$[0m [2m[1mcontractspec-bun-build prebuild[0m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @contractspec/example.learning-journey-ui-shared
|
|
2
2
|
|
|
3
|
+
## 3.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 0ee467a: feat: improve ai and customization
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [0ee467a]
|
|
12
|
+
- Updated dependencies [56ee8e6]
|
|
13
|
+
- @contractspec/module.learning-journey@3.4.0
|
|
14
|
+
- @contractspec/lib.contracts-spec@3.4.0
|
|
15
|
+
- @contractspec/lib.design-system@3.4.0
|
|
16
|
+
- @contractspec/lib.ui-kit-web@3.4.0
|
|
17
|
+
|
|
18
|
+
## 3.3.0
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- 890a0da: fix: stability improvements
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies [890a0da]
|
|
27
|
+
- @contractspec/module.learning-journey@3.3.0
|
|
28
|
+
- @contractspec/lib.contracts-spec@3.3.0
|
|
29
|
+
- @contractspec/lib.design-system@3.3.0
|
|
30
|
+
- @contractspec/lib.ui-kit-web@3.3.0
|
|
31
|
+
|
|
3
32
|
## 3.2.0
|
|
4
33
|
|
|
5
34
|
### Minor Changes
|
package/dist/browser/index.js
CHANGED
|
@@ -320,11 +320,27 @@ function useLearningProgress(track) {
|
|
|
320
320
|
incrementStreak
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
|
+
// src/learning-journey-ui-shared.feature.ts
|
|
324
|
+
import { defineFeature } from "@contractspec/lib.contracts-spec";
|
|
325
|
+
var LearningJourneyUiSharedFeature = defineFeature({
|
|
326
|
+
meta: {
|
|
327
|
+
key: "learning-journey-ui-shared",
|
|
328
|
+
version: "1.0.0",
|
|
329
|
+
title: "Learning Journey UI: Shared",
|
|
330
|
+
description: "Shared learning-journey UI components including XpBar, StreakCounter, and BadgeDisplay",
|
|
331
|
+
domain: "learning-journey",
|
|
332
|
+
owners: ["@examples"],
|
|
333
|
+
tags: ["learning", "ui", "shared", "components"],
|
|
334
|
+
stability: "experimental"
|
|
335
|
+
},
|
|
336
|
+
docs: ["docs.examples.learning-journey-ui-shared"]
|
|
337
|
+
});
|
|
323
338
|
export {
|
|
324
339
|
useLearningProgress,
|
|
325
340
|
example_default as example,
|
|
326
341
|
XpBar,
|
|
327
342
|
ViewTabs,
|
|
328
343
|
StreakCounter,
|
|
344
|
+
LearningJourneyUiSharedFeature,
|
|
329
345
|
BadgeDisplay
|
|
330
346
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// src/learning-journey-ui-shared.feature.ts
|
|
2
|
+
import { defineFeature } from "@contractspec/lib.contracts-spec";
|
|
3
|
+
var LearningJourneyUiSharedFeature = defineFeature({
|
|
4
|
+
meta: {
|
|
5
|
+
key: "learning-journey-ui-shared",
|
|
6
|
+
version: "1.0.0",
|
|
7
|
+
title: "Learning Journey UI: Shared",
|
|
8
|
+
description: "Shared learning-journey UI components including XpBar, StreakCounter, and BadgeDisplay",
|
|
9
|
+
domain: "learning-journey",
|
|
10
|
+
owners: ["@examples"],
|
|
11
|
+
tags: ["learning", "ui", "shared", "components"],
|
|
12
|
+
stability: "experimental"
|
|
13
|
+
},
|
|
14
|
+
docs: ["docs.examples.learning-journey-ui-shared"]
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
LearningJourneyUiSharedFeature
|
|
18
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { useLearningProgress } from './hooks';
|
|
2
2
|
export { XpBar, StreakCounter, BadgeDisplay, ViewTabs } from './components';
|
|
3
3
|
export type { LearningView, LearningProgressState, LearningMiniAppProps, LearningViewProps, XpBarProps, StreakCounterProps, BadgeDisplayProps, ViewTabsProps, } from './types';
|
|
4
|
+
export * from './learning-journey-ui-shared.feature';
|
|
4
5
|
export { default as example } from './example';
|
|
5
6
|
import './docs';
|
package/dist/index.js
CHANGED
|
@@ -321,11 +321,27 @@ function useLearningProgress(track) {
|
|
|
321
321
|
incrementStreak
|
|
322
322
|
};
|
|
323
323
|
}
|
|
324
|
+
// src/learning-journey-ui-shared.feature.ts
|
|
325
|
+
import { defineFeature } from "@contractspec/lib.contracts-spec";
|
|
326
|
+
var LearningJourneyUiSharedFeature = defineFeature({
|
|
327
|
+
meta: {
|
|
328
|
+
key: "learning-journey-ui-shared",
|
|
329
|
+
version: "1.0.0",
|
|
330
|
+
title: "Learning Journey UI: Shared",
|
|
331
|
+
description: "Shared learning-journey UI components including XpBar, StreakCounter, and BadgeDisplay",
|
|
332
|
+
domain: "learning-journey",
|
|
333
|
+
owners: ["@examples"],
|
|
334
|
+
tags: ["learning", "ui", "shared", "components"],
|
|
335
|
+
stability: "experimental"
|
|
336
|
+
},
|
|
337
|
+
docs: ["docs.examples.learning-journey-ui-shared"]
|
|
338
|
+
});
|
|
324
339
|
export {
|
|
325
340
|
useLearningProgress,
|
|
326
341
|
example_default as example,
|
|
327
342
|
XpBar,
|
|
328
343
|
ViewTabs,
|
|
329
344
|
StreakCounter,
|
|
345
|
+
LearningJourneyUiSharedFeature,
|
|
330
346
|
BadgeDisplay
|
|
331
347
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LearningJourneyUiSharedFeature: import("@contractspec/lib.contracts-spec").FeatureModuleSpec;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/learning-journey-ui-shared.feature.ts
|
|
3
|
+
import { defineFeature } from "@contractspec/lib.contracts-spec";
|
|
4
|
+
var LearningJourneyUiSharedFeature = defineFeature({
|
|
5
|
+
meta: {
|
|
6
|
+
key: "learning-journey-ui-shared",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
title: "Learning Journey UI: Shared",
|
|
9
|
+
description: "Shared learning-journey UI components including XpBar, StreakCounter, and BadgeDisplay",
|
|
10
|
+
domain: "learning-journey",
|
|
11
|
+
owners: ["@examples"],
|
|
12
|
+
tags: ["learning", "ui", "shared", "components"],
|
|
13
|
+
stability: "experimental"
|
|
14
|
+
},
|
|
15
|
+
docs: ["docs.examples.learning-journey-ui-shared"]
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
LearningJourneyUiSharedFeature
|
|
19
|
+
};
|
package/dist/node/index.js
CHANGED
|
@@ -320,11 +320,27 @@ function useLearningProgress(track) {
|
|
|
320
320
|
incrementStreak
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
|
+
// src/learning-journey-ui-shared.feature.ts
|
|
324
|
+
import { defineFeature } from "@contractspec/lib.contracts-spec";
|
|
325
|
+
var LearningJourneyUiSharedFeature = defineFeature({
|
|
326
|
+
meta: {
|
|
327
|
+
key: "learning-journey-ui-shared",
|
|
328
|
+
version: "1.0.0",
|
|
329
|
+
title: "Learning Journey UI: Shared",
|
|
330
|
+
description: "Shared learning-journey UI components including XpBar, StreakCounter, and BadgeDisplay",
|
|
331
|
+
domain: "learning-journey",
|
|
332
|
+
owners: ["@examples"],
|
|
333
|
+
tags: ["learning", "ui", "shared", "components"],
|
|
334
|
+
stability: "experimental"
|
|
335
|
+
},
|
|
336
|
+
docs: ["docs.examples.learning-journey-ui-shared"]
|
|
337
|
+
});
|
|
323
338
|
export {
|
|
324
339
|
useLearningProgress,
|
|
325
340
|
example_default as example,
|
|
326
341
|
XpBar,
|
|
327
342
|
ViewTabs,
|
|
328
343
|
StreakCounter,
|
|
344
|
+
LearningJourneyUiSharedFeature,
|
|
329
345
|
BadgeDisplay
|
|
330
346
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// src/learning-journey-ui-shared.feature.ts
|
|
2
|
+
import { defineFeature } from "@contractspec/lib.contracts-spec";
|
|
3
|
+
var LearningJourneyUiSharedFeature = defineFeature({
|
|
4
|
+
meta: {
|
|
5
|
+
key: "learning-journey-ui-shared",
|
|
6
|
+
version: "1.0.0",
|
|
7
|
+
title: "Learning Journey UI: Shared",
|
|
8
|
+
description: "Shared learning-journey UI components including XpBar, StreakCounter, and BadgeDisplay",
|
|
9
|
+
domain: "learning-journey",
|
|
10
|
+
owners: ["@examples"],
|
|
11
|
+
tags: ["learning", "ui", "shared", "components"],
|
|
12
|
+
stability: "experimental"
|
|
13
|
+
},
|
|
14
|
+
docs: ["docs.examples.learning-journey-ui-shared"]
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
LearningJourneyUiSharedFeature
|
|
18
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/example.learning-journey-ui-shared",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Shared UI components and hooks for learning journey mini-apps.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -103,6 +103,13 @@
|
|
|
103
103
|
"browser": "./dist/browser/hooks/useLearningProgress.js",
|
|
104
104
|
"default": "./dist/hooks/useLearningProgress.js"
|
|
105
105
|
},
|
|
106
|
+
"./learning-journey-ui-shared.feature": {
|
|
107
|
+
"types": "./dist/learning-journey-ui-shared.feature.d.ts",
|
|
108
|
+
"bun": "./dist/learning-journey-ui-shared.feature.js",
|
|
109
|
+
"node": "./dist/node/learning-journey-ui-shared.feature.js",
|
|
110
|
+
"browser": "./dist/browser/learning-journey-ui-shared.feature.js",
|
|
111
|
+
"default": "./dist/learning-journey-ui-shared.feature.js"
|
|
112
|
+
},
|
|
106
113
|
"./types": {
|
|
107
114
|
"types": "./dist/types.d.ts",
|
|
108
115
|
"bun": "./dist/types.js",
|
|
@@ -127,17 +134,17 @@
|
|
|
127
134
|
"typecheck": "tsc --noEmit"
|
|
128
135
|
},
|
|
129
136
|
"dependencies": {
|
|
130
|
-
"@contractspec/lib.contracts-spec": "3.
|
|
131
|
-
"@contractspec/module.learning-journey": "3.
|
|
132
|
-
"@contractspec/lib.design-system": "3.
|
|
133
|
-
"@contractspec/lib.ui-kit-web": "3.
|
|
137
|
+
"@contractspec/lib.contracts-spec": "3.4.0",
|
|
138
|
+
"@contractspec/module.learning-journey": "3.4.0",
|
|
139
|
+
"@contractspec/lib.design-system": "3.4.0",
|
|
140
|
+
"@contractspec/lib.ui-kit-web": "3.4.0",
|
|
134
141
|
"react": "19.2.4"
|
|
135
142
|
},
|
|
136
143
|
"devDependencies": {
|
|
137
|
-
"@contractspec/tool.typescript": "3.
|
|
144
|
+
"@contractspec/tool.typescript": "3.4.0",
|
|
138
145
|
"@types/react": "^19.2.14",
|
|
139
146
|
"typescript": "^5.9.3",
|
|
140
|
-
"@contractspec/tool.bun": "3.
|
|
147
|
+
"@contractspec/tool.bun": "3.4.0"
|
|
141
148
|
},
|
|
142
149
|
"peerDependencies": {
|
|
143
150
|
"react": "^19.2.4"
|
|
@@ -242,6 +249,13 @@
|
|
|
242
249
|
"browser": "./dist/browser/hooks/useLearningProgress.js",
|
|
243
250
|
"default": "./dist/hooks/useLearningProgress.js"
|
|
244
251
|
},
|
|
252
|
+
"./learning-journey-ui-shared.feature": {
|
|
253
|
+
"types": "./dist/learning-journey-ui-shared.feature.d.ts",
|
|
254
|
+
"bun": "./dist/learning-journey-ui-shared.feature.js",
|
|
255
|
+
"node": "./dist/node/learning-journey-ui-shared.feature.js",
|
|
256
|
+
"browser": "./dist/browser/learning-journey-ui-shared.feature.js",
|
|
257
|
+
"default": "./dist/learning-journey-ui-shared.feature.js"
|
|
258
|
+
},
|
|
245
259
|
"./types": {
|
|
246
260
|
"types": "./dist/types.d.ts",
|
|
247
261
|
"bun": "./dist/types.js",
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { defineFeature } from '@contractspec/lib.contracts-spec';
|
|
2
|
+
|
|
3
|
+
export const LearningJourneyUiSharedFeature = defineFeature({
|
|
4
|
+
meta: {
|
|
5
|
+
key: 'learning-journey-ui-shared',
|
|
6
|
+
version: '1.0.0',
|
|
7
|
+
title: 'Learning Journey UI: Shared',
|
|
8
|
+
description:
|
|
9
|
+
'Shared learning-journey UI components including XpBar, StreakCounter, and BadgeDisplay',
|
|
10
|
+
domain: 'learning-journey',
|
|
11
|
+
owners: ['@examples'],
|
|
12
|
+
tags: ['learning', 'ui', 'shared', 'components'],
|
|
13
|
+
stability: 'experimental',
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
docs: ['docs.examples.learning-journey-ui-shared'],
|
|
17
|
+
});
|