react-reason-editor-sidebar 0.1.122 → 0.1.124

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.
@@ -14,6 +14,7 @@ import type { TocEntry } from "../../app-types/toc";
14
14
  import type { ActiveHeadingEditorHandle } from "../../search/useActiveHeading";
15
15
  import type { DocumentTreeHandle } from "../../file-tree/filetree";
16
16
  import type { OutlineViewHandle } from "../../search/OutlineView";
17
+ import type { AnyFileSource } from "../../app-types/fileSource";
17
18
  /** A single togglable panel kind that can appear in the left or right sidebar. */
18
19
  export type SidebarPanelType = "ai" | "files" | "outline" | "openTabs" | "related";
19
20
  /** The kind of resource a tab in the "Open Tabs" panel represents. */
@@ -224,4 +225,14 @@ export interface SidebarContentProps {
224
225
  deletedDocs?: Document[];
225
226
  /** Restores a soft-deleted document by ID (from the trash menu). */
226
227
  onRestore?: (id: string) => void;
228
+ /** Available storage sources for the "Files" panel header switcher. */
229
+ sources?: AnyFileSource[];
230
+ /** The currently active storage source. */
231
+ activeSource?: AnyFileSource | null;
232
+ /** ID of the currently active storage source. */
233
+ activeFileSourceId?: string;
234
+ /** Selects a storage source by ID. */
235
+ onSourceSelect?: (sourceId: string) => void;
236
+ /** Called when the storage source changes; also gates the header switcher. */
237
+ onFileSourceChange?: (sourceId: string) => void;
227
238
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-reason-editor-sidebar",
3
3
  "description": "The REASON editor's file/folder sidebar, open-tabs panel, and split-view menu as a standalone package built on react-reason-editor",
4
- "version": "0.1.122",
4
+ "version": "0.1.124",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/OpenSourceAGI/qwksearch-research-agent.git",