@corpsmap/corpsmap 4.1.10 → 4.1.12

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.
@@ -37,7 +37,7 @@ import Projection from "ol/proj/Projection";
37
37
  import proj4 from "proj4";
38
38
  import _ from "lodash";
39
39
  import { createPortal } from "react-dom";
40
- import ReactDOM from "react-dom/client";
40
+ import { createRoot } from "react-dom/client";
41
41
  import Overlay$1 from "ol/Overlay";
42
42
  import Draw from "ol/interaction/Draw";
43
43
  import Select$1 from "ol/interaction/Select";
@@ -12841,7 +12841,7 @@ const config$1 = {
12841
12841
  path: "depricated"
12842
12842
  }
12843
12843
  ]
12844
- }, version = "4.1.10", pkg = {
12844
+ }, version = "4.1.12", pkg = {
12845
12845
  version
12846
12846
  };
12847
12847
  console.log("------ RUNNING CORPSMAP V." + pkg.version + " ------");
@@ -24053,7 +24053,7 @@ const throttle = /* @__PURE__ */ getDefaultExportFromCjs$1(throttleExports), bun
24053
24053
  positioning: "bottom-center",
24054
24054
  offset: [0, -10]
24055
24055
  });
24056
- o.addOverlay(m), ReactDOM.render(
24056
+ o.addOverlay(m), createRoot(g).render(
24057
24057
  /* @__PURE__ */ jsx$1(
24058
24058
  CoordinatePopup,
24059
24059
  {
@@ -24062,8 +24062,7 @@ const throttle = /* @__PURE__ */ getDefaultExportFromCjs$1(throttleExports), bun
24062
24062
  map: o,
24063
24063
  onClear: a.doClearPopup
24064
24064
  }
24065
- ),
24066
- g
24065
+ )
24067
24066
  ), m.setPosition(e), r({
24068
24067
  type: "COORD_OVERLAY_RENDERED",
24069
24068
  payload: { overlay: m }
@@ -25205,7 +25204,7 @@ const SearchBar$1 = connect(
25205
25204
  g,
25206
25205
  "EPSG:3857"
25207
25206
  );
25208
- a.addOverlay(d), ReactDOM.render(
25207
+ a.addOverlay(d), createRoot(o).render(
25209
25208
  /* @__PURE__ */ jsx$1(
25210
25209
  Overlay,
25211
25210
  {
@@ -25214,8 +25213,7 @@ const SearchBar$1 = connect(
25214
25213
  map: a,
25215
25214
  onClear: t.doClearGeocoderOverlay
25216
25215
  }
25217
- ),
25218
- o
25216
+ )
25219
25217
  ), d.setPosition(m), t.doSetView({
25220
25218
  center: r.center,
25221
25219
  zoom: r.zoom
@@ -26399,7 +26397,7 @@ class ResultListItem extends React__default.Component {
26399
26397
  children: /* @__PURE__ */ jsxs("p", { children: [
26400
26398
  /* @__PURE__ */ jsx$1("span", { className: "col-sm-2", children: /* @__PURE__ */ jsx$1("i", { className: "mdi mdi-plus icon-inline" }) }),
26401
26399
  /* @__PURE__ */ jsx$1("span", { className: "col-sm-4 overflow-sidebar-identify", children: r }),
26402
- isHtml(a) ? /* @__PURE__ */ jsx$1(
26400
+ typeof a == "string" && isHtml(a) ? /* @__PURE__ */ jsx$1(
26403
26401
  "span",
26404
26402
  {
26405
26403
  className: "col-sm-6",
@@ -27871,7 +27869,11 @@ class IdentifyDetails extends React__default.Component {
27871
27869
  onClick: r,
27872
27870
  style: {
27873
27871
  fontSize: 24,
27874
- cursor: "pointer"
27872
+ cursor: "pointer",
27873
+ lineHeight: 1,
27874
+ display: "block",
27875
+ marginLeft: 10,
27876
+ marginTop: -4
27875
27877
  },
27876
27878
  title: "Return to List",
27877
27879
  className: "mdi mdi-arrow-left"
@@ -28008,7 +28010,7 @@ class IdentifyTable extends React__default.Component {
28008
28010
  width: o,
28009
28011
  resizable: !0,
28010
28012
  nullable: !0,
28011
- formatter: Cell
28013
+ renderCell: ({ row: d, column: g }) => /* @__PURE__ */ jsx$1(Cell, { value: d[g.key] })
28012
28014
  };
28013
28015
  });
28014
28016
  }
@@ -28533,7 +28535,7 @@ const IdentifyBufferSettings = (e) => {
28533
28535
  positioning: "bottom-center",
28534
28536
  offset: [0, -10]
28535
28537
  });
28536
- r.addOverlay(I), ReactDOM.render(
28538
+ r.addOverlay(I), createRoot(E).render(
28537
28539
  /* @__PURE__ */ jsx$1(
28538
28540
  IdentifyPopup,
28539
28541
  {
@@ -28542,8 +28544,7 @@ const IdentifyBufferSettings = (e) => {
28542
28544
  map: r,
28543
28545
  onClear: t.doClearOverlay
28544
28546
  }
28545
- ),
28546
- E
28547
+ )
28547
28548
  ), I.setPosition(
28548
28549
  transform(d, "EPSG:4326", "EPSG:3857")
28549
28550
  ), identify.overlays.push(I);