@sanity/ui 2.3.5 → 2.3.6-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/dist/index.esm.js +3 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +25 -33
- package/src/core/primitives/tooltip/tooltip.tsx +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/ui",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.6-0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"sanity",
|
|
6
6
|
"ui",
|
|
@@ -51,32 +51,6 @@
|
|
|
51
51
|
"src",
|
|
52
52
|
"theme.js"
|
|
53
53
|
],
|
|
54
|
-
"scripts": {
|
|
55
|
-
"build": "run-s clean pkg:build pkg:check figma:pkg:build",
|
|
56
|
-
"clean": "rimraf .workshop dist",
|
|
57
|
-
"commit": "cz",
|
|
58
|
-
"cypress:dev": "run-p dev cypress:open",
|
|
59
|
-
"cypress:open": "cypress open",
|
|
60
|
-
"cypress:run": "cypress run",
|
|
61
|
-
"dev": "run-p storybook:dev workshop:dev",
|
|
62
|
-
"figma:pkg:build": "cd figma && pnpm build",
|
|
63
|
-
"format": "prettier --write --cache --ignore-unknown .",
|
|
64
|
-
"lint": "eslint . --ext .cjs,.js,.jsx,.mjs,.ts,.tsx",
|
|
65
|
-
"pkg:build": "pkg build --strict",
|
|
66
|
-
"pkg:check": "pkg --strict",
|
|
67
|
-
"prepare": "husky install",
|
|
68
|
-
"prepublishOnly": "pnpm build",
|
|
69
|
-
"release": "semantic-release",
|
|
70
|
-
"storybook:build": "storybook build",
|
|
71
|
-
"storybook:dev": "storybook dev -p 6006",
|
|
72
|
-
"test": "jest",
|
|
73
|
-
"test:browser": "start-server-and-test 'run-s workshop:build workshop:start' http://localhost:1337 'run-s cypress:run'",
|
|
74
|
-
"ts:check": "tsc",
|
|
75
|
-
"watch": "pkg watch --strict",
|
|
76
|
-
"workshop:build": "workshop build",
|
|
77
|
-
"workshop:dev": "workshop dev",
|
|
78
|
-
"workshop:start": "http-server -a localhost -c-0 -p 1337 -s -P http://localhost:1337/index.html? dist"
|
|
79
|
-
},
|
|
80
54
|
"commitlint": {
|
|
81
55
|
"extends": [
|
|
82
56
|
"@commitlint/config-conventional"
|
|
@@ -193,7 +167,6 @@
|
|
|
193
167
|
"react-is": "^18",
|
|
194
168
|
"styled-components": "^5.2 || ^6"
|
|
195
169
|
},
|
|
196
|
-
"packageManager": "pnpm@9.2.0",
|
|
197
170
|
"engines": {
|
|
198
171
|
"node": ">=14.0.0"
|
|
199
172
|
},
|
|
@@ -203,9 +176,28 @@
|
|
|
203
176
|
"esm.sh": {
|
|
204
177
|
"bundle": false
|
|
205
178
|
},
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
|
|
209
|
-
|
|
179
|
+
"scripts": {
|
|
180
|
+
"build": "run-s clean pkg:build pkg:check figma:pkg:build",
|
|
181
|
+
"clean": "rimraf .workshop dist",
|
|
182
|
+
"commit": "cz",
|
|
183
|
+
"cypress:dev": "run-p dev cypress:open",
|
|
184
|
+
"cypress:open": "cypress open",
|
|
185
|
+
"cypress:run": "cypress run",
|
|
186
|
+
"dev": "run-p storybook:dev workshop:dev",
|
|
187
|
+
"figma:pkg:build": "cd figma && pnpm build",
|
|
188
|
+
"format": "prettier --write --cache --ignore-unknown .",
|
|
189
|
+
"lint": "eslint . --ext .cjs,.js,.jsx,.mjs,.ts,.tsx",
|
|
190
|
+
"pkg:build": "pkg build --strict",
|
|
191
|
+
"pkg:check": "pkg --strict",
|
|
192
|
+
"release": "semantic-release",
|
|
193
|
+
"storybook:build": "storybook build",
|
|
194
|
+
"storybook:dev": "storybook dev -p 6006",
|
|
195
|
+
"test": "jest",
|
|
196
|
+
"test:browser": "start-server-and-test 'run-s workshop:build workshop:start' http://localhost:1337 'run-s cypress:run'",
|
|
197
|
+
"ts:check": "tsc",
|
|
198
|
+
"watch": "pkg watch --strict",
|
|
199
|
+
"workshop:build": "workshop build",
|
|
200
|
+
"workshop:dev": "workshop dev",
|
|
201
|
+
"workshop:start": "http-server -a localhost -c-0 -p 1337 -s -P http://localhost:1337/index.html? dist"
|
|
210
202
|
}
|
|
211
|
-
}
|
|
203
|
+
}
|
|
@@ -357,6 +357,10 @@ export const Tooltip = forwardRef(function Tooltip(
|
|
|
357
357
|
)
|
|
358
358
|
|
|
359
359
|
const childRef = useRef<HTMLElement | null>(null)
|
|
360
|
+
|
|
361
|
+
// Merge refs so that any ref we are overriding is called as well
|
|
362
|
+
useImperativeHandle((childProp as any)?.ref, () => childRef.current)
|
|
363
|
+
|
|
360
364
|
const child = useMemo(() => {
|
|
361
365
|
if (!childProp) return null
|
|
362
366
|
|