@nuxtify/pages 0.4.5 → 0.5.0

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 CHANGED
@@ -1,12 +1,6 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
2
  import { ModuleOptions as ModuleOptions$1 } from '@nuxtify/core';
3
3
 
4
- type CoreEmailOptions = NonNullable<ModuleOptions$1['email']>;
5
- interface Email extends CoreEmailOptions {
6
- provider?: {
7
- defaultSubmitUrl?: string;
8
- };
9
- }
10
4
  interface PageModuleOptions {
11
5
  /**
12
6
  * Footer options
@@ -22,7 +16,13 @@ interface PageModuleOptions {
22
16
  /**
23
17
  * Email options
24
18
  */
25
- email?: Email;
19
+ email?: {
20
+ general?: string;
21
+ support?: string;
22
+ provider?: {
23
+ defaultSubmitUrl?: string;
24
+ };
25
+ };
26
26
  /**
27
27
  * Style options
28
28
  */
@@ -34,6 +34,28 @@ interface PageModuleOptions {
34
34
  }
35
35
  type ModuleOptions = Omit<ModuleOptions$1, keyof PageModuleOptions> & PageModuleOptions;
36
36
 
37
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
37
+ declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, {
38
+ brand: {
39
+ name: string;
40
+ };
41
+ footer: {
42
+ cta: {
43
+ show: false;
44
+ title: string;
45
+ subtitle: string;
46
+ color: string;
47
+ };
48
+ };
49
+ email: {
50
+ provider: {
51
+ defaultSubmitUrl: string;
52
+ };
53
+ };
54
+ style: {
55
+ btn: {
56
+ rounded: true;
57
+ };
58
+ };
59
+ }, true>;
38
60
 
39
61
  export { _default as default };
package/dist/module.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@nuxtify/pages",
3
- "version": "0.4.5",
3
+ "version": "0.5.0",
4
4
  "configKey": "nuxtifyPages",
5
5
  "compatibility": {
6
- "nuxt": ">=3.16.0",
7
- "bridge": false
6
+ "nuxt": ">=4.0.0"
8
7
  },
9
8
  "builder": {
10
- "@nuxt/module-builder": "1.0.1",
11
- "unbuild": "3.5.0"
9
+ "@nuxt/module-builder": "1.0.2",
10
+ "unbuild": "unknown"
12
11
  }
13
12
  }
package/dist/module.mjs CHANGED
@@ -1,17 +1,21 @@
1
- import { defineNuxtModule, createResolver, useLogger, installModule, addLayout, addComponentsDir, addImportsDir, extendPages } from '@nuxt/kit';
1
+ import { defineNuxtModule, createResolver, useLogger, addLayout, addComponentsDir, addImportsDir, extendPages } from '@nuxt/kit';
2
2
  import { defu } from 'defu';
3
3
 
4
4
  const name = "@nuxtify/pages";
5
- const version = "0.4.5";
5
+ const version = "0.5.0";
6
6
 
7
- const module = defineNuxtModule({
7
+ const module$1 = defineNuxtModule().with({
8
8
  meta: {
9
9
  name,
10
10
  version,
11
11
  configKey: "nuxtifyPages",
12
12
  compatibility: {
13
- nuxt: ">=3.16.0",
14
- bridge: false
13
+ nuxt: ">=4.0.0"
14
+ }
15
+ },
16
+ moduleDependencies: {
17
+ "@nuxtify/core": {
18
+ version: ">=0.1.11"
15
19
  }
16
20
  },
17
21
  defaults: {
@@ -41,36 +45,33 @@ const module = defineNuxtModule({
41
45
  }
42
46
  }
43
47
  },
44
- async setup(_options, _nuxt) {
45
- const resolver = createResolver(import.meta.url);
46
- const logger = useLogger("Nuxtify Pages");
47
- _nuxt.options.appConfig.nuxtify = defu(_nuxt.options.appConfig.nuxtify, {
48
- ..._options
49
- });
50
- await installModule("@nuxtify/core", {
51
- verboseLogs: _options.verboseLogs
48
+ async setup(resolvedOptions, nuxt) {
49
+ const { resolve } = createResolver(import.meta.url);
50
+ const logger = useLogger("nuxtify-pages");
51
+ nuxt.options.appConfig.nuxtify = defu(nuxt.options.appConfig.nuxtify, {
52
+ ...resolvedOptions
52
53
  });
53
54
  addLayout({
54
- src: resolver.resolve("./runtime/layouts/DefaultLayout.vue")
55
+ src: resolve("./runtime/layouts/DefaultLayout.vue")
55
56
  }, "default");
56
57
  addComponentsDir({
57
- path: resolver.resolve("./runtime/components")
58
+ path: resolve("./runtime/components")
58
59
  });
59
- addImportsDir(resolver.resolve("./runtime/composables"));
60
- addImportsDir(resolver.resolve("./runtime/utils"));
60
+ addImportsDir(resolve("./runtime/composables"));
61
+ addImportsDir(resolve("./runtime/utils"));
61
62
  extendPages((pages) => {
62
63
  pages.unshift({
63
64
  name: "index",
64
65
  path: "/",
65
- file: resolver.resolve("./runtime/pages/IndexPage.vue")
66
+ file: resolve("./runtime/pages/IndexPage.vue")
66
67
  });
67
68
  pages.unshift({
68
69
  name: "slug",
69
70
  path: "/:slug",
70
- file: resolver.resolve("./runtime/pages/DynamicSlug.vue")
71
+ file: resolve("./runtime/pages/DynamicSlug.vue")
71
72
  });
72
73
  });
73
- _nuxt.hook("imports:extend", (imports) => {
74
+ nuxt.hook("imports:extend", (imports) => {
74
75
  const coreImportIndex = imports.findIndex(
75
76
  (imp) => {
76
77
  return (imp.as || imp.name) === "useNuxtifyConfig" && imp.from.includes("@nuxtify/core");
@@ -78,10 +79,10 @@ const module = defineNuxtModule({
78
79
  );
79
80
  if (coreImportIndex > -1) {
80
81
  imports.splice(coreImportIndex, 1);
81
- if (_options.verboseLogs) logger.warn("[nuxtify-pages] Intentionally overriding useNuxtifyConfig from @nuxtify/core.");
82
+ if (resolvedOptions.verboseLogs) logger.info("Intentionally overriding useNuxtifyConfig from @nuxtify/core.");
82
83
  }
83
84
  });
84
85
  }
85
86
  });
86
87
 
87
- export { module as default };
88
+ export { module$1 as default };
@@ -1,4 +1,4 @@
1
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  submitUrl: {
3
3
  type: StringConstructor;
4
4
  required: true;
@@ -91,4 +91,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
91
91
  appendButtonIcon: string;
92
92
  prependButtonIcon: string;
93
93
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
94
+ declare const _default: typeof __VLS_export;
94
95
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
2
3
  export default _default;
@@ -28,7 +28,9 @@ const brandColWidth = computed(() => {
28
28
  :lg="brandColWidth"
29
29
  >
30
30
  <!-- Logo -->
31
- <AppLogo dark />
31
+ <NuxtLink to="/">
32
+ <AppLogo dark />
33
+ </NuxtLink>
32
34
 
33
35
  <!-- Tagline -->
34
36
  <p class="mt-2 clip-text">
@@ -1,2 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
2
3
  export default _default;
@@ -1,9 +1,10 @@
1
- declare var __VLS_26: {};
1
+ declare var __VLS_34: {};
2
2
  type __VLS_Slots = {} & {
3
- default?: (props: typeof __VLS_26) => any;
3
+ default?: (props: typeof __VLS_34) => any;
4
4
  };
5
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
7
8
  export default _default;
8
9
  type __VLS_WithSlots<T, S> = T & {
9
10
  new (): {
@@ -1,2 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
2
3
  export default _default;
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
- import { useNuxtifyConfig, useServerSeoMeta } from "#imports";
2
+ import { useNuxtifyConfig, useSeoMeta } from "#imports";
3
3
  const nuxtifyConfig = useNuxtifyConfig();
4
- useServerSeoMeta({
4
+ useSeoMeta({
5
5
  title: `${nuxtifyConfig.brand?.name}`,
6
6
  description: `This is the ${nuxtifyConfig.brand?.name} home page.`
7
7
  });
@@ -1,2 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
2
3
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxtify/pages",
3
- "version": "0.4.5",
3
+ "version": "0.5.0",
4
4
  "description": "Nuxtify pages module powered by Nuxt and Vuetify.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://nuxtify.dev",
@@ -38,28 +38,29 @@
38
38
  "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
39
39
  "release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
40
40
  "lint": "eslint .",
41
+ "lint:fix": "eslint . --fix",
41
42
  "test": "vitest run",
42
43
  "test:watch": "vitest watch",
43
44
  "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
44
45
  },
45
46
  "dependencies": {
46
- "@nuxtify/core": "^0.1.10",
47
+ "@nuxtify/core": "^0.2.1",
47
48
  "defu": "^6.1.4"
48
49
  },
49
50
  "devDependencies": {
50
- "@nuxt/devtools": "^2.5.0",
51
- "@nuxt/eslint": "^1.4.1",
51
+ "@nuxt/devtools": "^3.1.1",
52
+ "@nuxt/eslint": "^1.12.1",
52
53
  "@nuxt/eslint-config": "^1.4.1",
53
- "@nuxt/kit": "^3.17.5",
54
- "@nuxt/module-builder": "^1.0.1",
55
- "@nuxt/schema": "^3.17.5",
56
- "@nuxt/test-utils": "^3.19.1",
57
- "@types/node": "^22.15.32",
58
- "changelogen": "^0.6.1",
59
- "eslint": "^9.29.0",
60
- "nuxt": "^3.17.5",
61
- "typescript": "~5.8.2",
54
+ "@nuxt/kit": "^4.2.2",
55
+ "@nuxt/module-builder": "^1.0.2",
56
+ "@nuxt/schema": "^4.2.2",
57
+ "@nuxt/test-utils": "^3.23.0",
58
+ "@types/node": "^22.19.7",
59
+ "changelogen": "^0.6.2",
60
+ "eslint": "^9.39.2",
61
+ "nuxt": "^4.2.2",
62
+ "typescript": "^5.9.3",
62
63
  "vitest": "^3.2.4",
63
- "vue-tsc": "^2.2.10"
64
+ "vue-tsc": "^3.2.2"
64
65
  }
65
66
  }