@office-iss/react-native-win32 0.71.3 → 0.71.5

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.
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @flow
3
+ * @format
4
+ */
5
+
6
+ import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';
7
+
8
+ import requireNativeComponent from '../../ReactNative/requireNativeComponent';
9
+ import codegenNativeCommands from '../../Utilities/codegenNativeCommands';
10
+ import type {TextInputNativeCommands} from './TextInputNativeCommands';
11
+ type NativeType = HostComponent<mixed>;
12
+
13
+ type NativeCommands = TextInputNativeCommands<NativeType>;
14
+
15
+ export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({
16
+ supportedCommands: ['focus', 'blur', 'setTextAndSelection'],
17
+ });
18
+
19
+ const WindowsTextInputComponent: NativeType =
20
+ requireNativeComponent<mixed>('RCTTextInput');
21
+
22
+ export default WindowsTextInputComponent;
23
+ // [Windows]
@@ -14,8 +14,8 @@ import type {ViewProps} from './ViewPropTypes';
14
14
  import View from './View';
15
15
  import {findNodeHandle} from '../../ReactNative/RendererProxy';
16
16
  import UIManager from '../../ReactNative/UIManager';
17
- import useMergeRefs from '../../Utilities/useMergeRefs';
18
17
  import warnOnce from '../../Utilities/warnOnce';
18
+ import setAndForwardRef from '../../Utilities/setAndForwardRef';
19
19
 
20
20
  /**
21
21
  * Basic View component with additional Win32 specific functionality
@@ -126,9 +126,9 @@ const ViewWin32: React.AbstractComponent<
126
126
  );
127
127
 
128
128
  // $FlowFixMe
129
- const setNativeRef = useMergeRefs<typeof View | null>({
129
+ const setNativeRef = setAndForwardRef<typeof View | null>({
130
+ getForwardedRef: () => forwardedRef,
130
131
  setLocalRef,
131
- forwardedRef,
132
132
  });
133
133
 
134
134
  return (
@@ -12,6 +12,6 @@
12
12
  exports.version = {
13
13
  major: 0,
14
14
  minor: 71,
15
- patch: 4,
15
+ patch: 6,
16
16
  prerelease: null,
17
17
  };
package/overrides.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "**/__snapshots__/**",
8
8
  "src/rntypes/**"
9
9
  ],
10
- "baseVersion": "0.71.4",
10
+ "baseVersion": "0.71.6",
11
11
  "overrides": [
12
12
  {
13
13
  "type": "derived",
@@ -113,15 +113,15 @@
113
113
  "type": "platform",
114
114
  "file": "src/Libraries/Components/TextInput/Tests/TextInputTest.tsx"
115
115
  },
116
- {
117
- "type": "platform",
118
- "file": "src/Libraries/Components/TextInput/TextInput.Types.win32.ts"
119
- },
120
116
  {
121
117
  "type": "derived",
122
118
  "file": "src/Libraries/Components/TextInput/TextInput.win32.js",
123
119
  "baseFile": "Libraries/Components/TextInput/TextInput.js",
124
- "baseHash": "5de06cf785aabebe8a0bb7331389a5320d7f38c0"
120
+ "baseHash": "b59411676fb68eb715dc9b33991accf7f5ec4bbe"
121
+ },
122
+ {
123
+ "type": "platform",
124
+ "file": "src/Libraries/Components/TextInput/Win32TextInputNativeComponent.js"
125
125
  },
126
126
  {
127
127
  "type": "patch",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
- "version": "0.71.3",
3
+ "version": "0.71.5",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "license": "MIT",
6
6
  "main": "./index.win32.js",
@@ -12,9 +12,8 @@
12
12
  "flow-check": "flow check",
13
13
  "lint:fix": "rnw-scripts lint:fix",
14
14
  "lint": "rnw-scripts lint",
15
- "run-win32-dev-web": "npx @office-iss/rex-win32@0.68.26-devmain.16206.10000 --bundle js/RNTesterApp --component RNTesterApp --basePath ./dist/win32/dev --jsEngine v8 --useDevMain --useWebDebugger",
16
- "run-win32-devmain": "npx @office-iss/rex-win32@0.68.26-devmain.16206.10000 --bundle js/RNTesterApp --component RNTesterApp --basePath ./dist/win32/dev --jsEngine v8 --useDevMain",
17
- "run-win32": "npx @office-iss/rex-win32@0.68.26-devmain.16206.10000 --bundle js/RNTesterApp --component RNTesterApp --basePath ./dist/win32/dev --jsEngine v8 --useWebDebugger",
15
+ "run-win32-devmain": "npx @office-iss/rex-win32@0.68.26-devmain.16206.10000 --bundle js/RNTesterApp --component RNTesterApp --basePath ./dist/win32/dev --jsEngine v8 --useDevMain --useDirectDebugger --useFastRefresh",
16
+ "run-win32": "npx @office-iss/rex-win32@0.68.26-devmain.16206.10000 --bundle js/RNTesterApp --component RNTesterApp --basePath ./dist/win32/dev --jsEngine v8 --useDirectDebugger --useFastRefresh",
18
17
  "start": "react-native start --projectRoot ../react-native-win32-tester",
19
18
  "test": "jest",
20
19
  "validate-overrides": "react-native-platform-override validate"
@@ -22,9 +21,9 @@
22
21
  "dependencies": {
23
22
  "@babel/runtime": "^7.0.0",
24
23
  "@jest/create-cache-key-function": "^29.2.1",
25
- "@react-native-community/cli": "10.2.0",
24
+ "@react-native-community/cli": "10.2.2",
26
25
  "@react-native-community/cli-platform-android": "10.2.0",
27
- "@react-native-community/cli-platform-ios": "10.2.0",
26
+ "@react-native-community/cli-platform-ios": "10.2.1",
28
27
  "@react-native/assets": "1.0.0",
29
28
  "@react-native/normalize-color": "2.1.0",
30
29
  "@react-native/polyfills": "2.0.0",
@@ -37,9 +36,9 @@
37
36
  "invariant": "^2.2.4",
38
37
  "jest-environment-node": "^29.2.1",
39
38
  "memoize-one": "^5.0.0",
40
- "metro-react-native-babel-transformer": "0.73.8",
41
- "metro-runtime": "0.73.8",
42
- "metro-source-map": "0.73.8",
39
+ "metro-react-native-babel-transformer": "0.73.9",
40
+ "metro-runtime": "0.73.9",
41
+ "metro-source-map": "0.73.9",
43
42
  "mkdirp": "^0.5.1",
44
43
  "nullthrows": "^1.1.1",
45
44
  "pretty-format": "^26.5.2",
@@ -74,7 +73,7 @@
74
73
  "just-scripts": "^1.3.3",
75
74
  "prettier": "^2.4.1",
76
75
  "react": "18.2.0",
77
- "react-native": "0.71.4",
76
+ "react-native": "0.71.6",
78
77
  "react-native-platform-override": "^1.8.3",
79
78
  "typescript": "^4.9.5"
80
79
  },
@@ -1,51 +0,0 @@
1
- import { NativeSyntheticEvent, TextInputFocusEventData } from 'react-native';
2
- interface IChangePayload {
3
- eventCount: number;
4
- target: number;
5
- text: string;
6
- }
7
- export type IChangeEvent = NativeSyntheticEvent<Readonly<IChangePayload>>;
8
- interface IRange {
9
- start: number;
10
- end: number;
11
- }
12
- interface ITextInputPayload {
13
- eventCount: number;
14
- previousText: string;
15
- range: Readonly<IRange>;
16
- target: number;
17
- text: number;
18
- }
19
- export type ITextInputevent = NativeSyntheticEvent<Readonly<ITextInputPayload>>;
20
- interface IContentSize {
21
- width: number;
22
- height: number;
23
- }
24
- interface IContentSizeChangePayload {
25
- target: number;
26
- contentSize: Readonly<IContentSize>;
27
- }
28
- export type IContentSizeChangeEvent = NativeSyntheticEvent<Readonly<IContentSizeChangePayload>>;
29
- export type IBlurEvent = NativeSyntheticEvent<Readonly<TextInputFocusEventData>>;
30
- export type IFocusEvent = NativeSyntheticEvent<Readonly<TextInputFocusEventData>>;
31
- export interface ISelection extends IRange {
32
- }
33
- interface ISelectionPayload {
34
- selection: ISelection;
35
- target: number;
36
- }
37
- export type ISelectionChangeEvent = NativeSyntheticEvent<Readonly<ISelectionPayload>>;
38
- interface IKeyPressPayload {
39
- key: string;
40
- target?: number;
41
- eventCount?: number;
42
- }
43
- export type IKeyPressEvent = NativeSyntheticEvent<Readonly<IKeyPressPayload>>;
44
- interface IEditingPayload {
45
- eventCount: number;
46
- text: string;
47
- target: number;
48
- }
49
- export type IEditingEvent = NativeSyntheticEvent<Readonly<IEditingPayload>>;
50
- export type IPasswordRules = string;
51
- export {};
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=TextInput.Types.win32.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextInput.Types.win32.js","sourceRoot":"","sources":["../../../src/Libraries/Components/TextInput/TextInput.Types.win32.ts"],"names":[],"mappings":"","sourcesContent":["import { NativeSyntheticEvent, TextInputFocusEventData } from 'react-native';\n\n// TODO: How do we keep in sync with synthetic events\n\ninterface IChangePayload {\n eventCount: number;\n target: number;\n text: string;\n}\nexport type IChangeEvent = NativeSyntheticEvent<Readonly<IChangePayload>>;\n\ninterface IRange {\n start: number;\n end: number;\n}\ninterface ITextInputPayload {\n eventCount: number;\n previousText: string;\n range: Readonly<IRange>;\n target: number;\n text: number;\n}\nexport type ITextInputevent = NativeSyntheticEvent<Readonly<ITextInputPayload>>;\n\ninterface IContentSize {\n width: number;\n height: number;\n}\ninterface IContentSizeChangePayload {\n target: number;\n contentSize: Readonly<IContentSize>;\n}\nexport type IContentSizeChangeEvent = NativeSyntheticEvent<Readonly<IContentSizeChangePayload>>;\n\n// TODO: Why doesn't this guy work\n// interface ITargetPayload {\n// target: number;\n// }\n\n// type ITargetEvent = NativeSyntheticEvent<Readonly<ITargetPayload>>;\n\nexport type IBlurEvent = NativeSyntheticEvent<Readonly<TextInputFocusEventData>>;\nexport type IFocusEvent = NativeSyntheticEvent<Readonly<TextInputFocusEventData>>;\n\nexport interface ISelection extends IRange { }\ninterface ISelectionPayload {\n selection: ISelection;\n target: number;\n}\nexport type ISelectionChangeEvent = NativeSyntheticEvent<Readonly<ISelectionPayload>>;\n\n// TODO: Why is this one diffferent?\ninterface IKeyPressPayload {\n key: string;\n target?: number;\n eventCount?: number;\n}\nexport type IKeyPressEvent = NativeSyntheticEvent<Readonly<IKeyPressPayload>>;\n\ninterface IEditingPayload {\n eventCount: number;\n text: string;\n target: number;\n}\nexport type IEditingEvent = NativeSyntheticEvent<Readonly<IEditingPayload>>;\n\n// TODO: Why do I need this one\nexport type IPasswordRules = string;\n"]}
@@ -1,68 +0,0 @@
1
- import { NativeSyntheticEvent, TextInputFocusEventData } from 'react-native';
2
-
3
- // TODO: How do we keep in sync with synthetic events
4
-
5
- interface IChangePayload {
6
- eventCount: number;
7
- target: number;
8
- text: string;
9
- }
10
- export type IChangeEvent = NativeSyntheticEvent<Readonly<IChangePayload>>;
11
-
12
- interface IRange {
13
- start: number;
14
- end: number;
15
- }
16
- interface ITextInputPayload {
17
- eventCount: number;
18
- previousText: string;
19
- range: Readonly<IRange>;
20
- target: number;
21
- text: number;
22
- }
23
- export type ITextInputevent = NativeSyntheticEvent<Readonly<ITextInputPayload>>;
24
-
25
- interface IContentSize {
26
- width: number;
27
- height: number;
28
- }
29
- interface IContentSizeChangePayload {
30
- target: number;
31
- contentSize: Readonly<IContentSize>;
32
- }
33
- export type IContentSizeChangeEvent = NativeSyntheticEvent<Readonly<IContentSizeChangePayload>>;
34
-
35
- // TODO: Why doesn't this guy work
36
- // interface ITargetPayload {
37
- // target: number;
38
- // }
39
-
40
- // type ITargetEvent = NativeSyntheticEvent<Readonly<ITargetPayload>>;
41
-
42
- export type IBlurEvent = NativeSyntheticEvent<Readonly<TextInputFocusEventData>>;
43
- export type IFocusEvent = NativeSyntheticEvent<Readonly<TextInputFocusEventData>>;
44
-
45
- export interface ISelection extends IRange { }
46
- interface ISelectionPayload {
47
- selection: ISelection;
48
- target: number;
49
- }
50
- export type ISelectionChangeEvent = NativeSyntheticEvent<Readonly<ISelectionPayload>>;
51
-
52
- // TODO: Why is this one diffferent?
53
- interface IKeyPressPayload {
54
- key: string;
55
- target?: number;
56
- eventCount?: number;
57
- }
58
- export type IKeyPressEvent = NativeSyntheticEvent<Readonly<IKeyPressPayload>>;
59
-
60
- interface IEditingPayload {
61
- eventCount: number;
62
- text: string;
63
- target: number;
64
- }
65
- export type IEditingEvent = NativeSyntheticEvent<Readonly<IEditingPayload>>;
66
-
67
- // TODO: Why do I need this one
68
- export type IPasswordRules = string;