@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.
Files changed (36) hide show
  1. package/components.d.ts +3 -2
  2. package/dist/explorer-1-vue.js +4868 -4791
  3. package/dist/explorer-1-vue.umd.cjs +12 -12
  4. package/dist/src/components/BlockCardGrid/BlockCardGrid.stories.d.ts +60 -0
  5. package/dist/src/components/BlockCardGrid/BlockCardGrid.vue.d.ts +33 -0
  6. package/dist/src/components/{BlockCard/BlockCard.stories.d.ts → BlockCardGridItem/BlockCardGridItem.stories.d.ts} +18 -4
  7. package/dist/src/components/{BlockCardGroup/BlockCardGroup.vue.d.ts → BlockCardGridItem/BlockCardGridItem.vue.d.ts} +10 -12
  8. package/dist/src/components/{BlockCard/BlockCard.vue.d.ts → BlockCardGridItem/BlockCardGridItemElement.vue.d.ts} +20 -14
  9. package/dist/src/components/BlockCircleImageCard/BlockCircleImageCard.stories.d.ts +1 -0
  10. package/dist/src/components/BlockLinkCard/BlockLinkCard.stories.d.ts +1 -0
  11. package/dist/src/components/BlockLinkTile/BlockLinkTile.stories.d.ts +1 -0
  12. package/dist/src/components/BlockListCards/BlockListCards.stories.d.ts +1 -0
  13. package/dist/src/components/BlockStreamfield/BlockStreamfield.stories.d.ts +60 -0
  14. package/dist/src/components/BlockStreamfield/BlockStreamfield.vue.d.ts +2 -3
  15. package/dist/src/components/DetailHeadline/DetailHeadline.stories.d.ts +1 -0
  16. package/dist/src/components/DetailHeadline/DetailHeadline.vue.d.ts +11 -0
  17. package/dist/src/components/LayoutHelper/LayoutHelper.vue.d.ts +9 -0
  18. package/dist/src/components/ThumbnailCarousel/ThumbnailCarousel.stories.d.ts +1 -0
  19. package/dist/src/docs/foundation/grid_layouthelpers.stories.d.ts +36 -0
  20. package/dist/src/interfaces.d.ts +6 -2
  21. package/dist/src/templates/PageNewsDetail/PageNewsDetail.stories.d.ts +8 -0
  22. package/dist/src/templates/edu/PageEduNewsDetail/PageEduNewsDetail.stories.d.ts +3 -0
  23. package/dist/src/templates/edu/PageEduResourceArticle/PageEduResourceArticle.stories.d.ts +1 -0
  24. package/dist/src/templates/www/PageAsteroidWatchIndex/PageAsteroidWatchIndex.stories.d.ts +60 -0
  25. package/dist/src/templates/www/PageRoboticsDetail/PageRoboticsDetail.stories.d.ts +29 -2
  26. package/dist/style.css +1 -1
  27. package/package.json +1 -1
  28. package/src/components/DetailHeadline/DetailHeadline.stories.js +1 -0
  29. package/src/components/DetailHeadline/DetailHeadline.vue +12 -2
  30. package/src/templates/PageNewsDetail/PageNewsDetail.stories.js +1 -0
  31. package/src/templates/PageNewsDetail/PageNewsDetail.vue +1 -0
  32. package/src/templates/edu/PageEduNewsDetail/PageEduNewsDetail.stories.js +1 -0
  33. package/src/templates/edu/PageEduNewsDetail/PageEduNewsDetail.vue +2 -0
  34. package/src/templates/edu/PageEduResourceArticle/PageEduResourceArticle.stories.js +2 -0
  35. package/src/templates/edu/PageEduResourceArticle/PageEduResourceArticle.vue +1 -0
  36. package/dist/src/components/BlockCardGroup/BlockCardGroup.stories.d.ts +0 -32
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorer-1/vue",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -9,6 +9,7 @@ export default {
9
9
  export const DetailHeadlineData = {
10
10
  title: "NASA's Ingenuity Mars Helicopter Recharges Its Batteries in Flight",
11
11
  publicationDate: '2020-08-13',
12
+ readTime: '3 min read',
12
13
  author: {
13
14
  name: 'Jane Platt',
14
15
  organization: 'JPL'
@@ -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-normal"
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: {
@@ -35,6 +35,7 @@
35
35
  >
36
36
  <DetailHeadline
37
37
  :title="data.title"
38
+ :read-time="data.readTime"
38
39
  :publication-date="data.publicationDate"
39
40
  :publication-time="data.publicationTime"
40
41
  :author="data.author"
@@ -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: [
@@ -103,6 +103,7 @@ export default defineComponent({
103
103
  >
104
104
  <DetailHeadline
105
105
  :title="data.title"
106
+ :read-time="data.readTime"
106
107
  :publication-date="data.publicationDate"
107
108
  :publication-time="data.publicationTime"
108
109
  :author="data.author"
@@ -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
- }