@contractspec/example.learning-journey-ui-shared 1.44.0 → 1.45.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$colon$bundle.log +7 -7
- package/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +41 -0
- package/dist/components/ViewTabs.d.ts +2 -2
- package/dist/components/XpBar.d.ts +2 -2
- package/dist/example.d.ts +3 -29
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +15 -10
- package/dist/example.js.map +1 -1
- package/package.json +8 -8
- package/src/example.ts +16 -8
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -11,8 +11,8 @@ $ tsdown
|
|
|
11
11
|
[34mℹ[39m [2mdist/[22m[1mcomponents/XpBar.js[22m [2m1.31 kB[22m [2m│ gzip: 0.63 kB[22m
|
|
12
12
|
[34mℹ[39m [2mdist/[22m[1mcomponents/StreakCounter.js[22m [2m1.11 kB[22m [2m│ gzip: 0.59 kB[22m
|
|
13
13
|
[34mℹ[39m [2mdist/[22m[1mcomponents/ViewTabs.js[22m [2m1.10 kB[22m [2m│ gzip: 0.59 kB[22m
|
|
14
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.86 kB[22m [2m│ gzip: 0.48 kB[22m
|
|
14
15
|
[34mℹ[39m [2mdist/[22m[1mdocs/learning-journey-ui-shared.docblock.js[22m [2m0.77 kB[22m [2m│ gzip: 0.45 kB[22m
|
|
15
|
-
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.76 kB[22m [2m│ gzip: 0.42 kB[22m
|
|
16
16
|
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.53 kB[22m [2m│ gzip: 0.21 kB[22m
|
|
17
17
|
[34mℹ[39m [2mdist/[22m[1mcomponents/index.js[22m [2m0.24 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
18
18
|
[34mℹ[39m [2mdist/[22m[1mhooks/index.js[22m [2m0.10 kB[22m [2m│ gzip: 0.07 kB[22m
|
|
@@ -23,7 +23,7 @@ $ tsdown
|
|
|
23
23
|
[34mℹ[39m [2mdist/[22mcomponents/ViewTabs.js.map [2m1.93 kB[22m [2m│ gzip: 0.89 kB[22m
|
|
24
24
|
[34mℹ[39m [2mdist/[22mcomponents/XpBar.js.map [2m1.92 kB[22m [2m│ gzip: 0.90 kB[22m
|
|
25
25
|
[34mℹ[39m [2mdist/[22mcomponents/StreakCounter.js.map [2m1.64 kB[22m [2m│ gzip: 0.79 kB[22m
|
|
26
|
-
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.
|
|
26
|
+
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.39 kB[22m [2m│ gzip: 0.70 kB[22m
|
|
27
27
|
[34mℹ[39m [2mdist/[22mdocs/learning-journey-ui-shared.docblock.js.map [2m1.09 kB[22m [2m│ gzip: 0.60 kB[22m
|
|
28
28
|
[34mℹ[39m [2mdist/[22mtypes.d.ts.map [2m0.65 kB[22m [2m│ gzip: 0.33 kB[22m
|
|
29
29
|
[34mℹ[39m [2mdist/[22mhooks/useLearningProgress.d.ts.map [2m0.19 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
@@ -31,18 +31,18 @@ $ tsdown
|
|
|
31
31
|
[34mℹ[39m [2mdist/[22mcomponents/BadgeDisplay.d.ts.map [2m0.19 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
32
32
|
[34mℹ[39m [2mdist/[22mcomponents/ViewTabs.d.ts.map [2m0.18 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
33
33
|
[34mℹ[39m [2mdist/[22mcomponents/XpBar.d.ts.map [2m0.17 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
34
|
-
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.
|
|
34
|
+
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.12 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
35
35
|
[34mℹ[39m [2mdist/[22m[32m[1mtypes.d.ts[22m[39m [2m1.70 kB[22m [2m│ gzip: 0.61 kB[22m
|
|
36
|
-
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m0.99 kB[22m [2m│ gzip: 0.42 kB[22m
|
|
37
36
|
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m0.81 kB[22m [2m│ gzip: 0.25 kB[22m
|
|
38
37
|
[34mℹ[39m [2mdist/[22m[32m[1mhooks/useLearningProgress.d.ts[22m[39m [2m0.72 kB[22m [2m│ gzip: 0.35 kB[22m
|
|
39
38
|
[34mℹ[39m [2mdist/[22m[32m[1mcomponents/StreakCounter.d.ts[22m[39m [2m0.35 kB[22m [2m│ gzip: 0.23 kB[22m
|
|
40
39
|
[34mℹ[39m [2mdist/[22m[32m[1mcomponents/BadgeDisplay.d.ts[22m[39m [2m0.35 kB[22m [2m│ gzip: 0.23 kB[22m
|
|
41
|
-
[34mℹ[39m [2mdist/[22m[32m[1mcomponents/ViewTabs.d.ts[22m[39m [2m0.34 kB[22m [2m│ gzip: 0.
|
|
40
|
+
[34mℹ[39m [2mdist/[22m[32m[1mcomponents/ViewTabs.d.ts[22m[39m [2m0.34 kB[22m [2m│ gzip: 0.23 kB[22m
|
|
42
41
|
[34mℹ[39m [2mdist/[22m[32m[1mcomponents/XpBar.d.ts[22m[39m [2m0.32 kB[22m [2m│ gzip: 0.23 kB[22m
|
|
43
42
|
[34mℹ[39m [2mdist/[22m[32m[1mcomponents/index.d.ts[22m[39m [2m0.24 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
43
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m0.20 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
44
44
|
[34mℹ[39m [2mdist/[22m[32m[1mhooks/index.d.ts[22m[39m [2m0.10 kB[22m [2m│ gzip: 0.07 kB[22m
|
|
45
45
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
46
46
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/learning-journey-ui-shared.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
47
|
-
[34mℹ[39m 38 files, total:
|
|
48
|
-
[32m✔[39m Build complete in [
|
|
47
|
+
[34mℹ[39m 38 files, total: 31.99 kB
|
|
48
|
+
[32m✔[39m Build complete in [32m14856ms[39m
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -12,8 +12,8 @@ $ tsdown
|
|
|
12
12
|
[34mℹ[39m [2mdist/[22m[1mcomponents/XpBar.js[22m [2m1.31 kB[22m [2m│ gzip: 0.63 kB[22m
|
|
13
13
|
[34mℹ[39m [2mdist/[22m[1mcomponents/StreakCounter.js[22m [2m1.11 kB[22m [2m│ gzip: 0.59 kB[22m
|
|
14
14
|
[34mℹ[39m [2mdist/[22m[1mcomponents/ViewTabs.js[22m [2m1.10 kB[22m [2m│ gzip: 0.59 kB[22m
|
|
15
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.86 kB[22m [2m│ gzip: 0.48 kB[22m
|
|
15
16
|
[34mℹ[39m [2mdist/[22m[1mdocs/learning-journey-ui-shared.docblock.js[22m [2m0.77 kB[22m [2m│ gzip: 0.45 kB[22m
|
|
16
|
-
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.76 kB[22m [2m│ gzip: 0.42 kB[22m
|
|
17
17
|
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.53 kB[22m [2m│ gzip: 0.21 kB[22m
|
|
18
18
|
[34mℹ[39m [2mdist/[22m[1mcomponents/index.js[22m [2m0.24 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
19
19
|
[34mℹ[39m [2mdist/[22m[1mhooks/index.js[22m [2m0.10 kB[22m [2m│ gzip: 0.07 kB[22m
|
|
@@ -24,7 +24,7 @@ $ tsdown
|
|
|
24
24
|
[34mℹ[39m [2mdist/[22mcomponents/ViewTabs.js.map [2m1.93 kB[22m [2m│ gzip: 0.89 kB[22m
|
|
25
25
|
[34mℹ[39m [2mdist/[22mcomponents/XpBar.js.map [2m1.92 kB[22m [2m│ gzip: 0.90 kB[22m
|
|
26
26
|
[34mℹ[39m [2mdist/[22mcomponents/StreakCounter.js.map [2m1.64 kB[22m [2m│ gzip: 0.79 kB[22m
|
|
27
|
-
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.
|
|
27
|
+
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.39 kB[22m [2m│ gzip: 0.70 kB[22m
|
|
28
28
|
[34mℹ[39m [2mdist/[22mdocs/learning-journey-ui-shared.docblock.js.map [2m1.09 kB[22m [2m│ gzip: 0.60 kB[22m
|
|
29
29
|
[34mℹ[39m [2mdist/[22mtypes.d.ts.map [2m0.65 kB[22m [2m│ gzip: 0.33 kB[22m
|
|
30
30
|
[34mℹ[39m [2mdist/[22mhooks/useLearningProgress.d.ts.map [2m0.19 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
@@ -32,9 +32,8 @@ $ tsdown
|
|
|
32
32
|
[34mℹ[39m [2mdist/[22mcomponents/BadgeDisplay.d.ts.map [2m0.19 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
33
33
|
[34mℹ[39m [2mdist/[22mcomponents/ViewTabs.d.ts.map [2m0.18 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
34
34
|
[34mℹ[39m [2mdist/[22mcomponents/XpBar.d.ts.map [2m0.17 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
35
|
-
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.
|
|
35
|
+
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.12 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
36
36
|
[34mℹ[39m [2mdist/[22m[32m[1mtypes.d.ts[22m[39m [2m1.70 kB[22m [2m│ gzip: 0.61 kB[22m
|
|
37
|
-
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m0.99 kB[22m [2m│ gzip: 0.42 kB[22m
|
|
38
37
|
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m0.81 kB[22m [2m│ gzip: 0.25 kB[22m
|
|
39
38
|
[34mℹ[39m [2mdist/[22m[32m[1mhooks/useLearningProgress.d.ts[22m[39m [2m0.72 kB[22m [2m│ gzip: 0.35 kB[22m
|
|
40
39
|
[34mℹ[39m [2mdist/[22m[32m[1mcomponents/StreakCounter.d.ts[22m[39m [2m0.35 kB[22m [2m│ gzip: 0.23 kB[22m
|
|
@@ -42,8 +41,9 @@ $ tsdown
|
|
|
42
41
|
[34mℹ[39m [2mdist/[22m[32m[1mcomponents/ViewTabs.d.ts[22m[39m [2m0.34 kB[22m [2m│ gzip: 0.23 kB[22m
|
|
43
42
|
[34mℹ[39m [2mdist/[22m[32m[1mcomponents/XpBar.d.ts[22m[39m [2m0.32 kB[22m [2m│ gzip: 0.23 kB[22m
|
|
44
43
|
[34mℹ[39m [2mdist/[22m[32m[1mcomponents/index.d.ts[22m[39m [2m0.24 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
44
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m0.20 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
45
45
|
[34mℹ[39m [2mdist/[22m[32m[1mhooks/index.d.ts[22m[39m [2m0.10 kB[22m [2m│ gzip: 0.07 kB[22m
|
|
46
46
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
47
47
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/learning-journey-ui-shared.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
48
|
-
[34mℹ[39m 38 files, total:
|
|
49
|
-
[32m✔[39m Build complete in [
|
|
48
|
+
[34mℹ[39m 38 files, total: 31.99 kB
|
|
49
|
+
[32m✔[39m Build complete in [32m13979ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# @contractspec/example.learning-journey-ui-shared
|
|
2
2
|
|
|
3
|
+
## 1.45.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e73ca1d: feat: improve app config and examples contracts
|
|
8
|
+
feat: Contract layers support (features, examples, app-configs)
|
|
9
|
+
|
|
10
|
+
### New CLI Commands
|
|
11
|
+
- `contractspec list layers` - List all contract layers with filtering
|
|
12
|
+
|
|
13
|
+
### Enhanced Commands
|
|
14
|
+
- `contractspec ci` - New `layers` check category validates features/examples/config
|
|
15
|
+
- `contractspec doctor` - New `layers` health checks
|
|
16
|
+
- `contractspec integrity` - Now shows layer statistics
|
|
17
|
+
|
|
18
|
+
### New APIs
|
|
19
|
+
- `discoverLayers()` - Scan workspace for all layer files
|
|
20
|
+
- `scanExampleSource()` - Parse ExampleSpec from source code
|
|
21
|
+
- `isExampleFile()` - Check if file is an example spec
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [e73ca1d]
|
|
26
|
+
- @contractspec/module.learning-journey@1.45.0
|
|
27
|
+
- @contractspec/lib.design-system@1.45.0
|
|
28
|
+
- @contractspec/lib.ui-kit-web@1.45.0
|
|
29
|
+
- @contractspec/lib.contracts@1.45.0
|
|
30
|
+
- @contractspec/lib.schema@1.45.0
|
|
31
|
+
|
|
32
|
+
## 1.44.1
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- 3c594fb: fix
|
|
37
|
+
- Updated dependencies [3c594fb]
|
|
38
|
+
- @contractspec/module.learning-journey@1.44.1
|
|
39
|
+
- @contractspec/lib.design-system@1.44.1
|
|
40
|
+
- @contractspec/lib.ui-kit-web@1.44.1
|
|
41
|
+
- @contractspec/lib.contracts@1.44.1
|
|
42
|
+
- @contractspec/lib.schema@1.44.1
|
|
43
|
+
|
|
3
44
|
## 1.44.0
|
|
4
45
|
|
|
5
46
|
### Minor Changes
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ViewTabsProps } from "../types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ViewTabs.d.ts
|
|
5
5
|
declare function ViewTabs({
|
|
6
6
|
currentView,
|
|
7
7
|
onViewChange,
|
|
8
8
|
availableViews
|
|
9
|
-
}: ViewTabsProps):
|
|
9
|
+
}: ViewTabsProps): react_jsx_runtime1.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { ViewTabs };
|
|
12
12
|
//# sourceMappingURL=ViewTabs.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { XpBarProps } from "../types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/XpBar.d.ts
|
|
5
5
|
declare function XpBar({
|
|
@@ -8,7 +8,7 @@ declare function XpBar({
|
|
|
8
8
|
level,
|
|
9
9
|
showLabel,
|
|
10
10
|
size
|
|
11
|
-
}: XpBarProps):
|
|
11
|
+
}: XpBarProps): react_jsx_runtime2.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { XpBar };
|
|
14
14
|
//# sourceMappingURL=XpBar.d.ts.map
|
package/dist/example.d.ts
CHANGED
|
@@ -1,33 +1,7 @@
|
|
|
1
|
+
import { ExampleSpec } from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
1
3
|
//#region src/example.d.ts
|
|
2
|
-
declare const example:
|
|
3
|
-
readonly id: "learning-journey-ui-shared";
|
|
4
|
-
readonly title: "Learning Journey UI — Shared";
|
|
5
|
-
readonly summary: "Shared UI components and hooks for learning journey mini-apps.";
|
|
6
|
-
readonly tags: readonly ["learning", "ui", "shared"];
|
|
7
|
-
readonly kind: "ui";
|
|
8
|
-
readonly visibility: "public";
|
|
9
|
-
readonly docs: {
|
|
10
|
-
readonly rootDocId: "docs.examples.learning-journey-ui-shared";
|
|
11
|
-
};
|
|
12
|
-
readonly entrypoints: {
|
|
13
|
-
readonly packageName: "@contractspec/example.learning-journey-ui-shared";
|
|
14
|
-
readonly docs: "./docs";
|
|
15
|
-
};
|
|
16
|
-
readonly surfaces: {
|
|
17
|
-
readonly templates: true;
|
|
18
|
-
readonly sandbox: {
|
|
19
|
-
readonly enabled: true;
|
|
20
|
-
readonly modes: readonly ["playground", "markdown"];
|
|
21
|
-
};
|
|
22
|
-
readonly studio: {
|
|
23
|
-
readonly enabled: true;
|
|
24
|
-
readonly installable: true;
|
|
25
|
-
};
|
|
26
|
-
readonly mcp: {
|
|
27
|
-
readonly enabled: true;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
};
|
|
4
|
+
declare const example: ExampleSpec;
|
|
31
5
|
//#endregion
|
|
32
6
|
export { example as default };
|
|
33
7
|
//# sourceMappingURL=example.d.ts.map
|
package/dist/example.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SAAS"}
|
package/dist/example.js
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
//#region src/example.ts
|
|
2
2
|
const example = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"learning",
|
|
8
|
-
"ui",
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
meta: {
|
|
4
|
+
key: "learning-journey-ui-shared",
|
|
5
|
+
version: "1.0.0",
|
|
6
|
+
title: "Learning Journey UI — Shared",
|
|
7
|
+
description: "Shared UI components and hooks for learning journey mini-apps.",
|
|
8
|
+
kind: "ui",
|
|
9
|
+
visibility: "public",
|
|
10
|
+
stability: "experimental",
|
|
11
|
+
owners: ["@platform.core"],
|
|
12
|
+
tags: [
|
|
13
|
+
"learning",
|
|
14
|
+
"ui",
|
|
15
|
+
"shared"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
13
18
|
docs: { rootDocId: "docs.examples.learning-journey-ui-shared" },
|
|
14
19
|
entrypoints: {
|
|
15
20
|
packageName: "@contractspec/example.learning-journey-ui-shared",
|
package/dist/example.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"example.js","names":["example: ExampleSpec"],"sources":["../src/example.ts"],"sourcesContent":["import type { ExampleSpec } from '@contractspec/lib.contracts';\n\nconst example: ExampleSpec = {\n meta: {\n key: 'learning-journey-ui-shared',\n version: '1.0.0',\n title: 'Learning Journey UI — Shared',\n description:\n 'Shared UI components and hooks for learning journey mini-apps.',\n kind: 'ui',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['learning', 'ui', 'shared'],\n },\n docs: {\n rootDocId: 'docs.examples.learning-journey-ui-shared',\n },\n entrypoints: {\n packageName: '@contractspec/example.learning-journey-ui-shared',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: { enabled: true, modes: ['playground', 'markdown'] },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n};\n\nexport default example;\n"],"mappings":";AAEA,MAAMA,UAAuB;CAC3B,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,YAAY;EACZ,WAAW;EACX,QAAQ,CAAC,iBAAiB;EAC1B,MAAM;GAAC;GAAY;GAAM;GAAS;EACnC;CACD,MAAM,EACJ,WAAW,4CACZ;CACD,aAAa;EACX,aAAa;EACb,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GAAE,SAAS;GAAM,OAAO,CAAC,cAAc,WAAW;GAAE;EAC7D,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/example.learning-journey-ui-shared",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.45.0",
|
|
4
4
|
"description": "Shared UI components and hooks for learning journey mini-apps.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"test": "bun test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@contractspec/lib.schema": "1.
|
|
38
|
-
"@contractspec/lib.contracts": "1.
|
|
39
|
-
"@contractspec/module.learning-journey": "1.
|
|
40
|
-
"@contractspec/lib.design-system": "1.
|
|
41
|
-
"@contractspec/lib.ui-kit-web": "1.
|
|
37
|
+
"@contractspec/lib.schema": "1.45.0",
|
|
38
|
+
"@contractspec/lib.contracts": "1.45.0",
|
|
39
|
+
"@contractspec/module.learning-journey": "1.45.0",
|
|
40
|
+
"@contractspec/lib.design-system": "1.45.0",
|
|
41
|
+
"@contractspec/lib.ui-kit-web": "1.45.0",
|
|
42
42
|
"react": "19.2.3"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@contractspec/tool.tsdown": "1.
|
|
46
|
-
"@contractspec/tool.typescript": "1.
|
|
45
|
+
"@contractspec/tool.tsdown": "1.45.0",
|
|
46
|
+
"@contractspec/tool.typescript": "1.45.0",
|
|
47
47
|
"@types/react": "^19.1.6",
|
|
48
48
|
"tsdown": "^0.18.3",
|
|
49
49
|
"typescript": "^5.9.3"
|
package/src/example.ts
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import type { ExampleSpec } from '@contractspec/lib.contracts';
|
|
2
|
+
|
|
3
|
+
const example: ExampleSpec = {
|
|
4
|
+
meta: {
|
|
5
|
+
key: 'learning-journey-ui-shared',
|
|
6
|
+
version: '1.0.0',
|
|
7
|
+
title: 'Learning Journey UI — Shared',
|
|
8
|
+
description:
|
|
9
|
+
'Shared UI components and hooks for learning journey mini-apps.',
|
|
10
|
+
kind: 'ui',
|
|
11
|
+
visibility: 'public',
|
|
12
|
+
stability: 'experimental',
|
|
13
|
+
owners: ['@platform.core'],
|
|
14
|
+
tags: ['learning', 'ui', 'shared'],
|
|
15
|
+
},
|
|
8
16
|
docs: {
|
|
9
17
|
rootDocId: 'docs.examples.learning-journey-ui-shared',
|
|
10
18
|
},
|
|
@@ -18,6 +26,6 @@ const example = {
|
|
|
18
26
|
studio: { enabled: true, installable: true },
|
|
19
27
|
mcp: { enabled: true },
|
|
20
28
|
},
|
|
21
|
-
}
|
|
29
|
+
};
|
|
22
30
|
|
|
23
31
|
export default example;
|