chore: partial esm conversion of next package
This commit is contained in:
@@ -4,8 +4,8 @@ import type { Dispatch } from 'react'
|
||||
|
||||
import { createContext, useContext } from 'react'
|
||||
|
||||
import type { usePopupWindow } from '../usePopupWindow'
|
||||
import type { SizeReducerAction } from './sizeReducer'
|
||||
import type { usePopupWindow } from '../usePopupWindow.d.ts'
|
||||
import type { SizeReducerAction } from './sizeReducer.d.ts'
|
||||
|
||||
export interface LivePreviewContextType {
|
||||
appIsReady: boolean
|
||||
|
||||
@@ -4,11 +4,11 @@ import type { LivePreviewConfig } from 'payload/config'
|
||||
import { DndContext } from '@dnd-kit/core'
|
||||
import React, { useCallback, useEffect, useState } from 'react'
|
||||
|
||||
import type { usePopupWindow } from '../usePopupWindow'
|
||||
import type { usePopupWindow } from '../usePopupWindow.d.ts'
|
||||
|
||||
import { customCollisionDetection } from './collisionDetection'
|
||||
import { LivePreviewContext } from './context'
|
||||
import { sizeReducer } from './sizeReducer'
|
||||
import { customCollisionDetection } from './collisionDetection.js'
|
||||
import { LivePreviewContext } from './context.js'
|
||||
import { sizeReducer } from './sizeReducer.js'
|
||||
|
||||
export type LivePreviewProviderProps = {
|
||||
appIsReady?: boolean
|
||||
|
||||
Reference in New Issue
Block a user