@explorer-1/vue 0.2.96 → 0.2.98
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 +7 -0
- package/package.json +1 -1
- package/src/components/BaseVideo/BaseVideo.vue +1 -1
- package/src/components/BlockVideo/BlockVideo.stories.js +2 -1
- package/src/components/BlockVideo/BlockVideo.vue +1 -1
- package/src/components/HeroMedia/HeroMedia.vue +4 -4
- package/src/components/MixinVideoBg/MixinVideoBg.stories.js +8 -1
- package/src/components/MixinVideoBg/MixinVideoBg.vue +6 -1
- package/src/templates/PageContent/PageContent.stories.js +9 -0
- package/src/templates/PageContent/PageContent.vue +1 -1
- package/src/templates/PageNewsDetail/PageNewsDetail.vue +1 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -78,11 +78,11 @@ export default defineComponent({
|
|
|
78
78
|
// image object includes the image caption and credit
|
|
79
79
|
image: {
|
|
80
80
|
type: Object,
|
|
81
|
-
|
|
81
|
+
default: undefined
|
|
82
82
|
},
|
|
83
83
|
video: {
|
|
84
84
|
type: Object,
|
|
85
|
-
|
|
85
|
+
default: undefined
|
|
86
86
|
},
|
|
87
87
|
// if a caption should even be visible
|
|
88
88
|
displayCaption: {
|
|
@@ -92,11 +92,11 @@ export default defineComponent({
|
|
|
92
92
|
// for video heroes that pass separate caption and credit data
|
|
93
93
|
caption: {
|
|
94
94
|
type: String,
|
|
95
|
-
|
|
95
|
+
default: undefined
|
|
96
96
|
},
|
|
97
97
|
credit: {
|
|
98
98
|
type: String,
|
|
99
|
-
|
|
99
|
+
default: undefined
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
data() {
|
|
@@ -4,7 +4,14 @@ import MixinVideoBg from './MixinVideoBg.vue'
|
|
|
4
4
|
export default {
|
|
5
5
|
title: 'Mixins/MixinVideoBg',
|
|
6
6
|
component: MixinVideoBg,
|
|
7
|
-
excludeStories: /.*Data
|
|
7
|
+
excludeStories: /.*Data$/,
|
|
8
|
+
parameters: {
|
|
9
|
+
docs: {
|
|
10
|
+
description: {
|
|
11
|
+
component: 'This mix-in will always autoplay and loop a video.'
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
8
15
|
}
|
|
9
16
|
|
|
10
17
|
export const BaseStory = {
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
muted
|
|
6
6
|
playsinline
|
|
7
7
|
autoplay
|
|
8
|
+
controls
|
|
8
9
|
preload="auto"
|
|
9
10
|
class="object-cover w-full h-full"
|
|
10
11
|
>
|
|
@@ -32,7 +33,11 @@ export default defineComponent({
|
|
|
32
33
|
props: {
|
|
33
34
|
video: {
|
|
34
35
|
type: Object,
|
|
35
|
-
|
|
36
|
+
default: undefined
|
|
37
|
+
},
|
|
38
|
+
autoplay: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false
|
|
36
41
|
}
|
|
37
42
|
}
|
|
38
43
|
})
|
|
@@ -28,6 +28,7 @@ export const ContentPageData = {
|
|
|
28
28
|
breadcrumb: NavSecondaryData.breadcrumb,
|
|
29
29
|
title: 'Make a Paper Mars Helicopter',
|
|
30
30
|
displayLabel: 'Classroom Activity',
|
|
31
|
+
showShareLinks: true,
|
|
31
32
|
heroPosition: 'inline',
|
|
32
33
|
heroImage: HeroMediaData.image,
|
|
33
34
|
heroImageInline: HeroMediaData.imageInline,
|
|
@@ -87,3 +88,11 @@ export const BaseStory = {
|
|
|
87
88
|
data: ContentPageData
|
|
88
89
|
}
|
|
89
90
|
}
|
|
91
|
+
export const NoShareLinks = {
|
|
92
|
+
args: {
|
|
93
|
+
data: {
|
|
94
|
+
...ContentPageData,
|
|
95
|
+
showShareLinks: false
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -144,7 +144,7 @@ export default defineComponent({
|
|
|
144
144
|
class="lg:mb-0 relative mb-8"
|
|
145
145
|
>
|
|
146
146
|
<ShareButtons
|
|
147
|
-
v-if="data.title && data.url && !themeStore.isEdu"
|
|
147
|
+
v-if="data.showShareLinks && data.title && data.url && !themeStore.isEdu"
|
|
148
148
|
:title="data.title"
|
|
149
149
|
:url="data.url"
|
|
150
150
|
/>
|