@growth-labs/cms 0.1.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/README.md +165 -0
- package/dist/engine/activity-log.d.ts +17 -0
- package/dist/engine/activity-log.d.ts.map +1 -0
- package/dist/engine/activity-log.js +17 -0
- package/dist/engine/activity-log.js.map +1 -0
- package/dist/engine/ai-prompts.d.ts +57 -0
- package/dist/engine/ai-prompts.d.ts.map +1 -0
- package/dist/engine/ai-prompts.js +90 -0
- package/dist/engine/ai-prompts.js.map +1 -0
- package/dist/engine/ai-writeback.d.ts +36 -0
- package/dist/engine/ai-writeback.d.ts.map +1 -0
- package/dist/engine/ai-writeback.js +45 -0
- package/dist/engine/ai-writeback.js.map +1 -0
- package/dist/engine/api-keys.d.ts +76 -0
- package/dist/engine/api-keys.d.ts.map +1 -0
- package/dist/engine/api-keys.js +165 -0
- package/dist/engine/api-keys.js.map +1 -0
- package/dist/engine/content-insights.d.ts +36 -0
- package/dist/engine/content-insights.d.ts.map +1 -0
- package/dist/engine/content-insights.js +114 -0
- package/dist/engine/content-insights.js.map +1 -0
- package/dist/engine/contributors.d.ts +25 -0
- package/dist/engine/contributors.d.ts.map +1 -0
- package/dist/engine/contributors.js +59 -0
- package/dist/engine/contributors.js.map +1 -0
- package/dist/engine/cron.d.ts +15 -0
- package/dist/engine/cron.d.ts.map +1 -0
- package/dist/engine/cron.js +33 -0
- package/dist/engine/cron.js.map +1 -0
- package/dist/engine/d1.d.ts +16 -0
- package/dist/engine/d1.d.ts.map +1 -0
- package/dist/engine/d1.js +13 -0
- package/dist/engine/d1.js.map +1 -0
- package/dist/engine/foundry-dispatch.d.ts +52 -0
- package/dist/engine/foundry-dispatch.d.ts.map +1 -0
- package/dist/engine/foundry-dispatch.js +290 -0
- package/dist/engine/foundry-dispatch.js.map +1 -0
- package/dist/engine/import-parsers.d.ts +11 -0
- package/dist/engine/import-parsers.d.ts.map +1 -0
- package/dist/engine/import-parsers.js +373 -0
- package/dist/engine/import-parsers.js.map +1 -0
- package/dist/engine/index.d.ts +28 -0
- package/dist/engine/index.d.ts.map +1 -0
- package/dist/engine/index.js +57 -0
- package/dist/engine/index.js.map +1 -0
- package/dist/engine/invites.d.ts +78 -0
- package/dist/engine/invites.d.ts.map +1 -0
- package/dist/engine/invites.js +158 -0
- package/dist/engine/invites.js.map +1 -0
- package/dist/engine/members.d.ts +59 -0
- package/dist/engine/members.d.ts.map +1 -0
- package/dist/engine/members.js +124 -0
- package/dist/engine/members.js.map +1 -0
- package/dist/engine/membership-rules.d.ts +25 -0
- package/dist/engine/membership-rules.d.ts.map +1 -0
- package/dist/engine/membership-rules.js +44 -0
- package/dist/engine/membership-rules.js.map +1 -0
- package/dist/engine/og-render.d.ts +40 -0
- package/dist/engine/og-render.d.ts.map +1 -0
- package/dist/engine/og-render.js +26 -0
- package/dist/engine/og-render.js.map +1 -0
- package/dist/engine/publish-guard.d.ts +58 -0
- package/dist/engine/publish-guard.d.ts.map +1 -0
- package/dist/engine/publish-guard.js +80 -0
- package/dist/engine/publish-guard.js.map +1 -0
- package/dist/engine/publisher.d.ts +171 -0
- package/dist/engine/publisher.d.ts.map +1 -0
- package/dist/engine/publisher.js +597 -0
- package/dist/engine/publisher.js.map +1 -0
- package/dist/engine/revisions.d.ts +39 -0
- package/dist/engine/revisions.d.ts.map +1 -0
- package/dist/engine/revisions.js +203 -0
- package/dist/engine/revisions.js.map +1 -0
- package/dist/engine/sanitize.d.ts +52 -0
- package/dist/engine/sanitize.d.ts.map +1 -0
- package/dist/engine/sanitize.js +155 -0
- package/dist/engine/sanitize.js.map +1 -0
- package/dist/engine/seed-membership.d.ts +29 -0
- package/dist/engine/seed-membership.d.ts.map +1 -0
- package/dist/engine/seed-membership.js +65 -0
- package/dist/engine/seed-membership.js.map +1 -0
- package/dist/engine/seo.d.ts +20 -0
- package/dist/engine/seo.d.ts.map +1 -0
- package/dist/engine/seo.js +50 -0
- package/dist/engine/seo.js.map +1 -0
- package/dist/engine/slug-redirects.d.ts +8 -0
- package/dist/engine/slug-redirects.d.ts.map +1 -0
- package/dist/engine/slug-redirects.js +26 -0
- package/dist/engine/slug-redirects.js.map +1 -0
- package/dist/engine/slug.d.ts +6 -0
- package/dist/engine/slug.d.ts.map +1 -0
- package/dist/engine/slug.js +28 -0
- package/dist/engine/slug.js.map +1 -0
- package/dist/engine/soft-delete.d.ts +8 -0
- package/dist/engine/soft-delete.d.ts.map +1 -0
- package/dist/engine/soft-delete.js +28 -0
- package/dist/engine/soft-delete.js.map +1 -0
- package/dist/engine/tags.d.ts +14 -0
- package/dist/engine/tags.d.ts.map +1 -0
- package/dist/engine/tags.js +79 -0
- package/dist/engine/tags.js.map +1 -0
- package/dist/engine/topics.d.ts +10 -0
- package/dist/engine/topics.d.ts.map +1 -0
- package/dist/engine/topics.js +140 -0
- package/dist/engine/topics.js.map +1 -0
- package/dist/engine/url-guard.d.ts +12 -0
- package/dist/engine/url-guard.d.ts.map +1 -0
- package/dist/engine/url-guard.js +129 -0
- package/dist/engine/url-guard.js.map +1 -0
- package/dist/engine/validator/checks/bare-url-not-autolinked.d.ts +20 -0
- package/dist/engine/validator/checks/bare-url-not-autolinked.d.ts.map +1 -0
- package/dist/engine/validator/checks/bare-url-not-autolinked.js +54 -0
- package/dist/engine/validator/checks/bare-url-not-autolinked.js.map +1 -0
- package/dist/engine/validator/checks/broken-footnote-label.d.ts +16 -0
- package/dist/engine/validator/checks/broken-footnote-label.d.ts.map +1 -0
- package/dist/engine/validator/checks/broken-footnote-label.js +17 -0
- package/dist/engine/validator/checks/broken-footnote-label.js.map +1 -0
- package/dist/engine/validator/checks/double-encoded-entities.d.ts +18 -0
- package/dist/engine/validator/checks/double-encoded-entities.d.ts.map +1 -0
- package/dist/engine/validator/checks/double-encoded-entities.js +23 -0
- package/dist/engine/validator/checks/double-encoded-entities.js.map +1 -0
- package/dist/engine/validator/checks/empty-alt-text.d.ts +14 -0
- package/dist/engine/validator/checks/empty-alt-text.d.ts.map +1 -0
- package/dist/engine/validator/checks/empty-alt-text.js +23 -0
- package/dist/engine/validator/checks/empty-alt-text.js.map +1 -0
- package/dist/engine/validator/checks/heading-hierarchy-skip.d.ts +11 -0
- package/dist/engine/validator/checks/heading-hierarchy-skip.d.ts.map +1 -0
- package/dist/engine/validator/checks/heading-hierarchy-skip.js +20 -0
- package/dist/engine/validator/checks/heading-hierarchy-skip.js.map +1 -0
- package/dist/engine/validator/checks/html-comment-leak.d.ts +20 -0
- package/dist/engine/validator/checks/html-comment-leak.d.ts.map +1 -0
- package/dist/engine/validator/checks/html-comment-leak.js +30 -0
- package/dist/engine/validator/checks/html-comment-leak.js.map +1 -0
- package/dist/engine/validator/checks/iframe-missing-dims-and-wrapper.d.ts +12 -0
- package/dist/engine/validator/checks/iframe-missing-dims-and-wrapper.d.ts.map +1 -0
- package/dist/engine/validator/checks/iframe-missing-dims-and-wrapper.js +17 -0
- package/dist/engine/validator/checks/iframe-missing-dims-and-wrapper.js.map +1 -0
- package/dist/engine/validator/checks/invisible-control-chars.d.ts +24 -0
- package/dist/engine/validator/checks/invisible-control-chars.d.ts.map +1 -0
- package/dist/engine/validator/checks/invisible-control-chars.js +30 -0
- package/dist/engine/validator/checks/invisible-control-chars.js.map +1 -0
- package/dist/engine/validator/checks/paywall-marker-leak.d.ts +17 -0
- package/dist/engine/validator/checks/paywall-marker-leak.d.ts.map +1 -0
- package/dist/engine/validator/checks/paywall-marker-leak.js +22 -0
- package/dist/engine/validator/checks/paywall-marker-leak.js.map +1 -0
- package/dist/engine/validator/checks/raw-block-html.d.ts +28 -0
- package/dist/engine/validator/checks/raw-block-html.d.ts.map +1 -0
- package/dist/engine/validator/checks/raw-block-html.js +38 -0
- package/dist/engine/validator/checks/raw-block-html.js.map +1 -0
- package/dist/engine/validator/checks/stale-body-html.d.ts +28 -0
- package/dist/engine/validator/checks/stale-body-html.d.ts.map +1 -0
- package/dist/engine/validator/checks/stale-body-html.js +15 -0
- package/dist/engine/validator/checks/stale-body-html.js.map +1 -0
- package/dist/engine/validator/checks/unresolved-footnote-anchor.d.ts +11 -0
- package/dist/engine/validator/checks/unresolved-footnote-anchor.d.ts.map +1 -0
- package/dist/engine/validator/checks/unresolved-footnote-anchor.js +48 -0
- package/dist/engine/validator/checks/unresolved-footnote-anchor.js.map +1 -0
- package/dist/engine/validator/checks/word-gdocs-paste-artifacts.d.ts +23 -0
- package/dist/engine/validator/checks/word-gdocs-paste-artifacts.d.ts.map +1 -0
- package/dist/engine/validator/checks/word-gdocs-paste-artifacts.js +47 -0
- package/dist/engine/validator/checks/word-gdocs-paste-artifacts.js.map +1 -0
- package/dist/engine/validator/index.d.ts +75 -0
- package/dist/engine/validator/index.d.ts.map +1 -0
- package/dist/engine/validator/index.js +313 -0
- package/dist/engine/validator/index.js.map +1 -0
- package/dist/engine/validator/scan.d.ts +28 -0
- package/dist/engine/validator/scan.d.ts.map +1 -0
- package/dist/engine/validator/scan.js +97 -0
- package/dist/engine/validator/scan.js.map +1 -0
- package/dist/engine/validator/types.d.ts +50 -0
- package/dist/engine/validator/types.d.ts.map +1 -0
- package/dist/engine/validator/types.js +51 -0
- package/dist/engine/validator/types.js.map +1 -0
- package/dist/engine/webhook-signer.d.ts +39 -0
- package/dist/engine/webhook-signer.d.ts.map +1 -0
- package/dist/engine/webhook-signer.js +117 -0
- package/dist/engine/webhook-signer.js.map +1 -0
- package/dist/engine/webhooks.d.ts +75 -0
- package/dist/engine/webhooks.d.ts.map +1 -0
- package/dist/engine/webhooks.js +139 -0
- package/dist/engine/webhooks.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +40 -0
- package/dist/index.js.map +1 -0
- package/dist/integration/index.d.ts +6 -0
- package/dist/integration/index.d.ts.map +1 -0
- package/dist/integration/index.js +294 -0
- package/dist/integration/index.js.map +1 -0
- package/dist/integration/options.d.ts +105 -0
- package/dist/integration/options.d.ts.map +1 -0
- package/dist/integration/options.js +25 -0
- package/dist/integration/options.js.map +1 -0
- package/dist/integration/vite-plugin.d.ts +4 -0
- package/dist/integration/vite-plugin.d.ts.map +1 -0
- package/dist/integration/vite-plugin.js +37 -0
- package/dist/integration/vite-plugin.js.map +1 -0
- package/dist/providers/index.d.ts +3 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +3 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/providers/null.d.ts +9 -0
- package/dist/providers/null.d.ts.map +1 -0
- package/dist/providers/null.js +144 -0
- package/dist/providers/null.js.map +1 -0
- package/dist/providers/types.d.ts +277 -0
- package/dist/providers/types.d.ts.map +1 -0
- package/dist/providers/types.js +2 -0
- package/dist/providers/types.js.map +1 -0
- package/dist/routes/ai.d.ts +25 -0
- package/dist/routes/ai.d.ts.map +1 -0
- package/dist/routes/ai.js +381 -0
- package/dist/routes/ai.js.map +1 -0
- package/dist/routes/analytics.d.ts +15 -0
- package/dist/routes/analytics.d.ts.map +1 -0
- package/dist/routes/analytics.js +61 -0
- package/dist/routes/analytics.js.map +1 -0
- package/dist/routes/api-keys.d.ts +13 -0
- package/dist/routes/api-keys.d.ts.map +1 -0
- package/dist/routes/api-keys.js +109 -0
- package/dist/routes/api-keys.js.map +1 -0
- package/dist/routes/authors.d.ts +19 -0
- package/dist/routes/authors.d.ts.map +1 -0
- package/dist/routes/authors.js +202 -0
- package/dist/routes/authors.js.map +1 -0
- package/dist/routes/authz-matrix.d.ts +78 -0
- package/dist/routes/authz-matrix.d.ts.map +1 -0
- package/dist/routes/authz-matrix.js +170 -0
- package/dist/routes/authz-matrix.js.map +1 -0
- package/dist/routes/calendar.d.ts +19 -0
- package/dist/routes/calendar.d.ts.map +1 -0
- package/dist/routes/calendar.js +89 -0
- package/dist/routes/calendar.js.map +1 -0
- package/dist/routes/config.d.ts +70 -0
- package/dist/routes/config.d.ts.map +1 -0
- package/dist/routes/config.js +23 -0
- package/dist/routes/config.js.map +1 -0
- package/dist/routes/content-insights.d.ts +18 -0
- package/dist/routes/content-insights.d.ts.map +1 -0
- package/dist/routes/content-insights.js +137 -0
- package/dist/routes/content-insights.js.map +1 -0
- package/dist/routes/content.d.ts +145 -0
- package/dist/routes/content.d.ts.map +1 -0
- package/dist/routes/content.js +1374 -0
- package/dist/routes/content.js.map +1 -0
- package/dist/routes/context.d.ts +104 -0
- package/dist/routes/context.d.ts.map +1 -0
- package/dist/routes/context.js +26 -0
- package/dist/routes/context.js.map +1 -0
- package/dist/routes/cron.d.ts +8 -0
- package/dist/routes/cron.d.ts.map +1 -0
- package/dist/routes/cron.js +20 -0
- package/dist/routes/cron.js.map +1 -0
- package/dist/routes/dashboard.d.ts +12 -0
- package/dist/routes/dashboard.d.ts.map +1 -0
- package/dist/routes/dashboard.js +113 -0
- package/dist/routes/dashboard.js.map +1 -0
- package/dist/routes/imports.d.ts +10 -0
- package/dist/routes/imports.d.ts.map +1 -0
- package/dist/routes/imports.js +149 -0
- package/dist/routes/imports.js.map +1 -0
- package/dist/routes/index.d.ts +75 -0
- package/dist/routes/index.d.ts.map +1 -0
- package/dist/routes/index.js +141 -0
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/media-lib.d.ts +75 -0
- package/dist/routes/media-lib.d.ts.map +1 -0
- package/dist/routes/media-lib.js +305 -0
- package/dist/routes/media-lib.js.map +1 -0
- package/dist/routes/media.d.ts +32 -0
- package/dist/routes/media.d.ts.map +1 -0
- package/dist/routes/media.js +756 -0
- package/dist/routes/media.js.map +1 -0
- package/dist/routes/preview.d.ts +19 -0
- package/dist/routes/preview.d.ts.map +1 -0
- package/dist/routes/preview.js +150 -0
- package/dist/routes/preview.js.map +1 -0
- package/dist/routes/rbac-invites.d.ts +31 -0
- package/dist/routes/rbac-invites.d.ts.map +1 -0
- package/dist/routes/rbac-invites.js +174 -0
- package/dist/routes/rbac-invites.js.map +1 -0
- package/dist/routes/rbac.d.ts +12 -0
- package/dist/routes/rbac.d.ts.map +1 -0
- package/dist/routes/rbac.js +126 -0
- package/dist/routes/rbac.js.map +1 -0
- package/dist/routes/shell.d.ts +22 -0
- package/dist/routes/shell.d.ts.map +1 -0
- package/dist/routes/shell.js +123 -0
- package/dist/routes/shell.js.map +1 -0
- package/dist/routes/subscriptions.d.ts +21 -0
- package/dist/routes/subscriptions.d.ts.map +1 -0
- package/dist/routes/subscriptions.js +127 -0
- package/dist/routes/subscriptions.js.map +1 -0
- package/dist/routes/tags.d.ts +23 -0
- package/dist/routes/tags.d.ts.map +1 -0
- package/dist/routes/tags.js +68 -0
- package/dist/routes/tags.js.map +1 -0
- package/dist/routes/topics.d.ts +12 -0
- package/dist/routes/topics.d.ts.map +1 -0
- package/dist/routes/topics.js +49 -0
- package/dist/routes/topics.js.map +1 -0
- package/dist/routes/webhooks.d.ts +31 -0
- package/dist/routes/webhooks.d.ts.map +1 -0
- package/dist/routes/webhooks.js +173 -0
- package/dist/routes/webhooks.js.map +1 -0
- package/dist/schema/index.d.ts +4 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +6 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/insights-ingest.d.ts +959 -0
- package/dist/schema/insights-ingest.d.ts.map +1 -0
- package/dist/schema/insights-ingest.js +112 -0
- package/dist/schema/insights-ingest.js.map +1 -0
- package/dist/schema/migrations.d.ts +63 -0
- package/dist/schema/migrations.d.ts.map +1 -0
- package/dist/schema/migrations.js +589 -0
- package/dist/schema/migrations.js.map +1 -0
- package/dist/schema/tables.d.ts +11 -0
- package/dist/schema/tables.d.ts.map +1 -0
- package/dist/schema/tables.js +56 -0
- package/dist/schema/tables.js.map +1 -0
- package/dist/schema/types.d.ts +476 -0
- package/dist/schema/types.d.ts.map +1 -0
- package/dist/schema/types.js +37 -0
- package/dist/schema/types.js.map +1 -0
- package/dist/ui/api/_authz.d.ts +6 -0
- package/dist/ui/api/_authz.d.ts.map +1 -0
- package/dist/ui/api/_authz.js +74 -0
- package/dist/ui/api/_authz.js.map +1 -0
- package/dist/ui/api/_content-config.d.ts +22 -0
- package/dist/ui/api/_content-config.d.ts.map +1 -0
- package/dist/ui/api/_content-config.js +50 -0
- package/dist/ui/api/_content-config.js.map +1 -0
- package/dist/ui/api/activity.d.ts +3 -0
- package/dist/ui/api/activity.d.ts.map +1 -0
- package/dist/ui/api/activity.js +28 -0
- package/dist/ui/api/activity.js.map +1 -0
- package/dist/ui/api/analytics.d.ts +3 -0
- package/dist/ui/api/analytics.d.ts.map +1 -0
- package/dist/ui/api/analytics.js +36 -0
- package/dist/ui/api/analytics.js.map +1 -0
- package/dist/ui/api/authors/[id].d.ts +4 -0
- package/dist/ui/api/authors/[id].d.ts.map +1 -0
- package/dist/ui/api/authors/[id].js +17 -0
- package/dist/ui/api/authors/[id].js.map +1 -0
- package/dist/ui/api/authors.d.ts +4 -0
- package/dist/ui/api/authors.d.ts.map +1 -0
- package/dist/ui/api/authors.js +12 -0
- package/dist/ui/api/authors.js.map +1 -0
- package/dist/ui/api/calendar.d.ts +3 -0
- package/dist/ui/api/calendar.d.ts.map +1 -0
- package/dist/ui/api/calendar.js +16 -0
- package/dist/ui/api/calendar.js.map +1 -0
- package/dist/ui/api/content/[id]/ai/headlines.d.ts +3 -0
- package/dist/ui/api/content/[id]/ai/headlines.d.ts.map +1 -0
- package/dist/ui/api/content/[id]/ai/headlines.js +7 -0
- package/dist/ui/api/content/[id]/ai/headlines.js.map +1 -0
- package/dist/ui/api/content/[id]/ai/meta-description.d.ts +3 -0
- package/dist/ui/api/content/[id]/ai/meta-description.d.ts.map +1 -0
- package/dist/ui/api/content/[id]/ai/meta-description.js +6 -0
- package/dist/ui/api/content/[id]/ai/meta-description.js.map +1 -0
- package/dist/ui/api/content/[id]/ai/og-image.d.ts +3 -0
- package/dist/ui/api/content/[id]/ai/og-image.d.ts.map +1 -0
- package/dist/ui/api/content/[id]/ai/og-image.js +7 -0
- package/dist/ui/api/content/[id]/ai/og-image.js.map +1 -0
- package/dist/ui/api/content/[id]/ai/proofread.d.ts +3 -0
- package/dist/ui/api/content/[id]/ai/proofread.d.ts.map +1 -0
- package/dist/ui/api/content/[id]/ai/proofread.js +7 -0
- package/dist/ui/api/content/[id]/ai/proofread.js.map +1 -0
- package/dist/ui/api/content/[id]/ai/takeaways.d.ts +3 -0
- package/dist/ui/api/content/[id]/ai/takeaways.d.ts.map +1 -0
- package/dist/ui/api/content/[id]/ai/takeaways.js +6 -0
- package/dist/ui/api/content/[id]/ai/takeaways.js.map +1 -0
- package/dist/ui/api/content/[id]/contributors.d.ts +4 -0
- package/dist/ui/api/content/[id]/contributors.d.ts.map +1 -0
- package/dist/ui/api/content/[id]/contributors.js +8 -0
- package/dist/ui/api/content/[id]/contributors.js.map +1 -0
- package/dist/ui/api/content/[id]/preview-token.d.ts +3 -0
- package/dist/ui/api/content/[id]/preview-token.d.ts.map +1 -0
- package/dist/ui/api/content/[id]/preview-token.js +16 -0
- package/dist/ui/api/content/[id]/preview-token.js.map +1 -0
- package/dist/ui/api/content/[id]/revisions/[rev]/restore.d.ts +3 -0
- package/dist/ui/api/content/[id]/revisions/[rev]/restore.d.ts.map +1 -0
- package/dist/ui/api/content/[id]/revisions/[rev]/restore.js +7 -0
- package/dist/ui/api/content/[id]/revisions/[rev]/restore.js.map +1 -0
- package/dist/ui/api/content/[id]/revisions/[rev].d.ts +3 -0
- package/dist/ui/api/content/[id]/revisions/[rev].d.ts.map +1 -0
- package/dist/ui/api/content/[id]/revisions/[rev].js +6 -0
- package/dist/ui/api/content/[id]/revisions/[rev].js.map +1 -0
- package/dist/ui/api/content/[id]/revisions.d.ts +3 -0
- package/dist/ui/api/content/[id]/revisions.d.ts.map +1 -0
- package/dist/ui/api/content/[id]/revisions.js +6 -0
- package/dist/ui/api/content/[id]/revisions.js.map +1 -0
- package/dist/ui/api/content/[id]/seo-score.d.ts +3 -0
- package/dist/ui/api/content/[id]/seo-score.d.ts.map +1 -0
- package/dist/ui/api/content/[id]/seo-score.js +7 -0
- package/dist/ui/api/content/[id]/seo-score.js.map +1 -0
- package/dist/ui/api/content/[id].d.ts +5 -0
- package/dist/ui/api/content/[id].d.ts.map +1 -0
- package/dist/ui/api/content/[id].js +17 -0
- package/dist/ui/api/content/[id].js.map +1 -0
- package/dist/ui/api/content/bulk.d.ts +3 -0
- package/dist/ui/api/content/bulk.d.ts.map +1 -0
- package/dist/ui/api/content/bulk.js +7 -0
- package/dist/ui/api/content/bulk.js.map +1 -0
- package/dist/ui/api/content/counts.d.ts +3 -0
- package/dist/ui/api/content/counts.d.ts.map +1 -0
- package/dist/ui/api/content/counts.js +8 -0
- package/dist/ui/api/content/counts.js.map +1 -0
- package/dist/ui/api/content/foundry-callback.d.ts +3 -0
- package/dist/ui/api/content/foundry-callback.d.ts.map +1 -0
- package/dist/ui/api/content/foundry-callback.js +8 -0
- package/dist/ui/api/content/foundry-callback.js.map +1 -0
- package/dist/ui/api/content/import/confirm.d.ts +3 -0
- package/dist/ui/api/content/import/confirm.d.ts.map +1 -0
- package/dist/ui/api/content/import/confirm.js +11 -0
- package/dist/ui/api/content/import/confirm.js.map +1 -0
- package/dist/ui/api/content/import/parse.d.ts +3 -0
- package/dist/ui/api/content/import/parse.d.ts.map +1 -0
- package/dist/ui/api/content/import/parse.js +11 -0
- package/dist/ui/api/content/import/parse.js.map +1 -0
- package/dist/ui/api/content/insights-ingest.d.ts +3 -0
- package/dist/ui/api/content/insights-ingest.d.ts.map +1 -0
- package/dist/ui/api/content/insights-ingest.js +15 -0
- package/dist/ui/api/content/insights-ingest.js.map +1 -0
- package/dist/ui/api/content-insights/dismiss.d.ts +3 -0
- package/dist/ui/api/content-insights/dismiss.d.ts.map +1 -0
- package/dist/ui/api/content-insights/dismiss.js +16 -0
- package/dist/ui/api/content-insights/dismiss.js.map +1 -0
- package/dist/ui/api/content-insights/index.d.ts +3 -0
- package/dist/ui/api/content-insights/index.d.ts.map +1 -0
- package/dist/ui/api/content-insights/index.js +12 -0
- package/dist/ui/api/content-insights/index.js.map +1 -0
- package/dist/ui/api/content-insights/undismiss.d.ts +3 -0
- package/dist/ui/api/content-insights/undismiss.d.ts.map +1 -0
- package/dist/ui/api/content-insights/undismiss.js +16 -0
- package/dist/ui/api/content-insights/undismiss.js.map +1 -0
- package/dist/ui/api/content.d.ts +4 -0
- package/dist/ui/api/content.d.ts.map +1 -0
- package/dist/ui/api/content.js +16 -0
- package/dist/ui/api/content.js.map +1 -0
- package/dist/ui/api/dashboard.d.ts +3 -0
- package/dist/ui/api/dashboard.d.ts.map +1 -0
- package/dist/ui/api/dashboard.js +22 -0
- package/dist/ui/api/dashboard.js.map +1 -0
- package/dist/ui/api/me.d.ts +3 -0
- package/dist/ui/api/me.d.ts.map +1 -0
- package/dist/ui/api/me.js +18 -0
- package/dist/ui/api/me.js.map +1 -0
- package/dist/ui/api/media/[id].d.ts +3 -0
- package/dist/ui/api/media/[id].d.ts.map +1 -0
- package/dist/ui/api/media/[id].js +17 -0
- package/dist/ui/api/media/[id].js.map +1 -0
- package/dist/ui/api/media/images.d.ts +3 -0
- package/dist/ui/api/media/images.d.ts.map +1 -0
- package/dist/ui/api/media/images.js +6 -0
- package/dist/ui/api/media/images.js.map +1 -0
- package/dist/ui/api/media/library/[id].d.ts +3 -0
- package/dist/ui/api/media/library/[id].d.ts.map +1 -0
- package/dist/ui/api/media/library/[id].js +6 -0
- package/dist/ui/api/media/library/[id].js.map +1 -0
- package/dist/ui/api/media/library.d.ts +3 -0
- package/dist/ui/api/media/library.d.ts.map +1 -0
- package/dist/ui/api/media/library.js +17 -0
- package/dist/ui/api/media/library.js.map +1 -0
- package/dist/ui/api/media/podcast/abort.d.ts +3 -0
- package/dist/ui/api/media/podcast/abort.d.ts.map +1 -0
- package/dist/ui/api/media/podcast/abort.js +4 -0
- package/dist/ui/api/media/podcast/abort.js.map +1 -0
- package/dist/ui/api/media/podcast/complete.d.ts +3 -0
- package/dist/ui/api/media/podcast/complete.d.ts.map +1 -0
- package/dist/ui/api/media/podcast/complete.js +4 -0
- package/dist/ui/api/media/podcast/complete.js.map +1 -0
- package/dist/ui/api/media/podcast/init.d.ts +3 -0
- package/dist/ui/api/media/podcast/init.d.ts.map +1 -0
- package/dist/ui/api/media/podcast/init.js +4 -0
- package/dist/ui/api/media/podcast/init.js.map +1 -0
- package/dist/ui/api/media/podcast/part.d.ts +3 -0
- package/dist/ui/api/media/podcast/part.d.ts.map +1 -0
- package/dist/ui/api/media/podcast/part.js +4 -0
- package/dist/ui/api/media/podcast/part.js.map +1 -0
- package/dist/ui/api/media/podcast.d.ts +3 -0
- package/dist/ui/api/media/podcast.d.ts.map +1 -0
- package/dist/ui/api/media/podcast.js +6 -0
- package/dist/ui/api/media/podcast.js.map +1 -0
- package/dist/ui/api/media/videos/abort.d.ts +3 -0
- package/dist/ui/api/media/videos/abort.d.ts.map +1 -0
- package/dist/ui/api/media/videos/abort.js +6 -0
- package/dist/ui/api/media/videos/abort.js.map +1 -0
- package/dist/ui/api/media/videos/complete.d.ts +3 -0
- package/dist/ui/api/media/videos/complete.d.ts.map +1 -0
- package/dist/ui/api/media/videos/complete.js +6 -0
- package/dist/ui/api/media/videos/complete.js.map +1 -0
- package/dist/ui/api/media/videos/init.d.ts +3 -0
- package/dist/ui/api/media/videos/init.d.ts.map +1 -0
- package/dist/ui/api/media/videos/init.js +6 -0
- package/dist/ui/api/media/videos/init.js.map +1 -0
- package/dist/ui/api/media/videos/part.d.ts +3 -0
- package/dist/ui/api/media/videos/part.d.ts.map +1 -0
- package/dist/ui/api/media/videos/part.js +6 -0
- package/dist/ui/api/media/videos/part.js.map +1 -0
- package/dist/ui/api/notifications.d.ts +4 -0
- package/dist/ui/api/notifications.d.ts.map +1 -0
- package/dist/ui/api/notifications.js +20 -0
- package/dist/ui/api/notifications.js.map +1 -0
- package/dist/ui/api/search.d.ts +3 -0
- package/dist/ui/api/search.d.ts.map +1 -0
- package/dist/ui/api/search.js +18 -0
- package/dist/ui/api/search.js.map +1 -0
- package/dist/ui/api/settings/api-keys/[id].d.ts +3 -0
- package/dist/ui/api/settings/api-keys/[id].d.ts.map +1 -0
- package/dist/ui/api/settings/api-keys/[id].js +22 -0
- package/dist/ui/api/settings/api-keys/[id].js.map +1 -0
- package/dist/ui/api/settings/api-keys.d.ts +4 -0
- package/dist/ui/api/settings/api-keys.d.ts.map +1 -0
- package/dist/ui/api/settings/api-keys.js +19 -0
- package/dist/ui/api/settings/api-keys.js.map +1 -0
- package/dist/ui/api/settings/domains.d.ts +3 -0
- package/dist/ui/api/settings/domains.d.ts.map +1 -0
- package/dist/ui/api/settings/domains.js +32 -0
- package/dist/ui/api/settings/domains.js.map +1 -0
- package/dist/ui/api/settings/integrations.d.ts +3 -0
- package/dist/ui/api/settings/integrations.d.ts.map +1 -0
- package/dist/ui/api/settings/integrations.js +32 -0
- package/dist/ui/api/settings/integrations.js.map +1 -0
- package/dist/ui/api/settings/members/[userId].d.ts +4 -0
- package/dist/ui/api/settings/members/[userId].d.ts.map +1 -0
- package/dist/ui/api/settings/members/[userId].js +26 -0
- package/dist/ui/api/settings/members/[userId].js.map +1 -0
- package/dist/ui/api/settings/members/invite.d.ts +3 -0
- package/dist/ui/api/settings/members/invite.d.ts.map +1 -0
- package/dist/ui/api/settings/members/invite.js +21 -0
- package/dist/ui/api/settings/members/invite.js.map +1 -0
- package/dist/ui/api/settings/members.d.ts +3 -0
- package/dist/ui/api/settings/members.d.ts.map +1 -0
- package/dist/ui/api/settings/members.js +17 -0
- package/dist/ui/api/settings/members.js.map +1 -0
- package/dist/ui/api/settings/webhooks/[id]/test.d.ts +3 -0
- package/dist/ui/api/settings/webhooks/[id]/test.d.ts.map +1 -0
- package/dist/ui/api/settings/webhooks/[id]/test.js +24 -0
- package/dist/ui/api/settings/webhooks/[id]/test.js.map +1 -0
- package/dist/ui/api/settings/webhooks/[id].d.ts +3 -0
- package/dist/ui/api/settings/webhooks/[id].d.ts.map +1 -0
- package/dist/ui/api/settings/webhooks/[id].js +23 -0
- package/dist/ui/api/settings/webhooks/[id].js.map +1 -0
- package/dist/ui/api/settings/webhooks.d.ts +4 -0
- package/dist/ui/api/settings/webhooks.d.ts.map +1 -0
- package/dist/ui/api/settings/webhooks.js +21 -0
- package/dist/ui/api/settings/webhooks.js.map +1 -0
- package/dist/ui/api/subscriptions.d.ts +4 -0
- package/dist/ui/api/subscriptions.d.ts.map +1 -0
- package/dist/ui/api/subscriptions.js +47 -0
- package/dist/ui/api/subscriptions.js.map +1 -0
- package/dist/ui/api/tags/[id].d.ts +4 -0
- package/dist/ui/api/tags/[id].d.ts.map +1 -0
- package/dist/ui/api/tags/[id].js +18 -0
- package/dist/ui/api/tags/[id].js.map +1 -0
- package/dist/ui/api/tags/index.d.ts +4 -0
- package/dist/ui/api/tags/index.d.ts.map +1 -0
- package/dist/ui/api/tags/index.js +13 -0
- package/dist/ui/api/tags/index.js.map +1 -0
- package/dist/ui/api/topics/[id].d.ts +3 -0
- package/dist/ui/api/topics/[id].d.ts.map +1 -0
- package/dist/ui/api/topics/[id].js +15 -0
- package/dist/ui/api/topics/[id].js.map +1 -0
- package/dist/ui/api/topics/index.d.ts +4 -0
- package/dist/ui/api/topics/index.d.ts.map +1 -0
- package/dist/ui/api/topics/index.js +12 -0
- package/dist/ui/api/topics/index.js.map +1 -0
- package/dist/ui/api/workspace-settings.d.ts +4 -0
- package/dist/ui/api/workspace-settings.d.ts.map +1 -0
- package/dist/ui/api/workspace-settings.js +20 -0
- package/dist/ui/api/workspace-settings.js.map +1 -0
- package/dist/ui/client/boot-state.d.ts +15 -0
- package/dist/ui/client/boot-state.d.ts.map +1 -0
- package/dist/ui/client/boot-state.js +36 -0
- package/dist/ui/client/boot-state.js.map +1 -0
- package/dist/ui/client/mount.d.ts +3 -0
- package/dist/ui/client/mount.d.ts.map +1 -0
- package/dist/ui/client/mount.js +37 -0
- package/dist/ui/client/mount.js.map +1 -0
- package/dist/ui/commands.d.ts +23 -0
- package/dist/ui/commands.d.ts.map +1 -0
- package/dist/ui/commands.js +48 -0
- package/dist/ui/commands.js.map +1 -0
- package/dist/ui/components/CmsApp.d.ts +16 -0
- package/dist/ui/components/CmsApp.d.ts.map +1 -0
- package/dist/ui/components/CmsApp.js +74 -0
- package/dist/ui/components/CmsApp.js.map +1 -0
- package/dist/ui/components/CommandPalette.d.ts +7 -0
- package/dist/ui/components/CommandPalette.d.ts.map +1 -0
- package/dist/ui/components/CommandPalette.js +61 -0
- package/dist/ui/components/CommandPalette.js.map +1 -0
- package/dist/ui/components/NoAccessScreen.d.ts +2 -0
- package/dist/ui/components/NoAccessScreen.d.ts.map +1 -0
- package/dist/ui/components/NoAccessScreen.js +42 -0
- package/dist/ui/components/NoAccessScreen.js.map +1 -0
- package/dist/ui/components/ShareModal.d.ts +27 -0
- package/dist/ui/components/ShareModal.d.ts.map +1 -0
- package/dist/ui/components/ShareModal.js +208 -0
- package/dist/ui/components/ShareModal.js.map +1 -0
- package/dist/ui/components/SharePickers.d.ts +39 -0
- package/dist/ui/components/SharePickers.d.ts.map +1 -0
- package/dist/ui/components/SharePickers.js +352 -0
- package/dist/ui/components/SharePickers.js.map +1 -0
- package/dist/ui/components/ShareStatsPanel.d.ts +22 -0
- package/dist/ui/components/ShareStatsPanel.d.ts.map +1 -0
- package/dist/ui/components/ShareStatsPanel.js +317 -0
- package/dist/ui/components/ShareStatsPanel.js.map +1 -0
- package/dist/ui/components/Sidebar.d.ts +7 -0
- package/dist/ui/components/Sidebar.d.ts.map +1 -0
- package/dist/ui/components/Sidebar.js +20 -0
- package/dist/ui/components/Sidebar.js.map +1 -0
- package/dist/ui/components/SiteSwitcher.d.ts +4 -0
- package/dist/ui/components/SiteSwitcher.d.ts.map +1 -0
- package/dist/ui/components/SiteSwitcher.js +35 -0
- package/dist/ui/components/SiteSwitcher.js.map +1 -0
- package/dist/ui/components/Topbar.d.ts +9 -0
- package/dist/ui/components/Topbar.d.ts.map +1 -0
- package/dist/ui/components/Topbar.js +20 -0
- package/dist/ui/components/Topbar.js.map +1 -0
- package/dist/ui/editor/AiAssistPanel.d.ts +8 -0
- package/dist/ui/editor/AiAssistPanel.d.ts.map +1 -0
- package/dist/ui/editor/AiAssistPanel.js +221 -0
- package/dist/ui/editor/AiAssistPanel.js.map +1 -0
- package/dist/ui/editor/ContentForm.d.ts +46 -0
- package/dist/ui/editor/ContentForm.d.ts.map +1 -0
- package/dist/ui/editor/ContentForm.js +821 -0
- package/dist/ui/editor/ContentForm.js.map +1 -0
- package/dist/ui/editor/Rte.d.ts +16 -0
- package/dist/ui/editor/Rte.d.ts.map +1 -0
- package/dist/ui/editor/Rte.js +272 -0
- package/dist/ui/editor/Rte.js.map +1 -0
- package/dist/ui/editor/ai-assist.d.ts +43 -0
- package/dist/ui/editor/ai-assist.d.ts.map +1 -0
- package/dist/ui/editor/ai-assist.js +114 -0
- package/dist/ui/editor/ai-assist.js.map +1 -0
- package/dist/ui/editor/autosave.d.ts +18 -0
- package/dist/ui/editor/autosave.d.ts.map +1 -0
- package/dist/ui/editor/autosave.js +23 -0
- package/dist/ui/editor/autosave.js.map +1 -0
- package/dist/ui/editor/content-payload.d.ts +19 -0
- package/dist/ui/editor/content-payload.d.ts.map +1 -0
- package/dist/ui/editor/content-payload.js +97 -0
- package/dist/ui/editor/content-payload.js.map +1 -0
- package/dist/ui/editor/editor-media-upload.d.ts +6 -0
- package/dist/ui/editor/editor-media-upload.d.ts.map +1 -0
- package/dist/ui/editor/editor-media-upload.js +20 -0
- package/dist/ui/editor/editor-media-upload.js.map +1 -0
- package/dist/ui/editor/serialize.d.ts +6 -0
- package/dist/ui/editor/serialize.d.ts.map +1 -0
- package/dist/ui/editor/serialize.js +479 -0
- package/dist/ui/editor/serialize.js.map +1 -0
- package/dist/ui/editor/tweet-embed.d.ts +4 -0
- package/dist/ui/editor/tweet-embed.d.ts.map +1 -0
- package/dist/ui/editor/tweet-embed.js +49 -0
- package/dist/ui/editor/tweet-embed.js.map +1 -0
- package/dist/ui/hash-router.d.ts +5 -0
- package/dist/ui/hash-router.d.ts.map +1 -0
- package/dist/ui/hash-router.js +25 -0
- package/dist/ui/hash-router.js.map +1 -0
- package/dist/ui/icons.d.ts +32 -0
- package/dist/ui/icons.d.ts.map +1 -0
- package/dist/ui/icons.js +86 -0
- package/dist/ui/icons.js.map +1 -0
- package/dist/ui/inspector/Field.d.ts +12 -0
- package/dist/ui/inspector/Field.d.ts.map +1 -0
- package/dist/ui/inspector/Field.js +8 -0
- package/dist/ui/inspector/Field.js.map +1 -0
- package/dist/ui/inspector/FoundryTab.d.ts +9 -0
- package/dist/ui/inspector/FoundryTab.d.ts.map +1 -0
- package/dist/ui/inspector/FoundryTab.js +362 -0
- package/dist/ui/inspector/FoundryTab.js.map +1 -0
- package/dist/ui/inspector/HistoryTab.d.ts +7 -0
- package/dist/ui/inspector/HistoryTab.d.ts.map +1 -0
- package/dist/ui/inspector/HistoryTab.js +289 -0
- package/dist/ui/inspector/HistoryTab.js.map +1 -0
- package/dist/ui/inspector/Inspector.d.ts +13 -0
- package/dist/ui/inspector/Inspector.d.ts.map +1 -0
- package/dist/ui/inspector/Inspector.js +163 -0
- package/dist/ui/inspector/Inspector.js.map +1 -0
- package/dist/ui/inspector/OrganizeTab.d.ts +15 -0
- package/dist/ui/inspector/OrganizeTab.d.ts.map +1 -0
- package/dist/ui/inspector/OrganizeTab.js +319 -0
- package/dist/ui/inspector/OrganizeTab.js.map +1 -0
- package/dist/ui/inspector/PublishTab.d.ts +18 -0
- package/dist/ui/inspector/PublishTab.d.ts.map +1 -0
- package/dist/ui/inspector/PublishTab.js +339 -0
- package/dist/ui/inspector/PublishTab.js.map +1 -0
- package/dist/ui/inspector/Section.d.ts +10 -0
- package/dist/ui/inspector/Section.d.ts.map +1 -0
- package/dist/ui/inspector/Section.js +40 -0
- package/dist/ui/inspector/Section.js.map +1 -0
- package/dist/ui/inspector/SeoTab.d.ts +19 -0
- package/dist/ui/inspector/SeoTab.d.ts.map +1 -0
- package/dist/ui/inspector/SeoTab.js +328 -0
- package/dist/ui/inspector/SeoTab.js.map +1 -0
- package/dist/ui/inspector/foundry-stages.d.ts +36 -0
- package/dist/ui/inspector/foundry-stages.d.ts.map +1 -0
- package/dist/ui/inspector/foundry-stages.js +101 -0
- package/dist/ui/inspector/foundry-stages.js.map +1 -0
- package/dist/ui/inspector/inspector-data.d.ts +80 -0
- package/dist/ui/inspector/inspector-data.d.ts.map +1 -0
- package/dist/ui/inspector/inspector-data.js +172 -0
- package/dist/ui/inspector/inspector-data.js.map +1 -0
- package/dist/ui/inspector/organize-data.d.ts +23 -0
- package/dist/ui/inspector/organize-data.d.ts.map +1 -0
- package/dist/ui/inspector/organize-data.js +28 -0
- package/dist/ui/inspector/organize-data.js.map +1 -0
- package/dist/ui/inspector/revision-diff.d.ts +49 -0
- package/dist/ui/inspector/revision-diff.d.ts.map +1 -0
- package/dist/ui/inspector/revision-diff.js +166 -0
- package/dist/ui/inspector/revision-diff.js.map +1 -0
- package/dist/ui/inspector/seo-helpers.d.ts +37 -0
- package/dist/ui/inspector/seo-helpers.d.ts.map +1 -0
- package/dist/ui/inspector/seo-helpers.js +37 -0
- package/dist/ui/inspector/seo-helpers.js.map +1 -0
- package/dist/ui/inspector/tab-visibility.d.ts +14 -0
- package/dist/ui/inspector/tab-visibility.d.ts.map +1 -0
- package/dist/ui/inspector/tab-visibility.js +28 -0
- package/dist/ui/inspector/tab-visibility.js.map +1 -0
- package/dist/ui/nav.d.ts +16 -0
- package/dist/ui/nav.d.ts.map +1 -0
- package/dist/ui/nav.js +33 -0
- package/dist/ui/nav.js.map +1 -0
- package/dist/ui/pages/admin.astro +32 -0
- package/dist/ui/preview/draft-page.d.ts +37 -0
- package/dist/ui/preview/draft-page.d.ts.map +1 -0
- package/dist/ui/preview/draft-page.js +212 -0
- package/dist/ui/preview/draft-page.js.map +1 -0
- package/dist/ui/preview/preview-layout.d.ts +23 -0
- package/dist/ui/preview/preview-layout.d.ts.map +1 -0
- package/dist/ui/preview/preview-layout.js +30 -0
- package/dist/ui/preview/preview-layout.js.map +1 -0
- package/dist/ui/screens/AnalyticsScreen.d.ts +2 -0
- package/dist/ui/screens/AnalyticsScreen.d.ts.map +1 -0
- package/dist/ui/screens/AnalyticsScreen.js +408 -0
- package/dist/ui/screens/AnalyticsScreen.js.map +1 -0
- package/dist/ui/screens/AuthorsScreen.d.ts +2 -0
- package/dist/ui/screens/AuthorsScreen.d.ts.map +1 -0
- package/dist/ui/screens/AuthorsScreen.js +225 -0
- package/dist/ui/screens/AuthorsScreen.js.map +1 -0
- package/dist/ui/screens/CalendarScreen.d.ts +6 -0
- package/dist/ui/screens/CalendarScreen.d.ts.map +1 -0
- package/dist/ui/screens/CalendarScreen.js +327 -0
- package/dist/ui/screens/CalendarScreen.js.map +1 -0
- package/dist/ui/screens/ContentInsightsScreen.d.ts +2 -0
- package/dist/ui/screens/ContentInsightsScreen.d.ts.map +1 -0
- package/dist/ui/screens/ContentInsightsScreen.js +129 -0
- package/dist/ui/screens/ContentInsightsScreen.js.map +1 -0
- package/dist/ui/screens/ContentRoute.d.ts +2 -0
- package/dist/ui/screens/ContentRoute.d.ts.map +1 -0
- package/dist/ui/screens/ContentRoute.js +32 -0
- package/dist/ui/screens/ContentRoute.js.map +1 -0
- package/dist/ui/screens/DashboardScreen.d.ts +6 -0
- package/dist/ui/screens/DashboardScreen.d.ts.map +1 -0
- package/dist/ui/screens/DashboardScreen.js +273 -0
- package/dist/ui/screens/DashboardScreen.js.map +1 -0
- package/dist/ui/screens/EditorScreen.d.ts +7 -0
- package/dist/ui/screens/EditorScreen.d.ts.map +1 -0
- package/dist/ui/screens/EditorScreen.js +426 -0
- package/dist/ui/screens/EditorScreen.js.map +1 -0
- package/dist/ui/screens/LibraryScreen.d.ts +6 -0
- package/dist/ui/screens/LibraryScreen.d.ts.map +1 -0
- package/dist/ui/screens/LibraryScreen.js +580 -0
- package/dist/ui/screens/LibraryScreen.js.map +1 -0
- package/dist/ui/screens/MediaScreen.d.ts +2 -0
- package/dist/ui/screens/MediaScreen.d.ts.map +1 -0
- package/dist/ui/screens/MediaScreen.js +173 -0
- package/dist/ui/screens/MediaScreen.js.map +1 -0
- package/dist/ui/screens/SettingsScreen.d.ts +4 -0
- package/dist/ui/screens/SettingsScreen.d.ts.map +1 -0
- package/dist/ui/screens/SettingsScreen.js +751 -0
- package/dist/ui/screens/SettingsScreen.js.map +1 -0
- package/dist/ui/screens/SocialShareScreen.d.ts +2 -0
- package/dist/ui/screens/SocialShareScreen.d.ts.map +1 -0
- package/dist/ui/screens/SocialShareScreen.js +224 -0
- package/dist/ui/screens/SocialShareScreen.js.map +1 -0
- package/dist/ui/screens/SubscriptionsScreen.d.ts +2 -0
- package/dist/ui/screens/SubscriptionsScreen.d.ts.map +1 -0
- package/dist/ui/screens/SubscriptionsScreen.js +441 -0
- package/dist/ui/screens/SubscriptionsScreen.js.map +1 -0
- package/dist/ui/screens/TopicsScreen.d.ts +2 -0
- package/dist/ui/screens/TopicsScreen.d.ts.map +1 -0
- package/dist/ui/screens/TopicsScreen.js +360 -0
- package/dist/ui/screens/TopicsScreen.js.map +1 -0
- package/dist/ui/screens/analytics-data.d.ts +19 -0
- package/dist/ui/screens/analytics-data.d.ts.map +1 -0
- package/dist/ui/screens/analytics-data.js +42 -0
- package/dist/ui/screens/analytics-data.js.map +1 -0
- package/dist/ui/screens/calendar-data.d.ts +45 -0
- package/dist/ui/screens/calendar-data.d.ts.map +1 -0
- package/dist/ui/screens/calendar-data.js +70 -0
- package/dist/ui/screens/calendar-data.js.map +1 -0
- package/dist/ui/screens/content-insights-data.d.ts +54 -0
- package/dist/ui/screens/content-insights-data.d.ts.map +1 -0
- package/dist/ui/screens/content-insights-data.js +82 -0
- package/dist/ui/screens/content-insights-data.js.map +1 -0
- package/dist/ui/screens/content-view.d.ts +21 -0
- package/dist/ui/screens/content-view.d.ts.map +1 -0
- package/dist/ui/screens/content-view.js +17 -0
- package/dist/ui/screens/content-view.js.map +1 -0
- package/dist/ui/screens/library-data.d.ts +76 -0
- package/dist/ui/screens/library-data.d.ts.map +1 -0
- package/dist/ui/screens/library-data.js +116 -0
- package/dist/ui/screens/library-data.js.map +1 -0
- package/dist/ui/screens/media-upload.d.ts +19 -0
- package/dist/ui/screens/media-upload.d.ts.map +1 -0
- package/dist/ui/screens/media-upload.js +187 -0
- package/dist/ui/screens/media-upload.js.map +1 -0
- package/dist/ui/screens/public-url.d.ts +24 -0
- package/dist/ui/screens/public-url.d.ts.map +1 -0
- package/dist/ui/screens/public-url.js +74 -0
- package/dist/ui/screens/public-url.js.map +1 -0
- package/dist/ui/screens/registry.d.ts +3 -0
- package/dist/ui/screens/registry.d.ts.map +1 -0
- package/dist/ui/screens/registry.js +38 -0
- package/dist/ui/screens/registry.js.map +1 -0
- package/dist/ui/screens/render-state.d.ts +105 -0
- package/dist/ui/screens/render-state.d.ts.map +1 -0
- package/dist/ui/screens/render-state.js +127 -0
- package/dist/ui/screens/render-state.js.map +1 -0
- package/dist/ui/screens/settings-data.d.ts +55 -0
- package/dist/ui/screens/settings-data.d.ts.map +1 -0
- package/dist/ui/screens/settings-data.js +89 -0
- package/dist/ui/screens/settings-data.js.map +1 -0
- package/dist/ui/screens/settings-panels-data.d.ts +58 -0
- package/dist/ui/screens/settings-panels-data.d.ts.map +1 -0
- package/dist/ui/screens/settings-panels-data.js +88 -0
- package/dist/ui/screens/settings-panels-data.js.map +1 -0
- package/dist/ui/screens/social-share-data.d.ts +307 -0
- package/dist/ui/screens/social-share-data.d.ts.map +1 -0
- package/dist/ui/screens/social-share-data.js +447 -0
- package/dist/ui/screens/social-share-data.js.map +1 -0
- package/dist/ui/screens/topics-data.d.ts +38 -0
- package/dist/ui/screens/topics-data.d.ts.map +1 -0
- package/dist/ui/screens/topics-data.js +50 -0
- package/dist/ui/screens/topics-data.js.map +1 -0
- package/dist/ui/styles/broadsheet.css +394 -0
- package/dist/ui/theme.d.ts +23 -0
- package/dist/ui/theme.d.ts.map +1 -0
- package/dist/ui/theme.js +87 -0
- package/dist/ui/theme.js.map +1 -0
- package/dist/ui/tweaks.d.ts +7 -0
- package/dist/ui/tweaks.d.ts.map +1 -0
- package/dist/ui/tweaks.js +31 -0
- package/dist/ui/tweaks.js.map +1 -0
- package/dist/ui/use-hash-router.d.ts +6 -0
- package/dist/ui/use-hash-router.d.ts.map +1 -0
- package/dist/ui/use-hash-router.js +15 -0
- package/dist/ui/use-hash-router.js.map +1 -0
- package/dist/ui/use-tweaks.d.ts +6 -0
- package/dist/ui/use-tweaks.d.ts.map +1 -0
- package/dist/ui/use-tweaks.js +24 -0
- package/dist/ui/use-tweaks.js.map +1 -0
- package/dist/ui/workspace-context.d.ts +34 -0
- package/dist/ui/workspace-context.d.ts.map +1 -0
- package/dist/ui/workspace-context.js +32 -0
- package/dist/ui/workspace-context.js.map +1 -0
- package/migrations/0001_create_cms_tables.sql +200 -0
- package/migrations/0002_review_softdelete_board.sql +112 -0
- package/migrations/0003_content_contributors.sql +16 -0
- package/migrations/0004_seo_faq_columns.sql +6 -0
- package/migrations/0005_revision_delta_columns.sql +5 -0
- package/migrations/0006_processing_trigger_token.sql +4 -0
- package/migrations/0007_content_slug_redirects.sql +9 -0
- package/migrations/0008_workspace_settings.sql +17 -0
- package/migrations/0009_workspace_memberships.sql +36 -0
- package/migrations/0010_api_keys_webhooks.sql +21 -0
- package/migrations/0011_notifications_activity.sql +22 -0
- package/migrations/0012_content_imports.sql +10 -0
- package/migrations/0013_media_normalization.sql +4 -0
- package/migrations/0014_api_key_prefix.sql +3 -0
- package/migrations/0015_cms_topics.sql +7 -0
- package/migrations/0016_content_insights.sql +53 -0
- package/package.json +82 -0
- package/src/engine/activity-log.ts +39 -0
- package/src/engine/ai-prompts.ts +124 -0
- package/src/engine/ai-writeback.ts +62 -0
- package/src/engine/api-keys.ts +239 -0
- package/src/engine/content-insights.ts +198 -0
- package/src/engine/contributors.ts +95 -0
- package/src/engine/cron.ts +62 -0
- package/src/engine/d1.ts +29 -0
- package/src/engine/foundry-dispatch.ts +417 -0
- package/src/engine/import-parsers.ts +478 -0
- package/src/engine/index.ts +230 -0
- package/src/engine/invites.ts +271 -0
- package/src/engine/members.ts +216 -0
- package/src/engine/membership-rules.ts +63 -0
- package/src/engine/og-render.ts +59 -0
- package/src/engine/publish-guard.ts +123 -0
- package/src/engine/publisher.ts +1032 -0
- package/src/engine/revisions.ts +292 -0
- package/src/engine/sanitize.ts +183 -0
- package/src/engine/seed-membership.ts +92 -0
- package/src/engine/seo.ts +72 -0
- package/src/engine/slug-redirects.ts +34 -0
- package/src/engine/slug.ts +33 -0
- package/src/engine/soft-delete.ts +42 -0
- package/src/engine/tags.ts +95 -0
- package/src/engine/topics.ts +158 -0
- package/src/engine/url-guard.ts +136 -0
- package/src/engine/validator/checks/bare-url-not-autolinked.ts +78 -0
- package/src/engine/validator/checks/broken-footnote-label.ts +33 -0
- package/src/engine/validator/checks/double-encoded-entities.ts +46 -0
- package/src/engine/validator/checks/empty-alt-text.ts +35 -0
- package/src/engine/validator/checks/heading-hierarchy-skip.ts +33 -0
- package/src/engine/validator/checks/html-comment-leak.ts +58 -0
- package/src/engine/validator/checks/iframe-missing-dims-and-wrapper.ts +34 -0
- package/src/engine/validator/checks/invisible-control-chars.ts +58 -0
- package/src/engine/validator/checks/paywall-marker-leak.ts +43 -0
- package/src/engine/validator/checks/raw-block-html.ts +65 -0
- package/src/engine/validator/checks/stale-body-html.ts +39 -0
- package/src/engine/validator/checks/unresolved-footnote-anchor.ts +61 -0
- package/src/engine/validator/checks/word-gdocs-paste-artifacts.ts +72 -0
- package/src/engine/validator/index.ts +385 -0
- package/src/engine/validator/scan.ts +103 -0
- package/src/engine/validator/types.ts +114 -0
- package/src/engine/webhook-signer.ts +139 -0
- package/src/engine/webhooks.ts +224 -0
- package/src/index.ts +79 -0
- package/src/integration/index.ts +298 -0
- package/src/integration/options.ts +30 -0
- package/src/integration/vite-plugin.ts +37 -0
- package/src/providers/index.ts +2 -0
- package/src/providers/null.ts +160 -0
- package/src/providers/types.ts +284 -0
- package/src/routes/ai.ts +461 -0
- package/src/routes/analytics.ts +78 -0
- package/src/routes/api-keys.ts +133 -0
- package/src/routes/authors.ts +282 -0
- package/src/routes/authz-matrix.ts +239 -0
- package/src/routes/calendar.ts +127 -0
- package/src/routes/config.ts +99 -0
- package/src/routes/content-insights.ts +159 -0
- package/src/routes/content.ts +1753 -0
- package/src/routes/context.ts +146 -0
- package/src/routes/cron.ts +27 -0
- package/src/routes/dashboard.ts +174 -0
- package/src/routes/imports.ts +190 -0
- package/src/routes/index.ts +295 -0
- package/src/routes/media-lib.ts +405 -0
- package/src/routes/media.ts +944 -0
- package/src/routes/preview.ts +182 -0
- package/src/routes/rbac-invites.ts +220 -0
- package/src/routes/rbac.ts +155 -0
- package/src/routes/shell.ts +163 -0
- package/src/routes/subscriptions.ts +167 -0
- package/src/routes/tags.ts +93 -0
- package/src/routes/topics.ts +58 -0
- package/src/routes/webhooks.ts +233 -0
- package/src/schema/index.ts +45 -0
- package/src/schema/insights-ingest.ts +126 -0
- package/src/schema/migrations.ts +599 -0
- package/src/schema/tables.ts +59 -0
- package/src/schema/types.ts +576 -0
- package/src/ui/api/_authz.ts +100 -0
- package/src/ui/api/_content-config.ts +75 -0
- package/src/ui/api/activity.ts +33 -0
- package/src/ui/api/analytics.ts +42 -0
- package/src/ui/api/authors/[id].ts +23 -0
- package/src/ui/api/authors.ts +19 -0
- package/src/ui/api/calendar.ts +21 -0
- package/src/ui/api/content/[id]/ai/headlines.ts +10 -0
- package/src/ui/api/content/[id]/ai/meta-description.ts +11 -0
- package/src/ui/api/content/[id]/ai/og-image.ts +10 -0
- package/src/ui/api/content/[id]/ai/proofread.ts +10 -0
- package/src/ui/api/content/[id]/ai/takeaways.ts +11 -0
- package/src/ui/api/content/[id]/contributors.ts +13 -0
- package/src/ui/api/content/[id]/preview-token.ts +21 -0
- package/src/ui/api/content/[id]/revisions/[rev]/restore.ts +12 -0
- package/src/ui/api/content/[id]/revisions/[rev].ts +11 -0
- package/src/ui/api/content/[id]/revisions.ts +9 -0
- package/src/ui/api/content/[id]/seo-score.ts +10 -0
- package/src/ui/api/content/[id].ts +23 -0
- package/src/ui/api/content/bulk.ts +10 -0
- package/src/ui/api/content/counts.ts +11 -0
- package/src/ui/api/content/foundry-callback.ts +11 -0
- package/src/ui/api/content/import/confirm.ts +16 -0
- package/src/ui/api/content/import/parse.ts +16 -0
- package/src/ui/api/content/insights-ingest.ts +24 -0
- package/src/ui/api/content-insights/dismiss.ts +23 -0
- package/src/ui/api/content-insights/index.ts +21 -0
- package/src/ui/api/content-insights/undismiss.ts +23 -0
- package/src/ui/api/content.ts +21 -0
- package/src/ui/api/dashboard.ts +28 -0
- package/src/ui/api/me.ts +23 -0
- package/src/ui/api/media/[id].ts +22 -0
- package/src/ui/api/media/images.ts +9 -0
- package/src/ui/api/media/library/[id].ts +9 -0
- package/src/ui/api/media/library.ts +22 -0
- package/src/ui/api/media/podcast/abort.ts +6 -0
- package/src/ui/api/media/podcast/complete.ts +6 -0
- package/src/ui/api/media/podcast/init.ts +6 -0
- package/src/ui/api/media/podcast/part.ts +6 -0
- package/src/ui/api/media/podcast.ts +9 -0
- package/src/ui/api/media/videos/abort.ts +9 -0
- package/src/ui/api/media/videos/complete.ts +9 -0
- package/src/ui/api/media/videos/init.ts +9 -0
- package/src/ui/api/media/videos/part.ts +9 -0
- package/src/ui/api/notifications.ts +26 -0
- package/src/ui/api/search.ts +23 -0
- package/src/ui/api/settings/api-keys/[id].ts +28 -0
- package/src/ui/api/settings/api-keys.ts +25 -0
- package/src/ui/api/settings/domains.ts +37 -0
- package/src/ui/api/settings/integrations.ts +40 -0
- package/src/ui/api/settings/members/[userId].ts +33 -0
- package/src/ui/api/settings/members/invite.ts +27 -0
- package/src/ui/api/settings/members.ts +23 -0
- package/src/ui/api/settings/webhooks/[id]/test.ts +30 -0
- package/src/ui/api/settings/webhooks/[id].ts +29 -0
- package/src/ui/api/settings/webhooks.ts +27 -0
- package/src/ui/api/subscriptions.ts +56 -0
- package/src/ui/api/tags/[id].ts +24 -0
- package/src/ui/api/tags/index.ts +18 -0
- package/src/ui/api/topics/[id].ts +20 -0
- package/src/ui/api/topics/index.ts +17 -0
- package/src/ui/api/workspace-settings.ts +26 -0
- package/src/ui/client/boot-state.ts +42 -0
- package/src/ui/client/mount.tsx +41 -0
- package/src/ui/commands.ts +62 -0
- package/src/ui/components/CmsApp.tsx +149 -0
- package/src/ui/components/CommandPalette.tsx +118 -0
- package/src/ui/components/NoAccessScreen.tsx +79 -0
- package/src/ui/components/ShareModal.tsx +650 -0
- package/src/ui/components/SharePickers.tsx +790 -0
- package/src/ui/components/ShareStatsPanel.tsx +721 -0
- package/src/ui/components/Sidebar.tsx +86 -0
- package/src/ui/components/SiteSwitcher.tsx +100 -0
- package/src/ui/components/Topbar.tsx +93 -0
- package/src/ui/editor/AiAssistPanel.tsx +407 -0
- package/src/ui/editor/ContentForm.tsx +1462 -0
- package/src/ui/editor/Rte.tsx +382 -0
- package/src/ui/editor/ai-assist.ts +139 -0
- package/src/ui/editor/autosave.ts +36 -0
- package/src/ui/editor/content-payload.ts +125 -0
- package/src/ui/editor/editor-media-upload.ts +26 -0
- package/src/ui/editor/serialize.ts +522 -0
- package/src/ui/editor/tweet-embed.ts +60 -0
- package/src/ui/hash-router.ts +30 -0
- package/src/ui/icons.tsx +208 -0
- package/src/ui/inspector/Field.tsx +30 -0
- package/src/ui/inspector/FoundryTab.tsx +613 -0
- package/src/ui/inspector/HistoryTab.tsx +482 -0
- package/src/ui/inspector/Inspector.tsx +328 -0
- package/src/ui/inspector/OrganizeTab.tsx +534 -0
- package/src/ui/inspector/PublishTab.tsx +626 -0
- package/src/ui/inspector/Section.tsx +81 -0
- package/src/ui/inspector/SeoTab.tsx +573 -0
- package/src/ui/inspector/foundry-stages.ts +140 -0
- package/src/ui/inspector/inspector-data.ts +232 -0
- package/src/ui/inspector/organize-data.ts +51 -0
- package/src/ui/inspector/revision-diff.ts +213 -0
- package/src/ui/inspector/seo-helpers.ts +71 -0
- package/src/ui/inspector/tab-visibility.ts +37 -0
- package/src/ui/nav.ts +48 -0
- package/src/ui/pages/admin.astro +32 -0
- package/src/ui/preview/draft-page.tsx +395 -0
- package/src/ui/preview/preview-layout.ts +49 -0
- package/src/ui/screens/AnalyticsScreen.tsx +938 -0
- package/src/ui/screens/AuthorsScreen.tsx +524 -0
- package/src/ui/screens/CalendarScreen.tsx +694 -0
- package/src/ui/screens/ContentInsightsScreen.tsx +417 -0
- package/src/ui/screens/ContentRoute.tsx +35 -0
- package/src/ui/screens/DashboardScreen.tsx +654 -0
- package/src/ui/screens/EditorScreen.tsx +673 -0
- package/src/ui/screens/LibraryScreen.tsx +1350 -0
- package/src/ui/screens/MediaScreen.tsx +357 -0
- package/src/ui/screens/SettingsScreen.tsx +1841 -0
- package/src/ui/screens/SocialShareScreen.tsx +670 -0
- package/src/ui/screens/SubscriptionsScreen.tsx +1240 -0
- package/src/ui/screens/TopicsScreen.tsx +912 -0
- package/src/ui/screens/analytics-data.ts +68 -0
- package/src/ui/screens/calendar-data.ts +126 -0
- package/src/ui/screens/content-insights-data.ts +127 -0
- package/src/ui/screens/content-view.ts +30 -0
- package/src/ui/screens/library-data.ts +177 -0
- package/src/ui/screens/media-upload.ts +283 -0
- package/src/ui/screens/public-url.ts +81 -0
- package/src/ui/screens/registry.tsx +53 -0
- package/src/ui/screens/render-state.ts +228 -0
- package/src/ui/screens/settings-data.ts +140 -0
- package/src/ui/screens/settings-panels-data.ts +142 -0
- package/src/ui/screens/social-share-data.ts +753 -0
- package/src/ui/screens/topics-data.ts +75 -0
- package/src/ui/styles/broadsheet.css +394 -0
- package/src/ui/theme.ts +104 -0
- package/src/ui/tweaks.ts +37 -0
- package/src/ui/use-hash-router.ts +17 -0
- package/src/ui/use-tweaks.ts +31 -0
- package/src/ui/workspace-context.tsx +62 -0
- package/src/virtual.d.ts +4 -0
|
@@ -0,0 +1,821 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
// src/ui/editor/ContentForm.tsx — four-type content form with Tiptap RTE.
|
|
3
|
+
//
|
|
4
|
+
// Handles: title, dek (excerpt), type-specific body block:
|
|
5
|
+
// - article / newsletter → <Rte/> (Tiptap body)
|
|
6
|
+
// - video → media/video block (URL input; the actual R2 multipart upload
|
|
7
|
+
// is wired through the existing /media/multipart routes; here
|
|
8
|
+
// we store a source URL or R2 key)
|
|
9
|
+
// - podcast → audio block (source URL; mirrors video)
|
|
10
|
+
//
|
|
11
|
+
// Footer: live word-count + read-time via engine's countWords/estimateReadTime.
|
|
12
|
+
//
|
|
13
|
+
// Autosave:
|
|
14
|
+
// - debounce AUTOSAVE_DEBOUNCE_MS → PATCH /content/:id
|
|
15
|
+
// - shouldSnapshot cadence → POST /content/:id?action=snapshot
|
|
16
|
+
//
|
|
17
|
+
// New-doc flow: when docId is null (new content), the form calls POST /content
|
|
18
|
+
// on the first save and switches to update mode.
|
|
19
|
+
//
|
|
20
|
+
// Compile-gated: all Tiptap/React usage verified by `pnpm run build` (tsc).
|
|
21
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
22
|
+
import { countWords, estimateReadTime } from '../../engine/publisher.js';
|
|
23
|
+
import { Icon } from '../icons.js';
|
|
24
|
+
import { uploadMediaAsset } from '../screens/media-upload.js';
|
|
25
|
+
import { AiAssistPanel } from './AiAssistPanel.js';
|
|
26
|
+
import { AUTOSAVE_DEBOUNCE_MS, shouldSnapshot } from './autosave.js';
|
|
27
|
+
import { buildContentCreatePayload, buildContentUpdatePayload, canCreateContentDraft, foundryDispatchSourceForDraft, slugifyTitle, } from './content-payload.js';
|
|
28
|
+
import { uploadEditorImage } from './editor-media-upload.js';
|
|
29
|
+
import { Rte } from './Rte.js';
|
|
30
|
+
import { docToMarkdown } from './serialize.js';
|
|
31
|
+
function createEmptyFormState(docId) {
|
|
32
|
+
return {
|
|
33
|
+
status: 'draft',
|
|
34
|
+
title: '',
|
|
35
|
+
dek: '',
|
|
36
|
+
body: '',
|
|
37
|
+
slug: '',
|
|
38
|
+
byline: null,
|
|
39
|
+
authorId: null,
|
|
40
|
+
authorName: null,
|
|
41
|
+
authorSlug: null,
|
|
42
|
+
publishedAt: null,
|
|
43
|
+
premium: false,
|
|
44
|
+
channel: null,
|
|
45
|
+
heroImageId: '',
|
|
46
|
+
heroImageUrl: null,
|
|
47
|
+
heroUploadStatus: 'idle',
|
|
48
|
+
heroUploadError: null,
|
|
49
|
+
videoUrl: '',
|
|
50
|
+
videoSourceKind: null,
|
|
51
|
+
videoId: null,
|
|
52
|
+
thumbnailImageId: '',
|
|
53
|
+
thumbnailImageUrl: null,
|
|
54
|
+
thumbnailUploadStatus: 'idle',
|
|
55
|
+
thumbnailUploadError: null,
|
|
56
|
+
audioUrl: '',
|
|
57
|
+
audioUploadStatus: 'idle',
|
|
58
|
+
audioUploadError: null,
|
|
59
|
+
videoUploadStatus: 'idle',
|
|
60
|
+
videoUploadError: null,
|
|
61
|
+
videoPipelineStatus: 'idle',
|
|
62
|
+
videoPipelineError: null,
|
|
63
|
+
savedId: docId,
|
|
64
|
+
saving: false,
|
|
65
|
+
saveError: null,
|
|
66
|
+
lastSavedAt: null,
|
|
67
|
+
aiOpen: false,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
// ---------------------------------------------------------------------------
|
|
71
|
+
// Component
|
|
72
|
+
// ---------------------------------------------------------------------------
|
|
73
|
+
export function ContentForm({ docId, contentType, onDocCreated, onTitleChange, onDraftChange, saveRequest = 0, onStatusChange, onSaveStateChange, }) {
|
|
74
|
+
const [form, setForm] = useState(() => createEmptyFormState(docId));
|
|
75
|
+
// Autosave state (mutable refs, not React state — no re-render needed)
|
|
76
|
+
const debounceTimer = useRef(null);
|
|
77
|
+
const savesSinceSnapshot = useRef(0);
|
|
78
|
+
const lastSnapshotAt = useRef(Date.now());
|
|
79
|
+
const queuedVideoSources = useRef(new Set());
|
|
80
|
+
const lastHandledSaveRequest = useRef(saveRequest);
|
|
81
|
+
const latestForm = useRef(form);
|
|
82
|
+
latestForm.current = form;
|
|
83
|
+
const publishDraft = useCallback((next) => {
|
|
84
|
+
onTitleChange?.(next.title);
|
|
85
|
+
onDraftChange?.(formToPreviewDraft(next, contentType));
|
|
86
|
+
}, [contentType, onDraftChange, onTitleChange]);
|
|
87
|
+
const loadExistingContent = useCallback(async () => {
|
|
88
|
+
if (!docId) {
|
|
89
|
+
const next = createEmptyFormState(null);
|
|
90
|
+
setForm(next);
|
|
91
|
+
publishDraft(next);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
try {
|
|
95
|
+
const res = await fetch(`/admin/api/content/${docId}`);
|
|
96
|
+
if (!res.ok) {
|
|
97
|
+
const err = (await res.json().catch(() => ({ error: res.statusText })));
|
|
98
|
+
throw new Error(err.error ?? 'Could not load content');
|
|
99
|
+
}
|
|
100
|
+
const data = (await res.json());
|
|
101
|
+
const next = contentResponseToFormState(data, contentType, docId);
|
|
102
|
+
setForm((prev) => ({
|
|
103
|
+
...next,
|
|
104
|
+
aiOpen: prev.aiOpen,
|
|
105
|
+
}));
|
|
106
|
+
onStatusChange?.(next.status);
|
|
107
|
+
publishDraft(next);
|
|
108
|
+
}
|
|
109
|
+
catch (err) {
|
|
110
|
+
setForm((prev) => ({
|
|
111
|
+
...prev,
|
|
112
|
+
savedId: docId,
|
|
113
|
+
saveError: err instanceof Error ? err.message : 'Could not load content',
|
|
114
|
+
}));
|
|
115
|
+
}
|
|
116
|
+
}, [contentType, docId, onStatusChange, publishDraft]);
|
|
117
|
+
// -- Word-count (derived from the body markdown) -------------------------
|
|
118
|
+
const wordCount = countWords(form.body);
|
|
119
|
+
const readTime = estimateReadTime(wordCount);
|
|
120
|
+
useEffect(() => {
|
|
121
|
+
void loadExistingContent();
|
|
122
|
+
}, [loadExistingContent]);
|
|
123
|
+
// -- Autosave logic -------------------------------------------------------
|
|
124
|
+
const queueFoundryProcessing = useCallback(async (id, draft) => {
|
|
125
|
+
const source = foundryDispatchSourceForDraft(contentType, draft);
|
|
126
|
+
if (!source)
|
|
127
|
+
return;
|
|
128
|
+
const queueKey = `${contentType}:${id}:${source}`;
|
|
129
|
+
if (queuedVideoSources.current.has(queueKey))
|
|
130
|
+
return;
|
|
131
|
+
setForm((prev) => ({
|
|
132
|
+
...prev,
|
|
133
|
+
videoPipelineStatus: 'queueing',
|
|
134
|
+
videoPipelineError: null,
|
|
135
|
+
}));
|
|
136
|
+
try {
|
|
137
|
+
const res = await fetch(`/admin/api/content/${id}?action=dispatch-to-foundry`, {
|
|
138
|
+
method: 'POST',
|
|
139
|
+
});
|
|
140
|
+
if (!res.ok) {
|
|
141
|
+
const err = (await res.json().catch(() => ({ error: res.statusText })));
|
|
142
|
+
throw new Error(err.error ?? 'Foundry dispatch failed');
|
|
143
|
+
}
|
|
144
|
+
queuedVideoSources.current.add(queueKey);
|
|
145
|
+
setForm((prev) => ({
|
|
146
|
+
...prev,
|
|
147
|
+
videoPipelineStatus: 'queued',
|
|
148
|
+
videoPipelineError: null,
|
|
149
|
+
}));
|
|
150
|
+
}
|
|
151
|
+
catch (err) {
|
|
152
|
+
setForm((prev) => ({
|
|
153
|
+
...prev,
|
|
154
|
+
videoPipelineStatus: 'idle',
|
|
155
|
+
videoPipelineError: err instanceof Error ? err.message : String(err),
|
|
156
|
+
}));
|
|
157
|
+
}
|
|
158
|
+
}, [contentType]);
|
|
159
|
+
const persist = useCallback(async (currentForm) => {
|
|
160
|
+
const id = currentForm.savedId;
|
|
161
|
+
const draft = currentForm;
|
|
162
|
+
if (id === null) {
|
|
163
|
+
if (!canCreateContentDraft(contentType, draft)) {
|
|
164
|
+
setForm((prev) => ({
|
|
165
|
+
...prev,
|
|
166
|
+
saveError: 'Add the required title and content before saving.',
|
|
167
|
+
}));
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
// First save — POST /content to create
|
|
171
|
+
try {
|
|
172
|
+
setForm((prev) => ({ ...prev, saving: true, saveError: null }));
|
|
173
|
+
const res = await fetch('/admin/api/content', {
|
|
174
|
+
method: 'POST',
|
|
175
|
+
headers: { 'content-type': 'application/json' },
|
|
176
|
+
body: JSON.stringify(buildContentCreatePayload(contentType, draft)),
|
|
177
|
+
});
|
|
178
|
+
if (!res.ok) {
|
|
179
|
+
const err = (await res.json().catch(() => ({ error: res.statusText })));
|
|
180
|
+
setForm((prev) => ({
|
|
181
|
+
...prev,
|
|
182
|
+
saving: false,
|
|
183
|
+
saveError: err.error ?? 'Save failed',
|
|
184
|
+
}));
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
const created = (await res.json());
|
|
188
|
+
setForm((prev) => ({
|
|
189
|
+
...prev,
|
|
190
|
+
saving: false,
|
|
191
|
+
savedId: created.id,
|
|
192
|
+
lastSavedAt: Date.now(),
|
|
193
|
+
saveError: null,
|
|
194
|
+
}));
|
|
195
|
+
onDocCreated?.(created.id);
|
|
196
|
+
void queueFoundryProcessing(created.id, draft);
|
|
197
|
+
}
|
|
198
|
+
catch (err) {
|
|
199
|
+
setForm((prev) => ({
|
|
200
|
+
...prev,
|
|
201
|
+
saving: false,
|
|
202
|
+
saveError: String(err),
|
|
203
|
+
}));
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
// Subsequent saves — PATCH /content/:id
|
|
208
|
+
try {
|
|
209
|
+
setForm((prev) => ({ ...prev, saving: true, saveError: null }));
|
|
210
|
+
const res = await fetch(`/admin/api/content/${id}`, {
|
|
211
|
+
method: 'PATCH',
|
|
212
|
+
headers: { 'content-type': 'application/json' },
|
|
213
|
+
body: JSON.stringify(buildContentUpdatePayload(contentType, draft)),
|
|
214
|
+
});
|
|
215
|
+
if (!res.ok) {
|
|
216
|
+
const err = (await res.json().catch(() => ({ error: res.statusText })));
|
|
217
|
+
setForm((prev) => ({
|
|
218
|
+
...prev,
|
|
219
|
+
saving: false,
|
|
220
|
+
saveError: err.error ?? 'Save failed',
|
|
221
|
+
}));
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
// Snapshot cadence check
|
|
225
|
+
const now = Date.now();
|
|
226
|
+
savesSinceSnapshot.current += 1;
|
|
227
|
+
const snap = shouldSnapshot({
|
|
228
|
+
savesSinceSnapshot: savesSinceSnapshot.current,
|
|
229
|
+
lastSnapshotAt: lastSnapshotAt.current,
|
|
230
|
+
now,
|
|
231
|
+
});
|
|
232
|
+
if (snap) {
|
|
233
|
+
savesSinceSnapshot.current = 0;
|
|
234
|
+
lastSnapshotAt.current = now;
|
|
235
|
+
// Fire-and-forget the snapshot action; errors are non-fatal
|
|
236
|
+
void fetch(`/admin/api/content/${id}?action=snapshot`, { method: 'POST' });
|
|
237
|
+
}
|
|
238
|
+
setForm((prev) => ({
|
|
239
|
+
...prev,
|
|
240
|
+
saving: false,
|
|
241
|
+
lastSavedAt: now,
|
|
242
|
+
saveError: null,
|
|
243
|
+
}));
|
|
244
|
+
void queueFoundryProcessing(id, draft);
|
|
245
|
+
}
|
|
246
|
+
catch (err) {
|
|
247
|
+
setForm((prev) => ({
|
|
248
|
+
...prev,
|
|
249
|
+
saving: false,
|
|
250
|
+
saveError: String(err),
|
|
251
|
+
}));
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}, [contentType, onDocCreated, queueFoundryProcessing]);
|
|
255
|
+
useEffect(() => {
|
|
256
|
+
if (saveRequest === lastHandledSaveRequest.current)
|
|
257
|
+
return;
|
|
258
|
+
lastHandledSaveRequest.current = saveRequest;
|
|
259
|
+
if (debounceTimer.current) {
|
|
260
|
+
clearTimeout(debounceTimer.current);
|
|
261
|
+
debounceTimer.current = null;
|
|
262
|
+
}
|
|
263
|
+
void persist(latestForm.current);
|
|
264
|
+
}, [persist, saveRequest]);
|
|
265
|
+
useEffect(() => {
|
|
266
|
+
onSaveStateChange?.({
|
|
267
|
+
saving: form.saving,
|
|
268
|
+
saveError: form.saveError,
|
|
269
|
+
lastSavedAt: form.lastSavedAt,
|
|
270
|
+
savedId: form.savedId,
|
|
271
|
+
});
|
|
272
|
+
}, [form.lastSavedAt, form.saveError, form.savedId, form.saving, onSaveStateChange]);
|
|
273
|
+
// Debounced save — fires after AUTOSAVE_DEBOUNCE_MS of inactivity
|
|
274
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: recovered live behavior; deps intentionally stable (adding them would re-create the debounced callback and change deployed behavior)
|
|
275
|
+
const scheduleAutosave = useCallback((nextForm) => {
|
|
276
|
+
if (debounceTimer.current)
|
|
277
|
+
clearTimeout(debounceTimer.current);
|
|
278
|
+
debounceTimer.current = setTimeout(() => {
|
|
279
|
+
void persist(nextForm);
|
|
280
|
+
}, AUTOSAVE_DEBOUNCE_MS);
|
|
281
|
+
}, [persist, publishDraft]);
|
|
282
|
+
// Flush autosave on unmount
|
|
283
|
+
useEffect(() => {
|
|
284
|
+
return () => {
|
|
285
|
+
if (debounceTimer.current) {
|
|
286
|
+
clearTimeout(debounceTimer.current);
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
}, []);
|
|
290
|
+
// -- Field change handlers -----------------------------------------------
|
|
291
|
+
function handleTitleChange(value) {
|
|
292
|
+
const next = { ...latestForm.current, title: value };
|
|
293
|
+
setForm(next);
|
|
294
|
+
publishDraft(next);
|
|
295
|
+
scheduleAutosave(next);
|
|
296
|
+
}
|
|
297
|
+
function handleDekChange(value) {
|
|
298
|
+
const next = { ...latestForm.current, dek: value };
|
|
299
|
+
setForm(next);
|
|
300
|
+
publishDraft(next);
|
|
301
|
+
scheduleAutosave(next);
|
|
302
|
+
}
|
|
303
|
+
function handleBodyChange(md) {
|
|
304
|
+
const next = { ...latestForm.current, body: md };
|
|
305
|
+
setForm(next);
|
|
306
|
+
publishDraft(next);
|
|
307
|
+
scheduleAutosave(next);
|
|
308
|
+
}
|
|
309
|
+
function handleVideoUrlChange(value) {
|
|
310
|
+
const next = {
|
|
311
|
+
...latestForm.current,
|
|
312
|
+
videoUrl: value,
|
|
313
|
+
videoSourceKind: null,
|
|
314
|
+
videoId: null,
|
|
315
|
+
videoPipelineStatus: 'idle',
|
|
316
|
+
videoPipelineError: null,
|
|
317
|
+
};
|
|
318
|
+
setForm(next);
|
|
319
|
+
publishDraft(next);
|
|
320
|
+
scheduleAutosave(next);
|
|
321
|
+
}
|
|
322
|
+
function handleAudioUrlChange(value) {
|
|
323
|
+
const next = { ...latestForm.current, audioUrl: value };
|
|
324
|
+
setForm(next);
|
|
325
|
+
publishDraft(next);
|
|
326
|
+
scheduleAutosave(next);
|
|
327
|
+
}
|
|
328
|
+
function handleHeroImageIdChange(value) {
|
|
329
|
+
const id = value.trim();
|
|
330
|
+
const next = {
|
|
331
|
+
...latestForm.current,
|
|
332
|
+
heroImageId: value,
|
|
333
|
+
heroImageUrl: id ? mediaUrlFromId(id) : null,
|
|
334
|
+
};
|
|
335
|
+
setForm(next);
|
|
336
|
+
publishDraft(next);
|
|
337
|
+
scheduleAutosave(next);
|
|
338
|
+
}
|
|
339
|
+
function handleThumbnailImageIdChange(value) {
|
|
340
|
+
const id = value.trim();
|
|
341
|
+
const next = {
|
|
342
|
+
...latestForm.current,
|
|
343
|
+
thumbnailImageId: value,
|
|
344
|
+
thumbnailImageUrl: id ? mediaUrlFromId(id) : null,
|
|
345
|
+
};
|
|
346
|
+
setForm(next);
|
|
347
|
+
publishDraft(next);
|
|
348
|
+
scheduleAutosave(next);
|
|
349
|
+
}
|
|
350
|
+
const handleEditorImageUpload = useCallback((file) => uploadEditorImage(file, latestForm.current.title || 'inline-image'), []);
|
|
351
|
+
const handleVideoFileUpload = useCallback(async (file) => {
|
|
352
|
+
const baseSlug = slugifyTitle(latestForm.current.title || file.name || 'video');
|
|
353
|
+
setForm((prev) => ({
|
|
354
|
+
...prev,
|
|
355
|
+
videoUploadStatus: 'uploading',
|
|
356
|
+
videoUploadError: null,
|
|
357
|
+
videoPipelineError: null,
|
|
358
|
+
}));
|
|
359
|
+
try {
|
|
360
|
+
const uploaded = await uploadMediaAsset({
|
|
361
|
+
kind: 'video',
|
|
362
|
+
file,
|
|
363
|
+
slug: baseSlug || undefined,
|
|
364
|
+
});
|
|
365
|
+
if (!uploaded.url)
|
|
366
|
+
throw new Error('Video upload did not return a source URL');
|
|
367
|
+
const next = {
|
|
368
|
+
...latestForm.current,
|
|
369
|
+
videoUrl: uploaded.url,
|
|
370
|
+
videoSourceKind: uploaded.sourceKind ?? 'http_url',
|
|
371
|
+
videoId: uploaded.videoId ?? baseSlug,
|
|
372
|
+
videoUploadStatus: 'staged',
|
|
373
|
+
videoUploadError: null,
|
|
374
|
+
videoPipelineStatus: 'idle',
|
|
375
|
+
videoPipelineError: null,
|
|
376
|
+
};
|
|
377
|
+
setForm(next);
|
|
378
|
+
publishDraft(next);
|
|
379
|
+
await persist(next);
|
|
380
|
+
}
|
|
381
|
+
catch (err) {
|
|
382
|
+
setForm((prev) => ({
|
|
383
|
+
...prev,
|
|
384
|
+
videoUploadStatus: 'idle',
|
|
385
|
+
videoUploadError: err instanceof Error ? err.message : String(err),
|
|
386
|
+
}));
|
|
387
|
+
}
|
|
388
|
+
}, [persist, publishDraft]);
|
|
389
|
+
const handleHeroImageUpload = useCallback(async (file) => {
|
|
390
|
+
const baseSlug = slugifyTitle(latestForm.current.title || file.name || 'hero-image');
|
|
391
|
+
setForm((prev) => ({
|
|
392
|
+
...prev,
|
|
393
|
+
heroUploadStatus: 'uploading',
|
|
394
|
+
heroUploadError: null,
|
|
395
|
+
}));
|
|
396
|
+
try {
|
|
397
|
+
const uploaded = await uploadMediaAsset({
|
|
398
|
+
kind: 'image',
|
|
399
|
+
file,
|
|
400
|
+
slug: baseSlug || undefined,
|
|
401
|
+
});
|
|
402
|
+
const next = {
|
|
403
|
+
...latestForm.current,
|
|
404
|
+
heroImageId: uploaded.id,
|
|
405
|
+
heroImageUrl: uploaded.url,
|
|
406
|
+
heroUploadStatus: 'staged',
|
|
407
|
+
heroUploadError: null,
|
|
408
|
+
};
|
|
409
|
+
setForm(next);
|
|
410
|
+
publishDraft(next);
|
|
411
|
+
await persist(next);
|
|
412
|
+
}
|
|
413
|
+
catch (err) {
|
|
414
|
+
setForm((prev) => ({
|
|
415
|
+
...prev,
|
|
416
|
+
heroUploadStatus: 'idle',
|
|
417
|
+
heroUploadError: err instanceof Error ? err.message : String(err),
|
|
418
|
+
}));
|
|
419
|
+
}
|
|
420
|
+
}, [persist, publishDraft]);
|
|
421
|
+
const handleThumbnailImageUpload = useCallback(async (file) => {
|
|
422
|
+
const baseSlug = slugifyTitle(latestForm.current.title || file.name || 'video-poster');
|
|
423
|
+
setForm((prev) => ({
|
|
424
|
+
...prev,
|
|
425
|
+
thumbnailUploadStatus: 'uploading',
|
|
426
|
+
thumbnailUploadError: null,
|
|
427
|
+
}));
|
|
428
|
+
try {
|
|
429
|
+
const uploaded = await uploadMediaAsset({
|
|
430
|
+
kind: 'image',
|
|
431
|
+
file,
|
|
432
|
+
slug: baseSlug || undefined,
|
|
433
|
+
});
|
|
434
|
+
const next = {
|
|
435
|
+
...latestForm.current,
|
|
436
|
+
thumbnailImageId: uploaded.id,
|
|
437
|
+
thumbnailImageUrl: uploaded.url,
|
|
438
|
+
thumbnailUploadStatus: 'staged',
|
|
439
|
+
thumbnailUploadError: null,
|
|
440
|
+
};
|
|
441
|
+
setForm(next);
|
|
442
|
+
publishDraft(next);
|
|
443
|
+
await persist(next);
|
|
444
|
+
}
|
|
445
|
+
catch (err) {
|
|
446
|
+
setForm((prev) => ({
|
|
447
|
+
...prev,
|
|
448
|
+
thumbnailUploadStatus: 'idle',
|
|
449
|
+
thumbnailUploadError: err instanceof Error ? err.message : String(err),
|
|
450
|
+
}));
|
|
451
|
+
}
|
|
452
|
+
}, [persist, publishDraft]);
|
|
453
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: recovered live behavior; deps intentionally stable (adding them would re-create the callback and change deployed behavior)
|
|
454
|
+
const handleAudioFileUpload = useCallback(async (file) => {
|
|
455
|
+
const baseSlug = slugifyTitle(latestForm.current.title || file.name || 'podcast');
|
|
456
|
+
setForm((prev) => ({
|
|
457
|
+
...prev,
|
|
458
|
+
audioUploadStatus: 'uploading',
|
|
459
|
+
audioUploadError: null,
|
|
460
|
+
}));
|
|
461
|
+
try {
|
|
462
|
+
const uploaded = await uploadMediaAsset({
|
|
463
|
+
kind: 'podcast',
|
|
464
|
+
file,
|
|
465
|
+
slug: baseSlug || undefined,
|
|
466
|
+
});
|
|
467
|
+
const next = {
|
|
468
|
+
...latestForm.current,
|
|
469
|
+
audioUrl: uploaded.id,
|
|
470
|
+
audioUploadStatus: 'staged',
|
|
471
|
+
audioUploadError: null,
|
|
472
|
+
};
|
|
473
|
+
setForm(next);
|
|
474
|
+
publishDraft(next);
|
|
475
|
+
await persist(next);
|
|
476
|
+
}
|
|
477
|
+
catch (err) {
|
|
478
|
+
setForm((prev) => ({
|
|
479
|
+
...prev,
|
|
480
|
+
audioUploadStatus: 'idle',
|
|
481
|
+
audioUploadError: err instanceof Error ? err.message : String(err),
|
|
482
|
+
}));
|
|
483
|
+
}
|
|
484
|
+
}, [persist]);
|
|
485
|
+
// -- Autosaved indicator --------------------------------------------------
|
|
486
|
+
const autosaveLabel = form.saving
|
|
487
|
+
? 'Saving…'
|
|
488
|
+
: form.saveError
|
|
489
|
+
? `Error: ${form.saveError}`
|
|
490
|
+
: form.lastSavedAt
|
|
491
|
+
? `Saved ${timeSince(form.lastSavedAt)}`
|
|
492
|
+
: 'Unsaved';
|
|
493
|
+
// -------------------------------------------------------------------------
|
|
494
|
+
// Render
|
|
495
|
+
// -------------------------------------------------------------------------
|
|
496
|
+
function handleAiToggle() {
|
|
497
|
+
setForm((prev) => ({ ...prev, aiOpen: !prev.aiOpen }));
|
|
498
|
+
}
|
|
499
|
+
return (_jsxs("div", { style: formWrap, children: [_jsxs("div", { style: saveIndicator, children: [_jsx("span", { className: "mono", style: {
|
|
500
|
+
color: form.saveError ? 'var(--red)' : 'var(--ink-faint)',
|
|
501
|
+
fontSize: 11.5,
|
|
502
|
+
}, children: autosaveLabel }), _jsxs("button", { type: "button", className: "btn sm", onClick: handleAiToggle, disabled: form.savedId === null, title: form.savedId === null
|
|
503
|
+
? 'Save the document first to enable AI assist'
|
|
504
|
+
: form.aiOpen
|
|
505
|
+
? 'Close AI assist'
|
|
506
|
+
: 'Open AI assist', style: {
|
|
507
|
+
borderColor: form.aiOpen ? 'var(--accent)' : 'var(--field-border)',
|
|
508
|
+
color: form.aiOpen ? 'var(--accent)' : 'var(--ink)',
|
|
509
|
+
opacity: form.savedId === null ? 0.45 : 1,
|
|
510
|
+
}, "aria-pressed": form.aiOpen, "aria-label": "AI assist", children: [_jsx(Icon, { name: "sparkle", size: 15 }), "AI assist"] })] }), form.aiOpen && form.savedId !== null && _jsx(AiAssistPanel, { docId: form.savedId }), _jsx("div", { style: fieldGroup, children: _jsx("input", { type: "text", placeholder: "Title", value: form.title, onChange: (e) => handleTitleChange(e.currentTarget.value), style: titleInput, "aria-label": "Content title" }) }), _jsx("div", { style: fieldGroup, children: _jsx("textarea", { placeholder: "Add a short summary or subheadline (optional)\u2026", value: form.dek, onChange: (e) => handleDekChange(e.currentTarget.value), rows: 2, style: dekInput, "aria-label": "Short summary or subheadline" }) }), _jsx("hr", { className: "masthead-rule", style: { margin: '6px 0 20px' } }), _jsx("div", { style: fieldGroup, children: contentType === 'video' ? (_jsxs("div", { style: mediaBlockStack, children: [_jsx(VideoBlock, { videoUrl: form.videoUrl, onVideoUrlChange: handleVideoUrlChange, onVideoFileUpload: handleVideoFileUpload, uploadStatus: form.videoUploadStatus, uploadError: form.videoUploadError, pipelineStatus: form.videoPipelineStatus, pipelineError: form.videoPipelineError }), _jsx(ImageAssetBlock, { title: "Video Poster Image", description: "Shown on the video page, video index, social previews, and locked-player preview.", uploadLabel: "Upload Poster Image", idLabel: "Poster Image ID", idHelp: "Use this only when the poster image already exists in R2.", emptyText: "No poster image attached", successText: "Poster image uploaded.", imageId: form.thumbnailImageId, previewUrl: form.thumbnailImageUrl, uploadStatus: form.thumbnailUploadStatus, uploadError: form.thumbnailUploadError, onImageIdChange: handleThumbnailImageIdChange, onFileUpload: handleThumbnailImageUpload })] })) : contentType === 'podcast' ? (_jsxs("div", { style: mediaBlockStack, children: [_jsx(AudioBlock, { audioUrl: form.audioUrl, onAudioUrlChange: handleAudioUrlChange, onAudioFileUpload: handleAudioFileUpload, uploadStatus: form.audioUploadStatus, uploadError: form.audioUploadError, pipelineStatus: form.videoPipelineStatus, pipelineError: form.videoPipelineError }), _jsx(ImageAssetBlock, { title: "Podcast Hero Image", description: "Upload the episode artwork or hero image here. This fills the Hero Image ID automatically.", uploadLabel: "Upload Podcast Image", idLabel: "Hero Image ID", idHelp: "Use this only when the podcast image already exists in R2.", emptyText: "No podcast image attached", successText: "Podcast image uploaded.", imageId: form.heroImageId, previewUrl: form.heroImageUrl, uploadStatus: form.heroUploadStatus, uploadError: form.heroUploadError, onImageIdChange: handleHeroImageIdChange, onFileUpload: handleHeroImageUpload })] })) : (
|
|
511
|
+
/* article | newsletter */
|
|
512
|
+
_jsxs(_Fragment, { children: [contentType === 'article' && (_jsx("div", { style: { marginBottom: 14 }, children: _jsx(ImageAssetBlock, { title: "Article Hero Image", description: "Upload the downloaded hero image here. This fills the Hero Image ID automatically.", uploadLabel: "Upload Hero Image", idLabel: "Hero Image ID", idHelp: "Use this only when the hero image already exists in R2.", emptyText: "No hero image attached", successText: "Hero image uploaded.", imageId: form.heroImageId, previewUrl: form.heroImageUrl, uploadStatus: form.heroUploadStatus, uploadError: form.heroUploadError, onImageIdChange: handleHeroImageIdChange, onFileUpload: handleHeroImageUpload }) })), _jsx(Rte, { value: form.body, onChange: handleBodyChange, onImageUpload: handleEditorImageUpload })] })) }), (contentType === 'article' || contentType === 'newsletter') && (_jsxs("div", { style: footer, children: [_jsx(Icon, { name: "edit", size: 12, style: { color: 'var(--ink-faint)' } }), _jsxs("span", { children: [wordCount.toLocaleString(), " ", wordCount === 1 ? 'word' : 'words'] }), _jsx("span", { style: { color: 'var(--ink-faint)' }, children: "\u00B7" }), _jsxs("span", { children: [readTime, " min read"] })] }))] }));
|
|
513
|
+
}
|
|
514
|
+
// ---------------------------------------------------------------------------
|
|
515
|
+
// Sub-components — media blocks
|
|
516
|
+
// ---------------------------------------------------------------------------
|
|
517
|
+
function ImageAssetBlock({ title, description, uploadLabel, idLabel, idHelp, emptyText, successText, imageId, previewUrl, uploadStatus, uploadError, onImageIdChange, onFileUpload, }) {
|
|
518
|
+
const inputId = `${title.toLowerCase().replace(/[^a-z0-9]+/g, '-')}-id`;
|
|
519
|
+
const statusText = uploadStatus === 'uploading'
|
|
520
|
+
? 'Uploading image…'
|
|
521
|
+
: uploadStatus === 'staged'
|
|
522
|
+
? successText
|
|
523
|
+
: null;
|
|
524
|
+
return (_jsxs("div", { style: mediaBlock, children: [_jsxs("div", { style: mediaBlockHeader, children: [_jsx(Icon, { name: "image", size: 14, style: { color: 'var(--ink-muted)' } }), _jsx("span", { style: { fontSize: 12, fontWeight: 500, color: 'var(--ink-soft)' }, children: title })] }), _jsx("p", { style: assetHelp, children: description }), _jsx("div", { style: assetPreview, children: previewUrl ? (_jsx("img", { src: previewUrl, alt: `${title} preview`, style: assetPreviewImage })) : imageId ? (_jsx("span", { style: { fontSize: 11, color: 'var(--ink-muted)', wordBreak: 'break-all' }, children: imageId })) : (_jsx("span", { style: { fontSize: 12, color: 'var(--ink-faint)', fontStyle: 'italic' }, children: emptyText })) }), _jsx("div", { style: videoActions, children: _jsxs("label", { className: "btn sm", style: uploadButton, children: [_jsx(Icon, { name: "upload", size: 14 }), uploadStatus === 'uploading' ? 'Uploading…' : uploadLabel, _jsx("input", { type: "file", accept: "image/*,.jpg,.jpeg,.png,.webp", disabled: uploadStatus === 'uploading', onChange: (event) => {
|
|
525
|
+
const file = event.currentTarget.files?.[0];
|
|
526
|
+
event.currentTarget.value = '';
|
|
527
|
+
if (file)
|
|
528
|
+
void onFileUpload(file);
|
|
529
|
+
}, style: hiddenFileInput, "aria-label": uploadLabel })] }) }), _jsx("label", { htmlFor: inputId, style: assetLabel, children: idLabel }), _jsx("input", { id: inputId, type: "text", placeholder: "images/articles/example.jpg", value: imageId, onChange: (e) => onImageIdChange(e.currentTarget.value), style: urlInput, "aria-label": idLabel }), _jsx("div", { style: assetHelp, children: idHelp }), statusText && _jsx("div", { style: videoStatusText, children: statusText }), uploadError && _jsx("div", { style: videoErrorText, children: uploadError })] }));
|
|
530
|
+
}
|
|
531
|
+
function VideoBlock({ videoUrl, onVideoUrlChange, onVideoFileUpload, uploadStatus, uploadError, pipelineStatus, pipelineError, }) {
|
|
532
|
+
const statusText = pipelineStatus === 'queued'
|
|
533
|
+
? 'Queued. Most videos finish in 20-45 minutes; long files can take up to 90.'
|
|
534
|
+
: pipelineStatus === 'queueing'
|
|
535
|
+
? 'Queueing processing…'
|
|
536
|
+
: uploadStatus === 'uploading'
|
|
537
|
+
? 'Uploading source…'
|
|
538
|
+
: uploadStatus === 'staged'
|
|
539
|
+
? 'Source uploaded. Saving queues processing.'
|
|
540
|
+
: null;
|
|
541
|
+
return (_jsxs("div", { style: mediaBlock, children: [_jsxs("div", { style: mediaBlockHeader, children: [_jsx(Icon, { name: "video", size: 14, style: { color: 'var(--ink-muted)' } }), _jsx("span", { style: { fontSize: 12, fontWeight: 500, color: 'var(--ink-soft)' }, children: "Video" })] }), _jsx("div", { style: {
|
|
542
|
+
aspectRatio: '16/9',
|
|
543
|
+
background: 'var(--hover)',
|
|
544
|
+
borderRadius: 6,
|
|
545
|
+
display: 'flex',
|
|
546
|
+
alignItems: 'center',
|
|
547
|
+
justifyContent: 'center',
|
|
548
|
+
marginBottom: 12,
|
|
549
|
+
}, children: videoUrl ? (_jsx("span", { style: { fontSize: 11, color: 'var(--ink-muted)', wordBreak: 'break-all' }, children: videoUrl })) : (_jsx("span", { style: { fontSize: 12, color: 'var(--ink-faint)', fontStyle: 'italic' }, children: "No video attached" })) }), _jsx("input", { type: "url", placeholder: "Video source URL or R2 key\u2026", value: videoUrl, onChange: (e) => onVideoUrlChange(e.currentTarget.value), style: urlInput, "aria-label": "Video source URL" }), _jsx("div", { style: videoActions, children: _jsxs("label", { className: "btn sm", style: uploadButton, children: [_jsx(Icon, { name: "upload", size: 14 }), uploadStatus === 'uploading' ? 'Uploading…' : 'Upload source', _jsx("input", { type: "file", accept: "video/*,.mp4,.mov,.m4v,.webm", disabled: uploadStatus === 'uploading', onChange: (event) => {
|
|
550
|
+
const file = event.currentTarget.files?.[0];
|
|
551
|
+
event.currentTarget.value = '';
|
|
552
|
+
if (file)
|
|
553
|
+
void onVideoFileUpload(file);
|
|
554
|
+
}, style: hiddenFileInput, "aria-label": "Upload video source" })] }) }), statusText && _jsx("div", { style: videoStatusText, children: statusText }), (uploadError || pipelineError) && (_jsx("div", { style: videoErrorText, children: uploadError || pipelineError })), _jsx("div", { style: { marginTop: 6, fontSize: 11, color: 'var(--ink-faint)' }, children: "Upload a source file or paste a public source URL; saving queues the Foundry pipeline." })] }));
|
|
555
|
+
}
|
|
556
|
+
function AudioBlock({ audioUrl, onAudioUrlChange, onAudioFileUpload, uploadStatus, uploadError, pipelineStatus, pipelineError, }) {
|
|
557
|
+
const statusText = pipelineStatus === 'queued'
|
|
558
|
+
? 'Queued for transcription. Most episodes finish in 10-30 minutes; long files can take up to 60.'
|
|
559
|
+
: pipelineStatus === 'queueing'
|
|
560
|
+
? 'Queueing transcription...'
|
|
561
|
+
: uploadStatus === 'uploading'
|
|
562
|
+
? PODCAST_UPLOAD_HELP
|
|
563
|
+
: uploadStatus === 'staged'
|
|
564
|
+
? 'Audio uploaded. Save or publish to start transcription and episode prep.'
|
|
565
|
+
: null;
|
|
566
|
+
return (_jsxs("div", { style: mediaBlock, children: [_jsxs("div", { style: mediaBlockHeader, children: [_jsx(Icon, { name: "mic", size: 14, style: { color: 'var(--ink-muted)' } }), _jsx("span", { style: { fontSize: 12, fontWeight: 500, color: 'var(--ink-soft)' }, children: "Podcast Audio File" })] }), _jsx("p", { style: assetHelp, children: "Upload the downloaded MP3, WAV, or M4A file. The Audio R2 Key fills automatically after upload." }), _jsx("p", { style: assetHelp, children: PODCAST_UPLOAD_HELP }), _jsxs("p", { style: assetHelp, children: [PODCAST_PIPELINE_HELP, " ", PODCAST_PIPELINE_ESTIMATE] }), _jsx("div", { style: {
|
|
567
|
+
height: 56,
|
|
568
|
+
background: 'var(--hover)',
|
|
569
|
+
borderRadius: 6,
|
|
570
|
+
display: 'flex',
|
|
571
|
+
alignItems: 'center',
|
|
572
|
+
justifyContent: 'center',
|
|
573
|
+
marginBottom: 12,
|
|
574
|
+
}, children: audioUrl ? (_jsx("span", { style: { fontSize: 11, color: 'var(--ink-muted)', wordBreak: 'break-all' }, children: audioUrl })) : (_jsx("span", { style: { fontSize: 12, color: 'var(--ink-faint)', fontStyle: 'italic' }, children: "No audio attached" })) }), _jsx("div", { style: videoActions, children: _jsxs("label", { className: "btn sm", style: uploadButton, children: [_jsx(Icon, { name: "upload", size: 14 }), uploadStatus === 'uploading' ? 'Uploading…' : 'Upload Podcast Audio File', _jsx("input", { type: "file", accept: "audio/*,.mp3,.m4a,.m4b,.aac,.wav,.ogg,.oga,.opus,.flac", disabled: uploadStatus === 'uploading', onChange: (event) => {
|
|
575
|
+
const file = event.currentTarget.files?.[0];
|
|
576
|
+
event.currentTarget.value = '';
|
|
577
|
+
if (file)
|
|
578
|
+
void onAudioFileUpload(file);
|
|
579
|
+
}, style: hiddenFileInput, "aria-label": "Upload podcast audio file" })] }) }), _jsx("label", { htmlFor: "podcast-audio-r2-key", style: assetLabel, children: "Audio R2 Key (filled after upload)" }), _jsx("input", { id: "podcast-audio-r2-key", type: "text", placeholder: "audio/example-episode.mp3", value: audioUrl, onChange: (e) => onAudioUrlChange(e.currentTarget.value), style: urlInput, "aria-label": "Audio R2 Key" }), _jsx("div", { style: assetHelp, children: "Only paste a key manually if the audio already exists in R2." }), statusText && _jsx("div", { style: videoStatusText, children: statusText }), (uploadError || pipelineError) && (_jsx("div", { style: videoErrorText, children: uploadError || pipelineError }))] }));
|
|
580
|
+
}
|
|
581
|
+
const PODCAST_UPLOAD_HELP = 'Large audio files can take a few minutes to upload; keep this tab open until the Audio R2 Key appears.';
|
|
582
|
+
const PODCAST_PIPELINE_HELP = 'After upload, save or publish sends the episode through the pipeline for transcription and episode prep.';
|
|
583
|
+
const PODCAST_PIPELINE_ESTIMATE = 'Most episodes finish in 10-30 minutes; long files can take up to 60.';
|
|
584
|
+
function contentResponseToFormState(data, contentType, docId) {
|
|
585
|
+
const item = data.item ?? {};
|
|
586
|
+
const content = data.content ?? {};
|
|
587
|
+
const heroImageId = toStringValue(item.hero_image_id);
|
|
588
|
+
const thumbnailImageId = toStringValue(content.thumbnail_image_id);
|
|
589
|
+
const heroImageUrl = toStringValue(item.hero_image_url);
|
|
590
|
+
const thumbnailImageUrl = toStringValue(content.thumbnail_image_url);
|
|
591
|
+
const next = createEmptyFormState(docId);
|
|
592
|
+
next.status = toContentStatus(item.status);
|
|
593
|
+
next.title = toStringValue(item.title);
|
|
594
|
+
next.dek = toStringValue(item.excerpt) || toStringValue(content.subtitle);
|
|
595
|
+
next.slug = toStringValue(item.slug);
|
|
596
|
+
next.byline = toNullableString(item.byline);
|
|
597
|
+
next.authorId = toNullableString(item.author_id);
|
|
598
|
+
next.authorName = toNullableString(item.author_name);
|
|
599
|
+
next.authorSlug = toNullableString(item.author_slug);
|
|
600
|
+
next.publishedAt = unixSecondsToIso(item.published_at);
|
|
601
|
+
next.premium = item.visibility === 'premium';
|
|
602
|
+
next.channel = toNullableString(item.channel);
|
|
603
|
+
next.heroImageId = heroImageId;
|
|
604
|
+
next.heroImageUrl = heroImageUrl || (heroImageId ? mediaUrlFromId(heroImageId) : null);
|
|
605
|
+
if (contentType === 'article' || contentType === 'newsletter') {
|
|
606
|
+
next.body = toStringValue(content.body_markdown) || toStringValue(content.body_html);
|
|
607
|
+
}
|
|
608
|
+
if (contentType === 'video') {
|
|
609
|
+
next.body = toStringValue(content.script);
|
|
610
|
+
next.videoUrl = toStringValue(content.processing_source_url);
|
|
611
|
+
next.videoSourceKind = toNullableString(content.processing_source_kind);
|
|
612
|
+
next.videoId = toNullableString(content.video_id);
|
|
613
|
+
next.thumbnailImageId = thumbnailImageId;
|
|
614
|
+
next.thumbnailImageUrl =
|
|
615
|
+
thumbnailImageUrl || (thumbnailImageId ? mediaUrlFromId(thumbnailImageId) : null);
|
|
616
|
+
}
|
|
617
|
+
if (contentType === 'podcast') {
|
|
618
|
+
next.body = toStringValue(content.transcript);
|
|
619
|
+
next.audioUrl = toStringValue(content.audio_r2_key);
|
|
620
|
+
}
|
|
621
|
+
return next;
|
|
622
|
+
}
|
|
623
|
+
function formToPreviewDraft(form, contentType) {
|
|
624
|
+
return {
|
|
625
|
+
id: form.savedId ?? 'draft',
|
|
626
|
+
type: contentType,
|
|
627
|
+
status: form.status,
|
|
628
|
+
title: form.title,
|
|
629
|
+
slug: form.slug,
|
|
630
|
+
excerpt: form.dek || null,
|
|
631
|
+
byline: form.byline,
|
|
632
|
+
authorId: form.authorId,
|
|
633
|
+
authorName: form.authorName,
|
|
634
|
+
authorSlug: form.authorSlug,
|
|
635
|
+
publishedAt: form.publishedAt,
|
|
636
|
+
body: form.body || null,
|
|
637
|
+
premium: form.premium,
|
|
638
|
+
heroImageUrl: form.heroImageUrl,
|
|
639
|
+
channel: form.channel,
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
function mediaUrlFromId(id) {
|
|
643
|
+
return `/admin/api/media/${encodeURIComponent(id)}`;
|
|
644
|
+
}
|
|
645
|
+
function toStringValue(value) {
|
|
646
|
+
return typeof value === 'string' ? value : '';
|
|
647
|
+
}
|
|
648
|
+
function toNullableString(value) {
|
|
649
|
+
const normalized = toStringValue(value).trim();
|
|
650
|
+
return normalized ? normalized : null;
|
|
651
|
+
}
|
|
652
|
+
function toContentStatus(value) {
|
|
653
|
+
const allowed = ['draft', 'review', 'scheduled', 'published', 'archived'];
|
|
654
|
+
return allowed.includes(value) ? value : 'draft';
|
|
655
|
+
}
|
|
656
|
+
function unixSecondsToIso(value) {
|
|
657
|
+
if (typeof value !== 'number' || !Number.isFinite(value))
|
|
658
|
+
return null;
|
|
659
|
+
return new Date(value * 1000).toISOString();
|
|
660
|
+
}
|
|
661
|
+
// ---------------------------------------------------------------------------
|
|
662
|
+
// Relative-time helper
|
|
663
|
+
// ---------------------------------------------------------------------------
|
|
664
|
+
function timeSince(ts) {
|
|
665
|
+
const diff = Date.now() - ts;
|
|
666
|
+
if (diff < 10_000)
|
|
667
|
+
return 'just now';
|
|
668
|
+
if (diff < 60_000)
|
|
669
|
+
return `${Math.floor(diff / 1000)}s ago`;
|
|
670
|
+
if (diff < 3_600_000)
|
|
671
|
+
return `${Math.floor(diff / 60_000)}m ago`;
|
|
672
|
+
return `${Math.floor(diff / 3_600_000)}h ago`;
|
|
673
|
+
}
|
|
674
|
+
// ---------------------------------------------------------------------------
|
|
675
|
+
// Styles
|
|
676
|
+
// ---------------------------------------------------------------------------
|
|
677
|
+
const formWrap = {
|
|
678
|
+
display: 'flex',
|
|
679
|
+
flexDirection: 'column',
|
|
680
|
+
gap: 0,
|
|
681
|
+
padding: '16px 24px',
|
|
682
|
+
flex: 1,
|
|
683
|
+
overflowY: 'auto',
|
|
684
|
+
};
|
|
685
|
+
const saveIndicator = {
|
|
686
|
+
display: 'flex',
|
|
687
|
+
justifyContent: 'flex-end',
|
|
688
|
+
alignItems: 'center',
|
|
689
|
+
gap: 8,
|
|
690
|
+
marginBottom: 4,
|
|
691
|
+
minHeight: 16,
|
|
692
|
+
};
|
|
693
|
+
const fieldGroup = {
|
|
694
|
+
marginBottom: 14,
|
|
695
|
+
};
|
|
696
|
+
const titleInput = {
|
|
697
|
+
width: '100%',
|
|
698
|
+
border: 0,
|
|
699
|
+
background: 'transparent',
|
|
700
|
+
fontFamily: 'var(--serif)',
|
|
701
|
+
fontWeight: 600,
|
|
702
|
+
fontSize: 36,
|
|
703
|
+
letterSpacing: '-0.025em',
|
|
704
|
+
lineHeight: 1.08,
|
|
705
|
+
color: 'var(--ink)',
|
|
706
|
+
padding: 0,
|
|
707
|
+
outline: 'none',
|
|
708
|
+
};
|
|
709
|
+
const dekInput = {
|
|
710
|
+
width: '100%',
|
|
711
|
+
border: 0,
|
|
712
|
+
background: 'transparent',
|
|
713
|
+
fontFamily: 'var(--serif)',
|
|
714
|
+
fontSize: 19,
|
|
715
|
+
lineHeight: 1.5,
|
|
716
|
+
color: 'var(--ink-soft)',
|
|
717
|
+
padding: 0,
|
|
718
|
+
outline: 'none',
|
|
719
|
+
resize: 'none',
|
|
720
|
+
};
|
|
721
|
+
const footer = {
|
|
722
|
+
display: 'flex',
|
|
723
|
+
alignItems: 'center',
|
|
724
|
+
gap: 16,
|
|
725
|
+
paddingTop: 12,
|
|
726
|
+
fontFamily: 'var(--mono)',
|
|
727
|
+
fontSize: 11.5,
|
|
728
|
+
color: 'var(--ink-muted)',
|
|
729
|
+
borderTop: '1px solid var(--border-soft)',
|
|
730
|
+
};
|
|
731
|
+
const mediaBlockStack = {
|
|
732
|
+
display: 'flex',
|
|
733
|
+
flexDirection: 'column',
|
|
734
|
+
gap: 14,
|
|
735
|
+
};
|
|
736
|
+
const mediaBlock = {
|
|
737
|
+
border: '1px solid var(--field-border)',
|
|
738
|
+
borderRadius: 8,
|
|
739
|
+
padding: 14,
|
|
740
|
+
background: 'var(--field)',
|
|
741
|
+
};
|
|
742
|
+
const mediaBlockHeader = {
|
|
743
|
+
display: 'flex',
|
|
744
|
+
alignItems: 'center',
|
|
745
|
+
gap: 6,
|
|
746
|
+
marginBottom: 10,
|
|
747
|
+
};
|
|
748
|
+
const assetPreview = {
|
|
749
|
+
height: 126,
|
|
750
|
+
background: 'var(--hover)',
|
|
751
|
+
borderRadius: 6,
|
|
752
|
+
display: 'flex',
|
|
753
|
+
alignItems: 'center',
|
|
754
|
+
justifyContent: 'center',
|
|
755
|
+
marginBottom: 12,
|
|
756
|
+
overflow: 'hidden',
|
|
757
|
+
};
|
|
758
|
+
const assetPreviewImage = {
|
|
759
|
+
width: '100%',
|
|
760
|
+
height: '100%',
|
|
761
|
+
objectFit: 'cover',
|
|
762
|
+
display: 'block',
|
|
763
|
+
};
|
|
764
|
+
const assetLabel = {
|
|
765
|
+
display: 'block',
|
|
766
|
+
marginTop: 12,
|
|
767
|
+
marginBottom: 6,
|
|
768
|
+
fontSize: 11,
|
|
769
|
+
fontWeight: 600,
|
|
770
|
+
color: 'var(--ink-soft)',
|
|
771
|
+
};
|
|
772
|
+
const assetHelp = {
|
|
773
|
+
margin: '6px 0 10px',
|
|
774
|
+
fontSize: 11,
|
|
775
|
+
lineHeight: 1.45,
|
|
776
|
+
color: 'var(--ink-faint)',
|
|
777
|
+
};
|
|
778
|
+
const urlInput = {
|
|
779
|
+
width: '100%',
|
|
780
|
+
height: 32,
|
|
781
|
+
padding: '0 10px',
|
|
782
|
+
border: '1px solid var(--field-border)',
|
|
783
|
+
borderRadius: 6,
|
|
784
|
+
background: 'var(--bg)',
|
|
785
|
+
color: 'var(--ink)',
|
|
786
|
+
fontSize: 12,
|
|
787
|
+
outline: 'none',
|
|
788
|
+
};
|
|
789
|
+
const videoActions = {
|
|
790
|
+
display: 'flex',
|
|
791
|
+
alignItems: 'center',
|
|
792
|
+
gap: 8,
|
|
793
|
+
marginTop: 10,
|
|
794
|
+
};
|
|
795
|
+
const uploadButton = {
|
|
796
|
+
position: 'relative',
|
|
797
|
+
overflow: 'hidden',
|
|
798
|
+
cursor: 'pointer',
|
|
799
|
+
};
|
|
800
|
+
const hiddenFileInput = {
|
|
801
|
+
position: 'absolute',
|
|
802
|
+
inset: 0,
|
|
803
|
+
opacity: 0,
|
|
804
|
+
cursor: 'pointer',
|
|
805
|
+
};
|
|
806
|
+
const videoStatusText = {
|
|
807
|
+
marginTop: 8,
|
|
808
|
+
fontSize: 11,
|
|
809
|
+
lineHeight: 1.4,
|
|
810
|
+
color: 'var(--ink-muted)',
|
|
811
|
+
};
|
|
812
|
+
const videoErrorText = {
|
|
813
|
+
marginTop: 8,
|
|
814
|
+
fontSize: 11,
|
|
815
|
+
lineHeight: 1.4,
|
|
816
|
+
color: 'var(--red)',
|
|
817
|
+
};
|
|
818
|
+
// Re-export for callers that need the markdown body value from the form
|
|
819
|
+
// (EditorScreen uses this to feed the live-preview pane).
|
|
820
|
+
export { docToMarkdown };
|
|
821
|
+
//# sourceMappingURL=ContentForm.js.map
|