@explorer-1/vue 0.2.79 → 0.2.81

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorer-1/vue",
3
- "version": "0.2.79",
3
+ "version": "0.2.81",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -23,6 +23,7 @@ const theIcon = computed(() => {
23
23
  let component = undefined
24
24
  switch (normalizedSubject.value) {
25
25
  case 'art':
26
+ case 'arts':
26
27
  component = IconEduArt
27
28
  break
28
29
  case 'english':
@@ -41,7 +41,6 @@ const { heroBlocks, constrain } = reactive(props)
41
41
  <BlockVideo
42
42
  v-else-if="heroBlocks[0].blockType === 'VideoBlock'"
43
43
  :data="heroBlocks[0]"
44
- autoplay
45
44
  />
46
45
  <BaseImagePlaceholder
47
46
  v-else-if="heroBlocks[0].blockType === 'VideoEmbedBlock'"
@@ -56,12 +56,9 @@ export default defineComponent({
56
56
  return false
57
57
  },
58
58
  heroInline(): boolean {
59
- // heroes with interactive elements have special handling
60
59
  if (this.theHero && !this.heroTitle) {
61
- // excludes VideoBlock as this will autoplay
62
- if (this.theHero.blockType === 'VideoBlock') {
63
- return false
64
- } else if (
60
+ // heroes with interactive elements have special handling
61
+ if (
65
62
  this.data?.heroPosition === 'inline' ||
66
63
  this.theHero.blockType === 'CarouselBlock' ||
67
64
  this.theHero.blockType === 'IframeEmbedBlock' ||
@@ -70,6 +67,7 @@ export default defineComponent({
70
67
  ) {
71
68
  return true
72
69
  }
70
+ return false
73
71
  }
74
72
  return false
75
73
  },
@@ -113,12 +113,9 @@ const heroTitle = computed((): boolean => {
113
113
  })
114
114
 
115
115
  const heroInline = computed((): boolean => {
116
- // heroes with interactive elements have special handling
117
116
  if (theHero.value && !heroTitle.value) {
118
- // excludes VideoBlock as this will autoplay
119
- if (theHero.value.blockType === 'VideoBlock') {
120
- return false
121
- } else if (
117
+ // heroes with interactive elements have special handling
118
+ if (
122
119
  data?.heroPosition === 'inline' ||
123
120
  theHero.value.blockType === 'CarouselBlock' ||
124
121
  theHero.value.blockType === 'IframeEmbedBlock' ||
@@ -127,6 +124,7 @@ const heroInline = computed((): boolean => {
127
124
  ) {
128
125
  return true
129
126
  }
127
+ return false
130
128
  }
131
129
  return false
132
130
  })
@@ -92,12 +92,9 @@ const heroTitle = computed((): boolean => {
92
92
  })
93
93
 
94
94
  const heroInline = computed((): boolean => {
95
- // heroes with interactive elements have special handling
96
95
  if (theHero.value && !heroTitle.value) {
97
- // excludes VideoBlock as this will autoplay
98
- if (theHero.value.blockType === 'VideoBlock') {
99
- return false
100
- } else if (
96
+ // heroes with interactive elements have special handling
97
+ if (
101
98
  data?.heroPosition === 'inline' ||
102
99
  theHero.value.blockType === 'CarouselBlock' ||
103
100
  theHero.value.blockType === 'IframeEmbedBlock' ||
@@ -106,6 +103,7 @@ const heroInline = computed((): boolean => {
106
103
  ) {
107
104
  return true
108
105
  }
106
+ return false
109
107
  }
110
108
  return false
111
109
  })
@@ -52,12 +52,9 @@ const heroTitle = computed((): boolean => {
52
52
  })
53
53
 
54
54
  const heroInline = computed((): boolean => {
55
- // heroes with interactive elements have special handling
56
55
  if (theHero.value && !heroTitle.value) {
57
- // excludes VideoBlock as this will autoplay
58
- if (theHero.value.blockType === 'VideoBlock') {
59
- return false
60
- } else if (
56
+ // heroes with interactive elements have special handling
57
+ if (
61
58
  data?.heroPosition === 'inline' ||
62
59
  theHero.value.blockType === 'CarouselBlock' ||
63
60
  theHero.value.blockType === 'IframeEmbedBlock' ||
@@ -66,6 +63,7 @@ const heroInline = computed((): boolean => {
66
63
  ) {
67
64
  return true
68
65
  }
66
+ return false
69
67
  }
70
68
  return false
71
69
  })