@ag2/weave 0.14.0 → 0.15.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/dist/components/icon/Icons.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/quote-card/QuoteCard.css.d.ts +9 -0
- package/dist/components/quote-card/QuoteCard.d.ts +21 -0
- package/dist/components/quote-card/ReplyBar.css.d.ts +6 -0
- package/dist/components/quote-card/ReplyBar.d.ts +12 -0
- package/dist/components/quote-card/index.d.ts +2 -0
- package/dist/index.js +1698 -1550
- package/dist/index.js.map +1 -1
- package/dist/style.css +134 -0
- package/package.json +1 -1
|
@@ -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,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;
|