@bysages/solid 0.4.4 → 0.5.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/README.md +2 -2
- package/dist/ai-NX47X8sz.mjs +365 -0
- package/dist/ai-prompt-input-CEnnpkgi.mjs +486 -0
- package/dist/{ai-response-CJ-uEAgj.mjs → ai-response-BM_DVIDY.mjs} +25 -27
- package/dist/{chevron-BHQrYKPM.mjs → chevron-DGKPHc2O.mjs} +2 -3
- package/dist/components/accordion/index.d.mts +1 -2
- package/dist/components/accordion/index.mjs +9 -16
- package/dist/components/affix/index.d.mts +1 -3
- package/dist/components/affix/index.mjs +19 -18
- package/dist/components/ai/index.d.mts +95 -2
- package/dist/components/ai/index.mjs +7 -69
- package/dist/components/ai-action/index.d.mts +0 -2
- package/dist/components/ai-action/index.mjs +4 -5
- package/dist/components/ai-attachments/index.d.mts +0 -2
- package/dist/components/ai-attachments/index.mjs +39 -52
- package/dist/components/ai-message/index.d.mts +2 -15
- package/dist/components/ai-message/index.mjs +18 -15
- package/dist/components/ai-prompt-input/index.d.mts +19 -15
- package/dist/components/ai-prompt-input/index.mjs +1 -168
- package/dist/components/ai-reasoning/index.d.mts +0 -2
- package/dist/components/ai-reasoning/index.mjs +8 -13
- package/dist/components/ai-response/index.d.mts +1 -3
- package/dist/components/ai-response/index.mjs +1 -2
- package/dist/components/ai-source/index.d.mts +0 -2
- package/dist/components/ai-source/index.mjs +25 -26
- package/dist/components/ai-suggestion/index.d.mts +0 -2
- package/dist/components/ai-suggestion/index.mjs +3 -4
- package/dist/components/ai-tool/index.d.mts +2 -25
- package/dist/components/ai-tool/index.mjs +75 -40
- package/dist/components/alert/index.d.mts +1 -2
- package/dist/components/alert/index.mjs +38 -33
- package/dist/components/angle-slider/index.d.mts +1 -2
- package/dist/components/angle-slider/index.mjs +6 -9
- package/dist/components/aspect-ratio/index.d.mts +1 -3
- package/dist/components/aspect-ratio/index.mjs +18 -17
- package/dist/components/autocomplete/index.d.mts +1 -2
- package/dist/components/autocomplete/index.mjs +6 -8
- package/dist/components/avatar/index.d.mts +1 -2
- package/dist/components/avatar/index.mjs +6 -7
- package/dist/components/avatar-group/index.d.mts +1 -3
- package/dist/components/avatar-group/index.mjs +15 -14
- package/dist/components/back-top/index.d.mts +1 -3
- package/dist/components/back-top/index.mjs +29 -34
- package/dist/components/badge/index.d.mts +1 -3
- package/dist/components/badge/index.mjs +18 -17
- package/dist/components/banner/index.d.mts +1 -2
- package/dist/components/banner/index.mjs +32 -31
- package/dist/components/bento/index.d.mts +1 -3
- package/dist/components/bento/index.mjs +30 -31
- package/dist/components/block-ui/index.d.mts +1 -3
- package/dist/components/block-ui/index.mjs +30 -33
- package/dist/components/breadcrumb/index.d.mts +1 -2
- package/dist/components/breadcrumb/index.mjs +8 -13
- package/dist/components/browser/index.d.mts +1 -3
- package/dist/components/browser/index.mjs +50 -51
- package/dist/components/button/index.d.mts +1 -3
- package/dist/components/button/index.mjs +31 -30
- package/dist/components/button-group/index.d.mts +1 -3
- package/dist/components/button-group/index.mjs +21 -20
- package/dist/components/calendar/index.d.mts +0 -2
- package/dist/components/calendar/index.mjs +73 -116
- package/dist/components/card/index.d.mts +1 -3
- package/dist/components/card/index.mjs +3 -4
- package/dist/components/carousel/index.d.mts +1 -2
- package/dist/components/carousel/index.mjs +6 -7
- package/dist/components/cascade-select/index.d.mts +1 -3
- package/dist/components/cascade-select/index.mjs +127 -167
- package/dist/components/checkbox/index.d.mts +1 -2
- package/dist/components/checkbox/index.mjs +7 -10
- package/dist/components/checkbox-group/index.d.mts +1 -2
- package/dist/components/checkbox-group/index.mjs +9 -12
- package/dist/components/chip/index.d.mts +1 -3
- package/dist/components/chip/index.mjs +22 -25
- package/dist/components/client-only/index.d.mts +0 -2
- package/dist/components/client-only/index.mjs +2 -3
- package/dist/components/clipboard/index.d.mts +1 -2
- package/dist/components/clipboard/index.mjs +10 -17
- package/dist/components/collapsible/index.d.mts +1 -2
- package/dist/components/collapsible/index.mjs +7 -14
- package/dist/components/collection/index.mjs +1 -2
- package/dist/components/color-picker/index.d.mts +1 -2
- package/dist/components/color-picker/index.mjs +10 -14
- package/dist/components/combobox/index.d.mts +1 -2
- package/dist/components/combobox/index.mjs +9 -14
- package/dist/components/command/index.d.mts +1 -2
- package/dist/components/command/index.mjs +63 -80
- package/dist/components/comment/index.d.mts +1 -3
- package/dist/components/comment/index.mjs +64 -80
- package/dist/components/config-provider/index.d.mts +1 -3
- package/dist/components/config-provider/index.mjs +10 -13
- package/dist/components/container/index.d.mts +1 -3
- package/dist/components/container/index.mjs +18 -17
- package/dist/components/data-view/index.d.mts +1 -3
- package/dist/components/data-view/index.mjs +81 -90
- package/dist/components/date-input/index.d.mts +1 -2
- package/dist/components/date-input/index.mjs +6 -9
- package/dist/components/date-picker/index.d.mts +1 -2
- package/dist/components/date-picker/index.mjs +11 -16
- package/dist/components/deferred-content/index.d.mts +1 -3
- package/dist/components/deferred-content/index.mjs +24 -25
- package/dist/components/descriptions/index.d.mts +1 -2
- package/dist/components/descriptions/index.mjs +40 -39
- package/dist/components/dialog/index.d.mts +11 -2
- package/dist/components/dialog/index.mjs +78 -40
- package/dist/components/dock/index.d.mts +1 -3
- package/dist/components/dock/index.mjs +29 -30
- package/dist/components/download-trigger/index.d.mts +0 -2
- package/dist/components/download-trigger/index.mjs +2 -3
- package/dist/components/drawer/index.d.mts +1 -2
- package/dist/components/drawer/index.mjs +9 -18
- package/dist/components/dynamic-input/index.d.mts +1 -3
- package/dist/components/dynamic-input/index.mjs +73 -77
- package/dist/components/editable/index.d.mts +1 -2
- package/dist/components/editable/index.mjs +7 -10
- package/dist/components/ellipsis/index.d.mts +1 -3
- package/dist/components/ellipsis/index.mjs +21 -20
- package/dist/components/empty/index.d.mts +1 -3
- package/dist/components/empty/index.mjs +3 -4
- package/dist/components/field/index.d.mts +1 -2
- package/dist/components/field/index.mjs +4 -5
- package/dist/components/fieldset/index.d.mts +1 -2
- package/dist/components/fieldset/index.mjs +6 -9
- package/dist/components/file-upload/index.d.mts +1 -2
- package/dist/components/file-upload/index.mjs +6 -7
- package/dist/components/float-button/index.d.mts +1 -2
- package/dist/components/float-button/index.mjs +41 -43
- package/dist/components/floating-panel/index.d.mts +1 -2
- package/dist/components/floating-panel/index.mjs +10 -21
- package/dist/components/focus-trap/index.d.mts +0 -2
- package/dist/components/focus-trap/index.mjs +2 -3
- package/dist/components/form/index.d.mts +0 -2
- package/dist/components/form/index.mjs +42 -58
- package/dist/components/format/index.d.mts +1 -3
- package/dist/components/format/index.mjs +1 -2
- package/dist/components/frame/index.d.mts +1 -2
- package/dist/components/frame/index.mjs +3 -4
- package/dist/components/grid/index.d.mts +1 -3
- package/dist/components/grid/index.mjs +23 -22
- package/dist/components/highlight/index.d.mts +1 -3
- package/dist/components/highlight/index.mjs +2 -3
- package/dist/components/hover-card/index.d.mts +1 -2
- package/dist/components/hover-card/index.mjs +12 -27
- package/dist/components/icon/index.d.mts +1 -3
- package/dist/components/icon/index.mjs +35 -36
- package/dist/components/image/index.d.mts +1 -3
- package/dist/components/image/index.mjs +48 -52
- package/dist/components/image-cropper/index.d.mts +1 -2
- package/dist/components/image-cropper/index.mjs +5 -6
- package/dist/components/image-viewer/index.d.mts +1 -1
- package/dist/components/image-viewer/index.mjs +1 -2
- package/dist/components/input/index.d.mts +1 -3
- package/dist/components/input/index.mjs +1 -2
- package/dist/components/input-group/index.d.mts +1 -2
- package/dist/components/input-group/index.mjs +19 -16
- package/dist/components/json-tree-view/index.d.mts +1 -2
- package/dist/components/json-tree-view/index.mjs +5 -6
- package/dist/components/kbd/index.d.mts +1 -3
- package/dist/components/kbd/index.mjs +12 -11
- package/dist/components/layout/index.d.mts +1 -2
- package/dist/components/layout/index.mjs +92 -84
- package/dist/components/link/index.d.mts +1 -3
- package/dist/components/link/index.mjs +15 -15
- package/dist/components/list/index.d.mts +1 -2
- package/dist/components/list/index.mjs +57 -61
- package/dist/components/listbox/index.d.mts +1 -2
- package/dist/components/listbox/index.mjs +8 -11
- package/dist/components/marquee/index.d.mts +1 -2
- package/dist/components/marquee/index.mjs +7 -8
- package/dist/components/masonry/index.d.mts +1 -3
- package/dist/components/masonry/index.mjs +19 -18
- package/dist/components/media-player/index.d.mts +1 -1
- package/dist/components/media-player/index.mjs +1 -2
- package/dist/components/mentions/index.d.mts +2 -2
- package/dist/components/mentions/index.mjs +1 -3
- package/dist/components/menu/index.d.mts +1 -2
- package/dist/components/menu/index.mjs +8 -17
- package/dist/components/menubar/index.d.mts +1 -2
- package/dist/components/menubar/index.mjs +66 -72
- package/dist/components/meter/index.d.mts +1 -2
- package/dist/components/meter/index.mjs +42 -43
- package/dist/components/navigation-menu/index.d.mts +1 -2
- package/dist/components/navigation-menu/index.mjs +7 -12
- package/dist/components/number-input/index.d.mts +1 -2
- package/dist/components/number-input/index.mjs +7 -10
- package/dist/components/order-list/index.d.mts +1 -3
- package/dist/components/order-list/index.mjs +86 -101
- package/dist/components/page-header/index.d.mts +1 -3
- package/dist/components/page-header/index.mjs +3 -4
- package/dist/components/pagination/index.d.mts +1 -2
- package/dist/components/pagination/index.mjs +31 -42
- package/dist/components/password-input/index.d.mts +1 -2
- package/dist/components/password-input/index.mjs +6 -7
- package/dist/components/pin-input/index.d.mts +1 -2
- package/dist/components/pin-input/index.mjs +6 -9
- package/dist/components/popconfirm/index.d.mts +2 -3
- package/dist/components/popconfirm/index.mjs +15 -23
- package/dist/components/popover/index.d.mts +2 -26
- package/dist/components/popover/index.mjs +10 -21
- package/dist/components/presence/index.d.mts +0 -2
- package/dist/components/presence/index.mjs +2 -3
- package/dist/components/progress/index.d.mts +1 -2
- package/dist/components/progress/index.mjs +14 -26
- package/dist/components/progress-group/index.d.mts +1 -3
- package/dist/components/progress-group/index.mjs +60 -68
- package/dist/components/qr-code/index.d.mts +1 -2
- package/dist/components/qr-code/index.mjs +5 -8
- package/dist/components/radio-group/index.d.mts +1 -2
- package/dist/components/radio-group/index.mjs +6 -9
- package/dist/components/rating-group/index.d.mts +1 -2
- package/dist/components/rating-group/index.mjs +7 -10
- package/dist/components/result/index.d.mts +1 -2
- package/dist/components/result/index.mjs +28 -29
- package/dist/components/scroll-area/index.d.mts +8 -3
- package/dist/components/scroll-area/index.mjs +19 -11
- package/dist/components/segment-group/index.d.mts +1 -2
- package/dist/components/segment-group/index.mjs +5 -8
- package/dist/components/select/index.d.mts +1 -1
- package/dist/components/select/index.mjs +1 -2
- package/dist/components/separator/index.d.mts +1 -3
- package/dist/components/separator/index.mjs +21 -20
- package/dist/components/signature-pad/index.d.mts +1 -2
- package/dist/components/signature-pad/index.mjs +7 -10
- package/dist/components/skeleton/index.d.mts +1 -3
- package/dist/components/skeleton/index.mjs +12 -11
- package/dist/components/slider/index.d.mts +1 -2
- package/dist/components/slider/index.mjs +6 -9
- package/dist/components/spinner/index.d.mts +1 -3
- package/dist/components/spinner/index.mjs +20 -19
- package/dist/components/split-button/index.d.mts +1 -2
- package/dist/components/split-button/index.mjs +92 -94
- package/dist/components/splitter/index.d.mts +1 -2
- package/dist/components/splitter/index.mjs +5 -8
- package/dist/components/spotlight/index.d.mts +1 -3
- package/dist/components/spotlight/index.mjs +22 -23
- package/dist/components/stack/index.d.mts +1 -3
- package/dist/components/stack/index.mjs +24 -23
- package/dist/components/stat/index.d.mts +1 -2
- package/dist/components/stat/index.mjs +15 -14
- package/dist/components/steps/index.d.mts +0 -2
- package/dist/components/steps/index.mjs +10 -17
- package/dist/components/swap/index.d.mts +1 -2
- package/dist/components/swap/index.mjs +5 -6
- package/dist/components/switch/index.d.mts +1 -2
- package/dist/components/switch/index.mjs +6 -9
- package/dist/components/table/index.d.mts +0 -2
- package/dist/components/table/index.mjs +233 -320
- package/dist/components/tabs/index.d.mts +8 -12
- package/dist/components/tabs/index.mjs +83 -34
- package/dist/components/tag/index.d.mts +1 -2
- package/dist/components/tag/index.mjs +46 -70
- package/dist/components/tags-input/index.d.mts +1 -2
- package/dist/components/tags-input/index.mjs +7 -10
- package/dist/components/terminal/index.d.mts +3 -3
- package/dist/components/terminal/index.mjs +61 -56
- package/dist/components/textarea/index.d.mts +1 -3
- package/dist/components/textarea/index.mjs +10 -11
- package/dist/components/timeline/index.d.mts +1 -2
- package/dist/components/timeline/index.mjs +15 -14
- package/dist/components/timer/index.d.mts +1 -2
- package/dist/components/timer/index.mjs +5 -6
- package/dist/components/toast/index.d.mts +0 -2
- package/dist/components/toast/index.mjs +5 -6
- package/dist/components/toc/index.d.mts +1 -1
- package/dist/components/toc/index.mjs +1 -2
- package/dist/components/toggle/index.d.mts +1 -2
- package/dist/components/toggle/index.mjs +5 -6
- package/dist/components/toggle-group/index.d.mts +1 -2
- package/dist/components/toggle-group/index.mjs +11 -16
- package/dist/components/toolbar/index.d.mts +1 -3
- package/dist/components/toolbar/index.mjs +27 -31
- package/dist/components/tooltip/index.d.mts +1 -2
- package/dist/components/tooltip/index.mjs +7 -16
- package/dist/components/tour/index.d.mts +0 -2
- package/dist/components/tour/index.mjs +11 -16
- package/dist/components/transfer/index.d.mts +1 -2
- package/dist/components/transfer/index.mjs +115 -126
- package/dist/components/tree-select/index.d.mts +2 -3
- package/dist/components/tree-select/index.mjs +24 -33
- package/dist/components/tree-view/index.d.mts +10 -4
- package/dist/components/tree-view/index.mjs +32 -23
- package/dist/components/typography/index.d.mts +2 -3
- package/dist/components/typography/index.mjs +4 -4
- package/dist/components/user/index.d.mts +1 -3
- package/dist/components/user/index.mjs +40 -57
- package/dist/components/virtual-list/index.d.mts +1 -3
- package/dist/components/virtual-list/index.mjs +39 -45
- package/dist/components/watermark/index.d.mts +1 -3
- package/dist/components/watermark/index.mjs +15 -22
- package/dist/{element-dGIhOTJ6.mjs → element-liigPBUh.mjs} +1 -2
- package/dist/{family-Cmd8HEyK.mjs → family-B5HtE0on.mjs} +1 -2
- package/dist/generative/index.d.mts +0 -2
- package/dist/generative/index.mjs +28 -53
- package/dist/{icon-DTqmJCd5.mjs → icon-DQqYA2fO.mjs} +11 -17
- package/dist/{id-2ygNzPHF.mjs → id-DGvz-2rQ.mjs} +1 -2
- package/dist/{image-viewer-19s75Hz_.mjs → image-viewer-TEia4PaY.mjs} +73 -101
- package/dist/{index-BU5U5w04.d.mts → index-B4WyTngM.d.mts} +0 -4
- package/dist/index-BRvSfkKs.d.mts +25 -0
- package/dist/{index-DhripUtf.d.mts → index-CTsFsYdA.d.mts} +0 -4
- package/dist/index-CutrHCzU.d.mts +153 -0
- package/dist/{index-wW28BYf1.d.mts → index-CwmZdzxT.d.mts} +0 -8
- package/dist/index-DK7YgaAU.d.mts +37 -0
- package/dist/index-Dms00480.d.mts +115 -0
- package/dist/{index-ID48LCMU.d.mts → index-Dv6mwzIr.d.mts} +3 -7
- package/dist/index.d.mts +13 -13
- package/dist/index.mjs +12 -12
- package/dist/{input-BL3N3L8g.mjs → input-2xfPP-7Z.mjs} +11 -13
- package/dist/{media-player-yF7KVUxM.mjs → media-player-LHnTiSiN.mjs} +248 -259
- package/dist/mentions-CvY9IGzc.mjs +438 -0
- package/dist/{select-DI7pFspF.mjs → select-NaNlrYUT.mjs} +72 -96
- package/dist/{toc-DRHr8_eD.mjs → toc-RnPG3w7q.mjs} +5 -7
- package/dist/{use-component-messages-C4SCVYjD.mjs → use-component-messages-DS9ppb4C.mjs} +1 -2
- package/package.json +13 -13
- package/dist/index-DEArHiFI.d.mts +0 -104
- package/dist/index-DVc1L_zt.d.mts +0 -10435
- package/dist/mentions-DKUG7eHt.mjs +0 -279
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as withSelfRoot } from "../../family-
|
|
2
|
-
import { spread, template } from "
|
|
1
|
+
import { n as withSelfRoot } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { mergeProps, spread, template } from "solid-js/web";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { splitProps } from "solid-js";
|
|
5
|
-
|
|
6
|
-
var _tmpl$ =
|
|
5
|
+
// src/components/affix/index.tsx
|
|
6
|
+
var _tmpl$ = /*#__PURE__*/ template(`<div>`);
|
|
7
7
|
/**
|
|
8
8
|
* A nail: the wrapped content travels with the page until it reaches its
|
|
9
9
|
* offset, then stays put while the page moves on. The semantics are
|
|
@@ -16,19 +16,20 @@ var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
|
16
16
|
const Affix = withSelfRoot(function Affix(props) {
|
|
17
17
|
injectComponentStyle("affix");
|
|
18
18
|
const [own, rest] = splitProps(props, ["offsetTop", "offsetBottom"]);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
19
|
+
return (() => {
|
|
20
|
+
var _el$ = _tmpl$();
|
|
21
|
+
spread(_el$, mergeProps(rest, {
|
|
22
|
+
get style() {
|
|
23
|
+
return {
|
|
24
|
+
...rest.style,
|
|
25
|
+
"--bs-affix-top": own.offsetTop,
|
|
26
|
+
"--bs-affix-bottom": own.offsetBottom
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
"data-scope": "affix",
|
|
30
|
+
"data-part": "root"
|
|
31
|
+
}), false, false);
|
|
32
|
+
return _el$;
|
|
33
|
+
})();
|
|
32
34
|
});
|
|
33
|
-
//#endregion
|
|
34
35
|
export { Affix };
|
|
@@ -1,2 +1,95 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ActionProps } from "../ai-action/index.mjs";
|
|
2
|
+
import { r as ToolProps } from "../../index-DK7YgaAU.mjs";
|
|
3
|
+
import { C as AiToolDisplay, S as AiSdkToolPart, _ as AiSdkReasoningPart, a as AiMediaKind, b as AiSdkStepStartPart, c as AiPartsProps, d as AiSdkDataPart, f as AiSdkFilePart, g as AiSdkReasoningFilePart, h as AiSdkMessagePart, i as AiMedia, l as AiPartsSlots, m as AiSdkMessage, n as MessageProps, o as AiMediaProps, p as AiSdkMediaPart, s as AiParts, u as AiSdkCustomPart, v as AiSdkSourceDocumentPart, w as toolPartDisplay, x as AiSdkTextPart, y as AiSdkSourceUrlPart } from "../../index-Dms00480.mjs";
|
|
4
|
+
import { PromptInputProps } from "../ai-prompt-input/index.mjs";
|
|
5
|
+
import { ReasoningProps } from "../ai-reasoning/index.mjs";
|
|
6
|
+
import { ResponseProps } from "../ai-response/index.mjs";
|
|
7
|
+
import { SourceProps } from "../ai-source/index.mjs";
|
|
8
|
+
import { SuggestionProps } from "../ai-suggestion/index.mjs";
|
|
9
|
+
import { JSX } from "solid-js";
|
|
10
|
+
import { ChatOnDataCallback, ChatOnErrorCallback, ChatOnFinishCallback, ChatState, ChatStatus, CreateUIMessage, CustomContentUIPart, DataUIPart, DynamicToolUIPart, FileUIPart, InferUITools, ProviderMetadata, ProviderReference, ReasoningFileUIPart, ReasoningUIPart, SourceDocumentUIPart, SourceUrlUIPart, StepStartUIPart, TextUIPart, ToolSet, ToolUIPart, UIDataTypes, UIMessage, UIMessageChunk, UIMessagePart, UITool, UIToolInvocation, UITools } from "ai";
|
|
11
|
+
/** The log itself: the column every stroke lands in, a landmark to
|
|
12
|
+
* screen readers. While the reply streams, the log follows its growth —
|
|
13
|
+
* but only while the reader rests at the bottom edge. */
|
|
14
|
+
export declare const AiConversation: (props: JSX.HTMLAttributes<HTMLDivElement> & {
|
|
15
|
+
autoScroll?: boolean;
|
|
16
|
+
}) => JSX.Element;
|
|
17
|
+
/** The optional jump-to-latest door: an explicit part the caller drops
|
|
18
|
+
* inside the conversation when the log scrolls. It watches the log's
|
|
19
|
+
* distance from the bottom edge and surfaces only while the reader is
|
|
20
|
+
* away — clicking returns to the stream. Nothing renders by default. */
|
|
21
|
+
export interface AiJumpToLatestProps extends JSX.HTMLAttributes<HTMLButtonElement> {
|
|
22
|
+
/** Bottom-edge distance beyond which the door surfaces. */
|
|
23
|
+
threshold?: number;
|
|
24
|
+
onJump?: () => void;
|
|
25
|
+
}
|
|
26
|
+
export declare const AiJumpToLatest: (props: AiJumpToLatestProps) => JSX.Element;
|
|
27
|
+
/** The bubble's inner measure — content that belongs to neither side
|
|
28
|
+
* specifically. */
|
|
29
|
+
export declare const AiContent: ((props: JSX.HTMLAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
30
|
+
Root: (props: JSX.HTMLAttributes<HTMLDivElement>) => JSX.Element;
|
|
31
|
+
};
|
|
32
|
+
/** The quiet row under a message — copy, retry, feedback. */
|
|
33
|
+
export declare const AiActions: ((props: JSX.HTMLAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
34
|
+
Root: (props: JSX.HTMLAttributes<HTMLDivElement>) => JSX.Element;
|
|
35
|
+
};
|
|
36
|
+
/** The while-it-works whisper for the in-flight turns. */
|
|
37
|
+
export declare const AiLoader: ((props: JSX.HTMLAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
38
|
+
Root: (props: JSX.HTMLAttributes<HTMLDivElement>) => JSX.Element;
|
|
39
|
+
};
|
|
40
|
+
/** The whole family under one handle — `Ai.Conversation`,
|
|
41
|
+
* `Ai.MessageContent`, and the rest. */
|
|
42
|
+
export declare const Ai: ((props: JSX.HTMLAttributes<HTMLDivElement> & {
|
|
43
|
+
autoScroll?: boolean;
|
|
44
|
+
}) => JSX.Element) & {
|
|
45
|
+
Root: (props: JSX.HTMLAttributes<HTMLDivElement> & {
|
|
46
|
+
autoScroll?: boolean;
|
|
47
|
+
}) => JSX.Element;
|
|
48
|
+
Conversation: (props: JSX.HTMLAttributes<HTMLDivElement> & {
|
|
49
|
+
autoScroll?: boolean;
|
|
50
|
+
}) => JSX.Element;
|
|
51
|
+
MessageContent: ((props: JSX.HTMLAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
52
|
+
Root: (props: JSX.HTMLAttributes<HTMLDivElement>) => JSX.Element;
|
|
53
|
+
};
|
|
54
|
+
Actions: ((props: JSX.HTMLAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
55
|
+
Root: (props: JSX.HTMLAttributes<HTMLDivElement>) => JSX.Element;
|
|
56
|
+
};
|
|
57
|
+
Loader: ((props: JSX.HTMLAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
58
|
+
Root: (props: JSX.HTMLAttributes<HTMLDivElement>) => JSX.Element;
|
|
59
|
+
};
|
|
60
|
+
Media: ((props: AiMediaProps) => JSX.Element) & {
|
|
61
|
+
Root: (props: AiMediaProps) => JSX.Element;
|
|
62
|
+
};
|
|
63
|
+
Parts: (<MESSAGE extends AiSdkMessage>(props: AiPartsProps<MESSAGE>) => JSX.Element) & {
|
|
64
|
+
Root: <MESSAGE extends AiSdkMessage>(props: AiPartsProps<MESSAGE>) => JSX.Element;
|
|
65
|
+
};
|
|
66
|
+
JumpToLatest: (props: AiJumpToLatestProps) => JSX.Element;
|
|
67
|
+
Message: ((props: MessageProps) => JSX.Element) & {
|
|
68
|
+
Root: (props: MessageProps) => JSX.Element;
|
|
69
|
+
};
|
|
70
|
+
Response: ((props: ResponseProps) => JSX.Element) & {
|
|
71
|
+
Root: (props: ResponseProps) => JSX.Element;
|
|
72
|
+
};
|
|
73
|
+
Reasoning: ((props: ReasoningProps) => JSX.Element) & {
|
|
74
|
+
Root: (props: ReasoningProps) => JSX.Element;
|
|
75
|
+
};
|
|
76
|
+
Tool: ((props: ToolProps) => JSX.Element) & {
|
|
77
|
+
Root: (props: ToolProps) => JSX.Element;
|
|
78
|
+
};
|
|
79
|
+
Sources: ((props: JSX.HTMLAttributes<HTMLOListElement>) => JSX.Element) & {
|
|
80
|
+
Root: (props: JSX.HTMLAttributes<HTMLOListElement>) => JSX.Element;
|
|
81
|
+
};
|
|
82
|
+
Source: ((props: SourceProps) => JSX.Element) & {
|
|
83
|
+
Root: (props: SourceProps) => JSX.Element;
|
|
84
|
+
};
|
|
85
|
+
Action: ((props: ActionProps) => JSX.Element) & {
|
|
86
|
+
Root: (props: ActionProps) => JSX.Element;
|
|
87
|
+
};
|
|
88
|
+
Suggestion: ((props: SuggestionProps) => JSX.Element) & {
|
|
89
|
+
Root: (props: SuggestionProps) => JSX.Element;
|
|
90
|
+
};
|
|
91
|
+
PromptInput: ((props: PromptInputProps) => JSX.Element) & {
|
|
92
|
+
Root: (props: PromptInputProps) => JSX.Element;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
export { AiMedia, type AiMediaKind, type AiMediaProps, AiParts, type AiPartsProps, type AiPartsSlots, type AiSdkCustomPart, type AiSdkDataPart, type AiSdkFilePart, type AiSdkMediaPart, type AiSdkMessage, type AiSdkMessagePart, type AiSdkReasoningFilePart, type AiSdkReasoningPart, type AiSdkSourceDocumentPart, type AiSdkSourceUrlPart, type AiSdkStepStartPart, type AiSdkTextPart, type AiSdkToolPart, type AiToolDisplay, type ChatOnDataCallback, type ChatOnErrorCallback, type ChatOnFinishCallback, type ChatState, type ChatStatus, type CreateUIMessage, type CustomContentUIPart, type DataUIPart, type DynamicToolUIPart, type FileUIPart, type InferUITools, type MessageProps, type ProviderMetadata, type ProviderReference, type ReasoningFileUIPart, type ReasoningUIPart, type SourceDocumentUIPart, type SourceUrlUIPart, type StepStartUIPart, type TextUIPart, type ToolSet, type ToolUIPart, type UIDataTypes, type UIMessage, type UIMessageChunk, type UIMessagePart, type UITool, type UIToolInvocation, type UITools, toolPartDisplay };
|
|
@@ -1,69 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
import { AiSource as Source, AiSources as Sources } from "../ai-source/index.mjs";
|
|
9
|
-
import { AiSuggestion as Suggestion } from "../ai-suggestion/index.mjs";
|
|
10
|
-
import { AiTool as Tool } from "../ai-tool/index.mjs";
|
|
11
|
-
import { spread, template } from "@solidjs/web";
|
|
12
|
-
import { injectComponentStyle } from "@bysages/core/styling";
|
|
13
|
-
//#region src/components/ai/index.tsx
|
|
14
|
-
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
15
|
-
function part(name, extra = {}) {
|
|
16
|
-
function Component(props) {
|
|
17
|
-
const messages = useComponentMessages();
|
|
18
|
-
const partExtra = typeof extra === "function" ? extra(messages()) : extra;
|
|
19
|
-
var _el$ = _tmpl$();
|
|
20
|
-
spread(_el$, [
|
|
21
|
-
partExtra,
|
|
22
|
-
props,
|
|
23
|
-
{
|
|
24
|
-
"data-scope": "ai",
|
|
25
|
-
get "data-part"() {
|
|
26
|
-
return name.toLowerCase();
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
], false);
|
|
30
|
-
return _el$;
|
|
31
|
-
}
|
|
32
|
-
return Component;
|
|
33
|
-
}
|
|
34
|
-
/** The log itself: the column every stroke lands in, a landmark to
|
|
35
|
-
* screen readers. */
|
|
36
|
-
const AiConversation = part("Conversation", (messages) => ({
|
|
37
|
-
role: "log",
|
|
38
|
-
"aria-label": messages.ai.conversation
|
|
39
|
-
}));
|
|
40
|
-
/** The bubble's inner measure — content that belongs to neither side
|
|
41
|
-
* specifically. */
|
|
42
|
-
const AiContent = withSelfRoot(part("Content"));
|
|
43
|
-
/** The quiet row under a message — copy, retry, feedback. */
|
|
44
|
-
const AiActions = withSelfRoot(part("Actions"));
|
|
45
|
-
/** The while-it-works whisper for the in-flight turns. */
|
|
46
|
-
const AiLoader = withSelfRoot(part("Loader", (messages) => ({
|
|
47
|
-
role: "status",
|
|
48
|
-
"aria-label": messages.ai.loading
|
|
49
|
-
})));
|
|
50
|
-
/** The whole family under one handle — `Ai.Conversation`,
|
|
51
|
-
* `Ai.MessageContent`, and the rest. */
|
|
52
|
-
const Ai = Object.assign(AiConversation, {
|
|
53
|
-
Conversation: AiConversation,
|
|
54
|
-
MessageContent: AiContent,
|
|
55
|
-
Actions: AiActions,
|
|
56
|
-
Loader: AiLoader,
|
|
57
|
-
Message,
|
|
58
|
-
Response,
|
|
59
|
-
Reasoning,
|
|
60
|
-
Tool,
|
|
61
|
-
Sources,
|
|
62
|
-
Source,
|
|
63
|
-
Action,
|
|
64
|
-
Suggestion,
|
|
65
|
-
PromptInput
|
|
66
|
-
});
|
|
67
|
-
injectComponentStyle("ai");
|
|
68
|
-
//#endregion
|
|
69
|
-
export { Ai, AiActions, AiContent, AiConversation, AiLoader };
|
|
1
|
+
import "../ai-action/index.mjs";
|
|
2
|
+
import "../ai-message/index.mjs";
|
|
3
|
+
import "../ai-reasoning/index.mjs";
|
|
4
|
+
import "../ai-source/index.mjs";
|
|
5
|
+
import "../ai-suggestion/index.mjs";
|
|
6
|
+
import "../ai-tool/index.mjs";
|
|
7
|
+
export { t as Ai, n as AiActions, r as AiContent, i as AiConversation, a as AiJumpToLatest, o as AiLoader, s as AiMedia, c as AiParts, l as toolPartDisplay } from "../../ai-NX47X8sz.mjs";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JSX } from "solid-js";
|
|
2
|
-
//#region src/components/ai-action/index.d.ts
|
|
3
2
|
export interface ActionProps extends JSX.HTMLAttributes<HTMLButtonElement> {
|
|
4
3
|
/** What the button does, spoken to assistive tech and shown as
|
|
5
4
|
* the hover title — copy, retry, thumbs. */
|
|
@@ -11,5 +10,4 @@ export interface ActionProps extends JSX.HTMLAttributes<HTMLButtonElement> {
|
|
|
11
10
|
export declare const Action: ((props: ActionProps) => JSX.Element) & {
|
|
12
11
|
Root: (props: ActionProps) => JSX.Element;
|
|
13
12
|
};
|
|
14
|
-
//#endregion
|
|
15
13
|
export { Action as AiAction };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as withSelfRoot } from "../../family-
|
|
1
|
+
import { n as withSelfRoot } from "../../family-B5HtE0on.mjs";
|
|
2
2
|
import { Button } from "../button/index.mjs";
|
|
3
|
-
import { createComponent, mergeProps } from "
|
|
3
|
+
import { createComponent, mergeProps } from "solid-js/web";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { splitProps } from "solid-js";
|
|
6
|
-
|
|
6
|
+
// src/components/ai-action/index.tsx
|
|
7
7
|
/** A quiet icon button — copy, retry, thumbs. The label names it to
|
|
8
8
|
* assistive tech and as the hover title. The control itself is the
|
|
9
9
|
* shared Button in its ghost register. */
|
|
@@ -14,7 +14,7 @@ const Action = withSelfRoot(function Action(props) {
|
|
|
14
14
|
variant: "ghost",
|
|
15
15
|
size: "sm",
|
|
16
16
|
square: true,
|
|
17
|
-
get "aria-label"() {
|
|
17
|
+
get ["aria-label"]() {
|
|
18
18
|
return own.label;
|
|
19
19
|
},
|
|
20
20
|
get title() {
|
|
@@ -24,5 +24,4 @@ const Action = withSelfRoot(function Action(props) {
|
|
|
24
24
|
return own.children;
|
|
25
25
|
} }));
|
|
26
26
|
});
|
|
27
|
-
//#endregion
|
|
28
27
|
export { Action, Action as AiAction };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JSX } from "solid-js";
|
|
2
|
-
//#region src/components/ai-attachments/index.d.ts
|
|
3
2
|
export type AttachmentStatus = "uploading" | "ready" | "error";
|
|
4
3
|
export interface AttachmentProps extends JSX.HTMLAttributes<HTMLSpanElement> {
|
|
5
4
|
/** The file's name — it picks the icon by extension. */
|
|
@@ -20,5 +19,4 @@ export declare const Attachment: ((props: AttachmentProps) => JSX.Element) & {
|
|
|
20
19
|
export declare const Attachments: ((props: JSX.HTMLAttributes<HTMLSpanElement>) => JSX.Element) & {
|
|
21
20
|
Root: (props: JSX.HTMLAttributes<HTMLSpanElement>) => JSX.Element;
|
|
22
21
|
};
|
|
23
|
-
//#endregion
|
|
24
22
|
export { Attachment as AiAttachment, Attachments as AiAttachments };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as withSelfRoot } from "../../family-
|
|
2
|
-
import { r as iconNode } from "../../icon-
|
|
3
|
-
import { n as useComponentMessages, t as formatComponentMessage } from "../../use-component-messages-
|
|
4
|
-
import { delegateEvents, effect, insert, memo, setAttribute, spread, template } from "
|
|
1
|
+
import { n as withSelfRoot } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { r as iconNode } from "../../icon-DQqYA2fO.mjs";
|
|
3
|
+
import { n as useComponentMessages, t as formatComponentMessage } from "../../use-component-messages-DS9ppb4C.mjs";
|
|
4
|
+
import { delegateEvents, effect, insert, memo, mergeProps, setAttribute, spread, template } from "solid-js/web";
|
|
5
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
6
|
import { splitProps } from "solid-js";
|
|
7
|
-
|
|
8
|
-
var _tmpl$ =
|
|
9
|
-
var _tmpl$2 =
|
|
7
|
+
// src/components/ai-attachments/index.tsx
|
|
8
|
+
var _tmpl$ = /*#__PURE__*/ template(`<span><span></span><button type=button data-remove>`);
|
|
9
|
+
var _tmpl$2 = /*#__PURE__*/ template(`<span>`);
|
|
10
10
|
function imageIcon() {
|
|
11
11
|
return iconNode("image");
|
|
12
12
|
}
|
|
@@ -58,57 +58,44 @@ const Attachment = withSelfRoot(function Attachment(props) {
|
|
|
58
58
|
"onRemove"
|
|
59
59
|
]);
|
|
60
60
|
const messages = useComponentMessages();
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
})(), _el$2);
|
|
79
|
-
insert(_el$2, () => {
|
|
80
|
-
return own.name;
|
|
81
|
-
});
|
|
82
|
-
insert(_el$, (() => {
|
|
83
|
-
var _c$2 = memo(() => {
|
|
84
|
-
return own.size !== void 0;
|
|
85
|
-
});
|
|
86
|
-
return () => {
|
|
87
|
-
return _c$2() ? (() => {
|
|
61
|
+
return (() => {
|
|
62
|
+
var _el$ = _tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
|
|
63
|
+
spread(_el$, mergeProps(rest, {
|
|
64
|
+
"data-scope": "ai",
|
|
65
|
+
"data-part": "attachment",
|
|
66
|
+
get ["data-status"]() {
|
|
67
|
+
return own.status ?? "ready";
|
|
68
|
+
}
|
|
69
|
+
}), false, true);
|
|
70
|
+
insert(_el$, (() => {
|
|
71
|
+
var _c$ = memo(() => !!isImage(own.name));
|
|
72
|
+
return () => _c$() ? imageIcon() : fileIcon();
|
|
73
|
+
})(), _el$2);
|
|
74
|
+
insert(_el$2, () => own.name);
|
|
75
|
+
insert(_el$, (() => {
|
|
76
|
+
var _c$2 = memo(() => own.size !== void 0);
|
|
77
|
+
return () => _c$2() ? (() => {
|
|
88
78
|
var _el$4 = _tmpl$2();
|
|
89
|
-
insert(_el$4, () =>
|
|
90
|
-
return humanSize(own.size);
|
|
91
|
-
});
|
|
79
|
+
insert(_el$4, () => humanSize(own.size));
|
|
92
80
|
return _el$4;
|
|
93
81
|
})() : null;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
});
|
|
101
|
-
return _el$;
|
|
82
|
+
})(), _el$3);
|
|
83
|
+
_el$3.$$click = () => own.onRemove?.();
|
|
84
|
+
insert(_el$3, removeIcon);
|
|
85
|
+
effect(() => setAttribute(_el$3, "aria-label", formatComponentMessage(messages().ai.removeAttachment, { name: own.name })));
|
|
86
|
+
return _el$;
|
|
87
|
+
})();
|
|
102
88
|
});
|
|
103
89
|
/** The row the files ride in — a wrapping line of chips. */
|
|
104
90
|
const Attachments = withSelfRoot(function Attachments(props) {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
91
|
+
return (() => {
|
|
92
|
+
var _el$5 = _tmpl$2();
|
|
93
|
+
spread(_el$5, mergeProps(props, {
|
|
94
|
+
"data-scope": "ai",
|
|
95
|
+
"data-part": "attachments"
|
|
96
|
+
}), false, false);
|
|
97
|
+
return _el$5;
|
|
98
|
+
})();
|
|
111
99
|
});
|
|
112
100
|
delegateEvents(["click"]);
|
|
113
|
-
//#endregion
|
|
114
101
|
export { Attachment as AiAttachment, Attachment, Attachments as AiAttachments, Attachments };
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export type MessageRole = "user" | "assistant" | "system";
|
|
4
|
-
export interface MessageProps extends Omit<JSX.HTMLAttributes<HTMLElement>, "role"> {
|
|
5
|
-
/** Whose stroke this is — the user's words sit in a recessed
|
|
6
|
-
* bubble, the assistant speaks flat on the paper. */
|
|
7
|
-
role?: MessageRole;
|
|
8
|
-
}
|
|
9
|
-
/** Whose stroke this is — the user's words sit in a recessed bubble,
|
|
10
|
-
* the assistant speaks flat on the paper. */
|
|
11
|
-
export declare const Message: ((props: MessageProps) => JSX.Element) & {
|
|
12
|
-
Root: (props: MessageProps) => JSX.Element;
|
|
13
|
-
};
|
|
14
|
-
//#endregion
|
|
15
|
-
export { Message as AiMessage };
|
|
1
|
+
import { n as MessageProps, r as MessageRole, t as Message } from "../../index-Dms00480.mjs";
|
|
2
|
+
export { Message as AiMessage, Message, MessageProps, MessageRole };
|
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
import { n as withSelfRoot } from "../../family-
|
|
2
|
-
import { spread, template } from "
|
|
1
|
+
import { n as withSelfRoot } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { mergeProps, spread, template } from "solid-js/web";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { splitProps } from "solid-js";
|
|
5
|
-
|
|
6
|
-
var _tmpl$ =
|
|
5
|
+
// src/components/ai-message/index.tsx
|
|
6
|
+
var _tmpl$ = /*#__PURE__*/ template(`<article>`);
|
|
7
7
|
/** Whose stroke this is — the user's words sit in a recessed bubble,
|
|
8
8
|
* the assistant speaks flat on the paper. */
|
|
9
9
|
const Message = withSelfRoot(function Message(props) {
|
|
10
10
|
injectComponentStyle("ai");
|
|
11
|
-
const [own, rest] = splitProps(props, ["role"]);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
const [own, rest] = splitProps(props, ["message", "role"]);
|
|
12
|
+
const role = own.message?.role ?? own.role ?? "assistant";
|
|
13
|
+
return (() => {
|
|
14
|
+
var _el$ = _tmpl$();
|
|
15
|
+
spread(_el$, mergeProps(rest, {
|
|
16
|
+
"data-scope": "ai",
|
|
17
|
+
"data-part": "message",
|
|
18
|
+
get ["data-message-id"]() {
|
|
19
|
+
return own.message?.id;
|
|
20
|
+
},
|
|
21
|
+
"data-role": role
|
|
22
|
+
}), false, false);
|
|
23
|
+
return _el$;
|
|
24
|
+
})();
|
|
21
25
|
});
|
|
22
|
-
//#endregion
|
|
23
26
|
export { Message as AiMessage, Message };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { c as MentionTriggers, n as MentionPlacement, s as MentionCommitKey, t as MentionEntry } from "../../index-CutrHCzU.mjs";
|
|
1
2
|
import { JSX } from "solid-js";
|
|
2
|
-
|
|
3
|
-
export interface PromptInputProps extends Omit<JSX.HTMLAttributes<HTMLFormElement>, "onSubmit" | "value"> {
|
|
3
|
+
export interface PromptInputProps extends Omit<JSX.HTMLAttributes<HTMLFormElement>, "onSubmit" | "onSelect" | "value"> {
|
|
4
4
|
/** The draft in the vessel — bind `value`; it clears itself on
|
|
5
5
|
* a successful submit. */
|
|
6
6
|
value?: string;
|
|
@@ -27,21 +27,25 @@ export interface PromptInputProps extends Omit<JSX.HTMLAttributes<HTMLFormElemen
|
|
|
27
27
|
/** The controls that close the footer row — the seal falls there
|
|
28
28
|
* when a footer exists. */
|
|
29
29
|
footerEnd?: JSX.Element;
|
|
30
|
+
/** Mention candidates. Rich tokens render after a choice; the
|
|
31
|
+
* bound value remains plain text. */
|
|
32
|
+
mentions?: {
|
|
33
|
+
items: MentionEntry[];
|
|
34
|
+
trigger?: string;
|
|
35
|
+
triggers?: MentionTriggers;
|
|
36
|
+
insertOnSelect?: boolean;
|
|
37
|
+
commitKeys?: MentionCommitKey[];
|
|
38
|
+
placement?: MentionPlacement;
|
|
39
|
+
clearQueryOnSelect?: boolean;
|
|
40
|
+
};
|
|
41
|
+
/** A candidate was chosen, including when `mentions.insertOnSelect`
|
|
42
|
+
* keeps the composer text untouched. */
|
|
43
|
+
onSelect?: (entry: MentionEntry) => void;
|
|
30
44
|
}
|
|
31
45
|
/** The prompt vessel: the shared field textarea — self-growing on the
|
|
32
46
|
* machine's autoresize — with the submit seal riding its last line.
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* the text's left, `trailing` for the seal itself, `footer` for the
|
|
36
|
-
* tools beneath, and `footerEnd` for the controls that close the
|
|
37
|
-
* footer row — the seal falls there by default, so a model picker
|
|
38
|
-
* dropped in rides the send's shoulder. An empty slot renders no part,
|
|
39
|
-
* so the bare vessel stays one quiet line. Controlled — bind `value`
|
|
40
|
-
* and take the text on `onSubmit`. Enter sends; Shift+Enter breaks the
|
|
41
|
-
* line. While `busy` the seal becomes a stop seal and Enter holds its
|
|
42
|
-
* breath. */
|
|
47
|
+
* With mentions it becomes a rich token editor while the value stays
|
|
48
|
+
* ordinary composer text. */
|
|
43
49
|
export declare const PromptInput: ((props: PromptInputProps) => JSX.Element) & {
|
|
44
50
|
Root: (props: PromptInputProps) => JSX.Element;
|
|
45
|
-
};
|
|
46
|
-
//#endregion
|
|
47
|
-
export { PromptInput as AiPromptInput };
|
|
51
|
+
};
|