dineway 0.1.44 → 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-x5yKhnAw.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-DaXfz8wy.d.mts → byline-fields-CaF_xfpj.d.mts} +159 -28
- 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-cudavuns.mjs → context-DRhmPCiE.mjs} +2 -2
- package/dist/{context-Ufrm1lOv.mjs → context-ZMHhwzkG.mjs} +8 -8
- package/dist/{context-route-helpers--PJWR-5R.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-Us2A4Vj5.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-C4ZgKk6r.d.mts → runtime-Cd-kjPfN.d.mts} +1156 -274
- 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-PioVgJAl.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/index.mjs
CHANGED
|
@@ -1,75 +1,79 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./dialect-helpers-
|
|
4
|
-
import { n as
|
|
5
|
-
import { n as
|
|
6
|
-
import { _ as portableTextToProsemirror, a as SandboxNotAvailableError, b as reference, c as createPluginManager, f as HookPipeline, g as after, h as definePlugin, i as NoopSandboxRunner, l as PluginRouteError, n as NodeSandboxRunner, o as createNoopSandboxRunner, p as createHookPipeline, r as createNodeSandboxRunner, s as PluginManager, t as isStandardPluginDefinition, v as prosemirrorToPortableText, x as image, y as portableText } from "./plugins-DCDVDF4B.mjs";
|
|
1
|
+
import { n as getMigrationStatus } from "./runner-DTfG5v0G.mjs";
|
|
2
|
+
import { r as DinewayDatabaseError } from "./connection-CiJWiWya.mjs";
|
|
3
|
+
import "./dialect-helpers-fk43GbDb.mjs";
|
|
4
|
+
import { n as getI18nConfig, r as isI18nEnabled, t as getFallbackChain } from "./config-CVssduLe.mjs";
|
|
5
|
+
import { _ as portableTextToProsemirror, a as SandboxNotAvailableError, b as reference, c as createPluginManager, f as HookPipeline, g as after, h as definePlugin, i as NoopSandboxRunner, l as PluginRouteError, n as NodeSandboxRunner, o as createNoopSandboxRunner, p as createHookPipeline, r as createNodeSandboxRunner, s as PluginManager, t as isStandardPluginDefinition, v as prosemirrorToPortableText, x as image, y as portableText } from "./plugins-BQ5Joz6v.mjs";
|
|
7
6
|
import { t as decodeSlug } from "./slugify-BzGxlOFx.mjs";
|
|
8
|
-
import { t as ContentRepository } from "./content-
|
|
7
|
+
import { t as ContentRepository } from "./content-BfyjOiMi.mjs";
|
|
9
8
|
import "./base64-C1Q9yr0B.mjs";
|
|
10
|
-
import { t as DinewayValidationError } from "./types-
|
|
11
|
-
import { t as MediaRepository } from "./media-
|
|
12
|
-
import "./user-
|
|
13
|
-
import "./taxonomy-
|
|
14
|
-
import "./comment-
|
|
9
|
+
import { t as DinewayValidationError } from "./types-Ck7-WoUD.mjs";
|
|
10
|
+
import { t as MediaRepository } from "./media-DhBwiCYR.mjs";
|
|
11
|
+
import "./user-CqZwN21P.mjs";
|
|
12
|
+
import "./taxonomy-BnH-6VsX.mjs";
|
|
13
|
+
import "./comment-ogMaF1gk.mjs";
|
|
15
14
|
import "./options-BF11H_FD.mjs";
|
|
16
|
-
import "./audit-
|
|
17
|
-
import "./site-activity-
|
|
18
|
-
import "./review-requests-
|
|
15
|
+
import "./audit-DuRbTm8L.mjs";
|
|
16
|
+
import "./site-activity-6x1JccoR.mjs";
|
|
17
|
+
import "./review-requests-tPw8_pAO.mjs";
|
|
19
18
|
import "./entity-aliases-uOrKvlPg.mjs";
|
|
20
|
-
import "./context-
|
|
21
|
-
import "./menus-
|
|
22
|
-
import "./redirect-
|
|
23
|
-
import "./
|
|
24
|
-
import
|
|
25
|
-
import {
|
|
26
|
-
import "./
|
|
27
|
-
import
|
|
28
|
-
import "./
|
|
29
|
-
import "./
|
|
30
|
-
import "./
|
|
31
|
-
import "./
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import "./
|
|
36
|
-
import {
|
|
37
|
-
import "./
|
|
38
|
-
import "./
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import "./
|
|
42
|
-
import "./
|
|
43
|
-
import "./
|
|
44
|
-
import
|
|
45
|
-
import "./
|
|
46
|
-
import
|
|
47
|
-
import "./
|
|
48
|
-
import {
|
|
49
|
-
import
|
|
50
|
-
import "./
|
|
51
|
-
import "./
|
|
52
|
-
import "./
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
19
|
+
import "./context-ZMHhwzkG.mjs";
|
|
20
|
+
import "./menus-BzGQpw9d.mjs";
|
|
21
|
+
import "./redirect-BqFMj67n.mjs";
|
|
22
|
+
import { getRequestContext, runWithContext } from "./request-context.mjs";
|
|
23
|
+
import "./request-cache-w5cj5itT.mjs";
|
|
24
|
+
import { a as RESERVED_COLLECTION_SLUGS, o as RESERVED_FIELD_SLUGS, r as FIELD_TYPE_TO_COLUMN } from "./types-DbZhHtqS.mjs";
|
|
25
|
+
import "./byline-registry-CL8BxPPp.mjs";
|
|
26
|
+
import "./byline-CXQcMsBu.mjs";
|
|
27
|
+
import { t as normalizeMediaValue } from "./normalize-O-hi3a27.mjs";
|
|
28
|
+
import { t as generatePlaceholder } from "./placeholder-BDo81Is5.mjs";
|
|
29
|
+
import "./seo-uMFBaR8G.mjs";
|
|
30
|
+
import { A as handleRevisionGet, B as handleContentDuplicate, D as handleMediaGet, E as handleMediaDelete, F as handleContentCountScheduled, G as handleContentPermanentDelete, H as handleContentGetIncludingTrashed, I as handleContentCountTrashed, J as handleContentSchedule, K as handleContentPublish, L as handleContentCreate, M as handleRevisionRestore, N as generateManifest, O as handleMediaList, P as handleContentCompare, Q as handleContentUpdate, R as handleContentDelete, T as handleMediaCreate, U as handleContentList, V as handleContentGet, W as handleContentListTrashed, X as handleContentUnpublish, Y as handleContentTranslations, Z as handleContentUnschedule, j as handleRevisionList, k as handleMediaUpdate, q as handleContentRestore, z as handleContentDiscardDraft } from "./api-Bmfii2mH.mjs";
|
|
31
|
+
import "./dashboard-D0gWuzNp.mjs";
|
|
32
|
+
import "./briefing-BFEWeJtR.mjs";
|
|
33
|
+
import "./context-types-DQh_XKkn.mjs";
|
|
34
|
+
import { t as FTSManager } from "./fts-manager-EHY2Kes9.mjs";
|
|
35
|
+
import { n as SchemaRegistry, t as SchemaError } from "./registry-Cq3QRBW2.mjs";
|
|
36
|
+
import "./loader-Y0QvC_QO.mjs";
|
|
37
|
+
import { i as getSiteSettings, n as getPluginSettings, o as setSiteSettings, r as getSiteSetting, t as getPluginSetting } from "./settings-DNRQuX3d.mjs";
|
|
38
|
+
import "./briefing-C4fJSVYW.mjs";
|
|
39
|
+
import "./review-requests-GYqjl2jO.mjs";
|
|
40
|
+
import { n as hashString, t as computeContentHash } from "./hash-BPmX6P8I.mjs";
|
|
41
|
+
import { t as getCollectionInfo } from "./query-BJuUydtD.mjs";
|
|
42
|
+
import "./zod-generator-D1ROBNuC.mjs";
|
|
43
|
+
import "./schema-DmHMWnSA.mjs";
|
|
44
|
+
import "./seo-5lJOtB5J.mjs";
|
|
45
|
+
import "./bylines-D2vqm1aZ.mjs";
|
|
46
|
+
import "./byline-fields-Dc7L6Yry.mjs";
|
|
47
|
+
import { o as getSection, s as getSections } from "./sections-DsuIrFDC.mjs";
|
|
48
|
+
import "./settings-BYGdocdj.mjs";
|
|
49
|
+
import "./resolve-DTuDyYKs.mjs";
|
|
50
|
+
import { a as getTaxonomyTerms, i as getTaxonomyDefs, n as getEntryTerms, o as getTerm, r as getTaxonomyDef, s as getTermsForEntries, t as getEntriesByTerm } from "./taxonomies-faQVeMgj.mjs";
|
|
51
|
+
import "./taxonomies-CQFmkP5u.mjs";
|
|
52
|
+
import { i as pluginManifestSchema } from "./manifest-schema-qh2P7RDX.mjs";
|
|
53
|
+
import { t as DinewayStorageError } from "./types-Cg276-3z.mjs";
|
|
54
|
+
import "./parse-CneSgl7-.mjs";
|
|
55
|
+
import "./redirects-q_cToaHv.mjs";
|
|
56
|
+
import "./byline-fields-D7TJ_oHF.mjs";
|
|
57
|
+
import { n as sanitizeHref, t as isSafeHref } from "./url-w7Mp5qAD.mjs";
|
|
58
|
+
import { c as createEditable, i as getTranslations, l as createNoop, n as getDinewayEntry, r as getEditMeta, s as resolveDinewayPath, t as getDinewayCollection } from "./query-CSx0EdSW.mjs";
|
|
59
|
+
import { a as verifyPreviewSignature, i as signPreviewUrl, n as defaultPreviewSidecarClient, r as parsePreviewSignatureHeader, t as buildPreviewSignatureHeader } from "./sidecar-client-mJxwayYN.mjs";
|
|
60
|
+
import { a as createFilePreviewMiddleware, c as dropSessionDatabaseTables, d as SessionDatabaseLimitError, f as isBlockedInPreview, i as getPreviewUrl, l as getAppliedSnapshotMeta, n as isPreviewRequest, o as renderPreviewToolbar, p as renderPreviewLoadingPage, r as buildPreviewUrl, s as applySnapshotToDatabase, t as getPreviewToken, u as FileSessionDatabaseFactory } from "./preview-D5rvDhRt.mjs";
|
|
61
|
+
import { n as parseWxrString, t as parseWxr } from "./parser-DxfsARXL.mjs";
|
|
58
62
|
import { adaptSandboxEntry } from "./plugins/adapt-sandbox-entry.mjs";
|
|
59
|
-
import "./ssrf-
|
|
60
|
-
import "./cron-
|
|
61
|
-
import { a as getAllSources, c as getUrlSources, d as importReusableBlocksAsSections, i as clearSources, l as probeUrl, n as parseWxrDate, o as getFileSources, r as wxrSource, s as getSource, t as wordpressRestSource, u as registerSource } from "./import-
|
|
62
|
-
import "./utils-
|
|
63
|
-
import { n as parseContentId, r as verifyPreviewToken, t as generatePreviewToken } from "./tokens-
|
|
63
|
+
import "./ssrf-DiKqWd3N.mjs";
|
|
64
|
+
import "./cron-DxCAU_Sn.mjs";
|
|
65
|
+
import { a as getAllSources, c as getUrlSources, d as importReusableBlocksAsSections, i as clearSources, l as probeUrl, n as parseWxrDate, o as getFileSources, r as wxrSource, s as getSource, t as wordpressRestSource, u as registerSource } from "./import-CvHY6sf5.mjs";
|
|
66
|
+
import "./utils-wv-zvC-Y.mjs";
|
|
67
|
+
import { n as parseContentId, r as verifyPreviewToken, t as generatePreviewToken } from "./tokens-CjSgb0AC.mjs";
|
|
64
68
|
import { getContentSeo, getSeoMeta } from "./seo/index.mjs";
|
|
65
|
-
import { i as getComments, n as getMenus, r as getCommentCount, t as getMenu } from "./menus-
|
|
66
|
-
import { n as getByline, r as getBylineBySlug } from "./bylines-
|
|
67
|
-
import { n as getWidgetAreas, r as getWidgetComponents, t as getWidgetArea } from "./widgets-
|
|
68
|
-
import { t as validateSeed } from "./validate-
|
|
69
|
-
import { t as applySeed } from "./apply-
|
|
70
|
-
import "./load-
|
|
69
|
+
import { i as getComments, n as getMenus, r as getCommentCount, t as getMenu } from "./menus-fqqzXyHd.mjs";
|
|
70
|
+
import { n as getByline, r as getBylineBySlug } from "./bylines-BgriNlW7.mjs";
|
|
71
|
+
import { n as getWidgetAreas, r as getWidgetComponents, t as getWidgetArea } from "./widgets-CdDvF4fV.mjs";
|
|
72
|
+
import { t as validateSeed } from "./validate-CK4a1sIF.mjs";
|
|
73
|
+
import { t as applySeed } from "./apply-BpRBCqUt.mjs";
|
|
74
|
+
import "./load-BdbvtoDb.mjs";
|
|
71
75
|
import "./seed/index.mjs";
|
|
72
|
-
import { a as getSuggestions, c as searchWithDb, i as getSearchStats, n as extractPlainText, o as search, r as extractSearchableFields, s as searchCollection } from "./search-
|
|
76
|
+
import { a as getSuggestions, c as searchWithDb, i as getSearchStats, n as extractPlainText, o as search, r as extractSearchableFields, s as searchCollection } from "./search-BAiFLz81.mjs";
|
|
73
77
|
import { ulid } from "ulidx";
|
|
74
78
|
|
|
75
79
|
export { ContentRepository, DinewayDatabaseError, DinewayStorageError, DinewayValidationError, FIELD_TYPE_TO_COLUMN, FTSManager, FileSessionDatabaseFactory, HookPipeline, MediaRepository, NodeSandboxRunner, NoopSandboxRunner, PluginManager, PluginRouteError, RESERVED_COLLECTION_SLUGS, RESERVED_FIELD_SLUGS, SandboxNotAvailableError, SchemaError, SchemaRegistry, SessionDatabaseLimitError, adaptSandboxEntry, after, applySeed, applySnapshotToDatabase, buildPreviewSignatureHeader, buildPreviewUrl, clearSources, computeContentHash, createEditable, createFilePreviewMiddleware, createHookPipeline, createNodeSandboxRunner, createNoop, createNoopSandboxRunner, createPluginManager, decodeSlug, defaultPreviewSidecarClient, definePlugin, dropSessionDatabaseTables, extractPlainText, extractSearchableFields, generateManifest, generatePlaceholder, generatePreviewToken, getAllSources, getAppliedSnapshotMeta, getByline, getBylineBySlug, getCollectionInfo, getCommentCount, getComments, getContentSeo, getDinewayCollection, getDinewayEntry, getEditMeta, getEntriesByTerm, getEntryTerms, getFallbackChain, getFileSources, getI18nConfig, getMenu, getMenus, getMigrationStatus, getPluginSetting, getPluginSettings, getPreviewToken, getPreviewUrl, getRequestContext, getSearchStats, getSection, getSections, getSeoMeta, getSiteSetting, getSiteSettings, getSource, getSuggestions, getTaxonomyDef, getTaxonomyDefs, getTaxonomyTerms, getTerm, getTermsForEntries, getTranslations, getUrlSources, getWidgetArea, getWidgetAreas, getWidgetComponents, handleContentCompare, handleContentCountScheduled, handleContentCountTrashed, handleContentCreate, handleContentDelete, handleContentDiscardDraft, handleContentDuplicate, handleContentGet, handleContentGetIncludingTrashed, handleContentList, handleContentListTrashed, handleContentPermanentDelete, handleContentPublish, handleContentRestore, handleContentSchedule, handleContentTranslations, handleContentUnpublish, handleContentUnschedule, handleContentUpdate, handleMediaCreate, handleMediaDelete, handleMediaGet, handleMediaList, handleMediaUpdate, handleRevisionGet, handleRevisionList, handleRevisionRestore, hashString, image, importReusableBlocksAsSections, isBlockedInPreview, isI18nEnabled, isPreviewRequest, isSafeHref, isStandardPluginDefinition, normalizeMediaValue, parseContentId, parsePreviewSignatureHeader, parseWxr, parseWxrDate, parseWxrString, pluginManifestSchema, portableText, portableTextToProsemirror, probeUrl, prosemirrorToPortableText, reference, registerSource, renderPreviewLoadingPage, renderPreviewToolbar, resolveDinewayPath, runWithContext, sanitizeHref, search, searchCollection, searchWithDb, setSiteSettings, signPreviewUrl, ulid, validateSeed, verifyPreviewSignature, verifyPreviewToken, wordpressRestSource, wxrSource };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as PageMetadataContribution, D as PageFragmentContribution, N as PageMetadataLinkRel, P as PagePlacement, q as PublicPageContext, t as BreadcrumbItem } from "./types-
|
|
2
|
-
import { n as SeoSettings } from "./types-
|
|
1
|
+
import { A as PageMetadataContribution, D as PageFragmentContribution, N as PageMetadataLinkRel, P as PagePlacement, q as PublicPageContext, t as BreadcrumbItem } from "./types-UGmU5sWx.mjs";
|
|
2
|
+
import { n as SeoSettings } from "./types-nP9vGUFq.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/page/context.d.ts
|
|
5
5
|
/** Fields shared by both input forms */
|
|
@@ -1,11 +1,40 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as __exportAll } from "./runner-DTfG5v0G.mjs";
|
|
2
|
+
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
3
|
+
import { o as isPostgres, r as currentIsoTimestampValue } from "./dialect-helpers-fk43GbDb.mjs";
|
|
4
|
+
import { n as decodeCursor, r as encodeCursor } from "./types-Ck7-WoUD.mjs";
|
|
2
5
|
import { getRequestContext } from "./request-context.mjs";
|
|
3
6
|
import { kyselyLogOption } from "./database/instrumentation.mjs";
|
|
4
|
-
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
5
|
-
import { a as isPostgres, i as currentTimestampValue } from "./dialect-helpers-TkdbkFad.mjs";
|
|
6
|
-
import { n as decodeCursor, r as encodeCursor } from "./types-D1DjBFA9.mjs";
|
|
7
7
|
import { Kysely, sql } from "kysely";
|
|
8
8
|
|
|
9
|
+
//#region src/utils/db-errors.ts
|
|
10
|
+
/**
|
|
11
|
+
* Shared detection helpers for database-layer error messages.
|
|
12
|
+
*
|
|
13
|
+
* Different SQL dialects phrase "table or relation does not exist" differently.
|
|
14
|
+
* Runtime code that treats pre-migration databases as empty should use this
|
|
15
|
+
* helper rather than duplicating string checks per call-site.
|
|
16
|
+
*/
|
|
17
|
+
function messageOf(error) {
|
|
18
|
+
if (error instanceof Error) return error.message.toLowerCase();
|
|
19
|
+
if (typeof error === "string") return error.toLowerCase();
|
|
20
|
+
return "";
|
|
21
|
+
}
|
|
22
|
+
function isMissingTableError(error) {
|
|
23
|
+
const message = messageOf(error);
|
|
24
|
+
if (!message) return false;
|
|
25
|
+
if (message.includes("no such table")) return true;
|
|
26
|
+
if (message.includes("does not exist") || message.includes("doesn't exist")) return message.includes("relation") || message.includes("table");
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
function isMissingColumnError(error) {
|
|
30
|
+
const message = messageOf(error);
|
|
31
|
+
if (!message) return false;
|
|
32
|
+
if (message.includes("no such column")) return true;
|
|
33
|
+
if (message.includes("does not exist") && message.includes("column") && !message.includes("relation")) return true;
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
9
38
|
//#region src/loader.ts
|
|
10
39
|
var loader_exports = /* @__PURE__ */ __exportAll({
|
|
11
40
|
CURSOR_RAW_VALUES: () => CURSOR_RAW_VALUES,
|
|
@@ -14,8 +43,17 @@ var loader_exports = /* @__PURE__ */ __exportAll({
|
|
|
14
43
|
});
|
|
15
44
|
const FIELD_NAME_PATTERN = /^[a-zA-Z_][a-zA-Z0-9_]*$/;
|
|
16
45
|
/**
|
|
17
|
-
*
|
|
46
|
+
* SEO columns joined from `_dineway_seo` on the single-entry path.
|
|
47
|
+
* The leading underscore in aliases prevents collisions with user field slugs.
|
|
18
48
|
*/
|
|
49
|
+
const SEO_COLUMN_ALIASES = {
|
|
50
|
+
seo_title: "_dineway_seo_title",
|
|
51
|
+
seo_description: "_dineway_seo_description",
|
|
52
|
+
seo_image: "_dineway_seo_image",
|
|
53
|
+
seo_canonical: "_dineway_seo_canonical",
|
|
54
|
+
seo_no_index: "_dineway_seo_no_index"
|
|
55
|
+
};
|
|
56
|
+
const SEO_ALIAS_COLUMNS = Object.values(SEO_COLUMN_ALIASES);
|
|
19
57
|
/**
|
|
20
58
|
* System columns excluded from entry.data
|
|
21
59
|
* Note: slug is intentionally NOT excluded - it's useful as data.slug in templates
|
|
@@ -34,8 +72,24 @@ const SYSTEM_COLUMNS = new Set([
|
|
|
34
72
|
"live_revision_id",
|
|
35
73
|
"draft_revision_id",
|
|
36
74
|
"locale",
|
|
37
|
-
"translation_group"
|
|
75
|
+
"translation_group",
|
|
76
|
+
...SEO_ALIAS_COLUMNS
|
|
38
77
|
]);
|
|
78
|
+
function extractSeo(row) {
|
|
79
|
+
const noIndex = row[SEO_COLUMN_ALIASES.seo_no_index];
|
|
80
|
+
if (noIndex === null || noIndex === void 0) return null;
|
|
81
|
+
const title = row[SEO_COLUMN_ALIASES.seo_title];
|
|
82
|
+
const description = row[SEO_COLUMN_ALIASES.seo_description];
|
|
83
|
+
const image = row[SEO_COLUMN_ALIASES.seo_image];
|
|
84
|
+
const canonical = row[SEO_COLUMN_ALIASES.seo_canonical];
|
|
85
|
+
return {
|
|
86
|
+
title: typeof title === "string" ? title : null,
|
|
87
|
+
description: typeof description === "string" ? description : null,
|
|
88
|
+
image: typeof image === "string" ? image : null,
|
|
89
|
+
canonical: typeof canonical === "string" ? canonical : null,
|
|
90
|
+
noIndex: noIndex === 1
|
|
91
|
+
};
|
|
92
|
+
}
|
|
39
93
|
/**
|
|
40
94
|
* Get the table name for a collection type
|
|
41
95
|
*/
|
|
@@ -183,7 +237,7 @@ function buildStatusCondition(db, status, tablePrefix) {
|
|
|
183
237
|
const scheduledAtField = tablePrefix ? `${tablePrefix}.scheduled_at` : "scheduled_at";
|
|
184
238
|
if (status === "published") {
|
|
185
239
|
const scheduledAtExpr = isPostgres(db) ? sql`${sql.ref(scheduledAtField)}::timestamptz` : sql.ref(scheduledAtField);
|
|
186
|
-
return sql`(${sql.ref(statusField)} = 'published' OR (${sql.ref(statusField)} = 'scheduled' AND ${scheduledAtExpr} <= ${
|
|
240
|
+
return sql`(${sql.ref(statusField)} = 'published' OR (${sql.ref(statusField)} = 'scheduled' AND ${scheduledAtExpr} <= ${currentIsoTimestampValue(db)}))`;
|
|
187
241
|
}
|
|
188
242
|
return sql`${sql.ref(statusField)} = ${status}`;
|
|
189
243
|
}
|
|
@@ -242,6 +296,33 @@ function buildCursorCondition(cursor, orderBy, tablePrefix) {
|
|
|
242
296
|
if (primary.direction === "desc") return sql`(${sql.ref(primary.field)} < ${orderValue} OR (${sql.ref(primary.field)} = ${orderValue} AND ${sql.ref(idField)} < ${cursorId}))`;
|
|
243
297
|
return sql`(${sql.ref(primary.field)} > ${orderValue} OR (${sql.ref(primary.field)} = ${orderValue} AND ${sql.ref(idField)} > ${cursorId}))`;
|
|
244
298
|
}
|
|
299
|
+
function isWhereRange(value) {
|
|
300
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
301
|
+
}
|
|
302
|
+
function buildFieldConditions(fields, tablePrefix) {
|
|
303
|
+
const conditions = [];
|
|
304
|
+
for (const [key, value] of Object.entries(fields)) {
|
|
305
|
+
if (!FIELD_NAME_PATTERN.test(key)) {
|
|
306
|
+
console.warn(`[dineway] where filter: invalid field name "${key}" ignored`);
|
|
307
|
+
continue;
|
|
308
|
+
}
|
|
309
|
+
if (value == null) continue;
|
|
310
|
+
const ref = tablePrefix ? sql.ref(`${tablePrefix}.${key}`) : sql.ref(key);
|
|
311
|
+
if (isWhereRange(value)) {
|
|
312
|
+
if (value.gt !== void 0) conditions.push(sql`${ref} > ${value.gt}`);
|
|
313
|
+
if (value.gte !== void 0) conditions.push(sql`${ref} >= ${value.gte}`);
|
|
314
|
+
if (value.lt !== void 0) conditions.push(sql`${ref} < ${value.lt}`);
|
|
315
|
+
if (value.lte !== void 0) conditions.push(sql`${ref} <= ${value.lte}`);
|
|
316
|
+
continue;
|
|
317
|
+
}
|
|
318
|
+
if (Array.isArray(value)) {
|
|
319
|
+
if (value.length > 0) conditions.push(sql`${ref} IN (${sql.join(value.map((item) => sql`${item}`))})`);
|
|
320
|
+
continue;
|
|
321
|
+
}
|
|
322
|
+
conditions.push(sql`${ref} = ${value}`);
|
|
323
|
+
}
|
|
324
|
+
return conditions;
|
|
325
|
+
}
|
|
245
326
|
let dbInstance = null;
|
|
246
327
|
/**
|
|
247
328
|
* Get the database instance. Used by query wrapper functions and middleware.
|
|
@@ -307,59 +388,68 @@ function dinewayLoader() {
|
|
|
307
388
|
const cursorCondition = cursor ? buildCursorCondition(cursor, orderBy) : null;
|
|
308
389
|
const cursorConditionPrefixed = cursor ? buildCursorCondition(cursor, orderBy, tableName) : null;
|
|
309
390
|
let result;
|
|
391
|
+
let taxonomyFilter = null;
|
|
392
|
+
const fieldFilters = {};
|
|
310
393
|
if (where && Object.keys(where).length > 0) {
|
|
311
394
|
const taxNames = await getTaxonomyNames(db);
|
|
312
|
-
const
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
395
|
+
for (const [key, value] of Object.entries(where)) {
|
|
396
|
+
if (value == null) continue;
|
|
397
|
+
if (taxNames.has(key)) {
|
|
398
|
+
if (isWhereRange(value)) {
|
|
399
|
+
console.warn(`[dineway] where filter: range operators are not supported on taxonomy "${key}", ignored`);
|
|
400
|
+
continue;
|
|
401
|
+
}
|
|
402
|
+
if (taxonomyFilter) {
|
|
403
|
+
console.warn(`[dineway] where filter: only one taxonomy is supported per query, "${key}" ignored`);
|
|
404
|
+
continue;
|
|
405
|
+
}
|
|
406
|
+
taxonomyFilter = {
|
|
407
|
+
name: key,
|
|
408
|
+
slugs: Array.isArray(value) ? value : [value]
|
|
409
|
+
};
|
|
410
|
+
continue;
|
|
411
|
+
}
|
|
412
|
+
fieldFilters[key] = value;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
if (taxonomyFilter) {
|
|
416
|
+
const orderByClause = buildOrderByClause(orderBy, tableName);
|
|
417
|
+
const statusCondition = buildStatusCondition(db, status, tableName);
|
|
418
|
+
const localeCondition = locale ? sql`AND ${sql.ref(tableName)}.locale = ${locale}` : sql``;
|
|
419
|
+
const cursorCond = cursorConditionPrefixed ? sql`AND ${cursorConditionPrefixed}` : sql``;
|
|
420
|
+
const fieldConditions = buildFieldConditions(fieldFilters, tableName);
|
|
421
|
+
const fieldConditionsSql = fieldConditions.length > 0 ? sql`${sql.join(fieldConditions, sql` AND `)}` : null;
|
|
422
|
+
result = await sql`
|
|
423
|
+
SELECT DISTINCT ${sql.ref(tableName)}.* FROM ${sql.ref(tableName)}
|
|
424
|
+
INNER JOIN content_taxonomies ct
|
|
425
|
+
ON ct.collection = ${type}
|
|
426
|
+
AND ct.entry_id = ${sql.ref(tableName)}.id
|
|
427
|
+
INNER JOIN taxonomies t
|
|
428
|
+
ON t.id = ct.taxonomy_id
|
|
429
|
+
WHERE ${sql.ref(tableName)}.deleted_at IS NULL
|
|
345
430
|
AND ${statusCondition}
|
|
346
|
-
${
|
|
431
|
+
${localeCondition}
|
|
347
432
|
${cursorCond}
|
|
348
|
-
${
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
433
|
+
AND t.name = ${taxonomyFilter.name}
|
|
434
|
+
AND t.slug IN (${sql.join(taxonomyFilter.slugs.map((slug) => sql`${slug}`))})
|
|
435
|
+
${fieldConditionsSql ? sql`AND ${fieldConditionsSql}` : sql``}
|
|
436
|
+
${orderByClause}
|
|
437
|
+
${fetchLimit ? sql`LIMIT ${fetchLimit}` : sql``}
|
|
438
|
+
`.execute(db);
|
|
352
439
|
} else {
|
|
353
440
|
const orderByClause = buildOrderByClause(orderBy);
|
|
354
441
|
const statusCondition = buildStatusCondition(db, status);
|
|
355
442
|
const localeFilter = locale ? sql`AND locale = ${locale}` : sql``;
|
|
356
443
|
const cursorCond = cursorCondition ? sql`AND ${cursorCondition}` : sql``;
|
|
444
|
+
const fieldConditions = buildFieldConditions(fieldFilters);
|
|
445
|
+
const fieldConditionsSql = fieldConditions.length > 0 ? sql`${sql.join(fieldConditions, sql` AND `)}` : null;
|
|
357
446
|
result = await sql`
|
|
358
447
|
SELECT * FROM ${sql.ref(tableName)}
|
|
359
448
|
WHERE deleted_at IS NULL
|
|
360
449
|
AND ${statusCondition}
|
|
361
450
|
${localeFilter}
|
|
362
451
|
${cursorCond}
|
|
452
|
+
${fieldConditionsSql ? sql`AND ${fieldConditionsSql}` : sql``}
|
|
363
453
|
${orderByClause}
|
|
364
454
|
${fetchLimit ? sql`LIMIT ${fetchLimit}` : sql``}
|
|
365
455
|
`.execute(db);
|
|
@@ -404,8 +494,10 @@ function dinewayLoader() {
|
|
|
404
494
|
};
|
|
405
495
|
} catch (error) {
|
|
406
496
|
const message = error instanceof Error ? error.message : String(error);
|
|
407
|
-
|
|
408
|
-
|
|
497
|
+
if (isMissingTableError(error) || isMissingColumnError(error)) {
|
|
498
|
+
if (isMissingColumnError(error)) console.warn(`[dineway] where filter: ${message}`);
|
|
499
|
+
return { entries: [] };
|
|
500
|
+
}
|
|
409
501
|
return { error: /* @__PURE__ */ new Error(`Failed to load collection: ${message}`) };
|
|
410
502
|
}
|
|
411
503
|
},
|
|
@@ -417,15 +509,22 @@ function dinewayLoader() {
|
|
|
417
509
|
if (!type || !id) return { error: /* @__PURE__ */ new Error("type and id filters are required. Use getDinewayEntry() instead of getLiveEntry() directly.") };
|
|
418
510
|
const tableName = getTableName(type);
|
|
419
511
|
const locale = filter?.locale;
|
|
512
|
+
const seoSelect = sql.join(Object.entries(SEO_COLUMN_ALIASES).map(([column, alias]) => sql`${sql.ref(`s.${column}`)} AS ${sql.ref(alias)}`));
|
|
420
513
|
const row = (locale ? await sql`
|
|
421
|
-
SELECT
|
|
422
|
-
|
|
423
|
-
|
|
514
|
+
SELECT c.*, ${seoSelect}
|
|
515
|
+
FROM ${sql.ref(tableName)} AS c
|
|
516
|
+
LEFT JOIN ${sql.ref("_dineway_seo")} AS s
|
|
517
|
+
ON s.collection = ${type} AND s.content_id = c.id
|
|
518
|
+
WHERE c.deleted_at IS NULL
|
|
519
|
+
AND ((c.slug = ${id} AND c.locale = ${locale}) OR c.id = ${id})
|
|
424
520
|
LIMIT 1
|
|
425
521
|
`.execute(db) : await sql`
|
|
426
|
-
SELECT
|
|
427
|
-
|
|
428
|
-
|
|
522
|
+
SELECT c.*, ${seoSelect}
|
|
523
|
+
FROM ${sql.ref(tableName)} AS c
|
|
524
|
+
LEFT JOIN ${sql.ref("_dineway_seo")} AS s
|
|
525
|
+
ON s.collection = ${type} AND s.content_id = c.id
|
|
526
|
+
WHERE c.deleted_at IS NULL
|
|
527
|
+
AND (c.slug = ${id} OR c.id = ${id})
|
|
429
528
|
LIMIT 1
|
|
430
529
|
`.execute(db)).rows[0];
|
|
431
530
|
if (!row) return;
|
|
@@ -449,15 +548,19 @@ function dinewayLoader() {
|
|
|
449
548
|
const slug = typeof parsed._slug === "string" ? parsed._slug : rowStr(row, "slug");
|
|
450
549
|
const revSlug = slug || rowStr(row, "id");
|
|
451
550
|
const revLocale = rowStr(row, "locale");
|
|
551
|
+
const revId = i18nEnabled && revLocale !== "" && (revLocale !== i18nConfig.defaultLocale || i18nConfig.prefixDefaultLocale) ? `${revLocale}/${revSlug}` : revSlug;
|
|
552
|
+
const revEntryData = {
|
|
553
|
+
...systemData,
|
|
554
|
+
slug,
|
|
555
|
+
...mapRevisionData(parsed)
|
|
556
|
+
};
|
|
557
|
+
const revSeo = extractSeo(row);
|
|
558
|
+
if (revSeo) revEntryData.seo = revSeo;
|
|
452
559
|
return {
|
|
453
|
-
id:
|
|
560
|
+
id: revId,
|
|
454
561
|
slug,
|
|
455
562
|
status: rowStr(row, "status", "draft"),
|
|
456
|
-
data:
|
|
457
|
-
...systemData,
|
|
458
|
-
slug,
|
|
459
|
-
...mapRevisionData(parsed)
|
|
460
|
-
},
|
|
563
|
+
data: revEntryData,
|
|
461
564
|
cacheHint: {
|
|
462
565
|
tags: [rowStr(row, "id")],
|
|
463
566
|
lastModified: row.updated_at ? new Date(rowStr(row, "updated_at")) : void 0
|
|
@@ -465,11 +568,14 @@ function dinewayLoader() {
|
|
|
465
568
|
};
|
|
466
569
|
}
|
|
467
570
|
}
|
|
571
|
+
const entryData = mapRowToData(row);
|
|
572
|
+
const entrySeo = extractSeo(row);
|
|
573
|
+
if (entrySeo) entryData.seo = entrySeo;
|
|
468
574
|
return {
|
|
469
575
|
id: entryId,
|
|
470
576
|
slug: rowStr(row, "slug"),
|
|
471
577
|
status: rowStr(row, "status", "draft"),
|
|
472
|
-
data:
|
|
578
|
+
data: entryData,
|
|
473
579
|
cacheHint: {
|
|
474
580
|
tags: [rowStr(row, "id")],
|
|
475
581
|
lastModified: row.updated_at ? new Date(rowStr(row, "updated_at")) : void 0
|
|
@@ -486,4 +592,4 @@ function dinewayLoader() {
|
|
|
486
592
|
}
|
|
487
593
|
|
|
488
594
|
//#endregion
|
|
489
|
-
export { loader_exports as i, dinewayLoader as n, getDb as r, CURSOR_RAW_VALUES as t };
|
|
595
|
+
export { isMissingTableError as a, loader_exports as i, dinewayLoader as n, getDb as r, CURSOR_RAW_VALUES as t };
|
package/dist/media/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { n as generatePlaceholder, r as normalizeMediaValue, t as PlaceholderData } from "../placeholder-BZpCpid_.mjs";
|
|
1
|
+
import { _ as MediaValue, a as ComponentEmbed, b as mediaItemToValue, c as EmbedResult, d as MediaListResult, f as MediaProvider, g as MediaUploadInput, h as MediaProviderItem, i as AudioEmbed, l as ImageEmbed, m as MediaProviderDescriptor, n as generatePlaceholder, o as CreateMediaProviderFn, p as MediaProviderCapabilities, r as normalizeMediaValue, s as EmbedOptions, t as PlaceholderData, u as MediaListOptions, v as ThumbnailOptions, y as VideoEmbed } from "../placeholder-CXfoCtCd.mjs";
|
|
3
2
|
|
|
4
3
|
//#region src/media/local.d.ts
|
|
5
4
|
interface LocalMediaConfig {
|
package/dist/media/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as normalizeMediaValue } from "../normalize-
|
|
2
|
-
import { t as generatePlaceholder } from "../placeholder-
|
|
1
|
+
import { t as normalizeMediaValue } from "../normalize-O-hi3a27.mjs";
|
|
2
|
+
import { t as generatePlaceholder } from "../placeholder-BDo81Is5.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/media/types.ts
|
|
5
5
|
/**
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import "../runtime-
|
|
2
|
-
import { t as Database } from "../types-
|
|
3
|
-
import "../types-
|
|
4
|
-
import "../types-
|
|
5
|
-
import {
|
|
6
|
-
import "../runner-
|
|
7
|
-
import "../index-
|
|
8
|
-
import "../
|
|
9
|
-
import
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
12
|
-
import "../validate-CvQ6cvHH.mjs";
|
|
1
|
+
import "../runtime-Cd-kjPfN.mjs";
|
|
2
|
+
import { t as Database } from "../types-DYKtk8f1.mjs";
|
|
3
|
+
import "../types-UGmU5sWx.mjs";
|
|
4
|
+
import "../types-Dryvv7LH.mjs";
|
|
5
|
+
import { h as MediaProviderItem, o as CreateMediaProviderFn } from "../placeholder-CXfoCtCd.mjs";
|
|
6
|
+
import "../runner-Cnz4dl0f.mjs";
|
|
7
|
+
import "../index-DJVaYiUV.mjs";
|
|
8
|
+
import { d as Storage } from "../types-DZpT-PnG.mjs";
|
|
9
|
+
import "../byline-fields-CaF_xfpj.mjs";
|
|
10
|
+
import "../types-GaCtZ1k9.mjs";
|
|
11
|
+
import "../validate-BJuG-ISL.mjs";
|
|
13
12
|
import "../index.mjs";
|
|
14
13
|
import { Kysely } from "kysely";
|
|
15
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../base64-C1Q9yr0B.mjs";
|
|
2
|
-
import "../types-
|
|
3
|
-
import { t as MediaRepository } from "../media-
|
|
2
|
+
import "../types-Ck7-WoUD.mjs";
|
|
3
|
+
import { t as MediaRepository } from "../media-DhBwiCYR.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/media/local-runtime.ts
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as decodeCursor, r as encodeCursor } from "./types-
|
|
1
|
+
import { n as decodeCursor, r as encodeCursor } from "./types-Ck7-WoUD.mjs";
|
|
2
2
|
import { sql } from "kysely";
|
|
3
3
|
import { ulid } from "ulidx";
|
|
4
4
|
|
|
@@ -117,6 +117,11 @@ var MediaRepository = class {
|
|
|
117
117
|
}
|
|
118
118
|
const mimeFilters = normalizeMimeFilter(options.mimeType);
|
|
119
119
|
if (mimeFilters.length > 0) query = query.where((eb) => mimeMatchExpr(eb, mimeFilters));
|
|
120
|
+
const term = options.q?.trim();
|
|
121
|
+
if (term) {
|
|
122
|
+
const pattern = `%${escapeLike(term)}%`;
|
|
123
|
+
query = query.where(sql`lower(${sql.ref("filename")})`, "like", sql`lower(${pattern}) ESCAPE '\\'`);
|
|
124
|
+
}
|
|
120
125
|
if (options.status !== "all") query = query.where("status", "=", options.status ?? "ready");
|
|
121
126
|
const rows = await query.execute();
|
|
122
127
|
const hasMore = rows.length > limit;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as getI18nConfig } from "./config-
|
|
1
|
+
import { a as __exportAll } from "./runner-DTfG5v0G.mjs";
|
|
2
|
+
import { n as getI18nConfig } from "./config-CVssduLe.mjs";
|
|
3
3
|
import { t as withTransaction } from "./transaction-D0FOsb3X.mjs";
|
|
4
4
|
import { ulid } from "ulidx";
|
|
5
5
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
2
|
-
import { t as CommentRepository } from "./comment-
|
|
3
|
-
import {
|
|
4
|
-
import { r as getDb } from "./loader-
|
|
5
|
-
import {
|
|
6
|
-
import { n as sanitizeHref } from "./url-
|
|
2
|
+
import { t as CommentRepository } from "./comment-ogMaF1gk.mjs";
|
|
3
|
+
import { r as requestCached } from "./request-cache-w5cj5itT.mjs";
|
|
4
|
+
import { r as getDb } from "./loader-Y0QvC_QO.mjs";
|
|
5
|
+
import { i as resolveLocaleChain, r as resolveLocale } from "./resolve-DTuDyYKs.mjs";
|
|
6
|
+
import { n as sanitizeHref } from "./url-w7Mp5qAD.mjs";
|
|
7
7
|
import { sql } from "kysely";
|
|
8
8
|
|
|
9
9
|
//#region src/comments/query.ts
|