@bysages/solid 0.1.1 → 0.2.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 +4 -4
- package/dist/index.d.mts +72 -22
- package/dist/index.mjs +651 -309
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
21
|
# pnpm
|
|
22
|
-
pnpm add @bysages/solid
|
|
22
|
+
pnpm add @bysages/solid
|
|
23
23
|
|
|
24
24
|
# npm
|
|
25
|
-
npm install @bysages/solid
|
|
25
|
+
npm install @bysages/solid
|
|
26
26
|
|
|
27
27
|
# yarn
|
|
28
|
-
yarn add @bysages/solid
|
|
28
|
+
yarn add @bysages/solid
|
|
29
29
|
|
|
30
30
|
# bun
|
|
31
|
-
bun add @bysages/solid
|
|
31
|
+
bun add @bysages/solid
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
## Quick Start
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Accordion as Accordion$1 } from "@ark-ui/solid/accordion";
|
|
2
|
-
import { Accessor, Component, JSX as JSX$1 } from "solid-js";
|
|
2
|
+
import { Accessor, Component, ComponentProps, JSX as JSX$1 } from "solid-js";
|
|
3
3
|
import { Field as Field$1 } from "@ark-ui/solid/field";
|
|
4
4
|
import { Collapsible as Collapsible$1 } from "@ark-ui/solid/collapsible";
|
|
5
5
|
import { AngleSlider as AngleSlider$1 } from "@ark-ui/solid/angle-slider";
|
|
@@ -156,6 +156,8 @@ export declare function PromptInput(props: PromptInputProps): JSX$1.Element;
|
|
|
156
156
|
export interface ReasoningProps extends JSX$1.HTMLAttributes<HTMLDivElement> {
|
|
157
157
|
/** The trigger's words — the fold arrives open under them. */
|
|
158
158
|
label?: string;
|
|
159
|
+
/** The fold arrives open when set — rides the shared collapsible. */
|
|
160
|
+
defaultOpen?: boolean;
|
|
159
161
|
}
|
|
160
162
|
/** The model's thought, folded by the shared collapsible in its quiet
|
|
161
163
|
* register: bare ink for a trigger, the thought on one hairline. */
|
|
@@ -163,12 +165,16 @@ export declare function Reasoning(props: ReasoningProps): JSX$1.Element;
|
|
|
163
165
|
//#endregion
|
|
164
166
|
//#region src/components/ai-response/index.d.ts
|
|
165
167
|
export interface ResponseProps extends JSX$1.HTMLAttributes<HTMLDivElement> {
|
|
166
|
-
/** The markdown text to set on the paper — streamed in freely;
|
|
167
|
-
*
|
|
168
|
+
/** The markdown text to set on the paper — streamed in freely; raw
|
|
169
|
+
* HTML and executable links stay inert. */
|
|
168
170
|
content: string;
|
|
169
|
-
/** Optional code-highlighting function re-inking fenced blocks;
|
|
170
|
-
*
|
|
171
|
+
/** Optional code-highlighting function re-inking fenced blocks; the
|
|
172
|
+
* component stays agnostic about which engine provides it. */
|
|
171
173
|
highlighter?: (code: string, lang?: string) => string;
|
|
174
|
+
/** The copy stamp's accessible name before the copy lands. */
|
|
175
|
+
copyLabel?: string;
|
|
176
|
+
/** The copy stamp's accessible name once the text has landed. */
|
|
177
|
+
copiedLabel?: string;
|
|
172
178
|
}
|
|
173
179
|
/** Markdown set on the paper. Rendering goes through
|
|
174
180
|
* `@tanstack/markdown`, whose defaults leave raw HTML and executable
|
|
@@ -208,6 +214,8 @@ export interface ToolProps extends JSX$1.HTMLAttributes<HTMLDivElement> {
|
|
|
208
214
|
/** The state the call reached — pending, running, completed, or
|
|
209
215
|
* error; stamped on the fold and whispered in the status chip. */
|
|
210
216
|
status?: ToolStatus;
|
|
217
|
+
/** The fold arrives open when set — rides the shared collapsible. */
|
|
218
|
+
defaultOpen?: boolean;
|
|
211
219
|
input?: string;
|
|
212
220
|
output?: string;
|
|
213
221
|
}
|
|
@@ -216,7 +224,7 @@ export interface ToolProps extends JSX$1.HTMLAttributes<HTMLDivElement> {
|
|
|
216
224
|
* output folded inside. */
|
|
217
225
|
export declare function Tool(props: ToolProps): JSX$1.Element;
|
|
218
226
|
//#endregion
|
|
219
|
-
//#region ../../node_modules/.pnpm/@ai-sdk+provider@4.0.
|
|
227
|
+
//#region ../../node_modules/.pnpm/@ai-sdk+provider@4.0.17/node_modules/@ai-sdk/provider/dist/index.d.ts
|
|
220
228
|
/**
|
|
221
229
|
* Audio format configuration shared by provider V4 model specifications.
|
|
222
230
|
*/
|
|
@@ -296,7 +304,7 @@ type SharedV4Headers = Record<string, string>;
|
|
|
296
304
|
* A JSON value can be a string, number, boolean, object, array, or null.
|
|
297
305
|
* JSON values can be serialized and deserialized by the JSON.stringify and JSON.parse methods.
|
|
298
306
|
*/
|
|
299
|
-
type JSONValue = null | string | number | boolean | JSONObject |
|
|
307
|
+
type JSONValue = null | string | number | boolean | Readonly<JSONObject> | readonly JSONValue[];
|
|
300
308
|
type JSONObject = {
|
|
301
309
|
[key: string]: JSONValue | undefined;
|
|
302
310
|
};
|
|
@@ -9743,7 +9751,7 @@ interface $ZodConfig {
|
|
|
9743
9751
|
declare const globalConfig: $ZodConfig;
|
|
9744
9752
|
declare function config(newConfig?: Partial<$ZodConfig>): $ZodConfig;
|
|
9745
9753
|
//#endregion
|
|
9746
|
-
//#region ../../node_modules/.pnpm/@ai-sdk+provider-utils@5.0.
|
|
9754
|
+
//#region ../../node_modules/.pnpm/@ai-sdk+provider-utils@5.0.45_zod@4.6.5/node_modules/@ai-sdk/provider-utils/dist/index.d.ts
|
|
9747
9755
|
/**
|
|
9748
9756
|
* A value that can be provided either as a single item, an array of items,
|
|
9749
9757
|
* or be left undefined.
|
|
@@ -10704,6 +10712,13 @@ type ToolOutputProperties<INPUT, OUTPUT, CONTEXT extends Context | unknown | nev
|
|
|
10704
10712
|
* Common properties shared by all tool kinds.
|
|
10705
10713
|
*/
|
|
10706
10714
|
type BaseTool<INPUT extends JSONValue | unknown | never = any, OUTPUT extends JSONValue | unknown | never = any, CONTEXT extends Context | unknown | never = any> = {
|
|
10715
|
+
/**
|
|
10716
|
+
* Defer exposing this tool until it is discovered by `toolSearch`.
|
|
10717
|
+
* Supports direct calls and local callers that announce tools in conversation
|
|
10718
|
+
* messages (code mode with `toolDiscovery: 'conversation'`). Discovered tools
|
|
10719
|
+
* become available on the next model step.
|
|
10720
|
+
*/
|
|
10721
|
+
deferLoading?: boolean;
|
|
10707
10722
|
/**
|
|
10708
10723
|
* An optional title of the tool.
|
|
10709
10724
|
*
|
|
@@ -10960,7 +10975,7 @@ type Normalize<OBJECT> = { [KEY in keyof OBJECT]: OBJECT[KEY]; };
|
|
|
10960
10975
|
*/
|
|
10961
10976
|
type InferToolSetContext<TOOLS extends ToolSet> = Normalize<RequiredToolSetContext<TOOLS> & OptionalToolSetContext<TOOLS>>;
|
|
10962
10977
|
//#endregion
|
|
10963
|
-
//#region ../../node_modules/.pnpm/ai@7.0.
|
|
10978
|
+
//#region ../../node_modules/.pnpm/ai@7.0.107_zod@4.6.5/node_modules/ai/dist/index.d.ts
|
|
10964
10979
|
/**
|
|
10965
10980
|
* Embedding.
|
|
10966
10981
|
*/
|
|
@@ -12449,6 +12464,10 @@ type UIToolInvocation<TOOL extends UITool | Tool$1> = {
|
|
|
12449
12464
|
} | {
|
|
12450
12465
|
state: 'output-error';
|
|
12451
12466
|
input: asUITool<TOOL>['input'] | undefined;
|
|
12467
|
+
/**
|
|
12468
|
+
* @deprecated Use `input` instead. This field will be removed in the next
|
|
12469
|
+
* major version.
|
|
12470
|
+
*/
|
|
12452
12471
|
rawInput?: unknown;
|
|
12453
12472
|
output?: never;
|
|
12454
12473
|
errorText: string;
|
|
@@ -13320,6 +13339,7 @@ declare global {
|
|
|
13320
13339
|
* String model ids are resolved to the default provider and model id.
|
|
13321
13340
|
*
|
|
13322
13341
|
* If not set, the default provider is the Vercel AI gateway provider.
|
|
13342
|
+
* Experimental evaluation requires an explicitly configured evaluation-capable provider.
|
|
13323
13343
|
*
|
|
13324
13344
|
* @see https://ai-sdk.dev/docs/ai-sdk-core/provider-management#global-provider-configuration
|
|
13325
13345
|
*/
|
|
@@ -13448,10 +13468,22 @@ export interface AutoCompleteProps {
|
|
|
13448
13468
|
export declare function AutoComplete(props: AutoCompleteProps): import("solid-js").JSX.Element;
|
|
13449
13469
|
//#endregion
|
|
13450
13470
|
//#region src/components/avatar/index.d.ts
|
|
13451
|
-
/**
|
|
13452
|
-
* inset paper that holds initials until the image loads over them.
|
|
13453
|
-
*
|
|
13454
|
-
|
|
13471
|
+
/** Avatar, dressed in the paper-and-ink system: a circular seal on
|
|
13472
|
+
* inset paper that holds initials until the image loads over them.
|
|
13473
|
+
* `size` picks a control-height rung for the seal — the core styles
|
|
13474
|
+
* re-point `--bs-avatar-size` per rung, and scenes can still retune the
|
|
13475
|
+
* variable directly. */
|
|
13476
|
+
export type AvatarSize = "sm" | "md" | "lg";
|
|
13477
|
+
export interface AvatarProps extends ComponentProps<typeof Avatar$1.Root> {
|
|
13478
|
+
/** Seal diameter: the small, medium, or large control rung. The
|
|
13479
|
+
* default (large) stands as tall as the biggest control so an avatar
|
|
13480
|
+
* rides a row without stretching it. */
|
|
13481
|
+
size?: AvatarSize;
|
|
13482
|
+
}
|
|
13483
|
+
declare function AvatarRoot(props: AvatarProps): import("solid-js").JSX.Element;
|
|
13484
|
+
export declare const Avatar: typeof Avatar$1 & {
|
|
13485
|
+
Root: typeof AvatarRoot;
|
|
13486
|
+
};
|
|
13455
13487
|
//#endregion
|
|
13456
13488
|
//#region src/components/avatar-group/index.d.ts
|
|
13457
13489
|
/** Avatars overlapping one row, each rimmed in the ground so the pile
|
|
@@ -13466,14 +13498,20 @@ export interface BackTopProps extends JSX$1.HTMLAttributes<HTMLButtonElement> {
|
|
|
13466
13498
|
threshold?: number;
|
|
13467
13499
|
/** The accessible name; the control is icon-only by default. */
|
|
13468
13500
|
label?: string;
|
|
13501
|
+
/** Ride a scrolling element of your own instead of the page: the
|
|
13502
|
+
* control moors inside that element's corner and watches its
|
|
13503
|
+
* scrollTop. The host supplies the positioning context. */
|
|
13504
|
+
scrollEl?: () => HTMLElement | null;
|
|
13469
13505
|
}
|
|
13470
13506
|
/**
|
|
13471
13507
|
* A way home: after the page has scrolled past `threshold`, a small
|
|
13472
13508
|
* floating control rises at the page's corner and returns the reader to
|
|
13473
13509
|
* the top. The scroll itself stays native — `window.scrollTo` defers to
|
|
13474
13510
|
* the stylesheet's `scroll-behavior: smooth`, which reduced motion turns
|
|
13475
|
-
* back into an instant jump
|
|
13476
|
-
*
|
|
13511
|
+
* back into an instant jump (a moored control asks the media query
|
|
13512
|
+
* directly, since a scroller of its own has no stylesheet to defer to).
|
|
13513
|
+
* The button stays mounted either way so the entrance is a transition,
|
|
13514
|
+
* never a pop.
|
|
13477
13515
|
*
|
|
13478
13516
|
* The control itself is the shared `Button` (outline, square) — the
|
|
13479
13517
|
* paper, hairline and halo are its; this family owns only the floating
|
|
@@ -13604,6 +13642,7 @@ export interface CascadeSelectProps extends JSX$1.HTMLAttributes<HTMLDivElement>
|
|
|
13604
13642
|
data: CascadeSelectNode[];
|
|
13605
13643
|
placeholder?: string;
|
|
13606
13644
|
highlightTrigger?: "click" | "hover";
|
|
13645
|
+
filterable?: boolean;
|
|
13607
13646
|
multiple?: boolean;
|
|
13608
13647
|
disabled?: boolean;
|
|
13609
13648
|
onValueChange?: (value: string[][]) => void;
|
|
@@ -13613,7 +13652,9 @@ export interface CascadeSelectProps extends JSX$1.HTMLAttributes<HTMLDivElement>
|
|
|
13613
13652
|
* dissolves open beside it, until a leaf click settles the whole path.
|
|
13614
13653
|
* `value` is the selected path (or paths, when `multiple`) — the
|
|
13615
13654
|
* joined labels ride the trigger. `highlightTrigger: "hover"` turns the
|
|
13616
|
-
* classic cascading menu: pointing is enough to unfold.
|
|
13655
|
+
* classic cascading menu: pointing is enough to unfold. `filterable`
|
|
13656
|
+
* swaps the corridor for a flat list of matching paths while a query
|
|
13657
|
+
* runs — each hit still reads as its full route.
|
|
13617
13658
|
*/
|
|
13618
13659
|
export declare function CascadeSelect(props: CascadeSelectProps): JSX$1.Element;
|
|
13619
13660
|
//#endregion
|
|
@@ -13634,6 +13675,7 @@ export interface CheckboxGroupProps extends JSX$1.HTMLAttributes<HTMLDivElement>
|
|
|
13634
13675
|
value?: string[];
|
|
13635
13676
|
options: CheckboxOption[];
|
|
13636
13677
|
layout?: "vertical" | "horizontal";
|
|
13678
|
+
invalid?: boolean;
|
|
13637
13679
|
disabled?: boolean;
|
|
13638
13680
|
onValueChange?: (value: string[]) => void;
|
|
13639
13681
|
}
|
|
@@ -13641,7 +13683,9 @@ export interface CheckboxGroupProps extends JSX$1.HTMLAttributes<HTMLDivElement>
|
|
|
13641
13683
|
* One question, many answers: a labelled stack (or row) of the seal-cut
|
|
13642
13684
|
* checkboxes bound to a single array. Toggling a box adds or removes its
|
|
13643
13685
|
* value; the group itself is semantics (`role="group"`), the boxes stay
|
|
13644
|
-
* the machine-driven originals.
|
|
13686
|
+
* the machine-driven originals. Inside a `Field.Root` the group picks up
|
|
13687
|
+
* the field context, so the invalid and disabled states a Form routes to
|
|
13688
|
+
* its name dress every box at once.
|
|
13645
13689
|
*/
|
|
13646
13690
|
export declare function CheckboxGroup(props: CheckboxGroupProps): JSX$1.Element;
|
|
13647
13691
|
//#endregion
|
|
@@ -14211,10 +14255,9 @@ export interface LayoutContextValue {
|
|
|
14211
14255
|
}
|
|
14212
14256
|
/**
|
|
14213
14257
|
* The application skeleton: Root, Header, Sider, Content, Footer —
|
|
14214
|
-
* the admin arrangement
|
|
14215
|
-
*
|
|
14216
|
-
*
|
|
14217
|
-
* edge the rail stands on.
|
|
14258
|
+
* the admin arrangement dressed in the paper-and-ink surfaces. The
|
|
14259
|
+
* root is a full-height grid; a declared `sider` turns the columns
|
|
14260
|
+
* around to meet whichever edge the rail stands on.
|
|
14218
14261
|
*/
|
|
14219
14262
|
declare function LayoutRoot(props: LayoutRootProps): JSX$1.Element;
|
|
14220
14263
|
declare function LayoutHeader(props: JSX$1.HTMLAttributes<HTMLElement>): JSX$1.Element;
|
|
@@ -14762,6 +14805,11 @@ export interface DataTableProps {
|
|
|
14762
14805
|
sortable?: boolean;
|
|
14763
14806
|
/** Render a global-filter toolbar and per-column filter inputs. */
|
|
14764
14807
|
filterable?: boolean;
|
|
14808
|
+
/** Keep the built-in toolbar row above the table (default true when
|
|
14809
|
+
* `filterable`). Turn it off to host the global filter in your own
|
|
14810
|
+
* toolbar — the feature stays registered and the instance methods
|
|
14811
|
+
* keep working. */
|
|
14812
|
+
showToolbar?: boolean;
|
|
14765
14813
|
/** Enable tree expansion over `subRows`; the first column hosts the
|
|
14766
14814
|
* expander and depth indent. */
|
|
14767
14815
|
tree?: boolean;
|
|
@@ -14930,6 +14978,7 @@ export interface TreeSelectProps extends JSX$1.HTMLAttributes<HTMLDivElement> {
|
|
|
14930
14978
|
value?: string;
|
|
14931
14979
|
data: TreeSelectNode[];
|
|
14932
14980
|
placeholder?: string;
|
|
14981
|
+
filterable?: boolean;
|
|
14933
14982
|
disabled?: boolean;
|
|
14934
14983
|
onValueChange?: (value: string) => void;
|
|
14935
14984
|
}
|
|
@@ -14937,7 +14986,8 @@ export interface TreeSelectProps extends JSX$1.HTMLAttributes<HTMLDivElement> {
|
|
|
14937
14986
|
* A tree behind a field: the control reads like an input, the vessel
|
|
14938
14987
|
* below walks the hierarchy, and one leaf click closes the deal. Single
|
|
14939
14988
|
* selection — the chosen label rides on the control, its value rides in
|
|
14940
|
-
* `value`.
|
|
14989
|
+
* `value`. `filterable` puts a filter line at the top of the vessel;
|
|
14990
|
+
* matches keep their ancestors and the branches fan open.
|
|
14941
14991
|
*/
|
|
14942
14992
|
export declare function TreeSelect(props: TreeSelectProps): JSX$1.Element;
|
|
14943
14993
|
//#endregion
|