@lessonkit/react 1.3.1 → 1.5.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/README.md +17 -9
- package/block-catalog.v3.json +1530 -219
- package/dist/AssessmentLessonGuard-BzNPbjaV.d.cts +21 -0
- package/dist/AssessmentLessonGuard-BzNPbjaV.d.ts +21 -0
- package/dist/blocks-entry.cjs +6085 -0
- package/dist/blocks-entry.d.cts +471 -0
- package/dist/blocks-entry.d.ts +471 -0
- package/dist/blocks-entry.js +79 -0
- package/dist/chunk-5P23C2W3.js +5535 -0
- package/dist/chunk-7TJQJFYR.js +1982 -0
- package/dist/chunk-ELGQ4XI3.js +271 -0
- package/dist/index.cjs +4597 -740
- package/dist/index.d.cts +118 -282
- package/dist/index.d.ts +118 -282
- package/dist/index.js +550 -4292
- package/dist/testing.cjs +576 -0
- package/dist/testing.d.cts +16 -0
- package/dist/testing.d.ts +16 -0
- package/dist/testing.js +18 -0
- package/package.json +41 -27
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lessonkit/react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "React components and hooks for building learning experiences with LessonKit.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,6 +32,16 @@
|
|
|
32
32
|
"import": "./dist/index.js",
|
|
33
33
|
"require": "./dist/index.cjs"
|
|
34
34
|
},
|
|
35
|
+
"./blocks": {
|
|
36
|
+
"types": "./dist/blocks-entry.d.ts",
|
|
37
|
+
"import": "./dist/blocks-entry.js",
|
|
38
|
+
"require": "./dist/blocks-entry.cjs"
|
|
39
|
+
},
|
|
40
|
+
"./testing": {
|
|
41
|
+
"types": "./dist/testing.d.ts",
|
|
42
|
+
"import": "./dist/testing.js",
|
|
43
|
+
"require": "./dist/testing.cjs"
|
|
44
|
+
},
|
|
35
45
|
"./block-catalog.v1.json": "./block-catalog.v1.json",
|
|
36
46
|
"./block-catalog.v2.json": "./block-catalog.v2.json",
|
|
37
47
|
"./block-catalog.v3.json": "./block-catalog.v3.json",
|
|
@@ -49,45 +59,49 @@
|
|
|
49
59
|
"block-contract.v3.json"
|
|
50
60
|
],
|
|
51
61
|
"scripts": {
|
|
52
|
-
"build": "tsup src/index.tsx --format esm,cjs --dts --external react --external react-dom --external @lessonkit/accessibility --external @lessonkit/lxpack --external @lessonkit/themes",
|
|
53
|
-
"dev": "tsup src/index.tsx --format esm,cjs --dts --watch --external react --external react-dom --external @lessonkit/accessibility --external @lessonkit/lxpack --external @lessonkit/themes",
|
|
54
|
-
"storybook": "
|
|
55
|
-
"build-storybook": "
|
|
62
|
+
"build": "tsup src/index.tsx src/testing.ts src/blocks-entry.ts --format esm,cjs --dts --external react --external react-dom --external @lessonkit/accessibility --external @lessonkit/lxpack --external @lessonkit/themes",
|
|
63
|
+
"dev": "tsup src/index.tsx src/testing.ts src/blocks-entry.ts --format esm,cjs --dts --watch --external react --external react-dom --external @lessonkit/accessibility --external @lessonkit/lxpack --external @lessonkit/themes",
|
|
64
|
+
"storybook": "storybook dev -c .storybook -p 6006 --disable-telemetry",
|
|
65
|
+
"build-storybook": "storybook build -c .storybook --disable-telemetry",
|
|
56
66
|
"prepublishOnly": "npm run build",
|
|
57
67
|
"typecheck": "tsc -p tsconfig.json",
|
|
58
68
|
"test": "vitest run --passWithNoTests",
|
|
59
69
|
"test:coverage": "vitest run --coverage --passWithNoTests=false",
|
|
60
|
-
"lint": "
|
|
70
|
+
"lint": "eslint --max-warnings 0 \"src/**/*.{ts,tsx}\" \"test/**/*.{ts,tsx}\" \"stories/**/*.{ts,tsx}\""
|
|
61
71
|
},
|
|
62
72
|
"peerDependencies": {
|
|
73
|
+
"@lessonkit/lxpack": "1.5.0",
|
|
63
74
|
"react": ">=18",
|
|
64
75
|
"react-dom": ">=18"
|
|
65
76
|
},
|
|
77
|
+
"peerDependenciesMeta": {
|
|
78
|
+
"@lessonkit/lxpack": {
|
|
79
|
+
"optional": true
|
|
80
|
+
}
|
|
81
|
+
},
|
|
66
82
|
"dependencies": {
|
|
67
|
-
"@lessonkit/accessibility": "1.
|
|
68
|
-
"@lessonkit/core": "1.
|
|
69
|
-
"@lessonkit/lxpack": "1.
|
|
70
|
-
"@lessonkit/themes": "1.
|
|
71
|
-
"@lessonkit/xapi": "1.
|
|
83
|
+
"@lessonkit/accessibility": "1.5.0",
|
|
84
|
+
"@lessonkit/core": "1.5.0",
|
|
85
|
+
"@lessonkit/lxpack": "1.5.0",
|
|
86
|
+
"@lessonkit/themes": "1.5.0",
|
|
87
|
+
"@lessonkit/xapi": "1.5.0"
|
|
72
88
|
},
|
|
73
89
|
"devDependencies": {
|
|
74
|
-
"@storybook/
|
|
75
|
-
"@storybook/
|
|
76
|
-
"@storybook/
|
|
77
|
-
"@storybook/react": "8.6.18",
|
|
78
|
-
"@storybook/react-vite": "8.6.18",
|
|
79
|
-
"@storybook/test": "8.6.18",
|
|
90
|
+
"@storybook/builder-vite": "10.4.2",
|
|
91
|
+
"@storybook/react": "10.4.2",
|
|
92
|
+
"@storybook/react-vite": "10.4.2",
|
|
80
93
|
"@testing-library/react": "^16.3.0",
|
|
81
|
-
"@types/react": "^
|
|
82
|
-
"@types/react-dom": "^
|
|
83
|
-
"@vitejs/plugin-react": "^
|
|
84
|
-
"jsdom": "^
|
|
85
|
-
"react": "^
|
|
86
|
-
"react-dom": "^
|
|
87
|
-
"storybook": "
|
|
94
|
+
"@types/react": "^19.2.17",
|
|
95
|
+
"@types/react-dom": "^19.2.3",
|
|
96
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
97
|
+
"jsdom": "^29.1.1",
|
|
98
|
+
"react": "^19.2.7",
|
|
99
|
+
"react-dom": "^19.2.7",
|
|
100
|
+
"storybook": "10.4.2",
|
|
88
101
|
"tsup": "^8.5.0",
|
|
89
|
-
"typescript": "^
|
|
90
|
-
"vite": "^
|
|
91
|
-
"vitest": "^4.1.8"
|
|
102
|
+
"typescript": "^6.0.3",
|
|
103
|
+
"vite": "^8.0.11",
|
|
104
|
+
"vitest": "^4.1.8",
|
|
105
|
+
"@testing-library/dom": "^10.4.1"
|
|
92
106
|
}
|
|
93
107
|
}
|