@uptrademedia/site-kit 1.0.28 → 1.0.30
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/{chunk-FRSN2JKU.js → chunk-6NTMCSHP.js} +15 -18
- package/dist/chunk-6NTMCSHP.js.map +1 -0
- package/dist/{chunk-WMOA3332.js → chunk-FOBATMSH.js} +70 -55
- package/dist/chunk-FOBATMSH.js.map +1 -0
- package/dist/{chunk-HHAJAANV.mjs → chunk-L474IOHD.mjs} +198 -38
- package/dist/chunk-L474IOHD.mjs.map +1 -0
- package/dist/{chunk-K2PERQLP.mjs → chunk-MLY7AWHG.mjs} +70 -55
- package/dist/chunk-MLY7AWHG.mjs.map +1 -0
- package/dist/{chunk-JOAULVQB.mjs → chunk-WG2SI2UN.mjs} +15 -18
- package/dist/chunk-WG2SI2UN.mjs.map +1 -0
- package/dist/{chunk-RM4XFDE6.js → chunk-WNCM4GNY.js} +198 -38
- package/dist/chunk-WNCM4GNY.js.map +1 -0
- package/dist/commerce/index.d.mts +4 -2
- package/dist/commerce/index.d.ts +4 -2
- package/dist/commerce/index.js +39 -39
- package/dist/commerce/index.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +42 -36
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -12
- package/dist/index.mjs.map +1 -1
- package/dist/{routing-D6bSzuw-.d.ts → routing-CHmSC8p0.d.ts} +1 -1
- package/dist/{routing-nObgWX16.d.mts → routing-Cy9vtQq8.d.mts} +1 -1
- package/dist/seo/index.d.mts +28 -28
- package/dist/seo/index.d.ts +28 -28
- package/dist/seo/index.js +98 -245
- package/dist/seo/index.js.map +1 -1
- package/dist/seo/index.mjs +27 -224
- package/dist/seo/index.mjs.map +1 -1
- package/dist/seo/register-sitemap-cli.js +3 -3
- package/dist/seo/register-sitemap-cli.mjs +2 -2
- package/dist/seo/server.d.mts +2 -2
- package/dist/seo/server.d.ts +2 -2
- package/dist/seo/server.js +185 -44
- package/dist/seo/server.js.map +1 -1
- package/dist/seo/server.mjs +183 -2
- package/dist/seo/server.mjs.map +1 -1
- package/dist/{api-EXKDAYGB.mjs → server-api-3HJLLZB7.mjs} +3 -3
- package/dist/server-api-3HJLLZB7.mjs.map +1 -0
- package/dist/{api-HBENRDUH.js → server-api-RM25RPFH.js} +20 -20
- package/dist/server-api-RM25RPFH.js.map +1 -0
- package/dist/{types-Cb9d3lkc.d.mts → types-CwyWiHtq.d.mts} +22 -11
- package/dist/{types-Cb9d3lkc.d.ts → types-CwyWiHtq.d.ts} +22 -11
- package/package.json +1 -1
- package/dist/api-EXKDAYGB.mjs.map +0 -1
- package/dist/api-HBENRDUH.js.map +0 -1
- package/dist/chunk-FRSN2JKU.js.map +0 -1
- package/dist/chunk-HHAJAANV.mjs.map +0 -1
- package/dist/chunk-JOAULVQB.mjs.map +0 -1
- package/dist/chunk-K2PERQLP.mjs.map +0 -1
- package/dist/chunk-RM4XFDE6.js.map +0 -1
- package/dist/chunk-WMOA3332.js.map +0 -1
package/dist/seo/index.js
CHANGED
|
@@ -3,209 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var chunkHCFPU7TU_js = require('../chunk-HCFPU7TU.js');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var chunk6NTMCSHP_js = require('../chunk-6NTMCSHP.js');
|
|
7
|
+
var chunkFOBATMSH_js = require('../chunk-FOBATMSH.js');
|
|
8
8
|
require('../chunk-ZSMWDLMK.js');
|
|
9
|
-
var react = require('react');
|
|
10
|
-
require('server-only');
|
|
11
9
|
var jsxRuntime = require('react/jsx-runtime');
|
|
12
|
-
|
|
13
|
-
function getSecureApiConfig() {
|
|
14
|
-
const apiUrl = process.env.UPTRADE_API_URL || process.env.NEXT_PUBLIC_UPTRADE_API_URL || "https://api.uptrademedia.com";
|
|
15
|
-
const apiKey = process.env.UPTRADE_API_KEY || process.env.NEXT_PUBLIC_UPTRADE_API_KEY || "";
|
|
16
|
-
const projectId = process.env.UPTRADE_PROJECT_ID || process.env.NEXT_PUBLIC_UPTRADE_PROJECT_ID || "";
|
|
17
|
-
if (!apiKey) {
|
|
18
|
-
throw new Error("@uptrade/seo: UPTRADE_API_KEY or NEXT_PUBLIC_UPTRADE_API_KEY environment variable is required for server-side SEO functions");
|
|
19
|
-
}
|
|
20
|
-
return { apiUrl, apiKey, projectId };
|
|
21
|
-
}
|
|
22
|
-
async function secureApiPost(endpoint, body = {}) {
|
|
23
|
-
const { apiUrl, apiKey } = getSecureApiConfig();
|
|
24
|
-
try {
|
|
25
|
-
const response = await fetch(`${apiUrl}${endpoint}`, {
|
|
26
|
-
method: "POST",
|
|
27
|
-
headers: {
|
|
28
|
-
"Content-Type": "application/json",
|
|
29
|
-
"x-api-key": apiKey
|
|
30
|
-
},
|
|
31
|
-
body: JSON.stringify(body),
|
|
32
|
-
next: { revalidate: 60 }
|
|
33
|
-
// Cache for 60 seconds
|
|
34
|
-
});
|
|
35
|
-
if (!response.ok) {
|
|
36
|
-
console.error(`@uptrade/seo: API error ${response.status}: ${response.statusText}`);
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
return await response.json();
|
|
40
|
-
} catch (error) {
|
|
41
|
-
console.error("@uptrade/seo: Network error:", error);
|
|
42
|
-
return null;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
var getSEOPageData2 = react.cache(async (projectId, path) => {
|
|
46
|
-
const result = await secureApiPost("/api/public/seo/page", {
|
|
47
|
-
projectId,
|
|
48
|
-
path
|
|
49
|
-
});
|
|
50
|
-
return {
|
|
51
|
-
page: result?.page || null,
|
|
52
|
-
project: result?.project || null
|
|
53
|
-
};
|
|
54
|
-
});
|
|
55
|
-
var getSchemaMarkups2 = react.cache(async (projectId, path, options) => {
|
|
56
|
-
const result = await secureApiPost("/api/public/seo/schemas", {
|
|
57
|
-
projectId,
|
|
58
|
-
path,
|
|
59
|
-
includeTypes: options?.includeTypes,
|
|
60
|
-
excludeTypes: options?.excludeTypes
|
|
61
|
-
});
|
|
62
|
-
return result?.schemas || [];
|
|
63
|
-
});
|
|
64
|
-
var getFAQData2 = react.cache(async (projectId, path) => {
|
|
65
|
-
const result = await secureApiPost("/api/public/seo/faq", {
|
|
66
|
-
projectId,
|
|
67
|
-
path
|
|
68
|
-
});
|
|
69
|
-
return result?.faq || null;
|
|
70
|
-
});
|
|
71
|
-
var getInternalLinks2 = react.cache(async (projectId, sourcePath, options) => {
|
|
72
|
-
const result = await secureApiPost("/api/public/seo/internal-links", {
|
|
73
|
-
projectId,
|
|
74
|
-
sourcePath,
|
|
75
|
-
position: options?.position,
|
|
76
|
-
limit: options?.limit
|
|
77
|
-
});
|
|
78
|
-
return result?.links || [];
|
|
79
|
-
});
|
|
80
|
-
var getContentBlock2 = react.cache(async (projectId, path, section) => {
|
|
81
|
-
const result = await secureApiPost("/api/public/seo/content", {
|
|
82
|
-
projectId,
|
|
83
|
-
path,
|
|
84
|
-
section
|
|
85
|
-
});
|
|
86
|
-
return result?.content || null;
|
|
87
|
-
});
|
|
88
|
-
var getABTest = react.cache(async (projectId, path, field) => {
|
|
89
|
-
const result = await secureApiPost("/api/public/seo/ab-test", {
|
|
90
|
-
projectId,
|
|
91
|
-
path,
|
|
92
|
-
field
|
|
93
|
-
});
|
|
94
|
-
return result?.test || null;
|
|
95
|
-
});
|
|
96
|
-
async function recordABImpression(testId, variant, sessionId) {
|
|
97
|
-
await secureApiPost("/api/public/seo/ab-impression", { testId, variant, sessionId });
|
|
98
|
-
}
|
|
99
|
-
var getRedirectData = react.cache(async (projectId, path) => {
|
|
100
|
-
const result = await secureApiPost("/api/public/seo/redirect", {
|
|
101
|
-
projectId,
|
|
102
|
-
path
|
|
103
|
-
});
|
|
104
|
-
return result?.redirect || null;
|
|
105
|
-
});
|
|
106
|
-
var getManagedScripts2 = react.cache(async (projectId, position, currentPath) => {
|
|
107
|
-
const result = await secureApiPost("/api/public/seo/scripts", {
|
|
108
|
-
projectId,
|
|
109
|
-
position,
|
|
110
|
-
currentPath
|
|
111
|
-
});
|
|
112
|
-
return result?.scripts || [];
|
|
113
|
-
});
|
|
114
|
-
var getRobotsData = react.cache(async (projectId, path) => {
|
|
115
|
-
const result = await secureApiPost("/api/public/seo/page", {
|
|
116
|
-
projectId,
|
|
117
|
-
path
|
|
118
|
-
});
|
|
119
|
-
return result?.page?.managed_robots || null;
|
|
120
|
-
});
|
|
121
|
-
var getSitemapEntries = react.cache(async (projectId, options) => {
|
|
122
|
-
const result = await secureApiPost("/api/public/seo/sitemap", {
|
|
123
|
-
projectId,
|
|
124
|
-
publishedOnly: options?.publishedOnly
|
|
125
|
-
});
|
|
126
|
-
return result?.entries || [];
|
|
127
|
-
});
|
|
128
|
-
async function registerSitemap(entries) {
|
|
129
|
-
const { apiUrl, apiKey, projectId } = getSecureApiConfig();
|
|
130
|
-
try {
|
|
131
|
-
const response = await fetch(`${apiUrl}/api/public/seo/register-sitemap`, {
|
|
132
|
-
method: "POST",
|
|
133
|
-
headers: {
|
|
134
|
-
"Content-Type": "application/json",
|
|
135
|
-
"x-api-key": apiKey
|
|
136
|
-
},
|
|
137
|
-
body: JSON.stringify({ projectId, entries })
|
|
138
|
-
});
|
|
139
|
-
if (!response.ok) {
|
|
140
|
-
console.error(`@uptrade/seo: Sitemap registration failed: ${response.statusText}`);
|
|
141
|
-
return { success: false, created: 0, updated: 0 };
|
|
142
|
-
}
|
|
143
|
-
return await response.json();
|
|
144
|
-
} catch (error) {
|
|
145
|
-
console.error("@uptrade/seo: Sitemap registration error:", error);
|
|
146
|
-
return { success: false, created: 0, updated: 0 };
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
function getSignalApiConfig() {
|
|
150
|
-
const apiUrl = process.env.SIGNAL_API_URL || process.env.NEXT_PUBLIC_SIGNAL_API_URL || "https://signal.uptrademedia.com";
|
|
151
|
-
const apiKey = process.env.UPTRADE_API_KEY || "";
|
|
152
|
-
return { apiUrl, apiKey };
|
|
153
|
-
}
|
|
154
|
-
async function signalApiGet(endpoint) {
|
|
155
|
-
const { apiUrl, apiKey } = getSignalApiConfig();
|
|
156
|
-
if (!apiKey) {
|
|
157
|
-
return null;
|
|
158
|
-
}
|
|
159
|
-
try {
|
|
160
|
-
const response = await fetch(`${apiUrl}${endpoint}`, {
|
|
161
|
-
method: "GET",
|
|
162
|
-
headers: {
|
|
163
|
-
"Content-Type": "application/json",
|
|
164
|
-
"x-api-key": apiKey
|
|
165
|
-
},
|
|
166
|
-
next: { revalidate: 300 }
|
|
167
|
-
// Cache for 5 minutes
|
|
168
|
-
});
|
|
169
|
-
if (!response.ok) {
|
|
170
|
-
return null;
|
|
171
|
-
}
|
|
172
|
-
const result = await response.json();
|
|
173
|
-
return result?.data || result;
|
|
174
|
-
} catch (error) {
|
|
175
|
-
console.error("@uptrade/seo: Signal API error:", error);
|
|
176
|
-
return null;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
var getEntities2 = react.cache(async (projectId, options) => {
|
|
180
|
-
let endpoint = `/skills/seo/entities/${projectId}`;
|
|
181
|
-
if (options?.type) {
|
|
182
|
-
endpoint += `?type=${options.type}`;
|
|
183
|
-
}
|
|
184
|
-
const result = await signalApiGet(endpoint);
|
|
185
|
-
return result || [];
|
|
186
|
-
});
|
|
187
|
-
var getPrimaryEntity = react.cache(async (projectId) => {
|
|
188
|
-
return signalApiGet(`/skills/seo/entities/${projectId}/primary`);
|
|
189
|
-
});
|
|
190
|
-
var getEntityEnhancedSchema2 = react.cache(async (projectId, pagePath) => {
|
|
191
|
-
const result = await signalApiGet(
|
|
192
|
-
`/skills/seo/schema/${projectId}/entity-enhanced?pagePath=${encodeURIComponent(pagePath)}`
|
|
193
|
-
);
|
|
194
|
-
return result?.schemas || [];
|
|
195
|
-
});
|
|
196
|
-
var getVisibilityScore = react.cache(async (projectId, pagePath) => {
|
|
197
|
-
const result = await signalApiGet(`/skills/seo/visibility/${projectId}`);
|
|
198
|
-
if (!result) return null;
|
|
199
|
-
return result.find((s) => s.page_path === pagePath) || null;
|
|
200
|
-
});
|
|
201
|
-
var getVisibilitySummary = react.cache(async (projectId) => {
|
|
202
|
-
return signalApiGet(`/skills/seo/visibility/${projectId}/summary`);
|
|
203
|
-
});
|
|
10
|
+
var react = require('react');
|
|
204
11
|
|
|
205
12
|
// src/seo/getManagedMetadata.ts
|
|
206
13
|
async function getManagedMetadata(options) {
|
|
207
|
-
const {
|
|
208
|
-
const result = await
|
|
14
|
+
const { path, fallback = {}, overrides = {} } = options;
|
|
15
|
+
const result = await chunkFOBATMSH_js.getSEOPageData(path);
|
|
209
16
|
const pageData = result?.page;
|
|
210
17
|
const projectData = result?.project;
|
|
211
18
|
if (!pageData) {
|
|
@@ -283,8 +90,8 @@ async function getManagedMetadata(options) {
|
|
|
283
90
|
};
|
|
284
91
|
}
|
|
285
92
|
async function getABVariant(options) {
|
|
286
|
-
const {
|
|
287
|
-
const test = await getABTest(
|
|
93
|
+
const { path, field, sessionId } = options;
|
|
94
|
+
const test = await chunkFOBATMSH_js.getABTest(path, field);
|
|
288
95
|
if (!test) {
|
|
289
96
|
return null;
|
|
290
97
|
}
|
|
@@ -297,7 +104,7 @@ async function getABVariant(options) {
|
|
|
297
104
|
} else {
|
|
298
105
|
variant = Math.random() < test.traffic_split ? "a" : "b";
|
|
299
106
|
}
|
|
300
|
-
recordABImpression(test.id, variant, sessionId).catch(() => {
|
|
107
|
+
chunkFOBATMSH_js.recordABImpression(test.id, variant, sessionId).catch(() => {
|
|
301
108
|
});
|
|
302
109
|
return {
|
|
303
110
|
testId: test.id,
|
|
@@ -309,7 +116,6 @@ async function getManagedMetadataWithAB(options) {
|
|
|
309
116
|
const { sessionId, ...metadataOptions } = options;
|
|
310
117
|
const metadata = await getManagedMetadata(metadataOptions);
|
|
311
118
|
const titleTest = await getABVariant({
|
|
312
|
-
projectId: options.projectId,
|
|
313
119
|
path: options.path,
|
|
314
120
|
field: "title",
|
|
315
121
|
sessionId
|
|
@@ -318,7 +124,6 @@ async function getManagedMetadataWithAB(options) {
|
|
|
318
124
|
metadata.title = titleTest.value;
|
|
319
125
|
}
|
|
320
126
|
const descTest = await getABVariant({
|
|
321
|
-
projectId: options.projectId,
|
|
322
127
|
path: options.path,
|
|
323
128
|
field: "description",
|
|
324
129
|
sessionId
|
|
@@ -336,7 +141,6 @@ var DEFAULT_SPEAKABLE_SELECTORS = [
|
|
|
336
141
|
'.aeo-block[data-speakable="true"]'
|
|
337
142
|
];
|
|
338
143
|
async function ManagedSchema({
|
|
339
|
-
projectId,
|
|
340
144
|
path,
|
|
341
145
|
additionalSchemas = [],
|
|
342
146
|
includeTypes,
|
|
@@ -347,20 +151,21 @@ async function ManagedSchema({
|
|
|
347
151
|
pageUrl,
|
|
348
152
|
includeEntityGraph = false
|
|
349
153
|
}) {
|
|
350
|
-
const schemas = await
|
|
154
|
+
const schemas = await chunkFOBATMSH_js.getSchemaMarkups(path, {
|
|
351
155
|
includeTypes,
|
|
352
156
|
excludeTypes
|
|
353
157
|
});
|
|
354
|
-
const pageData = await
|
|
158
|
+
const pageData = await chunkFOBATMSH_js.getSEOPageData(path);
|
|
355
159
|
let entitySchemas = [];
|
|
356
160
|
if (includeEntityGraph) {
|
|
357
|
-
entitySchemas = await
|
|
161
|
+
entitySchemas = await chunkFOBATMSH_js.getEntityEnhancedSchema(path);
|
|
358
162
|
}
|
|
163
|
+
const page = pageData?.page;
|
|
359
164
|
const allSchemas = [
|
|
360
165
|
...entitySchemas,
|
|
361
166
|
...schemas.map((s) => s.schema_json),
|
|
362
167
|
// Include auto-generated schema from Signal meta optimization
|
|
363
|
-
...
|
|
168
|
+
...page?.managed_schema ? [page.managed_schema] : [],
|
|
364
169
|
...additionalSchemas
|
|
365
170
|
];
|
|
366
171
|
if (speakable && pageName && pageUrl) {
|
|
@@ -387,6 +192,7 @@ async function ManagedSchema({
|
|
|
387
192
|
"script",
|
|
388
193
|
{
|
|
389
194
|
type: "application/ld+json",
|
|
195
|
+
async: true,
|
|
390
196
|
dangerouslySetInnerHTML: {
|
|
391
197
|
__html: JSON.stringify(finalSchema, null, 0)
|
|
392
198
|
}
|
|
@@ -394,10 +200,9 @@ async function ManagedSchema({
|
|
|
394
200
|
);
|
|
395
201
|
}
|
|
396
202
|
async function LLMSchema({
|
|
397
|
-
projectId,
|
|
398
203
|
path
|
|
399
204
|
}) {
|
|
400
|
-
const pageData = await
|
|
205
|
+
const { page: pageData } = await chunkFOBATMSH_js.getSEOPageData(path);
|
|
401
206
|
if (!pageData?.managed_llm_schema) {
|
|
402
207
|
return null;
|
|
403
208
|
}
|
|
@@ -413,6 +218,7 @@ async function LLMSchema({
|
|
|
413
218
|
{
|
|
414
219
|
type: "application/ld+json",
|
|
415
220
|
"data-llm-optimized": "true",
|
|
221
|
+
async: true,
|
|
416
222
|
dangerouslySetInnerHTML: {
|
|
417
223
|
__html: JSON.stringify(llmSchema, null, 0)
|
|
418
224
|
}
|
|
@@ -597,14 +403,13 @@ function generateFAQSchema(items) {
|
|
|
597
403
|
});
|
|
598
404
|
}
|
|
599
405
|
async function ManagedFAQ({
|
|
600
|
-
projectId,
|
|
601
406
|
path,
|
|
602
407
|
className,
|
|
603
408
|
renderItem,
|
|
604
409
|
includeSchema = true,
|
|
605
410
|
showTitle = true
|
|
606
411
|
}) {
|
|
607
|
-
const faqData = await
|
|
412
|
+
const faqData = await chunkFOBATMSH_js.getFAQData(path);
|
|
608
413
|
if (!faqData || !faqData.items?.length) {
|
|
609
414
|
return null;
|
|
610
415
|
}
|
|
@@ -647,14 +452,13 @@ function DefaultLinkRenderer({ link }) {
|
|
|
647
452
|
);
|
|
648
453
|
}
|
|
649
454
|
async function ManagedInternalLinks({
|
|
650
|
-
projectId,
|
|
651
455
|
path,
|
|
652
456
|
position = "bottom",
|
|
653
457
|
limit = 5,
|
|
654
458
|
className,
|
|
655
459
|
renderLink
|
|
656
460
|
}) {
|
|
657
|
-
const links = await
|
|
461
|
+
const links = await chunkFOBATMSH_js.getInternalLinks(path, { position, limit });
|
|
658
462
|
if (!links.length) {
|
|
659
463
|
return null;
|
|
660
464
|
}
|
|
@@ -720,7 +524,6 @@ function getSchemaTypeForEntity(entityType) {
|
|
|
720
524
|
return typeMap[entityType] || "Thing";
|
|
721
525
|
}
|
|
722
526
|
async function ManagedContent({
|
|
723
|
-
projectId,
|
|
724
527
|
path,
|
|
725
528
|
section,
|
|
726
529
|
fallback,
|
|
@@ -728,7 +531,7 @@ async function ManagedContent({
|
|
|
728
531
|
components = {},
|
|
729
532
|
injectEntityAnnotations: shouldInjectEntities = false
|
|
730
533
|
}) {
|
|
731
|
-
const block = await
|
|
534
|
+
const block = await chunkFOBATMSH_js.getContentBlock(path, section);
|
|
732
535
|
if (!block) {
|
|
733
536
|
if (fallback) {
|
|
734
537
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: fallback });
|
|
@@ -738,7 +541,7 @@ async function ManagedContent({
|
|
|
738
541
|
let entities = [];
|
|
739
542
|
if (shouldInjectEntities) {
|
|
740
543
|
try {
|
|
741
|
-
entities = await
|
|
544
|
+
entities = await chunkFOBATMSH_js.getEntities();
|
|
742
545
|
} catch (err) {
|
|
743
546
|
console.warn("@uptrade/seo: Failed to fetch entities for annotation:", err);
|
|
744
547
|
}
|
|
@@ -798,15 +601,14 @@ async function ManagedContent({
|
|
|
798
601
|
return fallback ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: fallback }) : null;
|
|
799
602
|
}
|
|
800
603
|
}
|
|
801
|
-
async function getManagedContentData(
|
|
802
|
-
return
|
|
604
|
+
async function getManagedContentData(path, section) {
|
|
605
|
+
return chunkFOBATMSH_js.getContentBlock(path, section);
|
|
803
606
|
}
|
|
804
607
|
async function ManagedScripts({
|
|
805
|
-
projectId,
|
|
806
608
|
position,
|
|
807
609
|
path
|
|
808
610
|
}) {
|
|
809
|
-
const scripts = await
|
|
611
|
+
const scripts = await chunkFOBATMSH_js.getManagedScripts(position, path);
|
|
810
612
|
if (!scripts.length) {
|
|
811
613
|
return null;
|
|
812
614
|
}
|
|
@@ -815,7 +617,7 @@ async function ManagedScripts({
|
|
|
815
617
|
const attrs = {
|
|
816
618
|
key: script.id,
|
|
817
619
|
src: script.src,
|
|
818
|
-
|
|
620
|
+
async: true,
|
|
819
621
|
...script.defer && { defer: true },
|
|
820
622
|
...script.attributes
|
|
821
623
|
};
|
|
@@ -824,6 +626,7 @@ async function ManagedScripts({
|
|
|
824
626
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
825
627
|
"script",
|
|
826
628
|
{
|
|
629
|
+
async: true,
|
|
827
630
|
dangerouslySetInnerHTML: { __html: script.content || "" },
|
|
828
631
|
...script.attributes
|
|
829
632
|
},
|
|
@@ -832,10 +635,9 @@ async function ManagedScripts({
|
|
|
832
635
|
}) });
|
|
833
636
|
}
|
|
834
637
|
async function ManagedNoScripts({
|
|
835
|
-
projectId,
|
|
836
638
|
path
|
|
837
639
|
}) {
|
|
838
|
-
const scripts = await
|
|
640
|
+
const scripts = await chunkFOBATMSH_js.getManagedScripts("body-start", path);
|
|
839
641
|
const noscriptContent = scripts.filter((s) => s.attributes?.noscript).map((s) => s.attributes?.noscript).join("");
|
|
840
642
|
if (!noscriptContent) {
|
|
841
643
|
return null;
|
|
@@ -956,19 +758,87 @@ Object.defineProperty(exports, "SitemapSync", {
|
|
|
956
758
|
});
|
|
957
759
|
Object.defineProperty(exports, "generateSitemap", {
|
|
958
760
|
enumerable: true,
|
|
959
|
-
get: function () { return
|
|
761
|
+
get: function () { return chunk6NTMCSHP_js.generateSitemap; }
|
|
960
762
|
});
|
|
961
763
|
Object.defineProperty(exports, "getRedirect", {
|
|
962
764
|
enumerable: true,
|
|
963
|
-
get: function () { return
|
|
765
|
+
get: function () { return chunk6NTMCSHP_js.getRedirect; }
|
|
964
766
|
});
|
|
965
767
|
Object.defineProperty(exports, "getRobotsDirective", {
|
|
966
768
|
enumerable: true,
|
|
967
|
-
get: function () { return
|
|
769
|
+
get: function () { return chunk6NTMCSHP_js.getRobotsDirective; }
|
|
968
770
|
});
|
|
969
771
|
Object.defineProperty(exports, "isIndexable", {
|
|
970
772
|
enumerable: true,
|
|
971
|
-
get: function () { return
|
|
773
|
+
get: function () { return chunk6NTMCSHP_js.isIndexable; }
|
|
774
|
+
});
|
|
775
|
+
Object.defineProperty(exports, "getABTest", {
|
|
776
|
+
enumerable: true,
|
|
777
|
+
get: function () { return chunkFOBATMSH_js.getABTest; }
|
|
778
|
+
});
|
|
779
|
+
Object.defineProperty(exports, "getContentBlock", {
|
|
780
|
+
enumerable: true,
|
|
781
|
+
get: function () { return chunkFOBATMSH_js.getContentBlock; }
|
|
782
|
+
});
|
|
783
|
+
Object.defineProperty(exports, "getEntities", {
|
|
784
|
+
enumerable: true,
|
|
785
|
+
get: function () { return chunkFOBATMSH_js.getEntities; }
|
|
786
|
+
});
|
|
787
|
+
Object.defineProperty(exports, "getEntityEnhancedSchema", {
|
|
788
|
+
enumerable: true,
|
|
789
|
+
get: function () { return chunkFOBATMSH_js.getEntityEnhancedSchema; }
|
|
790
|
+
});
|
|
791
|
+
Object.defineProperty(exports, "getFAQData", {
|
|
792
|
+
enumerable: true,
|
|
793
|
+
get: function () { return chunkFOBATMSH_js.getFAQData; }
|
|
794
|
+
});
|
|
795
|
+
Object.defineProperty(exports, "getInternalLinks", {
|
|
796
|
+
enumerable: true,
|
|
797
|
+
get: function () { return chunkFOBATMSH_js.getInternalLinks; }
|
|
798
|
+
});
|
|
799
|
+
Object.defineProperty(exports, "getManagedScripts", {
|
|
800
|
+
enumerable: true,
|
|
801
|
+
get: function () { return chunkFOBATMSH_js.getManagedScripts; }
|
|
802
|
+
});
|
|
803
|
+
Object.defineProperty(exports, "getPrimaryEntity", {
|
|
804
|
+
enumerable: true,
|
|
805
|
+
get: function () { return chunkFOBATMSH_js.getPrimaryEntity; }
|
|
806
|
+
});
|
|
807
|
+
Object.defineProperty(exports, "getRedirectData", {
|
|
808
|
+
enumerable: true,
|
|
809
|
+
get: function () { return chunkFOBATMSH_js.getRedirectData; }
|
|
810
|
+
});
|
|
811
|
+
Object.defineProperty(exports, "getRobotsData", {
|
|
812
|
+
enumerable: true,
|
|
813
|
+
get: function () { return chunkFOBATMSH_js.getRobotsData; }
|
|
814
|
+
});
|
|
815
|
+
Object.defineProperty(exports, "getSEOPageData", {
|
|
816
|
+
enumerable: true,
|
|
817
|
+
get: function () { return chunkFOBATMSH_js.getSEOPageData; }
|
|
818
|
+
});
|
|
819
|
+
Object.defineProperty(exports, "getSchemaMarkups", {
|
|
820
|
+
enumerable: true,
|
|
821
|
+
get: function () { return chunkFOBATMSH_js.getSchemaMarkups; }
|
|
822
|
+
});
|
|
823
|
+
Object.defineProperty(exports, "getSitemapEntries", {
|
|
824
|
+
enumerable: true,
|
|
825
|
+
get: function () { return chunkFOBATMSH_js.getSitemapEntries; }
|
|
826
|
+
});
|
|
827
|
+
Object.defineProperty(exports, "getVisibilityScore", {
|
|
828
|
+
enumerable: true,
|
|
829
|
+
get: function () { return chunkFOBATMSH_js.getVisibilityScore; }
|
|
830
|
+
});
|
|
831
|
+
Object.defineProperty(exports, "getVisibilitySummary", {
|
|
832
|
+
enumerable: true,
|
|
833
|
+
get: function () { return chunkFOBATMSH_js.getVisibilitySummary; }
|
|
834
|
+
});
|
|
835
|
+
Object.defineProperty(exports, "recordABImpression", {
|
|
836
|
+
enumerable: true,
|
|
837
|
+
get: function () { return chunkFOBATMSH_js.recordABImpression; }
|
|
838
|
+
});
|
|
839
|
+
Object.defineProperty(exports, "registerSitemap", {
|
|
840
|
+
enumerable: true,
|
|
841
|
+
get: function () { return chunkFOBATMSH_js.registerSitemap; }
|
|
972
842
|
});
|
|
973
843
|
exports.LLMSchema = LLMSchema;
|
|
974
844
|
exports.LocationPageContent = LocationPageContent;
|
|
@@ -981,27 +851,10 @@ exports.ManagedScripts = ManagedScripts;
|
|
|
981
851
|
exports.createBreadcrumbSchema = createBreadcrumbSchema;
|
|
982
852
|
exports.createSchema = createSchema;
|
|
983
853
|
exports.default = ManagedSchema;
|
|
984
|
-
exports.getABTest = getABTest;
|
|
985
854
|
exports.getABVariant = getABVariant;
|
|
986
|
-
exports.getContentBlock = getContentBlock2;
|
|
987
|
-
exports.getEntities = getEntities2;
|
|
988
|
-
exports.getEntityEnhancedSchema = getEntityEnhancedSchema2;
|
|
989
|
-
exports.getFAQData = getFAQData2;
|
|
990
|
-
exports.getInternalLinks = getInternalLinks2;
|
|
991
855
|
exports.getLocationSection = getLocationSection;
|
|
992
856
|
exports.getManagedContentData = getManagedContentData;
|
|
993
857
|
exports.getManagedMetadata = getManagedMetadata;
|
|
994
858
|
exports.getManagedMetadataWithAB = getManagedMetadataWithAB;
|
|
995
|
-
exports.getManagedScripts = getManagedScripts2;
|
|
996
|
-
exports.getPrimaryEntity = getPrimaryEntity;
|
|
997
|
-
exports.getRedirectData = getRedirectData;
|
|
998
|
-
exports.getRobotsData = getRobotsData;
|
|
999
|
-
exports.getSEOPageData = getSEOPageData2;
|
|
1000
|
-
exports.getSchemaMarkups = getSchemaMarkups2;
|
|
1001
|
-
exports.getSitemapEntries = getSitemapEntries;
|
|
1002
|
-
exports.getVisibilityScore = getVisibilityScore;
|
|
1003
|
-
exports.getVisibilitySummary = getVisibilitySummary;
|
|
1004
|
-
exports.recordABImpression = recordABImpression;
|
|
1005
|
-
exports.registerSitemap = registerSitemap;
|
|
1006
859
|
//# sourceMappingURL=index.js.map
|
|
1007
860
|
//# sourceMappingURL=index.js.map
|