@lessonkit/lxpack 1.5.0 → 1.6.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.
@@ -5,15 +5,18 @@
5
5
  "description": "Root lessonkit.json project manifest (schemaVersion 1)",
6
6
  "type": "object",
7
7
  "additionalProperties": false,
8
- "required": ["schemaVersion", "name", "course", "paths"],
8
+ "required": ["schemaVersion", "name", "course"],
9
9
  "properties": {
10
- "schemaVersion": { "const": 1 },
10
+ "schemaVersion": {
11
+ "description": "Must be 1. String \"1\" is coerced to number 1 at parse time.",
12
+ "oneOf": [{ "const": 1 }, { "type": "string", "const": "1" }]
13
+ },
11
14
  "name": { "type": "string", "minLength": 1 },
12
15
  "course": { "$ref": "#/$defs/LessonkitCourseDescriptor" },
13
16
  "paths": {
14
17
  "type": "object",
18
+ "description": "Optional. Omitted keys default to spaDistDir=dist, lxpackOutDir=.lxpack/course, outputBaseDir=.lxpack/out.",
15
19
  "additionalProperties": false,
16
- "required": ["spaDistDir", "lxpackOutDir", "outputBaseDir"],
17
20
  "properties": {
18
21
  "spaDistDir": { "type": "string", "minLength": 1 },
19
22
  "lxpackOutDir": { "type": "string", "minLength": 1 },
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://lessonkit.dev/schemas/lkcourse-format.v1.json",
4
+ "title": "LkcourseEnvelopeV1",
5
+ "description": "Portable .lkcourse archive envelope (manifest.json at zip root)",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["format", "schemaVersion", "lessonkitVersion", "exportedAt", "sourceManifest", "entries"],
9
+ "properties": {
10
+ "format": { "const": "lkcourse" },
11
+ "schemaVersion": { "const": 1 },
12
+ "lessonkitVersion": { "type": "string", "minLength": 1 },
13
+ "exportedAt": { "type": "string", "minLength": 1 },
14
+ "sourceManifest": { "$ref": "https://lessonkit.dev/schemas/lessonkit-manifest.v1.json" },
15
+ "entries": {
16
+ "type": "array",
17
+ "minItems": 1,
18
+ "items": { "type": "string", "minLength": 1 }
19
+ }
20
+ }
21
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lessonkit/lxpack",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "private": false,
5
5
  "description": "LXPack export adapter for LessonKit courses (SCORM, standalone, xAPI, cmi5).",
6
6
  "license": "Apache-2.0",
@@ -39,11 +39,15 @@
39
39
  "import": "./dist/bridge.js",
40
40
  "require": "./dist/bridge.cjs"
41
41
  },
42
- "./lessonkit-manifest.v1.json": "./lessonkit-manifest.v1.json"
42
+ "./lessonkit-manifest.v1.json": "./lessonkit-manifest.v1.json",
43
+ "./lkcourse-format.v1.json": "./lkcourse-format.v1.json",
44
+ "./block-tree.v1.json": "./block-tree.v1.json"
43
45
  },
44
46
  "files": [
45
47
  "dist",
46
- "lessonkit-manifest.v1.json"
48
+ "lessonkit-manifest.v1.json",
49
+ "lkcourse-format.v1.json",
50
+ "block-tree.v1.json"
47
51
  ],
48
52
  "scripts": {
49
53
  "build": "tsup src/index.ts src/bridge.ts --format esm,cjs --dts",
@@ -55,14 +59,16 @@
55
59
  "lint": "eslint --max-warnings 0 \"src/**/*.{ts,tsx}\" \"test/**/*.{ts,tsx}\""
56
60
  },
57
61
  "dependencies": {
58
- "@lessonkit/core": "1.5.0",
59
- "@lessonkit/themes": "1.5.0",
62
+ "@lessonkit/core": "1.6.0",
63
+ "@lessonkit/themes": "1.6.0",
60
64
  "@lxpack/api": "0.6.4",
61
65
  "@lxpack/spa-bridge": "0.6.4",
62
66
  "@lxpack/tracking-schema": "0.6.4",
63
- "@lxpack/validators": "0.6.4"
67
+ "@lxpack/validators": "0.6.4",
68
+ "fflate": "^0.8.3"
64
69
  },
65
70
  "devDependencies": {
71
+ "@lessonkit/react": "1.6.0",
66
72
  "@types/node": "^25.9.2",
67
73
  "tsup": "^8.5.0",
68
74
  "typescript": "^6.0.3",