col-browser 2.3.2 → 2.3.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "col-browser",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "description": "Catalogue of Life browse and search React components",
5
5
  "main": "umd/col-browser.js",
6
6
  "module": "es/index.js",
@@ -87235,7 +87235,7 @@ html body {
87235
87235
  }
87236
87236
  }
87237
87237
  render() {
87238
- var _a2, _b2, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B;
87238
+ var _a2, _b2, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C;
87239
87239
  const {
87240
87240
  datasetKey,
87241
87241
  showDistributionMap,
@@ -87557,49 +87557,58 @@ html body {
87557
87557
  get(taxon, "accordingToDate") && `, ${dayjs(get(taxon, "accordingToDate")).format("LL")}`
87558
87558
  ] }) }) }),
87559
87559
  get(taxon, "scrutinizer") && /* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: 12, children: /* @__PURE__ */ jsxRuntimeExports.jsx(PresentationItem$1, { md: md * 2, label: "Taxonomic scrutiny", children: `${get(taxon, "scrutinizer")}${get(taxon, "scrutinizerDate") ? ", " + get(taxon, "scrutinizerDate") : ""}` }) }),
87560
- get(sourceDataset, "title") && /* @__PURE__ */ jsxRuntimeExports.jsx(PresentationItem$1, { md, label: "Source", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { display: "inline-block" }, children: [
87561
- ((_n = info == null ? void 0 : info.usage) == null ? void 0 : _n.merged) && /* @__PURE__ */ jsxRuntimeExports.jsx(
87562
- MergedDataBadge,
87563
- {
87564
- createdBy: (_o = info == null ? void 0 : info.usage) == null ? void 0 : _o.createdBy,
87565
- datasetKey: (_p = info == null ? void 0 : info.usage) == null ? void 0 : _p.datasetKey,
87566
- verbatimSourceKey: (_q = info == null ? void 0 : info.usage) == null ? void 0 : _q.verbatimSourceKey,
87567
- sourceDatasetKey: (_r = info == null ? void 0 : info.source) == null ? void 0 : _r.sourceDatasetKey,
87568
- sourceId: (_s = info == null ? void 0 : info.source) == null ? void 0 : _s.sourceId
87569
- }
87570
- ),
87571
- " ",
87572
- ((_t = info == null ? void 0 : info.source) == null ? void 0 : _t.sourceId) ? /* @__PURE__ */ jsxRuntimeExports.jsx(
87573
- "a",
87574
- {
87575
- href: `https://www.checklistbank.org/dataset/${(_u = info == null ? void 0 : info.source) == null ? void 0 : _u.sourceDatasetKey}/taxon/${(_v = info == null ? void 0 : info.source) == null ? void 0 : _v.sourceId}`,
87576
- children: get(sourceDataset, "alias")
87577
- }
87578
- ) : get(sourceDataset, "alias"),
87579
- ": ",
87580
- /* @__PURE__ */ jsxRuntimeExports.jsx(LinkTo, { to: "source", args: get(sourceDataset, "key"), children: get(sourceDataset, "title") }),
87581
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { marginLeft: "10px" }, children: get(sourceDataset, "completeness") && get(sourceDataset, "completeness") + "%" }),
87582
- get(sourceDataset, "confidence") && /* @__PURE__ */ jsxRuntimeExports.jsx(
87583
- Rate,
87584
- {
87585
- style: { marginLeft: "10px" },
87586
- value: get(sourceDataset, "confidence"),
87587
- disabled: true
87588
- }
87589
- )
87590
- ] }) }),
87560
+ get(sourceDataset, "title") && /* @__PURE__ */ jsxRuntimeExports.jsx(PresentationItem$1, { md, label: "Source", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
87561
+ "div",
87562
+ {
87563
+ style: {
87564
+ display: "inline-block",
87565
+ paddingLeft: ((_n = info == null ? void 0 : info.usage) == null ? void 0 : _n.merged) ? "22px" : 0
87566
+ },
87567
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
87568
+ XrGutter,
87569
+ {
87570
+ merged: (_o = info == null ? void 0 : info.usage) == null ? void 0 : _o.merged,
87571
+ createdBy: (_p = info == null ? void 0 : info.usage) == null ? void 0 : _p.createdBy,
87572
+ datasetKey: (_q = info == null ? void 0 : info.usage) == null ? void 0 : _q.datasetKey,
87573
+ verbatimSourceKey: (_r = info == null ? void 0 : info.usage) == null ? void 0 : _r.verbatimSourceKey,
87574
+ sourceDatasetKey: (_s = info == null ? void 0 : info.source) == null ? void 0 : _s.sourceDatasetKey,
87575
+ sourceId: (_t = info == null ? void 0 : info.source) == null ? void 0 : _t.sourceId,
87576
+ children: [
87577
+ ((_u = info == null ? void 0 : info.source) == null ? void 0 : _u.sourceId) ? /* @__PURE__ */ jsxRuntimeExports.jsx(
87578
+ "a",
87579
+ {
87580
+ href: `https://www.checklistbank.org/dataset/${(_v = info == null ? void 0 : info.source) == null ? void 0 : _v.sourceDatasetKey}/taxon/${(_w = info == null ? void 0 : info.source) == null ? void 0 : _w.sourceId}`,
87581
+ children: get(sourceDataset, "alias")
87582
+ }
87583
+ ) : get(sourceDataset, "alias"),
87584
+ ": ",
87585
+ /* @__PURE__ */ jsxRuntimeExports.jsx(LinkTo, { to: "source", args: get(sourceDataset, "key"), children: get(sourceDataset, "title") }),
87586
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { marginLeft: "10px" }, children: get(sourceDataset, "completeness") && get(sourceDataset, "completeness") + "%" }),
87587
+ get(sourceDataset, "confidence") && /* @__PURE__ */ jsxRuntimeExports.jsx(
87588
+ Rate,
87589
+ {
87590
+ style: { marginLeft: "10px" },
87591
+ value: get(sourceDataset, "confidence"),
87592
+ disabled: true
87593
+ }
87594
+ )
87595
+ ]
87596
+ }
87597
+ )
87598
+ }
87599
+ ) }),
87591
87600
  get(taxon, "link") && /* @__PURE__ */ jsxRuntimeExports.jsx(PresentationItem$1, { md, label: "Original record", children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: get(taxon, "link"), children: get(taxon, "link") }) }),
87592
- ((_w = info == null ? void 0 : info.source) == null ? void 0 : _w.secondarySources) && /* @__PURE__ */ jsxRuntimeExports.jsx(PresentationItem$1, { md, label: "Secondary Sources", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SecondarySources, { info, datasetKey }) }),
87601
+ ((_x = info == null ? void 0 : info.source) == null ? void 0 : _x.secondarySources) && /* @__PURE__ */ jsxRuntimeExports.jsx(PresentationItem$1, { md, label: "Secondary Sources", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SecondarySources, { info, datasetKey }) }),
87593
87602
  get(info, "references") && /* @__PURE__ */ jsxRuntimeExports.jsx(PresentationItem$1, { md, label: "References", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
87594
87603
  ReferencesTable,
87595
87604
  {
87596
87605
  referenceIndexMap,
87597
- primarySourceDatasetKey: (_x = info == null ? void 0 : info.source) == null ? void 0 : _x.sourceDatasetKey,
87606
+ primarySourceDatasetKey: (_y = info == null ? void 0 : info.source) == null ? void 0 : _y.sourceDatasetKey,
87598
87607
  data: get(info, "references"),
87599
87608
  style: { marginTop: "-3px" }
87600
87609
  }
87601
87610
  ) }),
87602
- ((_z = (_y = window == null ? void 0 : window.location) == null ? void 0 : _y.hostname) == null ? void 0 : _z.endsWith("catalogueoflife.org")) && /* @__PURE__ */ jsxRuntimeExports.jsx(PresentationItem$1, { md, label: "", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Feedback, { taxonKey: (_B = (_A = this == null ? void 0 : this.state) == null ? void 0 : _A.taxon) == null ? void 0 : _B.id, datasetKey: this.props.datasetKey }) })
87611
+ ((_A = (_z = window == null ? void 0 : window.location) == null ? void 0 : _z.hostname) == null ? void 0 : _A.endsWith("catalogueoflife.org")) && /* @__PURE__ */ jsxRuntimeExports.jsx(PresentationItem$1, { md, label: "", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Feedback, { taxonKey: (_C = (_B = this == null ? void 0 : this.state) == null ? void 0 : _B.taxon) == null ? void 0 : _C.id, datasetKey: this.props.datasetKey }) })
87603
87612
  ]
87604
87613
  }
87605
87614
  ) });