@explorer-1/vue 0.2.3 → 0.2.4
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/components.d.ts +3 -2
- package/dist/explorer-1-vue.js +4868 -4791
- package/dist/explorer-1-vue.umd.cjs +12 -12
- package/dist/src/components/BlockCardGrid/BlockCardGrid.stories.d.ts +60 -0
- package/dist/src/components/BlockCardGrid/BlockCardGrid.vue.d.ts +33 -0
- package/dist/src/components/{BlockCard/BlockCard.stories.d.ts → BlockCardGridItem/BlockCardGridItem.stories.d.ts} +18 -4
- package/dist/src/components/{BlockCardGroup/BlockCardGroup.vue.d.ts → BlockCardGridItem/BlockCardGridItem.vue.d.ts} +10 -12
- package/dist/src/components/{BlockCard/BlockCard.vue.d.ts → BlockCardGridItem/BlockCardGridItemElement.vue.d.ts} +20 -14
- package/dist/src/components/BlockCircleImageCard/BlockCircleImageCard.stories.d.ts +1 -0
- package/dist/src/components/BlockLinkCard/BlockLinkCard.stories.d.ts +1 -0
- package/dist/src/components/BlockLinkTile/BlockLinkTile.stories.d.ts +1 -0
- package/dist/src/components/BlockListCards/BlockListCards.stories.d.ts +1 -0
- package/dist/src/components/BlockStreamfield/BlockStreamfield.stories.d.ts +60 -0
- package/dist/src/components/BlockStreamfield/BlockStreamfield.vue.d.ts +2 -3
- package/dist/src/components/DetailHeadline/DetailHeadline.stories.d.ts +1 -0
- package/dist/src/components/DetailHeadline/DetailHeadline.vue.d.ts +11 -0
- package/dist/src/components/LayoutHelper/LayoutHelper.vue.d.ts +9 -0
- package/dist/src/components/ThumbnailCarousel/ThumbnailCarousel.stories.d.ts +1 -0
- package/dist/src/docs/foundation/grid_layouthelpers.stories.d.ts +36 -0
- package/dist/src/interfaces.d.ts +6 -2
- package/dist/src/templates/PageNewsDetail/PageNewsDetail.stories.d.ts +8 -0
- package/dist/src/templates/edu/PageEduNewsDetail/PageEduNewsDetail.stories.d.ts +3 -0
- package/dist/src/templates/edu/PageEduResourceArticle/PageEduResourceArticle.stories.d.ts +1 -0
- package/dist/src/templates/www/PageAsteroidWatchIndex/PageAsteroidWatchIndex.stories.d.ts +60 -0
- package/dist/src/templates/www/PageRoboticsDetail/PageRoboticsDetail.stories.d.ts +29 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/DetailHeadline/DetailHeadline.stories.js +1 -0
- package/src/components/DetailHeadline/DetailHeadline.vue +12 -2
- package/src/templates/PageNewsDetail/PageNewsDetail.stories.js +1 -0
- package/src/templates/PageNewsDetail/PageNewsDetail.vue +1 -0
- package/src/templates/edu/PageEduNewsDetail/PageEduNewsDetail.stories.js +1 -0
- package/src/templates/edu/PageEduNewsDetail/PageEduNewsDetail.vue +2 -0
- package/src/templates/edu/PageEduResourceArticle/PageEduResourceArticle.stories.js +2 -0
- package/src/templates/edu/PageEduResourceArticle/PageEduResourceArticle.vue +1 -0
- package/dist/src/components/BlockCardGroup/BlockCardGroup.stories.d.ts +0 -32
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-if="title || label || topics || publicationDate || author">
|
|
3
3
|
<div
|
|
4
|
-
v-if="label || (topics && topics.length)"
|
|
4
|
+
v-if="label || (topics && topics.length) || readTime"
|
|
5
5
|
class="flex flex-wrap items-start mb-3"
|
|
6
6
|
>
|
|
7
7
|
<div
|
|
@@ -38,6 +38,11 @@
|
|
|
38
38
|
</template>
|
|
39
39
|
</span>
|
|
40
40
|
<span class="sr-only">.</span>
|
|
41
|
+
<span
|
|
42
|
+
:class="`${(topics && topics.length) || label ? 'divide-gray-mid-dark border-l ml-3 pl-3 ' : ''} my-4 text-gray-mid-dark uppercase text-sm lg:text-base leading-none`"
|
|
43
|
+
>
|
|
44
|
+
{{ readTime }}
|
|
45
|
+
</span>
|
|
41
46
|
</div>
|
|
42
47
|
<BaseHeading
|
|
43
48
|
level="h1"
|
|
@@ -47,7 +52,7 @@
|
|
|
47
52
|
</BaseHeading>
|
|
48
53
|
<div
|
|
49
54
|
v-if="authors?.length || publicationDate"
|
|
50
|
-
class="lg:text-base text-gray-mid-dark divide-gray-mid-dark px-3 mt-5 -ml-3 text-sm leading-
|
|
55
|
+
class="lg:text-base text-gray-mid-dark divide-gray-mid-dark px-3 mt-5 -ml-3 text-sm leading-none"
|
|
51
56
|
>
|
|
52
57
|
<span
|
|
53
58
|
v-if="authors?.length"
|
|
@@ -130,6 +135,11 @@ export default defineComponent({
|
|
|
130
135
|
required: false,
|
|
131
136
|
default: undefined
|
|
132
137
|
},
|
|
138
|
+
readTime: {
|
|
139
|
+
type: String,
|
|
140
|
+
required: false,
|
|
141
|
+
default: undefined
|
|
142
|
+
},
|
|
133
143
|
topics: {
|
|
134
144
|
type: Array as PropType<Topic[]>,
|
|
135
145
|
required: false,
|
|
@@ -42,6 +42,7 @@ export const BaseStory = {
|
|
|
42
42
|
}
|
|
43
43
|
],
|
|
44
44
|
topper: '',
|
|
45
|
+
readTime: '2 min read',
|
|
45
46
|
summary:
|
|
46
47
|
'Headed to the Red Planet with the Perseverance rover, the pioneering helicopter is powered up for the first time in interplanetary space as part of a systems check.',
|
|
47
48
|
thumbnailImage: {
|
|
@@ -32,6 +32,7 @@ export const BaseStory = {
|
|
|
32
32
|
url: '/news/nasas-ingenuity-mars-helicopter-recharges-its-batteries-in-flight',
|
|
33
33
|
title: "NASA's Ingenuity Mars Helicopter Recharges Its Batteries in Flight",
|
|
34
34
|
publicationDate: '2024-06-20 20:36:49.657301+00:00',
|
|
35
|
+
readTime: '5 min read',
|
|
35
36
|
authors: [
|
|
36
37
|
{
|
|
37
38
|
author: {
|
|
@@ -19,6 +19,7 @@ import BlockText from './../../../components/BlockText/BlockText.vue'
|
|
|
19
19
|
import BlockStreamfield from './../../../components/BlockStreamfield/BlockStreamfield.vue'
|
|
20
20
|
|
|
21
21
|
interface PageEduNewsDetailObject extends PageResponseObject {
|
|
22
|
+
readTime: string
|
|
22
23
|
url: string
|
|
23
24
|
heroImage: ImageObject
|
|
24
25
|
heroImageInline: ImageObject
|
|
@@ -99,6 +100,7 @@ const dateTimeArray = computed(() => {
|
|
|
99
100
|
>
|
|
100
101
|
<DetailHeadline
|
|
101
102
|
:title="data.title"
|
|
103
|
+
:read-time="data.readTime"
|
|
102
104
|
:author="data.authors"
|
|
103
105
|
:publication-date="dateTimeArray?.length ? dateTimeArray[0] : undefined"
|
|
104
106
|
:publication-time="dateTimeArray?.length ? dateTimeArray[1] : undefined"
|
|
@@ -19,6 +19,7 @@ export default {
|
|
|
19
19
|
})
|
|
20
20
|
],
|
|
21
21
|
parameters: {
|
|
22
|
+
layout: 'fullscreen',
|
|
22
23
|
html: {
|
|
23
24
|
root: '#storyDecorator'
|
|
24
25
|
}
|
|
@@ -37,6 +38,7 @@ export const BaseStory = {
|
|
|
37
38
|
slug: 'test-resource',
|
|
38
39
|
url: 'http://localhost:3000/edu/resources/test-resource',
|
|
39
40
|
title: 'Test Resource',
|
|
41
|
+
readTime: '6 min read',
|
|
40
42
|
heroConstrain: true,
|
|
41
43
|
heroPosition: 'full_bleed',
|
|
42
44
|
hero: [
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { default as BlockCardGroup } from './BlockCardGroup.vue';
|
|
2
|
-
declare namespace _default {
|
|
3
|
-
export let title: string;
|
|
4
|
-
export { BlockCardGroup as component };
|
|
5
|
-
export let excludeStories: RegExp;
|
|
6
|
-
}
|
|
7
|
-
export default _default;
|
|
8
|
-
export const BlockCardGroupData: ({
|
|
9
|
-
type: string;
|
|
10
|
-
title: string;
|
|
11
|
-
description: string;
|
|
12
|
-
image: {
|
|
13
|
-
alt: string;
|
|
14
|
-
src: {
|
|
15
|
-
height: number;
|
|
16
|
-
url: string;
|
|
17
|
-
width: number;
|
|
18
|
-
};
|
|
19
|
-
srcSet: string;
|
|
20
|
-
};
|
|
21
|
-
} | {
|
|
22
|
-
type: string;
|
|
23
|
-
title: string;
|
|
24
|
-
description: string;
|
|
25
|
-
image: null;
|
|
26
|
-
})[];
|
|
27
|
-
export namespace BaseStory {
|
|
28
|
-
let name: string;
|
|
29
|
-
namespace args {
|
|
30
|
-
export { BlockCardGroupData as facts };
|
|
31
|
-
}
|
|
32
|
-
}
|