@sonordev/site-kit 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-ZL6JFDT4.js → chunk-ELDJDBQL.js} +7 -7
- package/dist/{chunk-ZL6JFDT4.js.map → chunk-ELDJDBQL.js.map} +1 -1
- package/dist/{chunk-6QEO2A7G.mjs → chunk-FI2ME55T.mjs} +3 -3
- package/dist/{chunk-6QEO2A7G.mjs.map → chunk-FI2ME55T.mjs.map} +1 -1
- package/dist/{chunk-6M4AATTY.mjs → chunk-FMB2RZDH.mjs} +74 -35
- package/dist/chunk-FMB2RZDH.mjs.map +1 -0
- package/dist/{chunk-7NYBJBWW.js → chunk-GJD4CFHN.js} +3 -3
- package/dist/{chunk-7NYBJBWW.js.map → chunk-GJD4CFHN.js.map} +1 -1
- package/dist/{chunk-YC66QIW3.js → chunk-KJN2C6YE.js} +5 -5
- package/dist/{chunk-YC66QIW3.js.map → chunk-KJN2C6YE.js.map} +1 -1
- package/dist/{chunk-3SIQRU2K.mjs → chunk-M5FLRLHI.mjs} +3 -3
- package/dist/{chunk-3SIQRU2K.mjs.map → chunk-M5FLRLHI.mjs.map} +1 -1
- package/dist/{chunk-RLMJUAPT.mjs → chunk-NRNK7LXK.mjs} +4 -4
- package/dist/{chunk-RLMJUAPT.mjs.map → chunk-NRNK7LXK.mjs.map} +1 -1
- package/dist/{chunk-M55H4IJY.js → chunk-PTTDKFL7.js} +74 -35
- package/dist/chunk-PTTDKFL7.js.map +1 -0
- package/dist/layout/index.js +4 -4
- package/dist/layout/index.mjs +2 -2
- package/dist/llms/index.js +12 -12
- package/dist/llms/index.mjs +2 -2
- package/dist/seo/index.d.mts +21 -3
- package/dist/seo/index.d.ts +21 -3
- package/dist/seo/index.js +40 -40
- package/dist/seo/index.mjs +4 -4
- package/dist/seo/server.js +4 -4
- package/dist/seo/server.mjs +2 -2
- package/dist/{server-api-TV7XVM3H.mjs → server-api-COVFLFZ2.mjs} +3 -3
- package/dist/{server-api-TV7XVM3H.mjs.map → server-api-COVFLFZ2.mjs.map} +1 -1
- package/dist/{server-api-33ZUJVY7.js → server-api-XGKRGUMG.js} +21 -21
- package/dist/{server-api-33ZUJVY7.js.map → server-api-XGKRGUMG.js.map} +1 -1
- package/dist/sitemap/index.js +2 -2
- package/dist/sitemap/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-6M4AATTY.mjs.map +0 -1
- package/dist/chunk-M55H4IJY.js.map +0 -1
package/dist/layout/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SiteKitClientProviders } from '../chunk-35MALWVX.mjs';
|
|
2
2
|
import { ManagedFavicon } from '../chunk-N24BPFF6.mjs';
|
|
3
|
-
import { ManagedScripts } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
3
|
+
import { ManagedScripts } from '../chunk-M5FLRLHI.mjs';
|
|
4
|
+
import '../chunk-FMB2RZDH.mjs';
|
|
5
5
|
import '../chunk-4XPGGLVP.mjs';
|
|
6
6
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
package/dist/llms/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkGJD4CFHN_js = require('../chunk-GJD4CFHN.js');
|
|
4
4
|
require('../chunk-ZSMWDLMK.js');
|
|
5
5
|
var fs = require('fs');
|
|
6
6
|
var path = require('path');
|
|
@@ -23,7 +23,7 @@ function createLLMsTxtHandler(options = {}) {
|
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
const { markdown, metadata } = await
|
|
26
|
+
const { markdown, metadata } = await chunkGJD4CFHN_js.generateLLMsTxt(generateOptions);
|
|
27
27
|
return new Response(markdown, {
|
|
28
28
|
status: 200,
|
|
29
29
|
headers: {
|
|
@@ -59,7 +59,7 @@ function createLLMsFullTxtHandler(options = {}) {
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
const { markdown, metadata } = await
|
|
62
|
+
const { markdown, metadata } = await chunkGJD4CFHN_js.generateLLMsFullTxt(generateOptions);
|
|
63
63
|
return new Response(markdown, {
|
|
64
64
|
status: 200,
|
|
65
65
|
headers: {
|
|
@@ -527,39 +527,39 @@ function AEOCitedContent({
|
|
|
527
527
|
|
|
528
528
|
Object.defineProperty(exports, "generateLLMsFullTxt", {
|
|
529
529
|
enumerable: true,
|
|
530
|
-
get: function () { return
|
|
530
|
+
get: function () { return chunkGJD4CFHN_js.generateLLMsFullTxt; }
|
|
531
531
|
});
|
|
532
532
|
Object.defineProperty(exports, "generateLLMsTxt", {
|
|
533
533
|
enumerable: true,
|
|
534
|
-
get: function () { return
|
|
534
|
+
get: function () { return chunkGJD4CFHN_js.generateLLMsTxt; }
|
|
535
535
|
});
|
|
536
536
|
Object.defineProperty(exports, "getBusinessInfo", {
|
|
537
537
|
enumerable: true,
|
|
538
|
-
get: function () { return
|
|
538
|
+
get: function () { return chunkGJD4CFHN_js.getBusinessInfo; }
|
|
539
539
|
});
|
|
540
540
|
Object.defineProperty(exports, "getFAQItems", {
|
|
541
541
|
enumerable: true,
|
|
542
|
-
get: function () { return
|
|
542
|
+
get: function () { return chunkGJD4CFHN_js.getFAQItems; }
|
|
543
543
|
});
|
|
544
544
|
Object.defineProperty(exports, "getLLMsData", {
|
|
545
545
|
enumerable: true,
|
|
546
|
-
get: function () { return
|
|
546
|
+
get: function () { return chunkGJD4CFHN_js.getLLMsData; }
|
|
547
547
|
});
|
|
548
548
|
Object.defineProperty(exports, "getOptimizedLLMsTxt", {
|
|
549
549
|
enumerable: true,
|
|
550
|
-
get: function () { return
|
|
550
|
+
get: function () { return chunkGJD4CFHN_js.getOptimizedLLMsTxt; }
|
|
551
551
|
});
|
|
552
552
|
Object.defineProperty(exports, "getPageSummaries", {
|
|
553
553
|
enumerable: true,
|
|
554
|
-
get: function () { return
|
|
554
|
+
get: function () { return chunkGJD4CFHN_js.getPageSummaries; }
|
|
555
555
|
});
|
|
556
556
|
Object.defineProperty(exports, "getServices", {
|
|
557
557
|
enumerable: true,
|
|
558
|
-
get: function () { return
|
|
558
|
+
get: function () { return chunkGJD4CFHN_js.getServices; }
|
|
559
559
|
});
|
|
560
560
|
Object.defineProperty(exports, "writeLLMsTxtToPublic", {
|
|
561
561
|
enumerable: true,
|
|
562
|
-
get: function () { return
|
|
562
|
+
get: function () { return chunkGJD4CFHN_js.writeLLMsTxtToPublic; }
|
|
563
563
|
});
|
|
564
564
|
exports.AEOBlock = AEOBlock;
|
|
565
565
|
exports.AEOCitedContent = AEOCitedContent;
|
package/dist/llms/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { generateLLMsTxt, generateLLMsFullTxt } from '../chunk-
|
|
2
|
-
export { generateLLMsFullTxt, generateLLMsTxt, getBusinessInfo, getFAQItems, getLLMsData, getOptimizedLLMsTxt, getPageSummaries, getServices, writeLLMsTxtToPublic } from '../chunk-
|
|
1
|
+
import { generateLLMsTxt, generateLLMsFullTxt } from '../chunk-FI2ME55T.mjs';
|
|
2
|
+
export { generateLLMsFullTxt, generateLLMsTxt, getBusinessInfo, getFAQItems, getLLMsData, getOptimizedLLMsTxt, getPageSummaries, getServices, writeLLMsTxtToPublic } from '../chunk-FI2ME55T.mjs';
|
|
3
3
|
import '../chunk-4XPGGLVP.mjs';
|
|
4
4
|
import { existsSync, readFileSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
package/dist/seo/index.d.mts
CHANGED
|
@@ -14,16 +14,34 @@ export { SitemapSync } from './client.mjs';
|
|
|
14
14
|
* DO NOT import this file in client components or it will expose API keys.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
+
/** Response shape for POST /api/public/seo/page-context */
|
|
18
|
+
type PageSeoContext = {
|
|
19
|
+
page: any | null;
|
|
20
|
+
schemas: any[];
|
|
21
|
+
project: {
|
|
22
|
+
id: string;
|
|
23
|
+
title?: string | null;
|
|
24
|
+
domain?: string | null;
|
|
25
|
+
logo_url?: string | null;
|
|
26
|
+
site_url?: string | null;
|
|
27
|
+
} | null;
|
|
28
|
+
};
|
|
17
29
|
/**
|
|
18
30
|
* Fetch SEO page data - cached per request
|
|
19
31
|
* @server-only
|
|
20
32
|
*/
|
|
21
33
|
declare const getSEOPageData: (path: string) => Promise<{
|
|
22
34
|
page: any;
|
|
23
|
-
project:
|
|
35
|
+
project: {
|
|
36
|
+
id: string;
|
|
37
|
+
title?: string | null;
|
|
38
|
+
domain?: string | null;
|
|
39
|
+
logo_url?: string | null;
|
|
40
|
+
site_url?: string | null;
|
|
41
|
+
} | null;
|
|
24
42
|
}>;
|
|
25
43
|
/**
|
|
26
|
-
* Fetch schema markups for a page - cached per request
|
|
44
|
+
* Fetch schema markups for a page - cached per request (shares loadPageSeoContext with getSEOPageData)
|
|
27
45
|
* @server-only
|
|
28
46
|
*/
|
|
29
47
|
declare const getSchemaMarkups: (path: string, options?: {
|
|
@@ -402,4 +420,4 @@ declare const getLocationSection: (projectId: string, path: string, section: str
|
|
|
402
420
|
*/
|
|
403
421
|
declare function LocationPageContent(props: LocationPageContentProps): React.ReactElement;
|
|
404
422
|
|
|
405
|
-
export { ABTestResult, type EntityType, GetABVariantOptions, GetManagedMetadataOptions, LLMSchema, type HeroSectionContent as LocationHeroContent, LocationPageContent, type LocationPageContentProps, type LocationSectionData, type ServiceGridContent as LocationServicesContent, type TextSectionContent as LocationTextContent, ManagedContent, ManagedContentBlock, ManagedContentProps, ManagedFAQ, ManagedFAQProps, ManagedInternalLinks, ManagedInternalLinksProps, ManagedMetadataResult, ManagedNoScripts, ManagedSchema, ManagedSchemaProps, ManagedScripts, ManagedScriptsProps, type SEOEntity, createBreadcrumbSchema, createSchema, getABTest, getABVariant, getContentBlock, getEntities, getEntityEnhancedSchema, getFAQData, getInternalLinks, getLocationSection, getManagedContentData, getManagedMetadata, getManagedMetadataWithAB, getManagedScripts, getPrimaryEntity, getRedirectData, getRobotsData, getSEOPageData, getSchemaMarkups, getSitemapEntries, getVisibilityScore, getVisibilitySummary, recordABImpression, registerSitemap, withManagedMetadata };
|
|
423
|
+
export { ABTestResult, type EntityType, GetABVariantOptions, GetManagedMetadataOptions, LLMSchema, type HeroSectionContent as LocationHeroContent, LocationPageContent, type LocationPageContentProps, type LocationSectionData, type ServiceGridContent as LocationServicesContent, type TextSectionContent as LocationTextContent, ManagedContent, ManagedContentBlock, ManagedContentProps, ManagedFAQ, ManagedFAQProps, ManagedInternalLinks, ManagedInternalLinksProps, ManagedMetadataResult, ManagedNoScripts, ManagedSchema, ManagedSchemaProps, ManagedScripts, ManagedScriptsProps, type PageSeoContext, type SEOEntity, createBreadcrumbSchema, createSchema, getABTest, getABVariant, getContentBlock, getEntities, getEntityEnhancedSchema, getFAQData, getInternalLinks, getLocationSection, getManagedContentData, getManagedMetadata, getManagedMetadataWithAB, getManagedScripts, getPrimaryEntity, getRedirectData, getRobotsData, getSEOPageData, getSchemaMarkups, getSitemapEntries, getVisibilityScore, getVisibilitySummary, recordABImpression, registerSitemap, withManagedMetadata };
|
package/dist/seo/index.d.ts
CHANGED
|
@@ -14,16 +14,34 @@ export { SitemapSync } from './client.js';
|
|
|
14
14
|
* DO NOT import this file in client components or it will expose API keys.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
+
/** Response shape for POST /api/public/seo/page-context */
|
|
18
|
+
type PageSeoContext = {
|
|
19
|
+
page: any | null;
|
|
20
|
+
schemas: any[];
|
|
21
|
+
project: {
|
|
22
|
+
id: string;
|
|
23
|
+
title?: string | null;
|
|
24
|
+
domain?: string | null;
|
|
25
|
+
logo_url?: string | null;
|
|
26
|
+
site_url?: string | null;
|
|
27
|
+
} | null;
|
|
28
|
+
};
|
|
17
29
|
/**
|
|
18
30
|
* Fetch SEO page data - cached per request
|
|
19
31
|
* @server-only
|
|
20
32
|
*/
|
|
21
33
|
declare const getSEOPageData: (path: string) => Promise<{
|
|
22
34
|
page: any;
|
|
23
|
-
project:
|
|
35
|
+
project: {
|
|
36
|
+
id: string;
|
|
37
|
+
title?: string | null;
|
|
38
|
+
domain?: string | null;
|
|
39
|
+
logo_url?: string | null;
|
|
40
|
+
site_url?: string | null;
|
|
41
|
+
} | null;
|
|
24
42
|
}>;
|
|
25
43
|
/**
|
|
26
|
-
* Fetch schema markups for a page - cached per request
|
|
44
|
+
* Fetch schema markups for a page - cached per request (shares loadPageSeoContext with getSEOPageData)
|
|
27
45
|
* @server-only
|
|
28
46
|
*/
|
|
29
47
|
declare const getSchemaMarkups: (path: string, options?: {
|
|
@@ -402,4 +420,4 @@ declare const getLocationSection: (projectId: string, path: string, section: str
|
|
|
402
420
|
*/
|
|
403
421
|
declare function LocationPageContent(props: LocationPageContentProps): React.ReactElement;
|
|
404
422
|
|
|
405
|
-
export { ABTestResult, type EntityType, GetABVariantOptions, GetManagedMetadataOptions, LLMSchema, type HeroSectionContent as LocationHeroContent, LocationPageContent, type LocationPageContentProps, type LocationSectionData, type ServiceGridContent as LocationServicesContent, type TextSectionContent as LocationTextContent, ManagedContent, ManagedContentBlock, ManagedContentProps, ManagedFAQ, ManagedFAQProps, ManagedInternalLinks, ManagedInternalLinksProps, ManagedMetadataResult, ManagedNoScripts, ManagedSchema, ManagedSchemaProps, ManagedScripts, ManagedScriptsProps, type SEOEntity, createBreadcrumbSchema, createSchema, getABTest, getABVariant, getContentBlock, getEntities, getEntityEnhancedSchema, getFAQData, getInternalLinks, getLocationSection, getManagedContentData, getManagedMetadata, getManagedMetadataWithAB, getManagedScripts, getPrimaryEntity, getRedirectData, getRobotsData, getSEOPageData, getSchemaMarkups, getSitemapEntries, getVisibilityScore, getVisibilitySummary, recordABImpression, registerSitemap, withManagedMetadata };
|
|
423
|
+
export { ABTestResult, type EntityType, GetABVariantOptions, GetManagedMetadataOptions, LLMSchema, type HeroSectionContent as LocationHeroContent, LocationPageContent, type LocationPageContentProps, type LocationSectionData, type ServiceGridContent as LocationServicesContent, type TextSectionContent as LocationTextContent, ManagedContent, ManagedContentBlock, ManagedContentProps, ManagedFAQ, ManagedFAQProps, ManagedInternalLinks, ManagedInternalLinksProps, ManagedMetadataResult, ManagedNoScripts, ManagedSchema, ManagedSchemaProps, ManagedScripts, ManagedScriptsProps, type PageSeoContext, type SEOEntity, createBreadcrumbSchema, createSchema, getABTest, getABVariant, getContentBlock, getEntities, getEntityEnhancedSchema, getFAQData, getInternalLinks, getLocationSection, getManagedContentData, getManagedMetadata, getManagedMetadataWithAB, getManagedScripts, getPrimaryEntity, getRedirectData, getRobotsData, getSEOPageData, getSchemaMarkups, getSitemapEntries, getVisibilityScore, getVisibilitySummary, recordABImpression, registerSitemap, withManagedMetadata };
|
package/dist/seo/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKJN2C6YE_js = require('../chunk-KJN2C6YE.js');
|
|
4
4
|
var chunkQW4RQHSK_js = require('../chunk-QW4RQHSK.js');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkELDJDBQL_js = require('../chunk-ELDJDBQL.js');
|
|
6
|
+
var chunkPTTDKFL7_js = require('../chunk-PTTDKFL7.js');
|
|
7
7
|
require('../chunk-ZSMWDLMK.js');
|
|
8
8
|
var react = require('react');
|
|
9
9
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -12,7 +12,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
12
12
|
async function getManagedMetadata(options) {
|
|
13
13
|
const { path, fallback = {}, overrides = {}, favicon: faviconMode = "metadata" } = options;
|
|
14
14
|
const omitIcons = faviconMode === "component";
|
|
15
|
-
const result = await
|
|
15
|
+
const result = await chunkPTTDKFL7_js.getSEOPageData(path);
|
|
16
16
|
const pageData = result?.page;
|
|
17
17
|
const projectData = result?.project;
|
|
18
18
|
if (!pageData) {
|
|
@@ -41,7 +41,7 @@ async function getManagedMetadata(options) {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
if (!pageData.managed_title && !pageData.managed_meta_description && !pageData.managed_description) {
|
|
44
|
-
|
|
44
|
+
chunkPTTDKFL7_js.ensureMetadata(path).catch(() => {
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
if (pageData.managed_title) {
|
|
@@ -95,7 +95,7 @@ async function getManagedMetadata(options) {
|
|
|
95
95
|
}
|
|
96
96
|
async function getABVariant(options) {
|
|
97
97
|
const { path, field, sessionId } = options;
|
|
98
|
-
const test = await
|
|
98
|
+
const test = await chunkPTTDKFL7_js.getABTest(path, field);
|
|
99
99
|
if (!test) {
|
|
100
100
|
return null;
|
|
101
101
|
}
|
|
@@ -108,7 +108,7 @@ async function getABVariant(options) {
|
|
|
108
108
|
} else {
|
|
109
109
|
variant = Math.random() < test.traffic_split ? "a" : "b";
|
|
110
110
|
}
|
|
111
|
-
|
|
111
|
+
chunkPTTDKFL7_js.recordABImpression(test.id, variant, sessionId).catch(() => {
|
|
112
112
|
});
|
|
113
113
|
return {
|
|
114
114
|
testId: test.id,
|
|
@@ -180,9 +180,9 @@ async function ManagedSchemaAsync({
|
|
|
180
180
|
includeEntityGraph = true
|
|
181
181
|
}) {
|
|
182
182
|
const [schemas, pageData, entitySchemas] = await Promise.all([
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
includeEntityGraph ?
|
|
183
|
+
chunkPTTDKFL7_js.getSchemaMarkups(path, { includeTypes, excludeTypes }),
|
|
184
|
+
chunkPTTDKFL7_js.getSEOPageData(path),
|
|
185
|
+
includeEntityGraph ? chunkPTTDKFL7_js.getEntityEnhancedSchema(path).catch(() => []) : Promise.resolve([])
|
|
186
186
|
]);
|
|
187
187
|
const page = pageData?.page;
|
|
188
188
|
const siteUrl = pageData?.project?.site_url || "";
|
|
@@ -210,7 +210,7 @@ async function ManagedSchemaAsync({
|
|
|
210
210
|
}
|
|
211
211
|
if (allSchemas.length === 0 && !includeEntityGraph) {
|
|
212
212
|
try {
|
|
213
|
-
const fallbackSchemas = await
|
|
213
|
+
const fallbackSchemas = await chunkPTTDKFL7_js.getEntityEnhancedSchema(path);
|
|
214
214
|
allSchemas.push(...fallbackSchemas);
|
|
215
215
|
} catch {
|
|
216
216
|
}
|
|
@@ -240,7 +240,7 @@ async function ManagedSchemaAsync({
|
|
|
240
240
|
async function LLMSchemaAsync({
|
|
241
241
|
path
|
|
242
242
|
}) {
|
|
243
|
-
const { page: pageData } = await
|
|
243
|
+
const { page: pageData } = await chunkPTTDKFL7_js.getSEOPageData(path);
|
|
244
244
|
if (!pageData?.managed_llm_schema) {
|
|
245
245
|
return null;
|
|
246
246
|
}
|
|
@@ -453,7 +453,7 @@ async function ManagedFAQAsync({
|
|
|
453
453
|
includeSchema = true,
|
|
454
454
|
showTitle = true
|
|
455
455
|
}) {
|
|
456
|
-
const faqData = await
|
|
456
|
+
const faqData = await chunkPTTDKFL7_js.getFAQData(path);
|
|
457
457
|
if (!faqData || !faqData.items?.length) {
|
|
458
458
|
return null;
|
|
459
459
|
}
|
|
@@ -505,7 +505,7 @@ async function ManagedInternalLinksAsync({
|
|
|
505
505
|
className,
|
|
506
506
|
renderLink
|
|
507
507
|
}) {
|
|
508
|
-
const links = await
|
|
508
|
+
const links = await chunkPTTDKFL7_js.getInternalLinks(path, { position, limit });
|
|
509
509
|
if (!links.length) {
|
|
510
510
|
return null;
|
|
511
511
|
}
|
|
@@ -581,7 +581,7 @@ async function ManagedContentAsync({
|
|
|
581
581
|
components = {},
|
|
582
582
|
injectEntityAnnotations: shouldInjectEntities = false
|
|
583
583
|
}) {
|
|
584
|
-
const block = await
|
|
584
|
+
const block = await chunkPTTDKFL7_js.getContentBlock(path, section);
|
|
585
585
|
if (!block) {
|
|
586
586
|
if (fallback) {
|
|
587
587
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: fallback });
|
|
@@ -591,7 +591,7 @@ async function ManagedContentAsync({
|
|
|
591
591
|
let entities = [];
|
|
592
592
|
if (shouldInjectEntities) {
|
|
593
593
|
try {
|
|
594
|
-
entities = await
|
|
594
|
+
entities = await chunkPTTDKFL7_js.getEntities();
|
|
595
595
|
} catch (err) {
|
|
596
596
|
console.warn("@sonordev/seo: Failed to fetch entities for annotation:", err);
|
|
597
597
|
}
|
|
@@ -652,7 +652,7 @@ async function ManagedContentAsync({
|
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
654
|
async function getManagedContentData(path, section) {
|
|
655
|
-
return
|
|
655
|
+
return chunkPTTDKFL7_js.getContentBlock(path, section);
|
|
656
656
|
}
|
|
657
657
|
function ManagedContent(props) {
|
|
658
658
|
return /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback: null, children: /* @__PURE__ */ jsxRuntime.jsx(ManagedContentAsync, { ...props }) });
|
|
@@ -770,11 +770,11 @@ function LocationPageContent(props) {
|
|
|
770
770
|
|
|
771
771
|
Object.defineProperty(exports, "ManagedNoScripts", {
|
|
772
772
|
enumerable: true,
|
|
773
|
-
get: function () { return
|
|
773
|
+
get: function () { return chunkKJN2C6YE_js.ManagedNoScripts; }
|
|
774
774
|
});
|
|
775
775
|
Object.defineProperty(exports, "ManagedScripts", {
|
|
776
776
|
enumerable: true,
|
|
777
|
-
get: function () { return
|
|
777
|
+
get: function () { return chunkKJN2C6YE_js.ManagedScripts; }
|
|
778
778
|
});
|
|
779
779
|
Object.defineProperty(exports, "SitemapSync", {
|
|
780
780
|
enumerable: true,
|
|
@@ -782,87 +782,87 @@ Object.defineProperty(exports, "SitemapSync", {
|
|
|
782
782
|
});
|
|
783
783
|
Object.defineProperty(exports, "generateSitemap", {
|
|
784
784
|
enumerable: true,
|
|
785
|
-
get: function () { return
|
|
785
|
+
get: function () { return chunkELDJDBQL_js.generateSitemap; }
|
|
786
786
|
});
|
|
787
787
|
Object.defineProperty(exports, "getRedirect", {
|
|
788
788
|
enumerable: true,
|
|
789
|
-
get: function () { return
|
|
789
|
+
get: function () { return chunkELDJDBQL_js.getRedirect; }
|
|
790
790
|
});
|
|
791
791
|
Object.defineProperty(exports, "getRobotsDirective", {
|
|
792
792
|
enumerable: true,
|
|
793
|
-
get: function () { return
|
|
793
|
+
get: function () { return chunkELDJDBQL_js.getRobotsDirective; }
|
|
794
794
|
});
|
|
795
795
|
Object.defineProperty(exports, "isIndexable", {
|
|
796
796
|
enumerable: true,
|
|
797
|
-
get: function () { return
|
|
797
|
+
get: function () { return chunkELDJDBQL_js.isIndexable; }
|
|
798
798
|
});
|
|
799
799
|
Object.defineProperty(exports, "getABTest", {
|
|
800
800
|
enumerable: true,
|
|
801
|
-
get: function () { return
|
|
801
|
+
get: function () { return chunkPTTDKFL7_js.getABTest; }
|
|
802
802
|
});
|
|
803
803
|
Object.defineProperty(exports, "getContentBlock", {
|
|
804
804
|
enumerable: true,
|
|
805
|
-
get: function () { return
|
|
805
|
+
get: function () { return chunkPTTDKFL7_js.getContentBlock; }
|
|
806
806
|
});
|
|
807
807
|
Object.defineProperty(exports, "getEntities", {
|
|
808
808
|
enumerable: true,
|
|
809
|
-
get: function () { return
|
|
809
|
+
get: function () { return chunkPTTDKFL7_js.getEntities; }
|
|
810
810
|
});
|
|
811
811
|
Object.defineProperty(exports, "getEntityEnhancedSchema", {
|
|
812
812
|
enumerable: true,
|
|
813
|
-
get: function () { return
|
|
813
|
+
get: function () { return chunkPTTDKFL7_js.getEntityEnhancedSchema; }
|
|
814
814
|
});
|
|
815
815
|
Object.defineProperty(exports, "getFAQData", {
|
|
816
816
|
enumerable: true,
|
|
817
|
-
get: function () { return
|
|
817
|
+
get: function () { return chunkPTTDKFL7_js.getFAQData; }
|
|
818
818
|
});
|
|
819
819
|
Object.defineProperty(exports, "getInternalLinks", {
|
|
820
820
|
enumerable: true,
|
|
821
|
-
get: function () { return
|
|
821
|
+
get: function () { return chunkPTTDKFL7_js.getInternalLinks; }
|
|
822
822
|
});
|
|
823
823
|
Object.defineProperty(exports, "getManagedScripts", {
|
|
824
824
|
enumerable: true,
|
|
825
|
-
get: function () { return
|
|
825
|
+
get: function () { return chunkPTTDKFL7_js.getManagedScripts; }
|
|
826
826
|
});
|
|
827
827
|
Object.defineProperty(exports, "getPrimaryEntity", {
|
|
828
828
|
enumerable: true,
|
|
829
|
-
get: function () { return
|
|
829
|
+
get: function () { return chunkPTTDKFL7_js.getPrimaryEntity; }
|
|
830
830
|
});
|
|
831
831
|
Object.defineProperty(exports, "getRedirectData", {
|
|
832
832
|
enumerable: true,
|
|
833
|
-
get: function () { return
|
|
833
|
+
get: function () { return chunkPTTDKFL7_js.getRedirectData; }
|
|
834
834
|
});
|
|
835
835
|
Object.defineProperty(exports, "getRobotsData", {
|
|
836
836
|
enumerable: true,
|
|
837
|
-
get: function () { return
|
|
837
|
+
get: function () { return chunkPTTDKFL7_js.getRobotsData; }
|
|
838
838
|
});
|
|
839
839
|
Object.defineProperty(exports, "getSEOPageData", {
|
|
840
840
|
enumerable: true,
|
|
841
|
-
get: function () { return
|
|
841
|
+
get: function () { return chunkPTTDKFL7_js.getSEOPageData; }
|
|
842
842
|
});
|
|
843
843
|
Object.defineProperty(exports, "getSchemaMarkups", {
|
|
844
844
|
enumerable: true,
|
|
845
|
-
get: function () { return
|
|
845
|
+
get: function () { return chunkPTTDKFL7_js.getSchemaMarkups; }
|
|
846
846
|
});
|
|
847
847
|
Object.defineProperty(exports, "getSitemapEntries", {
|
|
848
848
|
enumerable: true,
|
|
849
|
-
get: function () { return
|
|
849
|
+
get: function () { return chunkPTTDKFL7_js.getSitemapEntries; }
|
|
850
850
|
});
|
|
851
851
|
Object.defineProperty(exports, "getVisibilityScore", {
|
|
852
852
|
enumerable: true,
|
|
853
|
-
get: function () { return
|
|
853
|
+
get: function () { return chunkPTTDKFL7_js.getVisibilityScore; }
|
|
854
854
|
});
|
|
855
855
|
Object.defineProperty(exports, "getVisibilitySummary", {
|
|
856
856
|
enumerable: true,
|
|
857
|
-
get: function () { return
|
|
857
|
+
get: function () { return chunkPTTDKFL7_js.getVisibilitySummary; }
|
|
858
858
|
});
|
|
859
859
|
Object.defineProperty(exports, "recordABImpression", {
|
|
860
860
|
enumerable: true,
|
|
861
|
-
get: function () { return
|
|
861
|
+
get: function () { return chunkPTTDKFL7_js.recordABImpression; }
|
|
862
862
|
});
|
|
863
863
|
Object.defineProperty(exports, "registerSitemap", {
|
|
864
864
|
enumerable: true,
|
|
865
|
-
get: function () { return
|
|
865
|
+
get: function () { return chunkPTTDKFL7_js.registerSitemap; }
|
|
866
866
|
});
|
|
867
867
|
exports.LLMSchema = LLMSchema;
|
|
868
868
|
exports.LocationPageContent = LocationPageContent;
|
package/dist/seo/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { ManagedNoScripts, ManagedScripts } from '../chunk-
|
|
1
|
+
export { ManagedNoScripts, ManagedScripts } from '../chunk-M5FLRLHI.mjs';
|
|
2
2
|
export { SitemapSync } from '../chunk-TSK35UHV.mjs';
|
|
3
|
-
export { generateSitemap, getRedirect, getRobotsDirective, isIndexable } from '../chunk-
|
|
4
|
-
import { getSEOPageData, ensureMetadata, getABTest, recordABImpression, getContentBlock, getSchemaMarkups, getEntityEnhancedSchema, getFAQData, getInternalLinks, getEntities } from '../chunk-
|
|
5
|
-
export { getABTest, getContentBlock, getEntities, getEntityEnhancedSchema, getFAQData, getInternalLinks, getManagedScripts, getPrimaryEntity, getRedirectData, getRobotsData, getSEOPageData, getSchemaMarkups, getSitemapEntries, getVisibilityScore, getVisibilitySummary, recordABImpression, registerSitemap } from '../chunk-
|
|
3
|
+
export { generateSitemap, getRedirect, getRobotsDirective, isIndexable } from '../chunk-NRNK7LXK.mjs';
|
|
4
|
+
import { getSEOPageData, ensureMetadata, getABTest, recordABImpression, getContentBlock, getSchemaMarkups, getEntityEnhancedSchema, getFAQData, getInternalLinks, getEntities } from '../chunk-FMB2RZDH.mjs';
|
|
5
|
+
export { getABTest, getContentBlock, getEntities, getEntityEnhancedSchema, getFAQData, getInternalLinks, getManagedScripts, getPrimaryEntity, getRedirectData, getRobotsData, getSEOPageData, getSchemaMarkups, getSitemapEntries, getVisibilityScore, getVisibilitySummary, recordABImpression, registerSitemap } from '../chunk-FMB2RZDH.mjs';
|
|
6
6
|
import '../chunk-4XPGGLVP.mjs';
|
|
7
7
|
import { cache, Suspense } from 'react';
|
|
8
8
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
package/dist/seo/server.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkELDJDBQL_js = require('../chunk-ELDJDBQL.js');
|
|
4
|
+
require('../chunk-PTTDKFL7.js');
|
|
5
5
|
require('../chunk-ZSMWDLMK.js');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
|
|
@@ -185,11 +185,11 @@ react.cache(async (projectId) => {
|
|
|
185
185
|
|
|
186
186
|
Object.defineProperty(exports, "generateSitemap", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkELDJDBQL_js.generateSitemap; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "registerLocalSitemap", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkELDJDBQL_js.registerLocalSitemap; }
|
|
193
193
|
});
|
|
194
194
|
exports.getABTest = getABTest;
|
|
195
195
|
exports.getContentBlock = getContentBlock;
|
package/dist/seo/server.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { generateSitemap, registerLocalSitemap } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { generateSitemap, registerLocalSitemap } from '../chunk-NRNK7LXK.mjs';
|
|
2
|
+
import '../chunk-FMB2RZDH.mjs';
|
|
3
3
|
import '../chunk-4XPGGLVP.mjs';
|
|
4
4
|
import { cache } from 'react';
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ensureMetadata, getABTest, getContentBlock, getEntities, getEntityEnhancedSchema, getFAQData, getInternalLinks, getManagedScripts, getPrimaryEntity, getRedirectData, getRobotsData, getSEOPageData, getSchemaMarkups, getSitemapEntries, getVisibilityScore, getVisibilitySummary, recordABImpression, registerSitemap } from './chunk-
|
|
1
|
+
export { ensureMetadata, getABTest, getContentBlock, getEntities, getEntityEnhancedSchema, getFAQData, getInternalLinks, getManagedScripts, getPrimaryEntity, getRedirectData, getRobotsData, getSEOPageData, getSchemaMarkups, getSitemapEntries, getVisibilityScore, getVisibilitySummary, recordABImpression, registerSitemap } from './chunk-FMB2RZDH.mjs';
|
|
2
2
|
import './chunk-4XPGGLVP.mjs';
|
|
3
|
-
//# sourceMappingURL=server-api-
|
|
4
|
-
//# sourceMappingURL=server-api-
|
|
3
|
+
//# sourceMappingURL=server-api-COVFLFZ2.mjs.map
|
|
4
|
+
//# sourceMappingURL=server-api-COVFLFZ2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"server-api-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"server-api-COVFLFZ2.mjs"}
|
|
@@ -1,81 +1,81 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPTTDKFL7_js = require('./chunk-PTTDKFL7.js');
|
|
4
4
|
require('./chunk-ZSMWDLMK.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "ensureMetadata", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkPTTDKFL7_js.ensureMetadata; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "getABTest", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkPTTDKFL7_js.getABTest; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "getContentBlock", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkPTTDKFL7_js.getContentBlock; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "getEntities", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkPTTDKFL7_js.getEntities; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "getEntityEnhancedSchema", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkPTTDKFL7_js.getEntityEnhancedSchema; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "getFAQData", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkPTTDKFL7_js.getFAQData; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "getInternalLinks", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkPTTDKFL7_js.getInternalLinks; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "getManagedScripts", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkPTTDKFL7_js.getManagedScripts; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "getPrimaryEntity", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkPTTDKFL7_js.getPrimaryEntity; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "getRedirectData", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkPTTDKFL7_js.getRedirectData; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "getRobotsData", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkPTTDKFL7_js.getRobotsData; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "getSEOPageData", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkPTTDKFL7_js.getSEOPageData; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "getSchemaMarkups", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkPTTDKFL7_js.getSchemaMarkups; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "getSitemapEntries", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkPTTDKFL7_js.getSitemapEntries; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "getVisibilityScore", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkPTTDKFL7_js.getVisibilityScore; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "getVisibilitySummary", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkPTTDKFL7_js.getVisibilitySummary; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "recordABImpression", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkPTTDKFL7_js.recordABImpression; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "registerSitemap", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkPTTDKFL7_js.registerSitemap; }
|
|
79
79
|
});
|
|
80
|
-
//# sourceMappingURL=server-api-
|
|
81
|
-
//# sourceMappingURL=server-api-
|
|
80
|
+
//# sourceMappingURL=server-api-XGKRGUMG.js.map
|
|
81
|
+
//# sourceMappingURL=server-api-XGKRGUMG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"server-api-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"server-api-XGKRGUMG.js"}
|
package/dist/sitemap/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkGJD4CFHN_js = require('../chunk-GJD4CFHN.js');
|
|
4
4
|
var chunkEUNL6GAL_js = require('../chunk-EUNL6GAL.js');
|
|
5
5
|
require('../chunk-ZSMWDLMK.js');
|
|
6
6
|
var fs = require('fs');
|
|
@@ -397,7 +397,7 @@ function createSitemap(config) {
|
|
|
397
397
|
}
|
|
398
398
|
if (config.optimizedLLMsTxt !== false) {
|
|
399
399
|
try {
|
|
400
|
-
const writeResult = await
|
|
400
|
+
const writeResult = await chunkGJD4CFHN_js.writeLLMsTxtToPublic({
|
|
401
401
|
apiUrl,
|
|
402
402
|
apiKey,
|
|
403
403
|
full: config.optimizedLLMsFullTxt ?? false,
|
package/dist/sitemap/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { writeLLMsTxtToPublic } from '../chunk-
|
|
1
|
+
import { writeLLMsTxtToPublic } from '../chunk-FI2ME55T.mjs';
|
|
2
2
|
import { getSiteConfig } from '../chunk-VZMDH3R4.mjs';
|
|
3
3
|
import '../chunk-4XPGGLVP.mjs';
|
|
4
4
|
import { existsSync, readdirSync, statSync } from 'fs';
|