@fileverse-dev/fortune-react 1.2.12 → 1.2.13
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.
|
@@ -16,8 +16,9 @@ import WorkbookContext from "../../../context";
|
|
|
16
16
|
import "./index.css";
|
|
17
17
|
var FormulaSearch = function FormulaSearch(props) {
|
|
18
18
|
var _a;
|
|
19
|
-
var
|
|
20
|
-
|
|
19
|
+
var _b = useContext(WorkbookContext),
|
|
20
|
+
context = _b.context,
|
|
21
|
+
isAuthorized = _b.settings.isAuthorized;
|
|
21
22
|
var authedFunction = ["COINGECKO", "ETHERSCAN", "DEFILLAMA", "GNOSIS", "BASE", "EOA", "PNL", "SAFE", "BLOCKSCOUT", "LENS", "FARCASTER", "Ethereum", "SMARTCONTRACT", "DUNESIM"];
|
|
22
23
|
var filteredDefaultCandidates = context.defaultCandidates.filter(function (item) {
|
|
23
24
|
return !authedFunction.includes(item.n);
|
|
@@ -31,9 +32,9 @@ var FormulaSearch = function FormulaSearch(props) {
|
|
|
31
32
|
});
|
|
32
33
|
var firstSelection = (_a = context.luckysheet_select_save) === null || _a === void 0 ? void 0 : _a[0];
|
|
33
34
|
var hintRef = useRef(null);
|
|
34
|
-
var
|
|
35
|
-
top =
|
|
36
|
-
setTop =
|
|
35
|
+
var _c = useState(0),
|
|
36
|
+
top = _c[0],
|
|
37
|
+
setTop = _c[1];
|
|
37
38
|
var calcuatePopUpPlacement = function calcuatePopUpPlacement() {
|
|
38
39
|
var _a, _b, _c, _d;
|
|
39
40
|
if (!((_a = firstSelection === null || firstSelection === void 0 ? void 0 : firstSelection.top) === null || _a === void 0 ? void 0 : _a.toString()) || !((_b = firstSelection.height_move) === null || _b === void 0 ? void 0 : _b.toString()) || !hintRef.current) return;
|
|
@@ -25,8 +25,9 @@ var __assign = void 0 && (void 0).__assign || function () {
|
|
|
25
25
|
};
|
|
26
26
|
var FormulaSearch = function FormulaSearch(props) {
|
|
27
27
|
var _a;
|
|
28
|
-
var
|
|
29
|
-
|
|
28
|
+
var _b = (0, _react.useContext)(_context.default),
|
|
29
|
+
context = _b.context,
|
|
30
|
+
isAuthorized = _b.settings.isAuthorized;
|
|
30
31
|
var authedFunction = ["COINGECKO", "ETHERSCAN", "DEFILLAMA", "GNOSIS", "BASE", "EOA", "PNL", "SAFE", "BLOCKSCOUT", "LENS", "FARCASTER", "Ethereum", "SMARTCONTRACT", "DUNESIM"];
|
|
31
32
|
var filteredDefaultCandidates = context.defaultCandidates.filter(function (item) {
|
|
32
33
|
return !authedFunction.includes(item.n);
|
|
@@ -40,9 +41,9 @@ var FormulaSearch = function FormulaSearch(props) {
|
|
|
40
41
|
});
|
|
41
42
|
var firstSelection = (_a = context.luckysheet_select_save) === null || _a === void 0 ? void 0 : _a[0];
|
|
42
43
|
var hintRef = (0, _react.useRef)(null);
|
|
43
|
-
var
|
|
44
|
-
top =
|
|
45
|
-
setTop =
|
|
44
|
+
var _c = (0, _react.useState)(0),
|
|
45
|
+
top = _c[0],
|
|
46
|
+
setTop = _c[1];
|
|
46
47
|
var calcuatePopUpPlacement = function calcuatePopUpPlacement() {
|
|
47
48
|
var _a, _b, _c, _d;
|
|
48
49
|
if (!((_a = firstSelection === null || firstSelection === void 0 ? void 0 : firstSelection.top) === null || _a === void 0 ? void 0 : _a.toString()) || !((_b = firstSelection.height_move) === null || _b === void 0 ? void 0 : _b.toString()) || !hintRef.current) return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.13",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"tsc": "tsc"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@fileverse-dev/fortune-core": "1.2.
|
|
19
|
+
"@fileverse-dev/fortune-core": "1.2.13",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-21",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|