@sanity/dashboard 3.1.2 → 3.1.4

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 +16 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  Sanity Dashboard
2
2
 
3
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/tree/next/packages/%40sanity/dashboard).
4
+ > For the v2 version, please refer to the [v2-branch](https://github.com/sanity-io/dashboard/tree/studio-v2).
5
5
 
6
6
  ## What is it?
7
7
 
@@ -70,6 +70,21 @@ Widgets can be configured by passing widget-specific config:
70
70
  projectUsersWidget({layout: 'medium'})
71
71
  ```
72
72
 
73
+ You can change the name, title and icon of the dashboard tool should you want to - which also allows you to configure multiple dashboards with different configurations:
74
+
75
+ ```ts
76
+ import { defineConfig } from "sanity";
77
+ import { dashboardTool } from "@sanity/dashboard";
78
+ import { ActivityIcon } from "@sanity/icons";
79
+
80
+ dashboardTool({
81
+ name: "stats",
82
+ title: "Statistics",
83
+ icon: ActivityIcon,
84
+ widgets: [/* ... */]
85
+ })
86
+ ```
87
+
73
88
  ## How to install a widget
74
89
 
75
90
  Install a Dashboard widget as you would any npm package.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/dashboard",
3
- "version": "3.1.2",
3
+ "version": "3.1.4",
4
4
  "description": "Tool for rendering dashboard widgets",
5
5
  "keywords": [
6
6
  "sanity",