/** * @pantheon-systems/puck-css * * Puck editor integration with Pantheon's P1 content platform. */ export { P1App } from './editor/P1App.js'; export type { P1AppProps } from './editor/P1App.js'; export { createP1Config, createNextConfig, createNextContentClient, PRODUCTION_BASE_URL } from './core/config.js'; export type { P1Config } from './core/config.js'; export { toP1Path } from './editor/utils/path.js'; export { P1AuthProvider, useP1Auth, DEMO_USERS, P1LoginPage, P1_LOGGED_IN_KEY, performLogout, } from './auth/index.js'; export type { AuthMode, AuthUser, P1AuthContextValue, P1AuthProviderProps, P1LoginPageProps, PerformLogoutConfig, LogoutOutcome, } from './auth/index.js'; export { P1PuckProvider } from './editor/P1PuckProvider.js'; export { P1PuckContext, useP1Puck } from './core/P1PuckContext.js'; export { PuckConfigProvider, usePuckConfig } from './core/PuckConfigContext.js'; export { NotificationProvider, NotificationContext, useNotifications } from './core/NotificationContext.js'; export { PresenceContext, usePresenceContext } from './core/PresenceContext.js'; export type { PresenceContextValue } from './core/PresenceContext.js'; export { useAutoSave } from './editor/useAutoSave.js'; export { useDocuments } from './editor/useDocuments.js'; export { useBranches } from './editor/useBranches.js'; export { useCheckpoints } from './versioning/useCheckpoints.js'; export { useVersions } from './versioning/useVersions.js'; export { usePresence } from './collaboration/usePresence.js'; export type { UsePresenceOptions, UsePresenceReturn } from './collaboration/usePresence.js'; export { useBranchPresence } from './collaboration/useBranchPresence.js'; export type { UseBranchPresenceOptions, UseBranchPresenceReturn } from './collaboration/useBranchPresence.js'; export { useSitePresence } from './collaboration/useSitePresence.js'; export type { UseSitePresenceOptions, UseSitePresenceReturn } from './collaboration/useSitePresence.js'; export { CommentTrigger, CommentThread, BlockCommentTrigger, useDocumentThreads, useThreadOverview, useThreadsEnabled, useThreadComments, usePostComment, applyThreadEvent, applyThreadOverview, appendThreadComment, storeThread, } from './features/threads/index.js'; export type { CommentTriggerProps, CommentThreadProps, BlockCommentTriggerProps, DocumentThreads, DocumentThreadsState, ThreadCommentsState, UsePostCommentOptions, PostCommentState, ThreadContext, ThreadContextType, ThreadSubject, } from './features/threads/index.js'; export { useP1Plugin } from './editor/useP1Plugin.js'; export type { UseP1PluginOptions } from './editor/useP1Plugin.js'; export { useP1Overrides } from './editor/useP1Overrides.js'; export type { UseP1OverridesOptions } from './editor/useP1Overrides.js'; export { useP1Editor } from './editor/useP1Editor.js'; export type { UseP1EditorOptions, UseP1EditorReturn, PuckProps, ReloadKind } from './editor/useP1Editor.js'; export { useFocusRegionReporting } from './collaboration/useFocusRegionReporting.js'; export type { UseFocusRegionReportingOptions, UseFocusRegionReportingReturn, } from './collaboration/useFocusRegionReporting.js'; export { useAgentEdit } from './agent/useAgentEdit.js'; export type { UseAgentEditOptions, UseAgentEditReturn, AgentEditParams, } from './agent/useAgentEdit.js'; export { useAgentTrigger } from './agent/useAgentTrigger.js'; export type { UseAgentTriggerOptions, UseAgentTriggerReturn, AgentAction, AgentTriggerResult, AgentTriggerStatus, } from './agent/useAgentTrigger.js'; export { EditorReloadOverlay } from './editor/components/EditorReloadOverlay.js'; export type { EditorReloadOverlayProps } from './editor/components/EditorReloadOverlay.js'; export { SaveIndicator } from './editor/components/SaveIndicator.js'; export { PublishButton } from './editor/components/PublishButton.js'; export { BranchSelector } from './editor/components/BranchSelector.js'; export { WorkstreamSwitcher } from './pds/components/WorkstreamSwitcher.js'; export type { WorkstreamSwitcherProps } from './pds/components/WorkstreamSwitcher.js'; export { PublishControl } from './pds/components/PublishControl.js'; export type { PublishControlProps, PublishControlLiveProps } from './pds/components/PublishControl.js'; export type { ChildPageNode, UnpublishChildPages, UnpublishTranslation } from './pds/utils/unpublishChildPages.js'; export { PublishPopover } from './pds/components/PublishPopover.js'; export type { PublishPopoverProps, PublishPopoverStatus } from './pds/components/PublishPopover.js'; export { HistoricalVersionBanner } from './versioning/components/HistoricalVersionBanner.js'; export type { HistoricalVersionBannerProps } from './versioning/components/HistoricalVersionBanner.js'; export { PuckDataSynchronizer } from './editor/components/PuckDataSynchronizer.js'; export type { PuckDataSynchronizerProps } from './editor/components/PuckDataSynchronizer.js'; export { Toast } from './editor/components/Toast.js'; export { NotificationContainer } from './editor/components/NotificationContainer.js'; export { PublishedStatusBadge } from './editor/components/PublishedStatusBadge.js'; export type { PublishedStatusBadgeProps } from './editor/components/PublishedStatusBadge.js'; export { VersionPublishedBadge } from './versioning/components/VersionPublishedBadge.js'; export type { VersionPublishedBadgeProps } from './versioning/components/VersionPublishedBadge.js'; export { CollaboratorAvatars, PresenceIndicator, AgentActivityBanner, FocusRegionHighlight, } from './collaboration/index.js'; export type { CollaboratorAvatarsProps, PresenceIndicatorProps, AgentActivityBannerProps, FocusRegionHighlightProps, } from './collaboration/index.js'; export { AgentActionButton, AgentActionModal, AgentStatusPanel, } from './agent/components/index.js'; export type { AgentActionButtonProps, AgentActionModalProps, AgentStatusPanelProps, } from './agent/components/index.js'; export { PropValueDisplay, PropDiffRow, PropDiffPanel, ComponentNode, ComponentTree, DiffHeader, VersionComparePage, VisualVersionCompare, BranchDiffHeader, BranchMergeCompare, DocumentDiffList, VisualBranchCompare, } from './versioning/components/version-compare/index.js'; export type { PropValueDisplayProps, PropDiffRowProps, PropDiffPanelProps, ComponentNodeProps, ComponentTreeProps, DiffHeaderProps, VersionComparePageProps, VisualVersionCompareProps, BranchDiffHeaderProps, BranchMergeCompareProps, DocumentDiffListProps, VisualBranchCompareProps, } from './versioning/components/version-compare/index.js'; export { ViewModeSelector, MergePreviewRenderer, MergePreviewPanel, } from './editor/components/merge-preview/index.js'; export type { ViewModeSelectorProps, ViewMode, MergePreviewRendererProps, MergePreviewPanelProps, } from './editor/components/merge-preview/index.js'; export { useMergePreview } from './editor/useMergePreview.js'; export type { UseMergePreviewReturn } from './editor/useMergePreview.js'; export { useMergeResolution } from './merge/useMergeResolution.js'; export type { DocumentResolutionStrategy, DocumentChangeType, DocumentResolution, UseMergeResolutionOptions, UseMergeResolutionReturn, } from './merge/useMergeResolution.js'; export { GoLiveFlow } from './go-live/GoLiveFlow.js'; export type { GoLiveFlowProps, GoLiveMode } from './go-live/GoLiveFlow.js'; export { ReviewChangesPage } from './go-live/ReviewChangesPage.js'; export type { ReviewChangesPageProps } from './go-live/ReviewChangesPage.js'; export { derivePublishState } from './go-live/publishState.js'; export type { PublishState } from './go-live/publishState.js'; export { useMainBranchPermissions } from './go-live/useMainBranchPermissions.js'; export { VersionItem, AgentCheckpointBadge, } from './versioning/components/version-history/index.js'; export type { VersionItemProps, AgentCheckpointBadgeProps, } from './versioning/components/version-history/index.js'; export { useConflictNotifications, ConflictNotificationToast, } from './merge/components/conflict-notifications/index.js'; export type { ConflictNotification, ConflictNotificationType, UseConflictNotificationsOptions, UseConflictNotificationsReturn, ConflictNotificationToastProps, } from './merge/components/conflict-notifications/index.js'; export { createP1Plugin, createP1Overrides, createMergePreviewPlugin } from './editor/plugin/index.js'; export type { P1PluginOptions, PuckPlugin, P1OverridesOptions, PuckOverrides, MergePreviewPluginOptions, } from './editor/plugin/index.js'; export { debounce } from './core/utils/debounce.js'; export { throttle } from './core/utils/throttle.js'; export { withRetry } from './core/utils/retry.js'; export { diffPuckData, getChangedComponents, countChanges, hasRootChanged, diffPuckDataWithPositions, diffProps, getReorderedComponents, } from './versioning/utils/diff.js'; export { createDiffMap, createHighlightedConfig, createHistoricalVersionConfig, } from './versioning/utils/highlightConfig.js'; export type { PuckConfig } from './versioning/utils/highlightConfig.js'; export { isPuckData as isPuckDataClassifier, classifyPuckFields, getReadablePropPath, groupFieldsByComponent, buildMergedSnapshot, } from './merge/utils/puckFieldClassifier.js'; export type { PuckFieldClassification, PuckComponentConflict, ResolutionMap, } from './merge/utils/puckFieldClassifier.js'; export { isPuckData, createBranchDocumentComparison, createBranchMergeComparison, } from './versioning/utils/branchDiff.js'; export type { BranchDocumentComparison, BranchMergeComparison, DocumentDiffSummary, } from './versioning/utils/branchDiff.js'; export { pathToComponentId, createFocusRegionMap, generateActorColor, } from './collaboration/utils/focusRegionMap.js'; export type { FocusHighlight } from './collaboration/utils/focusRegionMap.js'; export { createFocusHighlightConfig } from './collaboration/utils/focusHighlightConfig.js'; export { FocusHighlightContext, FocusHighlightProvider, useFocusHighlight, useFocusHighlightForComponent, } from './core/FocusHighlightContext.js'; export type { FocusHighlightContextValue, FocusHighlightProviderProps, } from './core/FocusHighlightContext.js'; export { createStablePluginArray } from './editor/utils/createStablePluginArray.js'; export { sanitizeRichtextDefaults } from './editor/utils/sanitizeRichtextDefaults.js'; export { P1_PRESETS, resolveFeatureConfig } from './core/featureConfig.js'; export type { P1FeatureConfig } from './core/featureConfig.js'; export type { SaveStatus, P1PuckConfig, P1PuckContextValue, P1PuckEditorProps, UseAutoSaveOptions, UseAutoSaveReturn, ComponentDiff, ComponentDiffWithPosition, PropDiff, VersionCompareOptions, NotificationSeverity, NotificationAction, Notification, AddNotificationOptions, NotificationContextValue, PresenceState, AgentStopTarget, } from './core/types.js'; export { aiPanelStore, useAIPanelOpen } from './editor/aiPanelStore.js'; export { useComponentRegistry } from './editor/useComponentRegistry.js'; export type { UseComponentRegistryOptions, UseComponentRegistryReturn, RegistrationResult, } from './editor/useComponentRegistry.js'; export type { ComponentDescriptor, ComponentProvenance, SerializedField, FieldAiMeta, RegistryIndex, } from './editor/utils/componentRegistry.js'; export type { PuckData, PuckComponentData, PuckRootData, Document, DocumentVersion, Branch, Checkpoint, P1ContentClientConfig, PageContent, PageListEntry, PageListResult, } from '@pantheon-systems/css-client'; export { SessionExpiredError } from '@pantheon-systems/css-client'; export type { ThumbnailMap, ThumbnailFC } from './editor/utils/buildThumbnailOverride.js'; export { buildLiveThumbnailDrawer } from './editor/thumbnails/buildLiveThumbnailDrawer.js'; export type { LiveThumbnailDrawerOptions } from './editor/thumbnails/buildLiveThumbnailDrawer.js'; export { LiveThumbnail } from './editor/thumbnails/LiveThumbnail.js'; export type { LiveThumbnailProps } from './editor/thumbnails/LiveThumbnail.js'; export { ThumbnailCard } from './editor/thumbnails/ThumbnailCard.js'; export type { ThumbnailCardProps } from './editor/thumbnails/ThumbnailCard.js'; export { humanizeComponentName } from './editor/thumbnails/humanizeComponentName.js'; export { normalizePath, stripTrailingSlash, isReservedPath, hasStaticAssetExtension, PATH_REGEX } from './data/paths.js'; export { isCanonicalTemplatePath, templatePathParamNames, defaultInstancePathFromTemplate, editorPathHref, publicPagePathHref, isRouteTemplatePath, listRouteTemplateKeys, matchConcretePathToTemplateParams, normalizeRoutePath, pagePathFromCatchAllSegments, pathSegments, pickTemplateSourcePath, resolveTemplateMatch, } from './data/route-templates.js'; export { isCrossPageRefTemplateString, encodePagesBlocksTemplate, flattenComponents, listConnectablePropKeys, getBlockPropsById, } from './data/cross-reference.js'; export { buildRemoteDatasourceRegistry } from './data/remote-datasources/remote-datasource-registry.js'; export type { RemoteDatasourceDefinition, RemoteDatasourceFieldDoc } from './data/remote-datasources/remote-datasource-registry.js'; export { suggestFieldForRole, autoMapFields } from './data/schema-heuristics.js'; export type { FieldRole } from './data/schema-heuristics.js'; export { sortItems, filterItems, applyCollectionOperators } from './data/collection-operators.js'; export { fetchHttpJsonRemoteDatasource } from './data/remote-datasources/fetch-http-json.js'; export type { RemoteDatasourceScope } from './data/remote-datasources/user-remote-datasource-types.js'; export { remoteDatasourceTemplateSuggestions, getActiveRemoteDatasourceInterpolation, } from './data/template-autocomplete.js'; export type { TemplateSuggestion } from './data/template-autocomplete.js'; export { applySemanticOps, computeSemanticOps } from './data/semantic-ops.js'; export type { SemanticOp } from './data/semantic-ops.js'; export { P1QueryProvider } from './data/query-provider.js'; export type { RouteRow, RouteKind } from './data/page-store.js'; export { primaryButton, secondaryButton, ghostButton, dangerButton, infoPanel, errorText, card, mono, muted, sectionLabel, backdrop, modalPanel, } from './data/styles.js'; export { P1RouterContext, useP1Router } from './p1/router-context.js'; export type { P1Router } from './p1/router-context.js'; export { Connectable, renderItemTemplate } from './editor/components/connectable.js'; export type { ConnectableItem, ConnectedItem } from './editor/components/connectable.js'; export { EditorClient, createRemoteDatasourceExplorerPlugin, createTemplatePreviewToolbarPlugin, createFieldConnectPlugin, wrapConfigForEditorPreview, createPreviewResolvePlugin, buildConnectPreviewConfig, ConnectPreviewHitStyles, ConnectFieldModal, TemplateAutocompleteLayer, useRemoteDatasources, useResolvePreview, usePublish, useSaveRemoteDatasource, useRemoveRemoteDatasource, useSavePreviewMeta, useLoadPageData, useEditorContext, useRemoteDatasourceContext, useP1Plugins, useResolvedPreviewState, } from './p1/editor/index.js'; export { RenderClient, } from './p1/pages/index.js'; export type { TemplateMetadata, TemplateContentItem, TemplateRootProps, Template, TemplateSummary, TemplateBinding, CreateTemplateParams, UpdateTemplateParams, TemplateStore, PermissionsOutcome, UseResolvePermissionsOptions, UseResolvePermissionsReturn, } from './features/content-type-templates/index.js'; export { createInMemoryTemplateStore, createApiTemplateStore, useResolvePermissions, } from './features/content-type-templates/index.js'; export { validateStructure } from './features/content-type-templates/validation/structural-validation.js'; export type { ValidationError, ValidationResult } from './features/content-type-templates/validation/structural-validation.js';