@sanity/cli 6.1.0 → 6.1.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": "6.1.0",
3
+ "version": "6.1.2",
4
4
  "description": "Sanity CLI tool for managing Sanity projects and organizations",
5
5
  "keywords": [
6
6
  "cli",
@@ -51,7 +51,6 @@
51
51
  "access": "public"
52
52
  },
53
53
  "dependencies": {
54
- "@babel/traverse": "^7.29.0",
55
54
  "@oclif/core": "^4.8.3",
56
55
  "@oclif/plugin-help": "^6.2.37",
57
56
  "@oclif/plugin-not-found": "^3.2.74",
@@ -105,7 +104,6 @@
105
104
  "react-dom": "^19.2.4",
106
105
  "react-is": "^19.2.4",
107
106
  "read-package-up": "^12.0.0",
108
- "recast": "^0.23.11",
109
107
  "rimraf": "^6.0.1",
110
108
  "rxjs": "^7.8.2",
111
109
  "semver": "^7.7.4",
@@ -120,14 +118,13 @@
120
118
  "which": "^6.0.1",
121
119
  "yaml": "^2.8.2",
122
120
  "zod": "^4.3.6",
123
- "@sanity/cli-core": "1.1.0"
121
+ "@sanity/cli-core": "1.1.1"
124
122
  },
125
123
  "devDependencies": {
126
124
  "@eslint/compat": "^2.0.3",
127
125
  "@sanity/pkg-utils": "^10.4.8",
128
126
  "@swc/cli": "^0.8.0",
129
127
  "@swc/core": "^1.15.18",
130
- "@types/babel__traverse": "^7.28.0",
131
128
  "@types/debug": "^4.1.12",
132
129
  "@types/gunzip-maybe": "^1.4.3",
133
130
  "@types/lodash-es": "^4.17.12",
@@ -152,10 +149,10 @@
152
149
  "typescript": "^5.9.3",
153
150
  "vite-tsconfig-paths": "^6.1.1",
154
151
  "vitest": "^4.0.18",
155
- "@repo/tsconfig": "3.70.0",
156
152
  "@repo/package.config": "0.0.1",
157
- "@sanity/eslint-config-cli": "1.0.0",
158
- "@sanity/cli-test": "0.2.2"
153
+ "@repo/tsconfig": "3.70.0",
154
+ "@sanity/cli-test": "0.2.3",
155
+ "@sanity/eslint-config-cli": "1.0.0"
159
156
  },
160
157
  "engines": {
161
158
  "node": ">=20.19.1 <22 || >=22.12"
@@ -1,23 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { resolveLocalPackage } from '@sanity/cli-core';
3
- import { ThemeProvider } from '@sanity/ui';
4
- import { buildTheme } from '@sanity/ui/theme';
5
- import { isValidElement } from 'react';
6
- import { isValidElementType } from 'react-is';
7
- const theme = buildTheme();
8
- const SchemaIcon = async ({ icon, subtitle, title, workDir })=>{
9
- const normalizedIcon = await normalizeIcon(icon, title, subtitle, workDir);
10
- return /*#__PURE__*/ _jsx(ThemeProvider, {
11
- theme: theme,
12
- children: normalizedIcon
13
- });
14
- };
15
- async function normalizeIcon(Icon, title, subtitle = '', workDir) {
16
- if (isValidElementType(Icon)) return /*#__PURE__*/ _jsx(Icon, {});
17
- if (/*#__PURE__*/ isValidElement(Icon)) return Icon;
18
- const { createDefaultIcon } = await resolveLocalPackage('sanity', workDir);
19
- return createDefaultIcon(title, subtitle);
20
- }
21
- export { SchemaIcon };
22
-
23
- //# sourceMappingURL=SchemaIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/actions/manifest/SchemaIcon.tsx"],"sourcesContent":["import {resolveLocalPackage} from '@sanity/cli-core'\nimport {ThemeProvider} from '@sanity/ui'\nimport {buildTheme} from '@sanity/ui/theme'\nimport {type ComponentType, isValidElement, type ReactNode} from 'react'\nimport {isValidElementType} from 'react-is'\n\nconst theme = buildTheme()\n\ninterface SchemaIconProps {\n title: string\n workDir: string\n\n icon?: ComponentType | ReactNode\n subtitle?: string\n}\n\nconst SchemaIcon = async ({\n icon,\n subtitle,\n title,\n workDir,\n}: SchemaIconProps): Promise<React.JSX.Element> => {\n const normalizedIcon = await normalizeIcon(icon, title, subtitle, workDir)\n\n return <ThemeProvider theme={theme}>{normalizedIcon}</ThemeProvider>\n}\n\nasync function normalizeIcon(\n Icon: ComponentType | ReactNode | undefined,\n title: string,\n subtitle = '',\n workDir: string,\n): Promise<React.JSX.Element> {\n if (isValidElementType(Icon)) return <Icon />\n if (isValidElement(Icon)) return Icon\n\n const {createDefaultIcon} = await resolveLocalPackage<typeof import('sanity')>('sanity', workDir)\n\n return createDefaultIcon(title, subtitle)\n}\n\nexport {SchemaIcon}\nexport type {SchemaIconProps}\n"],"names":["resolveLocalPackage","ThemeProvider","buildTheme","isValidElement","isValidElementType","theme","SchemaIcon","icon","subtitle","title","workDir","normalizedIcon","normalizeIcon","Icon","createDefaultIcon"],"mappings":";AAAA,SAAQA,mBAAmB,QAAO,mBAAkB;AACpD,SAAQC,aAAa,QAAO,aAAY;AACxC,SAAQC,UAAU,QAAO,mBAAkB;AAC3C,SAA4BC,cAAc,QAAuB,QAAO;AACxE,SAAQC,kBAAkB,QAAO,WAAU;AAE3C,MAAMC,QAAQH;AAUd,MAAMI,aAAa,OAAO,EACxBC,IAAI,EACJC,QAAQ,EACRC,KAAK,EACLC,OAAO,EACS;IAChB,MAAMC,iBAAiB,MAAMC,cAAcL,MAAME,OAAOD,UAAUE;IAElE,qBAAO,KAACT;QAAcI,OAAOA;kBAAQM;;AACvC;AAEA,eAAeC,cACbC,IAA2C,EAC3CJ,KAAa,EACbD,WAAW,EAAE,EACbE,OAAe;IAEf,IAAIN,mBAAmBS,OAAO,qBAAO,KAACA;IACtC,kBAAIV,eAAeU,OAAO,OAAOA;IAEjC,MAAM,EAACC,iBAAiB,EAAC,GAAG,MAAMd,oBAA6C,UAAUU;IAEzF,OAAOI,kBAAkBL,OAAOD;AAClC;AAEA,SAAQF,UAAU,GAAC"}