dineway 0.1.46 → 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-Bmfii2mH.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 +66 -24
- package/dist/astro/middleware/auth.d.mts +7 -7
- 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.d.mts +2 -1
- package/dist/astro/middleware.mjs +359 -140
- 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/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/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 +3 -3
- package/dist/astro/routes/api/auth/invite/index.mjs +4 -4
- package/dist/astro/routes/api/auth/invite/register-options.mjs +3 -3
- 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/passkey/_id_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/options.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/verify.mjs +3 -3
- package/dist/astro/routes/api/auth/setup-token/index.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/complete.mjs +3 -3
- 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 +1 -1
- 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 +1 -1
- package/dist/astro/routes/api/oauth/device/authorize.mjs +1 -1
- package/dist/astro/routes/api/oauth/device/code.mjs +1 -1
- 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 +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 +4 -4
- package/dist/astro/routes/api/setup/admin.mjs +3 -3
- 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 +19 -19
- package/dist/astro/routes/api/setup/status.mjs +1 -1
- 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 +2 -2
- 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-CaF_xfpj.d.mts → byline-fields-BX7rWKNU.d.mts} +58 -34
- 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 +73 -28
- 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-DRhmPCiE.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-BL5ZRlc1.mjs → device-flow-DygsFPGL.mjs} +1 -1
- package/dist/{fts-manager-EHY2Kes9.mjs → fts-manager-CIZlScg5.mjs} +1 -1
- package/dist/{hitl-requests-B4Hkt0TO.mjs → hitl-requests-CGQwOEiq.mjs} +1 -1
- package/dist/{hitl-route-helpers-CHjdfQ0s.mjs → hitl-route-helpers-GSDLNPpN.mjs} +2 -2
- 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-Dk3_LOfj.mjs → oauth-authorization-D-1p52Je.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-CN6FCpcB.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-BytMc6HO.mjs → setup-complete--PradA4R.mjs} +1 -1
- package/dist/{site-activity-6x1JccoR.mjs → site-activity-D7Xyropw.mjs} +1 -1
- package/dist/{site-context-sN12ehZF.mjs → site-context-DaN9Z91j.mjs} +12 -12
- 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-Cg6ur4zS.mjs +0 -6
- /package/dist/{entity-aliases-uOrKvlPg.mjs → entity-aliases-Egjmqc7I.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,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-eu5UDgHN.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-CwRuZ-u8.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";
|
|
@@ -319,18 +319,17 @@ declare class ContentRepository {
|
|
|
319
319
|
/**
|
|
320
320
|
* Count content items
|
|
321
321
|
*/
|
|
322
|
-
count(type: string, where?:
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
searchColumns?: string[];
|
|
328
|
-
}): Promise<number>;
|
|
322
|
+
count(type: string, where?: FindManyOptions["where"]): Promise<number>;
|
|
323
|
+
/**
|
|
324
|
+
* Distinct, non-null author IDs across non-trashed content in a collection.
|
|
325
|
+
*/
|
|
326
|
+
findDistinctAuthorIds(type: string): Promise<string[]>;
|
|
329
327
|
/**
|
|
330
328
|
* Apply an optional case-insensitive substring search across handler-resolved
|
|
331
329
|
* columns. User input is treated literally by escaping LIKE wildcards.
|
|
332
330
|
*/
|
|
333
331
|
private applySearchFilter;
|
|
332
|
+
private applyDateFilter;
|
|
334
333
|
getStats(type: string): Promise<{
|
|
335
334
|
total: number;
|
|
336
335
|
published: number;
|
|
@@ -357,7 +356,7 @@ declare class ContentRepository {
|
|
|
357
356
|
* This covers both draft-scheduled posts (status='scheduled') and
|
|
358
357
|
* published posts with scheduled draft changes (status='published').
|
|
359
358
|
*/
|
|
360
|
-
findReadyToPublish(type: string): Promise<ContentItem[]>;
|
|
359
|
+
findReadyToPublish(type: string, limit?: number): Promise<ContentItem[]>;
|
|
361
360
|
/**
|
|
362
361
|
* Find all translations in a translation group
|
|
363
362
|
*/
|
|
@@ -373,7 +372,7 @@ declare class ContentRepository {
|
|
|
373
372
|
* `publishedAt` overrides the publication timestamp. If omitted, an existing
|
|
374
373
|
* `published_at` is preserved and first publish falls back to the current time.
|
|
375
374
|
*/
|
|
376
|
-
publish(type: string, id: string, publishedAt?: string): Promise<ContentItem>;
|
|
375
|
+
publish(type: string, id: string, publishedAt?: string, requireScheduledDue?: boolean): Promise<ContentItem>;
|
|
377
376
|
/**
|
|
378
377
|
* Stage an existing revision as the draft for a content item.
|
|
379
378
|
*
|
|
@@ -565,6 +564,62 @@ interface PublicComment {
|
|
|
565
564
|
replies?: PublicComment[];
|
|
566
565
|
}
|
|
567
566
|
//#endregion
|
|
567
|
+
//#region src/database/repositories/relation.d.ts
|
|
568
|
+
interface Relation {
|
|
569
|
+
id: string;
|
|
570
|
+
name: string;
|
|
571
|
+
parentCollection: string;
|
|
572
|
+
childCollection: string;
|
|
573
|
+
parentLabel: string;
|
|
574
|
+
childLabel: string;
|
|
575
|
+
locale: string;
|
|
576
|
+
translationGroup: string;
|
|
577
|
+
}
|
|
578
|
+
interface CreateRelationInput {
|
|
579
|
+
name: string;
|
|
580
|
+
parentCollection: string;
|
|
581
|
+
childCollection: string;
|
|
582
|
+
parentLabel: string;
|
|
583
|
+
childLabel: string;
|
|
584
|
+
locale?: string;
|
|
585
|
+
translationOf?: string;
|
|
586
|
+
}
|
|
587
|
+
interface UpdateRelationInput {
|
|
588
|
+
parentLabel?: string;
|
|
589
|
+
childLabel?: string;
|
|
590
|
+
}
|
|
591
|
+
interface ContentReference {
|
|
592
|
+
id: string;
|
|
593
|
+
relationGroup: string;
|
|
594
|
+
parentGroup: string;
|
|
595
|
+
childGroup: string;
|
|
596
|
+
sortOrder: number;
|
|
597
|
+
}
|
|
598
|
+
declare class RelationRepository {
|
|
599
|
+
private db;
|
|
600
|
+
constructor(db: Kysely<Database>);
|
|
601
|
+
create(input: CreateRelationInput): Promise<Relation>;
|
|
602
|
+
findById(id: string): Promise<Relation | null>;
|
|
603
|
+
findByName(name: string, locale?: string): Promise<Relation | null>;
|
|
604
|
+
findTranslations(translationGroup: string): Promise<Relation[]>;
|
|
605
|
+
list(locale?: string): Promise<Relation[]>;
|
|
606
|
+
findForCollection(collection: string, locale?: string): Promise<Relation[]>;
|
|
607
|
+
update(id: string, input: UpdateRelationInput): Promise<Relation | null>;
|
|
608
|
+
delete(id: string): Promise<boolean>;
|
|
609
|
+
addReference(relation: string, parentGroup: string, childGroup: string, sortOrder?: number): Promise<void>;
|
|
610
|
+
removeReference(relation: string, parentGroup: string, childGroup: string): Promise<void>;
|
|
611
|
+
getChildren(relation: string, parentGroup: string): Promise<ContentReference[]>;
|
|
612
|
+
getParents(relation: string, childGroup: string): Promise<ContentReference[]>;
|
|
613
|
+
setChildren(relation: string, parentGroup: string, childGroups: string[]): Promise<void>;
|
|
614
|
+
clearReferencesForGroup(group: string): Promise<number>;
|
|
615
|
+
countChildren(relation: string, parentGroup: string): Promise<number>;
|
|
616
|
+
countParents(relation: string, childGroup: string): Promise<number>;
|
|
617
|
+
countChildrenForParents(relation: string, parentGroups: string[]): Promise<Map<string, number>>;
|
|
618
|
+
private resolveRelationGroup;
|
|
619
|
+
private rowToReference;
|
|
620
|
+
private rowToRelation;
|
|
621
|
+
}
|
|
622
|
+
//#endregion
|
|
568
623
|
//#region src/fields/types.d.ts
|
|
569
624
|
/**
|
|
570
625
|
* SQLite column types that map from field types
|
|
@@ -677,7 +732,20 @@ declare function handleContentList(db: Kysely<Database>, collection: string, par
|
|
|
677
732
|
order?: "asc" | "desc";
|
|
678
733
|
locale?: string;
|
|
679
734
|
q?: string;
|
|
735
|
+
authorId?: string;
|
|
736
|
+
dateField?: ContentDateField;
|
|
737
|
+
dateFrom?: string;
|
|
738
|
+
dateTo?: string;
|
|
680
739
|
}): Promise<ApiResult<ContentListResponse>>;
|
|
740
|
+
interface ContentAuthor {
|
|
741
|
+
id: string;
|
|
742
|
+
name: string | null;
|
|
743
|
+
email: string;
|
|
744
|
+
avatarUrl: string | null;
|
|
745
|
+
}
|
|
746
|
+
declare function handleContentAuthors(db: Kysely<Database>, collection: string): Promise<ApiResult<{
|
|
747
|
+
items: ContentAuthor[];
|
|
748
|
+
}>>;
|
|
681
749
|
/**
|
|
682
750
|
* Get single content item
|
|
683
751
|
*/
|
|
@@ -785,6 +853,7 @@ declare function handleContentUnschedule(db: Kysely<Database>, collection: strin
|
|
|
785
853
|
*/
|
|
786
854
|
declare function handleContentPublish(db: Kysely<Database>, collection: string, id: string, options?: {
|
|
787
855
|
publishedAt?: string;
|
|
856
|
+
requireScheduledDue?: boolean;
|
|
788
857
|
}): Promise<ApiResult<ContentResponse>>;
|
|
789
858
|
/**
|
|
790
859
|
* Unpublish content (revert to draft).
|
|
@@ -991,6 +1060,20 @@ declare class SchemaRegistry {
|
|
|
991
1060
|
* Create a new field
|
|
992
1061
|
*/
|
|
993
1062
|
createField(collectionSlug: string, input: CreateFieldInput): Promise<Field>;
|
|
1063
|
+
/**
|
|
1064
|
+
* Ensure the content table for an existing collection exists.
|
|
1065
|
+
*
|
|
1066
|
+
* This repairs interrupted schema creation where the metadata row exists but
|
|
1067
|
+
* the physical `ec_*` table was not created.
|
|
1068
|
+
*/
|
|
1069
|
+
ensureCollectionContentTable(collectionSlug: string): Promise<boolean>;
|
|
1070
|
+
/**
|
|
1071
|
+
* Ensure the physical column for an existing field exists on its content table.
|
|
1072
|
+
*
|
|
1073
|
+
* This repairs interrupted field creation where `_dineway_fields` was written
|
|
1074
|
+
* but `ALTER TABLE ec_* ADD COLUMN` did not complete.
|
|
1075
|
+
*/
|
|
1076
|
+
ensureFieldColumn(collectionSlug: string, fieldSlug: string): Promise<boolean>;
|
|
994
1077
|
/**
|
|
995
1078
|
* Update a field
|
|
996
1079
|
*/
|
|
@@ -1559,12 +1642,17 @@ interface CollectionFilter$1 {
|
|
|
1559
1642
|
*/
|
|
1560
1643
|
cursor?: string;
|
|
1561
1644
|
/**
|
|
1562
|
-
* Filter by field values, taxonomy terms, or ranges.
|
|
1645
|
+
* Filter by field values, taxonomy terms, byline credits, or ranges.
|
|
1563
1646
|
*
|
|
1564
|
-
* Taxonomy names are detected automatically and filtered
|
|
1565
|
-
*
|
|
1647
|
+
* Taxonomy names are detected automatically and filtered by term.
|
|
1648
|
+
* The reserved `byline` key filters by byline credit in any position,
|
|
1649
|
+
* not just the primary credit. Other keys are treated as content table
|
|
1650
|
+
* column filters.
|
|
1566
1651
|
*/
|
|
1567
1652
|
where?: Record<string, WhereValue>;
|
|
1653
|
+
/** Case-insensitive substring search across the provided columns. */
|
|
1654
|
+
q?: string;
|
|
1655
|
+
searchColumns?: string[];
|
|
1568
1656
|
/**
|
|
1569
1657
|
* Order results by field(s)
|
|
1570
1658
|
* @default { created_at: "desc" }
|
|
@@ -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
|
|
@@ -2284,14 +2389,14 @@ declare const pluginManifestSchema: z$1.ZodObject<{
|
|
|
2284
2389
|
number: "number";
|
|
2285
2390
|
boolean: "boolean";
|
|
2286
2391
|
file: "file";
|
|
2287
|
-
image: "image";
|
|
2288
2392
|
slug: "slug";
|
|
2289
|
-
datetime: "datetime";
|
|
2290
2393
|
text: "text";
|
|
2291
2394
|
integer: "integer";
|
|
2395
|
+
datetime: "datetime";
|
|
2292
2396
|
select: "select";
|
|
2293
2397
|
multiSelect: "multiSelect";
|
|
2294
2398
|
portableText: "portableText";
|
|
2399
|
+
image: "image";
|
|
2295
2400
|
reference: "reference";
|
|
2296
2401
|
json: "json";
|
|
2297
2402
|
repeater: "repeater";
|
|
@@ -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
|
/**
|
|
@@ -4482,4 +4614,4 @@ declare global {
|
|
|
4482
4614
|
var __dinewayConfig: DinewayConfig | undefined;
|
|
4483
4615
|
}
|
|
4484
4616
|
//#endregion
|
|
4485
|
-
export {
|
|
4617
|
+
export { CreateMenuItemInput as $, hashString as $n, handleContentList as $r, createFilePreviewMiddleware as $t, UpdateWidgetInput as A, ParseResult as Ai, ResolvePathResult as An, MediaListResponse as Ar, GeneratePreviewTokenOptions as At, getTerm as B, FieldDescriptor as Bi, FieldAnnotation as Bn, handleRevisionList as Br, SandboxNotAvailableError as Bt, getWidgetArea as C, CreateMediaInput as Ci, CollectionFilter as Cn, GetSectionsOptions as Cr, renderPreviewLoadingPage as Ct, CreateWidgetInput as D, DatabaseConfig as Di, EditFieldMeta as Dn, getCollectionInfo as Dr, GetPreviewUrlOptions as Dt, CreateWidgetAreaInput as E, ContentRepository as Ei, DinewayCollections as En, UpdateSectionInput as Er, isPreviewRequest as Et, getEntriesByTerm as F, apiSuccess as Fi, getEditMeta as Fn, handleMediaList as Fr, parseContentId as Ft, TaxonomyTermRow as G, EntryFilter as Gn, handleContentCountScheduled as Gr, EmailPipeline as Gt, CreateTermInput as H, ManifestResponse as Hi, createNoop as Hn, generateManifest as Hr, PluginManager as Ht, getEntryTerms as I, handleError as Ii, getTranslations as In, handleMediaUpdate as Ir, verifyPreviewToken as It, getBylineBySlug as J, dinewayLoader as Jn, handleContentDelete as Jr, createHookPipeline as Jt, UpdateTermInput as K, WhereRange as Kn, handleContentCountTrashed as Kr, HookPipeline as Kt, getTaxonomyDef as L, ApiContext as Li, resolveDinewayPath as Ln, RevisionListResponse as Lr, NodeSandboxRunner as Lt, WidgetArea as M, parseBody as Mi, TranslationsResult as Mn, handleMediaCreate as Mr, VerifyPreviewTokenOptions as Mt, WidgetComponentDef as N, parseQuery as Ni, getDinewayCollection as Nn, handleMediaDelete as Nr, VerifyPreviewTokenResult as Nt, PropDef as O, DinewayDatabaseError as Oi, EntryResult as On, SchemaError as Or, buildPreviewUrl as Ot, WidgetType as P, apiError as Pi, getDinewayEntry as Pn, handleMediaGet as Pr, generatePreviewToken as Pt, CreateMenuInput as Q, computeContentHash as Qn, handleContentGetIncludingTrashed as Qr, FilePreviewMiddlewareConfig as Qt, getTaxonomyDefs as R, ContentListResponse as Ri, CMSAnnotation as Rn, RevisionResponse as Rr, createNodeSandboxRunner as Rt, Suggestion as S, PublicComment as Si, CacheHint as Sn, CreateSectionInput as Sr, Snapshot as St, getWidgetComponents as T, MediaRepository as Ti, ContentEntry as Tn, SectionSource as Tr, getPreviewToken as Tt, TaxonomyDef as U, CollectionFilter$1 as Un, handleContentAuthors as Ur, createPluginManager as Ut, getTermsForEntries as V, ListResponse as Vi, createEditable as Vn, handleRevisionRestore as Vr, createNoopSandboxRunner as Vt, TaxonomyTerm as W, EntryData as Wn, handleContentCompare as Wr, PluginRouteError as Wt, getMenu as X, isSafeHref as Xn, handleContentDuplicate as Xr, pluginManifestSchema as Xt, getEntriesByByline as Y, getDb as Yn, handleContentDiscardDraft as Yr, ValidatedPluginManifest as Yt, getMenus as Z, sanitizeHref as Zn, handleContentGet as Zr, definePlugin as Zt, SearchOptions as _, ContentReference as _i, getFallbackChain as _n, SandboxRunnerFactory as _r, AppliedSnapshotMeta as _t, S3StorageConfig as a, handleContentTranslations as ai, SessionDatabaseInfo as an, PortableTextLinkMark as ar, UpdateMenuItemInput as at, SearchStats as b, RelationRepository as bi, AfterCallback as bn, getSection as br, dropSessionDatabaseTables as bt, extractSearchableFields as c, handleContentUpdate as ci, SessionOpenOrCreateOptions as cn, PortableTextTextBlock as cr, getCommentCount as ct, search as d, image as di, buildPreviewSignatureHeader as dn, ProseMirrorMark as dr, getPluginSettings as dt, handleContentListTrashed as ei, FileSessionDatabaseFactory as en, portableTextToProsemirror as er, Menu as et, searchCollection as f, FieldDefinition as fi, defaultPreviewSidecarClient as fn, ProseMirrorNode as fr, getSiteSetting as ft, SearchConfig as g, PortableTextBlock$1 as gi, I18nConfig as gn, SandboxRunner as gr, renderPreviewToolbar as gt, CollectionSearchOptions as h, ImageValue as hi, verifyPreviewSignature as hn, SandboxOptions as hr, PreviewToolbarConfig as ht, LocalStorageConfig as i, handleContentSchedule as ii, SessionDatabaseHandle as in, PortableTextImageBlock as ir, UpdateMenuInput as it, Widget as j, isParseError as ji, TranslationSummary as jn, MediaResponse as jr, PreviewTokenPayload as jt, ReorderWidgetsInput as k, OptionsRepository as ki, InferCollectionData as kn, SchemaRegistry as kr, getPreviewUrl as kt, getSearchStats as l, portableText as li, PreviewSidecarClient as ln, PortableTextUnknownBlock as lr, getComments as lt, FTSManager as m, FileValue as mi, signPreviewUrl as mn, SandboxEmailSendCallback as mr, setSiteSettings as mt, PluginDescriptor as n, handleContentPublish as ni, SessionCleanupResult as nn, PortableTextCodeBlock as nr, MenuItemType as nt, StorageDescriptor as o, handleContentUnpublish as oi, SessionDatabaseLimitError as on, PortableTextMarkDef as or, GetCommentsOptions as ot, searchWithDb as p, FieldUIHints as pi, parsePreviewSignatureHeader as pn, SandboxEmailMessage as pr, getSiteSettings as pt, getByline as q, WhereValue as qn, handleContentCreate as qr, HookResult as qt, getStoredConfig as r, handleContentRestore as ri, SessionDatabaseFactory as rn, PortableTextHtmlBlock as rr, ReorderMenuItemsInput as rt, extractPlainText as s, handleContentUnschedule as si, SessionOpenOptions as sn, PortableTextSpan as sr, GetCommentsResult as st, DinewayConfig as t, handleContentPermanentDelete as ti, FileSessionDatabaseFactoryOptions as tn, prosemirrorToPortableText as tr, MenuItem as tt, getSuggestions as u, reference as ui, PreviewSidecarSignature as un, ProseMirrorDocument as ur, getPluginSetting as ut, SearchResponse as v, CreateRelationInput as vi, getI18nConfig as vn, SandboxedPlugin as vr, ApplySnapshotToDatabaseOptions as vt, getWidgetAreas as w, MediaItem as wi, CollectionResult as wn, Section as wr, isBlockedInPreview as wt, SuggestOptions as x, UpdateRelationInput as xi, after as xn, getSections as xr, getAppliedSnapshotMeta as xt, SearchResult as y, Relation as yi, isI18nEnabled as yn, SerializedRequest as yr, applySnapshotToDatabase as yt, getTaxonomyTerms as z, ContentResponse as zi, EditProxy as zn, handleRevisionGet 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 { Gn as EntryFilter, Jn as dinewayLoader, Un as CollectionFilter, Wn as EntryData, Yn as getDb } from "./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-
|
|
10
|
-
import { t as getMediaProvider } from "./provider-loader-
|
|
9
|
+
import "./validate-BMs11tan.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
2
|
import "./base64-C1Q9yr0B.mjs";
|
|
3
|
-
import "./types-
|
|
4
|
-
import { n as dinewayLoader, r as getDb } from "./loader-
|
|
3
|
+
import "./types-DfuD0Afl.mjs";
|
|
4
|
+
import { n as dinewayLoader, r as getDb } from "./loader-tg63WSY2.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-B-tbV751.mjs";
|
|
2
|
+
import { n as SchemaRegistry } from "./registry-CTkbIDB9.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-B-tbV751.mjs";
|
|
2
2
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
3
|
-
import { t as FTSManager } from "./fts-manager-
|
|
4
|
-
import { r as getDb } from "./loader-
|
|
3
|
+
import { t as FTSManager } from "./fts-manager-CIZlScg5.mjs";
|
|
4
|
+
import { r as getDb } from "./loader-tg63WSY2.mjs";
|
|
5
5
|
import { sql } from "kysely";
|
|
6
6
|
import { toPlainText } from "@portabletext/toolkit";
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as encodeBase64url, n as decodeBase64url } from "./base64-C1Q9yr0B.mjs";
|
|
2
|
-
import { t as OptionsRepository } from "./options-
|
|
2
|
+
import { t as OptionsRepository } from "./options-BvJoSSJR.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-DfuD0Afl.mjs";
|
|
2
|
+
import { r as getDb } from "./loader-tg63WSY2.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-eu5UDgHN.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-BMs11tan.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 "../content-
|
|
2
|
+
import "../content-QaryevFO.mjs";
|
|
3
3
|
import "../base64-C1Q9yr0B.mjs";
|
|
4
|
-
import "../types-
|
|
5
|
-
import "../media-
|
|
6
|
-
import "../taxonomy-
|
|
7
|
-
import "../options-
|
|
8
|
-
import "../redirect-
|
|
9
|
-
import "../request-cache-
|
|
10
|
-
import "../byline-registry-
|
|
11
|
-
import "../byline-
|
|
12
|
-
import "../fts-manager-
|
|
13
|
-
import "../registry-
|
|
14
|
-
import "../loader-
|
|
15
|
-
import "../settings-
|
|
4
|
+
import "../types-DfuD0Afl.mjs";
|
|
5
|
+
import "../media-DUAjMfvR.mjs";
|
|
6
|
+
import "../taxonomy-CBmkmMuU.mjs";
|
|
7
|
+
import "../options-BvJoSSJR.mjs";
|
|
8
|
+
import "../redirect-C2zXRj3c.mjs";
|
|
9
|
+
import "../request-cache-CYMbwZc6.mjs";
|
|
10
|
+
import "../byline-registry-CUSvkasJ.mjs";
|
|
11
|
+
import "../byline-1ntDwv8c.mjs";
|
|
12
|
+
import "../fts-manager-CIZlScg5.mjs";
|
|
13
|
+
import "../registry-CTkbIDB9.mjs";
|
|
14
|
+
import "../loader-tg63WSY2.mjs";
|
|
15
|
+
import "../settings-yLjz_I4T.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-7SYRbz2f.mjs";
|
|
18
|
+
import { t as applySeed } from "../apply-CX3no7XE.mjs";
|
|
19
|
+
import { t as defaultSeed } from "../default-B6iaLvP7.mjs";
|
|
20
|
+
import { n as loadUserSeed, t as loadSeed } from "../load-xE01Jm0V.mjs";
|
|
21
21
|
|
|
22
22
|
export { applySeed, defaultSeed, loadSeed, loadUserSeed, validateSeed };
|
package/dist/seo/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
2
|
-
import { t as CommentRepository } from "./comment-
|
|
2
|
+
import { t as CommentRepository } from "./comment-CXDOQ93N.mjs";
|
|
3
3
|
import { t as escapeHtml } from "./escape-BDgouFFY.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/comments/notifications.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
2
|
-
import { a as getSiteSettingsWithDb, o as setSiteSettings } from "./settings-
|
|
1
|
+
import { a as __exportAll } from "./runner-B-tbV751.mjs";
|
|
2
|
+
import { a as getSiteSettingsWithDb, o as setSiteSettings } from "./settings-yLjz_I4T.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/handlers/settings.ts
|
|
5
5
|
var settings_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as MediaRepository } from "./media-
|
|
2
|
-
import { t as OptionsRepository } from "./options-
|
|
3
|
-
import { n as peekRequestCache, r as requestCached } from "./request-cache-
|
|
4
|
-
import { r as getDb } from "./loader-
|
|
1
|
+
import { t as MediaRepository } from "./media-DUAjMfvR.mjs";
|
|
2
|
+
import { t as OptionsRepository } from "./options-BvJoSSJR.mjs";
|
|
3
|
+
import { n as peekRequestCache, r as requestCached } from "./request-cache-CYMbwZc6.mjs";
|
|
4
|
+
import { r as getDb } from "./loader-tg63WSY2.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/media/url.ts
|
|
7
7
|
const INTERNAL_MEDIA_PREFIX = "/_dineway/api/media/file/";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
2
|
-
import { t as ContentRepository } from "./content-
|
|
3
|
-
import {
|
|
4
|
-
import { t as SiteActivityRepository } from "./site-activity-
|
|
5
|
-
import { t as ReviewRequestRepository } from "./review-requests-
|
|
6
|
-
import { n as normalizeEntityAlias, t as EntityAliasRepository } from "./entity-aliases-
|
|
7
|
-
import { r as isPattern } from "./patterns-
|
|
8
|
-
import { a as ContextRepository, i as parseSiteBriefingScope, l as handlePluginList } from "./briefing-
|
|
9
|
-
import { t as FTSManager } from "./fts-manager-
|
|
10
|
-
import { n as SchemaRegistry } from "./registry-
|
|
11
|
-
import { a as getSiteSettingsWithDb } from "./settings-
|
|
2
|
+
import { t as ContentRepository } from "./content-QaryevFO.mjs";
|
|
3
|
+
import { i as encodeCursor, r as decodeCursor } from "./types-DfuD0Afl.mjs";
|
|
4
|
+
import { t as SiteActivityRepository } from "./site-activity-D7Xyropw.mjs";
|
|
5
|
+
import { t as ReviewRequestRepository } from "./review-requests-gGMyYYhy.mjs";
|
|
6
|
+
import { n as normalizeEntityAlias, t as EntityAliasRepository } from "./entity-aliases-Egjmqc7I.mjs";
|
|
7
|
+
import { r as isPattern } from "./patterns-r-0n824Y.mjs";
|
|
8
|
+
import { a as ContextRepository, i as parseSiteBriefingScope, l as handlePluginList } from "./briefing-gKWiGLt1.mjs";
|
|
9
|
+
import { t as FTSManager } from "./fts-manager-CIZlScg5.mjs";
|
|
10
|
+
import { n as SchemaRegistry } from "./registry-CTkbIDB9.mjs";
|
|
11
|
+
import { a as getSiteSettingsWithDb } from "./settings-yLjz_I4T.mjs";
|
|
12
12
|
import { p as normalizeUrl } from "./utils-wv-zvC-Y.mjs";
|
|
13
|
-
import { t as sanitizeWordPressImportSlug } from "./wordpress-slugs-
|
|
14
|
-
import { s as searchCollection } from "./search-
|
|
13
|
+
import { t as sanitizeWordPressImportSlug } from "./wordpress-slugs-Dvhxh4cl.mjs";
|
|
14
|
+
import { s as searchCollection } from "./search-axGQ1KY3.mjs";
|
|
15
15
|
import { n as assertExperimentalSiteContextWorkflowsEnabled } from "./experimental-workflows-Dh4DUoD_.mjs";
|
|
16
16
|
import { sql } from "kysely";
|
|
17
17
|
import { ulid } from "ulidx";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
2
|
-
import {
|
|
3
|
-
import { n as
|
|
4
|
-
import { a as isMissingTableError, r as getDb } from "./loader-
|
|
1
|
+
import { a as __exportAll } from "./runner-B-tbV751.mjs";
|
|
2
|
+
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-C5zp2xir.mjs";
|
|
3
|
+
import { i as setRequestCacheEntry, n as peekRequestCache, r as requestCached } from "./request-cache-CYMbwZc6.mjs";
|
|
4
|
+
import { a as isMissingTableError, r as getDb } from "./loader-tg63WSY2.mjs";
|
|
5
5
|
import { i as resolveLocaleChain, r as resolveLocale } from "./resolve-DTuDyYKs.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/taxonomies/index.ts
|
|
@@ -94,6 +94,7 @@ async function getTaxonomyTerms(taxonomyName, options = {}) {
|
|
|
94
94
|
name: term.name,
|
|
95
95
|
slug: term.slug,
|
|
96
96
|
label: term.label,
|
|
97
|
+
description: term.data ? JSON.parse(term.data).description : void 0,
|
|
97
98
|
children: [],
|
|
98
99
|
count: counts.get(term.translation_group ?? term.id) ?? 0,
|
|
99
100
|
locale: term.locale,
|
|
@@ -118,10 +119,11 @@ async function getTerm(taxonomyName, slug, options = {}) {
|
|
|
118
119
|
}
|
|
119
120
|
}
|
|
120
121
|
if (!row) return null;
|
|
121
|
-
const count = (await db.selectFrom("content_taxonomies").select((eb) => eb.fn.count("entry_id").as("count")).where("taxonomy_id", "=", row.translation_group ?? row.id).executeTakeFirst())?.count ?? 0;
|
|
122
122
|
let childrenQuery = db.selectFrom("taxonomies").selectAll().where("parent_id", "=", row.id).orderBy("label", "asc");
|
|
123
123
|
if (row.locale) childrenQuery = childrenQuery.where("locale", "=", row.locale);
|
|
124
|
-
const
|
|
124
|
+
const [countResult, childRows] = await Promise.all([db.selectFrom("content_taxonomies").select((eb) => eb.fn.count("entry_id").as("count")).where("taxonomy_id", "=", row.translation_group ?? row.id).executeTakeFirst(), childrenQuery.execute()]);
|
|
125
|
+
const count = countResult?.count ?? 0;
|
|
126
|
+
const children = childRows.map((child) => ({
|
|
125
127
|
id: child.id,
|
|
126
128
|
name: child.name,
|
|
127
129
|
slug: child.slug,
|
|
@@ -283,7 +285,7 @@ function primeEntryTermsCache(collection, entryId, byTaxonomy, applicableTaxonom
|
|
|
283
285
|
* Get entries by term.
|
|
284
286
|
*/
|
|
285
287
|
async function getEntriesByTerm(collection, taxonomyName, termSlug, options = {}) {
|
|
286
|
-
const { getDinewayCollection } = await import("./query-
|
|
288
|
+
const { getDinewayCollection } = await import("./query-BYc3oruA.mjs").then((n) => n.o);
|
|
287
289
|
const queryOptions = { where: { [taxonomyName]: termSlug } };
|
|
288
290
|
if (options.locale !== void 0) queryOptions.locale = options.locale;
|
|
289
291
|
const { entries } = await getDinewayCollection(collection, queryOptions);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
2
|
-
import { t as TaxonomyRepository } from "./taxonomy-
|
|
3
|
-
import { c as invalidateTermCache } from "./taxonomies-
|
|
1
|
+
import { a as __exportAll } from "./runner-B-tbV751.mjs";
|
|
2
|
+
import { t as TaxonomyRepository } from "./taxonomy-CBmkmMuU.mjs";
|
|
3
|
+
import { c as invalidateTermCache } from "./taxonomies-CNOGeC-3.mjs";
|
|
4
4
|
import { ulid } from "ulidx";
|
|
5
5
|
|
|
6
6
|
//#region src/api/handlers/taxonomies.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
1
|
+
import { a as __exportAll } from "./runner-B-tbV751.mjs";
|
|
2
2
|
import { ulid } from "ulidx";
|
|
3
3
|
|
|
4
4
|
//#region src/database/repositories/taxonomy.ts
|
|
@@ -191,7 +191,7 @@ var TaxonomyRepository = class {
|
|
|
191
191
|
*/
|
|
192
192
|
async countEntriesForTerms(translationGroups) {
|
|
193
193
|
if (translationGroups.length === 0) return /* @__PURE__ */ new Map();
|
|
194
|
-
const { chunks, SQL_BATCH_SIZE } = await import("./chunks-
|
|
194
|
+
const { chunks, SQL_BATCH_SIZE } = await import("./chunks-C5zp2xir.mjs").then((n) => n.r);
|
|
195
195
|
const counts = /* @__PURE__ */ new Map();
|
|
196
196
|
for (const chunk of chunks(translationGroups, SQL_BATCH_SIZE)) {
|
|
197
197
|
const rows = await this.db.selectFrom("content_taxonomies").select(["taxonomy_id", (eb) => eb.fn.count("entry_id").as("count")]).where("taxonomy_id", "in", chunk).groupBy("taxonomy_id").execute();
|
|
@@ -31,7 +31,7 @@ type CollectionSource = `template:${string}` | `import:${string}` | "manual" | "
|
|
|
31
31
|
/** Sub-field definition for repeater fields */
|
|
32
32
|
interface RepeaterSubField {
|
|
33
33
|
slug: string;
|
|
34
|
-
type: "string" | "text" | "url" | "number" | "integer" | "boolean" | "datetime" | "select";
|
|
34
|
+
type: "string" | "text" | "url" | "number" | "integer" | "boolean" | "datetime" | "select" | "image";
|
|
35
35
|
label: string;
|
|
36
36
|
required?: boolean;
|
|
37
37
|
options?: string[];
|