@loomcycle/explorer 0.3.0 → 0.4.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.
@@ -36,7 +36,9 @@ export interface ExplorerDataLayer {
36
36
  chunks: ChunkRow[];
37
37
  }>;
38
38
  documentGetChunk(id: string, scope: DocScope, browse?: BrowseScope): Promise<ChunkDetail>;
39
- documentCreateChunk(documentId: string, parentId: string, patch: ChunkPatch, scope: DocScope, browse?: BrowseScope): Promise<ChunkDetail>;
39
+ documentCreateChunk(documentId: string, parentId: string, patch: ChunkPatch, scope: DocScope, browse?: BrowseScope, afterId?: string): Promise<ChunkDetail>;
40
+ documentReorderChunk(id: string, direction: "up" | "down", scope: DocScope, browse?: BrowseScope): Promise<unknown>;
41
+ documentDeleteChunk(id: string, scope: DocScope, browse?: BrowseScope): Promise<unknown>;
40
42
  documentSetAsset(chunkId: string, mediaType: string, dataBase64: string, filename: string | undefined, scope: DocScope, browse?: BrowseScope): Promise<ChunkDetail>;
41
43
  documentGetEdges(documentId: string, scope: DocScope, browse?: BrowseScope): Promise<{
42
44
  edges: DocEdge[];
package/dist/styles.css CHANGED
@@ -655,6 +655,15 @@
655
655
  border-radius: 4px;
656
656
  cursor: pointer;
657
657
  }
658
+ /* RFC BP — up/down reorder + delete controls. */
659
+ .loomcycle-explorer .doc-content-controls > button:disabled {
660
+ opacity: 0.4;
661
+ cursor: default;
662
+ }
663
+ .loomcycle-explorer .doc-content-controls > button.danger {
664
+ color: var(--danger);
665
+ border-color: var(--danger);
666
+ }
658
667
  /* The selected-chunk view (chunk body OR assembled markdown) scrolls
659
668
  independently of the fixed head — both modes can be long. */
660
669
  .loomcycle-explorer .doc-content-body {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loomcycle/explorer",
3
- "version": "0.3.0",
3
+ "version": "0.4.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",