@athenaintel/react 0.13.0 → 0.14.0
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/chat-ui/auth/sign-in-card.d.ts +57 -0
- package/dist/chat-ui/composer/composer-action.d.ts +5 -0
- package/dist/chat-ui/composer/pending-attachment-uploads.d.ts +5 -0
- package/dist/chat-ui/composer/tiptap-composer.d.ts +35 -0
- package/dist/chat-ui/index.d.ts +34 -0
- package/dist/chat-ui/lib/asset-urls.d.ts +6 -0
- package/dist/chat-ui/mentions/mention-chip.d.ts +38 -0
- package/dist/chat-ui/mentions/mention-extension.d.ts +35 -0
- package/dist/chat-ui/mentions/suggestions/components/get-scope-name.d.ts +15 -0
- package/dist/chat-ui/mentions/suggestions/components/mention-icon.d.ts +10 -0
- package/dist/chat-ui/mentions/suggestions/components/mention-suggestion-list.d.ts +22 -0
- package/dist/chat-ui/mentions/suggestions/components/mention-suggestion-popup.d.ts +9 -0
- package/dist/chat-ui/mentions/suggestions/components/menu-breadcrumbs.d.ts +10 -0
- package/dist/chat-ui/mentions/suggestions/components/menu-item.d.ts +12 -0
- package/dist/chat-ui/mentions/suggestions/components/menu-list.d.ts +13 -0
- package/dist/chat-ui/mentions/suggestions/components/menu-skeleton.d.ts +4 -0
- package/dist/chat-ui/mentions/suggestions/components/menu-summary.d.ts +13 -0
- package/dist/chat-ui/mentions/suggestions/components/use-keyboard-navigation.d.ts +19 -0
- package/dist/chat-ui/mentions/suggestions/components/use-menu-navigation.d.ts +64 -0
- package/dist/chat-ui/mentions/suggestions/components/utils.d.ts +8 -0
- package/dist/chat-ui/mentions/suggestions/data/api-client.d.ts +41 -0
- package/dist/chat-ui/mentions/suggestions/data/item-cache.d.ts +76 -0
- package/dist/chat-ui/mentions/suggestions/data/orchestrator.d.ts +29 -0
- package/dist/chat-ui/mentions/suggestions/data/scope-registry.d.ts +105 -0
- package/dist/chat-ui/mentions/suggestions/data/sources/asset-type-icons.d.ts +25 -0
- package/dist/chat-ui/mentions/suggestions/data/sources/index.d.ts +59 -0
- package/dist/chat-ui/mentions/suggestions/data/types.d.ts +156 -0
- package/dist/chat-ui/mentions/suggestions/data/use-mention-suggestions.d.ts +37 -0
- package/dist/chat-ui/mentions/suggestions/data/use-menu-items.d.ts +34 -0
- package/dist/chat-ui/mentions/suggestions/data/utils/filter-items.d.ts +13 -0
- package/dist/chat-ui/mentions/suggestions/data/utils/match-query.d.ts +5 -0
- package/dist/chat-ui/mentions/suggestions/data/utils/score-match.d.ts +5 -0
- package/dist/chat-ui/mentions/suggestions/mention-suggestions.extension.d.ts +25 -0
- package/dist/chat-ui/mentions/suggestions/shims.d.ts +19 -0
- package/dist/chat-ui/messages/message-components.d.ts +56 -0
- package/dist/chat-ui/messages/running-indicator.d.ts +10 -0
- package/dist/chat-ui/thread/chat-composer-dock.d.ts +22 -0
- package/dist/chat-ui/thread/chat-thread-shell.d.ts +46 -0
- package/dist/chat-ui/thread/composer-send-or-stop.d.ts +44 -0
- package/dist/chat-ui.cjs +6217 -0
- package/dist/chat-ui.cjs.map +1 -0
- package/dist/chat-ui.js +6217 -0
- package/dist/chat-ui.js.map +1 -0
- package/dist/index.cjs +8513 -36126
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7944 -35557
- package/dist/index.js.map +1 -1
- package/dist/mentions/mention-suggestion-list.d.ts +1 -1
- package/dist/mentions/use-mention-suggestions.d.ts +3 -2
- package/dist/scope-registry-B9XYV-FT.js +28480 -0
- package/dist/scope-registry-B9XYV-FT.js.map +1 -0
- package/dist/scope-registry-Bti8l_Xy.cjs +28495 -0
- package/dist/scope-registry-Bti8l_Xy.cjs.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/threads/api.d.ts +1 -0
- package/dist/threads/conversation-list-fetcher.d.ts +40 -0
- package/package.json +16 -4
- package/src/chat-ui/styles/theme.css +30 -0
- package/src/chat-ui/tailwind-preset.js +57 -0
- package/dist/mentions/scope-registry.d.ts +0 -21
- package/dist/mentions/types.d.ts +0 -39
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { FC, RefObject } from "react";
|
|
2
|
+
import { type ComposerAction } from "../composer/composer-action";
|
|
3
|
+
import type { TiptapComposerHandle } from "../composer/tiptap-composer";
|
|
4
|
+
export interface ComposerStopControls {
|
|
5
|
+
/**
|
|
6
|
+
* Cancels the active run via the runtime. Returns false when cancellation
|
|
7
|
+
* threw (e.g. the run already settled), so hosts can report whether their
|
|
8
|
+
* own teardown still needs to stop backend work.
|
|
9
|
+
*/
|
|
10
|
+
cancelRun: () => boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface ComposerSendOrStopProps {
|
|
13
|
+
composerRef: RefObject<TiptapComposerHandle | null>;
|
|
14
|
+
hasDraft: boolean;
|
|
15
|
+
/** Disables both send and stop (e.g. while a conversation restores). */
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Blocks sending (not stopping) with this reason as the tooltip — e.g. a
|
|
19
|
+
* broken host tunnel that would make tool calls silently fail.
|
|
20
|
+
*/
|
|
21
|
+
sendBlockedReason?: string | null;
|
|
22
|
+
/** Tooltip for the send/queue control while `disabled`. */
|
|
23
|
+
sendDisabledTitle?: string;
|
|
24
|
+
/** Tooltip for the stop control while `disabled`. */
|
|
25
|
+
stopDisabledTitle?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Host work to run before the draft submits (per-turn bookkeeping).
|
|
28
|
+
* `action` distinguishes a fresh send from queueing into an active run.
|
|
29
|
+
*/
|
|
30
|
+
onBeforeSend?: (context: {
|
|
31
|
+
action: Extract<ComposerAction, "send" | "queue">;
|
|
32
|
+
}) => void | Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Full custom stop sequence. Hosts that must tear down in-flight host-side
|
|
35
|
+
* work sequence it around `controls.cancelRun()`. Default: cancel the run.
|
|
36
|
+
*/
|
|
37
|
+
onStop?: (controls: ComposerStopControls) => void;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The shared send/queue/stop control: sends the composer draft, queues it as
|
|
41
|
+
* a follow-up while a run is in flight, or stops the run when there is
|
|
42
|
+
* nothing to queue.
|
|
43
|
+
*/
|
|
44
|
+
export declare const ComposerSendOrStop: FC<ComposerSendOrStopProps>;
|