@jupyterlab/docprovider
Advanced tools
Comparing version 3.1.0-alpha.8 to 3.1.0-alpha.9
@@ -5,13 +5,4 @@ /** | ||
*/ | ||
export interface IProvider { | ||
/** | ||
* Resolves to true if the initial content has been initialized on the server. false otherwise. | ||
*/ | ||
requestInitialContent(): Promise<boolean>; | ||
putInitializedState(): void; | ||
acquireLock(): Promise<number>; | ||
releaseLock(lock: number): void; | ||
destroy(): void; | ||
} | ||
export * from './yprovider'; | ||
export * from './mock'; | ||
export * from './tokens'; |
@@ -11,2 +11,3 @@ /* ----------------------------------------------------------------------------- | ||
export * from './mock'; | ||
export * from './tokens'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
import { IProvider } from './index'; | ||
export declare class ProviderMock implements IProvider { | ||
import { IDocumentProvider } from './index'; | ||
export declare class ProviderMock implements IDocumentProvider { | ||
requestInitialContent(): Promise<boolean>; | ||
@@ -4,0 +4,0 @@ putInitializedState(): void; |
@@ -1,13 +0,13 @@ | ||
import * as sharedModels from '@jupyterlab/shared-models'; | ||
import { WebsocketProvider } from 'y-websocket'; | ||
import { IDocumentProviderFactory } from './tokens'; | ||
/** | ||
* A class to provide Yjs synchronization over Websocket. | ||
*/ | ||
export declare class WebsocketProviderWithLocks extends WebsocketProvider { | ||
export declare class WebSocketProviderWithLocks extends WebsocketProvider { | ||
/** | ||
* Construct a new WebsocketProviderWithLocks | ||
* Construct a new WebSocketProviderWithLocks | ||
* | ||
* @param options The instantiation options for a WebsocketProviderWithLocks | ||
* @param options The instantiation options for a WebSocketProviderWithLocks | ||
*/ | ||
constructor(options: WebsocketProviderWithLocks.IOptions); | ||
constructor(options: WebSocketProviderWithLocks.IOptions); | ||
/** | ||
@@ -29,22 +29,14 @@ * Resolves to true if the initial content has been initialized on the server. false otherwise. | ||
/** | ||
* A namespace for WebsocketProviderWithLocks statics. | ||
* A namespace for WebSocketProviderWithLocks statics. | ||
*/ | ||
export declare namespace WebsocketProviderWithLocks { | ||
export declare namespace WebSocketProviderWithLocks { | ||
/** | ||
* The instantiation options for a WebsocketProviderWithLocks. | ||
* The instantiation options for a WebSocketProviderWithLocks. | ||
*/ | ||
interface IOptions { | ||
interface IOptions extends IDocumentProviderFactory.IOptions { | ||
/** | ||
* The server URL. | ||
* The server URL | ||
*/ | ||
url: string; | ||
/** | ||
* The name of the room | ||
*/ | ||
guid: string; | ||
/** | ||
* The YNotebook. | ||
*/ | ||
ymodel: sharedModels.YDocument<sharedModels.DocumentChange>; | ||
} | ||
} |
@@ -12,7 +12,7 @@ /* ----------------------------------------------------------------------------- | ||
*/ | ||
export class WebsocketProviderWithLocks extends WebsocketProvider { | ||
export class WebSocketProviderWithLocks extends WebsocketProvider { | ||
/** | ||
* Construct a new WebsocketProviderWithLocks | ||
* Construct a new WebSocketProviderWithLocks | ||
* | ||
* @param options The instantiation options for a WebsocketProviderWithLocks | ||
* @param options The instantiation options for a WebSocketProviderWithLocks | ||
*/ | ||
@@ -19,0 +19,0 @@ constructor(options) { |
{ | ||
"name": "@jupyterlab/docprovider", | ||
"version": "3.1.0-alpha.8", | ||
"version": "3.1.0-alpha.9", | ||
"description": "JupyterLab - Document Provider", | ||
@@ -41,3 +41,4 @@ "homepage": "https://github.com/jupyterlab/jupyterlab", | ||
"dependencies": { | ||
"@jupyterlab/shared-models": "^3.1.0-alpha.8", | ||
"@jupyterlab/shared-models": "^3.1.0-alpha.9", | ||
"@lumino/coreutils": "^1.5.3", | ||
"lib0": "^0.2.41", | ||
@@ -48,3 +49,3 @@ "y-websocket": "^1.3.11", | ||
"devDependencies": { | ||
"@jupyterlab/testutils": "^3.1.0-alpha.8", | ||
"@jupyterlab/testutils": "^3.1.0-alpha.9", | ||
"@types/jest": "^26.0.10", | ||
@@ -59,3 +60,3 @@ "jest": "^26.4.2", | ||
}, | ||
"gitHead": "b40583fc890334721f89adaa61a72a25fb24e5fd" | ||
"gitHead": "fdadc15899fec6f9bcb41d60bbade288bf78db78" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17992
14
283
5