@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,55 @@
|
|
|
1
|
+
import { checkEnvValue } from '../env/index.js';
|
|
2
|
+
const API_KEY_ENV = {
|
|
3
|
+
name: 'RESEND_API_KEY',
|
|
4
|
+
why: 'Sends approval and form notification email through Resend; emailPlugin will not start without it.',
|
|
5
|
+
};
|
|
6
|
+
const FROM_ADDRESS_ENV = {
|
|
7
|
+
name: 'EMAIL_FROM_ADDRESS',
|
|
8
|
+
why: 'The From address on every email. It must be a verified sender on your Resend domain.',
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* What `emailPlugin` reads from the environment when the matching option is
|
|
12
|
+
* omitted, and refuses to start without. Hand it to `assertEnvironment` from
|
|
13
|
+
* `@forumone/throughline` so a site reports it with everything else.
|
|
14
|
+
*
|
|
15
|
+
* Leave it out if you pass `apiKey` and `fromAddress` yourself. The optional
|
|
16
|
+
* `EMAIL_FROM_NAME` and `EMAIL_REPLY_TO` are not requirements.
|
|
17
|
+
*/
|
|
18
|
+
export const emailEnv = [API_KEY_ENV, FROM_ADDRESS_ENV];
|
|
19
|
+
/**
|
|
20
|
+
* Validates options at plugin init. Resolves the Resend secrets via env
|
|
21
|
+
* fallback so missing configuration surfaces immediately rather than on the
|
|
22
|
+
* first Inngest invocation.
|
|
23
|
+
*/
|
|
24
|
+
export function validateOptions(options) {
|
|
25
|
+
// The backstop for a site that does not call `assertEnvironment`, driven by
|
|
26
|
+
// the same declarations it would have passed.
|
|
27
|
+
const apiKey = options.apiKey ?? process.env[API_KEY_ENV.name];
|
|
28
|
+
if (apiKey === undefined || checkEnvValue(API_KEY_ENV, apiKey)) {
|
|
29
|
+
throw new Error(`emailPlugin requires \`options.apiKey\` or the ${API_KEY_ENV.name} env var.`);
|
|
30
|
+
}
|
|
31
|
+
const fromAddress = options.fromAddress ?? process.env[FROM_ADDRESS_ENV.name];
|
|
32
|
+
if (fromAddress === undefined || checkEnvValue(FROM_ADDRESS_ENV, fromAddress)) {
|
|
33
|
+
throw new Error(`emailPlugin requires \`options.fromAddress\` or the ${FROM_ADDRESS_ENV.name} env var.`);
|
|
34
|
+
}
|
|
35
|
+
if (typeof options.resolveApprover !== 'function' || typeof options.resolveRequester !== 'function') {
|
|
36
|
+
throw new Error('emailPlugin requires `options.resolveApprover` and `options.resolveRequester` so the plugin can map user IDs to email addresses without coupling to a specific user-model schema.');
|
|
37
|
+
}
|
|
38
|
+
if (typeof options.buildActionUrl !== 'function') {
|
|
39
|
+
throw new Error('emailPlugin requires `options.buildActionUrl` so approval action buttons resolve to deployment-specific HMAC-signed URLs.');
|
|
40
|
+
}
|
|
41
|
+
const brandName = options.fromName ??
|
|
42
|
+
process.env['EMAIL_FROM_NAME'] ??
|
|
43
|
+
options.tokens?.brandName ??
|
|
44
|
+
'Your Site';
|
|
45
|
+
const env = {
|
|
46
|
+
apiKey,
|
|
47
|
+
fromAddress,
|
|
48
|
+
fromName: brandName,
|
|
49
|
+
};
|
|
50
|
+
const replyTo = options.replyTo ?? process.env['EMAIL_REPLY_TO'];
|
|
51
|
+
if (replyTo)
|
|
52
|
+
env.replyTo = replyTo;
|
|
53
|
+
return { options, env, brandName };
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/email/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAgF/C,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,gBAAgB;IACtB,GAAG,EAAE,mGAAmG;CACvE,CAAA;AAEnC,MAAM,gBAAgB,GAAG;IACvB,IAAI,EAAE,oBAAoB;IAC1B,GAAG,EAAE,sFAAsF;CAC1D,CAAA;AAEnC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAA8B,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAA;AASlF;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,OAA2B;IAKzD,4EAA4E;IAC5E,8CAA8C;IAC9C,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAA;IAC9D,IAAI,M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-contract/index.js';
|
|
2
|
+
import type { InngestFunction } from 'inngest';
|
|
3
|
+
import { type Job } from '../jobs/types.js';
|
|
4
|
+
import { type EmailPluginOptions } from './options.js';
|
|
5
|
+
import { type EmailClient } from './client.js';
|
|
6
|
+
/**
|
|
7
|
+
* Email plugin. Validates configuration, instantiates the Resend-backed
|
|
8
|
+
* email client, and exposes the three notification Inngest functions
|
|
9
|
+
* (request / decision / expired) via Symbols so the client app's
|
|
10
|
+
* Inngest endpoint can register them alongside its other functions.
|
|
11
|
+
*
|
|
12
|
+
* Like the integrations plugin, this does not _serve_ Inngest — Payload
|
|
13
|
+
* plugins don't have a hook for the Next.js Inngest route. Use
|
|
14
|
+
* `getEmailFunctions(payload)` from your endpoint to compose them.
|
|
15
|
+
*/
|
|
16
|
+
export declare const emailPlugin: CorePlugin<EmailPluginOptions>;
|
|
17
|
+
/**
|
|
18
|
+
* The three notifications as runner-neutral jobs, for a site whose jobs adapter
|
|
19
|
+
* takes its jobs while the config is being built (`payloadJobs().plugin(...)`).
|
|
20
|
+
*
|
|
21
|
+
* Pass the same options as `emailPlugin`, and register `emailPlugin` too: it
|
|
22
|
+
* creates the email client these jobs send through. Each job finds Payload on
|
|
23
|
+
* its context at run time, and the client on Payload.
|
|
24
|
+
*/
|
|
25
|
+
export declare function emailJobs(rawOptions: EmailPluginOptions): Job[];
|
|
26
|
+
export declare function getEmailClient(payload: unknown): EmailClient | undefined;
|
|
27
|
+
export declare function getEmailFunctions(payload: unknown): InngestFunction.Any[];
|
|
28
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/email/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAG7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,EAAE,KAAK,GAAG,EAAmB,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAAE,KAAK,kBAAkB,EAAmB,MAAM,cAAc,CAAA;AAEvE,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAcjE;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,kBAAkB,CA+DpD,CAAA;AAEH;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,UAAU,EAAE,kBAAkB,GAAG,GAAG,EAAE,CAuB/D;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,CAExE;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,eAAe,CAAC,GAAG,EAAE,CAMzE"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { getPluginRegistry } from '../plugin-contract/registry.js';
|
|
2
|
+
import { createNamedLogger, defaultLogger } from '../logger/index.js';
|
|
3
|
+
import { createTerminalFailureHandler } from '../jobs/failure-handler.js';
|
|
4
|
+
import { validateOptions } from './options.js';
|
|
5
|
+
import { mergeTokens } from './tokens.js';
|
|
6
|
+
import { createEmailClient } from './client.js';
|
|
7
|
+
import { inngestJobs } from '../jobs/inngest/adapter.js';
|
|
8
|
+
import { notifyApprovalDecisionJob, notifyApprovalExpiredJob, notifyApprovalRequestJob, } from './functions/index.js';
|
|
9
|
+
const PLUGIN_ID = '@forumone/throughline/email';
|
|
10
|
+
const PLUGIN_VERSION = '0.1.0';
|
|
11
|
+
const EMAIL_CLIENT_SYMBOL = Symbol.for('@forumone/throughline/email-client');
|
|
12
|
+
const EMAIL_FUNCTIONS_SYMBOL = Symbol.for('@forumone/throughline/email-functions');
|
|
13
|
+
/**
|
|
14
|
+
* Email plugin. Validates configuration, instantiates the Resend-backed
|
|
15
|
+
* email client, and exposes the three notification Inngest functions
|
|
16
|
+
* (request / decision / expired) via Symbols so the client app's
|
|
17
|
+
* Inngest endpoint can register them alongside its other functions.
|
|
18
|
+
*
|
|
19
|
+
* Like the integrations plugin, this does not _serve_ Inngest — Payload
|
|
20
|
+
* plugins don't have a hook for the Next.js Inngest route. Use
|
|
21
|
+
* `getEmailFunctions(payload)` from your endpoint to compose them.
|
|
22
|
+
*/
|
|
23
|
+
export const emailPlugin = (rawOptions) => (incomingConfig) => {
|
|
24
|
+
if (rawOptions.enabled === false)
|
|
25
|
+
return incomingConfig;
|
|
26
|
+
const { options, env, brandName } = validateOptions(rawOptions);
|
|
27
|
+
const logger = createNamedLogger('email', options.logger ?? defaultLogger);
|
|
28
|
+
const tokens = mergeTokens({ ...options.tokens, brandName });
|
|
29
|
+
return {
|
|
30
|
+
...incomingConfig,
|
|
31
|
+
onInit: async (payload) => {
|
|
32
|
+
if (incomingConfig.onInit)
|
|
33
|
+
await incomingConfig.onInit(payload);
|
|
34
|
+
const registry = getPluginRegistry(payload);
|
|
35
|
+
const client = createEmailClient({
|
|
36
|
+
apiKey: env.apiKey,
|
|
37
|
+
fromAddress: env.fromAddress,
|
|
38
|
+
fromName: env.fromName,
|
|
39
|
+
...(env.replyTo ? { defaultReplyTo: env.replyTo } : {}),
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(payload, EMAIL_CLIENT_SYMBOL, {
|
|
42
|
+
value: client,
|
|
43
|
+
enumerable: false,
|
|
44
|
+
writable: false,
|
|
45
|
+
configurable: false,
|
|
46
|
+
});
|
|
47
|
+
// With no Inngest client, the site runs these as jobs (`emailJobs`),
|
|
48
|
+
// and there is nothing to register here.
|
|
49
|
+
const inngest = options.inngest;
|
|
50
|
+
// A failed notification is recorded and reported like any other job.
|
|
51
|
+
const onFailure = options.onTerminalFailure ?? createTerminalFailureHandler({ payload });
|
|
52
|
+
const deps = inngest ? { inngest, payload, client, tokens, options, onFailure } : undefined;
|
|
53
|
+
const functions = deps
|
|
54
|
+
? inngestJobs(deps.inngest, { onFailure }).functions([
|
|
55
|
+
notifyApprovalRequestJob(() => deps),
|
|
56
|
+
notifyApprovalDecisionJob(() => deps),
|
|
57
|
+
notifyApprovalExpiredJob(() => deps),
|
|
58
|
+
])
|
|
59
|
+
: [];
|
|
60
|
+
Object.defineProperty(payload, EMAIL_FUNCTIONS_SYMBOL, {
|
|
61
|
+
value: functions,
|
|
62
|
+
enumerable: false,
|
|
63
|
+
writable: false,
|
|
64
|
+
configurable: false,
|
|
65
|
+
});
|
|
66
|
+
registry.register({
|
|
67
|
+
id: PLUGIN_ID,
|
|
68
|
+
version: PLUGIN_VERSION,
|
|
69
|
+
capabilities: ['email', 'notification-transport'],
|
|
70
|
+
});
|
|
71
|
+
logger.info('Email system ready', {
|
|
72
|
+
brandName: tokens.brandName,
|
|
73
|
+
from: env.fromAddress,
|
|
74
|
+
functions: functions.length,
|
|
75
|
+
});
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* The three notifications as runner-neutral jobs, for a site whose jobs adapter
|
|
81
|
+
* takes its jobs while the config is being built (`payloadJobs().plugin(...)`).
|
|
82
|
+
*
|
|
83
|
+
* Pass the same options as `emailPlugin`, and register `emailPlugin` too: it
|
|
84
|
+
* creates the email client these jobs send through. Each job finds Payload on
|
|
85
|
+
* its context at run time, and the client on Payload.
|
|
86
|
+
*/
|
|
87
|
+
export function emailJobs(rawOptions) {
|
|
88
|
+
const { options, brandName } = validateOptions(rawOptions);
|
|
89
|
+
const tokens = mergeTokens({ ...options.tokens, brandName });
|
|
90
|
+
const resolve = (context) => {
|
|
91
|
+
const payload = context.payload;
|
|
92
|
+
if (!payload) {
|
|
93
|
+
throw new Error('emailJobs: this runner gave the job no Payload instance. Use payloadJobs, or pass `payload` to inngestJobs.');
|
|
94
|
+
}
|
|
95
|
+
const client = getEmailClient(payload);
|
|
96
|
+
if (!client) {
|
|
97
|
+
throw new Error('emailJobs: no email client on Payload. Register emailPlugin as well.');
|
|
98
|
+
}
|
|
99
|
+
return { payload, client, tokens, options };
|
|
100
|
+
};
|
|
101
|
+
return [
|
|
102
|
+
notifyApprovalRequestJob(resolve),
|
|
103
|
+
notifyApprovalDecisionJob(resolve),
|
|
104
|
+
notifyApprovalExpiredJob(resolve),
|
|
105
|
+
];
|
|
106
|
+
}
|
|
107
|
+
export function getEmailClient(payload) {
|
|
108
|
+
return payload[EMAIL_CLIENT_SYMBOL];
|
|
109
|
+
}
|
|
110
|
+
export function getEmailFunctions(payload) {
|
|
111
|
+
return (payload[EMAIL_FUNCTIONS_SYMBOL] ?? []);
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/email/plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAClE,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAErE,OAAO,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAA;AAEzE,OAAO,EAA2B,eAAe,EAAE,MAAM,cAAc,CAAA;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,iBAAiB,EAAoB,MAAM,aAAa,CAAA;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,sBAAsB,CAAA;AAE7B,MAAM,SAAS,GAAG,6BAA6B,CAAA;AAC/C,MAAM,cAAc,GAAG,OAAO,CAAA;AAE9B,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAA;AAC5E,MAAM,sBAAsB,GAAG,MAAM,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAA;AAElF;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,WAAW,GACtB,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,cAAc,EAAE,EAAE;IACjC,IAAI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AAS,EAAE,CAAC,CAAA;IAE5D,MAAM,OAAO,GAAG,CAAC,OAAmB,EAAE,EAAE;QACtC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAA;QAC/B,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CACb,6GAA6G,CAC9G,CAAA;QACH,CAAC;QACD,MAAM,MAAM,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA;QACtC,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,KAAK,CAAC,sEAAsE,CAAC,CAAA;QACzF,CAAC;QACD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,CAAA;IAC7C,CAAC,CAAA;IAED,OAAO;QACL,wBAAwB,CAAC,OAAO,CAAC;QACjC,yBAAyB,CAAC,OAAO,CAAC;QAClC,wBAAwB,CAAC,OAAO,CAAC;KAClC,CAAA;AACH,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,OAAgB;IAC7C,OAAQ,OAAmC,CAAC,mBAAmB,CAA4B,CAAA;AAC7F,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAgB;IAChD,OAAO,CACH,OAAmC,CAAC,sBAAsB,CAE9C,IAAI,EAAE,CACrB,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { EmailBrandTokens } from '../tokens.js';
|
|
2
|
+
export type ApprovalDecisionKind = 'granted' | 'declined' | 'changes-requested';
|
|
3
|
+
export interface ApprovalDecisionEmailProps {
|
|
4
|
+
requesterName: string;
|
|
5
|
+
/** Display name of the person who decided. */
|
|
6
|
+
decidedBy: string;
|
|
7
|
+
targetTitle: string;
|
|
8
|
+
decision: ApprovalDecisionKind;
|
|
9
|
+
/** Free-form notes from the decider. Optional. */
|
|
10
|
+
decisionNotes?: string;
|
|
11
|
+
previewUrl: string;
|
|
12
|
+
tokens: EmailBrandTokens;
|
|
13
|
+
}
|
|
14
|
+
export declare function ApprovalDecisionEmail(props: ApprovalDecisionEmailProps): import("react").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=ApprovalDecision.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApprovalDecision.d.ts","sourceRoot":"","sources":["../../../src/email/templates/ApprovalDecision.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,UAAU,GAAG,mBAAmB,CAAA;AAE/E,MAAM,WAAW,0BAA0B;IACzC,aAAa,EAAE,MAAM,CAAA;IACrB,8CAA8C;IAC9C,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,oBAAoB,CAAA;IAC9B,kDAAkD;IAClD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,gBAAgB,CAAA;CACzB;AAwBD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,+BAwEtE"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Button, Heading, Section, Text } from '@react-email/components';
|
|
3
|
+
import { EmailLayout } from './_layout.js';
|
|
4
|
+
const HEADLINE = {
|
|
5
|
+
granted: 'Approved',
|
|
6
|
+
declined: 'Not approved',
|
|
7
|
+
'changes-requested': 'Changes requested',
|
|
8
|
+
};
|
|
9
|
+
const HEADLINE_COLOR = {
|
|
10
|
+
granted: '#16A34A',
|
|
11
|
+
declined: '#DC2626',
|
|
12
|
+
'changes-requested': '#CA8A04',
|
|
13
|
+
};
|
|
14
|
+
function nextStep(decision, target, decidedBy) {
|
|
15
|
+
if (decision === 'granted') {
|
|
16
|
+
return `You can publish ${target} when you're ready. Ask Claude to publish it.`;
|
|
17
|
+
}
|
|
18
|
+
if (decision === 'declined') {
|
|
19
|
+
return `${target} was not approved. Read the decision notes below and discuss with ${decidedBy} if you'd like context.`;
|
|
20
|
+
}
|
|
21
|
+
return `${decidedBy} requested changes to ${target}. Edit as requested and ask Claude to request approval again.`;
|
|
22
|
+
}
|
|
23
|
+
export function ApprovalDecisionEmail(props) {
|
|
24
|
+
const { tokens, decision } = props;
|
|
25
|
+
const headlineStyle = {
|
|
26
|
+
color: HEADLINE_COLOR[decision],
|
|
27
|
+
fontSize: 22,
|
|
28
|
+
margin: 0,
|
|
29
|
+
};
|
|
30
|
+
const labelStyle = {
|
|
31
|
+
color: tokens.textSecondary,
|
|
32
|
+
fontSize: 12,
|
|
33
|
+
fontWeight: 600,
|
|
34
|
+
margin: 0,
|
|
35
|
+
textTransform: 'uppercase',
|
|
36
|
+
letterSpacing: '0.05em',
|
|
37
|
+
};
|
|
38
|
+
const notesBoxStyle = {
|
|
39
|
+
backgroundColor: tokens.bgSecondary,
|
|
40
|
+
padding: 16,
|
|
41
|
+
borderRadius: 6,
|
|
42
|
+
marginTop: 16,
|
|
43
|
+
};
|
|
44
|
+
const previewButtonStyle = {
|
|
45
|
+
backgroundColor: tokens.textPrimary,
|
|
46
|
+
color: '#FFFFFF',
|
|
47
|
+
padding: '12px 20px',
|
|
48
|
+
borderRadius: 4,
|
|
49
|
+
textDecoration: 'none',
|
|
50
|
+
fontSize: 14,
|
|
51
|
+
fontWeight: 600,
|
|
52
|
+
display: 'inline-block',
|
|
53
|
+
};
|
|
54
|
+
return (_jsxs(EmailLayout, { preview: `${HEADLINE[decision]}: ${props.targetTitle}`, tokens: tokens, children: [_jsxs(Heading, { style: headlineStyle, children: [HEADLINE[decision], ": ", props.targetTitle] }), _jsxs(Text, { style: { color: tokens.textPrimary, fontSize: 16, marginTop: 16 }, children: ["Hi ", props.requesterName, ","] }), _jsxs(Text, { style: { color: tokens.textPrimary, fontSize: 16 }, children: [props.decidedBy, " reviewed your approval request."] }), props.decisionNotes ? (_jsxs(Section, { style: notesBoxStyle, children: [_jsxs(Text, { style: labelStyle, children: ["Notes from ", props.decidedBy] }), _jsx(Text, { style: { color: tokens.textPrimary, fontSize: 14, margin: '8px 0 0' }, children: props.decisionNotes })] })) : null, _jsxs(Text, { style: { color: tokens.textPrimary, fontSize: 14, marginTop: 24 }, children: [_jsx("strong", { children: "Next step:" }), " ", nextStep(decision, props.targetTitle, props.decidedBy)] }), decision !== 'declined' ? (_jsx(Section, { style: { marginTop: 16 }, children: _jsxs(Button, { href: props.previewUrl, style: previewButtonStyle, children: ["Preview ", props.targetTitle] }) })) : null] }));
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=ApprovalDecision.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApprovalDecision.js","sourceRoot":"","sources":["../../../src/email/templates/ApprovalDecision.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAA;AAExE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAiB1C,MAAM,QAAQ,GAAyC;IACrD,OAAO,EAAE,UAAU;IACnB,QAAQ,EAAE,cAAc;IACxB,mBAAmB,EAAE,mBAAmB;CACzC,CAAA;AAED,MAAM,cAAc,GAAyC;IAC3D,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,SAAS;IACnB,mBAAmB,EAAE,SAAS;CAC/B,CAAA;AAED,SAAS,QAAQ,CAAC,QAA8B,EAAE,MAAc,EAAE,SAAiB;IACjF,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,OAAO,mBAAmB,MAAM,+CAA+C,CAAA;IACjF,CAAC;IACD,IAAI,QAAQ,KAAK,UAAU,EAAE,CAAC;QAC5B,OAAO,GAAG,MAAM,qEAAqE,SAAS,yBAAyB,CAAA;IACzH,CAAC;IACD,OAAO,GAAG,SAAS,yBAAyB,MAAM,+DAA+D,CAAA;AACn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AC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE,aACrD,KAAK,CAAC,SAAS,wCACX,EAEN,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CACrB,MAAC,OAAO,IAAC,KAAK,EAAE,aAAa,aAC3B,MAAC,IAAI,IAAC,KAAK,EAAE,UAAU,4BAAc,KAAK,CAAC,SAAS,IAAQ,EAC5D,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,YACxE,KAAK,CAAC,aAAa,GACf,IACC,CACX,CAAC,CAAC,CAAC,IAAI,EAER,MAAC,IAAI,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,aACrE,0CAA2B,OAAE,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC,IAC9E,EAEN,QAAQ,KAAK,UAAU,CAAC,CAAC,CAAC,CACzB,KAAC,OAAO,IAAC,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,YAC/B,MAAC,MAAM,IAAC,IAAI,EAAE,KAAK,CAAC,UAAU,EAAE,KAAK,EAAE,kBAAkB,yBAC9C,KAAK,CAAC,WAAW,IACnB,GACD,CACX,CAAC,CAAC,CAAC,IAAI,IACI,CACf,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { EmailBrandTokens } from '../tokens.js';
|
|
2
|
+
export interface ApprovalExpiredEmailProps {
|
|
3
|
+
requesterName: string;
|
|
4
|
+
targetTitle: string;
|
|
5
|
+
/** Pre-formatted "requested on" date (e.g. "Apr 15, 2026"). */
|
|
6
|
+
requestedAt: string;
|
|
7
|
+
tokens: EmailBrandTokens;
|
|
8
|
+
}
|
|
9
|
+
export declare function ApprovalExpiredEmail(props: ApprovalExpiredEmailProps): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=ApprovalExpired.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApprovalExpired.d.ts","sourceRoot":"","sources":["../../../src/email/templates/ApprovalExpired.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,MAAM,CAAA;IACnB,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,gBAAgB,CAAA;CACzB;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,+BAuBpE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Heading, Text } from '@react-email/components';
|
|
3
|
+
import { EmailLayout } from './_layout.js';
|
|
4
|
+
export function ApprovalExpiredEmail(props) {
|
|
5
|
+
const { tokens } = props;
|
|
6
|
+
return (_jsxs(EmailLayout, { preview: `Approval expired: ${props.targetTitle}`, tokens: tokens, children: [_jsx(Heading, { style: { color: tokens.textPrimary, fontSize: 22, margin: 0 }, children: "Approval expired" }), _jsxs(Text, { style: { color: tokens.textPrimary, fontSize: 16, marginTop: 16 }, children: ["Hi ", props.requesterName, ","] }), _jsxs(Text, { style: { color: tokens.textPrimary, fontSize: 16 }, children: ["The approval request you submitted for ", _jsx("strong", { children: props.targetTitle }), " on", ' ', props.requestedAt, " has expired without a decision."] }), _jsx(Text, { style: { color: tokens.textPrimary, fontSize: 14, marginTop: 16 }, children: "If you still want to publish, ask Claude to request approval again \u2014 the framework will re-route to the same approver groups." })] }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=ApprovalExpired.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApprovalExpired.js","sourceRoot":"","sources":["../../../src/email/templates/ApprovalExpired.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAW1C,MAAM,UAAU,oBAAoB,CAAC,KAAgC;IACnE,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAA;IACxB,OAAO,CACL,MAAC,WAAW,IAAC,OAAO,EAAE,qBAAqB,KAAK,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,MAAM,aAC5E,KAAC,OAAO,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,iCAE5D,EAEV,MAAC,IAAI,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,oBACjE,KAAK,CAAC,aAAa,SAClB,EAEP,MAAC,IAAI,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE,wDACf,2BAAS,KAAK,CAAC,WAAW,GAAU,SAAI,GAAG,EACjF,KAAK,CAAC,WAAW,wCACb,EAEP,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,mJAGhE,IACK,CACf,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { EmailBrandTokens } from '../tokens.js';
|
|
2
|
+
export type ApprovalTargetKind = 'page' | 'post' | 'item';
|
|
3
|
+
export interface ApprovalRequestEmailProps {
|
|
4
|
+
approverName: string;
|
|
5
|
+
requesterName: string;
|
|
6
|
+
targetTitle: string;
|
|
7
|
+
/**
|
|
8
|
+
* Human-friendly noun for the target ("page", "post", "item"). Caller maps
|
|
9
|
+
* the collection slug; the template renders it verbatim.
|
|
10
|
+
*/
|
|
11
|
+
targetKind: ApprovalTargetKind;
|
|
12
|
+
changesSummary: string;
|
|
13
|
+
/** Free-form reason from the requester. Optional. */
|
|
14
|
+
requestReason?: string;
|
|
15
|
+
previewUrl: string;
|
|
16
|
+
approveUrl: string;
|
|
17
|
+
changesUrl: string;
|
|
18
|
+
discussUrl: string;
|
|
19
|
+
/** Pre-formatted expiration string (e.g. `May 5, 2026`). */
|
|
20
|
+
expiresAt: string;
|
|
21
|
+
tokens: EmailBrandTokens;
|
|
22
|
+
}
|
|
23
|
+
export declare function ApprovalRequestEmail(props: ApprovalRequestEmailProps): import("react").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=ApprovalRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApprovalRequest.d.ts","sourceRoot":"","sources":["../../../src/email/templates/ApprovalRequest.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;AAEzD,MAAM,WAAW,yBAAyB;IACxC,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,UAAU,EAAE,kBAAkB,CAAA;IAC9B,cAAc,EAAE,MAAM,CAAA;IACtB,qDAAqD;IACrD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,4DAA4D;IAC5D,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,gBAAgB,CAAA;CACzB;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,+BA6HpE"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button, Heading, Link, Section, Text } from '@react-email/components';
|
|
3
|
+
import { EmailLayout } from './_layout.js';
|
|
4
|
+
export function ApprovalRequestEmail(props) {
|
|
5
|
+
const { tokens } = props;
|
|
6
|
+
const labelStyle = {
|
|
7
|
+
color: tokens.textSecondary,
|
|
8
|
+
fontSize: 12,
|
|
9
|
+
fontWeight: 600,
|
|
10
|
+
margin: 0,
|
|
11
|
+
textTransform: 'uppercase',
|
|
12
|
+
letterSpacing: '0.05em',
|
|
13
|
+
};
|
|
14
|
+
const boxStyle = {
|
|
15
|
+
backgroundColor: tokens.bgSecondary,
|
|
16
|
+
padding: 16,
|
|
17
|
+
borderRadius: 6,
|
|
18
|
+
marginTop: 16,
|
|
19
|
+
};
|
|
20
|
+
const primaryButtonStyle = {
|
|
21
|
+
backgroundColor: tokens.textPrimary,
|
|
22
|
+
color: '#FFFFFF',
|
|
23
|
+
padding: '12px 20px',
|
|
24
|
+
borderRadius: 4,
|
|
25
|
+
textDecoration: 'none',
|
|
26
|
+
fontSize: 14,
|
|
27
|
+
fontWeight: 600,
|
|
28
|
+
display: 'inline-block',
|
|
29
|
+
};
|
|
30
|
+
const approveButtonStyle = {
|
|
31
|
+
backgroundColor: tokens.brandPrimary,
|
|
32
|
+
color: '#FFFFFF',
|
|
33
|
+
padding: '10px 16px',
|
|
34
|
+
borderRadius: 4,
|
|
35
|
+
textDecoration: 'none',
|
|
36
|
+
fontSize: 14,
|
|
37
|
+
fontWeight: 600,
|
|
38
|
+
display: 'inline-block',
|
|
39
|
+
};
|
|
40
|
+
const outlineButtonStyle = {
|
|
41
|
+
backgroundColor: tokens.bgPrimary,
|
|
42
|
+
color: tokens.textPrimary,
|
|
43
|
+
padding: '10px 16px',
|
|
44
|
+
border: `1px solid ${tokens.border}`,
|
|
45
|
+
borderRadius: 4,
|
|
46
|
+
textDecoration: 'none',
|
|
47
|
+
fontSize: 14,
|
|
48
|
+
fontWeight: 600,
|
|
49
|
+
display: 'inline-block',
|
|
50
|
+
};
|
|
51
|
+
const discussLinkStyle = {
|
|
52
|
+
color: tokens.brandPrimary,
|
|
53
|
+
fontSize: 14,
|
|
54
|
+
textDecoration: 'underline',
|
|
55
|
+
};
|
|
56
|
+
return (_jsxs(EmailLayout, { preview: `Approval needed: ${props.targetTitle}`, tokens: tokens, children: [_jsx(Heading, { style: { color: tokens.textPrimary, fontSize: 22, margin: 0 }, children: "Approval needed" }), _jsxs(Text, { style: { color: tokens.textPrimary, fontSize: 16, marginTop: 8 }, children: ["Hi ", props.approverName, ","] }), _jsxs(Text, { style: { color: tokens.textPrimary, fontSize: 16 }, children: [props.requesterName, " is requesting approval to publish the ", props.targetKind, ' ', _jsx("strong", { children: props.targetTitle }), "."] }), _jsxs(Section, { style: boxStyle, children: [_jsx(Text, { style: labelStyle, children: "What changed" }), _jsx(Text, { style: { color: tokens.textPrimary, fontSize: 14, margin: '8px 0 0' }, children: props.changesSummary })] }), props.requestReason ? (_jsxs(Section, { style: { marginTop: 16 }, children: [_jsx(Text, { style: labelStyle, children: "Why" }), _jsx(Text, { style: { color: tokens.textPrimary, fontSize: 14, margin: '8px 0 0' }, children: props.requestReason })] })) : null, _jsx(Section, { style: { marginTop: 24 }, children: _jsx(Button, { href: props.previewUrl, style: primaryButtonStyle, children: "Preview the changes" }) }), _jsxs(Section, { style: { marginTop: 32 }, children: [_jsx(Text, { style: { color: tokens.textPrimary, fontSize: 14, fontWeight: 600 }, children: "Your decision:" }), _jsx("table", { style: { marginTop: 8 }, children: _jsx("tbody", { children: _jsxs("tr", { children: [_jsx("td", { style: { paddingRight: 8 }, children: _jsx(Button, { href: props.approveUrl, style: approveButtonStyle, children: "Approve" }) }), _jsx("td", { style: { paddingRight: 8 }, children: _jsx(Button, { href: props.changesUrl, style: outlineButtonStyle, children: "Request changes" }) }), _jsx("td", { children: _jsx(Link, { href: props.discussUrl, style: discussLinkStyle, children: "Discuss" }) })] }) }) })] }), _jsxs(Text, { style: { color: tokens.textSecondary, fontSize: 12, marginTop: 24 }, children: ["This request expires ", props.expiresAt, "."] })] }));
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=ApprovalRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApprovalRequest.js","sourceRoot":"","sources":["../../../src/email/templates/ApprovalRequest.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAA;AAE9E,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AA0B1C,MAAM,UAAU,oBAAoB,CAAC,KAAgC;IACnE,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAA;IAExB,MAAM,UAAU,GAAkB;QAChC,KAAK,EAAE,MAAM,CAAC,aAAa;QAC3B,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,GAAG;QACf,MAAM,EAAE,CAAC;QACT,aAAa,EAAE,WAAW;QAC1B,aAAa,EAAE,QAAQ;KACxB,CAAA;IACD,MAAM,QAAQ,GAAkB;QAC9B,eAAe,EAAE,MAAM,CAAC,WAAW;QACnC,OAAO,EAAE,EAAE;QACX,YAAY,EAAE,CAAC;QACf,SAAS,EAAE,EAAE;KACd,CAAA;IACD,MAAM,kBAAkB,GAAkB;QACxC,eAAe,EAAE,MAAM,CAAC,WAAW;QACnC,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,WAAW;QACpB,YAAY,EAAE,CAAC;QACf,cAAc,EAAE,MAAM;QACtB,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,GAAG;QACf,OAAO,EAAE,cAAc;KACxB,CAAA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,EACL,aAAI,KAAK,EAAE,EAAE,YAAY,EAAE,CAAC,EAAE,YAC5B,KAAC,MAAM,IAAC,IAAI,EAAE,KAAK,CAAC,UAAU,EAAE,KAAK,EAAE,kBAAkB,gCAEhD,GACN,EACL,uBACE,KAAC,IAAI,IAAC,IAAI,EAAE,KAAK,CAAC,UAAU,EAAE,KAAK,EAAE,gBAAgB,wBAE9C,GACJ,IACF,GACC,GACF,IACA,EAEV,MAAC,IAAI,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,aAAa,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,sCACjD,KAAK,CAAC,SAAS,SAChC,IACK,CACf,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { EmailBrandTokens } from '../tokens.js';
|
|
3
|
+
export interface EmailLayoutProps {
|
|
4
|
+
/** Inbox preview snippet (the line shown next to the subject in clients). */
|
|
5
|
+
preview: string;
|
|
6
|
+
tokens: EmailBrandTokens;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Shared chrome for every transactional template: brand-name header,
|
|
11
|
+
* thin rule, body slot, and a footer disclaimer that names the brand
|
|
12
|
+
* again. Sticking to React Email primitives (`Body`, `Container`,
|
|
13
|
+
* `Section`) keeps Outlook / Gmail / Apple Mail rendering consistent;
|
|
14
|
+
* raw `<div>` + CSS is where compatibility nightmares live.
|
|
15
|
+
*/
|
|
16
|
+
export declare function EmailLayout({ preview, tokens, children }: EmailLayoutProps): import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=_layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_layout.d.ts","sourceRoot":"","sources":["../../../src/email/templates/_layout.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAA;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,WAAW,gBAAgB;IAC/B,6EAA6E;IAC7E,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,gBAAgB,CAAA;IACxB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,gBAAgB,+BAgD1E"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Body, Container, Head, Hr, Html, Preview, Section, Text } from '@react-email/components';
|
|
3
|
+
/**
|
|
4
|
+
* Shared chrome for every transactional template: brand-name header,
|
|
5
|
+
* thin rule, body slot, and a footer disclaimer that names the brand
|
|
6
|
+
* again. Sticking to React Email primitives (`Body`, `Container`,
|
|
7
|
+
* `Section`) keeps Outlook / Gmail / Apple Mail rendering consistent;
|
|
8
|
+
* raw `<div>` + CSS is where compatibility nightmares live.
|
|
9
|
+
*/
|
|
10
|
+
export function EmailLayout({ preview, tokens, children }) {
|
|
11
|
+
const bodyStyle = {
|
|
12
|
+
backgroundColor: '#F5F5F5',
|
|
13
|
+
fontFamily: tokens.fontFamilySans,
|
|
14
|
+
margin: 0,
|
|
15
|
+
padding: '24px 0',
|
|
16
|
+
};
|
|
17
|
+
const containerStyle = {
|
|
18
|
+
backgroundColor: tokens.bgPrimary,
|
|
19
|
+
maxWidth: 600,
|
|
20
|
+
margin: '0 auto',
|
|
21
|
+
padding: 32,
|
|
22
|
+
borderRadius: 8,
|
|
23
|
+
};
|
|
24
|
+
const brandStyle = {
|
|
25
|
+
color: tokens.textPrimary,
|
|
26
|
+
fontWeight: 700,
|
|
27
|
+
fontSize: 18,
|
|
28
|
+
margin: 0,
|
|
29
|
+
};
|
|
30
|
+
const dividerStyle = { borderColor: tokens.border, margin: '24px 0' };
|
|
31
|
+
const footerDividerStyle = { borderColor: tokens.border, margin: '32px 0 16px' };
|
|
32
|
+
const footerTextStyle = {
|
|
33
|
+
color: tokens.textSecondary,
|
|
34
|
+
fontSize: 12,
|
|
35
|
+
margin: 0,
|
|
36
|
+
};
|
|
37
|
+
return (_jsxs(Html, { lang: "en", children: [_jsx(Head, {}), _jsx(Preview, { children: preview }), _jsx(Body, { style: bodyStyle, children: _jsxs(Container, { style: containerStyle, children: [_jsx(Section, { children: _jsx(Text, { style: brandStyle, children: tokens.brandName }) }), _jsx(Hr, { style: dividerStyle }), children, _jsx(Hr, { style: footerDividerStyle }), _jsxs(Text, { style: footerTextStyle, children: ["This message is from your ", tokens.brandName, " content system. If you did not expect this, contact your system administrator."] })] }) })] }));
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=_layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_layout.js","sourceRoot":"","sources":["../../../src/email/templates/_layout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAA;AAWjG;;;;;;GAMG;AACH,MAAM,UAAU,WAAW,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAoB;IACzE,MAAM,SAAS,GAAkB;QAC/B,eAAe,EAAE,SAAS;QAC1B,UAAU,EAAE,MAAM,CAAC,cAAc;QACjC,MAAM,EAAE,CAAC;QACT,OAAO,EAAE,QAAQ;KAClB,CAAA;IACD,MAAM,cAAc,GAAkB;QACpC,eAAe,EAAE,MAAM,CAAC,SAAS;QACjC,QAAQ,EAAE,GAAG;QACb,MAAM,EAAE,QAAQ;QAChB,OAAO,EAAE,EAAE;QACX,YAAY,EAAE,CAAC;KAChB,CAAA;IACD,MAAM,UAAU,GAAkB;QAChC,KAAK,EAAE,MAAM,CAAC,WAAW;QACzB,UAAU,EAAE,GAAG;QACf,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,CAAC;KACV,CAAA;IACD,MAAM,YAAY,GAAkB,EAAE,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAA;IACpF,MAAM,kBAAkB,GAAkB,EAAE,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,CAAA;IAC/F,MAAM,eAAe,GAAkB;QACrC,KAAK,EAAE,MAAM,CAAC,aAAa;QAC3B,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,CAAC;KACV,CAAA;IAED,OAAO,CACL,MAAC,IAAI,IAAC,IAAI,EAAC,IAAI,aACb,KAAC,IAAI,KAAG,EACR,KAAC,OAAO,cAAE,OAAO,GAAW,EAC5B,KAAC,IAAI,IAAC,KAAK,EAAE,SAAS,YACpB,MAAC,SAAS,IAAC,KAAK,EAAE,cAAc,aAC9B,KAAC,OAAO,cACN,KAAC,IAAI,IAAC,KAAK,EAAE,UAAU,YAAG,MAAM,CAAC,SAAS,GAAQ,GAC1C,EACV,KAAC,EAAE,IAAC,KAAK,EAAE,YAAY,GAAI,EAC1B,QAAQ,EACT,KAAC,EAAE,IAAC,KAAK,EAAE,kBAAkB,GAAI,EACjC,MAAC,IAAI,IAAC,KAAK,EAAE,eAAe,2CACC,MAAM,CAAC,SAAS,uFAEtC,IACG,GACP,IACF,CACR,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { EmailLayout } from './_layout.js';
|
|
2
|
+
export type { EmailLayoutProps } from './_layout.js';
|
|
3
|
+
export { ApprovalRequestEmail } from './ApprovalRequest.js';
|
|
4
|
+
export type { ApprovalRequestEmailProps, ApprovalTargetKind } from './ApprovalRequest.js';
|
|
5
|
+
export { ApprovalDecisionEmail } from './ApprovalDecision.js';
|
|
6
|
+
export type { ApprovalDecisionEmailProps, ApprovalDecisionKind } from './ApprovalDecision.js';
|
|
7
|
+
export { ApprovalExpiredEmail } from './ApprovalExpired.js';
|
|
8
|
+
export type { ApprovalExpiredEmailProps } from './ApprovalExpired.js';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/email/templates/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,YAAY,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAC3D,YAAY,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEzF,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,YAAY,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAA;AAE7F,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAC3D,YAAY,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/email/templates/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAG3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAG7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brand tokens that drive every template's appearance. Core ships neutral
|
|
3
|
+
* defaults (black on white, system sans, "Your Site"); deployments override
|
|
4
|
+
* via `emailPlugin({ tokens })` to swap in their brand identity. Forum One
|
|
5
|
+
* colors do not live here — every consuming agency or product team supplies
|
|
6
|
+
* their own.
|
|
7
|
+
*/
|
|
8
|
+
export interface EmailBrandTokens {
|
|
9
|
+
/** Primary brand color used for affirmative buttons (Approve, Preview). */
|
|
10
|
+
brandPrimary: string;
|
|
11
|
+
/** Hover/active state for the primary brand color. Reserved; not used by
|
|
12
|
+
* the layout itself but available for richer templates. */
|
|
13
|
+
brandPrimaryHover: string;
|
|
14
|
+
/** Optional accent color for secondary highlights. */
|
|
15
|
+
brandAccent?: string;
|
|
16
|
+
/** Default body text color. */
|
|
17
|
+
textPrimary: string;
|
|
18
|
+
/** Muted text color (labels, footer, helper copy). */
|
|
19
|
+
textSecondary: string;
|
|
20
|
+
/** Email card background. */
|
|
21
|
+
bgPrimary: string;
|
|
22
|
+
/** Subdued background used for callout sections. */
|
|
23
|
+
bgSecondary: string;
|
|
24
|
+
/** Border color for hairlines and box outlines. */
|
|
25
|
+
border: string;
|
|
26
|
+
/** Font stack passed to the layout's body. */
|
|
27
|
+
fontFamilySans: string;
|
|
28
|
+
/**
|
|
29
|
+
* Display name used in three places: the layout header, the From name
|
|
30
|
+
* (when EMAIL_FROM_NAME is unset), and the layout footer disclaimer.
|
|
31
|
+
* Keeps "this came from <site>" consistent across every email.
|
|
32
|
+
*/
|
|
33
|
+
brandName: string;
|
|
34
|
+
/** Optional logo URL shown in the layout header. Reserved for future use. */
|
|
35
|
+
logoUrl?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare const defaultTokens: EmailBrandTokens;
|
|
38
|
+
export declare function mergeTokens(overrides?: Partial<EmailBrandTokens>): EmailBrandTokens;
|
|
39
|
+
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/email/tokens.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B,2EAA2E;IAC3E,YAAY,EAAE,MAAM,CAAA;IACpB;gEAC4D;IAC5D,iBAAiB,EAAE,MAAM,CAAA;IACzB,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,sDAAsD;IACtD,aAAa,EAAE,MAAM,CAAA;IACrB,6BAA6B;IAC7B,SAAS,EAAE,MAAM,CAAA;IACjB,oDAAoD;IACpD,WAAW,EAAE,MAAM,CAAA;IACnB,mDAAmD;IACnD,MAAM,EAAE,MAAM,CAAA;IACd,8CAA8C;IAC9C,cAAc,EAAE,MAAM,CAAA;IACtB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,aAAa,EAAE,gBAU3B,CAAA;AAED,wBAAgB,WAAW,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,gBAAgB,CAGnF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const defaultTokens = {
|
|
2
|
+
brandPrimary: '#2563EB',
|
|
3
|
+
brandPrimaryHover: '#1D4ED8',
|
|
4
|
+
textPrimary: '#18181B',
|
|
5
|
+
textSecondary: '#52525B',
|
|
6
|
+
bgPrimary: '#FFFFFF',
|
|
7
|
+
bgSecondary: '#FAFAFA',
|
|
8
|
+
border: '#E4E4E7',
|
|
9
|
+
fontFamilySans: 'Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif',
|
|
10
|
+
brandName: 'Your Site',
|
|
11
|
+
};
|
|
12
|
+
export function mergeTokens(overrides) {
|
|
13
|
+
if (!overrides)
|
|
14
|
+
return defaultTokens;
|
|
15
|
+
return { ...defaultTokens, ...overrides };
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../src/email/tokens.ts"],"names":[],"mappings":"AAqCA,MAAM,CAAC,MAAM,aAAa,GAAqB;IAC7C,YAAY,EAAE,SAAS;IACvB,iBAAiB,EAAE,SAAS;IAC5B,WAAW,EAAE,SAAS;IACtB,aAAa,EAAE,SAAS;IACxB,SAAS,EAAE,SAAS;IACpB,WAAW,EAAE,SAAS;IACtB,MAAM,EAAE,SAAS;IACjB,cAAc,EAAE,iEAAiE;IACjF,SAAS,EAAE,WAAW;CACvB,CAAA;AAED,MAAM,UAAU,WAAW,CAAC,SAAqC;IAC/D,IAAI,CAAC,SAAS;QAAE,OAAO,aAAa,CAAA;IACpC,OAAO,EAAE,GAAG,aAAa,EAAE,GAAG,SAAS,EAAE,CAAA;AAC3C,CAAC"}
|