@floegence/floe-webapp-core 0.35.34 → 0.35.35

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.
@@ -117,6 +117,25 @@ export interface FilterMatchInfo {
117
117
  /** Matched character indices in the name */
118
118
  matchedIndices: number[];
119
119
  }
120
+ /**
121
+ * Strategy for handling an active filter before revealing an item.
122
+ */
123
+ export type FileBrowserRevealClearFilter = 'never' | 'if-needed';
124
+ /**
125
+ * Programmatic reveal request for a specific file-browser item.
126
+ */
127
+ export interface FileBrowserRevealRequest {
128
+ /** Unique request id so repeated reveals for the same item can still be consumed distinctly. */
129
+ requestId: string;
130
+ /** Target item id (selection uses file-browser ids, not paths). */
131
+ targetId: string;
132
+ /** Target item path for diagnostics and higher-level routing. */
133
+ targetPath: string;
134
+ /** Parent directory path that should contain the target item. */
135
+ parentPath: string;
136
+ /** Whether core may clear the active filter if the target is currently filtered out. */
137
+ clearFilter: FileBrowserRevealClearFilter;
138
+ }
120
139
  /**
121
140
  * Optimistic update operation types
122
141
  */
@@ -228,6 +247,8 @@ export interface FileBrowserContextValue {
228
247
  getFilterMatchForId: (id: string) => FilterMatchInfo | null;
229
248
  /** Selected items in the current view, ordered by currentFiles order */
230
249
  getSelectedItemsList: () => FileItem[];
250
+ revealRequest: Accessor<FileBrowserRevealRequest | null>;
251
+ consumeRevealRequest: (requestId: string) => void;
231
252
  sidebarCollapsed: Accessor<boolean>;
232
253
  toggleSidebar: () => void;
233
254
  sidebarWidth: Accessor<number>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floegence/floe-webapp-core",
3
- "version": "0.35.34",
3
+ "version": "0.35.35",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",