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 +1 -1
- package/README.md +1 -1
- package/dist/index.d.mts +16 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.esm.js +282 -6146
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +280 -6146
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +297 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +37 -30
- package/src/components/WorkspaceHome.tsx +71 -10
- package/src/components/WorkspacePreview.tsx +41 -12
- package/src/index.ts +2 -2
package/LICENSE
CHANGED
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
|
-

|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
package/dist/index.d.mts
ADDED
|
@@ -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: ({
|
|
6
|
+
export declare const workspaceHomeConfig: ({
|
|
7
|
+
projectId,
|
|
8
|
+
dataset,
|
|
9
|
+
}: WorkspaceHomeConfigProps) => WorkspaceOptions
|
|
7
10
|
|
|
8
11
|
declare type WorkspaceHomeConfigProps = {
|
|
9
12
|
projectId: string
|