Skip to content

Commit

Permalink
Merge remote-tracking branch 'sanity/main' into feat/fallback-to-lang…
Browse files Browse the repository at this point in the history
…uage-filter
  • Loading branch information
LiamMartens committed Mar 16, 2022
2 parents 1981eef + 29f72b3 commit 09e627b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# CHANGELOG

## v0.1.2
## v0.1.3
* The plugin will not show the language dropdown anymore for schemas that do not have `i18n` enabled. This version also brings support for the `@sanity/language-filter` plugin for non `i18n` schemas.

## v0.1.2
* Fixed import to `ConfirmDeleteDialog`

## v0.1.1
* [#32](https://github.com/sanity-io/document-internationalization/issues/32) Fixes default and custom flag implementations

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sanity/document-internationalization",
"version": "0.1.2",
"version": "0.1.3",
"license": "MIT",
"engines": {
"node": ">=14"
Expand Down
2 changes: 1 addition & 1 deletion src/.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ declare module '@sanity/desk-tool/lib/components/confirmDeleteDialog/ConfirmDele
onCancel?: () => void;
onConfirm?: () => void;
}>;
export default ConfirmDeleteDialog;
export { ConfirmDeleteDialog };
}

declare module '@sanity/desk-tool/lib/components/enhanceWithReferringDocuments' {
Expand Down
2 changes: 1 addition & 1 deletion src/actions/DeleteWithi18nAction.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import TrashIcon from 'part:@sanity/base/trash-icon'
import ConfirmDeleteDialog from '@sanity/desk-tool/lib/components/confirmDeleteDialog/ConfirmDeleteDialog'
import {ConfirmDeleteDialog} from '@sanity/desk-tool/lib/components/confirmDeleteDialog/ConfirmDeleteDialog'
import {useDocumentOperation, useEditState, useSyncState} from '@sanity/react-hooks'
import {useToast} from '@sanity/ui'
import {IEditState, IResolverProps, IUseDocumentOperationResult} from '../types'
Expand Down

0 comments on commit 09e627b

Please sign in to comment.