@citolab/qti-components 7.11.0 → 7.12.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/cdn/index.global.js +1 -1
- package/cdn/index.js +68 -68
- package/custom-elements.json +67 -0
- package/dist/chunks/{chunk-YX2ZXXR5.js → chunk-GGTWY53P.js} +22 -2
- package/dist/chunks/chunk-GGTWY53P.js.map +1 -0
- package/dist/exports/qti-test.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/qti-components-jsx.d.ts +6 -0
- package/dist/qti-test/index.d.ts +5 -3
- package/dist/qti-test/index.js +1 -1
- package/dist/{qti-test-BwvOhz_-.d.ts → qti-test-BWQRhMTT.d.ts} +4 -2
- package/dist/{qti-transform-item-C9WtMeDR.d.ts → qti-transform-test-DkSRdVBF.d.ts} +28 -1
- package/dist/qti-transformers/index.d.ts +2 -29
- package/dist/vscode.html-custom-data.json +9 -0
- package/package.json +1 -1
- package/dist/chunks/chunk-YX2ZXXR5.js.map +0 -1
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../package.json","../src/lib/index.ts"],"sourcesContent":["{\n \"name\": \"@citolab/qti-components\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/Citolab/qti-components.git\"\n },\n \"description\": \"QTI webcomponents\",\n \"author\": {\n \"name\": \"Patrick de Klein\"\n },\n \"contributors\": [\n {\n \"name\": \"Sander Looise\"\n },\n {\n \"name\": \"Marcel Hoekstra\"\n }\n ],\n \"license\": \"GPLv3\",\n \"private\": false,\n \"engines\": {\n \"node\": \">=22.0.0\"\n },\n \"version\": \"7.11.0\",\n \"type\": \"module\",\n \"main\": \"./dist/index.js\",\n \"types\": \"./dist/index.d.ts\",\n \"sideEffects\": true,\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.js\"\n },\n \"./exports/*\": {\n \"import\": \"./dist/exports/*\"\n },\n \"./qti-components\": {\n \"types\": \"./dist/qti-components/index.d.ts\",\n \"import\": \"./dist/qti-components/index.js\"\n },\n \"./qti-item\": {\n \"types\": \"./dist/qti-item/index.d.ts\",\n \"import\": \"./dist/qti-item/index.js\"\n },\n \"./qti-test\": {\n \"types\": \"./dist/qti-test/index.d.ts\",\n \"import\": \"./dist/qti-test/index.js\"\n },\n \"./qti-loader\": {\n \"types\": \"./dist/qti-loader/index.d.ts\",\n \"import\": \"./dist/qti-loader/index.js\"\n },\n \"./qti-transformers\": {\n \"types\": \"./dist/qti-transformers/index.d.ts\",\n \"import\": \"./dist/qti-transformers/index.js\"\n },\n \"./customElements\": \"./custom-elements.json\",\n \"./react\": \"./dist/qti-components-jsx.d.ts\",\n \"./item.css\": \"./dist/item.css\",\n \"./cdn/*\": \"./cdn/*\",\n \"./package.json\": \"./package.json\"\n },\n \"files\": [\n \"dist\",\n \"cdn\",\n \"custom-elements.json\"\n ],\n \"scripts\": {\n \"storybook\": \"run-p storybook:dev cem:watch\",\n \"watch\": \"nodemon --watch src --ext ts,css --exec \\\"run-s tsup cem css && yalc push\\\"\",\n \"-----------------------cmds--\": \"-\",\n \"pre-commit\": \"run-s lint stylelint madge\",\n \"commit-msg\": \"commitlint --edit\",\n \"build-storybook\": \"npm run cem && storybook build\",\n \"-----------------------scripts--\": \"-\",\n \"build\": \"run-p cem css tsup\",\n \"storybook:dev\": \"storybook dev -p 6006\",\n \"cem\": \"cem analyze\",\n \"cem:watch\": \"cem analyze --watch\",\n \"css\": \"postcss src/item.css -d dist -m\",\n \"ci\": \"npm ci\",\n \"tsup\": \"tsup\",\n \"publint\": \"publint\",\n \"lint\": \"eslint src/**/*.ts\",\n \"stylelint\": \"stylelint \\\"src/**/*.css\\\"\",\n \"test\": \"vitest run\",\n \"attw\": \"attw --profile esm-only --pack --exclude-entrypoints ./item.css ./react\",\n \"chromatic\": \"node chromatic-runner.cjs\",\n \"clean\": \"rm -rf dist cdn\",\n \"madge\": \"madge --circular --extensions ts src\",\n \"commitlint\": \"commitlint --edit\",\n \"-----------------------npm--\": \"-\",\n \"prepare\": \"husky\"\n },\n \"peerDependencies\": {\n \"@heximal/templates\": \"^0.1.5\",\n \"@lit/context\": \"^1.1.3\",\n \"lit\": \"^3.2.1\"\n },\n \"devDependencies\": {\n \"@arethetypeswrong/cli\": \"^0.18.2\",\n \"@chromatic-com/storybook\": \"^4.1.1\",\n \"@commitlint/cli\": \"^19.8.1\",\n \"@commitlint/config-conventional\": \"^19.8.1\",\n \"@custom-elements-manifest/analyzer\": \"^0.10.4\",\n \"@eslint/js\": \"^9.29.0\",\n \"@heximal/templates\": \"0.1.5\",\n \"@lit/context\": \"^1.1.5\",\n \"@open-wc/lit-helpers\": \"^0.7.0\",\n \"@storybook/addon-a11y\": \"^9.1.5\",\n \"@storybook/addon-docs\": \"^9.1.5\",\n \"@storybook/addon-links\": \"^9.1.5\",\n \"@storybook/addon-themes\": \"^9.1.5\",\n \"@storybook/addon-vitest\": \"^9.1.5\",\n \"@storybook/web-components-vite\": \"^9.1.5\",\n \"@swc/core\": \"^1.12.1\",\n \"@testing-library/dom\": \"^10.4.0\",\n \"@types/dom-view-transitions\": \"^1.0.6\",\n \"@types/node\": \"^24.0.3\",\n \"@vitest/browser\": \"^3.2.4\",\n \"@vitest/coverage-v8\": \"^3.2.4\",\n \"@vitest/ui\": \"^3.2.4\",\n \"@wc-toolkit/cem-inheritance\": \"^1.1.0\",\n \"@wc-toolkit/cem-sorter\": \"^1.0.1\",\n \"@wc-toolkit/cem-utilities\": \"^1.3.0\",\n \"@wc-toolkit/changelog\": \"^1.0.1\",\n \"@wc-toolkit/jsx-types\": \"^1.2.2\",\n \"@wc-toolkit/storybook-helpers\": \"^9.0.0\",\n \"@wc-toolkit/type-parser\": \"^1.1.0\",\n \"autoprefixer\": \"^10.4.21\",\n \"chromatic\": \"^13.0.0\",\n \"custom-element-vs-code-integration\": \"^1.5.0\",\n \"custom-elements-manifest-deprecator\": \"^1.2.0\",\n \"dotenv\": \"^16.5.0\",\n \"eslint\": \"^9.29.0\",\n \"eslint-import-resolver-typescript\": \"^4.4.3\",\n \"eslint-plugin-import\": \"^2.31.0\",\n \"eslint-plugin-lit\": \"^2.1.1\",\n \"eslint-plugin-lit-a11y\": \"^5.0.1\",\n \"eslint-plugin-react\": \"^7.37.5\",\n \"eslint-plugin-sort-imports-es6-autofix\": \"^0.6.0\",\n \"eslint-plugin-storybook\": \"^9.1.5\",\n \"eslint-plugin-wc\": \"^3.0.1\",\n \"fast-xml-parser\": \"^5.2.5\",\n \"globals\": \"^16.2.0\",\n \"globby\": \"^14.1.0\",\n \"husky\": \"^9.1.7\",\n \"lit\": \"^3.3.0\",\n \"madge\": \"^8.0.0\",\n \"nodemon\": \"^3.1.10\",\n \"npm-run-all\": \"^4.1.5\",\n \"path-browserify\": \"^1.0.1\",\n \"pkg-pr-new\": \"^0.0.51\",\n \"playwright\": \"^1.53.0\",\n \"postcss\": \"^8.5.6\",\n \"postcss-class-apply\": \"^4.0.1\",\n \"postcss-cli\": \"^11.0.1\",\n \"postcss-import\": \"^16.1.1\",\n \"postcss-nesting\": \"^13.0.2\",\n \"prettier\": \"3.5.3\",\n \"prettier-v2\": \"npm:prettier@2.8.8\",\n \"publint\": \"^0.3.12\",\n \"remark-gfm\": \"^4.0.1\",\n \"shadow-dom-testing-library\": \"^1.12.0\",\n \"storybook\": \"^9.1.5\",\n \"storybook-addon-tag-badges\": \"^2.0.1\",\n \"stylelint\": \"^16.20.0\",\n \"stylelint-config-standard\": \"^38.0.0\",\n \"stylelint-prettier\": \"^5.0.3\",\n \"tsup\": \"^8.5.0\",\n \"typescript\": \"^5.8.3\",\n \"typescript-eslint\": \"^8.34.1\",\n \"vite\": \"^6.3.5\",\n \"vite-tsconfig-paths\": \"^5.1.4\",\n \"vitest\": \"^3.2.4\",\n \"yalc\": \"^1.0.0-pre.53\"\n },\n \"optionalDependencies\": {\n \"@rollup/rollup-linux-x64-gnu\": \"^4.43.0\"\n },\n \"customElements\": \"custom-elements.json\",\n \"bugs\": {\n \"url\": \"https://github.com/Citolab/qti-components/issues\"\n },\n \"homepage\": \"https://github.com/Citolab/qti-components#readme\",\n \"overrides\": {\n \"storybook\": \"$storybook\"\n }\n}\n","export * from './qti-components';\nexport * from './qti-test';\nexport * from './qti-item';\n\n// Import version from package.json\nimport packageJson from '../../package.json' assert { type: 'json' };\n\nconsole.info(\n '%cC¿TO%cLab%c: qti-components v%c%s%c loaded',\n 'font-family: \"PT Sans\", font-weight:bold; color:green; font-size: smaller;vertical-align: sub',\n 'font-weight:bold; color:green',\n 'font-weight:unset',\n 'font-weight:bold; color:#2563eb',\n packageJson.version,\n 'font-weight:unset'\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,EACE,MAAQ;AAAA,EACR,YAAc;AAAA,IACZ,MAAQ;AAAA,IACR,KAAO;AAAA,EACT;AAAA,EACA,aAAe;AAAA,EACf,QAAU;AAAA,IACR,MAAQ;AAAA,EACV;AAAA,EACA,cAAgB;AAAA,IACd;AAAA,MACE,MAAQ;AAAA,IACV;AAAA,IACA;AAAA,MACE,MAAQ;AAAA,IACV;AAAA,EACF;AAAA,EACA,SAAW;AAAA,EACX,SAAW;AAAA,EACX,SAAW;AAAA,IACT,MAAQ;AAAA,EACV;AAAA,EACA,SAAW;AAAA,EACX,MAAQ;AAAA,EACR,MAAQ;AAAA,EACR,OAAS;AAAA,EACT,aAAe;AAAA,EACf,SAAW;AAAA,IACT,KAAK;AAAA,MACH,OAAS;AAAA,MACT,QAAU;AAAA,IACZ;AAAA,IACA,eAAe;AAAA,MACb,QAAU;AAAA,IACZ;AAAA,IACA,oBAAo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Q;AAAA,IACR,uBAAuB;AAAA,IACvB,QAAU;AAAA,IACV,MAAQ;AAAA,EACV;AAAA,EACA,sBAAwB;AAAA,IACtB,gCAAgC;AAAA,EAClC;AAAA,EACA,gBAAkB;AAAA,EAClB,MAAQ;AAAA,IACN,KAAO;AAAA,EACT;AAAA,EACA,UAAY;AAAA,EACZ,WAAa;AAAA,IACX,WAAa;AAAA,EACf;AACF;;;ACrLA,QAAQ;AAAA,EACN;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,gBAAY;AAAA,EACZ;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../package.json","../src/lib/index.ts"],"sourcesContent":["{\n \"name\": \"@citolab/qti-components\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/Citolab/qti-components.git\"\n },\n \"description\": \"QTI webcomponents\",\n \"author\": {\n \"name\": \"Patrick de Klein\"\n },\n \"contributors\": [\n {\n \"name\": \"Sander Looise\"\n },\n {\n \"name\": \"Marcel Hoekstra\"\n }\n ],\n \"license\": \"GPLv3\",\n \"private\": false,\n \"engines\": {\n \"node\": \">=22.0.0\"\n },\n \"version\": \"7.12.0\",\n \"type\": \"module\",\n \"main\": \"./dist/index.js\",\n \"types\": \"./dist/index.d.ts\",\n \"sideEffects\": true,\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.js\"\n },\n \"./exports/*\": {\n \"import\": \"./dist/exports/*\"\n },\n \"./qti-components\": {\n \"types\": \"./dist/qti-components/index.d.ts\",\n \"import\": \"./dist/qti-components/index.js\"\n },\n \"./qti-item\": {\n \"types\": \"./dist/qti-item/index.d.ts\",\n \"import\": \"./dist/qti-item/index.js\"\n },\n \"./qti-test\": {\n \"types\": \"./dist/qti-test/index.d.ts\",\n \"import\": \"./dist/qti-test/index.js\"\n },\n \"./qti-loader\": {\n \"types\": \"./dist/qti-loader/index.d.ts\",\n \"import\": \"./dist/qti-loader/index.js\"\n },\n \"./qti-transformers\": {\n \"types\": \"./dist/qti-transformers/index.d.ts\",\n \"import\": \"./dist/qti-transformers/index.js\"\n },\n \"./customElements\": \"./custom-elements.json\",\n \"./react\": \"./dist/qti-components-jsx.d.ts\",\n \"./item.css\": \"./dist/item.css\",\n \"./cdn/*\": \"./cdn/*\",\n \"./package.json\": \"./package.json\"\n },\n \"files\": [\n \"dist\",\n \"cdn\",\n \"custom-elements.json\"\n ],\n \"scripts\": {\n \"storybook\": \"run-p storybook:dev cem:watch\",\n \"watch\": \"nodemon --watch src --ext ts,css --exec \\\"run-s tsup cem css && yalc push\\\"\",\n \"-----------------------cmds--\": \"-\",\n \"pre-commit\": \"run-s lint stylelint madge\",\n \"commit-msg\": \"commitlint --edit\",\n \"build-storybook\": \"npm run cem && storybook build\",\n \"-----------------------scripts--\": \"-\",\n \"build\": \"run-p cem css tsup\",\n \"storybook:dev\": \"storybook dev -p 6006\",\n \"cem\": \"cem analyze\",\n \"cem:watch\": \"cem analyze --watch\",\n \"css\": \"postcss src/item.css -d dist -m\",\n \"ci\": \"npm ci\",\n \"tsup\": \"tsup\",\n \"publint\": \"publint\",\n \"lint\": \"eslint src/**/*.ts\",\n \"stylelint\": \"stylelint \\\"src/**/*.css\\\"\",\n \"test\": \"vitest run\",\n \"attw\": \"attw --profile esm-only --pack --exclude-entrypoints ./item.css ./react\",\n \"chromatic\": \"node chromatic-runner.cjs\",\n \"clean\": \"rm -rf dist cdn\",\n \"madge\": \"madge --circular --extensions ts src\",\n \"commitlint\": \"commitlint --edit\",\n \"-----------------------npm--\": \"-\",\n \"prepare\": \"husky\"\n },\n \"peerDependencies\": {\n \"@heximal/templates\": \"^0.1.5\",\n \"@lit/context\": \"^1.1.3\",\n \"lit\": \"^3.2.1\"\n },\n \"devDependencies\": {\n \"@arethetypeswrong/cli\": \"^0.18.2\",\n \"@chromatic-com/storybook\": \"^4.1.1\",\n \"@commitlint/cli\": \"^19.8.1\",\n \"@commitlint/config-conventional\": \"^19.8.1\",\n \"@custom-elements-manifest/analyzer\": \"^0.10.4\",\n \"@eslint/js\": \"^9.29.0\",\n \"@heximal/templates\": \"0.1.5\",\n \"@lit/context\": \"^1.1.5\",\n \"@open-wc/lit-helpers\": \"^0.7.0\",\n \"@storybook/addon-a11y\": \"^9.1.5\",\n \"@storybook/addon-docs\": \"^9.1.5\",\n \"@storybook/addon-links\": \"^9.1.5\",\n \"@storybook/addon-themes\": \"^9.1.5\",\n \"@storybook/addon-vitest\": \"^9.1.5\",\n \"@storybook/web-components-vite\": \"^9.1.5\",\n \"@swc/core\": \"^1.12.1\",\n \"@testing-library/dom\": \"^10.4.0\",\n \"@types/dom-view-transitions\": \"^1.0.6\",\n \"@types/node\": \"^24.0.3\",\n \"@vitest/browser\": \"^3.2.4\",\n \"@vitest/coverage-v8\": \"^3.2.4\",\n \"@vitest/ui\": \"^3.2.4\",\n \"@wc-toolkit/cem-inheritance\": \"^1.1.0\",\n \"@wc-toolkit/cem-sorter\": \"^1.0.1\",\n \"@wc-toolkit/cem-utilities\": \"^1.3.0\",\n \"@wc-toolkit/changelog\": \"^1.0.1\",\n \"@wc-toolkit/jsx-types\": \"^1.2.2\",\n \"@wc-toolkit/storybook-helpers\": \"^9.0.0\",\n \"@wc-toolkit/type-parser\": \"^1.1.0\",\n \"autoprefixer\": \"^10.4.21\",\n \"chromatic\": \"^13.0.0\",\n \"custom-element-vs-code-integration\": \"^1.5.0\",\n \"custom-elements-manifest-deprecator\": \"^1.2.0\",\n \"dotenv\": \"^16.5.0\",\n \"eslint\": \"^9.29.0\",\n \"eslint-import-resolver-typescript\": \"^4.4.3\",\n \"eslint-plugin-import\": \"^2.31.0\",\n \"eslint-plugin-lit\": \"^2.1.1\",\n \"eslint-plugin-lit-a11y\": \"^5.0.1\",\n \"eslint-plugin-react\": \"^7.37.5\",\n \"eslint-plugin-sort-imports-es6-autofix\": \"^0.6.0\",\n \"eslint-plugin-storybook\": \"^9.1.5\",\n \"eslint-plugin-wc\": \"^3.0.1\",\n \"fast-xml-parser\": \"^5.2.5\",\n \"globals\": \"^16.2.0\",\n \"globby\": \"^14.1.0\",\n \"husky\": \"^9.1.7\",\n \"lit\": \"^3.3.0\",\n \"madge\": \"^8.0.0\",\n \"nodemon\": \"^3.1.10\",\n \"npm-run-all\": \"^4.1.5\",\n \"path-browserify\": \"^1.0.1\",\n \"pkg-pr-new\": \"^0.0.51\",\n \"playwright\": \"^1.53.0\",\n \"postcss\": \"^8.5.6\",\n \"postcss-class-apply\": \"^4.0.1\",\n \"postcss-cli\": \"^11.0.1\",\n \"postcss-import\": \"^16.1.1\",\n \"postcss-nesting\": \"^13.0.2\",\n \"prettier\": \"3.5.3\",\n \"prettier-v2\": \"npm:prettier@2.8.8\",\n \"publint\": \"^0.3.12\",\n \"remark-gfm\": \"^4.0.1\",\n \"shadow-dom-testing-library\": \"^1.12.0\",\n \"storybook\": \"^9.1.5\",\n \"storybook-addon-tag-badges\": \"^2.0.1\",\n \"stylelint\": \"^16.20.0\",\n \"stylelint-config-standard\": \"^38.0.0\",\n \"stylelint-prettier\": \"^5.0.3\",\n \"tsup\": \"^8.5.0\",\n \"typescript\": \"^5.8.3\",\n \"typescript-eslint\": \"^8.34.1\",\n \"vite\": \"^6.3.5\",\n \"vite-tsconfig-paths\": \"^5.1.4\",\n \"vitest\": \"^3.2.4\",\n \"yalc\": \"^1.0.0-pre.53\"\n },\n \"optionalDependencies\": {\n \"@rollup/rollup-linux-x64-gnu\": \"^4.43.0\"\n },\n \"customElements\": \"custom-elements.json\",\n \"bugs\": {\n \"url\": \"https://github.com/Citolab/qti-components/issues\"\n },\n \"homepage\": \"https://github.com/Citolab/qti-components#readme\",\n \"overrides\": {\n \"storybook\": \"$storybook\"\n }\n}\n","export * from './qti-components';\nexport * from './qti-test';\nexport * from './qti-item';\n\n// Import version from package.json\nimport packageJson from '../../package.json' assert { type: 'json' };\n\nconsole.info(\n '%cC¿TO%cLab%c: qti-components v%c%s%c loaded',\n 'font-family: \"PT Sans\", font-weight:bold; color:green; font-size: smaller;vertical-align: sub',\n 'font-weight:bold; color:green',\n 'font-weight:unset',\n 'font-weight:bold; color:#2563eb',\n packageJson.version,\n 'font-weight:unset'\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,EACE,MAAQ;AAAA,EACR,YAAc;AAAA,IACZ,MAAQ;AAAA,IACR,KAAO;AAAA,EACT;AAAA,EACA,aAAe;AAAA,EACf,QAAU;AAAA,IACR,MAAQ;AAAA,EACV;AAAA,EACA,cAAgB;AAAA,IACd;AAAA,MACE,MAAQ;AAAA,IACV;AAAA,IACA;AAAA,MACE,MAAQ;AAAA,IACV;AAAA,EACF;AAAA,EACA,SAAW;AAAA,EACX,SAAW;AAAA,EACX,SAAW;AAAA,IACT,MAAQ;AAAA,EACV;AAAA,EACA,SAAW;AAAA,EACX,MAAQ;AAAA,EACR,MAAQ;AAAA,EACR,OAAS;AAAA,EACT,aAAe;AAAA,EACf,SAAW;AAAA,IACT,KAAK;AAAA,MACH,OAAS;AAAA,MACT,QAAU;AAAA,IACZ;AAAA,IACA,eAAe;AAAA,MACb,QAAU;AAAA,IACZ;AAAA,IACA,oBAAoB;AAAA,MAClB,OAAS;AAAA,MACT,QAAU;AAAA,IACZ;AAAA,IACA,cAAc;AAAA,MACZ,OAAS;AAAA,MACT,QAAU;AAAA,IACZ;AAAA,IACA,cAAc;AAAA,MACZ,OAAS;AAAA,MACT,QAAU;AAAA,IACZ;AAAA,IACA,gBAAgB;AAAA,MACd,OAAS;AAAA,MACT,QAAU;AAAA,IACZ;AAAA,IACA,sBAAsB;AAAA,MACpB,OAAS;AAAA,MACT,QAAU;AAAA,IACZ;AAAA,IACA,oBAAoB;AAAA,IACpB,WAAW;AAAA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EACZ;AACF;","names":[]}
|
|
@@ -1626,6 +1626,8 @@ export type QtiTestProps = {
|
|
|
1626
1626
|
/** */
|
|
1627
1627
|
"postLoadTransformCallback"?: QtiTest['postLoadTransformCallback'];
|
|
1628
1628
|
/** */
|
|
1629
|
+
"postLoadTestTransformCallback"?: QtiTest['postLoadTestTransformCallback'];
|
|
1630
|
+
/** */
|
|
1629
1631
|
"sessionContext"?: QtiTest['sessionContext'];
|
|
1630
1632
|
/** */
|
|
1631
1633
|
"testContext"?: QtiTest['testContext'];
|
|
@@ -1762,6 +1764,8 @@ export type TestContainerProps = {
|
|
|
1762
1764
|
"test-url"?: TestContainer['testURL'];
|
|
1763
1765
|
/** URL of the item to load */
|
|
1764
1766
|
"testURL"?: TestContainer['testURL'];
|
|
1767
|
+
/** Callback function to transform the test after loading */
|
|
1768
|
+
"postLoadTestTransformCallback"?: TestContainer['postLoadTestTransformCallback'];
|
|
1765
1769
|
/** A parsed HTML document */
|
|
1766
1770
|
"testDoc"?: TestContainer['testDoc'];
|
|
1767
1771
|
/** The raw XML string */
|
|
@@ -4054,6 +4058,7 @@ export type QtiTestVariablesProps = {
|
|
|
4054
4058
|
* - `requestTimeout`: undefined
|
|
4055
4059
|
* - `showLoadingIndicators`: undefined
|
|
4056
4060
|
* - `postLoadTransformCallback`: undefined
|
|
4061
|
+
* - `postLoadTestTransformCallback`: undefined
|
|
4057
4062
|
* - `sessionContext`: undefined (property only)
|
|
4058
4063
|
* - `testContext`: undefined (property only)
|
|
4059
4064
|
*
|
|
@@ -4262,6 +4267,7 @@ export type QtiTestVariablesProps = {
|
|
|
4262
4267
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
4263
4268
|
*
|
|
4264
4269
|
* - `test-url`/`testURL`: URL of the item to load
|
|
4270
|
+
* - `postLoadTestTransformCallback`: Callback function to transform the test after loading
|
|
4265
4271
|
* - `testDoc`: A parsed HTML document (property only)
|
|
4266
4272
|
* - `testXML`: The raw XML string (property only)
|
|
4267
4273
|
*/
|
package/dist/qti-test/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { e as VariableValue, O as OutcomeVariable, V as VariableDeclaration } fr
|
|
|
3
3
|
import * as lit from 'lit';
|
|
4
4
|
import { LitElement, PropertyValues, nothing } from 'lit';
|
|
5
5
|
import { SessionContext } from '../exports/session.context.js';
|
|
6
|
-
import { b as QtiAssessmentTest, I as IQtiTest } from '../qti-test-
|
|
7
|
-
export { Q as QtiAssessmentItemRef, a as QtiAssessmentSection, d as QtiTestFeedback, c as QtiTestPart } from '../qti-test-
|
|
6
|
+
import { b as QtiAssessmentTest, I as IQtiTest, P as PostLoadTestTransformCallback } from '../qti-test-BWQRhMTT.js';
|
|
7
|
+
export { Q as QtiAssessmentItemRef, a as QtiAssessmentSection, d as QtiTestFeedback, c as QtiTestPart } from '../qti-test-BWQRhMTT.js';
|
|
8
8
|
import { TestContext } from '../exports/test.context.js';
|
|
9
9
|
export { INITIAL_TEST_CONTEXT, testContext } from '../exports/test.context.js';
|
|
10
10
|
import { QtiContext } from '../exports/qti.context.js';
|
|
@@ -13,7 +13,7 @@ import { ConfigContext } from '../exports/config.context.js';
|
|
|
13
13
|
import { TemplateFunction } from '@heximal/templates';
|
|
14
14
|
import { ViewMode } from 'storybook/internal/types';
|
|
15
15
|
import '../exports/expression-result.js';
|
|
16
|
-
import '../qti-transform-
|
|
16
|
+
import '../qti-transform-test-DkSRdVBF.js';
|
|
17
17
|
import '../qti-assessment-item-l-mN3teH.js';
|
|
18
18
|
import '../qti-modal-feedback-PKbhO-3w.js';
|
|
19
19
|
import '../exports/item.context.js';
|
|
@@ -332,6 +332,8 @@ declare class TestContainer extends LitElement {
|
|
|
332
332
|
testXML: string;
|
|
333
333
|
/** Template content if provided */
|
|
334
334
|
private templateContent;
|
|
335
|
+
/** Callback function to transform the test after loading */
|
|
336
|
+
postLoadTestTransformCallback: PostLoadTestTransformCallback | null;
|
|
335
337
|
protected handleTestURLChange(): Promise<void>;
|
|
336
338
|
protected handleTestXMLChange(): void;
|
|
337
339
|
connectedCallback(): Promise<void>;
|
package/dist/qti-test/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as transformItemApi } from './qti-transform-
|
|
1
|
+
import { a as transformTestApi, t as transformItemApi } from './qti-transform-test-DkSRdVBF.js';
|
|
2
2
|
import * as lit from 'lit';
|
|
3
3
|
import { LitElement } from 'lit';
|
|
4
4
|
import { Q as QtiAssessmentItem } from './qti-assessment-item-l-mN3teH.js';
|
|
@@ -91,6 +91,7 @@ declare global {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
type PostLoadTransformCallback = (transformer: transformItemApi, itemRef: QtiAssessmentItemRef) => transformItemApi | Promise<transformItemApi>;
|
|
94
|
+
type PostLoadTestTransformCallback = (transformer: transformTestApi, testElement: QtiAssessmentTest) => transformTestApi | Promise<transformTestApi>;
|
|
94
95
|
|
|
95
96
|
interface QtiTest extends LitElement, ITestNavigationMixin, ITestProcessingMixin, IQtiTest {
|
|
96
97
|
}
|
|
@@ -105,6 +106,7 @@ interface ITestNavigationMixin {
|
|
|
105
106
|
requestTimeout: number;
|
|
106
107
|
showLoadingIndicators: boolean;
|
|
107
108
|
postLoadTransformCallback: PostLoadTransformCallback | null;
|
|
109
|
+
postLoadTestTransformCallback: PostLoadTestTransformCallback | null;
|
|
108
110
|
navigateTo(type: 'item' | 'section', id?: string): void;
|
|
109
111
|
retryNavigation(): void;
|
|
110
112
|
}
|
|
@@ -115,4 +117,4 @@ interface ITestProcessingMixin {
|
|
|
115
117
|
outcomeProcessing(): boolean;
|
|
116
118
|
}
|
|
117
119
|
|
|
118
|
-
export { type IQtiTest as I, QtiAssessmentItemRef as Q, QtiAssessmentSection as a, QtiAssessmentTest as b, QtiTestPart as c, QtiTestFeedback as d, type QtiTest as e, type ITestNavigationMixin as f, type ITestProcessingMixin as g };
|
|
120
|
+
export { type IQtiTest as I, type PostLoadTestTransformCallback as P, QtiAssessmentItemRef as Q, QtiAssessmentSection as a, QtiAssessmentTest as b, QtiTestPart as c, QtiTestFeedback as d, type QtiTest as e, type ITestNavigationMixin as f, type ITestProcessingMixin as g };
|
|
@@ -36,4 +36,31 @@ type transformItemApi = {
|
|
|
36
36
|
};
|
|
37
37
|
declare const qtiTransformItem: (cache?: boolean) => transformItemApi;
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Returns an object with methods to load, parse and transform QTI tests.
|
|
41
|
+
* @returns An object with methods to load, parse and transform QTI tests.
|
|
42
|
+
* @example
|
|
43
|
+
* const qtiTransformer = qtiTransformTest();
|
|
44
|
+
* await qtiTransformer.load('https://example.com/test.xml');
|
|
45
|
+
* const items = qtiTransformer.items();
|
|
46
|
+
* const html = qtiTransformer.html();
|
|
47
|
+
* const xml = qtiTransformer.xml();
|
|
48
|
+
*/
|
|
49
|
+
type transformTestApi = {
|
|
50
|
+
load: (uri: string) => Promise<transformTestApi>;
|
|
51
|
+
parse: (xmlString: string) => transformTestApi;
|
|
52
|
+
path: (location: string) => transformTestApi;
|
|
53
|
+
fn: (fn: (xmlFragment: XMLDocument) => void) => transformTestApi;
|
|
54
|
+
items: () => {
|
|
55
|
+
identifier: string;
|
|
56
|
+
href: string;
|
|
57
|
+
category: string;
|
|
58
|
+
}[];
|
|
59
|
+
html: () => string;
|
|
60
|
+
xml: () => string;
|
|
61
|
+
htmlDoc: () => DocumentFragment;
|
|
62
|
+
xmlDoc: () => XMLDocument;
|
|
63
|
+
};
|
|
64
|
+
declare const qtiTransformTest: () => transformTestApi;
|
|
65
|
+
|
|
66
|
+
export { type ModuleResolutionConfig as M, type transformTestApi as a, qtiTransformTest as b, qtiTransformItem as q, type transformItemApi as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { M as ModuleResolutionConfig, q as qtiTransformItem, t as transformItemApi } from '../qti-transform-
|
|
1
|
+
export { M as ModuleResolutionConfig, q as qtiTransformItem, b as qtiTransformTest, t as transformItemApi, a as transformTestApi } from '../qti-transform-test-DkSRdVBF.js';
|
|
2
2
|
|
|
3
3
|
declare const qtiTransformManifest: () => {
|
|
4
4
|
load: (uri: string) => Promise<{
|
|
@@ -15,31 +15,4 @@ declare const qtiTransformManifest: () => {
|
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
* Returns an object with methods to load, parse and transform QTI tests.
|
|
20
|
-
* @returns An object with methods to load, parse and transform QTI tests.
|
|
21
|
-
* @example
|
|
22
|
-
* const qtiTransformer = qtiTransformTest();
|
|
23
|
-
* await qtiTransformer.load('https://example.com/test.xml');
|
|
24
|
-
* const items = qtiTransformer.items();
|
|
25
|
-
* const html = qtiTransformer.html();
|
|
26
|
-
* const xml = qtiTransformer.xml();
|
|
27
|
-
*/
|
|
28
|
-
type transformTestApi = {
|
|
29
|
-
load: (uri: string) => Promise<transformTestApi>;
|
|
30
|
-
parse: (xmlString: string) => transformTestApi;
|
|
31
|
-
path: (location: string) => transformTestApi;
|
|
32
|
-
fn: (fn: (xmlFragment: XMLDocument) => void) => transformTestApi;
|
|
33
|
-
items: () => {
|
|
34
|
-
identifier: string;
|
|
35
|
-
href: string;
|
|
36
|
-
category: string;
|
|
37
|
-
}[];
|
|
38
|
-
html: () => string;
|
|
39
|
-
xml: () => string;
|
|
40
|
-
htmlDoc: () => DocumentFragment;
|
|
41
|
-
xmlDoc: () => XMLDocument;
|
|
42
|
-
};
|
|
43
|
-
declare const qtiTransformTest: () => transformTestApi;
|
|
44
|
-
|
|
45
|
-
export { qtiTransformManifest, qtiTransformTest, type transformTestApi };
|
|
18
|
+
export { qtiTransformManifest };
|
|
@@ -978,6 +978,10 @@
|
|
|
978
978
|
{
|
|
979
979
|
"name": "postLoadTransformCallback",
|
|
980
980
|
"values": [{ "name": "PostLoadTransformCallback" }]
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"name": "postLoadTestTransformCallback",
|
|
984
|
+
"values": [{ "name": "PostLoadTestTransformCallback" }]
|
|
981
985
|
}
|
|
982
986
|
],
|
|
983
987
|
"references": []
|
|
@@ -1058,6 +1062,11 @@
|
|
|
1058
1062
|
"name": "test-url",
|
|
1059
1063
|
"description": "URL of the item to load",
|
|
1060
1064
|
"values": []
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
"name": "postLoadTestTransformCallback",
|
|
1068
|
+
"description": "Callback function to transform the test after loading",
|
|
1069
|
+
"values": [{ "name": "PostLoadTestTransformCallback" }]
|
|
1061
1070
|
}
|
|
1062
1071
|
],
|
|
1063
1072
|
"references": []
|