dineway 0.1.8 → 0.1.11
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/LICENSE +9 -0
- package/README.md +63 -17
- package/dist/activity-events-BsMaXdJa.mjs +540 -0
- package/dist/allowed-origins-DG86sH8U.mjs +68 -0
- package/dist/api/route-utils.d.mts +41 -0
- package/dist/api/route-utils.mjs +26 -0
- package/dist/api/schemas/index.d.mts +3 -0
- package/dist/api/schemas/index.mjs +6 -0
- package/dist/api/schemas/setup.d.mts +42 -0
- package/dist/api/schemas/setup.mjs +39 -0
- package/dist/api-Cmy8Rjk5.mjs +2704 -0
- package/dist/api-tokens-Bu3ez1MO.mjs +153 -0
- package/dist/api-tokens-DzloJxuh.mjs +3 -0
- package/dist/{apply-iVSqz2qs.mjs → apply-Co5imxxT.mjs} +15 -689
- package/dist/astro/index.d.mts +10 -6
- package/dist/astro/index.mjs +86 -11
- package/dist/astro/middleware/auth.d.mts +10 -7
- package/dist/astro/middleware/auth.mjs +19 -104
- package/dist/astro/middleware/redirect.mjs +24 -14
- package/dist/astro/middleware/request-context.mjs +9 -6
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.mjs +86 -145
- package/dist/astro/routes/PluginRegistry.d.mts +14 -0
- package/dist/astro/routes/PluginRegistry.mjs +24 -0
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.d.mts +14 -0
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +65 -0
- package/dist/astro/routes/api/admin/allowed-domains/index.d.mts +14 -0
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +65 -0
- package/dist/astro/routes/api/admin/api-tokens/_id_.d.mts +10 -0
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +33 -0
- package/dist/astro/routes/api/admin/api-tokens/index.d.mts +16 -0
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +59 -0
- package/dist/astro/routes/api/admin/briefing.d.mts +7 -0
- package/dist/astro/routes/api/admin/briefing.mjs +71 -0
- package/dist/astro/routes/api/admin/bylines/_id_/index.d.mts +9 -0
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +74 -0
- package/dist/astro/routes/api/admin/bylines/index.d.mts +8 -0
- package/dist/astro/routes/api/admin/bylines/index.mjs +61 -0
- package/dist/astro/routes/api/admin/comments/_id_/status.d.mts +7 -0
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +80 -0
- package/dist/astro/routes/api/admin/comments/_id_.d.mts +14 -0
- package/dist/astro/routes/api/admin/comments/_id_.mjs +46 -0
- package/dist/astro/routes/api/admin/comments/bulk.d.mts +7 -0
- package/dist/astro/routes/api/admin/comments/bulk.mjs +36 -0
- package/dist/astro/routes/api/admin/comments/counts.d.mts +7 -0
- package/dist/astro/routes/api/admin/comments/counts.mjs +24 -0
- package/dist/astro/routes/api/admin/comments/index.d.mts +10 -0
- package/dist/astro/routes/api/admin/comments/index.mjs +40 -0
- package/dist/astro/routes/api/admin/context/_id_/history.d.mts +7 -0
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +45 -0
- package/dist/astro/routes/api/admin/context/_id_/index.d.mts +7 -0
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +45 -0
- package/dist/astro/routes/api/admin/context/_id_/review.d.mts +7 -0
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +60 -0
- package/dist/astro/routes/api/admin/context/_id_/supersede.d.mts +7 -0
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +63 -0
- package/dist/astro/routes/api/admin/context/diff.d.mts +7 -0
- package/dist/astro/routes/api/admin/context/diff.mjs +49 -0
- package/dist/astro/routes/api/admin/context/index.d.mts +8 -0
- package/dist/astro/routes/api/admin/context/index.mjs +71 -0
- package/dist/astro/routes/api/admin/context/stale.d.mts +7 -0
- package/dist/astro/routes/api/admin/context/stale.mjs +49 -0
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.d.mts +7 -0
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +51 -0
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.d.mts +7 -0
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +67 -0
- package/dist/astro/routes/api/admin/hitl-requests/index.d.mts +7 -0
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +55 -0
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.d.mts +7 -0
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +98 -0
- package/dist/astro/routes/api/admin/hooks/exclusive/index.d.mts +7 -0
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +33 -0
- package/dist/astro/routes/api/admin/oauth-clients/_id_.d.mts +18 -0
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +79 -0
- package/dist/astro/routes/api/admin/oauth-clients/index.d.mts +14 -0
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +58 -0
- package/dist/astro/routes/api/admin/plugins/_id_/disable.d.mts +7 -0
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +89 -0
- package/dist/astro/routes/api/admin/plugins/_id_/enable.d.mts +7 -0
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +89 -0
- package/dist/astro/routes/api/admin/plugins/_id_/index.d.mts +7 -0
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +54 -0
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.d.mts +7 -0
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +98 -0
- package/dist/astro/routes/api/admin/plugins/_id_/update.d.mts +7 -0
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +131 -0
- package/dist/astro/routes/api/admin/plugins/index.d.mts +7 -0
- package/dist/astro/routes/api/admin/plugins/index.mjs +52 -0
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.d.mts +7 -0
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +36 -0
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.d.mts +7 -0
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +54 -0
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.d.mts +7 -0
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +128 -0
- package/dist/astro/routes/api/admin/plugins/marketplace/index.d.mts +7 -0
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +61 -0
- package/dist/astro/routes/api/admin/plugins/updates.d.mts +7 -0
- package/dist/astro/routes/api/admin/plugins/updates.mjs +52 -0
- package/dist/astro/routes/api/admin/review-requests/_id_/index.d.mts +7 -0
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +26 -0
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.d.mts +7 -0
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +97 -0
- package/dist/astro/routes/api/admin/review-requests/index.d.mts +7 -0
- package/dist/astro/routes/api/admin/review-requests/index.mjs +31 -0
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.d.mts +7 -0
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +54 -0
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.d.mts +7 -0
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +36 -0
- package/dist/astro/routes/api/admin/themes/marketplace/index.d.mts +7 -0
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +70 -0
- package/dist/astro/routes/api/admin/users/_id_/disable.d.mts +7 -0
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +38 -0
- package/dist/astro/routes/api/admin/users/_id_/enable.d.mts +7 -0
- package/dist/astro/routes/api/admin/users/_id_/enable.mjs +29 -0
- package/dist/astro/routes/api/admin/users/_id_/index.d.mts +8 -0
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +104 -0
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.d.mts +7 -0
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +43 -0
- package/dist/astro/routes/api/admin/users/index.d.mts +7 -0
- package/dist/astro/routes/api/admin/users/index.mjs +54 -0
- package/dist/astro/routes/api/auth/dev-bypass.d.mts +8 -0
- package/dist/astro/routes/api/auth/dev-bypass.mjs +81 -0
- package/dist/astro/routes/api/auth/invite/accept.d.mts +7 -0
- package/dist/astro/routes/api/auth/invite/accept.mjs +31 -0
- package/dist/astro/routes/api/auth/invite/complete.d.mts +7 -0
- package/dist/astro/routes/api/auth/invite/complete.mjs +54 -0
- package/dist/astro/routes/api/auth/invite/index.d.mts +7 -0
- package/dist/astro/routes/api/auth/invite/index.mjs +51 -0
- package/dist/astro/routes/api/auth/invite/register-options.d.mts +7 -0
- package/dist/astro/routes/api/auth/invite/register-options.mjs +44 -0
- package/dist/astro/routes/api/auth/logout.d.mts +7 -0
- package/dist/astro/routes/api/auth/logout.mjs +24 -0
- package/dist/astro/routes/api/auth/magic-link/send.d.mts +7 -0
- package/dist/astro/routes/api/auth/magic-link/send.mjs +48 -0
- package/dist/astro/routes/api/auth/magic-link/verify.d.mts +7 -0
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +32 -0
- package/dist/astro/routes/api/auth/me.d.mts +13 -0
- package/dist/astro/routes/api/auth/me.mjs +41 -0
- package/dist/astro/routes/api/auth/mode.d.mts +7 -0
- package/dist/astro/routes/api/auth/mode.mjs +28 -0
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.d.mts +7 -0
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +114 -0
- package/dist/astro/routes/api/auth/oauth/_provider_.d.mts +7 -0
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +58 -0
- package/dist/astro/routes/api/auth/passkey/_id_.d.mts +14 -0
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +62 -0
- package/dist/astro/routes/api/auth/passkey/index.d.mts +7 -0
- package/dist/astro/routes/api/auth/passkey/index.mjs +25 -0
- package/dist/astro/routes/api/auth/passkey/options.d.mts +7 -0
- package/dist/astro/routes/api/auth/passkey/options.mjs +46 -0
- package/dist/astro/routes/api/auth/passkey/register/options.d.mts +7 -0
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +44 -0
- package/dist/astro/routes/api/auth/passkey/register/verify.d.mts +7 -0
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +59 -0
- package/dist/astro/routes/api/auth/passkey/verify.d.mts +7 -0
- package/dist/astro/routes/api/auth/passkey/verify.mjs +47 -0
- package/dist/astro/routes/api/auth/signup/complete.d.mts +7 -0
- package/dist/astro/routes/api/auth/signup/complete.mjs +55 -0
- package/dist/astro/routes/api/auth/signup/request.d.mts +7 -0
- package/dist/astro/routes/api/auth/signup/request.mjs +44 -0
- package/dist/astro/routes/api/auth/signup/verify.d.mts +7 -0
- package/dist/astro/routes/api/auth/signup/verify.mjs +32 -0
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.d.mts +14 -0
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +193 -0
- package/dist/astro/routes/api/content/_collection_/_id_/compare.d.mts +7 -0
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +17 -0
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.d.mts +7 -0
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +36 -0
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.d.mts +7 -0
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +39 -0
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.d.mts +7 -0
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +31 -0
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.d.mts +7 -0
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +78 -0
- package/dist/astro/routes/api/content/_collection_/_id_/publish.d.mts +7 -0
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +92 -0
- package/dist/astro/routes/api/content/_collection_/_id_/restore.d.mts +7 -0
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +36 -0
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.d.mts +7 -0
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +19 -0
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.d.mts +8 -0
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +75 -0
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.d.mts +14 -0
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +85 -0
- package/dist/astro/routes/api/content/_collection_/_id_/translations.d.mts +7 -0
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +40 -0
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.d.mts +7 -0
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +36 -0
- package/dist/astro/routes/api/content/_collection_/_id_.d.mts +9 -0
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +114 -0
- package/dist/astro/routes/api/content/_collection_/index.d.mts +8 -0
- package/dist/astro/routes/api/content/_collection_/index.mjs +74 -0
- package/dist/astro/routes/api/content/_collection_/trash.d.mts +7 -0
- package/dist/astro/routes/api/content/_collection_/trash.mjs +23 -0
- package/dist/astro/routes/api/dashboard.d.mts +7 -0
- package/dist/astro/routes/api/dashboard.mjs +26 -0
- package/dist/astro/routes/api/dev/emails.d.mts +8 -0
- package/dist/astro/routes/api/dev/emails.mjs +17 -0
- package/dist/astro/routes/api/health.d.mts +7 -0
- package/dist/astro/routes/api/health.mjs +34 -0
- package/dist/astro/routes/api/import/probe.d.mts +17 -0
- package/dist/astro/routes/api/import/probe.mjs +33 -0
- package/dist/astro/routes/api/import/wordpress/analyze.d.mts +87 -0
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +305 -0
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +37 -0
- package/dist/astro/routes/api/import/wordpress/execute.mjs +197 -0
- package/dist/astro/routes/api/import/wordpress/media.d.mts +35 -0
- package/dist/astro/routes/api/import/wordpress/media.mjs +222 -0
- package/dist/astro/routes/api/import/wordpress/prepare.d.mts +19 -0
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +155 -0
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +21 -0
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +289 -0
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +15 -0
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +69 -0
- package/dist/astro/routes/api/import/wordpress-plugin/callback.d.mts +7 -0
- package/dist/astro/routes/api/import/wordpress-plugin/callback.mjs +28 -0
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +19 -0
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +268 -0
- package/dist/astro/routes/api/manifest.d.mts +7 -0
- package/dist/astro/routes/api/manifest.mjs +50 -0
- package/dist/astro/routes/api/mcp.d.mts +15 -0
- package/dist/astro/routes/api/mcp.mjs +2700 -0
- package/dist/astro/routes/api/media/_id_/confirm.d.mts +10 -0
- package/dist/astro/routes/api/media/_id_/confirm.mjs +59 -0
- package/dist/astro/routes/api/media/_id_.d.mts +22 -0
- package/dist/astro/routes/api/media/_id_.mjs +81 -0
- package/dist/astro/routes/api/media/file/_...key_.d.mts +7 -0
- package/dist/astro/routes/api/media/file/_...key_.mjs +49 -0
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.d.mts +14 -0
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +49 -0
- package/dist/astro/routes/api/media/providers/_providerId_/index.d.mts +14 -0
- package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +72 -0
- package/dist/astro/routes/api/media/providers/index.d.mts +10 -0
- package/dist/astro/routes/api/media/providers/index.mjs +18 -0
- package/dist/astro/routes/api/media/upload-url.d.mts +10 -0
- package/dist/astro/routes/api/media/upload-url.mjs +82 -0
- package/dist/astro/routes/api/media.d.mts +16 -0
- package/dist/astro/routes/api/media.mjs +137 -0
- package/dist/astro/routes/api/menus/_name_/items.d.mts +9 -0
- package/{src/astro/routes/api/menus/[name]/items.ts → dist/astro/routes/api/menus/_name_/items.mjs} +63 -105
- package/dist/astro/routes/api/menus/_name_/reorder.d.mts +7 -0
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +77 -0
- package/dist/astro/routes/api/menus/_name_.d.mts +9 -0
- package/dist/astro/routes/api/menus/_name_.mjs +123 -0
- package/dist/astro/routes/api/menus/index.d.mts +8 -0
- package/dist/astro/routes/api/menus/index.mjs +84 -0
- package/dist/astro/routes/api/oauth/authorize.d.mts +8 -0
- package/dist/astro/routes/api/oauth/authorize.mjs +265 -0
- package/dist/astro/routes/api/oauth/device/authorize.d.mts +7 -0
- package/dist/astro/routes/api/oauth/device/authorize.mjs +30 -0
- package/dist/astro/routes/api/oauth/device/code.d.mts +7 -0
- package/dist/astro/routes/api/oauth/device/code.mjs +34 -0
- package/dist/astro/routes/api/oauth/device/token.d.mts +7 -0
- package/dist/astro/routes/api/oauth/device/token.mjs +45 -0
- package/dist/astro/routes/api/oauth/register.d.mts +8 -0
- package/dist/astro/routes/api/oauth/register.mjs +115 -0
- package/dist/astro/routes/api/oauth/token/refresh.d.mts +7 -0
- package/dist/astro/routes/api/oauth/token/refresh.mjs +28 -0
- package/dist/astro/routes/api/oauth/token/revoke.d.mts +7 -0
- package/dist/astro/routes/api/oauth/token/revoke.mjs +25 -0
- package/dist/astro/routes/api/oauth/token.d.mts +8 -0
- package/dist/astro/routes/api/oauth/token.mjs +138 -0
- package/dist/astro/routes/api/openapi.json.d.mts +7 -0
- package/dist/astro/routes/api/openapi.json.mjs +2638 -0
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.d.mts +11 -0
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +77 -0
- package/dist/astro/routes/api/redirects/404s/index.d.mts +9 -0
- package/dist/astro/routes/api/redirects/404s/index.mjs +62 -0
- package/dist/astro/routes/api/redirects/404s/summary.d.mts +7 -0
- package/dist/astro/routes/api/redirects/404s/summary.mjs +34 -0
- package/dist/astro/routes/api/redirects/_id_.d.mts +9 -0
- package/dist/astro/routes/api/redirects/_id_.mjs +152 -0
- package/dist/astro/routes/api/redirects/index.d.mts +8 -0
- package/dist/astro/routes/api/redirects/index.mjs +97 -0
- package/dist/astro/routes/api/revisions/_revisionId_/index.d.mts +7 -0
- package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +16 -0
- package/dist/astro/routes/api/revisions/_revisionId_/restore.d.mts +7 -0
- package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +23 -0
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.d.mts +9 -0
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +98 -0
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.d.mts +8 -0
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +80 -0
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.d.mts +7 -0
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +67 -0
- package/dist/astro/routes/api/schema/collections/_slug_/index.d.mts +9 -0
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +97 -0
- package/dist/astro/routes/api/schema/collections/index.d.mts +8 -0
- package/dist/astro/routes/api/schema/collections/index.mjs +77 -0
- package/dist/astro/routes/api/schema/index.d.mts +7 -0
- package/dist/astro/routes/api/schema/index.mjs +79 -0
- package/dist/astro/routes/api/schema/orphans/_slug_.d.mts +7 -0
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +58 -0
- package/dist/astro/routes/api/schema/orphans/index.d.mts +7 -0
- package/dist/astro/routes/api/schema/orphans/index.mjs +53 -0
- package/dist/astro/routes/api/search/enable.d.mts +15 -0
- package/dist/astro/routes/api/search/enable.mjs +55 -0
- package/dist/astro/routes/api/search/index.d.mts +16 -0
- package/dist/astro/routes/api/search/index.mjs +52 -0
- package/dist/astro/routes/api/search/rebuild.d.mts +13 -0
- package/dist/astro/routes/api/search/rebuild.mjs +48 -0
- package/dist/astro/routes/api/search/stats.d.mts +10 -0
- package/dist/astro/routes/api/search/stats.mjs +28 -0
- package/dist/astro/routes/api/search/suggest.d.mts +15 -0
- package/dist/astro/routes/api/search/suggest.mjs +43 -0
- package/dist/astro/routes/api/sections/_slug_.d.mts +9 -0
- package/dist/astro/routes/api/sections/_slug_.mjs +156 -0
- package/dist/astro/routes/api/sections/index.d.mts +8 -0
- package/dist/astro/routes/api/sections/index.mjs +99 -0
- package/dist/astro/routes/api/settings/email.d.mts +17 -0
- package/dist/astro/routes/api/settings/email.mjs +102 -0
- package/dist/astro/routes/api/settings.d.mts +20 -0
- package/dist/astro/routes/api/settings.mjs +101 -0
- package/dist/astro/routes/api/setup/admin-verify.d.mts +7 -0
- package/dist/astro/routes/api/setup/admin-verify.mjs +67 -0
- package/dist/astro/routes/api/setup/admin.d.mts +7 -0
- package/dist/astro/routes/api/setup/admin.mjs +68 -0
- package/dist/astro/routes/api/setup/dev-bypass.d.mts +8 -0
- package/dist/astro/routes/api/setup/dev-bypass.mjs +137 -0
- package/dist/astro/routes/api/setup/dev-reset.d.mts +7 -0
- package/dist/astro/routes/api/setup/dev-reset.mjs +22 -0
- package/dist/astro/routes/api/setup/index.d.mts +7 -0
- package/dist/astro/routes/api/setup/index.mjs +93 -0
- package/dist/astro/routes/api/setup/status.d.mts +7 -0
- package/dist/astro/routes/api/setup/status.mjs +57 -0
- package/dist/astro/routes/api/snapshot.d.mts +7 -0
- package/dist/astro/routes/api/snapshot.mjs +227 -0
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.d.mts +18 -0
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +189 -0
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.d.mts +14 -0
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +113 -0
- package/dist/astro/routes/api/taxonomies/index.d.mts +14 -0
- package/dist/astro/routes/api/taxonomies/index.mjs +103 -0
- package/dist/astro/routes/api/themes/preview.d.mts +7 -0
- package/dist/astro/routes/api/themes/preview.mjs +47 -0
- package/dist/astro/routes/api/typegen.d.mts +17 -0
- package/dist/astro/routes/api/typegen.mjs +75 -0
- package/dist/astro/routes/api/well-known/auth.d.mts +7 -0
- package/dist/astro/routes/api/well-known/auth.mjs +42 -0
- package/dist/astro/routes/api/well-known/oauth-authorization-server.d.mts +7 -0
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +33 -0
- package/dist/astro/routes/api/well-known/oauth-protected-resource.d.mts +7 -0
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +21 -0
- package/dist/astro/routes/api/widget-areas/_name_/reorder.d.mts +7 -0
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +88 -0
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.d.mts +8 -0
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +158 -0
- package/dist/astro/routes/api/widget-areas/_name_/widgets.d.mts +7 -0
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +104 -0
- package/dist/astro/routes/api/widget-areas/_name_.d.mts +8 -0
- package/dist/astro/routes/api/widget-areas/_name_.mjs +99 -0
- package/dist/astro/routes/api/widget-areas/index.d.mts +8 -0
- package/dist/astro/routes/api/widget-areas/index.mjs +108 -0
- package/dist/astro/routes/api/widget-components.d.mts +7 -0
- package/dist/astro/routes/api/widget-components.mjs +15 -0
- package/dist/astro/routes/robots.txt.d.mts +7 -0
- package/dist/astro/routes/robots.txt.mjs +60 -0
- package/dist/astro/routes/sitemap-_collection_.xml.d.mts +7 -0
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +70 -0
- package/dist/astro/routes/sitemap.xml.d.mts +7 -0
- package/dist/astro/routes/sitemap.xml.mjs +63 -0
- package/dist/astro/types.d.mts +41 -9
- package/dist/auth/providers/github-admin.d.mts +9 -0
- package/dist/auth/providers/github-admin.mjs +27 -0
- package/dist/auth/providers/github.d.mts +12 -0
- package/dist/auth/providers/github.mjs +17 -0
- package/dist/auth/providers/google-admin.d.mts +9 -0
- package/dist/auth/providers/google-admin.mjs +43 -0
- package/dist/auth/providers/google.d.mts +12 -0
- package/dist/auth/providers/google.mjs +17 -0
- package/dist/auth-control-guard-DKUe_1oa.mjs +13 -0
- package/dist/authorize-BBj8C6Y8.mjs +36 -0
- package/dist/briefing-BrXCuMEE.mjs +1294 -0
- package/dist/briefing-ClWw4mc9.mjs +29 -0
- package/dist/{byline-OhH2dlRu.mjs → byline-naZxOPSa.mjs} +3 -3
- package/dist/{bylines-BGpD9_hy.mjs → bylines-BcOPh6Ej.mjs} +20 -53
- package/dist/bylines-HfUKum_j.d.mts +2023 -0
- package/dist/{cache-BdSY-gQN.mjs → cache-DEbQ13c9.mjs} +21 -11
- package/dist/challenge-store-DHMgBGOq.mjs +48 -0
- package/dist/cli/index.mjs +142 -22
- package/dist/client/external-auth-headers.d.mts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.mjs +3 -3
- package/dist/comment-DFO-gWDH.mjs +246 -0
- package/dist/comments-Gy3zLBaP.mjs +186 -0
- package/dist/components-DND2rd3D.mjs +107 -0
- package/dist/{content-DWi4d0rT.mjs → content-CyLkb-qH.mjs} +33 -44
- package/dist/context-bE5Kyvcj.mjs +184 -0
- package/dist/context-nxMyOe3p.mjs +849 -0
- package/dist/context-route-helpers-D-6uCQ0S.mjs +45 -0
- package/dist/context-types-C-LwdAxx.mjs +23 -0
- package/dist/cron-DGzVTtJp.mjs +263 -0
- package/dist/dashboard-DqnYU8EU.mjs +120 -0
- package/dist/db/index.d.mts +3 -3
- package/dist/db/libsql.d.mts +1 -1
- package/dist/db/libsql.mjs +3 -3
- package/dist/db/postgres.d.mts +1 -1
- package/dist/db/sqlite.d.mts +1 -1
- package/dist/db/sqlite.mjs +1 -2
- package/dist/device-flow-7AhWNwCK.mjs +487 -0
- package/dist/email-console-CgLVZbcn.mjs +36 -0
- package/dist/entity-aliases-C0v-yNET.mjs +51 -0
- package/dist/error-DEGjx2Xw.mjs +435 -0
- package/dist/escape-mNZr4t2A.mjs +8 -0
- package/dist/experimental-workflows-DldxJlqV.mjs +38 -0
- package/dist/fts-manager-B1pTNEG_.mjs +297 -0
- package/dist/hash-CDX7M0ze.mjs +32 -0
- package/dist/hitl-requests-Bx3Bkk9l.mjs +118 -0
- package/dist/hitl-route-helpers-DMmJRS7B.mjs +96 -0
- package/dist/import-DD3f2jkc.mjs +243 -0
- package/dist/import-DVZcYlDp.mjs +1323 -0
- package/dist/index-CkljPf5F.d.mts +227 -0
- package/dist/index.d.mts +15 -11
- package/dist/index.mjs +60 -22
- package/dist/{loader-sMG4TZ-u.mjs → loader-PZnPxFLc.mjs} +42 -5
- package/dist/{manifest-schema-D1MSVnoI.mjs → manifest-schema-DYoCQ5np.mjs} +22 -10
- package/dist/media/index.d.mts +1 -1
- package/dist/media/index.mjs +2 -1
- package/dist/media/local-runtime.d.mts +11 -7
- package/dist/media/local-runtime.mjs +3 -3
- package/dist/{media-DMTr80Gv.mjs → media-_7Fxdu45.mjs} +1 -1
- package/dist/menus-BacxVCCo.mjs +312 -0
- package/dist/menus-CrzHokKj.mjs +3502 -0
- package/dist/normalize-C49G_o1k.mjs +126 -0
- package/dist/oauth-authorization-C1qiw4hd.mjs +283 -0
- package/dist/oauth-clients-CvWatf5p.mjs +298 -0
- package/dist/oauth-state-store-hSdzxsEe.mjs +48 -0
- package/dist/oauth-user-lookup-B4OcmsLV.mjs +25 -0
- package/dist/options-z8VVg1Ll.mjs +114 -0
- package/dist/page/index.d.mts +2 -2
- package/dist/parse-BeQXIt1U.mjs +88 -0
- package/dist/passkey-config-Daqs5fjq.mjs +42 -0
- package/dist/{patterns-CrCYkMBb.mjs → patterns-K0DLqWir.mjs} +53 -1
- package/dist/{placeholder-Cp8g5Emj.mjs → placeholder-C2P5fKa4.mjs} +1 -126
- package/dist/plugins/adapt-sandbox-entry.d.mts +9 -5
- package/dist/plugins/adapt-sandbox-entry.mjs +4 -4
- package/dist/preview-C_4DyVox.mjs +788 -0
- package/dist/public-url-BB_umF5G.mjs +71 -0
- package/dist/{query-kDmwCsHh.mjs → query-RiobVwB5.mjs} +93 -19
- package/dist/rate-limit-CbJoj_fT.mjs +112 -0
- package/dist/{redirect-DnEWAkVg.mjs → redirect-CGl64yOX.mjs} +9 -5
- package/dist/redirect-ClSmMOtC.mjs +16 -0
- package/dist/redirects-B69T59hK.mjs +499 -0
- package/dist/redirects-CqaxraTO.mjs +1070 -0
- package/dist/{registry-C0zjeB9P.mjs → registry-C-_hxLqa.mjs} +26 -294
- package/dist/request-meta-Bd0mQfiS.mjs +130 -0
- package/dist/review-requests-C2DIHwlJ.mjs +148 -0
- package/dist/review-requests-DIyjw-K_.mjs +79 -0
- package/dist/{runner-CFI6B6J2.d.mts → runner-9eIQXuc2.d.mts} +1 -1
- package/dist/{index-yvc6E_17.d.mts → runtime-C4-7y7xK.d.mts} +1539 -2007
- package/dist/runtime.d.mts +10 -6
- package/dist/runtime.mjs +3 -3
- package/dist/schema-BNpI53of.mjs +40 -0
- package/dist/search-DM6CVti3.mjs +337 -0
- package/dist/secrets-dI8zzTV7.mjs +160 -0
- package/dist/sections-DZFyAQXd.mjs +338 -0
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +18 -13
- package/dist/seo/index.d.mts +1 -1
- package/dist/seo-BBgTCOYU.mjs +85 -0
- package/dist/seo-CUQctrog.mjs +129 -0
- package/dist/service-CSfcQguB.mjs +194 -0
- package/dist/settings-4XnpVMOS.mjs +223 -0
- package/dist/settings-Bw93cLfe.mjs +50 -0
- package/dist/setup-complete-DidsDQ1e.mjs +21 -0
- package/dist/setup-nonce-pml1PMKo.mjs +17 -0
- package/dist/sidecar-client-vzwV98K4.mjs +66 -0
- package/dist/site-activity-B8FjLIVh.mjs +104 -0
- package/dist/site-context-Bpu_Paur.mjs +4122 -0
- package/dist/site-url-CYIcO0Tj.mjs +12 -0
- package/dist/slugify-PDTDtMXp.mjs +30 -0
- package/dist/ssrf-CmM76lLV.mjs +248 -0
- package/dist/storage/local.d.mts +1 -1
- package/dist/storage/local.mjs +1 -1
- package/dist/storage/s3.d.mts +1 -1
- package/dist/storage/s3.mjs +2 -2
- package/dist/{taxonomies-1s5PaS_8.mjs → taxonomies-BvBgfzn3.mjs} +11 -7
- package/dist/taxonomies-CpqGcIJD.mjs +355 -0
- package/dist/taxonomy-D5cbhc8u.mjs +165 -0
- package/dist/{tokens-CJz9ubV6.mjs → tokens-DLTo4dO2.mjs} +1 -1
- package/dist/{transport-DB5eDN4x.mjs → transport-C9e_h-BF.mjs} +5 -4
- package/dist/trusted-proxy-Bi0Cuk5n.mjs +30 -0
- package/dist/{types-BawVha09.mjs → types-Bs6lTBBW.mjs} +1 -1
- package/dist/types-C982qI5I.d.mts +344 -0
- package/dist/types-D4XVOt01.d.mts +165 -0
- package/dist/{types-Cj0KMIZV.d.mts → types-DgfUZqcd.d.mts} +54 -16
- package/dist/{types-BuMDPy5C.d.mts → types-IPACEM14.d.mts} +6 -0
- package/dist/user-CcXq-zoL.mjs +154 -0
- package/dist/utils-D2in-zwy.mjs +285 -0
- package/dist/{validate-BZ5wnLLp.mjs → validate-BJgA6TW_.mjs} +1 -1
- package/dist/{validate-IPf8n4Fj.d.mts → validate-JCZihRIa.d.mts} +3 -3
- package/dist/version-DH53KCQd.mjs +6 -0
- package/dist/widgets-B7Q_7bxN.mjs +104 -0
- package/dist/wordpress-slugs-BevajWrC.mjs +14 -0
- package/dist/zod-generator-DBVP8D0P.mjs +132 -0
- package/locals.d.ts +1 -6
- package/package.json +96 -41
- package/src/components/DinewayHead.astro +8 -4
- package/src/components/DinewayImage.astro +7 -5
- package/src/components/DinewayMedia.astro +9 -3
- package/src/components/Gallery.astro +5 -3
- package/src/components/Image.astro +5 -1
- package/src/components/InlinePortableTextEditor.tsx +68 -19
- package/dist/error-BmL6QipT.mjs +0 -30
- package/dist/search-Hlm6g8Td.mjs +0 -11200
- package/dist/version-DxxaFHZ_.mjs +0 -6
- package/src/astro/routes/PluginRegistry.tsx +0 -21
- package/src/astro/routes/api/admin/allowed-domains/[domain].ts +0 -112
- package/src/astro/routes/api/admin/allowed-domains/index.ts +0 -108
- package/src/astro/routes/api/admin/api-tokens/[id].ts +0 -44
- package/src/astro/routes/api/admin/api-tokens/index.ts +0 -90
- package/src/astro/routes/api/admin/briefing.ts +0 -76
- package/src/astro/routes/api/admin/bylines/[id]/index.ts +0 -90
- package/src/astro/routes/api/admin/bylines/index.ts +0 -74
- package/src/astro/routes/api/admin/comments/[id]/status.ts +0 -120
- package/src/astro/routes/api/admin/comments/[id].ts +0 -64
- package/src/astro/routes/api/admin/comments/bulk.ts +0 -42
- package/src/astro/routes/api/admin/comments/counts.ts +0 -30
- package/src/astro/routes/api/admin/comments/index.ts +0 -46
- package/src/astro/routes/api/admin/context/[id]/history.ts +0 -35
- package/src/astro/routes/api/admin/context/[id]/index.ts +0 -35
- package/src/astro/routes/api/admin/context/[id]/review.ts +0 -57
- package/src/astro/routes/api/admin/context/[id]/supersede.ts +0 -58
- package/src/astro/routes/api/admin/context/diff.ts +0 -35
- package/src/astro/routes/api/admin/context/index.ts +0 -69
- package/src/astro/routes/api/admin/context/stale.ts +0 -35
- package/src/astro/routes/api/admin/hitl-requests/[id]/index.ts +0 -38
- package/src/astro/routes/api/admin/hitl-requests/[id]/resolve.ts +0 -54
- package/src/astro/routes/api/admin/hitl-requests/index.ts +0 -38
- package/src/astro/routes/api/admin/hooks/exclusive/[hookName].ts +0 -132
- package/src/astro/routes/api/admin/hooks/exclusive/index.ts +0 -51
- package/src/astro/routes/api/admin/oauth-clients/[id].ts +0 -137
- package/src/astro/routes/api/admin/oauth-clients/index.ts +0 -95
- package/src/astro/routes/api/admin/plugins/[id]/disable.ts +0 -91
- package/src/astro/routes/api/admin/plugins/[id]/enable.ts +0 -91
- package/src/astro/routes/api/admin/plugins/[id]/index.ts +0 -38
- package/src/astro/routes/api/admin/plugins/[id]/uninstall.ts +0 -98
- package/src/astro/routes/api/admin/plugins/[id]/update.ts +0 -154
- package/src/astro/routes/api/admin/plugins/index.ts +0 -32
- package/src/astro/routes/api/admin/plugins/marketplace/[id]/icon.ts +0 -62
- package/src/astro/routes/api/admin/plugins/marketplace/[id]/index.ts +0 -33
- package/src/astro/routes/api/admin/plugins/marketplace/[id]/install.ts +0 -135
- package/src/astro/routes/api/admin/plugins/marketplace/index.ts +0 -38
- package/src/astro/routes/api/admin/plugins/updates.ts +0 -28
- package/src/astro/routes/api/admin/review-requests/[id]/index.ts +0 -35
- package/src/astro/routes/api/admin/review-requests/[id]/resolve.ts +0 -52
- package/src/astro/routes/api/admin/review-requests/index.ts +0 -35
- package/src/astro/routes/api/admin/themes/marketplace/[id]/index.ts +0 -33
- package/src/astro/routes/api/admin/themes/marketplace/[id]/thumbnail.ts +0 -62
- package/src/astro/routes/api/admin/themes/marketplace/index.ts +0 -45
- package/src/astro/routes/api/admin/users/[id]/disable.ts +0 -72
- package/src/astro/routes/api/admin/users/[id]/enable.ts +0 -48
- package/src/astro/routes/api/admin/users/[id]/index.ts +0 -166
- package/src/astro/routes/api/admin/users/[id]/send-recovery.ts +0 -72
- package/src/astro/routes/api/admin/users/index.ts +0 -66
- package/src/astro/routes/api/auth/dev-bypass.ts +0 -139
- package/src/astro/routes/api/auth/invite/accept.ts +0 -52
- package/src/astro/routes/api/auth/invite/complete.ts +0 -86
- package/src/astro/routes/api/auth/invite/index.ts +0 -99
- package/src/astro/routes/api/auth/invite/register-options.ts +0 -73
- package/src/astro/routes/api/auth/logout.ts +0 -40
- package/src/astro/routes/api/auth/magic-link/send.ts +0 -90
- package/src/astro/routes/api/auth/magic-link/verify.ts +0 -71
- package/src/astro/routes/api/auth/me.ts +0 -60
- package/src/astro/routes/api/auth/oauth/[provider]/callback.ts +0 -221
- package/src/astro/routes/api/auth/oauth/[provider].ts +0 -120
- package/src/astro/routes/api/auth/passkey/[id].ts +0 -124
- package/src/astro/routes/api/auth/passkey/index.ts +0 -54
- package/src/astro/routes/api/auth/passkey/options.ts +0 -85
- package/src/astro/routes/api/auth/passkey/register/options.ts +0 -88
- package/src/astro/routes/api/auth/passkey/register/verify.ts +0 -119
- package/src/astro/routes/api/auth/passkey/verify.ts +0 -72
- package/src/astro/routes/api/auth/signup/complete.ts +0 -87
- package/src/astro/routes/api/auth/signup/request.ts +0 -89
- package/src/astro/routes/api/auth/signup/verify.ts +0 -53
- package/src/astro/routes/api/comments/[collection]/[contentId]/index.ts +0 -310
- package/src/astro/routes/api/content/[collection]/[id]/compare.ts +0 -28
- package/src/astro/routes/api/content/[collection]/[id]/discard-draft.ts +0 -68
- package/src/astro/routes/api/content/[collection]/[id]/duplicate.ts +0 -77
- package/src/astro/routes/api/content/[collection]/[id]/permanent.ts +0 -42
- package/src/astro/routes/api/content/[collection]/[id]/preview-url.ts +0 -107
- package/src/astro/routes/api/content/[collection]/[id]/publish.ts +0 -100
- package/src/astro/routes/api/content/[collection]/[id]/restore.ts +0 -64
- package/src/astro/routes/api/content/[collection]/[id]/revisions.ts +0 -31
- package/src/astro/routes/api/content/[collection]/[id]/schedule.ts +0 -129
- package/src/astro/routes/api/content/[collection]/[id]/terms/[taxonomy].ts +0 -143
- package/src/astro/routes/api/content/[collection]/[id]/translations.ts +0 -50
- package/src/astro/routes/api/content/[collection]/[id]/unpublish.ts +0 -69
- package/src/astro/routes/api/content/[collection]/[id].ts +0 -173
- package/src/astro/routes/api/content/[collection]/index.ts +0 -103
- package/src/astro/routes/api/content/[collection]/trash.ts +0 -33
- package/src/astro/routes/api/dashboard.ts +0 -32
- package/src/astro/routes/api/dev/emails.ts +0 -36
- package/src/astro/routes/api/health.ts +0 -54
- package/src/astro/routes/api/import/probe.ts +0 -47
- package/src/astro/routes/api/import/wordpress/analyze.ts +0 -523
- package/src/astro/routes/api/import/wordpress/execute.ts +0 -330
- package/src/astro/routes/api/import/wordpress/media.ts +0 -338
- package/src/astro/routes/api/import/wordpress/prepare.ts +0 -212
- package/src/astro/routes/api/import/wordpress/rewrite-urls.ts +0 -425
- package/src/astro/routes/api/import/wordpress-plugin/analyze.ts +0 -111
- package/src/astro/routes/api/import/wordpress-plugin/callback.ts +0 -58
- package/src/astro/routes/api/import/wordpress-plugin/execute.ts +0 -399
- package/src/astro/routes/api/manifest.ts +0 -75
- package/src/astro/routes/api/mcp.ts +0 -125
- package/src/astro/routes/api/media/[id]/confirm.ts +0 -93
- package/src/astro/routes/api/media/[id].ts +0 -145
- package/src/astro/routes/api/media/file/[...key].ts +0 -79
- package/src/astro/routes/api/media/providers/[providerId]/[itemId].ts +0 -91
- package/src/astro/routes/api/media/providers/[providerId]/index.ts +0 -111
- package/src/astro/routes/api/media/providers/index.ts +0 -30
- package/src/astro/routes/api/media/upload-url.ts +0 -146
- package/src/astro/routes/api/media.ts +0 -204
- package/src/astro/routes/api/menus/[name]/reorder.ts +0 -79
- package/src/astro/routes/api/menus/[name].ts +0 -145
- package/src/astro/routes/api/menus/index.ts +0 -91
- package/src/astro/routes/api/oauth/authorize.ts +0 -430
- package/src/astro/routes/api/oauth/device/authorize.ts +0 -45
- package/src/astro/routes/api/oauth/device/code.ts +0 -56
- package/src/astro/routes/api/oauth/device/token.ts +0 -70
- package/src/astro/routes/api/oauth/register.ts +0 -182
- package/src/astro/routes/api/oauth/token/refresh.ts +0 -38
- package/src/astro/routes/api/oauth/token/revoke.ts +0 -38
- package/src/astro/routes/api/oauth/token.ts +0 -195
- package/src/astro/routes/api/openapi.json.ts +0 -33
- package/src/astro/routes/api/plugins/[pluginId]/[...path].ts +0 -109
- package/src/astro/routes/api/redirects/404s/index.ts +0 -72
- package/src/astro/routes/api/redirects/404s/summary.ts +0 -33
- package/src/astro/routes/api/redirects/[id].ts +0 -183
- package/src/astro/routes/api/redirects/index.ts +0 -100
- package/src/astro/routes/api/revisions/[revisionId]/index.ts +0 -29
- package/src/astro/routes/api/revisions/[revisionId]/restore.ts +0 -62
- package/src/astro/routes/api/schema/collections/[slug]/fields/[fieldSlug].ts +0 -104
- package/src/astro/routes/api/schema/collections/[slug]/fields/index.ts +0 -67
- package/src/astro/routes/api/schema/collections/[slug]/fields/reorder.ts +0 -45
- package/src/astro/routes/api/schema/collections/[slug]/index.ts +0 -107
- package/src/astro/routes/api/schema/collections/index.ts +0 -61
- package/src/astro/routes/api/schema/index.ts +0 -109
- package/src/astro/routes/api/schema/orphans/[slug].ts +0 -36
- package/src/astro/routes/api/schema/orphans/index.ts +0 -26
- package/src/astro/routes/api/search/enable.ts +0 -64
- package/src/astro/routes/api/search/index.ts +0 -52
- package/src/astro/routes/api/search/rebuild.ts +0 -72
- package/src/astro/routes/api/search/stats.ts +0 -35
- package/src/astro/routes/api/search/suggest.ts +0 -50
- package/src/astro/routes/api/sections/[slug].ts +0 -203
- package/src/astro/routes/api/sections/index.ts +0 -107
- package/src/astro/routes/api/settings/email.ts +0 -150
- package/src/astro/routes/api/settings.ts +0 -116
- package/src/astro/routes/api/setup/admin-verify.ts +0 -122
- package/src/astro/routes/api/setup/admin.ts +0 -104
- package/src/astro/routes/api/setup/dev-bypass.ts +0 -200
- package/src/astro/routes/api/setup/dev-reset.ts +0 -40
- package/src/astro/routes/api/setup/index.ts +0 -128
- package/src/astro/routes/api/setup/status.ts +0 -122
- package/src/astro/routes/api/snapshot.ts +0 -76
- package/src/astro/routes/api/taxonomies/[name]/terms/[slug].ts +0 -232
- package/src/astro/routes/api/taxonomies/[name]/terms/index.ts +0 -131
- package/src/astro/routes/api/taxonomies/index.ts +0 -114
- package/src/astro/routes/api/themes/preview.ts +0 -78
- package/src/astro/routes/api/typegen.ts +0 -114
- package/src/astro/routes/api/well-known/auth.ts +0 -71
- package/src/astro/routes/api/well-known/oauth-authorization-server.ts +0 -48
- package/src/astro/routes/api/well-known/oauth-protected-resource.ts +0 -39
- package/src/astro/routes/api/widget-areas/[name]/reorder.ts +0 -114
- package/src/astro/routes/api/widget-areas/[name]/widgets/[id].ts +0 -213
- package/src/astro/routes/api/widget-areas/[name]/widgets.ts +0 -126
- package/src/astro/routes/api/widget-areas/[name].ts +0 -135
- package/src/astro/routes/api/widget-areas/index.ts +0 -149
- package/src/astro/routes/api/widget-components.ts +0 -22
- package/src/astro/routes/robots.txt.ts +0 -81
- package/src/astro/routes/sitemap-[collection].xml.ts +0 -104
- package/src/astro/routes/sitemap.xml.ts +0 -92
- /package/dist/{adapters-C2ypTrZZ.d.mts → adapters-BLDldpJg.d.mts} +0 -0
- /package/{src → dist}/astro/routes/admin.astro +0 -0
- /package/dist/{base64-F8-DUraK.mjs → base64-Cz-aU0X1.mjs} +0 -0
- /package/dist/{chunks--4F8ddV4.mjs → chunks-D_jVet6z.mjs} +0 -0
- /package/dist/{config-BXwuX8Bx.mjs → config-CAMFxGaV.mjs} +0 -0
- /package/dist/{db-errors-CEqD7qH9.mjs → db-errors-DKUg_NgF.mjs} +0 -0
- /package/dist/{default-VjJyuuG9.mjs → default-C3PZN-bz.mjs} +0 -0
- /package/dist/{load-Coc9HpHH.mjs → load-D-9NhLmF.mjs} +0 -0
- /package/dist/{mode-47goXBBK.mjs → mode-C80mAZQv.mjs} +0 -0
- /package/dist/{placeholder--wOi4TbO.d.mts → placeholder-CHkLckzK.d.mts} +0 -0
- /package/dist/{request-cache-Dk5qPSOx.mjs → request-cache-DHMRr2Lf.mjs} +0 -0
- /package/dist/{transaction-Cn2rjY78.mjs → transaction-x2tJQ-A1.mjs} +0 -0
- /package/dist/{transport-Wge_IzKl.d.mts → transport-6RefuBdV.d.mts} +0 -0
- /package/dist/{types-griIBQOQ.mjs → types-B9gKVOHk.mjs} +0 -0
- /package/dist/{types-CWbdtiux.d.mts → types-B9qVtiHb.d.mts} +0 -0
- /package/dist/{types-COeOq9nK.mjs → types-DL7Y8D_t.mjs} +0 -0
- /package/dist/{types-BzcUjoqg.d.mts → types-Djdp0cZO.d.mts} +0 -0
- /package/dist/{types-DOrVigru.d.mts → types-Du8jreyC.d.mts} +0 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { t as __exportAll } from "./chunk-ClPoSABd.mjs";
|
|
2
|
+
import { n as hashString } from "./hash-CDX7M0ze.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/schema/zod-generator.ts
|
|
6
|
+
var zod_generator_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
generateSchemaHash: () => generateSchemaHash,
|
|
8
|
+
generateTypeScript: () => generateTypeScript,
|
|
9
|
+
generateTypesFile: () => generateTypesFile
|
|
10
|
+
});
|
|
11
|
+
/** Pattern to split on underscores, hyphens, and spaces for PascalCase conversion */
|
|
12
|
+
const PASCAL_CASE_SPLIT_PATTERN = /[_\-\s]+/;
|
|
13
|
+
/**
|
|
14
|
+
* Generate TypeScript interface from field definitions
|
|
15
|
+
* Used by CLI `dineway types` to generate types
|
|
16
|
+
*/
|
|
17
|
+
function generateTypeScript(collection) {
|
|
18
|
+
const interfaceName = getInterfaceName(collection);
|
|
19
|
+
const lines = [];
|
|
20
|
+
lines.push(`export interface ${interfaceName} {`);
|
|
21
|
+
lines.push(` id: string;`);
|
|
22
|
+
lines.push(` slug: string | null;`);
|
|
23
|
+
lines.push(` status: string;`);
|
|
24
|
+
for (const field of collection.fields) {
|
|
25
|
+
const tsType = fieldTypeToTypeScript(field);
|
|
26
|
+
const optional = field.required ? "" : "?";
|
|
27
|
+
lines.push(` ${field.slug}${optional}: ${tsType};`);
|
|
28
|
+
}
|
|
29
|
+
lines.push(` createdAt: Date;`);
|
|
30
|
+
lines.push(` updatedAt: Date;`);
|
|
31
|
+
lines.push(` publishedAt: Date | null;`);
|
|
32
|
+
lines.push(` bylines?: ContentBylineCredit[];`);
|
|
33
|
+
lines.push(`}`);
|
|
34
|
+
return lines.join("\n");
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Generate a complete types file with module augmentation
|
|
38
|
+
* This produces dineway-env.d.ts content that provides typed query functions
|
|
39
|
+
*/
|
|
40
|
+
function generateTypesFile(collections) {
|
|
41
|
+
const lines = [];
|
|
42
|
+
lines.push(`// Generated by Dineway on dev server start`);
|
|
43
|
+
lines.push(`// Do not edit manually`);
|
|
44
|
+
lines.push(``);
|
|
45
|
+
lines.push(`/// <reference types="dineway/locals" />`);
|
|
46
|
+
lines.push(``);
|
|
47
|
+
const needsPortableText = collections.some((c) => c.fields.some((f) => f.type === "portableText"));
|
|
48
|
+
const imports = ["ContentBylineCredit"];
|
|
49
|
+
if (needsPortableText) imports.push("PortableTextBlock");
|
|
50
|
+
lines.push(`import type { ${imports.join(", ")} } from "dineway";`);
|
|
51
|
+
lines.push(``);
|
|
52
|
+
for (const collection of collections) {
|
|
53
|
+
lines.push(generateTypeScript(collection));
|
|
54
|
+
lines.push(``);
|
|
55
|
+
}
|
|
56
|
+
lines.push(`declare module "dineway" {`);
|
|
57
|
+
lines.push(` interface DinewayCollections {`);
|
|
58
|
+
for (const collection of collections) {
|
|
59
|
+
const interfaceName = getInterfaceName(collection);
|
|
60
|
+
lines.push(` ${collection.slug}: ${interfaceName};`);
|
|
61
|
+
}
|
|
62
|
+
lines.push(` }`);
|
|
63
|
+
lines.push(`}`);
|
|
64
|
+
return lines.join("\n");
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Generate schema hash for cache invalidation
|
|
68
|
+
*/
|
|
69
|
+
async function generateSchemaHash(collections) {
|
|
70
|
+
return hashString(JSON.stringify(collections.map((c) => ({
|
|
71
|
+
slug: c.slug,
|
|
72
|
+
fields: c.fields.map((f) => ({
|
|
73
|
+
slug: f.slug,
|
|
74
|
+
type: f.type,
|
|
75
|
+
required: f.required,
|
|
76
|
+
validation: f.validation
|
|
77
|
+
}))
|
|
78
|
+
}))));
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Map field type to TypeScript type
|
|
82
|
+
*/
|
|
83
|
+
function fieldTypeToTypeScript(field) {
|
|
84
|
+
switch (field.type) {
|
|
85
|
+
case "string":
|
|
86
|
+
case "text":
|
|
87
|
+
case "url":
|
|
88
|
+
case "slug":
|
|
89
|
+
case "datetime": return "string";
|
|
90
|
+
case "number":
|
|
91
|
+
case "integer": return "number";
|
|
92
|
+
case "boolean": return "boolean";
|
|
93
|
+
case "select":
|
|
94
|
+
const options = field.validation?.options;
|
|
95
|
+
if (options && options.length > 0) return options.map((o) => `"${o}"`).join(" | ");
|
|
96
|
+
return "string";
|
|
97
|
+
case "multiSelect":
|
|
98
|
+
const multiOptions = field.validation?.options;
|
|
99
|
+
if (multiOptions && multiOptions.length > 0) return `(${multiOptions.map((o) => `"${o}"`).join(" | ")})[]`;
|
|
100
|
+
return "string[]";
|
|
101
|
+
case "portableText": return "PortableTextBlock[]";
|
|
102
|
+
case "image": return "{ id: string; src?: string; alt?: string; width?: number; height?: number }";
|
|
103
|
+
case "file": return "{ id: string; src?: string; filename?: string; mimeType?: string; size?: number }";
|
|
104
|
+
case "reference": return "string";
|
|
105
|
+
case "json": return "unknown";
|
|
106
|
+
default: return "unknown";
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Convert string to PascalCase (handles slugs, spaces, etc.)
|
|
111
|
+
*/
|
|
112
|
+
function pascalCase(str) {
|
|
113
|
+
return str.split(PASCAL_CASE_SPLIT_PATTERN).filter(Boolean).map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join("");
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Simple singularization - handles common cases
|
|
117
|
+
*/
|
|
118
|
+
function singularize(str) {
|
|
119
|
+
if (str.endsWith("ies")) return str.slice(0, -3) + "y";
|
|
120
|
+
if (str.endsWith("es") && (str.endsWith("sses") || str.endsWith("xes") || str.endsWith("ches") || str.endsWith("shes"))) return str.slice(0, -2);
|
|
121
|
+
if (str.endsWith("s") && !str.endsWith("ss")) return str.slice(0, -1);
|
|
122
|
+
return str;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Get the interface name for a collection
|
|
126
|
+
*/
|
|
127
|
+
function getInterfaceName(collection) {
|
|
128
|
+
return pascalCase(collection.labelSingular || singularize(collection.slug));
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
//#endregion
|
|
132
|
+
export { zod_generator_exports as n, generateTypeScript as t };
|
package/locals.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import type { User } from "@dineway-ai/auth";
|
|
9
9
|
|
|
10
|
-
import type { DinewayHandlers
|
|
10
|
+
import type { DinewayHandlers } from "./dist/types.d.mts";
|
|
11
11
|
|
|
12
12
|
declare global {
|
|
13
13
|
namespace App {
|
|
@@ -17,11 +17,6 @@ declare global {
|
|
|
17
17
|
*/
|
|
18
18
|
dineway: DinewayHandlers;
|
|
19
19
|
|
|
20
|
-
/**
|
|
21
|
-
* Dineway manifest - the serialized admin configuration
|
|
22
|
-
*/
|
|
23
|
-
dinewayManifest: DinewayManifest;
|
|
24
|
-
|
|
25
20
|
/**
|
|
26
21
|
* Authenticated user - set by auth middleware when a valid session exists
|
|
27
22
|
*/
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dineway",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "Agentic Website builder for restaurants — structured content meets AI via the Model Context Protocol",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
6
9
|
"main": "dist/index.mjs",
|
|
7
10
|
"types": "dist/index.d.mts",
|
|
8
11
|
"bin": {
|
|
@@ -11,7 +14,6 @@
|
|
|
11
14
|
"files": [
|
|
12
15
|
"dist",
|
|
13
16
|
"locals.d.ts",
|
|
14
|
-
"src/astro/routes",
|
|
15
17
|
"src/ui.ts",
|
|
16
18
|
"src/components"
|
|
17
19
|
],
|
|
@@ -46,7 +48,11 @@
|
|
|
46
48
|
"types": "./dist/cli/index.d.mts",
|
|
47
49
|
"default": "./dist/cli/index.mjs"
|
|
48
50
|
},
|
|
49
|
-
"./routes
|
|
51
|
+
"./routes/PluginRegistry": {
|
|
52
|
+
"types": "./dist/astro/routes/PluginRegistry.d.mts",
|
|
53
|
+
"default": "./dist/astro/routes/PluginRegistry.mjs"
|
|
54
|
+
},
|
|
55
|
+
"./routes/*": "./dist/astro/routes/*",
|
|
50
56
|
"./db": {
|
|
51
57
|
"types": "./dist/db/index.d.mts",
|
|
52
58
|
"default": "./dist/db/index.mjs"
|
|
@@ -110,6 +116,22 @@
|
|
|
110
116
|
"types": "./dist/client/external-auth-headers.d.mts",
|
|
111
117
|
"default": "./dist/client/external-auth-headers.mjs"
|
|
112
118
|
},
|
|
119
|
+
"./auth/providers/github": {
|
|
120
|
+
"types": "./dist/auth/providers/github.d.mts",
|
|
121
|
+
"default": "./dist/auth/providers/github.mjs"
|
|
122
|
+
},
|
|
123
|
+
"./auth/providers/github-admin": {
|
|
124
|
+
"types": "./dist/auth/providers/github-admin.d.mts",
|
|
125
|
+
"default": "./dist/auth/providers/github-admin.mjs"
|
|
126
|
+
},
|
|
127
|
+
"./auth/providers/google": {
|
|
128
|
+
"types": "./dist/auth/providers/google.d.mts",
|
|
129
|
+
"default": "./dist/auth/providers/google.mjs"
|
|
130
|
+
},
|
|
131
|
+
"./auth/providers/google-admin": {
|
|
132
|
+
"types": "./dist/auth/providers/google-admin.d.mts",
|
|
133
|
+
"default": "./dist/auth/providers/google-admin.mjs"
|
|
134
|
+
},
|
|
113
135
|
"./seo": {
|
|
114
136
|
"types": "./dist/seo/index.d.mts",
|
|
115
137
|
"default": "./dist/seo/index.mjs"
|
|
@@ -122,6 +144,18 @@
|
|
|
122
144
|
"types": "./dist/plugin-utils.d.mts",
|
|
123
145
|
"default": "./dist/plugin-utils.mjs"
|
|
124
146
|
},
|
|
147
|
+
"./api/route-utils": {
|
|
148
|
+
"types": "./dist/api/route-utils.d.mts",
|
|
149
|
+
"default": "./dist/api/route-utils.mjs"
|
|
150
|
+
},
|
|
151
|
+
"./api/schemas": {
|
|
152
|
+
"types": "./dist/api/schemas/index.d.mts",
|
|
153
|
+
"default": "./dist/api/schemas/index.mjs"
|
|
154
|
+
},
|
|
155
|
+
"./api/schemas/setup": {
|
|
156
|
+
"types": "./dist/api/schemas/setup.d.mts",
|
|
157
|
+
"default": "./dist/api/schemas/setup.mjs"
|
|
158
|
+
},
|
|
125
159
|
"./plugins/adapt-sandbox-entry": {
|
|
126
160
|
"types": "./dist/plugins/adapt-sandbox-entry.d.mts",
|
|
127
161
|
"default": "./dist/plugins/adapt-sandbox-entry.mjs"
|
|
@@ -150,6 +184,7 @@
|
|
|
150
184
|
"#media/*": "./src/media/*",
|
|
151
185
|
"#mcp/*": "./src/mcp/*",
|
|
152
186
|
"#comments/*": "./src/comments/*",
|
|
187
|
+
"#config/*": "./src/config/*",
|
|
153
188
|
"#site-context/*": "./src/site-context/*",
|
|
154
189
|
"#types": "./src/astro/types.js"
|
|
155
190
|
},
|
|
@@ -167,6 +202,27 @@
|
|
|
167
202
|
"client/external-auth-headers": [
|
|
168
203
|
"dist/client/external-auth-headers.d.mts"
|
|
169
204
|
],
|
|
205
|
+
"api/route-utils": [
|
|
206
|
+
"dist/api/route-utils.d.mts"
|
|
207
|
+
],
|
|
208
|
+
"api/schemas": [
|
|
209
|
+
"dist/api/schemas/index.d.mts"
|
|
210
|
+
],
|
|
211
|
+
"api/schemas/setup": [
|
|
212
|
+
"dist/api/schemas/setup.d.mts"
|
|
213
|
+
],
|
|
214
|
+
"auth/providers/github": [
|
|
215
|
+
"dist/auth/providers/github.d.mts"
|
|
216
|
+
],
|
|
217
|
+
"auth/providers/github-admin": [
|
|
218
|
+
"dist/auth/providers/github-admin.d.mts"
|
|
219
|
+
],
|
|
220
|
+
"auth/providers/google": [
|
|
221
|
+
"dist/auth/providers/google.d.mts"
|
|
222
|
+
],
|
|
223
|
+
"auth/providers/google-admin": [
|
|
224
|
+
"dist/auth/providers/google-admin.d.mts"
|
|
225
|
+
],
|
|
170
226
|
"db": [
|
|
171
227
|
"dist/db/index.d.mts"
|
|
172
228
|
],
|
|
@@ -235,38 +291,26 @@
|
|
|
235
291
|
]
|
|
236
292
|
}
|
|
237
293
|
},
|
|
238
|
-
"scripts": {
|
|
239
|
-
"build": "tsdown",
|
|
240
|
-
"dev": "tsdown --watch",
|
|
241
|
-
"prepublishOnly": "node --run build",
|
|
242
|
-
"typecheck": "tsgo --noEmit",
|
|
243
|
-
"check": "publint && attw --pack --ignore-rules=cjs-resolves-to-esm --ignore-rules=no-resolution --ignore-rules=internal-resolution-error",
|
|
244
|
-
"test": "vitest",
|
|
245
|
-
"test:smoke": "vitest run --config vitest.smoke.config.ts",
|
|
246
|
-
"test:integration": "vitest run --config vitest.integration.config.ts"
|
|
247
|
-
},
|
|
248
294
|
"dependencies": {
|
|
249
|
-
"@
|
|
250
|
-
"@dineway-ai/auth": "workspace:*",
|
|
251
|
-
"@dineway-ai/gutenberg-to-portable-text": "workspace:*",
|
|
295
|
+
"@cloudflare/kumo": "^1.16.0",
|
|
252
296
|
"@floating-ui/react": "^0.27.16",
|
|
253
297
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
254
298
|
"@portabletext/toolkit": "^5.0.1",
|
|
255
|
-
"@tiptap/core": "
|
|
256
|
-
"@tiptap/extension-focus": "
|
|
257
|
-
"@tiptap/extension-image": "
|
|
258
|
-
"@tiptap/extension-link": "
|
|
259
|
-
"@tiptap/extension-placeholder": "
|
|
260
|
-
"@tiptap/extension-text-align": "
|
|
261
|
-
"@tiptap/extension-typography": "
|
|
262
|
-
"@tiptap/extension-underline": "
|
|
263
|
-
"@tiptap/react": "
|
|
264
|
-
"@tiptap/starter-kit": "
|
|
265
|
-
"@tiptap/suggestion": "
|
|
299
|
+
"@tiptap/core": "^3.20.0",
|
|
300
|
+
"@tiptap/extension-focus": "^3.20.0",
|
|
301
|
+
"@tiptap/extension-image": "^3.20.0",
|
|
302
|
+
"@tiptap/extension-link": "^3.20.0",
|
|
303
|
+
"@tiptap/extension-placeholder": "^3.20.0",
|
|
304
|
+
"@tiptap/extension-text-align": "^3.20.0",
|
|
305
|
+
"@tiptap/extension-typography": "^3.20.0",
|
|
306
|
+
"@tiptap/extension-underline": "^3.20.0",
|
|
307
|
+
"@tiptap/react": "^3.20.0",
|
|
308
|
+
"@tiptap/starter-kit": "^3.20.0",
|
|
309
|
+
"@tiptap/suggestion": "^3.20.0",
|
|
266
310
|
"@unpic/placeholder": "^0.1.2",
|
|
267
311
|
"arctic": "^3.7.0",
|
|
268
312
|
"astro-portabletext": "^0.11.0",
|
|
269
|
-
"better-sqlite3": "
|
|
313
|
+
"better-sqlite3": "^12.8.0",
|
|
270
314
|
"blurhash": "^2.0.5",
|
|
271
315
|
"citty": "^0.1.6",
|
|
272
316
|
"consola": "^3.4.2",
|
|
@@ -282,7 +326,10 @@
|
|
|
282
326
|
"sax": "^1.4.1",
|
|
283
327
|
"ulidx": "^2.4.1",
|
|
284
328
|
"upng-js": "^2.1.0",
|
|
285
|
-
"zod": "^4.3.5"
|
|
329
|
+
"zod": "^4.3.5",
|
|
330
|
+
"@dineway-ai/admin": "0.1.9",
|
|
331
|
+
"@dineway-ai/auth": "0.1.10",
|
|
332
|
+
"@dineway-ai/gutenberg-to-portable-text": "0.1.9"
|
|
286
333
|
},
|
|
287
334
|
"optionalDependencies": {
|
|
288
335
|
"@libsql/kysely-libsql": "^0.4.0",
|
|
@@ -290,29 +337,28 @@
|
|
|
290
337
|
},
|
|
291
338
|
"peerDependencies": {
|
|
292
339
|
"@astrojs/react": ">=5.0.0-beta.0",
|
|
293
|
-
"@tanstack/react-query": ">=5.0.0",
|
|
294
|
-
"@tanstack/react-router": ">=1.100.0",
|
|
295
340
|
"astro": ">=6.0.0-beta.0",
|
|
296
341
|
"react": ">=18.0.0",
|
|
297
342
|
"react-dom": ">=18.0.0"
|
|
298
343
|
},
|
|
299
344
|
"devDependencies": {
|
|
300
345
|
"@apidevtools/swagger-parser": "^12.1.0",
|
|
301
|
-
"@arethetypeswrong/cli": "
|
|
302
|
-
"@dineway-ai/blocks": "workspace:*",
|
|
346
|
+
"@arethetypeswrong/cli": "^0.18.2",
|
|
303
347
|
"@rivet-dev/agent-os-common": "^0.0.260331072558",
|
|
304
348
|
"@rivet-dev/agent-os-core": "^0.1.1",
|
|
305
349
|
"@types/better-sqlite3": "^7.6.12",
|
|
306
350
|
"@types/pg": "^8.16.0",
|
|
351
|
+
"@types/react": "19.2.14",
|
|
307
352
|
"@types/sanitize-html": "^2.16.0",
|
|
308
353
|
"@types/sax": "^1.2.7",
|
|
309
354
|
"@vitest/ui": "^4.0.17",
|
|
310
|
-
"publint": "
|
|
311
|
-
"tsdown": "
|
|
312
|
-
"typescript": "
|
|
355
|
+
"publint": "0.3.17",
|
|
356
|
+
"tsdown": "0.20.3",
|
|
357
|
+
"typescript": "^5.9.3",
|
|
313
358
|
"vite": "^6.0.0",
|
|
314
|
-
"vitest": "
|
|
315
|
-
"zod-openapi": "^5.4.6"
|
|
359
|
+
"vitest": "^4.0.18",
|
|
360
|
+
"zod-openapi": "^5.4.6",
|
|
361
|
+
"@dineway-ai/blocks": "0.1.9"
|
|
316
362
|
},
|
|
317
363
|
"keywords": [
|
|
318
364
|
"astro",
|
|
@@ -322,6 +368,15 @@
|
|
|
322
368
|
"content",
|
|
323
369
|
"cms"
|
|
324
370
|
],
|
|
325
|
-
"author": "
|
|
326
|
-
"license": "MIT"
|
|
327
|
-
|
|
371
|
+
"author": "Dineway",
|
|
372
|
+
"license": "MIT",
|
|
373
|
+
"scripts": {
|
|
374
|
+
"build": "tsdown && node scripts/copy-route-assets.mjs",
|
|
375
|
+
"dev": "tsdown --watch",
|
|
376
|
+
"typecheck": "tsgo --noEmit",
|
|
377
|
+
"check": "publint && attw --pack --ignore-rules=cjs-resolves-to-esm --ignore-rules=no-resolution --ignore-rules=internal-resolution-error",
|
|
378
|
+
"test": "vitest",
|
|
379
|
+
"test:smoke": "vitest run --config vitest.smoke.config.ts",
|
|
380
|
+
"test:integration": "vitest run --config vitest.integration.config.ts"
|
|
381
|
+
}
|
|
382
|
+
}
|
|
@@ -20,8 +20,9 @@ import {
|
|
|
20
20
|
generateBaseSeoContributions,
|
|
21
21
|
generateSiteSeoContributions,
|
|
22
22
|
} from "../page/seo-contributions.js";
|
|
23
|
+
import { renderSiteIdentity } from "../page/site-identity.js";
|
|
23
24
|
import { getPageRuntime } from "../page/index.js";
|
|
24
|
-
import {
|
|
25
|
+
import { getSiteSettings } from "../settings/index.js";
|
|
25
26
|
|
|
26
27
|
interface Props {
|
|
27
28
|
page: PublicPageContext;
|
|
@@ -34,21 +35,23 @@ const runtime = getPageRuntime(Astro.locals as Record<string, unknown>);
|
|
|
34
35
|
const baseContributions: PageMetadataContribution[] = generateBaseSeoContributions(page);
|
|
35
36
|
|
|
36
37
|
let metadataHtml = "";
|
|
38
|
+
let siteIdentityHtml = "";
|
|
37
39
|
let fragmentsHtml = "";
|
|
38
40
|
|
|
39
41
|
if (runtime) {
|
|
40
42
|
// Plugin contributions come BEFORE site/base, so resolvePageMetadata's
|
|
41
43
|
// first-wins dedup lets plugins override defaults.
|
|
42
|
-
const [
|
|
43
|
-
|
|
44
|
+
const [siteSettings, pluginContributions, fragments] = await Promise.all([
|
|
45
|
+
getSiteSettings(),
|
|
44
46
|
runtime.collectPageMetadata(page),
|
|
45
47
|
runtime.collectPageFragments(page),
|
|
46
48
|
]);
|
|
47
49
|
|
|
48
|
-
const siteContributions = generateSiteSeoContributions(
|
|
50
|
+
const siteContributions = generateSiteSeoContributions(siteSettings.seo);
|
|
49
51
|
const allContributions = [...pluginContributions, ...siteContributions, ...baseContributions];
|
|
50
52
|
const resolved = resolvePageMetadata(allContributions);
|
|
51
53
|
metadataHtml = renderPageMetadata(resolved);
|
|
54
|
+
siteIdentityHtml = renderSiteIdentity({ favicon: siteSettings.favicon });
|
|
52
55
|
fragmentsHtml = renderFragments(fragments, "head");
|
|
53
56
|
} else {
|
|
54
57
|
// No runtime (Dineway not initialized) — still render base SEO
|
|
@@ -58,4 +61,5 @@ if (runtime) {
|
|
|
58
61
|
---
|
|
59
62
|
|
|
60
63
|
<Fragment set:html={metadataHtml} />
|
|
64
|
+
<Fragment set:html={siteIdentityHtml} />
|
|
61
65
|
<Fragment set:html={fragmentsHtml} />
|
|
@@ -20,6 +20,7 @@ import type { MediaValue } from "../fields/types.js";
|
|
|
20
20
|
import type { HTMLAttributes } from "astro/types";
|
|
21
21
|
import type { ImageEmbed } from "../media/types.js";
|
|
22
22
|
import { getMediaProvider } from "../media/provider-loader.js";
|
|
23
|
+
import { buildRenderMediaUrl } from "../media/url.js";
|
|
23
24
|
// Standard responsive breakpoints
|
|
24
25
|
const BREAKPOINTS = [640, 750, 828, 960, 1080, 1280, 1600, 1920];
|
|
25
26
|
|
|
@@ -57,10 +58,11 @@ function normalizeImage(
|
|
|
57
58
|
*/
|
|
58
59
|
function buildLocalImageUrl(img: MediaValue): string {
|
|
59
60
|
const storageKey = (img.meta?.storageKey as string) || img.id;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
return buildRenderMediaUrl(Astro.locals.dineway?.getPublicMediaUrl, {
|
|
62
|
+
storageKey,
|
|
63
|
+
url: img.src,
|
|
64
|
+
id: img.id,
|
|
65
|
+
});
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
/**
|
|
@@ -98,7 +100,7 @@ if (img) {
|
|
|
98
100
|
|
|
99
101
|
if (providerId === "local" || img.src) {
|
|
100
102
|
// Local provider or direct src URL
|
|
101
|
-
src =
|
|
103
|
+
src = buildLocalImageUrl(img);
|
|
102
104
|
} else {
|
|
103
105
|
// External provider
|
|
104
106
|
try {
|
|
@@ -20,6 +20,7 @@ import type { MediaValue } from "../fields/types.js";
|
|
|
20
20
|
import type { EmbedResult, EmbedOptions } from "../media/types.js";
|
|
21
21
|
import type { HTMLAttributes } from "astro/types";
|
|
22
22
|
import { getMediaProvider } from "../media/provider-loader.js";
|
|
23
|
+
import { buildRenderMediaUrl } from "../media/url.js";
|
|
23
24
|
|
|
24
25
|
interface Props extends Omit<HTMLAttributes<"img" | "video" | "audio">, "src" | "width" | "height"> {
|
|
25
26
|
/** Media value from content field */
|
|
@@ -77,11 +78,16 @@ if (media) {
|
|
|
77
78
|
// Fallback for local provider without runtime
|
|
78
79
|
const storageKey = (media.meta?.storageKey as string) || media.id;
|
|
79
80
|
if (storageKey) {
|
|
81
|
+
const src = buildRenderMediaUrl(Astro.locals.dineway?.getPublicMediaUrl, {
|
|
82
|
+
storageKey,
|
|
83
|
+
url: media.src,
|
|
84
|
+
id: media.id,
|
|
85
|
+
});
|
|
80
86
|
const mimeType = media.mimeType || "";
|
|
81
87
|
if (mimeType.startsWith("video/")) {
|
|
82
88
|
embed = {
|
|
83
89
|
type: "video",
|
|
84
|
-
src
|
|
90
|
+
src,
|
|
85
91
|
width: media.width,
|
|
86
92
|
height: media.height,
|
|
87
93
|
controls: true,
|
|
@@ -90,14 +96,14 @@ if (media) {
|
|
|
90
96
|
} else if (mimeType.startsWith("audio/")) {
|
|
91
97
|
embed = {
|
|
92
98
|
type: "audio",
|
|
93
|
-
src
|
|
99
|
+
src,
|
|
94
100
|
controls: true,
|
|
95
101
|
preload: "metadata",
|
|
96
102
|
};
|
|
97
103
|
} else {
|
|
98
104
|
embed = {
|
|
99
105
|
type: "image",
|
|
100
|
-
src
|
|
106
|
+
src,
|
|
101
107
|
width: media.width,
|
|
102
108
|
height: media.height,
|
|
103
109
|
alt: media.alt,
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* Uses Astro's Image component for optimization when dimensions are available.
|
|
7
7
|
*/
|
|
8
8
|
import { Image as AstroImage } from "astro:assets";
|
|
9
|
+
import { buildRenderMediaUrl } from "../media/url.js";
|
|
9
10
|
|
|
10
11
|
export interface Props {
|
|
11
12
|
node: {
|
|
@@ -39,9 +40,10 @@ if (!images.length) {
|
|
|
39
40
|
<div class="dineway-gallery" style={`--columns: ${columns}`}>
|
|
40
41
|
{
|
|
41
42
|
images.map((image) => {
|
|
42
|
-
const src =
|
|
43
|
-
image.asset.url
|
|
44
|
-
|
|
43
|
+
const src = buildRenderMediaUrl(Astro.locals.dineway?.getPublicMediaUrl, {
|
|
44
|
+
url: image.asset.url,
|
|
45
|
+
id: image.asset._ref,
|
|
46
|
+
});
|
|
45
47
|
const hasSize = image.width && image.height;
|
|
46
48
|
return (
|
|
47
49
|
<figure class="dineway-gallery-item">
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { ImageEmbed } from "../media/types.js";
|
|
9
9
|
import { getMediaProvider } from "../media/provider-loader.js";
|
|
10
|
+
import { buildRenderMediaUrl } from "../media/url.js";
|
|
10
11
|
// Standard responsive breakpoints
|
|
11
12
|
const BREAKPOINTS = [640, 750, 828, 960, 1080, 1280, 1600, 1920];
|
|
12
13
|
|
|
@@ -125,7 +126,10 @@ if (providerId && providerId !== "local") {
|
|
|
125
126
|
// Fallback for local provider — prefer stored URL (includes storage key with extension),
|
|
126
127
|
// fall back to _ref (bare ULID, works if media file endpoint supports ID lookup)
|
|
127
128
|
if (!src) {
|
|
128
|
-
src =
|
|
129
|
+
src = buildRenderMediaUrl(Astro.locals.dineway?.getPublicMediaUrl, {
|
|
130
|
+
url: asset.url,
|
|
131
|
+
id: asset._ref,
|
|
132
|
+
});
|
|
129
133
|
}
|
|
130
134
|
|
|
131
135
|
// Build placeholder background style
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
import { autoUpdate, flip, offset, shift, useFloating } from "@floating-ui/react";
|
|
13
|
-
import { Extension, type JSONContent, type Range } from "@tiptap/core";
|
|
13
|
+
import { Extension, Node, mergeAttributes, type JSONContent, type Range } from "@tiptap/core";
|
|
14
14
|
import Focus from "@tiptap/extension-focus";
|
|
15
15
|
import Image from "@tiptap/extension-image";
|
|
16
16
|
import Link from "@tiptap/extension-link";
|
|
@@ -202,12 +202,15 @@ function convertPMNode(node: PMNode): PTBlock | PTBlock[] | null {
|
|
|
202
202
|
}
|
|
203
203
|
case "horizontalRule":
|
|
204
204
|
return { _type: "break", _key: k(), style: "lineBreak" };
|
|
205
|
-
case "pluginBlock":
|
|
205
|
+
case "pluginBlock": {
|
|
206
|
+
const { blockType, id, data } = node.attrs ?? {};
|
|
206
207
|
return {
|
|
207
|
-
|
|
208
|
+
...(data && typeof data === "object" ? data : {}),
|
|
209
|
+
_type: typeof blockType === "string" ? blockType : "embed",
|
|
208
210
|
_key: k(),
|
|
209
|
-
id:
|
|
211
|
+
id: typeof id === "string" ? id : "",
|
|
210
212
|
};
|
|
213
|
+
}
|
|
211
214
|
default:
|
|
212
215
|
return null;
|
|
213
216
|
}
|
|
@@ -412,21 +415,27 @@ function convertPTBlock(block: PTBlock): JSONContent | null {
|
|
|
412
415
|
},
|
|
413
416
|
};
|
|
414
417
|
}
|
|
415
|
-
// Unknown block types — treat as plugin blocks if they have an id
|
|
416
|
-
const embedBlock = block as { _type: string; url?: string; id?: string };
|
|
417
|
-
if (embedBlock.id || embedBlock.url) {
|
|
418
|
-
return {
|
|
419
|
-
type: "pluginBlock",
|
|
420
|
-
attrs: {
|
|
421
|
-
blockType: block._type,
|
|
422
|
-
id: embedBlock.id || embedBlock.url || "",
|
|
423
|
-
},
|
|
424
|
-
};
|
|
425
|
-
}
|
|
426
|
-
// Truly unknown — render as code-marked text
|
|
427
418
|
return {
|
|
428
|
-
type: "
|
|
429
|
-
|
|
419
|
+
type: "pluginBlock",
|
|
420
|
+
attrs: buildPluginBlockAttrs(block),
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
function buildPluginBlockAttrs(block: PTBlock): {
|
|
425
|
+
blockType: string;
|
|
426
|
+
id: string;
|
|
427
|
+
data: Record<string, unknown>;
|
|
428
|
+
} {
|
|
429
|
+
const id = block.id;
|
|
430
|
+
const url = block.url;
|
|
431
|
+
return {
|
|
432
|
+
blockType: typeof block._type === "string" ? block._type : "embed",
|
|
433
|
+
id: typeof id === "string" ? id : typeof url === "string" ? url : "",
|
|
434
|
+
data: Object.fromEntries(
|
|
435
|
+
Object.entries(block).filter(
|
|
436
|
+
([key]) => !key.startsWith("_") && key !== "id" && key !== "url",
|
|
437
|
+
),
|
|
438
|
+
),
|
|
430
439
|
};
|
|
431
440
|
}
|
|
432
441
|
|
|
@@ -505,6 +514,42 @@ function convertPTMarks(marks: string[], markDefs: Map<string, PTMarkDef>): Mark
|
|
|
505
514
|
return pm;
|
|
506
515
|
}
|
|
507
516
|
|
|
517
|
+
const pluginBlockExtension = Node.create({
|
|
518
|
+
name: "pluginBlock",
|
|
519
|
+
group: "block",
|
|
520
|
+
atom: true,
|
|
521
|
+
selectable: true,
|
|
522
|
+
draggable: true,
|
|
523
|
+
|
|
524
|
+
addAttributes() {
|
|
525
|
+
const noDom = { rendered: false, parseHTML: () => null };
|
|
526
|
+
return {
|
|
527
|
+
blockType: { default: "", ...noDom },
|
|
528
|
+
id: { default: "", ...noDom },
|
|
529
|
+
data: { default: {}, ...noDom },
|
|
530
|
+
};
|
|
531
|
+
},
|
|
532
|
+
|
|
533
|
+
parseHTML() {
|
|
534
|
+
return [{ tag: 'div[data-dineway-plugin-block="true"]' }];
|
|
535
|
+
},
|
|
536
|
+
|
|
537
|
+
renderHTML({ HTMLAttributes, node }) {
|
|
538
|
+
const blockType = typeof node.attrs.blockType === "string" ? node.attrs.blockType : "";
|
|
539
|
+
const label = blockType || "Block";
|
|
540
|
+
return [
|
|
541
|
+
"div",
|
|
542
|
+
mergeAttributes(HTMLAttributes, {
|
|
543
|
+
"data-dineway-plugin-block": "true",
|
|
544
|
+
"data-block-type": blockType,
|
|
545
|
+
class: "dineway-plugin-block-placeholder",
|
|
546
|
+
contenteditable: "false",
|
|
547
|
+
}),
|
|
548
|
+
`Plugin block: ${label} (edit in admin)`,
|
|
549
|
+
];
|
|
550
|
+
},
|
|
551
|
+
});
|
|
552
|
+
|
|
508
553
|
// ── Inline BubbleMenu ──────────────────────────────────────────────
|
|
509
554
|
|
|
510
555
|
function InlineBubbleMenu({ editor }: { editor: Editor }) {
|
|
@@ -1734,6 +1779,7 @@ export function InlinePortableTextEditor({
|
|
|
1734
1779
|
mode: "all",
|
|
1735
1780
|
}),
|
|
1736
1781
|
Typography,
|
|
1782
|
+
pluginBlockExtension,
|
|
1737
1783
|
slashCommandsExtension,
|
|
1738
1784
|
],
|
|
1739
1785
|
content: initialContent,
|
|
@@ -1795,7 +1841,7 @@ export function InlinePortableTextEditor({
|
|
|
1795
1841
|
// Don't save if focus moved to the slash menu (portalled to body)
|
|
1796
1842
|
if (related?.closest(".dineway-slash-menu")) return;
|
|
1797
1843
|
if (related?.closest(".dineway-media-picker")) return;
|
|
1798
|
-
save();
|
|
1844
|
+
void save();
|
|
1799
1845
|
},
|
|
1800
1846
|
[save, mediaPickerOpen],
|
|
1801
1847
|
);
|
|
@@ -1935,3 +1981,6 @@ export function InlinePortableTextEditor({
|
|
|
1935
1981
|
</div>
|
|
1936
1982
|
);
|
|
1937
1983
|
}
|
|
1984
|
+
|
|
1985
|
+
export { pmToPortableText as _pmToPortableText };
|
|
1986
|
+
export { portableTextToPM as _portableTextToPM };
|