@mevbg/nuxt-kit 0.4.3 → 0.5.1
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/dist/module.d.mts +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +8 -4
- package/dist/runtime/components/ConditionalClientOnly.vue.d.ts +6 -5
- package/dist/runtime/composables/index.d.ts +2 -1
- package/dist/runtime/composables/index.js +2 -1
- package/dist/runtime/composables/{useMetaData.d.ts → useAppMeta.d.ts} +2 -6
- package/dist/runtime/composables/{useMetaData.js → useAppMeta.js} +2 -20
- package/dist/runtime/composables/usePageMeta.d.ts +18 -0
- package/dist/runtime/composables/usePageMeta.js +27 -0
- package/package.json +11 -11
package/dist/module.d.mts
CHANGED
|
@@ -9,7 +9,7 @@ interface NuxtKitOptions {
|
|
|
9
9
|
designEssentials?: MasterGeneratorParams;
|
|
10
10
|
colorScheme?: ColorSchemeOptions;
|
|
11
11
|
toastify?: ToastContainerOptions;
|
|
12
|
-
floating?:
|
|
12
|
+
floating?: unknown;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
declare const _default: _nuxt_schema.NuxtModule<NuxtKitOptions, NuxtKitOptions, false>;
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { floatingVueDefaultConfig, toastifyDefaultConfig } from '../dist/runtime
|
|
|
4
4
|
import { DEFAULT_PRIMARY_COLOR_SCHEME } from '../dist/runtime/defaults.js';
|
|
5
5
|
export * from '@mevbg/nuxt-color-scheme';
|
|
6
6
|
|
|
7
|
-
const module = defineNuxtModule({
|
|
7
|
+
const module$1 = defineNuxtModule({
|
|
8
8
|
meta: {
|
|
9
9
|
name: "@mevbg/nuxt-kit",
|
|
10
10
|
configKey: "mevKit"
|
|
@@ -52,8 +52,12 @@ const module = defineNuxtModule({
|
|
|
52
52
|
from: resolver.resolve("./runtime/composables/useScrollDirectionUp")
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
name: "
|
|
56
|
-
from: resolver.resolve("./runtime/composables/
|
|
55
|
+
name: "useAppMeta",
|
|
56
|
+
from: resolver.resolve("./runtime/composables/useAppMeta")
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: "usePageMeta",
|
|
60
|
+
from: resolver.resolve("./runtime/composables/usePageMeta")
|
|
57
61
|
},
|
|
58
62
|
{
|
|
59
63
|
name: "useHeadLinks",
|
|
@@ -80,4 +84,4 @@ const module = defineNuxtModule({
|
|
|
80
84
|
}
|
|
81
85
|
});
|
|
82
86
|
|
|
83
|
-
export { module as default };
|
|
87
|
+
export { module$1 as default };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
condition?: boolean;
|
|
3
3
|
};
|
|
4
|
-
declare var
|
|
4
|
+
declare var __VLS_8: {}, __VLS_10: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
|
-
default?: (props: typeof
|
|
6
|
+
default?: (props: typeof __VLS_8) => any;
|
|
7
7
|
} & {
|
|
8
|
-
default?: (props: typeof
|
|
8
|
+
default?: (props: typeof __VLS_10) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
11
|
condition: boolean;
|
|
12
12
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
-
declare const
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
14
15
|
export default _default;
|
|
15
16
|
type __VLS_WithSlots<T, S> = T & {
|
|
16
17
|
new (): {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './useErrorHandler.js';
|
|
2
2
|
export * from './useHeadLinks.js';
|
|
3
|
-
export * from './
|
|
3
|
+
export * from './useAppMeta.js';
|
|
4
|
+
export * from './usePageMeta.js';
|
|
4
5
|
export * from './useNetworkListener.js';
|
|
5
6
|
export * from './useNotificationSystem.js';
|
|
6
7
|
export * from './useScrollDirectionUp.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./useErrorHandler.js";
|
|
2
2
|
export * from "./useHeadLinks.js";
|
|
3
|
-
export * from "./
|
|
3
|
+
export * from "./useAppMeta.js";
|
|
4
|
+
export * from "./usePageMeta.js";
|
|
4
5
|
export * from "./useNetworkListener.js";
|
|
5
6
|
export * from "./useNotificationSystem.js";
|
|
6
7
|
export * from "./useScrollDirectionUp.js";
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
type
|
|
1
|
+
type AppMeta = {
|
|
2
2
|
path: string;
|
|
3
3
|
locale: string;
|
|
4
|
-
homepage: string;
|
|
5
4
|
themeColor: string;
|
|
6
5
|
robots: boolean;
|
|
7
6
|
siteTitle: string;
|
|
8
|
-
siteDescription: string;
|
|
9
|
-
siteKeywords: string;
|
|
10
7
|
siteOwner: string;
|
|
11
|
-
siteImage: string;
|
|
12
8
|
googleSiteVerification?: string;
|
|
13
9
|
};
|
|
14
|
-
export declare function
|
|
10
|
+
export declare function useAppMeta({ path, locale, themeColor, robots, siteTitle, siteOwner, googleSiteVerification }: AppMeta): ({
|
|
15
11
|
charset: string;
|
|
16
12
|
'http-equiv'?: undefined;
|
|
17
13
|
content?: undefined;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
export function
|
|
1
|
+
export function useAppMeta({
|
|
2
2
|
path = "/assets",
|
|
3
3
|
locale,
|
|
4
|
-
homepage,
|
|
5
4
|
themeColor,
|
|
6
5
|
robots,
|
|
7
6
|
siteTitle,
|
|
8
|
-
siteDescription,
|
|
9
|
-
siteKeywords,
|
|
10
7
|
siteOwner,
|
|
11
|
-
siteImage,
|
|
12
8
|
googleSiteVerification
|
|
13
9
|
}) {
|
|
14
10
|
return [
|
|
@@ -18,8 +14,6 @@ export function useMetaData({
|
|
|
18
14
|
{ name: "author", content: siteOwner },
|
|
19
15
|
{ name: "copyright", content: siteOwner },
|
|
20
16
|
...googleSiteVerification ? [{ name: "google-site-verification", content: googleSiteVerification }] : [],
|
|
21
|
-
{ name: "description", content: siteDescription },
|
|
22
|
-
{ name: "keywords", content: siteKeywords },
|
|
23
17
|
...!robots ? [{ name: "robots", content: "noindex,nofollow" }] : [],
|
|
24
18
|
{ name: "viewport", content: "width=device-width, initial-scale=1" },
|
|
25
19
|
{ name: "application-name", content: siteTitle },
|
|
@@ -33,19 +27,7 @@ export function useMetaData({
|
|
|
33
27
|
{ name: "msapplication-TileImage", content: `${path}/mstile-144x144.png` },
|
|
34
28
|
{ name: "msapplication-config", content: `${path}/browserconfig.xml` },
|
|
35
29
|
{ property: "og:site_name", content: siteTitle },
|
|
36
|
-
{ property: "og:title", content: siteTitle },
|
|
37
|
-
{ property: "og:description", content: siteDescription },
|
|
38
|
-
{ property: "og:type", content: "website" },
|
|
39
|
-
{ property: "og:url", content: homepage },
|
|
40
30
|
{ property: "og:locale", content: locale },
|
|
41
|
-
{
|
|
42
|
-
{ property: "og:image:type", content: "image/png" },
|
|
43
|
-
{ property: "og:image:width", content: "1200" },
|
|
44
|
-
{ property: "og:image:height", content: "630" },
|
|
45
|
-
{ property: "og:image:alt", content: siteTitle },
|
|
46
|
-
{ name: "twitter:card", content: "summary_large_image" },
|
|
47
|
-
{ name: "twitter:title", content: siteTitle },
|
|
48
|
-
{ name: "twitter:description", content: siteDescription },
|
|
49
|
-
{ name: "twitter:image", content: siteImage }
|
|
31
|
+
{ name: "twitter:card", content: "summary_large_image" }
|
|
50
32
|
];
|
|
51
33
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type PageMeta = {
|
|
2
|
+
pageType: string;
|
|
3
|
+
pageTitle: string;
|
|
4
|
+
pageUrl: string;
|
|
5
|
+
pageDescription: string;
|
|
6
|
+
pageKeywords: string;
|
|
7
|
+
pageImage?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function usePageMeta({ pageType, pageTitle, pageUrl, pageDescription, pageKeywords, pageImage }: PageMeta): ({
|
|
10
|
+
name: string;
|
|
11
|
+
content: string;
|
|
12
|
+
property?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
property: string;
|
|
15
|
+
content: string;
|
|
16
|
+
name?: undefined;
|
|
17
|
+
})[];
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export function usePageMeta({
|
|
2
|
+
pageType,
|
|
3
|
+
pageTitle,
|
|
4
|
+
pageUrl,
|
|
5
|
+
pageDescription,
|
|
6
|
+
pageKeywords,
|
|
7
|
+
pageImage
|
|
8
|
+
}) {
|
|
9
|
+
return [
|
|
10
|
+
{ name: "description", content: pageDescription },
|
|
11
|
+
{ name: "keywords", content: pageKeywords },
|
|
12
|
+
{ property: "og:title", content: pageTitle },
|
|
13
|
+
{ property: "og:description", content: pageDescription },
|
|
14
|
+
{ property: "og:type", content: pageType },
|
|
15
|
+
{ property: "og:url", content: pageUrl },
|
|
16
|
+
...pageImage ? [
|
|
17
|
+
{ property: "og:image", content: pageImage },
|
|
18
|
+
{ property: "og:image:type", content: "image/png" },
|
|
19
|
+
{ property: "og:image:width", content: "1200" },
|
|
20
|
+
{ property: "og:image:height", content: "630" },
|
|
21
|
+
{ property: "og:image:alt", content: pageTitle }
|
|
22
|
+
] : [],
|
|
23
|
+
{ name: "twitter:title", content: pageTitle },
|
|
24
|
+
{ name: "twitter:description", content: pageDescription },
|
|
25
|
+
...pageImage ? [{ name: "twitter:image", content: pageImage }] : []
|
|
26
|
+
];
|
|
27
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mevbg/nuxt-kit",
|
|
3
3
|
"title": "Mev’s Nuxt Kit",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.1",
|
|
5
5
|
"description": "Mev’s personal Nuxt kit module.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"nuxt kit",
|
|
@@ -73,27 +73,27 @@
|
|
|
73
73
|
"npm": ">=10.x"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@mevbg/design-essentials-vendor": "^2.0.
|
|
76
|
+
"@mevbg/design-essentials-vendor": "^2.0.5",
|
|
77
77
|
"@mevbg/nuxt-color-scheme": "^2.0.3",
|
|
78
|
-
"@nuxt/kit": "^4.
|
|
79
|
-
"@vueuse/nuxt": "^
|
|
78
|
+
"@nuxt/kit": "^4.2.2",
|
|
79
|
+
"@vueuse/nuxt": "^14.1.0",
|
|
80
80
|
"floating-vue": "^5.2.2",
|
|
81
81
|
"mobile-device-detect": "^0.4.3",
|
|
82
82
|
"vue3-toastify": "^0.2.8"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@nuxt/devtools": "^
|
|
86
|
-
"@nuxt/eslint-config": "^1.
|
|
85
|
+
"@nuxt/devtools": "^3.1.1",
|
|
86
|
+
"@nuxt/eslint-config": "^1.12.1",
|
|
87
87
|
"@nuxt/module-builder": "^1.0.2",
|
|
88
|
-
"@nuxt/schema": "^4.
|
|
88
|
+
"@nuxt/schema": "^4.2.2",
|
|
89
89
|
"@types/node": "latest",
|
|
90
90
|
"changelogen": "^0.6.2",
|
|
91
|
-
"eslint": "^9.
|
|
91
|
+
"eslint": "^9.39.2",
|
|
92
92
|
"eslint-config-prettier": "^10.1.8",
|
|
93
93
|
"eslint-plugin-prettier": "^5.5.4",
|
|
94
|
-
"nuxt": "^4.
|
|
94
|
+
"nuxt": "^4.2.2",
|
|
95
95
|
"prettier-plugin-organize-imports": "^4.3.0",
|
|
96
|
-
"typescript": "~5.9.
|
|
97
|
-
"vue-tsc": "^3.
|
|
96
|
+
"typescript": "~5.9.3",
|
|
97
|
+
"vue-tsc": "^3.2.1"
|
|
98
98
|
}
|
|
99
99
|
}
|