@pocketprep/ui-kit 3.4.14 → 3.4.16

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.
@@ -62,6 +62,7 @@ export default class EmptyState extends Vue {
62
62
  @Prop() backgroundColor!: 'white'
63
63
  @Prop() state!: 'answered' | 'incorrect' | 'correct' | 'flagged'
64
64
  @Prop({ default: false }) isDarkMode!: boolean
65
+ @Prop() customBlobColor?: string
65
66
 
66
67
  brandColors = BrandColors
67
68
 
@@ -78,6 +79,9 @@ export default class EmptyState extends Vue {
78
79
  }
79
80
 
80
81
  get blobColor () {
82
+ if (this.customBlobColor) {
83
+ return this.customBlobColor
84
+ }
81
85
  if (this.isDarkMode) {
82
86
  return this.brandColors.moonlitOcean
83
87
  }
@@ -822,8 +822,11 @@ export default class Question extends Vue {
822
822
  && this.swipeStart.x !== null
823
823
  && Math.abs(swipeEnd.x - this.swipeStart.x) > 80
824
824
  ) {
825
- const choiceEls = this.$refs.choices as HTMLElement[]
826
- const parent = choiceEls.find(choiceEl => choiceEl.contains(targetEl))
825
+ const choicesContainerComp = this.$refs[
826
+ 'uikit-question__choices-container'
827
+ ] as ComponentPublicInstance | undefined
828
+ const choiceEls = choicesContainerComp?.$refs.choices as HTMLElement[] | undefined
829
+ const parent = choiceEls?.find(choiceEl => choiceEl.contains(targetEl))
827
830
  const finalElement = document.elementFromPoint(swipeEnd.x, swipeEnd.y)
828
831
  if (parent?.contains(finalElement)) {
829
832
  this.clickChoiceStrike(choiceKey)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.4.14",
3
+ "version": "3.4.16",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {