-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(tasks): move CommentsSetupProvider to core
- Loading branch information
1 parent
fd5bb2f
commit 8d1e0c4
Showing
13 changed files
with
87 additions
and
79 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...cture/comments/src/context/setup/index.ts → ...ty/src/core/studio/commentsSetup/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './CommentsSetupContext' | ||
export * from './CommentsSetupProvider' | ||
export * from './types' | ||
export * from './useCommentsSetup' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import {type SanityClient} from '@sanity/client' | ||
|
||
/** | ||
* @beta | ||
* @hidden | ||
*/ | ||
export interface CommentsSetupContextValue { | ||
/** | ||
* Addon dataset client, currently called `comments` dataset. | ||
*/ | ||
client: SanityClient | null | ||
isRunningSetup: boolean | ||
/** | ||
* Function to create the addon dataset if it does not exist. | ||
*/ | ||
runSetup: () => Promise<SanityClient | null> | ||
} |
7 changes: 6 additions & 1 deletion
7
...re/comments/src/hooks/useCommentsSetup.ts → .../studio/commentsSetup/useCommentsSetup.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/sanity/src/structure/comments/plugin/studio-layout/CommentsStudioLayout.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 2 additions & 7 deletions
9
packages/sanity/src/structure/comments/src/__workshop__/CommentsProviderStory.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
packages/sanity/src/structure/comments/src/context/setup/types.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
export * from '../../../../core/studio/commentsSetup/useCommentsSetup' | ||
export * from './use-comment-operations' | ||
export * from './useComments' | ||
export * from './useCommentsEnabled' | ||
export * from './useCommentsIntent' | ||
export * from './useCommentsOnboarding' | ||
export * from './useCommentsSelectedPath' | ||
export * from './useCommentsSetup' | ||
export * from './useCommentsUpsell' | ||
export * from './useResolveCommentsEnabled' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters