sanity-plugin-taxonomy-manager 3.0.2 → 3.1.0-beta.0

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/index.d.ts CHANGED
@@ -6,8 +6,8 @@ import {Plugin as Plugin_2} from 'sanity'
6
6
  * Document Branch Filter
7
7
  *
8
8
  * A pluggable Function for Filtering to a Top Concept Branch within a SKOS Concept Scheme
9
- * @param options.schemeId The unique six character concept identifier for the Concept Scheme to which you wish to filter.
10
- * @param options.branchId The unique six character concept identifier of a branch. Child concepts will be returned.
9
+ * @param schemeId - The unique six character concept identifier for the Concept Scheme to which you wish to filter.
10
+ * @param branchId - The unique six character concept identifier of a branch. Child concepts will be returned.
11
11
  * @returns A reference type filter for the child concepts of the designated branch in the selected Concept Scheme
12
12
  */
13
13
  export declare function branchFilter(options: BranchOptions): BranchFilterResult
@@ -22,6 +22,8 @@ declare type BranchOptions = {
22
22
  branchId: string
23
23
  }
24
24
 
25
+ export declare function HierarchyInput(props: any): JSX.Element
26
+
25
27
  declare interface Options {
26
28
  baseUri?: string
27
29
  }
@@ -30,7 +32,7 @@ declare interface Options {
30
32
  * Document Scheme Filter
31
33
  *
32
34
  * Pluggable Function for Filtering to a Single SKOS Concept Scheme
33
- * @param options.schemeId The unique six character concept identifier for the Concept Scheme to which you wish to filter.
35
+ * @param schemeId - The unique six character concept identifier for the Concept Scheme to which you wish to filter.
34
36
  * @returns A reference type filter for Concepts and Top Concepts in the selected Concept Scheme
35
37
  */
36
38
  export declare function schemeFilter(options: SchemeOptions): SchemeFilterResult
@@ -46,13 +48,30 @@ declare type SchemeOptions = {
46
48
 
47
49
  /**
48
50
  * Defines a Sanity plugin for managing taxonomies.
49
- * @param options - Optional configuration options for the plugin.
50
- * @param options.baseUri - The base URI to use for SKOS concepts and concept schemes.
51
51
  * baseURI should follow an IANA http/s scheme and should terminate with either a / or #.
52
52
  * @returns A Sanity plugin object.
53
53
  */
54
54
  export declare const taxonomyManager: Plugin_2<Options | undefined>
55
55
 
56
- export declare const TreeView: ({document}: {document: any}) => JSX.Element
56
+ /**
57
+ * Tree View Component Wrapper
58
+ * This is the view component for the hierarchy tree. It is the
59
+ * top level of concept scheme views and is passed into Desk
60
+ * structure to render the primary view for taxonomy documents.
61
+ * TODO: Extend SanityDocument type to include display properties.
62
+ * What is the type of the document object returned by the Desk
63
+ * structure?
64
+ */
65
+ export declare const TreeView: ({
66
+ document,
67
+ branchId,
68
+ selectConcept,
69
+ inputComponent,
70
+ }: {
71
+ document: any
72
+ branchId: string
73
+ selectConcept: any
74
+ inputComponent?: boolean | undefined
75
+ }) => JSX.Element
57
76
 
58
77
  export {}