@contractspec/example.learning-journey-ui-shared 3.2.0 → 3.3.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 +12 -9
- package/CHANGELOG.md +14 -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
|
@@ -2,13 +2,14 @@ $ contractspec-bun-build prebuild
|
|
|
2
2
|
$ bun run prebuild && bun run build:bundle && bun run build:types
|
|
3
3
|
$ contractspec-bun-build prebuild
|
|
4
4
|
$ contractspec-bun-build transpile
|
|
5
|
-
[contractspec-bun-build] transpile target=bun root=src entries=
|
|
6
|
-
Bundled
|
|
5
|
+
[contractspec-bun-build] transpile target=bun root=src entries=13
|
|
6
|
+
Bundled 13 modules in 65ms
|
|
7
7
|
|
|
8
8
|
components/BadgeDisplay.js 1.79 KB (entry point)
|
|
9
|
-
./index.js 10.
|
|
9
|
+
./index.js 10.96 KB (entry point)
|
|
10
10
|
hooks/index.js 2.49 KB (entry point)
|
|
11
11
|
hooks/useLearningProgress.js 2.49 KB (entry point)
|
|
12
|
+
./learning-journey-ui-shared.feature.js 0.64 KB (entry point)
|
|
12
13
|
./types.js 8 bytes (entry point)
|
|
13
14
|
components/index.js 6.24 KB (entry point)
|
|
14
15
|
components/StreakCounter.js 1.29 KB (entry point)
|
|
@@ -18,13 +19,14 @@ Bundled 12 modules in 8ms
|
|
|
18
19
|
docs/learning-journey-ui-shared.docblock.js 0.74 KB (entry point)
|
|
19
20
|
./example.js 0.92 KB (entry point)
|
|
20
21
|
|
|
21
|
-
[contractspec-bun-build] transpile target=node root=src entries=
|
|
22
|
-
Bundled
|
|
22
|
+
[contractspec-bun-build] transpile target=node root=src entries=13
|
|
23
|
+
Bundled 13 modules in 29ms
|
|
23
24
|
|
|
24
25
|
components/BadgeDisplay.js 1.78 KB (entry point)
|
|
25
|
-
./index.js 10.
|
|
26
|
+
./index.js 10.94 KB (entry point)
|
|
26
27
|
hooks/index.js 2.48 KB (entry point)
|
|
27
28
|
hooks/useLearningProgress.js 2.48 KB (entry point)
|
|
29
|
+
./learning-journey-ui-shared.feature.js 0.63 KB (entry point)
|
|
28
30
|
./types.js 0 KB (entry point)
|
|
29
31
|
components/index.js 6.23 KB (entry point)
|
|
30
32
|
components/StreakCounter.js 1.28 KB (entry point)
|
|
@@ -34,13 +36,14 @@ Bundled 12 modules in 18ms
|
|
|
34
36
|
docs/learning-journey-ui-shared.docblock.js 0.72 KB (entry point)
|
|
35
37
|
./example.js 0.90 KB (entry point)
|
|
36
38
|
|
|
37
|
-
[contractspec-bun-build] transpile target=browser root=src entries=
|
|
38
|
-
Bundled
|
|
39
|
+
[contractspec-bun-build] transpile target=browser root=src entries=13
|
|
40
|
+
Bundled 13 modules in 31ms
|
|
39
41
|
|
|
40
42
|
components/BadgeDisplay.js 1.78 KB (entry point)
|
|
41
|
-
./index.js 10.
|
|
43
|
+
./index.js 10.94 KB (entry point)
|
|
42
44
|
hooks/index.js 2.48 KB (entry point)
|
|
43
45
|
hooks/useLearningProgress.js 2.48 KB (entry point)
|
|
46
|
+
./learning-journey-ui-shared.feature.js 0.63 KB (entry point)
|
|
44
47
|
./types.js 0 KB (entry point)
|
|
45
48
|
components/index.js 6.23 KB (entry point)
|
|
46
49
|
components/StreakCounter.js 1.28 KB (entry point)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @contractspec/example.learning-journey-ui-shared
|
|
2
2
|
|
|
3
|
+
## 3.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 890a0da: fix: stability improvements
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [890a0da]
|
|
12
|
+
- @contractspec/module.learning-journey@3.3.0
|
|
13
|
+
- @contractspec/lib.contracts-spec@3.3.0
|
|
14
|
+
- @contractspec/lib.design-system@3.3.0
|
|
15
|
+
- @contractspec/lib.ui-kit-web@3.3.0
|
|
16
|
+
|
|
3
17
|
## 3.2.0
|
|
4
18
|
|
|
5
19
|
### 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.3.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.3.0",
|
|
138
|
+
"@contractspec/module.learning-journey": "3.3.0",
|
|
139
|
+
"@contractspec/lib.design-system": "3.3.0",
|
|
140
|
+
"@contractspec/lib.ui-kit-web": "3.3.0",
|
|
134
141
|
"react": "19.2.4"
|
|
135
142
|
},
|
|
136
143
|
"devDependencies": {
|
|
137
|
-
"@contractspec/tool.typescript": "3.
|
|
144
|
+
"@contractspec/tool.typescript": "3.3.0",
|
|
138
145
|
"@types/react": "^19.2.14",
|
|
139
146
|
"typescript": "^5.9.3",
|
|
140
|
-
"@contractspec/tool.bun": "3.
|
|
147
|
+
"@contractspec/tool.bun": "3.3.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
|
+
});
|