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,11 +1,11 @@
|
|
|
1
|
-
import { _ as UpdateFieldInput, f as FieldValidation, g as UpdateCollectionInput, i as CollectionWithFields, o as CreateCollectionInput, s as CreateFieldInput, t as Collection, u as Field } from "./types-
|
|
2
|
-
import {
|
|
3
|
-
import { t as Database } from "./types-
|
|
4
|
-
import { A as PageMetadataContribution, B as PluginDefinition, D as PageFragmentContribution, H as PluginManifest, J as RequestMeta, O as PageFragmentEvent, W as PluginStorageConfig, X as ResolvedPlugin, a as CommentAfterModerateEvent, g as EmailMessage, h as CronEvent, j as PageMetadataEvent, r as CommentAfterCreateEvent, s as CommentBeforeCreateEvent, tt as StandardPluginDefinition, w as MediaItem$1 } from "./types-
|
|
1
|
+
import { _ as UpdateFieldInput, f as FieldValidation, g as UpdateCollectionInput, i as CollectionWithFields, o as CreateCollectionInput, s as CreateFieldInput, t as Collection, u as Field } from "./types-CwawBUTa.mjs";
|
|
2
|
+
import { f as UpdateContentInput, i as ContentItem, l as FindManyOptions, o as ContentSeoInput, r as ContentDateField, s as CreateContentInput, t as BylineSummary, u as FindManyResult } from "./types-DRIKLmJI.mjs";
|
|
3
|
+
import { t as Database } from "./types-CuJOqHfM.mjs";
|
|
4
|
+
import { A as PageMetadataContribution, B as PluginDefinition, D as PageFragmentContribution, H as PluginManifest, J as RequestMeta, O as PageFragmentEvent, W as PluginStorageConfig, X as ResolvedPlugin, a as CommentAfterModerateEvent, g as EmailMessage, h as CronEvent, j as PageMetadataEvent, r as CommentAfterCreateEvent, s as CommentBeforeCreateEvent, tt as StandardPluginDefinition, w as MediaItem$1 } from "./types-DSPGWjxO.mjs";
|
|
5
5
|
import { r as AuthProviderDescriptor, t as AuthDescriptor } from "./types-Dryvv7LH.mjs";
|
|
6
6
|
import { t as DatabaseDescriptor } from "./adapters-OQCImOL7.mjs";
|
|
7
7
|
import { _ as MediaValue, m as MediaProviderDescriptor } from "./placeholder-CXfoCtCd.mjs";
|
|
8
|
-
import { S as ContentBylineInput } from "./index-
|
|
8
|
+
import { S as ContentBylineInput } from "./index-CZiWCQDp.mjs";
|
|
9
9
|
import { d as Storage } from "./types-DZpT-PnG.mjs";
|
|
10
10
|
import { i as SiteSettings, r as SiteSettingKey } from "./types-nP9vGUFq.mjs";
|
|
11
11
|
import { Kysely } from "kysely";
|
|
@@ -227,6 +227,119 @@ interface DatabaseConfig {
|
|
|
227
227
|
authToken?: string;
|
|
228
228
|
}
|
|
229
229
|
//#endregion
|
|
230
|
+
//#region src/loader.d.ts
|
|
231
|
+
/**
|
|
232
|
+
* Entry data type - generic object
|
|
233
|
+
*/
|
|
234
|
+
type EntryData = Record<string, unknown>;
|
|
235
|
+
/**
|
|
236
|
+
* Sort direction
|
|
237
|
+
*/
|
|
238
|
+
type SortDirection$1 = "asc" | "desc";
|
|
239
|
+
/**
|
|
240
|
+
* Order by specification - field name to direction
|
|
241
|
+
* @example { created_at: "desc" } - Sort by created_at descending
|
|
242
|
+
* @example { title: "asc" } - Sort by title ascending
|
|
243
|
+
*/
|
|
244
|
+
type OrderBySpec$1 = Record<string, SortDirection$1>;
|
|
245
|
+
/**
|
|
246
|
+
* Range filter for comparison operators on field values.
|
|
247
|
+
* ISO 8601 timestamps sort lexicographically in the same order as time.
|
|
248
|
+
*/
|
|
249
|
+
interface WhereRange {
|
|
250
|
+
gt?: string;
|
|
251
|
+
gte?: string;
|
|
252
|
+
lt?: string;
|
|
253
|
+
lte?: string;
|
|
254
|
+
}
|
|
255
|
+
type WhereValue = string | string[] | WhereRange;
|
|
256
|
+
/**
|
|
257
|
+
* Filter for loadCollection - type is required
|
|
258
|
+
*/
|
|
259
|
+
interface CollectionFilter$1 {
|
|
260
|
+
type: string;
|
|
261
|
+
status?: "draft" | "published" | "archived";
|
|
262
|
+
limit?: number;
|
|
263
|
+
/**
|
|
264
|
+
* Opaque cursor for keyset pagination.
|
|
265
|
+
* Pass the `nextCursor` value from a previous result to fetch the next page.
|
|
266
|
+
*/
|
|
267
|
+
cursor?: string;
|
|
268
|
+
/**
|
|
269
|
+
* Filter by field values, taxonomy terms, byline credits, or ranges.
|
|
270
|
+
*
|
|
271
|
+
* Taxonomy names are detected automatically and filtered by term.
|
|
272
|
+
* The reserved `byline` key filters by byline credit in any position,
|
|
273
|
+
* not just the primary credit. Other keys are treated as content table
|
|
274
|
+
* column filters.
|
|
275
|
+
*/
|
|
276
|
+
where?: Record<string, WhereValue>;
|
|
277
|
+
/** Case-insensitive substring search across the provided columns. */
|
|
278
|
+
q?: string;
|
|
279
|
+
searchColumns?: string[];
|
|
280
|
+
/**
|
|
281
|
+
* Order results by field(s)
|
|
282
|
+
* @default { created_at: "desc" }
|
|
283
|
+
*/
|
|
284
|
+
orderBy?: OrderBySpec$1;
|
|
285
|
+
/**
|
|
286
|
+
* Filter by locale (e.g. 'en', 'fr').
|
|
287
|
+
* When set, only returns content in this locale.
|
|
288
|
+
*/
|
|
289
|
+
locale?: string;
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Filter for loadEntry - type and id are required
|
|
293
|
+
*/
|
|
294
|
+
interface EntryFilter {
|
|
295
|
+
type: string;
|
|
296
|
+
id: string;
|
|
297
|
+
/**
|
|
298
|
+
* When set, fetch content data from this revision instead of the content table.
|
|
299
|
+
* Used by preview mode to serve draft revision data.
|
|
300
|
+
*/
|
|
301
|
+
revisionId?: string;
|
|
302
|
+
/**
|
|
303
|
+
* Locale to scope slug lookup. Only affects slug resolution;
|
|
304
|
+
* IDs are globally unique and always resolve regardless of locale.
|
|
305
|
+
*/
|
|
306
|
+
locale?: string;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Get the database instance. Used by query wrapper functions and middleware.
|
|
310
|
+
*
|
|
311
|
+
* Checks the ALS request context first — if a per-request DB override is set
|
|
312
|
+
* (e.g. by preview or playground middleware), it takes precedence over the
|
|
313
|
+
* module-level cached instance. This allows preview flows to route queries
|
|
314
|
+
* to an isolated session database without modifying any calling code.
|
|
315
|
+
*
|
|
316
|
+
* Initializes the default database on first call using config from virtual module.
|
|
317
|
+
*/
|
|
318
|
+
declare function getDb(): Promise<Kysely<Database>>;
|
|
319
|
+
/**
|
|
320
|
+
* Create a Dineway Live Collections loader
|
|
321
|
+
*
|
|
322
|
+
* This loader handles ALL content types in a single Astro collection.
|
|
323
|
+
* Use `getDinewayCollection()` and `getDinewayEntry()` to query
|
|
324
|
+
* specific content types.
|
|
325
|
+
*
|
|
326
|
+
* Database is configured in astro.config.mjs via the dineway() integration.
|
|
327
|
+
*
|
|
328
|
+
* @example
|
|
329
|
+
* ```ts
|
|
330
|
+
* // src/live.config.ts
|
|
331
|
+
* import { defineLiveCollection } from "astro:content";
|
|
332
|
+
* import { dinewayLoader } from "dineway";
|
|
333
|
+
*
|
|
334
|
+
* export const collections = {
|
|
335
|
+
* dineway: defineLiveCollection({
|
|
336
|
+
* loader: dinewayLoader(),
|
|
337
|
+
* }),
|
|
338
|
+
* };
|
|
339
|
+
* ```
|
|
340
|
+
*/
|
|
341
|
+
declare function dinewayLoader(): LiveLoader<EntryData, EntryFilter, CollectionFilter$1>;
|
|
342
|
+
//#endregion
|
|
230
343
|
//#region src/database/repositories/content.d.ts
|
|
231
344
|
/**
|
|
232
345
|
* Repository for content CRUD operations
|
|
@@ -319,18 +432,17 @@ declare class ContentRepository {
|
|
|
319
432
|
/**
|
|
320
433
|
* Count content items
|
|
321
434
|
*/
|
|
322
|
-
count(type: string, where?:
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
searchColumns?: string[];
|
|
328
|
-
}): Promise<number>;
|
|
435
|
+
count(type: string, where?: FindManyOptions["where"]): Promise<number>;
|
|
436
|
+
/**
|
|
437
|
+
* Distinct, non-null author IDs across non-trashed content in a collection.
|
|
438
|
+
*/
|
|
439
|
+
findDistinctAuthorIds(type: string): Promise<string[]>;
|
|
329
440
|
/**
|
|
330
441
|
* Apply an optional case-insensitive substring search across handler-resolved
|
|
331
442
|
* columns. User input is treated literally by escaping LIKE wildcards.
|
|
332
443
|
*/
|
|
333
444
|
private applySearchFilter;
|
|
445
|
+
private applyDateFilter;
|
|
334
446
|
getStats(type: string): Promise<{
|
|
335
447
|
total: number;
|
|
336
448
|
published: number;
|
|
@@ -357,7 +469,7 @@ declare class ContentRepository {
|
|
|
357
469
|
* This covers both draft-scheduled posts (status='scheduled') and
|
|
358
470
|
* published posts with scheduled draft changes (status='published').
|
|
359
471
|
*/
|
|
360
|
-
findReadyToPublish(type: string): Promise<ContentItem[]>;
|
|
472
|
+
findReadyToPublish(type: string, limit?: number): Promise<ContentItem[]>;
|
|
361
473
|
/**
|
|
362
474
|
* Find all translations in a translation group
|
|
363
475
|
*/
|
|
@@ -373,7 +485,7 @@ declare class ContentRepository {
|
|
|
373
485
|
* `publishedAt` overrides the publication timestamp. If omitted, an existing
|
|
374
486
|
* `published_at` is preserved and first publish falls back to the current time.
|
|
375
487
|
*/
|
|
376
|
-
publish(type: string, id: string, publishedAt?: string): Promise<ContentItem>;
|
|
488
|
+
publish(type: string, id: string, publishedAt?: string, requireScheduledDue?: boolean): Promise<ContentItem>;
|
|
377
489
|
/**
|
|
378
490
|
* Stage an existing revision as the draft for a content item.
|
|
379
491
|
*
|
|
@@ -565,6 +677,62 @@ interface PublicComment {
|
|
|
565
677
|
replies?: PublicComment[];
|
|
566
678
|
}
|
|
567
679
|
//#endregion
|
|
680
|
+
//#region src/database/repositories/relation.d.ts
|
|
681
|
+
interface Relation {
|
|
682
|
+
id: string;
|
|
683
|
+
name: string;
|
|
684
|
+
parentCollection: string;
|
|
685
|
+
childCollection: string;
|
|
686
|
+
parentLabel: string;
|
|
687
|
+
childLabel: string;
|
|
688
|
+
locale: string;
|
|
689
|
+
translationGroup: string;
|
|
690
|
+
}
|
|
691
|
+
interface CreateRelationInput {
|
|
692
|
+
name: string;
|
|
693
|
+
parentCollection: string;
|
|
694
|
+
childCollection: string;
|
|
695
|
+
parentLabel: string;
|
|
696
|
+
childLabel: string;
|
|
697
|
+
locale?: string;
|
|
698
|
+
translationOf?: string;
|
|
699
|
+
}
|
|
700
|
+
interface UpdateRelationInput {
|
|
701
|
+
parentLabel?: string;
|
|
702
|
+
childLabel?: string;
|
|
703
|
+
}
|
|
704
|
+
interface ContentReference {
|
|
705
|
+
id: string;
|
|
706
|
+
relationGroup: string;
|
|
707
|
+
parentGroup: string;
|
|
708
|
+
childGroup: string;
|
|
709
|
+
sortOrder: number;
|
|
710
|
+
}
|
|
711
|
+
declare class RelationRepository {
|
|
712
|
+
private db;
|
|
713
|
+
constructor(db: Kysely<Database>);
|
|
714
|
+
create(input: CreateRelationInput): Promise<Relation>;
|
|
715
|
+
findById(id: string): Promise<Relation | null>;
|
|
716
|
+
findByName(name: string, locale?: string): Promise<Relation | null>;
|
|
717
|
+
findTranslations(translationGroup: string): Promise<Relation[]>;
|
|
718
|
+
list(locale?: string): Promise<Relation[]>;
|
|
719
|
+
findForCollection(collection: string, locale?: string): Promise<Relation[]>;
|
|
720
|
+
update(id: string, input: UpdateRelationInput): Promise<Relation | null>;
|
|
721
|
+
delete(id: string): Promise<boolean>;
|
|
722
|
+
addReference(relation: string, parentGroup: string, childGroup: string, sortOrder?: number): Promise<void>;
|
|
723
|
+
removeReference(relation: string, parentGroup: string, childGroup: string): Promise<void>;
|
|
724
|
+
getChildren(relation: string, parentGroup: string): Promise<ContentReference[]>;
|
|
725
|
+
getParents(relation: string, childGroup: string): Promise<ContentReference[]>;
|
|
726
|
+
setChildren(relation: string, parentGroup: string, childGroups: string[]): Promise<void>;
|
|
727
|
+
clearReferencesForGroup(group: string): Promise<number>;
|
|
728
|
+
countChildren(relation: string, parentGroup: string): Promise<number>;
|
|
729
|
+
countParents(relation: string, childGroup: string): Promise<number>;
|
|
730
|
+
countChildrenForParents(relation: string, parentGroups: string[]): Promise<Map<string, number>>;
|
|
731
|
+
private resolveRelationGroup;
|
|
732
|
+
private rowToReference;
|
|
733
|
+
private rowToRelation;
|
|
734
|
+
}
|
|
735
|
+
//#endregion
|
|
568
736
|
//#region src/fields/types.d.ts
|
|
569
737
|
/**
|
|
570
738
|
* SQLite column types that map from field types
|
|
@@ -677,7 +845,20 @@ declare function handleContentList(db: Kysely<Database>, collection: string, par
|
|
|
677
845
|
order?: "asc" | "desc";
|
|
678
846
|
locale?: string;
|
|
679
847
|
q?: string;
|
|
848
|
+
authorId?: string;
|
|
849
|
+
dateField?: ContentDateField;
|
|
850
|
+
dateFrom?: string;
|
|
851
|
+
dateTo?: string;
|
|
680
852
|
}): Promise<ApiResult<ContentListResponse>>;
|
|
853
|
+
interface ContentAuthor {
|
|
854
|
+
id: string;
|
|
855
|
+
name: string | null;
|
|
856
|
+
email: string;
|
|
857
|
+
avatarUrl: string | null;
|
|
858
|
+
}
|
|
859
|
+
declare function handleContentAuthors(db: Kysely<Database>, collection: string): Promise<ApiResult<{
|
|
860
|
+
items: ContentAuthor[];
|
|
861
|
+
}>>;
|
|
681
862
|
/**
|
|
682
863
|
* Get single content item
|
|
683
864
|
*/
|
|
@@ -785,6 +966,7 @@ declare function handleContentUnschedule(db: Kysely<Database>, collection: strin
|
|
|
785
966
|
*/
|
|
786
967
|
declare function handleContentPublish(db: Kysely<Database>, collection: string, id: string, options?: {
|
|
787
968
|
publishedAt?: string;
|
|
969
|
+
requireScheduledDue?: boolean;
|
|
788
970
|
}): Promise<ApiResult<ContentResponse>>;
|
|
789
971
|
/**
|
|
790
972
|
* Unpublish content (revert to draft).
|
|
@@ -991,6 +1173,20 @@ declare class SchemaRegistry {
|
|
|
991
1173
|
* Create a new field
|
|
992
1174
|
*/
|
|
993
1175
|
createField(collectionSlug: string, input: CreateFieldInput): Promise<Field>;
|
|
1176
|
+
/**
|
|
1177
|
+
* Ensure the content table for an existing collection exists.
|
|
1178
|
+
*
|
|
1179
|
+
* This repairs interrupted schema creation where the metadata row exists but
|
|
1180
|
+
* the physical `ec_*` table was not created.
|
|
1181
|
+
*/
|
|
1182
|
+
ensureCollectionContentTable(collectionSlug: string): Promise<boolean>;
|
|
1183
|
+
/**
|
|
1184
|
+
* Ensure the physical column for an existing field exists on its content table.
|
|
1185
|
+
*
|
|
1186
|
+
* This repairs interrupted field creation where `_dineway_fields` was written
|
|
1187
|
+
* but `ALTER TABLE ec_* ADD COLUMN` did not complete.
|
|
1188
|
+
*/
|
|
1189
|
+
ensureFieldColumn(collectionSlug: string, fieldSlug: string): Promise<boolean>;
|
|
994
1190
|
/**
|
|
995
1191
|
* Update a field
|
|
996
1192
|
*/
|
|
@@ -1520,114 +1716,6 @@ declare function sanitizeHref(url: string | undefined | null): string;
|
|
|
1520
1716
|
*/
|
|
1521
1717
|
declare function isSafeHref(url: string): boolean;
|
|
1522
1718
|
//#endregion
|
|
1523
|
-
//#region src/loader.d.ts
|
|
1524
|
-
/**
|
|
1525
|
-
* Entry data type - generic object
|
|
1526
|
-
*/
|
|
1527
|
-
type EntryData = Record<string, unknown>;
|
|
1528
|
-
/**
|
|
1529
|
-
* Sort direction
|
|
1530
|
-
*/
|
|
1531
|
-
type SortDirection$1 = "asc" | "desc";
|
|
1532
|
-
/**
|
|
1533
|
-
* Order by specification - field name to direction
|
|
1534
|
-
* @example { created_at: "desc" } - Sort by created_at descending
|
|
1535
|
-
* @example { title: "asc" } - Sort by title ascending
|
|
1536
|
-
*/
|
|
1537
|
-
type OrderBySpec$1 = Record<string, SortDirection$1>;
|
|
1538
|
-
/**
|
|
1539
|
-
* Range filter for comparison operators on field values.
|
|
1540
|
-
* ISO 8601 timestamps sort lexicographically in the same order as time.
|
|
1541
|
-
*/
|
|
1542
|
-
interface WhereRange {
|
|
1543
|
-
gt?: string;
|
|
1544
|
-
gte?: string;
|
|
1545
|
-
lt?: string;
|
|
1546
|
-
lte?: string;
|
|
1547
|
-
}
|
|
1548
|
-
type WhereValue = string | string[] | WhereRange;
|
|
1549
|
-
/**
|
|
1550
|
-
* Filter for loadCollection - type is required
|
|
1551
|
-
*/
|
|
1552
|
-
interface CollectionFilter$1 {
|
|
1553
|
-
type: string;
|
|
1554
|
-
status?: "draft" | "published" | "archived";
|
|
1555
|
-
limit?: number;
|
|
1556
|
-
/**
|
|
1557
|
-
* Opaque cursor for keyset pagination.
|
|
1558
|
-
* Pass the `nextCursor` value from a previous result to fetch the next page.
|
|
1559
|
-
*/
|
|
1560
|
-
cursor?: string;
|
|
1561
|
-
/**
|
|
1562
|
-
* Filter by field values, taxonomy terms, or ranges.
|
|
1563
|
-
*
|
|
1564
|
-
* Taxonomy names are detected automatically and filtered via JOIN.
|
|
1565
|
-
* Other keys are treated as content table column filters.
|
|
1566
|
-
*/
|
|
1567
|
-
where?: Record<string, WhereValue>;
|
|
1568
|
-
/**
|
|
1569
|
-
* Order results by field(s)
|
|
1570
|
-
* @default { created_at: "desc" }
|
|
1571
|
-
*/
|
|
1572
|
-
orderBy?: OrderBySpec$1;
|
|
1573
|
-
/**
|
|
1574
|
-
* Filter by locale (e.g. 'en', 'fr').
|
|
1575
|
-
* When set, only returns content in this locale.
|
|
1576
|
-
*/
|
|
1577
|
-
locale?: string;
|
|
1578
|
-
}
|
|
1579
|
-
/**
|
|
1580
|
-
* Filter for loadEntry - type and id are required
|
|
1581
|
-
*/
|
|
1582
|
-
interface EntryFilter {
|
|
1583
|
-
type: string;
|
|
1584
|
-
id: string;
|
|
1585
|
-
/**
|
|
1586
|
-
* When set, fetch content data from this revision instead of the content table.
|
|
1587
|
-
* Used by preview mode to serve draft revision data.
|
|
1588
|
-
*/
|
|
1589
|
-
revisionId?: string;
|
|
1590
|
-
/**
|
|
1591
|
-
* Locale to scope slug lookup. Only affects slug resolution;
|
|
1592
|
-
* IDs are globally unique and always resolve regardless of locale.
|
|
1593
|
-
*/
|
|
1594
|
-
locale?: string;
|
|
1595
|
-
}
|
|
1596
|
-
/**
|
|
1597
|
-
* Get the database instance. Used by query wrapper functions and middleware.
|
|
1598
|
-
*
|
|
1599
|
-
* Checks the ALS request context first — if a per-request DB override is set
|
|
1600
|
-
* (e.g. by preview or playground middleware), it takes precedence over the
|
|
1601
|
-
* module-level cached instance. This allows preview flows to route queries
|
|
1602
|
-
* to an isolated session database without modifying any calling code.
|
|
1603
|
-
*
|
|
1604
|
-
* Initializes the default database on first call using config from virtual module.
|
|
1605
|
-
*/
|
|
1606
|
-
declare function getDb(): Promise<Kysely<Database>>;
|
|
1607
|
-
/**
|
|
1608
|
-
* Create a Dineway Live Collections loader
|
|
1609
|
-
*
|
|
1610
|
-
* This loader handles ALL content types in a single Astro collection.
|
|
1611
|
-
* Use `getDinewayCollection()` and `getDinewayEntry()` to query
|
|
1612
|
-
* specific content types.
|
|
1613
|
-
*
|
|
1614
|
-
* Database is configured in astro.config.mjs via the dineway() integration.
|
|
1615
|
-
*
|
|
1616
|
-
* @example
|
|
1617
|
-
* ```ts
|
|
1618
|
-
* // src/live.config.ts
|
|
1619
|
-
* import { defineLiveCollection } from "astro:content";
|
|
1620
|
-
* import { dinewayLoader } from "dineway";
|
|
1621
|
-
*
|
|
1622
|
-
* export const collections = {
|
|
1623
|
-
* dineway: defineLiveCollection({
|
|
1624
|
-
* loader: dinewayLoader(),
|
|
1625
|
-
* }),
|
|
1626
|
-
* };
|
|
1627
|
-
* ```
|
|
1628
|
-
*/
|
|
1629
|
-
declare function dinewayLoader(): LiveLoader<EntryData, EntryFilter, CollectionFilter$1>;
|
|
1630
|
-
//#endregion
|
|
1631
1719
|
//#region src/visual-editing/editable.d.ts
|
|
1632
1720
|
/**
|
|
1633
1721
|
* Visual editing annotation system
|
|
@@ -1735,17 +1823,30 @@ interface CollectionFilter {
|
|
|
1735
1823
|
*/
|
|
1736
1824
|
cursor?: string;
|
|
1737
1825
|
/**
|
|
1738
|
-
* Filter by field values, taxonomy terms, or ranges.
|
|
1826
|
+
* Filter by field values, taxonomy terms, byline credits, or ranges.
|
|
1739
1827
|
*
|
|
1740
|
-
* Taxonomy names are detected automatically and filtered
|
|
1828
|
+
* Taxonomy names are detected automatically and filtered by term.
|
|
1829
|
+
* The reserved `byline` key filters by byline credit in any position,
|
|
1830
|
+
* not just the primary credit. It accepts one or more byline translation
|
|
1831
|
+
* groups, or concrete byline row IDs.
|
|
1741
1832
|
* Other keys are treated as content table column filters.
|
|
1742
1833
|
*
|
|
1743
1834
|
* @example { category: 'news' } - Filter by taxonomy term
|
|
1744
1835
|
* @example { category: ['news', 'featured'] } - Filter by multiple terms (OR)
|
|
1836
|
+
* @example { byline: '01HXYZ...' } - Entries credited to a byline (any position)
|
|
1837
|
+
* @example { byline: ['01HXYZ...', '01HABC...'] } - Credited to any of these bylines (OR)
|
|
1745
1838
|
* @example { series: 'main' } - Exact match on a content field
|
|
1746
1839
|
* @example { published_at: { gte: '2024-01-01', lt: '2025-01-01' } } - Date range
|
|
1747
1840
|
*/
|
|
1748
1841
|
where?: Record<string, WhereValue>;
|
|
1842
|
+
/**
|
|
1843
|
+
* Case-insensitive substring search across selected content fields.
|
|
1844
|
+
*
|
|
1845
|
+
* `searchColumns` must contain concrete field slugs or system column names.
|
|
1846
|
+
* When `q` is present without `searchColumns`, no search condition is applied.
|
|
1847
|
+
*/
|
|
1848
|
+
q?: string;
|
|
1849
|
+
searchColumns?: string[];
|
|
1749
1850
|
/**
|
|
1750
1851
|
* Order results by field(s)
|
|
1751
1852
|
* @default { created_at: "desc" }
|
|
@@ -1789,6 +1890,10 @@ interface CollectionResult<T> {
|
|
|
1789
1890
|
* Pass this as `cursor` in the next query to get the next page.
|
|
1790
1891
|
*/
|
|
1791
1892
|
nextCursor?: string;
|
|
1893
|
+
/**
|
|
1894
|
+
* Total number of entries matching the current filter, excluding cursor and limit.
|
|
1895
|
+
*/
|
|
1896
|
+
total?: number;
|
|
1792
1897
|
}
|
|
1793
1898
|
/**
|
|
1794
1899
|
* Result from getDinewayEntry
|
|
@@ -2285,8 +2390,8 @@ declare const pluginManifestSchema: z$1.ZodObject<{
|
|
|
2285
2390
|
boolean: "boolean";
|
|
2286
2391
|
file: "file";
|
|
2287
2392
|
image: "image";
|
|
2288
|
-
slug: "slug";
|
|
2289
2393
|
datetime: "datetime";
|
|
2394
|
+
slug: "slug";
|
|
2290
2395
|
text: "text";
|
|
2291
2396
|
integer: "integer";
|
|
2292
2397
|
select: "select";
|
|
@@ -3519,6 +3624,33 @@ declare function getByline(id: string): Promise<BylineSummary | null>;
|
|
|
3519
3624
|
declare function getBylineBySlug(slug: string, options?: {
|
|
3520
3625
|
locale?: string;
|
|
3521
3626
|
}): Promise<BylineSummary | null>;
|
|
3627
|
+
/**
|
|
3628
|
+
* Get content entries credited to a byline, in any credit position.
|
|
3629
|
+
*
|
|
3630
|
+
* Unlike filtering on `primaryBylineId`, this matches every explicit credit
|
|
3631
|
+
* recorded in `_dineway_content_bylines`, so co-authored entries where the
|
|
3632
|
+
* byline is a secondary credit are included.
|
|
3633
|
+
*
|
|
3634
|
+
* Credits store the byline translation group. Pass
|
|
3635
|
+
* `byline.translationGroup ?? byline.id` from `getByline()` or
|
|
3636
|
+
* `getBylineBySlug()`. Passing a concrete byline row ID is also accepted.
|
|
3637
|
+
*
|
|
3638
|
+
* @example
|
|
3639
|
+
* ```ts
|
|
3640
|
+
* import { getBylineBySlug, getEntriesByByline } from "dineway";
|
|
3641
|
+
*
|
|
3642
|
+
* const byline = await getBylineBySlug("jane-doe");
|
|
3643
|
+
* const posts = byline
|
|
3644
|
+
* ? await getEntriesByByline("posts", byline.translationGroup ?? byline.id)
|
|
3645
|
+
* : [];
|
|
3646
|
+
* ```
|
|
3647
|
+
*/
|
|
3648
|
+
declare function getEntriesByByline(collection: string, byline: string | string[], options?: {
|
|
3649
|
+
locale?: string;
|
|
3650
|
+
orderBy?: OrderBySpec;
|
|
3651
|
+
status?: "draft" | "published" | "archived";
|
|
3652
|
+
limit?: number;
|
|
3653
|
+
}): Promise<ContentEntry[]>;
|
|
3522
3654
|
//#endregion
|
|
3523
3655
|
//#region src/taxonomies/types.d.ts
|
|
3524
3656
|
/**
|
|
@@ -4365,8 +4497,9 @@ interface DinewayConfig {
|
|
|
4365
4497
|
* while the browser uses `https://`, which breaks WebAuthn, CSRF, OAuth, and redirect URLs.
|
|
4366
4498
|
*
|
|
4367
4499
|
* Set to the full origin users type in the address bar (no path), e.g.
|
|
4368
|
-
* `https://mysite.example.com`.
|
|
4369
|
-
*
|
|
4500
|
+
* `https://mysite.example.com`. `DINEWAY_SITE_URL` is an explicit runtime
|
|
4501
|
+
* override for container deployments; otherwise this falls back to `SITE_URL`,
|
|
4502
|
+
* then to the request URL's origin.
|
|
4370
4503
|
*
|
|
4371
4504
|
* Replaces `passkeyPublicOrigin` (which only fixed passkeys).
|
|
4372
4505
|
*/
|
|
@@ -4482,4 +4615,4 @@ declare global {
|
|
|
4482
4615
|
var __dinewayConfig: DinewayConfig | undefined;
|
|
4483
4616
|
}
|
|
4484
4617
|
//#endregion
|
|
4485
|
-
export {
|
|
4618
|
+
export { CreateMenuItemInput as $, PortableTextMarkDef as $n, handleContentUnpublish as $r, createFilePreviewMiddleware as $t, UpdateWidgetInput as A, ParseResult as Ai, ResolvePathResult as An, RevisionListResponse as Ar, GeneratePreviewTokenOptions as At, getTerm as B, FieldDescriptor as Bi, FieldAnnotation as Bn, handleContentCreate as Br, SandboxNotAvailableError as Bt, getWidgetArea as C, WhereRange as Ci, CollectionFilter as Cn, MediaListResponse as Cr, renderPreviewLoadingPage as Ct, CreateWidgetInput as D, DatabaseConfig as Di, EditFieldMeta as Dn, handleMediaGet as Dr, GetPreviewUrlOptions as Dt, CreateWidgetAreaInput as E, getDb as Ei, DinewayCollections as En, handleMediaDelete as Er, isPreviewRequest as Et, getEntriesByTerm as F, apiSuccess as Fi, getEditMeta as Fn, generateManifest as Fr, parseContentId as Ft, TaxonomyTermRow as G, computeContentHash as Gn, handleContentGetIncludingTrashed as Gr, EmailPipeline as Gt, CreateTermInput as H, ManifestResponse as Hi, createNoop as Hn, handleContentDiscardDraft as Hr, PluginManager as Ht, getEntryTerms as I, handleError as Ii, getTranslations as In, handleContentAuthors as Ir, verifyPreviewToken as It, getBylineBySlug as J, prosemirrorToPortableText as Jn, handleContentPermanentDelete as Jr, createHookPipeline as Jt, UpdateTermInput as K, hashString as Kn, handleContentList as Kr, HookPipeline as Kt, getTaxonomyDef as L, ApiContext as Li, resolveDinewayPath as Ln, handleContentCompare as Lr, NodeSandboxRunner as Lt, WidgetArea as M, parseBody as Mi, TranslationsResult as Mn, handleRevisionGet as Mr, VerifyPreviewTokenOptions as Mt, WidgetComponentDef as N, parseQuery as Ni, getDinewayCollection as Nn, handleRevisionList as Nr, VerifyPreviewTokenResult as Nt, PropDef as O, DinewayDatabaseError as Oi, EntryResult as On, handleMediaList as Or, buildPreviewUrl as Ot, WidgetType as P, apiError as Pi, getDinewayEntry as Pn, handleRevisionRestore as Pr, generatePreviewToken as Pt, CreateMenuInput as Q, PortableTextLinkMark as Qn, handleContentTranslations as Qr, FilePreviewMiddlewareConfig as Qt, getTaxonomyDefs as R, ContentListResponse as Ri, CMSAnnotation as Rn, handleContentCountScheduled as Rr, createNodeSandboxRunner as Rt, Suggestion as S, EntryFilter as Si, CacheHint as Sn, SchemaRegistry as Sr, Snapshot as St, getWidgetComponents as T, dinewayLoader as Ti, ContentEntry as Tn, handleMediaCreate as Tr, getPreviewToken as Tt, TaxonomyDef as U, isSafeHref as Un, handleContentDuplicate as Ur, createPluginManager as Ut, getTermsForEntries as V, ListResponse as Vi, createEditable as Vn, handleContentDelete as Vr, createNoopSandboxRunner as Vt, TaxonomyTerm as W, sanitizeHref as Wn, handleContentGet as Wr, PluginRouteError as Wt, getMenu as X, PortableTextHtmlBlock as Xn, handleContentRestore as Xr, pluginManifestSchema as Xt, getEntriesByByline as Y, PortableTextCodeBlock as Yn, handleContentPublish as Yr, ValidatedPluginManifest as Yt, getMenus as Z, PortableTextImageBlock as Zn, handleContentSchedule as Zr, definePlugin as Zt, SearchOptions as _, MediaItem as _i, getFallbackChain as _n, Section as _r, AppliedSnapshotMeta as _t, S3StorageConfig as a, FieldDefinition as ai, SessionDatabaseInfo as an, ProseMirrorNode as ar, UpdateMenuItemInput as at, SearchStats as b, CollectionFilter$1 as bi, AfterCallback as bn, getCollectionInfo as br, dropSessionDatabaseTables as bt, extractSearchableFields as c, ImageValue as ci, SessionOpenOrCreateOptions as cn, SandboxOptions as cr, getCommentCount as ct, search as d, CreateRelationInput as di, buildPreviewSignatureHeader as dn, SandboxedPlugin as dr, getPluginSettings as dt, handleContentUnschedule as ei, FileSessionDatabaseFactory as en, PortableTextSpan as er, Menu as et, searchCollection as f, Relation as fi, defaultPreviewSidecarClient as fn, SerializedRequest as fr, getSiteSetting as ft, SearchConfig as g, CreateMediaInput as gi, I18nConfig as gn, GetSectionsOptions as gr, renderPreviewToolbar as gt, CollectionSearchOptions as h, PublicComment as hi, verifyPreviewSignature as hn, CreateSectionInput as hr, PreviewToolbarConfig as ht, LocalStorageConfig as i, image as ii, SessionDatabaseHandle as in, ProseMirrorMark as ir, UpdateMenuInput as it, Widget as j, isParseError as ji, TranslationSummary as jn, RevisionResponse as jr, PreviewTokenPayload as jt, ReorderWidgetsInput as k, OptionsRepository as ki, InferCollectionData as kn, handleMediaUpdate as kr, getPreviewUrl as kt, getSearchStats as l, PortableTextBlock$1 as li, PreviewSidecarClient as ln, SandboxRunner as lr, getComments as lt, FTSManager as m, UpdateRelationInput as mi, signPreviewUrl as mn, getSections as mr, setSiteSettings as mt, PluginDescriptor as n, portableText as ni, SessionCleanupResult as nn, PortableTextUnknownBlock as nr, MenuItemType as nt, StorageDescriptor as o, FieldUIHints as oi, SessionDatabaseLimitError as on, SandboxEmailMessage as or, GetCommentsOptions as ot, searchWithDb as p, RelationRepository as pi, parsePreviewSignatureHeader as pn, getSection as pr, getSiteSettings as pt, getByline as q, portableTextToProsemirror as qn, handleContentListTrashed as qr, HookResult as qt, getStoredConfig as r, reference as ri, SessionDatabaseFactory as rn, ProseMirrorDocument as rr, ReorderMenuItemsInput as rt, extractPlainText as s, FileValue as si, SessionOpenOptions as sn, SandboxEmailSendCallback as sr, GetCommentsResult as st, DinewayConfig as t, handleContentUpdate as ti, FileSessionDatabaseFactoryOptions as tn, PortableTextTextBlock as tr, MenuItem as tt, getSuggestions as u, ContentReference as ui, PreviewSidecarSignature as un, SandboxRunnerFactory as ur, getPluginSetting as ut, SearchResponse as v, MediaRepository as vi, getI18nConfig as vn, SectionSource as vr, ApplySnapshotToDatabaseOptions as vt, getWidgetAreas as w, WhereValue as wi, CollectionResult as wn, MediaResponse as wr, isBlockedInPreview as wt, SuggestOptions as x, EntryData as xi, after as xn, SchemaError as xr, getAppliedSnapshotMeta as xt, SearchResult as y, ContentRepository as yi, isI18nEnabled as yn, UpdateSectionInput as yr, applySnapshotToDatabase as yt, getTaxonomyTerms as z, ContentResponse as zi, EditProxy as zn, handleContentCountTrashed as zr, NoopSandboxRunner as zt };
|
package/dist/runtime.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./types-
|
|
3
|
-
import "./types-
|
|
1
|
+
import { Ei as getDb, Si as EntryFilter, Ti as dinewayLoader, bi as CollectionFilter, xi as EntryData } from "./runtime-C4-2lSFg.mjs";
|
|
2
|
+
import "./types-CuJOqHfM.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-09sTqtv0.mjs";
|
|
6
|
+
import "./index-CZiWCQDp.mjs";
|
|
7
|
+
import "./byline-fields-uJlygdzM.mjs";
|
|
8
8
|
import "./types-GaCtZ1k9.mjs";
|
|
9
|
-
import "./validate-
|
|
10
|
-
import { t as getMediaProvider } from "./provider-loader-
|
|
9
|
+
import "./validate-DzjCdy6v.mjs";
|
|
10
|
+
import { t as getMediaProvider } from "./provider-loader-9it4vd6L.mjs";
|
|
11
11
|
export { type CollectionFilter, type EntryData, type EntryFilter, dinewayLoader, getDb, getMediaProvider };
|
package/dist/runtime.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./dialect-helpers-fk43GbDb.mjs";
|
|
2
|
-
import "./base64-
|
|
3
|
-
import "./types-
|
|
4
|
-
import { n as dinewayLoader, r as getDb } from "./loader
|
|
2
|
+
import "./base64-F8-DUraK.mjs";
|
|
3
|
+
import "./types-CSgR9nQB.mjs";
|
|
4
|
+
import { n as dinewayLoader, r as getDb } from "./loader--GOYux8M.mjs";
|
|
5
5
|
import { t as getMediaProvider } from "./provider-loader-DzUxejk7.mjs";
|
|
6
6
|
|
|
7
7
|
export { dinewayLoader, getDb, getMediaProvider };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { a as __exportAll } from "./runner-DzIpHGND.mjs";
|
|
2
|
+
import { n as SchemaRegistry } from "./registry-D7HACema.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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
1
|
+
import { a as __exportAll } from "./runner-DzIpHGND.mjs";
|
|
2
2
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { r as getDb } from "./loader--GOYux8M.mjs";
|
|
4
|
+
import { t as FTSManager } from "./fts-manager-B5l_qwrA.mjs";
|
|
5
5
|
import { sql } from "kysely";
|
|
6
6
|
import { toPlainText } from "@portabletext/toolkit";
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as encodeBase64url, n as decodeBase64url } from "./base64-
|
|
2
|
-
import { t as OptionsRepository } from "./options-
|
|
1
|
+
import { i as encodeBase64url, n as decodeBase64url } from "./base64-F8-DUraK.mjs";
|
|
2
|
+
import { t as OptionsRepository } from "./options-LsPjZlqD.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/config/secrets.ts
|
|
5
5
|
const ENCRYPTION_KEY_PREFIX = "dineway_enc_v1_";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as getDb } from "./loader
|
|
1
|
+
import { i as encodeCursor, r as decodeCursor } from "./types-CSgR9nQB.mjs";
|
|
2
|
+
import { r as getDb } from "./loader--GOYux8M.mjs";
|
|
3
3
|
import { ulid } from "ulidx";
|
|
4
4
|
|
|
5
5
|
//#region src/sections/index.ts
|
package/dist/seed/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../types-
|
|
2
|
-
import { _ as SeedTaxonomyTerm, a as applySeed, b as ValidationResult, c as SeedCollection, d as SeedFile, f as SeedMenu, g as SeedTaxonomy, h as SeedSection, i as defaultSeed, l as SeedContentEntry, m as SeedRedirect, n as loadSeed, o as SeedApplyOptions, p as SeedMenuItem, r as loadUserSeed, s as SeedApplyResult, t as validateSeed, u as SeedField, v as SeedWidget, y as SeedWidgetArea } from "../validate-
|
|
1
|
+
import "../types-CuJOqHfM.mjs";
|
|
2
|
+
import { _ as SeedTaxonomyTerm, a as applySeed, b as ValidationResult, c as SeedCollection, d as SeedFile, f as SeedMenu, g as SeedTaxonomy, h as SeedSection, i as defaultSeed, l as SeedContentEntry, m as SeedRedirect, n as loadSeed, o as SeedApplyOptions, p as SeedMenuItem, r as loadUserSeed, s as SeedApplyResult, t as validateSeed, u as SeedField, v as SeedWidget, y as SeedWidgetArea } from "../validate-DzjCdy6v.mjs";
|
|
3
3
|
export { type SeedApplyOptions, type SeedApplyResult, type SeedCollection, type SeedContentEntry, type SeedField, type SeedFile, type SeedMenu, type SeedMenuItem, type SeedRedirect, type SeedSection, type SeedTaxonomy, type SeedTaxonomyTerm, type SeedWidget, type SeedWidgetArea, type ValidationResult, applySeed, defaultSeed, loadSeed, loadUserSeed, validateSeed };
|
package/dist/seed/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import "../dialect-helpers-fk43GbDb.mjs";
|
|
2
|
-
import "../
|
|
3
|
-
import "../
|
|
4
|
-
import "../
|
|
5
|
-
import "../
|
|
6
|
-
import "../
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../byline-
|
|
12
|
-
import "../
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
15
|
-
import "../settings-
|
|
2
|
+
import "../base64-F8-DUraK.mjs";
|
|
3
|
+
import "../types-CSgR9nQB.mjs";
|
|
4
|
+
import "../loader--GOYux8M.mjs";
|
|
5
|
+
import "../content-CBxYGWfL.mjs";
|
|
6
|
+
import "../media-CbKyYukG.mjs";
|
|
7
|
+
import "../taxonomy-B169Nm6B.mjs";
|
|
8
|
+
import "../options-LsPjZlqD.mjs";
|
|
9
|
+
import "../redirect-CEACczxo.mjs";
|
|
10
|
+
import "../request-cache-ho99schz.mjs";
|
|
11
|
+
import "../byline-registry-4v6tXMNX.mjs";
|
|
12
|
+
import "../byline-BVC1lV6G.mjs";
|
|
13
|
+
import "../fts-manager-B5l_qwrA.mjs";
|
|
14
|
+
import "../registry-D7HACema.mjs";
|
|
15
|
+
import "../settings-CUXOxzsT.mjs";
|
|
16
16
|
import "../ssrf-DiKqWd3N.mjs";
|
|
17
|
-
import { t as validateSeed } from "../validate-
|
|
18
|
-
import { t as applySeed } from "../apply-
|
|
19
|
-
import { t as defaultSeed } from "../default-
|
|
20
|
-
import { n as loadUserSeed, t as loadSeed } from "../load-
|
|
17
|
+
import { t as validateSeed } from "../validate-DWmPO6oj.mjs";
|
|
18
|
+
import { t as applySeed } from "../apply-D_RlTYtC.mjs";
|
|
19
|
+
import { t as defaultSeed } from "../default-B6iaLvP7.mjs";
|
|
20
|
+
import { n as loadUserSeed, t as loadSeed } from "../load-D9OiGr2m.mjs";
|
|
21
21
|
|
|
22
22
|
export { applySeed, defaultSeed, loadSeed, loadUserSeed, validateSeed };
|