@explorer-1/vue 0.2.98 → 0.2.99

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @explorer-1/vue
2
2
 
3
+ ## 0.2.99
4
+
5
+ ### Patch Changes
6
+
7
+ - 815dd6d: Prepping for next release
8
+
3
9
  ## 0.2.97
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorer-1/vue",
3
- "version": "0.2.98",
3
+ "version": "0.2.99",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -41,6 +41,7 @@ export const BaseStory = {
41
41
  url: 'http://localhost:3000/topics/mars'
42
42
  }
43
43
  ],
44
+ hideShareLinks: false,
44
45
  topper: '',
45
46
  readTime: '2 min read',
46
47
  summary:
@@ -115,7 +116,8 @@ export const HeroVideo = {
115
116
  blockType: 'VideoBlock',
116
117
  video: BaseVideoData,
117
118
  caption: 'Lorem ipsum dolor sit amet',
118
- credit: 'NASA/JPL'
119
+ credit: 'NASA/JPL',
120
+ autoplay: true
119
121
  }
120
122
  ]
121
123
  }
@@ -83,6 +83,7 @@
83
83
 
84
84
  <!-- share buttons -->
85
85
  <LayoutHelper
86
+ v-if="!data.hideShareLinks"
86
87
  indent="col-2"
87
88
  class="lg:mb-0 relative mb-8"
88
89
  >
@@ -175,7 +176,7 @@ import BlockImageStandard from './../../components/BlockImage/BlockImageStandard
175
176
  import BlockLinkCarousel from './../../components/BlockLinkCarousel/BlockLinkCarousel.vue'
176
177
  import ShareButtons from './../../components/ShareButtons/ShareButtons.vue'
177
178
  import BlockText from './../../components/BlockText/BlockText.vue'
178
- import BlockVideo from './../../components/BlockText/BlockText.vue'
179
+ import BlockVideo from './../../components/BlockVideo/BlockVideo.vue'
179
180
 
180
181
  export default defineComponent({
181
182
  name: 'PageNewsDetail',
@@ -206,16 +207,13 @@ export default defineComponent({
206
207
  return (this.data?.hero || []).length === 0
207
208
  },
208
209
  heroInline(): boolean {
209
- if (!this.heroEmpty) {
210
- if (this.data?.hero[0].blockType === 'VideoBlock') {
211
- return false
212
- } else if (
213
- this.data?.heroPosition === 'inline' ||
210
+ if (
211
+ !this.heroEmpty &&
212
+ (this.data?.heroPosition === 'inline' ||
214
213
  this.data?.hero[0].blockType === 'CarouselBlock' ||
215
- this.data?.hero[0].blockType === 'VideoEmbedBlock'
216
- ) {
217
- return true
218
- }
214
+ this.data?.hero[0].blockType === 'VideoEmbedBlock')
215
+ ) {
216
+ return true
219
217
  }
220
218
  return false
221
219
  },