@fluentui-react-native/tester 0.170.26 → 0.170.27
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/CHANGELOG.json +31 -1
- package/CHANGELOG.md +10 -2
- package/ios/Podfile.lock +534 -379
- package/lib/fluent-tester/src/TestComponents/Button/E2EButtonTest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Button/E2EButtonTest.js +20 -4
- package/lib/fluent-tester/src/TestComponents/Button/E2EButtonTest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/E2EButtonTest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/E2EButtonTest.js +23 -7
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/E2EButtonTest.js.map +1 -1
- package/macos/Podfile.lock +468 -315
- package/package.json +60 -59
- package/src/TestComponents/Button/E2EButtonTest.tsx +25 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
|
-
"version": "0.170.
|
|
3
|
+
"version": "0.170.27",
|
|
4
4
|
"description": "A test app to test FluentUI React Native Components during development",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Microsoft <fluentuinativeowners@microsoft.com>",
|
|
@@ -33,73 +33,74 @@
|
|
|
33
33
|
"directory": "apps/fluent-tester"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@fluentui-react-native/android-theme": "0.25.
|
|
37
|
-
"@fluentui-react-native/apple-theme": "0.28.
|
|
38
|
-
"@fluentui-react-native/avatar": "1.12.
|
|
39
|
-
"@fluentui-react-native/badge": "0.11.
|
|
40
|
-
"@fluentui-react-native/button": "0.39.
|
|
41
|
-
"@fluentui-react-native/callout": "0.27.
|
|
42
|
-
"@fluentui-react-native/chip": "0.4.
|
|
43
|
-
"@fluentui-react-native/default-theme": "0.26.
|
|
44
|
-
"@fluentui-react-native/divider": "0.7.
|
|
45
|
-
"@fluentui-react-native/drawer": "0.4.
|
|
46
|
-
"@fluentui-react-native/dropdown": "0.10.
|
|
47
|
-
"@fluentui-react-native/experimental-activity-indicator": "0.10.
|
|
48
|
-
"@fluentui-react-native/experimental-appearance-additions": "0.7.
|
|
49
|
-
"@fluentui-react-native/experimental-avatar": "0.21.
|
|
50
|
-
"@fluentui-react-native/experimental-checkbox": "0.17.
|
|
51
|
-
"@fluentui-react-native/experimental-expander": "0.8.
|
|
52
|
-
"@fluentui-react-native/experimental-menu-button": "0.10.
|
|
53
|
-
"@fluentui-react-native/experimental-native-date-picker": "0.11.
|
|
54
|
-
"@fluentui-react-native/experimental-shadow": "0.6.
|
|
55
|
-
"@fluentui-react-native/experimental-shimmer": "0.13.
|
|
56
|
-
"@fluentui-react-native/framework": "0.14.
|
|
57
|
-
"@fluentui-react-native/icon": "0.21.
|
|
58
|
-
"@fluentui-react-native/input": "0.7.
|
|
59
|
-
"@fluentui-react-native/interactive-hooks": "0.27.
|
|
60
|
-
"@fluentui-react-native/menu": "1.14.
|
|
61
|
-
"@fluentui-react-native/merge-props": "0.9.
|
|
62
|
-
"@fluentui-react-native/notification": "0.25.
|
|
63
|
-
"@fluentui-react-native/overflow": "0.3.
|
|
64
|
-
"@fluentui-react-native/radio-group": "0.21.
|
|
65
|
-
"@fluentui-react-native/separator": "0.18.
|
|
66
|
-
"@fluentui-react-native/spinner": "0.9.
|
|
67
|
-
"@fluentui-react-native/stack": "0.10.
|
|
68
|
-
"@fluentui-react-native/switch": "0.13.
|
|
69
|
-
"@fluentui-react-native/tablist": "0.7.
|
|
70
|
-
"@fluentui-react-native/text": "0.24.
|
|
71
|
-
"@fluentui-react-native/theme": "0.11.
|
|
72
|
-
"@fluentui-react-native/theme-tokens": "0.27.
|
|
73
|
-
"@fluentui-react-native/theme-types": "0.39.
|
|
74
|
-
"@fluentui-react-native/themed-stylesheet": "1.7.
|
|
75
|
-
"@fluentui-react-native/theming-utils": "0.26.
|
|
76
|
-
"@fluentui-react-native/tooltip": "0.4.
|
|
77
|
-
"@fluentui-react-native/vibrancy-view": "0.3.
|
|
78
|
-
"@fluentui-react-native/win32-theme": "0.34.
|
|
79
|
-
"@fluentui/react-native": "0.42.
|
|
36
|
+
"@fluentui-react-native/android-theme": "0.25.3",
|
|
37
|
+
"@fluentui-react-native/apple-theme": "0.28.3",
|
|
38
|
+
"@fluentui-react-native/avatar": "1.12.9",
|
|
39
|
+
"@fluentui-react-native/badge": "0.11.3",
|
|
40
|
+
"@fluentui-react-native/button": "0.39.5",
|
|
41
|
+
"@fluentui-react-native/callout": "0.27.3",
|
|
42
|
+
"@fluentui-react-native/chip": "0.4.9",
|
|
43
|
+
"@fluentui-react-native/default-theme": "0.26.3",
|
|
44
|
+
"@fluentui-react-native/divider": "0.7.9",
|
|
45
|
+
"@fluentui-react-native/drawer": "0.4.5",
|
|
46
|
+
"@fluentui-react-native/dropdown": "0.10.14",
|
|
47
|
+
"@fluentui-react-native/experimental-activity-indicator": "0.10.4",
|
|
48
|
+
"@fluentui-react-native/experimental-appearance-additions": "0.7.3",
|
|
49
|
+
"@fluentui-react-native/experimental-avatar": "0.21.5",
|
|
50
|
+
"@fluentui-react-native/experimental-checkbox": "0.17.10",
|
|
51
|
+
"@fluentui-react-native/experimental-expander": "0.8.4",
|
|
52
|
+
"@fluentui-react-native/experimental-menu-button": "0.10.20",
|
|
53
|
+
"@fluentui-react-native/experimental-native-date-picker": "0.11.1",
|
|
54
|
+
"@fluentui-react-native/experimental-shadow": "0.6.5",
|
|
55
|
+
"@fluentui-react-native/experimental-shimmer": "0.13.6",
|
|
56
|
+
"@fluentui-react-native/framework": "0.14.3",
|
|
57
|
+
"@fluentui-react-native/icon": "0.21.9",
|
|
58
|
+
"@fluentui-react-native/input": "0.7.9",
|
|
59
|
+
"@fluentui-react-native/interactive-hooks": "0.27.5",
|
|
60
|
+
"@fluentui-react-native/menu": "1.14.23",
|
|
61
|
+
"@fluentui-react-native/merge-props": "0.9.2",
|
|
62
|
+
"@fluentui-react-native/notification": "0.25.12",
|
|
63
|
+
"@fluentui-react-native/overflow": "0.3.23",
|
|
64
|
+
"@fluentui-react-native/radio-group": "0.21.17",
|
|
65
|
+
"@fluentui-react-native/separator": "0.18.3",
|
|
66
|
+
"@fluentui-react-native/spinner": "0.9.10",
|
|
67
|
+
"@fluentui-react-native/stack": "0.10.8",
|
|
68
|
+
"@fluentui-react-native/switch": "0.13.8",
|
|
69
|
+
"@fluentui-react-native/tablist": "0.7.5",
|
|
70
|
+
"@fluentui-react-native/text": "0.24.7",
|
|
71
|
+
"@fluentui-react-native/theme": "0.11.2",
|
|
72
|
+
"@fluentui-react-native/theme-tokens": "0.27.2",
|
|
73
|
+
"@fluentui-react-native/theme-types": "0.39.2",
|
|
74
|
+
"@fluentui-react-native/themed-stylesheet": "1.7.2",
|
|
75
|
+
"@fluentui-react-native/theming-utils": "0.26.2",
|
|
76
|
+
"@fluentui-react-native/tooltip": "0.4.12",
|
|
77
|
+
"@fluentui-react-native/vibrancy-view": "0.3.1",
|
|
78
|
+
"@fluentui-react-native/win32-theme": "0.34.6",
|
|
79
|
+
"@fluentui/react-native": "0.42.14",
|
|
80
80
|
"@fortawesome/fontawesome-svg-core": "^6.2.0",
|
|
81
81
|
"@fortawesome/free-solid-svg-icons": "^6.2.0",
|
|
82
82
|
"@fortawesome/react-native-fontawesome": "^0.3.0",
|
|
83
83
|
"@react-native-community/slider": "^4.2.0",
|
|
84
84
|
"@react-native-menu/menu": "^0.7.3",
|
|
85
85
|
"@react-native-picker/picker": "^2.7.0",
|
|
86
|
+
"@types/react": "~18.2.0",
|
|
86
87
|
"@warren-ms/react-native-icons": "^0.0.13",
|
|
87
88
|
"react": "18.2.0",
|
|
88
|
-
"react-native": "^0.
|
|
89
|
-
"react-native-macos": "^0.
|
|
90
|
-
"react-native-svg": "^15.
|
|
91
|
-
"react-native-windows": "^0.
|
|
89
|
+
"react-native": "^0.74.0",
|
|
90
|
+
"react-native-macos": "^0.74.0",
|
|
91
|
+
"react-native-svg": "^15.4.0",
|
|
92
|
+
"react-native-windows": "^0.74.0",
|
|
92
93
|
"tslib": "^2.3.1"
|
|
93
94
|
},
|
|
94
95
|
"devDependencies": {
|
|
95
|
-
"@babel/core": "^7.
|
|
96
|
-
"@babel/runtime": "^7.
|
|
96
|
+
"@babel/core": "^7.20.0",
|
|
97
|
+
"@babel/runtime": "^7.20.0",
|
|
97
98
|
"@fluentui-react-native/eslint-config-rules": "0.1.1",
|
|
98
|
-
"@fluentui-react-native/focus-zone": "0.21.
|
|
99
|
+
"@fluentui-react-native/focus-zone": "0.21.1",
|
|
99
100
|
"@fluentui-react-native/scripts": "0.1.1",
|
|
100
|
-
"@react-native/babel-preset": "^0.
|
|
101
|
-
"@react-native/metro-babel-transformer": "^0.
|
|
102
|
-
"@react-native/metro-config": "^0.
|
|
101
|
+
"@react-native/babel-preset": "^0.74.0",
|
|
102
|
+
"@react-native/metro-babel-transformer": "^0.74.0",
|
|
103
|
+
"@react-native/metro-config": "^0.74.0",
|
|
103
104
|
"@rnx-kit/cli": "^0.18.0",
|
|
104
105
|
"@rnx-kit/metro-config": "^2.0.0",
|
|
105
106
|
"@types/jasmine": "5.1.4",
|
|
@@ -107,14 +108,14 @@
|
|
|
107
108
|
"@wdio/globals": "^8.40.0",
|
|
108
109
|
"@wdio/jasmine-framework": "^8.40.0",
|
|
109
110
|
"flow-bin": "^0.113.0",
|
|
110
|
-
"metro-config": "^0.80.
|
|
111
|
+
"metro-config": "^0.80.3",
|
|
111
112
|
"react-native-svg-transformer": "^1.0.0",
|
|
112
|
-
"react-native-test-app": "^3.
|
|
113
|
+
"react-native-test-app": "^3.9.2",
|
|
113
114
|
"react-test-renderer": "18.2.0",
|
|
114
115
|
"webdriverio": "^8.40.0"
|
|
115
116
|
},
|
|
116
117
|
"peerDependencies": {
|
|
117
|
-
"@office-iss/react-native-win32": "^0.
|
|
118
|
+
"@office-iss/react-native-win32": "^0.74.0"
|
|
118
119
|
},
|
|
119
120
|
"jest": {
|
|
120
121
|
"preset": "react-native"
|
|
@@ -173,7 +174,7 @@
|
|
|
173
174
|
"@fluentui-react-native/scripts/align-deps-preset.js"
|
|
174
175
|
],
|
|
175
176
|
"requirements": [
|
|
176
|
-
"react-native@0.
|
|
177
|
+
"react-native@0.74"
|
|
177
178
|
],
|
|
178
179
|
"capabilities": [
|
|
179
180
|
"core-android",
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
4
|
|
|
5
|
-
import { Text } from '@fluentui/react-native';
|
|
6
|
-
import { ButtonV1 as Button } from '@fluentui/react-native';
|
|
5
|
+
import { ButtonV1 as Button, Text } from '@fluentui/react-native';
|
|
7
6
|
import { Stack } from '@fluentui-react-native/stack';
|
|
8
|
-
import type {
|
|
7
|
+
import type { IKeyboardEvent } from '@office-iss/react-native-win32';
|
|
9
8
|
|
|
10
9
|
import {
|
|
11
10
|
BUTTON_TEST_COMPONENT,
|
|
@@ -22,6 +21,24 @@ import {
|
|
|
22
21
|
import { stackStyle } from '../Common/styles';
|
|
23
22
|
import { testProps } from '../Common/TestProps';
|
|
24
23
|
|
|
24
|
+
function keyEvent(key: string) {
|
|
25
|
+
return {
|
|
26
|
+
key,
|
|
27
|
+
capsLockKey: false,
|
|
28
|
+
shiftKey: false,
|
|
29
|
+
ctrlKey: false,
|
|
30
|
+
altKey: false,
|
|
31
|
+
metaKey: false,
|
|
32
|
+
numericPadKey: false,
|
|
33
|
+
helpKey: false,
|
|
34
|
+
functionKey: false,
|
|
35
|
+
ArrowLeft: false,
|
|
36
|
+
ArrowRight: false,
|
|
37
|
+
ArrowUp: false,
|
|
38
|
+
ArrowDown: false,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
25
42
|
export const E2EButtonTest: React.FunctionComponent = () => {
|
|
26
43
|
const [buttonPressed, setButtonPressed] = React.useState(false);
|
|
27
44
|
const [keyDetected, setKeyDetected] = React.useState('');
|
|
@@ -31,16 +48,16 @@ export const E2EButtonTest: React.FunctionComponent = () => {
|
|
|
31
48
|
setKeyDetected('');
|
|
32
49
|
}, [buttonPressed]);
|
|
33
50
|
|
|
34
|
-
const keyPressProps
|
|
35
|
-
keyDownEvents: [
|
|
36
|
-
onKeyDown: (args) => {
|
|
51
|
+
const keyPressProps = {
|
|
52
|
+
keyDownEvents: [keyEvent('a')],
|
|
53
|
+
onKeyDown: (args: IKeyboardEvent) => {
|
|
37
54
|
if (args.nativeEvent.key === 'a') {
|
|
38
55
|
setKeyDetected('a (down)');
|
|
39
56
|
args.stopPropagation();
|
|
40
57
|
}
|
|
41
58
|
},
|
|
42
|
-
keyUpEvents: [
|
|
43
|
-
onKeyUp: (args) => {
|
|
59
|
+
keyUpEvents: [keyEvent('b')],
|
|
60
|
+
onKeyUp: (args: IKeyboardEvent) => {
|
|
44
61
|
if (args.nativeEvent.key === 'b') {
|
|
45
62
|
setKeyDetected('b (up)');
|
|
46
63
|
args.stopPropagation();
|