@tangle-network/agent-app 0.46.13 → 0.46.14
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/assistant/index.js +1 -1
- package/dist/chat-react/index.js +1 -1
- package/dist/{chunk-5SSUCLBW.js → chunk-3PFKLSIZ.js} +3 -2
- package/dist/chunk-3PFKLSIZ.js.map +1 -0
- package/dist/studio-react/index.js +6 -1
- package/dist/studio-react/index.js.map +1 -1
- package/dist/studio-react/studio-composer.d.ts +4 -1
- package/dist/studio-react/studio-generation-screen.d.ts +3 -1
- package/dist/studio-react/studio-home-screen.d.ts +3 -1
- package/dist/web-react/chat-composer.d.ts +5 -1
- package/dist/web-react/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-5SSUCLBW.js.map +0 -1
|
@@ -25,10 +25,13 @@ export interface StudioComposerProps {
|
|
|
25
25
|
* Without it the Reference pill takes a URL instead, which is the most a host
|
|
26
26
|
* with no upload endpoint can honestly offer. */
|
|
27
27
|
pickReferenceImage?: () => Promise<string | null>;
|
|
28
|
+
/** Circular Generate button colour. `contrast` (default) preserves the
|
|
29
|
+
* inverted foreground/background canon; `primary` uses host brand tokens. */
|
|
30
|
+
sendTone?: 'contrast' | 'primary';
|
|
28
31
|
className?: string;
|
|
29
32
|
}
|
|
30
33
|
/**
|
|
31
34
|
* The composer card. The host owns its width (the card fills its container) and
|
|
32
35
|
* the heading above it; this owns the prompt, the controls, and the POST.
|
|
33
36
|
*/
|
|
34
|
-
export declare function StudioComposer({ workspaceId, onGenerated, variant, pickReferenceImage, className, }: StudioComposerProps): import("react").JSX.Element;
|
|
37
|
+
export declare function StudioComposer({ workspaceId, onGenerated, variant, pickReferenceImage, sendTone, className, }: StudioComposerProps): import("react").JSX.Element;
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
*/
|
|
35
35
|
import { type JSX } from 'react';
|
|
36
36
|
import { type Generation, type StudioMediaActions } from '../studio';
|
|
37
|
+
import { type StudioComposerProps } from './studio-composer';
|
|
37
38
|
export interface StudioGenerationScreenProps {
|
|
38
39
|
/** Full merged list from the host (`useStudioGenerations`). */
|
|
39
40
|
generations: Generation[];
|
|
@@ -43,7 +44,8 @@ export interface StudioGenerationScreenProps {
|
|
|
43
44
|
onOpenGeneration: (batchKey: string, first: Generation) => void;
|
|
44
45
|
workspaceId?: string;
|
|
45
46
|
pickReferenceImage?: () => Promise<string | null>;
|
|
47
|
+
sendTone?: StudioComposerProps['sendTone'];
|
|
46
48
|
actions?: StudioMediaActions;
|
|
47
49
|
className?: string;
|
|
48
50
|
}
|
|
49
|
-
export declare function StudioGenerationScreen({ generations, batchKey, onGenerated, onOpenGeneration, workspaceId, pickReferenceImage, actions, className, }: StudioGenerationScreenProps): JSX.Element;
|
|
51
|
+
export declare function StudioGenerationScreen({ generations, batchKey, onGenerated, onOpenGeneration, workspaceId, pickReferenceImage, sendTone, actions, className, }: StudioGenerationScreenProps): JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
2
|
import type { Generation } from '../studio/generation';
|
|
3
3
|
import type { StudioMediaActions } from '../studio/ports';
|
|
4
|
+
import { type StudioComposerProps } from './studio-composer';
|
|
4
5
|
export interface StudioHomeScreenProps {
|
|
5
6
|
/** Newest first, from the host loader (host runs useStudioGenerations). */
|
|
6
7
|
generations: Generation[];
|
|
@@ -9,6 +10,7 @@ export interface StudioHomeScreenProps {
|
|
|
9
10
|
onOpenHistory: () => void;
|
|
10
11
|
workspaceId?: string;
|
|
11
12
|
pickReferenceImage?: () => Promise<string | null>;
|
|
13
|
+
sendTone?: StudioComposerProps['sendTone'];
|
|
12
14
|
actions?: StudioMediaActions;
|
|
13
15
|
recentLimit?: number;
|
|
14
16
|
className?: string;
|
|
@@ -17,4 +19,4 @@ export interface StudioHomeScreenProps {
|
|
|
17
19
|
* Studio's create-and-recent-media landing screen. The host must render this
|
|
18
20
|
* inside both `StudioToastProvider` and `StudioPlaybackProvider`.
|
|
19
21
|
*/
|
|
20
|
-
export declare function StudioHomeScreen({ generations, onGenerated, onOpenGeneration, onOpenHistory, workspaceId, pickReferenceImage, actions, recentLimit, className, }: StudioHomeScreenProps): JSX.Element;
|
|
22
|
+
export declare function StudioHomeScreen({ generations, onGenerated, onOpenGeneration, onOpenHistory, workspaceId, pickReferenceImage, sendTone, actions, recentLimit, className, }: StudioHomeScreenProps): JSX.Element;
|
|
@@ -304,6 +304,10 @@ export interface ChatComposerProps {
|
|
|
304
304
|
* grammar sandbox-ui's legacy AgentComposer used and the current agent-app
|
|
305
305
|
* canon for new surfaces. */
|
|
306
306
|
sendVariant?: 'pill' | 'icon';
|
|
307
|
+
/** Circular icon send colour. `contrast` (default) preserves the inverted
|
|
308
|
+
* foreground/background canon; `primary` opts into the host brand tokens.
|
|
309
|
+
* The labeled pill already uses primary and is unchanged. */
|
|
310
|
+
sendTone?: 'contrast' | 'primary';
|
|
307
311
|
className?: string;
|
|
308
312
|
}
|
|
309
|
-
export declare function ChatComposer({ onSend, onSendParts, onSendFailed, sendFailureMessage, onCancel, isStreaming, disabled, placeholder, value, onValueChange, initialValue, seed, onSeedApplied, controls, controlsPlacement, onAttach, onAttachFolder, pendingFiles, onRemoveFile, onRetryFile, accept, onRejectFiles, dropTitle, dropDescription, contextItems, canSubmitAttachmentsOnly, attachmentsNotReadyMessage, canSubmitWhileBusy, autoFocus, minRows, maxHeight, trailing, mention, slashCommands, onDictate, onDictateError, focusShortcut, floating, sendLabel, sendVariant, className, }: ChatComposerProps): import("react").JSX.Element;
|
|
313
|
+
export declare function ChatComposer({ onSend, onSendParts, onSendFailed, sendFailureMessage, onCancel, isStreaming, disabled, placeholder, value, onValueChange, initialValue, seed, onSeedApplied, controls, controlsPlacement, onAttach, onAttachFolder, pendingFiles, onRemoveFile, onRetryFile, accept, onRejectFiles, dropTitle, dropDescription, contextItems, canSubmitAttachmentsOnly, attachmentsNotReadyMessage, canSubmitWhileBusy, autoFocus, minRows, maxHeight, trailing, mention, slashCommands, onDictate, onDictateError, focusShortcut, floating, sendLabel, sendVariant, sendTone, className, }: ChatComposerProps): import("react").JSX.Element;
|
package/dist/web-react/index.js
CHANGED
package/package.json
CHANGED