@jupyterlab/docprovider
Advanced tools
Comparing version 3.1.0-beta.0 to 3.1.0-beta.1
export declare const moonsOfJupyter: string[]; | ||
/** | ||
* Get a random user-name based on the moons of Jupyter. | ||
* This function retuns names like "Anonymous Io" or "Anonymous Metis". | ||
* This function returns names like "Anonymous Io" or "Anonymous Metis". | ||
*/ | ||
export declare const getAnonymousUserName: () => string; | ||
export declare const usercolors: string[]; | ||
export declare const userColors: string[]; | ||
export declare const getRandomColor: () => string; |
@@ -85,7 +85,7 @@ // From https://en.wikipedia.org/wiki/Moons_of_Jupiter | ||
* Get a random user-name based on the moons of Jupyter. | ||
* This function retuns names like "Anonymous Io" or "Anonymous Metis". | ||
* This function returns names like "Anonymous Io" or "Anonymous Metis". | ||
*/ | ||
export const getAnonymousUserName = () => 'Anonymous ' + | ||
moonsOfJupyter[Math.floor(Math.random() * moonsOfJupyter.length)]; | ||
export const usercolors = [ | ||
export const userColors = [ | ||
'#12A0D3', | ||
@@ -100,3 +100,3 @@ '#17AB30', | ||
]; | ||
export const getRandomColor = () => usercolors[Math.floor(Math.random() * usercolors.length)]; | ||
export const getRandomColor = () => userColors[Math.floor(Math.random() * userColors.length)]; | ||
//# sourceMappingURL=awareness.js.map |
@@ -5,4 +5,5 @@ /** | ||
*/ | ||
export * from './awareness'; | ||
export * from './mock'; | ||
export * from './tokens'; | ||
export * from './yprovider'; |
@@ -9,2 +9,3 @@ /* ----------------------------------------------------------------------------- | ||
*/ | ||
export * from './awareness'; | ||
export * from './mock'; | ||
@@ -11,0 +12,0 @@ export * from './tokens'; |
@@ -6,5 +6,5 @@ import { WebsocketProvider } from 'y-websocket'; | ||
* | ||
* The user can specify their own user-name and user-color by adding urlparameters: | ||
* The user can specify their own user-name and user-color by adding url parameters: | ||
* ?username=Alice&usercolor=007007 | ||
* wher usercolor must be a six-digit hexadicimal encoded RGB value without the hash token. | ||
* where usercolor must be a six-digit hexadecimal encoded RGB value without the hash token. | ||
* | ||
@@ -11,0 +11,0 @@ * We specify custom messages that the server can interpret. For reference please look in yjs_ws_server. |
@@ -14,5 +14,5 @@ /* ----------------------------------------------------------------------------- | ||
* | ||
* The user can specify their own user-name and user-color by adding urlparameters: | ||
* The user can specify their own user-name and user-color by adding url parameters: | ||
* ?username=Alice&usercolor=007007 | ||
* wher usercolor must be a six-digit hexadicimal encoded RGB value without the hash token. | ||
* where usercolor must be a six-digit hexadecimal encoded RGB value without the hash token. | ||
* | ||
@@ -19,0 +19,0 @@ * We specify custom messages that the server can interpret. For reference please look in yjs_ws_server. |
{ | ||
"name": "@jupyterlab/docprovider", | ||
"version": "3.1.0-beta.0", | ||
"version": "3.1.0-beta.1", | ||
"description": "JupyterLab - Document Provider", | ||
@@ -41,3 +41,3 @@ "homepage": "https://github.com/jupyterlab/jupyterlab", | ||
"dependencies": { | ||
"@jupyterlab/shared-models": "^3.1.0-beta.0", | ||
"@jupyterlab/shared-models": "^3.1.0-beta.1", | ||
"@lumino/coreutils": "^1.5.3", | ||
@@ -49,3 +49,3 @@ "lib0": "^0.2.42", | ||
"devDependencies": { | ||
"@jupyterlab/testutils": "^3.1.0-beta.0", | ||
"@jupyterlab/testutils": "^3.1.0-beta.1", | ||
"@types/jest": "^26.0.10", | ||
@@ -60,3 +60,3 @@ "jest": "^26.4.2", | ||
}, | ||
"gitHead": "acd4b259a99ca58dbb8a14bfe73d6f5ad2262991" | ||
"gitHead": "96e326b4c0b3156203c59a79b60c760a9c33baae" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
26887
495
0