Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: layout shift when uploading images #6930

Merged
merged 11 commits into from
Jun 14, 2024
2 changes: 1 addition & 1 deletion dev/design-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"dependencies": {
"@sanity/icons": "^3.0.0",
"@sanity/ui": "^2.3.3",
"@sanity/ui": "^2.3.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sanity": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion dev/embedded-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"preview": "vite preview"
},
"dependencies": {
"@sanity/ui": "^2.3.3",
"@sanity/ui": "^2.3.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sanity": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion dev/studio-e2e-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dependencies": {
"@sanity/google-maps-input": "^4.0.0",
"@sanity/icons": "^3.0.0",
"@sanity/ui": "^2.3.3",
"@sanity/ui": "^2.3.5",
"@sanity/vision": "3.46.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down
1 change: 1 addition & 0 deletions dev/test-next-studio/.depcheckignore.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"styled-components",
"react",
"react-dom",
"react-is",
"sanity",
"eslint-config-next",
"sanity-test-studio",
Expand Down
2 changes: 1 addition & 1 deletion dev/test-next-studio/.depcheckrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"ignores": ["@sanity/vision", "typescript"]
"ignores": ["@sanity/vision", "typescript", "react-is"]
}
1 change: 1 addition & 0 deletions dev/test-next-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"next": "15.0.0-rc.0",
"react": "19.0.0-rc-38e3b23483-20240529",
"react-dom": "19.0.0-rc-38e3b23483-20240529",
"react-is": "19.0.0-rc-38e3b23483-20240529",
"sanity": "workspace:*",
"sanity-test-studio": "workspace:*",
"styled-components": "^6.1.11",
Expand Down
2 changes: 1 addition & 1 deletion dev/test-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@sanity/react-loader": "^1.8.3",
"@sanity/tsdoc": "1.0.72",
"@sanity/types": "workspace:*",
"@sanity/ui": "^2.3.3",
"@sanity/ui": "^2.3.5",
"@sanity/ui-workshop": "^1.0.0",
"@sanity/util": "workspace:*",
"@sanity/uuid": "^3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/ecommerce-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"dependencies": {
"@sanity/cli": "3.46.1",
"@sanity/ui": "^2.3.1",
"@sanity/ui": "^2.3.5",
"react": "^18.3.1",
"react-barcode": "^1.4.1",
"react-dom": "^18.3.1",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@
"peerDependencyRules": {
"allowAny": [
"react",
"react-dom"
"react-dom",
"react-is"
]
},
"overrides": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/portable-text-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"@portabletext/toolkit": "^2.0.15",
"@repo/package.config": "workspace:*",
"@sanity/diff-match-patch": "^3.1.1",
"@sanity/ui": "^2.3.1",
"@sanity/ui": "^2.3.5",
"@testing-library/react": "^13.4.0",
"@types/debug": "^4.1.5",
"@types/express": "^4.17.21",
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/vision/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"@rexxars/react-split-pane": "^0.1.93",
"@sanity/color": "^3.0.0",
"@sanity/icons": "^3.0.0",
"@sanity/ui": "^2.3.1",
"@sanity/ui": "^2.3.5",
"@uiw/react-codemirror": "^4.11.4",
"is-hotkey-esm": "^1.0.0",
"json-2-csv": "^5.5.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/sanity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
"@sanity/schema": "3.46.1",
"@sanity/telemetry": "^0.7.7",
"@sanity/types": "3.46.1",
"@sanity/ui": "^2.3.1",
"@sanity/ui": "^2.3.5",
"@sanity/util": "3.46.1",
"@sanity/uuid": "^3.0.1",
"@tanstack/react-table": "^8.16.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ export interface ToastParams {
status?: 'error' | 'warning' | 'success' | 'info'
}

/** @internal */
/**
* @internal
* @deprecated -- Refactor the component so it can call `useToast` instead
*/
export const ImperativeToast = forwardRef((_, ref) => {
const {push} = useToast()

Expand Down
Loading
Loading