@sanity/hierarchical-document-list
4.0.04.0.1
dist/index.d.ts~
dist/index.d.tsModified+10−3
Index: package/dist/index.d.ts
===================================================================
--- package/dist/index.d.ts
+++ package/dist/index.d.ts
@@ -1,4 +1,5 @@
+import "@sanity/ui/styles.css";
import { ArraySchemaType } from "sanity";
import { FC } from "react";
import "@nosferatu500/react-sortable-tree";
declare const INTERNAL_NODE_TYPE: string;
@@ -180,12 +181,18 @@
creatableTypes?: string[];
}
declare function createStructureHierarchy(props: TreeProps): any;
declare const _default: {
- type: "document";
name: "hierarchy.tree";
-} & Omit<import("sanity").DocumentDefinition, "preview"> & {
- preview?: import("sanity").PreviewConfig<Record<string, string>, Record<never, any>> | undefined;
+ title: string;
+ type: "document";
+ liveEdit: true;
+ fields: {
+ name: string;
+ title: string;
+ type: "string";
+ hidden: true;
+ }[];
};
interface TreeItemWithChildren extends StoredTreeItem {
[key: string]: unknown;
children?: TreeItemWithChildren[];