@citolab/qti-components 6.9.1-beta.81 → 7.0.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.
- package/cdn/index.global.js +277 -0
- package/cdn/index.min.cjs +4489 -0
- package/cdn/index.min.js +4489 -0
- package/dist/custom-element-eslint-rules.js +25 -19
- package/dist/item.css +172 -5
- package/dist/qti-components/index.cjs +660 -465
- package/dist/qti-components/index.cjs.map +1 -0
- package/dist/qti-components/index.d.cts +4 -4
- package/dist/qti-components/index.d.ts +4 -4
- package/dist/qti-components/index.js +615 -423
- package/dist/qti-components/index.js.map +1 -0
- package/dist/qti-components-jsx.d.ts +398 -64
- package/dist/qti-item/index.cjs +2 -3
- package/dist/qti-item/index.cjs.map +1 -0
- package/dist/qti-item/index.d.cts +1 -1
- package/dist/qti-item/index.d.ts +1 -1
- package/dist/qti-item/index.js +2 -3
- package/dist/qti-item/index.js.map +1 -0
- package/dist/qti-loader/index.cjs +5 -6
- package/dist/qti-loader/index.cjs.map +1 -0
- package/dist/qti-loader/index.d.cts +1 -1
- package/dist/qti-loader/index.d.ts +1 -1
- package/dist/qti-loader/index.js +5 -6
- package/dist/qti-loader/index.js.map +1 -0
- package/dist/{qti-simple-choice-DC5DJota.d.cts → qti-simple-choice-CynLWb8d.d.cts} +74 -26
- package/dist/{qti-simple-choice-DC5DJota.d.ts → qti-simple-choice-CynLWb8d.d.ts} +74 -26
- package/dist/qti-test/index.cjs +4632 -0
- package/dist/qti-test/index.cjs.map +1 -0
- package/dist/qti-test/index.d.cts +304 -0
- package/dist/qti-test/index.d.ts +304 -0
- package/dist/qti-test/index.js +4599 -0
- package/dist/qti-test/index.js.map +1 -0
- package/dist/qti-transformers/index.cjs +5 -6
- package/dist/qti-transformers/index.cjs.map +1 -0
- package/dist/qti-transformers/index.js +5 -6
- package/dist/qti-transformers/index.js.map +1 -0
- package/dist/vscode.css-custom-data.json +28 -0
- package/dist/vscode.html-custom-data.json +179 -230
- package/package.json +96 -67
- package/dist/custom-elements.json +0 -24168
- package/dist/index.global.js +0 -226
- package/dist/index.js +0 -7860
- package/dist/index.min.js +0 -952
- /package/{LICENSE → LICENSE.md} +0 -0
- /package/{readme.md → README.md} +0 -0
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=20.0.0"
|
|
23
23
|
},
|
|
24
|
-
"version": "
|
|
24
|
+
"version": "7.0.1",
|
|
25
25
|
"type": "module",
|
|
26
26
|
"exports": {
|
|
27
27
|
"./qti-components": {
|
|
@@ -36,14 +36,18 @@
|
|
|
36
36
|
"import": "./dist/qti-item/index.js",
|
|
37
37
|
"require": "./dist/qti-item/index.cjs"
|
|
38
38
|
},
|
|
39
|
+
"./qti-test": {
|
|
40
|
+
"import": "./dist/qti-test/index.js",
|
|
41
|
+
"require": "./dist/qti-test/index.cjs"
|
|
42
|
+
},
|
|
39
43
|
"./qti-loader": {
|
|
40
44
|
"import": "./dist/qti-loader/index.js",
|
|
41
45
|
"require": "./dist/qti-loader/index.cjs"
|
|
42
46
|
},
|
|
43
47
|
"./item.css": "./dist/item.css",
|
|
44
|
-
"./index.js": "./dist/index.js",
|
|
45
|
-
"./index.min.js": "./dist/index.min.js",
|
|
46
|
-
"./index.global.js": "./dist/index.global.js"
|
|
48
|
+
"./cdn/index.js": "./dist/cdn/index.js",
|
|
49
|
+
"./cdn/index.min.js": "./dist/cdn/index.min.js",
|
|
50
|
+
"./cdn/index.global.js": "./dist/cdn/index.global.js"
|
|
47
51
|
},
|
|
48
52
|
"types": "./dist/qti-components/index.d.ts",
|
|
49
53
|
"typesVersions": {
|
|
@@ -57,6 +61,9 @@
|
|
|
57
61
|
"qti-item": [
|
|
58
62
|
"./dist/qti-item/index.d.ts"
|
|
59
63
|
],
|
|
64
|
+
"qti-test": [
|
|
65
|
+
"./dist/qti-test/index.d.ts"
|
|
66
|
+
],
|
|
60
67
|
"qti-loader": [
|
|
61
68
|
"./dist/qti-loader/index.d.ts"
|
|
62
69
|
]
|
|
@@ -64,45 +71,31 @@
|
|
|
64
71
|
},
|
|
65
72
|
"files": [
|
|
66
73
|
"dist",
|
|
67
|
-
"
|
|
68
|
-
"./dist/item.css"
|
|
74
|
+
"cdn"
|
|
69
75
|
],
|
|
70
76
|
"scripts": {
|
|
71
|
-
"
|
|
72
|
-
"
|
|
77
|
+
"storybook": "wireit",
|
|
78
|
+
"watch:build": "npm run build --watch",
|
|
79
|
+
"npm:publish": "np",
|
|
80
|
+
"---": "-",
|
|
73
81
|
"build": "wireit",
|
|
74
|
-
"
|
|
82
|
+
"test": "wireit",
|
|
75
83
|
"attw": "wireit",
|
|
76
84
|
"lint": "wireit",
|
|
77
85
|
"cem": "wireit",
|
|
78
|
-
"
|
|
79
|
-
"
|
|
86
|
+
"act": "act",
|
|
87
|
+
"vite": "vite",
|
|
80
88
|
"stylelint": "stylelint \"src/**/*.css\"",
|
|
81
|
-
"storybook": "wireit",
|
|
82
89
|
"build-storybook": "storybook build",
|
|
83
90
|
"storybook:test": "test-storybook",
|
|
84
|
-
"storybook
|
|
91
|
+
"storybook:docs": "wireit",
|
|
92
|
+
"storybook:docs:build": "wireit",
|
|
85
93
|
"chromatic": "node chromatic-runner.cjs",
|
|
86
94
|
"----hooks----": "-",
|
|
87
95
|
"prepublishOnly": "npm run build",
|
|
88
96
|
"prepare": "husky"
|
|
89
97
|
},
|
|
90
98
|
"wireit": {
|
|
91
|
-
"test": {
|
|
92
|
-
"command": "vitest run",
|
|
93
|
-
"dependencies": [
|
|
94
|
-
"build"
|
|
95
|
-
]
|
|
96
|
-
},
|
|
97
|
-
"watch": {
|
|
98
|
-
"env": {
|
|
99
|
-
"NODE_ENV": "development"
|
|
100
|
-
},
|
|
101
|
-
"command": "tsup",
|
|
102
|
-
"output": [
|
|
103
|
-
"dist"
|
|
104
|
-
]
|
|
105
|
-
},
|
|
106
99
|
"storybook": {
|
|
107
100
|
"command": "storybook dev -p 6006",
|
|
108
101
|
"dependencies": [
|
|
@@ -113,21 +106,50 @@
|
|
|
113
106
|
"env": {
|
|
114
107
|
"NODE_ENV": "production"
|
|
115
108
|
},
|
|
116
|
-
"command": "tsup
|
|
109
|
+
"command": "tsup",
|
|
117
110
|
"dependencies": [
|
|
118
111
|
"cem",
|
|
119
112
|
"css"
|
|
120
113
|
],
|
|
121
|
-
"
|
|
114
|
+
"files": [
|
|
115
|
+
"src/**/*.{ts,css}",
|
|
116
|
+
"!src/**/*.{test,spec,stories}.ts"
|
|
117
|
+
],
|
|
118
|
+
"output": [
|
|
119
|
+
"dist/**/*",
|
|
120
|
+
"cdn/**/*",
|
|
121
|
+
"!dist/item.css",
|
|
122
|
+
"!dist/vscode.*",
|
|
123
|
+
"!dist/qti-components-jsx.d.ts",
|
|
124
|
+
"!dist/custom-element-eslint-rules.js"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
"test": {
|
|
128
|
+
"command": "vitest run",
|
|
129
|
+
"dependencies": [
|
|
130
|
+
"build"
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
"storybook:docs": {
|
|
134
|
+
"command": "storybook dev --docs -c .storybook-docs",
|
|
135
|
+
"dependencies": [
|
|
136
|
+
"cem:watch"
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
"storybook:docs:build": {
|
|
140
|
+
"command": "storybook build --docs -c .storybook-docs --output-dir docs",
|
|
141
|
+
"dependencies": [
|
|
142
|
+
"cem"
|
|
143
|
+
]
|
|
122
144
|
},
|
|
123
145
|
"lint": {
|
|
124
146
|
"command": "eslint --color --cache --cache-location .eslintcache src/lib/**/*.ts"
|
|
125
147
|
},
|
|
126
148
|
"cem": {
|
|
127
|
-
"command": "cem analyze
|
|
149
|
+
"command": "cem analyze"
|
|
128
150
|
},
|
|
129
151
|
"cem:watch": {
|
|
130
|
-
"command": "cem analyze --
|
|
152
|
+
"command": "cem analyze --watch",
|
|
131
153
|
"service": {
|
|
132
154
|
"readyWhen": {
|
|
133
155
|
"lineMatches": "Created new manifest."
|
|
@@ -138,7 +160,7 @@
|
|
|
138
160
|
"command": "postcss src/item.css -d dist -m"
|
|
139
161
|
},
|
|
140
162
|
"attw": {
|
|
141
|
-
"command": "attw --pack --exclude-entrypoints ./item.css ./index.js ./index.global.js ./index.min.js",
|
|
163
|
+
"command": "attw --pack --exclude-entrypoints ./item.css ./cdn/index.js ./cdn/index.global.js ./cdn/index.min.js",
|
|
142
164
|
"dependencies": [
|
|
143
165
|
"build"
|
|
144
166
|
]
|
|
@@ -146,43 +168,50 @@
|
|
|
146
168
|
},
|
|
147
169
|
"peerDependencies": {
|
|
148
170
|
"@lit/context": "^1.1.2",
|
|
149
|
-
"lit": "^3.2.
|
|
150
|
-
"
|
|
171
|
+
"lit": "^3.2.1",
|
|
172
|
+
"stampino": "^0.8.3"
|
|
173
|
+
},
|
|
174
|
+
"dependencies": {
|
|
175
|
+
"@lit/context": "^1.1.2",
|
|
176
|
+
"lit": "^3.2.1",
|
|
177
|
+
"stampino": "^0.8.3"
|
|
151
178
|
},
|
|
152
179
|
"devDependencies": {
|
|
153
|
-
"@arethetypeswrong/cli": "^0.17.
|
|
180
|
+
"@arethetypeswrong/cli": "^0.17.1",
|
|
154
181
|
"@chromatic-com/storybook": "^3.2.2",
|
|
182
|
+
"@commitlint/cli": "^19.6.0",
|
|
183
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
155
184
|
"@custom-elements-manifest/analyzer": "^0.10.3",
|
|
156
|
-
"@eslint/js": "^9.
|
|
185
|
+
"@eslint/js": "^9.16.0",
|
|
157
186
|
"@lit/context": "^1.1.3",
|
|
158
|
-
"@
|
|
159
|
-
"@storybook/addon-
|
|
160
|
-
"@storybook/addon-
|
|
161
|
-
"@storybook/addon-
|
|
162
|
-
"@storybook/addon-
|
|
163
|
-
"@storybook/
|
|
164
|
-
"@storybook/
|
|
165
|
-
"@storybook/
|
|
166
|
-
"@storybook/test": "^
|
|
167
|
-
"@storybook/web-components": "^8.4.
|
|
168
|
-
"@storybook/web-components-vite": "^8.4.
|
|
169
|
-
"@swc/core": "^1.
|
|
187
|
+
"@storybook/addon-a11y": "^8.4.7",
|
|
188
|
+
"@storybook/addon-essentials": "^8.4.7",
|
|
189
|
+
"@storybook/addon-interactions": "^8.4.7",
|
|
190
|
+
"@storybook/addon-links": "^8.4.7",
|
|
191
|
+
"@storybook/addon-storysource": "^8.4.7",
|
|
192
|
+
"@storybook/blocks": "^8.4.7",
|
|
193
|
+
"@storybook/preview-api": "^8.4.7",
|
|
194
|
+
"@storybook/test": "^8.4.7",
|
|
195
|
+
"@storybook/test-runner": "^0.20.1",
|
|
196
|
+
"@storybook/web-components": "^8.4.7",
|
|
197
|
+
"@storybook/web-components-vite": "^8.4.7",
|
|
198
|
+
"@swc/core": "^1.10.1",
|
|
170
199
|
"@testing-library/dom": "^10.4.0",
|
|
171
200
|
"@types/dom-view-transitions": "^1.0.5",
|
|
172
|
-
"@types/node": "^22.
|
|
173
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
174
|
-
"@typescript-eslint/parser": "^8.
|
|
201
|
+
"@types/node": "^22.10.1",
|
|
202
|
+
"@typescript-eslint/eslint-plugin": "^8.17.0",
|
|
203
|
+
"@typescript-eslint/parser": "^8.17.0",
|
|
175
204
|
"@vitest/browser": "^2.1.8",
|
|
176
205
|
"autoprefixer": "^10.4.20",
|
|
177
206
|
"cem-plugin-expanded-types": "^1.3.3",
|
|
178
|
-
"chromatic": "^11.
|
|
207
|
+
"chromatic": "^11.20.0",
|
|
179
208
|
"custom-element-eslint-rule-generator": "^1.0.1",
|
|
180
|
-
"custom-element-jsx-integration": "^1.5.
|
|
209
|
+
"custom-element-jsx-integration": "^1.5.4",
|
|
181
210
|
"custom-element-react-wrappers": "^1.6.8",
|
|
182
211
|
"custom-element-vs-code-integration": "^1.4.1",
|
|
183
|
-
"dotenv": "^16.4.
|
|
184
|
-
"eslint": "^9.
|
|
185
|
-
"eslint-import-resolver-typescript": "^3.
|
|
212
|
+
"dotenv": "^16.4.7",
|
|
213
|
+
"eslint": "^9.16.0",
|
|
214
|
+
"eslint-import-resolver-typescript": "^3.7.0",
|
|
186
215
|
"eslint-plugin-import": "^2.31.0",
|
|
187
216
|
"eslint-plugin-lit": "^1.15.0",
|
|
188
217
|
"eslint-plugin-lit-a11y": "^4.1.4",
|
|
@@ -191,36 +220,36 @@
|
|
|
191
220
|
"eslint-plugin-storybook": "^0.11.1",
|
|
192
221
|
"eslint-plugin-wc": "^2.2.0",
|
|
193
222
|
"fast-xml-parser": "^4.5.0",
|
|
194
|
-
"globals": "^15.
|
|
223
|
+
"globals": "^15.13.0",
|
|
195
224
|
"husky": "^9.1.7",
|
|
196
|
-
"lit": "^3.2.1",
|
|
197
225
|
"np": "^10.1.0",
|
|
226
|
+
"npm": "^10.9.2",
|
|
198
227
|
"path-browserify": "^1.0.1",
|
|
228
|
+
"pkg-pr-new": "^0.0.37",
|
|
199
229
|
"playwright": "^1.49.0",
|
|
200
230
|
"postcss": "^8.4.49",
|
|
201
231
|
"postcss-class-apply": "^4.0.1",
|
|
202
232
|
"postcss-cli": "^11.0.0",
|
|
203
233
|
"postcss-import": "^16.1.0",
|
|
204
234
|
"postcss-nesting": "^13.0.1",
|
|
205
|
-
"prettier": "3.
|
|
235
|
+
"prettier": "3.4.2",
|
|
206
236
|
"remark-gfm": "^4.0.0",
|
|
207
237
|
"shadow-dom-testing-library": "^1.11.3",
|
|
208
|
-
"
|
|
209
|
-
"
|
|
210
|
-
"stylelint": "^16.10.0",
|
|
238
|
+
"storybook": "^8.4.7",
|
|
239
|
+
"stylelint": "^16.11.0",
|
|
211
240
|
"stylelint-config-standard": "^36.0.1",
|
|
212
241
|
"stylelint-prettier": "^5.0.2",
|
|
213
242
|
"tsup": "^8.3.5",
|
|
214
243
|
"typescript": "^5.7.2",
|
|
215
|
-
"typescript-eslint": "^8.
|
|
216
|
-
"vite": "^6.0.
|
|
217
|
-
"vite-tsconfig-paths": "^5.1.
|
|
244
|
+
"typescript-eslint": "^8.18.0",
|
|
245
|
+
"vite": "^6.0.3",
|
|
246
|
+
"vite-tsconfig-paths": "^5.1.4",
|
|
218
247
|
"vitest": "^2.1.8",
|
|
219
248
|
"wc-storybook-helpers": "^2.0.4",
|
|
220
249
|
"wireit": "^0.14.9"
|
|
221
250
|
},
|
|
222
251
|
"optionalDependencies": {
|
|
223
|
-
"@rollup/rollup-linux-x64-gnu": "^4.
|
|
252
|
+
"@rollup/rollup-linux-x64-gnu": "^4.28.1"
|
|
224
253
|
},
|
|
225
254
|
"customElements": "custom-elements.json",
|
|
226
255
|
"bugs": {
|