brainsmatics 1.1.88 → 1.1.90

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.
@@ -33,6 +33,9 @@ interface AtlasProps {
33
33
  }[];
34
34
  selectedDatasetValue?: string;
35
35
  onDatasetChange?: (value: string) => void;
36
+ pluginTreeDatas?: dataType[];
37
+ pluginRegionData?: string;
38
+ pluginRegionFiles?: string[];
36
39
  fbxCenters: React.MutableRefObject<any>;
37
40
  }
38
41
  declare const Atlas: React.FC<AtlasProps>;
@@ -78,6 +78,15 @@ interface SideBarProps {
78
78
  setFormshow?: React.Dispatch<React.SetStateAction<boolean>>;
79
79
  formshow?: boolean;
80
80
  urlRef: React.MutableRefObject<URL>;
81
+ datasetOptions?: {
82
+ label: string;
83
+ value: string;
84
+ }[];
85
+ selectedDatasetValue?: string;
86
+ onDatasetChange?: (value: string) => void;
87
+ pluginTreeDatas?: dataType[];
88
+ pluginRegionData?: string;
89
+ pluginRegionFiles?: string[];
81
90
  }
82
91
  export declare let sphereflag: boolean;
83
92
  declare const AtlasSideBar: React.FC<SideBarProps>;
@@ -8,6 +8,7 @@ interface UserUploadProps {
8
8
  }
9
9
  export interface UserUploadHandle {
10
10
  openFolder: (folderKey: string) => void;
11
+ clear: () => void;
11
12
  refresh: () => Promise<void>;
12
13
  getSelectedFolder: () => string;
13
14
  getApiKey: () => string;
@@ -11,7 +11,7 @@ interface DatasetRowProps {
11
11
  onOpenReceipts: (item: IndexedFileItem) => void;
12
12
  onCloneTag: (id: string, index: number, targetFolder: string) => void;
13
13
  onUpdateDisclosure?: (folderKey: string, level: string) => void;
14
- onSwitchChange: (index: number, value: string) => void;
14
+ onSwitchChange: (index: number, value: string, item?: IndexedFileItem) => void;
15
15
  }
16
16
  export declare const DatasetRow: React.FC<DatasetRowProps>;
17
17
  export {};
@@ -3,6 +3,7 @@ interface ReceiptDrawerProps {
3
3
  open: boolean;
4
4
  onClose: () => void;
5
5
  datasetName?: string;
6
+ ownerPeerId?: string;
6
7
  refreshToken?: number;
7
8
  }
8
9
  export declare const ReceiptDrawer: React.FC<ReceiptDrawerProps>;
@@ -7,9 +7,9 @@ export declare const fetchFiles: (peerID: string) => Promise<FileItem[]>;
7
7
  export declare const cloneDataset: (peerID: string, targetFolder: string) => Promise<any>;
8
8
  export declare const checkFolderState: () => Promise<Folderupdate>;
9
9
  export declare const executeAggregateQuery: (peerID: string, dataset: string, region: string, version?: number, signal?: AbortSignal) => Promise<QueryResultData>;
10
- export declare const executeCoProjection: (params: URLSearchParams, signal?: AbortSignal) => Promise<CoProjectionRecord[]>;
10
+ export declare const executeCoProjection: (peerID: string, dataset: string, params: URLSearchParams, signal?: AbortSignal) => Promise<CoProjectionRecord[]>;
11
11
  export declare const exportCoProjectionCSV: (params: URLSearchParams) => Promise<string>;
12
- export declare const executeDistributedConnectivity: (dataset: string, regions: string[], peers: string[], localPeerID?: string, signal?: AbortSignal) => Promise<{
12
+ export declare const executeDistributedConnectivity: (dataset: string, regions: string[], peers: string[], signal?: AbortSignal) => Promise<{
13
13
  code: number;
14
14
  message?: string;
15
15
  data?: DistributedConnectivityRecord[];
@@ -18,7 +18,9 @@ export declare const executeDistributedConnectivity: (dataset: string, regions:
18
18
  export declare const fetchAccessReceipts: (filter?: {
19
19
  dataset?: string;
20
20
  peer_id?: string;
21
+ owner_peer_id?: string;
21
22
  query_type?: string;
23
+ include_global?: boolean;
22
24
  limit?: number;
23
25
  }, signal?: AbortSignal) => Promise<AccessReceipt[]>;
24
26
  export interface MappingCapabilities {
@@ -0,0 +1,42 @@
1
+ export interface BrainRegionNode {
2
+ name?: string;
3
+ fullname?: string;
4
+ cname?: string;
5
+ color?: string;
6
+ children?: BrainRegionNode[];
7
+ [key: string]: unknown;
8
+ }
9
+ export interface RegionOption {
10
+ value: string;
11
+ label: string;
12
+ fullname?: string;
13
+ cname?: string;
14
+ }
15
+ export declare const DEFAULT_FALLBACK_REGIONS: readonly string[];
16
+ /**
17
+ * Recursively flattens an ontology tree (e.g. nucleusColour.json) into a flat list of RegionOptions.
18
+ */
19
+ export declare const flattenOntologyTree: (treeData: unknown) => RegionOption[];
20
+ /**
21
+ * Manually set or clear cached ontology tree options (useful for testing or preloading).
22
+ */
23
+ export declare const setCachedOntologyTree: (treeData: unknown | null) => void;
24
+ export declare const getCachedOntologyTree: () => RegionOption[] | null;
25
+ /**
26
+ * Loads and caches nucleusColour.json tree options from standard static endpoints.
27
+ */
28
+ export declare const loadOntologyRegions: () => Promise<RegionOption[]>;
29
+ /**
30
+ * Filter predicate for Select / AutoComplete searching across acronym (value) and full name (label).
31
+ */
32
+ export declare const filterRegionOption: (input: string, option?: RegionOption) => boolean;
33
+ /**
34
+ * Hook to provide flat brain region options merged from:
35
+ * 1. nucleusColour.json ontology tree
36
+ * 2. dataset-specific brain_regions
37
+ * 3. fallback standard brain regions
38
+ * 4. any currently selected region value
39
+ */
40
+ export declare const useBrainRegionOptions: (item?: {
41
+ brain_regions?: unknown;
42
+ } | null, extraSelected?: string | string[] | null) => RegionOption[];
@@ -25,6 +25,7 @@ export interface FileItem {
25
25
  update: boolean;
26
26
  load: boolean;
27
27
  redDot?: boolean;
28
+ kind?: string;
28
29
  disclosure_level?: DisclosureLevel;
29
30
  capabilities?: DatasetCapabilities;
30
31
  disclosure_managed?: boolean;
@@ -36,6 +37,8 @@ export interface FileItem {
36
37
  metadata_status?: MetadataStatus;
37
38
  metadata_error?: string;
38
39
  metadata_source?: string;
40
+ parsed_data_available?: boolean;
41
+ parse_status?: 'never' | 'parsed' | 'stale' | 'missing' | string;
39
42
  }
40
43
  export type IndexedFileItem = FileItem & {
41
44
  originalIndex: number;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-17150fab.js"),t=require("./basedecoder-0503cc54.js");require("react");require("react-dom");class d extends t.BaseDecoder{decodeBlock(e){return r.inflate_1(new Uint8Array(e)).buffer}}exports.default=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-b2c5b5aa.js"),t=require("./basedecoder-0503cc54.js");require("react");require("react-dom");class d extends t.BaseDecoder{decodeBlock(e){return r.inflate_1(new Uint8Array(e)).buffer}}exports.default=d;
@@ -1,4 +1,4 @@
1
- import { i as r } from "./index-599009d2.mjs";
1
+ import { i as r } from "./index-6a055b8b.mjs";
2
2
  import { B as o } from "./basedecoder-11034ec6.mjs";
3
3
  import "react";
4
4
  import "react-dom";