@citolab/qti-components 7.12.0 → 7.13.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 +32 -32
- package/custom-elements.json +2 -26
- package/dist/chunks/{chunk-GGTWY53P.js → chunk-XI7S3HP2.js} +7 -10
- package/dist/chunks/{chunk-GGTWY53P.js.map → chunk-XI7S3HP2.js.map} +1 -1
- package/dist/exports/qti-test.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +34 -34
- package/dist/index.js.map +1 -1
- package/dist/qti-components-jsx.d.ts +0 -3
- package/dist/qti-test/index.d.ts +2 -3
- package/dist/qti-test/index.js +2 -2
- package/dist/{qti-test-BWQRhMTT.d.ts → qti-test-DEJqAn7G.d.ts} +2 -2
- package/dist/vscode.html-custom-data.json +1 -6
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as IQtiTest, f as ITestNavigationMixin, g as ITestProcessingMixin, e as QtiTest } from '../qti-test-
|
|
1
|
+
export { I as IQtiTest, f as ITestNavigationMixin, g as ITestProcessingMixin, e as QtiTest } from '../qti-test-DEJqAn7G.js';
|
|
2
2
|
import 'lit';
|
|
3
3
|
import './test.context.js';
|
|
4
4
|
import './session.context.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { Orientation, QtiAnd, QtiAssessmentStimulusRef, QtiAssociableHotspot, Qt
|
|
|
3
3
|
export { Q as QtiModalFeedback } from './qti-modal-feedback-PKbhO-3w.js';
|
|
4
4
|
export { c as QtiAreaMapEntry, b as QtiAreaMapping, a as QtiMapEntry, Q as QtiMapping, d as areaShape } from './variables-BCkyLoXK.js';
|
|
5
5
|
export { QtiTest, TestCheckItem, TestContainer, TestEndAttempt, TestItemLink, TestNavigation, TestNext, TestPagingButtonsStamp, TestPrev, TestPrintContext, TestPrintVariables, TestScoringButtons, TestScoringFeedback, TestSectionButtonsStamp, TestSectionLink, TestShowCorrectResponse, TestStamp, TestView, TestViewToggle } from './qti-test/index.js';
|
|
6
|
-
export { Q as QtiAssessmentItemRef, a as QtiAssessmentSection, b as QtiAssessmentTest, d as QtiTestFeedback, c as QtiTestPart } from './qti-test-
|
|
6
|
+
export { Q as QtiAssessmentItemRef, a as QtiAssessmentSection, b as QtiAssessmentTest, d as QtiTestFeedback, c as QtiTestPart } from './qti-test-DEJqAn7G.js';
|
|
7
7
|
export { INITIAL_TEST_CONTEXT, TestContext, testContext } from './exports/test.context.js';
|
|
8
8
|
export { ItemContainer, ItemShowCorrectResponse, PrintItemVariables, QtiItem } from './qti-item/index.js';
|
|
9
9
|
import 'lit-html';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ItemContainer,
|
|
3
|
+
ItemShowCorrectResponse,
|
|
4
|
+
PrintItemVariables,
|
|
5
|
+
QtiItem
|
|
6
|
+
} from "./chunks/chunk-IHE5M7QU.js";
|
|
7
|
+
import {
|
|
8
|
+
QtiAssessmentItemRef,
|
|
9
|
+
QtiAssessmentSection,
|
|
10
|
+
QtiAssessmentTest,
|
|
11
|
+
QtiTest,
|
|
12
|
+
QtiTestFeedback,
|
|
13
|
+
QtiTestPart,
|
|
14
|
+
TestCheckItem,
|
|
15
|
+
TestContainer,
|
|
16
|
+
TestEndAttempt,
|
|
17
|
+
TestItemLink,
|
|
18
|
+
TestNavigation,
|
|
19
|
+
TestNext,
|
|
20
|
+
TestPagingButtonsStamp,
|
|
21
|
+
TestPrev,
|
|
22
|
+
TestPrintContext,
|
|
23
|
+
TestPrintVariables,
|
|
24
|
+
TestScoringButtons,
|
|
25
|
+
TestScoringFeedback,
|
|
26
|
+
TestSectionButtonsStamp,
|
|
27
|
+
TestSectionLink,
|
|
28
|
+
TestShowCorrectResponse,
|
|
29
|
+
TestStamp,
|
|
30
|
+
TestView,
|
|
31
|
+
TestViewToggle
|
|
32
|
+
} from "./chunks/chunk-XI7S3HP2.js";
|
|
33
|
+
import "./chunks/chunk-PT5ASWGQ.js";
|
|
1
34
|
import {
|
|
2
35
|
QtiAnd,
|
|
3
36
|
QtiAssessmentItem,
|
|
@@ -96,42 +129,9 @@ import {
|
|
|
96
129
|
qtiAndMixin,
|
|
97
130
|
qtiSubtractMixin
|
|
98
131
|
} from "./chunks/chunk-TFNRSY74.js";
|
|
99
|
-
import {
|
|
100
|
-
ItemContainer,
|
|
101
|
-
ItemShowCorrectResponse,
|
|
102
|
-
PrintItemVariables,
|
|
103
|
-
QtiItem
|
|
104
|
-
} from "./chunks/chunk-IHE5M7QU.js";
|
|
105
|
-
import {
|
|
106
|
-
QtiAssessmentItemRef,
|
|
107
|
-
QtiAssessmentSection,
|
|
108
|
-
QtiAssessmentTest,
|
|
109
|
-
QtiTest,
|
|
110
|
-
QtiTestFeedback,
|
|
111
|
-
QtiTestPart,
|
|
112
|
-
TestCheckItem,
|
|
113
|
-
TestContainer,
|
|
114
|
-
TestEndAttempt,
|
|
115
|
-
TestItemLink,
|
|
116
|
-
TestNavigation,
|
|
117
|
-
TestNext,
|
|
118
|
-
TestPagingButtonsStamp,
|
|
119
|
-
TestPrev,
|
|
120
|
-
TestPrintContext,
|
|
121
|
-
TestPrintVariables,
|
|
122
|
-
TestScoringButtons,
|
|
123
|
-
TestScoringFeedback,
|
|
124
|
-
TestSectionButtonsStamp,
|
|
125
|
-
TestSectionLink,
|
|
126
|
-
TestShowCorrectResponse,
|
|
127
|
-
TestStamp,
|
|
128
|
-
TestView,
|
|
129
|
-
TestViewToggle
|
|
130
|
-
} from "./chunks/chunk-GGTWY53P.js";
|
|
131
132
|
import {
|
|
132
133
|
QtiModalFeedback
|
|
133
134
|
} from "./chunks/chunk-YD7FVKDP.js";
|
|
134
|
-
import "./chunks/chunk-PT5ASWGQ.js";
|
|
135
135
|
import "./chunks/chunk-ELDMXTUQ.js";
|
|
136
136
|
import "./chunks/chunk-WFUXZ4UT.js";
|
|
137
137
|
import "./chunks/chunk-SV4K25ZI.js";
|
|
@@ -174,7 +174,7 @@ var package_default = {
|
|
|
174
174
|
engines: {
|
|
175
175
|
node: ">=22.0.0"
|
|
176
176
|
},
|
|
177
|
-
version: "7.
|
|
177
|
+
version: "7.13.0",
|
|
178
178
|
type: "module",
|
|
179
179
|
main: "./dist/index.js",
|
|
180
180
|
types: "./dist/index.d.ts",
|
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.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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AAa;AAAA,IACb,sCAAsC;AAAA,IACtC,uCAAuC;AAAA,IACvC,QAAU;AAAA,IACV,QAAU;AAAA,IACV,qCAAqC;AAAA,IACrC,wBAAwB;AAAA,IACxB,qBAAqB;AAAA,IACrB,0BAA0B;AAAA,IAC1B,uBAAuB;AAAA,IACvB,0CAA0C;AAAA,IAC1C,2BAA2B;AAAA,IAC3B,oBAAoB;AAAA,IACpB,mBAAmB;AAAA,IACnB,SAAW;AAAA,IACX,QAAU;AAAA,IACV,OAAS;AAAA,IACT,KAAO;AAAA,IACP,OAAS;AAAA,IACT,SAAW;AAAA,IACX,eAAe;AAAA,IACf,mBAAmB;AAAA,IACnB,cAAc;AAAA,IACd,YAAc;AAAA,IACd,SAAW;AAAA,IACX,uBAAuB;AAAA,IACvB,eAAe;AAAA,IACf,kBAAkB;AAAA,IAClB,mBAAmB;AAAA,IACnB,UAAY;AAAA,IACZ,eAAe;AAAA,IACf,SAAW;AAAA,IACX,cAAc;AAAA,IACd,8BAA8B;AAAA,IAC9B,WAAa;AAAA,IACb,8BAA8B;AAAA,IAC9B,WAAa;AAAA,IACb,6BAA6B;AAAA,IAC7B,sBAAsB;AAAA,IACtB,MAAQ;AAAA,IACR,YAAc;AAAA,IACd,qBAAqB;AAAA,IACrB,MAAQ;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.13.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;AAA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;AAAA,IACT,SAAW;AAAA,IACX,eAAe;AAAA,IACf,mBAAmB;AAAA,IACnB,cAAc;AAAA,IACd,YAAc;AAAA,IACd,SAAW;AAAA,IACX,uBAAuB;AAAA,IACvB,eAAe;AAAA,IACf,kBAAkB;AAAA,IAClB,mBAAmB;AAAA,IACnB,UAAY;AAAA,IACZ,eAAe;AAAA,IACf,SAAW;AAAA,IACX,cAAc;AAAA,IACd,8BAA8B;AAAA,IAC9B,WAAa;AAAA,IACb,8BAA8B;AAAA,IAC9B,WAAa;AAAA,IACb,6BAA6B;AAAA,IAC7B,sBAAsB;AAAA,IACtB,MAAQ;AAAA,IACR,YAAc;AAAA,IACd,qBAAqB;AAAA,IACrB,MAAQ;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":[]}
|
|
@@ -1764,8 +1764,6 @@ export type TestContainerProps = {
|
|
|
1764
1764
|
"test-url"?: TestContainer['testURL'];
|
|
1765
1765
|
/** URL of the item to load */
|
|
1766
1766
|
"testURL"?: TestContainer['testURL'];
|
|
1767
|
-
/** Callback function to transform the test after loading */
|
|
1768
|
-
"postLoadTestTransformCallback"?: TestContainer['postLoadTestTransformCallback'];
|
|
1769
1767
|
/** A parsed HTML document */
|
|
1770
1768
|
"testDoc"?: TestContainer['testDoc'];
|
|
1771
1769
|
/** The raw XML string */
|
|
@@ -4267,7 +4265,6 @@ export type QtiTestVariablesProps = {
|
|
|
4267
4265
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
4268
4266
|
*
|
|
4269
4267
|
* - `test-url`/`testURL`: URL of the item to load
|
|
4270
|
-
* - `postLoadTestTransformCallback`: Callback function to transform the test after loading
|
|
4271
4268
|
* - `testDoc`: A parsed HTML document (property only)
|
|
4272
4269
|
* - `testXML`: The raw XML string (property only)
|
|
4273
4270
|
*/
|
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
|
|
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 } from '../qti-test-DEJqAn7G.js';
|
|
7
|
+
export { Q as QtiAssessmentItemRef, a as QtiAssessmentSection, d as QtiTestFeedback, c as QtiTestPart } from '../qti-test-DEJqAn7G.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';
|
|
@@ -333,7 +333,6 @@ declare class TestContainer extends LitElement {
|
|
|
333
333
|
/** Template content if provided */
|
|
334
334
|
private templateContent;
|
|
335
335
|
/** Callback function to transform the test after loading */
|
|
336
|
-
postLoadTestTransformCallback: PostLoadTestTransformCallback | null;
|
|
337
336
|
protected handleTestURLChange(): Promise<void>;
|
|
338
337
|
protected handleTestXMLChange(): void;
|
|
339
338
|
connectedCallback(): Promise<void>;
|
package/dist/qti-test/index.js
CHANGED
|
@@ -23,9 +23,9 @@ import {
|
|
|
23
23
|
TestStamp,
|
|
24
24
|
TestView,
|
|
25
25
|
TestViewToggle
|
|
26
|
-
} from "../chunks/chunk-
|
|
27
|
-
import "../chunks/chunk-YD7FVKDP.js";
|
|
26
|
+
} from "../chunks/chunk-XI7S3HP2.js";
|
|
28
27
|
import "../chunks/chunk-PT5ASWGQ.js";
|
|
28
|
+
import "../chunks/chunk-YD7FVKDP.js";
|
|
29
29
|
import "../chunks/chunk-ELDMXTUQ.js";
|
|
30
30
|
import "../chunks/chunk-WFUXZ4UT.js";
|
|
31
31
|
import "../chunks/chunk-H6KHXSIO.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as transformItemApi, a as transformTestApi } 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';
|
|
@@ -117,4 +117,4 @@ interface ITestProcessingMixin {
|
|
|
117
117
|
outcomeProcessing(): boolean;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
export { type IQtiTest as I,
|
|
120
|
+
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 };
|
|
@@ -1056,17 +1056,12 @@
|
|
|
1056
1056
|
},
|
|
1057
1057
|
{
|
|
1058
1058
|
"name": "test-container",
|
|
1059
|
-
"description": "`<test-container>` is a custom element designed for hosting the qti-assessment-item.\nThe `qti-assessment-test` will be placed inside the shadow DOM of this element.\nThe element loads the test from the provided URL and renders it inside the shadow DOM.\n\n```html\n<qti-test>\n <test-navigation>\n <test-container class=\"m-4 bg-white\" test-url=\"./path/to/assessmenttest.xml\"></test-container>\n </test-navigation>\n</qti-test>\n```\n---\n",
|
|
1059
|
+
"description": "`<test-container>` is a custom element designed for hosting the qti-assessment-item.\nThe `qti-assessment-test` will be placed inside the shadow DOM of this element.\nThe element loads the test from the provided URL and renders it inside the shadow DOM.\n\n```html\n<qti-test>\n <test-navigation>\n <test-container class=\"m-4 bg-white\" test-url=\"./path/to/assessmenttest.xml\"></test-container>\n </test-navigation>\n</qti-test>\n```\n---\n\n\n### **Methods:**\n ",
|
|
1060
1060
|
"attributes": [
|
|
1061
1061
|
{
|
|
1062
1062
|
"name": "test-url",
|
|
1063
1063
|
"description": "URL of the item to load",
|
|
1064
1064
|
"values": []
|
|
1065
|
-
},
|
|
1066
|
-
{
|
|
1067
|
-
"name": "postLoadTestTransformCallback",
|
|
1068
|
-
"description": "Callback function to transform the test after loading",
|
|
1069
|
-
"values": [{ "name": "PostLoadTestTransformCallback" }]
|
|
1070
1065
|
}
|
|
1071
1066
|
],
|
|
1072
1067
|
"references": []
|