@actuate-media/cms-core 0.83.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 (777) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/content/structured-data.d.ts +1 -0
  3. package/dist/content/structured-data.d.ts.map +1 -1
  4. package/dist/content/structured-data.js +1 -1
  5. package/dist/content/structured-data.js.map +1 -1
  6. package/dist/next-site.d.ts +28 -0
  7. package/dist/next-site.d.ts.map +1 -0
  8. package/dist/next-site.js +58 -0
  9. package/dist/next-site.js.map +1 -0
  10. package/dist/sections/index.d.ts +2 -0
  11. package/dist/sections/index.d.ts.map +1 -1
  12. package/dist/sections/index.js +1 -0
  13. package/dist/sections/index.js.map +1 -1
  14. package/dist/sections/registry.d.ts.map +1 -1
  15. package/dist/sections/registry.js +86 -0
  16. package/dist/sections/registry.js.map +1 -1
  17. package/dist/sections/types.d.ts +1 -1
  18. package/dist/sections/types.d.ts.map +1 -1
  19. package/dist/sections/validate.d.ts.map +1 -1
  20. package/dist/sections/validate.js +23 -0
  21. package/dist/sections/validate.js.map +1 -1
  22. package/dist/sections/widget-embed.d.ts +45 -0
  23. package/dist/sections/widget-embed.d.ts.map +1 -0
  24. package/dist/sections/widget-embed.js +129 -0
  25. package/dist/sections/widget-embed.js.map +1 -0
  26. package/dist/seo/page-meta.d.ts.map +1 -1
  27. package/dist/seo/page-meta.js +11 -0
  28. package/dist/seo/page-meta.js.map +1 -1
  29. package/package.json +21 -1
  30. package/dist/__tests__/actions/document-crud.test.d.ts +0 -2
  31. package/dist/__tests__/actions/document-crud.test.d.ts.map +0 -1
  32. package/dist/__tests__/actions/document-crud.test.js +0 -442
  33. package/dist/__tests__/actions/document-crud.test.js.map +0 -1
  34. package/dist/__tests__/actions/seo-fields-update.test.d.ts +0 -2
  35. package/dist/__tests__/actions/seo-fields-update.test.d.ts.map +0 -1
  36. package/dist/__tests__/actions/seo-fields-update.test.js +0 -93
  37. package/dist/__tests__/actions/seo-fields-update.test.js.map +0 -1
  38. package/dist/__tests__/ai/ai.test.d.ts +0 -2
  39. package/dist/__tests__/ai/ai.test.d.ts.map +0 -1
  40. package/dist/__tests__/ai/ai.test.js +0 -266
  41. package/dist/__tests__/ai/ai.test.js.map +0 -1
  42. package/dist/__tests__/ai/brand-voice-alignment.test.d.ts +0 -2
  43. package/dist/__tests__/ai/brand-voice-alignment.test.d.ts.map +0 -1
  44. package/dist/__tests__/ai/brand-voice-alignment.test.js +0 -38
  45. package/dist/__tests__/ai/brand-voice-alignment.test.js.map +0 -1
  46. package/dist/__tests__/ai/brand-voice-analyze.test.d.ts +0 -2
  47. package/dist/__tests__/ai/brand-voice-analyze.test.d.ts.map +0 -1
  48. package/dist/__tests__/ai/brand-voice-analyze.test.js +0 -117
  49. package/dist/__tests__/ai/brand-voice-analyze.test.js.map +0 -1
  50. package/dist/__tests__/ai/brand-voice-document.test.d.ts +0 -2
  51. package/dist/__tests__/ai/brand-voice-document.test.d.ts.map +0 -1
  52. package/dist/__tests__/ai/brand-voice-document.test.js +0 -74
  53. package/dist/__tests__/ai/brand-voice-document.test.js.map +0 -1
  54. package/dist/__tests__/ai/brand-voice-fix.test.d.ts +0 -2
  55. package/dist/__tests__/ai/brand-voice-fix.test.d.ts.map +0 -1
  56. package/dist/__tests__/ai/brand-voice-fix.test.js +0 -34
  57. package/dist/__tests__/ai/brand-voice-fix.test.js.map +0 -1
  58. package/dist/__tests__/ai/brand-voice-sources.test.d.ts +0 -2
  59. package/dist/__tests__/ai/brand-voice-sources.test.d.ts.map +0 -1
  60. package/dist/__tests__/ai/brand-voice-sources.test.js +0 -14
  61. package/dist/__tests__/ai/brand-voice-sources.test.js.map +0 -1
  62. package/dist/__tests__/ai/brand-voice-structured.test.d.ts +0 -2
  63. package/dist/__tests__/ai/brand-voice-structured.test.d.ts.map +0 -1
  64. package/dist/__tests__/ai/brand-voice-structured.test.js +0 -49
  65. package/dist/__tests__/ai/brand-voice-structured.test.js.map +0 -1
  66. package/dist/__tests__/ai/brand-voice.test.d.ts +0 -2
  67. package/dist/__tests__/ai/brand-voice.test.d.ts.map +0 -1
  68. package/dist/__tests__/ai/brand-voice.test.js +0 -82
  69. package/dist/__tests__/ai/brand-voice.test.js.map +0 -1
  70. package/dist/__tests__/ai/content-writing-generate.test.d.ts +0 -2
  71. package/dist/__tests__/ai/content-writing-generate.test.d.ts.map +0 -1
  72. package/dist/__tests__/ai/content-writing-generate.test.js +0 -38
  73. package/dist/__tests__/ai/content-writing-generate.test.js.map +0 -1
  74. package/dist/__tests__/ai/resolve.test.d.ts +0 -2
  75. package/dist/__tests__/ai/resolve.test.d.ts.map +0 -1
  76. package/dist/__tests__/ai/resolve.test.js +0 -164
  77. package/dist/__tests__/ai/resolve.test.js.map +0 -1
  78. package/dist/__tests__/ai/runtime.test.d.ts +0 -2
  79. package/dist/__tests__/ai/runtime.test.d.ts.map +0 -1
  80. package/dist/__tests__/ai/runtime.test.js +0 -392
  81. package/dist/__tests__/ai/runtime.test.js.map +0 -1
  82. package/dist/__tests__/ai/sampling.test.d.ts +0 -2
  83. package/dist/__tests__/ai/sampling.test.d.ts.map +0 -1
  84. package/dist/__tests__/ai/sampling.test.js +0 -25
  85. package/dist/__tests__/ai/sampling.test.js.map +0 -1
  86. package/dist/__tests__/api/admin-contracts.test.d.ts +0 -2
  87. package/dist/__tests__/api/admin-contracts.test.d.ts.map +0 -1
  88. package/dist/__tests__/api/admin-contracts.test.js +0 -186
  89. package/dist/__tests__/api/admin-contracts.test.js.map +0 -1
  90. package/dist/__tests__/api/ai-crawlers.test.d.ts +0 -2
  91. package/dist/__tests__/api/ai-crawlers.test.d.ts.map +0 -1
  92. package/dist/__tests__/api/ai-crawlers.test.js +0 -194
  93. package/dist/__tests__/api/ai-crawlers.test.js.map +0 -1
  94. package/dist/__tests__/api/ai-quality.test.d.ts +0 -2
  95. package/dist/__tests__/api/ai-quality.test.d.ts.map +0 -1
  96. package/dist/__tests__/api/ai-quality.test.js +0 -721
  97. package/dist/__tests__/api/ai-quality.test.js.map +0 -1
  98. package/dist/__tests__/api/ai-status.test.d.ts +0 -2
  99. package/dist/__tests__/api/ai-status.test.d.ts.map +0 -1
  100. package/dist/__tests__/api/ai-status.test.js +0 -110
  101. package/dist/__tests__/api/ai-status.test.js.map +0 -1
  102. package/dist/__tests__/api/api-key-auth.test.d.ts +0 -2
  103. package/dist/__tests__/api/api-key-auth.test.d.ts.map +0 -1
  104. package/dist/__tests__/api/api-key-auth.test.js +0 -254
  105. package/dist/__tests__/api/api-key-auth.test.js.map +0 -1
  106. package/dist/__tests__/api/appearance-routes.test.d.ts +0 -2
  107. package/dist/__tests__/api/appearance-routes.test.d.ts.map +0 -1
  108. package/dist/__tests__/api/appearance-routes.test.js +0 -134
  109. package/dist/__tests__/api/appearance-routes.test.js.map +0 -1
  110. package/dist/__tests__/api/cache-headers.test.d.ts +0 -2
  111. package/dist/__tests__/api/cache-headers.test.d.ts.map +0 -1
  112. package/dist/__tests__/api/cache-headers.test.js +0 -135
  113. package/dist/__tests__/api/cache-headers.test.js.map +0 -1
  114. package/dist/__tests__/api/collection-introspection.test.d.ts +0 -2
  115. package/dist/__tests__/api/collection-introspection.test.d.ts.map +0 -1
  116. package/dist/__tests__/api/collection-introspection.test.js +0 -129
  117. package/dist/__tests__/api/collection-introspection.test.js.map +0 -1
  118. package/dist/__tests__/api/collection-read-access.test.d.ts +0 -2
  119. package/dist/__tests__/api/collection-read-access.test.d.ts.map +0 -1
  120. package/dist/__tests__/api/collection-read-access.test.js +0 -140
  121. package/dist/__tests__/api/collection-read-access.test.js.map +0 -1
  122. package/dist/__tests__/api/collections-ai-create.test.d.ts +0 -2
  123. package/dist/__tests__/api/collections-ai-create.test.d.ts.map +0 -1
  124. package/dist/__tests__/api/collections-ai-create.test.js +0 -313
  125. package/dist/__tests__/api/collections-ai-create.test.js.map +0 -1
  126. package/dist/__tests__/api/collections-discovery.test.d.ts +0 -2
  127. package/dist/__tests__/api/collections-discovery.test.d.ts.map +0 -1
  128. package/dist/__tests__/api/collections-discovery.test.js +0 -348
  129. package/dist/__tests__/api/collections-discovery.test.js.map +0 -1
  130. package/dist/__tests__/api/comments-routes.test.d.ts +0 -2
  131. package/dist/__tests__/api/comments-routes.test.d.ts.map +0 -1
  132. package/dist/__tests__/api/comments-routes.test.js +0 -266
  133. package/dist/__tests__/api/comments-routes.test.js.map +0 -1
  134. package/dist/__tests__/api/cron-routes.test.d.ts +0 -2
  135. package/dist/__tests__/api/cron-routes.test.d.ts.map +0 -1
  136. package/dist/__tests__/api/cron-routes.test.js +0 -67
  137. package/dist/__tests__/api/cron-routes.test.js.map +0 -1
  138. package/dist/__tests__/api/data-filters-routes.test.d.ts +0 -2
  139. package/dist/__tests__/api/data-filters-routes.test.d.ts.map +0 -1
  140. package/dist/__tests__/api/data-filters-routes.test.js +0 -131
  141. package/dist/__tests__/api/data-filters-routes.test.js.map +0 -1
  142. package/dist/__tests__/api/email-settings-routes.test.d.ts +0 -2
  143. package/dist/__tests__/api/email-settings-routes.test.d.ts.map +0 -1
  144. package/dist/__tests__/api/email-settings-routes.test.js +0 -240
  145. package/dist/__tests__/api/email-settings-routes.test.js.map +0 -1
  146. package/dist/__tests__/api/field-values-routes.test.d.ts +0 -2
  147. package/dist/__tests__/api/field-values-routes.test.d.ts.map +0 -1
  148. package/dist/__tests__/api/field-values-routes.test.js +0 -147
  149. package/dist/__tests__/api/field-values-routes.test.js.map +0 -1
  150. package/dist/__tests__/api/form-webhooks.test.d.ts +0 -2
  151. package/dist/__tests__/api/form-webhooks.test.d.ts.map +0 -1
  152. package/dist/__tests__/api/form-webhooks.test.js +0 -162
  153. package/dist/__tests__/api/form-webhooks.test.js.map +0 -1
  154. package/dist/__tests__/api/globals-routes.test.d.ts +0 -2
  155. package/dist/__tests__/api/globals-routes.test.d.ts.map +0 -1
  156. package/dist/__tests__/api/globals-routes.test.js +0 -100
  157. package/dist/__tests__/api/globals-routes.test.js.map +0 -1
  158. package/dist/__tests__/api/health.test.d.ts +0 -2
  159. package/dist/__tests__/api/health.test.d.ts.map +0 -1
  160. package/dist/__tests__/api/health.test.js +0 -144
  161. package/dist/__tests__/api/health.test.js.map +0 -1
  162. package/dist/__tests__/api/llms-txt.test.d.ts +0 -2
  163. package/dist/__tests__/api/llms-txt.test.d.ts.map +0 -1
  164. package/dist/__tests__/api/llms-txt.test.js +0 -423
  165. package/dist/__tests__/api/llms-txt.test.js.map +0 -1
  166. package/dist/__tests__/api/md-route.test.d.ts +0 -2
  167. package/dist/__tests__/api/md-route.test.d.ts.map +0 -1
  168. package/dist/__tests__/api/md-route.test.js +0 -106
  169. package/dist/__tests__/api/md-route.test.js.map +0 -1
  170. package/dist/__tests__/api/media-upload-storage.test.d.ts +0 -2
  171. package/dist/__tests__/api/media-upload-storage.test.d.ts.map +0 -1
  172. package/dist/__tests__/api/media-upload-storage.test.js +0 -171
  173. package/dist/__tests__/api/media-upload-storage.test.js.map +0 -1
  174. package/dist/__tests__/api/notifications-routes.test.d.ts +0 -2
  175. package/dist/__tests__/api/notifications-routes.test.d.ts.map +0 -1
  176. package/dist/__tests__/api/notifications-routes.test.js +0 -270
  177. package/dist/__tests__/api/notifications-routes.test.js.map +0 -1
  178. package/dist/__tests__/api/page-sections-routes.test.d.ts +0 -2
  179. package/dist/__tests__/api/page-sections-routes.test.d.ts.map +0 -1
  180. package/dist/__tests__/api/page-sections-routes.test.js +0 -501
  181. package/dist/__tests__/api/page-sections-routes.test.js.map +0 -1
  182. package/dist/__tests__/api/preview-and-scheduling.test.d.ts +0 -2
  183. package/dist/__tests__/api/preview-and-scheduling.test.d.ts.map +0 -1
  184. package/dist/__tests__/api/preview-and-scheduling.test.js +0 -479
  185. package/dist/__tests__/api/preview-and-scheduling.test.js.map +0 -1
  186. package/dist/__tests__/api/public-forms.test.d.ts +0 -2
  187. package/dist/__tests__/api/public-forms.test.d.ts.map +0 -1
  188. package/dist/__tests__/api/public-forms.test.js +0 -125
  189. package/dist/__tests__/api/public-forms.test.js.map +0 -1
  190. package/dist/__tests__/api/public-globals.test.d.ts +0 -2
  191. package/dist/__tests__/api/public-globals.test.d.ts.map +0 -1
  192. package/dist/__tests__/api/public-globals.test.js +0 -96
  193. package/dist/__tests__/api/public-globals.test.js.map +0 -1
  194. package/dist/__tests__/api/public-navigations.test.d.ts +0 -2
  195. package/dist/__tests__/api/public-navigations.test.d.ts.map +0 -1
  196. package/dist/__tests__/api/public-navigations.test.js +0 -77
  197. package/dist/__tests__/api/public-navigations.test.js.map +0 -1
  198. package/dist/__tests__/api/public-seo.test.d.ts +0 -2
  199. package/dist/__tests__/api/public-seo.test.d.ts.map +0 -1
  200. package/dist/__tests__/api/public-seo.test.js +0 -834
  201. package/dist/__tests__/api/public-seo.test.js.map +0 -1
  202. package/dist/__tests__/api/resolve-layout-bridge.test.d.ts +0 -2
  203. package/dist/__tests__/api/resolve-layout-bridge.test.d.ts.map +0 -1
  204. package/dist/__tests__/api/resolve-layout-bridge.test.js +0 -165
  205. package/dist/__tests__/api/resolve-layout-bridge.test.js.map +0 -1
  206. package/dist/__tests__/api/route-contracts.test.d.ts +0 -2
  207. package/dist/__tests__/api/route-contracts.test.d.ts.map +0 -1
  208. package/dist/__tests__/api/route-contracts.test.js +0 -466
  209. package/dist/__tests__/api/route-contracts.test.js.map +0 -1
  210. package/dist/__tests__/api/security-routes.test.d.ts +0 -2
  211. package/dist/__tests__/api/security-routes.test.d.ts.map +0 -1
  212. package/dist/__tests__/api/security-routes.test.js +0 -212
  213. package/dist/__tests__/api/security-routes.test.js.map +0 -1
  214. package/dist/__tests__/api/seo-read-access.test.d.ts +0 -2
  215. package/dist/__tests__/api/seo-read-access.test.d.ts.map +0 -1
  216. package/dist/__tests__/api/seo-read-access.test.js +0 -101
  217. package/dist/__tests__/api/seo-read-access.test.js.map +0 -1
  218. package/dist/__tests__/api/seo-summary-ssrf.test.d.ts +0 -2
  219. package/dist/__tests__/api/seo-summary-ssrf.test.d.ts.map +0 -1
  220. package/dist/__tests__/api/seo-summary-ssrf.test.js +0 -80
  221. package/dist/__tests__/api/seo-summary-ssrf.test.js.map +0 -1
  222. package/dist/__tests__/api/sitemap-pagination.test.d.ts +0 -2
  223. package/dist/__tests__/api/sitemap-pagination.test.d.ts.map +0 -1
  224. package/dist/__tests__/api/sitemap-pagination.test.js +0 -100
  225. package/dist/__tests__/api/sitemap-pagination.test.js.map +0 -1
  226. package/dist/__tests__/api/stats-collection-filter.test.d.ts +0 -2
  227. package/dist/__tests__/api/stats-collection-filter.test.d.ts.map +0 -1
  228. package/dist/__tests__/api/stats-collection-filter.test.js +0 -190
  229. package/dist/__tests__/api/stats-collection-filter.test.js.map +0 -1
  230. package/dist/__tests__/api/stats-routes.test.d.ts +0 -2
  231. package/dist/__tests__/api/stats-routes.test.d.ts.map +0 -1
  232. package/dist/__tests__/api/stats-routes.test.js +0 -251
  233. package/dist/__tests__/api/stats-routes.test.js.map +0 -1
  234. package/dist/__tests__/api/stats-seo-cache.test.d.ts +0 -2
  235. package/dist/__tests__/api/stats-seo-cache.test.d.ts.map +0 -1
  236. package/dist/__tests__/api/stats-seo-cache.test.js +0 -96
  237. package/dist/__tests__/api/stats-seo-cache.test.js.map +0 -1
  238. package/dist/__tests__/api/totp-login.test.d.ts +0 -2
  239. package/dist/__tests__/api/totp-login.test.d.ts.map +0 -1
  240. package/dist/__tests__/api/totp-login.test.js +0 -115
  241. package/dist/__tests__/api/totp-login.test.js.map +0 -1
  242. package/dist/__tests__/api/updates-routes.test.d.ts +0 -2
  243. package/dist/__tests__/api/updates-routes.test.d.ts.map +0 -1
  244. package/dist/__tests__/api/updates-routes.test.js +0 -248
  245. package/dist/__tests__/api/updates-routes.test.js.map +0 -1
  246. package/dist/__tests__/api/users-detail.test.d.ts +0 -2
  247. package/dist/__tests__/api/users-detail.test.d.ts.map +0 -1
  248. package/dist/__tests__/api/users-detail.test.js +0 -401
  249. package/dist/__tests__/api/users-detail.test.js.map +0 -1
  250. package/dist/__tests__/api/users-invite.test.d.ts +0 -2
  251. package/dist/__tests__/api/users-invite.test.d.ts.map +0 -1
  252. package/dist/__tests__/api/users-invite.test.js +0 -221
  253. package/dist/__tests__/api/users-invite.test.js.map +0 -1
  254. package/dist/__tests__/api/users-search.test.d.ts +0 -2
  255. package/dist/__tests__/api/users-search.test.d.ts.map +0 -1
  256. package/dist/__tests__/api/users-search.test.js +0 -182
  257. package/dist/__tests__/api/users-search.test.js.map +0 -1
  258. package/dist/__tests__/appearance/appearance.test.d.ts +0 -2
  259. package/dist/__tests__/appearance/appearance.test.d.ts.map +0 -1
  260. package/dist/__tests__/appearance/appearance.test.js +0 -287
  261. package/dist/__tests__/appearance/appearance.test.js.map +0 -1
  262. package/dist/__tests__/appearance/favicon-icon.test.d.ts +0 -2
  263. package/dist/__tests__/appearance/favicon-icon.test.d.ts.map +0 -1
  264. package/dist/__tests__/appearance/favicon-icon.test.js +0 -12
  265. package/dist/__tests__/appearance/favicon-icon.test.js.map +0 -1
  266. package/dist/__tests__/auth/invites.test.d.ts +0 -2
  267. package/dist/__tests__/auth/invites.test.d.ts.map +0 -1
  268. package/dist/__tests__/auth/invites.test.js +0 -181
  269. package/dist/__tests__/auth/invites.test.js.map +0 -1
  270. package/dist/__tests__/auth/oauth.test.d.ts +0 -2
  271. package/dist/__tests__/auth/oauth.test.d.ts.map +0 -1
  272. package/dist/__tests__/auth/oauth.test.js +0 -408
  273. package/dist/__tests__/auth/oauth.test.js.map +0 -1
  274. package/dist/__tests__/auth/password.test.d.ts +0 -2
  275. package/dist/__tests__/auth/password.test.d.ts.map +0 -1
  276. package/dist/__tests__/auth/password.test.js +0 -226
  277. package/dist/__tests__/auth/password.test.js.map +0 -1
  278. package/dist/__tests__/auth/reset.test.d.ts +0 -2
  279. package/dist/__tests__/auth/reset.test.d.ts.map +0 -1
  280. package/dist/__tests__/auth/reset.test.js +0 -355
  281. package/dist/__tests__/auth/reset.test.js.map +0 -1
  282. package/dist/__tests__/auth/roles.test.d.ts +0 -2
  283. package/dist/__tests__/auth/roles.test.d.ts.map +0 -1
  284. package/dist/__tests__/auth/roles.test.js +0 -60
  285. package/dist/__tests__/auth/roles.test.js.map +0 -1
  286. package/dist/__tests__/auth/session.test.d.ts +0 -2
  287. package/dist/__tests__/auth/session.test.d.ts.map +0 -1
  288. package/dist/__tests__/auth/session.test.js +0 -119
  289. package/dist/__tests__/auth/session.test.js.map +0 -1
  290. package/dist/__tests__/auth/team.test.d.ts +0 -2
  291. package/dist/__tests__/auth/team.test.d.ts.map +0 -1
  292. package/dist/__tests__/auth/team.test.js +0 -154
  293. package/dist/__tests__/auth/team.test.js.map +0 -1
  294. package/dist/__tests__/auth/totp.test.d.ts +0 -2
  295. package/dist/__tests__/auth/totp.test.d.ts.map +0 -1
  296. package/dist/__tests__/auth/totp.test.js +0 -52
  297. package/dist/__tests__/auth/totp.test.js.map +0 -1
  298. package/dist/__tests__/auth/user-admin.test.d.ts +0 -2
  299. package/dist/__tests__/auth/user-admin.test.d.ts.map +0 -1
  300. package/dist/__tests__/auth/user-admin.test.js +0 -200
  301. package/dist/__tests__/auth/user-admin.test.js.map +0 -1
  302. package/dist/__tests__/billing/stripe-meter.test.d.ts +0 -2
  303. package/dist/__tests__/billing/stripe-meter.test.d.ts.map +0 -1
  304. package/dist/__tests__/billing/stripe-meter.test.js +0 -86
  305. package/dist/__tests__/billing/stripe-meter.test.js.map +0 -1
  306. package/dist/__tests__/codegen/generate-types.test.d.ts +0 -2
  307. package/dist/__tests__/codegen/generate-types.test.d.ts.map +0 -1
  308. package/dist/__tests__/codegen/generate-types.test.js +0 -173
  309. package/dist/__tests__/codegen/generate-types.test.js.map +0 -1
  310. package/dist/__tests__/collections/presets.test.d.ts +0 -2
  311. package/dist/__tests__/collections/presets.test.d.ts.map +0 -1
  312. package/dist/__tests__/collections/presets.test.js +0 -184
  313. package/dist/__tests__/collections/presets.test.js.map +0 -1
  314. package/dist/__tests__/config/runtime.test.d.ts +0 -2
  315. package/dist/__tests__/config/runtime.test.d.ts.map +0 -1
  316. package/dist/__tests__/config/runtime.test.js +0 -65
  317. package/dist/__tests__/config/runtime.test.js.map +0 -1
  318. package/dist/__tests__/content/slug.test.d.ts +0 -2
  319. package/dist/__tests__/content/slug.test.d.ts.map +0 -1
  320. package/dist/__tests__/content/slug.test.js +0 -68
  321. package/dist/__tests__/content/slug.test.js.map +0 -1
  322. package/dist/__tests__/content-health/scanner.test.d.ts +0 -2
  323. package/dist/__tests__/content-health/scanner.test.d.ts.map +0 -1
  324. package/dist/__tests__/content-health/scanner.test.js +0 -151
  325. package/dist/__tests__/content-health/scanner.test.js.map +0 -1
  326. package/dist/__tests__/cron/cron.test.d.ts +0 -2
  327. package/dist/__tests__/cron/cron.test.d.ts.map +0 -1
  328. package/dist/__tests__/cron/cron.test.js +0 -340
  329. package/dist/__tests__/cron/cron.test.js.map +0 -1
  330. package/dist/__tests__/db/model-types-freshness.test.d.ts +0 -2
  331. package/dist/__tests__/db/model-types-freshness.test.d.ts.map +0 -1
  332. package/dist/__tests__/db/model-types-freshness.test.js +0 -46
  333. package/dist/__tests__/db/model-types-freshness.test.js.map +0 -1
  334. package/dist/__tests__/diagnostics/api-metrics.test.d.ts +0 -2
  335. package/dist/__tests__/diagnostics/api-metrics.test.d.ts.map +0 -1
  336. package/dist/__tests__/diagnostics/api-metrics.test.js +0 -153
  337. package/dist/__tests__/diagnostics/api-metrics.test.js.map +0 -1
  338. package/dist/__tests__/diagnostics/env.test.d.ts +0 -2
  339. package/dist/__tests__/diagnostics/env.test.d.ts.map +0 -1
  340. package/dist/__tests__/diagnostics/env.test.js +0 -247
  341. package/dist/__tests__/diagnostics/env.test.js.map +0 -1
  342. package/dist/__tests__/diagnostics/logger.test.d.ts +0 -2
  343. package/dist/__tests__/diagnostics/logger.test.d.ts.map +0 -1
  344. package/dist/__tests__/diagnostics/logger.test.js +0 -111
  345. package/dist/__tests__/diagnostics/logger.test.js.map +0 -1
  346. package/dist/__tests__/diagnostics/sentry.test.d.ts +0 -2
  347. package/dist/__tests__/diagnostics/sentry.test.d.ts.map +0 -1
  348. package/dist/__tests__/diagnostics/sentry.test.js +0 -60
  349. package/dist/__tests__/diagnostics/sentry.test.js.map +0 -1
  350. package/dist/__tests__/email/resolve.test.d.ts +0 -2
  351. package/dist/__tests__/email/resolve.test.d.ts.map +0 -1
  352. package/dist/__tests__/email/resolve.test.js +0 -90
  353. package/dist/__tests__/email/resolve.test.js.map +0 -1
  354. package/dist/__tests__/email/sender.test.d.ts +0 -2
  355. package/dist/__tests__/email/sender.test.d.ts.map +0 -1
  356. package/dist/__tests__/email/sender.test.js +0 -33
  357. package/dist/__tests__/email/sender.test.js.map +0 -1
  358. package/dist/__tests__/email/settings-store.test.d.ts +0 -2
  359. package/dist/__tests__/email/settings-store.test.d.ts.map +0 -1
  360. package/dist/__tests__/email/settings-store.test.js +0 -149
  361. package/dist/__tests__/email/settings-store.test.js.map +0 -1
  362. package/dist/__tests__/fields/component-block.test.d.ts +0 -2
  363. package/dist/__tests__/fields/component-block.test.d.ts.map +0 -1
  364. package/dist/__tests__/fields/component-block.test.js +0 -129
  365. package/dist/__tests__/fields/component-block.test.js.map +0 -1
  366. package/dist/__tests__/fields/presets.test.d.ts +0 -2
  367. package/dist/__tests__/fields/presets.test.d.ts.map +0 -1
  368. package/dist/__tests__/fields/presets.test.js +0 -99
  369. package/dist/__tests__/fields/presets.test.js.map +0 -1
  370. package/dist/__tests__/fields/relations.test.d.ts +0 -2
  371. package/dist/__tests__/fields/relations.test.d.ts.map +0 -1
  372. package/dist/__tests__/fields/relations.test.js +0 -297
  373. package/dist/__tests__/fields/relations.test.js.map +0 -1
  374. package/dist/__tests__/forms/client-validation.test.d.ts +0 -2
  375. package/dist/__tests__/forms/client-validation.test.d.ts.map +0 -1
  376. package/dist/__tests__/forms/client-validation.test.js +0 -98
  377. package/dist/__tests__/forms/client-validation.test.js.map +0 -1
  378. package/dist/__tests__/forms/encryption.test.d.ts +0 -2
  379. package/dist/__tests__/forms/encryption.test.d.ts.map +0 -1
  380. package/dist/__tests__/forms/encryption.test.js +0 -84
  381. package/dist/__tests__/forms/encryption.test.js.map +0 -1
  382. package/dist/__tests__/forms/entries-export.test.d.ts +0 -2
  383. package/dist/__tests__/forms/entries-export.test.d.ts.map +0 -1
  384. package/dist/__tests__/forms/entries-export.test.js +0 -69
  385. package/dist/__tests__/forms/entries-export.test.js.map +0 -1
  386. package/dist/__tests__/forms/forms-service.test.d.ts +0 -2
  387. package/dist/__tests__/forms/forms-service.test.d.ts.map +0 -1
  388. package/dist/__tests__/forms/forms-service.test.js +0 -193
  389. package/dist/__tests__/forms/forms-service.test.js.map +0 -1
  390. package/dist/__tests__/forms/notify.test.d.ts +0 -2
  391. package/dist/__tests__/forms/notify.test.d.ts.map +0 -1
  392. package/dist/__tests__/forms/notify.test.js +0 -114
  393. package/dist/__tests__/forms/notify.test.js.map +0 -1
  394. package/dist/__tests__/forms/spam.test.d.ts +0 -2
  395. package/dist/__tests__/forms/spam.test.d.ts.map +0 -1
  396. package/dist/__tests__/forms/spam.test.js +0 -115
  397. package/dist/__tests__/forms/spam.test.js.map +0 -1
  398. package/dist/__tests__/forms/submission-files.test.d.ts +0 -2
  399. package/dist/__tests__/forms/submission-files.test.d.ts.map +0 -1
  400. package/dist/__tests__/forms/submission-files.test.js +0 -65
  401. package/dist/__tests__/forms/submission-files.test.js.map +0 -1
  402. package/dist/__tests__/forms/submission-pipeline.test.d.ts +0 -2
  403. package/dist/__tests__/forms/submission-pipeline.test.d.ts.map +0 -1
  404. package/dist/__tests__/forms/submission-pipeline.test.js +0 -131
  405. package/dist/__tests__/forms/submission-pipeline.test.js.map +0 -1
  406. package/dist/__tests__/forms/submission-validation.test.d.ts +0 -2
  407. package/dist/__tests__/forms/submission-validation.test.d.ts.map +0 -1
  408. package/dist/__tests__/forms/submission-validation.test.js +0 -108
  409. package/dist/__tests__/forms/submission-validation.test.js.map +0 -1
  410. package/dist/__tests__/forms/webhooks.test.d.ts +0 -2
  411. package/dist/__tests__/forms/webhooks.test.d.ts.map +0 -1
  412. package/dist/__tests__/forms/webhooks.test.js +0 -203
  413. package/dist/__tests__/forms/webhooks.test.js.map +0 -1
  414. package/dist/__tests__/media/seo.test.d.ts +0 -2
  415. package/dist/__tests__/media/seo.test.d.ts.map +0 -1
  416. package/dist/__tests__/media/seo.test.js +0 -186
  417. package/dist/__tests__/media/seo.test.js.map +0 -1
  418. package/dist/__tests__/middleware.test.d.ts +0 -2
  419. package/dist/__tests__/middleware.test.d.ts.map +0 -1
  420. package/dist/__tests__/middleware.test.js +0 -127
  421. package/dist/__tests__/middleware.test.js.map +0 -1
  422. package/dist/__tests__/next.test.d.ts +0 -2
  423. package/dist/__tests__/next.test.d.ts.map +0 -1
  424. package/dist/__tests__/next.test.js +0 -118
  425. package/dist/__tests__/next.test.js.map +0 -1
  426. package/dist/__tests__/plan/features.test.d.ts +0 -2
  427. package/dist/__tests__/plan/features.test.d.ts.map +0 -1
  428. package/dist/__tests__/plan/features.test.js +0 -35
  429. package/dist/__tests__/plan/features.test.js.map +0 -1
  430. package/dist/__tests__/preview-event-bus.test.d.ts +0 -2
  431. package/dist/__tests__/preview-event-bus.test.d.ts.map +0 -1
  432. package/dist/__tests__/preview-event-bus.test.js +0 -89
  433. package/dist/__tests__/preview-event-bus.test.js.map +0 -1
  434. package/dist/__tests__/preview-sse-stream.test.d.ts +0 -2
  435. package/dist/__tests__/preview-sse-stream.test.d.ts.map +0 -1
  436. package/dist/__tests__/preview-sse-stream.test.js +0 -117
  437. package/dist/__tests__/preview-sse-stream.test.js.map +0 -1
  438. package/dist/__tests__/preview.test.d.ts +0 -2
  439. package/dist/__tests__/preview.test.d.ts.map +0 -1
  440. package/dist/__tests__/preview.test.js +0 -71
  441. package/dist/__tests__/preview.test.js.map +0 -1
  442. package/dist/__tests__/realtime/comments.test.d.ts +0 -2
  443. package/dist/__tests__/realtime/comments.test.d.ts.map +0 -1
  444. package/dist/__tests__/realtime/comments.test.js +0 -508
  445. package/dist/__tests__/realtime/comments.test.js.map +0 -1
  446. package/dist/__tests__/realtime/gateway-ws-integration.test.d.ts +0 -2
  447. package/dist/__tests__/realtime/gateway-ws-integration.test.d.ts.map +0 -1
  448. package/dist/__tests__/realtime/gateway-ws-integration.test.js +0 -170
  449. package/dist/__tests__/realtime/gateway-ws-integration.test.js.map +0 -1
  450. package/dist/__tests__/realtime/gateway.test.d.ts +0 -2
  451. package/dist/__tests__/realtime/gateway.test.d.ts.map +0 -1
  452. package/dist/__tests__/realtime/gateway.test.js +0 -402
  453. package/dist/__tests__/realtime/gateway.test.js.map +0 -1
  454. package/dist/__tests__/realtime/notification-bus.test.d.ts +0 -2
  455. package/dist/__tests__/realtime/notification-bus.test.d.ts.map +0 -1
  456. package/dist/__tests__/realtime/notification-bus.test.js +0 -79
  457. package/dist/__tests__/realtime/notification-bus.test.js.map +0 -1
  458. package/dist/__tests__/realtime/notification-stream.test.d.ts +0 -2
  459. package/dist/__tests__/realtime/notification-stream.test.d.ts.map +0 -1
  460. package/dist/__tests__/realtime/notification-stream.test.js +0 -157
  461. package/dist/__tests__/realtime/notification-stream.test.js.map +0 -1
  462. package/dist/__tests__/realtime/notifications.test.d.ts +0 -2
  463. package/dist/__tests__/realtime/notifications.test.d.ts.map +0 -1
  464. package/dist/__tests__/realtime/notifications.test.js +0 -330
  465. package/dist/__tests__/realtime/notifications.test.js.map +0 -1
  466. package/dist/__tests__/realtime/persistence.test.d.ts +0 -2
  467. package/dist/__tests__/realtime/persistence.test.d.ts.map +0 -1
  468. package/dist/__tests__/realtime/persistence.test.js +0 -124
  469. package/dist/__tests__/realtime/persistence.test.js.map +0 -1
  470. package/dist/__tests__/redirects/auto-301.test.d.ts +0 -2
  471. package/dist/__tests__/redirects/auto-301.test.d.ts.map +0 -1
  472. package/dist/__tests__/redirects/auto-301.test.js +0 -172
  473. package/dist/__tests__/redirects/auto-301.test.js.map +0 -1
  474. package/dist/__tests__/redirects/graph.test.d.ts +0 -2
  475. package/dist/__tests__/redirects/graph.test.d.ts.map +0 -1
  476. package/dist/__tests__/redirects/graph.test.js +0 -104
  477. package/dist/__tests__/redirects/graph.test.js.map +0 -1
  478. package/dist/__tests__/redirects/suggest.test.d.ts +0 -2
  479. package/dist/__tests__/redirects/suggest.test.d.ts.map +0 -1
  480. package/dist/__tests__/redirects/suggest.test.js +0 -28
  481. package/dist/__tests__/redirects/suggest.test.js.map +0 -1
  482. package/dist/__tests__/scheduling/scheduling.test.d.ts +0 -2
  483. package/dist/__tests__/scheduling/scheduling.test.d.ts.map +0 -1
  484. package/dist/__tests__/scheduling/scheduling.test.js +0 -110
  485. package/dist/__tests__/scheduling/scheduling.test.js.map +0 -1
  486. package/dist/__tests__/schema-preview-features.test.d.ts +0 -2
  487. package/dist/__tests__/schema-preview-features.test.d.ts.map +0 -1
  488. package/dist/__tests__/schema-preview-features.test.js +0 -42
  489. package/dist/__tests__/schema-preview-features.test.js.map +0 -1
  490. package/dist/__tests__/sections/sections-migrate.test.d.ts +0 -2
  491. package/dist/__tests__/sections/sections-migrate.test.d.ts.map +0 -1
  492. package/dist/__tests__/sections/sections-migrate.test.js +0 -145
  493. package/dist/__tests__/sections/sections-migrate.test.js.map +0 -1
  494. package/dist/__tests__/security/access.test.d.ts +0 -2
  495. package/dist/__tests__/security/access.test.d.ts.map +0 -1
  496. package/dist/__tests__/security/access.test.js +0 -181
  497. package/dist/__tests__/security/access.test.js.map +0 -1
  498. package/dist/__tests__/security/api-key-enhanced.test.d.ts +0 -2
  499. package/dist/__tests__/security/api-key-enhanced.test.d.ts.map +0 -1
  500. package/dist/__tests__/security/api-key-enhanced.test.js +0 -110
  501. package/dist/__tests__/security/api-key-enhanced.test.js.map +0 -1
  502. package/dist/__tests__/security/audit.test.d.ts +0 -2
  503. package/dist/__tests__/security/audit.test.d.ts.map +0 -1
  504. package/dist/__tests__/security/audit.test.js +0 -50
  505. package/dist/__tests__/security/audit.test.js.map +0 -1
  506. package/dist/__tests__/security/center.test.d.ts +0 -2
  507. package/dist/__tests__/security/center.test.d.ts.map +0 -1
  508. package/dist/__tests__/security/center.test.js +0 -226
  509. package/dist/__tests__/security/center.test.js.map +0 -1
  510. package/dist/__tests__/security/client-ip.test.d.ts +0 -2
  511. package/dist/__tests__/security/client-ip.test.d.ts.map +0 -1
  512. package/dist/__tests__/security/client-ip.test.js +0 -37
  513. package/dist/__tests__/security/client-ip.test.js.map +0 -1
  514. package/dist/__tests__/security/csrf.test.d.ts +0 -2
  515. package/dist/__tests__/security/csrf.test.d.ts.map +0 -1
  516. package/dist/__tests__/security/csrf.test.js +0 -40
  517. package/dist/__tests__/security/csrf.test.js.map +0 -1
  518. package/dist/__tests__/security/encrypted-fields.test.d.ts +0 -2
  519. package/dist/__tests__/security/encrypted-fields.test.d.ts.map +0 -1
  520. package/dist/__tests__/security/encrypted-fields.test.js +0 -60
  521. package/dist/__tests__/security/encrypted-fields.test.js.map +0 -1
  522. package/dist/__tests__/security/ip-allowlist.test.d.ts +0 -2
  523. package/dist/__tests__/security/ip-allowlist.test.d.ts.map +0 -1
  524. package/dist/__tests__/security/ip-allowlist.test.js +0 -40
  525. package/dist/__tests__/security/ip-allowlist.test.js.map +0 -1
  526. package/dist/__tests__/security/rate-limit.test.d.ts +0 -2
  527. package/dist/__tests__/security/rate-limit.test.d.ts.map +0 -1
  528. package/dist/__tests__/security/rate-limit.test.js +0 -199
  529. package/dist/__tests__/security/rate-limit.test.js.map +0 -1
  530. package/dist/__tests__/security/reauth.test.d.ts +0 -2
  531. package/dist/__tests__/security/reauth.test.d.ts.map +0 -1
  532. package/dist/__tests__/security/reauth.test.js +0 -30
  533. package/dist/__tests__/security/reauth.test.js.map +0 -1
  534. package/dist/__tests__/security/redact.test.d.ts +0 -2
  535. package/dist/__tests__/security/redact.test.d.ts.map +0 -1
  536. package/dist/__tests__/security/redact.test.js +0 -31
  537. package/dist/__tests__/security/redact.test.js.map +0 -1
  538. package/dist/__tests__/security/safe-fetch.test.d.ts +0 -2
  539. package/dist/__tests__/security/safe-fetch.test.d.ts.map +0 -1
  540. package/dist/__tests__/security/safe-fetch.test.js +0 -97
  541. package/dist/__tests__/security/safe-fetch.test.js.map +0 -1
  542. package/dist/__tests__/security/sanitize-document.test.d.ts +0 -2
  543. package/dist/__tests__/security/sanitize-document.test.d.ts.map +0 -1
  544. package/dist/__tests__/security/sanitize-document.test.js +0 -146
  545. package/dist/__tests__/security/sanitize-document.test.js.map +0 -1
  546. package/dist/__tests__/security/sanitize.test.d.ts +0 -2
  547. package/dist/__tests__/security/sanitize.test.d.ts.map +0 -1
  548. package/dist/__tests__/security/sanitize.test.js +0 -75
  549. package/dist/__tests__/security/sanitize.test.js.map +0 -1
  550. package/dist/__tests__/security/secret-storage.test.d.ts +0 -2
  551. package/dist/__tests__/security/secret-storage.test.d.ts.map +0 -1
  552. package/dist/__tests__/security/secret-storage.test.js +0 -42
  553. package/dist/__tests__/security/secret-storage.test.js.map +0 -1
  554. package/dist/__tests__/security/ssrf.test.d.ts +0 -2
  555. package/dist/__tests__/security/ssrf.test.d.ts.map +0 -1
  556. package/dist/__tests__/security/ssrf.test.js +0 -209
  557. package/dist/__tests__/security/ssrf.test.js.map +0 -1
  558. package/dist/__tests__/security/upload-magic.test.d.ts +0 -2
  559. package/dist/__tests__/security/upload-magic.test.d.ts.map +0 -1
  560. package/dist/__tests__/security/upload-magic.test.js +0 -55
  561. package/dist/__tests__/security/upload-magic.test.js.map +0 -1
  562. package/dist/__tests__/seo/ai-bots.test.d.ts +0 -2
  563. package/dist/__tests__/seo/ai-bots.test.d.ts.map +0 -1
  564. package/dist/__tests__/seo/ai-bots.test.js +0 -92
  565. package/dist/__tests__/seo/ai-bots.test.js.map +0 -1
  566. package/dist/__tests__/seo/alt-text.test.d.ts +0 -2
  567. package/dist/__tests__/seo/alt-text.test.d.ts.map +0 -1
  568. package/dist/__tests__/seo/alt-text.test.js +0 -47
  569. package/dist/__tests__/seo/alt-text.test.js.map +0 -1
  570. package/dist/__tests__/seo/analysis-markdown.test.d.ts +0 -2
  571. package/dist/__tests__/seo/analysis-markdown.test.d.ts.map +0 -1
  572. package/dist/__tests__/seo/analysis-markdown.test.js +0 -57
  573. package/dist/__tests__/seo/analysis-markdown.test.js.map +0 -1
  574. package/dist/__tests__/seo/audit-engine.test.d.ts +0 -2
  575. package/dist/__tests__/seo/audit-engine.test.d.ts.map +0 -1
  576. package/dist/__tests__/seo/audit-engine.test.js +0 -181
  577. package/dist/__tests__/seo/audit-engine.test.js.map +0 -1
  578. package/dist/__tests__/seo/audit-runner.test.d.ts +0 -2
  579. package/dist/__tests__/seo/audit-runner.test.d.ts.map +0 -1
  580. package/dist/__tests__/seo/audit-runner.test.js +0 -204
  581. package/dist/__tests__/seo/audit-runner.test.js.map +0 -1
  582. package/dist/__tests__/seo/audit-signals.test.d.ts +0 -2
  583. package/dist/__tests__/seo/audit-signals.test.d.ts.map +0 -1
  584. package/dist/__tests__/seo/audit-signals.test.js +0 -30
  585. package/dist/__tests__/seo/audit-signals.test.js.map +0 -1
  586. package/dist/__tests__/seo/config-store.test.d.ts +0 -2
  587. package/dist/__tests__/seo/config-store.test.d.ts.map +0 -1
  588. package/dist/__tests__/seo/config-store.test.js +0 -31
  589. package/dist/__tests__/seo/config-store.test.js.map +0 -1
  590. package/dist/__tests__/seo/content-markdown.test.d.ts +0 -2
  591. package/dist/__tests__/seo/content-markdown.test.d.ts.map +0 -1
  592. package/dist/__tests__/seo/content-markdown.test.js +0 -124
  593. package/dist/__tests__/seo/content-markdown.test.js.map +0 -1
  594. package/dist/__tests__/seo/effective-meta.test.d.ts +0 -2
  595. package/dist/__tests__/seo/effective-meta.test.d.ts.map +0 -1
  596. package/dist/__tests__/seo/effective-meta.test.js +0 -58
  597. package/dist/__tests__/seo/effective-meta.test.js.map +0 -1
  598. package/dist/__tests__/seo/feeds.test.d.ts +0 -2
  599. package/dist/__tests__/seo/feeds.test.d.ts.map +0 -1
  600. package/dist/__tests__/seo/feeds.test.js +0 -61
  601. package/dist/__tests__/seo/feeds.test.js.map +0 -1
  602. package/dist/__tests__/seo/fix-brief-export.test.d.ts +0 -2
  603. package/dist/__tests__/seo/fix-brief-export.test.d.ts.map +0 -1
  604. package/dist/__tests__/seo/fix-brief-export.test.js +0 -153
  605. package/dist/__tests__/seo/fix-brief-export.test.js.map +0 -1
  606. package/dist/__tests__/seo/freshness.test.d.ts +0 -2
  607. package/dist/__tests__/seo/freshness.test.d.ts.map +0 -1
  608. package/dist/__tests__/seo/freshness.test.js +0 -89
  609. package/dist/__tests__/seo/freshness.test.js.map +0 -1
  610. package/dist/__tests__/seo/index-status.test.d.ts +0 -2
  611. package/dist/__tests__/seo/index-status.test.d.ts.map +0 -1
  612. package/dist/__tests__/seo/index-status.test.js +0 -140
  613. package/dist/__tests__/seo/index-status.test.js.map +0 -1
  614. package/dist/__tests__/seo/internal-collections.test.d.ts +0 -2
  615. package/dist/__tests__/seo/internal-collections.test.d.ts.map +0 -1
  616. package/dist/__tests__/seo/internal-collections.test.js +0 -27
  617. package/dist/__tests__/seo/internal-collections.test.js.map +0 -1
  618. package/dist/__tests__/seo/issue-batch-briefs.test.d.ts +0 -2
  619. package/dist/__tests__/seo/issue-batch-briefs.test.d.ts.map +0 -1
  620. package/dist/__tests__/seo/issue-batch-briefs.test.js +0 -64
  621. package/dist/__tests__/seo/issue-batch-briefs.test.js.map +0 -1
  622. package/dist/__tests__/seo/issue-content-brief.test.d.ts +0 -2
  623. package/dist/__tests__/seo/issue-content-brief.test.d.ts.map +0 -1
  624. package/dist/__tests__/seo/issue-content-brief.test.js +0 -107
  625. package/dist/__tests__/seo/issue-content-brief.test.js.map +0 -1
  626. package/dist/__tests__/seo/issue-content-research.test.d.ts +0 -2
  627. package/dist/__tests__/seo/issue-content-research.test.d.ts.map +0 -1
  628. package/dist/__tests__/seo/issue-content-research.test.js +0 -114
  629. package/dist/__tests__/seo/issue-content-research.test.js.map +0 -1
  630. package/dist/__tests__/seo/issue-fix-ai.test.d.ts +0 -2
  631. package/dist/__tests__/seo/issue-fix-ai.test.d.ts.map +0 -1
  632. package/dist/__tests__/seo/issue-fix-ai.test.js +0 -96
  633. package/dist/__tests__/seo/issue-fix-ai.test.js.map +0 -1
  634. package/dist/__tests__/seo/issue-fix-orchestrator.test.d.ts +0 -2
  635. package/dist/__tests__/seo/issue-fix-orchestrator.test.d.ts.map +0 -1
  636. package/dist/__tests__/seo/issue-fix-orchestrator.test.js +0 -48
  637. package/dist/__tests__/seo/issue-fix-orchestrator.test.js.map +0 -1
  638. package/dist/__tests__/seo/issue-fix.test.d.ts +0 -2
  639. package/dist/__tests__/seo/issue-fix.test.d.ts.map +0 -1
  640. package/dist/__tests__/seo/issue-fix.test.js +0 -98
  641. package/dist/__tests__/seo/issue-fix.test.js.map +0 -1
  642. package/dist/__tests__/seo/llms-sanitize.test.d.ts +0 -2
  643. package/dist/__tests__/seo/llms-sanitize.test.d.ts.map +0 -1
  644. package/dist/__tests__/seo/llms-sanitize.test.js +0 -74
  645. package/dist/__tests__/seo/llms-sanitize.test.js.map +0 -1
  646. package/dist/__tests__/seo/meta-tags-alternates.test.d.ts +0 -2
  647. package/dist/__tests__/seo/meta-tags-alternates.test.d.ts.map +0 -1
  648. package/dist/__tests__/seo/meta-tags-alternates.test.js +0 -52
  649. package/dist/__tests__/seo/meta-tags-alternates.test.js.map +0 -1
  650. package/dist/__tests__/seo/migrate-meta.test.d.ts +0 -2
  651. package/dist/__tests__/seo/migrate-meta.test.d.ts.map +0 -1
  652. package/dist/__tests__/seo/migrate-meta.test.js +0 -75
  653. package/dist/__tests__/seo/migrate-meta.test.js.map +0 -1
  654. package/dist/__tests__/seo/migrate-schema.test.d.ts +0 -2
  655. package/dist/__tests__/seo/migrate-schema.test.d.ts.map +0 -1
  656. package/dist/__tests__/seo/migrate-schema.test.js +0 -97
  657. package/dist/__tests__/seo/migrate-schema.test.js.map +0 -1
  658. package/dist/__tests__/seo/page-meta.test.d.ts +0 -2
  659. package/dist/__tests__/seo/page-meta.test.d.ts.map +0 -1
  660. package/dist/__tests__/seo/page-meta.test.js +0 -452
  661. package/dist/__tests__/seo/page-meta.test.js.map +0 -1
  662. package/dist/__tests__/seo/resolve-path.test.d.ts +0 -2
  663. package/dist/__tests__/seo/resolve-path.test.d.ts.map +0 -1
  664. package/dist/__tests__/seo/resolve-path.test.js +0 -46
  665. package/dist/__tests__/seo/resolve-path.test.js.map +0 -1
  666. package/dist/__tests__/seo/robots.test.d.ts +0 -2
  667. package/dist/__tests__/seo/robots.test.d.ts.map +0 -1
  668. package/dist/__tests__/seo/robots.test.js +0 -72
  669. package/dist/__tests__/seo/robots.test.js.map +0 -1
  670. package/dist/__tests__/seo/schema-sync.test.d.ts +0 -2
  671. package/dist/__tests__/seo/schema-sync.test.d.ts.map +0 -1
  672. package/dist/__tests__/seo/schema-sync.test.js +0 -59
  673. package/dist/__tests__/seo/schema-sync.test.js.map +0 -1
  674. package/dist/__tests__/seo/score.test.d.ts +0 -2
  675. package/dist/__tests__/seo/score.test.d.ts.map +0 -1
  676. package/dist/__tests__/seo/score.test.js +0 -152
  677. package/dist/__tests__/seo/score.test.js.map +0 -1
  678. package/dist/__tests__/seo/settings-defaults.test.d.ts +0 -2
  679. package/dist/__tests__/seo/settings-defaults.test.d.ts.map +0 -1
  680. package/dist/__tests__/seo/settings-defaults.test.js +0 -189
  681. package/dist/__tests__/seo/settings-defaults.test.js.map +0 -1
  682. package/dist/__tests__/seo/sitemap-notify.test.d.ts +0 -2
  683. package/dist/__tests__/seo/sitemap-notify.test.d.ts.map +0 -1
  684. package/dist/__tests__/seo/sitemap-notify.test.js +0 -267
  685. package/dist/__tests__/seo/sitemap-notify.test.js.map +0 -1
  686. package/dist/__tests__/seo/sitemap-public.test.d.ts +0 -2
  687. package/dist/__tests__/seo/sitemap-public.test.d.ts.map +0 -1
  688. package/dist/__tests__/seo/sitemap-public.test.js +0 -52
  689. package/dist/__tests__/seo/sitemap-public.test.js.map +0 -1
  690. package/dist/__tests__/server-site.test.d.ts +0 -2
  691. package/dist/__tests__/server-site.test.d.ts.map +0 -1
  692. package/dist/__tests__/server-site.test.js +0 -173
  693. package/dist/__tests__/server-site.test.js.map +0 -1
  694. package/dist/__tests__/setup/index.test.d.ts +0 -2
  695. package/dist/__tests__/setup/index.test.d.ts.map +0 -1
  696. package/dist/__tests__/setup/index.test.js +0 -128
  697. package/dist/__tests__/setup/index.test.js.map +0 -1
  698. package/dist/__tests__/site.test.d.ts +0 -2
  699. package/dist/__tests__/site.test.d.ts.map +0 -1
  700. package/dist/__tests__/site.test.js +0 -81
  701. package/dist/__tests__/site.test.js.map +0 -1
  702. package/dist/__tests__/storage/auto-wire.test.d.ts +0 -2
  703. package/dist/__tests__/storage/auto-wire.test.d.ts.map +0 -1
  704. package/dist/__tests__/storage/auto-wire.test.js +0 -73
  705. package/dist/__tests__/storage/auto-wire.test.js.map +0 -1
  706. package/dist/__tests__/upgrade/version-check.test.d.ts +0 -2
  707. package/dist/__tests__/upgrade/version-check.test.d.ts.map +0 -1
  708. package/dist/__tests__/upgrade/version-check.test.js +0 -98
  709. package/dist/__tests__/upgrade/version-check.test.js.map +0 -1
  710. package/dist/__tests__/validation/publish.test.d.ts +0 -2
  711. package/dist/__tests__/validation/publish.test.d.ts.map +0 -1
  712. package/dist/__tests__/validation/publish.test.js +0 -164
  713. package/dist/__tests__/validation/publish.test.js.map +0 -1
  714. package/dist/__tests__/webhooks/webhooks.test.d.ts +0 -2
  715. package/dist/__tests__/webhooks/webhooks.test.d.ts.map +0 -1
  716. package/dist/__tests__/webhooks/webhooks.test.js +0 -96
  717. package/dist/__tests__/webhooks/webhooks.test.js.map +0 -1
  718. package/dist/cache/__tests__/http.test.d.ts +0 -2
  719. package/dist/cache/__tests__/http.test.d.ts.map +0 -1
  720. package/dist/cache/__tests__/http.test.js +0 -285
  721. package/dist/cache/__tests__/http.test.js.map +0 -1
  722. package/dist/db/__tests__/find-in-batches.test.d.ts +0 -2
  723. package/dist/db/__tests__/find-in-batches.test.d.ts.map +0 -1
  724. package/dist/db/__tests__/find-in-batches.test.js +0 -26
  725. package/dist/db/__tests__/find-in-batches.test.js.map +0 -1
  726. package/dist/fields/__tests__/presets.test.d.ts +0 -2
  727. package/dist/fields/__tests__/presets.test.d.ts.map +0 -1
  728. package/dist/fields/__tests__/presets.test.js +0 -29
  729. package/dist/fields/__tests__/presets.test.js.map +0 -1
  730. package/dist/page-builder/__tests__/a11y-fix.test.d.ts +0 -2
  731. package/dist/page-builder/__tests__/a11y-fix.test.d.ts.map +0 -1
  732. package/dist/page-builder/__tests__/a11y-fix.test.js +0 -242
  733. package/dist/page-builder/__tests__/a11y-fix.test.js.map +0 -1
  734. package/dist/page-builder/__tests__/blocks.test.d.ts +0 -2
  735. package/dist/page-builder/__tests__/blocks.test.d.ts.map +0 -1
  736. package/dist/page-builder/__tests__/blocks.test.js +0 -194
  737. package/dist/page-builder/__tests__/blocks.test.js.map +0 -1
  738. package/dist/page-builder/__tests__/design-scorer.test.d.ts +0 -2
  739. package/dist/page-builder/__tests__/design-scorer.test.d.ts.map +0 -1
  740. package/dist/page-builder/__tests__/design-scorer.test.js +0 -301
  741. package/dist/page-builder/__tests__/design-scorer.test.js.map +0 -1
  742. package/dist/page-builder/__tests__/schema.test.d.ts +0 -2
  743. package/dist/page-builder/__tests__/schema.test.d.ts.map +0 -1
  744. package/dist/page-builder/__tests__/schema.test.js +0 -191
  745. package/dist/page-builder/__tests__/schema.test.js.map +0 -1
  746. package/dist/page-builder/__tests__/seo-analyzer.test.d.ts +0 -2
  747. package/dist/page-builder/__tests__/seo-analyzer.test.d.ts.map +0 -1
  748. package/dist/page-builder/__tests__/seo-analyzer.test.js +0 -346
  749. package/dist/page-builder/__tests__/seo-analyzer.test.js.map +0 -1
  750. package/dist/page-builder/__tests__/tree.test.d.ts +0 -2
  751. package/dist/page-builder/__tests__/tree.test.d.ts.map +0 -1
  752. package/dist/page-builder/__tests__/tree.test.js +0 -257
  753. package/dist/page-builder/__tests__/tree.test.js.map +0 -1
  754. package/dist/posts/__tests__/query.test.d.ts +0 -2
  755. package/dist/posts/__tests__/query.test.d.ts.map +0 -1
  756. package/dist/posts/__tests__/query.test.js +0 -70
  757. package/dist/posts/__tests__/query.test.js.map +0 -1
  758. package/dist/sections/__tests__/bridge.test.d.ts +0 -2
  759. package/dist/sections/__tests__/bridge.test.d.ts.map +0 -1
  760. package/dist/sections/__tests__/bridge.test.js +0 -171
  761. package/dist/sections/__tests__/bridge.test.js.map +0 -1
  762. package/dist/sections/__tests__/define.test.d.ts +0 -2
  763. package/dist/sections/__tests__/define.test.d.ts.map +0 -1
  764. package/dist/sections/__tests__/define.test.js +0 -132
  765. package/dist/sections/__tests__/define.test.js.map +0 -1
  766. package/dist/sections/__tests__/embed.test.d.ts +0 -2
  767. package/dist/sections/__tests__/embed.test.d.ts.map +0 -1
  768. package/dist/sections/__tests__/embed.test.js +0 -54
  769. package/dist/sections/__tests__/embed.test.js.map +0 -1
  770. package/dist/sections/__tests__/media-enrich.test.d.ts +0 -2
  771. package/dist/sections/__tests__/media-enrich.test.d.ts.map +0 -1
  772. package/dist/sections/__tests__/media-enrich.test.js +0 -97
  773. package/dist/sections/__tests__/media-enrich.test.js.map +0 -1
  774. package/dist/sections/__tests__/sections.test.d.ts +0 -2
  775. package/dist/sections/__tests__/sections.test.d.ts.map +0 -1
  776. package/dist/sections/__tests__/sections.test.js +0 -453
  777. 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