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