@fluentui-react-native/tester 0.170.25 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/tester",
3
- "version": "0.170.25",
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,88 +33,89 @@
33
33
  "directory": "apps/fluent-tester"
34
34
  },
35
35
  "dependencies": {
36
- "@fluentui-react-native/android-theme": "0.25.2",
37
- "@fluentui-react-native/apple-theme": "0.28.2",
38
- "@fluentui-react-native/avatar": "1.12.8",
39
- "@fluentui-react-native/badge": "0.11.2",
40
- "@fluentui-react-native/button": "0.39.4",
41
- "@fluentui-react-native/callout": "0.27.2",
42
- "@fluentui-react-native/chip": "0.4.8",
43
- "@fluentui-react-native/default-theme": "0.26.2",
44
- "@fluentui-react-native/divider": "0.7.8",
45
- "@fluentui-react-native/drawer": "0.4.4",
46
- "@fluentui-react-native/dropdown": "0.10.13",
47
- "@fluentui-react-native/experimental-activity-indicator": "0.10.3",
48
- "@fluentui-react-native/experimental-appearance-additions": "0.7.2",
49
- "@fluentui-react-native/experimental-avatar": "0.21.4",
50
- "@fluentui-react-native/experimental-checkbox": "0.17.9",
51
- "@fluentui-react-native/experimental-expander": "0.8.3",
52
- "@fluentui-react-native/experimental-menu-button": "0.10.19",
53
- "@fluentui-react-native/experimental-native-date-picker": "0.11.0",
54
- "@fluentui-react-native/experimental-shadow": "0.6.4",
55
- "@fluentui-react-native/experimental-shimmer": "0.13.5",
56
- "@fluentui-react-native/framework": "0.14.2",
57
- "@fluentui-react-native/icon": "0.21.8",
58
- "@fluentui-react-native/input": "0.7.8",
59
- "@fluentui-react-native/interactive-hooks": "0.27.4",
60
- "@fluentui-react-native/menu": "1.14.22",
61
- "@fluentui-react-native/merge-props": "0.9.1",
62
- "@fluentui-react-native/notification": "0.25.11",
63
- "@fluentui-react-native/overflow": "0.3.22",
64
- "@fluentui-react-native/radio-group": "0.21.16",
65
- "@fluentui-react-native/separator": "0.18.2",
66
- "@fluentui-react-native/spinner": "0.9.9",
67
- "@fluentui-react-native/stack": "0.10.7",
68
- "@fluentui-react-native/switch": "0.13.7",
69
- "@fluentui-react-native/tablist": "0.7.4",
70
- "@fluentui-react-native/text": "0.24.6",
71
- "@fluentui-react-native/theme": "0.11.1",
72
- "@fluentui-react-native/theme-tokens": "0.27.1",
73
- "@fluentui-react-native/theme-types": "0.39.1",
74
- "@fluentui-react-native/themed-stylesheet": "1.7.1",
75
- "@fluentui-react-native/theming-utils": "0.26.1",
76
- "@fluentui-react-native/tooltip": "0.4.11",
77
- "@fluentui-react-native/vibrancy-view": "0.3.0",
78
- "@fluentui-react-native/win32-theme": "0.34.5",
79
- "@fluentui/react-native": "0.42.13",
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.73.0",
89
- "react-native-macos": "^0.73.0",
90
- "react-native-svg": "^15.0.0",
91
- "react-native-windows": "^0.73.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.8.0",
96
- "@babel/runtime": "^7.8.0",
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.0",
99
+ "@fluentui-react-native/focus-zone": "0.21.1",
99
100
  "@fluentui-react-native/scripts": "0.1.1",
100
- "@react-native/babel-preset": "^0.73.0",
101
- "@react-native/metro-babel-transformer": "^0.73.0",
102
- "@react-native/metro-config": "^0.73.0",
103
- "@rnx-kit/cli": "^0.16.2",
104
- "@rnx-kit/metro-config": "^1.3.1",
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",
104
+ "@rnx-kit/cli": "^0.18.0",
105
+ "@rnx-kit/metro-config": "^2.0.0",
105
106
  "@types/jasmine": "5.1.4",
106
107
  "@wdio/cli": "^8.40.0",
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.0",
111
+ "metro-config": "^0.80.3",
111
112
  "react-native-svg-transformer": "^1.0.0",
112
- "react-native-test-app": "^3.4.7",
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.73.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.73"
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 { IViewWin32Props } from '@office-iss/react-native-win32';
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: Omit<IViewWin32Props, 'accessibilityRole' | 'role' | 'onBlur' | 'onFocus' | 'onMouseLeave' | 'onMouseEnter'> = {
35
- keyDownEvents: [{ key: 'a' }],
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: [{ key: 'b' }],
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();