@fileverse-dev/dsheet 4.0.2-comment-markers-1 → 4.0.2-d
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/{constants-Cdz6oSCq.js → constants-CRFfbkoQ.js} +1 -1
- package/dist/constants.js +1 -1
- package/dist/{crypto-constants-CqpCRs86.js → crypto-constants-ZTlAYRUf.js} +33 -22
- package/dist/{executeStringFunction-BQvE7aeV.js → executeStringFunction-CsLQk-dm.js} +31 -15
- package/dist/formula.js +1 -1
- package/dist/{index-CeTa91qc.js → index-9G1KUb6I.js} +6841 -6845
- package/dist/index.es.js +3 -3
- package/dist/use-xlsx-import-impl-Dcr-wzh1.js +1594 -0
- package/dist/{xlsx-export-impl-Ber9FhFY.js → xlsx-export-impl-Cf50nwif.js} +2 -2
- package/package.json +3 -3
- package/dist/use-xlsx-import-impl-BVsfV8ZV.js +0 -1572
package/dist/constants.js
CHANGED
|
@@ -12,7 +12,7 @@ var g = Object.create, u = Object.defineProperty, y = Object.getOwnPropertyDescr
|
|
|
12
12
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
13
13
|
u(i, "default", { value: n, enumerable: !0 }),
|
|
14
14
|
n
|
|
15
|
-
)),
|
|
15
|
+
)), C = m({
|
|
16
16
|
"node_modules/jwt-decode/lib/atob.js"(n, e) {
|
|
17
17
|
var i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
18
18
|
function r(a) {
|
|
@@ -37,9 +37,9 @@ var g = Object.create, u = Object.defineProperty, y = Object.getOwnPropertyDescr
|
|
|
37
37
|
}
|
|
38
38
|
e.exports = typeof window < "u" && window.atob && window.atob.bind(window) || t;
|
|
39
39
|
}
|
|
40
|
-
}),
|
|
40
|
+
}), v = m({
|
|
41
41
|
"node_modules/jwt-decode/lib/base64_url_decode.js"(n, e) {
|
|
42
|
-
var i =
|
|
42
|
+
var i = C();
|
|
43
43
|
function r(t) {
|
|
44
44
|
return decodeURIComponent(i(t).replace(/(.)/g, function(a, o) {
|
|
45
45
|
var s = o.charCodeAt(0).toString(16).toUpperCase();
|
|
@@ -69,7 +69,7 @@ var g = Object.create, u = Object.defineProperty, y = Object.getOwnPropertyDescr
|
|
|
69
69
|
}
|
|
70
70
|
}), O = m({
|
|
71
71
|
"node_modules/jwt-decode/lib/index.js"(n, e) {
|
|
72
|
-
var i =
|
|
72
|
+
var i = v();
|
|
73
73
|
function r(t) {
|
|
74
74
|
this.message = t;
|
|
75
75
|
}
|
|
@@ -85,7 +85,7 @@ var g = Object.create, u = Object.defineProperty, y = Object.getOwnPropertyDescr
|
|
|
85
85
|
}
|
|
86
86
|
}, e.exports.InvalidTokenError = r;
|
|
87
87
|
}
|
|
88
|
-
}),
|
|
88
|
+
}), S = m({
|
|
89
89
|
"node_modules/jwt-check-expiration/src/index.js"(n, e) {
|
|
90
90
|
var i = O(), r = (t) => {
|
|
91
91
|
if (typeof t != "string" || !t) throw new Error("Invalid token provided");
|
|
@@ -114,7 +114,7 @@ var g = Object.create, u = Object.defineProperty, y = Object.getOwnPropertyDescr
|
|
|
114
114
|
Neynar: "Neynar",
|
|
115
115
|
Defillama: "Defillama",
|
|
116
116
|
DuneSim: "DuneSim"
|
|
117
|
-
},
|
|
117
|
+
}, k = {
|
|
118
118
|
API_KEY: l.Etherscan,
|
|
119
119
|
LOGO: "https://raw.githubusercontent.com/ethereum/ethereum-org/master/dist/favicon.ico",
|
|
120
120
|
BRAND_COLOR: "#F6F7F8",
|
|
@@ -256,22 +256,23 @@ Pagination is supported for all except single-exchange derivatives.`,
|
|
|
256
256
|
{
|
|
257
257
|
name: "category",
|
|
258
258
|
detail: 'Query type: "price", "market", "stablecoins", or "derivatives".',
|
|
259
|
-
example: '"
|
|
259
|
+
example: '"price"',
|
|
260
260
|
require: "m"
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
name: "param1",
|
|
264
|
-
detail: `If "price" then - eg. "
|
|
264
|
+
detail: `If "price" then - CoinGecko coin ids, eg. "bitcoin", "ethereum", "bitcoin,ethereum" (not ticker symbols like "btc").
|
|
265
265
|
If "market": one of "all", "base", "meme", "aiagents", "bitcoin", "ethereum", "hyperliquid", "pump", "solana".
|
|
266
266
|
If "stablecoins": one of "all", "yield-bearing-stablecoins", "crypto-backed-stablecoin".
|
|
267
267
|
If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-futures", "bybit" ).`,
|
|
268
|
-
example: '"
|
|
268
|
+
example: '"bitcoin"',
|
|
269
269
|
require: "m"
|
|
270
270
|
},
|
|
271
271
|
{
|
|
272
272
|
name: "param2",
|
|
273
|
-
detail:
|
|
274
|
-
|
|
273
|
+
detail: `If "price" then vs currency (default "usd"), eg. "usd", "eur".
|
|
274
|
+
If "market" and "stablecoins" then eg. "1h", "24h", "7d", "14d", "30d", "200d", "1y".`,
|
|
275
|
+
example: '"usd"',
|
|
275
276
|
require: "o"
|
|
276
277
|
},
|
|
277
278
|
{
|
|
@@ -283,6 +284,16 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
|
|
|
283
284
|
}
|
|
284
285
|
],
|
|
285
286
|
examples: [
|
|
287
|
+
{
|
|
288
|
+
title: "COINGECKO",
|
|
289
|
+
argumentString: '"price", "bitcoin"',
|
|
290
|
+
description: "returns the current Bitcoin price in USD (e.g. BITCOIN_USD)."
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
title: "COINGECKO",
|
|
294
|
+
argumentString: '"price", "bitcoin,ethereum", "usd"',
|
|
295
|
+
description: "returns current Bitcoin and Ethereum prices in USD."
|
|
296
|
+
},
|
|
286
297
|
{
|
|
287
298
|
title: "COINGECKO",
|
|
288
299
|
argumentString: '"stablecoins", "yield-bearing-stablecoins", "1h,24h,7d"',
|
|
@@ -559,7 +570,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
|
|
|
559
570
|
argumentString: '"{100, 200, 150}", "{250, 300, 200}"',
|
|
560
571
|
description: "returns the total profit or loss by subtracting the costs {100, 200, 150} from the revenues {250, 300, 200}."
|
|
561
572
|
}]
|
|
562
|
-
},
|
|
573
|
+
}, I = {
|
|
563
574
|
API_KEY: l.Safe,
|
|
564
575
|
LOGO: "https://safe.global/favicon.ico",
|
|
565
576
|
BRAND_COLOR: "#ebf9f3",
|
|
@@ -614,7 +625,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
|
|
|
614
625
|
description: "returns the last 100 transactions for the specified Safe address on the Ethereum chain."
|
|
615
626
|
}
|
|
616
627
|
]
|
|
617
|
-
},
|
|
628
|
+
}, w = {
|
|
618
629
|
LOGO: "https://cdn.prod.website-files.com/65f94dfd53db8b337c808067/68485baa72714ae58f350ce2_bs-logo.png",
|
|
619
630
|
BRAND_COLOR: "#f8f8fd",
|
|
620
631
|
BRAND_SECONDARY_COLOR: "#5353D3",
|
|
@@ -858,7 +869,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
|
|
|
858
869
|
argumentString: '"proposals", "aave"',
|
|
859
870
|
description: "returns proposals for the Aave organization from Tally."
|
|
860
871
|
}]
|
|
861
|
-
},
|
|
872
|
+
}, U = {
|
|
862
873
|
API_KEY: l.DuneSim,
|
|
863
874
|
LOGO: "https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://docs.sim.dune.com&size=32",
|
|
864
875
|
BRAND_COLOR: "#fef7f5",
|
|
@@ -916,7 +927,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
|
|
|
916
927
|
description: "returns the latest 10 wallet activities for the address vitalik.eth on the Ethereum chain."
|
|
917
928
|
}
|
|
918
929
|
]
|
|
919
|
-
},
|
|
930
|
+
}, Y = {
|
|
920
931
|
n: "PRICE",
|
|
921
932
|
t: 20,
|
|
922
933
|
d: "Query prices of crypto assets",
|
|
@@ -956,7 +967,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
|
|
|
956
967
|
description: "returns the prices of ETH and BTC with 1-hour, 24-hour, and 168-hour (7-day) historical offsets."
|
|
957
968
|
}
|
|
958
969
|
]
|
|
959
|
-
},
|
|
970
|
+
}, K = {
|
|
960
971
|
n: "WALLET",
|
|
961
972
|
t: 20,
|
|
962
973
|
d: "Query wallet balance and transactions",
|
|
@@ -1003,7 +1014,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
|
|
|
1003
1014
|
description: "returns the latest balance for the address vitalik.eth on the Base chain."
|
|
1004
1015
|
}
|
|
1005
1016
|
]
|
|
1006
|
-
},
|
|
1017
|
+
}, W = {
|
|
1007
1018
|
n: "YIELD",
|
|
1008
1019
|
t: 20,
|
|
1009
1020
|
d: "Query yields",
|
|
@@ -1077,7 +1088,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
|
|
|
1077
1088
|
description: "returns the last 5 transactions for the specified Circles address."
|
|
1078
1089
|
}]
|
|
1079
1090
|
}, V = [
|
|
1080
|
-
|
|
1091
|
+
k,
|
|
1081
1092
|
D,
|
|
1082
1093
|
R,
|
|
1083
1094
|
_,
|
|
@@ -1085,16 +1096,16 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
|
|
|
1085
1096
|
N,
|
|
1086
1097
|
T,
|
|
1087
1098
|
L,
|
|
1088
|
-
w,
|
|
1089
1099
|
I,
|
|
1100
|
+
w,
|
|
1090
1101
|
B,
|
|
1091
1102
|
F,
|
|
1092
1103
|
P,
|
|
1093
1104
|
G,
|
|
1094
|
-
Y,
|
|
1095
1105
|
U,
|
|
1096
|
-
|
|
1106
|
+
Y,
|
|
1097
1107
|
K,
|
|
1108
|
+
W,
|
|
1098
1109
|
Q
|
|
1099
1110
|
// GNOSISPAY_metadata,
|
|
1100
1111
|
/*{
|
|
@@ -1146,7 +1157,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
|
|
|
1146
1157
|
p: []
|
|
1147
1158
|
}*/
|
|
1148
1159
|
];
|
|
1149
|
-
E(
|
|
1160
|
+
E(S());
|
|
1150
1161
|
export {
|
|
1151
1162
|
M as E,
|
|
1152
1163
|
V as F,
|
|
@@ -4,7 +4,7 @@ var Xe = (e, t, n) => rc(e, typeof t != "symbol" ? t + "" : t, n);
|
|
|
4
4
|
import h, { isPlainObject as Hi } from "lodash";
|
|
5
5
|
import Ce from "dayjs";
|
|
6
6
|
import * as Jr from "@fileverse-dev/formulajs";
|
|
7
|
-
import { F as ac } from "./crypto-constants-
|
|
7
|
+
import { F as ac } from "./crypto-constants-ZTlAYRUf.js";
|
|
8
8
|
var oc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
9
9
|
function As(e) {
|
|
10
10
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -549,12 +549,12 @@ function Zp(e, t) {
|
|
|
549
549
|
l
|
|
550
550
|
);
|
|
551
551
|
const o = e.luckysheetfile.length - 1, i = e.luckysheetfile[o], u = i.id;
|
|
552
|
-
(c = i.calcChain) != null && c.length && (i.calcChain = i.calcChain.
|
|
553
|
-
(g) =>
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
)), (f = i.dynamicArray) != null && f.length && (i.dynamicArray = i.dynamicArray.map(
|
|
552
|
+
(c = i.calcChain) != null && c.length && (i.calcChain = i.calcChain.filter(
|
|
553
|
+
(g) => g != null && typeof g.r == "number" && typeof g.c == "number"
|
|
554
|
+
).map((g) => ({
|
|
555
|
+
...g,
|
|
556
|
+
id: u
|
|
557
|
+
}))), (f = i.dynamicArray) != null && f.length && (i.dynamicArray = i.dynamicArray.map(
|
|
558
558
|
(g) => g && typeof g == "object" && "id" in g ? { ...g, id: u } : g
|
|
559
559
|
)), (m = i.dynamicArray_compute) != null && m.length && (i.dynamicArray_compute = i.dynamicArray_compute.map(
|
|
560
560
|
(g) => g && typeof g == "object" && "id" in g ? { ...g, id: u } : g
|
|
@@ -18443,7 +18443,7 @@ function pd(e, t, n) {
|
|
|
18443
18443
|
const a = Ko(r);
|
|
18444
18444
|
let l = !1;
|
|
18445
18445
|
(o = r.calcChain) == null || o.forEach((i) => {
|
|
18446
|
-
if (l) return;
|
|
18446
|
+
if (l || i == null) return;
|
|
18447
18447
|
const u = i.id ?? r.id, s = Or(
|
|
18448
18448
|
e,
|
|
18449
18449
|
u,
|
|
@@ -18462,6 +18462,7 @@ function gd(e, t, n, r) {
|
|
|
18462
18462
|
const a = n.calcChain;
|
|
18463
18463
|
if (!(a != null && a.length)) return !0;
|
|
18464
18464
|
for (const l of a) {
|
|
18465
|
+
if (l == null) continue;
|
|
18465
18466
|
const o = l.id ?? t, i = Or(
|
|
18466
18467
|
e,
|
|
18467
18468
|
o,
|
|
@@ -18483,6 +18484,7 @@ function yd(e, t) {
|
|
|
18483
18484
|
typeof u != "string" || !u.startsWith("=") || Sa(e, u).forEach((s) => n.add(s));
|
|
18484
18485
|
};
|
|
18485
18486
|
return gd(e, t, a, l) || (i = a.calcChain) == null || i.forEach((u) => {
|
|
18487
|
+
if (u == null) return;
|
|
18486
18488
|
const s = u.id ?? t, c = Or(
|
|
18487
18489
|
e,
|
|
18488
18490
|
s,
|
|
@@ -24133,14 +24135,28 @@ function Qt(e, t) {
|
|
|
24133
24135
|
if (!n)
|
|
24134
24136
|
return hs(e, t), t;
|
|
24135
24137
|
for (let r = 0; r < t.length; r += 1) {
|
|
24136
|
-
const a = t[r].row[0],
|
|
24137
|
-
let
|
|
24138
|
-
if (h.isNil(
|
|
24138
|
+
const a = t[r], l = a.row[0], o = a.row[1], i = a.column[0], u = a.column[1];
|
|
24139
|
+
let s, c;
|
|
24140
|
+
if (h.isNil(a.row_focus) ? s = l : s = a.row_focus, h.isNil(a.column_focus) ? c = i : c = a.column_focus, h.isNil(s) || h.isNil(c))
|
|
24139
24141
|
return console.error("normalizeSelection: rf and cf is nil"), e.primaryCellActive = null, t;
|
|
24140
|
-
const
|
|
24141
|
-
let
|
|
24142
|
-
const
|
|
24143
|
-
|
|
24142
|
+
const f = e.visibledatarow[o], m = l - 1 === -1 ? 0 : e.visibledatarow[l - 1], d = e.visibledatacolumn[u], p = i - 1 === -1 ? 0 : e.visibledatacolumn[i - 1];
|
|
24143
|
+
let g = e.visibledatarow[s], y = s - 1 === -1 ? 0 : e.visibledatarow[s - 1], b = e.visibledatacolumn[c], w = c - 1 === -1 ? 0 : e.visibledatacolumn[c - 1];
|
|
24144
|
+
const v = _n(e, n, s, c);
|
|
24145
|
+
v && ([y, g] = v.row, [w, b] = v.column), t[r] = {
|
|
24146
|
+
...a,
|
|
24147
|
+
row: [l, o],
|
|
24148
|
+
column: [i, u],
|
|
24149
|
+
row_focus: s,
|
|
24150
|
+
column_focus: c,
|
|
24151
|
+
left: w,
|
|
24152
|
+
width: b - w <= 0 ? 0 : b - w - 1,
|
|
24153
|
+
top: y,
|
|
24154
|
+
height: g - y <= 0 ? 0 : g - y - 1,
|
|
24155
|
+
left_move: p,
|
|
24156
|
+
width_move: d - p <= 0 ? 0 : d - p - 1,
|
|
24157
|
+
top_move: m,
|
|
24158
|
+
height_move: f - m <= 0 ? 0 : f - m - 1
|
|
24159
|
+
};
|
|
24144
24160
|
}
|
|
24145
24161
|
return hs(e, t), t;
|
|
24146
24162
|
}
|
package/dist/formula.js
CHANGED