react-native-macos 0.68.41 → 0.68.44

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.
@@ -16,6 +16,6 @@
16
16
  exports.version = {
17
17
  major: 0,
18
18
  minor: 68,
19
- patch: 41,
19
+ patch: 44,
20
20
  prerelease: null,
21
21
  };
@@ -27,7 +27,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
27
27
  __rnVersion = @{
28
28
  RCTVersionMajor: @(0),
29
29
  RCTVersionMinor: @(68),
30
- RCTVersionPatch: @(41),
30
+ RCTVersionPatch: @(44),
31
31
  RCTVersionPrerelease: [NSNull null],
32
32
  };
33
33
  });
@@ -176,7 +176,7 @@ RCT_EXPORT_MODULE()
176
176
  {
177
177
  if (!_devMenuItem) {
178
178
  __weak __typeof__(self) weakSelf = self;
179
- __weak RCTDevSettings *devSettings = [self->_moduleRegistry moduleForName:"DevSettings"];
179
+ __weak RCTDevSettings *devSettings = [[self bridge] devSettings]; // TODO(macOS GH#774)
180
180
  if (devSettings.isPerfMonitorShown) {
181
181
  [weakSelf show];
182
182
  }
@@ -8,7 +8,8 @@
8
8
  #import "RCTActivityIndicatorView.h"
9
9
 
10
10
  #if TARGET_OS_OSX // [TODO(macOS GH#774)
11
- #import <QuartzCore/QuartzCore.h>
11
+ #import <CoreImage/CIFilter.h>
12
+ #import <CoreImage/CIVector.h>
12
13
 
13
14
  @interface RCTActivityIndicatorView ()
14
15
  @property (nonatomic, readwrite, getter=isAnimating) BOOL animating;
@@ -779,6 +779,9 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : unused)
779
779
  name:NSViewBoundsDidChangeNotification
780
780
  object:[[self enclosingScrollView] contentView]];
781
781
  }
782
+
783
+ [self reactViewDidMoveToWindow]; // TODO(macOS GH#1412)
784
+
782
785
  [super viewDidMoveToWindow];
783
786
  }
784
787
 
@@ -91,6 +91,8 @@
91
91
  - (void)reactAddControllerToClosestParent:(UIViewController *)controller;
92
92
  #endif // TODO(macOS GH#774)
93
93
 
94
+ - (void)reactViewDidMoveToWindow; // TODO(macOS GH#1412)
95
+
94
96
  /**
95
97
  * Focus manipulation.
96
98
  */
@@ -267,18 +267,17 @@
267
267
  }
268
268
  #endif // TODO(macOS GH#774)
269
269
 
270
- /**
271
- * Focus manipulation.
272
- */
273
- - (BOOL)reactIsFocusNeeded
270
+ // [TODO(macOS GH#1412)
271
+ - (void)reactViewDidMoveToWindow
274
272
  {
275
- return [(NSNumber *)objc_getAssociatedObject(self, @selector(reactIsFocusNeeded)) boolValue];
273
+ [self reactFocusIfNeeded];
276
274
  }
275
+ // TODO(macOS GH#1412)]
277
276
 
278
- - (void)setReactIsFocusNeeded:(BOOL)isFocusNeeded
279
- {
280
- objc_setAssociatedObject(self, @selector(reactIsFocusNeeded), @(isFocusNeeded), OBJC_ASSOCIATION_RETAIN_NONATOMIC);
281
- }
277
+ /**
278
+ * Focus manipulation.
279
+ */
280
+ static __weak RCTPlatformView *_pendingFocusView; // TODO(macOS GH#1412)
282
281
 
283
282
  - (void)reactFocus
284
283
  {
@@ -287,19 +286,23 @@
287
286
  #else
288
287
  if (![self becomeFirstResponder]) {
289
288
  #endif //// TODO(macOS GH#774)]
290
- self.reactIsFocusNeeded = YES;
291
- }
289
+ // [TODO(macOS GH#1412)
290
+ _pendingFocusView = self;
291
+ } else {
292
+ _pendingFocusView = nil;
293
+ }
294
+ // TODO(macOS GH#1412)]
292
295
  }
293
296
 
294
297
  - (void)reactFocusIfNeeded
295
298
  {
296
- if (self.reactIsFocusNeeded) {
299
+ if ([self isEqual:_pendingFocusView]) { // TODO(macOS GH#1412)
297
300
  #if TARGET_OS_OSX // [TODO(macOS GH#774)
298
301
  if ([[self window] makeFirstResponder:self]) {
299
302
  #else
300
303
  if ([self becomeFirstResponder]) {
301
304
  #endif // TODO(macOS GH#774)]
302
- self.reactIsFocusNeeded = NO;
305
+ _pendingFocusView = nil; // TODO(macOS GH#1412)
303
306
  }
304
307
  }
305
308
  }
@@ -313,6 +316,12 @@
313
316
  #else
314
317
  [self resignFirstResponder];
315
318
  #endif // TODO(macOS GH#774)]
319
+
320
+ // [TODO(macOS GH#1412)
321
+ if ([self isEqual:_pendingFocusView]) {
322
+ _pendingFocusView = nil;
323
+ }
324
+ // TODO(macOS GH#1412)]
316
325
  }
317
326
 
318
327
  #pragma mark - Layout
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.68.41
1
+ VERSION_NAME=0.68.44
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  POM_NAME=ReactNative
@@ -21,6 +21,6 @@ public class ReactNativeVersion {
21
21
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
22
22
  "major", 0,
23
23
  "minor", 68,
24
- "patch", 41,
24
+ "patch", 44,
25
25
  "prerelease", null);
26
26
  }
@@ -21,7 +21,7 @@ namespace facebook::react {
21
21
  constexpr struct {
22
22
  int32_t Major = 0;
23
23
  int32_t Minor = 68;
24
- int32_t Patch = 41;
24
+ int32_t Patch = 44;
25
25
  std::string_view Prerelease = "";
26
26
  } ReactNativeVersion;
27
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.68.41",
3
+ "version": "0.68.44",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -97,4 +97,4 @@ RUBY VERSION
97
97
  ruby 3.0.4p208
98
98
 
99
99
  BUNDLED WITH
100
- 2.3.21
100
+ 2.3.22
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "react": "17.0.2",
15
- "react-native-macos": "0.68.41"
15
+ "react-native-macos": "0.68.44"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@babel/core": "^7.12.9",