@explorer-1/vue 0.2.34 → 0.2.35

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.34",
3
+ "version": "0.2.35",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -115,7 +115,11 @@ const { data } = reactive(props)
115
115
  indent="col-2"
116
116
  class="mb-5 lg:mb-10"
117
117
  >
118
- <BlockImageStandard :data="block.image" />
118
+ <BlockImageStandard
119
+ :data="block.image"
120
+ :caption="block.caption"
121
+ :display-caption="block.displayCaption"
122
+ />
119
123
  </LayoutHelper>
120
124
  </template>
121
125
  <template v-else-if="block.blockType === 'ImageComparisonBlock'">
@@ -5,7 +5,7 @@ import LayoutHelper from './../../../components/LayoutHelper/LayoutHelper.vue'
5
5
  import BaseHeading from './../../../components/BaseHeading/BaseHeading.vue'
6
6
  import DetailHeadline from './../../../components/DetailHeadline/DetailHeadline.vue'
7
7
  import ShareButtonsEdu from './../../../components/ShareButtonsEdu/ShareButtonsEdu.vue'
8
- import BaseVideo from './../../../components/BaseVideo/BaseVideo.vue'
8
+ import BlockVideo from './../../../components/BlockVideo/BlockVideo.vue'
9
9
  import BlockImageStandard from './../../../components/BlockImage/BlockImageStandard.vue'
10
10
  import BlockVideoEmbed from './../../../components/BlockVideoEmbed/BlockVideoEmbed.vue'
11
11
  import BaseButton from './../../../components/BaseButton/BaseButton.vue'
@@ -143,7 +143,7 @@ const creditText = computed(() => {
143
143
  case 'image':
144
144
  return heroImage.value?.credit
145
145
  case 'video':
146
- return videoBlock.value?.caption
146
+ return videoBlock.value?.credit
147
147
  case 'document':
148
148
  return data.credit
149
149
  default:
@@ -263,8 +263,8 @@ const { data } = reactive(props)
263
263
  />
264
264
  <template v-if="videoBlock.blockType === 'VideoBlock' && videoBlock.video">
265
265
  <div class="max-w-screen-2xl lg:mb-24 mx-auto mt-10 mb-8">
266
- <BaseVideo
267
- :data="videoBlock.video"
266
+ <BlockVideo
267
+ :data="videoBlock"
268
268
  schema
269
269
  />
270
270
  </div>
@@ -297,7 +297,6 @@ const { data } = reactive(props)
297
297
  />
298
298
 
299
299
  <div class="max-w-screen-3xl lg:mb-24 mx-auto mt-10 mb-8">
300
- <!-- inline hero content -->
301
300
  <LayoutHelper
302
301
  v-if="heroImage"
303
302
  indent="col-2"
@@ -311,8 +310,6 @@ const { data } = reactive(props)
311
310
  </div>
312
311
  </template>
313
312
 
314
- <!-- !Gallery body -->
315
-
316
313
  <LayoutHelper indent="col-2">
317
314
  <div class="lg:grid grid-cols-12">
318
315
  <div
@@ -430,5 +427,14 @@ const { data } = reactive(props)
430
427
  .bg-stars .MixinCarousel__Heading {
431
428
  @apply text-white;
432
429
  }
430
+ .BlockVideo,
431
+ .BlockVideoEmbed {
432
+ .BaseImageCaption {
433
+ @apply px-4 sm:px-5;
434
+ @screen 3xl {
435
+ @apply px-0;
436
+ }
437
+ }
438
+ }
433
439
  }
434
440
  </style>