@office-iss/react-native-win32 0.67.0-preview.3 → 0.67.2

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
@@ -1,6 +1,120 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
3
  "entries": [
4
+ {
5
+ "date": "Mon, 25 Jul 2022 15:12:24 GMT",
6
+ "tag": "@office-iss/react-native-win32_v0.67.2",
7
+ "version": "0.67.2",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "tatianakapos@microsoft.com",
12
+ "package": "@office-iss/react-native-win32",
13
+ "commit": "2dbb5b9f2e1d1f6b083fe3c5f24dad3fe1792378",
14
+ "comment": "Implement no-hide-accessibility"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Mon, 04 Apr 2022 15:13:28 GMT",
21
+ "tag": "@office-iss/react-native-win32_v0.67.1",
22
+ "version": "0.67.1",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "34109996+chiaramooney@users.noreply.github.com",
27
+ "package": "@office-iss/react-native-win32",
28
+ "commit": "not available",
29
+ "comment": "Promote 0.67 to legacy"
30
+ },
31
+ {
32
+ "author": "beachball",
33
+ "package": "@office-iss/react-native-win32",
34
+ "comment": "Bump @react-native-windows/virtualized-list to v0.67.1",
35
+ "commit": "4d4f19bef79e0fb2f6198b18c9e77d0da98a6938"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ {
41
+ "date": "Mon, 04 Apr 2022 15:12:54 GMT",
42
+ "tag": "@office-iss/react-native-win32_v0.67.1",
43
+ "version": "0.67.1",
44
+ "comments": {
45
+ "patch": [
46
+ {
47
+ "author": "34109996+chiaramooney@users.noreply.github.com",
48
+ "package": "@office-iss/react-native-win32",
49
+ "commit": "f4f970be35618e9942c5c96e6c15c88f8426c91c",
50
+ "comment": "Promote 0.67 to legacy"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@office-iss/react-native-win32",
55
+ "comment": "Bump @react-native-windows/virtualized-list to v0.67.1",
56
+ "commit": "e92602643cb768e9ce34430e9800d76769a31a2a"
57
+ }
58
+ ]
59
+ }
60
+ },
61
+ {
62
+ "date": "Mon, 24 Jan 2022 16:13:22 GMT",
63
+ "tag": "@office-iss/react-native-win32_v0.67.0",
64
+ "version": "0.67.0",
65
+ "comments": {
66
+ "patch": [
67
+ {
68
+ "author": "ngerlem@microsoft.com",
69
+ "package": "@office-iss/react-native-win32",
70
+ "commit": "not available",
71
+ "comment": "Promote 0.67 to latest"
72
+ },
73
+ {
74
+ "author": "beachball",
75
+ "package": "@office-iss/react-native-win32",
76
+ "comment": "Bump @react-native-windows/virtualized-list to v0.67.0",
77
+ "commit": "f3ec055a5554558b61b538fcb405719a00249bef"
78
+ }
79
+ ]
80
+ }
81
+ },
82
+ {
83
+ "date": "Mon, 24 Jan 2022 16:12:31 GMT",
84
+ "tag": "@office-iss/react-native-win32_v0.67.0",
85
+ "version": "0.67.0",
86
+ "comments": {
87
+ "patch": [
88
+ {
89
+ "author": "ngerlem@microsoft.com",
90
+ "package": "@office-iss/react-native-win32",
91
+ "commit": "56818ebc599aa084aa9ffc949691f1be71da169a",
92
+ "comment": "Promote 0.67 to latest"
93
+ },
94
+ {
95
+ "author": "beachball",
96
+ "package": "@office-iss/react-native-win32",
97
+ "comment": "Bump @react-native-windows/virtualized-list to v0.67.0",
98
+ "commit": "56818ebc599aa084aa9ffc949691f1be71da169a"
99
+ }
100
+ ]
101
+ }
102
+ },
103
+ {
104
+ "date": "Mon, 17 Jan 2022 16:12:54 GMT",
105
+ "tag": "@office-iss/react-native-win32_v0.67.0-preview.3",
106
+ "version": "0.67.0-preview.3",
107
+ "comments": {
108
+ "prerelease": [
109
+ {
110
+ "author": "saadnajmi2@gmail.com",
111
+ "package": "@office-iss/react-native-win32",
112
+ "commit": "not available",
113
+ "comment": "Port windows pressable with extra desktop support to win32"
114
+ }
115
+ ]
116
+ }
117
+ },
4
118
  {
5
119
  "date": "Mon, 17 Jan 2022 16:12:12 GMT",
6
120
  "tag": "@office-iss/react-native-win32_v0.67.0-preview.3",
package/CHANGELOG.md CHANGED
@@ -1,17 +1,69 @@
1
1
  # Change Log - @office-iss/react-native-win32
2
2
 
3
- This log was last generated on Mon, 17 Jan 2022 16:12:12 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 25 Jul 2022 15:12:24 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.67.0-preview.3
7
+ ## 0.67.2
8
8
 
9
- Mon, 17 Jan 2022 16:12:12 GMT
9
+ Mon, 25 Jul 2022 15:12:24 GMT
10
10
 
11
- ### Changes
11
+ ### Patches
12
12
 
13
- - Port windows pressable with extra desktop support to win32 (saadnajmi2@gmail.com)
13
+ - Implement no-hide-accessibility (tatianakapos@microsoft.com)
14
14
 
15
+ ## 0.67.1
16
+
17
+ Mon, 04 Apr 2022 15:13:28 GMT
18
+
19
+ ### Patches
20
+
21
+ - Promote 0.67 to legacy (34109996+chiaramooney@users.noreply.github.com)
22
+ - Bump @react-native-windows/virtualized-list to v0.67.1
23
+
24
+ ## 0.67.1
25
+
26
+ Mon, 04 Apr 2022 15:12:54 GMT
27
+
28
+ ### Patches
29
+
30
+ - Promote 0.67 to legacy (34109996+chiaramooney@users.noreply.github.com)
31
+ - Bump @react-native-windows/virtualized-list to v0.67.1
32
+
33
+ ## 0.67.0
34
+
35
+ Mon, 24 Jan 2022 16:13:22 GMT
36
+
37
+ ### Patches
38
+
39
+ - Promote 0.67 to latest (ngerlem@microsoft.com)
40
+ - Bump @react-native-windows/virtualized-list to v0.67.0
41
+
42
+ ## 0.67.0
43
+
44
+ Mon, 24 Jan 2022 16:12:31 GMT
45
+
46
+ ### Patches
47
+
48
+ - Promote 0.67 to latest (ngerlem@microsoft.com)
49
+ - Bump @react-native-windows/virtualized-list to v0.67.0
50
+
51
+ ## 0.67.0-preview.3
52
+
53
+ Mon, 17 Jan 2022 16:12:54 GMT
54
+
55
+ ### Changes
56
+
57
+ - Port windows pressable with extra desktop support to win32 (saadnajmi2@gmail.com)
58
+
59
+ ## 0.67.0-preview.3
60
+
61
+ Mon, 17 Jan 2022 16:12:12 GMT
62
+
63
+ ### Changes
64
+
65
+ - Port windows pressable with extra desktop support to win32 (saadnajmi2@gmail.com)
66
+
15
67
  ## 0.67.0-preview.2
16
68
 
17
69
  Mon, 15 Nov 2021 16:10:10 GMT
@@ -141,9 +141,9 @@ class Keyboard {
141
141
  }
142
142
 
143
143
  /**
144
- * @deprecated Use `remove` on the EventSubscription from `addEventListener`.
144
+ * @deprecated Use `remove` on the EventSubscription from `addListener`.
145
145
  */
146
- removeEventListener<K: $Keys<KeyboardEventDefinitions>>(
146
+ removeListener<K: $Keys<KeyboardEventDefinitions>>(
147
147
  eventType: K,
148
148
  listener: (...$ElementType<KeyboardEventDefinitions, K>) => mixed,
149
149
  ): void {
@@ -75,6 +75,26 @@ const View: React.AbstractComponent<
75
75
  props.onKeyUpCapture && props.onKeyUpCapture(event);
76
76
  };
77
77
 
78
+ // [Windows
79
+ const childrenWithImportantForAccessibility = children => {
80
+ return React.Children.map(children, child => {
81
+ if (React.isValidElement(child)) {
82
+ if (child.props.children) {
83
+ return React.cloneElement(child, {
84
+ accessible: false,
85
+ children: childrenWithImportantForAccessibility(
86
+ child.props.children,
87
+ ),
88
+ });
89
+ } else {
90
+ return React.cloneElement(child, {accessible: false});
91
+ }
92
+ }
93
+ return child;
94
+ });
95
+ };
96
+ // Windows]
97
+
78
98
  return (
79
99
  // [Windows
80
100
  // In core this is a TextAncestor.Provider value={false} See
@@ -94,6 +114,18 @@ const View: React.AbstractComponent<
94
114
  onKeyDownCapture={_keyDownCapture}
95
115
  onKeyUp={_keyUp}
96
116
  onKeyUpCapture={_keyUpCapture}
117
+ // [Windows
118
+ accessible={
119
+ props.importantForAccessibility === 'no-hide-descendants'
120
+ ? false
121
+ : props.accessible
122
+ }
123
+ children={
124
+ props.importantForAccessibility === 'no-hide-descendants'
125
+ ? childrenWithImportantForAccessibility(props.children)
126
+ : props.children
127
+ }
128
+ // Windows]
97
129
  />
98
130
  );
99
131
  }}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated by scripts/bump-oss-version.js
2
+ * @generated by scripts/set-rn-version.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
@@ -12,6 +12,6 @@
12
12
  exports.version = {
13
13
  major: 0,
14
14
  minor: 67,
15
- patch: 0,
16
- prerelease: 'rc.1',
15
+ patch: 1,
16
+ prerelease: null,
17
17
  };
@@ -13,42 +13,10 @@
13
13
  'use strict';
14
14
 
15
15
  const babelRegisterOnly = require('metro-babel-register');
16
- const nullthrows = require('nullthrows');
17
16
  const createCacheKeyFunction = require('@jest/create-cache-key-function')
18
17
  .default;
19
- const t = require('@babel/types');
20
- const {statements} = require('@babel/template').default;
21
18
 
22
- const importDefault = '__importDefault__';
23
- const importAll = '__importAll__';
24
-
25
- // prelude
26
- const importPrelude = statements(`
27
- function ${importDefault}(moduleId) {
28
- const exports = require(moduleId);
29
-
30
- if (exports && exports.__esModule) {
31
- return exports.default;
32
- }
33
-
34
- return exports;
35
- };
36
-
37
- function ${importAll}(moduleId) {
38
- const exports = require(moduleId);
39
-
40
- if (exports && exports.__esModule) {
41
- return exports;
42
- }
43
-
44
- return Object.assign({}, exports, {default: exports});
45
- };
46
- `);
47
-
48
- const {
49
- transformSync: babelTransformSync,
50
- transformFromAstSync: babelTransformFromAstSync,
51
- } = require('@babel/core');
19
+ const {transformSync: babelTransformSync} = require('@babel/core');
52
20
  const generate = require('@babel/generator').default;
53
21
 
54
22
  const nodeFiles = new RegExp(
@@ -73,13 +41,13 @@ module.exports = {
73
41
  }).code;
74
42
  }
75
43
 
76
- let {ast} = transformer.transform({
44
+ const {ast} = transformer.transform({
77
45
  filename: file,
78
46
  options: {
79
47
  ast: true, // needed for open source (?) https://github.com/facebook/react-native/commit/f8d6b97140cffe8d18b2558f94570c8d1b410d5c#r28647044
80
48
  dev: true,
81
49
  enableBabelRuntime: false,
82
- experimentalImportSupport: true,
50
+ experimentalImportSupport: false,
83
51
  globalPrefix: '',
84
52
  hot: false,
85
53
  inlineRequires: true,
@@ -111,6 +79,10 @@ module.exports = {
111
79
  [require('@babel/plugin-transform-regenerator')],
112
80
  [require('@babel/plugin-transform-sticky-regex')],
113
81
  [require('@babel/plugin-transform-unicode-regex')],
82
+ [
83
+ require('@babel/plugin-transform-modules-commonjs'),
84
+ {strict: false, allowTopLevelThis: true},
85
+ ],
114
86
  [require('@babel/plugin-transform-classes')],
115
87
  [require('@babel/plugin-transform-arrow-functions')],
116
88
  [require('@babel/plugin-transform-spread')],
@@ -127,46 +99,6 @@ module.exports = {
127
99
  ],
128
100
  });
129
101
 
130
- // We're not using @babel/plugin-transform-modules-commonjs so
131
- // we need to add 'use strict' manually
132
- const directives = ast.program.directives;
133
-
134
- if (
135
- ast.program.sourceType === 'module' &&
136
- (directives == null ||
137
- directives.findIndex(d => d.value.value === 'use strict') === -1)
138
- ) {
139
- ast.program.directives = [
140
- ...(directives || []),
141
- t.directive(t.directiveLiteral('use strict')),
142
- ];
143
- }
144
-
145
- // Postprocess the transformed module to handle ESM and inline requires.
146
- // We need to do this in a separate pass to avoid issues tracking references.
147
- const babelTransformResult = babelTransformFromAstSync(ast, src, {
148
- ast: true,
149
- retainLines: true,
150
- plugins: [
151
- [
152
- require('metro-transform-plugins').importExportPlugin,
153
- {importDefault, importAll},
154
- ],
155
- [
156
- require('babel-preset-fbjs/plugins/inline-requires.js'),
157
- {inlineableCalls: [importDefault, importAll]},
158
- ],
159
- ],
160
- sourceType: 'module',
161
- });
162
-
163
- ast = nullthrows(babelTransformResult.ast);
164
-
165
- // Inject import helpers *after* running the inline-requires transform,
166
- // because otherwise it will assume they are user code and bail out of
167
- // inlining calls to them.
168
- ast.program.body.unshift(...importPrelude());
169
-
170
102
  return generate(
171
103
  ast,
172
104
  // $FlowFixMe[prop-missing] Error found when improving flow typing for libs
package/overrides.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "**/__snapshots__/**",
8
8
  "src/rntypes/**"
9
9
  ],
10
- "baseVersion": "0.67.0-rc.1",
10
+ "baseVersion": "0.67.1",
11
11
  "overrides": [
12
12
  {
13
13
  "type": "derived",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
- "version": "0.67.0-preview.3",
3
+ "version": "0.67.2",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "license": "MIT",
6
6
  "main": "./index.win32.js",
@@ -25,7 +25,7 @@
25
25
  "@react-native-community/cli": "^6.0.0",
26
26
  "@react-native-community/cli-platform-android": "^6.0.0",
27
27
  "@react-native-community/cli-platform-ios": "^6.0.0",
28
- "@react-native-windows/virtualized-list": "0.67.0-preview.1",
28
+ "@react-native-windows/virtualized-list": "0.67.1",
29
29
  "@react-native/assets": "1.0.0",
30
30
  "@react-native/normalize-color": "2.0.0",
31
31
  "@react-native/polyfills": "2.0.0",
@@ -70,21 +70,21 @@
70
70
  "just-scripts": "^1.3.3",
71
71
  "prettier": "1.19.1",
72
72
  "react": "17.0.2",
73
- "react-native": "0.67.0-rc.1",
73
+ "react-native": "0.67.1",
74
74
  "react-native-platform-override": "^1.5.1",
75
75
  "react-shallow-renderer": "16.14.1",
76
76
  "typescript": "^4.4.4"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "react": "17.0.2",
80
- "react-native": "0.67.0-rc.1"
80
+ "react-native": "^0.67.0"
81
81
  },
82
82
  "beachball": {
83
- "defaultNpmTag": "preview",
83
+ "defaultNpmTag": "v0.67-stable",
84
84
  "disallowedChangeTypes": [
85
85
  "major",
86
86
  "minor",
87
- "patch"
87
+ "prerelease"
88
88
  ]
89
89
  },
90
90
  "promoteRelease": true,