import observeFields from './observeFields'
import resolveRefType from './utils/resolveRefType'
import {createPathObserver} from './createPathObserver'
import {createPreviewObserver} from './createPreviewObserver'

export {default} from './components/SanityDefaultPreview'
export {default as SanityDefaultPreview} from './components/SanityDefaultPreview'
export {default as PreviewFields} from './components/PreviewFields'
export {default as SanityPreview} from './components/SanityPreview'
export {default as PreviewSubscriber} from './components/PreviewSubscriber'
export {default as WithVisibility} from './components/WithVisibility'

export const observePaths = createPathObserver(observeFields)
export const observeForPreview = createPreviewObserver(observePaths, resolveRefType)

import observeFields from './observeFields'
import resolveRefType from './utils/resolveRefType'
import {createPathObserver} from './createPathObserver'
import {createPreviewObserver} from './createPreviewObserver'

export {default} from './components/SanityPreview'
export {default as SanityDefaultPreview} from './components/SanityDefaultPreview'
export {default as PreviewFields} from './components/PreviewFields'
export {default as SanityPreview} from './components/SanityPreview'
export {default as PreviewSubscriber} from './components/PreviewSubscriber'
export {default as WithVisibility} from './components/WithVisibility'

export const observePaths = createPathObserver(observeFields)
export const observeForPreview = createPreviewObserver(observePaths, resolveRefType)

Fix wrong reexport from base/preview
[base] Fix wrong reexport from base/preview
