@fileverse-dev/dsheet 1.3.13 → 1.3.14
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.es.js +52 -59
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -103375,7 +103375,7 @@ function tR(e, t, r) {
|
|
|
103375
103375
|
}
|
|
103376
103376
|
}
|
|
103377
103377
|
}
|
|
103378
|
-
const
|
|
103378
|
+
const nDt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
103379
103379
|
__proto__: null,
|
|
103380
103380
|
CFSplitRange: ru,
|
|
103381
103381
|
Canvas: jF,
|
|
@@ -145403,7 +145403,7 @@ fJ.displayName = cJ;
|
|
|
145403
145403
|
function dN(e) {
|
|
145404
145404
|
return e ? "open" : "closed";
|
|
145405
145405
|
}
|
|
145406
|
-
var uJ = "DialogTitleWarning", [
|
|
145406
|
+
var uJ = "DialogTitleWarning", [iDt, vJ] = Omt(uJ, {
|
|
145407
145407
|
contentName: Ad,
|
|
145408
145408
|
titleName: hN,
|
|
145409
145409
|
docsSlug: "dialog"
|
|
@@ -145425,7 +145425,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
145425
145425
|
}, [r, e, t]), null;
|
|
145426
145426
|
}, pN = $Q, WC = rJ, Z5 = aJ, Y5 = nJ, T7 = lJ, E7 = oJ, bN = fJ, mM, mJ = "HoverCard", [hJ] = Cs(mJ, [
|
|
145427
145427
|
vm
|
|
145428
|
-
]), gN = vm(), [
|
|
145428
|
+
]), gN = vm(), [lDt, yN] = hJ(mJ), dJ = "HoverCardTrigger", Cgt = Oe.forwardRef(
|
|
145429
145429
|
(e, t) => {
|
|
145430
145430
|
const { __scopeHoverCard: r, ...i } = e, n = yN(dJ, r), a = gN(r);
|
|
145431
145431
|
return /* @__PURE__ */ ke.jsx(b7, { asChild: !0, ...a, children: /* @__PURE__ */ ke.jsx(
|
|
@@ -145444,7 +145444,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
145444
145444
|
}
|
|
145445
145445
|
);
|
|
145446
145446
|
Cgt.displayName = dJ;
|
|
145447
|
-
var _gt = "HoverCardPortal", [
|
|
145447
|
+
var _gt = "HoverCardPortal", [sDt, Tgt] = hJ(_gt, {
|
|
145448
145448
|
forceMount: void 0
|
|
145449
145449
|
}), Bx = "HoverCardContent", pJ = Oe.forwardRef(
|
|
145450
145450
|
(e, t) => {
|
|
@@ -146781,7 +146781,7 @@ function b$(e, t, r) {
|
|
|
146781
146781
|
function g7t(e, t) {
|
|
146782
146782
|
return e.map((r, i) => e[(t + i) % e.length]);
|
|
146783
146783
|
}
|
|
146784
|
-
var y7t = HJ, g$ = GJ, w7t = ZJ, x7t = YJ, k7t = XJ, y$ = KJ, C7t = e$, _7t = r$, w$ = n$, x$ = l$, T7t = s$, E7t = c$, k$ = f$, C$ = u$, _$ = m$, M7t = "ToastProvider", [T$, A7t, S7t] = BC("Toast"), [E$] = Cs("Toast", [S7t]), [
|
|
146784
|
+
var y7t = HJ, g$ = GJ, w7t = ZJ, x7t = YJ, k7t = XJ, y$ = KJ, C7t = e$, _7t = r$, w$ = n$, x$ = l$, T7t = s$, E7t = c$, k$ = f$, C$ = u$, _$ = m$, M7t = "ToastProvider", [T$, A7t, S7t] = BC("Toast"), [E$] = Cs("Toast", [S7t]), [oDt, JC] = E$(M7t), M$ = "ToastViewport", D7t = ["F8"], JS = "toast.viewportPause", $S = "toast.viewportResume", A$ = Oe.forwardRef(
|
|
146785
146785
|
(e, t) => {
|
|
146786
146786
|
const {
|
|
146787
146787
|
__scopeToast: r,
|
|
@@ -187182,7 +187182,7 @@ var oEt = function(t) {
|
|
|
187182
187182
|
}
|
|
187183
187183
|
})))) : null;
|
|
187184
187184
|
});
|
|
187185
|
-
const uEt = L0e,
|
|
187185
|
+
const uEt = L0e, cDt = yf, Kre = [
|
|
187186
187186
|
{
|
|
187187
187187
|
id: "0",
|
|
187188
187188
|
name: "Sheet1",
|
|
@@ -237289,24 +237289,17 @@ const SSt = ({
|
|
|
237289
237289
|
const v = s.get("template");
|
|
237290
237290
|
v && (e == null || e(v), s.delete("template"), window.history.replaceState({}, "", `${window.location.pathname}${s.toString() ? `?${s.toString()}` : ""}`));
|
|
237291
237291
|
}, []);
|
|
237292
|
+
}, LSt = (e, t) => {
|
|
237293
|
+
if (typeof window > "u") return;
|
|
237294
|
+
const r = new Error(`[WorkbookSync] ${e}`);
|
|
237295
|
+
r.details = t, typeof window.reportError == "function" && window.reportError(r);
|
|
237292
237296
|
}, _5 = (e, t) => {
|
|
237293
237297
|
var n;
|
|
237294
237298
|
const r = typeof window < "u" ? !!((n = window.__DSHEET_MIGRATION__) != null && n.isMigrated) : !1, i = {
|
|
237295
237299
|
...t,
|
|
237296
237300
|
isMigrated: r
|
|
237297
237301
|
};
|
|
237298
|
-
|
|
237299
|
-
const a = window.Sentry;
|
|
237300
|
-
if (a && typeof a.withScope == "function" && typeof a.captureMessage == "function") {
|
|
237301
|
-
a.withScope((l) => {
|
|
237302
|
-
typeof l.setLevel == "function" && l.setLevel("warning"), Object.entries(i).forEach(([c, f]) => {
|
|
237303
|
-
typeof l.setExtra == "function" && l.setExtra(c, f);
|
|
237304
|
-
}), a.captureMessage(`[WorkbookSync] ${e}`);
|
|
237305
|
-
});
|
|
237306
|
-
return;
|
|
237307
|
-
}
|
|
237308
|
-
a && typeof a.captureMessage == "function" && a.captureMessage(`[WorkbookSync] ${e}`);
|
|
237309
|
-
}
|
|
237302
|
+
console.warn(`[WorkbookSync] ${e}`, i), LSt(e, i);
|
|
237310
237303
|
}, Mi = (e, t) => {
|
|
237311
237304
|
if (e)
|
|
237312
237305
|
return typeof e.get == "function" ? e.get(t) : e[t];
|
|
@@ -237318,7 +237311,7 @@ const SSt = ({
|
|
|
237318
237311
|
}), !1) : !1, P7 = (e, t) => {
|
|
237319
237312
|
if (Array.isArray(e))
|
|
237320
237313
|
return e.find((r) => Mi(r, "id") === t);
|
|
237321
|
-
},
|
|
237314
|
+
}, FSt = ({
|
|
237322
237315
|
sheetEditorRef: e,
|
|
237323
237316
|
ydocRef: t,
|
|
237324
237317
|
dsheetId: r
|
|
@@ -237328,10 +237321,10 @@ const SSt = ({
|
|
|
237328
237321
|
return P7(n == null ? void 0 : n.toArray(), i == null ? void 0 : i.id);
|
|
237329
237322
|
}, J3 = (e, t) => {
|
|
237330
237323
|
var c;
|
|
237331
|
-
const { sheetEditorRef: r, handleOnChangePortalUpdate: i } = e, n = (c = r == null ? void 0 : r.current) == null ? void 0 : c.getSheet(), a =
|
|
237324
|
+
const { sheetEditorRef: r, handleOnChangePortalUpdate: i } = e, n = (c = r == null ? void 0 : r.current) == null ? void 0 : c.getSheet(), a = FSt(e);
|
|
237332
237325
|
if (!n || !a) return;
|
|
237333
237326
|
Mi(a, t) !== n[t] && (T5(a, t, n[t]), i());
|
|
237334
|
-
},
|
|
237327
|
+
}, RSt = ({
|
|
237335
237328
|
sheetEditorRef: e,
|
|
237336
237329
|
ydocRef: t,
|
|
237337
237330
|
dsheetId: r,
|
|
@@ -237363,7 +237356,7 @@ const SSt = ({
|
|
|
237363
237356
|
}), n();
|
|
237364
237357
|
}, 50));
|
|
237365
237358
|
}
|
|
237366
|
-
},
|
|
237359
|
+
}, NSt = ({
|
|
237367
237360
|
sheetEditorRef: e,
|
|
237368
237361
|
ydocRef: t,
|
|
237369
237362
|
dsheetId: r,
|
|
@@ -237396,7 +237389,7 @@ const SSt = ({
|
|
|
237396
237389
|
}
|
|
237397
237390
|
Mi(u, "order") !== (o == null ? void 0 : o.order) && (T5(u, "order", o == null ? void 0 : o.order), c = !0);
|
|
237398
237391
|
}), c && i();
|
|
237399
|
-
},
|
|
237392
|
+
}, ISt = ({
|
|
237400
237393
|
sheetEditorRef: e,
|
|
237401
237394
|
ydocRef: t,
|
|
237402
237395
|
dsheetId: r,
|
|
@@ -237429,7 +237422,7 @@ const SSt = ({
|
|
|
237429
237422
|
}
|
|
237430
237423
|
Mi(u, "color") !== (o == null ? void 0 : o.color) && (T5(u, "color", o == null ? void 0 : o.color), c = !0);
|
|
237431
237424
|
}), c && i();
|
|
237432
|
-
},
|
|
237425
|
+
}, BSt = ({
|
|
237433
237426
|
sheetEditorRef: e,
|
|
237434
237427
|
ydocRef: t,
|
|
237435
237428
|
dsheetId: r,
|
|
@@ -237462,7 +237455,7 @@ const SSt = ({
|
|
|
237462
237455
|
}
|
|
237463
237456
|
Mi(u, "hide") !== (o == null ? void 0 : o.hide) && (T5(u, "hide", o == null ? void 0 : o.hide), c = !0);
|
|
237464
237457
|
}), c && i();
|
|
237465
|
-
},
|
|
237458
|
+
}, OSt = ({
|
|
237466
237459
|
sheetEditorRef: e,
|
|
237467
237460
|
ydocRef: t,
|
|
237468
237461
|
dsheetId: r,
|
|
@@ -237533,7 +237526,7 @@ const SSt = ({
|
|
|
237533
237526
|
s,
|
|
237534
237527
|
i
|
|
237535
237528
|
);
|
|
237536
|
-
},
|
|
237529
|
+
}, jSt = ({
|
|
237537
237530
|
setInputFetchURLDataBlock: e,
|
|
237538
237531
|
setShowFetchURLModal: t,
|
|
237539
237532
|
setFetchingURLData: r,
|
|
@@ -237608,10 +237601,10 @@ const SSt = ({
|
|
|
237608
237601
|
ydocRef: C,
|
|
237609
237602
|
dsheetId: m,
|
|
237610
237603
|
handleOnChangePortalUpdate: q
|
|
237611
|
-
}, te =
|
|
237604
|
+
}, te = RSt({
|
|
237612
237605
|
...K,
|
|
237613
237606
|
currentDataRef: R
|
|
237614
|
-
}), le =
|
|
237607
|
+
}), le = NSt(K), Z = ISt(K), ie = BSt(K), H = OSt(K);
|
|
237615
237608
|
return Cr(
|
|
237616
237609
|
(G) => Bz(K, G),
|
|
237617
237610
|
[m, q]
|
|
@@ -237810,7 +237803,7 @@ const SSt = ({
|
|
|
237810
237803
|
j,
|
|
237811
237804
|
I
|
|
237812
237805
|
]);
|
|
237813
|
-
},
|
|
237806
|
+
}, fDt = [
|
|
237814
237807
|
{
|
|
237815
237808
|
title: "My Portfolio",
|
|
237816
237809
|
description: "Your Portfolio",
|
|
@@ -237875,7 +237868,7 @@ const SSt = ({
|
|
|
237875
237868
|
fullImage: "https://s3.eu-west-2.amazonaws.com/assets.fileverse.io/dapp/public/Screenshot+2025-09-16+at+6.41.49%E2%80%AFPM.png",
|
|
237876
237869
|
category: "Project"
|
|
237877
237870
|
}
|
|
237878
|
-
],
|
|
237871
|
+
], PSt = [
|
|
237879
237872
|
{
|
|
237880
237873
|
name: "Accounting",
|
|
237881
237874
|
config: {
|
|
@@ -247973,7 +247966,7 @@ const SSt = ({
|
|
|
247973
247966
|
}
|
|
247974
247967
|
]
|
|
247975
247968
|
}
|
|
247976
|
-
],
|
|
247969
|
+
], qSt = [
|
|
247977
247970
|
{
|
|
247978
247971
|
name: "Sheet1",
|
|
247979
247972
|
config: {
|
|
@@ -317320,7 +317313,7 @@ const SSt = ({
|
|
|
317320
317313
|
dataVerification: {},
|
|
317321
317314
|
hyperlink: {}
|
|
317322
317315
|
}
|
|
317323
|
-
],
|
|
317316
|
+
], zSt = [
|
|
317324
317317
|
{
|
|
317325
317318
|
name: "Invoice",
|
|
317326
317319
|
status: 1,
|
|
@@ -319573,7 +319566,7 @@ const SSt = ({
|
|
|
319573
319566
|
}
|
|
319574
319567
|
]
|
|
319575
319568
|
}
|
|
319576
|
-
],
|
|
319569
|
+
], USt = [
|
|
319577
319570
|
{
|
|
319578
319571
|
name: "Project Metirc",
|
|
319579
319572
|
config: {
|
|
@@ -457908,7 +457901,7 @@ const SSt = ({
|
|
|
457908
457901
|
}
|
|
457909
457902
|
]
|
|
457910
457903
|
}
|
|
457911
|
-
],
|
|
457904
|
+
], HSt = [
|
|
457912
457905
|
{
|
|
457913
457906
|
name: "Sheet1",
|
|
457914
457907
|
config: {
|
|
@@ -461287,7 +461280,7 @@ const SSt = ({
|
|
|
461287
461280
|
}
|
|
461288
461281
|
]
|
|
461289
461282
|
}
|
|
461290
|
-
],
|
|
461283
|
+
], VSt = [
|
|
461291
461284
|
{
|
|
461292
461285
|
name: "Wallet Balance",
|
|
461293
461286
|
config: {
|
|
@@ -697909,7 +697902,7 @@ const SSt = ({
|
|
|
697909
697902
|
}
|
|
697910
697903
|
]
|
|
697911
697904
|
}
|
|
697912
|
-
],
|
|
697905
|
+
], GSt = [
|
|
697913
697906
|
{
|
|
697914
697907
|
name: "Stablecoin Monitor",
|
|
697915
697908
|
config: {
|
|
@@ -738231,7 +738224,7 @@ const SSt = ({
|
|
|
738231
738224
|
}
|
|
738232
738225
|
]
|
|
738233
738226
|
}
|
|
738234
|
-
],
|
|
738227
|
+
], WSt = [
|
|
738235
738228
|
{
|
|
738236
738229
|
name: "My Portfolio",
|
|
738237
738230
|
status: 1,
|
|
@@ -740737,16 +740730,16 @@ const SSt = ({
|
|
|
740737
740730
|
}
|
|
740738
740731
|
]
|
|
740739
740732
|
}
|
|
740740
|
-
],
|
|
740741
|
-
portfolio:
|
|
740742
|
-
accounting:
|
|
740743
|
-
"project-metric":
|
|
740744
|
-
"social-graph":
|
|
740745
|
-
"event-marketing":
|
|
740746
|
-
invoice:
|
|
740747
|
-
"wallet-balance":
|
|
740748
|
-
"stablecoin-monitor":
|
|
740749
|
-
},
|
|
740733
|
+
], ZSt = {
|
|
740734
|
+
portfolio: WSt,
|
|
740735
|
+
accounting: PSt,
|
|
740736
|
+
"project-metric": USt,
|
|
740737
|
+
"social-graph": HSt,
|
|
740738
|
+
"event-marketing": qSt,
|
|
740739
|
+
invoice: zSt,
|
|
740740
|
+
"wallet-balance": VSt,
|
|
740741
|
+
"stablecoin-monitor": GSt
|
|
740742
|
+
}, YSt = ({
|
|
740750
740743
|
selectedTemplate: e,
|
|
740751
740744
|
ydocRef: t,
|
|
740752
740745
|
dsheetId: r,
|
|
@@ -740759,7 +740752,7 @@ const SSt = ({
|
|
|
740759
740752
|
cr(() => {
|
|
740760
740753
|
var o;
|
|
740761
740754
|
if (!e || !t.current) return;
|
|
740762
|
-
const f = t.current.getArray(r), s =
|
|
740755
|
+
const f = t.current.getArray(r), s = ZSt[e];
|
|
740763
740756
|
if (s) {
|
|
740764
740757
|
const u = (o = a.current) == null ? void 0 : o.getSettings().generateSheetId(), v = Array.from(f);
|
|
740765
740758
|
s[0].order = v.length, s[0].id || (s[0].id = u);
|
|
@@ -740822,7 +740815,7 @@ const SSt = ({
|
|
|
740822
740815
|
children: t
|
|
740823
740816
|
}
|
|
740824
740817
|
) : null;
|
|
740825
|
-
},
|
|
740818
|
+
}, XSt = ({
|
|
740826
740819
|
allowComments: e
|
|
740827
740820
|
}) => e ? /* @__PURE__ */ Br.jsxs(
|
|
740828
740821
|
"div",
|
|
@@ -740852,7 +740845,7 @@ const SSt = ({
|
|
|
740852
740845
|
/* @__PURE__ */ Br.jsx("span", { className: "dsheet-text dsheet-text--chip text-xs text-black", "data-testid": "permission-chip-label", children: "View only" })
|
|
740853
740846
|
]
|
|
740854
740847
|
}
|
|
740855
|
-
),
|
|
740848
|
+
), KSt = ({
|
|
740856
740849
|
setShowFetchURLModal: e,
|
|
740857
740850
|
renderNavbar: t,
|
|
740858
740851
|
isReadOnly: r,
|
|
@@ -740886,7 +740879,7 @@ const SSt = ({
|
|
|
740886
740879
|
setDataBlockCalcFunction: I,
|
|
740887
740880
|
initialiseLiveQueryData: L
|
|
740888
740881
|
} = lk();
|
|
740889
|
-
|
|
740882
|
+
YSt({
|
|
740890
740883
|
selectedTemplate: h,
|
|
740891
740884
|
ydocRef: B,
|
|
740892
740885
|
dsheetId: u,
|
|
@@ -740964,9 +740957,9 @@ const SSt = ({
|
|
|
740964
740957
|
/* @__PURE__ */ Br.jsxs("div", { className: "dsheet-editor-main relative overflow-hidden h-[94dvh] md:!h-[calc(100vh-44px)] mt-[44px]", "data-testid": "dsheet-editor-main", children: [
|
|
740965
740958
|
/* @__PURE__ */ Br.jsx(Oz, { show: !0, children: /* @__PURE__ */ Br.jsx(xEt, { isReadOnly: r }) }),
|
|
740966
740959
|
/* @__PURE__ */ Br.jsxs(Oz, { show: !R && E, duration: 1e3, children: [
|
|
740967
|
-
r && /* @__PURE__ */ Br.jsx("div", { className: "dsheet-permission-chip-wrap absolute top-2 right-4 z-20", "data-testid": "dsheet-permission-chip-wrap", children: /* @__PURE__ */ Br.jsx(
|
|
740960
|
+
r && /* @__PURE__ */ Br.jsx("div", { className: "dsheet-permission-chip-wrap absolute top-2 right-4 z-20", "data-testid": "dsheet-permission-chip-wrap", children: /* @__PURE__ */ Br.jsx(XSt, { allowComments: i || !1 }) }),
|
|
740968
740961
|
/* @__PURE__ */ Br.jsx(
|
|
740969
|
-
|
|
740962
|
+
jSt,
|
|
740970
740963
|
{
|
|
740971
740964
|
setShowFetchURLModal: e,
|
|
740972
740965
|
setFetchingURLData: d,
|
|
@@ -740994,7 +740987,7 @@ const SSt = ({
|
|
|
740994
740987
|
]
|
|
740995
740988
|
}
|
|
740996
740989
|
);
|
|
740997
|
-
},
|
|
740990
|
+
}, uDt = ({
|
|
740998
740991
|
isCollaborative: e = !1,
|
|
740999
740992
|
isReadOnly: t = !1,
|
|
741000
740993
|
allowComments: r = !1,
|
|
@@ -741057,7 +741050,7 @@ const SSt = ({
|
|
|
741057
741050
|
enableLiveQuery: M,
|
|
741058
741051
|
dataBlockApiKeyHandler: b,
|
|
741059
741052
|
children: /* @__PURE__ */ Br.jsx(
|
|
741060
|
-
|
|
741053
|
+
KSt,
|
|
741061
741054
|
{
|
|
741062
741055
|
commentData: d,
|
|
741063
741056
|
getCommentCellUI: p,
|
|
@@ -741088,12 +741081,12 @@ const SSt = ({
|
|
|
741088
741081
|
);
|
|
741089
741082
|
};
|
|
741090
741083
|
export {
|
|
741091
|
-
|
|
741084
|
+
uDt as DsheetEditor,
|
|
741092
741085
|
uEt as ERROR_MESSAGES_FLAG,
|
|
741093
741086
|
Ode as FLVURL,
|
|
741094
|
-
|
|
741095
|
-
|
|
741096
|
-
|
|
741087
|
+
nDt as FortuneCore,
|
|
741088
|
+
cDt as SERVICES_API_KEY,
|
|
741089
|
+
fDt as TEMPLATES,
|
|
741097
741090
|
d_ as executeStringFunction,
|
|
741098
741091
|
n4 as formulaResponseUiSync,
|
|
741099
741092
|
Nz as handleCSVUpload,
|