react-native-macos 0.71.5 → 0.71.7

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.
@@ -12,6 +12,6 @@
12
12
  exports.version = {
13
13
  major: 0,
14
14
  minor: 71,
15
- patch: 5,
15
+ patch: 7,
16
16
  prerelease: null,
17
17
  };
@@ -28,6 +28,9 @@ export interface Spec extends TurboModule {
28
28
 
29
29
  // iOS only.
30
30
  +setIsShakeToShowDevMenuEnabled: (enabled: boolean) => void;
31
+
32
+ // macOS only.
33
+ +setIsSecondaryClickToShowDevMenuEnabled: (enabled: boolean) => void; // [macOS]
31
34
  }
32
35
 
33
36
  export default (TurboModuleRegistry.getEnforcing<Spec>('DevSettings'): Spec);
@@ -142,6 +142,8 @@
142
142
 
143
143
  - (void)textInputDidChange
144
144
  {
145
+ [super textInputDidChange];
146
+
145
147
  [_scrollView setHasVerticalScroller:[self shouldShowVerticalScrollbar]];
146
148
  }
147
149
 
@@ -198,7 +198,7 @@ static void *TextFieldSelectionObservingContext = &TextFieldSelectionObservingCo
198
198
  // enter/return
199
199
  if (commandSelector == @selector(insertNewline:) || commandSelector == @selector(insertNewlineIgnoringFieldEditor:)) {
200
200
  [self textFieldDidEndEditingOnExit];
201
- if ([textInputDelegate textInputShouldReturn]) {
201
+ if ([textInputDelegate textInputShouldSubmitOnReturn]) {
202
202
  [[_backedTextInputView window] makeFirstResponder:nil];
203
203
  }
204
204
  commandHandled = YES;
@@ -434,7 +434,7 @@ static void *TextFieldSelectionObservingContext = &TextFieldSelectionObservingCo
434
434
  id<RCTBackedTextInputDelegate> textInputDelegate = [_backedTextInputView textInputDelegate];
435
435
  // enter/return
436
436
  if ((commandSelector == @selector(insertNewline:) || commandSelector == @selector(insertNewlineIgnoringFieldEditor:))) {
437
- if (textInputDelegate.textInputShouldReturn) {
437
+ if ([textInputDelegate textInputShouldSubmitOnReturn]) {
438
438
  [_backedTextInputView.window makeFirstResponder:nil];
439
439
  commandHandled = YES;
440
440
  }
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(71),
26
- RCTVersionPatch: @(5),
26
+ RCTVersionPatch: @(7),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -31,6 +31,7 @@ static NSString *const kRCTDevSettingIsDebuggingRemotely = @"isDebuggingRemotely
31
31
  static NSString *const kRCTDevSettingExecutorOverrideClass = @"executor-override";
32
32
  static NSString *const kRCTDevSettingShakeToShowDevMenu = @"shakeToShow";
33
33
  static NSString *const kRCTDevSettingIsPerfMonitorShown = @"RCTPerfMonitorKey";
34
+ static NSString *const kRCTDevSettingSecondClickToShowDevMenu = @"secondClickToShow"; // [macOS]
34
35
 
35
36
  static NSString *const kRCTDevSettingsUserDefaultsKey = @"RCTDevMenu";
36
37
 
@@ -157,6 +158,7 @@ RCT_EXPORT_MODULE()
157
158
  NSDictionary *defaultValues = @{
158
159
  kRCTDevSettingShakeToShowDevMenu : @YES,
159
160
  kRCTDevSettingHotLoadingEnabled : @YES,
161
+ kRCTDevSettingSecondClickToShowDevMenu: @YES, // [macOS]
160
162
  };
161
163
  RCTDevSettingsUserDefaultsDataSource *dataSource =
162
164
  [[RCTDevSettingsUserDefaultsDataSource alloc] initWithDefaultValues:defaultValues];
@@ -332,6 +334,18 @@ RCT_EXPORT_METHOD(setIsShakeToShowDevMenuEnabled : (BOOL)enabled)
332
334
  return [[self settingForKey:kRCTDevSettingShakeToShowDevMenu] boolValue];
333
335
  }
334
336
 
337
+ // [macOS
338
+ RCT_EXPORT_METHOD(setIsSecondaryClickToShowDevMenuEnabled:(BOOL)enabled)
339
+ {
340
+ [self _updateSettingWithValue:@(enabled) forKey:kRCTDevSettingSecondClickToShowDevMenu];
341
+ }
342
+
343
+ - (BOOL)isSecondaryClickToShowDevMenuEnabled
344
+ {
345
+ return [[self settingForKey:kRCTDevSettingSecondClickToShowDevMenu] boolValue];
346
+ }
347
+ // macOS]
348
+
335
349
  RCT_EXPORT_METHOD(setIsDebuggingRemotely:(BOOL)enabled)
336
350
  {
337
351
  [self _updateSettingWithValue:@(enabled) forKey:kRCTDevSettingIsDebuggingRemotely];
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.71.5
1
+ VERSION_NAME=0.71.7
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  # JVM Versions
@@ -109,6 +109,13 @@ public class DevSettingsModule extends NativeDevSettingsSpec {
109
109
  // iOS only
110
110
  }
111
111
 
112
+ // [macOS
113
+ @Override
114
+ public void setIsShakeToShowDevMenuEnabled(boolean enabled) {
115
+ // macOS only
116
+ }
117
+ // macOS]
118
+
112
119
  @Override
113
120
  public void addListener(String eventName) {
114
121
  // iOS only
@@ -17,6 +17,6 @@ public class ReactNativeVersion {
17
17
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
18
18
  "major", 0,
19
19
  "minor", 71,
20
- "patch", 5,
20
+ "patch", 7,
21
21
  "prerelease", null);
22
22
  }
@@ -17,7 +17,7 @@ namespace facebook::react {
17
17
  constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 71;
20
- int32_t Patch = 5;
20
+ int32_t Patch = 7;
21
21
  std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.71.5",
3
+ "version": "0.71.7",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "react": "18.2.0",
15
- "react-native-macos": "0.71.5"
15
+ "react-native-macos": "0.71.7"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@babel/core": "^7.20.0",