@uptrademedia/site-kit 1.0.28 → 1.0.29
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-K2PERQLP.mjs → chunk-MLY7AWHG.mjs} +70 -55
- package/dist/chunk-MLY7AWHG.mjs.map +1 -0
- package/dist/{chunk-HHAJAANV.mjs → chunk-QY7CDW6P.mjs} +189 -34
- package/dist/chunk-QY7CDW6P.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-ZGT5ZYQ5.js} +189 -34
- package/dist/chunk-ZGT5ZYQ5.js.map +1 -0
- package/dist/commerce/index.d.mts +1 -1
- package/dist/commerce/index.d.ts +1 -1
- 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 +39 -35
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -11
- 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 +96 -245
- package/dist/seo/index.js.map +1 -1
- package/dist/seo/index.mjs +25 -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) {
|
|
@@ -394,10 +199,9 @@ async function ManagedSchema({
|
|
|
394
199
|
);
|
|
395
200
|
}
|
|
396
201
|
async function LLMSchema({
|
|
397
|
-
projectId,
|
|
398
202
|
path
|
|
399
203
|
}) {
|
|
400
|
-
const pageData = await
|
|
204
|
+
const { page: pageData } = await chunkFOBATMSH_js.getSEOPageData(path);
|
|
401
205
|
if (!pageData?.managed_llm_schema) {
|
|
402
206
|
return null;
|
|
403
207
|
}
|
|
@@ -597,14 +401,13 @@ function generateFAQSchema(items) {
|
|
|
597
401
|
});
|
|
598
402
|
}
|
|
599
403
|
async function ManagedFAQ({
|
|
600
|
-
projectId,
|
|
601
404
|
path,
|
|
602
405
|
className,
|
|
603
406
|
renderItem,
|
|
604
407
|
includeSchema = true,
|
|
605
408
|
showTitle = true
|
|
606
409
|
}) {
|
|
607
|
-
const faqData = await
|
|
410
|
+
const faqData = await chunkFOBATMSH_js.getFAQData(path);
|
|
608
411
|
if (!faqData || !faqData.items?.length) {
|
|
609
412
|
return null;
|
|
610
413
|
}
|
|
@@ -647,14 +450,13 @@ function DefaultLinkRenderer({ link }) {
|
|
|
647
450
|
);
|
|
648
451
|
}
|
|
649
452
|
async function ManagedInternalLinks({
|
|
650
|
-
projectId,
|
|
651
453
|
path,
|
|
652
454
|
position = "bottom",
|
|
653
455
|
limit = 5,
|
|
654
456
|
className,
|
|
655
457
|
renderLink
|
|
656
458
|
}) {
|
|
657
|
-
const links = await
|
|
459
|
+
const links = await chunkFOBATMSH_js.getInternalLinks(path, { position, limit });
|
|
658
460
|
if (!links.length) {
|
|
659
461
|
return null;
|
|
660
462
|
}
|
|
@@ -720,7 +522,6 @@ function getSchemaTypeForEntity(entityType) {
|
|
|
720
522
|
return typeMap[entityType] || "Thing";
|
|
721
523
|
}
|
|
722
524
|
async function ManagedContent({
|
|
723
|
-
projectId,
|
|
724
525
|
path,
|
|
725
526
|
section,
|
|
726
527
|
fallback,
|
|
@@ -728,7 +529,7 @@ async function ManagedContent({
|
|
|
728
529
|
components = {},
|
|
729
530
|
injectEntityAnnotations: shouldInjectEntities = false
|
|
730
531
|
}) {
|
|
731
|
-
const block = await
|
|
532
|
+
const block = await chunkFOBATMSH_js.getContentBlock(path, section);
|
|
732
533
|
if (!block) {
|
|
733
534
|
if (fallback) {
|
|
734
535
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: fallback });
|
|
@@ -738,7 +539,7 @@ async function ManagedContent({
|
|
|
738
539
|
let entities = [];
|
|
739
540
|
if (shouldInjectEntities) {
|
|
740
541
|
try {
|
|
741
|
-
entities = await
|
|
542
|
+
entities = await chunkFOBATMSH_js.getEntities();
|
|
742
543
|
} catch (err) {
|
|
743
544
|
console.warn("@uptrade/seo: Failed to fetch entities for annotation:", err);
|
|
744
545
|
}
|
|
@@ -798,15 +599,14 @@ async function ManagedContent({
|
|
|
798
599
|
return fallback ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: fallback }) : null;
|
|
799
600
|
}
|
|
800
601
|
}
|
|
801
|
-
async function getManagedContentData(
|
|
802
|
-
return
|
|
602
|
+
async function getManagedContentData(path, section) {
|
|
603
|
+
return chunkFOBATMSH_js.getContentBlock(path, section);
|
|
803
604
|
}
|
|
804
605
|
async function ManagedScripts({
|
|
805
|
-
projectId,
|
|
806
606
|
position,
|
|
807
607
|
path
|
|
808
608
|
}) {
|
|
809
|
-
const scripts = await
|
|
609
|
+
const scripts = await chunkFOBATMSH_js.getManagedScripts(position, path);
|
|
810
610
|
if (!scripts.length) {
|
|
811
611
|
return null;
|
|
812
612
|
}
|
|
@@ -815,7 +615,7 @@ async function ManagedScripts({
|
|
|
815
615
|
const attrs = {
|
|
816
616
|
key: script.id,
|
|
817
617
|
src: script.src,
|
|
818
|
-
|
|
618
|
+
async: true,
|
|
819
619
|
...script.defer && { defer: true },
|
|
820
620
|
...script.attributes
|
|
821
621
|
};
|
|
@@ -824,6 +624,7 @@ async function ManagedScripts({
|
|
|
824
624
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
825
625
|
"script",
|
|
826
626
|
{
|
|
627
|
+
async: true,
|
|
827
628
|
dangerouslySetInnerHTML: { __html: script.content || "" },
|
|
828
629
|
...script.attributes
|
|
829
630
|
},
|
|
@@ -832,10 +633,9 @@ async function ManagedScripts({
|
|
|
832
633
|
}) });
|
|
833
634
|
}
|
|
834
635
|
async function ManagedNoScripts({
|
|
835
|
-
projectId,
|
|
836
636
|
path
|
|
837
637
|
}) {
|
|
838
|
-
const scripts = await
|
|
638
|
+
const scripts = await chunkFOBATMSH_js.getManagedScripts("body-start", path);
|
|
839
639
|
const noscriptContent = scripts.filter((s) => s.attributes?.noscript).map((s) => s.attributes?.noscript).join("");
|
|
840
640
|
if (!noscriptContent) {
|
|
841
641
|
return null;
|
|
@@ -956,19 +756,87 @@ Object.defineProperty(exports, "SitemapSync", {
|
|
|
956
756
|
});
|
|
957
757
|
Object.defineProperty(exports, "generateSitemap", {
|
|
958
758
|
enumerable: true,
|
|
959
|
-
get: function () { return
|
|
759
|
+
get: function () { return chunk6NTMCSHP_js.generateSitemap; }
|
|
960
760
|
});
|
|
961
761
|
Object.defineProperty(exports, "getRedirect", {
|
|
962
762
|
enumerable: true,
|
|
963
|
-
get: function () { return
|
|
763
|
+
get: function () { return chunk6NTMCSHP_js.getRedirect; }
|
|
964
764
|
});
|
|
965
765
|
Object.defineProperty(exports, "getRobotsDirective", {
|
|
966
766
|
enumerable: true,
|
|
967
|
-
get: function () { return
|
|
767
|
+
get: function () { return chunk6NTMCSHP_js.getRobotsDirective; }
|
|
968
768
|
});
|
|
969
769
|
Object.defineProperty(exports, "isIndexable", {
|
|
970
770
|
enumerable: true,
|
|
971
|
-
get: function () { return
|
|
771
|
+
get: function () { return chunk6NTMCSHP_js.isIndexable; }
|
|
772
|
+
});
|
|
773
|
+
Object.defineProperty(exports, "getABTest", {
|
|
774
|
+
enumerable: true,
|
|
775
|
+
get: function () { return chunkFOBATMSH_js.getABTest; }
|
|
776
|
+
});
|
|
777
|
+
Object.defineProperty(exports, "getContentBlock", {
|
|
778
|
+
enumerable: true,
|
|
779
|
+
get: function () { return chunkFOBATMSH_js.getContentBlock; }
|
|
780
|
+
});
|
|
781
|
+
Object.defineProperty(exports, "getEntities", {
|
|
782
|
+
enumerable: true,
|
|
783
|
+
get: function () { return chunkFOBATMSH_js.getEntities; }
|
|
784
|
+
});
|
|
785
|
+
Object.defineProperty(exports, "getEntityEnhancedSchema", {
|
|
786
|
+
enumerable: true,
|
|
787
|
+
get: function () { return chunkFOBATMSH_js.getEntityEnhancedSchema; }
|
|
788
|
+
});
|
|
789
|
+
Object.defineProperty(exports, "getFAQData", {
|
|
790
|
+
enumerable: true,
|
|
791
|
+
get: function () { return chunkFOBATMSH_js.getFAQData; }
|
|
792
|
+
});
|
|
793
|
+
Object.defineProperty(exports, "getInternalLinks", {
|
|
794
|
+
enumerable: true,
|
|
795
|
+
get: function () { return chunkFOBATMSH_js.getInternalLinks; }
|
|
796
|
+
});
|
|
797
|
+
Object.defineProperty(exports, "getManagedScripts", {
|
|
798
|
+
enumerable: true,
|
|
799
|
+
get: function () { return chunkFOBATMSH_js.getManagedScripts; }
|
|
800
|
+
});
|
|
801
|
+
Object.defineProperty(exports, "getPrimaryEntity", {
|
|
802
|
+
enumerable: true,
|
|
803
|
+
get: function () { return chunkFOBATMSH_js.getPrimaryEntity; }
|
|
804
|
+
});
|
|
805
|
+
Object.defineProperty(exports, "getRedirectData", {
|
|
806
|
+
enumerable: true,
|
|
807
|
+
get: function () { return chunkFOBATMSH_js.getRedirectData; }
|
|
808
|
+
});
|
|
809
|
+
Object.defineProperty(exports, "getRobotsData", {
|
|
810
|
+
enumerable: true,
|
|
811
|
+
get: function () { return chunkFOBATMSH_js.getRobotsData; }
|
|
812
|
+
});
|
|
813
|
+
Object.defineProperty(exports, "getSEOPageData", {
|
|
814
|
+
enumerable: true,
|
|
815
|
+
get: function () { return chunkFOBATMSH_js.getSEOPageData; }
|
|
816
|
+
});
|
|
817
|
+
Object.defineProperty(exports, "getSchemaMarkups", {
|
|
818
|
+
enumerable: true,
|
|
819
|
+
get: function () { return chunkFOBATMSH_js.getSchemaMarkups; }
|
|
820
|
+
});
|
|
821
|
+
Object.defineProperty(exports, "getSitemapEntries", {
|
|
822
|
+
enumerable: true,
|
|
823
|
+
get: function () { return chunkFOBATMSH_js.getSitemapEntries; }
|
|
824
|
+
});
|
|
825
|
+
Object.defineProperty(exports, "getVisibilityScore", {
|
|
826
|
+
enumerable: true,
|
|
827
|
+
get: function () { return chunkFOBATMSH_js.getVisibilityScore; }
|
|
828
|
+
});
|
|
829
|
+
Object.defineProperty(exports, "getVisibilitySummary", {
|
|
830
|
+
enumerable: true,
|
|
831
|
+
get: function () { return chunkFOBATMSH_js.getVisibilitySummary; }
|
|
832
|
+
});
|
|
833
|
+
Object.defineProperty(exports, "recordABImpression", {
|
|
834
|
+
enumerable: true,
|
|
835
|
+
get: function () { return chunkFOBATMSH_js.recordABImpression; }
|
|
836
|
+
});
|
|
837
|
+
Object.defineProperty(exports, "registerSitemap", {
|
|
838
|
+
enumerable: true,
|
|
839
|
+
get: function () { return chunkFOBATMSH_js.registerSitemap; }
|
|
972
840
|
});
|
|
973
841
|
exports.LLMSchema = LLMSchema;
|
|
974
842
|
exports.LocationPageContent = LocationPageContent;
|
|
@@ -981,27 +849,10 @@ exports.ManagedScripts = ManagedScripts;
|
|
|
981
849
|
exports.createBreadcrumbSchema = createBreadcrumbSchema;
|
|
982
850
|
exports.createSchema = createSchema;
|
|
983
851
|
exports.default = ManagedSchema;
|
|
984
|
-
exports.getABTest = getABTest;
|
|
985
852
|
exports.getABVariant = getABVariant;
|
|
986
|
-
exports.getContentBlock = getContentBlock2;
|
|
987
|
-
exports.getEntities = getEntities2;
|
|
988
|
-
exports.getEntityEnhancedSchema = getEntityEnhancedSchema2;
|
|
989
|
-
exports.getFAQData = getFAQData2;
|
|
990
|
-
exports.getInternalLinks = getInternalLinks2;
|
|
991
853
|
exports.getLocationSection = getLocationSection;
|
|
992
854
|
exports.getManagedContentData = getManagedContentData;
|
|
993
855
|
exports.getManagedMetadata = getManagedMetadata;
|
|
994
856
|
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
857
|
//# sourceMappingURL=index.js.map
|
|
1007
858
|
//# sourceMappingURL=index.js.map
|