sanity-plugin-dashboard-widget-netlify 2.0.0-v3-studio.6 → 2.0.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/README.md CHANGED
@@ -1,24 +1,20 @@
1
- > **NOTE**
2
- >
3
- > This is the **Sanity Studio v3 version** of sanity-plugin-dashboard-widget-netlify.
4
- >
5
- > For the v2 version, please refer to the [v2 version](https://github.com/sanity-io/sanity-plugin-dashboard-widget-netlify/tree/main).
6
-
7
-
8
1
  # Sanity Dashboard Widget: Netlify
9
2
 
3
+ >This is a **Sanity Studio v3** plugin.
4
+ > For the v2 version, please refer to the [v2-branch](https://github.com/sanity-io/sanity-plugin-dashboard-widget-netlify/tree/studio-v2).
5
+
10
6
  Sanity Studio Dashboard Widget for triggering Netlify builds.
11
7
 
12
8
  ## Install
13
9
 
14
10
  ```
15
- npm install --save sanity-plugin-dashboard-widget-netlify@studio-v3
11
+ npm install --save sanity-plugin-dashboard-widget-netlify
16
12
  ```
17
13
 
18
14
  or
19
15
 
20
16
  ```
21
- yarn add sanity-plugin-dashboard-widget-netlify@studio-v3
17
+ yarn add sanity-plugin-dashboard-widget-netlify
22
18
  ```
23
19
 
24
20
  Ensure that you have followed install and usage instructions for [@sanity/dashboard](https://github.com/sanity-io/dashboard).
package/package.json CHANGED
@@ -1,13 +1,24 @@
1
1
  {
2
2
  "name": "sanity-plugin-dashboard-widget-netlify",
3
- "version": "2.0.0-v3-studio.6",
3
+ "version": "2.0.0",
4
4
  "description": "Sanity Studio Dashboard Widget for triggering Netlify builds",
5
- "author": "Sanity.io <hello@sanity.io>",
5
+ "keywords": [
6
+ "sanity",
7
+ "plugin",
8
+ "dashboard",
9
+ "widget",
10
+ "netlify"
11
+ ],
12
+ "homepage": "https://github.com/sanity-io/sanity-plugin-dashboard-widget-netlify#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/sanity-io/sanity-plugin-dashboard-widget-netlify/issues"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git@github.com:sanity-io/sanity-plugin-dashboard-widget-netlify.git"
19
+ },
6
20
  "license": "MIT",
7
- "source": "./src/index.ts",
8
- "main": "./lib/index.js",
9
- "module": "./lib/index.esm.js",
10
- "types": "./lib/src/index.d.ts",
21
+ "author": "Sanity.io <hello@sanity.io>",
11
22
  "exports": {
12
23
  ".": {
13
24
  "types": "./lib/src/index.d.ts",
@@ -15,8 +26,13 @@
15
26
  "import": "./lib/index.esm.js",
16
27
  "require": "./lib/index.js",
17
28
  "default": "./lib/index.esm.js"
18
- }
29
+ },
30
+ "./package.json": "./package.json"
19
31
  },
32
+ "main": "./lib/index.js",
33
+ "module": "./lib/index.esm.js",
34
+ "source": "./src/index.ts",
35
+ "types": "./lib/src/index.d.ts",
20
36
  "files": [
21
37
  "src",
22
38
  "lib",
@@ -24,45 +40,24 @@
24
40
  "sanity.json"
25
41
  ],
26
42
  "scripts": {
27
- "lint": "eslint .",
43
+ "__test": "jest --coverage",
28
44
  "prebuild": "npm run clean && plugin-kit verify-package --silent && pkg-utils",
29
- "build": "pkg-utils build",
30
- "watch": "pkg-utils watch",
45
+ "build": "pkg-utils build --strict",
46
+ "clean": "rimraf lib",
47
+ "compile": "tsc --noEmit",
48
+ "link-watch": "plugin-kit link-watch",
49
+ "lint": "eslint .",
50
+ "prepare": "husky install",
51
+ "prepublishOnly": "npm run compile && npm run build",
31
52
  "test": "echo 'tests disabled for now'",
32
- "__test": "jest --coverage",
33
- "test:watch": "jest --coverage --watch",
34
53
  "test:prod": "npm run lint && npm run test -- --no-cache",
35
- "prepublishOnly": "npm run compile && npm run build",
36
- "prepare": "husky install",
37
- "compile": "tsc --noEmit",
38
- "clean": "rimraf lib",
39
- "link-watch": "plugin-kit link-watch"
40
- },
41
- "repository": {
42
- "type": "git",
43
- "url": "git@github.com:sanity-io/sanity-plugin-dashboard-widget-netlify.git"
44
- },
45
- "engines": {
46
- "node": ">=14.0.0"
47
- },
48
- "keywords": [
49
- "sanity",
50
- "plugin",
51
- "dashboard",
52
- "widget",
53
- "netlify"
54
- ],
55
- "publishConfig": {
56
- "access": "public"
57
- },
58
- "bugs": {
59
- "url": "https://github.com/sanity-io/sanity-plugin-dashboard-widget-netlify/issues"
54
+ "test:watch": "jest --coverage --watch",
55
+ "watch": "pkg-utils watch"
60
56
  },
61
- "homepage": "https://github.com/sanity-io/sanity-plugin-dashboard-widget-netlify#readme",
62
57
  "prettier": {
63
- "semi": false,
64
- "printWidth": 100,
65
58
  "bracketSpacing": false,
59
+ "printWidth": 100,
60
+ "semi": false,
66
61
  "singleQuote": true
67
62
  },
68
63
  "dependencies": {
@@ -71,30 +66,22 @@
71
66
  "react-props-stream": "^1.0.1",
72
67
  "rxjs": "^6.6.7"
73
68
  },
74
- "peerDependencies": {
75
- "@sanity/dashboard": "studio-v3 || 3.0.0-v3-studio.7",
76
- "@sanity/ui": "beta || 1.0.0-beta.32",
77
- "react": "^18",
78
- "react-dom": "^18",
79
- "sanity": "dev-preview || 3.0.0-rc.0",
80
- "styled-components": "^5.2"
81
- },
82
69
  "devDependencies": {
83
70
  "@babel/preset-env": "^7.19.4",
84
71
  "@babel/preset-react": "^7.18.6",
85
72
  "@commitlint/cli": "^17.2.0",
86
73
  "@commitlint/config-conventional": "^17.2.0",
87
- "@sanity/dashboard": "3.0.0-v3-studio.7",
88
- "@sanity/pkg-utils": "^1.16.2",
89
- "@sanity/plugin-kit": "^2.0.9",
74
+ "@sanity/dashboard": "^3.0.0-v3-studio.8",
75
+ "@sanity/pkg-utils": "^1.17.2",
76
+ "@sanity/plugin-kit": "^2.1.5",
90
77
  "@sanity/semantic-release-preset": "^2.0.2",
91
78
  "@sanity/ui": "1.0.0-beta.32",
92
79
  "@testing-library/jest-dom": "^5.16.5",
93
80
  "@testing-library/react": "^13.4.0",
94
81
  "@types/jest": "^29.2.1",
95
82
  "@types/node": "^18.11.9",
96
- "@types/react": "^18.0.24",
97
- "@types/react-dom": "^18.0.8",
83
+ "@types/react": "^18",
84
+ "@types/react-dom": "^18",
98
85
  "@types/styled-components": "^5.1.26",
99
86
  "@typescript-eslint/eslint-plugin": "^5.42.0",
100
87
  "@typescript-eslint/parser": "^5.42.0",
@@ -110,14 +97,29 @@
110
97
  "jest-environment-jsdom": "^29.2.2",
111
98
  "lint-staged": "^13.0.3",
112
99
  "prettier": "^2.7.1",
113
- "react": "^18.2.0",
114
- "react-dom": "^18.2.0",
100
+ "prettier-plugin-packagejson": "^2.3.0",
101
+ "react": "^18",
102
+ "react-dom": "^18",
115
103
  "rimraf": "^3.0.2",
116
- "sanity": "dev-preview || 3.0.0-rc.0",
104
+ "sanity": "3.0.0-rc.2",
117
105
  "styled-components": "^5.3.6",
118
106
  "ts-jest": "^29.0.3",
119
107
  "typescript": "^4.8.4"
120
108
  },
109
+ "peerDependencies": {
110
+ "@sanity/dashboard": "^3.0.0-v3-studio.8",
111
+ "@sanity/ui": "1.0.0-beta.32",
112
+ "react": "^18",
113
+ "react-dom": "^18",
114
+ "sanity": "dev-preview || 3.0.0-rc.2",
115
+ "styled-components": "^5.2"
116
+ },
117
+ "engines": {
118
+ "node": ">=14"
119
+ },
120
+ "publishConfig": {
121
+ "access": "public"
122
+ },
121
123
  "sanityPlugin": {
122
124
  "verifyPackage": {
123
125
  "babelConfig": false
@@ -5,7 +5,7 @@ export default showIncompatiblePluginDialog({
5
5
  name: name,
6
6
  versions: {
7
7
  v3: version,
8
- v2: undefined,
8
+ v2: '^1.3.1',
9
9
  },
10
10
  sanityExchangeUrl,
11
11
  })