Skip to content

Commit 01885fe

Browse files
authored
Merge pull request #5566 from GeekyAnts/release/3.4.23-rc.0
release 3.4.23-rc.0
2 parents f85d0a6 + b9f7e91 commit 01885fe

File tree

4 files changed

+14
-27
lines changed

4 files changed

+14
-27
lines changed

package.json

+3-6
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"prettier --write"
3737
]
3838
},
39-
"version": "3.4.22",
39+
"version": "3.4.23-rc.0",
4040
"license": "MIT",
4141
"private": false,
4242
"main": "lib/commonjs/index",
@@ -55,6 +55,7 @@
5555
"@types/jest": "^26.0.0",
5656
"@types/lodash.clonedeep": "^4.5.6",
5757
"@types/lodash.get": "^4.4.6",
58+
"@types/lodash.has": "^4.5.6",
5859
"@types/lodash.isempty": "^4.4.6",
5960
"@types/lodash.isequal": "^4.5.5",
6061
"@types/lodash.isnil": "^4.0.6",
@@ -66,6 +67,7 @@
6667
"@types/react": "^16.9.19",
6768
"@types/react-native": "~0.63.2",
6869
"@types/tinycolor2": "^1.4.2",
70+
"@types/use-subscription": "^1.0.0",
6971
"babel-plugin-transform-remove-console": "^6.9.4",
7072
"commitlint": "^8.3.5",
7173
"eslint": "^7.10.0",
@@ -174,8 +176,6 @@
174176
]
175177
},
176178
"dependencies": {
177-
"@react-aria/focus": "3.2.3",
178-
"@react-aria/utils": "^3.6.0",
179179
"@react-aria/visually-hidden": "^3.2.1",
180180
"@react-native-aria/button": "^0.2.4",
181181
"@react-native-aria/checkbox": "^0.2.2",
@@ -195,8 +195,6 @@
195195
"@react-stately/slider": "3.0.1",
196196
"@react-stately/tabs": "3.0.0-alpha.1",
197197
"@react-stately/toggle": "3.2.1",
198-
"@types/lodash.has": "^4.5.6",
199-
"@types/use-subscription": "^1.0.0",
200198
"inline-style-prefixer": "^6.0.1",
201199
"lodash.clonedeep": "^4.5.0",
202200
"lodash.get": "^4.4.2",
@@ -209,7 +207,6 @@
209207
"lodash.omit": "^4.5.0",
210208
"lodash.omitby": "^4.6.0",
211209
"lodash.pick": "^4.4.0",
212-
"react-native-keyboard-aware-scroll-view": "^0.9.5",
213210
"stable-hash": "^0.0.2",
214211
"tinycolor2": "^1.4.2",
215212
"use-subscription": "^1.8.0"

src/components/composites/Menu/useMenu.tsx

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { useFocusManager } from '@react-aria/focus';
2+
import { useFocusManager } from '@react-native-aria/focus';
33
import { useId } from '@react-native-aria/utils';
44
import { AccessibilityRole, Platform } from 'react-native';
55
import { ResponsiveQueryContext } from '../../../utils/useResponsiveQuery/ResponsiveQueryProvider';
@@ -42,12 +42,14 @@ export const useMenu = () => {
4242
switch (e.key) {
4343
case 'ArrowDown': {
4444
e.preventDefault();
45-
focusManager.focusNext({ wrap: true });
45+
//@ts-ignore
46+
focusManager?.focusNext({ wrap: true });
4647
break;
4748
}
4849
case 'ArrowUp': {
4950
e.preventDefault();
50-
focusManager.focusPrevious({ wrap: true });
51+
//@ts-ignore
52+
focusManager?.focusPrevious({ wrap: true });
5153
break;
5254
}
5355
}

src/utils/useResponsiveQuery/useResponsiveQuery.web.tsx

+5-4
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,11 @@ const getResponsiveStyles = (
156156
const oldIdentifier = compiledStyle[key];
157157
compiledOrderedRules.forEach(([rules, _order]: any) => {
158158
// Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
159-
const newRule = rules[0].replace(
160-
'.' + oldIdentifier,
161-
newIdentifier
162-
);
159+
160+
let newRule = '';
161+
if (rules[0].includes(oldIdentifier)) {
162+
newRule = rules[0].replace('.' + oldIdentifier, newIdentifier);
163+
}
163164
mediaRules += newRule;
164165
});
165166
});

yarn.lock

+1-14
Original file line numberDiff line numberDiff line change
@@ -1957,7 +1957,7 @@
19571957
"@react-types/combobox" "3.0.0-alpha.1"
19581958
"@react-types/shared" "^3.4.0"
19591959

1960-
"@react-aria/focus@3.2.3", "@react-aria/focus@^3.2.2", "@react-aria/focus@^3.2.3":
1960+
"@react-aria/focus@^3.2.2", "@react-aria/focus@^3.2.3":
19611961
version "3.2.3"
19621962
resolved "https://registry.yarnpkg.com/@react-aria/focus/-/focus-3.2.3.tgz#3e4137498a7fb5235d056c30fd94ab4a82e73aea"
19631963
integrity sha512-+OWmJMivrq3f8ApWihH1KJYqYj3rZV34YJORacBohcAsF1Qd1V1/P+w3dMkf24kV0wqAiWePCF1FwgnrL/rYzQ==
@@ -10549,19 +10549,6 @@ react-is@^17.0.1:
1054910549
resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.1.tgz#5b3531bd76a645a4c9fb6e693ed36419e3301339"
1055010550
integrity sha512-NAnt2iGDXohE5LI7uBnLnqvLQMtzhkiAOLXTmv+qnF9Ky7xAPcX8Up/xWIhxvLVGJvuLiNc4xQLtuqDRzb4fSA==
1055110551

10552-
react-native-iphone-x-helper@^1.0.3:
10553-
version "1.3.1"
10554-
resolved "https://registry.yarnpkg.com/react-native-iphone-x-helper/-/react-native-iphone-x-helper-1.3.1.tgz#20c603e9a0e765fd6f97396638bdeb0e5a60b010"
10555-
integrity sha512-HOf0jzRnq2/aFUcdCJ9w9JGzN3gdEg0zFE4FyYlp4jtidqU03D5X7ZegGKfT1EWteR0gPBGp9ye5T5FvSWi9Yg==
10556-
10557-
react-native-keyboard-aware-scroll-view@^0.9.5:
10558-
version "0.9.5"
10559-
resolved "https://registry.yarnpkg.com/react-native-keyboard-aware-scroll-view/-/react-native-keyboard-aware-scroll-view-0.9.5.tgz#e2e9665d320c188e6b1f22f151b94eb358bf9b71"
10560-
integrity sha512-XwfRn+T/qBH9WjTWIBiJD2hPWg0yJvtaEw6RtPCa5/PYHabzBaWxYBOl0usXN/368BL1XktnZPh8C2lmTpOREA==
10561-
dependencies:
10562-
prop-types "^15.6.2"
10563-
react-native-iphone-x-helper "^1.0.3"
10564-
1056510552
react-native-safe-area-context@^3.1.9:
1056610553
version "3.1.9"
1056710554
resolved "https://registry.yarnpkg.com/react-native-safe-area-context/-/react-native-safe-area-context-3.1.9.tgz#48864ea976b0fa57142a2cc523e1fd3314e7247e"

0 commit comments

Comments
 (0)