@conform-ed/qti-xml 0.0.16
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 +25 -0
- package/dist/example-inventory.d.ts +2 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +5414 -0
- package/dist/normalize.d.ts +3 -0
- package/dist/parse-xml.d.ts +15 -0
- package/dist/root-detection.d.ts +2 -0
- package/dist/schema-selection.d.ts +12 -0
- package/dist/serialize-asi.d.ts +30 -0
- package/dist/serialize-document.d.ts +10 -0
- package/dist/serialize-manifest.d.ts +11 -0
- package/dist/serialize-pnp.d.ts +11 -0
- package/dist/serialize-result.d.ts +12 -0
- package/dist/serialize-usage-data.d.ts +8 -0
- package/dist/types.d.ts +53 -0
- package/dist/validate-package.d.ts +30 -0
- package/dist/validate.d.ts +10 -0
- package/dist/xinclude.d.ts +11 -0
- package/dist/xml-writer.d.ts +17 -0
- package/package.json +33 -0
- package/src/example-inventory.ts +194 -0
- package/src/index.ts +14 -0
- package/src/normalize.ts +2814 -0
- package/src/parse-xml.ts +147 -0
- package/src/root-detection.ts +214 -0
- package/src/schema-selection.ts +78 -0
- package/src/serialize-asi.ts +2030 -0
- package/src/serialize-document.ts +89 -0
- package/src/serialize-manifest.ts +215 -0
- package/src/serialize-pnp.ts +385 -0
- package/src/serialize-result.ts +215 -0
- package/src/serialize-usage-data.ts +85 -0
- package/src/types.ts +78 -0
- package/src/validate-package.ts +408 -0
- package/src/validate.ts +118 -0
- package/src/xinclude.ts +92 -0
- package/src/xml-writer.ts +68 -0
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# @conform-ed/qti-xml
|
|
2
|
+
|
|
3
|
+
QTI XML intake, inventory, and validation helpers for the versioned contracts package.
|
|
4
|
+
|
|
5
|
+
This package deliberately keeps the fixture strategy conservative:
|
|
6
|
+
|
|
7
|
+
- it works against user-provided paths such as `/path/to/qti-examples`
|
|
8
|
+
- it does not vendor the official example XML corpus into the repo
|
|
9
|
+
- tests should prefer synthetic fixtures or generated metadata over copied upstream examples
|
|
10
|
+
|
|
11
|
+
Current supported XML -> normalized-contract validation roots:
|
|
12
|
+
|
|
13
|
+
- QTI 2.2 `assessmentItem`
|
|
14
|
+
- QTI 2.2 `manifest`
|
|
15
|
+
- QTI 3.0.1 `qti-assessment-item`
|
|
16
|
+
- QTI 3.0.1 `qti-assessment-test`
|
|
17
|
+
- QTI 3.0.1 `assessmentResult`
|
|
18
|
+
|
|
19
|
+
Current inventory/CLI entry points:
|
|
20
|
+
|
|
21
|
+
- `bun run qti:inventory:examples -- --root /path/to/qti-examples`
|
|
22
|
+
- `bun run qti:validate:file -- path/to/file.xml`
|
|
23
|
+
- `bun run qti:validate:folder -- path/to/folder`
|
|
24
|
+
- `bun run qti:validate:package -- path/to/exploded-package`
|
|
25
|
+
- `bun run qti:coverage:report -- --root /path/to/qti-examples`
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./example-inventory";
|
|
2
|
+
export * from "./normalize";
|
|
3
|
+
export * from "./parse-xml";
|
|
4
|
+
export * from "./root-detection";
|
|
5
|
+
export * from "./schema-selection";
|
|
6
|
+
export * from "./types";
|
|
7
|
+
export * from "./validate";
|
|
8
|
+
export * from "./validate-package";
|
|
9
|
+
export * from "./serialize-result";
|
|
10
|
+
export * from "./serialize-pnp";
|
|
11
|
+
export * from "./serialize-usage-data";
|
|
12
|
+
export * from "./serialize-asi";
|
|
13
|
+
export * from "./serialize-manifest";
|
|
14
|
+
export * from "./serialize-document";
|