sanity 6.1.0-next.35 → 6.1.0-next.37
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/lib/_chunks-es/structureTool.js +12 -17
- package/lib/_chunks-es/structureTool.js.map +1 -1
- package/lib/_chunks-es/version.js +2 -2
- package/lib/index.js +72 -59
- package/lib/index.js.map +1 -1
- package/package.json +11 -11
|
@@ -11469,27 +11469,22 @@ function getIntentState(intent, params, routerState, payload) {
|
|
|
11469
11469
|
payload
|
|
11470
11470
|
};
|
|
11471
11471
|
}
|
|
11472
|
-
function getPaneParams(intent, {
|
|
11473
|
-
template,
|
|
11474
|
-
version,
|
|
11475
|
-
inspect,
|
|
11476
|
-
comment,
|
|
11477
|
-
task,
|
|
11478
|
-
scheduledDraft
|
|
11479
|
-
}) {
|
|
11472
|
+
function getPaneParams(intent, params) {
|
|
11480
11473
|
switch (intent) {
|
|
11481
11474
|
case "create":
|
|
11482
11475
|
return {
|
|
11483
|
-
template,
|
|
11484
|
-
version
|
|
11485
|
-
};
|
|
11486
|
-
case "edit":
|
|
11487
|
-
return {
|
|
11488
|
-
inspect,
|
|
11489
|
-
comment,
|
|
11490
|
-
task,
|
|
11491
|
-
scheduledDraft
|
|
11476
|
+
template: params.template,
|
|
11477
|
+
version: params.version
|
|
11492
11478
|
};
|
|
11479
|
+
case "edit": {
|
|
11480
|
+
const {
|
|
11481
|
+
id: _id,
|
|
11482
|
+
type: _type,
|
|
11483
|
+
template: _template,
|
|
11484
|
+
...rest
|
|
11485
|
+
} = params;
|
|
11486
|
+
return rest;
|
|
11487
|
+
}
|
|
11493
11488
|
default:
|
|
11494
11489
|
return EMPTY_PARAMS$1;
|
|
11495
11490
|
}
|