@sanity/cli 3.78.2-mcp.9 → 3.79.1-canary.22
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/bin/xdg-open +1066 -0
- package/lib/_chunks-cjs/cli.js +1 -1
- package/lib/_chunks-cjs/cli.js.map +1 -1
- package/lib/index.d.mts +1 -1
- package/lib/index.d.ts +1 -1
- package/package.json +10 -10
- package/src/types.ts +1 -1
- package/src/util/clientWrapper.ts +1 -1
- package/templates/core-app/src/App.tsx +7 -5
- package/templates/core-app/src/ExampleComponent.tsx +1 -1
package/lib/index.d.mts
CHANGED
package/lib/index.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sanity/cli",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.79.1-canary.22+2993aeaab2",
|
4
4
|
"description": "Sanity CLI tool for managing Sanity installations, managing plugins, schemas and datasets",
|
5
5
|
"keywords": [
|
6
6
|
"sanity",
|
@@ -57,32 +57,32 @@
|
|
57
57
|
},
|
58
58
|
"dependencies": {
|
59
59
|
"@babel/traverse": "^7.23.5",
|
60
|
-
"@sanity/client": "^6.28.
|
61
|
-
"@sanity/codegen": "3.
|
60
|
+
"@sanity/client": "^6.28.3",
|
61
|
+
"@sanity/codegen": "3.79.1-canary.22+2993aeaab2",
|
62
62
|
"@sanity/runtime-cli": "^1.1.1",
|
63
63
|
"@sanity/telemetry": "^0.7.7",
|
64
64
|
"@sanity/template-validator": "^2.4.0",
|
65
|
-
"@sanity/util": "3.
|
65
|
+
"@sanity/util": "3.79.1-canary.22+2993aeaab2",
|
66
66
|
"chalk": "^4.1.2",
|
67
67
|
"debug": "^4.3.4",
|
68
68
|
"decompress": "^4.2.0",
|
69
69
|
"esbuild": "0.21.5",
|
70
70
|
"esbuild-register": "^3.5.0",
|
71
71
|
"get-it": "^8.6.7",
|
72
|
-
"groq-js": "^1.
|
72
|
+
"groq-js": "^1.16.1",
|
73
73
|
"pkg-dir": "^5.0.0",
|
74
74
|
"prettier": "^3.3.0",
|
75
75
|
"semver": "^7.3.5",
|
76
76
|
"validate-npm-package-name": "^3.0.0"
|
77
77
|
},
|
78
78
|
"devDependencies": {
|
79
|
-
"@repo/package.config": "3.
|
80
|
-
"@repo/test-config": "3.
|
79
|
+
"@repo/package.config": "3.79.0",
|
80
|
+
"@repo/test-config": "3.79.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.
|
85
|
+
"@sanity/types": "3.79.1-canary.22+2993aeaab2",
|
86
86
|
"@types/babel__traverse": "^7.20.5",
|
87
87
|
"@types/configstore": "^5.0.1",
|
88
88
|
"@types/cpx": "^1.5.2",
|
@@ -127,12 +127,12 @@
|
|
127
127
|
"semver-compare": "^1.0.0",
|
128
128
|
"tar": "^6.1.11",
|
129
129
|
"vite": "^6.2.0",
|
130
|
-
"vitest": "^3.0.
|
130
|
+
"vitest": "^3.0.8",
|
131
131
|
"which": "^2.0.2",
|
132
132
|
"xdg-basedir": "^4.0.0"
|
133
133
|
},
|
134
134
|
"engines": {
|
135
135
|
"node": ">=18"
|
136
136
|
},
|
137
|
-
"gitHead": "
|
137
|
+
"gitHead": "2993aeaab227074384ebf7348666b4a9ae14c7c4"
|
138
138
|
}
|
package/src/types.ts
CHANGED
@@ -4,15 +4,17 @@ import {ExampleComponent} from './ExampleComponent'
|
|
4
4
|
import './App.css'
|
5
5
|
|
6
6
|
export function App() {
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
// apps can access many different projects or other sources of data
|
8
|
+
const sanityConfigs: SanityConfig[] = [
|
9
|
+
{
|
10
|
+
projectId: 'project-id',
|
11
|
+
dataset: 'dataset-name',
|
10
12
|
}
|
11
|
-
|
13
|
+
]
|
12
14
|
|
13
15
|
return (
|
14
16
|
<div className="app-container">
|
15
|
-
<SanityApp
|
17
|
+
<SanityApp sanityConfigs={sanityConfigs}>
|
16
18
|
{/* add your own components here! */}
|
17
19
|
<ExampleComponent />
|
18
20
|
</SanityApp>
|
@@ -13,7 +13,7 @@ export function ExampleComponent() {
|
|
13
13
|
<pre>{`import {YourComponent} from './YourComponent'
|
14
14
|
|
15
15
|
// Then use it in your JSX
|
16
|
-
<SanityApp
|
16
|
+
<SanityApp sanityConfigs={sanityConfigs}>
|
17
17
|
<YourComponent />
|
18
18
|
</SanityApp>`}</pre>
|
19
19
|
</div>
|