Compare commits

...

34 Commits

Author SHA1 Message Date
Alec LaLonde
d13b0ec4d5
Merge pull request #21 from CGNonofr/show-tooltip-on-hover
Show tooltip on cursor hover
2022-09-19 20:40:23 -06:00
Alec LaLonde
6edfb6253d
Merge branch 'master' into show-tooltip-on-hover 2022-09-19 20:40:14 -06:00
Alec LaLonde
03f782bda8
Merge pull request #24 from CodinGame/fix-label-xss
Prevent XSS in tooltip label
2022-09-19 20:30:32 -06:00
Loïc Mangeonjean
e37ce9b99c fix: prevent XSS in tooltip label 2022-09-15 10:28:11 +02:00
Alec LaLonde
cdefbb151f
Merge pull request #22 from CodinGame/provide-class-name-to-tweak-display
Allow adding custom element class names
2022-06-22 14:22:28 -06:00
Samuel Olivier
91bdec1bb7 add additional elements class names 2022-06-13 10:19:46 +02:00
Loïc Mangeonjean
38713d59b9 Add showTooltipOnHover option 2022-05-18 15:10:45 +02:00
Loïc Mangeonjean
a3b0b8a57c Add missing type 2022-05-18 15:09:57 +02:00
Loïc Mangeonjean
4c03bc00eb Refactor tooltip management a little 2022-05-18 15:09:46 +02:00
Michael MacFadden
6ece72028e Updated dependencies and version. 2021-04-08 11:06:51 -05:00
Michael MacFadden
d221975bb7
Merge pull request #13 from CGNonofr/monaco-22
Accept new monaco-editor versions
2021-02-23 10:12:38 -07:00
Loïc Mangeonjean
5091b32d6f Accept new monaco-editor versions 2021-02-09 16:45:03 +01:00
Michael MacFadden
1e9743f5f9 Updated for 0.3.1 2020-11-08 16:24:21 -06:00
Michael MacFadden
8fbca4da22
Merge pull request #9 from convergencelabs/dependabot/npm_and_yarn/elliptic-6.5.3
Bump elliptic from 6.5.2 to 6.5.3
2020-11-08 14:21:16 -08:00
Michael MacFadden
ac5c60a2cf
Merge pull request #10 from CGNonofr/monaco-21
Accept monaco-editor until v0.21
2020-11-06 05:19:37 -08:00
Loïc Mangeonjean
5054f9ecba Accept monaco-editor until v0.21 2020-11-05 19:14:41 +01:00
dependabot[bot]
9b7119067e
Bump elliptic from 6.5.2 to 6.5.3
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-01 09:49:51 +00:00
Michael MacFadden
afb2b80dbb
Merge pull request #5 from convergencelabs/dependabot/npm_and_yarn/acorn-5.7.4
Bump acorn from 5.7.3 to 5.7.4
2020-07-04 22:47:35 -05:00
dependabot[bot]
e2f9f40507
Bump acorn from 5.7.3 to 5.7.4
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-03-16 16:42:39 +00:00
Michael MacFadden
d0cf867f78 Prepping for 0.3.0. 2020-03-06 09:29:01 -06:00
Michael MacFadden
be5d65c147 Fixes #3. 2020-03-06 09:28:31 -06:00
Michael MacFadden
705b55b117
Merge pull request #4 from CGNonofr/monaco-19
Update to work with latest monaco
2020-03-05 10:19:36 -05:00
Loïc Mangeonjean
645123dbb7 Regenerate package-lock 2020-03-03 16:41:24 +01:00
Loïc Mangeonjean
3e0008ed78 Update to work with latest monaco 2020-03-03 16:39:32 +01:00
Loïc Mangeonjean
6a17b25fcc Accept monaco-editor until v0.20 2020-03-03 16:39:32 +01:00
Michael MacFadden
d7e7328c7f Updated dependencies and changelog. 2020-01-08 08:49:31 -06:00
Michael MacFadden
3c374f479d Updated the example to leverage the new hover label. 2020-01-08 08:43:30 -06:00
Michael MacFadden
e34afb715c
Merge pull request #2 from CGNonofr/remote-selection-hover
Remote selection hover label
2020-01-08 08:42:31 -06:00
Loïc Mangeonjean
b58283899b Remove z-index that makes the hover not working 2020-01-08 15:06:21 +01:00
Loïc Mangeonjean
0e02c412dd Add label to remote selection 2020-01-08 15:05:38 +01:00
Michael MacFadden
f823cf71d8
Update README.md
Updated the demo url.  Fixes #1
2020-01-04 07:48:19 -06:00
Michael MacFadden
42be37bb80 Updated the copyright headers. 2019-12-08 12:40:32 -06:00
Michael MacFadden
9f8db8c84b Updated copyright on the code and the LICENSE. 2019-11-29 17:36:41 -08:00
Michael MacFadden
db0ada10e3 fixed a few typos, and updated the LICENSE file. 2019-11-29 17:25:59 -08:00
19 changed files with 8318 additions and 62 deletions

View File

@ -1,4 +1,19 @@
# Change Log
## [v0.3.1](https://github.com/convergencelabs/monaco-collab-ext/tree/0.3.1) (2020-11-08)
- Add support for Monaco >= 0.21
## [v0.3.0](https://github.com/convergencelabs/monaco-collab-ext/tree/0.3.0) (2020-03-06)
- Add support for Monaco >= 0.19.0. [#3](https://github.com/convergencelabs/monaco-collab-ext/issues/3)
## [v0.2.0](https://github.com/convergencelabs/monaco-collab-ext/tree/0.2.0) (2020-01-08)
- Added remote select hover labels. [#2](https://github.com/convergencelabs/monaco-collab-ext/pull/2)
## [v0.1.1](https://github.com/convergencelabs/monaco-collab-ext/tree/0.1.0) (2019-03-12)
- Fixed an exception when removing a remote selection.
## [v0.1.0](https://github.com/convergencelabs/monaco-collab-ext/tree/0.1.0) (2019-03-03)

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2019 Convergence Labs, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,18 +0,0 @@
Copyright (c) 2019 Convergence Labs, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -12,7 +12,7 @@ Install package with NPM and add it to your development dependencies:
```npm install --save-dev @convergencelabs/monaco-collab-ext```
## Demo
Go [here](https://examples.convergence.io/monaco/index.html) to see a live demo of multiple cursors, multiple selections, and remote scrollbars (Visit on multiple browsers, or even better, point a friend to it too). This uses [Convergence](https://convergence.io) to handle the synchronization of data and user actions.
Go [here](https://examples.convergence.io/examples/monaco/) to see a live demo of multiple cursors, multiple selections, and remote scrollbars (Visit on multiple browsers, or even better, point a friend to it too). This uses [Convergence](https://convergence.io) to handle the synchronization of data and user actions.
## Usage
@ -24,7 +24,7 @@ a single linear index or as a 2-dimensional position in the form of
```JavaScript
const editor = monaco.editor.create(document.getElementById("editor"), {
value: "function helloWolrd = () => { console.log('hello world!')",
value: "function helloWorld = () => { console.log('hello world!')",
theme: "vs-dark'",
language: 'javascript'
});
@ -56,7 +56,7 @@ users working in the same document.
```JavaScript
const editor = monaco.editor.create(document.getElementById("editor"), {
value: "function helloWolrd = () => { console.log('hello world!')",
value: "function helloWorld = () => { console.log('hello world!')",
theme: "vs-dark'",
language: 'javascript'
});
@ -84,7 +84,7 @@ to the editor.
```JavaScript
const editor = monaco.editor.create(document.getElementById("editor"), {
value: "function helloWolrd = () => { console.log('hello world!')",
value: "function helloWorld = () => { console.log('hello world!')",
theme: "vs-dark'",
language: 'javascript'
});

View File

@ -48,6 +48,4 @@ h2 {
.editor {
height: 500px;
border: 1px solid grey;
flex: 1;
}

View File

@ -32,8 +32,8 @@ require(['vs/editor/editor.main', 'MonacoCollabExt'], function(m, MonacoCollabEx
const staticUserCursor = remoteCursorManager.addCursor(staticUser.id, staticUser.color, staticUser.label);
const remoteSelectionManager = new MonacoCollabExt.RemoteSelectionManager({editor: target});
remoteSelectionManager.addSelection(sourceUser.id, sourceUser.color);
remoteSelectionManager.addSelection(staticUser.id, staticUser.color);
remoteSelectionManager.addSelection(sourceUser.id, sourceUser.color, sourceUser.label);
remoteSelectionManager.addSelection(staticUser.id, staticUser.color, staticUser.label);
const targetContentManager = new MonacoCollabExt.EditorContentManager({
editor: target

View File

@ -22,7 +22,7 @@ const tsProject = gulpTypescript.createProject("tsconfig.json", {
const exportFilter = "export {};";
const copyFiles = () =>
src(["README.md", "LICENSE.txt", "package.json"])
src(["README.md", "LICENSE", "package.json"])
.pipe(dest("dist"));
const copyDocs = () =>

8102
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@convergencelabs/monaco-collab-ext",
"version": "0.1.1",
"version": "0.3.2",
"title": "Monaco Editor Collaborative Extensions",
"description": "Collaborative Extensions for the Monaco Editor",
"keywords": [
@ -30,23 +30,23 @@
"access": "public"
},
"dependencies": {
"monaco-editor": "^0.15.6"
"monaco-editor": ">=0.15.6"
},
"devDependencies": {
"@babel/cli": "7.2.3",
"@babel/core": "7.2.2",
"@babel/node": "7.2.2",
"@babel/preset-env": "7.2.3",
"@babel/preset-stage-3": "7.0.0",
"@babel/preset-typescript": "7.1.0",
"@babel/register": "7.0.0",
"babel-plugin-module-resolver": "3.1.1",
"@babel/cli": "7.13.14",
"@babel/core": "7.13.15",
"@babel/node": "7.13.13",
"@babel/preset-env": "7.13.15",
"@babel/preset-stage-3": "7.8.3",
"@babel/preset-typescript": "7.13.0",
"@babel/register": "7.13.14",
"babel-plugin-module-resolver": "4.1.0",
"babel-plugin-transform-class-properties": "6.24.1",
"del": "3.0.0",
"gulp": "4.0.0",
"del": "6.0.0",
"gulp": "4.0.2",
"gulp-babel": "8.0.0",
"gulp-bump": "3.1.1",
"gulp-clean-css": "4.0.0",
"gulp-bump": "3.2.0",
"gulp-clean-css": "4.3.0",
"gulp-filter-each": "1.0.1",
"gulp-header": "2.0.7",
"gulp-insert": "0.5.0",
@ -57,7 +57,7 @@
"trim": "0.0.1",
"ts-loader": "5.3.3",
"tslint": "5.12.0",
"typescript": "3.3.3333",
"typescript": "3.7.4",
"webpack": "4.28.1",
"webpack-stream": "5.2.1"
},

View File

@ -37,8 +37,6 @@
.monaco-remote-selection {
position: absolute;
pointer-events: auto;
z-index: 10;
opacity: 0.3;
background: blue;
z-index: 4000;
}

View File

@ -1,3 +1,12 @@
/*
* Copyright (c) 2019 Convergence Labs, Inc.
*
* This file is part of the Monaco Collaborative Extensions, which is
* released under the terms of the MIT license. A copy of the MIT license
* is usually provided as part of this source code package in the LICENCE
* file. If it was not, please see <https://opensource.org/licenses/MIT>
*/
import * as monaco from "monaco-editor";
import {editor, IDisposable} from "monaco-editor";
import {Validation} from "./Validation";

View File

@ -1,3 +1,12 @@
/*
* Copyright (c) 2019 Convergence Labs, Inc.
*
* This file is part of the Monaco Collaborative Extensions, which is
* released under the terms of the MIT license. A copy of the MIT license
* is usually provided as part of this source code package in the LICENCE
* file. If it was not, please see <https://opensource.org/licenses/MIT>
*/
/**
* A simple callback type that signifies a resource has been disposed.
*

View File

@ -1,3 +1,12 @@
/*
* Copyright (c) 2019 Convergence Labs, Inc.
*
* This file is part of the Monaco Collaborative Extensions, which is
* released under the terms of the MIT license. A copy of the MIT license
* is usually provided as part of this source code package in the LICENCE
* file. If it was not, please see <https://opensource.org/licenses/MIT>
*/
import {IPosition} from "monaco-editor";
import {RemoteCursorWidget} from "./RemoteCursorWidget";

View File

@ -1,3 +1,12 @@
/*
* Copyright (c) 2019 Convergence Labs, Inc.
*
* This file is part of the Monaco Collaborative Extensions, which is
* released under the terms of the MIT license. A copy of the MIT license
* is usually provided as part of this source code package in the LICENCE
* file. If it was not, please see <https://opensource.org/licenses/MIT>
*/
import * as monaco from "monaco-editor";
import {IPosition} from "monaco-editor";
import {RemoteCursor} from "./RemoteCursor";
@ -14,6 +23,11 @@ export interface IRemoteCursorManagerOptions {
*/
editor: monaco.editor.ICodeEditor;
/**
* An additional class name for the cursor element, to tweak the default style
*/
className?: string;
/**
* Determines if tooltips will be shown when the cursor is moved.
*/
@ -24,6 +38,16 @@ export interface IRemoteCursorManagerOptions {
* it was last moved.
*/
tooltipDuration?: number;
/**
* Show the tooltip when the cursor is hovered
*/
showTooltipOnHover?: boolean;
/**
* An additional class name for the tooltip element, to tweak the default style
*/
tooltipClassName?: string;
}
/**
@ -38,7 +62,7 @@ export class RemoteCursorManager {
* The default values for optional parameters.
* @internal
*/
private static readonly DEFAULT_OPTIONS = {tooltips: true, tooltipDuration: 1};
private static readonly DEFAULT_OPTIONS: Partial<IRemoteCursorManagerOptions> = {tooltips: true, tooltipDuration: 1, showTooltipOnHover: false};
/**
* A counter that generates unique ids for the cursor widgets.
@ -107,10 +131,13 @@ export class RemoteCursorManager {
const cursorWidget = new RemoteCursorWidget(
this._options.editor,
widgetId,
this._options.className,
color,
label,
this._options.tooltips,
tooltipDurationMs,
this._options.showTooltipOnHover,
this._options.tooltipClassName,
() => this.removeCursor(id));
this._cursorWidgets.set(id, cursorWidget);

View File

@ -1,8 +1,32 @@
/*
* Copyright (c) 2019 Convergence Labs, Inc.
*
* This file is part of the Monaco Collaborative Extensions, which is
* released under the terms of the MIT license. A copy of the MIT license
* is usually provided as part of this source code package in the LICENCE
* file. If it was not, please see <https://opensource.org/licenses/MIT>
*/
import {editor, IDisposable, IPosition} from "monaco-editor";
import {EditorContentManager} from "./EditorContentManager";
import {OnDisposed} from "./OnDisposed";
import {Validation} from "./Validation";
interface IConfiguration {
readonly lineHeight: number;
}
function getConfiguration(editorInstance: editor.ICodeEditor): IConfiguration {
// Support for Monaco < 0.19.0
if (typeof (editorInstance as any).getConfiguration === "function") {
return (editorInstance as any).getConfiguration();
}
return {
lineHeight: editorInstance.getOption(editor.EditorOption.lineHeight)
};
}
/**
* This class implements a Monaco Content Widget to render a remote user's
* cursor, and an optional tooltip.
@ -27,10 +51,13 @@ export class RemoteCursorWidget implements editor.IContentWidget, IDisposable {
constructor(codeEditor: editor.ICodeEditor,
widgetId: string,
className: string | undefined,
color: string,
label: string,
tooltipEnabled: boolean,
tooltipDuration: number,
showTooltipOnHover: boolean,
tooltipClassName: string | undefined,
onDisposed: OnDisposed) {
this._editor = codeEditor;
this._tooltipDuration = tooltipDuration;
@ -38,18 +65,18 @@ export class RemoteCursorWidget implements editor.IContentWidget, IDisposable {
this._onDisposed = onDisposed;
// Create the main node for the cursor element.
const {lineHeight} = this._editor.getConfiguration();
const {lineHeight} = getConfiguration(this._editor);
this._domNode = document.createElement("div");
this._domNode.className = "monaco-remote-cursor";
this._domNode.className = classNames('monaco-remote-cursor', className)
this._domNode.style.background = color;
this._domNode.style.height = `${lineHeight}px`;
// Create the tooltip element if the tooltip is enabled.
if (tooltipEnabled) {
this._tooltipNode = document.createElement("div");
this._tooltipNode.className = "monaco-remote-cursor-tooltip";
this._tooltipNode.className = classNames('monaco-remote-cursor-tooltip', tooltipClassName)
this._tooltipNode.style.background = color;
this._tooltipNode.innerHTML = label;
this._tooltipNode.innerText = label;
this._domNode.appendChild(this._tooltipNode);
// we only need to listen to scroll positions to update the
@ -57,6 +84,16 @@ export class RemoteCursorWidget implements editor.IContentWidget, IDisposable {
this._scrollListener = this._editor.onDidScrollChange(() => {
this._updateTooltipPosition();
});
if (showTooltipOnHover) {
this._domNode.style.pointerEvents = 'auto';
this._domNode.addEventListener('mouseover', () => {
this._setTooltipVisible(true);
})
this._domNode.addEventListener('mouseout', () => {
this._setTooltipVisible(false);
})
}
} else {
this._tooltipNode = null;
this._scrollListener = null;
@ -147,17 +184,10 @@ export class RemoteCursorWidget implements editor.IContentWidget, IDisposable {
}
private _showTooltip(): void {
this._updateTooltipPosition();
if (this._hideTimer !== null) {
clearTimeout(this._hideTimer);
} else {
this._setTooltipVisible(true);
}
this._setTooltipVisible(true);
this._hideTimer = setTimeout(() => {
this._setTooltipVisible(false);
this._hideTimer = null;
}, this._tooltipDuration);
}
@ -173,7 +203,12 @@ export class RemoteCursorWidget implements editor.IContentWidget, IDisposable {
}
private _setTooltipVisible(visible: boolean): void {
if (this._hideTimer !== null) {
clearTimeout(this._hideTimer);
this._hideTimer = null;
}
if (visible) {
this._updateTooltipPosition();
this._tooltipNode.style.opacity = "1.0";
} else {
this._tooltipNode.style.opacity = "0";
@ -219,3 +254,7 @@ export class RemoteCursorWidget implements editor.IContentWidget, IDisposable {
}
}
}
function classNames(...names: (string|undefined|null)[]) {
return names.filter(className => className != null && className.length > 0).join(' ')
}

View File

@ -1,3 +1,12 @@
/*
* Copyright (c) 2019 Convergence Labs, Inc.
*
* This file is part of the Monaco Collaborative Extensions, which is
* released under the terms of the MIT license. A copy of the MIT license
* is usually provided as part of this source code package in the LICENCE
* file. If it was not, please see <https://opensource.org/licenses/MIT>
*/
import * as monaco from "monaco-editor";
import {editor, IPosition} from "monaco-editor";
import {OnDisposed} from "./OnDisposed";
@ -77,7 +86,13 @@ export class RemoteSelection {
private readonly _styleElement: HTMLStyleElement;
/**
* The Monaco editor isntance to render selection into.
* The label to display on hover
* @internal
*/
private readonly _label: string;
/**
* The Monaco editor instance to render selection into.
* @internal
*/
private readonly _editor: editor.ICodeEditor;
@ -122,6 +137,7 @@ export class RemoteSelection {
id: string,
classId: number,
color: string,
label: string,
onDisposed: OnDisposed
) {
this._editor = codeEditor;
@ -129,6 +145,7 @@ export class RemoteSelection {
const uniqueClassId = `monaco-remote-selection-${classId}`;
this._className = `monaco-remote-selection ${uniqueClassId}`;
this._styleElement = RemoteSelection._addDynamicStyleElement(uniqueClassId, color);
this._label = label;
this._decorations = [];
this._onDisposed = onDisposed;
}
@ -245,7 +262,10 @@ export class RemoteSelection {
this._endPosition.column
),
options: {
className: this._className
className: this._className,
hoverMessage: this._label != null ? {
value: this._label
} : null
}
}
]

View File

@ -1,3 +1,12 @@
/*
* Copyright (c) 2019 Convergence Labs, Inc.
*
* This file is part of the Monaco Collaborative Extensions, which is
* released under the terms of the MIT license. A copy of the MIT license
* is usually provided as part of this source code package in the LICENCE
* file. If it was not, please see <https://opensource.org/licenses/MIT>
*/
import * as monaco from "monaco-editor";
import {IPosition} from "monaco-editor";
import {RemoteSelection} from "./RemoteSelection";
@ -9,7 +18,7 @@ import {Validation} from "./Validation";
*/
export interface IRemoteSelectionManagerOptions {
/**
* The Monaco Editor instace to render the remote selections into.
* The Monaco Editor instance to render the remote selections into.
*/
editor: monaco.editor.ICodeEditor;
}
@ -63,11 +72,11 @@ export class RemoteSelectionManager {
* @param color
* The color to render the selection with.
*/
public addSelection(id: string, color: string): RemoteSelection {
public addSelection(id: string, color: string, label?: string): RemoteSelection {
const onDisposed = () => {
this.removeSelection(id);
};
const selection = new RemoteSelection(this._options.editor, id, this._nextClassId++, color, onDisposed);
const selection = new RemoteSelection(this._options.editor, id, this._nextClassId++, color, label, onDisposed);
this._remoteSelections.set(id, selection);
return selection;
}

View File

@ -1,3 +1,12 @@
/*
* Copyright (c) 2019 Convergence Labs, Inc.
*
* This file is part of the Monaco Collaborative Extensions, which is
* released under the terms of the MIT license. A copy of the MIT license
* is usually provided as part of this source code package in the LICENCE
* file. If it was not, please see <https://opensource.org/licenses/MIT>
*/
/**
* A helper class to aid in input validation.
*

View File

@ -1,3 +1,12 @@
/*
* Copyright (c) 2019 Convergence Labs, Inc.
*
* This file is part of the Monaco Collaborative Extensions, which is
* released under the terms of the MIT license. A copy of the MIT license
* is usually provided as part of this source code package in the LICENCE
* file. If it was not, please see <https://opensource.org/licenses/MIT>
*/
export * from "./RemoteCursorManager";
export * from "./RemoteSelectionManager";
export * from "./EditorContentManager";