@fileverse-dev/ddoc 4.2.4-patch-1 → 4.2.4-patch-3
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-DJbpeMnw.mjs → index-9UhLkopd.mjs} +3 -9
- package/dist/{index-BF0EXPT-.mjs → index-DCEHHKDt.mjs} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{markdown-source-pane-Dz3sN905.mjs → markdown-source-pane-FRFUrMh9.mjs} +2 -2
- package/dist/package/sync-local/socketClient.d.ts +0 -4
- package/dist/package/sync-local/types/index.d.ts +0 -6
- package/dist/{split-view-toolbar-gth7lycp.mjs → split-view-toolbar-DlqGuQpm.mjs} +2 -2
- package/package.json +1 -1
|
@@ -182343,11 +182343,9 @@ class f_ {
|
|
|
182343
182343
|
Re(this, "ownerUcan");
|
|
182344
182344
|
Re(this, "collaborationUcan");
|
|
182345
182345
|
Re(this, "ownerAddress");
|
|
182346
|
-
Re(this, "ownerIdentityDid");
|
|
182347
182346
|
Re(this, "editLock");
|
|
182348
182347
|
Re(this, "encryptedTitle");
|
|
182349
182348
|
Re(this, "identityToken");
|
|
182350
|
-
Re(this, "identityContractAddress");
|
|
182351
182349
|
Re(this, "editUcan");
|
|
182352
182350
|
Re(this, "refreshEditClaim");
|
|
182353
182351
|
Re(this, "lastGoodEditUcan");
|
|
@@ -182429,7 +182427,7 @@ class f_ {
|
|
|
182429
182427
|
this.roomInfo && (r.roomInfo = Or.encryptData(
|
|
182430
182428
|
br(this.roomKey),
|
|
182431
182429
|
new TextEncoder().encode(JSON.stringify(this.roomInfo))
|
|
182432
|
-
)), this.ownerKeyPair && (r.ownerToken = await this.getOwnerToken()), this.ownerAddress && (r.ownerAddress = this.ownerAddress), this.contractAddress && (r.contractAddress = this.contractAddress), this.
|
|
182430
|
+
)), this.ownerKeyPair && (r.ownerToken = await this.getOwnerToken()), this.ownerAddress && (r.ownerAddress = this.ownerAddress), this.contractAddress && (r.contractAddress = this.contractAddress), this.identityToken && (r.identityToken = this.identityToken);
|
|
182433
182431
|
let o;
|
|
182434
182432
|
if (this.refreshEditClaim) {
|
|
182435
182433
|
const l = await this.refreshEditClaim();
|
|
@@ -182493,7 +182491,7 @@ class f_ {
|
|
|
182493
182491
|
);
|
|
182494
182492
|
this.roomKey = t.roomKey, this.roomId = t.roomId, this.collaborationKeyPair = Dd.fromSecretKey(
|
|
182495
182493
|
ir(n)
|
|
182496
|
-
), t.ownerEdSecret && (this.ownerKeyPair = Dd.fromSecretKey(t.ownerEdSecret)), t.contractAddress && (this.contractAddress = t.contractAddress), t.ownerAddress && (this.ownerAddress = t.ownerAddress), t.
|
|
182494
|
+
), t.ownerEdSecret && (this.ownerKeyPair = Dd.fromSecretKey(t.ownerEdSecret)), t.contractAddress && (this.contractAddress = t.contractAddress), t.ownerAddress && (this.ownerAddress = t.ownerAddress), t.editLock && (this.editLock = t.editLock), t.identityToken && (this.identityToken = t.identityToken), t.editUcan && (this.editUcan = t.editUcan), this.lastGoodEditUcan = t.editUcan, t.refreshEditClaim && (this.refreshEditClaim = t.refreshEditClaim), t.actorHandle && (this.actorHandle = t.actorHandle), t.joinOnly && (this.joinOnly = t.joinOnly), t.encryptedTitle && (this.encryptedTitle = t.encryptedTitle), t.onHandshakeData && (this._onHandshakeData = t.onHandshakeData), t.onEpochAvailable && (this._onEpochAvailable = t.onEpochAvailable), t.onCutover && (this._onCutover = t.onCutover), t.roomInfo && (this.roomInfo = t.roomInfo);
|
|
182497
182495
|
}
|
|
182498
182496
|
get isConnected() {
|
|
182499
182497
|
return this._webSocketStatus === pr.CONNECTED;
|
|
@@ -183080,11 +183078,9 @@ class wYe {
|
|
|
183080
183078
|
ownerEdSecret: t.ownerEdSecret,
|
|
183081
183079
|
contractAddress: t.contractAddress,
|
|
183082
183080
|
ownerAddress: t.ownerAddress,
|
|
183083
|
-
ownerIdentityDid: t.ownerIdentityDid,
|
|
183084
183081
|
editLock: t.editLock,
|
|
183085
183082
|
encryptedTitle: t.encryptedTitle,
|
|
183086
183083
|
identityToken: t.identityToken,
|
|
183087
|
-
identityContractAddress: t.identityContractAddress,
|
|
183088
183084
|
editUcan: t.editUcan,
|
|
183089
183085
|
refreshEditClaim: t.refreshEditClaim,
|
|
183090
183086
|
onRotationPrepare: t.onRotationPrepare,
|
|
@@ -194705,7 +194701,7 @@ const nQe = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], rQe = tQe("Chevro
|
|
|
194705
194701
|
),
|
|
194706
194702
|
t && /* @__PURE__ */ x.jsx("pre", { className: "m-0 px-3 pb-2 text-[11px] leading-relaxed font-mono color-text-secondary whitespace-pre-wrap break-words max-h-40 overflow-auto select-text", children: r })
|
|
194707
194703
|
] }) : null;
|
|
194708
|
-
}, iQe = LU(() => import("./markdown-source-pane-
|
|
194704
|
+
}, iQe = LU(() => import("./markdown-source-pane-FRFUrMh9.mjs")), sQe = LU(() => import("./split-view-toolbar-DlqGuQpm.mjs")), aQe = ({
|
|
194709
194705
|
markdown: e,
|
|
194710
194706
|
onMarkdownChange: t,
|
|
194711
194707
|
ipfsImageUploadFn: n,
|
|
@@ -196822,9 +196818,7 @@ function pre(e, t, n, r) {
|
|
|
196822
196818
|
ownerEdSecret: e.ownerEdSecret,
|
|
196823
196819
|
contractAddress: e.contractAddress,
|
|
196824
196820
|
ownerAddress: e.ownerAddress,
|
|
196825
|
-
ownerIdentityDid: e.ownerIdentityDid,
|
|
196826
196821
|
identityToken: e.identityToken,
|
|
196827
|
-
identityContractAddress: e.identityContractAddress,
|
|
196828
196822
|
joinOnly: r
|
|
196829
196823
|
};
|
|
196830
196824
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as Ql, b as Zl, s as eh } from "./index-
|
|
1
|
+
import { k as Ql, b as Zl, s as eh } from "./index-9UhLkopd.mjs";
|
|
2
2
|
let An = [], Xr = [];
|
|
3
3
|
(() => {
|
|
4
4
|
let s = "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,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,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e) => e ? parseInt(e, 36) : 1);
|
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as a, a as o, E as t, P as d, f as r, i, g as n, l as m, h as E, m as c, e as l, n as p, c as u, d as C, u as f, v as D } from "./index-
|
|
1
|
+
import { D as a, a as o, E as t, P as d, f as r, i, g as n, l as m, h as E, m as c, e as l, n as p, c as u, d as C, u as f, v as D } from "./index-9UhLkopd.mjs";
|
|
2
2
|
export {
|
|
3
3
|
a as DdocEditor,
|
|
4
4
|
o as DdocExportModal,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var Vr = Object.defineProperty;
|
|
2
2
|
var Wr = (t, e, O) => e in t ? Vr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: O }) : t[e] = O;
|
|
3
3
|
var gt = (t, e, O) => Wr(t, typeof e != "symbol" ? e + "" : e, O);
|
|
4
|
-
import { j as Cr } from "./index-
|
|
4
|
+
import { j as Cr } from "./index-9UhLkopd.mjs";
|
|
5
5
|
import { useRef as pe, useEffect as St } from "react";
|
|
6
|
-
import { s as y, A as pO, T as dO, a as Gr, S as et, b as Lr, P as fO, E as j, i as QO, c as _, D as le, k as tt, F as Ar, M as Pt, W as Er, R as Ur, d as mO, N as oe, e as V, f as Mr, g as Ot, h as ce, p as $O, j as Y, t as h, l as Ir, I as rt, L as at, m as ye, n as ue, o as Qe, q as gO, r as te, u as SO, v as Br, w as Nr, x as PO, y as kO, z as Dr, B as Fr, C as Kr, G as Oe, H as ZO, J as Jr, K as kt, O as Hr, Q as ea, U as ta, V as Oa, X as ra, Y as aa, Z as ia, _ as sa, $ as na, a0 as la, a1 as oa, a2 as ca } from "./index-
|
|
6
|
+
import { s as y, A as pO, T as dO, a as Gr, S as et, b as Lr, P as fO, E as j, i as QO, c as _, D as le, k as tt, F as Ar, M as Pt, W as Er, R as Ur, d as mO, N as oe, e as V, f as Mr, g as Ot, h as ce, p as $O, j as Y, t as h, l as Ir, I as rt, L as at, m as ye, n as ue, o as Qe, q as gO, r as te, u as SO, v as Br, w as Nr, x as PO, y as kO, z as Dr, B as Fr, C as Kr, G as Oe, H as ZO, J as Jr, K as kt, O as Hr, Q as ea, U as ta, V as Oa, X as ra, Y as aa, Z as ia, _ as sa, $ as na, a0 as la, a1 as oa, a2 as ca } from "./index-DCEHHKDt.mjs";
|
|
7
7
|
class ua {
|
|
8
8
|
/**
|
|
9
9
|
Create a new completion context. (Mostly useful for testing
|
|
@@ -8,11 +8,9 @@ interface ISocketClientConfig {
|
|
|
8
8
|
ownerEdSecret?: string;
|
|
9
9
|
contractAddress?: string;
|
|
10
10
|
ownerAddress?: string;
|
|
11
|
-
ownerIdentityDid?: string;
|
|
12
11
|
editLock?: string;
|
|
13
12
|
encryptedTitle?: string;
|
|
14
13
|
identityToken?: string;
|
|
15
|
-
identityContractAddress?: string;
|
|
16
14
|
editUcan?: string;
|
|
17
15
|
refreshEditClaim?: () => Promise<{
|
|
18
16
|
status: 'ok';
|
|
@@ -72,11 +70,9 @@ export declare class SocketClient {
|
|
|
72
70
|
private ownerUcan?;
|
|
73
71
|
private collaborationUcan?;
|
|
74
72
|
private ownerAddress?;
|
|
75
|
-
private ownerIdentityDid?;
|
|
76
73
|
private editLock?;
|
|
77
74
|
private encryptedTitle?;
|
|
78
75
|
private identityToken?;
|
|
79
|
-
private identityContractAddress?;
|
|
80
76
|
private editUcan?;
|
|
81
77
|
private refreshEditClaim?;
|
|
82
78
|
private lastGoodEditUcan?;
|
|
@@ -11,16 +11,12 @@ export interface CollabConnectionConfig {
|
|
|
11
11
|
livePresence?: boolean;
|
|
12
12
|
/** Host signal: connect once on open to initialise durability even without an edit. */
|
|
13
13
|
connectOnOpen?: boolean;
|
|
14
|
-
/** Host signal (owner-only): the owner identity signingKey DID. Recorded by the durable server on the first owner /auth as the R3 owner binding. */
|
|
15
|
-
ownerIdentityDid?: string;
|
|
16
14
|
/** Host signal (owner-only): wrapped roomKey bytes (owner-lock construction), uploaded as the server editLock recovery artifact. Opaque to the package. */
|
|
17
15
|
editLock?: string;
|
|
18
16
|
/** Host signal (owner-only): the document title encrypted with the roomKey, uploaded as the server title recovery artifact. Opaque to the package. */
|
|
19
17
|
encryptedTitle?: string;
|
|
20
18
|
/** Host signal (owner-only): Ed25519 UCAN proving the owner identity, sent on /auth so the server binds the CRYPTOGRAPHICALLY PROVEN owner DID (not a bare asserted string). Opaque to the package. */
|
|
21
19
|
identityToken?: string;
|
|
22
|
-
/** Host signal (owner-only): the identity contract address the server reads to resolve the on-chain signingDid that verifies identityToken. */
|
|
23
|
-
identityContractAddress?: string;
|
|
24
20
|
/** Host signal (non-owner editor): the gate-minted edit-admission UCAN, forwarded on /auth so the
|
|
25
21
|
* server admits this connection as a GP-rail editor. Opaque to the package. */
|
|
26
22
|
editUcan?: string;
|
|
@@ -289,9 +285,7 @@ export interface IAuthArgs {
|
|
|
289
285
|
contractAddress?: string;
|
|
290
286
|
sessionDid?: string;
|
|
291
287
|
roomInfo?: string;
|
|
292
|
-
ownerIdentityDid?: string;
|
|
293
288
|
identityToken?: string;
|
|
294
|
-
identityContractAddress?: string;
|
|
295
289
|
editUcan?: string;
|
|
296
290
|
actorHandle?: string;
|
|
297
291
|
joinOnly?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as d } from "./index-
|
|
1
|
+
import { j as d } from "./index-9UhLkopd.mjs";
|
|
2
2
|
import { useRef as I, useState as N, useEffect as D } from "react";
|
|
3
3
|
import { DynamicDropdown as E, Tooltip as R, IconButton as O } from "@fileverse/ui";
|
|
4
|
-
import { a3 as A, a4 as P, c as y } from "./index-
|
|
4
|
+
import { a3 as A, a4 as P, c as y } from "./index-DCEHHKDt.mjs";
|
|
5
5
|
const p = (e, t, o = t) => {
|
|
6
6
|
const { state: s } = e, l = s.changeByRange((n) => {
|
|
7
7
|
const u = s.sliceDoc(n.from, n.to), r = s.sliceDoc(
|