@sanity/assist 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.esm.js +2 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/components/ImageContext.tsx +2 -8
package/README.md
CHANGED
|
@@ -844,7 +844,7 @@ on how to run this plugin with hotreload in the studio.
|
|
|
844
844
|
|
|
845
845
|
### Release new version
|
|
846
846
|
|
|
847
|
-
Run ["CI & Release" workflow](https://github.com/sanity-io/
|
|
847
|
+
Run ["CI & Release" workflow](https://github.com/sanity-io/assist/actions/workflows/main.yml).
|
|
848
848
|
Make sure to select the main branch and check "Release new version".
|
|
849
849
|
|
|
850
850
|
Semantic release will only release on configured branches, so it is safe to run release on any branch.
|
package/dist/index.esm.js
CHANGED
|
@@ -3557,16 +3557,10 @@ const translateActions = {
|
|
|
3557
3557
|
}
|
|
3558
3558
|
}, ImageContext = createContext({});
|
|
3559
3559
|
function ImageContextProvider(props) {
|
|
3560
|
-
const { schemaType, path, value, readOnly } = props, assetRef = value?.asset?._ref, {
|
|
3561
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3562
|
-
// @ts-ignore this is a valid option available in `corel` - Remove after corel is merged to next
|
|
3563
|
-
selectedReleaseId
|
|
3564
|
-
} = useDocumentPane(), [assetRefState, setAssetRefState] = useState(assetRef), { assistableDocumentId, documentSchemaType } = useAssistDocumentContext(), { config, status } = useAiAssistanceConfig(), apiClient = useApiClient(config?.__customApiClient), { generateCaption } = useGenerateCaption(apiClient), { isSyncing } = useSyncState(
|
|
3560
|
+
const { schemaType, path, value, readOnly } = props, assetRef = value?.asset?._ref, { selectedReleaseId } = useDocumentPane(), [assetRefState, setAssetRefState] = useState(assetRef), { assistableDocumentId, documentSchemaType } = useAssistDocumentContext(), { config, status } = useAiAssistanceConfig(), apiClient = useApiClient(config?.__customApiClient), { generateCaption } = useGenerateCaption(apiClient), { isSyncing } = useSyncState(
|
|
3565
3561
|
getPublishedId(assistableDocumentId),
|
|
3566
3562
|
documentSchemaType.name,
|
|
3567
|
-
|
|
3568
|
-
// @ts-ignore this is a valid option available in `corel` - Remove after corel is merged to next
|
|
3569
|
-
selectedReleaseId ? { version: selectedReleaseId } : void 0
|
|
3563
|
+
selectedReleaseId
|
|
3570
3564
|
), isShowingOlderRevision = !!usePaneRouter().params?.rev;
|
|
3571
3565
|
useEffect(() => {
|
|
3572
3566
|
const descriptionField = getDescriptionFieldOption(schemaType);
|