sanity-plugin-workspace-home 1.0.0 → 1.1.1

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 Sanity
3
+ Copyright (c) 2024 Sanity
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  This plugin adds a "Home" Tool to your Studio with a listing of all available workspaces. Useful as the first page of your Studio to quickly navigate to the workspace of your choice.
6
6
 
7
- ![plugin inside sanity studio showing workspaces](https://user-images.githubusercontent.com/9684022/226922805-490922c0-8b85-4d06-9770-ff81e0a33837.png)
7
+ ![plugin inside sanity studio showing workspaces](https://user-images.githubusercontent.com/9684022/227136123-ec1908dd-fc60-4832-9079-6f5ed5892923.png)
8
8
 
9
9
  ## Installation
10
10
 
@@ -0,0 +1,16 @@
1
+ import {Plugin as Plugin_2} from 'sanity'
2
+ import {WorkspaceOptions} from 'sanity'
3
+
4
+ export declare const workspaceHome: Plugin_2<void>
5
+
6
+ export declare const workspaceHomeConfig: ({
7
+ projectId,
8
+ dataset,
9
+ }: WorkspaceHomeConfigProps) => WorkspaceOptions
10
+
11
+ declare type WorkspaceHomeConfigProps = {
12
+ projectId: string
13
+ dataset: string
14
+ }
15
+
16
+ export {}
package/dist/index.d.ts CHANGED
@@ -1,9 +1,12 @@
1
- import {Config} from 'sanity'
2
1
  import {Plugin as Plugin_2} from 'sanity'
2
+ import {WorkspaceOptions} from 'sanity'
3
3
 
4
4
  export declare const workspaceHome: Plugin_2<void>
5
5
 
6
- export declare const workspaceHomeConfig: ({projectId, dataset}: WorkspaceHomeConfigProps) => Config
6
+ export declare const workspaceHomeConfig: ({
7
+ projectId,
8
+ dataset,
9
+ }: WorkspaceHomeConfigProps) => WorkspaceOptions
7
10
 
8
11
  declare type WorkspaceHomeConfigProps = {
9
12
  projectId: string