@citolab/qti-components 7.5.2 → 7.8.1

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.
@@ -3,8 +3,8 @@ import {
3
3
  ItemShowCorrectResponse,
4
4
  PrintItemVariables,
5
5
  QtiItem
6
- } from "../chunks/chunk-4BDOB6KY.js";
7
- import "../chunks/chunk-LSEB52SP.js";
6
+ } from "../chunks/chunk-4QSZJYSB.js";
7
+ import "../chunks/chunk-PT5ASWGQ.js";
8
8
  import "../chunks/chunk-ELDMXTUQ.js";
9
9
  import "../chunks/chunk-WFUXZ4UT.js";
10
10
  import "../chunks/chunk-4OGJBG35.js";
@@ -23,9 +23,9 @@ import {
23
23
  TestStamp,
24
24
  TestView,
25
25
  TestViewToggle
26
- } from "../chunks/chunk-UVKOJQ52.js";
27
- import "../chunks/chunk-K47QFOQX.js";
28
- import "../chunks/chunk-LSEB52SP.js";
26
+ } from "../chunks/chunk-B7XX75Z3.js";
27
+ import "../chunks/chunk-YD7FVKDP.js";
28
+ import "../chunks/chunk-PT5ASWGQ.js";
29
29
  import "../chunks/chunk-ELDMXTUQ.js";
30
30
  import "../chunks/chunk-WFUXZ4UT.js";
31
31
  import "../chunks/chunk-H6KHXSIO.js";
@@ -1088,7 +1088,7 @@
1088
1088
  },
1089
1089
  {
1090
1090
  "name": "test-stamp",
1091
- "description": "A custom web component that renders a test stamp using the Lit framework.\nThis component is deprecated and will be removed in the future.\n---\n",
1091
+ "description": "A custom web component that renders a test stamp using the Lit framework.\nThis component is deprecated and will be removed in the future.\n---\n\n\n### **Events:**\n - **qti-stamp-context-updated**",
1092
1092
  "attributes": [
1093
1093
  {
1094
1094
  "name": "debug",
package/package.json CHANGED
@@ -19,22 +19,13 @@
19
19
  "license": "GPLv3",
20
20
  "private": false,
21
21
  "engines": {
22
- "node": ">=20.0.0"
22
+ "node": ">=22.0.0"
23
23
  },
24
- "version": "7.5.2",
24
+ "version": "7.8.1",
25
25
  "type": "module",
26
26
  "main": "./dist/index.js",
27
27
  "types": "./dist/index.d.ts",
28
- "sideEffects": [
29
- "./dist/qti-components/*.js",
30
- "./dist/qti-item/components/*.js",
31
- "./dist/qti-test/components/*.js",
32
- "./cdn/*.js",
33
- "./src/**/*.css",
34
- "./src/**/qti-*.ts",
35
- "./src/**/test-*.ts",
36
- "./src/**/item-*.ts"
37
- ],
28
+ "sideEffects": true,
38
29
  "exports": {
39
30
  ".": {
40
31
  "types": "./dist/index.d.ts",
@@ -63,6 +54,7 @@
63
54
  "types": "./dist/qti-transformers/index.d.ts",
64
55
  "import": "./dist/qti-transformers/index.js"
65
56
  },
57
+ "./customElements": "./custom-elements.json",
66
58
  "./react": "./dist/qti-components-jsx.d.ts",
67
59
  "./item.css": "./dist/item.css",
68
60
  "./cdn/*": "./cdn/*",
@@ -78,26 +70,27 @@
78
70
  "watch": "nodemon --watch src --ext ts,css --exec \"run-s tsup cem css && yalc push\"",
79
71
  "-----------------------cmds--": "-",
80
72
  "pre-commit": "run-s lint stylelint madge",
81
- "pre-push": "run-s clean ci build test lint stylelint publint attw",
73
+ "commit-msg": "commitlint --edit",
82
74
  "build-storybook": "npm run cem && storybook build",
83
75
  "-----------------------scripts--": "-",
84
76
  "build": "run-p cem css tsup",
85
77
  "storybook:dev": "storybook dev -p 6006",
86
- "cem": "cem analyze && cp custom-elements.json ./dist",
87
- "cem:watch": "cem analyze --watch && cp custom-elements.json ./dist",
78
+ "cem": "cem analyze",
79
+ "cem:watch": "cem analyze --watch",
88
80
  "css": "postcss src/item.css -d dist -m",
89
81
  "ci": "npm ci",
90
82
  "tsup": "tsup",
91
83
  "publint": "publint",
92
84
  "lint": "eslint src/**/*.ts",
93
- "act ci": "act --container-architecture linux/arm64 -W .github/workflows/ci.yml",
94
- "act release": "act --container-architecture linux/arm64 -W .github/workflows/release.yml",
95
85
  "stylelint": "stylelint \"src/**/*.css\"",
96
86
  "test": "vitest run",
97
87
  "attw": "attw --profile esm-only --pack --exclude-entrypoints ./item.css ./react",
98
88
  "chromatic": "node chromatic-runner.cjs",
99
89
  "clean": "rm -rf dist cdn",
100
- "madge": "madge --circular --extensions ts src"
90
+ "madge": "madge --circular --extensions ts src",
91
+ "commitlint": "commitlint --edit",
92
+ "-----------------------npm--": "-",
93
+ "prepare": "husky"
101
94
  },
102
95
  "peerDependencies": {
103
96
  "@heximal/templates": "^0.1.5",
@@ -178,7 +171,8 @@
178
171
  "typescript-eslint": "^8.34.1",
179
172
  "vite": "^6.3.5",
180
173
  "vite-tsconfig-paths": "^5.1.4",
181
- "vitest": "^3.2.4"
174
+ "vitest": "^3.2.4",
175
+ "yalc": "^1.0.0-pre.53"
182
176
  },
183
177
  "optionalDependencies": {
184
178
  "@rollup/rollup-linux-x64-gnu": "^4.43.0"
@@ -191,4 +185,4 @@
191
185
  "overrides": {
192
186
  "storybook": "$storybook"
193
187
  }
194
- }
188
+ }