@sanity/cli 3.82.0 → 3.83.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/lib/_chunks-cjs/cli.js +30 -2
 - package/lib/_chunks-cjs/cli.js.map +1 -1
 - package/package.json +8 -8
 - package/src/actions/init-project/determineAppTemplate.ts +1 -1
 - package/src/actions/init-project/templates/appSanityUi.ts +32 -0
 - package/src/actions/init-project/templates/index.ts +2 -0
 - package/src/studioDependencies.ts +1 -1
 - package/templates/app-quickstart/src/ExampleComponent.css +60 -2
 - package/templates/app-quickstart/src/ExampleComponent.tsx +20 -5
 - package/templates/app-sanity-ui/src/App.tsx +30 -0
 - package/templates/app-sanity-ui/src/ExampleComponent.tsx +33 -0
 
    
        package/lib/_chunks-cjs/cli.js
    CHANGED
    
    | 
         @@ -27274,7 +27274,7 @@ const studioDependencies = { 
     | 
|
| 
       27274 
27274 
     | 
    
         
             
                // Non-Sanity dependencies
         
     | 
| 
       27275 
27275 
     | 
    
         
             
                react: "^18.2.0",
         
     | 
| 
       27276 
27276 
     | 
    
         
             
                "react-dom": "^18.2.0",
         
     | 
| 
       27277 
     | 
    
         
            -
                "styled-components": "^6.1. 
     | 
| 
      
 27277 
     | 
    
         
            +
                "styled-components": "^6.1.15"
         
     | 
| 
       27278 
27278 
     | 
    
         
             
              },
         
     | 
| 
       27279 
27279 
     | 
    
         
             
              devDependencies: {
         
     | 
| 
       27280 
27280 
     | 
    
         
             
                // Linting/tooling
         
     | 
| 
         @@ -46917,7 +46917,7 @@ function createStudioConfig(options2) { 
     | 
|
| 
       46917 
46917 
     | 
    
         
             
                variables
         
     | 
| 
       46918 
46918 
     | 
    
         
             
              });
         
     | 
| 
       46919 
46919 
     | 
    
         
             
            }
         
     | 
| 
       46920 
     | 
    
         
            -
            const appTemplates = ["app-quickstart"];
         
     | 
| 
      
 46920 
     | 
    
         
            +
            const appTemplates = ["app-quickstart", "app-sanity-ui"];
         
     | 
| 
       46921 
46921 
     | 
    
         
             
            function determineAppTemplate(templateName) {
         
     | 
| 
       46922 
46922 
     | 
    
         
             
              return appTemplates.includes(templateName);
         
     | 
| 
       46923 
46923 
     | 
    
         
             
            }
         
     | 
| 
         @@ -46946,6 +46946,33 @@ const appTemplate = { 
     | 
|
| 
       46946 
46946 
     | 
    
         
             
                build: "sanity build",
         
     | 
| 
       46947 
46947 
     | 
    
         
             
                start: "sanity start"
         
     | 
| 
       46948 
46948 
     | 
    
         
             
              }
         
     | 
| 
      
 46949 
     | 
    
         
            +
            }, appSanityUiTemplate = {
         
     | 
| 
      
 46950 
     | 
    
         
            +
              dependencies: {
         
     | 
| 
      
 46951 
     | 
    
         
            +
                "@sanity/sdk": "^0.0.0-rc",
         
     | 
| 
      
 46952 
     | 
    
         
            +
                "@sanity/sdk-react": "^0.0.0-rc",
         
     | 
| 
      
 46953 
     | 
    
         
            +
                "@sanity/ui": "^2",
         
     | 
| 
      
 46954 
     | 
    
         
            +
                react: "^19",
         
     | 
| 
      
 46955 
     | 
    
         
            +
                "react-dom": "^19",
         
     | 
| 
      
 46956 
     | 
    
         
            +
                "styled-components": "^6.1.17"
         
     | 
| 
      
 46957 
     | 
    
         
            +
              },
         
     | 
| 
      
 46958 
     | 
    
         
            +
              devDependencies: {
         
     | 
| 
      
 46959 
     | 
    
         
            +
                /*
         
     | 
| 
      
 46960 
     | 
    
         
            +
                 * this will be changed to eslint-config sanity,
         
     | 
| 
      
 46961 
     | 
    
         
            +
                 *  eslint.config generation will be a fast follow
         
     | 
| 
      
 46962 
     | 
    
         
            +
                 */
         
     | 
| 
      
 46963 
     | 
    
         
            +
                "@sanity/eslint-config-studio": "^5.0.1",
         
     | 
| 
      
 46964 
     | 
    
         
            +
                "@types/react": "^18.0.25",
         
     | 
| 
      
 46965 
     | 
    
         
            +
                eslint: "^9.9.0",
         
     | 
| 
      
 46966 
     | 
    
         
            +
                prettier: "^3.0.2",
         
     | 
| 
      
 46967 
     | 
    
         
            +
                sanity: "^3",
         
     | 
| 
      
 46968 
     | 
    
         
            +
                typescript: "^5.1.6"
         
     | 
| 
      
 46969 
     | 
    
         
            +
              },
         
     | 
| 
      
 46970 
     | 
    
         
            +
              entry: "./src/App.tsx",
         
     | 
| 
      
 46971 
     | 
    
         
            +
              scripts: {
         
     | 
| 
      
 46972 
     | 
    
         
            +
                dev: "sanity dev",
         
     | 
| 
      
 46973 
     | 
    
         
            +
                build: "sanity build",
         
     | 
| 
      
 46974 
     | 
    
         
            +
                start: "sanity start"
         
     | 
| 
      
 46975 
     | 
    
         
            +
              }
         
     | 
| 
       46949 
46976 
     | 
    
         
             
            }, blogTemplate = {}, cleanTemplate = {}, configTemplate$3 = `
         
     | 
| 
       46950 
46977 
     | 
    
         
             
            import {defineConfig, isDev} from 'sanity'
         
     | 
| 
       46951 
46978 
     | 
    
         
             
            import {visionTool} from '@sanity/vision'
         
     | 
| 
         @@ -47125,6 +47152,7 @@ export default defineConfig({ 
     | 
|
| 
       47125 
47152 
     | 
    
         
             
              blog: blogTemplate,
         
     | 
| 
       47126 
47153 
     | 
    
         
             
              clean: cleanTemplate,
         
     | 
| 
       47127 
47154 
     | 
    
         
             
              "app-quickstart": appTemplate,
         
     | 
| 
      
 47155 
     | 
    
         
            +
              "app-sanity-ui": appSanityUiTemplate,
         
     | 
| 
       47128 
47156 
     | 
    
         
             
              "get-started": getStartedTemplate,
         
     | 
| 
       47129 
47157 
     | 
    
         
             
              moviedb: movieTemplate,
         
     | 
| 
       47130 
47158 
     | 
    
         
             
              shopify: shopifyTemplate$1,
         
     |