react-native-windows 0.68.24 → 0.68.26

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.
@@ -249,22 +249,6 @@ function Pressable(props: Props, forwardedRef): React.Node {
249
249
  const viewRef = useRef<React.ElementRef<typeof View> | null>(null);
250
250
  useImperativeHandle(forwardedRef, () => viewRef.current);
251
251
 
252
- // [Windows
253
- const _onBlur = (event: BlurEvent) => {
254
- TextInputState.blurInput(viewRef.current);
255
- if (props.onBlur) {
256
- props.onBlur(event);
257
- }
258
- };
259
-
260
- const _onFocus = (event: FocusEvent) => {
261
- TextInputState.focusInput(viewRef.current);
262
- if (props.onFocus) {
263
- props.onFocus(event);
264
- }
265
- };
266
- // Windows]
267
-
268
252
  const android_rippleConfig = useAndroidRippleForView(android_ripple, viewRef);
269
253
 
270
254
  const [pressed, setPressed] = usePressState(testOnly_pressed === true);
@@ -358,10 +342,6 @@ function Pressable(props: Props, forwardedRef): React.Node {
358
342
  <View
359
343
  {...restPropsWithDefaults}
360
344
  {...eventHandlers}
361
- // [Windows
362
- onBlur={_onBlur}
363
- onFocus={_onFocus}
364
- // Windows]
365
345
  ref={viewRef}
366
346
  style={typeof style === 'function' ? style({pressed}) : style}>
367
347
  {typeof children === 'function' ? children({pressed}) : children}
@@ -10,10 +10,10 @@
10
10
  -->
11
11
  <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
12
12
  <PropertyGroup>
13
- <ReactNativeWindowsVersion>0.68.24</ReactNativeWindowsVersion>
13
+ <ReactNativeWindowsVersion>0.68.26</ReactNativeWindowsVersion>
14
14
  <ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
15
15
  <ReactNativeWindowsMinor>68</ReactNativeWindowsMinor>
16
- <ReactNativeWindowsPatch>24</ReactNativeWindowsPatch>
16
+ <ReactNativeWindowsPatch>26</ReactNativeWindowsPatch>
17
17
  <ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
18
18
  </PropertyGroup>
19
19
  </Project>
@@ -113,6 +113,8 @@ bool OriginPolicyHttpFilter::ConstWcharComparer::operator()(const wchar_t *a, co
113
113
  /*static*/ void OriginPolicyHttpFilter::SetStaticOrigin(std::string &&url) {
114
114
  if (!url.empty())
115
115
  s_origin = Uri{to_hstring(url)};
116
+ else
117
+ s_origin = nullptr;
116
118
  }
117
119
 
118
120
  /*static*/ bool OriginPolicyHttpFilter::IsSameOrigin(Uri const &u1, Uri const &u2) noexcept {
@@ -651,21 +653,26 @@ ResponseOperation OriginPolicyHttpFilter::SendPreflightAsync(HttpRequestMessage
651
653
  preflightRequest.Headers().Insert(L"Access-Control-Request-Method", coRequest.Method().ToString());
652
654
 
653
655
  auto headerNames = wstring{};
654
- auto headerItr = coRequest.Headers().begin();
655
- if (headerItr != coRequest.Headers().end()) {
656
- headerNames += (*headerItr).Key();
656
+ auto writeSeparator = false;
657
+ for (const auto &header : coRequest.Headers()) {
658
+ if (writeSeparator) {
659
+ headerNames += L", ";
660
+ } else {
661
+ writeSeparator = true;
662
+ }
657
663
 
658
- while (++headerItr != coRequest.Headers().end())
659
- headerNames += L", " + (*headerItr).Key();
664
+ headerNames += header.Key();
660
665
  }
661
666
 
662
667
  if (coRequest.Content()) {
663
- headerItr = coRequest.Content().Headers().begin();
664
- if (headerItr != coRequest.Content().Headers().end()) {
665
- headerNames += (*headerItr).Key();
668
+ for (const auto &header : coRequest.Content().Headers()) {
669
+ if (writeSeparator) {
670
+ headerNames += L", ";
671
+ } else {
672
+ writeSeparator = true;
673
+ }
666
674
 
667
- while (++headerItr != coRequest.Content().Headers().end())
668
- headerNames += L", " + (*headerItr).Key();
675
+ headerNames += header.Key();
669
676
  }
670
677
  }
671
678
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.68.24",
3
+ "version": "0.68.26",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",