mirror of
https://github.com/facebook/lexical.git
synced 2025-05-21 00:57:23 +08:00
Move to native UUID (#5622)
This commit is contained in:
3
package-lock.json
generated
3
package-lock.json
generated
@ -81,8 +81,7 @@
|
|||||||
"ts-jest": "^29.0.0",
|
"ts-jest": "^29.0.0",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
"typedoc": "^0.24.8",
|
"typedoc": "^0.24.8",
|
||||||
"typescript": "5.1.6",
|
"typescript": "5.1.6"
|
||||||
"uuid": "^8.3.2"
|
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"npm": ">=8.2.3",
|
"npm": ">=8.2.3",
|
||||||
|
@ -165,8 +165,7 @@
|
|||||||
"ts-jest": "^29.0.0",
|
"ts-jest": "^29.0.0",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
"typedoc": "^0.24.8",
|
"typedoc": "^0.24.8",
|
||||||
"typescript": "5.1.6",
|
"typescript": "5.1.6"
|
||||||
"uuid": "^8.3.2"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/katex": "^0.14.0",
|
"@types/katex": "^0.14.0",
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import {expect, test as base} from '@playwright/test';
|
import {expect, test as base} from '@playwright/test';
|
||||||
|
import {randomUUID} from 'node:crypto';
|
||||||
import prettier from 'prettier';
|
import prettier from 'prettier';
|
||||||
import {URLSearchParams} from 'url';
|
import {URLSearchParams} from 'url';
|
||||||
import {v4 as uuidv4} from 'uuid';
|
|
||||||
|
|
||||||
import {selectAll} from '../keyboardShortcuts/index.mjs';
|
import {selectAll} from '../keyboardShortcuts/index.mjs';
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ export async function initialize({
|
|||||||
appSettings.disableBeforeInput = LEGACY_EVENTS;
|
appSettings.disableBeforeInput = LEGACY_EVENTS;
|
||||||
if (isCollab) {
|
if (isCollab) {
|
||||||
appSettings.isCollab = isCollab;
|
appSettings.isCollab = isCollab;
|
||||||
appSettings.collabId = uuidv4();
|
appSettings.collabId = randomUUID();
|
||||||
}
|
}
|
||||||
if (showNestedEditorTreeView === undefined) {
|
if (showNestedEditorTreeView === undefined) {
|
||||||
appSettings.showNestedEditorTreeView = true;
|
appSettings.showNestedEditorTreeView = true;
|
||||||
|
Reference in New Issue
Block a user