@sanity/ui 3.1.0 → 3.1.1-canary.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/ui",
3
- "version": "3.1.0",
3
+ "version": "3.1.1-canary.0",
4
4
  "keywords": [
5
5
  "sanity",
6
6
  "ui",
@@ -60,32 +60,6 @@
60
60
  "exports",
61
61
  "src"
62
62
  ],
63
- "scripts": {
64
- "build": "run-s clean pkg:build pkg:check figma:pkg:build",
65
- "clean": "rimraf .workshop dist",
66
- "commit": "cz",
67
- "cypress:dev": "run-p dev cypress:open",
68
- "cypress:open": "cypress open",
69
- "cypress:run": "cypress run",
70
- "dev": "run-p storybook:dev workshop:dev",
71
- "figma:pkg:build": "cd figma && pnpm build",
72
- "format": "prettier --write --cache --ignore-unknown .",
73
- "lint": "eslint .",
74
- "prepack": "pnpm build",
75
- "pkg:build": "pkg build --strict",
76
- "pkg:check": "pkg --strict",
77
- "prepare": "husky install",
78
- "release": "semantic-release",
79
- "storybook:build": "storybook build",
80
- "storybook:dev": "storybook dev -p 6006",
81
- "test": "jest",
82
- "test:browser": "start-server-and-test 'run-s workshop:build workshop:start' http://localhost:1337 'run-s cypress:run'",
83
- "ts:check": "tsc",
84
- "watch": "pkg watch --strict",
85
- "workshop:build": "workshop build",
86
- "workshop:dev": "workshop dev",
87
- "workshop:start": "http-server -a localhost -c-0 -p 1337 -s -P http://localhost:1337/index.html? dist"
88
- },
89
63
  "commitlint": {
90
64
  "extends": [
91
65
  "@commitlint/config-conventional"
@@ -132,7 +106,7 @@
132
106
  "@commitlint/cli": "^19.8.1",
133
107
  "@commitlint/config-conventional": "^19.8.1",
134
108
  "@eslint/js": "^9.34.0",
135
- "@sanity/pkg-utils": "^8.1.1",
109
+ "@sanity/pkg-utils": "^8.1.12",
136
110
  "@sanity/prettier-config": "^2.0.1",
137
111
  "@sanity/semantic-release-preset": "^5.0.0",
138
112
  "@sanity/ui-workshop": "^3.3.2",
@@ -210,25 +184,37 @@
210
184
  "react-is": "^18 || >=19.0.0-0",
211
185
  "styled-components": "^5.2 || ^6"
212
186
  },
213
- "packageManager": "pnpm@9.15.9",
214
187
  "engines": {
215
188
  "node": ">=20.19 <22 || >=22.12"
216
189
  },
217
190
  "publishConfig": {
218
191
  "access": "public"
219
192
  },
220
- "pnpm": {
221
- "overrides": {
222
- "@types/react": "$@types/react",
223
- "@types/react-dom": "$@types/react-dom",
224
- "@types/react-is": "$@types/react-is",
225
- "conventional-changelog-conventionalcommits": ">= 8.0.0",
226
- "react": "$react",
227
- "react-dom": "$react-dom",
228
- "react-is": "$react-is"
229
- }
230
- },
231
193
  "esm.sh": {
232
194
  "bundle": false
195
+ },
196
+ "scripts": {
197
+ "build": "run-s clean pkg:build pkg:check figma:pkg:build",
198
+ "clean": "rimraf .workshop dist",
199
+ "commit": "cz",
200
+ "cypress:dev": "run-p dev cypress:open",
201
+ "cypress:open": "cypress open",
202
+ "cypress:run": "cypress run",
203
+ "dev": "run-p storybook:dev workshop:dev",
204
+ "figma:pkg:build": "cd figma && pnpm build",
205
+ "format": "prettier --write --cache --ignore-unknown .",
206
+ "lint": "eslint .",
207
+ "pkg:build": "pkg build --strict",
208
+ "pkg:check": "pkg --strict",
209
+ "release": "semantic-release",
210
+ "storybook:build": "storybook build",
211
+ "storybook:dev": "storybook dev -p 6006",
212
+ "test": "jest",
213
+ "test:browser": "start-server-and-test 'run-s workshop:build workshop:start' http://localhost:1337 'run-s cypress:run'",
214
+ "ts:check": "tsc",
215
+ "watch": "pkg watch --strict",
216
+ "workshop:build": "workshop build",
217
+ "workshop:dev": "workshop dev",
218
+ "workshop:start": "http-server -a localhost -c-0 -p 1337 -s -P http://localhost:1337/index.html? dist"
233
219
  }
234
- }
220
+ }
@@ -10,6 +10,7 @@ import {
10
10
  MouseEvent,
11
11
  ReactNode,
12
12
  Ref,
13
+ startTransition,
13
14
  useCallback,
14
15
  useEffect,
15
16
  useImperativeHandle,
@@ -685,7 +686,9 @@ const InnerAutocomplete = forwardRef(function InnerAutocomplete<
685
686
  prefix={prefix}
686
687
  radius={radius}
687
688
  readOnly={readOnly}
688
- ref={setInputElement}
689
+ ref={(node) => {
690
+ startTransition(() => setInputElement(node))
691
+ }}
689
692
  role="combobox"
690
693
  spellCheck={false}
691
694
  suffix={suffix || openButtonNode}