chore: partial esm conversion of next package

This commit is contained in:
Jarrod Flesch
2024-03-07 09:54:11 -05:00
parent afb93eda2c
commit e06022e4d4
78 changed files with 284 additions and 263 deletions

View File

@@ -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

View File

@@ -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