@sanity/cli 3.95.1-ui3.25.95f33c4bf6 → 3.96.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/cli",
3
- "version": "3.95.1-ui3.25.95f33c4bf6",
3
+ "version": "3.96.0",
4
4
  "description": "Sanity CLI tool for managing Sanity installations, managing plugins, schemas and datasets",
5
5
  "keywords": [
6
6
  "sanity",
@@ -47,7 +47,7 @@
47
47
  ],
48
48
  "scripts": {
49
49
  "build": "pkg-utils build --strict --check --clean",
50
- "check:types": "tsc --project tsconfig.lib.json",
50
+ "check:types": "(cd ../../.. && tsc --project packages/@sanity/cli/tsconfig.lib.json --erasableSyntaxOnly)",
51
51
  "clean": "rimraf lib",
52
52
  "lint": "eslint .",
53
53
  "prepublishOnly": "turbo run build",
@@ -58,17 +58,17 @@
58
58
  "dependencies": {
59
59
  "@babel/traverse": "^7.27.4",
60
60
  "@sanity/client": "^7.6.0",
61
- "@sanity/codegen": "3.95.1-ui3.25.95f33c4bf6",
62
- "@sanity/runtime-cli": "^8.1.0",
61
+ "@sanity/codegen": "3.96.0",
62
+ "@sanity/runtime-cli": "^9.0.0",
63
63
  "@sanity/telemetry": "^0.8.0",
64
64
  "@sanity/template-validator": "^2.4.3",
65
- "@sanity/util": "3.95.1-ui3.25.95f33c4bf6",
65
+ "@sanity/util": "3.96.0",
66
66
  "chalk": "^4.1.2",
67
67
  "debug": "^4.3.4",
68
68
  "decompress": "^4.2.0",
69
69
  "esbuild": "0.25.5",
70
70
  "esbuild-register": "^3.6.0",
71
- "get-it": "^8.6.9",
71
+ "get-it": "^8.6.10",
72
72
  "groq-js": "^1.17.1",
73
73
  "pkg-dir": "^5.0.0",
74
74
  "prettier": "^3.5.3",
@@ -76,14 +76,14 @@
76
76
  "validate-npm-package-name": "^3.0.0"
77
77
  },
78
78
  "devDependencies": {
79
- "@repo/eslint-config": "3.95.0",
80
- "@repo/package.config": "3.95.0",
81
- "@repo/test-config": "3.95.0",
79
+ "@repo/eslint-config": "3.96.0",
80
+ "@repo/package.config": "3.96.0",
81
+ "@repo/test-config": "3.96.0",
82
82
  "@rexxars/gitconfiglocal": "^3.0.1",
83
83
  "@rollup/plugin-node-resolve": "^16.0.1",
84
84
  "@sanity/eslint-config-studio": "^5.0.2",
85
85
  "@sanity/generate-help-url": "^3.0.0",
86
- "@sanity/types": "3.95.1-ui3.25.95f33c4bf6",
86
+ "@sanity/types": "3.96.0",
87
87
  "@types/babel__traverse": "^7.20.5",
88
88
  "@types/configstore": "^5.0.1",
89
89
  "@types/cpx": "^1.5.2",
@@ -136,5 +136,5 @@
136
136
  "engines": {
137
137
  "node": ">=18"
138
138
  },
139
- "gitHead": "95f33c4bf6d5161fd1615516deaa4dbb3e3bc66f"
139
+ "gitHead": "fa00c5fdaf4b5ef8e5503678475849ed9ee0ffac"
140
140
  }
@@ -1,4 +1,4 @@
1
- import {Root} from '@sanity/ui'
1
+ import {ThemeProvider, ToastProvider} from '@sanity/ui'
2
2
  import {buildTheme} from '@sanity/ui/theme'
3
3
  import {createGlobalStyle} from 'styled-components'
4
4
 
@@ -15,9 +15,9 @@ export function SanityUI({children}: {children: React.ReactNode}) {
15
15
  return (
16
16
  <>
17
17
  <GlobalStyle />
18
- <Root as="div">
19
- {children}
20
- </Root>
18
+ <ThemeProvider theme={theme}>
19
+ <ToastProvider>{children}</ToastProvider>
20
+ </ThemeProvider>
21
21
  </>
22
22
  )
23
23
  }
@@ -1,4 +1,4 @@
1
- import {CloseIcon} from '@sanity/icons'
1
+ import React, {useState} from 'react'
2
2
  import {
3
3
  Card,
4
4
  Container,
@@ -9,9 +9,9 @@ import {
9
9
  Text,
10
10
  Stack,
11
11
  useElementSize,
12
+ useTheme,
12
13
  } from '@sanity/ui'
13
- import {BREAKPOINTS} from '@sanity/ui/css'
14
- import React, {useState} from 'react'
14
+ import {CloseIcon} from '@sanity/icons'
15
15
  import {css, styled} from 'styled-components'
16
16
 
17
17
  const BlueColor = css`
@@ -31,10 +31,11 @@ export const GetStartedTutorial = () => {
31
31
  window.localStorage.getItem('getstarted_closedTutorial') !== null
32
32
  )
33
33
 
34
+ const {sanity} = useTheme()
34
35
  const [rootElement, setRootElement] = useState<HTMLDivElement | null>(null)
35
36
  const rect = useElementSize(rootElement)
36
37
  const width = rect?.content?.width
37
- const isSmallScreen = width ? width < BREAKPOINTS[2] : false
38
+ const isSmallScreen = width ? width < sanity.media[1] : false
38
39
  const isProdEnv = process.env.NODE_ENV !== 'development'
39
40
 
40
41
  const onClose = () => {