flipper-frontend-core 0.212.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of flipper-frontend-core might be problematic. Click here for more details.
- package/index.js +47 -0
- package/package.json +7 -33
- package/README.md +0 -3
- package/lib/AbstractClient.d.ts +0 -75
- package/lib/AbstractClient.d.ts.map +0 -1
- package/lib/AbstractClient.js +0 -376
- package/lib/AbstractClient.js.map +0 -1
- package/lib/RenderHost.d.ts +0 -138
- package/lib/RenderHost.d.ts.map +0 -1
- package/lib/RenderHost.js +0 -19
- package/lib/RenderHost.js.map +0 -1
- package/lib/devices/ArchivedDevice.d.ts +0 -35
- package/lib/devices/ArchivedDevice.d.ts.map +0 -1
- package/lib/devices/ArchivedDevice.js +0 -65
- package/lib/devices/ArchivedDevice.js.map +0 -1
- package/lib/devices/BaseDevice.d.ts +0 -79
- package/lib/devices/BaseDevice.d.ts.map +0 -1
- package/lib/devices/BaseDevice.js +0 -267
- package/lib/devices/BaseDevice.js.map +0 -1
- package/lib/devices/TestDevice.d.ts +0 -16
- package/lib/devices/TestDevice.d.ts.map +0 -1
- package/lib/devices/TestDevice.js +0 -36
- package/lib/devices/TestDevice.js.map +0 -1
- package/lib/fb-stubs/constants.d.ts +0 -13
- package/lib/fb-stubs/constants.d.ts.map +0 -1
- package/lib/fb-stubs/constants.js +0 -14
- package/lib/fb-stubs/constants.js.map +0 -1
- package/lib/flipperLibImplementation/downloadFile.d.ts +0 -12
- package/lib/flipperLibImplementation/downloadFile.d.ts.map +0 -1
- package/lib/flipperLibImplementation/downloadFile.js +0 -49
- package/lib/flipperLibImplementation/downloadFile.js.map +0 -1
- package/lib/flipperLibImplementation/index.d.ts +0 -15
- package/lib/flipperLibImplementation/index.d.ts.map +0 -1
- package/lib/flipperLibImplementation/index.js +0 -72
- package/lib/flipperLibImplementation/index.js.map +0 -1
- package/lib/globalObject.d.ts +0 -24
- package/lib/globalObject.d.ts.map +0 -1
- package/lib/globalObject.js +0 -18
- package/lib/globalObject.js.map +0 -1
- package/lib/index.d.ts +0 -19
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -46
- package/lib/index.js.map +0 -1
- package/lib/plugins.d.ts +0 -39
- package/lib/plugins.d.ts.map +0 -1
- package/lib/plugins.js +0 -189
- package/lib/plugins.js.map +0 -1
- package/lib/utils/createServerAddOnControls.d.ts +0 -11
- package/lib/utils/createServerAddOnControls.d.ts.map +0 -1
- package/lib/utils/createServerAddOnControls.js +0 -69
- package/lib/utils/createServerAddOnControls.js.map +0 -1
- package/lib/utils/isPluginCompatible.d.ts +0 -12
- package/lib/utils/isPluginCompatible.d.ts.map +0 -1
- package/lib/utils/isPluginCompatible.js +0 -26
- package/lib/utils/isPluginCompatible.js.map +0 -1
- package/lib/utils/isPluginVersionMoreRecent.d.ts +0 -12
- package/lib/utils/isPluginVersionMoreRecent.d.ts.map +0 -1
- package/lib/utils/isPluginVersionMoreRecent.js +0 -39
- package/lib/utils/isPluginVersionMoreRecent.js.map +0 -1
- package/lib/utils/isProduction.d.ts +0 -10
- package/lib/utils/isProduction.d.ts.map +0 -1
- package/lib/utils/isProduction.js +0 -16
- package/lib/utils/isProduction.js.map +0 -1
- package/lib/utils/pluginKey.d.ts +0 -13
- package/lib/utils/pluginKey.d.ts.map +0 -1
- package/lib/utils/pluginKey.js +0 -27
- package/lib/utils/pluginKey.js.map +0 -1
@@ -1,36 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
/**
|
3
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
4
|
-
*
|
5
|
-
* This source code is licensed under the MIT license found in the
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
7
|
-
*
|
8
|
-
* @format
|
9
|
-
*/
|
10
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
11
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
12
|
-
};
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
14
|
-
exports.TestDevice = void 0;
|
15
|
-
const BaseDevice_1 = __importDefault(require("./BaseDevice"));
|
16
|
-
const RenderHost_1 = require("../RenderHost");
|
17
|
-
class TestDevice extends BaseDevice_1.default {
|
18
|
-
constructor(serial, deviceType, title, os, specs) {
|
19
|
-
super((0, RenderHost_1.getRenderHostInstance)().flipperServer, {
|
20
|
-
serial,
|
21
|
-
deviceType,
|
22
|
-
title,
|
23
|
-
os,
|
24
|
-
specs,
|
25
|
-
features: {
|
26
|
-
screenCaptureAvailable: false,
|
27
|
-
screenshotAvailable: false,
|
28
|
-
},
|
29
|
-
});
|
30
|
-
}
|
31
|
-
async startLogging() {
|
32
|
-
// noop
|
33
|
-
}
|
34
|
-
}
|
35
|
-
exports.TestDevice = TestDevice;
|
36
|
-
//# sourceMappingURL=TestDevice.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TestDevice.js","sourceRoot":"","sources":["../../src/devices/TestDevice.tsx"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;;;;AAIH,8DAAsC;AACtC,8CAAoD;AAEpD,MAAa,UAAW,SAAQ,oBAAU;IACxC,YACE,MAAc,EACd,UAAsB,EACtB,KAAa,EACb,EAAY,EACZ,KAAoB;QAEpB,KAAK,CAAC,IAAA,kCAAqB,GAAE,CAAC,aAAa,EAAE;YAC3C,MAAM;YACN,UAAU;YACV,KAAK;YACL,EAAE;YACF,KAAK;YACL,QAAQ,EAAE;gBACR,sBAAsB,EAAE,KAAK;gBAC7B,mBAAmB,EAAE,KAAK;aAC3B;SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,YAAY;QAChB,OAAO;IACT,CAAC;CACF;AAxBD,gCAwBC"}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
3
|
-
*
|
4
|
-
* This source code is licensed under the MIT license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*
|
7
|
-
* @format
|
8
|
-
*/
|
9
|
-
declare const _default: Readonly<{
|
10
|
-
IS_PUBLIC_BUILD: true;
|
11
|
-
}>;
|
12
|
-
export default _default;
|
13
|
-
//# sourceMappingURL=constants.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/fb-stubs/constants.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;;;AAEH,wBAEG"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
/**
|
3
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
4
|
-
*
|
5
|
-
* This source code is licensed under the MIT license found in the
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
7
|
-
*
|
8
|
-
* @format
|
9
|
-
*/
|
10
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
11
|
-
exports.default = Object.freeze({
|
12
|
-
IS_PUBLIC_BUILD: true,
|
13
|
-
});
|
14
|
-
//# sourceMappingURL=constants.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/fb-stubs/constants.tsx"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;AAEH,kBAAe,MAAM,CAAC,MAAM,CAAC;IAC3B,eAAe,EAAE,IAAI;CACtB,CAAC,CAAC"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
3
|
-
*
|
4
|
-
* This source code is licensed under the MIT license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*
|
7
|
-
* @format
|
8
|
-
*/
|
9
|
-
import { FlipperLib } from 'flipper-plugin-core';
|
10
|
-
import { RenderHost } from '../RenderHost';
|
11
|
-
export declare const downloadFileFactory: (renderHost: RenderHost) => FlipperLib['remoteServerContext']['downloadFile'];
|
12
|
-
//# sourceMappingURL=downloadFile.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"downloadFile.d.ts","sourceRoot":"","sources":["../../src/flipperLibImplementation/downloadFile.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAC,UAAU,EAAuB,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzC,eAAO,MAAM,mBAAmB,eACjB,UAAU,KAAG,UAAU,CAAC,qBAAqB,CAAC,CAAC,cAAc,CAyDzE,CAAC"}
|
@@ -1,49 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
/**
|
3
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
4
|
-
*
|
5
|
-
* This source code is licensed under the MIT license found in the
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
7
|
-
*
|
8
|
-
* @format
|
9
|
-
*/
|
10
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
11
|
-
exports.downloadFileFactory = void 0;
|
12
|
-
const flipper_common_1 = require("flipper-common");
|
13
|
-
const downloadFileFactory = (renderHost) => async (url, dest, { onProgressUpdate, ...options } = {}) => {
|
14
|
-
const downloadDescriptor = (await renderHost.flipperServer.exec('download-file-start', url, dest, options));
|
15
|
-
let onProgressUpdateWrapped;
|
16
|
-
const completed = new Promise((resolve, reject) => {
|
17
|
-
onProgressUpdateWrapped = (progressUpdate) => {
|
18
|
-
if (progressUpdate.id === downloadDescriptor.id) {
|
19
|
-
const { status } = progressUpdate;
|
20
|
-
switch (status) {
|
21
|
-
case 'downloading': {
|
22
|
-
onProgressUpdate === null || onProgressUpdate === void 0 ? void 0 : onProgressUpdate(progressUpdate);
|
23
|
-
break;
|
24
|
-
}
|
25
|
-
case 'success': {
|
26
|
-
resolve(progressUpdate.downloaded);
|
27
|
-
break;
|
28
|
-
}
|
29
|
-
case 'error': {
|
30
|
-
reject(new Error(`File download failed. Last message: ${JSON.stringify(progressUpdate)}`));
|
31
|
-
break;
|
32
|
-
}
|
33
|
-
default: {
|
34
|
-
(0, flipper_common_1.assertNever)(status);
|
35
|
-
}
|
36
|
-
}
|
37
|
-
}
|
38
|
-
};
|
39
|
-
renderHost.flipperServer.on('download-file-update', onProgressUpdateWrapped);
|
40
|
-
});
|
41
|
-
// eslint-disable-next-line promise/catch-or-return
|
42
|
-
completed.finally(() => {
|
43
|
-
renderHost.flipperServer.off('download-file-update', onProgressUpdateWrapped);
|
44
|
-
});
|
45
|
-
downloadDescriptor.completed = completed;
|
46
|
-
return downloadDescriptor;
|
47
|
-
};
|
48
|
-
exports.downloadFileFactory = downloadFileFactory;
|
49
|
-
//# sourceMappingURL=downloadFile.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"downloadFile.js","sourceRoot":"","sources":["../../src/flipperLibImplementation/downloadFile.tsx"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEH,mDAA+D;AAIxD,MAAM,mBAAmB,GAC9B,CAAC,UAAsB,EAAqD,EAAE,CAC9E,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAC,gBAAgB,EAAE,GAAG,OAAO,EAAC,GAAG,EAAE,EAAE,EAAE;IACvD,MAAM,kBAAkB,GAAG,CAAC,MAAM,UAAU,CAAC,aAAa,CAAC,IAAI,CAC7D,qBAAqB,EACrB,GAAG,EACH,IAAI,EACJ,OAAO,CAER,CAAyB,CAAC;IAE3B,IAAI,uBAAqE,CAAC;IAC1E,MAAM,SAAS,GAAG,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACxD,uBAAuB,GAAG,CAAC,cAAkC,EAAE,EAAE;YAC/D,IAAI,cAAc,CAAC,EAAE,KAAK,kBAAkB,CAAC,EAAE,EAAE;gBAC/C,MAAM,EAAC,MAAM,EAAC,GAAG,cAAc,CAAC;gBAChC,QAAQ,MAAM,EAAE;oBACd,KAAK,aAAa,CAAC,CAAC;wBAClB,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAG,cAAc,CAAC,CAAC;wBACnC,MAAM;qBACP;oBACD,KAAK,SAAS,CAAC,CAAC;wBACd,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;wBACnC,MAAM;qBACP;oBACD,KAAK,OAAO,CAAC,CAAC;wBACZ,MAAM,CACJ,IAAI,KAAK,CACP,uCAAuC,IAAI,CAAC,SAAS,CACnD,cAAc,CACf,EAAE,CACJ,CACF,CAAC;wBACF,MAAM;qBACP;oBACD,OAAO,CAAC,CAAC;wBACP,IAAA,4BAAW,EAAC,MAAM,CAAC,CAAC;qBACrB;iBACF;aACF;QACH,CAAC,CAAC;QACF,UAAU,CAAC,aAAa,CAAC,EAAE,CACzB,sBAAsB,EACtB,uBAAuB,CACxB,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,mDAAmD;IACnD,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE;QACrB,UAAU,CAAC,aAAa,CAAC,GAAG,CAC1B,sBAAsB,EACtB,uBAAuB,CACxB,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,kBAAkB,CAAC,SAAS,GAAG,SAAS,CAAC;IAEzC,OAAO,kBAAkB,CAAC;AAC5B,CAAC,CAAC;AA1DS,QAAA,mBAAmB,uBA0D5B"}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
3
|
-
*
|
4
|
-
* This source code is licensed under the MIT license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*
|
7
|
-
* @format
|
8
|
-
*/
|
9
|
-
import { FlipperLib } from 'flipper-plugin-core';
|
10
|
-
import { Logger } from 'flipper-common';
|
11
|
-
import { RenderHost } from '../RenderHost';
|
12
|
-
export declare function baseFlipperLibImplementation(renderHost: RenderHost, logger: Logger): Omit<FlipperLib, 'enableMenuEntries' | 'selectPlugin' | 'showNotification' | 'createPaste' | 'intern' | 'settings'> & {
|
13
|
-
intern: Omit<FlipperLib['intern'], 'currentUser' | 'isConnected'>;
|
14
|
-
};
|
15
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/flipperLibImplementation/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAsB,UAAU,EAAC,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAIL,MAAM,EAGP,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAIzC,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,GACb,IAAI,CACL,UAAU,EACR,mBAAmB,GACnB,cAAc,GACd,kBAAkB,GAClB,aAAa,GACb,QAAQ,GACR,UAAU,CACb,GAAG;IACF,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,aAAa,GAAG,aAAa,CAAC,CAAC;CACnE,CA6FA"}
|
@@ -1,72 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
/**
|
3
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
4
|
-
*
|
5
|
-
* This source code is licensed under the MIT license found in the
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
7
|
-
*
|
8
|
-
* @format
|
9
|
-
*/
|
10
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
11
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
12
|
-
};
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
14
|
-
exports.baseFlipperLibImplementation = void 0;
|
15
|
-
const flipper_common_1 = require("flipper-common");
|
16
|
-
const constants_1 = __importDefault(require("../fb-stubs/constants"));
|
17
|
-
const downloadFile_1 = require("./downloadFile");
|
18
|
-
const js_base64_1 = require("js-base64");
|
19
|
-
function baseFlipperLibImplementation(renderHost, logger) {
|
20
|
-
return {
|
21
|
-
isFB: !constants_1.default.IS_PUBLIC_BUILD,
|
22
|
-
logger,
|
23
|
-
GK: renderHost.GK,
|
24
|
-
writeTextToClipboard: renderHost.writeTextToClipboard,
|
25
|
-
openLink: renderHost.openLink,
|
26
|
-
importFile: renderHost.importFile,
|
27
|
-
exportFile: renderHost.exportFile,
|
28
|
-
exportFileBinary: renderHost.exportFileBinary,
|
29
|
-
paths: {
|
30
|
-
appPath: renderHost.serverConfig.paths.appPath,
|
31
|
-
homePath: renderHost.serverConfig.paths.homePath,
|
32
|
-
staticPath: renderHost.serverConfig.paths.staticPath,
|
33
|
-
tempPath: renderHost.serverConfig.paths.tempPath,
|
34
|
-
},
|
35
|
-
environmentInfo: {
|
36
|
-
os: renderHost.serverConfig.environmentInfo.os,
|
37
|
-
env: renderHost.serverConfig.env,
|
38
|
-
isHeadlessBuild: renderHost.serverConfig.environmentInfo.isHeadlessBuild,
|
39
|
-
},
|
40
|
-
intern: {
|
41
|
-
graphGet: (...args) => renderHost.flipperServer.exec('intern-graph-get', ...args),
|
42
|
-
graphPost: (...args) => renderHost.flipperServer.exec('intern-graph-post', ...args),
|
43
|
-
isLoggedIn: () => renderHost.flipperServer.exec('is-logged-in'),
|
44
|
-
},
|
45
|
-
remoteServerContext: {
|
46
|
-
childProcess: {
|
47
|
-
exec: async (command, options) => renderHost.flipperServer.exec('node-api-exec', command, options),
|
48
|
-
},
|
49
|
-
fs: {
|
50
|
-
access: async (path, mode) => renderHost.flipperServer.exec('node-api-fs-access', path, mode),
|
51
|
-
pathExists: async (path, mode) => renderHost.flipperServer.exec('node-api-fs-pathExists', path, mode),
|
52
|
-
unlink: async (path) => renderHost.flipperServer.exec('node-api-fs-unlink', path),
|
53
|
-
mkdir: (async (path, options) => renderHost.flipperServer.exec('node-api-fs-mkdir', path, options)),
|
54
|
-
rm: async (path, options) => renderHost.flipperServer.exec('node-api-fs-rm', path, options),
|
55
|
-
copyFile: async (src, dest, flags) => renderHost.flipperServer.exec('node-api-fs-copyFile', src, dest, flags),
|
56
|
-
constants: flipper_common_1.fsConstants,
|
57
|
-
stat: async (path) => renderHost.flipperServer.exec('node-api-fs-stat', path),
|
58
|
-
readlink: async (path) => renderHost.flipperServer.exec('node-api-fs-readlink', path),
|
59
|
-
readFile: (path, options) => renderHost.flipperServer.exec('node-api-fs-readfile', path, options),
|
60
|
-
readFileBinary: async (path) => js_base64_1.Base64.toUint8Array(await renderHost.flipperServer.exec('node-api-fs-readfile-binary', path)),
|
61
|
-
writeFile: (path, contents, options) => renderHost.flipperServer.exec('node-api-fs-writefile', path, contents, options),
|
62
|
-
writeFileBinary: async (path, contents) => {
|
63
|
-
const base64contents = js_base64_1.Base64.fromUint8Array(contents);
|
64
|
-
return await renderHost.flipperServer.exec('node-api-fs-writefile-binary', path, base64contents);
|
65
|
-
},
|
66
|
-
},
|
67
|
-
downloadFile: (0, downloadFile_1.downloadFileFactory)(renderHost),
|
68
|
-
},
|
69
|
-
};
|
70
|
-
}
|
71
|
-
exports.baseFlipperLibImplementation = baseFlipperLibImplementation;
|
72
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/flipperLibImplementation/index.tsx"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;;;;AAGH,mDAOwB;AACxB,sEAA8C;AAE9C,iDAAmD;AACnD,yCAAiC;AAEjC,SAAgB,4BAA4B,CAC1C,UAAsB,EACtB,MAAc;IAYd,OAAO;QACL,IAAI,EAAE,CAAC,mBAAS,CAAC,eAAe;QAChC,MAAM;QACN,EAAE,EAAE,UAAU,CAAC,EAAE;QACjB,oBAAoB,EAAE,UAAU,CAAC,oBAAoB;QACrD,QAAQ,EAAE,UAAU,CAAC,QAAQ;QAC7B,UAAU,EAAE,UAAU,CAAC,UAAU;QACjC,UAAU,EAAE,UAAU,CAAC,UAAU;QACjC,gBAAgB,EAAE,UAAU,CAAC,gBAAgB;QAC7C,KAAK,EAAE;YACL,OAAO,EAAE,UAAU,CAAC,YAAY,CAAC,KAAK,CAAC,OAAO;YAC9C,QAAQ,EAAE,UAAU,CAAC,YAAY,CAAC,KAA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,EACR,OAAO,CACR;gBACH,eAAe,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;oBACxC,MAAM,cAAc,GAAG,kBAAM,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;oBACvD,OAAO,MAAM,UAAU,CAAC,aAAa,CAAC,IAAI,CACxC,8BAA8B,EAC9B,IAAI,EACJ,cAAc,CACf,CAAC;gBACJ,CAAC;aACF;YACD,YAAY,EAAE,IAAA,kCAAmB,EAAC,UAAU,CAAC;SAC9C;KACF,CAAC;AACJ,CAAC;AA1GD,oEA0GC"}
|
package/lib/globalObject.d.ts
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
3
|
-
*
|
4
|
-
* This source code is licensed under the MIT license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*
|
7
|
-
* @format
|
8
|
-
*/
|
9
|
-
export interface GlobalObject {
|
10
|
-
React: any;
|
11
|
-
ReactDOM: any;
|
12
|
-
ReactDOMClient: any;
|
13
|
-
ReactIs: any;
|
14
|
-
Flipper: any;
|
15
|
-
FlipperPlugin: any;
|
16
|
-
Immer: any;
|
17
|
-
antd: any;
|
18
|
-
emotion_styled: any;
|
19
|
-
emotion_css: any;
|
20
|
-
antdesign_icons: any;
|
21
|
-
ReactJsxRuntime: any;
|
22
|
-
}
|
23
|
-
export declare const setGlobalObject: (replacements: GlobalObject) => void;
|
24
|
-
//# sourceMappingURL=globalObject.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"globalObject.d.ts","sourceRoot":"","sources":["../src/globalObject.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,GAAG,CAAC;IACX,QAAQ,EAAE,GAAG,CAAC;IACd,cAAc,EAAE,GAAG,CAAC;IACpB,OAAO,EAAE,GAAG,CAAC;IACb,OAAO,EAAE,GAAG,CAAC;IACb,aAAa,EAAE,GAAG,CAAC;IACnB,KAAK,EAAE,GAAG,CAAC;IACX,IAAI,EAAE,GAAG,CAAC;IACV,cAAc,EAAE,GAAG,CAAC;IACpB,WAAW,EAAE,GAAG,CAAC;IACjB,eAAe,EAAE,GAAG,CAAC;IACrB,eAAe,EAAE,GAAG,CAAC;CACtB;AAiBD,eAAO,MAAM,eAAe,iBAAkB,YAAY,SAIzD,CAAC"}
|
package/lib/globalObject.js
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
/**
|
3
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
4
|
-
*
|
5
|
-
* This source code is licensed under the MIT license found in the
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
7
|
-
*
|
8
|
-
* @format
|
9
|
-
*/
|
10
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
11
|
-
exports.setGlobalObject = void 0;
|
12
|
-
const setGlobalObject = (replacements) => {
|
13
|
-
for (const [name, module] of Object.entries(replacements)) {
|
14
|
-
globalThis[name] = module;
|
15
|
-
}
|
16
|
-
};
|
17
|
-
exports.setGlobalObject = setGlobalObject;
|
18
|
-
//# sourceMappingURL=globalObject.js.map
|
package/lib/globalObject.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"globalObject.js","sourceRoot":"","sources":["../src/globalObject.tsx"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAiCI,MAAM,eAAe,GAAG,CAAC,YAA0B,EAAE,EAAE;IAC5D,KAAK,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QACzD,UAAU,CAAC,IAA0B,CAAC,GAAG,MAAM,CAAC;KACjD;AACH,CAAC,CAAC;AAJW,QAAA,eAAe,mBAI1B"}
|
package/lib/index.d.ts
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
3
|
-
*
|
4
|
-
* This source code is licensed under the MIT license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*
|
7
|
-
* @format
|
8
|
-
*/
|
9
|
-
export { RenderHost, getRenderHostInstance } from './RenderHost';
|
10
|
-
export { default as AbstractClient, ClientConnection, Params, RequestMetadata, } from './AbstractClient';
|
11
|
-
export { default as ArchivedDevice } from './devices/ArchivedDevice';
|
12
|
-
export { default as BaseDevice, DeviceExport } from './devices/BaseDevice';
|
13
|
-
export { TestDevice } from './devices/TestDevice';
|
14
|
-
export * from './globalObject';
|
15
|
-
export * from './plugins';
|
16
|
-
export { getPluginKey } from './utils/pluginKey';
|
17
|
-
export * from './flipperLibImplementation';
|
18
|
-
export { default as frontendCoreConstants } from './fb-stubs/constants';
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAC,UAAU,EAAE,qBAAqB,EAAC,MAAM,cAAc,CAAC;AAC/D,OAAO,EACL,OAAO,IAAI,cAAc,EACzB,gBAAgB,EAChB,MAAM,EACN,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAC,OAAO,IAAI,UAAU,EAAE,YAAY,EAAC,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAChD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,qBAAqB,EAAC,MAAM,sBAAsB,CAAC"}
|
package/lib/index.js
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
/**
|
3
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
4
|
-
*
|
5
|
-
* This source code is licensed under the MIT license found in the
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
7
|
-
*
|
8
|
-
* @format
|
9
|
-
*/
|
10
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
11
|
-
if (k2 === undefined) k2 = k;
|
12
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
13
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
14
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
15
|
-
}
|
16
|
-
Object.defineProperty(o, k2, desc);
|
17
|
-
}) : (function(o, m, k, k2) {
|
18
|
-
if (k2 === undefined) k2 = k;
|
19
|
-
o[k2] = m[k];
|
20
|
-
}));
|
21
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
22
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
23
|
-
};
|
24
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
25
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
26
|
-
};
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
28
|
-
exports.frontendCoreConstants = exports.getPluginKey = exports.TestDevice = exports.BaseDevice = exports.ArchivedDevice = exports.AbstractClient = exports.getRenderHostInstance = void 0;
|
29
|
-
var RenderHost_1 = require("./RenderHost");
|
30
|
-
Object.defineProperty(exports, "getRenderHostInstance", { enumerable: true, get: function () { return RenderHost_1.getRenderHostInstance; } });
|
31
|
-
var AbstractClient_1 = require("./AbstractClient");
|
32
|
-
Object.defineProperty(exports, "AbstractClient", { enumerable: true, get: function () { return __importDefault(AbstractClient_1).default; } });
|
33
|
-
var ArchivedDevice_1 = require("./devices/ArchivedDevice");
|
34
|
-
Object.defineProperty(exports, "ArchivedDevice", { enumerable: true, get: function () { return __importDefault(ArchivedDevice_1).default; } });
|
35
|
-
var BaseDevice_1 = require("./devices/BaseDevice");
|
36
|
-
Object.defineProperty(exports, "BaseDevice", { enumerable: true, get: function () { return __importDefault(BaseDevice_1).default; } });
|
37
|
-
var TestDevice_1 = require("./devices/TestDevice");
|
38
|
-
Object.defineProperty(exports, "TestDevice", { enumerable: true, get: function () { return TestDevice_1.TestDevice; } });
|
39
|
-
__exportStar(require("./globalObject"), exports);
|
40
|
-
__exportStar(require("./plugins"), exports);
|
41
|
-
var pluginKey_1 = require("./utils/pluginKey");
|
42
|
-
Object.defineProperty(exports, "getPluginKey", { enumerable: true, get: function () { return pluginKey_1.getPluginKey; } });
|
43
|
-
__exportStar(require("./flipperLibImplementation"), exports);
|
44
|
-
var constants_1 = require("./fb-stubs/constants");
|
45
|
-
Object.defineProperty(exports, "frontendCoreConstants", { enumerable: true, get: function () { return __importDefault(constants_1).default; } });
|
46
|
-
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;;;;;;;;;;;;;;;;;;AAEH,2CAA+D;AAA3C,mHAAA,qBAAqB,OAAA;AACzC,mDAK0B;AAJxB,iIAAA,OAAO,OAAkB;AAK3B,2DAAmE;AAA3D,iIAAA,OAAO,OAAkB;AACjC,mDAAyE;AAAjE,yHAAA,OAAO,OAAc;AAC7B,mDAAgD;AAAxC,wGAAA,UAAU,OAAA;AAClB,iDAA+B;AAC/B,4CAA0B;AAC1B,+CAA+C;AAAvC,yGAAA,YAAY,OAAA;AACpB,6DAA2C;AAC3C,kDAAsE;AAA9D,mIAAA,OAAO,OAAyB"}
|
package/lib/plugins.d.ts
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
3
|
-
*
|
4
|
-
* This source code is licensed under the MIT license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*
|
7
|
-
* @format
|
8
|
-
*/
|
9
|
-
import { InstalledPluginDetails } from 'flipper-common';
|
10
|
-
import { ActivatablePluginDetails, ConcretePluginDetails } from 'flipper-common';
|
11
|
-
import { _SandyPluginDefinition } from 'flipper-plugin-core';
|
12
|
-
export declare abstract class AbstractPluginInitializer {
|
13
|
-
protected gatekeepedPlugins: Array<ActivatablePluginDetails>;
|
14
|
-
protected disabledPlugins: Array<ActivatablePluginDetails>;
|
15
|
-
protected failedPlugins: Array<[ActivatablePluginDetails, string]>;
|
16
|
-
protected loadedPlugins: Array<InstalledPluginDetails>;
|
17
|
-
protected _initialPlugins: _SandyPluginDefinition[];
|
18
|
-
init(): Promise<void>;
|
19
|
-
get initialPlugins(): ReadonlyArray<_SandyPluginDefinition>;
|
20
|
-
get requirePlugin(): (failedPlugins: [InstalledPluginDetails, string][]) => (pluginDetails: InstalledPluginDetails) => Promise<_SandyPluginDefinition | null>;
|
21
|
-
protected _init(): Promise<_SandyPluginDefinition[]>;
|
22
|
-
protected abstract getFlipperVersion(): Promise<string>;
|
23
|
-
protected abstract requirePluginImpl(pluginDetails: ActivatablePluginDetails): Promise<_SandyPluginDefinition>;
|
24
|
-
protected loadMarketplacePlugins(): void;
|
25
|
-
protected loadUninstalledPluginNames(): Set<string>;
|
26
|
-
protected loadAllLocalVersions(uninstalledPluginNames: Set<string>): Promise<InstalledPluginDetails[]>;
|
27
|
-
protected filterAllLocalVersions(allLocalVersions: InstalledPluginDetails[]): Promise<ActivatablePluginDetails[]>;
|
28
|
-
protected loadPlugins(pluginsToLoad: ActivatablePluginDetails[]): Promise<_SandyPluginDefinition[]>;
|
29
|
-
}
|
30
|
-
export declare function isDevicePluginDefinition(definition: _SandyPluginDefinition): boolean;
|
31
|
-
export declare function reportVersion(pluginDetails: ActivatablePluginDetails): InstalledPluginDetails;
|
32
|
-
export declare function getLatestCompatibleVersionOfEachPlugin<T extends ConcretePluginDetails>(plugins: T[], flipperVersion: string): T[];
|
33
|
-
export declare function getDynamicPlugins(): Promise<InstalledPluginDetails[]>;
|
34
|
-
export declare const checkGK: (gatekeepedPlugins: Array<ActivatablePluginDetails>) => (plugin: ActivatablePluginDetails) => boolean;
|
35
|
-
export declare const checkDisabled: (disabledPlugins: Array<ActivatablePluginDetails>) => (plugin: ActivatablePluginDetails) => boolean;
|
36
|
-
export declare const createRequirePluginFunction: (requirePluginImpl: (pluginDetails: ActivatablePluginDetails) => Promise<_SandyPluginDefinition>) => (failedPlugins: Array<[ActivatablePluginDetails, string]>) => (pluginDetails: ActivatablePluginDetails) => Promise<_SandyPluginDefinition | null>;
|
37
|
-
export declare const wrapRequirePlugin: (requirePluginImpl: (pluginDetails: ActivatablePluginDetails) => Promise<_SandyPluginDefinition>) => (pluginDetails: ActivatablePluginDetails) => Promise<_SandyPluginDefinition>;
|
38
|
-
export declare const isSandyPlugin: (pluginDetails: ActivatablePluginDetails) => boolean;
|
39
|
-
//# sourceMappingURL=plugins.d.ts.map
|
package/lib/plugins.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../src/plugins.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,sBAAsB,EAGvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAC,wBAAwB,EAAE,qBAAqB,EAAC,MAAM,gBAAgB,CAAC;AAE/E,OAAO,EAAC,sBAAsB,EAAC,MAAM,qBAAqB,CAAC;AAM3D,8BAAsB,yBAAyB;IAC7C,SAAS,CAAC,iBAAiB,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAM;IAClE,SAAS,CAAC,eAAe,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAM;IAChE,SAAS,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC,wBAAwB,EAAE,MAAM,CAAC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B,KAAG,OA0B5C,CAAC;AAEF,eAAO,MAAM,2BAA2B,sCAGnB,wBAAwB,KACpC,QAAQ,sBAAsB,CAAC,qBAEtB,MAAM,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC,qBAEtC,wBAAwB,KACtC,QAAQ,sBAAsB,GAAG,IAAI,CAoBzC,CAAC;AAEJ,eAAO,MAAM,iBAAiB,sCAGT,wBAAwB,KACpC,QAAQ,sBAAsB,CAAC,qBAGrB,wBAAwB,KACtC,QAAQ,sBAAsB,CAahC,CAAC;AAEJ,eAAO,MAAM,aAAa,kBAAmB,wBAAwB,YAEpE,CAAC"}
|
package/lib/plugins.js
DELETED
@@ -1,189 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
/**
|
3
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
4
|
-
*
|
5
|
-
* This source code is licensed under the MIT license found in the
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
7
|
-
*
|
8
|
-
* @format
|
9
|
-
*/
|
10
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
11
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
12
|
-
};
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
14
|
-
exports.isSandyPlugin = exports.wrapRequirePlugin = exports.createRequirePluginFunction = exports.checkDisabled = exports.checkGK = exports.getDynamicPlugins = exports.getLatestCompatibleVersionOfEachPlugin = exports.reportVersion = exports.isDevicePluginDefinition = exports.AbstractPluginInitializer = void 0;
|
15
|
-
const flipper_common_1 = require("flipper-common");
|
16
|
-
const flipper_common_2 = require("flipper-common");
|
17
|
-
const isPluginCompatible_1 = __importDefault(require("./utils/isPluginCompatible"));
|
18
|
-
const isPluginVersionMoreRecent_1 = __importDefault(require("./utils/isPluginVersionMoreRecent"));
|
19
|
-
const RenderHost_1 = require("./RenderHost");
|
20
|
-
const p_map_1 = __importDefault(require("p-map"));
|
21
|
-
class AbstractPluginInitializer {
|
22
|
-
constructor() {
|
23
|
-
this.gatekeepedPlugins = [];
|
24
|
-
this.disabledPlugins = [];
|
25
|
-
this.failedPlugins = [];
|
26
|
-
this.loadedPlugins = [];
|
27
|
-
this._initialPlugins = [];
|
28
|
-
}
|
29
|
-
async init() {
|
30
|
-
this._initialPlugins = await this._init();
|
31
|
-
}
|
32
|
-
get initialPlugins() {
|
33
|
-
return this._initialPlugins;
|
34
|
-
}
|
35
|
-
get requirePlugin() {
|
36
|
-
return (0, exports.createRequirePluginFunction)(this.requirePluginImpl.bind(this));
|
37
|
-
}
|
38
|
-
async _init() {
|
39
|
-
this.loadMarketplacePlugins();
|
40
|
-
const uninstalledPluginNames = this.loadUninstalledPluginNames();
|
41
|
-
const allLocalVersions = await this.loadAllLocalVersions(uninstalledPluginNames);
|
42
|
-
const pluginsToLoad = await this.filterAllLocalVersions(allLocalVersions);
|
43
|
-
const initialPlugins = await this.loadPlugins(pluginsToLoad);
|
44
|
-
return initialPlugins;
|
45
|
-
}
|
46
|
-
loadMarketplacePlugins() { }
|
47
|
-
loadUninstalledPluginNames() {
|
48
|
-
return new Set();
|
49
|
-
}
|
50
|
-
async loadAllLocalVersions(uninstalledPluginNames) {
|
51
|
-
const allLocalVersions = [...(await getDynamicPlugins())].filter((p) => !uninstalledPluginNames.has(p.name));
|
52
|
-
return allLocalVersions;
|
53
|
-
}
|
54
|
-
async filterAllLocalVersions(allLocalVersions) {
|
55
|
-
const flipperVersion = await this.getFlipperVersion();
|
56
|
-
const loadedPlugins = getLatestCompatibleVersionOfEachPlugin(allLocalVersions, flipperVersion);
|
57
|
-
this.loadedPlugins = loadedPlugins;
|
58
|
-
const pluginsToLoad = loadedPlugins
|
59
|
-
.map(reportVersion)
|
60
|
-
.filter((0, exports.checkDisabled)(this.disabledPlugins))
|
61
|
-
.filter((0, exports.checkGK)(this.gatekeepedPlugins));
|
62
|
-
return pluginsToLoad;
|
63
|
-
}
|
64
|
-
async loadPlugins(pluginsToLoad) {
|
65
|
-
const loader = this.requirePlugin(this.failedPlugins);
|
66
|
-
const initialPlugins = (await (0, p_map_1.default)(pluginsToLoad, loader)).filter(flipper_common_1.notNull);
|
67
|
-
return initialPlugins;
|
68
|
-
}
|
69
|
-
}
|
70
|
-
exports.AbstractPluginInitializer = AbstractPluginInitializer;
|
71
|
-
function isDevicePluginDefinition(definition) {
|
72
|
-
return definition.isDevicePlugin;
|
73
|
-
}
|
74
|
-
exports.isDevicePluginDefinition = isDevicePluginDefinition;
|
75
|
-
function reportVersion(pluginDetails) {
|
76
|
-
(0, flipper_common_2.reportUsage)('plugin:version', {
|
77
|
-
version: pluginDetails.version,
|
78
|
-
}, pluginDetails.id);
|
79
|
-
return pluginDetails;
|
80
|
-
}
|
81
|
-
exports.reportVersion = reportVersion;
|
82
|
-
function getLatestCompatibleVersionOfEachPlugin(plugins, flipperVersion) {
|
83
|
-
const latestCompatibleVersions = new Map();
|
84
|
-
for (const plugin of plugins) {
|
85
|
-
if ((0, isPluginCompatible_1.default)(plugin, flipperVersion)) {
|
86
|
-
const loadedVersion = latestCompatibleVersions.get(plugin.id);
|
87
|
-
if (!loadedVersion ||
|
88
|
-
(0, isPluginVersionMoreRecent_1.default)(plugin, loadedVersion, flipperVersion)) {
|
89
|
-
latestCompatibleVersions.set(plugin.id, plugin);
|
90
|
-
}
|
91
|
-
}
|
92
|
-
}
|
93
|
-
return Array.from(latestCompatibleVersions.values());
|
94
|
-
}
|
95
|
-
exports.getLatestCompatibleVersionOfEachPlugin = getLatestCompatibleVersionOfEachPlugin;
|
96
|
-
async function getDynamicPlugins() {
|
97
|
-
try {
|
98
|
-
return await (0, RenderHost_1.getRenderHostInstance)().flipperServer.exec('plugins-load-dynamic-plugins');
|
99
|
-
}
|
100
|
-
catch (e) {
|
101
|
-
console.error('Failed to load dynamic plugins', e);
|
102
|
-
return [];
|
103
|
-
}
|
104
|
-
}
|
105
|
-
exports.getDynamicPlugins = getDynamicPlugins;
|
106
|
-
const checkGK = (gatekeepedPlugins) => (plugin) => {
|
107
|
-
try {
|
108
|
-
if (!plugin.gatekeeper) {
|
109
|
-
return true;
|
110
|
-
}
|
111
|
-
const result = (0, RenderHost_1.getRenderHostInstance)().GK(plugin.gatekeeper);
|
112
|
-
if (!result) {
|
113
|
-
gatekeepedPlugins.push(plugin);
|
114
|
-
}
|
115
|
-
return result;
|
116
|
-
}
|
117
|
-
catch (err) {
|
118
|
-
console.error(`Failed to check GK for plugin ${plugin.id}`, err);
|
119
|
-
return false;
|
120
|
-
}
|
121
|
-
};
|
122
|
-
exports.checkGK = checkGK;
|
123
|
-
const checkDisabled = (disabledPlugins) => {
|
124
|
-
const config = (0, RenderHost_1.getRenderHostInstance)().serverConfig;
|
125
|
-
let enabledList = null;
|
126
|
-
let disabledList = new Set();
|
127
|
-
try {
|
128
|
-
if (config.env.FLIPPER_ENABLED_PLUGINS) {
|
129
|
-
enabledList = new Set(config.env.FLIPPER_ENABLED_PLUGINS.split(','));
|
130
|
-
}
|
131
|
-
disabledList = new Set(config.processConfig.disabledPlugins);
|
132
|
-
}
|
133
|
-
catch (e) {
|
134
|
-
console.error('Failed to compute enabled/disabled plugins', e);
|
135
|
-
}
|
136
|
-
return (plugin) => {
|
137
|
-
try {
|
138
|
-
if (disabledList.has(plugin.name)) {
|
139
|
-
disabledPlugins.push(plugin);
|
140
|
-
return false;
|
141
|
-
}
|
142
|
-
if (enabledList &&
|
143
|
-
!(enabledList.has(plugin.name) ||
|
144
|
-
enabledList.has(plugin.id) ||
|
145
|
-
enabledList.has(plugin.name.replace('flipper-plugin-', '')))) {
|
146
|
-
disabledPlugins.push(plugin);
|
147
|
-
return false;
|
148
|
-
}
|
149
|
-
return true;
|
150
|
-
}
|
151
|
-
catch (e) {
|
152
|
-
console.error(`Failed to check whether plugin ${plugin.id} is disabled`, e);
|
153
|
-
return false;
|
154
|
-
}
|
155
|
-
};
|
156
|
-
};
|
157
|
-
exports.checkDisabled = checkDisabled;
|
158
|
-
const createRequirePluginFunction = (requirePluginImpl) => (failedPlugins) => {
|
159
|
-
return async (pluginDetails) => {
|
160
|
-
try {
|
161
|
-
const requirePluginImplWrapped = (0, exports.wrapRequirePlugin)(requirePluginImpl);
|
162
|
-
const pluginDefinition = await requirePluginImplWrapped(pluginDetails);
|
163
|
-
if (pluginDefinition &&
|
164
|
-
isDevicePluginDefinition(pluginDefinition) &&
|
165
|
-
pluginDefinition.details.pluginType !== 'device') {
|
166
|
-
console.warn(`Package ${pluginDefinition.details.name} contains the device plugin "${pluginDefinition.title}" defined in a wrong format. Specify "pluginType" and "supportedDevices" properties and remove exported function "supportsDevice". See details at https://fbflipper.com/docs/extending/desktop-plugin-structure#creating-a-device-plugin.`);
|
167
|
-
}
|
168
|
-
return pluginDefinition;
|
169
|
-
}
|
170
|
-
catch (e) {
|
171
|
-
failedPlugins.push([pluginDetails, e.message]);
|
172
|
-
console.error(`Plugin ${pluginDetails.id} failed to load`, e);
|
173
|
-
return null;
|
174
|
-
}
|
175
|
-
};
|
176
|
-
};
|
177
|
-
exports.createRequirePluginFunction = createRequirePluginFunction;
|
178
|
-
const wrapRequirePlugin = (requirePluginImpl) => (pluginDetails) => {
|
179
|
-
(0, flipper_common_2.reportUsage)('plugin:load', {
|
180
|
-
version: pluginDetails.version,
|
181
|
-
}, pluginDetails.id);
|
182
|
-
return (0, flipper_common_1.tryCatchReportPluginFailuresAsync)(() => requirePluginImpl(pluginDetails), 'plugin:load', pluginDetails.id);
|
183
|
-
};
|
184
|
-
exports.wrapRequirePlugin = wrapRequirePlugin;
|
185
|
-
const isSandyPlugin = (pluginDetails) => {
|
186
|
-
return !!pluginDetails.flipperSDKVersion;
|
187
|
-
};
|
188
|
-
exports.isSandyPlugin = isSandyPlugin;
|
189
|
-
//# sourceMappingURL=plugins.js.map
|
package/lib/plugins.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../src/plugins.tsx"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;;;;AAEH,mDAIwB;AAExB,mDAA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tC,aAAa,EACb,aAAa,CAAC,EAAE,CACjB,CAAC;AACJ,CAAC,CAAC;AArBS,QAAA,iBAAiB,qBAqB1B;AAEG,MAAM,aAAa,GAAG,CAAC,aAAuC,EAAE,EAAE;IACvE,OAAO,CAAC,CAAC,aAAa,CAAC,iBAAiB,CAAC;AAC3C,CAAC,CAAC;AAFW,QAAA,aAAa,iBAExB"}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
3
|
-
*
|
4
|
-
* This source code is licensed under the MIT license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*
|
7
|
-
* @format
|
8
|
-
*/
|
9
|
-
import { FlipperServer, ServerAddOnControls } from 'flipper-common';
|
10
|
-
export declare const createServerAddOnControls: (flipperServer: FlipperServer) => ServerAddOnControls;
|
11
|
-
//# sourceMappingURL=createServerAddOnControls.d.ts.map
|