wacomm 1.67.5 → 1.68.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.
@@ -1,7 +1,6 @@
1
1
  export interface TextUpdaterProps {
2
2
  text: string;
3
3
  onSave: (v: string) => void;
4
- isLoading: boolean;
5
4
  isEditing: boolean;
6
5
  minRows?: number;
7
6
  maxRows?: number;
@@ -11,5 +10,5 @@ export interface TextUpdaterProps {
11
10
  classNameNonEditing?: string;
12
11
  disabled?: boolean;
13
12
  }
14
- declare function TextUpdater({ text: textInit, onSave, isLoading, isEditing, minRows, maxRows, setIsEditing, placeholder, classNameEditing, classNameNonEditing, disabled }: TextUpdaterProps): import("react/jsx-runtime").JSX.Element;
13
+ declare function TextUpdater({ text: textInit, onSave, isEditing, minRows, maxRows, setIsEditing, placeholder, classNameEditing, classNameNonEditing, disabled }: TextUpdaterProps): import("react/jsx-runtime").JSX.Element;
15
14
  export default TextUpdater;
@@ -9392,30 +9392,29 @@ const jT = ({
9392
9392
  function sj({
9393
9393
  text: e,
9394
9394
  onSave: t,
9395
- isLoading: o,
9396
- isEditing: n,
9397
- minRows: r = 1,
9398
- maxRows: s = 1,
9399
- setIsEditing: i,
9400
- placeholder: a = "A brief introduction...",
9401
- classNameEditing: l = "",
9402
- classNameNonEditing: c = "",
9403
- disabled: u = !1
9395
+ isEditing: o,
9396
+ minRows: n = 1,
9397
+ maxRows: r = 1,
9398
+ setIsEditing: s,
9399
+ placeholder: i = "A brief introduction...",
9400
+ classNameEditing: a = "",
9401
+ classNameNonEditing: l = "",
9402
+ disabled: c = !1
9404
9403
  }) {
9405
- const p = () => i(!1), [f, d] = Ue(e);
9404
+ const u = () => s(!1), [p, f] = Ue(e);
9406
9405
  return Rb(() => {
9407
- n && p();
9408
- }), n ? /* @__PURE__ */ b.jsxs(Ts, { className: "TextUpdaterEditing w-full gap-2", children: [
9406
+ o && u();
9407
+ }), o ? /* @__PURE__ */ b.jsxs(Ts, { className: "TextUpdaterEditing w-full gap-2", children: [
9409
9408
  /* @__PURE__ */ b.jsx(
9410
9409
  jT,
9411
9410
  {
9412
- className: Pe("bg-gray-100 border border-gray-300 rounded-lg", l),
9413
- minRows: r,
9414
- maxRows: s,
9415
- placeholder: a,
9416
- text: f,
9417
- onChange: d,
9418
- disabled: u
9411
+ className: Pe("bg-gray-100 border border-gray-300 rounded-lg", a),
9412
+ minRows: n,
9413
+ maxRows: r,
9414
+ placeholder: i,
9415
+ text: p,
9416
+ onChange: f,
9417
+ disabled: c
9419
9418
  }
9420
9419
  ),
9421
9420
  /* @__PURE__ */ b.jsx(
@@ -9424,20 +9423,20 @@ function sj({
9424
9423
  saveLabel: "Save",
9425
9424
  cancelLabel: "Cancel",
9426
9425
  onSave: () => {
9427
- t(f), p();
9426
+ t(p), u();
9428
9427
  },
9429
- onCancel: p,
9430
- isSaveDisabled: f.length === 0 || o,
9431
- isCancelDisabled: o
9428
+ onCancel: u,
9429
+ isSaveDisabled: !p || p.trim().length === 0 || c,
9430
+ isCancelDisabled: c
9432
9431
  }
9433
9432
  )
9434
9433
  ] }) : /* @__PURE__ */ b.jsxs(
9435
9434
  eo,
9436
9435
  {
9437
- className: Pe("TextUpdaterNonEditing w-full gap-2 items-start", c),
9436
+ className: Pe("TextUpdaterNonEditing w-full gap-2 items-start", l),
9438
9437
  children: [
9439
- /* @__PURE__ */ b.jsx(oh, { className: Pe("grow", c), text: f, placeholder: a }),
9440
- /* @__PURE__ */ b.jsx(th, { className: "cursor-pointer", onClick: () => i(!0), isHighlighted: !0 })
9438
+ /* @__PURE__ */ b.jsx(oh, { className: Pe("grow", l), text: p, placeholder: i }),
9439
+ /* @__PURE__ */ b.jsx(th, { className: "cursor-pointer", onClick: () => s(!0), isHighlighted: !0 })
9441
9440
  ]
9442
9441
  }
9443
9442
  );
@@ -39010,11 +39009,11 @@ function sO(e) {
39010
39009
  }, [r]), null;
39011
39010
  }
39012
39011
  const xL = vr(sO);
39013
- const iO = import("./maplibre-gl-DveZ3my2.mjs").then((e) => e.m), aO = P.forwardRef(function(t, o) {
39012
+ const iO = import("./maplibre-gl-Dn7ceRi-.mjs").then((e) => e.m), aO = P.forwardRef(function(t, o) {
39014
39013
  return Wg(t, o, iO);
39015
39014
  }), lO = qg;
39016
39015
  const cO = rO;
39017
- const uO = import("./mapbox-gl-BS6I54Ye.mjs").then((e) => e.m), CL = P.forwardRef(function(t, o) {
39016
+ const uO = import("./mapbox-gl-D-7cHwFO.mjs").then((e) => e.m), CL = P.forwardRef(function(t, o) {
39018
39017
  return Wg(t, o, uO);
39019
39018
  }), pO = qg;
39020
39019
  function dO({ locations: e }) {
@@ -39025,39 +39024,40 @@ function dO({ locations: e }) {
39025
39024
  const wL = ({
39026
39025
  longitude: e,
39027
39026
  latitude: t,
39028
- setCoordinates: o,
39029
- locations: n = [],
39030
- token: r,
39031
- navigationControl: s
39027
+ zoom: o = 10,
39028
+ setCoordinates: n,
39029
+ locations: r = [],
39030
+ token: s,
39031
+ navigationControl: i
39032
39032
  }) => {
39033
- const i = dt(null), [a, l] = Ue({
39033
+ const a = dt(null), [l, c] = Ue({
39034
39034
  longitude: e,
39035
39035
  latitude: t,
39036
- zoom: 10
39036
+ zoom: o
39037
39037
  });
39038
39038
  return Ge(() => {
39039
- i.current && e !== void 0 && t !== void 0 && i.current.flyTo({
39039
+ a.current && a.current.flyTo({
39040
39040
  center: [e, t],
39041
- zoom: 10,
39041
+ zoom: o,
39042
39042
  duration: 3e3,
39043
39043
  essential: !0
39044
39044
  });
39045
- }, [t, e]), /* @__PURE__ */ b.jsxs(
39045
+ }, [t, e, o]), /* @__PURE__ */ b.jsxs(
39046
39046
  aO,
39047
39047
  {
39048
- ref: i,
39049
- ...a,
39050
- mapStyle: `https://tiles.locationiq.com/v3/streets/vector.json?key=${r}`,
39048
+ ref: a,
39049
+ ...l,
39050
+ mapStyle: `https://tiles.locationiq.com/v3/streets/vector.json?key=${s}`,
39051
39051
  style: { width: "100%", height: "100%" },
39052
- onMove: (c) => l(c.viewState),
39053
- onClick: (c) => {
39054
- const { lng: u, lat: p } = c.lngLat;
39055
- o && o({ lat: p, lng: u });
39052
+ onMove: (u) => c(u.viewState),
39053
+ onClick: (u) => {
39054
+ const { lng: p, lat: f } = u.lngLat;
39055
+ n && n({ lat: f, lng: p });
39056
39056
  },
39057
39057
  children: [
39058
- e !== void 0 && t !== void 0 && /* @__PURE__ */ b.jsx(lO, { longitude: e, latitude: t, children: "📌" }),
39059
- /* @__PURE__ */ b.jsx(dO, { locations: n }),
39060
- s.isDisplayed && /* @__PURE__ */ b.jsx(cO, { position: s.position })
39058
+ /* @__PURE__ */ b.jsx(lO, { longitude: e, latitude: t, children: "📌" }),
39059
+ /* @__PURE__ */ b.jsx(dO, { locations: r }),
39060
+ /* @__PURE__ */ b.jsx(cO, { position: i.position })
39061
39061
  ]
39062
39062
  }
39063
39063
  );