@ag2/weave 0.6.0-direction-d.1 → 0.6.0-direction-d.2
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/DIRECTION_D_PREVIEW.json +2 -2
- package/dist/components/call/Call.d.ts +2 -1
- package/dist/components/call/CallMicrophoneButton.d.ts +15 -0
- package/dist/components/call/index.d.ts +1 -0
- package/dist/components/composer/Composer.css.d.ts +18 -1
- package/dist/components/composer/Composer.d.ts +15 -5
- package/dist/components/dock/Dock.css.d.ts +2 -0
- package/dist/components/dock/Dock.d.ts +4 -0
- package/dist/components/icon/Icons.d.ts +1 -1
- package/dist/index.js +524 -372
- package/dist/index.js.map +1 -1
- package/dist/style.css +32 -5
- package/package.json +1 -1
package/DIRECTION_D_PREVIEW.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"commit": "
|
|
2
|
+
"commit": "7bac1793be04a49524921a36cc61394b3006fab5",
|
|
3
3
|
"branch": "direction-d-prerelease",
|
|
4
|
-
"version": "0.6.0-direction-d.
|
|
4
|
+
"version": "0.6.0-direction-d.2",
|
|
5
5
|
"repository": "https://github.com/ag2-space/weave.git"
|
|
6
6
|
}
|
|
@@ -11,6 +11,7 @@ export declare type CallControlLabels = {
|
|
|
11
11
|
};
|
|
12
12
|
export declare type CallControlsProps = {
|
|
13
13
|
microphone: boolean;
|
|
14
|
+
microphoneHeldLabel?: string | null;
|
|
14
15
|
camera?: boolean;
|
|
15
16
|
sharing?: boolean;
|
|
16
17
|
disabled?: boolean;
|
|
@@ -24,7 +25,7 @@ export declare type CallControlsProps = {
|
|
|
24
25
|
menu?: ReactNode;
|
|
25
26
|
labels?: Partial<CallControlLabels>;
|
|
26
27
|
};
|
|
27
|
-
export declare const CallControls: ({ microphone, camera, sharing, disabled, compact, onMicrophoneChange, onCameraChange, onSharingChange, onChat, onLeave, before, menu, labels, }: CallControlsProps) => JSX.Element;
|
|
28
|
+
export declare const CallControls: ({ microphone, microphoneHeldLabel, camera, sharing, disabled, compact, onMicrophoneChange, onCameraChange, onSharingChange, onChat, onLeave, before, menu, labels, }: CallControlsProps) => JSX.Element;
|
|
28
29
|
export declare type CallStatusStripProps = {
|
|
29
30
|
status: ReactNode;
|
|
30
31
|
room: ReactNode;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { ComponentProps } from "react";
|
|
2
|
+
import { Icon } from "../icon";
|
|
3
|
+
import { IconButton } from "../icon-button";
|
|
4
|
+
export declare type CallMicrophoneButtonProps = {
|
|
5
|
+
microphone: boolean;
|
|
6
|
+
onMicrophoneChange?: (enabled: boolean) => void;
|
|
7
|
+
/** Resolved by the client's mute authority; a nonempty reason blocks activation. */
|
|
8
|
+
heldLabel?: string | null;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
size?: ComponentProps<typeof IconButton>["size"];
|
|
11
|
+
iconSize?: ComponentProps<typeof Icon>["size"];
|
|
12
|
+
muteLabel?: string;
|
|
13
|
+
unmuteLabel?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const CallMicrophoneButton: React.ForwardRefExoticComponent<CallMicrophoneButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
export declare const Root:
|
|
1
|
+
export declare const Root: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
2
|
+
inset: {
|
|
3
|
+
true: {
|
|
4
|
+
padding: `0 var(--${string}) var(--${string})` | `0 var(--${string}) var(--${string}, ${string})` | `0 var(--${string}) var(--${string}, ${number})` | `0 var(--${string}, ${string}) var(--${string})` | `0 var(--${string}, ${string}) var(--${string}, ${string})` | `0 var(--${string}, ${string}) var(--${string}, ${number})` | `0 var(--${string}, ${number}) var(--${string})` | `0 var(--${string}, ${number}) var(--${string}, ${string})` | `0 var(--${string}, ${number}) var(--${string}, ${number})`;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
}>;
|
|
8
|
+
export declare const Row: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
9
|
+
layout: {
|
|
10
|
+
stacked: {
|
|
11
|
+
flexDirection: "column";
|
|
12
|
+
};
|
|
13
|
+
inline: {
|
|
14
|
+
alignItems: "flex-start";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}>;
|
|
18
|
+
export declare const Controls: string;
|
|
2
19
|
export declare const Fieldset: string;
|
|
3
20
|
export declare const Editor: string;
|
|
4
21
|
export declare const Placeholder: string;
|
|
@@ -8,11 +8,21 @@ export declare type ComposerAction = {
|
|
|
8
8
|
pressed?: boolean;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
};
|
|
11
|
+
export declare type ComposerState = {
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
busy: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare type ComposerSlot = ReactNode | ((state: ComposerState) => ReactNode);
|
|
11
16
|
export declare type ComposerShellProps = {
|
|
12
|
-
editor: (state:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
editor: (state: ComposerState) => ReactNode;
|
|
18
|
+
/** Inline keeps leading controls, the editor and Send on one row. */
|
|
19
|
+
layout?: "stacked" | "inline";
|
|
20
|
+
/** Disable when the client already supplies the outer page spacing. */
|
|
21
|
+
inset?: boolean;
|
|
22
|
+
before?: ComposerSlot;
|
|
23
|
+
after?: ComposerSlot;
|
|
24
|
+
/** Extra content inside the surface, below the editing row. */
|
|
25
|
+
bottom?: ComposerSlot;
|
|
16
26
|
actions?: ComposerAction[];
|
|
17
27
|
attachments?: ReactNode;
|
|
18
28
|
context?: ReactNode;
|
|
@@ -25,7 +35,7 @@ export declare type ComposerShellProps = {
|
|
|
25
35
|
sendLabel?: string;
|
|
26
36
|
};
|
|
27
37
|
/** The client owns the editor, drafts, key bindings, uploads and sending. */
|
|
28
|
-
export declare const ComposerShell: ({ editor, actions, attachments, context, footer, disabled, busy, canSend, onSend, label, sendLabel, }: ComposerShellProps) => JSX.Element;
|
|
38
|
+
export declare const ComposerShell: ({ editor, layout, inset, before, after, bottom, actions, attachments, context, footer, disabled, busy, canSend, onSend, label, sendLabel, }: ComposerShellProps) => JSX.Element;
|
|
29
39
|
export declare const ComposerPlaceholder: ({ children }: {
|
|
30
40
|
children: ReactNode;
|
|
31
41
|
}) => JSX.Element;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
2
|
export declare type DockProps = {
|
|
3
3
|
title: string;
|
|
4
|
+
/** Embedded apps own scrolling and fill the space below the header. */
|
|
5
|
+
contentMode?: "scroll" | "fill";
|
|
6
|
+
/** Fill a caller-sized pane instead of using the default 320px width. */
|
|
7
|
+
stretch?: boolean;
|
|
4
8
|
count?: number;
|
|
5
9
|
after?: ReactNode;
|
|
6
10
|
onClose?: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare type IconSrc = (filled?: boolean) => JSX.Element;
|
|
2
|
-
export declare type IconName = "Home" | "User" | "UserPlus" | "Mail" | "MailPlus" | "Star" | "PlusCircle" | "Explore" | "Smile" | "SmilePlus" | "Leaf" | "Sticker" | "Delete" | "Phone" | "PhoneDown" | "Headphone" | "HeadphoneMute" | "Send" | "Bell" | "BellRing" | "BellPing" | "BellMute" | "Message" | "MessageUnread" | "Setting" | "Search" | "Heart" | "Play" | "Pause" | "Sun" | "Photo" | "Lock" | "Vlc" | "Flag" | "Ball" | "Bulb" | "Terminal" | "Pencil" | "Info" | "Shield" | "ShieldLock" | "ShieldUser" | "Cup" | "Pin" | "VolumeHigh" | "VolumeHighLock" | "VolumeHighGlobe" | "VolumeMute" | "File" | "Category" | "Peace" | "Eye" | "EyeBlind" | "Warning" | "Funnel" | "Bookmark" | "Inbox" | "Thread" | "ThreadPlus" | "ThreadUnread" | "ThreadReply" | "Monitor" | "ScreenShare" | "Server" | "Prohibited" | "NoEntry" | "Mic" | "MicMute" | "VideoCamera" | "VideoCameraMute" | "Hash" | "HashLock" | "HashGlobe" | "HashSearch" | "HashPlus" | "Space" | "SpaceLock" | "SpaceGlobe" | "SpaceSearch" | "SpacePlus" | "ChevronRight" | "ChevronLeft" | "ChevronTop" | "ChevronBottom" | "Plus" | "Minus" | "Cross" | "VerticalDots" | "HorizontalDots" | "Check" | "CheckTwice" | "Download" | "External" | "Clock" | "RecentClock" | "Power" | "ReplyArrow" | "ArrowGoRight" | "ArrowGoRightPlus" | "ArrowGoRightCross" | "ArrowGoLeft" | "Markdown" | "Attachment" | "Alphabet" | "AlphabetUnderline" | "Text" | "Heading1" | "Heading2" | "Heading3" | "Bold" | "Italic" | "Underline" | "Strike" | "Link" | "Code" | "BlockCode" | "BlockQuote" | "OrderList" | "UnorderList" | "Mention" | "Filter" | "Sort" | "ArrowUpDown" | "ArrowRight" | "ArrowLeft" | "ArrowTop" | "ArrowBottom" | "ArrowDropRight" | "ArrowDropLeft" | "ArrowDropTop" | "ArrowDropBottom" | "Reload" | "Globe" | "Agent" | "People" | "PullRequest" | "Smartphone" | "Unavailable" | "Admin";
|
|
2
|
+
export declare type IconName = "Home" | "User" | "UserPlus" | "Mail" | "MailPlus" | "Star" | "PlusCircle" | "Explore" | "Smile" | "SmilePlus" | "Leaf" | "Sticker" | "Delete" | "Phone" | "PhoneDown" | "Headphone" | "HeadphoneMute" | "Send" | "Bell" | "BellRing" | "BellPing" | "BellMute" | "Message" | "MessageUnread" | "Setting" | "Search" | "Heart" | "Play" | "Pause" | "Sun" | "Photo" | "Lock" | "Vlc" | "Flag" | "Ball" | "Bulb" | "Terminal" | "Pencil" | "Info" | "Shield" | "ShieldLock" | "ShieldUser" | "Cup" | "Pin" | "VolumeHigh" | "VolumeHighLock" | "VolumeHighGlobe" | "VolumeMute" | "File" | "Category" | "Peace" | "Eye" | "EyeBlind" | "Warning" | "Funnel" | "Bookmark" | "Inbox" | "Thread" | "ThreadPlus" | "ThreadUnread" | "ThreadReply" | "Monitor" | "ScreenShare" | "Server" | "Prohibited" | "NoEntry" | "Mic" | "MicMute" | "VideoCamera" | "VideoCameraMute" | "Hash" | "HashLock" | "HashGlobe" | "HashSearch" | "HashPlus" | "Space" | "SpaceLock" | "SpaceGlobe" | "SpaceSearch" | "SpacePlus" | "ChevronRight" | "ChevronLeft" | "ChevronTop" | "ChevronBottom" | "Plus" | "Minus" | "Cross" | "VerticalDots" | "HorizontalDots" | "Check" | "CheckTwice" | "Download" | "External" | "Clock" | "RecentClock" | "Power" | "ReplyArrow" | "ArrowGoRight" | "ArrowGoRightPlus" | "ArrowGoRightCross" | "ArrowGoLeft" | "Markdown" | "Attachment" | "Alphabet" | "AlphabetUnderline" | "Text" | "Heading1" | "Heading2" | "Heading3" | "Bold" | "Italic" | "Underline" | "Strike" | "Link" | "Code" | "BlockCode" | "BlockQuote" | "OrderList" | "UnorderList" | "Mention" | "Filter" | "Sort" | "ArrowUpDown" | "ArrowRight" | "ArrowLeft" | "ArrowTop" | "ArrowBottom" | "ArrowDropRight" | "ArrowDropLeft" | "ArrowDropTop" | "ArrowDropBottom" | "Reload" | "Globe" | "Agent" | "People" | "PullRequest" | "Smartphone" | "Unavailable" | "Admin" | "Board" | "App" | "Expand" | "Collapse";
|
|
3
3
|
export declare const Icons: Record<IconName, IconSrc>;
|