@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.
@@ -1,53 +1,57 @@
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 8ms
7
-
8
- components/BadgeDisplay.js 1.79 KB (entry point)
9
- ./index.js 10.33 KB (entry point)
10
- hooks/index.js 2.49 KB (entry point)
11
- hooks/useLearningProgress.js 2.49 KB (entry point)
12
- ./types.js 8 bytes (entry point)
13
- components/index.js 6.24 KB (entry point)
14
- components/StreakCounter.js 1.29 KB (entry point)
15
- components/ViewTabs.js 1.36 KB (entry point)
16
- components/XpBar.js 1.79 KB (entry point)
17
- docs/index.js 0.74 KB (entry point)
18
- docs/learning-journey-ui-shared.docblock.js 0.74 KB (entry point)
19
- ./example.js 0.92 KB (entry point)
20
-
21
- [contractspec-bun-build] transpile target=node root=src entries=12
22
- Bundled 12 modules in 18ms
23
-
24
- components/BadgeDisplay.js 1.78 KB (entry point)
25
- ./index.js 10.31 KB (entry point)
26
- hooks/index.js 2.48 KB (entry point)
27
- hooks/useLearningProgress.js 2.48 KB (entry point)
28
- ./types.js 0 KB (entry point)
29
- components/index.js 6.23 KB (entry point)
30
- components/StreakCounter.js 1.28 KB (entry point)
31
- components/ViewTabs.js 1.35 KB (entry point)
32
- components/XpBar.js 1.78 KB (entry point)
33
- docs/index.js 0.72 KB (entry point)
34
- docs/learning-journey-ui-shared.docblock.js 0.72 KB (entry point)
35
- ./example.js 0.90 KB (entry point)
36
-
37
- [contractspec-bun-build] transpile target=browser root=src entries=12
38
- Bundled 12 modules in 19ms
39
-
40
- components/BadgeDisplay.js 1.78 KB (entry point)
41
- ./index.js 10.31 KB (entry point)
42
- hooks/index.js 2.48 KB (entry point)
43
- hooks/useLearningProgress.js 2.48 KB (entry point)
44
- ./types.js 0 KB (entry point)
45
- components/index.js 6.23 KB (entry point)
46
- components/StreakCounter.js 1.28 KB (entry point)
47
- components/ViewTabs.js 1.35 KB (entry point)
48
- components/XpBar.js 1.78 KB (entry point)
49
- docs/index.js 0.72 KB (entry point)
50
- docs/learning-journey-ui-shared.docblock.js 0.72 KB (entry point)
51
- ./example.js 0.90 KB (entry point)
52
-
53
- $ contractspec-bun-build types
1
+
2
+ $ contractspec-bun-build prebuild
3
+ $ bun run prebuild && bun run build:bundle && bun run build:types
4
+ $ contractspec-bun-build prebuild
5
+ $ contractspec-bun-build transpile
6
+ [contractspec-bun-build] transpile target=bun root=src entries=13
7
+ Bundled 13 modules in 11ms
8
+
9
+ components/BadgeDisplay.js 1.79 KB (entry point)
10
+ ./index.js 10.96 KB (entry point)
11
+ hooks/index.js 2.49 KB (entry point)
12
+ hooks/useLearningProgress.js 2.49 KB (entry point)
13
+ ./learning-journey-ui-shared.feature.js 0.64 KB (entry point)
14
+ ./types.js 8 bytes (entry point)
15
+ components/index.js 6.24 KB (entry point)
16
+ components/StreakCounter.js 1.29 KB (entry point)
17
+ components/ViewTabs.js 1.36 KB (entry point)
18
+ components/XpBar.js 1.79 KB (entry point)
19
+ docs/index.js 0.74 KB (entry point)
20
+ docs/learning-journey-ui-shared.docblock.js 0.74 KB (entry point)
21
+ ./example.js 0.92 KB (entry point)
22
+
23
+ [contractspec-bun-build] transpile target=node root=src entries=13
24
+ Bundled 13 modules in 12ms
25
+
26
+ components/BadgeDisplay.js 1.78 KB (entry point)
27
+ ./index.js 10.94 KB (entry point)
28
+ hooks/index.js 2.48 KB (entry point)
29
+ hooks/useLearningProgress.js 2.48 KB (entry point)
30
+ ./learning-journey-ui-shared.feature.js 0.63 KB (entry point)
31
+ ./types.js 0 KB (entry point)
32
+ components/index.js 6.23 KB (entry point)
33
+ components/StreakCounter.js 1.28 KB (entry point)
34
+ components/ViewTabs.js 1.35 KB (entry point)
35
+ components/XpBar.js 1.78 KB (entry point)
36
+ docs/index.js 0.72 KB (entry point)
37
+ docs/learning-journey-ui-shared.docblock.js 0.72 KB (entry point)
38
+ ./example.js 0.90 KB (entry point)
39
+
40
+ [contractspec-bun-build] transpile target=browser root=src entries=13
41
+ Bundled 13 modules in 9ms
42
+
43
+ components/BadgeDisplay.js 1.78 KB (entry point)
44
+ ./index.js 10.94 KB (entry point)
45
+ hooks/index.js 2.48 KB (entry point)
46
+ hooks/useLearningProgress.js 2.48 KB (entry point)
47
+ ./learning-journey-ui-shared.feature.js 0.63 KB (entry point)
48
+ ./types.js 0 KB (entry point)
49
+ components/index.js 6.23 KB (entry point)
50
+ components/StreakCounter.js 1.28 KB (entry point)
51
+ components/ViewTabs.js 1.35 KB (entry point)
52
+ components/XpBar.js 1.78 KB (entry point)
53
+ docs/index.js 0.72 KB (entry point)
54
+ docs/learning-journey-ui-shared.docblock.js 0.72 KB (entry point)
55
+ ./example.js 0.90 KB (entry point)
56
+
57
+ $ contractspec-bun-build types
@@ -1 +1,2 @@
1
- $ contractspec-bun-build prebuild
1
+
2
+ $ contractspec-bun-build prebuild
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
@@ -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
+ };
@@ -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.2.0",
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.2.0",
131
- "@contractspec/module.learning-journey": "3.2.0",
132
- "@contractspec/lib.design-system": "3.2.0",
133
- "@contractspec/lib.ui-kit-web": "3.2.0",
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.2.0",
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.2.0"
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
@@ -16,5 +16,6 @@ export type {
16
16
  ViewTabsProps,
17
17
  } from './types';
18
18
 
19
+ export * from './learning-journey-ui-shared.feature';
19
20
  export { default as example } from './example';
20
21
  import './docs';
@@ -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
+ });