@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lessonkit/react",
3
- "version": "1.3.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": "NODE_PATH=./node_modules:../../node_modules node ../../node_modules/storybook/bin/index.cjs dev -c .storybook -p 6006 --disable-telemetry",
55
- "build-storybook": "NODE_PATH=./node_modules:../../node_modules node ../../node_modules/storybook/bin/index.cjs build -c .storybook --disable-telemetry",
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": "echo \"(no lint configured yet)\""
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.3.1",
68
- "@lessonkit/core": "1.3.1",
69
- "@lessonkit/lxpack": "1.3.1",
70
- "@lessonkit/themes": "1.3.1",
71
- "@lessonkit/xapi": "1.3.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/addon-essentials": "8.6.18",
75
- "@storybook/addon-interactions": "8.6.18",
76
- "@storybook/builder-vite": "8.6.18",
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": "^18.3.23",
82
- "@types/react-dom": "^18.3.7",
83
- "@vitejs/plugin-react": "^4.5.2",
84
- "jsdom": "^26.1.0",
85
- "react": "^18.3.1",
86
- "react-dom": "^18.3.1",
87
- "storybook": "8.6.18",
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": "^5.8.3",
90
- "vite": "^6.3.5",
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
  }