@sanity/dashboard 3.0.0-v3-studio.7 → 3.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.
Files changed (2) hide show
  1. package/README.md +4 -21
  2. package/package.json +40 -41
package/README.md CHANGED
@@ -1,23 +1,6 @@
1
- ## Installation
1
+ Sanity Dashboard
2
2
 
3
- ```
4
- npm install --save @sanity/dashboard@studio-v3
5
- ```
6
-
7
- or
8
-
9
- ```
10
- yarn add @sanity/dashboard@studio-v3
11
- ```
12
-
13
- ## Usage
14
-
15
- # Sanity Dashboard
16
-
17
- > **NOTE**
18
- >
19
- > This is the **Sanity Studio v3 version** of @sanity/dashboard.
20
- >
3
+ > This is a **Sanity Studio v3** plugin.
21
4
  > For the v2 version, please refer to the [v2-branch](https://github.com/sanity-io/sanity/tree/next/packages/%40sanity/dashboard).
22
5
 
23
6
  ## What is it?
@@ -34,11 +17,11 @@ The Dashboard itself is mostly concerned about the layout of the configured widg
34
17
 
35
18
  In your Sanity Content Studio run:
36
19
 
37
- `npm install --save @sanity/dashboard@studio-v3`
20
+ `npm install --save @sanity/dashboard`
38
21
 
39
22
  or
40
23
 
41
- `yarn add @sanity/dashboard@studio-v3`
24
+ `yarn add @sanity/dashboard`
42
25
 
43
26
  ## Basic usage
44
27
  In `sanity.config.js` (or .ts), add the dashboard tool to the defineConfig plugins array:
package/package.json CHANGED
@@ -1,10 +1,27 @@
1
1
  {
2
2
  "name": "@sanity/dashboard",
3
- "version": "3.0.0-v3-studio.7",
3
+ "version": "3.0.0",
4
4
  "description": "Tool for rendering dashboard widgets",
5
- "author": "Sanity.io <hello@sanity.io>",
5
+ "keywords": [
6
+ "sanity",
7
+ "cms",
8
+ "headless",
9
+ "realtime",
10
+ "content",
11
+ "dashboard",
12
+ "sanity-plugin",
13
+ "sanity-tool"
14
+ ],
15
+ "homepage": "https://github.com/sanity-io/dashboard#readme",
16
+ "bugs": {
17
+ "url": "https://github.com/sanity-io/dashboard/issues"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git@github.com:sanity-io/dashboard.git"
22
+ },
6
23
  "license": "MIT",
7
- "source": "./src/index.ts",
24
+ "author": "Sanity.io <hello@sanity.io>",
8
25
  "exports": {
9
26
  ".": {
10
27
  "types": "./lib/src/index.d.ts",
@@ -12,10 +29,12 @@
12
29
  "import": "./lib/index.esm.js",
13
30
  "require": "./lib/index.js",
14
31
  "default": "./lib/index.esm.js"
15
- }
32
+ },
33
+ "./package.json": "./package.json"
16
34
  },
17
35
  "main": "./lib/index.js",
18
36
  "module": "./lib/index.esm.js",
37
+ "source": "./src/index.ts",
19
38
  "types": "./lib/src/index.d.ts",
20
39
  "files": [
21
40
  "src",
@@ -24,40 +43,30 @@
24
43
  "sanity.json"
25
44
  ],
26
45
  "scripts": {
27
- "clean": "rimraf lib",
28
46
  "prebuild": "npm run clean && plugin-kit verify-package --silent && pkg-utils",
29
- "build": "pkg-utils build",
30
- "watch": "pkg-utils watch",
31
- "link-watch": "plugin-kit link-watch",
47
+ "build": "pkg-utils build --strict",
48
+ "clean": "rimraf lib",
49
+ "compile": "tsc --noEmit",
32
50
  "format": "prettier src -w",
51
+ "link-watch": "plugin-kit link-watch",
52
+ "lint": "eslint .",
33
53
  "prepare": "husky install",
34
- "compile": "tsc --noEmit",
35
54
  "prepublishOnly": "npm run build",
36
- "lint": "eslint ."
55
+ "watch": "pkg-utils watch"
37
56
  },
38
- "keywords": [
39
- "sanity",
40
- "cms",
41
- "headless",
42
- "realtime",
43
- "content",
44
- "dashboard",
45
- "sanity-plugin",
46
- "sanity-tool"
47
- ],
48
57
  "dependencies": {
49
- "@sanity/icons": "1.3.9-beta.3",
58
+ "@sanity/icons": "^2.0.0",
50
59
  "@sanity/image-url": "^1.0.1",
51
60
  "@sanity/incompatible-plugin": "^1.0.4",
52
- "@sanity/ui": "1.0.0-beta.32",
61
+ "@sanity/ui": "^1.0.0",
53
62
  "lodash": "^4.17.21",
54
63
  "rxjs": "^6.6.7"
55
64
  },
56
65
  "devDependencies": {
57
66
  "@commitlint/cli": "^17.2.0",
58
67
  "@commitlint/config-conventional": "^17.2.0",
59
- "@sanity/pkg-utils": "^1.16.2",
60
- "@sanity/plugin-kit": "^2.0.9",
68
+ "@sanity/pkg-utils": "^1.17.2",
69
+ "@sanity/plugin-kit": "^2.1.3",
61
70
  "@sanity/semantic-release-preset": "^2.0.2",
62
71
  "@types/styled-components": "^5.1.26",
63
72
  "@typescript-eslint/eslint-plugin": "^5.42.0",
@@ -71,30 +80,20 @@
71
80
  "husky": "^8.0.1",
72
81
  "lint-staged": "^13.0.3",
73
82
  "prettier": "^2.7.1",
74
- "react": "^18.2.0",
83
+ "prettier-plugin-packagejson": "^2.3.0",
84
+ "react": "^18",
75
85
  "rimraf": "^3.0.2",
76
- "sanity": "dev-preview || 3.0.0-rc.0",
86
+ "sanity": "^3.0.0",
77
87
  "styled-components": "^5.3.6",
78
88
  "typescript": "^4.8.4"
79
89
  },
80
90
  "peerDependencies": {
81
91
  "react": "^18",
82
- "sanity": "dev-preview || 3.0.0-rc.0",
92
+ "sanity": "^3.0.0",
83
93
  "styled-components": "^5.2.0"
84
94
  },
85
- "repository": {
86
- "type": "git",
87
- "url": "git@github.com:sanity-io/dashboard.git"
88
- },
89
- "sanityExchangeUrl": "https://www.sanity.io/exchange/dashboard",
90
- "bugs": {
91
- "url": "https://github.com/sanity-io/dashboard/issues"
92
- },
93
- "homepage": "https://github.com/sanity-io/dashboard#readme",
94
- "directories": {
95
- "lib": "lib"
96
- },
97
95
  "engines": {
98
- "node": ">=14.0.0"
99
- }
96
+ "node": ">=14"
97
+ },
98
+ "sanityExchangeUrl": "https://www.sanity.io/exchange/dashboard"
100
99
  }