@citolab/qti-components 6.6.1-8 → 6.7.0
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 +83 -10
- package/dist/index.js +69 -69
- package/dist/item.css +8 -4
- package/dist/qti-components/index.d.ts +27 -5
- package/dist/qti-components/index.js +74 -74
- package/package.json +19 -25
- package/dist/chunk-KRFEDZFG.cjs +0 -1
- package/dist/index.cjs +0 -720
- package/dist/qti-components/index.cjs +0 -461
- package/dist/qti-components/index.d.cts +0 -988
- package/dist/qti-transformers/index.cjs +0 -36
- package/dist/qti-transformers/index.d.cts +0 -45
|
@@ -551,6 +551,14 @@
|
|
|
551
551
|
"name": "*",
|
|
552
552
|
"package": "./qti-assessment-item/qti-assessment-item.context"
|
|
553
553
|
}
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"kind": "js",
|
|
557
|
+
"name": "*",
|
|
558
|
+
"declaration": {
|
|
559
|
+
"name": "*",
|
|
560
|
+
"package": "./qti-custom-operator/qti-custom-operator"
|
|
561
|
+
}
|
|
554
562
|
}
|
|
555
563
|
]
|
|
556
564
|
},
|
|
@@ -719,12 +727,25 @@
|
|
|
719
727
|
"kind": "javascript-module",
|
|
720
728
|
"path": "src/lib/qti-components/qti-assessment-item/qti-assessment-item.context.ts",
|
|
721
729
|
"declarations": [
|
|
730
|
+
{
|
|
731
|
+
"kind": "variable",
|
|
732
|
+
"name": "itemContextVariables",
|
|
733
|
+
"default": "[\n {\n identifier: 'completionStatus',\n cardinality: 'single',\n baseType: 'string',\n value: 'unknown',\n type: 'outcome'\n },\n {\n identifier: 'numAttempts',\n cardinality: 'single',\n baseType: 'integer',\n value: '0',\n type: 'response'\n }\n]"
|
|
734
|
+
},
|
|
722
735
|
{
|
|
723
736
|
"kind": "variable",
|
|
724
737
|
"name": "itemContext"
|
|
725
738
|
}
|
|
726
739
|
],
|
|
727
740
|
"exports": [
|
|
741
|
+
{
|
|
742
|
+
"kind": "js",
|
|
743
|
+
"name": "itemContextVariables",
|
|
744
|
+
"declaration": {
|
|
745
|
+
"name": "itemContextVariables",
|
|
746
|
+
"module": "src/lib/qti-components/qti-assessment-item/qti-assessment-item.context.ts"
|
|
747
|
+
}
|
|
748
|
+
},
|
|
728
749
|
{
|
|
729
750
|
"kind": "js",
|
|
730
751
|
"name": "itemContext",
|
|
@@ -815,6 +836,14 @@
|
|
|
815
836
|
"text": "boolean"
|
|
816
837
|
},
|
|
817
838
|
"fieldName": "readonly"
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
"name": "state",
|
|
842
|
+
"type": {
|
|
843
|
+
"text": "| 'item-created' // <-- pk: this is the state when the item is created\n | 'item-connected' // <-- pk: this is the state when the item is connected\n | 'variables-restored' // <-- pk: this is the state when the variables are restored\n | 'first-updated' // <-- pk: this is the state when the first-updated event is fired\n | 'item-connected'"
|
|
844
|
+
},
|
|
845
|
+
"default": "'item-created'",
|
|
846
|
+
"fieldName": "_state"
|
|
818
847
|
}
|
|
819
848
|
],
|
|
820
849
|
"superclass": {
|
|
@@ -880,6 +909,50 @@
|
|
|
880
909
|
}
|
|
881
910
|
]
|
|
882
911
|
},
|
|
912
|
+
{
|
|
913
|
+
"kind": "javascript-module",
|
|
914
|
+
"path": "src/lib/qti-components/qti-custom-operator/qti-custom-operator.ts",
|
|
915
|
+
"declarations": [
|
|
916
|
+
{
|
|
917
|
+
"kind": "class",
|
|
918
|
+
"description": "https://www.imsglobal.org/spec/qti/v3p0/impl#h.fi29q8dubjgw\n<qti-custom-operator class=\"js.org\">\n <qti-base-value base-type=\"string\"><![CDATA[\n console.log(context.variables);\n return 'B'\n document.querySelector('qti-end-attempt-interaction').disabled = true;\n ]]></qti-base-value>\n </qti-custom-operator>\n </qti-set-outcome-value>",
|
|
919
|
+
"name": "QtiCustomOperator",
|
|
920
|
+
"members": [],
|
|
921
|
+
"events": [
|
|
922
|
+
{
|
|
923
|
+
"name": "qti-set-outcome-value",
|
|
924
|
+
"type": {
|
|
925
|
+
"text": "CustomEvent"
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
],
|
|
929
|
+
"superclass": {
|
|
930
|
+
"name": "LitElement",
|
|
931
|
+
"package": "lit"
|
|
932
|
+
},
|
|
933
|
+
"tagName": "qti-custom-operator",
|
|
934
|
+
"customElement": true
|
|
935
|
+
}
|
|
936
|
+
],
|
|
937
|
+
"exports": [
|
|
938
|
+
{
|
|
939
|
+
"kind": "js",
|
|
940
|
+
"name": "QtiCustomOperator",
|
|
941
|
+
"declaration": {
|
|
942
|
+
"name": "QtiCustomOperator",
|
|
943
|
+
"module": "src/lib/qti-components/qti-custom-operator/qti-custom-operator.ts"
|
|
944
|
+
}
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"kind": "custom-element-definition",
|
|
948
|
+
"name": "qti-custom-operator",
|
|
949
|
+
"declaration": {
|
|
950
|
+
"name": "QtiCustomOperator",
|
|
951
|
+
"module": "src/lib/qti-components/qti-custom-operator/qti-custom-operator.ts"
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
]
|
|
955
|
+
},
|
|
883
956
|
{
|
|
884
957
|
"kind": "javascript-module",
|
|
885
958
|
"path": "src/lib/qti-components/qti-feedback/qti-feedback.ts",
|
|
@@ -1770,7 +1843,7 @@
|
|
|
1770
1843
|
{
|
|
1771
1844
|
"kind": "class",
|
|
1772
1845
|
"description": "",
|
|
1773
|
-
"name": "
|
|
1846
|
+
"name": "QtiContentBody",
|
|
1774
1847
|
"members": [],
|
|
1775
1848
|
"superclass": {
|
|
1776
1849
|
"name": "LitElement",
|
|
@@ -1783,9 +1856,9 @@
|
|
|
1783
1856
|
"exports": [
|
|
1784
1857
|
{
|
|
1785
1858
|
"kind": "js",
|
|
1786
|
-
"name": "
|
|
1859
|
+
"name": "QtiContentBody",
|
|
1787
1860
|
"declaration": {
|
|
1788
|
-
"name": "
|
|
1861
|
+
"name": "QtiContentBody",
|
|
1789
1862
|
"module": "src/lib/qti-components/qti-rubric-block/qti-content-body.ts"
|
|
1790
1863
|
}
|
|
1791
1864
|
},
|
|
@@ -1793,7 +1866,7 @@
|
|
|
1793
1866
|
"kind": "custom-element-definition",
|
|
1794
1867
|
"name": "qti-content-body",
|
|
1795
1868
|
"declaration": {
|
|
1796
|
-
"name": "
|
|
1869
|
+
"name": "QtiContentBody",
|
|
1797
1870
|
"module": "src/lib/qti-components/qti-rubric-block/qti-content-body.ts"
|
|
1798
1871
|
}
|
|
1799
1872
|
}
|
|
@@ -1806,7 +1879,7 @@
|
|
|
1806
1879
|
{
|
|
1807
1880
|
"kind": "class",
|
|
1808
1881
|
"description": "",
|
|
1809
|
-
"name": "
|
|
1882
|
+
"name": "QtiRubricBlock",
|
|
1810
1883
|
"members": [],
|
|
1811
1884
|
"attributes": [
|
|
1812
1885
|
{
|
|
@@ -1843,9 +1916,9 @@
|
|
|
1843
1916
|
"exports": [
|
|
1844
1917
|
{
|
|
1845
1918
|
"kind": "js",
|
|
1846
|
-
"name": "
|
|
1919
|
+
"name": "QtiRubricBlock",
|
|
1847
1920
|
"declaration": {
|
|
1848
|
-
"name": "
|
|
1921
|
+
"name": "QtiRubricBlock",
|
|
1849
1922
|
"module": "src/lib/qti-components/qti-rubric-block/qti-rubric-block.ts"
|
|
1850
1923
|
}
|
|
1851
1924
|
},
|
|
@@ -1853,7 +1926,7 @@
|
|
|
1853
1926
|
"kind": "custom-element-definition",
|
|
1854
1927
|
"name": "qti-rubric-block",
|
|
1855
1928
|
"declaration": {
|
|
1856
|
-
"name": "
|
|
1929
|
+
"name": "QtiRubricBlock",
|
|
1857
1930
|
"module": "src/lib/qti-components/qti-rubric-block/qti-rubric-block.ts"
|
|
1858
1931
|
}
|
|
1859
1932
|
}
|
|
@@ -5964,13 +6037,13 @@
|
|
|
5964
6037
|
},
|
|
5965
6038
|
{
|
|
5966
6039
|
"kind": "javascript-module",
|
|
5967
|
-
"path": "src/lib/qti-components/qti-interaction/qti-
|
|
6040
|
+
"path": "src/lib/qti-components/qti-interaction/qti-end-attempt-interaction/__snapshots__/qti-end-attempt-interaction.stories.ts.snap",
|
|
5968
6041
|
"declarations": [],
|
|
5969
6042
|
"exports": []
|
|
5970
6043
|
},
|
|
5971
6044
|
{
|
|
5972
6045
|
"kind": "javascript-module",
|
|
5973
|
-
"path": "src/lib/qti-components/qti-interaction/qti-
|
|
6046
|
+
"path": "src/lib/qti-components/qti-interaction/qti-choice-interaction/__snapshots__/qti-choice-interaction.stories.ts.snap",
|
|
5974
6047
|
"declarations": [],
|
|
5975
6048
|
"exports": []
|
|
5976
6049
|
},
|