@teamflojo/floimg-studio-ui 0.4.4 → 0.5.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.
- package/dist/components/CommandPalette.d.ts +10 -0
- package/dist/components/ConfirmationDialog.d.ts +24 -0
- package/dist/components/KeyBadge.d.ts +31 -0
- package/dist/components/KeyboardSettings.d.ts +10 -0
- package/dist/components/KeyboardShortcutsModal.d.ts +5 -0
- package/dist/components/NodeInspector.d.ts +1 -1
- package/dist/components/ShortcutRecorder.d.ts +18 -0
- package/dist/editor/nodeTypes.d.ts +7 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +3941 -1945
- package/dist/index.js.map +1 -1
- package/dist/lib/keyboard/conflicts.d.ts +27 -0
- package/dist/lib/keyboard/conflicts.test.d.ts +4 -0
- package/dist/lib/keyboard/index.d.ts +9 -0
- package/dist/lib/keyboard/platformUtils.d.ts +27 -0
- package/dist/lib/keyboard/platformUtils.test.d.ts +4 -0
- package/dist/lib/keyboard/shortcuts.d.ts +12 -0
- package/dist/lib/keyboard/shortcuts.test.d.ts +4 -0
- package/dist/lib/keyboard/types.d.ts +77 -0
- package/dist/lib/keyboard/useKeyboardShortcuts.d.ts +33 -0
- package/dist/lib/useFocusTrap.d.ts +5 -0
- package/dist/stores/settingsStore.d.ts +30 -0
- package/dist/stores/workflowStore.d.ts +2 -2
- package/dist/styles.css +1 -1
- package/dist/utils/codeGenerator.d.ts +2 -2
- package/package.json +16 -6
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CommandPalette - Raycast/Linear-style command palette
|
|
3
|
+
* Triggered by Cmd+K for quick action discovery and execution
|
|
4
|
+
*/
|
|
5
|
+
interface CommandPaletteProps {
|
|
6
|
+
/** Callback to toggle AI Chat (since it's local state in App) */
|
|
7
|
+
onToggleAIChat?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function CommandPalette({ onToggleAIChat }: CommandPaletteProps): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ConfirmationDialog - Accessible confirmation modal
|
|
3
|
+
* Used for destructive actions like creating a new workflow with unsaved changes
|
|
4
|
+
*/
|
|
5
|
+
interface ConfirmationDialogProps {
|
|
6
|
+
/** Whether the dialog is open */
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
/** Title of the dialog */
|
|
9
|
+
title: string;
|
|
10
|
+
/** Message/description */
|
|
11
|
+
message: string;
|
|
12
|
+
/** Confirm button text */
|
|
13
|
+
confirmText?: string;
|
|
14
|
+
/** Cancel button text */
|
|
15
|
+
cancelText?: string;
|
|
16
|
+
/** Callback when confirmed */
|
|
17
|
+
onConfirm: () => void;
|
|
18
|
+
/** Callback when cancelled */
|
|
19
|
+
onCancel: () => void;
|
|
20
|
+
/** Whether the action is destructive (changes button styling) */
|
|
21
|
+
destructive?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare function ConfirmationDialog({ isOpen, title, message, confirmText, cancelText, onConfirm, onCancel, destructive, }: ConfirmationDialogProps): import("react/jsx-runtime").JSX.Element | null;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KeyBadge - Displays keyboard shortcut keys as styled badges
|
|
3
|
+
* Platform-aware (shows ⌘ on Mac, Ctrl on Windows)
|
|
4
|
+
*/
|
|
5
|
+
interface KeyBadgeProps {
|
|
6
|
+
/** Shortcut binding string (e.g., 'mod+s', 'mod+shift+k') */
|
|
7
|
+
binding: string | null;
|
|
8
|
+
/** Optional additional className */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Size variant */
|
|
11
|
+
size?: "sm" | "md";
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Displays a keyboard shortcut as styled key badges
|
|
15
|
+
* Automatically converts platform-agnostic bindings to platform-specific display
|
|
16
|
+
*/
|
|
17
|
+
export declare function KeyBadge({ binding, className, size }: KeyBadgeProps): import("react/jsx-runtime").JSX.Element | null;
|
|
18
|
+
/**
|
|
19
|
+
* Displays a shortcut inline with action text
|
|
20
|
+
* Example: "Save Workflow" with "⌘S" badge
|
|
21
|
+
*/
|
|
22
|
+
interface ShortcutLabelProps {
|
|
23
|
+
/** Action name */
|
|
24
|
+
label: string;
|
|
25
|
+
/** Shortcut binding */
|
|
26
|
+
binding: string | null;
|
|
27
|
+
/** Optional additional className for the container */
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare function ShortcutLabel({ label, binding, className }: ShortcutLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KeyboardSettings - Customization UI for keyboard shortcuts
|
|
3
|
+
* Allows users to view and remap shortcuts
|
|
4
|
+
*/
|
|
5
|
+
interface KeyboardSettingsProps {
|
|
6
|
+
/** Optional className */
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function KeyboardSettings({ className }: KeyboardSettingsProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function NodeInspector(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function NodeInspector(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ShortcutRecorder - VS Code-style keyboard shortcut recording widget
|
|
3
|
+
* Click to start recording, press keys to set, Escape to cancel
|
|
4
|
+
*/
|
|
5
|
+
interface ShortcutRecorderProps {
|
|
6
|
+
/** Current binding value */
|
|
7
|
+
value: string | null;
|
|
8
|
+
/** Callback when binding changes */
|
|
9
|
+
onChange: (binding: string | null) => void;
|
|
10
|
+
/** Callback to check for conflicts */
|
|
11
|
+
onConflictCheck?: (binding: string) => string | null;
|
|
12
|
+
/** Whether the recorder is disabled */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Optional additional className */
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function ShortcutRecorder({ value, onChange, onConflictCheck, disabled, className, }: ShortcutRecorderProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NodeProps } from 'reactflow';
|
|
2
|
-
import { GeneratorNodeData, TransformNodeData, SaveNodeData, InputNodeData, VisionNodeData, TextNodeData } from '@teamflojo/floimg-studio-shared';
|
|
2
|
+
import { GeneratorNodeData, TransformNodeData, SaveNodeData, InputNodeData, VisionNodeData, TextNodeData, FanOutNodeData, CollectNodeData, RouterNodeData } from '@teamflojo/floimg-studio-shared';
|
|
3
3
|
|
|
4
4
|
export declare const GeneratorNode: import('react').NamedExoticComponent<NodeProps<GeneratorNodeData>>;
|
|
5
5
|
export declare const TransformNode: import('react').NamedExoticComponent<NodeProps<TransformNodeData>>;
|
|
@@ -7,6 +7,9 @@ export declare const SaveNode: import('react').NamedExoticComponent<NodeProps<Sa
|
|
|
7
7
|
export declare const InputNode: import('react').NamedExoticComponent<NodeProps<InputNodeData>>;
|
|
8
8
|
export declare const VisionNode: import('react').NamedExoticComponent<NodeProps<VisionNodeData>>;
|
|
9
9
|
export declare const TextNode: import('react').NamedExoticComponent<NodeProps<TextNodeData>>;
|
|
10
|
+
export declare const FanOutNode: import('react').NamedExoticComponent<NodeProps<FanOutNodeData>>;
|
|
11
|
+
export declare const CollectNode: import('react').NamedExoticComponent<NodeProps<CollectNodeData>>;
|
|
12
|
+
export declare const RouterNode: import('react').NamedExoticComponent<NodeProps<RouterNodeData>>;
|
|
10
13
|
export declare const nodeTypes: {
|
|
11
14
|
generator: import('react').NamedExoticComponent<NodeProps<GeneratorNodeData>>;
|
|
12
15
|
transform: import('react').NamedExoticComponent<NodeProps<TransformNodeData>>;
|
|
@@ -14,4 +17,7 @@ export declare const nodeTypes: {
|
|
|
14
17
|
input: import('react').NamedExoticComponent<NodeProps<InputNodeData>>;
|
|
15
18
|
vision: import('react').NamedExoticComponent<NodeProps<VisionNodeData>>;
|
|
16
19
|
text: import('react').NamedExoticComponent<NodeProps<TextNodeData>>;
|
|
20
|
+
fanout: import('react').NamedExoticComponent<NodeProps<FanOutNodeData>>;
|
|
21
|
+
collect: import('react').NamedExoticComponent<NodeProps<CollectNodeData>>;
|
|
22
|
+
router: import('react').NamedExoticComponent<NodeProps<RouterNodeData>>;
|
|
17
23
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,12 @@ export { WorkflowLibrary } from './components/WorkflowLibrary';
|
|
|
10
10
|
export { AISettings } from './components/AISettings';
|
|
11
11
|
export { AIChat } from './components/AIChat';
|
|
12
12
|
export { UploadGallery } from './components/UploadGallery';
|
|
13
|
+
export { CommandPalette } from './components/CommandPalette';
|
|
14
|
+
export { KeyboardShortcutsModal } from './components/KeyboardShortcutsModal';
|
|
15
|
+
export { useKeyboardShortcuts } from './lib/keyboard/useKeyboardShortcuts';
|
|
16
|
+
export { SHORTCUT_DEFINITIONS, CATEGORY_NAMES } from './lib/keyboard/shortcuts';
|
|
17
|
+
export type * from './lib/keyboard/types';
|
|
13
18
|
export { useWorkflowStore } from './stores/workflowStore';
|
|
19
|
+
export { useSettingsStore } from './stores/settingsStore';
|
|
14
20
|
export { coreTemplates as templates, getCoreCategories as getCategories, getCoreTemplatesByCategory as getTemplatesByCategory, getCoreTemplateById as getTemplateById, searchCoreTemplates as searchTemplates, resolveTemplate, type Template, } from '@teamflojo/floimg-templates';
|
|
15
21
|
export type * from '@teamflojo/floimg-studio-shared';
|