@tumaet/apollon 4.2.23 → 4.3.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.
Files changed (2) hide show
  1. package/dist/index.js +11 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -60379,25 +60379,24 @@ const fn = ({ score: e, x: t, y: n }) => {
60379
60379
  );
60380
60380
  if (!o)
60381
60381
  return null;
60382
- const [i, a] = B.useState(o.data.name), l = () => {
60383
- n(
60384
- (u) => u.map((p) => p.id === e ? {
60385
- ...p,
60386
- data: { ...p.data, name: i }
60387
- } : p)
60382
+ const [i, a] = B.useState(o.data.name), l = (u) => {
60383
+ a(u), n(
60384
+ (p) => p.map((h) => h.id === e ? {
60385
+ ...h,
60386
+ data: {
60387
+ ...h.data,
60388
+ name: u
60389
+ }
60390
+ } : h)
60388
60391
  );
60389
60392
  };
60390
- return /* @__PURE__ */ m.jsx(Sn, { sx: { width: 300, padding: 2 }, children: /* @__PURE__ */ m.jsx(
60393
+ return /* @__PURE__ */ m.jsx(Sn, { sx: { width: "auto", padding: 2 }, children: /* @__PURE__ */ m.jsx(
60391
60394
  Mr,
60392
60395
  {
60393
60396
  fullWidth: !0,
60394
60397
  label: "Pool Name",
60395
60398
  value: i,
60396
- onChange: (u) => a(u.target.value),
60397
- onBlur: l,
60398
- onKeyPress: (u) => {
60399
- u.key === "Enter" && l();
60400
- },
60399
+ onChange: (u) => l(u.target.value),
60401
60400
  variant: "outlined",
60402
60401
  size: "small"
60403
60402
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tumaet/apollon",
3
- "version": "4.2.23",
3
+ "version": "4.3.0",
4
4
  "description": "An embeddable UML modeling editor for React. 13 diagram types, SVG/PNG/PDF/JSON export, optional real-time collaboration via Yjs.",
5
5
  "keywords": [
6
6
  "apollon",