@ai-matrx/messaging 0.15.19 → 0.15.21
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/CHANGELOG.md +12 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +9 -4
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +2 -0
- package/dist/react.d.ts +2 -0
- package/dist/react.js +9 -4
- package/dist/react.js.map +1 -1
- package/dist/styles.css +30 -6
- package/package.json +4 -4
package/dist/react.cjs
CHANGED
|
@@ -3545,6 +3545,8 @@ var UsersIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
|
3545
3545
|
]
|
|
3546
3546
|
}
|
|
3547
3547
|
);
|
|
3548
|
+
var VideoIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Icon, { ...props, paths: ["M16 8l6-4v16l-6-4", "M4 6h10a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z"] });
|
|
3549
|
+
var PhoneIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Icon, { ...props, paths: "M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 2 .7 2.9a2 2 0 0 1-.5 2.1L8 10a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.9.6 2.9.7a2 2 0 0 1 1.7 2z" });
|
|
3548
3550
|
|
|
3549
3551
|
// src/react/parts.tsx
|
|
3550
3552
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
@@ -4228,14 +4230,14 @@ function MessageActionChips(props) {
|
|
|
4228
4230
|
if (declared !== null && renderer !== void 0) {
|
|
4229
4231
|
if (!renderer.versions.includes(declared.version)) return null;
|
|
4230
4232
|
const Render = renderer.render;
|
|
4231
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
4233
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "mx-msg__chips", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
4232
4234
|
Render,
|
|
4233
4235
|
{
|
|
4234
4236
|
message: props.message,
|
|
4235
4237
|
payload: declared.payload,
|
|
4236
4238
|
isOwn: props.message.senderId === host.identity.userId
|
|
4237
4239
|
}
|
|
4238
|
-
);
|
|
4240
|
+
) });
|
|
4239
4241
|
}
|
|
4240
4242
|
if (action.receipt !== null) {
|
|
4241
4243
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "mx-msg__receipt", children: [
|
|
@@ -4244,14 +4246,17 @@ function MessageActionChips(props) {
|
|
|
4244
4246
|
] });
|
|
4245
4247
|
}
|
|
4246
4248
|
if (action.choices.length === 0) return null;
|
|
4247
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "mx-msg__chips", children: action.choices.map((choice) => /* @__PURE__ */ (0, import_jsx_runtime4.
|
|
4249
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "mx-msg__chips", children: action.choices.map((choice) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
4248
4250
|
"button",
|
|
4249
4251
|
{
|
|
4250
4252
|
type: "button",
|
|
4251
4253
|
className: `mx-msg__chip${choice.tone === "primary" ? " mx-msg__chip--primary" : choice.tone === "danger" ? " mx-msg__chip--danger" : ""}`,
|
|
4252
4254
|
disabled: action.isRunning,
|
|
4253
4255
|
onClick: () => action.execute(choice.id),
|
|
4254
|
-
children:
|
|
4256
|
+
children: [
|
|
4257
|
+
choice.icon === "video" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(VideoIcon, {}) : choice.icon === "phone" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PhoneIcon, {}) : null,
|
|
4258
|
+
choice.label
|
|
4259
|
+
]
|
|
4255
4260
|
},
|
|
4256
4261
|
choice.id
|
|
4257
4262
|
)) });
|