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.
- package/README.md +57 -54
- package/dist/{activity-events-CNk3clTT.mjs → activity-events-C9u37D5z.mjs} +1 -1
- package/dist/api/route-utils.d.mts +8 -22
- package/dist/api/route-utils.mjs +8 -8
- package/dist/api/schemas/index.d.mts +2 -2
- package/dist/api/schemas/index.mjs +3 -3
- package/dist/{api-ePsOhL3q.mjs → api-Eiy8_zVZ.mjs} +63 -16
- package/dist/{apply-BpRBCqUt.mjs → apply-CX3no7XE.mjs} +54 -48
- package/dist/astro/index.d.mts +8 -8
- package/dist/astro/index.mjs +67 -25
- package/dist/astro/middleware/auth.d.mts +7 -7
- package/dist/astro/middleware/auth.mjs +1 -1
- package/dist/astro/middleware/redirect.mjs +4 -4
- package/dist/astro/middleware/request-context.mjs +2 -2
- package/dist/astro/middleware/seed.d.mts +1 -1
- package/dist/astro/middleware/seed.mjs +2 -2
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.d.mts +2 -1
- package/dist/astro/middleware.mjs +362 -143
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +2 -2
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +2 -2
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +1 -1
- package/dist/astro/routes/api/admin/briefing.mjs +14 -14
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +2 -2
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +4 -4
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +4 -4
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +4 -4
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +9 -9
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +9 -9
- package/dist/astro/routes/api/admin/bylines/index.mjs +9 -9
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +8 -8
- package/dist/astro/routes/api/admin/comments/_id_.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/bulk.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/counts.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/index.mjs +5 -5
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +20 -20
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +20 -20
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +23 -23
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +23 -23
- package/dist/astro/routes/api/admin/context/diff.mjs +22 -22
- package/dist/astro/routes/api/admin/context/index.mjs +23 -23
- package/dist/astro/routes/api/admin/context/stale.mjs +22 -22
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +21 -21
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +23 -23
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +23 -23
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +20 -20
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +1 -1
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +2 -2
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +40 -40
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +40 -40
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +35 -35
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +40 -40
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +40 -40
- package/dist/astro/routes/api/admin/plugins/index.mjs +35 -35
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +35 -35
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +40 -40
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +35 -35
- package/dist/astro/routes/api/admin/plugins/updates.mjs +35 -35
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +3 -3
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +22 -22
- package/dist/astro/routes/api/admin/review-requests/index.mjs +5 -5
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +35 -35
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +35 -35
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +1 -1
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +3 -3
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
- package/dist/astro/routes/api/admin/users/index.mjs +2 -2
- package/dist/astro/routes/api/auth/dev-bypass.mjs +1 -1
- package/dist/astro/routes/api/auth/invite/complete.mjs +5 -5
- package/dist/astro/routes/api/auth/invite/index.mjs +4 -4
- package/dist/astro/routes/api/auth/invite/register-options.mjs +4 -4
- package/dist/astro/routes/api/auth/magic-link/send.mjs +4 -4
- package/dist/astro/routes/api/auth/me.mjs +5 -5
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/options.mjs +4 -4
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +4 -4
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +5 -5
- package/dist/astro/routes/api/auth/passkey/verify.mjs +5 -5
- package/dist/astro/routes/api/auth/setup-token/index.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/complete.mjs +5 -5
- package/dist/astro/routes/api/auth/signup/request.mjs +4 -4
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +9 -9
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +6 -5
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +8 -7
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +11 -9
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +6 -5
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +8 -7
- package/dist/astro/routes/api/content/_collection_/authors.d.mts +7 -0
- package/dist/astro/routes/api/content/_collection_/authors.mjs +16 -0
- package/dist/astro/routes/api/content/_collection_/index.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/trash.mjs +2 -2
- package/dist/astro/routes/api/dashboard.mjs +6 -6
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.d.mts +2 -2
- package/dist/astro/routes/api/import/probe.mjs +2 -2
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +3 -3
- package/dist/astro/routes/api/import/wordpress/execute.mjs +23 -23
- package/dist/astro/routes/api/import/wordpress/media.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +26 -26
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +24 -24
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +24 -24
- package/dist/astro/routes/api/manifest.mjs +3 -3
- package/dist/astro/routes/api/mcp.mjs +46 -46
- package/dist/astro/routes/api/media/_id_/confirm.mjs +4 -4
- package/dist/astro/routes/api/media/_id_.mjs +2 -2
- package/dist/astro/routes/api/media/upload-url.mjs +4 -4
- package/dist/astro/routes/api/media.mjs +4 -4
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +23 -23
- package/dist/astro/routes/api/menus/_name_/items.mjs +23 -23
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +23 -23
- package/dist/astro/routes/api/menus/_name_/translations.mjs +23 -23
- package/dist/astro/routes/api/menus/_name_.mjs +23 -23
- package/dist/astro/routes/api/menus/index.mjs +23 -23
- package/dist/astro/routes/api/oauth/authorize.mjs +3 -3
- package/dist/astro/routes/api/oauth/device/authorize.mjs +2 -2
- package/dist/astro/routes/api/oauth/device/code.mjs +2 -2
- package/dist/astro/routes/api/oauth/device/token.mjs +2 -2
- package/dist/astro/routes/api/oauth/register.mjs +2 -2
- package/dist/astro/routes/api/oauth/token/refresh.mjs +2 -2
- package/dist/astro/routes/api/oauth/token/revoke.mjs +2 -2
- package/dist/astro/routes/api/oauth/token.mjs +3 -3
- package/dist/astro/routes/api/openapi.json.mjs +16 -2
- package/dist/astro/routes/api/redirects/404s/index.mjs +6 -6
- package/dist/astro/routes/api/redirects/404s/summary.mjs +6 -6
- package/dist/astro/routes/api/redirects/_id_.mjs +24 -24
- package/dist/astro/routes/api/redirects/index.mjs +24 -24
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +36 -36
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +36 -36
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +36 -36
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +36 -36
- package/dist/astro/routes/api/schema/collections/index.mjs +36 -36
- package/dist/astro/routes/api/schema/index.mjs +3 -3
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +35 -35
- package/dist/astro/routes/api/schema/orphans/index.mjs +35 -35
- package/dist/astro/routes/api/search/enable.mjs +6 -6
- package/dist/astro/routes/api/search/index.mjs +6 -6
- package/dist/astro/routes/api/search/rebuild.mjs +6 -6
- package/dist/astro/routes/api/search/stats.mjs +4 -4
- package/dist/astro/routes/api/search/suggest.mjs +6 -6
- package/dist/astro/routes/api/sections/_slug_.mjs +23 -23
- package/dist/astro/routes/api/sections/index.mjs +23 -23
- package/dist/astro/routes/api/settings/email.mjs +1 -1
- package/dist/astro/routes/api/settings.mjs +23 -23
- package/dist/astro/routes/api/setup/admin-verify.mjs +6 -6
- package/dist/astro/routes/api/setup/admin.mjs +4 -4
- package/dist/astro/routes/api/setup/dev-bypass.mjs +17 -17
- package/dist/astro/routes/api/setup/dev-reset.mjs +1 -1
- package/dist/astro/routes/api/setup/index.mjs +20 -20
- package/dist/astro/routes/api/setup/status.mjs +2 -2
- package/dist/astro/routes/api/snapshot.mjs +2 -2
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +25 -25
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +25 -25
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +25 -25
- package/dist/astro/routes/api/taxonomies/index.mjs +25 -25
- package/dist/astro/routes/api/themes/preview.mjs +2 -2
- package/dist/astro/routes/api/typegen.mjs +3 -3
- package/dist/astro/routes/api/well-known/auth.mjs +3 -3
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +1 -1
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +22 -22
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +23 -23
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +23 -23
- package/dist/astro/routes/api/widget-areas/_name_.mjs +21 -21
- package/dist/astro/routes/api/widget-areas/index.mjs +23 -23
- package/dist/astro/routes/robots.txt.mjs +45 -22
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +6 -6
- package/dist/astro/routes/sitemap.xml.mjs +6 -6
- package/dist/astro/session-driver.d.mts +1 -1
- package/dist/astro/session-driver.mjs +2 -2
- package/dist/astro/types.d.mts +15 -8
- package/dist/{audit-DuRbTm8L.mjs → audit-D1cbG7xH.mjs} +1 -1
- package/dist/{briefing-C4fJSVYW.mjs → briefing-CObXGOGz.mjs} +1 -1
- package/dist/{briefing-BFEWeJtR.mjs → briefing-gKWiGLt1.mjs} +6 -6
- package/dist/{byline-CXQcMsBu.mjs → byline-1ntDwv8c.mjs} +5 -5
- package/dist/{byline-fields-D7TJ_oHF.mjs → byline-fields-B-ZkoVft.mjs} +2 -2
- package/dist/{byline-fields-Cuo-JI3B.d.mts → byline-fields-BX7rWKNU.d.mts} +54 -30
- package/dist/{byline-fields-Dc7L6Yry.mjs → byline-fields-C9_iaPaM.mjs} +1 -1
- package/dist/{byline-registry-CL8BxPPp.mjs → byline-registry-CUSvkasJ.mjs} +2 -2
- package/dist/{bylines-BgriNlW7.mjs → bylines-DtxChhN_.mjs} +38 -4
- package/dist/{bylines-D2vqm1aZ.mjs → bylines-bC15ZqAv.mjs} +2 -2
- package/dist/{cache-GRK71jOU.mjs → cache-DbKyr60Q.mjs} +2 -2
- package/dist/{chunks-DgEw12Bc.mjs → chunks-C5zp2xir.mjs} +1 -1
- package/dist/cli/index.mjs +42 -31
- package/dist/client/external-auth-headers.d.mts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/{comment-ogMaF1gk.mjs → comment-CXDOQ93N.mjs} +1 -1
- package/dist/{comments-CTSOKrZq.mjs → comments-hK-rdzJ9.mjs} +1 -1
- package/dist/{content-BfyjOiMi.mjs → content-QaryevFO.mjs} +103 -40
- package/dist/{context-ZMHhwzkG.mjs → context-CoYb_fvK.mjs} +7 -7
- package/dist/{context-CdsYb1m8.mjs → context-DBL1ib4v.mjs} +2 -2
- package/dist/{context-route-helpers-YLWx2N1j.mjs → context-route-helpers-CYQVmbIm.mjs} +1 -1
- package/dist/{dashboard-D0gWuzNp.mjs → dashboard-DNlqsknJ.mjs} +4 -4
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.mjs +1 -1
- package/dist/{default-BHauvIdG.mjs → default-B6iaLvP7.mjs} +4 -2
- package/dist/{device-flow-B3_FEoMI.mjs → device-flow-DygsFPGL.mjs} +3 -3
- package/dist/{fts-manager-EHY2Kes9.mjs → fts-manager-CIZlScg5.mjs} +1 -1
- package/dist/{hitl-requests-B1Zqgut6.mjs → hitl-requests-CGQwOEiq.mjs} +2 -2
- package/dist/{hitl-route-helpers-CjpWUMuw.mjs → hitl-route-helpers-GSDLNPpN.mjs} +3 -3
- package/dist/{index-DJVaYiUV.d.mts → index-CwRuZ-u8.d.mts} +1 -1
- package/dist/index.d.mts +10 -10
- package/dist/index.mjs +51 -51
- package/dist/{jsonld-AcPnCEGD.d.mts → jsonld-DZ67souc.d.mts} +1 -1
- package/dist/{load-BdbvtoDb.mjs → load-xE01Jm0V.mjs} +1 -1
- package/dist/{loader-Y0QvC_QO.mjs → loader-tg63WSY2.mjs} +138 -36
- package/dist/media/index.mjs +1 -1
- package/dist/media/local-runtime.d.mts +7 -7
- package/dist/media/local-runtime.mjs +2 -2
- package/dist/{media-DhBwiCYR.mjs → media-DUAjMfvR.mjs} +1 -1
- package/dist/{menus-fqqzXyHd.mjs → menus-DU1eZqw_.mjs} +13 -8
- package/dist/{menus-BzGQpw9d.mjs → menus-WpFRMXjz.mjs} +2 -2
- package/dist/{normalize-O-hi3a27.mjs → normalize-DUnoXAa9.mjs} +1 -1
- package/dist/{oauth-authorization-DsF81vki.mjs → oauth-authorization-D-1p52Je.mjs} +3 -3
- package/dist/{oauth-clients-Du-V0fEm.mjs → oauth-clients-CzeMGyUU.mjs} +1 -1
- package/dist/page/index.d.mts +2 -2
- package/dist/plugin-utils.d.mts +7 -7
- package/dist/plugins/adapt-sandbox-entry.d.mts +7 -7
- package/dist/{plugins-BQ5Joz6v.mjs → plugins-C57YQi4l.mjs} +195 -5
- package/dist/public-url-B5HaoGzj.d.mts +18 -0
- package/dist/{query-CSx0EdSW.mjs → query-BYc3oruA.mjs} +29 -18
- package/dist/{query-BJuUydtD.mjs → query-DKEwzobh.mjs} +3 -3
- package/dist/{redirect-BqFMj67n.mjs → redirect-C2zXRj3c.mjs} +2 -2
- package/dist/{redirects-CJwHl_YG.mjs → redirects-YZo_znWG.mjs} +4 -4
- package/dist/{redirects-q_cToaHv.mjs → redirects-ocRJmQHP.mjs} +23 -3
- package/dist/{registry-Cq3QRBW2.mjs → registry-CTkbIDB9.mjs} +38 -6
- package/dist/{review-requests-GYqjl2jO.mjs → review-requests-C0un5kdV.mjs} +1 -1
- package/dist/{review-requests-tPw8_pAO.mjs → review-requests-gGMyYYhy.mjs} +1 -1
- package/dist/{runner-DTfG5v0G.mjs → runner-B-tbV751.mjs} +233 -193
- package/dist/{runner-Cnz4dl0f.d.mts → runner-D4FL9usy.d.mts} +1 -1
- package/dist/{runtime-Cd-kjPfN.d.mts → runtime-DEWQpZ-4.d.mts} +154 -22
- package/dist/runtime.d.mts +8 -8
- package/dist/runtime.mjs +2 -2
- package/dist/schema-B6zyB-Xn.mjs +8 -0
- package/dist/{search-BAiFLz81.mjs → search-axGQ1KY3.mjs} +3 -3
- package/dist/{secrets-CPoFLJjm.mjs → secrets-062Izo8i.mjs} +1 -1
- package/dist/{sections-DsuIrFDC.mjs → sections-OLKgXL10.mjs} +2 -2
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +17 -17
- package/dist/seo/index.d.mts +1 -1
- package/dist/{seo-uMFBaR8G.mjs → seo-Cd45Po8L.mjs} +1 -1
- package/dist/{service-CifrxCru.mjs → service-Bwad8s5h.mjs} +1 -1
- package/dist/{settings-BYGdocdj.mjs → settings-lAHjaUit.mjs} +2 -2
- package/dist/{settings-DNRQuX3d.mjs → settings-yLjz_I4T.mjs} +4 -4
- package/dist/{setup-complete-4EiBS1E5.mjs → setup-complete--PradA4R.mjs} +1 -1
- package/dist/{site-activity-6x1JccoR.mjs → site-activity-D7Xyropw.mjs} +1 -1
- package/dist/{site-context-c1ZFa_OF.mjs → site-context-DaN9Z91j.mjs} +13 -13
- package/dist/{site-url-C-cu8Ff2.mjs → site-url-DpGZo9Z6.mjs} +1 -1
- package/dist/{taxonomies-faQVeMgj.mjs → taxonomies-CNOGeC-3.mjs} +9 -7
- package/dist/{taxonomies-CQFmkP5u.mjs → taxonomies-uXVEoQso.mjs} +3 -3
- package/dist/{taxonomy-BnH-6VsX.mjs → taxonomy-CBmkmMuU.mjs} +2 -2
- package/dist/{types-DEAQG87T.d.mts → types-CwawBUTa.d.mts} +1 -1
- package/dist/{types-B7_vSiPD.d.mts → types-DRIKLmJI.d.mts} +14 -2
- package/dist/{types-UGmU5sWx.d.mts → types-DSPGWjxO.d.mts} +1 -1
- package/dist/{types-Ck7-WoUD.mjs → types-DfuD0Afl.mjs} +9 -2
- package/dist/{types-DYKtk8f1.d.mts → types-eu5UDgHN.d.mts} +22 -0
- package/dist/ui/server-runtime.d.mts +58 -10
- package/dist/ui/server-runtime.mjs +97 -15
- package/dist/{user-CqZwN21P.mjs → user-DtNmjNYt.mjs} +15 -1
- package/dist/{validate-CK4a1sIF.mjs → validate-7SYRbz2f.mjs} +5 -2
- package/dist/{validate-BJuG-ISL.d.mts → validate-BMs11tan.d.mts} +10 -2
- package/dist/version-xlzMSXF2.mjs +6 -0
- package/dist/{widgets-CdDvF4fV.mjs → widgets-DR8EHuRO.mjs} +1 -1
- package/dist/{wordpress-slugs-B6Gw9q3Q.mjs → wordpress-slugs-Dvhxh4cl.mjs} +1 -1
- package/dist/{zod-generator-D1ROBNuC.mjs → zod-generator-BS9-umbk.mjs} +3 -2
- package/package.json +5 -5
- package/src/components/DinewayImage.astro +23 -5
- package/src/components/Image.astro +19 -3
- package/dist/schema-DmHMWnSA.mjs +0 -8
- package/dist/version-Cb1tZ6s_.mjs +0 -6
- /package/dist/{allowed-origins-QirBXiDj.mjs → allowed-origins-DhipQNLb.mjs} +0 -0
- /package/dist/{challenge-store-DFxX0_15.mjs → challenge-store-CRSz-Xim.mjs} +0 -0
- /package/dist/{entity-aliases-uOrKvlPg.mjs → entity-aliases-Egjmqc7I.mjs} +0 -0
- /package/dist/{experimental-workflows-CSMffP6q.mjs → experimental-workflows-Dh4DUoD_.mjs} +0 -0
- /package/dist/{mode-CZqCF9dZ.mjs → mode-CpyEz8pe.mjs} +0 -0
- /package/dist/{options-BF11H_FD.mjs → options-BvJoSSJR.mjs} +0 -0
- /package/dist/{patterns-D9iDO3j8.mjs → patterns-r-0n824Y.mjs} +0 -0
- /package/dist/{provider-loader-B5PMjpN7.d.mts → provider-loader-9it4vd6L.d.mts} +0 -0
- /package/dist/{request-cache-w5cj5itT.mjs → request-cache-CYMbwZc6.mjs} +0 -0
- /package/dist/{transaction-D0FOsb3X.mjs → transaction-CShMWIej.mjs} +0 -0
- /package/dist/{transport-DidKKxvW.d.mts → transport-BnsNxh2l.d.mts} +0 -0
- /package/dist/{types-DbZhHtqS.mjs → types-BO8TGjS8.mjs} +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
1
|
+
import { a as __exportAll } from "./runner-B-tbV751.mjs";
|
|
2
2
|
import { n as getI18nConfig } from "./config-CVssduLe.mjs";
|
|
3
|
-
import { r as RevisionRepository, t as ContentRepository } from "./content-
|
|
4
|
-
import { t as MediaRepository } from "./media-
|
|
5
|
-
import { t as TaxonomyRepository } from "./taxonomy-
|
|
6
|
-
import { t as withTransaction } from "./transaction-
|
|
7
|
-
import { t as RedirectRepository } from "./redirect-
|
|
8
|
-
import { t as BylineRepository } from "./byline-
|
|
9
|
-
import { t as FTSManager } from "./fts-manager-
|
|
10
|
-
import { n as SchemaRegistry } from "./registry-
|
|
11
|
-
import { o as setSiteSettings } from "./settings-
|
|
3
|
+
import { r as RevisionRepository, t as ContentRepository } from "./content-QaryevFO.mjs";
|
|
4
|
+
import { t as MediaRepository } from "./media-DUAjMfvR.mjs";
|
|
5
|
+
import { t as TaxonomyRepository } from "./taxonomy-CBmkmMuU.mjs";
|
|
6
|
+
import { t as withTransaction } from "./transaction-CShMWIej.mjs";
|
|
7
|
+
import { t as RedirectRepository } from "./redirect-C2zXRj3c.mjs";
|
|
8
|
+
import { t as BylineRepository } from "./byline-1ntDwv8c.mjs";
|
|
9
|
+
import { t as FTSManager } from "./fts-manager-CIZlScg5.mjs";
|
|
10
|
+
import { n as SchemaRegistry } from "./registry-CTkbIDB9.mjs";
|
|
11
|
+
import { o as setSiteSettings } from "./settings-yLjz_I4T.mjs";
|
|
12
12
|
import { a as validateExternalUrl, r as ssrfSafeFetch } from "./ssrf-DiKqWd3N.mjs";
|
|
13
|
-
import { t as validateSeed } from "./validate-
|
|
13
|
+
import { t as validateSeed } from "./validate-7SYRbz2f.mjs";
|
|
14
14
|
import { ulid } from "ulidx";
|
|
15
15
|
import { imageSize } from "image-size";
|
|
16
16
|
import mime from "mime/lite";
|
|
@@ -32,6 +32,31 @@ const QUERY_PARAM_PATTERN = /\?.*$/;
|
|
|
32
32
|
const SANITIZE_PATTERN = /[^a-zA-Z0-9_-]/g;
|
|
33
33
|
/** Pattern to collapse multiple hyphens */
|
|
34
34
|
const MULTIPLE_HYPHENS_PATTERN = /-+/g;
|
|
35
|
+
function seedFieldToCreateInput(field) {
|
|
36
|
+
return {
|
|
37
|
+
slug: field.slug,
|
|
38
|
+
label: field.label,
|
|
39
|
+
type: field.type,
|
|
40
|
+
required: field.required ?? false,
|
|
41
|
+
unique: field.unique ?? false,
|
|
42
|
+
searchable: field.searchable ?? false,
|
|
43
|
+
defaultValue: field.defaultValue,
|
|
44
|
+
validation: field.validation,
|
|
45
|
+
widget: field.widget,
|
|
46
|
+
options: field.options
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
async function repairExistingSeedCollectionFields(registry, collection, result) {
|
|
50
|
+
for (const field of collection.fields) {
|
|
51
|
+
if (await registry.getField(collection.slug, field.slug)) {
|
|
52
|
+
if (await registry.ensureFieldColumn(collection.slug, field.slug)) result.fields.updated++;
|
|
53
|
+
else result.fields.skipped++;
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
await registry.createField(collection.slug, seedFieldToCreateInput(field));
|
|
57
|
+
result.fields.created++;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
35
60
|
/**
|
|
36
61
|
* Apply a seed file to the database
|
|
37
62
|
*
|
|
@@ -45,7 +70,7 @@ const MULTIPLE_HYPHENS_PATTERN = /-+/g;
|
|
|
45
70
|
async function applySeed(db, seed, options = {}) {
|
|
46
71
|
const validation = validateSeed(seed);
|
|
47
72
|
if (!validation.valid) throw new Error(`Invalid seed file:\n${validation.errors.join("\n")}`);
|
|
48
|
-
const { includeContent = false, storage, skipMediaDownload = false, onConflict = "skip" } = options;
|
|
73
|
+
const { includeContent = false, storage, skipMediaDownload = false, onConflict = "skip", repairSchema = false } = options;
|
|
49
74
|
const result = {
|
|
50
75
|
collections: {
|
|
51
76
|
created: 0,
|
|
@@ -103,6 +128,7 @@ async function applySeed(db, seed, options = {}) {
|
|
|
103
128
|
};
|
|
104
129
|
const seedIdMap = /* @__PURE__ */ new Map();
|
|
105
130
|
const seedBylineIdMap = /* @__PURE__ */ new Map();
|
|
131
|
+
const defaultLocale = getI18nConfig()?.defaultLocale ?? seed.defaultLocale ?? "en";
|
|
106
132
|
if (seed.settings) {
|
|
107
133
|
await setSiteSettings(seed.settings, db);
|
|
108
134
|
result.settings.applied = Object.keys(seed.settings).length;
|
|
@@ -112,6 +138,7 @@ async function applySeed(db, seed, options = {}) {
|
|
|
112
138
|
for (const collection of seed.collections) {
|
|
113
139
|
if (await registry.getCollection(collection.slug)) {
|
|
114
140
|
if (onConflict === "error") throw new Error(`Conflict: collection "${collection.slug}" already exists`);
|
|
141
|
+
if (repairSchema) await registry.ensureCollectionContentTable(collection.slug);
|
|
115
142
|
if (onConflict === "update") {
|
|
116
143
|
await registry.updateCollection(collection.slug, {
|
|
117
144
|
label: collection.label,
|
|
@@ -124,6 +151,7 @@ async function applySeed(db, seed, options = {}) {
|
|
|
124
151
|
});
|
|
125
152
|
result.collections.updated++;
|
|
126
153
|
for (const field of collection.fields) if (await registry.getField(collection.slug, field.slug)) {
|
|
154
|
+
if (repairSchema) await registry.ensureFieldColumn(collection.slug, field.slug);
|
|
127
155
|
await registry.updateField(collection.slug, field.slug, {
|
|
128
156
|
label: field.label,
|
|
129
157
|
required: field.required || false,
|
|
@@ -136,24 +164,14 @@ async function applySeed(db, seed, options = {}) {
|
|
|
136
164
|
});
|
|
137
165
|
result.fields.updated++;
|
|
138
166
|
} else {
|
|
139
|
-
await registry.createField(collection.slug,
|
|
140
|
-
slug: field.slug,
|
|
141
|
-
label: field.label,
|
|
142
|
-
type: field.type,
|
|
143
|
-
required: field.required || false,
|
|
144
|
-
unique: field.unique || false,
|
|
145
|
-
searchable: field.searchable || false,
|
|
146
|
-
defaultValue: field.defaultValue,
|
|
147
|
-
validation: field.validation,
|
|
148
|
-
widget: field.widget,
|
|
149
|
-
options: field.options
|
|
150
|
-
});
|
|
167
|
+
await registry.createField(collection.slug, seedFieldToCreateInput(field));
|
|
151
168
|
result.fields.created++;
|
|
152
169
|
}
|
|
153
170
|
continue;
|
|
154
171
|
}
|
|
155
172
|
result.collections.skipped++;
|
|
156
|
-
|
|
173
|
+
if (repairSchema) await repairExistingSeedCollectionFields(registry, collection, result);
|
|
174
|
+
else result.fields.skipped += collection.fields.length;
|
|
157
175
|
continue;
|
|
158
176
|
}
|
|
159
177
|
await registry.createCollection({
|
|
@@ -169,18 +187,7 @@ async function applySeed(db, seed, options = {}) {
|
|
|
169
187
|
});
|
|
170
188
|
result.collections.created++;
|
|
171
189
|
for (const field of collection.fields) {
|
|
172
|
-
await registry.createField(collection.slug,
|
|
173
|
-
slug: field.slug,
|
|
174
|
-
label: field.label,
|
|
175
|
-
type: field.type,
|
|
176
|
-
required: field.required || false,
|
|
177
|
-
unique: field.unique || false,
|
|
178
|
-
searchable: field.searchable || false,
|
|
179
|
-
defaultValue: field.defaultValue,
|
|
180
|
-
validation: field.validation,
|
|
181
|
-
widget: field.widget,
|
|
182
|
-
options: field.options
|
|
183
|
-
});
|
|
190
|
+
await registry.createField(collection.slug, seedFieldToCreateInput(field));
|
|
184
191
|
result.fields.created++;
|
|
185
192
|
}
|
|
186
193
|
}
|
|
@@ -188,9 +195,8 @@ async function applySeed(db, seed, options = {}) {
|
|
|
188
195
|
if (seed.taxonomies) {
|
|
189
196
|
const defSeedIdMap = /* @__PURE__ */ new Map();
|
|
190
197
|
const termSeedIdMap = /* @__PURE__ */ new Map();
|
|
191
|
-
const fallbackLocale = getI18nConfig()?.defaultLocale ?? "en";
|
|
192
198
|
for (const taxonomy of seed.taxonomies) {
|
|
193
|
-
const defLocale = taxonomy.locale ??
|
|
199
|
+
const defLocale = taxonomy.locale ?? defaultLocale;
|
|
194
200
|
const existingDef = await db.selectFrom("_dineway_taxonomy_defs").selectAll().where("name", "=", taxonomy.name).where("locale", "=", defLocale).executeTakeFirst();
|
|
195
201
|
let defId;
|
|
196
202
|
let defTranslationGroup;
|
|
@@ -313,7 +319,8 @@ async function applySeed(db, seed, options = {}) {
|
|
|
313
319
|
if (includeContent && seed.content) {
|
|
314
320
|
const contentRepo = new ContentRepository(db);
|
|
315
321
|
for (const [collectionSlug, entries] of Object.entries(seed.content)) for (const entry of entries) {
|
|
316
|
-
const
|
|
322
|
+
const entryLocale = entry.locale ?? defaultLocale;
|
|
323
|
+
const existing = await contentRepo.findBySlug(collectionSlug, entry.slug, entryLocale);
|
|
317
324
|
if (existing) {
|
|
318
325
|
if (onConflict === "error") throw new Error(`Conflict: content "${entry.slug}" in "${collectionSlug}" already exists`);
|
|
319
326
|
if (onConflict === "update") {
|
|
@@ -363,7 +370,7 @@ async function applySeed(db, seed, options = {}) {
|
|
|
363
370
|
slug: entry.slug,
|
|
364
371
|
status,
|
|
365
372
|
data: resolvedData,
|
|
366
|
-
locale:
|
|
373
|
+
locale: entryLocale,
|
|
367
374
|
translationOf,
|
|
368
375
|
publishedAt: status === "published" ? (/* @__PURE__ */ new Date()).toISOString() : null
|
|
369
376
|
});
|
|
@@ -379,9 +386,8 @@ async function applySeed(db, seed, options = {}) {
|
|
|
379
386
|
if (seed.menus) {
|
|
380
387
|
const menuSeedIdMap = /* @__PURE__ */ new Map();
|
|
381
388
|
const itemSeedIdMap = /* @__PURE__ */ new Map();
|
|
382
|
-
const fallbackLocale = getI18nConfig()?.defaultLocale ?? "en";
|
|
383
389
|
for (const menu of seed.menus) {
|
|
384
|
-
const locale = menu.locale ??
|
|
390
|
+
const locale = menu.locale ?? defaultLocale;
|
|
385
391
|
const existingMenu = await db.selectFrom("_dineway_menus").selectAll().where("name", "=", menu.name).where("locale", "=", locale).executeTakeFirst();
|
|
386
392
|
let menuId;
|
|
387
393
|
let translationGroup;
|
|
@@ -513,9 +519,9 @@ async function applySeed(db, seed, options = {}) {
|
|
|
513
519
|
}
|
|
514
520
|
}
|
|
515
521
|
}
|
|
516
|
-
const { invalidateBylineCache } = await import("./bylines-
|
|
517
|
-
const { invalidateUrlPatternCache } = await import("./query-
|
|
518
|
-
const { invalidateRedirectCache } = await import("./cache-
|
|
522
|
+
const { invalidateBylineCache } = await import("./bylines-DtxChhN_.mjs").then((n) => n.t);
|
|
523
|
+
const { invalidateUrlPatternCache } = await import("./query-BYc3oruA.mjs").then((n) => n.o);
|
|
524
|
+
const { invalidateRedirectCache } = await import("./cache-DbKyr60Q.mjs").then((n) => n.t);
|
|
519
525
|
invalidateBylineCache();
|
|
520
526
|
invalidateUrlPatternCache();
|
|
521
527
|
invalidateRedirectCache();
|
|
@@ -599,7 +605,7 @@ async function applyContentTaxonomies(db, collectionSlug, contentId, entry, isUp
|
|
|
599
605
|
if (isUpdate) await db.deleteFrom("content_taxonomies").where("collection", "=", collectionSlug).where("entry_id", "=", contentId).execute();
|
|
600
606
|
if (!entry.taxonomies) {
|
|
601
607
|
if (isUpdate) {
|
|
602
|
-
const { invalidateTermCache } = await import("./taxonomies-
|
|
608
|
+
const { invalidateTermCache } = await import("./taxonomies-CNOGeC-3.mjs").then((n) => n.l);
|
|
603
609
|
invalidateTermCache();
|
|
604
610
|
}
|
|
605
611
|
return;
|
|
@@ -611,7 +617,7 @@ async function applyContentTaxonomies(db, collectionSlug, contentId, entry, isUp
|
|
|
611
617
|
if (term) await termRepo.attachToEntry(collectionSlug, contentId, term.id);
|
|
612
618
|
}
|
|
613
619
|
}
|
|
614
|
-
const { invalidateTermCache } = await import("./taxonomies-
|
|
620
|
+
const { invalidateTermCache } = await import("./taxonomies-CNOGeC-3.mjs").then((n) => n.l);
|
|
615
621
|
invalidateTermCache();
|
|
616
622
|
}
|
|
617
623
|
/**
|
package/dist/astro/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "../types-
|
|
4
|
-
import { X as ResolvedPlugin } from "../types-
|
|
1
|
+
import { i as ContentItem } from "../types-DRIKLmJI.mjs";
|
|
2
|
+
import { a as S3StorageConfig, i as LocalStorageConfig, o as StorageDescriptor, r as getStoredConfig, t as DinewayConfig, wi as MediaItem } from "../runtime-DEWQpZ-4.mjs";
|
|
3
|
+
import "../types-eu5UDgHN.mjs";
|
|
4
|
+
import { X as ResolvedPlugin } from "../types-DSPGWjxO.mjs";
|
|
5
5
|
import "../types-Dryvv7LH.mjs";
|
|
6
|
-
import "../runner-
|
|
7
|
-
import "../index-
|
|
8
|
-
import "../byline-fields-
|
|
6
|
+
import "../runner-D4FL9usy.mjs";
|
|
7
|
+
import "../index-CwRuZ-u8.mjs";
|
|
8
|
+
import "../byline-fields-BX7rWKNU.mjs";
|
|
9
9
|
import "../types-GaCtZ1k9.mjs";
|
|
10
|
-
import "../validate-
|
|
10
|
+
import "../validate-BMs11tan.mjs";
|
|
11
11
|
import { DinewayHandlers, DinewayManifest, ManifestCollection } from "./types.mjs";
|
|
12
12
|
import { AstroIntegration } from "astro";
|
|
13
13
|
|
package/dist/astro/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
1
|
+
import { t as INTERNAL_MEDIA_PREFIX } from "../normalize-DUnoXAa9.mjs";
|
|
2
|
+
import { n as VERSION, t as COMMIT } from "../version-xlzMSXF2.mjs";
|
|
3
|
+
import { t as defaultSeed } from "../default-B6iaLvP7.mjs";
|
|
4
|
+
import { n as validateAllowedOrigins, r as validateOriginShape } from "../allowed-origins-DhipQNLb.mjs";
|
|
4
5
|
import { createRequire } from "node:module";
|
|
5
6
|
import { existsSync, readFileSync } from "node:fs";
|
|
6
7
|
import { dirname, isAbsolute, relative, resolve } from "node:path";
|
|
@@ -219,6 +220,10 @@ function injectCoreRoutes(injectRoute) {
|
|
|
219
220
|
pattern: "/_dineway/api/content/[collection]",
|
|
220
221
|
entrypoint: resolveRoute("api/content/[collection]/index.ts")
|
|
221
222
|
});
|
|
223
|
+
injectRoute({
|
|
224
|
+
pattern: "/_dineway/api/content/[collection]/authors",
|
|
225
|
+
entrypoint: resolveRoute("api/content/[collection]/authors.ts")
|
|
226
|
+
});
|
|
222
227
|
injectRoute({
|
|
223
228
|
pattern: "/_dineway/api/content/[collection]/[id]",
|
|
224
229
|
entrypoint: resolveRoute("api/content/[collection]/[id].ts")
|
|
@@ -1455,6 +1460,40 @@ const DEFAULT_STORAGE = local({
|
|
|
1455
1460
|
baseUrl: "/_dineway/api/media/file"
|
|
1456
1461
|
});
|
|
1457
1462
|
const DINEWAY_SESSION_DRIVER = { entrypoint: "dineway/astro/session-driver" };
|
|
1463
|
+
/**
|
|
1464
|
+
* Build `image.remotePatterns` entries so Astro will optimize Dineway media.
|
|
1465
|
+
*
|
|
1466
|
+
* Astro's image services only transform absolute URLs whose host is authorized.
|
|
1467
|
+
* We authorize the storage public URL host, the configured site origin scoped
|
|
1468
|
+
* to the media proxy route, and a dev-only host-agnostic media route pattern.
|
|
1469
|
+
*
|
|
1470
|
+
* @internal Exported for unit testing.
|
|
1471
|
+
*/
|
|
1472
|
+
function buildImageRemotePatterns(storage, siteUrl, command) {
|
|
1473
|
+
const patterns = [];
|
|
1474
|
+
const config = storage?.config;
|
|
1475
|
+
const publicUrl = config && typeof config === "object" ? config.publicUrl : void 0;
|
|
1476
|
+
if (typeof publicUrl === "string" && publicUrl) try {
|
|
1477
|
+
const url = new URL(publicUrl);
|
|
1478
|
+
if (url.protocol === "http:" || url.protocol === "https:") {
|
|
1479
|
+
const pattern = {
|
|
1480
|
+
protocol: url.protocol === "http:" ? "http" : "https",
|
|
1481
|
+
hostname: url.hostname
|
|
1482
|
+
};
|
|
1483
|
+
const prefix = url.pathname.endsWith("/") ? url.pathname.slice(0, -1) : url.pathname;
|
|
1484
|
+
if (prefix && prefix !== "/") pattern.pathname = `${prefix}/**`;
|
|
1485
|
+
patterns.push(pattern);
|
|
1486
|
+
}
|
|
1487
|
+
} catch {}
|
|
1488
|
+
if (siteUrl) try {
|
|
1489
|
+
patterns.push({
|
|
1490
|
+
hostname: new URL(siteUrl).hostname,
|
|
1491
|
+
pathname: `${INTERNAL_MEDIA_PREFIX}**`
|
|
1492
|
+
});
|
|
1493
|
+
} catch {}
|
|
1494
|
+
if (command === "dev") patterns.push({ pathname: `${INTERNAL_MEDIA_PREFIX}**` });
|
|
1495
|
+
return patterns;
|
|
1496
|
+
}
|
|
1458
1497
|
const dim = (s) => `\x1b[2m${s}\x1b[22m`;
|
|
1459
1498
|
const bold = (s) => `\x1b[1m${s}\x1b[22m`;
|
|
1460
1499
|
const cyan = (s) => `\x1b[36m${s}\x1b[39m`;
|
|
@@ -1553,31 +1592,34 @@ function dineway(config = {}) {
|
|
|
1553
1592
|
};
|
|
1554
1593
|
const fontsConfig = resolvedConfig.fonts;
|
|
1555
1594
|
const fontScripts = fontsConfig && typeof fontsConfig === "object" ? fontsConfig.scripts : void 0;
|
|
1595
|
+
const dinewayFonts = fontsConfig === false ? [] : [{
|
|
1596
|
+
provider: notoSans({ scripts: fontScripts }),
|
|
1597
|
+
name: "Noto Sans",
|
|
1598
|
+
cssVariable: "--font-dineway",
|
|
1599
|
+
weights: ["100 900"],
|
|
1600
|
+
styles: ["normal", "italic"],
|
|
1601
|
+
subsets: [
|
|
1602
|
+
"latin",
|
|
1603
|
+
"latin-ext",
|
|
1604
|
+
"cyrillic",
|
|
1605
|
+
"cyrillic-ext",
|
|
1606
|
+
"devanagari",
|
|
1607
|
+
"greek",
|
|
1608
|
+
"greek-ext",
|
|
1609
|
+
"vietnamese"
|
|
1610
|
+
],
|
|
1611
|
+
fallbacks: [
|
|
1612
|
+
"ui-sans-serif",
|
|
1613
|
+
"system-ui",
|
|
1614
|
+
"sans-serif"
|
|
1615
|
+
]
|
|
1616
|
+
}];
|
|
1617
|
+
const imageRemotePatterns = buildImageRemotePatterns(resolvedConfig.storage, resolvedConfig.siteUrl, command);
|
|
1556
1618
|
updateConfig({
|
|
1557
1619
|
security: securityConfig,
|
|
1558
1620
|
session: sessionConfig,
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
name: "Noto Sans",
|
|
1562
|
-
cssVariable: "--font-dineway",
|
|
1563
|
-
weights: ["100 900"],
|
|
1564
|
-
styles: ["normal", "italic"],
|
|
1565
|
-
subsets: [
|
|
1566
|
-
"latin",
|
|
1567
|
-
"latin-ext",
|
|
1568
|
-
"cyrillic",
|
|
1569
|
-
"cyrillic-ext",
|
|
1570
|
-
"devanagari",
|
|
1571
|
-
"greek",
|
|
1572
|
-
"greek-ext",
|
|
1573
|
-
"vietnamese"
|
|
1574
|
-
],
|
|
1575
|
-
fallbacks: [
|
|
1576
|
-
"ui-sans-serif",
|
|
1577
|
-
"system-ui",
|
|
1578
|
-
"sans-serif"
|
|
1579
|
-
]
|
|
1580
|
-
}],
|
|
1621
|
+
...imageRemotePatterns.length ? { image: { remotePatterns: imageRemotePatterns } } : {},
|
|
1622
|
+
fonts: dinewayFonts,
|
|
1581
1623
|
vite: createViteConfig({
|
|
1582
1624
|
serializableConfig,
|
|
1583
1625
|
resolvedConfig,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../../runtime-
|
|
2
|
-
import "../../types-
|
|
3
|
-
import "../../types-
|
|
1
|
+
import "../../runtime-DEWQpZ-4.mjs";
|
|
2
|
+
import "../../types-eu5UDgHN.mjs";
|
|
3
|
+
import "../../types-DSPGWjxO.mjs";
|
|
4
4
|
import "../../types-Dryvv7LH.mjs";
|
|
5
|
-
import "../../runner-
|
|
6
|
-
import "../../index-
|
|
7
|
-
import "../../byline-fields-
|
|
5
|
+
import "../../runner-D4FL9usy.mjs";
|
|
6
|
+
import "../../index-CwRuZ-u8.mjs";
|
|
7
|
+
import "../../byline-fields-BX7rWKNU.mjs";
|
|
8
8
|
import "../../types-GaCtZ1k9.mjs";
|
|
9
|
-
import "../../validate-
|
|
9
|
+
import "../../validate-BMs11tan.mjs";
|
|
10
10
|
import { DinewayHandlers } from "../types.mjs";
|
|
11
11
|
import { Kysely } from "kysely";
|
|
12
12
|
import { User } from "@dineway-ai/auth";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as apiError } from "../../error-DCSuUAZW.mjs";
|
|
2
2
|
import { n as getPublicOrigin } from "../../public-url-DLUM5OOv.mjs";
|
|
3
|
-
import { t as getAuthMode } from "../../mode-
|
|
3
|
+
import { t as getAuthMode } from "../../mode-CpyEz8pe.mjs";
|
|
4
4
|
import { i as hasScope } from "../../api-tokens-CYUoFGo7.mjs";
|
|
5
5
|
import { a as resolveOAuthToken, i as resolveApiToken } from "../../api-tokens-DtvdtIkm.mjs";
|
|
6
6
|
import { ulid } from "ulidx";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../../dialect-helpers-fk43GbDb.mjs";
|
|
2
2
|
import "../../base64-C1Q9yr0B.mjs";
|
|
3
|
-
import "../../types-
|
|
4
|
-
import { n as alternateTrailingSlashPath, t as RedirectRepository } from "../../redirect-
|
|
3
|
+
import "../../types-DfuD0Afl.mjs";
|
|
4
|
+
import { n as alternateTrailingSlashPath, t as RedirectRepository } from "../../redirect-C2zXRj3c.mjs";
|
|
5
5
|
import { getRequestContext } from "../../request-context.mjs";
|
|
6
|
-
import { a as matchCachedPatterns, n as compileRedirectRules, o as setCachedRedirects, r as getCachedRedirects } from "../../cache-
|
|
7
|
-
import { r as getDb } from "../../loader-
|
|
6
|
+
import { a as matchCachedPatterns, n as compileRedirectRules, o as setCachedRedirects, r as getCachedRedirects } from "../../cache-DbKyr60Q.mjs";
|
|
7
|
+
import { r as getDb } from "../../loader-tg63WSY2.mjs";
|
|
8
8
|
import { defineMiddleware } from "astro:middleware";
|
|
9
9
|
|
|
10
10
|
//#region src/astro/middleware/redirect.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../../base64-C1Q9yr0B.mjs";
|
|
2
|
-
import "../../options-
|
|
2
|
+
import "../../options-BvJoSSJR.mjs";
|
|
3
3
|
import { runWithContext } from "../../request-context.mjs";
|
|
4
4
|
import { n as parseContentId, r as verifyPreviewToken } from "../../tokens-CjSgb0AC.mjs";
|
|
5
|
-
import { i as resolveSecretsCached } from "../../secrets-
|
|
5
|
+
import { i as resolveSecretsCached } from "../../secrets-062Izo8i.mjs";
|
|
6
6
|
import { defineMiddleware } from "astro:middleware";
|
|
7
7
|
|
|
8
8
|
//#region src/visual-editing/toolbar.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as runMigrations } from "../../runner-
|
|
1
|
+
import { i as runMigrations } from "../../runner-B-tbV751.mjs";
|
|
2
2
|
import "../../dialect-helpers-fk43GbDb.mjs";
|
|
3
|
-
import { t as OptionsRepository } from "../../options-
|
|
3
|
+
import { t as OptionsRepository } from "../../options-BvJoSSJR.mjs";
|
|
4
4
|
import { ulid } from "ulidx";
|
|
5
5
|
import { defineMiddleware } from "astro:middleware";
|
|
6
6
|
|
|
@@ -7,6 +7,7 @@ import * as astro from "astro";
|
|
|
7
7
|
* Thin wrapper that initializes DinewayRuntime and attaches it to locals.
|
|
8
8
|
* All heavy lifting happens in DinewayRuntime.
|
|
9
9
|
*/
|
|
10
|
+
declare const RUNTIME_INIT_DEADLINE_MS: number;
|
|
10
11
|
declare const onRequest: astro.MiddlewareHandler;
|
|
11
12
|
//#endregion
|
|
12
|
-
export { onRequest as default, onRequest };
|
|
13
|
+
export { RUNTIME_INIT_DEADLINE_MS, onRequest as default, onRequest };
|