@explorer-1/vue 1.1.17 → 1.1.19

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,18 @@
1
1
  # @explorer-1/vue
2
2
 
3
+ ## 1.1.19
4
+
5
+ ### Patch Changes
6
+
7
+ - 9a56758: Adds a custom wait time label prop to PageSiteExploreApp. This allows fetching an updated value.
8
+ - ae5fb75: Fixing bottom margin of media hero on Explore JPL content template"
9
+
10
+ ## 1.1.18
11
+
12
+ ### Patch Changes
13
+
14
+ - 008fc92: Fixing NuxtLink resolution error in BaseLink
15
+
3
16
  ## 1.1.17
4
17
 
5
18
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorer-1/vue",
3
- "version": "1.1.17",
3
+ "version": "1.1.19",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { defineComponent, type PropType } from 'vue'
2
+ import { defineComponent, resolveComponent, type PropType } from 'vue'
3
3
  import { mapStores } from 'pinia'
4
4
  import { useThemeStore } from '../../store/theme'
5
5
  import { eventBus } from './../../utils/eventBus'
@@ -148,6 +148,10 @@ export default defineComponent({
148
148
  ],
149
149
  computed: {
150
150
  ...mapStores(useThemeStore),
151
+ dynamicLinkComponent() {
152
+ // Resolves the NuxtLink component for Vue 3's dynamic <component> binding
153
+ return this.customElementType || resolveComponent('NuxtLink')
154
+ },
151
155
  computedVariants() {
152
156
  if (this.usePrimaryColor) {
153
157
  return primaryColorVariants
@@ -271,7 +275,7 @@ export default defineComponent({
271
275
  <div>
272
276
  <!-- annoyingly repetive due to complexities around `to` and @click.native -->
273
277
  <component
274
- :is="customElementType || 'nuxt-link'"
278
+ :is="dynamicLinkComponent"
275
279
  v-if="computedTo"
276
280
  class="group"
277
281
  :class="computedClass"
@@ -100,3 +100,14 @@ export const CustomNav = {
100
100
  }
101
101
  }
102
102
  }
103
+
104
+ export const CustomNavWithHero = {
105
+ args: {
106
+ data: {
107
+ ...ExploreAppContentPageData,
108
+ breadcrumb: NavSecondaryData.breadcrumb,
109
+ heroPosition: 'full_bleed',
110
+ heroImage: HeroMediaData.image
111
+ }
112
+ }
113
+ }
@@ -56,7 +56,7 @@ const heroTitle = computed(() => {
56
56
  />
57
57
  <HeroMedia
58
58
  v-else-if="!heroTitle && data.heroImage && !heroInline"
59
- class="md:mb-0 mb-10"
59
+ :class="data.breadcrumb ? 'mb-0' : 'md:mb-0 mb-10'"
60
60
  :image="data.heroImage"
61
61
  :caption="data.heroImageCaption"
62
62
  :display-caption="!data.heroImageCaption ? false : true"
@@ -99,3 +99,10 @@ export const BaseStory = {
99
99
  data: ExploreAppSitePageData
100
100
  }
101
101
  }
102
+ // stories
103
+ export const CustomWaitTime = {
104
+ args: {
105
+ data: ExploreAppSitePageData,
106
+ customWaitTimeLabel: 'Custom wait time'
107
+ }
108
+ }
@@ -22,6 +22,11 @@ const props = defineProps({
22
22
  data: {
23
23
  type: Object as () => PageObject,
24
24
  default: undefined
25
+ },
26
+ /** used to override wait time in MetaDataStacked */
27
+ customWaitTimeLabel: {
28
+ type: String,
29
+ default: undefined
25
30
  }
26
31
  })
27
32
  const { data } = reactive(props)
@@ -60,7 +65,7 @@ const mapPath = computed(() => {
60
65
  <MetadataStacked
61
66
  :location="data.location"
62
67
  :location-icon="data?.mapIcon?.url"
63
- :wait="data?.waitTimeLabel"
68
+ :wait="customWaitTimeLabel || data?.waitTimeLabel"
64
69
  />
65
70
  </LayoutHelper>
66
71