From 24f6c42b1cbbbc8c4ae3ab3153c874ae42025df4 Mon Sep 17 00:00:00 2001 From: Ash Date: Tue, 19 Nov 2024 15:49:24 +0000 Subject: [PATCH 1/2] chore: revert failing commit (#7843) --- .../inputs/files/ImageInput/ImageInput.tsx | 6 ++++-- .../files/ImageInput/ImageInputAssetMenu.tsx | 6 +----- .../ImageInput/ImageInputAssetSource.tsx | 6 +----- .../ImageInputUploadPlaceholder.tsx | 6 +----- .../__workshop__/UploadPlaceholderStory.tsx | 3 +-- .../src/core/form/inputs/files/constants.ts | 16 ---------------- .../studio/inputs/client-adapters/assets.ts | 19 +++++-------------- .../core/form/studio/uploads/uploadImage.ts | 5 +++-- .../src/core/form/studio/uploads/uploaders.ts | 3 +-- .../filters/filter/inputs/asset/Asset.tsx | 9 +++------ 10 files changed, 20 insertions(+), 59 deletions(-) diff --git a/packages/sanity/src/core/form/inputs/files/ImageInput/ImageInput.tsx b/packages/sanity/src/core/form/inputs/files/ImageInput/ImageInput.tsx index 2e39b65f0ef..d9f85e56a36 100644 --- a/packages/sanity/src/core/form/inputs/files/ImageInput/ImageInput.tsx +++ b/packages/sanity/src/core/form/inputs/files/ImageInput/ImageInput.tsx @@ -108,8 +108,10 @@ function BaseImageInputComponent(props: BaseImageInputProps): JSX.Element { }, [path]) const clearUploadStatus = useCallback(() => { - onChange(unset(['_upload'])) - }, [onChange]) + if (value?._upload) { + onChange(unset(['_upload'])) + } + }, [onChange, value?._upload]) const cancelUpload = useCallback(() => { if (uploadSubscription.current) { uploadSubscription.current.unsubscribe() diff --git a/packages/sanity/src/core/form/inputs/files/ImageInput/ImageInputAssetMenu.tsx b/packages/sanity/src/core/form/inputs/files/ImageInput/ImageInputAssetMenu.tsx index 31d173fc23a..678edbbf2a7 100644 --- a/packages/sanity/src/core/form/inputs/files/ImageInput/ImageInputAssetMenu.tsx +++ b/packages/sanity/src/core/form/inputs/files/ImageInput/ImageInputAssetMenu.tsx @@ -9,7 +9,6 @@ import {type Observable} from 'rxjs' import {MenuItem} from '../../../../../ui-components' import {useTranslation} from '../../../../i18n' import {ActionsMenu} from '../common/ActionsMenu' -import {SUPPORTED_IMAGE_UPLOAD_TYPES} from '../constants' import {ImageActionsMenu, ImageActionsMenuWaitPlaceholder} from './ImageActionsMenu' import {type BaseImageInputProps} from './types' @@ -55,10 +54,7 @@ function ImageInputAssetMenuComponent( } = props const {t} = useTranslation() - const accept = useMemo( - () => get(schemaType, 'options.accept', SUPPORTED_IMAGE_UPLOAD_TYPES.join(',')), - [schemaType], - ) + const accept = useMemo(() => get(schemaType, 'options.accept', 'image/*'), [schemaType]) const asset = value?.asset const showAdvancedEditButton = value && asset && isImageToolEnabled diff --git a/packages/sanity/src/core/form/inputs/files/ImageInput/ImageInputAssetSource.tsx b/packages/sanity/src/core/form/inputs/files/ImageInput/ImageInputAssetSource.tsx index b897842a4f5..cf9765e4028 100644 --- a/packages/sanity/src/core/form/inputs/files/ImageInput/ImageInputAssetSource.tsx +++ b/packages/sanity/src/core/form/inputs/files/ImageInput/ImageInputAssetSource.tsx @@ -3,7 +3,6 @@ import {get} from 'lodash' import {memo, useMemo} from 'react' import {WithReferencedAsset} from '../../../utils/WithReferencedAsset' -import {SUPPORTED_IMAGE_UPLOAD_TYPES} from '../constants' import {type BaseImageInputProps} from './types' function ImageInputAssetSourceComponent( @@ -21,10 +20,7 @@ function ImageInputAssetSourceComponent( selectedAssetSource, value, } = props - const accept = useMemo( - () => get(schemaType, 'options.accept', SUPPORTED_IMAGE_UPLOAD_TYPES.join(',')), - [schemaType], - ) + const accept = useMemo(() => get(schemaType, 'options.accept', 'image/*'), [schemaType]) if (!selectedAssetSource) { return null diff --git a/packages/sanity/src/core/form/inputs/files/ImageInput/ImageInputUploadPlaceholder.tsx b/packages/sanity/src/core/form/inputs/files/ImageInput/ImageInputUploadPlaceholder.tsx index 06b612772f5..440c2bdf4fc 100644 --- a/packages/sanity/src/core/form/inputs/files/ImageInput/ImageInputUploadPlaceholder.tsx +++ b/packages/sanity/src/core/form/inputs/files/ImageInput/ImageInputUploadPlaceholder.tsx @@ -3,7 +3,6 @@ import {get} from 'lodash' import {memo, useMemo} from 'react' import {UploadPlaceholder} from '../common/UploadPlaceholder' -import {SUPPORTED_IMAGE_UPLOAD_TYPES} from '../constants' import {type BaseImageInputProps, type FileInfo} from './types' function ImageInputUploadPlaceholderComponent(props: { @@ -29,10 +28,7 @@ function ImageInputUploadPlaceholderComponent(props: { () => hoveringFiles.filter((file) => resolveUploader(schemaType, file)), [hoveringFiles, resolveUploader, schemaType], ) - const accept = useMemo( - () => get(schemaType, 'options.accept', SUPPORTED_IMAGE_UPLOAD_TYPES.join(',')), - [schemaType], - ) + const accept = useMemo(() => get(schemaType, 'options.accept', 'image/*'), [schemaType]) const rejectedFilesCount = hoveringFiles.length - acceptedFiles.length diff --git a/packages/sanity/src/core/form/inputs/files/__workshop__/UploadPlaceholderStory.tsx b/packages/sanity/src/core/form/inputs/files/__workshop__/UploadPlaceholderStory.tsx index 444ea6d0c40..d33db99b3f9 100644 --- a/packages/sanity/src/core/form/inputs/files/__workshop__/UploadPlaceholderStory.tsx +++ b/packages/sanity/src/core/form/inputs/files/__workshop__/UploadPlaceholderStory.tsx @@ -2,7 +2,6 @@ import {Card, Container, Flex} from '@sanity/ui' import {Button} from '../../../../../ui-components' import {UploadPlaceholder} from '../common/UploadPlaceholder' -import {SUPPORTED_IMAGE_UPLOAD_TYPES} from '../constants' export default function UploadPlaceholderStory() { return ( @@ -10,7 +9,7 @@ export default function UploadPlaceholderStory() { } directUploads diff --git a/packages/sanity/src/core/form/inputs/files/constants.ts b/packages/sanity/src/core/form/inputs/files/constants.ts index cca40229caa..402fc634a05 100644 --- a/packages/sanity/src/core/form/inputs/files/constants.ts +++ b/packages/sanity/src/core/form/inputs/files/constants.ts @@ -4,19 +4,3 @@ * the upload will be marked as stale/interrupted. */ export const STALE_UPLOAD_MS = 1000 * 60 * 2 - -/** - * The mime types of image formats we support uploading - * - * @internal - */ -export const SUPPORTED_IMAGE_UPLOAD_TYPES = [ - 'image/bmp', - 'image/gif', - 'image/jpeg', - 'image/png', - 'image/svg', - 'image/tiff', - 'image/webp', - '.psd', // Many different mime types for PSD files, so we just use the extension -] diff --git a/packages/sanity/src/core/form/studio/inputs/client-adapters/assets.ts b/packages/sanity/src/core/form/studio/inputs/client-adapters/assets.ts index b7d092612fa..1e51152ec43 100644 --- a/packages/sanity/src/core/form/studio/inputs/client-adapters/assets.ts +++ b/packages/sanity/src/core/form/studio/inputs/client-adapters/assets.ts @@ -73,13 +73,10 @@ export const uploadImageAsset = ( client: SanityClient, file: File | Blob, options?: UploadOptions, -): Observable => uploadAsset(client, 'image', file, options) +) => uploadAsset(client, 'image', file, options) -export const uploadFileAsset = ( - client: SanityClient, - file: File | Blob, - options?: UploadOptions, -): Observable => uploadAsset(client, 'file', file, options) +export const uploadFileAsset = (client: SanityClient, file: File | Blob, options?: UploadOptions) => + uploadAsset(client, 'file', file, options) /** * @@ -126,17 +123,11 @@ function observeAssetDoc(documentPreviewStore: DocumentPreviewStore, id: string) ) } -export function observeImageAsset( - documentPreviewStore: DocumentPreviewStore, - id: string, -): Observable { +export function observeImageAsset(documentPreviewStore: DocumentPreviewStore, id: string) { return observeAssetDoc(documentPreviewStore, id) as Observable } -export function observeFileAsset( - documentPreviewStore: DocumentPreviewStore, - id: string, -): Observable { +export function observeFileAsset(documentPreviewStore: DocumentPreviewStore, id: string) { return observeAssetDoc(documentPreviewStore, id) as Observable } diff --git a/packages/sanity/src/core/form/studio/uploads/uploadImage.ts b/packages/sanity/src/core/form/studio/uploads/uploadImage.ts index 6c636dce066..6d1c77d9563 100644 --- a/packages/sanity/src/core/form/studio/uploads/uploadImage.ts +++ b/packages/sanity/src/core/form/studio/uploads/uploadImage.ts @@ -21,11 +21,12 @@ export function uploadImage( options?: UploadOptions, ): Observable { const upload$ = uploadImageAsset(client, file, options).pipe( - filter((event) => !('stage' in event) || event.stage !== 'download'), + filter((event: any) => event.stage !== 'download'), map((event) => ({ ...event, - progress: event.type === 'complete' ? 100 : 2 + (event.percent / 100) * 98, + progress: 2 + (event.percent / 100) * 98, })), + map((event) => { if (event.type === 'complete') { return createUploadEvent([ diff --git a/packages/sanity/src/core/form/studio/uploads/uploaders.ts b/packages/sanity/src/core/form/studio/uploads/uploaders.ts index 152600eca8d..e72c7b63e03 100644 --- a/packages/sanity/src/core/form/studio/uploads/uploaders.ts +++ b/packages/sanity/src/core/form/studio/uploads/uploaders.ts @@ -2,7 +2,6 @@ import {type SanityClient} from '@sanity/client' import {type SchemaType} from '@sanity/types' import {map} from 'rxjs/operators' -import {SUPPORTED_IMAGE_UPLOAD_TYPES} from '../../inputs/files/constants' import {set} from '../../patch' import {type Uploader, type UploaderDef, type UploadOptions} from './types' import {uploadFile} from './uploadFile' @@ -10,7 +9,7 @@ import {uploadImage} from './uploadImage' const UPLOAD_IMAGE: UploaderDef = { type: 'image', - accepts: SUPPORTED_IMAGE_UPLOAD_TYPES.join(','), + accepts: 'image/*', upload: (client: SanityClient, file: File, type?: SchemaType, options?: UploadOptions) => uploadImage(client, file, options), } diff --git a/packages/sanity/src/core/studio/components/navbar/search/components/filters/filter/inputs/asset/Asset.tsx b/packages/sanity/src/core/studio/components/navbar/search/components/filters/filter/inputs/asset/Asset.tsx index 71bec87c155..f5de825f541 100644 --- a/packages/sanity/src/core/studio/components/navbar/search/components/filters/filter/inputs/asset/Asset.tsx +++ b/packages/sanity/src/core/studio/components/navbar/search/components/filters/filter/inputs/asset/Asset.tsx @@ -7,7 +7,6 @@ import {styled} from 'styled-components' import {Button, MenuButton, MenuItem} from '../../../../../../../../../../ui-components' import {type Source} from '../../../../../../../../../config' -import {SUPPORTED_IMAGE_UPLOAD_TYPES} from '../../../../../../../../../form/inputs/files/constants' import {FileSource, ImageSource} from '../../../../../../../../../form/studio/assetSource' import {useClient} from '../../../../../../../../../hooks' import {useTranslation} from '../../../../../../../../../i18n' @@ -103,15 +102,13 @@ export function SearchFilterAssetInput(type?: AssetType) { const AssetSourceComponent = selectedAssetSource?.component + const fontSize = fullscreen ? 2 : 1 + const buttonText = t(value ? 'search.filter-asset-change' : 'search.filter-asset-select', { context: type, }) - const accept = get( - type, - 'options.accept', - type === 'image' ? SUPPORTED_IMAGE_UPLOAD_TYPES.join(',') : '', - ) + const accept = get(type, 'options.accept', type === 'image' ? 'image/*' : '') return ( From 516fbf59e4a86295f9f1385c843510c3a0d04b34 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 19 Nov 2024 16:05:46 +0000 Subject: [PATCH 2/2] v3.64.2 --- dev/depcheck-test/package.json | 2 +- dev/design-studio/package.json | 2 +- dev/embedded-studio/package.json | 2 +- dev/page-building-studio/package.json | 2 +- dev/starter-next-studio/package.json | 2 +- dev/starter-studio/package.json | 2 +- dev/strict-studio/package.json | 2 +- dev/studio-e2e-testing/package.json | 4 +- .../package.json | 2 +- dev/test-next-studio/package.json | 2 +- dev/test-studio/package.json | 4 +- examples/blog-studio/package.json | 2 +- examples/clean-studio/package.json | 2 +- examples/ecommerce-studio/package.json | 4 +- examples/movies-studio/package.json | 2 +- lerna.json | 2 +- packages/@repo/dev-aliases/package.json | 2 +- packages/@repo/package.bundle/package.json | 2 +- packages/@repo/package.config/package.json | 2 +- packages/@repo/test-config/package.json | 2 +- packages/@repo/test-exports/package.json | 2 +- packages/@repo/tsconfig/package.json | 2 +- packages/@sanity/block-tools/package.json | 6 +-- packages/@sanity/cli/package.json | 6 +-- packages/@sanity/codegen/package.json | 2 +- packages/@sanity/diff/package.json | 2 +- packages/@sanity/migrate/package.json | 6 +-- packages/@sanity/mutator/package.json | 4 +- packages/@sanity/schema/package.json | 4 +- packages/@sanity/types/package.json | 2 +- packages/@sanity/util/package.json | 4 +- packages/@sanity/vision/package.json | 2 +- packages/create-sanity/package.json | 4 +- packages/groq/package.json | 2 +- packages/sanity/package.json | 20 ++++----- perf/studio/package.json | 2 +- perf/tests/package.json | 2 +- pnpm-lock.yaml | 44 +++++++++---------- 38 files changed, 81 insertions(+), 81 deletions(-) diff --git a/dev/depcheck-test/package.json b/dev/depcheck-test/package.json index 2c55c802d60..03743e4e392 100644 --- a/dev/depcheck-test/package.json +++ b/dev/depcheck-test/package.json @@ -1,6 +1,6 @@ { "name": "depcheck-test", - "version": "3.64.1", + "version": "3.64.2", "private": true, "license": "MIT", "author": "Sanity.io " diff --git a/dev/design-studio/package.json b/dev/design-studio/package.json index a99daad29f6..3a3c0df7313 100644 --- a/dev/design-studio/package.json +++ b/dev/design-studio/package.json @@ -1,6 +1,6 @@ { "name": "design-studio", - "version": "3.64.1", + "version": "3.64.2", "private": true, "description": "Sanity Design Studio", "keywords": [ diff --git a/dev/embedded-studio/package.json b/dev/embedded-studio/package.json index d28d81a1b6a..db80368329e 100644 --- a/dev/embedded-studio/package.json +++ b/dev/embedded-studio/package.json @@ -1,6 +1,6 @@ { "name": "embedded-studio", - "version": "3.64.1", + "version": "3.64.2", "private": true, "scripts": { "build": "tsc && vite build && sanity manifest extract", diff --git a/dev/page-building-studio/package.json b/dev/page-building-studio/package.json index 7139e49ad08..ced93f5365a 100644 --- a/dev/page-building-studio/package.json +++ b/dev/page-building-studio/package.json @@ -1,6 +1,6 @@ { "name": "sanity-page-building-studio", - "version": "3.64.1", + "version": "3.64.2", "private": true, "license": "MIT", "author": "Sanity.io ", diff --git a/dev/starter-next-studio/package.json b/dev/starter-next-studio/package.json index 4a648e7f1e3..b6b21e5731e 100644 --- a/dev/starter-next-studio/package.json +++ b/dev/starter-next-studio/package.json @@ -1,6 +1,6 @@ { "name": "sanity-starter-next-studio", - "version": "3.64.1", + "version": "3.64.2", "private": true, "license": "MIT", "author": "Sanity.io ", diff --git a/dev/starter-studio/package.json b/dev/starter-studio/package.json index 8f3e756f31d..e446795e091 100644 --- a/dev/starter-studio/package.json +++ b/dev/starter-studio/package.json @@ -1,6 +1,6 @@ { "name": "sanity-starter-studio", - "version": "3.64.1", + "version": "3.64.2", "private": true, "license": "MIT", "author": "Sanity.io ", diff --git a/dev/strict-studio/package.json b/dev/strict-studio/package.json index 76b482eb205..7ba9e36a5b4 100644 --- a/dev/strict-studio/package.json +++ b/dev/strict-studio/package.json @@ -1,6 +1,6 @@ { "name": "sanity-strict-studio", - "version": "3.64.1", + "version": "3.64.2", "private": true, "license": "MIT", "author": "Sanity.io ", diff --git a/dev/studio-e2e-testing/package.json b/dev/studio-e2e-testing/package.json index 3914f3ce8f0..0f26b6883c8 100644 --- a/dev/studio-e2e-testing/package.json +++ b/dev/studio-e2e-testing/package.json @@ -1,6 +1,6 @@ { "name": "studio-e2e-testing", - "version": "3.64.1", + "version": "3.64.2", "private": true, "keywords": [ "sanity" @@ -18,7 +18,7 @@ "@sanity/google-maps-input": "^4.0.0", "@sanity/icons": "^3.4.0", "@sanity/ui": "^2.8.24", - "@sanity/vision": "3.64.1", + "@sanity/vision": "3.64.2", "react": "^18.3.1", "react-dom": "^18.3.1", "sanity": "workspace:*", diff --git a/dev/test-create-integration-studio/package.json b/dev/test-create-integration-studio/package.json index 0d0ff1548db..6603e3f62f3 100644 --- a/dev/test-create-integration-studio/package.json +++ b/dev/test-create-integration-studio/package.json @@ -1,6 +1,6 @@ { "name": "test-create-integration-studio", - "version": "3.64.1", + "version": "3.64.2", "private": true, "license": "MIT", "author": "Sanity.io ", diff --git a/dev/test-next-studio/package.json b/dev/test-next-studio/package.json index b8987f5cd36..40ce9c78d11 100644 --- a/dev/test-next-studio/package.json +++ b/dev/test-next-studio/package.json @@ -1,6 +1,6 @@ { "name": "sanity-test-next-studio", - "version": "3.64.1", + "version": "3.64.2", "private": true, "license": "MIT", "author": "Sanity.io ", diff --git a/dev/test-studio/package.json b/dev/test-studio/package.json index 245b676e063..29faca42200 100644 --- a/dev/test-studio/package.json +++ b/dev/test-studio/package.json @@ -1,6 +1,6 @@ { "name": "sanity-test-studio", - "version": "3.64.1", + "version": "3.64.2", "private": true, "license": "MIT", "author": "Sanity.io ", @@ -19,7 +19,7 @@ "@portabletext/editor": "^1.10.2", "@portabletext/react": "^3.0.0", "@sanity/assist": "^3.0.2", - "@sanity/block-tools": "3.64.1", + "@sanity/block-tools": "3.64.2", "@sanity/client": "^6.22.5", "@sanity/color": "^3.0.0", "@sanity/google-maps-input": "^4.0.0", diff --git a/examples/blog-studio/package.json b/examples/blog-studio/package.json index 682cdb95cbc..7c9ff42d23d 100644 --- a/examples/blog-studio/package.json +++ b/examples/blog-studio/package.json @@ -1,6 +1,6 @@ { "name": "blog-studio", - "version": "3.64.1", + "version": "3.64.2", "private": true, "description": "Content studio running with schema from the blog init template", "keywords": [ diff --git a/examples/clean-studio/package.json b/examples/clean-studio/package.json index 39d525d143e..d5d8500e184 100644 --- a/examples/clean-studio/package.json +++ b/examples/clean-studio/package.json @@ -1,6 +1,6 @@ { "name": "clean-studio", - "version": "3.64.1", + "version": "3.64.2", "private": true, "description": "Content studio running with schema from the clean template", "keywords": [ diff --git a/examples/ecommerce-studio/package.json b/examples/ecommerce-studio/package.json index a6e7e044b3d..b6854bfb401 100644 --- a/examples/ecommerce-studio/package.json +++ b/examples/ecommerce-studio/package.json @@ -1,6 +1,6 @@ { "name": "ecommerce-studio", - "version": "3.64.1", + "version": "3.64.2", "private": true, "description": "", "keywords": [ @@ -29,7 +29,7 @@ "start": "sanity dev --port 3337" }, "dependencies": { - "@sanity/cli": "3.64.1", + "@sanity/cli": "3.64.2", "@sanity/ui": "^2.8.24", "react": "^18.3.1", "react-barcode": "^1.4.1", diff --git a/examples/movies-studio/package.json b/examples/movies-studio/package.json index 9bff6f8070a..7d09c2525c9 100644 --- a/examples/movies-studio/package.json +++ b/examples/movies-studio/package.json @@ -1,6 +1,6 @@ { "name": "movies-studio", - "version": "3.64.1", + "version": "3.64.2", "private": true, "description": "Content studio running with schema from the moviedb init template", "keywords": [ diff --git a/lerna.json b/lerna.json index 3313dbf9e7c..dc65af38d73 100644 --- a/lerna.json +++ b/lerna.json @@ -12,5 +12,5 @@ "packages/groq", "packages/sanity" ], - "version": "3.64.1" + "version": "3.64.2" } diff --git a/packages/@repo/dev-aliases/package.json b/packages/@repo/dev-aliases/package.json index 31591889ce6..de0cdd969c3 100644 --- a/packages/@repo/dev-aliases/package.json +++ b/packages/@repo/dev-aliases/package.json @@ -1,6 +1,6 @@ { "name": "@repo/dev-aliases", - "version": "3.64.1", + "version": "3.64.2", "private": true, "description": "Dev aliases for the sanity monorepo", "type": "module", diff --git a/packages/@repo/package.bundle/package.json b/packages/@repo/package.bundle/package.json index ba12a936d73..499385c9fa0 100644 --- a/packages/@repo/package.bundle/package.json +++ b/packages/@repo/package.bundle/package.json @@ -1,6 +1,6 @@ { "name": "@repo/package.bundle", - "version": "3.64.1", + "version": "3.64.2", "private": true, "description": "Shared package bundle configuration", "main": "./src/package.bundle.ts", diff --git a/packages/@repo/package.config/package.json b/packages/@repo/package.config/package.json index 30a0f6487ad..15573539964 100644 --- a/packages/@repo/package.config/package.json +++ b/packages/@repo/package.config/package.json @@ -1,6 +1,6 @@ { "name": "@repo/package.config", - "version": "3.64.1", + "version": "3.64.2", "private": true, "description": "Shared @sanity/pkg-utils configuration", "main": "./src/package.config.ts", diff --git a/packages/@repo/test-config/package.json b/packages/@repo/test-config/package.json index 76f257514a9..0c18ffee736 100644 --- a/packages/@repo/test-config/package.json +++ b/packages/@repo/test-config/package.json @@ -1,6 +1,6 @@ { "name": "@repo/test-config", - "version": "3.64.1", + "version": "3.64.2", "private": true, "description": "Test (as in unit test) config shared across packages in the sanity monorepo", "type": "module", diff --git a/packages/@repo/test-exports/package.json b/packages/@repo/test-exports/package.json index f068b57670b..4c639a11411 100644 --- a/packages/@repo/test-exports/package.json +++ b/packages/@repo/test-exports/package.json @@ -1,6 +1,6 @@ { "name": "@repo/test-exports", - "version": "3.64.1", + "version": "3.64.2", "private": true, "description": "Ensures that all the monorepo packages that are published works in native node ESM and CJS runtimes", "exports": { diff --git a/packages/@repo/tsconfig/package.json b/packages/@repo/tsconfig/package.json index d940fdd019c..89981d381bf 100644 --- a/packages/@repo/tsconfig/package.json +++ b/packages/@repo/tsconfig/package.json @@ -1,5 +1,5 @@ { "name": "@repo/tsconfig", - "version": "3.64.1", + "version": "3.64.2", "private": true } diff --git a/packages/@sanity/block-tools/package.json b/packages/@sanity/block-tools/package.json index 4462788f2e9..055303973a3 100644 --- a/packages/@sanity/block-tools/package.json +++ b/packages/@sanity/block-tools/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/block-tools", - "version": "3.64.1", + "version": "3.64.2", "description": "Can format HTML, Slate JSON or Sanity block array into any other format.", "keywords": [ "sanity", @@ -49,7 +49,7 @@ "watch": "pkg-utils watch" }, "dependencies": { - "@sanity/types": "3.64.1", + "@sanity/types": "3.64.2", "@types/react": "^18.3.5", "get-random-values-esm": "1.0.2", "lodash": "^4.17.21" @@ -57,7 +57,7 @@ "devDependencies": { "@repo/package.config": "workspace:*", "@repo/test-config": "workspace:*", - "@sanity/schema": "3.64.1", + "@sanity/schema": "3.64.2", "@types/jsdom": "^20.0.0", "@types/lodash": "^4.17.7", "@vercel/stega": "0.1.2", diff --git a/packages/@sanity/cli/package.json b/packages/@sanity/cli/package.json index bfedda84b91..6357e07b453 100644 --- a/packages/@sanity/cli/package.json +++ b/packages/@sanity/cli/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/cli", - "version": "3.64.1", + "version": "3.64.2", "description": "Sanity CLI tool for managing Sanity installations, managing plugins, schemas and datasets", "keywords": [ "sanity", @@ -58,9 +58,9 @@ "dependencies": { "@babel/traverse": "^7.23.5", "@sanity/client": "^6.22.5", - "@sanity/codegen": "3.64.1", + "@sanity/codegen": "3.64.2", "@sanity/telemetry": "^0.7.7", - "@sanity/util": "3.64.1", + "@sanity/util": "3.64.2", "chalk": "^4.1.2", "debug": "^4.3.4", "decompress": "^4.2.0", diff --git a/packages/@sanity/codegen/package.json b/packages/@sanity/codegen/package.json index 20bbe3a14b0..3fcab17592d 100644 --- a/packages/@sanity/codegen/package.json +++ b/packages/@sanity/codegen/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/codegen", - "version": "3.64.1", + "version": "3.64.2", "description": "Codegen toolkit for Sanity.io", "keywords": [ "sanity", diff --git a/packages/@sanity/diff/package.json b/packages/@sanity/diff/package.json index 36a676b4144..e7a2fc2a5cb 100644 --- a/packages/@sanity/diff/package.json +++ b/packages/@sanity/diff/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/diff", - "version": "3.64.1", + "version": "3.64.2", "description": "Generates diffs between documents and primitive types", "keywords": [ "sanity", diff --git a/packages/@sanity/migrate/package.json b/packages/@sanity/migrate/package.json index da74e1e5e08..649b6a76961 100644 --- a/packages/@sanity/migrate/package.json +++ b/packages/@sanity/migrate/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/migrate", - "version": "3.64.1", + "version": "3.64.2", "description": "Tooling for running data migrations on Sanity.io projects", "keywords": [ "sanity", @@ -52,8 +52,8 @@ "dependencies": { "@sanity/client": "^6.22.5", "@sanity/mutate": "^0.10.2", - "@sanity/types": "3.64.1", - "@sanity/util": "3.64.1", + "@sanity/types": "3.64.2", + "@sanity/util": "3.64.2", "arrify": "^2.0.1", "debug": "^4.3.4", "fast-fifo": "^1.3.2", diff --git a/packages/@sanity/mutator/package.json b/packages/@sanity/mutator/package.json index 8fa14d7d62e..3050e09427a 100644 --- a/packages/@sanity/mutator/package.json +++ b/packages/@sanity/mutator/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/mutator", - "version": "3.64.1", + "version": "3.64.2", "description": "A set of models to make it easier to utilize the powerful real time collaborative features of Sanity", "keywords": [ "sanity", @@ -50,7 +50,7 @@ }, "dependencies": { "@sanity/diff-match-patch": "^3.1.1", - "@sanity/types": "3.64.1", + "@sanity/types": "3.64.2", "@sanity/uuid": "^3.0.1", "debug": "^4.3.4", "lodash": "^4.17.21" diff --git a/packages/@sanity/schema/package.json b/packages/@sanity/schema/package.json index d1a8f79d85e..befcbc9b29a 100644 --- a/packages/@sanity/schema/package.json +++ b/packages/@sanity/schema/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/schema", - "version": "3.64.1", + "version": "3.64.2", "description": "", "keywords": [ "sanity", @@ -64,7 +64,7 @@ }, "dependencies": { "@sanity/generate-help-url": "^3.0.0", - "@sanity/types": "3.64.1", + "@sanity/types": "3.64.2", "arrify": "^1.0.1", "groq-js": "^1.14.0", "humanize-list": "^1.0.1", diff --git a/packages/@sanity/types/package.json b/packages/@sanity/types/package.json index 0b87590471a..3a556fb4eef 100644 --- a/packages/@sanity/types/package.json +++ b/packages/@sanity/types/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/types", - "version": "3.64.1", + "version": "3.64.2", "description": "Type definitions for common Sanity data structures", "keywords": [ "sanity", diff --git a/packages/@sanity/util/package.json b/packages/@sanity/util/package.json index 845294f6e26..a195bbf3fe6 100644 --- a/packages/@sanity/util/package.json +++ b/packages/@sanity/util/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/util", - "version": "3.64.1", + "version": "3.64.2", "description": "Utilities shared across projects of Sanity", "keywords": [ "sanity", @@ -122,7 +122,7 @@ }, "dependencies": { "@sanity/client": "^6.22.5", - "@sanity/types": "3.64.1", + "@sanity/types": "3.64.2", "get-random-values-esm": "1.0.2", "moment": "^2.30.1", "rxjs": "^7.8.1" diff --git a/packages/@sanity/vision/package.json b/packages/@sanity/vision/package.json index a3d15819378..bfb5fb8d7ed 100644 --- a/packages/@sanity/vision/package.json +++ b/packages/@sanity/vision/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/vision", - "version": "3.64.1", + "version": "3.64.2", "description": "Sanity plugin for running/debugging GROQ-queries against Sanity datasets", "keywords": [ "sanity", diff --git a/packages/create-sanity/package.json b/packages/create-sanity/package.json index f2dd3f62283..b0265354cb8 100644 --- a/packages/create-sanity/package.json +++ b/packages/create-sanity/package.json @@ -1,6 +1,6 @@ { "name": "create-sanity", - "version": "3.64.1", + "version": "3.64.2", "description": "Initialize a new Sanity project", "keywords": [ "sanity", @@ -26,7 +26,7 @@ "index.js" ], "dependencies": { - "@sanity/cli": "3.64.1", + "@sanity/cli": "3.64.2", "resolve-pkg": "^2.0.0" }, "engines": { diff --git a/packages/groq/package.json b/packages/groq/package.json index a30e21c3e92..d9ae632cf03 100644 --- a/packages/groq/package.json +++ b/packages/groq/package.json @@ -1,6 +1,6 @@ { "name": "groq", - "version": "3.64.1", + "version": "3.64.2", "description": "Tagged template literal for Sanity.io GROQ-queries", "keywords": [ "sanity", diff --git a/packages/sanity/package.json b/packages/sanity/package.json index 681fdf0c34c..3bd7e1a6717 100644 --- a/packages/sanity/package.json +++ b/packages/sanity/package.json @@ -1,6 +1,6 @@ { "name": "sanity", - "version": "3.64.1", + "version": "3.64.2", "description": "Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches", "keywords": [ "sanity", @@ -158,11 +158,11 @@ "@rexxars/react-json-inspector": "^8.0.1", "@sanity/asset-utils": "^2.0.6", "@sanity/bifur-client": "^0.4.1", - "@sanity/block-tools": "3.64.1", - "@sanity/cli": "3.64.1", + "@sanity/block-tools": "3.64.2", + "@sanity/cli": "3.64.2", "@sanity/client": "^6.22.5", "@sanity/color": "^3.0.0", - "@sanity/diff": "3.64.1", + "@sanity/diff": "3.64.2", "@sanity/diff-match-patch": "^3.1.1", "@sanity/eventsource": "^5.0.0", "@sanity/export": "^3.41.0", @@ -171,14 +171,14 @@ "@sanity/import": "^3.37.3", "@sanity/insert-menu": "1.0.12", "@sanity/logos": "^2.1.4", - "@sanity/migrate": "3.64.1", - "@sanity/mutator": "3.64.1", + "@sanity/migrate": "3.64.2", + "@sanity/mutator": "3.64.2", "@sanity/presentation": "1.18.4", - "@sanity/schema": "3.64.1", + "@sanity/schema": "3.64.2", "@sanity/telemetry": "^0.7.7", - "@sanity/types": "3.64.1", + "@sanity/types": "3.64.2", "@sanity/ui": "^2.8.24", - "@sanity/util": "3.64.1", + "@sanity/util": "3.64.2", "@sanity/uuid": "^3.0.1", "@sentry/react": "^8.7.0", "@tanstack/react-table": "^8.16.0", @@ -271,7 +271,7 @@ "@repo/dev-aliases": "workspace:*", "@repo/package.config": "workspace:*", "@repo/test-config": "workspace:*", - "@sanity/codegen": "3.64.1", + "@sanity/codegen": "3.64.2", "@sanity/generate-help-url": "^3.0.0", "@sanity/pkg-utils": "6.11.12", "@sanity/tsdoc": "1.0.134", diff --git a/perf/studio/package.json b/perf/studio/package.json index 404e76cc4f6..10b31cd7e64 100644 --- a/perf/studio/package.json +++ b/perf/studio/package.json @@ -1,6 +1,6 @@ { "name": "perf-studio", - "version": "3.64.1", + "version": "3.64.2", "private": true, "description": "Sanity Studio with various test cases for tracking performance", "license": "MIT", diff --git a/perf/tests/package.json b/perf/tests/package.json index eb86316286f..8ea64276263 100644 --- a/perf/tests/package.json +++ b/perf/tests/package.json @@ -1,6 +1,6 @@ { "name": "sanity-perf-tests", - "version": "3.64.1", + "version": "3.64.2", "private": true, "description": "Sanity Studio perf tests", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ed52a63e7b0..a3caa0cd2ab 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -367,7 +367,7 @@ importers: specifier: ^2.8.24 version: 2.8.24(react-dom@18.3.1(react@18.3.1))(react-is@19.0.0-rc-a7d1240c-20240731)(react@18.3.1)(styled-components@6.1.13(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) '@sanity/vision': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../../packages/@sanity/vision react: specifier: ^18.3.1 @@ -454,7 +454,7 @@ importers: specifier: ^3.0.2 version: 3.0.8(@sanity/mutator@packages+@sanity+mutator)(react-dom@18.3.1(react@18.3.1))(react-is@19.0.0-rc-a7d1240c-20240731)(react@18.3.1)(sanity@packages+sanity)(styled-components@6.1.13(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) '@sanity/block-tools': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../../packages/@sanity/block-tools '@sanity/client': specifier: ^6.22.5 @@ -614,7 +614,7 @@ importers: examples/ecommerce-studio: dependencies: '@sanity/cli': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../../packages/@sanity/cli '@sanity/ui': specifier: ^2.8.24 @@ -719,7 +719,7 @@ importers: packages/@sanity/block-tools: dependencies: '@sanity/types': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../types '@types/react': specifier: ^18.3.5 @@ -738,7 +738,7 @@ importers: specifier: workspace:* version: link:../../@repo/test-config '@sanity/schema': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../schema '@types/jsdom': specifier: ^20.0.0 @@ -768,13 +768,13 @@ importers: specifier: ^6.22.5 version: 6.22.5(debug@4.3.7) '@sanity/codegen': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../codegen '@sanity/telemetry': specifier: ^0.7.7 version: 0.7.9(react@19.0.0-rc-f994737d14-20240522) '@sanity/util': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../util chalk: specifier: ^4.1.2 @@ -1077,10 +1077,10 @@ importers: specifier: ^0.10.2 version: 0.10.2(debug@4.3.7) '@sanity/types': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../types '@sanity/util': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../util arrify: specifier: ^2.0.1 @@ -1123,7 +1123,7 @@ importers: specifier: ^3.1.1 version: 3.1.1 '@sanity/types': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../types '@sanity/uuid': specifier: ^3.0.1 @@ -1160,7 +1160,7 @@ importers: specifier: ^3.0.0 version: 3.0.0 '@sanity/types': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../types arrify: specifier: ^1.0.1 @@ -1246,7 +1246,7 @@ importers: specifier: ^6.22.5 version: 6.22.5(debug@4.3.7) '@sanity/types': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../types get-random-values-esm: specifier: 1.0.2 @@ -1383,7 +1383,7 @@ importers: packages/create-sanity: dependencies: '@sanity/cli': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../@sanity/cli resolve-pkg: specifier: ^2.0.0 @@ -1428,10 +1428,10 @@ importers: specifier: ^0.4.1 version: 0.4.1 '@sanity/block-tools': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../@sanity/block-tools '@sanity/cli': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../@sanity/cli '@sanity/client': specifier: ^6.22.5 @@ -1440,7 +1440,7 @@ importers: specifier: ^3.0.0 version: 3.0.6 '@sanity/diff': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../@sanity/diff '@sanity/diff-match-patch': specifier: ^3.1.1 @@ -1467,28 +1467,28 @@ importers: specifier: ^2.1.4 version: 2.1.13(@sanity/color@3.0.6)(react@18.3.1) '@sanity/migrate': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../@sanity/migrate '@sanity/mutator': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../@sanity/mutator '@sanity/presentation': specifier: 1.18.4 version: 1.18.4(@sanity/client@6.22.5(debug@4.3.7))(@sanity/color@3.0.6)(react-dom@18.3.1(react@18.3.1))(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.13(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) '@sanity/schema': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../@sanity/schema '@sanity/telemetry': specifier: ^0.7.7 version: 0.7.9(react@18.3.1) '@sanity/types': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../@sanity/types '@sanity/ui': specifier: ^2.8.24 version: 2.8.24(react-dom@18.3.1(react@18.3.1))(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.13(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) '@sanity/util': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../@sanity/util '@sanity/uuid': specifier: ^3.0.1 @@ -1762,7 +1762,7 @@ importers: specifier: workspace:* version: link:../@repo/test-config '@sanity/codegen': - specifier: 3.64.1 + specifier: 3.64.2 version: link:../@sanity/codegen '@sanity/generate-help-url': specifier: ^3.0.0