@citolab/qti-components 6.9.1-beta.7 → 6.9.1-beta.71
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/dist/custom-element-eslint-rules.js +331 -0
- package/dist/custom-elements.json +19218 -2945
- package/dist/index.global.js +226 -0
- package/dist/index.js +7228 -192
- package/dist/index.min.js +952 -0
- package/dist/item.css +2503 -669
- package/dist/qti-components/index.cjs +6500 -0
- package/dist/qti-components/index.d.cts +150 -0
- package/dist/qti-components/index.d.ts +9 -1174
- package/dist/qti-components/index.js +6009 -183
- package/dist/qti-components-jsx.d.ts +1870 -0
- package/dist/qti-item/index.cjs +90 -0
- package/dist/qti-item/index.d.cts +24 -0
- package/dist/qti-item/index.d.ts +24 -0
- package/dist/qti-item/index.js +66 -0
- package/dist/qti-loader/index.cjs +333 -0
- package/dist/qti-loader/index.d.cts +20 -0
- package/dist/qti-loader/index.d.ts +20 -0
- package/dist/qti-loader/index.js +306 -0
- package/dist/qti-simple-choice-C7xBKYaS.d.cts +1135 -0
- package/dist/qti-simple-choice-C7xBKYaS.d.ts +1135 -0
- package/dist/qti-transformers/index.cjs +317 -0
- package/dist/qti-transformers/index.d.cts +75 -0
- package/dist/qti-transformers/index.d.ts +25 -120
- package/dist/qti-transformers/index.js +289 -2
- package/dist/vscode.css-custom-data.json +44 -0
- package/dist/vscode.html-custom-data.json +971 -0
- package/package.json +122 -60
- package/dist/chunk-H4VLZ2F7.js +0 -24
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import customElement from "eslint-plugin-custom-element";
|
|
2
|
+
import html from "@html-eslint/eslint-plugin";
|
|
3
|
+
import htmlParser from "@html-eslint/parser";
|
|
4
|
+
|
|
5
|
+
export const rules = {
|
|
6
|
+
"custom-element/required-attrs": ["error"],
|
|
7
|
+
|
|
8
|
+
"custom-element/no-deprecated-attrs": ["warn"],
|
|
9
|
+
|
|
10
|
+
"custom-element/constrained-attrs": ["error"],
|
|
11
|
+
|
|
12
|
+
"custom-element/no-deprecated-tags": ["warn"],
|
|
13
|
+
|
|
14
|
+
"custom-element/no-boolean-attr-values": [
|
|
15
|
+
"error",
|
|
16
|
+
{
|
|
17
|
+
tag: "qti-assessment-item",
|
|
18
|
+
attr: "disabled",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
tag: "qti-assessment-item",
|
|
22
|
+
attr: "readonly",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
tag: "qti-gap-text",
|
|
26
|
+
attr: "aria-disabled",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
tag: "qti-gap-text",
|
|
30
|
+
attr: "aria-readonly",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
tag: "qti-hotspot-choice",
|
|
34
|
+
attr: "aria-disabled",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
tag: "qti-hotspot-choice",
|
|
38
|
+
attr: "aria-readonly",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
tag: "qti-hottext",
|
|
42
|
+
attr: "aria-disabled",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
tag: "qti-hottext",
|
|
46
|
+
attr: "aria-readonly",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
tag: "qti-simple-associable-choice",
|
|
50
|
+
attr: "fixed",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
tag: "qti-simple-associable-choice",
|
|
54
|
+
attr: "aria-disabled",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
tag: "qti-simple-associable-choice",
|
|
58
|
+
attr: "aria-readonly",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
tag: "qti-simple-choice",
|
|
62
|
+
attr: "aria-disabled",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
tag: "qti-simple-choice",
|
|
66
|
+
attr: "aria-readonly",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
tag: "qti-associate-interaction",
|
|
70
|
+
attr: "disabled",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
tag: "qti-associate-interaction",
|
|
74
|
+
attr: "readonly",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
tag: "qti-choice-interaction",
|
|
78
|
+
attr: "shuffle",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
tag: "qti-choice-interaction",
|
|
82
|
+
attr: "disabled",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
tag: "qti-choice-interaction",
|
|
86
|
+
attr: "readonly",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
tag: "qti-custom-interaction",
|
|
90
|
+
attr: "disabled",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
tag: "qti-custom-interaction",
|
|
94
|
+
attr: "readonly",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
tag: "qti-end-attempt-interaction",
|
|
98
|
+
attr: "disabled",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
tag: "qti-end-attempt-interaction",
|
|
102
|
+
attr: "readonly",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
tag: "qti-extended-text-interaction",
|
|
106
|
+
attr: "disabled",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
tag: "qti-extended-text-interaction",
|
|
110
|
+
attr: "readonly",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
tag: "qti-gap-match-interaction",
|
|
114
|
+
attr: "disabled",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
tag: "qti-gap-match-interaction",
|
|
118
|
+
attr: "readonly",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
tag: "qti-graphic-associate-interaction",
|
|
122
|
+
attr: "disabled",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
tag: "qti-graphic-associate-interaction",
|
|
126
|
+
attr: "readonly",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
tag: "qti-graphic-gap-match-interaction",
|
|
130
|
+
attr: "disabled",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
tag: "qti-graphic-gap-match-interaction",
|
|
134
|
+
attr: "readonly",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
tag: "qti-graphic-order-interaction",
|
|
138
|
+
attr: "disabled",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
tag: "qti-graphic-order-interaction",
|
|
142
|
+
attr: "readonly",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
tag: "qti-hotspot-interaction",
|
|
146
|
+
attr: "disabled",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
tag: "qti-hotspot-interaction",
|
|
150
|
+
attr: "readonly",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
tag: "qti-hottext-interaction",
|
|
154
|
+
attr: "disabled",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
tag: "qti-hottext-interaction",
|
|
158
|
+
attr: "readonly",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
tag: "qti-inline-choice-interaction",
|
|
162
|
+
attr: "disabled",
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
tag: "qti-inline-choice-interaction",
|
|
166
|
+
attr: "readonly",
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
tag: "qti-match-interaction",
|
|
170
|
+
attr: "disabled",
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
tag: "qti-match-interaction",
|
|
174
|
+
attr: "readonly",
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
tag: "qti-media-interaction",
|
|
178
|
+
attr: "disabled",
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
tag: "qti-media-interaction",
|
|
182
|
+
attr: "readonly",
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
tag: "qti-order-interaction",
|
|
186
|
+
attr: "shuffle",
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
tag: "qti-order-interaction",
|
|
190
|
+
attr: "disabled",
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
tag: "qti-order-interaction",
|
|
194
|
+
attr: "readonly",
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
tag: "qti-portable-custom-interaction",
|
|
198
|
+
attr: "disabled",
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
tag: "qti-portable-custom-interaction",
|
|
202
|
+
attr: "readonly",
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
tag: "qti-select-point-interaction",
|
|
206
|
+
attr: "disabled",
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
tag: "qti-select-point-interaction",
|
|
210
|
+
attr: "readonly",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
tag: "qti-slider-interaction",
|
|
214
|
+
attr: "step-label",
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
tag: "qti-slider-interaction",
|
|
218
|
+
attr: "reverse",
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
tag: "qti-slider-interaction",
|
|
222
|
+
attr: "disabled",
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
tag: "qti-slider-interaction",
|
|
226
|
+
attr: "readonly",
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
tag: "qti-text-entry-interaction",
|
|
230
|
+
attr: "disabled",
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
tag: "qti-text-entry-interaction",
|
|
234
|
+
attr: "readonly",
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
tag: "test-element",
|
|
238
|
+
attr: "shuffle",
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
tag: "test-element",
|
|
242
|
+
attr: "disabled",
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
tag: "test-element",
|
|
246
|
+
attr: "readonly",
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
tag: "undefined",
|
|
250
|
+
attr: "disabled",
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
tag: "undefined",
|
|
254
|
+
attr: "readonly",
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
tag: "test-element",
|
|
258
|
+
attr: "shuffle",
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
tag: "test-element",
|
|
262
|
+
attr: "disabled",
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
tag: "test-element",
|
|
266
|
+
attr: "readonly",
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
tag: "test-element",
|
|
270
|
+
attr: "shuffle",
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
tag: "test-element",
|
|
274
|
+
attr: "disabled",
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
tag: "test-element",
|
|
278
|
+
attr: "readonly",
|
|
279
|
+
},
|
|
280
|
+
],
|
|
281
|
+
|
|
282
|
+
"@html-eslint/no-duplicate-attrs": "off",
|
|
283
|
+
"@html-eslint/no-duplicate-id": "off",
|
|
284
|
+
"@html-eslint/no-inline-styles": "off",
|
|
285
|
+
"@html-eslint/no-obsolete-tags": "off",
|
|
286
|
+
"@html-eslint/no-restricted-attr-values": "off",
|
|
287
|
+
"@html-eslint/no-restricted-attrs": "off",
|
|
288
|
+
"@html-eslint/no-script-style-type": "off",
|
|
289
|
+
"@html-eslint/no-target-blank": "off",
|
|
290
|
+
"@html-eslint/require-attrs": "off",
|
|
291
|
+
"@html-eslint/require-button-type": "off",
|
|
292
|
+
"@html-eslint/require-closing-tags": "off",
|
|
293
|
+
"@html-eslint/require-doctype": "off",
|
|
294
|
+
"@html-eslint/require-li-container": "off",
|
|
295
|
+
"@html-eslint/require-meta-charset": "off",
|
|
296
|
+
"@html-eslint/no-multiple-h1": "off",
|
|
297
|
+
"@html-eslint/require-lang": "off",
|
|
298
|
+
"@html-eslint/require-meta-description": "off",
|
|
299
|
+
"@html-eslint/require-open-graph-protocol": "off",
|
|
300
|
+
"@html-eslint/require-title": "off",
|
|
301
|
+
"@html-eslint/no-abstract-roles": "off",
|
|
302
|
+
"@html-eslint/no-accesskey-attrs": "off",
|
|
303
|
+
"@html-eslint/no-aria-hidden-body": "off",
|
|
304
|
+
"@html-eslint/no-non-scalable-viewport": "off",
|
|
305
|
+
"@html-eslint/no-positive-tabindex": "off",
|
|
306
|
+
"@html-eslint/no-skip-heading-levels": "off",
|
|
307
|
+
"@html-eslint/require-frame-title": "off",
|
|
308
|
+
"@html-eslint/require-img-alt": "off",
|
|
309
|
+
"@html-eslint/require-meta-viewport": "off",
|
|
310
|
+
"@html-eslint/element-newline": "off",
|
|
311
|
+
"@html-eslint/id-naming-convention": "off",
|
|
312
|
+
"@html-eslint/indent": "off",
|
|
313
|
+
"@html-eslint/lowercase": "off",
|
|
314
|
+
"@html-eslint/no-extra-spacing-attrs": "off",
|
|
315
|
+
"@html-eslint/no-multiple-empty-lines": "off",
|
|
316
|
+
"@html-eslint/no-trailing-spaces": "off",
|
|
317
|
+
"@html-eslint/quotes": "off",
|
|
318
|
+
"@html-eslint/sort-attrs": "off",
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
export default {
|
|
322
|
+
rules,
|
|
323
|
+
recommendedConfig: {
|
|
324
|
+
files: ["**/*.html"],
|
|
325
|
+
languageOptions: {
|
|
326
|
+
parser: htmlParser,
|
|
327
|
+
},
|
|
328
|
+
plugins: { html, "custom-element": customElement },
|
|
329
|
+
rules,
|
|
330
|
+
},
|
|
331
|
+
};
|