feat(web): Outliner Data menu runs the desktop View operators

Desktop OUTLINER_MT_context_menu_view's Expand/Collapse All, Show Hierarchy
and Show One Level now run OUTLINER_OT_expanded_toggle, show_hierarchy and
show_one_level[open] on the native tree store through an
OUTLINER_VIEW_OPERATION editor-context action.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-12-01 05:19:07 +08:00
parent f73318acfa
commit 07f7c842b8
12 changed files with 155 additions and 14 deletions

View File

@@ -468,6 +468,7 @@ export type EditorContextEdit = { workspaceId: string; screenId: string } & (
| { action: 'OUTLINER_SET_DISPLAY_MODE'; areaId: string; displayMode: string }
| { action: 'OUTLINER_SET_FILTER'; areaId: string; filter: NativeOutlinerFilter }
| { action: 'OUTLINER_SET_SYNC_SELECT'; areaId: string; sync: boolean }
| { action: 'OUTLINER_VIEW_OPERATION'; areaId: string; operation: 'EXPANDED_TOGGLE' | 'SHOW_HIERARCHY' | 'SHOW_ONE_LEVEL' | 'HIDE_ONE_LEVEL' }
| { action: 'OUTLINER_SET_RESTRICTION'; areaId: string; rowId: string; column: keyof NativeOutlinerRestrict; value: boolean; extend: boolean; isolate: boolean }
| { action: 'OUTLINER_SET_RESTRICT_COLUMNS'; areaId: string; columns: NativeOutlinerRestrict }
| { action: "SET_EDITOR_TYPE"; areaId: string; editorType: string }