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

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", {
@@ -1098,7 +1110,7 @@ var FormulaHint = function FormulaHint(props) {
1098
1110
  style: {
1099
1111
  display: "flex",
1100
1112
  justifyContent: "end",
1101
- minWidth: "68px",
1113
+ minWidth: "75px",
1102
1114
  height: "20px",
1103
1115
  alignItems: "center",
1104
1116
  gap: "6px"
@@ -1109,6 +1121,12 @@ var FormulaHint = function FormulaHint(props) {
1109
1121
  style: {
1110
1122
  width: "16px"
1111
1123
  }
1124
+ })), fn.SECONDARY_LOGO && (/*#__PURE__*/React.createElement("img", {
1125
+ src: fn.SECONDARY_LOGO,
1126
+ alt: "Service Logo",
1127
+ style: {
1128
+ width: "16px"
1129
+ }
1112
1130
  })), fn.API_KEY && (/*#__PURE__*/React.createElement("div", {
1113
1131
  style: {
1114
1132
  borderRadius: "4px",
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", {
@@ -1110,7 +1122,7 @@ var FormulaHint = function FormulaHint(props) {
1110
1122
  style: {
1111
1123
  display: "flex",
1112
1124
  justifyContent: "end",
1113
- minWidth: "68px",
1125
+ minWidth: "75px",
1114
1126
  height: "20px",
1115
1127
  alignItems: "center",
1116
1128
  gap: "6px"
@@ -1121,6 +1133,12 @@ var FormulaHint = function FormulaHint(props) {
1121
1133
  style: {
1122
1134
  width: "16px"
1123
1135
  }
1136
+ })), fn.SECONDARY_LOGO && (/*#__PURE__*/React__default['default'].createElement("img", {
1137
+ src: fn.SECONDARY_LOGO,
1138
+ alt: "Service Logo",
1139
+ style: {
1140
+ width: "16px"
1141
+ }
1124
1142
  })), fn.API_KEY && (/*#__PURE__*/React__default['default'].createElement("div", {
1125
1143
  style: {
1126
1144
  borderRadius: "4px",
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", {
@@ -105894,7 +105915,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
105894
105915
  style: {
105895
105916
  display: "flex",
105896
105917
  justifyContent: "end",
105897
- minWidth: "68px",
105918
+ minWidth: "75px",
105898
105919
  height: "20px",
105899
105920
  alignItems: "center",
105900
105921
  gap: "6px"
@@ -105905,6 +105926,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
105905
105926
  style: {
105906
105927
  width: "16px"
105907
105928
  }
105929
+ })), fn.SECONDARY_LOGO && (/*#__PURE__*/React__default['default'].createElement("img", {
105930
+ src: fn.SECONDARY_LOGO,
105931
+ alt: "Service Logo",
105932
+ style: {
105933
+ width: "16px"
105934
+ }
105908
105935
  })), fn.API_KEY && (/*#__PURE__*/React__default['default'].createElement("div", {
105909
105936
  style: {
105910
105937
  borderRadius: "4px",