@corenel/web-ui 0.10.0 → 0.11.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/Composer.d.ts +30 -9
- package/dist/Composer.d.ts.map +1 -1
- package/dist/Composer.js +288 -230
- package/dist/Composer.js.map +1 -1
- package/dist/ContextBar.d.ts +4 -1
- package/dist/ContextBar.d.ts.map +1 -1
- package/dist/ContextBar.js +15 -2
- package/dist/ContextBar.js.map +1 -1
- package/dist/DictateButton.d.ts +26 -1
- package/dist/DictateButton.d.ts.map +1 -1
- package/dist/DictateButton.js +26 -10
- package/dist/DictateButton.js.map +1 -1
- package/dist/DockStatus.d.ts +11 -0
- package/dist/DockStatus.d.ts.map +1 -0
- package/dist/DockStatus.js +41 -0
- package/dist/DockStatus.js.map +1 -0
- package/dist/StarterCards.d.ts +20 -0
- package/dist/StarterCards.d.ts.map +1 -0
- package/dist/StarterCards.js +30 -0
- package/dist/StarterCards.js.map +1 -0
- package/dist/Transcript.d.ts +9 -1
- package/dist/Transcript.d.ts.map +1 -1
- package/dist/Transcript.js +11 -2
- package/dist/Transcript.js.map +1 -1
- package/dist/agentChat/AgentChat.d.ts +43 -7
- package/dist/agentChat/AgentChat.d.ts.map +1 -1
- package/dist/agentChat/AgentChat.js +220 -93
- package/dist/agentChat/AgentChat.js.map +1 -1
- package/dist/agentChat/OptionsDrawer.d.ts.map +1 -1
- package/dist/agentChat/OptionsDrawer.js +5 -2
- package/dist/agentChat/OptionsDrawer.js.map +1 -1
- package/dist/agentChat/controller.d.ts +3 -0
- package/dist/agentChat/controller.d.ts.map +1 -1
- package/dist/agentChat/controller.js.map +1 -1
- package/dist/credentialLines.d.ts +10 -0
- package/dist/credentialLines.d.ts.map +1 -0
- package/dist/credentialLines.js +46 -0
- package/dist/credentialLines.js.map +1 -0
- package/dist/sendLater/SendLater.d.ts +8 -1
- package/dist/sendLater/SendLater.d.ts.map +1 -1
- package/dist/sendLater/SendLater.js +16 -8
- package/dist/sendLater/SendLater.js.map +1 -1
- package/dist/toolRender.d.ts.map +1 -1
- package/dist/toolRender.js +7 -2
- package/dist/toolRender.js.map +1 -1
- package/package.json +5 -5
package/dist/Composer.d.ts
CHANGED
|
@@ -26,7 +26,17 @@ export interface SlashCommand {
|
|
|
26
26
|
section?: string;
|
|
27
27
|
icon?: React.ReactNode;
|
|
28
28
|
}
|
|
29
|
-
export declare function Composer({ value, onChange, onSend, onStop, running, placeholder, runHint, mode, onModeChange, modes, chips, onRemoveChip, onAddContext, slashCommands, onPickSlash, attachments, onAttach, onRemoveAttachment, onImageClick, inPrice, showContext, onDropFiles, rightSlot, history, sendLater, pending, onQueue, onInject, onRemovePending, onEditPending, sendLabel, ariaLabel, mentionables, leadSlot, dictating, }: {
|
|
29
|
+
export declare function Composer({ value, onChange, onSend, onStop, running, placeholder, runHint, mode, onModeChange, modes, chips, onRemoveChip, onAddContext, slashCommands, onPickSlash, attachments, onAttach, onRemoveAttachment, onImageClick, inPrice, showContext, onDropFiles, rightSlot, history, sendLater, pending, onQueue, onInject, onRemovePending, onEditPending, sendLabel, ariaLabel, mentionables, leadSlot, dictating, status, statusHidden, docked, toggleChips, }: {
|
|
30
|
+
/** Toggles that are ON (e.g. Image), shown as accent chips in the chip row.
|
|
31
|
+
* Their switch lives in a menu, so the chip is what says one is on; its x
|
|
32
|
+
* calls `onRemove` to turn it off. */
|
|
33
|
+
toggleChips?: readonly {
|
|
34
|
+
id: string;
|
|
35
|
+
label: string;
|
|
36
|
+
icon?: React.ReactNode;
|
|
37
|
+
title?: string;
|
|
38
|
+
onRemove: () => void;
|
|
39
|
+
}[];
|
|
30
40
|
value: string;
|
|
31
41
|
onChange: (v: string) => void;
|
|
32
42
|
onSend: () => void;
|
|
@@ -37,8 +47,9 @@ export declare function Composer({ value, onChange, onSend, onStop, running, pla
|
|
|
37
47
|
/** The selectable modes (folder-driven). Defaults to the built-ins. */
|
|
38
48
|
modes?: ModeEntry[];
|
|
39
49
|
chips?: ContextChip[];
|
|
40
|
-
/** Rendered
|
|
41
|
-
* this component stays presentational and a host can leave
|
|
50
|
+
/** Rendered in the bottom row after the send-later control. Injected rather
|
|
51
|
+
* than imported so this component stays presentational and a host can leave
|
|
52
|
+
* it out. */
|
|
42
53
|
rightSlot?: React.ReactNode;
|
|
43
54
|
onRemoveChip?: (id: string) => void;
|
|
44
55
|
onAddContext?: () => void;
|
|
@@ -131,13 +142,11 @@ export declare function Composer({ value, onChange, onSend, onStop, running, pla
|
|
|
131
142
|
* until the mic stops. Stopping re-arms everything with the text already in
|
|
132
143
|
* place, ready to edit and send. */
|
|
133
144
|
dictating?: boolean;
|
|
134
|
-
/** Rendered
|
|
135
|
-
*
|
|
145
|
+
/** Rendered right after the "+" button, which is always present when the host
|
|
146
|
+
* wires context, so the mic's position is fixed for a given surface.
|
|
136
147
|
*
|
|
137
|
-
* Every other slot shifts under something. The
|
|
138
|
-
*
|
|
139
|
-
* agent's CURRENT task, so it resizes all through a run and shoves its
|
|
140
|
-
* neighbours sideways. Even this row's own contents come and go: `sendLater`
|
|
148
|
+
* Every other slot shifts under something. The status strip's contents change
|
|
149
|
+
* all through a run, and even this row's own contents come and go: `sendLater`
|
|
141
150
|
* hides while running, the token estimate appears only once there is text.
|
|
142
151
|
* Anything placed after those moves as you type or as a run starts.
|
|
143
152
|
*
|
|
@@ -146,5 +155,17 @@ export declare function Composer({ value, onChange, onSend, onStop, running, pla
|
|
|
146
155
|
* imported, like `sendLater` and `rightSlot`, so this component stays
|
|
147
156
|
* presentational and a surface with nothing to put here simply omits it. */
|
|
148
157
|
leadSlot?: React.ReactNode;
|
|
158
|
+
/** The status strip's contents (run indicator, tasks, host chips), rendered
|
|
159
|
+
* inside the box under the skin title. The strip renders when this is set or
|
|
160
|
+
* messages are queued; with neither it is not in the DOM. */
|
|
161
|
+
status?: React.ReactNode;
|
|
162
|
+
/** Keep the strip mounted but not shown (display: none), so a host slot inside
|
|
163
|
+
* `status` can be observed while it has nothing to say. */
|
|
164
|
+
statusHidden?: boolean;
|
|
165
|
+
/** Docked at the foot of a panel (the default): a divider line above and the
|
|
166
|
+
* dock's surface band behind it. False when the composer stands on its own in
|
|
167
|
+
* the middle of an empty chat, where a full-width line and band read as a
|
|
168
|
+
* stray stripe across the page. Presentational only. */
|
|
169
|
+
docked?: boolean;
|
|
149
170
|
}): React.JSX.Element;
|
|
150
171
|
//# sourceMappingURL=Composer.d.ts.map
|
package/dist/Composer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Composer.d.ts","sourceRoot":"","sources":["../Composer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgE,MAAM,OAAO,CAAC;AAIrF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAK3D,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B;+EAC+E;AAC/E,MAAM,WAAW,SAAS;IAAG,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE;AAY9F,iFAAiF;AACjF,eAAO,MAAM,aAAa,EAAE,SAAS,EAKpC,CAAC;AACF,6EAA6E;AAC7E,eAAO,MAAM,KAAK,EAAE,MAAM,EAAmC,CAAC;AAE9D,oGAAoG;AACpG,wBAAgB,UAAU,CAAC,CAAC,EAAE,SAAS,GAAG,MAAM,CAA2E;
|
|
1
|
+
{"version":3,"file":"Composer.d.ts","sourceRoot":"","sources":["../Composer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgE,MAAM,OAAO,CAAC;AAIrF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAK3D,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B;+EAC+E;AAC/E,MAAM,WAAW,SAAS;IAAG,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAA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