emdash 0.30.0 → 0.31.1
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/api/route-utils.mjs +13 -13
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/api/schemas/index.mjs +3 -3
- package/dist/{api-b8WIiGU4.mjs → api-BkqFzIu4.mjs} +23 -23
- package/dist/api-BkqFzIu4.mjs.map +1 -0
- package/dist/{apply-CmIJK9j8.mjs → apply-DuXsqll7.mjs} +26 -25
- package/dist/apply-DuXsqll7.mjs.map +1 -0
- package/dist/astro/index.d.mts +2 -2
- package/dist/astro/index.mjs +1 -1
- package/dist/astro/middleware/auth.d.mts +2 -2
- package/dist/astro/middleware/auth.mjs +2 -2
- package/dist/astro/middleware/redirect.mjs +5 -5
- package/dist/astro/middleware/request-context.mjs +1 -1
- package/dist/astro/middleware.d.mts +2 -2
- package/dist/astro/middleware.mjs +146 -70
- 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 +2 -2
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +3 -3
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +3 -3
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +7 -7
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +7 -7
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +7 -7
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +14 -14
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +14 -14
- package/dist/astro/routes/api/admin/bylines/index.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/bylines/index.mjs +18 -17
- package/dist/astro/routes/api/admin/bylines/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +10 -10
- 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/media-usage/repair.mjs +10 -10
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +3 -3
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/_id_/mcp.mjs +4 -4
- package/dist/astro/routes/api/admin/plugins/_id_/settings.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/index.mjs +34 -34
- 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 -34
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs +35 -35
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs +35 -35
- package/dist/astro/routes/api/admin/plugins/updates.mjs +34 -34
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +34 -34
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +3 -3
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +34 -34
- 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 +2 -2
- package/dist/astro/routes/api/admin/users/index.mjs +6 -6
- package/dist/astro/routes/api/auth/dev-bypass.mjs +4 -4
- package/dist/astro/routes/api/auth/invite/accept.mjs +2 -2
- package/dist/astro/routes/api/auth/invite/complete.mjs +6 -6
- package/dist/astro/routes/api/auth/invite/index.mjs +6 -6
- package/dist/astro/routes/api/auth/invite/register-options.mjs +6 -6
- package/dist/astro/routes/api/auth/logout.mjs +2 -2
- package/dist/astro/routes/api/auth/magic-link/send.mjs +7 -7
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +7 -7
- package/dist/astro/routes/api/auth/mode.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 +7 -7
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +6 -6
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +6 -6
- package/dist/astro/routes/api/auth/passkey/verify.mjs +6 -6
- package/dist/astro/routes/api/auth/signup/complete.mjs +6 -6
- package/dist/astro/routes/api/auth/signup/request.mjs +7 -7
- package/dist/astro/routes/api/auth/signup/verify.mjs +2 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +10 -10
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +10 -10
- 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 +9 -9
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/children.mjs +14 -14
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/parents.mjs +14 -14
- 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 +13 -13
- 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 +2 -2
- package/dist/astro/routes/api/import/probe.mjs +12 -12
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +3 -3
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/execute.mjs +11 -11
- package/dist/astro/routes/api/import/wordpress/media.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/media.mjs +7 -7
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +9 -9
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +9 -9
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +12 -12
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +19 -19
- package/dist/astro/routes/api/manifest.mjs +3 -3
- 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_/usage.mjs +11 -11
- package/dist/astro/routes/api/media/_id_.mjs +10 -10
- 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 +7 -7
- package/dist/astro/routes/api/media.mjs +10 -10
- 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.d.mts.map +1 -1
- package/dist/astro/routes/api/oauth/authorize.mjs +23 -9
- package/dist/astro/routes/api/oauth/authorize.mjs.map +1 -1
- package/dist/astro/routes/api/oauth/device/authorize.mjs +3 -3
- package/dist/astro/routes/api/oauth/device/code.mjs +4 -4
- package/dist/astro/routes/api/oauth/device/token.mjs +4 -4
- package/dist/astro/routes/api/oauth/register.mjs +2 -2
- package/dist/astro/routes/api/oauth/token/refresh.mjs +3 -3
- package/dist/astro/routes/api/oauth/token/revoke.mjs +3 -3
- package/dist/astro/routes/api/oauth/token.mjs +2 -2
- 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 +10 -10
- package/dist/astro/routes/api/redirects/404s/summary.mjs +10 -10
- package/dist/astro/routes/api/redirects/_id_.mjs +11 -11
- package/dist/astro/routes/api/redirects/index.mjs +11 -11
- package/dist/astro/routes/api/relations/_id_/index.mjs +14 -14
- package/dist/astro/routes/api/relations/_id_/translations.mjs +10 -10
- package/dist/astro/routes/api/relations/index.mjs +14 -14
- 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 -34
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +34 -34
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +34 -34
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +34 -34
- package/dist/astro/routes/api/schema/collections/index.mjs +34 -34
- package/dist/astro/routes/api/schema/index.mjs +8 -8
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +34 -34
- package/dist/astro/routes/api/schema/orphans/index.mjs +34 -34
- 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 +10 -10
- package/dist/astro/routes/api/sections/index.mjs +10 -10
- package/dist/astro/routes/api/settings/backups/archives/_name_.mjs +4 -4
- package/dist/astro/routes/api/settings/backups/archives/index.mjs +4 -4
- package/dist/astro/routes/api/settings/backups/export.mjs +4 -4
- package/dist/astro/routes/api/settings/backups/index.mjs +5 -5
- package/dist/astro/routes/api/settings/email.mjs +4 -4
- package/dist/astro/routes/api/settings.mjs +12 -12
- package/dist/astro/routes/api/setup/admin-verify.mjs +6 -6
- package/dist/astro/routes/api/setup/admin.mjs +6 -6
- package/dist/astro/routes/api/setup/dev-bypass.mjs +18 -18
- package/dist/astro/routes/api/setup/dev-reset.mjs +2 -2
- package/dist/astro/routes/api/setup/index.mjs +22 -22
- package/dist/astro/routes/api/setup/status.mjs +3 -3
- package/dist/astro/routes/api/snapshot.mjs +4 -4
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +13 -13
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +13 -13
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +13 -13
- package/dist/astro/routes/api/taxonomies/index.mjs +13 -13
- package/dist/astro/routes/api/themes/preview.mjs +4 -4
- package/dist/astro/routes/api/typegen.mjs +5 -5
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +7 -7
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +10 -10
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +10 -10
- package/dist/astro/routes/api/widget-areas/_name_.mjs +6 -6
- package/dist/astro/routes/api/widget-areas/index.mjs +10 -10
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +5 -5
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +7 -7
- package/dist/astro/routes/sitemap.xml.mjs +5 -5
- package/dist/astro/types.d.mts +2 -2
- package/dist/{authorize-WxsiePzy.mjs → authorize-6WPZa1xZ.mjs} +2 -2
- package/dist/{authorize-WxsiePzy.mjs.map → authorize-6WPZa1xZ.mjs.map} +1 -1
- package/dist/{backup-S8kFWtwD.mjs → backup-DoW-H0r4.mjs} +2 -2
- package/dist/{backup-S8kFWtwD.mjs.map → backup-DoW-H0r4.mjs.map} +1 -1
- package/dist/{byline-XEjchwzZ.mjs → byline-BTOxUlFF.mjs} +6 -6
- package/dist/{byline-XEjchwzZ.mjs.map → byline-BTOxUlFF.mjs.map} +1 -1
- package/dist/{bylines-czseViYo.mjs → bylines-Bc-3xtpz.mjs} +6 -6
- package/dist/{bylines-czseViYo.mjs.map → bylines-Bc-3xtpz.mjs.map} +1 -1
- package/dist/{bylines-BJbT4gKS.mjs → bylines-oVN0iPwX.mjs} +12 -8
- package/dist/bylines-oVN0iPwX.mjs.map +1 -0
- package/dist/{cache-CGCd6AVM.mjs → cache-DDwy3JDW.mjs} +2 -2
- package/dist/{cache-CGCd6AVM.mjs.map → cache-DDwy3JDW.mjs.map} +1 -1
- package/dist/{chunks-BxXyunY-.mjs → chunks-Bq-5DPrD.mjs} +2 -2
- package/dist/{chunks-BxXyunY-.mjs.map → chunks-Bq-5DPrD.mjs.map} +1 -1
- package/dist/cli/index.mjs +18 -18
- package/dist/{comment-DPT0WKyd.mjs → comment-B9cUud8H.mjs} +2 -2
- package/dist/{comment-DPT0WKyd.mjs.map → comment-B9cUud8H.mjs.map} +1 -1
- package/dist/{comment-reaction-C65MldIB.mjs → comment-reaction-VUXO981F.mjs} +2 -2
- package/dist/{comment-reaction-C65MldIB.mjs.map → comment-reaction-VUXO981F.mjs.map} +1 -1
- package/dist/{comments-Bz6sCbgD.mjs → comments-PXj1E9Si.mjs} +3 -3
- package/dist/{comments-Bz6sCbgD.mjs.map → comments-PXj1E9Si.mjs.map} +1 -1
- package/dist/{config-CVssduLe.mjs → config-B6b_BobR.mjs} +6 -2
- package/dist/config-B6b_BobR.mjs.map +1 -0
- package/dist/{content-Ci04z2z-.mjs → content-BC43pICM.mjs} +4 -4
- package/dist/{content-Ci04z2z-.mjs.map → content-BC43pICM.mjs.map} +1 -1
- package/dist/{content-refresh-D4khvC0R.mjs → content-refresh-CPMSauD3.mjs} +4 -4
- package/dist/{content-refresh-D4khvC0R.mjs.map → content-refresh-CPMSauD3.mjs.map} +1 -1
- package/dist/{context-B6hc7zJL.mjs → context-DOurRIrb.mjs} +10 -10
- package/dist/{context-B6hc7zJL.mjs.map → context-DOurRIrb.mjs.map} +1 -1
- package/dist/{dashboard-C5NkXFbi.mjs → dashboard-CBm4zhc3.mjs} +4 -4
- package/dist/{dashboard-C5NkXFbi.mjs.map → dashboard-CBm4zhc3.mjs.map} +1 -1
- package/dist/database/pg-migration-lock.d.mts.map +1 -1
- package/dist/database/pg-migration-lock.mjs +1 -4
- package/dist/database/pg-migration-lock.mjs.map +1 -1
- package/dist/db/index.mjs +2 -2
- package/dist/{dialect-helpers-HxEQGl_1.mjs → dialect-helpers-BtOwo2us.mjs} +4 -4
- package/dist/dialect-helpers-BtOwo2us.mjs.map +1 -0
- package/dist/{error-CEGF6UZb.mjs → error-DJ98TRbQ.mjs} +2 -2
- package/dist/{error-CEGF6UZb.mjs.map → error-DJ98TRbQ.mjs.map} +1 -1
- package/dist/{field-defs-cache-DvmlgP-D.mjs → field-defs-cache-KfNJ_qLQ.mjs} +2 -2
- package/dist/{field-defs-cache-DvmlgP-D.mjs.map → field-defs-cache-KfNJ_qLQ.mjs.map} +1 -1
- package/dist/{fts-manager-DzqIBrrW.mjs → fts-manager-hyCU9OOp.mjs} +3 -3
- package/dist/{fts-manager-DzqIBrrW.mjs.map → fts-manager-hyCU9OOp.mjs.map} +1 -1
- package/dist/{hreflang-db2Tpb2o.mjs → hreflang-CbYeCzl9.mjs} +7 -7
- package/dist/{hreflang-db2Tpb2o.mjs.map → hreflang-CbYeCzl9.mjs.map} +1 -1
- package/dist/{import-Dmkm8S1W.mjs → import-oDYCgNYQ.mjs} +2 -2
- package/dist/{import-Dmkm8S1W.mjs.map → import-oDYCgNYQ.mjs.map} +1 -1
- package/dist/{index-wYnC6u4o.d.mts → index-BZJ_5FOX.d.mts} +50 -4
- package/dist/index-BZJ_5FOX.d.mts.map +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +48 -48
- package/dist/{load-Cx27ki1l.mjs → load-Dg5gtWma.mjs} +2 -2
- package/dist/{load-Cx27ki1l.mjs.map → load-Dg5gtWma.mjs.map} +1 -1
- package/dist/{loader-Be3ouI5L.mjs → loader-D4rigvjR.mjs} +4 -4
- package/dist/{loader-Be3ouI5L.mjs.map → loader-D4rigvjR.mjs.map} +1 -1
- package/dist/media/local-runtime.d.mts +2 -2
- package/dist/media/local-runtime.mjs +5 -5
- package/dist/{media-kIV1IxFf.mjs → media-BJ6SRY3g.mjs} +8 -4
- package/dist/media-BJ6SRY3g.mjs.map +1 -0
- package/dist/{media-BjhhENaJ.mjs → media-its1WLYv.mjs} +2 -2
- package/dist/{media-BjhhENaJ.mjs.map → media-its1WLYv.mjs.map} +1 -1
- package/dist/{media-upload-D2wk3EIt.mjs → media-upload-DNu3QySc.mjs} +4 -4
- package/dist/{media-upload-D2wk3EIt.mjs.map → media-upload-DNu3QySc.mjs.map} +1 -1
- package/dist/{media-usage-CljdO1mc.mjs → media-usage-DPQ3K4xB.mjs} +6 -6
- package/dist/{media-usage-CljdO1mc.mjs.map → media-usage-DPQ3K4xB.mjs.map} +1 -1
- package/dist/{menus-CZyG6rvx.mjs → menus-BMGzWyWH.mjs} +15 -8
- package/dist/menus-BMGzWyWH.mjs.map +1 -0
- package/dist/{menus-BcyElFtI.mjs → menus-CPf_SW7u.mjs} +86 -8
- package/dist/menus-CPf_SW7u.mjs.map +1 -0
- package/dist/{parse-C_-6klII.mjs → parse-53zyxlpv.mjs} +2 -2
- package/dist/{parse-C_-6klII.mjs.map → parse-53zyxlpv.mjs.map} +1 -1
- package/dist/plugin-utils.d.mts +2 -2
- package/dist/plugins/adapt-sandbox-entry.d.mts +2 -2
- package/dist/{query-DR73ZNfm.mjs → query-Bz9bWZfm.mjs} +14 -14
- package/dist/{query-DR73ZNfm.mjs.map → query-Bz9bWZfm.mjs.map} +1 -1
- package/dist/{query-Di7DOmPV.mjs → query-DdFGHzQF.mjs} +3 -3
- package/dist/{query-Di7DOmPV.mjs.map → query-DdFGHzQF.mjs.map} +1 -1
- package/dist/{rate-limit-CMj83JNW.mjs → rate-limit-D3IEiUi2.mjs} +2 -2
- package/dist/{rate-limit-CMj83JNW.mjs.map → rate-limit-D3IEiUi2.mjs.map} +1 -1
- package/dist/{redirect-CgLPYflR.mjs → redirect-BoUac4NT.mjs} +3 -3
- package/dist/{redirect-CgLPYflR.mjs.map → redirect-BoUac4NT.mjs.map} +1 -1
- package/dist/{redirects-B7t9bKsL.mjs → redirects-ChbpqKiS.mjs} +3 -3
- package/dist/{redirects-B7t9bKsL.mjs.map → redirects-ChbpqKiS.mjs.map} +1 -1
- package/dist/{redirects-BBq3n2Rj.mjs → redirects-D457qwt0.mjs} +8 -8
- package/dist/redirects-D457qwt0.mjs.map +1 -0
- package/dist/{registry-FV15nLge.mjs → registry-y21kjhfG.mjs} +6 -6
- package/dist/{registry-FV15nLge.mjs.map → registry-y21kjhfG.mjs.map} +1 -1
- package/dist/{relation-9M9j_UWo.mjs → relation-Du0r04E0.mjs} +3 -3
- package/dist/{relation-9M9j_UWo.mjs.map → relation-Du0r04E0.mjs.map} +1 -1
- package/dist/{relations-5_avdrN_.mjs → relations-CZMpBqEd.mjs} +3 -3
- package/dist/{relations-5_avdrN_.mjs.map → relations-CZMpBqEd.mjs.map} +1 -1
- package/dist/{relations-BKvO39-9.mjs → relations-DtX1UMBH.mjs} +13 -7
- package/dist/relations-DtX1UMBH.mjs.map +1 -0
- package/dist/{relations-Bh8jlFsU.d.mts → relations-qKmSj9KM.d.mts} +27 -23
- package/dist/relations-qKmSj9KM.d.mts.map +1 -0
- package/dist/{resolve-Cd9dzclN.mjs → resolve-DFr4kq72.mjs} +2 -2
- package/dist/{resolve-Cd9dzclN.mjs.map → resolve-DFr4kq72.mjs.map} +1 -1
- package/dist/{runner-DfnZ5eUr.mjs → runner-BdeLEgad.mjs} +3 -3
- package/dist/{runner-DfnZ5eUr.mjs.map → runner-BdeLEgad.mjs.map} +1 -1
- package/dist/runtime.d.mts +2 -2
- package/dist/runtime.mjs +3 -3
- package/dist/{schema-BXxlHeAf.mjs → schema-BH8P8vaC.mjs} +3 -3
- package/dist/{schema-BXxlHeAf.mjs.map → schema-BH8P8vaC.mjs.map} +1 -1
- package/dist/{scopes-Bl4IwHA-.mjs → scopes-DTIkIaGA.mjs} +2 -2
- package/dist/{scopes-Bl4IwHA-.mjs.map → scopes-DTIkIaGA.mjs.map} +1 -1
- package/dist/{search-Bff-7jFt.mjs → search-D-Yhpmvs.mjs} +8 -7
- package/dist/search-D-Yhpmvs.mjs.map +1 -0
- package/dist/{secrets-CSwQIl4q.mjs → secrets-CQ-69kF9.mjs} +23 -17
- package/dist/secrets-CQ-69kF9.mjs.map +1 -0
- package/dist/{sections-CwW4s1al.mjs → sections-CzVBAKjw.mjs} +3 -3
- package/dist/{sections-CwW4s1al.mjs.map → sections-CzVBAKjw.mjs.map} +1 -1
- package/dist/seed/index.mjs +16 -16
- package/dist/seo/index.mjs +12 -12
- package/dist/{seo-2cmFHZns.mjs → seo-kJzVAmmu.mjs} +2 -2
- package/dist/{seo-2cmFHZns.mjs.map → seo-kJzVAmmu.mjs.map} +1 -1
- package/dist/{service-DkGTWGIi.mjs → service-CQnc276a.mjs} +2 -2
- package/dist/{service-DkGTWGIi.mjs.map → service-CQnc276a.mjs.map} +1 -1
- package/dist/{settings-CpA4lQFt.mjs → settings-C2PaBS49.mjs} +3 -3
- package/dist/{settings-CpA4lQFt.mjs.map → settings-C2PaBS49.mjs.map} +1 -1
- package/dist/{settings-C4s8hFQm.mjs → settings-Dtc0DU31.mjs} +3 -3
- package/dist/{settings-C4s8hFQm.mjs.map → settings-Dtc0DU31.mjs.map} +1 -1
- package/dist/{taxonomies-Ce49uIzY.mjs → taxonomies-BN6M9Nrv.mjs} +26 -17
- package/dist/taxonomies-BN6M9Nrv.mjs.map +1 -0
- package/dist/{taxonomies-DjSKBZpq.mjs → taxonomies-r7pqLBCn.mjs} +53 -24
- package/dist/taxonomies-r7pqLBCn.mjs.map +1 -0
- package/dist/{taxonomy-DfVooU4W.mjs → taxonomy-0mCI25HN.mjs} +3 -3
- package/dist/{taxonomy-DfVooU4W.mjs.map → taxonomy-0mCI25HN.mjs.map} +1 -1
- package/dist/{types-D1iJ3DpO.mjs → types-CrRUFdej.mjs} +2 -2
- package/dist/{types-D1iJ3DpO.mjs.map → types-CrRUFdej.mjs.map} +1 -1
- package/dist/{user-Bh-L1qo6.mjs → user-aTXqmXBz.mjs} +3 -3
- package/dist/{user-Bh-L1qo6.mjs.map → user-aTXqmXBz.mjs.map} +1 -1
- package/dist/{validate-V9nCwq_-.mjs → validate-CDT1jl6_.mjs} +11 -6
- package/dist/validate-CDT1jl6_.mjs.map +1 -0
- package/dist/validate-DULfgpJP.d.mts.map +1 -1
- package/dist/{validation-BsVUJfsP.mjs → validation-DlD0E35W.mjs} +8 -8
- package/dist/{validation-BsVUJfsP.mjs.map → validation-DlD0E35W.mjs.map} +1 -1
- package/dist/version-BRMngh9I.mjs +7 -0
- package/dist/{version-907opKac.mjs.map → version-BRMngh9I.mjs.map} +1 -1
- package/dist/{widgets-DGv1Z04V.mjs → widgets-5fipNkMT.mjs} +2 -2
- package/dist/{widgets-DGv1Z04V.mjs.map → widgets-5fipNkMT.mjs.map} +1 -1
- package/dist/{wxr-taxonomies-Cs1N6O8z.mjs → wxr-taxonomies-DrihupaC.mjs} +4 -4
- package/dist/{wxr-taxonomies-Cs1N6O8z.mjs.map → wxr-taxonomies-DrihupaC.mjs.map} +1 -1
- package/dist/{zod-generator-B5prQ5M4.mjs → zod-generator-CwkHWz4f.mjs} +2 -2
- package/dist/{zod-generator-B5prQ5M4.mjs.map → zod-generator-CwkHWz4f.mjs.map} +1 -1
- package/package.json +7 -7
- package/src/api/handlers/bylines.ts +5 -4
- package/src/api/handlers/content.ts +25 -7
- package/src/api/handlers/menus.ts +11 -6
- package/src/api/handlers/relations.ts +7 -2
- package/src/api/handlers/taxonomies.ts +22 -14
- package/src/api/schemas/bylines.ts +4 -4
- package/src/api/schemas/common.ts +7 -6
- package/src/api/schemas/menus.ts +2 -1
- package/src/api/schemas/relations.ts +3 -1
- package/src/api/schemas/taxonomies.ts +4 -2
- package/src/astro/prefetch.ts +7 -2
- package/src/astro/routes/api/admin/bylines/index.ts +5 -8
- package/src/astro/routes/api/oauth/authorize.ts +42 -10
- package/src/components/Gallery.astro +141 -26
- package/src/components/widgets/Categories.astro +1 -1
- package/src/components/widgets/Tags.astro +1 -1
- package/src/config/secrets.ts +25 -19
- package/src/content/converters/gallery.ts +61 -0
- package/src/content/converters/portable-text-to-prosemirror.ts +19 -0
- package/src/content/converters/prosemirror-to-portable-text.ts +18 -0
- package/src/content/converters/types.ts +36 -0
- package/src/database/dialect-helpers.ts +3 -4
- package/src/database/pg-migration-lock.ts +1 -4
- package/src/emdash-runtime.ts +55 -17
- package/src/i18n/config.ts +8 -0
- package/src/i18n/repair-locale-casing.ts +51 -0
- package/src/search/query.ts +3 -2
- package/src/seed/apply.ts +9 -7
- package/src/seed/validate.ts +15 -4
- package/src/taxonomies/index.ts +64 -23
- package/dist/api-b8WIiGU4.mjs.map +0 -1
- package/dist/apply-CmIJK9j8.mjs.map +0 -1
- package/dist/bylines-BJbT4gKS.mjs.map +0 -1
- package/dist/config-CVssduLe.mjs.map +0 -1
- package/dist/dialect-helpers-HxEQGl_1.mjs.map +0 -1
- package/dist/index-wYnC6u4o.d.mts.map +0 -1
- package/dist/media-kIV1IxFf.mjs.map +0 -1
- package/dist/menus-BcyElFtI.mjs.map +0 -1
- package/dist/menus-CZyG6rvx.mjs.map +0 -1
- package/dist/redirects-BBq3n2Rj.mjs.map +0 -1
- package/dist/relations-BKvO39-9.mjs.map +0 -1
- package/dist/relations-Bh8jlFsU.d.mts.map +0 -1
- package/dist/search-Bff-7jFt.mjs.map +0 -1
- package/dist/secrets-CSwQIl4q.mjs.map +0 -1
- package/dist/taxonomies-Ce49uIzY.mjs.map +0 -1
- package/dist/taxonomies-DjSKBZpq.mjs.map +0 -1
- package/dist/validate-V9nCwq_-.mjs.map +0 -1
- package/dist/version-907opKac.mjs +0 -7
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../types-
|
|
3
|
-
import { t as apiError } from "../../../error-
|
|
4
|
-
import { t as CONTENT_TYPE_RE } from "../../../media-
|
|
5
|
-
import { Zt as contentSeoInput, fn as bylineUpdateBody, mn as contentBylineInputSchema, on as bylineCreateBody } from "../../../redirects-
|
|
6
|
-
import "../../../relations-
|
|
2
|
+
import "../../../types-CrRUFdej.mjs";
|
|
3
|
+
import { t as apiError } from "../../../error-DJ98TRbQ.mjs";
|
|
4
|
+
import { t as CONTENT_TYPE_RE } from "../../../media-BJ6SRY3g.mjs";
|
|
5
|
+
import { Zt as contentSeoInput, fn as bylineUpdateBody, mn as contentBylineInputSchema, on as bylineCreateBody } from "../../../redirects-D457qwt0.mjs";
|
|
6
|
+
import "../../../relations-CZMpBqEd.mjs";
|
|
7
7
|
import "../../../status-COfycGIU.mjs";
|
|
8
8
|
import "../../../api/schemas/index.mjs";
|
|
9
9
|
import { i as hasScope$1 } from "../../../api-tokens-Cvmixds7.mjs";
|
|
@@ -173,7 +173,7 @@ function getEmDash(extra) {
|
|
|
173
173
|
}
|
|
174
174
|
async function getCollectionFields(ec, collection) {
|
|
175
175
|
try {
|
|
176
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
176
|
+
const { SchemaRegistry } = await import("../../../schema-BH8P8vaC.mjs").then((n) => n.t);
|
|
177
177
|
const col = await new SchemaRegistry(ec.db).getCollectionWithFields(collection);
|
|
178
178
|
return col ? col.fields : null;
|
|
179
179
|
} catch {
|
|
@@ -202,7 +202,7 @@ async function applyReadMarkdown(ec, collection, items) {
|
|
|
202
202
|
for (const item of items) if (item.data && typeof item.data === "object") item.data = convertDataForRead(item.data, fields, false);
|
|
203
203
|
}
|
|
204
204
|
async function invalidateBylines() {
|
|
205
|
-
const { invalidateBylineCache } = await import("../../../bylines-
|
|
205
|
+
const { invalidateBylineCache } = await import("../../../bylines-Bc-3xtpz.mjs").then((n) => n.t);
|
|
206
206
|
invalidateBylineCache();
|
|
207
207
|
}
|
|
208
208
|
/**
|
|
@@ -758,7 +758,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
758
758
|
requireScope(extra, "content:read");
|
|
759
759
|
const ec = getEmDash(extra);
|
|
760
760
|
try {
|
|
761
|
-
const { BylineRepository } = await import("../../../byline-
|
|
761
|
+
const { BylineRepository } = await import("../../../byline-BTOxUlFF.mjs").then((n) => n.n);
|
|
762
762
|
return jsonResult(await new BylineRepository(ec.db).findMany({
|
|
763
763
|
search: args.search,
|
|
764
764
|
isGuest: args.isGuest,
|
|
@@ -780,7 +780,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
780
780
|
requireScope(extra, "content:read");
|
|
781
781
|
const ec = getEmDash(extra);
|
|
782
782
|
try {
|
|
783
|
-
const { BylineRepository } = await import("../../../byline-
|
|
783
|
+
const { BylineRepository } = await import("../../../byline-BTOxUlFF.mjs").then((n) => n.n);
|
|
784
784
|
const byline = await new BylineRepository(ec.db).findById(args.id);
|
|
785
785
|
if (!byline) return respondError("NOT_FOUND", `Byline '${args.id}' not found`);
|
|
786
786
|
return jsonResult(byline);
|
|
@@ -798,7 +798,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
798
798
|
requireRole(extra, Role.EDITOR);
|
|
799
799
|
const ec = getEmDash(extra);
|
|
800
800
|
try {
|
|
801
|
-
const { handleBylineCreate } = await import("../../../bylines-
|
|
801
|
+
const { handleBylineCreate } = await import("../../../bylines-oVN0iPwX.mjs").then((n) => n.t);
|
|
802
802
|
const result = await handleBylineCreate(ec.db, args);
|
|
803
803
|
if (result.success) await invalidateBylines();
|
|
804
804
|
return unwrap(result);
|
|
@@ -818,7 +818,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
818
818
|
requireRole(extra, Role.EDITOR);
|
|
819
819
|
const ec = getEmDash(extra);
|
|
820
820
|
try {
|
|
821
|
-
const { handleBylineUpdate } = await import("../../../bylines-
|
|
821
|
+
const { handleBylineUpdate } = await import("../../../bylines-oVN0iPwX.mjs").then((n) => n.t);
|
|
822
822
|
const { id, ...input } = args;
|
|
823
823
|
const result = await handleBylineUpdate(ec.db, id, input);
|
|
824
824
|
if (result.success) await invalidateBylines();
|
|
@@ -837,7 +837,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
837
837
|
requireRole(extra, Role.EDITOR);
|
|
838
838
|
const ec = getEmDash(extra);
|
|
839
839
|
try {
|
|
840
|
-
const { BylineRepository } = await import("../../../byline-
|
|
840
|
+
const { BylineRepository } = await import("../../../byline-BTOxUlFF.mjs").then((n) => n.n);
|
|
841
841
|
if (!await new BylineRepository(ec.db).delete(args.id)) return respondError("NOT_FOUND", `Byline '${args.id}' not found`);
|
|
842
842
|
await invalidateBylines();
|
|
843
843
|
return jsonResult({ deleted: args.id });
|
|
@@ -854,7 +854,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
854
854
|
requireScope(extra, "content:read");
|
|
855
855
|
const ec = getEmDash(extra);
|
|
856
856
|
try {
|
|
857
|
-
const { handleBylineTranslations } = await import("../../../bylines-
|
|
857
|
+
const { handleBylineTranslations } = await import("../../../bylines-oVN0iPwX.mjs").then((n) => n.t);
|
|
858
858
|
return unwrap(await handleBylineTranslations(ec.db, args.id));
|
|
859
859
|
} catch (error) {
|
|
860
860
|
return respondHandlerError(error, "BYLINE_TRANSLATIONS_ERROR");
|
|
@@ -870,7 +870,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
870
870
|
requireRole(extra, Role.EDITOR);
|
|
871
871
|
const ec = getEmDash(extra);
|
|
872
872
|
try {
|
|
873
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
873
|
+
const { SchemaRegistry } = await import("../../../schema-BH8P8vaC.mjs").then((n) => n.t);
|
|
874
874
|
return jsonResult({ items: await new SchemaRegistry(ec.db).listCollections() });
|
|
875
875
|
} catch (error) {
|
|
876
876
|
return respondHandlerError(error, "SCHEMA_LIST_ERROR");
|
|
@@ -886,7 +886,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
886
886
|
requireRole(extra, Role.EDITOR);
|
|
887
887
|
const ec = getEmDash(extra);
|
|
888
888
|
try {
|
|
889
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
889
|
+
const { SchemaRegistry } = await import("../../../schema-BH8P8vaC.mjs").then((n) => n.t);
|
|
890
890
|
const collection = await new SchemaRegistry(ec.db).getCollectionWithFields(args.slug);
|
|
891
891
|
if (!collection) return respondError("NOT_FOUND", `Collection '${args.slug}' not found`);
|
|
892
892
|
return jsonResult(collection);
|
|
@@ -916,7 +916,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
916
916
|
requireRole(extra, Role.ADMIN);
|
|
917
917
|
const ec = getEmDash(extra);
|
|
918
918
|
try {
|
|
919
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
919
|
+
const { SchemaRegistry } = await import("../../../schema-BH8P8vaC.mjs").then((n) => n.t);
|
|
920
920
|
const collection = await new SchemaRegistry(ec.db).createCollection({
|
|
921
921
|
slug: args.slug,
|
|
922
922
|
label: args.label,
|
|
@@ -944,7 +944,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
944
944
|
requireRole(extra, Role.ADMIN);
|
|
945
945
|
const ec = getEmDash(extra);
|
|
946
946
|
try {
|
|
947
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
947
|
+
const { SchemaRegistry } = await import("../../../schema-BH8P8vaC.mjs").then((n) => n.t);
|
|
948
948
|
await new SchemaRegistry(ec.db).deleteCollection(args.slug, { force: args.force });
|
|
949
949
|
ec.invalidateUrlPatternCache();
|
|
950
950
|
return jsonResult({ deleted: args.slug });
|
|
@@ -998,7 +998,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
998
998
|
requireRole(extra, Role.ADMIN);
|
|
999
999
|
const ec = getEmDash(extra);
|
|
1000
1000
|
try {
|
|
1001
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
1001
|
+
const { SchemaRegistry } = await import("../../../schema-BH8P8vaC.mjs").then((n) => n.t);
|
|
1002
1002
|
return jsonResult(await new SchemaRegistry(ec.db).createField(args.collection, {
|
|
1003
1003
|
slug: args.slug,
|
|
1004
1004
|
label: args.label,
|
|
@@ -1028,7 +1028,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1028
1028
|
requireRole(extra, Role.ADMIN);
|
|
1029
1029
|
const ec = getEmDash(extra);
|
|
1030
1030
|
try {
|
|
1031
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
1031
|
+
const { SchemaRegistry } = await import("../../../schema-BH8P8vaC.mjs").then((n) => n.t);
|
|
1032
1032
|
await new SchemaRegistry(ec.db).deleteField(args.collection, args.fieldSlug);
|
|
1033
1033
|
return jsonResult({
|
|
1034
1034
|
deleted: args.fieldSlug,
|
|
@@ -1103,7 +1103,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1103
1103
|
const { emdash, userId } = getExtra(extra);
|
|
1104
1104
|
if (!emdash.storage) return respondError("NO_STORAGE", "Storage not configured");
|
|
1105
1105
|
try {
|
|
1106
|
-
const { handleMediaUpload } = await import("../../../media-upload-
|
|
1106
|
+
const { handleMediaUpload } = await import("../../../media-upload-DNu3QySc.mjs");
|
|
1107
1107
|
return unwrap(await handleMediaUpload(emdash.db, emdash.storage, {
|
|
1108
1108
|
filename: args.filename,
|
|
1109
1109
|
base64: args.base64,
|
|
@@ -1183,7 +1183,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1183
1183
|
};
|
|
1184
1184
|
} else input = { scope: "all" };
|
|
1185
1185
|
try {
|
|
1186
|
-
const { handleMediaUsageRepair } = await import("../../../media-usage-
|
|
1186
|
+
const { handleMediaUsageRepair } = await import("../../../media-usage-DPQ3K4xB.mjs").then((n) => n.i);
|
|
1187
1187
|
return unwrap(await handleMediaUsageRepair(ec.db, input));
|
|
1188
1188
|
} catch (error) {
|
|
1189
1189
|
return respondHandlerError(error, "MEDIA_USAGE_REPAIR_ERROR");
|
|
@@ -1204,7 +1204,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1204
1204
|
requireScope(extra, "content:read");
|
|
1205
1205
|
const ec = getEmDash(extra);
|
|
1206
1206
|
try {
|
|
1207
|
-
const { searchWithDb } = await import("../../../search-
|
|
1207
|
+
const { searchWithDb } = await import("../../../search-D-Yhpmvs.mjs").then((n) => n.t);
|
|
1208
1208
|
return jsonResult(await searchWithDb(ec.db, args.query, {
|
|
1209
1209
|
collections: args.collections,
|
|
1210
1210
|
locale: args.locale,
|
|
@@ -1224,7 +1224,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1224
1224
|
requireScope(extra, "content:read");
|
|
1225
1225
|
const ec = getEmDash(extra);
|
|
1226
1226
|
try {
|
|
1227
|
-
const { handleTaxonomyList } = await import("../../../taxonomies-
|
|
1227
|
+
const { handleTaxonomyList } = await import("../../../taxonomies-BN6M9Nrv.mjs").then((n) => n.l);
|
|
1228
1228
|
return unwrap(await handleTaxonomyList(ec.db, { locale: args.locale }));
|
|
1229
1229
|
} catch (error) {
|
|
1230
1230
|
return respondHandlerError(error, "TAXONOMY_LIST_ERROR");
|
|
@@ -1244,12 +1244,12 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1244
1244
|
requireScope(extra, "content:read");
|
|
1245
1245
|
const ec = getEmDash(extra);
|
|
1246
1246
|
try {
|
|
1247
|
-
const { handleTaxonomyList } = await import("../../../taxonomies-
|
|
1247
|
+
const { handleTaxonomyList } = await import("../../../taxonomies-BN6M9Nrv.mjs").then((n) => n.l);
|
|
1248
1248
|
const listResult = await handleTaxonomyList(ec.db, { locale: args.locale });
|
|
1249
1249
|
if (!listResult.success) return unwrap(listResult);
|
|
1250
1250
|
if (!listResult.data.taxonomies.find((t) => t.name === args.taxonomy)) return respondError("NOT_FOUND", `Taxonomy '${args.taxonomy}' not found`);
|
|
1251
|
-
const { TaxonomyRepository } = await import("../../../taxonomy-
|
|
1252
|
-
const { decodeCursor, encodeCursor, InvalidCursorError } = await import("../../../types-
|
|
1251
|
+
const { TaxonomyRepository } = await import("../../../taxonomy-0mCI25HN.mjs").then((n) => n.n);
|
|
1252
|
+
const { decodeCursor, encodeCursor, InvalidCursorError } = await import("../../../types-CrRUFdej.mjs").then((n) => n.o);
|
|
1253
1253
|
const repo = new TaxonomyRepository(ec.db);
|
|
1254
1254
|
const limit = Math.min(args.limit ?? 50, 100);
|
|
1255
1255
|
const terms = await repo.findByName(args.taxonomy, { locale: args.locale });
|
|
@@ -1303,7 +1303,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1303
1303
|
requireRole(extra, Role.EDITOR);
|
|
1304
1304
|
const ec = getEmDash(extra);
|
|
1305
1305
|
try {
|
|
1306
|
-
const { handleTermCreate } = await import("../../../taxonomies-
|
|
1306
|
+
const { handleTermCreate } = await import("../../../taxonomies-BN6M9Nrv.mjs").then((n) => n.l);
|
|
1307
1307
|
return unwrap(await handleTermCreate(ec.db, args.taxonomy, {
|
|
1308
1308
|
slug: args.slug,
|
|
1309
1309
|
label: args.label,
|
|
@@ -1332,7 +1332,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1332
1332
|
requireRole(extra, Role.EDITOR);
|
|
1333
1333
|
const ec = getEmDash(extra);
|
|
1334
1334
|
try {
|
|
1335
|
-
const { handleTermUpdate } = await import("../../../taxonomies-
|
|
1335
|
+
const { handleTermUpdate } = await import("../../../taxonomies-BN6M9Nrv.mjs").then((n) => n.l);
|
|
1336
1336
|
return unwrap(await handleTermUpdate(ec.db, args.taxonomy, args.termSlug, {
|
|
1337
1337
|
slug: args.slug,
|
|
1338
1338
|
label: args.label,
|
|
@@ -1356,7 +1356,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1356
1356
|
requireRole(extra, Role.EDITOR);
|
|
1357
1357
|
const ec = getEmDash(extra);
|
|
1358
1358
|
try {
|
|
1359
|
-
const { handleTermDelete } = await import("../../../taxonomies-
|
|
1359
|
+
const { handleTermDelete } = await import("../../../taxonomies-BN6M9Nrv.mjs").then((n) => n.l);
|
|
1360
1360
|
return unwrap(await handleTermDelete(ec.db, args.taxonomy, args.termSlug));
|
|
1361
1361
|
} catch (error) {
|
|
1362
1362
|
return respondHandlerError(error, "TAXONOMY_TERM_DELETE_ERROR");
|
|
@@ -1371,7 +1371,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1371
1371
|
requireScope(extra, "content:read");
|
|
1372
1372
|
const ec = getEmDash(extra);
|
|
1373
1373
|
try {
|
|
1374
|
-
const { handleTermTranslations } = await import("../../../taxonomies-
|
|
1374
|
+
const { handleTermTranslations } = await import("../../../taxonomies-BN6M9Nrv.mjs").then((n) => n.l);
|
|
1375
1375
|
return unwrap(await handleTermTranslations(ec.db, args.id));
|
|
1376
1376
|
} catch (error) {
|
|
1377
1377
|
return respondHandlerError(error, "TERM_TRANSLATIONS_ERROR");
|
|
@@ -1386,7 +1386,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1386
1386
|
requireScope(extra, "content:read");
|
|
1387
1387
|
const ec = getEmDash(extra);
|
|
1388
1388
|
try {
|
|
1389
|
-
const { handleMenuList } = await import("../../../menus-
|
|
1389
|
+
const { handleMenuList } = await import("../../../menus-BMGzWyWH.mjs").then((n) => n.d);
|
|
1390
1390
|
return unwrap(await handleMenuList(ec.db, { locale: args.locale }));
|
|
1391
1391
|
} catch (error) {
|
|
1392
1392
|
return respondHandlerError(error, "MENU_LIST_ERROR");
|
|
@@ -1404,7 +1404,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1404
1404
|
requireScope(extra, "content:read");
|
|
1405
1405
|
const ec = getEmDash(extra);
|
|
1406
1406
|
try {
|
|
1407
|
-
const { handleMenuGet } = await import("../../../menus-
|
|
1407
|
+
const { handleMenuGet } = await import("../../../menus-BMGzWyWH.mjs").then((n) => n.d);
|
|
1408
1408
|
return unwrap(await handleMenuGet(ec.db, args.name, { locale: args.locale }));
|
|
1409
1409
|
} catch (error) {
|
|
1410
1410
|
return respondHandlerError(error, "MENU_GET_ERROR");
|
|
@@ -1419,7 +1419,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1419
1419
|
requireScope(extra, "content:read");
|
|
1420
1420
|
const ec = getEmDash(extra);
|
|
1421
1421
|
try {
|
|
1422
|
-
const { handleMenuTranslations } = await import("../../../menus-
|
|
1422
|
+
const { handleMenuTranslations } = await import("../../../menus-BMGzWyWH.mjs").then((n) => n.d);
|
|
1423
1423
|
return unwrap(await handleMenuTranslations(ec.db, args.id));
|
|
1424
1424
|
} catch (error) {
|
|
1425
1425
|
return respondHandlerError(error, "MENU_TRANSLATIONS_ERROR");
|
|
@@ -1439,7 +1439,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1439
1439
|
requireRole(extra, Role.EDITOR);
|
|
1440
1440
|
const ec = getEmDash(extra);
|
|
1441
1441
|
try {
|
|
1442
|
-
const { handleMenuCreate } = await import("../../../menus-
|
|
1442
|
+
const { handleMenuCreate } = await import("../../../menus-BMGzWyWH.mjs").then((n) => n.d);
|
|
1443
1443
|
return unwrap(await handleMenuCreate(ec.db, {
|
|
1444
1444
|
name: args.name,
|
|
1445
1445
|
label: args.label,
|
|
@@ -1463,7 +1463,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1463
1463
|
requireRole(extra, Role.EDITOR);
|
|
1464
1464
|
const ec = getEmDash(extra);
|
|
1465
1465
|
try {
|
|
1466
|
-
const { handleMenuUpdate } = await import("../../../menus-
|
|
1466
|
+
const { handleMenuUpdate } = await import("../../../menus-BMGzWyWH.mjs").then((n) => n.d);
|
|
1467
1467
|
return unwrap(await handleMenuUpdate(ec.db, args.name, {
|
|
1468
1468
|
label: args.label,
|
|
1469
1469
|
locale: args.locale
|
|
@@ -1485,7 +1485,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1485
1485
|
requireRole(extra, Role.EDITOR);
|
|
1486
1486
|
const ec = getEmDash(extra);
|
|
1487
1487
|
try {
|
|
1488
|
-
const { handleMenuDelete } = await import("../../../menus-
|
|
1488
|
+
const { handleMenuDelete } = await import("../../../menus-BMGzWyWH.mjs").then((n) => n.d);
|
|
1489
1489
|
return unwrap(await handleMenuDelete(ec.db, args.name, { locale: args.locale }));
|
|
1490
1490
|
} catch (error) {
|
|
1491
1491
|
return respondHandlerError(error, "MENU_DELETE_ERROR");
|
|
@@ -1520,7 +1520,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1520
1520
|
requireRole(extra, Role.EDITOR);
|
|
1521
1521
|
const ec = getEmDash(extra);
|
|
1522
1522
|
try {
|
|
1523
|
-
const { handleMenuSetItems } = await import("../../../menus-
|
|
1523
|
+
const { handleMenuSetItems } = await import("../../../menus-BMGzWyWH.mjs").then((n) => n.d);
|
|
1524
1524
|
return unwrap(await handleMenuSetItems(ec.db, args.name, args.items, { locale: args.locale }));
|
|
1525
1525
|
} catch (error) {
|
|
1526
1526
|
return respondHandlerError(error, "MENU_SET_ITEMS_ERROR");
|
|
@@ -1567,7 +1567,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1567
1567
|
requireRole(extra, Role.EDITOR);
|
|
1568
1568
|
const ec = getEmDash(extra);
|
|
1569
1569
|
try {
|
|
1570
|
-
const { handleSettingsGet } = await import("../../../settings-
|
|
1570
|
+
const { handleSettingsGet } = await import("../../../settings-Dtc0DU31.mjs").then((n) => n.r);
|
|
1571
1571
|
return unwrap(await handleSettingsGet(ec.db, ec.storage));
|
|
1572
1572
|
} catch (error) {
|
|
1573
1573
|
return respondHandlerError(error, "SETTINGS_READ_ERROR");
|
|
@@ -1593,7 +1593,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1593
1593
|
requireRole(extra, Role.ADMIN);
|
|
1594
1594
|
const ec = getEmDash(extra);
|
|
1595
1595
|
try {
|
|
1596
|
-
const { handleSettingsUpdate } = await import("../../../settings-
|
|
1596
|
+
const { handleSettingsUpdate } = await import("../../../settings-Dtc0DU31.mjs").then((n) => n.r);
|
|
1597
1597
|
return unwrap(await handleSettingsUpdate(ec.db, ec.storage, args));
|
|
1598
1598
|
} catch (error) {
|
|
1599
1599
|
return respondHandlerError(error, "SETTINGS_UPDATE_ERROR");
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
2
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
3
3
|
import { t as enrichImageMetadata } from "../../../../../enrich-CFJJgxs_.mjs";
|
|
4
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
5
|
-
import { r as parseOptionalBody, t as isParseError } from "../../../../../parse-
|
|
6
|
-
import { i as mediaConfirmBody } from "../../../../../media-
|
|
7
|
-
import "../../../../../redirects-
|
|
8
|
-
import "../../../../../relations-
|
|
4
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DJ98TRbQ.mjs";
|
|
5
|
+
import { r as parseOptionalBody, t as isParseError } from "../../../../../parse-53zyxlpv.mjs";
|
|
6
|
+
import { i as mediaConfirmBody } from "../../../../../media-BJ6SRY3g.mjs";
|
|
7
|
+
import "../../../../../redirects-D457qwt0.mjs";
|
|
8
|
+
import "../../../../../relations-CZMpBqEd.mjs";
|
|
9
9
|
import "../../../../../status-COfycGIU.mjs";
|
|
10
10
|
import "../../../../../api/schemas/index.mjs";
|
|
11
|
-
import { n as requireOwnerPerm, r as requirePerm } from "../../../../../authorize-
|
|
11
|
+
import { n as requireOwnerPerm, r as requirePerm } from "../../../../../authorize-6WPZa1xZ.mjs";
|
|
12
12
|
import { MediaRepository } from "emdash";
|
|
13
13
|
|
|
14
14
|
//#region src/astro/routes/api/media/[id]/confirm.ts
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import "../../../../../media-
|
|
4
|
-
import "../../../../../content-refresh-
|
|
5
|
-
import { t as handleMediaUsageDetails } from "../../../../../media-usage-
|
|
6
|
-
import { a as unwrapResult, t as apiError } from "../../../../../error-
|
|
7
|
-
import { i as parseQuery, t as isParseError } from "../../../../../parse-
|
|
8
|
-
import { S as mediaUsageDetailsQuery } from "../../../../../media-
|
|
9
|
-
import "../../../../../redirects-
|
|
10
|
-
import "../../../../../relations-
|
|
2
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
3
|
+
import "../../../../../media-its1WLYv.mjs";
|
|
4
|
+
import "../../../../../content-refresh-CPMSauD3.mjs";
|
|
5
|
+
import { t as handleMediaUsageDetails } from "../../../../../media-usage-DPQ3K4xB.mjs";
|
|
6
|
+
import { a as unwrapResult, t as apiError } from "../../../../../error-DJ98TRbQ.mjs";
|
|
7
|
+
import { i as parseQuery, t as isParseError } from "../../../../../parse-53zyxlpv.mjs";
|
|
8
|
+
import { S as mediaUsageDetailsQuery } from "../../../../../media-BJ6SRY3g.mjs";
|
|
9
|
+
import "../../../../../redirects-D457qwt0.mjs";
|
|
10
|
+
import "../../../../../relations-CZMpBqEd.mjs";
|
|
11
11
|
import "../../../../../status-COfycGIU.mjs";
|
|
12
12
|
import "../../../../../api/schemas/index.mjs";
|
|
13
13
|
import "../../../../../api-tokens-Cvmixds7.mjs";
|
|
14
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
15
|
-
import { t as requireScope } from "../../../../../scopes-
|
|
14
|
+
import { r as requirePerm } from "../../../../../authorize-6WPZa1xZ.mjs";
|
|
15
|
+
import { t as requireScope } from "../../../../../scopes-DTIkIaGA.mjs";
|
|
16
16
|
|
|
17
17
|
//#region src/astro/routes/api/media/[id]/usage.ts
|
|
18
18
|
const prerender = false;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "../../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../../types-
|
|
3
|
-
import "../../../../media-
|
|
4
|
-
import "../../../../content-refresh-
|
|
5
|
-
import { r as handleMediaUsageSummaries } from "../../../../media-usage-
|
|
6
|
-
import { a as unwrapResult, n as apiSuccess, r as handleError, t as apiError } from "../../../../error-
|
|
7
|
-
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../parse-
|
|
8
|
-
import { _ as mediaUpdateBody, s as mediaGetQuery } from "../../../../media-
|
|
9
|
-
import "../../../../redirects-
|
|
10
|
-
import "../../../../relations-
|
|
2
|
+
import "../../../../types-CrRUFdej.mjs";
|
|
3
|
+
import "../../../../media-its1WLYv.mjs";
|
|
4
|
+
import "../../../../content-refresh-CPMSauD3.mjs";
|
|
5
|
+
import { r as handleMediaUsageSummaries } from "../../../../media-usage-DPQ3K4xB.mjs";
|
|
6
|
+
import { a as unwrapResult, n as apiSuccess, r as handleError, t as apiError } from "../../../../error-DJ98TRbQ.mjs";
|
|
7
|
+
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../parse-53zyxlpv.mjs";
|
|
8
|
+
import { _ as mediaUpdateBody, s as mediaGetQuery } from "../../../../media-BJ6SRY3g.mjs";
|
|
9
|
+
import "../../../../redirects-D457qwt0.mjs";
|
|
10
|
+
import "../../../../relations-CZMpBqEd.mjs";
|
|
11
11
|
import "../../../../status-COfycGIU.mjs";
|
|
12
12
|
import "../../../../api/schemas/index.mjs";
|
|
13
|
-
import { n as requireOwnerPerm, r as requirePerm, t as canReadMediaUsageCount } from "../../../../authorize-
|
|
13
|
+
import { n as requireOwnerPerm, r as requirePerm, t as canReadMediaUsageCount } from "../../../../authorize-6WPZa1xZ.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/astro/routes/api/media/[id].ts
|
|
16
16
|
const prerender = false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { r as handleError, t as apiError } from "../../../../../error-
|
|
2
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
3
|
+
import { r as handleError, t as apiError } from "../../../../../error-DJ98TRbQ.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/astro/routes/api/media/file/[...key].ts
|
|
6
6
|
const prerender = false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../../../../types-
|
|
3
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-
|
|
4
|
-
import { r as requirePerm } from "../../../../../../authorize-
|
|
2
|
+
import "../../../../../../types-CrRUFdej.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-DJ98TRbQ.mjs";
|
|
4
|
+
import { r as requirePerm } from "../../../../../../authorize-6WPZa1xZ.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/astro/routes/api/media/providers/[providerId]/[itemId].ts
|
|
7
7
|
const prerender = false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../../../../types-
|
|
3
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-
|
|
4
|
-
import { r as requirePerm } from "../../../../../../authorize-
|
|
2
|
+
import "../../../../../../types-CrRUFdej.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-DJ98TRbQ.mjs";
|
|
4
|
+
import { r as requirePerm } from "../../../../../../authorize-6WPZa1xZ.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/astro/routes/api/media/providers/[providerId]/index.ts
|
|
7
7
|
const prerender = false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { n as apiSuccess, t as apiError } from "../../../../../error-
|
|
4
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
2
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
3
|
+
import { n as apiSuccess, t as apiError } from "../../../../../error-DJ98TRbQ.mjs";
|
|
4
|
+
import { r as requirePerm } from "../../../../../authorize-6WPZa1xZ.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/astro/routes/api/media/providers/index.ts
|
|
7
7
|
const prerender = false;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../../types-
|
|
2
|
+
import "../../../../types-CrRUFdej.mjs";
|
|
3
3
|
import { n as normalizeMime, t as matchesMimeAllowlist } from "../../../../mime-DfIVjNkr.mjs";
|
|
4
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../error-
|
|
5
|
-
import { n as parseBody, t as isParseError } from "../../../../parse-
|
|
6
|
-
import { n as DEFAULT_MAX_UPLOAD_SIZE, v as mediaUploadUrlBody } from "../../../../media-
|
|
7
|
-
import "../../../../redirects-
|
|
8
|
-
import "../../../../relations-
|
|
4
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../error-DJ98TRbQ.mjs";
|
|
5
|
+
import { n as parseBody, t as isParseError } from "../../../../parse-53zyxlpv.mjs";
|
|
6
|
+
import { n as DEFAULT_MAX_UPLOAD_SIZE, v as mediaUploadUrlBody } from "../../../../media-BJ6SRY3g.mjs";
|
|
7
|
+
import "../../../../redirects-D457qwt0.mjs";
|
|
8
|
+
import "../../../../relations-CZMpBqEd.mjs";
|
|
9
9
|
import "../../../../status-COfycGIU.mjs";
|
|
10
10
|
import "../../../../api/schemas/index.mjs";
|
|
11
|
-
import { r as requirePerm } from "../../../../authorize-
|
|
11
|
+
import { r as requirePerm } from "../../../../authorize-6WPZa1xZ.mjs";
|
|
12
12
|
import { n as resolveFieldAllowlist, t as GLOBAL_UPLOAD_ALLOWLIST } from "../../../../media-allowlist-jUppPWFy.mjs";
|
|
13
13
|
import { ulid } from "ulidx";
|
|
14
14
|
import * as path from "node:path";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import "../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../types-
|
|
3
|
-
import { t as MediaRepository } from "../../../media-
|
|
2
|
+
import "../../../types-CrRUFdej.mjs";
|
|
3
|
+
import { t as MediaRepository } from "../../../media-its1WLYv.mjs";
|
|
4
4
|
import { n as normalizeMime, t as matchesMimeAllowlist } from "../../../mime-DfIVjNkr.mjs";
|
|
5
5
|
import { t as enrichImageMetadata } from "../../../enrich-CFJJgxs_.mjs";
|
|
6
6
|
import { t as computeContentHash } from "../../../hash-DFFrkivP.mjs";
|
|
7
|
-
import "../../../content-refresh-
|
|
8
|
-
import { r as handleMediaUsageSummaries } from "../../../media-usage-
|
|
9
|
-
import { a as unwrapResult, n as apiSuccess, r as handleError, t as apiError } from "../../../error-
|
|
10
|
-
import { i as parseQuery, t as isParseError } from "../../../parse-
|
|
11
|
-
import { l as mediaListQuery, n as DEFAULT_MAX_UPLOAD_SIZE, r as formatFileSize } from "../../../media-
|
|
12
|
-
import "../../../redirects-
|
|
13
|
-
import "../../../relations-
|
|
7
|
+
import "../../../content-refresh-CPMSauD3.mjs";
|
|
8
|
+
import { r as handleMediaUsageSummaries } from "../../../media-usage-DPQ3K4xB.mjs";
|
|
9
|
+
import { a as unwrapResult, n as apiSuccess, r as handleError, t as apiError } from "../../../error-DJ98TRbQ.mjs";
|
|
10
|
+
import { i as parseQuery, t as isParseError } from "../../../parse-53zyxlpv.mjs";
|
|
11
|
+
import { l as mediaListQuery, n as DEFAULT_MAX_UPLOAD_SIZE, r as formatFileSize } from "../../../media-BJ6SRY3g.mjs";
|
|
12
|
+
import "../../../redirects-D457qwt0.mjs";
|
|
13
|
+
import "../../../relations-CZMpBqEd.mjs";
|
|
14
14
|
import "../../../status-COfycGIU.mjs";
|
|
15
15
|
import "../../../api/schemas/index.mjs";
|
|
16
|
-
import { r as requirePerm, t as canReadMediaUsageCount } from "../../../authorize-
|
|
16
|
+
import { r as requirePerm, t as canReadMediaUsageCount } from "../../../authorize-6WPZa1xZ.mjs";
|
|
17
17
|
import { n as resolveFieldAllowlist, t as GLOBAL_UPLOAD_ALLOWLIST } from "../../../media-allowlist-jUppPWFy.mjs";
|
|
18
18
|
import { ulid } from "ulidx";
|
|
19
19
|
import * as path from "node:path";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "../../../../../../after-B1IIdH3Y.mjs";
|
|
2
2
|
import "../../../../../../object-cache-Bok5j2ae.mjs";
|
|
3
3
|
import "../../../../../../base64-B-PsqheR.mjs";
|
|
4
|
-
import "../../../../../../types-
|
|
5
|
-
import { a as handleMenuItemDelete, s as handleMenuItemUpdate } from "../../../../../../menus-
|
|
6
|
-
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../../error-
|
|
7
|
-
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../../parse-
|
|
8
|
-
import { z as localeFilterQuery } from "../../../../../../media-
|
|
9
|
-
import { lt as updateMenuItemBody } from "../../../../../../redirects-
|
|
10
|
-
import "../../../../../../relations-
|
|
4
|
+
import "../../../../../../types-CrRUFdej.mjs";
|
|
5
|
+
import { a as handleMenuItemDelete, s as handleMenuItemUpdate } from "../../../../../../menus-BMGzWyWH.mjs";
|
|
6
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../../error-DJ98TRbQ.mjs";
|
|
7
|
+
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../../parse-53zyxlpv.mjs";
|
|
8
|
+
import { z as localeFilterQuery } from "../../../../../../media-BJ6SRY3g.mjs";
|
|
9
|
+
import { lt as updateMenuItemBody } from "../../../../../../redirects-D457qwt0.mjs";
|
|
10
|
+
import "../../../../../../relations-CZMpBqEd.mjs";
|
|
11
11
|
import "../../../../../../status-COfycGIU.mjs";
|
|
12
12
|
import "../../../../../../api/schemas/index.mjs";
|
|
13
|
-
import { r as requirePerm } from "../../../../../../authorize-
|
|
13
|
+
import { r as requirePerm } from "../../../../../../authorize-6WPZa1xZ.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/astro/routes/api/menus/[name]/items/[id].ts
|
|
16
16
|
const prerender = false;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "../../../../../after-B1IIdH3Y.mjs";
|
|
2
2
|
import "../../../../../object-cache-Bok5j2ae.mjs";
|
|
3
3
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
4
|
-
import "../../../../../types-
|
|
5
|
-
import { i as handleMenuItemCreate } from "../../../../../menus-
|
|
6
|
-
import { a as unwrapResult, r as handleError } from "../../../../../error-
|
|
7
|
-
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../parse-
|
|
8
|
-
import { z as localeFilterQuery } from "../../../../../media-
|
|
9
|
-
import { et as createMenuItemBody } from "../../../../../redirects-
|
|
10
|
-
import "../../../../../relations-
|
|
4
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
5
|
+
import { i as handleMenuItemCreate } from "../../../../../menus-BMGzWyWH.mjs";
|
|
6
|
+
import { a as unwrapResult, r as handleError } from "../../../../../error-DJ98TRbQ.mjs";
|
|
7
|
+
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../parse-53zyxlpv.mjs";
|
|
8
|
+
import { z as localeFilterQuery } from "../../../../../media-BJ6SRY3g.mjs";
|
|
9
|
+
import { et as createMenuItemBody } from "../../../../../redirects-D457qwt0.mjs";
|
|
10
|
+
import "../../../../../relations-CZMpBqEd.mjs";
|
|
11
11
|
import "../../../../../status-COfycGIU.mjs";
|
|
12
12
|
import "../../../../../api/schemas/index.mjs";
|
|
13
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
13
|
+
import { r as requirePerm } from "../../../../../authorize-6WPZa1xZ.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/astro/routes/api/menus/[name]/items.ts
|
|
16
16
|
const prerender = false;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "../../../../../after-B1IIdH3Y.mjs";
|
|
2
2
|
import "../../../../../object-cache-Bok5j2ae.mjs";
|
|
3
3
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
4
|
-
import "../../../../../types-
|
|
5
|
-
import { o as handleMenuItemReorder } from "../../../../../menus-
|
|
6
|
-
import { a as unwrapResult, r as handleError } from "../../../../../error-
|
|
7
|
-
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../parse-
|
|
8
|
-
import { z as localeFilterQuery } from "../../../../../media-
|
|
9
|
-
import { st as reorderMenuItemsBody } from "../../../../../redirects-
|
|
10
|
-
import "../../../../../relations-
|
|
4
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
5
|
+
import { o as handleMenuItemReorder } from "../../../../../menus-BMGzWyWH.mjs";
|
|
6
|
+
import { a as unwrapResult, r as handleError } from "../../../../../error-DJ98TRbQ.mjs";
|
|
7
|
+
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../parse-53zyxlpv.mjs";
|
|
8
|
+
import { z as localeFilterQuery } from "../../../../../media-BJ6SRY3g.mjs";
|
|
9
|
+
import { st as reorderMenuItemsBody } from "../../../../../redirects-D457qwt0.mjs";
|
|
10
|
+
import "../../../../../relations-CZMpBqEd.mjs";
|
|
11
11
|
import "../../../../../status-COfycGIU.mjs";
|
|
12
12
|
import "../../../../../api/schemas/index.mjs";
|
|
13
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
13
|
+
import { r as requirePerm } from "../../../../../authorize-6WPZa1xZ.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/astro/routes/api/menus/[name]/reorder.ts
|
|
16
16
|
const prerender = false;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "../../../../../after-B1IIdH3Y.mjs";
|
|
2
2
|
import "../../../../../object-cache-Bok5j2ae.mjs";
|
|
3
3
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
4
|
-
import "../../../../../types-
|
|
5
|
-
import { l as handleMenuTranslations, r as handleMenuGet, t as handleMenuCreate } from "../../../../../menus-
|
|
6
|
-
import { a as unwrapResult, i as requireDb, r as handleError } from "../../../../../error-
|
|
7
|
-
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../parse-
|
|
8
|
-
import { z as localeFilterQuery } from "../../../../../media-
|
|
9
|
-
import "../../../../../redirects-
|
|
10
|
-
import "../../../../../relations-
|
|
4
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
5
|
+
import { l as handleMenuTranslations, r as handleMenuGet, t as handleMenuCreate } from "../../../../../menus-BMGzWyWH.mjs";
|
|
6
|
+
import { a as unwrapResult, i as requireDb, r as handleError } from "../../../../../error-DJ98TRbQ.mjs";
|
|
7
|
+
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../parse-53zyxlpv.mjs";
|
|
8
|
+
import { z as localeFilterQuery } from "../../../../../media-BJ6SRY3g.mjs";
|
|
9
|
+
import "../../../../../redirects-D457qwt0.mjs";
|
|
10
|
+
import "../../../../../relations-CZMpBqEd.mjs";
|
|
11
11
|
import "../../../../../status-COfycGIU.mjs";
|
|
12
12
|
import "../../../../../api/schemas/index.mjs";
|
|
13
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
13
|
+
import { r as requirePerm } from "../../../../../authorize-6WPZa1xZ.mjs";
|
|
14
14
|
import { z } from "zod";
|
|
15
15
|
|
|
16
16
|
//#region src/astro/routes/api/menus/[name]/translations.ts
|