@floegence/floe-webapp-core 0.45.0 → 0.46.1

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.
@@ -8,6 +8,8 @@ export interface WorkbenchFilterBarProps {
8
8
  widgets: readonly WorkbenchWidgetItem[];
9
9
  filters: Record<string, boolean>;
10
10
  mode?: WorkbenchInteractionMode;
11
+ /** Changes built-in Dock clicks without affecting drag-to-create behavior. */
12
+ activationMode?: WorkbenchDockItemActivationMode;
11
13
  /** Solo a single dock component in the supplied mode scope; soloing it again shows the full scope. */
12
14
  onSoloFilter: (id: string, scope: readonly string[]) => void;
13
15
  onSelectMode?: (mode: WorkbenchInteractionMode) => void;
@@ -22,14 +24,26 @@ export interface WorkbenchFilterBarProps {
22
24
  onCreateToolAt?: (tool: WorkbenchDockToolId, clientX: number, clientY: number, context?: WorkbenchDockDropContext) => void;
23
25
  /**
24
26
  * Handles a plain click on a dock item. Return true when the host consumed
25
- * the click and the default filter-solo behavior should be skipped.
27
+ * the click and the configured default activation should be skipped.
26
28
  */
27
29
  onItemClick?: (item: WorkbenchDockItemActivation) => boolean | void;
30
+ onFocusCycleItem?: (item: WorkbenchDockItemActivation) => void;
31
+ resolveItemPresentation?: (item: Pick<WorkbenchDockItemActivation, 'kind' | 'id'>) => WorkbenchDockItemPresentation;
32
+ onDockActivation?: (item: Readonly<{
33
+ kind: 'widget' | 'tool' | 'host' | 'external' | 'action' | 'mode';
34
+ id: string;
35
+ }>) => void;
28
36
  onDragPreviewChange?: (preview: WorkbenchDockDragPreview | null) => void;
29
37
  viewport?: WorkbenchViewport;
30
38
  onViewportCommit?: (viewport: WorkbenchViewport) => void;
31
39
  onViewportInteractionStart?: (kind: 'pan') => void;
32
40
  }
41
+ export type WorkbenchDockItemActivationMode = 'solo-filter' | 'focus-cycle';
42
+ export type WorkbenchDockItemPresentation = Readonly<{
43
+ count: number;
44
+ currentIndex: number | null;
45
+ active: boolean;
46
+ }>;
33
47
  export type WorkbenchDockAction = Readonly<{
34
48
  id: string;
35
49
  label: string;