dineway 0.1.45 → 0.1.46
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/dist/{activity-events-CpcTzKpF.mjs → activity-events-CNk3clTT.mjs} +1 -1
- package/dist/{allowed-origins-3RuuoFjC.mjs → allowed-origins-DhipQNLb.mjs} +1 -1
- package/dist/api/route-utils.d.mts +9 -10
- package/dist/api/route-utils.mjs +13 -13
- package/dist/api/schemas/index.d.mts +2 -2
- package/dist/api/schemas/index.mjs +4 -4
- package/dist/{api-DkFSCD74.mjs → api-Bmfii2mH.mjs} +101 -56
- package/dist/{api-tokens-BFg7tiOQ.mjs → api-tokens-DtvdtIkm.mjs} +1 -1
- package/dist/{apply-TIoQ00aH.mjs → apply-BpRBCqUt.mjs} +76 -31
- package/dist/astro/index.d.mts +10 -11
- package/dist/astro/index.mjs +23 -3
- package/dist/astro/middleware/auth.d.mts +9 -10
- package/dist/astro/middleware/auth.mjs +5 -5
- package/dist/astro/middleware/redirect.mjs +13 -7
- package/dist/astro/middleware/request-context.mjs +3 -3
- package/dist/astro/middleware/seed.d.mts +1 -1
- package/dist/astro/middleware/seed.mjs +2 -2
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.mjs +120 -82
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +5 -5
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +5 -5
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +4 -4
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +6 -6
- package/dist/astro/routes/api/admin/briefing.mjs +17 -17
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.d.mts +7 -0
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +17 -0
- package/dist/astro/routes/api/admin/byline-fields/_slug_.d.mts +9 -0
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +38 -0
- package/dist/astro/routes/api/admin/byline-fields/index.d.mts +8 -0
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +31 -0
- package/dist/astro/routes/api/admin/byline-fields/reorder.d.mts +7 -0
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +24 -0
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +27 -27
- package/dist/astro/routes/api/admin/bylines/_id_/translations.d.mts +8 -0
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +57 -0
- package/dist/astro/routes/api/admin/bylines/index.mjs +30 -26
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +11 -11
- package/dist/astro/routes/api/admin/comments/_id_.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/bulk.mjs +9 -9
- package/dist/astro/routes/api/admin/comments/counts.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/index.mjs +9 -9
- 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 +27 -27
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +27 -27
- package/dist/astro/routes/api/admin/context/diff.mjs +26 -26
- package/dist/astro/routes/api/admin/context/index.mjs +27 -27
- package/dist/astro/routes/api/admin/context/stale.mjs +26 -26
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +23 -23
- 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 +24 -24
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +2 -2
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +6 -6
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +6 -6
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +48 -44
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +48 -44
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +42 -38
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +47 -43
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +47 -43
- package/dist/astro/routes/api/admin/plugins/index.mjs +42 -38
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +42 -38
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +47 -43
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +42 -38
- package/dist/astro/routes/api/admin/plugins/updates.mjs +42 -38
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +5 -5
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +26 -26
- package/dist/astro/routes/api/admin/review-requests/index.mjs +9 -9
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +42 -38
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +2 -2
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +42 -38
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +1 -1
- package/dist/astro/routes/api/admin/users/_id_/enable.mjs +1 -1
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +5 -5
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
- package/dist/astro/routes/api/admin/users/index.mjs +5 -5
- package/dist/astro/routes/api/auth/dev-bypass.mjs +5 -5
- package/dist/astro/routes/api/auth/invite/accept.mjs +1 -1
- package/dist/astro/routes/api/auth/invite/complete.mjs +9 -9
- package/dist/astro/routes/api/auth/invite/index.mjs +6 -6
- package/dist/astro/routes/api/auth/invite/register-options.mjs +8 -8
- package/dist/astro/routes/api/auth/logout.mjs +2 -2
- package/dist/astro/routes/api/auth/magic-link/send.mjs +8 -8
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +20 -11
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +2 -2
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +5 -5
- package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +10 -10
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +8 -8
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +9 -9
- package/dist/astro/routes/api/auth/passkey/verify.mjs +9 -9
- package/dist/astro/routes/api/auth/setup-token/index.mjs +5 -5
- package/dist/astro/routes/api/auth/setup-token/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/complete.mjs +9 -9
- package/dist/astro/routes/api/auth/signup/request.mjs +8 -8
- package/dist/astro/routes/api/auth/signup/verify.mjs +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +12 -12
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +11 -11
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +9 -9
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +9 -9
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +20 -14
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +12 -10
- package/dist/astro/routes/api/content/_collection_/index.mjs +9 -9
- package/dist/astro/routes/api/content/_collection_/trash.mjs +6 -6
- package/dist/astro/routes/api/dashboard.mjs +8 -8
- package/dist/astro/routes/api/dev/emails.mjs +2 -2
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.d.mts +3 -3
- package/dist/astro/routes/api/import/probe.mjs +10 -10
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +7 -7
- package/dist/astro/routes/api/import/wordpress/execute.mjs +29 -28
- package/dist/astro/routes/api/import/wordpress/media.mjs +10 -10
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +31 -31
- package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.d.mts +5 -1
- package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.mjs +16 -1
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +30 -30
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +13 -13
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +31 -30
- package/dist/astro/routes/api/manifest.mjs +4 -4
- package/dist/astro/routes/api/mcp.mjs +75 -50
- package/dist/astro/routes/api/media/_id_/confirm.mjs +8 -8
- package/dist/astro/routes/api/media/_id_.mjs +6 -6
- package/dist/astro/routes/api/media/file/_...key_.mjs +1 -1
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +2 -2
- package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +2 -2
- package/dist/astro/routes/api/media/providers/index.mjs +2 -2
- package/dist/astro/routes/api/media/upload-url.mjs +10 -10
- package/dist/astro/routes/api/media.mjs +14 -13
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +27 -27
- package/dist/astro/routes/api/menus/_name_/items.mjs +27 -27
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +27 -27
- package/dist/astro/routes/api/menus/_name_/translations.mjs +27 -27
- package/dist/astro/routes/api/menus/_name_.mjs +27 -27
- package/dist/astro/routes/api/menus/index.mjs +27 -27
- package/dist/astro/routes/api/oauth/authorize.mjs +7 -7
- package/dist/astro/routes/api/oauth/device/authorize.mjs +6 -6
- package/dist/astro/routes/api/oauth/device/code.mjs +9 -9
- package/dist/astro/routes/api/oauth/device/token.mjs +8 -8
- package/dist/astro/routes/api/oauth/register.mjs +4 -4
- package/dist/astro/routes/api/oauth/token/refresh.mjs +6 -6
- package/dist/astro/routes/api/oauth/token/revoke.mjs +6 -6
- package/dist/astro/routes/api/oauth/token.mjs +6 -6
- package/dist/astro/routes/api/openapi.json.mjs +10 -7
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +3 -3
- package/dist/astro/routes/api/redirects/404s/index.mjs +10 -10
- package/dist/astro/routes/api/redirects/404s/summary.mjs +10 -10
- package/dist/astro/routes/api/redirects/_id_.mjs +28 -28
- package/dist/astro/routes/api/redirects/index.mjs +28 -28
- package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +2 -2
- package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +2 -2
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +43 -39
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +43 -39
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +43 -39
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +43 -39
- package/dist/astro/routes/api/schema/collections/index.mjs +43 -39
- package/dist/astro/routes/api/schema/index.mjs +7 -7
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +42 -38
- package/dist/astro/routes/api/schema/orphans/index.mjs +42 -38
- package/dist/astro/routes/api/search/enable.mjs +11 -11
- package/dist/astro/routes/api/search/index.mjs +10 -10
- package/dist/astro/routes/api/search/rebuild.mjs +11 -11
- package/dist/astro/routes/api/search/stats.mjs +7 -7
- package/dist/astro/routes/api/search/suggest.mjs +10 -10
- package/dist/astro/routes/api/sections/_slug_.mjs +27 -27
- package/dist/astro/routes/api/sections/index.mjs +27 -27
- package/dist/astro/routes/api/settings/email.mjs +3 -3
- package/dist/astro/routes/api/settings.mjs +27 -27
- package/dist/astro/routes/api/setup/admin-verify.mjs +11 -11
- package/dist/astro/routes/api/setup/admin.mjs +9 -9
- package/dist/astro/routes/api/setup/dev-bypass.mjs +24 -23
- package/dist/astro/routes/api/setup/dev-reset.mjs +1 -1
- package/dist/astro/routes/api/setup/index.mjs +25 -24
- package/dist/astro/routes/api/setup/status.mjs +3 -3
- package/dist/astro/routes/api/snapshot.mjs +7 -6
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +30 -29
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +30 -29
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +30 -29
- package/dist/astro/routes/api/taxonomies/index.mjs +30 -29
- package/dist/astro/routes/api/themes/preview.mjs +4 -4
- package/dist/astro/routes/api/typegen.mjs +4 -4
- package/dist/astro/routes/api/well-known/auth.mjs +2 -2
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +3 -3
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +3 -3
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +26 -26
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +27 -27
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +27 -27
- package/dist/astro/routes/api/widget-areas/_name_.mjs +25 -25
- package/dist/astro/routes/api/widget-areas/index.mjs +27 -27
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +7 -7
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +59 -15
- 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 +16 -14
- package/dist/{audit-NgiRzqP9.mjs → audit-DuRbTm8L.mjs} +1 -1
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/{auth-control-guard-1FHtkDP6.mjs → auth-control-guard-Dr14I98m.mjs} +1 -1
- package/dist/{authorize-BbIhZi3a.mjs → authorize-BLO0m7fW.mjs} +1 -1
- package/dist/{briefing-Jsxs587i.mjs → briefing-BFEWeJtR.mjs} +6 -6
- package/dist/{briefing-DD82WaEy.mjs → briefing-C4fJSVYW.mjs} +1 -1
- package/dist/byline-CXQcMsBu.mjs +628 -0
- package/dist/{bylines-BU6b8jSi.d.mts → byline-fields-CaF_xfpj.d.mts} +146 -15
- package/dist/{import-Br7aP9yh.mjs → byline-fields-D7TJ_oHF.mjs} +57 -3
- package/dist/byline-fields-Dc7L6Yry.mjs +113 -0
- package/dist/byline-registry-CL8BxPPp.mjs +287 -0
- package/dist/bylines-BgriNlW7.mjs +165 -0
- package/dist/bylines-D2vqm1aZ.mjs +163 -0
- package/dist/{cache-DQyZ-QaB.mjs → cache-GRK71jOU.mjs} +2 -2
- package/dist/{chunks-D8KL0nCY.mjs → chunks-DgEw12Bc.mjs} +1 -1
- package/dist/cli/index.mjs +958 -89
- package/dist/client/external-auth-headers.d.mts +1 -1
- package/dist/client/index.d.mts +2 -1
- package/dist/client/index.mjs +5 -2
- package/dist/{comment-BmJXz3lc.mjs → comment-ogMaF1gk.mjs} +1 -1
- package/dist/{comments-yTbeIYc2.mjs → comments-CTSOKrZq.mjs} +1 -1
- package/dist/{connection-BCNICDWN.mjs → connection-CiJWiWya.mjs} +44 -13
- package/dist/{content-DvpMad_N.mjs → content-BfyjOiMi.mjs} +24 -4
- package/dist/content-index-names-Bbu1FY1r.mjs +26 -0
- package/dist/{context-DgqEfcWz.mjs → context-DRhmPCiE.mjs} +2 -2
- package/dist/{context-Ufrm1lOv.mjs → context-ZMHhwzkG.mjs} +8 -8
- package/dist/{context-route-helpers-Dq5U_AXp.mjs → context-route-helpers-YLWx2N1j.mjs} +1 -1
- package/dist/{dashboard-BC9bgPOH.mjs → dashboard-D0gWuzNp.mjs} +4 -4
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.mjs +2 -2
- package/dist/db/libsql.d.mts +1 -1
- package/dist/db/libsql.mjs +1 -1
- package/dist/db/postgres.d.mts +1 -1
- package/dist/db/sqlite.d.mts +1 -1
- package/dist/db/sqlite.mjs +1 -1
- package/dist/{device-flow-CTS91g4A.mjs → device-flow-BL5ZRlc1.mjs} +4 -4
- package/dist/{dialect-helpers-TkdbkFad.mjs → dialect-helpers-fk43GbDb.mjs} +13 -3
- package/dist/{fts-manager-DnfOsF4s.mjs → fts-manager-EHY2Kes9.mjs} +2 -2
- package/dist/{hitl-requests-DaRuZ7tb.mjs → hitl-requests-B4Hkt0TO.mjs} +2 -2
- package/dist/{hitl-route-helpers-DcPySbZ3.mjs → hitl-route-helpers-CHjdfQ0s.mjs} +4 -4
- package/dist/{import-DSXK3aQF.mjs → import-CvHY6sf5.mjs} +3 -3
- package/dist/{index-BwOO3vu2.d.mts → index-DJVaYiUV.d.mts} +2 -2
- package/dist/index.d.mts +16 -17
- package/dist/index.mjs +69 -65
- package/dist/{jsonld-CLbYsYYH.d.mts → jsonld-AcPnCEGD.d.mts} +2 -2
- package/dist/{load-BCCcmoW9.mjs → load-BdbvtoDb.mjs} +1 -1
- package/dist/{loader-p2imNN98.mjs → loader-Y0QvC_QO.mjs} +167 -61
- package/dist/media/index.d.mts +1 -2
- package/dist/media/index.mjs +2 -2
- package/dist/media/local-runtime.d.mts +11 -12
- package/dist/media/local-runtime.mjs +2 -2
- package/dist/{media-Cg4zc9fq.mjs → media-DhBwiCYR.mjs} +6 -1
- package/dist/{media-allowlist-D8gsm8_t.mjs → media-allowlist-BsXkT9RK.mjs} +1 -1
- package/dist/{menus-DOaL6NaF.mjs → menus-BzGQpw9d.mjs} +2 -2
- package/dist/{menus-DzG3-9tQ.mjs → menus-fqqzXyHd.mjs} +5 -5
- package/dist/{oauth-authorization-DyOFXQWq.mjs → oauth-authorization-Dk3_LOfj.mjs} +4 -4
- package/dist/{oauth-clients-BMs_bmoz.mjs → oauth-clients-CzeMGyUU.mjs} +2 -2
- package/dist/page/index.d.mts +2 -2
- package/dist/page/index.mjs +1 -1
- package/dist/{parse-D7Tu6ku4.mjs → parse-CneSgl7-.mjs} +1 -1
- package/dist/{types-cn-fvYQ1.d.mts → placeholder-CXfoCtCd.d.mts} +38 -1
- package/dist/plugin-utils.d.mts +22 -10
- package/dist/plugin-utils.mjs +8 -10
- package/dist/plugins/adapt-sandbox-entry.d.mts +9 -10
- package/dist/plugins/adapt-sandbox-entry.mjs +1 -1
- package/dist/{plugins-DCDVDF4B.mjs → plugins-BQ5Joz6v.mjs} +36 -6
- package/dist/{preview-BhgxNRWI.mjs → preview-D5rvDhRt.mjs} +7 -7
- package/dist/{provider-loader-B19YyyBp.d.mts → provider-loader-B5PMjpN7.d.mts} +1 -1
- package/dist/{query-BnRpB09I.mjs → query-BJuUydtD.mjs} +3 -3
- package/dist/{query-DHvNhBhi.mjs → query-CSx0EdSW.mjs} +30 -18
- package/dist/{rate-limit-BWP_kKiZ.mjs → rate-limit-i0G3IAOX.mjs} +2 -2
- package/dist/{redirect-BaVvo2te.mjs → redirect-BqFMj67n.mjs} +20 -6
- package/dist/{redirects-Ba-lJA5j.mjs → redirects-CJwHl_YG.mjs} +3 -3
- package/dist/{redirects-x5ol_Qj9.mjs → redirects-q_cToaHv.mjs} +29 -8
- package/dist/{registry-i__XP2WV.mjs → registry-Cq3QRBW2.mjs} +14 -5
- package/dist/{request-cache-BpwuE2ix.mjs → request-cache-w5cj5itT.mjs} +9 -1
- package/dist/{request-meta-DUGfAeXy.mjs → request-meta-DAb6xaP9.mjs} +1 -1
- package/dist/resolve-DTuDyYKs.mjs +100 -0
- package/dist/{review-requests-DuIxM4YM.mjs → review-requests-GYqjl2jO.mjs} +1 -1
- package/dist/{review-requests-CTUU_RJm.mjs → review-requests-tPw8_pAO.mjs} +1 -1
- package/dist/{runner-FhUNNaqA.d.mts → runner-Cnz4dl0f.d.mts} +1 -1
- package/dist/{runner-DF2DgD_B.mjs → runner-DTfG5v0G.mjs} +574 -196
- package/dist/{runtime-1bE80cmL.d.mts → runtime-Cd-kjPfN.d.mts} +1155 -273
- package/dist/runtime.d.mts +10 -11
- package/dist/runtime.mjs +4 -4
- package/dist/schema-DmHMWnSA.mjs +8 -0
- package/dist/{search-Cl9preJT.mjs → search-BAiFLz81.mjs} +3 -3
- package/dist/{sections-Zx-2q9IH.mjs → sections-DsuIrFDC.mjs} +2 -2
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +18 -17
- package/dist/seo/index.d.mts +1 -1
- package/dist/seo/index.mjs +1 -0
- package/dist/{seo-CJBiMDkj.mjs → seo-5lJOtB5J.mjs} +4 -2
- package/dist/{seo-BPb_reaG.mjs → seo-uMFBaR8G.mjs} +1 -1
- package/dist/{service-wPGgmbUa.mjs → service-CifrxCru.mjs} +2 -2
- package/dist/{settings-nr15a8uv.mjs → settings-BYGdocdj.mjs} +2 -2
- package/dist/{settings-DORe02PC.mjs → settings-DNRQuX3d.mjs} +3 -3
- package/dist/{site-activity-KFZprBZM.mjs → site-activity-6x1JccoR.mjs} +1 -1
- package/dist/{site-context-DuBQk6Mp.mjs → site-context-sN12ehZF.mjs} +13 -13
- package/dist/storage/local.d.mts +1 -1
- package/dist/storage/local.mjs +1 -1
- package/dist/storage/s3.d.mts +1 -1
- package/dist/storage/s3.mjs +1 -1
- package/dist/{taxonomies-DGaw_-aU.mjs → taxonomies-CQFmkP5u.mjs} +3 -3
- package/dist/{taxonomies-BVBKoXRf.mjs → taxonomies-faQVeMgj.mjs} +7 -32
- package/dist/{taxonomy-BvXRL85P.mjs → taxonomy-BnH-6VsX.mjs} +2 -2
- package/dist/{types-DvwHUku7.d.mts → types-B7_vSiPD.d.mts} +16 -0
- package/dist/{types-D1DjBFA9.mjs → types-Ck7-WoUD.mjs} +1 -1
- package/dist/{types-t7_nCCA9.d.mts → types-DEAQG87T.d.mts} +2 -56
- package/dist/{types-C-CMfzSl.d.mts → types-DYKtk8f1.d.mts} +31 -0
- package/dist/{types-C3Em8xpG.mjs → types-DbZhHtqS.mjs} +23 -1
- package/dist/{types-BIM7jwxr.d.mts → types-UGmU5sWx.d.mts} +1 -1
- package/dist/types-nP9vGUFq.d.mts +56 -0
- package/dist/ui/server-runtime.d.mts +13 -7
- package/dist/ui/server-runtime.mjs +18 -17
- package/dist/{user-2aI21yV1.mjs → user-CqZwN21P.mjs} +1 -1
- package/dist/{validate-CvQ6cvHH.d.mts → validate-BJuG-ISL.d.mts} +21 -3
- package/dist/{validate-JE-WfUQ5.mjs → validate-CK4a1sIF.mjs} +22 -2
- package/dist/version-Cg6ur4zS.mjs +6 -0
- package/dist/{widgets-Cj6ULpED.mjs → widgets-CdDvF4fV.mjs} +2 -2
- package/dist/{wordpress-slugs-hqItqJrQ.mjs → wordpress-slugs-B6Gw9q3Q.mjs} +1 -1
- package/dist/{zod-generator-C4BgFBZV.mjs → zod-generator-D1ROBNuC.mjs} +2 -2
- package/package.json +7 -8
- package/src/components/InlinePortableTextEditor.tsx +66 -0
- package/src/components/code-block-languages.ts +76 -0
- package/src/components/inline-code-block.tsx +241 -0
- package/dist/byline-DpNNSjET.mjs +0 -219
- package/dist/bylines-75_STR73.mjs +0 -114
- package/dist/chunk-ClPoSABd.mjs +0 -21
- package/dist/db-errors-DHJCB_gY.mjs +0 -23
- package/dist/index-Ct0pjZwW.d.mts +0 -835
- package/dist/placeholder-BZpCpid_.d.mts +0 -40
- package/dist/schema-U-SeFWwn.mjs +0 -8
- package/dist/version-DTpFm69w.mjs +0 -6
- /package/dist/{adapters-kZjS7plb.d.mts → adapters-OQCImOL7.d.mts} +0 -0
- /package/dist/{api-tokens-L0o9Bd7v.mjs → api-tokens-CYUoFGo7.mjs} +0 -0
- /package/dist/{challenge-store-cJam-E5R.mjs → challenge-store-CRSz-Xim.mjs} +0 -0
- /package/dist/{components-BJfa-F6n.mjs → components--pg6zBvu.mjs} +0 -0
- /package/dist/{config-XW5tMrH8.mjs → config-CVssduLe.mjs} +0 -0
- /package/dist/{context-types-BrSQNye5.mjs → context-types-DQh_XKkn.mjs} +0 -0
- /package/dist/{cron-D7FDsRu-.mjs → cron-DxCAU_Sn.mjs} +0 -0
- /package/dist/{default-5A3XVR7L.mjs → default-BHauvIdG.mjs} +0 -0
- /package/dist/{email-console-Bs1qKx59.mjs → email-console-BOVqIYpB.mjs} +0 -0
- /package/dist/{error-DLkgOP5m.mjs → error-DCSuUAZW.mjs} +0 -0
- /package/dist/{escape-r8_GbEU2.mjs → escape-BDgouFFY.mjs} +0 -0
- /package/dist/{experimental-workflows-BbZbIEZp.mjs → experimental-workflows-Dh4DUoD_.mjs} +0 -0
- /package/dist/{hash-DFFrkivP.mjs → hash-BPmX6P8I.mjs} +0 -0
- /package/dist/{manifest-schema-C6fzQoWn.mjs → manifest-schema-qh2P7RDX.mjs} +0 -0
- /package/dist/{mime-DYP4V5Ks.mjs → mime-8pAB8-77.mjs} +0 -0
- /package/dist/{mode-Bd55iLcP.mjs → mode-CpyEz8pe.mjs} +0 -0
- /package/dist/{normalize-BY_EJnd9.mjs → normalize-O-hi3a27.mjs} +0 -0
- /package/dist/{oauth-state-store-BRSUEkmx.mjs → oauth-state-store-qncPB_IU.mjs} +0 -0
- /package/dist/{oauth-user-lookup-DdcI8ZVL.mjs → oauth-user-lookup-BFjWF8wK.mjs} +0 -0
- /package/dist/{parser-egIGEco-.mjs → parser-DxfsARXL.mjs} +0 -0
- /package/dist/{passkey-config-AX4sjpQ4.mjs → passkey-config-DzHQK90v.mjs} +0 -0
- /package/dist/{patterns-CiyXeDgr.mjs → patterns-D9iDO3j8.mjs} +0 -0
- /package/dist/{placeholder-b0Ufu0La.mjs → placeholder-BDo81Is5.mjs} +0 -0
- /package/dist/{provider-loader-BdRV01gr.mjs → provider-loader-DzUxejk7.mjs} +0 -0
- /package/dist/{public-url-BL2r8dmQ.mjs → public-url-DLUM5OOv.mjs} +0 -0
- /package/dist/{redirect-Ce_6Yb6z.mjs → redirect-BjIBtDWY.mjs} +0 -0
- /package/dist/{secrets-DfeNNoLa.mjs → secrets-CN6FCpcB.mjs} +0 -0
- /package/dist/{seo-contributions-C0LXoWw3.mjs → seo-contributions-CqVvReEj.mjs} +0 -0
- /package/dist/{setup-complete-C2ztsNhJ.mjs → setup-complete-BytMc6HO.mjs} +0 -0
- /package/dist/{setup-nonce-BTKq7uBi.mjs → setup-nonce-pyGfc9hV.mjs} +0 -0
- /package/dist/{sidecar-client-lrf7ErYJ.mjs → sidecar-client-mJxwayYN.mjs} +0 -0
- /package/dist/{site-url-C18yBhtv.mjs → site-url-C-cu8Ff2.mjs} +0 -0
- /package/dist/{ssrf-KAIQS48_.mjs → ssrf-DiKqWd3N.mjs} +0 -0
- /package/dist/{tokens-CsP8Se8S.mjs → tokens-CjSgb0AC.mjs} +0 -0
- /package/dist/{transport-nNEGdHkI.d.mts → transport-DidKKxvW.d.mts} +0 -0
- /package/dist/{transport-B7kO-4ee.mjs → transport-LSdZVXHF.mjs} +0 -0
- /package/dist/{trusted-proxy-Bbm6PLR6.mjs → trusted-proxy-BgIIcbsN.mjs} +0 -0
- /package/dist/{types-CNNQ8l0v.mjs → types-Cg276-3z.mjs} +0 -0
- /package/dist/{types-BYjPylrZ.d.mts → types-DZpT-PnG.d.mts} +0 -0
- /package/dist/{types-BgE6gMFI.d.mts → types-Dryvv7LH.d.mts} +0 -0
- /package/dist/{types-BBETcziA.d.mts → types-GaCtZ1k9.d.mts} +0 -0
- /package/dist/{url-BzhfYtRn.mjs → url-w7Mp5qAD.mjs} +0 -0
- /package/dist/{utils-FEbQMgB5.mjs → utils-wv-zvC-Y.mjs} +0 -0
package/dist/runtime.d.mts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./types-
|
|
3
|
-
import "./types-
|
|
4
|
-
import "./types-
|
|
5
|
-
import "./runner-
|
|
6
|
-
import "./index-
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import { t as getMediaProvider } from "./provider-loader-B19YyyBp.mjs";
|
|
1
|
+
import { Hn as CollectionFilter, Jn as getDb, Un as EntryData, Wn as EntryFilter, qn as dinewayLoader } from "./runtime-Cd-kjPfN.mjs";
|
|
2
|
+
import "./types-DYKtk8f1.mjs";
|
|
3
|
+
import "./types-UGmU5sWx.mjs";
|
|
4
|
+
import "./types-Dryvv7LH.mjs";
|
|
5
|
+
import "./runner-Cnz4dl0f.mjs";
|
|
6
|
+
import "./index-DJVaYiUV.mjs";
|
|
7
|
+
import "./byline-fields-CaF_xfpj.mjs";
|
|
8
|
+
import "./types-GaCtZ1k9.mjs";
|
|
9
|
+
import "./validate-BJuG-ISL.mjs";
|
|
10
|
+
import { t as getMediaProvider } from "./provider-loader-B5PMjpN7.mjs";
|
|
12
11
|
export { type CollectionFilter, type EntryData, type EntryFilter, dinewayLoader, getDb, getMediaProvider };
|
package/dist/runtime.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./dialect-helpers-
|
|
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-
|
|
5
|
-
import { t as getMediaProvider } from "./provider-loader-
|
|
3
|
+
import "./types-Ck7-WoUD.mjs";
|
|
4
|
+
import { n as dinewayLoader, r as getDb } from "./loader-Y0QvC_QO.mjs";
|
|
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-DTfG5v0G.mjs";
|
|
2
|
+
import { n as SchemaRegistry } from "./registry-Cq3QRBW2.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/schema/index.ts
|
|
5
|
+
var schema_exports = /* @__PURE__ */ __exportAll({ SchemaRegistry: () => SchemaRegistry });
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { schema_exports as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as __exportAll } from "./runner-DTfG5v0G.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-EHY2Kes9.mjs";
|
|
4
|
+
import { r as getDb } from "./loader-Y0QvC_QO.mjs";
|
|
5
5
|
import { sql } from "kysely";
|
|
6
6
|
import { toPlainText } from "@portabletext/toolkit";
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as decodeCursor, r as encodeCursor } from "./types-
|
|
2
|
-
import { r as getDb } from "./loader-
|
|
1
|
+
import { n as decodeCursor, r as encodeCursor } from "./types-Ck7-WoUD.mjs";
|
|
2
|
+
import { r as getDb } from "./loader-Y0QvC_QO.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-DYKtk8f1.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-BJuG-ISL.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,21 +1,22 @@
|
|
|
1
|
-
import "../dialect-helpers-
|
|
2
|
-
import "../content-
|
|
1
|
+
import "../dialect-helpers-fk43GbDb.mjs";
|
|
2
|
+
import "../content-BfyjOiMi.mjs";
|
|
3
3
|
import "../base64-C1Q9yr0B.mjs";
|
|
4
|
-
import "../types-
|
|
5
|
-
import "../media-
|
|
6
|
-
import "../taxonomy-
|
|
4
|
+
import "../types-Ck7-WoUD.mjs";
|
|
5
|
+
import "../media-DhBwiCYR.mjs";
|
|
6
|
+
import "../taxonomy-BnH-6VsX.mjs";
|
|
7
7
|
import "../options-BF11H_FD.mjs";
|
|
8
|
-
import "../redirect-
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
12
|
-
import "../
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
15
|
-
import "../
|
|
16
|
-
import
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import {
|
|
8
|
+
import "../redirect-BqFMj67n.mjs";
|
|
9
|
+
import "../request-cache-w5cj5itT.mjs";
|
|
10
|
+
import "../byline-registry-CL8BxPPp.mjs";
|
|
11
|
+
import "../byline-CXQcMsBu.mjs";
|
|
12
|
+
import "../fts-manager-EHY2Kes9.mjs";
|
|
13
|
+
import "../registry-Cq3QRBW2.mjs";
|
|
14
|
+
import "../loader-Y0QvC_QO.mjs";
|
|
15
|
+
import "../settings-DNRQuX3d.mjs";
|
|
16
|
+
import "../ssrf-DiKqWd3N.mjs";
|
|
17
|
+
import { t as validateSeed } from "../validate-CK4a1sIF.mjs";
|
|
18
|
+
import { t as applySeed } from "../apply-BpRBCqUt.mjs";
|
|
19
|
+
import { t as defaultSeed } from "../default-BHauvIdG.mjs";
|
|
20
|
+
import { n as loadUserSeed, t as loadSeed } from "../load-BdbvtoDb.mjs";
|
|
20
21
|
|
|
21
22
|
export { applySeed, defaultSeed, loadSeed, loadUserSeed, validateSeed };
|
package/dist/seo/index.d.mts
CHANGED
package/dist/seo/index.mjs
CHANGED
|
@@ -60,6 +60,7 @@ function getContentSeo(content) {
|
|
|
60
60
|
*/
|
|
61
61
|
function buildMediaUrl(imageRef, siteUrl) {
|
|
62
62
|
if (ABSOLUTE_URL_RE.test(imageRef)) return imageRef;
|
|
63
|
+
if (imageRef.startsWith("/")) return siteUrl ? `${siteUrl.replace(TRAILING_SLASH_RE, "")}${imageRef}` : imageRef;
|
|
63
64
|
const mediaPath = `/_dineway/api/media/file/${imageRef}`;
|
|
64
65
|
if (siteUrl) return `${siteUrl.replace(TRAILING_SLASH_RE, "")}${mediaPath}`;
|
|
65
66
|
return mediaPath;
|
|
@@ -36,7 +36,7 @@ async function handleSitemapData(db, collectionSlug) {
|
|
|
36
36
|
const tableName = `ec_${col.slug}`;
|
|
37
37
|
try {
|
|
38
38
|
const rows = await sql`
|
|
39
|
-
SELECT c.slug, c.id, c.updated_at
|
|
39
|
+
SELECT c.slug, c.id, c.updated_at, c.locale, c.translation_group
|
|
40
40
|
FROM ${sql.ref(tableName)} c
|
|
41
41
|
LEFT JOIN _dineway_seo s
|
|
42
42
|
ON s.collection = ${col.slug}
|
|
@@ -52,7 +52,9 @@ async function handleSitemapData(db, collectionSlug) {
|
|
|
52
52
|
for (const row of rows.rows) entries.push({
|
|
53
53
|
id: row.id,
|
|
54
54
|
slug: row.slug,
|
|
55
|
-
updatedAt: row.updated_at
|
|
55
|
+
updatedAt: row.updated_at,
|
|
56
|
+
locale: row.locale,
|
|
57
|
+
translationGroup: row.translation_group
|
|
56
58
|
});
|
|
57
59
|
result.push({
|
|
58
60
|
collection: col.slug,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
2
|
-
import { t as CommentRepository } from "./comment-
|
|
3
|
-
import { t as escapeHtml } from "./escape-
|
|
2
|
+
import { t as CommentRepository } from "./comment-ogMaF1gk.mjs";
|
|
3
|
+
import { t as escapeHtml } from "./escape-BDgouFFY.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/comments/notifications.ts
|
|
6
6
|
const NOTIFICATION_SOURCE = "dineway-comments";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as getSiteSettingsWithDb, o as setSiteSettings } from "./settings-
|
|
1
|
+
import { a as __exportAll } from "./runner-DTfG5v0G.mjs";
|
|
2
|
+
import { a as getSiteSettingsWithDb, o as setSiteSettings } from "./settings-DNRQuX3d.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-
|
|
1
|
+
import { t as MediaRepository } from "./media-DhBwiCYR.mjs";
|
|
2
2
|
import { t as OptionsRepository } from "./options-BF11H_FD.mjs";
|
|
3
|
-
import { n as
|
|
4
|
-
import { r as getDb } from "./loader-
|
|
3
|
+
import { n as peekRequestCache, r as requestCached } from "./request-cache-w5cj5itT.mjs";
|
|
4
|
+
import { r as getDb } from "./loader-Y0QvC_QO.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/media/url.ts
|
|
7
7
|
const INTERNAL_MEDIA_PREFIX = "/_dineway/api/media/file/";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
2
|
-
import { t as ContentRepository } from "./content-
|
|
3
|
-
import { n as decodeCursor, r as encodeCursor } from "./types-
|
|
4
|
-
import { t as SiteActivityRepository } from "./site-activity-
|
|
5
|
-
import { t as ReviewRequestRepository } from "./review-requests-
|
|
2
|
+
import { t as ContentRepository } from "./content-BfyjOiMi.mjs";
|
|
3
|
+
import { n as decodeCursor, r as encodeCursor } from "./types-Ck7-WoUD.mjs";
|
|
4
|
+
import { t as SiteActivityRepository } from "./site-activity-6x1JccoR.mjs";
|
|
5
|
+
import { t as ReviewRequestRepository } from "./review-requests-tPw8_pAO.mjs";
|
|
6
6
|
import { n as normalizeEntityAlias, t as EntityAliasRepository } from "./entity-aliases-uOrKvlPg.mjs";
|
|
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-
|
|
12
|
-
import { p as normalizeUrl } from "./utils-
|
|
13
|
-
import { t as sanitizeWordPressImportSlug } from "./wordpress-slugs-
|
|
14
|
-
import { s as searchCollection } from "./search-
|
|
15
|
-
import { n as assertExperimentalSiteContextWorkflowsEnabled } from "./experimental-workflows-
|
|
7
|
+
import { r as isPattern } from "./patterns-D9iDO3j8.mjs";
|
|
8
|
+
import { a as ContextRepository, i as parseSiteBriefingScope, l as handlePluginList } from "./briefing-BFEWeJtR.mjs";
|
|
9
|
+
import { t as FTSManager } from "./fts-manager-EHY2Kes9.mjs";
|
|
10
|
+
import { n as SchemaRegistry } from "./registry-Cq3QRBW2.mjs";
|
|
11
|
+
import { a as getSiteSettingsWithDb } from "./settings-DNRQuX3d.mjs";
|
|
12
|
+
import { p as normalizeUrl } from "./utils-wv-zvC-Y.mjs";
|
|
13
|
+
import { t as sanitizeWordPressImportSlug } from "./wordpress-slugs-B6Gw9q3Q.mjs";
|
|
14
|
+
import { s as searchCollection } from "./search-BAiFLz81.mjs";
|
|
15
|
+
import { n as assertExperimentalSiteContextWorkflowsEnabled } from "./experimental-workflows-Dh4DUoD_.mjs";
|
|
16
16
|
import { sql } from "kysely";
|
|
17
17
|
import { ulid } from "ulidx";
|
|
18
18
|
import { Role } from "@dineway-ai/auth";
|
package/dist/storage/local.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ListOptions, d as Storage, l as SignedUploadOptions, o as ListResult, p as UploadResult, r as DownloadResult, s as LocalStorageConfig, u as SignedUploadUrl } from "../types-
|
|
1
|
+
import { a as ListOptions, d as Storage, l as SignedUploadOptions, o as ListResult, p as UploadResult, r as DownloadResult, s as LocalStorageConfig, u as SignedUploadUrl } from "../types-DZpT-PnG.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/storage/local.d.ts
|
|
4
4
|
/**
|
package/dist/storage/local.mjs
CHANGED
package/dist/storage/s3.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ListOptions, c as S3StorageConfig, d as Storage, l as SignedUploadOptions, o as ListResult, p as UploadResult, r as DownloadResult, u as SignedUploadUrl } from "../types-
|
|
1
|
+
import { a as ListOptions, c as S3StorageConfig, d as Storage, l as SignedUploadOptions, o as ListResult, p as UploadResult, r as DownloadResult, u as SignedUploadUrl } from "../types-DZpT-PnG.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/storage/s3.d.ts
|
|
4
4
|
/**
|
package/dist/storage/s3.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as DinewayStorageError } from "../types-
|
|
1
|
+
import { t as DinewayStorageError } from "../types-Cg276-3z.mjs";
|
|
2
2
|
import { DeleteObjectCommand, GetObjectCommand, HeadObjectCommand, ListObjectsV2Command, PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
|
|
3
3
|
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as TaxonomyRepository } from "./taxonomy-
|
|
3
|
-
import { c as invalidateTermCache } from "./taxonomies-
|
|
1
|
+
import { a as __exportAll } from "./runner-DTfG5v0G.mjs";
|
|
2
|
+
import { t as TaxonomyRepository } from "./taxonomy-BnH-6VsX.mjs";
|
|
3
|
+
import { c as invalidateTermCache } from "./taxonomies-faQVeMgj.mjs";
|
|
4
4
|
import { ulid } from "ulidx";
|
|
5
5
|
|
|
6
6
|
//#region src/api/handlers/taxonomies.ts
|
|
@@ -1,34 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { r as getDb } from "./loader-p2imNN98.mjs";
|
|
7
|
-
import { t as isMissingTableError } from "./db-errors-DHJCB_gY.mjs";
|
|
1
|
+
import { a as __exportAll } from "./runner-DTfG5v0G.mjs";
|
|
2
|
+
import { i as setRequestCacheEntry, n as peekRequestCache, r as requestCached } from "./request-cache-w5cj5itT.mjs";
|
|
3
|
+
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-DgEw12Bc.mjs";
|
|
4
|
+
import { a as isMissingTableError, r as getDb } from "./loader-Y0QvC_QO.mjs";
|
|
5
|
+
import { i as resolveLocaleChain, r as resolveLocale } from "./resolve-DTuDyYKs.mjs";
|
|
8
6
|
|
|
9
|
-
//#region src/i18n/resolve.ts
|
|
10
|
-
/**
|
|
11
|
-
* Shared locale-resolution helpers.
|
|
12
|
-
*
|
|
13
|
-
* An explicit locale wins, then the request-context locale, then the configured
|
|
14
|
-
* defaultLocale when i18n is enabled. If none of those exist, callers should
|
|
15
|
-
* treat the result as "do not filter by locale" for legacy single-locale sites.
|
|
16
|
-
*/
|
|
17
|
-
function resolveLocale(explicit) {
|
|
18
|
-
if (explicit !== void 0) return explicit;
|
|
19
|
-
const ctxLocale = getRequestContext()?.locale;
|
|
20
|
-
if (ctxLocale !== void 0) return ctxLocale;
|
|
21
|
-
const config = getI18nConfig();
|
|
22
|
-
if (config && isI18nEnabled()) return config.defaultLocale;
|
|
23
|
-
}
|
|
24
|
-
function resolveLocaleChain(explicit) {
|
|
25
|
-
const locale = resolveLocale(explicit);
|
|
26
|
-
if (locale === void 0) return [];
|
|
27
|
-
if (!isI18nEnabled()) return [locale];
|
|
28
|
-
return getFallbackChain(locale);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
//#endregion
|
|
32
7
|
//#region src/taxonomies/index.ts
|
|
33
8
|
/**
|
|
34
9
|
* Runtime API for taxonomies.
|
|
@@ -308,7 +283,7 @@ function primeEntryTermsCache(collection, entryId, byTaxonomy, applicableTaxonom
|
|
|
308
283
|
* Get entries by term.
|
|
309
284
|
*/
|
|
310
285
|
async function getEntriesByTerm(collection, taxonomyName, termSlug, options = {}) {
|
|
311
|
-
const { getDinewayCollection } = await import("./query-
|
|
286
|
+
const { getDinewayCollection } = await import("./query-CSx0EdSW.mjs").then((n) => n.o);
|
|
312
287
|
const queryOptions = { where: { [taxonomyName]: termSlug } };
|
|
313
288
|
if (options.locale !== void 0) queryOptions.locale = options.locale;
|
|
314
289
|
const { entries } = await getDinewayCollection(collection, queryOptions);
|
|
@@ -347,4 +322,4 @@ function buildTree(flatTerms, counts) {
|
|
|
347
322
|
}
|
|
348
323
|
|
|
349
324
|
//#endregion
|
|
350
|
-
export { getTaxonomyTerms as a, invalidateTermCache as c,
|
|
325
|
+
export { getTaxonomyTerms as a, invalidateTermCache as c, getTaxonomyDefs as i, taxonomies_exports as l, getEntryTerms as n, getTerm as o, getTaxonomyDef as r, getTermsForEntries as s, getEntriesByTerm as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as __exportAll } from "./runner-DTfG5v0G.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-DgEw12Bc.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();
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { c as CustomFieldValue } from "./types-DEAQG87T.mjs";
|
|
2
|
+
|
|
1
3
|
//#region src/database/repositories/types.d.ts
|
|
2
4
|
interface CreateContentInput {
|
|
3
5
|
type: string;
|
|
@@ -43,11 +45,21 @@ interface BylineSummary {
|
|
|
43
45
|
displayName: string;
|
|
44
46
|
bio: string | null;
|
|
45
47
|
avatarMediaId: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Avatar media storage key, folded in by the content-credit hydration and
|
|
50
|
+
* inferred-author read paths. Plain byline finders leave it null.
|
|
51
|
+
*/
|
|
52
|
+
avatarStorageKey?: string | null;
|
|
53
|
+
/** Avatar media alt text from the same media join. */
|
|
54
|
+
avatarAlt?: string | null;
|
|
46
55
|
websiteUrl: string | null;
|
|
47
56
|
userId: string | null;
|
|
48
57
|
isGuest: boolean;
|
|
49
58
|
createdAt: string;
|
|
50
59
|
updatedAt: string;
|
|
60
|
+
locale: string;
|
|
61
|
+
translationGroup: string | null;
|
|
62
|
+
customFields?: Record<string, CustomFieldValue>;
|
|
51
63
|
}
|
|
52
64
|
interface ContentBylineCredit {
|
|
53
65
|
byline: BylineSummary;
|
|
@@ -61,6 +73,8 @@ interface FindManyOptions {
|
|
|
61
73
|
status?: string;
|
|
62
74
|
authorId?: string;
|
|
63
75
|
locale?: string;
|
|
76
|
+
q?: string;
|
|
77
|
+
searchColumns?: string[];
|
|
64
78
|
};
|
|
65
79
|
orderBy?: {
|
|
66
80
|
field: string;
|
|
@@ -72,6 +86,7 @@ interface FindManyOptions {
|
|
|
72
86
|
interface FindManyResult<T> {
|
|
73
87
|
items: T[];
|
|
74
88
|
nextCursor?: string;
|
|
89
|
+
total?: number;
|
|
75
90
|
}
|
|
76
91
|
interface ContentItem {
|
|
77
92
|
id: string;
|
|
@@ -80,6 +95,7 @@ interface ContentItem {
|
|
|
80
95
|
status: string;
|
|
81
96
|
data: Record<string, unknown>;
|
|
82
97
|
authorId: string | null;
|
|
98
|
+
/** Primary byline translation group once byline i18n is enabled. */
|
|
83
99
|
primaryBylineId: string | null;
|
|
84
100
|
byline?: BylineSummary | null;
|
|
85
101
|
bylines?: ContentBylineCredit[];
|
|
@@ -189,60 +189,6 @@ declare const RESERVED_FIELD_SLUGS: string[];
|
|
|
189
189
|
* Reserved collection slugs that cannot be used
|
|
190
190
|
*/
|
|
191
191
|
declare const RESERVED_COLLECTION_SLUGS: string[];
|
|
192
|
+
type CustomFieldValue = string | boolean | null;
|
|
192
193
|
//#endregion
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Site Settings Types
|
|
196
|
-
*
|
|
197
|
-
* Global configuration for the site (title, logo, social links, etc.)
|
|
198
|
-
*/
|
|
199
|
-
/** Media reference for logo/favicon */
|
|
200
|
-
interface MediaReference {
|
|
201
|
-
mediaId: string;
|
|
202
|
-
alt?: string;
|
|
203
|
-
/** Resolved media URL returned by getSiteSettings()/getSiteSetting(). */
|
|
204
|
-
url?: string;
|
|
205
|
-
/** Resolved MIME type returned by getSiteSettings()/getSiteSetting(). */
|
|
206
|
-
contentType?: string;
|
|
207
|
-
/** Resolved pixel width when known. */
|
|
208
|
-
width?: number;
|
|
209
|
-
/** Resolved pixel height when known. */
|
|
210
|
-
height?: number;
|
|
211
|
-
}
|
|
212
|
-
/** Site-level SEO settings */
|
|
213
|
-
interface SeoSettings {
|
|
214
|
-
/** Separator between page title and site title (e.g., " | ", " — ") */
|
|
215
|
-
titleSeparator?: string;
|
|
216
|
-
/** Default OG image when content has no seo_image */
|
|
217
|
-
defaultOgImage?: MediaReference;
|
|
218
|
-
/** Custom robots.txt content. If unset, a default is generated. */
|
|
219
|
-
robotsTxt?: string;
|
|
220
|
-
/** Google Search Console verification meta tag content */
|
|
221
|
-
googleVerification?: string;
|
|
222
|
-
/** Bing Webmaster Tools verification meta tag content */
|
|
223
|
-
bingVerification?: string;
|
|
224
|
-
}
|
|
225
|
-
/** Site settings schema */
|
|
226
|
-
interface SiteSettings {
|
|
227
|
-
title: string;
|
|
228
|
-
tagline?: string;
|
|
229
|
-
logo?: MediaReference;
|
|
230
|
-
favicon?: MediaReference;
|
|
231
|
-
url?: string;
|
|
232
|
-
postsPerPage: number;
|
|
233
|
-
dateFormat: string;
|
|
234
|
-
timezone: string;
|
|
235
|
-
social?: {
|
|
236
|
-
twitter?: string;
|
|
237
|
-
github?: string;
|
|
238
|
-
facebook?: string;
|
|
239
|
-
instagram?: string;
|
|
240
|
-
linkedin?: string;
|
|
241
|
-
youtube?: string;
|
|
242
|
-
};
|
|
243
|
-
seo?: SeoSettings;
|
|
244
|
-
}
|
|
245
|
-
/** Keys that are valid site settings */
|
|
246
|
-
type SiteSettingKey = keyof SiteSettings;
|
|
247
|
-
//#endregion
|
|
248
|
-
export { RESERVED_COLLECTION_SLUGS as _, Collection as a, UpdateFieldInput as b, CollectionWithFields as c, CreateFieldInput as d, FIELD_TYPE_TO_COLUMN as f, FieldWidgetOptions as g, FieldValidation as h, SiteSettings as i, ColumnType as l, FieldType as m, SeoSettings as n, CollectionSource as o, Field as p, SiteSettingKey as r, CollectionSupport as s, MediaReference as t, CreateCollectionInput as u, RESERVED_FIELD_SLUGS as v, UpdateCollectionInput as y };
|
|
194
|
+
export { UpdateFieldInput as _, ColumnType as a, CustomFieldValue as c, FieldType as d, FieldValidation as f, UpdateCollectionInput as g, RESERVED_FIELD_SLUGS as h, CollectionWithFields as i, FIELD_TYPE_TO_COLUMN as l, RESERVED_COLLECTION_SLUGS as m, CollectionSource as n, CreateCollectionInput as o, FieldWidgetOptions as p, CollectionSupport as r, CreateFieldInput as s, Collection as t, Field as u };
|
|
@@ -542,6 +542,9 @@ interface Database {
|
|
|
542
542
|
_dineway_404_log: NotFoundLogTable;
|
|
543
543
|
_dineway_bylines: BylineTable;
|
|
544
544
|
_dineway_content_bylines: ContentBylineTable;
|
|
545
|
+
_dineway_byline_fields: BylineFieldTable;
|
|
546
|
+
_dineway_byline_field_values: BylineFieldValueTable;
|
|
547
|
+
_dineway_byline_field_group_values: BylineFieldGroupValueTable;
|
|
545
548
|
_dineway_rate_limits: RateLimitTable;
|
|
546
549
|
_dineway_sessions: DinewaySessionTable;
|
|
547
550
|
}
|
|
@@ -580,6 +583,8 @@ interface BylineTable {
|
|
|
580
583
|
is_guest: number;
|
|
581
584
|
created_at: Generated<string>;
|
|
582
585
|
updated_at: Generated<string>;
|
|
586
|
+
locale: Generated<string>;
|
|
587
|
+
translation_group: Generated<string | null>;
|
|
583
588
|
}
|
|
584
589
|
interface ContentBylineTable {
|
|
585
590
|
id: string;
|
|
@@ -590,6 +595,32 @@ interface ContentBylineTable {
|
|
|
590
595
|
role_label: string | null;
|
|
591
596
|
created_at: Generated<string>;
|
|
592
597
|
}
|
|
598
|
+
interface BylineFieldTable {
|
|
599
|
+
id: string;
|
|
600
|
+
slug: string;
|
|
601
|
+
label: string;
|
|
602
|
+
type: string;
|
|
603
|
+
required: number;
|
|
604
|
+
translatable: number;
|
|
605
|
+
validation: string | null;
|
|
606
|
+
sort_order: number;
|
|
607
|
+
created_at: Generated<string>;
|
|
608
|
+
updated_at: Generated<string>;
|
|
609
|
+
}
|
|
610
|
+
interface BylineFieldValueTable {
|
|
611
|
+
byline_id: string;
|
|
612
|
+
field_id: string;
|
|
613
|
+
value: string | null;
|
|
614
|
+
created_at: Generated<string>;
|
|
615
|
+
updated_at: Generated<string>;
|
|
616
|
+
}
|
|
617
|
+
interface BylineFieldGroupValueTable {
|
|
618
|
+
translation_group: string;
|
|
619
|
+
field_id: string;
|
|
620
|
+
value: string | null;
|
|
621
|
+
created_at: Generated<string>;
|
|
622
|
+
updated_at: Generated<string>;
|
|
623
|
+
}
|
|
593
624
|
interface RateLimitTable {
|
|
594
625
|
key: string;
|
|
595
626
|
window: string;
|
|
@@ -74,6 +74,28 @@ const RESERVED_COLLECTION_SLUGS = [
|
|
|
74
74
|
"options",
|
|
75
75
|
"audit_logs"
|
|
76
76
|
];
|
|
77
|
+
const BYLINE_FIELD_TYPES = [
|
|
78
|
+
"string",
|
|
79
|
+
"text",
|
|
80
|
+
"url",
|
|
81
|
+
"boolean",
|
|
82
|
+
"select"
|
|
83
|
+
];
|
|
84
|
+
const RESERVED_BYLINE_FIELD_SLUGS = [
|
|
85
|
+
"id",
|
|
86
|
+
"slug",
|
|
87
|
+
"display_name",
|
|
88
|
+
"bio",
|
|
89
|
+
"avatar_media_id",
|
|
90
|
+
"website_url",
|
|
91
|
+
"user_id",
|
|
92
|
+
"is_guest",
|
|
93
|
+
"locale",
|
|
94
|
+
"translation_group",
|
|
95
|
+
"created_at",
|
|
96
|
+
"updated_at",
|
|
97
|
+
"reorder"
|
|
98
|
+
];
|
|
77
99
|
|
|
78
100
|
//#endregion
|
|
79
|
-
export {
|
|
101
|
+
export { RESERVED_COLLECTION_SLUGS as a, RESERVED_BYLINE_FIELD_SLUGS as i, FIELD_TYPES as n, RESERVED_FIELD_SLUGS as o, FIELD_TYPE_TO_COLUMN as r, BYLINE_FIELD_TYPES as t };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
//#region src/settings/types.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Site Settings Types
|
|
4
|
+
*
|
|
5
|
+
* Global configuration for the site (title, logo, social links, etc.)
|
|
6
|
+
*/
|
|
7
|
+
/** Media reference for logo/favicon */
|
|
8
|
+
interface MediaReference {
|
|
9
|
+
mediaId: string;
|
|
10
|
+
alt?: string;
|
|
11
|
+
/** Resolved media URL returned by getSiteSettings()/getSiteSetting(). */
|
|
12
|
+
url?: string;
|
|
13
|
+
/** Resolved MIME type returned by getSiteSettings()/getSiteSetting(). */
|
|
14
|
+
contentType?: string;
|
|
15
|
+
/** Resolved pixel width when known. */
|
|
16
|
+
width?: number;
|
|
17
|
+
/** Resolved pixel height when known. */
|
|
18
|
+
height?: number;
|
|
19
|
+
}
|
|
20
|
+
/** Site-level SEO settings */
|
|
21
|
+
interface SeoSettings {
|
|
22
|
+
/** Separator between page title and site title (e.g., " | ", " — ") */
|
|
23
|
+
titleSeparator?: string;
|
|
24
|
+
/** Default OG image when content has no seo_image */
|
|
25
|
+
defaultOgImage?: MediaReference;
|
|
26
|
+
/** Custom robots.txt content. If unset, a default is generated. */
|
|
27
|
+
robotsTxt?: string;
|
|
28
|
+
/** Google Search Console verification meta tag content */
|
|
29
|
+
googleVerification?: string;
|
|
30
|
+
/** Bing Webmaster Tools verification meta tag content */
|
|
31
|
+
bingVerification?: string;
|
|
32
|
+
}
|
|
33
|
+
/** Site settings schema */
|
|
34
|
+
interface SiteSettings {
|
|
35
|
+
title: string;
|
|
36
|
+
tagline?: string;
|
|
37
|
+
logo?: MediaReference;
|
|
38
|
+
favicon?: MediaReference;
|
|
39
|
+
url?: string;
|
|
40
|
+
postsPerPage: number;
|
|
41
|
+
dateFormat: string;
|
|
42
|
+
timezone: string;
|
|
43
|
+
social?: {
|
|
44
|
+
twitter?: string;
|
|
45
|
+
github?: string;
|
|
46
|
+
facebook?: string;
|
|
47
|
+
instagram?: string;
|
|
48
|
+
linkedin?: string;
|
|
49
|
+
youtube?: string;
|
|
50
|
+
};
|
|
51
|
+
seo?: SeoSettings;
|
|
52
|
+
}
|
|
53
|
+
/** Keys that are valid site settings */
|
|
54
|
+
type SiteSettingKey = keyof SiteSettings;
|
|
55
|
+
//#endregion
|
|
56
|
+
export { SiteSettings as i, SeoSettings as n, SiteSettingKey as r, MediaReference as t };
|