From 6e93d7db53c028df0ee20d6a2aa4e7daf406eee7 Mon Sep 17 00:00:00 2001 From: Snorre Eskeland Brekke Date: Thu, 17 Nov 2022 20:36:45 +0100 Subject: [PATCH] feat!: initial Sanity Studio v3 release BREAKING CHANGE: this version does not work in Sanity Studio v2 --- .github/workflows/main.yml | 4 +- .releaserc.json | 2 +- README.md | 14 +- package-lock.json | 260 +++++++++++++++++++------------------ package.json | 8 +- v2-incompatible.js | 6 +- 6 files changed, 148 insertions(+), 146 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 261279b..911a79a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,7 +16,7 @@ on: pull_request: # Build on commits pushed to branches without a PR if it's in the allowlist push: - branches: [main,v3] + branches: [main,studio-v2] # https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow workflow_dispatch: inputs: @@ -96,7 +96,7 @@ jobs: with: cache: npm node-version: ${{ matrix.node }} - - run: npm ci + - run: npm i - run: npm test --if-present release: diff --git a/.releaserc.json b/.releaserc.json index 6ef8998..86dceac 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -1,4 +1,4 @@ { "extends": "@sanity/semantic-release-preset", - "branches": ["main", {"name": "v3", "channel": "studio-v3", "prerelease": "v3-studio"}] + "branches": ["main", {"name": "studio-v2", "channel": "studio-v2", "range": "1.x.x"}] } diff --git a/README.md b/README.md index 5117586..86336fc 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,9 @@ -> **NOTE** -> -> This is the **Sanity Studio v3 version** of sanity-plugin-dashboard-widget-vercel. -> -> For the v2 version, please refer to the [v2 version](https://github.com/sanity-io/sanity-plugin-dashboard-widget-vercel/tree/main). - # Vercel Dashboard Widget (for Sanity) +> This is a **Sanity Studio v3** plugin. +> For the v2 version, please refer to the [v2-branch](https://github.com/sanity-io/anity-plugin-dashboard-widget-vercel/tree/studio-v2). + + View your recent [Vercel](https://vercel.com/) deployments and manually trigger builds directly from your [Sanity](https://www.sanity.io/) dashboard. ![image](https://user-images.githubusercontent.com/209129/112195398-d0bf8380-8c01-11eb-8857-60c37ae50326.jpg) @@ -22,13 +20,13 @@ View your recent [Vercel](https://vercel.com/) deployments and manually trigger ## Install ``` -npm install --save sanity-plugin-dashboard-widget-vercel@studio-v3 +npm install --save sanity-plugin-dashboard-widget-vercel ``` or ``` -yarn add sanity-plugin-dashboard-widget-vercel@studio-v3 +yarn add sanity-plugin-dashboard-widget-vercel ``` Ensure that you have followed install and usage instructions for [@sanity/dashboard](https://github.com/sanity-io/dashboard). diff --git a/package-lock.json b/package-lock.json index 2eea6a4..845887a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,7 @@ "@commitlint/cli": "^17.2.0", "@commitlint/config-conventional": "^17.2.0", "@sanity/client": "^3.4.1", - "@sanity/dashboard": "3.0.0-v3-studio.8", + "@sanity/dashboard": "^3.0.0-v3-studio.7", "@sanity/pkg-utils": "^1.17.2", "@sanity/plugin-kit": "^2.1.5", "@sanity/semantic-release-preset": "^2.0.2", @@ -53,17 +53,17 @@ "react": "^18", "react-dom": "^18", "rimraf": "^3.0.2", - "sanity": "3.0.0-rc.0", + "sanity": "3.0.0-rc.2", "typescript": "^4.8.4" }, "engines": { "node": ">=14" }, "peerDependencies": { - "@sanity/dashboard": "studio-v3 || 3.0.0-v3-studio.7", + "@sanity/dashboard": "^3.0.0-v3-studio.7", "react": "^18", "react-dom": "^18", - "sanity": "dev-preview || 3.0.0-rc.0", + "sanity": "dev-preview || 3.0.0-rc.2", "styled-components": "^5.2" } }, @@ -3048,9 +3048,9 @@ } }, "node_modules/@sanity/block-tools": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/block-tools/-/block-tools-3.0.0-rc.0.tgz", - "integrity": "sha512-YCZBKLXPNkAKNBYFN79SCUG9Ee/CEUerbO3nMJV0uoxexlVPAt0pq2zUqjI2oyN3oAfy0+1iABOgtPVQlJyc/w==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/block-tools/-/block-tools-3.0.0-rc.2.tgz", + "integrity": "sha512-JWC4LuN1q51+KM+YlpML3nEK0ElVTvfLrfbVjBUtPhTPaaOydKBacImEusfCMHLmDc2TP0Ua44/qUiYYWZ07UA==", "dev": true, "dependencies": { "get-random-values-esm": "^1.0.0", @@ -3058,9 +3058,9 @@ } }, "node_modules/@sanity/cli": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/cli/-/cli-3.0.0-rc.0.tgz", - "integrity": "sha512-sfTRQQ+0ELms4pi3tTjRR85e0KOpD9bZsNzWf5EaGS3pPFvwsqI40CqmeDq+7izYmYisvj47jL9j0uNis0OUug==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/cli/-/cli-3.0.0-rc.2.tgz", + "integrity": "sha512-umWFPQu7j7a2OuROyvAVy1El2hsVg33UbmUnmhzxsobFE38mMPXf4HhRliyvA/fIeeNalOBO+MWJpGxo7dZf3Q==", "dev": true, "dependencies": { "@babel/traverse": "^7.19.0", @@ -3561,9 +3561,9 @@ } }, "node_modules/@sanity/diff": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/diff/-/diff-3.0.0-rc.0.tgz", - "integrity": "sha512-MVhtu1Iq49o7OpBAD+VfDGc/0Lg/HhZ41FIqtMHPzQTaW5zDODzaPE3LxeM3RFT3ZHBJz1pKYutr3y94aENIaA==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/diff/-/diff-3.0.0-rc.2.tgz", + "integrity": "sha512-etgoHJQYK5X6TDoQXEO4FjVdc8qUuhTyjbnYNkqEb/MC7Dwc3Dy7JFm8IRwiB/qfGASxH6d7NnFlV0+wCccveQ==", "dev": true, "dependencies": { "diff-match-patch": "^1.0.4" @@ -3583,9 +3583,9 @@ } }, "node_modules/@sanity/export": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/export/-/export-3.0.0-rc.0.tgz", - "integrity": "sha512-VCcsaSY2IUL3dylB0QF0P5QfpYybKU4uM0dVGJ044S7JS6Bp3wL51OwYSbHGYF3b8V7UgBQYVEf/zaP3ziCGDQ==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/export/-/export-3.0.0-rc.2.tgz", + "integrity": "sha512-iqIDQHsgeAV3Nkue6Y1XJ5rxwQQR02AEUeCrLq+167wg4KmSogfoqj+E6PVp5eDrvKmwziVKGkWwFT/97PB5Zg==", "dev": true, "dependencies": { "archiver": "^5.0.0", @@ -3708,14 +3708,14 @@ } }, "node_modules/@sanity/import": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/import/-/import-3.0.0-rc.0.tgz", - "integrity": "sha512-UF1FBsmw3N6Eo8vJTDngqfUs7pobSIqleczlSpnZMlt+ETikT3/0gTJvkiXAT1VAXaQCeSjASUCPMO+HWtbH5A==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/import/-/import-3.0.0-rc.2.tgz", + "integrity": "sha512-6eB/eG1QXsw3CyK78rsKcqDTj2jipoyhxckDWbM1gAk4dutNQENCgCAkWOtuGda5vKcU8KeVooUVHopTlbFYJA==", "dev": true, "dependencies": { "@sanity/asset-utils": "^1.2.5", "@sanity/generate-help-url": "^3.0.0", - "@sanity/mutator": "3.0.0-rc.0", + "@sanity/mutator": "3.0.0-rc.2", "@sanity/uuid": "^3.0.1", "debug": "^3.2.7", "file-url": "^2.0.2", @@ -3879,9 +3879,9 @@ } }, "node_modules/@sanity/mutator": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/mutator/-/mutator-3.0.0-rc.0.tgz", - "integrity": "sha512-Ehwg5JG1eBzXDEBaq5rdquNWYwJsOMlyuIoKwaYQHFUQIx8XpocNjBwGQEGodXoyze9WrRB71V1pWXojmO82sA==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/mutator/-/mutator-3.0.0-rc.2.tgz", + "integrity": "sha512-bmX8lE+gxz/ws2D6cewqWprJFHQX46kFKvdIx5cqYZElIp9GDrY9ICk5exSfQgiTA4FW1AiHIY6EGVM8kqbNwQ==", "dev": true, "dependencies": { "@sanity/uuid": "^3.0.1", @@ -4019,16 +4019,16 @@ } }, "node_modules/@sanity/portable-text-editor": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/portable-text-editor/-/portable-text-editor-3.0.0-rc.0.tgz", - "integrity": "sha512-0Eq+ZYwWvOdFVwH2DAm0IKu2rKQ8vkGhwPjdBATvNeOmV1o9ySHwotxDQ4jBeRU/EB1WoaFb58jNlh+xMVTljg==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/portable-text-editor/-/portable-text-editor-3.0.0-rc.2.tgz", + "integrity": "sha512-hpu/rQuKwWTYPU5V4vKmrDZQzuhM+IuBC3W5M3l5Mmijqx+xll2fKqX9uKdR1a+kuuDgu/n74nLBHVzOI5vF0g==", "dev": true, "dependencies": { - "@sanity/block-tools": "3.0.0-rc.0", - "@sanity/schema": "3.0.0-rc.0", + "@sanity/block-tools": "3.0.0-rc.2", + "@sanity/schema": "3.0.0-rc.2", "@sanity/slate-react": "2.30.1", - "@sanity/types": "3.0.0-rc.0", - "@sanity/util": "3.0.0-rc.0", + "@sanity/types": "3.0.0-rc.2", + "@sanity/util": "3.0.0-rc.2", "debug": "^3.2.7", "is-hotkey": "^0.1.6", "lodash": "^4.17.21", @@ -4053,13 +4053,13 @@ } }, "node_modules/@sanity/schema": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/schema/-/schema-3.0.0-rc.0.tgz", - "integrity": "sha512-r8xHjY4osTWzBpKIO69r9POWShcyiGyTsXk5AUA7EXPULnOBl+6qzQNbdHkKA75WoK28dZ33JIXVY1RhCc7bkQ==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/schema/-/schema-3.0.0-rc.2.tgz", + "integrity": "sha512-cBgSmx4EY3WizUn9zjueu1HXu1b/FgeQmvjPltXBwmzjHTvlBBlyyg/pIO9qpLFMEU9lO3H1+JExlNL6boRCGw==", "dev": true, "dependencies": { "@sanity/generate-help-url": "^3.0.0", - "@sanity/types": "3.0.0-rc.0", + "@sanity/types": "3.0.0-rc.2", "arrify": "^1.0.1", "humanize-list": "^1.0.1", "leven": "^3.1.0", @@ -4085,9 +4085,9 @@ } }, "node_modules/@sanity/server": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/server/-/server-3.0.0-rc.0.tgz", - "integrity": "sha512-P45vBjc4tG8S4CAeR5xfH4OZbPDzawwT/BBKuiMQitP0MjlmwpYeGKDQlSqyLlQM2O9zPIk0Yztk/BBi6f3w9Q==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/server/-/server-3.0.0-rc.2.tgz", + "integrity": "sha512-mD50vHzDSk4N/jxpTspQPGGmpYxJHANqSstorJnHGbRSOXGVS5/wSCJ26bU/1jXzZini73uRTQrNenN/577cpQ==", "dev": true, "dependencies": { "@sanity/generate-help-url": "^3.0.0", @@ -4533,9 +4533,9 @@ } }, "node_modules/@sanity/types": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/types/-/types-3.0.0-rc.0.tgz", - "integrity": "sha512-mq2ybbvdxcJcu/+81oSZdFz7+d0R/jcsPjfWlR+kOjcIqlgIbLI6+uItcFS/Vo2uY+D1u8i8kQ2SRg0S+AL04A==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/types/-/types-3.0.0-rc.2.tgz", + "integrity": "sha512-0zZPU3lrTblkVbaPQs/xQohxT3sSdcfDdU3TRh1Ip78MGU/l9YMMCbHTrbaP0J//FTicYR5AaKxeG4UW/4xrfw==", "dev": true, "dependencies": { "@sanity/client": "^3.4.1", @@ -4566,12 +4566,12 @@ "integrity": "sha512-421F+o3BbumkPzj93wsM9VXeX4wuhrXp/B/AHVuB0uXWLEGYnrY2mBzRU44fsZGQWW4fgy139B5eV5orFzYJkA==" }, "node_modules/@sanity/util": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/util/-/util-3.0.0-rc.0.tgz", - "integrity": "sha512-pibawRcTK9l8FT2164BzMNyoU7u5hILGZAy5D+niQm9GAY8S82DFbwR/7gTCYklK9RVbtfZa8BgGZntWDQctIg==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/util/-/util-3.0.0-rc.2.tgz", + "integrity": "sha512-3JmfSKVyb+Y/rv1zvFjr+mG9yWGNGiqNtycvPRITf2LLKiooqZfxD9xX6ZTDZgI4+IyXgTimqgbbZAAsNrE1jw==", "dev": true, "dependencies": { - "@sanity/types": "3.0.0-rc.0", + "@sanity/types": "3.0.0-rc.2", "get-random-values-esm": "^1.0.0", "moment": "^2.29.4" }, @@ -4597,12 +4597,12 @@ } }, "node_modules/@sanity/validation": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/validation/-/validation-3.0.0-rc.0.tgz", - "integrity": "sha512-mCxLw2j/m08Y/E1r2+WHxkCWziK7jI03J1QxglgtbhoH3w04ajbKpxI3hX9Q8O9IDmPlYOHeWLJmaxBqJF9CNA==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/validation/-/validation-3.0.0-rc.2.tgz", + "integrity": "sha512-v0JPfK9t8HJ7XriYyQbJItI9Jfrf5BVAGjRwTrAVKTrCyghNzjNJSok7yNR9EDIYDNxrKh+EGrW2JQkfEPlSgw==", "dev": true, "dependencies": { - "@sanity/types": "3.0.0-rc.0", + "@sanity/types": "3.0.0-rc.2", "date-fns": "^2.26.1", "lodash": "^4.17.21", "rxjs": "^6.5.3" @@ -16320,9 +16320,9 @@ "dev": true }, "node_modules/sanity": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/sanity/-/sanity-3.0.0-rc.0.tgz", - "integrity": "sha512-ZIKDWoVUjBP8OtHV/Rs5QBmrqBuxzJsOh6JJHgb5sq6dKw7tCN+HAfFIXl1afC5ngZPNbArhFGL9ExD9Z9ldAg==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/sanity/-/sanity-3.0.0-rc.2.tgz", + "integrity": "sha512-ZT4ZTsoFCGlpAFz6h4hYBRNwXCDKub3WxRa6B3nx87nS7DvwNB5w/b3FJfjwfGD2EZzgZJsfw1EEqySxuelS5A==", "dev": true, "dependencies": { "@juggle/resize-observer": "^3.3.1", @@ -16332,27 +16332,27 @@ "@rexxars/react-sortable-hoc": "^2.0.0", "@sanity/asset-utils": "^1.2.5", "@sanity/bifur-client": "^0.3.0", - "@sanity/block-tools": "3.0.0-rc.0", - "@sanity/cli": "3.0.0-rc.0", + "@sanity/block-tools": "3.0.0-rc.2", + "@sanity/cli": "3.0.0-rc.2", "@sanity/client": "^3.4.1", "@sanity/color": "2.1.19-beta.3", - "@sanity/diff": "3.0.0-rc.0", + "@sanity/diff": "3.0.0-rc.2", "@sanity/eventsource": "^3.0.1", - "@sanity/export": "3.0.0-rc.0", + "@sanity/export": "3.0.0-rc.2", "@sanity/generate-help-url": "^3.0.0", "@sanity/icons": "1.3.9-beta.3", "@sanity/image-url": "^1.0.1", - "@sanity/import": "3.0.0-rc.0", + "@sanity/import": "3.0.0-rc.2", "@sanity/logos": "1.1.20-beta.3", - "@sanity/mutator": "3.0.0-rc.0", - "@sanity/portable-text-editor": "3.0.0-rc.0", - "@sanity/schema": "3.0.0-rc.0", - "@sanity/server": "3.0.0-rc.0", - "@sanity/types": "3.0.0-rc.0", + "@sanity/mutator": "3.0.0-rc.2", + "@sanity/portable-text-editor": "3.0.0-rc.2", + "@sanity/schema": "3.0.0-rc.2", + "@sanity/server": "3.0.0-rc.2", + "@sanity/types": "3.0.0-rc.2", "@sanity/ui": "1.0.0-beta.32", - "@sanity/util": "3.0.0-rc.0", + "@sanity/util": "3.0.0-rc.2", "@sanity/uuid": "^3.0.1", - "@sanity/validation": "3.0.0-rc.0", + "@sanity/validation": "3.0.0-rc.2", "@tanstack/react-virtual": "3.0.0-beta.18", "@types/is-hotkey": "^0.1.7", "@types/react-copy-to-clipboard": "^5.0.2", @@ -18771,9 +18771,9 @@ "dev": true }, "node_modules/vite": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/vite/-/vite-3.2.2.tgz", - "integrity": "sha512-pLrhatFFOWO9kS19bQ658CnRYzv0WLbsPih6R+iFeEEhDOuYgYCX2rztUViMz/uy/V8cLCJvLFeiOK7RJEzHcw==", + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/vite/-/vite-3.2.4.tgz", + "integrity": "sha512-Z2X6SRAffOUYTa+sLy3NQ7nlHFU100xwanq1WDwqaiFiCe+25zdxP1TfCS5ojPV2oDDcXudHIoPnI1Z/66B7Yw==", "dev": true, "dependencies": { "esbuild": "^0.15.9", @@ -18791,6 +18791,7 @@ "fsevents": "~2.3.2" }, "peerDependencies": { + "@types/node": ">= 14", "less": "*", "sass": "*", "stylus": "*", @@ -18798,6 +18799,9 @@ "terser": "^5.4.0" }, "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, "less": { "optional": true }, @@ -21539,9 +21543,9 @@ } }, "@sanity/block-tools": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/block-tools/-/block-tools-3.0.0-rc.0.tgz", - "integrity": "sha512-YCZBKLXPNkAKNBYFN79SCUG9Ee/CEUerbO3nMJV0uoxexlVPAt0pq2zUqjI2oyN3oAfy0+1iABOgtPVQlJyc/w==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/block-tools/-/block-tools-3.0.0-rc.2.tgz", + "integrity": "sha512-JWC4LuN1q51+KM+YlpML3nEK0ElVTvfLrfbVjBUtPhTPaaOydKBacImEusfCMHLmDc2TP0Ua44/qUiYYWZ07UA==", "dev": true, "requires": { "get-random-values-esm": "^1.0.0", @@ -21549,9 +21553,9 @@ } }, "@sanity/cli": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/cli/-/cli-3.0.0-rc.0.tgz", - "integrity": "sha512-sfTRQQ+0ELms4pi3tTjRR85e0KOpD9bZsNzWf5EaGS3pPFvwsqI40CqmeDq+7izYmYisvj47jL9j0uNis0OUug==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/cli/-/cli-3.0.0-rc.2.tgz", + "integrity": "sha512-umWFPQu7j7a2OuROyvAVy1El2hsVg33UbmUnmhzxsobFE38mMPXf4HhRliyvA/fIeeNalOBO+MWJpGxo7dZf3Q==", "dev": true, "requires": { "@babel/traverse": "^7.19.0", @@ -21829,9 +21833,9 @@ } }, "@sanity/diff": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/diff/-/diff-3.0.0-rc.0.tgz", - "integrity": "sha512-MVhtu1Iq49o7OpBAD+VfDGc/0Lg/HhZ41FIqtMHPzQTaW5zDODzaPE3LxeM3RFT3ZHBJz1pKYutr3y94aENIaA==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/diff/-/diff-3.0.0-rc.2.tgz", + "integrity": "sha512-etgoHJQYK5X6TDoQXEO4FjVdc8qUuhTyjbnYNkqEb/MC7Dwc3Dy7JFm8IRwiB/qfGASxH6d7NnFlV0+wCccveQ==", "dev": true, "requires": { "diff-match-patch": "^1.0.4" @@ -21848,9 +21852,9 @@ } }, "@sanity/export": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/export/-/export-3.0.0-rc.0.tgz", - "integrity": "sha512-VCcsaSY2IUL3dylB0QF0P5QfpYybKU4uM0dVGJ044S7JS6Bp3wL51OwYSbHGYF3b8V7UgBQYVEf/zaP3ziCGDQ==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/export/-/export-3.0.0-rc.2.tgz", + "integrity": "sha512-iqIDQHsgeAV3Nkue6Y1XJ5rxwQQR02AEUeCrLq+167wg4KmSogfoqj+E6PVp5eDrvKmwziVKGkWwFT/97PB5Zg==", "dev": true, "requires": { "archiver": "^5.0.0", @@ -21956,14 +21960,14 @@ "dev": true }, "@sanity/import": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/import/-/import-3.0.0-rc.0.tgz", - "integrity": "sha512-UF1FBsmw3N6Eo8vJTDngqfUs7pobSIqleczlSpnZMlt+ETikT3/0gTJvkiXAT1VAXaQCeSjASUCPMO+HWtbH5A==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/import/-/import-3.0.0-rc.2.tgz", + "integrity": "sha512-6eB/eG1QXsw3CyK78rsKcqDTj2jipoyhxckDWbM1gAk4dutNQENCgCAkWOtuGda5vKcU8KeVooUVHopTlbFYJA==", "dev": true, "requires": { "@sanity/asset-utils": "^1.2.5", "@sanity/generate-help-url": "^3.0.0", - "@sanity/mutator": "3.0.0-rc.0", + "@sanity/mutator": "3.0.0-rc.2", "@sanity/uuid": "^3.0.1", "debug": "^3.2.7", "file-url": "^2.0.2", @@ -22101,9 +22105,9 @@ "dev": true }, "@sanity/mutator": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/mutator/-/mutator-3.0.0-rc.0.tgz", - "integrity": "sha512-Ehwg5JG1eBzXDEBaq5rdquNWYwJsOMlyuIoKwaYQHFUQIx8XpocNjBwGQEGodXoyze9WrRB71V1pWXojmO82sA==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/mutator/-/mutator-3.0.0-rc.2.tgz", + "integrity": "sha512-bmX8lE+gxz/ws2D6cewqWprJFHQX46kFKvdIx5cqYZElIp9GDrY9ICk5exSfQgiTA4FW1AiHIY6EGVM8kqbNwQ==", "dev": true, "requires": { "@sanity/uuid": "^3.0.1", @@ -22222,16 +22226,16 @@ } }, "@sanity/portable-text-editor": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/portable-text-editor/-/portable-text-editor-3.0.0-rc.0.tgz", - "integrity": "sha512-0Eq+ZYwWvOdFVwH2DAm0IKu2rKQ8vkGhwPjdBATvNeOmV1o9ySHwotxDQ4jBeRU/EB1WoaFb58jNlh+xMVTljg==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/portable-text-editor/-/portable-text-editor-3.0.0-rc.2.tgz", + "integrity": "sha512-hpu/rQuKwWTYPU5V4vKmrDZQzuhM+IuBC3W5M3l5Mmijqx+xll2fKqX9uKdR1a+kuuDgu/n74nLBHVzOI5vF0g==", "dev": true, "requires": { - "@sanity/block-tools": "3.0.0-rc.0", - "@sanity/schema": "3.0.0-rc.0", + "@sanity/block-tools": "3.0.0-rc.2", + "@sanity/schema": "3.0.0-rc.2", "@sanity/slate-react": "2.30.1", - "@sanity/types": "3.0.0-rc.0", - "@sanity/util": "3.0.0-rc.0", + "@sanity/types": "3.0.0-rc.2", + "@sanity/util": "3.0.0-rc.2", "debug": "^3.2.7", "is-hotkey": "^0.1.6", "lodash": "^4.17.21", @@ -22250,13 +22254,13 @@ } }, "@sanity/schema": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/schema/-/schema-3.0.0-rc.0.tgz", - "integrity": "sha512-r8xHjY4osTWzBpKIO69r9POWShcyiGyTsXk5AUA7EXPULnOBl+6qzQNbdHkKA75WoK28dZ33JIXVY1RhCc7bkQ==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/schema/-/schema-3.0.0-rc.2.tgz", + "integrity": "sha512-cBgSmx4EY3WizUn9zjueu1HXu1b/FgeQmvjPltXBwmzjHTvlBBlyyg/pIO9qpLFMEU9lO3H1+JExlNL6boRCGw==", "dev": true, "requires": { "@sanity/generate-help-url": "^3.0.0", - "@sanity/types": "3.0.0-rc.0", + "@sanity/types": "3.0.0-rc.2", "arrify": "^1.0.1", "humanize-list": "^1.0.1", "leven": "^3.1.0", @@ -22279,9 +22283,9 @@ } }, "@sanity/server": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/server/-/server-3.0.0-rc.0.tgz", - "integrity": "sha512-P45vBjc4tG8S4CAeR5xfH4OZbPDzawwT/BBKuiMQitP0MjlmwpYeGKDQlSqyLlQM2O9zPIk0Yztk/BBi6f3w9Q==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/server/-/server-3.0.0-rc.2.tgz", + "integrity": "sha512-mD50vHzDSk4N/jxpTspQPGGmpYxJHANqSstorJnHGbRSOXGVS5/wSCJ26bU/1jXzZini73uRTQrNenN/577cpQ==", "dev": true, "requires": { "@sanity/generate-help-url": "^3.0.0", @@ -22517,9 +22521,9 @@ "dev": true }, "@sanity/types": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/types/-/types-3.0.0-rc.0.tgz", - "integrity": "sha512-mq2ybbvdxcJcu/+81oSZdFz7+d0R/jcsPjfWlR+kOjcIqlgIbLI6+uItcFS/Vo2uY+D1u8i8kQ2SRg0S+AL04A==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/types/-/types-3.0.0-rc.2.tgz", + "integrity": "sha512-0zZPU3lrTblkVbaPQs/xQohxT3sSdcfDdU3TRh1Ip78MGU/l9YMMCbHTrbaP0J//FTicYR5AaKxeG4UW/4xrfw==", "dev": true, "requires": { "@sanity/client": "^3.4.1", @@ -22546,12 +22550,12 @@ } }, "@sanity/util": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/util/-/util-3.0.0-rc.0.tgz", - "integrity": "sha512-pibawRcTK9l8FT2164BzMNyoU7u5hILGZAy5D+niQm9GAY8S82DFbwR/7gTCYklK9RVbtfZa8BgGZntWDQctIg==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/util/-/util-3.0.0-rc.2.tgz", + "integrity": "sha512-3JmfSKVyb+Y/rv1zvFjr+mG9yWGNGiqNtycvPRITf2LLKiooqZfxD9xX6ZTDZgI4+IyXgTimqgbbZAAsNrE1jw==", "dev": true, "requires": { - "@sanity/types": "3.0.0-rc.0", + "@sanity/types": "3.0.0-rc.2", "get-random-values-esm": "^1.0.0", "moment": "^2.29.4" } @@ -22573,12 +22577,12 @@ } }, "@sanity/validation": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@sanity/validation/-/validation-3.0.0-rc.0.tgz", - "integrity": "sha512-mCxLw2j/m08Y/E1r2+WHxkCWziK7jI03J1QxglgtbhoH3w04ajbKpxI3hX9Q8O9IDmPlYOHeWLJmaxBqJF9CNA==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/@sanity/validation/-/validation-3.0.0-rc.2.tgz", + "integrity": "sha512-v0JPfK9t8HJ7XriYyQbJItI9Jfrf5BVAGjRwTrAVKTrCyghNzjNJSok7yNR9EDIYDNxrKh+EGrW2JQkfEPlSgw==", "dev": true, "requires": { - "@sanity/types": "3.0.0-rc.0", + "@sanity/types": "3.0.0-rc.2", "date-fns": "^2.26.1", "lodash": "^4.17.21", "rxjs": "^6.5.3" @@ -31127,9 +31131,9 @@ "dev": true }, "sanity": { - "version": "3.0.0-rc.0", - "resolved": "https://registry.npmjs.org/sanity/-/sanity-3.0.0-rc.0.tgz", - "integrity": "sha512-ZIKDWoVUjBP8OtHV/Rs5QBmrqBuxzJsOh6JJHgb5sq6dKw7tCN+HAfFIXl1afC5ngZPNbArhFGL9ExD9Z9ldAg==", + "version": "3.0.0-rc.2", + "resolved": "https://registry.npmjs.org/sanity/-/sanity-3.0.0-rc.2.tgz", + "integrity": "sha512-ZT4ZTsoFCGlpAFz6h4hYBRNwXCDKub3WxRa6B3nx87nS7DvwNB5w/b3FJfjwfGD2EZzgZJsfw1EEqySxuelS5A==", "dev": true, "requires": { "@juggle/resize-observer": "^3.3.1", @@ -31139,27 +31143,27 @@ "@rexxars/react-sortable-hoc": "^2.0.0", "@sanity/asset-utils": "^1.2.5", "@sanity/bifur-client": "^0.3.0", - "@sanity/block-tools": "3.0.0-rc.0", - "@sanity/cli": "3.0.0-rc.0", + "@sanity/block-tools": "3.0.0-rc.2", + "@sanity/cli": "3.0.0-rc.2", "@sanity/client": "^3.4.1", "@sanity/color": "2.1.19-beta.3", - "@sanity/diff": "3.0.0-rc.0", + "@sanity/diff": "3.0.0-rc.2", "@sanity/eventsource": "^3.0.1", - "@sanity/export": "3.0.0-rc.0", + "@sanity/export": "3.0.0-rc.2", "@sanity/generate-help-url": "^3.0.0", "@sanity/icons": "1.3.9-beta.3", "@sanity/image-url": "^1.0.1", - "@sanity/import": "3.0.0-rc.0", + "@sanity/import": "3.0.0-rc.2", "@sanity/logos": "1.1.20-beta.3", - "@sanity/mutator": "3.0.0-rc.0", - "@sanity/portable-text-editor": "3.0.0-rc.0", - "@sanity/schema": "3.0.0-rc.0", - "@sanity/server": "3.0.0-rc.0", - "@sanity/types": "3.0.0-rc.0", + "@sanity/mutator": "3.0.0-rc.2", + "@sanity/portable-text-editor": "3.0.0-rc.2", + "@sanity/schema": "3.0.0-rc.2", + "@sanity/server": "3.0.0-rc.2", + "@sanity/types": "3.0.0-rc.2", "@sanity/ui": "1.0.0-beta.32", - "@sanity/util": "3.0.0-rc.0", + "@sanity/util": "3.0.0-rc.2", "@sanity/uuid": "^3.0.1", - "@sanity/validation": "3.0.0-rc.0", + "@sanity/validation": "3.0.0-rc.2", "@tanstack/react-virtual": "3.0.0-beta.18", "@types/is-hotkey": "^0.1.7", "@types/react-copy-to-clipboard": "^5.0.2", @@ -32954,9 +32958,9 @@ "dev": true }, "vite": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/vite/-/vite-3.2.2.tgz", - "integrity": "sha512-pLrhatFFOWO9kS19bQ658CnRYzv0WLbsPih6R+iFeEEhDOuYgYCX2rztUViMz/uy/V8cLCJvLFeiOK7RJEzHcw==", + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/vite/-/vite-3.2.4.tgz", + "integrity": "sha512-Z2X6SRAffOUYTa+sLy3NQ7nlHFU100xwanq1WDwqaiFiCe+25zdxP1TfCS5ojPV2oDDcXudHIoPnI1Z/66B7Yw==", "dev": true, "requires": { "esbuild": "^0.15.9", diff --git a/package.json b/package.json index 0d50e04..bb08f28 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ "@commitlint/cli": "^17.2.0", "@commitlint/config-conventional": "^17.2.0", "@sanity/client": "^3.4.1", - "@sanity/dashboard": "3.0.0-v3-studio.8", + "@sanity/dashboard": "^3.0.0-v3-studio.7", "@sanity/pkg-utils": "^1.17.2", "@sanity/plugin-kit": "^2.1.5", "@sanity/semantic-release-preset": "^2.0.2", @@ -104,14 +104,14 @@ "react": "^18", "react-dom": "^18", "rimraf": "^3.0.2", - "sanity": "3.0.0-rc.0", + "sanity": "3.0.0-rc.2", "typescript": "^4.8.4" }, "peerDependencies": { - "@sanity/dashboard": "studio-v3 || 3.0.0-v3-studio.7", + "@sanity/dashboard": "^3.0.0-v3-studio.7", "react": "^18", "react-dom": "^18", - "sanity": "dev-preview || 3.0.0-rc.0", + "sanity": "dev-preview || 3.0.0-rc.2", "styled-components": "^5.2" }, "engines": { diff --git a/v2-incompatible.js b/v2-incompatible.js index 426e804..3383f62 100644 --- a/v2-incompatible.js +++ b/v2-incompatible.js @@ -1,11 +1,11 @@ -const {showIncompatiblePluginDialog} = require('@sanity/incompatible-plugin') -const {name, version, sanityExchangeUrl} = require('./package.json') +const { showIncompatiblePluginDialog } = require('@sanity/incompatible-plugin') +const { name, version, sanityExchangeUrl } = require('./package.json') export default showIncompatiblePluginDialog({ name: name, versions: { v3: version, - v2: undefined, + v2: '^1.1.3', }, sanityExchangeUrl, })