Fixes https://github.com/payloadcms/payload/issues/13308 Adds support for a custom live preview component back, we previously supported this and it was allowed via the config types but it wasn't being rendered. Now we export the `useLivePreviewContext` hook and the original `LivePreviewWindow` component too so that end users can wrap the live preview functionality with anything custom that they may need
29 lines
752 B
TypeScript
29 lines
752 B
TypeScript
export const pagesSlug = 'pages'
|
|
export const tenantsSlug = 'tenants'
|
|
export const ssrPagesSlug = 'ssr'
|
|
export const customLivePreviewSlug = 'custom-live-preview'
|
|
export const ssrAutosavePagesSlug = 'ssr-autosave'
|
|
export const postsSlug = 'posts'
|
|
export const mediaSlug = 'media'
|
|
export const categoriesSlug = 'categories'
|
|
export const collectionLevelConfigSlug = 'collection-level-config'
|
|
export const usersSlug = 'users'
|
|
|
|
export const mobileBreakpoint = {
|
|
label: 'Mobile',
|
|
name: 'mobile',
|
|
width: 375,
|
|
height: 667,
|
|
}
|
|
|
|
export const desktopBreakpoint = {
|
|
label: 'Desktop',
|
|
name: 'desktop',
|
|
width: 1920,
|
|
height: 1080,
|
|
}
|
|
|
|
export const renderedPageTitleID = 'rendered-page-title'
|
|
|
|
export const localizedPageTitleID = 'localized-page-title'
|