dineway 0.1.47 → 0.1.48

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 (289) hide show
  1. package/README.md +57 -54
  2. package/dist/{activity-events-CNk3clTT.mjs → activity-events-C9u37D5z.mjs} +1 -1
  3. package/dist/api/route-utils.d.mts +8 -22
  4. package/dist/api/route-utils.mjs +8 -8
  5. package/dist/api/schemas/index.d.mts +2 -2
  6. package/dist/api/schemas/index.mjs +3 -3
  7. package/dist/{api-ePsOhL3q.mjs → api-Eiy8_zVZ.mjs} +63 -16
  8. package/dist/{apply-BpRBCqUt.mjs → apply-CX3no7XE.mjs} +54 -48
  9. package/dist/astro/index.d.mts +8 -8
  10. package/dist/astro/index.mjs +67 -25
  11. package/dist/astro/middleware/auth.d.mts +7 -7
  12. package/dist/astro/middleware/auth.mjs +1 -1
  13. package/dist/astro/middleware/redirect.mjs +4 -4
  14. package/dist/astro/middleware/request-context.mjs +2 -2
  15. package/dist/astro/middleware/seed.d.mts +1 -1
  16. package/dist/astro/middleware/seed.mjs +2 -2
  17. package/dist/astro/middleware/setup.mjs +1 -1
  18. package/dist/astro/middleware.d.mts +2 -1
  19. package/dist/astro/middleware.mjs +362 -143
  20. package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +2 -2
  21. package/dist/astro/routes/api/admin/allowed-domains/index.mjs +2 -2
  22. package/dist/astro/routes/api/admin/api-tokens/index.mjs +1 -1
  23. package/dist/astro/routes/api/admin/briefing.mjs +14 -14
  24. package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +2 -2
  25. package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +4 -4
  26. package/dist/astro/routes/api/admin/byline-fields/index.mjs +4 -4
  27. package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +4 -4
  28. package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +9 -9
  29. package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +9 -9
  30. package/dist/astro/routes/api/admin/bylines/index.mjs +9 -9
  31. package/dist/astro/routes/api/admin/comments/_id_/status.mjs +8 -8
  32. package/dist/astro/routes/api/admin/comments/_id_.mjs +3 -3
  33. package/dist/astro/routes/api/admin/comments/bulk.mjs +5 -5
  34. package/dist/astro/routes/api/admin/comments/counts.mjs +3 -3
  35. package/dist/astro/routes/api/admin/comments/index.mjs +5 -5
  36. package/dist/astro/routes/api/admin/context/_id_/history.mjs +20 -20
  37. package/dist/astro/routes/api/admin/context/_id_/index.mjs +20 -20
  38. package/dist/astro/routes/api/admin/context/_id_/review.mjs +23 -23
  39. package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +23 -23
  40. package/dist/astro/routes/api/admin/context/diff.mjs +22 -22
  41. package/dist/astro/routes/api/admin/context/index.mjs +23 -23
  42. package/dist/astro/routes/api/admin/context/stale.mjs +22 -22
  43. package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +21 -21
  44. package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +23 -23
  45. package/dist/astro/routes/api/admin/hitl-requests/index.mjs +23 -23
  46. package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +20 -20
  47. package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +1 -1
  48. package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +2 -2
  49. package/dist/astro/routes/api/admin/oauth-clients/index.mjs +2 -2
  50. package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +40 -40
  51. package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +40 -40
  52. package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +35 -35
  53. package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +40 -40
  54. package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +40 -40
  55. package/dist/astro/routes/api/admin/plugins/index.mjs +35 -35
  56. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +35 -35
  57. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +40 -40
  58. package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +35 -35
  59. package/dist/astro/routes/api/admin/plugins/updates.mjs +35 -35
  60. package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +3 -3
  61. package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +22 -22
  62. package/dist/astro/routes/api/admin/review-requests/index.mjs +5 -5
  63. package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +35 -35
  64. package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +35 -35
  65. package/dist/astro/routes/api/admin/users/_id_/disable.mjs +1 -1
  66. package/dist/astro/routes/api/admin/users/_id_/index.mjs +3 -3
  67. package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
  68. package/dist/astro/routes/api/admin/users/index.mjs +2 -2
  69. package/dist/astro/routes/api/auth/dev-bypass.mjs +1 -1
  70. package/dist/astro/routes/api/auth/invite/complete.mjs +5 -5
  71. package/dist/astro/routes/api/auth/invite/index.mjs +4 -4
  72. package/dist/astro/routes/api/auth/invite/register-options.mjs +4 -4
  73. package/dist/astro/routes/api/auth/magic-link/send.mjs +4 -4
  74. package/dist/astro/routes/api/auth/me.mjs +5 -5
  75. package/dist/astro/routes/api/auth/mode.mjs +1 -1
  76. package/dist/astro/routes/api/auth/passkey/_id_.mjs +2 -2
  77. package/dist/astro/routes/api/auth/passkey/options.mjs +4 -4
  78. package/dist/astro/routes/api/auth/passkey/register/options.mjs +4 -4
  79. package/dist/astro/routes/api/auth/passkey/register/verify.mjs +5 -5
  80. package/dist/astro/routes/api/auth/passkey/verify.mjs +5 -5
  81. package/dist/astro/routes/api/auth/setup-token/index.mjs +2 -2
  82. package/dist/astro/routes/api/auth/signup/complete.mjs +5 -5
  83. package/dist/astro/routes/api/auth/signup/request.mjs +4 -4
  84. package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +9 -9
  85. package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +6 -5
  86. package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +3 -3
  87. package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +3 -3
  88. package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +4 -4
  89. package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +8 -7
  90. package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +3 -3
  91. package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +11 -9
  92. package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +8 -8
  93. package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +6 -5
  94. package/dist/astro/routes/api/content/_collection_/_id_.mjs +8 -7
  95. package/dist/astro/routes/api/content/_collection_/authors.d.mts +7 -0
  96. package/dist/astro/routes/api/content/_collection_/authors.mjs +16 -0
  97. package/dist/astro/routes/api/content/_collection_/index.mjs +5 -5
  98. package/dist/astro/routes/api/content/_collection_/trash.mjs +2 -2
  99. package/dist/astro/routes/api/dashboard.mjs +6 -6
  100. package/dist/astro/routes/api/health.mjs +1 -1
  101. package/dist/astro/routes/api/import/probe.d.mts +2 -2
  102. package/dist/astro/routes/api/import/probe.mjs +2 -2
  103. package/dist/astro/routes/api/import/wordpress/analyze.mjs +3 -3
  104. package/dist/astro/routes/api/import/wordpress/execute.mjs +23 -23
  105. package/dist/astro/routes/api/import/wordpress/media.mjs +4 -4
  106. package/dist/astro/routes/api/import/wordpress/prepare.mjs +26 -26
  107. package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +24 -24
  108. package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +4 -4
  109. package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +24 -24
  110. package/dist/astro/routes/api/manifest.mjs +3 -3
  111. package/dist/astro/routes/api/mcp.mjs +46 -46
  112. package/dist/astro/routes/api/media/_id_/confirm.mjs +4 -4
  113. package/dist/astro/routes/api/media/_id_.mjs +2 -2
  114. package/dist/astro/routes/api/media/upload-url.mjs +4 -4
  115. package/dist/astro/routes/api/media.mjs +4 -4
  116. package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +23 -23
  117. package/dist/astro/routes/api/menus/_name_/items.mjs +23 -23
  118. package/dist/astro/routes/api/menus/_name_/reorder.mjs +23 -23
  119. package/dist/astro/routes/api/menus/_name_/translations.mjs +23 -23
  120. package/dist/astro/routes/api/menus/_name_.mjs +23 -23
  121. package/dist/astro/routes/api/menus/index.mjs +23 -23
  122. package/dist/astro/routes/api/oauth/authorize.mjs +3 -3
  123. package/dist/astro/routes/api/oauth/device/authorize.mjs +2 -2
  124. package/dist/astro/routes/api/oauth/device/code.mjs +2 -2
  125. package/dist/astro/routes/api/oauth/device/token.mjs +2 -2
  126. package/dist/astro/routes/api/oauth/register.mjs +2 -2
  127. package/dist/astro/routes/api/oauth/token/refresh.mjs +2 -2
  128. package/dist/astro/routes/api/oauth/token/revoke.mjs +2 -2
  129. package/dist/astro/routes/api/oauth/token.mjs +3 -3
  130. package/dist/astro/routes/api/openapi.json.mjs +16 -2
  131. package/dist/astro/routes/api/redirects/404s/index.mjs +6 -6
  132. package/dist/astro/routes/api/redirects/404s/summary.mjs +6 -6
  133. package/dist/astro/routes/api/redirects/_id_.mjs +24 -24
  134. package/dist/astro/routes/api/redirects/index.mjs +24 -24
  135. package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +36 -36
  136. package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +36 -36
  137. package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +36 -36
  138. package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +36 -36
  139. package/dist/astro/routes/api/schema/collections/index.mjs +36 -36
  140. package/dist/astro/routes/api/schema/index.mjs +3 -3
  141. package/dist/astro/routes/api/schema/orphans/_slug_.mjs +35 -35
  142. package/dist/astro/routes/api/schema/orphans/index.mjs +35 -35
  143. package/dist/astro/routes/api/search/enable.mjs +6 -6
  144. package/dist/astro/routes/api/search/index.mjs +6 -6
  145. package/dist/astro/routes/api/search/rebuild.mjs +6 -6
  146. package/dist/astro/routes/api/search/stats.mjs +4 -4
  147. package/dist/astro/routes/api/search/suggest.mjs +6 -6
  148. package/dist/astro/routes/api/sections/_slug_.mjs +23 -23
  149. package/dist/astro/routes/api/sections/index.mjs +23 -23
  150. package/dist/astro/routes/api/settings/email.mjs +1 -1
  151. package/dist/astro/routes/api/settings.mjs +23 -23
  152. package/dist/astro/routes/api/setup/admin-verify.mjs +6 -6
  153. package/dist/astro/routes/api/setup/admin.mjs +4 -4
  154. package/dist/astro/routes/api/setup/dev-bypass.mjs +17 -17
  155. package/dist/astro/routes/api/setup/dev-reset.mjs +1 -1
  156. package/dist/astro/routes/api/setup/index.mjs +20 -20
  157. package/dist/astro/routes/api/setup/status.mjs +2 -2
  158. package/dist/astro/routes/api/snapshot.mjs +2 -2
  159. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +25 -25
  160. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +25 -25
  161. package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +25 -25
  162. package/dist/astro/routes/api/taxonomies/index.mjs +25 -25
  163. package/dist/astro/routes/api/themes/preview.mjs +2 -2
  164. package/dist/astro/routes/api/typegen.mjs +3 -3
  165. package/dist/astro/routes/api/well-known/auth.mjs +3 -3
  166. package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +1 -1
  167. package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +1 -1
  168. package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +22 -22
  169. package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +23 -23
  170. package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +23 -23
  171. package/dist/astro/routes/api/widget-areas/_name_.mjs +21 -21
  172. package/dist/astro/routes/api/widget-areas/index.mjs +23 -23
  173. package/dist/astro/routes/robots.txt.mjs +45 -22
  174. package/dist/astro/routes/sitemap-_collection_.xml.mjs +6 -6
  175. package/dist/astro/routes/sitemap.xml.mjs +6 -6
  176. package/dist/astro/session-driver.d.mts +1 -1
  177. package/dist/astro/session-driver.mjs +2 -2
  178. package/dist/astro/types.d.mts +15 -8
  179. package/dist/{audit-DuRbTm8L.mjs → audit-D1cbG7xH.mjs} +1 -1
  180. package/dist/{briefing-C4fJSVYW.mjs → briefing-CObXGOGz.mjs} +1 -1
  181. package/dist/{briefing-BFEWeJtR.mjs → briefing-gKWiGLt1.mjs} +6 -6
  182. package/dist/{byline-CXQcMsBu.mjs → byline-1ntDwv8c.mjs} +5 -5
  183. package/dist/{byline-fields-D7TJ_oHF.mjs → byline-fields-B-ZkoVft.mjs} +2 -2
  184. package/dist/{byline-fields-Cuo-JI3B.d.mts → byline-fields-BX7rWKNU.d.mts} +54 -30
  185. package/dist/{byline-fields-Dc7L6Yry.mjs → byline-fields-C9_iaPaM.mjs} +1 -1
  186. package/dist/{byline-registry-CL8BxPPp.mjs → byline-registry-CUSvkasJ.mjs} +2 -2
  187. package/dist/{bylines-BgriNlW7.mjs → bylines-DtxChhN_.mjs} +38 -4
  188. package/dist/{bylines-D2vqm1aZ.mjs → bylines-bC15ZqAv.mjs} +2 -2
  189. package/dist/{cache-GRK71jOU.mjs → cache-DbKyr60Q.mjs} +2 -2
  190. package/dist/{chunks-DgEw12Bc.mjs → chunks-C5zp2xir.mjs} +1 -1
  191. package/dist/cli/index.mjs +42 -31
  192. package/dist/client/external-auth-headers.d.mts +1 -1
  193. package/dist/client/index.d.mts +1 -1
  194. package/dist/{comment-ogMaF1gk.mjs → comment-CXDOQ93N.mjs} +1 -1
  195. package/dist/{comments-CTSOKrZq.mjs → comments-hK-rdzJ9.mjs} +1 -1
  196. package/dist/{content-BfyjOiMi.mjs → content-QaryevFO.mjs} +103 -40
  197. package/dist/{context-ZMHhwzkG.mjs → context-CoYb_fvK.mjs} +7 -7
  198. package/dist/{context-CdsYb1m8.mjs → context-DBL1ib4v.mjs} +2 -2
  199. package/dist/{context-route-helpers-YLWx2N1j.mjs → context-route-helpers-CYQVmbIm.mjs} +1 -1
  200. package/dist/{dashboard-D0gWuzNp.mjs → dashboard-DNlqsknJ.mjs} +4 -4
  201. package/dist/db/index.d.mts +2 -2
  202. package/dist/db/index.mjs +1 -1
  203. package/dist/{default-BHauvIdG.mjs → default-B6iaLvP7.mjs} +4 -2
  204. package/dist/{device-flow-B3_FEoMI.mjs → device-flow-DygsFPGL.mjs} +3 -3
  205. package/dist/{fts-manager-EHY2Kes9.mjs → fts-manager-CIZlScg5.mjs} +1 -1
  206. package/dist/{hitl-requests-B1Zqgut6.mjs → hitl-requests-CGQwOEiq.mjs} +2 -2
  207. package/dist/{hitl-route-helpers-CjpWUMuw.mjs → hitl-route-helpers-GSDLNPpN.mjs} +3 -3
  208. package/dist/{index-DJVaYiUV.d.mts → index-CwRuZ-u8.d.mts} +1 -1
  209. package/dist/index.d.mts +10 -10
  210. package/dist/index.mjs +51 -51
  211. package/dist/{jsonld-AcPnCEGD.d.mts → jsonld-DZ67souc.d.mts} +1 -1
  212. package/dist/{load-BdbvtoDb.mjs → load-xE01Jm0V.mjs} +1 -1
  213. package/dist/{loader-Y0QvC_QO.mjs → loader-tg63WSY2.mjs} +138 -36
  214. package/dist/media/index.mjs +1 -1
  215. package/dist/media/local-runtime.d.mts +7 -7
  216. package/dist/media/local-runtime.mjs +2 -2
  217. package/dist/{media-DhBwiCYR.mjs → media-DUAjMfvR.mjs} +1 -1
  218. package/dist/{menus-fqqzXyHd.mjs → menus-DU1eZqw_.mjs} +13 -8
  219. package/dist/{menus-BzGQpw9d.mjs → menus-WpFRMXjz.mjs} +2 -2
  220. package/dist/{normalize-O-hi3a27.mjs → normalize-DUnoXAa9.mjs} +1 -1
  221. package/dist/{oauth-authorization-DsF81vki.mjs → oauth-authorization-D-1p52Je.mjs} +3 -3
  222. package/dist/{oauth-clients-Du-V0fEm.mjs → oauth-clients-CzeMGyUU.mjs} +1 -1
  223. package/dist/page/index.d.mts +2 -2
  224. package/dist/plugin-utils.d.mts +7 -7
  225. package/dist/plugins/adapt-sandbox-entry.d.mts +7 -7
  226. package/dist/{plugins-BQ5Joz6v.mjs → plugins-C57YQi4l.mjs} +195 -5
  227. package/dist/public-url-B5HaoGzj.d.mts +18 -0
  228. package/dist/{query-CSx0EdSW.mjs → query-BYc3oruA.mjs} +29 -18
  229. package/dist/{query-BJuUydtD.mjs → query-DKEwzobh.mjs} +3 -3
  230. package/dist/{redirect-BqFMj67n.mjs → redirect-C2zXRj3c.mjs} +2 -2
  231. package/dist/{redirects-CJwHl_YG.mjs → redirects-YZo_znWG.mjs} +4 -4
  232. package/dist/{redirects-q_cToaHv.mjs → redirects-ocRJmQHP.mjs} +23 -3
  233. package/dist/{registry-Cq3QRBW2.mjs → registry-CTkbIDB9.mjs} +38 -6
  234. package/dist/{review-requests-GYqjl2jO.mjs → review-requests-C0un5kdV.mjs} +1 -1
  235. package/dist/{review-requests-tPw8_pAO.mjs → review-requests-gGMyYYhy.mjs} +1 -1
  236. package/dist/{runner-DTfG5v0G.mjs → runner-B-tbV751.mjs} +233 -193
  237. package/dist/{runner-Cnz4dl0f.d.mts → runner-D4FL9usy.d.mts} +1 -1
  238. package/dist/{runtime-Cd-kjPfN.d.mts → runtime-DEWQpZ-4.d.mts} +154 -22
  239. package/dist/runtime.d.mts +8 -8
  240. package/dist/runtime.mjs +2 -2
  241. package/dist/schema-B6zyB-Xn.mjs +8 -0
  242. package/dist/{search-BAiFLz81.mjs → search-axGQ1KY3.mjs} +3 -3
  243. package/dist/{secrets-CPoFLJjm.mjs → secrets-062Izo8i.mjs} +1 -1
  244. package/dist/{sections-DsuIrFDC.mjs → sections-OLKgXL10.mjs} +2 -2
  245. package/dist/seed/index.d.mts +2 -2
  246. package/dist/seed/index.mjs +17 -17
  247. package/dist/seo/index.d.mts +1 -1
  248. package/dist/{seo-uMFBaR8G.mjs → seo-Cd45Po8L.mjs} +1 -1
  249. package/dist/{service-CifrxCru.mjs → service-Bwad8s5h.mjs} +1 -1
  250. package/dist/{settings-BYGdocdj.mjs → settings-lAHjaUit.mjs} +2 -2
  251. package/dist/{settings-DNRQuX3d.mjs → settings-yLjz_I4T.mjs} +4 -4
  252. package/dist/{setup-complete-4EiBS1E5.mjs → setup-complete--PradA4R.mjs} +1 -1
  253. package/dist/{site-activity-6x1JccoR.mjs → site-activity-D7Xyropw.mjs} +1 -1
  254. package/dist/{site-context-c1ZFa_OF.mjs → site-context-DaN9Z91j.mjs} +13 -13
  255. package/dist/{site-url-C-cu8Ff2.mjs → site-url-DpGZo9Z6.mjs} +1 -1
  256. package/dist/{taxonomies-faQVeMgj.mjs → taxonomies-CNOGeC-3.mjs} +9 -7
  257. package/dist/{taxonomies-CQFmkP5u.mjs → taxonomies-uXVEoQso.mjs} +3 -3
  258. package/dist/{taxonomy-BnH-6VsX.mjs → taxonomy-CBmkmMuU.mjs} +2 -2
  259. package/dist/{types-DEAQG87T.d.mts → types-CwawBUTa.d.mts} +1 -1
  260. package/dist/{types-B7_vSiPD.d.mts → types-DRIKLmJI.d.mts} +14 -2
  261. package/dist/{types-UGmU5sWx.d.mts → types-DSPGWjxO.d.mts} +1 -1
  262. package/dist/{types-Ck7-WoUD.mjs → types-DfuD0Afl.mjs} +9 -2
  263. package/dist/{types-DYKtk8f1.d.mts → types-eu5UDgHN.d.mts} +22 -0
  264. package/dist/ui/server-runtime.d.mts +58 -10
  265. package/dist/ui/server-runtime.mjs +97 -15
  266. package/dist/{user-CqZwN21P.mjs → user-DtNmjNYt.mjs} +15 -1
  267. package/dist/{validate-CK4a1sIF.mjs → validate-7SYRbz2f.mjs} +5 -2
  268. package/dist/{validate-BJuG-ISL.d.mts → validate-BMs11tan.d.mts} +10 -2
  269. package/dist/version-xlzMSXF2.mjs +6 -0
  270. package/dist/{widgets-CdDvF4fV.mjs → widgets-DR8EHuRO.mjs} +1 -1
  271. package/dist/{wordpress-slugs-B6Gw9q3Q.mjs → wordpress-slugs-Dvhxh4cl.mjs} +1 -1
  272. package/dist/{zod-generator-D1ROBNuC.mjs → zod-generator-BS9-umbk.mjs} +3 -2
  273. package/package.json +5 -5
  274. package/src/components/DinewayImage.astro +23 -5
  275. package/src/components/Image.astro +19 -3
  276. package/dist/schema-DmHMWnSA.mjs +0 -8
  277. package/dist/version-Cb1tZ6s_.mjs +0 -6
  278. /package/dist/{allowed-origins-QirBXiDj.mjs → allowed-origins-DhipQNLb.mjs} +0 -0
  279. /package/dist/{challenge-store-DFxX0_15.mjs → challenge-store-CRSz-Xim.mjs} +0 -0
  280. /package/dist/{entity-aliases-uOrKvlPg.mjs → entity-aliases-Egjmqc7I.mjs} +0 -0
  281. /package/dist/{experimental-workflows-CSMffP6q.mjs → experimental-workflows-Dh4DUoD_.mjs} +0 -0
  282. /package/dist/{mode-CZqCF9dZ.mjs → mode-CpyEz8pe.mjs} +0 -0
  283. /package/dist/{options-BF11H_FD.mjs → options-BvJoSSJR.mjs} +0 -0
  284. /package/dist/{patterns-D9iDO3j8.mjs → patterns-r-0n824Y.mjs} +0 -0
  285. /package/dist/{provider-loader-B5PMjpN7.d.mts → provider-loader-9it4vd6L.d.mts} +0 -0
  286. /package/dist/{request-cache-w5cj5itT.mjs → request-cache-CYMbwZc6.mjs} +0 -0
  287. /package/dist/{transaction-D0FOsb3X.mjs → transaction-CShMWIej.mjs} +0 -0
  288. /package/dist/{transport-DidKKxvW.d.mts → transport-BnsNxh2l.d.mts} +0 -0
  289. /package/dist/{types-DbZhHtqS.mjs → types-BO8TGjS8.mjs} +0 -0
package/dist/index.d.mts CHANGED
@@ -1,21 +1,21 @@
1
- import { _ as UpdateFieldInput, a as ColumnType, d as FieldType, f as FieldValidation, g as UpdateCollectionInput, h as RESERVED_FIELD_SLUGS, i as CollectionWithFields, l as FIELD_TYPE_TO_COLUMN, m as RESERVED_COLLECTION_SLUGS, n as CollectionSource, o as CreateCollectionInput, p as FieldWidgetOptions, r as CollectionSupport, s as CreateFieldInput, t as Collection, u as Field } from "./types-DEAQG87T.mjs";
2
- import { a as ContentSeoInput, c as FindManyOptions, i as ContentSeo, l as FindManyResult, n as ContentBylineCredit, o as CreateContentInput, r as ContentItem, s as DinewayValidationError, t as BylineSummary, u as UpdateContentInput } from "./types-B7_vSiPD.mjs";
3
- import { $ as Menu, $n as portableTextToProsemirror, $r as handleContentPermanentDelete, $t as FileSessionDatabaseFactory, A as UpdateWidgetInput, Ai as ApiContext, An as TranslationSummary, Ar as MediaResponse, At as PreviewTokenPayload, B as getTerm, Bn as createEditable, Br as handleRevisionRestore, Bt as createNoopSandboxRunner, C as getWidgetArea, Cn as CollectionResult, Cr as Section, Ct as isBlockedInPreview, D as CreateWidgetInput, Dn as EntryResult, Dr as SchemaError, Dt as buildPreviewUrl, E as CreateWidgetAreaInput, En as EditFieldMeta, Er as getCollectionInfo, Et as GetPreviewUrlOptions, F as getEntriesByTerm, Fi as ManifestResponse, Fn as getTranslations, Fr as handleMediaUpdate, Ft as verifyPreviewToken, G as TaxonomyTermRow, Gn as WhereRange, Gr as handleContentCreate, Gt as HookPipeline, H as CreateTermInput, Hn as CollectionFilter$1, Hr as handleContentCompare, Ht as createPluginManager, I as getEntryTerms, In as resolveDinewayPath, Ir as RevisionListResponse, It as NodeSandboxRunner, J as getBylineBySlug, Jr as handleContentDuplicate, Jt as ValidatedPluginManifest, K as UpdateTermInput, Kn as WhereValue, Kr as handleContentDelete, Kt as HookResult, L as getTaxonomyDef, Ln as CMSAnnotation, Lr as RevisionResponse, Lt as createNodeSandboxRunner, M as WidgetArea, Mi as ContentResponse, Mn as getDinewayCollection, Mr as handleMediaDelete, Mt as VerifyPreviewTokenResult, N as WidgetComponentDef, Ni as FieldDescriptor, Nn as getDinewayEntry, Nr as handleMediaGet, Nt as generatePreviewToken, O as PropDef, On as InferCollectionData, Or as SchemaRegistry, Ot as getPreviewUrl, P as WidgetType, Pi as ListResponse, Pn as getEditMeta, Pr as handleMediaList, Pt as parseContentId, Q as CreateMenuItemInput, Qn as hashString, Qr as handleContentListTrashed, Qt as createFilePreviewMiddleware, R as getTaxonomyDefs, Rn as EditProxy, Rr as handleRevisionGet, Rt as NoopSandboxRunner, S as Suggestion, Sn as CollectionFilter, Sr as GetSectionsOptions, St as renderPreviewLoadingPage, T as getWidgetComponents, Tn as DinewayCollections, Tr as UpdateSectionInput, Tt as isPreviewRequest, U as TaxonomyDef, Un as EntryData, Ur as handleContentCountScheduled, Ut as PluginRouteError, V as getTermsForEntries, Vn as createNoop, Vr as generateManifest, Vt as PluginManager, W as TaxonomyTerm, Wn as EntryFilter, Wr as handleContentCountTrashed, X as getMenus, Xn as sanitizeHref, Xr as handleContentGetIncludingTrashed, Xt as definePlugin, Y as getMenu, Yn as isSafeHref, Yr as handleContentGet, Yt as pluginManifestSchema, Z as CreateMenuInput, Zn as computeContentHash, Zr as handleContentList, Zt as FilePreviewMiddlewareConfig, _ as SearchOptions, _i as MediaItem, _n as getI18nConfig, _r as SandboxedPlugin, _t as ApplySnapshotToDatabaseOptions, ai as handleContentUnschedule, an as SessionDatabaseLimitError, ar as PortableTextMarkDef, at as GetCommentsOptions, b as SearchStats, bi as DatabaseConfig, bn as after, br as getSections, bt as getAppliedSnapshotMeta, c as extractSearchableFields, ci as reference, cn as PreviewSidecarClient, cr as PortableTextUnknownBlock, ct as getComments, d as search, di as FieldUIHints, dn as defaultPreviewSidecarClient, dr as ProseMirrorNode, dt as getSiteSetting, ei as handleContentPublish, en as FileSessionDatabaseFactoryOptions, er as prosemirrorToPortableText, et as MenuItem, f as searchCollection, fi as FileValue, fn as parsePreviewSignatureHeader, fr as SandboxEmailMessage, ft as getSiteSettings, g as SearchConfig, gi as CreateMediaInput, gn as getFallbackChain, gr as SandboxRunnerFactory, gt as AppliedSnapshotMeta, h as CollectionSearchOptions, hn as I18nConfig, hr as SandboxRunner, ht as renderPreviewToolbar, ii as handleContentUnpublish, in as SessionDatabaseInfo, ir as PortableTextLinkMark, it as UpdateMenuItemInput, j as Widget, ji as ContentListResponse, jn as TranslationsResult, jr as handleMediaCreate, jt as VerifyPreviewTokenOptions, k as ReorderWidgetsInput, kn as ResolvePathResult, kr as MediaListResponse, kt as GeneratePreviewTokenOptions, l as getSearchStats, li as image, ln as PreviewSidecarSignature, lr as ProseMirrorDocument, lt as getPluginSetting, m as FTSManager, mi as PortableTextBlock, mn as verifyPreviewSignature, mr as SandboxOptions, mt as PreviewToolbarConfig, n as PluginDescriptor, ni as handleContentSchedule, nn as SessionDatabaseFactory, nr as PortableTextHtmlBlock, nt as ReorderMenuItemsInput, oi as handleContentUpdate, on as SessionOpenOptions, or as PortableTextSpan, ot as GetCommentsResult, p as searchWithDb, pi as ImageValue, pn as signPreviewUrl, pr as SandboxEmailSendCallback, pt as setSiteSettings, q as getByline, qr as handleContentDiscardDraft, qt as createHookPipeline, ri as handleContentTranslations, rn as SessionDatabaseHandle, rr as PortableTextImageBlock, rt as UpdateMenuInput, s as extractPlainText, si as portableText, sn as SessionOpenOrCreateOptions, sr as PortableTextTextBlock, st as getCommentCount, ti as handleContentRestore, tn as SessionCleanupResult, tr as PortableTextCodeBlock, tt as MenuItemType, u as getSuggestions, ui as FieldDefinition, un as buildPreviewSignatureHeader, ur as ProseMirrorMark, ut as getPluginSettings, v as SearchResponse, vi as MediaRepository, vn as isI18nEnabled, vr as SerializedRequest, vt as applySnapshotToDatabase, w as getWidgetAreas, wn as ContentEntry, wr as SectionSource, wt as getPreviewToken, x as SuggestOptions, xi as DinewayDatabaseError, xn as CacheHint, xr as CreateSectionInput, xt as Snapshot, y as SearchResult, yi as ContentRepository, yn as AfterCallback, yr as getSection, yt as dropSessionDatabaseTables, z as getTaxonomyTerms, zn as FieldAnnotation, zr as handleRevisionList, zt as SandboxNotAvailableError } from "./runtime-Cd-kjPfN.mjs";
4
- import { n as MediaTable, r as UserTable, t as Database } from "./types-DYKtk8f1.mjs";
5
- import { $ as StandardHookEntry, A as PageMetadataContribution, B as PluginDefinition, C as MediaAccess, D as PageFragmentContribution, E as ModerationDecision, F as PluginAdminConfig, G as PortableTextBlockConfig, H as PluginManifest, I as PluginAdminExports, K as PortableTextBlockField, L as PluginAdminPage, M as PageMetadataHandler, O as PageFragmentEvent, P as PagePlacement, Q as RouteContext, R as PluginCapability, S as LogAccess, T as MediaUploadEvent, U as PluginRoute, V as PluginHooks, W as PluginStorageConfig, X as ResolvedPlugin, Y as ResolvedHook, Z as ResolvedPluginHooks, _ as FieldWidgetConfig, a as CommentAfterModerateEvent, b as HttpAccess, c as CommentBeforeCreateHandler, d as ContentAccess, et as StandardHookHandler, f as ContentDeleteEvent, i as CommentAfterCreateHandler, it as StorageCollection, j as PageMetadataEvent, k as PageFragmentHandler, l as CommentModerateEvent, m as ContentPublishStateChangeEvent, n as CollectionCommentSettings, nt as StandardRouteEntry, o as CommentAfterModerateHandler, ot as StoredComment, p as ContentHookEvent, q as PublicPageContext, r as CommentAfterCreateEvent, rt as StandardRouteHandler, s as CommentBeforeCreateEvent, st as isStandardPluginDefinition, t as BreadcrumbItem, tt as StandardPluginDefinition, u as CommentModerateHandler, v as HookConfig, x as KVAccess, y as HookName, z as PluginContext } from "./types-UGmU5sWx.mjs";
1
+ import { _ as UpdateFieldInput, a as ColumnType, d as FieldType, f as FieldValidation, g as UpdateCollectionInput, h as RESERVED_FIELD_SLUGS, i as CollectionWithFields, l as FIELD_TYPE_TO_COLUMN, m as RESERVED_COLLECTION_SLUGS, n as CollectionSource, o as CreateCollectionInput, p as FieldWidgetOptions, r as CollectionSupport, s as CreateFieldInput, t as Collection, u as Field } from "./types-CwawBUTa.mjs";
2
+ import { a as ContentSeo, c as DinewayValidationError, d as ScheduledNotDueError, f as UpdateContentInput, i as ContentItem, l as FindManyOptions, n as ContentBylineCredit, o as ContentSeoInput, s as CreateContentInput, t as BylineSummary, u as FindManyResult } from "./types-DRIKLmJI.mjs";
3
+ import { $ as CreateMenuItemInput, $n as hashString, $r as handleContentList, $t as createFilePreviewMiddleware, A as UpdateWidgetInput, An as ResolvePathResult, Ar as MediaListResponse, At as GeneratePreviewTokenOptions, B as getTerm, Bi as FieldDescriptor, Bn as FieldAnnotation, Br as handleRevisionList, Bt as SandboxNotAvailableError, C as getWidgetArea, Ci as CreateMediaInput, Cn as CollectionFilter, Cr as GetSectionsOptions, Ct as renderPreviewLoadingPage, D as CreateWidgetInput, Di as DatabaseConfig, Dn as EditFieldMeta, Dr as getCollectionInfo, Dt as GetPreviewUrlOptions, E as CreateWidgetAreaInput, Ei as ContentRepository, En as DinewayCollections, Er as UpdateSectionInput, Et as isPreviewRequest, F as getEntriesByTerm, Fn as getEditMeta, Fr as handleMediaList, Ft as parseContentId, G as TaxonomyTermRow, Gn as EntryFilter, Gr as handleContentCountScheduled, H as CreateTermInput, Hi as ManifestResponse, Hn as createNoop, Hr as generateManifest, Ht as PluginManager, I as getEntryTerms, In as getTranslations, Ir as handleMediaUpdate, It as verifyPreviewToken, J as getBylineBySlug, Jr as handleContentDelete, Jt as createHookPipeline, K as UpdateTermInput, Kn as WhereRange, Kr as handleContentCountTrashed, Kt as HookPipeline, L as getTaxonomyDef, Li as ApiContext, Ln as resolveDinewayPath, Lr as RevisionListResponse, Lt as NodeSandboxRunner, M as WidgetArea, Mn as TranslationsResult, Mr as handleMediaCreate, Mt as VerifyPreviewTokenOptions, N as WidgetComponentDef, Nn as getDinewayCollection, Nr as handleMediaDelete, Nt as VerifyPreviewTokenResult, O as PropDef, Oi as DinewayDatabaseError, On as EntryResult, Or as SchemaError, Ot as buildPreviewUrl, P as WidgetType, Pn as getDinewayEntry, Pr as handleMediaGet, Pt as generatePreviewToken, Q as CreateMenuInput, Qn as computeContentHash, Qr as handleContentGetIncludingTrashed, Qt as FilePreviewMiddlewareConfig, R as getTaxonomyDefs, Ri as ContentListResponse, Rn as CMSAnnotation, Rr as RevisionResponse, Rt as createNodeSandboxRunner, S as Suggestion, Sn as CacheHint, Sr as CreateSectionInput, St as Snapshot, T as getWidgetComponents, Ti as MediaRepository, Tn as ContentEntry, Tr as SectionSource, Tt as getPreviewToken, U as TaxonomyDef, Un as CollectionFilter$1, Ur as handleContentAuthors, Ut as createPluginManager, V as getTermsForEntries, Vi as ListResponse, Vn as createEditable, Vr as handleRevisionRestore, Vt as createNoopSandboxRunner, W as TaxonomyTerm, Wn as EntryData, Wr as handleContentCompare, Wt as PluginRouteError, X as getMenu, Xn as isSafeHref, Xr as handleContentDuplicate, Xt as pluginManifestSchema, Y as getEntriesByByline, Yr as handleContentDiscardDraft, Yt as ValidatedPluginManifest, Z as getMenus, Zn as sanitizeHref, Zr as handleContentGet, Zt as definePlugin, _ as SearchOptions, _i as ContentReference, _n as getFallbackChain, _r as SandboxRunnerFactory, _t as AppliedSnapshotMeta, ai as handleContentTranslations, an as SessionDatabaseInfo, ar as PortableTextLinkMark, at as UpdateMenuItemInput, b as SearchStats, bi as RelationRepository, bn as AfterCallback, br as getSection, bt as dropSessionDatabaseTables, c as extractSearchableFields, ci as handleContentUpdate, cn as SessionOpenOrCreateOptions, cr as PortableTextTextBlock, ct as getCommentCount, d as search, di as image, dn as buildPreviewSignatureHeader, dr as ProseMirrorMark, dt as getPluginSettings, ei as handleContentListTrashed, en as FileSessionDatabaseFactory, er as portableTextToProsemirror, et as Menu, f as searchCollection, fi as FieldDefinition, fn as defaultPreviewSidecarClient, fr as ProseMirrorNode, ft as getSiteSetting, g as SearchConfig, gi as PortableTextBlock, gn as I18nConfig, gr as SandboxRunner, gt as renderPreviewToolbar, h as CollectionSearchOptions, hi as ImageValue, hn as verifyPreviewSignature, hr as SandboxOptions, ht as PreviewToolbarConfig, ii as handleContentSchedule, in as SessionDatabaseHandle, ir as PortableTextImageBlock, it as UpdateMenuInput, j as Widget, jn as TranslationSummary, jr as MediaResponse, jt as PreviewTokenPayload, k as ReorderWidgetsInput, kn as InferCollectionData, kr as SchemaRegistry, kt as getPreviewUrl, l as getSearchStats, li as portableText, ln as PreviewSidecarClient, lr as PortableTextUnknownBlock, lt as getComments, m as FTSManager, mi as FileValue, mn as signPreviewUrl, mr as SandboxEmailSendCallback, mt as setSiteSettings, n as PluginDescriptor, ni as handleContentPublish, nn as SessionCleanupResult, nr as PortableTextCodeBlock, nt as MenuItemType, oi as handleContentUnpublish, on as SessionDatabaseLimitError, or as PortableTextMarkDef, ot as GetCommentsOptions, p as searchWithDb, pi as FieldUIHints, pn as parsePreviewSignatureHeader, pr as SandboxEmailMessage, pt as getSiteSettings, q as getByline, qn as WhereValue, qr as handleContentCreate, qt as HookResult, ri as handleContentRestore, rn as SessionDatabaseFactory, rr as PortableTextHtmlBlock, rt as ReorderMenuItemsInput, s as extractPlainText, si as handleContentUnschedule, sn as SessionOpenOptions, sr as PortableTextSpan, st as GetCommentsResult, ti as handleContentPermanentDelete, tn as FileSessionDatabaseFactoryOptions, tr as prosemirrorToPortableText, tt as MenuItem, u as getSuggestions, ui as reference, un as PreviewSidecarSignature, ur as ProseMirrorDocument, ut as getPluginSetting, v as SearchResponse, vi as CreateRelationInput, vn as getI18nConfig, vr as SandboxedPlugin, vt as ApplySnapshotToDatabaseOptions, w as getWidgetAreas, wi as MediaItem, wn as CollectionResult, wr as Section, wt as isBlockedInPreview, x as SuggestOptions, xi as UpdateRelationInput, xn as after, xr as getSections, xt as getAppliedSnapshotMeta, y as SearchResult, yi as Relation, yn as isI18nEnabled, yr as SerializedRequest, yt as applySnapshotToDatabase, z as getTaxonomyTerms, zi as ContentResponse, zn as EditProxy, zr as handleRevisionGet, zt as NoopSandboxRunner } from "./runtime-DEWQpZ-4.mjs";
4
+ import { n as MediaTable, r as UserTable, t as Database } from "./types-eu5UDgHN.mjs";
5
+ import { $ as StandardHookEntry, A as PageMetadataContribution, B as PluginDefinition, C as MediaAccess, D as PageFragmentContribution, E as ModerationDecision, F as PluginAdminConfig, G as PortableTextBlockConfig, H as PluginManifest, I as PluginAdminExports, K as PortableTextBlockField, L as PluginAdminPage, M as PageMetadataHandler, O as PageFragmentEvent, P as PagePlacement, Q as RouteContext, R as PluginCapability, S as LogAccess, T as MediaUploadEvent, U as PluginRoute, V as PluginHooks, W as PluginStorageConfig, X as ResolvedPlugin, Y as ResolvedHook, Z as ResolvedPluginHooks, _ as FieldWidgetConfig, a as CommentAfterModerateEvent, b as HttpAccess, c as CommentBeforeCreateHandler, d as ContentAccess, et as StandardHookHandler, f as ContentDeleteEvent, i as CommentAfterCreateHandler, it as StorageCollection, j as PageMetadataEvent, k as PageFragmentHandler, l as CommentModerateEvent, m as ContentPublishStateChangeEvent, n as CollectionCommentSettings, nt as StandardRouteEntry, o as CommentAfterModerateHandler, ot as StoredComment, p as ContentHookEvent, q as PublicPageContext, r as CommentAfterCreateEvent, rt as StandardRouteHandler, s as CommentBeforeCreateEvent, st as isStandardPluginDefinition, t as BreadcrumbItem, tt as StandardPluginDefinition, u as CommentModerateHandler, v as HookConfig, x as KVAccess, y as HookName, z as PluginContext } from "./types-DSPGWjxO.mjs";
6
6
  import { a as AuthResult, i as AuthProviderModule, n as AuthProviderAdminExports, o as AuthRouteDescriptor, r as AuthProviderDescriptor, s as ExternalAuthConfig, t as AuthDescriptor } from "./types-Dryvv7LH.mjs";
7
7
  import { a as SqliteConfig, i as PostgresConfig, n as DatabaseDialectType, r as LibsqlConfig, t as DatabaseDescriptor } from "./adapters-OQCImOL7.mjs";
8
8
  import { _ as MediaValue, n as generatePlaceholder, r as normalizeMediaValue, t as PlaceholderData } from "./placeholder-CXfoCtCd.mjs";
9
- import { n as getMigrationStatus, t as MigrationStatus } from "./runner-Cnz4dl0f.mjs";
10
- import { _ as WxrSite, a as getAllSources, b as parseWxrString, c as getUrlSources, d as importReusableBlocksAsSections, f as WxrAttachment, g as WxrPost, h as WxrData, i as clearSources, l as probeUrl, m as WxrCategory, n as parseWxrDate, o as getFileSources, p as WxrAuthor, r as wxrSource, s as getSource, t as wordpressRestSource, u as registerSource, v as WxrTag, x as decodeSlug, y as parseWxr } from "./index-DJVaYiUV.mjs";
9
+ import { n as getMigrationStatus, t as MigrationStatus } from "./runner-D4FL9usy.mjs";
10
+ import { _ as WxrSite, a as getAllSources, b as parseWxrString, c as getUrlSources, d as importReusableBlocksAsSections, f as WxrAttachment, g as WxrPost, h as WxrData, i as clearSources, l as probeUrl, m as WxrCategory, n as parseWxrDate, o as getFileSources, p as WxrAuthor, r as wxrSource, s as getSource, t as wordpressRestSource, u as registerSource, v as WxrTag, x as decodeSlug, y as parseWxr } from "./index-CwRuZ-u8.mjs";
11
11
  import { a as ListOptions, c as S3StorageConfig, d as Storage, f as StorageDescriptor, i as FileInfo, l as SignedUploadOptions, n as DinewayStorageError, o as ListResult, p as UploadResult, r as DownloadResult, s as LocalStorageConfig, t as CreateStorageFn, u as SignedUploadUrl } from "./types-DZpT-PnG.mjs";
12
12
  import { i as SiteSettings, n as SeoSettings, r as SiteSettingKey, t as MediaReference } from "./types-nP9vGUFq.mjs";
13
- import "./byline-fields-Cuo-JI3B.mjs";
13
+ import "./byline-fields-BX7rWKNU.mjs";
14
14
  import { DinewayRequestContext, getRequestContext, runWithContext } from "./request-context.mjs";
15
15
  import { adaptSandboxEntry } from "./plugins/adapt-sandbox-entry.mjs";
16
16
  import { S as UrlInput, _ as SourceAuth, a as FileInput, b as SourceProbeResult, c as ImportContext, d as ImportSource, f as NormalizedItem, g as ProbeResult, h as PostTypeMapping, i as FieldCompatibility, l as ImportFieldDef, m as PostTypeAnalysis, n as CollectionSchemaStatus, o as ImportAnalysis, p as OAuthInput, r as FetchOptions, s as ImportConfig, t as AttachmentInfo, u as ImportResult, v as SourceCapabilities, x as SuggestedAction, y as SourceInput } from "./types-GaCtZ1k9.mjs";
17
17
  import { SeoMeta, SeoMetaOptions, getContentSeo, getSeoMeta } from "./seo/index.mjs";
18
- import { _ as SeedTaxonomyTerm, a as applySeed, b as ValidationResult, c as SeedCollection, d as SeedFile, f as SeedMenu, g as SeedTaxonomy, l as SeedContentEntry, o as SeedApplyOptions, p as SeedMenuItem, s as SeedApplyResult, t as validateSeed, u as SeedField, v as SeedWidget, y as SeedWidgetArea } from "./validate-BJuG-ISL.mjs";
18
+ import { _ as SeedTaxonomyTerm, a as applySeed, b as ValidationResult, c as SeedCollection, d as SeedFile, f as SeedMenu, g as SeedTaxonomy, l as SeedContentEntry, o as SeedApplyOptions, p as SeedMenuItem, s as SeedApplyResult, t as validateSeed, u as SeedField, v as SeedWidget, y as SeedWidgetArea } from "./validate-BMs11tan.mjs";
19
19
  import "./seed/index.mjs";
20
20
  import { ulid } from "ulidx";
21
- export { type AfterCallback, type ApiContext, type AppliedSnapshotMeta, type ApplySnapshotToDatabaseOptions, type AttachmentInfo, type AuthDescriptor, type AuthProviderAdminExports, type AuthProviderDescriptor, type AuthProviderModule, type AuthResult, type AuthRouteDescriptor, type BreadcrumbItem, type BylineSummary, type CMSAnnotation, type CacheHint, type Collection, type CollectionCommentSettings, type CollectionFilter, type CollectionResult, type CollectionSchemaStatus, type CollectionSearchOptions, type CollectionSource, type CollectionSupport, type CollectionWithFields, type ColumnType, type CommentAfterCreateEvent, type CommentAfterCreateHandler, type CommentAfterModerateEvent, type CommentAfterModerateHandler, type CommentBeforeCreateEvent, type CommentBeforeCreateHandler, type CommentModerateEvent, type CommentModerateHandler, type ContentAccess, type ContentBylineCredit, type ContentDeleteEvent, type ContentEntry, type ContentHookEvent, type ContentItem, type ContentListResponse, type ContentPublishStateChangeEvent, ContentRepository, type ContentResponse, type ContentSeo, type ContentSeoInput, type CreateCollectionInput, type CreateContentInput, type CreateFieldInput, type CreateMediaInput, type CreateMenuInput, type CreateMenuItemInput, type CreateSectionInput, type CreateStorageFn, type CreateTermInput, type CreateWidgetAreaInput, type CreateWidgetInput, type Database, type DatabaseConfig, type DatabaseDescriptor, type DatabaseDialectType, type DinewayCollections, DinewayDatabaseError, type DinewayRequestContext, DinewayStorageError, DinewayValidationError, type DownloadResult, type EditFieldMeta, type EditProxy, type EntryData, type EntryFilter, type EntryResult, type ExternalAuthConfig, FIELD_TYPE_TO_COLUMN, FTSManager, type FetchOptions, type Field, type FieldAnnotation, type FieldCompatibility, type FieldDefinition, type FieldDescriptor, type FieldType, type FieldUIHints, type FieldValidation, type FieldWidgetConfig, type FieldWidgetOptions, type FileInfo, type FileInput, type FilePreviewMiddlewareConfig, FileSessionDatabaseFactory, type FileSessionDatabaseFactoryOptions, type FileValue, type FindManyOptions, type FindManyResult, type GeneratePreviewTokenOptions, type GetCommentsOptions, type GetCommentsResult, type GetPreviewUrlOptions, type GetSectionsOptions, type HookConfig, type HookName, HookPipeline, type HookResult, type HttpAccess, type I18nConfig, type ImageValue, type ImportAnalysis, type ImportConfig, type ImportContext, type ImportFieldDef, type ImportResult, type ImportSource, type InferCollectionData, type KVAccess, type LibsqlConfig, type ListOptions, type ListResponse, type ListResult, type CollectionFilter$1 as LoaderCollectionFilter, type LocalStorageConfig, type LogAccess, type ManifestResponse, type MediaAccess, type MediaItem, type MediaListResponse, type MediaReference, MediaRepository, type MediaResponse, type MediaTable, type MediaUploadEvent, type MediaValue, type Menu, type MenuItem, type MenuItemType, type MigrationStatus, type ModerationDecision, NodeSandboxRunner, NoopSandboxRunner, type NormalizedItem, type OAuthInput, type PageFragmentContribution, type PageFragmentEvent, type PageFragmentHandler, type PageMetadataContribution, type PageMetadataEvent, type PageMetadataHandler, type PagePlacement, type PlaceholderData, type PluginAdminConfig, type PluginAdminExports, type PluginAdminPage, type PluginCapability, type PluginContext, type PluginDefinition, type PluginDescriptor, type PluginHooks, PluginManager, type PluginManifest, type PluginRoute, PluginRouteError, type PluginStorageConfig, type PortableTextBlock, type PortableTextBlockConfig, type PortableTextBlockField, type PortableTextCodeBlock, type PortableTextHtmlBlock, type PortableTextImageBlock, type PortableTextLinkMark, type PortableTextMarkDef, type PortableTextSpan, type PortableTextTextBlock, type PortableTextUnknownBlock, type PostTypeAnalysis, type PostTypeMapping, type PostgresConfig, type PreviewSidecarClient, type PreviewSidecarSignature, type PreviewTokenPayload, type PreviewToolbarConfig, type ProbeResult, type PropDef, type ProseMirrorDocument, type ProseMirrorMark, type ProseMirrorNode, type PublicPageContext, RESERVED_COLLECTION_SLUGS, RESERVED_FIELD_SLUGS, type ReorderMenuItemsInput, type ReorderWidgetsInput, type ResolvePathResult, type ResolvedHook, type ResolvedPlugin, type ResolvedPluginHooks, type RevisionListResponse, type RevisionResponse, type RouteContext, type S3StorageConfig, type SandboxEmailMessage, type SandboxEmailSendCallback, SandboxNotAvailableError, type SandboxOptions, type SandboxRunner, type SandboxRunnerFactory, type SandboxedPlugin, SchemaError, SchemaRegistry, type SearchConfig, type SearchOptions, type SearchResponse, type SearchResult, type SearchStats, type Section, type SectionSource, type SeedApplyOptions, type SeedApplyResult, type SeedCollection, type SeedContentEntry, type SeedField, type SeedFile, type SeedMenu, type SeedMenuItem, type SeedTaxonomy, type SeedTaxonomyTerm, type SeedWidget, type SeedWidgetArea, type SeoMeta, type SeoMetaOptions, type SeoSettings, type SerializedRequest, type SessionCleanupResult, type SessionDatabaseFactory, type SessionDatabaseHandle, type SessionDatabaseInfo, SessionDatabaseLimitError, type SessionOpenOptions, type SessionOpenOrCreateOptions, type SignedUploadOptions, type SignedUploadUrl, type SiteSettingKey, type SiteSettings, type Snapshot, type SourceAuth, type SourceCapabilities, type SourceInput, type SourceProbeResult, type SqliteConfig, type StandardHookEntry, type StandardHookHandler, type StandardPluginDefinition, type StandardRouteEntry, type StandardRouteHandler, type Storage, type StorageCollection, type StorageDescriptor, type StoredComment, type SuggestOptions, type SuggestedAction, type Suggestion, type TaxonomyDef, type TaxonomyTerm, type TaxonomyTermRow, type TranslationSummary, type TranslationsResult, type UpdateCollectionInput, type UpdateContentInput, type UpdateFieldInput, type UpdateMenuInput, type UpdateMenuItemInput, type UpdateSectionInput, type UpdateTermInput, type UpdateWidgetInput, type UploadResult, type UrlInput, type UserTable, type ValidatedPluginManifest, type ValidationResult, type VerifyPreviewTokenOptions, type VerifyPreviewTokenResult, type WhereRange, type WhereValue, type Widget, type WidgetArea, type WidgetComponentDef, type WidgetType, type WxrAttachment, type WxrAuthor, type WxrCategory, type WxrData, type WxrPost, type WxrSite, type WxrTag, adaptSandboxEntry, after, applySeed, applySnapshotToDatabase, buildPreviewSignatureHeader, buildPreviewUrl, clearSources, computeContentHash, createEditable, createFilePreviewMiddleware, createHookPipeline, createNodeSandboxRunner, createNoop, createNoopSandboxRunner, createPluginManager, decodeSlug, defaultPreviewSidecarClient, definePlugin, dropSessionDatabaseTables, extractPlainText, extractSearchableFields, generateManifest, generatePlaceholder, generatePreviewToken, getAllSources, getAppliedSnapshotMeta, getByline, getBylineBySlug, getCollectionInfo, getCommentCount, getComments, getContentSeo, getDinewayCollection, getDinewayEntry, getEditMeta, getEntriesByTerm, getEntryTerms, getFallbackChain, getFileSources, getI18nConfig, getMenu, getMenus, getMigrationStatus, getPluginSetting, getPluginSettings, getPreviewToken, getPreviewUrl, getRequestContext, getSearchStats, getSection, getSections, getSeoMeta, getSiteSetting, getSiteSettings, getSource, getSuggestions, getTaxonomyDef, getTaxonomyDefs, getTaxonomyTerms, getTerm, getTermsForEntries, getTranslations, getUrlSources, getWidgetArea, getWidgetAreas, getWidgetComponents, handleContentCompare, handleContentCountScheduled, handleContentCountTrashed, handleContentCreate, handleContentDelete, handleContentDiscardDraft, handleContentDuplicate, handleContentGet, handleContentGetIncludingTrashed, handleContentList, handleContentListTrashed, handleContentPermanentDelete, handleContentPublish, handleContentRestore, handleContentSchedule, handleContentTranslations, handleContentUnpublish, handleContentUnschedule, handleContentUpdate, handleMediaCreate, handleMediaDelete, handleMediaGet, handleMediaList, handleMediaUpdate, handleRevisionGet, handleRevisionList, handleRevisionRestore, hashString, image, importReusableBlocksAsSections, isBlockedInPreview, isI18nEnabled, isPreviewRequest, isSafeHref, isStandardPluginDefinition, normalizeMediaValue, parseContentId, parsePreviewSignatureHeader, parseWxr, parseWxrDate, parseWxrString, pluginManifestSchema, portableText, portableTextToProsemirror, probeUrl, prosemirrorToPortableText, reference, registerSource, renderPreviewLoadingPage, renderPreviewToolbar, resolveDinewayPath, runWithContext, sanitizeHref, search, searchCollection, searchWithDb, setSiteSettings, signPreviewUrl, ulid, validateSeed, verifyPreviewSignature, verifyPreviewToken, wordpressRestSource, wxrSource };
21
+ export { type AfterCallback, type ApiContext, type AppliedSnapshotMeta, type ApplySnapshotToDatabaseOptions, type AttachmentInfo, type AuthDescriptor, type AuthProviderAdminExports, type AuthProviderDescriptor, type AuthProviderModule, type AuthResult, type AuthRouteDescriptor, type BreadcrumbItem, type BylineSummary, type CMSAnnotation, type CacheHint, type Collection, type CollectionCommentSettings, type CollectionFilter, type CollectionResult, type CollectionSchemaStatus, type CollectionSearchOptions, type CollectionSource, type CollectionSupport, type CollectionWithFields, type ColumnType, type CommentAfterCreateEvent, type CommentAfterCreateHandler, type CommentAfterModerateEvent, type CommentAfterModerateHandler, type CommentBeforeCreateEvent, type CommentBeforeCreateHandler, type CommentModerateEvent, type CommentModerateHandler, type ContentAccess, type ContentBylineCredit, type ContentDeleteEvent, type ContentEntry, type ContentHookEvent, type ContentItem, type ContentListResponse, type ContentPublishStateChangeEvent, type ContentReference, ContentRepository, type ContentResponse, type ContentSeo, type ContentSeoInput, type CreateCollectionInput, type CreateContentInput, type CreateFieldInput, type CreateMediaInput, type CreateMenuInput, type CreateMenuItemInput, type CreateRelationInput, type CreateSectionInput, type CreateStorageFn, type CreateTermInput, type CreateWidgetAreaInput, type CreateWidgetInput, type Database, type DatabaseConfig, type DatabaseDescriptor, type DatabaseDialectType, type DinewayCollections, DinewayDatabaseError, type DinewayRequestContext, DinewayStorageError, DinewayValidationError, type DownloadResult, type EditFieldMeta, type EditProxy, type EntryData, type EntryFilter, type EntryResult, type ExternalAuthConfig, FIELD_TYPE_TO_COLUMN, FTSManager, type FetchOptions, type Field, type FieldAnnotation, type FieldCompatibility, type FieldDefinition, type FieldDescriptor, type FieldType, type FieldUIHints, type FieldValidation, type FieldWidgetConfig, type FieldWidgetOptions, type FileInfo, type FileInput, type FilePreviewMiddlewareConfig, FileSessionDatabaseFactory, type FileSessionDatabaseFactoryOptions, type FileValue, type FindManyOptions, type FindManyResult, type GeneratePreviewTokenOptions, type GetCommentsOptions, type GetCommentsResult, type GetPreviewUrlOptions, type GetSectionsOptions, type HookConfig, type HookName, HookPipeline, type HookResult, type HttpAccess, type I18nConfig, type ImageValue, type ImportAnalysis, type ImportConfig, type ImportContext, type ImportFieldDef, type ImportResult, type ImportSource, type InferCollectionData, type KVAccess, type LibsqlConfig, type ListOptions, type ListResponse, type ListResult, type CollectionFilter$1 as LoaderCollectionFilter, type LocalStorageConfig, type LogAccess, type ManifestResponse, type MediaAccess, type MediaItem, type MediaListResponse, type MediaReference, MediaRepository, type MediaResponse, type MediaTable, type MediaUploadEvent, type MediaValue, type Menu, type MenuItem, type MenuItemType, type MigrationStatus, type ModerationDecision, NodeSandboxRunner, NoopSandboxRunner, type NormalizedItem, type OAuthInput, type PageFragmentContribution, type PageFragmentEvent, type PageFragmentHandler, type PageMetadataContribution, type PageMetadataEvent, type PageMetadataHandler, type PagePlacement, type PlaceholderData, type PluginAdminConfig, type PluginAdminExports, type PluginAdminPage, type PluginCapability, type PluginContext, type PluginDefinition, type PluginDescriptor, type PluginHooks, PluginManager, type PluginManifest, type PluginRoute, PluginRouteError, type PluginStorageConfig, type PortableTextBlock, type PortableTextBlockConfig, type PortableTextBlockField, type PortableTextCodeBlock, type PortableTextHtmlBlock, type PortableTextImageBlock, type PortableTextLinkMark, type PortableTextMarkDef, type PortableTextSpan, type PortableTextTextBlock, type PortableTextUnknownBlock, type PostTypeAnalysis, type PostTypeMapping, type PostgresConfig, type PreviewSidecarClient, type PreviewSidecarSignature, type PreviewTokenPayload, type PreviewToolbarConfig, type ProbeResult, type PropDef, type ProseMirrorDocument, type ProseMirrorMark, type ProseMirrorNode, type PublicPageContext, RESERVED_COLLECTION_SLUGS, RESERVED_FIELD_SLUGS, type Relation, RelationRepository, type ReorderMenuItemsInput, type ReorderWidgetsInput, type ResolvePathResult, type ResolvedHook, type ResolvedPlugin, type ResolvedPluginHooks, type RevisionListResponse, type RevisionResponse, type RouteContext, type S3StorageConfig, type SandboxEmailMessage, type SandboxEmailSendCallback, SandboxNotAvailableError, type SandboxOptions, type SandboxRunner, type SandboxRunnerFactory, type SandboxedPlugin, ScheduledNotDueError, SchemaError, SchemaRegistry, type SearchConfig, type SearchOptions, type SearchResponse, type SearchResult, type SearchStats, type Section, type SectionSource, type SeedApplyOptions, type SeedApplyResult, type SeedCollection, type SeedContentEntry, type SeedField, type SeedFile, type SeedMenu, type SeedMenuItem, type SeedTaxonomy, type SeedTaxonomyTerm, type SeedWidget, type SeedWidgetArea, type SeoMeta, type SeoMetaOptions, type SeoSettings, type SerializedRequest, type SessionCleanupResult, type SessionDatabaseFactory, type SessionDatabaseHandle, type SessionDatabaseInfo, SessionDatabaseLimitError, type SessionOpenOptions, type SessionOpenOrCreateOptions, type SignedUploadOptions, type SignedUploadUrl, type SiteSettingKey, type SiteSettings, type Snapshot, type SourceAuth, type SourceCapabilities, type SourceInput, type SourceProbeResult, type SqliteConfig, type StandardHookEntry, type StandardHookHandler, type StandardPluginDefinition, type StandardRouteEntry, type StandardRouteHandler, type Storage, type StorageCollection, type StorageDescriptor, type StoredComment, type SuggestOptions, type SuggestedAction, type Suggestion, type TaxonomyDef, type TaxonomyTerm, type TaxonomyTermRow, type TranslationSummary, type TranslationsResult, type UpdateCollectionInput, type UpdateContentInput, type UpdateFieldInput, type UpdateMenuInput, type UpdateMenuItemInput, type UpdateRelationInput, type UpdateSectionInput, type UpdateTermInput, type UpdateWidgetInput, type UploadResult, type UrlInput, type UserTable, type ValidatedPluginManifest, type ValidationResult, type VerifyPreviewTokenOptions, type VerifyPreviewTokenResult, type WhereRange, type WhereValue, type Widget, type WidgetArea, type WidgetComponentDef, type WidgetType, type WxrAttachment, type WxrAuthor, type WxrCategory, type WxrData, type WxrPost, type WxrSite, type WxrTag, adaptSandboxEntry, after, applySeed, applySnapshotToDatabase, buildPreviewSignatureHeader, buildPreviewUrl, clearSources, computeContentHash, createEditable, createFilePreviewMiddleware, createHookPipeline, createNodeSandboxRunner, createNoop, createNoopSandboxRunner, createPluginManager, decodeSlug, defaultPreviewSidecarClient, definePlugin, dropSessionDatabaseTables, extractPlainText, extractSearchableFields, generateManifest, generatePlaceholder, generatePreviewToken, getAllSources, getAppliedSnapshotMeta, getByline, getBylineBySlug, getCollectionInfo, getCommentCount, getComments, getContentSeo, getDinewayCollection, getDinewayEntry, getEditMeta, getEntriesByByline, getEntriesByTerm, getEntryTerms, getFallbackChain, getFileSources, getI18nConfig, getMenu, getMenus, getMigrationStatus, getPluginSetting, getPluginSettings, getPreviewToken, getPreviewUrl, getRequestContext, getSearchStats, getSection, getSections, getSeoMeta, getSiteSetting, getSiteSettings, getSource, getSuggestions, getTaxonomyDef, getTaxonomyDefs, getTaxonomyTerms, getTerm, getTermsForEntries, getTranslations, getUrlSources, getWidgetArea, getWidgetAreas, getWidgetComponents, handleContentAuthors, handleContentCompare, handleContentCountScheduled, handleContentCountTrashed, handleContentCreate, handleContentDelete, handleContentDiscardDraft, handleContentDuplicate, handleContentGet, handleContentGetIncludingTrashed, handleContentList, handleContentListTrashed, handleContentPermanentDelete, handleContentPublish, handleContentRestore, handleContentSchedule, handleContentTranslations, handleContentUnpublish, handleContentUnschedule, handleContentUpdate, handleMediaCreate, handleMediaDelete, handleMediaGet, handleMediaList, handleMediaUpdate, handleRevisionGet, handleRevisionList, handleRevisionRestore, hashString, image, importReusableBlocksAsSections, isBlockedInPreview, isI18nEnabled, isPreviewRequest, isSafeHref, isStandardPluginDefinition, normalizeMediaValue, parseContentId, parsePreviewSignatureHeader, parseWxr, parseWxrDate, parseWxrString, pluginManifestSchema, portableText, portableTextToProsemirror, probeUrl, prosemirrorToPortableText, reference, registerSource, renderPreviewLoadingPage, renderPreviewToolbar, resolveDinewayPath, runWithContext, sanitizeHref, search, searchCollection, searchWithDb, setSiteSettings, signPreviewUrl, ulid, validateSeed, verifyPreviewSignature, verifyPreviewToken, wordpressRestSource, wxrSource };
package/dist/index.mjs CHANGED
@@ -1,61 +1,61 @@
1
- import { n as getMigrationStatus } from "./runner-DTfG5v0G.mjs";
1
+ import { n as getMigrationStatus } from "./runner-B-tbV751.mjs";
2
2
  import { r as DinewayDatabaseError } from "./connection-CiJWiWya.mjs";
3
3
  import "./dialect-helpers-fk43GbDb.mjs";
4
4
  import { n as getI18nConfig, r as isI18nEnabled, t as getFallbackChain } from "./config-CVssduLe.mjs";
5
- import { _ as portableTextToProsemirror, a as SandboxNotAvailableError, b as reference, c as createPluginManager, f as HookPipeline, g as after, h as definePlugin, i as NoopSandboxRunner, l as PluginRouteError, n as NodeSandboxRunner, o as createNoopSandboxRunner, p as createHookPipeline, r as createNodeSandboxRunner, s as PluginManager, t as isStandardPluginDefinition, v as prosemirrorToPortableText, x as image, y as portableText } from "./plugins-BQ5Joz6v.mjs";
5
+ import { S as RelationRepository, _ as portableTextToProsemirror, a as SandboxNotAvailableError, b as reference, c as createPluginManager, f as HookPipeline, g as after, h as definePlugin, i as NoopSandboxRunner, l as PluginRouteError, n as NodeSandboxRunner, o as createNoopSandboxRunner, p as createHookPipeline, r as createNodeSandboxRunner, s as PluginManager, t as isStandardPluginDefinition, v as prosemirrorToPortableText, x as image, y as portableText } from "./plugins-C57YQi4l.mjs";
6
6
  import { t as decodeSlug } from "./slugify-BzGxlOFx.mjs";
7
- import { t as ContentRepository } from "./content-BfyjOiMi.mjs";
7
+ import { t as ContentRepository } from "./content-QaryevFO.mjs";
8
8
  import "./base64-C1Q9yr0B.mjs";
9
- import { t as DinewayValidationError } from "./types-Ck7-WoUD.mjs";
10
- import { t as MediaRepository } from "./media-DhBwiCYR.mjs";
11
- import "./user-CqZwN21P.mjs";
12
- import "./taxonomy-BnH-6VsX.mjs";
13
- import "./comment-ogMaF1gk.mjs";
14
- import "./options-BF11H_FD.mjs";
15
- import "./audit-DuRbTm8L.mjs";
16
- import "./site-activity-6x1JccoR.mjs";
17
- import "./review-requests-tPw8_pAO.mjs";
18
- import "./entity-aliases-uOrKvlPg.mjs";
19
- import "./context-ZMHhwzkG.mjs";
20
- import "./menus-BzGQpw9d.mjs";
21
- import "./redirect-BqFMj67n.mjs";
9
+ import { n as ScheduledNotDueError, t as DinewayValidationError } from "./types-DfuD0Afl.mjs";
10
+ import { t as MediaRepository } from "./media-DUAjMfvR.mjs";
11
+ import "./user-DtNmjNYt.mjs";
12
+ import "./taxonomy-CBmkmMuU.mjs";
13
+ import "./comment-CXDOQ93N.mjs";
14
+ import "./options-BvJoSSJR.mjs";
15
+ import "./audit-D1cbG7xH.mjs";
16
+ import "./site-activity-D7Xyropw.mjs";
17
+ import "./review-requests-gGMyYYhy.mjs";
18
+ import "./entity-aliases-Egjmqc7I.mjs";
19
+ import "./context-CoYb_fvK.mjs";
20
+ import "./menus-WpFRMXjz.mjs";
21
+ import "./redirect-C2zXRj3c.mjs";
22
22
  import { getRequestContext, runWithContext } from "./request-context.mjs";
23
- import "./request-cache-w5cj5itT.mjs";
24
- import { a as RESERVED_COLLECTION_SLUGS, o as RESERVED_FIELD_SLUGS, r as FIELD_TYPE_TO_COLUMN } from "./types-DbZhHtqS.mjs";
25
- import "./byline-registry-CL8BxPPp.mjs";
26
- import "./byline-CXQcMsBu.mjs";
27
- import { t as normalizeMediaValue } from "./normalize-O-hi3a27.mjs";
23
+ import "./request-cache-CYMbwZc6.mjs";
24
+ import { a as RESERVED_COLLECTION_SLUGS, o as RESERVED_FIELD_SLUGS, r as FIELD_TYPE_TO_COLUMN } from "./types-BO8TGjS8.mjs";
25
+ import "./byline-registry-CUSvkasJ.mjs";
26
+ import "./byline-1ntDwv8c.mjs";
27
+ import { n as normalizeMediaValue } from "./normalize-DUnoXAa9.mjs";
28
28
  import { t as generatePlaceholder } from "./placeholder-BDo81Is5.mjs";
29
- import "./seo-uMFBaR8G.mjs";
30
- import { A as handleRevisionGet, B as handleContentDuplicate, D as handleMediaGet, E as handleMediaDelete, F as handleContentCountScheduled, G as handleContentPermanentDelete, H as handleContentGetIncludingTrashed, I as handleContentCountTrashed, J as handleContentSchedule, K as handleContentPublish, L as handleContentCreate, M as handleRevisionRestore, N as generateManifest, O as handleMediaList, P as handleContentCompare, Q as handleContentUpdate, R as handleContentDelete, T as handleMediaCreate, U as handleContentList, V as handleContentGet, W as handleContentListTrashed, X as handleContentUnpublish, Y as handleContentTranslations, Z as handleContentUnschedule, j as handleRevisionList, k as handleMediaUpdate, q as handleContentRestore, z as handleContentDiscardDraft } from "./api-ePsOhL3q.mjs";
31
- import "./dashboard-D0gWuzNp.mjs";
32
- import "./briefing-BFEWeJtR.mjs";
29
+ import "./seo-Cd45Po8L.mjs";
30
+ import { $ as handleContentUpdate, A as handleRevisionGet, B as handleContentDiscardDraft, D as handleMediaGet, E as handleMediaDelete, F as handleContentCompare, G as handleContentListTrashed, H as handleContentGet, I as handleContentCountScheduled, J as handleContentRestore, K as handleContentPermanentDelete, L as handleContentCountTrashed, M as handleRevisionRestore, N as generateManifest, O as handleMediaList, P as handleContentAuthors, Q as handleContentUnschedule, R as handleContentCreate, T as handleMediaCreate, U as handleContentGetIncludingTrashed, V as handleContentDuplicate, W as handleContentList, X as handleContentTranslations, Y as handleContentSchedule, Z as handleContentUnpublish, j as handleRevisionList, k as handleMediaUpdate, q as handleContentPublish, z as handleContentDelete } from "./api-Eiy8_zVZ.mjs";
31
+ import "./dashboard-DNlqsknJ.mjs";
32
+ import "./briefing-gKWiGLt1.mjs";
33
33
  import "./context-types-DQh_XKkn.mjs";
34
- import { t as FTSManager } from "./fts-manager-EHY2Kes9.mjs";
35
- import { n as SchemaRegistry, t as SchemaError } from "./registry-Cq3QRBW2.mjs";
36
- import "./loader-Y0QvC_QO.mjs";
37
- import { i as getSiteSettings, n as getPluginSettings, o as setSiteSettings, r as getSiteSetting, t as getPluginSetting } from "./settings-DNRQuX3d.mjs";
38
- import "./briefing-C4fJSVYW.mjs";
39
- import "./review-requests-GYqjl2jO.mjs";
34
+ import { t as FTSManager } from "./fts-manager-CIZlScg5.mjs";
35
+ import { n as SchemaRegistry, t as SchemaError } from "./registry-CTkbIDB9.mjs";
36
+ import "./loader-tg63WSY2.mjs";
37
+ import { i as getSiteSettings, n as getPluginSettings, o as setSiteSettings, r as getSiteSetting, t as getPluginSetting } from "./settings-yLjz_I4T.mjs";
38
+ import "./briefing-CObXGOGz.mjs";
39
+ import "./review-requests-C0un5kdV.mjs";
40
40
  import { n as hashString, t as computeContentHash } from "./hash-BPmX6P8I.mjs";
41
- import { t as getCollectionInfo } from "./query-BJuUydtD.mjs";
42
- import "./zod-generator-D1ROBNuC.mjs";
43
- import "./schema-DmHMWnSA.mjs";
41
+ import { t as getCollectionInfo } from "./query-DKEwzobh.mjs";
42
+ import "./zod-generator-BS9-umbk.mjs";
43
+ import "./schema-B6zyB-Xn.mjs";
44
44
  import "./seo-5lJOtB5J.mjs";
45
- import "./bylines-D2vqm1aZ.mjs";
46
- import "./byline-fields-Dc7L6Yry.mjs";
47
- import { o as getSection, s as getSections } from "./sections-DsuIrFDC.mjs";
48
- import "./settings-BYGdocdj.mjs";
45
+ import "./bylines-bC15ZqAv.mjs";
46
+ import "./byline-fields-C9_iaPaM.mjs";
47
+ import { o as getSection, s as getSections } from "./sections-OLKgXL10.mjs";
48
+ import "./settings-lAHjaUit.mjs";
49
49
  import "./resolve-DTuDyYKs.mjs";
50
- import { a as getTaxonomyTerms, i as getTaxonomyDefs, n as getEntryTerms, o as getTerm, r as getTaxonomyDef, s as getTermsForEntries, t as getEntriesByTerm } from "./taxonomies-faQVeMgj.mjs";
51
- import "./taxonomies-CQFmkP5u.mjs";
50
+ import { a as getTaxonomyTerms, i as getTaxonomyDefs, n as getEntryTerms, o as getTerm, r as getTaxonomyDef, s as getTermsForEntries, t as getEntriesByTerm } from "./taxonomies-CNOGeC-3.mjs";
51
+ import "./taxonomies-uXVEoQso.mjs";
52
52
  import { i as pluginManifestSchema } from "./manifest-schema-qh2P7RDX.mjs";
53
53
  import { t as DinewayStorageError } from "./types-Cg276-3z.mjs";
54
54
  import "./parse-CneSgl7-.mjs";
55
- import "./redirects-q_cToaHv.mjs";
56
- import "./byline-fields-D7TJ_oHF.mjs";
55
+ import "./redirects-ocRJmQHP.mjs";
56
+ import "./byline-fields-B-ZkoVft.mjs";
57
57
  import { n as sanitizeHref, t as isSafeHref } from "./url-w7Mp5qAD.mjs";
58
- import { c as createEditable, i as getTranslations, l as createNoop, n as getDinewayEntry, r as getEditMeta, s as resolveDinewayPath, t as getDinewayCollection } from "./query-CSx0EdSW.mjs";
58
+ import { c as createEditable, i as getTranslations, l as createNoop, n as getDinewayEntry, r as getEditMeta, s as resolveDinewayPath, t as getDinewayCollection } from "./query-BYc3oruA.mjs";
59
59
  import { a as verifyPreviewSignature, i as signPreviewUrl, n as defaultPreviewSidecarClient, r as parsePreviewSignatureHeader, t as buildPreviewSignatureHeader } from "./sidecar-client-mJxwayYN.mjs";
60
60
  import { a as createFilePreviewMiddleware, c as dropSessionDatabaseTables, d as SessionDatabaseLimitError, f as isBlockedInPreview, i as getPreviewUrl, l as getAppliedSnapshotMeta, n as isPreviewRequest, o as renderPreviewToolbar, p as renderPreviewLoadingPage, r as buildPreviewUrl, s as applySnapshotToDatabase, t as getPreviewToken, u as FileSessionDatabaseFactory } from "./preview-D5rvDhRt.mjs";
61
61
  import { n as parseWxrString, t as parseWxr } from "./parser-DxfsARXL.mjs";
@@ -66,14 +66,14 @@ import { a as getAllSources, c as getUrlSources, d as importReusableBlocksAsSect
66
66
  import "./utils-wv-zvC-Y.mjs";
67
67
  import { n as parseContentId, r as verifyPreviewToken, t as generatePreviewToken } from "./tokens-CjSgb0AC.mjs";
68
68
  import { getContentSeo, getSeoMeta } from "./seo/index.mjs";
69
- import { i as getComments, n as getMenus, r as getCommentCount, t as getMenu } from "./menus-fqqzXyHd.mjs";
70
- import { n as getByline, r as getBylineBySlug } from "./bylines-BgriNlW7.mjs";
71
- import { n as getWidgetAreas, r as getWidgetComponents, t as getWidgetArea } from "./widgets-CdDvF4fV.mjs";
72
- import { t as validateSeed } from "./validate-CK4a1sIF.mjs";
73
- import { t as applySeed } from "./apply-BpRBCqUt.mjs";
74
- import "./load-BdbvtoDb.mjs";
69
+ import { i as getComments, n as getMenus, r as getCommentCount, t as getMenu } from "./menus-DU1eZqw_.mjs";
70
+ import { i as getEntriesByByline, n as getByline, r as getBylineBySlug } from "./bylines-DtxChhN_.mjs";
71
+ import { n as getWidgetAreas, r as getWidgetComponents, t as getWidgetArea } from "./widgets-DR8EHuRO.mjs";
72
+ import { t as validateSeed } from "./validate-7SYRbz2f.mjs";
73
+ import { t as applySeed } from "./apply-CX3no7XE.mjs";
74
+ import "./load-xE01Jm0V.mjs";
75
75
  import "./seed/index.mjs";
76
- import { a as getSuggestions, c as searchWithDb, i as getSearchStats, n as extractPlainText, o as search, r as extractSearchableFields, s as searchCollection } from "./search-BAiFLz81.mjs";
76
+ import { a as getSuggestions, c as searchWithDb, i as getSearchStats, n as extractPlainText, o as search, r as extractSearchableFields, s as searchCollection } from "./search-axGQ1KY3.mjs";
77
77
  import { ulid } from "ulidx";
78
78
 
79
- export { ContentRepository, DinewayDatabaseError, DinewayStorageError, DinewayValidationError, FIELD_TYPE_TO_COLUMN, FTSManager, FileSessionDatabaseFactory, HookPipeline, MediaRepository, NodeSandboxRunner, NoopSandboxRunner, PluginManager, PluginRouteError, RESERVED_COLLECTION_SLUGS, RESERVED_FIELD_SLUGS, SandboxNotAvailableError, SchemaError, SchemaRegistry, SessionDatabaseLimitError, adaptSandboxEntry, after, applySeed, applySnapshotToDatabase, buildPreviewSignatureHeader, buildPreviewUrl, clearSources, computeContentHash, createEditable, createFilePreviewMiddleware, createHookPipeline, createNodeSandboxRunner, createNoop, createNoopSandboxRunner, createPluginManager, decodeSlug, defaultPreviewSidecarClient, definePlugin, dropSessionDatabaseTables, extractPlainText, extractSearchableFields, generateManifest, generatePlaceholder, generatePreviewToken, getAllSources, getAppliedSnapshotMeta, getByline, getBylineBySlug, getCollectionInfo, getCommentCount, getComments, getContentSeo, getDinewayCollection, getDinewayEntry, getEditMeta, getEntriesByTerm, getEntryTerms, getFallbackChain, getFileSources, getI18nConfig, getMenu, getMenus, getMigrationStatus, getPluginSetting, getPluginSettings, getPreviewToken, getPreviewUrl, getRequestContext, getSearchStats, getSection, getSections, getSeoMeta, getSiteSetting, getSiteSettings, getSource, getSuggestions, getTaxonomyDef, getTaxonomyDefs, getTaxonomyTerms, getTerm, getTermsForEntries, getTranslations, getUrlSources, getWidgetArea, getWidgetAreas, getWidgetComponents, handleContentCompare, handleContentCountScheduled, handleContentCountTrashed, handleContentCreate, handleContentDelete, handleContentDiscardDraft, handleContentDuplicate, handleContentGet, handleContentGetIncludingTrashed, handleContentList, handleContentListTrashed, handleContentPermanentDelete, handleContentPublish, handleContentRestore, handleContentSchedule, handleContentTranslations, handleContentUnpublish, handleContentUnschedule, handleContentUpdate, handleMediaCreate, handleMediaDelete, handleMediaGet, handleMediaList, handleMediaUpdate, handleRevisionGet, handleRevisionList, handleRevisionRestore, hashString, image, importReusableBlocksAsSections, isBlockedInPreview, isI18nEnabled, isPreviewRequest, isSafeHref, isStandardPluginDefinition, normalizeMediaValue, parseContentId, parsePreviewSignatureHeader, parseWxr, parseWxrDate, parseWxrString, pluginManifestSchema, portableText, portableTextToProsemirror, probeUrl, prosemirrorToPortableText, reference, registerSource, renderPreviewLoadingPage, renderPreviewToolbar, resolveDinewayPath, runWithContext, sanitizeHref, search, searchCollection, searchWithDb, setSiteSettings, signPreviewUrl, ulid, validateSeed, verifyPreviewSignature, verifyPreviewToken, wordpressRestSource, wxrSource };
79
+ export { ContentRepository, DinewayDatabaseError, DinewayStorageError, DinewayValidationError, FIELD_TYPE_TO_COLUMN, FTSManager, FileSessionDatabaseFactory, HookPipeline, MediaRepository, NodeSandboxRunner, NoopSandboxRunner, PluginManager, PluginRouteError, RESERVED_COLLECTION_SLUGS, RESERVED_FIELD_SLUGS, RelationRepository, SandboxNotAvailableError, ScheduledNotDueError, SchemaError, SchemaRegistry, SessionDatabaseLimitError, adaptSandboxEntry, after, applySeed, applySnapshotToDatabase, buildPreviewSignatureHeader, buildPreviewUrl, clearSources, computeContentHash, createEditable, createFilePreviewMiddleware, createHookPipeline, createNodeSandboxRunner, createNoop, createNoopSandboxRunner, createPluginManager, decodeSlug, defaultPreviewSidecarClient, definePlugin, dropSessionDatabaseTables, extractPlainText, extractSearchableFields, generateManifest, generatePlaceholder, generatePreviewToken, getAllSources, getAppliedSnapshotMeta, getByline, getBylineBySlug, getCollectionInfo, getCommentCount, getComments, getContentSeo, getDinewayCollection, getDinewayEntry, getEditMeta, getEntriesByByline, getEntriesByTerm, getEntryTerms, getFallbackChain, getFileSources, getI18nConfig, getMenu, getMenus, getMigrationStatus, getPluginSetting, getPluginSettings, getPreviewToken, getPreviewUrl, getRequestContext, getSearchStats, getSection, getSections, getSeoMeta, getSiteSetting, getSiteSettings, getSource, getSuggestions, getTaxonomyDef, getTaxonomyDefs, getTaxonomyTerms, getTerm, getTermsForEntries, getTranslations, getUrlSources, getWidgetArea, getWidgetAreas, getWidgetComponents, handleContentAuthors, handleContentCompare, handleContentCountScheduled, handleContentCountTrashed, handleContentCreate, handleContentDelete, handleContentDiscardDraft, handleContentDuplicate, handleContentGet, handleContentGetIncludingTrashed, handleContentList, handleContentListTrashed, handleContentPermanentDelete, handleContentPublish, handleContentRestore, handleContentSchedule, handleContentTranslations, handleContentUnpublish, handleContentUnschedule, handleContentUpdate, handleMediaCreate, handleMediaDelete, handleMediaGet, handleMediaList, handleMediaUpdate, handleRevisionGet, handleRevisionList, handleRevisionRestore, hashString, image, importReusableBlocksAsSections, isBlockedInPreview, isI18nEnabled, isPreviewRequest, isSafeHref, isStandardPluginDefinition, normalizeMediaValue, parseContentId, parsePreviewSignatureHeader, parseWxr, parseWxrDate, parseWxrString, pluginManifestSchema, portableText, portableTextToProsemirror, probeUrl, prosemirrorToPortableText, reference, registerSource, renderPreviewLoadingPage, renderPreviewToolbar, resolveDinewayPath, runWithContext, sanitizeHref, search, searchCollection, searchWithDb, setSiteSettings, signPreviewUrl, ulid, validateSeed, verifyPreviewSignature, verifyPreviewToken, wordpressRestSource, wxrSource };
@@ -1,4 +1,4 @@
1
- import { A as PageMetadataContribution, D as PageFragmentContribution, N as PageMetadataLinkRel, P as PagePlacement, q as PublicPageContext, t as BreadcrumbItem } from "./types-UGmU5sWx.mjs";
1
+ import { A as PageMetadataContribution, D as PageFragmentContribution, N as PageMetadataLinkRel, P as PagePlacement, q as PublicPageContext, t as BreadcrumbItem } from "./types-DSPGWjxO.mjs";
2
2
  import { n as SeoSettings } from "./types-nP9vGUFq.mjs";
3
3
 
4
4
  //#region src/page/context.d.ts
@@ -1,4 +1,4 @@
1
- import { a as __exportAll } from "./runner-DTfG5v0G.mjs";
1
+ import { a as __exportAll } from "./runner-B-tbV751.mjs";
2
2
 
3
3
  //#region src/seed/load.ts
4
4
  var load_exports = /* @__PURE__ */ __exportAll({
@@ -1,11 +1,55 @@
1
- import { a as __exportAll } from "./runner-DTfG5v0G.mjs";
1
+ import { a as __exportAll } from "./runner-B-tbV751.mjs";
2
2
  import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
3
3
  import { o as isPostgres, r as currentIsoTimestampValue } from "./dialect-helpers-fk43GbDb.mjs";
4
- import { n as decodeCursor, r as encodeCursor } from "./types-Ck7-WoUD.mjs";
4
+ import { i as encodeCursor, r as decodeCursor } from "./types-DfuD0Afl.mjs";
5
5
  import { getRequestContext } from "./request-context.mjs";
6
6
  import { kyselyLogOption } from "./database/instrumentation.mjs";
7
7
  import { Kysely, sql } from "kysely";
8
8
 
9
+ //#region src/live-collection-meta.ts
10
+ const META_STORE_KEY = Symbol.for("dineway:live-collection-meta-store");
11
+ const metaStore = globalThis[META_STORE_KEY] ?? (() => {
12
+ const store = {
13
+ byContext: /* @__PURE__ */ new WeakMap(),
14
+ fallback: /* @__PURE__ */ new Map()
15
+ };
16
+ globalThis[META_STORE_KEY] = store;
17
+ return store;
18
+ })();
19
+ function getMetaMap() {
20
+ const ctx = getRequestContext();
21
+ if (!ctx) return metaStore.fallback;
22
+ let map = metaStore.byContext.get(ctx);
23
+ if (!map) {
24
+ map = /* @__PURE__ */ new Map();
25
+ metaStore.byContext.set(ctx, map);
26
+ }
27
+ return map;
28
+ }
29
+ function setLiveCollectionMeta(filter, meta) {
30
+ if (!filter?.type) return;
31
+ getMetaMap().set(liveCollectionMetaKey(filter), meta);
32
+ }
33
+ function takeLiveCollectionMeta(filter) {
34
+ if (!filter?.type) return void 0;
35
+ const map = getMetaMap();
36
+ const key = liveCollectionMetaKey(filter);
37
+ const meta = map.get(key);
38
+ map.delete(key);
39
+ return meta;
40
+ }
41
+ function liveCollectionMetaKey(filter) {
42
+ return JSON.stringify(stableValue(filter));
43
+ }
44
+ function stableValue(value) {
45
+ if (Array.isArray(value)) return value.map(stableValue);
46
+ if (!value || typeof value !== "object") return value;
47
+ const ordered = {};
48
+ for (const [key, entryValue] of Object.entries(value).toSorted(([first], [second]) => first.localeCompare(second))) ordered[key] = stableValue(entryValue);
49
+ return ordered;
50
+ }
51
+
52
+ //#endregion
9
53
  //#region src/utils/db-errors.ts
10
54
  /**
11
55
  * Shared detection helpers for database-layer error messages.
@@ -42,6 +86,7 @@ var loader_exports = /* @__PURE__ */ __exportAll({
42
86
  getDb: () => getDb
43
87
  });
44
88
  const FIELD_NAME_PATTERN = /^[a-zA-Z_][a-zA-Z0-9_]*$/;
89
+ const LIKE_WILDCARD_RE = /[\\%_]/g;
45
90
  /**
46
91
  * SEO columns joined from `_dineway_seo` on the single-entry path.
47
92
  * The leading underscore in aliases prevents collisions with user field slugs.
@@ -323,6 +368,25 @@ function buildFieldConditions(fields, tablePrefix) {
323
368
  }
324
369
  return conditions;
325
370
  }
371
+ function buildSearchCondition(query, searchColumns, tablePrefix) {
372
+ const term = query?.trim();
373
+ if (!term || !searchColumns || searchColumns.length === 0) return null;
374
+ const pattern = `%${term.replace(LIKE_WILDCARD_RE, (character) => `\\${character}`)}%`;
375
+ const conditions = [];
376
+ for (const column of searchColumns) {
377
+ if (!FIELD_NAME_PATTERN.test(column)) {
378
+ console.warn(`[dineway] search filter: invalid field name "${column}" ignored`);
379
+ continue;
380
+ }
381
+ const ref = tablePrefix ? sql.ref(`${tablePrefix}.${column}`) : sql.ref(column);
382
+ conditions.push(sql`lower(cast(${ref} as text)) LIKE lower(${pattern}) ESCAPE ${"\\"}`);
383
+ }
384
+ if (conditions.length === 0) return null;
385
+ return sql`(${sql.join(conditions, sql` OR `)})`;
386
+ }
387
+ function setCollectionMeta(filter, meta) {
388
+ setLiveCollectionMeta(filter, meta);
389
+ }
326
390
  let dbInstance = null;
327
391
  /**
328
392
  * Get the database instance. Used by query wrapper functions and middleware.
@@ -382,18 +446,28 @@ function dinewayLoader() {
382
446
  const limit = filter?.limit;
383
447
  const cursor = filter?.cursor;
384
448
  const where = filter?.where;
449
+ const q = filter?.q;
450
+ const searchColumns = filter?.searchColumns;
385
451
  const orderBy = filter?.orderBy;
386
452
  const locale = filter?.locale;
387
453
  const fetchLimit = limit ? limit + 1 : void 0;
388
454
  const cursorCondition = cursor ? buildCursorCondition(cursor, orderBy) : null;
389
- const cursorConditionPrefixed = cursor ? buildCursorCondition(cursor, orderBy, tableName) : null;
390
455
  let result;
391
456
  let taxonomyFilter = null;
457
+ let bylineFilter = null;
392
458
  const fieldFilters = {};
393
459
  if (where && Object.keys(where).length > 0) {
394
460
  const taxNames = await getTaxonomyNames(db);
395
461
  for (const [key, value] of Object.entries(where)) {
396
462
  if (value == null) continue;
463
+ if (key === "byline") {
464
+ if (isWhereRange(value)) {
465
+ console.warn(`[dineway] where filter: range operators are not supported on "byline", ignored`);
466
+ continue;
467
+ }
468
+ bylineFilter = { ids: Array.isArray(value) ? value : [value] };
469
+ continue;
470
+ }
397
471
  if (taxNames.has(key)) {
398
472
  if (isWhereRange(value)) {
399
473
  console.warn(`[dineway] where filter: range operators are not supported on taxonomy "${key}", ignored`);
@@ -412,48 +486,67 @@ function dinewayLoader() {
412
486
  fieldFilters[key] = value;
413
487
  }
414
488
  }
415
- if (taxonomyFilter) {
416
- const orderByClause = buildOrderByClause(orderBy, tableName);
417
- const statusCondition = buildStatusCondition(db, status, tableName);
418
- const localeCondition = locale ? sql`AND ${sql.ref(tableName)}.locale = ${locale}` : sql``;
419
- const cursorCond = cursorConditionPrefixed ? sql`AND ${cursorConditionPrefixed}` : sql``;
420
- const fieldConditions = buildFieldConditions(fieldFilters, tableName);
421
- const fieldConditionsSql = fieldConditions.length > 0 ? sql`${sql.join(fieldConditions, sql` AND `)}` : null;
422
- result = await sql`
423
- SELECT DISTINCT ${sql.ref(tableName)}.* FROM ${sql.ref(tableName)}
424
- INNER JOIN content_taxonomies ct
425
- ON ct.collection = ${type}
489
+ if (taxonomyFilter && taxonomyFilter.slugs.length === 0 || bylineFilter && bylineFilter.ids.length === 0) {
490
+ setCollectionMeta(filter, { total: 0 });
491
+ return {
492
+ entries: [],
493
+ total: 0,
494
+ cacheHint: { tags: [type] }
495
+ };
496
+ }
497
+ const orderByClause = buildOrderByClause(orderBy);
498
+ const statusCondition = buildStatusCondition(db, status);
499
+ const localeFilter = locale ? sql`AND locale = ${locale}` : sql``;
500
+ const cursorCond = cursorCondition ? sql`AND ${cursorCondition}` : sql``;
501
+ const fieldConditions = buildFieldConditions(fieldFilters);
502
+ const fieldConditionsSql = fieldConditions.length > 0 ? sql`${sql.join(fieldConditions, sql` AND `)}` : null;
503
+ const searchCondition = buildSearchCondition(q, searchColumns);
504
+ const searchConditionSql = searchCondition ? sql`AND ${searchCondition}` : sql``;
505
+ const taxonomyCondition = taxonomyFilter ? sql`AND EXISTS (
506
+ SELECT 1 FROM content_taxonomies ct
507
+ INNER JOIN taxonomies t ON t.id = ct.taxonomy_id
508
+ WHERE ct.collection = ${type}
426
509
  AND ct.entry_id = ${sql.ref(tableName)}.id
427
- INNER JOIN taxonomies t
428
- ON t.id = ct.taxonomy_id
429
- WHERE ${sql.ref(tableName)}.deleted_at IS NULL
430
- AND ${statusCondition}
431
- ${localeCondition}
432
- ${cursorCond}
433
510
  AND t.name = ${taxonomyFilter.name}
434
511
  AND t.slug IN (${sql.join(taxonomyFilter.slugs.map((slug) => sql`${slug}`))})
435
- ${fieldConditionsSql ? sql`AND ${fieldConditionsSql}` : sql``}
436
- ${orderByClause}
437
- ${fetchLimit ? sql`LIMIT ${fetchLimit}` : sql``}
438
- `.execute(db);
439
- } else {
440
- const orderByClause = buildOrderByClause(orderBy);
441
- const statusCondition = buildStatusCondition(db, status);
442
- const localeFilter = locale ? sql`AND locale = ${locale}` : sql``;
443
- const cursorCond = cursorCondition ? sql`AND ${cursorCondition}` : sql``;
444
- const fieldConditions = buildFieldConditions(fieldFilters);
445
- const fieldConditionsSql = fieldConditions.length > 0 ? sql`${sql.join(fieldConditions, sql` AND `)}` : null;
446
- result = await sql`
512
+ )` : sql``;
513
+ const bylineCondition = bylineFilter ? sql`AND EXISTS (
514
+ SELECT 1 FROM _dineway_content_bylines cb
515
+ WHERE cb.collection_slug = ${type}
516
+ AND cb.content_id = ${sql.ref(tableName)}.id
517
+ AND (
518
+ cb.byline_id IN (${sql.join(bylineFilter.ids.map((id) => sql`${id}`))})
519
+ OR EXISTS (
520
+ SELECT 1 FROM _dineway_bylines b
521
+ WHERE b.translation_group = cb.byline_id
522
+ AND b.id IN (${sql.join(bylineFilter.ids.map((id) => sql`${id}`))})
523
+ )
524
+ )
525
+ )` : sql``;
526
+ const [entriesResult, totalResult] = await Promise.all([sql`
447
527
  SELECT * FROM ${sql.ref(tableName)}
448
528
  WHERE deleted_at IS NULL
449
529
  AND ${statusCondition}
450
530
  ${localeFilter}
451
531
  ${cursorCond}
532
+ ${taxonomyCondition}
533
+ ${bylineCondition}
452
534
  ${fieldConditionsSql ? sql`AND ${fieldConditionsSql}` : sql``}
535
+ ${searchConditionSql}
453
536
  ${orderByClause}
454
537
  ${fetchLimit ? sql`LIMIT ${fetchLimit}` : sql``}
455
- `.execute(db);
456
- }
538
+ `.execute(db), sql`
539
+ SELECT COUNT(*) AS total FROM ${sql.ref(tableName)}
540
+ WHERE deleted_at IS NULL
541
+ AND ${statusCondition}
542
+ ${localeFilter}
543
+ ${taxonomyCondition}
544
+ ${bylineCondition}
545
+ ${fieldConditionsSql ? sql`AND ${fieldConditionsSql}` : sql``}
546
+ ${searchConditionSql}
547
+ `.execute(db)]);
548
+ result = entriesResult;
549
+ const total = Number(totalResult.rows[0]?.total || 0);
457
550
  const hasMore = limit ? result.rows.length > limit : false;
458
551
  const rows = hasMore ? result.rows.slice(0, limit) : result.rows;
459
552
  const i18nConfig = virtualConfig?.i18n;
@@ -484,9 +577,14 @@ function dinewayLoader() {
484
577
  const d = new Date(rowStr(row, "updated_at"));
485
578
  if (!collectionLastModified || d > collectionLastModified) collectionLastModified = d;
486
579
  }
580
+ setCollectionMeta(filter, {
581
+ nextCursor,
582
+ total
583
+ });
487
584
  return {
488
585
  entries,
489
586
  nextCursor,
587
+ total,
490
588
  cacheHint: {
491
589
  tags: [type],
492
590
  lastModified: collectionLastModified
@@ -496,7 +594,11 @@ function dinewayLoader() {
496
594
  const message = error instanceof Error ? error.message : String(error);
497
595
  if (isMissingTableError(error) || isMissingColumnError(error)) {
498
596
  if (isMissingColumnError(error)) console.warn(`[dineway] where filter: ${message}`);
499
- return { entries: [] };
597
+ setCollectionMeta(filter, { total: 0 });
598
+ return {
599
+ entries: [],
600
+ total: 0
601
+ };
500
602
  }
501
603
  return { error: /* @__PURE__ */ new Error(`Failed to load collection: ${message}`) };
502
604
  }
@@ -592,4 +694,4 @@ function dinewayLoader() {
592
694
  }
593
695
 
594
696
  //#endregion
595
- export { isMissingTableError as a, loader_exports as i, dinewayLoader as n, getDb as r, CURSOR_RAW_VALUES as t };
697
+ export { isMissingTableError as a, loader_exports as i, dinewayLoader as n, takeLiveCollectionMeta as o, getDb as r, CURSOR_RAW_VALUES as t };
@@ -1,4 +1,4 @@
1
- import { t as normalizeMediaValue } from "../normalize-O-hi3a27.mjs";
1
+ import { n as normalizeMediaValue } from "../normalize-DUnoXAa9.mjs";
2
2
  import { t as generatePlaceholder } from "../placeholder-BDo81Is5.mjs";
3
3
 
4
4
  //#region src/media/types.ts
@@ -1,14 +1,14 @@
1
- import "../runtime-Cd-kjPfN.mjs";
2
- import { t as Database } from "../types-DYKtk8f1.mjs";
3
- import "../types-UGmU5sWx.mjs";
1
+ import "../runtime-DEWQpZ-4.mjs";
2
+ import { t as Database } from "../types-eu5UDgHN.mjs";
3
+ import "../types-DSPGWjxO.mjs";
4
4
  import "../types-Dryvv7LH.mjs";
5
5
  import { h as MediaProviderItem, o as CreateMediaProviderFn } from "../placeholder-CXfoCtCd.mjs";
6
- import "../runner-Cnz4dl0f.mjs";
7
- import "../index-DJVaYiUV.mjs";
6
+ import "../runner-D4FL9usy.mjs";
7
+ import "../index-CwRuZ-u8.mjs";
8
8
  import { d as Storage } from "../types-DZpT-PnG.mjs";
9
- import "../byline-fields-Cuo-JI3B.mjs";
9
+ import "../byline-fields-BX7rWKNU.mjs";
10
10
  import "../types-GaCtZ1k9.mjs";
11
- import "../validate-BJuG-ISL.mjs";
11
+ import "../validate-BMs11tan.mjs";
12
12
  import "../index.mjs";
13
13
  import { Kysely } from "kysely";
14
14
 
@@ -1,6 +1,6 @@
1
1
  import "../base64-C1Q9yr0B.mjs";
2
- import "../types-Ck7-WoUD.mjs";
3
- import { t as MediaRepository } from "../media-DhBwiCYR.mjs";
2
+ import "../types-DfuD0Afl.mjs";
3
+ import { t as MediaRepository } from "../media-DUAjMfvR.mjs";
4
4
 
5
5
  //#region src/media/local-runtime.ts
6
6
  /**
@@ -1,4 +1,4 @@
1
- import { n as decodeCursor, r as encodeCursor } from "./types-Ck7-WoUD.mjs";
1
+ import { i as encodeCursor, r as decodeCursor } from "./types-DfuD0Afl.mjs";
2
2
  import { sql } from "kysely";
3
3
  import { ulid } from "ulidx";
4
4
 
@@ -1,7 +1,7 @@
1
1
  import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
2
- import { t as CommentRepository } from "./comment-ogMaF1gk.mjs";
3
- import { r as requestCached } from "./request-cache-w5cj5itT.mjs";
4
- import { r as getDb } from "./loader-Y0QvC_QO.mjs";
2
+ import { t as CommentRepository } from "./comment-CXDOQ93N.mjs";
3
+ import { r as requestCached } from "./request-cache-CYMbwZc6.mjs";
4
+ import { r as getDb } from "./loader-tg63WSY2.mjs";
5
5
  import { i as resolveLocaleChain, r as resolveLocale } from "./resolve-DTuDyYKs.mjs";
6
6
  import { n as sanitizeHref } from "./url-w7Mp5qAD.mjs";
7
7
  import { sql } from "kysely";
@@ -137,11 +137,7 @@ async function buildMenuTree(items, db, locale) {
137
137
  if (item.reference_collection) collectionSlugs.add(item.reference_collection);
138
138
  if (item.type === "page" || item.type === "post") collectionSlugs.add(item.reference_collection || `${item.type}s`);
139
139
  }
140
- const urlPatterns = /* @__PURE__ */ new Map();
141
- if (collectionSlugs.size > 0) {
142
- const rows = await db.selectFrom("_dineway_collections").select(["slug", "url_pattern"]).where("slug", "in", [...collectionSlugs]).execute();
143
- for (const row of rows) urlPatterns.set(row.slug, row.url_pattern);
144
- }
140
+ const urlPatterns = collectionSlugs.size > 0 ? await getCollectionUrlPatterns(db, collectionSlugs) : /* @__PURE__ */ new Map();
145
141
  const validItems = (await Promise.all(items.map((item) => resolveMenuItem(item, db, urlPatterns, locale)))).filter((item) => item !== null);
146
142
  const itemMap = /* @__PURE__ */ new Map();
147
143
  const rootItems = [];
@@ -160,6 +156,15 @@ async function buildMenuTree(items, db, locale) {
160
156
  }
161
157
  return rootItems;
162
158
  }
159
+ function getCollectionUrlPatterns(db, collectionSlugs) {
160
+ const slugs = [...collectionSlugs].toSorted();
161
+ return requestCached(`menu-collection-patterns:${slugs.join(",")}`, async () => {
162
+ const rows = await db.selectFrom("_dineway_collections").select(["slug", "url_pattern"]).where("slug", "in", slugs).execute();
163
+ const urlPatterns = /* @__PURE__ */ new Map();
164
+ for (const row of rows) urlPatterns.set(row.slug, row.url_pattern);
165
+ return urlPatterns;
166
+ });
167
+ }
163
168
  async function resolveMenuItem(item, db, urlPatterns, locale) {
164
169
  let url;
165
170
  try {