@sanity/assist
6.2.36.2.4
README.md~
README.mdModified+2−2
Index: package/README.md
===================================================================
--- package/README.md
+++ package/README.md
@@ -143,10 +143,10 @@
To limit which users can see the AI Assist actions in the Studio, use a custom-plugin after `assist()`
that filters out the inspector and actions, based on user properties:
```ts
-import {CurrentUser, defineConfig} from 'sanity'
import {assist} from '@sanity/assist'
+import {CurrentUser, defineConfig} from 'sanity'
export default defineConfig({
// ...
plugins: [
// ...
@@ -918,11 +918,11 @@
or other custom actions into the AI Assist document and field action menus, use `fieldActions` plugin config.
Because of react hook linting, we recommend defining the `useExampleFieldActions` outside the plugin config:
```ts
+import {assist, type AssistFieldActionProps, defineAssistFieldAction} from '@sanity/assist'
//sanity.config.ts
import {defineConfig} from 'sanity'
-import {assist, type AssistFieldActionProps, defineAssistFieldAction} from '@sanity/assist'
function useExampleFieldActions(props: AssistFieldActionProps) {
return useMemo(
() => [
defineAssistFieldAction({