@seo-console/package 1.0.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.
@@ -0,0 +1,81 @@
1
+ export { GenerateMetadataOptions, getRoutePathFromParams, useGenerateMetadata } from './hooks/index.mjs';
2
+ import { S as SEORecord, C as CreateSEORecord, U as UpdateSEORecord } from './index-6lAOwFXQ.mjs';
3
+ export { B as Button, d as Card, i as CardContent, h as CardDescription, f as CardFooter, e as CardHeader, g as CardTitle, I as Input, O as OGImagePreview, b as SEORecordForm, a as SEORecordList, j as Spinner, V as ValidationDashboard, c as createSEORecordSchema, u as updateSEORecordSchema } from './index-6lAOwFXQ.mjs';
4
+ import 'next';
5
+ import 'react/jsx-runtime';
6
+ import 'zod';
7
+ import 'react';
8
+
9
+ type ValidationSeverity = "critical" | "warning" | "info";
10
+ interface ValidationIssue {
11
+ field: string;
12
+ severity: ValidationSeverity;
13
+ message: string;
14
+ expected?: string;
15
+ actual?: string;
16
+ }
17
+ interface ValidationResult {
18
+ isValid: boolean;
19
+ issues: ValidationIssue[];
20
+ validatedAt: Date;
21
+ }
22
+ /**
23
+ * Validate HTML content against SEO record requirements
24
+ */
25
+ declare function validateHTML(html: string, record: SEORecord, _baseUrl?: string): Promise<ValidationResult>;
26
+
27
+ interface ImageValidationResult {
28
+ isValid: boolean;
29
+ issues: Array<{
30
+ field: string;
31
+ severity: "critical" | "warning" | "info";
32
+ message: string;
33
+ expected?: string;
34
+ actual?: string;
35
+ }>;
36
+ metadata?: {
37
+ width: number;
38
+ height: number;
39
+ format: string;
40
+ size: number;
41
+ };
42
+ }
43
+ /**
44
+ * Validate OG image URL
45
+ * Checks dimensions, format, file size, and accessibility
46
+ */
47
+ declare function validateOGImage(imageUrl: string, expectedWidth?: number, expectedHeight?: number): Promise<ImageValidationResult>;
48
+
49
+ type Result<T, E = Error> = {
50
+ success: true;
51
+ data: T;
52
+ } | {
53
+ success: false;
54
+ error: E;
55
+ };
56
+ /**
57
+ * Get all SEO records for the current user
58
+ */
59
+ declare function getSEORecords(): Promise<Result<SEORecord[]>>;
60
+ /**
61
+ * Get a single SEO record by ID
62
+ */
63
+ declare function getSEORecordById(id: string): Promise<Result<SEORecord>>;
64
+ /**
65
+ * Get SEO record by route path
66
+ */
67
+ declare function getSEORecordByRoute(routePath: string): Promise<Result<SEORecord | null>>;
68
+ /**
69
+ * Create a new SEO record
70
+ */
71
+ declare function createSEORecord(record: CreateSEORecord): Promise<Result<SEORecord>>;
72
+ /**
73
+ * Update an existing SEO record
74
+ */
75
+ declare function updateSEORecord(record: UpdateSEORecord): Promise<Result<SEORecord>>;
76
+ /**
77
+ * Delete an SEO record
78
+ */
79
+ declare function deleteSEORecord(id: string): Promise<Result<void>>;
80
+
81
+ export { CreateSEORecord, type ImageValidationResult, SEORecord, UpdateSEORecord, type ValidationIssue, type ValidationResult, createSEORecord, deleteSEORecord, getSEORecords as getAllSEORecords, getSEORecordById, getSEORecordByRoute, updateSEORecord, validateHTML, validateOGImage };
@@ -0,0 +1,81 @@
1
+ export { GenerateMetadataOptions, getRoutePathFromParams, useGenerateMetadata } from './hooks/index.js';
2
+ import { S as SEORecord, C as CreateSEORecord, U as UpdateSEORecord } from './index-6lAOwFXQ.js';
3
+ export { B as Button, d as Card, i as CardContent, h as CardDescription, f as CardFooter, e as CardHeader, g as CardTitle, I as Input, O as OGImagePreview, b as SEORecordForm, a as SEORecordList, j as Spinner, V as ValidationDashboard, c as createSEORecordSchema, u as updateSEORecordSchema } from './index-6lAOwFXQ.js';
4
+ import 'next';
5
+ import 'react/jsx-runtime';
6
+ import 'zod';
7
+ import 'react';
8
+
9
+ type ValidationSeverity = "critical" | "warning" | "info";
10
+ interface ValidationIssue {
11
+ field: string;
12
+ severity: ValidationSeverity;
13
+ message: string;
14
+ expected?: string;
15
+ actual?: string;
16
+ }
17
+ interface ValidationResult {
18
+ isValid: boolean;
19
+ issues: ValidationIssue[];
20
+ validatedAt: Date;
21
+ }
22
+ /**
23
+ * Validate HTML content against SEO record requirements
24
+ */
25
+ declare function validateHTML(html: string, record: SEORecord, _baseUrl?: string): Promise<ValidationResult>;
26
+
27
+ interface ImageValidationResult {
28
+ isValid: boolean;
29
+ issues: Array<{
30
+ field: string;
31
+ severity: "critical" | "warning" | "info";
32
+ message: string;
33
+ expected?: string;
34
+ actual?: string;
35
+ }>;
36
+ metadata?: {
37
+ width: number;
38
+ height: number;
39
+ format: string;
40
+ size: number;
41
+ };
42
+ }
43
+ /**
44
+ * Validate OG image URL
45
+ * Checks dimensions, format, file size, and accessibility
46
+ */
47
+ declare function validateOGImage(imageUrl: string, expectedWidth?: number, expectedHeight?: number): Promise<ImageValidationResult>;
48
+
49
+ type Result<T, E = Error> = {
50
+ success: true;
51
+ data: T;
52
+ } | {
53
+ success: false;
54
+ error: E;
55
+ };
56
+ /**
57
+ * Get all SEO records for the current user
58
+ */
59
+ declare function getSEORecords(): Promise<Result<SEORecord[]>>;
60
+ /**
61
+ * Get a single SEO record by ID
62
+ */
63
+ declare function getSEORecordById(id: string): Promise<Result<SEORecord>>;
64
+ /**
65
+ * Get SEO record by route path
66
+ */
67
+ declare function getSEORecordByRoute(routePath: string): Promise<Result<SEORecord | null>>;
68
+ /**
69
+ * Create a new SEO record
70
+ */
71
+ declare function createSEORecord(record: CreateSEORecord): Promise<Result<SEORecord>>;
72
+ /**
73
+ * Update an existing SEO record
74
+ */
75
+ declare function updateSEORecord(record: UpdateSEORecord): Promise<Result<SEORecord>>;
76
+ /**
77
+ * Delete an SEO record
78
+ */
79
+ declare function deleteSEORecord(id: string): Promise<Result<void>>;
80
+
81
+ export { CreateSEORecord, type ImageValidationResult, SEORecord, UpdateSEORecord, type ValidationIssue, type ValidationResult, createSEORecord, deleteSEORecord, getSEORecords as getAllSEORecords, getSEORecordById, getSEORecordByRoute, updateSEORecord, validateHTML, validateOGImage };