dineway 0.1.47 → 0.1.49
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-CwM7yxPW.mjs} +1 -1
- package/dist/{allowed-origins-QirBXiDj.mjs → allowed-origins-CyGnbgBd.mjs} +1 -1
- package/dist/api/route-utils.d.mts +8 -22
- package/dist/api/route-utils.mjs +10 -10
- package/dist/api/schemas/index.d.mts +2 -2
- package/dist/api/schemas/index.mjs +4 -4
- package/dist/{api-ePsOhL3q.mjs → api-BMIxRIEN.mjs} +65 -18
- package/dist/{apply-BpRBCqUt.mjs → apply-D_RlTYtC.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 +5 -5
- package/dist/astro/middleware/request-context.mjs +4 -4
- package/dist/astro/middleware/seed.d.mts +1 -1
- package/dist/astro/middleware/seed.mjs +2 -2
- package/dist/astro/middleware.d.mts +2 -1
- package/dist/astro/middleware.mjs +366 -147
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +3 -3
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +3 -3
- package/dist/astro/routes/api/admin/briefing.mjs +16 -16
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +2 -2
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +5 -5
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +5 -5
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +5 -5
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +11 -11
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +11 -11
- package/dist/astro/routes/api/admin/bylines/index.mjs +11 -11
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +10 -10
- package/dist/astro/routes/api/admin/comments/_id_.mjs +4 -4
- package/dist/astro/routes/api/admin/comments/bulk.mjs +7 -7
- package/dist/astro/routes/api/admin/comments/counts.mjs +4 -4
- package/dist/astro/routes/api/admin/comments/index.mjs +7 -7
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +23 -23
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +23 -23
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +26 -26
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +26 -26
- package/dist/astro/routes/api/admin/context/diff.mjs +25 -25
- package/dist/astro/routes/api/admin/context/index.mjs +26 -26
- package/dist/astro/routes/api/admin/context/stale.mjs +25 -25
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +24 -24
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +26 -26
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +26 -26
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +23 -23
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +43 -43
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +43 -43
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +37 -37
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +43 -43
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +43 -43
- package/dist/astro/routes/api/admin/plugins/index.mjs +37 -37
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +37 -37
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +43 -43
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +37 -37
- package/dist/astro/routes/api/admin/plugins/updates.mjs +37 -37
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +4 -4
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +25 -25
- package/dist/astro/routes/api/admin/review-requests/index.mjs +7 -7
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +37 -37
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +37 -37
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +1 -1
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +4 -4
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
- package/dist/astro/routes/api/admin/users/index.mjs +3 -3
- package/dist/astro/routes/api/auth/dev-bypass.mjs +1 -1
- package/dist/astro/routes/api/auth/invite/complete.mjs +6 -6
- package/dist/astro/routes/api/auth/invite/index.mjs +5 -5
- package/dist/astro/routes/api/auth/invite/register-options.mjs +5 -5
- package/dist/astro/routes/api/auth/magic-link/send.mjs +5 -5
- package/dist/astro/routes/api/auth/me.mjs +7 -7
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/options.mjs +5 -5
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +5 -5
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +6 -6
- package/dist/astro/routes/api/auth/passkey/verify.mjs +6 -6
- package/dist/astro/routes/api/auth/setup-token/index.mjs +4 -4
- package/dist/astro/routes/api/auth/signup/complete.mjs +6 -6
- package/dist/astro/routes/api/auth/signup/request.mjs +5 -5
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +11 -11
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +7 -6
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +10 -9
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +13 -11
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +10 -10
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +7 -6
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +10 -9
- 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 +7 -7
- package/dist/astro/routes/api/content/_collection_/trash.mjs +3 -3
- package/dist/astro/routes/api/dashboard.mjs +7 -7
- 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 +6 -6
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +3 -3
- package/dist/astro/routes/api/import/wordpress/execute.mjs +28 -28
- package/dist/astro/routes/api/import/wordpress/media.mjs +6 -6
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +29 -29
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +27 -27
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +8 -8
- package/dist/astro/routes/api/import/wordpress-plugin/callback.mjs +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +29 -29
- package/dist/astro/routes/api/manifest.mjs +1 -1
- package/dist/astro/routes/api/mcp.mjs +49 -49
- package/dist/astro/routes/api/media/_id_/confirm.mjs +6 -6
- package/dist/astro/routes/api/media/_id_.mjs +3 -3
- package/dist/astro/routes/api/media/upload-url.mjs +8 -8
- package/dist/astro/routes/api/media.mjs +9 -9
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +26 -26
- package/dist/astro/routes/api/menus/_name_/items.mjs +26 -26
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +26 -26
- package/dist/astro/routes/api/menus/_name_/translations.mjs +26 -26
- package/dist/astro/routes/api/menus/_name_.mjs +26 -26
- package/dist/astro/routes/api/menus/index.mjs +26 -26
- package/dist/astro/routes/api/oauth/authorize.mjs +2 -2
- package/dist/astro/routes/api/oauth/device/authorize.mjs +1 -1
- package/dist/astro/routes/api/oauth/device/code.mjs +2 -2
- package/dist/astro/routes/api/oauth/device/token.mjs +1 -1
- package/dist/astro/routes/api/oauth/token/refresh.mjs +1 -1
- package/dist/astro/routes/api/oauth/token/revoke.mjs +1 -1
- package/dist/astro/routes/api/oauth/token.mjs +2 -2
- package/dist/astro/routes/api/openapi.json.mjs +16 -2
- package/dist/astro/routes/api/redirects/404s/index.mjs +8 -8
- package/dist/astro/routes/api/redirects/404s/summary.mjs +8 -8
- package/dist/astro/routes/api/redirects/_id_.mjs +27 -27
- package/dist/astro/routes/api/redirects/index.mjs +27 -27
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +38 -38
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +38 -38
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +38 -38
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +38 -38
- package/dist/astro/routes/api/schema/collections/index.mjs +38 -38
- package/dist/astro/routes/api/schema/index.mjs +3 -3
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +37 -37
- package/dist/astro/routes/api/schema/orphans/index.mjs +37 -37
- package/dist/astro/routes/api/search/enable.mjs +8 -8
- package/dist/astro/routes/api/search/index.mjs +8 -8
- package/dist/astro/routes/api/search/rebuild.mjs +8 -8
- package/dist/astro/routes/api/search/stats.mjs +5 -5
- package/dist/astro/routes/api/search/suggest.mjs +8 -8
- package/dist/astro/routes/api/sections/_slug_.mjs +26 -26
- package/dist/astro/routes/api/sections/index.mjs +26 -26
- package/dist/astro/routes/api/settings/email.mjs +1 -1
- package/dist/astro/routes/api/settings.mjs +26 -26
- package/dist/astro/routes/api/setup/admin-verify.mjs +7 -7
- package/dist/astro/routes/api/setup/admin.mjs +5 -5
- package/dist/astro/routes/api/setup/dev-bypass.mjs +19 -19
- package/dist/astro/routes/api/setup/dev-reset.mjs +1 -1
- package/dist/astro/routes/api/setup/index.mjs +22 -22
- package/dist/astro/routes/api/setup/status.mjs +1 -1
- package/dist/astro/routes/api/snapshot.mjs +4 -4
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +28 -28
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +28 -28
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +28 -28
- package/dist/astro/routes/api/taxonomies/index.mjs +28 -28
- package/dist/astro/routes/api/themes/preview.mjs +4 -4
- package/dist/astro/routes/api/typegen.mjs +3 -3
- package/dist/astro/routes/api/well-known/auth.mjs +2 -2
- 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 +25 -25
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +26 -26
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +26 -26
- package/dist/astro/routes/api/widget-areas/_name_.mjs +24 -24
- package/dist/astro/routes/api/widget-areas/index.mjs +26 -26
- package/dist/astro/routes/robots.txt.mjs +47 -24
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +8 -8
- package/dist/astro/routes/sitemap.xml.mjs +8 -8
- package/dist/astro/session-driver.d.mts +1 -1
- package/dist/astro/session-driver.mjs +3 -3
- package/dist/astro/types.d.mts +15 -8
- package/dist/{audit-DuRbTm8L.mjs → audit-BeNsSyfU.mjs} +1 -1
- package/dist/{briefing-BFEWeJtR.mjs → briefing-CkTee1ex.mjs} +7 -7
- package/dist/{briefing-C4fJSVYW.mjs → briefing-DJX6irto.mjs} +1 -1
- package/dist/{byline-CXQcMsBu.mjs → byline-BVC1lV6G.mjs} +5 -5
- package/dist/{byline-fields-Dc7L6Yry.mjs → byline-fields-Cj39WhXC.mjs} +1 -1
- package/dist/{byline-fields-D7TJ_oHF.mjs → byline-fields-cNrLJVRs.mjs} +3 -3
- package/dist/{byline-fields-Cuo-JI3B.d.mts → byline-fields-uJlygdzM.d.mts} +34 -10
- package/dist/{byline-registry-CL8BxPPp.mjs → byline-registry-4v6tXMNX.mjs} +2 -2
- package/dist/{bylines-BgriNlW7.mjs → bylines-DwokOFj6.mjs} +38 -4
- package/dist/{bylines-D2vqm1aZ.mjs → bylines-LN9XISRo.mjs} +2 -2
- package/dist/{cache-GRK71jOU.mjs → cache-Bac05gBd.mjs} +2 -2
- package/dist/{chunks-DgEw12Bc.mjs → chunks-CuUt7K50.mjs} +1 -1
- package/dist/cli/index.mjs +709 -589
- package/dist/client/external-auth-headers.d.mts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/{comment-ogMaF1gk.mjs → comment-Beue8-15.mjs} +1 -1
- package/dist/{comments-CTSOKrZq.mjs → comments-DcjFIfqX.mjs} +1 -1
- package/dist/{content-BfyjOiMi.mjs → content-CBxYGWfL.mjs} +104 -41
- package/dist/{context-ZMHhwzkG.mjs → context-CQVNZaR8.mjs} +7 -7
- package/dist/{context-CdsYb1m8.mjs → context-Df1xVYyr.mjs} +2 -2
- package/dist/{context-route-helpers-YLWx2N1j.mjs → context-route-helpers-B9wj8Rmh.mjs} +1 -1
- package/dist/{dashboard-D0gWuzNp.mjs → dashboard-B7ZUNuyF.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-BZVGftqi.mjs} +1 -1
- package/dist/{fts-manager-EHY2Kes9.mjs → fts-manager-B5l_qwrA.mjs} +1 -1
- package/dist/{hitl-requests-B1Zqgut6.mjs → hitl-requests-7NlzVeUA.mjs} +1 -1
- package/dist/{hitl-route-helpers-CjpWUMuw.mjs → hitl-route-helpers-k---_H3-.mjs} +2 -2
- package/dist/{import-CvHY6sf5.mjs → import-4YBXbDkI.mjs} +2 -2
- package/dist/{index-DJVaYiUV.d.mts → index-CZiWCQDp.d.mts} +1 -1
- package/dist/index.d.mts +10 -10
- package/dist/index.mjs +59 -59
- package/dist/{jsonld-AcPnCEGD.d.mts → jsonld-DZ67souc.d.mts} +1 -1
- package/dist/{load-BdbvtoDb.mjs → load-D9OiGr2m.mjs} +1 -1
- package/dist/{loader-Y0QvC_QO.mjs → loader--GOYux8M.mjs} +138 -36
- package/dist/media/index.mjs +2 -2
- package/dist/media/local-runtime.d.mts +7 -7
- package/dist/media/local-runtime.mjs +3 -3
- package/dist/{media-DhBwiCYR.mjs → media-CbKyYukG.mjs} +1 -1
- package/dist/{media-allowlist-BsXkT9RK.mjs → media-allowlist-BYxJIcTO.mjs} +1 -1
- package/dist/{menus-BzGQpw9d.mjs → menus-BZbXf-ej.mjs} +2 -2
- package/dist/{menus-fqqzXyHd.mjs → menus-C7F0sCrC.mjs} +13 -8
- package/dist/{normalize-O-hi3a27.mjs → normalize-ByemhhfW.mjs} +1 -1
- package/dist/{oauth-authorization-DsF81vki.mjs → oauth-authorization-DF-LCsIA.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-DzfqRREq.mjs} +195 -5
- package/dist/{preview-D5rvDhRt.mjs → preview-C-3YTX2U.mjs} +1 -1
- package/dist/public-url-B4xV4rGa.d.mts +19 -0
- package/dist/{public-url-DLUM5OOv.mjs → public-url-B_m9IwdV.mjs} +24 -18
- package/dist/{query-BJuUydtD.mjs → query-CZ3TH_Uu.mjs} +3 -3
- package/dist/{query-CSx0EdSW.mjs → query-Ds0EnMFX.mjs} +29 -18
- package/dist/{redirect-BqFMj67n.mjs → redirect-CEACczxo.mjs} +2 -2
- package/dist/{redirects-CJwHl_YG.mjs → redirects-DYj1yPxs.mjs} +4 -4
- package/dist/{redirects-q_cToaHv.mjs → redirects-ocRJmQHP.mjs} +23 -3
- package/dist/{registry-Cq3QRBW2.mjs → registry-D7HACema.mjs} +38 -6
- package/dist/{review-requests-tPw8_pAO.mjs → review-requests-BW2NxY-l.mjs} +1 -1
- package/dist/{review-requests-GYqjl2jO.mjs → review-requests-Qum4713s.mjs} +1 -1
- package/dist/{runner-Cnz4dl0f.d.mts → runner-09sTqtv0.d.mts} +1 -1
- package/dist/{runner-DTfG5v0G.mjs → runner-DzIpHGND.mjs} +328 -193
- package/dist/{runtime-Cd-kjPfN.d.mts → runtime-C4-2lSFg.d.mts} +261 -128
- package/dist/runtime.d.mts +8 -8
- package/dist/runtime.mjs +3 -3
- package/dist/schema-Bsi-VpYv.mjs +8 -0
- package/dist/{search-BAiFLz81.mjs → search-Gdrqj582.mjs} +3 -3
- package/dist/{secrets-CPoFLJjm.mjs → secrets-CeGpBFV2.mjs} +2 -2
- package/dist/{sections-DsuIrFDC.mjs → sections-BOjU13Y-.mjs} +2 -2
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +18 -18
- package/dist/seo/index.d.mts +1 -1
- package/dist/{seo-uMFBaR8G.mjs → seo-CLj8lS7Q.mjs} +1 -1
- package/dist/{service-CifrxCru.mjs → service-jGlhrICs.mjs} +1 -1
- package/dist/{settings-DNRQuX3d.mjs → settings-CUXOxzsT.mjs} +4 -4
- package/dist/{settings-BYGdocdj.mjs → settings-DlBsT2VS.mjs} +2 -2
- package/dist/{setup-complete-4EiBS1E5.mjs → setup-complete-BRrdPYjZ.mjs} +1 -1
- package/dist/{site-activity-6x1JccoR.mjs → site-activity-DONFrMBJ.mjs} +1 -1
- package/dist/{site-context-c1ZFa_OF.mjs → site-context-C8Az_P_I.mjs} +13 -13
- package/dist/{site-url-C-cu8Ff2.mjs → site-url-DIMD68go.mjs} +1 -1
- package/dist/{taxonomies-faQVeMgj.mjs → taxonomies-CZ-_DitR.mjs} +9 -7
- package/dist/{taxonomies-CQFmkP5u.mjs → taxonomies-D9Sw4wWM.mjs} +3 -3
- package/dist/{taxonomy-BnH-6VsX.mjs → taxonomy-B169Nm6B.mjs} +2 -2
- package/dist/{tokens-CjSgb0AC.mjs → tokens-SLmgowfd.mjs} +1 -1
- package/dist/{types-Ck7-WoUD.mjs → types-CSgR9nQB.mjs} +10 -3
- package/dist/{types-DYKtk8f1.d.mts → types-CuJOqHfM.d.mts} +128 -0
- 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/ui/server-runtime.d.mts +58 -10
- package/dist/ui/server-runtime.mjs +98 -16
- package/dist/{user-CqZwN21P.mjs → user-DTLoZs16.mjs} +15 -1
- package/dist/{utils-wv-zvC-Y.mjs → utils-B8hBJ9Oz.mjs} +1 -1
- package/dist/{validate-CK4a1sIF.mjs → validate-DWmPO6oj.mjs} +5 -2
- package/dist/{validate-BJuG-ISL.d.mts → validate-DzjCdy6v.d.mts} +10 -2
- package/dist/version-C4gfn0PJ.mjs +6 -0
- package/dist/{widgets-CdDvF4fV.mjs → widgets-BpJ8EpPd.mjs} +1 -1
- package/dist/{wordpress-slugs-B6Gw9q3Q.mjs → wordpress-slugs-DHNR9LpG.mjs} +1 -1
- package/dist/{zod-generator-D1ROBNuC.mjs → zod-generator-K91-g665.mjs} +3 -2
- package/package.json +6 -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/{base64-C1Q9yr0B.mjs → base64-F8-DUraK.mjs} +0 -0
- /package/dist/{context-types-DQh_XKkn.mjs → context-types-r8oFvyOq.mjs} +0 -0
- /package/dist/{entity-aliases-uOrKvlPg.mjs → entity-aliases-4y93Yjuc.mjs} +0 -0
- /package/dist/{mime-8pAB8-77.mjs → mime-CbKsKDCB.mjs} +0 -0
- /package/dist/{options-BF11H_FD.mjs → options-LsPjZlqD.mjs} +0 -0
- /package/dist/{patterns-D9iDO3j8.mjs → patterns-DKAX6oqN.mjs} +0 -0
- /package/dist/{placeholder-BDo81Is5.mjs → placeholder-d54Qr_7n.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-ho99schz.mjs} +0 -0
- /package/dist/{slugify-BzGxlOFx.mjs → slugify-BqebcqBg.mjs} +0 -0
- /package/dist/{transaction-D0FOsb3X.mjs → transaction-CFLhEOuH.mjs} +0 -0
- /package/dist/{transport-DidKKxvW.d.mts → transport-BnsNxh2l.d.mts} +0 -0
- /package/dist/{types-DbZhHtqS.mjs → types-CJ8DkL0q.mjs} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as encodeCursor, r as decodeCursor } from "./types-CSgR9nQB.mjs";
|
|
2
|
+
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-CuUt7K50.mjs";
|
|
2
3
|
import { ulid } from "ulidx";
|
|
3
4
|
|
|
4
5
|
//#region src/database/repositories/user.ts
|
|
@@ -36,6 +37,19 @@ var UserRepository = class UserRepository {
|
|
|
36
37
|
return row ? this.rowToUser(row) : null;
|
|
37
38
|
}
|
|
38
39
|
/**
|
|
40
|
+
* Batch-resolve users by ID. Missing IDs are ignored.
|
|
41
|
+
*/
|
|
42
|
+
async findByIds(ids) {
|
|
43
|
+
const unique = [...new Set(ids)].filter((id) => id.length > 0);
|
|
44
|
+
if (unique.length === 0) return [];
|
|
45
|
+
const out = [];
|
|
46
|
+
for (const batch of chunks(unique, SQL_BATCH_SIZE)) {
|
|
47
|
+
const rows = await this.db.selectFrom("users").selectAll().where("id", "in", batch).execute();
|
|
48
|
+
for (const row of rows) out.push(this.rowToUser(row));
|
|
49
|
+
}
|
|
50
|
+
return out;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
39
53
|
* Find user by email (case-insensitive)
|
|
40
54
|
*/
|
|
41
55
|
async findByEmail(email) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
2
|
-
import { n as FIELD_TYPES } from "./types-
|
|
1
|
+
import { a as __exportAll } from "./runner-DzIpHGND.mjs";
|
|
2
|
+
import { n as FIELD_TYPES } from "./types-CJ8DkL0q.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/seed/validate.ts
|
|
5
5
|
/**
|
|
@@ -46,6 +46,9 @@ function validateSeed(data) {
|
|
|
46
46
|
const seed = data;
|
|
47
47
|
if (!seed.version) errors.push("Seed must have a version field");
|
|
48
48
|
else if (seed.version !== "1") errors.push(`Unsupported seed version: ${String(seed.version)}`);
|
|
49
|
+
if (seed.defaultLocale !== void 0) {
|
|
50
|
+
if (typeof seed.defaultLocale !== "string" || seed.defaultLocale.length === 0 || seed.defaultLocale !== seed.defaultLocale.trim()) errors.push("defaultLocale: must be a non-empty string with no leading or trailing whitespace");
|
|
51
|
+
}
|
|
49
52
|
if (seed.collections) if (!Array.isArray(seed.collections)) errors.push("collections must be an array");
|
|
50
53
|
else {
|
|
51
54
|
const collectionSlugs = /* @__PURE__ */ new Set();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as FieldType } from "./types-
|
|
2
|
-
import { t as Database } from "./types-
|
|
1
|
+
import { d as FieldType } from "./types-CwawBUTa.mjs";
|
|
2
|
+
import { t as Database } from "./types-CuJOqHfM.mjs";
|
|
3
3
|
import { d as Storage } from "./types-DZpT-PnG.mjs";
|
|
4
4
|
import { i as SiteSettings } from "./types-nP9vGUFq.mjs";
|
|
5
5
|
import { Kysely } from "kysely";
|
|
@@ -13,6 +13,12 @@ interface SeedFile {
|
|
|
13
13
|
$schema?: string;
|
|
14
14
|
/** Seed format version */
|
|
15
15
|
version: "1";
|
|
16
|
+
/**
|
|
17
|
+
* Default locale for locale-bearing rows (menus, taxonomies, content) that
|
|
18
|
+
* omit an explicit `locale`. This lets non-`en` single-locale projects
|
|
19
|
+
* survive export-seed -> seed round-trips outside the Astro runtime.
|
|
20
|
+
*/
|
|
21
|
+
defaultLocale?: string;
|
|
16
22
|
/** Metadata about the seed */
|
|
17
23
|
meta?: {
|
|
18
24
|
name?: string;
|
|
@@ -245,6 +251,8 @@ interface SeedApplyOptions {
|
|
|
245
251
|
includeContent?: boolean;
|
|
246
252
|
/** How to handle conflicts (default: "skip") */
|
|
247
253
|
onConflict?: "skip" | "update" | "error";
|
|
254
|
+
/** Repair missing schema storage for existing seed collections before applying content. */
|
|
255
|
+
repairSchema?: boolean;
|
|
248
256
|
/** Base path for local media files (for $media.file resolution) */
|
|
249
257
|
mediaBasePath?: string;
|
|
250
258
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
1
|
+
import { a as __exportAll } from "./runner-DzIpHGND.mjs";
|
|
2
2
|
import { n as hashString } from "./hash-BPmX6P8I.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
@@ -30,6 +30,7 @@ function generateTypeScript(collection) {
|
|
|
30
30
|
lines.push(` updatedAt: Date;`);
|
|
31
31
|
lines.push(` publishedAt: Date | null;`);
|
|
32
32
|
lines.push(` bylines?: ContentBylineCredit[];`);
|
|
33
|
+
lines.push(` terms?: Record<string, TaxonomyTerm[]>;`);
|
|
33
34
|
lines.push(`}`);
|
|
34
35
|
return lines.join("\n");
|
|
35
36
|
}
|
|
@@ -45,7 +46,7 @@ function generateTypesFile(collections) {
|
|
|
45
46
|
lines.push(`/// <reference types="dineway/locals" />`);
|
|
46
47
|
lines.push(``);
|
|
47
48
|
const needsPortableText = collections.some((c) => c.fields.some((f) => f.type === "portableText"));
|
|
48
|
-
const imports = ["ContentBylineCredit"];
|
|
49
|
+
const imports = ["ContentBylineCredit", "TaxonomyTerm"];
|
|
49
50
|
if (needsPortableText) imports.push("PortableTextBlock");
|
|
50
51
|
lines.push(`import type { ${imports.join(", ")} } from "dineway";`);
|
|
51
52
|
lines.push(``);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dineway",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.49",
|
|
4
4
|
"description": "Agentic Website builder for restaurants — structured content meets AI via the Model Context Protocol",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -319,6 +319,7 @@
|
|
|
319
319
|
}
|
|
320
320
|
},
|
|
321
321
|
"dependencies": {
|
|
322
|
+
"@forgeway/sdk": "^1.1.0",
|
|
322
323
|
"@cloudflare/kumo": "^2.3.0",
|
|
323
324
|
"@floating-ui/react": "^0.27.16",
|
|
324
325
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
@@ -355,9 +356,9 @@
|
|
|
355
356
|
"ulidx": "^2.4.1",
|
|
356
357
|
"upng-js": "^2.1.0",
|
|
357
358
|
"zod": "^4.4.1",
|
|
358
|
-
"@dineway-ai/admin": "^0.1.
|
|
359
|
-
"@dineway-ai/auth": "^0.1.
|
|
360
|
-
"@dineway-ai/gutenberg-to-portable-text": "^0.1.
|
|
359
|
+
"@dineway-ai/admin": "^0.1.18",
|
|
360
|
+
"@dineway-ai/auth": "^0.1.18",
|
|
361
|
+
"@dineway-ai/gutenberg-to-portable-text": "^0.1.16"
|
|
361
362
|
},
|
|
362
363
|
"optionalDependencies": {
|
|
363
364
|
"@aws-sdk/client-s3": "^3.1049.0",
|
|
@@ -386,7 +387,7 @@
|
|
|
386
387
|
"vite": "^6.0.0",
|
|
387
388
|
"vitest": "^4.0.18",
|
|
388
389
|
"zod-openapi": "^5.4.6",
|
|
389
|
-
"@dineway-ai/blocks": "^0.1.
|
|
390
|
+
"@dineway-ai/blocks": "^0.1.16"
|
|
390
391
|
},
|
|
391
392
|
"keywords": [
|
|
392
393
|
"astro",
|
|
@@ -16,15 +16,18 @@
|
|
|
16
16
|
* <Image image={post.data.featured_image} class="hero" />
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
+
import { getImage } from "astro:assets";
|
|
19
20
|
import type { HTMLAttributes } from "astro/types";
|
|
20
21
|
import {
|
|
22
|
+
RESPONSIVE_BREAKPOINTS,
|
|
23
|
+
buildResponsiveImage,
|
|
21
24
|
buildRenderMediaUrl,
|
|
22
25
|
getMediaProvider,
|
|
26
|
+
getPublicOrigin,
|
|
27
|
+
toAbsoluteMediaUrl,
|
|
23
28
|
type ImageEmbed,
|
|
24
29
|
type MediaValue,
|
|
25
30
|
} from "dineway/ui/server-runtime";
|
|
26
|
-
// Standard responsive breakpoints
|
|
27
|
-
const BREAKPOINTS = [640, 750, 828, 960, 1080, 1280, 1600, 1920];
|
|
28
31
|
|
|
29
32
|
interface Props extends Omit<
|
|
30
33
|
HTMLAttributes<"img">,
|
|
@@ -75,7 +78,7 @@ function generateSrcset(
|
|
|
75
78
|
maxWidth: number,
|
|
76
79
|
aspectRatio?: number
|
|
77
80
|
): string {
|
|
78
|
-
return
|
|
81
|
+
return RESPONSIVE_BREAKPOINTS.filter((w) => w <= maxWidth * 2) // Include up to 2x for retina
|
|
79
82
|
.map((w) => {
|
|
80
83
|
const h = aspectRatio ? Math.round(w / aspectRatio) : undefined;
|
|
81
84
|
return `${getSrc({ width: w, height: h })} ${w}w`;
|
|
@@ -101,8 +104,22 @@ if (img) {
|
|
|
101
104
|
const providerId = img.provider ?? "local";
|
|
102
105
|
|
|
103
106
|
if (providerId === "local" || img.src) {
|
|
104
|
-
// Local provider or direct src URL
|
|
105
|
-
|
|
107
|
+
// Local provider or direct src URL. Route through Astro's image service
|
|
108
|
+
// when possible; fall back to the plain URL when optimization is unavailable.
|
|
109
|
+
src = img.src || buildLocalImageUrl(img);
|
|
110
|
+
const optimized = await buildResponsiveImage(getImage, {
|
|
111
|
+
src: toAbsoluteMediaUrl(
|
|
112
|
+
src,
|
|
113
|
+
getPublicOrigin(Astro.url, Astro.locals.dineway?.config)
|
|
114
|
+
),
|
|
115
|
+
width: finalWidth,
|
|
116
|
+
height: finalHeight,
|
|
117
|
+
});
|
|
118
|
+
if (optimized) {
|
|
119
|
+
src = optimized.src;
|
|
120
|
+
srcset = optimized.srcset;
|
|
121
|
+
sizes = optimized.sizes;
|
|
122
|
+
}
|
|
106
123
|
} else {
|
|
107
124
|
// External provider
|
|
108
125
|
try {
|
|
@@ -173,6 +190,7 @@ const imgProps: Record<string, unknown> = {
|
|
|
173
190
|
height: finalHeight,
|
|
174
191
|
alt: finalAlt,
|
|
175
192
|
loading: priority ? "eager" : "lazy",
|
|
193
|
+
fetchpriority: priority ? "high" : undefined,
|
|
176
194
|
decoding: "async",
|
|
177
195
|
style: placeholderStyle ? `${baseStyle} ${placeholderStyle}` : baseStyle,
|
|
178
196
|
...attrs,
|
|
@@ -5,13 +5,16 @@
|
|
|
5
5
|
* Renders image blocks from WordPress imports and Dineway media.
|
|
6
6
|
* Uses the provider's getSrc function for responsive srcset generation.
|
|
7
7
|
*/
|
|
8
|
+
import { getImage } from "astro:assets";
|
|
8
9
|
import {
|
|
10
|
+
RESPONSIVE_BREAKPOINTS,
|
|
11
|
+
buildResponsiveImage,
|
|
9
12
|
buildRenderMediaUrl,
|
|
10
13
|
getMediaProvider,
|
|
14
|
+
getPublicOrigin,
|
|
15
|
+
toAbsoluteMediaUrl,
|
|
11
16
|
type ImageEmbed,
|
|
12
17
|
} from "dineway/ui/server-runtime";
|
|
13
|
-
// Standard responsive breakpoints
|
|
14
|
-
const BREAKPOINTS = [640, 750, 828, 960, 1080, 1280, 1600, 1920];
|
|
15
18
|
|
|
16
19
|
export interface Props {
|
|
17
20
|
node: {
|
|
@@ -46,7 +49,7 @@ function generateSrcset(
|
|
|
46
49
|
maxWidth: number,
|
|
47
50
|
aspectRatio?: number,
|
|
48
51
|
): string {
|
|
49
|
-
return
|
|
52
|
+
return RESPONSIVE_BREAKPOINTS.filter((w) => w <= maxWidth * 2)
|
|
50
53
|
.map((w) => {
|
|
51
54
|
const h = aspectRatio ? Math.round(w / aspectRatio) : undefined;
|
|
52
55
|
return `${getSrc({ width: w, height: h })} ${w}w`;
|
|
@@ -132,6 +135,19 @@ if (!src) {
|
|
|
132
135
|
url: asset.url,
|
|
133
136
|
id: asset._ref,
|
|
134
137
|
});
|
|
138
|
+
const optimized = await buildResponsiveImage(getImage, {
|
|
139
|
+
src: toAbsoluteMediaUrl(
|
|
140
|
+
src,
|
|
141
|
+
getPublicOrigin(Astro.url, Astro.locals.dineway?.config)
|
|
142
|
+
),
|
|
143
|
+
width: renderWidth,
|
|
144
|
+
height: renderHeight,
|
|
145
|
+
});
|
|
146
|
+
if (optimized) {
|
|
147
|
+
src = optimized.src;
|
|
148
|
+
srcset = optimized.srcset;
|
|
149
|
+
sizes = optimized.sizes;
|
|
150
|
+
}
|
|
135
151
|
}
|
|
136
152
|
|
|
137
153
|
// Build placeholder background style
|
package/dist/schema-DmHMWnSA.mjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-DTfG5v0G.mjs";
|
|
2
|
-
import { n as SchemaRegistry } from "./registry-Cq3QRBW2.mjs";
|
|
3
|
-
|
|
4
|
-
//#region src/schema/index.ts
|
|
5
|
-
var schema_exports = /* @__PURE__ */ __exportAll({ SchemaRegistry: () => SchemaRegistry });
|
|
6
|
-
|
|
7
|
-
//#endregion
|
|
8
|
-
export { schema_exports as t };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|