@actuate-media/cms-core 0.83.0 → 0.85.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/CHANGELOG.md +18 -0
- package/dist/api/route-helpers.d.ts +2 -0
- package/dist/api/route-helpers.d.ts.map +1 -1
- package/dist/api/route-helpers.js +119 -37
- package/dist/api/route-helpers.js.map +1 -1
- package/dist/config/types.d.ts +15 -0
- package/dist/config/types.d.ts.map +1 -1
- package/dist/content/structured-data.d.ts +1 -0
- package/dist/content/structured-data.d.ts.map +1 -1
- package/dist/content/structured-data.js +1 -1
- package/dist/content/structured-data.js.map +1 -1
- package/dist/forms/index.d.ts +3 -0
- package/dist/forms/index.d.ts.map +1 -1
- package/dist/forms/index.js +3 -0
- package/dist/forms/index.js.map +1 -1
- package/dist/forms/prefetch.d.ts +17 -0
- package/dist/forms/prefetch.d.ts.map +1 -0
- package/dist/forms/prefetch.js +36 -0
- package/dist/forms/prefetch.js.map +1 -0
- package/dist/forms/public-html.d.ts +22 -0
- package/dist/forms/public-html.d.ts.map +1 -0
- package/dist/forms/public-html.js +145 -0
- package/dist/forms/public-html.js.map +1 -0
- package/dist/forms/submission.d.ts +8 -0
- package/dist/forms/submission.d.ts.map +1 -1
- package/dist/forms/submission.js +3 -1
- package/dist/forms/submission.js.map +1 -1
- package/dist/forms/webmcp.d.ts +36 -0
- package/dist/forms/webmcp.d.ts.map +1 -0
- package/dist/forms/webmcp.js +67 -0
- package/dist/forms/webmcp.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/next-site.d.ts +29 -0
- package/dist/next-site.d.ts.map +1 -0
- package/dist/next-site.js +60 -0
- package/dist/next-site.js.map +1 -0
- package/dist/sections/index.d.ts +2 -0
- package/dist/sections/index.d.ts.map +1 -1
- package/dist/sections/index.js +1 -0
- package/dist/sections/index.js.map +1 -1
- package/dist/sections/registry.d.ts.map +1 -1
- package/dist/sections/registry.js +86 -0
- package/dist/sections/registry.js.map +1 -1
- package/dist/sections/types.d.ts +1 -1
- package/dist/sections/types.d.ts.map +1 -1
- package/dist/sections/validate.d.ts.map +1 -1
- package/dist/sections/validate.js +23 -0
- package/dist/sections/validate.js.map +1 -1
- package/dist/sections/widget-embed.d.ts +45 -0
- package/dist/sections/widget-embed.d.ts.map +1 -0
- package/dist/sections/widget-embed.js +129 -0
- package/dist/sections/widget-embed.js.map +1 -0
- package/dist/seo/page-meta.d.ts.map +1 -1
- package/dist/seo/page-meta.js +11 -0
- package/dist/seo/page-meta.js.map +1 -1
- package/dist/server-site.d.ts.map +1 -1
- package/dist/server-site.js +13 -0
- package/dist/server-site.js.map +1 -1
- package/dist/site.d.ts +6 -0
- package/dist/site.d.ts.map +1 -1
- package/dist/site.js +6 -0
- package/dist/site.js.map +1 -1
- package/package.json +26 -1
- package/dist/__tests__/actions/document-crud.test.d.ts +0 -2
- package/dist/__tests__/actions/document-crud.test.d.ts.map +0 -1
- package/dist/__tests__/actions/document-crud.test.js +0 -442
- package/dist/__tests__/actions/document-crud.test.js.map +0 -1
- package/dist/__tests__/actions/seo-fields-update.test.d.ts +0 -2
- package/dist/__tests__/actions/seo-fields-update.test.d.ts.map +0 -1
- package/dist/__tests__/actions/seo-fields-update.test.js +0 -93
- package/dist/__tests__/actions/seo-fields-update.test.js.map +0 -1
- package/dist/__tests__/ai/ai.test.d.ts +0 -2
- package/dist/__tests__/ai/ai.test.d.ts.map +0 -1
- package/dist/__tests__/ai/ai.test.js +0 -266
- package/dist/__tests__/ai/ai.test.js.map +0 -1
- package/dist/__tests__/ai/brand-voice-alignment.test.d.ts +0 -2
- package/dist/__tests__/ai/brand-voice-alignment.test.d.ts.map +0 -1
- package/dist/__tests__/ai/brand-voice-alignment.test.js +0 -38
- package/dist/__tests__/ai/brand-voice-alignment.test.js.map +0 -1
- package/dist/__tests__/ai/brand-voice-analyze.test.d.ts +0 -2
- package/dist/__tests__/ai/brand-voice-analyze.test.d.ts.map +0 -1
- package/dist/__tests__/ai/brand-voice-analyze.test.js +0 -117
- package/dist/__tests__/ai/brand-voice-analyze.test.js.map +0 -1
- package/dist/__tests__/ai/brand-voice-document.test.d.ts +0 -2
- package/dist/__tests__/ai/brand-voice-document.test.d.ts.map +0 -1
- package/dist/__tests__/ai/brand-voice-document.test.js +0 -74
- package/dist/__tests__/ai/brand-voice-document.test.js.map +0 -1
- package/dist/__tests__/ai/brand-voice-fix.test.d.ts +0 -2
- package/dist/__tests__/ai/brand-voice-fix.test.d.ts.map +0 -1
- package/dist/__tests__/ai/brand-voice-fix.test.js +0 -34
- package/dist/__tests__/ai/brand-voice-fix.test.js.map +0 -1
- package/dist/__tests__/ai/brand-voice-sources.test.d.ts +0 -2
- package/dist/__tests__/ai/brand-voice-sources.test.d.ts.map +0 -1
- package/dist/__tests__/ai/brand-voice-sources.test.js +0 -14
- package/dist/__tests__/ai/brand-voice-sources.test.js.map +0 -1
- package/dist/__tests__/ai/brand-voice-structured.test.d.ts +0 -2
- package/dist/__tests__/ai/brand-voice-structured.test.d.ts.map +0 -1
- package/dist/__tests__/ai/brand-voice-structured.test.js +0 -49
- package/dist/__tests__/ai/brand-voice-structured.test.js.map +0 -1
- package/dist/__tests__/ai/brand-voice.test.d.ts +0 -2
- package/dist/__tests__/ai/brand-voice.test.d.ts.map +0 -1
- package/dist/__tests__/ai/brand-voice.test.js +0 -82
- package/dist/__tests__/ai/brand-voice.test.js.map +0 -1
- package/dist/__tests__/ai/content-writing-generate.test.d.ts +0 -2
- package/dist/__tests__/ai/content-writing-generate.test.d.ts.map +0 -1
- package/dist/__tests__/ai/content-writing-generate.test.js +0 -38
- package/dist/__tests__/ai/content-writing-generate.test.js.map +0 -1
- package/dist/__tests__/ai/resolve.test.d.ts +0 -2
- package/dist/__tests__/ai/resolve.test.d.ts.map +0 -1
- package/dist/__tests__/ai/resolve.test.js +0 -164
- package/dist/__tests__/ai/resolve.test.js.map +0 -1
- package/dist/__tests__/ai/runtime.test.d.ts +0 -2
- package/dist/__tests__/ai/runtime.test.d.ts.map +0 -1
- package/dist/__tests__/ai/runtime.test.js +0 -392
- package/dist/__tests__/ai/runtime.test.js.map +0 -1
- package/dist/__tests__/ai/sampling.test.d.ts +0 -2
- package/dist/__tests__/ai/sampling.test.d.ts.map +0 -1
- package/dist/__tests__/ai/sampling.test.js +0 -25
- package/dist/__tests__/ai/sampling.test.js.map +0 -1
- package/dist/__tests__/api/admin-contracts.test.d.ts +0 -2
- package/dist/__tests__/api/admin-contracts.test.d.ts.map +0 -1
- package/dist/__tests__/api/admin-contracts.test.js +0 -186
- package/dist/__tests__/api/admin-contracts.test.js.map +0 -1
- package/dist/__tests__/api/ai-crawlers.test.d.ts +0 -2
- package/dist/__tests__/api/ai-crawlers.test.d.ts.map +0 -1
- package/dist/__tests__/api/ai-crawlers.test.js +0 -194
- package/dist/__tests__/api/ai-crawlers.test.js.map +0 -1
- package/dist/__tests__/api/ai-quality.test.d.ts +0 -2
- package/dist/__tests__/api/ai-quality.test.d.ts.map +0 -1
- package/dist/__tests__/api/ai-quality.test.js +0 -721
- package/dist/__tests__/api/ai-quality.test.js.map +0 -1
- package/dist/__tests__/api/ai-status.test.d.ts +0 -2
- package/dist/__tests__/api/ai-status.test.d.ts.map +0 -1
- package/dist/__tests__/api/ai-status.test.js +0 -110
- package/dist/__tests__/api/ai-status.test.js.map +0 -1
- package/dist/__tests__/api/api-key-auth.test.d.ts +0 -2
- package/dist/__tests__/api/api-key-auth.test.d.ts.map +0 -1
- package/dist/__tests__/api/api-key-auth.test.js +0 -254
- package/dist/__tests__/api/api-key-auth.test.js.map +0 -1
- package/dist/__tests__/api/appearance-routes.test.d.ts +0 -2
- package/dist/__tests__/api/appearance-routes.test.d.ts.map +0 -1
- package/dist/__tests__/api/appearance-routes.test.js +0 -134
- package/dist/__tests__/api/appearance-routes.test.js.map +0 -1
- package/dist/__tests__/api/cache-headers.test.d.ts +0 -2
- package/dist/__tests__/api/cache-headers.test.d.ts.map +0 -1
- package/dist/__tests__/api/cache-headers.test.js +0 -135
- package/dist/__tests__/api/cache-headers.test.js.map +0 -1
- package/dist/__tests__/api/collection-introspection.test.d.ts +0 -2
- package/dist/__tests__/api/collection-introspection.test.d.ts.map +0 -1
- package/dist/__tests__/api/collection-introspection.test.js +0 -129
- package/dist/__tests__/api/collection-introspection.test.js.map +0 -1
- package/dist/__tests__/api/collection-read-access.test.d.ts +0 -2
- package/dist/__tests__/api/collection-read-access.test.d.ts.map +0 -1
- package/dist/__tests__/api/collection-read-access.test.js +0 -140
- package/dist/__tests__/api/collection-read-access.test.js.map +0 -1
- package/dist/__tests__/api/collections-ai-create.test.d.ts +0 -2
- package/dist/__tests__/api/collections-ai-create.test.d.ts.map +0 -1
- package/dist/__tests__/api/collections-ai-create.test.js +0 -313
- package/dist/__tests__/api/collections-ai-create.test.js.map +0 -1
- package/dist/__tests__/api/collections-discovery.test.d.ts +0 -2
- package/dist/__tests__/api/collections-discovery.test.d.ts.map +0 -1
- package/dist/__tests__/api/collections-discovery.test.js +0 -348
- package/dist/__tests__/api/collections-discovery.test.js.map +0 -1
- package/dist/__tests__/api/comments-routes.test.d.ts +0 -2
- package/dist/__tests__/api/comments-routes.test.d.ts.map +0 -1
- package/dist/__tests__/api/comments-routes.test.js +0 -266
- package/dist/__tests__/api/comments-routes.test.js.map +0 -1
- package/dist/__tests__/api/cron-routes.test.d.ts +0 -2
- package/dist/__tests__/api/cron-routes.test.d.ts.map +0 -1
- package/dist/__tests__/api/cron-routes.test.js +0 -67
- package/dist/__tests__/api/cron-routes.test.js.map +0 -1
- package/dist/__tests__/api/data-filters-routes.test.d.ts +0 -2
- package/dist/__tests__/api/data-filters-routes.test.d.ts.map +0 -1
- package/dist/__tests__/api/data-filters-routes.test.js +0 -131
- package/dist/__tests__/api/data-filters-routes.test.js.map +0 -1
- package/dist/__tests__/api/email-settings-routes.test.d.ts +0 -2
- package/dist/__tests__/api/email-settings-routes.test.d.ts.map +0 -1
- package/dist/__tests__/api/email-settings-routes.test.js +0 -240
- package/dist/__tests__/api/email-settings-routes.test.js.map +0 -1
- package/dist/__tests__/api/field-values-routes.test.d.ts +0 -2
- package/dist/__tests__/api/field-values-routes.test.d.ts.map +0 -1
- package/dist/__tests__/api/field-values-routes.test.js +0 -147
- package/dist/__tests__/api/field-values-routes.test.js.map +0 -1
- package/dist/__tests__/api/form-webhooks.test.d.ts +0 -2
- package/dist/__tests__/api/form-webhooks.test.d.ts.map +0 -1
- package/dist/__tests__/api/form-webhooks.test.js +0 -162
- package/dist/__tests__/api/form-webhooks.test.js.map +0 -1
- package/dist/__tests__/api/globals-routes.test.d.ts +0 -2
- package/dist/__tests__/api/globals-routes.test.d.ts.map +0 -1
- package/dist/__tests__/api/globals-routes.test.js +0 -100
- package/dist/__tests__/api/globals-routes.test.js.map +0 -1
- package/dist/__tests__/api/health.test.d.ts +0 -2
- package/dist/__tests__/api/health.test.d.ts.map +0 -1
- package/dist/__tests__/api/health.test.js +0 -144
- package/dist/__tests__/api/health.test.js.map +0 -1
- package/dist/__tests__/api/llms-txt.test.d.ts +0 -2
- package/dist/__tests__/api/llms-txt.test.d.ts.map +0 -1
- package/dist/__tests__/api/llms-txt.test.js +0 -423
- package/dist/__tests__/api/llms-txt.test.js.map +0 -1
- package/dist/__tests__/api/md-route.test.d.ts +0 -2
- package/dist/__tests__/api/md-route.test.d.ts.map +0 -1
- package/dist/__tests__/api/md-route.test.js +0 -106
- package/dist/__tests__/api/md-route.test.js.map +0 -1
- package/dist/__tests__/api/media-upload-storage.test.d.ts +0 -2
- package/dist/__tests__/api/media-upload-storage.test.d.ts.map +0 -1
- package/dist/__tests__/api/media-upload-storage.test.js +0 -171
- package/dist/__tests__/api/media-upload-storage.test.js.map +0 -1
- package/dist/__tests__/api/notifications-routes.test.d.ts +0 -2
- package/dist/__tests__/api/notifications-routes.test.d.ts.map +0 -1
- package/dist/__tests__/api/notifications-routes.test.js +0 -270
- package/dist/__tests__/api/notifications-routes.test.js.map +0 -1
- package/dist/__tests__/api/page-sections-routes.test.d.ts +0 -2
- package/dist/__tests__/api/page-sections-routes.test.d.ts.map +0 -1
- package/dist/__tests__/api/page-sections-routes.test.js +0 -501
- package/dist/__tests__/api/page-sections-routes.test.js.map +0 -1
- package/dist/__tests__/api/preview-and-scheduling.test.d.ts +0 -2
- package/dist/__tests__/api/preview-and-scheduling.test.d.ts.map +0 -1
- package/dist/__tests__/api/preview-and-scheduling.test.js +0 -479
- package/dist/__tests__/api/preview-and-scheduling.test.js.map +0 -1
- package/dist/__tests__/api/public-forms.test.d.ts +0 -2
- package/dist/__tests__/api/public-forms.test.d.ts.map +0 -1
- package/dist/__tests__/api/public-forms.test.js +0 -125
- package/dist/__tests__/api/public-forms.test.js.map +0 -1
- package/dist/__tests__/api/public-globals.test.d.ts +0 -2
- package/dist/__tests__/api/public-globals.test.d.ts.map +0 -1
- package/dist/__tests__/api/public-globals.test.js +0 -96
- package/dist/__tests__/api/public-globals.test.js.map +0 -1
- package/dist/__tests__/api/public-navigations.test.d.ts +0 -2
- package/dist/__tests__/api/public-navigations.test.d.ts.map +0 -1
- package/dist/__tests__/api/public-navigations.test.js +0 -77
- package/dist/__tests__/api/public-navigations.test.js.map +0 -1
- package/dist/__tests__/api/public-seo.test.d.ts +0 -2
- package/dist/__tests__/api/public-seo.test.d.ts.map +0 -1
- package/dist/__tests__/api/public-seo.test.js +0 -834
- package/dist/__tests__/api/public-seo.test.js.map +0 -1
- package/dist/__tests__/api/resolve-layout-bridge.test.d.ts +0 -2
- package/dist/__tests__/api/resolve-layout-bridge.test.d.ts.map +0 -1
- package/dist/__tests__/api/resolve-layout-bridge.test.js +0 -165
- package/dist/__tests__/api/resolve-layout-bridge.test.js.map +0 -1
- package/dist/__tests__/api/route-contracts.test.d.ts +0 -2
- package/dist/__tests__/api/route-contracts.test.d.ts.map +0 -1
- package/dist/__tests__/api/route-contracts.test.js +0 -466
- package/dist/__tests__/api/route-contracts.test.js.map +0 -1
- package/dist/__tests__/api/security-routes.test.d.ts +0 -2
- package/dist/__tests__/api/security-routes.test.d.ts.map +0 -1
- package/dist/__tests__/api/security-routes.test.js +0 -212
- package/dist/__tests__/api/security-routes.test.js.map +0 -1
- package/dist/__tests__/api/seo-read-access.test.d.ts +0 -2
- package/dist/__tests__/api/seo-read-access.test.d.ts.map +0 -1
- package/dist/__tests__/api/seo-read-access.test.js +0 -101
- package/dist/__tests__/api/seo-read-access.test.js.map +0 -1
- package/dist/__tests__/api/seo-summary-ssrf.test.d.ts +0 -2
- package/dist/__tests__/api/seo-summary-ssrf.test.d.ts.map +0 -1
- package/dist/__tests__/api/seo-summary-ssrf.test.js +0 -80
- package/dist/__tests__/api/seo-summary-ssrf.test.js.map +0 -1
- package/dist/__tests__/api/sitemap-pagination.test.d.ts +0 -2
- package/dist/__tests__/api/sitemap-pagination.test.d.ts.map +0 -1
- package/dist/__tests__/api/sitemap-pagination.test.js +0 -100
- package/dist/__tests__/api/sitemap-pagination.test.js.map +0 -1
- package/dist/__tests__/api/stats-collection-filter.test.d.ts +0 -2
- package/dist/__tests__/api/stats-collection-filter.test.d.ts.map +0 -1
- package/dist/__tests__/api/stats-collection-filter.test.js +0 -190
- package/dist/__tests__/api/stats-collection-filter.test.js.map +0 -1
- package/dist/__tests__/api/stats-routes.test.d.ts +0 -2
- package/dist/__tests__/api/stats-routes.test.d.ts.map +0 -1
- package/dist/__tests__/api/stats-routes.test.js +0 -251
- package/dist/__tests__/api/stats-routes.test.js.map +0 -1
- package/dist/__tests__/api/stats-seo-cache.test.d.ts +0 -2
- package/dist/__tests__/api/stats-seo-cache.test.d.ts.map +0 -1
- package/dist/__tests__/api/stats-seo-cache.test.js +0 -96
- package/dist/__tests__/api/stats-seo-cache.test.js.map +0 -1
- package/dist/__tests__/api/totp-login.test.d.ts +0 -2
- package/dist/__tests__/api/totp-login.test.d.ts.map +0 -1
- package/dist/__tests__/api/totp-login.test.js +0 -115
- package/dist/__tests__/api/totp-login.test.js.map +0 -1
- package/dist/__tests__/api/updates-routes.test.d.ts +0 -2
- package/dist/__tests__/api/updates-routes.test.d.ts.map +0 -1
- package/dist/__tests__/api/updates-routes.test.js +0 -248
- package/dist/__tests__/api/updates-routes.test.js.map +0 -1
- package/dist/__tests__/api/users-detail.test.d.ts +0 -2
- package/dist/__tests__/api/users-detail.test.d.ts.map +0 -1
- package/dist/__tests__/api/users-detail.test.js +0 -401
- package/dist/__tests__/api/users-detail.test.js.map +0 -1
- package/dist/__tests__/api/users-invite.test.d.ts +0 -2
- package/dist/__tests__/api/users-invite.test.d.ts.map +0 -1
- package/dist/__tests__/api/users-invite.test.js +0 -221
- package/dist/__tests__/api/users-invite.test.js.map +0 -1
- package/dist/__tests__/api/users-search.test.d.ts +0 -2
- package/dist/__tests__/api/users-search.test.d.ts.map +0 -1
- package/dist/__tests__/api/users-search.test.js +0 -182
- package/dist/__tests__/api/users-search.test.js.map +0 -1
- package/dist/__tests__/appearance/appearance.test.d.ts +0 -2
- package/dist/__tests__/appearance/appearance.test.d.ts.map +0 -1
- package/dist/__tests__/appearance/appearance.test.js +0 -287
- package/dist/__tests__/appearance/appearance.test.js.map +0 -1
- package/dist/__tests__/appearance/favicon-icon.test.d.ts +0 -2
- package/dist/__tests__/appearance/favicon-icon.test.d.ts.map +0 -1
- package/dist/__tests__/appearance/favicon-icon.test.js +0 -12
- package/dist/__tests__/appearance/favicon-icon.test.js.map +0 -1
- package/dist/__tests__/auth/invites.test.d.ts +0 -2
- package/dist/__tests__/auth/invites.test.d.ts.map +0 -1
- package/dist/__tests__/auth/invites.test.js +0 -181
- package/dist/__tests__/auth/invites.test.js.map +0 -1
- package/dist/__tests__/auth/oauth.test.d.ts +0 -2
- package/dist/__tests__/auth/oauth.test.d.ts.map +0 -1
- package/dist/__tests__/auth/oauth.test.js +0 -408
- package/dist/__tests__/auth/oauth.test.js.map +0 -1
- package/dist/__tests__/auth/password.test.d.ts +0 -2
- package/dist/__tests__/auth/password.test.d.ts.map +0 -1
- package/dist/__tests__/auth/password.test.js +0 -226
- package/dist/__tests__/auth/password.test.js.map +0 -1
- package/dist/__tests__/auth/reset.test.d.ts +0 -2
- package/dist/__tests__/auth/reset.test.d.ts.map +0 -1
- package/dist/__tests__/auth/reset.test.js +0 -355
- package/dist/__tests__/auth/reset.test.js.map +0 -1
- package/dist/__tests__/auth/roles.test.d.ts +0 -2
- package/dist/__tests__/auth/roles.test.d.ts.map +0 -1
- package/dist/__tests__/auth/roles.test.js +0 -60
- package/dist/__tests__/auth/roles.test.js.map +0 -1
- package/dist/__tests__/auth/session.test.d.ts +0 -2
- package/dist/__tests__/auth/session.test.d.ts.map +0 -1
- package/dist/__tests__/auth/session.test.js +0 -119
- package/dist/__tests__/auth/session.test.js.map +0 -1
- package/dist/__tests__/auth/team.test.d.ts +0 -2
- package/dist/__tests__/auth/team.test.d.ts.map +0 -1
- package/dist/__tests__/auth/team.test.js +0 -154
- package/dist/__tests__/auth/team.test.js.map +0 -1
- package/dist/__tests__/auth/totp.test.d.ts +0 -2
- package/dist/__tests__/auth/totp.test.d.ts.map +0 -1
- package/dist/__tests__/auth/totp.test.js +0 -52
- package/dist/__tests__/auth/totp.test.js.map +0 -1
- package/dist/__tests__/auth/user-admin.test.d.ts +0 -2
- package/dist/__tests__/auth/user-admin.test.d.ts.map +0 -1
- package/dist/__tests__/auth/user-admin.test.js +0 -200
- package/dist/__tests__/auth/user-admin.test.js.map +0 -1
- package/dist/__tests__/billing/stripe-meter.test.d.ts +0 -2
- package/dist/__tests__/billing/stripe-meter.test.d.ts.map +0 -1
- package/dist/__tests__/billing/stripe-meter.test.js +0 -86
- package/dist/__tests__/billing/stripe-meter.test.js.map +0 -1
- package/dist/__tests__/codegen/generate-types.test.d.ts +0 -2
- package/dist/__tests__/codegen/generate-types.test.d.ts.map +0 -1
- package/dist/__tests__/codegen/generate-types.test.js +0 -173
- package/dist/__tests__/codegen/generate-types.test.js.map +0 -1
- package/dist/__tests__/collections/presets.test.d.ts +0 -2
- package/dist/__tests__/collections/presets.test.d.ts.map +0 -1
- package/dist/__tests__/collections/presets.test.js +0 -184
- package/dist/__tests__/collections/presets.test.js.map +0 -1
- package/dist/__tests__/config/runtime.test.d.ts +0 -2
- package/dist/__tests__/config/runtime.test.d.ts.map +0 -1
- package/dist/__tests__/config/runtime.test.js +0 -65
- package/dist/__tests__/config/runtime.test.js.map +0 -1
- package/dist/__tests__/content/slug.test.d.ts +0 -2
- package/dist/__tests__/content/slug.test.d.ts.map +0 -1
- package/dist/__tests__/content/slug.test.js +0 -68
- package/dist/__tests__/content/slug.test.js.map +0 -1
- package/dist/__tests__/content-health/scanner.test.d.ts +0 -2
- package/dist/__tests__/content-health/scanner.test.d.ts.map +0 -1
- package/dist/__tests__/content-health/scanner.test.js +0 -151
- package/dist/__tests__/content-health/scanner.test.js.map +0 -1
- package/dist/__tests__/cron/cron.test.d.ts +0 -2
- package/dist/__tests__/cron/cron.test.d.ts.map +0 -1
- package/dist/__tests__/cron/cron.test.js +0 -340
- package/dist/__tests__/cron/cron.test.js.map +0 -1
- package/dist/__tests__/db/model-types-freshness.test.d.ts +0 -2
- package/dist/__tests__/db/model-types-freshness.test.d.ts.map +0 -1
- package/dist/__tests__/db/model-types-freshness.test.js +0 -46
- package/dist/__tests__/db/model-types-freshness.test.js.map +0 -1
- package/dist/__tests__/diagnostics/api-metrics.test.d.ts +0 -2
- package/dist/__tests__/diagnostics/api-metrics.test.d.ts.map +0 -1
- package/dist/__tests__/diagnostics/api-metrics.test.js +0 -153
- package/dist/__tests__/diagnostics/api-metrics.test.js.map +0 -1
- package/dist/__tests__/diagnostics/env.test.d.ts +0 -2
- package/dist/__tests__/diagnostics/env.test.d.ts.map +0 -1
- package/dist/__tests__/diagnostics/env.test.js +0 -247
- package/dist/__tests__/diagnostics/env.test.js.map +0 -1
- package/dist/__tests__/diagnostics/logger.test.d.ts +0 -2
- package/dist/__tests__/diagnostics/logger.test.d.ts.map +0 -1
- package/dist/__tests__/diagnostics/logger.test.js +0 -111
- package/dist/__tests__/diagnostics/logger.test.js.map +0 -1
- package/dist/__tests__/diagnostics/sentry.test.d.ts +0 -2
- package/dist/__tests__/diagnostics/sentry.test.d.ts.map +0 -1
- package/dist/__tests__/diagnostics/sentry.test.js +0 -60
- package/dist/__tests__/diagnostics/sentry.test.js.map +0 -1
- package/dist/__tests__/email/resolve.test.d.ts +0 -2
- package/dist/__tests__/email/resolve.test.d.ts.map +0 -1
- package/dist/__tests__/email/resolve.test.js +0 -90
- package/dist/__tests__/email/resolve.test.js.map +0 -1
- package/dist/__tests__/email/sender.test.d.ts +0 -2
- package/dist/__tests__/email/sender.test.d.ts.map +0 -1
- package/dist/__tests__/email/sender.test.js +0 -33
- package/dist/__tests__/email/sender.test.js.map +0 -1
- package/dist/__tests__/email/settings-store.test.d.ts +0 -2
- package/dist/__tests__/email/settings-store.test.d.ts.map +0 -1
- package/dist/__tests__/email/settings-store.test.js +0 -149
- package/dist/__tests__/email/settings-store.test.js.map +0 -1
- package/dist/__tests__/fields/component-block.test.d.ts +0 -2
- package/dist/__tests__/fields/component-block.test.d.ts.map +0 -1
- package/dist/__tests__/fields/component-block.test.js +0 -129
- package/dist/__tests__/fields/component-block.test.js.map +0 -1
- package/dist/__tests__/fields/presets.test.d.ts +0 -2
- package/dist/__tests__/fields/presets.test.d.ts.map +0 -1
- package/dist/__tests__/fields/presets.test.js +0 -99
- package/dist/__tests__/fields/presets.test.js.map +0 -1
- package/dist/__tests__/fields/relations.test.d.ts +0 -2
- package/dist/__tests__/fields/relations.test.d.ts.map +0 -1
- package/dist/__tests__/fields/relations.test.js +0 -297
- package/dist/__tests__/fields/relations.test.js.map +0 -1
- package/dist/__tests__/forms/client-validation.test.d.ts +0 -2
- package/dist/__tests__/forms/client-validation.test.d.ts.map +0 -1
- package/dist/__tests__/forms/client-validation.test.js +0 -98
- package/dist/__tests__/forms/client-validation.test.js.map +0 -1
- package/dist/__tests__/forms/encryption.test.d.ts +0 -2
- package/dist/__tests__/forms/encryption.test.d.ts.map +0 -1
- package/dist/__tests__/forms/encryption.test.js +0 -84
- package/dist/__tests__/forms/encryption.test.js.map +0 -1
- package/dist/__tests__/forms/entries-export.test.d.ts +0 -2
- package/dist/__tests__/forms/entries-export.test.d.ts.map +0 -1
- package/dist/__tests__/forms/entries-export.test.js +0 -69
- package/dist/__tests__/forms/entries-export.test.js.map +0 -1
- package/dist/__tests__/forms/forms-service.test.d.ts +0 -2
- package/dist/__tests__/forms/forms-service.test.d.ts.map +0 -1
- package/dist/__tests__/forms/forms-service.test.js +0 -193
- package/dist/__tests__/forms/forms-service.test.js.map +0 -1
- package/dist/__tests__/forms/notify.test.d.ts +0 -2
- package/dist/__tests__/forms/notify.test.d.ts.map +0 -1
- package/dist/__tests__/forms/notify.test.js +0 -114
- package/dist/__tests__/forms/notify.test.js.map +0 -1
- package/dist/__tests__/forms/spam.test.d.ts +0 -2
- package/dist/__tests__/forms/spam.test.d.ts.map +0 -1
- package/dist/__tests__/forms/spam.test.js +0 -115
- package/dist/__tests__/forms/spam.test.js.map +0 -1
- package/dist/__tests__/forms/submission-files.test.d.ts +0 -2
- package/dist/__tests__/forms/submission-files.test.d.ts.map +0 -1
- package/dist/__tests__/forms/submission-files.test.js +0 -65
- package/dist/__tests__/forms/submission-files.test.js.map +0 -1
- package/dist/__tests__/forms/submission-pipeline.test.d.ts +0 -2
- package/dist/__tests__/forms/submission-pipeline.test.d.ts.map +0 -1
- package/dist/__tests__/forms/submission-pipeline.test.js +0 -131
- package/dist/__tests__/forms/submission-pipeline.test.js.map +0 -1
- package/dist/__tests__/forms/submission-validation.test.d.ts +0 -2
- package/dist/__tests__/forms/submission-validation.test.d.ts.map +0 -1
- package/dist/__tests__/forms/submission-validation.test.js +0 -108
- package/dist/__tests__/forms/submission-validation.test.js.map +0 -1
- package/dist/__tests__/forms/webhooks.test.d.ts +0 -2
- package/dist/__tests__/forms/webhooks.test.d.ts.map +0 -1
- package/dist/__tests__/forms/webhooks.test.js +0 -203
- package/dist/__tests__/forms/webhooks.test.js.map +0 -1
- package/dist/__tests__/media/seo.test.d.ts +0 -2
- package/dist/__tests__/media/seo.test.d.ts.map +0 -1
- package/dist/__tests__/media/seo.test.js +0 -186
- package/dist/__tests__/media/seo.test.js.map +0 -1
- package/dist/__tests__/middleware.test.d.ts +0 -2
- package/dist/__tests__/middleware.test.d.ts.map +0 -1
- package/dist/__tests__/middleware.test.js +0 -127
- package/dist/__tests__/middleware.test.js.map +0 -1
- package/dist/__tests__/next.test.d.ts +0 -2
- package/dist/__tests__/next.test.d.ts.map +0 -1
- package/dist/__tests__/next.test.js +0 -118
- package/dist/__tests__/next.test.js.map +0 -1
- package/dist/__tests__/plan/features.test.d.ts +0 -2
- package/dist/__tests__/plan/features.test.d.ts.map +0 -1
- package/dist/__tests__/plan/features.test.js +0 -35
- package/dist/__tests__/plan/features.test.js.map +0 -1
- package/dist/__tests__/preview-event-bus.test.d.ts +0 -2
- package/dist/__tests__/preview-event-bus.test.d.ts.map +0 -1
- package/dist/__tests__/preview-event-bus.test.js +0 -89
- package/dist/__tests__/preview-event-bus.test.js.map +0 -1
- package/dist/__tests__/preview-sse-stream.test.d.ts +0 -2
- package/dist/__tests__/preview-sse-stream.test.d.ts.map +0 -1
- package/dist/__tests__/preview-sse-stream.test.js +0 -117
- package/dist/__tests__/preview-sse-stream.test.js.map +0 -1
- package/dist/__tests__/preview.test.d.ts +0 -2
- package/dist/__tests__/preview.test.d.ts.map +0 -1
- package/dist/__tests__/preview.test.js +0 -71
- package/dist/__tests__/preview.test.js.map +0 -1
- package/dist/__tests__/realtime/comments.test.d.ts +0 -2
- package/dist/__tests__/realtime/comments.test.d.ts.map +0 -1
- package/dist/__tests__/realtime/comments.test.js +0 -508
- package/dist/__tests__/realtime/comments.test.js.map +0 -1
- package/dist/__tests__/realtime/gateway-ws-integration.test.d.ts +0 -2
- package/dist/__tests__/realtime/gateway-ws-integration.test.d.ts.map +0 -1
- package/dist/__tests__/realtime/gateway-ws-integration.test.js +0 -170
- package/dist/__tests__/realtime/gateway-ws-integration.test.js.map +0 -1
- package/dist/__tests__/realtime/gateway.test.d.ts +0 -2
- package/dist/__tests__/realtime/gateway.test.d.ts.map +0 -1
- package/dist/__tests__/realtime/gateway.test.js +0 -402
- package/dist/__tests__/realtime/gateway.test.js.map +0 -1
- package/dist/__tests__/realtime/notification-bus.test.d.ts +0 -2
- package/dist/__tests__/realtime/notification-bus.test.d.ts.map +0 -1
- package/dist/__tests__/realtime/notification-bus.test.js +0 -79
- package/dist/__tests__/realtime/notification-bus.test.js.map +0 -1
- package/dist/__tests__/realtime/notification-stream.test.d.ts +0 -2
- package/dist/__tests__/realtime/notification-stream.test.d.ts.map +0 -1
- package/dist/__tests__/realtime/notification-stream.test.js +0 -157
- package/dist/__tests__/realtime/notification-stream.test.js.map +0 -1
- package/dist/__tests__/realtime/notifications.test.d.ts +0 -2
- package/dist/__tests__/realtime/notifications.test.d.ts.map +0 -1
- package/dist/__tests__/realtime/notifications.test.js +0 -330
- package/dist/__tests__/realtime/notifications.test.js.map +0 -1
- package/dist/__tests__/realtime/persistence.test.d.ts +0 -2
- package/dist/__tests__/realtime/persistence.test.d.ts.map +0 -1
- package/dist/__tests__/realtime/persistence.test.js +0 -124
- package/dist/__tests__/realtime/persistence.test.js.map +0 -1
- package/dist/__tests__/redirects/auto-301.test.d.ts +0 -2
- package/dist/__tests__/redirects/auto-301.test.d.ts.map +0 -1
- package/dist/__tests__/redirects/auto-301.test.js +0 -172
- package/dist/__tests__/redirects/auto-301.test.js.map +0 -1
- package/dist/__tests__/redirects/graph.test.d.ts +0 -2
- package/dist/__tests__/redirects/graph.test.d.ts.map +0 -1
- package/dist/__tests__/redirects/graph.test.js +0 -104
- package/dist/__tests__/redirects/graph.test.js.map +0 -1
- package/dist/__tests__/redirects/suggest.test.d.ts +0 -2
- package/dist/__tests__/redirects/suggest.test.d.ts.map +0 -1
- package/dist/__tests__/redirects/suggest.test.js +0 -28
- package/dist/__tests__/redirects/suggest.test.js.map +0 -1
- package/dist/__tests__/scheduling/scheduling.test.d.ts +0 -2
- package/dist/__tests__/scheduling/scheduling.test.d.ts.map +0 -1
- package/dist/__tests__/scheduling/scheduling.test.js +0 -110
- package/dist/__tests__/scheduling/scheduling.test.js.map +0 -1
- package/dist/__tests__/schema-preview-features.test.d.ts +0 -2
- package/dist/__tests__/schema-preview-features.test.d.ts.map +0 -1
- package/dist/__tests__/schema-preview-features.test.js +0 -42
- package/dist/__tests__/schema-preview-features.test.js.map +0 -1
- package/dist/__tests__/sections/sections-migrate.test.d.ts +0 -2
- package/dist/__tests__/sections/sections-migrate.test.d.ts.map +0 -1
- package/dist/__tests__/sections/sections-migrate.test.js +0 -145
- package/dist/__tests__/sections/sections-migrate.test.js.map +0 -1
- package/dist/__tests__/security/access.test.d.ts +0 -2
- package/dist/__tests__/security/access.test.d.ts.map +0 -1
- package/dist/__tests__/security/access.test.js +0 -181
- package/dist/__tests__/security/access.test.js.map +0 -1
- package/dist/__tests__/security/api-key-enhanced.test.d.ts +0 -2
- package/dist/__tests__/security/api-key-enhanced.test.d.ts.map +0 -1
- package/dist/__tests__/security/api-key-enhanced.test.js +0 -110
- package/dist/__tests__/security/api-key-enhanced.test.js.map +0 -1
- package/dist/__tests__/security/audit.test.d.ts +0 -2
- package/dist/__tests__/security/audit.test.d.ts.map +0 -1
- package/dist/__tests__/security/audit.test.js +0 -50
- package/dist/__tests__/security/audit.test.js.map +0 -1
- package/dist/__tests__/security/center.test.d.ts +0 -2
- package/dist/__tests__/security/center.test.d.ts.map +0 -1
- package/dist/__tests__/security/center.test.js +0 -226
- package/dist/__tests__/security/center.test.js.map +0 -1
- package/dist/__tests__/security/client-ip.test.d.ts +0 -2
- package/dist/__tests__/security/client-ip.test.d.ts.map +0 -1
- package/dist/__tests__/security/client-ip.test.js +0 -37
- package/dist/__tests__/security/client-ip.test.js.map +0 -1
- package/dist/__tests__/security/csrf.test.d.ts +0 -2
- package/dist/__tests__/security/csrf.test.d.ts.map +0 -1
- package/dist/__tests__/security/csrf.test.js +0 -40
- package/dist/__tests__/security/csrf.test.js.map +0 -1
- package/dist/__tests__/security/encrypted-fields.test.d.ts +0 -2
- package/dist/__tests__/security/encrypted-fields.test.d.ts.map +0 -1
- package/dist/__tests__/security/encrypted-fields.test.js +0 -60
- package/dist/__tests__/security/encrypted-fields.test.js.map +0 -1
- package/dist/__tests__/security/ip-allowlist.test.d.ts +0 -2
- package/dist/__tests__/security/ip-allowlist.test.d.ts.map +0 -1
- package/dist/__tests__/security/ip-allowlist.test.js +0 -40
- package/dist/__tests__/security/ip-allowlist.test.js.map +0 -1
- package/dist/__tests__/security/rate-limit.test.d.ts +0 -2
- package/dist/__tests__/security/rate-limit.test.d.ts.map +0 -1
- package/dist/__tests__/security/rate-limit.test.js +0 -199
- package/dist/__tests__/security/rate-limit.test.js.map +0 -1
- package/dist/__tests__/security/reauth.test.d.ts +0 -2
- package/dist/__tests__/security/reauth.test.d.ts.map +0 -1
- package/dist/__tests__/security/reauth.test.js +0 -30
- package/dist/__tests__/security/reauth.test.js.map +0 -1
- package/dist/__tests__/security/redact.test.d.ts +0 -2
- package/dist/__tests__/security/redact.test.d.ts.map +0 -1
- package/dist/__tests__/security/redact.test.js +0 -31
- package/dist/__tests__/security/redact.test.js.map +0 -1
- package/dist/__tests__/security/safe-fetch.test.d.ts +0 -2
- package/dist/__tests__/security/safe-fetch.test.d.ts.map +0 -1
- package/dist/__tests__/security/safe-fetch.test.js +0 -97
- package/dist/__tests__/security/safe-fetch.test.js.map +0 -1
- package/dist/__tests__/security/sanitize-document.test.d.ts +0 -2
- package/dist/__tests__/security/sanitize-document.test.d.ts.map +0 -1
- package/dist/__tests__/security/sanitize-document.test.js +0 -146
- package/dist/__tests__/security/sanitize-document.test.js.map +0 -1
- package/dist/__tests__/security/sanitize.test.d.ts +0 -2
- package/dist/__tests__/security/sanitize.test.d.ts.map +0 -1
- package/dist/__tests__/security/sanitize.test.js +0 -75
- package/dist/__tests__/security/sanitize.test.js.map +0 -1
- package/dist/__tests__/security/secret-storage.test.d.ts +0 -2
- package/dist/__tests__/security/secret-storage.test.d.ts.map +0 -1
- package/dist/__tests__/security/secret-storage.test.js +0 -42
- package/dist/__tests__/security/secret-storage.test.js.map +0 -1
- package/dist/__tests__/security/ssrf.test.d.ts +0 -2
- package/dist/__tests__/security/ssrf.test.d.ts.map +0 -1
- package/dist/__tests__/security/ssrf.test.js +0 -209
- package/dist/__tests__/security/ssrf.test.js.map +0 -1
- package/dist/__tests__/security/upload-magic.test.d.ts +0 -2
- package/dist/__tests__/security/upload-magic.test.d.ts.map +0 -1
- package/dist/__tests__/security/upload-magic.test.js +0 -55
- package/dist/__tests__/security/upload-magic.test.js.map +0 -1
- package/dist/__tests__/seo/ai-bots.test.d.ts +0 -2
- package/dist/__tests__/seo/ai-bots.test.d.ts.map +0 -1
- package/dist/__tests__/seo/ai-bots.test.js +0 -92
- package/dist/__tests__/seo/ai-bots.test.js.map +0 -1
- package/dist/__tests__/seo/alt-text.test.d.ts +0 -2
- package/dist/__tests__/seo/alt-text.test.d.ts.map +0 -1
- package/dist/__tests__/seo/alt-text.test.js +0 -47
- package/dist/__tests__/seo/alt-text.test.js.map +0 -1
- package/dist/__tests__/seo/analysis-markdown.test.d.ts +0 -2
- package/dist/__tests__/seo/analysis-markdown.test.d.ts.map +0 -1
- package/dist/__tests__/seo/analysis-markdown.test.js +0 -57
- package/dist/__tests__/seo/analysis-markdown.test.js.map +0 -1
- package/dist/__tests__/seo/audit-engine.test.d.ts +0 -2
- package/dist/__tests__/seo/audit-engine.test.d.ts.map +0 -1
- package/dist/__tests__/seo/audit-engine.test.js +0 -181
- package/dist/__tests__/seo/audit-engine.test.js.map +0 -1
- package/dist/__tests__/seo/audit-runner.test.d.ts +0 -2
- package/dist/__tests__/seo/audit-runner.test.d.ts.map +0 -1
- package/dist/__tests__/seo/audit-runner.test.js +0 -204
- package/dist/__tests__/seo/audit-runner.test.js.map +0 -1
- package/dist/__tests__/seo/audit-signals.test.d.ts +0 -2
- package/dist/__tests__/seo/audit-signals.test.d.ts.map +0 -1
- package/dist/__tests__/seo/audit-signals.test.js +0 -30
- package/dist/__tests__/seo/audit-signals.test.js.map +0 -1
- package/dist/__tests__/seo/config-store.test.d.ts +0 -2
- package/dist/__tests__/seo/config-store.test.d.ts.map +0 -1
- package/dist/__tests__/seo/config-store.test.js +0 -31
- package/dist/__tests__/seo/config-store.test.js.map +0 -1
- package/dist/__tests__/seo/content-markdown.test.d.ts +0 -2
- package/dist/__tests__/seo/content-markdown.test.d.ts.map +0 -1
- package/dist/__tests__/seo/content-markdown.test.js +0 -124
- package/dist/__tests__/seo/content-markdown.test.js.map +0 -1
- package/dist/__tests__/seo/effective-meta.test.d.ts +0 -2
- package/dist/__tests__/seo/effective-meta.test.d.ts.map +0 -1
- package/dist/__tests__/seo/effective-meta.test.js +0 -58
- package/dist/__tests__/seo/effective-meta.test.js.map +0 -1
- package/dist/__tests__/seo/feeds.test.d.ts +0 -2
- package/dist/__tests__/seo/feeds.test.d.ts.map +0 -1
- package/dist/__tests__/seo/feeds.test.js +0 -61
- package/dist/__tests__/seo/feeds.test.js.map +0 -1
- package/dist/__tests__/seo/fix-brief-export.test.d.ts +0 -2
- package/dist/__tests__/seo/fix-brief-export.test.d.ts.map +0 -1
- package/dist/__tests__/seo/fix-brief-export.test.js +0 -153
- package/dist/__tests__/seo/fix-brief-export.test.js.map +0 -1
- package/dist/__tests__/seo/freshness.test.d.ts +0 -2
- package/dist/__tests__/seo/freshness.test.d.ts.map +0 -1
- package/dist/__tests__/seo/freshness.test.js +0 -89
- package/dist/__tests__/seo/freshness.test.js.map +0 -1
- package/dist/__tests__/seo/index-status.test.d.ts +0 -2
- package/dist/__tests__/seo/index-status.test.d.ts.map +0 -1
- package/dist/__tests__/seo/index-status.test.js +0 -140
- package/dist/__tests__/seo/index-status.test.js.map +0 -1
- package/dist/__tests__/seo/internal-collections.test.d.ts +0 -2
- package/dist/__tests__/seo/internal-collections.test.d.ts.map +0 -1
- package/dist/__tests__/seo/internal-collections.test.js +0 -27
- package/dist/__tests__/seo/internal-collections.test.js.map +0 -1
- package/dist/__tests__/seo/issue-batch-briefs.test.d.ts +0 -2
- package/dist/__tests__/seo/issue-batch-briefs.test.d.ts.map +0 -1
- package/dist/__tests__/seo/issue-batch-briefs.test.js +0 -64
- package/dist/__tests__/seo/issue-batch-briefs.test.js.map +0 -1
- package/dist/__tests__/seo/issue-content-brief.test.d.ts +0 -2
- package/dist/__tests__/seo/issue-content-brief.test.d.ts.map +0 -1
- package/dist/__tests__/seo/issue-content-brief.test.js +0 -107
- package/dist/__tests__/seo/issue-content-brief.test.js.map +0 -1
- package/dist/__tests__/seo/issue-content-research.test.d.ts +0 -2
- package/dist/__tests__/seo/issue-content-research.test.d.ts.map +0 -1
- package/dist/__tests__/seo/issue-content-research.test.js +0 -114
- package/dist/__tests__/seo/issue-content-research.test.js.map +0 -1
- package/dist/__tests__/seo/issue-fix-ai.test.d.ts +0 -2
- package/dist/__tests__/seo/issue-fix-ai.test.d.ts.map +0 -1
- package/dist/__tests__/seo/issue-fix-ai.test.js +0 -96
- package/dist/__tests__/seo/issue-fix-ai.test.js.map +0 -1
- package/dist/__tests__/seo/issue-fix-orchestrator.test.d.ts +0 -2
- package/dist/__tests__/seo/issue-fix-orchestrator.test.d.ts.map +0 -1
- package/dist/__tests__/seo/issue-fix-orchestrator.test.js +0 -48
- package/dist/__tests__/seo/issue-fix-orchestrator.test.js.map +0 -1
- package/dist/__tests__/seo/issue-fix.test.d.ts +0 -2
- package/dist/__tests__/seo/issue-fix.test.d.ts.map +0 -1
- package/dist/__tests__/seo/issue-fix.test.js +0 -98
- package/dist/__tests__/seo/issue-fix.test.js.map +0 -1
- package/dist/__tests__/seo/llms-sanitize.test.d.ts +0 -2
- package/dist/__tests__/seo/llms-sanitize.test.d.ts.map +0 -1
- package/dist/__tests__/seo/llms-sanitize.test.js +0 -74
- package/dist/__tests__/seo/llms-sanitize.test.js.map +0 -1
- package/dist/__tests__/seo/meta-tags-alternates.test.d.ts +0 -2
- package/dist/__tests__/seo/meta-tags-alternates.test.d.ts.map +0 -1
- package/dist/__tests__/seo/meta-tags-alternates.test.js +0 -52
- package/dist/__tests__/seo/meta-tags-alternates.test.js.map +0 -1
- package/dist/__tests__/seo/migrate-meta.test.d.ts +0 -2
- package/dist/__tests__/seo/migrate-meta.test.d.ts.map +0 -1
- package/dist/__tests__/seo/migrate-meta.test.js +0 -75
- package/dist/__tests__/seo/migrate-meta.test.js.map +0 -1
- package/dist/__tests__/seo/migrate-schema.test.d.ts +0 -2
- package/dist/__tests__/seo/migrate-schema.test.d.ts.map +0 -1
- package/dist/__tests__/seo/migrate-schema.test.js +0 -97
- package/dist/__tests__/seo/migrate-schema.test.js.map +0 -1
- package/dist/__tests__/seo/page-meta.test.d.ts +0 -2
- package/dist/__tests__/seo/page-meta.test.d.ts.map +0 -1
- package/dist/__tests__/seo/page-meta.test.js +0 -452
- package/dist/__tests__/seo/page-meta.test.js.map +0 -1
- package/dist/__tests__/seo/resolve-path.test.d.ts +0 -2
- package/dist/__tests__/seo/resolve-path.test.d.ts.map +0 -1
- package/dist/__tests__/seo/resolve-path.test.js +0 -46
- package/dist/__tests__/seo/resolve-path.test.js.map +0 -1
- package/dist/__tests__/seo/robots.test.d.ts +0 -2
- package/dist/__tests__/seo/robots.test.d.ts.map +0 -1
- package/dist/__tests__/seo/robots.test.js +0 -72
- package/dist/__tests__/seo/robots.test.js.map +0 -1
- package/dist/__tests__/seo/schema-sync.test.d.ts +0 -2
- package/dist/__tests__/seo/schema-sync.test.d.ts.map +0 -1
- package/dist/__tests__/seo/schema-sync.test.js +0 -59
- package/dist/__tests__/seo/schema-sync.test.js.map +0 -1
- package/dist/__tests__/seo/score.test.d.ts +0 -2
- package/dist/__tests__/seo/score.test.d.ts.map +0 -1
- package/dist/__tests__/seo/score.test.js +0 -152
- package/dist/__tests__/seo/score.test.js.map +0 -1
- package/dist/__tests__/seo/settings-defaults.test.d.ts +0 -2
- package/dist/__tests__/seo/settings-defaults.test.d.ts.map +0 -1
- package/dist/__tests__/seo/settings-defaults.test.js +0 -189
- package/dist/__tests__/seo/settings-defaults.test.js.map +0 -1
- package/dist/__tests__/seo/sitemap-notify.test.d.ts +0 -2
- package/dist/__tests__/seo/sitemap-notify.test.d.ts.map +0 -1
- package/dist/__tests__/seo/sitemap-notify.test.js +0 -267
- package/dist/__tests__/seo/sitemap-notify.test.js.map +0 -1
- package/dist/__tests__/seo/sitemap-public.test.d.ts +0 -2
- package/dist/__tests__/seo/sitemap-public.test.d.ts.map +0 -1
- package/dist/__tests__/seo/sitemap-public.test.js +0 -52
- package/dist/__tests__/seo/sitemap-public.test.js.map +0 -1
- package/dist/__tests__/server-site.test.d.ts +0 -2
- package/dist/__tests__/server-site.test.d.ts.map +0 -1
- package/dist/__tests__/server-site.test.js +0 -173
- package/dist/__tests__/server-site.test.js.map +0 -1
- package/dist/__tests__/setup/index.test.d.ts +0 -2
- package/dist/__tests__/setup/index.test.d.ts.map +0 -1
- package/dist/__tests__/setup/index.test.js +0 -128
- package/dist/__tests__/setup/index.test.js.map +0 -1
- package/dist/__tests__/site.test.d.ts +0 -2
- package/dist/__tests__/site.test.d.ts.map +0 -1
- package/dist/__tests__/site.test.js +0 -81
- package/dist/__tests__/site.test.js.map +0 -1
- package/dist/__tests__/storage/auto-wire.test.d.ts +0 -2
- package/dist/__tests__/storage/auto-wire.test.d.ts.map +0 -1
- package/dist/__tests__/storage/auto-wire.test.js +0 -73
- package/dist/__tests__/storage/auto-wire.test.js.map +0 -1
- package/dist/__tests__/upgrade/version-check.test.d.ts +0 -2
- package/dist/__tests__/upgrade/version-check.test.d.ts.map +0 -1
- package/dist/__tests__/upgrade/version-check.test.js +0 -98
- package/dist/__tests__/upgrade/version-check.test.js.map +0 -1
- package/dist/__tests__/validation/publish.test.d.ts +0 -2
- package/dist/__tests__/validation/publish.test.d.ts.map +0 -1
- package/dist/__tests__/validation/publish.test.js +0 -164
- package/dist/__tests__/validation/publish.test.js.map +0 -1
- package/dist/__tests__/webhooks/webhooks.test.d.ts +0 -2
- package/dist/__tests__/webhooks/webhooks.test.d.ts.map +0 -1
- package/dist/__tests__/webhooks/webhooks.test.js +0 -96
- package/dist/__tests__/webhooks/webhooks.test.js.map +0 -1
- package/dist/cache/__tests__/http.test.d.ts +0 -2
- package/dist/cache/__tests__/http.test.d.ts.map +0 -1
- package/dist/cache/__tests__/http.test.js +0 -285
- package/dist/cache/__tests__/http.test.js.map +0 -1
- package/dist/db/__tests__/find-in-batches.test.d.ts +0 -2
- package/dist/db/__tests__/find-in-batches.test.d.ts.map +0 -1
- package/dist/db/__tests__/find-in-batches.test.js +0 -26
- package/dist/db/__tests__/find-in-batches.test.js.map +0 -1
- package/dist/fields/__tests__/presets.test.d.ts +0 -2
- package/dist/fields/__tests__/presets.test.d.ts.map +0 -1
- package/dist/fields/__tests__/presets.test.js +0 -29
- package/dist/fields/__tests__/presets.test.js.map +0 -1
- package/dist/page-builder/__tests__/a11y-fix.test.d.ts +0 -2
- package/dist/page-builder/__tests__/a11y-fix.test.d.ts.map +0 -1
- package/dist/page-builder/__tests__/a11y-fix.test.js +0 -242
- package/dist/page-builder/__tests__/a11y-fix.test.js.map +0 -1
- package/dist/page-builder/__tests__/blocks.test.d.ts +0 -2
- package/dist/page-builder/__tests__/blocks.test.d.ts.map +0 -1
- package/dist/page-builder/__tests__/blocks.test.js +0 -194
- package/dist/page-builder/__tests__/blocks.test.js.map +0 -1
- package/dist/page-builder/__tests__/design-scorer.test.d.ts +0 -2
- package/dist/page-builder/__tests__/design-scorer.test.d.ts.map +0 -1
- package/dist/page-builder/__tests__/design-scorer.test.js +0 -301
- package/dist/page-builder/__tests__/design-scorer.test.js.map +0 -1
- package/dist/page-builder/__tests__/schema.test.d.ts +0 -2
- package/dist/page-builder/__tests__/schema.test.d.ts.map +0 -1
- package/dist/page-builder/__tests__/schema.test.js +0 -191
- package/dist/page-builder/__tests__/schema.test.js.map +0 -1
- package/dist/page-builder/__tests__/seo-analyzer.test.d.ts +0 -2
- package/dist/page-builder/__tests__/seo-analyzer.test.d.ts.map +0 -1
- package/dist/page-builder/__tests__/seo-analyzer.test.js +0 -346
- package/dist/page-builder/__tests__/seo-analyzer.test.js.map +0 -1
- package/dist/page-builder/__tests__/tree.test.d.ts +0 -2
- package/dist/page-builder/__tests__/tree.test.d.ts.map +0 -1
- package/dist/page-builder/__tests__/tree.test.js +0 -257
- package/dist/page-builder/__tests__/tree.test.js.map +0 -1
- package/dist/posts/__tests__/query.test.d.ts +0 -2
- package/dist/posts/__tests__/query.test.d.ts.map +0 -1
- package/dist/posts/__tests__/query.test.js +0 -70
- package/dist/posts/__tests__/query.test.js.map +0 -1
- package/dist/sections/__tests__/bridge.test.d.ts +0 -2
- package/dist/sections/__tests__/bridge.test.d.ts.map +0 -1
- package/dist/sections/__tests__/bridge.test.js +0 -171
- package/dist/sections/__tests__/bridge.test.js.map +0 -1
- package/dist/sections/__tests__/define.test.d.ts +0 -2
- package/dist/sections/__tests__/define.test.d.ts.map +0 -1
- package/dist/sections/__tests__/define.test.js +0 -132
- package/dist/sections/__tests__/define.test.js.map +0 -1
- package/dist/sections/__tests__/embed.test.d.ts +0 -2
- package/dist/sections/__tests__/embed.test.d.ts.map +0 -1
- package/dist/sections/__tests__/embed.test.js +0 -54
- package/dist/sections/__tests__/embed.test.js.map +0 -1
- package/dist/sections/__tests__/media-enrich.test.d.ts +0 -2
- package/dist/sections/__tests__/media-enrich.test.d.ts.map +0 -1
- package/dist/sections/__tests__/media-enrich.test.js +0 -97
- package/dist/sections/__tests__/media-enrich.test.js.map +0 -1
- package/dist/sections/__tests__/sections.test.d.ts +0 -2
- package/dist/sections/__tests__/sections.test.d.ts.map +0 -1
- package/dist/sections/__tests__/sections.test.js +0 -453
- package/dist/sections/__tests__/sections.test.js.map +0 -1
|
@@ -1,834 +0,0 @@
|
|
|
1
|
-
import { beforeEach, describe, expect, it } from 'vitest';
|
|
2
|
-
import { handleActuateAPI } from '../../api/index.js';
|
|
3
|
-
import { initDB } from '../../db.js';
|
|
4
|
-
function createMockDB(docs) {
|
|
5
|
-
const findFirst = async (args) => {
|
|
6
|
-
const where = args?.where ?? {};
|
|
7
|
-
const matches = docs.filter((d) => {
|
|
8
|
-
if (where.collection && d.collection !== where.collection)
|
|
9
|
-
return false;
|
|
10
|
-
if (where.status && d.status !== where.status)
|
|
11
|
-
return false;
|
|
12
|
-
if (where.deletedAt === null) {
|
|
13
|
-
// mock docs never carry deletedAt
|
|
14
|
-
}
|
|
15
|
-
if (where.OR && Array.isArray(where.OR)) {
|
|
16
|
-
return where.OR.some((clause) => {
|
|
17
|
-
if (clause.slug !== undefined)
|
|
18
|
-
return d.slug === clause.slug;
|
|
19
|
-
if (clause.data?.path && clause.data?.equals) {
|
|
20
|
-
const path = clause.data.path[0];
|
|
21
|
-
return d.data?.[path] === clause.data.equals;
|
|
22
|
-
}
|
|
23
|
-
return false;
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
return true;
|
|
27
|
-
});
|
|
28
|
-
const doc = matches[0];
|
|
29
|
-
if (!doc)
|
|
30
|
-
return null;
|
|
31
|
-
return {
|
|
32
|
-
...doc,
|
|
33
|
-
publishedAt: doc.publishedAt ?? null,
|
|
34
|
-
updatedAt: doc.updatedAt ?? new Date('2026-03-15T12:00:00Z'),
|
|
35
|
-
createdAt: doc.createdAt ?? new Date('2026-01-01T00:00:00Z'),
|
|
36
|
-
structuredData: doc.structuredData ?? null,
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
const findMany = async (args) => {
|
|
40
|
-
const where = args?.where ?? {};
|
|
41
|
-
return docs.filter((d) => {
|
|
42
|
-
if (where.collection && d.collection !== where.collection)
|
|
43
|
-
return false;
|
|
44
|
-
if (where.status && d.status !== where.status)
|
|
45
|
-
return false;
|
|
46
|
-
return true;
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
return {
|
|
50
|
-
document: { findFirst, findMany },
|
|
51
|
-
user: {},
|
|
52
|
-
session: {},
|
|
53
|
-
media: {},
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
describe('public SEO routes', () => {
|
|
57
|
-
beforeEach(() => {
|
|
58
|
-
delete globalThis.__actuateConfig;
|
|
59
|
-
// Reset the global guarded DB to a clean, indexable state so SEO module
|
|
60
|
-
// settings (read via getSeoOverrides(db())) don't leak between tests.
|
|
61
|
-
// Tests that need specific overrides call initDB() with their own docs.
|
|
62
|
-
initDB(createMockDB([]));
|
|
63
|
-
});
|
|
64
|
-
it('exposes /sitemap.xml as a sitemap index over configured collections', async () => {
|
|
65
|
-
const handler = handleActuateAPI({
|
|
66
|
-
prismaClient: createMockDB([]),
|
|
67
|
-
config: {
|
|
68
|
-
seo: { siteUrl: 'https://example.com', siteName: 'Example' },
|
|
69
|
-
collections: {
|
|
70
|
-
pages: {
|
|
71
|
-
slug: 'pages',
|
|
72
|
-
labels: { singular: 'Page', plural: 'Pages' },
|
|
73
|
-
urlPrefix: '',
|
|
74
|
-
type: 'page',
|
|
75
|
-
fields: {},
|
|
76
|
-
},
|
|
77
|
-
posts: {
|
|
78
|
-
slug: 'posts',
|
|
79
|
-
labels: { singular: 'Post', plural: 'Posts' },
|
|
80
|
-
urlPrefix: 'blog',
|
|
81
|
-
type: 'post',
|
|
82
|
-
fields: {},
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
});
|
|
87
|
-
const response = await handler(new Request('https://example.com/api/cms/sitemap.xml'));
|
|
88
|
-
expect(response.status).toBe(200);
|
|
89
|
-
expect(response.headers.get('Content-Type')).toContain('application/xml');
|
|
90
|
-
const text = await response.text();
|
|
91
|
-
expect(text).toContain('<sitemapindex');
|
|
92
|
-
expect(text).toContain('https://example.com/page-sitemap.xml');
|
|
93
|
-
expect(text).toContain('https://example.com/post-sitemap.xml');
|
|
94
|
-
expect(text).toContain('xml-stylesheet');
|
|
95
|
-
});
|
|
96
|
-
it('serves an RSS feed of newest posts and excludes noindex docs', async () => {
|
|
97
|
-
const docs = [
|
|
98
|
-
{
|
|
99
|
-
id: 'p1',
|
|
100
|
-
slug: 'hello',
|
|
101
|
-
collection: 'posts',
|
|
102
|
-
status: 'PUBLISHED',
|
|
103
|
-
data: { title: 'Hello', keyTakeaway: 'A short summary.' },
|
|
104
|
-
publishedAt: new Date('2026-03-01T00:00:00Z'),
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
id: 'p2',
|
|
108
|
-
slug: 'secret',
|
|
109
|
-
collection: 'posts',
|
|
110
|
-
status: 'PUBLISHED',
|
|
111
|
-
data: { title: 'Secret', noindex: true },
|
|
112
|
-
publishedAt: new Date('2026-02-01T00:00:00Z'),
|
|
113
|
-
},
|
|
114
|
-
];
|
|
115
|
-
const config = {
|
|
116
|
-
seo: { siteUrl: 'https://example.com', siteName: 'Acme' },
|
|
117
|
-
collections: {
|
|
118
|
-
posts: {
|
|
119
|
-
slug: 'posts',
|
|
120
|
-
labels: { singular: 'Post', plural: 'Posts' },
|
|
121
|
-
urlPrefix: 'blog',
|
|
122
|
-
type: 'post',
|
|
123
|
-
fields: {},
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
};
|
|
127
|
-
initDB(createMockDB(docs));
|
|
128
|
-
const handler = handleActuateAPI({ prismaClient: createMockDB(docs), config: config });
|
|
129
|
-
const res = await handler(new Request('https://example.com/api/cms/feed.xml'));
|
|
130
|
-
expect(res.status).toBe(200);
|
|
131
|
-
expect(res.headers.get('Content-Type')).toContain('application/rss+xml');
|
|
132
|
-
const text = await res.text();
|
|
133
|
-
expect(text).toContain('<title>Acme</title>');
|
|
134
|
-
expect(text).toContain('https://example.com/blog/hello');
|
|
135
|
-
expect(text).toContain('A short summary.');
|
|
136
|
-
// noindex post must be excluded from the feed.
|
|
137
|
-
expect(text).not.toContain('https://example.com/blog/secret');
|
|
138
|
-
});
|
|
139
|
-
it('serves a JSON Feed 1.1 document', async () => {
|
|
140
|
-
const docs = [
|
|
141
|
-
{
|
|
142
|
-
id: 'p1',
|
|
143
|
-
slug: 'hello',
|
|
144
|
-
collection: 'posts',
|
|
145
|
-
status: 'PUBLISHED',
|
|
146
|
-
data: { title: 'Hello' },
|
|
147
|
-
publishedAt: new Date('2026-03-01T00:00:00Z'),
|
|
148
|
-
},
|
|
149
|
-
];
|
|
150
|
-
const config = {
|
|
151
|
-
seo: { siteUrl: 'https://example.com', siteName: 'Acme' },
|
|
152
|
-
collections: {
|
|
153
|
-
posts: {
|
|
154
|
-
slug: 'posts',
|
|
155
|
-
labels: { singular: 'Post', plural: 'Posts' },
|
|
156
|
-
urlPrefix: 'blog',
|
|
157
|
-
type: 'post',
|
|
158
|
-
fields: {},
|
|
159
|
-
},
|
|
160
|
-
},
|
|
161
|
-
};
|
|
162
|
-
initDB(createMockDB(docs));
|
|
163
|
-
const handler = handleActuateAPI({ prismaClient: createMockDB(docs), config: config });
|
|
164
|
-
const res = await handler(new Request('https://example.com/api/cms/feed.json'));
|
|
165
|
-
expect(res.status).toBe(200);
|
|
166
|
-
expect(res.headers.get('Content-Type')).toContain('application/feed+json');
|
|
167
|
-
const parsed = JSON.parse(await res.text());
|
|
168
|
-
expect(parsed.version).toBe('https://jsonfeed.org/version/1.1');
|
|
169
|
-
expect(parsed.feed_url).toBe('https://example.com/feed.json');
|
|
170
|
-
expect(parsed.items[0].url).toBe('https://example.com/blog/hello');
|
|
171
|
-
});
|
|
172
|
-
it('respects seo.sitemap.excludeCollections', async () => {
|
|
173
|
-
const handler = handleActuateAPI({
|
|
174
|
-
prismaClient: createMockDB([]),
|
|
175
|
-
config: {
|
|
176
|
-
seo: {
|
|
177
|
-
siteUrl: 'https://example.com',
|
|
178
|
-
sitemap: { excludeCollections: ['drafts'] },
|
|
179
|
-
},
|
|
180
|
-
collections: {
|
|
181
|
-
pages: {
|
|
182
|
-
slug: 'pages',
|
|
183
|
-
type: 'page',
|
|
184
|
-
labels: { singular: 'P', plural: 'Pp' },
|
|
185
|
-
urlPrefix: '',
|
|
186
|
-
fields: {},
|
|
187
|
-
},
|
|
188
|
-
drafts: {
|
|
189
|
-
slug: 'drafts',
|
|
190
|
-
type: 'page',
|
|
191
|
-
labels: { singular: 'D', plural: 'Dd' },
|
|
192
|
-
urlPrefix: 'd',
|
|
193
|
-
fields: {},
|
|
194
|
-
},
|
|
195
|
-
},
|
|
196
|
-
},
|
|
197
|
-
});
|
|
198
|
-
const response = await handler(new Request('https://example.com/api/cms/sitemap.xml'));
|
|
199
|
-
const text = await response.text();
|
|
200
|
-
expect(text).toContain('https://example.com/page-sitemap.xml');
|
|
201
|
-
expect(text).not.toContain('drafts-sitemap');
|
|
202
|
-
});
|
|
203
|
-
it('returns 404 when seo.sitemap.disabled is true', async () => {
|
|
204
|
-
const handler = handleActuateAPI({
|
|
205
|
-
prismaClient: createMockDB([]),
|
|
206
|
-
config: {
|
|
207
|
-
seo: { siteUrl: 'https://example.com', sitemap: { disabled: true } },
|
|
208
|
-
collections: {
|
|
209
|
-
pages: { slug: 'pages', labels: { singular: 'P', plural: 'P' }, fields: {} },
|
|
210
|
-
},
|
|
211
|
-
},
|
|
212
|
-
});
|
|
213
|
-
const response = await handler(new Request('https://example.com/api/cms/sitemap.xml'));
|
|
214
|
-
expect(response.status).toBe(404);
|
|
215
|
-
});
|
|
216
|
-
it('renders per-collection sitemap with absolute URLs and lastmod', async () => {
|
|
217
|
-
const docs = [
|
|
218
|
-
{
|
|
219
|
-
id: '1',
|
|
220
|
-
slug: 'about',
|
|
221
|
-
collection: 'pages',
|
|
222
|
-
status: 'PUBLISHED',
|
|
223
|
-
data: { title: 'About', slug: 'about' },
|
|
224
|
-
updatedAt: new Date('2026-03-10T09:00:00Z'),
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
id: '2',
|
|
228
|
-
slug: 'contact',
|
|
229
|
-
collection: 'pages',
|
|
230
|
-
status: 'PUBLISHED',
|
|
231
|
-
data: { title: 'Contact', slug: 'contact' },
|
|
232
|
-
updatedAt: new Date('2026-03-11T09:00:00Z'),
|
|
233
|
-
},
|
|
234
|
-
];
|
|
235
|
-
initDB(createMockDB(docs));
|
|
236
|
-
const handler = handleActuateAPI({
|
|
237
|
-
prismaClient: createMockDB(docs),
|
|
238
|
-
config: {
|
|
239
|
-
seo: { siteUrl: 'https://example.com' },
|
|
240
|
-
collections: {
|
|
241
|
-
pages: {
|
|
242
|
-
slug: 'pages',
|
|
243
|
-
labels: { singular: 'P', plural: 'Pp' },
|
|
244
|
-
urlPrefix: '',
|
|
245
|
-
type: 'page',
|
|
246
|
-
fields: {},
|
|
247
|
-
},
|
|
248
|
-
},
|
|
249
|
-
},
|
|
250
|
-
});
|
|
251
|
-
const response = await handler(new Request('https://example.com/api/cms/sitemaps/pages.xml'));
|
|
252
|
-
expect(response.status).toBe(200);
|
|
253
|
-
const text = await response.text();
|
|
254
|
-
expect(text).toContain('<urlset');
|
|
255
|
-
expect(text).toContain('<loc>https://example.com/about</loc>');
|
|
256
|
-
expect(text).toContain('<loc>https://example.com/contact</loc>');
|
|
257
|
-
expect(text).toContain('<priority>0.8</priority>');
|
|
258
|
-
expect(text).toContain('2026-03-10T09:00:00.000Z');
|
|
259
|
-
});
|
|
260
|
-
it('uses data.path for the sitemap loc so the homepage is "/" not "/home"', async () => {
|
|
261
|
-
const docs = [
|
|
262
|
-
{
|
|
263
|
-
id: '1',
|
|
264
|
-
slug: 'home',
|
|
265
|
-
collection: 'pages',
|
|
266
|
-
status: 'PUBLISHED',
|
|
267
|
-
// Editor set an explicit canonical path for the homepage.
|
|
268
|
-
data: { title: 'Home', slug: 'home', path: '/' },
|
|
269
|
-
updatedAt: new Date('2026-03-10T09:00:00Z'),
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
id: '2',
|
|
273
|
-
slug: 'about',
|
|
274
|
-
collection: 'pages',
|
|
275
|
-
status: 'PUBLISHED',
|
|
276
|
-
// Explicit path that differs from the bare slug.
|
|
277
|
-
data: { title: 'About', slug: 'about', path: '/about-us' },
|
|
278
|
-
updatedAt: new Date('2026-03-11T09:00:00Z'),
|
|
279
|
-
},
|
|
280
|
-
];
|
|
281
|
-
initDB(createMockDB(docs));
|
|
282
|
-
const handler = handleActuateAPI({
|
|
283
|
-
prismaClient: createMockDB(docs),
|
|
284
|
-
config: {
|
|
285
|
-
seo: { siteUrl: 'https://example.com' },
|
|
286
|
-
collections: {
|
|
287
|
-
pages: {
|
|
288
|
-
slug: 'pages',
|
|
289
|
-
labels: { singular: 'P', plural: 'Pp' },
|
|
290
|
-
urlPrefix: '',
|
|
291
|
-
type: 'page',
|
|
292
|
-
fields: {},
|
|
293
|
-
},
|
|
294
|
-
},
|
|
295
|
-
},
|
|
296
|
-
});
|
|
297
|
-
const response = await handler(new Request('https://example.com/api/cms/sitemaps/pages.xml'));
|
|
298
|
-
const text = await response.text();
|
|
299
|
-
// Homepage matches the canonical exactly (no trailing slash), as produced
|
|
300
|
-
// by composePageMeta — sitemap and canonical must never disagree.
|
|
301
|
-
expect(text).toContain('<loc>https://example.com</loc>');
|
|
302
|
-
expect(text).toContain('<loc>https://example.com/about-us</loc>');
|
|
303
|
-
// The non-canonical slug-derived URLs must not appear.
|
|
304
|
-
expect(text).not.toContain('<loc>https://example.com/home</loc>');
|
|
305
|
-
expect(text).not.toContain('<loc>https://example.com/about</loc>');
|
|
306
|
-
});
|
|
307
|
-
it('emits <image:image> entries when "Include images in sitemap" is on (default)', async () => {
|
|
308
|
-
const docs = [
|
|
309
|
-
{
|
|
310
|
-
id: '1',
|
|
311
|
-
slug: 'home',
|
|
312
|
-
collection: 'pages',
|
|
313
|
-
status: 'PUBLISHED',
|
|
314
|
-
data: {
|
|
315
|
-
title: 'Home',
|
|
316
|
-
slug: 'home',
|
|
317
|
-
path: '/',
|
|
318
|
-
featuredImage: { url: 'https://cdn.example.com/hero.jpg' },
|
|
319
|
-
sections: [
|
|
320
|
-
{
|
|
321
|
-
sectionType: 'hero',
|
|
322
|
-
content: { imageUrl: '/uploads/banner.png', imageAlt: 'Banner' },
|
|
323
|
-
},
|
|
324
|
-
],
|
|
325
|
-
},
|
|
326
|
-
updatedAt: new Date('2026-03-10T09:00:00Z'),
|
|
327
|
-
},
|
|
328
|
-
];
|
|
329
|
-
initDB(createMockDB(docs));
|
|
330
|
-
const handler = handleActuateAPI({
|
|
331
|
-
prismaClient: createMockDB(docs),
|
|
332
|
-
config: {
|
|
333
|
-
seo: { siteUrl: 'https://example.com' },
|
|
334
|
-
collections: {
|
|
335
|
-
pages: {
|
|
336
|
-
slug: 'pages',
|
|
337
|
-
labels: { singular: 'P', plural: 'Pp' },
|
|
338
|
-
urlPrefix: '',
|
|
339
|
-
type: 'page',
|
|
340
|
-
fields: {},
|
|
341
|
-
},
|
|
342
|
-
},
|
|
343
|
-
},
|
|
344
|
-
});
|
|
345
|
-
const response = await handler(new Request('https://example.com/api/cms/sitemaps/pages.xml'));
|
|
346
|
-
const text = await response.text();
|
|
347
|
-
// The image namespace is declared only when at least one image is emitted.
|
|
348
|
-
expect(text).toContain('xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"');
|
|
349
|
-
// Absolute featured-image URL is passed through untouched.
|
|
350
|
-
expect(text).toContain('<image:image><image:loc>https://cdn.example.com/hero.jpg</image:loc></image:image>');
|
|
351
|
-
// Relative section image URLs are absolutized against the site origin.
|
|
352
|
-
expect(text).toContain('<image:loc>https://example.com/uploads/banner.png</image:loc>');
|
|
353
|
-
});
|
|
354
|
-
it('omits image entries when "Include images in sitemap" is turned off', async () => {
|
|
355
|
-
const docs = [
|
|
356
|
-
{
|
|
357
|
-
id: 'cfg',
|
|
358
|
-
slug: null,
|
|
359
|
-
collection: '__seo_config__',
|
|
360
|
-
status: 'PUBLISHED',
|
|
361
|
-
data: { module: { includeImagesInSitemap: false } },
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
id: '1',
|
|
365
|
-
slug: 'home',
|
|
366
|
-
collection: 'pages',
|
|
367
|
-
status: 'PUBLISHED',
|
|
368
|
-
data: {
|
|
369
|
-
title: 'Home',
|
|
370
|
-
slug: 'home',
|
|
371
|
-
path: '/',
|
|
372
|
-
featuredImage: { url: 'https://cdn.example.com/hero.jpg' },
|
|
373
|
-
},
|
|
374
|
-
updatedAt: new Date('2026-03-10T09:00:00Z'),
|
|
375
|
-
},
|
|
376
|
-
];
|
|
377
|
-
initDB(createMockDB(docs));
|
|
378
|
-
const handler = handleActuateAPI({
|
|
379
|
-
prismaClient: createMockDB(docs),
|
|
380
|
-
config: {
|
|
381
|
-
seo: { siteUrl: 'https://example.com' },
|
|
382
|
-
collections: {
|
|
383
|
-
pages: {
|
|
384
|
-
slug: 'pages',
|
|
385
|
-
labels: { singular: 'P', plural: 'Pp' },
|
|
386
|
-
urlPrefix: '',
|
|
387
|
-
type: 'page',
|
|
388
|
-
fields: {},
|
|
389
|
-
},
|
|
390
|
-
},
|
|
391
|
-
},
|
|
392
|
-
});
|
|
393
|
-
const response = await handler(new Request('https://example.com/api/cms/sitemaps/pages.xml'));
|
|
394
|
-
const text = await response.text();
|
|
395
|
-
expect(text).toContain('<loc>https://example.com</loc>');
|
|
396
|
-
expect(text).not.toContain('<image:image');
|
|
397
|
-
expect(text).not.toContain('xmlns:image');
|
|
398
|
-
});
|
|
399
|
-
it('falls back to the site root for a home/index slug without an explicit path', async () => {
|
|
400
|
-
const docs = [
|
|
401
|
-
{
|
|
402
|
-
id: '1',
|
|
403
|
-
slug: 'home',
|
|
404
|
-
collection: 'pages',
|
|
405
|
-
status: 'PUBLISHED',
|
|
406
|
-
data: { title: 'Home', slug: 'home' },
|
|
407
|
-
updatedAt: new Date('2026-03-10T09:00:00Z'),
|
|
408
|
-
},
|
|
409
|
-
];
|
|
410
|
-
initDB(createMockDB(docs));
|
|
411
|
-
const handler = handleActuateAPI({
|
|
412
|
-
prismaClient: createMockDB(docs),
|
|
413
|
-
config: {
|
|
414
|
-
seo: { siteUrl: 'https://example.com' },
|
|
415
|
-
collections: {
|
|
416
|
-
pages: {
|
|
417
|
-
slug: 'pages',
|
|
418
|
-
labels: { singular: 'P', plural: 'Pp' },
|
|
419
|
-
urlPrefix: '',
|
|
420
|
-
type: 'page',
|
|
421
|
-
fields: {},
|
|
422
|
-
},
|
|
423
|
-
},
|
|
424
|
-
},
|
|
425
|
-
});
|
|
426
|
-
const response = await handler(new Request('https://example.com/api/cms/sitemaps/pages.xml'));
|
|
427
|
-
const text = await response.text();
|
|
428
|
-
expect(text).toContain('<loc>https://example.com</loc>');
|
|
429
|
-
expect(text).not.toContain('<loc>https://example.com/home</loc>');
|
|
430
|
-
});
|
|
431
|
-
it('excludes noindexed documents from the sitemap', async () => {
|
|
432
|
-
const docs = [
|
|
433
|
-
{
|
|
434
|
-
id: '1',
|
|
435
|
-
slug: 'visible',
|
|
436
|
-
collection: 'pages',
|
|
437
|
-
status: 'PUBLISHED',
|
|
438
|
-
data: { title: 'Visible', slug: 'visible' },
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
id: '2',
|
|
442
|
-
slug: 'hidden-bool',
|
|
443
|
-
collection: 'pages',
|
|
444
|
-
status: 'PUBLISHED',
|
|
445
|
-
data: { title: 'Hidden', slug: 'hidden-bool', noIndex: true },
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
id: '3',
|
|
449
|
-
slug: 'hidden-policy',
|
|
450
|
-
collection: 'pages',
|
|
451
|
-
status: 'PUBLISHED',
|
|
452
|
-
data: { title: 'Hidden', slug: 'hidden-policy', robotsPolicy: 'noindex-nofollow' },
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
id: '4',
|
|
456
|
-
slug: 'hidden-legacy',
|
|
457
|
-
collection: 'pages',
|
|
458
|
-
status: 'PUBLISHED',
|
|
459
|
-
data: { title: 'Hidden', slug: 'hidden-legacy', noindex: true },
|
|
460
|
-
},
|
|
461
|
-
];
|
|
462
|
-
initDB(createMockDB(docs));
|
|
463
|
-
const handler = handleActuateAPI({
|
|
464
|
-
prismaClient: createMockDB(docs),
|
|
465
|
-
config: {
|
|
466
|
-
seo: { siteUrl: 'https://example.com' },
|
|
467
|
-
collections: {
|
|
468
|
-
pages: {
|
|
469
|
-
slug: 'pages',
|
|
470
|
-
labels: { singular: 'P', plural: 'Pp' },
|
|
471
|
-
urlPrefix: '',
|
|
472
|
-
type: 'page',
|
|
473
|
-
fields: {},
|
|
474
|
-
},
|
|
475
|
-
},
|
|
476
|
-
},
|
|
477
|
-
});
|
|
478
|
-
const response = await handler(new Request('https://example.com/api/cms/sitemaps/pages.xml'));
|
|
479
|
-
const text = await response.text();
|
|
480
|
-
expect(text).toContain('<loc>https://example.com/visible</loc>');
|
|
481
|
-
expect(text).not.toContain('hidden-bool');
|
|
482
|
-
expect(text).not.toContain('hidden-policy');
|
|
483
|
-
expect(text).not.toContain('hidden-legacy');
|
|
484
|
-
});
|
|
485
|
-
it('drops post-type collections when includePostsInSitemap is off', async () => {
|
|
486
|
-
// The crawl toggle lives in the SEO overrides document (module settings).
|
|
487
|
-
const overridesDoc = {
|
|
488
|
-
id: 'seo-cfg',
|
|
489
|
-
slug: 'seo-config',
|
|
490
|
-
collection: '__seo_config__',
|
|
491
|
-
data: { module: { includePostsInSitemap: false } },
|
|
492
|
-
};
|
|
493
|
-
initDB(createMockDB([overridesDoc]));
|
|
494
|
-
const handler = handleActuateAPI({
|
|
495
|
-
prismaClient: createMockDB([overridesDoc]),
|
|
496
|
-
config: {
|
|
497
|
-
seo: { siteUrl: 'https://example.com' },
|
|
498
|
-
collections: {
|
|
499
|
-
pages: {
|
|
500
|
-
slug: 'pages',
|
|
501
|
-
labels: { singular: 'P', plural: 'Pp' },
|
|
502
|
-
urlPrefix: '',
|
|
503
|
-
type: 'page',
|
|
504
|
-
fields: {},
|
|
505
|
-
},
|
|
506
|
-
posts: {
|
|
507
|
-
slug: 'posts',
|
|
508
|
-
labels: { singular: 'Post', plural: 'Posts' },
|
|
509
|
-
urlPrefix: 'blog',
|
|
510
|
-
type: 'post',
|
|
511
|
-
fields: {},
|
|
512
|
-
},
|
|
513
|
-
},
|
|
514
|
-
},
|
|
515
|
-
});
|
|
516
|
-
const index = await handler(new Request('https://example.com/api/cms/sitemap.xml'));
|
|
517
|
-
const indexText = await index.text();
|
|
518
|
-
expect(indexText).toContain('https://example.com/page-sitemap.xml');
|
|
519
|
-
expect(indexText).not.toContain('post-sitemap.xml');
|
|
520
|
-
// The post sitemap itself must also 404 so it can't be reached directly.
|
|
521
|
-
const direct = await handler(new Request('https://example.com/api/cms/sitemaps/post-sitemap.xml'));
|
|
522
|
-
expect(direct.status).toBe(404);
|
|
523
|
-
});
|
|
524
|
-
it('emits hreflang alternates for translated documents when i18n is configured', async () => {
|
|
525
|
-
const docs = [
|
|
526
|
-
{
|
|
527
|
-
id: 'en',
|
|
528
|
-
slug: 'about',
|
|
529
|
-
collection: 'pages',
|
|
530
|
-
status: 'PUBLISHED',
|
|
531
|
-
locale: 'en',
|
|
532
|
-
localeGroupId: 'grp-1',
|
|
533
|
-
data: { title: 'About', slug: 'about', path: '/about' },
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
id: 'es',
|
|
537
|
-
slug: 'sobre-nosotros',
|
|
538
|
-
collection: 'pages',
|
|
539
|
-
status: 'PUBLISHED',
|
|
540
|
-
locale: 'es',
|
|
541
|
-
localeGroupId: 'grp-1',
|
|
542
|
-
data: { title: 'Sobre', slug: 'sobre-nosotros', path: '/es/sobre-nosotros' },
|
|
543
|
-
},
|
|
544
|
-
];
|
|
545
|
-
initDB(createMockDB(docs));
|
|
546
|
-
const handler = handleActuateAPI({
|
|
547
|
-
prismaClient: createMockDB(docs),
|
|
548
|
-
config: {
|
|
549
|
-
seo: { siteUrl: 'https://example.com' },
|
|
550
|
-
i18n: {
|
|
551
|
-
defaultLocale: 'en',
|
|
552
|
-
locales: [
|
|
553
|
-
{ code: 'en', label: 'English' },
|
|
554
|
-
{ code: 'es', label: 'Español' },
|
|
555
|
-
],
|
|
556
|
-
},
|
|
557
|
-
collections: {
|
|
558
|
-
pages: {
|
|
559
|
-
slug: 'pages',
|
|
560
|
-
labels: { singular: 'P', plural: 'Pp' },
|
|
561
|
-
urlPrefix: '',
|
|
562
|
-
type: 'page',
|
|
563
|
-
fields: {},
|
|
564
|
-
},
|
|
565
|
-
},
|
|
566
|
-
},
|
|
567
|
-
});
|
|
568
|
-
const response = await handler(new Request('https://example.com/api/cms/sitemaps/pages.xml'));
|
|
569
|
-
const text = await response.text();
|
|
570
|
-
expect(text).toContain('xmlns:xhtml="http://www.w3.org/1999/xhtml"');
|
|
571
|
-
expect(text).toContain('hreflang="en"');
|
|
572
|
-
expect(text).toContain('hreflang="es"');
|
|
573
|
-
expect(text).toContain('hreflang="x-default"');
|
|
574
|
-
expect(text).toContain('href="https://example.com/about"');
|
|
575
|
-
expect(text).toContain('href="https://example.com/es/sobre-nosotros"');
|
|
576
|
-
});
|
|
577
|
-
it('returns 404 for sitemap of an unknown collection', async () => {
|
|
578
|
-
const handler = handleActuateAPI({
|
|
579
|
-
prismaClient: createMockDB([]),
|
|
580
|
-
config: {
|
|
581
|
-
seo: { siteUrl: 'https://example.com' },
|
|
582
|
-
collections: {
|
|
583
|
-
pages: { slug: 'pages', labels: { singular: 'P', plural: 'P' }, fields: {} },
|
|
584
|
-
},
|
|
585
|
-
},
|
|
586
|
-
});
|
|
587
|
-
const response = await handler(new Request('https://example.com/api/cms/sitemaps/unknown.xml'));
|
|
588
|
-
expect(response.status).toBe(404);
|
|
589
|
-
});
|
|
590
|
-
it('includes archivePath in a post-type sitemap', async () => {
|
|
591
|
-
const docs = [
|
|
592
|
-
{
|
|
593
|
-
id: '1',
|
|
594
|
-
slug: 'first',
|
|
595
|
-
collection: 'posts',
|
|
596
|
-
status: 'PUBLISHED',
|
|
597
|
-
data: { title: 'First', slug: 'first' },
|
|
598
|
-
},
|
|
599
|
-
];
|
|
600
|
-
initDB(createMockDB(docs));
|
|
601
|
-
const handler = handleActuateAPI({
|
|
602
|
-
prismaClient: createMockDB(docs),
|
|
603
|
-
config: {
|
|
604
|
-
seo: { siteUrl: 'https://example.com' },
|
|
605
|
-
collections: {
|
|
606
|
-
posts: {
|
|
607
|
-
slug: 'posts',
|
|
608
|
-
labels: { singular: 'Post', plural: 'Posts' },
|
|
609
|
-
urlPrefix: 'blog',
|
|
610
|
-
type: 'post',
|
|
611
|
-
seo: { archivePath: '/blog' },
|
|
612
|
-
fields: {},
|
|
613
|
-
},
|
|
614
|
-
},
|
|
615
|
-
},
|
|
616
|
-
});
|
|
617
|
-
const response = await handler(new Request('https://example.com/api/cms/sitemaps/posts.xml'));
|
|
618
|
-
const text = await response.text();
|
|
619
|
-
expect(text).toContain('<loc>https://example.com/blog</loc>');
|
|
620
|
-
expect(text).toContain('<loc>https://example.com/blog/first</loc>');
|
|
621
|
-
});
|
|
622
|
-
it('serves /robots.txt with a Sitemap reference', async () => {
|
|
623
|
-
const handler = handleActuateAPI({
|
|
624
|
-
prismaClient: createMockDB([]),
|
|
625
|
-
config: {
|
|
626
|
-
seo: { siteUrl: 'https://example.com' },
|
|
627
|
-
collections: {},
|
|
628
|
-
},
|
|
629
|
-
});
|
|
630
|
-
const response = await handler(new Request('https://example.com/api/cms/robots.txt'));
|
|
631
|
-
expect(response.status).toBe(200);
|
|
632
|
-
expect(response.headers.get('Content-Type')).toContain('text/plain');
|
|
633
|
-
const text = await response.text();
|
|
634
|
-
expect(text).toMatch(/^User-agent: \*/m);
|
|
635
|
-
expect(text).toContain('Disallow: /admin');
|
|
636
|
-
// robots advertises the canonical public sitemap URL, not the internal mount.
|
|
637
|
-
expect(text).toContain('Sitemap: https://example.com/sitemap.xml');
|
|
638
|
-
expect(text).not.toContain('/api/cms/sitemap.xml');
|
|
639
|
-
});
|
|
640
|
-
it('blocks the whole public site in robots.txt when indexEntireSite is off', async () => {
|
|
641
|
-
const overridesDoc = {
|
|
642
|
-
id: 'seo-cfg',
|
|
643
|
-
slug: 'seo-config',
|
|
644
|
-
collection: '__seo_config__',
|
|
645
|
-
data: { module: { indexEntireSite: false } },
|
|
646
|
-
};
|
|
647
|
-
initDB(createMockDB([overridesDoc]));
|
|
648
|
-
const handler = handleActuateAPI({
|
|
649
|
-
prismaClient: createMockDB([overridesDoc]),
|
|
650
|
-
config: { seo: { siteUrl: 'https://example.com' }, collections: {} },
|
|
651
|
-
});
|
|
652
|
-
const response = await handler(new Request('https://example.com/api/cms/robots.txt'));
|
|
653
|
-
const text = await response.text();
|
|
654
|
-
expect(text).toMatch(/^User-agent: \*/m);
|
|
655
|
-
// Blanket block (which already covers /admin + /api); no per-path Allow.
|
|
656
|
-
expect(text).toMatch(/^Disallow: \/$/m);
|
|
657
|
-
expect(text).not.toMatch(/^Allow: \/$/m);
|
|
658
|
-
// A deindexed site must not advertise a sitemap.
|
|
659
|
-
expect(text).not.toContain('Sitemap:');
|
|
660
|
-
});
|
|
661
|
-
it('serves empty sitemaps when indexEntireSite is off', async () => {
|
|
662
|
-
const overridesDoc = {
|
|
663
|
-
id: 'seo-cfg',
|
|
664
|
-
slug: 'seo-config',
|
|
665
|
-
collection: '__seo_config__',
|
|
666
|
-
data: { module: { indexEntireSite: false } },
|
|
667
|
-
};
|
|
668
|
-
const pageDoc = {
|
|
669
|
-
id: 'p1',
|
|
670
|
-
slug: 'about',
|
|
671
|
-
collection: 'pages',
|
|
672
|
-
status: 'PUBLISHED',
|
|
673
|
-
data: { title: 'About', slug: 'about' },
|
|
674
|
-
};
|
|
675
|
-
initDB(createMockDB([overridesDoc, pageDoc]));
|
|
676
|
-
const handler = handleActuateAPI({
|
|
677
|
-
prismaClient: createMockDB([overridesDoc, pageDoc]),
|
|
678
|
-
config: {
|
|
679
|
-
seo: { siteUrl: 'https://example.com' },
|
|
680
|
-
collections: {
|
|
681
|
-
pages: {
|
|
682
|
-
slug: 'pages',
|
|
683
|
-
labels: { singular: 'P', plural: 'Pp' },
|
|
684
|
-
urlPrefix: '',
|
|
685
|
-
type: 'page',
|
|
686
|
-
fields: {},
|
|
687
|
-
},
|
|
688
|
-
},
|
|
689
|
-
},
|
|
690
|
-
});
|
|
691
|
-
const index = await handler(new Request('https://example.com/api/cms/sitemap.xml'));
|
|
692
|
-
expect(index.status).toBe(200);
|
|
693
|
-
const indexText = await index.text();
|
|
694
|
-
expect(indexText).toContain('<sitemapindex');
|
|
695
|
-
expect(indexText).not.toContain('<sitemap>');
|
|
696
|
-
const col = await handler(new Request('https://example.com/api/cms/sitemaps/pages.xml'));
|
|
697
|
-
expect(col.status).toBe(200);
|
|
698
|
-
const colText = await col.text();
|
|
699
|
-
expect(colText).toContain('<urlset');
|
|
700
|
-
expect(colText).not.toContain('<url>');
|
|
701
|
-
});
|
|
702
|
-
it('appends AI bot blocks when seo.robots.blockAIBots is true', async () => {
|
|
703
|
-
const handler = handleActuateAPI({
|
|
704
|
-
prismaClient: createMockDB([]),
|
|
705
|
-
config: {
|
|
706
|
-
seo: { siteUrl: 'https://example.com', robots: { blockAIBots: true } },
|
|
707
|
-
collections: {},
|
|
708
|
-
},
|
|
709
|
-
});
|
|
710
|
-
const response = await handler(new Request('https://example.com/api/cms/robots.txt'));
|
|
711
|
-
const text = await response.text();
|
|
712
|
-
expect(text).toContain('User-agent: GPTBot');
|
|
713
|
-
expect(text).toContain('User-agent: ClaudeBot');
|
|
714
|
-
expect(text).toContain('Disallow: /');
|
|
715
|
-
});
|
|
716
|
-
it('honors a nuanced aiPolicy (block training, allow retrieval)', async () => {
|
|
717
|
-
const handler = handleActuateAPI({
|
|
718
|
-
prismaClient: createMockDB([]),
|
|
719
|
-
config: {
|
|
720
|
-
seo: {
|
|
721
|
-
siteUrl: 'https://example.com',
|
|
722
|
-
robots: { aiPolicy: { training: 'block', retrieval: 'allow' } },
|
|
723
|
-
},
|
|
724
|
-
collections: {},
|
|
725
|
-
},
|
|
726
|
-
});
|
|
727
|
-
const response = await handler(new Request('https://example.com/api/cms/robots.txt'));
|
|
728
|
-
const text = await response.text();
|
|
729
|
-
// Training crawler blocked…
|
|
730
|
-
expect(text).toContain('User-agent: GPTBot');
|
|
731
|
-
// …retrieval/answer-engine crawler left allowed (not in the file).
|
|
732
|
-
expect(text).not.toContain('User-agent: PerplexityBot');
|
|
733
|
-
});
|
|
734
|
-
it('returns 404 for /robots.txt when seo.robots.disabled is true', async () => {
|
|
735
|
-
const handler = handleActuateAPI({
|
|
736
|
-
prismaClient: createMockDB([]),
|
|
737
|
-
config: {
|
|
738
|
-
seo: { siteUrl: 'https://example.com', robots: { disabled: true } },
|
|
739
|
-
collections: {},
|
|
740
|
-
},
|
|
741
|
-
});
|
|
742
|
-
const response = await handler(new Request('https://example.com/api/cms/robots.txt'));
|
|
743
|
-
expect(response.status).toBe(404);
|
|
744
|
-
});
|
|
745
|
-
it('renders /og.png as an SVG OG card', async () => {
|
|
746
|
-
const handler = handleActuateAPI({
|
|
747
|
-
prismaClient: createMockDB([]),
|
|
748
|
-
config: {
|
|
749
|
-
seo: { siteUrl: 'https://example.com', siteName: 'Example' },
|
|
750
|
-
collections: {},
|
|
751
|
-
},
|
|
752
|
-
});
|
|
753
|
-
const response = await handler(new Request('https://example.com/api/cms/og.png?title=Hello%20World&description=Welcome'));
|
|
754
|
-
expect(response.status).toBe(200);
|
|
755
|
-
expect(response.headers.get('Content-Type')).toContain('image/svg+xml');
|
|
756
|
-
const text = await response.text();
|
|
757
|
-
expect(text).toContain('<svg');
|
|
758
|
-
expect(text).toContain('Hello');
|
|
759
|
-
expect(text).toContain('Example');
|
|
760
|
-
});
|
|
761
|
-
it('returns 404 for /og.png when seo.ogImage.disabled is true', async () => {
|
|
762
|
-
const handler = handleActuateAPI({
|
|
763
|
-
prismaClient: createMockDB([]),
|
|
764
|
-
config: {
|
|
765
|
-
seo: { siteUrl: 'https://example.com', ogImage: { disabled: true } },
|
|
766
|
-
collections: {},
|
|
767
|
-
},
|
|
768
|
-
});
|
|
769
|
-
const response = await handler(new Request('https://example.com/api/cms/og.png?title=X'));
|
|
770
|
-
expect(response.status).toBe(404);
|
|
771
|
-
});
|
|
772
|
-
it('enriches /resolve with composed jsonLd and meta', async () => {
|
|
773
|
-
const docs = [
|
|
774
|
-
{
|
|
775
|
-
id: 'post-1',
|
|
776
|
-
slug: 'hello',
|
|
777
|
-
collection: 'posts',
|
|
778
|
-
status: 'PUBLISHED',
|
|
779
|
-
data: {
|
|
780
|
-
title: 'Hello World',
|
|
781
|
-
slug: 'hello',
|
|
782
|
-
metaDescription: 'A first post',
|
|
783
|
-
authorName: 'Jane',
|
|
784
|
-
},
|
|
785
|
-
publishedAt: new Date('2026-02-01T00:00:00Z'),
|
|
786
|
-
updatedAt: new Date('2026-02-10T00:00:00Z'),
|
|
787
|
-
},
|
|
788
|
-
];
|
|
789
|
-
initDB(createMockDB(docs));
|
|
790
|
-
const handler = handleActuateAPI({
|
|
791
|
-
prismaClient: createMockDB(docs),
|
|
792
|
-
config: {
|
|
793
|
-
seo: {
|
|
794
|
-
siteUrl: 'https://example.com',
|
|
795
|
-
siteName: 'Example',
|
|
796
|
-
organization: { name: 'Example Inc' },
|
|
797
|
-
},
|
|
798
|
-
collections: {
|
|
799
|
-
posts: {
|
|
800
|
-
slug: 'posts',
|
|
801
|
-
labels: { singular: 'Post', plural: 'Posts' },
|
|
802
|
-
urlPrefix: 'blog',
|
|
803
|
-
type: 'post',
|
|
804
|
-
fields: {},
|
|
805
|
-
},
|
|
806
|
-
},
|
|
807
|
-
},
|
|
808
|
-
});
|
|
809
|
-
const response = await handler(new Request('https://example.com/api/cms/resolve?path=/blog/hello'));
|
|
810
|
-
expect(response.status).toBe(200);
|
|
811
|
-
const body = (await response.json());
|
|
812
|
-
expect(body.meta).toBeDefined();
|
|
813
|
-
expect(body.meta.title).toBe('Hello World');
|
|
814
|
-
expect(body.meta.canonical).toBe('https://example.com/blog/hello');
|
|
815
|
-
expect(body.meta.tags['og:title']).toBe('Hello World');
|
|
816
|
-
// /resolve now returns a connected @graph rather than a flat object.
|
|
817
|
-
expect(body.jsonLd['@context']).toBe('https://schema.org');
|
|
818
|
-
const graph = body.jsonLd['@graph'];
|
|
819
|
-
expect(Array.isArray(graph)).toBe(true);
|
|
820
|
-
const article = graph.find((n) => {
|
|
821
|
-
const t = n['@type'];
|
|
822
|
-
return t === 'BlogPosting' || (Array.isArray(t) && t.includes('BlogPosting'));
|
|
823
|
-
});
|
|
824
|
-
expect(article).toBeDefined();
|
|
825
|
-
expect(graph.some((n) => n['@type'] === 'WebSite')).toBe(true);
|
|
826
|
-
const org = graph.find((n) => n['@type'] === 'Organization');
|
|
827
|
-
expect(org).toMatchObject({ name: 'Example Inc' });
|
|
828
|
-
const person = graph.find((n) => n['@type'] === 'Person');
|
|
829
|
-
expect(person).toMatchObject({ name: 'Jane' });
|
|
830
|
-
expect(typeof body.jsonLdHtml).toBe('string');
|
|
831
|
-
expect(body.jsonLdHtml).toContain('<script type="application/ld+json">');
|
|
832
|
-
});
|
|
833
|
-
});
|
|
834
|
-
//# sourceMappingURL=public-seo.test.js.map
|