sanity 5.2.0-next.68 → 5.2.0-next.69
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/package.js +1 -1
- package/lib/_chunks-es/pane.js +4 -3
- package/lib/_chunks-es/pane.js.map +1 -1
- package/lib/_chunks-es/version.js +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +13 -13
package/lib/_chunks-es/pane.js
CHANGED
|
@@ -12757,9 +12757,10 @@ const documentActions = [usePublishAction, useUnpublishAction, useDiscardChanges
|
|
|
12757
12757
|
};
|
|
12758
12758
|
});
|
|
12759
12759
|
function canHandleCreateIntent(params) {
|
|
12760
|
-
|
|
12761
|
-
|
|
12762
|
-
|
|
12760
|
+
if (!("type" in params))
|
|
12761
|
+
return !1;
|
|
12762
|
+
const handle = {};
|
|
12763
|
+
return "mode" in params && (handle.mode = params.mode === "structure"), "template" in params && (handle.template = !0), Object.keys(handle).length ? handle : !0;
|
|
12763
12764
|
}
|
|
12764
12765
|
function canHandleEditIntent(params) {
|
|
12765
12766
|
return "id" in params ? "mode" in params ? {
|