@sanity/ui 2.0.9 → 2.0.11-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/dist/index.d.mts +2777 -0
- package/dist/index.mjs +6852 -0
- package/dist/index.mjs.map +1 -0
- package/dist/theme.d.mts +1506 -0
- package/dist/theme.mjs +3348 -0
- package/dist/theme.mjs.map +1 -0
- package/package.json +63 -66
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11-canary.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"sanity",
|
|
6
6
|
"ui",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"bugs": {
|
|
14
14
|
"url": "https://github.com/sanity-io/ui/issues"
|
|
15
15
|
},
|
|
16
|
+
"type": "commonjs",
|
|
16
17
|
"repository": {
|
|
17
18
|
"type": "git",
|
|
18
19
|
"url": "git+https://github.com/sanity-io/ui.git"
|
|
@@ -22,18 +23,16 @@
|
|
|
22
23
|
"sideEffects": false,
|
|
23
24
|
"exports": {
|
|
24
25
|
".": {
|
|
25
|
-
"types": "./dist/index.d.ts",
|
|
26
26
|
"source": "./exports/index.ts",
|
|
27
|
-
"import": "./dist/index.
|
|
27
|
+
"import": "./dist/index.mjs",
|
|
28
28
|
"require": "./dist/index.js",
|
|
29
|
-
"default": "./dist/index.
|
|
29
|
+
"default": "./dist/index.js"
|
|
30
30
|
},
|
|
31
31
|
"./theme": {
|
|
32
|
-
"types": "./dist/theme.d.ts",
|
|
33
32
|
"source": "./exports/theme.ts",
|
|
34
|
-
"import": "./dist/theme.
|
|
33
|
+
"import": "./dist/theme.mjs",
|
|
35
34
|
"require": "./dist/theme.js",
|
|
36
|
-
"default": "./dist/theme.
|
|
35
|
+
"default": "./dist/theme.js"
|
|
37
36
|
},
|
|
38
37
|
"./package.json": "./package.json"
|
|
39
38
|
},
|
|
@@ -54,32 +53,6 @@
|
|
|
54
53
|
"src",
|
|
55
54
|
"theme.js"
|
|
56
55
|
],
|
|
57
|
-
"scripts": {
|
|
58
|
-
"build": "run-s clean pkg:build pkg:check figma:pkg:build",
|
|
59
|
-
"clean": "rimraf .workshop dist",
|
|
60
|
-
"commit": "cz",
|
|
61
|
-
"cypress:dev": "run-p dev cypress:open",
|
|
62
|
-
"cypress:open": "cypress open",
|
|
63
|
-
"cypress:run": "cypress run",
|
|
64
|
-
"dev": "run-p storybook:dev workshop:dev",
|
|
65
|
-
"figma:pkg:build": "cd figma && pnpm build",
|
|
66
|
-
"format": "prettier --write --cache --ignore-unknown .",
|
|
67
|
-
"lint": "eslint . --ext .cjs,.js,.jsx,.mjs,.ts,.tsx --quiet",
|
|
68
|
-
"pkg:build": "pkg build --strict",
|
|
69
|
-
"pkg:check": "pkg --strict",
|
|
70
|
-
"prepare": "husky install",
|
|
71
|
-
"prepublishOnly": "pnpm build",
|
|
72
|
-
"release": "semantic-release",
|
|
73
|
-
"storybook:build": "storybook build",
|
|
74
|
-
"storybook:dev": "storybook dev -p 6006",
|
|
75
|
-
"test": "jest",
|
|
76
|
-
"test:browser": "start-server-and-test 'run-s workshop:build workshop:start' http://localhost:1337 'run-s cypress:run'",
|
|
77
|
-
"ts:check": "tsc",
|
|
78
|
-
"watch": "pkg watch --strict",
|
|
79
|
-
"workshop:build": "workshop build",
|
|
80
|
-
"workshop:dev": "workshop dev",
|
|
81
|
-
"workshop:start": "http-server -a localhost -c-0 -p 1337 -s -P http://localhost:1337/index.html? dist"
|
|
82
|
-
},
|
|
83
56
|
"commitlint": {
|
|
84
57
|
"extends": [
|
|
85
58
|
"@commitlint/config-conventional"
|
|
@@ -111,49 +84,49 @@
|
|
|
111
84
|
"@sanity/color": "^3.0.0",
|
|
112
85
|
"@sanity/icons": "^2.11.2",
|
|
113
86
|
"csstype": "^3.1.3",
|
|
114
|
-
"framer-motion": "
|
|
87
|
+
"framer-motion": "11.0.8",
|
|
115
88
|
"react-refractor": "^2.1.7"
|
|
116
89
|
},
|
|
117
90
|
"devDependencies": {
|
|
118
|
-
"@babel/core": "^7.24.
|
|
119
|
-
"@babel/preset-env": "^7.24.
|
|
120
|
-
"@babel/preset-react": "^7.
|
|
121
|
-
"@babel/preset-typescript": "^7.
|
|
122
|
-
"@commitlint/cli": "^19.1
|
|
91
|
+
"@babel/core": "^7.24.1",
|
|
92
|
+
"@babel/preset-env": "^7.24.1",
|
|
93
|
+
"@babel/preset-react": "^7.24.1",
|
|
94
|
+
"@babel/preset-typescript": "^7.24.1",
|
|
95
|
+
"@commitlint/cli": "^19.2.1",
|
|
123
96
|
"@commitlint/config-conventional": "^19.1.0",
|
|
124
97
|
"@juggle/resize-observer": "^3.4.0",
|
|
125
|
-
"@sanity/pkg-utils": "
|
|
98
|
+
"@sanity/pkg-utils": "5.1.3-canary.0",
|
|
126
99
|
"@sanity/semantic-release-preset": "^4.1.7",
|
|
127
100
|
"@sanity/ui-workshop": "^2.0.6",
|
|
128
|
-
"@storybook/addon-a11y": "^
|
|
129
|
-
"@storybook/addon-docs": "^
|
|
130
|
-
"@storybook/addon-essentials": "^
|
|
131
|
-
"@storybook/addon-interactions": "^
|
|
132
|
-
"@storybook/addon-links": "^
|
|
133
|
-
"@storybook/addon-storysource": "^
|
|
134
|
-
"@storybook/addon-themes": "^
|
|
135
|
-
"@storybook/blocks": "^
|
|
101
|
+
"@storybook/addon-a11y": "^8.0.2",
|
|
102
|
+
"@storybook/addon-docs": "^8.0.2",
|
|
103
|
+
"@storybook/addon-essentials": "^8.0.2",
|
|
104
|
+
"@storybook/addon-interactions": "^8.0.2",
|
|
105
|
+
"@storybook/addon-links": "^8.0.2",
|
|
106
|
+
"@storybook/addon-storysource": "^8.0.2",
|
|
107
|
+
"@storybook/addon-themes": "^8.0.2",
|
|
108
|
+
"@storybook/blocks": "^8.0.2",
|
|
136
109
|
"@storybook/jest": "^0.2.3",
|
|
137
|
-
"@storybook/manager-api": "^
|
|
138
|
-
"@storybook/react": "^
|
|
139
|
-
"@storybook/react-vite": "^
|
|
110
|
+
"@storybook/manager-api": "^8.0.2",
|
|
111
|
+
"@storybook/react": "^8.0.2",
|
|
112
|
+
"@storybook/react-vite": "^8.0.2",
|
|
140
113
|
"@storybook/testing-library": "^0.2.2",
|
|
141
|
-
"@storybook/theming": "^
|
|
114
|
+
"@storybook/theming": "^8.0.2",
|
|
142
115
|
"@testing-library/dom": "^9.3.4",
|
|
143
116
|
"@testing-library/jest-dom": "^5.17.0",
|
|
144
|
-
"@testing-library/react": "^14.2.
|
|
117
|
+
"@testing-library/react": "^14.2.2",
|
|
145
118
|
"@types/jest": "^29.5.12",
|
|
146
119
|
"@types/jest-axe": "^3.5.9",
|
|
147
120
|
"@types/node": "^20.5.9",
|
|
148
|
-
"@types/react": "^18.2.
|
|
149
|
-
"@types/react-dom": "^18.2.
|
|
121
|
+
"@types/react": "^18.2.67",
|
|
122
|
+
"@types/react-dom": "^18.2.22",
|
|
150
123
|
"@types/react-is": "^18.2.4",
|
|
151
124
|
"@types/refractor": "^3.4.1",
|
|
152
125
|
"@types/testing-library__jest-dom": "^5.14.9",
|
|
153
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
154
|
-
"@typescript-eslint/parser": "^7.
|
|
126
|
+
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
|
127
|
+
"@typescript-eslint/parser": "^7.3.1",
|
|
155
128
|
"commitizen": "^4.3.0",
|
|
156
|
-
"cypress": "^13.
|
|
129
|
+
"cypress": "^13.7.0",
|
|
157
130
|
"cypress-real-events": "^1.12.0",
|
|
158
131
|
"cz-conventional-changelog": "^3.3.0",
|
|
159
132
|
"eslint": "^8.57.0",
|
|
@@ -162,7 +135,7 @@
|
|
|
162
135
|
"eslint-plugin-import": "^2.29.1",
|
|
163
136
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
164
137
|
"eslint-plugin-prettier": "^5.1.3",
|
|
165
|
-
"eslint-plugin-react": "^7.34.
|
|
138
|
+
"eslint-plugin-react": "^7.34.1",
|
|
166
139
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
167
140
|
"eslint-plugin-storybook": "^0.8.0",
|
|
168
141
|
"http-server": "^14.1.1",
|
|
@@ -180,14 +153,14 @@
|
|
|
180
153
|
"react-is": "^18.2.0",
|
|
181
154
|
"refractor": "^4.8.1",
|
|
182
155
|
"rimraf": "^5.0.1",
|
|
183
|
-
"semantic-release": "^23.0.
|
|
156
|
+
"semantic-release": "^23.0.5",
|
|
184
157
|
"start-server-and-test": "^2.0.3",
|
|
185
|
-
"storybook": "^
|
|
158
|
+
"storybook": "^8.0.2",
|
|
186
159
|
"styled-components": "^6.1.8",
|
|
187
160
|
"tsconfig-paths": "^4.2.0",
|
|
188
|
-
"typescript": "
|
|
189
|
-
"vite": "^5.
|
|
190
|
-
"vite-tsconfig-paths": "^4.3.
|
|
161
|
+
"typescript": "5.4.2",
|
|
162
|
+
"vite": "^5.2.0",
|
|
163
|
+
"vite-tsconfig-paths": "^4.3.2"
|
|
191
164
|
},
|
|
192
165
|
"peerDependencies": {
|
|
193
166
|
"react": "^18",
|
|
@@ -195,12 +168,36 @@
|
|
|
195
168
|
"react-is": "^18",
|
|
196
169
|
"styled-components": "^5.2 || ^6"
|
|
197
170
|
},
|
|
198
|
-
"packageManager": "pnpm@8.15.
|
|
171
|
+
"packageManager": "pnpm@8.15.5",
|
|
199
172
|
"engines": {
|
|
200
173
|
"node": ">=14.0.0"
|
|
201
174
|
},
|
|
202
175
|
"publishConfig": {
|
|
203
176
|
"access": "public",
|
|
204
177
|
"provenance": true
|
|
178
|
+
},
|
|
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 --quiet",
|
|
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"
|
|
205
202
|
}
|
|
206
|
-
}
|
|
203
|
+
}
|