diff --git a/dev/test-studio/schema/debug/fieldComponentsTest.tsx b/dev/test-studio/schema/debug/fieldComponentsTest.tsx index 44a630538e56..c7faa2795d5f 100644 --- a/dev/test-studio/schema/debug/fieldComponentsTest.tsx +++ b/dev/test-studio/schema/debug/fieldComponentsTest.tsx @@ -72,7 +72,7 @@ export default { description: ( Subtitle description x ← x - (JᵀJ + λIₙ༝ₙ)⁻¹ Jᵀr - + ), type: 'string', diff --git a/packages/@sanity/vision/src/components/PerspectivePopover.tsx b/packages/@sanity/vision/src/components/PerspectivePopover.tsx index 74f86e7a2f56..7027a0213511 100644 --- a/packages/@sanity/vision/src/components/PerspectivePopover.tsx +++ b/packages/@sanity/vision/src/components/PerspectivePopover.tsx @@ -25,8 +25,8 @@ export function PerspectivePopover() { - Perspectives allow your query to run against different "views" of the content in - your dataset + Perspectives allow your query to run against different "views" of the + content in your dataset diff --git a/packages/sanity/src/core/field/types/portableText/diff/components/Block.tsx b/packages/sanity/src/core/field/types/portableText/diff/components/Block.tsx index 45fd0d7eb524..4ed56093e87e 100644 --- a/packages/sanity/src/core/field/types/portableText/diff/components/Block.tsx +++ b/packages/sanity/src/core/field/types/portableText/diff/components/Block.tsx @@ -69,7 +69,7 @@ export default function Block(props: { diff={diff.origin.fields.style} > - Changed block style from '{fromStyle}' to '{block.style}' + Changed block style from '{fromStyle}' to '{block.style}' {returned} diff --git a/packages/sanity/src/core/form/components/FormInput.tsx b/packages/sanity/src/core/form/components/FormInput.tsx index dcce20e1543b..70a0127bca03 100644 --- a/packages/sanity/src/core/form/components/FormInput.tsx +++ b/packages/sanity/src/core/form/components/FormInput.tsx @@ -207,7 +207,8 @@ const FormInputInner = memo(function FormInputInner( const key = (relativePath[0] as any)._key return (
- No array item with _key "{key}" found at path {JSON.stringify(props.path)} + No array item with _key "{key}" found at path{' '} + {JSON.stringify(props.path)}
) } @@ -238,8 +239,8 @@ const FormInputInner = memo(function FormInputInner( const fieldName = childPath[0] return (
- Field {JSON.stringify(fieldName)} not found among members – please verify that it's both - defined in the schema and that it has not been conditionally hidden. + Field {JSON.stringify(fieldName)} not found among members – please verify that it's + both defined in the schema and that it has not been conditionally hidden.
) } diff --git a/packages/sanity/src/core/form/inputs/CrossDatasetReferenceInput/CrossDatasetReferenceInput.tsx b/packages/sanity/src/core/form/inputs/CrossDatasetReferenceInput/CrossDatasetReferenceInput.tsx index c638c64f1f6d..2698df1c84a6 100644 --- a/packages/sanity/src/core/form/inputs/CrossDatasetReferenceInput/CrossDatasetReferenceInput.tsx +++ b/packages/sanity/src/core/form/inputs/CrossDatasetReferenceInput/CrossDatasetReferenceInput.tsx @@ -435,14 +435,14 @@ export function CrossDatasetReferenceInput(props: CrossDatasetReferenceInputProp {schemaType.weak ? ( <> - It will not be possible to delete the "{preview?.title}"-document - without first removing this reference. + It will not be possible to delete the "{preview?.title} + "-document without first removing this reference. ) : ( <> - This makes it possible to delete the "{preview?.title}"-document without - first deleting this reference, leaving this field referencing a - nonexisting document. + This makes it possible to delete the "{preview?.title} + "-document without first deleting this reference, leaving this + field referencing a nonexisting document. )} diff --git a/packages/sanity/src/core/form/inputs/CrossDatasetReferenceInput/DisabledFeatureWarning.tsx b/packages/sanity/src/core/form/inputs/CrossDatasetReferenceInput/DisabledFeatureWarning.tsx index 783879629235..1de73bcaf8a8 100644 --- a/packages/sanity/src/core/form/inputs/CrossDatasetReferenceInput/DisabledFeatureWarning.tsx +++ b/packages/sanity/src/core/form/inputs/CrossDatasetReferenceInput/DisabledFeatureWarning.tsx @@ -47,8 +47,8 @@ export function DisabledFeatureWarning({value, onClearValue}: Props) { - You can still clear this field's existing reference, but that cannot be revoked as - long as the feature is disabled. + You can still clear this field's existing reference, but that cannot be revoked + as long as the feature is disabled. )} diff --git a/packages/sanity/src/core/form/inputs/CrossDatasetReferenceInput/OptionPreview.tsx b/packages/sanity/src/core/form/inputs/CrossDatasetReferenceInput/OptionPreview.tsx index b9a4608119c8..0a3d0edf1413 100644 --- a/packages/sanity/src/core/form/inputs/CrossDatasetReferenceInput/OptionPreview.tsx +++ b/packages/sanity/src/core/form/inputs/CrossDatasetReferenceInput/OptionPreview.tsx @@ -59,7 +59,8 @@ export function OptionPreview(props: { if (!refType) { return ( - Search returned a type that's not valid for this reference: "${referenceInfo.type}" + Search returned a type that's not valid for this reference: "${referenceInfo.type} + " ) } diff --git a/packages/sanity/src/core/form/inputs/ReferenceInput/OptionPreview.tsx b/packages/sanity/src/core/form/inputs/ReferenceInput/OptionPreview.tsx index 7c5ea4201d60..810bf4168917 100644 --- a/packages/sanity/src/core/form/inputs/ReferenceInput/OptionPreview.tsx +++ b/packages/sanity/src/core/form/inputs/ReferenceInput/OptionPreview.tsx @@ -62,7 +62,8 @@ export function OptionPreview(props: { if (!refType) { return ( - Search returned a type that's not valid for this reference: "${referenceInfo.type}" + Search returned a type that's not valid for this reference: "${referenceInfo.type} + " ) } diff --git a/packages/sanity/src/core/form/inputs/ReferenceInput/ReferenceField.tsx b/packages/sanity/src/core/form/inputs/ReferenceInput/ReferenceField.tsx index 2cfff485e891..afa0dce1fc0e 100644 --- a/packages/sanity/src/core/form/inputs/ReferenceInput/ReferenceField.tsx +++ b/packages/sanity/src/core/form/inputs/ReferenceInput/ReferenceField.tsx @@ -186,13 +186,21 @@ export function ReferenceField(props: ReferenceFieldProps) { {schemaType.weak ? ( <> It will not be possible to delete the{' '} - {preview?.title ? <>"{preview?.title}"-document : <>referenced document}{' '} + {preview?.title ? ( + <>"{preview?.title}"-document + ) : ( + <>referenced document + )}{' '} without first removing this reference. ) : ( <> This makes it possible to delete the{' '} - {preview?.title ? <>"{preview?.title}"-document : <>referenced document}{' '} + {preview?.title ? ( + <>"{preview?.title}"-document + ) : ( + <>referenced document + )}{' '} without first deleting this reference, leaving this field referencing a nonexisting document. diff --git a/packages/sanity/src/core/form/inputs/ReferenceInput/ReferenceInput.tsx b/packages/sanity/src/core/form/inputs/ReferenceInput/ReferenceInput.tsx index 74d0ef503a0a..afd8e7c87ae7 100644 --- a/packages/sanity/src/core/form/inputs/ReferenceInput/ReferenceInput.tsx +++ b/packages/sanity/src/core/form/inputs/ReferenceInput/ReferenceInput.tsx @@ -297,7 +297,7 @@ export function ReferenceInput(props: ReferenceInputProps) { } > - This field is currently referencing a document that doesn't exist (ID: + This field is currently referencing a document that doesn't exist (ID: {value._ref}). You can either remove the reference or replace it with another document. diff --git a/packages/sanity/src/core/form/inputs/ReferenceInput/ReferenceItem.tsx b/packages/sanity/src/core/form/inputs/ReferenceInput/ReferenceItem.tsx index 3069a4761f2d..a56282772681 100644 --- a/packages/sanity/src/core/form/inputs/ReferenceInput/ReferenceItem.tsx +++ b/packages/sanity/src/core/form/inputs/ReferenceInput/ReferenceItem.tsx @@ -308,13 +308,21 @@ export function ReferenceItem It will not be possible to delete the{' '} - {preview?.title ? <>"{preview?.title}"-document : <>referenced document}{' '} + {preview?.title ? ( + <>"{preview?.title}"-document + ) : ( + <>referenced document + )}{' '} without first removing this reference. ) : ( <> This makes it possible to delete the{' '} - {preview?.title ? <>"{preview?.title}"-document : <>referenced document}{' '} + {preview?.title ? ( + <>"{preview?.title}"-document + ) : ( + <>referenced document + )}{' '} without first deleting this reference, leaving this field referencing a nonexisting document. diff --git a/packages/sanity/src/core/form/inputs/files/common/DropMessage.tsx b/packages/sanity/src/core/form/inputs/files/common/DropMessage.tsx index 4227e3ca783d..36c743df941e 100644 --- a/packages/sanity/src/core/form/inputs/files/common/DropMessage.tsx +++ b/packages/sanity/src/core/form/inputs/files/common/DropMessage.tsx @@ -42,7 +42,7 @@ export function DropMessage(props: Props) { {rejectedFilesCount} file - {rejectedFilesCount > 1 ? 's' : ''} can't be uploaded here + {rejectedFilesCount > 1 ? 's' : ''} can't be uploaded here @@ -54,7 +54,7 @@ export function DropMessage(props: Props) { - Can't upload {hoveringFiles.length > 1 ? 'any of these files' : 'this file'} here + Can't upload {hoveringFiles.length > 1 ? 'any of these files' : 'this file'} here )} diff --git a/packages/sanity/src/core/form/studio/assetSource/ConfirmMessage.tsx b/packages/sanity/src/core/form/studio/assetSource/ConfirmMessage.tsx index 8bed2dfa6f23..8d937fb84cd1 100644 --- a/packages/sanity/src/core/form/studio/assetSource/ConfirmMessage.tsx +++ b/packages/sanity/src/core/form/studio/assetSource/ConfirmMessage.tsx @@ -41,8 +41,8 @@ export const ConfirmMessage = ({asset, assetType, hasResults = false}: ConfirmMe - {filenamePlaceholder} cannot be deleted because it's being used. In order to delete - the {assetType} you need the remove all uses of it. + {filenamePlaceholder} cannot be deleted because it's being used. In order to + delete the {assetType} you need the remove all uses of it. {isImage && ( diff --git a/packages/sanity/src/core/studio/components/navbar/search/components/filters/addFilter/AddFilterPopoverContent.tsx b/packages/sanity/src/core/studio/components/navbar/search/components/filters/addFilter/AddFilterPopoverContent.tsx index 5e1e48f37582..0939bb3dcdc8 100644 --- a/packages/sanity/src/core/studio/components/navbar/search/components/filters/addFilter/AddFilterPopoverContent.tsx +++ b/packages/sanity/src/core/studio/components/navbar/search/components/filters/addFilter/AddFilterPopoverContent.tsx @@ -127,7 +127,7 @@ export function AddFilterPopoverContent({onClose}: AddFilterPopoverContentProps) {filteredMenuItems.length == 0 && ( - No matches for '{titleFilter}' + No matches for '{titleFilter}' )} diff --git a/packages/sanity/src/core/studio/components/navbar/search/components/filters/documentTypes/DocumentTypesPopoverContent.tsx b/packages/sanity/src/core/studio/components/navbar/search/components/filters/documentTypes/DocumentTypesPopoverContent.tsx index 59c619965248..90abdb32dba7 100644 --- a/packages/sanity/src/core/studio/components/navbar/search/components/filters/documentTypes/DocumentTypesPopoverContent.tsx +++ b/packages/sanity/src/core/studio/components/navbar/search/components/filters/documentTypes/DocumentTypesPopoverContent.tsx @@ -153,7 +153,7 @@ export function DocumentTypesPopoverContent() { {!documentTypeItems.length && ( - No matches for '{typeFilter}' + No matches for '{typeFilter}' )} diff --git a/packages/sanity/src/core/studio/components/navbar/search/components/filters/filter/inputs/asset/AssetSourceError.tsx b/packages/sanity/src/core/studio/components/navbar/search/components/filters/filter/inputs/asset/AssetSourceError.tsx index 86976aa0ed50..500bd11f2d09 100644 --- a/packages/sanity/src/core/studio/components/navbar/search/components/filters/filter/inputs/asset/AssetSourceError.tsx +++ b/packages/sanity/src/core/studio/components/navbar/search/components/filters/filter/inputs/asset/AssetSourceError.tsx @@ -18,7 +18,7 @@ export function AssetSourceError(props: ResponsivePaddingProps) { Currently, only the default asset source is supported. - Please ensure it's enabled in your studio configuration file. + Please ensure it's enabled in your studio configuration file. diff --git a/packages/sanity/src/core/studio/screens/schemaErrors/SchemaProblemGroups.tsx b/packages/sanity/src/core/studio/screens/schemaErrors/SchemaProblemGroups.tsx index 64beda4b3e8c..f54615014ec8 100644 --- a/packages/sanity/src/core/studio/screens/schemaErrors/SchemaProblemGroups.tsx +++ b/packages/sanity/src/core/studio/screens/schemaErrors/SchemaProblemGroups.tsx @@ -57,7 +57,7 @@ export function SchemaProblemGroups(props: {problemGroups: SchemaValidationProbl {schemaType ? ( <> - {capitalize(schemaType.type)} type "{schemaType.name}" + {capitalize(schemaType.type)} type "{schemaType.name}" ) : null} diff --git a/packages/sanity/src/ui/__workshop__/MenuItemStory.tsx b/packages/sanity/src/ui/__workshop__/MenuItemStory.tsx index aca77242ccdd..b8f8d00e2acd 100644 --- a/packages/sanity/src/ui/__workshop__/MenuItemStory.tsx +++ b/packages/sanity/src/ui/__workshop__/MenuItemStory.tsx @@ -1,9 +1,9 @@ -import {CheckmarkIcon, CircleIcon, WarningOutlineIcon} from '@sanity/icons' -import {Avatar, Box, Card, Container, Menu, MenuDivider, Text, Flex} from '@sanity/ui' +import {hues} from '@sanity/color' +import {CheckmarkIcon, CircleIcon} from '@sanity/icons' +import {Avatar, Box, Card, Container, Menu, MenuDivider, Text} from '@sanity/ui' import {useString} from '@sanity/ui-workshop' import React from 'react' import {MenuItem} from '../menuItem' -import {hues} from '@sanity/color' const HOTKEYS = ['Ctrl', 'Alt', 'P'] const AVATAR_INITIALS = 'A.W.' @@ -42,20 +42,20 @@ export default function MenuItemStory() { Not recommended - Don't use left icons in large menu items + Don't use left icons in large menu items - Don't use keyboard shortcuts with large menu items + Don't use keyboard shortcuts with large menu items - Don't use badges in small menu items + Don't use badges in small menu items - Don't use icons and previews in the same item + Don't use icons and previews in the same item - Don't use icon right and hotkeys in the same item + Don't use icon right and hotkeys in the same item - Don't use icon right and badge in the same item + Don't use icon right and badge in the same item - Don't use hotkeys and badge in the same item + Don't use hotkeys and badge in the same item - Don't use everything at once + Don't use everything at once