Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from microsoft:main #771

Merged
merged 2 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions apps/fluent-tester/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,57 @@
{
"name": "@fluentui-react-native/tester",
"entries": [
{
"date": "Wed, 20 Sep 2023 18:30:43 GMT",
"version": "0.156.1",
"tag": "@fluentui-react-native/tester_v0.156.1",
"comments": {
"patch": [
{
"author": "beachball",
"package": "@fluentui-react-native/tester",
"comment": "Bump @fluentui-react-native/button to v0.35.5",
"commit": "not available"
},
{
"author": "beachball",
"package": "@fluentui-react-native/tester",
"comment": "Bump @fluentui-react-native/dropdown to v0.8.23",
"commit": "not available"
},
{
"author": "beachball",
"package": "@fluentui-react-native/tester",
"comment": "Bump @fluentui-react-native/experimental-button to v0.18.16",
"commit": "not available"
},
{
"author": "beachball",
"package": "@fluentui-react-native/tester",
"comment": "Bump @fluentui-react-native/experimental-menu-button to v0.7.23",
"commit": "not available"
},
{
"author": "beachball",
"package": "@fluentui-react-native/tester",
"comment": "Bump @fluentui-react-native/menu to v1.11.22",
"commit": "not available"
},
{
"author": "beachball",
"package": "@fluentui-react-native/tester",
"comment": "Bump @fluentui-react-native/notification to v0.23.16",
"commit": "not available"
},
{
"author": "beachball",
"package": "@fluentui-react-native/tester",
"comment": "Bump @fluentui/react-native to v0.37.26",
"commit": "not available"
}
]
}
},
{
"date": "Tue, 19 Sep 2023 19:31:59 GMT",
"version": "0.156.0",
Expand Down
16 changes: 15 additions & 1 deletion apps/fluent-tester/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
# Change Log - @fluentui-react-native/tester

This log was last generated on Tue, 19 Sep 2023 19:31:59 GMT and should not be manually modified.
This log was last generated on Wed, 20 Sep 2023 18:30:43 GMT and should not be manually modified.

<!-- Start content -->

## 0.156.1

Wed, 20 Sep 2023 18:30:43 GMT

### Patches

- Bump @fluentui-react-native/button to v0.35.5
- Bump @fluentui-react-native/dropdown to v0.8.23
- Bump @fluentui-react-native/experimental-button to v0.18.16
- Bump @fluentui-react-native/experimental-menu-button to v0.7.23
- Bump @fluentui-react-native/menu to v1.11.22
- Bump @fluentui-react-native/notification to v0.23.16
- Bump @fluentui/react-native to v0.37.26

## 0.156.0

Tue, 19 Sep 2023 19:31:59 GMT
Expand Down
16 changes: 8 additions & 8 deletions apps/fluent-tester/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fluentui-react-native/tester",
"version": "0.156.0",
"version": "0.156.1",
"description": "A test app to test FluentUI React Native Components during development",
"license": "MIT",
"author": "Microsoft <[email protected]>",
Expand Down Expand Up @@ -41,19 +41,19 @@
"@fluentui-react-native/apple-theme": ">=0.21.9 <1.0.0",
"@fluentui-react-native/avatar": "^1.10.12",
"@fluentui-react-native/badge": ">=0.7.8 <1.0.0",
"@fluentui-react-native/button": ">=0.35.4 <1.0.0",
"@fluentui-react-native/button": ">=0.35.5 <1.0.0",
"@fluentui-react-native/chip": "^0.2.3",
"@fluentui-react-native/default-theme": ">=0.19.7 <1.0.0",
"@fluentui-react-native/divider": "^0.5.10",
"@fluentui-react-native/drawer": "^0.2.9",
"@fluentui-react-native/dropdown": ">=0.8.22 <1.0.0",
"@fluentui-react-native/dropdown": ">=0.8.23 <1.0.0",
"@fluentui-react-native/experimental-activity-indicator": ">=0.8.8 <1.0.0",
"@fluentui-react-native/experimental-appearance-additions": "^0.5.8",
"@fluentui-react-native/experimental-avatar": ">=0.19.7 <1.0.0",
"@fluentui-react-native/experimental-button": "0.18.15",
"@fluentui-react-native/experimental-button": "0.18.16",
"@fluentui-react-native/experimental-checkbox": "0.15.12",
"@fluentui-react-native/experimental-expander": "0.6.9",
"@fluentui-react-native/experimental-menu-button": ">=0.7.22 <1.0.0",
"@fluentui-react-native/experimental-menu-button": ">=0.7.23 <1.0.0",
"@fluentui-react-native/experimental-native-date-picker": ">=0.9.0 <1.0.0",
"@fluentui-react-native/experimental-shadow": "0.4.8",
"@fluentui-react-native/experimental-shimmer": "0.11.2",
Expand All @@ -63,9 +63,9 @@
"@fluentui-react-native/icon": "0.19.10",
"@fluentui-react-native/input": "^0.4.3",
"@fluentui-react-native/interactive-hooks": ">=0.24.8 <1.0.0",
"@fluentui-react-native/menu": "^1.11.21",
"@fluentui-react-native/menu": "^1.11.22",
"@fluentui-react-native/merge-props": ">=0.7.1 <1.0.0",
"@fluentui-react-native/notification": "0.23.15",
"@fluentui-react-native/notification": "0.23.16",
"@fluentui-react-native/radio-group": ">=0.19.2 <1.0.0",
"@fluentui-react-native/separator": "^0.16.6",
"@fluentui-react-native/spinner": "^0.7.10",
Expand All @@ -80,7 +80,7 @@
"@fluentui-react-native/theming-utils": ">=0.24.4 <1.0.0",
"@fluentui-react-native/vibrancy-view": ">=0.0.3 <1.0.0",
"@fluentui-react-native/win32-theme": ">=0.27.6 <1.0.0",
"@fluentui/react-native": ">=0.37.25 <1.0.0",
"@fluentui/react-native": ">=0.37.26 <1.0.0",
"@fortawesome/fontawesome-svg-core": "^6.2.0",
"@fortawesome/free-solid-svg-icons": "^6.2.0",
"@fortawesome/react-native-fontawesome": "^0.3.0",
Expand Down
15 changes: 15 additions & 0 deletions apps/win32/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"name": "@fluentui-react-native/tester-win32",
"entries": [
{
"date": "Wed, 20 Sep 2023 18:30:43 GMT",
"version": "0.36.3",
"tag": "@fluentui-react-native/tester-win32_v0.36.3",
"comments": {
"patch": [
{
"author": "beachball",
"package": "@fluentui-react-native/tester-win32",
"comment": "Bump @fluentui-react-native/tester to v0.156.1",
"commit": "not available"
}
]
}
},
{
"date": "Tue, 19 Sep 2023 19:31:59 GMT",
"version": "0.36.2",
Expand Down
10 changes: 9 additions & 1 deletion apps/win32/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# Change Log - @fluentui-react-native/tester-win32

This log was last generated on Tue, 19 Sep 2023 19:31:59 GMT and should not be manually modified.
This log was last generated on Wed, 20 Sep 2023 18:30:43 GMT and should not be manually modified.

<!-- Start content -->

## 0.36.3

Wed, 20 Sep 2023 18:30:43 GMT

### Patches

- Bump @fluentui-react-native/tester to v0.156.1

## 0.36.2

Tue, 19 Sep 2023 19:31:59 GMT
Expand Down
4 changes: 2 additions & 2 deletions apps/win32/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fluentui-react-native/tester-win32",
"version": "0.36.2",
"version": "0.36.3",
"main": "src/index.tsx",
"module": "src/index.tsx",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -30,7 +30,7 @@
"directory": "apps/win32"
},
"dependencies": {
"@fluentui-react-native/tester": "^0.156.0",
"@fluentui-react-native/tester": "^0.156.1",
"react": "18.2.0",
"react-native": "^0.71.0",
"react-native-svg": "^13.9.0",
Expand Down
15 changes: 15 additions & 0 deletions packages/components/Button/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"name": "@fluentui-react-native/button",
"entries": [
{
"date": "Wed, 20 Sep 2023 18:30:43 GMT",
"version": "0.35.5",
"tag": "@fluentui-react-native/button_v0.35.5",
"comments": {
"patch": [
{
"author": "[email protected]",
"package": "@fluentui-react-native/button",
"commit": "9e228f9e210dbf543b6193565bd3c050a7f55925",
"comment": "[Button][macOS] Don't call onClick with onKeyDown"
}
]
}
},
{
"date": "Wed, 13 Sep 2023 17:08:13 GMT",
"version": "0.35.4",
Expand Down
10 changes: 9 additions & 1 deletion packages/components/Button/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# Change Log - @fluentui-react-native/button

This log was last generated on Wed, 13 Sep 2023 17:08:13 GMT and should not be manually modified.
This log was last generated on Wed, 20 Sep 2023 18:30:43 GMT and should not be manually modified.

<!-- Start content -->

## 0.35.5

Wed, 20 Sep 2023 18:30:43 GMT

### Patches

- [Button][macOS] Don't call onClick with onKeyDown ([email protected])

## 0.35.4

Wed, 13 Sep 2023 17:08:13 GMT
Expand Down
2 changes: 1 addition & 1 deletion packages/components/Button/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fluentui-react-native/button",
"version": "0.35.4",
"version": "0.35.5",
"description": "A cross-platform Button component using the Fluent Design System",
"main": "src/index.ts",
"module": "src/index.ts",
Expand Down
16 changes: 12 additions & 4 deletions packages/components/Button/src/useButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,22 @@ export const useButton = (props: ButtonProps): ButtonInfo => {
);
const onKeyPress = React.useCallback(
(e) => {
if (isProcessingKeyboardInvocation) {
onClick?.(e);
isProcessingKeyboardInvocation = false;
if (shouldOnlyFireIfPressed) {
if (isProcessingKeyboardInvocation) {
onClick?.(e);
isProcessingKeyboardInvocation = false;
}
} else {
if (Platform.OS === 'macos') {
// Do nothing as macOS's pressable already calls onPress with onKeyDown
} else {
onClick?.(e);
}
}
},
[onClick],
);
const onKeyProps = useKeyProps(shouldOnlyFireIfPressed ? onKeyPress : onClick, ' ', 'Enter');
const onKeyProps = useKeyProps(onKeyPress, ' ', 'Enter');

const hasTogglePattern = props.accessibilityActions && !!props.accessibilityActions.find((action) => action.name === 'Toggle');

Expand Down
15 changes: 15 additions & 0 deletions packages/components/Menu/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"name": "@fluentui-react-native/menu",
"entries": [
{
"date": "Wed, 20 Sep 2023 18:30:43 GMT",
"version": "1.11.22",
"tag": "@fluentui-react-native/menu_v1.11.22",
"comments": {
"patch": [
{
"author": "beachball",
"package": "@fluentui-react-native/menu",
"comment": "Bump @fluentui-react-native/button to v0.35.5",
"commit": "not available"
}
]
}
},
{
"date": "Wed, 13 Sep 2023 17:08:13 GMT",
"version": "1.11.21",
Expand Down
10 changes: 9 additions & 1 deletion packages/components/Menu/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# Change Log - @fluentui-react-native/menu

This log was last generated on Wed, 13 Sep 2023 17:08:13 GMT and should not be manually modified.
This log was last generated on Wed, 20 Sep 2023 18:30:43 GMT and should not be manually modified.

<!-- Start content -->

## 1.11.22

Wed, 20 Sep 2023 18:30:43 GMT

### Patches

- Bump @fluentui-react-native/button to v0.35.5

## 1.11.21

Wed, 13 Sep 2023 17:08:13 GMT
Expand Down
4 changes: 2 additions & 2 deletions packages/components/Menu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fluentui-react-native/menu",
"version": "1.11.21",
"version": "1.11.22",
"description": "A cross-platform Menu component using the Fluent Design System",
"main": "src/index.ts",
"module": "src/index.ts",
Expand Down Expand Up @@ -39,7 +39,7 @@
"tslib": "^2.3.1"
},
"devDependencies": {
"@fluentui-react-native/button": ">=0.35.4 <1.0.0",
"@fluentui-react-native/button": ">=0.35.5 <1.0.0",
"@fluentui-react-native/eslint-config-rules": "^0.1.1",
"@fluentui-react-native/scripts": "^0.1.1",
"@fluentui-react-native/test-tools": ">=0.1.1 <1.0.0",
Expand Down
15 changes: 15 additions & 0 deletions packages/components/MenuButton/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"name": "@fluentui-react-native/menu-button",
"entries": [
{
"date": "Wed, 20 Sep 2023 18:30:43 GMT",
"version": "0.11.23",
"tag": "@fluentui-react-native/menu-button_v0.11.23",
"comments": {
"patch": [
{
"author": "beachball",
"package": "@fluentui-react-native/menu-button",
"comment": "Bump @fluentui-react-native/button to v0.35.5",
"commit": "not available"
}
]
}
},
{
"date": "Wed, 13 Sep 2023 17:08:13 GMT",
"version": "0.11.22",
Expand Down
10 changes: 9 additions & 1 deletion packages/components/MenuButton/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# Change Log - @fluentui-react-native/menu-button

This log was last generated on Wed, 13 Sep 2023 17:08:13 GMT and should not be manually modified.
This log was last generated on Wed, 20 Sep 2023 18:30:43 GMT and should not be manually modified.

<!-- Start content -->

## 0.11.23

Wed, 20 Sep 2023 18:30:43 GMT

### Patches

- Bump @fluentui-react-native/button to v0.35.5

## 0.11.22

Wed, 13 Sep 2023 17:08:13 GMT
Expand Down
4 changes: 2 additions & 2 deletions packages/components/MenuButton/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fluentui-react-native/menu-button",
"version": "0.11.22",
"version": "0.11.23",
"description": "A cross-platform MenuButton component using the Fluent Design System",
"license": "MIT",
"author": "Microsoft <[email protected]>",
Expand Down Expand Up @@ -29,7 +29,7 @@
"directory": "packages/components/MenuButton"
},
"dependencies": {
"@fluentui-react-native/button": "^0.35.4",
"@fluentui-react-native/button": "^0.35.5",
"@fluentui-react-native/component-cache": "^1.5.1",
"@fluentui-react-native/contextual-menu": "^0.22.17",
"@fluentui-react-native/icon": "^0.19.10",
Expand Down
Loading
Loading