@pocketprep/ui-kit 3.9.3 → 3.9.5
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/@pocketprep/ui-kit.js +5 -5
- package/dist/@pocketprep/ui-kit.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.cjs +3 -3
- package/dist/@pocketprep/ui-kit.umd.cjs.map +1 -1
- package/lib/components/Quiz/Question/QuestionContext.vue +1 -1
- package/lib/components/Quiz/Question/injectionSymbols.ts +2 -2
- package/lib/components/Quiz/Question.vue +4 -2
- package/lib/components/Tables/Table.vue +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
490
|
-
quizLength
|
|
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,
|
|
@@ -359,7 +359,7 @@ watch(() => defaultSort, () => {
|
|
|
359
359
|
return
|
|
360
360
|
}
|
|
361
361
|
const defaultSortStr = JSON.stringify(defaultSort)
|
|
362
|
-
const currentSortStr = JSON.stringify(currentSort)
|
|
362
|
+
const currentSortStr = JSON.stringify(currentSort.value)
|
|
363
363
|
|
|
364
364
|
if (defaultSortStr !== currentSortStr) {
|
|
365
365
|
currentSort.value = JSON.parse(defaultSortStr)
|