nuxtseo-shared 0.8.0 → 0.8.2

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.
@@ -0,0 +1,26 @@
1
+ interface NuxtSEOModule {
2
+ slug: 'nuxt-seo' | 'site-config' | 'robots' | 'sitemap' | 'og-image' | 'link-checker' | 'seo-utils' | 'schema-org' | 'skew-protection' | 'ai-ready' | 'ai-kit';
3
+ label: string;
4
+ icon: string;
5
+ description: string;
6
+ repo: string;
7
+ npm: string;
8
+ pro?: boolean;
9
+ playgrounds?: Record<string, string>;
10
+ }
11
+ declare const NuxtSEO: NuxtSEOModule;
12
+ declare const SiteConfigModule: NuxtSEOModule;
13
+ declare const RobotsModule: NuxtSEOModule;
14
+ declare const SitemapModule: NuxtSEOModule;
15
+ declare const OgImageModule: NuxtSEOModule;
16
+ declare const LinkCheckerModule: NuxtSEOModule;
17
+ declare const SeoUtilsModule: NuxtSEOModule;
18
+ declare const SchemaOrgModule: NuxtSEOModule;
19
+ declare const SkewProtectionModule: NuxtSEOModule;
20
+ declare const AiReadyModule: NuxtSEOModule;
21
+ declare const modules: NuxtSEOModule[];
22
+ declare const normalModules: NuxtSEOModule[];
23
+ declare const proModules: NuxtSEOModule[];
24
+
25
+ export { AiReadyModule, LinkCheckerModule, NuxtSEO, OgImageModule, RobotsModule, SchemaOrgModule, SeoUtilsModule, SiteConfigModule, SitemapModule, SkewProtectionModule, modules, normalModules, proModules };
26
+ export type { NuxtSEOModule };
@@ -0,0 +1,26 @@
1
+ interface NuxtSEOModule {
2
+ slug: 'nuxt-seo' | 'site-config' | 'robots' | 'sitemap' | 'og-image' | 'link-checker' | 'seo-utils' | 'schema-org' | 'skew-protection' | 'ai-ready' | 'ai-kit';
3
+ label: string;
4
+ icon: string;
5
+ description: string;
6
+ repo: string;
7
+ npm: string;
8
+ pro?: boolean;
9
+ playgrounds?: Record<string, string>;
10
+ }
11
+ declare const NuxtSEO: NuxtSEOModule;
12
+ declare const SiteConfigModule: NuxtSEOModule;
13
+ declare const RobotsModule: NuxtSEOModule;
14
+ declare const SitemapModule: NuxtSEOModule;
15
+ declare const OgImageModule: NuxtSEOModule;
16
+ declare const LinkCheckerModule: NuxtSEOModule;
17
+ declare const SeoUtilsModule: NuxtSEOModule;
18
+ declare const SchemaOrgModule: NuxtSEOModule;
19
+ declare const SkewProtectionModule: NuxtSEOModule;
20
+ declare const AiReadyModule: NuxtSEOModule;
21
+ declare const modules: NuxtSEOModule[];
22
+ declare const normalModules: NuxtSEOModule[];
23
+ declare const proModules: NuxtSEOModule[];
24
+
25
+ export { AiReadyModule, LinkCheckerModule, NuxtSEO, OgImageModule, RobotsModule, SchemaOrgModule, SeoUtilsModule, SiteConfigModule, SitemapModule, SkewProtectionModule, modules, normalModules, proModules };
26
+ export type { NuxtSEOModule };
package/dist/const.mjs ADDED
@@ -0,0 +1,148 @@
1
+ const NuxtSEO = {
2
+ slug: "nuxt-seo",
3
+ label: "Nuxt SEO",
4
+ icon: "i-carbon-3rd-party-connected",
5
+ description: "The all-in-one module that brings it all together.",
6
+ repo: "harlan-zw/nuxt-seo",
7
+ npm: "@nuxtjs/seo",
8
+ playgrounds: {
9
+ basic: "https://stackblitz.com/github/harlan-zw/nuxt-seo/tree/main/examples/basic",
10
+ i18n: "https://stackblitz.com/github/harlan-zw/nuxt-seo/tree/main/examples/i18n"
11
+ }
12
+ };
13
+ const SiteConfigModule = {
14
+ slug: "site-config",
15
+ label: "Site Config",
16
+ icon: "i-carbon-settings-check",
17
+ description: "Powerful build and runtime shared site configuration for Nuxt modules.",
18
+ repo: "harlan-zw/nuxt-site-config",
19
+ npm: "nuxt-site-config",
20
+ playgrounds: {
21
+ "basic": "https://stackblitz.com/github/harlan-zw/nuxt-site-config/tree/main/examples/basic",
22
+ "env-driven": "https://stackblitz.com/github/harlan-zw/nuxt-site-config/tree/main/examples/env-driven",
23
+ "multi-site": "https://stackblitz.com/github/harlan-zw/nuxt-site-config/tree/main/examples/multi-site"
24
+ }
25
+ };
26
+ const RobotsModule = {
27
+ slug: "robots",
28
+ label: "Robots",
29
+ icon: "i-carbon-bot",
30
+ description: "Tame the robots crawling and indexing your site with ease.",
31
+ repo: "nuxt-modules/robots",
32
+ npm: "@nuxtjs/robots",
33
+ playgrounds: {
34
+ "basic": "https://stackblitz.com/github/nuxt-modules/robots/tree/main/examples/basic",
35
+ "i18n": "https://stackblitz.com/github/nuxt-modules/robots/tree/main/examples/i18n",
36
+ "custom-rules": "https://stackblitz.com/github/nuxt-modules/robots/tree/main/examples/custom-rules"
37
+ }
38
+ };
39
+ const SitemapModule = {
40
+ slug: "sitemap",
41
+ label: "Sitemap",
42
+ icon: "i-carbon-load-balancer-application",
43
+ description: "Powerfully flexible XML Sitemaps that integrate seamlessly.",
44
+ repo: "nuxt-modules/sitemap",
45
+ npm: "@nuxtjs/sitemap",
46
+ playgrounds: {
47
+ "basic": "https://stackblitz.com/github/nuxt-modules/sitemap/tree/main/examples/basic",
48
+ "i18n": "https://stackblitz.com/github/nuxt-modules/sitemap/tree/main/examples/i18n",
49
+ "dynamic-urls": "https://stackblitz.com/github/nuxt-modules/sitemap/tree/main/examples/dynamic-urls"
50
+ }
51
+ };
52
+ const OgImageModule = {
53
+ slug: "og-image",
54
+ label: "OG Image",
55
+ icon: "i-carbon-image-search",
56
+ description: "Generate OG Images with Vue templates in Nuxt.",
57
+ repo: "nuxt-modules/og-image",
58
+ npm: "nuxt-og-image",
59
+ playgrounds: {
60
+ "basic-satori": "https://stackblitz.com/github/nuxt-modules/og-image/tree/main/examples/basic-satori",
61
+ "basic-takumi": "https://stackblitz.com/github/nuxt-modules/og-image/tree/main/examples/basic-takumi",
62
+ "content": "https://stackblitz.com/github/nuxt-modules/og-image/tree/main/examples/content",
63
+ "i18n": "https://stackblitz.com/github/nuxt-modules/og-image/tree/main/examples/i18n"
64
+ }
65
+ };
66
+ const LinkCheckerModule = {
67
+ slug: "link-checker",
68
+ label: "Link Checker",
69
+ icon: "i-carbon-cloud-satellite-link",
70
+ description: "Find and magically fix links that may be negatively effecting your SEO.",
71
+ repo: "harlan-zw/nuxt-link-checker",
72
+ npm: "nuxt-link-checker",
73
+ playgrounds: {
74
+ "basic": "https://stackblitz.com/github/harlan-zw/nuxt-link-checker/tree/main/examples/basic",
75
+ "broken-links": "https://stackblitz.com/github/harlan-zw/nuxt-link-checker/tree/main/examples/broken-links",
76
+ "skip-inspection": "https://stackblitz.com/github/harlan-zw/nuxt-link-checker/tree/main/examples/skip-inspection"
77
+ }
78
+ };
79
+ const SeoUtilsModule = {
80
+ slug: "seo-utils",
81
+ label: "SEO Utils",
82
+ icon: "i-carbon-tools",
83
+ description: "SEO utilities to improve your Nuxt sites discoverability and shareability.",
84
+ repo: "harlan-zw/nuxt-seo-utils",
85
+ npm: "nuxt-seo-utils",
86
+ playgrounds: {
87
+ "basic": "https://stackblitz.com/github/harlan-zw/nuxt-seo-utils/tree/main/examples/basic",
88
+ "breadcrumbs": "https://stackblitz.com/github/harlan-zw/nuxt-seo-utils/tree/main/examples/breadcrumbs",
89
+ "meta-tags": "https://stackblitz.com/github/harlan-zw/nuxt-seo-utils/tree/main/examples/meta-tags"
90
+ }
91
+ };
92
+ const SchemaOrgModule = {
93
+ slug: "schema-org",
94
+ label: "Schema.org",
95
+ icon: "i-carbon-chart-relationship",
96
+ description: "The quickest and easiest way to build Schema.org graphs.",
97
+ repo: "harlan-zw/nuxt-schema-org",
98
+ npm: "nuxt-schema-org",
99
+ playgrounds: {
100
+ "basic": "https://stackblitz.com/github/harlan-zw/nuxt-schema-org/tree/main/examples/basic",
101
+ "blog": "https://stackblitz.com/github/harlan-zw/nuxt-schema-org/tree/main/examples/blog",
102
+ "e-commerce": "https://stackblitz.com/github/harlan-zw/nuxt-schema-org/tree/main/examples/e-commerce"
103
+ }
104
+ };
105
+ const SkewProtectionModule = {
106
+ slug: "skew-protection",
107
+ npm: "nuxt-skew-protection",
108
+ repo: "nuxt-seo-pro/nuxt-skew-protection",
109
+ description: "Solve Nuxt version skews with persistent assets and instant updates.",
110
+ label: "Skew Protection",
111
+ icon: "i-carbon-version",
112
+ pro: true
113
+ };
114
+ const AiReadyModule = {
115
+ slug: "ai-ready",
116
+ npm: "nuxt-ai-ready",
117
+ repo: "nuxt-seo-pro/nuxt-ai-ready",
118
+ description: "Best practice AI & LLM discoverability for Nuxt sites.",
119
+ label: "AI Ready",
120
+ icon: "i-carbon-ai-label",
121
+ pro: true
122
+ };
123
+ const modules = [
124
+ NuxtSEO,
125
+ RobotsModule,
126
+ SitemapModule,
127
+ OgImageModule,
128
+ SchemaOrgModule,
129
+ LinkCheckerModule,
130
+ SeoUtilsModule,
131
+ SiteConfigModule,
132
+ SkewProtectionModule,
133
+ AiReadyModule
134
+ ];
135
+ const normalModules = [
136
+ RobotsModule,
137
+ SitemapModule,
138
+ OgImageModule,
139
+ SchemaOrgModule,
140
+ LinkCheckerModule,
141
+ SeoUtilsModule
142
+ ];
143
+ const proModules = [
144
+ SkewProtectionModule,
145
+ AiReadyModule
146
+ ];
147
+
148
+ export { AiReadyModule, LinkCheckerModule, NuxtSEO, OgImageModule, RobotsModule, SchemaOrgModule, SeoUtilsModule, SiteConfigModule, SitemapModule, SkewProtectionModule, modules, normalModules, proModules };
package/dist/module.d.mts CHANGED
@@ -1,5 +1,17 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
+ import { NuxtSeoModuleDetection } from './kit.mjs';
3
+ import 'nitropack';
4
+ import 'nitropack/types';
5
+ import 'nuxt/schema';
2
6
 
7
+ interface ModuleHooks {
8
+ 'nuxt-seo-pro:modules': (modules: NuxtSeoModuleDetection[]) => Promise<void> | void;
9
+ }
10
+ declare module '@nuxt/schema' {
11
+ interface NuxtHooks extends ModuleHooks {
12
+ }
13
+ }
3
14
  declare const _default: _nuxt_schema.NuxtModule<_nuxt_schema.ModuleOptions, _nuxt_schema.ModuleOptions, false>;
4
15
 
5
16
  export { _default as default };
17
+ export type { ModuleHooks };
package/dist/module.d.ts CHANGED
@@ -1,5 +1,17 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
+ import { NuxtSeoModuleDetection } from './kit.js';
3
+ import 'nitropack';
4
+ import 'nitropack/types';
5
+ import 'nuxt/schema';
2
6
 
7
+ interface ModuleHooks {
8
+ 'nuxt-seo-pro:modules': (modules: NuxtSeoModuleDetection[]) => Promise<void> | void;
9
+ }
10
+ declare module '@nuxt/schema' {
11
+ interface NuxtHooks extends ModuleHooks {
12
+ }
13
+ }
3
14
  declare const _default: _nuxt_schema.NuxtModule<_nuxt_schema.ModuleOptions, _nuxt_schema.ModuleOptions, false>;
4
15
 
5
16
  export { _default as default };
17
+ export type { ModuleHooks };
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.16.0"
6
6
  },
7
- "version": "0.8.0",
7
+ "version": "0.8.2",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
package/dist/types.d.mts CHANGED
@@ -1,7 +1,13 @@
1
1
  import type { NuxtModule } from '@nuxt/schema'
2
2
 
3
- import type { default as Module } from './module.mjs'
3
+ import type { default as Module, ModuleHooks } from './module.mjs'
4
+
5
+ declare module '@nuxt/schema' {
6
+ interface NuxtHooks extends ModuleHooks {}
7
+ }
4
8
 
5
9
  export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
10
 
7
11
  export { default } from './module.mjs'
12
+
13
+ export { type ModuleHooks } from './module.mjs'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxtseo-shared",
3
3
  "type": "module",
4
- "version": "0.8.0",
4
+ "version": "0.8.2",
5
5
  "description": "Shared utilities for Nuxt SEO modules.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -38,6 +38,10 @@
38
38
  "types": "./dist/utils.d.mts",
39
39
  "import": "./dist/utils.mjs"
40
40
  },
41
+ "./const": {
42
+ "types": "./dist/const.d.mts",
43
+ "import": "./dist/const.mjs"
44
+ },
41
45
  "./package.json": "./package.json"
42
46
  },
43
47
  "main": "./dist/module.mjs",