Skip to content

Commit 186d5c3

Browse files
authored
Merge branch 'main' into borders-shadows
2 parents 86e0f9f + 187d21f commit 186d5c3

File tree

7 files changed

+87
-612
lines changed

7 files changed

+87
-612
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ gem 'bigdecimal'
1313
gem 'logger'
1414
gem 'benchmark'
1515
gem 'mutex_m'
16+
gem 'nkf' # [macOS]

Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ DEPENDENCIES
104104
concurrent-ruby (<= 1.3.4)
105105
logger
106106
mutex_m
107+
nkf
107108
xcodeproj (< 1.26.0)
108109

109110
RUBY VERSION

docsite/yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7229,14 +7229,14 @@ __metadata:
72297229
linkType: hard
72307230

72317231
"js-yaml@npm:^3.13.1":
7232-
version: 3.14.1
7233-
resolution: "js-yaml@npm:3.14.1"
7232+
version: 3.14.2
7233+
resolution: "js-yaml@npm:3.14.2"
72347234
dependencies:
72357235
argparse: "npm:^1.0.7"
72367236
esprima: "npm:^4.0.0"
72377237
bin:
72387238
js-yaml: bin/js-yaml.js
7239-
checksum: 10c0/6746baaaeac312c4db8e75fa22331d9a04cccb7792d126ed8ce6a0bbcfef0cedaddd0c5098fade53db067c09fe00aa1c957674b4765610a8b06a5a189e46433b
7239+
checksum: 10c0/3261f25912f5dd76605e5993d0a126c2b6c346311885d3c483706cd722efe34f697ea0331f654ce27c00a42b426e524518ec89d65ed02ea47df8ad26dcc8ce69
72407240
languageName: node
72417241
linkType: hard
72427242

@@ -7755,8 +7755,8 @@ __metadata:
77557755
linkType: hard
77567756

77577757
"mdast-util-to-hast@npm:^13.0.0":
7758-
version: 13.2.0
7759-
resolution: "mdast-util-to-hast@npm:13.2.0"
7758+
version: 13.2.1
7759+
resolution: "mdast-util-to-hast@npm:13.2.1"
77607760
dependencies:
77617761
"@types/hast": "npm:^3.0.0"
77627762
"@types/mdast": "npm:^4.0.0"
@@ -7767,7 +7767,7 @@ __metadata:
77677767
unist-util-position: "npm:^5.0.0"
77687768
unist-util-visit: "npm:^5.0.0"
77697769
vfile: "npm:^6.0.0"
7770-
checksum: 10c0/9ee58def9287df8350cbb6f83ced90f9c088d72d4153780ad37854f87144cadc6f27b20347073b285173b1649b0723ddf0b9c78158608a804dcacb6bda6e1816
7770+
checksum: 10c0/3eeaf28a5e84e1e08e6d54a1a8a06c0fca88cb5d36f4cf8086f0177248d1ce6e4e751f4ad0da19a3dea1c6ea61bd80784acc3ae021e44ceeb21aa5413a375e43
77717771
languageName: node
77727772
linkType: hard
77737773

packages/helloworld/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ gem 'bigdecimal'
1212
gem 'logger'
1313
gem 'benchmark'
1414
gem 'mutex_m'
15+
gem 'nkf' # [macOS]

packages/react-native/React/CoreModules/RCTDevLoadingView.mm

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -128,33 +128,21 @@ - (void)showMessage:(NSString *)message color:(RCTUIColor *)color backgroundColo
128128
self->_window = [[UIWindow alloc] initWithWindowScene:mainWindow.windowScene];
129129
self->_window.windowLevel = UIWindowLevelStatusBar + 1;
130130
self->_window.rootViewController = [UIViewController new];
131-
#else // [macOS
132-
self->_window = [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, 375, 20)
133-
styleMask:NSWindowStyleMaskBorderless | NSWindowStyleMaskFullSizeContentView
134-
backing:NSBackingStoreBuffered
135-
defer:YES];
136-
[self->_window setIdentifier:sRCTDevLoadingViewWindowIdentifier];
137-
#endif // macOS]
138131

139-
self->_container = [[RCTUIView alloc] init]; // [macOS]
132+
self->_container = [[UIView alloc] init];
140133
self->_container.backgroundColor = backgroundColor;
141134
self->_container.translatesAutoresizingMaskIntoConstraints = NO;
142135

143-
self->_label = [[RCTUILabel alloc] init]; // [macOS]
136+
self->_label = [[UILabel alloc] init];
144137
self->_label.translatesAutoresizingMaskIntoConstraints = NO;
145138
self->_label.font = [UIFont monospacedDigitSystemFontOfSize:12.0 weight:UIFontWeightRegular];
146139
self->_label.textAlignment = NSTextAlignmentCenter;
147140
self->_label.textColor = color;
148141
self->_label.text = message;
149142

150-
#if !TARGET_OS_OSX // [macOS]
151143
[self->_window.rootViewController.view addSubview:self->_container];
152-
#else // [macOS
153-
[self->_window.contentView addSubview:self->_container];
154-
#endif // macOS]
155144
[self->_container addSubview:self->_label];
156145

157-
#if !TARGET_OS_OSX // [macOS]
158146
CGFloat topSafeAreaHeight = mainWindow.safeAreaInsets.top;
159147
CGFloat height = topSafeAreaHeight + 25;
160148
self->_window.frame = CGRectMake(0, 0, mainWindow.frame.size.width, height);
@@ -175,6 +163,31 @@ - (void)showMessage:(NSString *)message color:(RCTUIColor *)color backgroundColo
175163
[self->_label.bottomAnchor constraintEqualToAnchor:self->_container.bottomAnchor constant:-5],
176164
]];
177165
#else // [macOS
166+
if (!self->_label) {
167+
self->_label = [[RCTUILabel alloc] init]; // [macOS]
168+
self->_label.translatesAutoresizingMaskIntoConstraints = NO;
169+
self->_label.font = [UIFont monospacedDigitSystemFontOfSize:12.0 weight:UIFontWeightRegular];
170+
self->_label.textAlignment = NSTextAlignmentCenter;
171+
}
172+
self->_label.textColor = color;
173+
self->_label.text = message;
174+
175+
if (!self->_container) {
176+
self->_container = [[RCTUIView alloc] init]; // [macOS]
177+
self->_container.translatesAutoresizingMaskIntoConstraints = NO;
178+
[self->_container addSubview:self->_label];
179+
}
180+
self->_container.backgroundColor = backgroundColor;
181+
182+
if (!self->_window) {
183+
self->_window = [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, 375, 20)
184+
styleMask:NSWindowStyleMaskBorderless | NSWindowStyleMaskFullSizeContentView
185+
backing:NSBackingStoreBuffered
186+
defer:YES];
187+
[self->_window setIdentifier:sRCTDevLoadingViewWindowIdentifier];
188+
[self->_window.contentView addSubview:self->_container];
189+
}
190+
178191
// Container constraints
179192
[NSLayoutConstraint activateConstraints:@[
180193
[self->_container.topAnchor constraintEqualToAnchor:self->_window.contentView.topAnchor],

packages/rn-tester/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ gem 'bigdecimal'
1616
gem 'logger'
1717
gem 'benchmark'
1818
gem 'mutex_m'
19+
gem 'nkf' # [macOS]

0 commit comments

Comments
 (0)