@fileverse-dev/dsheet 4.1.18 → 4.1.20
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/editor/types/smart-contract.d.ts +3 -2
- package/dist/editor/utils/smart-contract/reading-utils.test.d.ts +1 -0
- package/dist/{index-D1F86l4X.js → index-DJeCEiQ_.js} +856 -823
- package/dist/index.es.js +1 -1
- package/dist/sync-local/server-clock.d.ts +26 -0
- package/dist/sync-local/server-clock.test.d.ts +1 -0
- package/dist/sync-local/socketClient.d.ts +1 -1
- package/dist/sync-local/socketClient.server-time.test.d.ts +1 -0
- package/dist/{use-xlsx-import-impl-CVvAMSHb.js → use-xlsx-import-impl-DC99oGXo.js} +3 -3
- package/dist/{xlsx-defined-names-CjllTwj9.js → xlsx-defined-names-CcFT4HV-.js} +1 -1
- package/dist/{xlsx-export-impl-DPiVn_D4.js → xlsx-export-impl-jZSQ6Wv0.js} +3 -3
- package/dist/{xlsx-hyperlink-inline-BwKPvD2f.js → xlsx-hyperlink-inline-CpiKJ54P.js} +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as s, d as o, f as t, S as r, g as l, h as n, j as d, T as S, k as c, l as i, n as m, o as h, p, q as C, t as u, u as E, v as F, w as g, x, z as R, A, B as f, D as I, E as L, F as T, G as w, H as y, I as v, J as D, K as M, L as b, M as k, N as z, O, P } from "./index-
|
|
1
|
+
import { C as s, d as o, f as t, S as r, g as l, h as n, j as d, T as S, k as c, l as i, n as m, o as h, p, q as C, t as u, u as E, v as F, w as g, x, z as R, A, B as f, D as I, E as L, F as T, G as w, H as y, I as v, J as D, K as M, L as b, M as k, N as z, O, P } from "./index-DJeCEiQ_.js";
|
|
2
2
|
import { cy as G, cz as K, cA as U, cG as X, bs as _, e as j, f as B, l as H, a as J, dj as N, dk as q, bb as Y, dl as Z, dm as Q, dr as W, ds as $, du as ee, I as ae, dJ as se, eg as oe, b4 as te } from "./executeStringFunction-B1_kGelH.js";
|
|
3
3
|
import { FLVURL as le } from "@fileverse-dev/formulajs";
|
|
4
4
|
import { E as de, S as Se } from "./constants-8Ij49Lxv.js";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type * as ucans from '@ucans/ucans';
|
|
2
|
+
/**
|
|
3
|
+
* The collab server's clock, learned from its handshake. The server checks auth UCAN nbf/exp
|
|
4
|
+
* against its own clock, so tokens built from a skewed device clock get a 401.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ServerClock {
|
|
7
|
+
private readonly wallNow;
|
|
8
|
+
private readonly monoNow;
|
|
9
|
+
private anchor;
|
|
10
|
+
constructor(wallNow?: () => number, monoNow?: (() => number) | null);
|
|
11
|
+
/**
|
|
12
|
+
* Time since the handshake is measured on the monotonic clock, so a device clock change
|
|
13
|
+
* mid-session cannot skew it. A missing or implausible stamp (older server) falls back to the
|
|
14
|
+
* device clock. Delivery delay and sleep only make the estimate trail the server, which the
|
|
15
|
+
* token window absorbs.
|
|
16
|
+
*/
|
|
17
|
+
sync(serverTimeMs: unknown): void;
|
|
18
|
+
nowSeconds(): number;
|
|
19
|
+
ucanWindow(): {
|
|
20
|
+
notBefore: number;
|
|
21
|
+
expiration: number;
|
|
22
|
+
};
|
|
23
|
+
/** Whether a cached UCAN can still be presented: active, and not expiring within the margin. */
|
|
24
|
+
isUsable(ucan: ucans.Ucan): boolean;
|
|
25
|
+
private elapsedBase;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -70,6 +70,7 @@ export declare class SocketClient {
|
|
|
70
70
|
private contractAddress?;
|
|
71
71
|
private ownerUcan?;
|
|
72
72
|
private collaborationUcan?;
|
|
73
|
+
private serverClock;
|
|
73
74
|
private ownerAddress?;
|
|
74
75
|
private editLock?;
|
|
75
76
|
private encryptedTitle?;
|
|
@@ -122,7 +123,6 @@ export declare class SocketClient {
|
|
|
122
123
|
terminateSession: () => Promise<void>;
|
|
123
124
|
flushBeacon(mergedUpdate: string): void;
|
|
124
125
|
private getCollaborationKeyPair;
|
|
125
|
-
private isUcanValid;
|
|
126
126
|
private getOwnerToken;
|
|
127
127
|
private buildSessionToken;
|
|
128
128
|
private _authenticate;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as BZ from "yjs";
|
|
2
|
-
import { i as Yl, a as hl, s as eZ, r as ul, y as Il, b as pl, m as Rl } from "./index-
|
|
2
|
+
import { i as Yl, a as hl, s as eZ, r as ul, y as Il, b as pl, m as Rl } from "./index-DJeCEiQ_.js";
|
|
3
3
|
import { g as sl } from "./executeStringFunction-B1_kGelH.js";
|
|
4
4
|
import { Workbook as al } from "exceljs";
|
|
5
5
|
import Kl from "luckyexcel";
|
|
6
|
-
import { e as Jl, b as xl, n as Ml } from "./xlsx-hyperlink-inline-
|
|
7
|
-
import { parseDefinedNamesFromXlsxBuffer as Sl, excelEntriesToDefinedNames as OZ } from "./xlsx-defined-names-
|
|
6
|
+
import { e as Jl, b as xl, n as Ml } from "./xlsx-hyperlink-inline-CpiKJ54P.js";
|
|
7
|
+
import { parseDefinedNamesFromXlsxBuffer as Sl, excelEntriesToDefinedNames as OZ } from "./xlsx-defined-names-CcFT4HV-.js";
|
|
8
8
|
import { toast as fZ } from "@fileverse/ui";
|
|
9
9
|
var Zl = { exports: {} };
|
|
10
10
|
(function(m) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { utils as S, write as nt } from "xlsx-js-style";
|
|
2
2
|
import { Workbook as pt } from "exceljs";
|
|
3
3
|
import { toast as rt } from "@fileverse/ui";
|
|
4
|
-
import { J as dt, c as X, g as ht, a as mt } from "./xlsx-hyperlink-inline-
|
|
4
|
+
import { J as dt, c as X, g as ht, a as mt } from "./xlsx-hyperlink-inline-CpiKJ54P.js";
|
|
5
5
|
import { b as gt } from "./executeStringFunction-B1_kGelH.js";
|
|
6
|
-
import { e as bt } from "./index-
|
|
6
|
+
import { e as bt } from "./index-DJeCEiQ_.js";
|
|
7
7
|
const xt = {
|
|
8
8
|
1: "thin",
|
|
9
9
|
2: "hair",
|
|
@@ -854,7 +854,7 @@ const Z = (t) => {
|
|
|
854
854
|
O
|
|
855
855
|
);
|
|
856
856
|
});
|
|
857
|
-
const { applyDefinedNamesToExcelWorkbook: ct } = await import("./xlsx-defined-names-
|
|
857
|
+
const { applyDefinedNamesToExcelWorkbook: ct } = await import("./xlsx-defined-names-CcFT4HV-.js");
|
|
858
858
|
ct(
|
|
859
859
|
B,
|
|
860
860
|
(k = (C = (s = t.current).getWorkbookContext) == null ? void 0 : C.call(s)) == null ? void 0 : k.definedNames,
|