@forumone/throughline 0.0.0-stage → 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 +351 -2
- 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 +180 -3
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { isDraftWrite } from '../hooks/draft-writes.js';
|
|
2
|
+
import { defaultCacheTags } from '../../cache-tags.js';
|
|
3
|
+
import { IMMEDIATE, isOutsideNextRequest, loadNextCache } from './next-revalidate.js';
|
|
4
|
+
/**
|
|
5
|
+
* Builds the tag-revalidation hooks for one tag scheme.
|
|
6
|
+
*
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { createTagRevalidationHooks } from '@forumone/throughline/publishing'
|
|
9
|
+
* import { cacheTags } from './lib/cache-tags'
|
|
10
|
+
*
|
|
11
|
+
* const revalidation = createTagRevalidationHooks({ cacheTags })
|
|
12
|
+
*
|
|
13
|
+
* const Pages: CollectionConfig = {
|
|
14
|
+
* slug: 'pages',
|
|
15
|
+
* hooks: {
|
|
16
|
+
* afterChange: [revalidation.afterCollectionChange()],
|
|
17
|
+
* afterDelete: [revalidation.afterCollectionDelete()],
|
|
18
|
+
* },
|
|
19
|
+
* ...
|
|
20
|
+
* }
|
|
21
|
+
* const Navigation: GlobalConfig = {
|
|
22
|
+
* slug: 'navigation',
|
|
23
|
+
* hooks: { afterChange: [revalidation.afterGlobalChange()] },
|
|
24
|
+
* ...
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* A hook never throws. Failing it would roll back the editor's save over a
|
|
29
|
+
* cache miss. A failure is logged at `error` instead, and the one expected
|
|
30
|
+
* failure — running outside a Next request, as seeds, migrations and the CLI
|
|
31
|
+
* do — at `debug`.
|
|
32
|
+
*/
|
|
33
|
+
export function createTagRevalidationHooks(options = {}) {
|
|
34
|
+
const cacheTags = options.cacheTags ?? defaultCacheTags;
|
|
35
|
+
const revalidateTag = options.revalidateTag ?? nextRevalidateTag;
|
|
36
|
+
async function drop(tags, req) {
|
|
37
|
+
for (const tag of new Set(tags)) {
|
|
38
|
+
try {
|
|
39
|
+
await revalidateTag(tag);
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
/*
|
|
43
|
+
Outside Next there is no server to be stale, so that one is noise.
|
|
44
|
+
Anything else means the cache did *not* clear while a server was
|
|
45
|
+
running — a real fault, so it is logged loudly. It is still not
|
|
46
|
+
thrown: an `afterChange` that throws fails the editor's save.
|
|
47
|
+
*/
|
|
48
|
+
if (isOutsideNextRequest(error)) {
|
|
49
|
+
req.payload.logger.debug({ tag }, 'Skipped cache revalidation: not inside a Next request.');
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
req.payload.logger.error({ err: error, tag }, 'Failed to revalidate a cache tag; the cached copy is stale.');
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
afterCollectionChange(hookOptions = {}) {
|
|
59
|
+
const select = hookOptions.tags ?? ((t, slug) => [t.collection(slug)]);
|
|
60
|
+
const operations = new Set(hookOptions.operations ?? ['create', 'update']);
|
|
61
|
+
return async ({ collection, doc, operation, req }) => {
|
|
62
|
+
if (!operations.has(operation))
|
|
63
|
+
return doc;
|
|
64
|
+
if (isUnpublishedWrite(req, collection.slug, doc, operation))
|
|
65
|
+
return doc;
|
|
66
|
+
await drop(select(cacheTags, collection.slug), req);
|
|
67
|
+
return doc;
|
|
68
|
+
};
|
|
69
|
+
},
|
|
70
|
+
afterCollectionDelete(hookOptions = {}) {
|
|
71
|
+
const select = hookOptions.tags ?? ((t, slug) => [t.collection(slug)]);
|
|
72
|
+
return async ({ collection, doc, req }) => {
|
|
73
|
+
await drop(select(cacheTags, collection.slug), req);
|
|
74
|
+
return doc;
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
afterGlobalChange(hookOptions = {}) {
|
|
78
|
+
const select = hookOptions.tags ?? ((t, slug) => [t.global(slug)]);
|
|
79
|
+
return async ({ doc, global, req }) => {
|
|
80
|
+
await drop(select(cacheTags, global.slug), req);
|
|
81
|
+
return doc;
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
/*
|
|
87
|
+
A write the public cannot see changes nothing cached, so there is nothing to
|
|
88
|
+
drop — and with autosave on, "a draft save" is every few seconds of an open
|
|
89
|
+
editor. Without this, one editing session evicts the tag over and over and every
|
|
90
|
+
request in between pays a cold read for content that did not change.
|
|
91
|
+
|
|
92
|
+
`isDraftWrite` is publishing's own predicate, the one its trust boundary uses.
|
|
93
|
+
An `afterChange` hook cannot answer this for itself: Payload sets
|
|
94
|
+
`data._status = 'draft'` on any `draft: true` update before hooks run, and
|
|
95
|
+
`previousDoc` is the latest *version*, so a draft save of a published document
|
|
96
|
+
and an unpublish of it look the same from in here. The publishing plugin records
|
|
97
|
+
the operation's real `draft` argument in `beforeOperation`. That is recorded for
|
|
98
|
+
the collections the plugin manages; on any other collection `isDraftWrite` is
|
|
99
|
+
false and the hook drops, which is the safe direction.
|
|
100
|
+
|
|
101
|
+
An unpublish is not a draft write and still drops — it is the case that would
|
|
102
|
+
otherwise leave a cached link pointing at a 404.
|
|
103
|
+
|
|
104
|
+
A *create* that lands as a draft is unambiguous on its own: nothing published
|
|
105
|
+
existed a moment ago, so nothing cached can be about it.
|
|
106
|
+
*/
|
|
107
|
+
function isUnpublishedWrite(req, collectionSlug, doc, operation) {
|
|
108
|
+
if (operation === 'create')
|
|
109
|
+
return doc?._status === 'draft';
|
|
110
|
+
return isDraftWrite(req, collectionSlug, doc?.id);
|
|
111
|
+
}
|
|
112
|
+
async function nextRevalidateTag(tag) {
|
|
113
|
+
const { revalidateTag } = await loadNextCache();
|
|
114
|
+
revalidateTag(tag, IMMEDIATE);
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=revalidate-tag-hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revalidate-tag-hooks.js","sourceRoot":"","sources":["../../../src/publishing/jobs/revalidate-tag-hooks.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,EAAkB,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtE,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAoErF;;;;;;;;;;;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,CACzB,GAAmB,EACnB,cAAsB,EACtB,GAAoD,EACpD,SAA8B;IAE9B,IAAI,SAAS,KAAK,QAAQ;QAAE,OAAO,GAAG,EAAE,OAAO,KAAK,OAAO,CAAA;IAC3D,OAAO,YAAY,CAAC,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,EAAE,CAAC,CAAA;AACnD,CAAC;AAED,KAAK,UAAU,iBAAiB,CAAC,GAAW;IAC1C,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,aAAa,EAAE,CAAA;IAC/C,aAAa,CAAC,GAAG,EAAE,SAAS,CAAC,CAAA;AAC/B,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { McpToolCollector } from '../mcp/collector.js';
|
|
2
|
+
import type { Inngest } from 'inngest';
|
|
3
|
+
import type { BaseCorePluginOptions } from '../plugin-contract/index.js';
|
|
4
|
+
export interface PublishableCollection {
|
|
5
|
+
/** Slug of the collection that can be published through this server. */
|
|
6
|
+
slug: string;
|
|
7
|
+
/** Field name on the document holding composition blocks. Default: `'layout'`. */
|
|
8
|
+
layoutField?: string;
|
|
9
|
+
/** Field name for the SEO group used by required-field checks. Default: `'seo'`. */
|
|
10
|
+
seoField?: string;
|
|
11
|
+
/** Field name for the policy group (`requiresApproval`, `embargoedUntil`). Default: `'policy'`. */
|
|
12
|
+
policyField?: string;
|
|
13
|
+
/** Field name for the slug. Default: `'slug'`. */
|
|
14
|
+
slugField?: string;
|
|
15
|
+
/** Field name for the publish timestamp. Default: `'publishedAt'`. */
|
|
16
|
+
publishedAtField?: string;
|
|
17
|
+
/** Field name for a future scheduled publish time. Default: `'scheduledPublishAt'`. */
|
|
18
|
+
scheduledPublishField?: string;
|
|
19
|
+
/** Per-collection required fields beyond the built-in SEO/slug checks. */
|
|
20
|
+
requiredFields?: Array<{
|
|
21
|
+
path: string;
|
|
22
|
+
message: string;
|
|
23
|
+
}>;
|
|
24
|
+
}
|
|
25
|
+
export interface AccessibilityIssue {
|
|
26
|
+
field?: string | undefined;
|
|
27
|
+
message: string;
|
|
28
|
+
severity: 'error' | 'warning';
|
|
29
|
+
}
|
|
30
|
+
export interface AccessibilityCheck {
|
|
31
|
+
name: string;
|
|
32
|
+
run: (doc: Record<string, unknown>, collection: ResolvedCollection) => Promise<AccessibilityIssue[]> | AccessibilityIssue[];
|
|
33
|
+
}
|
|
34
|
+
export interface ActiveApproval {
|
|
35
|
+
id: string;
|
|
36
|
+
grantedAt: string;
|
|
37
|
+
grantedBy: string;
|
|
38
|
+
version: string;
|
|
39
|
+
}
|
|
40
|
+
export interface ApprovalResolver {
|
|
41
|
+
/** Returns the active granted approval for this document version, or `null`. */
|
|
42
|
+
getActiveApproval: (collection: string, id: string, version: string) => Promise<ActiveApproval | null>;
|
|
43
|
+
}
|
|
44
|
+
export interface PublishingPluginOptions extends BaseCorePluginOptions {
|
|
45
|
+
/** Required: collections that can be published through this server. */
|
|
46
|
+
collections: PublishableCollection[];
|
|
47
|
+
/** Optional: extra accessibility checks beyond the built-ins. */
|
|
48
|
+
accessibilityChecks?: AccessibilityCheck[];
|
|
49
|
+
/**
|
|
50
|
+
* Optional: names of built-in accessibility checks to skip —
|
|
51
|
+
* `'alt-text'`, `'heading-hierarchy'`, `'link-labels'`.
|
|
52
|
+
*
|
|
53
|
+
* `accessibilityChecks` only appends, so without this a built-in that
|
|
54
|
+
* misfires on a host's content shape blocks every publish until the
|
|
55
|
+
* plugin ships a fix. Switch one off here and supply your own.
|
|
56
|
+
*/
|
|
57
|
+
disableAccessibilityChecks?: string[];
|
|
58
|
+
/** Optional: resolver consulted when a document's policy requires approval. */
|
|
59
|
+
approvalResolver?: ApprovalResolver;
|
|
60
|
+
/** Required: Inngest client used to fire publishing events. */
|
|
61
|
+
inngest: Inngest;
|
|
62
|
+
/**
|
|
63
|
+
* Whether to install the plugin's Publish / Unpublish controls on each
|
|
64
|
+
* configured collection. Default: `true`.
|
|
65
|
+
*
|
|
66
|
+
* Payload's native buttons write `_status` directly, which the plugin's
|
|
67
|
+
* trust boundary rejects — so with this off, the admin has no working
|
|
68
|
+
* publish path until the host supplies its own control (see
|
|
69
|
+
* `publishDocument`).
|
|
70
|
+
*/
|
|
71
|
+
adminComponents?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Where to put this server's MCP tools so Payload's own MCP plugin can serve
|
|
74
|
+
* them.
|
|
75
|
+
*
|
|
76
|
+
* Payload ships `@payloadcms/plugin-mcp`, which takes its tools as a config
|
|
77
|
+
* option — and every tool here is built at `onInit`, because every one closes
|
|
78
|
+
* over `payload`. `createMcpToolCollector()` from `@forumone/throughline`
|
|
79
|
+
* bridges that: the host hands the collector's array to `mcpPlugin` at config
|
|
80
|
+
* time and this plugin fills it at init, which is before any request and
|
|
81
|
+
* therefore before the plugin reads it.
|
|
82
|
+
*
|
|
83
|
+
* Omit it and nothing changes — this server keeps its own `/mcp` endpoint,
|
|
84
|
+
* which is what lets a host move one server at a time.
|
|
85
|
+
*/
|
|
86
|
+
mcpTools?: McpToolCollector;
|
|
87
|
+
}
|
|
88
|
+
export type ResolvedCollection = Required<Omit<PublishableCollection, 'requiredFields'>> & Pick<PublishableCollection, 'requiredFields'>;
|
|
89
|
+
/**
|
|
90
|
+
* Validates plugin options at load time. Throws with targeted messages on
|
|
91
|
+
* obvious misconfiguration so deploys fail fast rather than the first publish
|
|
92
|
+
* call returning 503.
|
|
93
|
+
*/
|
|
94
|
+
export declare function validateOptions(options: PublishingPluginOptions): PublishingPluginOptions;
|
|
95
|
+
/**
|
|
96
|
+
* Returns the collection config with all field-name defaults filled in.
|
|
97
|
+
* Throws when the slug isn't registered as publishable.
|
|
98
|
+
*/
|
|
99
|
+
export declare function resolveCollection(options: PublishingPluginOptions, slug: string): ResolvedCollection;
|
|
100
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/publishing/options.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,E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C/B,gFAAgF;IAChF,iBAAiB,EAAE,CACjB,UAAU,EAAE,MAAM,EAClB,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,KACZ,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;CACpC;AAED,MAAM,WAAW,uBAAwB,SAAQ,qBAAqB;IACpE,uEAAuE;IACvE,WAAW,EAAE,qBAAqB,EAAE,CAAA;IACpC,iEAAiE;IACjE,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,CAAA;IAC1C;;;;;;;OAOG;IACH,0BAA0B,CAAC,EAAE,MAAM,EAAE,CAAA;IACrC,+EAA+E;IAC/E,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;IACnC,+DAA+D;IAC/D,OAAO,EAAE,OAAO,CAAA;IAChB;;;;;;;;OAQG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IAEzB;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAA;CAC5B;AAED,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAI,CAAC,qBAAqB,EAAE,gBAAgB,CAAC,CAAC,GACtF,IAAI,CAAC,qBAAqB,EAAE,gBAAgB,CAAC,CAAA;AAe/C;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,uBAAuB,GAAG,uBAAuB,CAezF;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,uBAAuB,EAChC,IAAI,EAAE,MAAM,GACX,kBAAkB,CAiBpB"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { formatZodIssues } from '../utils/zod-issues.js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
const PublishableCollectionSchema = z.object({
|
|
4
|
+
slug: z.string().min(1),
|
|
5
|
+
layoutField: z.string().optional(),
|
|
6
|
+
seoField: z.string().optional(),
|
|
7
|
+
policyField: z.string().optional(),
|
|
8
|
+
slugField: z.string().optional(),
|
|
9
|
+
publishedAtField: z.string().optional(),
|
|
10
|
+
scheduledPublishField: z.string().optional(),
|
|
11
|
+
requiredFields: z
|
|
12
|
+
.array(z.object({ path: z.string().min(1), message: z.string().min(1) }))
|
|
13
|
+
.optional(),
|
|
14
|
+
});
|
|
15
|
+
/**
|
|
16
|
+
* Validates plugin options at load time. Throws with targeted messages on
|
|
17
|
+
* obvious misconfiguration so deploys fail fast rather than the first publish
|
|
18
|
+
* call returning 503.
|
|
19
|
+
*/
|
|
20
|
+
export function validateOptions(options) {
|
|
21
|
+
if (!options.collections || options.collections.length === 0) {
|
|
22
|
+
throw new Error('publishingPlugin requires at least one collection in options.collections');
|
|
23
|
+
}
|
|
24
|
+
if (!options.inngest) {
|
|
25
|
+
throw new Error('publishingPlugin requires an Inngest client in options.inngest');
|
|
26
|
+
}
|
|
27
|
+
for (const collection of options.collections) {
|
|
28
|
+
const result = PublishableCollectionSchema.safeParse(collection);
|
|
29
|
+
if (!result.success) {
|
|
30
|
+
const issues = formatZodIssues(result.error);
|
|
31
|
+
throw new Error(`Invalid collection config:\n${issues}`);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return options;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Returns the collection config with all field-name defaults filled in.
|
|
38
|
+
* Throws when the slug isn't registered as publishable.
|
|
39
|
+
*/
|
|
40
|
+
export function resolveCollection(options, slug) {
|
|
41
|
+
const config = options.collections.find((c) => c.slug === slug);
|
|
42
|
+
if (!config) {
|
|
43
|
+
throw new Error(`Collection "${slug}" is not registered as publishable. Add it to publishingPlugin's collections option.`);
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
slug: config.slug,
|
|
47
|
+
layoutField: config.layoutField ?? 'layout',
|
|
48
|
+
seoField: config.seoField ?? 'seo',
|
|
49
|
+
policyField: config.policyField ?? 'policy',
|
|
50
|
+
slugField: config.slugField ?? 'slug',
|
|
51
|
+
publishedAtField: config.publishedAtField ?? 'publishedAt',
|
|
52
|
+
scheduledPublishField: config.scheduledPublishField ?? 'scheduledPublishAt',
|
|
53
|
+
...(config.requiredFields ? { requiredFields: config.requiredFields } : {}),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/publishing/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAGxD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAqGvB,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5C,cAAc,EAAE,CAAC;SACd,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;SACxE,QAAQ,EAAE;CACd,CAAC,CAAA;AAEF;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,OAAgC;IAC9D,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,OAAO,CAAC,WAAW,CAAC,MA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QAC3E,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,MAAM,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC5E,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { PipelineContext, PipelineResult } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Runs the full publish pipeline. Stops at the first failing step and
|
|
4
|
+
* returns its diagnostic; otherwise records success with the publish
|
|
5
|
+
* timestamp the execute step set.
|
|
6
|
+
*/
|
|
7
|
+
export declare function runPublishPipeline(context: PipelineContext): Promise<PipelineResult>;
|
|
8
|
+
/**
|
|
9
|
+
* Runs every preflight step (everything but `execute`). Used by
|
|
10
|
+
* `get_publish_status` to answer "would this publish succeed?" without
|
|
11
|
+
* mutating anything.
|
|
12
|
+
*
|
|
13
|
+
* Warnings are deliberately dropped, as they always were: this answers a
|
|
14
|
+
* question about whether a publish would be *blocked*, and a warning does not
|
|
15
|
+
* block. Surfacing them here would be a change to what `get_publish_status`
|
|
16
|
+
* means, not a tidy-up.
|
|
17
|
+
*/
|
|
18
|
+
export declare function runPreflightPipeline(context: PipelineContext): Promise<PipelineResult>;
|
|
19
|
+
export type { PipelineContext, PipelineResult, PipelineStep, PipelineStepResult } from './types.js';
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/publishing/pipeline/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAgB,MAAM,YAAY,CAAA;AAoE/E;;;;GAIG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CAO1F;AAED;;;;;;;;;GASG;AACH,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CAG5F;AAED,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { existStep } from './steps/exist.js';
|
|
2
|
+
import { compositionStep } from './steps/composition.js';
|
|
3
|
+
import { accessibilityStep } from './steps/accessibility.js';
|
|
4
|
+
import { requiredFieldsStep } from './steps/required-fields.js';
|
|
5
|
+
import { embargoStep } from './steps/embargo.js';
|
|
6
|
+
import { approvalStep } from './steps/approval.js';
|
|
7
|
+
import { executeStep } from './steps/execute.js';
|
|
8
|
+
const PREFLIGHT_STEPS = [
|
|
9
|
+
{ name: 'exist', step: existStep },
|
|
10
|
+
{ name: 'composition', step: compositionStep },
|
|
11
|
+
{ name: 'accessibility', step: accessibilityStep },
|
|
12
|
+
{ name: 'required-fields', step: requiredFieldsStep },
|
|
13
|
+
{ name: 'embargo', step: embargoStep },
|
|
14
|
+
{ name: 'approval', step: approvalStep },
|
|
15
|
+
];
|
|
16
|
+
const ORDERED_STEPS = [
|
|
17
|
+
...PREFLIGHT_STEPS,
|
|
18
|
+
{ name: 'execute', step: executeStep },
|
|
19
|
+
];
|
|
20
|
+
/**
|
|
21
|
+
* Walks a list of steps, stopping at the first that does not pass.
|
|
22
|
+
*
|
|
23
|
+
* The failure envelope — `failedAt` plus whichever of `reason`, `code`,
|
|
24
|
+
* `issues` and `suggestion` the step supplied — was written out twice, once per
|
|
25
|
+
* runner, and a field added to one would have been missed by the other. It is
|
|
26
|
+
* written here once.
|
|
27
|
+
*
|
|
28
|
+
* Warnings are collected but not returned in the envelope: what to do with them
|
|
29
|
+
* differs between the two callers, and that difference is the only reason there
|
|
30
|
+
* are still two.
|
|
31
|
+
*
|
|
32
|
+
* One thing worth knowing before adding a step: a warning cannot currently reach
|
|
33
|
+
* a *failure* envelope. `execute` is the only step that warns, it runs last, and
|
|
34
|
+
* its two failure returns carry none — so `runPublishPipeline` spreading
|
|
35
|
+
* warnings onto a failure is unreachable today. It is kept because the moment a
|
|
36
|
+
* step both warns and fails, or an earlier step learns to warn, dropping them
|
|
37
|
+
* would be silent. That is also why there is no test for it: the pipeline has no
|
|
38
|
+
* way to produce the case.
|
|
39
|
+
*/
|
|
40
|
+
async function runSteps(context, steps) {
|
|
41
|
+
const warnings = [];
|
|
42
|
+
for (const { name, step } of steps) {
|
|
43
|
+
const result = await step(context);
|
|
44
|
+
if (result.warnings)
|
|
45
|
+
warnings.push(...result.warnings);
|
|
46
|
+
if (result.pass)
|
|
47
|
+
continue;
|
|
48
|
+
return {
|
|
49
|
+
failure: {
|
|
50
|
+
success: false,
|
|
51
|
+
failedAt: name,
|
|
52
|
+
...(result.reason ? { reason: result.reason } : {}),
|
|
53
|
+
...(result.code ? { code: result.code } : {}),
|
|
54
|
+
...(result.issues ? { issues: result.issues } : {}),
|
|
55
|
+
...(result.suggestion ? { suggestion: result.suggestion } : {}),
|
|
56
|
+
},
|
|
57
|
+
warnings,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
return { warnings };
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Runs the full publish pipeline. Stops at the first failing step and
|
|
64
|
+
* returns its diagnostic; otherwise records success with the publish
|
|
65
|
+
* timestamp the execute step set.
|
|
66
|
+
*/
|
|
67
|
+
export async function runPublishPipeline(context) {
|
|
68
|
+
const { failure, warnings } = await runSteps(context, ORDERED_STEPS);
|
|
69
|
+
const carried = warnings.length ? { warnings } : {};
|
|
70
|
+
if (failure)
|
|
71
|
+
return { ...failure, ...carried };
|
|
72
|
+
return { success: true, publishedAt: new Date().toISOString(), ...carried };
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Runs every preflight step (everything but `execute`). Used by
|
|
76
|
+
* `get_publish_status` to answer "would this publish succeed?" without
|
|
77
|
+
* mutating anything.
|
|
78
|
+
*
|
|
79
|
+
* Warnings are deliberately dropped, as they always were: this answers a
|
|
80
|
+
* question about whether a publish would be *blocked*, and a warning does not
|
|
81
|
+
* block. Surfacing them here would be a change to what `get_publish_status`
|
|
82
|
+
* means, not a tidy-up.
|
|
83
|
+
*/
|
|
84
|
+
export async function runPreflightPipeline(context) {
|
|
85
|
+
const { failure } = await runSteps(context, PREFLIGHT_STEPS);
|
|
86
|
+
return failure ?? { success: true };
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/publishing/pipeline/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAQhD,MAAM,eAAe,GAAkB;IACrC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE;IAClC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,eAAe,EAAE;IAC9C,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,iBAAiB,EAAE;IAClD,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,kBAAkB,EAAE;IACrD,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE;IACtC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE;CACzC,CAAA;AAED,MAAM,aAAa,GAAkB;IACnC,GAAG,eAAe;IAClB,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE;CAC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,aAAa,CAAC,CAAA;IACpE,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;IAEnD,IAAI,OAAO;QAAE,OAAO,EAAE,GAAG,OAAO,EAAE,GAAG,OAAO,EAAE,CAAA;IAE9C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,EAAE,GAAG,OAAO,EAAE,CAAA;AAC7E,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,OAAwB;IACjE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC,CAAA;IAC5D,OAAO,OAAO,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;AACrC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PipelineStep } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Runs every built-in accessibility check followed by user-supplied ones.
|
|
4
|
+
* Errors block publish; warnings are surfaced on the result but don't fail
|
|
5
|
+
* the step. (Warning-only behavior is currently unused by the built-in
|
|
6
|
+
* checks but reserved for richer per-client checks.)
|
|
7
|
+
*
|
|
8
|
+
* Built-ins named in `disableAccessibilityChecks` are skipped, so a host
|
|
9
|
+
* whose content shape trips one can replace it rather than wait for a
|
|
10
|
+
* plugin release.
|
|
11
|
+
*/
|
|
12
|
+
export declare const accessibilityStep: PipelineStep;
|
|
13
|
+
//# sourceMappingURL=accessibility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accessibility.d.ts","sourceRoot":"","sources":["../../../../src/publishing/pipeline/steps/accessibility.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,aAAa,CAAA;AAG9D;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,EAAE,YA4B/B,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { BUILT_IN_ACCESSIBILITY_CHECKS } from '../../checks/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* Runs every built-in accessibility check followed by user-supplied ones.
|
|
4
|
+
* Errors block publish; warnings are surfaced on the result but don't fail
|
|
5
|
+
* the step. (Warning-only behavior is currently unused by the built-in
|
|
6
|
+
* checks but reserved for richer per-client checks.)
|
|
7
|
+
*
|
|
8
|
+
* Built-ins named in `disableAccessibilityChecks` are skipped, so a host
|
|
9
|
+
* whose content shape trips one can replace it rather than wait for a
|
|
10
|
+
* plugin release.
|
|
11
|
+
*/
|
|
12
|
+
export const accessibilityStep = async (ctx) => {
|
|
13
|
+
const disabled = new Set(ctx.options.disableAccessibilityChecks ?? []);
|
|
14
|
+
const checks = [
|
|
15
|
+
...BUILT_IN_ACCESSIBILITY_CHECKS.filter((check) => !disabled.has(check.name)),
|
|
16
|
+
...(ctx.options.accessibilityChecks ?? []),
|
|
17
|
+
];
|
|
18
|
+
const allIssues = [];
|
|
19
|
+
for (const check of checks) {
|
|
20
|
+
const issues = await check.run(ctx.document, ctx.collection);
|
|
21
|
+
for (const issue of issues) {
|
|
22
|
+
allIssues.push({ ...issue, rule: check.name });
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
const errors = allIssues.filter((i) => i.severity === 'error');
|
|
26
|
+
if (errors.length > 0) {
|
|
27
|
+
return {
|
|
28
|
+
pass: false,
|
|
29
|
+
code: 'accessibility-errors',
|
|
30
|
+
reason: `${errors.length} accessibility issue${errors.length === 1 ? '' : 's'}`,
|
|
31
|
+
issues: errors,
|
|
32
|
+
suggestion: 'Every image needs alt text. Every link needs a label. Heading levels must not skip. Fix these before publishing.',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
return { pass: true };
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=accessibility.js.map
|
|
@@ -0,0 +1 @@
|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AAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE;YAC/E,MAAM,EAAE,MAAM;YACd,UAAU,EACR,kHAAkH;SACrH,CAAA;IACH,CAAC;IAED,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAA;AACvB,CAAC,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PipelineStep } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Gates publish on a granted approval when the document's policy demands
|
|
4
|
+
* one. Fails closed: if `policy.requiresApproval` is true but no resolver
|
|
5
|
+
* is available (neither in options nor attached via the approvals plugin),
|
|
6
|
+
* the step blocks the publish.
|
|
7
|
+
*
|
|
8
|
+
* Resolution order:
|
|
9
|
+
* 1. `options.approvalResolver` (explicit wiring)
|
|
10
|
+
* 2. The resolver attached on the Payload instance via
|
|
11
|
+
* `APPROVALS_RESOLVER_SYMBOL` by the approvals plugin
|
|
12
|
+
*/
|
|
13
|
+
export declare const approvalStep: PipelineStep;
|
|
14
|
+
//# sourceMappingURL=approval.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval.d.ts","sourceRoot":"","sources":["../../../../src/publishing/pipeline/steps/approval.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAI/C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,EAAE,YA+C1B,CAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { documentContentHash } from '../../../utils/content-hash.js';
|
|
2
|
+
import { APPROVALS_RESOLVER_SYMBOL } from '../../../approvals/symbol.js';
|
|
3
|
+
/**
|
|
4
|
+
* Gates publish on a granted approval when the document's policy demands
|
|
5
|
+
* one. Fails closed: if `policy.requiresApproval` is true but no resolver
|
|
6
|
+
* is available (neither in options nor attached via the approvals plugin),
|
|
7
|
+
* the step blocks the publish.
|
|
8
|
+
*
|
|
9
|
+
* Resolution order:
|
|
10
|
+
* 1. `options.approvalResolver` (explicit wiring)
|
|
11
|
+
* 2. The resolver attached on the Payload instance via
|
|
12
|
+
* `APPROVALS_RESOLVER_SYMBOL` by the approvals plugin
|
|
13
|
+
*/
|
|
14
|
+
export const approvalStep = async (ctx) => {
|
|
15
|
+
const policy = ctx.document[ctx.collection.policyField];
|
|
16
|
+
if (!policy?.['requiresApproval'])
|
|
17
|
+
return { pass: true };
|
|
18
|
+
const resolver = ctx.options.approvalResolver ?? lookupResolverOnPayload(ctx.payload);
|
|
19
|
+
if (!resolver) {
|
|
20
|
+
return {
|
|
21
|
+
pass: false,
|
|
22
|
+
code: 'approval-resolver-missing',
|
|
23
|
+
reason: 'Document requires approval but no approval resolver is configured',
|
|
24
|
+
suggestion: 'Register approvalsPlugin in your Payload config (it attaches the resolver automatically) or pass an explicit `approvalResolver` to publishingPlugin.',
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
/*
|
|
28
|
+
The approval binds to the document's content, not to its `updatedAt`. The
|
|
29
|
+
approvals plugin's `request_approval` computes this same hash, with this
|
|
30
|
+
same function, over a document loaded by the same `findByID` call — so an
|
|
31
|
+
approval granted on what an approver read still resolves after a save that
|
|
32
|
+
changed nothing, and does not resolve after one that changed something.
|
|
33
|
+
|
|
34
|
+
Binding to `updatedAt` made that a property of a timestamp rather than a
|
|
35
|
+
rule: any save at all invalidated a pending approval, which is also why
|
|
36
|
+
autosave and approvals could not both be on. See #341.
|
|
37
|
+
*/
|
|
38
|
+
const versionId = await documentContentHash(ctx.document);
|
|
39
|
+
const approval = await resolver.getActiveApproval(ctx.collection.slug, ctx.documentId, versionId);
|
|
40
|
+
if (!approval) {
|
|
41
|
+
return {
|
|
42
|
+
pass: false,
|
|
43
|
+
code: 'approval-required',
|
|
44
|
+
reason: 'This document requires approval and no granted approval exists for the current version',
|
|
45
|
+
suggestion: 'Use the Approvals Server to request approval. Once granted, publish will succeed.',
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
return { pass: true };
|
|
49
|
+
};
|
|
50
|
+
function lookupResolverOnPayload(payload) {
|
|
51
|
+
const value = payload[APPROVALS_RESOLVER_SYMBOL];
|
|
52
|
+
return typeof value === 'object' && value !== null ? value : undefined;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=approval.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval.js","sourceRoot":"","sources":["../../../../src/publishing/pipeline/steps/approval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AAGpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAA;AAGxE;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,YAAY,GAAiB,KAAK,EAAE,GAAG,EAAE,EAAE;IACtD,MAAM,MAAM,GAAG,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,WAAW,CAEzC,CAAA;IACb,IAAI,CAAC,MAAM,EAAE,CAAC,kBAAkB,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAA;IAExD,MAAM,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAC,gBAAgB,IAAI,uBAAuB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IACrF,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO;YACL,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,2BAA2B;YACjC,MAAM,EAAE,mEAAmE;YAC3E,UAAU,EACR,sJAAsJ;SACzJ,CAAA;IACH,CAAC;IAED;;;;;;;;;;MAUE;IACF,MAAM,SAAS,GAAG,MAAM,mBAAmB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;IACzD,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,iBAAiB,CAC/C,GAAG,CAAC,UAAU,CAAC,IAAI,EACnB,GAAG,CAAC,UAAU,EACd,SAAS,CACV,CAAA;IAED,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO;YACL,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,mBAAmB;YACzB,MAAM,EACJ,wFAAwF;YAC1F,UAAU,EACR,mFAAmF;SACtF,CAAA;IACH,CAAC;IAED,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAA;AACvB,CAAC,CAAA;AAED,SAAS,uBAAuB,CAAC,OAAe;IAC9C,MAAM,KAAK,GAAI,OAAmC,CAAC,yBAAyB,CAAC,CAAA;IAC7E,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAE,KAA0B,CAAC,CAAC,CAAC,SAAS,CAAA;AAC9F,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PipelineStep } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Symbol the Component Server's plugin (C5) attaches its composition
|
|
4
|
+
* validator to. Keep in sync with the components package.
|
|
5
|
+
*/
|
|
6
|
+
export declare const COMPONENTS_VALIDATOR_SYMBOL: unique symbol;
|
|
7
|
+
/**
|
|
8
|
+
* Validates a document's layout blocks via the Component Server's validator
|
|
9
|
+
* (attached to the Payload instance by `componentsPlugin`'s `onInit`). Empty
|
|
10
|
+
* layouts pass automatically. Composition warnings don't block publish; only
|
|
11
|
+
* errors do.
|
|
12
|
+
*/
|
|
13
|
+
export declare const compositionStep: PipelineStep;
|
|
14
|
+
//# sourceMappingURL=composition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composition.d.ts","sourceRoot":"","sources":["../../../../src/publishing/pipeline/steps/composition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,aAAa,CAAA;AAE9D;;;GAGG;AACH,eAAO,MAAM,2BAA2B,eAEvC,CAAA;AAqBD;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,YA2D7B,CAAA"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Symbol the Component Server's plugin (C5) attaches its composition
|
|
3
|
+
* validator to. Keep in sync with the components package.
|
|
4
|
+
*/
|
|
5
|
+
export const COMPONENTS_VALIDATOR_SYMBOL = Symbol.for('@forumone/throughline/components-validator');
|
|
6
|
+
/**
|
|
7
|
+
* Validates a document's layout blocks via the Component Server's validator
|
|
8
|
+
* (attached to the Payload instance by `componentsPlugin`'s `onInit`). Empty
|
|
9
|
+
* layouts pass automatically. Composition warnings don't block publish; only
|
|
10
|
+
* errors do.
|
|
11
|
+
*/
|
|
12
|
+
export const compositionStep = async (ctx) => {
|
|
13
|
+
const layoutValue = ctx.document[ctx.collection.layoutField];
|
|
14
|
+
if (!Array.isArray(layoutValue) || layoutValue.length === 0) {
|
|
15
|
+
return { pass: true };
|
|
16
|
+
}
|
|
17
|
+
const blocks = layoutValue
|
|
18
|
+
.map((block) => {
|
|
19
|
+
const type = block?.blockType;
|
|
20
|
+
const variant = block?.variant;
|
|
21
|
+
if (typeof type !== 'string')
|
|
22
|
+
return null;
|
|
23
|
+
return typeof variant === 'string'
|
|
24
|
+
? { type, variant }
|
|
25
|
+
: { type };
|
|
26
|
+
})
|
|
27
|
+
.filter((b) => b !== null);
|
|
28
|
+
if (blocks.length === 0)
|
|
29
|
+
return { pass: true };
|
|
30
|
+
const validator = ctx.payload[COMPONENTS_VALIDATOR_SYMBOL];
|
|
31
|
+
if (!validator) {
|
|
32
|
+
return {
|
|
33
|
+
pass: false,
|
|
34
|
+
code: 'components-server-missing',
|
|
35
|
+
reason: 'Composition step requires the components plugin to be registered before publishingPlugin',
|
|
36
|
+
suggestion: 'Register `componentsPlugin` in your Payload config before `publishingPlugin`. Both must share the same Payload instance.',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
const result = await validator({ blocks });
|
|
40
|
+
const errors = result.issues
|
|
41
|
+
.filter((issue) => issue.severity === 'error')
|
|
42
|
+
.map((issue) => {
|
|
43
|
+
const out = {
|
|
44
|
+
severity: 'error',
|
|
45
|
+
message: issue.message,
|
|
46
|
+
rule: issue.rule,
|
|
47
|
+
};
|
|
48
|
+
if (issue.blockIndex !== undefined)
|
|
49
|
+
out.field = `${ctx.collection.layoutField}[${issue.blockIndex}]`;
|
|
50
|
+
return out;
|
|
51
|
+
});
|
|
52
|
+
if (errors.length > 0) {
|
|
53
|
+
return {
|
|
54
|
+
pass: false,
|
|
55
|
+
code: 'composition-errors',
|
|
56
|
+
reason: `${errors.length} composition error${errors.length === 1 ? '' : 's'}`,
|
|
57
|
+
issues: errors,
|
|
58
|
+
suggestion: 'Fix the composition errors. Common causes: duplicate Heroes, forbidden adjacent blocks, or unknown component types.',
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
return { pass: true };
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=composition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composition.js","sourceRoot":"","sources":["../../../../src/publishing/pipeline/steps/composition.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC,GAAG,CACnD,4CAA4C,CAC7C,CAAA;AAqBD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAiB,KAAK,EAAE,GAAG,EAAE,EAAE;IACzD,MAAM,WAAW,GAAG,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;IAC5D,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC5D,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAA;IACvB,CAAC;IAED,MAAM,MAAM,GAAI,WAA6B;SAC1C,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACb,MAAM,IAAI,GAAG,KAAK,EAAE,SAAS,CAAA;QAC7B,MAAM,OA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