@explorer-1/vue 0.2.99 → 0.2.100

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,13 @@
1
1
  # @explorer-1/vue
2
2
 
3
+ ## 0.2.100
4
+
5
+ ### Patch Changes
6
+
7
+ - fb6ba35: Fixing height of HeroMedia
8
+ - Updated dependencies [fb6ba35]
9
+ - @explorer-1/common@1.1.24
10
+
3
11
  ## 0.2.99
4
12
 
5
13
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorer-1/vue",
3
- "version": "0.2.99",
3
+ "version": "0.2.100",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -30,7 +30,7 @@
30
30
  "vue-bind-once": "^0.2.1",
31
31
  "vue3-compare-image": "^1.2.5",
32
32
  "vue3-observe-visibility": "^1.0.1",
33
- "@explorer-1/common": "1.1.23"
33
+ "@explorer-1/common": "1.1.24"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@vitejs/plugin-vue": "^5.0.4",
@@ -3,40 +3,42 @@
3
3
  v-if="image || video"
4
4
  class="HeroMedia"
5
5
  >
6
- <div class="vh-crop max-w-screen-3xl relative flex items-center mx-auto overflow-hidden">
7
- <div class="hero w-full">
8
- <template v-if="theImageData">
9
- <img
10
- v-if="theImageData.src"
11
- class="object-cover object-center w-full h-full"
12
- :srcset="theSrcSet"
13
- :src="theImageData.src.url"
14
- :width="theImageData.src.width"
15
- :height="theImageData.src.height"
16
- :alt="theImageData.alt"
17
- itemprop="image"
18
- data-chromatic="ignore"
19
- />
20
- </template>
21
- <template v-else-if="video">
22
- <MixinVideoBg :video="video" />
23
- </template>
24
- </div>
25
- <div
26
- v-if="hasCaptionArea"
27
- class="lg:hidden absolute bottom-0 left-0 w-full h-auto mx-auto print:hidden"
28
- >
29
- <button
30
- class="bg-opacity-90 text-gray-dark flex items-center justify-center w-12 h-12 ml-auto bg-white cursor-pointer"
31
- aria-label="Toggle caption"
32
- @click="toggleCaption"
6
+ <div>
7
+ <div class="vh-crop max-w-screen-3xl relative flex items-center mx-auto overflow-hidden">
8
+ <div class="hero w-full">
9
+ <template v-if="theImageData">
10
+ <img
11
+ v-if="theImageData.src"
12
+ class="object-cover object-center w-full h-full"
13
+ :srcset="theSrcSet"
14
+ :src="theImageData.src.url"
15
+ :width="theImageData.src.width"
16
+ :height="theImageData.src.height"
17
+ :alt="theImageData.alt"
18
+ itemprop="image"
19
+ data-chromatic="ignore"
20
+ />
21
+ </template>
22
+ <template v-else-if="video">
23
+ <MixinVideoBg :video="video" />
24
+ </template>
25
+ </div>
26
+ <div
27
+ v-if="hasCaptionArea"
28
+ class="lg:hidden absolute bottom-0 left-0 w-full h-auto mx-auto print:hidden"
33
29
  >
34
- <IconInfo
35
- v-show="!captionVisible"
36
- class="text-xl"
37
- />
38
- <IconClose v-show="captionVisible" />
39
- </button>
30
+ <button
31
+ class="bg-opacity-90 text-gray-dark flex items-center justify-center w-12 h-12 ml-auto bg-white cursor-pointer"
32
+ aria-label="Toggle caption"
33
+ @click="toggleCaption"
34
+ >
35
+ <IconInfo
36
+ v-show="!captionVisible"
37
+ class="text-xl"
38
+ />
39
+ <IconClose v-show="captionVisible" />
40
+ </button>
41
+ </div>
40
42
  </div>
41
43
  </div>
42
44