dineway 0.2.20 → 0.2.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{activity-Dq9zDvAK.mjs → activity-Bm5x0dik.mjs} +2 -2
- package/dist/{activity-events-iGYnf7TK.mjs → activity-events-DpvhcjTP.mjs} +1 -1
- package/dist/{allowed-origins-VLgv2PL1.mjs → allowed-origins-M5Rcl6XL.mjs} +1 -1
- package/dist/api/route-utils.d.mts +10 -9
- 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-DIdotXfH.mjs → api-Bbtpvq2-.mjs} +15 -15
- package/dist/{api-tokens-C4K9eocv.mjs → api-tokens-BFgXg0l2.mjs} +1 -1
- package/dist/{apply-CPcb8oiS.mjs → apply-Hodkn7PL.mjs} +20 -18
- package/dist/astro/index.d.mts +11 -10
- package/dist/astro/index.mjs +3 -3
- package/dist/astro/middleware/auth.d.mts +9 -8
- package/dist/astro/middleware/auth.mjs +6 -6
- package/dist/astro/middleware/redirect.mjs +5 -5
- package/dist/astro/middleware/request-context.mjs +2 -2
- package/dist/astro/middleware/seed.d.mts +1 -1
- package/dist/astro/middleware/seed.mjs +1 -1
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.mjs +111 -98
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +5 -5
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +5 -5
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +4 -4
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +6 -6
- package/dist/astro/routes/api/admin/briefing.mjs +16 -16
- 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 +13 -13
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +13 -13
- package/dist/astro/routes/api/admin/bylines/index.mjs +13 -13
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +11 -11
- package/dist/astro/routes/api/admin/comments/_id_.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/bulk.mjs +9 -9
- package/dist/astro/routes/api/admin/comments/counts.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/index.mjs +9 -9
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +23 -23
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +23 -23
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +28 -28
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +28 -28
- package/dist/astro/routes/api/admin/context/diff.mjs +27 -27
- package/dist/astro/routes/api/admin/context/index.mjs +28 -28
- package/dist/astro/routes/api/admin/context/stale.mjs +27 -27
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +23 -23
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +27 -27
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +27 -27
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +24 -24
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +2 -2
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +6 -6
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +6 -6
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +53 -52
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +53 -52
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +45 -44
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +52 -51
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +52 -51
- package/dist/astro/routes/api/admin/plugins/index.mjs +45 -44
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +45 -44
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +52 -51
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +45 -44
- package/dist/astro/routes/api/admin/plugins/updates.mjs +45 -44
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +5 -5
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +28 -28
- package/dist/astro/routes/api/admin/review-requests/index.mjs +28 -28
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +45 -44
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +2 -2
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +45 -44
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +1 -1
- package/dist/astro/routes/api/admin/users/_id_/enable.mjs +1 -1
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +5 -5
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
- package/dist/astro/routes/api/admin/users/index.mjs +5 -5
- package/dist/astro/routes/api/auth/dev-bypass.mjs +4 -4
- package/dist/astro/routes/api/auth/invite/accept.mjs +1 -1
- package/dist/astro/routes/api/auth/invite/complete.mjs +9 -9
- package/dist/astro/routes/api/auth/invite/index.mjs +6 -6
- package/dist/astro/routes/api/auth/invite/register-options.mjs +8 -8
- package/dist/astro/routes/api/auth/logout.mjs +2 -2
- package/dist/astro/routes/api/auth/magic-link/send.mjs +8 -8
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +7 -7
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +2 -2
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +5 -5
- package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +10 -10
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +8 -8
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +9 -9
- package/dist/astro/routes/api/auth/passkey/verify.mjs +9 -9
- package/dist/astro/routes/api/auth/setup-token/index.mjs +5 -5
- package/dist/astro/routes/api/auth/setup-token/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/complete.mjs +9 -9
- package/dist/astro/routes/api/auth/signup/request.mjs +8 -8
- package/dist/astro/routes/api/auth/signup/verify.mjs +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +12 -12
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +11 -11
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +9 -9
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +15 -15
- package/dist/astro/routes/api/content/_collection_/_id_/release-readiness.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +15 -15
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +12 -12
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +10 -10
- package/dist/astro/routes/api/content/_collection_/authors.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/index.mjs +10 -10
- package/dist/astro/routes/api/content/_collection_/trash.mjs +6 -6
- package/dist/astro/routes/api/dashboard.mjs +8 -8
- package/dist/astro/routes/api/dev/emails.mjs +2 -2
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.d.mts +3 -3
- package/dist/astro/routes/api/import/probe.mjs +17 -17
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +8 -8
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +9 -8
- package/dist/astro/routes/api/import/wordpress/execute.mjs +32 -32
- package/dist/astro/routes/api/import/wordpress/media.d.mts +9 -8
- package/dist/astro/routes/api/import/wordpress/media.mjs +9 -9
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +31 -31
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +10 -9
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +28 -28
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +20 -20
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +9 -8
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +36 -36
- package/dist/astro/routes/api/integrations/_provider_.mjs +6 -6
- package/dist/astro/routes/api/integrations/index.mjs +5 -5
- package/dist/astro/routes/api/manifest.mjs +4 -4
- package/dist/astro/routes/api/mcp.mjs +64 -64
- package/dist/astro/routes/api/media/_id_/confirm.mjs +8 -8
- package/dist/astro/routes/api/media/_id_.mjs +6 -6
- package/dist/astro/routes/api/media/file/_...key_.mjs +1 -1
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +2 -2
- package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +2 -2
- package/dist/astro/routes/api/media/providers/index.mjs +2 -2
- package/dist/astro/routes/api/media/upload-url.mjs +9 -9
- package/dist/astro/routes/api/media.mjs +9 -9
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +28 -28
- package/dist/astro/routes/api/menus/_name_/items.mjs +28 -28
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +28 -28
- package/dist/astro/routes/api/menus/_name_/translations.mjs +28 -28
- package/dist/astro/routes/api/menus/_name_.mjs +28 -28
- package/dist/astro/routes/api/menus/index.mjs +28 -28
- package/dist/astro/routes/api/oauth/authorize.mjs +7 -7
- package/dist/astro/routes/api/oauth/device/authorize.mjs +6 -6
- package/dist/astro/routes/api/oauth/device/code.mjs +9 -9
- package/dist/astro/routes/api/oauth/device/token.mjs +8 -8
- package/dist/astro/routes/api/oauth/register.mjs +4 -4
- package/dist/astro/routes/api/oauth/token/refresh.mjs +6 -6
- package/dist/astro/routes/api/oauth/token/revoke.mjs +6 -6
- package/dist/astro/routes/api/oauth/token.mjs +6 -6
- package/dist/astro/routes/api/openapi.json.mjs +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 +29 -29
- package/dist/astro/routes/api/redirects/index.mjs +29 -29
- package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +2 -2
- package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +2 -2
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +47 -46
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +47 -46
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +47 -46
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +47 -46
- package/dist/astro/routes/api/schema/collections/index.mjs +47 -46
- package/dist/astro/routes/api/schema/index.mjs +7 -7
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +45 -44
- package/dist/astro/routes/api/schema/orphans/index.mjs +45 -44
- 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 +28 -28
- package/dist/astro/routes/api/sections/index.mjs +28 -28
- package/dist/astro/routes/api/settings/email.mjs +3 -3
- package/dist/astro/routes/api/settings.mjs +28 -28
- package/dist/astro/routes/api/setup/admin-verify.mjs +11 -11
- package/dist/astro/routes/api/setup/admin.mjs +9 -9
- package/dist/astro/routes/api/setup/dev-bypass.mjs +23 -23
- package/dist/astro/routes/api/setup/dev-reset.mjs +1 -1
- package/dist/astro/routes/api/setup/index.mjs +24 -24
- package/dist/astro/routes/api/setup/status.mjs +3 -3
- package/dist/astro/routes/api/snapshot.mjs +6 -6
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +31 -31
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +31 -31
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +31 -31
- package/dist/astro/routes/api/taxonomies/index.mjs +31 -31
- package/dist/astro/routes/api/themes/preview.mjs +4 -4
- package/dist/astro/routes/api/typegen.mjs +4 -4
- package/dist/astro/routes/api/well-known/auth.mjs +2 -2
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +3 -3
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +3 -3
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +27 -27
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +28 -28
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +28 -28
- package/dist/astro/routes/api/widget-areas/_name_.mjs +25 -25
- package/dist/astro/routes/api/widget-areas/index.mjs +28 -28
- 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 +34 -41
- package/dist/astro/routes/sitemap.xml.mjs +29 -17
- package/dist/astro/session-driver.d.mts +1 -1
- package/dist/astro/session-driver.mjs +2 -2
- package/dist/astro/types.d.mts +14 -11
- package/dist/{audit-DeBteyL4.mjs → audit-nenmMR-2.mjs} +1 -1
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/{auth-control-guard-B_Dx-epW.mjs → auth-control-guard-B7PdECn6.mjs} +1 -1
- package/dist/{authorize-D6MkRtPw.mjs → authorize-DTvHe9bm.mjs} +1 -1
- package/dist/{briefing-BTA39bRc.mjs → briefing-CpU_z8qH.mjs} +5 -5
- package/dist/{briefing-BfUOJfCy.mjs → briefing-PxagUoJJ.mjs} +1 -1
- package/dist/{bundle-C-eQG8un.mjs → bundle-dsO2-7eh.mjs} +2 -2
- package/dist/{byline-CB0OLcK1.mjs → byline-DEBDPF8R.mjs} +4 -4
- package/dist/{byline-fields-BRUB-Vla.mjs → byline-fields-BQRx17y_.mjs} +1 -1
- package/dist/{byline-fields-urVGl6bz.d.mts → byline-fields-BXg94LXd.d.mts} +50 -44
- package/dist/{bylines-BDp4-cpl.mjs → bylines-C7hm1-iI.mjs} +3 -3
- package/dist/{bylines-CiSL5IrP.mjs → bylines-YK6eGHvV.mjs} +5 -5
- package/dist/{cache-CtXIOJKw.mjs → cache-BuVpjvBc.mjs} +1 -1
- package/dist/{chunks-BdkWx1oD.mjs → chunks-B-1_U3oF.mjs} +1 -1
- package/dist/cli/index.mjs +28 -27
- package/dist/cli/plugin-kit.d.mts +9 -8
- package/dist/cli/plugin-kit.mjs +2 -2
- package/dist/client/external-auth-headers.d.mts +1 -1
- package/dist/client/index.d.mts +11 -10
- package/dist/client/index.mjs +2 -2
- package/dist/{client-factory-Dll61uB1.mjs → client-factory-Nyp2sznG.mjs} +1 -1
- package/dist/{comment-3JihGSh6.mjs → comment-BX6H4NF-.mjs} +1 -1
- package/dist/{comment-reaction-BNXm1YHa.mjs → comment-reaction-QSENU_3S.mjs} +1 -1
- package/dist/{comments-DJZXQi0j.mjs → comments-BHSYG53k.mjs} +1 -1
- package/dist/{content-Bturdi4b.mjs → content-Bg_hMt4Q.mjs} +2 -2
- package/dist/{content-refresh-C4YoqoNs.mjs → content-refresh-CHBBZGwf.mjs} +2 -2
- package/dist/{context-CB4PwkM_.mjs → context-BGt7zfQ-.mjs} +8 -8
- package/dist/{context-DH-YFjZr.mjs → context-BHXgPEPC.mjs} +2 -2
- package/dist/{context-route-helpers-CLoNF0pp.mjs → context-route-helpers-SwM-_GT4.mjs} +2 -2
- package/dist/{dashboard-DP4dxA1S.mjs → dashboard-DPUW4hBR.mjs} +4 -4
- 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/{device-flow-BWV1ZxXW.mjs → device-flow-XqdFNsv_.mjs} +4 -4
- package/dist/discovery-DvuRcbP-.mjs +178 -0
- package/dist/{field-defs-cache-BGhsaYGT.mjs → field-defs-cache-sSdDeJXP.mjs} +1 -1
- package/dist/{fts-manager-6KClQEs0.mjs → fts-manager-C7pxxk6B.mjs} +1 -1
- package/dist/{hitl-requests-DDYRgSeH.mjs → hitl-requests-D7pfIM6q.mjs} +2 -2
- package/dist/{hitl-route-helpers-BI3qTO75.mjs → hitl-route-helpers-Br9uvIQs.mjs} +5 -5
- package/dist/{import-CoaAe-mc.mjs → import-CrsquhXj.mjs} +7 -7
- package/dist/{index-DybFmYtZ.d.mts → index-NdJMMO48.d.mts} +3 -3
- package/dist/index.d.mts +16 -15
- package/dist/index.mjs +75 -74
- package/dist/{integration-credentials-D3ZneN0L.mjs → integration-credentials-B7Pj6YCv.mjs} +2 -2
- package/dist/{jsonld-DfR5LVWQ.d.mts → jsonld-TsDIJx5A.d.mts} +19 -7
- package/dist/{load-CfFRVQkS.mjs → load-Bul8Tk6e.mjs} +1 -1
- package/dist/{loader-CqKPLiKx.mjs → loader-BCr2VSzt.mjs} +2 -2
- package/dist/{manifest-schema-DKa3ZaJL.mjs → manifest-schema-U5qGq-iB.mjs} +1 -1
- package/dist/{mcp-reviewed-executor-ANVt5edE.mjs → mcp-reviewed-executor-C1lIimd0.mjs} +4 -4
- package/dist/media/index.d.mts +1 -1
- package/dist/media/local-runtime.d.mts +11 -10
- package/dist/media/local-runtime.mjs +2 -2
- package/dist/{media-BXbOL8xv.mjs → media-D8pQJSug.mjs} +1 -1
- package/dist/{menus-DCjNW2e4.mjs → menus-3B-PGTX3.mjs} +1 -1
- package/dist/{menus-Cu8lQOFw.mjs → menus-DSWeEWXl.mjs} +5 -5
- package/dist/{oauth-authorization-fiXxn7FY.mjs → oauth-authorization-CMU5kREy.mjs} +4 -4
- package/dist/{oauth-clients-D9Gg0WjF.mjs → oauth-clients-CLdR0WyA.mjs} +2 -2
- package/dist/object-cache/memory.d.mts +1 -1
- package/dist/page/index.d.mts +11 -10
- package/dist/page/index.mjs +2 -2
- package/dist/{parse-B-Y84oJl.mjs → parse-DEG06jjr.mjs} +1 -1
- package/dist/plugin-utils.d.mts +9 -8
- package/dist/plugins/adapt-sandbox-entry.d.mts +9 -8
- package/dist/plugins/adapt-sandbox-entry.mjs +1 -1
- package/dist/{plugins-BVSrX4gZ.mjs → plugins-D8YxTh9q.mjs} +26 -23
- package/dist/{preview-BMIReQGc.mjs → preview-Bn59ztjn.mjs} +2 -2
- package/dist/{provider-loader-Db-pJFu3.d.mts → provider-loader-jdkZM6xZ.d.mts} +1 -1
- package/dist/public-url-DFX2c_20.d.mts +99 -0
- package/dist/{public-url-ClXQnxy1.d.mts → public-url-NkNXl8OU.d.mts} +1 -1
- package/dist/{publication-authorization-DrqQCW3R.mjs → publication-authorization-BmazS4K0.mjs} +6 -6
- package/dist/{query-B0rPTc7J.mjs → query-CrUftarl.mjs} +12 -12
- package/dist/{query-D5Wvb06i.mjs → query-DPC5GT6e.mjs} +2 -2
- package/dist/{rate-limit-oUGexQO1.mjs → rate-limit-DvGL45wH.mjs} +2 -2
- package/dist/{redirect-3Zzd0xIN.mjs → redirect-8B-gorhg.mjs} +1 -1
- package/dist/{redirects-lCeytkeq.mjs → redirects-D2SVS1zo.mjs} +3 -3
- package/dist/{redirects-CWGZMRsj.mjs → redirects-DdPaQiWQ.mjs} +6 -2
- package/dist/{registry-c51Wf_AZ.mjs → registry-D3n4-yUl.mjs} +13 -6
- package/dist/{request-meta-DHFIzWcf.mjs → request-meta-DZTiCIQR.mjs} +1 -1
- package/dist/resolve-CThKf9_X.mjs +27 -0
- package/dist/{review-requests-eQbhj62T.mjs → review-requests-BQbmYLnz.mjs} +1 -1
- package/dist/{review-requests-B9NfBTCJ.mjs → review-requests-D5CJ4JCy.mjs} +1 -1
- package/dist/{review-route-helpers-4KBg7Hi3.mjs → review-route-helpers-DYiujAPM.mjs} +2 -2
- package/dist/{runner-Bcy5w0vj.d.mts → runner-BITx7yBF.d.mts} +1 -1
- package/dist/{runner-BE1taNgj.mjs → runner-BWZ87FK-.mjs} +482 -457
- package/dist/runtime.d.mts +10 -9
- package/dist/runtime.mjs +3 -3
- package/dist/schema-kk9-6bUd.mjs +8 -0
- package/dist/{search-NcUUIJOw.mjs → search-B_ir6H6m.mjs} +3 -3
- package/dist/{sections-D_imfMlM.mjs → sections-pRy07N5I.mjs} +2 -2
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +17 -17
- package/dist/seo/index.d.mts +4 -2
- package/dist/seo/index.mjs +10 -11
- package/dist/{seo-BasNtS3J.mjs → seo-C4nlxiaY.mjs} +1 -1
- package/dist/seo-DdNntVj-.mjs +52 -0
- package/dist/{seo-contributions-Ci8_12_r.mjs → seo-contributions-BGBehNCN.mjs} +260 -76
- package/dist/{service-BTYluCDf.mjs → service-D6fJX7D7.mjs} +2 -2
- package/dist/{settings-BUZ7b4Bn.mjs → settings-C4OMR0zf.mjs} +2 -2
- package/dist/{settings-Cs-ST1tU.mjs → settings-D-a7uy2z.mjs} +2 -2
- package/dist/{site-activity-QPC-7Vnq.mjs → site-activity-CnrmnFRy.mjs} +1 -1
- package/dist/{site-context-BDEjOzOk.mjs → site-context-Bdsobbh9.mjs} +13 -13
- package/dist/storage/local.d.mts +1 -1
- package/dist/storage/local.mjs +1 -1
- package/dist/storage/s3.d.mts +1 -1
- package/dist/storage/s3.mjs +1 -1
- package/dist/{store-CCfMD6nw.mjs → store-DerEE3jG.mjs} +1 -1
- package/dist/{taxonomies-DoyE8B41.mjs → taxonomies-6bWkaa_G.mjs} +3 -3
- package/dist/{taxonomies-CpYwz_sN.mjs → taxonomies-FKTevd14.mjs} +5 -5
- package/dist/{taxonomy-C-Aqi1cF.mjs → taxonomy-BU0eCfij.mjs} +2 -2
- package/dist/{types-ywmuDETA.d.mts → types-B2kbOwSj.d.mts} +6 -0
- package/dist/{types-GtwhHAg8.d.mts → types-B6r_SMeR.d.mts} +1 -1
- package/dist/{types-BFeoAIHl.d.mts → types-C8cUW9dh.d.mts} +1 -0
- package/dist/{types-al8YMHdF.mjs → types-C9F2TLQV.mjs} +1 -1
- package/dist/{types-C4ZrBtdu.d.mts → types-Cty2_HVR.d.mts} +50 -52
- package/dist/ui/server-runtime.d.mts +13 -12
- package/dist/ui/server-runtime.mjs +19 -60
- package/dist/{user-Ldseid1x.mjs → user-BV02bsWz.mjs} +2 -2
- package/dist/{validate-YiX3rly5.d.mts → validate-Bc9gaua6.d.mts} +5 -3
- package/dist/{validate-hHdBXn4U.mjs → validate-Drps_jbV.mjs} +9 -1
- package/dist/version-Cg-aQHxG.mjs +6 -0
- package/dist/{widgets-cBtEykx0.mjs → widgets-BFqy7PYs.mjs} +2 -2
- package/dist/{zod-generator-BGSszwCw.mjs → zod-generator-BlY_vGgR.mjs} +1 -1
- package/package.json +4 -4
- package/src/components/DinewayHead.astro +6 -6
- package/dist/resolve-B6BpqwAR.mjs +0 -100
- package/dist/schema-dGCjdAx9.mjs +0 -8
- package/dist/seo-BLszyJxd.mjs +0 -105
- package/dist/version-CZX1tQmH.mjs +0 -6
- /package/dist/{actor-DA7yL9Yp.mjs → actor-D3A5PNkH.mjs} +0 -0
- /package/dist/{adapters-DnMDRQ4e.d.mts → adapters-DUVI3Mpc.d.mts} +0 -0
- /package/dist/{api-tokens-D4tcY8R6.mjs → api-tokens-CbMAy6xF.mjs} +0 -0
- /package/dist/{byline-fields-sE9SQsDR.mjs → byline-fields-DPi4Ri_5.mjs} +0 -0
- /package/dist/{challenge-store-BMkL2kmt.mjs → challenge-store-DtdQHXf5.mjs} +0 -0
- /package/dist/{components-D0w9MzQe.mjs → components-DGu-rih7.mjs} +0 -0
- /package/dist/{cron-D_c3WUPN.mjs → cron-BjKHo0QD.mjs} +0 -0
- /package/dist/{default-BxoI3SoK.mjs → default-CO47mlSA.mjs} +0 -0
- /package/dist/{email-console-BEMwuxhV.mjs → email-console-CFE1ay18.mjs} +0 -0
- /package/dist/{error-BW9f_ynq.mjs → error-Jz0EtEwI.mjs} +0 -0
- /package/dist/{escape-smSUOb7u.mjs → escape-HmHTC1Is.mjs} +0 -0
- /package/dist/{experimental-workflows-CgO73K4e.mjs → experimental-workflows-EYZRNkRR.mjs} +0 -0
- /package/dist/{media-allowlist-BQyIBPzd.mjs → media-allowlist-9u_gxMG2.mjs} +0 -0
- /package/dist/{media-url-B6d-yVI6.mjs → media-url-DVoOhf4X.mjs} +0 -0
- /package/dist/{mode-DPC7segX.mjs → mode-DqpBaEOy.mjs} +0 -0
- /package/dist/{oauth-state-store-DPVzeoyY.mjs → oauth-state-store-HdGg_nSm.mjs} +0 -0
- /package/dist/{oauth-user-lookup-3E5jlXrr.mjs → oauth-user-lookup-CP16vyFW.mjs} +0 -0
- /package/dist/{output-13u4dvu-.mjs → output-CXOC3BFr.mjs} +0 -0
- /package/dist/{parser-DX_c5iG3.mjs → parser-buoH2frr.mjs} +0 -0
- /package/dist/{passkey-config-DE_0EGEP.mjs → passkey-config-T47FwLtS.mjs} +0 -0
- /package/dist/{placeholder-C6ZjZcmJ.d.mts → placeholder-BsYSFPjY.d.mts} +0 -0
- /package/dist/{portable-text-BASHceim.mjs → portable-text-DQHE3b5v.mjs} +0 -0
- /package/dist/{portable-text-BYUu-wtj.d.mts → portable-text-Dm0bgrdZ.d.mts} +0 -0
- /package/dist/{provider-loader-BeQcnPN1.mjs → provider-loader-Dxka0BDp.mjs} +0 -0
- /package/dist/{public-url-BA-7LKvQ.mjs → public-url-CIAtNGEg.mjs} +0 -0
- /package/dist/{redirect-CZFAqHLr.mjs → redirect-CzqnLxK-.mjs} +0 -0
- /package/dist/{secrets-CpGpyGcO.mjs → secrets-Dw3lXI42.mjs} +0 -0
- /package/dist/{service-CY0aH6eI.mjs → service-DOdvCW-9.mjs} +0 -0
- /package/dist/{session-user-BwliEFp0.mjs → session-user-CYjNeJoD.mjs} +0 -0
- /package/dist/{setup-complete-PvF8I7Oh.mjs → setup-complete-Blqo_adb.mjs} +0 -0
- /package/dist/{setup-nonce-DkpYROqg.mjs → setup-nonce-CGUTFWgQ.mjs} +0 -0
- /package/dist/{sidecar-client-dt5fv23q.mjs → sidecar-client-C6ylL-0S.mjs} +0 -0
- /package/dist/{site-url-DfYDZyWl.mjs → site-url-CK5vBdFu.mjs} +0 -0
- /package/dist/{ssrf-BZHvtFEv.mjs → ssrf-Dz2hqAiG.mjs} +0 -0
- /package/dist/{status-BN40hMpr.mjs → status-xz9JACSX.mjs} +0 -0
- /package/dist/{tokens-DIzhPT80.mjs → tokens-DiodRT2y.mjs} +0 -0
- /package/dist/{transport-CXkC1F2Z.d.mts → transport-DKy93p6V.d.mts} +0 -0
- /package/dist/{transport-C46KHLMP.mjs → transport-zquJ7Bzm.mjs} +0 -0
- /package/dist/{trusted-proxy-czZuby6G.mjs → trusted-proxy-NySPw95m.mjs} +0 -0
- /package/dist/{types-BsTXSvKG.d.mts → types-BaKec6bx.d.mts} +0 -0
- /package/dist/{types-gvNBqijt.mjs → types-C1LdZbQb.mjs} +0 -0
- /package/dist/{types-S9VIopdY.d.mts → types-C2LBO0t8.d.mts} +0 -0
- /package/dist/{types-CDcuRd4z.d.mts → types-DY9lJRpo.d.mts} +0 -0
- /package/dist/{types-YxFz4lDr.d.mts → types-Gd4kXLsa.d.mts} +0 -0
- /package/dist/{types-CK0r-Xq4.mjs → types-ftxcMx5-.mjs} +0 -0
- /package/dist/{url-D282S1Zw.mjs → url-C05Zz4pW.mjs} +0 -0
- /package/dist/{utils-B7gemXz5.mjs → utils-BPzpVHqR.mjs} +0 -0
- /package/dist/{wordpress-slugs-D_LfQCan.mjs → wordpress-slugs-fMvfO22_.mjs} +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
2
|
-
import { i as encodeCursor, r as decodeCursor } from "./types-
|
|
3
|
-
import { t as ContentRepository } from "./content-
|
|
4
|
-
import { t as SiteActivityRepository } from "./site-activity-
|
|
5
|
-
import { t as ReviewRequestRepository } from "./review-requests-
|
|
6
|
-
import { o as HitlRequestRepository } from "./publication-authorization-
|
|
2
|
+
import { i as encodeCursor, r as decodeCursor } from "./types-C9F2TLQV.mjs";
|
|
3
|
+
import { t as ContentRepository } from "./content-Bg_hMt4Q.mjs";
|
|
4
|
+
import { t as SiteActivityRepository } from "./site-activity-CnrmnFRy.mjs";
|
|
5
|
+
import { t as ReviewRequestRepository } from "./review-requests-D5CJ4JCy.mjs";
|
|
6
|
+
import { o as HitlRequestRepository } from "./publication-authorization-BmazS4K0.mjs";
|
|
7
7
|
import { r as isPattern } from "./patterns-CoqlXUvk.mjs";
|
|
8
|
-
import { a as ContextRepository, i as parseSiteBriefingScope, l as handlePluginList } from "./briefing-
|
|
9
|
-
import { t as FTSManager } from "./fts-manager-
|
|
10
|
-
import { n as SchemaRegistry } from "./registry-
|
|
11
|
-
import { a as getSiteSettingsWithDb } from "./settings-
|
|
8
|
+
import { a as ContextRepository, i as parseSiteBriefingScope, l as handlePluginList } from "./briefing-CpU_z8qH.mjs";
|
|
9
|
+
import { t as FTSManager } from "./fts-manager-C7pxxk6B.mjs";
|
|
10
|
+
import { n as SchemaRegistry } from "./registry-D3n4-yUl.mjs";
|
|
11
|
+
import { a as getSiteSettingsWithDb } from "./settings-D-a7uy2z.mjs";
|
|
12
12
|
import { n as buildStableActionHash, t as ReviewPayloadBuilder } from "./review-payload-BysRWpxS.mjs";
|
|
13
|
-
import { n as assertExperimentalSiteContextWorkflowsEnabled } from "./experimental-workflows-
|
|
14
|
-
import { m as normalizeUrl } from "./utils-
|
|
15
|
-
import { t as sanitizeWordPressImportSlug } from "./wordpress-slugs-
|
|
16
|
-
import { s as searchCollection } from "./search-
|
|
13
|
+
import { n as assertExperimentalSiteContextWorkflowsEnabled } from "./experimental-workflows-EYZRNkRR.mjs";
|
|
14
|
+
import { m as normalizeUrl } from "./utils-BPzpVHqR.mjs";
|
|
15
|
+
import { t as sanitizeWordPressImportSlug } from "./wordpress-slugs-fMvfO22_.mjs";
|
|
16
|
+
import { s as searchCollection } from "./search-B_ir6H6m.mjs";
|
|
17
17
|
import { sql } from "kysely";
|
|
18
18
|
import { ulid } from "ulidx";
|
|
19
19
|
import { Role } from "@dineway-ai/auth";
|
package/dist/storage/local.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ListOptions, d as Storage, l as SignedUploadOptions, o as ListResult, p as UploadResult, r as DownloadResult, s as LocalStorageConfig, u as SignedUploadUrl } from "../types-
|
|
1
|
+
import { a as ListOptions, d as Storage, l as SignedUploadOptions, o as ListResult, p as UploadResult, r as DownloadResult, s as LocalStorageConfig, u as SignedUploadUrl } from "../types-Gd4kXLsa.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/storage/local.d.ts
|
|
4
4
|
/**
|
package/dist/storage/local.mjs
CHANGED
package/dist/storage/s3.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ListOptions, c as S3StorageConfig, d as Storage, l as SignedUploadOptions, o as ListResult, p as UploadResult, r as DownloadResult, u as SignedUploadUrl } from "../types-
|
|
1
|
+
import { a as ListOptions, c as S3StorageConfig, d as Storage, l as SignedUploadOptions, o as ListResult, p as UploadResult, r as DownloadResult, u as SignedUploadUrl } from "../types-Gd4kXLsa.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/storage/s3.d.ts
|
|
4
4
|
/**
|
package/dist/storage/s3.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as DinewayStorageError } from "../types-
|
|
1
|
+
import { t as DinewayStorageError } from "../types-C1LdZbQb.mjs";
|
|
2
2
|
import { DeleteObjectCommand, GetObjectCommand, HeadObjectCommand, ListObjectsV2Command, PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
|
|
3
3
|
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as encodeBase64url, n as decodeBase64url } from "./base64-F8-DUraK.mjs";
|
|
2
|
-
import { i as parseEncryptionKeys, t as DinewaySecretsError } from "./secrets-
|
|
2
|
+
import { i as parseEncryptionKeys, t as DinewaySecretsError } from "./secrets-Dw3lXI42.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/database/repositories/integration-credentials.ts
|
|
5
5
|
var IntegrationCredentialRepository = class {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
2
|
-
import { t as TaxonomyRepository } from "./taxonomy-
|
|
3
|
-
import { c as invalidateTaxonomyDefsCache, l as invalidateTermCache } from "./taxonomies-
|
|
1
|
+
import { a as __exportAll } from "./runner-BWZ87FK-.mjs";
|
|
2
|
+
import { t as TaxonomyRepository } from "./taxonomy-BU0eCfij.mjs";
|
|
3
|
+
import { c as invalidateTaxonomyDefsCache, l as invalidateTermCache } from "./taxonomies-FKTevd14.mjs";
|
|
4
4
|
import { ulid } from "ulidx";
|
|
5
5
|
|
|
6
6
|
//#region src/api/handlers/taxonomies.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
1
|
+
import { a as __exportAll } from "./runner-BWZ87FK-.mjs";
|
|
2
2
|
import { getRequestContext } from "./request-context.mjs";
|
|
3
|
-
import { a as resetTaxonomyNamesCache, o as isMissingTableError, r as getDb } from "./loader-
|
|
3
|
+
import { a as resetTaxonomyNamesCache, o as isMissingTableError, r as getDb } from "./loader-BCr2VSzt.mjs";
|
|
4
4
|
import { d as invalidateTaxonomyObjectCache, f as isObjectCacheActive, n as cachedQuery, t as CacheNamespace } from "./object-cache-D51qOseS.mjs";
|
|
5
|
-
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-
|
|
5
|
+
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-B-1_U3oF.mjs";
|
|
6
6
|
import { i as setRequestCacheEntry, n as peekRequestCache, r as requestCached } from "./request-cache-CBFjCwSt.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { n as resolveLocaleChain, t as resolveLocale } from "./resolve-CThKf9_X.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/taxonomies/index.ts
|
|
10
10
|
/**
|
|
@@ -393,7 +393,7 @@ function primeFoldedEntryTerms(collection, perEntry, options = {}) {
|
|
|
393
393
|
* Get entries by term.
|
|
394
394
|
*/
|
|
395
395
|
async function getEntriesByTerm(collection, taxonomyName, termSlug, options = {}) {
|
|
396
|
-
const { getDinewayCollection } = await import("./query-
|
|
396
|
+
const { getDinewayCollection } = await import("./query-CrUftarl.mjs").then((n) => n.o);
|
|
397
397
|
const queryOptions = { where: { [taxonomyName]: termSlug } };
|
|
398
398
|
if (options.locale !== void 0) queryOptions.locale = options.locale;
|
|
399
399
|
const { entries } = await getDinewayCollection(collection, queryOptions);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
1
|
+
import { a as __exportAll } from "./runner-BWZ87FK-.mjs";
|
|
2
2
|
import { d as invalidateTaxonomyObjectCache } from "./object-cache-D51qOseS.mjs";
|
|
3
3
|
import { ulid } from "ulidx";
|
|
4
4
|
|
|
@@ -226,7 +226,7 @@ var TaxonomyRepository = class {
|
|
|
226
226
|
*/
|
|
227
227
|
async countEntriesForTerms(translationGroups) {
|
|
228
228
|
if (translationGroups.length === 0) return /* @__PURE__ */ new Map();
|
|
229
|
-
const { chunks, SQL_BATCH_SIZE } = await import("./chunks-
|
|
229
|
+
const { chunks, SQL_BATCH_SIZE } = await import("./chunks-B-1_U3oF.mjs").then((n) => n.r);
|
|
230
230
|
const counts = /* @__PURE__ */ new Map();
|
|
231
231
|
for (const chunk of chunks(translationGroups, SQL_BATCH_SIZE)) {
|
|
232
232
|
const rows = await this.db.selectFrom("content_taxonomies").select(["taxonomy_id", (eb) => eb.fn.count("entry_id").as("count")]).where("taxonomy_id", "in", chunk).groupBy("taxonomy_id").execute();
|
|
@@ -75,6 +75,8 @@ interface Collection {
|
|
|
75
75
|
hasSeo: boolean;
|
|
76
76
|
/** URL pattern with {slug} placeholder (e.g. "/{slug}", "/blog/{slug}") */
|
|
77
77
|
urlPattern?: string;
|
|
78
|
+
/** Field containing the complete public path, including any locale prefix. */
|
|
79
|
+
urlField?: string;
|
|
78
80
|
/** Whether comments are enabled for this collection */
|
|
79
81
|
commentsEnabled: boolean;
|
|
80
82
|
/** Moderation strategy: "all" | "first_time" | "none" */
|
|
@@ -120,6 +122,8 @@ interface CreateCollectionInput {
|
|
|
120
122
|
supports?: CollectionSupport[];
|
|
121
123
|
source?: CollectionSource;
|
|
122
124
|
urlPattern?: string;
|
|
125
|
+
/** Field containing the complete public path, including any locale prefix. */
|
|
126
|
+
urlField?: string;
|
|
123
127
|
hasSeo?: boolean;
|
|
124
128
|
commentsEnabled?: boolean;
|
|
125
129
|
}
|
|
@@ -133,6 +137,8 @@ interface UpdateCollectionInput {
|
|
|
133
137
|
icon?: string;
|
|
134
138
|
supports?: CollectionSupport[];
|
|
135
139
|
urlPattern?: string;
|
|
140
|
+
/** Field containing the complete public path, including any locale prefix. */
|
|
141
|
+
urlField?: string | null;
|
|
136
142
|
hasSeo?: boolean;
|
|
137
143
|
commentsEnabled?: boolean;
|
|
138
144
|
commentsModeration?: "all" | "first_time" | "none";
|
|
@@ -412,6 +412,7 @@ interface CollectionTable {
|
|
|
412
412
|
search_config: string | null;
|
|
413
413
|
has_seo: number;
|
|
414
414
|
url_pattern: string | null;
|
|
415
|
+
url_field: Generated<string | null>;
|
|
415
416
|
comments_enabled: Generated<number>;
|
|
416
417
|
comments_moderation: Generated<string>;
|
|
417
418
|
comments_closed_after_days: Generated<number>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { _ as UpdateFieldInput, d as FieldType, f as FieldValidation, g as UpdateCollectionInput, i as CollectionWithFields, o as CreateCollectionInput, s as CreateFieldInput, t as Collection, u as Field } from "./types-
|
|
2
|
-
import { f as UpdateContentInput, i as ContentItem$1, l as FindManyOptions, o as ContentSeoInput, r as ContentDateField, s as CreateContentInput, t as BylineSummary, u as FindManyResult } from "./types-
|
|
3
|
-
import { t as Database } from "./types-
|
|
4
|
-
import { _ as MediaValue, m as MediaProviderDescriptor } from "./placeholder-
|
|
5
|
-
import { D as ContentBylineInput } from "./index-
|
|
6
|
-
import { r as AuthProviderDescriptor, t as AuthDescriptor } from "./types-
|
|
7
|
-
import { t as DatabaseDescriptor } from "./adapters-
|
|
8
|
-
import { r as ObjectCacheDescriptor } from "./types-
|
|
9
|
-
import { d as Storage } from "./types-
|
|
10
|
-
import { C as SiteSettingKey, w as SiteSettings } from "./validate-
|
|
1
|
+
import { _ as UpdateFieldInput, d as FieldType, f as FieldValidation, g as UpdateCollectionInput, i as CollectionWithFields, o as CreateCollectionInput, s as CreateFieldInput, t as Collection, u as Field } from "./types-B2kbOwSj.mjs";
|
|
2
|
+
import { f as UpdateContentInput, i as ContentItem$1, l as FindManyOptions, o as ContentSeoInput, r as ContentDateField, s as CreateContentInput, t as BylineSummary, u as FindManyResult } from "./types-B6r_SMeR.mjs";
|
|
3
|
+
import { t as Database } from "./types-C8cUW9dh.mjs";
|
|
4
|
+
import { _ as MediaValue, m as MediaProviderDescriptor } from "./placeholder-BsYSFPjY.mjs";
|
|
5
|
+
import { D as ContentBylineInput } from "./index-NdJMMO48.mjs";
|
|
6
|
+
import { r as AuthProviderDescriptor, t as AuthDescriptor } from "./types-C2LBO0t8.mjs";
|
|
7
|
+
import { t as DatabaseDescriptor } from "./adapters-DUVI3Mpc.mjs";
|
|
8
|
+
import { r as ObjectCacheDescriptor } from "./types-DY9lJRpo.mjs";
|
|
9
|
+
import { d as Storage } from "./types-Gd4kXLsa.mjs";
|
|
10
|
+
import { C as SiteSettingKey, w as SiteSettings } from "./validate-Bc9gaua6.mjs";
|
|
11
11
|
import { HandlerResponse } from "./astro/types.mjs";
|
|
12
12
|
import { Dialect, Kysely, Migration, RawBuilder, Transaction } from "kysely";
|
|
13
13
|
import { z } from "astro/zod";
|
|
@@ -2330,7 +2330,7 @@ declare class HookPipeline {
|
|
|
2330
2330
|
/**
|
|
2331
2331
|
* Run content:afterSave hooks
|
|
2332
2332
|
*/
|
|
2333
|
-
runContentAfterSave(content: Record<string, unknown>, collection: string, isNew: boolean): Promise<HookResult<void>[]>;
|
|
2333
|
+
runContentAfterSave(content: Record<string, unknown>, collection: string, isNew: boolean, previousContent?: Record<string, unknown>): Promise<HookResult<void>[]>;
|
|
2334
2334
|
/**
|
|
2335
2335
|
* Run content:beforeDelete hooks
|
|
2336
2336
|
* Returns whether deletion is allowed
|
|
@@ -2342,15 +2342,15 @@ declare class HookPipeline {
|
|
|
2342
2342
|
/**
|
|
2343
2343
|
* Run content:afterDelete hooks
|
|
2344
2344
|
*/
|
|
2345
|
-
runContentAfterDelete(id: string, collection: string, permanent: boolean): Promise<HookResult<void>[]>;
|
|
2345
|
+
runContentAfterDelete(id: string, collection: string, permanent: boolean, previousContent?: Record<string, unknown>): Promise<HookResult<void>[]>;
|
|
2346
2346
|
/**
|
|
2347
2347
|
* Run content:afterPublish hooks (fire-and-forget).
|
|
2348
2348
|
*/
|
|
2349
|
-
runContentAfterPublish(content: Record<string, unknown>, collection: string): Promise<HookResult<void>[]>;
|
|
2349
|
+
runContentAfterPublish(content: Record<string, unknown>, collection: string, previousContent?: Record<string, unknown>): Promise<HookResult<void>[]>;
|
|
2350
2350
|
/**
|
|
2351
2351
|
* Run content:afterUnpublish hooks (fire-and-forget).
|
|
2352
2352
|
*/
|
|
2353
|
-
runContentAfterUnpublish(content: Record<string, unknown>, collection: string): Promise<HookResult<void>[]>;
|
|
2353
|
+
runContentAfterUnpublish(content: Record<string, unknown>, collection: string, previousContent?: Record<string, unknown>): Promise<HookResult<void>[]>;
|
|
2354
2354
|
/**
|
|
2355
2355
|
* Run content:afterRestore hooks (fire-and-forget).
|
|
2356
2356
|
*/
|
|
@@ -4090,36 +4090,6 @@ declare function invalidateSchemaObjectCache(): void;
|
|
|
4090
4090
|
/** Invalidate cached public comment reads. */
|
|
4091
4091
|
declare function invalidateCommentObjectCache(): void;
|
|
4092
4092
|
//#endregion
|
|
4093
|
-
//#region src/i18n/config.d.ts
|
|
4094
|
-
/**
|
|
4095
|
-
* Dineway i18n Configuration
|
|
4096
|
-
*
|
|
4097
|
-
* Reads locale configuration from the virtual module (sourced from Astro config).
|
|
4098
|
-
* Initialized during runtime startup, then available via getI18nConfig().
|
|
4099
|
-
*/
|
|
4100
|
-
interface I18nConfig {
|
|
4101
|
-
defaultLocale: string;
|
|
4102
|
-
locales: string[];
|
|
4103
|
-
fallback?: Record<string, string>;
|
|
4104
|
-
prefixDefaultLocale?: boolean;
|
|
4105
|
-
}
|
|
4106
|
-
/**
|
|
4107
|
-
* Get the current i18n config.
|
|
4108
|
-
* Returns null if i18n is not configured.
|
|
4109
|
-
*/
|
|
4110
|
-
declare function getI18nConfig(): I18nConfig | null;
|
|
4111
|
-
/**
|
|
4112
|
-
* Check if i18n is enabled.
|
|
4113
|
-
* Returns true when multiple locales are configured.
|
|
4114
|
-
*/
|
|
4115
|
-
declare function isI18nEnabled(): boolean;
|
|
4116
|
-
/**
|
|
4117
|
-
* Resolve fallback locale chain for a given locale.
|
|
4118
|
-
* Returns array of locales to try, from most preferred to least.
|
|
4119
|
-
* Always ends with defaultLocale.
|
|
4120
|
-
*/
|
|
4121
|
-
declare function getFallbackChain(locale: string): string[];
|
|
4122
|
-
//#endregion
|
|
4123
4093
|
//#region src/preview/sidecar-client.d.ts
|
|
4124
4094
|
/**
|
|
4125
4095
|
* Preview sidecar protocol helpers.
|
|
@@ -4472,17 +4442,17 @@ declare const pluginManifestSchema: z$1.ZodObject<{
|
|
|
4472
4442
|
string: "string";
|
|
4473
4443
|
number: "number";
|
|
4474
4444
|
boolean: "boolean";
|
|
4475
|
-
json: "json";
|
|
4476
4445
|
file: "file";
|
|
4446
|
+
image: "image";
|
|
4447
|
+
datetime: "datetime";
|
|
4477
4448
|
slug: "slug";
|
|
4478
4449
|
text: "text";
|
|
4479
4450
|
integer: "integer";
|
|
4480
|
-
datetime: "datetime";
|
|
4481
4451
|
select: "select";
|
|
4482
4452
|
multiSelect: "multiSelect";
|
|
4483
4453
|
portableText: "portableText";
|
|
4484
|
-
image: "image";
|
|
4485
4454
|
reference: "reference";
|
|
4455
|
+
json: "json";
|
|
4486
4456
|
repeater: "repeater";
|
|
4487
4457
|
}>>;
|
|
4488
4458
|
elements: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -4610,7 +4580,7 @@ declare class PluginManager {
|
|
|
4610
4580
|
/**
|
|
4611
4581
|
* Run content:afterSave hooks across all active plugins
|
|
4612
4582
|
*/
|
|
4613
|
-
runContentAfterSave(content: Record<string, unknown>, collection: string, isNew: boolean): Promise<HookResult<void>[]>;
|
|
4583
|
+
runContentAfterSave(content: Record<string, unknown>, collection: string, isNew: boolean, previousContent?: Record<string, unknown>): Promise<HookResult<void>[]>;
|
|
4614
4584
|
/**
|
|
4615
4585
|
* Run content:beforeDelete hooks across all active plugins
|
|
4616
4586
|
*/
|
|
@@ -4621,15 +4591,15 @@ declare class PluginManager {
|
|
|
4621
4591
|
/**
|
|
4622
4592
|
* Run content:afterDelete hooks across all active plugins
|
|
4623
4593
|
*/
|
|
4624
|
-
runContentAfterDelete(id: string, collection: string, permanent: boolean): Promise<HookResult<void>[]>;
|
|
4594
|
+
runContentAfterDelete(id: string, collection: string, permanent: boolean, previousContent?: Record<string, unknown>): Promise<HookResult<void>[]>;
|
|
4625
4595
|
/**
|
|
4626
4596
|
* Run content:afterPublish hooks across all active plugins
|
|
4627
4597
|
*/
|
|
4628
|
-
runContentAfterPublish(content: Record<string, unknown>, collection: string): Promise<HookResult<void>[]>;
|
|
4598
|
+
runContentAfterPublish(content: Record<string, unknown>, collection: string, previousContent?: Record<string, unknown>): Promise<HookResult<void>[]>;
|
|
4629
4599
|
/**
|
|
4630
4600
|
* Run content:afterUnpublish hooks across all active plugins
|
|
4631
4601
|
*/
|
|
4632
|
-
runContentAfterUnpublish(content: Record<string, unknown>, collection: string): Promise<HookResult<void>[]>;
|
|
4602
|
+
runContentAfterUnpublish(content: Record<string, unknown>, collection: string, previousContent?: Record<string, unknown>): Promise<HookResult<void>[]>;
|
|
4633
4603
|
/**
|
|
4634
4604
|
* Run content:afterRestore hooks across all active plugins
|
|
4635
4605
|
*/
|
|
@@ -6897,6 +6867,8 @@ interface HookConfig<THandler> {
|
|
|
6897
6867
|
* Content hook event
|
|
6898
6868
|
*/
|
|
6899
6869
|
interface ContentHookEvent {
|
|
6870
|
+
/** Persisted item before a successful mutation; absent for creations and before hooks. */
|
|
6871
|
+
previousContent?: Record<string, unknown>;
|
|
6900
6872
|
content: Record<string, unknown>;
|
|
6901
6873
|
collection: string;
|
|
6902
6874
|
isNew: boolean;
|
|
@@ -6905,6 +6877,8 @@ interface ContentHookEvent {
|
|
|
6905
6877
|
* Content delete hook event
|
|
6906
6878
|
*/
|
|
6907
6879
|
interface ContentDeleteEvent {
|
|
6880
|
+
/** Persisted item before a successful mutation; absent for creations and before hooks. */
|
|
6881
|
+
previousContent?: Record<string, unknown>;
|
|
6908
6882
|
id: string;
|
|
6909
6883
|
collection: string;
|
|
6910
6884
|
permanent: boolean;
|
|
@@ -6913,6 +6887,8 @@ interface ContentDeleteEvent {
|
|
|
6913
6887
|
* Content state change hook event.
|
|
6914
6888
|
*/
|
|
6915
6889
|
interface ContentStateChangeEvent {
|
|
6890
|
+
/** Persisted item before a successful mutation; absent for creations and before hooks. */
|
|
6891
|
+
previousContent?: Record<string, unknown>;
|
|
6916
6892
|
content: Record<string, unknown>;
|
|
6917
6893
|
collection: string;
|
|
6918
6894
|
}
|
|
@@ -6974,6 +6950,25 @@ interface BreadcrumbItem {
|
|
|
6974
6950
|
/** Absolute or root-relative URL for this crumb. */
|
|
6975
6951
|
url: string;
|
|
6976
6952
|
}
|
|
6953
|
+
/** Public image metadata. Dimensions describe the referenced file, not a display crop. */
|
|
6954
|
+
interface PublicPageImage {
|
|
6955
|
+
url: string;
|
|
6956
|
+
alt?: string;
|
|
6957
|
+
width?: number;
|
|
6958
|
+
height?: number;
|
|
6959
|
+
mimeType?: string;
|
|
6960
|
+
}
|
|
6961
|
+
/** A public Schema.org node supplied by a site or plugin. */
|
|
6962
|
+
interface PublicSchemaNode {
|
|
6963
|
+
"@type": string | readonly string[];
|
|
6964
|
+
"@id"?: string;
|
|
6965
|
+
[key: string]: unknown;
|
|
6966
|
+
}
|
|
6967
|
+
interface PublicPageSchema {
|
|
6968
|
+
nodes: PublicSchemaNode[];
|
|
6969
|
+
/** Identifies a node in this graph that the page primarily describes. */
|
|
6970
|
+
mainEntity?: string;
|
|
6971
|
+
}
|
|
6977
6972
|
/**
|
|
6978
6973
|
* Describes the page being rendered. Passed to page hooks so plugins
|
|
6979
6974
|
* can decide what to contribute without fetching content themselves.
|
|
@@ -6991,6 +6986,8 @@ interface PublicPageContext {
|
|
|
6991
6986
|
description: string | null;
|
|
6992
6987
|
canonical: string | null;
|
|
6993
6988
|
image: string | null;
|
|
6989
|
+
imageMetadata?: PublicPageImage;
|
|
6990
|
+
schema?: PublicPageSchema;
|
|
6994
6991
|
content?: {
|
|
6995
6992
|
collection: string;
|
|
6996
6993
|
id: string;
|
|
@@ -7001,6 +6998,7 @@ interface PublicPageContext {
|
|
|
7001
6998
|
ogTitle?: string | null;
|
|
7002
6999
|
ogDescription?: string | null;
|
|
7003
7000
|
ogImage?: string | null;
|
|
7001
|
+
ogImageMetadata?: PublicPageImage;
|
|
7004
7002
|
robots?: string | null;
|
|
7005
7003
|
};
|
|
7006
7004
|
/** Article metadata for Open Graph article: tags */
|
|
@@ -7656,4 +7654,4 @@ interface PluginManifest {
|
|
|
7656
7654
|
admin: PluginAdminConfig;
|
|
7657
7655
|
}
|
|
7658
7656
|
//#endregion
|
|
7659
|
-
export { PluginMcpCommandTool as $, handleMediaList as $a, getDinewayEntry as $i, getComments as $n, image as $o, ValidatedPluginManifest as $r, FieldDescriptor as $s, getSearchStats as $t, MediaUploadEvent as A, PortableTextMarkDef as Aa, invalidateBylineObjectCache as Ai, getTerm as An, StorageDescriptor as Ao, AssignmentService as Ar, MediaRepository as As, StandardHookEntry as At, PluginActor as B, GetSectionsOptions as Ba, CacheHint as Bi, getMenu as Bn, handleContentGetIncludingTrashed as Bo, PublicationReleasePolicyDisposition as Br, DinewayDatabaseError as Bs, PublicationPolicyOverride as Bt, FieldWidgetConfig as C, hashString as Ca, getI18nConfig as Ci, WidgetComponentDef as Cn, PluginMcpRegistry as Co, VerifyPreviewTokenResult as Cr, SiteActivityResultStatus as Cs, PortableTextBlockField as Ct, KVAccess as D, PortableTextHtmlBlock as Da, cachedQuery as Di, getTaxonomyDef as Dn, getStoredConfig as Do, AssignmentAccessContext as Dr, RevisionRepository as Ds, ResolvedPluginHooks as Dt, HttpAccess as E, PortableTextCodeBlock as Ea, CachedQueryOptions as Ei, getEntryTerms as En, PluginDescriptor as Eo, verifyPreviewToken as Er, PublicComment as Es, ResolvedPlugin as Et, PageMetadataContribution as F, ProseMirrorMark as Fa, invalidateSchemaObjectCache as Fi, TaxonomyTermRow as Fn, handleContentCreate as Fo, CreateHandoffSnapshotInput as Fr, WhereRange as Fs, StorageCollection as Ft, PluginAuthMethod as G, getCollectionInfo as Ga, EditFieldMeta as Gi, MenuItem as Gn, handleContentRestore as Go, SandboxNotAvailableError as Gr, parseBody as Gs, PublicationReadinessResult as Gt, PluginAdminConfig as H, SectionSource as Ha, CollectionResult as Hi, CreateMenuInput as Hn, handleContentListTrashed as Ho, NodeSandboxRunner as Hr, OptionsRepository as Hs, PublicationReadinessPolicyBlocker as Ht, PageMetadataEvent as I, ProseMirrorNode as Ia, invalidateTaxonomyObjectCache as Ii, UpdateTermInput as In, handleContentDelete as Io, HandoffSnapshot as Ir, WhereValue$1 as Is, StorageCollectionConfig as It, PluginDefinition as J, MediaListResponse as Ja, ResolvePathResult as Ji, UpdateMenuInput as Jn, handleContentUnpublish as Jo, createPluginManager as Jr, apiSuccess as Js, PublicationReleasePolicy as Jt, PluginCapability as K, SchemaError as Ka, EntryResult as Ki, MenuItemType as Kn, handleContentSchedule as Ko, createNoopSandboxRunner as Kr, parseQuery as Ks, PublicationReadinessWarning as Kt, PageMetadataHandler as L, getSection as La, isObjectCacheActive as Li, getByline as Ln, handleContentDiscardDraft as Lo, SiteAuthTokenContext as Lr, dinewayLoader as Ls, StoredComment as Lt, PageFragmentContribution as M, PortableTextTextBlock as Ma, invalidateCommentObjectCache as Mi, CreateTermInput as Mn, handleContentCompare as Mo, HandoffResumeResult as Mr, CollectionFilter$1 as Ms, StandardPluginDefinition as Mt, PageFragmentEvent as N, PortableTextUnknownBlock as Na, invalidateMenuObjectCache as Ni, TaxonomyDef as Nn, handleContentCountScheduled as No, HandoffSnapshotStore as Nr, EntryData as Ns, StandardRouteEntry as Nt, LogAccess as O, PortableTextImageBlock as Oa, contentNamespace as Oi, getTaxonomyDefs as On, LocalStorageConfig as Oo, AssignmentActionInput as Or, CreateMediaInput as Os, ResolvedPluginMcpConfig as Ot, PageFragmentHandler as P, ProseMirrorDocument as Pa, invalidateObjectCache as Pi, TaxonomyTerm as Pn, handleContentCountTrashed as Po, ResumeHandoffSnapshotInput as Pr, EntryFilter as Ps, StandardRouteHandler as Pt, PluginMcpCommandPreview as Q, handleMediaGet as Qa, getDinewayCollection as Qi, getCommentCount as Qn, reference as Qo, PluginSecretStoreOptions as Qr, ContentResponse as Qs, extractSearchableFields as Qt, PageMetadataLinkRel as R, getSections as Ra, AfterCallback as Ri, getBylineBySlug as Rn, handleContentDuplicate as Ro, BuiltContentReleasePayload as Rr, getDb as Rs, isStandardPluginDefinition as Rt, EmailMessage as S, computeContentHash as Sa, getFallbackChain as Si, WidgetArea as Sn, SerializedRequest as So, VerifyPreviewTokenOptions as Sr, SiteActivityRepository as Ss, PortableTextBlockConfig as St, HookName as T, prosemirrorToPortableText as Ta, CacheNamespace as Ti, getEntriesByTerm as Tn, DinewayConfig as To, parseContentId as Tr, SiteActivityTimelineQuery as Ts, ResolvedHook as Tt, PluginAdminExports as U, UpdateSectionInput as Ua, ContentEntry as Ui, CreateMenuItemInput as Un, handleContentPermanentDelete as Uo, createNodeSandboxRunner as Ur, ParseResult as Us, PublicationReadinessPolicyFinding as Ut, PluginActorType as V, Section as Va, CollectionFilter as Vi, getMenus as Vn, handleContentList as Vo, buildStableActionHash as Vr, Element as Vs, PublicationReadinessBlocker as Vt, PluginAdminPage as W, validateContent as Wa, DinewayCollections as Wi, Menu as Wn, handleContentPublish as Wo, NoopSandboxRunner as Wr, isParseError as Ws, PublicationReadinessPolicyTarget as Wt, PluginManifest as X, handleMediaCreate as Xa, TranslationSummary as Xi, GetCommentsOptions as Xn, handleContentUpdate as Xo, PluginSecretStatus as Xr, ApiContext as Xs, currentTimestamp as Xt, PluginHooks as Y, MediaResponse as Ya, SelectedCollectionData as Yi, UpdateMenuItemInput as Yn, handleContentUnschedule as Yo, createReviewedPluginMcpCommandExecutor as Yr, handleError as Ys, PublicationReleasePreparationTarget as Yt, PluginMcpAuthorization as Z, handleMediaDelete as Za, TranslationsResult as Zi, GetCommentsResult as Zn, portableText as Zo, PluginSecretStore as Zr, ContentListResponse as Zs, extractPlainText as Zt, EmailAfterSendHandler as _, verifyGuestAccessToken as _a, defaultPreviewSidecarClient as _i, CreateWidgetInput as _n, SandboxEmailSendCallback as _o, GetPreviewUrlOptions as _r, CreateAssignmentInput as _s, PluginRouteTargetAuthorizationRequest as _t, CommentAfterModerateEvent as a, FieldAnnotation as aa, FileSessionDatabaseFactory as ai, CollectionSearchOptions as an, handleRevisionRestore as ao, PreviewToolbarConfig as ar, ContentReference as as, PluginMcpResource as at, EmailDeliverEvent as b, isSafeHref as ba, verifyPreviewSignature as bi, UpdateWidgetInput as bn, SandboxRunnerFactory as bo, GeneratePreviewTokenOptions as br, SiteActivity as bs, PluginStorageConfig as bt, CommentBeforeCreateHandler as c, GuestAccessExpectedScope as ca, SessionDatabaseFactory as ci, SearchResponse as cn, SiteBriefingAssembler as co, ApplySnapshotToDatabaseOptions as cr, RelationRepository as cs, PluginMcpRiskFactor as ct, ContentAccess as d, IssueGuestAccessTokenOptions as da, SessionDatabaseLimitError as di, SuggestOptions as dn, PluginRouteError as do, getAppliedSnapshotMeta as dr, AssignmentActorRef as ds, PluginMigration as dt, getEditMeta as ea, ListResponse as ec, pluginManifestSchema as ei, getSuggestions as en, handleMediaUpdate as eo, getPluginSetting as er, FieldDefinition as es, PluginMcpConfig as et, ContentDeleteEvent as f, IssuedGuestAccessToken as fa, SessionOpenOptions as fi, Suggestion as fn, EmailPipeline as fo, Snapshot as fr, AssignmentActorType as fs, PluginRoute as ft, EmailAfterSendEvent as g, issueGuestAccessToken as ga, buildPreviewSignatureHeader as gi, CreateWidgetAreaInput as gn, SandboxEmailMessage as go, isPreviewRequest as gr, AssignmentStatus as gs, PluginRouteMethod as gt, EmailAccess as h, hashGuestAccessToken as ha, PreviewSidecarSignature as hi, getWidgetComponents as hn, createHookPipeline as ho, getPreviewToken as hr, AssignmentRepository as hs, PluginRouteBodyMode as ht, CommentAfterCreateHandler as i, EditProxy as ia, createFilePreviewMiddleware as ii, FTSManager as in, handleRevisionList as io, setSiteSettings as ir, PortableTextBlock$1 as is, PluginMcpQueryTool as it, ModerationDecision as j, PortableTextSpan as ja, invalidateCollectionCache as ji, getTermsForEntries as jn, handleContentAuthors as jo, CreateWorkflowAssignmentInput as jr, ContentRepository as js, StandardHookHandler as jt, MediaAccess as k, PortableTextLinkMark as ka, contentNamespaces as ki, getTaxonomyTerms as kn, S3StorageConfig as ko, AssignmentListInput as kr, MediaItem$1 as ks, RouteContext as kt, CommentModerateEvent as l, GuestAccessTokenClaims as la, SessionDatabaseHandle as li, SearchResult as ln, SiteBriefingContextEntry as lo, applySnapshotToDatabase as lr, UpdateRelationInput as ls, PluginMcpRiskLevel as lt, ContentPublishStateChangeEvent as m, VerifyGuestAccessTokenResult as ma, PreviewSidecarClient as mi, getWidgetAreas as mn, HookResult as mo, isBlockedInPreview as mr, AssignmentPriority as ms, PluginRouteAuthorization as mt, CollectionCommentSettings as n, resolveDinewayPath as na, definePlugin as ni, searchCollection as nn, RevisionResponse as no, getSiteSetting as nr, FileValue as ns, PluginMcpPiiClass as nt, CommentAfterModerateHandler as o, createEditable as oa, FileSessionDatabaseFactoryOptions as oi, SearchConfig as on, generateManifest as oo, renderPreviewToolbar as or, CreateRelationInput as os, PluginMcpResourceContent as ot, ContentHookEvent as p, VerifyGuestAccessTokenOptions as pa, SessionOpenOrCreateOptions as pi, getWidgetArea as pn, HookPipeline as po, renderPreviewLoadingPage as pr, AssignmentListQuery as ps, PluginRouteApiTokenPolicy as pt, PluginContext as q, SchemaRegistry as qa, InferCollectionData as qi, ReorderMenuItemsInput as qn, handleContentTranslations as qo, PluginManager as qr, apiError as qs, PublicationReceipt as qt, CommentAfterCreateEvent as r, CMSAnnotation as ra, FilePreviewMiddlewareConfig as ri, searchWithDb as rn, handleRevisionGet as ro, getSiteSettings as rr, ImageValue as rs, PluginMcpPiiPolicy as rt, CommentBeforeCreateEvent as s, createNoop as sa, SessionCleanupResult as si, SearchOptions as sn, SiteBriefing as so, AppliedSnapshotMeta as sr, Relation as ss, PluginMcpReversibility as st, BreadcrumbItem as t, getTranslations as ta, ManifestResponse as tc, runPluginMigrations as ti, search as tn, RevisionListResponse as to, getPluginSettings as tr, FieldUIHints as ts, PluginMcpExecutionContext as tt, CommentModerateHandler as u, GuestAccessTokenConfigurationError as ua, SessionDatabaseInfo as ui, SearchStats as un, SandboxedPluginEntry as uo, dropSessionDatabaseTables as ur, Assignment as us, PluginMcpTool as ut, EmailBeforeSendEvent as v, RateLimitResult as va, parsePreviewSignatureHeader as vi, PropDef as vn, SandboxOptions as vo, buildPreviewUrl as vr, MarkAssignmentsOverdueInput as vs, PluginRouteTargetAuthorizer as vt, HookConfig as w, portableTextToProsemirror as wa, isI18nEnabled as wi, WidgetType as wn, PluginMcpTargetAuthorizer$1 as wo, generatePreviewToken as wr, SiteActivitySourceType as ws, PublicPageContext as wt, EmailDeliverHandler as x, sanitizeHref as xa, I18nConfig as xi, Widget as xn, SandboxedPlugin as xo, PreviewTokenPayload as xr, SiteActivityActorType as xs, PluginTargetScope as xt, EmailBeforeSendHandler as y, checkRateLimit as ya, signPreviewUrl as yi, ReorderWidgetsInput as yn, SandboxRunner as yo, getPreviewUrl as yr, CreateSiteActivityInput as ys, PluginRouteTargetContext as yt, PagePlacement as z, CreateSectionInput as za, after as zi, getEntriesByByline as zn, handleContentGet as zo, PublicationReleasePolicyContribution as zr, DatabaseConfig as zs, PublicationAuthorizationService as zt };
|
|
7657
|
+
export { PluginMcpCommandTool as $, handleMediaUpdate as $a, getEditMeta as $i, GetCommentsOptions as $n, FieldDefinition as $o, PluginSecretStatus as $r, ListResponse as $s, currentTimestamp as $t, MediaUploadEvent as A, PortableTextSpan as Aa, invalidateCollectionCache as Ai, getTaxonomyDef as An, handleContentAuthors as Ao, AssignmentAccessContext as Ar, ContentRepository as As, ResolvedPluginHooks as At, PluginActor as B, Section as Ba, CollectionFilter as Bi, getByline as Bn, handleContentList as Bo, SiteAuthTokenContext as Br, Element as Bs, StoredComment as Bt, FieldWidgetConfig as C, portableTextToProsemirror as Ca, verifyPreviewSignature as Ci, UpdateWidgetInput as Cn, PluginMcpTargetAuthorizer$1 as Co, GeneratePreviewTokenOptions as Cr, SiteActivitySourceType as Cs, PortableTextBlockField as Ct, KVAccess as D, PortableTextImageBlock as Da, contentNamespace as Di, WidgetType as Dn, LocalStorageConfig as Do, generatePreviewToken as Dr, CreateMediaInput as Ds, PublicSchemaNode as Dt, HttpAccess as E, PortableTextHtmlBlock as Ea, cachedQuery as Ei, WidgetComponentDef as En, getStoredConfig as Eo, VerifyPreviewTokenResult as Er, RevisionRepository as Es, PublicPageSchema as Et, PageMetadataContribution as F, ProseMirrorNode as Fa, invalidateTaxonomyObjectCache as Fi, CreateTermInput as Fn, handleContentDelete as Fo, HandoffResumeResult as Fr, WhereValue$1 as Fs, StandardPluginDefinition as Ft, PluginAuthMethod as G, SchemaError as Ga, EntryResult as Gi, CreateMenuInput as Gn, handleContentSchedule as Go, NodeSandboxRunner as Gr, parseQuery as Gs, PublicationReadinessPolicyBlocker as Gt, PluginAdminConfig as H, UpdateSectionInput as Ha, ContentEntry as Hi, getEntriesByByline as Hn, handleContentPermanentDelete as Ho, PublicationReleasePolicyContribution as Hr, ParseResult as Hs, PublicationAuthorizationService as Ht, PageMetadataEvent as I, getSection as Ia, isObjectCacheActive as Ii, TaxonomyDef as In, handleContentDiscardDraft as Io, HandoffSnapshotStore as Ir, dinewayLoader as Is, StandardRouteEntry as It, PluginDefinition as J, MediaResponse as Ja, SelectedCollectionData as Ji, MenuItem as Jn, handleContentUnschedule as Jo, SandboxNotAvailableError as Jr, handleError as Js, PublicationReadinessResult as Jt, PluginCapability as K, SchemaRegistry as Ka, InferCollectionData as Ki, CreateMenuItemInput as Kn, handleContentTranslations as Ko, createNodeSandboxRunner as Kr, apiError as Ks, PublicationReadinessPolicyFinding as Kt, PageMetadataHandler as L, getSections as La, AfterCallback as Li, TaxonomyTerm as Ln, handleContentDuplicate as Lo, ResumeHandoffSnapshotInput as Lr, getDb as Ls, StandardRouteHandler as Lt, PageFragmentContribution as M, PortableTextUnknownBlock as Ma, invalidateMenuObjectCache as Mi, getTaxonomyTerms as Mn, handleContentCountScheduled as Mo, AssignmentListInput as Mr, EntryData as Ms, RouteContext as Mt, PageFragmentEvent as N, ProseMirrorDocument as Na, invalidateObjectCache as Ni, getTerm as Nn, handleContentCountTrashed as No, AssignmentService as Nr, EntryFilter as Ns, StandardHookEntry as Nt, LogAccess as O, PortableTextLinkMark as Oa, contentNamespaces as Oi, getEntriesByTerm as On, S3StorageConfig as Oo, parseContentId as Or, MediaItem$1 as Os, ResolvedHook as Ot, PageFragmentHandler as P, ProseMirrorMark as Pa, invalidateSchemaObjectCache as Pi, getTermsForEntries as Pn, handleContentCreate as Po, CreateWorkflowAssignmentInput as Pr, WhereRange as Ps, StandardHookHandler as Pt, PluginMcpCommandPreview as Q, handleMediaList as Qa, getDinewayEntry as Qi, UpdateMenuItemInput as Qn, image as Qo, createReviewedPluginMcpCommandExecutor as Qr, FieldDescriptor as Qs, PublicationReleasePreparationTarget as Qt, PageMetadataLinkRel as R, CreateSectionInput as Ra, after as Ri, TaxonomyTermRow as Rn, handleContentGet as Ro, CreateHandoffSnapshotInput as Rr, DatabaseConfig as Rs, StorageCollection as Rt, EmailMessage as S, hashString as Sa, signPreviewUrl as Si, ReorderWidgetsInput as Sn, PluginMcpRegistry as So, getPreviewUrl as Sr, SiteActivityResultStatus as Ss, PortableTextBlockConfig as St, HookName as T, PortableTextCodeBlock as Ta, CachedQueryOptions as Ti, WidgetArea as Tn, PluginDescriptor as To, VerifyPreviewTokenOptions as Tr, PublicComment as Ts, PublicPageImage as Tt, PluginAdminExports as U, validateContent as Ua, DinewayCollections as Ui, getMenu as Un, handleContentPublish as Uo, PublicationReleasePolicyDisposition as Ur, isParseError as Us, PublicationPolicyOverride as Ut, PluginActorType as V, SectionSource as Va, CollectionResult as Vi, getBylineBySlug as Vn, handleContentListTrashed as Vo, BuiltContentReleasePayload as Vr, OptionsRepository as Vs, isStandardPluginDefinition as Vt, PluginAdminPage as W, getCollectionInfo as Wa, EditFieldMeta as Wi, getMenus as Wn, handleContentRestore as Wo, buildStableActionHash as Wr, parseBody as Ws, PublicationReadinessBlocker as Wt, PluginManifest as X, handleMediaDelete as Xa, TranslationsResult as Xi, ReorderMenuItemsInput as Xn, portableText as Xo, PluginManager as Xr, ContentListResponse as Xs, PublicationReceipt as Xt, PluginHooks as Y, handleMediaCreate as Ya, TranslationSummary as Yi, MenuItemType as Yn, handleContentUpdate as Yo, createNoopSandboxRunner as Yr, ApiContext as Ys, PublicationReadinessWarning as Yt, PluginMcpAuthorization as Z, handleMediaGet as Za, getDinewayCollection as Zi, UpdateMenuInput as Zn, reference as Zo, createPluginManager as Zr, ContentResponse as Zs, PublicationReleasePolicy as Zt, EmailAfterSendHandler as _, RateLimitResult as _a, PreviewSidecarClient as _i, getWidgetAreas as _n, SandboxOptions as _o, isBlockedInPreview as _r, MarkAssignmentsOverdueInput as _s, PluginRouteTargetAuthorizationRequest as _t, CommentAfterModerateEvent as a, createEditable as aa, definePlugin as ai, searchCollection as an, generateManifest as ao, getSiteSetting as ar, CreateRelationInput as as, PluginMcpResource as at, EmailDeliverEvent as b, sanitizeHref as ba, defaultPreviewSidecarClient as bi, CreateWidgetInput as bn, SandboxedPlugin as bo, GetPreviewUrlOptions as br, SiteActivityActorType as bs, PluginStorageConfig as bt, CommentBeforeCreateHandler as c, GuestAccessTokenClaims as ca, FileSessionDatabaseFactory as ci, CollectionSearchOptions as cn, SiteBriefingContextEntry as co, PreviewToolbarConfig as cr, UpdateRelationInput as cs, PluginMcpRiskFactor as ct, ContentAccess as d, IssuedGuestAccessToken as da, SessionDatabaseFactory as di, SearchResponse as dn, EmailPipeline as do, ApplySnapshotToDatabaseOptions as dr, AssignmentActorType as ds, PluginMigration as dt, getTranslations as ea, ManifestResponse as ec, PluginSecretStore as ei, extractPlainText as en, RevisionListResponse as eo, GetCommentsResult as er, FieldUIHints as es, PluginMcpConfig as et, ContentDeleteEvent as f, VerifyGuestAccessTokenOptions as fa, SessionDatabaseHandle as fi, SearchResult as fn, HookPipeline as fo, applySnapshotToDatabase as fr, AssignmentListQuery as fs, PluginRoute as ft, EmailAfterSendEvent as g, verifyGuestAccessToken as ga, SessionOpenOrCreateOptions as gi, getWidgetArea as gn, SandboxEmailSendCallback as go, renderPreviewLoadingPage as gr, CreateAssignmentInput as gs, PluginRouteMethod as gt, EmailAccess as h, issueGuestAccessToken as ha, SessionOpenOptions as hi, Suggestion as hn, SandboxEmailMessage as ho, Snapshot as hr, AssignmentStatus as hs, PluginRouteBodyMode as ht, CommentAfterCreateHandler as i, FieldAnnotation as ia, runPluginMigrations as ii, search as in, handleRevisionRestore as io, getPluginSettings as ir, ContentReference as is, PluginMcpQueryTool as it, ModerationDecision as j, PortableTextTextBlock as ja, invalidateCommentObjectCache as ji, getTaxonomyDefs as jn, handleContentCompare as jo, AssignmentActionInput as jr, CollectionFilter$1 as js, ResolvedPluginMcpConfig as jt, MediaAccess as k, PortableTextMarkDef as ka, invalidateBylineObjectCache as ki, getEntryTerms as kn, StorageDescriptor as ko, verifyPreviewToken as kr, MediaRepository as ks, ResolvedPlugin as kt, CommentModerateEvent as l, GuestAccessTokenConfigurationError as la, FileSessionDatabaseFactoryOptions as li, SearchConfig as ln, SandboxedPluginEntry as lo, renderPreviewToolbar as lr, Assignment as ls, PluginMcpRiskLevel as lt, ContentPublishStateChangeEvent as m, hashGuestAccessToken as ma, SessionDatabaseLimitError as mi, SuggestOptions as mn, createHookPipeline as mo, getAppliedSnapshotMeta as mr, AssignmentRepository as ms, PluginRouteAuthorization as mt, CollectionCommentSettings as n, CMSAnnotation as na, ValidatedPluginManifest as ni, getSearchStats as nn, handleRevisionGet as no, getComments as nr, ImageValue as ns, PluginMcpPiiClass as nt, CommentAfterModerateHandler as o, createNoop as oa, FilePreviewMiddlewareConfig as oi, searchWithDb as on, SiteBriefing as oo, getSiteSettings as or, Relation as os, PluginMcpResourceContent as ot, ContentHookEvent as p, VerifyGuestAccessTokenResult as pa, SessionDatabaseInfo as pi, SearchStats as pn, HookResult as po, dropSessionDatabaseTables as pr, AssignmentPriority as ps, PluginRouteApiTokenPolicy as pt, PluginContext as q, MediaListResponse as qa, ResolvePathResult as qi, Menu as qn, handleContentUnpublish as qo, NoopSandboxRunner as qr, apiSuccess as qs, PublicationReadinessPolicyTarget as qt, CommentAfterCreateEvent as r, EditProxy as ra, pluginManifestSchema as ri, getSuggestions as rn, handleRevisionList as ro, getPluginSetting as rr, PortableTextBlock$1 as rs, PluginMcpPiiPolicy as rt, CommentBeforeCreateEvent as s, GuestAccessExpectedScope as sa, createFilePreviewMiddleware as si, FTSManager as sn, SiteBriefingAssembler as so, setSiteSettings as sr, RelationRepository as ss, PluginMcpReversibility as st, BreadcrumbItem as t, resolveDinewayPath as ta, PluginSecretStoreOptions as ti, extractSearchableFields as tn, RevisionResponse as to, getCommentCount as tr, FileValue as ts, PluginMcpExecutionContext as tt, CommentModerateHandler as u, IssueGuestAccessTokenOptions as ua, SessionCleanupResult as ui, SearchOptions as un, PluginRouteError as uo, AppliedSnapshotMeta as ur, AssignmentActorRef as us, PluginMcpTool as ut, EmailBeforeSendEvent as v, checkRateLimit as va, PreviewSidecarSignature as vi, getWidgetComponents as vn, SandboxRunner as vo, getPreviewToken as vr, CreateSiteActivityInput as vs, PluginRouteTargetAuthorizer as vt, HookConfig as w, prosemirrorToPortableText as wa, CacheNamespace as wi, Widget as wn, DinewayConfig as wo, PreviewTokenPayload as wr, SiteActivityTimelineQuery as ws, PublicPageContext as wt, EmailDeliverHandler as x, computeContentHash as xa, parsePreviewSignatureHeader as xi, PropDef as xn, SerializedRequest as xo, buildPreviewUrl as xr, SiteActivityRepository as xs, PluginTargetScope as xt, EmailBeforeSendHandler as y, isSafeHref as ya, buildPreviewSignatureHeader as yi, CreateWidgetAreaInput as yn, SandboxRunnerFactory as yo, isPreviewRequest as yr, SiteActivity as ys, PluginRouteTargetContext as yt, PagePlacement as z, GetSectionsOptions as za, CacheHint as zi, UpdateTermInput as zn, handleContentGetIncludingTrashed as zo, HandoffSnapshot as zr, DinewayDatabaseError as zs, StorageCollectionConfig as zt };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import "../types-
|
|
3
|
-
import { _ as MediaValue, c as EmbedResult, l as ImageEmbed, s as EmbedOptions } from "../placeholder-
|
|
4
|
-
import "../runner-
|
|
5
|
-
import "../index-
|
|
6
|
-
import "../types-
|
|
7
|
-
import
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
1
|
+
import { $i as getEditMeta, F as PageMetadataContribution, Mn as getTaxonomyTerms, Ts as PublicComment, Un as getMenu, Wa as getCollectionInfo, Zi as getDinewayCollection, ba as sanitizeHref, gn as getWidgetArea, nr as getComments, or as getSiteSettings, wn as Widget, wt as PublicPageContext } from "../types-Cty2_HVR.mjs";
|
|
2
|
+
import "../types-C8cUW9dh.mjs";
|
|
3
|
+
import { _ as MediaValue, c as EmbedResult, l as ImageEmbed, s as EmbedOptions } from "../placeholder-BsYSFPjY.mjs";
|
|
4
|
+
import "../runner-BITx7yBF.mjs";
|
|
5
|
+
import "../index-NdJMMO48.mjs";
|
|
6
|
+
import "../types-C2LBO0t8.mjs";
|
|
7
|
+
import "../public-url-DFX2c_20.mjs";
|
|
8
|
+
import { x as MediaReference } from "../validate-Bc9gaua6.mjs";
|
|
9
|
+
import "../byline-fields-BXg94LXd.mjs";
|
|
10
|
+
import "../types-BaKec6bx.mjs";
|
|
11
|
+
import { t as getPublicOrigin } from "../public-url-NkNXl8OU.mjs";
|
|
12
|
+
import { a as generateSiteSeoContributions, c as ResolvedPageMetadata, d as renderPageMetadata, f as resolvePageMetadata, i as generateBaseSeoContributions, l as createSha256CspHash, o as renderFragments } from "../jsonld-TsDIJx5A.mjs";
|
|
12
13
|
import { getPageRuntime } from "../page/index.mjs";
|
|
13
|
-
import { t as getMediaProvider } from "../provider-loader-
|
|
14
|
+
import { t as getMediaProvider } from "../provider-loader-jdkZM6xZ.mjs";
|
|
14
15
|
|
|
15
16
|
//#region src/utils/sanitize.d.ts
|
|
16
17
|
/**
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import "../dialect-helpers-fk43GbDb.mjs";
|
|
2
2
|
import "../base64-F8-DUraK.mjs";
|
|
3
|
-
import "../types-
|
|
4
|
-
import "../loader-
|
|
3
|
+
import "../types-C9F2TLQV.mjs";
|
|
4
|
+
import "../loader-BCr2VSzt.mjs";
|
|
5
5
|
import "../object-cache-D51qOseS.mjs";
|
|
6
|
-
import "../media-
|
|
7
|
-
import "../comment-
|
|
6
|
+
import "../media-D8pQJSug.mjs";
|
|
7
|
+
import "../comment-BX6H4NF-.mjs";
|
|
8
8
|
import "../options-DQPTH5n0.mjs";
|
|
9
9
|
import "../request-cache-CBFjCwSt.mjs";
|
|
10
|
-
import "../content-refresh-
|
|
11
|
-
import "../fts-manager-
|
|
12
|
-
import "../registry-
|
|
10
|
+
import "../content-refresh-CHBBZGwf.mjs";
|
|
11
|
+
import "../fts-manager-C7pxxk6B.mjs";
|
|
12
|
+
import "../registry-D3n4-yUl.mjs";
|
|
13
13
|
import { n as buildRenderMediaUrl } from "../url-guoXQQcV.mjs";
|
|
14
|
-
import { i as getSiteSettings } from "../settings-
|
|
15
|
-
import { t as getCollectionInfo } from "../query-
|
|
16
|
-
import "../resolve-
|
|
17
|
-
import { a as getTaxonomyTerms } from "../taxonomies-
|
|
18
|
-
import { n as sanitizeHref } from "../url-
|
|
19
|
-
import { r as getEditMeta, t as getDinewayCollection } from "../query-
|
|
20
|
-
import "../comment-reaction-
|
|
21
|
-
import { i as getComments, t as getMenu } from "../menus-
|
|
22
|
-
import { t as getWidgetArea } from "../widgets-
|
|
23
|
-
import { t as getMediaProvider } from "../provider-loader-
|
|
24
|
-
import { n as getPublicOrigin } from "../public-url-
|
|
25
|
-
import {
|
|
14
|
+
import { i as getSiteSettings } from "../settings-D-a7uy2z.mjs";
|
|
15
|
+
import { t as getCollectionInfo } from "../query-DPC5GT6e.mjs";
|
|
16
|
+
import "../resolve-CThKf9_X.mjs";
|
|
17
|
+
import { a as getTaxonomyTerms } from "../taxonomies-FKTevd14.mjs";
|
|
18
|
+
import { n as sanitizeHref } from "../url-C05Zz4pW.mjs";
|
|
19
|
+
import { r as getEditMeta, t as getDinewayCollection } from "../query-CrUftarl.mjs";
|
|
20
|
+
import "../comment-reaction-QSENU_3S.mjs";
|
|
21
|
+
import { i as getComments, t as getMenu } from "../menus-DSWeEWXl.mjs";
|
|
22
|
+
import { t as getWidgetArea } from "../widgets-BFqy7PYs.mjs";
|
|
23
|
+
import { t as getMediaProvider } from "../provider-loader-Dxka0BDp.mjs";
|
|
24
|
+
import { n as getPublicOrigin } from "../public-url-CIAtNGEg.mjs";
|
|
25
|
+
import { a as createSha256CspHash, c as resolvePageMetadata, g as absolutizeMediaUrl, n as generateSiteSeoContributions, o as escapeHtmlAttr, r as renderFragments, s as renderPageMetadata, t as generateBaseSeoContributions } from "../seo-contributions-BGBehNCN.mjs";
|
|
26
26
|
import { getPageRuntime } from "../page/index.mjs";
|
|
27
27
|
import sanitizeHtml from "sanitize-html";
|
|
28
28
|
|
|
@@ -151,47 +151,6 @@ async function buildResponsiveImage(getImage, opts) {
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
//#endregion
|
|
155
|
-
//#region src/page/absolute-url.ts
|
|
156
|
-
const HTTP_URL_RE = /^https?:\/\//i;
|
|
157
|
-
const PROTOCOL_RELATIVE_RE = /^\/\//;
|
|
158
|
-
const PASSTHROUGH_SCHEME_RE = /^data:image\//i;
|
|
159
|
-
const OTHER_SCHEME_RE = /^[a-z][a-z0-9+.-]*:/i;
|
|
160
|
-
const WHITESPACE_OR_CONTROL_RE = /[\s\u0000-\u001f\u007f-\u009f]/;
|
|
161
|
-
const TRAILING_SLASH_RE = /\/$/;
|
|
162
|
-
function isUsableOrigin(origin) {
|
|
163
|
-
return origin !== "null" && origin !== "";
|
|
164
|
-
}
|
|
165
|
-
function resolveSiteOrigin(configuredSiteUrl, page) {
|
|
166
|
-
const candidates = [
|
|
167
|
-
configuredSiteUrl,
|
|
168
|
-
page.siteUrl,
|
|
169
|
-
page.url
|
|
170
|
-
];
|
|
171
|
-
for (const candidate of candidates) {
|
|
172
|
-
if (!candidate || typeof candidate !== "string") continue;
|
|
173
|
-
try {
|
|
174
|
-
const parsed = new URL(candidate);
|
|
175
|
-
if (parsed.protocol !== "http:" && parsed.protocol !== "https:") continue;
|
|
176
|
-
if (!isUsableOrigin(parsed.origin)) continue;
|
|
177
|
-
return parsed.origin;
|
|
178
|
-
} catch {}
|
|
179
|
-
}
|
|
180
|
-
return null;
|
|
181
|
-
}
|
|
182
|
-
function absolutizeMediaUrl(url, configuredSiteUrl, page) {
|
|
183
|
-
if (!url) return null;
|
|
184
|
-
if (WHITESPACE_OR_CONTROL_RE.test(url)) return null;
|
|
185
|
-
if (HTTP_URL_RE.test(url)) return url;
|
|
186
|
-
if (PASSTHROUGH_SCHEME_RE.test(url)) return url;
|
|
187
|
-
if (PROTOCOL_RELATIVE_RE.test(url)) return null;
|
|
188
|
-
if (OTHER_SCHEME_RE.test(url)) return null;
|
|
189
|
-
const origin = resolveSiteOrigin(configuredSiteUrl, page);
|
|
190
|
-
if (!origin) return url;
|
|
191
|
-
const safePath = url.startsWith("/") ? url : `/${url}`;
|
|
192
|
-
return `${origin.replace(TRAILING_SLASH_RE, "")}${safePath}`;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
154
|
//#endregion
|
|
196
155
|
//#region src/page/site-identity.ts
|
|
197
156
|
function renderSiteIdentity(input) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as encodeCursor, r as decodeCursor } from "./types-
|
|
2
|
-
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-
|
|
1
|
+
import { i as encodeCursor, r as decodeCursor } from "./types-C9F2TLQV.mjs";
|
|
2
|
+
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-B-1_U3oF.mjs";
|
|
3
3
|
import { ulid } from "ulidx";
|
|
4
4
|
|
|
5
5
|
//#region src/database/repositories/user.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as FieldType } from "./types-
|
|
2
|
-
import { t as Database } from "./types-
|
|
3
|
-
import { d as Storage } from "./types-
|
|
1
|
+
import { d as FieldType } from "./types-B2kbOwSj.mjs";
|
|
2
|
+
import { t as Database } from "./types-C8cUW9dh.mjs";
|
|
3
|
+
import { d as Storage } from "./types-Gd4kXLsa.mjs";
|
|
4
4
|
import { Kysely } from "kysely";
|
|
5
5
|
|
|
6
6
|
//#region src/settings/types.d.ts
|
|
@@ -109,6 +109,8 @@ interface SeedCollection {
|
|
|
109
109
|
icon?: string;
|
|
110
110
|
supports?: ("drafts" | "revisions" | "preview" | "scheduling" | "search" | "seo")[];
|
|
111
111
|
urlPattern?: string;
|
|
112
|
+
/** Field containing the complete public path, including any locale prefix. */
|
|
113
|
+
urlField?: string;
|
|
112
114
|
/** Enable comments on this collection */
|
|
113
115
|
commentsEnabled?: boolean;
|
|
114
116
|
fields: SeedField[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
1
|
+
import { a as __exportAll } from "./runner-BWZ87FK-.mjs";
|
|
2
2
|
import { n as FIELD_TYPES } from "./types-B7TDDFMG.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/seed/validate.ts
|
|
@@ -66,6 +66,14 @@ function validateSeed(data) {
|
|
|
66
66
|
}
|
|
67
67
|
if (!collection.label) errors.push(`${prefix}: label is required`);
|
|
68
68
|
if (collection.urlPattern && !collection.urlPattern.includes("{slug}")) errors.push(`${prefix}.urlPattern: must include a {slug} placeholder`);
|
|
69
|
+
if (collection.urlField) {
|
|
70
|
+
const field = Array.isArray(collection.fields) ? collection.fields.find((candidate) => candidate.slug === collection.urlField) : void 0;
|
|
71
|
+
if (!field || ![
|
|
72
|
+
"string",
|
|
73
|
+
"text",
|
|
74
|
+
"url"
|
|
75
|
+
].includes(field.type)) errors.push(`${prefix}.urlField: must reference an existing string, text or url field`);
|
|
76
|
+
}
|
|
69
77
|
if (!Array.isArray(collection.fields)) errors.push(`${prefix}.fields: must be an array`);
|
|
70
78
|
else {
|
|
71
79
|
const fieldSlugs = /* @__PURE__ */ new Set();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as getDb } from "./loader-
|
|
1
|
+
import { r as getDb } from "./loader-BCr2VSzt.mjs";
|
|
2
2
|
import { r as requestCached } from "./request-cache-CBFjCwSt.mjs";
|
|
3
|
-
import { t as getWidgetComponents$1 } from "./components-
|
|
3
|
+
import { t as getWidgetComponents$1 } from "./components-DGu-rih7.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/widgets/index.ts
|
|
6
6
|
/**
|