@pixelated-tech/components 3.5.13 → 3.6.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/README.md +2 -0
- package/dist/components/admin/site-health/google.api.integration.js +258 -0
- package/dist/components/admin/site-health/google.api.utils.js +47 -0
- package/dist/components/admin/site-health/site-health-accessibility.js +5 -103
- package/dist/components/admin/site-health/site-health-axe-core.js +4 -10
- package/dist/components/admin/site-health/site-health-cloudwatch.js +24 -26
- package/dist/components/admin/site-health/site-health-dependency-vulnerabilities.js +4 -10
- package/dist/components/admin/site-health/site-health-github.js +9 -15
- package/dist/components/admin/site-health/site-health-google-analytics.integration.js +1 -107
- package/dist/components/admin/site-health/site-health-google-analytics.js +21 -29
- package/dist/components/admin/site-health/site-health-google-search-console.integration.js +1 -113
- package/dist/components/admin/site-health/site-health-google-search-console.js +22 -28
- package/dist/components/admin/site-health/site-health-on-site-seo.js +8 -82
- package/dist/components/admin/site-health/site-health-overview.js +5 -19
- package/dist/components/admin/site-health/site-health-performance.js +5 -167
- package/dist/components/admin/site-health/site-health-security.js +7 -148
- package/dist/components/admin/site-health/site-health-seo.js +5 -103
- package/dist/components/admin/site-health/site-health-template.js +68 -43
- package/dist/components/admin/site-health/site-health-uptime.js +4 -9
- package/dist/components/admin/site-health/site-health-utils.js +170 -0
- package/dist/components/admin/site-health/site-health.css +8 -9
- package/dist/index.adminclient.js +2 -5
- package/dist/index.adminserver.js +6 -4
- package/dist/index.js +39 -45
- package/dist/types/components/admin/site-health/google.api.integration.d.ts +82 -0
- package/dist/types/components/admin/site-health/google.api.integration.d.ts.map +1 -0
- package/dist/types/components/admin/site-health/google.api.utils.d.ts +32 -0
- package/dist/types/components/admin/site-health/google.api.utils.d.ts.map +1 -0
- package/dist/types/components/admin/site-health/site-health-accessibility.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-axe-core.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-cloudwatch.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-dependency-vulnerabilities.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-github.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-google-analytics.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-google-analytics.integration.d.ts +1 -21
- package/dist/types/components/admin/site-health/site-health-google-analytics.integration.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-google-search-console.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-google-search-console.integration.d.ts +1 -41
- package/dist/types/components/admin/site-health/site-health-google-search-console.integration.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-on-site-seo.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-overview.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-performance.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-security.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-seo.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-template.d.ts +8 -1
- package/dist/types/components/admin/site-health/site-health-template.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-uptime.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-utils.d.ts +17 -0
- package/dist/types/components/admin/site-health/site-health-utils.d.ts.map +1 -0
- package/dist/types/index.adminclient.d.ts +2 -5
- package/dist/types/index.adminserver.d.ts +6 -4
- package/dist/types/index.d.ts +38 -44
- package/dist/types/stories/admin/site-health.stories.d.ts.map +1 -1
- package/dist/types/tests/google.api.integration.test.d.ts +2 -0
- package/dist/types/tests/google.api.integration.test.d.ts.map +1 -0
- package/dist/types/tests/google.api.utils.test.d.ts +5 -0
- package/dist/types/tests/google.api.utils.test.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/components/admin/site-health/google-api-auth.js +0 -69
- package/dist/types/components/admin/site-health/google-api-auth.d.ts +0 -37
- package/dist/types/components/admin/site-health/google-api-auth.d.ts.map +0 -1
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
// Shared utilities for site-health components
|
|
2
|
+
// This file contains common functions used across multiple site-health components
|
|
3
|
+
import { getScoreIndicator } from './site-health-indicators';
|
|
4
|
+
/**
|
|
5
|
+
* Gets the icon for a score
|
|
6
|
+
*/
|
|
7
|
+
export function getAuditScoreIcon(score) {
|
|
8
|
+
return getScoreIndicator(score).icon;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Gets the color for a score
|
|
12
|
+
*/
|
|
13
|
+
export function getScoreColor(score) {
|
|
14
|
+
return getScoreIndicator(score).color;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Formats a score for display
|
|
18
|
+
*/
|
|
19
|
+
export function formatScore(score) {
|
|
20
|
+
if (score === null)
|
|
21
|
+
return 'N/A';
|
|
22
|
+
return `${Math.round(score * 100)}%`;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Formats audit item details for display
|
|
26
|
+
*/
|
|
27
|
+
export function formatAuditItem(item, auditTitle) {
|
|
28
|
+
// Handle URLs
|
|
29
|
+
if (item.url && typeof item.url === 'string') {
|
|
30
|
+
return item.url;
|
|
31
|
+
}
|
|
32
|
+
// Handle sources (like JavaScript files)
|
|
33
|
+
if (item.source && typeof item.source === 'string') {
|
|
34
|
+
return item.source;
|
|
35
|
+
}
|
|
36
|
+
// Handle text descriptions
|
|
37
|
+
if (item.text && typeof item.text === 'string') {
|
|
38
|
+
return item.text;
|
|
39
|
+
}
|
|
40
|
+
// Handle entities (like "Google Tag Manager")
|
|
41
|
+
if (item.entity && typeof item.entity === 'string') {
|
|
42
|
+
return item.entity;
|
|
43
|
+
}
|
|
44
|
+
// Handle nodes with selectors
|
|
45
|
+
if (item.node && typeof item.node === 'object' && 'selector' in item.node) {
|
|
46
|
+
return `Element: ${item.node.selector}`;
|
|
47
|
+
}
|
|
48
|
+
// Handle nodes with snippets
|
|
49
|
+
if (item.node && typeof item.node === 'object' && 'snippet' in item.node) {
|
|
50
|
+
const snippet = item.node.snippet;
|
|
51
|
+
return `Element: ${snippet.length > 50 ? snippet.substring(0, 50) + '...' : snippet}`;
|
|
52
|
+
}
|
|
53
|
+
// Handle origins (like domains)
|
|
54
|
+
if (item.origin && typeof item.origin === 'string') {
|
|
55
|
+
return item.origin;
|
|
56
|
+
}
|
|
57
|
+
// Handle labels
|
|
58
|
+
if (item.label && typeof item.label === 'string') {
|
|
59
|
+
return item.label;
|
|
60
|
+
}
|
|
61
|
+
// Handle numeric values with units
|
|
62
|
+
if (item.value && typeof item.value === 'object' && 'type' in item.value && item.value.type === 'numeric') {
|
|
63
|
+
const value = item.value;
|
|
64
|
+
return `${value.value}${item.unit || ''}`;
|
|
65
|
+
}
|
|
66
|
+
// Handle statistics
|
|
67
|
+
if (item.statistic && typeof item.statistic === 'string' && item.value) {
|
|
68
|
+
if (typeof item.value === 'object' && 'type' in item.value && item.value.type === 'numeric') {
|
|
69
|
+
const value = item.value;
|
|
70
|
+
return `${item.statistic}: ${value.value}`;
|
|
71
|
+
}
|
|
72
|
+
return item.statistic;
|
|
73
|
+
}
|
|
74
|
+
// Handle timing data with audit context
|
|
75
|
+
if (typeof item === 'number') {
|
|
76
|
+
let context = '';
|
|
77
|
+
if (auditTitle) {
|
|
78
|
+
if (auditTitle.toLowerCase().includes('server') || auditTitle.toLowerCase().includes('backend')) {
|
|
79
|
+
context = ' server response';
|
|
80
|
+
}
|
|
81
|
+
else if (auditTitle.toLowerCase().includes('network') || auditTitle.toLowerCase().includes('request')) {
|
|
82
|
+
context = ' network request';
|
|
83
|
+
}
|
|
84
|
+
else if (auditTitle.toLowerCase().includes('render') || auditTitle.toLowerCase().includes('blocking')) {
|
|
85
|
+
context = ' render blocking';
|
|
86
|
+
}
|
|
87
|
+
else if (auditTitle.toLowerCase().includes('javascript') || auditTitle.toLowerCase().includes('js')) {
|
|
88
|
+
context = ' JavaScript';
|
|
89
|
+
}
|
|
90
|
+
else if (auditTitle.toLowerCase().includes('image') || auditTitle.toLowerCase().includes('media')) {
|
|
91
|
+
context = ' media resource';
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return `${item.toFixed(2)}ms${context}`;
|
|
95
|
+
}
|
|
96
|
+
if (item.value && typeof item.value === 'number') {
|
|
97
|
+
const unit = item.unit || 'ms';
|
|
98
|
+
let context = '';
|
|
99
|
+
if (auditTitle && unit === 'ms') {
|
|
100
|
+
if (auditTitle.toLowerCase().includes('server')) {
|
|
101
|
+
context = ' server time';
|
|
102
|
+
}
|
|
103
|
+
else if (auditTitle.toLowerCase().includes('network')) {
|
|
104
|
+
context = ' network time';
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return `${item.value.toFixed(2)}${unit}${context}`;
|
|
108
|
+
}
|
|
109
|
+
// Handle timing data with more context
|
|
110
|
+
if (item.duration && typeof item.duration === 'number') {
|
|
111
|
+
const duration = item.duration;
|
|
112
|
+
let context = '';
|
|
113
|
+
if (item.url && typeof item.url === 'string') {
|
|
114
|
+
context = ` for ${item.url}`;
|
|
115
|
+
}
|
|
116
|
+
else if (item.source && typeof item.source === 'string') {
|
|
117
|
+
context = ` for ${item.source}`;
|
|
118
|
+
}
|
|
119
|
+
else if (item.name && typeof item.name === 'string') {
|
|
120
|
+
context = ` for ${item.name}`;
|
|
121
|
+
}
|
|
122
|
+
else if (item.path && typeof item.path === 'string') {
|
|
123
|
+
context = ` for ${item.path}`;
|
|
124
|
+
}
|
|
125
|
+
else if (item.request && typeof item.request === 'string') {
|
|
126
|
+
context = ` for ${item.request}`;
|
|
127
|
+
}
|
|
128
|
+
return `${duration.toFixed(2)}ms${context}`;
|
|
129
|
+
}
|
|
130
|
+
// Handle response times
|
|
131
|
+
if (item.responseTime && typeof item.responseTime === 'number') {
|
|
132
|
+
const url = (item.url && typeof item.url === 'string') ? ` (${item.url})` : '';
|
|
133
|
+
return `${item.responseTime.toFixed(2)}ms response time${url}`;
|
|
134
|
+
}
|
|
135
|
+
// Handle start/end times
|
|
136
|
+
if ((item.startTime || item.endTime) && typeof (item.startTime || item.endTime) === 'number') {
|
|
137
|
+
const start = item.startTime && typeof item.startTime === 'number' ? item.startTime.toFixed(2) : '?';
|
|
138
|
+
const end = item.endTime && typeof item.endTime === 'number' ? item.endTime.toFixed(2) : '?';
|
|
139
|
+
const url = (item.url && typeof item.url === 'string') ? ` for ${item.url}` : '';
|
|
140
|
+
return `${start}ms - ${end}ms${url}`;
|
|
141
|
+
}
|
|
142
|
+
// Handle transfer size with timing
|
|
143
|
+
if (item.transferSize && typeof item.transferSize === 'number' && item.duration && typeof item.duration === 'number') {
|
|
144
|
+
const size = (item.transferSize / 1024).toFixed(1);
|
|
145
|
+
const time = item.duration.toFixed(2);
|
|
146
|
+
const url = (item.url && typeof item.url === 'string') ? ` (${item.url})` : '';
|
|
147
|
+
return `${size} KB in ${time}ms${url}`;
|
|
148
|
+
}
|
|
149
|
+
// Handle main thread time
|
|
150
|
+
if (item.mainThreadTime && typeof item.mainThreadTime === 'number') {
|
|
151
|
+
return `${item.mainThreadTime.toFixed(1)}ms`;
|
|
152
|
+
}
|
|
153
|
+
// For other objects, try to find a meaningful display
|
|
154
|
+
if (item.group && typeof item.group === 'string') {
|
|
155
|
+
return item.group;
|
|
156
|
+
}
|
|
157
|
+
if (item.type && typeof item.type === 'string') {
|
|
158
|
+
return item.type;
|
|
159
|
+
}
|
|
160
|
+
// If we can't find anything meaningful, provide a generic description
|
|
161
|
+
// This handles raw timing data that might be from various performance metrics
|
|
162
|
+
if (typeof item === 'number') {
|
|
163
|
+
return `${item.toFixed(2)}ms`;
|
|
164
|
+
}
|
|
165
|
+
if (item.value && typeof item.value === 'number') {
|
|
166
|
+
const unit = item.unit || 'ms';
|
|
167
|
+
return `${item.value.toFixed(2)}${unit}`;
|
|
168
|
+
}
|
|
169
|
+
return 'Performance metric data available';
|
|
170
|
+
}
|
|
@@ -425,7 +425,7 @@ th, td {
|
|
|
425
425
|
}
|
|
426
426
|
|
|
427
427
|
/* Helper & Semantic classes */
|
|
428
|
-
.health-audit-list > * + * { margin-top: 0.
|
|
428
|
+
.health-audit-list > * + * { margin-top: 0.0rem; }
|
|
429
429
|
.health-section-list > * + * { margin-top: 1rem; }
|
|
430
430
|
|
|
431
431
|
.health-text-muted { color: #9ca3af; }
|
|
@@ -450,16 +450,15 @@ th, td {
|
|
|
450
450
|
font-weight: 500;
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
-
.health-truncate-text {
|
|
454
|
-
max-width: 20rem;
|
|
455
|
-
white-space: nowrap;
|
|
456
|
-
overflow: hidden;
|
|
457
|
-
text-overflow: ellipsis;
|
|
458
|
-
display: inline-block;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
453
|
.health-empty-state {
|
|
462
454
|
text-align: center;
|
|
463
455
|
padding: 1rem 0;
|
|
464
456
|
color: var(--color-text-secondary);
|
|
465
457
|
}
|
|
458
|
+
|
|
459
|
+
/* Print Styles */
|
|
460
|
+
@media print {
|
|
461
|
+
.site-health-header {
|
|
462
|
+
display: none;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
@@ -17,14 +17,11 @@ export * from './components/admin/site-health/site-health-seo';
|
|
|
17
17
|
export * from './components/admin/site-health/site-health-template';
|
|
18
18
|
export * from './components/admin/site-health/site-health-uptime';
|
|
19
19
|
// Client-safe admin components (can run on both client and server)
|
|
20
|
+
export * from './components/admin/site-health/google.api.utils';
|
|
20
21
|
export * from './components/admin/site-health/seo-constants';
|
|
21
22
|
export * from './components/admin/site-health/site-health-cache';
|
|
22
23
|
export * from './components/admin/site-health/site-health-indicators';
|
|
23
24
|
export * from './components/admin/site-health/site-health-on-site-seo.integration';
|
|
24
|
-
export * from './components/admin/site-health/site-health-types';
|
|
25
|
-
export * from './components/admin/site-health/site-health-performance';
|
|
26
|
-
export * from './components/admin/site-health/site-health-cache';
|
|
27
|
-
export * from './components/admin/site-health/site-health-indicators';
|
|
28
|
-
export * from './components/admin/site-health/site-health-on-site-seo.integration';
|
|
29
25
|
export * from './components/admin/site-health/site-health-performance';
|
|
30
26
|
export * from './components/admin/site-health/site-health-types';
|
|
27
|
+
export * from './components/admin/site-health/site-health-utils';
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
export * from './components/admin/componentusage/componentDiscovery';
|
|
2
1
|
export * from './components/admin/componentusage/componentAnalysis';
|
|
2
|
+
export * from './components/admin/componentusage/componentDiscovery';
|
|
3
3
|
export * from './components/admin/deploy/deployment.integration';
|
|
4
|
-
export * from './components/admin/site-health/google
|
|
4
|
+
export * from './components/admin/site-health/google.api.integration';
|
|
5
|
+
export * from './components/admin/site-health/google.api.utils';
|
|
6
|
+
export * from './components/admin/site-health/seo-constants';
|
|
5
7
|
export * from './components/admin/site-health/site-health-axe-core.integration';
|
|
6
8
|
export * from './components/admin/site-health/site-health-cache';
|
|
9
|
+
export * from './components/admin/site-health/site-health-cloudwatch.integration';
|
|
7
10
|
export * from './components/admin/site-health/site-health-core-web-vitals.integration';
|
|
8
11
|
export * from './components/admin/site-health/site-health-github.integration';
|
|
9
12
|
export * from './components/admin/site-health/site-health-google-analytics.integration';
|
|
10
13
|
export * from './components/admin/site-health/site-health-google-search-console.integration';
|
|
11
14
|
export * from './components/admin/site-health/site-health-indicators';
|
|
12
15
|
export * from './components/admin/site-health/site-health-on-site-seo.integration';
|
|
13
|
-
export * from './components/admin/site-health/site-health-cloudwatch.integration';
|
|
14
|
-
export * from './components/admin/site-health/seo-constants';
|
|
15
16
|
export * from './components/admin/site-health/site-health-security.integration';
|
|
16
17
|
export * from './components/admin/site-health/site-health-types';
|
|
17
18
|
export * from './components/admin/site-health/site-health-uptime.integration';
|
|
19
|
+
export * from './components/admin/site-health/site-health-utils';
|
|
18
20
|
export * from './components/admin/sites/sites.integration';
|
|
19
21
|
export * from './components/cms/contentful.management';
|
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
+
// sorted alphabetically and grouped by folder for easier reading
|
|
1
2
|
export * from './components/callout/callout';
|
|
2
3
|
export * from './components/carousel/carousel';
|
|
3
4
|
export * from './components/carousel/carousel.drag';
|
|
4
5
|
export * from './components/carousel/tiles';
|
|
5
6
|
export * from './components/cms/calendly';
|
|
6
7
|
export * from './components/cms/cloudinary';
|
|
7
|
-
export * from './components/cms/smartimage';
|
|
8
8
|
export * from './components/cms/contentful.delivery';
|
|
9
|
-
export * from './components/cms/contentful.management';
|
|
10
9
|
export * from './components/cms/contentful.items.components';
|
|
10
|
+
export * from './components/cms/contentful.management';
|
|
11
11
|
export * from './components/cms/flickr';
|
|
12
12
|
export * from './components/cms/google.reviews.components';
|
|
13
13
|
export * from './components/cms/google.reviews.functions';
|
|
14
|
-
export * from './components/cms/gravatar.functions';
|
|
15
14
|
export * from './components/cms/gravatar.components';
|
|
15
|
+
export * from './components/cms/gravatar.functions';
|
|
16
16
|
export * from './components/cms/hubspot.components';
|
|
17
|
-
export * from './components/cms/instagram.functions';
|
|
18
17
|
export * from './components/cms/instagram.components';
|
|
19
|
-
|
|
18
|
+
export * from './components/cms/instagram.functions';
|
|
19
|
+
export * from './components/cms/smartimage';
|
|
20
20
|
export * from './components/cms/wordpress.components';
|
|
21
21
|
export * from './components/cms/wordpress.functions';
|
|
22
22
|
export * from './components/cms/yelp';
|
|
@@ -24,8 +24,8 @@ export * from './components/config/config';
|
|
|
24
24
|
export * from './components/config/config.client';
|
|
25
25
|
export * from './components/config/config.server';
|
|
26
26
|
export * from './components/config/config.types';
|
|
27
|
-
export * from './components/general/css';
|
|
28
27
|
export * from './components/general/accordion';
|
|
28
|
+
export * from './components/general/css';
|
|
29
29
|
export * from './components/general/image';
|
|
30
30
|
export * from './components/general/loading';
|
|
31
31
|
export * from './components/general/microinteractions';
|
|
@@ -38,27 +38,48 @@ export * from './components/menu/menu-accordion';
|
|
|
38
38
|
export * from './components/menu/menu-expando';
|
|
39
39
|
export * from './components/menu/menu-simple';
|
|
40
40
|
export * from './components/nerdjoke/nerdjoke';
|
|
41
|
-
export * from './components/
|
|
42
|
-
export * from './components/
|
|
43
|
-
export * from './components/
|
|
44
|
-
export * from './components/
|
|
45
|
-
export * from './components/
|
|
46
|
-
export * from './components/
|
|
41
|
+
export * from './components/seo/404';
|
|
42
|
+
export * from './components/seo/faq-accordion';
|
|
43
|
+
export * from './components/seo/googleanalytics';
|
|
44
|
+
export * from './components/seo/googlemap';
|
|
45
|
+
export * from './components/seo/googlesearch';
|
|
46
|
+
export * from './components/seo/manifest';
|
|
47
|
+
export * from './components/seo/metadata.components';
|
|
48
|
+
export * from './components/seo/metadata.functions';
|
|
49
|
+
export * from './components/seo/schema-blogposting';
|
|
50
|
+
export * from './components/seo/schema-blogposting.functions';
|
|
51
|
+
export * from './components/seo/schema-faq';
|
|
52
|
+
export * from './components/seo/schema-localbusiness';
|
|
53
|
+
export * from './components/seo/schema-recipe';
|
|
54
|
+
export * from './components/seo/schema-services';
|
|
55
|
+
export * from './components/seo/schema-website';
|
|
56
|
+
export * from './components/seo/sitemap';
|
|
57
|
+
export * from './components/shoppingcart/ebay.components';
|
|
58
|
+
export * from './components/shoppingcart/ebay.functions';
|
|
59
|
+
export * from './components/shoppingcart/paypal';
|
|
60
|
+
export * from './components/shoppingcart/shoppingcart.components';
|
|
61
|
+
export * from './components/shoppingcart/shoppingcart.functions';
|
|
62
|
+
export * from './components/sitebuilder/config/CompoundFontSelector';
|
|
47
63
|
export * from './components/sitebuilder/config/ConfigBuilder';
|
|
48
64
|
export * from './components/sitebuilder/config/ConfigEngine';
|
|
49
65
|
export * from './components/sitebuilder/config/FontSelector';
|
|
50
|
-
export * from './components/sitebuilder/config/CompoundFontSelector';
|
|
51
66
|
export * from './components/sitebuilder/config/fonts';
|
|
52
67
|
export * from './components/sitebuilder/config/google-fonts';
|
|
68
|
+
export * from './components/sitebuilder/form/formbuilder';
|
|
53
69
|
export * from './components/sitebuilder/form/formcomponents';
|
|
54
|
-
export * from './components/sitebuilder/form/formtypes';
|
|
55
|
-
export * from './components/sitebuilder/form/formutils';
|
|
56
|
-
export * from './components/sitebuilder/form/formfieldvalidations';
|
|
57
70
|
export * from './components/sitebuilder/form/formemailer';
|
|
58
|
-
export * from './components/sitebuilder/form/formvalidator';
|
|
59
71
|
export * from './components/sitebuilder/form/formengine';
|
|
60
|
-
export * from './components/sitebuilder/form/formbuilder';
|
|
61
72
|
export * from './components/sitebuilder/form/formextractor';
|
|
73
|
+
export * from './components/sitebuilder/form/formfieldvalidations';
|
|
74
|
+
export * from './components/sitebuilder/form/formtypes';
|
|
75
|
+
export * from './components/sitebuilder/form/formutils';
|
|
76
|
+
export * from './components/sitebuilder/form/formvalidator';
|
|
77
|
+
export * from './components/sitebuilder/page/components/ComponentPropertiesForm';
|
|
78
|
+
export * from './components/sitebuilder/page/components/ComponentSelector';
|
|
79
|
+
export * from './components/sitebuilder/page/components/ComponentTree';
|
|
80
|
+
export * from './components/sitebuilder/page/components/PageBuilderUI';
|
|
81
|
+
export * from './components/sitebuilder/page/components/PageEngine';
|
|
82
|
+
export * from './components/sitebuilder/page/components/SaveLoadSection';
|
|
62
83
|
export * from './components/sitebuilder/page/lib/componentGeneration';
|
|
63
84
|
export * from './components/sitebuilder/page/lib/componentMap';
|
|
64
85
|
export * from './components/sitebuilder/page/lib/componentMetadata';
|
|
@@ -67,27 +88,6 @@ export * from './components/sitebuilder/page/lib/pageStorageTypes';
|
|
|
67
88
|
export * from './components/sitebuilder/page/lib/propTypeIntrospection';
|
|
68
89
|
export * from './components/sitebuilder/page/lib/types';
|
|
69
90
|
export * from './components/sitebuilder/page/lib/usePageBuilder';
|
|
70
|
-
export * from './components/seo/404';
|
|
71
|
-
export * from './components/seo/googleanalytics';
|
|
72
|
-
export * from './components/seo/googlemap';
|
|
73
|
-
export * from './components/seo/googlesearch';
|
|
74
|
-
export * from './components/seo/schema-localbusiness';
|
|
75
|
-
export * from './components/seo/schema-recipe';
|
|
76
|
-
export * from './components/seo/schema-services';
|
|
77
|
-
export * from './components/seo/schema-website';
|
|
78
|
-
export * from './components/seo/schema-blogposting';
|
|
79
|
-
export * from './components/seo/schema-blogposting.functions';
|
|
80
|
-
export * from './components/seo/schema-faq';
|
|
81
|
-
export * from './components/seo/faq-accordion';
|
|
82
|
-
export * from './components/seo/manifest';
|
|
83
|
-
export * from './components/seo/metadata.functions';
|
|
84
|
-
export * from './components/seo/metadata.components';
|
|
85
|
-
export * from './components/seo/sitemap';
|
|
86
|
-
export * from './components/shoppingcart/ebay.components';
|
|
87
|
-
export * from './components/shoppingcart/ebay.functions';
|
|
88
|
-
export * from './components/shoppingcart/paypal';
|
|
89
|
-
export * from './components/shoppingcart/shoppingcart.components';
|
|
90
|
-
export * from './components/shoppingcart/shoppingcart.functions';
|
|
91
91
|
export * from './components/structured/buzzwordbingo';
|
|
92
92
|
export * from './components/structured/markdown';
|
|
93
93
|
export * from './components/structured/recipe';
|
|
@@ -96,9 +96,3 @@ export * from './components/structured/socialcard';
|
|
|
96
96
|
export * from './components/structured/timeline';
|
|
97
97
|
export * from './components/utilities/functions';
|
|
98
98
|
export * from './components/utilities/gemini-api.client';
|
|
99
|
-
export * from './components/admin/site-health/site-health-overview';
|
|
100
|
-
export * from './components/admin/site-health/site-health-template';
|
|
101
|
-
export * from './components/admin/site-health/site-health-accessibility';
|
|
102
|
-
export * from './components/admin/site-health/site-health-performance';
|
|
103
|
-
export * from './components/admin/site-health/site-health-security';
|
|
104
|
-
export * from './components/admin/site-health/site-health-seo';
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google API Integration Services
|
|
3
|
+
* Centralized integration for Google services (Analytics, Search Console, etc.)
|
|
4
|
+
* Combines authentication, caching, and data processing logic
|
|
5
|
+
*/
|
|
6
|
+
export interface GoogleAuthConfig {
|
|
7
|
+
serviceAccountKey?: string;
|
|
8
|
+
clientId?: string;
|
|
9
|
+
clientSecret?: string;
|
|
10
|
+
refreshToken?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GoogleServiceAuth {
|
|
13
|
+
auth: any;
|
|
14
|
+
client: any;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Create authenticated Google API client for a specific service
|
|
18
|
+
*/
|
|
19
|
+
export declare function createGoogleAuthClient(config: GoogleAuthConfig, scopes: string[]): Promise<{
|
|
20
|
+
success: boolean;
|
|
21
|
+
auth?: any;
|
|
22
|
+
error?: string;
|
|
23
|
+
}>;
|
|
24
|
+
export interface GoogleAuthResult {
|
|
25
|
+
success: boolean;
|
|
26
|
+
auth?: any;
|
|
27
|
+
client?: any;
|
|
28
|
+
error?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Create Analytics Data API client
|
|
32
|
+
*/
|
|
33
|
+
export declare function createAnalyticsClient(config: GoogleAuthConfig): Promise<GoogleAuthResult>;
|
|
34
|
+
/**
|
|
35
|
+
* Create Search Console API client
|
|
36
|
+
*/
|
|
37
|
+
export declare function createSearchConsoleClient(config: GoogleAuthConfig): Promise<GoogleAuthResult>;
|
|
38
|
+
export interface GoogleAnalyticsConfig {
|
|
39
|
+
ga4PropertyId: string;
|
|
40
|
+
serviceAccountKey?: string;
|
|
41
|
+
clientId?: string;
|
|
42
|
+
clientSecret?: string;
|
|
43
|
+
refreshToken?: string;
|
|
44
|
+
}
|
|
45
|
+
export interface ChartDataPoint {
|
|
46
|
+
date: string;
|
|
47
|
+
currentPageViews: number;
|
|
48
|
+
previousPageViews: number;
|
|
49
|
+
}
|
|
50
|
+
export interface GoogleAnalyticsResponse {
|
|
51
|
+
success: boolean;
|
|
52
|
+
data?: ChartDataPoint[];
|
|
53
|
+
error?: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Get Google Analytics data for a site with current/previous period comparison
|
|
57
|
+
*/
|
|
58
|
+
export declare function getGoogleAnalyticsData(config: GoogleAnalyticsConfig, siteName: string, startDate?: string, endDate?: string): Promise<GoogleAnalyticsResponse>;
|
|
59
|
+
export interface SearchConsoleConfig {
|
|
60
|
+
siteUrl: string;
|
|
61
|
+
serviceAccountKey?: string;
|
|
62
|
+
clientId?: string;
|
|
63
|
+
clientSecret?: string;
|
|
64
|
+
refreshToken?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface SearchConsoleChartDataPoint {
|
|
67
|
+
date: string;
|
|
68
|
+
currentImpressions: number;
|
|
69
|
+
currentClicks: number;
|
|
70
|
+
previousImpressions: number;
|
|
71
|
+
previousClicks: number;
|
|
72
|
+
}
|
|
73
|
+
export interface SearchConsoleResponse {
|
|
74
|
+
success: boolean;
|
|
75
|
+
data?: SearchConsoleChartDataPoint[];
|
|
76
|
+
error?: string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Get Google Search Console data for a site with current/previous period comparison
|
|
80
|
+
*/
|
|
81
|
+
export declare function getSearchConsoleData(config: SearchConsoleConfig, siteName: string, startDate?: string, endDate?: string): Promise<SearchConsoleResponse>;
|
|
82
|
+
//# sourceMappingURL=google.api.integration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google.api.integration.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/google.api.integration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,MAAM,WAAW,gBAAgB;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,GAAG,CAAC;IACV,MAAM,EAAE,GAAG,CAAC;CACb;AAED;;GAEG;AACH,wBAAsB,sBAAsB,CAC3C,MAAM,EAAE,gBAAgB,EACxB,MAAM,EAAE,MAAM,EAAE,GACd,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,GAAG,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAmC3D;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAS/F;AAED;;GAEG;AACH,wBAAsB,yBAAyB,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CASnG;AAKD,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,uBAAuB;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,cAAc,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAKD;;GAEG;AACH,wBAAsB,sBAAsB,CAC3C,MAAM,EAAE,qBAAqB,EAC7B,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,uBAAuB,CAAC,CAmGlC;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,2BAA2B;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,2BAA2B,EAAE,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAKD;;GAEG;AACH,wBAAsB,oBAAoB,CACzC,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,qBAAqB,CAAC,CAyGhC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google API Integration Utilities
|
|
3
|
+
* Shared utility functions for Google API integrations
|
|
4
|
+
* These are NOT server actions - just regular utility functions
|
|
5
|
+
*/
|
|
6
|
+
export interface DateRange {
|
|
7
|
+
currentStart: Date;
|
|
8
|
+
currentEnd: Date;
|
|
9
|
+
previousStart: Date;
|
|
10
|
+
previousEnd: Date;
|
|
11
|
+
currentStartStr: string;
|
|
12
|
+
currentEndStr: string;
|
|
13
|
+
previousStartStr: string;
|
|
14
|
+
previousEndStr: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Calculate date ranges for current and previous periods
|
|
18
|
+
*/
|
|
19
|
+
export declare function calculateDateRanges(startDate?: string, endDate?: string): DateRange;
|
|
20
|
+
/**
|
|
21
|
+
* Format date for chart display
|
|
22
|
+
*/
|
|
23
|
+
export declare function formatChartDate(date: Date): string;
|
|
24
|
+
/**
|
|
25
|
+
* Get cached data or null if not cached
|
|
26
|
+
*/
|
|
27
|
+
export declare function getCachedData(cache: any, cacheKey: string): any;
|
|
28
|
+
/**
|
|
29
|
+
* Set cached data
|
|
30
|
+
*/
|
|
31
|
+
export declare function setCachedData(cache: any, cacheKey: string, data: any): void;
|
|
32
|
+
//# sourceMappingURL=google.api.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google.api.utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/google.api.utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,SAAS;IACxB,YAAY,EAAE,IAAI,CAAC;IACnB,UAAU,EAAE,IAAI,CAAC;IACjB,aAAa,EAAE,IAAI,CAAC;IACpB,WAAW,EAAE,IAAI,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAmBnF;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAKlD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,GAAG,GAAG,CAE/D;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,IAAI,CAE3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site-health-accessibility.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-accessibility.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"site-health-accessibility.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-accessibility.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AASnD,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC/F,wBAAgB,uBAAuB,CAAC,EAAE,QAAQ,EAAE,EAAE,2BAA2B,2CA8IhF;yBA9Ie,uBAAuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site-health-axe-core.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-axe-core.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAQnD,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,SAAS,CAAC,CAAC;AACnF,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"site-health-axe-core.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-axe-core.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAQnD,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,SAAS,CAAC,CAAC;AACnF,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE,qBAAqB,2CA4PpE;yBA5Pe,iBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site-health-cloudwatch.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-cloudwatch.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAiBnD,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,SAAS,CAAC,CAAC;AACzF,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,wBAAwB,
|
|
1
|
+
{"version":3,"file":"site-health-cloudwatch.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-cloudwatch.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAiBnD,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,SAAS,CAAC,CAAC;AACzF,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,wBAAwB,2CAqH9F;yBArHe,oBAAoB"}
|
package/dist/types/components/admin/site-health/site-health-dependency-vulnerabilities.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site-health-dependency-vulnerabilities.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-dependency-vulnerabilities.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAOnD,MAAM,MAAM,uCAAuC,GAAG,UAAU,CAAC,OAAO,mCAAmC,CAAC,SAAS,CAAC,CAAC;AACvH,wBAAgB,mCAAmC,CAAC,EAAE,QAAQ,EAAE,EAAE,uCAAuC,
|
|
1
|
+
{"version":3,"file":"site-health-dependency-vulnerabilities.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-dependency-vulnerabilities.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAOnD,MAAM,MAAM,uCAAuC,GAAG,UAAU,CAAC,OAAO,mCAAmC,CAAC,SAAS,CAAC,CAAC;AACvH,wBAAgB,mCAAmC,CAAC,EAAE,QAAQ,EAAE,EAAE,uCAAuC,2CA+IxG;yBA/Ie,mCAAmC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site-health-github.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-github.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAUnD,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,SAAS,CAAC,CAAC;AAC3E,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"site-health-github.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-github.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAUnD,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,SAAS,CAAC,CAAC;AAC3E,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,iBAAiB,2CAgEhF;yBAhEe,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site-health-google-analytics.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-google-analytics.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAenD,MAAM,MAAM,6BAA6B,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,SAAS,CAAC,CAAC;AACnG,wBAAgB,yBAAyB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,6BAA6B,
|
|
1
|
+
{"version":3,"file":"site-health-google-analytics.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-google-analytics.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAenD,MAAM,MAAM,6BAA6B,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,SAAS,CAAC,CAAC;AACnG,wBAAgB,yBAAyB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,6BAA6B,2CAoGxG;yBApGe,yBAAyB"}
|
package/dist/types/components/admin/site-health/site-health-google-analytics.integration.d.ts
CHANGED
|
@@ -2,25 +2,5 @@
|
|
|
2
2
|
* Google Analytics Integration Services
|
|
3
3
|
* Server-side utilities for Google Analytics data retrieval
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
6
|
-
ga4PropertyId: string;
|
|
7
|
-
serviceAccountKey?: string;
|
|
8
|
-
clientId?: string;
|
|
9
|
-
clientSecret?: string;
|
|
10
|
-
refreshToken?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface ChartDataPoint {
|
|
13
|
-
date: string;
|
|
14
|
-
currentPageViews: number;
|
|
15
|
-
previousPageViews: number;
|
|
16
|
-
}
|
|
17
|
-
export interface GoogleAnalyticsResponse {
|
|
18
|
-
success: boolean;
|
|
19
|
-
data?: ChartDataPoint[];
|
|
20
|
-
error?: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Get Google Analytics data for a site with current/previous period comparison
|
|
24
|
-
*/
|
|
25
|
-
export declare function getGoogleAnalyticsData(config: GoogleAnalyticsConfig, siteName: string, startDate?: string, endDate?: string): Promise<GoogleAnalyticsResponse>;
|
|
5
|
+
export {};
|
|
26
6
|
//# sourceMappingURL=site-health-google-analytics.integration.d.ts.map
|
package/dist/types/components/admin/site-health/site-health-google-analytics.integration.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site-health-google-analytics.integration.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-google-analytics.integration.ts"],"names":[],"mappings":"AAAA;;;GAGG
|
|
1
|
+
{"version":3,"file":"site-health-google-analytics.integration.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-google-analytics.integration.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site-health-google-search-console.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-google-search-console.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAiBnD,MAAM,MAAM,iCAAiC,GAAG,UAAU,CAAC,OAAO,6BAA6B,CAAC,SAAS,CAAC,CAAC;AAC3G,wBAAgB,6BAA6B,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,iCAAiC,
|
|
1
|
+
{"version":3,"file":"site-health-google-search-console.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-google-search-console.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAiBnD,MAAM,MAAM,iCAAiC,GAAG,UAAU,CAAC,OAAO,6BAA6B,CAAC,SAAS,CAAC,CAAC;AAC3G,wBAAgB,6BAA6B,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,iCAAiC,2CAkHhH;yBAlHe,6BAA6B"}
|
package/dist/types/components/admin/site-health/site-health-google-search-console.integration.d.ts
CHANGED
|
@@ -2,45 +2,5 @@
|
|
|
2
2
|
* Google Search Console Integration Services
|
|
3
3
|
* Server-side utilities for Google Search Console data retrieval
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
6
|
-
siteUrl: string;
|
|
7
|
-
serviceAccountKey?: string;
|
|
8
|
-
clientId?: string;
|
|
9
|
-
clientSecret?: string;
|
|
10
|
-
refreshToken?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface SearchConsoleData {
|
|
13
|
-
clicks: number;
|
|
14
|
-
impressions: number;
|
|
15
|
-
ctr: number;
|
|
16
|
-
position: number;
|
|
17
|
-
topQueries: Array<{
|
|
18
|
-
query: string;
|
|
19
|
-
clicks: number;
|
|
20
|
-
impressions: number;
|
|
21
|
-
position: number;
|
|
22
|
-
}>;
|
|
23
|
-
topPages: Array<{
|
|
24
|
-
page: string;
|
|
25
|
-
clicks: number;
|
|
26
|
-
impressions: number;
|
|
27
|
-
position: number;
|
|
28
|
-
}>;
|
|
29
|
-
}
|
|
30
|
-
export interface SearchConsoleChartDataPoint {
|
|
31
|
-
date: string;
|
|
32
|
-
currentImpressions: number;
|
|
33
|
-
currentClicks: number;
|
|
34
|
-
previousImpressions: number;
|
|
35
|
-
previousClicks: number;
|
|
36
|
-
}
|
|
37
|
-
export interface SearchConsoleResponse {
|
|
38
|
-
success: boolean;
|
|
39
|
-
data?: SearchConsoleChartDataPoint[];
|
|
40
|
-
error?: string;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Get Google Search Console data for a site with current/previous period comparison
|
|
44
|
-
*/
|
|
45
|
-
export declare function getSearchConsoleData(config: SearchConsoleConfig, siteName: string, startDate?: string, endDate?: string): Promise<SearchConsoleResponse>;
|
|
5
|
+
export {};
|
|
46
6
|
//# sourceMappingURL=site-health-google-search-console.integration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site-health-google-search-console.integration.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-google-search-console.integration.ts"],"names":[],"mappings":"AAAA;;;GAGG
|
|
1
|
+
{"version":3,"file":"site-health-google-search-console.integration.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-google-search-console.integration.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|