@loomcycle/explorer 0.18.0 → 0.20.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/dist/components/AnnotationCard.d.ts +63 -0
- package/dist/components/Breadcrumb.d.ts +11 -0
- package/dist/components/ChunkEditorModal.d.ts +1 -0
- package/dist/components/CreateMenu.d.ts +6 -0
- package/dist/components/DocumentChunkTree.d.ts +3 -1
- package/dist/components/DocumentViewerBody.d.ts +8 -1
- package/dist/components/HistoryModal.d.ts +6 -1
- package/dist/components/MoreMenu.d.ts +15 -0
- package/dist/components/Pane.d.ts +19 -0
- package/dist/components/PathTree.d.ts +13 -0
- package/dist/components/Splitter.d.ts +4 -1
- package/dist/components/TreeRow.d.ts +34 -0
- package/dist/index.cjs +5 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4101 -2666
- package/dist/index.js.map +1 -1
- package/dist/lib/colorScheme.d.ts +7 -2
- package/dist/lib/dataLayer.d.ts +9 -0
- package/dist/{components/DownloadMenu.d.ts → lib/documentDownload.d.ts} +6 -16
- package/dist/lib/download.d.ts +1 -1
- package/dist/lib/lazyPathTree.d.ts +9 -2
- package/dist/lib/persisted.d.ts +6 -0
- package/dist/lib/remarkBareBreak.d.ts +7 -0
- package/dist/lib/treeFind.d.ts +26 -0
- package/dist/lib/useNarrow.d.ts +2 -0
- package/dist/styles.css +992 -387
- package/dist/types.d.ts +10 -1
- package/package.json +2 -1
- package/dist/components/IdCopy.d.ts +0 -7
- package/dist/components/StackSplitter.d.ts +0 -17
- package/dist/lib/chunkAncestry.d.ts +0 -2
package/dist/types.d.ts
CHANGED
|
@@ -10,6 +10,9 @@ export interface PathEntry {
|
|
|
10
10
|
full_path: string;
|
|
11
11
|
resource_ref?: unknown;
|
|
12
12
|
has_children?: boolean;
|
|
13
|
+
documents?: number;
|
|
14
|
+
documents_capped?: boolean;
|
|
15
|
+
matched?: boolean;
|
|
13
16
|
}
|
|
14
17
|
export interface ChunkRow {
|
|
15
18
|
id: string;
|
|
@@ -20,6 +23,12 @@ export interface ChunkRow {
|
|
|
20
23
|
type?: string;
|
|
21
24
|
status?: string;
|
|
22
25
|
revision: number;
|
|
26
|
+
summary?: {
|
|
27
|
+
level?: string;
|
|
28
|
+
brief?: string;
|
|
29
|
+
abstract?: string;
|
|
30
|
+
stale?: boolean;
|
|
31
|
+
};
|
|
23
32
|
}
|
|
24
33
|
export interface ChunkDetail extends ChunkRow {
|
|
25
34
|
body: string;
|
|
@@ -211,7 +220,7 @@ export interface ClassificationRecord {
|
|
|
211
220
|
proposed_tags?: string[];
|
|
212
221
|
statements?: string[];
|
|
213
222
|
}
|
|
214
|
-
export type AnnotationLevel = "branch" | "document" | "path";
|
|
223
|
+
export type AnnotationLevel = "branch" | "document" | "path" | "scheme" | "concept" | "class";
|
|
215
224
|
export interface Annotation {
|
|
216
225
|
chunk_id: string;
|
|
217
226
|
document_id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loomcycle/explorer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Embeddable React Path VFS + chunked-graph Document browser for the loomcycle agentic runtime (RFC AL / AK) — a themeable, standalone package: a dirent tree with folder/document CRUD and a chunk-tree Document viewer/editor.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"test:watch": "vitest"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
+
"@loomcycle/code-editor": "^0.1.1",
|
|
53
54
|
"react-markdown": "^10.1.0",
|
|
54
55
|
"remark-gfm": "^4.0.1"
|
|
55
56
|
},
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
export interface StackSplitterProps {
|
|
3
|
-
children: [ReactNode, ReactNode];
|
|
4
|
-
/** Initial bottom-pane height in px, until the reader drags or a remembered
|
|
5
|
-
* value is restored. */
|
|
6
|
-
defaultBottomHeight?: number;
|
|
7
|
-
/** Neither pane is dragged smaller than these. */
|
|
8
|
-
minTopHeight?: number;
|
|
9
|
-
minBottomHeight?: number;
|
|
10
|
-
/** localStorage key; omit for a split that resets on every mount. */
|
|
11
|
-
storageKey?: string;
|
|
12
|
-
className?: string;
|
|
13
|
-
}
|
|
14
|
-
/** clampBottom keeps a dragged bottom height inside a container of `total` px:
|
|
15
|
-
* at least minBottom, and never so tall that the top pane drops below minTop. */
|
|
16
|
-
export declare function clampBottom(want: number, total: number, minTop: number, minBottom: number): number;
|
|
17
|
-
export default function StackSplitter({ children, defaultBottomHeight, minTopHeight, minBottomHeight, storageKey, className, }: StackSplitterProps): import("react").JSX.Element;
|