Skip to content

Commit

Permalink
chore(core): rename commentsSetup to addOnDataset/setup
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobonamin committed Feb 22, 2024
1 parent 9bbca35 commit 033bf37
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions packages/sanity/src/core/studio/addOnDataset/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './setup'
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {type SanityClient} from '@sanity/client'
import {useCallback, useEffect, useMemo, useState} from 'react'

import {useClient} from '../../hooks'
import {DEFAULT_STUDIO_CLIENT_OPTIONS} from '../../studioClient'
import {useWorkspace} from '../workspace'
import {useClient} from '../../../hooks'
import {DEFAULT_STUDIO_CLIENT_OPTIONS} from '../../../studioClient'
import {useWorkspace} from '../../workspace'
import {CommentsSetupContext} from './CommentsSetupContext'
import {type CommentsSetupContextValue} from './types'

Expand All @@ -14,7 +14,7 @@ interface CommentsSetupProviderProps {
}

/**
* This providers sets the addon dataset client, currently called `comments` dataset.
* This provider sets the addon dataset client, currently called `comments` dataset.
* It also exposes a `runSetup` function that can be used to create the addon dataset if it does not exist.
* @beta
* @hidden
Expand Down
2 changes: 1 addition & 1 deletion packages/sanity/src/core/studio/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export * from './activeWorkspaceMatcher'
export * from './addOnDataset'
export * from './colorScheme'
export * from './commentsSetup'
export * from './components'
export * from './renderStudio'
export * from './source'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {orderBy} from 'lodash'
import {memo, type ReactNode, useCallback, useMemo, useState} from 'react'
import {
getPublishedId,
useCommentsSetup,
useCurrentUser,
useEditState,
useSchema,
Expand All @@ -13,7 +14,6 @@ import {
type CommentOperationsHookOptions,
useCommentOperations,
useCommentsEnabled,
useCommentsSetup,
} from '../../hooks'
import {useCommentsStore} from '../../store'
import {
Expand Down
1 change: 0 additions & 1 deletion packages/sanity/src/structure/comments/src/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from '../../../../core/studio/commentsSetup/useCommentsSetup'
export * from './use-comment-operations'
export * from './useComments'
export * from './useCommentsEnabled'
Expand Down

0 comments on commit 033bf37

Please sign in to comment.