dineway 0.1.11 → 0.1.13

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 (334) hide show
  1. package/dist/{allowed-origins-DG86sH8U.mjs → allowed-origins-C1AKK9AT.mjs} +1 -1
  2. package/dist/api/route-utils.d.mts +10 -9
  3. package/dist/api/route-utils.mjs +7 -7
  4. package/dist/api/schemas/index.d.mts +1 -1
  5. package/dist/api/schemas/index.mjs +2 -2
  6. package/dist/{api-Cmy8Rjk5.mjs → api-Lyjc8wqZ.mjs} +4 -4
  7. package/dist/{api-tokens-Bu3ez1MO.mjs → api-tokens-D7UjLbdt.mjs} +1 -1
  8. package/dist/{apply-Co5imxxT.mjs → apply-Bm5QgdrE.mjs} +5 -5
  9. package/dist/astro/index.d.mts +11 -10
  10. package/dist/astro/index.mjs +3 -3
  11. package/dist/astro/middleware/auth.d.mts +10 -9
  12. package/dist/astro/middleware/auth.mjs +5 -5
  13. package/dist/astro/middleware/request-context.mjs +2 -2
  14. package/dist/astro/middleware/setup.mjs +1 -1
  15. package/dist/astro/middleware.mjs +42 -40
  16. package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +4 -4
  17. package/dist/astro/routes/api/admin/allowed-domains/index.mjs +4 -4
  18. package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +4 -4
  19. package/dist/astro/routes/api/admin/api-tokens/index.mjs +6 -6
  20. package/dist/astro/routes/api/admin/briefing.mjs +7 -7
  21. package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +6 -6
  22. package/dist/astro/routes/api/admin/bylines/index.mjs +6 -6
  23. package/dist/astro/routes/api/admin/comments/_id_/status.mjs +8 -8
  24. package/dist/astro/routes/api/admin/comments/_id_.mjs +3 -3
  25. package/dist/astro/routes/api/admin/comments/bulk.mjs +6 -6
  26. package/dist/astro/routes/api/admin/comments/counts.mjs +3 -3
  27. package/dist/astro/routes/api/admin/comments/index.mjs +6 -6
  28. package/dist/astro/routes/api/admin/context/_id_/history.mjs +11 -10
  29. package/dist/astro/routes/api/admin/context/_id_/index.mjs +11 -10
  30. package/dist/astro/routes/api/admin/context/_id_/review.mjs +15 -14
  31. package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +15 -14
  32. package/dist/astro/routes/api/admin/context/diff.mjs +14 -13
  33. package/dist/astro/routes/api/admin/context/index.mjs +15 -14
  34. package/dist/astro/routes/api/admin/context/stale.mjs +14 -13
  35. package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +11 -10
  36. package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +14 -13
  37. package/dist/astro/routes/api/admin/hitl-requests/index.mjs +14 -13
  38. package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +12 -11
  39. package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +2 -2
  40. package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +6 -6
  41. package/dist/astro/routes/api/admin/oauth-clients/index.mjs +6 -6
  42. package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +24 -23
  43. package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +24 -23
  44. package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +18 -17
  45. package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +23 -22
  46. package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +23 -22
  47. package/dist/astro/routes/api/admin/plugins/index.mjs +18 -17
  48. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +2 -2
  49. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +18 -17
  50. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +23 -22
  51. package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +18 -17
  52. package/dist/astro/routes/api/admin/plugins/updates.mjs +18 -17
  53. package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +2 -2
  54. package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +13 -12
  55. package/dist/astro/routes/api/admin/review-requests/index.mjs +5 -5
  56. package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +18 -17
  57. package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +2 -2
  58. package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +18 -17
  59. package/dist/astro/routes/api/admin/users/_id_/disable.mjs +1 -1
  60. package/dist/astro/routes/api/admin/users/_id_/enable.mjs +1 -1
  61. package/dist/astro/routes/api/admin/users/_id_/index.mjs +4 -4
  62. package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
  63. package/dist/astro/routes/api/admin/users/index.mjs +4 -4
  64. package/dist/astro/routes/api/auth/dev-bypass.mjs +3 -3
  65. package/dist/astro/routes/api/auth/invite/accept.mjs +1 -1
  66. package/dist/astro/routes/api/auth/invite/complete.mjs +8 -8
  67. package/dist/astro/routes/api/auth/invite/index.mjs +5 -5
  68. package/dist/astro/routes/api/auth/invite/register-options.mjs +7 -7
  69. package/dist/astro/routes/api/auth/logout.mjs +2 -2
  70. package/dist/astro/routes/api/auth/magic-link/send.mjs +7 -7
  71. package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
  72. package/dist/astro/routes/api/auth/me.mjs +4 -4
  73. package/dist/astro/routes/api/auth/mode.mjs +1 -1
  74. package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +2 -2
  75. package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
  76. package/dist/astro/routes/api/auth/passkey/_id_.mjs +4 -4
  77. package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
  78. package/dist/astro/routes/api/auth/passkey/options.mjs +9 -9
  79. package/dist/astro/routes/api/auth/passkey/register/options.mjs +7 -7
  80. package/dist/astro/routes/api/auth/passkey/register/verify.mjs +8 -8
  81. package/dist/astro/routes/api/auth/passkey/verify.mjs +8 -8
  82. package/dist/astro/routes/api/auth/signup/complete.mjs +8 -8
  83. package/dist/astro/routes/api/auth/signup/request.mjs +7 -7
  84. package/dist/astro/routes/api/auth/signup/verify.mjs +1 -1
  85. package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +9 -9
  86. package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +2 -2
  87. package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +3 -3
  88. package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +3 -3
  89. package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +3 -3
  90. package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +8 -8
  91. package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +13 -12
  92. package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +3 -3
  93. package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +2 -2
  94. package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +6 -6
  95. package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +6 -6
  96. package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +2 -2
  97. package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +3 -3
  98. package/dist/astro/routes/api/content/_collection_/_id_.mjs +6 -6
  99. package/dist/astro/routes/api/content/_collection_/index.mjs +6 -6
  100. package/dist/astro/routes/api/content/_collection_/trash.mjs +5 -5
  101. package/dist/astro/routes/api/dashboard.mjs +2 -2
  102. package/dist/astro/routes/api/dev/emails.mjs +2 -2
  103. package/dist/astro/routes/api/health.mjs +1 -1
  104. package/dist/astro/routes/api/import/probe.d.mts +3 -3
  105. package/dist/astro/routes/api/import/probe.mjs +8 -8
  106. package/dist/astro/routes/api/import/wordpress/analyze.mjs +3 -3
  107. package/dist/astro/routes/api/import/wordpress/execute.mjs +12 -11
  108. package/dist/astro/routes/api/import/wordpress/media.mjs +6 -6
  109. package/dist/astro/routes/api/import/wordpress/prepare.mjs +15 -14
  110. package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +14 -13
  111. package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
  112. package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +8 -8
  113. package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +1 -1
  114. package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +16 -15
  115. package/dist/astro/routes/api/manifest.mjs +4 -4
  116. package/dist/astro/routes/api/mcp.mjs +22 -21
  117. package/dist/astro/routes/api/media/_id_/confirm.mjs +5 -5
  118. package/dist/astro/routes/api/media/_id_.mjs +5 -5
  119. package/dist/astro/routes/api/media/file/_...key_.mjs +1 -1
  120. package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +2 -2
  121. package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +2 -2
  122. package/dist/astro/routes/api/media/providers/index.mjs +2 -2
  123. package/dist/astro/routes/api/media/upload-url.mjs +5 -5
  124. package/dist/astro/routes/api/media.mjs +5 -5
  125. package/dist/astro/routes/api/menus/_name_/items.mjs +15 -14
  126. package/dist/astro/routes/api/menus/_name_/reorder.mjs +15 -14
  127. package/dist/astro/routes/api/menus/_name_.mjs +15 -14
  128. package/dist/astro/routes/api/menus/index.mjs +15 -14
  129. package/dist/astro/routes/api/oauth/authorize.mjs +7 -7
  130. package/dist/astro/routes/api/oauth/device/authorize.mjs +6 -6
  131. package/dist/astro/routes/api/oauth/device/code.mjs +9 -9
  132. package/dist/astro/routes/api/oauth/device/token.mjs +8 -8
  133. package/dist/astro/routes/api/oauth/register.mjs +4 -4
  134. package/dist/astro/routes/api/oauth/token/refresh.mjs +6 -6
  135. package/dist/astro/routes/api/oauth/token/revoke.mjs +6 -6
  136. package/dist/astro/routes/api/oauth/token.mjs +6 -6
  137. package/dist/astro/routes/api/openapi.json.mjs +3 -3
  138. package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +3 -3
  139. package/dist/astro/routes/api/redirects/404s/index.mjs +6 -6
  140. package/dist/astro/routes/api/redirects/404s/summary.mjs +6 -6
  141. package/dist/astro/routes/api/redirects/_id_.mjs +15 -14
  142. package/dist/astro/routes/api/redirects/index.mjs +15 -14
  143. package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +2 -2
  144. package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +2 -2
  145. package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +19 -18
  146. package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +19 -18
  147. package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +19 -18
  148. package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +19 -18
  149. package/dist/astro/routes/api/schema/collections/index.mjs +19 -18
  150. package/dist/astro/routes/api/schema/index.mjs +2 -2
  151. package/dist/astro/routes/api/schema/orphans/_slug_.mjs +18 -17
  152. package/dist/astro/routes/api/schema/orphans/index.mjs +18 -17
  153. package/dist/astro/routes/api/search/enable.mjs +6 -6
  154. package/dist/astro/routes/api/search/index.mjs +5 -5
  155. package/dist/astro/routes/api/search/rebuild.mjs +6 -6
  156. package/dist/astro/routes/api/search/stats.mjs +3 -3
  157. package/dist/astro/routes/api/search/suggest.mjs +5 -5
  158. package/dist/astro/routes/api/sections/_slug_.mjs +15 -14
  159. package/dist/astro/routes/api/sections/index.mjs +15 -14
  160. package/dist/astro/routes/api/settings/email.mjs +3 -3
  161. package/dist/astro/routes/api/settings.mjs +15 -14
  162. package/dist/astro/routes/api/setup/admin-verify.mjs +10 -10
  163. package/dist/astro/routes/api/setup/admin.mjs +8 -8
  164. package/dist/astro/routes/api/setup/dev-bypass.mjs +11 -11
  165. package/dist/astro/routes/api/setup/dev-reset.mjs +1 -1
  166. package/dist/astro/routes/api/setup/index.mjs +11 -11
  167. package/dist/astro/routes/api/setup/status.mjs +3 -3
  168. package/dist/astro/routes/api/snapshot.mjs +5 -5
  169. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +16 -15
  170. package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +16 -15
  171. package/dist/astro/routes/api/taxonomies/index.mjs +16 -15
  172. package/dist/astro/routes/api/themes/preview.mjs +4 -4
  173. package/dist/astro/routes/api/typegen.mjs +1 -1
  174. package/dist/astro/routes/api/well-known/auth.mjs +2 -2
  175. package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +3 -3
  176. package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +3 -3
  177. package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +14 -13
  178. package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +15 -14
  179. package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +15 -14
  180. package/dist/astro/routes/api/widget-areas/_name_.mjs +13 -12
  181. package/dist/astro/routes/api/widget-areas/index.mjs +15 -14
  182. package/dist/astro/routes/api/widget-components.mjs +2 -2
  183. package/dist/astro/routes/robots.txt.mjs +2 -2
  184. package/dist/astro/routes/sitemap-_collection_.xml.mjs +2 -2
  185. package/dist/astro/routes/sitemap.xml.mjs +3 -3
  186. package/dist/astro/types.d.mts +13 -12
  187. package/dist/auth/providers/github.d.mts +1 -1
  188. package/dist/auth/providers/google.d.mts +1 -1
  189. package/dist/{auth-control-guard-DKUe_1oa.mjs → auth-control-guard-DOZ3UCsP.mjs} +1 -1
  190. package/dist/{authorize-BBj8C6Y8.mjs → authorize-BAdbMCwC.mjs} +1 -1
  191. package/dist/{briefing-BrXCuMEE.mjs → briefing-MVYe_Uyf.mjs} +1 -1
  192. package/dist/{briefing-ClWw4mc9.mjs → briefing-rty4O-wa.mjs} +1 -1
  193. package/dist/{bylines-BcOPh6Ej.mjs → bylines-C4LIBOOO.mjs} +1 -1
  194. package/dist/{bylines-HfUKum_j.d.mts → bylines-DCvz5gtm.d.mts} +13 -13
  195. package/dist/cli/index.mjs +7 -7
  196. package/dist/client/external-auth-headers.d.mts +1 -1
  197. package/dist/client/index.d.mts +1 -1
  198. package/dist/client/index.mjs +1 -1
  199. package/dist/{context-nxMyOe3p.mjs → context-CNIkMzot.mjs} +2 -2
  200. package/dist/{context-bE5Kyvcj.mjs → context-DNfcm853.mjs} +2 -2
  201. package/dist/{context-route-helpers-D-6uCQ0S.mjs → context-route-helpers-MurhoxWF.mjs} +1 -1
  202. package/dist/db/index.d.mts +3 -3
  203. package/dist/db/libsql.d.mts +1 -1
  204. package/dist/db/postgres.d.mts +1 -1
  205. package/dist/db/sqlite.d.mts +1 -1
  206. package/dist/{device-flow-7AhWNwCK.mjs → device-flow-BGEH5jfn.mjs} +4 -4
  207. package/dist/{hitl-requests-Bx3Bkk9l.mjs → hitl-requests-ChT32Ilo.mjs} +2 -2
  208. package/dist/{hitl-route-helpers-DMmJRS7B.mjs → hitl-route-helpers-CSit54Ru.mjs} +4 -4
  209. package/dist/{import-DVZcYlDp.mjs → import-BHRLhXAn.mjs} +2 -2
  210. package/dist/{import-DD3f2jkc.mjs → import-CNcKWTbp.mjs} +1 -1
  211. package/dist/{index-CkljPf5F.d.mts → index-CYfhYgXd.d.mts} +2 -2
  212. package/dist/index-EUAWaIxW.d.mts +835 -0
  213. package/dist/index.d.mts +16 -14
  214. package/dist/index.mjs +35 -32
  215. package/dist/jsonld-D2gUY4kA.d.mts +141 -0
  216. package/dist/media/index.d.mts +2 -1
  217. package/dist/media/local-runtime.d.mts +12 -11
  218. package/dist/menus-DYW_UHjv.mjs +256 -0
  219. package/dist/{oauth-authorization-C1qiw4hd.mjs → oauth-authorization-DxGjiWKL.mjs} +4 -4
  220. package/dist/{oauth-clients-CvWatf5p.mjs → oauth-clients-DxO_NO7k.mjs} +2 -2
  221. package/dist/page/index.d.mts +2 -139
  222. package/dist/page/index.mjs +1 -427
  223. package/dist/{parse-BeQXIt1U.mjs → parse-C9106ehs.mjs} +1 -1
  224. package/dist/placeholder-Bh1dfUOd.d.mts +40 -0
  225. package/dist/plugins/adapt-sandbox-entry.d.mts +10 -9
  226. package/dist/plugins/adapt-sandbox-entry.mjs +1 -1
  227. package/dist/{menus-CrzHokKj.mjs → plugins-D7-ILNib.mjs} +4 -257
  228. package/dist/{preview-C_4DyVox.mjs → preview-DvYRU-Oy.mjs} +2 -2
  229. package/dist/provider-loader-BiQ6lNmf.d.mts +20 -0
  230. package/dist/provider-loader-C21b9OpH.mjs +36 -0
  231. package/dist/{query-RiobVwB5.mjs → query-B9BO5goQ.mjs} +3 -3
  232. package/dist/{schema-BNpI53of.mjs → query-CsbOywSY.mjs} +1 -6
  233. package/dist/{rate-limit-CbJoj_fT.mjs → rate-limit-DmVTHI5v.mjs} +2 -2
  234. package/dist/{redirects-CqaxraTO.mjs → redirects-lrlmYXVE.mjs} +2 -49
  235. package/dist/{request-meta-Bd0mQfiS.mjs → request-meta-DixlNKKa.mjs} +1 -1
  236. package/dist/{runner-9eIQXuc2.d.mts → runner-BU6Lo1ZS.d.mts} +1 -1
  237. package/dist/{runtime-C4-7y7xK.d.mts → runtime-QuuFSlc6.d.mts} +104 -932
  238. package/dist/runtime.d.mts +11 -28
  239. package/dist/runtime.mjs +1 -35
  240. package/dist/schema-BECjUhP8.mjs +8 -0
  241. package/dist/seed/index.d.mts +2 -2
  242. package/dist/seed/index.mjs +6 -6
  243. package/dist/seo/index.d.mts +1 -1
  244. package/dist/seo-contributions-B1fWCnqY.mjs +429 -0
  245. package/dist/{service-CSfcQguB.mjs → service-CyOsm0R6.mjs} +1 -1
  246. package/dist/{settings-4XnpVMOS.mjs → settings-DGtLLSaz.mjs} +15 -1
  247. package/dist/{settings-Bw93cLfe.mjs → settings-Dzgswvg4.mjs} +1 -1
  248. package/dist/{site-context-Bpu_Paur.mjs → site-context-WBxoD99D.mjs} +6 -6
  249. package/dist/storage/local.d.mts +1 -1
  250. package/dist/storage/local.mjs +1 -1
  251. package/dist/storage/s3.d.mts +1 -1
  252. package/dist/storage/s3.mjs +1 -1
  253. package/dist/{taxonomies-BvBgfzn3.mjs → taxonomies-D2aZGuns.mjs} +2 -2
  254. package/dist/{taxonomies-CpqGcIJD.mjs → taxonomies-z6Lz91BC.mjs} +1 -1
  255. package/dist/{placeholder-CHkLckzK.d.mts → types-OPs5Q_sX.d.mts} +1 -38
  256. package/dist/{types-DgfUZqcd.d.mts → types-Q616b2Hn.d.mts} +1 -1
  257. package/dist/ui/client-runtime.d.mts +12 -0
  258. package/dist/ui/client-runtime.mjs +32 -0
  259. package/dist/ui/server-runtime.d.mts +33 -0
  260. package/dist/ui/server-runtime.mjs +80 -0
  261. package/dist/url-DNjT2abR.mjs +49 -0
  262. package/dist/{validate-JCZihRIa.d.mts → validate-BwmQEbu8.d.mts} +3 -3
  263. package/dist/version-C5JkNvmb.mjs +6 -0
  264. package/dist/{widgets-B7Q_7bxN.mjs → widgets-B7DRpZvy.mjs} +1 -1
  265. package/package.json +19 -5
  266. package/src/components/Button.astro +1 -1
  267. package/src/components/CommentForm.astro +1 -1
  268. package/src/components/Comments.astro +1 -3
  269. package/src/components/DinewayBodyEnd.astro +5 -3
  270. package/src/components/DinewayBodyStart.astro +5 -3
  271. package/src/components/DinewayHead.astro +9 -7
  272. package/src/components/DinewayImage.astro +6 -4
  273. package/src/components/DinewayMedia.astro +7 -4
  274. package/src/components/Embed.astro +1 -2
  275. package/src/components/File.astro +1 -1
  276. package/src/components/Gallery.astro +1 -1
  277. package/src/components/HtmlBlock.astro +1 -1
  278. package/src/components/Image.astro +5 -3
  279. package/src/components/InlinePortableTextEditor.tsx +1 -2
  280. package/src/components/PortableText.astro +1 -1
  281. package/src/components/WidgetArea.astro +1 -1
  282. package/src/components/WidgetRenderer.astro +1 -3
  283. package/src/components/marks/Link.astro +1 -1
  284. package/src/components/widgets/Archives.astro +1 -1
  285. package/src/components/widgets/Categories.astro +1 -1
  286. package/src/components/widgets/RecentPosts.astro +1 -1
  287. package/src/components/widgets/Tags.astro +1 -1
  288. package/dist/version-DH53KCQd.mjs +0 -6
  289. /package/dist/{activity-events-BsMaXdJa.mjs → activity-events-B4wp7CrU.mjs} +0 -0
  290. /package/dist/{adapters-BLDldpJg.d.mts → adapters-DuLQZhRY.d.mts} +0 -0
  291. /package/dist/{api-tokens-DzloJxuh.mjs → api-tokens-CPjC3zf8.mjs} +0 -0
  292. /package/dist/{challenge-store-DHMgBGOq.mjs → challenge-store-DDTbisbf.mjs} +0 -0
  293. /package/dist/{comments-Gy3zLBaP.mjs → comments--BsZ9pqA.mjs} +0 -0
  294. /package/dist/{components-DND2rd3D.mjs → components-BPknylYg.mjs} +0 -0
  295. /package/dist/{cron-DGzVTtJp.mjs → cron-CKxvBrRT.mjs} +0 -0
  296. /package/dist/{db-errors-DKUg_NgF.mjs → db-errors-DyZkswzF.mjs} +0 -0
  297. /package/dist/{default-C3PZN-bz.mjs → default-D4ngTpW8.mjs} +0 -0
  298. /package/dist/{email-console-CgLVZbcn.mjs → email-console-CuefUXfX.mjs} +0 -0
  299. /package/dist/{error-DEGjx2Xw.mjs → error-BMUPwxgx.mjs} +0 -0
  300. /package/dist/{escape-mNZr4t2A.mjs → escape-BRVaw1Ai.mjs} +0 -0
  301. /package/dist/{experimental-workflows-DldxJlqV.mjs → experimental-workflows-C9X7yblQ.mjs} +0 -0
  302. /package/dist/{load-D-9NhLmF.mjs → load-B2XtDw__.mjs} +0 -0
  303. /package/dist/{manifest-schema-DYoCQ5np.mjs → manifest-schema-CgFJAp0H.mjs} +0 -0
  304. /package/dist/{menus-BacxVCCo.mjs → menus-DS3_5nWY.mjs} +0 -0
  305. /package/dist/{mode-C80mAZQv.mjs → mode-DUhxwUhv.mjs} +0 -0
  306. /package/dist/{oauth-state-store-hSdzxsEe.mjs → oauth-state-store-C5UFhzwD.mjs} +0 -0
  307. /package/dist/{oauth-user-lookup-B4OcmsLV.mjs → oauth-user-lookup-Bi0ek9eM.mjs} +0 -0
  308. /package/dist/{passkey-config-Daqs5fjq.mjs → passkey-config-BRSZx4pW.mjs} +0 -0
  309. /package/dist/{public-url-BB_umF5G.mjs → public-url-Cun8N3NU.mjs} +0 -0
  310. /package/dist/{redirect-ClSmMOtC.mjs → redirect-COZy-3iY.mjs} +0 -0
  311. /package/dist/{redirects-B69T59hK.mjs → redirects-Cgi_cZfN.mjs} +0 -0
  312. /package/dist/{search-DM6CVti3.mjs → search-DqTHQqtV.mjs} +0 -0
  313. /package/dist/{secrets-dI8zzTV7.mjs → secrets-CkoJ9zN0.mjs} +0 -0
  314. /package/dist/{sections-DZFyAQXd.mjs → sections-B61OxnfB.mjs} +0 -0
  315. /package/dist/{seo-BBgTCOYU.mjs → seo-C007Luwn.mjs} +0 -0
  316. /package/dist/{setup-complete-DidsDQ1e.mjs → setup-complete-ChilE-da.mjs} +0 -0
  317. /package/dist/{setup-nonce-pml1PMKo.mjs → setup-nonce-BpmLXAuu.mjs} +0 -0
  318. /package/dist/{sidecar-client-vzwV98K4.mjs → sidecar-client-B1C6Cf80.mjs} +0 -0
  319. /package/dist/{site-url-CYIcO0Tj.mjs → site-url-BP7k7OCe.mjs} +0 -0
  320. /package/dist/{ssrf-CmM76lLV.mjs → ssrf-DDwRxF6B.mjs} +0 -0
  321. /package/dist/{tokens-DLTo4dO2.mjs → tokens-BOJw-D9F.mjs} +0 -0
  322. /package/dist/{transport-6RefuBdV.d.mts → transport-BXe1AM79.d.mts} +0 -0
  323. /package/dist/{transport-C9e_h-BF.mjs → transport-D3i4yWRE.mjs} +0 -0
  324. /package/dist/{trusted-proxy-Bi0Cuk5n.mjs → trusted-proxy-BbaZfkT9.mjs} +0 -0
  325. /package/dist/{types-C982qI5I.d.mts → types-0Vr68fc2.d.mts} +0 -0
  326. /package/dist/{types-B9qVtiHb.d.mts → types-B7kpsMJ3.d.mts} +0 -0
  327. /package/dist/{types-D4XVOt01.d.mts → types-BFmjniC2.d.mts} +0 -0
  328. /package/dist/{types-IPACEM14.d.mts → types-C0mmVRJN.d.mts} +0 -0
  329. /package/dist/{types-Djdp0cZO.d.mts → types-DJlpx5Ay.d.mts} +0 -0
  330. /package/dist/{types-Du8jreyC.d.mts → types-DZPw8Rru.d.mts} +0 -0
  331. /package/dist/{types-B9gKVOHk.mjs → types-fAInWQDO.mjs} +0 -0
  332. /package/dist/{utils-D2in-zwy.mjs → utils-C0ONdBul.mjs} +0 -0
  333. /package/dist/{validate-BJgA6TW_.mjs → validate-C7TzfamJ.mjs} +0 -0
  334. /package/dist/{wordpress-slugs-BevajWrC.mjs → wordpress-slugs-CnporCYH.mjs} +0 -0
@@ -0,0 +1,256 @@
1
+ import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
2
+ import { t as CommentRepository } from "./comment-DFO-gWDH.mjs";
3
+ import { r as getDb } from "./loader-PZnPxFLc.mjs";
4
+ import { n as requestCached } from "./request-cache-DHMRr2Lf.mjs";
5
+ import { n as sanitizeHref } from "./url-DNjT2abR.mjs";
6
+ import { sql } from "kysely";
7
+
8
+ //#region src/comments/query.ts
9
+ /**
10
+ * Get approved comments for a content item.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * import { getComments } from "dineway";
15
+ *
16
+ * const { items, total } = await getComments({
17
+ * collection: "posts",
18
+ * contentId: post.id,
19
+ * threaded: true,
20
+ * });
21
+ * ```
22
+ */
23
+ async function getComments(options) {
24
+ return getCommentsWithDb(await getDb(), options);
25
+ }
26
+ /**
27
+ * Get approved comments with an explicit db handle.
28
+ *
29
+ * @internal Use `getComments()` in templates. This variant is for routes
30
+ * that already have a database handle.
31
+ */
32
+ async function getCommentsWithDb(db, options) {
33
+ const repo = new CommentRepository(db);
34
+ const total = await repo.countByContent(options.collection, options.contentId, "approved");
35
+ const result = await repo.findByContent(options.collection, options.contentId, {
36
+ status: "approved",
37
+ limit: 500
38
+ });
39
+ if (options.threaded) return {
40
+ items: CommentRepository.assembleThreads(result.items).map((c) => CommentRepository.toPublicComment(c)),
41
+ total
42
+ };
43
+ return {
44
+ items: result.items.map((c) => CommentRepository.toPublicComment(c)),
45
+ total
46
+ };
47
+ }
48
+ /**
49
+ * Get the count of approved comments for a content item.
50
+ *
51
+ * @example
52
+ * ```ts
53
+ * import { getCommentCount } from "dineway";
54
+ *
55
+ * const count = await getCommentCount("posts", post.id);
56
+ * ```
57
+ */
58
+ async function getCommentCount(collection, contentId) {
59
+ return getCommentCountWithDb(await getDb(), collection, contentId);
60
+ }
61
+ /**
62
+ * Get comment count with an explicit db handle.
63
+ *
64
+ * @internal Use `getCommentCount()` in templates.
65
+ */
66
+ async function getCommentCountWithDb(db, collection, contentId) {
67
+ return new CommentRepository(db).countByContent(collection, contentId, "approved");
68
+ }
69
+
70
+ //#endregion
71
+ //#region src/menus/index.ts
72
+ /**
73
+ * Get menu by name with resolved URLs
74
+ *
75
+ * @example
76
+ * ```ts
77
+ * import { getMenu } from "dineway";
78
+ *
79
+ * const menu = await getMenu("primary");
80
+ * if (menu) {
81
+ * console.log(menu.items); // Array of MenuItem with resolved URLs
82
+ * }
83
+ * ```
84
+ */
85
+ function getMenu(name) {
86
+ return requestCached(`menu:${name}`, async () => {
87
+ return getMenuWithDb(name, await getDb());
88
+ });
89
+ }
90
+ /**
91
+ * Get menu by name with resolved URLs (with explicit db)
92
+ *
93
+ * @internal Use `getMenu()` in templates. This variant is for admin routes
94
+ * that already have a database handle.
95
+ */
96
+ async function getMenuWithDb(name, db) {
97
+ const menuRow = await db.selectFrom("_dineway_menus").selectAll().where("name", "=", name).executeTakeFirst();
98
+ if (!menuRow) return null;
99
+ const items = await buildMenuTree(await db.selectFrom("_dineway_menu_items").selectAll().$castTo().where("menu_id", "=", menuRow.id).orderBy("sort_order", "asc").execute(), db);
100
+ return {
101
+ id: menuRow.id,
102
+ name: menuRow.name,
103
+ label: menuRow.label,
104
+ items
105
+ };
106
+ }
107
+ /**
108
+ * Get all menus (without items - for admin list)
109
+ *
110
+ * @example
111
+ * ```ts
112
+ * import { getMenus } from "dineway";
113
+ *
114
+ * const menus = await getMenus();
115
+ * console.log(menus); // [{ id, name, label }]
116
+ * ```
117
+ */
118
+ async function getMenus() {
119
+ return getMenusWithDb(await getDb());
120
+ }
121
+ /**
122
+ * Get all menus (with explicit db)
123
+ *
124
+ * @internal Use `getMenus()` in templates. This variant is for admin routes
125
+ * that already have a database handle.
126
+ */
127
+ async function getMenusWithDb(db) {
128
+ return await db.selectFrom("_dineway_menus").select([
129
+ "id",
130
+ "name",
131
+ "label"
132
+ ]).orderBy("name", "asc").execute();
133
+ }
134
+ /**
135
+ * Build hierarchical menu tree from flat array of items
136
+ */
137
+ async function buildMenuTree(items, db) {
138
+ const collectionSlugs = /* @__PURE__ */ new Set();
139
+ for (const item of items) {
140
+ if (item.reference_collection) collectionSlugs.add(item.reference_collection);
141
+ if (item.type === "page" || item.type === "post") collectionSlugs.add(item.reference_collection || `${item.type}s`);
142
+ }
143
+ const urlPatterns = /* @__PURE__ */ new Map();
144
+ if (collectionSlugs.size > 0) {
145
+ const rows = await db.selectFrom("_dineway_collections").select(["slug", "url_pattern"]).where("slug", "in", [...collectionSlugs]).execute();
146
+ for (const row of rows) urlPatterns.set(row.slug, row.url_pattern);
147
+ }
148
+ const validItems = (await Promise.all(items.map((item) => resolveMenuItem(item, db, urlPatterns)))).filter((item) => item !== null);
149
+ const itemMap = /* @__PURE__ */ new Map();
150
+ const rootItems = [];
151
+ for (const item of validItems) itemMap.set(item.id, {
152
+ ...item,
153
+ children: []
154
+ });
155
+ for (const item of items) {
156
+ const menuItem = itemMap.get(item.id);
157
+ if (!menuItem) continue;
158
+ if (item.parent_id) {
159
+ const parent = itemMap.get(item.parent_id);
160
+ if (parent) parent.children.push(menuItem);
161
+ else rootItems.push(menuItem);
162
+ } else rootItems.push(menuItem);
163
+ }
164
+ return rootItems;
165
+ }
166
+ /**
167
+ * Resolve a single menu item's URL
168
+ *
169
+ * Returns null if the referenced content no longer exists (item should be skipped)
170
+ */
171
+ async function resolveMenuItem(item, db, urlPatterns) {
172
+ let url;
173
+ try {
174
+ switch (item.type) {
175
+ case "custom":
176
+ url = item.custom_url || "#";
177
+ break;
178
+ case "page":
179
+ case "post":
180
+ url = await resolveContentUrl(item.reference_collection || `${item.type}s`, item.reference_id, db, urlPatterns);
181
+ if (url === null) return null;
182
+ break;
183
+ case "taxonomy":
184
+ url = await resolveTaxonomyUrl(item.reference_id, db);
185
+ if (url === null) return null;
186
+ break;
187
+ case "collection":
188
+ url = `/${item.reference_collection}/`;
189
+ break;
190
+ default: if (item.reference_collection && item.reference_id) {
191
+ url = await resolveContentUrl(item.reference_collection, item.reference_id, db, urlPatterns);
192
+ if (url === null) return null;
193
+ } else url = "#";
194
+ }
195
+ } catch (error) {
196
+ console.error(`Failed to resolve menu item ${item.id}:`, error);
197
+ return null;
198
+ }
199
+ return {
200
+ id: item.id,
201
+ label: item.label,
202
+ url: sanitizeHref(url),
203
+ target: item.target || void 0,
204
+ titleAttr: item.title_attr || void 0,
205
+ cssClasses: item.css_classes || void 0,
206
+ children: []
207
+ };
208
+ }
209
+ const SLUG_PLACEHOLDER = /\{slug\}/g;
210
+ const ID_PLACEHOLDER = /\{id\}/g;
211
+ /**
212
+ * Interpolate a URL pattern with entry data
213
+ *
214
+ * Replaces `{slug}` and `{id}` placeholders.
215
+ */
216
+ function interpolateUrlPattern(pattern, slug, id) {
217
+ return pattern.replace(SLUG_PLACEHOLDER, slug).replace(ID_PLACEHOLDER, id);
218
+ }
219
+ /**
220
+ * Resolve URL for a content entry (page/post)
221
+ *
222
+ * Uses the collection's url_pattern if set, otherwise falls back to /{collection}/{slug}.
223
+ * Returns null if content not found (item should be skipped).
224
+ */
225
+ async function resolveContentUrl(collection, entryId, db, urlPatterns) {
226
+ if (!entryId) return null;
227
+ try {
228
+ validateIdentifier(collection, "menu item collection");
229
+ const row = (await sql`
230
+ SELECT slug FROM ${sql.ref(`ec_${collection}`)} WHERE id = ${entryId} LIMIT 1
231
+ `.execute(db)).rows[0];
232
+ if (row) {
233
+ const pattern = urlPatterns.get(collection);
234
+ if (pattern) return interpolateUrlPattern(pattern, row.slug, entryId);
235
+ return `/${collection}/${row.slug}`;
236
+ }
237
+ return null;
238
+ } catch (error) {
239
+ console.error(`Failed to resolve content URL for ${collection}/${entryId}:`, error);
240
+ return null;
241
+ }
242
+ }
243
+ /**
244
+ * Resolve URL for a taxonomy term
245
+ *
246
+ * Returns null if taxonomy not found (item should be skipped)
247
+ */
248
+ async function resolveTaxonomyUrl(taxonomyId, db) {
249
+ if (!taxonomyId) return null;
250
+ const taxonomy = await db.selectFrom("taxonomies").select(["name", "slug"]).where("id", "=", taxonomyId).executeTakeFirst();
251
+ if (!taxonomy) return null;
252
+ return `/${taxonomy.name}/${taxonomy.slug}`;
253
+ }
254
+
255
+ //#endregion
256
+ export { getComments as i, getMenus as n, getCommentCount as r, getMenu as t };
@@ -1,8 +1,8 @@
1
1
  import { t as withTransaction } from "./transaction-x2tJQ-A1.mjs";
2
- import { a as filterExperimentalSiteContextWorkflowScopes, i as experimentalSiteContextWorkflowsEnabled, o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-DldxJlqV.mjs";
3
- import { a as hashApiToken, n as TOKEN_PREFIXES, r as generatePrefixedToken, t as ALL_VALID_SCOPES } from "./api-tokens-DzloJxuh.mjs";
4
- import { c as validateRedirectUri, o as lookupOAuthClient, s as validateClientRedirectUri } from "./oauth-clients-CvWatf5p.mjs";
5
- import { t as lookupUserRoleAndStatus } from "./oauth-user-lookup-B4OcmsLV.mjs";
2
+ import { a as filterExperimentalSiteContextWorkflowScopes, i as experimentalSiteContextWorkflowsEnabled, o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-C9X7yblQ.mjs";
3
+ import { a as hashApiToken, n as TOKEN_PREFIXES, r as generatePrefixedToken, t as ALL_VALID_SCOPES } from "./api-tokens-CPjC3zf8.mjs";
4
+ import { c as validateRedirectUri, o as lookupOAuthClient, s as validateClientRedirectUri } from "./oauth-clients-DxO_NO7k.mjs";
5
+ import { t as lookupUserRoleAndStatus } from "./oauth-user-lookup-Bi0ek9eM.mjs";
6
6
  import { clampScopes, computeS256Challenge, secureCompare } from "@dineway-ai/auth";
7
7
  import { generateCodeVerifier } from "arctic";
8
8
 
@@ -1,5 +1,5 @@
1
- import { o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-DldxJlqV.mjs";
2
- import { o as validateScopes } from "./api-tokens-DzloJxuh.mjs";
1
+ import { o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-C9X7yblQ.mjs";
2
+ import { o as validateScopes } from "./api-tokens-CPjC3zf8.mjs";
3
3
 
4
4
  //#region src/api/oauth/redirect-uri.ts
5
5
  /**
@@ -1,143 +1,6 @@
1
- import { A as PageMetadataContribution, D as PageFragmentContribution, N as PageMetadataLinkRel, P as PagePlacement, q as PublicPageContext, t as BreadcrumbItem } from "../types-DgfUZqcd.mjs";
2
- import { n as SeoSettings } from "../types-IPACEM14.mjs";
1
+ import { A as PageMetadataContribution, D as PageFragmentContribution, q as PublicPageContext } from "../types-Q616b2Hn.mjs";
2
+ import { a as generateSiteSeoContributions, c as ResolvedPageMetadata, d as resolvePageMetadata, f as safeJsonLdSerialize, i as generateBaseSeoContributions, l as escapeHtmlAttr, m as createPublicPageContext, n as buildWebSiteJsonLd, o as renderFragments, p as CreatePublicPageContextInput, r as cleanJsonLd, s as resolveFragments, t as buildBlogPostingJsonLd, u as renderPageMetadata } from "../jsonld-D2gUY4kA.mjs";
3
3
 
4
- //#region src/page/context.d.ts
5
- /** Fields shared by both input forms */
6
- interface PageContextFields {
7
- kind: "content" | "custom";
8
- pageType?: string;
9
- title?: string | null;
10
- pageTitle?: string | null;
11
- description?: string | null;
12
- canonical?: string | null;
13
- image?: string | null;
14
- content?: {
15
- collection: string;
16
- id: string;
17
- slug?: string | null;
18
- };
19
- /** SEO overrides for OG/Twitter meta generation */
20
- seo?: {
21
- ogTitle?: string | null;
22
- ogDescription?: string | null;
23
- ogImage?: string | null;
24
- robots?: string | null;
25
- };
26
- /** Article metadata for Open Graph article: tags */
27
- articleMeta?: {
28
- publishedTime?: string | null;
29
- modifiedTime?: string | null;
30
- author?: string | null;
31
- };
32
- /** Site name for structured data and og:site_name */
33
- siteName?: string;
34
- /**
35
- * Breadcrumb trail for this page, root first. Pass an empty array
36
- * to explicitly opt out of breadcrumbs (e.g. homepage), or omit the
37
- * field to let consumers fall back to their own derivation.
38
- */
39
- breadcrumbs?: BreadcrumbItem[];
40
- /** Public-facing site URL (origin) for structured data */
41
- siteUrl?: string;
42
- }
43
- /** Input with Astro global -- used in .astro files */
44
- interface AstroInput extends PageContextFields {
45
- Astro: {
46
- url: URL;
47
- currentLocale?: string;
48
- };
49
- }
50
- /** Input with explicit URL -- used outside .astro files */
51
- interface UrlInput extends PageContextFields {
52
- url: URL | string;
53
- locale?: string;
54
- }
55
- type CreatePublicPageContextInput = AstroInput | UrlInput;
56
- /**
57
- * Build a PublicPageContext from template input.
58
- */
59
- declare function createPublicPageContext(input: CreatePublicPageContextInput): PublicPageContext;
60
- //#endregion
61
- //#region src/page/metadata.d.ts
62
- interface ResolvedPageMetadata {
63
- meta: Array<{
64
- name: string;
65
- content: string;
66
- }>;
67
- properties: Array<{
68
- property: string;
69
- content: string;
70
- }>;
71
- links: Array<{
72
- rel: PageMetadataLinkRel;
73
- href: string;
74
- hreflang?: string;
75
- }>;
76
- jsonld: Array<{
77
- id?: string;
78
- json: string;
79
- }>;
80
- }
81
- /** Escape a string for safe use in an HTML attribute value */
82
- declare function escapeHtmlAttr(value: string): string;
83
- /**
84
- * Safely serialize a value for embedding in a <script type="application/ld+json"> tag.
85
- *
86
- * Plain JSON.stringify is not sufficient because:
87
- * - "</script>" in a nested string breaks out of the script tag
88
- * - "<!--" can open an HTML comment
89
- * - U+2028/U+2029 are line terminators in some JS engines
90
- */
91
- declare function safeJsonLdSerialize(value: unknown): string;
92
- /**
93
- * Resolve a flat list of contributions into deduplicated metadata.
94
- * First contribution wins for any given dedupe key.
95
- */
96
- declare function resolvePageMetadata(contributions: PageMetadataContribution[]): ResolvedPageMetadata;
97
- /** Render resolved metadata to an HTML string for embedding in <head> */
98
- declare function renderPageMetadata(metadata: ResolvedPageMetadata): string;
99
- //#endregion
100
- //#region src/page/fragments.d.ts
101
- /**
102
- * Filter contributions to a specific placement and deduplicate.
103
- * - Contributions with the same `key + placement` are deduped (first wins).
104
- * - External scripts with the same `src + placement` are deduped.
105
- */
106
- declare function resolveFragments(contributions: PageFragmentContribution[], placement: PagePlacement): PageFragmentContribution[];
107
- /** Render a list of fragment contributions to an HTML string */
108
- declare function renderFragments(contributions: PageFragmentContribution[], placement: PagePlacement): string;
109
- //#endregion
110
- //#region src/page/seo-contributions.d.ts
111
- /**
112
- * Generate base metadata contributions from a page context's SEO data.
113
- * Returns an empty array if no SEO-relevant data is present.
114
- */
115
- declare function generateBaseSeoContributions(page: PublicPageContext): PageMetadataContribution[];
116
- /**
117
- * Generate site-level SEO metadata contributions from SiteSettings.seo.
118
- *
119
- * These tags apply to every page, so they're sourced from global site settings
120
- * rather than page-specific context.
121
- */
122
- declare function generateSiteSeoContributions(seoSettings: SeoSettings | undefined): PageMetadataContribution[];
123
- //#endregion
124
- //#region src/page/jsonld.d.ts
125
- /**
126
- * Remove null/undefined values from a JSON-LD object recursively.
127
- * JSON-LD validators prefer absent keys over null values.
128
- */
129
- declare function cleanJsonLd(obj: Record<string, unknown>): Record<string, unknown>;
130
- /**
131
- * Build a BlogPosting JSON-LD graph from page context.
132
- * Used for article-type content pages.
133
- */
134
- declare function buildBlogPostingJsonLd(page: PublicPageContext): Record<string, unknown> | null;
135
- /**
136
- * Build a WebSite JSON-LD graph from page context.
137
- * Used for non-article pages (homepage, listing pages, etc.)
138
- */
139
- declare function buildWebSiteJsonLd(page: PublicPageContext): Record<string, unknown> | null;
140
- //#endregion
141
4
  //#region src/page/index.d.ts
142
5
  /**
143
6
  * Shape of the Dineway runtime methods used by the render components.