@sanity/ui 3.3.0 → 3.3.1

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.
Files changed (2) hide show
  1. package/README.md +12 -0
  2. package/package.json +19 -82
package/README.md CHANGED
@@ -28,6 +28,18 @@ root.render(
28
28
  )
29
29
  ```
30
30
 
31
+ ## Contributing and releasing new versions to npm
32
+
33
+ This package lives in the [`sanity-io/ui` monorepo](https://github.com/sanity-io/ui) and uses [Changesets](https://github.com/changesets/changesets) to manage versioning and publishing.
34
+
35
+ When you make a change that should be released, add a changeset to your pull request:
36
+
37
+ ```sh
38
+ pnpm changeset
39
+ ```
40
+
41
+ Once pull requests with changesets are merged into the `main` branch, a "Version Packages" pull request is opened (and kept up to date) that bumps the affected package versions and updates their changelogs. Merging that pull request publishes the packages to npm through the [`Release` workflow](https://github.com/sanity-io/ui/actions/workflows/release.yml), which uses npm [Trusted Publishing](https://docs.npmjs.com/trusted-publishers) (OIDC).
42
+
31
43
  ## License
32
44
 
33
45
  MIT-licensed. See LICENSE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/ui",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "keywords": [
5
5
  "sanity",
6
6
  "ui",
@@ -15,7 +15,8 @@
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",
18
- "url": "git+https://github.com/sanity-io/ui.git"
18
+ "url": "git+https://github.com/sanity-io/ui.git",
19
+ "directory": "packages/ui"
19
20
  },
20
21
  "license": "MIT",
21
22
  "author": "Sanity.io <hello@sanity.io>",
@@ -60,59 +61,6 @@
60
61
  "exports",
61
62
  "src"
62
63
  ],
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 -o storybook/storybook-static",
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
- "commitlint": {
90
- "extends": [
91
- "@commitlint/config-conventional"
92
- ]
93
- },
94
- "lint-staged": {
95
- "*": [
96
- "prettier --write --cache --ignore-unknown"
97
- ]
98
- },
99
- "prettier": "@sanity/prettier-config",
100
- "release": {
101
- "branches": [
102
- {
103
- "name": "v2",
104
- "range": "2.x",
105
- "channel": "v2"
106
- },
107
- "main",
108
- {
109
- "name": "static",
110
- "channel": "static",
111
- "prerelease": true
112
- }
113
- ],
114
- "extends": "@sanity/semantic-release-preset"
115
- },
116
64
  "dependencies": {
117
65
  "@floating-ui/react-dom": "^2.1.6",
118
66
  "@juggle/resize-observer": "^3.4.0",
@@ -129,12 +77,8 @@
129
77
  "@babel/preset-env": "^7.28.5",
130
78
  "@babel/preset-react": "^7.28.5",
131
79
  "@babel/preset-typescript": "^7.28.5",
132
- "@commitlint/cli": "^19.8.1",
133
- "@commitlint/config-conventional": "^19.8.1",
134
80
  "@eslint/js": "^9.39.1",
135
81
  "@sanity/pkg-utils": "^8.1.29",
136
- "@sanity/prettier-config": "^2.0.1",
137
- "@sanity/semantic-release-preset": "^5.0.0",
138
82
  "@sanity/ui-workshop": "^3.4.0",
139
83
  "@storybook/addon-a11y": "^8.6.14",
140
84
  "@storybook/addon-docs": "^8.6.14",
@@ -163,10 +107,6 @@
163
107
  "@vitejs/plugin-react": "^5.0.4",
164
108
  "babel-plugin-react-compiler": "1.0.0",
165
109
  "babel-plugin-styled-components": "^2.1.4",
166
- "commitizen": "^4.3.1",
167
- "cypress": "^13.17.0",
168
- "cypress-real-events": "^1.14.0",
169
- "cz-conventional-changelog": "^3.3.0",
170
110
  "eslint": "^9.39.1",
171
111
  "eslint-config-prettier": "^10.1.8",
172
112
  "eslint-formatter-gha": "^1.6.0",
@@ -179,22 +119,16 @@
179
119
  "eslint-plugin-simple-import-sort": "^12.1.1",
180
120
  "eslint-plugin-storybook": "^0.12.0",
181
121
  "globals": "^16.3.0",
182
- "http-server": "^14.1.1",
183
- "husky": "^8.0.3",
184
122
  "jest": "^30.1.3",
185
123
  "jest-axe": "^10.0.0",
186
124
  "jest-environment-jsdom": "^30.1.2",
187
- "lint-staged": "^14.0.1",
188
125
  "module-alias": "^2.2.3",
189
126
  "npm-run-all2": "^8.0.4",
190
- "prettier": "^3.6.2",
191
127
  "react": "^19.2.0",
192
128
  "react-dom": "^19.2.0",
193
129
  "react-is": "^19.2.0",
194
130
  "refractor": "^5.0.0",
195
131
  "rimraf": "^5.0.5",
196
- "semantic-release": "^24.2.7",
197
- "start-server-and-test": "^2.1.0",
198
132
  "storybook": "^8.6.14",
199
133
  "styled-components": "npm:@sanity/styled-components@^6.1.23",
200
134
  "tsconfig-paths": "^4.2.0",
@@ -209,25 +143,28 @@
209
143
  "react-is": "^18 || >=19.0.0-0",
210
144
  "styled-components": "^5.2 || ^6"
211
145
  },
212
- "packageManager": "pnpm@9.15.9",
213
146
  "engines": {
214
147
  "node": ">=20.19 <22 || >=22.12"
215
148
  },
216
149
  "publishConfig": {
217
150
  "access": "public"
218
151
  },
219
- "pnpm": {
220
- "overrides": {
221
- "@types/react": "$@types/react",
222
- "@types/react-dom": "$@types/react-dom",
223
- "@types/react-is": "$@types/react-is",
224
- "conventional-changelog-conventionalcommits": ">= 8.0.0",
225
- "react": "$react",
226
- "react-dom": "$react-dom",
227
- "react-is": "$react-is"
228
- }
229
- },
230
152
  "esm.sh": {
231
153
  "bundle": false
154
+ },
155
+ "scripts": {
156
+ "build": "run-s clean pkg:build pkg:check",
157
+ "clean": "rimraf .workshop dist",
158
+ "dev": "run-p storybook:dev workshop:dev",
159
+ "lint": "eslint .",
160
+ "pkg:build": "pkg build --strict",
161
+ "pkg:check": "pkg --strict",
162
+ "storybook:build": "storybook build -o storybook/storybook-static",
163
+ "storybook:dev": "storybook dev -p 6006",
164
+ "test": "jest",
165
+ "ts:check": "tsc",
166
+ "watch": "pkg watch --strict",
167
+ "workshop:build": "pnpm build && workshop build",
168
+ "workshop:dev": "workshop dev"
232
169
  }
233
- }
170
+ }