feat!: rename @payloadcms/ui/client to @payloadcms/ui, and other auto-suggestion & exports improvements (#6848)
**BREAKING:** All `@payloadcms/ui/client` exports have been renamed to `@payloadcms/ui`. A simple find & replace across your entire project will be enough to migrate. This change greatly improves import auto-completions in IDEs which lack proper support for package.json exports, like Webstorm.
This commit is contained in:
@@ -2,13 +2,7 @@
|
||||
|
||||
import type { FormState } from 'payload'
|
||||
|
||||
import {
|
||||
useConfig,
|
||||
useDrawerSlug,
|
||||
useFieldProps,
|
||||
useModal,
|
||||
useTranslation,
|
||||
} from '@payloadcms/ui/client'
|
||||
import { useConfig, useDrawerSlug, useFieldProps, useModal, useTranslation } from '@payloadcms/ui'
|
||||
import { getFormState, reduceFieldsToValues } from '@payloadcms/ui/shared'
|
||||
import React, { Fragment, useState } from 'react'
|
||||
import { Editor, Range, Transforms } from 'slate'
|
||||
|
||||
Reference in New Issue
Block a user