-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds support for versions ids in Studio releases (#54)
* fix: update assistTasksStatusId to support version documents * fix: plugin ImageContext sync id * fix: add forced version for AssistInspector * fix: use selectedReleaseId in assistDocument context and ImageContext * fix: always use assistableDocumentId from useAssistDocumentContextValue * fix: uses context dependent id for new documents * fix(plugin): introduce AssitDocumentLayout * fix(plugin): restore final dot to idPrefix * fix: correctly uses assistableDocumentId for presence and image caption gen * chore(deps): use latest studio for testing * fix: removed source from package.json as it is covered by exports * chore(deps): regen package-lock.json * chore(deps): migrate husky --------- Co-authored-by: Snorre Eskeland Brekke <snorre.e.brekke@gmail.com>
- Loading branch information
1 parent
96169a8
commit 6b1e8d4
Showing
21 changed files
with
17,377 additions
and
17,747 deletions.
There are no files selected for viewing
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,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
Large diffs are not rendered by default.
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
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
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
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,12 @@ | ||
import {DocumentLayoutProps} from 'sanity' | ||
|
||
import {AssistDocumentContextProvider} from './AssistDocumentContextProvider' | ||
|
||
export function AssistDocumentLayout(props: DocumentLayoutProps) { | ||
const {documentId, documentType} = props | ||
return ( | ||
<AssistDocumentContextProvider documentType={documentType} documentId={documentId}> | ||
{props.renderDefault(props)} | ||
</AssistDocumentContextProvider> | ||
) | ||
} |
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
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
Oops, something went wrong.