@citolab/qti-components 7.14.1 → 7.14.3

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.
Files changed (30) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +86 -78
  3. package/custom-elements.json +427 -5
  4. package/dist/chunks/{chunk-YD7FVKDP.js → chunk-AGV5GOTF.js} +3 -5
  5. package/dist/chunks/chunk-AGV5GOTF.js.map +1 -0
  6. package/dist/chunks/{chunk-TISKSGJE.js → chunk-C4ELTNV7.js} +77 -18
  7. package/dist/chunks/chunk-C4ELTNV7.js.map +1 -0
  8. package/dist/chunks/{chunk-7567ZPN6.js → chunk-DGBI4IU5.js} +2 -2
  9. package/dist/chunks/{chunk-XEKFVRIO.js → chunk-E4GR4K26.js} +3 -4
  10. package/dist/chunks/{chunk-XEKFVRIO.js.map → chunk-E4GR4K26.js.map} +1 -1
  11. package/dist/chunks/{chunk-PT5ASWGQ.js → chunk-TN75CWLX.js} +9 -1
  12. package/dist/chunks/{chunk-PT5ASWGQ.js.map → chunk-TN75CWLX.js.map} +1 -1
  13. package/dist/exports/qti-test.d.ts +2 -2
  14. package/dist/index.d.ts +2 -3
  15. package/dist/index.js +16 -14
  16. package/dist/index.js.map +1 -1
  17. package/dist/item.css +8 -0
  18. package/dist/qti-components/index.d.ts +5 -3
  19. package/dist/qti-components/index.js +4 -2
  20. package/dist/qti-components-jsx.d.ts +23 -22
  21. package/dist/qti-item/index.js +2 -2
  22. package/dist/{qti-modal-feedback-PKbhO-3w.d.ts → qti-modal-feedback-Cp3CHVKw.d.ts} +1 -1
  23. package/dist/qti-test/index.d.ts +5 -6
  24. package/dist/qti-test/index.js +3 -3
  25. package/dist/{qti-test-Db7oNIWY.d.ts → qti-test-mmY8zNIj.d.ts} +1 -1
  26. package/dist/vscode.html-custom-data.json +7 -7
  27. package/package.json +10 -10
  28. package/dist/chunks/chunk-TISKSGJE.js.map +0 -1
  29. package/dist/chunks/chunk-YD7FVKDP.js.map +0 -1
  30. /package/dist/chunks/{chunk-7567ZPN6.js.map → chunk-DGBI4IU5.js.map} +0 -0
package/dist/index.js CHANGED
@@ -96,13 +96,13 @@ import {
96
96
  QtiVariable,
97
97
  qtiAndMixin,
98
98
  qtiSubtractMixin
99
- } from "./chunks/chunk-TISKSGJE.js";
99
+ } from "./chunks/chunk-C4ELTNV7.js";
100
100
  import {
101
101
  ItemContainer,
102
102
  ItemShowCorrectResponse,
103
103
  PrintItemVariables,
104
104
  QtiItem
105
- } from "./chunks/chunk-7567ZPN6.js";
105
+ } from "./chunks/chunk-DGBI4IU5.js";
106
106
  import {
107
107
  QtiAssessmentItemRef,
108
108
  QtiAssessmentSection,
@@ -128,11 +128,12 @@ import {
128
128
  TestStamp,
129
129
  TestView,
130
130
  TestViewToggle
131
- } from "./chunks/chunk-XEKFVRIO.js";
131
+ } from "./chunks/chunk-E4GR4K26.js";
132
132
  import {
133
+ QtiFeedback,
133
134
  QtiModalFeedback
134
- } from "./chunks/chunk-YD7FVKDP.js";
135
- import "./chunks/chunk-PT5ASWGQ.js";
135
+ } from "./chunks/chunk-AGV5GOTF.js";
136
+ import "./chunks/chunk-TN75CWLX.js";
136
137
  import "./chunks/chunk-ELDMXTUQ.js";
137
138
  import "./chunks/chunk-XBPO6E25.js";
138
139
  import "./chunks/chunk-SV4K25ZI.js";
@@ -175,7 +176,7 @@ var package_default = {
175
176
  engines: {
176
177
  node: ">=22.0.0"
177
178
  },
178
- version: "7.14.1",
179
+ version: "7.14.3",
179
180
  type: "module",
180
181
  main: "./dist/index.js",
181
182
  types: "./dist/index.d.ts",
@@ -228,7 +229,7 @@ var package_default = {
228
229
  "build-storybook": "npm run cem && storybook build",
229
230
  "-----------------------scripts--": "-",
230
231
  build: "run-p cem css tsup",
231
- "storybook:dev": "storybook dev -p 6006",
232
+ "storybook:dev": "storybook dev -p 6006 --no-open",
232
233
  cem: "cem analyze",
233
234
  "cem:watch": "cem analyze --watch",
234
235
  css: "postcss src/item.css -d dist -m",
@@ -244,7 +245,7 @@ var package_default = {
244
245
  madge: "madge --circular --extensions ts src",
245
246
  commitlint: "commitlint --edit",
246
247
  "-----------------------npm--": "-",
247
- prepare: "husky"
248
+ prepare: "husky && npm run build"
248
249
  },
249
250
  peerDependencies: {
250
251
  "@heximal/templates": "^0.1.5",
@@ -274,13 +275,13 @@ var package_default = {
274
275
  "@vitest/browser": "^3.2.4",
275
276
  "@vitest/coverage-v8": "^3.2.4",
276
277
  "@vitest/ui": "^3.2.4",
277
- "@wc-toolkit/cem-inheritance": "^1.1.0",
278
+ "@wc-toolkit/cem-inheritance": "^1.2.2",
278
279
  "@wc-toolkit/cem-sorter": "^1.0.1",
279
- "@wc-toolkit/cem-utilities": "^1.3.0",
280
- "@wc-toolkit/changelog": "^1.0.1",
281
- "@wc-toolkit/jsx-types": "^1.2.2",
282
- "@wc-toolkit/storybook-helpers": "^9.0.0",
283
- "@wc-toolkit/type-parser": "^1.1.0",
280
+ "@wc-toolkit/cem-utilities": "^1.5.0",
281
+ "@wc-toolkit/changelog": "^1.0.2",
282
+ "@wc-toolkit/jsx-types": "^1.4.3",
283
+ "@wc-toolkit/storybook-helpers": "^9.0.1",
284
+ "@wc-toolkit/type-parser": "^1.2.0",
284
285
  autoprefixer: "^10.4.21",
285
286
  chromatic: "^13.0.0",
286
287
  "custom-element-vs-code-integration": "^1.5.0",
@@ -390,6 +391,7 @@ export {
390
391
  QtiEqual,
391
392
  QtiEqualRounded,
392
393
  QtiExtendedTextInteraction,
394
+ QtiFeedback,
393
395
  QtiFeedbackBlock,
394
396
  QtiFeedbackInline,
395
397
  QtiFieldValue,
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.14.1\",\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 \"mdx-mermaid\": \"^2.0.3\",\n \"mermaid\": \"^11.12.0\",\n \"msw\": \"^2.11.5\",\n \"msw-storybook-addon\": \"^2.0.5\",\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 \"msw\": {\n \"workerDirectory\": [\n \"public\"\n ]\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,EAC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A,IACT,KAAO;AAAA,IACP,OAAS;AAAA,IACT,eAAe;AAAA,IACf,SAAW;AAAA,IACX,KAAO;AAAA,IACP,uBAAuB;AAAA,IACvB,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;AAAA,EACA,KAAO;AAAA,IACL,iBAAmB;AAAA,MACjB;AAAA,IACF;AAAA,EACF;AACF;;;AC9LA,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.14.3\",\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 --no-open\",\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 && npm run build\"\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.2.2\",\n \"@wc-toolkit/cem-sorter\": \"^1.0.1\",\n \"@wc-toolkit/cem-utilities\": \"^1.5.0\",\n \"@wc-toolkit/changelog\": \"^1.0.2\",\n \"@wc-toolkit/jsx-types\": \"^1.4.3\",\n \"@wc-toolkit/storybook-helpers\": \"^9.0.1\",\n \"@wc-toolkit/type-parser\": \"^1.2.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 \"mdx-mermaid\": \"^2.0.3\",\n \"mermaid\": \"^11.12.0\",\n \"msw\": \"^2.11.5\",\n \"msw-storybook-addon\": \"^2.0.5\",\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 \"msw\": {\n \"workerDirectory\": [\n \"public\"\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;AA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,SAAW;AAAA,IACX,KAAO;AAAA,IACP,uBAAuB;AAAA,IACvB,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;AAAA,EACA,KAAO;AAAA,IACL,iBAAmB;AAAA,MACjB;AAAA,IACF;AAAA,EACF;AACF;;;AC9LA,QAAQ;AAAA,EACN;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,gBAAY;AAAA,EACZ;AACF;","names":[]}
package/dist/item.css CHANGED
@@ -2367,6 +2367,14 @@ qti-response-declaration {
2367
2367
  &:focus {
2368
2368
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
2369
2369
  }
2370
+
2371
+ &:state(candidate-correct) {
2372
+ background-color: var(--qti-correct);
2373
+ }
2374
+
2375
+ &:state(candidate-incorrect) {
2376
+ background-color: var(--qti-incorrect);
2377
+ }
2370
2378
 
2371
2379
  box-sizing: border-box;
2372
2380
 
@@ -3,8 +3,8 @@ import * as lit from 'lit';
3
3
  import { LitElement, CSSResultGroup, PropertyValues, PropertyValueMap, nothing } from 'lit';
4
4
  import * as lit_html from 'lit-html';
5
5
  import { Calculate, Cardinality, BaseType } from '../exports/expression-result.js';
6
- import { a as QtiFeedback } from '../qti-modal-feedback-PKbhO-3w.js';
7
- export { Q as QtiModalFeedback } from '../qti-modal-feedback-PKbhO-3w.js';
6
+ import { Q as QtiFeedback } from '../qti-modal-feedback-Cp3CHVKw.js';
7
+ export { a as QtiModalFeedback } from '../qti-modal-feedback-Cp3CHVKw.js';
8
8
  import { IInteraction } from '../exports/interaction.interface.js';
9
9
  import { Interaction, Correctness } from '../exports/interaction.js';
10
10
  import { ConfigContext } from '../exports/config.context.js';
@@ -266,6 +266,8 @@ declare class QtiGapMatchInteraction extends QtiGapMatchInteraction_base {
266
266
  static styles: CSSResultGroup;
267
267
  render(): lit_html.TemplateResult<1>;
268
268
  toggleCorrectResponse(show: boolean): void;
269
+ private getMatches;
270
+ toggleCandidateCorrection(show: boolean): void;
269
271
  }
270
272
  declare global {
271
273
  interface HTMLElementTagNameMap {
@@ -1519,4 +1521,4 @@ declare global {
1519
1521
  }
1520
1522
  }
1521
1523
 
1522
- export { type Orientation, QtiAnd, QtiAssessmentItem, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiContainerSize, QtiContains, QtiContentBody, QtiCorrect, QtiCustomInteraction, QtiCustomOperator, QtiDefault, QtiDelete, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExtendedTextInteraction, QtiFeedbackBlock, QtiFeedbackInline, QtiFieldValue, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGcd, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiIndex, QtiInlineChoice, QtiInlineChoiceInteraction, QtiIsNull, QtiItemBody, QtiLookupOutcomeValue, QtiLt, QtiLte, QtiMapResponse, QtiMapResponsePoint, QtiMatch, QtiMatchInteraction, QtiMathOperator, QtiMediaInteraction, QtiMember, QtiMultiple, QtiNot, QtiNull, QtiOr, QtiOrderInteraction, QtiOrdered, QtiOutcomeDeclaration, QtiOutcomeProcessing, QtiOutcomeProcessingProcessor, QtiPortableCustomInteraction, QtiPositionObjectInteraction, QtiPositionObjectStage, QtiPower, QtiPrintedVariable, QtiProduct, QtiPrompt, QtiRandom, QtiRandomInteger, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRound, QtiRoundTo, QtiRubricBlock, QtiRule, type QtiRuleBase, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiSimpleAssociableChoice, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSubtract, QtiSum, QtiSumExpression, QtiTextEntryInteraction, QtiUploadInteraction, QtiVariable, qtiAndMixin, qtiSubtractMixin };
1524
+ export { type Orientation, QtiAnd, QtiAssessmentItem, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiContainerSize, QtiContains, QtiContentBody, QtiCorrect, QtiCustomInteraction, QtiCustomOperator, QtiDefault, QtiDelete, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExtendedTextInteraction, QtiFeedback, QtiFeedbackBlock, QtiFeedbackInline, QtiFieldValue, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGcd, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiIndex, QtiInlineChoice, QtiInlineChoiceInteraction, QtiIsNull, QtiItemBody, QtiLookupOutcomeValue, QtiLt, QtiLte, QtiMapResponse, QtiMapResponsePoint, QtiMatch, QtiMatchInteraction, QtiMathOperator, QtiMediaInteraction, QtiMember, QtiMultiple, QtiNot, QtiNull, QtiOr, QtiOrderInteraction, QtiOrdered, QtiOutcomeDeclaration, QtiOutcomeProcessing, QtiOutcomeProcessingProcessor, QtiPortableCustomInteraction, QtiPositionObjectInteraction, QtiPositionObjectStage, QtiPower, QtiPrintedVariable, QtiProduct, QtiPrompt, QtiRandom, QtiRandomInteger, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRound, QtiRoundTo, QtiRubricBlock, QtiRule, type QtiRuleBase, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiSimpleAssociableChoice, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSubtract, QtiSum, QtiSumExpression, QtiTextEntryInteraction, QtiUploadInteraction, QtiVariable, qtiAndMixin, qtiSubtractMixin };
@@ -96,10 +96,11 @@ import {
96
96
  QtiVariable,
97
97
  qtiAndMixin,
98
98
  qtiSubtractMixin
99
- } from "../chunks/chunk-TISKSGJE.js";
99
+ } from "../chunks/chunk-C4ELTNV7.js";
100
100
  import {
101
+ QtiFeedback,
101
102
  QtiModalFeedback
102
- } from "../chunks/chunk-YD7FVKDP.js";
103
+ } from "../chunks/chunk-AGV5GOTF.js";
103
104
  import "../chunks/chunk-ELDMXTUQ.js";
104
105
  import "../chunks/chunk-XBPO6E25.js";
105
106
  import "../chunks/chunk-SV4K25ZI.js";
@@ -133,6 +134,7 @@ export {
133
134
  QtiEqual,
134
135
  QtiEqualRounded,
135
136
  QtiExtendedTextInteraction,
137
+ QtiFeedback,
136
138
  QtiFeedbackBlock,
137
139
  QtiFeedbackInline,
138
140
  QtiFieldValue,
@@ -66,9 +66,9 @@ import type { QtiCustomInteraction } from "src/lib/qti-components/qti-interactio
66
66
  import type { QtiEndAttemptInteraction } from "src/lib/qti-components/qti-interaction/qti-end-attempt-interaction/qti-end-attempt-interaction.ts";
67
67
  import type { QtiExtendedTextInteraction } from "src/lib/qti-components/qti-interaction/qti-extended-text-interaction/qti-extended-text-interaction.ts";
68
68
  import type { QtiGapImg } from "src/lib/qti-components/qti-interaction/qti-gap-img.ts";
69
+ import type { QtiGap } from "src/lib/qti-components/qti-interaction/qti-gap.ts";
69
70
  import type { QtiGapMatchInteraction } from "src/lib/qti-components/qti-interaction/qti-gap-match-interaction/qti-gap-match-interaction.ts";
70
71
  import type { QtiGapText } from "src/lib/qti-components/qti-interaction/qti-gap-text.ts";
71
- import type { QtiGap } from "src/lib/qti-components/qti-interaction/qti-gap.ts";
72
72
  import type { QtiHotspotChoice } from "src/lib/qti-components/qti-interaction/qti-hotspot-choice.ts";
73
73
  import type { QtiGraphicAssociateInteraction } from "src/lib/qti-components/qti-interaction/qti-graphic-associate-interaction/qti-graphic-associate-interaction.ts";
74
74
  import type { QtiGraphicGapMatchInteraction } from "src/lib/qti-components/qti-interaction/qti-graphic-gap-match-interaction/qti-graphic-gap-match-interaction.ts";
@@ -884,6 +884,14 @@ export type QtiGapImgProps = {
884
884
  }
885
885
 
886
886
 
887
+ export type QtiGapProps = {
888
+ /** */
889
+ "tabindex"?: QtiGap['tabindex'];
890
+
891
+
892
+ }
893
+
894
+
887
895
  export type QtiGapMatchInteractionProps = {
888
896
  /** */
889
897
  "min-associations"?: QtiGapMatchInteraction['minAssociations'];
@@ -924,14 +932,6 @@ export type QtiGapTextProps = {
924
932
  }
925
933
 
926
934
 
927
- export type QtiGapProps = {
928
- /** */
929
- "tabindex"?: QtiGap['tabindex'];
930
-
931
-
932
- }
933
-
934
-
935
935
  export type QtiHotspotChoiceProps = {
936
936
  /** */
937
937
  "aria-ordervalue"?: QtiHotspotChoice['order'];
@@ -3015,6 +3015,18 @@ export type QtiTestVariablesProps = {
3015
3015
  "qti-gap-img": Partial<QtiGapImgProps & BaseProps<QtiGapImg> & BaseEvents>;
3016
3016
 
3017
3017
 
3018
+ /**
3019
+ *
3020
+ *
3021
+ * ## Attributes & Properties
3022
+ *
3023
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
3024
+ *
3025
+ * - `tabindex`: undefined
3026
+ */
3027
+ "qti-gap": Partial<QtiGapProps & BaseProps<QtiGap> & BaseEvents>;
3028
+
3029
+
3018
3030
  /**
3019
3031
  *
3020
3032
  *
@@ -3037,6 +3049,7 @@ export type QtiTestVariablesProps = {
3037
3049
  * Methods that can be called to access component functionality.
3038
3050
  *
3039
3051
  * - `toggleCorrectResponse(show: boolean) => void`: undefined
3052
+ * - `toggleCandidateCorrection(show: boolean) => void`: undefined
3040
3053
  * - `handleDraggableContainerChange(dragContainersAdded: HTMLElement[], dragContainersRemoved: HTMLElement[]) => void`: undefined
3041
3054
  * - `dragContainersModified(addedDragContainers: HTMLElement[], removedDragContainers: HTMLElement[]) => void`: undefined
3042
3055
  * - `handleDraggablesChange(dragsAdded: HTMLElement[], dragsRemoved: HTMLElement[]) => void`: undefined
@@ -3078,18 +3091,6 @@ export type QtiTestVariablesProps = {
3078
3091
  "qti-gap-text": Partial<QtiGapTextProps & BaseProps<QtiGapText> & BaseEvents>;
3079
3092
 
3080
3093
 
3081
- /**
3082
- *
3083
- *
3084
- * ## Attributes & Properties
3085
- *
3086
- * Component attributes and properties that can be applied to the element or by using JavaScript.
3087
- *
3088
- * - `tabindex`: undefined
3089
- */
3090
- "qti-gap": Partial<QtiGapProps & BaseProps<QtiGap> & BaseEvents>;
3091
-
3092
-
3093
3094
  /**
3094
3095
  *
3095
3096
  *
@@ -4463,7 +4464,7 @@ declare module '@stencil/core' {
4463
4464
  export interface CSSProperties extends CustomCssProperties {}
4464
4465
  }
4465
4466
 
4466
- declare module 'hono' {
4467
+ declare module 'hono/jsx' {
4467
4468
  namespace JSX {
4468
4469
  interface IntrinsicElements extends CustomElements {}
4469
4470
  }
@@ -3,8 +3,8 @@ import {
3
3
  ItemShowCorrectResponse,
4
4
  PrintItemVariables,
5
5
  QtiItem
6
- } from "../chunks/chunk-7567ZPN6.js";
7
- import "../chunks/chunk-PT5ASWGQ.js";
6
+ } from "../chunks/chunk-DGBI4IU5.js";
7
+ import "../chunks/chunk-TN75CWLX.js";
8
8
  import "../chunks/chunk-ELDMXTUQ.js";
9
9
  import "../chunks/chunk-XBPO6E25.js";
10
10
  import "../chunks/chunk-4OGJBG35.js";
@@ -27,4 +27,4 @@ declare global {
27
27
  }
28
28
  }
29
29
 
30
- export { QtiModalFeedback as Q, QtiFeedback as a };
30
+ export { QtiFeedback as Q, QtiModalFeedback as a };
@@ -2,20 +2,19 @@ import * as lit_html from 'lit-html';
2
2
  import { e as VariableValue, O as OutcomeVariable, V as VariableDeclaration } from '../variables-BCkyLoXK.js';
3
3
  import * as lit from 'lit';
4
4
  import { LitElement, PropertyValues, nothing } from 'lit';
5
- import { SessionContext } from '../exports/session.context.js';
6
- import { b as QtiAssessmentTest, I as IQtiTest } from '../qti-test-Db7oNIWY.js';
7
- export { Q as QtiAssessmentItemRef, a as QtiAssessmentSection, d as QtiTestFeedback, c as QtiTestPart } from '../qti-test-Db7oNIWY.js';
5
+ import { SessionContext, View } from '../exports/session.context.js';
6
+ import { b as QtiAssessmentTest, I as IQtiTest } from '../qti-test-mmY8zNIj.js';
7
+ export { Q as QtiAssessmentItemRef, a as QtiAssessmentSection, d as QtiTestFeedback, c as QtiTestPart } from '../qti-test-mmY8zNIj.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';
11
11
  import { ComputedContext, ComputedItem } from '../exports/computed.context.js';
12
12
  import { ConfigContext } from '../exports/config.context.js';
13
13
  import { TemplateFunction } from '@heximal/templates';
14
- import { ViewMode } from 'storybook/internal/types';
15
14
  import '../exports/expression-result.js';
16
15
  import '../qti-transform-test-Bz9A3hmD.js';
17
16
  import '../qti-assessment-item-l-mN3teH.js';
18
- import '../qti-modal-feedback-PKbhO-3w.js';
17
+ import '../qti-modal-feedback-Cp3CHVKw.js';
19
18
  import '../exports/item.context.js';
20
19
  import '../exports/computed-item.context.js';
21
20
 
@@ -458,7 +457,7 @@ declare global {
458
457
 
459
458
  declare class TestScoringFeedback extends LitElement {
460
459
  protected computedContext?: ComputedContext;
461
- view: ViewMode;
460
+ view: View;
462
461
  render(): lit_html.TemplateResult<1>;
463
462
  }
464
463
  declare global {
@@ -23,9 +23,9 @@ import {
23
23
  TestStamp,
24
24
  TestView,
25
25
  TestViewToggle
26
- } from "../chunks/chunk-XEKFVRIO.js";
27
- import "../chunks/chunk-YD7FVKDP.js";
28
- import "../chunks/chunk-PT5ASWGQ.js";
26
+ } from "../chunks/chunk-E4GR4K26.js";
27
+ import "../chunks/chunk-AGV5GOTF.js";
28
+ import "../chunks/chunk-TN75CWLX.js";
29
29
  import "../chunks/chunk-ELDMXTUQ.js";
30
30
  import "../chunks/chunk-XBPO6E25.js";
31
31
  import "../chunks/chunk-H6KHXSIO.js";
@@ -5,7 +5,7 @@ import { Q as QtiAssessmentItem } from './qti-assessment-item-l-mN3teH.js';
5
5
  import { TemplateFunction } from '@heximal/templates';
6
6
  import * as lit_html from 'lit-html';
7
7
  import { TestContext } from './exports/test.context.js';
8
- import { Q as QtiModalFeedback } from './qti-modal-feedback-PKbhO-3w.js';
8
+ import { a as QtiModalFeedback } from './qti-modal-feedback-Cp3CHVKw.js';
9
9
  import { SessionContext } from './exports/session.context.js';
10
10
  import { e as VariableValue, O as OutcomeVariable, V as VariableDeclaration } from './variables-BCkyLoXK.js';
11
11
 
@@ -530,6 +530,12 @@
530
530
  "attributes": [{ "name": "tabindex", "values": [] }],
531
531
  "references": []
532
532
  },
533
+ {
534
+ "name": "qti-gap",
535
+ "description": "\n---\n",
536
+ "attributes": [{ "name": "tabindex", "values": [] }],
537
+ "references": []
538
+ },
533
539
  {
534
540
  "name": "qti-gap-match-interaction",
535
541
  "description": "\n---\n\n\n### **Events:**\n - **qti-interaction-response**",
@@ -550,12 +556,6 @@
550
556
  ],
551
557
  "references": []
552
558
  },
553
- {
554
- "name": "qti-gap",
555
- "description": "\n---\n",
556
- "attributes": [{ "name": "tabindex", "values": [] }],
557
- "references": []
558
- },
559
559
  {
560
560
  "name": "qti-hotspot-choice",
561
561
  "description": "\n---\n\n\n### **Events:**\n ",
@@ -1103,7 +1103,7 @@
1103
1103
  {
1104
1104
  "name": "test-scoring-feedback",
1105
1105
  "description": "\n---\n",
1106
- "attributes": [{ "name": "view", "values": [{ "name": "ViewMode" }] }],
1106
+ "attributes": [{ "name": "view", "values": [{ "name": "View" }] }],
1107
1107
  "references": []
1108
1108
  },
1109
1109
  {
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "engines": {
22
22
  "node": ">=22.0.0"
23
23
  },
24
- "version": "7.14.1",
24
+ "version": "7.14.3",
25
25
  "type": "module",
26
26
  "main": "./dist/index.js",
27
27
  "types": "./dist/index.d.ts",
@@ -74,7 +74,7 @@
74
74
  "build-storybook": "npm run cem && storybook build",
75
75
  "-----------------------scripts--": "-",
76
76
  "build": "run-p cem css tsup",
77
- "storybook:dev": "storybook dev -p 6006",
77
+ "storybook:dev": "storybook dev -p 6006 --no-open",
78
78
  "cem": "cem analyze",
79
79
  "cem:watch": "cem analyze --watch",
80
80
  "css": "postcss src/item.css -d dist -m",
@@ -90,7 +90,7 @@
90
90
  "madge": "madge --circular --extensions ts src",
91
91
  "commitlint": "commitlint --edit",
92
92
  "-----------------------npm--": "-",
93
- "prepare": "husky"
93
+ "prepare": "husky && npm run build"
94
94
  },
95
95
  "peerDependencies": {
96
96
  "@heximal/templates": "^0.1.5",
@@ -120,13 +120,13 @@
120
120
  "@vitest/browser": "^3.2.4",
121
121
  "@vitest/coverage-v8": "^3.2.4",
122
122
  "@vitest/ui": "^3.2.4",
123
- "@wc-toolkit/cem-inheritance": "^1.1.0",
123
+ "@wc-toolkit/cem-inheritance": "^1.2.2",
124
124
  "@wc-toolkit/cem-sorter": "^1.0.1",
125
- "@wc-toolkit/cem-utilities": "^1.3.0",
126
- "@wc-toolkit/changelog": "^1.0.1",
127
- "@wc-toolkit/jsx-types": "^1.2.2",
128
- "@wc-toolkit/storybook-helpers": "^9.0.0",
129
- "@wc-toolkit/type-parser": "^1.1.0",
125
+ "@wc-toolkit/cem-utilities": "^1.5.0",
126
+ "@wc-toolkit/changelog": "^1.0.2",
127
+ "@wc-toolkit/jsx-types": "^1.4.3",
128
+ "@wc-toolkit/storybook-helpers": "^9.0.1",
129
+ "@wc-toolkit/type-parser": "^1.2.0",
130
130
  "autoprefixer": "^10.4.21",
131
131
  "chromatic": "^13.0.0",
132
132
  "custom-element-vs-code-integration": "^1.5.0",
@@ -195,4 +195,4 @@
195
195
  "public"
196
196
  ]
197
197
  }
198
- }
198
+ }