@pocketprep/ui-kit 3.9.3 → 3.9.4

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.
@@ -20,7 +20,7 @@
20
20
  Question of the Day
21
21
  </h2>
22
22
  <h2
23
- v-else
23
+ v-else-if="quizLength && questionNumber"
24
24
  v-dark="isDarkMode"
25
25
  class="uikit-question-context__text"
26
26
  :aria-label="`Question ${
@@ -28,9 +28,9 @@ export const breakpointsWithElKey = Symbol('breakpointsWithEl') as InjectionKey<
28
28
  }
29
29
  containerEl: HTMLElement | null
30
30
  }>>
31
- export const quizLengthKey = Symbol('quizLength') as InjectionKey<Ref<number>>
31
+ export const quizLengthKey = Symbol('quizLength') as InjectionKey<Ref<number | undefined>>
32
32
  export const quizModeKey = Symbol('quizMode') as InjectionKey<Ref<TQuizMode>>
33
- export const questionNumberKey = Symbol('questionNumber') as InjectionKey<Ref<number>>
33
+ export const questionNumberKey = Symbol('questionNumber') as InjectionKey<Ref<number | undefined>>
34
34
  export const isDarkModeKey = Symbol('isDarkMode') as InjectionKey<Ref<boolean>>
35
35
  export const isCorrectKey = Symbol('isCorrect') as InjectionKey<ComputedRef<boolean>>
36
36
  export const contextIconTypeKey = Symbol('contextIconType') as InjectionKey<ComputedRef<TContextIcon>>
@@ -486,8 +486,8 @@ import * as InjectionKeys from './Question/injectionSymbols'
486
486
 
487
487
  const props = withDefaults(defineProps<{
488
488
  question: Study.Class.QuestionJSON
489
- questionNumber: number
490
- quizLength: number
489
+ questionNumber?: number | undefined
490
+ quizLength?: number | undefined
491
491
  imageUrlPrefix?: string
492
492
  quizMode?: TQuizMode
493
493
  initialShowAnswers?: boolean
@@ -514,6 +514,8 @@ const props = withDefaults(defineProps<{
514
514
  isTeachGroupReview?: boolean
515
515
  keywordDefinitions?: { keyword: string; definition: string }[]
516
516
  }>(), {
517
+ questionNumber: undefined,
518
+ quizLength: undefined,
517
519
  imageUrlPrefix: '',
518
520
  quizMode: 'quick10',
519
521
  initialShowAnswers: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.9.3",
3
+ "version": "3.9.4",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {