emdash 0.22.0 → 0.24.0
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/{adapters-hUy8vOB-.d.mts → adapters-DAAjOID4.d.mts} +1 -1
- package/dist/{adapters-hUy8vOB-.d.mts.map → adapters-DAAjOID4.d.mts.map} +1 -1
- package/dist/{allowed-origins-DjlhyfNN.mjs → allowed-origins-D5FxMUo8.mjs} +2 -2
- package/dist/{allowed-origins-DjlhyfNN.mjs.map → allowed-origins-D5FxMUo8.mjs.map} +1 -1
- package/dist/api/route-utils.d.mts +3 -3
- package/dist/api/route-utils.mjs +15 -15
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/api/schemas/index.mjs +3 -3
- package/dist/{api-BDuM4bEy.mjs → api-d_0wi9fW.mjs} +20 -20
- package/dist/{api-BDuM4bEy.mjs.map → api-d_0wi9fW.mjs.map} +1 -1
- package/dist/{api-tokens-ViYKeIp9.mjs → api-tokens-D6ppjIVi.mjs} +2 -2
- package/dist/{api-tokens-ViYKeIp9.mjs.map → api-tokens-D6ppjIVi.mjs.map} +1 -1
- package/dist/{apply-wDqQoxX4.mjs → apply-BE9UaWX0.mjs} +17 -17
- package/dist/{apply-wDqQoxX4.mjs.map → apply-BE9UaWX0.mjs.map} +1 -1
- package/dist/astro/index.d.mts +11 -11
- package/dist/astro/index.mjs +36 -11
- package/dist/astro/index.mjs.map +1 -1
- package/dist/astro/middleware/auth.d.mts +9 -9
- package/dist/astro/middleware/auth.mjs +7 -7
- package/dist/astro/middleware/redirect.mjs +5 -5
- package/dist/astro/middleware/request-context.d.mts.map +1 -1
- package/dist/astro/middleware/request-context.mjs +5 -3
- package/dist/astro/middleware/request-context.mjs.map +1 -1
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.d.mts +1 -1
- package/dist/astro/middleware.d.mts.map +1 -1
- package/dist/astro/middleware.mjs +362 -141
- package/dist/astro/middleware.mjs.map +1 -1
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +6 -6
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +6 -6
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +4 -4
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +5 -5
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +4 -4
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +8 -8
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +8 -8
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +8 -8
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +13 -12
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +13 -12
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs.map +1 -1
- package/dist/astro/routes/api/admin/bylines/index.mjs +13 -12
- package/dist/astro/routes/api/admin/bylines/index.mjs.map +1 -1
- 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/hooks/exclusive/_hookName_.mjs +4 -4
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +3 -3
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +4 -4
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +4 -4
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +35 -34
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +35 -34
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +34 -33
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +34 -33
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +34 -33
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/index.mjs +34 -33
- package/dist/astro/routes/api/admin/plugins/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +34 -33
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +34 -33
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +34 -33
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs +34 -33
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs +35 -34
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs +34 -33
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs +35 -34
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/updates.mjs +34 -33
- package/dist/astro/routes/api/admin/plugins/updates.mjs.map +1 -1
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +34 -33
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +3 -3
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +34 -33
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +2 -2
- package/dist/astro/routes/api/admin/users/_id_/enable.mjs +2 -2
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +6 -6
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +3 -3
- package/dist/astro/routes/api/admin/users/index.mjs +6 -6
- package/dist/astro/routes/api/auth/dev-bypass.mjs +5 -5
- package/dist/astro/routes/api/auth/invite/accept.mjs +2 -2
- package/dist/astro/routes/api/auth/invite/complete.mjs +10 -10
- package/dist/astro/routes/api/auth/invite/index.mjs +7 -7
- package/dist/astro/routes/api/auth/invite/register-options.mjs +9 -9
- package/dist/astro/routes/api/auth/logout.mjs +3 -3
- package/dist/astro/routes/api/auth/magic-link/send.mjs +9 -9
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +3 -3
- package/dist/astro/routes/api/auth/me.mjs +7 -7
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +3 -3
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +6 -6
- package/dist/astro/routes/api/auth/passkey/index.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/options.mjs +11 -11
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +9 -9
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +10 -10
- package/dist/astro/routes/api/auth/passkey/verify.mjs +10 -10
- package/dist/astro/routes/api/auth/signup/complete.mjs +10 -10
- package/dist/astro/routes/api/auth/signup/request.mjs +9 -9
- package/dist/astro/routes/api/auth/signup/verify.mjs +2 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +12 -12
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +11 -11
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +10 -10
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +12 -12
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/authors.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/index.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/trash.mjs +7 -7
- package/dist/astro/routes/api/dashboard.mjs +7 -7
- package/dist/astro/routes/api/dev/emails.mjs +3 -3
- package/dist/astro/routes/api/import/probe.d.mts +3 -3
- package/dist/astro/routes/api/import/probe.mjs +11 -11
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +3 -3
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +9 -9
- package/dist/astro/routes/api/import/wordpress/execute.mjs +10 -9
- package/dist/astro/routes/api/import/wordpress/execute.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/media.mjs +9 -9
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +9 -9
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +9 -9
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +11 -11
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +13 -12
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs.map +1 -1
- package/dist/astro/routes/api/manifest.mjs +4 -4
- package/dist/astro/routes/api/mcp.mjs +39 -39
- package/dist/astro/routes/api/media/_id_/confirm.mjs +7 -7
- package/dist/astro/routes/api/media/_id_.mjs +7 -7
- package/dist/astro/routes/api/media/file/_...key_.mjs +2 -2
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +3 -3
- package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +3 -3
- package/dist/astro/routes/api/media/providers/index.mjs +3 -3
- package/dist/astro/routes/api/media/upload-url.mjs +9 -9
- package/dist/astro/routes/api/media.mjs +12 -12
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +8 -8
- package/dist/astro/routes/api/menus/_name_/items.mjs +8 -8
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +8 -8
- package/dist/astro/routes/api/menus/_name_/translations.mjs +8 -8
- package/dist/astro/routes/api/menus/_name_.mjs +8 -8
- package/dist/astro/routes/api/menus/index.mjs +8 -8
- package/dist/astro/routes/api/oauth/authorize.mjs +6 -6
- 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 +3 -3
- 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 +4 -4
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +4 -4
- package/dist/astro/routes/api/redirects/404s/index.mjs +9 -9
- package/dist/astro/routes/api/redirects/404s/summary.mjs +9 -9
- package/dist/astro/routes/api/redirects/_id_.mjs +10 -10
- package/dist/astro/routes/api/redirects/index.mjs +10 -10
- package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +3 -3
- package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +3 -3
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +34 -33
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +34 -33
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +34 -33
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +34 -33
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/index.mjs +34 -33
- package/dist/astro/routes/api/schema/collections/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/index.mjs +8 -7
- package/dist/astro/routes/api/schema/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +34 -33
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/schema/orphans/index.mjs +34 -33
- package/dist/astro/routes/api/schema/orphans/index.mjs.map +1 -1
- package/dist/astro/routes/api/search/enable.mjs +10 -10
- package/dist/astro/routes/api/search/index.mjs +9 -9
- package/dist/astro/routes/api/search/rebuild.mjs +10 -10
- package/dist/astro/routes/api/search/stats.mjs +6 -6
- package/dist/astro/routes/api/search/suggest.mjs +9 -9
- package/dist/astro/routes/api/sections/_slug_.mjs +9 -9
- package/dist/astro/routes/api/sections/index.mjs +9 -9
- package/dist/astro/routes/api/settings/email.mjs +4 -4
- package/dist/astro/routes/api/settings.mjs +11 -11
- package/dist/astro/routes/api/setup/admin-verify.mjs +11 -11
- package/dist/astro/routes/api/setup/admin.mjs +10 -10
- package/dist/astro/routes/api/setup/dev-bypass.mjs +23 -22
- package/dist/astro/routes/api/setup/dev-bypass.mjs.map +1 -1
- package/dist/astro/routes/api/setup/dev-reset.mjs +2 -2
- package/dist/astro/routes/api/setup/index.mjs +24 -23
- package/dist/astro/routes/api/setup/index.mjs.map +1 -1
- package/dist/astro/routes/api/setup/status.mjs +4 -4
- package/dist/astro/routes/api/snapshot.mjs +6 -6
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +12 -12
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +12 -12
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +12 -12
- package/dist/astro/routes/api/taxonomies/index.mjs +12 -12
- package/dist/astro/routes/api/themes/preview.mjs +5 -5
- package/dist/astro/routes/api/typegen.mjs +5 -5
- package/dist/astro/routes/api/well-known/auth.mjs +1 -1
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +2 -2
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +2 -2
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +7 -7
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +9 -9
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +9 -9
- package/dist/astro/routes/api/widget-areas/_name_.mjs +5 -5
- package/dist/astro/routes/api/widget-areas/index.mjs +9 -9
- package/dist/astro/routes/api/widget-components.mjs +3 -3
- package/dist/astro/routes/robots.txt.mjs +5 -5
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +8 -8
- package/dist/astro/routes/sitemap.xml.mjs +6 -6
- package/dist/astro/types.d.mts +12 -12
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/{authorize-C0EYoUeV.mjs → authorize-B__u-iZJ.mjs} +2 -2
- package/dist/{authorize-C0EYoUeV.mjs.map → authorize-B__u-iZJ.mjs.map} +1 -1
- package/dist/{byline-CC0WS4Gu.mjs → byline-C-YajfV7.mjs} +18 -76
- package/dist/byline-C-YajfV7.mjs.map +1 -0
- package/dist/{byline-fields-53i9Et0x.mjs → byline-fields-B-KXkg5R.mjs} +2 -2
- package/dist/{byline-fields-53i9Et0x.mjs.map → byline-fields-B-KXkg5R.mjs.map} +1 -1
- package/dist/{byline-fields-DNp0HNKc.mjs → byline-fields-DaMKzkhO.mjs} +1 -1
- package/dist/{byline-fields-DNp0HNKc.mjs.map → byline-fields-DaMKzkhO.mjs.map} +1 -1
- package/dist/{byline-fields-jy07PZJM.d.mts → byline-fields-RFPkDLRw.d.mts} +21 -1
- package/dist/byline-fields-RFPkDLRw.d.mts.map +1 -0
- package/dist/{bylines-CCO1CYnH.mjs → bylines-BMtJnPnG.mjs} +7 -7
- package/dist/{bylines-CCO1CYnH.mjs.map → bylines-BMtJnPnG.mjs.map} +1 -1
- package/dist/{bylines-DGekMGGm.mjs → bylines-D4KADDAi.mjs} +4 -4
- package/dist/{bylines-DGekMGGm.mjs.map → bylines-D4KADDAi.mjs.map} +1 -1
- package/dist/{cache-pXTpun6s.mjs → cache-BUJe2w6Z.mjs} +2 -2
- package/dist/{cache-pXTpun6s.mjs.map → cache-BUJe2w6Z.mjs.map} +1 -1
- package/dist/{challenge-store-C6E_kWTs.mjs → challenge-store-LhiqMccz.mjs} +1 -1
- package/dist/{challenge-store-C6E_kWTs.mjs.map → challenge-store-LhiqMccz.mjs.map} +1 -1
- package/dist/{chunks-SyjZaYwV.mjs → chunks-BHgcHh2C.mjs} +2 -2
- package/dist/{chunks-SyjZaYwV.mjs.map → chunks-BHgcHh2C.mjs.map} +1 -1
- package/dist/cli/index.mjs +25 -24
- package/dist/cli/index.mjs.map +1 -1
- package/dist/client/cf-access.d.mts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.mjs +2 -2
- package/dist/{comment-80UyJJUR.mjs → comment-BDx50EX5.mjs} +2 -2
- package/dist/{comment-80UyJJUR.mjs.map → comment-BDx50EX5.mjs.map} +1 -1
- package/dist/{comment-reaction-B6AdcpXw.mjs → comment-reaction-Gv_pgfI3.mjs} +2 -2
- package/dist/{comment-reaction-B6AdcpXw.mjs.map → comment-reaction-Gv_pgfI3.mjs.map} +1 -1
- package/dist/{comments-CtPkT2tp.mjs → comments-CXHuQ6jI.mjs} +3 -3
- package/dist/{comments-CtPkT2tp.mjs.map → comments-CXHuQ6jI.mjs.map} +1 -1
- package/dist/{components-D6ZnrzbB.mjs → components-CYt4uVK9.mjs} +1 -1
- package/dist/{components-D6ZnrzbB.mjs.map → components-CYt4uVK9.mjs.map} +1 -1
- package/dist/{content-2PTDNnoh.mjs → content-PoVGKjp0.mjs} +3 -3
- package/dist/{content-2PTDNnoh.mjs.map → content-PoVGKjp0.mjs.map} +1 -1
- package/dist/{context-f1__jpzF.mjs → context-Dvws41_A.mjs} +62 -24
- package/dist/context-Dvws41_A.mjs.map +1 -0
- package/dist/{cron-CQPxBjYs.mjs → cron-C5LVoNmP.mjs} +14 -2
- package/dist/cron-C5LVoNmP.mjs.map +1 -0
- package/dist/{dashboard-BOESNcwE.mjs → dashboard-DsYU8JKS.mjs} +4 -4
- package/dist/{dashboard-BOESNcwE.mjs.map → dashboard-DsYU8JKS.mjs.map} +1 -1
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.mjs +1 -1
- package/dist/db/libsql.d.mts +1 -1
- package/dist/db/postgres.d.mts +1 -1
- package/dist/db/sqlite.d.mts +1 -1
- package/dist/{db-errors-CrC5w3Jz.mjs → db-errors-UXB1CK42.mjs} +1 -1
- package/dist/{db-errors-CrC5w3Jz.mjs.map → db-errors-UXB1CK42.mjs.map} +1 -1
- package/dist/{default-CpBEPn6a.mjs → default-CeRG-Ot4.mjs} +1 -1
- package/dist/{default-CpBEPn6a.mjs.map → default-CeRG-Ot4.mjs.map} +1 -1
- package/dist/{device-flow-Bn-qiDrw.mjs → device-flow-DENDCQ9F.mjs} +4 -4
- package/dist/{device-flow-Bn-qiDrw.mjs.map → device-flow-DENDCQ9F.mjs.map} +1 -1
- package/dist/{email-console-B9VS6eN4.mjs → email-console-DJP32ucW.mjs} +1 -1
- package/dist/{email-console-B9VS6eN4.mjs.map → email-console-DJP32ucW.mjs.map} +1 -1
- package/dist/{error-BQ1pxs0L.mjs → error-lq_fL-RS.mjs} +2 -2
- package/dist/{error-BQ1pxs0L.mjs.map → error-lq_fL-RS.mjs.map} +1 -1
- package/dist/{escape-BtbJWyaW.mjs → escape-Bjio4ZsM.mjs} +1 -1
- package/dist/{escape-BtbJWyaW.mjs.map → escape-Bjio4ZsM.mjs.map} +1 -1
- package/dist/field-defs-cache-CYYx8xlG.mjs +77 -0
- package/dist/field-defs-cache-CYYx8xlG.mjs.map +1 -0
- package/dist/{fts-manager-DtiWqwNJ.mjs → fts-manager-DW_NR-Fs.mjs} +2 -2
- package/dist/{fts-manager-DtiWqwNJ.mjs.map → fts-manager-DW_NR-Fs.mjs.map} +1 -1
- package/dist/{hash-BowcuPwv.mjs → hash-DrvzIXcz.mjs} +1 -1
- package/dist/{hash-BowcuPwv.mjs.map → hash-DrvzIXcz.mjs.map} +1 -1
- package/dist/{import-DqSGOlmR.mjs → import-Bb1T9WJS.mjs} +3 -3
- package/dist/{import-DqSGOlmR.mjs.map → import-Bb1T9WJS.mjs.map} +1 -1
- package/dist/{index-C2dLNT6S.d.mts → index-BroXT-vD.d.mts} +136 -38
- package/dist/index-BroXT-vD.d.mts.map +1 -0
- package/dist/{index-ZDEwR7qW.d.mts → index-qbL02uhs.d.mts} +3 -3
- package/dist/{index-ZDEwR7qW.d.mts.map → index-qbL02uhs.d.mts.map} +1 -1
- package/dist/index.d.mts +17 -17
- package/dist/index.mjs +55 -54
- package/dist/{load-Dtoo7KcJ.mjs → load-DMFi4n1p.mjs} +2 -2
- package/dist/{load-Dtoo7KcJ.mjs.map → load-DMFi4n1p.mjs.map} +1 -1
- package/dist/{loader-C8Z48Uof.mjs → loader-BR2SgfEc.mjs} +77 -12
- package/dist/loader-BR2SgfEc.mjs.map +1 -0
- package/dist/{manifest-schema-DDSbwkAL.mjs → manifest-schema-BWKnQYQF.mjs} +1 -1
- package/dist/{manifest-schema-DDSbwkAL.mjs.map → manifest-schema-BWKnQYQF.mjs.map} +1 -1
- package/dist/media/image-endpoint.mjs +1 -1
- package/dist/media/index.d.mts +1 -1
- package/dist/media/index.mjs +2 -2
- package/dist/media/local-runtime.d.mts +19 -11
- package/dist/media/local-runtime.d.mts.map +1 -1
- package/dist/media/local-runtime.mjs +11 -9
- package/dist/media/local-runtime.mjs.map +1 -1
- package/dist/{media-Bw0sA6rb.mjs → media-CTjJoJTh.mjs} +2 -2
- package/dist/{media-Bw0sA6rb.mjs.map → media-CTjJoJTh.mjs.map} +1 -1
- package/dist/{media-allowlist-DunzrKFM.mjs → media-allowlist-B77I5_bw.mjs} +2 -2
- package/dist/{media-allowlist-DunzrKFM.mjs.map → media-allowlist-B77I5_bw.mjs.map} +1 -1
- package/dist/{media-url-S22B6aPr.mjs → media-url-O4rm9-SQ.mjs} +1 -1
- package/dist/{media-url-S22B6aPr.mjs.map → media-url-O4rm9-SQ.mjs.map} +1 -1
- package/dist/{menus-CYs0WZoL.mjs → menus-8O6xNcYW.mjs} +2 -2
- package/dist/{menus-CYs0WZoL.mjs.map → menus-8O6xNcYW.mjs.map} +1 -1
- package/dist/{menus-DOs1MQJg.mjs → menus-GvRSpgIA.mjs} +57 -14
- package/dist/menus-GvRSpgIA.mjs.map +1 -0
- package/dist/{mime-DYpsOAny.mjs → mime-BTzvzJ8M.mjs} +1 -1
- package/dist/{mime-DYpsOAny.mjs.map → mime-BTzvzJ8M.mjs.map} +1 -1
- package/dist/{mode-CFh8Dw8G.mjs → mode-BB0F8xTC.mjs} +1 -1
- package/dist/{mode-CFh8Dw8G.mjs.map → mode-BB0F8xTC.mjs.map} +1 -1
- package/dist/{normalize-Uam4_Vkr.mjs → normalize-ClbNIenm.mjs} +1 -1
- package/dist/{normalize-Uam4_Vkr.mjs.map → normalize-ClbNIenm.mjs.map} +1 -1
- package/dist/{oauth-authorization-BN-t83Uy.mjs → oauth-authorization-CsvzIp_F.mjs} +4 -4
- package/dist/{oauth-authorization-BN-t83Uy.mjs.map → oauth-authorization-CsvzIp_F.mjs.map} +1 -1
- package/dist/{oauth-clients-R6I_V0qz.mjs → oauth-clients-C9SYwEbZ.mjs} +1 -1
- package/dist/{oauth-clients-R6I_V0qz.mjs.map → oauth-clients-C9SYwEbZ.mjs.map} +1 -1
- package/dist/{oauth-state-store-Csoc6kkR.mjs → oauth-state-store---zrApfB.mjs} +1 -1
- package/dist/{oauth-state-store-Csoc6kkR.mjs.map → oauth-state-store---zrApfB.mjs.map} +1 -1
- package/dist/{oauth-user-lookup-d7VYjTpx.mjs → oauth-user-lookup-SHsWRlG9.mjs} +1 -1
- package/dist/{oauth-user-lookup-d7VYjTpx.mjs.map → oauth-user-lookup-SHsWRlG9.mjs.map} +1 -1
- package/dist/object-cache/memory.d.mts +1 -1
- package/dist/{options-DFFpvNJU.d.mts → options-CqECG0gM.d.mts} +3 -3
- package/dist/{options-DFFpvNJU.d.mts.map → options-CqECG0gM.d.mts.map} +1 -1
- package/dist/page/index.d.mts +2 -2
- package/dist/{parse-qrHlnzTy.mjs → parse-DHI873qU.mjs} +2 -2
- package/dist/{parse-qrHlnzTy.mjs.map → parse-DHI873qU.mjs.map} +1 -1
- package/dist/{passkey-config-BJTbcnI5.mjs → passkey-config-C0YfSBko.mjs} +1 -1
- package/dist/{passkey-config-BJTbcnI5.mjs.map → passkey-config-C0YfSBko.mjs.map} +1 -1
- package/dist/{placeholder-CIDCpyEY.mjs → placeholder-B0s2mWu5.mjs} +1 -1
- package/dist/{placeholder-CIDCpyEY.mjs.map → placeholder-B0s2mWu5.mjs.map} +1 -1
- package/dist/{placeholder-CirPauNG.d.mts → placeholder-QoI4gEzP.d.mts} +1 -1
- package/dist/{placeholder-CirPauNG.d.mts.map → placeholder-QoI4gEzP.d.mts.map} +1 -1
- package/dist/plugin-types.d.mts +1 -1
- package/dist/plugin-utils.d.mts +9 -9
- package/dist/plugins/adapt-sandbox-entry.d.mts +9 -9
- package/dist/plugins/adapt-sandbox-entry.mjs +2 -2
- package/dist/{portable-text-BIFhrU6T.mjs → portable-text-BICg8bTk.mjs} +1 -1
- package/dist/{portable-text-BIFhrU6T.mjs.map → portable-text-BICg8bTk.mjs.map} +1 -1
- package/dist/{preview-IDye9SPQ.mjs → preview-DKGCt2_p.mjs} +2 -2
- package/dist/{preview-IDye9SPQ.mjs.map → preview-DKGCt2_p.mjs.map} +1 -1
- package/dist/{public-url-8lFyQ8ZF.mjs → public-url-CTVqgMmg.mjs} +1 -1
- package/dist/{public-url-8lFyQ8ZF.mjs.map → public-url-CTVqgMmg.mjs.map} +1 -1
- package/dist/{query-B1RVFUNM.mjs → query-DZdlS6Cu.mjs} +92 -14
- package/dist/query-DZdlS6Cu.mjs.map +1 -0
- package/dist/{rate-limit-DfNAqIWW.mjs → rate-limit-D1Y6VFVP.mjs} +2 -2
- package/dist/{rate-limit-DfNAqIWW.mjs.map → rate-limit-D1Y6VFVP.mjs.map} +1 -1
- package/dist/{redirect-Bifv_yHv.mjs → redirect-C1KVGYWe.mjs} +2 -2
- package/dist/{redirect-Bifv_yHv.mjs.map → redirect-C1KVGYWe.mjs.map} +1 -1
- package/dist/{redirect-B4wuX2A5.mjs → redirect-CS-PHtNh.mjs} +1 -1
- package/dist/{redirect-B4wuX2A5.mjs.map → redirect-CS-PHtNh.mjs.map} +1 -1
- package/dist/{redirects-CT_vb3NV.mjs → redirects-DgnypVir.mjs} +4 -4
- package/dist/{redirects-CT_vb3NV.mjs.map → redirects-DgnypVir.mjs.map} +1 -1
- package/dist/{redirects-DUvXgzCX.mjs → redirects-x9eFPeyi.mjs} +4 -2
- package/dist/redirects-x9eFPeyi.mjs.map +1 -0
- package/dist/{registry-CjK96fHD.mjs → registry-CJkCubOJ.mjs} +4 -4
- package/dist/{registry-CjK96fHD.mjs.map → registry-CJkCubOJ.mjs.map} +1 -1
- package/dist/{request-meta-ei3ATilC.mjs → request-meta-CmS1tDFf.mjs} +2 -2
- package/dist/{request-meta-ei3ATilC.mjs.map → request-meta-CmS1tDFf.mjs.map} +1 -1
- package/dist/{resolve-CpbBglV0.mjs → resolve-C7I0qiR0.mjs} +1 -1
- package/dist/{resolve-CpbBglV0.mjs.map → resolve-C7I0qiR0.mjs.map} +1 -1
- package/dist/{runner-DYYnW530.mjs → runner-BsquExlK.mjs} +246 -174
- package/dist/runner-BsquExlK.mjs.map +1 -0
- package/dist/{runner-jdXtFEd3.d.mts → runner-CEtq-6Sm.d.mts} +2 -2
- package/dist/{runner-jdXtFEd3.d.mts.map → runner-CEtq-6Sm.d.mts.map} +1 -1
- package/dist/runtime.d.mts +10 -10
- package/dist/runtime.mjs +2 -2
- package/dist/{schema-5z2Jfnbm.mjs → schema-DMjXuvNU.mjs} +4 -4
- package/dist/{schema-5z2Jfnbm.mjs.map → schema-DMjXuvNU.mjs.map} +1 -1
- package/dist/{search-D9FkoM-k.mjs → search-D1wKk3lc.mjs} +4 -4
- package/dist/{search-D9FkoM-k.mjs.map → search-D1wKk3lc.mjs.map} +1 -1
- package/dist/{secrets-BUE5UQys.mjs → secrets-BSf9pRRY.mjs} +2 -2
- package/dist/{secrets-BUE5UQys.mjs.map → secrets-BSf9pRRY.mjs.map} +1 -1
- package/dist/{sections-DWYZo6HK.mjs → sections-CCMic8dB.mjs} +3 -3
- package/dist/{sections-DWYZo6HK.mjs.map → sections-CCMic8dB.mjs.map} +1 -1
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +17 -16
- package/dist/seo/index.d.mts +1 -1
- package/dist/seo/index.mjs +1 -1
- package/dist/{seo-Cu47j3mJ.mjs → seo-3QrZ1EPT.mjs} +2 -2
- package/dist/{seo-Cu47j3mJ.mjs.map → seo-3QrZ1EPT.mjs.map} +1 -1
- package/dist/{seo-DRnqnstF.mjs → seo-DCEF-AVr.mjs} +1 -1
- package/dist/{seo-DRnqnstF.mjs.map → seo-DCEF-AVr.mjs.map} +1 -1
- package/dist/{service-DTmtqCnw.mjs → service-CQHK_10l.mjs} +3 -3
- package/dist/{service-DTmtqCnw.mjs.map → service-CQHK_10l.mjs.map} +1 -1
- package/dist/{session-user-DmtPMNa1.mjs → session-user-B8aLtKAH.mjs} +1 -1
- package/dist/{session-user-DmtPMNa1.mjs.map → session-user-B8aLtKAH.mjs.map} +1 -1
- package/dist/{settings-DUrVDN0c.mjs → settings-C3Yi5Co3.mjs} +3 -3
- package/dist/{settings-DUrVDN0c.mjs.map → settings-C3Yi5Co3.mjs.map} +1 -1
- package/dist/{settings-yaxu9mU-.mjs → settings-D9rvaLuY.mjs} +4 -4
- package/dist/{settings-yaxu9mU-.mjs.map → settings-D9rvaLuY.mjs.map} +1 -1
- package/dist/{setup-complete-BWFHzgvZ.mjs → setup-complete-gEiySUc-.mjs} +1 -1
- package/dist/{setup-complete-BWFHzgvZ.mjs.map → setup-complete-gEiySUc-.mjs.map} +1 -1
- package/dist/{setup-nonce-DFWG-J5c.mjs → setup-nonce-DzS50zme.mjs} +1 -1
- package/dist/{setup-nonce-DFWG-J5c.mjs.map → setup-nonce-DzS50zme.mjs.map} +1 -1
- package/dist/{single-flight-cache-B5p5cNOL.mjs → single-flight-cache-Cdfkic3t.mjs} +1 -1
- package/dist/{single-flight-cache-B5p5cNOL.mjs.map → single-flight-cache-Cdfkic3t.mjs.map} +1 -1
- package/dist/{site-url-BOTPgmeM.mjs → site-url-BLebyON8.mjs} +1 -1
- package/dist/{site-url-BOTPgmeM.mjs.map → site-url-BLebyON8.mjs.map} +1 -1
- package/dist/{ssrf-B0VeRLrp.mjs → ssrf-BRKb343l.mjs} +1 -1
- package/dist/{ssrf-B0VeRLrp.mjs.map → ssrf-BRKb343l.mjs.map} +1 -1
- package/dist/{status-CB2basWJ.mjs → status-vUK0SA17.mjs} +1 -1
- package/dist/{status-CB2basWJ.mjs.map → status-vUK0SA17.mjs.map} +1 -1
- 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-Be9B1jEj.mjs → taxonomies-CurpLtNC.mjs} +52 -24
- package/dist/taxonomies-CurpLtNC.mjs.map +1 -0
- package/dist/{taxonomies-CJmkEpdS.mjs → taxonomies-DhLaNJji.mjs} +34 -27
- package/dist/taxonomies-DhLaNJji.mjs.map +1 -0
- package/dist/{taxonomy-B2HQuVf5.mjs → taxonomy-BBUlGug5.mjs} +33 -7
- package/dist/taxonomy-BBUlGug5.mjs.map +1 -0
- package/dist/{tokens-BvrJvIB6.mjs → tokens-LeuXF9gG.mjs} +1 -1
- package/dist/{tokens-BvrJvIB6.mjs.map → tokens-LeuXF9gG.mjs.map} +1 -1
- package/dist/{transport-k7YjfmEn.d.mts → transport-BZ-03aFT.d.mts} +1 -1
- package/dist/{transport-k7YjfmEn.d.mts.map → transport-BZ-03aFT.d.mts.map} +1 -1
- package/dist/{transport-B4rXnSTf.mjs → transport-_2nBz7e9.mjs} +1 -1
- package/dist/{transport-B4rXnSTf.mjs.map → transport-_2nBz7e9.mjs.map} +1 -1
- package/dist/{trusted-proxy-DY1_UqHr.mjs → trusted-proxy-DZY5WCn2.mjs} +1 -1
- package/dist/{trusted-proxy-DY1_UqHr.mjs.map → trusted-proxy-DZY5WCn2.mjs.map} +1 -1
- package/dist/{types-Czg1S3gB.d.mts → types-B-gIxFCE.d.mts} +1 -1
- package/dist/{types-Czg1S3gB.d.mts.map → types-B-gIxFCE.d.mts.map} +1 -1
- package/dist/{types-DXLVzV2w.d.mts → types-BG8_XTLj.d.mts} +1 -1
- package/dist/{types-DXLVzV2w.d.mts.map → types-BG8_XTLj.d.mts.map} +1 -1
- package/dist/{types-CWGYDYqF.d.mts → types-BWh2MjmA.d.mts} +15 -2
- package/dist/types-BWh2MjmA.d.mts.map +1 -0
- package/dist/{types-CgvhU-hF.d.mts → types-BWqGVhFn.d.mts} +1 -1
- package/dist/{types-CgvhU-hF.d.mts.map → types-BWqGVhFn.d.mts.map} +1 -1
- package/dist/{types-DYF2_Vf4.mjs → types-CQAugunJ.mjs} +1 -1
- package/dist/{types-DYF2_Vf4.mjs.map → types-CQAugunJ.mjs.map} +1 -1
- package/dist/{types-DPCpkzvS.d.mts → types-CTLJYMhN.d.mts} +1 -1
- package/dist/{types-DPCpkzvS.d.mts.map → types-CTLJYMhN.d.mts.map} +1 -1
- package/dist/{types-CmivgZbp.d.mts → types-CUsXGRVj.d.mts} +1 -1
- package/dist/{types-CmivgZbp.d.mts.map → types-CUsXGRVj.d.mts.map} +1 -1
- package/dist/{types-DXOIbece.mjs → types-CmI1OyQg.mjs} +2 -2
- package/dist/types-CmI1OyQg.mjs.map +1 -0
- package/dist/{types-CKNXt63n.d.mts → types-DrYMm9s5.d.mts} +1 -1
- package/dist/{types-CKNXt63n.d.mts.map → types-DrYMm9s5.d.mts.map} +1 -1
- package/dist/{types-CIKX2HO5.d.mts → types-TTx8uP7V.d.mts} +2 -2
- package/dist/{types-CIKX2HO5.d.mts.map → types-TTx8uP7V.d.mts.map} +1 -1
- package/dist/{types-DCNNfeCv.d.mts → types-fS7-VTdR.d.mts} +1 -1
- package/dist/{types-DCNNfeCv.d.mts.map → types-fS7-VTdR.d.mts.map} +1 -1
- package/dist/{user-Db-Rti_z.mjs → user-JAuc8VUf.mjs} +3 -3
- package/dist/{user-Db-Rti_z.mjs.map → user-JAuc8VUf.mjs.map} +1 -1
- package/dist/{utils-LbHcSRTj.mjs → utils-B7A57fm9.mjs} +1 -1
- package/dist/{utils-LbHcSRTj.mjs.map → utils-B7A57fm9.mjs.map} +1 -1
- package/dist/{validate-Bwl64sxv.mjs → validate-BzXHWnkV.mjs} +2 -2
- package/dist/{validate-Bwl64sxv.mjs.map → validate-BzXHWnkV.mjs.map} +1 -1
- package/dist/{validate-CE2M0nvx.d.mts → validate-DOFrIb-c.d.mts} +5 -5
- package/dist/{validate-CE2M0nvx.d.mts.map → validate-DOFrIb-c.d.mts.map} +1 -1
- package/dist/{validation-C_yOvFaO.mjs → validation-CY1gk4Ar.mjs} +6 -6
- package/dist/{validation-C_yOvFaO.mjs.map → validation-CY1gk4Ar.mjs.map} +1 -1
- package/dist/version-B5nHxI5Y.mjs +7 -0
- package/dist/{version-RnYXYjzD.mjs.map → version-B5nHxI5Y.mjs.map} +1 -1
- package/dist/{widgets-8GONuRHo.mjs → widgets-Dri0spI4.mjs} +3 -3
- package/dist/{widgets-8GONuRHo.mjs.map → widgets-Dri0spI4.mjs.map} +1 -1
- package/dist/{zod-generator-D481JjzD.mjs → zod-generator-xEHODMJf.mjs} +51 -15
- package/dist/zod-generator-xEHODMJf.mjs.map +1 -0
- package/package.json +8 -7
- package/src/api/handlers/taxonomies.ts +62 -32
- package/src/api/schemas/bylines.ts +8 -0
- package/src/astro/integration/shims/use-sync-external-store-with-selector.js +71 -0
- package/src/astro/integration/shims/use-sync-external-store.js +1 -0
- package/src/astro/integration/virtual-modules.ts +8 -0
- package/src/astro/integration/vite-config.ts +56 -9
- package/src/astro/middleware/request-context.ts +6 -1
- package/src/astro/middleware/scoped-db.ts +131 -0
- package/src/astro/middleware/stream-end-metrics.ts +4 -8
- package/src/astro/middleware.ts +103 -31
- package/src/astro/routes/admin.astro +5 -1
- package/src/astro/routes/api/schema/index.ts +9 -3
- package/src/cli/commands/export-seed.ts +15 -11
- package/src/components/Block.astro +71 -0
- package/src/components/EmDashMedia.astro +1 -2
- package/src/components/Image.astro +36 -2
- package/src/components/InlinePortableTextEditor.tsx +10 -2
- package/src/components/index.ts +5 -0
- package/src/components/portable-text-text-align.ts +38 -0
- package/src/content/converters/portable-text-to-prosemirror.ts +5 -1
- package/src/content/converters/prosemirror-to-portable-text.ts +8 -0
- package/src/content/converters/types.ts +1 -0
- package/src/database/migrations/045_taxonomy_parent_group.ts +68 -0
- package/src/database/migrations/runner.ts +2 -0
- package/src/database/repositories/byline.ts +14 -0
- package/src/database/repositories/taxonomy.ts +50 -7
- package/src/database/repositories/types.ts +13 -0
- package/src/emdash-runtime.ts +226 -71
- package/src/loader.ts +161 -13
- package/src/media/local-runtime.ts +18 -5
- package/src/plugins/context.ts +94 -22
- package/src/plugins/cron.ts +18 -2
- package/src/plugins/routes.ts +40 -1
- package/src/query.ts +201 -19
- package/src/schema/zod-generator.ts +53 -8
- package/src/taxonomies/index.ts +46 -8
- package/src/ui.ts +5 -0
- package/src/virtual-modules.d.ts +13 -0
- package/dist/byline-CC0WS4Gu.mjs.map +0 -1
- package/dist/byline-fields-jy07PZJM.d.mts.map +0 -1
- package/dist/context-f1__jpzF.mjs.map +0 -1
- package/dist/cron-CQPxBjYs.mjs.map +0 -1
- package/dist/index-C2dLNT6S.d.mts.map +0 -1
- package/dist/loader-C8Z48Uof.mjs.map +0 -1
- package/dist/menus-DOs1MQJg.mjs.map +0 -1
- package/dist/query-B1RVFUNM.mjs.map +0 -1
- package/dist/redirects-DUvXgzCX.mjs.map +0 -1
- package/dist/runner-DYYnW530.mjs.map +0 -1
- package/dist/taxonomies-Be9B1jEj.mjs.map +0 -1
- package/dist/taxonomies-CJmkEpdS.mjs.map +0 -1
- package/dist/taxonomy-B2HQuVf5.mjs.map +0 -1
- package/dist/types-CWGYDYqF.d.mts.map +0 -1
- package/dist/types-DXOIbece.mjs.map +0 -1
- package/dist/version-RnYXYjzD.mjs +0 -7
- package/dist/zod-generator-D481JjzD.mjs.map +0 -1
- /package/dist/{api-tokens-BVH-H8Z9.mjs → api-tokens-B4BQybOp.mjs} +0 -0
- /package/dist/{ssrf-Cz1e2QPn.mjs → ssrf-CcX9zvMK.mjs} +0 -0
- /package/dist/{types-Bfr2Pj6z.mjs → types-BvbeGEtr.mjs} +0 -0
|
@@ -2,20 +2,20 @@ import "../../../../../../dialect-helpers-DRI5pyY3.mjs";
|
|
|
2
2
|
import "../../../../../../after-B1IIdH3Y.mjs";
|
|
3
3
|
import "../../../../../../object-cache-SEb2IM4Z.mjs";
|
|
4
4
|
import "../../../../../../base64-CmWvODNW.mjs";
|
|
5
|
-
import "../../../../../../types-
|
|
6
|
-
import "../../../../../../taxonomy-
|
|
5
|
+
import "../../../../../../types-CmI1OyQg.mjs";
|
|
6
|
+
import "../../../../../../taxonomy-BBUlGug5.mjs";
|
|
7
7
|
import "../../../../../../request-cache-KCNHp_RJ.mjs";
|
|
8
|
-
import "../../../../../../loader-
|
|
9
|
-
import "../../../../../../resolve-
|
|
10
|
-
import "../../../../../../taxonomies-
|
|
11
|
-
import { o as handleTermList, r as handleTermCreate } from "../../../../../../taxonomies-
|
|
12
|
-
import { a as unwrapResult, i as requireDb, r as handleError, t as apiError } from "../../../../../../error-
|
|
13
|
-
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../../parse-
|
|
14
|
-
import { Fn as localeFilterQuery, H as createTermBody } from "../../../../../../redirects-
|
|
15
|
-
import "../../../../../../byline-fields-
|
|
16
|
-
import "../../../../../../status-
|
|
8
|
+
import "../../../../../../loader-BR2SgfEc.mjs";
|
|
9
|
+
import "../../../../../../resolve-C7I0qiR0.mjs";
|
|
10
|
+
import "../../../../../../taxonomies-CurpLtNC.mjs";
|
|
11
|
+
import { o as handleTermList, r as handleTermCreate } from "../../../../../../taxonomies-DhLaNJji.mjs";
|
|
12
|
+
import { a as unwrapResult, i as requireDb, r as handleError, t as apiError } from "../../../../../../error-lq_fL-RS.mjs";
|
|
13
|
+
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../../parse-DHI873qU.mjs";
|
|
14
|
+
import { Fn as localeFilterQuery, H as createTermBody } from "../../../../../../redirects-x9eFPeyi.mjs";
|
|
15
|
+
import "../../../../../../byline-fields-B-KXkg5R.mjs";
|
|
16
|
+
import "../../../../../../status-vUK0SA17.mjs";
|
|
17
17
|
import "../../../../../../api/schemas/index.mjs";
|
|
18
|
-
import { n as requirePerm } from "../../../../../../authorize-
|
|
18
|
+
import { n as requirePerm } from "../../../../../../authorize-B__u-iZJ.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/astro/routes/api/taxonomies/[name]/terms/index.ts
|
|
21
21
|
const prerender = false;
|
|
@@ -2,20 +2,20 @@ import "../../../../dialect-helpers-DRI5pyY3.mjs";
|
|
|
2
2
|
import "../../../../after-B1IIdH3Y.mjs";
|
|
3
3
|
import "../../../../object-cache-SEb2IM4Z.mjs";
|
|
4
4
|
import "../../../../base64-CmWvODNW.mjs";
|
|
5
|
-
import "../../../../types-
|
|
6
|
-
import "../../../../taxonomy-
|
|
5
|
+
import "../../../../types-CmI1OyQg.mjs";
|
|
6
|
+
import "../../../../taxonomy-BBUlGug5.mjs";
|
|
7
7
|
import "../../../../request-cache-KCNHp_RJ.mjs";
|
|
8
|
-
import "../../../../loader-
|
|
9
|
-
import "../../../../resolve-
|
|
10
|
-
import "../../../../taxonomies-
|
|
11
|
-
import { n as handleTaxonomyList, t as handleTaxonomyCreate } from "../../../../taxonomies-
|
|
12
|
-
import { a as unwrapResult, i as requireDb, r as handleError } from "../../../../error-
|
|
13
|
-
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../parse-
|
|
14
|
-
import { Fn as localeFilterQuery, V as createTaxonomyDefBody } from "../../../../redirects-
|
|
15
|
-
import "../../../../byline-fields-
|
|
16
|
-
import "../../../../status-
|
|
8
|
+
import "../../../../loader-BR2SgfEc.mjs";
|
|
9
|
+
import "../../../../resolve-C7I0qiR0.mjs";
|
|
10
|
+
import "../../../../taxonomies-CurpLtNC.mjs";
|
|
11
|
+
import { n as handleTaxonomyList, t as handleTaxonomyCreate } from "../../../../taxonomies-DhLaNJji.mjs";
|
|
12
|
+
import { a as unwrapResult, i as requireDb, r as handleError } from "../../../../error-lq_fL-RS.mjs";
|
|
13
|
+
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../parse-DHI873qU.mjs";
|
|
14
|
+
import { Fn as localeFilterQuery, V as createTaxonomyDefBody } from "../../../../redirects-x9eFPeyi.mjs";
|
|
15
|
+
import "../../../../byline-fields-B-KXkg5R.mjs";
|
|
16
|
+
import "../../../../status-vUK0SA17.mjs";
|
|
17
17
|
import "../../../../api/schemas/index.mjs";
|
|
18
|
-
import { n as requirePerm } from "../../../../authorize-
|
|
18
|
+
import { n as requirePerm } from "../../../../authorize-B__u-iZJ.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/astro/routes/api/taxonomies/index.ts
|
|
21
21
|
const prerender = false;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../../../../after-B1IIdH3Y.mjs";
|
|
2
2
|
import "../../../../base64-CmWvODNW.mjs";
|
|
3
|
-
import "../../../../types-
|
|
3
|
+
import "../../../../types-CmI1OyQg.mjs";
|
|
4
4
|
import "../../../../options-DTTML-Tx.mjs";
|
|
5
|
-
import { n as apiSuccess, t as apiError } from "../../../../error-
|
|
6
|
-
import { n as getPublicOrigin } from "../../../../public-url-
|
|
7
|
-
import { i as resolveSecretsCached } from "../../../../secrets-
|
|
8
|
-
import { n as requirePerm } from "../../../../authorize-
|
|
5
|
+
import { n as apiSuccess, t as apiError } from "../../../../error-lq_fL-RS.mjs";
|
|
6
|
+
import { n as getPublicOrigin } from "../../../../public-url-CTVqgMmg.mjs";
|
|
7
|
+
import { i as resolveSecretsCached } from "../../../../secrets-BSf9pRRY.mjs";
|
|
8
|
+
import { n as requirePerm } from "../../../../authorize-B__u-iZJ.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/astro/routes/api/themes/preview.ts
|
|
11
11
|
const prerender = false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../../base64-CmWvODNW.mjs";
|
|
2
|
-
import "../../../types-
|
|
3
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../error-
|
|
2
|
+
import "../../../types-CmI1OyQg.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../error-lq_fL-RS.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/astro/routes/api/typegen.ts
|
|
6
6
|
const prerender = false;
|
|
@@ -19,7 +19,7 @@ async function safeListCollections(registry) {
|
|
|
19
19
|
* Generate types content and metadata from the current schema.
|
|
20
20
|
*/
|
|
21
21
|
async function generateTypes(registry) {
|
|
22
|
-
const { generateTypesFile, generateSchemaHash } = await import("../../../zod-generator-
|
|
22
|
+
const { generateTypesFile, generateSchemaHash } = await import("../../../zod-generator-xEHODMJf.mjs").then((n) => n.i);
|
|
23
23
|
const collections = await safeListCollections(registry);
|
|
24
24
|
const collectionsWithFields = await Promise.all(collections.map(async (c) => {
|
|
25
25
|
const fields = await registry.listFields(c.id);
|
|
@@ -42,7 +42,7 @@ const GET = async ({ locals }) => {
|
|
|
42
42
|
const { emdash } = locals;
|
|
43
43
|
if (!emdash?.db) return apiError("NOT_CONFIGURED", "EmDash not configured", 500);
|
|
44
44
|
try {
|
|
45
|
-
const { SchemaRegistry } = await import("../../../registry-
|
|
45
|
+
const { SchemaRegistry } = await import("../../../registry-CJkCubOJ.mjs").then((n) => n.r);
|
|
46
46
|
const { types } = await generateTypes(new SchemaRegistry(emdash.db));
|
|
47
47
|
return new Response(types, {
|
|
48
48
|
status: 200,
|
|
@@ -66,7 +66,7 @@ const POST = async ({ locals }) => {
|
|
|
66
66
|
const { emdash } = locals;
|
|
67
67
|
if (!emdash?.db) return apiError("NOT_CONFIGURED", "EmDash not configured", 500);
|
|
68
68
|
try {
|
|
69
|
-
const { SchemaRegistry } = await import("../../../registry-
|
|
69
|
+
const { SchemaRegistry } = await import("../../../registry-CJkCubOJ.mjs").then((n) => n.r);
|
|
70
70
|
return apiSuccess(await generateTypes(new SchemaRegistry(emdash.db)));
|
|
71
71
|
} catch (error) {
|
|
72
72
|
return handleError(error, "Typegen failed", "TYPEGEN_ERROR");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../options-DTTML-Tx.mjs";
|
|
2
|
-
import { t as getAuthMode } from "../../../../mode-
|
|
2
|
+
import { t as getAuthMode } from "../../../../mode-BB0F8xTC.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/astro/routes/api/well-known/auth.ts
|
|
5
5
|
const prerender = false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as getPublicOrigin } from "../../../../public-url-
|
|
2
|
-
import { n as VALID_SCOPES } from "../../../../api-tokens-
|
|
1
|
+
import { n as getPublicOrigin } from "../../../../public-url-CTVqgMmg.mjs";
|
|
2
|
+
import { n as VALID_SCOPES } from "../../../../api-tokens-B4BQybOp.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/astro/routes/api/well-known/oauth-authorization-server.ts
|
|
5
5
|
const prerender = false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as getPublicOrigin } from "../../../../public-url-
|
|
2
|
-
import { n as VALID_SCOPES } from "../../../../api-tokens-
|
|
1
|
+
import { n as getPublicOrigin } from "../../../../public-url-CTVqgMmg.mjs";
|
|
2
|
+
import { n as VALID_SCOPES } from "../../../../api-tokens-B4BQybOp.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/astro/routes/api/well-known/oauth-protected-resource.ts
|
|
5
5
|
const prerender = false;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../../../../base64-CmWvODNW.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
4
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
5
|
-
import { h as reorderWidgetsBody } from "../../../../../redirects-
|
|
6
|
-
import "../../../../../byline-fields-
|
|
7
|
-
import "../../../../../status-
|
|
2
|
+
import "../../../../../types-CmI1OyQg.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-lq_fL-RS.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-DHI873qU.mjs";
|
|
5
|
+
import { h as reorderWidgetsBody } from "../../../../../redirects-x9eFPeyi.mjs";
|
|
6
|
+
import "../../../../../byline-fields-B-KXkg5R.mjs";
|
|
7
|
+
import "../../../../../status-vUK0SA17.mjs";
|
|
8
8
|
import "../../../../../api/schemas/index.mjs";
|
|
9
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
9
|
+
import { n as requirePerm } from "../../../../../authorize-B__u-iZJ.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/astro/routes/api/widget-areas/[name]/reorder.ts
|
|
12
12
|
const prerender = false;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "../../../../../../dialect-helpers-DRI5pyY3.mjs";
|
|
2
2
|
import "../../../../../../base64-CmWvODNW.mjs";
|
|
3
|
-
import "../../../../../../types-
|
|
3
|
+
import "../../../../../../types-CmI1OyQg.mjs";
|
|
4
4
|
import "../../../../../../request-cache-KCNHp_RJ.mjs";
|
|
5
|
-
import "../../../../../../loader-
|
|
6
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-
|
|
7
|
-
import { n as parseBody, t as isParseError } from "../../../../../../parse-
|
|
8
|
-
import { g as updateWidgetBody } from "../../../../../../redirects-
|
|
9
|
-
import "../../../../../../byline-fields-
|
|
10
|
-
import "../../../../../../status-
|
|
5
|
+
import "../../../../../../loader-BR2SgfEc.mjs";
|
|
6
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-lq_fL-RS.mjs";
|
|
7
|
+
import { n as parseBody, t as isParseError } from "../../../../../../parse-DHI873qU.mjs";
|
|
8
|
+
import { g as updateWidgetBody } from "../../../../../../redirects-x9eFPeyi.mjs";
|
|
9
|
+
import "../../../../../../byline-fields-B-KXkg5R.mjs";
|
|
10
|
+
import "../../../../../../status-vUK0SA17.mjs";
|
|
11
11
|
import "../../../../../../api/schemas/index.mjs";
|
|
12
|
-
import { i as rowToWidget } from "../../../../../../widgets-
|
|
13
|
-
import { n as requirePerm } from "../../../../../../authorize-
|
|
12
|
+
import { i as rowToWidget } from "../../../../../../widgets-Dri0spI4.mjs";
|
|
13
|
+
import { n as requirePerm } from "../../../../../../authorize-B__u-iZJ.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/astro/routes/api/widget-areas/[name]/widgets/[id].ts
|
|
16
16
|
const prerender = false;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "../../../../../dialect-helpers-DRI5pyY3.mjs";
|
|
2
2
|
import "../../../../../base64-CmWvODNW.mjs";
|
|
3
|
-
import "../../../../../types-
|
|
3
|
+
import "../../../../../types-CmI1OyQg.mjs";
|
|
4
4
|
import "../../../../../request-cache-KCNHp_RJ.mjs";
|
|
5
|
-
import "../../../../../loader-
|
|
6
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
7
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
8
|
-
import { m as createWidgetBody } from "../../../../../redirects-
|
|
9
|
-
import "../../../../../byline-fields-
|
|
10
|
-
import "../../../../../status-
|
|
5
|
+
import "../../../../../loader-BR2SgfEc.mjs";
|
|
6
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-lq_fL-RS.mjs";
|
|
7
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-DHI873qU.mjs";
|
|
8
|
+
import { m as createWidgetBody } from "../../../../../redirects-x9eFPeyi.mjs";
|
|
9
|
+
import "../../../../../byline-fields-B-KXkg5R.mjs";
|
|
10
|
+
import "../../../../../status-vUK0SA17.mjs";
|
|
11
11
|
import "../../../../../api/schemas/index.mjs";
|
|
12
|
-
import { i as rowToWidget } from "../../../../../widgets-
|
|
13
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
12
|
+
import { i as rowToWidget } from "../../../../../widgets-Dri0spI4.mjs";
|
|
13
|
+
import { n as requirePerm } from "../../../../../authorize-B__u-iZJ.mjs";
|
|
14
14
|
import { ulid } from "ulidx";
|
|
15
15
|
|
|
16
16
|
//#region src/astro/routes/api/widget-areas/[name]/widgets.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../../../../dialect-helpers-DRI5pyY3.mjs";
|
|
2
2
|
import "../../../../base64-CmWvODNW.mjs";
|
|
3
|
-
import "../../../../types-
|
|
3
|
+
import "../../../../types-CmI1OyQg.mjs";
|
|
4
4
|
import "../../../../request-cache-KCNHp_RJ.mjs";
|
|
5
|
-
import "../../../../loader-
|
|
6
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../error-
|
|
7
|
-
import { i as rowToWidget } from "../../../../widgets-
|
|
8
|
-
import { n as requirePerm } from "../../../../authorize-
|
|
5
|
+
import "../../../../loader-BR2SgfEc.mjs";
|
|
6
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../error-lq_fL-RS.mjs";
|
|
7
|
+
import { i as rowToWidget } from "../../../../widgets-Dri0spI4.mjs";
|
|
8
|
+
import { n as requirePerm } from "../../../../authorize-B__u-iZJ.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/astro/routes/api/widget-areas/[name].ts
|
|
11
11
|
const prerender = false;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "../../../../dialect-helpers-DRI5pyY3.mjs";
|
|
2
2
|
import "../../../../base64-CmWvODNW.mjs";
|
|
3
|
-
import "../../../../types-
|
|
3
|
+
import "../../../../types-CmI1OyQg.mjs";
|
|
4
4
|
import "../../../../request-cache-KCNHp_RJ.mjs";
|
|
5
|
-
import "../../../../loader-
|
|
6
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../error-
|
|
7
|
-
import { n as parseBody, t as isParseError } from "../../../../parse-
|
|
8
|
-
import { p as createWidgetAreaBody } from "../../../../redirects-
|
|
9
|
-
import "../../../../byline-fields-
|
|
10
|
-
import "../../../../status-
|
|
5
|
+
import "../../../../loader-BR2SgfEc.mjs";
|
|
6
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../error-lq_fL-RS.mjs";
|
|
7
|
+
import { n as parseBody, t as isParseError } from "../../../../parse-DHI873qU.mjs";
|
|
8
|
+
import { p as createWidgetAreaBody } from "../../../../redirects-x9eFPeyi.mjs";
|
|
9
|
+
import "../../../../byline-fields-B-KXkg5R.mjs";
|
|
10
|
+
import "../../../../status-vUK0SA17.mjs";
|
|
11
11
|
import "../../../../api/schemas/index.mjs";
|
|
12
|
-
import { i as rowToWidget } from "../../../../widgets-
|
|
13
|
-
import { n as requirePerm } from "../../../../authorize-
|
|
12
|
+
import { i as rowToWidget } from "../../../../widgets-Dri0spI4.mjs";
|
|
13
|
+
import { n as requirePerm } from "../../../../authorize-B__u-iZJ.mjs";
|
|
14
14
|
import { ulid } from "ulidx";
|
|
15
15
|
|
|
16
16
|
//#region src/astro/routes/api/widget-areas/index.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../base64-CmWvODNW.mjs";
|
|
2
|
-
import "../../../types-
|
|
3
|
-
import { n as apiSuccess, r as handleError } from "../../../error-
|
|
4
|
-
import { t as getWidgetComponents } from "../../../components-
|
|
2
|
+
import "../../../types-CmI1OyQg.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError } from "../../../error-lq_fL-RS.mjs";
|
|
4
|
+
import { t as getWidgetComponents } from "../../../components-CYt4uVK9.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/astro/routes/api/widget-components.ts
|
|
7
7
|
const prerender = false;
|
|
@@ -2,13 +2,13 @@ import "../../dialect-helpers-DRI5pyY3.mjs";
|
|
|
2
2
|
import "../../after-B1IIdH3Y.mjs";
|
|
3
3
|
import "../../object-cache-SEb2IM4Z.mjs";
|
|
4
4
|
import "../../base64-CmWvODNW.mjs";
|
|
5
|
-
import "../../types-
|
|
6
|
-
import "../../media-
|
|
5
|
+
import "../../types-CmI1OyQg.mjs";
|
|
6
|
+
import "../../media-CTjJoJTh.mjs";
|
|
7
7
|
import "../../options-DTTML-Tx.mjs";
|
|
8
8
|
import "../../request-cache-KCNHp_RJ.mjs";
|
|
9
|
-
import "../../loader-
|
|
10
|
-
import { a as getSiteSettingsWithDb } from "../../settings-
|
|
11
|
-
import { n as getPublicOrigin } from "../../public-url-
|
|
9
|
+
import "../../loader-BR2SgfEc.mjs";
|
|
10
|
+
import { a as getSiteSettingsWithDb } from "../../settings-D9rvaLuY.mjs";
|
|
11
|
+
import { n as getPublicOrigin } from "../../public-url-CTVqgMmg.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/astro/routes/robots.txt.ts
|
|
14
14
|
const prerender = false;
|
|
@@ -3,16 +3,16 @@ import { n as getI18nConfig, r as isI18nEnabled } from "../../config-CVssduLe.mj
|
|
|
3
3
|
import "../../after-B1IIdH3Y.mjs";
|
|
4
4
|
import "../../object-cache-SEb2IM4Z.mjs";
|
|
5
5
|
import "../../base64-CmWvODNW.mjs";
|
|
6
|
-
import "../../types-
|
|
7
|
-
import "../../media-
|
|
6
|
+
import "../../types-CmI1OyQg.mjs";
|
|
7
|
+
import "../../media-CTjJoJTh.mjs";
|
|
8
8
|
import "../../options-DTTML-Tx.mjs";
|
|
9
9
|
import "../../request-cache-KCNHp_RJ.mjs";
|
|
10
|
-
import "../../loader-
|
|
11
|
-
import { t as handleSitemapData } from "../../seo-
|
|
12
|
-
import { a as getSiteSettingsWithDb } from "../../settings-
|
|
13
|
-
import { n as localizePath, t as interpolateUrlPattern } from "../../resolve-
|
|
14
|
-
import { t as buildSeoImageUrl } from "../../media-url-
|
|
15
|
-
import { n as getPublicOrigin } from "../../public-url-
|
|
10
|
+
import "../../loader-BR2SgfEc.mjs";
|
|
11
|
+
import { t as handleSitemapData } from "../../seo-DCEF-AVr.mjs";
|
|
12
|
+
import { a as getSiteSettingsWithDb } from "../../settings-D9rvaLuY.mjs";
|
|
13
|
+
import { n as localizePath, t as interpolateUrlPattern } from "../../resolve-C7I0qiR0.mjs";
|
|
14
|
+
import { t as buildSeoImageUrl } from "../../media-url-O4rm9-SQ.mjs";
|
|
15
|
+
import { n as getPublicOrigin } from "../../public-url-CTVqgMmg.mjs";
|
|
16
16
|
|
|
17
17
|
//#region src/astro/routes/sitemap-[collection].xml.ts
|
|
18
18
|
const prerender = false;
|
|
@@ -2,14 +2,14 @@ import "../../dialect-helpers-DRI5pyY3.mjs";
|
|
|
2
2
|
import "../../after-B1IIdH3Y.mjs";
|
|
3
3
|
import "../../object-cache-SEb2IM4Z.mjs";
|
|
4
4
|
import "../../base64-CmWvODNW.mjs";
|
|
5
|
-
import "../../types-
|
|
6
|
-
import "../../media-
|
|
5
|
+
import "../../types-CmI1OyQg.mjs";
|
|
6
|
+
import "../../media-CTjJoJTh.mjs";
|
|
7
7
|
import "../../options-DTTML-Tx.mjs";
|
|
8
8
|
import "../../request-cache-KCNHp_RJ.mjs";
|
|
9
|
-
import "../../loader-
|
|
10
|
-
import { t as handleSitemapData } from "../../seo-
|
|
11
|
-
import { a as getSiteSettingsWithDb } from "../../settings-
|
|
12
|
-
import { n as getPublicOrigin } from "../../public-url-
|
|
9
|
+
import "../../loader-BR2SgfEc.mjs";
|
|
10
|
+
import { t as handleSitemapData } from "../../seo-DCEF-AVr.mjs";
|
|
11
|
+
import { a as getSiteSettingsWithDb } from "../../settings-D9rvaLuY.mjs";
|
|
12
|
+
import { n as getPublicOrigin } from "../../public-url-CTVqgMmg.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/astro/routes/sitemap.xml.ts
|
|
15
15
|
const prerender = false;
|
package/dist/astro/types.d.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { i as ContentItem } from "../types-
|
|
2
|
-
import { d as ContentListResponse, f as ContentResponse } from "../options-
|
|
3
|
-
import { t as Database } from "../types-
|
|
4
|
-
import { J as PageFragmentContribution, Z as PageMetadataContribution, ht as PublicPageContext, jt as Element, yt as ResolvedPlugin } from "../types-
|
|
5
|
-
import "../byline-fields-
|
|
6
|
-
import { f as MediaProvider, p as MediaProviderCapabilities } from "../placeholder-
|
|
7
|
-
import { Bt as EmDashConfig, Ft as HookPipeline, Pt as EmailPipeline, ar as SandboxRunner, br as MediaListResponse, di as MediaItem, xr as MediaResponse } from "../index-
|
|
8
|
-
import "../runner-
|
|
9
|
-
import "../index-
|
|
10
|
-
import { d as Storage } from "../types-
|
|
11
|
-
import "../types-
|
|
12
|
-
import "../validate-
|
|
1
|
+
import { i as ContentItem } from "../types-BWh2MjmA.mjs";
|
|
2
|
+
import { d as ContentListResponse, f as ContentResponse } from "../options-CqECG0gM.mjs";
|
|
3
|
+
import { t as Database } from "../types-B-gIxFCE.mjs";
|
|
4
|
+
import { J as PageFragmentContribution, Z as PageMetadataContribution, ht as PublicPageContext, jt as Element, yt as ResolvedPlugin } from "../types-TTx8uP7V.mjs";
|
|
5
|
+
import "../byline-fields-RFPkDLRw.mjs";
|
|
6
|
+
import { f as MediaProvider, p as MediaProviderCapabilities } from "../placeholder-QoI4gEzP.mjs";
|
|
7
|
+
import { Bt as EmDashConfig, Ft as HookPipeline, Pt as EmailPipeline, ar as SandboxRunner, br as MediaListResponse, di as MediaItem, xr as MediaResponse } from "../index-BroXT-vD.mjs";
|
|
8
|
+
import "../runner-CEtq-6Sm.mjs";
|
|
9
|
+
import "../index-qbL02uhs.mjs";
|
|
10
|
+
import { d as Storage } from "../types-DrYMm9s5.mjs";
|
|
11
|
+
import "../types-CUsXGRVj.mjs";
|
|
12
|
+
import "../validate-DOFrIb-c.mjs";
|
|
13
13
|
import "../index.mjs";
|
|
14
14
|
import { Kysely } from "kysely";
|
|
15
15
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as apiError } from "./error-
|
|
1
|
+
import { t as apiError } from "./error-lq_fL-RS.mjs";
|
|
2
2
|
import { canActOnOwn, hasPermission } from "@emdash-cms/auth";
|
|
3
3
|
|
|
4
4
|
//#region src/api/authorize.ts
|
|
@@ -34,4 +34,4 @@ function requireOwnerPerm(user, ownerId, ownPermission, anyPermission) {
|
|
|
34
34
|
|
|
35
35
|
//#endregion
|
|
36
36
|
export { requirePerm as n, requireOwnerPerm as t };
|
|
37
|
-
//# sourceMappingURL=authorize-
|
|
37
|
+
//# sourceMappingURL=authorize-B__u-iZJ.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorize-
|
|
1
|
+
{"version":3,"file":"authorize-B__u-iZJ.mjs","names":[],"sources":["../src/api/authorize.ts"],"sourcesContent":["/**\n * Authorization helpers for API routes\n *\n * Thin wrappers around @emdash-cms/auth RBAC that return HTTP responses.\n * Auth middleware handles authentication; these handle authorization.\n */\n\nimport type { Permission, RoleLevel } from \"@emdash-cms/auth\";\nimport { hasPermission, canActOnOwn } from \"@emdash-cms/auth\";\n\nimport { apiError } from \"./error.js\";\n\ninterface UserLike {\n\tid: string;\n\trole: RoleLevel;\n}\n\n/**\n * Check if user has a permission. Returns a 401/403 Response if not, or null if authorized.\n *\n * Usage:\n * ```ts\n * const denied = requirePerm(user, \"schema:manage\");\n * if (denied) return denied;\n * ```\n */\nexport function requirePerm(\n\tuser: UserLike | null | undefined,\n\tpermission: Permission,\n): Response | null {\n\tif (!user) {\n\t\treturn apiError(\"UNAUTHORIZED\", \"Authentication required\", 401);\n\t}\n\tif (!hasPermission(user, permission)) {\n\t\treturn apiError(\"FORBIDDEN\", \"Insufficient permissions\", 403);\n\t}\n\treturn null;\n}\n\n/**\n * Check if user can act on a resource, considering ownership.\n * Returns a 401/403 Response if not, or null if authorized.\n *\n * Usage:\n * ```ts\n * const denied = requireOwnerPerm(user, item.authorId, \"content:edit_own\", \"content:edit_any\");\n * if (denied) return denied;\n * ```\n */\nexport function requireOwnerPerm(\n\tuser: UserLike | null | undefined,\n\townerId: string,\n\townPermission: Permission,\n\tanyPermission: Permission,\n): Response | null {\n\tif (!user) {\n\t\treturn apiError(\"UNAUTHORIZED\", \"Authentication required\", 401);\n\t}\n\tif (!canActOnOwn(user, ownerId, ownPermission, anyPermission)) {\n\t\treturn apiError(\"FORBIDDEN\", \"Insufficient permissions\", 403);\n\t}\n\treturn null;\n}\n"],"mappings":";;;;;;;;;;;;;AA0BA,SAAgB,YACf,MACA,YACkB;AAClB,KAAI,CAAC,KACJ,QAAO,SAAS,gBAAgB,2BAA2B,IAAI;AAEhE,KAAI,CAAC,cAAc,MAAM,WAAW,CACnC,QAAO,SAAS,aAAa,4BAA4B,IAAI;AAE9D,QAAO;;;;;;;;;;;;AAaR,SAAgB,iBACf,MACA,SACA,eACA,eACkB;AAClB,KAAI,CAAC,KACJ,QAAO,SAAS,gBAAgB,2BAA2B,IAAI;AAEhE,KAAI,CAAC,YAAY,MAAM,SAAS,eAAe,cAAc,CAC5D,QAAO,SAAS,aAAa,4BAA4B,IAAI;AAE9D,QAAO"}
|
|
@@ -1,85 +1,15 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
1
|
+
import { a as __exportAll } from "./runner-BsquExlK.mjs";
|
|
2
2
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
3
3
|
import { c as listTablesLike } from "./dialect-helpers-DRI5pyY3.mjs";
|
|
4
|
-
import { t as after } from "./after-B1IIdH3Y.mjs";
|
|
5
|
-
import { getRequestContext } from "./request-context.mjs";
|
|
6
4
|
import { a as invalidateBylineObjectCache, o as invalidateCollectionCache } from "./object-cache-SEb2IM4Z.mjs";
|
|
7
|
-
import { a as encodeCursor, i as decodeCursor, t as EmDashValidationError } from "./types-
|
|
8
|
-
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-
|
|
5
|
+
import { a as encodeCursor, i as decodeCursor, t as EmDashValidationError } from "./types-CmI1OyQg.mjs";
|
|
6
|
+
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-BHgcHh2C.mjs";
|
|
9
7
|
import { t as withTransaction } from "./transaction-qfqpPVpu.mjs";
|
|
10
|
-
import { i as setRequestCacheEntry, n as peekRequestCache,
|
|
11
|
-
import { n as
|
|
12
|
-
import { n as initWithLock, t as createInitLock } from "./init-lock-6b309ZrF.mjs";
|
|
8
|
+
import { i as setRequestCacheEntry, n as peekRequestCache, t as clearRequestCacheEntry } from "./request-cache-KCNHp_RJ.mjs";
|
|
9
|
+
import { n as getBylineFieldDefs } from "./field-defs-cache-CYYx8xlG.mjs";
|
|
13
10
|
import { sql } from "kysely";
|
|
14
11
|
import { ulid } from "ulidx";
|
|
15
12
|
|
|
16
|
-
//#region src/bylines/field-defs-cache.ts
|
|
17
|
-
const HOLDER_KEY = Symbol.for("emdash:byline-field-defs");
|
|
18
|
-
const g = globalThis;
|
|
19
|
-
const holder = g[HOLDER_KEY] ?? (() => {
|
|
20
|
-
const h = {
|
|
21
|
-
value: null,
|
|
22
|
-
hasValue: false,
|
|
23
|
-
cachedVersion: -1,
|
|
24
|
-
lock: createInitLock()
|
|
25
|
-
};
|
|
26
|
-
g[HOLDER_KEY] = h;
|
|
27
|
-
return h;
|
|
28
|
-
})();
|
|
29
|
-
const REQUEST_CACHE_KEY_VERSION = "byline-fields-version";
|
|
30
|
-
const REQUEST_CACHE_KEY_DEFS_PREFIX = "byline-field-defs:";
|
|
31
|
-
/**
|
|
32
|
-
* Reclaim window for the single-flight lock: if an owner holds it past
|
|
33
|
-
* this without publishing (e.g. its request was cancelled and the
|
|
34
|
-
* anchored fetch hasn't completed yet), the next reader reclaims and
|
|
35
|
-
* refetches. `listFields` is a single fast SELECT, so this only needs to
|
|
36
|
-
* cover a genuinely slow/stranded query. Mutable solely so tests can
|
|
37
|
-
* shorten it; production never changes it.
|
|
38
|
-
*/
|
|
39
|
-
let reclaimDeadlineMs = 1e4;
|
|
40
|
-
/**
|
|
41
|
-
* Read the persisted `options.byline_fields_version` counter. Cached for
|
|
42
|
-
* the duration of the current request via `requestCached`. Returns `0`
|
|
43
|
-
* when the row is missing (matches `BylineSchemaRegistry.getVersion`).
|
|
44
|
-
*/
|
|
45
|
-
async function getBylineFieldsVersion(db) {
|
|
46
|
-
return requestCached(REQUEST_CACHE_KEY_VERSION, () => new BylineSchemaRegistry(db).getVersion());
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Resolve registered byline custom-field definitions. Two-tier cache:
|
|
50
|
-
* per-request via `requestCached`, then per-isolate via the global
|
|
51
|
-
* holder.
|
|
52
|
-
*
|
|
53
|
-
* The global holder is bypassed for isolated requests (playground / DO
|
|
54
|
-
* preview, which point at a divergent schema) and for dirty versions
|
|
55
|
-
* (odd counter — see `BylineSchemaRegistry`'s class JSDoc — indicates
|
|
56
|
-
* an in-flight or crashed mutation). Both bypass paths still hit the
|
|
57
|
-
* per-request cache, so a single render dedupes within itself.
|
|
58
|
-
*
|
|
59
|
-
* Always returns an array. Empty = no custom fields registered.
|
|
60
|
-
*/
|
|
61
|
-
async function getBylineFieldDefs(db) {
|
|
62
|
-
const isolated = getRequestContext()?.dbIsIsolated === true;
|
|
63
|
-
const version = await getBylineFieldsVersion(db);
|
|
64
|
-
const dirty = version % 2 !== 0;
|
|
65
|
-
return requestCached(`${REQUEST_CACHE_KEY_DEFS_PREFIX}${version}`, async () => {
|
|
66
|
-
if (isolated || dirty) return new BylineSchemaRegistry(db).listFields();
|
|
67
|
-
return initWithLock(holder.lock, () => holder.hasValue && holder.cachedVersion === version ? holder.value : null, (isCurrentClaim) => (async () => {
|
|
68
|
-
const defs = await new BylineSchemaRegistry(db).listFields();
|
|
69
|
-
if (isCurrentClaim() && version >= holder.cachedVersion) {
|
|
70
|
-
holder.value = defs;
|
|
71
|
-
holder.hasValue = true;
|
|
72
|
-
holder.cachedVersion = version;
|
|
73
|
-
}
|
|
74
|
-
return defs;
|
|
75
|
-
})(), {
|
|
76
|
-
deadlineMs: reclaimDeadlineMs,
|
|
77
|
-
anchor: (promise) => after(() => promise)
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
//#endregion
|
|
83
13
|
//#region src/database/repositories/byline.ts
|
|
84
14
|
var byline_exports = /* @__PURE__ */ __exportAll({ BylineRepository: () => BylineRepository });
|
|
85
15
|
function rowToByline(row) {
|
|
@@ -91,6 +21,8 @@ function rowToByline(row) {
|
|
|
91
21
|
avatarMediaId: row.avatar_media_id,
|
|
92
22
|
avatarStorageKey: row.avatar_storage_key ?? null,
|
|
93
23
|
avatarAlt: row.avatar_alt ?? null,
|
|
24
|
+
avatarBlurhash: row.avatar_blurhash ?? null,
|
|
25
|
+
avatarDominantColor: row.avatar_dominant_color ?? null,
|
|
94
26
|
websiteUrl: row.website_url,
|
|
95
27
|
userId: row.user_id,
|
|
96
28
|
isGuest: row.is_guest === 1,
|
|
@@ -650,6 +582,8 @@ var BylineRepository = class {
|
|
|
650
582
|
"b.avatar_media_id as avatar_media_id",
|
|
651
583
|
"m.storage_key as avatar_storage_key",
|
|
652
584
|
"m.alt as avatar_alt",
|
|
585
|
+
"m.blurhash as avatar_blurhash",
|
|
586
|
+
"m.dominant_color as avatar_dominant_color",
|
|
653
587
|
"b.website_url as website_url",
|
|
654
588
|
"b.user_id as user_id",
|
|
655
589
|
"b.is_guest as is_guest",
|
|
@@ -668,6 +602,8 @@ var BylineRepository = class {
|
|
|
668
602
|
avatar_media_id: row.avatar_media_id,
|
|
669
603
|
avatar_storage_key: row.avatar_storage_key,
|
|
670
604
|
avatar_alt: row.avatar_alt,
|
|
605
|
+
avatar_blurhash: row.avatar_blurhash,
|
|
606
|
+
avatar_dominant_color: row.avatar_dominant_color,
|
|
671
607
|
website_url: row.website_url,
|
|
672
608
|
user_id: row.user_id,
|
|
673
609
|
is_guest: row.is_guest,
|
|
@@ -746,6 +682,8 @@ var BylineRepository = class {
|
|
|
746
682
|
"b.avatar_media_id as avatar_media_id",
|
|
747
683
|
"m.storage_key as avatar_storage_key",
|
|
748
684
|
"m.alt as avatar_alt",
|
|
685
|
+
"m.blurhash as avatar_blurhash",
|
|
686
|
+
"m.dominant_color as avatar_dominant_color",
|
|
749
687
|
"b.website_url as website_url",
|
|
750
688
|
"b.user_id as user_id",
|
|
751
689
|
"b.is_guest as is_guest",
|
|
@@ -764,6 +702,8 @@ var BylineRepository = class {
|
|
|
764
702
|
avatar_media_id: row.avatar_media_id,
|
|
765
703
|
avatar_storage_key: row.avatar_storage_key,
|
|
766
704
|
avatar_alt: row.avatar_alt,
|
|
705
|
+
avatar_blurhash: row.avatar_blurhash,
|
|
706
|
+
avatar_dominant_color: row.avatar_dominant_color,
|
|
767
707
|
website_url: row.website_url,
|
|
768
708
|
user_id: row.user_id,
|
|
769
709
|
is_guest: row.is_guest,
|
|
@@ -818,6 +758,8 @@ var BylineRepository = class {
|
|
|
818
758
|
"b.avatar_media_id as avatar_media_id",
|
|
819
759
|
"m.storage_key as avatar_storage_key",
|
|
820
760
|
"m.alt as avatar_alt",
|
|
761
|
+
"m.blurhash as avatar_blurhash",
|
|
762
|
+
"m.dominant_color as avatar_dominant_color",
|
|
821
763
|
"b.website_url as website_url",
|
|
822
764
|
"b.user_id as user_id",
|
|
823
765
|
"b.is_guest as is_guest",
|
|
@@ -944,4 +886,4 @@ var BylineRepository = class {
|
|
|
944
886
|
|
|
945
887
|
//#endregion
|
|
946
888
|
export { byline_exports as n, BylineRepository as t };
|
|
947
|
-
//# sourceMappingURL=byline-
|
|
889
|
+
//# sourceMappingURL=byline-C-YajfV7.mjs.map
|