@ag2/weave 0.14.0 → 0.15.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.
@@ -104,6 +104,7 @@ export declare const Icons: {
104
104
  RecentClock: IconSrc;
105
105
  Power: IconSrc;
106
106
  ReplyArrow: IconSrc;
107
+ ForwardArrow: IconSrc;
107
108
  ArrowGoRight: IconSrc;
108
109
  ArrowGoRightPlus: IconSrc;
109
110
  ArrowGoRightCross: IconSrc;
@@ -66,4 +66,5 @@ export * from "./surface-toolbar";
66
66
  export * from "./dock";
67
67
  export * from "./inspector-tabs";
68
68
  export * from "./activity-item";
69
+ export * from "./quote-card";
69
70
  export * from "./orb-background";
@@ -0,0 +1,9 @@
1
+ export declare const QuoteCard: string;
2
+ export declare const Head: string;
3
+ export declare const Glyph: string;
4
+ export declare const Face: string;
5
+ export declare const Name: string;
6
+ export declare const Time: string;
7
+ export declare const Snippet: string;
8
+ export declare const FileRow: string;
9
+ export declare const Deleted: string;
@@ -0,0 +1,21 @@
1
+ import React, { ReactNode } from "react";
2
+ export declare type QuoteCardContext = "Reply" | "File" | "Forwarded" | "Deleted";
3
+ export declare type QuoteCardProps = {
4
+ /** Reply, a file-only parent, a forwarded message, or a parent that was deleted. */
5
+ context?: QuoteCardContext;
6
+ /** 20px: a photo, an initial, or an agent's mark. */
7
+ avatar?: ReactNode;
8
+ /** "You" when it's yours. */
9
+ name?: string;
10
+ time?: string;
11
+ /** Forwarded: where it came from, after the time ("Direct message", "#Invoke Only"). */
12
+ source?: string;
13
+ /** The parent's text, flattened, at most two lines. For a file: "Type · title". */
14
+ snippet?: ReactNode;
15
+ };
16
+ /**
17
+ * The parent of a reply, or a forwarded message, as one card you can't mistake for the reply.
18
+ * A button that jumps to the message (`as="div"` for a card that isn't a target); a deleted
19
+ * parent is never a target.
20
+ */
21
+ export declare const QuoteCard: <T extends React.ElementType<any> = "button">(props: import("..").AsOutProps<T, QuoteCardProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
@@ -0,0 +1,6 @@
1
+ export declare const ReplyBar: string;
2
+ export declare const Glyph: string;
3
+ export declare const What: string;
4
+ export declare const Name: string;
5
+ export declare const Mention: string;
6
+ export declare const Close: string;
@@ -0,0 +1,12 @@
1
+ import React, { ReactNode } from "react";
2
+ export declare type ReplyBarProps = {
3
+ /** Who you're replying to. */
4
+ name: string;
5
+ /** Their message, one line. */
6
+ snippet?: ReactNode;
7
+ /** Whether the reply mentions (notifies) them. Leave out to hide the control. */
8
+ mention?: boolean;
9
+ onMentionChange?: (mention: boolean) => void;
10
+ onCancel?: () => void;
11
+ };
12
+ export declare const ReplyBar: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, ReplyBarProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
@@ -0,0 +1,2 @@
1
+ export * from "./QuoteCard";
2
+ export * from "./ReplyBar";