@sanity/ui 2.13.3 → 2.13.4
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/dist/_chunks-cjs/_visual-editing.js +5 -6
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
- package/dist/_chunks-es/_visual-editing.mjs +5 -6
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/_legacy/_visual-editing.esm.js +5 -6
- package/dist/_legacy/_visual-editing.esm.js.map +1 -1
- package/dist/index.esm.js +33 -37
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +33 -37
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +33 -37
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -20
- package/src/core/components/toast/toastProvider.tsx +6 -7
- package/src/core/constants.ts +9 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/ui",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.4",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"sanity",
|
|
6
6
|
"ui",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"@sanity/color": "^3.0.6",
|
|
121
121
|
"@sanity/icons": "^3.6.0",
|
|
122
122
|
"csstype": "^3.1.3",
|
|
123
|
-
"framer-motion": "12.4.
|
|
123
|
+
"framer-motion": "^12.4.3",
|
|
124
124
|
"react-compiler-runtime": "19.0.0-beta-21e868a-20250216",
|
|
125
125
|
"react-refractor": "^2.2.0",
|
|
126
126
|
"use-effect-event": "^1.0.2"
|
|
@@ -135,21 +135,21 @@
|
|
|
135
135
|
"@sanity/pkg-utils": "^6.13.4",
|
|
136
136
|
"@sanity/prettier-config": "^1.0.3",
|
|
137
137
|
"@sanity/semantic-release-preset": "^5.0.0",
|
|
138
|
-
"@sanity/ui-workshop": "^2.0.
|
|
139
|
-
"@storybook/addon-a11y": "^8.5.
|
|
140
|
-
"@storybook/addon-docs": "^8.5.
|
|
141
|
-
"@storybook/addon-essentials": "^8.5.
|
|
142
|
-
"@storybook/addon-interactions": "^8.5.
|
|
143
|
-
"@storybook/addon-links": "^8.5.
|
|
144
|
-
"@storybook/addon-mdx-gfm": "^8.5.
|
|
145
|
-
"@storybook/addon-storysource": "^8.5.
|
|
146
|
-
"@storybook/addon-themes": "^8.5.
|
|
147
|
-
"@storybook/blocks": "^8.5.
|
|
148
|
-
"@storybook/manager-api": "^8.5.
|
|
149
|
-
"@storybook/react": "^8.5.
|
|
150
|
-
"@storybook/react-vite": "^8.5.
|
|
151
|
-
"@storybook/test": "^8.5.
|
|
152
|
-
"@storybook/theming": "^8.5.
|
|
138
|
+
"@sanity/ui-workshop": "^2.0.29",
|
|
139
|
+
"@storybook/addon-a11y": "^8.5.6",
|
|
140
|
+
"@storybook/addon-docs": "^8.5.6",
|
|
141
|
+
"@storybook/addon-essentials": "^8.5.6",
|
|
142
|
+
"@storybook/addon-interactions": "^8.5.6",
|
|
143
|
+
"@storybook/addon-links": "^8.5.6",
|
|
144
|
+
"@storybook/addon-mdx-gfm": "^8.5.6",
|
|
145
|
+
"@storybook/addon-storysource": "^8.5.6",
|
|
146
|
+
"@storybook/addon-themes": "^8.5.6",
|
|
147
|
+
"@storybook/blocks": "^8.5.6",
|
|
148
|
+
"@storybook/manager-api": "^8.5.6",
|
|
149
|
+
"@storybook/react": "^8.5.6",
|
|
150
|
+
"@storybook/react-vite": "^8.5.6",
|
|
151
|
+
"@storybook/test": "^8.5.6",
|
|
152
|
+
"@storybook/theming": "^8.5.6",
|
|
153
153
|
"@testing-library/dom": "^10.4.0",
|
|
154
154
|
"@testing-library/jest-dom": "^6.6.3",
|
|
155
155
|
"@testing-library/react": "^16.2.0",
|
|
@@ -157,8 +157,8 @@
|
|
|
157
157
|
"@types/jest": "^29.5.14",
|
|
158
158
|
"@types/jest-axe": "^3.5.9",
|
|
159
159
|
"@types/node": "^20.12.7",
|
|
160
|
-
"@types/react": "^19.0.
|
|
161
|
-
"@types/react-dom": "^19.0.
|
|
160
|
+
"@types/react": "^19.0.10",
|
|
161
|
+
"@types/react-dom": "^19.0.4",
|
|
162
162
|
"@types/react-is": "^19.0.0",
|
|
163
163
|
"@types/refractor": "^3.4.1",
|
|
164
164
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
"rimraf": "^5.0.5",
|
|
196
196
|
"semantic-release": "^24.2.3",
|
|
197
197
|
"start-server-and-test": "^2.0.10",
|
|
198
|
-
"storybook": "^8.5.
|
|
198
|
+
"storybook": "^8.5.6",
|
|
199
199
|
"styled-components": "^6.1.15",
|
|
200
200
|
"tsconfig-paths": "^4.2.0",
|
|
201
201
|
"typescript": "5.7.3",
|
|
@@ -59,24 +59,23 @@ export function ToastProvider(props: ToastProviderProps): React.JSX.Element {
|
|
|
59
59
|
() => ({
|
|
60
60
|
initial: {
|
|
61
61
|
opacity: 0,
|
|
62
|
-
[POPOVER_MOTION_CONTENT_OPACITY_PROPERTY]:
|
|
62
|
+
[POPOVER_MOTION_CONTENT_OPACITY_PROPERTY]: -1,
|
|
63
63
|
y: 32,
|
|
64
64
|
scale: 0.25,
|
|
65
65
|
willChange: 'transform',
|
|
66
66
|
},
|
|
67
67
|
animate: {
|
|
68
|
-
opacity:
|
|
69
|
-
[POPOVER_MOTION_CONTENT_OPACITY_PROPERTY]:
|
|
68
|
+
opacity: 2,
|
|
69
|
+
[POPOVER_MOTION_CONTENT_OPACITY_PROPERTY]: 1,
|
|
70
70
|
y: 0,
|
|
71
71
|
scale: 1,
|
|
72
72
|
},
|
|
73
|
-
// @ts-expect-error fix later
|
|
74
73
|
exit: {
|
|
75
|
-
opacity:
|
|
76
|
-
[POPOVER_MOTION_CONTENT_OPACITY_PROPERTY]:
|
|
74
|
+
opacity: 0,
|
|
75
|
+
[POPOVER_MOTION_CONTENT_OPACITY_PROPERTY]: -1,
|
|
77
76
|
scale: 0.5,
|
|
78
|
-
transition: {duration: prefersReducedMotion ? 0 : 0.2},
|
|
79
77
|
},
|
|
78
|
+
transition: {duration: prefersReducedMotion ? 0 : 0.2},
|
|
80
79
|
}),
|
|
81
80
|
[prefersReducedMotion],
|
|
82
81
|
)
|
package/src/core/constants.ts
CHANGED
|
@@ -27,22 +27,24 @@ export const POPOVER_MOTION_PROPS: {
|
|
|
27
27
|
} = {
|
|
28
28
|
initial: {
|
|
29
29
|
opacity: 0.5,
|
|
30
|
-
[POPOVER_MOTION_CONTENT_OPACITY_PROPERTY as string]:
|
|
30
|
+
[POPOVER_MOTION_CONTENT_OPACITY_PROPERTY as string]: -1,
|
|
31
31
|
scale: 0.97,
|
|
32
32
|
willChange: 'transform',
|
|
33
33
|
},
|
|
34
34
|
animate: {
|
|
35
|
-
opacity:
|
|
36
|
-
[POPOVER_MOTION_CONTENT_OPACITY_PROPERTY as string]:
|
|
35
|
+
opacity: 2,
|
|
36
|
+
[POPOVER_MOTION_CONTENT_OPACITY_PROPERTY as string]: 1,
|
|
37
37
|
scale: 1,
|
|
38
38
|
},
|
|
39
39
|
exit: {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
[POPOVER_MOTION_CONTENT_OPACITY_PROPERTY as string]: [null, 0, 0],
|
|
40
|
+
opacity: 0,
|
|
41
|
+
[POPOVER_MOTION_CONTENT_OPACITY_PROPERTY as string]: -1,
|
|
43
42
|
scale: 0.97,
|
|
44
43
|
},
|
|
45
|
-
transition: {
|
|
44
|
+
transition: {
|
|
45
|
+
duration: 0.4,
|
|
46
|
+
type: 'spring',
|
|
47
|
+
},
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
/**
|