@sanity/ui 3.0.0 → 3.0.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refractor.js","sources":["../../src/core/primitives/code/refractor.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"refractor.js","sources":["../../src/core/primitives/code/refractor.tsx"],"sourcesContent":["import {hasLanguage, Refractor} from 'react-refractor'\n\nexport default function LazyRefractor(\n props: Partial<Pick<React.ComponentProps<typeof Refractor>, 'language'>> & {\n value: React.ReactNode\n },\n) {\n const {language: languageProp, value} = props\n const language = typeof languageProp === 'string' ? languageProp : undefined\n const registered = language ? hasLanguage(language as any) : false\n\n return (\n <>\n {!(language && registered) && <code>{value}</code>}\n {language && registered && <Refractor inline language={language} value={String(value)} />}\n </>\n )\n}\n\nLazyRefractor.displayName = 'LazyRefractor'\n"],"names":["LazyRefractor","props","$","_c","language","languageProp","value","undefined","t0","hasLanguage","registered","t1","t2","Refractor","String","t3","displayName"],"mappings":";;AAEA,SAAeA,cAAAC,OAAA;AAAA,QAAAC,IAAAC,uBAAA,EAAA,GAKb;AAAA,IAAAC,UAAAC;AAAAA,IAAAC;AAAAA,EAAAA,IAAwCL,OACxCG,WAAiB,OAAOC,gBAAiB,WAAWA,eAAYE;AAAY,MAAAC;AAAAN,WAAAE,YACzDI,KAAAJ,WAAWK,eAAAA,YAAYL,QAAe,IAAC,IAAQF,OAAAE,UAAAF,OAAAM,MAAAA,KAAAN,EAAA,CAAA;AAAlE,QAAAQ,aAAmBF;AAA+C,MAAAG;AAAAT,IAAA,CAAA,MAAAE,YAAAF,SAAAQ,cAAAR,EAAA,CAAA,MAAAI,SAI7DK,KAAA,EAAEP,YAAYM,wDAAsBJ,UAAAA,MAAAA,CAAM,GAAOJ,OAAAE,UAAAF,OAAAQ,YAAAR,OAAAI,OAAAJ,OAAAS,MAAAA,KAAAT,EAAA,CAAA;AAAA,MAAAU;AAAAV,IAAA,CAAA,MAAAE,YAAAF,SAAAQ,cAAAR,EAAA,CAAA,MAAAI,SACjDM,KAAAR,YAAYM,6CAAeG,eAAAA,WAAA,EAAU,QAAA,IAAiBT,UAAiB,OAAAU,OAAOR,KAAK,EAAA,CAAC,GAAIJ,OAAAE,UAAAF,OAAAQ,YAAAR,OAAAI,OAAAJ,OAAAU,MAAAA,KAAAV,EAAA,CAAA;AAAA,MAAAa;AAAA,SAAAb,EAAA,EAAA,MAAAS,MAAAT,UAAAU,MAF3FG,4DACGJ,UAAAA;AAAAA,IAAAA;AAAAA,IACAC;AAAAA,EAAAA,EAAAA,CAAwF,GACxFV,QAAAS,IAAAT,QAAAU,IAAAV,QAAAa,MAAAA,KAAAb,EAAA,EAAA,GAHHa;AAGG;AAIPf,cAAcgB,cAAc;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refractor.mjs","sources":["../../src/core/primitives/code/refractor.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"refractor.mjs","sources":["../../src/core/primitives/code/refractor.tsx"],"sourcesContent":["import {hasLanguage, Refractor} from 'react-refractor'\n\nexport default function LazyRefractor(\n props: Partial<Pick<React.ComponentProps<typeof Refractor>, 'language'>> & {\n value: React.ReactNode\n },\n) {\n const {language: languageProp, value} = props\n const language = typeof languageProp === 'string' ? languageProp : undefined\n const registered = language ? hasLanguage(language as any) : false\n\n return (\n <>\n {!(language && registered) && <code>{value}</code>}\n {language && registered && <Refractor inline language={language} value={String(value)} />}\n </>\n )\n}\n\nLazyRefractor.displayName = 'LazyRefractor'\n"],"names":["LazyRefractor","props","$","_c","language","languageProp","value","undefined","t0","hasLanguage","registered","t1","t2","String","t3","displayName"],"mappings":";;;AAEA,SAAeA,cAAAC,OAAA;AAAA,QAAAC,IAAAC,EAAA,EAAA,GAKb;AAAA,IAAAC,UAAAC;AAAAA,IAAAC;AAAAA,EAAAA,IAAwCL,OACxCG,WAAiB,OAAOC,gBAAiB,WAAWA,eAAYE;AAAY,MAAAC;AAAAN,WAAAE,YACzDI,KAAAJ,WAAWK,YAAYL,QAAe,IAAC,IAAQF,OAAAE,UAAAF,OAAAM,MAAAA,KAAAN,EAAA,CAAA;AAAlE,QAAAQ,aAAmBF;AAA+C,MAAAG;AAAAT,IAAA,CAAA,MAAAE,YAAAF,SAAAQ,cAAAR,EAAA,CAAA,MAAAI,SAI7DK,KAAA,EAAEP,YAAYM,6CAAsBJ,UAAAA,MAAAA,CAAM,GAAOJ,OAAAE,UAAAF,OAAAQ,YAAAR,OAAAI,OAAAJ,OAAAS,MAAAA,KAAAT,EAAA,CAAA;AAAA,MAAAU;AAAAV,IAAA,CAAA,MAAAE,YAAAF,SAAAQ,cAAAR,EAAA,CAAA,MAAAI,SACjDM,KAAAR,YAAYM,kCAAe,WAAA,EAAU,QAAA,IAAiBN,UAAiB,OAAAS,OAAOP,KAAK,EAAA,CAAC,GAAIJ,OAAAE,UAAAF,OAAAQ,YAAAR,OAAAI,OAAAJ,OAAAU,MAAAA,KAAAV,EAAA,CAAA;AAAA,MAAAY;AAAA,SAAAZ,EAAA,EAAA,MAAAS,MAAAT,UAAAU,MAF3FE,sCACGH,UAAAA;AAAAA,IAAAA;AAAAA,IACAC;AAAAA,EAAAA,EAAAA,CAAwF,GACxFV,QAAAS,IAAAT,QAAAU,IAAAV,QAAAY,MAAAA,KAAAZ,EAAA,EAAA,GAHHY;AAGG;AAIPd,cAAce,cAAc;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/ui",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"sanity",
|
|
6
6
|
"ui",
|
|
@@ -99,15 +99,15 @@
|
|
|
99
99
|
"prettier": "@sanity/prettier-config",
|
|
100
100
|
"release": {
|
|
101
101
|
"branches": [
|
|
102
|
-
"+([0-9])?(.{+([0-9]),x}).x",
|
|
103
|
-
"main",
|
|
104
|
-
"next",
|
|
105
102
|
{
|
|
106
|
-
"name": "
|
|
107
|
-
"
|
|
103
|
+
"name": "v2",
|
|
104
|
+
"range": "2.x",
|
|
105
|
+
"channel": "v2"
|
|
108
106
|
},
|
|
107
|
+
"main",
|
|
109
108
|
{
|
|
110
|
-
"name": "
|
|
109
|
+
"name": "static",
|
|
110
|
+
"channel": "static",
|
|
111
111
|
"prerelease": true
|
|
112
112
|
}
|
|
113
113
|
],
|
|
@@ -119,10 +119,10 @@
|
|
|
119
119
|
"@sanity/color": "^3.0.6",
|
|
120
120
|
"@sanity/icons": "^3.7.4",
|
|
121
121
|
"csstype": "^3.1.3",
|
|
122
|
-
"framer-motion": "^12.23.
|
|
122
|
+
"framer-motion": "^12.23.11",
|
|
123
123
|
"react-compiler-runtime": "19.1.0-rc.2",
|
|
124
124
|
"react-refractor": "^4.0.0",
|
|
125
|
-
"use-effect-event": "^2.0.
|
|
125
|
+
"use-effect-event": "^2.0.3"
|
|
126
126
|
},
|
|
127
127
|
"devDependencies": {
|
|
128
128
|
"@babel/core": "^7.28.0",
|
|
@@ -131,11 +131,11 @@
|
|
|
131
131
|
"@babel/preset-typescript": "^7.27.1",
|
|
132
132
|
"@commitlint/cli": "^19.8.1",
|
|
133
133
|
"@commitlint/config-conventional": "^19.8.1",
|
|
134
|
-
"@eslint/js": "^9.
|
|
135
|
-
"@sanity/pkg-utils": "^7.9.
|
|
136
|
-
"@sanity/prettier-config": "^2.0.
|
|
134
|
+
"@eslint/js": "^9.31.0",
|
|
135
|
+
"@sanity/pkg-utils": "^7.9.11",
|
|
136
|
+
"@sanity/prettier-config": "^2.0.1",
|
|
137
137
|
"@sanity/semantic-release-preset": "^5.0.0",
|
|
138
|
-
"@sanity/ui-workshop": "^
|
|
138
|
+
"@sanity/ui-workshop": "^3.1.2",
|
|
139
139
|
"@storybook/addon-a11y": "^8.6.14",
|
|
140
140
|
"@storybook/addon-docs": "^8.6.14",
|
|
141
141
|
"@storybook/addon-essentials": "^8.6.14",
|
|
@@ -150,8 +150,8 @@
|
|
|
150
150
|
"@storybook/react-vite": "^8.6.14",
|
|
151
151
|
"@storybook/test": "^8.6.14",
|
|
152
152
|
"@storybook/theming": "^8.6.14",
|
|
153
|
-
"@testing-library/dom": "^10.4.
|
|
154
|
-
"@testing-library/jest-dom": "^6.6.
|
|
153
|
+
"@testing-library/dom": "^10.4.1",
|
|
154
|
+
"@testing-library/jest-dom": "^6.6.4",
|
|
155
155
|
"@testing-library/react": "^16.3.0",
|
|
156
156
|
"@testing-library/user-event": "^14.6.1",
|
|
157
157
|
"@types/jest": "^30.0.0",
|
|
@@ -160,48 +160,47 @@
|
|
|
160
160
|
"@types/react": "^19.1.8",
|
|
161
161
|
"@types/react-dom": "^19.1.6",
|
|
162
162
|
"@types/react-is": "^19.0.0",
|
|
163
|
-
"@
|
|
164
|
-
"@vitejs/plugin-react": "^4.6.0",
|
|
163
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
165
164
|
"babel-plugin-react-compiler": "19.1.0-rc.2",
|
|
166
165
|
"babel-plugin-styled-components": "^2.1.4",
|
|
167
166
|
"commitizen": "^4.3.1",
|
|
168
167
|
"cypress": "^13.17.0",
|
|
169
168
|
"cypress-real-events": "^1.14.0",
|
|
170
169
|
"cz-conventional-changelog": "^3.3.0",
|
|
171
|
-
"eslint": "^9.
|
|
172
|
-
"eslint-config-prettier": "^10.1.
|
|
170
|
+
"eslint": "^9.31.0",
|
|
171
|
+
"eslint-config-prettier": "^10.1.8",
|
|
173
172
|
"eslint-formatter-compact": "^8.40.0",
|
|
174
173
|
"eslint-plugin-boundaries": "^5.0.1",
|
|
175
174
|
"eslint-plugin-import": "^2.32.0",
|
|
176
175
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
177
176
|
"eslint-plugin-react": "^7.37.5",
|
|
178
|
-
"eslint-plugin-react-hooks": "0.0.0-experimental-
|
|
177
|
+
"eslint-plugin-react-hooks": "0.0.0-experimental-edac0dde-20250723",
|
|
179
178
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
180
179
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
181
180
|
"eslint-plugin-storybook": "^0.12.0",
|
|
182
181
|
"globals": "^16.3.0",
|
|
183
182
|
"http-server": "^14.1.1",
|
|
184
183
|
"husky": "^8.0.3",
|
|
185
|
-
"jest": "^30.0.
|
|
184
|
+
"jest": "^30.0.5",
|
|
186
185
|
"jest-axe": "^10.0.0",
|
|
187
|
-
"jest-environment-jsdom": "^30.0.
|
|
186
|
+
"jest-environment-jsdom": "^30.0.5",
|
|
188
187
|
"lint-staged": "^14.0.1",
|
|
189
188
|
"module-alias": "^2.2.3",
|
|
190
|
-
"npm-run-all2": "^
|
|
189
|
+
"npm-run-all2": "^8.0.4",
|
|
191
190
|
"prettier": "^3.6.2",
|
|
192
191
|
"react": "^19.1.0",
|
|
193
192
|
"react-dom": "^19.1.0",
|
|
194
193
|
"react-is": "^19.1.0",
|
|
195
194
|
"refractor": "^5.0.0",
|
|
196
195
|
"rimraf": "^5.0.5",
|
|
197
|
-
"semantic-release": "^24.2.
|
|
196
|
+
"semantic-release": "^24.2.7",
|
|
198
197
|
"start-server-and-test": "^2.0.12",
|
|
199
198
|
"storybook": "^8.6.14",
|
|
200
199
|
"styled-components": "^6.1.19",
|
|
201
200
|
"tsconfig-paths": "^4.2.0",
|
|
202
201
|
"typescript": "5.8.3",
|
|
203
|
-
"typescript-eslint": "^8.
|
|
204
|
-
"vite": "^
|
|
202
|
+
"typescript-eslint": "^8.38.0",
|
|
203
|
+
"vite": "^7.0.6",
|
|
205
204
|
"vite-tsconfig-paths": "^5.1.4"
|
|
206
205
|
},
|
|
207
206
|
"peerDependencies": {
|