@sanity/cli 3.77.2-server-side-schemas.18 → 3.77.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/cli",
3
- "version": "3.77.2-server-side-schemas.18+2f9d85d5e5",
3
+ "version": "3.77.2",
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.28.1",
61
- "@sanity/codegen": "3.77.2-server-side-schemas.18+2f9d85d5e5",
61
+ "@sanity/codegen": "3.77.2",
62
62
  "@sanity/telemetry": "^0.7.7",
63
63
  "@sanity/template-validator": "^2.4.0",
64
- "@sanity/util": "3.77.2-server-side-schemas.18+2f9d85d5e5",
64
+ "@sanity/util": "3.77.2",
65
65
  "chalk": "^4.1.2",
66
66
  "debug": "^4.3.4",
67
67
  "decompress": "^4.2.0",
@@ -75,13 +75,13 @@
75
75
  "validate-npm-package-name": "^3.0.0"
76
76
  },
77
77
  "devDependencies": {
78
- "@repo/package.config": "3.77.1",
79
- "@repo/test-config": "3.77.1",
78
+ "@repo/package.config": "3.77.2",
79
+ "@repo/test-config": "3.77.2",
80
80
  "@rexxars/gitconfiglocal": "^3.0.1",
81
81
  "@rollup/plugin-node-resolve": "^15.2.3",
82
82
  "@sanity/eslint-config-studio": "^4.0.0",
83
83
  "@sanity/generate-help-url": "^3.0.0",
84
- "@sanity/types": "3.77.2-server-side-schemas.18+2f9d85d5e5",
84
+ "@sanity/types": "3.77.2",
85
85
  "@types/babel__traverse": "^7.20.5",
86
86
  "@types/configstore": "^5.0.1",
87
87
  "@types/cpx": "^1.5.2",
@@ -133,5 +133,5 @@
133
133
  "engines": {
134
134
  "node": ">=18"
135
135
  },
136
- "gitHead": "2f9d85d5e5516d8ee7ed366c12681d5152aa9456"
136
+ "gitHead": "84a5a6fdac20a2701367732899e7b706ec253c34"
137
137
  }
@@ -1268,7 +1268,7 @@ export default async function initSanity(
1268
1268
  ]
1269
1269
 
1270
1270
  const chosenOrg = await prompt.single({
1271
- message: 'Select organization to attach project to',
1271
+ message: `Select organization to attach ${isCoreAppTemplate ? 'application' : 'project'} to`,
1272
1272
  type: 'list',
1273
1273
  choices: organizationChoices,
1274
1274
  })
@@ -5,7 +5,7 @@ const portMap: Record<string, number> = {
5
5
  'blitzjs': 3000,
6
6
  'gatsby': 8000,
7
7
  'remix': 3000,
8
- 'astro': 3000,
8
+ 'astro': 4321,
9
9
  'hexo': 4000,
10
10
  'eleventy': 8080,
11
11
  'docusaurus': 3000,
@@ -1,9 +1,10 @@
1
- import {createSanityInstance} from '@sanity/sdk'
2
- import {SanityProvider} from '@sanity/sdk-react/context'
1
+ import {type SanityConfig} from '@sanity/sdk'
2
+ import {SanityApp} from '@sanity/sdk-react/components'
3
+ import {ExampleComponent} from './ExampleComponent'
3
4
 
4
5
  export function App() {
5
6
 
6
- const sanityConfig = {
7
+ const sanityConfig: SanityConfig = {
7
8
  auth: {
8
9
  authScope: 'global'
9
10
  }
@@ -15,11 +16,11 @@ export function App() {
15
16
  // dataset: 'my-dataset',
16
17
  }
17
18
 
18
- const sanityInstance = createSanityInstance(sanityConfig)
19
19
  return (
20
- <SanityProvider sanityInstance={sanityInstance}>
21
- Hello world!
22
- </SanityProvider>
20
+ <SanityApp sanityConfig={sanityConfig}>
21
+ {/* add your own components here! */}
22
+ <ExampleComponent />
23
+ </SanityApp>
23
24
  )
24
25
  }
25
26
 
@@ -0,0 +1,11 @@
1
+ export function ExampleComponent() {
2
+ return (
3
+ <div>
4
+ <h1>Welcome to Your Sanity App!</h1>
5
+ <p>
6
+ This is an example component. You can replace this with your own content
7
+ by creating a new component and importing it in App.tsx.
8
+ </p>
9
+ </div>
10
+ )
11
+ }