FRE-600: Fix code review blockers

- Consolidated duplicate UndoManagers to single instance
- Fixed connection promise to only resolve on 'connected' status
- Fixed WebSocketProvider import (WebsocketProvider)
- Added proper doc.destroy() cleanup
- Renamed isPresenceInitialized property to avoid conflict

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
2026-04-25 00:08:01 -04:00
parent 65b552bb08
commit 7c684a42cc
48450 changed files with 5679671 additions and 383 deletions

View File

@@ -0,0 +1,24 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @noformat
* @oncall react_native
* @generated SignedSource<<850ba6867e140fb0973cd13d0fd1bc60>>
*
* This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
* Original file: packages/metro/src/IncrementalBundler/GraphNotFoundError.js
* To regenerate, run:
* js1 build metro-ts-defs (internal) OR
* yarn run build-ts-defs (OSS)
*/
import type {GraphId} from '../lib/getGraphId';
declare class GraphNotFoundError extends Error {
graphId: GraphId;
constructor(graphId: GraphId);
}
export default GraphNotFoundError;

View File

@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.default = void 0;
class GraphNotFoundError extends Error {
constructor(graphId) {
super(`The graph \`${graphId}\` was not found.`);
this.graphId = graphId;
}
}
exports.default = GraphNotFoundError;

View File

@@ -0,0 +1,21 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
* @oncall react_native
*/
import type {GraphId} from '../lib/getGraphId';
export default class GraphNotFoundError extends Error {
graphId: GraphId;
constructor(graphId: GraphId) {
super(`The graph \`${graphId}\` was not found.`);
this.graphId = graphId;
}
}

View File

@@ -0,0 +1,22 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @noformat
* @oncall react_native
* @generated SignedSource<<6a9d75bc74b654362c3563ec8babda0b>>
*
* This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
* Original file: packages/metro/src/IncrementalBundler/ResourceNotFoundError.js
* To regenerate, run:
* js1 build metro-ts-defs (internal) OR
* yarn run build-ts-defs (OSS)
*/
declare class ResourceNotFoundError extends Error {
resourcePath: string;
constructor(resourcePath: string);
}
export default ResourceNotFoundError;

View File

@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.default = void 0;
class ResourceNotFoundError extends Error {
constructor(resourcePath) {
super(`The resource \`${resourcePath}\` was not found.`);
this.resourcePath = resourcePath;
}
}
exports.default = ResourceNotFoundError;

View File

@@ -0,0 +1,19 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
* @oncall react_native
*/
export default class ResourceNotFoundError extends Error {
resourcePath: string;
constructor(resourcePath: string) {
super(`The resource \`${resourcePath}\` was not found.`);
this.resourcePath = resourcePath;
}
}

View File

@@ -0,0 +1,24 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @noformat
* @oncall react_native
* @generated SignedSource<<2c2d4a1a2d357eb73806a68bba897795>>
*
* This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
* Original file: packages/metro/src/IncrementalBundler/RevisionNotFoundError.js
* To regenerate, run:
* js1 build metro-ts-defs (internal) OR
* yarn run build-ts-defs (OSS)
*/
import type {RevisionId} from '../IncrementalBundler';
declare class RevisionNotFoundError extends Error {
revisionId: RevisionId;
constructor(revisionId: RevisionId);
}
export default RevisionNotFoundError;

View File

@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.default = void 0;
class RevisionNotFoundError extends Error {
constructor(revisionId) {
super(`The revision \`${revisionId}\` was not found.`);
this.revisionId = revisionId;
}
}
exports.default = RevisionNotFoundError;

View File

@@ -0,0 +1,21 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
* @oncall react_native
*/
import type {RevisionId} from '../IncrementalBundler';
export default class RevisionNotFoundError extends Error {
revisionId: RevisionId;
constructor(revisionId: RevisionId) {
super(`The revision \`${revisionId}\` was not found.`);
this.revisionId = revisionId;
}
}