@sanity/workbench-cli 2.22.0 → 2.22.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/dist/_exports/index.d.ts
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import { A as ViewDeclaration, B as defineWebWorker, C as DockGroup, D as TileViewDeclaration, E as TileSize, F as WindowViewDeclaration, L as defineAssetSourceView, M as WEB_WORKER_CONTRACT_VERSION, N as WebWorkerDeclaration, O as ViewComponent, P as WebWorkerType, R as definePanelView, S as DefineWindowViewInput, T as ServiceType, V as defineWindowView, a as DefineMediaLibraryInput, b as DefineTileViewInput, c as WorkbenchApp, d as defineDashboard, f as isWorkbenchApp, g as AssetSourceViewDeclaration, h as unstable_defineMediaLibrary, i as DefineDashboardInput, j as ViewSurface, k as ViewComponentBaseProps, l as WorkbenchConfig, m as resolveAppTitle, n as DefineAppInput, o as MediaLibraryConfig, p as isWorkbenchConfig, r as DefineAppResult, s as MediaLibraryField, t as DashboardConfig, u as defineApplication, v as DefineAssetSourceViewInput, w as PanelViewDeclaration, x as DefineWebWorkerInput, y as DefinePanelViewInput, z as defineTileView } from "./defineApp-DUi9ZfpT.js";
|
|
2
|
-
import {
|
|
2
|
+
import { DashboardApplication, View, WebWorkerProps, WebWorkerProps as WebWorkerProps$1 } from "@sanity/sdk/dashboard";
|
|
3
3
|
import { CurrentUser } from "@sanity/sdk";
|
|
4
4
|
import { AssetSourceComponentProps } from "@sanity/types";
|
|
5
5
|
interface ApplicationsContext {
|
|
6
|
-
applications: readonly
|
|
7
|
-
views: readonly View<{
|
|
8
|
-
includeApplication: false;
|
|
9
|
-
}>[];
|
|
10
|
-
})[];
|
|
6
|
+
applications: readonly DashboardApplication[];
|
|
11
7
|
currentUser: CurrentUser;
|
|
12
8
|
}
|
|
13
9
|
interface DefineDashboardConfigInput {
|
|
14
10
|
applications?: {
|
|
15
|
-
hidden?: (references: readonly
|
|
16
|
-
visible?: (references: readonly
|
|
11
|
+
hidden?: (references: readonly DashboardApplication['reference'][], context: ApplicationsContext) => readonly DashboardApplication['reference'][];
|
|
12
|
+
visible?: (references: readonly DashboardApplication['reference'][], context: ApplicationsContext) => readonly DashboardApplication['reference'][];
|
|
17
13
|
};
|
|
18
14
|
views?: (views: readonly View[], context: {
|
|
19
15
|
currentUser: CurrentUser;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/dashboardConfig.ts"],"sourcesContent":["import {type CurrentUser} from '@sanity/sdk'\nimport {type
|
|
1
|
+
{"version":3,"sources":["../src/dashboardConfig.ts"],"sourcesContent":["import {type CurrentUser} from '@sanity/sdk'\nimport {type DashboardApplication, type View} from '@sanity/sdk/dashboard'\n\ninterface ApplicationsContext {\n applications: readonly DashboardApplication[]\n currentUser: CurrentUser\n}\n\ninterface DefineDashboardConfigInput {\n applications?: {\n hidden?: (\n references: readonly DashboardApplication['reference'][],\n context: ApplicationsContext,\n ) => readonly DashboardApplication['reference'][]\n visible?: (\n references: readonly DashboardApplication['reference'][],\n context: ApplicationsContext,\n ) => readonly DashboardApplication['reference'][]\n }\n views?: (views: readonly View[], context: {currentUser: CurrentUser}) => readonly View[]\n}\n\nexport function defineDashboardConfig(\n config: DefineDashboardConfigInput,\n): DefineDashboardConfigInput {\n return config\n}\n"],"names":["defineDashboardConfig","config"],"mappings":"AAsBA,OAAO,SAASA,sBACdC,MAAkC;IAElC,OAAOA;AACT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/workbench-cli",
|
|
3
|
-
"version": "2.22.
|
|
3
|
+
"version": "2.22.1",
|
|
4
4
|
"description": "Internal implementation detail of the Sanity CLI's unstable workbench support. Not intended for direct use.",
|
|
5
5
|
"homepage": "https://github.com/sanity-io/cli",
|
|
6
6
|
"bugs": "https://github.com/sanity-io/cli/issues",
|
|
@@ -68,15 +68,15 @@
|
|
|
68
68
|
"@module-federation/runtime": "2.9.4",
|
|
69
69
|
"@module-federation/vite": "1.25.1",
|
|
70
70
|
"@sanity/cli-core": "^3.18.0",
|
|
71
|
-
"@sanity/sdk": "^3.
|
|
72
|
-
"@sanity/types": "^6.
|
|
73
|
-
"@vitejs/plugin-react": "^6.3.
|
|
71
|
+
"@sanity/sdk": "^3.18.0",
|
|
72
|
+
"@sanity/types": "^6.26.0",
|
|
73
|
+
"@vitejs/plugin-react": "^6.3.1",
|
|
74
74
|
"form-data": "^4.0.6",
|
|
75
75
|
"open": "^11.0.4",
|
|
76
76
|
"rxjs": "^7.8.2",
|
|
77
77
|
"semver": "^7.8.6",
|
|
78
78
|
"tar": "^7.5.23",
|
|
79
|
-
"vite": "^8.4.
|
|
79
|
+
"vite": "^8.4.1",
|
|
80
80
|
"zod": "^4.6.7"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"@sanity/pkg-utils": "^12.3.4",
|
|
88
88
|
"@swc/cli": "^0.8.2",
|
|
89
89
|
"@swc/core": "^1.16.22",
|
|
90
|
-
"@types/node": "^22.20.
|
|
91
|
-
"@types/react": "^19.3.
|
|
90
|
+
"@types/node": "^22.20.7",
|
|
91
|
+
"@types/react": "^19.3.3",
|
|
92
92
|
"@types/semver": "^7.8.0",
|
|
93
93
|
"@vitest/coverage-istanbul": "^5.1.1",
|
|
94
94
|
"jsdom": "^29.1.1",
|