From 6876b0958b2c3cb9c3c4f058d11471ed7f7b4b49 Mon Sep 17 00:00:00 2001 From: Cody Olsen Date: Mon, 18 Mar 2024 20:14:57 +0100 Subject: [PATCH] chore(deps): update dependency @sanity/pkg-utils to v5 --- .prettierrc.json | 3 +- package-lock.json | 124 ++++++++++------------------------------------ package.json | 22 ++++---- src/Toolbar.tsx | 4 ++ 4 files changed, 41 insertions(+), 112 deletions(-) diff --git a/.prettierrc.json b/.prettierrc.json index ad1e308..0e679b5 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -2,5 +2,6 @@ "semi": false, "printWidth": 100, "bracketSpacing": false, - "singleQuote": true + "singleQuote": true, + "plugins": ["prettier-plugin-packagejson"] } diff --git a/package-lock.json b/package-lock.json index c840969..f897a80 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,18 +11,18 @@ "dependencies": { "@sanity/icons": "^2.7.0", "@sanity/incompatible-plugin": "^1.0.4", - "@sanity/preview-url-secret": "^1.3.3", - "@sanity/ui": "^2.0.0", - "framer-motion": "^10.16.5", + "@sanity/preview-url-secret": "^1.6.4", + "@sanity/ui": "^2.0.10", + "framer-motion": "11.0.8", "suspend-react": "0.1.3", - "usehooks-ts": "2.9.1" + "usehooks-ts": "2.16.0" }, "devDependencies": { "@commitlint/cli": "^19.2.0", "@commitlint/config-conventional": "^19.1.0", - "@sanity/pkg-utils": "^4.4.2", + "@sanity/pkg-utils": "^5.0.4", "@sanity/plugin-kit": "^3.1.10", - "@sanity/semantic-release-preset": "^4.1.6", + "@sanity/semantic-release-preset": "^4.1.7", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", "eslint": "^8.55.0", @@ -43,8 +43,8 @@ "react-dom": "^18.2.0", "react-is": "^18.2.0", "rimraf": "^5.0.1", - "sanity": "^3.21.1", - "styled-components": "^6.1.1", + "sanity": "^3.34.0", + "styled-components": "^6.1.8", "typescript": "^5.3.3" }, "engines": { @@ -5129,9 +5129,9 @@ } }, "node_modules/@sanity/pkg-utils": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/@sanity/pkg-utils/-/pkg-utils-4.4.2.tgz", - "integrity": "sha512-eebmMCe45viN4TrIr+0jSSu8zcyDEC4zAeB0ZjMZauL6CV1f8iI7GpWXbVODnSwpL29DZrp9704zsxSxnwsoDQ==", + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/@sanity/pkg-utils/-/pkg-utils-5.0.4.tgz", + "integrity": "sha512-QkMQn8bpdHbWvi2GgTpMoYBWHtE2iUL6v+IbWE8yh8SxyMmQHwndyjX9Qb9qRd2qt3LWK9pJKPv9HrgLzMo8JA==", "dev": true, "dependencies": { "@babel/core": "^7.24.0", @@ -5150,7 +5150,7 @@ "cac": "^6.7.14", "chalk": "^4.1.2", "chokidar": "^3.6.0", - "esbuild": "^0.20.1", + "esbuild": "^0.20.2", "esbuild-register": "^3.5.0", "find-config": "^1.0.0", "get-latest-version": "^5.1.0", @@ -5166,7 +5166,7 @@ "pretty-bytes": "^5.6.0", "prompts": "^2.4.2", "rimraf": "^4.4.1", - "rollup": "^4.12.1", + "rollup": "^4.13.0", "rollup-plugin-esbuild": "^6.1.1", "rxjs": "^7.8.1", "treeify": "^1.1.0", @@ -6125,30 +6125,6 @@ "@sanity/client": "^6.15.4" } }, - "node_modules/@sanity/presentation/node_modules/framer-motion": { - "version": "11.0.8", - "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.0.8.tgz", - "integrity": "sha512-1KSGNuqe1qZkS/SWQlDnqK2VCVzRVEoval379j0FiUBJAZoqgwyvqFkfvJbgW2IPFo4wX16K+M0k5jO23lCIjA==", - "dev": true, - "dependencies": { - "tslib": "^2.4.0" - }, - "optionalDependencies": { - "@emotion/is-prop-valid": "^0.8.2" - }, - "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" - }, - "peerDependenciesMeta": { - "react": { - "optional": true - }, - "react-dom": { - "optional": true - } - } - }, "node_modules/@sanity/preview-url-secret": { "version": "1.6.4", "resolved": "https://registry.npmjs.org/@sanity/preview-url-secret/-/preview-url-secret-1.6.4.tgz", @@ -6258,29 +6234,6 @@ "styled-components": "^5.2 || ^6" } }, - "node_modules/@sanity/ui/node_modules/framer-motion": { - "version": "11.0.8", - "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.0.8.tgz", - "integrity": "sha512-1KSGNuqe1qZkS/SWQlDnqK2VCVzRVEoval379j0FiUBJAZoqgwyvqFkfvJbgW2IPFo4wX16K+M0k5jO23lCIjA==", - "dependencies": { - "tslib": "^2.4.0" - }, - "optionalDependencies": { - "@emotion/is-prop-valid": "^0.8.2" - }, - "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" - }, - "peerDependenciesMeta": { - "react": { - "optional": true - }, - "react-dom": { - "optional": true - } - } - }, "node_modules/@sanity/util": { "version": "3.34.0", "resolved": "https://registry.npmjs.org/@sanity/util/-/util-3.34.0.tgz", @@ -12215,9 +12168,9 @@ } }, "node_modules/framer-motion": { - "version": "10.18.0", - "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-10.18.0.tgz", - "integrity": "sha512-oGlDh1Q1XqYPksuTD/usb0I70hq95OUzmL9+6Zd+Hs4XV0oaISBa/UUMSjYiq6m8EUF32132mOJ8xVZS+I0S6w==", + "version": "11.0.8", + "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.0.8.tgz", + "integrity": "sha512-1KSGNuqe1qZkS/SWQlDnqK2VCVzRVEoval379j0FiUBJAZoqgwyvqFkfvJbgW2IPFo4wX16K+M0k5jO23lCIjA==", "dependencies": { "tslib": "^2.4.0" }, @@ -14763,8 +14716,7 @@ "node_modules/lodash.debounce": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", - "dev": true + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" }, "node_modules/lodash.escaperegexp": { "version": "4.1.2", @@ -21996,30 +21948,6 @@ "node": "^8.12.0 || >=9.7.0" } }, - "node_modules/sanity/node_modules/framer-motion": { - "version": "11.0.8", - "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.0.8.tgz", - "integrity": "sha512-1KSGNuqe1qZkS/SWQlDnqK2VCVzRVEoval379j0FiUBJAZoqgwyvqFkfvJbgW2IPFo4wX16K+M0k5jO23lCIjA==", - "dev": true, - "dependencies": { - "tslib": "^2.4.0" - }, - "optionalDependencies": { - "@emotion/is-prop-valid": "^0.8.2" - }, - "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" - }, - "peerDependenciesMeta": { - "react": { - "optional": true - }, - "react-dom": { - "optional": true - } - } - }, "node_modules/sanity/node_modules/get-stream": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", @@ -24388,19 +24316,17 @@ } }, "node_modules/usehooks-ts": { - "version": "2.9.1", - "resolved": "https://registry.npmjs.org/usehooks-ts/-/usehooks-ts-2.9.1.tgz", - "integrity": "sha512-2FAuSIGHlY+apM9FVlj8/oNhd+1y+Uwv5QNkMQz1oSfdHk4PXo1qoCw9I5M7j0vpH8CSWFJwXbVPeYDjLCx9PA==", - "workspaces": [ - "packages/eslint-config-custom" - ], + "version": "2.16.0", + "resolved": "https://registry.npmjs.org/usehooks-ts/-/usehooks-ts-2.16.0.tgz", + "integrity": "sha512-bez95WqYujxp6hFdM/CpRDiVPirZPxlMzOH2QB8yopoKQMXpscyZoxOjpEdaxvV+CAWUDSM62cWnqHE0E/MZ7w==", + "dependencies": { + "lodash.debounce": "^4.0.8" + }, "engines": { - "node": ">=16.15.0", - "npm": ">=8" + "node": ">=16.15.0" }, "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" + "react": "^16.8.0 || ^17 || ^18" } }, "node_modules/user-home": { diff --git a/package.json b/package.json index 2f41799..2262219 100644 --- a/package.json +++ b/package.json @@ -18,11 +18,8 @@ ".": { "types": "./lib/index.d.ts", "source": "./src/index.ts", - "require": "./lib/index.cjs", - "node": { - "import": "./lib/index.cjs.js" - }, "import": "./lib/index.js", + "require": "./lib/index.cjs", "default": "./lib/index.js" }, "./package.json": "./package.json" @@ -49,21 +46,22 @@ "type-check": "tsc --noEmit", "watch": "pkg-utils watch --strict" }, + "browserslist": "extends @sanity/browserslist-config", "dependencies": { "@sanity/icons": "^2.7.0", "@sanity/incompatible-plugin": "^1.0.4", - "@sanity/preview-url-secret": "^1.3.3", - "@sanity/ui": "^2.0.0", - "framer-motion": "^10.16.5", + "@sanity/preview-url-secret": "^1.6.4", + "@sanity/ui": "^2.0.10", + "framer-motion": "11.0.8", "suspend-react": "0.1.3", - "usehooks-ts": "2.9.1" + "usehooks-ts": "2.16.0" }, "devDependencies": { "@commitlint/cli": "^19.2.0", "@commitlint/config-conventional": "^19.1.0", - "@sanity/pkg-utils": "^4.4.2", + "@sanity/pkg-utils": "^5.0.4", "@sanity/plugin-kit": "^3.1.10", - "@sanity/semantic-release-preset": "^4.1.6", + "@sanity/semantic-release-preset": "^4.1.7", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", "eslint": "^8.55.0", @@ -84,8 +82,8 @@ "react-dom": "^18.2.0", "react-is": "^18.2.0", "rimraf": "^5.0.1", - "sanity": "^3.21.1", - "styled-components": "^6.1.1", + "sanity": "^3.34.0", + "styled-components": "^6.1.8", "typescript": "^5.3.3" }, "peerDependencies": { diff --git a/src/Toolbar.tsx b/src/Toolbar.tsx index 38a64e1..dcaa05c 100644 --- a/src/Toolbar.tsx +++ b/src/Toolbar.tsx @@ -49,6 +49,7 @@ export function Toolbar(props: ToolbarProps) { {iframeSize === 'mobile' ? 'Exit mobile preview' : 'Preview mobile viewport'} @@ -71,6 +72,7 @@ export function Toolbar(props: ToolbarProps) { {reloadButton ? ( {reloading ? 'Reloading…' : 'Reload'} @@ -91,6 +93,7 @@ export function Toolbar(props: ToolbarProps) { ) : null} Copy URL @@ -118,6 +121,7 @@ export function Toolbar(props: ToolbarProps) { /> Open URL in a new tab