@ag2/weave 0.7.0 → 0.8.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/agent-tag/AgentTag.d.ts +1 -1
- package/dist/components/agent-tag/MemberTypeTag.css.d.ts +12 -0
- package/dist/components/agent-tag/MemberTypeTag.d.ts +5 -0
- package/dist/components/agent-tag/index.d.ts +1 -0
- package/dist/index.js +20 -19
- package/dist/index.js.map +1 -1
- package/dist/style.css +22 -0
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* - `AgentMark`, rendered INSIDE the avatar's presence badge (see PresenceBadge
|
|
7
7
|
* `glyph` prop) so "this is an agent" and the agent's presence colour are one
|
|
8
8
|
* combined mark instead of two competing corner badges, and
|
|
9
|
-
* - `AgentNameTag`, the
|
|
9
|
+
* - `AgentNameTag`, the shared "Agent" account-type pill after the display name.
|
|
10
10
|
*
|
|
11
11
|
* The mark was a bot glyph, then an "S" the owner asked for (2026-07-05), and is
|
|
12
12
|
* a bot glyph again. `isAgentMxid` says an account is an agent; it cannot say
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const MemberTypeTag: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
2
|
+
kind: {
|
|
3
|
+
agent: {
|
|
4
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
5
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
6
|
+
};
|
|
7
|
+
human: {
|
|
8
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
9
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
}>;
|
package/dist/index.js
CHANGED
|
@@ -6310,6 +6310,24 @@ const SidebarStackSeparator = () => /* @__PURE__ */ jsx(
|
|
|
6310
6310
|
}
|
|
6311
6311
|
);
|
|
6312
6312
|
const AgentGlyph = ({ size = 20 }) => /* @__PURE__ */ jsx(n$g, { size, "aria-hidden": true, focusable: false });
|
|
6313
|
+
const MemberTypeTag_css_ts_vanilla = "";
|
|
6314
|
+
var MemberTypeTag$1 = createRuntimeFn({ defaultClassName: "tu4p1k0 _8nex5a1 _8nex5a0", variantClassNames: { kind: { agent: "tu4p1k1", human: "tu4p1k2" } }, defaultVariants: {}, compoundVariants: [] });
|
|
6315
|
+
const MemberTypeTag = ({ kind }) => {
|
|
6316
|
+
const label = kind === "agent" ? "Agent" : "Human";
|
|
6317
|
+
return /* @__PURE__ */ jsxs(
|
|
6318
|
+
"span",
|
|
6319
|
+
{
|
|
6320
|
+
className: MemberTypeTag$1({ kind }),
|
|
6321
|
+
"data-member-type": kind,
|
|
6322
|
+
title: label,
|
|
6323
|
+
"aria-label": label,
|
|
6324
|
+
children: [
|
|
6325
|
+
kind === "agent" ? /* @__PURE__ */ jsx(AgentGlyph, { size: 12 }) : /* @__PURE__ */ jsx(n$6, { size: 12, "aria-hidden": true, focusable: false }),
|
|
6326
|
+
/* @__PURE__ */ jsx("span", { children: label })
|
|
6327
|
+
]
|
|
6328
|
+
}
|
|
6329
|
+
);
|
|
6330
|
+
};
|
|
6313
6331
|
const AgentMark = ({ size = 10 }) => /* @__PURE__ */ jsx(
|
|
6314
6332
|
"span",
|
|
6315
6333
|
{
|
|
@@ -6323,25 +6341,7 @@ const AgentMark = ({ size = 10 }) => /* @__PURE__ */ jsx(
|
|
|
6323
6341
|
children: /* @__PURE__ */ jsx(AgentGlyph, { size, strokeWidth: 2.8 })
|
|
6324
6342
|
}
|
|
6325
6343
|
);
|
|
6326
|
-
const AgentNameTag = () => /* @__PURE__ */ jsx(
|
|
6327
|
-
Badge,
|
|
6328
|
-
{
|
|
6329
|
-
as: "span",
|
|
6330
|
-
variant: "Secondary",
|
|
6331
|
-
fill: "Soft",
|
|
6332
|
-
radii: "300",
|
|
6333
|
-
style: {
|
|
6334
|
-
display: "inline-flex",
|
|
6335
|
-
alignItems: "center",
|
|
6336
|
-
justifyContent: "center",
|
|
6337
|
-
padding: `0 ${toRem(5)}`,
|
|
6338
|
-
opacity: 0.85
|
|
6339
|
-
},
|
|
6340
|
-
title: "Agent",
|
|
6341
|
-
"aria-label": "Agent",
|
|
6342
|
-
children: /* @__PURE__ */ jsx(Text, { as: "span", size: "L400", style: { fontWeight: 500, letterSpacing: "0.01em" }, children: "Agent" })
|
|
6343
|
-
}
|
|
6344
|
-
);
|
|
6344
|
+
const AgentNameTag = () => /* @__PURE__ */ jsx(MemberTypeTag, { kind: "agent" });
|
|
6345
6345
|
const normalizeIconSize = (size) => size <= 16 ? 16 : 20;
|
|
6346
6346
|
const PeopleGlyph = ({ size = 20 }) => /* @__PURE__ */ jsx(n$4, { size: normalizeIconSize(size), "aria-hidden": true, focusable: false });
|
|
6347
6347
|
const SkillGlyph = ({ size = 20 }) => /* @__PURE__ */ jsx(s$a, { size: normalizeIconSize(size), "aria-hidden": true, focusable: false });
|
|
@@ -8198,6 +8198,7 @@ export {
|
|
|
8198
8198
|
Input,
|
|
8199
8199
|
Line,
|
|
8200
8200
|
MOBILE_BREAKPOINT,
|
|
8201
|
+
MemberTypeTag,
|
|
8201
8202
|
Menu,
|
|
8202
8203
|
MenuItem,
|
|
8203
8204
|
Modal,
|