@citolab/qti-components 6.9.1-beta.68 → 6.9.1-beta.69
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-elements.json +141 -141
- package/dist/index.global.js +1 -1
- package/dist/index.js +1 -7
- package/dist/index.min.js +26 -26
- package/dist/qti-components/index.cjs +1 -7
- package/dist/qti-components/index.d.cts +2 -2
- package/dist/qti-components/index.d.ts +2 -2
- package/dist/qti-components/index.js +1 -7
- package/dist/qti-components-jsx.d.ts +21 -21
- package/dist/qti-item/index.d.cts +1 -1
- package/dist/qti-item/index.d.ts +1 -1
- package/dist/qti-loader/index.d.cts +1 -1
- package/dist/qti-loader/index.d.ts +1 -1
- package/dist/{qti-simple-choice-C2d4_r3u.d.cts → qti-simple-choice-C7xBKYaS.d.cts} +0 -2
- package/dist/{qti-simple-choice-C2d4_r3u.d.ts → qti-simple-choice-C7xBKYaS.d.ts} +0 -2
- package/dist/qti-transformers/index.d.cts +1 -1
- package/dist/qti-transformers/index.d.ts +1 -1
- package/dist/vscode.html-custom-data.json +19 -19
- package/package.json +31 -29
|
@@ -60,13 +60,6 @@ type BaseProps = {
|
|
|
60
60
|
|
|
61
61
|
type BaseEvents = {};
|
|
62
62
|
|
|
63
|
-
export type QtiAssessmentStimulusRefProps = {
|
|
64
|
-
/** The identifier of the stimulus. */
|
|
65
|
-
identifier?: string;
|
|
66
|
-
/** The href of the stimulus. */
|
|
67
|
-
href?: string;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
63
|
export type ItemPrintVariablesProps = {
|
|
71
64
|
/** */
|
|
72
65
|
itemContext?: ItemContext | undefined;
|
|
@@ -103,6 +96,13 @@ export type QtiAssessmentItemProps = {
|
|
|
103
96
|
"onqti-response-processing"?: (e: CustomEvent<never>) => void;
|
|
104
97
|
};
|
|
105
98
|
|
|
99
|
+
export type QtiAssessmentStimulusRefProps = {
|
|
100
|
+
/** The identifier of the stimulus. */
|
|
101
|
+
identifier?: string;
|
|
102
|
+
/** The href of the stimulus. */
|
|
103
|
+
href?: string;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
106
|
export type QtiCompanionMaterialsInfoProps = {};
|
|
107
107
|
|
|
108
108
|
export type QtiCustomOperatorProps = {
|
|
@@ -345,8 +345,6 @@ export type QtiChoiceInteractionProps = {
|
|
|
345
345
|
};
|
|
346
346
|
|
|
347
347
|
export type QtiCustomInteractionProps = {
|
|
348
|
-
/** */
|
|
349
|
-
"response-identifier"?: string;
|
|
350
348
|
/** */
|
|
351
349
|
data?: string;
|
|
352
350
|
/** */
|
|
@@ -355,6 +353,8 @@ export type QtiCustomInteractionProps = {
|
|
|
355
353
|
"data-base-ref"?: string;
|
|
356
354
|
/** */
|
|
357
355
|
id?: string;
|
|
356
|
+
/** */
|
|
357
|
+
"response-identifier"?: string;
|
|
358
358
|
/** disabled should be exposed to the attributes and accessible as property */
|
|
359
359
|
disabled?: boolean;
|
|
360
360
|
/** readonly should be exposed to the attributes and accessible as property */
|
|
@@ -712,12 +712,12 @@ export type QtiOrderInteractionProps = {
|
|
|
712
712
|
};
|
|
713
713
|
|
|
714
714
|
export type QtiPortableCustomInteractionProps = {
|
|
715
|
-
/** */
|
|
716
|
-
"response-identifier"?: string;
|
|
717
715
|
/** */
|
|
718
716
|
module?: string;
|
|
719
717
|
/** */
|
|
720
718
|
"custom-interaction-type-identifier"?: string;
|
|
719
|
+
/** */
|
|
720
|
+
"response-identifier"?: string;
|
|
721
721
|
/** disabled should be exposed to the attributes and accessible as property */
|
|
722
722
|
disabled?: boolean;
|
|
723
723
|
/** readonly should be exposed to the attributes and accessible as property */
|
|
@@ -1104,16 +1104,6 @@ export type QtiItemProps = {
|
|
|
1104
1104
|
};
|
|
1105
1105
|
|
|
1106
1106
|
export type CustomElements = {
|
|
1107
|
-
/**
|
|
1108
|
-
* Represents a custom element for referencing an assessment stimulus.
|
|
1109
|
-
* ---
|
|
1110
|
-
*
|
|
1111
|
-
*
|
|
1112
|
-
* ### **Methods:**
|
|
1113
|
-
* - **updateStimulusRef(stimulusRef: _Element_)** - Loads and appends the stimulus to the specified element.
|
|
1114
|
-
*/
|
|
1115
|
-
"qti-assessment-stimulus-ref": Partial<QtiAssessmentStimulusRefProps & BaseProps & BaseEvents>;
|
|
1116
|
-
|
|
1117
1107
|
/**
|
|
1118
1108
|
*
|
|
1119
1109
|
* ---
|
|
@@ -1137,6 +1127,16 @@ export type CustomElements = {
|
|
|
1137
1127
|
*/
|
|
1138
1128
|
"qti-assessment-item": Partial<QtiAssessmentItemProps & BaseProps & BaseEvents>;
|
|
1139
1129
|
|
|
1130
|
+
/**
|
|
1131
|
+
* Represents a custom element for referencing an assessment stimulus.
|
|
1132
|
+
* ---
|
|
1133
|
+
*
|
|
1134
|
+
*
|
|
1135
|
+
* ### **Methods:**
|
|
1136
|
+
* - **updateStimulusRef(stimulusRef: _Element_)** - Loads and appends the stimulus to the specified element.
|
|
1137
|
+
*/
|
|
1138
|
+
"qti-assessment-stimulus-ref": Partial<QtiAssessmentStimulusRefProps & BaseProps & BaseEvents>;
|
|
1139
|
+
|
|
1140
1140
|
/**
|
|
1141
1141
|
*
|
|
1142
1142
|
* ---
|
package/dist/qti-item/index.d.ts
CHANGED
|
@@ -644,7 +644,6 @@ declare class QtiPortableCustomInteraction extends Interaction {
|
|
|
644
644
|
private intervalId;
|
|
645
645
|
private rawResponse;
|
|
646
646
|
private pci;
|
|
647
|
-
responseIdentifier: string;
|
|
648
647
|
module: string;
|
|
649
648
|
customInteractionTypeIdentifier: string;
|
|
650
649
|
private _errorMessage;
|
|
@@ -691,7 +690,6 @@ declare global {
|
|
|
691
690
|
declare class QtiCustomInteraction extends Interaction {
|
|
692
691
|
private rawResponse;
|
|
693
692
|
constructor();
|
|
694
|
-
responseIdentifier: string;
|
|
695
693
|
data: string;
|
|
696
694
|
baseItemUrl: string;
|
|
697
695
|
baseRefUrl: string;
|
|
@@ -644,7 +644,6 @@ declare class QtiPortableCustomInteraction extends Interaction {
|
|
|
644
644
|
private intervalId;
|
|
645
645
|
private rawResponse;
|
|
646
646
|
private pci;
|
|
647
|
-
responseIdentifier: string;
|
|
648
647
|
module: string;
|
|
649
648
|
customInteractionTypeIdentifier: string;
|
|
650
649
|
private _errorMessage;
|
|
@@ -691,7 +690,6 @@ declare global {
|
|
|
691
690
|
declare class QtiCustomInteraction extends Interaction {
|
|
692
691
|
private rawResponse;
|
|
693
692
|
constructor();
|
|
694
|
-
responseIdentifier: string;
|
|
695
693
|
data: string;
|
|
696
694
|
baseItemUrl: string;
|
|
697
695
|
baseRefUrl: string;
|
|
@@ -33,7 +33,7 @@ declare const qtiTransformItem: () => transformItemApi;
|
|
|
33
33
|
|
|
34
34
|
declare const qtiTransformManifest: () => {
|
|
35
35
|
load: (uri: string) => Promise<{
|
|
36
|
-
load(uri: any): Promise
|
|
36
|
+
load(uri: any): Promise</*elided*/ any>;
|
|
37
37
|
parse(xmlString: string): void;
|
|
38
38
|
assessmentTest(): {
|
|
39
39
|
href: string;
|
|
@@ -33,7 +33,7 @@ declare const qtiTransformItem: () => transformItemApi;
|
|
|
33
33
|
|
|
34
34
|
declare const qtiTransformManifest: () => {
|
|
35
35
|
load: (uri: string) => Promise<{
|
|
36
|
-
load(uri: any): Promise
|
|
36
|
+
load(uri: any): Promise</*elided*/ any>;
|
|
37
37
|
parse(xmlString: string): void;
|
|
38
38
|
assessmentTest(): {
|
|
39
39
|
href: string;
|
|
@@ -2,23 +2,6 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
|
|
3
3
|
"version": 1.1,
|
|
4
4
|
"tags": [
|
|
5
|
-
{
|
|
6
|
-
"name": "qti-assessment-stimulus-ref",
|
|
7
|
-
"description": "Represents a custom element for referencing an assessment stimulus.\n---\n\n\n### **Methods:**\n - **updateStimulusRef(stimulusRef: _Element_)** - Loads and appends the stimulus to the specified element.",
|
|
8
|
-
"attributes": [
|
|
9
|
-
{
|
|
10
|
-
"name": "identifier",
|
|
11
|
-
"description": "The identifier of the stimulus.",
|
|
12
|
-
"values": []
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "href",
|
|
16
|
-
"description": "The href of the stimulus.",
|
|
17
|
-
"values": []
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"references": []
|
|
21
|
-
},
|
|
22
5
|
{
|
|
23
6
|
"name": "item-print-variables",
|
|
24
7
|
"description": "\n---\n",
|
|
@@ -44,6 +27,23 @@
|
|
|
44
27
|
],
|
|
45
28
|
"references": []
|
|
46
29
|
},
|
|
30
|
+
{
|
|
31
|
+
"name": "qti-assessment-stimulus-ref",
|
|
32
|
+
"description": "Represents a custom element for referencing an assessment stimulus.\n---\n\n\n### **Methods:**\n - **updateStimulusRef(stimulusRef: _Element_)** - Loads and appends the stimulus to the specified element.",
|
|
33
|
+
"attributes": [
|
|
34
|
+
{
|
|
35
|
+
"name": "identifier",
|
|
36
|
+
"description": "The identifier of the stimulus.",
|
|
37
|
+
"values": []
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "href",
|
|
41
|
+
"description": "The href of the stimulus.",
|
|
42
|
+
"values": []
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"references": []
|
|
46
|
+
},
|
|
47
47
|
{
|
|
48
48
|
"name": "qti-companion-materials-info",
|
|
49
49
|
"description": "\n---\n",
|
|
@@ -292,11 +292,11 @@
|
|
|
292
292
|
"name": "qti-custom-interaction",
|
|
293
293
|
"description": "\n---\n\n\n### **Events:**\n - **qti-register-interaction**\n- **qti-interaction-response**",
|
|
294
294
|
"attributes": [
|
|
295
|
-
{ "name": "response-identifier", "values": [] },
|
|
296
295
|
{ "name": "data", "values": [] },
|
|
297
296
|
{ "name": "data-base-item", "values": [] },
|
|
298
297
|
{ "name": "data-base-ref", "values": [] },
|
|
299
298
|
{ "name": "id", "values": [] },
|
|
299
|
+
{ "name": "response-identifier", "values": [] },
|
|
300
300
|
{
|
|
301
301
|
"name": "disabled",
|
|
302
302
|
"description": "disabled should be exposed to the attributes and accessible as property",
|
|
@@ -566,9 +566,9 @@
|
|
|
566
566
|
"name": "qti-portable-custom-interaction",
|
|
567
567
|
"description": "\n---\n\n\n### **Events:**\n - **qti-register-interaction**\n- **qti-interaction-response**",
|
|
568
568
|
"attributes": [
|
|
569
|
-
{ "name": "response-identifier", "values": [] },
|
|
570
569
|
{ "name": "module", "values": [] },
|
|
571
570
|
{ "name": "custom-interaction-type-identifier", "values": [] },
|
|
571
|
+
{ "name": "response-identifier", "values": [] },
|
|
572
572
|
{
|
|
573
573
|
"name": "disabled",
|
|
574
574
|
"description": "disabled should be exposed to the attributes and accessible as property",
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=20.0.0"
|
|
23
23
|
},
|
|
24
|
-
"version": "6.9.1-beta.
|
|
24
|
+
"version": "6.9.1-beta.69",
|
|
25
25
|
"type": "module",
|
|
26
26
|
"exports": {
|
|
27
27
|
"./qti-components": {
|
|
@@ -127,51 +127,52 @@
|
|
|
127
127
|
"lit-html": "^3.2.1"
|
|
128
128
|
},
|
|
129
129
|
"devDependencies": {
|
|
130
|
-
"
|
|
131
|
-
"@arethetypeswrong/cli": "^0.16.4",
|
|
130
|
+
"@arethetypeswrong/cli": "^0.17.0",
|
|
132
131
|
"@chromatic-com/storybook": "^3.2.2",
|
|
133
132
|
"@custom-elements-manifest/analyzer": "^0.10.3",
|
|
134
|
-
"@eslint/js": "^9.
|
|
133
|
+
"@eslint/js": "^9.15.0",
|
|
135
134
|
"@lit/context": "^1.1.3",
|
|
136
135
|
"@ljcl/storybook-addon-cssprops": "^4.0.0",
|
|
137
|
-
"storybook": "^8.4.
|
|
138
|
-
"@storybook/addon-
|
|
139
|
-
"@storybook/addon-
|
|
140
|
-
"@storybook/addon-
|
|
141
|
-
"@storybook/
|
|
142
|
-
"@storybook/
|
|
143
|
-
"@storybook/
|
|
144
|
-
"@storybook/
|
|
145
|
-
"@storybook/web-components": "^8.4.
|
|
146
|
-
"@
|
|
136
|
+
"@storybook/addon-a11y": "^8.4.5",
|
|
137
|
+
"@storybook/addon-essentials": "^8.4.5",
|
|
138
|
+
"@storybook/addon-interactions": "^8.4.5",
|
|
139
|
+
"@storybook/addon-links": "^8.4.5",
|
|
140
|
+
"@storybook/blocks": "^8.4.5",
|
|
141
|
+
"@storybook/preview-api": "^8.4.5",
|
|
142
|
+
"@storybook/test": "^8.4.5",
|
|
143
|
+
"@storybook/web-components": "^8.4.5",
|
|
144
|
+
"@storybook/web-components-vite": "^8.4.5",
|
|
145
|
+
"@swc/core": "^1.9.3",
|
|
147
146
|
"@testing-library/dom": "^10.4.0",
|
|
148
147
|
"@types/dom-view-transitions": "^1.0.5",
|
|
149
|
-
"@types/node": "^22.
|
|
150
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
151
|
-
"@typescript-eslint/parser": "^8.
|
|
152
|
-
"@vitest/browser": "^2.1.
|
|
148
|
+
"@types/node": "^22.9.3",
|
|
149
|
+
"@typescript-eslint/eslint-plugin": "^8.15.0",
|
|
150
|
+
"@typescript-eslint/parser": "^8.15.0",
|
|
151
|
+
"@vitest/browser": "^2.1.5",
|
|
153
152
|
"autoprefixer": "^10.4.20",
|
|
154
|
-
"chromatic": "^11.
|
|
153
|
+
"chromatic": "^11.18.1",
|
|
155
154
|
"custom-element-eslint-rule-generator": "^1.0.1",
|
|
156
155
|
"custom-element-jsx-integration": "^1.5.3",
|
|
157
156
|
"custom-element-react-wrappers": "^1.6.8",
|
|
158
157
|
"custom-element-vs-code-integration": "^1.4.1",
|
|
159
158
|
"dotenv": "^16.4.5",
|
|
160
|
-
"eslint": "^9.
|
|
159
|
+
"eslint": "^9.15.0",
|
|
161
160
|
"eslint-import-resolver-typescript": "^3.6.3",
|
|
162
161
|
"eslint-plugin-import": "^2.31.0",
|
|
163
162
|
"eslint-plugin-lit": "^1.15.0",
|
|
164
163
|
"eslint-plugin-lit-a11y": "^4.1.4",
|
|
165
164
|
"eslint-plugin-react": "^7.37.2",
|
|
166
165
|
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
|
|
167
|
-
"eslint-plugin-storybook": "^0.11.
|
|
166
|
+
"eslint-plugin-storybook": "^0.11.1",
|
|
168
167
|
"eslint-plugin-wc": "^2.2.0",
|
|
169
|
-
"
|
|
168
|
+
"fast-xml-parser": "^4.5.0",
|
|
169
|
+
"globals": "^15.12.0",
|
|
170
|
+
"husky": "^9.1.7",
|
|
170
171
|
"lit": "^3.2.1",
|
|
171
172
|
"nodemon": "^3.1.7",
|
|
172
173
|
"np": "^10.1.0",
|
|
173
174
|
"path-browserify": "^1.0.1",
|
|
174
|
-
"playwright": "^1.
|
|
175
|
+
"playwright": "^1.49.0",
|
|
175
176
|
"postcss": "^8.4.49",
|
|
176
177
|
"postcss-class-apply": "^4.0.1",
|
|
177
178
|
"postcss-cli": "^11.0.0",
|
|
@@ -179,20 +180,21 @@
|
|
|
179
180
|
"postcss-nesting": "^13.0.1",
|
|
180
181
|
"prettier": "3.3.3",
|
|
181
182
|
"remark-gfm": "^4.0.0",
|
|
183
|
+
"storybook": "^8.4.5",
|
|
182
184
|
"stylelint": "^16.10.0",
|
|
183
185
|
"stylelint-config-standard": "^36.0.1",
|
|
184
186
|
"stylelint-prettier": "^5.0.2",
|
|
185
187
|
"tsup": "^8.3.5",
|
|
186
188
|
"tsx": "^4.19.2",
|
|
187
|
-
"typescript": "^5.
|
|
188
|
-
"typescript-eslint": "^8.
|
|
189
|
-
"vite": "^5.4.
|
|
190
|
-
"vite-tsconfig-paths": "^5.
|
|
191
|
-
"vitest": "^2.1.
|
|
189
|
+
"typescript": "^5.7.2",
|
|
190
|
+
"typescript-eslint": "^8.15.0",
|
|
191
|
+
"vite": "^5.4.11",
|
|
192
|
+
"vite-tsconfig-paths": "^5.1.3",
|
|
193
|
+
"vitest": "^2.1.5",
|
|
192
194
|
"wireit": "^0.14.9"
|
|
193
195
|
},
|
|
194
196
|
"optionalDependencies": {
|
|
195
|
-
"@rollup/rollup-linux-x64-gnu": "^4.
|
|
197
|
+
"@rollup/rollup-linux-x64-gnu": "^4.27.4"
|
|
196
198
|
},
|
|
197
199
|
"customElements": "custom-elements.json",
|
|
198
200
|
"bugs": {
|