@forumone/throughline 0.0.0 → 1.0.0-next.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/CHANGELOG.md +584 -0
- package/LICENSE +21 -0
- package/README.md +352 -0
- package/bin/payload-cli.mjs +443 -0
- package/bin/throughline-payload.mjs +6 -0
- package/dist/access/coreCollections.d.ts +18 -0
- package/dist/access/coreCollections.d.ts.map +1 -0
- package/dist/access/coreCollections.js +56 -0
- package/dist/access/coreCollections.js.map +1 -0
- package/dist/approvals/collection.d.ts +21 -0
- package/dist/approvals/collection.d.ts.map +1 -0
- package/dist/approvals/collection.js +99 -0
- package/dist/approvals/collection.js.map +1 -0
- package/dist/approvals/endpoints/action.d.ts +31 -0
- package/dist/approvals/endpoints/action.d.ts.map +1 -0
- package/dist/approvals/endpoints/action.js +205 -0
- package/dist/approvals/endpoints/action.js.map +1 -0
- package/dist/approvals/index.d.ts +19 -0
- package/dist/approvals/index.d.ts.map +1 -0
- package/dist/approvals/index.js +13 -0
- package/dist/approvals/index.js.map +1 -0
- package/dist/approvals/jobs/expire-stale-approvals.d.ts +14 -0
- package/dist/approvals/jobs/expire-stale-approvals.d.ts.map +1 -0
- package/dist/approvals/jobs/expire-stale-approvals.js +101 -0
- package/dist/approvals/jobs/expire-stale-approvals.js.map +1 -0
- package/dist/approvals/options.d.ts +76 -0
- package/dist/approvals/options.d.ts.map +1 -0
- package/dist/approvals/options.js +47 -0
- package/dist/approvals/options.js.map +1 -0
- package/dist/approvals/plugin.d.ts +4 -0
- package/dist/approvals/plugin.d.ts.map +1 -0
- package/dist/approvals/plugin.js +92 -0
- package/dist/approvals/plugin.js.map +1 -0
- package/dist/approvals/resolver.d.ts +18 -0
- package/dist/approvals/resolver.d.ts.map +1 -0
- package/dist/approvals/resolver.js +57 -0
- package/dist/approvals/resolver.js.map +1 -0
- package/dist/approvals/symbol.d.ts +12 -0
- package/dist/approvals/symbol.d.ts.map +1 -0
- package/dist/approvals/symbol.js +12 -0
- package/dist/approvals/symbol.js.map +1 -0
- package/dist/approvals/tokens.d.ts +48 -0
- package/dist/approvals/tokens.d.ts.map +1 -0
- package/dist/approvals/tokens.js +123 -0
- package/dist/approvals/tokens.js.map +1 -0
- package/dist/approvals/tools/descriptors.d.ts +26 -0
- package/dist/approvals/tools/descriptors.d.ts.map +1 -0
- package/dist/approvals/tools/descriptors.js +35 -0
- package/dist/approvals/tools/descriptors.js.map +1 -0
- package/dist/approvals/tools/get-approval-status.d.ts +11 -0
- package/dist/approvals/tools/get-approval-status.d.ts.map +1 -0
- package/dist/approvals/tools/get-approval-status.js +94 -0
- package/dist/approvals/tools/get-approval-status.js.map +1 -0
- package/dist/approvals/tools/index.d.ts +7 -0
- package/dist/approvals/tools/index.d.ts.map +1 -0
- package/dist/approvals/tools/index.js +7 -0
- package/dist/approvals/tools/index.js.map +1 -0
- package/dist/approvals/tools/list-my-requests.d.ts +11 -0
- package/dist/approvals/tools/list-my-requests.d.ts.map +1 -0
- package/dist/approvals/tools/list-my-requests.js +55 -0
- package/dist/approvals/tools/list-my-requests.js.map +1 -0
- package/dist/approvals/tools/list-pending-approvals.d.ts +11 -0
- package/dist/approvals/tools/list-pending-approvals.d.ts.map +1 -0
- package/dist/approvals/tools/list-pending-approvals.js +53 -0
- package/dist/approvals/tools/list-pending-approvals.js.map +1 -0
- package/dist/approvals/tools/request-approval.d.ts +13 -0
- package/dist/approvals/tools/request-approval.d.ts.map +1 -0
- package/dist/approvals/tools/request-approval.js +123 -0
- package/dist/approvals/tools/request-approval.js.map +1 -0
- package/dist/approvals/tools/respond-to-approval.d.ts +13 -0
- package/dist/approvals/tools/respond-to-approval.d.ts.map +1 -0
- package/dist/approvals/tools/respond-to-approval.js +98 -0
- package/dist/approvals/tools/respond-to-approval.js.map +1 -0
- package/dist/audit/collection.d.ts +22 -0
- package/dist/audit/collection.d.ts.map +1 -0
- package/dist/audit/collection.js +109 -0
- package/dist/audit/collection.js.map +1 -0
- package/dist/audit/index.d.ts +16 -0
- package/dist/audit/index.d.ts.map +1 -0
- package/dist/audit/index.js +11 -0
- package/dist/audit/index.js.map +1 -0
- package/dist/audit/jobs/audit-event-echo.d.ts +14 -0
- package/dist/audit/jobs/audit-event-echo.d.ts.map +1 -0
- package/dist/audit/jobs/audit-event-echo.js +61 -0
- package/dist/audit/jobs/audit-event-echo.js.map +1 -0
- package/dist/audit/plugin.d.ts +20 -0
- package/dist/audit/plugin.d.ts.map +1 -0
- package/dist/audit/plugin.js +55 -0
- package/dist/audit/plugin.js.map +1 -0
- package/dist/audit/query/formatting/index.d.ts +40 -0
- package/dist/audit/query/formatting/index.d.ts.map +1 -0
- package/dist/audit/query/formatting/index.js +73 -0
- package/dist/audit/query/formatting/index.js.map +1 -0
- package/dist/audit/query/options.d.ts +34 -0
- package/dist/audit/query/options.d.ts.map +1 -0
- package/dist/audit/query/options.js +8 -0
- package/dist/audit/query/options.js.map +1 -0
- package/dist/audit/query/plugin.d.ts +11 -0
- package/dist/audit/query/plugin.d.ts.map +1 -0
- package/dist/audit/query/plugin.js +68 -0
- package/dist/audit/query/plugin.js.map +1 -0
- package/dist/audit/query/tools/access.d.ts +9 -0
- package/dist/audit/query/tools/access.d.ts.map +1 -0
- package/dist/audit/query/tools/access.js +14 -0
- package/dist/audit/query/tools/access.js.map +1 -0
- package/dist/audit/query/tools/descriptors.d.ts +26 -0
- package/dist/audit/query/tools/descriptors.d.ts.map +1 -0
- package/dist/audit/query/tools/descriptors.js +35 -0
- package/dist/audit/query/tools/descriptors.js.map +1 -0
- package/dist/audit/query/tools/get-change-history.d.ts +23 -0
- package/dist/audit/query/tools/get-change-history.d.ts.map +1 -0
- package/dist/audit/query/tools/get-change-history.js +44 -0
- package/dist/audit/query/tools/get-change-history.js.map +1 -0
- package/dist/audit/query/tools/get-recent-failures.d.ts +23 -0
- package/dist/audit/query/tools/get-recent-failures.d.ts.map +1 -0
- package/dist/audit/query/tools/get-recent-failures.js +56 -0
- package/dist/audit/query/tools/get-recent-failures.js.map +1 -0
- package/dist/audit/query/tools/index.d.ts +13 -0
- package/dist/audit/query/tools/index.d.ts.map +1 -0
- package/dist/audit/query/tools/index.js +8 -0
- package/dist/audit/query/tools/index.js.map +1 -0
- package/dist/audit/query/tools/query-audit.d.ts +53 -0
- package/dist/audit/query/tools/query-audit.d.ts.map +1 -0
- package/dist/audit/query/tools/query-audit.js +78 -0
- package/dist/audit/query/tools/query-audit.js.map +1 -0
- package/dist/audit/query/tools/what-changed-in-range.d.ts +23 -0
- package/dist/audit/query/tools/what-changed-in-range.d.ts.map +1 -0
- package/dist/audit/query/tools/what-changed-in-range.js +86 -0
- package/dist/audit/query/tools/what-changed-in-range.js.map +1 -0
- package/dist/audit/query/tools/who-changed-what.d.ts +38 -0
- package/dist/audit/query/tools/who-changed-what.d.ts.map +1 -0
- package/dist/audit/query/tools/who-changed-what.js +66 -0
- package/dist/audit/query/tools/who-changed-what.js.map +1 -0
- package/dist/audit/types.d.ts +11 -0
- package/dist/audit/types.d.ts.map +1 -0
- package/dist/audit/types.js +45 -0
- package/dist/audit/types.js.map +1 -0
- package/dist/audit/writer.d.ts +50 -0
- package/dist/audit/writer.d.ts.map +1 -0
- package/dist/audit/writer.js +101 -0
- package/dist/audit/writer.js.map +1 -0
- package/dist/cache-tags.d.ts +31 -0
- package/dist/cache-tags.d.ts.map +1 -0
- package/dist/cache-tags.js +53 -0
- package/dist/cache-tags.js.map +1 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +7 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/manifest-source.d.ts +17 -0
- package/dist/components/manifest-source.d.ts.map +1 -0
- package/dist/components/manifest-source.js +60 -0
- package/dist/components/manifest-source.js.map +1 -0
- package/dist/components/matching/index.d.ts +3 -0
- package/dist/components/matching/index.d.ts.map +1 -0
- package/dist/components/matching/index.js +2 -0
- package/dist/components/matching/index.js.map +1 -0
- package/dist/components/matching/tfidf.d.ts +13 -0
- package/dist/components/matching/tfidf.d.ts.map +1 -0
- package/dist/components/matching/tfidf.js +118 -0
- package/dist/components/matching/tfidf.js.map +1 -0
- package/dist/components/matching/types.d.ts +22 -0
- package/dist/components/matching/types.d.ts.map +1 -0
- package/dist/components/matching/types.js +2 -0
- package/dist/components/matching/types.js.map +1 -0
- package/dist/components/options.d.ts +136 -0
- package/dist/components/options.d.ts.map +1 -0
- package/dist/components/options.js +40 -0
- package/dist/components/options.js.map +1 -0
- package/dist/components/plugin.d.ts +4 -0
- package/dist/components/plugin.d.ts.map +1 -0
- package/dist/components/plugin.js +95 -0
- package/dist/components/plugin.js.map +1 -0
- package/dist/components/tools/descriptors.d.ts +34 -0
- package/dist/components/tools/descriptors.d.ts.map +1 -0
- package/dist/components/tools/descriptors.js +43 -0
- package/dist/components/tools/descriptors.js.map +1 -0
- package/dist/components/tools/find-anti-pattern.d.ts +9 -0
- package/dist/components/tools/find-anti-pattern.d.ts.map +1 -0
- package/dist/components/tools/find-anti-pattern.js +31 -0
- package/dist/components/tools/find-anti-pattern.js.map +1 -0
- package/dist/components/tools/get-contract.d.ts +4 -0
- package/dist/components/tools/get-contract.d.ts.map +1 -0
- package/dist/components/tools/get-contract.js +19 -0
- package/dist/components/tools/get-contract.js.map +1 -0
- package/dist/components/tools/get-tokens.d.ts +4 -0
- package/dist/components/tools/get-tokens.d.ts.map +1 -0
- package/dist/components/tools/get-tokens.js +19 -0
- package/dist/components/tools/get-tokens.js.map +1 -0
- package/dist/components/tools/get-variants.d.ts +4 -0
- package/dist/components/tools/get-variants.d.ts.map +1 -0
- package/dist/components/tools/get-variants.js +19 -0
- package/dist/components/tools/get-variants.js.map +1 -0
- package/dist/components/tools/index.d.ts +9 -0
- package/dist/components/tools/index.d.ts.map +1 -0
- package/dist/components/tools/index.js +9 -0
- package/dist/components/tools/index.js.map +1 -0
- package/dist/components/tools/list-components.d.ts +4 -0
- package/dist/components/tools/list-components.d.ts.map +1 -0
- package/dist/components/tools/list-components.js +25 -0
- package/dist/components/tools/list-components.js.map +1 -0
- package/dist/components/tools/suggest-for-intent.d.ts +12 -0
- package/dist/components/tools/suggest-for-intent.d.ts.map +1 -0
- package/dist/components/tools/suggest-for-intent.js +83 -0
- package/dist/components/tools/suggest-for-intent.js.map +1 -0
- package/dist/components/tools/validate-composition.d.ts +9 -0
- package/dist/components/tools/validate-composition.d.ts.map +1 -0
- package/dist/components/tools/validate-composition.js +31 -0
- package/dist/components/tools/validate-composition.js.map +1 -0
- package/dist/components/validation/composition.d.ts +38 -0
- package/dist/components/validation/composition.d.ts.map +1 -0
- package/dist/components/validation/composition.js +135 -0
- package/dist/components/validation/composition.js.map +1 -0
- package/dist/editorial/calendar/ContentCalendarReport.d.ts +9 -0
- package/dist/editorial/calendar/ContentCalendarReport.d.ts.map +1 -0
- package/dist/editorial/calendar/ContentCalendarReport.js +47 -0
- package/dist/editorial/calendar/ContentCalendarReport.js.map +1 -0
- package/dist/editorial/calendar/ContentCalendarView.d.ts +3 -0
- package/dist/editorial/calendar/ContentCalendarView.d.ts.map +1 -0
- package/dist/editorial/calendar/ContentCalendarView.js +36 -0
- package/dist/editorial/calendar/ContentCalendarView.js.map +1 -0
- package/dist/editorial/calendar/calendar.d.ts +30 -0
- package/dist/editorial/calendar/calendar.d.ts.map +1 -0
- package/dist/editorial/calendar/calendar.js +23 -0
- package/dist/editorial/calendar/calendar.js.map +1 -0
- package/dist/editorial/calendar/find.d.ts +41 -0
- package/dist/editorial/calendar/find.d.ts.map +1 -0
- package/dist/editorial/calendar/find.js +108 -0
- package/dist/editorial/calendar/find.js.map +1 -0
- package/dist/editorial/calendar/month.d.ts +45 -0
- package/dist/editorial/calendar/month.d.ts.map +1 -0
- package/dist/editorial/calendar/month.js +120 -0
- package/dist/editorial/calendar/month.js.map +1 -0
- package/dist/editorial/calendar/tool.d.ts +50 -0
- package/dist/editorial/calendar/tool.d.ts.map +1 -0
- package/dist/editorial/calendar/tool.js +68 -0
- package/dist/editorial/calendar/tool.js.map +1 -0
- package/dist/editorial/config.d.ts +25 -0
- package/dist/editorial/config.d.ts.map +1 -0
- package/dist/editorial/config.js +12 -0
- package/dist/editorial/config.js.map +1 -0
- package/dist/editorial/health/ContentHealthReport.d.ts +7 -0
- package/dist/editorial/health/ContentHealthReport.d.ts.map +1 -0
- package/dist/editorial/health/ContentHealthReport.js +29 -0
- package/dist/editorial/health/ContentHealthReport.js.map +1 -0
- package/dist/editorial/health/ContentHealthView.d.ts +3 -0
- package/dist/editorial/health/ContentHealthView.d.ts.map +1 -0
- package/dist/editorial/health/ContentHealthView.js +29 -0
- package/dist/editorial/health/ContentHealthView.js.map +1 -0
- package/dist/editorial/health/HealthSummary.d.ts +6 -0
- package/dist/editorial/health/HealthSummary.d.ts.map +1 -0
- package/dist/editorial/health/HealthSummary.js +39 -0
- package/dist/editorial/health/HealthSummary.js.map +1 -0
- package/dist/editorial/health/checks.d.ts +104 -0
- package/dist/editorial/health/checks.d.ts.map +1 -0
- package/dist/editorial/health/checks.js +188 -0
- package/dist/editorial/health/checks.js.map +1 -0
- package/dist/editorial/health/find.d.ts +43 -0
- package/dist/editorial/health/find.d.ts.map +1 -0
- package/dist/editorial/health/find.js +97 -0
- package/dist/editorial/health/find.js.map +1 -0
- package/dist/editorial/health/tool.d.ts +53 -0
- package/dist/editorial/health/tool.d.ts.map +1 -0
- package/dist/editorial/health/tool.js +80 -0
- package/dist/editorial/health/tool.js.map +1 -0
- package/dist/editorial/index.d.ts +25 -0
- package/dist/editorial/index.d.ts.map +1 -0
- package/dist/editorial/index.js +15 -0
- package/dist/editorial/index.js.map +1 -0
- package/dist/editorial/palette/CommandPalette.d.ts +15 -0
- package/dist/editorial/palette/CommandPalette.d.ts.map +1 -0
- package/dist/editorial/palette/CommandPalette.js +319 -0
- package/dist/editorial/palette/CommandPalette.js.map +1 -0
- package/dist/editorial/palette/ReportsNav.d.ts +5 -0
- package/dist/editorial/palette/ReportsNav.d.ts.map +1 -0
- package/dist/editorial/palette/ReportsNav.js +31 -0
- package/dist/editorial/palette/ReportsNav.js.map +1 -0
- package/dist/editorial/palette/search.d.ts +18 -0
- package/dist/editorial/palette/search.d.ts.map +1 -0
- package/dist/editorial/palette/search.js +41 -0
- package/dist/editorial/palette/search.js.map +1 -0
- package/dist/editorial/palette/sources.d.ts +64 -0
- package/dist/editorial/palette/sources.d.ts.map +1 -0
- package/dist/editorial/palette/sources.js +103 -0
- package/dist/editorial/palette/sources.js.map +1 -0
- package/dist/editorial/palette/styles.d.ts +2 -0
- package/dist/editorial/palette/styles.d.ts.map +1 -0
- package/dist/editorial/palette/styles.js +76 -0
- package/dist/editorial/palette/styles.js.map +1 -0
- package/dist/editorial/palette/tool.d.ts +31 -0
- package/dist/editorial/palette/tool.d.ts.map +1 -0
- package/dist/editorial/palette/tool.js +63 -0
- package/dist/editorial/palette/tool.js.map +1 -0
- package/dist/editorial/plugin.d.ts +76 -0
- package/dist/editorial/plugin.d.ts.map +1 -0
- package/dist/editorial/plugin.js +186 -0
- package/dist/editorial/plugin.js.map +1 -0
- package/dist/editorial/relativeTime.d.ts +3 -0
- package/dist/editorial/relativeTime.d.ts.map +1 -0
- package/dist/editorial/relativeTime.js +27 -0
- package/dist/editorial/relativeTime.js.map +1 -0
- package/dist/editorial/styles.d.ts +2 -0
- package/dist/editorial/styles.d.ts.map +1 -0
- package/dist/editorial/styles.js +191 -0
- package/dist/editorial/styles.js.map +1 -0
- package/dist/editorial/work/YourWork.d.ts +13 -0
- package/dist/editorial/work/YourWork.d.ts.map +1 -0
- package/dist/editorial/work/YourWork.js +40 -0
- package/dist/editorial/work/YourWork.js.map +1 -0
- package/dist/editorial/work/tool.d.ts +45 -0
- package/dist/editorial/work/tool.d.ts.map +1 -0
- package/dist/editorial/work/tool.js +54 -0
- package/dist/editorial/work/tool.js.map +1 -0
- package/dist/editorial/work/work.d.ts +31 -0
- package/dist/editorial/work/work.d.ts.map +1 -0
- package/dist/editorial/work/work.js +68 -0
- package/dist/editorial/work/work.js.map +1 -0
- package/dist/email/client.d.ts +78 -0
- package/dist/email/client.d.ts.map +1 -0
- package/dist/email/client.js +63 -0
- package/dist/email/client.js.map +1 -0
- package/dist/email/functions/_shared.d.ts +17 -0
- package/dist/email/functions/_shared.d.ts.map +1 -0
- package/dist/email/functions/_shared.js +40 -0
- package/dist/email/functions/_shared.js.map +1 -0
- package/dist/email/functions/index.d.ts +7 -0
- package/dist/email/functions/index.d.ts.map +1 -0
- package/dist/email/functions/index.js +4 -0
- package/dist/email/functions/index.js.map +1 -0
- package/dist/email/functions/notify-approval-decision.d.ts +34 -0
- package/dist/email/functions/notify-approval-decision.d.ts.map +1 -0
- package/dist/email/functions/notify-approval-decision.js +77 -0
- package/dist/email/functions/notify-approval-decision.js.map +1 -0
- package/dist/email/functions/notify-approval-expired.d.ts +32 -0
- package/dist/email/functions/notify-approval-expired.d.ts.map +1 -0
- package/dist/email/functions/notify-approval-expired.js +54 -0
- package/dist/email/functions/notify-approval-expired.js.map +1 -0
- package/dist/email/functions/notify-approval-request.d.ts +35 -0
- package/dist/email/functions/notify-approval-request.d.ts.map +1 -0
- package/dist/email/functions/notify-approval-request.js +89 -0
- package/dist/email/functions/notify-approval-request.js.map +1 -0
- package/dist/email/index.d.ts +17 -0
- package/dist/email/index.d.ts.map +1 -0
- package/dist/email/index.js +12 -0
- package/dist/email/index.js.map +1 -0
- package/dist/email/options.d.ts +100 -0
- package/dist/email/options.d.ts.map +1 -0
- package/dist/email/options.js +55 -0
- package/dist/email/options.js.map +1 -0
- package/dist/email/plugin.d.ts +28 -0
- package/dist/email/plugin.d.ts.map +1 -0
- package/dist/email/plugin.js +113 -0
- package/dist/email/plugin.js.map +1 -0
- package/dist/email/templates/ApprovalDecision.d.ts +15 -0
- package/dist/email/templates/ApprovalDecision.d.ts.map +1 -0
- package/dist/email/templates/ApprovalDecision.js +56 -0
- package/dist/email/templates/ApprovalDecision.js.map +1 -0
- package/dist/email/templates/ApprovalExpired.d.ts +10 -0
- package/dist/email/templates/ApprovalExpired.d.ts.map +1 -0
- package/dist/email/templates/ApprovalExpired.js +8 -0
- package/dist/email/templates/ApprovalExpired.js.map +1 -0
- package/dist/email/templates/ApprovalRequest.d.ts +24 -0
- package/dist/email/templates/ApprovalRequest.d.ts.map +1 -0
- package/dist/email/templates/ApprovalRequest.js +58 -0
- package/dist/email/templates/ApprovalRequest.js.map +1 -0
- package/dist/email/templates/_layout.d.ts +17 -0
- package/dist/email/templates/_layout.d.ts.map +1 -0
- package/dist/email/templates/_layout.js +39 -0
- package/dist/email/templates/_layout.js.map +1 -0
- package/dist/email/templates/index.d.ts +9 -0
- package/dist/email/templates/index.d.ts.map +1 -0
- package/dist/email/templates/index.js +5 -0
- package/dist/email/templates/index.js.map +1 -0
- package/dist/email/tokens.d.ts +39 -0
- package/dist/email/tokens.d.ts.map +1 -0
- package/dist/email/tokens.js +17 -0
- package/dist/email/tokens.js.map +1 -0
- package/dist/env/index.d.ts +54 -0
- package/dist/env/index.d.ts.map +1 -0
- package/dist/env/index.js +113 -0
- package/dist/env/index.js.map +1 -0
- package/dist/events/inngest.d.ts +24 -0
- package/dist/events/inngest.d.ts.map +1 -0
- package/dist/events/inngest.js +24 -0
- package/dist/events/inngest.js.map +1 -0
- package/dist/events/taxonomy.d.ts +84 -0
- package/dist/events/taxonomy.d.ts.map +1 -0
- package/dist/events/taxonomy.js +10 -0
- package/dist/events/taxonomy.js.map +1 -0
- package/dist/events/vercel.d.ts +47 -0
- package/dist/events/vercel.d.ts.map +1 -0
- package/dist/events/vercel.js +69 -0
- package/dist/events/vercel.js.map +1 -0
- package/dist/exports/client.d.ts +24 -0
- package/dist/exports/client.d.ts.map +1 -0
- package/dist/exports/client.js +21 -0
- package/dist/exports/client.js.map +1 -0
- package/dist/exports/rsc.d.ts +17 -0
- package/dist/exports/rsc.d.ts.map +1 -0
- package/dist/exports/rsc.js +19 -0
- package/dist/exports/rsc.js.map +1 -0
- package/dist/fields/CharacterCountField.d.ts +4 -0
- package/dist/fields/CharacterCountField.d.ts.map +1 -0
- package/dist/fields/CharacterCountField.js +94 -0
- package/dist/fields/CharacterCountField.js.map +1 -0
- package/dist/fields/characterCount.d.ts +15 -0
- package/dist/fields/characterCount.d.ts.map +1 -0
- package/dist/fields/characterCount.js +92 -0
- package/dist/fields/characterCount.js.map +1 -0
- package/dist/fields/checkSlug.d.ts +62 -0
- package/dist/fields/checkSlug.d.ts.map +1 -0
- package/dist/fields/checkSlug.js +119 -0
- package/dist/fields/checkSlug.js.map +1 -0
- package/dist/fields/index.d.ts +9 -0
- package/dist/fields/index.d.ts.map +1 -0
- package/dist/fields/index.js +9 -0
- package/dist/fields/index.js.map +1 -0
- package/dist/fields/mapFields.d.ts +13 -0
- package/dist/fields/mapFields.d.ts.map +1 -0
- package/dist/fields/mapFields.js +32 -0
- package/dist/fields/mapFields.js.map +1 -0
- package/dist/fields/publishing.d.ts +33 -0
- package/dist/fields/publishing.d.ts.map +1 -0
- package/dist/fields/publishing.js +81 -0
- package/dist/fields/publishing.js.map +1 -0
- package/dist/fields/revisedAt.d.ts +15 -0
- package/dist/fields/revisedAt.d.ts.map +1 -0
- package/dist/fields/revisedAt.js +79 -0
- package/dist/fields/revisedAt.js.map +1 -0
- package/dist/fields/slug.d.ts +21 -0
- package/dist/fields/slug.d.ts.map +1 -0
- package/dist/fields/slug.js +102 -0
- package/dist/fields/slug.js.map +1 -0
- package/dist/fields/unlisted.d.ts +13 -0
- package/dist/fields/unlisted.d.ts.map +1 -0
- package/dist/fields/unlisted.js +35 -0
- package/dist/fields/unlisted.js.map +1 -0
- package/dist/fields/usedBy.d.ts +12 -0
- package/dist/fields/usedBy.d.ts.map +1 -0
- package/dist/fields/usedBy.js +36 -0
- package/dist/fields/usedBy.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/integrations/admin/SyncButton.d.ts +27 -0
- package/dist/integrations/admin/SyncButton.d.ts.map +1 -0
- package/dist/integrations/admin/SyncButton.js +134 -0
- package/dist/integrations/admin/SyncButton.js.map +1 -0
- package/dist/integrations/admin/sync-client.d.ts +83 -0
- package/dist/integrations/admin/sync-client.d.ts.map +1 -0
- package/dist/integrations/admin/sync-client.js +121 -0
- package/dist/integrations/admin/sync-client.js.map +1 -0
- package/dist/integrations/collection.d.ts +26 -0
- package/dist/integrations/collection.d.ts.map +1 -0
- package/dist/integrations/collection.js +193 -0
- package/dist/integrations/collection.js.map +1 -0
- package/dist/integrations/endpoints/sync.d.ts +27 -0
- package/dist/integrations/endpoints/sync.d.ts.map +1 -0
- package/dist/integrations/endpoints/sync.js +90 -0
- package/dist/integrations/endpoints/sync.js.map +1 -0
- package/dist/integrations/index.d.ts +22 -0
- package/dist/integrations/index.d.ts.map +1 -0
- package/dist/integrations/index.js +15 -0
- package/dist/integrations/index.js.map +1 -0
- package/dist/integrations/integrations/index.d.ts +3 -0
- package/dist/integrations/integrations/index.d.ts.map +1 -0
- package/dist/integrations/integrations/index.js +2 -0
- package/dist/integrations/integrations/index.js.map +1 -0
- package/dist/integrations/integrations/webhook/config-fields.d.ts +33 -0
- package/dist/integrations/integrations/webhook/config-fields.d.ts.map +1 -0
- package/dist/integrations/integrations/webhook/config-fields.js +54 -0
- package/dist/integrations/integrations/webhook/config-fields.js.map +1 -0
- package/dist/integrations/integrations/webhook/functions.d.ts +24 -0
- package/dist/integrations/integrations/webhook/functions.d.ts.map +1 -0
- package/dist/integrations/integrations/webhook/functions.js +139 -0
- package/dist/integrations/integrations/webhook/functions.js.map +1 -0
- package/dist/integrations/integrations/webhook/healthcheck.d.ts +10 -0
- package/dist/integrations/integrations/webhook/healthcheck.d.ts.map +1 -0
- package/dist/integrations/integrations/webhook/healthcheck.js +26 -0
- package/dist/integrations/integrations/webhook/healthcheck.js.map +1 -0
- package/dist/integrations/integrations/webhook/hmac.d.ts +11 -0
- package/dist/integrations/integrations/webhook/hmac.d.ts.map +1 -0
- package/dist/integrations/integrations/webhook/hmac.js +25 -0
- package/dist/integrations/integrations/webhook/hmac.js.map +1 -0
- package/dist/integrations/integrations/webhook/index.d.ts +6 -0
- package/dist/integrations/integrations/webhook/index.d.ts.map +1 -0
- package/dist/integrations/integrations/webhook/index.js +47 -0
- package/dist/integrations/integrations/webhook/index.js.map +1 -0
- package/dist/integrations/integrations/webhook/payload.d.ts +9 -0
- package/dist/integrations/integrations/webhook/payload.d.ts.map +1 -0
- package/dist/integrations/integrations/webhook/payload.js +19 -0
- package/dist/integrations/integrations/webhook/payload.js.map +1 -0
- package/dist/integrations/jobs/healthcheck.d.ts +24 -0
- package/dist/integrations/jobs/healthcheck.d.ts.map +1 -0
- package/dist/integrations/jobs/healthcheck.js +133 -0
- package/dist/integrations/jobs/healthcheck.js.map +1 -0
- package/dist/integrations/options.d.ts +54 -0
- package/dist/integrations/options.d.ts.map +1 -0
- package/dist/integrations/options.js +8 -0
- package/dist/integrations/options.js.map +1 -0
- package/dist/integrations/plugin.d.ts +51 -0
- package/dist/integrations/plugin.d.ts.map +1 -0
- package/dist/integrations/plugin.js +215 -0
- package/dist/integrations/plugin.js.map +1 -0
- package/dist/integrations/registry.d.ts +27 -0
- package/dist/integrations/registry.d.ts.map +1 -0
- package/dist/integrations/registry.js +39 -0
- package/dist/integrations/registry.js.map +1 -0
- package/dist/integrations/sync/manual-sync.d.ts +70 -0
- package/dist/integrations/sync/manual-sync.d.ts.map +1 -0
- package/dist/integrations/sync/manual-sync.js +91 -0
- package/dist/integrations/sync/manual-sync.js.map +1 -0
- package/dist/integrations/sync/problems.d.ts +31 -0
- package/dist/integrations/sync/problems.d.ts.map +1 -0
- package/dist/integrations/sync/problems.js +40 -0
- package/dist/integrations/sync/problems.js.map +1 -0
- package/dist/integrations/sync/status.d.ts +15 -0
- package/dist/integrations/sync/status.d.ts.map +1 -0
- package/dist/integrations/sync/status.js +31 -0
- package/dist/integrations/sync/status.js.map +1 -0
- package/dist/integrations/tools/access.d.ts +5 -0
- package/dist/integrations/tools/access.d.ts.map +1 -0
- package/dist/integrations/tools/access.js +14 -0
- package/dist/integrations/tools/access.js.map +1 -0
- package/dist/integrations/tools/descriptors.d.ts +26 -0
- package/dist/integrations/tools/descriptors.d.ts.map +1 -0
- package/dist/integrations/tools/descriptors.js +35 -0
- package/dist/integrations/tools/descriptors.js.map +1 -0
- package/dist/integrations/tools/get-integration-status.d.ts +17 -0
- package/dist/integrations/tools/get-integration-status.d.ts.map +1 -0
- package/dist/integrations/tools/get-integration-status.js +41 -0
- package/dist/integrations/tools/get-integration-status.js.map +1 -0
- package/dist/integrations/tools/index.d.ts +13 -0
- package/dist/integrations/tools/index.d.ts.map +1 -0
- package/dist/integrations/tools/index.js +8 -0
- package/dist/integrations/tools/index.js.map +1 -0
- package/dist/integrations/tools/list-integration-types.d.ts +10 -0
- package/dist/integrations/tools/list-integration-types.d.ts.map +1 -0
- package/dist/integrations/tools/list-integration-types.js +22 -0
- package/dist/integrations/tools/list-integration-types.js.map +1 -0
- package/dist/integrations/tools/list-integrations.d.ts +20 -0
- package/dist/integrations/tools/list-integrations.d.ts.map +1 -0
- package/dist/integrations/tools/list-integrations.js +49 -0
- package/dist/integrations/tools/list-integrations.js.map +1 -0
- package/dist/integrations/tools/test-integration.d.ts +19 -0
- package/dist/integrations/tools/test-integration.d.ts.map +1 -0
- package/dist/integrations/tools/test-integration.js +51 -0
- package/dist/integrations/tools/test-integration.js.map +1 -0
- package/dist/integrations/tools/trigger-sync.d.ts +26 -0
- package/dist/integrations/tools/trigger-sync.d.ts.map +1 -0
- package/dist/integrations/tools/trigger-sync.js +44 -0
- package/dist/integrations/tools/trigger-sync.js.map +1 -0
- package/dist/integrations/types.d.ts +183 -0
- package/dist/integrations/types.d.ts.map +1 -0
- package/dist/integrations/types.js +2 -0
- package/dist/integrations/types.js.map +1 -0
- package/dist/jobs/define.d.ts +17 -0
- package/dist/jobs/define.d.ts.map +1 -0
- package/dist/jobs/define.js +39 -0
- package/dist/jobs/define.js.map +1 -0
- package/dist/jobs/failure-handler.d.ts +39 -0
- package/dist/jobs/failure-handler.d.ts.map +1 -0
- package/dist/jobs/failure-handler.js +62 -0
- package/dist/jobs/failure-handler.js.map +1 -0
- package/dist/jobs/index.d.ts +28 -0
- package/dist/jobs/index.d.ts.map +1 -0
- package/dist/jobs/index.js +7 -0
- package/dist/jobs/index.js.map +1 -0
- package/dist/jobs/inngest/adapter.d.ts +39 -0
- package/dist/jobs/inngest/adapter.d.ts.map +1 -0
- package/dist/jobs/inngest/adapter.js +81 -0
- package/dist/jobs/inngest/adapter.js.map +1 -0
- package/dist/jobs/inngest/index.d.ts +15 -0
- package/dist/jobs/inngest/index.d.ts.map +1 -0
- package/dist/jobs/inngest/index.js +13 -0
- package/dist/jobs/inngest/index.js.map +1 -0
- package/dist/jobs/options.d.ts +18 -0
- package/dist/jobs/options.d.ts.map +1 -0
- package/dist/jobs/options.js +12 -0
- package/dist/jobs/options.js.map +1 -0
- package/dist/jobs/payload/adapter.d.ts +33 -0
- package/dist/jobs/payload/adapter.d.ts.map +1 -0
- package/dist/jobs/payload/adapter.js +257 -0
- package/dist/jobs/payload/adapter.js.map +1 -0
- package/dist/jobs/payload/index.d.ts +8 -0
- package/dist/jobs/payload/index.d.ts.map +1 -0
- package/dist/jobs/payload/index.js +7 -0
- package/dist/jobs/payload/index.js.map +1 -0
- package/dist/jobs/sender.d.ts +4 -0
- package/dist/jobs/sender.d.ts.map +1 -0
- package/dist/jobs/sender.js +19 -0
- package/dist/jobs/sender.js.map +1 -0
- package/dist/jobs/types.d.ts +105 -0
- package/dist/jobs/types.d.ts.map +1 -0
- package/dist/jobs/types.js +2 -0
- package/dist/jobs/types.js.map +1 -0
- package/dist/jobs/workflow-types.d.ts +280 -0
- package/dist/jobs/workflow-types.d.ts.map +1 -0
- package/dist/jobs/workflow-types.js +22 -0
- package/dist/jobs/workflow-types.js.map +1 -0
- package/dist/logger/index.d.ts +9 -0
- package/dist/logger/index.d.ts.map +1 -0
- package/dist/logger/index.js +41 -0
- package/dist/logger/index.js.map +1 -0
- package/dist/mcp/api-key-access.d.ts +50 -0
- package/dist/mcp/api-key-access.d.ts.map +1 -0
- package/dist/mcp/api-key-access.js +94 -0
- package/dist/mcp/api-key-access.js.map +1 -0
- package/dist/mcp/audit-context.d.ts +39 -0
- package/dist/mcp/audit-context.d.ts.map +1 -0
- package/dist/mcp/audit-context.js +36 -0
- package/dist/mcp/audit-context.js.map +1 -0
- package/dist/mcp/audit-server.d.ts +13 -0
- package/dist/mcp/audit-server.d.ts.map +1 -0
- package/dist/mcp/audit-server.js +68 -0
- package/dist/mcp/audit-server.js.map +1 -0
- package/dist/mcp/collector.d.ts +51 -0
- package/dist/mcp/collector.d.ts.map +1 -0
- package/dist/mcp/collector.js +96 -0
- package/dist/mcp/collector.js.map +1 -0
- package/dist/mcp/envelope.d.ts +22 -0
- package/dist/mcp/envelope.d.ts.map +1 -0
- package/dist/mcp/envelope.js +22 -0
- package/dist/mcp/envelope.js.map +1 -0
- package/dist/mcp/index.d.ts +12 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +8 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/meta.d.ts +74 -0
- package/dist/mcp/meta.d.ts.map +1 -0
- package/dist/mcp/meta.js +27 -0
- package/dist/mcp/meta.js.map +1 -0
- package/dist/mcp/payload-mcp.d.ts +68 -0
- package/dist/mcp/payload-mcp.d.ts.map +1 -0
- package/dist/mcp/payload-mcp.js +175 -0
- package/dist/mcp/payload-mcp.js.map +1 -0
- package/dist/media/hooks.d.ts +70 -0
- package/dist/media/hooks.d.ts.map +1 -0
- package/dist/media/hooks.js +200 -0
- package/dist/media/hooks.js.map +1 -0
- package/dist/media/index.d.ts +8 -0
- package/dist/media/index.d.ts.map +1 -0
- package/dist/media/index.js +7 -0
- package/dist/media/index.js.map +1 -0
- package/dist/media/svg.d.ts +17 -0
- package/dist/media/svg.d.ts.map +1 -0
- package/dist/media/svg.js +241 -0
- package/dist/media/svg.js.map +1 -0
- package/dist/media/uploadKey.d.ts +25 -0
- package/dist/media/uploadKey.d.ts.map +1 -0
- package/dist/media/uploadKey.js +70 -0
- package/dist/media/uploadKey.js.map +1 -0
- package/dist/observability/collection.d.ts +13 -0
- package/dist/observability/collection.d.ts.map +1 -0
- package/dist/observability/collection.js +76 -0
- package/dist/observability/collection.js.map +1 -0
- package/dist/observability/index.d.ts +10 -0
- package/dist/observability/index.d.ts.map +1 -0
- package/dist/observability/index.js +6 -0
- package/dist/observability/index.js.map +1 -0
- package/dist/observability/plugin.d.ts +24 -0
- package/dist/observability/plugin.d.ts.map +1 -0
- package/dist/observability/plugin.js +59 -0
- package/dist/observability/plugin.js.map +1 -0
- package/dist/observability/report.d.ts +175 -0
- package/dist/observability/report.d.ts.map +1 -0
- package/dist/observability/report.js +274 -0
- package/dist/observability/report.js.map +1 -0
- package/dist/observability/tool.d.ts +33 -0
- package/dist/observability/tool.d.ts.map +1 -0
- package/dist/observability/tool.js +75 -0
- package/dist/observability/tool.js.map +1 -0
- package/dist/observability/writer.d.ts +24 -0
- package/dist/observability/writer.d.ts.map +1 -0
- package/dist/observability/writer.js +72 -0
- package/dist/observability/writer.js.map +1 -0
- package/dist/plugin-contract/admin.d.ts +45 -0
- package/dist/plugin-contract/admin.d.ts.map +1 -0
- package/dist/plugin-contract/admin.js +12 -0
- package/dist/plugin-contract/admin.js.map +1 -0
- package/dist/plugin-contract/env.d.ts +29 -0
- package/dist/plugin-contract/env.d.ts.map +1 -0
- package/dist/plugin-contract/env.js +2 -0
- package/dist/plugin-contract/env.js.map +1 -0
- package/dist/plugin-contract/index.d.ts +39 -0
- package/dist/plugin-contract/index.d.ts.map +1 -0
- package/dist/plugin-contract/index.js +5 -0
- package/dist/plugin-contract/index.js.map +1 -0
- package/dist/plugin-contract/mcp.d.ts +51 -0
- package/dist/plugin-contract/mcp.d.ts.map +1 -0
- package/dist/plugin-contract/mcp.js +2 -0
- package/dist/plugin-contract/mcp.js.map +1 -0
- package/dist/plugin-contract/registry.d.ts +23 -0
- package/dist/plugin-contract/registry.d.ts.map +1 -0
- package/dist/plugin-contract/registry.js +51 -0
- package/dist/plugin-contract/registry.js.map +1 -0
- package/dist/publishing/admin/PublishButton.d.ts +22 -0
- package/dist/publishing/admin/PublishButton.d.ts.map +1 -0
- package/dist/publishing/admin/PublishButton.js +164 -0
- package/dist/publishing/admin/PublishButton.js.map +1 -0
- package/dist/publishing/admin/SchedulePublishField.d.ts +24 -0
- package/dist/publishing/admin/SchedulePublishField.d.ts.map +1 -0
- package/dist/publishing/admin/SchedulePublishField.js +160 -0
- package/dist/publishing/admin/SchedulePublishField.js.map +1 -0
- package/dist/publishing/admin/UnpublishButton.d.ts +15 -0
- package/dist/publishing/admin/UnpublishButton.d.ts.map +1 -0
- package/dist/publishing/admin/UnpublishButton.js +90 -0
- package/dist/publishing/admin/UnpublishButton.js.map +1 -0
- package/dist/publishing/admin/publishing-client.d.ts +105 -0
- package/dist/publishing/admin/publishing-client.d.ts.map +1 -0
- package/dist/publishing/admin/publishing-client.js +139 -0
- package/dist/publishing/admin/publishing-client.js.map +1 -0
- package/dist/publishing/admin/schedule-state.d.ts +30 -0
- package/dist/publishing/admin/schedule-state.d.ts.map +1 -0
- package/dist/publishing/admin/schedule-state.js +39 -0
- package/dist/publishing/admin/schedule-state.js.map +1 -0
- package/dist/publishing/checks/alt-text.d.ts +17 -0
- package/dist/publishing/checks/alt-text.d.ts.map +1 -0
- package/dist/publishing/checks/alt-text.js +63 -0
- package/dist/publishing/checks/alt-text.js.map +1 -0
- package/dist/publishing/checks/heading-hierarchy.d.ts +11 -0
- package/dist/publishing/checks/heading-hierarchy.d.ts.map +1 -0
- package/dist/publishing/checks/heading-hierarchy.js +32 -0
- package/dist/publishing/checks/heading-hierarchy.js.map +1 -0
- package/dist/publishing/checks/index.d.ts +6 -0
- package/dist/publishing/checks/index.d.ts.map +1 -0
- package/dist/publishing/checks/index.js +13 -0
- package/dist/publishing/checks/index.js.map +1 -0
- package/dist/publishing/checks/link-labels.d.ts +9 -0
- package/dist/publishing/checks/link-labels.d.ts.map +1 -0
- package/dist/publishing/checks/link-labels.js +44 -0
- package/dist/publishing/checks/link-labels.js.map +1 -0
- package/dist/publishing/endpoints/admin.d.ts +19 -0
- package/dist/publishing/endpoints/admin.d.ts.map +1 -0
- package/dist/publishing/endpoints/admin.js +112 -0
- package/dist/publishing/endpoints/admin.js.map +1 -0
- package/dist/publishing/events.d.ts +16 -0
- package/dist/publishing/events.d.ts.map +1 -0
- package/dist/publishing/events.js +30 -0
- package/dist/publishing/events.js.map +1 -0
- package/dist/publishing/hooks/block-status-writes.d.ts +52 -0
- package/dist/publishing/hooks/block-status-writes.d.ts.map +1 -0
- package/dist/publishing/hooks/block-status-writes.js +242 -0
- package/dist/publishing/hooks/block-status-writes.js.map +1 -0
- package/dist/publishing/hooks/draft-writes.d.ts +32 -0
- package/dist/publishing/hooks/draft-writes.d.ts.map +1 -0
- package/dist/publishing/hooks/draft-writes.js +76 -0
- package/dist/publishing/hooks/draft-writes.js.map +1 -0
- package/dist/publishing/hooks/schedule-events.d.ts +26 -0
- package/dist/publishing/hooks/schedule-events.d.ts.map +1 -0
- package/dist/publishing/hooks/schedule-events.js +54 -0
- package/dist/publishing/hooks/schedule-events.js.map +1 -0
- package/dist/publishing/index.d.ts +35 -0
- package/dist/publishing/index.d.ts.map +1 -0
- package/dist/publishing/index.js +32 -0
- package/dist/publishing/index.js.map +1 -0
- package/dist/publishing/jobs/execute-scheduled-publishes.d.ts +24 -0
- package/dist/publishing/jobs/execute-scheduled-publishes.d.ts.map +1 -0
- package/dist/publishing/jobs/execute-scheduled-publishes.js +114 -0
- package/dist/publishing/jobs/execute-scheduled-publishes.js.map +1 -0
- package/dist/publishing/jobs/next-revalidate.d.ts +43 -0
- package/dist/publishing/jobs/next-revalidate.d.ts.map +1 -0
- package/dist/publishing/jobs/next-revalidate.js +42 -0
- package/dist/publishing/jobs/next-revalidate.js.map +1 -0
- package/dist/publishing/jobs/publish-at-scheduled-time.d.ts +24 -0
- package/dist/publishing/jobs/publish-at-scheduled-time.d.ts.map +1 -0
- package/dist/publishing/jobs/publish-at-scheduled-time.js +136 -0
- package/dist/publishing/jobs/publish-at-scheduled-time.js.map +1 -0
- package/dist/publishing/jobs/revalidate-on-publish.d.ts +24 -0
- package/dist/publishing/jobs/revalidate-on-publish.d.ts.map +1 -0
- package/dist/publishing/jobs/revalidate-on-publish.js +78 -0
- package/dist/publishing/jobs/revalidate-on-publish.js.map +1 -0
- package/dist/publishing/jobs/revalidate-tag-hooks.d.ts +80 -0
- package/dist/publishing/jobs/revalidate-tag-hooks.d.ts.map +1 -0
- package/dist/publishing/jobs/revalidate-tag-hooks.js +116 -0
- package/dist/publishing/jobs/revalidate-tag-hooks.js.map +1 -0
- package/dist/publishing/options.d.ts +100 -0
- package/dist/publishing/options.d.ts.map +1 -0
- package/dist/publishing/options.js +56 -0
- package/dist/publishing/options.js.map +1 -0
- package/dist/publishing/pipeline/index.d.ts +20 -0
- package/dist/publishing/pipeline/index.d.ts.map +1 -0
- package/dist/publishing/pipeline/index.js +88 -0
- package/dist/publishing/pipeline/index.js.map +1 -0
- package/dist/publishing/pipeline/steps/accessibility.d.ts +13 -0
- package/dist/publishing/pipeline/steps/accessibility.d.ts.map +1 -0
- package/dist/publishing/pipeline/steps/accessibility.js +37 -0
- package/dist/publishing/pipeline/steps/accessibility.js.map +1 -0
- package/dist/publishing/pipeline/steps/approval.d.ts +14 -0
- package/dist/publishing/pipeline/steps/approval.d.ts.map +1 -0
- package/dist/publishing/pipeline/steps/approval.js +54 -0
- package/dist/publishing/pipeline/steps/approval.js.map +1 -0
- package/dist/publishing/pipeline/steps/composition.d.ts +14 -0
- package/dist/publishing/pipeline/steps/composition.d.ts.map +1 -0
- package/dist/publishing/pipeline/steps/composition.js +63 -0
- package/dist/publishing/pipeline/steps/composition.js.map +1 -0
- package/dist/publishing/pipeline/steps/embargo.d.ts +12 -0
- package/dist/publishing/pipeline/steps/embargo.d.ts.map +1 -0
- package/dist/publishing/pipeline/steps/embargo.js +41 -0
- package/dist/publishing/pipeline/steps/embargo.js.map +1 -0
- package/dist/publishing/pipeline/steps/execute.d.ts +52 -0
- package/dist/publishing/pipeline/steps/execute.d.ts.map +1 -0
- package/dist/publishing/pipeline/steps/execute.js +161 -0
- package/dist/publishing/pipeline/steps/execute.js.map +1 -0
- package/dist/publishing/pipeline/steps/exist.d.ts +9 -0
- package/dist/publishing/pipeline/steps/exist.d.ts.map +1 -0
- package/dist/publishing/pipeline/steps/exist.js +31 -0
- package/dist/publishing/pipeline/steps/exist.js.map +1 -0
- package/dist/publishing/pipeline/steps/required-fields.d.ts +9 -0
- package/dist/publishing/pipeline/steps/required-fields.d.ts.map +1 -0
- package/dist/publishing/pipeline/steps/required-fields.js +63 -0
- package/dist/publishing/pipeline/steps/required-fields.js.map +1 -0
- package/dist/publishing/pipeline/types.d.ts +72 -0
- package/dist/publishing/pipeline/types.d.ts.map +1 -0
- package/dist/publishing/pipeline/types.js +2 -0
- package/dist/publishing/pipeline/types.js.map +1 -0
- package/dist/publishing/plugin.d.ts +4 -0
- package/dist/publishing/plugin.d.ts.map +1 -0
- package/dist/publishing/plugin.js +196 -0
- package/dist/publishing/plugin.js.map +1 -0
- package/dist/publishing/service.d.ts +149 -0
- package/dist/publishing/service.d.ts.map +1 -0
- package/dist/publishing/service.js +474 -0
- package/dist/publishing/service.js.map +1 -0
- package/dist/publishing/tools/actor.d.ts +32 -0
- package/dist/publishing/tools/actor.d.ts.map +1 -0
- package/dist/publishing/tools/actor.js +40 -0
- package/dist/publishing/tools/actor.js.map +1 -0
- package/dist/publishing/tools/descriptors.d.ts +26 -0
- package/dist/publishing/tools/descriptors.d.ts.map +1 -0
- package/dist/publishing/tools/descriptors.js +38 -0
- package/dist/publishing/tools/descriptors.js.map +1 -0
- package/dist/publishing/tools/get-publish-status.d.ts +12 -0
- package/dist/publishing/tools/get-publish-status.d.ts.map +1 -0
- package/dist/publishing/tools/get-publish-status.js +45 -0
- package/dist/publishing/tools/get-publish-status.js.map +1 -0
- package/dist/publishing/tools/index.d.ts +7 -0
- package/dist/publishing/tools/index.d.ts.map +1 -0
- package/dist/publishing/tools/index.js +7 -0
- package/dist/publishing/tools/index.js.map +1 -0
- package/dist/publishing/tools/publish.d.ts +14 -0
- package/dist/publishing/tools/publish.d.ts.map +1 -0
- package/dist/publishing/tools/publish.js +35 -0
- package/dist/publishing/tools/publish.js.map +1 -0
- package/dist/publishing/tools/rollback.d.ts +11 -0
- package/dist/publishing/tools/rollback.d.ts.map +1 -0
- package/dist/publishing/tools/rollback.js +98 -0
- package/dist/publishing/tools/rollback.js.map +1 -0
- package/dist/publishing/tools/schedule-publish.d.ts +20 -0
- package/dist/publishing/tools/schedule-publish.d.ts.map +1 -0
- package/dist/publishing/tools/schedule-publish.js +49 -0
- package/dist/publishing/tools/schedule-publish.js.map +1 -0
- package/dist/publishing/tools/unpublish.d.ts +14 -0
- package/dist/publishing/tools/unpublish.d.ts.map +1 -0
- package/dist/publishing/tools/unpublish.js +29 -0
- package/dist/publishing/tools/unpublish.js.map +1 -0
- package/dist/references/UsedOnPanel.d.ts +3 -0
- package/dist/references/UsedOnPanel.d.ts.map +1 -0
- package/dist/references/UsedOnPanel.js +47 -0
- package/dist/references/UsedOnPanel.js.map +1 -0
- package/dist/references/find.d.ts +46 -0
- package/dist/references/find.d.ts.map +1 -0
- package/dist/references/find.js +142 -0
- package/dist/references/find.js.map +1 -0
- package/dist/references/guards.d.ts +32 -0
- package/dist/references/guards.d.ts.map +1 -0
- package/dist/references/guards.js +76 -0
- package/dist/references/guards.js.map +1 -0
- package/dist/references/index.d.ts +11 -0
- package/dist/references/index.d.ts.map +1 -0
- package/dist/references/index.js +6 -0
- package/dist/references/index.js.map +1 -0
- package/dist/references/plugin.d.ts +51 -0
- package/dist/references/plugin.d.ts.map +1 -0
- package/dist/references/plugin.js +111 -0
- package/dist/references/plugin.js.map +1 -0
- package/dist/references/tools.d.ts +54 -0
- package/dist/references/tools.d.ts.map +1 -0
- package/dist/references/tools.js +124 -0
- package/dist/references/tools.js.map +1 -0
- package/dist/references/walk.d.ts +43 -0
- package/dist/references/walk.d.ts.map +1 -0
- package/dist/references/walk.js +214 -0
- package/dist/references/walk.js.map +1 -0
- package/dist/testing/anonymousAccess.d.ts +111 -0
- package/dist/testing/anonymousAccess.d.ts.map +1 -0
- package/dist/testing/anonymousAccess.js +185 -0
- package/dist/testing/anonymousAccess.js.map +1 -0
- package/dist/testing/describeAnonymousAccess.d.ts +26 -0
- package/dist/testing/describeAnonymousAccess.d.ts.map +1 -0
- package/dist/testing/describeAnonymousAccess.js +76 -0
- package/dist/testing/describeAnonymousAccess.js.map +1 -0
- package/dist/testing/index.d.ts +11 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +9 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/utils/content-hash.d.ts +31 -0
- package/dist/utils/content-hash.d.ts.map +1 -0
- package/dist/utils/content-hash.js +94 -0
- package/dist/utils/content-hash.js.map +1 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +5 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/relationships.d.ts +17 -0
- package/dist/utils/relationships.d.ts.map +1 -0
- package/dist/utils/relationships.js +26 -0
- package/dist/utils/relationships.js.map +1 -0
- package/dist/utils/sha256.d.ts +10 -0
- package/dist/utils/sha256.d.ts.map +1 -0
- package/dist/utils/sha256.js +16 -0
- package/dist/utils/sha256.js.map +1 -0
- package/dist/utils/zod-issues.d.ts +19 -0
- package/dist/utils/zod-issues.d.ts.map +1 -0
- package/dist/utils/zod-issues.js +22 -0
- package/dist/utils/zod-issues.js.map +1 -0
- package/package.json +183 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const PALETTE_CSS = "\n.tl-palette {\n width: min(40rem, calc(100vw - 2rem));\n max-height: min(32rem, calc(100vh - 6rem));\n margin: 10vh auto auto;\n padding: 0;\n border: 1px solid var(--theme-elevation-150);\n border-radius: var(--style-radius-m);\n background: var(--theme-elevation-0);\n color: var(--theme-text);\n box-shadow: 0 1rem 3rem rgb(0 0 0 / 25%);\n overflow: hidden;\n}\n.tl-palette[open] {\n display: flex;\n flex-direction: column;\n}\n.tl-palette::backdrop {\n background: rgb(0 0 0 / 40%);\n}\n.tl-palette__input {\n width: 100%;\n padding: calc(var(--base) * 0.75) var(--base);\n border: 0;\n border-bottom: 1px solid var(--theme-elevation-150);\n background: transparent;\n color: inherit;\n font: inherit;\n font-size: 1.125rem;\n outline: none;\n}\n.tl-palette__status,\n.tl-palette__keys {\n margin: 0;\n padding: calc(var(--base) * 0.5) var(--base);\n color: var(--theme-elevation-500);\n font-size: 0.875rem;\n}\n.tl-palette__keys {\n border-top: 1px solid var(--theme-elevation-100);\n}\n.tl-palette__list {\n flex: 1;\n margin: 0;\n padding: 0;\n overflow-y: auto;\n list-style: none;\n}\n.tl-palette__item {\n display: flex;\n justify-content: space-between;\n gap: var(--base);\n padding: calc(var(--base) * 0.5) var(--base);\n cursor: pointer;\n}\n.tl-palette__item[aria-selected='true'] {\n background: var(--theme-elevation-100);\n}\n.tl-palette__label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.tl-palette__hint {\n flex-shrink: 0;\n color: var(--theme-elevation-500);\n}\n";
|
|
2
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/editorial/palette/styles.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,kiDAmEvB,CAAA"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
The palette's styles, in Payload's tokens, rendered as a React 19
|
|
3
|
+
`<style href precedence>` like the editorial views'. Kept apart from those
|
|
4
|
+
because this ships in the client bundle. Ported from forumone-2026's
|
|
5
|
+
`app/(payload)/custom.css`. A native <dialog>, so the backdrop and focus
|
|
6
|
+
handling are the browser's.
|
|
7
|
+
*/
|
|
8
|
+
export const PALETTE_CSS = `
|
|
9
|
+
.tl-palette {
|
|
10
|
+
width: min(40rem, calc(100vw - 2rem));
|
|
11
|
+
max-height: min(32rem, calc(100vh - 6rem));
|
|
12
|
+
margin: 10vh auto auto;
|
|
13
|
+
padding: 0;
|
|
14
|
+
border: 1px solid var(--theme-elevation-150);
|
|
15
|
+
border-radius: var(--style-radius-m);
|
|
16
|
+
background: var(--theme-elevation-0);
|
|
17
|
+
color: var(--theme-text);
|
|
18
|
+
box-shadow: 0 1rem 3rem rgb(0 0 0 / 25%);
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
}
|
|
21
|
+
.tl-palette[open] {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
}
|
|
25
|
+
.tl-palette::backdrop {
|
|
26
|
+
background: rgb(0 0 0 / 40%);
|
|
27
|
+
}
|
|
28
|
+
.tl-palette__input {
|
|
29
|
+
width: 100%;
|
|
30
|
+
padding: calc(var(--base) * 0.75) var(--base);
|
|
31
|
+
border: 0;
|
|
32
|
+
border-bottom: 1px solid var(--theme-elevation-150);
|
|
33
|
+
background: transparent;
|
|
34
|
+
color: inherit;
|
|
35
|
+
font: inherit;
|
|
36
|
+
font-size: 1.125rem;
|
|
37
|
+
outline: none;
|
|
38
|
+
}
|
|
39
|
+
.tl-palette__status,
|
|
40
|
+
.tl-palette__keys {
|
|
41
|
+
margin: 0;
|
|
42
|
+
padding: calc(var(--base) * 0.5) var(--base);
|
|
43
|
+
color: var(--theme-elevation-500);
|
|
44
|
+
font-size: 0.875rem;
|
|
45
|
+
}
|
|
46
|
+
.tl-palette__keys {
|
|
47
|
+
border-top: 1px solid var(--theme-elevation-100);
|
|
48
|
+
}
|
|
49
|
+
.tl-palette__list {
|
|
50
|
+
flex: 1;
|
|
51
|
+
margin: 0;
|
|
52
|
+
padding: 0;
|
|
53
|
+
overflow-y: auto;
|
|
54
|
+
list-style: none;
|
|
55
|
+
}
|
|
56
|
+
.tl-palette__item {
|
|
57
|
+
display: flex;
|
|
58
|
+
justify-content: space-between;
|
|
59
|
+
gap: var(--base);
|
|
60
|
+
padding: calc(var(--base) * 0.5) var(--base);
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
}
|
|
63
|
+
.tl-palette__item[aria-selected='true'] {
|
|
64
|
+
background: var(--theme-elevation-100);
|
|
65
|
+
}
|
|
66
|
+
.tl-palette__label {
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
text-overflow: ellipsis;
|
|
69
|
+
white-space: nowrap;
|
|
70
|
+
}
|
|
71
|
+
.tl-palette__hint {
|
|
72
|
+
flex-shrink: 0;
|
|
73
|
+
color: var(--theme-elevation-500);
|
|
74
|
+
}
|
|
75
|
+
`;
|
|
76
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/editorial/palette/styles.ts"],"names":[],"mappings":"AAAA;;;;;;EAME;AACF,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmE1B,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { Payload } from 'payload';
|
|
3
|
+
import type { McpToolDefinition } from '../../plugin-contract/mcp.js';
|
|
4
|
+
import type { McpToolDescriptor } from '../../mcp/collector.js';
|
|
5
|
+
import type { SearchSource } from './sources.js';
|
|
6
|
+
export declare const PALETTE_TOOLS: {
|
|
7
|
+
readonly searchContent: {
|
|
8
|
+
readonly name: "search_content";
|
|
9
|
+
readonly description: "Finds documents by a few letters of their title, across every collection the admin's Cmd-K palette searches (pages, posts, people, media and so on), including drafts. Results are ranked as the palette ranks them: exact title, then prefix, then a word starting with the query, then anywhere. Each has its admin link. Use to find the id of a document someone names before reading or editing it.";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const PALETTE_TOOL_DESCRIPTORS: readonly McpToolDescriptor[];
|
|
13
|
+
declare const inputSchema: z.ZodObject<{
|
|
14
|
+
query: z.ZodString;
|
|
15
|
+
collections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
16
|
+
perCollection: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
query: string;
|
|
19
|
+
collections?: string[] | undefined;
|
|
20
|
+
perCollection?: number | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
query: string;
|
|
23
|
+
collections?: string[] | undefined;
|
|
24
|
+
perCollection?: number | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
export declare function createSearchContentTool(deps: {
|
|
27
|
+
payload: Payload;
|
|
28
|
+
sources: readonly SearchSource[];
|
|
29
|
+
}): McpToolDefinition<typeof inputSchema>;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../../src/editorial/palette/tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,OAAO,EAAkB,MAAM,SAAS,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAOhD,eAAO,MAAM,aAAa;;;;;CAM4B,CAAA;AAEtD,eAAO,MAAM,wBAAwB,EAAE,SAAS,iBAAiB,EAAiC,CAAA;AAElG,QAAA,MAAM,WAAW;;;;;;;;;;;;EAaf,CAAA;AAEF,wBAAgB,uBAAuB,CAAC,IAAI,EAAE;IAC5C,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,SAAS,YAAY,EAAE,CAAA;CACjC,GAAG,iBAAiB,CAAC,OAAO,WAAW,CAAC,CAmCxC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { searchContent } from './search.js';
|
|
3
|
+
/*
|
|
4
|
+
The command palette's search, as an MCP tool: the same query per collection the
|
|
5
|
+
palette sends, as the caller, ranked the same way.
|
|
6
|
+
*/
|
|
7
|
+
export const PALETTE_TOOLS = {
|
|
8
|
+
searchContent: {
|
|
9
|
+
name: 'search_content',
|
|
10
|
+
description: "Finds documents by a few letters of their title, across every collection the admin's Cmd-K palette searches (pages, posts, people, media and so on), including drafts. Results are ranked as the palette ranks them: exact title, then prefix, then a word starting with the query, then anywhere. Each has its admin link. Use to find the id of a document someone names before reading or editing it.",
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
export const PALETTE_TOOL_DESCRIPTORS = Object.values(PALETTE_TOOLS);
|
|
14
|
+
const inputSchema = z.object({
|
|
15
|
+
query: z.string().min(1).describe('A few letters of the title, e.g. "about".'),
|
|
16
|
+
collections: z
|
|
17
|
+
.array(z.string())
|
|
18
|
+
.optional()
|
|
19
|
+
.describe('Only these collection slugs. Default: all searched.'),
|
|
20
|
+
perCollection: z
|
|
21
|
+
.number()
|
|
22
|
+
.int()
|
|
23
|
+
.positive()
|
|
24
|
+
.max(25)
|
|
25
|
+
.optional()
|
|
26
|
+
.describe('Results per collection. Default: 5.'),
|
|
27
|
+
});
|
|
28
|
+
export function createSearchContentTool(deps) {
|
|
29
|
+
return {
|
|
30
|
+
...PALETTE_TOOLS.searchContent,
|
|
31
|
+
inputSchema,
|
|
32
|
+
handler: async (input, ctx) => {
|
|
33
|
+
if (!ctx.user) {
|
|
34
|
+
return {
|
|
35
|
+
error: 'Must be authenticated: search runs with your own access, and an API key alone carries no identity.',
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
const known = new Set(deps.sources.map((source) => source.slug));
|
|
39
|
+
const unknown = (input.collections ?? []).filter((slug) => !known.has(slug));
|
|
40
|
+
if (unknown.length > 0) {
|
|
41
|
+
return { error: `Not searched: ${unknown.join(', ')}. Searched: ${[...known].join(', ')}.` };
|
|
42
|
+
}
|
|
43
|
+
const hits = await searchContent(deps.payload, {
|
|
44
|
+
sources: input.collections
|
|
45
|
+
? deps.sources.filter((source) => input.collections.includes(source.slug))
|
|
46
|
+
: deps.sources,
|
|
47
|
+
query: input.query,
|
|
48
|
+
// The same cast and the same reason as publishing's `resolvePublishingActor`.
|
|
49
|
+
user: ctx.user,
|
|
50
|
+
...(input.perCollection ? { perSource: input.perCollection } : {}),
|
|
51
|
+
});
|
|
52
|
+
const admin = deps.payload.config.routes.admin;
|
|
53
|
+
return {
|
|
54
|
+
query: input.query.trim(),
|
|
55
|
+
results: hits.map((hit) => ({
|
|
56
|
+
...hit,
|
|
57
|
+
adminUrl: `${admin}/collections/${hit.collection}/${encodeURIComponent(String(hit.id))}`,
|
|
58
|
+
})),
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.js","sourceRoot":"","sources":["../../../src/editorial/palette/tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAG3C;;;EAGE;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,aAAa,EAAE;QACb,IAAI,EAAE,gBAAgB;QACtB,WAAW,EACT,0YAA0Y;KAC7Y;CACmD,CAAA;AAEtD,MAAM,CAAC,MAAM,wBAAwB,GAAiC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAA;AAElG,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B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AC,IAAI,CAAC,OAAO,EAAE;gBAC7C,OAAO,EAAE,KAAK,CAAC,WAAW;oBACxB,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,WAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;oBAC3E,CAAC,CAAC,IAAI,CAAC,OAAO;gBAChB,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,8EAA8E;gBAC9E,IAAI,EAAE,GAAG,CAAC,IAAyC;gBACnD,GAAG,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACnE,CAAC,CAAA;YACF,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAA;YAC9C,OAAO;gBACL,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE;gBACzB,OAAO,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;oBAC1B,GAAG,GAAG;oBACN,QAAQ,EAAE,GAAG,KAAK,gBAAgB,GAAG,CAAC,UAAU,IAAI,kBAAkB,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE;iBACzF,CAAC,CAAC;aACJ,CAAA;QACH,CAAC;KACF,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { Plugin } from 'payload';
|
|
2
|
+
import type { McpToolCollector } from '../mcp/collector.js';
|
|
3
|
+
import type { CalendarOptions } from './calendar/calendar.js';
|
|
4
|
+
import type { HealthCheck } from './health/checks.js';
|
|
5
|
+
import type { Report, SearchSource } from './palette/sources.js';
|
|
6
|
+
import type { WorkOptions } from './work/work.js';
|
|
7
|
+
export interface EditorialPluginOptions {
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
/** The content-health view, its dashboard summary and `find_content_needing_attention`. */
|
|
10
|
+
health?: {
|
|
11
|
+
checks: readonly HealthCheck[];
|
|
12
|
+
/** Where the view lives under the admin route. Default `/content-health`. */
|
|
13
|
+
path?: string;
|
|
14
|
+
};
|
|
15
|
+
/** The content-calendar view and `get_content_calendar`. */
|
|
16
|
+
calendar?: CalendarOptions & {
|
|
17
|
+
/** Where the view lives under the admin route. Default `/content-calendar`. */
|
|
18
|
+
path?: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* "Your work" on the dashboard (unpublished changes and scheduled publishes,
|
|
22
|
+
* with content health's counts beside them) and `list_my_work`.
|
|
23
|
+
*/
|
|
24
|
+
work?: WorkOptions & {
|
|
25
|
+
/** Put the panels in `beforeDashboard`. Default `true`; `false` for the tool alone. */
|
|
26
|
+
dashboard?: boolean;
|
|
27
|
+
};
|
|
28
|
+
/** The Cmd-K command palette and `search_content`. */
|
|
29
|
+
palette?: {
|
|
30
|
+
/** What it searches, in the order results are grouped. */
|
|
31
|
+
sources: SearchSource[];
|
|
32
|
+
/** Collections offered as "New …". Default: every source. */
|
|
33
|
+
creatable?: string[];
|
|
34
|
+
/** The per-user preference the "recently opened" list is kept in. */
|
|
35
|
+
preferenceKey?: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Admin screens beyond the ones this plugin registers, for the palette's "Go
|
|
39
|
+
* to" and the sidebar's Reports group.
|
|
40
|
+
*/
|
|
41
|
+
reports?: Report[];
|
|
42
|
+
/** The sidebar's "Reports" group, after the collections. Default `true` when there are reports. */
|
|
43
|
+
reportsNav?: boolean;
|
|
44
|
+
/** Where the tools go. Omit for none. Must come before `mcpPlugin`. */
|
|
45
|
+
mcpTools?: McpToolCollector;
|
|
46
|
+
}
|
|
47
|
+
/** The views' import-map paths. */
|
|
48
|
+
export declare const CONTENT_HEALTH_VIEW_PATH = "@forumone/throughline/rsc#ContentHealthView";
|
|
49
|
+
export declare const CONTENT_CALENDAR_VIEW_PATH = "@forumone/throughline/rsc#ContentCalendarView";
|
|
50
|
+
export declare const YOUR_WORK_DASHBOARD_PATH = "@forumone/throughline/rsc#YourWorkDashboard";
|
|
51
|
+
export declare const COMMAND_PALETTE_PATH = "@forumone/throughline/client#CommandPalette";
|
|
52
|
+
export declare const REPORTS_NAV_PATH = "@forumone/throughline/client#ReportsNav";
|
|
53
|
+
/**
|
|
54
|
+
* Editorial views for the admin, each with an MCP tool that returns the same
|
|
55
|
+
* rows from the same read. 1.0 P2 moves these from forumone-2026 one at a time.
|
|
56
|
+
*
|
|
57
|
+
* ```ts
|
|
58
|
+
* editorialPlugin({
|
|
59
|
+
* health: {
|
|
60
|
+
* checks: [
|
|
61
|
+
* staleCheck({ after: { pages: 12 } }),
|
|
62
|
+
* missingSeoCheck({ collections: ['pages', 'posts'] }),
|
|
63
|
+
* missingAltCheck({ inUse: findReferencedIds }),
|
|
64
|
+
* ],
|
|
65
|
+
* },
|
|
66
|
+
* calendar: {
|
|
67
|
+
* timeZone: 'America/New_York',
|
|
68
|
+
* collections: ['pages', 'posts'],
|
|
69
|
+
* events: [{ collection: 'events', startsField: 'startsAt', zoneField: 'startsAt_tz' }],
|
|
70
|
+
* },
|
|
71
|
+
* mcpTools,
|
|
72
|
+
* })
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
export declare function editorialPlugin(options: EditorialPluginOptions): Plugin;
|
|
76
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/editorial/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAU,MAAM,EAAE,MAAM,SAAS,CAAA;AAE7C,OAAO,KAAK,EAAE,gBAAgB,EAAqB,MAAM,qBAAqB,CAAA;AAE9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAG7D,OAAO,KAAK,EA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H,wBAAgB,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,MAAM,CAkJvE"}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { EDITORIAL_CUSTOM_KEY } from './config.js';
|
|
2
|
+
import { calendarClock } from './calendar/month.js';
|
|
3
|
+
import { CALENDAR_TOOL_DESCRIPTORS, createGetContentCalendarTool } from './calendar/tool.js';
|
|
4
|
+
import { HEALTH_TOOL_DESCRIPTORS, createFindContentNeedingAttentionTool } from './health/tool.js';
|
|
5
|
+
import { PALETTE_TOOL_DESCRIPTORS, createSearchContentTool } from './palette/tool.js';
|
|
6
|
+
import { WORK_TOOL_DESCRIPTORS, createListMyWorkTool } from './work/tool.js';
|
|
7
|
+
/** The views' import-map paths. */
|
|
8
|
+
export const CONTENT_HEALTH_VIEW_PATH = '@forumone/throughline/rsc#ContentHealthView';
|
|
9
|
+
export const CONTENT_CALENDAR_VIEW_PATH = '@forumone/throughline/rsc#ContentCalendarView';
|
|
10
|
+
export const YOUR_WORK_DASHBOARD_PATH = '@forumone/throughline/rsc#YourWorkDashboard';
|
|
11
|
+
export const COMMAND_PALETTE_PATH = '@forumone/throughline/client#CommandPalette';
|
|
12
|
+
export const REPORTS_NAV_PATH = '@forumone/throughline/client#ReportsNav';
|
|
13
|
+
function addView(config, key, Component, path, title) {
|
|
14
|
+
return {
|
|
15
|
+
...config,
|
|
16
|
+
admin: {
|
|
17
|
+
...config.admin,
|
|
18
|
+
components: {
|
|
19
|
+
...config.admin?.components,
|
|
20
|
+
views: {
|
|
21
|
+
...config.admin?.components?.views,
|
|
22
|
+
[key]: { Component, path: path, meta: { title } },
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Editorial views for the admin, each with an MCP tool that returns the same
|
|
30
|
+
* rows from the same read. 1.0 P2 moves these from forumone-2026 one at a time.
|
|
31
|
+
*
|
|
32
|
+
* ```ts
|
|
33
|
+
* editorialPlugin({
|
|
34
|
+
* health: {
|
|
35
|
+
* checks: [
|
|
36
|
+
* staleCheck({ after: { pages: 12 } }),
|
|
37
|
+
* missingSeoCheck({ collections: ['pages', 'posts'] }),
|
|
38
|
+
* missingAltCheck({ inUse: findReferencedIds }),
|
|
39
|
+
* ],
|
|
40
|
+
* },
|
|
41
|
+
* calendar: {
|
|
42
|
+
* timeZone: 'America/New_York',
|
|
43
|
+
* collections: ['pages', 'posts'],
|
|
44
|
+
* events: [{ collection: 'events', startsField: 'startsAt', zoneField: 'startsAt_tz' }],
|
|
45
|
+
* },
|
|
46
|
+
* mcpTools,
|
|
47
|
+
* })
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export function editorialPlugin(options) {
|
|
51
|
+
return (incoming) => {
|
|
52
|
+
if (options.enabled === false)
|
|
53
|
+
return incoming;
|
|
54
|
+
const runtime = {};
|
|
55
|
+
const descriptors = [];
|
|
56
|
+
let config = incoming;
|
|
57
|
+
if (options.health) {
|
|
58
|
+
const { checks } = options.health;
|
|
59
|
+
const path = options.health.path ?? '/content-health';
|
|
60
|
+
const ids = checks.map((check) => check.id);
|
|
61
|
+
const duplicate = ids.find((id, index) => ids.indexOf(id) !== index);
|
|
62
|
+
if (duplicate) {
|
|
63
|
+
throw new Error(`editorialPlugin: two health checks share the id "${duplicate}".`);
|
|
64
|
+
}
|
|
65
|
+
runtime.health = { checks, path };
|
|
66
|
+
config = addView(config, 'contentHealth', CONTENT_HEALTH_VIEW_PATH, path, 'Content health');
|
|
67
|
+
descriptors.push(...HEALTH_TOOL_DESCRIPTORS);
|
|
68
|
+
}
|
|
69
|
+
if (options.calendar) {
|
|
70
|
+
const { path: rawPath, ...calendar } = options.calendar;
|
|
71
|
+
const path = rawPath ?? '/content-calendar';
|
|
72
|
+
// Fails here, at boot, on a zone Intl does not know.
|
|
73
|
+
calendarClock(calendar.timeZone, calendar.zoneLabel);
|
|
74
|
+
runtime.calendar = { options: calendar, path };
|
|
75
|
+
config = addView(config, 'contentCalendar', CONTENT_CALENDAR_VIEW_PATH, path, 'Content calendar');
|
|
76
|
+
descriptors.push(...CALENDAR_TOOL_DESCRIPTORS);
|
|
77
|
+
}
|
|
78
|
+
if (options.work) {
|
|
79
|
+
const { dashboard, ...work } = options.work;
|
|
80
|
+
runtime.work = { options: work };
|
|
81
|
+
if (dashboard !== false) {
|
|
82
|
+
// First, so "what is waiting" sits above everything else on the dashboard.
|
|
83
|
+
config = {
|
|
84
|
+
...config,
|
|
85
|
+
admin: {
|
|
86
|
+
...config.admin,
|
|
87
|
+
components: {
|
|
88
|
+
...config.admin?.components,
|
|
89
|
+
beforeDashboard: [
|
|
90
|
+
YOUR_WORK_DASHBOARD_PATH,
|
|
91
|
+
...(config.admin?.components?.beforeDashboard ?? []),
|
|
92
|
+
],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
descriptors.push(...WORK_TOOL_DESCRIPTORS);
|
|
98
|
+
}
|
|
99
|
+
// The screens this plugin added, then the host's own.
|
|
100
|
+
const reports = [
|
|
101
|
+
...(runtime.health
|
|
102
|
+
? [{ path: runtime.health.path, label: 'Content health', keywords: 'stale seo alt review' }]
|
|
103
|
+
: []),
|
|
104
|
+
...(runtime.calendar
|
|
105
|
+
? [
|
|
106
|
+
{
|
|
107
|
+
path: runtime.calendar.path,
|
|
108
|
+
label: 'Content calendar',
|
|
109
|
+
keywords: 'schedule scheduled events publish month',
|
|
110
|
+
},
|
|
111
|
+
]
|
|
112
|
+
: []),
|
|
113
|
+
...(options.reports ?? []),
|
|
114
|
+
];
|
|
115
|
+
if (options.palette) {
|
|
116
|
+
runtime.palette = { sources: options.palette.sources };
|
|
117
|
+
config = {
|
|
118
|
+
...config,
|
|
119
|
+
admin: {
|
|
120
|
+
...config.admin,
|
|
121
|
+
components: {
|
|
122
|
+
...config.admin?.components,
|
|
123
|
+
providers: [
|
|
124
|
+
...(config.admin?.components?.providers ?? []),
|
|
125
|
+
{
|
|
126
|
+
path: COMMAND_PALETTE_PATH,
|
|
127
|
+
clientProps: {
|
|
128
|
+
sources: options.palette.sources,
|
|
129
|
+
reports,
|
|
130
|
+
...(options.palette.creatable ? { creatable: options.palette.creatable } : {}),
|
|
131
|
+
...(options.palette.preferenceKey
|
|
132
|
+
? { preferenceKey: options.palette.preferenceKey }
|
|
133
|
+
: {}),
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
};
|
|
140
|
+
descriptors.push(...PALETTE_TOOL_DESCRIPTORS);
|
|
141
|
+
}
|
|
142
|
+
if (reports.length > 0 && options.reportsNav !== false) {
|
|
143
|
+
config = {
|
|
144
|
+
...config,
|
|
145
|
+
admin: {
|
|
146
|
+
...config.admin,
|
|
147
|
+
components: {
|
|
148
|
+
...config.admin?.components,
|
|
149
|
+
afterNavLinks: [
|
|
150
|
+
...(config.admin?.components?.afterNavLinks ?? []),
|
|
151
|
+
{ path: REPORTS_NAV_PATH, clientProps: { reports } },
|
|
152
|
+
],
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
if (descriptors.length > 0)
|
|
158
|
+
options.mcpTools?.declare(descriptors, { serverName: 'editorial' });
|
|
159
|
+
return {
|
|
160
|
+
...config,
|
|
161
|
+
custom: { ...config.custom, [EDITORIAL_CUSTOM_KEY]: runtime },
|
|
162
|
+
onInit: async (payload) => {
|
|
163
|
+
if (config.onInit)
|
|
164
|
+
await config.onInit(payload);
|
|
165
|
+
if (!options.mcpTools)
|
|
166
|
+
return;
|
|
167
|
+
const tools = [
|
|
168
|
+
...(runtime.health
|
|
169
|
+
? [createFindContentNeedingAttentionTool({ payload, checks: runtime.health.checks })]
|
|
170
|
+
: []),
|
|
171
|
+
...(runtime.calendar
|
|
172
|
+
? [createGetContentCalendarTool({ payload, calendar: runtime.calendar.options })]
|
|
173
|
+
: []),
|
|
174
|
+
...(runtime.work ? [createListMyWorkTool({ payload, work: runtime.work.options })] : []),
|
|
175
|
+
...(runtime.palette
|
|
176
|
+
? [createSearchContentTool({ payload, sources: runtime.palette.sources })]
|
|
177
|
+
: []),
|
|
178
|
+
];
|
|
179
|
+
if (tools.length > 0) {
|
|
180
|
+
options.mcpTools.add(tools, { serverName: 'editorial' });
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
//# sourceMappingURL=plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/editorial/plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAyB,MAAM,aAAa,CAAA;AAEzE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,yBAAyB,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AAE5F,OAAO,EAAE,uBAAuB,EAAE,qCAAqC,EAAE,MAAM,kBAAkB,CAAA;AACjG,OAAO,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAErF,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AA4C5E,mCAAmC;AACnC,MAAM,CAAC,MAAM,wBAAwB,GAAG,6CAA6C,CAAA;AACrF,MAAM,CAAC,MAAM,0BAA0B,GAAG,+CAA+C,CAAA;AACzF,MAAM,CAAC,MAAM,wBAAwB,GAAG,6CAA6C,CAAA;AACrF,MAAM,CAAC,MAAM,oBAAoB,GAAG,6CAA6C,CAAA;AACjF,MAAM,CAAC,MAAM,gBAAgB,GAAG,yCAAyC,CAAA;AAEzE,SAAS,OAAO,CACd,MAAc,EACd,GAAW,EACX,SAAiB,EACjB,IAAY,EACZ,KAAa;IAEb,OAAO;QACL,GAAG,MAAM;QACT,KAAK,EAAE;YACL,GAAG,MAAM,CAA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AqC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;wBACrF,CAAC,CAAC,EAAE,CAAC;oBACP,GAAG,CAAC,OAAO,CAAC,QAAQ;wBAClB,CAAC,CAAC,CAAC,4BAA4B,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;wBACjF,CAAC,CAAC,EAAE,CAAC;oBACP,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;oBACxF,GAAG,CAAC,OAAO,CAAC,OAAO;wBACjB,CAAC,CAAC,CAAC,uBAAuB,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;wBAC1E,CAAC,CAAC,EAAE,CAAC;iBACR,CAAA;gBACD,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAuC,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC,CAAA;gBAC5F,CAAC;YACH,CAAC;SACF,CAAA;IACH,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relativeTime.d.ts","sourceRoot":"","sources":["../../src/editorial/relativeTime.ts"],"names":[],"mappings":"AAiBA,8DAA8D;AAC9D,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,GAAG,MAAM,CAQ3D"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
"3 hours ago", "in 2 days": for admin views where the question is how long ago
|
|
3
|
+
or how soon, and where an absolute time would be the server's time zone rather
|
|
4
|
+
than the reader's. From forumone-2026's `admin/relativeTime.ts`.
|
|
5
|
+
*/
|
|
6
|
+
const UNITS = [
|
|
7
|
+
['year', 365 * 24 * 60 * 60],
|
|
8
|
+
['month', 30 * 24 * 60 * 60],
|
|
9
|
+
['week', 7 * 24 * 60 * 60],
|
|
10
|
+
['day', 24 * 60 * 60],
|
|
11
|
+
['hour', 60 * 60],
|
|
12
|
+
['minute', 60],
|
|
13
|
+
];
|
|
14
|
+
const format = new Intl.RelativeTimeFormat('en', { numeric: 'auto' });
|
|
15
|
+
/** `iso` relative to `now`, or `''` when it is not a date. */
|
|
16
|
+
export function relativeTime(iso, now) {
|
|
17
|
+
const then = Date.parse(iso);
|
|
18
|
+
if (Number.isNaN(then))
|
|
19
|
+
return '';
|
|
20
|
+
const seconds = Math.round((then - now.getTime()) / 1000);
|
|
21
|
+
for (const [unit, size] of UNITS) {
|
|
22
|
+
if (Math.abs(seconds) >= size)
|
|
23
|
+
return format.format(Math.round(seconds / size), unit);
|
|
24
|
+
}
|
|
25
|
+
return 'just now';
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=relativeTime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relativeTime.js","sourceRoot":"","sources":["../../src/editorial/relativeTime.ts"],"names":[],"mappings":"AAAA;;;;EAIE;AAEF,MAAM,KAAK,GAA4C;IACrD,CAAC,MAAM,EAAE,GAAG,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAC5B,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAC5B,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAC1B,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACrB,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,CAAC;IACjB,CAAC,QAAQ,EAAE,EAAE,CAAC;CACf,CAAA;AAED,MAAM,MAAM,GAAG,IAAI,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAA;AAErE,8DAA8D;AAC9D,MAAM,UAAU,YAAY,CAAC,GAAW,EAAE,GAAS;IACjD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAC5B,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;QAAE,OAAO,EAAE,CAAA;IACjC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;IACzD,KAAK,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC;QACjC,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,IAAI;YAAE,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,IAAI,CAAC,CAAA;IACvF,CAAC;IACD,OAAO,UAAU,CAAA;AACnB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const EDITORIAL_CSS = "\n.tl-editorial__dashboard {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));\n gap: var(--base);\n margin-bottom: calc(var(--base) * 2);\n}\n.tl-editorial__panel {\n border: 1px solid var(--theme-elevation-150);\n border-radius: var(--style-radius-m);\n padding: var(--base);\n}\n.tl-editorial__panel h2 {\n margin: 0 0 calc(var(--base) * 0.5);\n font-size: 1.125rem;\n}\n.tl-editorial__list {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n.tl-editorial__row {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n gap: 0 var(--base);\n padding: calc(var(--base) * 0.4) 0;\n border-top: 1px solid var(--theme-elevation-100);\n}\n.tl-editorial__row:first-child {\n border-top: 0;\n}\n.tl-editorial__meta,\n.tl-editorial__empty {\n color: var(--theme-elevation-500);\n}\n.tl-editorial__empty {\n margin: 0;\n}\n.tl-editorial__more {\n margin: calc(var(--base) * 0.5) 0 0;\n}\n.tl-health {\n display: grid;\n gap: var(--base);\n padding-bottom: calc(var(--base) * 3);\n}\n.tl-health h1 {\n margin: calc(var(--base) * 1.5) 0 0;\n}\n.tl-health__lede {\n margin: 0;\n color: var(--theme-elevation-500);\n}\n.tl-health__group h3 {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n gap: 0 var(--base);\n margin: var(--base) 0 calc(var(--base) * 0.25);\n font-size: 1rem;\n}\n.tl-health__group h3 a {\n font-weight: normal;\n}\n.tl-calendar {\n padding-bottom: calc(var(--base) * 3);\n}\n.tl-calendar__header {\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n justify-content: space-between;\n gap: calc(var(--base) * 0.5) var(--base);\n margin-top: calc(var(--base) * 1.5);\n}\n.tl-calendar__header h1 {\n margin: 0;\n}\n.tl-calendar__controls {\n display: flex;\n flex-wrap: wrap;\n gap: calc(var(--base) * 0.75);\n}\n.tl-calendar__legend {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: calc(var(--base) * 0.5);\n margin: var(--base) 0;\n}\n.tl-calendar__grid {\n width: 100%;\n border-collapse: collapse;\n table-layout: fixed;\n}\n.tl-calendar__caption,\n.tl-calendar__kind {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n.tl-calendar__grid th {\n padding: calc(var(--base) * 0.25);\n color: var(--theme-elevation-500);\n font-weight: normal;\n text-align: left;\n}\n.tl-calendar__day {\n height: 7.5rem;\n padding: calc(var(--base) * 0.25);\n border: 1px solid var(--theme-elevation-150);\n vertical-align: top;\n}\n.tl-calendar__day--outside {\n background: var(--theme-elevation-50);\n color: var(--theme-elevation-400);\n}\n.tl-calendar__day--today .tl-calendar__date {\n border-radius: var(--style-radius-s);\n padding: 0 0.35em;\n background: var(--theme-text);\n color: var(--theme-bg);\n}\n.tl-calendar__date {\n display: inline-block;\n margin-bottom: 0.25rem;\n font-size: 0.8125rem;\n}\n/* Kinds differ by border style as well as colour, so the grid does not rely on colour alone. */\n.tl-calendar__item {\n display: block;\n margin-top: 2px;\n padding: 1px 0.4em;\n overflow: hidden;\n border: 1px solid transparent;\n border-left-width: 3px;\n border-radius: var(--style-radius-s);\n color: var(--theme-text);\n font-size: 0.8125rem;\n text-decoration: none;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.tl-calendar__legend .tl-calendar__item {\n display: inline-block;\n margin: 0;\n}\n.tl-calendar__item--scheduled {\n border-color: var(--theme-warning-500);\n border-style: dashed;\n background: var(--theme-warning-50);\n}\n.tl-calendar__item--published {\n border-color: var(--theme-success-500);\n background: var(--theme-success-50);\n}\n.tl-calendar__item--event {\n border-color: var(--theme-elevation-800);\n border-left-width: 6px;\n background: var(--theme-elevation-100);\n}\n.tl-calendar__more {\n display: block;\n margin-top: 2px;\n font-size: 0.75rem;\n}\n@media (max-width: 768px) {\n .tl-calendar__day {\n height: 4.5rem;\n }\n .tl-calendar__item {\n font-size: 0;\n height: 0.5rem;\n padding: 0;\n }\n}\n";
|
|
2
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/editorial/styles.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,aAAa,okIAoLzB,CAAA"}
|