@office-iss/react-native-win32 0.74.0-preview.1 → 0.74.0-preview.3

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.
package/CHANGELOG.json CHANGED
@@ -2,7 +2,37 @@
2
2
  "name": "@office-iss/react-native-win32",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 08 Apr 2024 15:15:21 GMT",
5
+ "date": "Mon, 22 Apr 2024 15:16:17 GMT",
6
+ "version": "0.74.0-preview.3",
7
+ "tag": "@office-iss/react-native-win32_v0.74.0-preview.3",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "tatianakapos@microsoft.com",
12
+ "package": "@office-iss/react-native-win32",
13
+ "commit": "c13ef9da244498a96f2750b9407c7007251d246d",
14
+ "comment": "integrate rc9"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Thu, 11 Apr 2024 16:29:48 GMT",
21
+ "version": "0.74.0-preview.2",
22
+ "tag": "@office-iss/react-native-win32_v0.74.0-preview.2",
23
+ "comments": {
24
+ "prerelease": [
25
+ {
26
+ "author": "email not defined",
27
+ "package": "@office-iss/react-native-win32",
28
+ "commit": "5f10e604924b47b0baa64825d8770be4e3a074b1",
29
+ "comment": "integrate react-native 0.74-rc6"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Mon, 08 Apr 2024 15:16:48 GMT",
6
36
  "version": "0.74.0-preview.1",
7
37
  "tag": "@office-iss/react-native-win32_v0.74.0-preview.1",
8
38
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,17 +1,33 @@
1
1
  # Change Log - @office-iss/react-native-win32
2
2
 
3
- This log was last generated on Mon, 08 Apr 2024 15:15:21 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 22 Apr 2024 15:16:17 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.74.0-preview.1
7
+ ## 0.74.0-preview.3
8
8
 
9
- Mon, 08 Apr 2024 15:15:21 GMT
9
+ Mon, 22 Apr 2024 15:16:17 GMT
10
10
 
11
11
  ### Changes
12
12
 
13
- - Promote 0.74 to preview (tatianakapos@microsoft.com)
13
+ - integrate rc9 (tatianakapos@microsoft.com)
14
14
 
15
+ ## 0.74.0-preview.2
16
+
17
+ Thu, 11 Apr 2024 16:29:48 GMT
18
+
19
+ ### Changes
20
+
21
+ - integrate react-native 0.74-rc6 (email not defined)
22
+
23
+ ## 0.74.0-preview.1
24
+
25
+ Mon, 08 Apr 2024 15:16:48 GMT
26
+
27
+ ### Changes
28
+
29
+ - Promote 0.74 to preview (tatianakapos@microsoft.com)
30
+
15
31
  ## 0.0.0-canary.238
16
32
 
17
33
  Sat, 23 Mar 2024 05:16:59 GMT
@@ -144,6 +144,7 @@ const ReactNativeStyleAttributes: {[string]: AnyAttributeType, ...} = {
144
144
  borderTopLeftRadius: true,
145
145
  borderTopRightRadius: true,
146
146
  borderTopStartRadius: true,
147
+ cursor: true,
147
148
  opacity: true,
148
149
  pointerEvents: true,
149
150
 
@@ -17,7 +17,7 @@ const version: $ReadOnly<{
17
17
  major: 0,
18
18
  minor: 74,
19
19
  patch: 0,
20
- prerelease: 'rc.0',
20
+ prerelease: 'rc.9',
21
21
  };
22
22
 
23
23
  module.exports = {version};
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @format
8
+ */
9
+
10
+ type Module = Object;
11
+ type RegisterCallableModule = (
12
+ name: string,
13
+ moduleOrFactory: Module | (() => Module),
14
+ ) => void;
15
+
16
+ export const registerCallableModule: RegisterCallableModule;
@@ -308,7 +308,6 @@ export type Props<ItemT> = {
308
308
  * Also inherits [ScrollView Props](docs/scrollview.html#props), unless it is nested in another FlatList of same orientation.
309
309
  */
310
310
  class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, void> {
311
- props: Props<ItemT>;
312
311
  /**
313
312
  * Scrolls to the end of the content. May be janky without `getItemLayout` prop.
314
313
  */
@@ -192,7 +192,7 @@ export function parseComponentStack(message: string): ComponentStack {
192
192
  if (!s) {
193
193
  return null;
194
194
  }
195
- const match = s.match(/(.*) \(at (.*\.js):([\d]+)\)/);
195
+ const match = s.match(/(.*) \(at (.*\.(?:js|jsx|ts|tsx)):([\d]+)\)/);
196
196
  if (!match) {
197
197
  return null;
198
198
  }
@@ -20,7 +20,6 @@ import View from '../Components/View/View';
20
20
  import DebuggingOverlay from '../Debugging/DebuggingOverlay';
21
21
  import useSubscribeToDebuggingOverlayRegistry from '../Debugging/useSubscribeToDebuggingOverlayRegistry';
22
22
  import RCTDeviceEventEmitter from '../EventEmitter/RCTDeviceEventEmitter';
23
- import ReactDevToolsOverlay from '../Inspector/ReactDevToolsOverlay';
24
23
  import LogBoxNotificationContainer from '../LogBox/LogBoxNotificationContainer';
25
24
  import StyleSheet from '../StyleSheet/StyleSheet';
26
25
  import {RootTagContext, createRootTag} from './RootTag';
@@ -64,6 +63,26 @@ const InspectorDeferred = ({
64
63
  );
65
64
  };
66
65
 
66
+ type ReactDevToolsOverlayDeferredProps = {
67
+ inspectedViewRef: InspectedViewRef,
68
+ reactDevToolsAgent: ReactDevToolsAgent,
69
+ };
70
+
71
+ const ReactDevToolsOverlayDeferred = ({
72
+ inspectedViewRef,
73
+ reactDevToolsAgent,
74
+ }: ReactDevToolsOverlayDeferredProps) => {
75
+ const ReactDevToolsOverlay =
76
+ require('../Inspector/ReactDevToolsOverlay').default;
77
+
78
+ return (
79
+ <ReactDevToolsOverlay
80
+ inspectedViewRef={inspectedViewRef}
81
+ reactDevToolsAgent={reactDevToolsAgent}
82
+ />
83
+ );
84
+ };
85
+
67
86
  const AppContainer = ({
68
87
  children,
69
88
  fabric,
@@ -155,7 +174,7 @@ const AppContainer = ({
155
174
  <DebuggingOverlay ref={debuggingOverlayRef} />
156
175
 
157
176
  {reactDevToolsAgent != null && (
158
- <ReactDevToolsOverlay
177
+ <ReactDevToolsOverlayDeferred
159
178
  inspectedViewRef={innerViewRef}
160
179
  reactDevToolsAgent={reactDevToolsAgent}
161
180
  />
@@ -27,6 +27,8 @@ export type DimensionValue =
27
27
  type AnimatableNumericValue = number | Animated.AnimatedNode;
28
28
  type AnimatableStringValue = string | Animated.AnimatedNode;
29
29
 
30
+ export type CursorValue = 'auto' | 'pointer';
31
+
30
32
  /**
31
33
  * Flex Prop Types
32
34
  * @see https://reactnative.dev/docs/flexbox
@@ -274,6 +276,7 @@ export interface ViewStyle extends FlexStyle, ShadowStyleIOS, TransformsStyle {
274
276
  * Controls whether the View can be the target of touch events.
275
277
  */
276
278
  pointerEvents?: 'box-none' | 'none' | 'box-only' | 'auto' | undefined;
279
+ cursor?: CursorValue | undefined;
277
280
  }
278
281
 
279
282
  export type FontVariant =
@@ -403,4 +406,5 @@ export interface ImageStyle extends FlexStyle, ShadowStyleIOS, TransformsStyle {
403
406
  tintColor?: ColorValue | undefined;
404
407
  opacity?: AnimatableNumericValue | undefined;
405
408
  objectFit?: 'cover' | 'contain' | 'fill' | 'scale-down' | undefined;
409
+ cursor?: CursorValue | undefined;
406
410
  }
@@ -37,6 +37,8 @@ export type EdgeInsetsValue = {
37
37
  export type DimensionValue = number | string | 'auto' | AnimatedNode | null;
38
38
  export type AnimatableNumericValue = number | AnimatedNode;
39
39
 
40
+ export type CursorValue = 'auto' | 'pointer';
41
+
40
42
  /**
41
43
  * React Native's layout system is based on Flexbox and is powered both
42
44
  * on iOS and Android by an open source project called `Yoga`:
@@ -729,6 +731,7 @@ export type ____ViewStyle_InternalCore = $ReadOnly<{
729
731
  opacity?: AnimatableNumericValue,
730
732
  elevation?: number,
731
733
  pointerEvents?: 'auto' | 'none' | 'box-none' | 'box-only',
734
+ cursor?: CursorValue,
732
735
  }>;
733
736
 
734
737
  export type ____ViewStyle_Internal = $ReadOnly<{
package/index.js CHANGED
@@ -27,7 +27,6 @@ import typeof Clipboard from './Libraries/Components/Clipboard/Clipboard';
27
27
  import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
28
28
  import typeof Keyboard from './Libraries/Components/Keyboard/Keyboard';
29
29
  import typeof KeyboardAvoidingView from './Libraries/Components/Keyboard/KeyboardAvoidingView';
30
- import typeof PopupMenuAndroid from './Libraries/Components/PopupMenuAndroid/PopupMenuAndroid';
31
30
  import typeof Pressable from './Libraries/Components/Pressable/Pressable';
32
31
  import typeof ProgressBarAndroid from './Libraries/Components/ProgressBarAndroid/ProgressBarAndroid';
33
32
  import typeof RefreshControl from './Libraries/Components/RefreshControl/RefreshControl';
@@ -135,10 +134,6 @@ module.exports = {
135
134
  return require('./Libraries/Components/Keyboard/KeyboardAvoidingView')
136
135
  .default;
137
136
  },
138
- get PopupMenuAndroid(): PopupMenuAndroid {
139
- return require('./Libraries/Components/PopupMenuAndroid/PopupMenuAndroid')
140
- .default;
141
- },
142
137
  get Modal(): Modal {
143
138
  return require('./Libraries/Modal/Modal');
144
139
  },
package/overrides.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "**/__snapshots__/**",
8
8
  "src-win/rntypes/**"
9
9
  ],
10
- "baseVersion": "0.74.0-rc.0",
10
+ "baseVersion": "0.74.0-rc.9",
11
11
  "overrides": [
12
12
  {
13
13
  "type": "derived",
@@ -19,7 +19,7 @@
19
19
  "type": "derived",
20
20
  "file": "src-win/index.win32.js",
21
21
  "baseFile": "packages/react-native/index.js",
22
- "baseHash": "7e8cd1a3073bf2ee25706f1828d255c602c1207d"
22
+ "baseHash": "dd3b224f82882d17be0a79a368b293c9ac6599a0"
23
23
  },
24
24
  {
25
25
  "type": "platform",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
- "version": "0.74.0-preview.1",
3
+ "version": "0.74.0-preview.3",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,17 +26,17 @@
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.0.0",
28
28
  "@jest/create-cache-key-function": "^29.6.3",
29
- "@react-native-community/cli": "13.6.0",
30
- "@react-native-community/cli-platform-android": "13.6.0",
31
- "@react-native-community/cli-platform-ios": "13.6.0",
29
+ "@react-native-community/cli": "13.6.4",
30
+ "@react-native-community/cli-platform-android": "13.6.4",
31
+ "@react-native-community/cli-platform-ios": "13.6.4",
32
32
  "@react-native/assets": "1.0.0",
33
- "@react-native/assets-registry": "0.74.0",
34
- "@react-native/codegen": "0.74.1",
35
- "@react-native/community-cli-plugin": "0.74.1",
36
- "@react-native/gradle-plugin": "0.74.1",
37
- "@react-native/js-polyfills": "0.74.0",
38
- "@react-native/normalize-colors": "0.74.1",
39
- "@react-native/virtualized-lists": "0.74.1",
33
+ "@react-native/assets-registry": "0.74.80",
34
+ "@react-native/codegen": "0.74.80",
35
+ "@react-native/community-cli-plugin": "0.74.80",
36
+ "@react-native/gradle-plugin": "0.74.80",
37
+ "@react-native/js-polyfills": "0.74.80",
38
+ "@react-native/normalize-colors": "0.74.80",
39
+ "@react-native/virtualized-lists": "0.74.80",
40
40
  "abort-controller": "^3.0.0",
41
41
  "anser": "^1.4.9",
42
42
  "ansi-regex": "^5.0.0",
@@ -69,7 +69,7 @@
69
69
  "devDependencies": {
70
70
  "@babel/core": "^7.20.0",
71
71
  "@babel/eslint-parser": "^7.20.0",
72
- "@react-native/metro-config": "0.74.1",
72
+ "@react-native/metro-config": "0.74.80",
73
73
  "@rnw-scripts/babel-react-native-config": "0.0.0",
74
74
  "@rnw-scripts/eslint-config": "1.2.9",
75
75
  "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.13",
@@ -85,13 +85,14 @@
85
85
  "just-scripts": "^1.3.3",
86
86
  "prettier": "2.8.8",
87
87
  "react": "18.2.0",
88
- "react-native": "0.74.0-rc.0",
88
+ "react-native": "0.74.0-rc.9",
89
89
  "react-native-platform-override": "^1.9.25",
90
90
  "typescript": "5.0.4"
91
91
  },
92
92
  "peerDependencies": {
93
+ "@types/react": "^18.2.6",
93
94
  "react": "18.2.0",
94
- "react-native": "0.74.0-rc.0"
95
+ "react-native": "0.74.0-rc.9"
95
96
  },
96
97
  "beachball": {
97
98
  "defaultNpmTag": "preview",
package/types/index.d.ts CHANGED
@@ -103,6 +103,7 @@ export * from '../Libraries/Components/View/View';
103
103
  export * from '../Libraries/Components/View/ViewAccessibility';
104
104
  export * from '../Libraries/Components/View/ViewPropTypes';
105
105
  export * from '../Libraries/Components/Button';
106
+ export * from '../Libraries/Core/registerCallableModule';
106
107
  export * from '../Libraries/DevToolsSettings/DevToolsSettingsManager';
107
108
  export * from '../Libraries/EventEmitter/NativeEventEmitter';
108
109
  export * from '../Libraries/EventEmitter/RCTDeviceEventEmitter';
@@ -1,69 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @flow strict-local
9
- */
10
-
11
- import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';
12
- import type {SyntheticEvent} from '../../Types/CoreEventTypes';
13
- import type {RefObject} from 'react';
14
-
15
- import PopupMenuAndroidNativeComponent, {
16
- Commands,
17
- } from './PopupMenuAndroidNativeComponent';
18
- import nullthrows from 'nullthrows';
19
- import * as React from 'react';
20
- import {useCallback, useImperativeHandle, useRef} from 'react';
21
-
22
- type PopupMenuSelectionEvent = SyntheticEvent<
23
- $ReadOnly<{
24
- item: number,
25
- }>,
26
- >;
27
-
28
- export type PopupMenuAndroidInstance = {
29
- +show: () => void,
30
- };
31
-
32
- type Props = {
33
- menuItems: $ReadOnlyArray<string>,
34
- onSelectionChange: number => void,
35
- children: React.Node,
36
- instanceRef: RefObject<?PopupMenuAndroidInstance>,
37
- };
38
-
39
- export default function PopupMenuAndroid({
40
- menuItems,
41
- onSelectionChange,
42
- children,
43
- instanceRef,
44
- }: Props): React.Node {
45
- const nativeRef = useRef<React.ElementRef<HostComponent<mixed>> | null>(null);
46
- const _onSelectionChange = useCallback(
47
- (event: PopupMenuSelectionEvent) => {
48
- onSelectionChange(event.nativeEvent.item);
49
- },
50
- [onSelectionChange],
51
- );
52
-
53
- useImperativeHandle(instanceRef, ItemViewabilityInstance => {
54
- return {
55
- show() {
56
- Commands.show(nullthrows(nativeRef.current));
57
- },
58
- };
59
- });
60
-
61
- return (
62
- <PopupMenuAndroidNativeComponent
63
- ref={nativeRef}
64
- onSelectionChange={_onSelectionChange}
65
- menuItems={menuItems}>
66
- {children}
67
- </PopupMenuAndroidNativeComponent>
68
- );
69
- }
@@ -1,24 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- */
9
-
10
- import type * as React from 'react';
11
- import {HostComponent} from '../../../types/public/ReactNativeTypes';
12
-
13
- type PopupMenuAndroidInstance = {
14
- show: () => void;
15
- };
16
-
17
- type Props = {
18
- menuItems: Array<string>;
19
- onSelectionChange: (number) => void;
20
- children: React.ReactNode | undefined;
21
- instanceRef: React.ElementRef<HostComponent<PopupMenuAndroidInstance>>;
22
- };
23
-
24
- declare class PopupMenuAndroid extends React.Component<Props> {}
@@ -1,33 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @flow strict-local
9
- */
10
-
11
- import type {RefObject} from 'react';
12
- import type {Node} from 'react';
13
-
14
- import * as React from 'react';
15
-
16
- const UnimplementedView = require('../UnimplementedViews/UnimplementedView');
17
-
18
- export type PopupMenuAndroidInstance = {
19
- +show: () => void,
20
- };
21
-
22
- type Props = {
23
- menuItems: $ReadOnlyArray<string>,
24
- onSelectionChange: number => void,
25
- children: Node,
26
- instanceRef: RefObject<?PopupMenuAndroidInstance>,
27
- };
28
-
29
- function PopupMenuAndroid(props: Props): Node {
30
- return <UnimplementedView />;
31
- }
32
-
33
- export default PopupMenuAndroid;
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @flow strict-local
9
- */
10
-
11
- export * from '../../../src/private/specs/components/PopupMenuAndroidNativeComponent';
12
- import PopupMenuAndroidNativeComponent from '../../../src/private/specs/components/PopupMenuAndroidNativeComponent';
13
- export default PopupMenuAndroidNativeComponent;
@@ -1,47 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @flow strict-local
8
- * @format
9
- */
10
-
11
- import type {ViewProps} from '../../../../Libraries/Components/View/ViewPropTypes';
12
- import type {HostComponent} from '../../../../Libraries/Renderer/shims/ReactNativeTypes';
13
- import type {
14
- DirectEventHandler,
15
- Int32,
16
- } from '../../../../Libraries/Types/CodegenTypes';
17
-
18
- import codegenNativeCommands from '../../../../Libraries/Utilities/codegenNativeCommands';
19
- import codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';
20
- import * as React from 'react';
21
-
22
- type PopupMenuSelectionEvent = $ReadOnly<{
23
- item: Int32,
24
- }>;
25
-
26
- type NativeProps = $ReadOnly<{
27
- ...ViewProps,
28
-
29
- //Props
30
- menuItems?: ?$ReadOnlyArray<string>,
31
-
32
- onSelectionChange?: DirectEventHandler<PopupMenuSelectionEvent>,
33
- }>;
34
-
35
- type ComponentType = HostComponent<NativeProps>;
36
-
37
- interface NativeCommands {
38
- +show: (viewRef: React.ElementRef<ComponentType>) => void;
39
- }
40
-
41
- export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({
42
- supportedCommands: ['show'],
43
- });
44
-
45
- export default (codegenNativeComponent<NativeProps>(
46
- 'AndroidPopupMenu',
47
- ): HostComponent<NativeProps>);