col-browser 2.5.0 → 2.6.1

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 (43) hide show
  1. package/README.md +9 -0
  2. package/es/bibtex.js +1 -1
  3. package/es/chunks/{BibTex-CyUpSmpY.js → BibTex-DRE71Hg-.js} +2 -2
  4. package/es/chunks/{BibTex-CyUpSmpY.js.map → BibTex-DRE71Hg-.js.map} +1 -1
  5. package/es/chunks/{DatasetCitation-BnOkKDTv.js → DatasetCitation-Cep2dces.js} +2 -2
  6. package/es/chunks/{DatasetCitation-BnOkKDTv.js.map → DatasetCitation-Cep2dces.js.map} +1 -1
  7. package/es/chunks/{DatasetlogoWithFallback-DJEkjMJ1.js → DatasetlogoWithFallback-Bb-kmHts.js} +2 -2
  8. package/es/chunks/{DatasetlogoWithFallback-DJEkjMJ1.js.map → DatasetlogoWithFallback-Bb-kmHts.js.map} +1 -1
  9. package/es/chunks/{Distributions-Dwjo7KhA.js → Distributions-Czffme5Y.js} +422 -410
  10. package/es/chunks/Distributions-Czffme5Y.js.map +1 -0
  11. package/es/chunks/{MergedDataBadge-FvHUdT7B.js → MergedDataBadge-DK53L3R8.js} +2 -2
  12. package/es/chunks/{MergedDataBadge-FvHUdT7B.js.map → MergedDataBadge-DK53L3R8.js.map} +1 -1
  13. package/es/chunks/{TaxonBreakdown-D9g3tYXL.js → TaxonBreakdown-DqdQ18QM.js} +2 -2
  14. package/es/chunks/{TaxonBreakdown-D9g3tYXL.js.map → TaxonBreakdown-DqdQ18QM.js.map} +1 -1
  15. package/es/chunks/{XrGutter-D3PMq-Dn.js → XrGutter-COJhHpia.js} +2 -2
  16. package/es/chunks/{XrGutter-D3PMq-Dn.js.map → XrGutter-COJhHpia.js.map} +1 -1
  17. package/es/chunks/{config-D4b3a4Yi.js → config--bs_09I6.js} +12 -7
  18. package/es/chunks/config--bs_09I6.js.map +1 -0
  19. package/es/chunks/{dataset-D_gmg2Zv.js → dataset-BZpjo3Yq.js} +2 -2
  20. package/es/chunks/{dataset-D_gmg2Zv.js.map → dataset-BZpjo3Yq.js.map} +1 -1
  21. package/es/chunks/enumeration-CsrJrIIR.js +24 -0
  22. package/es/chunks/{enumeration-B-nIqCor.js.map → enumeration-CsrJrIIR.js.map} +1 -1
  23. package/es/chunks/{sector-CE-w32Gs.js → sector-ucUgPp75.js} +2 -2
  24. package/es/chunks/{sector-CE-w32Gs.js.map → sector-ucUgPp75.js.map} +1 -1
  25. package/es/config.js +1 -1
  26. package/es/index.js +1 -1
  27. package/es/search.js +5 -5
  28. package/es/sourceDataset.js +4 -4
  29. package/es/sourceDatasetList.js +4 -4
  30. package/es/taxon.js +734 -704
  31. package/es/taxon.js.map +1 -1
  32. package/es/taxonBreakdown.js +2 -2
  33. package/es/taxonDistribution.js +2 -2
  34. package/es/tree.js +5 -5
  35. package/package.json +1 -1
  36. package/types/index.d.ts +7 -0
  37. package/umd/col-browser.js +92 -18
  38. package/umd/col-browser.js.map +1 -1
  39. package/umd/col-browser.min.js +4 -4
  40. package/umd/col-browser.min.js.map +1 -1
  41. package/es/chunks/Distributions-Dwjo7KhA.js.map +0 -1
  42. package/es/chunks/config-D4b3a4Yi.js.map +0 -1
  43. package/es/chunks/enumeration-B-nIqCor.js +0 -12
@@ -1 +1 @@
1
- {"version":3,"file":"enumeration-B-nIqCor.js","sources":["../../src/api/enumeration.js"],"sourcesContent":["// import axiosInstance from './util/axiosInstance';\nimport client from \"./client\";\nimport config from \"../config\";\n\nexport const getFrequency = () => {\n return client(`${config.dataApi}vocab/frequency`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getDatasetType = () => {\n return client(`${config.dataApi}vocab/datasettype`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getDataFormatType = () => {\n return client(`${config.dataApi}vocab/dataformat`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getDatasetOrigin = () => {\n return client(`${config.dataApi}vocab/datasetorigin`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getRank = () => {\n return client(`${config.dataApi}vocab/rank`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getTaxonomicStatus = () => {\n return client(`${config.dataApi}vocab/taxonomicstatus`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getIssue = () => {\n return client(`${config.dataApi}vocab/issue`).then(res =>\n res.data\n );\n};\n\nexport const getNameType = () => {\n return client(`${config.dataApi}vocab/nametype`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getNameField = () => {\n return client(`${config.dataApi}vocab/namefield`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getNomStatus = () => {\n return client(`${config.dataApi}vocab/nomstatus`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getLicense = () => {\n return client(`${config.dataApi}vocab/license`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getNomCode = () => {\n return client(`${config.dataApi}vocab/nomcode`).then(res =>\n res.data\n );\n};\n\nexport const getImportState = () => {\n return client(`${config.dataApi}vocab/importstate`).then(res =>\n res.data\n );\n};\n\nexport const getLifezones = () => {\n return client(`${config.dataApi}vocab/lifezone`).then(res =>\n res.data\n );\n};\n\nexport const getSectorImportState = () => {\n return client(`${config.dataApi}vocab/sectorimport$state`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getCountries = () => {\n return client(`${config.dataApi}vocab/country`).then(res =>\n res.data\n );\n};\n\nexport const getTaxGroup = () => {\n return client(`${config.dataApi}vocab/taxgroup`).then(res =>\n res.data\n );\n};\n\n\n\n\n"],"names":["getCountries","client","config","res","getTaxGroup"],"mappings":";;AA8FO,MAAMA,IAAe,MACnBC,EAAO,GAAGC,EAAO,OAAO,eAAe,EAAE;AAAA,EAAK,OACnDC,EAAI;AAAA,GAIKC,IAAc,MAClBH,EAAO,GAAGC,EAAO,OAAO,gBAAgB,EAAE;AAAA,EAAK,OACpDC,EAAI;AAAA;"}
1
+ {"version":3,"file":"enumeration-CsrJrIIR.js","sources":["../../src/api/enumeration.js"],"sourcesContent":["// import axiosInstance from './util/axiosInstance';\nimport client from \"./client\";\nimport config from \"../config\";\n\nexport const getFrequency = () => {\n return client(`${config.dataApi}vocab/frequency`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getDatasetType = () => {\n return client(`${config.dataApi}vocab/datasettype`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getDataFormatType = () => {\n return client(`${config.dataApi}vocab/dataformat`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getDatasetOrigin = () => {\n return client(`${config.dataApi}vocab/datasetorigin`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getRank = () => {\n return client(`${config.dataApi}vocab/rank`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getTaxonomicStatus = () => {\n return client(`${config.dataApi}vocab/taxonomicstatus`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getIssue = () => {\n return client(`${config.dataApi}vocab/issue`).then(res =>\n res.data\n );\n};\n\nexport const getNameType = () => {\n return client(`${config.dataApi}vocab/nametype`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getNameField = () => {\n return client(`${config.dataApi}vocab/namefield`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getNomStatus = () => {\n return client(`${config.dataApi}vocab/nomstatus`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getLicense = () => {\n return client(`${config.dataApi}vocab/license`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getNomCode = () => {\n return client(`${config.dataApi}vocab/nomcode`).then(res =>\n res.data\n );\n};\n\nexport const getImportState = () => {\n return client(`${config.dataApi}vocab/importstate`).then(res =>\n res.data\n );\n};\n\nexport const getLifezones = () => {\n return client(`${config.dataApi}vocab/lifezone`).then(res =>\n res.data\n );\n};\n\nexport const getSectorImportState = () => {\n return client(`${config.dataApi}vocab/sectorimport$state`).then(res =>\n res.data.map(e => e.name)\n );\n};\n\nexport const getCountries = () => {\n return client(`${config.dataApi}vocab/country`).then(res =>\n res.data\n );\n};\n\nexport const getTaxGroup = () => {\n return client(`${config.dataApi}vocab/taxgroup`).then(res =>\n res.data\n );\n};\n\n\n\n\n\n// Vocabularies are static for the lifetime of a deployment, so every caller can\n// share a single in-flight/settled promise instead of refetching. Keyed by the\n// resolved URL so a runtime configure({ dataApi }) switch loads the new API's\n// vocabulary rather than serving the old one from cache.\nconst vocabCache = new Map();\n\nconst cachedVocab = (path, transform) => {\n const url = `${config.dataApi}vocab/${path}`;\n if (!vocabCache.has(url)) {\n vocabCache.set(\n url,\n client(url)\n .then((res) => transform(res.data))\n .catch((err) => {\n // Drop the rejected promise so a later render can retry.\n vocabCache.delete(url);\n throw err;\n })\n );\n }\n return vocabCache.get(url);\n};\n\n/**\n * The full nomenclatural status vocabulary as a map keyed by status name, e.g.\n * { acceptable: { name: \"acceptable\", botanical: \"nomen legitimum\",\n * zoological: \"potentially valid\", … }, … }\n * Shared and cached; feed it to `nomStatusLabel` to resolve a code-specific label.\n */\nexport const getNomStatusVocab = () =>\n cachedVocab(\"nomstatus\", (data) =>\n data.reduce((a, c) => ((a[c.name] = c), a), {})\n );\n"],"names":["getCountries","client","config","res","getTaxGroup","vocabCache","cachedVocab","path","transform","url","err","getNomStatusVocab","data","a","c"],"mappings":";;AA8FO,MAAMA,IAAe,MACnBC,EAAO,GAAGC,EAAO,OAAO,eAAe,EAAE;AAAA,EAAK,OACnDC,EAAI;AAAA,GAIKC,IAAc,MAClBH,EAAO,GAAGC,EAAO,OAAO,gBAAgB,EAAE;AAAA,EAAK,OACpDC,EAAI;AAAA,GAYFE,wBAAiB,IAAA,GAEjBC,IAAc,CAACC,GAAMC,MAAc;AACvC,QAAMC,IAAM,GAAGP,EAAO,OAAO,SAASK,CAAI;AAC1C,SAAKF,EAAW,IAAII,CAAG,KACrBJ,EAAW;AAAA,IACTI;AAAA,IACAR,EAAOQ,CAAG,EACP,KAAK,CAACN,MAAQK,EAAUL,EAAI,IAAI,CAAC,EACjC,MAAM,CAACO,MAAQ;AAEd,YAAAL,EAAW,OAAOI,CAAG,GACfC;AAAA,IACR,CAAC;AAAA,EAAA,GAGAL,EAAW,IAAII,CAAG;AAC3B,GAQaE,IAAoB,MAC/BL;AAAA,EAAY;AAAA,EAAa,CAACM,MACxBA,EAAK,OAAO,CAACC,GAAGC,OAAQD,EAAEC,EAAE,IAAI,IAAIA,GAAID,IAAI,CAAA,CAAE;AAChD;"}
@@ -1,9 +1,9 @@
1
1
  import { c as o } from "./router-CssZk5qZ.js";
2
- import { c as r } from "./config-D4b3a4Yi.js";
2
+ import { c as r } from "./config--bs_09I6.js";
3
3
  const c = (a) => a.then((t) => t.data, (t) => null), i = (a, t) => Promise.all(
4
4
  a.map((e) => c(o(`${r.dataApi}dataset/${t}/sector/${e}`)))
5
5
  );
6
6
  export {
7
7
  i as g
8
8
  };
9
- //# sourceMappingURL=sector-CE-w32Gs.js.map
9
+ //# sourceMappingURL=sector-ucUgPp75.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sector-CE-w32Gs.js","sources":["../../src/api/sector.js"],"sourcesContent":["import client from \"./client\";\nimport config from \"../config\";\n\nconst reflect = p => p.then(v => v.data, e => null);\n\nexport const getSectorsBatch = (ids, datasetKey) => {\n return Promise.all(\n ids.map(i => reflect(client(`${config.dataApi}dataset/${datasetKey}/sector/${i}`)))\n );\n};\n"],"names":["reflect","p","v","getSectorsBatch","ids","datasetKey","i","client","config"],"mappings":";;AAGA,MAAMA,IAAU,OAAKC,EAAE,KAAK,OAAKC,EAAE,MAAM,OAAK,IAAI,GAErCC,IAAkB,CAACC,GAAKC,MAC5B,QAAQ;AAAA,EACbD,EAAI,IAAI,CAAAE,MAAKN,EAAQO,EAAO,GAAGC,EAAO,OAAO,WAAWH,CAAU,WAAWC,CAAC,EAAE,CAAC,CAAC;AAAA;"}
1
+ {"version":3,"file":"sector-ucUgPp75.js","sources":["../../src/api/sector.js"],"sourcesContent":["import client from \"./client\";\nimport config from \"../config\";\n\nconst reflect = p => p.then(v => v.data, e => null);\n\nexport const getSectorsBatch = (ids, datasetKey) => {\n return Promise.all(\n ids.map(i => reflect(client(`${config.dataApi}dataset/${datasetKey}/sector/${i}`)))\n );\n};\n"],"names":["reflect","p","v","getSectorsBatch","ids","datasetKey","i","client","config"],"mappings":";;AAGA,MAAMA,IAAU,OAAKC,EAAE,KAAK,OAAKC,EAAE,MAAM,OAAK,IAAI,GAErCC,IAAkB,CAACC,GAAKC,MAC5B,QAAQ;AAAA,EACbD,EAAI,IAAI,CAAAE,MAAKN,EAAQO,EAAO,GAAGC,EAAO,OAAO,WAAWH,CAAU,WAAWC,CAAC,EAAE,CAAC,CAAC;AAAA;"}
package/es/config.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a } from "./chunks/config-D4b3a4Yi.js";
1
+ import { a } from "./chunks/config--bs_09I6.js";
2
2
  export {
3
3
  a as configure
4
4
  };
package/es/index.js CHANGED
@@ -7,7 +7,7 @@ import { BibTex as u } from "./bibtex.js";
7
7
  import { TaxonBreakdown as c } from "./taxonBreakdown.js";
8
8
  import { TaxonDistribution as D } from "./taxonDistribution.js";
9
9
  import { w as b } from "./chunks/index-BmhRLlZh.js";
10
- import { a as h } from "./chunks/config-D4b3a4Yi.js";
10
+ import { a as h } from "./chunks/config--bs_09I6.js";
11
11
  export {
12
12
  u as BibTex,
13
13
  x as Search,
package/es/search.js CHANGED
@@ -7,17 +7,17 @@ import { j as s } from "./chunks/jsx-runtime-BzflLqGi.js";
7
7
  import * as C from "react";
8
8
  import f from "react";
9
9
  import { L as S, c as j, s as pt, R as mt, b as gt } from "./chunks/router-CssZk5qZ.js";
10
- import { a as ft } from "./chunks/dataset-D_gmg2Zv.js";
11
- import { a as xt } from "./chunks/enumeration-B-nIqCor.js";
10
+ import { a as ft } from "./chunks/dataset-BZpjo3Yq.js";
11
+ import { b as xt } from "./chunks/enumeration-CsrJrIIR.js";
12
12
  import { r as St, w as vt } from "./chunks/storage-BgdCo9fV.js";
13
13
  import { Input as G, Form as R, Select as k, Row as x, Col as g, AutoComplete as K, Radio as yt, Alert as jt, Button as I, Table as bt } from "antd";
14
- import { c as b } from "./chunks/config-D4b3a4Yi.js";
14
+ import { c as b } from "./chunks/config--bs_09I6.js";
15
15
  import Ct from "query-string";
16
16
  import { isArray as O, startCase as m, snakeCase as M, get as u, initial as z, debounce as At, isEqual as Dt, isEmpty as Tt, merge as $t, forEach as Et } from "lodash-es";
17
17
  import { E as Ot } from "./chunks/ErrorMsg-K8k5PPTp.js";
18
- import { C as F, N as wt } from "./chunks/DatasetCitation-BnOkKDTv.js";
18
+ import { C as F, N as wt } from "./chunks/DatasetCitation-Cep2dces.js";
19
19
  import Nt from "react-highlight-words";
20
- import { X as Rt } from "./chunks/XrGutter-D3PMq-Dn.js";
20
+ import { X as Rt } from "./chunks/XrGutter-COJhHpia.js";
21
21
  import { I as P } from "./chunks/AntdIcon-B1nMlqyh.js";
22
22
  var kt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, name: "down", theme: "outlined" };
23
23
  function w() {
@@ -5,16 +5,16 @@ import { a as A } from "./chunks/withDatasetKey-BgMY05XE.js";
5
5
  import { w as I } from "./chunks/withTheme-Dh6PRuII.js";
6
6
  import { j as t } from "./chunks/jsx-runtime-BzflLqGi.js";
7
7
  import h from "react";
8
- import { c as x } from "./chunks/config-D4b3a4Yi.js";
8
+ import { c as x } from "./chunks/config--bs_09I6.js";
9
9
  import { c as m, L as K, s as T, R, b as M } from "./chunks/router-CssZk5qZ.js";
10
10
  import { Skeleton as E, Alert as P, Row as j, Col as u, Tooltip as L, Button as F, Rate as O } from "antd";
11
11
  import { E as N } from "./chunks/ErrorMsg-K8k5PPTp.js";
12
- import { D as z } from "./chunks/DatasetlogoWithFallback-DJEkjMJ1.js";
12
+ import { D as z } from "./chunks/DatasetlogoWithFallback-Bb-kmHts.js";
13
13
  import { M as B } from "./chunks/MetricsPresentation-DKCJQOtf.js";
14
14
  import { get as p, isEmpty as S, isArray as H } from "lodash-es";
15
15
  import { P as o } from "./chunks/PresentationItem-C4yZ555-.js";
16
- import { g as W } from "./chunks/enumeration-B-nIqCor.js";
17
- import { B as G } from "./chunks/BibTex-CyUpSmpY.js";
16
+ import { g as W } from "./chunks/enumeration-CsrJrIIR.js";
17
+ import { B as G } from "./chunks/BibTex-DRE71Hg-.js";
18
18
  import { marked as U } from "marked";
19
19
  import V from "dompurify";
20
20
  import { R as q } from "./chunks/LinkOutlined-2IkQWTV7.js";
@@ -7,14 +7,14 @@ import { j as s } from "./chunks/jsx-runtime-BzflLqGi.js";
7
7
  import R from "react";
8
8
  import { s as w, c as x, L as d, R as v, b as T } from "./chunks/router-CssZk5qZ.js";
9
9
  import { Row as j, Alert as I, Col as y, Checkbox as E, Table as A, Tooltip as C } from "antd";
10
- import { c as f } from "./chunks/config-D4b3a4Yi.js";
10
+ import { c as f } from "./chunks/config--bs_09I6.js";
11
11
  import { get as M, merge as _, isArray as K } from "lodash-es";
12
12
  import { E as G } from "./chunks/ErrorMsg-K8k5PPTp.js";
13
- import { D as F } from "./chunks/DatasetlogoWithFallback-DJEkjMJ1.js";
13
+ import { D as F } from "./chunks/DatasetlogoWithFallback-Bb-kmHts.js";
14
14
  import { M as H } from "./chunks/MetricsPresentation-DKCJQOtf.js";
15
15
  import { P as k } from "./chunks/PresentationItem-C4yZ555-.js";
16
- import { M as z } from "./chunks/MergedDataBadge-FvHUdT7B.js";
17
- import { X as L } from "./chunks/XrGutter-D3PMq-Dn.js";
16
+ import { M as z } from "./chunks/MergedDataBadge-DK53L3R8.js";
17
+ import { X as L } from "./chunks/XrGutter-COJhHpia.js";
18
18
  const S = (r) => {
19
19
  const l = r.key ? { SECTOR_DATASET_KEY: r.key } : { SECTOR_PUBLISHER_KEY: r.id };
20
20
  return K(r.sectorModes) && (l.sectorMode = r.sectorModes), l;