emdash 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action-token-SK8zyN7w.mjs +26 -0
- package/dist/action-token-SK8zyN7w.mjs.map +1 -0
- package/dist/activation-Dim4YMM7.mjs +387 -0
- package/dist/activation-Dim4YMM7.mjs.map +1 -0
- package/dist/adapters-F_xorvWv.d.mts +173 -0
- package/dist/adapters-F_xorvWv.d.mts.map +1 -0
- package/dist/allowed-origins-CEug-p0t.mjs +116 -0
- package/dist/allowed-origins-CEug-p0t.mjs.map +1 -0
- package/dist/api/route-utils.d.mts +4 -4
- package/dist/api/route-utils.d.mts.map +1 -1
- package/dist/api/route-utils.mjs +48 -46
- package/dist/api/route-utils.mjs.map +1 -1
- package/dist/api/schemas/index.d.mts +2 -2
- package/dist/api/schemas/index.mjs +10 -10
- package/dist/api-D-7BNHoz.mjs +5025 -0
- package/dist/api-D-7BNHoz.mjs.map +1 -0
- package/dist/api-tokens-Bx38ZCQp.mjs +173 -0
- package/dist/api-tokens-Bx38ZCQp.mjs.map +1 -0
- package/dist/apply-T7ATgzCh.mjs +1702 -0
- package/dist/apply-T7ATgzCh.mjs.map +1 -0
- package/dist/approvals-D-m6wvGl.mjs +460 -0
- package/dist/approvals-D-m6wvGl.mjs.map +1 -0
- package/dist/artifact-fetch-DIh7iyOV.mjs +659 -0
- package/dist/artifact-fetch-DIh7iyOV.mjs.map +1 -0
- package/dist/artifacts-htGyfCSt.mjs +307 -0
- package/dist/artifacts-htGyfCSt.mjs.map +1 -0
- package/dist/astro/image-endpoint.d.mts.map +1 -1
- package/dist/astro/image-endpoint.mjs +26 -6
- package/dist/astro/image-endpoint.mjs.map +1 -1
- package/dist/astro/index.d.mts +14 -14
- package/dist/astro/index.d.mts.map +1 -1
- package/dist/astro/index.mjs +324 -23
- package/dist/astro/index.mjs.map +1 -1
- package/dist/astro/middleware/auth.d.mts +12 -12
- package/dist/astro/middleware/auth.d.mts.map +1 -1
- package/dist/astro/middleware/auth.mjs +18 -13
- package/dist/astro/middleware/auth.mjs.map +1 -1
- package/dist/astro/middleware/media-usage-write-fence.mjs +5 -5
- package/dist/astro/middleware/redirect.d.mts.map +1 -1
- package/dist/astro/middleware/redirect.mjs +81 -46
- package/dist/astro/middleware/redirect.mjs.map +1 -1
- package/dist/astro/middleware/request-context.d.mts.map +1 -1
- package/dist/astro/middleware/request-context.mjs +117 -56
- package/dist/astro/middleware/request-context.mjs.map +1 -1
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.d.mts +12 -12
- package/dist/astro/middleware.d.mts.map +1 -1
- package/dist/astro/middleware.mjs +145 -415
- package/dist/astro/middleware.mjs.map +1 -1
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +14 -14
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +14 -14
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +7 -6
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +8 -7
- package/dist/astro/routes/api/admin/api-tokens/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +6 -6
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +16 -16
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +16 -16
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +16 -16
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +22 -21
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +22 -21
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs.map +1 -1
- package/dist/astro/routes/api/admin/bylines/index.mjs +22 -21
- package/dist/astro/routes/api/admin/bylines/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +18 -18
- package/dist/astro/routes/api/admin/comments/_id_.mjs +7 -7
- package/dist/astro/routes/api/admin/comments/bulk.mjs +17 -17
- package/dist/astro/routes/api/admin/comments/counts.mjs +7 -7
- package/dist/astro/routes/api/admin/comments/index.mjs +17 -17
- package/dist/astro/routes/api/admin/core-update.mjs +7 -7
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +6 -6
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +5 -5
- package/dist/astro/routes/api/admin/media-usage/activation.mjs +20 -20
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/index.mjs +21 -21
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/retry.mjs +21 -21
- package/dist/astro/routes/api/admin/media-usage/progress.mjs +23 -22
- package/dist/astro/routes/api/admin/media-usage/progress.mjs.map +1 -1
- package/dist/astro/routes/api/admin/media-usage/repair.mjs +29 -28
- package/dist/astro/routes/api/admin/media-usage/repair.mjs.map +1 -1
- package/dist/astro/routes/api/admin/media-usage/work/index.mjs +21 -21
- package/dist/astro/routes/api/admin/media-usage/work/retry.mjs +21 -21
- 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 +8 -8
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +8 -8
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +72 -70
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/mcp.mjs +7 -7
- package/dist/astro/routes/api/admin/plugins/_id_/settings.mjs +71 -69
- package/dist/astro/routes/api/admin/plugins/_id_/settings.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +71 -70
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +80 -79
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/index.mjs +72 -70
- package/dist/astro/routes/api/admin/plugins/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +7 -7
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +71 -69
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +79 -78
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +71 -69
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs +71 -70
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs +81 -80
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs +10 -10
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs +73 -72
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/publisher-handle.mjs +7 -7
- package/dist/astro/routes/api/admin/plugins/registry/verify.mjs +72 -70
- package/dist/astro/routes/api/admin/plugins/registry/verify.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/updates.mjs +71 -69
- package/dist/astro/routes/api/admin/plugins/updates.mjs.map +1 -1
- package/dist/astro/routes/api/admin/scheduled-policy-rejections/_collection_/_id_.mjs +5 -5
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +71 -69
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +7 -7
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +71 -69
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/_...path_.mjs +4 -4
- package/dist/astro/routes/api/admin/transfer/approvals/_id_/approve.mjs +38 -37
- package/dist/astro/routes/api/admin/transfer/approvals/_id_/approve.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/approvals/_id_/deny.mjs +38 -37
- package/dist/astro/routes/api/admin/transfer/approvals/_id_/deny.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/approvals/index.mjs +40 -39
- package/dist/astro/routes/api/admin/transfer/approvals/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/capabilities.mjs +40 -39
- package/dist/astro/routes/api/admin/transfer/capabilities.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/exports/_id_/advance.mjs +40 -39
- package/dist/astro/routes/api/admin/transfer/exports/_id_/advance.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/exports/_id_/archive.mjs +41 -40
- package/dist/astro/routes/api/admin/transfer/exports/_id_/archive.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/exports/_id_/files/_...path_.mjs +41 -40
- package/dist/astro/routes/api/admin/transfer/exports/_id_/files/_...path_.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/exports/_id_/index.mjs +40 -39
- package/dist/astro/routes/api/admin/transfer/exports/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/exports/_id_/manifest.mjs +41 -40
- package/dist/astro/routes/api/admin/transfer/exports/_id_/manifest.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/exports/index.mjs +42 -41
- package/dist/astro/routes/api/admin/transfer/exports/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/abandon.mjs +40 -39
- package/dist/astro/routes/api/admin/transfer/imports/_id_/abandon.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/advance.mjs +40 -39
- package/dist/astro/routes/api/admin/transfer/imports/_id_/advance.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/analyze.mjs +42 -41
- package/dist/astro/routes/api/admin/transfer/imports/_id_/analyze.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/cancel.mjs +40 -39
- package/dist/astro/routes/api/admin/transfer/imports/_id_/cancel.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/execute.mjs +42 -41
- package/dist/astro/routes/api/admin/transfer/imports/_id_/execute.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/files/_...path_.mjs +40 -39
- package/dist/astro/routes/api/admin/transfer/imports/_id_/files/_...path_.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/index.mjs +40 -39
- package/dist/astro/routes/api/admin/transfer/imports/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/missing.mjs +42 -41
- package/dist/astro/routes/api/admin/transfer/imports/_id_/missing.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/plan.mjs +40 -39
- package/dist/astro/routes/api/admin/transfer/imports/_id_/plan.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/receipt.mjs +40 -39
- package/dist/astro/routes/api/admin/transfer/imports/_id_/receipt.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/index.mjs +42 -41
- package/dist/astro/routes/api/admin/transfer/imports/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +4 -4
- package/dist/astro/routes/api/admin/users/_id_/enable.mjs +4 -4
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +14 -14
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +6 -6
- package/dist/astro/routes/api/admin/users/index.mjs +14 -14
- package/dist/astro/routes/api/auth/dev-bypass.mjs +6 -6
- package/dist/astro/routes/api/auth/handover.d.mts +8 -0
- package/dist/astro/routes/api/auth/handover.d.mts.map +1 -0
- package/dist/astro/routes/api/auth/handover.mjs +49 -0
- package/dist/astro/routes/api/auth/handover.mjs.map +1 -0
- package/dist/astro/routes/api/auth/invite/accept.mjs +4 -4
- package/dist/astro/routes/api/auth/invite/complete.mjs +19 -19
- package/dist/astro/routes/api/auth/invite/index.mjs +16 -16
- package/dist/astro/routes/api/auth/invite/register-options.mjs +17 -17
- package/dist/astro/routes/api/auth/logout.mjs +5 -5
- package/dist/astro/routes/api/auth/magic-link/send.mjs +19 -18
- package/dist/astro/routes/api/auth/magic-link/send.mjs.map +1 -1
- package/dist/astro/routes/api/auth/magic-link/verify.d.mts.map +1 -1
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +23 -17
- package/dist/astro/routes/api/auth/magic-link/verify.mjs.map +1 -1
- package/dist/astro/routes/api/auth/me.mjs +15 -15
- package/dist/astro/routes/api/auth/mode.mjs +5 -5
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +8 -8
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +14 -14
- package/dist/astro/routes/api/auth/passkey/index.mjs +4 -4
- package/dist/astro/routes/api/auth/passkey/options.d.mts.map +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +27 -20
- package/dist/astro/routes/api/auth/passkey/options.mjs.map +1 -1
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +17 -17
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +18 -18
- package/dist/astro/routes/api/auth/passkey/verify.mjs +19 -19
- package/dist/astro/routes/api/auth/signup/complete.mjs +19 -19
- package/dist/astro/routes/api/auth/signup/request.mjs +18 -17
- package/dist/astro/routes/api/auth/signup/request.mjs.map +1 -1
- package/dist/astro/routes/api/auth/signup/verify.mjs +4 -4
- package/dist/astro/routes/api/calendar.mjs +15 -15
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +12 -12
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +18 -18
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.d.mts.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +18 -17
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +7 -10
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/lock.mjs +20 -17
- package/dist/astro/routes/api/content/_collection_/_id_/lock.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.d.mts.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +7 -6
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/plugin-extensions/_pluginId_/_kind_/_extensionId_.mjs +11 -11
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +30 -29
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/publish.d.mts.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +18 -17
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/children.mjs +35 -34
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/children.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/parents.mjs +35 -34
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/parents.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/restore.d.mts.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +7 -6
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.d.mts.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +19 -18
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.d.mts.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +31 -26
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.d.mts.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +18 -17
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_.d.mts.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +27 -20
- package/dist/astro/routes/api/content/_collection_/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/authors.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/index.mjs +18 -21
- package/dist/astro/routes/api/content/_collection_/index.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/trash.mjs +15 -15
- package/dist/astro/routes/api/dashboard.d.mts.map +1 -1
- package/dist/astro/routes/api/dashboard.mjs +18 -12
- package/dist/astro/routes/api/dashboard.mjs.map +1 -1
- package/dist/astro/routes/api/dev/emails.mjs +5 -5
- package/dist/astro/routes/api/dev/scheduled-tasks.d.mts +12 -0
- package/dist/astro/routes/api/dev/scheduled-tasks.d.mts.map +1 -0
- package/dist/astro/routes/api/dev/scheduled-tasks.mjs +140 -0
- package/dist/astro/routes/api/dev/scheduled-tasks.mjs.map +1 -0
- package/dist/astro/routes/api/health.mjs +6 -6
- package/dist/astro/routes/api/import/probe.d.mts +3 -3
- package/dist/astro/routes/api/import/probe.mjs +25 -23
- package/dist/astro/routes/api/import/probe.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/analyze.d.mts.map +1 -1
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +7 -20
- package/dist/astro/routes/api/import/wordpress/analyze.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +15 -14
- package/dist/astro/routes/api/import/wordpress/execute.d.mts.map +1 -1
- package/dist/astro/routes/api/import/wordpress/execute.mjs +36 -30
- package/dist/astro/routes/api/import/wordpress/execute.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/media.d.mts +12 -12
- package/dist/astro/routes/api/import/wordpress/media.mjs +17 -17
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +19 -17
- package/dist/astro/routes/api/import/wordpress/prepare.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.d.mts +8 -0
- package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.d.mts.map +1 -1
- package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.mjs +67 -31
- package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +13 -13
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +27 -26
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +26 -23
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +13 -13
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts.map +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +63 -35
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs.map +1 -1
- package/dist/astro/routes/api/manifest.mjs +9 -6
- package/dist/astro/routes/api/manifest.mjs.map +1 -1
- package/dist/astro/routes/api/mcp.mjs +135 -101
- package/dist/astro/routes/api/mcp.mjs.map +1 -1
- package/dist/astro/routes/api/media/_id_/confirm.d.mts.map +1 -1
- package/dist/astro/routes/api/media/_id_/confirm.mjs +34 -18
- package/dist/astro/routes/api/media/_id_/confirm.mjs.map +1 -1
- package/dist/astro/routes/api/media/_id_/replace.mjs +15 -15
- package/dist/astro/routes/api/media/_id_/upload.mjs +8 -8
- package/dist/astro/routes/api/media/_id_/usage.mjs +31 -30
- package/dist/astro/routes/api/media/_id_/usage.mjs.map +1 -1
- package/dist/astro/routes/api/media/_id_.mjs +29 -28
- package/dist/astro/routes/api/media/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/media/asset/_id_/_filename_.mjs +6 -6
- package/dist/astro/routes/api/media/file/_...key_.d.mts.map +1 -1
- package/dist/astro/routes/api/media/file/_...key_.mjs +45 -15
- package/dist/astro/routes/api/media/file/_...key_.mjs.map +1 -1
- package/dist/astro/routes/api/media/folders/_id_.mjs +16 -16
- package/dist/astro/routes/api/media/folders/index.mjs +16 -16
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +5 -5
- package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +5 -5
- package/dist/astro/routes/api/media/providers/index.mjs +5 -5
- package/dist/astro/routes/api/media/upload-url.mjs +40 -20
- package/dist/astro/routes/api/media/upload-url.mjs.map +1 -1
- package/dist/astro/routes/api/media.d.mts.map +1 -1
- package/dist/astro/routes/api/media.mjs +40 -29
- package/dist/astro/routes/api/media.mjs.map +1 -1
- package/dist/astro/routes/api/menus/_name_/items/_id_.d.mts.map +1 -1
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +19 -18
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/menus/_name_/items.d.mts.map +1 -1
- package/dist/astro/routes/api/menus/_name_/items.mjs +18 -17
- package/dist/astro/routes/api/menus/_name_/items.mjs.map +1 -1
- package/dist/astro/routes/api/menus/_name_/reorder.d.mts.map +1 -1
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +18 -17
- package/dist/astro/routes/api/menus/_name_/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/menus/_name_/translations.d.mts.map +1 -1
- package/dist/astro/routes/api/menus/_name_/translations.mjs +18 -17
- package/dist/astro/routes/api/menus/_name_/translations.mjs.map +1 -1
- package/dist/astro/routes/api/menus/_name_.d.mts.map +1 -1
- package/dist/astro/routes/api/menus/_name_.mjs +19 -18
- package/dist/astro/routes/api/menus/_name_.mjs.map +1 -1
- package/dist/astro/routes/api/menus/index.d.mts.map +1 -1
- package/dist/astro/routes/api/menus/index.mjs +18 -17
- package/dist/astro/routes/api/menus/index.mjs.map +1 -1
- package/dist/astro/routes/api/oauth/authorize.mjs +6 -6
- package/dist/astro/routes/api/oauth/device/authorize.mjs +8 -8
- package/dist/astro/routes/api/oauth/device/code.mjs +12 -11
- package/dist/astro/routes/api/oauth/device/code.mjs.map +1 -1
- package/dist/astro/routes/api/oauth/device/token.mjs +11 -10
- package/dist/astro/routes/api/oauth/device/token.mjs.map +1 -1
- package/dist/astro/routes/api/oauth/register.mjs +8 -7
- package/dist/astro/routes/api/oauth/register.mjs.map +1 -1
- package/dist/astro/routes/api/oauth/token/refresh.mjs +8 -8
- package/dist/astro/routes/api/oauth/token/revoke.mjs +8 -8
- package/dist/astro/routes/api/oauth/token.mjs +8 -8
- package/dist/astro/routes/api/openapi.json.mjs +22 -22
- package/dist/astro/routes/api/openapi.json.mjs.map +1 -1
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +11 -11
- package/dist/astro/routes/api/redirects/404s/index.mjs +19 -19
- package/dist/astro/routes/api/redirects/404s/summary.mjs +19 -19
- package/dist/astro/routes/api/redirects/_id_.d.mts.map +1 -1
- package/dist/astro/routes/api/redirects/_id_.mjs +32 -23
- package/dist/astro/routes/api/redirects/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/redirects/index.d.mts.map +1 -1
- package/dist/astro/routes/api/redirects/index.mjs +24 -21
- package/dist/astro/routes/api/redirects/index.mjs.map +1 -1
- package/dist/astro/routes/api/relations/_id_/index.mjs +35 -34
- package/dist/astro/routes/api/relations/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/relations/index.mjs +35 -34
- package/dist/astro/routes/api/relations/index.mjs.map +1 -1
- package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +5 -5
- package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +16 -16
- package/dist/astro/routes/api/schema/block-types/_slug_/index.mjs +71 -69
- package/dist/astro/routes/api/schema/block-types/_slug_/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/block-types/_slug_/versions/_version_/activate.mjs +71 -69
- package/dist/astro/routes/api/schema/block-types/_slug_/versions/_version_/activate.mjs.map +1 -1
- package/dist/astro/routes/api/schema/block-types/index.mjs +71 -69
- package/dist/astro/routes/api/schema/block-types/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +71 -69
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +71 -69
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +71 -69
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +71 -69
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/index.mjs +71 -69
- package/dist/astro/routes/api/schema/collections/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/reorder.mjs +71 -69
- package/dist/astro/routes/api/schema/collections/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/schema/index.mjs +17 -16
- package/dist/astro/routes/api/schema/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +71 -69
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/schema/orphans/index.mjs +71 -69
- package/dist/astro/routes/api/schema/orphans/index.mjs.map +1 -1
- package/dist/astro/routes/api/search/enable.mjs +19 -18
- package/dist/astro/routes/api/search/enable.mjs.map +1 -1
- package/dist/astro/routes/api/search/index.mjs +18 -17
- package/dist/astro/routes/api/search/index.mjs.map +1 -1
- package/dist/astro/routes/api/search/rebuild.mjs +19 -18
- package/dist/astro/routes/api/search/rebuild.mjs.map +1 -1
- package/dist/astro/routes/api/search/stats.mjs +9 -8
- package/dist/astro/routes/api/search/stats.mjs.map +1 -1
- package/dist/astro/routes/api/search/suggest.mjs +18 -17
- package/dist/astro/routes/api/search/suggest.mjs.map +1 -1
- package/dist/astro/routes/api/sections/_slug_.mjs +18 -17
- package/dist/astro/routes/api/sections/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/sections/index.mjs +18 -17
- package/dist/astro/routes/api/sections/index.mjs.map +1 -1
- package/dist/astro/routes/api/settings/backups/archives/_name_.mjs +7 -7
- package/dist/astro/routes/api/settings/backups/archives/index.mjs +7 -7
- package/dist/astro/routes/api/settings/backups/export.mjs +7 -7
- package/dist/astro/routes/api/settings/backups/index.mjs +8 -8
- package/dist/astro/routes/api/settings/domain-notify.d.mts +8 -0
- package/dist/astro/routes/api/settings/domain-notify.d.mts.map +1 -0
- package/dist/astro/routes/api/settings/domain-notify.mjs +125 -0
- package/dist/astro/routes/api/settings/domain-notify.mjs.map +1 -0
- package/dist/astro/routes/api/settings/domain.d.mts +9 -0
- package/dist/astro/routes/api/settings/domain.d.mts.map +1 -0
- package/dist/astro/routes/api/settings/domain.mjs +64 -0
- package/dist/astro/routes/api/settings/domain.mjs.map +1 -0
- package/dist/astro/routes/api/settings/email.mjs +6 -6
- package/dist/astro/routes/api/settings.d.mts.map +1 -1
- package/dist/astro/routes/api/settings.mjs +23 -20
- package/dist/astro/routes/api/settings.mjs.map +1 -1
- package/dist/astro/routes/api/setup/admin-verify.d.mts.map +1 -1
- package/dist/astro/routes/api/setup/admin-verify.mjs +25 -21
- package/dist/astro/routes/api/setup/admin-verify.mjs.map +1 -1
- package/dist/astro/routes/api/setup/admin.mjs +18 -18
- package/dist/astro/routes/api/setup/dev-bypass.mjs +43 -41
- package/dist/astro/routes/api/setup/dev-bypass.mjs.map +1 -1
- package/dist/astro/routes/api/setup/dev-reset.mjs +4 -4
- package/dist/astro/routes/api/setup/index.d.mts.map +1 -1
- package/dist/astro/routes/api/setup/index.mjs +53 -47
- package/dist/astro/routes/api/setup/index.mjs.map +1 -1
- package/dist/astro/routes/api/setup/status.mjs +6 -6
- package/dist/astro/routes/api/site/domain-proof.d.mts +8 -0
- package/dist/astro/routes/api/site/domain-proof.d.mts.map +1 -0
- package/dist/astro/routes/api/site/domain-proof.mjs +35 -0
- package/dist/astro/routes/api/site/domain-proof.mjs.map +1 -0
- package/dist/astro/routes/api/snapshot.mjs +8 -8
- package/dist/astro/routes/api/taxonomies/_name_/reorder.d.mts.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/reorder.mjs +24 -22
- package/dist/astro/routes/api/taxonomies/_name_/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.d.mts.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +24 -22
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.d.mts.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +25 -23
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.d.mts.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +24 -22
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/translations.mjs +22 -21
- package/dist/astro/routes/api/taxonomies/_name_/translations.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_.d.mts.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_.mjs +25 -23
- package/dist/astro/routes/api/taxonomies/_name_.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/bulk-tag.mjs +35 -34
- package/dist/astro/routes/api/taxonomies/bulk-tag.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/index.d.mts.map +1 -1
- package/dist/astro/routes/api/taxonomies/index.mjs +24 -22
- package/dist/astro/routes/api/taxonomies/index.mjs.map +1 -1
- package/dist/astro/routes/api/themes/preview.mjs +6 -6
- package/dist/astro/routes/api/typegen.mjs +6 -6
- package/dist/astro/routes/api/visual-editing/action-token.mjs +6 -6
- package/dist/astro/routes/api/visual-editing/content/_collection_/_id_/publish.mjs +18 -18
- package/dist/astro/routes/api/visual-editing/toolbar-labels.mjs +4 -4
- package/dist/astro/routes/api/well-known/auth.mjs +1 -1
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +2 -2
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +2 -2
- package/dist/astro/routes/api/widget-areas/_name_/reorder.d.mts.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +17 -16
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.d.mts.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +21 -19
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/widgets.d.mts.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +20 -18
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_.d.mts.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_.mjs +10 -8
- package/dist/astro/routes/api/widget-areas/_name_.mjs.map +1 -1
- package/dist/astro/routes/api/widget-areas/index.d.mts.map +1 -1
- package/dist/astro/routes/api/widget-areas/index.mjs +20 -18
- package/dist/astro/routes/api/widget-areas/index.mjs.map +1 -1
- package/dist/astro/routes/api/widget-components.mjs +5 -5
- package/dist/astro/routes/robots.txt.d.mts.map +1 -1
- package/dist/astro/routes/robots.txt.mjs +38 -5
- package/dist/astro/routes/robots.txt.mjs.map +1 -1
- package/dist/astro/routes/sitemap-_collection_.xml.d.mts.map +1 -1
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +33 -11
- package/dist/astro/routes/sitemap-_collection_.xml.mjs.map +1 -1
- package/dist/astro/routes/sitemap.xml.d.mts.map +1 -1
- package/dist/astro/routes/sitemap.xml.mjs +17 -11
- package/dist/astro/routes/sitemap.xml.mjs.map +1 -1
- package/dist/astro/types.d.mts +32 -18
- package/dist/astro/types.d.mts.map +1 -1
- package/dist/audit-_gieLVGU.mjs +127 -0
- package/dist/audit-_gieLVGU.mjs.map +1 -0
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/auth/providers/microsoft.d.mts +1 -1
- package/dist/authoritative-records-CQlB3JzE.mjs +5183 -0
- package/dist/authoritative-records-CQlB3JzE.mjs.map +1 -0
- package/dist/authorize-DPFBGbE6.mjs +74 -0
- package/dist/authorize-DPFBGbE6.mjs.map +1 -0
- package/dist/backup-3FgVxiDJ.mjs +246 -0
- package/dist/backup-3FgVxiDJ.mjs.map +1 -0
- package/dist/block-types-CYcG56JB.mjs +132 -0
- package/dist/block-types-CYcG56JB.mjs.map +1 -0
- package/dist/block-values-gCX4HBSl.mjs +215 -0
- package/dist/block-values-gCX4HBSl.mjs.map +1 -0
- package/dist/byline-BR1qhyiw.mjs +909 -0
- package/dist/byline-BR1qhyiw.mjs.map +1 -0
- package/dist/byline-fields-4ClDC88c.mjs +123 -0
- package/dist/byline-fields-4ClDC88c.mjs.map +1 -0
- package/dist/byline-fields-BLXZnX7N.mjs +280 -0
- package/dist/byline-fields-BLXZnX7N.mjs.map +1 -0
- package/dist/bylines-CVOvRUL7.mjs +234 -0
- package/dist/bylines-CVOvRUL7.mjs.map +1 -0
- package/dist/bylines-DxOs9B7z.mjs +150 -0
- package/dist/bylines-DxOs9B7z.mjs.map +1 -0
- package/dist/cache-CEU9wo_h.mjs +151 -0
- package/dist/cache-CEU9wo_h.mjs.map +1 -0
- package/dist/canonical-BudtH-Fx.mjs +174 -0
- package/dist/canonical-BudtH-Fx.mjs.map +1 -0
- package/dist/capture-triggers-CT6dK9zd.mjs +362 -0
- package/dist/capture-triggers-CT6dK9zd.mjs.map +1 -0
- package/dist/challenge-store-C17BYx2-.mjs +51 -0
- package/dist/challenge-store-C17BYx2-.mjs.map +1 -0
- package/dist/checksum-CEqvfxGX.mjs +162 -0
- package/dist/checksum-CEqvfxGX.mjs.map +1 -0
- package/dist/chunks-xC4UD5-S.mjs +25 -0
- package/dist/chunks-xC4UD5-S.mjs.map +1 -0
- package/dist/cli/index.mjs +134 -118
- package/dist/cli/index.mjs.map +1 -1
- package/dist/client/cf-access.d.mts +1 -1
- package/dist/client/index.d.mts +122 -122
- package/dist/client/index.d.mts.map +1 -1
- package/dist/client/index.mjs +12 -10
- package/dist/client/index.mjs.map +1 -1
- package/dist/collection-slugs-cache-e09QeJQt.mjs +85 -0
- package/dist/collection-slugs-cache-e09QeJQt.mjs.map +1 -0
- package/dist/comment-UvIWDKcW.mjs +325 -0
- package/dist/comment-UvIWDKcW.mjs.map +1 -0
- package/dist/comment-reaction-dGp6_FRo.mjs +85 -0
- package/dist/comment-reaction-dGp6_FRo.mjs.map +1 -0
- package/dist/comments-pej-_BUO.mjs +195 -0
- package/dist/comments-pej-_BUO.mjs.map +1 -0
- package/dist/comments-yiRFx3w5.mjs +99 -0
- package/dist/comments-yiRFx3w5.mjs.map +1 -0
- package/dist/components-Brp__9xo.mjs +112 -0
- package/dist/components-Brp__9xo.mjs.map +1 -0
- package/dist/config-Bsm_u_oE.d.mts +6799 -0
- package/dist/config-Bsm_u_oE.d.mts.map +1 -0
- package/dist/config-CFMojMFK.d.mts +39 -0
- package/dist/config-CFMojMFK.d.mts.map +1 -0
- package/dist/config-DBU6iUQB.mjs +228 -0
- package/dist/config-DBU6iUQB.mjs.map +1 -0
- package/dist/connection-BtEN_lP9.mjs +36 -0
- package/dist/connection-BtEN_lP9.mjs.map +1 -0
- package/dist/content-DQSRZTVw.mjs +2075 -0
- package/dist/content-DQSRZTVw.mjs.map +1 -0
- package/dist/content-list-query-CYKcY6Vi.d.mts +26 -0
- package/dist/content-list-query-CYKcY6Vi.d.mts.map +1 -0
- package/dist/content-repair-DNh5--x5.mjs +442 -0
- package/dist/content-repair-DNh5--x5.mjs.map +1 -0
- package/dist/context-BYptmCN0.mjs +2090 -0
- package/dist/context-BYptmCN0.mjs.map +1 -0
- package/dist/credits-B9iORdWB.mjs +110 -0
- package/dist/credits-B9iORdWB.mjs.map +1 -0
- package/dist/cron-D7obTIfk.mjs +306 -0
- package/dist/cron-D7obTIfk.mjs.map +1 -0
- package/dist/dashboard-D0jcgBD7.mjs +167 -0
- package/dist/dashboard-D0jcgBD7.mjs.map +1 -0
- package/dist/database/migration-lock.d.mts +17 -4
- package/dist/database/migration-lock.d.mts.map +1 -1
- package/dist/database/migration-lock.mjs +32 -5
- package/dist/database/migration-lock.mjs.map +1 -1
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.mjs +1 -1
- package/dist/db/libsql-migrations.d.mts +1 -1
- package/dist/db/libsql-migrations.mjs +4 -4
- package/dist/db/libsql.d.mts +1 -1
- package/dist/db/postgres-migrations.d.mts +1 -1
- package/dist/db/postgres-migrations.mjs +4 -4
- package/dist/db/postgres.d.mts +1 -1
- package/dist/db/sqlite-migrations.d.mts +1 -1
- package/dist/db/sqlite-migrations.mjs +4 -4
- package/dist/db/sqlite.d.mts +1 -1
- package/dist/db/sqlite.mjs +1 -1
- package/dist/default-C0W-PhAp.mjs +81 -0
- package/dist/default-C0W-PhAp.mjs.map +1 -0
- package/dist/deferred-tasks-ZvUECSzI.d.mts +9 -0
- package/dist/deferred-tasks-ZvUECSzI.d.mts.map +1 -0
- package/dist/dev-typegen-EBni_pOQ.mjs +29 -0
- package/dist/dev-typegen-EBni_pOQ.mjs.map +1 -0
- package/dist/device-flow-BkFKBoAn.mjs +521 -0
- package/dist/device-flow-BkFKBoAn.mjs.map +1 -0
- package/dist/digest-DJ1tHCgy.mjs +194 -0
- package/dist/digest-DJ1tHCgy.mjs.map +1 -0
- package/dist/direct-executor-Cbxzg4qe.mjs +117 -0
- package/dist/direct-executor-Cbxzg4qe.mjs.map +1 -0
- package/dist/email-console-FFVJWb9N.mjs +50 -0
- package/dist/email-console-FFVJWb9N.mjs.map +1 -0
- package/dist/email-locale-BJ8DjTzZ.mjs +25 -0
- package/dist/email-locale-BJ8DjTzZ.mjs.map +1 -0
- package/dist/emdash-runtime-DVi7vtXC.mjs +4379 -0
- package/dist/emdash-runtime-DVi7vtXC.mjs.map +1 -0
- package/dist/entry-lock-C7VX0NGK.d.mts +4568 -0
- package/dist/entry-lock-C7VX0NGK.d.mts.map +1 -0
- package/dist/entry-lock-DLxCffFW.mjs +163 -0
- package/dist/entry-lock-DLxCffFW.mjs.map +1 -0
- package/dist/entry-lock-Df6-XhIu.mjs +1211 -0
- package/dist/entry-lock-Df6-XhIu.mjs.map +1 -0
- package/dist/env-types-C3FCVBWe.mjs +38 -0
- package/dist/env-types-C3FCVBWe.mjs.map +1 -0
- package/dist/error-CVWeIOku.mjs +90 -0
- package/dist/error-CVWeIOku.mjs.map +1 -0
- package/dist/errors-B4f4It-2.mjs +120 -0
- package/dist/errors-B4f4It-2.mjs.map +1 -0
- package/dist/errors-BOYNdIo3.mjs +479 -0
- package/dist/errors-BOYNdIo3.mjs.map +1 -0
- package/dist/escape-lsNq38PP.mjs +9 -0
- package/dist/escape-lsNq38PP.mjs.map +1 -0
- package/dist/fence-C3MUitUN.mjs +162 -0
- package/dist/fence-C3MUitUN.mjs.map +1 -0
- package/dist/field-defs-cache-Dez5iWJJ.mjs +77 -0
- package/dist/field-defs-cache-Dez5iWJJ.mjs.map +1 -0
- package/dist/field-map-Bft9LKak.mjs +83 -0
- package/dist/field-map-Bft9LKak.mjs.map +1 -0
- package/dist/fts-manager-Beg3e4bI.mjs +443 -0
- package/dist/fts-manager-Beg3e4bI.mjs.map +1 -0
- package/dist/gc-ByyAYiYE.mjs +75 -0
- package/dist/gc-ByyAYiYE.mjs.map +1 -0
- package/dist/hash-BJaeek87.mjs +37 -0
- package/dist/hash-BJaeek87.mjs.map +1 -0
- package/dist/hook-result-BrdLyOdI.d.mts +31 -0
- package/dist/hook-result-BrdLyOdI.d.mts.map +1 -0
- package/dist/hreflang-C8Jb-hrf.mjs +105 -0
- package/dist/hreflang-C8Jb-hrf.mjs.map +1 -0
- package/dist/hreflang-CY_F5OjF.d.mts +50 -0
- package/dist/hreflang-CY_F5OjF.d.mts.map +1 -0
- package/dist/http-route-dispatch-CyeW6iPv.mjs +342 -0
- package/dist/http-route-dispatch-CyeW6iPv.mjs.map +1 -0
- package/dist/identity-Cael5uTT.mjs +35 -0
- package/dist/identity-Cael5uTT.mjs.map +1 -0
- package/dist/import-BUXjdZUn.mjs +2126 -0
- package/dist/import-BUXjdZUn.mjs.map +1 -0
- package/dist/index-BB9sVisO.d.mts +623 -0
- package/dist/index-BB9sVisO.d.mts.map +1 -0
- package/dist/index.d.mts +24 -24
- package/dist/index.mjs +97 -95
- package/dist/install-finalization-3JX5qQEA.mjs +58 -0
- package/dist/install-finalization-3JX5qQEA.mjs.map +1 -0
- package/dist/json-recordset-BUjxhr77.mjs +12 -0
- package/dist/json-recordset-BUjxhr77.mjs.map +1 -0
- package/dist/json-schema-v_D_pPNG.mjs +15 -0
- package/dist/json-schema-v_D_pPNG.mjs.map +1 -0
- package/dist/keys-CifIkT0N.mjs +61 -0
- package/dist/keys-CifIkT0N.mjs.map +1 -0
- package/dist/kinds-B_Qcl5pz.mjs +974 -0
- package/dist/kinds-B_Qcl5pz.mjs.map +1 -0
- package/dist/lifecycle-7vUJeFRe.mjs +25 -0
- package/dist/lifecycle-7vUJeFRe.mjs.map +1 -0
- package/dist/load-CdAG9wz-.mjs +28 -0
- package/dist/load-CdAG9wz-.mjs.map +1 -0
- package/dist/loader-CswroUbe.mjs +1380 -0
- package/dist/loader-CswroUbe.mjs.map +1 -0
- package/dist/loops-uA4iTOzd.mjs +205 -0
- package/dist/loops-uA4iTOzd.mjs.map +1 -0
- package/dist/manifest-builder-B8zjuH3f.mjs +189 -0
- package/dist/manifest-builder-B8zjuH3f.mjs.map +1 -0
- package/dist/manifest-schema-DNb4XmTS.mjs +497 -0
- package/dist/manifest-schema-DNb4XmTS.mjs.map +1 -0
- package/dist/marketplace-CqbgeIa7.mjs +257 -0
- package/dist/marketplace-CqbgeIa7.mjs.map +1 -0
- package/dist/media/image-endpoint.d.mts +26 -2
- package/dist/media/image-endpoint.d.mts.map +1 -1
- package/dist/media/image-endpoint.mjs +73 -3
- package/dist/media/image-endpoint.mjs.map +1 -1
- package/dist/media/index.d.mts +1 -1
- package/dist/media/local-runtime.d.mts +14 -14
- package/dist/media/local-runtime.mjs +10 -5
- package/dist/media/local-runtime.mjs.map +1 -1
- package/dist/media--dJRU6i2.mjs +294 -0
- package/dist/media--dJRU6i2.mjs.map +1 -0
- package/dist/media-1WC65OCB.mjs +416 -0
- package/dist/media-1WC65OCB.mjs.map +1 -0
- package/dist/media-Bws9f18T.mjs +373 -0
- package/dist/media-Bws9f18T.mjs.map +1 -0
- package/dist/media-allowlist-BJB7MFx6.mjs +45 -0
- package/dist/media-allowlist-BJB7MFx6.mjs.map +1 -0
- package/dist/media-folders-Dn3C16B8.mjs +210 -0
- package/dist/media-folders-Dn3C16B8.mjs.map +1 -0
- package/dist/media-url-BQgKvpQ5.mjs +43 -0
- package/dist/media-url-BQgKvpQ5.mjs.map +1 -0
- package/dist/media-usage-CF0WVcLO.mjs +282 -0
- package/dist/media-usage-CF0WVcLO.mjs.map +1 -0
- package/dist/media-usage-activation-C9HwVw5w.mjs +78 -0
- package/dist/media-usage-activation-C9HwVw5w.mjs.map +1 -0
- package/dist/media-usage-work-CkLa5-nc.mjs +1036 -0
- package/dist/media-usage-work-CkLa5-nc.mjs.map +1 -0
- package/dist/media-usage-work-m3AWTmmC.mjs +151 -0
- package/dist/media-usage-work-m3AWTmmC.mjs.map +1 -0
- package/dist/menus-BCVSSp1z.mjs +753 -0
- package/dist/menus-BCVSSp1z.mjs.map +1 -0
- package/dist/menus-BSzwObhV.mjs +92 -0
- package/dist/menus-BSzwObhV.mjs.map +1 -0
- package/dist/menus-Cl4kwdt7.mjs +3721 -0
- package/dist/menus-Cl4kwdt7.mjs.map +1 -0
- package/dist/migrations/index.d.mts +1 -1
- package/dist/migrations/index.d.mts.map +1 -1
- package/dist/migrations/index.mjs +3 -3
- package/dist/mode-C-D3qICy.mjs +23 -0
- package/dist/mode-C-D3qICy.mjs.map +1 -0
- package/dist/node-sqlite-compat-CrKzRr0J.mjs +63 -0
- package/dist/node-sqlite-compat-CrKzRr0J.mjs.map +1 -0
- package/dist/oauth-authorization-TpEJrYB7.mjs +274 -0
- package/dist/oauth-authorization-TpEJrYB7.mjs.map +1 -0
- package/dist/oauth-clients-BT0Pg-MO.mjs +266 -0
- package/dist/oauth-clients-BT0Pg-MO.mjs.map +1 -0
- package/dist/oauth-state-store-CHMn_mwc.mjs +50 -0
- package/dist/oauth-state-store-CHMn_mwc.mjs.map +1 -0
- package/dist/oauth-user-lookup-BDgF6IVG.mjs +26 -0
- package/dist/oauth-user-lookup-BDgF6IVG.mjs.map +1 -0
- package/dist/object-cache/memory.d.mts +1 -1
- package/dist/options-DJWaq3Ie.d.mts +81 -0
- package/dist/options-DJWaq3Ie.d.mts.map +1 -0
- package/dist/ownership-MiyA7qKO.mjs +12 -0
- package/dist/ownership-MiyA7qKO.mjs.map +1 -0
- package/dist/page/index.d.mts +2 -2
- package/dist/page/index.mjs +9 -4
- package/dist/page/index.mjs.map +1 -1
- package/dist/parse-CWHOFc6z.d.mts +176 -0
- package/dist/parse-CWHOFc6z.d.mts.map +1 -0
- package/dist/parse-DgQ2NABT.mjs +81 -0
- package/dist/parse-DgQ2NABT.mjs.map +1 -0
- package/dist/passkey-config-D0kdzEao.mjs +46 -0
- package/dist/passkey-config-D0kdzEao.mjs.map +1 -0
- package/dist/paths-biDzFTY2.mjs +77 -0
- package/dist/paths-biDzFTY2.mjs.map +1 -0
- package/dist/patterns-CMNnYCgf.mjs +159 -0
- package/dist/patterns-CMNnYCgf.mjs.map +1 -0
- package/dist/placeholder-D41vk11_.d.mts +306 -0
- package/dist/placeholder-D41vk11_.d.mts.map +1 -0
- package/dist/plan-CCoqxNoU.mjs +135 -0
- package/dist/plan-CCoqxNoU.mjs.map +1 -0
- package/dist/plugin-test-runtime.d.mts +14 -14
- package/dist/plugin-test-runtime.d.mts.map +1 -1
- package/dist/plugin-test-runtime.mjs +110 -108
- package/dist/plugin-tool-name-DDUgN_0p.mjs +27 -0
- package/dist/plugin-tool-name-DDUgN_0p.mjs.map +1 -0
- package/dist/plugin-types.d.mts +2 -2
- package/dist/plugin-utils.d.mts +12 -12
- package/dist/plugin-utils.mjs +1 -1
- package/dist/plugin-utils.mjs.map +1 -1
- package/dist/plugins/adapt-sandbox-entry.d.mts +12 -12
- package/dist/plugins/adapt-sandbox-entry.d.mts.map +1 -1
- package/dist/plugins/adapt-sandbox-entry.mjs +9 -8
- package/dist/plugins/adapt-sandbox-entry.mjs.map +1 -1
- package/dist/plugins/host.d.mts +5 -5
- package/dist/plugins/host.mjs +46 -42
- package/dist/plugins-COJ2L49n.mjs +261 -0
- package/dist/plugins-COJ2L49n.mjs.map +1 -0
- package/dist/policy-DLQ--Hnm.mjs +45 -0
- package/dist/policy-DLQ--Hnm.mjs.map +1 -0
- package/dist/portable-text-BH4zgkSm.mjs +311 -0
- package/dist/portable-text-BH4zgkSm.mjs.map +1 -0
- package/dist/preview-DLexxwp3.mjs +107 -0
- package/dist/preview-DLexxwp3.mjs.map +1 -0
- package/dist/protocol-79kUO7jP.d.mts +65 -0
- package/dist/protocol-79kUO7jP.d.mts.map +1 -0
- package/dist/public-plugin-api-routes-BuAMJ8nN.mjs +316 -0
- package/dist/public-plugin-api-routes-BuAMJ8nN.mjs.map +1 -0
- package/dist/public-submission-Di3TsgzX.mjs +251 -0
- package/dist/public-submission-Di3TsgzX.mjs.map +1 -0
- package/dist/public-url-Bt98vysr.mjs +101 -0
- package/dist/public-url-Bt98vysr.mjs.map +1 -0
- package/dist/query-CpnRlBh8.mjs +1156 -0
- package/dist/query-CpnRlBh8.mjs.map +1 -0
- package/dist/query-haKvLAWl.mjs +41 -0
- package/dist/query-haKvLAWl.mjs.map +1 -0
- package/dist/range-CYfeXgGK.mjs +51 -0
- package/dist/range-CYfeXgGK.mjs.map +1 -0
- package/dist/rate-limit-Xp4d0NBY.mjs +127 -0
- package/dist/rate-limit-Xp4d0NBY.mjs.map +1 -0
- package/dist/receipt-BUsQCOeM.mjs +43 -0
- package/dist/receipt-BUsQCOeM.mjs.map +1 -0
- package/dist/redirect-CQAV7mCo.mjs +19 -0
- package/dist/redirect-CQAV7mCo.mjs.map +1 -0
- package/dist/redirect-DiS_3mA4.mjs +423 -0
- package/dist/redirect-DiS_3mA4.mjs.map +1 -0
- package/dist/redirect-paths-CNYq7w80.mjs +36 -0
- package/dist/redirect-paths-CNYq7w80.mjs.map +1 -0
- package/dist/redirects-BEVSRMa2.mjs +148 -0
- package/dist/redirects-BEVSRMa2.mjs.map +1 -0
- package/dist/redirects-BHpy-VsZ.mjs +446 -0
- package/dist/redirects-BHpy-VsZ.mjs.map +1 -0
- package/dist/registry/testing.mjs +3 -3
- package/dist/registry-TUVaid9Z.mjs +8369 -0
- package/dist/registry-TUVaid9Z.mjs.map +1 -0
- package/dist/relations-CA_QuMTU.mjs +776 -0
- package/dist/relations-CA_QuMTU.mjs.map +1 -0
- package/dist/request-context.d.mts +1 -1
- package/dist/request-meta-bwZ_NsvU.mjs +141 -0
- package/dist/request-meta-bwZ_NsvU.mjs.map +1 -0
- package/dist/resolve-DwNM-CXl.mjs +101 -0
- package/dist/resolve-DwNM-CXl.mjs.map +1 -0
- package/dist/revision-BVp8S0e_.mjs +374 -0
- package/dist/revision-BVp8S0e_.mjs.map +1 -0
- package/dist/route-cache-QSOyDEw0.mjs +20 -0
- package/dist/route-cache-QSOyDEw0.mjs.map +1 -0
- package/dist/route-wire-Ca_HWCZ5.mjs +197 -0
- package/dist/route-wire-Ca_HWCZ5.mjs.map +1 -0
- package/dist/routes-BerZFrvV.mjs +272 -0
- package/dist/routes-BerZFrvV.mjs.map +1 -0
- package/dist/runner-BObHz5FC.d.mts +68 -0
- package/dist/runner-BObHz5FC.d.mts.map +1 -0
- package/dist/runner-C5NeAkBQ.mjs +6595 -0
- package/dist/runner-C5NeAkBQ.mjs.map +1 -0
- package/dist/runtime.d.mts +13 -13
- package/dist/runtime.mjs +3 -2
- package/dist/runtime.mjs.map +1 -1
- package/dist/schema/project-env-types.mjs +40 -36
- package/dist/schema/project-env-types.mjs.map +1 -1
- package/dist/schema-C4OBuv6Z.mjs +13 -0
- package/dist/schema-C4OBuv6Z.mjs.map +1 -0
- package/dist/schema-DJRfvM_o.mjs +815 -0
- package/dist/schema-DJRfvM_o.mjs.map +1 -0
- package/dist/scopes-BU03K7Uo.mjs +34 -0
- package/dist/scopes-BU03K7Uo.mjs.map +1 -0
- package/dist/search-DfVzks89.mjs +450 -0
- package/dist/search-DfVzks89.mjs.map +1 -0
- package/dist/sections-BMy4JVUz.mjs +346 -0
- package/dist/sections-BMy4JVUz.mjs.map +1 -0
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +38 -34
- package/dist/seo/index.d.mts +3 -3
- package/dist/seo/index.mjs +25 -21
- package/dist/seo/index.mjs.map +1 -1
- package/dist/seo-ClB-dw9w.mjs +188 -0
- package/dist/seo-ClB-dw9w.mjs.map +1 -0
- package/dist/seo-VZYOEy8f.mjs +133 -0
- package/dist/seo-VZYOEy8f.mjs.map +1 -0
- package/dist/service-Bo_usgSk.mjs +150 -0
- package/dist/service-Bo_usgSk.mjs.map +1 -0
- package/dist/session-user-DlpPdf8L.mjs +61 -0
- package/dist/session-user-DlpPdf8L.mjs.map +1 -0
- package/dist/settings-CWb84sDm.mjs +452 -0
- package/dist/settings-CWb84sDm.mjs.map +1 -0
- package/dist/settings-DS914jjE.mjs +66 -0
- package/dist/settings-DS914jjE.mjs.map +1 -0
- package/dist/settings-Dd1uivmQ.mjs +73 -0
- package/dist/settings-Dd1uivmQ.mjs.map +1 -0
- package/dist/setup-complete-BuNxAUiN.mjs +65 -0
- package/dist/setup-complete-BuNxAUiN.mjs.map +1 -0
- package/dist/setup-nonce-BnEAX0iy.mjs +25 -0
- package/dist/setup-nonce-BnEAX0iy.mjs.map +1 -0
- package/dist/site-domain-Bq5j5bVg.mjs +131 -0
- package/dist/site-domain-Bq5j5bVg.mjs.map +1 -0
- package/dist/site-settings-DRHfX7bq.mjs +50 -0
- package/dist/site-settings-DRHfX7bq.mjs.map +1 -0
- package/dist/site-url-MB685I5X.mjs +45 -0
- package/dist/site-url-MB685I5X.mjs.map +1 -0
- package/dist/sitemap-name-BTg2NJJv.mjs +26 -0
- package/dist/sitemap-name-BTg2NJJv.mjs.map +1 -0
- package/dist/slug-aVnUV4SL.mjs +16 -0
- package/dist/slug-aVnUV4SL.mjs.map +1 -0
- package/dist/slugify-bu2-jKia.mjs +22 -0
- package/dist/slugify-bu2-jKia.mjs.map +1 -0
- package/dist/snapshot-DYsG4uOq.mjs +414 -0
- package/dist/snapshot-DYsG4uOq.mjs.map +1 -0
- package/dist/ssrf-BcYjyM4M.mjs +406 -0
- package/dist/ssrf-BcYjyM4M.mjs.map +1 -0
- package/dist/stage-D8DWgPcO.mjs +662 -0
- package/dist/stage-D8DWgPcO.mjs.map +1 -0
- package/dist/staged-CD_imitH.mjs +686 -0
- package/dist/staged-CD_imitH.mjs.map +1 -0
- package/dist/state-CFbGZziM.mjs +178 -0
- package/dist/state-CFbGZziM.mjs.map +1 -0
- package/dist/status-BFNdxzKc.mjs +30 -0
- package/dist/status-BFNdxzKc.mjs.map +1 -0
- package/dist/storage/local.d.mts +2 -2
- package/dist/storage/local.d.mts.map +1 -1
- package/dist/storage/local.mjs +12 -5
- package/dist/storage/local.mjs.map +1 -1
- package/dist/storage/s3.d.mts +4 -2
- package/dist/storage/s3.d.mts.map +1 -1
- package/dist/storage/s3.mjs +56 -9
- package/dist/storage/s3.mjs.map +1 -1
- package/dist/storage-query-DRyu3bSU.d.mts +1615 -0
- package/dist/storage-query-DRyu3bSU.d.mts.map +1 -0
- package/dist/tar-DFjExb9X.mjs +449 -0
- package/dist/tar-DFjExb9X.mjs.map +1 -0
- package/dist/target-CWZs2-o6.mjs +27 -0
- package/dist/target-CWZs2-o6.mjs.map +1 -0
- package/dist/taxonomies-ChnU7Mc8.mjs +697 -0
- package/dist/taxonomies-ChnU7Mc8.mjs.map +1 -0
- package/dist/taxonomies-Dd9JJv_a.mjs +939 -0
- package/dist/taxonomies-Dd9JJv_a.mjs.map +1 -0
- package/dist/taxonomy-C_C_LBAU.mjs +550 -0
- package/dist/taxonomy-C_C_LBAU.mjs.map +1 -0
- package/dist/tokens-BnhSnGwJ.mjs +171 -0
- package/dist/tokens-BnhSnGwJ.mjs.map +1 -0
- package/dist/transfer-ClH6w6BV.mjs +8873 -0
- package/dist/transfer-ClH6w6BV.mjs.map +1 -0
- package/dist/transfer-WmWiR3xf.mjs +166 -0
- package/dist/transfer-WmWiR3xf.mjs.map +1 -0
- package/dist/transfer-download--ofRj9Cw.mjs +33 -0
- package/dist/transfer-download--ofRj9Cw.mjs.map +1 -0
- package/dist/transformations-Bx4lYY0Y.mjs +196 -0
- package/dist/transformations-Bx4lYY0Y.mjs.map +1 -0
- package/dist/transport-BjbqNiPI.mjs +136 -0
- package/dist/transport-BjbqNiPI.mjs.map +1 -0
- package/dist/transport-DxiXnbXk.d.mts +42 -0
- package/dist/transport-DxiXnbXk.d.mts.map +1 -0
- package/dist/trusted-proxy-BU3Nx9g1.mjs +51 -0
- package/dist/trusted-proxy-BU3Nx9g1.mjs.map +1 -0
- package/dist/turnstile-CJwvsOqw.mjs +58 -0
- package/dist/turnstile-CJwvsOqw.mjs.map +1 -0
- package/dist/types-BA3ey2QH.d.mts +87 -0
- package/dist/types-BA3ey2QH.d.mts.map +1 -0
- package/dist/types-Bwpzb5o6.d.mts +227 -0
- package/dist/types-Bwpzb5o6.d.mts.map +1 -0
- package/dist/types-CNB-dj6F.d.mts +289 -0
- package/dist/types-CNB-dj6F.d.mts.map +1 -0
- package/dist/types-CgfFGfO5.mjs +16 -0
- package/dist/types-CgfFGfO5.mjs.map +1 -0
- package/dist/types-D2NEXtgB.mjs +127 -0
- package/dist/types-D2NEXtgB.mjs.map +1 -0
- package/dist/types-DCFavOii.d.mts +916 -0
- package/dist/types-DCFavOii.d.mts.map +1 -0
- package/dist/types-DHO7Pd25.d.mts +366 -0
- package/dist/types-DHO7Pd25.d.mts.map +1 -0
- package/dist/types-DvqVxZXa.d.mts +125 -0
- package/dist/types-DvqVxZXa.d.mts.map +1 -0
- package/dist/types-QoPHm-2w.d.mts +1741 -0
- package/dist/types-QoPHm-2w.d.mts.map +1 -0
- package/dist/types-RLgeIpnF.d.mts +374 -0
- package/dist/types-RLgeIpnF.d.mts.map +1 -0
- package/dist/types-qHVygneX.mjs +77 -0
- package/dist/types-qHVygneX.mjs.map +1 -0
- package/dist/types-sUHaH7lC.mjs +37 -0
- package/dist/types-sUHaH7lC.mjs.map +1 -0
- package/dist/types-slSqujQL.d.mts +204 -0
- package/dist/types-slSqujQL.d.mts.map +1 -0
- package/dist/update-check-BxNg9T6N.mjs +161 -0
- package/dist/update-check-BxNg9T6N.mjs.map +1 -0
- package/dist/upload-attempts-DPFC4COv.mjs +32 -0
- package/dist/upload-attempts-DPFC4COv.mjs.map +1 -0
- package/dist/url-pattern-QATUE_rv.mjs +41 -0
- package/dist/url-pattern-QATUE_rv.mjs.map +1 -0
- package/dist/user-BlCTKVAm.mjs +171 -0
- package/dist/user-BlCTKVAm.mjs.map +1 -0
- package/dist/utils-TPt7w2cS.mjs +442 -0
- package/dist/utils-TPt7w2cS.mjs.map +1 -0
- package/dist/validate-DxYhJQA-.mjs +524 -0
- package/dist/validate-DxYhJQA-.mjs.map +1 -0
- package/dist/validate-emKxGC5F.d.mts +468 -0
- package/dist/validate-emKxGC5F.d.mts.map +1 -0
- package/dist/validation-Ckq4vsVg.mjs +220 -0
- package/dist/validation-Ckq4vsVg.mjs.map +1 -0
- package/dist/version-BZj18Q7G.mjs +9 -0
- package/dist/version-BZj18Q7G.mjs.map +1 -0
- package/dist/version-DHmGpcch.mjs +7 -0
- package/dist/version-DHmGpcch.mjs.map +1 -0
- package/dist/video-DytCnw3L.mjs +54 -0
- package/dist/video-DytCnw3L.mjs.map +1 -0
- package/dist/virtual-modules-DO954n7P.mjs +515 -0
- package/dist/virtual-modules-DO954n7P.mjs.map +1 -0
- package/dist/widgets-DA5XmvVC.mjs +121 -0
- package/dist/widgets-DA5XmvVC.mjs.map +1 -0
- package/dist/wxr-taxonomies-CrMonejI.d.mts +34 -0
- package/dist/wxr-taxonomies-CrMonejI.d.mts.map +1 -0
- package/dist/wxr-taxonomies-RgRG0d5e.mjs +453 -0
- package/dist/wxr-taxonomies-RgRG0d5e.mjs.map +1 -0
- package/dist/zod-generator-D0JKy94C.mjs +424 -0
- package/dist/zod-generator-D0JKy94C.mjs.map +1 -0
- package/package.json +15 -11
- package/src/api/authorize.ts +42 -0
- package/src/api/errors.ts +9 -0
- package/src/api/handlers/api-tokens.ts +12 -6
- package/src/api/handlers/content.ts +57 -8
- package/src/api/handlers/dashboard.ts +33 -10
- package/src/api/handlers/domain-move-notice.ts +94 -0
- package/src/api/handlers/index.ts +2 -0
- package/src/api/handlers/manifest.ts +6 -0
- package/src/api/handlers/media-usage.ts +2 -1
- package/src/api/handlers/media.ts +1 -0
- package/src/api/handlers/plugins.ts +1 -0
- package/src/api/handlers/revision.ts +6 -2
- package/src/api/handlers/seo.ts +155 -59
- package/src/api/handlers/settings.ts +31 -1
- package/src/api/handlers/site-domain.ts +159 -0
- package/src/api/openapi/document.ts +2 -2
- package/src/api/public-url.ts +1 -1
- package/src/api/schemas/content.ts +20 -0
- package/src/api/schemas/media-usage.ts +7 -1
- package/src/api/schemas/media.ts +12 -0
- package/src/api/schemas/settings.ts +2 -0
- package/src/api/site-url.ts +53 -5
- package/src/api/types.ts +4 -0
- package/src/astro/image-endpoint.ts +46 -4
- package/src/astro/integration/admin-locales.ts +168 -0
- package/src/astro/integration/dev-env.ts +84 -0
- package/src/astro/integration/dev-scheduler-bridge.ts +91 -0
- package/src/astro/integration/index.ts +97 -10
- package/src/astro/integration/routes.ts +28 -0
- package/src/astro/integration/runtime.ts +17 -1
- package/src/astro/integration/virtual-modules.ts +9 -16
- package/src/astro/integration/vite-config.ts +22 -16
- package/src/astro/middleware/auth.ts +19 -4
- package/src/astro/middleware/csp.ts +1 -0
- package/src/astro/middleware/redirect.ts +94 -50
- package/src/astro/middleware/request-context.ts +12 -6
- package/src/astro/middleware.ts +71 -17
- package/src/astro/prefetch.ts +7 -5
- package/src/astro/public-plugin-api-routes.ts +10 -2
- package/src/astro/routes/api/admin/plugins/registry/artifact.ts +1 -1
- package/src/astro/routes/api/auth/handover.ts +58 -0
- package/src/astro/routes/api/auth/magic-link/verify.ts +11 -3
- package/src/astro/routes/api/auth/passkey/options.ts +10 -2
- package/src/astro/routes/api/content/[collection]/[id]/discard-draft.ts +2 -1
- package/src/astro/routes/api/content/[collection]/[id]/duplicate.ts +1 -5
- package/src/astro/routes/api/content/[collection]/[id]/lock.ts +2 -2
- package/src/astro/routes/api/content/[collection]/[id]/permanent.ts +2 -1
- package/src/astro/routes/api/content/[collection]/[id]/publish.ts +2 -1
- package/src/astro/routes/api/content/[collection]/[id]/restore.ts +2 -1
- package/src/astro/routes/api/content/[collection]/[id]/schedule.ts +3 -2
- package/src/astro/routes/api/content/[collection]/[id]/terms/[taxonomy].ts +5 -4
- package/src/astro/routes/api/content/[collection]/[id]/unpublish.ts +2 -1
- package/src/astro/routes/api/content/[collection]/[id].ts +18 -6
- package/src/astro/routes/api/content/[collection]/index.ts +1 -5
- package/src/astro/routes/api/dashboard.ts +4 -1
- package/src/astro/routes/api/dev/scheduled-tasks.ts +20 -0
- package/src/astro/routes/api/import/wordpress/analyze.ts +1 -16
- package/src/astro/routes/api/import/wordpress/execute.ts +27 -3
- package/src/astro/routes/api/import/wordpress/rewrite-url-helpers.ts +80 -42
- package/src/astro/routes/api/import/wordpress-plugin/analyze.ts +4 -1
- package/src/astro/routes/api/import/wordpress-plugin/execute.ts +49 -5
- package/src/astro/routes/api/manifest.ts +10 -0
- package/src/astro/routes/api/media/[id]/confirm.ts +19 -0
- package/src/astro/routes/api/media/file/[...key].ts +60 -12
- package/src/astro/routes/api/media/upload-url.ts +28 -4
- package/src/astro/routes/api/media.ts +15 -0
- package/src/astro/routes/api/menus/[name]/items/[id].ts +3 -2
- package/src/astro/routes/api/menus/[name]/items.ts +2 -1
- package/src/astro/routes/api/menus/[name]/reorder.ts +2 -1
- package/src/astro/routes/api/menus/[name]/translations.ts +2 -1
- package/src/astro/routes/api/menus/[name].ts +3 -2
- package/src/astro/routes/api/menus/index.ts +2 -1
- package/src/astro/routes/api/redirects/[id].ts +15 -2
- package/src/astro/routes/api/redirects/index.ts +5 -1
- package/src/astro/routes/api/schema/index.ts +1 -1
- package/src/astro/routes/api/settings/domain-notify.ts +76 -0
- package/src/astro/routes/api/settings/domain.ts +64 -0
- package/src/astro/routes/api/settings.ts +2 -1
- package/src/astro/routes/api/setup/admin-verify.ts +7 -1
- package/src/astro/routes/api/setup/index.ts +7 -0
- package/src/astro/routes/api/site/domain-proof.ts +28 -0
- package/src/astro/routes/api/taxonomies/[name]/reorder.ts +2 -1
- package/src/astro/routes/api/taxonomies/[name]/terms/[slug]/translations.ts +2 -1
- package/src/astro/routes/api/taxonomies/[name]/terms/[slug].ts +3 -2
- package/src/astro/routes/api/taxonomies/[name]/terms/index.ts +2 -1
- package/src/astro/routes/api/taxonomies/[name].ts +3 -2
- package/src/astro/routes/api/taxonomies/index.ts +2 -1
- package/src/astro/routes/api/widget-areas/[name]/reorder.ts +2 -1
- package/src/astro/routes/api/widget-areas/[name]/widgets/[id].ts +3 -2
- package/src/astro/routes/api/widget-areas/[name]/widgets.ts +2 -1
- package/src/astro/routes/api/widget-areas/[name].ts +2 -1
- package/src/astro/routes/api/widget-areas/index.ts +2 -1
- package/src/astro/routes/robots.txt.ts +33 -2
- package/src/astro/routes/sitemap-[collection].xml.ts +31 -8
- package/src/astro/routes/sitemap.xml.ts +12 -10
- package/src/astro/types.ts +23 -2
- package/src/auth/rate-limit.ts +18 -13
- package/src/auth/types.ts +11 -4
- package/src/aws-sdk.d.ts +2 -1
- package/src/cache/redirect-paths.ts +56 -0
- package/src/cache/route-cache.ts +22 -0
- package/src/cleanup.ts +26 -0
- package/src/cli/commands/export-seed.ts +2 -0
- package/src/cli/commands/import/wordpress.ts +3 -27
- package/src/cli/commands/login.ts +35 -43
- package/src/cli/commands/migrate.ts +36 -4
- package/src/cli/commands/seed.ts +23 -12
- package/src/cli/wxr/parser.ts +2 -2
- package/src/client/index.ts +18 -3
- package/src/client/portable-text.ts +21 -7
- package/src/comments/public-submission.ts +15 -8
- package/src/comments/query.ts +8 -2
- package/src/components/CommentForm.astro +50 -10
- package/src/components/Comments.astro +51 -29
- package/src/components/EmDashImage.astro +6 -4
- package/src/components/Gallery.astro +4 -3
- package/src/components/Image.astro +4 -3
- package/src/components/InlinePortableTextEditor.tsx +269 -1320
- package/src/components/Video.astro +100 -0
- package/src/components/index.ts +4 -1
- package/src/components/inline-block-types.ts +278 -0
- package/src/components/inline-bubble-menu.tsx +696 -0
- package/src/components/inline-code-block.tsx +8 -0
- package/src/components/inline-editor-ui.tsx +1192 -0
- package/src/components/inline-image.tsx +722 -0
- package/src/components/inline-media-picker.tsx +1221 -0
- package/src/components/inline-slash-menu.tsx +556 -0
- package/src/components/webmcp-search.ts +15 -19
- package/src/components/widgets/RecentPosts.astro +57 -17
- package/src/content/converters/mark-safety.ts +3 -3
- package/src/content/converters/portable-text-identity.ts +1 -0
- package/src/content/converters/portable-text-to-prosemirror.ts +7 -0
- package/src/content/converters/prosemirror-to-portable-text.ts +16 -0
- package/src/content/converters/types.ts +22 -0
- package/src/content/converters/video.ts +77 -0
- package/src/database/collection-cleanup.ts +30 -0
- package/src/database/datetime-storage.ts +337 -60
- package/src/database/migration-lock.ts +43 -7
- package/src/database/migrations/runner.ts +13 -1
- package/src/database/repositories/comment.ts +17 -3
- package/src/database/repositories/content.ts +25 -4
- package/src/database/repositories/plugin-storage.ts +137 -27
- package/src/database/repositories/redirect.ts +24 -2
- package/src/database/repositories/revision.ts +24 -6
- package/src/database/repositories/taxonomy.ts +61 -46
- package/src/database/repositories/types.ts +67 -7
- package/src/emdash-runtime.ts +393 -228
- package/src/import/index.ts +1 -0
- package/src/import/registry.ts +17 -0
- package/src/import/sources/wordpress-plugin.ts +154 -11
- package/src/import/types.ts +3 -0
- package/src/import/utils.ts +7 -3
- package/src/index.ts +3 -0
- package/src/loader.ts +170 -45
- package/src/mcp/json-schema.ts +14 -0
- package/src/mcp/plugin-tool-name.ts +36 -0
- package/src/mcp/server.ts +74 -15
- package/src/media/image-endpoint.ts +101 -1
- package/src/media/responsive.ts +14 -7
- package/src/media/usage/collection-deletion.ts +4 -0
- package/src/media/usage/extractor.ts +19 -2
- package/src/media/usage/types.ts +5 -1
- package/src/migrations/direct-executor.ts +42 -12
- package/src/migrations/protocol.ts +6 -2
- package/src/plugin-utils.ts +1 -1
- package/src/plugins/adapt-sandbox-entry.ts +16 -6
- package/src/plugins/context.ts +3 -7
- package/src/plugins/hooks.ts +1 -1
- package/src/plugins/http-route-dispatch.ts +5 -1
- package/src/plugins/manifest-schema.ts +1 -0
- package/src/plugins/route-error.ts +14 -0
- package/src/plugins/routes.ts +2 -2
- package/src/plugins/state.ts +41 -8
- package/src/plugins/types.ts +6 -0
- package/src/query.ts +59 -10
- package/src/redirects/cache.ts +34 -2
- package/src/redirects/patterns.ts +26 -2
- package/src/schema/block-values.ts +80 -17
- package/src/schema/registry.ts +16 -5
- package/src/schema/slug.ts +19 -0
- package/src/search/query.ts +3 -1
- package/src/search/text-extraction.ts +6 -1
- package/src/seed/apply.ts +32 -8
- package/src/seed/validate.ts +31 -0
- package/src/seo/sitemap-name.ts +22 -0
- package/src/settings/index.ts +20 -0
- package/src/settings/types.ts +2 -0
- package/src/storage/index.ts +2 -0
- package/src/storage/local.ts +10 -2
- package/src/storage/range.ts +54 -0
- package/src/storage/s3.ts +52 -8
- package/src/storage/types.ts +30 -3
- package/src/ui.ts +1 -0
- package/src/utils/slugify.ts +6 -1
- package/src/visual-editing/toolbar.ts +126 -47
- package/src/widgets/components.ts +4 -0
- package/src/widgets/index.ts +74 -82
- package/src/widgets/recent-posts.ts +62 -0
- package/dist/action-token-AgOs1UWD.mjs +0 -26
- package/dist/action-token-AgOs1UWD.mjs.map +0 -1
- package/dist/activation-xomsCMJg.mjs +0 -387
- package/dist/activation-xomsCMJg.mjs.map +0 -1
- package/dist/adapters-DM1oyHIN.d.mts +0 -173
- package/dist/adapters-DM1oyHIN.d.mts.map +0 -1
- package/dist/allowed-origins-CFtudhyw.mjs +0 -116
- package/dist/allowed-origins-CFtudhyw.mjs.map +0 -1
- package/dist/api-CltsXhiX.mjs +0 -4980
- package/dist/api-CltsXhiX.mjs.map +0 -1
- package/dist/api-tokens-P3mAaQgr.mjs +0 -166
- package/dist/api-tokens-P3mAaQgr.mjs.map +0 -1
- package/dist/apply-Q7uvzBWW.mjs +0 -1680
- package/dist/apply-Q7uvzBWW.mjs.map +0 -1
- package/dist/approvals-DycwI6lZ.mjs +0 -460
- package/dist/approvals-DycwI6lZ.mjs.map +0 -1
- package/dist/artifact-fetch-CWxyELVI.mjs +0 -659
- package/dist/artifact-fetch-CWxyELVI.mjs.map +0 -1
- package/dist/artifacts-UzWbysb8.mjs +0 -307
- package/dist/artifacts-UzWbysb8.mjs.map +0 -1
- package/dist/audit-CCH3MA4Y.mjs +0 -127
- package/dist/audit-CCH3MA4Y.mjs.map +0 -1
- package/dist/authoritative-records-dSvXCfzb.mjs +0 -5172
- package/dist/authoritative-records-dSvXCfzb.mjs.map +0 -1
- package/dist/authorize-DeWfk--K.mjs +0 -49
- package/dist/authorize-DeWfk--K.mjs.map +0 -1
- package/dist/backup-CFnbdTSJ.mjs +0 -246
- package/dist/backup-CFnbdTSJ.mjs.map +0 -1
- package/dist/block-types-C0YFSfR7.mjs +0 -132
- package/dist/block-types-C0YFSfR7.mjs.map +0 -1
- package/dist/block-values-H4E0XwE8.mjs +0 -175
- package/dist/block-values-H4E0XwE8.mjs.map +0 -1
- package/dist/byline-BhVslYLz.mjs +0 -909
- package/dist/byline-BhVslYLz.mjs.map +0 -1
- package/dist/byline-fields-DHJs0Mja.mjs +0 -280
- package/dist/byline-fields-DHJs0Mja.mjs.map +0 -1
- package/dist/byline-fields-xdxE9kxZ.mjs +0 -123
- package/dist/byline-fields-xdxE9kxZ.mjs.map +0 -1
- package/dist/bylines-B_nN9liM.mjs +0 -234
- package/dist/bylines-B_nN9liM.mjs.map +0 -1
- package/dist/bylines-C71YACkL.mjs +0 -150
- package/dist/bylines-C71YACkL.mjs.map +0 -1
- package/dist/cache-aTYCL9nK.mjs +0 -133
- package/dist/cache-aTYCL9nK.mjs.map +0 -1
- package/dist/canonical-Y1dpjCnp.mjs +0 -174
- package/dist/canonical-Y1dpjCnp.mjs.map +0 -1
- package/dist/capture-triggers-C9JKoIdT.mjs +0 -362
- package/dist/capture-triggers-C9JKoIdT.mjs.map +0 -1
- package/dist/challenge-store-CxZxPqaw.mjs +0 -51
- package/dist/challenge-store-CxZxPqaw.mjs.map +0 -1
- package/dist/checksum-DtH6m5uk.mjs +0 -162
- package/dist/checksum-DtH6m5uk.mjs.map +0 -1
- package/dist/chunks-zlGB5IQP.mjs +0 -25
- package/dist/chunks-zlGB5IQP.mjs.map +0 -1
- package/dist/collection-slugs-cache-B2Gs9Jwx.mjs +0 -85
- package/dist/collection-slugs-cache-B2Gs9Jwx.mjs.map +0 -1
- package/dist/comment-Bu08Wvr3.mjs +0 -313
- package/dist/comment-Bu08Wvr3.mjs.map +0 -1
- package/dist/comment-reaction-B8SfT-yM.mjs +0 -85
- package/dist/comment-reaction-B8SfT-yM.mjs.map +0 -1
- package/dist/comments-BRtp992B.mjs +0 -99
- package/dist/comments-BRtp992B.mjs.map +0 -1
- package/dist/comments-DVUYqdyC.mjs +0 -195
- package/dist/comments-DVUYqdyC.mjs.map +0 -1
- package/dist/components-CQY-Sgm-.mjs +0 -108
- package/dist/components-CQY-Sgm-.mjs.map +0 -1
- package/dist/config-B-uePMLj.d.mts +0 -39
- package/dist/config-B-uePMLj.d.mts.map +0 -1
- package/dist/config-B6BDSsz2.d.mts +0 -6712
- package/dist/config-B6BDSsz2.d.mts.map +0 -1
- package/dist/config-BsJHiQxC.mjs +0 -228
- package/dist/config-BsJHiQxC.mjs.map +0 -1
- package/dist/connection-B9pIasFd.mjs +0 -36
- package/dist/connection-B9pIasFd.mjs.map +0 -1
- package/dist/content-Dji9vEiW.mjs +0 -2063
- package/dist/content-Dji9vEiW.mjs.map +0 -1
- package/dist/content-list-query-DiNwyKtd.d.mts +0 -26
- package/dist/content-list-query-DiNwyKtd.d.mts.map +0 -1
- package/dist/content-repair-B7wnbzhN.mjs +0 -442
- package/dist/content-repair-B7wnbzhN.mjs.map +0 -1
- package/dist/context-Ctcxc8Ia.mjs +0 -2026
- package/dist/context-Ctcxc8Ia.mjs.map +0 -1
- package/dist/credits-Bu7dlobo.mjs +0 -110
- package/dist/credits-Bu7dlobo.mjs.map +0 -1
- package/dist/cron-xe5XKqA-.mjs +0 -306
- package/dist/cron-xe5XKqA-.mjs.map +0 -1
- package/dist/dashboard-B5hVHOtf.mjs +0 -151
- package/dist/dashboard-B5hVHOtf.mjs.map +0 -1
- package/dist/default-DaoYyFRS.mjs +0 -81
- package/dist/default-DaoYyFRS.mjs.map +0 -1
- package/dist/deferred-tasks-BYcDx2o_.d.mts +0 -9
- package/dist/deferred-tasks-BYcDx2o_.d.mts.map +0 -1
- package/dist/dev-typegen-Dtl8AfS6.mjs +0 -29
- package/dist/dev-typegen-Dtl8AfS6.mjs.map +0 -1
- package/dist/device-flow-Ma5P5d2e.mjs +0 -521
- package/dist/device-flow-Ma5P5d2e.mjs.map +0 -1
- package/dist/digest-xIpR3o64.mjs +0 -194
- package/dist/digest-xIpR3o64.mjs.map +0 -1
- package/dist/direct-executor-DMWwCey3.mjs +0 -104
- package/dist/direct-executor-DMWwCey3.mjs.map +0 -1
- package/dist/email-console-DmqVF5J_.mjs +0 -50
- package/dist/email-console-DmqVF5J_.mjs.map +0 -1
- package/dist/email-locale-Cc5YSXfJ.mjs +0 -25
- package/dist/email-locale-Cc5YSXfJ.mjs.map +0 -1
- package/dist/emdash-runtime-BlybX9Ui.mjs +0 -4249
- package/dist/emdash-runtime-BlybX9Ui.mjs.map +0 -1
- package/dist/entry-lock-De1L8qUQ.mjs +0 -163
- package/dist/entry-lock-De1L8qUQ.mjs.map +0 -1
- package/dist/entry-lock-esmMbgI9.d.mts +0 -4551
- package/dist/entry-lock-esmMbgI9.d.mts.map +0 -1
- package/dist/entry-lock-sxz2PGAT.mjs +0 -1197
- package/dist/entry-lock-sxz2PGAT.mjs.map +0 -1
- package/dist/env-types-BkjCtN13.mjs +0 -38
- package/dist/env-types-BkjCtN13.mjs.map +0 -1
- package/dist/error-B0rgPgsQ.mjs +0 -90
- package/dist/error-B0rgPgsQ.mjs.map +0 -1
- package/dist/errors-CuHQRiBW.mjs +0 -120
- package/dist/errors-CuHQRiBW.mjs.map +0 -1
- package/dist/errors-DTE6C3K_.mjs +0 -470
- package/dist/errors-DTE6C3K_.mjs.map +0 -1
- package/dist/escape-nJW7dR0s.mjs +0 -9
- package/dist/escape-nJW7dR0s.mjs.map +0 -1
- package/dist/fence-CGw57S4v.mjs +0 -162
- package/dist/fence-CGw57S4v.mjs.map +0 -1
- package/dist/field-defs-cache-Bw8w499w.mjs +0 -77
- package/dist/field-defs-cache-Bw8w499w.mjs.map +0 -1
- package/dist/field-map-hn-D-SyH.mjs +0 -83
- package/dist/field-map-hn-D-SyH.mjs.map +0 -1
- package/dist/fts-manager-DacCYIe4.mjs +0 -443
- package/dist/fts-manager-DacCYIe4.mjs.map +0 -1
- package/dist/gc-BBplHrv6.mjs +0 -75
- package/dist/gc-BBplHrv6.mjs.map +0 -1
- package/dist/hash-C4DFoJ7Z.mjs +0 -37
- package/dist/hash-C4DFoJ7Z.mjs.map +0 -1
- package/dist/hook-result-DSRRxu_-.d.mts +0 -31
- package/dist/hook-result-DSRRxu_-.d.mts.map +0 -1
- package/dist/hreflang-CKPunvU0.mjs +0 -105
- package/dist/hreflang-CKPunvU0.mjs.map +0 -1
- package/dist/hreflang-egumj6WF.d.mts +0 -50
- package/dist/hreflang-egumj6WF.d.mts.map +0 -1
- package/dist/http-route-dispatch-DjNFZcJ2.mjs +0 -339
- package/dist/http-route-dispatch-DjNFZcJ2.mjs.map +0 -1
- package/dist/identity-Dfrx2_Bc.mjs +0 -35
- package/dist/identity-Dfrx2_Bc.mjs.map +0 -1
- package/dist/import-ROBvhbNc.mjs +0 -2021
- package/dist/import-ROBvhbNc.mjs.map +0 -1
- package/dist/index-B4sIdCAT.d.mts +0 -623
- package/dist/index-B4sIdCAT.d.mts.map +0 -1
- package/dist/install-finalization-CPM7Gged.mjs +0 -58
- package/dist/install-finalization-CPM7Gged.mjs.map +0 -1
- package/dist/keys-DxqxcAD4.mjs +0 -61
- package/dist/keys-DxqxcAD4.mjs.map +0 -1
- package/dist/kinds-BQl5gN6e.mjs +0 -974
- package/dist/kinds-BQl5gN6e.mjs.map +0 -1
- package/dist/lifecycle-DGQI7itS.mjs +0 -25
- package/dist/lifecycle-DGQI7itS.mjs.map +0 -1
- package/dist/load-DMxRl4VK.mjs +0 -28
- package/dist/load-DMxRl4VK.mjs.map +0 -1
- package/dist/loader-1DMiOq5s.mjs +0 -1303
- package/dist/loader-1DMiOq5s.mjs.map +0 -1
- package/dist/loops-Dn1i16FP.mjs +0 -205
- package/dist/loops-Dn1i16FP.mjs.map +0 -1
- package/dist/manifest-builder-CTw4FmZk.mjs +0 -189
- package/dist/manifest-builder-CTw4FmZk.mjs.map +0 -1
- package/dist/manifest-schema-gy37bD_D.mjs +0 -496
- package/dist/manifest-schema-gy37bD_D.mjs.map +0 -1
- package/dist/marketplace-tHWSsCUo.mjs +0 -257
- package/dist/marketplace-tHWSsCUo.mjs.map +0 -1
- package/dist/media-Bw-Q65ve.mjs +0 -294
- package/dist/media-Bw-Q65ve.mjs.map +0 -1
- package/dist/media-BzUDu7nl.mjs +0 -373
- package/dist/media-BzUDu7nl.mjs.map +0 -1
- package/dist/media-aahnKHze.mjs +0 -408
- package/dist/media-aahnKHze.mjs.map +0 -1
- package/dist/media-allowlist-RMrjo8TU.mjs +0 -45
- package/dist/media-allowlist-RMrjo8TU.mjs.map +0 -1
- package/dist/media-folders-kabR1oJf.mjs +0 -210
- package/dist/media-folders-kabR1oJf.mjs.map +0 -1
- package/dist/media-url-DloW2xrP.mjs +0 -43
- package/dist/media-url-DloW2xrP.mjs.map +0 -1
- package/dist/media-usage-CHHpV7ee.mjs +0 -282
- package/dist/media-usage-CHHpV7ee.mjs.map +0 -1
- package/dist/media-usage-activation-BinYqC_r.mjs +0 -78
- package/dist/media-usage-activation-BinYqC_r.mjs.map +0 -1
- package/dist/media-usage-work-C734aq6s.mjs +0 -1015
- package/dist/media-usage-work-C734aq6s.mjs.map +0 -1
- package/dist/media-usage-work-lxvV0-UO.mjs +0 -151
- package/dist/media-usage-work-lxvV0-UO.mjs.map +0 -1
- package/dist/menus-6RHNq4ZK.mjs +0 -753
- package/dist/menus-6RHNq4ZK.mjs.map +0 -1
- package/dist/menus-AuCTaO9W.mjs +0 -3704
- package/dist/menus-AuCTaO9W.mjs.map +0 -1
- package/dist/menus-BQKqf0Up.mjs +0 -92
- package/dist/menus-BQKqf0Up.mjs.map +0 -1
- package/dist/mode-nh0ppSX5.mjs +0 -23
- package/dist/mode-nh0ppSX5.mjs.map +0 -1
- package/dist/node-sqlite-compat-CDOEcc97.mjs +0 -63
- package/dist/node-sqlite-compat-CDOEcc97.mjs.map +0 -1
- package/dist/oauth-authorization-BtYQ80uU.mjs +0 -274
- package/dist/oauth-authorization-BtYQ80uU.mjs.map +0 -1
- package/dist/oauth-clients-C1S4NQHh.mjs +0 -266
- package/dist/oauth-clients-C1S4NQHh.mjs.map +0 -1
- package/dist/oauth-state-store-CpGi2FZH.mjs +0 -50
- package/dist/oauth-state-store-CpGi2FZH.mjs.map +0 -1
- package/dist/oauth-user-lookup-BNp1aFAr.mjs +0 -26
- package/dist/oauth-user-lookup-BNp1aFAr.mjs.map +0 -1
- package/dist/options-B41aLm1I.d.mts +0 -81
- package/dist/options-B41aLm1I.d.mts.map +0 -1
- package/dist/ownership-DoeAIuTg.mjs +0 -12
- package/dist/ownership-DoeAIuTg.mjs.map +0 -1
- package/dist/parse-CmFDTGzp.mjs +0 -81
- package/dist/parse-CmFDTGzp.mjs.map +0 -1
- package/dist/parse-QVS0t5oR.d.mts +0 -172
- package/dist/parse-QVS0t5oR.d.mts.map +0 -1
- package/dist/passkey-config-C-MxsV22.mjs +0 -46
- package/dist/passkey-config-C-MxsV22.mjs.map +0 -1
- package/dist/paths-kr8hAMMI.mjs +0 -77
- package/dist/paths-kr8hAMMI.mjs.map +0 -1
- package/dist/patterns-DyZJ67I7.mjs +0 -140
- package/dist/patterns-DyZJ67I7.mjs.map +0 -1
- package/dist/placeholder-Dn7MMdWr.d.mts +0 -306
- package/dist/placeholder-Dn7MMdWr.d.mts.map +0 -1
- package/dist/plan-CuQOeU9g.mjs +0 -135
- package/dist/plan-CuQOeU9g.mjs.map +0 -1
- package/dist/plugins-CGb-G98c.mjs +0 -261
- package/dist/plugins-CGb-G98c.mjs.map +0 -1
- package/dist/policy-C5wrDXYV.mjs +0 -45
- package/dist/policy-C5wrDXYV.mjs.map +0 -1
- package/dist/portable-text-BnRuiR1-.mjs +0 -307
- package/dist/portable-text-BnRuiR1-.mjs.map +0 -1
- package/dist/preview-xWNSR1Li.mjs +0 -107
- package/dist/preview-xWNSR1Li.mjs.map +0 -1
- package/dist/protocol-ClxN-m1e.d.mts +0 -61
- package/dist/protocol-ClxN-m1e.d.mts.map +0 -1
- package/dist/public-submission-CkmT2SKv.mjs +0 -250
- package/dist/public-submission-CkmT2SKv.mjs.map +0 -1
- package/dist/public-url-B5a0QAh6.mjs +0 -101
- package/dist/public-url-B5a0QAh6.mjs.map +0 -1
- package/dist/query-DHqFiqqH.mjs +0 -41
- package/dist/query-DHqFiqqH.mjs.map +0 -1
- package/dist/query-DT85BehD.mjs +0 -1125
- package/dist/query-DT85BehD.mjs.map +0 -1
- package/dist/rate-limit-iMvcu3eu.mjs +0 -120
- package/dist/rate-limit-iMvcu3eu.mjs.map +0 -1
- package/dist/receipt-Dpp1uaX9.mjs +0 -43
- package/dist/receipt-Dpp1uaX9.mjs.map +0 -1
- package/dist/redirect-BRoLiWQE.mjs +0 -19
- package/dist/redirect-BRoLiWQE.mjs.map +0 -1
- package/dist/redirect-xZNpBoGp.mjs +0 -417
- package/dist/redirect-xZNpBoGp.mjs.map +0 -1
- package/dist/redirects-D4EWeXAo.mjs +0 -148
- package/dist/redirects-D4EWeXAo.mjs.map +0 -1
- package/dist/redirects-DCKqwiWp.mjs +0 -446
- package/dist/redirects-DCKqwiWp.mjs.map +0 -1
- package/dist/registry-DaXmUsD4.mjs +0 -8369
- package/dist/registry-DaXmUsD4.mjs.map +0 -1
- package/dist/relations-JvBP8nGP.mjs +0 -776
- package/dist/relations-JvBP8nGP.mjs.map +0 -1
- package/dist/request-meta-B6blULFY.mjs +0 -141
- package/dist/request-meta-B6blULFY.mjs.map +0 -1
- package/dist/resolve-DAhHi5tn.mjs +0 -100
- package/dist/resolve-DAhHi5tn.mjs.map +0 -1
- package/dist/revision-BWEH2qQB.mjs +0 -368
- package/dist/revision-BWEH2qQB.mjs.map +0 -1
- package/dist/route-wire-DK600v4u.mjs +0 -197
- package/dist/route-wire-DK600v4u.mjs.map +0 -1
- package/dist/routes-BeZyaCzv.mjs +0 -272
- package/dist/routes-BeZyaCzv.mjs.map +0 -1
- package/dist/runner-CskI4Hmq.mjs +0 -6372
- package/dist/runner-CskI4Hmq.mjs.map +0 -1
- package/dist/runner-J3Cj6DGk.d.mts +0 -68
- package/dist/runner-J3Cj6DGk.d.mts.map +0 -1
- package/dist/schema-CK0ihqMR.mjs +0 -815
- package/dist/schema-CK0ihqMR.mjs.map +0 -1
- package/dist/schema-VtaZSrC-.mjs +0 -13
- package/dist/schema-VtaZSrC-.mjs.map +0 -1
- package/dist/scopes-BRnGlL9t.mjs +0 -34
- package/dist/scopes-BRnGlL9t.mjs.map +0 -1
- package/dist/search-D6-XK1Sn.mjs +0 -448
- package/dist/search-D6-XK1Sn.mjs.map +0 -1
- package/dist/sections-CBDCf7qR.mjs +0 -346
- package/dist/sections-CBDCf7qR.mjs.map +0 -1
- package/dist/seo-BdeEPDNW.mjs +0 -133
- package/dist/seo-BdeEPDNW.mjs.map +0 -1
- package/dist/seo-C61bnPuV.mjs +0 -114
- package/dist/seo-C61bnPuV.mjs.map +0 -1
- package/dist/service-BuRKLMxa.mjs +0 -150
- package/dist/service-BuRKLMxa.mjs.map +0 -1
- package/dist/session-user-CqkPtrPL.mjs +0 -61
- package/dist/session-user-CqkPtrPL.mjs.map +0 -1
- package/dist/settings-0u0lTthS.mjs +0 -51
- package/dist/settings-0u0lTthS.mjs.map +0 -1
- package/dist/settings-WHr45II1.mjs +0 -61
- package/dist/settings-WHr45II1.mjs.map +0 -1
- package/dist/settings-m5tIYnF0.mjs +0 -443
- package/dist/settings-m5tIYnF0.mjs.map +0 -1
- package/dist/setup-complete-B2_dhZZz.mjs +0 -65
- package/dist/setup-complete-B2_dhZZz.mjs.map +0 -1
- package/dist/setup-nonce-CJV9ftSK.mjs +0 -25
- package/dist/setup-nonce-CJV9ftSK.mjs.map +0 -1
- package/dist/site-settings-KJOqJW6W.mjs +0 -50
- package/dist/site-settings-KJOqJW6W.mjs.map +0 -1
- package/dist/site-url-Ceq_AUK0.mjs +0 -16
- package/dist/site-url-Ceq_AUK0.mjs.map +0 -1
- package/dist/slugify-T5GHH42D.mjs +0 -17
- package/dist/slugify-T5GHH42D.mjs.map +0 -1
- package/dist/snapshot-Dzsn3NZa.mjs +0 -414
- package/dist/snapshot-Dzsn3NZa.mjs.map +0 -1
- package/dist/ssrf-DsmvZB80.mjs +0 -406
- package/dist/ssrf-DsmvZB80.mjs.map +0 -1
- package/dist/stage-Csnh_yEd.mjs +0 -662
- package/dist/stage-Csnh_yEd.mjs.map +0 -1
- package/dist/staged-Q7pnEVvI.mjs +0 -686
- package/dist/staged-Q7pnEVvI.mjs.map +0 -1
- package/dist/state-kGdOMQRY.mjs +0 -153
- package/dist/state-kGdOMQRY.mjs.map +0 -1
- package/dist/status-D39Fpy8R.mjs +0 -30
- package/dist/status-D39Fpy8R.mjs.map +0 -1
- package/dist/storage-query-C7iy6eUb.d.mts +0 -1615
- package/dist/storage-query-C7iy6eUb.d.mts.map +0 -1
- package/dist/tar-BWiraSUY.mjs +0 -449
- package/dist/tar-BWiraSUY.mjs.map +0 -1
- package/dist/target-DOFs5oUC.mjs +0 -27
- package/dist/target-DOFs5oUC.mjs.map +0 -1
- package/dist/taxonomies-BS40Wxvi.mjs +0 -939
- package/dist/taxonomies-BS40Wxvi.mjs.map +0 -1
- package/dist/taxonomies-DAZU9VDd.mjs +0 -697
- package/dist/taxonomies-DAZU9VDd.mjs.map +0 -1
- package/dist/taxonomy-XzLE95Vx.mjs +0 -525
- package/dist/taxonomy-XzLE95Vx.mjs.map +0 -1
- package/dist/tokens-DSQan4p7.mjs +0 -171
- package/dist/tokens-DSQan4p7.mjs.map +0 -1
- package/dist/transfer-BcCVxDgf.mjs +0 -166
- package/dist/transfer-BcCVxDgf.mjs.map +0 -1
- package/dist/transfer-OMrancOt.mjs +0 -8873
- package/dist/transfer-OMrancOt.mjs.map +0 -1
- package/dist/transfer-download-Dc-ltjZY.mjs +0 -33
- package/dist/transfer-download-Dc-ltjZY.mjs.map +0 -1
- package/dist/transformations-Ddx7UtrY.mjs +0 -196
- package/dist/transformations-Ddx7UtrY.mjs.map +0 -1
- package/dist/transport-flR-Zmds.d.mts +0 -42
- package/dist/transport-flR-Zmds.d.mts.map +0 -1
- package/dist/transport-umzEbgYO.mjs +0 -136
- package/dist/transport-umzEbgYO.mjs.map +0 -1
- package/dist/trusted-proxy-BqfQFs6a.mjs +0 -51
- package/dist/trusted-proxy-BqfQFs6a.mjs.map +0 -1
- package/dist/turnstile-Do60baId.mjs +0 -58
- package/dist/turnstile-Do60baId.mjs.map +0 -1
- package/dist/types-BT1p3uyb.d.mts +0 -1735
- package/dist/types-BT1p3uyb.d.mts.map +0 -1
- package/dist/types-BYaPWs_F.d.mts +0 -198
- package/dist/types-BYaPWs_F.d.mts.map +0 -1
- package/dist/types-C-Xp0CcN.mjs +0 -103
- package/dist/types-C-Xp0CcN.mjs.map +0 -1
- package/dist/types-CLTQ9b_r.d.mts +0 -374
- package/dist/types-CLTQ9b_r.d.mts.map +0 -1
- package/dist/types-CPkQw2T2.d.mts +0 -85
- package/dist/types-CPkQw2T2.d.mts.map +0 -1
- package/dist/types-CQLvuXoZ.d.mts +0 -198
- package/dist/types-CQLvuXoZ.d.mts.map +0 -1
- package/dist/types-CV5xszpF.d.mts +0 -363
- package/dist/types-CV5xszpF.d.mts.map +0 -1
- package/dist/types-CdEMurNh.mjs +0 -77
- package/dist/types-CdEMurNh.mjs.map +0 -1
- package/dist/types-CxwtnuSS.mjs +0 -37
- package/dist/types-CxwtnuSS.mjs.map +0 -1
- package/dist/types-DGw8KMX_.mjs +0 -16
- package/dist/types-DGw8KMX_.mjs.map +0 -1
- package/dist/types-DOfVMPoo.d.mts +0 -125
- package/dist/types-DOfVMPoo.d.mts.map +0 -1
- package/dist/types-LtS0SM4F.d.mts +0 -287
- package/dist/types-LtS0SM4F.d.mts.map +0 -1
- package/dist/types-ifgOkcBa.d.mts +0 -916
- package/dist/types-ifgOkcBa.d.mts.map +0 -1
- package/dist/update-check-DOc2aBIU.mjs +0 -161
- package/dist/update-check-DOc2aBIU.mjs.map +0 -1
- package/dist/upload-attempts-nzdc3cay.mjs +0 -32
- package/dist/upload-attempts-nzdc3cay.mjs.map +0 -1
- package/dist/url-pattern-hVbqpXs6.mjs +0 -41
- package/dist/url-pattern-hVbqpXs6.mjs.map +0 -1
- package/dist/user-Dnp53zTq.mjs +0 -171
- package/dist/user-Dnp53zTq.mjs.map +0 -1
- package/dist/utils-CoV-PYhg.mjs +0 -439
- package/dist/utils-CoV-PYhg.mjs.map +0 -1
- package/dist/validate-CfQ9_YlD.d.mts +0 -468
- package/dist/validate-CfQ9_YlD.d.mts.map +0 -1
- package/dist/validate-DBX3DKtL.mjs +0 -516
- package/dist/validate-DBX3DKtL.mjs.map +0 -1
- package/dist/validation-BJMiDhB1.mjs +0 -219
- package/dist/validation-BJMiDhB1.mjs.map +0 -1
- package/dist/version-BaT8yKIT.mjs +0 -7
- package/dist/version-BaT8yKIT.mjs.map +0 -1
- package/dist/version-BwEGkqkx.mjs +0 -9
- package/dist/version-BwEGkqkx.mjs.map +0 -1
- package/dist/virtual-modules-B6vJW15k.mjs +0 -516
- package/dist/virtual-modules-B6vJW15k.mjs.map +0 -1
- package/dist/widgets-BkxBAgZ_.mjs +0 -126
- package/dist/widgets-BkxBAgZ_.mjs.map +0 -1
- package/dist/wxr-taxonomies-D7gAJyOF.mjs +0 -453
- package/dist/wxr-taxonomies-D7gAJyOF.mjs.map +0 -1
- package/dist/wxr-taxonomies-DM5J9AsT.d.mts +0 -34
- package/dist/wxr-taxonomies-DM5J9AsT.d.mts.map +0 -1
- package/dist/zod-generator-BQilAboC.mjs +0 -424
- package/dist/zod-generator-BQilAboC.mjs.map +0 -1
- /package/dist/{api-tokens-BLz2MtQs.mjs → api-tokens-CdP49zVF.mjs} +0 -0
- /package/dist/{ssrf-tA45vIPX.mjs → ssrf-DM0E-D_8.mjs} +0 -0
|
@@ -0,0 +1,1192 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Building blocks for the inline (visual editing) editor's floating UI: its
|
|
3
|
+
* selection toolbars, their menus and tooltips, and the slash menu. They
|
|
4
|
+
* look like the admin editor's, drawn with plain CSS from the admin's
|
|
5
|
+
* colours, since sites don't load the admin's stylesheet. Each editor keeps
|
|
6
|
+
* them in its own root at the end of `document.body`, outside the page's
|
|
7
|
+
* content and the styles aimed at it.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import {
|
|
11
|
+
FloatingFocusManager,
|
|
12
|
+
FloatingPortal,
|
|
13
|
+
NextFloatingDelayGroup,
|
|
14
|
+
arrow,
|
|
15
|
+
autoUpdate,
|
|
16
|
+
flip,
|
|
17
|
+
offset,
|
|
18
|
+
shift,
|
|
19
|
+
size,
|
|
20
|
+
useClick,
|
|
21
|
+
useDismiss,
|
|
22
|
+
useFloating,
|
|
23
|
+
useFocus,
|
|
24
|
+
useHover,
|
|
25
|
+
useInteractions,
|
|
26
|
+
useListNavigation,
|
|
27
|
+
useMergeRefs,
|
|
28
|
+
useNextDelayGroup,
|
|
29
|
+
useRole,
|
|
30
|
+
useTransitionStatus,
|
|
31
|
+
useTypeahead,
|
|
32
|
+
type Middleware,
|
|
33
|
+
type Placement,
|
|
34
|
+
} from "@floating-ui/react";
|
|
35
|
+
import { Check, type Icon } from "@phosphor-icons/react";
|
|
36
|
+
import type { Editor } from "@tiptap/core";
|
|
37
|
+
import * as React from "react";
|
|
38
|
+
|
|
39
|
+
/** Marks a menu opened from a selection toolbar, so the toolbar stays while it has focus. */
|
|
40
|
+
export const TOOLBAR_POPUP_ATTR = "data-emdash-bubble-popup";
|
|
41
|
+
|
|
42
|
+
export const InlineUiRootContext = React.createContext<HTMLElement | null>(null);
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Whether the toolbar around a control is showing. The toolbar hides by
|
|
46
|
+
* leaving the page, which ends no hover, so its tooltips close on this.
|
|
47
|
+
*/
|
|
48
|
+
export const ToolbarShownContext = React.createContext(true);
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The editor's floating UI root, created once and attached to the page while
|
|
52
|
+
* the editor is. A server render has no page, so it gets none.
|
|
53
|
+
*/
|
|
54
|
+
export function useInlineUiRoot(): HTMLElement | null {
|
|
55
|
+
const [root] = React.useState(() => {
|
|
56
|
+
if (typeof document === "undefined") return null;
|
|
57
|
+
const element = document.createElement("div");
|
|
58
|
+
element.className = "emdash-inline-ui";
|
|
59
|
+
return element;
|
|
60
|
+
});
|
|
61
|
+
React.useLayoutEffect(() => {
|
|
62
|
+
if (!root) return;
|
|
63
|
+
document.body.append(root);
|
|
64
|
+
return () => root.remove();
|
|
65
|
+
}, [root]);
|
|
66
|
+
return root;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* TipTap positions a hidden toolbar before it puts the toolbar on the page,
|
|
71
|
+
* where floating-ui can't tell that the page reads right to left. A toolbar
|
|
72
|
+
* about to show waits on the page, still hidden, so it lines up with the
|
|
73
|
+
* selection on the side the page reads from.
|
|
74
|
+
*/
|
|
75
|
+
export function attachBeforePositioning(toolbar: HTMLElement, root: HTMLElement) {
|
|
76
|
+
if (toolbar.isConnected) return;
|
|
77
|
+
root.append(toolbar);
|
|
78
|
+
// TipTap shows it straight away. A toolbar left hidden on the page could
|
|
79
|
+
// be shown again by TipTap's scroll handling, so if that didn't happen it goes.
|
|
80
|
+
queueMicrotask(() => {
|
|
81
|
+
if (toolbar.style.visibility === "hidden") toolbar.remove();
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Puts a floating element's transform origin on the middle of the edge of
|
|
87
|
+
* its anchor that it opens from, so it grows out of the control that opened
|
|
88
|
+
* it. Must come last, once the position is final. The elements this is for
|
|
89
|
+
* open above or below their anchor and are positioned without a transform,
|
|
90
|
+
* which their scale would otherwise move too.
|
|
91
|
+
*
|
|
92
|
+
* `getAnchor` defaults to the positioning reference. floating-ui keeps the
|
|
93
|
+
* first copy of a middleware whose source is unchanged, so it must read refs
|
|
94
|
+
* rather than values from a render.
|
|
95
|
+
*/
|
|
96
|
+
export function transformOrigin(getAnchor?: () => DOMRect): Middleware {
|
|
97
|
+
return {
|
|
98
|
+
name: "transformOrigin",
|
|
99
|
+
fn: ({ x, y, placement, rects, elements }) => {
|
|
100
|
+
// Measured on screen, then placed from the reference, which floating-ui
|
|
101
|
+
// measures in the same coordinates as the floating element's position.
|
|
102
|
+
const reference = elements.reference.getBoundingClientRect();
|
|
103
|
+
const anchor = getAnchor?.() ?? reference;
|
|
104
|
+
const edge = placement.startsWith("top") ? anchor.top : anchor.bottom;
|
|
105
|
+
return {
|
|
106
|
+
data: {
|
|
107
|
+
x: rects.reference.x + anchor.left + anchor.width / 2 - reference.left - x,
|
|
108
|
+
y: rects.reference.y + edge - reference.top - y,
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function originStyle(origin: { x: number; y: number } | undefined): React.CSSProperties {
|
|
116
|
+
return origin ? { transformOrigin: `${origin.x}px ${origin.y}px` } : {};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* floating-ui positions an element when it mounts or its anchor moves, and
|
|
121
|
+
* forgets it did once the element closes. One reopened while it fades out
|
|
122
|
+
* would stay hidden until something moved, so it's positioned again.
|
|
123
|
+
*/
|
|
124
|
+
function useRepositionOnOpen(open: boolean, update: () => void) {
|
|
125
|
+
React.useLayoutEffect(() => {
|
|
126
|
+
if (open) update();
|
|
127
|
+
}, [open, update]);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
const TOOLTIP_DELAY = { open: 400, close: 0 };
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Once one tooltip in a toolbar shows, its neighbours' show at once while
|
|
134
|
+
* the pointer moves along the toolbar, as in the admin editor.
|
|
135
|
+
*/
|
|
136
|
+
export function ToolbarTooltipGroup({ children }: { children: React.ReactNode }) {
|
|
137
|
+
return (
|
|
138
|
+
<NextFloatingDelayGroup delay={TOOLTIP_DELAY} timeoutMs={400}>
|
|
139
|
+
{children}
|
|
140
|
+
</NextFloatingDelayGroup>
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
function useTooltip(label: string) {
|
|
145
|
+
const root = React.useContext(InlineUiRootContext);
|
|
146
|
+
const shown = React.useContext(ToolbarShownContext);
|
|
147
|
+
const [hovered, setOpen] = React.useState(false);
|
|
148
|
+
const open = hovered && shown;
|
|
149
|
+
React.useEffect(() => {
|
|
150
|
+
if (!shown) setOpen(false);
|
|
151
|
+
}, [shown]);
|
|
152
|
+
const arrowRef = React.useRef<SVGSVGElement>(null);
|
|
153
|
+
const { refs, floatingStyles, context, placement, middlewareData, isPositioned, update } =
|
|
154
|
+
useFloating({
|
|
155
|
+
open,
|
|
156
|
+
onOpenChange: setOpen,
|
|
157
|
+
placement: "top",
|
|
158
|
+
strategy: "fixed",
|
|
159
|
+
transform: false,
|
|
160
|
+
middleware: [
|
|
161
|
+
offset(10),
|
|
162
|
+
flip({ padding: 8 }),
|
|
163
|
+
shift({ padding: 8 }),
|
|
164
|
+
arrow({ element: arrowRef }),
|
|
165
|
+
transformOrigin(),
|
|
166
|
+
],
|
|
167
|
+
whileElementsMounted: autoUpdate,
|
|
168
|
+
});
|
|
169
|
+
useRepositionOnOpen(open, update);
|
|
170
|
+
const { delayRef, isInstantPhase, hasProvider } = useNextDelayGroup(context);
|
|
171
|
+
const hover = useHover(context, {
|
|
172
|
+
delay: () => (hasProvider ? delayRef.current : TOOLTIP_DELAY),
|
|
173
|
+
mouseOnly: true,
|
|
174
|
+
});
|
|
175
|
+
const focus = useFocus(context, { visibleOnly: true });
|
|
176
|
+
const dismiss = useDismiss(context, { referencePress: true });
|
|
177
|
+
const { getReferenceProps, getFloatingProps } = useInteractions([hover, focus, dismiss]);
|
|
178
|
+
const { isMounted, status } = useTransitionStatus(context, {
|
|
179
|
+
// A hidden toolbar takes its buttons off the page, so their tooltips go with it.
|
|
180
|
+
duration: isInstantPhase || !shown ? 0 : 150,
|
|
181
|
+
});
|
|
182
|
+
// The button names or describes itself already, so the tooltip is for sight only.
|
|
183
|
+
const tooltip = isMounted ? (
|
|
184
|
+
<FloatingPortal root={root}>
|
|
185
|
+
<div
|
|
186
|
+
ref={refs.setFloating}
|
|
187
|
+
style={{
|
|
188
|
+
...floatingStyles,
|
|
189
|
+
...originStyle(middlewareData.transformOrigin),
|
|
190
|
+
visibility: isPositioned || status === "close" ? undefined : "hidden",
|
|
191
|
+
}}
|
|
192
|
+
className="emdash-inline-ui-tooltip"
|
|
193
|
+
data-status={status}
|
|
194
|
+
data-instant={isInstantPhase ? "" : undefined}
|
|
195
|
+
dir="auto"
|
|
196
|
+
aria-hidden="true"
|
|
197
|
+
{...getFloatingProps()}
|
|
198
|
+
>
|
|
199
|
+
{label}
|
|
200
|
+
<svg
|
|
201
|
+
ref={arrowRef}
|
|
202
|
+
width="20"
|
|
203
|
+
height="10"
|
|
204
|
+
viewBox="0 0 20 10"
|
|
205
|
+
className="emdash-inline-ui-tooltip-arrow"
|
|
206
|
+
data-side={placement.startsWith("bottom") ? "bottom" : "top"}
|
|
207
|
+
style={{ left: middlewareData.arrow?.x }}
|
|
208
|
+
>
|
|
209
|
+
<path
|
|
210
|
+
className="emdash-inline-ui-tooltip-arrow-fill"
|
|
211
|
+
d="M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z"
|
|
212
|
+
/>
|
|
213
|
+
<path
|
|
214
|
+
className="emdash-inline-ui-tooltip-arrow-shadow"
|
|
215
|
+
d="M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z"
|
|
216
|
+
/>
|
|
217
|
+
<path
|
|
218
|
+
className="emdash-inline-ui-tooltip-arrow-stroke"
|
|
219
|
+
d="M10.3333 3.34539L5.47654 7.71648C4.55842 8.54279 3.36693 9 2.13172 9H0V8H2.13172C3.11989 8 4.07308 7.63423 4.80758 6.97318L9.66437 2.60207C10.0447 2.25979 10.622 2.2598 11.0023 2.60207L15.8591 6.97318C16.5936 7.63423 17.5468 8 18.5349 8H20V9H18.5349C17.2998 9 16.1083 8.54278 15.1901 7.71648L10.3333 3.34539Z"
|
|
220
|
+
/>
|
|
221
|
+
</svg>
|
|
222
|
+
</div>
|
|
223
|
+
</FloatingPortal>
|
|
224
|
+
) : null;
|
|
225
|
+
return { setReference: refs.setReference, getReferenceProps, tooltip };
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/** An icon button in a selection toolbar, named by its tooltip. */
|
|
229
|
+
export function ToolbarButton({
|
|
230
|
+
label,
|
|
231
|
+
active,
|
|
232
|
+
onClick,
|
|
233
|
+
children,
|
|
234
|
+
}: {
|
|
235
|
+
label: string;
|
|
236
|
+
/** Whether the formatting it applies is on; unset for actions. */
|
|
237
|
+
active?: boolean;
|
|
238
|
+
onClick: () => void;
|
|
239
|
+
children: React.ReactNode;
|
|
240
|
+
}) {
|
|
241
|
+
const { setReference, getReferenceProps, tooltip } = useTooltip(label);
|
|
242
|
+
return (
|
|
243
|
+
<>
|
|
244
|
+
<button
|
|
245
|
+
ref={setReference}
|
|
246
|
+
type="button"
|
|
247
|
+
className="emdash-inline-ui-button"
|
|
248
|
+
aria-label={label}
|
|
249
|
+
aria-pressed={active}
|
|
250
|
+
{...getReferenceProps({
|
|
251
|
+
// Keeps the editor's selection, which a focused button would clear.
|
|
252
|
+
onMouseDown: (event: React.MouseEvent) => event.preventDefault(),
|
|
253
|
+
onClick,
|
|
254
|
+
})}
|
|
255
|
+
>
|
|
256
|
+
{children}
|
|
257
|
+
</button>
|
|
258
|
+
{tooltip}
|
|
259
|
+
</>
|
|
260
|
+
);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* A toolbar button named beside its icon, or by its icon alone on a narrow
|
|
265
|
+
* screen. A tooltip, when given, tells more than the name does.
|
|
266
|
+
*/
|
|
267
|
+
export function ToolbarTextButton({
|
|
268
|
+
label,
|
|
269
|
+
icon,
|
|
270
|
+
tooltip,
|
|
271
|
+
pressed,
|
|
272
|
+
expanded,
|
|
273
|
+
buttonRef,
|
|
274
|
+
onClick,
|
|
275
|
+
}: {
|
|
276
|
+
label: string;
|
|
277
|
+
icon: React.ReactNode;
|
|
278
|
+
tooltip?: string;
|
|
279
|
+
pressed?: boolean;
|
|
280
|
+
/** Whether the popup it opens is open; unset for a button that opens none. */
|
|
281
|
+
expanded?: boolean;
|
|
282
|
+
buttonRef?: React.Ref<HTMLButtonElement>;
|
|
283
|
+
onClick: () => void;
|
|
284
|
+
}) {
|
|
285
|
+
const { setReference, getReferenceProps, tooltip: tooltipElement } = useTooltip(tooltip ?? label);
|
|
286
|
+
const ref = useMergeRefs([setReference, buttonRef]);
|
|
287
|
+
const descriptionId = React.useId();
|
|
288
|
+
return (
|
|
289
|
+
<>
|
|
290
|
+
<button
|
|
291
|
+
ref={ref}
|
|
292
|
+
type="button"
|
|
293
|
+
className="emdash-inline-ui-trigger emdash-inline-ui-text-button"
|
|
294
|
+
aria-pressed={pressed}
|
|
295
|
+
aria-haspopup={expanded === undefined ? undefined : "dialog"}
|
|
296
|
+
aria-expanded={expanded}
|
|
297
|
+
aria-describedby={tooltip === undefined ? undefined : descriptionId}
|
|
298
|
+
data-open={expanded ? "" : undefined}
|
|
299
|
+
{...getReferenceProps({
|
|
300
|
+
onMouseDown: (event: React.MouseEvent) => event.preventDefault(),
|
|
301
|
+
onClick,
|
|
302
|
+
})}
|
|
303
|
+
>
|
|
304
|
+
{icon}
|
|
305
|
+
<span className="emdash-inline-ui-text-button-label">{label}</span>
|
|
306
|
+
{/* Out of the button's name, and out of sight whatever the page's styles. */}
|
|
307
|
+
{tooltip !== undefined && (
|
|
308
|
+
<span id={descriptionId} aria-hidden="true" className="emdash-inline-ui-sr-only">
|
|
309
|
+
{tooltip}
|
|
310
|
+
</span>
|
|
311
|
+
)}
|
|
312
|
+
</button>
|
|
313
|
+
{tooltip === undefined ? null : tooltipElement}
|
|
314
|
+
</>
|
|
315
|
+
);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export function ToolbarSeparator() {
|
|
319
|
+
return <div aria-hidden="true" className="emdash-inline-ui-separator" />;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export interface ToolbarMenuItem {
|
|
323
|
+
label: string;
|
|
324
|
+
icon: Icon;
|
|
325
|
+
/** A radio or checkbox item shows a check mark while `checked`. */
|
|
326
|
+
role?: "menuitemradio" | "menuitemcheckbox";
|
|
327
|
+
checked?: boolean;
|
|
328
|
+
disabled?: boolean;
|
|
329
|
+
onSelect: () => void;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export interface ToolbarMenuGroup {
|
|
333
|
+
label?: string;
|
|
334
|
+
items: ToolbarMenuItem[];
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* A toolbar button that opens a menu below the toolbar, lined up with the
|
|
339
|
+
* toolbar's start edge, or its end edge for `bottom-end`. Choosing an item
|
|
340
|
+
* or pressing Escape or Tab returns to the editor, so typing carries on there.
|
|
341
|
+
*/
|
|
342
|
+
export function ToolbarMenu({
|
|
343
|
+
editor,
|
|
344
|
+
label,
|
|
345
|
+
open,
|
|
346
|
+
onOpenChange,
|
|
347
|
+
placement,
|
|
348
|
+
iconOnly,
|
|
349
|
+
trigger,
|
|
350
|
+
groups,
|
|
351
|
+
}: {
|
|
352
|
+
editor: Editor;
|
|
353
|
+
label: string;
|
|
354
|
+
open: boolean;
|
|
355
|
+
onOpenChange: (open: boolean) => void;
|
|
356
|
+
placement: Placement;
|
|
357
|
+
iconOnly?: boolean;
|
|
358
|
+
trigger: React.ReactNode;
|
|
359
|
+
groups: ToolbarMenuGroup[];
|
|
360
|
+
}) {
|
|
361
|
+
const root = React.useContext(InlineUiRootContext);
|
|
362
|
+
const listRef = React.useRef<Array<HTMLElement | null>>([]);
|
|
363
|
+
const labelsRef = React.useRef<Array<string | null>>([]);
|
|
364
|
+
const [activeIndex, setActiveIndex] = React.useState<number | null>(null);
|
|
365
|
+
const triggerRef = React.useRef<HTMLButtonElement | null>(null);
|
|
366
|
+
const focusEditor = () => {
|
|
367
|
+
if (!editor.isDestroyed) editor.view.focus();
|
|
368
|
+
};
|
|
369
|
+
const { refs, floatingStyles, context, middlewareData, isPositioned, update } = useFloating({
|
|
370
|
+
open,
|
|
371
|
+
onOpenChange: (next, _event, reason) => {
|
|
372
|
+
onOpenChange(next);
|
|
373
|
+
if (!next && reason === "escape-key") focusEditor();
|
|
374
|
+
},
|
|
375
|
+
placement,
|
|
376
|
+
strategy: "fixed",
|
|
377
|
+
transform: false,
|
|
378
|
+
middleware: [
|
|
379
|
+
offset(4),
|
|
380
|
+
flip({ padding: 8 }),
|
|
381
|
+
shift({ padding: 8 }),
|
|
382
|
+
size({
|
|
383
|
+
padding: 8,
|
|
384
|
+
apply: ({ availableHeight, elements }) => {
|
|
385
|
+
elements.floating.style.maxHeight = `${Math.min(416, Math.max(0, availableHeight))}px`;
|
|
386
|
+
},
|
|
387
|
+
}),
|
|
388
|
+
transformOrigin(() => triggerRef.current?.getBoundingClientRect() ?? new DOMRect()),
|
|
389
|
+
],
|
|
390
|
+
whileElementsMounted: autoUpdate,
|
|
391
|
+
});
|
|
392
|
+
React.useLayoutEffect(() => {
|
|
393
|
+
// The element TipTap positions, around the toolbar, which plays its entrance as a transform.
|
|
394
|
+
const toolbar = triggerRef.current?.closest('[role="toolbar"]')?.parentElement;
|
|
395
|
+
if (!toolbar) return;
|
|
396
|
+
let rect = new DOMRect();
|
|
397
|
+
refs.setPositionReference({
|
|
398
|
+
contextElement: toolbar,
|
|
399
|
+
getBoundingClientRect: () => {
|
|
400
|
+
// A toolbar that hides as the menu closes leaves the page, so the menu fades out where it was.
|
|
401
|
+
if (toolbar.isConnected) rect = toolbar.getBoundingClientRect();
|
|
402
|
+
return rect;
|
|
403
|
+
},
|
|
404
|
+
});
|
|
405
|
+
}, [refs]);
|
|
406
|
+
useRepositionOnOpen(open, update);
|
|
407
|
+
const triggerRefs = useMergeRefs([refs.setReference, triggerRef]);
|
|
408
|
+
const { isMounted, status } = useTransitionStatus(context, {
|
|
409
|
+
duration: { open: 100, close: 75 },
|
|
410
|
+
});
|
|
411
|
+
const click = useClick(context);
|
|
412
|
+
const dismiss = useDismiss(context);
|
|
413
|
+
const role = useRole(context, { role: "menu" });
|
|
414
|
+
const listNavigation = useListNavigation(context, {
|
|
415
|
+
listRef,
|
|
416
|
+
activeIndex,
|
|
417
|
+
onNavigate: setActiveIndex,
|
|
418
|
+
loop: true,
|
|
419
|
+
});
|
|
420
|
+
const typeahead = useTypeahead(context, {
|
|
421
|
+
listRef: labelsRef,
|
|
422
|
+
activeIndex,
|
|
423
|
+
onMatch: open ? setActiveIndex : undefined,
|
|
424
|
+
});
|
|
425
|
+
const { getReferenceProps, getFloatingProps, getItemProps } = useInteractions([
|
|
426
|
+
click,
|
|
427
|
+
dismiss,
|
|
428
|
+
role,
|
|
429
|
+
listNavigation,
|
|
430
|
+
typeahead,
|
|
431
|
+
]);
|
|
432
|
+
|
|
433
|
+
let index = 0;
|
|
434
|
+
return (
|
|
435
|
+
<>
|
|
436
|
+
<button
|
|
437
|
+
ref={triggerRefs}
|
|
438
|
+
type="button"
|
|
439
|
+
className="emdash-inline-ui-trigger"
|
|
440
|
+
aria-label={label}
|
|
441
|
+
data-icon-only={iconOnly ? "" : undefined}
|
|
442
|
+
data-open={open ? "" : undefined}
|
|
443
|
+
{...getReferenceProps({
|
|
444
|
+
onMouseDown: (event: React.MouseEvent) => event.preventDefault(),
|
|
445
|
+
})}
|
|
446
|
+
>
|
|
447
|
+
{trigger}
|
|
448
|
+
</button>
|
|
449
|
+
{isMounted && (
|
|
450
|
+
<FloatingPortal root={root}>
|
|
451
|
+
<FloatingFocusManager
|
|
452
|
+
context={context}
|
|
453
|
+
modal={false}
|
|
454
|
+
returnFocus={false}
|
|
455
|
+
disabled={status === "close"}
|
|
456
|
+
>
|
|
457
|
+
<div
|
|
458
|
+
ref={refs.setFloating}
|
|
459
|
+
style={{
|
|
460
|
+
...floatingStyles,
|
|
461
|
+
...originStyle(middlewareData.transformOrigin),
|
|
462
|
+
visibility: isPositioned || status === "close" ? undefined : "hidden",
|
|
463
|
+
}}
|
|
464
|
+
className="emdash-inline-ui-menu"
|
|
465
|
+
data-status={status}
|
|
466
|
+
{...{ [TOOLBAR_POPUP_ATTR]: "" }}
|
|
467
|
+
{...getFloatingProps({
|
|
468
|
+
onKeyDown: (event: React.KeyboardEvent) => {
|
|
469
|
+
if (event.key !== "Tab") return;
|
|
470
|
+
event.preventDefault();
|
|
471
|
+
onOpenChange(false);
|
|
472
|
+
focusEditor();
|
|
473
|
+
},
|
|
474
|
+
})}
|
|
475
|
+
>
|
|
476
|
+
{groups.map((group, groupIndex) => (
|
|
477
|
+
<React.Fragment key={group.label ?? groupIndex}>
|
|
478
|
+
{groupIndex > 0 && (
|
|
479
|
+
<div role="separator" className="emdash-inline-ui-menu-separator" />
|
|
480
|
+
)}
|
|
481
|
+
<div role="group" aria-label={group.label}>
|
|
482
|
+
{group.label && (
|
|
483
|
+
<div aria-hidden="true" className="emdash-inline-ui-menu-label">
|
|
484
|
+
{group.label}
|
|
485
|
+
</div>
|
|
486
|
+
)}
|
|
487
|
+
{group.items.map((item) => {
|
|
488
|
+
const itemIndex = index++;
|
|
489
|
+
return (
|
|
490
|
+
<button
|
|
491
|
+
key={item.label}
|
|
492
|
+
ref={(node) => {
|
|
493
|
+
listRef.current[itemIndex] = node;
|
|
494
|
+
labelsRef.current[itemIndex] = item.label;
|
|
495
|
+
}}
|
|
496
|
+
type="button"
|
|
497
|
+
role={item.role ?? "menuitem"}
|
|
498
|
+
aria-checked={item.role ? item.checked === true : undefined}
|
|
499
|
+
disabled={item.disabled}
|
|
500
|
+
tabIndex={activeIndex === itemIndex ? 0 : -1}
|
|
501
|
+
className="emdash-inline-ui-menu-item"
|
|
502
|
+
data-highlighted={activeIndex === itemIndex ? "" : undefined}
|
|
503
|
+
{...getItemProps({
|
|
504
|
+
onClick: () => {
|
|
505
|
+
onOpenChange(false);
|
|
506
|
+
item.onSelect();
|
|
507
|
+
},
|
|
508
|
+
})}
|
|
509
|
+
>
|
|
510
|
+
<item.icon className="emdash-inline-ui-menu-icon" aria-hidden="true" />
|
|
511
|
+
<span className="emdash-inline-ui-menu-text">{item.label}</span>
|
|
512
|
+
{item.checked && (
|
|
513
|
+
<Check className="emdash-inline-ui-menu-check" aria-hidden="true" />
|
|
514
|
+
)}
|
|
515
|
+
</button>
|
|
516
|
+
);
|
|
517
|
+
})}
|
|
518
|
+
</div>
|
|
519
|
+
</React.Fragment>
|
|
520
|
+
))}
|
|
521
|
+
</div>
|
|
522
|
+
</FloatingFocusManager>
|
|
523
|
+
</FloatingPortal>
|
|
524
|
+
)}
|
|
525
|
+
</>
|
|
526
|
+
);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
const TOOLBAR_CONTROL_SELECTOR = "button:not([disabled]), a[href], input";
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Tab from a selection moves into its toolbar. The toolbars sit at the end
|
|
533
|
+
* of the page, so the browser would otherwise move focus past them.
|
|
534
|
+
*/
|
|
535
|
+
export function useTabIntoToolbar(editor: Editor, root: HTMLElement) {
|
|
536
|
+
React.useEffect(() => {
|
|
537
|
+
const dom = editor.view.dom;
|
|
538
|
+
const onKeyDown = (event: KeyboardEvent) => {
|
|
539
|
+
if (event.key !== "Tab" || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey) {
|
|
540
|
+
return;
|
|
541
|
+
}
|
|
542
|
+
// Lists and code blocks use Tab themselves.
|
|
543
|
+
if (event.defaultPrevented || event.isComposing) return;
|
|
544
|
+
// A hidden toolbar isn't on the page, so this finds only the one showing.
|
|
545
|
+
const control = root
|
|
546
|
+
.querySelector('[role="toolbar"]')
|
|
547
|
+
?.querySelector<HTMLElement>(TOOLBAR_CONTROL_SELECTOR);
|
|
548
|
+
if (!control) return;
|
|
549
|
+
event.preventDefault();
|
|
550
|
+
control.focus();
|
|
551
|
+
};
|
|
552
|
+
dom.addEventListener("keydown", onKeyDown);
|
|
553
|
+
return () => dom.removeEventListener("keydown", onKeyDown);
|
|
554
|
+
}, [editor, root]);
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
const FOCUSABLE_SELECTOR =
|
|
558
|
+
'a[href], button, input, select, textarea, [tabindex], [contenteditable="true"]';
|
|
559
|
+
|
|
560
|
+
/** Focuses the first control after the editor on the page, where Tab from it would go. */
|
|
561
|
+
function focusAfterEditor(editor: Editor): boolean {
|
|
562
|
+
const dom = editor.view.dom;
|
|
563
|
+
for (const element of document.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR)) {
|
|
564
|
+
if (element.tabIndex < 0 || dom.contains(element) || element.closest(".emdash-inline-ui")) {
|
|
565
|
+
continue;
|
|
566
|
+
}
|
|
567
|
+
if (!(dom.compareDocumentPosition(element) & Node.DOCUMENT_POSITION_FOLLOWING)) continue;
|
|
568
|
+
element.focus();
|
|
569
|
+
// Hidden and disabled controls ignore focus().
|
|
570
|
+
if (document.activeElement === element) return true;
|
|
571
|
+
}
|
|
572
|
+
return false;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Keys in a selection toolbar, which sits at the end of the page but acts as
|
|
577
|
+
* if it followed the editor: Escape, or Shift+Tab from its first control,
|
|
578
|
+
* goes back to the editor, and Tab from its last goes on to what follows
|
|
579
|
+
* the editor. Left and Right move between its buttons and links, flipped for
|
|
580
|
+
* right-to-left text; Home and End go to the first and last.
|
|
581
|
+
*/
|
|
582
|
+
export function handleToolbarKeyDown(event: React.KeyboardEvent<HTMLElement>, editor: Editor) {
|
|
583
|
+
if (event.nativeEvent.isComposing || event.defaultPrevented) return;
|
|
584
|
+
const toolbar = event.currentTarget;
|
|
585
|
+
const controls = [...toolbar.querySelectorAll(TOOLBAR_CONTROL_SELECTOR)];
|
|
586
|
+
const backToEditor =
|
|
587
|
+
event.key === "Escape" ||
|
|
588
|
+
(event.key === "Tab" && event.shiftKey && document.activeElement === controls[0]);
|
|
589
|
+
if (backToEditor) {
|
|
590
|
+
event.preventDefault();
|
|
591
|
+
if (!editor.isDestroyed) editor.view.focus();
|
|
592
|
+
return;
|
|
593
|
+
}
|
|
594
|
+
if (
|
|
595
|
+
event.key === "Tab" &&
|
|
596
|
+
!event.shiftKey &&
|
|
597
|
+
document.activeElement === controls.at(-1) &&
|
|
598
|
+
focusAfterEditor(editor)
|
|
599
|
+
) {
|
|
600
|
+
event.preventDefault();
|
|
601
|
+
return;
|
|
602
|
+
}
|
|
603
|
+
const items = [
|
|
604
|
+
...toolbar.querySelectorAll<HTMLElement>("button:not([disabled]), a[href]"),
|
|
605
|
+
].filter((item) => item.getClientRects().length > 0);
|
|
606
|
+
const currentIndex = items.findIndex((item) => item === document.activeElement);
|
|
607
|
+
if (currentIndex === -1) return;
|
|
608
|
+
const forward = getComputedStyle(toolbar).direction === "rtl" ? -1 : 1;
|
|
609
|
+
let nextIndex: number;
|
|
610
|
+
switch (event.key) {
|
|
611
|
+
case "ArrowRight":
|
|
612
|
+
nextIndex = currentIndex + forward;
|
|
613
|
+
break;
|
|
614
|
+
case "ArrowLeft":
|
|
615
|
+
nextIndex = currentIndex - forward;
|
|
616
|
+
break;
|
|
617
|
+
case "Home":
|
|
618
|
+
nextIndex = 0;
|
|
619
|
+
break;
|
|
620
|
+
case "End":
|
|
621
|
+
nextIndex = items.length - 1;
|
|
622
|
+
break;
|
|
623
|
+
default:
|
|
624
|
+
return;
|
|
625
|
+
}
|
|
626
|
+
event.preventDefault();
|
|
627
|
+
items[(nextIndex + items.length) % items.length]?.focus();
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
/** A toolbar's short rise into place as it appears, like the admin editor's. */
|
|
631
|
+
export function playToolbarEntrance(surface: Element | null | undefined) {
|
|
632
|
+
if (!(surface instanceof HTMLElement) || typeof surface.animate !== "function") return;
|
|
633
|
+
const reduceMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
634
|
+
surface.animate(
|
|
635
|
+
reduceMotion
|
|
636
|
+
? [{ opacity: 0 }, { opacity: 1 }]
|
|
637
|
+
: [
|
|
638
|
+
{ opacity: 0, transform: "translateY(2px) scale(0.98)" },
|
|
639
|
+
{ opacity: 1, transform: "none" },
|
|
640
|
+
],
|
|
641
|
+
{ duration: 120, easing: "cubic-bezier(0.23, 1, 0.32, 1)" },
|
|
642
|
+
);
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* Colours and sizes follow the admin editor's Kumo tokens, in pixels so a
|
|
647
|
+
* site's root font size doesn't scale them. `light-dark()` follows the
|
|
648
|
+
* reader's system theme, as the admin does by default.
|
|
649
|
+
*/
|
|
650
|
+
export const INLINE_EDITOR_UI_STYLES = `
|
|
651
|
+
@property --emdash-inline-ui-fade-start {
|
|
652
|
+
syntax: "<length>";
|
|
653
|
+
inherits: false;
|
|
654
|
+
initial-value: 0px;
|
|
655
|
+
}
|
|
656
|
+
@property --emdash-inline-ui-fade-end {
|
|
657
|
+
syntax: "<length>";
|
|
658
|
+
inherits: false;
|
|
659
|
+
initial-value: 0px;
|
|
660
|
+
}
|
|
661
|
+
@keyframes emdash-inline-ui-scroll-fade {
|
|
662
|
+
0% { --emdash-inline-ui-fade-start: 0px; }
|
|
663
|
+
10%, 100% { --emdash-inline-ui-fade-start: 24px; }
|
|
664
|
+
0%, 90% { --emdash-inline-ui-fade-end: 24px; }
|
|
665
|
+
100% { --emdash-inline-ui-fade-end: 0px; }
|
|
666
|
+
}
|
|
667
|
+
@keyframes emdash-inline-ui-menu-in {
|
|
668
|
+
from { opacity: 0; scale: 0.97; }
|
|
669
|
+
}
|
|
670
|
+
@keyframes emdash-inline-ui-tooltip-in {
|
|
671
|
+
from { opacity: 0; scale: 0.9; }
|
|
672
|
+
}
|
|
673
|
+
.emdash-inline-ui {
|
|
674
|
+
position: absolute;
|
|
675
|
+
inset-block-start: 0;
|
|
676
|
+
inset-inline-start: 0;
|
|
677
|
+
z-index: 1000000;
|
|
678
|
+
color-scheme: light dark;
|
|
679
|
+
--emdash-ui-surface: light-dark(#fff, oklch(20.5% 0 0));
|
|
680
|
+
--emdash-ui-raised: light-dark(#fff, oklch(17% 0 0));
|
|
681
|
+
--emdash-ui-text: light-dark(#1d2327, oklch(97% 0 0));
|
|
682
|
+
--emdash-ui-subtle: light-dark(#646970, oklch(70.8% 0 0));
|
|
683
|
+
--emdash-ui-placeholder: light-dark(oklch(70.8% 0 0), oklch(55.6% 0 0));
|
|
684
|
+
--emdash-ui-tint: light-dark(#f0f0f1, oklch(26.9% 0 0));
|
|
685
|
+
--emdash-ui-line: light-dark(oklch(14.5% 0 0 / 0.1), oklch(32% 0 0));
|
|
686
|
+
--emdash-ui-hairline: light-dark(oklch(93.5% 0 0), oklch(26.9% 0 0));
|
|
687
|
+
--emdash-ui-fill: light-dark(#dcdcde, oklch(26.9% 0 0));
|
|
688
|
+
--emdash-ui-link: light-dark(oklch(42.4% 0.199 265.638), oklch(70.7% 0.165 254.624));
|
|
689
|
+
--emdash-ui-danger: light-dark(oklch(50.5% 0.213 27.518), oklch(70.4% 0.191 22.216));
|
|
690
|
+
--emdash-ui-danger-ring: light-dark(oklch(63.7% 0.237 25.331), oklch(57.7% 0.245 27.325));
|
|
691
|
+
--emdash-ui-focus: light-dark(oklch(15% 0 0), oklch(93.5% 0 0));
|
|
692
|
+
--emdash-ui-brand: light-dark(oklch(57.72% 0.2324 260), oklch(51.948% 0.2324 260));
|
|
693
|
+
--emdash-ui-tip-shadow: light-dark(oklch(92.8% 0.006 264.531), transparent);
|
|
694
|
+
--emdash-ui-tip-stroke: light-dark(transparent, oklch(26.9% 0 0));
|
|
695
|
+
--emdash-ui-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
696
|
+
color: var(--emdash-ui-text);
|
|
697
|
+
font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
|
|
698
|
+
"Segoe UI Symbol", "Noto Color Emoji";
|
|
699
|
+
font-size: 14px;
|
|
700
|
+
font-style: normal;
|
|
701
|
+
font-weight: 400;
|
|
702
|
+
line-height: 20px;
|
|
703
|
+
letter-spacing: normal;
|
|
704
|
+
text-align: start;
|
|
705
|
+
text-transform: none;
|
|
706
|
+
-webkit-font-smoothing: antialiased;
|
|
707
|
+
-moz-osx-font-smoothing: grayscale;
|
|
708
|
+
}
|
|
709
|
+
.emdash-inline-ui :where(*, *::before, *::after) {
|
|
710
|
+
box-sizing: border-box;
|
|
711
|
+
}
|
|
712
|
+
.emdash-inline-ui :where(button, input, a) {
|
|
713
|
+
min-width: 0;
|
|
714
|
+
min-height: 0;
|
|
715
|
+
margin: 0;
|
|
716
|
+
font: inherit;
|
|
717
|
+
color: inherit;
|
|
718
|
+
letter-spacing: inherit;
|
|
719
|
+
text-decoration: none;
|
|
720
|
+
text-shadow: none;
|
|
721
|
+
text-transform: none;
|
|
722
|
+
}
|
|
723
|
+
.emdash-inline-ui :where(svg) {
|
|
724
|
+
display: block;
|
|
725
|
+
flex: none;
|
|
726
|
+
}
|
|
727
|
+
.emdash-inline-ui-bar,
|
|
728
|
+
.emdash-inline-ui-menu,
|
|
729
|
+
.emdash-inline-ui .emdash-slash-menu {
|
|
730
|
+
border-radius: 10px;
|
|
731
|
+
background: var(--emdash-ui-surface);
|
|
732
|
+
box-shadow: 0 0 0 1px var(--emdash-ui-line), var(--emdash-ui-shadow);
|
|
733
|
+
}
|
|
734
|
+
.emdash-inline-ui-bar {
|
|
735
|
+
display: flex;
|
|
736
|
+
max-width: 100%;
|
|
737
|
+
align-items: center;
|
|
738
|
+
gap: 2px;
|
|
739
|
+
padding: 4px;
|
|
740
|
+
}
|
|
741
|
+
.emdash-inline-ui-toolbar {
|
|
742
|
+
display: flex;
|
|
743
|
+
min-width: 0;
|
|
744
|
+
align-items: center;
|
|
745
|
+
gap: 2px;
|
|
746
|
+
margin: -4px;
|
|
747
|
+
padding: 4px;
|
|
748
|
+
overflow-x: auto;
|
|
749
|
+
scroll-padding-inline: 4px;
|
|
750
|
+
border-radius: inherit;
|
|
751
|
+
scrollbar-width: none;
|
|
752
|
+
animation: emdash-inline-ui-scroll-fade linear;
|
|
753
|
+
animation-timeline: scroll(self inline);
|
|
754
|
+
mask-image: linear-gradient(
|
|
755
|
+
to var(--emdash-inline-ui-fade-direction, right),
|
|
756
|
+
transparent,
|
|
757
|
+
black var(--emdash-inline-ui-fade-start),
|
|
758
|
+
black calc(100% - var(--emdash-inline-ui-fade-end)),
|
|
759
|
+
transparent
|
|
760
|
+
);
|
|
761
|
+
}
|
|
762
|
+
.emdash-inline-ui-toolbar:dir(rtl) {
|
|
763
|
+
--emdash-inline-ui-fade-direction: left;
|
|
764
|
+
}
|
|
765
|
+
.emdash-inline-ui-toolbar::-webkit-scrollbar {
|
|
766
|
+
display: none;
|
|
767
|
+
}
|
|
768
|
+
.emdash-inline-ui-button,
|
|
769
|
+
.emdash-inline-ui-trigger {
|
|
770
|
+
display: inline-flex;
|
|
771
|
+
flex: none;
|
|
772
|
+
height: 32px;
|
|
773
|
+
align-items: center;
|
|
774
|
+
justify-content: center;
|
|
775
|
+
gap: 4px;
|
|
776
|
+
padding: 0;
|
|
777
|
+
border: 0;
|
|
778
|
+
border-radius: 6px;
|
|
779
|
+
background: transparent;
|
|
780
|
+
color: var(--emdash-ui-text);
|
|
781
|
+
cursor: pointer;
|
|
782
|
+
outline: none;
|
|
783
|
+
box-shadow: none;
|
|
784
|
+
font-size: 14px;
|
|
785
|
+
line-height: 20px;
|
|
786
|
+
-webkit-tap-highlight-color: transparent;
|
|
787
|
+
}
|
|
788
|
+
.emdash-inline-ui-button {
|
|
789
|
+
width: 32px;
|
|
790
|
+
}
|
|
791
|
+
.emdash-inline-ui-trigger {
|
|
792
|
+
padding-inline: 8px;
|
|
793
|
+
cursor: default;
|
|
794
|
+
}
|
|
795
|
+
.emdash-inline-ui-trigger[data-icon-only] {
|
|
796
|
+
width: 32px;
|
|
797
|
+
padding-inline: 0;
|
|
798
|
+
}
|
|
799
|
+
.emdash-inline-ui-button:hover,
|
|
800
|
+
.emdash-inline-ui-trigger:hover,
|
|
801
|
+
.emdash-inline-ui-trigger[data-open] {
|
|
802
|
+
background: var(--emdash-ui-tint);
|
|
803
|
+
}
|
|
804
|
+
.emdash-inline-ui-button[aria-pressed="true"],
|
|
805
|
+
.emdash-inline-ui-trigger[aria-pressed="true"] {
|
|
806
|
+
background: var(--emdash-ui-tint);
|
|
807
|
+
color: var(--emdash-ui-link);
|
|
808
|
+
}
|
|
809
|
+
.emdash-inline-ui-text-button {
|
|
810
|
+
gap: 6px;
|
|
811
|
+
cursor: pointer;
|
|
812
|
+
}
|
|
813
|
+
.emdash-inline-ui-text-button > svg {
|
|
814
|
+
width: 16px;
|
|
815
|
+
height: 16px;
|
|
816
|
+
}
|
|
817
|
+
.emdash-inline-ui-button:focus-visible {
|
|
818
|
+
box-shadow: 0 0 0 2px var(--emdash-ui-brand);
|
|
819
|
+
}
|
|
820
|
+
.emdash-inline-ui-trigger:focus-visible,
|
|
821
|
+
.emdash-inline-ui-link-url:focus-visible {
|
|
822
|
+
box-shadow: 0 0 0 2px color-mix(in oklch, var(--emdash-ui-focus) 50%, transparent);
|
|
823
|
+
}
|
|
824
|
+
.emdash-inline-ui-button svg,
|
|
825
|
+
.emdash-inline-ui-trigger > svg:only-child {
|
|
826
|
+
width: 16px;
|
|
827
|
+
height: 16px;
|
|
828
|
+
}
|
|
829
|
+
.emdash-inline-ui-trigger-label {
|
|
830
|
+
max-width: 128px;
|
|
831
|
+
overflow: hidden;
|
|
832
|
+
text-overflow: ellipsis;
|
|
833
|
+
white-space: nowrap;
|
|
834
|
+
}
|
|
835
|
+
.emdash-inline-ui-caret {
|
|
836
|
+
width: 12px;
|
|
837
|
+
height: 12px;
|
|
838
|
+
color: var(--emdash-ui-subtle);
|
|
839
|
+
}
|
|
840
|
+
.emdash-inline-ui-separator {
|
|
841
|
+
flex: none;
|
|
842
|
+
width: 1px;
|
|
843
|
+
height: 20px;
|
|
844
|
+
margin-inline: 2px;
|
|
845
|
+
background: var(--emdash-ui-hairline);
|
|
846
|
+
}
|
|
847
|
+
.emdash-inline-ui-link-edit {
|
|
848
|
+
display: flex;
|
|
849
|
+
min-width: 0;
|
|
850
|
+
align-items: flex-start;
|
|
851
|
+
gap: 4px;
|
|
852
|
+
}
|
|
853
|
+
.emdash-inline-ui-field {
|
|
854
|
+
display: flex;
|
|
855
|
+
min-width: 0;
|
|
856
|
+
flex-direction: column;
|
|
857
|
+
gap: 4px;
|
|
858
|
+
}
|
|
859
|
+
.emdash-inline-ui-field-row {
|
|
860
|
+
display: flex;
|
|
861
|
+
min-width: 0;
|
|
862
|
+
align-items: center;
|
|
863
|
+
gap: 4px;
|
|
864
|
+
}
|
|
865
|
+
.emdash-inline-ui-input {
|
|
866
|
+
width: 288px;
|
|
867
|
+
min-width: 0;
|
|
868
|
+
max-width: 100%;
|
|
869
|
+
height: 32px;
|
|
870
|
+
padding: 0 12px;
|
|
871
|
+
border: 0;
|
|
872
|
+
border-radius: 8px;
|
|
873
|
+
background: var(--emdash-ui-surface);
|
|
874
|
+
box-shadow: 0 0 0 1px var(--emdash-ui-line);
|
|
875
|
+
color: var(--emdash-ui-text);
|
|
876
|
+
font-size: 14px;
|
|
877
|
+
line-height: 20px;
|
|
878
|
+
outline: none;
|
|
879
|
+
}
|
|
880
|
+
.emdash-inline-ui-input::placeholder {
|
|
881
|
+
color: var(--emdash-ui-placeholder);
|
|
882
|
+
opacity: 1;
|
|
883
|
+
}
|
|
884
|
+
.emdash-inline-ui-input:focus {
|
|
885
|
+
box-shadow: 0 0 0 1.5px color-mix(in oklch, var(--emdash-ui-focus) 50%, transparent);
|
|
886
|
+
}
|
|
887
|
+
.emdash-inline-ui-input[aria-invalid="true"] {
|
|
888
|
+
box-shadow: 0 0 0 1px var(--emdash-ui-danger-ring);
|
|
889
|
+
}
|
|
890
|
+
.emdash-inline-ui-input[aria-invalid="true"]:focus {
|
|
891
|
+
box-shadow: 0 0 0 1.5px color-mix(in oklch, var(--emdash-ui-danger-ring) 50%, transparent);
|
|
892
|
+
}
|
|
893
|
+
.emdash-inline-ui-field-error {
|
|
894
|
+
max-width: 288px;
|
|
895
|
+
margin: 0;
|
|
896
|
+
padding: 4px 8px;
|
|
897
|
+
color: var(--emdash-ui-danger);
|
|
898
|
+
font-size: 12px;
|
|
899
|
+
line-height: 16px;
|
|
900
|
+
}
|
|
901
|
+
.emdash-inline-ui-link-preview {
|
|
902
|
+
max-width: min(448px, calc(100vw - 16px));
|
|
903
|
+
}
|
|
904
|
+
.emdash-inline-ui-link-globe {
|
|
905
|
+
width: 16px;
|
|
906
|
+
height: 16px;
|
|
907
|
+
margin-inline-start: 6px;
|
|
908
|
+
color: var(--emdash-ui-subtle);
|
|
909
|
+
}
|
|
910
|
+
.emdash-inline-ui-link-url {
|
|
911
|
+
min-width: 0;
|
|
912
|
+
overflow: hidden;
|
|
913
|
+
padding-inline: 6px;
|
|
914
|
+
border-radius: 4px;
|
|
915
|
+
color: var(--emdash-ui-link);
|
|
916
|
+
font-size: 14px;
|
|
917
|
+
outline: none;
|
|
918
|
+
text-decoration: none;
|
|
919
|
+
text-overflow: ellipsis;
|
|
920
|
+
white-space: nowrap;
|
|
921
|
+
}
|
|
922
|
+
.emdash-inline-ui-link-url:hover {
|
|
923
|
+
text-decoration: underline;
|
|
924
|
+
}
|
|
925
|
+
span.emdash-inline-ui-link-url {
|
|
926
|
+
color: var(--emdash-ui-subtle);
|
|
927
|
+
}
|
|
928
|
+
.emdash-inline-ui-menu {
|
|
929
|
+
min-width: 224px;
|
|
930
|
+
overflow-y: auto;
|
|
931
|
+
overscroll-behavior: contain;
|
|
932
|
+
padding: 4px;
|
|
933
|
+
outline: none;
|
|
934
|
+
}
|
|
935
|
+
/*
|
|
936
|
+
* Entrances are animations: floating-ui leaves its opening status before
|
|
937
|
+
* the first paint, so a transition from it would never run. Exits are
|
|
938
|
+
* transitions, as the closing status keeps the element on the page.
|
|
939
|
+
*/
|
|
940
|
+
.emdash-inline-ui-menu,
|
|
941
|
+
.emdash-inline-ui .emdash-slash-menu {
|
|
942
|
+
animation: emdash-inline-ui-menu-in 100ms cubic-bezier(0, 0, 0.2, 1);
|
|
943
|
+
transition: opacity 75ms cubic-bezier(0, 0, 0.2, 1);
|
|
944
|
+
}
|
|
945
|
+
.emdash-inline-ui-menu[data-status="close"],
|
|
946
|
+
.emdash-inline-ui .emdash-slash-menu[data-status="close"] {
|
|
947
|
+
opacity: 0;
|
|
948
|
+
pointer-events: none;
|
|
949
|
+
}
|
|
950
|
+
.emdash-inline-ui-menu-label {
|
|
951
|
+
padding: 6px 8px 2px;
|
|
952
|
+
color: var(--emdash-ui-subtle);
|
|
953
|
+
font-size: 12px;
|
|
954
|
+
font-weight: 500;
|
|
955
|
+
line-height: 16px;
|
|
956
|
+
user-select: none;
|
|
957
|
+
}
|
|
958
|
+
.emdash-inline-ui-menu-separator {
|
|
959
|
+
height: 1px;
|
|
960
|
+
margin: 4px -4px;
|
|
961
|
+
background: var(--emdash-ui-hairline);
|
|
962
|
+
}
|
|
963
|
+
.emdash-inline-ui-menu-item {
|
|
964
|
+
display: flex;
|
|
965
|
+
width: 100%;
|
|
966
|
+
height: 32px;
|
|
967
|
+
align-items: center;
|
|
968
|
+
gap: 8px;
|
|
969
|
+
padding: 0 8px;
|
|
970
|
+
border: 0;
|
|
971
|
+
border-radius: 6px;
|
|
972
|
+
background: transparent;
|
|
973
|
+
color: var(--emdash-ui-text);
|
|
974
|
+
cursor: default;
|
|
975
|
+
outline: none;
|
|
976
|
+
text-align: start;
|
|
977
|
+
user-select: none;
|
|
978
|
+
}
|
|
979
|
+
.emdash-inline-ui-menu-item[data-highlighted] {
|
|
980
|
+
background: var(--emdash-ui-tint);
|
|
981
|
+
}
|
|
982
|
+
.emdash-inline-ui-menu-item:disabled {
|
|
983
|
+
opacity: 0.5;
|
|
984
|
+
pointer-events: none;
|
|
985
|
+
}
|
|
986
|
+
.emdash-inline-ui-menu-icon {
|
|
987
|
+
width: 16px;
|
|
988
|
+
height: 16px;
|
|
989
|
+
color: var(--emdash-ui-subtle);
|
|
990
|
+
}
|
|
991
|
+
.emdash-inline-ui-menu-check {
|
|
992
|
+
width: 16px;
|
|
993
|
+
height: 16px;
|
|
994
|
+
}
|
|
995
|
+
.emdash-inline-ui-menu-text {
|
|
996
|
+
min-width: 0;
|
|
997
|
+
flex: 1;
|
|
998
|
+
overflow: hidden;
|
|
999
|
+
text-overflow: ellipsis;
|
|
1000
|
+
white-space: nowrap;
|
|
1001
|
+
}
|
|
1002
|
+
.emdash-inline-ui-tooltip {
|
|
1003
|
+
padding: 6px 10px;
|
|
1004
|
+
border-radius: 6px;
|
|
1005
|
+
background: var(--emdash-ui-raised);
|
|
1006
|
+
box-shadow: 0 10px 15px -3px var(--emdash-ui-tip-shadow), 0 4px 6px -4px var(--emdash-ui-tip-shadow);
|
|
1007
|
+
color: var(--emdash-ui-text);
|
|
1008
|
+
font-size: 13px;
|
|
1009
|
+
line-height: calc(1 / 0.85);
|
|
1010
|
+
outline: 1px solid var(--emdash-ui-fill);
|
|
1011
|
+
pointer-events: none;
|
|
1012
|
+
width: max-content;
|
|
1013
|
+
max-width: min(288px, calc(100vw - 16px));
|
|
1014
|
+
overflow-wrap: break-word;
|
|
1015
|
+
animation: emdash-inline-ui-tooltip-in 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
1016
|
+
transition-property: scale, opacity;
|
|
1017
|
+
transition-duration: 150ms;
|
|
1018
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1019
|
+
}
|
|
1020
|
+
.emdash-inline-ui-tooltip[data-status="close"] {
|
|
1021
|
+
scale: 0.9;
|
|
1022
|
+
opacity: 0;
|
|
1023
|
+
}
|
|
1024
|
+
.emdash-inline-ui-tooltip[data-instant] {
|
|
1025
|
+
animation: none;
|
|
1026
|
+
transition-duration: 0ms;
|
|
1027
|
+
}
|
|
1028
|
+
.emdash-inline-ui-tooltip-arrow {
|
|
1029
|
+
position: absolute;
|
|
1030
|
+
display: block;
|
|
1031
|
+
}
|
|
1032
|
+
.emdash-inline-ui-tooltip-arrow[data-side="top"] {
|
|
1033
|
+
bottom: -8px;
|
|
1034
|
+
rotate: 180deg;
|
|
1035
|
+
}
|
|
1036
|
+
.emdash-inline-ui-tooltip-arrow[data-side="bottom"] {
|
|
1037
|
+
top: -8px;
|
|
1038
|
+
}
|
|
1039
|
+
.emdash-inline-ui-tooltip-arrow-fill {
|
|
1040
|
+
fill: var(--emdash-ui-raised);
|
|
1041
|
+
}
|
|
1042
|
+
.emdash-inline-ui-tooltip-arrow-shadow {
|
|
1043
|
+
fill: var(--emdash-ui-tip-shadow);
|
|
1044
|
+
}
|
|
1045
|
+
.emdash-inline-ui-tooltip-arrow-stroke {
|
|
1046
|
+
fill: var(--emdash-ui-tip-stroke);
|
|
1047
|
+
}
|
|
1048
|
+
.emdash-inline-ui .emdash-slash-menu {
|
|
1049
|
+
display: flex;
|
|
1050
|
+
width: 320px;
|
|
1051
|
+
max-width: calc(100vw - 16px);
|
|
1052
|
+
flex-direction: column;
|
|
1053
|
+
overflow: hidden;
|
|
1054
|
+
}
|
|
1055
|
+
.emdash-slash-menu-viewport {
|
|
1056
|
+
min-height: 0;
|
|
1057
|
+
flex: 1;
|
|
1058
|
+
overflow-y: auto;
|
|
1059
|
+
overscroll-behavior: contain;
|
|
1060
|
+
padding: 4px;
|
|
1061
|
+
scroll-padding-block: 4px;
|
|
1062
|
+
}
|
|
1063
|
+
.emdash-slash-menu-group-label {
|
|
1064
|
+
padding: 6px 8px 2px;
|
|
1065
|
+
color: var(--emdash-ui-subtle);
|
|
1066
|
+
font-size: 12px;
|
|
1067
|
+
font-weight: 500;
|
|
1068
|
+
line-height: 16px;
|
|
1069
|
+
user-select: none;
|
|
1070
|
+
}
|
|
1071
|
+
[role="group"] + [role="group"] > .emdash-slash-menu-group-label {
|
|
1072
|
+
padding-block-start: 12px;
|
|
1073
|
+
}
|
|
1074
|
+
.emdash-slash-menu-item {
|
|
1075
|
+
display: flex;
|
|
1076
|
+
width: 100%;
|
|
1077
|
+
height: 32px;
|
|
1078
|
+
align-items: center;
|
|
1079
|
+
gap: 10px;
|
|
1080
|
+
padding: 0 8px;
|
|
1081
|
+
border: 0;
|
|
1082
|
+
border-radius: 6px;
|
|
1083
|
+
background: transparent;
|
|
1084
|
+
color: var(--emdash-ui-text);
|
|
1085
|
+
cursor: default;
|
|
1086
|
+
outline: none;
|
|
1087
|
+
text-align: start;
|
|
1088
|
+
}
|
|
1089
|
+
.emdash-slash-menu-item[aria-current="true"] {
|
|
1090
|
+
background: var(--emdash-ui-tint);
|
|
1091
|
+
}
|
|
1092
|
+
.emdash-slash-menu-icon {
|
|
1093
|
+
width: 18px;
|
|
1094
|
+
height: 18px;
|
|
1095
|
+
color: var(--emdash-ui-subtle);
|
|
1096
|
+
}
|
|
1097
|
+
.emdash-slash-menu-title {
|
|
1098
|
+
min-width: 0;
|
|
1099
|
+
flex: 1;
|
|
1100
|
+
overflow: hidden;
|
|
1101
|
+
text-overflow: ellipsis;
|
|
1102
|
+
white-space: nowrap;
|
|
1103
|
+
}
|
|
1104
|
+
.emdash-slash-menu-markdown {
|
|
1105
|
+
flex: none;
|
|
1106
|
+
padding-inline-start: 12px;
|
|
1107
|
+
color: var(--emdash-ui-subtle);
|
|
1108
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
1109
|
+
font-size: 12px;
|
|
1110
|
+
line-height: 16px;
|
|
1111
|
+
}
|
|
1112
|
+
.emdash-slash-menu-empty {
|
|
1113
|
+
margin: 0;
|
|
1114
|
+
padding: 6px 8px;
|
|
1115
|
+
color: var(--emdash-ui-subtle);
|
|
1116
|
+
}
|
|
1117
|
+
.emdash-slash-menu-footer {
|
|
1118
|
+
display: flex;
|
|
1119
|
+
flex: none;
|
|
1120
|
+
align-items: center;
|
|
1121
|
+
gap: 12px;
|
|
1122
|
+
padding: 8px 12px;
|
|
1123
|
+
border-block-start: 1px solid var(--emdash-ui-hairline);
|
|
1124
|
+
color: var(--emdash-ui-subtle);
|
|
1125
|
+
font-size: 12px;
|
|
1126
|
+
line-height: 16px;
|
|
1127
|
+
}
|
|
1128
|
+
.emdash-slash-menu-footer-text {
|
|
1129
|
+
min-width: 0;
|
|
1130
|
+
flex: 1;
|
|
1131
|
+
overflow: hidden;
|
|
1132
|
+
text-overflow: ellipsis;
|
|
1133
|
+
white-space: nowrap;
|
|
1134
|
+
}
|
|
1135
|
+
.emdash-inline-ui-sr-only {
|
|
1136
|
+
position: absolute;
|
|
1137
|
+
width: 1px;
|
|
1138
|
+
height: 1px;
|
|
1139
|
+
overflow: hidden;
|
|
1140
|
+
clip-path: inset(50%);
|
|
1141
|
+
white-space: nowrap;
|
|
1142
|
+
}
|
|
1143
|
+
@media (max-width: 639px) {
|
|
1144
|
+
.emdash-inline-ui-text-button {
|
|
1145
|
+
width: 32px;
|
|
1146
|
+
padding-inline: 0;
|
|
1147
|
+
}
|
|
1148
|
+
.emdash-inline-ui-text-button-label {
|
|
1149
|
+
position: absolute;
|
|
1150
|
+
width: 1px;
|
|
1151
|
+
height: 1px;
|
|
1152
|
+
overflow: hidden;
|
|
1153
|
+
clip-path: inset(50%);
|
|
1154
|
+
white-space: nowrap;
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
@media (pointer: coarse) {
|
|
1158
|
+
.emdash-inline-ui-button,
|
|
1159
|
+
.emdash-inline-ui-trigger,
|
|
1160
|
+
.emdash-inline-ui-input {
|
|
1161
|
+
height: 44px;
|
|
1162
|
+
}
|
|
1163
|
+
/* iOS zooms the page into a field with smaller text. */
|
|
1164
|
+
.emdash-inline-ui-input {
|
|
1165
|
+
font-size: 16px;
|
|
1166
|
+
}
|
|
1167
|
+
.emdash-inline-ui-button,
|
|
1168
|
+
.emdash-inline-ui-trigger[data-icon-only] {
|
|
1169
|
+
width: 44px;
|
|
1170
|
+
}
|
|
1171
|
+
.emdash-inline-ui-menu-item,
|
|
1172
|
+
.emdash-slash-menu-item {
|
|
1173
|
+
height: 44px;
|
|
1174
|
+
}
|
|
1175
|
+
.emdash-slash-menu-esc {
|
|
1176
|
+
display: none;
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
@media (max-width: 639px) and (pointer: coarse) {
|
|
1180
|
+
.emdash-inline-ui-text-button {
|
|
1181
|
+
width: 44px;
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1185
|
+
.emdash-inline-ui-menu,
|
|
1186
|
+
.emdash-inline-ui-tooltip,
|
|
1187
|
+
.emdash-inline-ui .emdash-slash-menu {
|
|
1188
|
+
animation: none;
|
|
1189
|
+
transition: none;
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
`;
|