@explorer-1/vue 0.2.90 → 0.2.92
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@explorer-1/vue",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.92",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"animejs": "^3.2.2",
|
|
19
19
|
"click-outside-vue3": "^4.0.1",
|
|
20
20
|
"datebook": "^8.0.1",
|
|
21
|
-
"dayjs": "^1.11.
|
|
21
|
+
"dayjs": "^1.11.11",
|
|
22
22
|
"fast-qs": "^2.0.3",
|
|
23
23
|
"lodash": "^4.17.21",
|
|
24
24
|
"mitt": "^3.0.1",
|
|
25
25
|
"sass": "^1.77.4",
|
|
26
26
|
"swiper": "^11.1.3",
|
|
27
|
-
"tailwindcss": "^3.4.
|
|
27
|
+
"tailwindcss": "^3.4.3",
|
|
28
28
|
"twitter-widgets": "^2.0.0",
|
|
29
29
|
"vue": "^3.5.3",
|
|
30
30
|
"vue-bind-once": "^0.2.1",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"autoprefixer": "^10.4.19",
|
|
39
39
|
"postcss": "^8.4.38",
|
|
40
40
|
"postcss-import": "^16.1.0",
|
|
41
|
-
"typescript": "^5.
|
|
41
|
+
"typescript": "^5.4.5",
|
|
42
42
|
"unplugin-vue-components": "^0.27.0",
|
|
43
43
|
"vite": "^5.3.1",
|
|
44
44
|
"vite-plugin-dts": "^3.9.1",
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
<!-- eslint-disable vue/require-explicit-emits -->
|
|
2
|
-
<!-- eslint-disable vue/require-default-prop -->
|
|
3
1
|
<script lang="ts">
|
|
4
|
-
// MixinFancybox.vue
|
|
5
2
|
// @ts-nocheck
|
|
3
|
+
import { defineComponent } from 'vue'
|
|
6
4
|
import { Fancybox } from '@fancyapps/ui'
|
|
7
|
-
import '@fancyapps/ui/dist/fancybox.css'
|
|
8
5
|
import { Fullscreen } from '@fancyapps/ui/src/shared/utils/Fullscreen.js'
|
|
9
|
-
import
|
|
6
|
+
import '@fancyapps/ui/dist/fancybox.css'
|
|
10
7
|
import MixinFancyboxOpenButton from './MixinFancyboxOpenButton.vue'
|
|
11
8
|
|
|
12
9
|
export const fancyboxThemes = {
|
|
@@ -3,6 +3,7 @@ import { defineComponent } from 'vue'
|
|
|
3
3
|
import { useRoute } from 'vue-router'
|
|
4
4
|
import { mapStores } from 'pinia'
|
|
5
5
|
import { useThemeStore } from '../../store/theme'
|
|
6
|
+
import HeroLarge from './../../components/HeroLarge/HeroLarge.vue'
|
|
6
7
|
import HeroMedia from './../../components/HeroMedia/HeroMedia.vue'
|
|
7
8
|
import NavSecondary from './../../components/NavSecondary/NavSecondary.vue'
|
|
8
9
|
import LayoutHelper from './../../components/LayoutHelper/LayoutHelper.vue'
|
|
@@ -21,6 +22,7 @@ const route = useRoute()
|
|
|
21
22
|
export default defineComponent({
|
|
22
23
|
name: 'PageContent',
|
|
23
24
|
components: {
|
|
25
|
+
HeroLarge,
|
|
24
26
|
HeroMedia,
|
|
25
27
|
NavSecondary,
|
|
26
28
|
LayoutHelper,
|
|
@@ -54,6 +56,9 @@ export default defineComponent({
|
|
|
54
56
|
}
|
|
55
57
|
return false
|
|
56
58
|
},
|
|
59
|
+
heroTitle() {
|
|
60
|
+
return this.data?.heroImage && !this.heroInline && this.data?.displayTitleInHero
|
|
61
|
+
},
|
|
57
62
|
hideH1() {
|
|
58
63
|
if (route?.path === '/a-plan-for-jpl') {
|
|
59
64
|
return true
|
|
@@ -77,8 +82,14 @@ export default defineComponent({
|
|
|
77
82
|
:class="{ '-nav-offset': !heroInline && data.heroImage }"
|
|
78
83
|
>
|
|
79
84
|
<!-- hero image -->
|
|
85
|
+
<HeroLarge
|
|
86
|
+
v-if="heroTitle"
|
|
87
|
+
:title="data.title"
|
|
88
|
+
:image="data.heroImage"
|
|
89
|
+
:summary="data.heroSummary"
|
|
90
|
+
/>
|
|
80
91
|
<HeroMedia
|
|
81
|
-
v-if="data.heroImage && !heroInline"
|
|
92
|
+
v-else-if="!heroTitle && data.heroImage && !heroInline"
|
|
82
93
|
class="md:mb-0 mb-10"
|
|
83
94
|
:image="data.heroImage"
|
|
84
95
|
:caption="data.heroImageCaption"
|
|
@@ -98,13 +109,14 @@ export default defineComponent({
|
|
|
98
109
|
:class="h1LayoutHelperClasses"
|
|
99
110
|
>
|
|
100
111
|
<DetailHeadline
|
|
112
|
+
v-if="!heroTitle"
|
|
101
113
|
:title="data.title"
|
|
102
114
|
:label="displayLabel"
|
|
103
115
|
:class="{ 'sr-only': hideH1 }"
|
|
104
116
|
/>
|
|
105
117
|
<ShareButtonsEdu
|
|
106
118
|
v-if="themeStore.isEdu && data?.url"
|
|
107
|
-
class="mt-4"
|
|
119
|
+
:class="{ 'mt-4': !heroTitle }"
|
|
108
120
|
:url="data.url"
|
|
109
121
|
:title="data.title"
|
|
110
122
|
:image="data.thumbnailImage?.original"
|
|
@@ -28,6 +28,22 @@ export default {
|
|
|
28
28
|
export const BaseStory = {
|
|
29
29
|
name: 'PageContent',
|
|
30
30
|
args: {
|
|
31
|
-
data: {
|
|
31
|
+
data: {
|
|
32
|
+
...ContentPageData,
|
|
33
|
+
displayLabel: undefined,
|
|
34
|
+
parent: { title: 'Parent Page' }
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export const HeroTitle = {
|
|
39
|
+
args: {
|
|
40
|
+
data: {
|
|
41
|
+
...ContentPageData,
|
|
42
|
+
displayLabel: undefined,
|
|
43
|
+
parent: { title: 'Parent Page' },
|
|
44
|
+
displayTitleInHero: true,
|
|
45
|
+
heroSummary: 'Text appears below the title',
|
|
46
|
+
heroPosition: 'full'
|
|
47
|
+
}
|
|
32
48
|
}
|
|
33
49
|
}
|
package/vite.config.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineConfig } from 'vite'
|
|
2
|
-
import { resolve } from 'node:path'
|
|
3
1
|
import vue from '@vitejs/plugin-vue'
|
|
4
|
-
import
|
|
2
|
+
import { resolve } from 'node:path'
|
|
5
3
|
import Components from 'unplugin-vue-components/vite'
|
|
4
|
+
import { defineConfig } from 'vite'
|
|
5
|
+
import dts from 'vite-plugin-dts'
|
|
6
6
|
|
|
7
7
|
// https://vitejs.dev/config/
|
|
8
8
|
export default defineConfig({
|
|
@@ -15,6 +15,20 @@ export default defineConfig({
|
|
|
15
15
|
dirs: ['./src/components', './src/templates']
|
|
16
16
|
})
|
|
17
17
|
],
|
|
18
|
+
css: {
|
|
19
|
+
preprocessorOptions: {
|
|
20
|
+
scss: {
|
|
21
|
+
silenceDeprecations: [
|
|
22
|
+
// Deprecation Warning: https://sass-lang.com/d/mixed-decls
|
|
23
|
+
'mixed-decls',
|
|
24
|
+
// Deprecation Warning: https://sass-lang.com/d/import
|
|
25
|
+
'import',
|
|
26
|
+
// Deprecation Warning: https://sass-lang.com/d/legacy-js-api
|
|
27
|
+
'legacy-js-api'
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
18
32
|
build: {
|
|
19
33
|
lib: {
|
|
20
34
|
// Could also be a dictionary or array of multiple entry points
|