@ag2/weave 0.15.2 → 0.16.1
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/components/index.d.ts +1 -0
- package/dist/components/lobby/Lobby.css.d.ts +59 -0
- package/dist/components/lobby/LobbyCards.d.ts +86 -0
- package/dist/components/lobby/LobbyChecklist.d.ts +43 -0
- package/dist/components/lobby/LobbyLayout.d.ts +27 -0
- package/dist/components/lobby/index.d.ts +3 -0
- package/dist/index.js +415 -16
- package/dist/index.js.map +1 -1
- package/dist/style.css +541 -6
- package/package.json +1 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export declare const Secondary: string;
|
|
2
|
+
export declare const Quiet: string;
|
|
3
|
+
export declare const Upright: string;
|
|
4
|
+
export declare const Page: string;
|
|
5
|
+
export declare const PageFrame: string;
|
|
6
|
+
export declare const Section: string;
|
|
7
|
+
export declare const Hero: string;
|
|
8
|
+
export declare const HeroText: string;
|
|
9
|
+
export declare const HeroTitle: Record<"large" | "medium", string>;
|
|
10
|
+
export declare const HeroAside: string;
|
|
11
|
+
export declare const SectionTitle: string;
|
|
12
|
+
export declare const SectionTitleText: string;
|
|
13
|
+
export declare const SectionLink: string;
|
|
14
|
+
export declare const Button: string;
|
|
15
|
+
export declare const ButtonType: Record<"Dark" | "Outline", string>;
|
|
16
|
+
export declare const ButtonFull: string;
|
|
17
|
+
export declare const GetStarted: string;
|
|
18
|
+
export declare const GetStartedHead: string;
|
|
19
|
+
export declare const GetStartedTitle: string;
|
|
20
|
+
export declare const AllSetCheck: string;
|
|
21
|
+
export declare const Progress: string;
|
|
22
|
+
export declare const ProgressTrack: string;
|
|
23
|
+
export declare const ProgressFill: string;
|
|
24
|
+
export declare const Step: string;
|
|
25
|
+
export declare const StepMark: string;
|
|
26
|
+
export declare const StepText: string;
|
|
27
|
+
export declare const StepEnd: string;
|
|
28
|
+
export declare const Glow: string;
|
|
29
|
+
export declare const Grid: string;
|
|
30
|
+
export declare const TileGrid: string;
|
|
31
|
+
export declare const AgentChoice: string;
|
|
32
|
+
export declare const ChoiceDescription: string;
|
|
33
|
+
export declare const Mark: Record<"32" | "36" | "40" | "44", string>;
|
|
34
|
+
export declare const NameLine: string;
|
|
35
|
+
export declare const Name: string;
|
|
36
|
+
export declare const Tag: string;
|
|
37
|
+
export declare const YourAgent: string;
|
|
38
|
+
export declare const CardText: string;
|
|
39
|
+
export declare const AgentTile: string;
|
|
40
|
+
export declare const TileOpen: string;
|
|
41
|
+
export declare const StatusLine: string;
|
|
42
|
+
export declare const StatusText: string;
|
|
43
|
+
export declare const Dot: Record<"off" | "live" | "needsYou", string>;
|
|
44
|
+
export declare const SetupChip: string;
|
|
45
|
+
export declare const Resume: string;
|
|
46
|
+
export declare const RoomCard: string;
|
|
47
|
+
export declare const RoomCardText: string;
|
|
48
|
+
export declare const About: string;
|
|
49
|
+
export declare const RoomMark: Record<"36" | "44", string>;
|
|
50
|
+
export declare const RoomRow: string;
|
|
51
|
+
export declare const RoomRowText: string;
|
|
52
|
+
export declare const LastMessage: string;
|
|
53
|
+
export declare const RoomRowMeta: string;
|
|
54
|
+
export declare const People: string;
|
|
55
|
+
export declare const Person: string;
|
|
56
|
+
export declare const PersonFace: string;
|
|
57
|
+
export declare const PersonName: string;
|
|
58
|
+
export declare const NeedsYouPill: string;
|
|
59
|
+
export declare const AddAgentRow: string;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
export declare type LobbyAgentChoiceProps = {
|
|
3
|
+
/** The agent's mark: Sutando's gradient mark, or a third party's official art (36). */
|
|
4
|
+
mark: ReactNode;
|
|
5
|
+
name: ReactNode;
|
|
6
|
+
description: ReactNode;
|
|
7
|
+
/** Brand/Ember glow and a "Suggested" tag. */
|
|
8
|
+
recommended?: boolean;
|
|
9
|
+
/** Its Add button (outline: the dark button on the page is the checklist step). */
|
|
10
|
+
onAdd?: () => void;
|
|
11
|
+
};
|
|
12
|
+
/** One agent you can add, while you have none. */
|
|
13
|
+
export declare const LobbyAgentChoice: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, LobbyAgentChoiceProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
14
|
+
export declare type LobbyYourAgentCardProps = {
|
|
15
|
+
mark: ReactNode;
|
|
16
|
+
name: ReactNode;
|
|
17
|
+
/** "Ready · runs on this Mac". */
|
|
18
|
+
status: ReactNode;
|
|
19
|
+
/** Off: a grey dot instead of the live green one. */
|
|
20
|
+
online?: boolean;
|
|
21
|
+
/** A first thing to try with it. */
|
|
22
|
+
tip?: ReactNode;
|
|
23
|
+
/** Say hi: opens a DM with the agent. */
|
|
24
|
+
onSayHi?: () => void;
|
|
25
|
+
};
|
|
26
|
+
/** Your first agent, while the checklist is still up. */
|
|
27
|
+
export declare const LobbyYourAgentCard: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, LobbyYourAgentCardProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
28
|
+
export declare type LobbyAgentStatus = "Working" | "Ready" | "Needs setup" | "Offline";
|
|
29
|
+
export declare type LobbyAgentTileProps = {
|
|
30
|
+
mark: ReactNode;
|
|
31
|
+
name: string;
|
|
32
|
+
status: LobbyAgentStatus;
|
|
33
|
+
/** Working: what it's doing ("Drafting in Invoke x AG2…"). Ready: where it runs. Offline:
|
|
34
|
+
* "last seen 2d ago". */
|
|
35
|
+
detail?: ReactNode;
|
|
36
|
+
/** Opens the agent's profile card. */
|
|
37
|
+
onOpen?: () => void;
|
|
38
|
+
/** Needs setup: Resume reopens the add-agent flow where it stopped. */
|
|
39
|
+
onResume?: () => void;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Your agent in the everyday Lobby. The whole tile opens its profile card; Resume (Needs setup)
|
|
43
|
+
* is its own button above that, never nested inside it.
|
|
44
|
+
*/
|
|
45
|
+
export declare const LobbyAgentTile: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, LobbyAgentTileProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
46
|
+
export declare type LobbyRoomCardProps = {
|
|
47
|
+
/** The room's mark; a # tile until it has one. */
|
|
48
|
+
mark?: ReactNode;
|
|
49
|
+
name: ReactNode;
|
|
50
|
+
about?: ReactNode;
|
|
51
|
+
/** The live line: "122 people · 6 agents · 3 talking now" (green dot = live). */
|
|
52
|
+
live?: ReactNode;
|
|
53
|
+
/** The room picked at sign-up: Brand/Ember warmth and a tag. */
|
|
54
|
+
suggested?: boolean;
|
|
55
|
+
tag?: ReactNode;
|
|
56
|
+
joinLabel?: ReactNode;
|
|
57
|
+
onJoin?: () => void;
|
|
58
|
+
};
|
|
59
|
+
/** A public room you can join. */
|
|
60
|
+
export declare const LobbyRoomCard: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, LobbyRoomCardProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
61
|
+
export declare type LobbyRoomRowProps = {
|
|
62
|
+
mark?: ReactNode;
|
|
63
|
+
name: ReactNode;
|
|
64
|
+
/** "Sender: text", one line. */
|
|
65
|
+
lastMessage?: ReactNode;
|
|
66
|
+
time?: ReactNode;
|
|
67
|
+
/** Unread messages: a semibold name and the count badge. */
|
|
68
|
+
unread?: number;
|
|
69
|
+
/** Mentions among them, for the badge's highlight. */
|
|
70
|
+
highlight?: boolean;
|
|
71
|
+
};
|
|
72
|
+
/** A room you're in, in Jump back in. Click opens it at the first unread. */
|
|
73
|
+
export declare const LobbyRoomRow: <T extends React.ElementType<any> = "button">(props: import("..").AsOutProps<T, LobbyRoomRowProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
74
|
+
export declare type LobbyPersonProps = {
|
|
75
|
+
avatar: ReactNode;
|
|
76
|
+
name: ReactNode;
|
|
77
|
+
};
|
|
78
|
+
/** A person in the People row: a 40px face and a first name. Click opens their profile card. */
|
|
79
|
+
export declare const LobbyPerson: <T extends React.ElementType<any> = "button">(props: import("..").AsOutProps<T, LobbyPersonProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
80
|
+
export declare type LobbyNeedsYouPillProps = {
|
|
81
|
+
count: number;
|
|
82
|
+
};
|
|
83
|
+
/** In the hero while Activity › Needs you > 0. Click opens Activity. */
|
|
84
|
+
export declare const LobbyNeedsYouPill: <T extends React.ElementType<any> = "button">(props: import("..").AsOutProps<T, LobbyNeedsYouPillProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
85
|
+
/** Sidebar › Your agents while you have none: opens the add-agent flow. */
|
|
86
|
+
export declare const SidebarAddAgent: <T extends React.ElementType<any> = "button">(props: import("..").AsOutProps<T, object>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
export declare type LobbyButtonProps = {
|
|
3
|
+
/** Dark is the one next step on the page; Outline is everything else (Join, Add, Open). */
|
|
4
|
+
variant?: "Dark" | "Outline";
|
|
5
|
+
/** Fills its card's width (Agent choice's Add). */
|
|
6
|
+
full?: boolean;
|
|
7
|
+
};
|
|
8
|
+
/** The Lobby's 32px button. */
|
|
9
|
+
export declare const LobbyButton: <T extends React.ElementType<any> = "button">(props: import("..").AsOutProps<T, LobbyButtonProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
10
|
+
export declare type LobbyProgressProps = {
|
|
11
|
+
done: number;
|
|
12
|
+
total?: number;
|
|
13
|
+
};
|
|
14
|
+
/** "1 of 3" and a 120×4 track, 40 filled per step done. */
|
|
15
|
+
export declare const LobbyProgress: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, LobbyProgressProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
16
|
+
export declare type LobbyStepState = "Done" | "Current" | "Todo";
|
|
17
|
+
export declare type LobbyStepProps = {
|
|
18
|
+
state: LobbyStepState;
|
|
19
|
+
number: number;
|
|
20
|
+
title: ReactNode;
|
|
21
|
+
description?: ReactNode;
|
|
22
|
+
/** Current: the label of its dark button. */
|
|
23
|
+
action?: ReactNode;
|
|
24
|
+
/** The step's action. Todo steps are still clickable: order isn't enforced. */
|
|
25
|
+
onAction?: () => void;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* One step of the checklist. Current is a raised white card with the page's one dark button;
|
|
29
|
+
* Done has an ink check and a quiet title; Todo has a number ring and a chevron.
|
|
30
|
+
*/
|
|
31
|
+
export declare const LobbyStep: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, LobbyStepProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
32
|
+
export declare type LobbyGetStartedProps = {
|
|
33
|
+
/** Steps done (the steps themselves are the children). */
|
|
34
|
+
done: number;
|
|
35
|
+
total?: number;
|
|
36
|
+
/** The ⋯ menu (Hide), from the app. */
|
|
37
|
+
menu?: ReactNode;
|
|
38
|
+
/** After the last step, for the rest of that day: "You're all set" and Hide now. */
|
|
39
|
+
allSet?: boolean;
|
|
40
|
+
onHide?: () => void;
|
|
41
|
+
};
|
|
42
|
+
/** The new person's checklist: Get started, its progress and its steps, in any order. */
|
|
43
|
+
export declare const LobbyGetStarted: <T extends React.ElementType<any> = "section">(props: import("..").AsOutProps<T, LobbyGetStartedProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The Lobby's column: 760 wide and centred in the conversation panel, 72 above and below, 40
|
|
4
|
+
* between sections. Below a 900px panel it goes full width with 32 at the sides.
|
|
5
|
+
*/
|
|
6
|
+
export declare const LobbyPage: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, object>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
7
|
+
export declare type LobbyHeroProps = {
|
|
8
|
+
/** Day one: "Welcome, <first name>". */
|
|
9
|
+
eyebrow?: ReactNode;
|
|
10
|
+
title: ReactNode;
|
|
11
|
+
line?: ReactNode;
|
|
12
|
+
/** Large on day one (32/40); medium once you're set up (28/36). */
|
|
13
|
+
size?: "large" | "medium";
|
|
14
|
+
/** Right of the title, e.g. the Needs you pill. */
|
|
15
|
+
aside?: ReactNode;
|
|
16
|
+
};
|
|
17
|
+
export declare const LobbyHero: <T extends React.ElementType<any> = "header">(props: import("..").AsOutProps<T, LobbyHeroProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
18
|
+
export declare type LobbySectionTitleProps = {
|
|
19
|
+
title: ReactNode;
|
|
20
|
+
/** The quiet link on the right ("Add an agent", "All rooms"). */
|
|
21
|
+
link?: ReactNode;
|
|
22
|
+
onLink?: () => void;
|
|
23
|
+
};
|
|
24
|
+
/** A section's H5 title, and an optional quiet link on the right (underlined on hover). */
|
|
25
|
+
export declare const LobbySectionTitle: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, LobbySectionTitleProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
26
|
+
/** One section: its title, then its content 12 below. */
|
|
27
|
+
export declare const LobbySection: <T extends React.ElementType<any> = "section">(props: import("..").AsOutProps<T, object>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|