@pocketprep/ui-kit 3.4.52 → 3.4.53

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.
@@ -1,6 +1,7 @@
1
1
  export type Ref = HTMLElement | null
2
2
 
3
3
  export type TChoiceKey = `${'a' | 'd'}${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}`
4
+ export type TMatrixChoiceKey = `${'a' | 'd'}${1 | 2 | 3 }_${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12}`
4
5
 
5
6
  export type TQuizMode = 'qotd' | 'quick10' | 'timed' | 'weakest' | 'missed' | 'custom'
6
7
 
@@ -20,6 +21,11 @@ export type TChoiceScores = Partial<Record<TChoiceKey, number>> & {
20
21
  answeredCorrectly: number
21
22
  }
22
23
 
24
+ export type TMatrixChoiceScores = {
25
+ totalAnswered: number
26
+ answeredCorrectly: number
27
+ }
28
+
23
29
  export type TQuestionPassageAndImageTitle = 'Passage + Image' | 'Image' | 'Passage'
24
30
 
25
31
  export type TNamesRow = {
@@ -38,4 +44,10 @@ export type TViewNames = {
38
44
  name: string
39
45
  isFlaggedByStudent: boolean
40
46
  }[]
47
+ }
48
+
49
+ export interface IRadioOptions {
50
+ choices: TMatrixChoiceKey[]
51
+ value: TMatrixChoiceKey | null
52
+ label?: string
41
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.4.52",
3
+ "version": "3.4.53",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {
@@ -78,7 +78,7 @@
78
78
  "vue-router": "4.2.5"
79
79
  },
80
80
  "devDependencies": {
81
- "@pocketprep/types": "1.11.1",
81
+ "@pocketprep/types": "1.14.10",
82
82
  "@tsconfig/node16": "1.0.3",
83
83
  "@types/node": "16.18.25",
84
84
  "@vitejs/plugin-vue": "4.6.2",