@actuate-media/cms-core 0.1.0 → 0.2.1
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/LICENSE +21 -0
- package/dist/__tests__/actions/document-crud.test.js +1 -1
- package/dist/__tests__/actions/document-crud.test.js.map +1 -1
- package/dist/__tests__/scheduling/scheduling.test.js +1 -1
- package/dist/__tests__/scheduling/scheduling.test.js.map +1 -1
- package/dist/__tests__/security/access.test.js +1 -1
- package/dist/__tests__/security/access.test.js.map +1 -1
- package/dist/__tests__/security/reauth.test.js +1 -1
- package/dist/__tests__/security/reauth.test.js.map +1 -1
- package/dist/__tests__/security/sanitize.test.js +1 -1
- package/dist/__tests__/security/sanitize.test.js.map +1 -1
- package/dist/__tests__/webhooks/webhooks.test.js +2 -2
- package/dist/__tests__/webhooks/webhooks.test.js.map +1 -1
- package/dist/actions.js +4 -4
- package/dist/actions.js.map +1 -1
- package/dist/api/handler-factory.d.ts.map +1 -1
- package/dist/api/handler-factory.js +26 -7
- package/dist/api/handler-factory.js.map +1 -1
- package/dist/api/handlers.d.ts +1 -1
- package/dist/api/handlers.d.ts.map +1 -1
- package/dist/api/handlers.js +339 -75
- package/dist/api/handlers.js.map +1 -1
- package/dist/api/index.d.ts +3 -3
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +2 -2
- package/dist/api/index.js.map +1 -1
- package/dist/auth/index.d.ts +10 -10
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +8 -8
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/oauth.d.ts +1 -1
- package/dist/auth/oauth.d.ts.map +1 -1
- package/dist/auth/oauth.js +1 -1
- package/dist/auth/oauth.js.map +1 -1
- package/dist/auth/password.d.ts +2 -2
- package/dist/auth/password.d.ts.map +1 -1
- package/dist/auth/password.js +1 -1
- package/dist/auth/password.js.map +1 -1
- package/dist/auth/providers/github.d.ts +1 -1
- package/dist/auth/providers/github.d.ts.map +1 -1
- package/dist/auth/providers/google.d.ts +1 -1
- package/dist/auth/providers/google.d.ts.map +1 -1
- package/dist/auth/providers/microsoft.d.ts +1 -1
- package/dist/auth/providers/microsoft.d.ts.map +1 -1
- package/dist/cache/index.d.ts +1 -1
- package/dist/cache/index.d.ts.map +1 -1
- package/dist/codegen/index.d.ts.map +1 -1
- package/dist/codegen/index.js +2 -2
- package/dist/codegen/index.js.map +1 -1
- package/dist/collections/index.d.ts +1 -1
- package/dist/collections/index.d.ts.map +1 -1
- package/dist/config/define.d.ts +8 -0
- package/dist/config/define.d.ts.map +1 -0
- package/dist/config/define.js +7 -0
- package/dist/config/define.js.map +1 -0
- package/dist/config/index.d.ts +3 -3
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +1 -1
- package/dist/config/index.js.map +1 -1
- package/dist/config/types.d.ts +25 -3
- package/dist/config/types.d.ts.map +1 -1
- package/dist/content/index.d.ts +7 -7
- package/dist/content/index.d.ts.map +1 -1
- package/dist/content/index.js +4 -4
- package/dist/content/index.js.map +1 -1
- package/dist/db/adapters/mysql.js +1 -1
- package/dist/db/adapters/mysql.js.map +1 -1
- package/dist/db/adapters/postgres.js +1 -1
- package/dist/db/adapters/postgres.js.map +1 -1
- package/dist/db/adapters/sqlite.js +1 -1
- package/dist/db/adapters/sqlite.js.map +1 -1
- package/dist/fields/index.d.ts +1 -1
- package/dist/fields/index.d.ts.map +1 -1
- package/dist/forms/index.d.ts +4 -4
- package/dist/forms/index.d.ts.map +1 -1
- package/dist/forms/index.js +2 -2
- package/dist/forms/index.js.map +1 -1
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.d.ts.map +1 -1
- package/dist/graphql/index.js +4 -4
- package/dist/graphql/index.js.map +1 -1
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/index.d.ts +72 -72
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +40 -40
- package/dist/index.js.map +1 -1
- package/dist/media/index.d.ts +2 -2
- package/dist/media/index.d.ts.map +1 -1
- package/dist/media/index.js +1 -1
- package/dist/media/index.js.map +1 -1
- package/dist/middleware.d.ts +10 -2
- package/dist/middleware.d.ts.map +1 -1
- package/dist/middleware.js +1 -1
- package/dist/middleware.js.map +1 -1
- package/dist/next/preview.js +1 -1
- package/dist/next/preview.js.map +1 -1
- package/dist/next.d.ts +2 -2
- package/dist/next.d.ts.map +1 -1
- package/dist/next.js +33 -1
- package/dist/next.js.map +1 -1
- package/dist/search/index.js +1 -1
- package/dist/search/index.js.map +1 -1
- package/dist/security/access.d.ts +1 -1
- package/dist/security/access.d.ts.map +1 -1
- package/dist/security/audit.js +2 -2
- package/dist/security/audit.js.map +1 -1
- package/dist/security/captcha.d.ts +32 -0
- package/dist/security/captcha.d.ts.map +1 -0
- package/dist/security/captcha.js +101 -0
- package/dist/security/captcha.js.map +1 -0
- package/dist/security/index.d.ts +32 -30
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +20 -19
- package/dist/security/index.js.map +1 -1
- package/dist/security/middleware.d.ts +2 -2
- package/dist/security/middleware.d.ts.map +1 -1
- package/dist/security/middleware.js +2 -2
- package/dist/security/middleware.js.map +1 -1
- package/dist/security/reauth.js +2 -2
- package/dist/security/reauth.js.map +1 -1
- package/dist/seo/index.d.ts +8 -8
- package/dist/seo/index.d.ts.map +1 -1
- package/dist/seo/index.js +4 -4
- package/dist/seo/index.js.map +1 -1
- package/dist/setup/index.js +1 -1
- package/dist/setup/index.js.map +1 -1
- package/dist/upgrade/index.d.ts +6 -6
- package/dist/upgrade/index.d.ts.map +1 -1
- package/dist/upgrade/index.js +3 -3
- package/dist/upgrade/index.js.map +1 -1
- package/dist/upgrade/upgrade-pr.d.ts +1 -1
- package/dist/upgrade/upgrade-pr.d.ts.map +1 -1
- package/dist/upgrade/upgrade-pr.js +107 -17
- package/dist/upgrade/upgrade-pr.js.map +1 -1
- package/dist/upgrade/version-check.d.ts +10 -2
- package/dist/upgrade/version-check.d.ts.map +1 -1
- package/dist/upgrade/version-check.js +57 -11
- package/dist/upgrade/version-check.js.map +1 -1
- package/dist/webhooks/index.js +2 -2
- package/dist/webhooks/index.js.map +1 -1
- package/dist/workflow/index.js +1 -1
- package/dist/workflow/index.js.map +1 -1
- package/package.json +21 -13
- package/prisma/cms-schema.prisma +237 -0
- package/prisma/migrations/0001_init/migration.sql +384 -0
- package/prisma/migrations/0002_folders/migration.sql +39 -0
- package/prisma/migrations/0003_search_and_webhooks/migration.sql +50 -0
- package/prisma/migrations/migration_lock.toml +3 -0
- package/prisma/schema.prisma +485 -0
- package/prisma/seed.ts +82 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
export { defineConfig } from "./config/index";
|
|
2
|
-
export type { ActuateCMSConfig, CollectionDefinition, CollectionSEOConfig, FieldDefinition, GlobalDefinition, AuthConfig, PluginDefinition, DatabaseAdapter, StorageAdapter, CacheAdapter, EmailAdapter, SchedulerAdapter, RateLimitAdapter, AdminBrandingConfig, AdminConfig, I18nConfig, AccessConfig, AccessFunction, PasswordPolicy, BlockDefinition, } from "./config/types";
|
|
3
|
-
export { CollectionRegistry, collectionRegistry } from "./collections/index";
|
|
4
|
-
export { BUILT_IN_FIELDS, getFieldType, getAllFieldTypes } from "./fields/index";
|
|
5
|
-
export type { FieldTypeDefinition } from "./fields/index";
|
|
6
|
-
export { createSession, verifySession, revokeSession, refreshSession, hashPassword, verifyPassword, validatePasswordPolicy, checkPasswordBreach, generateTOTPSecret, verifyTOTP, generateBackupCodes, generateTOTPUri, initiateOAuth, handleCallback, linkAccount, googleProvider, githubProvider, microsoftProvider, generateCodeVerifier, generateCodeChallenge, getAuthorizationUrl, exchangeCodeForTokens, getUserProfile, handleOAuthCallback, } from "./auth/index";
|
|
7
|
-
export type { SessionPayload, SessionOptions, OAuthState, OAuthCallbackResult, OAuthProviderConfig, OAuthProviders, OAuthUserProfile, } from "./auth/index";
|
|
8
|
-
export { checkAccess, getPermissionsForRole, filterFieldsByRole, filterWritableFields, applyFieldAccess, generateCsrfToken, validateCsrfToken, createRateLimiter, sanitizeHtml, stripHtml, validateMimeType, checkMagicBytes, validateWebhookUrl, resolveAndCheck, logEvent, getAuditLog, getSecurityHeaders, applySecurityMiddleware, checkBreached, detectLoginAnomaly, checkBruteForce, requiresReauth, verifyReauth, isIpAllowed, enforceSessionLimits, encryptField, decryptField, getCorsHeaders, generateCspNonce, buildCspHeader, generateSecurityTxt, generateApiKey, validateApiKeyScope, } from "./security/index";
|
|
9
|
-
export { searchDocuments } from "./search/index";
|
|
10
|
-
export type { SearchOptions, SearchResult, SearchResponse } from "./search/index";
|
|
11
|
-
export { dispatch as dispatchWebhook, createEndpoint as createWebhookEndpoint, listEndpoints as listWebhookEndpoints, updateEndpoint as updateWebhookEndpoint, deleteEndpoint as deleteWebhookEndpoint, getDeliveries as getWebhookDeliveries, processRetries as processWebhookRetries, signPayload, verifySignature, } from "./webhooks/index";
|
|
12
|
-
export type { WebhookEvent, WebhookEndpointInput, WebhookPayload } from "./webhooks/index";
|
|
13
|
-
export { buildLocaleFilter, buildLocaleFallbackQuery, getLocales, resolveLocale } from "./i18n/index";
|
|
14
|
-
export { cached, revalidateTag, buildCacheKey, getDocumentCacheTags } from "./cache/index";
|
|
15
|
-
export { extractPlainText, extractExcerpt, hashContent, registerSchemaType, getSchemaType, generateJsonLd, renderJsonLdScript, buildContentGraph, serializeGraph, findIncomingReferences, handleContentApiRequest, sanitizeForPublicApi, } from "./content/index";
|
|
16
|
-
export type { SchemaOrgType, StructuredDataMapping, GraphNode, GraphEdge, ContentGraph, PublicApiRequest, PublicApiResponse } from "./content/index";
|
|
17
|
-
export { generateTypes } from "./codegen/index";
|
|
18
|
-
export { createDocument, updateDocument, deleteDocument, duplicateDocument, getDocument, listDocuments, getGlobal, updateGlobal, } from "./actions";
|
|
19
|
-
export type { ActionContext, ListOptions, ListResult } from "./actions";
|
|
20
|
-
export { withActuateCMS, getAdminPath } from "./next";
|
|
21
|
-
export { createCMSMiddleware } from "./middleware";
|
|
22
|
-
export type { ActuateMiddlewareConfig } from "./middleware";
|
|
23
|
-
export { getDB, initDB, isDBInitialized } from "./db";
|
|
24
|
-
export { createDatabaseClient, createDatabaseClientFromEnv, detectProvider } from "./db/create-adapter";
|
|
25
|
-
export type { DatabaseConfig, DatabaseProvider } from "./db/create-adapter";
|
|
26
|
-
export { createCMSClient } from "./client";
|
|
27
|
-
export type { CMSClient, CollectionClient, GlobalClient, FindOptions, FindResult } from "./client";
|
|
28
|
-
export { checkForUpdates, parseSemver, fetchChangelog, parseChangelog, createUpgradePR } from "./upgrade/index";
|
|
29
|
-
export type { VersionInfo, ChangelogEntry, UpgradePROptions, UpgradePRResult } from "./upgrade/index";
|
|
30
|
-
export { getReverseRelationships, checkOrphanedReferences } from "./relationships/index";
|
|
31
|
-
export type { ReverseRelationship } from "./relationships/index";
|
|
32
|
-
export { createNotificationProvider } from "./notifications/index";
|
|
33
|
-
export type { Notification, NotificationProvider } from "./notifications/index";
|
|
34
|
-
export { exportUserData, eraseUserData, applyRetentionPolicies } from "./privacy/index";
|
|
35
|
-
export type { UserDataExport, RetentionPolicy, ErasureResult } from "./privacy/index";
|
|
36
|
-
export { advanceWorkflow, rejectWorkflowStep, getWorkflowState } from "./workflows/index";
|
|
37
|
-
export type { WorkflowDefinition, WorkflowStep, WorkflowInstance } from "./workflows/index";
|
|
38
|
-
export { canTransition, getAvailableTransitions, transitionDocument } from "./workflow/index";
|
|
39
|
-
export type { WorkflowStage } from "./workflow/index";
|
|
40
|
-
export { createSSEPresenceAdapter } from "./presence/index";
|
|
41
|
-
export type { PresenceUser, PresenceProvider } from "./presence/index";
|
|
42
|
-
export { getScheduleCalendar, processScheduledPublish, processScheduledUnpublish, schedulingCronHandler } from "./scheduling/index";
|
|
43
|
-
export type { ScheduledAction, ScheduleCalendarEntry } from "./scheduling/index";
|
|
44
|
-
export { saveAsTemplate, createFromTemplate, listTemplates } from "./templates/index";
|
|
45
|
-
export type { ContentTemplate } from "./templates/index";
|
|
46
|
-
export { resolveSite, getDefaultSite, listSites, createSiteContext } from "./multisite/index";
|
|
47
|
-
export type { SiteConfig, SiteContext } from "./multisite/index";
|
|
48
|
-
export { BUILT_IN_RULES, auditContent } from "./a11y/index";
|
|
49
|
-
export type { AuditRule, AuditViolation, AuditReport, Severity } from "./a11y/index";
|
|
50
|
-
export { createBackupProvider } from "./backup/index";
|
|
51
|
-
export type { BackupMetadata, BackupProvider } from "./backup/index";
|
|
52
|
-
export { checkHealth, databaseHealthCheck, handleHealthRequest } from "./health/index";
|
|
53
|
-
export type { HealthStatus, HealthCheck } from "./health/index";
|
|
54
|
-
export { createPreviewAdapter } from "./preview/index";
|
|
55
|
-
export type { PreviewSession, PreviewAdapter } from "./preview/index";
|
|
56
|
-
export { checkSetupRequired, createInitialAdmin, autoSeedAdmin } from "./setup/index";
|
|
57
|
-
export type { SetupStatus, CreateAdminInput, SetupResult } from "./setup/index";
|
|
58
|
-
export { captureAttribution, storeAttribution, getStoredAttribution, trackPageView, getAttributionForSubmission, trackFormStart, trackFormSubmit, trackFormError, pushDataLayerEvent, getDefaultConfirmation, getDefaultAnalyticsConfig, } from "./forms/index";
|
|
59
|
-
export type { AttributionData, FormAnalyticsConfig, FormConfirmation } from "./forms/index";
|
|
60
|
-
export { setStorageAdapter, getStorageAdapter } from "./storage/index";
|
|
61
|
-
export type { StorageAdapter as MediaStorageAdapter } from "./storage/index";
|
|
62
|
-
export { optimizeImage, getImageMetadata, formatBytes } from "./media/index";
|
|
63
|
-
export type { OptimizationResult, OptimizeOptions } from "./media/index";
|
|
64
|
-
export { createApiRouter } from "./api/index";
|
|
65
|
-
export type { ApiRoute, ApiMiddleware, ApiRouter } from "./api/index";
|
|
66
|
-
export { createGraphQLHandler } from "./graphql/index";
|
|
67
|
-
export type { GraphQLHandlerOptions } from "./graphql/index";
|
|
68
|
-
export { analyzeContent, calculateReadability, stripHtmlTags, countSyllables, detectPassiveVoice, splitSentences, splitParagraphs } from "./seo/index";
|
|
69
|
-
export type { SEOAnalysisResult, SEOCheck, AnalysisInput, ReadabilityResult } from "./seo/index";
|
|
70
|
-
export { generateOpenAPISpec } from "./api/openapi";
|
|
71
|
-
export { generateMetaTags, renderMetaTagsHtml, generateNextMetadata, resolveTitle, getDocumentTitle, generateLlmsTxt, } from "./seo/index";
|
|
72
|
-
export type { MetaTagInput, TitleTemplateConfig, TitleVariable, LlmsTxtConfig, LlmsTxtPage, } from "./seo/index";
|
|
1
|
+
export { defineConfig } from "./config/index.js";
|
|
2
|
+
export type { ActuateCMSConfig, CollectionDefinition, CollectionSEOConfig, FieldDefinition, GlobalDefinition, AuthConfig, PluginDefinition, DatabaseAdapter, StorageAdapter, CacheAdapter, EmailAdapter, SchedulerAdapter, RateLimitAdapter, AdminBrandingConfig, AdminConfig, I18nConfig, AccessConfig, AccessFunction, PasswordPolicy, BlockDefinition, } from "./config/types.js";
|
|
3
|
+
export { CollectionRegistry, collectionRegistry } from "./collections/index.js";
|
|
4
|
+
export { BUILT_IN_FIELDS, getFieldType, getAllFieldTypes } from "./fields/index.js";
|
|
5
|
+
export type { FieldTypeDefinition } from "./fields/index.js";
|
|
6
|
+
export { createSession, verifySession, revokeSession, refreshSession, hashPassword, verifyPassword, validatePasswordPolicy, checkPasswordBreach, generateTOTPSecret, verifyTOTP, generateBackupCodes, generateTOTPUri, initiateOAuth, handleCallback, linkAccount, googleProvider, githubProvider, microsoftProvider, generateCodeVerifier, generateCodeChallenge, getAuthorizationUrl, exchangeCodeForTokens, getUserProfile, handleOAuthCallback, } from "./auth/index.js";
|
|
7
|
+
export type { SessionPayload, SessionOptions, OAuthState, OAuthCallbackResult, OAuthProviderConfig, OAuthProviders, OAuthUserProfile, } from "./auth/index.js";
|
|
8
|
+
export { checkAccess, getPermissionsForRole, filterFieldsByRole, filterWritableFields, applyFieldAccess, generateCsrfToken, validateCsrfToken, createRateLimiter, sanitizeHtml, stripHtml, validateMimeType, checkMagicBytes, validateWebhookUrl, resolveAndCheck, logEvent, getAuditLog, getSecurityHeaders, applySecurityMiddleware, checkBreached, detectLoginAnomaly, checkBruteForce, requiresReauth, verifyReauth, isIpAllowed, enforceSessionLimits, encryptField, decryptField, getCorsHeaders, generateCspNonce, buildCspHeader, generateSecurityTxt, generateApiKey, validateApiKeyScope, } from "./security/index.js";
|
|
9
|
+
export { searchDocuments } from "./search/index.js";
|
|
10
|
+
export type { SearchOptions, SearchResult, SearchResponse } from "./search/index.js";
|
|
11
|
+
export { dispatch as dispatchWebhook, createEndpoint as createWebhookEndpoint, listEndpoints as listWebhookEndpoints, updateEndpoint as updateWebhookEndpoint, deleteEndpoint as deleteWebhookEndpoint, getDeliveries as getWebhookDeliveries, processRetries as processWebhookRetries, signPayload, verifySignature, } from "./webhooks/index.js";
|
|
12
|
+
export type { WebhookEvent, WebhookEndpointInput, WebhookPayload } from "./webhooks/index.js";
|
|
13
|
+
export { buildLocaleFilter, buildLocaleFallbackQuery, getLocales, resolveLocale } from "./i18n/index.js";
|
|
14
|
+
export { cached, revalidateTag, buildCacheKey, getDocumentCacheTags } from "./cache/index.js";
|
|
15
|
+
export { extractPlainText, extractExcerpt, hashContent, registerSchemaType, getSchemaType, generateJsonLd, renderJsonLdScript, buildContentGraph, serializeGraph, findIncomingReferences, handleContentApiRequest, sanitizeForPublicApi, } from "./content/index.js";
|
|
16
|
+
export type { SchemaOrgType, StructuredDataMapping, GraphNode, GraphEdge, ContentGraph, PublicApiRequest, PublicApiResponse } from "./content/index.js";
|
|
17
|
+
export { generateTypes } from "./codegen/index.js";
|
|
18
|
+
export { createDocument, updateDocument, deleteDocument, duplicateDocument, getDocument, listDocuments, getGlobal, updateGlobal, } from "./actions.js";
|
|
19
|
+
export type { ActionContext, ListOptions, ListResult } from "./actions.js";
|
|
20
|
+
export { withActuateCMS, getAdminPath } from "./next.js";
|
|
21
|
+
export { createCMSMiddleware } from "./middleware.js";
|
|
22
|
+
export type { ActuateMiddlewareConfig } from "./middleware.js";
|
|
23
|
+
export { getDB, initDB, isDBInitialized } from "./db.js";
|
|
24
|
+
export { createDatabaseClient, createDatabaseClientFromEnv, detectProvider } from "./db/create-adapter.js";
|
|
25
|
+
export type { DatabaseConfig, DatabaseProvider } from "./db/create-adapter.js";
|
|
26
|
+
export { createCMSClient } from "./client.js";
|
|
27
|
+
export type { CMSClient, CollectionClient, GlobalClient, FindOptions, FindResult } from "./client.js";
|
|
28
|
+
export { checkForUpdates, parseSemver, fetchChangelog, parseChangelog, createUpgradePR } from "./upgrade/index.js";
|
|
29
|
+
export type { VersionInfo, ChangelogEntry, UpgradePROptions, UpgradePRResult } from "./upgrade/index.js";
|
|
30
|
+
export { getReverseRelationships, checkOrphanedReferences } from "./relationships/index.js";
|
|
31
|
+
export type { ReverseRelationship } from "./relationships/index.js";
|
|
32
|
+
export { createNotificationProvider } from "./notifications/index.js";
|
|
33
|
+
export type { Notification, NotificationProvider } from "./notifications/index.js";
|
|
34
|
+
export { exportUserData, eraseUserData, applyRetentionPolicies } from "./privacy/index.js";
|
|
35
|
+
export type { UserDataExport, RetentionPolicy, ErasureResult } from "./privacy/index.js";
|
|
36
|
+
export { advanceWorkflow, rejectWorkflowStep, getWorkflowState } from "./workflows/index.js";
|
|
37
|
+
export type { WorkflowDefinition, WorkflowStep, WorkflowInstance } from "./workflows/index.js";
|
|
38
|
+
export { canTransition, getAvailableTransitions, transitionDocument } from "./workflow/index.js";
|
|
39
|
+
export type { WorkflowStage } from "./workflow/index.js";
|
|
40
|
+
export { createSSEPresenceAdapter } from "./presence/index.js";
|
|
41
|
+
export type { PresenceUser, PresenceProvider } from "./presence/index.js";
|
|
42
|
+
export { getScheduleCalendar, processScheduledPublish, processScheduledUnpublish, schedulingCronHandler } from "./scheduling/index.js";
|
|
43
|
+
export type { ScheduledAction, ScheduleCalendarEntry } from "./scheduling/index.js";
|
|
44
|
+
export { saveAsTemplate, createFromTemplate, listTemplates } from "./templates/index.js";
|
|
45
|
+
export type { ContentTemplate } from "./templates/index.js";
|
|
46
|
+
export { resolveSite, getDefaultSite, listSites, createSiteContext } from "./multisite/index.js";
|
|
47
|
+
export type { SiteConfig, SiteContext } from "./multisite/index.js";
|
|
48
|
+
export { BUILT_IN_RULES, auditContent } from "./a11y/index.js";
|
|
49
|
+
export type { AuditRule, AuditViolation, AuditReport, Severity } from "./a11y/index.js";
|
|
50
|
+
export { createBackupProvider } from "./backup/index.js";
|
|
51
|
+
export type { BackupMetadata, BackupProvider } from "./backup/index.js";
|
|
52
|
+
export { checkHealth, databaseHealthCheck, handleHealthRequest } from "./health/index.js";
|
|
53
|
+
export type { HealthStatus, HealthCheck } from "./health/index.js";
|
|
54
|
+
export { createPreviewAdapter } from "./preview/index.js";
|
|
55
|
+
export type { PreviewSession, PreviewAdapter } from "./preview/index.js";
|
|
56
|
+
export { checkSetupRequired, createInitialAdmin, autoSeedAdmin } from "./setup/index.js";
|
|
57
|
+
export type { SetupStatus, CreateAdminInput, SetupResult } from "./setup/index.js";
|
|
58
|
+
export { captureAttribution, storeAttribution, getStoredAttribution, trackPageView, getAttributionForSubmission, trackFormStart, trackFormSubmit, trackFormError, pushDataLayerEvent, getDefaultConfirmation, getDefaultAnalyticsConfig, } from "./forms/index.js";
|
|
59
|
+
export type { AttributionData, FormAnalyticsConfig, FormConfirmation } from "./forms/index.js";
|
|
60
|
+
export { setStorageAdapter, getStorageAdapter } from "./storage/index.js";
|
|
61
|
+
export type { StorageAdapter as MediaStorageAdapter } from "./storage/index.js";
|
|
62
|
+
export { optimizeImage, getImageMetadata, formatBytes } from "./media/index.js";
|
|
63
|
+
export type { OptimizationResult, OptimizeOptions } from "./media/index.js";
|
|
64
|
+
export { createApiRouter } from "./api/index.js";
|
|
65
|
+
export type { ApiRoute, ApiMiddleware, ApiRouter } from "./api/index.js";
|
|
66
|
+
export { createGraphQLHandler } from "./graphql/index.js";
|
|
67
|
+
export type { GraphQLHandlerOptions } from "./graphql/index.js";
|
|
68
|
+
export { analyzeContent, calculateReadability, stripHtmlTags, countSyllables, detectPassiveVoice, splitSentences, splitParagraphs } from "./seo/index.js";
|
|
69
|
+
export type { SEOAnalysisResult, SEOCheck, AnalysisInput, ReadabilityResult } from "./seo/index.js";
|
|
70
|
+
export { generateOpenAPISpec } from "./api/openapi.js";
|
|
71
|
+
export { generateMetaTags, renderMetaTagsHtml, generateNextMetadata, resolveTitle, getDocumentTitle, generateLlmsTxt, } from "./seo/index.js";
|
|
72
|
+
export type { MetaTagInput, TitleTemplateConfig, TitleVariable, LlmsTxtConfig, LlmsTxtPage, } from "./seo/index.js";
|
|
73
73
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,UAAU,EACV,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAGhF,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACpF,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAG7D,OAAO,EACL,aAAa,EACb,aAAa,EACb,aAAa,EACb,cAAc,EACd,YAAY,EACZ,cAAc,EACd,sBAAsB,EACtB,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E,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAG/F,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,YAAY,EAAE,cAAc,IAAI,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAGhF,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChF,YAAY,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAG5E,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAGhE,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,kBAAkB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC1J,YAAY,EAAE,iBAAiB,EAAE,QAAQ,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGpG,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,eAAe,GAChB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,YAAY,EACZ,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,WAAW,GACZ,MAAM,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
1
|
// Configuration
|
|
2
|
-
export { defineConfig } from "./config/index";
|
|
2
|
+
export { defineConfig } from "./config/index.js";
|
|
3
3
|
// Collections
|
|
4
|
-
export { CollectionRegistry, collectionRegistry } from "./collections/index";
|
|
4
|
+
export { CollectionRegistry, collectionRegistry } from "./collections/index.js";
|
|
5
5
|
// Fields
|
|
6
|
-
export { BUILT_IN_FIELDS, getFieldType, getAllFieldTypes } from "./fields/index";
|
|
6
|
+
export { BUILT_IN_FIELDS, getFieldType, getAllFieldTypes } from "./fields/index.js";
|
|
7
7
|
// Auth
|
|
8
|
-
export { createSession, verifySession, revokeSession, refreshSession, hashPassword, verifyPassword, validatePasswordPolicy, checkPasswordBreach, generateTOTPSecret, verifyTOTP, generateBackupCodes, generateTOTPUri, initiateOAuth, handleCallback, linkAccount, googleProvider, githubProvider, microsoftProvider, generateCodeVerifier, generateCodeChallenge, getAuthorizationUrl, exchangeCodeForTokens, getUserProfile, handleOAuthCallback, } from "./auth/index";
|
|
8
|
+
export { createSession, verifySession, revokeSession, refreshSession, hashPassword, verifyPassword, validatePasswordPolicy, checkPasswordBreach, generateTOTPSecret, verifyTOTP, generateBackupCodes, generateTOTPUri, initiateOAuth, handleCallback, linkAccount, googleProvider, githubProvider, microsoftProvider, generateCodeVerifier, generateCodeChallenge, getAuthorizationUrl, exchangeCodeForTokens, getUserProfile, handleOAuthCallback, } from "./auth/index.js";
|
|
9
9
|
// Security
|
|
10
|
-
export { checkAccess, getPermissionsForRole, filterFieldsByRole, filterWritableFields, applyFieldAccess, generateCsrfToken, validateCsrfToken, createRateLimiter, sanitizeHtml, stripHtml, validateMimeType, checkMagicBytes, validateWebhookUrl, resolveAndCheck, logEvent, getAuditLog, getSecurityHeaders, applySecurityMiddleware, checkBreached, detectLoginAnomaly, checkBruteForce, requiresReauth, verifyReauth, isIpAllowed, enforceSessionLimits, encryptField, decryptField, getCorsHeaders, generateCspNonce, buildCspHeader, generateSecurityTxt, generateApiKey, validateApiKeyScope, } from "./security/index";
|
|
10
|
+
export { checkAccess, getPermissionsForRole, filterFieldsByRole, filterWritableFields, applyFieldAccess, generateCsrfToken, validateCsrfToken, createRateLimiter, sanitizeHtml, stripHtml, validateMimeType, checkMagicBytes, validateWebhookUrl, resolveAndCheck, logEvent, getAuditLog, getSecurityHeaders, applySecurityMiddleware, checkBreached, detectLoginAnomaly, checkBruteForce, requiresReauth, verifyReauth, isIpAllowed, enforceSessionLimits, encryptField, decryptField, getCorsHeaders, generateCspNonce, buildCspHeader, generateSecurityTxt, generateApiKey, validateApiKeyScope, } from "./security/index.js";
|
|
11
11
|
// Search
|
|
12
|
-
export { searchDocuments } from "./search/index";
|
|
12
|
+
export { searchDocuments } from "./search/index.js";
|
|
13
13
|
// Webhooks
|
|
14
|
-
export { dispatch as dispatchWebhook, createEndpoint as createWebhookEndpoint, listEndpoints as listWebhookEndpoints, updateEndpoint as updateWebhookEndpoint, deleteEndpoint as deleteWebhookEndpoint, getDeliveries as getWebhookDeliveries, processRetries as processWebhookRetries, signPayload, verifySignature, } from "./webhooks/index";
|
|
14
|
+
export { dispatch as dispatchWebhook, createEndpoint as createWebhookEndpoint, listEndpoints as listWebhookEndpoints, updateEndpoint as updateWebhookEndpoint, deleteEndpoint as deleteWebhookEndpoint, getDeliveries as getWebhookDeliveries, processRetries as processWebhookRetries, signPayload, verifySignature, } from "./webhooks/index.js";
|
|
15
15
|
// i18n
|
|
16
|
-
export { buildLocaleFilter, buildLocaleFallbackQuery, getLocales, resolveLocale } from "./i18n/index";
|
|
16
|
+
export { buildLocaleFilter, buildLocaleFallbackQuery, getLocales, resolveLocale } from "./i18n/index.js";
|
|
17
17
|
// Cache
|
|
18
|
-
export { cached, revalidateTag, buildCacheKey, getDocumentCacheTags } from "./cache/index";
|
|
18
|
+
export { cached, revalidateTag, buildCacheKey, getDocumentCacheTags } from "./cache/index.js";
|
|
19
19
|
// Content
|
|
20
|
-
export { extractPlainText, extractExcerpt, hashContent, registerSchemaType, getSchemaType, generateJsonLd, renderJsonLdScript, buildContentGraph, serializeGraph, findIncomingReferences, handleContentApiRequest, sanitizeForPublicApi, } from "./content/index";
|
|
20
|
+
export { extractPlainText, extractExcerpt, hashContent, registerSchemaType, getSchemaType, generateJsonLd, renderJsonLdScript, buildContentGraph, serializeGraph, findIncomingReferences, handleContentApiRequest, sanitizeForPublicApi, } from "./content/index.js";
|
|
21
21
|
// Codegen
|
|
22
|
-
export { generateTypes } from "./codegen/index";
|
|
22
|
+
export { generateTypes } from "./codegen/index.js";
|
|
23
23
|
// Server Actions
|
|
24
|
-
export { createDocument, updateDocument, deleteDocument, duplicateDocument, getDocument, listDocuments, getGlobal, updateGlobal, } from "./actions";
|
|
24
|
+
export { createDocument, updateDocument, deleteDocument, duplicateDocument, getDocument, listDocuments, getGlobal, updateGlobal, } from "./actions.js";
|
|
25
25
|
// Next.js Integration
|
|
26
|
-
export { withActuateCMS, getAdminPath } from "./next";
|
|
26
|
+
export { withActuateCMS, getAdminPath } from "./next.js";
|
|
27
27
|
// Middleware
|
|
28
|
-
export { createCMSMiddleware } from "./middleware";
|
|
28
|
+
export { createCMSMiddleware } from "./middleware.js";
|
|
29
29
|
// Database (lazy init)
|
|
30
|
-
export { getDB, initDB, isDBInitialized } from "./db";
|
|
30
|
+
export { getDB, initDB, isDBInitialized } from "./db.js";
|
|
31
31
|
// Database adapters
|
|
32
|
-
export { createDatabaseClient, createDatabaseClientFromEnv, detectProvider } from "./db/create-adapter";
|
|
32
|
+
export { createDatabaseClient, createDatabaseClientFromEnv, detectProvider } from "./db/create-adapter.js";
|
|
33
33
|
// Client
|
|
34
|
-
export { createCMSClient } from "./client";
|
|
34
|
+
export { createCMSClient } from "./client.js";
|
|
35
35
|
// Upgrade
|
|
36
|
-
export { checkForUpdates, parseSemver, fetchChangelog, parseChangelog, createUpgradePR } from "./upgrade/index";
|
|
36
|
+
export { checkForUpdates, parseSemver, fetchChangelog, parseChangelog, createUpgradePR } from "./upgrade/index.js";
|
|
37
37
|
// Relationships
|
|
38
|
-
export { getReverseRelationships, checkOrphanedReferences } from "./relationships/index";
|
|
38
|
+
export { getReverseRelationships, checkOrphanedReferences } from "./relationships/index.js";
|
|
39
39
|
// Notifications
|
|
40
|
-
export { createNotificationProvider } from "./notifications/index";
|
|
40
|
+
export { createNotificationProvider } from "./notifications/index.js";
|
|
41
41
|
// Privacy / GDPR
|
|
42
|
-
export { exportUserData, eraseUserData, applyRetentionPolicies } from "./privacy/index";
|
|
42
|
+
export { exportUserData, eraseUserData, applyRetentionPolicies } from "./privacy/index.js";
|
|
43
43
|
// Workflows
|
|
44
|
-
export { advanceWorkflow, rejectWorkflowStep, getWorkflowState } from "./workflows/index";
|
|
44
|
+
export { advanceWorkflow, rejectWorkflowStep, getWorkflowState } from "./workflows/index.js";
|
|
45
45
|
// Workflow (approval system)
|
|
46
|
-
export { canTransition, getAvailableTransitions, transitionDocument } from "./workflow/index";
|
|
46
|
+
export { canTransition, getAvailableTransitions, transitionDocument } from "./workflow/index.js";
|
|
47
47
|
// Presence
|
|
48
|
-
export { createSSEPresenceAdapter } from "./presence/index";
|
|
48
|
+
export { createSSEPresenceAdapter } from "./presence/index.js";
|
|
49
49
|
// Scheduling
|
|
50
|
-
export { getScheduleCalendar, processScheduledPublish, processScheduledUnpublish, schedulingCronHandler } from "./scheduling/index";
|
|
50
|
+
export { getScheduleCalendar, processScheduledPublish, processScheduledUnpublish, schedulingCronHandler } from "./scheduling/index.js";
|
|
51
51
|
// Templates
|
|
52
|
-
export { saveAsTemplate, createFromTemplate, listTemplates } from "./templates/index";
|
|
52
|
+
export { saveAsTemplate, createFromTemplate, listTemplates } from "./templates/index.js";
|
|
53
53
|
// Multisite
|
|
54
|
-
export { resolveSite, getDefaultSite, listSites, createSiteContext } from "./multisite/index";
|
|
54
|
+
export { resolveSite, getDefaultSite, listSites, createSiteContext } from "./multisite/index.js";
|
|
55
55
|
// Accessibility
|
|
56
|
-
export { BUILT_IN_RULES, auditContent } from "./a11y/index";
|
|
56
|
+
export { BUILT_IN_RULES, auditContent } from "./a11y/index.js";
|
|
57
57
|
// Backup
|
|
58
|
-
export { createBackupProvider } from "./backup/index";
|
|
58
|
+
export { createBackupProvider } from "./backup/index.js";
|
|
59
59
|
// Health
|
|
60
|
-
export { checkHealth, databaseHealthCheck, handleHealthRequest } from "./health/index";
|
|
60
|
+
export { checkHealth, databaseHealthCheck, handleHealthRequest } from "./health/index.js";
|
|
61
61
|
// Preview
|
|
62
|
-
export { createPreviewAdapter } from "./preview/index";
|
|
62
|
+
export { createPreviewAdapter } from "./preview/index.js";
|
|
63
63
|
// Setup (first-run)
|
|
64
|
-
export { checkSetupRequired, createInitialAdmin, autoSeedAdmin } from "./setup/index";
|
|
64
|
+
export { checkSetupRequired, createInitialAdmin, autoSeedAdmin } from "./setup/index.js";
|
|
65
65
|
// Forms
|
|
66
|
-
export { captureAttribution, storeAttribution, getStoredAttribution, trackPageView, getAttributionForSubmission, trackFormStart, trackFormSubmit, trackFormError, pushDataLayerEvent, getDefaultConfirmation, getDefaultAnalyticsConfig, } from "./forms/index";
|
|
66
|
+
export { captureAttribution, storeAttribution, getStoredAttribution, trackPageView, getAttributionForSubmission, trackFormStart, trackFormSubmit, trackFormError, pushDataLayerEvent, getDefaultConfirmation, getDefaultAnalyticsConfig, } from "./forms/index.js";
|
|
67
67
|
// Storage (media upload abstraction)
|
|
68
|
-
export { setStorageAdapter, getStorageAdapter } from "./storage/index";
|
|
68
|
+
export { setStorageAdapter, getStorageAdapter } from "./storage/index.js";
|
|
69
69
|
// Media optimization
|
|
70
|
-
export { optimizeImage, getImageMetadata, formatBytes } from "./media/index";
|
|
70
|
+
export { optimizeImage, getImageMetadata, formatBytes } from "./media/index.js";
|
|
71
71
|
// API
|
|
72
|
-
export { createApiRouter } from "./api/index";
|
|
72
|
+
export { createApiRouter } from "./api/index.js";
|
|
73
73
|
// GraphQL
|
|
74
|
-
export { createGraphQLHandler } from "./graphql/index";
|
|
74
|
+
export { createGraphQLHandler } from "./graphql/index.js";
|
|
75
75
|
// SEO Analysis
|
|
76
|
-
export { analyzeContent, calculateReadability, stripHtmlTags, countSyllables, detectPassiveVoice, splitSentences, splitParagraphs } from "./seo/index";
|
|
76
|
+
export { analyzeContent, calculateReadability, stripHtmlTags, countSyllables, detectPassiveVoice, splitSentences, splitParagraphs } from "./seo/index.js";
|
|
77
77
|
// OpenAPI
|
|
78
|
-
export { generateOpenAPISpec } from "./api/openapi";
|
|
78
|
+
export { generateOpenAPISpec } from "./api/openapi.js";
|
|
79
79
|
// SEO
|
|
80
|
-
export { generateMetaTags, renderMetaTagsHtml, generateNextMetadata, resolveTitle, getDocumentTitle, generateLlmsTxt, } from "./seo/index";
|
|
80
|
+
export { generateMetaTags, renderMetaTagsHtml, generateNextMetadata, resolveTitle, getDocumentTitle, generateLlmsTxt, } from "./seo/index.js";
|
|
81
81
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAwBjD,cAAc;AACd,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEhF,SAAS;AACT,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAGpF,OAAO;AACP,OAAO,EACL,aAAa,EACb,aAAa,EACb,aAAa,EACb,cAAc,EACd,YAAY,EACZ,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,UAAU,EACV,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,cAAc,EACd,WAAW,EACX,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACd,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AAWzB,WAAW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AE,MAAM,gBAAgB,CAAC;AAG1J,UAAU;AACV,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM;AACN,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,eAAe,GAChB,MAAM,gBAAgB,CAAC"}
|
package/dist/media/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { optimizeImage, getImageMetadata, formatBytes, } from './optimize';
|
|
2
|
-
export type { OptimizationResult, OptimizeOptions, } from './optimize';
|
|
1
|
+
export { optimizeImage, getImageMetadata, formatBytes, } from './optimize.js';
|
|
2
|
+
export type { OptimizationResult, OptimizeOptions, } from './optimize.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/media/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,WAAW,GACZ,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/media/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,WAAW,GACZ,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,kBAAkB,EAClB,eAAe,GAChB,MAAM,eAAe,CAAC"}
|
package/dist/media/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { optimizeImage, getImageMetadata, formatBytes, } from './optimize';
|
|
1
|
+
export { optimizeImage, getImageMetadata, formatBytes, } from './optimize.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/media/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/media/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,WAAW,GACZ,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/media/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,WAAW,GACZ,MAAM,eAAe,CAAC"}
|
package/dist/middleware.d.ts
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import type { ActuateCMSConfig } from './config/types';
|
|
2
1
|
export interface ActuateMiddlewareConfig {
|
|
3
2
|
adminPath?: string;
|
|
4
3
|
ipAllowlist?: string[];
|
|
5
4
|
}
|
|
6
|
-
|
|
5
|
+
interface CMSMiddlewareConfigLike {
|
|
6
|
+
admin?: {
|
|
7
|
+
path?: string;
|
|
8
|
+
ipAllowlist?: string[];
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
};
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
export declare function createCMSMiddleware(cmsConfig: CMSMiddlewareConfigLike): (request: Request) => Promise<Response | null>;
|
|
14
|
+
export {};
|
|
7
15
|
//# sourceMappingURL=middleware.d.ts.map
|
package/dist/middleware.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,uBAAuB;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;CACvB;AAED,UAAU,uBAAuB;IAC/B,KAAK,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IACxE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AAED,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,uBAAuB,IAKhC,SAAS,OAAO,KAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAqDhF"}
|
package/dist/middleware.js
CHANGED
package/dist/middleware.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.js","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"middleware.js","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAYjD,MAAM,UAAU,mBAAmB,CAAC,SAAkC;IACpE,MAAM,SAAS,GAAG,SAAS,CAAC,KAAK,EAAE,IAAI,IAAI,QAAQ,CAAA;IACnD,MAAM,WAAW,GAAG,SAAS,CAAC,KAAK,EAAE,WAAW,CAAA;IAChD,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,EAAE,CAAA;IAE3C,OAAO,KAAK,UAAU,aAAa,CAAC,OAAgB;QAClD,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;QAEhC,MAAM,YAAY,GAAG,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA;QACvD,MAAM,aAAa,GAAG,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;QAEzD,IAAI,CAAC,YAAY,IAAI,CAAC,aAAa,EAAE,CAAC;YACpC,OAAO,IAAI,CAAA;QACb,CAAC;QAED,sCAAsC;QACtC,IAAI,YAAY,IAAI,WAAW,EAAE,MAAM,EAAE,CAAC;YACxC,MAAM,QAAQ,GACZ,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE;gBACpE,OAAO,CAAC,OAA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GAAG,IAAI,CAAC,CAAA;AAC7C,CAAC;AAED,SAAS,UAAU,CAAC,EAAU;IAC5B,MAAM,KAAK,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;IACvC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAE,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAE,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAE,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAE,CAAC,KAAK,CAAC,CAAA;AACrF,CAAC"}
|
package/dist/next/preview.js
CHANGED
package/dist/next/preview.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview.js","sourceRoot":"","sources":["../../src/next/preview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"preview.js","sourceRoot":"","sources":["../../src/next/preview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAO3D,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC1C,OAAgB,EAChB,OAA2B;IAE3B,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACjC,MAAM,KAAK,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAE5C,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;IAEpC,MAAM,OAAO,GAAG,oBAAoB,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;IACjE,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;IAE1D,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;IAEtC,OAAO;QACL,KAAK,EAAE,IAAI;QACX,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC;AACJ,CAAC"}
|
package/dist/next.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { ActuateCMSConfig } from './config/types';
|
|
1
|
+
import type { ActuateCMSConfig } from './config/types.js';
|
|
2
2
|
export interface NextConfigWithActuate {
|
|
3
3
|
[key: string]: unknown;
|
|
4
4
|
}
|
|
5
5
|
/** Wrap a Next.js configuration with Actuate CMS settings. */
|
|
6
|
-
export declare function withActuateCMS(cmsConfig: ActuateCMSConfig
|
|
6
|
+
export declare function withActuateCMS(cmsConfig: Partial<ActuateCMSConfig>, nextConfig?: NextConfigWithActuate): NextConfigWithActuate;
|
|
7
7
|
/** Returns the configured admin path (reads from env at runtime). */
|
|
8
8
|
export declare function getAdminPath(): string;
|
|
9
9
|
//# sourceMappingURL=next.d.ts.map
|
package/dist/next.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAEzD,MAAM,WAAW,qBAAqB;IACpC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AA+BD,8DAA8D;AAC9D,wBAAgB,cAAc,CAC5B,SAAS,EAAE,OAAO,CAAC,gBAAgB,CAAC,EACpC,UAAU,GAAE,qBAA0B,GACrC,qBAAqB,CAsCvB;AAED,qEAAqE;AACrE,wBAAgB,YAAY,IAAI,MAAM,CAErC"}
|
package/dist/next.js
CHANGED
|
@@ -1,9 +1,41 @@
|
|
|
1
1
|
const DEFAULT_ADMIN_PATH = '/admin';
|
|
2
|
+
const CMS_EXTERNAL_PACKAGES = [
|
|
3
|
+
'@actuate-media/cms-core',
|
|
4
|
+
'sharp',
|
|
5
|
+
'jose',
|
|
6
|
+
'pg',
|
|
7
|
+
'@prisma/client',
|
|
8
|
+
'@prisma/adapter-pg',
|
|
9
|
+
];
|
|
10
|
+
/** @actuate-media packages transpiled for Next.js (merged into transpilePackages).
|
|
11
|
+
* cms-core is NOT included here because it's in CMS_EXTERNAL_PACKAGES --
|
|
12
|
+
* Turbopack forbids a package appearing in both lists. */
|
|
13
|
+
const ACTUATE_PACKAGES = [
|
|
14
|
+
'@actuate-media/cms-admin',
|
|
15
|
+
'@actuate-media/platform-vercel',
|
|
16
|
+
'@actuate-media/platform-aws',
|
|
17
|
+
'@actuate-media/plugin-seo',
|
|
18
|
+
'@actuate-media/plugin-forms',
|
|
19
|
+
'@actuate-media/plugin-media',
|
|
20
|
+
'@actuate-media/plugin-email',
|
|
21
|
+
'@actuate-media/plugin-blocks',
|
|
22
|
+
'@actuate-media/plugin-navigation',
|
|
23
|
+
'@actuate-media/plugin-redirects',
|
|
24
|
+
'@actuate-media/plugin-ai',
|
|
25
|
+
'@actuate-media/plugin-commerce',
|
|
26
|
+
];
|
|
2
27
|
/** Wrap a Next.js configuration with Actuate CMS settings. */
|
|
3
28
|
export function withActuateCMS(cmsConfig, nextConfig = {}) {
|
|
4
29
|
const adminPath = cmsConfig.admin?.path ?? DEFAULT_ADMIN_PATH;
|
|
30
|
+
const existingExternals = nextConfig.serverExternalPackages ?? [];
|
|
31
|
+
const mergedExternals = [...new Set([...existingExternals, ...CMS_EXTERNAL_PACKAGES])];
|
|
32
|
+
const existingTranspile = nextConfig.transpilePackages ?? [];
|
|
33
|
+
const mergedTranspile = [...new Set([...existingTranspile, ...ACTUATE_PACKAGES])]
|
|
34
|
+
.filter(pkg => !mergedExternals.includes(pkg));
|
|
5
35
|
return {
|
|
6
36
|
...nextConfig,
|
|
37
|
+
serverExternalPackages: mergedExternals,
|
|
38
|
+
transpilePackages: mergedTranspile,
|
|
7
39
|
experimental: {
|
|
8
40
|
...nextConfig.experimental,
|
|
9
41
|
serverActions: {
|
|
@@ -24,7 +56,7 @@ export function withActuateCMS(cmsConfig, nextConfig = {}) {
|
|
|
24
56
|
env: {
|
|
25
57
|
...nextConfig.env,
|
|
26
58
|
ACTUATE_ADMIN_PATH: adminPath,
|
|
27
|
-
ACTUATE_COLLECTIONS: Object.keys(cmsConfig.collections).join(','),
|
|
59
|
+
ACTUATE_COLLECTIONS: Object.keys(cmsConfig.collections ?? {}).join(','),
|
|
28
60
|
},
|
|
29
61
|
};
|
|
30
62
|
}
|
package/dist/next.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next.js","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAMA,MAAM,kBAAkB,GAAG,QAAQ,CAAA;AAEnC,8DAA8D;AAC9D,MAAM,UAAU,cAAc,CAC5B,
|
|
1
|
+
{"version":3,"file":"next.js","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAMA,MAAM,kBAAkB,GAAG,QAAQ,CAAA;AAEnC,MAAM,qBAAqB,GAAG;IAC5B,yBAAyB;IACzB,OAAO;IACP,MAAM;IACN,IAAI;IACJ,gBAAgB;IAChB,oBAAoB;CACrB,CAAA;AAED;;2DAE2D;AAC3D,MAAM,gBAAgB,GAAG;IACvB,0BAA0B;IAC1B,gCAAgC;IAChC,6BAA6B;IAC7B,2BAA2B;IAC3B,6BAA6B;IAC7B,6BAA6B;IAC7B,6BAA6B;IAC7B,8BAA8B;IAC9B,kCAAkC;IAClC,iCAAiC;IACjC,0BAA0B;IAC1B,gCAAgC;CACjC,CAAA;AAED,8DAA8D;AAC9D,MAAM,UAAU,cAAc,CAC5B,SAAoC,EACpC,aAAoC,EAAE;IAEtC,MAAM,SAAS,GAAG,SAAS,CAAC,KAAK,EAAE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AAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;SACxE;KACF,CAAA;AACH,CAAC;AAED,qEAAqE;AACrE,MAAM,UAAU,YAAY;IAC1B,OAAO,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,kBAAkB,CAAA;AAC7D,CAAC"}
|
package/dist/search/index.js
CHANGED
package/dist/search/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/search/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/search/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AA2BjC;;;GAGG;AACH,SAAS,SAAS,CAAC,KAAa;IAC9B,MAAM,KAAK,GAAG,KAAK;SAChB,OAAO,CAAC,UAAU,EAAE,GAAG,CAAC;SACxB,IAAI,EAAE;SACN,KAAK,CAAC,KAAK,CAAC;SACZ,MAAM,CAAC,OAAO,CAAC;SACf,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACxB,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC3B,CAAC;AAED,+EAA+E;AAC/E,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,KAAa,EACb,UAAyB,EAAE;IAE3B,MAAM,EAAE,GAAG,KAAK,EAAO,CAAC;IACxB,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,GAAG,CAAC,EAAE,QAAQ,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC;IACxE,MAAM,MAAM,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,QAAQ,CAAC;IAErC,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC,IAAI,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,GAAG,GAAG,CAAC,GAAG,KAAK;gBACpD,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;YAE3B,OAAO;gBACL,EAAE,EAAE,GAAG,CAAC,EAAE;gBACV,KAAK,EAAE,GAAG,CAAC,KAAK,IAAI,EAAE;gBACtB,IAAI,EAAE,GAAG,CAAC,IAAI,IAAI,EAAE;gBACpB,UAAU,EAAE,GAAG,CAAC,UAAU;gBAC1B,OAAO;gBACP,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBACrE,UAAU,EAAE,CAAC,KAAK,CAAC;aACpB,CAAC;QACJ,CAAC,CAAC;QACF,KAAK;QACL,IAAI;QACJ,QAAQ;KACT,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access.d.ts","sourceRoot":"","sources":["../../src/security/access.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"access.d.ts","sourceRoot":"","sources":["../../src/security/access.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE5D,MAAM,MAAM,eAAe,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAC;AAElE,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC5D,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AASD,oFAAoF;AACpF,wBAAgB,WAAW,CACzB,QAAQ,EAAE,IAAI,EACd,YAAY,EAAE,IAAI,GACjB,OAAO,CAET;AAED,wDAAwD;AACxD,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,GAAG,UAAU,EAAE,CAkB9D;AAED,kFAAkF;AAClF,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,EACvC,IAAI,EAAE,eAAe,GACpB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAe1C;AAED,+EAA+E;AAC/E,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,EACvC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,IAAI,EAAE,eAAe,GACpB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAgBlC;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,CACpC,SAAS,EAAE,MAAM,GAAG,OAAO,EAC3B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,EACvC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,IAAI,EAAE,eAAe,GACpB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CA6BlC"}
|
package/dist/security/audit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getDB } from '../db';
|
|
1
|
+
import { getDB } from '../db.js';
|
|
2
2
|
/** Record an audit log event. */
|
|
3
3
|
export async function logEvent(event) {
|
|
4
4
|
try {
|
|
@@ -29,7 +29,7 @@ export async function getAuditLog(options = {}) {
|
|
|
29
29
|
const [entries, total] = await Promise.all([
|
|
30
30
|
db.auditLog.findMany({
|
|
31
31
|
where,
|
|
32
|
-
orderBy: {
|
|
32
|
+
orderBy: { createdAt: 'desc' },
|
|
33
33
|
skip: (page - 1) * pageSize,
|
|
34
34
|
take: pageSize,
|
|
35
35
|
}),
|