col-browser 2.3.10 → 2.4.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 (53) hide show
  1. package/README.md +29 -0
  2. package/es/bibtex.js +2 -2
  3. package/es/chunks/{BibTex-CPaVr-5w.js → BibTex-79CCKAOK.js} +2 -2
  4. package/es/chunks/{BibTex-CPaVr-5w.js.map → BibTex-79CCKAOK.js.map} +1 -1
  5. package/es/chunks/{DatasetCitation-JpNSTWz-.js → DatasetCitation-BXtAmjdZ.js} +2 -2
  6. package/es/chunks/{DatasetCitation-JpNSTWz-.js.map → DatasetCitation-BXtAmjdZ.js.map} +1 -1
  7. package/es/chunks/{DatasetlogoWithFallback-BhWvpgDn.js → DatasetlogoWithFallback-Dava2uqZ.js} +2 -2
  8. package/es/chunks/{DatasetlogoWithFallback-BhWvpgDn.js.map → DatasetlogoWithFallback-Dava2uqZ.js.map} +1 -1
  9. package/es/chunks/{Distributions-CKn1-Qze.js → Distributions-Bd4hFYdS.js} +3 -3
  10. package/es/chunks/{Distributions-CKn1-Qze.js.map → Distributions-Bd4hFYdS.js.map} +1 -1
  11. package/es/chunks/{MergedDataBadge-DK4XUXsL.js → MergedDataBadge-C1CgoRFz.js} +2 -2
  12. package/es/chunks/{MergedDataBadge-DK4XUXsL.js.map → MergedDataBadge-C1CgoRFz.js.map} +1 -1
  13. package/es/chunks/{TaxonBreakdown-BYRnP8bH.js → TaxonBreakdown-DeWamLu_.js} +2 -2
  14. package/es/chunks/{TaxonBreakdown-BYRnP8bH.js.map → TaxonBreakdown-DeWamLu_.js.map} +1 -1
  15. package/es/chunks/{XrGutter-CORP2r5Y.js → XrGutter-CU7_QPAp.js} +2 -2
  16. package/es/chunks/{XrGutter-CORP2r5Y.js.map → XrGutter-CU7_QPAp.js.map} +1 -1
  17. package/es/chunks/config-D1NH4DTr.js +22 -0
  18. package/es/chunks/config-D1NH4DTr.js.map +1 -0
  19. package/es/chunks/{dataset-BuF063rn.js → dataset-BL6g4w0G.js} +2 -2
  20. package/es/chunks/{dataset-BuF063rn.js.map → dataset-BL6g4w0G.js.map} +1 -1
  21. package/es/chunks/{enumeration-CC8SblcI.js → enumeration-DM8Hb36g.js} +2 -2
  22. package/es/chunks/{enumeration-CC8SblcI.js.map → enumeration-DM8Hb36g.js.map} +1 -1
  23. package/es/chunks/{sector-Behb-WCC.js → sector-Qeo1zPxr.js} +2 -2
  24. package/es/chunks/{sector-Behb-WCC.js.map → sector-Qeo1zPxr.js.map} +1 -1
  25. package/es/chunks/withTheme-Dh6PRuII.js +17 -0
  26. package/es/chunks/withTheme-Dh6PRuII.js.map +1 -0
  27. package/es/config.js +5 -0
  28. package/es/config.js.map +1 -0
  29. package/es/index.js +4 -2
  30. package/es/index.js.map +1 -1
  31. package/es/search.js +14 -13
  32. package/es/search.js.map +1 -1
  33. package/es/sourceDataset.js +7 -6
  34. package/es/sourceDataset.js.map +1 -1
  35. package/es/sourceDatasetList.js +16 -15
  36. package/es/sourceDatasetList.js.map +1 -1
  37. package/es/taxon.js +215 -214
  38. package/es/taxon.js.map +1 -1
  39. package/es/taxonBreakdown.js +23 -22
  40. package/es/taxonBreakdown.js.map +1 -1
  41. package/es/taxonDistribution.js +20 -19
  42. package/es/taxonDistribution.js.map +1 -1
  43. package/es/tree.js +8 -7
  44. package/es/tree.js.map +1 -1
  45. package/package.json +5 -1
  46. package/types/config.d.ts +1 -0
  47. package/types/index.d.ts +21 -0
  48. package/umd/col-browser.js +14 -5
  49. package/umd/col-browser.js.map +1 -1
  50. package/umd/col-browser.min.js +4 -4
  51. package/umd/col-browser.min.js.map +1 -1
  52. package/es/chunks/config-B2Z9BaEd.js +0 -30
  53. package/es/chunks/config-B2Z9BaEd.js.map +0 -1
@@ -1,30 +0,0 @@
1
- import { j as e } from "./jsx-runtime-BzflLqGi.js";
2
- import "react";
3
- import { theme as m, ConfigProvider as p } from "antd";
4
- function f(t) {
5
- const a = (h) => {
6
- const { theme: o, darkMode: r, ...s } = h;
7
- if (!o && !r)
8
- return /* @__PURE__ */ e.jsx(t, { ...s });
9
- const i = { ...o || {} };
10
- return r && !i.algorithm && (i.algorithm = m.darkAlgorithm), /* @__PURE__ */ e.jsx(p, { theme: i, children: /* @__PURE__ */ e.jsx(t, { darkMode: r, ...s }) });
11
- };
12
- return a.displayName = `withTheme(${t.displayName || t.name || "Component"})`, a;
13
- }
14
- const l = {
15
- dataApi: "https://api.checklistbank.org/",
16
- // Human-facing ChecklistBank portal. Used for outbound links to
17
- // dataset / publisher pages we don't host ourselves.
18
- clbPortal: "https://www.checklistbank.org",
19
- // GBIF API base (no trailing slash). Used for the occurrence count and
20
- // the v2 map tile endpoint.
21
- gbifApi: "https://api.gbif.org",
22
- // GBIF human-facing portal where the attribution link points. The
23
- // multitaxonomy occurrence search now ships on the production portal.
24
- gbifPortal: "https://www.gbif.org"
25
- };
26
- export {
27
- l as c,
28
- f as w
29
- };
30
- //# sourceMappingURL=config-B2Z9BaEd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-B2Z9BaEd.js","sources":["../../src/withTheme.js","../../src/config.js"],"sourcesContent":["import React from \"react\";\nimport { ConfigProvider, theme as antdTheme } from \"antd\";\n\n// Optional antd theming. Embedders can pass:\n// - `theme`: a full antd ThemeConfig (token / algorithm / components),\n// forwarded straight to ConfigProvider.\n// - `darkMode`: convenience boolean. When true and theme.algorithm is not\n// set, antd's darkAlgorithm is applied.\n// When neither prop is provided we render the wrapped component directly,\n// without a ConfigProvider, so the library's defaults are untouched.\nexport function withTheme(Component) {\n const Wrapped = (props) => {\n const { theme, darkMode, ...rest } = props;\n\n if (!theme && !darkMode) {\n return <Component {...rest} />;\n }\n\n const merged = { ...(theme || {}) };\n if (darkMode && !merged.algorithm) {\n merged.algorithm = antdTheme.darkAlgorithm;\n }\n\n return (\n <ConfigProvider theme={merged}>\n <Component darkMode={darkMode} {...rest} />\n </ConfigProvider>\n );\n };\n Wrapped.displayName = `withTheme(${\n Component.displayName || Component.name || \"Component\"\n })`;\n return Wrapped;\n}\n\nexport default withTheme;\n","export default {\n dataApi: \"https://api.checklistbank.org/\",\n // Human-facing ChecklistBank portal. Used for outbound links to\n // dataset / publisher pages we don't host ourselves.\n clbPortal: \"https://www.checklistbank.org\",\n // GBIF API base (no trailing slash). Used for the occurrence count and\n // the v2 map tile endpoint.\n gbifApi: \"https://api.gbif.org\",\n // GBIF human-facing portal where the attribution link points. The\n // multitaxonomy occurrence search now ships on the production portal.\n gbifPortal: \"https://www.gbif.org\",\n};"],"names":["withTheme","Component","Wrapped","props","theme","darkMode","rest","jsx","merged","antdTheme","ConfigProvider","config"],"mappings":";;;AAUO,SAASA,EAAUC,GAAW;AACnC,QAAMC,IAAU,CAACC,MAAU;AACzB,UAAM,EAAA,OAAEC,GAAO,UAAAC,GAAU,GAAGC,MAASH;AAErC,QAAI,CAACC,KAAS,CAACC;AACb,aAAOE,gBAAAA,MAACN,GAAA,EAAW,GAAGK,EAAA,CAAM;AAG9B,UAAME,IAAS,EAAE,GAAIJ,KAAS,GAAC;AAC/B,WAAIC,KAAY,CAACG,EAAO,cACtBA,EAAO,YAAYC,EAAU,gBAI7BF,gBAAAA,EAAAA,IAACG,KAAe,OAAOF,GACrB,gCAACP,GAAA,EAAU,UAAAI,GAAqB,GAAGC,EAAA,CAAM,EAAA,CAC3C;AAAA,EAEJ;AACA,SAAAJ,EAAQ,cAAc,aACpBD,EAAU,eAAeA,EAAU,QAAQ,WAC7C,KACOC;AACT;ACjCA,MAAAS,IAAe;AAAA,EACX,SAAS;AAAA;AAAA;AAAA,EAGT,WAAW;AAAA;AAAA;AAAA,EAGX,SAAS;AAAA;AAAA;AAAA,EAGT,YAAY;AAChB;"}