react-native-macos 0.73.31 → 0.73.32

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: 73,
15
- patch: 31,
15
+ patch: 32,
16
16
  prerelease: null,
17
17
  };
@@ -22,6 +22,10 @@ NS_ASSUME_NONNULL_BEGIN
22
22
  contentFrame:(CGRect)contentFrame
23
23
  descendantViews:(NSArray<RCTPlatformView *> *)descendantViews; // [macOS]
24
24
 
25
+ #if TARGET_OS_OSX // [macOS
26
+ - (NSRect)getRectForCharRange:(NSRange)charRange;
27
+ #endif // macOS]
28
+
25
29
  /**
26
30
  * (Experimental and unused for Paper) Pointer event handlers.
27
31
  */
@@ -207,6 +207,22 @@
207
207
  [self setNeedsDisplay];
208
208
  }
209
209
 
210
+ #if TARGET_OS_OSX // [macOS
211
+ - (NSRect)getRectForCharRange:(NSRange)charRange
212
+ {
213
+ if (_textStorage) {
214
+ NSLayoutManager *layoutManager = _textStorage.layoutManagers.firstObject;
215
+ NSTextContainer *textContainer = layoutManager.textContainers.firstObject;
216
+ if (layoutManager && textContainer) {
217
+ NSRange glyphRange = [layoutManager glyphRangeForCharacterRange:charRange actualCharacterRange:nullptr];
218
+ return [layoutManager boundingRectForGlyphRange:glyphRange inTextContainer:textContainer];
219
+ }
220
+ }
221
+
222
+ return {0, 0, 0, 0};
223
+ }
224
+ #endif // macOS]
225
+
210
226
  - (void)drawRect:(CGRect)rect
211
227
  {
212
228
  [super drawRect:rect];
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(73),
26
- RCTVersionPatch: @(31),
26
+ RCTVersionPatch: @(32),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.73.31
1
+ VERSION_NAME=0.73.32
2
2
  react.internal.publishingGroup=com.facebook.react
3
3
 
4
4
  android.useAndroidX=true
@@ -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", 73,
20
- "patch", 31,
20
+ "patch", 32,
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 = 73;
20
- int32_t Patch = 31;
20
+ int32_t Patch = 32;
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.73.31",
3
+ "version": "0.73.32",
4
4
  "description": "React Native for macOS",
5
5
  "license": "MIT",
6
6
  "repository": {