@sanity/ui 2.7.1-canary.2 → 2.8.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": "2.7.1-canary.2",
3
+ "version": "2.8.0",
4
4
  "keywords": [
5
5
  "sanity",
6
6
  "ui",
@@ -51,6 +51,32 @@
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
+ "prepack": "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
+ },
54
80
  "commitlint": {
55
81
  "extends": [
56
82
  "@commitlint/config-conventional"
@@ -169,37 +195,19 @@
169
195
  "react-is": "^18",
170
196
  "styled-components": "^5.2 || ^6"
171
197
  },
198
+ "packageManager": "pnpm@9.5.0",
172
199
  "engines": {
173
200
  "node": ">=14.0.0"
174
201
  },
175
202
  "publishConfig": {
176
203
  "access": "public"
177
204
  },
205
+ "pnpm": {
206
+ "overrides": {
207
+ "conventional-changelog-conventionalcommits": ">= 8.0.0"
208
+ }
209
+ },
178
210
  "esm.sh": {
179
211
  "bundle": false
180
- },
181
- "scripts": {
182
- "build": "run-s clean pkg:build pkg:check figma:pkg:build",
183
- "clean": "rimraf .workshop dist",
184
- "commit": "cz",
185
- "cypress:dev": "run-p dev cypress:open",
186
- "cypress:open": "cypress open",
187
- "cypress:run": "cypress run",
188
- "dev": "run-p storybook:dev workshop:dev",
189
- "figma:pkg:build": "cd figma && pnpm build",
190
- "format": "prettier --write --cache --ignore-unknown .",
191
- "lint": "eslint . --ext .cjs,.js,.jsx,.mjs,.ts,.tsx",
192
- "pkg:build": "pkg build --strict",
193
- "pkg:check": "pkg --strict",
194
- "release": "semantic-release",
195
- "storybook:build": "storybook build",
196
- "storybook:dev": "storybook dev -p 6006",
197
- "test": "jest",
198
- "test:browser": "start-server-and-test 'run-s workshop:build workshop:start' http://localhost:1337 'run-s cypress:run'",
199
- "ts:check": "tsc",
200
- "watch": "pkg watch --strict",
201
- "workshop:build": "workshop build",
202
- "workshop:dev": "workshop dev",
203
- "workshop:start": "http-server -a localhost -c-0 -p 1337 -s -P http://localhost:1337/index.html? dist"
204
212
  }
205
- }
213
+ }
@@ -105,6 +105,7 @@ export function useClickOutside(
105
105
 
106
106
  const resolvedBoundaryElement =
107
107
  typeof boundaryElement === 'function' ? boundaryElement() : boundaryElement
108
+
108
109
  if (resolvedBoundaryElement && !resolvedBoundaryElement.contains(target)) {
109
110
  return
110
111
  }