@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/lib/index.d.mts CHANGED
@@ -120,7 +120,7 @@ export declare interface CliConfig {
120
120
  * @internal
121
121
  */
122
122
  __experimental_coreAppConfiguration?: {
123
- organizationId?: string
123
+ organizationId: string
124
124
  appLocation?: string
125
125
  appId?: string
126
126
  }
package/lib/index.d.ts CHANGED
@@ -120,7 +120,7 @@ export declare interface CliConfig {
120
120
  * @internal
121
121
  */
122
122
  __experimental_coreAppConfiguration?: {
123
- organizationId?: string
123
+ organizationId: string
124
124
  appLocation?: string
125
125
  appId?: string
126
126
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/cli",
3
- "version": "3.78.2-mcp.9+516992b0ed",
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.2",
61
- "@sanity/codegen": "3.78.2-mcp.9+516992b0ed",
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.78.2-mcp.9+516992b0ed",
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.15.0",
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.78.1",
80
- "@repo/test-config": "3.78.1",
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.78.2-mcp.9+516992b0ed",
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.7",
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": "516992b0edc9f3fbab9770ec7374d691da11e842"
137
+ "gitHead": "2993aeaab227074384ebf7348666b4a9ae14c7c4"
138
138
  }
package/src/types.ts CHANGED
@@ -352,7 +352,7 @@ export interface CliConfig {
352
352
  * @internal
353
353
  */
354
354
  __experimental_coreAppConfiguration?: {
355
- organizationId?: string
355
+ organizationId: string
356
356
  appLocation?: string
357
357
  appId?: string
358
358
  }
@@ -15,7 +15,7 @@ import {getUserConfig} from './getUserConfig'
15
15
 
16
16
  const apiHosts: Record<string, string | undefined> = {
17
17
  staging: 'https://api.sanity.work',
18
- development: 'http://api.sanity.wtf',
18
+ development: 'http://api.sanity.local',
19
19
  }
20
20
 
21
21
  /**
@@ -4,15 +4,17 @@ import {ExampleComponent} from './ExampleComponent'
4
4
  import './App.css'
5
5
 
6
6
  export function App() {
7
- const sanityConfig: SanityConfig = {
8
- auth: {
9
- authScope: 'global'
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 sanityConfig={sanityConfig}>
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 sanityConfig={sanityConfig}>
16
+ <SanityApp sanityConfigs={sanityConfigs}>
17
17
  <YourComponent />
18
18
  </SanityApp>`}</pre>
19
19
  </div>