diff --git a/.github/workflows/depCheck.yml b/.github/workflows/depCheck.yml index d0df9bcfa95..e2aa07dd06b 100644 --- a/.github/workflows/depCheck.yml +++ b/.github/workflows/depCheck.yml @@ -6,7 +6,7 @@ jobs: timeout-minutes: 30 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: 18 diff --git a/.github/workflows/docReport.yml b/.github/workflows/docReport.yml index 0eb05d26fe5..546cd74c703 100644 --- a/.github/workflows/docReport.yml +++ b/.github/workflows/docReport.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Cache node modules id: cache-node-modules diff --git a/.github/workflows/docReportTeardown.yml b/.github/workflows/docReportTeardown.yml index 34930c01db3..27cf821e5e0 100644 --- a/.github/workflows/docReportTeardown.yml +++ b/.github/workflows/docReportTeardown.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Cache node modules id: cache-node-modules diff --git a/.github/workflows/e2e-ct.yml b/.github/workflows/e2e-ct.yml index 9c7efe57eb5..6795b849db2 100644 --- a/.github/workflows/e2e-ct.yml +++ b/.github/workflows/e2e-ct.yml @@ -13,7 +13,7 @@ jobs: TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} TURBO_TEAM: ${{ vars.TURBO_TEAM }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: 18 diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 5896bee0566..68acde94d8c 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -13,7 +13,7 @@ jobs: TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} TURBO_TEAM: ${{ vars.TURBO_TEAM }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: 18 diff --git a/.github/workflows/etl.yml b/.github/workflows/etl.yml index aa50220869d..ddad8b052e0 100644 --- a/.github/workflows/etl.yml +++ b/.github/workflows/etl.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Cache node modules id: cache-node-modules diff --git a/.github/workflows/formatCheck.yml b/.github/workflows/formatCheck.yml index 52caf2189d9..70d5debc2be 100644 --- a/.github/workflows/formatCheck.yml +++ b/.github/workflows/formatCheck.yml @@ -6,7 +6,7 @@ jobs: timeout-minutes: 30 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: 18 diff --git a/.github/workflows/lint-fix-if-needed.yml b/.github/workflows/lint-fix-if-needed.yml index dc41550aa9e..5d559be0757 100644 --- a/.github/workflows/lint-fix-if-needed.yml +++ b/.github/workflows/lint-fix-if-needed.yml @@ -20,7 +20,7 @@ jobs: # workflow_dispatch always lets you select the branch ref, even though in this case we only ever want to run the action on `main` thus we need an if check if: ${{ github.ref_name == 'next' }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: lts/* @@ -45,7 +45,7 @@ jobs: path: .eslintcache key: eslint-v1-${{ hashFiles('.eslintrc.cjs') }} - run: "yarn lint:fix --rule 'prettier/prettier: [off]'" - - uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92 # v1 + - uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2 # Run even if `yarn lint:fix` fails if: always() id: generate-token diff --git a/.github/workflows/lintChanged.yml b/.github/workflows/lintChanged.yml index 8939d4452e2..b5fc332d090 100644 --- a/.github/workflows/lintChanged.yml +++ b/.github/workflows/lintChanged.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Cache node modules id: cache-node-modules diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index 8981176bef7..31d8a021b80 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -10,7 +10,7 @@ jobs: TURBO_TEAM: ${{ vars.TURBO_TEAM }} if: github.event_name == 'deployment_status' && github.event.deployment.environment == 'production' && github.event.deployment_status.state == 'success' && startsWith(github.event.deployment_status.target_url, 'https://performance-studio') steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: 18 diff --git a/.github/workflows/prettier-if-needed.yml b/.github/workflows/prettier-if-needed.yml index 6ac358cf09c..2a926decd19 100644 --- a/.github/workflows/prettier-if-needed.yml +++ b/.github/workflows/prettier-if-needed.yml @@ -20,7 +20,7 @@ jobs: # workflow_dispatch always lets you select the branch ref, even though in this case we only ever want to run the action on `main` thus we need an if check if: ${{ github.ref_name == 'next' }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: lts/* @@ -47,7 +47,7 @@ jobs: - run: yarn prettier --write - name: GitHub blocks PRs from automation that alter workflows in any way run: git restore .github/workflows yarn.lock - - uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92 # v1 + - uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2 id: generate-token with: app_id: ${{ secrets.ECOSPARK_APP_ID }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index edd3ace8fe0..57f662ef21b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup node uses: actions/setup-node@v3 diff --git a/.github/workflows/typeCheck.yml b/.github/workflows/typeCheck.yml index 16faab3b144..f49011cc601 100644 --- a/.github/workflows/typeCheck.yml +++ b/.github/workflows/typeCheck.yml @@ -6,7 +6,7 @@ jobs: timeout-minutes: 15 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: 18 diff --git a/.github/workflows/yarn-if-needed.yml b/.github/workflows/yarn-if-needed.yml index ba9f82cbd63..352c031e055 100644 --- a/.github/workflows/yarn-if-needed.yml +++ b/.github/workflows/yarn-if-needed.yml @@ -22,7 +22,7 @@ jobs: # workflow_dispatch always lets you select the branch ref, even though in this case we only ever want to run the action on `main` thus we need an if check if: ${{ github.ref_name == 'next' }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache node modules id: cache-node-modules uses: actions/cache@v3 @@ -39,7 +39,7 @@ jobs: if: steps.cache-node-modules.outputs.cache-hit != 'true' run: yarn install --ignore-scripts --frozen-lockfile --update-checksums --force - run: npx yarn-deduplicate -- yarn.lock --strategy highest - - uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92 # v1 + - uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2 id: generate-token with: app_id: ${{ secrets.ECOSPARK_APP_ID }} diff --git a/dev/depcheck-test/package.json b/dev/depcheck-test/package.json index 87d40270d44..2cd0c9486e7 100644 --- a/dev/depcheck-test/package.json +++ b/dev/depcheck-test/package.json @@ -1,6 +1,6 @@ { "name": "depcheck-test", - "version": "3.16.7", + "version": "3.18.0", "private": true, "license": "MIT", "author": "Sanity.io " diff --git a/dev/design-studio/package.json b/dev/design-studio/package.json index a3d051dc251..42fdb6d05d4 100644 --- a/dev/design-studio/package.json +++ b/dev/design-studio/package.json @@ -1,6 +1,6 @@ { "name": "design-studio", - "version": "3.16.7", + "version": "3.18.0", "private": true, "description": "Sanity Design Studio", "keywords": [ @@ -34,7 +34,7 @@ "@sanity/ui": "^1.7.2", "react": "^18.2.0", "react-dom": "^18.2.0", - "sanity": "3.16.7", + "sanity": "3.18.0", "styled-components": "^5.2.0" } } diff --git a/dev/starter-cra-studio/package.json b/dev/starter-cra-studio/package.json index 4491c1c0c17..341e325b226 100644 --- a/dev/starter-cra-studio/package.json +++ b/dev/starter-cra-studio/package.json @@ -1,6 +1,6 @@ { "name": "starter-cra-studio", - "version": "3.16.7", + "version": "3.18.0", "private": true, "license": "MIT", "author": "Sanity.io ", @@ -25,7 +25,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "^5.0.0", - "sanity": "3.16.7", + "sanity": "3.18.0", "styled-components": "^5.2.0" } } diff --git a/dev/starter-next-studio/package.json b/dev/starter-next-studio/package.json index 02d58260d4e..bd1b6dd34df 100644 --- a/dev/starter-next-studio/package.json +++ b/dev/starter-next-studio/package.json @@ -1,6 +1,6 @@ { "name": "sanity-starter-next-studio", - "version": "3.16.7", + "version": "3.18.0", "private": true, "license": "MIT", "author": "Sanity.io ", @@ -14,7 +14,7 @@ "next": "^12.1.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "sanity": "3.16.7", + "sanity": "3.18.0", "styled-components": "^5.2.0" } } diff --git a/dev/starter-studio/package.json b/dev/starter-studio/package.json index b238415e84a..2a6ddc2b472 100644 --- a/dev/starter-studio/package.json +++ b/dev/starter-studio/package.json @@ -1,6 +1,6 @@ { "name": "sanity-starter-studio", - "version": "3.16.7", + "version": "3.18.0", "private": true, "license": "MIT", "author": "Sanity.io ", @@ -12,7 +12,7 @@ }, "dependencies": { "react": "^18.2.0", - "sanity": "3.16.7", + "sanity": "3.18.0", "styled-components": "^5.2.0" } } diff --git a/dev/strict-studio/package.json b/dev/strict-studio/package.json index 4a4a131f5b0..4f9294b67e1 100644 --- a/dev/strict-studio/package.json +++ b/dev/strict-studio/package.json @@ -1,6 +1,6 @@ { "name": "sanity-strict-studio", - "version": "3.16.7", + "version": "3.18.0", "private": true, "license": "MIT", "author": "Sanity.io ", @@ -13,7 +13,7 @@ "dependencies": { "react": "^18.2.0", "react-dom": "^18.2.0", - "sanity": "3.16.7", + "sanity": "3.18.0", "styled-components": "^5.2.0" } } diff --git a/dev/test-next-studio/package.json b/dev/test-next-studio/package.json index 0d53e45b405..a499e28507f 100644 --- a/dev/test-next-studio/package.json +++ b/dev/test-next-studio/package.json @@ -1,6 +1,6 @@ { "name": "sanity-test-next-studio", - "version": "3.16.7", + "version": "3.18.0", "private": true, "license": "MIT", "author": "Sanity.io ", @@ -14,7 +14,7 @@ "next": "^13.2.4", "react": "^18.2.0", "react-dom": "^18.2.0", - "sanity": "3.16.7", + "sanity": "3.18.0", "styled-components": "^5.2.0" } } diff --git a/dev/test-studio/package.json b/dev/test-studio/package.json index 92809dec032..130c6c9268e 100644 --- a/dev/test-studio/package.json +++ b/dev/test-studio/package.json @@ -1,6 +1,6 @@ { "name": "sanity-test-studio", - "version": "3.16.7", + "version": "3.18.0", "private": true, "license": "MIT", "author": "Sanity.io ", @@ -20,19 +20,19 @@ "@react-three/drei": "^9.80.1", "@react-three/fiber": "^8.13.6", "@sanity/assist": "^1.0.8", - "@sanity/block-tools": "3.16.7", + "@sanity/block-tools": "3.18.0", "@sanity/color": "^2.1.20", "@sanity/google-maps-input": "^3.0.1", "@sanity/icons": "^2.4.0", "@sanity/image-url": "^1.0.2", - "@sanity/portable-text-editor": "3.16.7", + "@sanity/portable-text-editor": "3.18.0", "@sanity/tsdoc": "1.0.0-alpha.38", - "@sanity/types": "3.16.7", + "@sanity/types": "3.18.0", "@sanity/ui": "^1.7.2", "@sanity/ui-workshop": "^1.0.0", - "@sanity/util": "3.16.7", + "@sanity/util": "3.18.0", "@sanity/uuid": "^3.0.1", - "@sanity/vision": "3.16.7", + "@sanity/vision": "3.18.0", "@turf/helpers": "^6.0.1", "@turf/points-within-polygon": "^5.1.5", "@types/three": "^0.150.0", @@ -48,10 +48,10 @@ "react-refractor": "^2.1.6", "refractor": "^3.6.0", "rxjs": "^7.8.0", - "sanity": "3.16.7", + "sanity": "3.18.0", "sanity-plugin-mux-input": "^2.2.1", "styled-components": "^5.2.0", - "three": "^0.155.0", + "three": "^0.157.0", "three-stdlib": "^2.24.2" }, "devDependencies": { diff --git a/examples/blog-studio/package.json b/examples/blog-studio/package.json index e35fbf48b30..2789f64e599 100644 --- a/examples/blog-studio/package.json +++ b/examples/blog-studio/package.json @@ -1,6 +1,6 @@ { "name": "blog-studio", - "version": "3.16.7", + "version": "3.18.0", "private": true, "description": "Content studio running with schema from the blog init template", "keywords": [ @@ -29,7 +29,7 @@ "dependencies": { "react": "^18.2.0", "react-dom": "^18.2.0", - "sanity": "3.16.7", + "sanity": "3.18.0", "styled-components": "^5.2.0" } } diff --git a/examples/clean-studio/package.json b/examples/clean-studio/package.json index b70624561ed..c2d1d0bc9a3 100644 --- a/examples/clean-studio/package.json +++ b/examples/clean-studio/package.json @@ -1,6 +1,6 @@ { "name": "clean-studio", - "version": "3.16.7", + "version": "3.18.0", "private": true, "description": "Content studio running with schema from the clean template", "keywords": [ @@ -29,7 +29,7 @@ "dependencies": { "react": "^18.2.0", "react-dom": "^18.2.0", - "sanity": "3.16.7", + "sanity": "3.18.0", "styled-components": "^5.2.0" } } diff --git a/examples/ecommerce-studio/package.json b/examples/ecommerce-studio/package.json index 4cfefab85e7..e3f4bf5fc13 100644 --- a/examples/ecommerce-studio/package.json +++ b/examples/ecommerce-studio/package.json @@ -1,6 +1,6 @@ { "name": "ecommerce-studio", - "version": "3.16.7", + "version": "3.18.0", "private": true, "description": "", "keywords": [ @@ -28,12 +28,12 @@ "start": "sanity dev --port 3337" }, "dependencies": { - "@sanity/cli": "3.16.7", + "@sanity/cli": "3.18.0", "@sanity/ui": "^1.7.2", "react": "^18.2.0", "react-barcode": "^1.4.1", "react-dom": "^18.2.0", - "sanity": "3.16.7", + "sanity": "3.18.0", "styled-components": "^5.2.0" } } diff --git a/examples/movies-studio/package.json b/examples/movies-studio/package.json index 0af7da03e62..266d0d1c8f0 100644 --- a/examples/movies-studio/package.json +++ b/examples/movies-studio/package.json @@ -1,6 +1,6 @@ { "name": "movies-studio", - "version": "3.16.7", + "version": "3.18.0", "private": true, "description": "Content studio running with schema from the moviedb init template", "keywords": [ @@ -31,7 +31,7 @@ "@sanity/google-maps-input": "^3.0.1", "react": "^18.2.0", "react-dom": "^18.2.0", - "sanity": "3.16.7", + "sanity": "3.18.0", "styled-components": "^5.2.0" } } diff --git a/lerna.json b/lerna.json index f61d9951b70..25594bda69c 100644 --- a/lerna.json +++ b/lerna.json @@ -11,5 +11,5 @@ "packages/groq", "packages/sanity" ], - "version": "3.16.7" + "version": "3.18.0" } diff --git a/package.json b/package.json index 1575467a9f9..c067881e287 100644 --- a/package.json +++ b/package.json @@ -78,31 +78,31 @@ }, "resolutions": { "**/@types/react": "^18.0.25", - "@types/react": "^18.0.25", + "@types/react": "^18.2.25", "wide-align/string-width": "^4.2.0" }, "devDependencies": { "@babel/plugin-proposal-class-properties": "^7.18.6", - "@babel/preset-env": "^7.19.1", - "@babel/preset-react": "^7.18.6", - "@babel/preset-typescript": "^7.18.6", + "@babel/preset-env": "^7.22.20", + "@babel/preset-react": "^7.22.15", + "@babel/preset-typescript": "^7.23.0", "@bjoerge/mutiny": "^0.0.2", "@optimize-lodash/rollup-plugin": "^4.0.1", - "@playwright/test": "^1.37.0", + "@playwright/test": "^1.38.1", "@sanity/client": "^6.4.9", "@sanity/pkg-utils": "^2.3.10", "@sanity/tsdoc": "1.0.0-alpha.38", "@sanity/uuid": "^3.0.2", - "@types/jest": "^27.0.3", + "@types/jest": "^27.5.2", "@types/mkdirp": "^1.0.2", "@types/node": "^14.18.9", - "@types/react": "^18.0.25", + "@types/react": "^18.2.25", "@types/styled-components": "^5.1.26", "@types/tmp": "^0.2.3", "@types/yargs": "^17.0.7", - "@typescript-eslint/eslint-plugin": "^5.5.0", - "@typescript-eslint/parser": "^5.5.0", - "babel-jest": "^27.4.2", + "@typescript-eslint/eslint-plugin": "^5.62.0", + "@typescript-eslint/parser": "^5.62.0", + "babel-jest": "^27.5.1", "cac": "^6.7.12", "chalk": "^4.1.2", "depcheck": "^1.4.3", @@ -110,40 +110,40 @@ "dotenv-flow": "^3.2.0", "esbuild": "^0.19.0", "esbuild-register": "^3.4.2", - "eslint": "^8.23.0", + "eslint": "^8.50.0", "eslint-config-prettier": "^9.0.0", "eslint-config-sanity": "^6.0.0", - "eslint-import-resolver-typescript": "^3.5.1", - "eslint-plugin-boundaries": "^3.0.0", - "eslint-plugin-import": "^2.25.3", + "eslint-import-resolver-typescript": "^3.6.1", + "eslint-plugin-boundaries": "^3.4.0", + "eslint-plugin-import": "^2.28.1", "eslint-plugin-prettier": "^5.0.0", - "eslint-plugin-react": "^7.27.1", - "eslint-plugin-react-hooks": "^4.3.0", - "eslint-plugin-tsdoc": "^0.2.14", + "eslint-plugin-react": "^7.33.2", + "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-tsdoc": "^0.2.17", "execa": "^2.0.0", "glob": "^7.2.0", "globby": "^10.0.0", "husky": "^7.0.4", - "jest": "^27.4.3", + "jest": "^27.5.1", "lerna": "^4.0.0", "lint-staged": "^12.1.2", "lodash": "^4.17.21", "minimist": "^1.2.5", "npm-run-all": "^4.1.5", "ora": "^6.3.1", - "prettier": "^3.0.2", + "prettier": "^3.0.3", "prettier-plugin-packagejson": "^2.4.5", "pretty-quick": "^3.1.3", "rimraf": "^3.0.2", "rxjs": "^7.8.1", "semver": "^7.3.5", - "turbo": "^1.10.12", + "turbo": "^1.10.15", "typescript": "^5.1.6", "yargs": "^17.3.0" }, "optionalDependencies": { "node-notifier": "^10.0.0" }, - "packageManager": "yarn@1.22.17", + "packageManager": "yarn@1.22.19", "isSanityMonorepo": true } diff --git a/packages/@sanity/block-tools/package.json b/packages/@sanity/block-tools/package.json index 51e187ea3b5..100dc15e4d0 100644 --- a/packages/@sanity/block-tools/package.json +++ b/packages/@sanity/block-tools/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/block-tools", - "version": "3.16.7", + "version": "3.18.0", "description": "Can format HTML, Slate JSON or Sanity block array into any other format.", "keywords": [ "sanity", @@ -58,10 +58,10 @@ "lodash": "^4.17.21" }, "devDependencies": { - "@sanity/schema": "3.16.7", - "@sanity/types": "3.16.7", + "@sanity/schema": "3.18.0", + "@sanity/types": "3.18.0", "@types/jsdom": "^20.0.0", - "@types/react": "^18.0.25", + "@types/react": "^18.2.25", "jsdom": "^20.0.0" }, "publishConfig": { diff --git a/packages/@sanity/cli/package.json b/packages/@sanity/cli/package.json index ca9fb285f38..94e88bd37e8 100644 --- a/packages/@sanity/cli/package.json +++ b/packages/@sanity/cli/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/cli", - "version": "3.16.7", + "version": "3.18.0", "description": "Sanity CLI tool for managing Sanity installations, managing plugins, schemas and datasets", "keywords": [ "sanity", @@ -71,12 +71,12 @@ }, "devDependencies": { "@rexxars/gitconfiglocal": "^3.0.1", - "@rollup/plugin-node-resolve": "^15.0.0", + "@rollup/plugin-node-resolve": "^15.2.2", "@sanity/client": "^6.4.9", "@sanity/eslint-config-studio": "^2.0.4", "@sanity/generate-help-url": "^3.0.0", - "@sanity/types": "3.16.7", - "@sanity/util": "3.16.7", + "@sanity/types": "3.18.0", + "@sanity/util": "3.18.0", "@types/babel__traverse": "^7.18.1", "@types/configstore": "^5.0.1", "@types/cpx": "^1.5.2", @@ -125,6 +125,6 @@ "xdg-basedir": "^4.0.0" }, "engines": { - "node": ">=14.18.0" + "node": ">=18" } } diff --git a/packages/@sanity/diff/package.json b/packages/@sanity/diff/package.json index c5c0a3e7476..94c3540dffe 100644 --- a/packages/@sanity/diff/package.json +++ b/packages/@sanity/diff/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/diff", - "version": "3.16.7", + "version": "3.18.0", "description": "Generates diffs between documents and primitive types", "keywords": [ "sanity", @@ -58,7 +58,7 @@ "rimraf": "^3.0.2" }, "engines": { - "node": ">=14.18.0" + "node": ">=18" }, "publishConfig": { "access": "public" diff --git a/packages/@sanity/export/package.json b/packages/@sanity/export/package.json index 06f58fab844..7863908cff8 100644 --- a/packages/@sanity/export/package.json +++ b/packages/@sanity/export/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/export", - "version": "3.16.7", + "version": "3.18.0", "description": "Export Sanity documents and assets", "keywords": [ "sanity", @@ -43,7 +43,7 @@ "string-to-stream": "^1.1.0" }, "engines": { - "node": ">=14.18.0" + "node": ">=18" }, "publishConfig": { "access": "public" diff --git a/packages/@sanity/import-cli/package.json b/packages/@sanity/import-cli/package.json index 3e6dacb73d6..ba367515d22 100644 --- a/packages/@sanity/import-cli/package.json +++ b/packages/@sanity/import-cli/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/import-cli", - "version": "3.16.7", + "version": "3.18.0", "description": "CLI tool that imports documents from an ndjson file or URL", "keywords": [ "sanity", @@ -32,13 +32,13 @@ ], "dependencies": { "@sanity/client": "^6.4.9", - "@sanity/import": "3.16.7", + "@sanity/import": "3.18.0", "get-it": "^8.4.3", "meow": "^9.0.0", "ora": "^5.4.1", "pretty-ms": "^7.0.1" }, "engines": { - "node": ">=14.18.0" + "node": ">=18" } } diff --git a/packages/@sanity/import/package.json b/packages/@sanity/import/package.json index 4c7ff7434cc..ff0a1170c0a 100644 --- a/packages/@sanity/import/package.json +++ b/packages/@sanity/import/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/import", - "version": "3.16.7", + "version": "3.18.0", "description": "Import documents to a Sanity dataset", "keywords": [ "sanity", @@ -33,7 +33,7 @@ "dependencies": { "@sanity/asset-utils": "^1.2.5", "@sanity/generate-help-url": "^3.0.0", - "@sanity/mutator": "3.16.7", + "@sanity/mutator": "3.18.0", "@sanity/uuid": "^3.0.1", "debug": "^3.2.7", "file-url": "^2.0.2", @@ -55,6 +55,6 @@ "nock": "^13.2.9" }, "engines": { - "node": ">=14.18.0" + "node": ">=18" } } diff --git a/packages/@sanity/mutator/package.json b/packages/@sanity/mutator/package.json index 699d5a730f3..676718f6b15 100644 --- a/packages/@sanity/mutator/package.json +++ b/packages/@sanity/mutator/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/mutator", - "version": "3.16.7", + "version": "3.18.0", "description": "A set of models to make it easier to utilize the powerful real time collaborative features of Sanity", "keywords": [ "sanity", @@ -60,7 +60,7 @@ "lodash": "^4.17.21" }, "devDependencies": { - "@sanity/types": "3.16.7", + "@sanity/types": "3.18.0", "@types/debug": "^4.1.5", "@types/lodash": "^4.14.149", "rimraf": "^3.0.2" diff --git a/packages/@sanity/portable-text-editor/package.json b/packages/@sanity/portable-text-editor/package.json index 7eebceceba2..344393366c7 100644 --- a/packages/@sanity/portable-text-editor/package.json +++ b/packages/@sanity/portable-text-editor/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/portable-text-editor", - "version": "3.16.7", + "version": "3.18.0", "description": "Portable Text Editor made in React", "keywords": [ "sanity", @@ -63,10 +63,10 @@ "watch": "pkg-utils watch --tsconfig tsconfig.lib.json" }, "dependencies": { - "@sanity/block-tools": "3.16.7", - "@sanity/schema": "3.16.7", - "@sanity/types": "3.16.7", - "@sanity/util": "3.16.7", + "@sanity/block-tools": "3.18.0", + "@sanity/schema": "3.18.0", + "@sanity/types": "3.18.0", + "@sanity/util": "3.18.0", "debug": "^3.2.7", "is-hotkey": "^0.1.6", "lodash": "^4.17.21", @@ -74,7 +74,7 @@ "slate-react": "0.98.1" }, "devDependencies": { - "@playwright/test": "^1.37.0", + "@playwright/test": "^1.38.1", "@portabletext/toolkit": "^2.0.8", "@sanity/diff-match-patch": "^3.1.1", "@sanity/ui": "^1.8.2", @@ -82,19 +82,19 @@ "@types/debug": "^4.1.5", "@types/express": "^4.16.1", "@types/express-ws": "^3.0.1", - "@types/jest": "^27.4.3", + "@types/jest": "^27.5.2", "@types/lodash": "^4.14.149", "@types/node": "^14.18.9", "@types/node-ipc": "^9.2.0", - "@types/react": "^18.0.25", - "@types/react-dom": "^18.2.0", + "@types/react": "^18.2.25", + "@types/react-dom": "^18.2.10", "@types/ws": "~8.5.3", "@vitejs/plugin-react": "^4.0.4", "express": "^4.17.1", "express-ws": "^5.0.2", - "jest": "^27.4.3", + "jest": "^27.5.1", "jest-dev-server": "^9.0.0", - "jest-environment-node": "^27.4.3", + "jest-environment-node": "^27.5.1", "node-ipc": "npm:@node-ipc/compat@9.2.5", "react": "^18.2.0", "react-dom": "^18.2.0", @@ -109,7 +109,7 @@ "styled-components": "^5.2" }, "engines": { - "node": ">=14.18.0" + "node": ">=18" }, "publishConfig": { "access": "public" diff --git a/packages/@sanity/schema/package.json b/packages/@sanity/schema/package.json index cb664d7d25e..9149feca9fc 100644 --- a/packages/@sanity/schema/package.json +++ b/packages/@sanity/schema/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/schema", - "version": "3.16.7", + "version": "3.18.0", "description": "", "keywords": [ "sanity", @@ -74,7 +74,7 @@ }, "dependencies": { "@sanity/generate-help-url": "^3.0.0", - "@sanity/types": "3.16.7", + "@sanity/types": "3.18.0", "arrify": "^1.0.1", "humanize-list": "^1.0.1", "leven": "^3.1.0", diff --git a/packages/@sanity/types/package.json b/packages/@sanity/types/package.json index 90bbda973e5..4a672939b30 100644 --- a/packages/@sanity/types/package.json +++ b/packages/@sanity/types/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/types", - "version": "3.16.7", + "version": "3.18.0", "description": "Type definitions for common Sanity data structures", "keywords": [ "sanity", diff --git a/packages/@sanity/util/package.json b/packages/@sanity/util/package.json index 111711a67ef..8aedb089215 100644 --- a/packages/@sanity/util/package.json +++ b/packages/@sanity/util/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/util", - "version": "3.16.7", + "version": "3.18.0", "description": "Utilities shared across projects of Sanity", "keywords": [ "sanity", @@ -117,7 +117,7 @@ "watch": "pkg-utils watch --tsconfig tsconfig.lib.json" }, "dependencies": { - "@sanity/types": "3.16.7", + "@sanity/types": "3.18.0", "get-random-values-esm": "^1.0.0", "moment": "^2.29.4" }, @@ -126,6 +126,6 @@ "rimraf": "^3.0.2" }, "engines": { - "node": ">=14.18.0" + "node": ">=18" } } diff --git a/packages/@sanity/vision/package.json b/packages/@sanity/vision/package.json index aeb4632d5c1..81386d30bda 100644 --- a/packages/@sanity/vision/package.json +++ b/packages/@sanity/vision/package.json @@ -1,6 +1,6 @@ { "name": "@sanity/vision", - "version": "3.16.7", + "version": "3.18.0", "description": "Sanity plugin for running/debugging GROQ-queries against Sanity datasets", "keywords": [ "sanity", @@ -77,7 +77,7 @@ "devDependencies": { "@sanity/client": "^6.4.9", "react": "^18.2.0", - "sanity": "3.16.7", + "sanity": "3.18.0", "styled-components": "^5.3.11" }, "peerDependencies": { diff --git a/packages/@sanity/vision/src/components/VisionGui.tsx b/packages/@sanity/vision/src/components/VisionGui.tsx index fd7ffb0662a..7f82df3a6b6 100644 --- a/packages/@sanity/vision/src/components/VisionGui.tsx +++ b/packages/@sanity/vision/src/components/VisionGui.tsx @@ -77,9 +77,13 @@ interface PaneSizeOptions { maxSize: number } +function narrowBreakpoint(): boolean { + return typeof window !== 'undefined' && window.innerWidth > 600 +} + function calculatePaneSizeOptions(rootHeight: number): PaneSizeOptions { return { - defaultSize: rootHeight / 2, + defaultSize: rootHeight / (narrowBreakpoint() ? 2 : 1), size: rootHeight > 550 ? undefined : rootHeight * 0.4, allowResize: rootHeight > 550, minSize: Math.min(170, Math.max(170, rootHeight / 2)), @@ -659,7 +663,7 @@ export class VisionGui extends React.PureComponent
- + {/* Dataset selector */} @@ -773,9 +777,14 @@ export class VisionGui extends React.PureComponent
- + {/* @ts-expect-error: https://github.com/tomkp/react-split-pane/pull/819 */} - + {/* The way react-split-pane handles the sizes is kind of finicky and not clear. What the props above does is: @@ -790,11 +799,13 @@ export class VisionGui extends React.PureComponent diff --git a/packages/create-sanity/package.json b/packages/create-sanity/package.json index cc1ee8ea756..759c41fff68 100644 --- a/packages/create-sanity/package.json +++ b/packages/create-sanity/package.json @@ -1,6 +1,6 @@ { "name": "create-sanity", - "version": "3.16.7", + "version": "3.18.0", "description": "Initialize a new Sanity project", "keywords": [ "sanity", @@ -26,10 +26,10 @@ "index.js" ], "dependencies": { - "@sanity/cli": "3.16.7", + "@sanity/cli": "3.18.0", "resolve-pkg": "^2.0.0" }, "engines": { - "node": ">=14.18.0" + "node": ">=18" } } diff --git a/packages/groq/package.json b/packages/groq/package.json index 49c8479ba20..d1e66097eca 100644 --- a/packages/groq/package.json +++ b/packages/groq/package.json @@ -1,6 +1,6 @@ { "name": "groq", - "version": "3.16.7", + "version": "3.18.0", "description": "Tagged template literal for Sanity.io GROQ-queries", "keywords": [ "sanity", @@ -59,7 +59,7 @@ "watch": "pkg-utils watch --tsconfig tsconfig.lib.json" }, "engines": { - "node": ">=14.18.0" + "node": ">=18" }, "gitHead": "a7b7dad6bdfde05883a61f78e998b2571dfbe0e2" } diff --git a/packages/sanity/package.json b/packages/sanity/package.json index c39848dffe6..3340d9adb33 100644 --- a/packages/sanity/package.json +++ b/packages/sanity/package.json @@ -1,6 +1,6 @@ { "name": "sanity", - "version": "3.16.7", + "version": "3.18.0", "description": "Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches", "keywords": [ "sanity", @@ -136,25 +136,25 @@ "@rexxars/react-json-inspector": "^8.0.1", "@sanity/asset-utils": "^1.2.5", "@sanity/bifur-client": "^0.3.1", - "@sanity/block-tools": "3.16.7", - "@sanity/cli": "3.16.7", + "@sanity/block-tools": "3.18.0", + "@sanity/cli": "3.18.0", "@sanity/client": "^6.4.9", "@sanity/color": "^2.1.20", - "@sanity/diff": "3.16.7", + "@sanity/diff": "3.18.0", "@sanity/diff-match-patch": "^3.1.1", "@sanity/eventsource": "^5.0.0", - "@sanity/export": "3.16.7", + "@sanity/export": "3.18.0", "@sanity/generate-help-url": "^3.0.0", "@sanity/icons": "^2.4.0", "@sanity/image-url": "^1.0.2", - "@sanity/import": "3.16.7", + "@sanity/import": "3.18.0", "@sanity/logos": "^2.0.2", - "@sanity/mutator": "3.16.7", - "@sanity/portable-text-editor": "3.16.7", - "@sanity/schema": "3.16.7", - "@sanity/types": "3.16.7", + "@sanity/mutator": "3.18.0", + "@sanity/portable-text-editor": "3.18.0", + "@sanity/schema": "3.18.0", + "@sanity/types": "3.18.0", "@sanity/ui": "^1.7.2", - "@sanity/util": "3.16.7", + "@sanity/util": "3.18.0", "@sanity/uuid": "^3.0.1", "@tanstack/react-virtual": "3.0.0-beta.54", "@types/is-hotkey": "^0.1.7", @@ -231,8 +231,8 @@ "yargs": "^17.3.0" }, "devDependencies": { - "@playwright/experimental-ct-react": "^1.37.0", - "@playwright/test": "^1.37.0", + "@playwright/experimental-ct-react": "^1.38.1", + "@playwright/test": "^1.38.1", "@sanity/tsdoc": "1.0.0-alpha.38", "@sanity/ui-workshop": "^1.2.9", "@testing-library/jest-dom": "^5.16.5", @@ -257,6 +257,6 @@ "styled-components": "^5.2" }, "engines": { - "node": ">=14.18.0" + "node": ">=18" } } diff --git a/packages/sanity/src/core/form/inputs/arrays/ArrayOfObjectsInput/ArrayOfObjectsFunctions.tsx b/packages/sanity/src/core/form/inputs/arrays/ArrayOfObjectsInput/ArrayOfObjectsFunctions.tsx index f9543bb8237..23e18210219 100644 --- a/packages/sanity/src/core/form/inputs/arrays/ArrayOfObjectsInput/ArrayOfObjectsFunctions.tsx +++ b/packages/sanity/src/core/form/inputs/arrays/ArrayOfObjectsInput/ArrayOfObjectsFunctions.tsx @@ -14,7 +14,11 @@ import { } from '@sanity/ui' import {ArrayInputFunctionsProps, ObjectItem} from '../../../types' -const POPOVER_PROPS: MenuButtonProps['popover'] = {constrainSize: true, portal: true} +const POPOVER_PROPS: MenuButtonProps['popover'] = { + constrainSize: true, + portal: true, + fallbackPlacements: ['top', 'bottom'], +} /** * @hidden diff --git a/packages/sanity/src/core/form/inputs/files/common/ActionsMenu.tsx b/packages/sanity/src/core/form/inputs/files/common/ActionsMenu.tsx index 408a05ef1bf..d254d1bd653 100644 --- a/packages/sanity/src/core/form/inputs/files/common/ActionsMenu.tsx +++ b/packages/sanity/src/core/form/inputs/files/common/ActionsMenu.tsx @@ -1,6 +1,6 @@ import React, {MouseEventHandler, useCallback} from 'react' -import {UploadIcon, ClipboardIcon, ResetIcon, DownloadIcon} from '@sanity/icons' +import {UploadIcon, CopyIcon, ResetIcon, DownloadIcon} from '@sanity/icons' import {Box, MenuItem, MenuDivider, Label, useToast} from '@sanity/ui' import {FileInputMenuItem} from './FileInputMenuItem/FileInputMenuItem' @@ -46,7 +46,7 @@ export function ActionsMenu(props: Props) { {(downloadUrl || copyUrl) && } {downloadUrl && } - {copyUrl && } + {copyUrl && } {group.path.map((segment, j) => { if (segment.kind === 'type') { + const text = `${_renderSegmentName(segment.name)}:${segment.type}` return ( - - {`${_renderSegmentName(segment.name)}:${ - segment.type - }`} + + {text} ) } if (segment.kind === 'property') { return ( - + {segment.name} ) diff --git a/packages/sanity/src/desk/components/confirmDeleteDialog/ConfirmDeleteDialogBody.tsx b/packages/sanity/src/desk/components/confirmDeleteDialog/ConfirmDeleteDialogBody.tsx index dc7780698d2..d7b0801ac20 100644 --- a/packages/sanity/src/desk/components/confirmDeleteDialog/ConfirmDeleteDialogBody.tsx +++ b/packages/sanity/src/desk/components/confirmDeleteDialog/ConfirmDeleteDialogBody.tsx @@ -2,7 +2,7 @@ import React, {useCallback} from 'react' import { WarningOutlineIcon, DocumentsIcon, - ClipboardIcon, + CopyIcon, UnknownIcon, ChevronDownIcon, } from '@sanity/icons' @@ -241,7 +241,7 @@ export function ConfirmDeleteDialogBody({