@sanity/cli 3.67.2-content-os.38 → 3.68.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.67.2-content-os.38+1ac81a1788",
3
+ "version": "3.68.0",
4
4
  "description": "Sanity CLI tool for managing Sanity installations, managing plugins, schemas and datasets",
5
5
  "keywords": [
6
6
  "sanity",
@@ -58,10 +58,10 @@
58
58
  "dependencies": {
59
59
  "@babel/traverse": "^7.23.5",
60
60
  "@sanity/client": "^6.24.1",
61
- "@sanity/codegen": "3.67.2-content-os.38+1ac81a1788",
61
+ "@sanity/codegen": "3.68.0",
62
62
  "@sanity/telemetry": "^0.7.7",
63
63
  "@sanity/template-validator": "^1.0.2",
64
- "@sanity/util": "3.67.2-content-os.38+1ac81a1788",
64
+ "@sanity/util": "3.68.0",
65
65
  "chalk": "^4.1.2",
66
66
  "debug": "^4.3.4",
67
67
  "decompress": "^4.2.0",
@@ -76,13 +76,13 @@
76
76
  "validate-npm-package-name": "^3.0.0"
77
77
  },
78
78
  "devDependencies": {
79
- "@repo/package.config": "3.67.1",
80
- "@repo/test-config": "3.67.1",
79
+ "@repo/package.config": "3.68.0",
80
+ "@repo/test-config": "3.68.0",
81
81
  "@rexxars/gitconfiglocal": "^3.0.1",
82
82
  "@rollup/plugin-node-resolve": "^15.2.3",
83
83
  "@sanity/eslint-config-studio": "^4.0.0",
84
84
  "@sanity/generate-help-url": "^3.0.0",
85
- "@sanity/types": "3.67.2-content-os.38+1ac81a1788",
85
+ "@sanity/types": "3.68.0",
86
86
  "@types/babel__traverse": "^7.20.5",
87
87
  "@types/configstore": "^5.0.1",
88
88
  "@types/cpx": "^1.5.2",
@@ -134,5 +134,5 @@
134
134
  "engines": {
135
135
  "node": ">=18"
136
136
  },
137
- "gitHead": "1ac81a178875ef2bff3aa0ba8e31425da808e0f7"
137
+ "gitHead": "121e7bb9b6239364c1fd0745c683d18dfa29cfff"
138
138
  }
@@ -1,4 +1,4 @@
1
- import React, {useRef, useState} from 'react'
1
+ import React, {useState} from 'react'
2
2
  import {
3
3
  Card,
4
4
  Container,
@@ -32,8 +32,8 @@ export const GetStartedTutorial = () => {
32
32
  )
33
33
 
34
34
  const {sanity} = useTheme()
35
- const rootElement = useRef(null)
36
- const rect = useElementSize(rootElement.current)
35
+ const [rootElement, setRootElement] = useState<HTMLDivElement | null>(null)
36
+ const rect = useElementSize(rootElement)
37
37
  const width = rect?.content?.width
38
38
  const isSmallScreen = width ? width < sanity.media[1] : false
39
39
  const isProdEnv = process.env.NODE_ENV !== 'development'
@@ -48,7 +48,7 @@ export const GetStartedTutorial = () => {
48
48
  }
49
49
 
50
50
  return (
51
- <div ref={rootElement}>
51
+ <div ref={setRootElement}>
52
52
  <Card tone="primary" padding={isSmallScreen ? 3 : 5} paddingBottom={isSmallScreen ? 4 : 6}>
53
53
  <Flex justify={isSmallScreen ? 'space-between' : 'flex-end'} align="center">
54
54
  {isSmallScreen && (