@citolab/qti-components 6.9.1-beta.67 → 6.9.1-beta.68
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 +92 -92
- package/dist/qti-components-jsx.d.ts +17 -17
- package/dist/vscode.html-custom-data.json +17 -17
- package/package.json +7 -8
|
@@ -578,6 +578,98 @@
|
|
|
578
578
|
"declarations": [],
|
|
579
579
|
"exports": []
|
|
580
580
|
},
|
|
581
|
+
{
|
|
582
|
+
"kind": "javascript-module",
|
|
583
|
+
"path": "src/lib/qti-components/qti-assessment-stimulus-ref/qti-assessment-stimulus-ref.ts",
|
|
584
|
+
"declarations": [
|
|
585
|
+
{
|
|
586
|
+
"kind": "class",
|
|
587
|
+
"description": "Represents a custom element for referencing an assessment stimulus.",
|
|
588
|
+
"name": "QtiAssessmentStimulusRef",
|
|
589
|
+
"members": [
|
|
590
|
+
{
|
|
591
|
+
"kind": "field",
|
|
592
|
+
"name": "identifier",
|
|
593
|
+
"type": {
|
|
594
|
+
"text": "string"
|
|
595
|
+
},
|
|
596
|
+
"default": "''",
|
|
597
|
+
"description": "The identifier of the stimulus.",
|
|
598
|
+
"attribute": "identifier"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"kind": "field",
|
|
602
|
+
"name": "href",
|
|
603
|
+
"type": {
|
|
604
|
+
"text": "string"
|
|
605
|
+
},
|
|
606
|
+
"default": "''",
|
|
607
|
+
"description": "The href of the stimulus.",
|
|
608
|
+
"attribute": "href"
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
"kind": "method",
|
|
612
|
+
"name": "updateStimulusRef",
|
|
613
|
+
"privacy": "public",
|
|
614
|
+
"parameters": [
|
|
615
|
+
{
|
|
616
|
+
"name": "stimulusRef",
|
|
617
|
+
"type": {
|
|
618
|
+
"text": "Element"
|
|
619
|
+
},
|
|
620
|
+
"description": "The element to which the stimulus will be appended."
|
|
621
|
+
}
|
|
622
|
+
],
|
|
623
|
+
"description": "Loads and appends the stimulus to the specified element."
|
|
624
|
+
}
|
|
625
|
+
],
|
|
626
|
+
"attributes": [
|
|
627
|
+
{
|
|
628
|
+
"name": "identifier",
|
|
629
|
+
"type": {
|
|
630
|
+
"text": "string"
|
|
631
|
+
},
|
|
632
|
+
"default": "''",
|
|
633
|
+
"description": "The identifier of the stimulus.",
|
|
634
|
+
"fieldName": "identifier"
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"name": "href",
|
|
638
|
+
"type": {
|
|
639
|
+
"text": "string"
|
|
640
|
+
},
|
|
641
|
+
"default": "''",
|
|
642
|
+
"description": "The href of the stimulus.",
|
|
643
|
+
"fieldName": "href"
|
|
644
|
+
}
|
|
645
|
+
],
|
|
646
|
+
"superclass": {
|
|
647
|
+
"name": "LitElement",
|
|
648
|
+
"package": "lit"
|
|
649
|
+
},
|
|
650
|
+
"tagName": "qti-assessment-stimulus-ref",
|
|
651
|
+
"customElement": true
|
|
652
|
+
}
|
|
653
|
+
],
|
|
654
|
+
"exports": [
|
|
655
|
+
{
|
|
656
|
+
"kind": "js",
|
|
657
|
+
"name": "QtiAssessmentStimulusRef",
|
|
658
|
+
"declaration": {
|
|
659
|
+
"name": "QtiAssessmentStimulusRef",
|
|
660
|
+
"module": "src/lib/qti-components/qti-assessment-stimulus-ref/qti-assessment-stimulus-ref.ts"
|
|
661
|
+
}
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
"kind": "custom-element-definition",
|
|
665
|
+
"name": "qti-assessment-stimulus-ref",
|
|
666
|
+
"declaration": {
|
|
667
|
+
"name": "QtiAssessmentStimulusRef",
|
|
668
|
+
"module": "src/lib/qti-components/qti-assessment-stimulus-ref/qti-assessment-stimulus-ref.ts"
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
]
|
|
672
|
+
},
|
|
581
673
|
{
|
|
582
674
|
"kind": "javascript-module",
|
|
583
675
|
"path": "src/lib/qti-components/qti-assessment-item/item-print-variables.ts",
|
|
@@ -1041,98 +1133,6 @@
|
|
|
1041
1133
|
}
|
|
1042
1134
|
]
|
|
1043
1135
|
},
|
|
1044
|
-
{
|
|
1045
|
-
"kind": "javascript-module",
|
|
1046
|
-
"path": "src/lib/qti-components/qti-assessment-stimulus-ref/qti-assessment-stimulus-ref.ts",
|
|
1047
|
-
"declarations": [
|
|
1048
|
-
{
|
|
1049
|
-
"kind": "class",
|
|
1050
|
-
"description": "Represents a custom element for referencing an assessment stimulus.",
|
|
1051
|
-
"name": "QtiAssessmentStimulusRef",
|
|
1052
|
-
"members": [
|
|
1053
|
-
{
|
|
1054
|
-
"kind": "field",
|
|
1055
|
-
"name": "identifier",
|
|
1056
|
-
"type": {
|
|
1057
|
-
"text": "string"
|
|
1058
|
-
},
|
|
1059
|
-
"default": "''",
|
|
1060
|
-
"description": "The identifier of the stimulus.",
|
|
1061
|
-
"attribute": "identifier"
|
|
1062
|
-
},
|
|
1063
|
-
{
|
|
1064
|
-
"kind": "field",
|
|
1065
|
-
"name": "href",
|
|
1066
|
-
"type": {
|
|
1067
|
-
"text": "string"
|
|
1068
|
-
},
|
|
1069
|
-
"default": "''",
|
|
1070
|
-
"description": "The href of the stimulus.",
|
|
1071
|
-
"attribute": "href"
|
|
1072
|
-
},
|
|
1073
|
-
{
|
|
1074
|
-
"kind": "method",
|
|
1075
|
-
"name": "updateStimulusRef",
|
|
1076
|
-
"privacy": "public",
|
|
1077
|
-
"parameters": [
|
|
1078
|
-
{
|
|
1079
|
-
"name": "stimulusRef",
|
|
1080
|
-
"type": {
|
|
1081
|
-
"text": "Element"
|
|
1082
|
-
},
|
|
1083
|
-
"description": "The element to which the stimulus will be appended."
|
|
1084
|
-
}
|
|
1085
|
-
],
|
|
1086
|
-
"description": "Loads and appends the stimulus to the specified element."
|
|
1087
|
-
}
|
|
1088
|
-
],
|
|
1089
|
-
"attributes": [
|
|
1090
|
-
{
|
|
1091
|
-
"name": "identifier",
|
|
1092
|
-
"type": {
|
|
1093
|
-
"text": "string"
|
|
1094
|
-
},
|
|
1095
|
-
"default": "''",
|
|
1096
|
-
"description": "The identifier of the stimulus.",
|
|
1097
|
-
"fieldName": "identifier"
|
|
1098
|
-
},
|
|
1099
|
-
{
|
|
1100
|
-
"name": "href",
|
|
1101
|
-
"type": {
|
|
1102
|
-
"text": "string"
|
|
1103
|
-
},
|
|
1104
|
-
"default": "''",
|
|
1105
|
-
"description": "The href of the stimulus.",
|
|
1106
|
-
"fieldName": "href"
|
|
1107
|
-
}
|
|
1108
|
-
],
|
|
1109
|
-
"superclass": {
|
|
1110
|
-
"name": "LitElement",
|
|
1111
|
-
"package": "lit"
|
|
1112
|
-
},
|
|
1113
|
-
"tagName": "qti-assessment-stimulus-ref",
|
|
1114
|
-
"customElement": true
|
|
1115
|
-
}
|
|
1116
|
-
],
|
|
1117
|
-
"exports": [
|
|
1118
|
-
{
|
|
1119
|
-
"kind": "js",
|
|
1120
|
-
"name": "QtiAssessmentStimulusRef",
|
|
1121
|
-
"declaration": {
|
|
1122
|
-
"name": "QtiAssessmentStimulusRef",
|
|
1123
|
-
"module": "src/lib/qti-components/qti-assessment-stimulus-ref/qti-assessment-stimulus-ref.ts"
|
|
1124
|
-
}
|
|
1125
|
-
},
|
|
1126
|
-
{
|
|
1127
|
-
"kind": "custom-element-definition",
|
|
1128
|
-
"name": "qti-assessment-stimulus-ref",
|
|
1129
|
-
"declaration": {
|
|
1130
|
-
"name": "QtiAssessmentStimulusRef",
|
|
1131
|
-
"module": "src/lib/qti-components/qti-assessment-stimulus-ref/qti-assessment-stimulus-ref.ts"
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
]
|
|
1135
|
-
},
|
|
1136
1136
|
{
|
|
1137
1137
|
"kind": "javascript-module",
|
|
1138
1138
|
"path": "src/lib/qti-components/qti-companion-materials-info/qti-companion-materials-info.ts",
|
|
@@ -60,6 +60,13 @@ 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
|
+
|
|
63
70
|
export type ItemPrintVariablesProps = {
|
|
64
71
|
/** */
|
|
65
72
|
itemContext?: ItemContext | undefined;
|
|
@@ -96,13 +103,6 @@ export type QtiAssessmentItemProps = {
|
|
|
96
103
|
"onqti-response-processing"?: (e: CustomEvent<never>) => void;
|
|
97
104
|
};
|
|
98
105
|
|
|
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 = {
|
|
@@ -1104,6 +1104,16 @@ 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
|
+
|
|
1107
1117
|
/**
|
|
1108
1118
|
*
|
|
1109
1119
|
* ---
|
|
@@ -1127,16 +1137,6 @@ export type CustomElements = {
|
|
|
1127
1137
|
*/
|
|
1128
1138
|
"qti-assessment-item": Partial<QtiAssessmentItemProps & BaseProps & BaseEvents>;
|
|
1129
1139
|
|
|
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
|
* ---
|
|
@@ -2,6 +2,23 @@
|
|
|
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
|
+
},
|
|
5
22
|
{
|
|
6
23
|
"name": "item-print-variables",
|
|
7
24
|
"description": "\n---\n",
|
|
@@ -27,23 +44,6 @@
|
|
|
27
44
|
],
|
|
28
45
|
"references": []
|
|
29
46
|
},
|
|
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",
|
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.68",
|
|
25
25
|
"type": "module",
|
|
26
26
|
"exports": {
|
|
27
27
|
"./qti-components": {
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"command": "cem analyze --litelement --outdir \"dist\""
|
|
113
113
|
},
|
|
114
114
|
"css": {
|
|
115
|
-
"command": "
|
|
115
|
+
"command": "postcss src/item.css -d dist -m"
|
|
116
116
|
},
|
|
117
117
|
"attw": {
|
|
118
118
|
"command": "attw --pack --exclude-entrypoints ./item.css ./index.js ./index.global.js ./index.min.js",
|
|
@@ -127,12 +127,14 @@
|
|
|
127
127
|
"lit-html": "^3.2.1"
|
|
128
128
|
},
|
|
129
129
|
"devDependencies": {
|
|
130
|
+
"husky": "^9.1.7",
|
|
130
131
|
"@arethetypeswrong/cli": "^0.16.4",
|
|
131
132
|
"@chromatic-com/storybook": "^3.2.2",
|
|
132
133
|
"@custom-elements-manifest/analyzer": "^0.10.3",
|
|
133
134
|
"@eslint/js": "^9.13.0",
|
|
134
135
|
"@lit/context": "^1.1.3",
|
|
135
136
|
"@ljcl/storybook-addon-cssprops": "^4.0.0",
|
|
137
|
+
"storybook": "^8.4.2",
|
|
136
138
|
"@storybook/addon-a11y": "^8.4.2",
|
|
137
139
|
"@storybook/addon-essentials": "^8.4.2",
|
|
138
140
|
"@storybook/addon-interactions": "^8.4.2",
|
|
@@ -140,8 +142,6 @@
|
|
|
140
142
|
"@storybook/blocks": "^8.4.2",
|
|
141
143
|
"@storybook/preview-api": "^8.4.2",
|
|
142
144
|
"@storybook/test": "^8.4.2",
|
|
143
|
-
"@storybook/test-runner": "^0.19.1",
|
|
144
|
-
"@storybook/testing-library": "^0.2.2",
|
|
145
145
|
"@storybook/web-components": "^8.4.2",
|
|
146
146
|
"@storybook/web-components-vite": "^8.4.2",
|
|
147
147
|
"@testing-library/dom": "^10.4.0",
|
|
@@ -167,19 +167,18 @@
|
|
|
167
167
|
"eslint-plugin-storybook": "^0.11.0",
|
|
168
168
|
"eslint-plugin-wc": "^2.2.0",
|
|
169
169
|
"globals": "^15.11.0",
|
|
170
|
-
"husky": "^9.1.7",
|
|
171
170
|
"lit": "^3.2.1",
|
|
172
171
|
"nodemon": "^3.1.7",
|
|
173
|
-
"np": "^10.0
|
|
172
|
+
"np": "^10.1.0",
|
|
174
173
|
"path-browserify": "^1.0.1",
|
|
175
174
|
"playwright": "^1.48.2",
|
|
176
|
-
"postcss": "^8.4.
|
|
175
|
+
"postcss": "^8.4.49",
|
|
177
176
|
"postcss-class-apply": "^4.0.1",
|
|
177
|
+
"postcss-cli": "^11.0.0",
|
|
178
178
|
"postcss-import": "^16.1.0",
|
|
179
179
|
"postcss-nesting": "^13.0.1",
|
|
180
180
|
"prettier": "3.3.3",
|
|
181
181
|
"remark-gfm": "^4.0.0",
|
|
182
|
-
"storybook": "^8.4.2",
|
|
183
182
|
"stylelint": "^16.10.0",
|
|
184
183
|
"stylelint-config-standard": "^36.0.1",
|
|
185
184
|
"stylelint-prettier": "^5.0.2",
|