131 lines
4.5 KiB
TypeScript
131 lines
4.5 KiB
TypeScript
export type { AccessOption, Role } from './modules/access/index.js'
|
|
export {
|
|
adminOnly,
|
|
adminOnlyField,
|
|
adminOrEditor,
|
|
adminOrEditorField,
|
|
adminOrSelf,
|
|
authenticated,
|
|
hasMinimumRole,
|
|
isAdmin,
|
|
isEditor,
|
|
requireRole,
|
|
requireRoleField,
|
|
ROLE_HIERARCHY,
|
|
} from './modules/access/index.js'
|
|
export type { AnalyticsConfig } from './modules/analytics/index.js'
|
|
export { getAnalyticsConfig } from './modules/analytics/index.js'
|
|
export {
|
|
ACCEPT_ALL_CONSENT,
|
|
CONSENT_CATEGORIES,
|
|
CONSENT_COOKIE,
|
|
CONSENT_MAX_AGE,
|
|
CONSENT_VERSION,
|
|
DEFAULT_CONSENT,
|
|
getConsentTexts,
|
|
parseConsent,
|
|
REJECT_ALL_CONSENT,
|
|
serializeConsent,
|
|
setDefaultConsent,
|
|
updateConsent,
|
|
} from './modules/consent/index.js'
|
|
export type { ConsentCategory, ConsentState, ConsentTexts } from './modules/consent/index.js'
|
|
export type {
|
|
ContentCollectionOption,
|
|
ContentOption,
|
|
ResolvedRoute,
|
|
} from './modules/content/index.js'
|
|
export {
|
|
archiveFieldName,
|
|
buildArchivePath,
|
|
buildEntryPath,
|
|
getArchiveEntries,
|
|
parsePageParam,
|
|
resolveRoute,
|
|
} from './modules/content/index.js'
|
|
export type { ArchiveEntries } from './modules/content/index.js'
|
|
export { graphAdapter } from './modules/email/graphAdapter.js'
|
|
export type { GraphAdapterArgs } from './modules/email/graphAdapter.js'
|
|
export { mailAdapter } from './modules/email/mailAdapter.js'
|
|
export type { MailAdapterArgs } from './modules/email/mailAdapter.js'
|
|
// Imported straight from the file, NOT from ./modules/email/index.js — that
|
|
// barrel re-exports sendEmail, which imports 'server-only' and would crash when
|
|
// Payload loads the config (or runs generate:importmap) as a plain Node script.
|
|
export { panelSmtpAdapter } from './modules/email/panelSmtpAdapter.js'
|
|
export type { PanelSmtpAdapterArgs } from './modules/email/panelSmtpAdapter.js'
|
|
export { buildFormsPlugin } from './modules/forms/formsPluginConfig.js'
|
|
export type {
|
|
FormsCollectionOverrides,
|
|
FormsFieldsOverride,
|
|
FormsOption,
|
|
} from './modules/forms/types.js'
|
|
export { createContentHelpers } from './modules/frontend/index.js'
|
|
export type { I18nConfig, LocaleDefinition, LocalizedSlugs } from './modules/i18n/index.js'
|
|
export {
|
|
buildLocalizedPath,
|
|
getDefaultLocale,
|
|
getLocaleCodes,
|
|
getLocaleDefinition,
|
|
getLocalizedSlugs,
|
|
isValidLocale,
|
|
LOCALE_COOKIE_NAME,
|
|
matchAcceptLanguage,
|
|
negotiateLocale,
|
|
switchLocalePath,
|
|
} from './modules/i18n/index.js'
|
|
export type { LocaleMiddlewareResult } from './modules/i18n/index.js'
|
|
export { createLocaleMiddleware, DEFAULT_MIDDLEWARE_MATCHER } from './modules/i18n/index.js'
|
|
// Media — filename normalization hook for upload collections (Media).
|
|
export { normalizeFilename, normalizeFilenameHook } from './modules/media/index.js'
|
|
export {
|
|
getNotificationTexts,
|
|
NOTIFICATION_FALLBACK,
|
|
resolveFormMessage,
|
|
} from './modules/notifications/index.js'
|
|
export type {
|
|
FormNotificationTexts,
|
|
NotificationsData,
|
|
NotificationTexts,
|
|
} from './modules/notifications/index.js'
|
|
export type { PagesOption, SystemPageRole } from './modules/pages/index.js'
|
|
export { ALL_SYSTEM_PAGE_ROLES, getSystemPagePath } from './modules/pages/index.js'
|
|
export type { GlobalQueryOptions } from './modules/payload/index.js'
|
|
export {
|
|
getGlobal,
|
|
getSiteIntegrations,
|
|
getSiteSettings,
|
|
SITE_INTEGRATIONS_SLUG,
|
|
SITE_SETTINGS_SLUG,
|
|
} from './modules/payload/index.js'
|
|
export { buildSecurityHeaders } from './modules/security/index.js'
|
|
export type { BuildSecurityHeadersArgs, SecurityHeader } from './modules/security/index.js'
|
|
export {
|
|
buildIconsMetadata,
|
|
buildOrganizationJsonLd,
|
|
validateFaviconField,
|
|
} from './modules/seo/index.js'
|
|
// Structured data (schema.org JSON-LD) — brand/sitelink signals for Google.
|
|
// WebSite (+ optional SearchAction), BreadcrumbList (per page), SiteNavigation.
|
|
export {
|
|
buildBreadcrumbJsonLd,
|
|
buildSiteNavigationJsonLd,
|
|
buildWebSiteJsonLd,
|
|
} from './modules/seo/index.js'
|
|
export type { PageMetadata, SeoMeta, SeoOption } from './modules/seo/index.js'
|
|
export { buildHreflangAlternates, buildMetadata, composeTitle } from './modules/seo/index.js'
|
|
export type { AutoFillMapping, RobotsRules, SitemapEntry } from './modules/seo/index.js'
|
|
export {
|
|
buildAutoFillMetaHook,
|
|
buildRobots,
|
|
buildSitemapEntries,
|
|
createMetadataGenerator,
|
|
createPageMetadata,
|
|
injectAutoFillMeta,
|
|
} from './modules/seo/index.js'
|
|
export { buildSlugField, toSlug } from './modules/slug/index.js'
|
|
// Storage — Cloudflare R2 media offload, configured from .env.
|
|
export { buildR2Storage } from './modules/storage/index.js'
|
|
|
|
export { ipalKit } from './plugin.js'
|
|
export type { IpalOptions } from './types.js'
|