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

14
node_modules/metro-minify-terser/src/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,14 @@
/**
* 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.
*
* @format
* @oncall react_native
*/
import minifier from './minifier';
declare const minifierFn: typeof minifier;
export = minifierFn;

7
node_modules/metro-minify-terser/src/index.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
"use strict";
var _minifier = _interopRequireDefault(require("./minifier"));
function _interopRequireDefault(e) {
return e && e.__esModule ? e : { default: e };
}
module.exports = _minifier.default;

16
node_modules/metro-minify-terser/src/index.js.flow generated vendored Normal file
View File

@@ -0,0 +1,16 @@
/**
* 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 minifier from './minifier';
// CommonJS export for backwards compatibility
// eslint-disable-next-line import/no-commonjs
module.exports = minifier;

21
node_modules/metro-minify-terser/src/minifier.d.ts generated vendored Normal file
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.
*
* @noformat
* @oncall react_native
* @generated SignedSource<<dd87bc462d764798f150c2d648b86ca8>>
*
* This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
* Original file: packages/metro-minify-terser/src/minifier.js
* To regenerate, run:
* js1 build metro-ts-defs (internal) OR
* yarn run build-ts-defs (OSS)
*/
import type {MinifierOptions, MinifierResult} from 'metro-transform-worker';
declare function minifier(options: MinifierOptions): Promise<MinifierResult>;
export default minifier;

54
node_modules/metro-minify-terser/src/minifier.js generated vendored Normal file
View File

@@ -0,0 +1,54 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.default = minifier;
var _terser = _interopRequireDefault(require("terser"));
function _interopRequireDefault(e) {
return e && e.__esModule ? e : { default: e };
}
async function minifier(options) {
const result = await minify(options);
if (!options.map || result.map == null) {
return {
code: result.code,
};
}
const map = JSON.parse(result.map);
return {
code: result.code,
map: {
...map,
sources: [options.filename],
},
};
}
async function minify({ code, map, reserved, config }) {
const options = {
...config,
output: {
...(config.output ?? {}),
},
mangle:
config.mangle === false
? false
: {
...config.mangle,
reserved,
},
sourceMap: map
? config.sourceMap === false
? false
: {
...config.sourceMap,
content: map,
}
: false,
};
const result = await _terser.default.minify(code, options);
return {
code: result.code,
map: result.map,
};
}

70
node_modules/metro-minify-terser/src/minifier.js.flow generated vendored Normal file
View File

@@ -0,0 +1,70 @@
/**
* 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 {BasicSourceMap} from 'metro-source-map';
import type {MinifierOptions, MinifierResult} from 'metro-transform-worker';
import terser from 'terser';
export default async function minifier(
options: MinifierOptions,
): Promise<MinifierResult> {
const result = await minify(options);
if (!options.map || result.map == null) {
return {code: result.code};
}
const map: BasicSourceMap = JSON.parse(result.map);
return {code: result.code, map: {...map, sources: [options.filename]}};
}
async function minify({
code,
map,
reserved,
config,
}: MinifierOptions): Promise<{code: string, map: ?string}> {
const options = {
...config,
output: {
// Mitigate https://github.com/terser/terser/issues/1341 - Terser may
// set its internal data on this object, so give it a shallow copy.
...(config.output ?? {}),
},
mangle:
config.mangle === false
? false
: {
...config.mangle,
reserved,
},
sourceMap: map
? config.sourceMap === false
? false
: {
...config.sourceMap,
content: map,
}
: false,
};
/* $FlowFixMe[incompatible-type](>=0.111.0 site=react_native_fb) This comment suppresses an
* error found when Flow v0.111 was deployed. To see the error, delete this
* comment and run Flow. */
const result = await terser.minify(code, options);
return {
code: result.code,
map: result.map,
};
}