@citolab/qti-components 6.6.1-14 → 6.6.1-18

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.
@@ -96,65 +96,6 @@
96
96
  }
97
97
  ]
98
98
  },
99
- {
100
- "kind": "javascript-module",
101
- "path": "src/lib/qti-transformers/index.ts",
102
- "declarations": [],
103
- "exports": [
104
- {
105
- "kind": "js",
106
- "name": "*",
107
- "declaration": {
108
- "name": "*",
109
- "package": "./qti-transformers"
110
- }
111
- }
112
- ]
113
- },
114
- {
115
- "kind": "javascript-module",
116
- "path": "src/lib/qti-transformers/qti-transformers.ts",
117
- "declarations": [
118
- {
119
- "kind": "function",
120
- "name": "qtiTransformItem",
121
- "description": "This module exports a function that returns an object with methods to load, parse, transform and serialize QTI XML items.",
122
- "return": {
123
- "type": {
124
- "text": ""
125
- }
126
- }
127
- },
128
- {
129
- "kind": "function",
130
- "name": "qtiTransformTest",
131
- "description": "Returns an object with methods to load, parse and transform QTI tests.",
132
- "return": {
133
- "type": {
134
- "text": ""
135
- }
136
- }
137
- }
138
- ],
139
- "exports": [
140
- {
141
- "kind": "js",
142
- "name": "qtiTransformItem",
143
- "declaration": {
144
- "name": "qtiTransformItem",
145
- "module": "src/lib/qti-transformers/qti-transformers.ts"
146
- }
147
- },
148
- {
149
- "kind": "js",
150
- "name": "qtiTransformTest",
151
- "declaration": {
152
- "name": "qtiTransformTest",
153
- "module": "src/lib/qti-transformers/qti-transformers.ts"
154
- }
155
- }
156
- ]
157
- },
158
99
  {
159
100
  "kind": "javascript-module",
160
101
  "path": "src/lib/qti-components/index.ts",
@@ -562,6 +503,65 @@
562
503
  }
563
504
  ]
564
505
  },
506
+ {
507
+ "kind": "javascript-module",
508
+ "path": "src/lib/qti-transformers/index.ts",
509
+ "declarations": [],
510
+ "exports": [
511
+ {
512
+ "kind": "js",
513
+ "name": "*",
514
+ "declaration": {
515
+ "name": "*",
516
+ "package": "./qti-transformers"
517
+ }
518
+ }
519
+ ]
520
+ },
521
+ {
522
+ "kind": "javascript-module",
523
+ "path": "src/lib/qti-transformers/qti-transformers.ts",
524
+ "declarations": [
525
+ {
526
+ "kind": "function",
527
+ "name": "qtiTransformItem",
528
+ "description": "This module exports a function that returns an object with methods to load, parse, transform and serialize QTI XML items.",
529
+ "return": {
530
+ "type": {
531
+ "text": ""
532
+ }
533
+ }
534
+ },
535
+ {
536
+ "kind": "function",
537
+ "name": "qtiTransformTest",
538
+ "description": "Returns an object with methods to load, parse and transform QTI tests.",
539
+ "return": {
540
+ "type": {
541
+ "text": ""
542
+ }
543
+ }
544
+ }
545
+ ],
546
+ "exports": [
547
+ {
548
+ "kind": "js",
549
+ "name": "qtiTransformItem",
550
+ "declaration": {
551
+ "name": "qtiTransformItem",
552
+ "module": "src/lib/qti-transformers/qti-transformers.ts"
553
+ }
554
+ },
555
+ {
556
+ "kind": "js",
557
+ "name": "qtiTransformTest",
558
+ "declaration": {
559
+ "name": "qtiTransformTest",
560
+ "module": "src/lib/qti-transformers/qti-transformers.ts"
561
+ }
562
+ }
563
+ ]
564
+ },
565
565
  {
566
566
  "kind": "javascript-module",
567
567
  "path": "src/lib/qti-components/internal/event-types.ts",
@@ -727,12 +727,25 @@
727
727
  "kind": "javascript-module",
728
728
  "path": "src/lib/qti-components/qti-assessment-item/qti-assessment-item.context.ts",
729
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
+ },
730
735
  {
731
736
  "kind": "variable",
732
737
  "name": "itemContext"
733
738
  }
734
739
  ],
735
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
+ },
736
749
  {
737
750
  "kind": "js",
738
751
  "name": "itemContext",
@@ -823,6 +836,14 @@
823
836
  "text": "boolean"
824
837
  },
825
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"
826
847
  }
827
848
  ],
828
849
  "superclass": {
@@ -990,53 +1011,6 @@
990
1011
  }
991
1012
  ]
992
1013
  },
993
- {
994
- "kind": "javascript-module",
995
- "path": "src/lib/qti-components/qti-item-body/qti-item-body.ts",
996
- "declarations": [
997
- {
998
- "kind": "class",
999
- "description": "",
1000
- "name": "QtiItemBody",
1001
- "slots": [
1002
- {
1003
- "description": "item body content.",
1004
- "name": ""
1005
- },
1006
- {
1007
- "description": "the qti rubric block is placed above the item",
1008
- "name": "qti-rubric-block"
1009
- }
1010
- ],
1011
- "members": [],
1012
- "superclass": {
1013
- "name": "LitElement",
1014
- "package": "lit"
1015
- },
1016
- "summary": "The qti-item-body node contains the text, graphics, media objects and interactions that describe the item's content and information about how it is structured.",
1017
- "tagName": "qti-item-body",
1018
- "customElement": true
1019
- }
1020
- ],
1021
- "exports": [
1022
- {
1023
- "kind": "js",
1024
- "name": "default",
1025
- "declaration": {
1026
- "name": "QtiItemBody",
1027
- "module": "src/lib/qti-components/qti-item-body/qti-item-body.ts"
1028
- }
1029
- },
1030
- {
1031
- "kind": "custom-element-definition",
1032
- "name": "qti-item-body",
1033
- "declaration": {
1034
- "name": "QtiItemBody",
1035
- "module": "src/lib/qti-components/qti-item-body/qti-item-body.ts"
1036
- }
1037
- }
1038
- ]
1039
- },
1040
1014
  {
1041
1015
  "kind": "javascript-module",
1042
1016
  "path": "src/lib/qti-components/qti-interaction/qti-associable-hotspot.ts",
@@ -1700,6 +1674,53 @@
1700
1674
  }
1701
1675
  ]
1702
1676
  },
1677
+ {
1678
+ "kind": "javascript-module",
1679
+ "path": "src/lib/qti-components/qti-item-body/qti-item-body.ts",
1680
+ "declarations": [
1681
+ {
1682
+ "kind": "class",
1683
+ "description": "",
1684
+ "name": "QtiItemBody",
1685
+ "slots": [
1686
+ {
1687
+ "description": "item body content.",
1688
+ "name": ""
1689
+ },
1690
+ {
1691
+ "description": "the qti rubric block is placed above the item",
1692
+ "name": "qti-rubric-block"
1693
+ }
1694
+ ],
1695
+ "members": [],
1696
+ "superclass": {
1697
+ "name": "LitElement",
1698
+ "package": "lit"
1699
+ },
1700
+ "summary": "The qti-item-body node contains the text, graphics, media objects and interactions that describe the item's content and information about how it is structured.",
1701
+ "tagName": "qti-item-body",
1702
+ "customElement": true
1703
+ }
1704
+ ],
1705
+ "exports": [
1706
+ {
1707
+ "kind": "js",
1708
+ "name": "default",
1709
+ "declaration": {
1710
+ "name": "QtiItemBody",
1711
+ "module": "src/lib/qti-components/qti-item-body/qti-item-body.ts"
1712
+ }
1713
+ },
1714
+ {
1715
+ "kind": "custom-element-definition",
1716
+ "name": "qti-item-body",
1717
+ "declaration": {
1718
+ "name": "QtiItemBody",
1719
+ "module": "src/lib/qti-components/qti-item-body/qti-item-body.ts"
1720
+ }
1721
+ }
1722
+ ]
1723
+ },
1703
1724
  {
1704
1725
  "kind": "javascript-module",
1705
1726
  "path": "src/lib/qti-components/qti-prompt/qti-prompt.ts",
@@ -0,0 +1,35 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
+ var __spreadValues = (a, b) => {
10
+ for (var prop in b || (b = {}))
11
+ if (__hasOwnProp.call(b, prop))
12
+ __defNormalProp(a, prop, b[prop]);
13
+ if (__getOwnPropSymbols)
14
+ for (var prop of __getOwnPropSymbols(b)) {
15
+ if (__propIsEnum.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ }
18
+ return a;
19
+ };
20
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
+ var __decorateClass = (decorators, target, key, kind) => {
22
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
23
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
24
+ if (decorator = decorators[i])
25
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
26
+ if (kind && result)
27
+ __defProp(target, key, result);
28
+ return result;
29
+ };
30
+
31
+ export {
32
+ __spreadValues,
33
+ __spreadProps,
34
+ __decorateClass
35
+ };