@fileverse-dev/fortune-react 1.0.2-mod-106 → 1.0.2-mod-107

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/dist/index.esm.js CHANGED
@@ -865,6 +865,12 @@ var FormulaSearch = function FormulaSearch(props) {
865
865
  style: {
866
866
  width: "16px"
867
867
  }
868
+ })), v.SECONDARY_LOGO && (/*#__PURE__*/React.createElement("img", {
869
+ src: v.SECONDARY_LOGO,
870
+ alt: "Service Logo",
871
+ style: {
872
+ width: "16px"
873
+ }
868
874
  })), v.API_KEY && (/*#__PURE__*/React.createElement(Tooltip, {
869
875
  text: localStorage.getItem(v.API_KEY) ? "API Key added" : "API key required"
870
876
  }, /*#__PURE__*/React.createElement("div", {
@@ -911,6 +917,12 @@ var FormulaSearch = function FormulaSearch(props) {
911
917
  style: {
912
918
  width: "16px"
913
919
  }
920
+ })), v.SECONDARY_LOGO && (/*#__PURE__*/React.createElement("img", {
921
+ src: v.SECONDARY_LOGO,
922
+ alt: "Service Logo",
923
+ style: {
924
+ width: "16px"
925
+ }
914
926
  })), v.API_KEY && (/*#__PURE__*/React.createElement(Tooltip, {
915
927
  text: localStorage.getItem(v.API_KEY) ? "API Key added" : "API Key required"
916
928
  }, /*#__PURE__*/React.createElement("div", {
package/dist/index.js CHANGED
@@ -877,6 +877,12 @@ var FormulaSearch = function FormulaSearch(props) {
877
877
  style: {
878
878
  width: "16px"
879
879
  }
880
+ })), v.SECONDARY_LOGO && (/*#__PURE__*/React__default['default'].createElement("img", {
881
+ src: v.SECONDARY_LOGO,
882
+ alt: "Service Logo",
883
+ style: {
884
+ width: "16px"
885
+ }
880
886
  })), v.API_KEY && (/*#__PURE__*/React__default['default'].createElement(ui.Tooltip, {
881
887
  text: localStorage.getItem(v.API_KEY) ? "API Key added" : "API key required"
882
888
  }, /*#__PURE__*/React__default['default'].createElement("div", {
@@ -923,6 +929,12 @@ var FormulaSearch = function FormulaSearch(props) {
923
929
  style: {
924
930
  width: "16px"
925
931
  }
932
+ })), v.SECONDARY_LOGO && (/*#__PURE__*/React__default['default'].createElement("img", {
933
+ src: v.SECONDARY_LOGO,
934
+ alt: "Service Logo",
935
+ style: {
936
+ width: "16px"
937
+ }
926
938
  })), v.API_KEY && (/*#__PURE__*/React__default['default'].createElement(ui.Tooltip, {
927
939
  text: localStorage.getItem(v.API_KEY) ? "API Key added" : "API Key required"
928
940
  }, /*#__PURE__*/React__default['default'].createElement("div", {
package/dist/index.umd.js CHANGED
@@ -37634,7 +37634,6 @@
37634
37634
  const trend = param2 ? `&price_change_percentage=${param2}` : '';
37635
37635
 
37636
37636
  url = `https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&include_tokens=top&page=1&per_page=100`;
37637
- if (key && !categoryVal) return `${SERVICE_API_KEY.Coingecko}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`;
37638
37637
  if (categoryVal) url += `&category=${categoryVal}`;
37639
37638
  if (trend) url += trend;
37640
37639
  break;
@@ -37893,11 +37892,12 @@
37893
37892
  let [category] = argsToArray(arguments);
37894
37893
  const apiKey = window.localStorage.getItem(SERVICE_API_KEY.Defillama);
37895
37894
  if (!apiKey) return `${SERVICE_API_KEY.Defillama}_MISSING`;
37896
- const categoryList = ['protocols', 'yields', 'dex'];
37895
+ const categoryList = ['protocols', 'yields', 'dex', 'fees'];
37897
37896
  const categoryMap = {
37898
37897
  [categoryList[0]]: 'https://api.llama.fi/protocols',
37899
37898
  [categoryList[1]]: 'https://yields.llama.fi/pools',
37900
- [categoryList[2]]: 'https://api.llama.fi/overview/dexs?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true'
37899
+ [categoryList[2]]: 'https://api.llama.fi/overview/dexs?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true',
37900
+ [categoryList[3]]: 'https://api.llama.fi/overview/fees?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyFees'
37901
37901
  };
37902
37902
  let url = categoryMap[category];
37903
37903
 
@@ -37920,6 +37920,10 @@
37920
37920
  json = json.protocols.slice(0, 500);
37921
37921
  break;
37922
37922
  }
37923
+ case categoryList[3]: {
37924
+ json = json.protocols.slice(0, 500);
37925
+ break;
37926
+ }
37923
37927
  }
37924
37928
 
37925
37929
  return removeNestedStructure(Array.isArray(json) ? json : [json]);
@@ -37989,6 +37993,10 @@
37989
37993
  return "Coming Soon"
37990
37994
  }
37991
37995
 
37996
+ function MYANIMELIST() {
37997
+ return "Coming Soon"
37998
+ }
37999
+
37992
38000
  const utils = { errors: errors$1, symbols, date };
37993
38001
 
37994
38002
  var formulajs = /*#__PURE__*/Object.freeze({
@@ -38251,6 +38259,7 @@
38251
38259
  MROUND: MROUND,
38252
38260
  MULTINOMIAL: MULTINOMIAL,
38253
38261
  MUNIT: MUNIT,
38262
+ MYANIMELIST: MYANIMELIST,
38254
38263
  N: N,
38255
38264
  NA: NA,
38256
38265
  NEGBINOM: NEGBINOM,
@@ -105661,6 +105670,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
105661
105670
  style: {
105662
105671
  width: "16px"
105663
105672
  }
105673
+ })), v.SECONDARY_LOGO && (/*#__PURE__*/React__default['default'].createElement("img", {
105674
+ src: v.SECONDARY_LOGO,
105675
+ alt: "Service Logo",
105676
+ style: {
105677
+ width: "16px"
105678
+ }
105664
105679
  })), v.API_KEY && (/*#__PURE__*/React__default['default'].createElement(Ts, {
105665
105680
  text: localStorage.getItem(v.API_KEY) ? "API Key added" : "API key required"
105666
105681
  }, /*#__PURE__*/React__default['default'].createElement("div", {
@@ -105707,6 +105722,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
105707
105722
  style: {
105708
105723
  width: "16px"
105709
105724
  }
105725
+ })), v.SECONDARY_LOGO && (/*#__PURE__*/React__default['default'].createElement("img", {
105726
+ src: v.SECONDARY_LOGO,
105727
+ alt: "Service Logo",
105728
+ style: {
105729
+ width: "16px"
105730
+ }
105710
105731
  })), v.API_KEY && (/*#__PURE__*/React__default['default'].createElement(Ts, {
105711
105732
  text: localStorage.getItem(v.API_KEY) ? "API Key added" : "API Key required"
105712
105733
  }, /*#__PURE__*/React__default['default'].createElement("div", {