@fluentui-react-native/tester 0.108.0 → 0.109.0
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 +151 -1
- package/CHANGELOG.md +38 -2
- package/ios/Podfile +3 -0
- package/ios/Podfile.lock +11 -5
- package/lib/FluentTester.d.ts.map +1 -1
- package/lib/FluentTester.js +12 -5
- package/lib/FluentTester.js.map +1 -1
- package/lib-commonjs/FluentTester.d.ts.map +1 -1
- package/lib-commonjs/FluentTester.js +11 -4
- package/lib-commonjs/FluentTester.js.map +1 -1
- package/package.json +19 -19
- package/src/FluentTester.tsx +15 -10
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,157 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Mon, 28 Nov 2022
|
|
5
|
+
"date": "Mon, 28 Nov 2022 19:48:09 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/tester_v0.109.0",
|
|
7
|
+
"version": "0.109.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "adgleitm@microsoft.com",
|
|
12
|
+
"package": "@fluentui-react-native/tester",
|
|
13
|
+
"commit": "1b0f4b66f9ed9c9be49ad296d1b0d2f57c56bbc4",
|
|
14
|
+
"comment": "Add Dynamic Type support"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/tester",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/avatar to v1.3.3",
|
|
20
|
+
"commit": "1b0f4b66f9ed9c9be49ad296d1b0d2f57c56bbc4"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui-react-native/tester",
|
|
25
|
+
"comment": "Bump @fluentui-react-native/badge to v0.2.3",
|
|
26
|
+
"commit": "1b0f4b66f9ed9c9be49ad296d1b0d2f57c56bbc4"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@fluentui-react-native/tester",
|
|
31
|
+
"comment": "Bump @fluentui-react-native/button to v0.32.1",
|
|
32
|
+
"commit": "1b0f4b66f9ed9c9be49ad296d1b0d2f57c56bbc4"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@fluentui-react-native/tester",
|
|
37
|
+
"comment": "Bump @fluentui-react-native/dropdown to v0.5.19",
|
|
38
|
+
"commit": "1b0f4b66f9ed9c9be49ad296d1b0d2f57c56bbc4"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "beachball",
|
|
42
|
+
"package": "@fluentui-react-native/tester",
|
|
43
|
+
"comment": "Bump @fluentui-react-native/experimental-button to v0.16.59",
|
|
44
|
+
"commit": "1b0f4b66f9ed9c9be49ad296d1b0d2f57c56bbc4"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"author": "beachball",
|
|
48
|
+
"package": "@fluentui-react-native/tester",
|
|
49
|
+
"comment": "Bump @fluentui-react-native/experimental-checkbox to v0.13.6",
|
|
50
|
+
"commit": "1b0f4b66f9ed9c9be49ad296d1b0d2f57c56bbc4"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"author": "beachball",
|
|
54
|
+
"package": "@fluentui-react-native/tester",
|
|
55
|
+
"comment": "Bump @fluentui-react-native/experimental-link to v0.2.3",
|
|
56
|
+
"commit": "1b0f4b66f9ed9c9be49ad296d1b0d2f57c56bbc4"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"author": "beachball",
|
|
60
|
+
"package": "@fluentui-react-native/tester",
|
|
61
|
+
"comment": "Bump @fluentui-react-native/experimental-menu-button to v0.5.20",
|
|
62
|
+
"commit": "1b0f4b66f9ed9c9be49ad296d1b0d2f57c56bbc4"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"author": "beachball",
|
|
66
|
+
"package": "@fluentui-react-native/tester",
|
|
67
|
+
"comment": "Bump @fluentui-react-native/experimental-radio-group to v0.8.1",
|
|
68
|
+
"commit": "1b0f4b66f9ed9c9be49ad296d1b0d2f57c56bbc4"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"author": "beachball",
|
|
72
|
+
"package": "@fluentui-react-native/tester",
|
|
73
|
+
"comment": "Bump @fluentui-react-native/experimental-tabs to v0.8.3",
|
|
74
|
+
"commit": "1b0f4b66f9ed9c9be49ad296d1b0d2f57c56bbc4"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"author": "beachball",
|
|
78
|
+
"package": "@fluentui-react-native/tester",
|
|
79
|
+
"comment": "Bump @fluentui-react-native/experimental-text to v0.11.25",
|
|
80
|
+
"commit": "1b0f4b66f9ed9c9be49ad296d1b0d2f57c56bbc4"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"author": "beachball",
|
|
84
|
+
"package": "@fluentui-react-native/tester",
|
|
85
|
+
"comment": "Bump @fluentui-react-native/icon to v0.15.3",
|
|
86
|
+
"commit": "1b0f4b66f9ed9c9be49ad296d1b0d2f57c56bbc4"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"author": "beachball",
|
|
90
|
+
"package": "@fluentui-react-native/tester",
|
|
91
|
+
"comment": "Bump @fluentui-react-native/menu to v1.0.78",
|
|
92
|
+
"commit": "1b0f4b66f9ed9c9be49ad296d1b0d2f57c56bbc4"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"author": "beachball",
|
|
96
|
+
"package": "@fluentui-react-native/tester",
|
|
97
|
+
"comment": "Bump @fluentui-react-native/notification to v0.19.3",
|
|
98
|
+
"commit": "1b0f4b66f9ed9c9be49ad296d1b0d2f57c56bbc4"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"author": "beachball",
|
|
102
|
+
"package": "@fluentui-react-native/tester",
|
|
103
|
+
"comment": "Bump @fluentui-react-native/stack to v0.7.27",
|
|
104
|
+
"commit": "1b0f4b66f9ed9c9be49ad296d1b0d2f57c56bbc4"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"author": "beachball",
|
|
108
|
+
"package": "@fluentui-react-native/tester",
|
|
109
|
+
"comment": "Bump @fluentui-react-native/switch to v0.7.6",
|
|
110
|
+
"commit": "1b0f4b66f9ed9c9be49ad296d1b0d2f57c56bbc4"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"author": "beachball",
|
|
114
|
+
"package": "@fluentui-react-native/tester",
|
|
115
|
+
"comment": "Bump @fluentui-react-native/text to v0.17.0",
|
|
116
|
+
"commit": "1b0f4b66f9ed9c9be49ad296d1b0d2f57c56bbc4"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"author": "beachball",
|
|
120
|
+
"package": "@fluentui-react-native/tester",
|
|
121
|
+
"comment": "Bump @fluentui-react-native/theme-tokens to v0.21.3",
|
|
122
|
+
"commit": "1b0f4b66f9ed9c9be49ad296d1b0d2f57c56bbc4"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"author": "beachball",
|
|
126
|
+
"package": "@fluentui-react-native/tester",
|
|
127
|
+
"comment": "Bump @fluentui/react-native to v0.33.3",
|
|
128
|
+
"commit": "1b0f4b66f9ed9c9be49ad296d1b0d2f57c56bbc4"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"date": "Mon, 28 Nov 2022 17:44:48 GMT",
|
|
135
|
+
"tag": "@fluentui-react-native/tester_v0.108.1",
|
|
136
|
+
"version": "0.108.1",
|
|
137
|
+
"comments": {
|
|
138
|
+
"patch": [
|
|
139
|
+
{
|
|
140
|
+
"author": "winlarry@microsoft.com",
|
|
141
|
+
"package": "@fluentui-react-native/tester",
|
|
142
|
+
"commit": "c07ddd7a7854bfc23a126776f8913822128d0fa2",
|
|
143
|
+
"comment": "Fix FocusTrapZone test page component not trapping focus"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"author": "beachball",
|
|
147
|
+
"package": "@fluentui-react-native/tester",
|
|
148
|
+
"comment": "Bump @fluentui-react-native/theme-tokens to v0.21.3",
|
|
149
|
+
"commit": "c07ddd7a7854bfc23a126776f8913822128d0fa2"
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"date": "Mon, 28 Nov 2022 11:51:05 GMT",
|
|
6
156
|
"tag": "@fluentui-react-native/tester_v0.108.0",
|
|
7
157
|
"version": "0.108.0",
|
|
8
158
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,48 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/tester
|
|
2
2
|
|
|
3
|
-
This log was last generated on Mon, 28 Nov 2022
|
|
3
|
+
This log was last generated on Mon, 28 Nov 2022 19:48:09 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.109.0
|
|
8
|
+
|
|
9
|
+
Mon, 28 Nov 2022 19:48:09 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- Add Dynamic Type support (adgleitm@microsoft.com)
|
|
14
|
+
- Bump @fluentui-react-native/avatar to v1.3.3
|
|
15
|
+
- Bump @fluentui-react-native/badge to v0.2.3
|
|
16
|
+
- Bump @fluentui-react-native/button to v0.32.1
|
|
17
|
+
- Bump @fluentui-react-native/dropdown to v0.5.19
|
|
18
|
+
- Bump @fluentui-react-native/experimental-button to v0.16.59
|
|
19
|
+
- Bump @fluentui-react-native/experimental-checkbox to v0.13.6
|
|
20
|
+
- Bump @fluentui-react-native/experimental-link to v0.2.3
|
|
21
|
+
- Bump @fluentui-react-native/experimental-menu-button to v0.5.20
|
|
22
|
+
- Bump @fluentui-react-native/experimental-radio-group to v0.8.1
|
|
23
|
+
- Bump @fluentui-react-native/experimental-tabs to v0.8.3
|
|
24
|
+
- Bump @fluentui-react-native/experimental-text to v0.11.25
|
|
25
|
+
- Bump @fluentui-react-native/icon to v0.15.3
|
|
26
|
+
- Bump @fluentui-react-native/menu to v1.0.78
|
|
27
|
+
- Bump @fluentui-react-native/notification to v0.19.3
|
|
28
|
+
- Bump @fluentui-react-native/stack to v0.7.27
|
|
29
|
+
- Bump @fluentui-react-native/switch to v0.7.6
|
|
30
|
+
- Bump @fluentui-react-native/text to v0.17.0
|
|
31
|
+
- Bump @fluentui-react-native/theme-tokens to v0.21.3
|
|
32
|
+
- Bump @fluentui/react-native to v0.33.3
|
|
33
|
+
|
|
34
|
+
## 0.108.1
|
|
35
|
+
|
|
36
|
+
Mon, 28 Nov 2022 17:44:48 GMT
|
|
37
|
+
|
|
38
|
+
### Patches
|
|
39
|
+
|
|
40
|
+
- Fix FocusTrapZone test page component not trapping focus (winlarry@microsoft.com)
|
|
41
|
+
- Bump @fluentui-react-native/theme-tokens to v0.21.3
|
|
42
|
+
|
|
7
43
|
## 0.108.0
|
|
8
44
|
|
|
9
|
-
Mon, 28 Nov 2022 11:
|
|
45
|
+
Mon, 28 Nov 2022 11:51:05 GMT
|
|
10
46
|
|
|
11
47
|
### Minor changes
|
|
12
48
|
|
package/ios/Podfile
CHANGED
|
@@ -24,6 +24,9 @@ use_test_app! do |target|
|
|
|
24
24
|
target.app do
|
|
25
25
|
platform :ios, '14.0'
|
|
26
26
|
|
|
27
|
+
# There is a bug where autolinking isn't working, do specify these manually.
|
|
28
|
+
pod 'FRNFontMetrics', :path => '../../../packages/experimental/NativeFontMetrics/FRNFontMetrics.podspec'
|
|
29
|
+
|
|
27
30
|
script_phase name: 'Start Packager',
|
|
28
31
|
script: start_packager_script,
|
|
29
32
|
execution_position: :before_compile
|
package/ios/Podfile.lock
CHANGED
|
@@ -10,12 +10,14 @@ PODS:
|
|
|
10
10
|
- React-jsi (= 0.68.5)
|
|
11
11
|
- ReactCommon/turbomodule/core (= 0.68.5)
|
|
12
12
|
- fmt (6.2.1)
|
|
13
|
-
- FRNAvatar (0.16.
|
|
13
|
+
- FRNAvatar (0.16.24):
|
|
14
14
|
- MicrosoftFluentUI (= 0.8.3)
|
|
15
15
|
- React
|
|
16
16
|
- FRNDatePicker (0.7.3):
|
|
17
17
|
- MicrosoftFluentUI (= 0.8.3)
|
|
18
18
|
- React
|
|
19
|
+
- FRNFontMetrics (0.2.0):
|
|
20
|
+
- React
|
|
19
21
|
- glog (0.3.5)
|
|
20
22
|
- MicrosoftFluentUI (0.8.3):
|
|
21
23
|
- MicrosoftFluentUI/ActivityIndicator_ios (= 0.8.3)
|
|
@@ -384,7 +386,7 @@ PODS:
|
|
|
384
386
|
- glog
|
|
385
387
|
- react-native-menu (0.1.2):
|
|
386
388
|
- React
|
|
387
|
-
- react-native-slider (4.3.
|
|
389
|
+
- react-native-slider (4.3.3):
|
|
388
390
|
- React-Core
|
|
389
391
|
- React-perflogger (0.68.5)
|
|
390
392
|
- React-RCTActionSheet (0.68.5):
|
|
@@ -468,6 +470,7 @@ DEPENDENCIES:
|
|
|
468
470
|
- FBReactNativeSpec (from `../../../node_modules/react-native/React/FBReactNativeSpec`)
|
|
469
471
|
- FRNAvatar (from `../../../packages/experimental/Avatar`)
|
|
470
472
|
- FRNDatePicker (from `../../../packages/experimental/NativeDatePicker`)
|
|
473
|
+
- FRNFontMetrics (from `../../../packages/experimental/NativeFontMetrics/FRNFontMetrics.podspec`)
|
|
471
474
|
- glog (from `../../../node_modules/react-native/third-party-podspecs/glog.podspec`)
|
|
472
475
|
- RCT-Folly (from `../../../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
|
|
473
476
|
- RCTRequired (from `../../../node_modules/react-native/Libraries/RCTRequired`)
|
|
@@ -522,6 +525,8 @@ EXTERNAL SOURCES:
|
|
|
522
525
|
:path: "../../../packages/experimental/Avatar"
|
|
523
526
|
FRNDatePicker:
|
|
524
527
|
:path: "../../../packages/experimental/NativeDatePicker"
|
|
528
|
+
FRNFontMetrics:
|
|
529
|
+
:path: "../../../packages/experimental/NativeFontMetrics/FRNFontMetrics.podspec"
|
|
525
530
|
glog:
|
|
526
531
|
:podspec: "../../../node_modules/react-native/third-party-podspecs/glog.podspec"
|
|
527
532
|
RCT-Folly:
|
|
@@ -595,8 +600,9 @@ SPEC CHECKSUMS:
|
|
|
595
600
|
FBLazyVector: 2b47ff52037bd9ae07cc9b051c9975797814b736
|
|
596
601
|
FBReactNativeSpec: dd89c4a5591e20015aa55c6efbf9c7740a83efbf
|
|
597
602
|
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
|
|
598
|
-
FRNAvatar:
|
|
603
|
+
FRNAvatar: 3911021ed95a08f19e0ee696712aa48b6dff010a
|
|
599
604
|
FRNDatePicker: 241cd55b8d2b63d4427d782951f31504f09fbe1a
|
|
605
|
+
FRNFontMetrics: 472e7952e454ece364a91babd8bb2a32219676e7
|
|
600
606
|
glog: 476ee3e89abb49e07f822b48323c51c57124b572
|
|
601
607
|
MicrosoftFluentUI: e30487dd18aba04beeed4caf1ce1988073f8b03a
|
|
602
608
|
RCT-Folly: 4d8508a426467c48885f1151029bc15fa5d7b3b8
|
|
@@ -613,7 +619,7 @@ SPEC CHECKSUMS:
|
|
|
613
619
|
React-jsinspector: eb202e43b3879aba9a14f3f65788aec85d4e1ea9
|
|
614
620
|
React-logger: 98f663b292a60967ebbc6d803ae96c1381183b6d
|
|
615
621
|
react-native-menu: 9fe07f72e075b250295eeae25425490cc9608951
|
|
616
|
-
react-native-slider:
|
|
622
|
+
react-native-slider: 7d19220da2f2ae7cbb9aa80127cb73c597fa221f
|
|
617
623
|
React-perflogger: 0458a87ea9a7342079e7a31b0d32b3734fb8415f
|
|
618
624
|
React-RCTActionSheet: 22538001ea2926dea001111dd2846c13a0730bc9
|
|
619
625
|
React-RCTAnimation: 732ce66878d4aa151d56a0d142b1105aa12fd313
|
|
@@ -632,6 +638,6 @@ SPEC CHECKSUMS:
|
|
|
632
638
|
RNSVG: 302bfc9905bd8122f08966dc2ce2d07b7b52b9f8
|
|
633
639
|
Yoga: c4d61225a466f250c35c1ee78d2d0b3d41fe661c
|
|
634
640
|
|
|
635
|
-
PODFILE CHECKSUM:
|
|
641
|
+
PODFILE CHECKSUM: 819f14a4e3e6e335a0b1993fe37edad50db02d86
|
|
636
642
|
|
|
637
643
|
COCOAPODS: 1.11.3
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FluentTester.d.ts","sourceRoot":"","sources":["../src/FluentTester.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAkB/B,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AA8BD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"FluentTester.d.ts","sourceRoot":"","sources":["../src/FluentTester.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAkB/B,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AA8BD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CA8LnE,CAAC"}
|
package/lib/FluentTester.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
-
import {
|
|
2
|
+
import { Separator, Text } from '@fluentui/react-native';
|
|
3
3
|
import { ButtonV1 as Button } from '@fluentui-react-native/button';
|
|
4
4
|
import { themedStyleSheet } from '@fluentui-react-native/themed-stylesheet';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -62,6 +62,13 @@ export var FluentTester = function (props) {
|
|
|
62
62
|
};
|
|
63
63
|
var TestComponent = selectedTestIndex == -1 ? EmptyComponent : sortedTestComponents[selectedTestIndex].component;
|
|
64
64
|
var themedStyles = getThemedStyles(useTheme());
|
|
65
|
+
// This is used to initially bring focus to the app on win32
|
|
66
|
+
var focusOnMountRef = React.useRef();
|
|
67
|
+
React.useEffect(function () {
|
|
68
|
+
if (Platform.OS === 'win32') {
|
|
69
|
+
focusOnMountRef.current.focus();
|
|
70
|
+
}
|
|
71
|
+
}, []);
|
|
65
72
|
var RootView = Platform.select({
|
|
66
73
|
ios: SafeAreaView,
|
|
67
74
|
default: View,
|
|
@@ -88,7 +95,7 @@ export var FluentTester = function (props) {
|
|
|
88
95
|
var TestList = function () {
|
|
89
96
|
return (React.createElement(View, { style: fluentTesterStyles.testList },
|
|
90
97
|
React.createElement(ScrollView, { contentContainerStyle: fluentTesterStyles.testListContainerStyle, testID: TESTPAGE_BUTTONS_SCROLLVIEWER }, sortedTestComponents.map(function (description, index) {
|
|
91
|
-
return (React.createElement(Button, { appearance: "subtle", key: index, disabled: index == selectedTestIndex, onClick: function () { return setSelectedTestIndex(index); }, style: fluentTesterStyles.testListItem, testID: description.testPage }, description.name));
|
|
98
|
+
return (React.createElement(Button, __assign({ appearance: "subtle", key: index, disabled: index == selectedTestIndex, onClick: function () { return setSelectedTestIndex(index); }, style: fluentTesterStyles.testListItem, testID: description.testPage }, (index === 0 && { componentRef: focusOnMountRef })), description.name));
|
|
92
99
|
})),
|
|
93
100
|
React.createElement(TestListSeparator, { vertical: true, style: fluentTesterStyles.testListSeparator })));
|
|
94
101
|
};
|
|
@@ -127,8 +134,8 @@ export var FluentTester = function (props) {
|
|
|
127
134
|
};
|
|
128
135
|
return (
|
|
129
136
|
// TODO: Figure out why making this view accessible breaks element querying on iOS.
|
|
130
|
-
React.createElement(View, { accessible: Platform.OS !== 'ios', testID: ROOT_VIEW, style: commonTestStyles.flex },
|
|
131
|
-
React.createElement(
|
|
132
|
-
|
|
137
|
+
React.createElement(View, { accessible: Platform.OS !== 'ios', testID: ROOT_VIEW, style: commonTestStyles.flex },
|
|
138
|
+
React.createElement(RootView, { style: themedStyles.root },
|
|
139
|
+
React.createElement(TesterContent, null))));
|
|
133
140
|
};
|
|
134
141
|
//# sourceMappingURL=FluentTester.js.map
|
package/lib/FluentTester.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FluentTester.js","sourceRoot":"","sources":["../src/FluentTester.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"FluentTester.js","sourceRoot":"","sources":["../src/FluentTester.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,QAAQ,IAAI,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,IAAI,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACrG,OAAO,EAAE,aAAa,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC9F,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACpG,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,kDAAkD;AAClD;;;GAGG;AAEH,IAAM,cAAc,GAA4B;IAC9C,OAAO,oBAAC,MAAM,IAAC,KAAK,EAAE,kBAAkB,CAAC,MAAM,wCAA4C,CAAC;AAC9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oB,CAAC,CAAC,CAAC,oBAAC,uBAAuB,OAAG,CAAC,CAAC,CAAC,oBAAC,iBAAiB,OAAG,CACtE,CACF,CACR,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO;IACL,mFAAmF;IACnF,oBAAC,IAAI,IAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,KAAK,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,gBAAgB,CAAC,IAAI;QACtF,oBAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,CAAC,IAAI;YAChC,oBAAC,aAAa,OAAG,CACR,CACN,CACR,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FluentTester.d.ts","sourceRoot":"","sources":["../src/FluentTester.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAkB/B,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AA8BD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"FluentTester.d.ts","sourceRoot":"","sources":["../src/FluentTester.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAkB/B,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AA8BD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CA8LnE,CAAC"}
|
|
@@ -65,6 +65,13 @@ var FluentTester = function (props) {
|
|
|
65
65
|
};
|
|
66
66
|
var TestComponent = selectedTestIndex == -1 ? EmptyComponent : sortedTestComponents[selectedTestIndex].component;
|
|
67
67
|
var themedStyles = getThemedStyles((0, theme_types_1.useTheme)());
|
|
68
|
+
// This is used to initially bring focus to the app on win32
|
|
69
|
+
var focusOnMountRef = React.useRef();
|
|
70
|
+
React.useEffect(function () {
|
|
71
|
+
if (react_native_2.Platform.OS === 'win32') {
|
|
72
|
+
focusOnMountRef.current.focus();
|
|
73
|
+
}
|
|
74
|
+
}, []);
|
|
68
75
|
var RootView = react_native_2.Platform.select({
|
|
69
76
|
ios: react_native_2.SafeAreaView,
|
|
70
77
|
default: react_native_2.View,
|
|
@@ -91,7 +98,7 @@ var FluentTester = function (props) {
|
|
|
91
98
|
var TestList = function () {
|
|
92
99
|
return (React.createElement(react_native_2.View, { style: styles_1.fluentTesterStyles.testList },
|
|
93
100
|
React.createElement(react_native_2.ScrollView, { contentContainerStyle: styles_1.fluentTesterStyles.testListContainerStyle, testID: consts_1.TESTPAGE_BUTTONS_SCROLLVIEWER }, sortedTestComponents.map(function (description, index) {
|
|
94
|
-
return (React.createElement(button_1.ButtonV1, { appearance: "subtle", key: index, disabled: index == selectedTestIndex, onClick: function () { return setSelectedTestIndex(index); }, style: styles_1.fluentTesterStyles.testListItem, testID: description.testPage }, description.name));
|
|
101
|
+
return (React.createElement(button_1.ButtonV1, (0, tslib_1.__assign)({ appearance: "subtle", key: index, disabled: index == selectedTestIndex, onClick: function () { return setSelectedTestIndex(index); }, style: styles_1.fluentTesterStyles.testListItem, testID: description.testPage }, (index === 0 && { componentRef: focusOnMountRef })), description.name));
|
|
95
102
|
})),
|
|
96
103
|
React.createElement(TestListSeparator, { vertical: true, style: styles_1.fluentTesterStyles.testListSeparator })));
|
|
97
104
|
};
|
|
@@ -130,9 +137,9 @@ var FluentTester = function (props) {
|
|
|
130
137
|
};
|
|
131
138
|
return (
|
|
132
139
|
// TODO: Figure out why making this view accessible breaks element querying on iOS.
|
|
133
|
-
React.createElement(react_native_2.View, { accessible: react_native_2.Platform.OS !== 'ios', testID: consts_2.ROOT_VIEW, style: styles_1.commonTestStyles.flex },
|
|
134
|
-
React.createElement(
|
|
135
|
-
|
|
140
|
+
React.createElement(react_native_2.View, { accessible: react_native_2.Platform.OS !== 'ios', testID: consts_2.ROOT_VIEW, style: styles_1.commonTestStyles.flex },
|
|
141
|
+
React.createElement(RootView, { style: themedStyles.root },
|
|
142
|
+
React.createElement(TesterContent, null))));
|
|
136
143
|
};
|
|
137
144
|
exports.FluentTester = FluentTester;
|
|
138
145
|
//# sourceMappingURL=FluentTester.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FluentTester.js","sourceRoot":"","sources":["../src/FluentTester.tsx"],"names":[],"mappings":";;;;AACA,
|
|
1
|
+
{"version":3,"file":"FluentTester.js","sourceRoot":"","sources":["../src/FluentTester.tsx"],"names":[],"mappings":";;;;AACA,uDAAyD;AACzD,wDAAmE;AACnE,8EAA4E;AAC5E,wDAA+B;AAC/B,6CAAqG;AACrG,yDAA8F;AAC9F,yDAAoG;AACpG,kEAA8D;AAC9D,qDAAoD;AACpD,yCAAoC;AACpC,8CAAgD;AAEhD,kDAAkD;AAClD;;;GAGG;AAEH,IAAM,cAAc,GAA4B;IAC9C,OAAO,oBAAC,mBAAM,IAAC,KAAK,EAAE,2BAAkB,CAAC,MAAM,wCAA4C,CAAC;AAC9F,CAAC,CAAC;AAMF,IAAM,eAAe,GAAG,IAAA,oCAAgB,EAAC,UAAC,CAAQ;IAChD,OAAO;QACL,IAAI,EAAE;YACJ,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,UAAU;YACpC,IAAI,EAAE,CAAC;YACP,QAAQ,EAAE,CAAC;YACX,aAAa,EAAE,QAAQ;YACvB,cAAc,EAAE,YAAY;YAC5B,UAAU,EAAE,SAAS;YACrB,OAAO,EAAE,CAAC;SACX;QACD,aAAa,EAAE;YACb,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,WAAW;YACjC,WAAW,EAAE,GAAG;SACjB;KACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,IAAM,eAAe,GAAG,wBAAS,CAAC,SAAS,CAAC,UAAC,CAAC,IAAK,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}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.109.0",
|
|
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>",
|
|
@@ -38,41 +38,41 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@fluentui-react-native/android-theme": ">=0.14.4 <1.0.0",
|
|
40
40
|
"@fluentui-react-native/apple-theme": ">=0.16.10 <1.0.0",
|
|
41
|
-
"@fluentui-react-native/avatar": "^1.3.
|
|
42
|
-
"@fluentui-react-native/badge": ">=0.2.
|
|
43
|
-
"@fluentui-react-native/button": ">=0.32.
|
|
41
|
+
"@fluentui-react-native/avatar": "^1.3.3",
|
|
42
|
+
"@fluentui-react-native/badge": ">=0.2.3 <1.0.0",
|
|
43
|
+
"@fluentui-react-native/button": ">=0.32.1 <1.0.0",
|
|
44
44
|
"@fluentui-react-native/default-theme": ">=0.16.12 <1.0.0",
|
|
45
|
-
"@fluentui-react-native/dropdown": ">=0.5.
|
|
45
|
+
"@fluentui-react-native/dropdown": ">=0.5.19 <1.0.0",
|
|
46
46
|
"@fluentui-react-native/experimental-activity-indicator": ">=0.6.21 <1.0.0",
|
|
47
47
|
"@fluentui-react-native/experimental-avatar": ">=0.16.25 <1.0.0",
|
|
48
|
-
"@fluentui-react-native/experimental-button": "0.16.
|
|
49
|
-
"@fluentui-react-native/experimental-checkbox": "0.13.
|
|
48
|
+
"@fluentui-react-native/experimental-button": "0.16.59",
|
|
49
|
+
"@fluentui-react-native/experimental-checkbox": "0.13.6",
|
|
50
50
|
"@fluentui-react-native/experimental-expander": "0.4.23",
|
|
51
51
|
"@fluentui-react-native/experimental-icon": ">=0.0.3 <1.0.0",
|
|
52
|
-
"@fluentui-react-native/experimental-link": "^0.2.
|
|
53
|
-
"@fluentui-react-native/experimental-menu-button": ">=0.5.
|
|
52
|
+
"@fluentui-react-native/experimental-link": "^0.2.3",
|
|
53
|
+
"@fluentui-react-native/experimental-menu-button": ">=0.5.20 <1.0.0",
|
|
54
54
|
"@fluentui-react-native/experimental-native-date-picker": ">=0.7.3 <1.0.0",
|
|
55
|
-
"@fluentui-react-native/experimental-radio-group": "^0.8.
|
|
55
|
+
"@fluentui-react-native/experimental-radio-group": "^0.8.1",
|
|
56
56
|
"@fluentui-react-native/experimental-shadow": "0.2.45",
|
|
57
57
|
"@fluentui-react-native/experimental-shimmer": "0.7.22",
|
|
58
|
-
"@fluentui-react-native/experimental-tabs": "0.8.
|
|
59
|
-
"@fluentui-react-native/experimental-text": ">=0.11.
|
|
58
|
+
"@fluentui-react-native/experimental-tabs": "0.8.3",
|
|
59
|
+
"@fluentui-react-native/experimental-text": ">=0.11.25 <1.0.0",
|
|
60
60
|
"@fluentui-react-native/framework": ">=0.8.21 <1.0.0",
|
|
61
|
-
"@fluentui-react-native/icon": "0.15.
|
|
61
|
+
"@fluentui-react-native/icon": "0.15.3",
|
|
62
62
|
"@fluentui-react-native/interactive-hooks": ">=0.21.2 <1.0.0",
|
|
63
|
-
"@fluentui-react-native/menu": "^1.0.
|
|
63
|
+
"@fluentui-react-native/menu": "^1.0.78",
|
|
64
64
|
"@fluentui-react-native/merge-props": ">=0.5.1 <1.0.0",
|
|
65
|
-
"@fluentui-react-native/notification": "0.19.
|
|
66
|
-
"@fluentui-react-native/stack": ">=0.7.
|
|
67
|
-
"@fluentui-react-native/switch": "^0.7.
|
|
68
|
-
"@fluentui-react-native/text": ">=0.
|
|
65
|
+
"@fluentui-react-native/notification": "0.19.3",
|
|
66
|
+
"@fluentui-react-native/stack": ">=0.7.27 <1.0.0",
|
|
67
|
+
"@fluentui-react-native/switch": "^0.7.6",
|
|
68
|
+
"@fluentui-react-native/text": ">=0.17.0 <1.0.0",
|
|
69
69
|
"@fluentui-react-native/theme": ">=0.7.8 <1.0.0",
|
|
70
70
|
"@fluentui-react-native/theme-tokens": "^0.21.2",
|
|
71
71
|
"@fluentui-react-native/theme-types": ">=0.23.1 <1.0.0",
|
|
72
72
|
"@fluentui-react-native/themed-stylesheet": "^1.4.1",
|
|
73
73
|
"@fluentui-react-native/theming-utils": ">=0.18.3 <1.0.0",
|
|
74
74
|
"@fluentui-react-native/win32-theme": ">=0.23.2 <1.0.0",
|
|
75
|
-
"@fluentui/react-native": ">=0.33.
|
|
75
|
+
"@fluentui/react-native": ">=0.33.3 <1.0.0",
|
|
76
76
|
"@fortawesome/fontawesome-svg-core": "^6.2.0",
|
|
77
77
|
"@fortawesome/free-solid-svg-icons": "^6.2.0",
|
|
78
78
|
"@fortawesome/react-native-fontawesome": "^0.3.0",
|
package/src/FluentTester.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Theme } from '@fluentui-react-native/framework';
|
|
2
|
-
import {
|
|
2
|
+
import { Separator, Text } from '@fluentui/react-native';
|
|
3
3
|
import { ButtonV1 as Button } from '@fluentui-react-native/button';
|
|
4
4
|
import { themedStyleSheet } from '@fluentui-react-native/themed-stylesheet';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -78,6 +78,15 @@ export const FluentTester: React.FunctionComponent<FluentTesterProps> = (props:
|
|
|
78
78
|
|
|
79
79
|
const themedStyles = getThemedStyles(useTheme());
|
|
80
80
|
|
|
81
|
+
// This is used to initially bring focus to the app on win32
|
|
82
|
+
const focusOnMountRef = React.useRef<View>();
|
|
83
|
+
|
|
84
|
+
React.useEffect(() => {
|
|
85
|
+
if (Platform.OS === ('win32' as any)) {
|
|
86
|
+
focusOnMountRef.current.focus();
|
|
87
|
+
}
|
|
88
|
+
}, []);
|
|
89
|
+
|
|
81
90
|
const RootView = Platform.select({
|
|
82
91
|
ios: SafeAreaView,
|
|
83
92
|
default: View,
|
|
@@ -147,6 +156,8 @@ export const FluentTester: React.FunctionComponent<FluentTesterProps> = (props:
|
|
|
147
156
|
onClick={() => setSelectedTestIndex(index)}
|
|
148
157
|
style={fluentTesterStyles.testListItem}
|
|
149
158
|
testID={description.testPage}
|
|
159
|
+
// This ref so focus can be set on it when the app mounts in win32. Without this, focus won't be set anywhere.
|
|
160
|
+
{...(index === 0 && { componentRef: focusOnMountRef })}
|
|
150
161
|
>
|
|
151
162
|
{description.name}
|
|
152
163
|
</Button>
|
|
@@ -227,15 +238,9 @@ export const FluentTester: React.FunctionComponent<FluentTesterProps> = (props:
|
|
|
227
238
|
return (
|
|
228
239
|
// TODO: Figure out why making this view accessible breaks element querying on iOS.
|
|
229
240
|
<View accessible={Platform.OS !== 'ios'} testID={ROOT_VIEW} style={commonTestStyles.flex}>
|
|
230
|
-
{
|
|
231
|
-
<
|
|
232
|
-
|
|
233
|
-
</FocusTrapZone>
|
|
234
|
-
) : (
|
|
235
|
-
<RootView style={themedStyles.root}>
|
|
236
|
-
<TesterContent />
|
|
237
|
-
</RootView>
|
|
238
|
-
)}
|
|
241
|
+
<RootView style={themedStyles.root}>
|
|
242
|
+
<TesterContent />
|
|
243
|
+
</RootView>
|
|
239
244
|
</View>
|
|
240
245
|
);
|
|
241
246
|
};
|