From df762fa2a838b503225f172715d0852ce6db07ea Mon Sep 17 00:00:00 2001 From: Nicolas Brichet Date: Thu, 17 Oct 2024 15:06:37 +0200 Subject: [PATCH 1/2] Add the awareness in the shared document interface --- javascript/src/api.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/javascript/src/api.ts b/javascript/src/api.ts index 44c395b..835ed21 100644 --- a/javascript/src/api.ts +++ b/javascript/src/api.ts @@ -23,6 +23,7 @@ import type { import type { IObservableDisposable } from '@lumino/disposable'; import type { ISignal } from '@lumino/signaling'; import * as Y from 'yjs'; +import { IAwareness } from './awareness'; /** * Changes on Sequence-like data are expressed as Quill-inspired deltas. @@ -96,6 +97,11 @@ interface ISharedDocumentNoSource extends ISharedBase { */ readonly state: JSONObject; + /** + * Document awareness + */ + readonly awareness: IAwareness; + /** * Get the value for a state attribute * From 44c9cf6f61eddaa52062a1d7494fa78b70c45541 Mon Sep 17 00:00:00 2001 From: Nicolas Brichet Date: Thu, 17 Oct 2024 15:21:42 +0200 Subject: [PATCH 2/2] integrity --- javascript/src/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/src/api.ts b/javascript/src/api.ts index 835ed21..9a44536 100644 --- a/javascript/src/api.ts +++ b/javascript/src/api.ts @@ -23,7 +23,7 @@ import type { import type { IObservableDisposable } from '@lumino/disposable'; import type { ISignal } from '@lumino/signaling'; import * as Y from 'yjs'; -import { IAwareness } from './awareness'; +import { IAwareness } from './awareness.js'; /** * Changes on Sequence-like data are expressed as Quill-inspired deltas.