orquesta-embed 0.1.2 → 0.1.4
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/ContextMenu.d.ts +19 -0
- package/dist/components/OrquestaEmbed.d.ts +2 -0
- package/dist/components/Timeline.d.ts +3 -1
- package/dist/core/client.d.ts +4 -0
- package/dist/core/element-selector.d.ts +10 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/vanilla.js +1 -1
- package/dist/vanilla.min.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ElementContext } from '../core/config';
|
|
2
|
+
interface ContextMenuProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
position: {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
};
|
|
8
|
+
element: ElementContext | null;
|
|
9
|
+
agentOnline: boolean;
|
|
10
|
+
includeConsole: boolean;
|
|
11
|
+
includeNetwork: boolean;
|
|
12
|
+
onSubmit: (content: string) => void;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
onToggleConsole: () => void;
|
|
15
|
+
onToggleNetwork: () => void;
|
|
16
|
+
onOpenPanel: () => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function ContextMenu({ isOpen, position, element, agentOnline, includeConsole, includeNetwork, onSubmit, onClose, onToggleConsole, onToggleNetwork, onOpenPanel }: ContextMenuProps): import("react/jsx-runtime").JSX.Element | null;
|
|
19
|
+
export {};
|
|
@@ -3,6 +3,8 @@ import type { OrquestaEmbedConfig } from '../core/config';
|
|
|
3
3
|
interface OrquestaEmbedProps extends OrquestaEmbedConfig {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
enableGlobalRightClick?: boolean;
|
|
6
|
+
/** Enable demo mode with mock data (no connection required) */
|
|
7
|
+
demoMode?: boolean;
|
|
6
8
|
}
|
|
7
9
|
export declare function OrquestaEmbed(props: OrquestaEmbedProps): import("react/jsx-runtime").JSX.Element;
|
|
8
10
|
export {};
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import type { Prompt, Comment } from '../core/config';
|
|
2
|
+
import type { OutputLine } from '../core/state';
|
|
2
3
|
interface TimelineProps {
|
|
3
4
|
prompts: Prompt[];
|
|
4
5
|
currentPromptId?: string;
|
|
5
6
|
expandedPromptId?: string | null;
|
|
6
7
|
comments?: Record<string, Comment[]>;
|
|
7
8
|
isLoadingComments?: boolean;
|
|
9
|
+
promptOutputs?: Record<string, OutputLine[]>;
|
|
8
10
|
onSelectPrompt?: (prompt: Prompt) => void;
|
|
9
11
|
onExpandPrompt?: (promptId: string | null) => void;
|
|
10
12
|
onHighlightElement?: (prompt: Prompt) => void;
|
|
11
13
|
onLoadComments?: (promptId: string) => Promise<void>;
|
|
12
14
|
onAddComment?: (promptId: string, content: string) => Promise<void>;
|
|
13
15
|
}
|
|
14
|
-
export declare function Timeline({ prompts, currentPromptId, expandedPromptId, comments, isLoadingComments, onSelectPrompt, onExpandPrompt, onHighlightElement, onLoadComments, onAddComment }: TimelineProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function Timeline({ prompts, currentPromptId, expandedPromptId, comments, isLoadingComments, promptOutputs, onSelectPrompt, onExpandPrompt, onHighlightElement, onLoadComments, onAddComment }: TimelineProps): import("react/jsx-runtime").JSX.Element;
|
|
15
17
|
export {};
|
package/dist/core/client.d.ts
CHANGED
|
@@ -41,4 +41,8 @@ export declare class OrquestaEmbedClient {
|
|
|
41
41
|
setOverlayMode(mode: OverlayMode): void;
|
|
42
42
|
highlightPromptElement(prompt: Prompt): void;
|
|
43
43
|
setupGlobalRightClick(onSelect: (context: ElementContext) => void): () => void;
|
|
44
|
+
setupGlobalRightClickWithPosition(onSelect: (context: ElementContext, position: {
|
|
45
|
+
x: number;
|
|
46
|
+
y: number;
|
|
47
|
+
}) => void): () => void;
|
|
44
48
|
}
|
|
@@ -2,13 +2,22 @@ import type { ElementContext } from './config';
|
|
|
2
2
|
export declare class ElementSelector {
|
|
3
3
|
private overlay;
|
|
4
4
|
private highlight;
|
|
5
|
+
private selectedHighlight;
|
|
5
6
|
private selectedElement;
|
|
6
7
|
private isActive;
|
|
7
8
|
private onSelect;
|
|
8
9
|
private onCancel;
|
|
9
10
|
private globalRightClickHandler;
|
|
10
11
|
private globalRightClickCallback;
|
|
12
|
+
private globalRightClickWithPositionCallback;
|
|
13
|
+
private selectedElementScrollHandler;
|
|
11
14
|
setupGlobalRightClick(onSelect: (context: ElementContext) => void): () => void;
|
|
15
|
+
setupGlobalRightClickWithPosition(onSelect: (context: ElementContext, position: {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
}) => void): () => void;
|
|
19
|
+
highlightSelectedElement(selector: string): HTMLElement | null;
|
|
20
|
+
removeSelectedHighlight(): void;
|
|
12
21
|
activate(onSelect: (context: ElementContext) => void, onCancel?: () => void): void;
|
|
13
22
|
deactivate(): void;
|
|
14
23
|
isSelecting(): boolean;
|
|
@@ -19,6 +28,7 @@ export declare class ElementSelector {
|
|
|
19
28
|
private handleMouseMove;
|
|
20
29
|
private handleClick;
|
|
21
30
|
private handleKeyDown;
|
|
31
|
+
private promptHighlightScrollHandler;
|
|
22
32
|
highlightElement(selector: string): HTMLElement | null;
|
|
23
33
|
removeHighlight(): void;
|
|
24
34
|
findElement(selector: string, fallbackId?: string): HTMLElement | null;
|