@fileverse-dev/ddoc 5.1.9-tab-deeplink.0 → 5.1.10
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
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
[ddocs.new](http://ddocs.new/) is your privacy-focused, open-source alternative to Google Docs. It is an end-to-end encrypted document editor that is optimized for multiplayer collaboration without compromising on speed or people's control over their data.
|
|
3
3
|
|
|
4
4
|
## 𓆏 Features include:
|
|
5
|
-
- End-to-end encryption
|
|
5
|
+
- End-to-end encryption with post-quantum cryptography
|
|
6
6
|
- Real-time and async collaboration
|
|
7
7
|
- Suggestion mode (tracked changes) and commenting
|
|
8
8
|
- Markdown and LaTeX support
|
package/dist/index.es.js
CHANGED
|
@@ -16776,6 +16776,7 @@ class dl {
|
|
|
16776
16776
|
fe(this, "ownerUcan");
|
|
16777
16777
|
fe(this, "collaborationUcan");
|
|
16778
16778
|
fe(this, "ownerAddress");
|
|
16779
|
+
fe(this, "ddocId");
|
|
16779
16780
|
fe(this, "editLock");
|
|
16780
16781
|
fe(this, "encryptedTitle");
|
|
16781
16782
|
fe(this, "identityToken");
|
|
@@ -16878,7 +16879,7 @@ class dl {
|
|
|
16878
16879
|
Lt(this.roomKey),
|
|
16879
16880
|
new TextEncoder().encode(JSON.stringify(this.roomInfo)),
|
|
16880
16881
|
this.wireFormat
|
|
16881
|
-
)), this.ownerKeyPair && (n.ownerToken = await this.getOwnerToken()), this.ownerAddress && (n.ownerAddress = this.ownerAddress), this.contractAddress && (n.contractAddress = this.contractAddress), this.identityToken && (n.identityToken = this.identityToken);
|
|
16882
|
+
)), this.ownerKeyPair && (n.ownerToken = await this.getOwnerToken()), this.ownerAddress && (n.ownerAddress = this.ownerAddress), this.contractAddress && (n.contractAddress = this.contractAddress), this.ddocId && (n.ddocId = this.ddocId), this.identityToken && (n.identityToken = this.identityToken);
|
|
16882
16883
|
let o;
|
|
16883
16884
|
if (this.refreshEditClaim) {
|
|
16884
16885
|
const u = await this.refreshEditClaim();
|
|
@@ -16943,7 +16944,7 @@ class dl {
|
|
|
16943
16944
|
);
|
|
16944
16945
|
this.roomKey = t.roomKey, this.roomId = t.roomId, this.collaborationKeyPair = _r.fromSecretKey(
|
|
16945
16946
|
Xt(r)
|
|
16946
|
-
), t.ownerEdSecret && (this.ownerKeyPair = _r.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);
|
|
16947
|
+
), t.ownerEdSecret && (this.ownerKeyPair = _r.fromSecretKey(t.ownerEdSecret)), t.contractAddress && (this.contractAddress = t.contractAddress), t.ownerAddress && (this.ownerAddress = t.ownerAddress), t.ddocId && (this.ddocId = t.ddocId), 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);
|
|
16947
16948
|
}
|
|
16948
16949
|
get isConnected() {
|
|
16949
16950
|
return this._webSocketStatus === _t.CONNECTED;
|
|
@@ -17057,7 +17058,8 @@ class dl {
|
|
|
17057
17058
|
!this.editLock && !this.encryptedTitle || await this._emitWithAck("/documents/meta", {
|
|
17058
17059
|
documentId: this.roomId,
|
|
17059
17060
|
editLock: this.editLock ?? null,
|
|
17060
|
-
title: this.encryptedTitle ?? null
|
|
17061
|
+
title: this.encryptedTitle ?? null,
|
|
17062
|
+
...this.ddocId ? { ddocId: this.ddocId } : {}
|
|
17061
17063
|
});
|
|
17062
17064
|
}
|
|
17063
17065
|
/** Owner rename mid-session: refresh the connect-frozen title artifacts (so
|
|
@@ -17067,7 +17069,8 @@ class dl {
|
|
|
17067
17069
|
this.encryptedTitle = t.encryptedTitle, this.roomInfo && (this.roomInfo.documentTitle = t.documentTitle), this._webSocketStatus === _t.CONNECTED && await this._emitWithAck("/documents/meta", {
|
|
17068
17070
|
documentId: this.roomId,
|
|
17069
17071
|
editLock: this.editLock ?? null,
|
|
17070
|
-
title: t.encryptedTitle
|
|
17072
|
+
title: t.encryptedTitle,
|
|
17073
|
+
...this.ddocId ? { ddocId: this.ddocId } : {}
|
|
17071
17074
|
});
|
|
17072
17075
|
}
|
|
17073
17076
|
async broadcastAwareness(t) {
|
|
@@ -17647,6 +17650,7 @@ class NE {
|
|
|
17647
17650
|
ownerEdSecret: t.ownerEdSecret,
|
|
17648
17651
|
contractAddress: t.contractAddress,
|
|
17649
17652
|
ownerAddress: t.ownerAddress,
|
|
17653
|
+
ddocId: t.ddocId,
|
|
17650
17654
|
editLock: t.editLock,
|
|
17651
17655
|
encryptedTitle: t.encryptedTitle,
|
|
17652
17656
|
identityToken: t.identityToken,
|
|
@@ -8,6 +8,7 @@ interface ISocketClientConfig {
|
|
|
8
8
|
ownerEdSecret?: string;
|
|
9
9
|
contractAddress?: string;
|
|
10
10
|
ownerAddress?: string;
|
|
11
|
+
ddocId?: string;
|
|
11
12
|
editLock?: string;
|
|
12
13
|
encryptedTitle?: string;
|
|
13
14
|
identityToken?: string;
|
|
@@ -74,6 +75,7 @@ export declare class SocketClient {
|
|
|
74
75
|
private ownerUcan?;
|
|
75
76
|
private collaborationUcan?;
|
|
76
77
|
private ownerAddress?;
|
|
78
|
+
private ddocId?;
|
|
77
79
|
private editLock?;
|
|
78
80
|
private encryptedTitle?;
|
|
79
81
|
private identityToken?;
|
|
@@ -83,6 +83,8 @@ export interface CollabConnectionConfig {
|
|
|
83
83
|
ownerEdSecret?: string;
|
|
84
84
|
contractAddress?: string;
|
|
85
85
|
ownerAddress?: string;
|
|
86
|
+
/** Host signal (opaque-link docs): the on-chain ddocId, sent to the server alongside the public room id. */
|
|
87
|
+
ddocId?: string;
|
|
86
88
|
roomInfo?: {
|
|
87
89
|
documentTitle: string;
|
|
88
90
|
portalAddress: string;
|
|
@@ -311,6 +313,7 @@ export interface IAuthArgs {
|
|
|
311
313
|
ownerToken?: string;
|
|
312
314
|
ownerAddress?: string;
|
|
313
315
|
contractAddress?: string;
|
|
316
|
+
ddocId?: string;
|
|
314
317
|
sessionDid?: string;
|
|
315
318
|
roomInfo?: string;
|
|
316
319
|
identityToken?: string;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@fileverse-dev/ddoc",
|
|
3
3
|
"private": false,
|
|
4
4
|
"description": "DDoc",
|
|
5
|
-
"version": "5.1.
|
|
5
|
+
"version": "5.1.10",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/fileverse/fileverse-ddocs.git"
|
|
@@ -197,4 +197,4 @@
|
|
|
197
197
|
"vitest": "^2.1.0",
|
|
198
198
|
"yjs": "13.6.30"
|
|
199
199
|
}
|
|
200
|
-
}
|
|
200
|
+
}
|