@fileverse-dev/dsheet 4.1.1 → 4.1.2-overhaul-1
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/README.md +1 -1
- package/dist/{constants-CRFfbkoQ.js → constants-5ZxHFftQ.js} +1 -1
- package/dist/constants.js +1 -1
- package/dist/crypto-constants-CY-Whjwy.js +333 -0
- package/dist/{executeStringFunction-BJ00H04h.js → executeStringFunction-adhsb5GH.js} +9 -7
- package/dist/formula.js +1 -1
- package/dist/{index-CsYiH7pp.js → index-DC_Tcoo4.js} +25172 -25401
- package/dist/index.es.js +3 -3
- package/dist/style.css +1 -1
- package/dist/{use-xlsx-import-impl-OXKPbMbG.js → use-xlsx-import-impl-CcET8OCA.js} +4 -4
- package/dist/{xlsx-defined-names-Klp22jvp.js → xlsx-defined-names-u1Jyf-M6.js} +2 -2
- package/dist/{xlsx-export-impl-Y8hmWj_I.js → xlsx-export-impl-BjQj4U0N.js} +192 -188
- package/dist/{xlsx-hyperlink-inline-DNeesFv6.js → xlsx-hyperlink-inline-D2-WOlOD.js} +2 -2
- package/package.json +3 -3
- package/dist/crypto-constants-ZTlAYRUf.js +0 -1165
package/README.md
CHANGED
package/dist/constants.js
CHANGED
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
var y = Object.create, u = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, m = Object.getOwnPropertyNames, v = Object.getPrototypeOf, E = Object.prototype.hasOwnProperty, c = (n, e) => function() {
|
|
2
|
+
return e || (0, n[m(n)[0]])((e = { exports: {} }).exports, e), e.exports;
|
|
3
|
+
}, f = (n, e, i, a) => {
|
|
4
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
5
|
+
for (let t of m(e))
|
|
6
|
+
!E.call(n, t) && t !== i && u(n, t, { get: () => e[t], enumerable: !(a = _(e, t)) || a.enumerable });
|
|
7
|
+
return n;
|
|
8
|
+
}, b = (n, e, i) => (i = n != null ? y(v(n)) : {}, f(
|
|
9
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
10
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
11
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
12
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
13
|
+
u(i, "default", { value: n, enumerable: !0 }),
|
|
14
|
+
n
|
|
15
|
+
)), x = c({
|
|
16
|
+
"node_modules/jwt-decode/lib/atob.js"(n, e) {
|
|
17
|
+
var i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
18
|
+
function a(r) {
|
|
19
|
+
this.message = r;
|
|
20
|
+
}
|
|
21
|
+
a.prototype = new Error(), a.prototype.name = "InvalidCharacterError";
|
|
22
|
+
function t(r) {
|
|
23
|
+
var o = String(r).replace(/=+$/, "");
|
|
24
|
+
if (o.length % 4 == 1)
|
|
25
|
+
throw new a("'atob' failed: The string to be decoded is not correctly encoded.");
|
|
26
|
+
for (
|
|
27
|
+
var s = 0, d, l, g = 0, p = "";
|
|
28
|
+
// get next character
|
|
29
|
+
l = o.charAt(g++);
|
|
30
|
+
// character found in table? initialize bit storage and add its ascii value;
|
|
31
|
+
~l && (d = s % 4 ? d * 64 + l : l, // and if not first of each 4 characters,
|
|
32
|
+
// convert the first 8 bits to one ascii character
|
|
33
|
+
s++ % 4) ? p += String.fromCharCode(255 & d >> (-2 * s & 6)) : 0
|
|
34
|
+
)
|
|
35
|
+
l = i.indexOf(l);
|
|
36
|
+
return p;
|
|
37
|
+
}
|
|
38
|
+
e.exports = typeof window < "u" && window.atob && window.atob.bind(window) || t;
|
|
39
|
+
}
|
|
40
|
+
}), O = c({
|
|
41
|
+
"node_modules/jwt-decode/lib/base64_url_decode.js"(n, e) {
|
|
42
|
+
var i = x();
|
|
43
|
+
function a(t) {
|
|
44
|
+
return decodeURIComponent(i(t).replace(/(.)/g, function(r, o) {
|
|
45
|
+
var s = o.charCodeAt(0).toString(16).toUpperCase();
|
|
46
|
+
return s.length < 2 && (s = "0" + s), "%" + s;
|
|
47
|
+
}));
|
|
48
|
+
}
|
|
49
|
+
e.exports = function(t) {
|
|
50
|
+
var r = t.replace(/-/g, "+").replace(/_/g, "/");
|
|
51
|
+
switch (r.length % 4) {
|
|
52
|
+
case 0:
|
|
53
|
+
break;
|
|
54
|
+
case 2:
|
|
55
|
+
r += "==";
|
|
56
|
+
break;
|
|
57
|
+
case 3:
|
|
58
|
+
r += "=";
|
|
59
|
+
break;
|
|
60
|
+
default:
|
|
61
|
+
throw "Illegal base64url string!";
|
|
62
|
+
}
|
|
63
|
+
try {
|
|
64
|
+
return a(r);
|
|
65
|
+
} catch {
|
|
66
|
+
return i(r);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
}), w = c({
|
|
71
|
+
"node_modules/jwt-decode/lib/index.js"(n, e) {
|
|
72
|
+
var i = O();
|
|
73
|
+
function a(t) {
|
|
74
|
+
this.message = t;
|
|
75
|
+
}
|
|
76
|
+
a.prototype = new Error(), a.prototype.name = "InvalidTokenError", e.exports = function(t, r) {
|
|
77
|
+
if (typeof t != "string")
|
|
78
|
+
throw new a("Invalid token specified");
|
|
79
|
+
r = r || {};
|
|
80
|
+
var o = r.header === !0 ? 0 : 1;
|
|
81
|
+
try {
|
|
82
|
+
return JSON.parse(i(t.split(".")[o]));
|
|
83
|
+
} catch (s) {
|
|
84
|
+
throw new a("Invalid token specified: " + s.message);
|
|
85
|
+
}
|
|
86
|
+
}, e.exports.InvalidTokenError = a;
|
|
87
|
+
}
|
|
88
|
+
}), k = c({
|
|
89
|
+
"node_modules/jwt-check-expiration/src/index.js"(n, e) {
|
|
90
|
+
var i = w(), a = (t) => {
|
|
91
|
+
if (typeof t != "string" || !t) throw new Error("Invalid token provided");
|
|
92
|
+
let r = !1;
|
|
93
|
+
const { exp: o } = i(t);
|
|
94
|
+
return (/* @__PURE__ */ new Date()).getTime() / 1e3 > o && (r = !0), r;
|
|
95
|
+
};
|
|
96
|
+
e.exports.isJwtExpired = a;
|
|
97
|
+
}
|
|
98
|
+
}), I = {
|
|
99
|
+
INVALID_API_KEY: "INVALID_API_KEY",
|
|
100
|
+
RATE_LIMIT: "RATE_LIMIT",
|
|
101
|
+
DEFAULT: "DEFAULT",
|
|
102
|
+
MISSING_KEY: "MISSING_KEY",
|
|
103
|
+
INVALID_PARAM: "INVALID_PARAM",
|
|
104
|
+
NETWORK_ERROR: "NETWORK_ERROR",
|
|
105
|
+
ENS: "ENS"
|
|
106
|
+
}, h = {
|
|
107
|
+
Etherscan: "Etherscan",
|
|
108
|
+
Coingecko: "Coingecko",
|
|
109
|
+
Safe: "Safe",
|
|
110
|
+
Basescan: "Basescan",
|
|
111
|
+
Gnosisscan: "Gnosisscan",
|
|
112
|
+
Firefly: "Firefly",
|
|
113
|
+
GnosisPay: "GnosisPay",
|
|
114
|
+
Neynar: "Neynar",
|
|
115
|
+
Defillama: "Defillama",
|
|
116
|
+
DuneSim: "DuneSim"
|
|
117
|
+
}, A = {
|
|
118
|
+
API_KEY: h.Etherscan,
|
|
119
|
+
LOGO: "https://raw.githubusercontent.com/ethereum/ethereum-org/master/dist/favicon.ico",
|
|
120
|
+
BRAND_COLOR: "#F6F7F8",
|
|
121
|
+
BRAND_SECONDARY_COLOR: "#21325B",
|
|
122
|
+
n: "EOA",
|
|
123
|
+
t: 20,
|
|
124
|
+
d: "Fetches address data like transactions, balances, or portfolio info from multiple supported chains.",
|
|
125
|
+
a: "Dynamically queries blockchain data such as transactions and balances by resolving time ranges to block ranges and supporting pagination.",
|
|
126
|
+
p: [
|
|
127
|
+
{
|
|
128
|
+
name: "addresses",
|
|
129
|
+
detail: "One or more addresses (comma-separated) to query.",
|
|
130
|
+
example: '"vitalik.eth"',
|
|
131
|
+
require: "m",
|
|
132
|
+
type: "string"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: "categories",
|
|
136
|
+
detail: 'Type of data to fetch. Supported values: "txns", "balance".',
|
|
137
|
+
example: '"txns"',
|
|
138
|
+
require: "m",
|
|
139
|
+
type: "string"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: "chain",
|
|
143
|
+
detail: 'Blockchain network(s) to query. Supported values: "ethereum", "gnosis", "base". Accepts comma-separated values.',
|
|
144
|
+
example: '"ethereum"',
|
|
145
|
+
require: "m",
|
|
146
|
+
type: "string"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: "startTime",
|
|
150
|
+
detail: "Used to calculate starting block for transaction queries.",
|
|
151
|
+
example: '"01/01/2024"',
|
|
152
|
+
require: "m",
|
|
153
|
+
type: "string"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: "endTime",
|
|
157
|
+
detail: "Used to calculate ending block for transaction queries.",
|
|
158
|
+
example: '"01/06/2024"',
|
|
159
|
+
require: "m",
|
|
160
|
+
type: "string"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
name: "page",
|
|
164
|
+
detail: "The page number for paginated transaction results. Only used when category is 'txns'. Default is 1",
|
|
165
|
+
example: "1",
|
|
166
|
+
require: "o",
|
|
167
|
+
type: "number"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: "offset",
|
|
171
|
+
detail: "The number of results to return per page (limit). Only used when category is 'txns'. Default is 10",
|
|
172
|
+
example: "10",
|
|
173
|
+
require: "o",
|
|
174
|
+
type: "number"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
name: "columnsName",
|
|
178
|
+
detail: "Filter columns by name in output. Comma separated list.",
|
|
179
|
+
example: '"address,blockNumber"',
|
|
180
|
+
require: "o",
|
|
181
|
+
type: "string"
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
examples: [{
|
|
185
|
+
title: "EOA",
|
|
186
|
+
argumentString: '"vitalik.eth", "txns", "ethereum", "01/01/2023", "01/05/2024", 1, 2',
|
|
187
|
+
description: "returns the transaction history for the address vitalik.eth on the Ethereum blockchain between January 1, 2023 and January 5, 2024, returning page 1 with 2 transactions per page."
|
|
188
|
+
}, {
|
|
189
|
+
title: "EOA",
|
|
190
|
+
argumentString: '"vitalik.eth", "balance", "gnosis"',
|
|
191
|
+
description: "returns the balance for the address vitalik.eth on the Gnosis blockchain."
|
|
192
|
+
}]
|
|
193
|
+
}, S = {
|
|
194
|
+
API_KEY: h.Etherscan,
|
|
195
|
+
LOGO: "https://etherscan.io/images/favicon3.ico",
|
|
196
|
+
BRAND_COLOR: "#F6F7F8",
|
|
197
|
+
BRAND_SECONDARY_COLOR: "#21325B",
|
|
198
|
+
n: "ETHERSCAN",
|
|
199
|
+
t: 20,
|
|
200
|
+
d: "Returns blockchain transaction history for the given address",
|
|
201
|
+
a: "Retrieves blockchain data for a given chain and address from Etherscan, including txns, token/nft transfers, and gas metrics.",
|
|
202
|
+
p: [
|
|
203
|
+
{
|
|
204
|
+
name: "type",
|
|
205
|
+
detail: "The type of data to retrieve. Can be 'all-txns', 'token-txns', 'nft-txns', or 'gas'.",
|
|
206
|
+
example: '"all-txns"',
|
|
207
|
+
require: "m",
|
|
208
|
+
type: "string"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
name: "chain",
|
|
212
|
+
detail: "The chain name (e.g. 'ethereum', 'base', 'gnosis').",
|
|
213
|
+
example: '"ethereum"',
|
|
214
|
+
require: "m",
|
|
215
|
+
type: "string"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
name: "address",
|
|
219
|
+
detail: "Wallet address / Ens name to query",
|
|
220
|
+
example: '"vitalik.eth"',
|
|
221
|
+
require: "m",
|
|
222
|
+
type: "string"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
name: "startDate",
|
|
226
|
+
detail: "Used to filter block range.",
|
|
227
|
+
example: '"01/01/2024"',
|
|
228
|
+
require: "o",
|
|
229
|
+
type: "string"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
name: "endDate",
|
|
233
|
+
detail: "Used to filter block range.",
|
|
234
|
+
example: '"01/07/2025"',
|
|
235
|
+
require: "o",
|
|
236
|
+
type: "string"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
name: "columnsName",
|
|
240
|
+
detail: "Filter columns by name in output. Comma separated list.",
|
|
241
|
+
example: '"blockNumber,timeStamp"',
|
|
242
|
+
require: "o",
|
|
243
|
+
type: "string"
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
examples: [
|
|
247
|
+
{
|
|
248
|
+
title: "ETHERSCAN",
|
|
249
|
+
argumentString: '"all-txns", "ethereum", "vitalik.eth"',
|
|
250
|
+
description: "returns the complete transaction history for the address vitalik.eth on the Ethereum blockchain."
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
title: "ETHERSCAN",
|
|
254
|
+
argumentString: '"token-txns", "gnosis", "vitalik.eth", "01/01/2024", "01/05/2024"',
|
|
255
|
+
description: "returns the token transaction history for the address vitalik.eth on the Gnosis blockchain between January 1, 2024 and January 5, 2024."
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
}, R = [
|
|
259
|
+
A,
|
|
260
|
+
S
|
|
261
|
+
// UNISWAP_metadata,
|
|
262
|
+
// COINGECKO_metadata,
|
|
263
|
+
// DEFILLAMA_metadata,
|
|
264
|
+
// BASE_metadata,
|
|
265
|
+
// GNOSIS_metadata,
|
|
266
|
+
// PNL_metadata,
|
|
267
|
+
// SAFE_metadata,
|
|
268
|
+
// BLOCKSCOUT_metadata,
|
|
269
|
+
// AAVE_metadata,
|
|
270
|
+
// FIREFLY_metadata,
|
|
271
|
+
// SMARTCONTRACT_metadata,
|
|
272
|
+
// TALLY_metadata,
|
|
273
|
+
// DUNESIM_metadata,
|
|
274
|
+
// PRICE_metadata,
|
|
275
|
+
// WALLET_metadata,
|
|
276
|
+
// YIELD_metadata,
|
|
277
|
+
// CIRCLES_metadata
|
|
278
|
+
// GNOSISPAY_metadata,
|
|
279
|
+
/*{
|
|
280
|
+
LOGO: 'https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/ploymarket.png',
|
|
281
|
+
n: 'POLYMARKET',
|
|
282
|
+
t: 20,
|
|
283
|
+
d: 'Query prediction market positions, shares, and odds for future event outcomes on Polymarket. (Comming soon)',
|
|
284
|
+
a: 'Query prediction market positions, shares, and odds for future event outcomes on Polymarket. (Comming soon)',
|
|
285
|
+
p: []
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
LOGO: 'https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/privacy.png',
|
|
289
|
+
n: 'PRIVACYPOOL',
|
|
290
|
+
t: 20,
|
|
291
|
+
d: 'Access deposit/withdraw stats and compliance-safe anonymized transfers using zk-based Privacy Pools. (Comming soon)',
|
|
292
|
+
a: 'Access deposit/withdraw stats and compliance-safe anonymized transfers using zk-based Privacy Pools. (Comming soon)',
|
|
293
|
+
p: []
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
LOGO: 'https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/rotki.png',
|
|
297
|
+
n: 'ROTKI',
|
|
298
|
+
t: 20,
|
|
299
|
+
d: 'Pull portfolio, asset, and tax-related data from Rotki for crypto accounting and reporting. (Comming soon)',
|
|
300
|
+
a: 'Pull portfolio, asset, and tax-related data from Rotki for crypto accounting and reporting. (Comming soon)',
|
|
301
|
+
p: []
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
LOGO: 'https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/meerkat.png',
|
|
305
|
+
n: 'MEERKAT',
|
|
306
|
+
t: 20,
|
|
307
|
+
d: 'Query onchain proofs for tickets, attendance, speaker roles, and reactions. (Comming soon)',
|
|
308
|
+
a: 'Query onchain proofs for tickets, attendance, speaker roles, and reactions. (Comming soon)',
|
|
309
|
+
p: []
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
LOGO: 'https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/artemis.png',
|
|
313
|
+
n: 'ARTEMIS',
|
|
314
|
+
t: 20,
|
|
315
|
+
d: 'Query onchain financial metrics, developer activity, and market insights across protocols and sectors. (Comming soon)',
|
|
316
|
+
a: 'Query onchain financial metrics, developer activity, and market insights across protocols and sectors. (Comming soon)',
|
|
317
|
+
p: []
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
LOGO: 'https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/MYANIMELIST.png',
|
|
321
|
+
n: 'MYANIMELIST',
|
|
322
|
+
t: 20,
|
|
323
|
+
d: 'Kawaiii, comming soon. Hello Keith! (Comming soon)',
|
|
324
|
+
a: 'Kawaiii, comming soon. Hello Keith! (Comming soon)',
|
|
325
|
+
p: []
|
|
326
|
+
}*/
|
|
327
|
+
];
|
|
328
|
+
b(k());
|
|
329
|
+
export {
|
|
330
|
+
I as E,
|
|
331
|
+
R as F,
|
|
332
|
+
h as S
|
|
333
|
+
};
|
|
@@ -4,7 +4,7 @@ var Xe = (e, t, n) => Lc(e, typeof t != "symbol" ? t + "" : t, n);
|
|
|
4
4
|
import h, { isPlainObject as Qi } from "lodash";
|
|
5
5
|
import Ne from "dayjs";
|
|
6
6
|
import * as ia from "@fileverse-dev/formulajs";
|
|
7
|
-
import { F as Bc } from "./crypto-constants-
|
|
7
|
+
import { F as Bc } from "./crypto-constants-CY-Whjwy.js";
|
|
8
8
|
var Pc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
9
9
|
function zs(e) {
|
|
10
10
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -19213,19 +19213,21 @@ class Iu {
|
|
|
19213
19213
|
return s === "Error" && (s = "", c = 0), { fragment: u, cryptoDenomination: s, cryptoDecimal: c };
|
|
19214
19214
|
}
|
|
19215
19215
|
tryGetCellAsNumber(t) {
|
|
19216
|
-
var i, u, s;
|
|
19216
|
+
var i, u, s, c;
|
|
19217
|
+
if (((i = t == null ? void 0 : t.ct) == null ? void 0 : i.t) === "inlineStr" && Array.isArray(t.ct.s))
|
|
19218
|
+
return t.ct.s.map((f) => (f == null ? void 0 : f.v) ?? "").join("");
|
|
19217
19219
|
const n = t == null ? void 0 : t.v, r = typeof n == "string" ? n.trim().replace(/,/g, "") : n, a = typeof r == "string" && /^-?\d{16,}$/.test(r), l = typeof r == "string" && /^-?\d+\.\d+$/.test(r);
|
|
19218
19220
|
if (a)
|
|
19219
19221
|
return r;
|
|
19220
19222
|
if (l)
|
|
19221
19223
|
return Number(r);
|
|
19222
|
-
if ((typeof (t == null ? void 0 : t.m) == "string" ? ((
|
|
19223
|
-
const
|
|
19224
|
-
return Number(
|
|
19224
|
+
if ((typeof (t == null ? void 0 : t.m) == "string" ? ((u = t == null ? void 0 : t.m) == null ? void 0 : u.includes("ETH")) || ((s = t == null ? void 0 : t.m) == null ? void 0 : s.includes("SOL")) || ((c = t == null ? void 0 : t.m) == null ? void 0 : c.includes("BTC")) : !1) && typeof (t == null ? void 0 : t.m) == "string") {
|
|
19225
|
+
const f = t.m.split(" ")[0];
|
|
19226
|
+
return Number(f);
|
|
19225
19227
|
}
|
|
19226
19228
|
if (rn(t) && !String(t == null ? void 0 : t.m).includes("%")) {
|
|
19227
|
-
const
|
|
19228
|
-
return Number.isNaN(
|
|
19229
|
+
const f = Number(t == null ? void 0 : t.v);
|
|
19230
|
+
return Number.isNaN(f) ? t.v : f;
|
|
19229
19231
|
}
|
|
19230
19232
|
return String(t == null ? void 0 : t.m).includes("%") ? t == null ? void 0 : t.m : t == null ? void 0 : t.v;
|
|
19231
19233
|
}
|
package/dist/formula.js
CHANGED