@amazon-devices/shopify__react-native-performance-lists-profiler 1.1.1758683737
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +7 -0
- package/README.kepler.md +331 -0
- package/README.md +7 -0
- package/ReactNativePerformanceListsProfiler.podspec +30 -0
- package/SystemBundles/1b881d5412b1fc3466fe9ebb1f1c33915d19056d122263f1ba0356a8c71c31ca.bundle +10666 -0
- package/SystemBundles/1b881d5412b1fc3466fe9ebb1f1c33915d19056d122263f1ba0356a8c71c31ca.map +1 -0
- package/SystemModules/amzn__shopify__react-native-performance-lists-profiler-1.modules.txt +26 -0
- package/SystemModules/amzn__shopify__react-native-performance-lists-profiler-1.private.modules.txt +96 -0
- package/SystemModules/keplerscript-system-bundle-config.json +7 -0
- package/THIRD_PARTY_NOTICES.txt +472 -0
- package/android/build.gradle +59 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/kotlin/com/shopify/reactnativeperformancelistsprofiler/BlankAreaView.kt +150 -0
- package/android/src/main/kotlin/com/shopify/reactnativeperformancelistsprofiler/FlashListPerformanceViewManager.kt +49 -0
- package/android/src/main/kotlin/com/shopify/reactnativeperformancelistsprofiler/FlatListPerformanceViewManager.kt +47 -0
- package/android/src/main/kotlin/com/shopify/reactnativeperformancelistsprofiler/ReactNativePerformanceListsProfilerPackage.kt +19 -0
- package/dist/FlashListPerformanceView.d.ts +14 -0
- package/dist/FlashListPerformanceView.d.ts.map +1 -0
- package/dist/FlashListPerformanceView.js +33 -0
- package/dist/FlashListPerformanceView.js.map +1 -0
- package/dist/FlashListPerformanceView.types.d.ts +21 -0
- package/dist/FlashListPerformanceView.types.d.ts.map +1 -0
- package/dist/FlashListPerformanceView.types.js +3 -0
- package/dist/FlashListPerformanceView.types.js.map +1 -0
- package/dist/FlashListPerformanceViewNativeComponent.d.ts +4 -0
- package/dist/FlashListPerformanceViewNativeComponent.d.ts.map +1 -0
- package/dist/FlashListPerformanceViewNativeComponent.js +7 -0
- package/dist/FlashListPerformanceViewNativeComponent.js.map +1 -0
- package/dist/FlashListPerformanceViewNativeComponent.kepler.d.ts +5 -0
- package/dist/FlashListPerformanceViewNativeComponent.kepler.d.ts.map +1 -0
- package/dist/FlashListPerformanceViewNativeComponent.kepler.js +35 -0
- package/dist/FlashListPerformanceViewNativeComponent.kepler.js.map +1 -0
- package/dist/FlatListPerformanceView.d.ts +15 -0
- package/dist/FlatListPerformanceView.d.ts.map +1 -0
- package/dist/FlatListPerformanceView.js +38 -0
- package/dist/FlatListPerformanceView.js.map +1 -0
- package/dist/FlatListPerformanceView.types.d.ts +19 -0
- package/dist/FlatListPerformanceView.types.d.ts.map +1 -0
- package/dist/FlatListPerformanceView.types.js +10 -0
- package/dist/FlatListPerformanceView.types.js.map +1 -0
- package/dist/FlatListPerformanceViewNativeComponent.d.ts +4 -0
- package/dist/FlatListPerformanceViewNativeComponent.d.ts.map +1 -0
- package/dist/FlatListPerformanceViewNativeComponent.js +7 -0
- package/dist/FlatListPerformanceViewNativeComponent.js.map +1 -0
- package/dist/FlatListPerformanceViewNativeComponent.kepler.d.ts +5 -0
- package/dist/FlatListPerformanceViewNativeComponent.kepler.d.ts.map +1 -0
- package/dist/FlatListPerformanceViewNativeComponent.kepler.js +35 -0
- package/dist/FlatListPerformanceViewNativeComponent.kepler.js.map +1 -0
- package/dist/ListsProfiler.d.ts +9 -0
- package/dist/ListsProfiler.d.ts.map +1 -0
- package/dist/ListsProfiler.js +54 -0
- package/dist/ListsProfiler.js.map +1 -0
- package/dist/ListsProfilerContext.d.ts +9 -0
- package/dist/ListsProfilerContext.d.ts.map +1 -0
- package/dist/ListsProfilerContext.js +11 -0
- package/dist/ListsProfilerContext.js.map +1 -0
- package/dist/ListsProfilerModule.d.ts +6 -0
- package/dist/ListsProfilerModule.d.ts.map +1 -0
- package/dist/ListsProfilerModule.js +14 -0
- package/dist/ListsProfilerModule.js.map +1 -0
- package/dist/ListsProfilerProps.d.ts +19 -0
- package/dist/ListsProfilerProps.d.ts.map +1 -0
- package/dist/ListsProfilerProps.js +3 -0
- package/dist/ListsProfilerProps.js.map +1 -0
- package/dist/__tests__/FlashListPerformanceView.test.d.ts +2 -0
- package/dist/__tests__/FlashListPerformanceView.test.d.ts.map +1 -0
- package/dist/__tests__/FlashListPerformanceView.test.js +53 -0
- package/dist/__tests__/FlashListPerformanceView.test.js.map +1 -0
- package/dist/__tests__/FlatListPerformanceView.test.d.ts +2 -0
- package/dist/__tests__/FlatListPerformanceView.test.d.ts.map +1 -0
- package/dist/__tests__/FlatListPerformanceView.test.js +59 -0
- package/dist/__tests__/FlatListPerformanceView.test.js.map +1 -0
- package/dist/__tests__/ListProfiler.test.d.ts +2 -0
- package/dist/__tests__/ListProfiler.test.d.ts.map +1 -0
- package/dist/__tests__/ListProfiler.test.js +53 -0
- package/dist/__tests__/ListProfiler.test.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/ios/ReactNativePerformanceListsProfiler.xcodeproj/project.pbxproj +3 -0
- package/ios/Sources/BlankAreaView.swift +111 -0
- package/ios/Sources/FlashListPerformanceViewManager.m +9 -0
- package/ios/Sources/FlashListPerformanceViewManager.swift +23 -0
- package/ios/Sources/FlatListPerformanceViewManager.m +9 -0
- package/ios/Sources/FlatListPerformanceViewManager.swift +18 -0
- package/ios/Sources/ReactNativePerfomanceListsProfilerUmbrella.h +8 -0
- package/ios/Tests/ReactNativePerformanceListsProfilerTests.swift +5 -0
- package/kepler-compatibility.json +8 -0
- package/kepler-transformed-package-info.json +3 -0
- package/package.json +1 -0
- package/src/FlashListPerformanceView.tsx +44 -0
- package/src/FlashListPerformanceView.types.ts +23 -0
- package/src/FlashListPerformanceViewNativeComponent.kepler.ts +38 -0
- package/src/FlashListPerformanceViewNativeComponent.ts +7 -0
- package/src/FlatListPerformanceView.tsx +61 -0
- package/src/FlatListPerformanceView.types.ts +28 -0
- package/src/FlatListPerformanceViewNativeComponent.kepler.tsx +38 -0
- package/src/FlatListPerformanceViewNativeComponent.tsx +7 -0
- package/src/ListsProfiler.tsx +67 -0
- package/src/ListsProfilerContext.tsx +13 -0
- package/src/ListsProfilerModule.ts +25 -0
- package/src/ListsProfilerProps.ts +18 -0
- package/src/__tests__/FlashListPerformanceView.test.tsx +71 -0
- package/src/__tests__/FlatListPerformanceView.test.tsx +77 -0
- package/src/__tests__/ListProfiler.test.tsx +60 -0
- package/src/__tests__/setupJest.js +5 -0
- package/src/index.ts +3 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
var react_1 = tslib_1.__importStar(require("react"));
|
|
5
|
+
var react_native_flipper_1 = require("react-native-flipper");
|
|
6
|
+
var ListsProfilerContext_1 = require("./ListsProfilerContext");
|
|
7
|
+
var bootstrapPlugin = function () {
|
|
8
|
+
return new Promise(function (resolve) {
|
|
9
|
+
(0, react_native_flipper_1.addPlugin)({
|
|
10
|
+
getId: function () { return '@shopify/react-native-performance'; },
|
|
11
|
+
onConnect: function (connection) {
|
|
12
|
+
return resolve(connection);
|
|
13
|
+
},
|
|
14
|
+
onDisconnect: function () { },
|
|
15
|
+
runInBackground: function () { return true; },
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Wrap your app with this component to get events from all the lists wrapped with their performance view.
|
|
21
|
+
* For example, `FlatList` must be wrapped in the `FlatListPerformanceView`.
|
|
22
|
+
*/
|
|
23
|
+
var ListsProfiler = function (_a) {
|
|
24
|
+
var _b = _a.onInteractive, onInteractive = _b === void 0 ? function () { } : _b, _c = _a.onBlankArea, onBlankArea = _c === void 0 ? function () { } : _c, children = _a.children;
|
|
25
|
+
var connection;
|
|
26
|
+
bootstrapPlugin()
|
|
27
|
+
.then(function (conn) {
|
|
28
|
+
connection = conn;
|
|
29
|
+
})
|
|
30
|
+
.catch(function (error) {
|
|
31
|
+
throw error;
|
|
32
|
+
});
|
|
33
|
+
var onInteractiveCallback = (0, react_1.useCallback)(function (TTI, listName) {
|
|
34
|
+
onInteractive(TTI, listName);
|
|
35
|
+
connection === null || connection === void 0 ? void 0 : connection.send('newListTTIData', {
|
|
36
|
+
TTI: TTI,
|
|
37
|
+
listName: listName,
|
|
38
|
+
});
|
|
39
|
+
}, [connection, onInteractive]);
|
|
40
|
+
var onBlankAreaCallback = (0, react_1.useCallback)(function (offsetStart, offsetEnd, listName) {
|
|
41
|
+
onBlankArea(offsetStart, offsetEnd, listName);
|
|
42
|
+
var blankArea = Math.max(Math.max(offsetStart, offsetEnd), 0);
|
|
43
|
+
connection === null || connection === void 0 ? void 0 : connection.send('newBlankData', {
|
|
44
|
+
offset: blankArea,
|
|
45
|
+
listName: listName,
|
|
46
|
+
});
|
|
47
|
+
}, [connection, onBlankArea]);
|
|
48
|
+
return (react_1.default.createElement(ListsProfilerContext_1.ListsProfilerContextProvider, { value: {
|
|
49
|
+
onInteractive: onInteractiveCallback,
|
|
50
|
+
onBlankArea: onBlankAreaCallback,
|
|
51
|
+
} }, children));
|
|
52
|
+
};
|
|
53
|
+
exports.default = ListsProfiler;
|
|
54
|
+
//# sourceMappingURL=ListsProfiler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListsProfiler.js","sourceRoot":"","sources":["../src/ListsProfiler.tsx"],"names":[],"mappings":";;;AAAA,qDAAyC;AACzC,6DAAwD;AAExD,+DAAoE;AAGpE,IAAM,eAAe,GAAG;IACtB,OAAO,IAAI,OAAO,CAAC,UAAA,OAAO;QACxB,IAAA,gCAAS,EAAC;YACR,KAAK,EAAE,cAAM,OAAA,mCAAmC,EAAnC,CAAmC;YAChD,SAAS,EAAE,UAAA,UAAU;gBACnB,OAAO,OAAO,CAAC,UAAU,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;IACL,CAAC,EACD,CAAC,UAAU,EAAE,WAAW,CAAC,CAC1B,CAAC;IACF,OAAO,CACL,8BAAC,mDAA4B,IAC3B,KAAK,EAAE;YACL,aAAa,EAAE,qBAAqB;YACpC,WAAW,EAAE,mBAAmB;SACjC,IAEA,QAAQ,CACoB,CAChC,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ListsProfilerController {
|
|
3
|
+
onInteractive: (TTI: number, listName: string) => void;
|
|
4
|
+
onBlankArea: (offsetStart: number, offsetEnd: number, listName: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const ListsProfilerContext: React.Context<ListsProfilerController>;
|
|
7
|
+
export declare const ListsProfilerContextProvider: React.Provider<ListsProfilerController>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=ListsProfilerContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListsProfilerContext.d.ts","sourceRoot":"","sources":["../src/ListsProfilerContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,uBAAuB;IAC/B,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,WAAW,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACjF;AAED,eAAO,MAAM,oBAAoB,wCAG/B,CAAC;AAEH,eAAO,MAAM,4BAA4B,yCAAgC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListsProfilerContextProvider = exports.ListsProfilerContext = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
exports.ListsProfilerContext = react_1.default.createContext({
|
|
7
|
+
onInteractive: function () { },
|
|
8
|
+
onBlankArea: function () { },
|
|
9
|
+
});
|
|
10
|
+
exports.ListsProfilerContextProvider = exports.ListsProfilerContext.Provider;
|
|
11
|
+
//# sourceMappingURL=ListsProfilerContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListsProfilerContext.js","sourceRoot":"","sources":["../src/ListsProfilerContext.tsx"],"names":[],"mappings":";;;;AAAA,wDAA0B;AAOb,QAAA,oBAAoB,GAAG,eAAK,CAAC,aAAa,CAA0B;IAC/E,aAAa,EAAE,cAAO,CAAC;IACvB,WAAW,EAAE,cAAO,CAAC;CACtB,CAAC,CAAC;AAEU,QAAA,4BAA4B,GAAG,4BAAoB,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListsProfilerModule.d.ts","sourceRoot":"","sources":["../src/ListsProfilerModule.ts"],"names":[],"mappings":"AASA,UAAU,mBAAmB;IACzB,cAAc,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,QAAA,MAAM,MAAM,EAAE,mBASb,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var keplerscript_turbomodule_api_1 = require("@amazon-devices/keplerscript-turbomodule-api");
|
|
4
|
+
var nativeModule = keplerscript_turbomodule_api_1.TurboModuleRegistry.get('AmazonReactNativePerformanceListsProfilerModule');
|
|
5
|
+
var module = {
|
|
6
|
+
invokeCallback: function () {
|
|
7
|
+
if (!nativeModule) {
|
|
8
|
+
throw new Error('Lists profiler module not found in NativeModules. Chances are you\'re in a test environment, but the mocks have not been setup correctly');
|
|
9
|
+
}
|
|
10
|
+
nativeModule.invokeCallback();
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
exports.default = module;
|
|
14
|
+
//# sourceMappingURL=ListsProfilerModule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListsProfilerModule.js","sourceRoot":"","sources":["../src/ListsProfilerModule.ts"],"names":[],"mappings":";;AACA,mFAAuE;AAMvE,IAAM,YAAY,GAAG,kDAAmB,CAAC,GAAG,CAAO,iDAAiD,CAAS,CAAC;AAM9G,IAAM,MAAM,GAAwB;IAChC,cAAc;QACV,IAAI,CAAC,YAAY,EAAE;YACf,MAAM,IAAI,KAAK,CACP,0IAA0I,CAAC,CAAC;SACvJ;QAED,YAAY,CAAC,cAAc,EAAE,CAAC;IAClC,CAAC;CACJ,CAAC;AAEF,kBAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface ListsProfilerProps {
|
|
3
|
+
/**
|
|
4
|
+
* Triggered when a list wrapped in a list performance view becomes interactive.
|
|
5
|
+
* @param TTI: Reported time-to-interactive
|
|
6
|
+
* @param listName - Name of the list that triggered the event defined in the list performance view
|
|
7
|
+
*/
|
|
8
|
+
onInteractive?: (TTI: number, listName: string) => void;
|
|
9
|
+
/**
|
|
10
|
+
* Triggered when a list wrapped in a list performance view is scrolled and reports a blank area.
|
|
11
|
+
* @param offsetStart - Offset at the beginning of the list (top when the list is vertical)
|
|
12
|
+
* @param offsetEnd - Offset at the end of the list (bottom when the list is vertical)
|
|
13
|
+
* @param listName - Name of the list that triggered the event defined in the list performance view
|
|
14
|
+
*/
|
|
15
|
+
onBlankArea?: (offsetStart: number, offsetEnd: number, listName: string) => void;
|
|
16
|
+
children: JSX.Element;
|
|
17
|
+
}
|
|
18
|
+
export default ListsProfilerProps;
|
|
19
|
+
//# sourceMappingURL=ListsProfilerProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListsProfilerProps.d.ts","sourceRoot":"","sources":["../src/ListsProfilerProps.ts"],"names":[],"mappings":";AAAA,UAAU,kBAAkB;IAC1B;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD;;;;;OAKG;IACH,WAAW,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACjF,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC;CACvB;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListsProfilerProps.js","sourceRoot":"","sources":["../src/ListsProfilerProps.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlashListPerformanceView.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/FlashListPerformanceView.test.tsx"],"names":[],"mappings":"AAKA,OAAO,eAAe,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
var react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
+
var react_native_1 = require("@testing-library/react-native");
|
|
6
|
+
var react_native_2 = require("react-native");
|
|
7
|
+
var FlashListPerformanceView_1 = tslib_1.__importDefault(require("../FlashListPerformanceView"));
|
|
8
|
+
var ListsProfilerContext_1 = require("../ListsProfilerContext");
|
|
9
|
+
require("jest-extended");
|
|
10
|
+
jest.mock('../FlashListPerformanceViewNativeComponent', function () {
|
|
11
|
+
var RN = require('react-native');
|
|
12
|
+
return {
|
|
13
|
+
FlashListPerformanceViewNativeComponent: function (_a) {
|
|
14
|
+
var onInteractive = _a.onInteractive, onBlankAreaEvent = _a.onBlankAreaEvent, children = _a.children;
|
|
15
|
+
return (react_1.default.createElement(RN.View, null,
|
|
16
|
+
react_1.default.createElement(RN.TouchableOpacity, { testID: "interactive", onPress: onInteractive },
|
|
17
|
+
react_1.default.createElement(RN.Text, null, "Interactive Event")),
|
|
18
|
+
react_1.default.createElement(RN.TouchableOpacity, { testID: "blankArea", onPress: onBlankAreaEvent },
|
|
19
|
+
react_1.default.createElement(RN.Text, null, "Blank Area Event")),
|
|
20
|
+
children));
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
});
|
|
24
|
+
describe('FlashListPerformanceView', function () {
|
|
25
|
+
var mockListsProfilerController;
|
|
26
|
+
beforeEach(function () {
|
|
27
|
+
mockListsProfilerController = {
|
|
28
|
+
onInteractive: jest.fn(),
|
|
29
|
+
onBlankArea: jest.fn(),
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
var wrapper = function (_a) {
|
|
33
|
+
var children = _a.children;
|
|
34
|
+
return (react_1.default.createElement(ListsProfilerContext_1.ListsProfilerContextProvider, { value: mockListsProfilerController }, children));
|
|
35
|
+
};
|
|
36
|
+
it('calls listsProfilerController.onInteractive on interactive event', function () {
|
|
37
|
+
var getByTestId = (0, react_native_1.render)(react_1.default.createElement(FlashListPerformanceView_1.default, { listName: "TestList" },
|
|
38
|
+
react_1.default.createElement(react_native_2.Text, null, "Child")), { wrapper: wrapper }).getByTestId;
|
|
39
|
+
react_native_1.fireEvent.press(getByTestId('interactive'), {
|
|
40
|
+
nativeEvent: { timestamp: Date.now() },
|
|
41
|
+
});
|
|
42
|
+
expect(mockListsProfilerController.onInteractive).toHaveBeenCalledWith(expect.any(Number), 'TestList');
|
|
43
|
+
});
|
|
44
|
+
it('calls listsProfilerController.onBlankArea on blank area event', function () {
|
|
45
|
+
var getByTestId = (0, react_native_1.render)(react_1.default.createElement(FlashListPerformanceView_1.default, { listName: "TestList" },
|
|
46
|
+
react_1.default.createElement(react_native_2.Text, null, "Child")), { wrapper: wrapper }).getByTestId;
|
|
47
|
+
react_native_1.fireEvent.press(getByTestId('blankArea'), {
|
|
48
|
+
nativeEvent: { offsetStart: 100, offsetEnd: 200 },
|
|
49
|
+
});
|
|
50
|
+
expect(mockListsProfilerController.onBlankArea).toHaveBeenCalledWith(100, 200, 'TestList');
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
//# sourceMappingURL=FlashListPerformanceView.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlashListPerformanceView.test.js","sourceRoot":"","sources":["../../src/__tests__/FlashListPerformanceView.test.tsx"],"names":[],"mappings":";;;AAAA,wDAA0B;AAC1B,8DAAkE;AAClE,6CAAoC;AACpC,iGAAmE;AACnE,gEAAuE;AACvE,yBAAuB;AAEvB,IAAI,CAAC,IAAI,CAAC,4CAA4C,EAAE;IACtD,IAAM,EAAE,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAEnC,OAAO;QACL,uCAAuC,EAAE,UAAC,EAAkD;gBAAhD,aAAa,mBAAA,EAAE,gBAAgB,sBAAA,EAAE,QAAQ,cAAA;YAAY,OAAA,CAC/F,8BAAC,EAAE,CAAC,IAAI;gBACN,8BAAC,EAAE,CAAC,gBAAgB,IAAC,MAAM,EAAC,aAAa,EAAC,OAAO,EAAE,aAAa;oBAC9D,8BAAC,EAAE,CAAC,IAAI,4BAA4B,CAChB;gBACtB,8BAAC,EAAE,CAAC,gBAAgB,IAAC,MAAM,EAAC,WAAW,EAAC,OAAO,EAAE,gBAAgB;oBAC/D,8BAAC,EAAE,CAAC,IAAI,2BAA2B,CACf;gBACrB,QAAQ,CACD,CACX;QAVgG,CAUhG;KACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,0BAA0B,EAAE;IACnC,IAAI,2BAAgC,CAAC;IAErC,UAAU,CAAC;QACT,2BAA2B,GAAG;YAC5B,aAAa,EAAE,IAAI,CAAC,EAAE,EAAE;YACxB,WAAW,EAAE,IAAI,CAAC,EAAE,EAAE;SACvB,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,IAAM,O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","sourceRoot":"","sources":["../../src/__tests__/FlatListPerformanceView.test.tsx"],"names":[],"mappings":"AAKA,OAAO,eAAe,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
var react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
+
var react_native_1 = require("@testing-library/react-native");
|
|
6
|
+
var react_native_2 = require("react-native");
|
|
7
|
+
var FlatListPerformanceView_1 = tslib_1.__importDefault(require("../FlatListPerformanceView"));
|
|
8
|
+
var ListsProfilerContext_1 = require("../ListsProfilerContext");
|
|
9
|
+
require("jest-extended");
|
|
10
|
+
jest.mock('../FlatListPerformanceViewNativeComponent', function () {
|
|
11
|
+
var RN = require('react-native');
|
|
12
|
+
return {
|
|
13
|
+
FlatListPerformanceViewNativeComponent: function (_a) {
|
|
14
|
+
var onInteractive = _a.onInteractive, onBlankAreaEvent = _a.onBlankAreaEvent, children = _a.children;
|
|
15
|
+
return (react_1.default.createElement(RN.View, null,
|
|
16
|
+
react_1.default.createElement(RN.TouchableOpacity, { testID: "interactive", onPress: onInteractive },
|
|
17
|
+
react_1.default.createElement(RN.Text, null, "Interactive Event")),
|
|
18
|
+
react_1.default.createElement(RN.TouchableOpacity, { testID: "blankArea", onPress: onBlankAreaEvent },
|
|
19
|
+
react_1.default.createElement(RN.Text, null, "Blank Area Event")),
|
|
20
|
+
children));
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
});
|
|
24
|
+
describe('FlatListPerformanceView', function () {
|
|
25
|
+
var mockOnInteractive;
|
|
26
|
+
var mockOnBlankArea;
|
|
27
|
+
var mockListsProfilerController;
|
|
28
|
+
beforeEach(function () {
|
|
29
|
+
mockOnInteractive = jest.fn();
|
|
30
|
+
mockOnBlankArea = jest.fn();
|
|
31
|
+
mockListsProfilerController = {
|
|
32
|
+
onInteractive: jest.fn(),
|
|
33
|
+
onBlankArea: jest.fn(),
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
var wrapper = function (_a) {
|
|
37
|
+
var children = _a.children;
|
|
38
|
+
return (react_1.default.createElement(ListsProfilerContext_1.ListsProfilerContextProvider, { value: mockListsProfilerController }, children));
|
|
39
|
+
};
|
|
40
|
+
it('calls onInteractive and listsProfilerController.onInteractive on interactive event', function () {
|
|
41
|
+
var getByTestId = (0, react_native_1.render)(react_1.default.createElement(FlatListPerformanceView_1.default, { listName: "TestList", onInteractive: mockOnInteractive },
|
|
42
|
+
react_1.default.createElement(react_native_2.Text, null, "Child")), { wrapper: wrapper }).getByTestId;
|
|
43
|
+
react_native_1.fireEvent.press(getByTestId('interactive'), {
|
|
44
|
+
nativeEvent: { timestamp: Date.now() },
|
|
45
|
+
});
|
|
46
|
+
expect(mockOnInteractive).toHaveBeenCalledWith(expect.any(Number), 'TestList');
|
|
47
|
+
expect(mockListsProfilerController.onInteractive).toHaveBeenCalledWith(expect.any(Number), 'TestList');
|
|
48
|
+
});
|
|
49
|
+
it('calls onBlankArea and listsProfilerController.onBlankArea on blank area event', function () {
|
|
50
|
+
var getByTestId = (0, react_native_1.render)(react_1.default.createElement(FlatListPerformanceView_1.default, { listName: "TestList", onBlankArea: mockOnBlankArea },
|
|
51
|
+
react_1.default.createElement(react_native_2.Text, null, "Child")), { wrapper: wrapper }).getByTestId;
|
|
52
|
+
react_native_1.fireEvent.press(getByTestId('blankArea'), {
|
|
53
|
+
nativeEvent: { offsetStart: 100, offsetEnd: 200 },
|
|
54
|
+
});
|
|
55
|
+
expect(mockOnBlankArea).toHaveBeenCalledWith(100, 200, 'TestList');
|
|
56
|
+
expect(mockListsProfilerController.onBlankArea).toHaveBeenCalledWith(100, 200, 'TestList');
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=FlatListPerformanceView.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlatListPerformanceView.test.js","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,GAAG,EAAE,UAAU,CAAC,CAAC;IAC7F,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListProfiler.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/ListProfiler.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
var react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
+
var react_hooks_1 = require("@testing-library/react-hooks");
|
|
6
|
+
var ListsProfiler_1 = tslib_1.__importDefault(require("../ListsProfiler"));
|
|
7
|
+
var ListsProfilerContext_1 = require("../ListsProfilerContext");
|
|
8
|
+
jest.mock('react-native-flipper', function () { return ({
|
|
9
|
+
addPlugin: jest.fn(),
|
|
10
|
+
}); });
|
|
11
|
+
describe('ListsProfiler', function () {
|
|
12
|
+
var mockOnInteractive;
|
|
13
|
+
var mockOnBlankArea;
|
|
14
|
+
var mockConnection;
|
|
15
|
+
beforeEach(function () {
|
|
16
|
+
mockOnInteractive = jest.fn();
|
|
17
|
+
mockOnBlankArea = jest.fn();
|
|
18
|
+
mockConnection = {
|
|
19
|
+
send: jest.fn(),
|
|
20
|
+
};
|
|
21
|
+
require('react-native-flipper').addPlugin.mockImplementation(function (_a) {
|
|
22
|
+
var onConnect = _a.onConnect;
|
|
23
|
+
onConnect(mockConnection);
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
it('calls Flipper addPlugin on mount', function () {
|
|
27
|
+
var wrapper = function (_a) {
|
|
28
|
+
var children = _a.children;
|
|
29
|
+
return (react_1.default.createElement(ListsProfiler_1.default, { onInteractive: mockOnInteractive, onBlankArea: mockOnBlankArea }, children));
|
|
30
|
+
};
|
|
31
|
+
(0, react_hooks_1.renderHook)(function () { return react_1.default.useContext(ListsProfilerContext_1.ListsProfilerContext); }, { wrapper: wrapper });
|
|
32
|
+
expect(require('react-native-flipper').addPlugin).toHaveBeenCalledTimes(1);
|
|
33
|
+
});
|
|
34
|
+
it('invokes onInteractive callback', function () {
|
|
35
|
+
var wrapper = function (_a) {
|
|
36
|
+
var children = _a.children;
|
|
37
|
+
return (react_1.default.createElement(ListsProfiler_1.default, { onInteractive: mockOnInteractive, onBlankArea: mockOnBlankArea }, children));
|
|
38
|
+
};
|
|
39
|
+
var result = (0, react_hooks_1.renderHook)(function () { return react_1.default.useContext(ListsProfilerContext_1.ListsProfilerContext); }, { wrapper: wrapper }).result;
|
|
40
|
+
result.current.onInteractive(2000, 'TestList');
|
|
41
|
+
expect(mockOnInteractive).toHaveBeenCalledWith(2000, 'TestList');
|
|
42
|
+
});
|
|
43
|
+
it('invokes onBlankArea callback', function () {
|
|
44
|
+
var wrapper = function (_a) {
|
|
45
|
+
var children = _a.children;
|
|
46
|
+
return (react_1.default.createElement(ListsProfiler_1.default, { onInteractive: mockOnInteractive, onBlankArea: mockOnBlankArea }, children));
|
|
47
|
+
};
|
|
48
|
+
var result = (0, react_hooks_1.renderHook)(function () { return react_1.default.useContext(ListsProfilerContext_1.ListsProfilerContext); }, { wrapper: wrapper }).result;
|
|
49
|
+
result.current.onBlankArea(100, 200, 'TestList');
|
|
50
|
+
expect(mockOnBlankArea).toHaveBeenCalledWith(100, 200, 'TestList');
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
//# sourceMappingURL=ListProfiler.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListProfiler.test.js","sourceRoot":"","sources":["../../src/__tests__/ListProfiler.test.tsx"],"names":[],"mappings":";;;AAAA,wDAA0B;AAC1B,4DAA0D;AAC1D,2EAA6C;AAC7C,gEAA+D;AAE/D,IAAI,CAAC,IAAI,CAAC,sBAAsB,EAAE,cAAM,OAAA,CAAC;IACvC,SAAS,EAAE,IAAI,CAAC,EAAE,EAAE;CACrB,CAAC,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M,iBAAiB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ListsProfiler = exports.FlashListPerformanceView = exports.FlatListPerformanceView = void 0;
|
|
7
|
+
var FlatListPerformanceView_1 = require("./FlatListPerformanceView");
|
|
8
|
+
Object.defineProperty(exports, "FlatListPerformanceView", { enumerable: true, get: function () { return __importDefault(FlatListPerformanceView_1).default; } });
|
|
9
|
+
var FlashListPerformanceView_1 = require("./FlashListPerformanceView");
|
|
10
|
+
Object.defineProperty(exports, "FlashListPerformanceView", { enumerable: true, get: function () { return __importDefault(FlashListPerformanceView_1).default; } });
|
|
11
|
+
var ListsProfiler_1 = require("./ListsProfiler");
|
|
12
|
+
Object.defineProperty(exports, "ListsProfiler", { enumerable: true, get: function () { return __importDefault(ListsProfiler_1).default; } });
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,qEAA6E;AAArE,mJAAA,OAAO,OAA2B;AAC1C,uEAA+E;AAAvE,qJAAA,OAAO,OAA4B;AAC3C,iDAAyD;AAAjD,+HAAA,OAAO,OAAiB"}
|