react-native-windows 0.78.6 → 0.78.8

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.
@@ -1 +1 @@
1
- {"version":3,"file":"KeyboardExt.js","sourceRoot":"","sources":["../../../src-win/Libraries/Components/Keyboard/KeyboardExt.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,YAAY,CAAC;;;;;;AAEb,kDAA0B;AAG1B;;GAEG;AACI,MAAM,eAAe,GAAG,CAC7B,gBAAwC,EACxC,EAAE;IAWF,MAAM,eAAgB,SAAQ,eAAK,CAAC,SAAgC;QAC3D,MAAM;YACX,MAAM,EAAC,YAAY,EAAE,GAAG,IAAI,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;YAC3C,OAAO,CACL,8BAAC,gBAAgB,IAAC,GAAG,EAAE,YAAY,KAAO,IAAqB,GAAI,CACpE,CAAC;QACJ,CAAC;KACF;IAED,OAAO,eAAK,CAAC,UAAU,CACrB,CACE,KAAsD,EACtD,GAAmB,EACnB,EAAE;QACF,OAAO,8BAAC,eAAe,OAAK,KAAK,EAAE,YAAY,EAAE,GAAG,GAAI,CAAC;IAC3D,CAAC,CACF,CAAC;AACJ,CAAC,CAAC;AA9BW,QAAA,eAAe,mBA8B1B","sourcesContent":["/**\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n * @format\n */\n'use strict';\n\nimport React from 'react';\nimport {IKeyboardProps} from './KeyboardExtProps';\n\n/**\n * @deprecated - Exported types should already have the keyboarding properties on them\n */\nexport const supportKeyboard = <P extends Record<string, any>>(\n WrappedComponent: React.ComponentType<P>,\n) => {\n interface IForwardRefProps {\n forwardedRef: React.Ref<any>;\n }\n\n // children is used to avoid error: Property 'children' does not exist on type 'IntrinsicAttributes & ViewProps &\n // IKeyboardProps & RefAttributes<any>\n type PropsWithoutForwardedRef = P & React.PropsWithChildren<IKeyboardProps>;\n type PropsWithForwardedRef = React.PropsWithoutRef<PropsWithoutForwardedRef> &\n IForwardRefProps;\n\n class SupportKeyboard extends React.Component<PropsWithForwardedRef> {\n public render(): JSX.Element {\n const {forwardedRef, ...rest} = this.props;\n return (\n <WrappedComponent ref={forwardedRef} {...(rest as unknown as P)} />\n );\n }\n }\n\n return React.forwardRef(\n (\n props: React.PropsWithoutRef<PropsWithoutForwardedRef>,\n ref: React.Ref<any>,\n ) => {\n return <SupportKeyboard {...props} forwardedRef={ref} />;\n },\n );\n};\n"]}
1
+ {"version":3,"file":"KeyboardExt.js","sourceRoot":"","sources":["../../../src-win/Libraries/Components/Keyboard/KeyboardExt.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,YAAY,CAAC;;;;;;AAEb,kDAA0B;AAG1B;;GAEG;AACI,MAAM,eAAe,GAAG,CAC7B,gBAAwC,EACxC,EAAE;IAWF,MAAM,eAAgB,SAAQ,eAAK,CAAC,SAAgC;QAC3D,MAAM;YACX,MAAM,EAAC,YAAY,EAAE,GAAG,IAAI,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;YAC3C,OAAO,CACL,8BAAC,gBAAgB,IAAC,GAAG,EAAE,YAAY,KAAO,IAAqB,GAAI,CACpE,CAAC;QACJ,CAAC;KACF;IAED,OAAO,eAAK,CAAC,UAAU,CACrB,CACE,KAAsD,EACtD,GAAmB,EACnB,EAAE;QACF,OAAO,8BAAC,eAAe,OAAK,KAAK,EAAE,YAAY,EAAE,GAAG,GAAI,CAAC;IAC3D,CAAC,CACF,CAAC;AACJ,CAAC,CAAC;AA9BW,QAAA,eAAe,mBA8B1B","sourcesContent":["/**\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n * @format\n */\n'use strict';\n\nimport React from 'react';\nimport {IKeyboardProps} from './KeyboardExtProps';\n\n/**\n * @deprecated - Exported types should already have the keyboarding properties on them\n */\nexport const supportKeyboard = <P extends Record<string, any>>(\n WrappedComponent: React.ComponentType<P>,\n) => {\n interface IForwardRefProps {\n forwardedRef: React.Ref<any>;\n }\n\n // children is used to avoid error: Property 'children' does not exist on type 'IntrinsicAttributes & ViewProps &\n // IKeyboardProps & RefAttributes<any>\n type PropsWithoutForwardedRef = P & React.PropsWithChildren<IKeyboardProps>;\n type PropsWithForwardedRef = React.PropsWithoutRef<PropsWithoutForwardedRef> &\n IForwardRefProps;\n\n class SupportKeyboard extends React.Component<PropsWithForwardedRef> {\n public render() {\n const {forwardedRef, ...rest} = this.props;\n return (\n <WrappedComponent ref={forwardedRef} {...(rest as unknown as P)} />\n );\n }\n }\n\n return React.forwardRef(\n (\n props: React.PropsWithoutRef<PropsWithoutForwardedRef>,\n ref: React.Ref<any>,\n ) => {\n return <SupportKeyboard {...props} forwardedRef={ref} />;\n },\n );\n};\n"]}
@@ -1019,7 +1019,7 @@ function useTextInputStateSynchronization_STATE({
1019
1019
  mostRecentEventCount: number,
1020
1020
  selection: ?Selection,
1021
1021
  inputRef: React.RefObject<null | HostInstance>,
1022
- text: string,
1022
+ text?: string,
1023
1023
  viewCommands: ViewCommands,
1024
1024
  }): {
1025
1025
  setLastNativeText: string => void,
@@ -1100,7 +1100,7 @@ function useTextInputStateSynchronization_REFS({
1100
1100
  mostRecentEventCount: number,
1101
1101
  selection: ?Selection,
1102
1102
  inputRef: React.RefObject<null | HostInstance>,
1103
- text: string,
1103
+ text?: string,
1104
1104
  viewCommands: ViewCommands,
1105
1105
  }): {
1106
1106
  setLastNativeText: string => void,
@@ -1314,7 +1314,7 @@ function InternalTextInput(props: Props): React.Node {
1314
1314
  ? props.value
1315
1315
  : typeof props.defaultValue === 'string'
1316
1316
  ? props.defaultValue
1317
- : '';
1317
+ : undefined;
1318
1318
 
1319
1319
  const viewCommands =
1320
1320
  AndroidTextInputCommands ||
@@ -1096,7 +1096,7 @@ function useTextInputStateSynchronization_STATE({
1096
1096
  mostRecentEventCount: number,
1097
1097
  selection: ?Selection,
1098
1098
  inputRef: React.RefObject<null | HostInstance>,
1099
- text: string,
1099
+ text?: string,
1100
1100
  viewCommands: ViewCommands,
1101
1101
  }): {
1102
1102
  setLastNativeText: string => void,
@@ -1177,7 +1177,7 @@ function useTextInputStateSynchronization_REFS({
1177
1177
  mostRecentEventCount: number,
1178
1178
  selection: ?Selection,
1179
1179
  inputRef: React.RefObject<null | HostInstance>,
1180
- text: string,
1180
+ text?: string,
1181
1181
  viewCommands: ViewCommands,
1182
1182
  }): {
1183
1183
  setLastNativeText: string => void,
@@ -1394,7 +1394,7 @@ function InternalTextInput(props: Props): React.Node {
1394
1394
  ? props.value
1395
1395
  : typeof props.defaultValue === 'string'
1396
1396
  ? props.defaultValue
1397
- : '';
1397
+ : undefined;
1398
1398
 
1399
1399
  const viewCommands =
1400
1400
  WindowsTextInputCommands || // [Windows]
@@ -16,7 +16,7 @@ const version: $ReadOnly<{
16
16
  }> = {
17
17
  major: 0,
18
18
  minor: 78,
19
- patch: 0,
19
+ patch: 2,
20
20
  prerelease: null,
21
21
  };
22
22
 
@@ -133,6 +133,7 @@ let BaseImage: AbstractImageAndroid = React.forwardRef(
133
133
  width: undefined,
134
134
  height: undefined,
135
135
  };
136
+ const defaultSource = resolveAssetSource(props.defaultSource);
136
137
  const loadingIndicatorSource = resolveAssetSource(
137
138
  props.loadingIndicatorSource,
138
139
  );
@@ -178,6 +179,7 @@ let BaseImage: AbstractImageAndroid = React.forwardRef(
178
179
  /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found
179
180
  * when making Flow check .android.js files. */
180
181
  headers: (source?.[0]?.headers || source?.headers: ?{[string]: string}),
182
+ defaultSource: defaultSource ? defaultSource.uri : null,
181
183
  loadingIndicatorSrc: loadingIndicatorSource
182
184
  ? loadingIndicatorSource.uri
183
185
  : null,
@@ -21,6 +21,7 @@ import type {
21
21
  } from '../StyleSheet/StyleSheet';
22
22
  import type {ResolvedAssetSource} from './AssetSourceResolver';
23
23
  import type {ImageProps} from './ImageProps';
24
+ import type {ImageSource} from './ImageSource';
24
25
 
25
26
  import * as NativeComponentRegistry from '../NativeComponent/NativeComponentRegistry';
26
27
  import {ConditionallyIgnoredEventHandlers} from '../NativeComponent/ViewConfigIgnore';
@@ -42,7 +43,7 @@ type Props = $ReadOnly<{
42
43
  | ?ResolvedAssetSource
43
44
  | ?$ReadOnlyArray<?$ReadOnly<{uri?: ?string, ...}>>,
44
45
  headers?: ?{[string]: string},
45
- defaultSrc?: ?string,
46
+ defaultSource?: ?ImageSource | ?string,
46
47
  loadingIndicatorSrc?: ?string,
47
48
  }>;
48
49
 
@@ -82,9 +83,7 @@ export const __INTERNAL_VIEW_CONFIG: PartialViewConfig =
82
83
  },
83
84
  validAttributes: {
84
85
  blurRadius: true,
85
- defaultSource: {
86
- process: require('./resolveAssetSource'),
87
- },
86
+ defaultSource: true,
88
87
  internal_analyticTag: true,
89
88
  resizeMethod: true,
90
89
  resizeMode: true,
@@ -10,11 +10,11 @@
10
10
  -->
11
11
  <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
12
12
  <PropertyGroup>
13
- <ReactNativeWindowsVersion>0.78.6</ReactNativeWindowsVersion>
13
+ <ReactNativeWindowsVersion>0.78.8</ReactNativeWindowsVersion>
14
14
  <ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
15
15
  <ReactNativeWindowsMinor>78</ReactNativeWindowsMinor>
16
- <ReactNativeWindowsPatch>6</ReactNativeWindowsPatch>
16
+ <ReactNativeWindowsPatch>8</ReactNativeWindowsPatch>
17
17
  <ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
18
- <ReactNativeWindowsCommitId>e74aaadf4cf0b3c12e7561e8ea3349fa9d6998a4</ReactNativeWindowsCommitId>
18
+ <ReactNativeWindowsCommitId>07ae9d59e0e7e03d7134666d3daff30c6abb00b7</ReactNativeWindowsCommitId>
19
19
  </PropertyGroup>
20
20
  </Project>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.78.6",
3
+ "version": "0.78.8",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,15 +26,15 @@
26
26
  "@react-native-community/cli": "^15.0.0",
27
27
  "@react-native-community/cli-platform-android": "^15.0.0",
28
28
  "@react-native-community/cli-platform-ios": "^15.0.0",
29
- "@react-native-windows/cli": "0.78.3",
29
+ "@react-native-windows/cli": "0.78.4",
30
30
  "@react-native/assets": "1.0.0",
31
- "@react-native/assets-registry": "0.78.0",
32
- "@react-native/codegen": "0.78.0",
33
- "@react-native/community-cli-plugin": "0.78.0",
34
- "@react-native/gradle-plugin": "0.78.0",
35
- "@react-native/js-polyfills": "0.78.0",
36
- "@react-native/normalize-colors": "0.78.0",
37
- "@react-native/virtualized-lists": "0.78.0",
31
+ "@react-native/assets-registry": "0.78.2",
32
+ "@react-native/codegen": "0.78.2",
33
+ "@react-native/community-cli-plugin": "0.78.2",
34
+ "@react-native/gradle-plugin": "0.78.2",
35
+ "@react-native/js-polyfills": "0.78.2",
36
+ "@react-native/normalize-colors": "0.78.2",
37
+ "@react-native/virtualized-lists": "0.78.2",
38
38
  "abort-controller": "^3.0.0",
39
39
  "anser": "^1.4.9",
40
40
  "ansi-regex": "^5.0.0",
@@ -49,8 +49,8 @@
49
49
  "invariant": "^2.2.4",
50
50
  "jest-environment-node": "^29.6.3",
51
51
  "memoize-one": "^5.0.0",
52
- "metro-runtime": "^0.81.0",
53
- "metro-source-map": "^0.81.0",
52
+ "metro-runtime": "^0.81.3",
53
+ "metro-source-map": "^0.81.3",
54
54
  "mkdirp": "^0.5.1",
55
55
  "nullthrows": "^1.1.1",
56
56
  "pretty-format": "^29.7.0",
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "devDependencies": {
70
70
  "@react-native-windows/codegen": "0.78.2",
71
- "@react-native/metro-config": "0.78.0-nightly-20241231-a3c8e2137",
71
+ "@react-native/metro-config": "0.78.2",
72
72
  "@rnw-scripts/babel-react-native-config": "0.0.0",
73
73
  "@rnw-scripts/eslint-config": "1.2.32",
74
74
  "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.36",
@@ -83,7 +83,7 @@
83
83
  "just-scripts": "^1.3.3",
84
84
  "prettier": "2.8.8",
85
85
  "react": "19.0.0",
86
- "react-native": "0.78.0",
86
+ "react-native": "0.78.2",
87
87
  "react-native-platform-override": "^1.9.51",
88
88
  "react-refresh": "^0.14.0",
89
89
  "typescript": "5.0.4"