@multiplayer-app/ai-agent-react 0.1.0-beta.34 → 0.1.0-beta.36
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/ai-agent-react.cjs.js +1 -1
- package/dist/ai-agent-react.cjs.js.map +1 -1
- package/dist/ai-agent-react.es.js +12 -7
- package/dist/ai-agent-react.es.js.map +1 -1
- package/dist/components/ToolRenderers/FormProposalToolRenderer/FormProposalToolRenderer.d.ts +1 -1
- package/dist/components/ToolRenderers/FormProposalToolRenderer/FormProposalToolRenderer.d.ts.map +1 -1
- package/dist/config/types.d.ts +1 -0
- package/dist/config/types.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -31122,7 +31122,12 @@ const J8e = (e) => {
|
|
|
31122
31122
|
fields: n,
|
|
31123
31123
|
notes: typeof t.notes == "string" ? t.notes : void 0
|
|
31124
31124
|
};
|
|
31125
|
-
}, t7e = ({
|
|
31125
|
+
}, t7e = ({
|
|
31126
|
+
call: e,
|
|
31127
|
+
chatId: t,
|
|
31128
|
+
applyAllButtonText: n,
|
|
31129
|
+
showStatus: r = !0
|
|
31130
|
+
}) => {
|
|
31126
31131
|
const a = bt(), i = _r(), o = Tt(() => e7e(e), [e]), [s, l] = Ot(/* @__PURE__ */ new Set()), u = Tt(() => {
|
|
31127
31132
|
const S = (e.output ?? {})?._mp?.lastAction, E = typeof S?.action == "string" ? S.action : void 0, F = typeof S?.at == "string" ? S.at : void 0;
|
|
31128
31133
|
return { action: E, at: F };
|
|
@@ -31156,11 +31161,6 @@ const J8e = (e) => {
|
|
|
31156
31161
|
), g = ot(
|
|
31157
31162
|
async (w) => {
|
|
31158
31163
|
if (o.formId) {
|
|
31159
|
-
try {
|
|
31160
|
-
await h({ action: "apply", fields: w });
|
|
31161
|
-
} catch {
|
|
31162
|
-
return;
|
|
31163
|
-
}
|
|
31164
31164
|
a.events.dispatchEvent(
|
|
31165
31165
|
new CustomEvent(M5, {
|
|
31166
31166
|
detail: {
|
|
@@ -31172,6 +31172,11 @@ const J8e = (e) => {
|
|
|
31172
31172
|
}
|
|
31173
31173
|
})
|
|
31174
31174
|
);
|
|
31175
|
+
try {
|
|
31176
|
+
await h({ action: "apply", fields: w });
|
|
31177
|
+
} catch {
|
|
31178
|
+
return;
|
|
31179
|
+
}
|
|
31175
31180
|
}
|
|
31176
31181
|
},
|
|
31177
31182
|
[o.formId, o.formName, t, e.id, a.events, h]
|
|
@@ -31229,7 +31234,7 @@ const J8e = (e) => {
|
|
|
31229
31234
|
w.name
|
|
31230
31235
|
)) }),
|
|
31231
31236
|
/* @__PURE__ */ T.jsxs("div", { className: "mp-agent-form-proposal-actions", children: [
|
|
31232
|
-
(d || p) && /* @__PURE__ */ T.jsxs("div", { className: "mp-agent-form-proposal-status", children: [
|
|
31237
|
+
r && (d || p) && /* @__PURE__ */ T.jsxs("div", { className: "mp-agent-form-proposal-status", children: [
|
|
31233
31238
|
/* @__PURE__ */ T.jsx("span", { className: `mp-agent-form-proposal-badge ${d ? "is-applied" : "is-rejected"}`, children: d ? i.formProposalApplied : i.formProposalRejected }),
|
|
31234
31239
|
u.at ? /* @__PURE__ */ T.jsx("span", { className: "mp-agent-form-proposal-status-time", children: /* @__PURE__ */ T.jsx(Yve, { date: u.at }) }) : null
|
|
31235
31240
|
] }),
|